/*! DSFR v1.11.2 | SPDX-License-Identifier: MIT | License-Filename: LICENSE.md | restricted use (see terms and conditions) */ !function(){"use strict";var t=function(){this.modules={}},e={isActive:{configurable:!0},isLegacy:{configurable:!0}};t.prototype.create=function(t){var e=new t;this.modules[e.type]=e},t.prototype.getModule=function(t){return this.modules[t]},t.prototype.add=function(t,e){this.modules[t].add(e)},t.prototype.remove=function(t,e){this.modules[t].remove(e)},e.isActive.get=function(){return this._isActive},e.isActive.set=function(t){var e=this;if(t!==this._isActive){this._isActive=t;var i=Object.keys(this.modules).map((function(t){return e.modules[t]}));if(t)for(var s=0,n=i;s0){for(var n="",r=0;r-1)&&(this._collection.push(t),this.onAdd&&this.onAdd(),this.onPopulate&&1===this._collection.length&&this.onPopulate(),!0)},v.prototype.remove=function(t){var e=this._collection.indexOf(t);if(-1===e)return!1;this._collection.splice(e,1),this.onRemove&&this.onRemove(),this.onEmpty&&0===this._collection.length&&this.onEmpty()},v.prototype.execute=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var i=0,s=this._collection;i-1},O.prototype.introduce=function(){this.isIntroduced||(this.isIntroduced=!0,i.getModule("stage").parse(document.documentElement,this))},O.prototype.parse=function(t,e){var i=[];return t.matches&&t.matches(this.selector)&&i.push(t),!e&&t.querySelectorAll&&t.querySelector(this.selector)&&i.push.apply(i,w(t,this.selector)),i},O.prototype.create=function(t){if(t.node.matches(this.selector)){var e=new this.InstanceClass;return this.instances.add(e),e}},O.prototype.remove=function(t){this.instances.remove(t)},O.prototype.dispose=function(){for(var t=this.instances.collection,e=t.length-1;e>-1;e--)t[e]._dispose();this.creator=null},A.instanceClassName.get=function(){return this._instanceClassName},A.instanceClassNames.get=function(){return this._instanceClassNames},A.property.get=function(){return this._property},A.attribute.get=function(){return this._attribute},Object.defineProperties(O.prototype,A);var N=function(t){function e(){t.call(this,"register")}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.register=function(t,e,s){var n=new O(t,e,s);return this.add(n),i.isActive&&n.introduce(),n},e.prototype.activate=function(){for(var t=0,e=this.collection;t");return this.node.outerHTML.substring(0,t+1)},R.prototype.project=function(t){-1===this._projects.indexOf(t)&&this._projects.push(t)},R.prototype.populate=function(){var t=this._projects.slice();this._projects.length=0;for(var e=0,i=t;e-1&&this.instances.splice(e,1),this._proxy&&delete this._proxy[t.registration.property]},D.parent.get=function(){return this._parent},D.ascendants.get=function(){return[this.parent].concat(this.parent.ascendants)},D.children.get=function(){return this._children},D.descendants.get=function(){var t=[].concat(this._children);return this._children.forEach((function(e){return t.push.apply(t,e.descendants)})),t},R.prototype.addChild=function(t,e){return this._children.indexOf(t)>-1?null:(t._parent=this,!isNaN(e)&&e>-1&&e=0;t--){var e=this.instances[t];e&&e._dispose()}this.instances.length=0,i.remove("stage",this),this.parent.removeChild(this),this._children.length=0,p.debug("remove element ["+this.id+"] "+this.html)},R.prototype.prepare=function(t){-1===this.attributeNames.indexOf(t)&&this.attributeNames.push(t)},R.prototype.examine=function(){var t=this.attributeNames.slice();this.attributeNames.length=0;for(var e=this.instances.length-1;e>-1;e--)this.instances[e].examine(t)},Object.defineProperties(R.prototype,D);var x={CLICK:E.emission("root","click"),KEYDOWN:E.emission("root","keydown"),KEYUP:E.emission("root","keyup")},P={TAB:{id:"tab",value:9},ESCAPE:{id:"escape",value:27},END:{id:"end",value:35},HOME:{id:"home",value:36},LEFT:{id:"left",value:37},UP:{id:"up",value:38},RIGHT:{id:"right",value:39},DOWN:{id:"down",value:40}},L=function(t){return Object.values(P).filter((function(e){return e.value===t}))[0]},S=function(t){function e(){t.call(this,document.documentElement,"root"),this.node.setAttribute(E.attr("js"),!0),this.listen()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.listen=function(){document.documentElement.addEventListener("click",this.click.bind(this),{capture:!0}),document.documentElement.addEventListener("keydown",this.keydown.bind(this),{capture:!0}),document.documentElement.addEventListener("keyup",this.keyup.bind(this),{capture:!0})},e.prototype.click=function(t){this.emit(x.CLICK,t.target)},e.prototype.keydown=function(t){this.emit(x.KEYDOWN,L(t.keyCode))},e.prototype.keyup=function(t){this.emit(x.KEYUP,L(t.keyCode))},e}(R),k=function(t){function e(){t.call(this,"stage"),this.root=new S,t.prototype.add.call(this,this.root),this.observer=new MutationObserver(this.mutate.bind(this)),this.modifications=[],this.willModify=!1,this.modifying=this.modify.bind(this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.hasElement=function(t){for(var e=0,i=this.collection;e-1;s--){var n=e.children[s],r=t.node.compareDocumentPosition(n.node);if(r&Node.DOCUMENT_POSITION_CONTAINS)return void this.put(t,n);if(r&Node.DOCUMENT_POSITION_CONTAINED_BY)e.removeChild(n),t.addChild(n,0);else if(r&Node.DOCUMENT_POSITION_PRECEDING){i=s+1;break}}e.addChild(t,i)},e.prototype.activate=function(){this.observer.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0})},e.prototype.deactivate=function(){this.observer.disconnect()},e.prototype.mutate=function(t){var e=this,i=[];t.forEach((function(t){switch(t.type){case"childList":t.removedNodes.forEach((function(t){return e.dispose(t)})),t.addedNodes.forEach((function(t){return e.parse(t)}));break;case"attributes":if(e.hasElement(t.target)){var s=e.getElement(t.target);s.prepare(t.attributeName),-1===i.indexOf(s)&&i.push(s);for(var n=0,r=s.descendants;n0&&document.documentElement.style.setProperty("--scrollbar-width",t+"px")}},e.prototype.unlock=function(){this._isLocked&&(this._isLocked=!1,document.documentElement.removeAttribute(E.attr("scrolling")),document.body.style.top="",window.scrollTo(0,this._scrollY),"smooth"===this.behavior&&document.documentElement.style.removeProperty("scroll-behavior"),document.documentElement.style.removeProperty("--scrollbar-width"))},e.prototype.move=function(t){this._isLocked?(this._scrollY+=t,document.body.style.top=-this._scrollY+"px"):window.scrollTo(0,window.scrollY+t)},Object.defineProperties(e.prototype,i),e}(b),G=function(t){function e(){t.call(this,"load"),this.loading=this.load.bind(this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.activate=function(){window.addEventListener("load",this.loading)},e.prototype.load=function(){this.forEach((function(t){return t.load()}))},e}(b),q=["Marianne","Spectral"],U=function(t){function e(){t.call(this,"font-swap"),this.swapping=this.swap.bind(this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.activate=function(){document.fonts&&document.fonts.addEventListener("loadingdone",this.swapping)},e.prototype.swap=function(){var t=q.filter((function(t){return document.fonts.check("16px "+t)}));this.forEach((function(e){return e.swapFont(t)}))},e}(b),F=function(t){function e(){t.call(this,"mouse-move"),this.requireMove=!1,this._isMoving=!1,this.moving=this.move.bind(this),this.requesting=this.request.bind(this),this.onPopulate=this.listen.bind(this),this.onEmpty=this.unlisten.bind(this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.listen=function(){this._isMoving||(this._isMoving=!0,this.requireMove=!1,document.documentElement.addEventListener("mousemove",this.requesting))},e.prototype.unlisten=function(){this._isMoving&&(this._isMoving=!1,this.requireMove=!1,document.documentElement.removeEventListener("mousemove",this.requesting))},e.prototype.request=function(t){this._isMoving&&(this.point={x:t.clientX,y:t.clientY},this.requireMove||(this.requireMove=!0,window.requestAnimationFrame(this.moving)))},e.prototype.move=function(){var t=this;this.requireMove&&(this.forEach((function(e){return e.mouseMove(t.point)})),this.requireMove=!1)},e}(b),H=function(t){function e(){t.call(this,"hash"),this.handling=this.handle.bind(this),this.getLocationHash()}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={hash:{configurable:!0}};return e.prototype.activate=function(){window.addEventListener("hashchange",this.handling)},e.prototype.deactivate=function(){window.removeEventListener("hashchange",this.handling)},e.prototype._sanitize=function(t){return"#"===t.charAt(0)?t.substring(1):t},i.hash.set=function(t){var e=this._sanitize(t);this._hash!==e&&(window.location.hash=e)},i.hash.get=function(){return this._hash},e.prototype.getLocationHash=function(){var t=window.location.hash;this._hash=this._sanitize(t)},e.prototype.handle=function(t){var e=this;this.getLocationHash(),this.forEach((function(i){return i.handleHash(e._hash,t)}))},Object.defineProperties(e.prototype,i),e}(b),z=function(){i.create(N),i.create(k),i.create(M),i.create(j),i.create(I),i.create(G),i.create(U),i.create(F),i.create(H);var t=i.getModule("register");this.register=t.register.bind(t)},B={isActive:{configurable:!0}};B.isActive.get=function(){return i.isActive},z.prototype.start=function(){p.debug("START"),i.isActive=!0},z.prototype.stop=function(){p.debug("STOP"),i.isActive=!1},Object.defineProperties(z.prototype,B);var V=new z,K=function(){};K.prototype.getColor=function(t,e,i,s){void 0===s&&(s={});var n="--"+t+"-"+e+"-"+i+W(s);return getComputedStyle(document.documentElement).getPropertyValue(n).trim()||null};var W=function(t){switch(!0){case t.hover:return"-hover";case t.active:return"-active";default:return""}},Y=new K,$=function(t){return"."===t.charAt(0)?t.substr(1):t},X=function(t){switch(!0){case!t.className:return[];case"string"==typeof t.className:return t.className.split(" ");case"string"==typeof t.className.baseVal:return t.className.baseVal.split(" ")}return[]},Z=function(t,e,i){e=$(e);var s=X(t),n=s.indexOf(e);!0===i?n>-1&&s.splice(n,1):-1===n&&s.push(e),t.className=s.join(" ")},J=function(t,e){return Z(t,e)},Q=function(t,e){return Z(t,e,!0)},tt=function(t,e){return X(t).indexOf($(e))>-1},et=['[tabindex]:not([tabindex="-1"])',"a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details","iframe"].join(),it=function(t){return t.querySelectorAll(et)},st=0,nt=function(t){if(!document.getElementById(t))return t;for(var e=!0,i=t;e;)t=i+"-"+ ++st,e=document.getElementById(t);return t},rt={addClass:J,hasClass:tt,removeClass:Q,queryParentSelector:C,querySelectorAllArray:w,queryActions:it,uniqueId:nt},ot=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this._width=t,this._height=e,this._content=""},at={width:{configurable:!0},height:{configurable:!0},content:{configurable:!0}};at.width.get=function(){return this._width},at.width.set=function(t){this._width=t},at.height.get=function(){return this._height},at.height.set=function(t){this._height=t},at.content.get=function(){return this._content},at.content.set=function(t){this._content=t},ot.prototype.getDataURI=function(t){void 0===t&&(t=!1);var e=""+this._content+"";return e=e.replace(/#/gi,"%23"),t&&(e=(e=(e=(e=(e=e.replace(//gi,"%3E")).replace(/"/gi,"'")).replace(/{/gi,"%7B")).replace(/}/gi,"%7D")),"data:image/svg+xml;charset=utf8,"+e},Object.defineProperties(ot.prototype,at);var ct={DataURISVG:ot},ht={supportLocalStorage:function(){try{return"localStorage"in window&&null!==window.localStorage}catch(t){return!1}},supportAspectRatio:function(){return!!window.CSS&&CSS.supports("aspect-ratio: 16 / 9")}},ut={TransitionSelector:{NONE:E.selector("transition-none")}},lt=function(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];return e.forEach((function(e){var i=Object.keys(e).reduce((function(t,i){return t[i]=Object.getOwnPropertyDescriptor(e,i),t}),{});Object.getOwnPropertySymbols(e).forEach((function(t){var s=Object.getOwnPropertyDescriptor(e,t);s.enumerable&&(i[t]=s)})),Object.defineProperties(t,i)})),t},pt={completeAssign:lt},dt={},ft={};Object.defineProperty(ft,"isLegacy",{get:function(){return i.isLegacy}}),ft.setLegacy=function(){i.isLegacy=!0},dt.legacy=ft,dt.dom=rt,dt.image=ct,dt.support=ht,dt.motion=ut,dt.property=pt,dt.ns=E,dt.register=V.register,dt.state=i,dt.query=function(t){if(t&&t.search){var e=new URLSearchParams(window.location.search).entries();return Object.fromEntries(e)}return null}(window.location),Object.defineProperty(dt,"preventManipulation",{get:function(){return m.preventManipulation}}),Object.defineProperty(dt,"stage",{get:function(){return i.getModule("stage")}});var gt=function(t){return i.getModule("stage").getProxy(t)};gt.version=o,gt.prefix=s,gt.organisation=r,gt.Modes=f,Object.defineProperty(gt,"mode",{set:function(t){m.mode=t},get:function(){return m.mode}}),gt.internals=dt,gt.version=o,gt.start=V.start,gt.stop=V.stop,gt.inspector=p,gt.colors=Y;var yt=window[n];gt.internals.configuration=yt,m.configure(yt,gt.start,gt.internals.query),window[n]=gt;var mt=function(){this.emissions={}};mt.prototype.add=function(t,e){if("function"!=typeof e)throw new Error("closure must be a function");this.emissions[t]||(this.emissions[t]=[]),this.emissions[t].push(e)},mt.prototype.remove=function(t,e){if(this.emissions[t])if(e){var i=this.emissions[t].indexOf(e);i>-1&&this.emissions[t].splice(i)}else delete this.emissions[t]},mt.prototype.emit=function(t,e){if(!this.emissions[t])return[];for(var i=[],s=0,n=this.emissions[t];swindow.innerHeight&&e.move(t.bottom-window.innerHeight+50)},bt.prototype.matches=function(t){return this.node.matches(t)},bt.prototype.querySelector=function(t){return this.node.querySelector(t)},bt.prototype.querySelectorAll=function(t){return w(this.node,t)},bt.prototype.queryParentSelector=function(t){return C(this.node,t)},bt.prototype.getRect=function(){var t=this.node.getBoundingClientRect();return t.center=t.left+.5*t.width,t.middle=t.top+.5*t.height,t},Et.isLegacy.get=function(){return i.isLegacy},Object.defineProperties(bt.prototype,Et),Object.defineProperties(bt,wt);var Ct=function(t,e,i,s,n){this.type=t,this.eventType="key"+t,this.keyCode=e,this.closure=i,this.preventDefault=!0===s,this.stopPropagation=!0===n};Ct.prototype.handle=function(t){t.type===this.eventType&&t.keyCode===this.keyCode.value&&(this.closure(t),this.preventDefault&&t.preventDefault(),this.stopPropagation&&t.stopPropagation())};var Ot=function(t,e,i,s){this._node=t,this._type=e,this._closure=i,this._options=s},At={closure:{configurable:!0}};At.closure.get=function(){return this._closure},Ot.prototype.listen=function(){this._node.addEventListener(this._type,this._closure,this._options)},Ot.prototype.matchOptions=function(t){var e=this;switch(void 0===t&&(t=null),!0){case null===t:case"boolean"==typeof this._options&&"boolean"==typeof t&&this._options===t:return!0;case Object.keys(this._options).length!==Object.keys(t).length:return!1;case Object.keys(t).every((function(i){return e._options[i]===t[i]})):return!0}return!1},Ot.prototype.unlisten=function(){this._node.removeEventListener(this._type,this._closure,this._options)},Object.defineProperties(Ot.prototype,At);var Nt=function(t,e){this.hash=t,this.add=e};Nt.prototype.handle=function(t,e){this.hash===t&&this.add(e)};var Tt={DISCLOSE:E.event("disclose"),CONCEAL:E.event("conceal")},Rt={RESET:E.emission("disclosure","reset"),ADDED:E.emission("disclosure","added"),RETRIEVE:E.emission("disclosure","retrieve"),REMOVED:E.emission("disclosure","removed"),GROUP:E.emission("disclosure","group"),UNGROUP:E.emission("disclosure","ungroup"),SPOTLIGHT:E.emission("disclosure","spotlight")},Dt=function(t){function e(e,i,s,n){t.call(this),this.type=e,this._selector=i,this.DisclosureButtonInstanceClass=s,this.disclosuresGroupInstanceClassName=n,this.modifier=this._selector+"--"+this.type.id,this._isPristine=!0,this._isRetrievingPrimaries=!1,this._hasRetrieved=!1,this._primaryButtons=[]}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={isEnabled:{configurable:!0},isPristine:{configurable:!0},proxy:{configurable:!0},buttons:{configurable:!0},group:{configurable:!0},isDisclosed:{configurable:!0},isInitiallyDisclosed:{configurable:!0},buttonHasFocus:{configurable:!0},hasFocus:{configurable:!0},primaryButtons:{configurable:!0}},s={instanceClassName:{configurable:!0}};return s.instanceClassName.get=function(){return"Disclosure"},e.prototype.init=function(){this.addDescent(Rt.RESET,this.reset.bind(this)),this.addDescent(Rt.GROUP,this.update.bind(this)),this.addDescent(Rt.UNGROUP,this.update.bind(this)),this.addAscent(Rt.SPOTLIGHT,this.disclose.bind(this)),this.register('[aria-controls="'+this.id+'"]',this.DisclosureButtonInstanceClass),this.ascend(Rt.ADDED),this.listenHash(this.id,this._spotlight.bind(this)),this.update()},i.isEnabled.get=function(){return t.prototype.isEnabled},i.isEnabled.set=function(e){this.isEnabled!==e&&(t.prototype.isEnabled=e,e?this.ascend(Rt.ADDED):this.ascend(Rt.REMOVED))},i.isPristine.get=function(){return this._isPristine},i.proxy.get=function(){var e=this,i=Object.assign.call(this,t.prototype.proxy,{disclose:e.disclose.bind(e),focus:e.focus.bind(e)});return this.type.canConceal&&(i.conceal=e.conceal.bind(e)),lt(i,{get buttons(){return e.buttons.map((function(t){return t.proxy}))},get group(){var t=e.group;return t?t.proxy:null},get isDisclosed(){return e.isDisclosed}})},i.buttons.get=function(){return this.getRegisteredInstances(this.DisclosureButtonInstanceClass.instanceClassName)},e.prototype.update=function(){this.getGroup(),this.retrievePrimaries()},e.prototype.getGroup=function(){if(this.disclosuresGroupInstanceClassName){var t=this.element.getAscendantInstance(this.disclosuresGroupInstanceClassName,this.constructor.instanceClassName);t&&t.validate(this)?this._group=t:this._group=null}else this._group=null},i.group.get=function(){return this._group},e.prototype.disclose=function(t){return!(!0===this.isDisclosed||!this.isEnabled)&&(this._isPristine=!1,this.isDisclosed=!0,!t&&this.group&&(this.group.current=this),!0)},e.prototype.conceal=function(t,e){return void 0===e&&(e=!0),!1!==this.isDisclosed&&(!(!this.type.canConceal&&this.group&&this.group.current===this)&&(this.isDisclosed=!1,!t&&this.group&&this.group.current===this&&(this.group.current=null),e||this.focus(),this._isPristine||this.descend(Rt.RESET),!0))},i.isDisclosed.get=function(){return this._isDisclosed},i.isDisclosed.set=function(t){if(this._isDisclosed!==t&&(this.isEnabled||!0!==t)){this.dispatch(t?Tt.DISCLOSE:Tt.CONCEAL,this.type),this._isDisclosed=t,t?this.addClass(this.modifier):this.removeClass(this.modifier);for(var e=0;e0)},e.prototype.focus=function(){this._primaryButtons.length>0&&this._primaryButtons[0].focus()},i.primaryButtons.get=function(){return this._primaryButtons},e.prototype.retrievePrimaries=function(){this._isRetrievingPrimaries||(this._isRetrievingPrimaries=!0,this.request(this._retrievePrimaries.bind(this)))},e.prototype._retrievePrimaries=function(){if(this._isRetrievingPrimaries=!1,this._primaryButtons=this._electPrimaries(this.buttons),!this._hasRetrieved&&0!==this._primaryButtons.length)if(this.retrieved(),this._hasRetrieved=!0,this.applyAbility(!0),this.group)this.group.retrieve();else if(this._isPristine&&this.isEnabled&&!this.group)switch(!0){case this.hash===this.id:this._spotlight();break;case this.isInitiallyDisclosed:this.disclose()}},e.prototype.retrieved=function(){},e.prototype._spotlight=function(){var t=this;this.disclose(),this.request((function(){t.ascend(Rt.SPOTLIGHT)}))},e.prototype._electPrimaries=function(t){var e=this;return t.filter((function(t){return t.canDisclose&&!e.node.contains(t.node)}))},e.prototype.applyAbility=function(t){void 0===t&&(t=!1);var e=!this._primaryButtons.every((function(t){return t.isDisabled}));this.isEnabled!==e&&(this.isEnabled=e,t||(!this.isEnabled&&this.isDisclosed&&(this.group?this.ascend(Rt.REMOVED):this.type.canConceal&&this.conceal()),this.isEnabled&&(this.group&&this.ascend(Rt.ADDED),this.hash===this.id&&this._spotlight())))},e.prototype.dispose=function(){this._group=null,this._primaryButtons=null,t.prototype.dispose.call(this),this.ascend(Rt.REMOVED)},Object.defineProperties(e.prototype,i),Object.defineProperties(e,s),e}(bt),xt=function(t){function e(e){t.call(this),this.type=e,this.attributeName=e.ariaState?"aria-"+e.id:E.attr(e.id),this._canDisclose=!1}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={isPrimary:{configurable:!0},canDisclose:{configurable:!0},isDisabled:{configurable:!0},proxy:{configurable:!0},isDisclosed:{configurable:!0},isInitiallyDisclosed:{configurable:!0},dx:{configurable:!0},dy:{configurable:!0}},s={instanceClassName:{configurable:!0}};return s.instanceClassName.get=function(){return"DisclosureButton"},i.isPrimary.get=function(){return this.registration.creator.primaryButtons.includes(this)},i.canDisclose.get=function(){return this._canDisclose},i.isDisabled.get=function(){return this.type.canDisable&&this.hasAttribute("disabled")},e.prototype.init=function(){this._canDisclose=this.hasAttribute(this.attributeName),this._isInitiallyDisclosed=this.isDisclosed,this._isContained=this.registration.creator.node.contains(this.node),this.controlsId=this.getAttribute("aria-controls"),this.registration.creator.retrievePrimaries(),this.listenClick()},i.proxy.get=function(){return Object.assign.call(this,t.prototype.proxy,{focus:this.focus.bind(this)})},e.prototype.handleClick=function(t){this.registration.creator&&this.registration.creator.toggle(this.canDisclose)},e.prototype.mutate=function(t){this._canDisclose=this.hasAttribute(this.attributeName),this.registration.creator.applyAbility(),!this._isApplying&&this.isPrimary&&t.indexOf(this.attributeName)>-1&&this.registration.creator&&(this.isDisclosed?this.registration.creator.disclose():this.type.canConceal&&this.registration.creator.conceal())},e.prototype.apply=function(t){var e=this;this.canDisclose&&(this._isApplying=!0,this.setAttribute(this.attributeName,t),this.request((function(){e._isApplying=!1})))},i.isDisclosed.get=function(){return"true"===this.getAttribute(this.attributeName)},i.isInitiallyDisclosed.get=function(){return this._isInitiallyDisclosed},e.prototype.focus=function(){t.prototype.focus.call(this),this.scrollIntoView()},e.prototype.measure=function(t){var e=this.rect;this._dx=t.x-e.x,this._dy=t.y-e.y},i.dx.get=function(){return this._dx},i.dy.get=function(){return this._dy},Object.defineProperties(e.prototype,i),Object.defineProperties(e,s),e}(bt),Pt={PREVENT_CONCEAL:E.attr.selector("prevent-conceal"),GROUP:E.attr("group")},Lt=function(t){function e(e,i){t.call(this,i),this.disclosureInstanceClassName=e,this._members=[],this._index=-1,this._isRetrieving=!1,this._hasRetrieved=!1,this._isGrouped=!0}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={proxy:{configurable:!0},members:{configurable:!0},length:{configurable:!0},index:{configurable:!0},current:{configurable:!0},hasFocus:{configurable:!0},isGrouped:{configurable:!0},canUngroup:{configurable:!0}},s={instanceClassName:{configurable:!0}};return s.instanceClassName.get=function(){return"DisclosuresGroup"},e.prototype.init=function(){this.addAscent(Rt.ADDED,this.update.bind(this)),this.addAscent(Rt.RETRIEVE,this.retrieve.bind(this)),this.addAscent(Rt.REMOVED,this.update.bind(this)),this.descend(Rt.GROUP),this._isGrouped="false"!==this.getAttribute(Pt.GROUP),this.update()},i.proxy.get=function(){var e=this,i={set index(t){e.index=t},get index(){return e.index},get length(){return e.length},get current(){var t=e.current;return t?t.proxy:null},get members(){return e.members.map((function(t){return t.proxy}))},get hasFocus(){return e.hasFocus},set isGrouped(t){e.isGrouped=t},get isGrouped(){return e.isGrouped}};return lt.call(this,t.prototype.proxy,i)},e.prototype.validate=function(t){return!0},e.prototype.getMembers=function(){var t=this,e=this.element.getDescendantInstances(this.disclosureInstanceClassName,this.constructor.instanceClassName,!0);this._members=e.filter(this.validate.bind(this)).filter((function(t){return t.isEnabled})),e.filter((function(e){return!t._members.includes(e)})).forEach((function(t){return t.conceal()}))},e.prototype.retrieve=function(t){void 0===t&&(t=!1),this._isRetrieving||this._hasRetrieved&&!t||(this._isRetrieving=!0,this.request(this._retrieve.bind(this)))},e.prototype._retrieve=function(){var t=this;if(this.getMembers(),this._isRetrieving=!1,this._hasRetrieved=!0,this.hash)for(var e=0;e=this.length||t===this._index)){this._index=t;for(var e=0;e-1}));if(1===i.length)return i;if(1===(e=t.prototype._electPrimaries.call(this,e)).length)return e;var s=e.filter((function(t){return t.dy>=0}));if(s.length>0&&(e=s),1===e.length)return e;var n=Math.min.apply(Math,e.map((function(t){return t.dy}))),r=e.filter((function(t){return t.dy===n}));return r.length>0&&(e=r),1===e.length||e.sort((function(t,e){return Math.abs(e.dx)-Math.abs(t.dx)})),e},Object.defineProperties(e,i),e}(Dt),It=function(t){function e(){t.call(this,"Collapse")}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={canUngroup:{configurable:!0}},s={instanceClassName:{configurable:!0}};return s.instanceClassName.get=function(){return"CollapsesGroup"},i.canUngroup.get=function(){return!0},Object.defineProperties(e.prototype,i),Object.defineProperties(e,s),e}(Lt),Gt={CHANGE:E("equisized")},qt=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={instanceClassName:{configurable:!0}};return i.instanceClassName.get=function(){return"Equisized"},e.prototype.init=function(){this.ascend(Gt.CHANGE)},e.prototype.measure=function(){return this.isLegacy&&(this.style.width="auto"),this.getRect().width},e.prototype.adjust=function(t){this.isLegacy&&(this.style.width=t+"px")},e.prototype.dispose=function(){this.ascend(Gt.CHANGE)},Object.defineProperties(e,i),e}(bt),Ut=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={instanceClassName:{configurable:!0}};return i.instanceClassName.get=function(){return"EquisizedsGroup"},e.prototype.init=function(){this.isResizing=!0,this.isLoading=!0,this.addAscent(Gt.CHANGE,this.resize.bind(this))},e.prototype.load=function(){this.resize()},e.prototype.resize=function(){var t=this.element.getDescendantInstances("Equisized");this.isLegacy||this.style.setProperty("--equisized-width","auto");var e=Math.max.apply(Math,t.map((function(t){return t.measure()})));this.isLegacy?t.forEach((function(t){return t.adjust(e)})):this.style.setProperty("--equisized-width",e+"px")},Object.defineProperties(e,i),e}(bt),Ft={TOGGLE:E.event("toggle")},Ht=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={pressed:{configurable:!0},proxy:{configurable:!0}},s={instanceClassName:{configurable:!0}};return s.instanceClassName.get=function(){return"Toggle"},e.prototype.init=function(){this.pressed="true"===this.pressed,this.listenClick()},e.prototype.handleClick=function(){this.toggle()},e.prototype.toggle=function(){this.pressed="true"!==this.pressed},i.pressed.get=function(){return this.getAttribute("aria-pressed")},i.pressed.set=function(t){this.setAttribute("aria-pressed",t?"true":"false"),this.dispatch(Ft.TOGGLE,t)},i.proxy.get=function(){var e=this,i=Object.assign.call(this,t.prototype.proxy,{toggle:e.toggle.bind(e)});return lt(i,{get pressed(){return e.pressed},set pressed(t){e.pressed=t}})},Object.defineProperties(e.prototype,i),Object.defineProperties(e,s),e}(bt),zt=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={proxy:{configurable:!0}},s={instanceClassName:{configurable:!0}};return s.instanceClassName.get=function(){return"InjectSvg"},e.prototype.init=function(){this.node&&(this.img=this.node.querySelector("img")),this.isLegacy||this.replace()},i.proxy.get=function(){var e=this;return Object.assign.call(this,t.prototype.proxy,{replace:e.replace.bind(e),restore:e.restore.bind(e)})},e.prototype.fetch=function(){var t=this;this.img&&(this.imgID=this.img.getAttribute("id"),this.imgClass=this.img.getAttribute("class"),this.imgURL=this.img.getAttribute("src"),fetch(this.imgURL).then((function(t){return t.text()})).then((function(e){var i=(new DOMParser).parseFromString(e,"text/html");t.svg=i.querySelector("svg"),t.svg&&t.replace()})))},e.prototype.replace=function(){if(this.svg){this.imgID&&void 0!==this.imgID&&this.svg.setAttribute("id",this.imgID);var t=this.imgURL.match(/[ \w-]+\./)[0];t&&(t=t.slice(0,-1),["dark","light","system"].includes(t)&&(this.svg.innerHTML=this.svg.innerHTML.replaceAll('id="artwork-','id="'+t+"-artwork-"),this.svg.innerHTML=this.svg.innerHTML.replaceAll('"#artwork-','"#'+t+"-artwork-"))),this.imgClass&&void 0!==this.imgClass&&this.svg.setAttribute("class",this.imgClass),this.svg.hasAttribute("xmlns:a")&&this.svg.removeAttribute("xmlns:a"),this.node.setAttribute("data-fr-inject-svg",!0);var e,i;e=this.svg,i={"aria-hidden":!0,focusable:!1},Object.keys(i).forEach((function(t){return e.setAttribute(t,i[t])})),this.node.replaceChild(this.svg,this.img)}else this.fetch()},e.prototype.restore=function(){this.img&&this.svg&&(this.node.setAttribute("data-fr-inject-svg",!1),this.node.replaceChild(this.img,this.svg))},Object.defineProperties(e.prototype,i),Object.defineProperties(e,s),e}(bt),Bt={INJECT_SVG:"["+E.attr("inject-svg")+"]"},Vt=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={proxy:{configurable:!0}},s={instanceClassName:{configurable:!0}};return s.instanceClassName.get=function(){return"Artwork"},e.prototype.init=function(){this.isLegacy&&this.replace()},i.proxy.get=function(){return Object.assign.call(this,t.prototype.proxy,{replace:this.replace.bind(this)})},e.prototype.fetch=function(){var t=this;this.xlink=this.node.getAttribute("href");var e=this.xlink.split("#");this.svgUrl=e[0],this.svgName=e[1];var i=new XMLHttpRequest;i.onload=function(){var e=(new DOMParser).parseFromString(i.responseText,"text/html");t.realSvgContent=e.getElementById(t.svgName),t.realSvgContent&&(t.realSvgContent.classList.add(t.node.classList),t.replace())},i.open("GET",this.svgUrl),i.send()},e.prototype.replace=function(){this.realSvgContent?this.node.parentNode.replaceChild(this.realSvgContent,this.node):this.fetch()},Object.defineProperties(e.prototype,i),Object.defineProperties(e,s),e}(bt),Kt={ARTWORK_USE:E.selector("artwork")+" use"},Wt={ASSESS_FILE:""+E.attr.selector("assess-file"),DETAIL:E.attr.selector("assess-file")+' [class$="__detail"], '+E.attr.selector("assess-file")+' [class*="__detail "]'},Yt={UPDATE:E.emission("assess","update"),ADDED:E.emission("assess","added")},$t=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={instanceClassName:{configurable:!0}};return i.instanceClassName.get=function(){return"AssessFile"},e.prototype.init=function(){this.lang=this.getLang(this.node),this.href=this.getAttribute("href"),this.hreflang=this.getAttribute("hreflang"),this.file={},this.gather(),this.addAscent(Yt.ADDED,this.update.bind(this)),this.addDescent(Yt.ADDED,this.update.bind(this))},e.prototype.getFileLength=function(){var t=this;void 0!==this.href?fetch(this.href,{method:"HEAD",mode:"cors"}).then((function(e){t.length=e.headers.get("content-length")||-1,-1===t.length&&p.warn("File size unknown: "+t.href+'\nUnable to get HTTP header: "content-length"'),t.gather()})):this.length=-1},e.prototype.mutate=function(t){-1!==t.indexOf("href")&&(this.href=this.getAttribute("href"),this.getFileLength()),-1!==t.indexOf("hreflang")&&(this.hreflang=this.getAttribute("hreflang"),this.gather())},e.prototype.gather=function(){if(this.isLegacy&&(this.length=-1),this.length){if(this.details=[],this.href){var t=this.parseExtension(this.href);t&&this.details.push(t.toUpperCase())}-1!==this.length&&this.details.push(this.bytesToSize(this.length)),this.hreflang&&this.details.push(this.getLangDisplayName(this.hreflang)),this.update()}else this.getFileLength()},e.prototype.update=function(){this.details&&(this.descend(Yt.UPDATE,this.details),this.ascend(Yt.UPDATE,this.details))},e.prototype.getLang=function(t){return t.lang?t.lang:document.documentElement===t?window.navigator.language:this.getLang(t.parentElement)},e.prototype.parseExtension=function(t){return t.match(/\.(\w{1,9})(?:$|[?#])/)[0].replace(".","")},e.prototype.getLangDisplayName=function(t){if(this.isLegacy)return t;var e=new Intl.DisplayNames([this.lang],{type:"language"}).of(t);return e.charAt(0).toUpperCase()+e.slice(1)},e.prototype.bytesToSize=function(t){if(-1===t)return null;var e=["octets","ko","Mo","Go","To"];"bytes"===this.getAttribute(E.attr("assess-file"))&&(e=["bytes","KB","MB","GB","TB"]);var i=parseInt(Math.floor(Math.log(t)/Math.log(1e3)),10);if(0===i)return t+" "+e[i];var s=t/Math.pow(1e3,i),n=Math.round(100*(s+Number.EPSILON))/100;return String(n).replace(".",",")+" "+e[i]},Object.defineProperties(e,i),e}(bt),Xt=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={instanceClassName:{configurable:!0}};return i.instanceClassName.get=function(){return"AssessDetail"},e.prototype.init=function(){this.addDescent(Yt.UPDATE,this.update.bind(this)),this.ascend(Yt.ADDED)},e.prototype.update=function(t){this.node.innerHTML=t.join(" - ")},Object.defineProperties(e,i),e}(bt),Zt=["32x9","16x9","3x2","4x3","1x1","3x4","2x3"],Jt=function(t,e){return e.map((function(e){return E.selector(t+"--"+e)})).join(",")},Qt=E.selector("responsive-img")+", "+Jt("responsive-img",Zt)+", "+E.selector("responsive-vid")+", "+Jt("responsive-vid",["16x9","4x3","1x1"]),te={RATIO:E.selector("ratio")+", "+Jt("ratio",Zt)+", "+Qt},ee=window[n],ie=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={instanceClassName:{configurable:!0}};return i.instanceClassName.get=function(){return"Ratio"},e.prototype.init=function(){if(!ee.internals.support.supportAspectRatio()){for(var t in this.ratio=16/9,this.classNames)if(this.registration.selector.indexOf(this.classNames[t])>0){var e=this.classNames[t].split("ratio-");e[1]&&(this.ratio=e[1].split("x")[0]/e[1].split("x")[1])}this.isRendering=!0,this.update()}},e.prototype.render=function(){this.getRect().width!==this.currentWidth&&this.update()},e.prototype.update=function(){this.currentWidth=this.getRect().width,this.style.height=this.currentWidth/this.ratio+"px"},Object.defineProperties(e,i),e}(bt),se={TOP:E.selector("placement--top"),RIGHT:E.selector("placement--right"),BOTTOM:E.selector("placement--bottom"),LEFT:E.selector("placement--left")},ne={START:E.selector("placement--start"),CENTER:E.selector("placement--center"),END:E.selector("placement--end")},re={TOP:"place_top",RIGHT:"place_right",BOTTOM:"place_bottom",LEFT:"place_left"},oe={START:"align_start",CENTER:"align_center",END:"align_end"},ae={AUTO:"placement_auto",MANUAL:"placement_manual"},ce=function(t){function e(e,i,s,n){void 0===e&&(e=ae.AUTO),void 0===i&&(i=[re.BOTTOM,re.TOP,re.LEFT,re.RIGHT]),void 0===s&&(s=[oe.CENTER,oe.START,oe.END]),void 0===n&&(n=16),t.call(this),this._mode=e,this._places=i,this._aligns=s,this._safeAreaMargin=n,this._isShown=!1}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={proxy:{configurable:!0},mode:{configurable:!0},place:{configurable:!0},align:{configurable:!0},isShown:{configurable:!0}},s={instanceClassName:{configurable:!0}};return s.instanceClassName.get=function(){return"Placement"},e.prototype.init=function(){this.isResizing=!0},i.proxy.get=function(){var e=this,i=Object.assign.call(this,t.prototype.proxy,{show:e.show.bind(e),hide:e.hide.bind(e)});return lt(i,{get mode(){return e.mode},set mode(t){e.mode=t},get place(){return e.place},set place(t){e.place=t},get align(){return e.align},set align(t){e.align=t},get isShown(){return e.isShown},set isShown(t){e.isShown=t}})},i.mode.get=function(){return this._mode},i.mode.set=function(t){this._mode=t},i.place.get=function(){return this._place},i.place.set=function(t){if(this._place!==t){switch(this._place){case re.TOP:this.removeClass(se.TOP);break;case re.RIGHT:this.removeClass(se.RIGHT);break;case re.BOTTOM:this.removeClass(se.BOTTOM);break;case re.LEFT:this.removeClass(se.LEFT)}switch(this._place=t,this._place){case re.TOP:this.addClass(se.TOP);break;case re.RIGHT:this.addClass(se.RIGHT);break;case re.BOTTOM:this.addClass(se.BOTTOM);break;case re.LEFT:this.addClass(se.LEFT)}}},i.align.get=function(){return this._align},i.align.set=function(t){if(this._align!==t){switch(this._align){case oe.START:this.removeClass(ne.START);break;case oe.CENTER:this.removeClass(ne.CENTER);break;case oe.END:this.removeClass(ne.END)}switch(this._align=t,this._align){case oe.START:this.addClass(ne.START);break;case oe.CENTER:this.addClass(ne.CENTER);break;case oe.END:this.addClass(ne.END)}}},e.prototype.show=function(){this.isShown=!0},e.prototype.hide=function(){this.isShown=!1},i.isShown.get=function(){return this._isShown},i.isShown.set=function(t){this._isShown!==t&&this.isEnabled&&(this.isRendering=t,this._isShown=t)},e.prototype.setReferent=function(t){this._referent=t},e.prototype.resize=function(){this.safeArea={top:this._safeAreaMargin,right:window.innerWidth-this._safeAreaMargin,bottom:window.innerHeight-this._safeAreaMargin,left:this._safeAreaMargin,center:.5*window.innerWidth,middle:.5*window.innerHeight}},e.prototype.render=function(){if(this._referent){if(this.rect=this.getRect(),this.referentRect=this._referent.getRect(),this.mode===ae.AUTO)switch(this.place=this.getPlace(),this.place){case re.TOP:case re.BOTTOM:this.align=this.getHorizontalAlign();break;case re.LEFT:case re.RIGHT:this.align=this.getVerticalAlign()}var t,e;switch(this.place){case re.TOP:e=this.referentRect.top-this.rect.height;break;case re.RIGHT:t=this.referentRect.right;break;case re.BOTTOM:e=this.referentRect.bottom;break;case re.LEFT:t=this.referentRect.left-this.rect.width}switch(this.place){case re.TOP:case re.BOTTOM:switch(this.align){case oe.CENTER:t=this.referentRect.center-.5*this.rect.width;break;case oe.START:t=this.referentRect.left;break;case oe.END:t=this.referentRect.right-this.rect.width}break;case re.RIGHT:case re.LEFT:switch(this.align){case oe.CENTER:e=this.referentRect.middle-.5*this.rect.height;break;case oe.START:e=this.referentRect.top;break;case oe.END:e=this.referentRect.bottom-this.rect.height}}this._x===t&&this._y===e||(this._x=t+.5|0,this._y=e+.5|0,this.node.style.transform="translate("+this._x+"px,"+this._y+"px)")}},e.prototype.getPlace=function(){for(var t=0,e=this._places;tthis.safeArea.top)return re.TOP;break;case re.RIGHT:if(this.referentRect.right+this.rect.widththis.safeArea.left)return re.LEFT}}return this._places[0]},e.prototype.getHorizontalAlign=function(){for(var t=0,e=this._aligns;tthis.safeArea.left&&this.referentRect.center+.5*this.rect.widththis.safeArea.left)return oe.END}}return this._aligns[0]},e.prototype.getVerticalAlign=function(){for(var t=0,e=this._aligns;tthis.safeArea.top&&this.referentRect.middle+.5*this.rect.heightthis.safeArea.top)return oe.END}}return this._aligns[0]},e.prototype.dispose=function(){this._referent=null,t.prototype.dispose.call(this)},Object.defineProperties(e.prototype,i),Object.defineProperties(e,s),e}(bt),he=function(t){function e(){t.call(this),this._isShown=!1}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={placement:{configurable:!0},isShown:{configurable:!0}},s={instanceClassName:{configurable:!0}};return s.instanceClassName.get=function(){return"PlacementReferent"},e.prototype.init=function(){this.registration.creator.setReferent(this),this._placement=this.registration.creator},i.placement.get=function(){return this._placement},i.isShown.get=function(){return this._isShown},i.isShown.set=function(t){this._isShown!==t&&this.isEnabled&&(this._isShown=t,t?this.registration.creator.show():this.registration.creator.hide())},e.prototype.show=function(){this.isShown=!0},e.prototype.hide=function(){this.isShown=!1},Object.defineProperties(e.prototype,i),Object.defineProperties(e,s),e}(bt);gt.core={Instance:bt,Breakpoints:_t,KeyCodes:P,Disclosure:Dt,DisclosureButton:xt,DisclosuresGroup:Lt,DisclosureType:St,DisclosureEvent:Tt,DisclosureSelector:Pt,DisclosureEmission:Rt,Collapse:jt,CollapseButton:kt,CollapsesGroup:It,CollapseSelector:Mt,RootSelector:{ROOT:":root"},RootEmission:x,Equisized:qt,EquisizedEmission:Gt,Toggle:Ht,EquisizedsGroup:Ut,InjectSvg:zt,InjectSvgSelector:Bt,Artwork:Vt,ArtworkSelector:Kt,AssessFile:$t,AssessDetail:Xt,AssessEmission:Yt,AssessSelector:Wt,Ratio:ie,RatioSelector:te,Placement:ce,PlacementReferent:he,PlacementAlign:oe,PlacementPosition:re,PlacementMode:ae},gt.internals.register(gt.core.CollapseSelector.COLLAPSE,gt.core.Collapse),gt.internals.register(gt.core.InjectSvgSelector.INJECT_SVG,gt.core.InjectSvg),gt.internals.register(gt.core.RatioSelector.RATIO,gt.core.Ratio),gt.internals.register(gt.core.AssessSelector.ASSESS_FILE,gt.core.AssessFile),gt.internals.register(gt.core.AssessSelector.DETAIL,gt.core.AssessDetail),gt.internals.legacy.setLegacy(),gt.internals.register(gt.core.ArtworkSelector.ARTWORK_USE,gt.core.Artwork)}(); //# sourceMappingURL=core.nomodule.min.js.map