TP_JO2024/home/dist/analytics/analytics.module.min.js
2024-03-27 17:19:37 +01:00

3 lines
68 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! DSFR v1.11.2 | SPDX-License-Identifier: MIT | License-Filename: LICENSE.md | restricted use (see terms and conditions) */
const t=window.dsfr,e="a4e35ba2a938ba9d007689dbf3f46acbb9807869",s={MANUAL:"manual",LOAD:"load",FULL:"full",HASH:"hash"},i="_EA_",n=`${i}disabled`,r=`${i}toggle`;const a=new class{constructor(){this._configure()}_configure(){const t=this;window[n]=()=>t.isDisabled,window[r]=this.toggle.bind(this)}get isDisabled(){return localStorage.getItem(i)}toggle(){this.isDisabled?this.enable():this.disable()}enable(){localStorage.getItem(i)&&localStorage.removeItem(i)}disable(){localStorage.setItem(i,"1")}},o="EA_push";class l{constructor(t){this._domain=t,this._isLoaded=!1,this._promise=new Promise(((t,e)=>{this._resolve=t,this._reject=e}))}get id(){return this._id}get store(){return this._store}configure(){return this.init(),this._promise}init(){let e=5381;for(let t=this._domain.length-1;t>0;t--)e=33*e^this._domain.charCodeAt(t);e>>>=0,this._id=`_EA_${e}`,this._store=[],this._store.eah=this._domain,window[this._id]=this._store,window[o]||(window[o]=(...t)=>this.store.push(t)),a.isDisabled?(t.inspector.warn("User opted out, eulerian is disabled"),this._reject("User opted out, eulerian is disabled")):this.load()}load(){const t=new Date/1e7|0,e=t%26,s=String.fromCharCode(97+e,122-e,65+e)+t%1e3;this._script=document.createElement("script"),this._script.ea=this.id,this._script.async=!0,this._script.addEventListener("load",this.loaded.bind(this)),this._script.addEventListener("error",this.error.bind(this)),this._script.src=`//${this._domain}/${s}.js?2`;const i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(this._script,i)}error(){t.inspector.error("unable to load Eulerian script file. the domain declared in your configuration must match the domain provided by the Eulerian interface (tag creation)"),this._reject("eulerian script loading error")}loaded(){this._isLoaded||(this._isLoaded=!0,this._resolve())}}const c=-1,h=0,u=1,g=2,d=3;class _{constructor(t){this._config=t,this._state=c,this._promise=new Promise(((t,e)=>{this._resolve=t,this._reject=e}))}configure(){if(this._state>=u)return this._promise;this._state===c&&(t.inspector.info("analytics configures tarteaucitron"),this._state=h);const e=window.tarteaucitron;if(!e||!e.services)return void window.requestAnimationFrame(this.configure.bind(this));this._state=u;const s={key:"eulerian",type:"analytic",name:"Eulerian Analytics",needConsent:!0,cookies:["etuix"],uri:"https://eulerian.com/vie-privee",js:this.init.bind(this),fallback:()=>{e.services.eulerian.js()}};return e.services.eulerian=s,e.job||(e.job=[]),e.job.push("eulerian"),this._promise}init(){if(this._state>=g)return;this._state=g,window.__eaGenericCmpApi=this.integrate.bind(this);const t=this.update.bind(this);window.addEventListener("tac.close_alert",t),window.addEventListener("tac.close_panel",t)}integrate(e){this._state>=d||(this._state=d,this._cmpApi=e,t.inspector.info("analytics has integrated tarteaucitron"),this._resolve(),this.update())}update(){this._state<d||this._cmpApi("tac",window.tarteaucitron,1)}}class p{constructor(t){if(this._config=t,t&&"tarteaucitron"===t.id)this.integrateTarteAuCitron()}integrateTarteAuCitron(){return this._tac=new _(this._config),this._tac.configure()}optin(){}}const m=(e,s)=>{"function"==typeof window.EA_push?(t.inspector.info("analytics",e,s),window.EA_push(e,s)):t.inspector.warn("Analytics datalayer not sent, Eulerian API isn't yet avalaible")},b={COLLECTOR:"collector",ACTION:"action",ACTION_PARAMETER:"actionparam"};const f=new class{constructor(){this._renderables=[],this._rendering=this.render.bind(this),requestAnimationFrame(this._rendering)}add(t){-1===this._renderables.indexOf(t)&&this._renderables.push(t)}remove(t){const e=this._renderables.indexOf(t);e>-1&&this._renderables.splice(e,1)}render(){this._renderables.forEach((t=>t.render())),requestAnimationFrame(this._rendering)}};class y{constructor(t,e){this._action=t,this._data=e}test(t){return this._action===t}start(){return this._action.start(this._data)}end(){return this._action.end(this._data)}}const v=new class{constructor(){this._startingActions=[],this._endingActions=[],this._handlingVisibilityChange=this._handleVisibilityChange.bind(this),this._handlingEnd=this._handleEnd.bind(this),this._isStarted=!1,this._isListening=!1,this.reset()}setCollector(t){this._collector=t}reset(t=!1){this._type=b.ACTION,t||(this._startingActions.length=0),this._endingActions.length=0,this._count=0,this._delay=-1,this._isRequested=!1,this._unlisten()}start(){this._isStarted||(this._isStarted=!0,f.add(this))}collect(){this._type=b.COLLECTOR,this._request()}appendStartingAction(e,s){if(!this._collector.isActionEnabled&&!e.isForced)return;if(!e||this._startingActions.some((t=>t.test(e))))return void t.inspector.log("appendStartingAction exists or null",e);const i=new y(e,s);this._startingActions.push(i),this._request()}appendEndingAction(e,s){if(!this._collector.isActionEnabled&&!e.isForced)return;if(!e||this._endingActions.some((t=>t.test(e))))return void t.inspector.log("appendEndingAction exists or null",e);const i=new y(e,s);this._endingActions.push(i),this._request()}_request(){this._listen(),this._isRequested=!0,this._delay=4}_listen(){this._isListening||(this._isListening=!0,document.addEventListener("visibilitychange",this._handlingVisibilityChange),document.addEventListener("unload",this._handlingEnd),document.addEventListener("beforeunload",this._handlingEnd),document.addEventListener("pagehide",this._handlingEnd))}_unlisten(){this._isListening&&(this._isListening=!1,document.removeEventListener("visibilitychange",this._handlingVisibilityChange),document.removeEventListener("unload",this._handlingEnd),document.removeEventListener("beforeunload",this._handlingEnd),document.removeEventListener("pagehide",this._handlingEnd))}_handleVisibilityChange(t){"hidden"===document.visibilityState&&this.send()}_handleEnd(){this.send()}render(){if(!(this._delay<=-1))switch(this._delay--,this._count++,!0){case this._count>20:case 0===this._delay:this.send()}}send(t=!1){if(!this._isRequested)return;const e=[];t||e.push(...this._startingActions.map((t=>t.start())).filter((t=>t.length>0))),e.push(...this._endingActions.map((t=>t.end())).filter((t=>t.length>0)));const s=e.length/80+1|0,i=[];for(let t=0;t<s;t++){const s=e.slice(80*t,80*(t+1));i.push(s.flat())}if(this._type===b.COLLECTOR&&this._collector.isCollecting){const t=this._collector.layer;if(i.length>0){const e=i.splice(0,1)[0];e.length>0&&t.push.apply(t,e)}t.flat(),t.length>0&&m(b.COLLECTOR,t)}if(i.length>0)for(let t=0;t<i.length;t++){const e=i[t];e.length>0&&m(b.ACTION,e)}this.reset(t)}};const T=new class{get debugger(){return window._oEa}get isActive(){return!!this.debugger&&"1"===this.debugger._dbg}set isActive(t){this.debugger&&this.isActive!==t&&this.debugger.debug(t?1:0)}},A={CONNECTED:{id:"connected",value:"connecté",isConnected:!0,isDefault:!0},ANONYMOUS:{id:"anonymous",value:"anonyme",isConnected:!1,isDefault:!0},GUEST:{id:"guest",value:"invité",isConnected:!1}},N={INDIVIDUAL:{id:"individual",value:"part"},PROFESSIONNAL:{id:"professionnal",value:"pro"}};var E={"0x0022":"","0x0024":"","0x0026":"","0x0027":"","0x002a":"","0x002c":"","0x003c":"","0x003e":"","0x003f":"","0x005c":"","0x005e":"","0x0060":"","0x007c":"","0x007e":""};const C=t=>t?t=(t=(t=[...t].map((t=>E[(t=>{const e=t.charCodeAt(0).toString(16);return"0x0000".slice(0,-e.length)+e})(t)]||t)).join("")).replace(/\s+/g," ").replace(/\s/g,"_")).toLowerCase():t,L=(e,s,i=!0)=>{switch(!0){case"number"==typeof e:return`${e}`;case"string"==typeof e:return e;case void 0===e&&i:case null===e&&i:return""}return t.inspector.warn(`unexpected value '${e}' set at analytics.${s}. Expecting a String`),null},I=(e,s,i=!0)=>{switch(!0){case!isNaN(e):return e;case"string"==typeof e&&!isNaN(Number(e)):return Number(e);case void 0===e&&i:case null===e&&i:return-1}return t.inspector.warn(`unexpected value '${e}' set at analytics.${s}. Expecting a Number`),null},S=(e,s)=>{switch(!0){case"boolean"==typeof e:return e;case"string"==typeof e&&"true"===e.toLowerCase():case"1"===e:case 1===e:return!0;case"string"==typeof e&&"false"===e.toLowerCase():case"0"===e:case 0===e:return!1;case void 0===e:case null===e:return e}return t.inspector.warn(`unexpected value '${e}' set at analytics.${s}. Expecting a Boolean`),null},O=(e,s,i=!0)=>{switch(!0){case"string"==typeof e&&/^[A-Za-z]{2}$|^[A-Za-z]{2}[-_]/.test(e):return e.split(/[-_]/)[0].toLowerCase();case void 0===e&&i:case null===e&&i:return""}return t.inspector.warn(`unexpected value '${e}' set at analytics.${s}. Expecting language as a String following ISO 639-1 format`),null},w=(e,s,i=!0)=>{switch(!0){case"string"==typeof e:return/^FR-[A-Z0-9]{2,3}$/.test(e)||t.inspector.warn(`value '${e}' set at analytics.${s} with wrong format. Geographic location should be a String following ISO 3166-2:FR format`),e;case void 0===e&&i:case null===e&&i:return""}return t.inspector.warn(`unexpected value '${e}' set at analytics.${s}. Expecting geographic location as a String following ISO 3166-2:FR format`),null},x=t=>t.toISOString().split("T")[0];class k{constructor(t){this._config=t||{}}reset(t=!1){this._isConnected=!1,this.status=A.ANONYMOUS,!t&&this._config.connect?this.connect(this._config.connect.uid,this._config.connect.email,this._config.connect.isNew):(this._uid=void 0,this._email=void 0,this._isNew=!1),this.profile=t?void 0:this._config.profile,this.language=t?void 0:this._config.language,this.type=t?void 0:this._config.type}connect(e,s,i=!1){this._uid=L(e,"user.uid"),/^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~.-]{2,}@[a-zA-Z0-9-]{2,}\.[a-zA-Z]{2,}$/.test(s)&&t.inspector.warn("Please check analytics.user.email is properly encrypted "),this._email=L(s,"user.email"),this._isNew=S(i),this._isConnected=!0,this.status=A.CONNECTED}get uid(){return this._uid}get email(){return this._email}get isNew(){return this._isNew}set status(t){const e=Object.values(A).filter((t=>t.isConnected===this._isConnected));this._status=e.filter((e=>e.id===t||e.value===t))[0]||e.filter((t=>t.isDefault))[0]}get status(){return this._status.id}set profile(t){const e=L(t,"user.profile");null!==e&&(this._profile=e)}get profile(){return this._profile.id}set language(t){const e=O(t,"user.language");null!==e&&(this._language=e)}get language(){return this._language||navigator.language}set type(t){this._type=Object.values(N).filter((e=>e.id===t||e.value===t))[0]}get type(){return this._type.id}get layer(){const t=[];return this.uid&&t.push("uid",C(this.uid)),this.email&&t.push("email",C(this.email)),this.isNew&&t.push("newcustomer","1"),this.language&&t.push("user_language",this.language),t.push("user_login_status",this._status.value),this._profile&&t.push("profile",this._profile),this._type&&t.push("user_type",this._type.value),t}}k.Status=A,k.Type=N;const $={DEVELOPMENT:{id:"development",value:"dev"},STAGE:{id:"stage",value:"stage"},PRODUCTION:{id:"production",value:"prod"}};class D{constructor(t){this._config=t||{}}reset(e=!1){this.environment=e?$.DEVELOPMENT.id:this._config.environment,this.entity=e?void 0:this._config.entity,this.language=e?void 0:this._config.language,this.target=e?void 0:this._config.target,this.type=e?void 0:this._config.type,this.region=e?void 0:this._config.region,this.department=e?void 0:this._config.department,this.version=e?void 0:this._config.version,this._api=t.version}set environment(t){switch(t){case $.PRODUCTION.id:case $.PRODUCTION.value:this._environment=$.PRODUCTION;break;case $.STAGE.id:case $.STAGE.value:this._environment=$.STAGE;break;case $.DEVELOPMENT.id:case $.DEVELOPMENT.value:default:this._environment=$.DEVELOPMENT}}get environment(){return this._environment?this._environment.id:$.DEVELOPMENT.id}set entity(t){const e=L(t,"site.entity");null!==e&&(this._entity=e)}get entity(){return this._entity}set language(t){const e=O(t,"site.language");null!==e&&(this._language=e)}get language(){return this._language||document.documentElement.lang}set target(t){const e=L(t,"site.target");null!==e&&(this._target=e)}get target(){return this._target}set type(t){const e=L(t,"site.type");null!==e&&(this._type=e)}get type(){return this._type}set region(t){const e=w(t,"site.region");null!==e&&(this._region=e)}get region(){return this._region}set department(t){const e=w(t,"site.department");null!==e&&(this._department=e)}get department(){return this._department}set version(t){const e=L(t,"site.version");null!==e&&(this._version=e)}get version(){return this._version}get api(){return this._api}get layer(){const e=[];return e.push("site_environment",this._environment.value),this.entity?e.push("site_entity",C(this.entity)):t.inspector.warn("entity is required in analytics.site"),this.language&&e.push("site_language",this.language),this.target&&e.push("site_target",C(this.target)),this.type&&e.push("site_type",C(this.type)),this.region&&e.push("site_region",this.region),this.department&&e.push("site_department",this.department),this.version&&e.push("site_version",this.version),this.api&&e.push("api_version",this.api),e}}D.Environment=$;const P={accordion:t.internals.ns.selector("accordion"),alert:t.internals.ns.selector("alert"),badge:t.internals.ns.selector("badge"),breadcrumb:t.internals.ns.selector("breadcrumb"),button:t.internals.ns.selector("btn"),callout:t.internals.ns.selector("callout"),card:t.internals.ns.selector("card"),checkbox:t.internals.ns.selector("checkbox-group"),connect:t.internals.ns.selector("connect"),consent:t.internals.ns.selector("consent-banner"),content:t.internals.ns.selector("content-media"),download:t.internals.ns.selector("download"),follow:t.internals.ns.selector("follow"),footer:t.internals.ns.selector("footer"),header:t.internals.ns.selector("header"),highlight:t.internals.ns.selector("highlight"),input:t.internals.ns.selector("input-group"),link:t.internals.ns.selector("link"),modal:t.internals.ns.selector("modal"),navigation:t.internals.ns.selector("nav"),notice:t.internals.ns.selector("notice"),pagination:t.internals.ns.selector("pagination"),quote:t.internals.ns.selector("quote"),radio:t.internals.ns.selector("radio-group"),search:t.internals.ns.selector("search-bar"),select:t.internals.ns.selector("select"),share:t.internals.ns.selector("share"),sidemenu:t.internals.ns.selector("sidemenu"),stepper:t.internals.ns.selector("stepper"),summary:t.internals.ns.selector("summary"),tab:t.internals.ns.selector("tabs"),table:t.internals.ns.selector("table"),tag:t.internals.ns.selector("tag"),tile:t.internals.ns.selector("tile"),toggle:t.internals.ns.selector("toggle"),tooltip:t.internals.ns.selector("tooltip"),transcription:t.internals.ns.selector("transcription"),translate:t.internals.ns.selector("translate"),upload:t.internals.ns.selector("upload-group")},R="collectable",F="collecting",M="collected";class B{constructor(t){this._config=t||{},this._state=R}reset(t=!1){this.path=t?"":this._config.path,this.referrer=t?"":this._config.referrer,this.title=t?"":this._config.title,this.name=t?"":this._config.name,this.id=t?"":this._config.id,this.author=t?"":this._config.author,this.date=t?"":this._config.date,this._labels=t||!this._config.labels?["","","","",""]:this._config.labels,this._labels.length=5,this._tags=t||!this._config.tags?[]:this._config.tags,this._categories=t||!this._config.categories?["","",""]:this._config.categories,this.isError=!t&&this._config.isError,this.template=t?"":this._config.template,this.group=t?"":this._config.group,this.segment=t?"":this._config.segment,this.subtemplate=t?"":this._config.subtemplate,this.theme=t?"":this._config.theme,this.subtheme=t?"":this._config.subtheme,this.related=t?"":this._config.related,this.depth=t||isNaN(this._config.depth)?0:this._config.depth,this.current=t||isNaN(this._config.current)?-1:this._config.current,this.total=t||isNaN(this._config.total)?-1:this._config.total,this._filters=t||!this._config.filters?[]:this._config.filters}collecting(){return this._state!==R?(t.inspector.warn(`current path '${this.path}' was already collected`),!1):(this._state=F,!0)}get isCollecting(){return this._state===F}set path(t){const e=L(t,"page.path");null!==e&&(this._path=e,this._state=R)}get path(){return this._path||`${document.location.pathname}${document.location.search}`}set referrer(t){const e=L(t,"page.referrer");null!==e&&(this._referrer=e)}get referrer(){return this._referrer}set title(t){const e=L(t,"page.title");null!==e&&(this._title=e)}get title(){return this._title||document.title}set id(t){const e=L(t,"page.id");null!==e&&(this._id=e)}get id(){return this._id}set author(t){const e=L(t,"page.author");null!==e&&(this._author=e)}get author(){return this._author}set date(e){const s=((e,s,i=!0)=>{switch(!0){case e instanceof Date:return x(e);case"string"==typeof e:{const t=new Date(e);if("Invalid Date"!==t.toString())return x(t);break}case void 0===e&&i:case null===e&&i:return null}return t.inspector.warn(`unexpected value '${e}' set at analytics.${s}. Expecting a Date`),null})(e,"page.date");null!==s&&(this._date=s)}get date(){return this._date}get tags(){return this._tags}set name(t){const e=L(t,"page.name");null!==e&&(this._name=e)}get name(){return this._name||this.title}get labels(){return this._labels}get categories(){return this._categories}set isError(t){const e=S(t,"page.isError");null!==e&&(this._isError=e)}get isError(){return this._isError}set template(t){const e=L(t,"page.template");null!==e&&(this._template=e)}get template(){return this._template||"autres"}set segment(t){const e=L(t,"page.segment");null!==e&&(this._segment=e)}get segment(){return this._segment||this.template}set group(t){const e=L(t,"page.group");null!==e&&(this._group=e)}get group(){return this._group||this.template}set subtemplate(t){const e=L(t,"page.subtemplate");null!==e&&(this._subtemplate=e)}get subtemplate(){return this._subtemplate}set theme(t){const e=L(t,"page.theme");null!==e&&(this._theme=e)}get theme(){return this._theme}set subtheme(t){const e=L(t,"page.subtheme");null!==e&&(this._subtheme=e)}get subtheme(){return this._subtheme}set related(t){const e=L(t,"page.related");null!==e&&(this._related=e)}get related(){return this._related}set depth(t){const e=I(t,"page.depth");null!==e&&(this._depth=e)}get depth(){return this._depth}set current(t){const e=I(t,"page.current");null!==e&&(this._current=e)}get current(){return this._current}set total(t){const e=I(t,"page.total");null!==e&&(this._total=e)}get total(){return this._total}get filters(){return this._filters}get layer(){this._state=M;const t=[];this.path&&t.push("path",C(this.path)),this.referrer&&t.push("referrer",C(this.referrer)),this.title&&t.push("page_title",C(this.title)),this.name&&t.push("page_name",C(this.name)),this.id&&t.push("page_id",C(this.id)),this.author&&t.push("page_author",C(this.author)),this.date&&t.push("page_date",C(this.date));const e=Object.keys(P).map((t=>null!==document.querySelector(P[t])?t:null)).filter((t=>null!==t)).join(",");e&&t.push("page_components",e);const s=this._labels.slice(0,5);s.length=5,s.some((t=>t))&&t.push("pagelabel",s.map((t=>"string"==typeof t?C(t):"")).join(","));const i=this._tags;if(i.some((t=>t))&&t.push("pagetag",i.map((t=>"string"==typeof t?C(t):"")).join(",")),this._categories.forEach(((e,s)=>{e&&t.push(`page_category${s+1}`,e)})),this._isError&&t.push("error","1"),t.push("page_template",C(this.template)),t.push("pagegroup",C(this.group)),t.push("site-segment",C(this.segment)),this.subtemplate&&t.push("page_subtemplate",C(this.subtemplate)),this.theme&&t.push("page_theme",C(this.theme)),this.subtheme&&t.push("page_subtheme",C(this.subtheme)),this.related&&t.push("page_related",C(this.related)),isNaN(this.depth)||t.push("page_depth",this.depth),!isNaN(this.current)&&this.current>-1){let e=`${this.current}`;!isNaN(this.total)&&this.total>-1&&(e+=`/${this.total}`),t.push("page_pagination",e)}if(this.filters.length&&this.filters.some((t=>t))){const e=this.filters.map((t=>"string"==typeof t?C(t):""));t.push("page_filters",e.join(","))}return t}}const U={STANDARD:{id:"standard",value:"standard",isDefault:!0},AUTOCOMPLETE:{id:"autocomplete",value:"autocompletion"}};class q{constructor(t){this._config=t||{}}reset(t=!1){this.engine=t?void 0:this._config.engine,this.results=t||isNaN(this._config.results)?-1:this._config.results,this.terms=t?void 0:this._config.terms,this.category=t?void 0:this._config.category,this.theme=t?void 0:this._config.theme,this.type=t?void 0:this._config.type,this.method=t?void 0:this._config.method}set engine(t){const e=L(t,"search.engine");null!==e&&(this._engine=e)}get engine(){return this._engine}set results(t){const e=I(t,"search.results");null!==e&&(this._results=e)}get results(){return this._results}set terms(t){const e=L(t,"search.terms");null!==e&&(this._terms=e)}get terms(){return this._terms}set category(t){const e=L(t,"search.category");null!==e&&(this._category=e)}get category(){return this._category}set theme(t){const e=L(t,"search.theme");null!==e&&(this._theme=e)}get theme(){return this._theme}set type(t){const e=L(t,"search.type");null!==e&&(this._type=e),this._type=t}get type(){return this._type}set method(t){const e=Object.values(U);this._method=e.filter((e=>e.id===t||e.value===t))[0]||e.filter((t=>t.isDefault))[0]}get method(){return this._method}get layer(){const t=[];return this.engine&&t.push("isearchengine",C(this.engine)),this.results>-1&&t.push("isearchresults",this.results),this.terms&&t.push("isearchkey","search_terms","isearchdata",C(this.terms)),this.category&&t.push("isearchkey","search_category","isearchdata",C(this.category)),this.theme&&t.push("isearchkey","search_theme","isearchdata",C(this.theme)),this.type&&t.push("isearchkey","search_type","isearchdata",C(this.type)),this._method&&t.length&&t.push("isearchkey","search_method","isearchdata",this._method.value),t}}q.Method=U;class j{constructor(t){this._config=t||{}}reset(t=!1){this.id=t?void 0:this._config.id,this.type=t?void 0:this._config.type,this.name=t?void 0:this._config.name,this.step=t?void 0:this._config.step,this.current=t||isNaN(this._config.current)?-1:this._config.current,this.total=t||isNaN(this._config.total)?-1:this._config.total,this.objective=t?void 0:this._config.objective,this.error=t?void 0:this._config.error}set id(t){const e=L(t,"funnel.id");null!==e&&(this._id=e)}get id(){return this._id}set type(t){const e=L(t,"funnel.type");null!==e&&(this._type=e)}get type(){return this._type}set name(t){const e=L(t,"funnel.name");null!==e&&(this._name=e)}get name(){return this._name}set step(t){const e=L(t,"funnel.step");null!==e&&(this._step=e)}get step(){return this._step}set current(t){const e=I(t,"funnel.current");null!==e&&(this._current=e)}get current(){return this._current}set total(t){const e=I(t,"funnel.total");null!==e&&(this._total=e)}get total(){return this._total}set objective(t){const e=L(t,"funnel.objective");null!==e&&(this._objective=e),this._objective=t}get objective(){return this._objective}set error(t){const e=L(t,"funnel.error");null!==e&&(this._error=e),this._error=t}get error(){return this._error}get layer(){const t=[];return this.id&&t.push("funnel_id",C(this.id)),this.type&&t.push("funnel_type",C(this.type)),this.name&&t.push("funnel_name",C(this.name)),this.step&&t.push("funnel_step_name",C(this.step)),!isNaN(this.current)&&this.current>-1&&t.push("funnel_step_number",this.current),!isNaN(this.total)&&this.total>-1&&t.push("funnel_step_max",this.total),this.objective&&t.push("funnel_objective",C(this.objective)),this.error&&t.push("funnel_error",C(this.error)),t}}const H={IN:"in",OUT:"out",NONE:"none"},K={id:"unstarted",value:-1},V={id:"started",value:1},G={id:"singular",value:2},W={id:"ended",value:3},Y=t=>Object.entries(t).map((([t,e])=>["actionpname",C(t),"actionpvalue",C(e)])).flat();class z{constructor(t){this._isMuted=!1,this._isForced=!1,this._name=t,this._status=K,this._labels=[],this._parameters={},this._sentData=[]}get isMuted(){return this._isMuted}set isMuted(t){this._isMuted=t}get isForced(){return this._isForced}set isForced(t){this._isForced=t}get isSingular(){return this._status===G}get status(){return this._status}get name(){return this._name}get labels(){return this._labels}get reference(){return this._reference}get parameters(){return this._parameters}get mode(){return this._mode}singularize(){this._status=G}rewind(){this._sentData=[],this._status=K}addParameter(t,e){this._parameters[t]=e}removeParameter(t){delete this._parameters[t]}set reference(t){const e=L(t,`action ${this._name}`);null!==e&&(this._reference=e)}get _base(){return["actionname",this._name]}_getLayer(t={}){if(this._isMuted)return[];this._mode!==H.IN&&this._sentData.push(JSON.stringify(t));const e=this._base;switch(this._mode){case H.IN:case H.OUT:e.push("actionmode",this._mode)}const s=this._labels.slice(0,5);return s.length=5,s.some((t=>t))&&e.push("actionlabel",s.map((t=>"string"==typeof t?C(t):"")).join(",")),this._reference&&e.push("actionref",this._reference),e.push.apply(e,Y(Object.assign(this._parameters,t||{}))),e}start(e){switch(this._status){case K:this._mode=H.IN,this._status=V;break;case G:this._mode=H.NONE,this._status=W;break;default:return t.inspector.error(`unexpected start on action ${this._name} with status ${this._status.id}`),[]}return this._getLayer(e)}end(t){switch(this._status){case V:this._mode=H.OUT,this._status=W;break;case K:case G:this._mode=H.NONE,this._status=W;break;case W:if(this._sentData.includes(JSON.stringify(t)))return[];this._mode=H.NONE,this._status=W;break;default:return[]}return this._getLayer(t)}resume(e){if(this._isMuted)return[];if(this._status.value>=W.value)return t.inspector.error(`unexpected resuming on action ${this._name} with status ${this._status.id}`),[];const s=this._base;return e&&s.push.apply(s,Y(e)),s}}class Z{constructor(){this._actions=[]}rewind(){this._actions.forEach((t=>t.rewind()))}getAction(t){let e=this._actions.filter((e=>e.name===t))[0];return e||(e=new z(t),this._actions.push(e)),e}hasAction(t){return this._actions.some((e=>e.name===t))}remove(t){const e=this._actions.indexOf(t);return-1!==e&&(this._actions.splice(e,1),!0)}}Z.ActionMode=H;const X=new Z;Z.instance=X;class Q{constructor(t,e=!1){this._onRouteChange=t,this._isListeningHash=e,this._update(),f.add(this)}_update(){this._pathname=document.location.pathname,this._search=document.location.search,this._hash=document.location.hash,this._path=`${this._pathname}${this._search}`,this._isListeningHash&&(this._path+=this._hash),this._hasTitle=this._title===document.title,this._title=document.title}render(){this._pathname===document.location.pathname&&this._search===document.location.search||this.change(),this._isListeningHash&&this._hash!==document.location.hash&&this.change()}change(){this._referrer=this._path,this._update(),this._onRouteChange()}get path(){return this._path}get hasTitle(){return this._hasTitle}get title(){return this._title}get referrer(){return this._referrer}}const J={COLLECT:t.internals.ns.event("collect")},tt={REWIND:t.internals.ns.emission("analytics","rewind")};class et{constructor(e){switch(e.collection){case s.MANUAL:case s.LOAD:case s.FULL:case s.HASH:this._collection=e.collection;break;default:if(e.mode&&"manual"===e.mode)this._collection=e.collection;switch(!0){case"manual"===e.mode:this._collection=s.MANUAL;break;case t.mode===t.Modes.ANGULAR:case t.mode===t.Modes.REACT:case t.mode===t.Modes.VUE:this._collection=s.FULL;break;default:this._collection=s.LOAD}}this._isActionEnabled="false"===e.isActionEnabled||e.isActionEnabled,this._user=new k(e.user),this._site=new D(e.site),this._page=new B(e.page),this._search=new q(e.search),this._funnel=new j(e.funnel),this._delay=-1,v.setCollector(this)}get page(){return this._page}get user(){return this._user}get site(){return this._site}get search(){return this._search}get funnel(){return this._funnel}start(){const t=this._handleRouteChange.bind(this);switch(this._collection){case s.LOAD:this.collect();break;case s.FULL:this.collect(),this._location=new Q(t);break;case s.HASH:this.collect(),this._location=new Q(t,!0)}}_handleRouteChange(){v.send(!0),this._delay=6,f.add(this)}render(){this._delay--,this._delay<0&&(f.remove(this),this._routeChanged())}_routeChanged(){X.rewind(),this._page.referrer=this._location.referrer,this._location.hasTitle&&(this._page.title=this._location.title),this._page.path=this._location.path;const e=new CustomEvent(J.COLLECT);document.documentElement.dispatchEvent(e),this.collect(),t.internals&&t.internals.stage&&t.internals.stage.root&&t.internals.stage.root.descend(tt.REWIND)}reset(t=!1){this._user.reset(t),this._site.reset(t),this._page.reset(t),this._search.reset(t),this._funnel.reset(t)}collect(){this.page.collecting()&&v.collect()}get collection(){return this._collection}get isCollecting(){return this._page.isCollecting}get isActionEnabled(){return this._isActionEnabled}set isActionEnabled(t){this._isActionEnabled=t}get layer(){return[...this._user.layer,...this._site.layer,...this._page.layer,...this._search.layer,...this._funnel.layer]}}const st=new class{constructor(){this._isReady=!1,this._readiness=new Promise(((t,e)=>{this._isReady?t():(this._resolve=t,this._reject=e)})),this._configure()}_configure(){switch(!0){case void 0!==window[e]:this._config=window[e].configuration.analytics,window[e].promise.then(this._build.bind(this),(()=>{}));break;case void 0!==t.internals&&void 0!==t.internals.configuration&&void 0!==t.internals.configuration.analytics&&void 0!==t.internals.configuration.analytics.domain:this._config=t.internals.configuration.analytics,this._build();break;case void 0!==t.analytics&&void 0!==t.analytics.domain:this._config=t.analytics,this._build();break;default:t.inspector.warn("analytics configuration is incorrect or missing (required : domain)")}}_build(){this._init=new l(this._config.domain),this._init.configure().then(this._start.bind(this),(t=>this._reject(t)))}get isReady(){return this._isReady}get readiness(){return this._readiness}_start(){this._isReady||(this._cmp=new p(this._config.cmp),this._collector=new et(this._config),this._collector.reset(),this._isReady=!0,this._resolve(),v.start(),this._collector.start())}get page(){return this._collector.page}get user(){return this._collector.user}get site(){return this._collector._site}get search(){return this._collector.search}get funnel(){return this._collector.funnel}get cmp(){return this._cmp}get opt(){return a}get collection(){return this._collector.collection}get isActionEnabled(){return this._collector.isActionEnabled}set isActionEnabled(t){this._collector.isActionEnabled=t}get isDebugging(){return T.isActive}set isDebugging(t){T.isActive=t}push(t,e){m(t,e)}reset(t=!1){this._collector.reset()}collect(){this._collector.collect()}};st.Collection=s,st.PushType=b;t.analytics=((t,...e)=>(e.forEach((e=>{const s=Object.keys(e).reduce(((t,s)=>(t[s]=Object.getOwnPropertyDescriptor(e,s),t)),{});Object.getOwnPropertySymbols(e).forEach((t=>{const i=Object.getOwnPropertyDescriptor(e,t);i.enumerable&&(s[t]=i)})),Object.defineProperties(t,s)})),t))(st,{});const it={IMPRESSION:{id:"impression",isSingular:!0,isBeginning:!0,attributed:!1,type:"impression"},CLICK:{id:"click",isBeginning:!0,attributed:!0,type:"interaction",event:"click",method:"eventListener"},INTERNAL:{id:"internal",isBeginning:!0,attributed:!0,type:"interaction",event:"click",method:"eventListener"},EXTERNAL:{id:"external",isBeginning:!0,attributed:!0,type:"interaction",event:"click",method:"eventListener"},DOWNLOAD:{id:"download",isBeginning:!0,attributed:!0,type:"interaction",event:"click",method:"eventListener"},BUTTON:{id:"button",isBeginning:!0,attributed:!0,type:"interaction",event:"click",method:"eventListener"},DOUBLE_CLICK:{id:"dblclick",isBeginning:!0,attributed:!0,type:"interaction",event:"dblclick",method:"eventListener"},OPEN:{id:"open",isSingular:!0,attributed:!1,type:"event",method:"eventListener"},COMPLETE:{id:"complete",isSingular:!0,attributed:!1,type:"event",method:"eventListener"},FOCUS:{id:"focus",isSingular:!0,attributed:!1,type:"event",method:"eventListener"},ERROR:{id:"error",isSingular:!0,attributed:!1,type:"event"},ADD:{id:"add",isSingular:!0,attributed:!1,type:"event"},REMOVE:{id:"remove",isSingular:!0,attributed:!1,type:"event"},DISPLAY:{id:"display",isSingular:!0,attributed:!1,type:"event"},CHANGE:{id:"change",isSingular:!0,attributed:!0,type:"event",event:"change",method:"change"},PROGRESS:{id:"progress",isBeginning:!0,attributed:!0,type:"event"},SHARE:{id:"share",isBeginning:!0,attributed:!1,type:"interaction"},PRESS:{id:"press",isBeginning:!0,attributed:!1,type:"interaction"},RELEASE:{id:"release",isBeginning:!0,attributed:!1,type:"interaction"},DISMISS:{id:"dismiss",isBeginning:!0,attributed:!1,type:"interaction"},UPLOAD:{id:"upload",isBeginning:!0,attributed:!1,type:"interaction"},CHECK:{id:"check",isBeginning:!0,attributed:!1,type:"interaction"},UNCHECK:{id:"uncheck",isBeginning:!0,attributed:!1,type:"interaction"},SELECT:{id:"select",isBeginning:!0,attributed:!1,type:"interaction"},SUBSCRIBE:{id:"subscribe",isBeginning:!0,attributed:!1,type:"interaction"},DISCLOSE:{id:"disclose",isBeginning:!0,attributed:!1,type:"event"},SEARCH:{id:"search",isBeginning:!0,attributed:!1,type:"event"},SHOW:{id:"show",isSingular:!0,attributed:!1,type:"event"},HIDE:{id:"hide",isSingular:!0,attributed:!1,type:"event"},AUTOPLAY:{id:"autoplay",isBeginning:!0,attributed:!1,type:"event"},PLAY:{id:"play",isBeginning:!0,attributed:!1,type:"interaction"},PAUSE:{id:"pause",isBeginning:!0,attributed:!1,type:"interaction"},END:{id:"end",isBeginning:!0,attributed:!1,type:"event"}},nt="undefined",rt="heading",at="component",ot="content",lt=Node.DOCUMENT_POSITION_PRECEDING|Node.DOCUMENT_POSITION_CONTAINED_BY;class ct{constructor(t){this._label=t.textContent.trim(),this._level=Number(t.tagName.charAt(1))}get level(){return this._level}get label(){return this._label}}class ht{constructor(t,e,s){this._type=nt,this._node=t,this._target=e,this._level=s,this._label="",this._component="",this._isValid=!0,this.analyse()}_parseHeadings(){const t=Array.from({length:this._level},((t,e)=>`h${e+1}`)).join(",");this._headings=Array.from(this._node.querySelectorAll(t)).filter((t=>t===this._node||t.parentNode===this._node||null!=t.parentNode&&t.parentNode.parentNode===this._node)).filter((t=>(this._target.compareDocumentPosition(t)&lt)>0)).map((t=>new ct(t))).reverse()}_getComponent(){if("function"!=typeof t)return!1;const e=t(this._node);if(!e)return!1;const s=Object.values(e).filter((t=>t.isActionee)).sort(((t,e)=>e.priority-t.priority))[0];if(!s)return!1;this._type=at,this._isValid=s.validate(this._target);const i=Array.from({length:6},((t,e)=>`h${e+1}`)).join(","),n=Array.from(this._node.querySelectorAll(i)).map((t=>new ct(t))).sort(((t,e)=>t.level-e.level))[0];n&&n.level<=this._level&&(this._level=n.level-1);const r=this._node.closest(i);if(r){const t=new ct(r);t.level<=this._level&&(this._level=t.level-1)}return!isNaN(s.level)&&s.level<this._level&&(this._level=s.level),this._label=s.label,this._component=s.component,!0}_getHeading(){if(!this._headings.length)return!1;const t=[];return this._headings.forEach((e=>{e.level<=this._level&&(e.level>1&&t.unshift(e.label),this._level=e.level-1)})),!!t.length&&(this._type=rt,this._label=t.join(" "),!0)}analyse(){if(this._parseHeadings(),this._getComponent())return;if(this._getHeading())return;if(this._node!==this._target)return;const t=this._node.textContent.trim();t&&(this._type=ot,this._label=t)}get type(){return this._type}get level(){return this._level}get label(){return this._label}get component(){return this._component}get node(){return this._node}get target(){return this._target}get isValid(){return this._isValid}}class ut{constructor(t){this._node=t,this._process()}_process(){const t=new ht(this._node,this._node,6);this._level=t.level,this._members=[t];let e=this._node.parentNode;for(;document.documentElement.contains(e)&&e!==document.documentElement&&this._level>0;){const t=new ht(e,this._node,this._level);switch(!0){case t.type===nt:case!t.isValid:case t.label===this._members[0].label&&t.type===rt&&this._members[0].type===at:break;case t.label===this._members[0].label&&t.type===at&&this._members[0].type===rt:this._members.splice(0,1,t);break;default:this._members.unshift(t),t.level<this._level&&(this._level=t.level)}e=e.parentNode}this._label=C(this._members[this._members.length-1].label),this._title=C(this._members.filter((t=>t.label)).map((t=>t.label)).join(" "));const s=this._members.filter((t=>t.component)).map((t=>t.component));this._component=C(s.join(" ")),this._localComponent=s[s.length-1],this._globalComponent=s[0]}get localComponent(){return this._localComponent}get globalComponent(){return this._globalComponent}get label(){return this._label}get title(){return this._title}get component(){return this._component}}class gt{constructor(t,e,s,i="",n=null,r={},a=!1,o=!1){this._node=t,this._type=e,this._id=s||this._node.id,this._isMuted=!1,this._title=n,this._category=i,this._parameters=r,this._isRating=a,this._isForced=o,this._hasBegun=!1,requestAnimationFrame(this._init.bind(this))}_init(){this._hierarchy=new ut(this._node);let e="",s="";this._id?e=`_[${this._id}]`:t.inspector.warn(`Analytics API requires an id to be set on tracked element. Missing on ${this._node.outerHTML}`),this._type&&(s=`(${this._type.id})_`),this._name=`${s}${this._title||this._hierarchy.title}${e}`,this._action=X.getAction(this._name,this._type.status),this._type.isSingular&&this._action.singularize(),Object.keys(this._parameters).forEach((t=>this._action.addParameter(t,this._parameters[t]))),this._action.isMuted=this._isMuted,this._action.isForced=this._isForced,this._action.labels[0]=this._type.id,this._action.labels[1]=this._hierarchy.globalComponent,this._action.labels[2]=this._hierarchy.localComponent,this._action.labels[4]=this._category,this._hierarchy.label&&this._action.addParameter("component_label",this._hierarchy.label),this._hierarchy.title&&this._action.addParameter("heading_hierarchy",this._hierarchy.title),this._hierarchy.component&&this._action.addParameter("component_hierarchy",this._hierarchy.component),this.begin()}get isMuted(){return this._action?this._action.isMuted:this._isMuted}set isMuted(t){this._isMuted=t,this._action&&(this._action.isMuted=t)}get action(){return this._action}rewind(){this._hasBegun=!1,this.begin()}begin(t={}){this._hasBegun||(this._hasBegun=!0,this._type.isBeginning&&(this._type.isSingular||this._isRating)&&v.appendStartingAction(this._action,t))}act(t={}){this._isMuted||(this._action?v.appendEndingAction(this._action,t):requestAnimationFrame((()=>this.act(t))))}dispose(){X.remove(this._action)}}const dt={RATING:t.internals.ns.attr("analytics-rating"),ACTION:t.internals.ns.attr("analytics-action")};class _t extends t.core.Instance{constructor(t=-1,e="",s=null,i=!1){super(),this._type=null,this._priority=t,this._category=e,this._title=s,this._parameters={},this._data={},this._isMuted=!1,this._isForced=i}static get instanceClassName(){return"Actionee"}get proxy(){const e=this,s={validate:(t,s)=>e.validate(t,s)},i={get isActionee(){return!0},get label(){return e.label},get priority(){return e.priority},get level(){return e.level},get node(){return e.node}};return t.internals.property.completeAssign(super.proxy,s,i)}get data(){return this._data}_config(t,e){if(super._config(t,e),null===this._type)return this._sort(t),void(this._isMuted=!0);this._actionElement=new gt(this.node,this._type,this.id,this._category,this.getAttribute(dt.ACTION)||this._title,this._parameters,this.hasAttribute(dt.RATING),this.hasAttribute(dt.ACTION)||this._isForced),this._isMuted&&(this._actionElement.isMuted=!0),this.addDescent(tt.REWIND,this.rewind.bind(this)),this._sort(t)}_sort(t){const e=t.instances.filter((t=>t.isActionee)).sort(((t,e)=>e.priority-t.priority));e.length<=1||e.forEach(((t,e)=>{t.isMuted=e>0}))}get isMuted(){return this._actionElement?this._actionElement.isMuted:this._isMuted}set isMuted(t){this._isMuted=t,this._actionElement&&(this._actionElement.isMuted=t)}get priority(){return this._priority}setPriority(t){this._priority=t}get isInteractive(){return"A"===this.node.tagName||"BUTTON"===this.node.tagName}detectInteractionType(t){t||(t=this.node);const e=t.tagName,s=t.getAttribute("href"),i=t.hasAttribute("download"),n=t.hostname;switch(!0){case"A"!==e:this._type=it.CLICK;break;case i:this._type=it.DOWNLOAD,this.value=s;break;case n===location.hostname:this._type=it.INTERNAL,this.value=s;break;case n.length>0:this._type=it.EXTERNAL,this.value=s;break;default:this._type=it.CLICK}}setClickType(){this._type=it.CLICK}listenActionClick(t){t?(this._clickTarget=t,this._clickTarget.addEventListener("click",this._handlingClick,{capture:!0})):this.listenClick({capture:!0})}handleClick(){this.act()}setImpressionType(){this._type=it.IMPRESSION}rewind(){this._actionElement&&this._actionElement.rewind()}act(t={}){void 0!==this._actionElement&&(this._data.component_value=this.value,this._actionElement.act(Object.assign(this._data,t)))}getFirstText(t){if(t||(t=this.node),t.childNodes&&t.childNodes.length>0){for(let e=0;e<t.childNodes.length;e++)if(t.childNodes[e].nodeType===Node.TEXT_NODE){const s=t.childNodes[e].textContent.trim();if(s)return this.cropText(s)}for(let e=0;e<t.childNodes.length;e++){const s=this.getFirstText(t.childNodes[e]);if(s)return this.cropText(s)}}return""}cropText(t,e=50){return t.length>50?`${t.substring(0,50).trim()}[...]`:t}getInteractionLabel(){const t=this.getAttribute("title");if(t)return this.cropText(t);const e=this.getFirstText();if(e)return e;const s=this.node.querySelector("img");if(s){const t=s.getAttribute("alt");if(t)return this.cropText(t)}return null}getHeadingLabel(t=6){const e=Array.from({length:t},((t,e)=>`h${e+1}`)).join(","),s=Array.from(this.querySelectorAll(e)).filter((t=>(this.node.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)>0));if(s.length)for(const t of s){const e=this.getFirstText(t);if(e)return e}}detectLevel(t){t||(t=this.node);const e=Array.from({length:6},((t,e)=>`h${e+1}`)).join(","),s=Array.from(t.querySelectorAll(e)).map((t=>Number(t.tagName.charAt(1))));s.length&&(this._level=Math.min.apply(null,s)-1)}validate(t){return!0}get actionElement(){return this._actionElement}get label(){return null}get value(){return this._value||this.label}set value(t){this._value=t}get isActionee(){return!0}get level(){return this._level}get type(){return this._type}dispose(){this._clickTarget&&this._clickTarget.removeEventListener("click",this._handlingClick),super.dispose()}}class pt extends _t{constructor(){super(100,"",null,!0)}static get instanceClassName(){return"AttributeActionee"}init(){this._attribute=this.registration.selector.replace(/[[\]]/g,"");const t=this._attribute.split("-").pop();switch(this._type=Object.values(it).filter((e=>e.id===t))[0],this._title=this.getAttribute(this._attribute),this._type===it.CLICK&&this.detectInteractionType(),this._type.method){case"eventListener":this.listen(this._type.event,this.handleEvent.bind(this));break;case"change":this.listen(this._type.event,this.handleChange.bind(this))}}handleEvent(t){this._actionElement.act()}handleChange(t){this._actionElement.act({change_value:t.target.value})}dispose(){this._actionElement.dispose(),super.dispose()}}const mt={CLICK:t.internals.ns.emission("button","click")};class bt extends _t{constructor(t=-1){super(t,"dsfr_component")}static get instanceClassName(){return"ComponentActionee"}get proxy(){const e=this,s={get component(){return e.component}};return t.internals.property.completeAssign(super.proxy,s)}setDiscloseType(){this._type=it.DISCLOSE}listenDisclose(){this.listen(t.core.DisclosureEvent.DISCLOSE,this._handleDisclose.bind(this),{capture:!0})}_handleDisclose(){this.act()}setChangeType(){this._type=it.CHANGE}listenChange(){this.listen("change",this._handleChange.bind(this),{capture:!0})}_handleChange(t){t.target&&t.target.value&&(this.setChangeValue(t),this.act())}setChangeValue(t){this.value=t.target.value}listenInputValidation(t,e=it.CLICK,s=!1){t||(t=this.node),this._type=e,this._isSendingInputValue=s,this.addAscent(mt.CLICK,this._actValidatedInput.bind(this));const i=this.element.getDescendantInstances("ButtonActionee",null,!0)[0];i&&(i.isMuted=!0),this._validatedInput=t.querySelector("input"),this._handlingInputValidation=this._handleInputValidation.bind(this),this._validatedInput&&this._validatedInput.addEventListener("keydown",this._handlingInputValidation)}_handleInputValidation(t){13===t.keyCode&&this._actValidatedInput()}_actValidatedInput(){this._isActingValidatedInput||(this._isActingValidatedInput=!0,this._isSendingInputValue&&(this.value=this._validatedInput.value.trim()),this.act(),this.request(this._actedValidatedInput.bind(this)))}_actedValidatedInput(){this._isActingValidatedInput=!1}setCheckType(){this._type=it.CHECK}detectCheckableType(){const t=this.node.checked;this._type=t?it.UNCHECK:it.CHECK}listenCheckable(){this.listen("change",this._handleCheckable.bind(this),{capture:!0})}_handleCheckable(t){switch(t.target&&"on"!==t.target.value&&(this.value=t.target.value),!0){case this._type===it.CHECK&&t.target.checked:case this._type===it.UNCHECK&&!t.target.checked:this.act()}}detectPressableType(){const t=this.node.hasAttribute("aria-pressed");if(t){const t="true"===this.node.getAttribute("aria-pressed");this._type=t?it.RELEASE:it.PRESS}return t}listenPressable(){this.listen("click",this._handlePressable.bind(this),{capture:!0})}_handlePressable(t){switch(!0){case this._type===it.PRESS&&"false"===t.target.getAttribute("aria-pressed"):case this._type===it.RELEASE&&"true"===t.target.getAttribute("aria-pressed"):this.act()}}setDismissType(){this._type=it.DISMISS}get component(){return null}dispose(){this._validatedInput&&this._validatedInput.removeEventListener("keydown",this._handlingInputValidation),super.dispose()}}const ft={ACCORDION:t.internals.ns.selector("accordion"),TITLE:t.internals.ns.selector("accordion__title")},yt="accordion";class vt extends bt{constructor(){super(2)}static get instanceClassName(){return"AccordionButtonActionee"}init(){this.isMuted=!0}get button(){return this.element.getInstance("CollapseButton")}get label(){const t=this.getFirstText();return t||"bouton d'accordéon"}get component(){return yt}}class Tt extends bt{constructor(){super(2)}static get instanceClassName(){return"AccordionActionee"}init(){this.setDiscloseType(),this.wrapper=this.node.closest(ft.ACCORDION),this.detectLevel(this.wrapper),this.register(`[aria-controls="${this.id}"]`,vt),this.listenDisclose()}get label(){if(this.wrapper){const t=this.wrapper.querySelector(ft.TITLE);if(t){const e=this.getFirstText(t);if(e)return e}}const t=this.element.getInstance("Collapse");if(t){const e=t.buttons.filter((t=>t.isPrimary))[0];if(e){const t=this.getFirstText(e);if(t)return t}}return"accordéon"}get component(){return yt}dispose(){super.dispose()}}const At={ALERT:t.internals.ns.selector("alert"),TITLE:t.internals.ns.selector("alert__title")};class Nt extends bt{constructor(){super(1)}static get instanceClassName(){return"AlertActionee"}get label(){const t=this.node.querySelector(At.TITLE);if(t){const e=this.getFirstText(t);if(e)return e}return"alerte"}get component(){return"alert"}}const Et={LINK:`${t.internals.ns.selector("breadcrumb__link")}:not([aria-current])`,COLLAPSE:`${t.internals.ns.selector("breadcrumb")} ${t.internals.ns.selector("collapse")}`};class Ct extends bt{constructor(){super(2)}static get instanceClassName(){return"BreadcrumbActionee"}get label(){return"fil d'ariane"}get component(){return"breadcrumb"}}class Lt extends bt{constructor(){super(2)}static get instanceClassName(){return"BreadcrumbLinkActionee"}init(){this.detectInteractionType(),this.listenActionClick()}handleClick(){this.act()}get label(){const t=this.getFirstText();return t||"lien fil d'ariane"}get component(){return null}}const It={BUTTON:`${t.internals.ns.selector("btn")}:not(${t.internals.ns.selector("btn--close")})`};class St extends bt{constructor(){super(1),this._data={}}static get instanceClassName(){return"ButtonActionee"}init(){this.detectInteractionType(),this.listenActionClick()}handleClick(){this.ascend(mt.CLICK),this.act()}get label(){if("input"===this.node.tagName)switch(this.node.type){case"button":case"submit":if(this.hasAttribute("value"))return this.getAttribute("value")}const t=this.getFirstText();return t||"bouton"}get component(){return"button"}}const Ot={CALLOUT:t.internals.ns.selector("callout"),TITLE:t.internals.ns.selector("callout__title")};class wt extends bt{constructor(){super(1)}static get instanceClassName(){return"CalloutActionee"}get label(){const t=this.node.querySelector(Ot.TITLE);if(t){const e=this.getFirstText(t);if(e)return e}return"mise en avant"}get component(){return"callout"}}const xt={CARD:t.internals.ns.selector("card"),LINK:`${t.internals.ns.selector("card__title")} a, ${t.internals.ns.selector("card__title")} button`,TITLE:t.internals.ns.selector("card__title")};class kt extends bt{constructor(){super(1)}static get instanceClassName(){return"CardActionee"}init(){const t=this.node.querySelector(xt.LINK);t&&(this.link=t,this.detectInteractionType(t),this.listenActionClick(t))}get label(){const t=this.node.querySelector(xt.TITLE);if(t){const e=this.getFirstText(t);if(e)return e}const e=this.getHeadingLabel();return e||"carte"}get component(){return"card"}}const $t={INPUT:t.internals.ns.selector('checkbox-group [type="checkbox"]')};class Dt extends bt{constructor(){super(1),this._data={}}static get instanceClassName(){return"CheckboxActionee"}init(){this.detectCheckableType(),this.listenCheckable()}get label(){const e=this.node.parentNode.querySelector(t.internals.ns.selector("label"));if(e){const t=this.getFirstText(e);if(t)return t}return"case à cocher"}get component(){return"checkbox"}}const Pt={CONNECT:t.internals.ns.selector("connect"),LINK:t.internals.ns.selector("connect + * a, connect + a")},Rt="connect";class Ft extends bt{constructor(){super(1)}static get instanceClassName(){return"ConnectActionee"}init(){this.detectInteractionType(),this.listenActionClick()}get label(){return this.node.classList.contains("fr-connect--plus")?"FranceConnect+":"FranceConnect"}get component(){return Rt}}class Mt extends bt{constructor(){super(2)}static get instanceClassName(){return"ConnectLinkActionee"}init(){this.detectInteractionType(),this.listenActionClick()}get label(){return this.getFirstText()||"qu'est-ce que FranceConnect ?"}get component(){return Rt}}const Bt={BANNER:t.internals.ns.selector("consent-banner")};class Ut extends bt{constructor(){super(1)}static get instanceClassName(){return"ConsentActionee"}get label(){return"gestionnaire de consentement"}get component(){return"consent"}}const qt={LINK:t.internals.ns.selector("download__link")};class jt extends bt{constructor(){super(1)}static get instanceClassName(){return"DownloadActionee"}init(){this.detectInteractionType(),this.listenActionClick()}get label(){const t=this.getFirstText();return t||"téléchargement"}get component(){return"download"}}const Ht={FOLLOW:t.internals.ns.selector("follow"),NEWSLETTER_INPUT_GROUP:t.internals.ns.selector("follow__newsletter")+" "+t.internals.ns.selector("input-group")};class Kt extends bt{constructor(){super(2)}static get instanceClassName(){return"FollowActionee"}init(){if(this._inputGroup=this.querySelector(Ht.NEWSLETTER_INPUT_GROUP),this._inputGroup){this.listenInputValidation(this._inputGroup,it.SUBSCRIBE);const t=this.element.getDescendantInstances("InputActionee",null,!0)[0];t&&(t.isMuted=!0)}}get label(){return"lettre d'information et réseaux sociaux"}get component(){return"follow"}}const Vt={FOOTER:t.internals.ns.selector("footer"),FOOTER_LINKS:`${t.internals.ns.selector("footer")} a[href], ${t.internals.ns.selector("footer")} button`};class Gt extends bt{constructor(){super(1)}static get instanceClassName(){return"FooterActionee"}get label(){return"pied de page"}get component(){return"footer"}}class Wt extends bt{constructor(){super(2)}static get instanceClassName(){return"FooterLinkActionee"}init(){this.detectInteractionType(),this.listenActionClick()}get label(){const t=this.getInteractionLabel();return t||"lien pied de page"}}class Yt extends bt{constructor(){super(1)}static get instanceClassName(){return"HeaderActionee"}get label(){return"en-tête"}get component(){return"header"}}class zt extends bt{constructor(){super(4)}static get instanceClassName(){return"HeaderModalButtonActionee"}}class Zt extends bt{constructor(){super(0)}static get instanceClassName(){return"HeaderModalActionee"}init(){this.isBreakpoint(t.core.Breakpoints.LG)&&(this.setPriority(4),this.register(`[aria-controls="${this.id}"]`,zt))}}const Xt={TOOLS_BUTTON:`${t.internals.ns.selector("header__tools-links")} ${t.internals.ns.selector("btns-group")} ${t.internals.ns.selector("btn")}`,MENU_BUTTON:`${t.internals.ns.selector("header__menu-links")} ${t.internals.ns.selector("btns-group")} ${t.internals.ns.selector("btn")}`};class Qt extends bt{constructor(){super(4)}static get instanceClassName(){return"HeaderToolsButtonActionee"}init(){this.isBreakpoint(t.core.Breakpoints.LG)&&(this._priority=-1)}}class Jt extends bt{static get instanceClassName(){return"HeaderMenuButtonActionee"}init(){this.isBreakpoint(t.core.Breakpoints.LG)&&this.setPriority(4)}}const te={HIGHLIGHT:t.internals.ns.selector("highlight")};class ee extends bt{constructor(){super(1)}static get instanceClassName(){return"HighlightActionee"}get label(){return"mise en exergue"}get component(){return"highlight"}}const se={LINK:t.internals.ns.selector("link")};class ie extends bt{constructor(){super(1)}static get instanceClassName(){return"LinkActionee"}init(){this.detectInteractionType(),this.listenActionClick()}get label(){const t=this.getFirstText();return t||"lien"}get component(){return"link"}}const ne={INPUT:t.internals.ns.selector("input-group")};class re extends bt{constructor(){super(1)}static get instanceClassName(){return"InputActionee"}init(){this._input=this.querySelector(t.internals.ns.selector("input")),this._label=this.querySelector(t.internals.ns.selector("label")),this._inputWrap=this.querySelector(t.internals.ns.selector("input-wrap")),this._inputWrap&&this.listenInputValidation(this._inputWrap)}get label(){if(this._label){const t=this.getFirstText(this._label);if(t)return t}return"champ de saisie"}get component(){return"input"}}const ae={TITLE:t.internals.ns.selector("modal__title")};class oe extends bt{constructor(){super(2)}static get instanceClassName(){return"ModalActionee"}init(){this.setDiscloseType(),this.detectLevel(),this.listenDisclose()}get label(){const t=this.node.querySelector(ae.TITLE);if(t){const e=this.getFirstText(t);if(e)return e}const e=this.getHeadingLabel(2);if(e)return e;const s=this.element.getInstance("Modal");if(s){const t=s.buttons.filter((t=>t.isPrimary))[0];if(t){const e=this.getFirstText(t.node);if(e)return e}}return"modale"}get component(){return"modal"}}class le extends bt{constructor(){super(1)}static get instanceClassName(){return"NavigationActionee"}get label(){return"navigation"}}const ce={LINK:t.internals.ns.selector("nav__link"),BUTTON:t.internals.ns.selector("nav__btn")};class he extends bt{constructor(){super(2)}static get instanceClassName(){return"NavigationLinkActionee"}init(){this.detectInteractionType(),this.listenActionClick()}get label(){const t=this.getFirstText();return t||"lien de navigation"}get component(){return"navigation"}}class ue extends bt{constructor(){super(2)}static get instanceClassName(){return"NavigationSectionActionee"}init(){this._wrapper=this.node.closest(t.navigation.NavigationSelector.ITEM)}get label(){if(this._wrapper){const t=this._wrapper.querySelector(ce.BUTTON);if(t){const e=this.getFirstText(t);if(e)return e}}const t=this.element.getInstance("Collapse");if(t){const e=t.buttons.filter((t=>t.isPrimary))[0];if(e){const t=this.getFirstText(e);if(t)return t}}return"section de navigation"}}const ge={PAGINATION:t.internals.ns.selector("pagination"),LINK:t.internals.ns.selector("pagination__link"),NEXT_LINK:t.internals.ns.selector("pagination__link--next"),LAST_LINK:t.internals.ns.selector("pagination__link--last"),ANALYTICS_TOTAL:t.internals.ns.attr("analytics-page-total"),CURRENT:'[aria-current="page"]'};class de extends bt{constructor(){super(1)}static get instanceClassName(){return"PaginationActionee"}init(){this.setPagination()}get label(){return"pagination"}get component(){return"pagination"}setPagination(){const e=this.node.querySelector(ge.CURRENT);if(!e)return;const s=this.getFirstText(e);if(!s)return;const i=this.getInt(s);if(isNaN(i))return;t.analytics.page.current=i;const n=this.getTotalPage();isNaN(n)||(t.analytics.page.total=n)}getTotalPage(){const t=parseInt(this.node.getAttribute(ge.ANALYTICS_TOTAL));if(!isNaN(t))return t;const e=this.node.querySelectorAll(`${ge.LINK}:not(${ge.NEXT_LINK}):not(${ge.LAST_LINK})`);if(!e)return null;const s=this.getFirstText(e[e.length-1]);return s?this.getInt(s):null}getInt(t){const e=t.match(/\d+/);return e&&0!==e.length?parseInt(e[0]):null}}class _e extends bt{constructor(){super(1)}static get instanceClassName(){return"PaginationLinkActionee"}init(){this.detectInteractionType(),this.listenActionClick()}get label(){const t=this.getFirstText();return t||"lien pagination"}get component(){return null}}const pe={QUOTE:t.internals.ns.selector("quote")};class me extends bt{constructor(){super(1)}static get instanceClassName(){return"QuoteActionee"}get label(){const t=this.node.querySelector("blockquote");if(t){const e=this.getFirstText(t);if(e)return e}return"citation"}get component(){return"quote"}}const be={INPUT:t.internals.ns.selector('radio-group [type="radio"]')},fe={LABEL:t.internals.ns.selector("label"),FIELDSET:t.internals.ns.selector("fieldset"),LEGEND:t.internals.ns.selector("fieldset__legend")};class ye extends bt{constructor(){super(1),this._data={}}static get instanceClassName(){return"RadioActionee"}init(){this.setCheckType(),this.listenCheckable()}get label(){const e=[],s=this.node.closest(fe.FIELDSET);if(s){const t=s.querySelector(fe.LEGEND);if(t){const s=this.getFirstText(t);s&&e.push(s)}}const i=this.node.parentNode.querySelector(t.internals.ns.selector("label"));if(i){const t=this.getFirstText(i);t&&e.push(t)}return e.join(" ")}get component(){return"radio"}}const ve={SEARCH_BAR:t.internals.ns.selector("search-bar")};class Te extends bt{constructor(){super(2)}static get instanceClassName(){return"SearchActionee"}init(){this.listenInputValidation(this.node,it.SEARCH,!0)}get label(){return"barre de recherche"}get component(){return"search"}}const Ae={SELECT:t.internals.ns.selector("select")};class Ne extends bt{constructor(){super(1),this._data={}}static get instanceClassName(){return"SelectActionee"}init(){this.setChangeType(),this.listenChange()}setChangeValue(t){if(!t.target||!t.target.selectedOptions)return;const e=Array.from(t.target.selectedOptions).map((t=>t.text)).join(" - ");e&&(this.value=e)}get label(){const e=this.node.parentNode.querySelector(t.internals.ns.selector("label"));if(e){const t=this.getFirstText(e);if(t)return t}return"liste déroulante"}get component(){return"select"}}const Ee={SHARE:t.internals.ns.selector("share"),TITLE:t.internals.ns.selector("share__title")};class Ce extends bt{constructor(){super(1)}static get instanceClassName(){return"ShareActionee"}get label(){const t=this.querySelector(Ee.TITLE);if(t){const e=this.getFirstText(t);if(e)return e}return"boutons de partage"}get component(){return"share"}}const Le={SIDEMENU:t.internals.ns.selector("sidemenu"),ITEM:t.internals.ns.selector("sidemenu__item"),LINK:t.internals.ns.selector("sidemenu__link"),BUTTON:t.internals.ns.selector("sidemenu__btn"),TITLE:t.internals.ns.selector("sidemenu__title")};class Ie extends bt{constructor(){super(1)}static get instanceClassName(){return"SidemenuActionee"}get label(){const t=this.node.closest(Le.SIDEMENU);if(t){const e=t.querySelector(Le.TITLE);if(e){const t=this.getFirstText(e);if(t)return t}}return"menu Latéral"}}class Se extends bt{constructor(){super(2)}static get instanceClassName(){return"SidemenuLinkActionee"}init(){this.detectInteractionType(),this.listenActionClick()}get label(){const t=this.getFirstText();return t||"lien menu latéral"}get component(){return"sidemenu"}}class Oe extends bt{constructor(){super(2)}static get instanceClassName(){return"SidemenuSectionActionee"}init(){this._wrapper=this.node.closest(Le.ITEM)}get label(){if(this._wrapper){const t=this._wrapper.querySelector(Le.BUTTON);if(t){const e=this.getFirstText(t);if(e)return e}}const t=this.element.getInstance("Collapse");if(t){const e=t.buttons.filter((t=>t.isPrimary))[0];if(e){const t=this.getFirstText(e);if(t)return t}}return"section menu latéral"}}const we={SUMMARY:t.internals.ns.selector("summary"),LINK:t.internals.ns.selector("summary__link"),TITLE:t.internals.ns.selector("summary__title"),ITEM:`${t.internals.ns.selector("summary")} li`};class xe extends bt{constructor(){super(1)}static get instanceClassName(){return"SummaryActionee"}get label(){const t=this.node.querySelector(we.TITLE);if(t){const e=this.getFirstText(t);if(e)return e}return"sommaire"}}class ke extends bt{constructor(){super(1)}static get instanceClassName(){return"SummaryLinkActionee"}init(){this.detectInteractionType(),this.listenActionClick()}get label(){const t=this.getFirstText();return t||"lien sommaire"}get component(){return"summary"}}class $e extends bt{constructor(){super(2)}static get instanceClassName(){return"SummarySectionActionee"}init(){this._link=this.querySelector(we.LINK)}validate(t){return this._link!==t}get label(){if(!this._link)return null;const t=this.getFirstText(this._link);return t||"section sommaire"}}class De extends bt{constructor(){super(2)}static get instanceClassName(){return"TabButtonActionee"}init(){this.isMuted=!0}get label(){const t=this.getFirstText();return t||"bouton onglet"}get component(){return"tab"}}class Pe extends bt{constructor(){super(2)}static get instanceClassName(){return"TabActionee"}init(){this.setDiscloseType(),this.register(`[aria-controls="${this.id}"]`,De),this._instance=this.element.getInstance("TabPanel"),this.listenDisclose()}get label(){const e=this.node.closest(t.tab.TabSelector.GROUP);if(e){const s=e.querySelector(`${t.tab.TabSelector.LIST} [aria-controls="${this.id}"]${t.tab.TabSelector.TAB}`);if(s){const t=this.getFirstText(s);if(t)return t}}const s=this._instance.buttons.filter((t=>t.isPrimary))[0];if(s){const t=this.getFirstText(s);if(t)return t}return"onglet"}get component(){return"tab"}}const Re={TABLE:t.internals.ns.selector("table")};class Fe extends bt{constructor(){super(1)}static get instanceClassName(){return"TableActionee"}get label(){const t=this.node.querySelector("caption");if(t){const e=this.getFirstText(t);if(e)return e}return"tableau"}get component(){return"table"}}const Me={TAG:t.internals.ns.selector("tag"),PRESSABLE:"[aria-pressed]",DISMISSIBLE:`${t.internals.ns.selector("tag--dismiss","")}`};class Be extends bt{constructor(){super(2)}static get instanceClassName(){return"TagActionee"}init(){switch(!0){case this.detectPressableType():this.listenPressable();break;case this.isInteractive&&this.node.classList.contains(Me.DISMISSIBLE):this.setDismissType(),this.listenActionClick();break;case this.isInteractive:this.detectInteractionType(),this.listenActionClick()}}get label(){const t=this.getFirstText();return t||"tag"}get component(){return"tag"}}const Ue={TILE:t.internals.ns.selector("tile"),LINK:`${t.internals.ns.selector("tile__title")} a, ${t.internals.ns.selector("tile__title")} button`,TITLE:t.internals.ns.selector("tile__title")};class qe extends bt{constructor(){super(1)}static get instanceClassName(){return"TileActionee"}init(){const t=this.node.querySelector(Ue.LINK);t&&(this.link=t,this.detectInteractionType(t),this.listenActionClick(t))}get label(){const t=this.node.querySelector(Ue.TITLE);if(t)return this.getFirstText(t);const e=this.getHeadingLabel();return e||"tuile"}get component(){return"tile"}}const je={INPUT:t.internals.ns.selector('toggle [type="checkbox"]')};class He extends bt{constructor(){super(1),this._data={}}static get instanceClassName(){return"ToggleActionee"}init(){this.detectCheckableType(),this.listenCheckable()}get label(){const e=this.node.parentNode.querySelector(t.internals.ns.selector("toggle__label"));if(e){const t=this.getFirstText(e);if(t)return t}return"interrupteur"}get component(){return"toggle"}}const Ke=t.internals.ns.selector("transcription"),Ve=t.internals.ns.selector("collapse"),Ge={TRANSCRIPTION:Ke,COLLAPSE:`${Ke} > ${Ve}, ${Ke} > *:not(${Ke}):not(${Ve}) > ${Ve}, ${Ke} > *:not(${Ke}):not(${Ve}) > *:not(${Ke}):not(${Ve}) > ${Ve}`,COLLAPSE_LEGACY:`${Ke} ${Ve}`,TITLE:`${Ke}__title`},We="transcription";class Ye extends bt{constructor(){super(2)}static get instanceClassName(){return"TranscriptionButtonActionee"}init(){this.isMuted=!0}get button(){return this.element.getInstance("CollapseButton")}get label(){const t=this.getFirstText();return t||"bouton transcription"}get component(){return We}}class ze extends bt{constructor(){super(2)}static get instanceClassName(){return"TranscriptionActionee"}init(){this.setDiscloseType(),this.wrapper=this.node.closest(Ge.ACCORDION),this.detectLevel(this.wrapper),this.register(`[aria-controls="${this.id}"]`,Ye),this.listenDisclose()}get label(){if(this.wrapper){const t=this.wrapper.querySelector(Ge.TITLE);if(t){const e=this.getFirstText(t);if(e)return e}}const t=this.element.getInstance("Collapse");if(t){const e=t.buttons.filter((t=>t.isPrimary))[0];if(e){const t=this.getFirstText(e);if(t)return t}}return"transcription"}get component(){return We}}const Ze=t.internals.ns.selector("translate"),Xe=t.internals.ns.selector("collapse"),Qe={BUTTON:`${Ze}__btn`,COLLAPSE:`${Ze} > ${Xe}, ${Ze} > *:not(${Ze}):not(${Xe}) > ${Xe}, ${Ze} > *:not(${Ze}):not(${Xe}) > *:not(${Ze}):not(${Xe}) > ${Xe}`,COLLAPSE_LEGACY:`${Ze} ${Xe}`},Je="translate";class ts extends bt{constructor(){super(2)}static get instanceClassName(){return"TranslateActionee"}get label(){const t=this.node.querySelector(Qe.BUTTON);if(t){const e=t.getAttribute("title");if(e)return e}return"sélecteur de langue"}get component(){return Je}}class es extends bt{constructor(){super(2)}static get instanceClassName(){return"TranslateButtonActionee"}init(){this.isMuted=!0}get button(){return this.element.getInstance("CollapseButton")}get label(){const t=this.getInteractionLabel();return t||"bouton sélecteur de langue"}get component(){return Je}}const ss={UPLOAD:t.internals.ns.selector("upload")};class is extends bt{constructor(){super(1)}static get instanceClassName(){return"UploadActionee"}init(){this.setChangeType(),this._label=this.node.parentNode.querySelector(t.internals.ns.selector("label")),this.listenChange()}setChangeValue(t){if(!t.target||!t.target.files)return;const e=Array.from(t.target.files).map((t=>/(?:\.([^.]+))?$/.exec(t.name)[1])).filter(((t,e,s)=>s.indexOf(t)===e)).join(" - ");e&&(this.value=e)}get label(){if(this._label){const t=this.getFirstText(this._label);if(t)return t}return"ajout de fichier"}get component(){return"upload"}}const ns=()=>{t.accordion&&t.internals.register(t.accordion.AccordionSelector.COLLAPSE,Tt),t.breadcrumb&&(t.internals.register(Et.COLLAPSE,Ct),t.internals.register(Et.LINK,Lt)),t.internals.register(At.ALERT,Nt),t.internals.register(It.BUTTON,St),t.internals.register(Ot.CALLOUT,wt),t.internals.register(Pt.CONNECT,Ft),t.internals.register(Pt.LINK,Mt),t.internals.register(Bt.BANNER,Ut),t.internals.register(xt.CARD,kt),t.internals.register(ne.INPUT,re),t.internals.register($t.INPUT,Dt),t.internals.register(qt.LINK,jt),t.internals.register(Vt.FOOTER,Gt),t.internals.register(Vt.FOOTER_LINKS,Wt),t.internals.register(Ht.FOLLOW,Kt),t.header&&(t.internals.register(t.header.HeaderSelector.HEADER,Yt),t.internals.register(t.header.HeaderSelector.MODALS,Zt),t.internals.register(Xt.TOOLS_BUTTON,Qt),t.internals.register(Xt.MENU_BUTTON,Jt)),t.internals.register(te.HIGHLIGHT,ee),t.internals.register(se.LINK,ie),t.modal&&t.internals.register(t.modal.ModalSelector.MODAL,oe),t.navigation&&(t.internals.register(t.navigation.NavigationSelector.NAVIGATION,le),t.internals.register(ce.LINK,he),t.internals.register(t.navigation.NavigationSelector.COLLAPSE,ue)),t.internals.register(ge.PAGINATION,de),t.internals.register(ge.LINK,_e),t.internals.register(pe.QUOTE,me),t.internals.register(be.INPUT,ye),t.internals.register(ve.SEARCH_BAR,Te),t.internals.register(Ae.SELECT,Ne),t.internals.register(Ee.SHARE,Ce),t.sidemenu&&(t.internals.register(Le.SIDEMENU,Ie),t.internals.register(Le.LINK,Se),t.internals.register(t.sidemenu.SidemenuSelector.COLLAPSE,Oe)),t.internals.register(we.SUMMARY,xe),t.internals.register(we.LINK,ke),t.internals.register(we.ITEM,$e),t.tab&&t.internals.register(t.tab.TabSelector.PANEL,Pe),t.internals.register(Re.TABLE,Fe),t.internals.register(Me.TAG,Be),t.internals.register(Ue.TILE,qe),t.internals.register(je.INPUT,He),t.internals.register(Ge.COLLAPSE,ze),t.internals.register(Qe.COLLAPSE,ts),t.internals.register(Qe.BUTTON,es),t.internals.register(ss.UPLOAD,is)},rs=()=>{Object.values(it).filter((t=>t.attributed)).forEach((e=>t.internals.register(t.internals.ns.attr.selector(`analytics-${e.id}`),pt))),ns()};t.analytics.readiness.then((()=>rs()),(()=>{}));
//# sourceMappingURL=analytics.module.min.js.map