diff --git a/pr-preview/pr-375/es/index.html b/pr-preview/pr-375/es/index.html index 23b267fc..1ad3190e 100644 --- a/pr-preview/pr-375/es/index.html +++ b/pr-preview/pr-375/es/index.html @@ -50,5 +50,5 @@ - + diff --git a/pr-preview/pr-375/es/main.af84ddac0f0afb77.js b/pr-preview/pr-375/es/main.3161f3c1386a1a26.js similarity index 50% rename from pr-preview/pr-375/es/main.af84ddac0f0afb77.js rename to pr-preview/pr-375/es/main.3161f3c1386a1a26.js index 02a215e0..06b70f84 100644 --- a/pr-preview/pr-375/es/main.af84ddac0f0afb77.js +++ b/pr-preview/pr-375/es/main.3161f3c1386a1a26.js @@ -1,6 +1,6 @@ globalThis.$localize=Object.assign(globalThis.$localize || {},{locale:"es"}); "use strict";(function(global,_global$ng,_global$ng2,_global$ng2$common,_global$ng$common,_global$ng$common$loc){(_global$ng=global.ng)!==null&&_global$ng!==void 0?_global$ng:global.ng={};(_global$ng2$common=(_global$ng2=global.ng).common)!==null&&_global$ng2$common!==void 0?_global$ng2$common:_global$ng2.common={};(_global$ng$common$loc=(_global$ng$common=global.ng.common).locales)!==null&&_global$ng$common$loc!==void 0?_global$ng$common$loc:_global$ng$common.locales={};const u=undefined;function plural(val){const n=val,i=Math.floor(Math.abs(val)),v=val.toString().replace(/^[^.]*\.?/,"").length,e=parseInt(val.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;if(n===1)return 1;if(e===0&&!(i===0)&&i%1000000===0&&v===0||!(e>=0&&e<=5))return 4;return 5}global.ng.common.locales["es"]=["es",[["a.\xA0m.","p.\xA0m."],u,u],u,[["D","L","M","X","J","V","S"],["dom","lun","mar","mi\xE9","jue","vie","s\xE1b"],["domingo","lunes","martes","mi\xE9rcoles","jueves","viernes","s\xE1bado"],["DO","LU","MA","MI","JU","VI","SA"]],u,[["E","F","M","A","M","J","J","A","S","O","N","D"],["ene","feb","mar","abr","may","jun","jul","ago","sept","oct","nov","dic"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]],u,[["a. C.","d. C."],u,["antes de Cristo","despu\xE9s de Cristo"]],1,[6,0],["d/M/yy","d MMM y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss (zzzz)"],["{1}, {0}",u,u,u],[",",".",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0\xA0%","#,##0.00\xA0\xA4","#E0"],"EUR","\u20AC","euro",{"AUD":[u,"$"],"BRL":[u,"R$"],"BYN":[u,"\u0440."],"CAD":[u,"$"],"CNY":[u,"\xA5"],"EGP":[],"ESP":["\u20A7"],"GBP":[u,"\xA3"],"HKD":[u,"$"],"ILS":[u,"\u20AA"],"INR":[u,"\u20B9"],"JPY":[u,"\xA5"],"KRW":[u,"\u20A9"],"MXN":[u,"$"],"NZD":[u,"$"],"PHP":[u,"\u20B1"],"RON":[u,"L"],"THB":["\u0E3F"],"TWD":[u,"NT$"],"USD":["US$","$"],"XAF":[],"XCD":[u,"$"],"XOF":[]},"ltr",plural,[[["del mediod\xEDa","de la madrugada","de la ma\xF1ana","de la tarde","de la noche"],u,u],[["mediod\xEDa","madrugada","ma\xF1ana","tarde","noche"],u,u],["12:00",["00:00","06:00"],["06:00","12:00"],["12:00","20:00"],["20:00","24:00"]]]]})(globalThis);; -(self.webpackChunkstudio_web=self.webpackChunkstudio_web||[]).push([[179],{8718:(C,de,O)=>{var y={"./read-along.entry.js":[9154,154]};function z(M){if(!O.o(y,M))return Promise.resolve().then(()=>{var L=new Error("Cannot find module '"+M+"'");throw L.code="MODULE_NOT_FOUND",L});var v=y[M],I=v[0];return O.e(v[1]).then(()=>O(I))}z.keys=()=>Object.keys(y),z.id=8718,C.exports=z},4156:(C,de,O)=>{"use strict";O.d(de,{F:()=>qr,b:()=>ni,g:()=>B,h:()=>q,r:()=>Ia});var y=O(5861);let M,v,I=!1,j=!1;const V="slot-fb{display:contents}slot-fb[hidden]{display:none}",x="http://www.w3.org/1999/xlink",N={},U=S=>"object"==(S=typeof S)||"function"===S;function X(S){var ue,Ie,Ee;return null!==(Ee=null===(Ie=null===(ue=S.head)||void 0===ue?void 0:ue.querySelector('meta[name="csp-nonce"]'))||void 0===Ie?void 0:Ie.getAttribute("content"))&&void 0!==Ee?Ee:void 0}const q=(S,ue,...Ie)=>{let Ee=null,Ve=null,ot=!1,qe=!1;const et=[],yt=xt=>{for(let $t=0;$txt[$t]).join(" "))}}if("function"==typeof S)return S(null===ue?{}:ue,et,ae);const Ct=ee(S,null);return Ct.$attrs$=ue,et.length>0&&(Ct.$children$=et),Ct.$key$=Ve,Ct},ee=(S,ue)=>({$flags$:0,$tag$:S,$text$:ue,$elm$:null,$children$:null,$attrs$:null,$key$:null}),J={},ae={forEach:(S,ue)=>S.map(Q).forEach(ue),map:(S,ue)=>S.map(Q).map(ue).map(se)},Q=S=>({vattrs:S.$attrs$,vchildren:S.$children$,vkey:S.$key$,vname:S.$name$,vtag:S.$tag$,vtext:S.$text$}),se=S=>{if("function"==typeof S.vtag){const Ie=Object.assign({},S.vattrs);return S.vkey&&(Ie.key=S.vkey),S.vname&&(Ie.name=S.vname),q(S.vtag,Ie,...S.vchildren||[])}const ue=ee(S.vtag,S.vtext);return ue.$attrs$=S.vattrs,ue.$children$=S.vchildren,ue.$key$=S.vkey,ue.$name$=S.vname,ue},B=S=>vo(S).$hostElement$,f=new WeakMap,E=(S,ue)=>"sc-"+S.$tagName$,P=(S,ue,Ie,Ee,Ve,ot)=>{if(Ie!==Ee){let qe=gr(S,ue),et=ue.toLowerCase();if("class"===ue){const yt=S.classList,Ct=k(Ie),xt=k(Ee);yt.remove(...Ct.filter($t=>$t&&!xt.includes($t))),yt.add(...xt.filter($t=>$t&&!Ct.includes($t)))}else if("style"===ue){for(const yt in Ie)(!Ee||null==Ee[yt])&&(yt.includes("-")?S.style.removeProperty(yt):S.style[yt]="");for(const yt in Ee)(!Ie||Ee[yt]!==Ie[yt])&&(yt.includes("-")?S.style.setProperty(yt,Ee[yt]):S.style[yt]=Ee[yt])}else if("key"!==ue)if("ref"===ue)Ee&&Ee(S);else if(qe||"o"!==ue[0]||"n"!==ue[1]){const yt=U(Ee);if((qe||yt&&null!==Ee)&&!Ve)try{if(S.tagName.includes("-"))S[ue]=Ee;else{const xt=Ee??"";"list"===ue?qe=!1:(null==Ie||S[ue]!=xt)&&(S[ue]=xt)}}catch{}let Ct=!1;et!==(et=et.replace(/^xlink\:?/,""))&&(ue=et,Ct=!0),null==Ee||!1===Ee?(!1!==Ee||""===S.getAttribute(ue))&&(Ct?S.removeAttributeNS(x,ue):S.removeAttribute(ue)):(!qe||4&ot||Ve)&&!yt&&(Ee=!0===Ee?"":Ee,Ct?S.setAttributeNS(x,ue,Ee):S.setAttribute(ue,Ee))}else if(ue="-"===ue[2]?ue.slice(3):gr(nl,et)?et.slice(2):et[2]+ue.slice(3),Ie||Ee){const yt=ue.endsWith(_);ue=ue.replace(he,""),Ie&&Ci.rel(S,ue,Ie,yt),Ee&&Ci.ael(S,ue,Ee,yt)}}},Z=/\s/,k=S=>S?S.split(Z):[],_="Capture",he=new RegExp(_+"$"),ce=(S,ue,Ie,Ee)=>{const Ve=11===ue.$elm$.nodeType&&ue.$elm$.host?ue.$elm$.host:ue.$elm$,ot=S&&S.$attrs$||N,qe=ue.$attrs$||N;for(Ee of De(Object.keys(ot)))Ee in qe||P(Ve,Ee,ot[Ee],void 0,Ie,ue.$flags$);for(Ee of De(Object.keys(qe)))P(Ve,Ee,ot[Ee],qe[Ee],Ie,ue.$flags$)};function De(S){return S.includes("ref")?[...S.filter(ue=>"ref"!==ue),"ref"]:S}const Ke=(S,ue,Ie,Ee)=>{const Ve=ue.$children$[Ie];let qe,et,ot=0;if(null!==Ve.$text$)qe=Ve.$elm$=Go.createTextNode(Ve.$text$);else if(qe=Ve.$elm$=Go.createElement(Ve.$tag$),ce(null,Ve,!1),(S=>null!=S)(M)&&qe["s-si"]!==M&&qe.classList.add(qe["s-si"]=M),Ve.$children$)for(ot=0;ot{let et,qe=S;for(qe.shadowRoot&&qe.tagName===v&&(qe=qe.shadowRoot);Ve<=ot;++Ve)Ee[Ve]&&(et=Ke(null,Ie,Ve),et&&(Ee[Ve].$elm$=et,qe.insertBefore(et,ue)))},Ce=(S,ue,Ie)=>{for(let Ee=ue;Ee<=Ie;++Ee){const Ve=S[Ee];if(Ve){const ot=Ve.$elm$;Tt(Ve),ot&&ot.remove()}}},lt=(S,ue,Ie=!1)=>S.$tag$===ue.$tag$&&(!!Ie||S.$key$===ue.$key$),ht=(S,ue,Ie=!1)=>{const Ee=ue.$elm$=S.$elm$,Ve=S.$children$,ot=ue.$children$,et=ue.$text$;null===et?("slot"===ue.$tag$&&!I||ce(S,ue,!1),null!==Ve&&null!==ot?((S,ue,Ie,Ee,Ve=!1)=>{let Gt,mr,ot=0,qe=0,et=0,yt=0,Ct=ue.length-1,xt=ue[0],$t=ue[Ct],fi=Ee.length-1,Nn=Ee[0],xi=Ee[fi];for(;ot<=Ct&&qe<=fi;)if(null==xt)xt=ue[++ot];else if(null==$t)$t=ue[--Ct];else if(null==Nn)Nn=Ee[++qe];else if(null==xi)xi=Ee[--fi];else if(lt(xt,Nn,Ve))ht(xt,Nn,Ve),xt=ue[++ot],Nn=Ee[++qe];else if(lt($t,xi,Ve))ht($t,xi,Ve),$t=ue[--Ct],xi=Ee[--fi];else if(lt(xt,xi,Ve))ht(xt,xi,Ve),S.insertBefore(xt.$elm$,$t.$elm$.nextSibling),xt=ue[++ot],xi=Ee[--fi];else if(lt($t,Nn,Ve))ht($t,Nn,Ve),S.insertBefore($t.$elm$,xt.$elm$),$t=ue[--Ct],Nn=Ee[++qe];else{for(et=-1,yt=ot;yt<=Ct;++yt)if(ue[yt]&&null!==ue[yt].$key$&&ue[yt].$key$===Nn.$key$){et=yt;break}et>=0?(mr=ue[et],mr.$tag$!==Nn.$tag$?Gt=Ke(ue&&ue[qe],Ie,et):(ht(mr,Nn,Ve),ue[et]=void 0,Gt=mr.$elm$),Nn=Ee[++qe]):(Gt=Ke(ue&&ue[qe],Ie,qe),Nn=Ee[++qe]),Gt&&xt.$elm$.parentNode.insertBefore(Gt,xt.$elm$)}ot>Ct?bt(S,null==Ee[fi+1]?null:Ee[fi+1].$elm$,Ie,Ee,qe,fi):qe>fi&&Ce(ue,ot,Ct)})(Ee,Ve,ue,ot,Ie):null!==ot?(null!==S.$text$&&(Ee.textContent=""),bt(Ee,null,ue,ot,0,ot.length-1)):null!==Ve&&Ce(Ve,0,Ve.length-1)):S.$text$!==et&&(Ee.data=et)},Tt=S=>{S.$attrs$&&S.$attrs$.ref&&S.$attrs$.ref(null),S.$children$&&S.$children$.map(Tt)},w=(S,ue)=>{ue&&!S.$onRenderResolve$&&ue["s-p"]&&ue["s-p"].push(new Promise(Ie=>S.$onRenderResolve$=Ie))},Ae=(S,ue)=>{if(S.$flags$|=16,!(4&S.$flags$))return w(S,S.$ancestorComponent$),Vf(()=>ke(S,ue));S.$flags$|=512},ke=(S,ue)=>{const Ee=S.$lazyInstance$;let Ve;return ue&&(S.$flags$|=256,S.$queuedListeners$&&(S.$queuedListeners$.map(([ot,qe])=>Ue(Ee,ot,qe)),S.$queuedListeners$=void 0),Ve=Ue(Ee,"componentWillLoad")),re(Ve,()=>ge(S,Ee,ue))},re=(S,ue)=>ne(S)?S.then(ue):ue(),ne=S=>S instanceof Promise||S&&S.then&&"function"==typeof S.then,ge=function(){var S=(0,y.Z)(function*(ue,Ie,Ee){var Ve;const ot=ue.$hostElement$,et=ot["s-rc"];Ee&&(S=>{const ue=S.$cmpMeta$,Ie=S.$hostElement$,Ee=ue.$flags$,ot=((S,ue,Ie)=>{var Ee;const Ve=E(ue),ot=tl.get(Ve);if(S=11===S.nodeType?S:Go,ot)if("string"==typeof ot){let et,qe=f.get(S=S.head||S);if(qe||f.set(S,qe=new Set),!qe.has(Ve)){{et=Go.createElement("style"),et.innerHTML=ot;const yt=null!==(Ee=Ci.$nonce$)&&void 0!==Ee?Ee:X(Go);null!=yt&&et.setAttribute("nonce",yt),S.insertBefore(et,S.querySelector("link"))}4&ue.$flags$&&(et.innerHTML+=V),qe&&qe.add(Ve)}}else S.adoptedStyleSheets.includes(ot)||(S.adoptedStyleSheets=[...S.adoptedStyleSheets,ot]);return Ve})(Ie.shadowRoot?Ie.shadowRoot:Ie.getRootNode(),ue);10&Ee&&(Ie["s-sc"]=ot,Ie.classList.add(ot+"-h"))})(ue);ze(ue,Ie,ot,Ee),et&&(et.map(Ct=>Ct()),ot["s-rc"]=void 0);{const Ct=null!==(Ve=ot["s-p"])&&void 0!==Ve?Ve:[],xt=()=>Ge(ue);0===Ct.length?xt():(Promise.all(Ct).then(xt),ue.$flags$|=4,Ct.length=0)}});return function(Ie,Ee,Ve){return S.apply(this,arguments)}}(),ze=(S,ue,Ie,Ee)=>{try{ue=ue.render(),S.$flags$&=-17,S.$flags$|=2,((S,ue,Ie=!1)=>{const Ee=S.$hostElement$,Ve=S.$cmpMeta$,ot=S.$vnode$||ee(null,null),qe=(S=>S&&S.$tag$===J)(ue)?ue:q(null,null,ue);if(v=Ee.tagName,Ve.$attrsToReflect$&&(qe.$attrs$=qe.$attrs$||{},Ve.$attrsToReflect$.map(([et,yt])=>qe.$attrs$[yt]=Ee[et])),Ie&&qe.$attrs$)for(const et of Object.keys(qe.$attrs$))Ee.hasAttribute(et)&&!["key","ref","style","class"].includes(et)&&(qe.$attrs$[et]=Ee[et]);qe.$tag$=null,qe.$flags$|=4,S.$vnode$=qe,qe.$elm$=ot.$elm$=Ee.shadowRoot||Ee,M=Ee["s-sc"],I=0!=(1&Ve.$flags$),ht(ot,qe,Ie)})(S,ue,Ee)}catch(Ve){ta(Ve,S.$hostElement$)}return null},Ge=S=>{const Ie=S.$hostElement$,Ve=S.$lazyInstance$,ot=S.$ancestorComponent$;Ue(Ve,"componentDidRender"),64&S.$flags$?Ue(Ve,"componentDidUpdate"):(S.$flags$|=64,pt(Ie),Ue(Ve,"componentDidLoad"),S.$onReadyResolve$(Ie),ot||Te()),S.$onInstanceResolve$(Ie),S.$onRenderResolve$&&(S.$onRenderResolve$(),S.$onRenderResolve$=void 0),512&S.$flags$&&$f(()=>Ae(S,!1)),S.$flags$&=-517},Te=S=>{pt(Go.documentElement),$f(()=>((S,ue,Ie)=>{const Ee=Ci.ce("appload",{detail:{namespace:"web-component"}});return S.dispatchEvent(Ee),Ee})(nl))},Ue=(S,ue,Ie)=>{if(S&&S[ue])try{return S[ue](Ie)}catch(Ee){ta(Ee)}},pt=S=>S.classList.add("hydrated"),Mn=(S,ue,Ie)=>{var Ee;const Ve=S.prototype;if(ue.$members$){S.watchers&&(ue.$watchers$=S.watchers);const ot=Object.entries(ue.$members$);if(ot.map(([qe,[et]])=>{31&et||2&Ie&&32&et?Object.defineProperty(Ve,qe,{get(){return((S,ue)=>vo(this).$instanceValues$.get(ue))(0,qe)},set(yt){((S,ue,Ie,Ee)=>{const Ve=vo(S),ot=Ve.$hostElement$,qe=Ve.$instanceValues$.get(ue),et=Ve.$flags$,yt=Ve.$lazyInstance$;Ie=((S,ue)=>null==S||U(S)?S:4&ue?"false"!==S&&(""===S||!!S):2&ue?parseFloat(S):1&ue?String(S):S)(Ie,Ee.$members$[ue][0]);const Ct=Number.isNaN(qe)&&Number.isNaN(Ie);if((!(8&et)||void 0===qe)&&Ie!==qe&&!Ct&&(Ve.$instanceValues$.set(ue,Ie),yt)){if(Ee.$watchers$&&128&et){const $t=Ee.$watchers$[ue];$t&&$t.map(fi=>{try{yt[fi](Ie,qe,ue)}catch(Nn){ta(Nn,ot)}})}2==(18&et)&&Ae(Ve,!1)}})(this,qe,yt,ue)},configurable:!0,enumerable:!0}):1&Ie&&64&et&&Object.defineProperty(Ve,qe,{value(...yt){var Ct;const xt=vo(this);return null===(Ct=xt?.$onInstancePromise$)||void 0===Ct?void 0:Ct.then(()=>{var $t;return null===($t=xt.$lazyInstance$)||void 0===$t?void 0:$t[qe](...yt)})}})}),1&Ie){const qe=new Map;Ve.attributeChangedCallback=function(et,yt,Ct){Ci.jmp(()=>{var xt;const $t=qe.get(et);if(this.hasOwnProperty($t))Ct=this[$t],delete this[$t];else{if(Ve.hasOwnProperty($t)&&"number"==typeof this[$t]&&this[$t]==Ct)return;if(null==$t){const fi=vo(this),Nn=fi?.$flags$;if(Nn&&!(8&Nn)&&128&Nn&&Ct!==yt){const xi=fi.$lazyInstance$,Gt=null===(xt=ue.$watchers$)||void 0===xt?void 0:xt[et];Gt?.forEach(mr=>{null!=xi[mr]&&xi[mr].call(xi,Ct,yt,et)})}return}}this[$t]=(null!==Ct||"boolean"!=typeof this[$t])&&Ct})},S.observedAttributes=Array.from(new Set([...Object.keys(null!==(Ee=ue.$watchers$)&&void 0!==Ee?Ee:{}),...ot.filter(([et,yt])=>15&yt[0]).map(([et,yt])=>{var Ct;const xt=yt[1]||et;return qe.set(xt,et),512&yt[0]&&(null===(Ct=ue.$attrsToReflect$)||void 0===Ct||Ct.push([et,xt])),xt})]))}}return S},hn=function(){var S=(0,y.Z)(function*(ue,Ie,Ee,Ve){let ot;if(!(32&Ie.$flags$)){if(Ie.$flags$|=32,Ee.$lazyBundleId$){if(ot=On(Ee),ot.then){const xt=()=>{};ot=yield ot,xt()}ot.isProxied||(Ee.$watchers$=ot.watchers,Mn(ot,Ee,2),ot.isProxied=!0);const Ct=()=>{};Ie.$flags$|=8;try{new ot(Ie)}catch(xt){ta(xt)}Ie.$flags$&=-9,Ie.$flags$|=128,Ct()}else ot=ue.constructor,customElements.whenDefined(Ee.$tagName$).then(()=>Ie.$flags$|=128);if(ot.style){let Ct=ot.style;const xt=E(Ee);if(!tl.has(xt)){const $t=()=>{};((S,ue,Ie)=>{let Ee=tl.get(S);hi&&Ie?(Ee=Ee||new CSSStyleSheet,"string"==typeof Ee?Ee=ue:Ee.replaceSync(ue)):Ee=ue,tl.set(S,Ee)})(xt,Ct,!!(1&Ee.$flags$)),$t()}}}const qe=Ie.$ancestorComponent$,et=()=>Ae(Ie,!0);qe&&qe["s-rc"]?qe["s-rc"].push(et):et()});return function(Ie,Ee,Ve,ot){return S.apply(this,arguments)}}(),wi=S=>{Ue(S,"disconnectedCallback")},pr=function(){var S=(0,y.Z)(function*(ue){if(!(1&Ci.$flags$)){const Ie=vo(ue);Ie.$rmListeners$&&(Ie.$rmListeners$.map(Ee=>Ee()),Ie.$rmListeners$=void 0),Ie?.$lazyInstance$?wi(Ie.$lazyInstance$):Ie?.$onReadyPromise$&&Ie.$onReadyPromise$.then(()=>wi(Ie.$lazyInstance$))}});return function(Ie){return S.apply(this,arguments)}}(),ni=(S,ue={})=>{var Ie;const Ve=[],ot=ue.exclude||[],qe=nl.customElements,et=Go.head,yt=et.querySelector("meta[charset]"),Ct=Go.createElement("style"),xt=[];let $t,fi=!0;Object.assign(Ci,ue),Ci.$resourcesUrl$=new URL(ue.resourcesUrl||"./",Go.baseURI).href;let Nn=!1;if(S.map(xi=>{xi[1].map(Gt=>{var mr;const Or={$flags$:Gt[0],$tagName$:Gt[1],$members$:Gt[2],$listeners$:Gt[3]};4&Or.$flags$&&(Nn=!0),Or.$members$=Gt[2],Or.$listeners$=Gt[3],Or.$attrsToReflect$=[],Or.$watchers$=null!==(mr=Gt[4])&&void 0!==mr?mr:{};const vn=Or.$tagName$,ay=class extends HTMLElement{constructor(li){super(li),ea(li=this,Or),1&Or.$flags$&&li.attachShadow({mode:"open"})}connectedCallback(){$t&&(clearTimeout($t),$t=null),fi?xt.push(this):Ci.jmp(()=>(S=>{if(!(1&Ci.$flags$)){const ue=vo(S),Ie=ue.$cmpMeta$,Ee=()=>{};if(1&ue.$flags$)ds(S,ue,Ie.$listeners$),ue?.$lazyInstance$||ue?.$onReadyPromise$&&ue.$onReadyPromise$.then(()=>{});else{ue.$flags$|=1;{let Ve=S;for(;Ve=Ve.parentNode||Ve.host;)if(Ve["s-p"]){w(ue,ue.$ancestorComponent$=Ve);break}}Ie.$members$&&Object.entries(Ie.$members$).map(([Ve,[ot]])=>{if(31&ot&&S.hasOwnProperty(Ve)){const qe=S[Ve];delete S[Ve],S[Ve]=qe}}),hn(S,ue,Ie)}Ee()}})(this))}disconnectedCallback(){Ci.jmp(()=>pr(this))}componentOnReady(){return vo(this).$onReadyPromise$}};Or.$lazyBundleId$=xi[0],!ot.includes(vn)&&!qe.get(vn)&&(Ve.push(vn),qe.define(vn,Mn(ay,Or,1)))})}),Ve.length>0&&(Nn&&(Ct.textContent+=V),Ct.textContent+=Ve+"{visibility:hidden}.hydrated{visibility:inherit}",Ct.innerHTML.length)){Ct.setAttribute("data-styles","");const xi=null!==(Ie=Ci.$nonce$)&&void 0!==Ie?Ie:X(Go);null!=xi&&Ct.setAttribute("nonce",xi),et.insertBefore(Ct,yt?yt.nextSibling:et.firstChild)}fi=!1,xt.length?xt.map(xi=>xi.connectedCallback()):Ci.jmp(()=>$t=setTimeout(Te,30))},qr=(S,ue)=>ue,ds=(S,ue,Ie,Ee)=>{Ie&&Ie.map(([Ve,ot,qe])=>{const et=rc(S,Ve),yt=_o(ue,qe),Ct=ka(Ve);Ci.ael(et,ot,yt,Ct),(ue.$rmListeners$=ue.$rmListeners$||[]).push(()=>Ci.rel(et,ot,yt,Ct))})},_o=(S,ue)=>Ie=>{try{256&S.$flags$?S.$lazyInstance$[ue](Ie):(S.$queuedListeners$=S.$queuedListeners$||[]).push([ue,Ie])}catch(Ee){ta(Ee)}},rc=(S,ue)=>8&ue?nl:S,ka=S=>vt?{passive:0!=(1&S),capture:0!=(2&S)}:0!=(2&S),el=new WeakMap,vo=S=>el.get(S),Ia=(S,ue)=>el.set(ue.$lazyInstance$=S,ue),ea=(S,ue)=>{const Ie={$flags$:0,$hostElement$:S,$cmpMeta$:ue,$instanceValues$:new Map};return Ie.$onInstancePromise$=new Promise(Ee=>Ie.$onInstanceResolve$=Ee),Ie.$onReadyPromise$=new Promise(Ee=>Ie.$onReadyResolve$=Ee),S["s-p"]=[],S["s-rc"]=[],ds(S,Ie,ue.$listeners$),el.set(S,Ie)},gr=(S,ue)=>ue in S,ta=(S,ue)=>(0,console.error)(S,ue),ac=new Map,On=(S,ue,Ie)=>{const Ee=S.$tagName$.replace(/-/g,"_"),Ve=S.$lazyBundleId$,ot=ac.get(Ve);if(ot)return ot[Ee];if(!Ie||!BUILD.hotModuleReplacement){const qe=et=>(ac.set(Ve,et),et[Ee]);if("read-along"===Ve)return O.e(154).then(O.bind(O,9154)).then(qe,ta)}return O(8718)(`./${Ve}.entry.js`).then(qe=>(ac.set(Ve,qe),qe[Ee]),ta)},tl=new Map,nl=typeof window<"u"?window:{},Go=nl.document||{head:{}},Ci={$flags$:0,$resourcesUrl$:"",jmp:S=>S(),raf:S=>requestAnimationFrame(S),ael:(S,ue,Ie,Ee)=>S.addEventListener(ue,Ie,Ee),rel:(S,ue,Ie,Ee)=>S.removeEventListener(ue,Ie,Ee),ce:(S,ue)=>new CustomEvent(S,ue)},vt=(()=>{let S=!1;try{Go.addEventListener("e",null,Object.defineProperty({},"passive",{get(){S=!0}}))}catch{}return S})(),hi=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),Qu=[],$n=[],Pn=(S,ue)=>Ie=>{S.push(Ie),j||(j=!0,ue&&4&Ci.$flags$?$f(Bt):Ci.raf(Bt))},zf=S=>{for(let ue=0;ue{zf(Qu),zf($n),(j=Qu.length>0)&&Ci.raf(Bt)},$f=S=>Promise.resolve(void 0).then(S),Vf=Pn($n,!0)},7044:(C,de,O)=>{"use strict";var y=O(5861);let M=null,I=1;const L=Symbol("SIGNAL");function j(t){const n=M;return M=t,n}function R(t){if((!me(t)||t.dirty)&&(t.dirty||t.lastCleanEpoch!==I)){if(!t.producerMustRecompute(t)&&!te(t))return t.dirty=!1,void(t.lastCleanEpoch=I);t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=I}}function te(t){B(t);for(let n=0;n0}function B(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}let Z=null;function Ae(t){return"function"==typeof t}function ke(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const re=ke(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,o)=>`${o+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function ne(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class ge{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const r of e)r.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(Ae(i))try{i()}catch(r){n=r instanceof re?r.errors:[r]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const r of o)try{Te(r)}catch(a){n=n??[],a instanceof re?n=[...n,...a.errors]:n.push(a)}}if(n)throw new re(n)}}add(n){var e;if(n&&n!==this)if(this.closed)Te(n);else{if(n instanceof ge){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&ne(e,n)}remove(n){const{_finalizers:e}=this;e&&ne(e,n),n instanceof ge&&n._removeParent(this)}}ge.EMPTY=(()=>{const t=new ge;return t.closed=!0,t})();const ze=ge.EMPTY;function Ge(t){return t instanceof ge||t&&"closed"in t&&Ae(t.remove)&&Ae(t.add)&&Ae(t.unsubscribe)}function Te(t){Ae(t)?t():t.unsubscribe()}const Ue={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},pt={setTimeout(t,n,...e){const{delegate:i}=pt;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=pt;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function tt(t){pt.setTimeout(()=>{const{onUnhandledError:n}=Ue;if(!n)throw t;n(t)})}function kt(){}const Mn=Ir("C",void 0,void 0);function Ir(t,n,e){return{kind:t,value:n,error:e}}let wi=null;function pr(t){if(Ue.useDeprecatedSynchronousErrorHandling){const n=!wi;if(n&&(wi={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=wi;if(wi=null,e)throw i}}else t()}class qr extends ge{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Ge(n)&&n.add(this)):this.destination=Ia}static create(n,e,i){return new ka(n,e,i)}next(n){this.isStopped?vo(function ao(t){return Ir("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?vo(function hn(t){return Ir("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?vo(Mn,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ds=Function.prototype.bind;function _o(t,n){return ds.call(t,n)}class rc{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){qs(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){qs(i)}else qs(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){qs(e)}}}class ka extends qr{constructor(n,e,i){let o;if(super(),Ae(n)||!n)o={next:n??void 0,error:e??void 0,complete:i??void 0};else{let r;this&&Ue.useDeprecatedNextContext?(r=Object.create(n),r.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&_o(n.next,r),error:n.error&&_o(n.error,r),complete:n.complete&&_o(n.complete,r)}):o=n}this.destination=new rc(o)}}function qs(t){Ue.useDeprecatedSynchronousErrorHandling?function ni(t){Ue.useDeprecatedSynchronousErrorHandling&&wi&&(wi.errorThrown=!0,wi.error=t)}(t):tt(t)}function vo(t,n){const{onStoppedNotification:e}=Ue;e&&pt.setTimeout(()=>e(t,n))}const Ia={closed:!0,next:kt,error:function el(t){throw t},complete:kt},ea="function"==typeof Symbol&&Symbol.observable||"@@observable";function gr(t){return t}function ac(t){return 0===t.length?gr:1===t.length?t[0]:function(e){return t.reduce((i,o)=>o(i),e)}}let On=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,o){const r=function Go(t){return t&&t instanceof qr||function nl(t){return t&&Ae(t.next)&&Ae(t.error)&&Ae(t.complete)}(t)&&Ge(t)}(e)?e:new ka(e,i,o);return pr(()=>{const{operator:a,source:s}=this;r.add(a?a.call(r,s):s?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=tl(i))((o,r)=>{const a=new ka({next:s=>{try{e(s)}catch(l){r(l),a.unsubscribe()}},error:r,complete:o});this.subscribe(a)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[ea](){return this}pipe(...e){return ac(e)(this)}toPromise(e){return new(e=tl(e))((i,o)=>{let r;this.subscribe(a=>r=a,a=>o(a),()=>i(r))})}}return t.create=n=>new t(n),t})();function tl(t){var n;return null!==(n=t??Ue.Promise)&&void 0!==n?n:Promise}const Ci=ke(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let vt=(()=>{class t extends On{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new Yf(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new Ci}next(e){pr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){pr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){pr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:o,observers:r}=this;return i||o?ze:(this.currentObservers=null,r.push(e),new ge(()=>{this.currentObservers=null,ne(r,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:o,isStopped:r}=this;i?e.error(o):r&&e.complete()}asObservable(){const e=new On;return e.source=this,e}}return t.create=(n,e)=>new Yf(n,e),t})();class Yf extends vt{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:ze}}class hi extends vt{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function Qu(t){return Ae(t?.lift)}function $n(t){return n=>{if(Qu(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Pn(t,n,e,i,o){return new zf(t,n,e,i,o)}class zf extends qr{constructor(n,e,i,o,r,a){super(n),this.onFinalize=r,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){n.error(l)}}:super._next,this._error=o?function(s){try{o(s)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function Bt(t,n){return $n((e,i)=>{let o=0;e.subscribe(Pn(i,r=>{i.next(t.call(n,r,o++))}))})}const Vf="https://g.co/ng/security#xss";class S extends Error{constructor(n,e){super(function ue(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function et(t){return{toString:t}.toString()}const Ct="__parameters__";function Nn(t,n,e){return et(()=>{const i=function fi(t){return function(...e){if(t){const i=t(...e);for(const o in i)this[o]=i[o]}}}(n);function o(...r){if(this instanceof o)return i.apply(this,r),this;const a=new o(...r);return s.annotation=a,s;function s(l,c,u){const d=l.hasOwnProperty(Ct)?l[Ct]:Object.defineProperty(l,Ct,{value:[]})[Ct];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(a),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}const Gt=globalThis;function vn(t){for(let n in t)if(t[n]===vn)return n;throw Error("Could not find renamed property on target object.")}function ay(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function li(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(li).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function sy(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const qj=vn({__forward_ref__:vn});function Dn(t){return t.__forward_ref__=Dn,t.toString=function(){return li(this())},t}function Vt(t){return Zf(t)?t():t}function Zf(t){return"function"==typeof t&&t.hasOwnProperty(qj)&&t.__forward_ref__===Dn}function hs(t,n,e){t!=n&&function Ht(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(e,t,n,"==")}function $e(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function en(t){return{providers:t.providers||[],imports:t.imports||[]}}function Gf(t){return Ax(t,Wf)||Ax(t,kx)}function Ax(t,n){return t.hasOwnProperty(n)?t[n]:null}function Uf(t){return t&&(t.hasOwnProperty(ly)||t.hasOwnProperty(r3))?t[ly]:null}const Wf=vn({\u0275prov:vn}),ly=vn({\u0275inj:vn}),kx=vn({ngInjectableDef:vn}),r3=vn({ngInjectorDef:vn});class He{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=$e({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function fy(t){return t&&!!t.\u0275providers}const Ku=vn({\u0275cmp:vn}),py=vn({\u0275dir:vn}),gy=vn({\u0275pipe:vn}),Ox=vn({\u0275mod:vn}),Oa=vn({\u0275fac:vn}),qu=vn({__NG_ELEMENT_ID__:vn}),Rx=vn({__NG_ENV_ID__:vn});function Jt(t){return"string"==typeof t?t:null==t?"":String(t)}function my(t,n){throw new S(-201,!1)}var fn=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(fn||{});let by;function Px(){return by}function Po(t){const n=by;return by=t,n}function Nx(t,n,e){const i=Gf(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&fn.Optional?null:void 0!==n?n:void my()}const ed={},yy="__NG_DI_FLAG__",Xf="ngTempTokenPath",d3=/\n/gm,Fx="__source";let sc;function fs(t){const n=sc;return sc=t,n}function p3(t,n=fn.Default){if(void 0===sc)throw new S(-203,!1);return null===sc?Nx(t,void 0,n):sc.get(t,n&fn.Optional?null:void 0,n)}function Me(t,n=fn.Default){return(Px()||p3)(Vt(t),n)}function Pe(t,n=fn.Default){return Me(t,Jf(n))}function Jf(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function _y(t){const n=[];for(let e=0;eArray.isArray(e)?cc(e,n):n(e))}function jx(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Qf(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Xo(t,n,e){let i=uc(t,n);return i>=0?t[1|i]=e:(i=~i,function Bx(t,n,e,i){let o=t.length;if(o==n)t.push(e,i);else if(1===o)t.push(i,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>n;)t[o]=t[o-2],o--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function wy(t,n){const e=uc(t,n);if(e>=0)return t[1|e]}function uc(t,n){return function Hx(t,n,e){let i=0,o=t.length>>e;for(;o!==i;){const r=i+(o-i>>1),a=t[r<n?o=r:i=r+1}return~(o<n){a=r-1;break}}}for(;r-1){let r;for(;++or?"":o[u+1].toLowerCase(),2&i&&c!==d){if(Pr(i))return!1;a=!0}}}}else{if(!a&&!Pr(i)&&!Pr(l))return!1;if(a&&Pr(l))continue;a=!1,i=l|1&i}}return Pr(i)||a}function Pr(t){return 0==(1&t)}function E3(t,n,e,i){if(null===n)return-1;let o=0;if(i||!e){let r=!1;for(;o-1)for(e++;e0?'="'+s+'"':"")+"]"}else 8&i?o+="."+a:4&i&&(o+=" "+a);else""!==o&&!Pr(a)&&(n+=Ux(r,o),o=""),i=a,r=r||!Pr(i);e++}return""!==o&&(n+=Ux(r,o)),n}function pn(t){return et(()=>{const n=Xx(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===ep.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Rr.Emulated,styles:t.styles||xn,_:null,schemas:t.schemas||null,tView:null,id:""};Jx(e);const i=t.dependencies;return e.directiveDefs=tp(i,!1),e.pipeDefs=tp(i,!0),e.id=function L3(t){let n=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const o of e)n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(e),e})}function P3(t){return dn(t)||ji(t)}function N3(t){return null!==t}function nn(t){return et(()=>({type:t.type,bootstrap:t.bootstrap||xn,declarations:t.declarations||xn,imports:t.imports||xn,exports:t.exports||xn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Wx(t,n){if(null==t)return na;const e={};for(const i in t)if(t.hasOwnProperty(i)){const o=t[i];let r,a,s=Le.None;Array.isArray(o)?(s=o[0],r=o[1],a=o[2]??r):(r=o,a=o),n?(e[r]=s!==Le.None?[i,s]:i,n[r]=a):e[r]=i}return e}function gt(t){return et(()=>{const n=Xx(t);return Jx(n),n})}function Fo(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function dn(t){return t[Ku]||null}function ji(t){return t[py]||null}function Qi(t){return t[gy]||null}function so(t,n){const e=t[Ox]||null;if(!e&&!0===n)throw new Error(`Type ${li(t)} does not have '\u0275mod' property.`);return e}function Xx(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:t.inputs||na,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||xn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Wx(t.inputs,n),outputs:Wx(t.outputs),debugInfo:null}}function Jx(t){t.features?.forEach(n=>n(t))}function tp(t,n){if(!t)return null;const e=n?Qi:P3;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(N3)}function dc(t){return{\u0275providers:t}}function j3(...t){return{\u0275providers:Dy(0,t),\u0275fromNgModule:!0}}function Dy(t,...n){const e=[],i=new Set;let o;const r=a=>{e.push(a)};return cc(n,a=>{const s=a;np(s,r,[],i)&&(o||=[],o.push(s))}),void 0!==o&&Qx(o,r),e}function Qx(t,n){for(let e=0;e{n(r,i)})}}function np(t,n,e,i){if(!(t=Vt(t)))return!1;let o=null,r=Uf(t);const a=!r&&dn(t);if(r||a){if(a&&!a.standalone)return!1;o=t}else{const l=t.ngModule;if(r=Uf(l),!r)return!1;o=l}const s=i.has(o);if(a){if(s)return!1;if(i.add(o),a.dependencies){const l="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const c of l)np(c,n,e,i)}}else{if(!r)return!1;{if(null!=r.imports&&!s){let c;i.add(o);try{cc(r.imports,u=>{np(u,n,e,i)&&(c||=[],c.push(u))})}finally{}void 0!==c&&Qx(c,n)}if(!s){const c=il(o)||(()=>new o);n({provide:o,useFactory:c,deps:xn},o),n({provide:Cy,useValue:o,multi:!0},o),n({provide:ol,useValue:()=>Me(o),multi:!0},o)}const l=r.providers;if(null!=l&&!s){const c=t;Ey(l,u=>{n(u,c)})}}}return o!==t&&void 0!==t.providers}function Ey(t,n){for(let e of t)fy(e)&&(e=e.\u0275providers),Array.isArray(e)?Ey(e,n):n(e)}const B3=vn({provide:String,useValue:vn});function Ty(t){return null!==t&&"object"==typeof t&&B3 in t}function rl(t){return"function"==typeof t}const My=new He(""),ip={},Y3={};let Ay;function op(){return void 0===Ay&&(Ay=new qf),Ay}class Lo{}class hc extends Lo{get destroyed(){return this._destroyed}constructor(n,e,i,o){super(),this.parent=e,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Iy(n,a=>this.processProvider(a)),this.records.set(Yx,fc(void 0,this)),o.has("environment")&&this.records.set(Lo,fc(void 0,this));const r=this.records.get(My);null!=r&&"string"==typeof r.value&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(Cy,xn,fn.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=j(null);try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const e=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),j(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const e=fs(this),i=Po(void 0);try{return n()}finally{fs(e),Po(i)}}get(n,e=ed,i=fn.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Rx))return n[Rx](this);i=Jf(i);const r=fs(this),a=Po(void 0);try{if(!(i&fn.SkipSelf)){let l=this.records.get(n);if(void 0===l){const c=function G3(t){return"function"==typeof t||"object"==typeof t&&t instanceof He}(n)&&Gf(n);l=c&&this.injectableDefInScope(c)?fc(ky(n),ip):null,this.records.set(n,l)}if(null!=l)return this.hydrate(n,l)}return(i&fn.Self?op():this.parent).get(n,e=i&fn.Optional&&e===ed?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Xf]=s[Xf]||[]).unshift(li(n)),r)throw s;return function m3(t,n,e,i){const o=t[Xf];throw n[Fx]&&o.unshift(n[Fx]),t.message=function b3(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let o=li(n);if(Array.isArray(n))o=n.map(li).join(" -> ");else if("object"==typeof n){let r=[];for(let a in n)if(n.hasOwnProperty(a)){let s=n[a];r.push(a+":"+("string"==typeof s?JSON.stringify(s):li(s)))}o=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${o}]: ${t.replace(d3,"\n ")}`}("\n"+t.message,o,e,i),t.ngTokenPath=o,t[Xf]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{Po(a),fs(r)}}resolveInjectorInitializers(){const n=j(null),e=fs(this),i=Po(void 0);try{const r=this.get(ol,xn,fn.Self);for(const a of r)a()}finally{fs(e),Po(i),j(n)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(li(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new S(205,!1)}processProvider(n){let e=rl(n=Vt(n))?n:Vt(n&&n.provide);const i=function $3(t){return Ty(t)?fc(void 0,t.useValue):fc(eS(t),ip)}(n);if(!rl(n)&&!0===n.multi){let o=this.records.get(e);o||(o=fc(void 0,ip,!0),o.factory=()=>_y(o.multi),this.records.set(e,o)),e=n,o.multi.push(n)}this.records.set(e,i)}hydrate(n,e){const i=j(null);try{return e.value===ip&&(e.value=Y3,e.value=e.factory()),"object"==typeof e.value&&e.value&&function Z3(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{j(i)}}injectableDefInScope(n){if(!n.providedIn)return!1;const e=Vt(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){const e=this._onDestroyHooks.indexOf(n);-1!==e&&this._onDestroyHooks.splice(e,1)}}function ky(t){const n=Gf(t),e=null!==n?n.factory:il(t);if(null!==e)return e;if(t instanceof He)throw new S(204,!1);if(t instanceof Function)return function z3(t){if(t.length>0)throw new S(204,!1);const e=function o3(t){return t&&(t[Wf]||t[kx])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new S(204,!1)}function eS(t,n,e){let i;if(rl(t)){const o=Vt(t);return il(o)||ky(o)}if(Ty(t))i=()=>Vt(t.useValue);else if(function qx(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(..._y(t.deps||[]));else if(function Kx(t){return!(!t||!t.useExisting)}(t))i=()=>Me(Vt(t.useExisting));else{const o=Vt(t&&(t.useClass||t.provide));if(!function V3(t){return!!t.deps}(t))return il(o)||ky(o);i=()=>new o(..._y(t.deps))}return i}function fc(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function Iy(t,n){for(const e of t)Array.isArray(e)?Iy(e,n):e&&fy(e)?Iy(e.\u0275providers,n):n(e)}function ia(t,n){t instanceof hc&&t.assertNotDestroyed();const i=fs(t),o=Po(void 0);try{return n()}finally{fs(i),Po(o)}}function tS(){return void 0!==Px()||null!=function f3(){return sc}()}const ci=0,nt=1,It=2,Si=3,Nr=4,lo=5,Jo=6,gc=7,Xn=8,Ki=9,Fr=10,Ut=11,od=12,iS=13,mc=14,pi=15,rd=16,bc=17,Ra=18,ad=19,oS=20,ms=21,sp=22,al=23,Qt=25,Ry=1,oa=7,yc=9,Di=10;var Py=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Py||{});function co(t){return Array.isArray(t)&&"object"==typeof t[Ry]}function uo(t){return Array.isArray(t)&&!0===t[Ry]}function Ny(t){return 0!=(4&t.flags)}function sl(t){return t.componentOffset>-1}function cp(t){return 1==(1&t.flags)}function Lr(t){return!!t.template}function Fy(t){return 0!=(512&t[It])}class r4{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function lS(t,n,e,i){null!==n?n.applyValueToInputSignal(n,i):t[e]=i}function Gi(){return cS}function cS(t){return t.type.prototype.ngOnChanges&&(t.setInput=s4),a4}function a4(){const t=dS(this),n=t?.current;if(n){const e=t.previous;if(e===na)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function s4(t,n,e,i,o){const r=this.declaredInputs[i],a=dS(t)||function l4(t,n){return t[uS]=n}(t,{previous:na,current:null}),s=a.current||(a.current={}),l=a.previous,c=l[r];s[r]=new r4(c&&c.currentValue,e,l===na),lS(t,n,o,e)}Gi.ngInherit=!0;const uS="__ngSimpleChanges__";function dS(t){return t[uS]||null}const ra=function(t,n,e){},hS="svg";let pS=!1;function Bn(t){for(;Array.isArray(t);)t=t[ci];return t}function ld(t,n){return Bn(n[t])}function wo(t,n){return Bn(n[t.index])}function cd(t,n){return t.data[n]}function _c(t,n){return t[n]}function Qo(t,n){const e=n[t];return co(e)?e:e[ci]}function Yy(t){return 128==(128&t[It])}function aa(t,n){return null==n?null:t[n]}function gS(t){t[bc]=0}function p4(t){1024&t[It]||(t[It]|=1024,Yy(t)&&ud(t))}function zy(t){return!!(9216&t[It]||t[al]?.dirty)}function $y(t){t[Fr].changeDetectionScheduler?.notify(1),zy(t)?ud(t):64&t[It]&&(function u4(){return pS}()?(t[It]|=1024,ud(t)):t[Fr].changeDetectionScheduler?.notify())}function ud(t){t[Fr].changeDetectionScheduler?.notify();let n=ll(t);for(;null!==n&&!(8192&n[It])&&(n[It]|=8192,Yy(n));)n=ll(n)}function up(t,n){if(256==(256&t[It]))throw new S(911,!1);null===t[ms]&&(t[ms]=[]),t[ms].push(n)}function ll(t){const n=t[Si];return uo(n)?n[Si]:n}const Wt={lFrame:DS(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function yS(){return Wt.bindingsEnabled}function vc(){return null!==Wt.skipHydrationRootTNode}function je(){return Wt.lFrame.lView}function gn(){return Wt.lFrame.tView}function Yt(t){return Wt.lFrame.contextLView=t,t[Xn]}function zt(t){return Wt.lFrame.contextLView=null,t}function Fn(){let t=_S();for(;null!==t&&64===t.type;)t=t.parent;return t}function _S(){return Wt.lFrame.currentTNode}function dd(){const t=Wt.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function sa(t,n){const e=Wt.lFrame;e.currentTNode=t,e.isParent=n}function Zy(){return Wt.lFrame.isParent}function Gy(){Wt.lFrame.isParent=!1}function Co(){const t=Wt.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function jr(){return Wt.lFrame.bindingIndex++}function Na(t){const n=Wt.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function CS(t){Wt.lFrame.inI18n=t}function D4(t,n){const e=Wt.lFrame;e.bindingIndex=e.bindingRootIndex=t,Uy(n)}function Uy(t){Wt.lFrame.currentDirectiveIndex=t}function Wy(t){const n=Wt.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function Xy(){return Wt.lFrame.currentQueryIndex}function dp(t){Wt.lFrame.currentQueryIndex=t}function T4(t){const n=t[nt];return 2===n.type?n.declTNode:1===n.type?t[lo]:null}function xS(t,n,e){if(e&fn.SkipSelf){let o=n,r=t;for(;!(o=o.parent,null!==o||e&fn.Host||(o=T4(r),null===o||(r=r[mc],10&o.type))););if(null===o)return!1;n=o,t=r}const i=Wt.lFrame=SS();return i.currentTNode=n,i.lView=t,!0}function Jy(t){const n=SS(),e=t[nt];Wt.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function SS(){const t=Wt.lFrame,n=null===t?null:t.child;return null===n?DS(t):n}function DS(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function ES(){const t=Wt.lFrame;return Wt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const TS=ES;function Qy(){const t=ES();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ho(){return Wt.lFrame.selectedIndex}function cl(t){Wt.lFrame.selectedIndex=t}function Jn(){const t=Wt.lFrame;return cd(t.tView,t.selectedIndex)}function hd(){Wt.lFrame.currentNamespace=hS}let AS=!0;function fd(){return AS}function la(t){AS=t}function hp(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[l]<0&&(t[bc]+=65536),(s>14>16&&(3&t[It])===n&&(t[It]+=16384,IS(s,r)):IS(s,r)}const wc=-1;class pd{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function e_(t){return t!==wc}function gd(t){return 32767&t}function md(t,n){let e=function j4(t){return t>>16}(t),i=n;for(;e>0;)i=i[mc],e--;return i}let t_=!0;function gp(t){const n=t_;return t_=t,n}const OS=255,RS=5;let B4=0;const ca={};function mp(t,n){const e=PS(t,n);if(-1!==e)return e;const i=n[nt];i.firstCreatePass&&(t.injectorIndex=n.length,n_(i.data,t),n_(n,null),n_(i.blueprint,null));const o=bp(t,n),r=t.injectorIndex;if(e_(o)){const a=gd(o),s=md(o,n),l=s[nt].data;for(let c=0;c<8;c++)n[r+c]=s[a+c]|l[a+c]}return n[r+8]=o,r}function n_(t,n){t.push(0,0,0,0,0,0,0,0,n)}function PS(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function bp(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,o=n;for(;null!==o;){if(i=YS(o),null===i)return wc;if(e++,o=o[mc],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return wc}function i_(t,n,e){!function H4(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(qu)&&(i=e[qu]),null==i&&(i=e[qu]=B4++);const o=i&OS;n.data[t+(o>>RS)]|=1<=0?n&OS:V4:n}(e);if("function"==typeof r){if(!xS(n,t,i))return i&fn.Host?NS(o,0,i):FS(n,e,i,o);try{let a;if(a=r(i),null!=a||i&fn.Optional)return a;my()}finally{TS()}}else if("number"==typeof r){let a=null,s=PS(t,n),l=wc,c=i&fn.Host?n[pi][lo]:null;for((-1===s||i&fn.SkipSelf)&&(l=-1===s?bp(t,n):n[s+8],l!==wc&&HS(i,!1)?(a=n[nt],s=gd(l),n=md(l,n)):s=-1);-1!==s;){const u=n[nt];if(BS(r,s,u.data)){const d=z4(s,n,e,a,i,c);if(d!==ca)return d}l=n[s+8],l!==wc&&HS(i,n[nt].data[s+8]===c)&&BS(r,s,n)?(a=u,s=gd(l),n=md(l,n)):s=-1}}return o}function z4(t,n,e,i,o,r){const a=n[nt],s=a.data[t+8],u=yp(s,a,e,null==i?sl(s)&&t_:i!=a&&0!=(3&s.type),o&fn.Host&&r===s);return null!==u?ul(n,a,u,s):ca}function yp(t,n,e,i,o){const r=t.providerIndexes,a=n.data,s=1048575&r,l=t.directiveStart,u=r>>20,h=o?s+u:t.directiveEnd;for(let p=i?s:s+u;p=l&&g.type===e)return p}if(o){const p=a[l];if(p&&Lr(p)&&p.type===e)return l}return null}function ul(t,n,e,i){let o=t[e];const r=n.data;if(function P4(t){return t instanceof pd}(o)){const a=o;a.resolving&&function l3(t,n){throw n&&n.join(" > "),new S(-200,t)}(function An(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Jt(t)}(r[e]));const s=gp(a.canSeeViewProviders);a.resolving=!0;const c=a.injectImpl?Po(a.injectImpl):null;xS(t,i,fn.Default);try{o=t[e]=a.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function O4(t,n,e){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=n.type.prototype;if(i){const a=cS(n);(e.preOrderHooks??=[]).push(t,a),(e.preOrderCheckHooks??=[]).push(t,a)}o&&(e.preOrderHooks??=[]).push(0-t,o),r&&((e.preOrderHooks??=[]).push(t,r),(e.preOrderCheckHooks??=[]).push(t,r))}(e,r[e],n)}finally{null!==c&&Po(c),gp(s),a.resolving=!1,TS()}}return o}function BS(t,n,e){return!!(e[n+(t>>RS)]&1<{const n=t.prototype.constructor,e=n[Oa]||o_(n),i=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==i;){const r=o[Oa]||o_(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function o_(t){return Zf(t)?()=>{const n=o_(Vt(t));return n&&n()}:il(t)}function YS(t){const n=t[nt],e=n.type;return 2===e?n.declTNode:1===e?t[lo]:null}function ua(t){return function Y4(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let o=0;for(;o{class t{static{this.THROW_IF_NOT_FOUND=ed}static{this.NULL=new qf}static create(e,i){if(Array.isArray(e))return GS({name:""},i,e,"");{const o=e.name??"";return GS({name:o},e.parent,e.providers,o)}}static{this.\u0275prov=$e({token:t,providedIn:"any",factory:()=>Me(Yx)})}static{this.__NG_ELEMENT_ID__=-1}}return t})();function a_(t){return t.ngOriginalError}class Ko{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&a_(n);for(;e&&a_(e);)e=a_(e);return e||null}}const XS=new He("",{providedIn:"root",factory:()=>Pe(Ko).handleError.bind(void 0)});let Sc=(()=>{class t{static{this.__NG_ELEMENT_ID__=e8}static{this.__NG_ENV_ID__=e=>e}}return t})();class q4 extends Sc{constructor(n){super(),this._lView=n}onDestroy(n){return up(this._lView,n),()=>function Vy(t,n){if(null===t[ms])return;const e=t[ms].indexOf(n);-1!==e&&t[ms].splice(e,1)}(this._lView,n)}}function e8(){return new q4(je())}function t8(){return Dc(Fn(),je())}function Dc(t,n){return new Zt(wo(t,n))}let Zt=(()=>{class t{constructor(e){this.nativeElement=e}static{this.__NG_ELEMENT_ID__=t8}}return t})();function QS(t){return t instanceof Zt?t.nativeElement:t}function s_(t){return n=>{setTimeout(t,void 0,n)}}const Ot=class n8 extends vt{constructor(n=!1){super(),this.destroyRef=void 0,this.__isAsync=n,tS()&&(this.destroyRef=Pe(Sc,{optional:!0})??void 0)}emit(n){const e=j(null);try{super.next(n)}finally{j(e)}}subscribe(n,e,i){let o=n,r=e||(()=>null),a=i;if(n&&"object"==typeof n){const l=n;o=l.next?.bind(l),r=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(r=s_(r),o&&(o=s_(o)),a&&(a=s_(a)));const s=super.subscribe({next:o,error:r,complete:a});return n instanceof ge&&n.add(s),s}};function i8(){return this._results[Symbol.iterator]()}class Fa{get changes(){return this._changes??=new Ot}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const e=Fa.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=i8)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){this.dirty=!1;const i=function No(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function w3(t,n,e){if(t.length!==n.length)return!1;for(let i=0;iD8}),D8="ng",bD=new He(""),La=new He("",{providedIn:"platform",factory:()=>"unknown"}),xo=new He(""),h_=new He("",{providedIn:"root",factory:()=>bs().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let yD=()=>null;function v_(t,n,e=!1){return yD(t,n,e)}const xD=new He("",{providedIn:"root",factory:()=>!1});let kp,Ip;function Mc(t){return function S_(){if(void 0===kp&&(kp=null,Gt.trustedTypes))try{kp=Gt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return kp}()?.createHTML(t)||t}function D_(){if(void 0===Ip&&(Ip=null,Gt.trustedTypes))try{Ip=Gt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ip}function DD(t){return D_()?.createHTML(t)||t}function TD(t){return D_()?.createScriptURL(t)||t}class dl{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Vf})`}}class B8 extends dl{getTypeName(){return"HTML"}}class H8 extends dl{getTypeName(){return"Style"}}class Y8 extends dl{getTypeName(){return"Script"}}class z8 extends dl{getTypeName(){return"URL"}}class $8 extends dl{getTypeName(){return"ResourceURL"}}function qo(t){return t instanceof dl?t.changingThisBreaksApplicationSecurity:t}function da(t,n){const e=function V8(t){return t instanceof dl&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${Vf})`)}return e===n}function MD(t){const n=new Q8(t);return function K8(){try{return!!(new window.DOMParser).parseFromString(Mc(""),"text/html")}catch{return!1}}()?new J8(n):n}class J8{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(Mc(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class Q8{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=Mc(n),e}}const q8=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Op(t){return(t=String(t)).match(q8)?t:"unsafe:"+t}function ja(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function xd(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const AD=ja("area,br,col,hr,img,wbr"),kD=ja("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ID=ja("rp,rt"),E_=xd(AD,xd(kD,ja("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),xd(ID,ja("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),xd(ID,kD)),T_=ja("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),OD=xd(T_,ja("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ja("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),e5=ja("script,style,template");class t5{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0,o=[];for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)o.push(e),e=o5(e);else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=i5(e);if(r){e=r;break}e=o.pop()}return this.buf.join("")}startElement(n){const e=RD(n).toLowerCase();if(!E_.hasOwnProperty(e))return this.sanitizedSomething=!0,!e5.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let o=0;o"),!0}endElement(n){const e=RD(n).toLowerCase();E_.hasOwnProperty(e)&&!AD.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(ND(n))}}function i5(t){const n=t.nextSibling;if(n&&t!==n.previousSibling)throw PD(n);return n}function o5(t){const n=t.firstChild;if(n&&function n5(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(t,n))throw PD(n);return n}function RD(t){const n=t.nodeName;return"string"==typeof n?n:"FORM"}function PD(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}const r5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,a5=/([^\#-~ |!])/g;function ND(t){return t.replace(/&/g,"&").replace(r5,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(a5,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let Rp;function FD(t,n){let e=null;try{Rp=Rp||MD(t);let i=n?String(n):"";e=Rp.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=e.innerHTML,e=Rp.getInertBodyElement(i)}while(i!==r);return Mc((new t5).sanitizeChildren(M_(e)||e))}finally{if(e){const i=M_(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function M_(t){return"content"in t&&function s5(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ui=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ui||{});function A_(t){const n=Dd();return n?DD(n.sanitize(Ui.HTML,t)||""):da(t,"HTML")?DD(qo(t)):FD(bs(),Jt(t))}function Sd(t){const n=Dd();return n?n.sanitize(Ui.URL,t)||"":da(t,"URL")?qo(t):Op(Jt(t))}function LD(t){const n=Dd();if(n)return TD(n.sanitize(Ui.RESOURCE_URL,t)||"");if(da(t,"ResourceURL"))return TD(qo(t));throw new S(904,!1)}function Dd(){const t=je();return t&&t[Fr].sanitizer}const f5=/^>|^->||--!>|)/g,g5="\u200b$1\u200b";function er(t){return t instanceof Function?t():t}var _s=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(_s||{});let R_;function P_(t,n){return R_(t,n)}function kc(t,n,e,i,o){if(null!=i){let r,a=!1;uo(i)?r=i:co(i)&&(a=!0,i=i[ci]);const s=Bn(i);0===t&&null!==e?null==o?JD(n,e,s):hl(n,e,s,o||null,!0):1===t&&null!==e?hl(n,e,s,o||null,!0):2===t?function Md(t,n,e){const i=jp(t,n);i&&function P5(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,s,a):3===t&&n.destroyNode(s),null!=r&&function L5(t,n,e,i,o){const r=e[oa];r!==Bn(e)&&kc(n,t,i,r,o);for(let s=Di;sn.replace(p5,g5))}(n))}function Fp(t,n,e){return t.createElement(n,e)}function UD(t,n){n[Fr].changeDetectionScheduler?.notify(1),Hp(t,n,n[Ut],2,null,null)}function WD(t,n){const e=t[yc],i=e.indexOf(n);e.splice(i,1)}function Ed(t,n){if(t.length<=Di)return;const e=Di+n,i=t[e];if(i){const o=i[rd];null!==o&&o!==t&&WD(o,i),n>0&&(t[e-1][Nr]=i[Nr]);const r=Qf(t,Di+n);!function T5(t,n){UD(t,n),n[ci]=null,n[lo]=null}(i[nt],i);const a=r[Ra];null!==a&&a.detachView(r[nt]),i[Si]=null,i[Nr]=null,i[It]&=-129}return i}function Lp(t,n){if(!(256&n[It])){const e=n[Ut];e.destroyNode&&Hp(t,n,e,3,null,null),function A5(t){let n=t[od];if(!n)return L_(t[nt],t);for(;n;){let e=null;if(co(n))e=n[od];else{const i=n[Di];i&&(e=i)}if(!e){for(;n&&!n[Nr]&&n!==t;)co(n)&&L_(n[nt],n),n=n[Si];null===n&&(n=t),co(n)&&L_(n[nt],n),e=n&&n[Nr]}n=e}}(n)}}function L_(t,n){if(256&n[It])return;const e=j(null);try{n[It]&=-129,n[It]|=256,n[al]&&function ae(t){if(B(t),me(t))for(let n=0;n=0?i[a]():i[-a].unsubscribe(),r+=2}else e[r].call(i[e[r+1]]);null!==i&&(n[gc]=null);const o=n[ms];if(null!==o){n[ms]=null;for(let r=0;r-1){const{encapsulation:r}=t.data[i.directiveStart+o];if(r===Rr.None||r===Rr.Emulated)return null}return wo(i,e)}}function hl(t,n,e,i,o){t.insertBefore(n,e,i,o)}function JD(t,n,e){t.appendChild(n,e)}function QD(t,n,e,i,o){null!==i?hl(t,n,e,i,o):JD(t,n,e)}function jp(t,n){return t.parentNode(n)}function KD(t,n,e){return eE(t,n,e)}function qD(t,n,e){return 40&t.type?wo(t,e):null}let B_,eE=qD;function tE(t,n){eE=t,B_=n}function Bp(t,n,e,i){const o=j_(t,i,n),r=n[Ut],s=KD(i.parent||n[lo],i,n);if(null!=o)if(Array.isArray(e))for(let l=0;lQt&&sE(t,n,Qt,!1),ra(a?2:0,o),e(i,o)}finally{cl(r),ra(a?3:1,o)}}function V_(t,n,e){if(Ny(n)){const i=j(null);try{const r=n.directiveEnd;for(let a=n.directiveStart;anull;function hE(t,n,e,i,o){for(let r in n){if(!n.hasOwnProperty(r))continue;const a=n[r];if(void 0===a)continue;i??={};let s,l=Le.None;Array.isArray(a)?(s=a[0],l=a[1]):s=a;let c=r;if(null!==o){if(!o.hasOwnProperty(r))continue;c=o[r]}0===t?fE(i,e,c,s,l):fE(i,e,c,s)}return i}function fE(t,n,e,i,o){let r;t.hasOwnProperty(e)?(r=t[e]).push(n,i):r=t[e]=[n,i],void 0!==o&&r.push(o)}function Bo(t,n,e,i,o,r,a,s){const l=wo(n,e);let u,c=n.inputs;!s&&null!=c&&(u=c[i])?(K_(t,e,u,i,o),sl(n)&&function J5(t,n){const e=Qo(n,t);16&e[It]||(e[It]|=64)}(e,n.index)):3&n.type&&(i=function X5(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),o=null!=a?a(o,n.value||"",i):o,r.setProperty(l,i,o))}function W_(t,n,e,i){if(yS()){const o=null===i?null:{"":-1},r=function nB(t,n){const e=t.directiveRegistry;let i=null,o=null;if(e)for(let r=0;r0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=s&&a.push(s),a.push(e,i,r)}}(t,n,i,Ad(t,e,o.hostVars,tn),o)}function ha(t,n,e,i,o,r){const a=wo(t,n);!function J_(t,n,e,i,o,r,a){if(null==r)t.removeAttribute(n,o,e);else{const s=null==a?Jt(r):a(r,i||"",o);t.setAttribute(n,o,s,e)}}(n[Ut],a,r,t.value,e,i,o)}function lB(t,n,e,i,o,r){const a=r[n];if(null!==a)for(let s=0;s0&&(e[o-1][Nr]=n),i!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{ud(t.lView)},consumerOnSignalRead(){this.lView[al]=this}},SE=100;function Vp(t,n=!0,e=0){const i=t[Fr],o=i.rendererFactory;o.begin?.();try{!function bB(t,n){tv(t,n);let e=0;for(;zy(t);){if(e===SE)throw new S(103,!1);e++,tv(t,1)}}(t,e)}catch(a){throw n&&$p(t,a),a}finally{o.end?.(),i.inlineEffectRunner?.flush()}}function yB(t,n,e,i){const o=n[It];if(256==(256&o))return;n[Fr].inlineEffectRunner?.flush(),Jy(n);let a=null,s=null;(function _B(t){return 2!==t.type})(t)&&(s=function fB(t){return t[al]??function pB(t){const n=xE.pop()??Object.create(mB);return n.lView=t,n}(t)}(n),a=function ee(t){return t&&(t.nextProducerIndex=0),j(t)}(s));try{gS(n),function wS(t){return Wt.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&cE(t,n,e,2,i);const l=3==(3&o);if(l){const d=t.preOrderCheckHooks;null!==d&&fp(n,d,null)}else{const d=t.preOrderHooks;null!==d&&pp(n,d,0,null),Ky(n,0)}if(function vB(t){for(let n=sD(t);null!==n;n=lD(n)){if(!(n[It]&Py.HasTransplantedViews))continue;const e=n[yc];for(let i=0;it.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}(s,a),function gB(t){t.lView[al]!==t&&(t.lView=null,xE.push(t))}(s)),Qy()}}function DE(t,n){for(let e=sD(t);null!==e;e=lD(e))for(let i=Di;i-1&&(Ed(n,i),Qf(e,i))}this._attachedToViewContainer=!1}Lp(this._lView[nt],this._lView)}onDestroy(n){up(this._lView,n)}markForCheck(){Rd(this._cdRefInjectingView||this._lView)}detach(){this._lView[It]&=-129}reattach(){$y(this._lView),this._lView[It]|=128}detectChanges(){this._lView[It]|=1024,Vp(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,UD(this._lView[nt],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=n,$y(this._lView)}}let po=(()=>{class t{static{this.__NG_ELEMENT_ID__=SB}}return t})();const CB=po,xB=class extends CB{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e)}createEmbeddedViewImpl(n,e,i){const o=kd(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:e,dehydratedView:i});return new Pd(o)}};function SB(){return Zp(Fn(),je())}function Zp(t,n){return 4&t.type?new xB(n,t,Dc(t,n)):null}let RE=()=>null;function Rc(t,n){return RE(t,n)}class Jp{}class WB{}class PE{}class JB{resolveComponentFactory(n){throw function XB(t){const n=Error(`No component factory found for ${li(t)}.`);return n.ngComponent=t,n}(n)}}let fl=(()=>{class t{static{this.NULL=new JB}}return t})();class sv{}let Ha=(()=>{class t{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function QB(){const t=je(),e=Qo(Fn().index,t);return(co(e)?e:t)[Ut]}()}}return t})(),KB=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:()=>null})}}return t})();const lv={},FE=new Set;function fa(t){FE.has(t)||(FE.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function LE(...t){}class wt{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ot(!1),this.onMicrotaskEmpty=new Ot(!1),this.onStable=new Ot(!1),this.onError=new Ot(!1),typeof Zone>"u")throw new S(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&e,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function qB(){const t="function"==typeof Gt.requestAnimationFrame;let n=Gt[t?"requestAnimationFrame":"setTimeout"],e=Gt[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&e){const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);const o=e[Zone.__symbol__("OriginalDelegate")];o&&(e=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function n6(t){const n=()=>{!function t6(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Gt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,uv(t),t.isCheckStableRunning=!0,cv(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),uv(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,o,r,a,s)=>{if(function i6(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(s))return e.invokeTask(o,r,a,s);try{return jE(t),e.invokeTask(o,r,a,s)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),BE(t)}},onInvoke:(e,i,o,r,a,s,l)=>{try{return jE(t),e.invoke(o,r,a,s,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),BE(t)}},onHasTask:(e,i,o,r)=>{e.hasTask(o,r),i===o&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,uv(t),cv(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,o,r)=>(e.handleError(o,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!wt.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(wt.isInAngularZone())throw new S(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,o){const r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+o,n,e6,LE,LE);try{return r.runTask(a,e,i)}finally{r.cancelTask(a)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const e6={};function cv(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function uv(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function jE(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function BE(t){t._nesting--,cv(t)}class HE{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ot,this.onMicrotaskEmpty=new Ot,this.onStable=new Ot,this.onError=new Ot}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,o){return n.apply(e,i)}}var pl=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(pl||{});const YE={destroy(){}};function zE(t,n){!n&&function rp(t){if(!tS())throw new S(-203,!1)}();const e=n?.injector??Pe(gi);if(!function ys(t){return"browser"===(t??Pe(gi)).get(La)}(e))return YE;fa("NgAfterNextRender");const i=e.get(Bd),o=i.handler??=new VE,r=n?.phase??pl.MixedReadWrite,a=()=>{o.unregister(l),s()},s=e.get(Sc).onDestroy(a),l=ia(e,()=>new $E(r,()=>{a(),t()}));return o.register(l),{destroy:a}}class $E{constructor(n,e){this.phase=n,this.callbackFn=e,this.zone=Pe(wt),this.errorHandler=Pe(Ko,{optional:!0}),Pe(Jp,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(n){this.errorHandler?.handleError(n)}}}class VE{constructor(){this.executingCallbacks=!1,this.buckets={[pl.EarlyRead]:new Set,[pl.Write]:new Set,[pl.MixedReadWrite]:new Set,[pl.Read]:new Set},this.deferredCallbacks=new Set}register(n){(this.executingCallbacks?this.deferredCallbacks:this.buckets[n.phase]).add(n)}unregister(n){this.buckets[n.phase].delete(n),this.deferredCallbacks.delete(n)}execute(){this.executingCallbacks=!0;for(const n of Object.values(this.buckets))for(const e of n)e.invoke();this.executingCallbacks=!1;for(const n of this.deferredCallbacks)this.buckets[n.phase].add(n);this.deferredCallbacks.clear()}destroy(){for(const n of Object.values(this.buckets))n.clear();this.deferredCallbacks.clear()}}let Bd=(()=>{class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const e=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const i of e)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static{this.\u0275prov=$e({token:t,providedIn:"root",factory:()=>new t})}}return t})();function Kp(t,n,e){let i=e?t.styles:null,o=e?t.classes:null,r=0;if(null!==n)for(let a=0;a0&&rE(t,e,r.join(" "))}}(p,pe,b,i),void 0!==e&&function m6(t,n,e){const i=t.projection=[];for(let o=0;o{class t{static{this.__NG_ELEMENT_ID__=y6}}return t})();function y6(){return QE(Fn(),je())}const _6=So,XE=class extends _6{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Dc(this._hostTNode,this._hostLView)}get injector(){return new Hi(this._hostTNode,this._hostLView)}get parentInjector(){const n=bp(this._hostTNode,this._hostLView);if(e_(n)){const e=md(n,this._hostLView),i=gd(n);return new Hi(e[nt].data[i+8],e)}return new Hi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=JE(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-Di}createEmbeddedView(n,e,i){let o,r;"number"==typeof i?o=i:null!=i&&(o=i.index,r=i.injector);const a=Rc(this._lContainer,n.ssrId),s=n.createEmbeddedViewImpl(e||{},r,a);return this.insertImpl(s,o,Oc(this._hostTNode,a)),s}createComponent(n,e,i,o,r){const a=n&&!function id(t){return"function"==typeof t}(n);let s;if(a)s=e;else{const g=e||{};s=g.index,i=g.injector,o=g.projectableNodes,r=g.environmentInjector||g.ngModuleRef}const l=a?n:new zd(dn(n)),c=i||this.parentInjector;if(!r&&null==l.ngModule){const b=(a?c:this.parentInjector).get(Lo,null);b&&(r=b)}const u=dn(l.componentType??{}),d=Rc(this._lContainer,u?.id??null),p=l.create(c,o,d?.firstChild??null,r);return this.insertImpl(p.hostView,s,Oc(this._hostTNode,d)),p}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){const o=n._lView;if(function f4(t){return uo(t[Si])}(o)){const s=this.indexOf(n);if(-1!==s)this.detach(s);else{const l=o[Si],c=new XE(l,l[lo],l[Si]);c.detach(c.indexOf(n))}}const r=this._adjustIndex(e),a=this._lContainer;return Id(a,o,r,i),n.attachToViewContainerRef(),jx(pv(a),r,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=JE(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=Ed(this._lContainer,e);i&&(Qf(pv(this._lContainer),e),Lp(i[nt],i))}detach(n){const e=this._adjustIndex(n,-1),i=Ed(this._lContainer,e);return i&&null!=Qf(pv(this._lContainer),e)?new Pd(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function JE(t){return t[8]}function pv(t){return t[8]||(t[8]=[])}function QE(t,n){let e;const i=n[t.index];return uo(i)?e=i:(e=mE(i,n,null,t),n[t.index]=e,zp(n,e)),KE(e,n,t,i),new XE(e,t,n)}let KE=function eT(t,n,e,i){if(t[oa])return;let o;o=8&e.type?Bn(i):function v6(t,n){const e=t[Ut],i=e.createComment(""),o=wo(n,t);return hl(e,jp(e,o),i,function N5(t,n){return t.nextSibling(n)}(e,o),!1),i}(n,e),t[oa]=o},gv=()=>!1;class mv{constructor(n){this.queryList=n,this.matches=null}clone(){return new mv(this.queryList)}setDirty(){this.queryList.setDirty()}}class bv{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,o=[];for(let r=0;rn.trim())}(n):n}}class yv{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i0)i.push(a[s/2]);else{const c=r[s+1],u=n[-l];for(let d=Di;d=0;i--){const o=t[i];o.hostVars=n+=o.hostVars,o.hostAttrs=nd(o.hostAttrs,e=nd(e,o.hostAttrs))}}(i)}function H6(t,n){for(const e in n.inputs){if(!n.inputs.hasOwnProperty(e)||t.inputs.hasOwnProperty(e))continue;const i=n.inputs[e];if(void 0!==i&&(t.inputs[e]=i,t.declaredInputs[e]=n.declaredInputs[e],null!==n.inputTransforms)){const o=Array.isArray(i)?i[0]:i;if(!n.inputTransforms.hasOwnProperty(o))continue;t.inputTransforms??={},t.inputTransforms[o]=n.inputTransforms[o]}}}function eg(t){return t===na?{}:t===xn?[]:t}function z6(t,n){const e=t.viewQuery;t.viewQuery=e?(i,o)=>{n(i,o),e(i,o)}:n}function $6(t,n){const e=t.contentQueries;t.contentQueries=e?(i,o,r)=>{n(i,o,r),e(i,o,r)}:n}function V6(t,n){const e=t.hostBindings;t.hostBindings=e?(i,o)=>{n(i,o),e(i,o)}:n}function qi(t){const n=t.inputConfig,e={};for(const i in n)if(n.hasOwnProperty(i)){const o=n[i];Array.isArray(o)&&o[3]&&(e[i]=o[3])}t.inputTransforms=e}class gl{}class DT{}class Sv extends gl{constructor(n,e,i){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new UE(this);const o=so(n);this._bootstrapComponents=er(o.bootstrap),this._r3Injector=US(n,e,[{provide:gl,useValue:this},{provide:fl,useValue:this.componentFactoryResolver},...i],li(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Dv extends DT{constructor(n){super(),this.moduleType=n}create(n){return new Sv(this.moduleType,n,[])}}class ET extends gl{constructor(n){super(),this.componentFactoryResolver=new UE(this),this.instance=null;const e=new hc([...n.providers,{provide:gl,useValue:this},{provide:fl,useValue:this.componentFactoryResolver}],n.parent||op(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function tg(t,n,e=null){return new ET({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}let Cs=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new hi(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function ig(t){return!!Ev(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function Ev(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function pa(t,n,e){return t[n]=e}function Ei(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function ml(t,n,e,i){const o=Ei(t,n,e);return Ei(t,n+1,i)||o}function Mt(t,n,e,i,o,r,a,s){const l=je(),c=gn(),u=t+Qt,d=c.firstCreatePass?function i7(t,n,e,i,o,r,a,s,l){const c=n.consts,u=Ic(n,t,4,a||null,aa(c,s));W_(n,e,u,aa(c,l)),hp(n,u);const d=u.tView=U_(2,u,i,o,r,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,e,i,o,r,a):c.data[u];sa(d,!1);const h=TT(c,l,d,t);fd()&&Bp(c,l,h,d),fo(h,l);const p=mE(h,l,h,d);return l[u]=p,zp(l,p),function qE(t,n,e){return gv(t,n,e)}(p,d,l),cp(d)&&Z_(c,l,d),null!=a&&G_(l,d,s),Mt}let TT=function MT(t,n,e,i){return la(!0),n[Ut].createComment("")};function Kt(t,n,e,i){const o=je();return Ei(o,jr(),n)&&(gn(),ha(Jn(),o,t,n,e,i)),Kt}function zc(t,n,e,i){return Ei(t,jr(),e)?n+Jt(e)+i:tn}function $c(t,n,e,i,o,r){const s=ml(t,function Pa(){return Wt.lFrame.bindingIndex}(),e,o);return Na(2),s?n+Jt(e)+i+Jt(o)+r:tn}function ug(t,n){return t<<17|n<<2}function Ss(t){return t>>17&32767}function Fv(t){return 2|t}function yl(t){return(131068&t)>>2}function Lv(t,n){return-131069&t|n<<2}function jv(t){return 1|t}function rM(t,n,e,i){const o=t[e+1],r=null===n;let a=i?Ss(o):yl(o),s=!1;for(;0!==a&&(!1===s||r);){const c=t[a+1];Y7(t[a],n)&&(s=!0,t[a+1]=i?jv(c):Fv(c)),a=i?Ss(c):yl(c)}s&&(t[e+1]=i?Fv(o):jv(o))}function Y7(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&uc(t,n)>=0}const Yi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function aM(t){return t.substring(Yi.key,Yi.keyEnd)}function sM(t,n){const e=Yi.textEnd;return e===n?-1:(n=Yi.keyEnd=function Z7(t,n,e){for(;n32;)n++;return n}(t,Yi.key=n,e),Jc(t,n,e))}function Jc(t,n,e){for(;n=0;e=sM(n,e))Xo(t,aM(n),!0)}function Br(t,n,e,i){const o=je(),r=gn(),a=Na(2);r.firstUpdatePass&&fM(r,t,a,i),n!==tn&&Ei(o,a,n)&&gM(r,r.data[ho()],o,o[Ut],t,o[a+1]=function nH(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=li(qo(t)))),t}(n,e),i,a)}function Hr(t,n,e,i){const o=gn(),r=Na(2);o.firstUpdatePass&&fM(o,null,r,i);const a=je();if(e!==tn&&Ei(a,r,e)){const s=o.data[ho()];if(bM(s,i)&&!hM(o,r)){let l=i?s.classesWithoutHost:s.stylesWithoutHost;null!==l&&(e=sy(l,e||"")),Bv(o,s,a,e,i)}else!function tH(t,n,e,i,o,r,a,s){o===tn&&(o=xn);let l=0,c=0,u=0=t.expandoStartIndex}function fM(t,n,e,i){const o=t.data;if(null===o[e+1]){const r=o[ho()],a=hM(t,e);bM(r,i)&&null===n&&!a&&(n=!1),n=function X7(t,n,e,i){const o=Wy(t);let r=i?n.residualClasses:n.residualStyles;if(null===o)0===(i?n.classBindings:n.styleBindings)&&(e=Xd(e=Hv(null,t,n,e,i),n.attrs,i),r=null);else{const a=n.directiveStylingLast;if(-1===a||t[a]!==o)if(e=Hv(o,t,n,e,i),null===r){let l=function J7(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==yl(i))return t[Ss(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=Hv(null,t,n,l[1],i),l=Xd(l,n.attrs,i),function Q7(t,n,e,i){t[Ss(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else r=function K7(t,n,e){let i;const o=n.directiveEnd;for(let r=1+n.directiveStylingLast;r0)&&(c=!0)):u=e,o)if(0!==l){const h=Ss(t[s+1]);t[i+1]=ug(h,s),0!==h&&(t[h+1]=Lv(t[h+1],i)),t[s+1]=function L7(t,n){return 131071&t|n<<17}(t[s+1],i)}else t[i+1]=ug(s,0),0!==s&&(t[s+1]=Lv(t[s+1],i)),s=i;else t[i+1]=ug(l,0),0===s?s=i:t[l+1]=Lv(t[l+1],i),l=i;c&&(t[i+1]=Fv(t[i+1])),rM(t,u,i,!0),rM(t,u,i,!1),function H7(t,n,e,i,o){const r=o?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&uc(r,n)>=0&&(e[i+1]=jv(e[i+1]))}(n,u,t,i,r),a=ug(s,l),r?n.classBindings=a:n.styleBindings=a}(o,r,n,e,a,i)}}function Hv(t,n,e,i,o){let r=null;const a=e.directiveEnd;let s=e.directiveStylingLast;for(-1===s?s=e.directiveStart:s++;s0;){const l=t[o],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[o+1];h===tn&&(h=d?xn:void 0);let p=d?wy(h,i):u===i?h:void 0;if(c&&!dg(p)&&(p=wy(l,i)),dg(p)&&(s=p,a))return s;const g=t[o+1];o=a?Ss(g):yl(g)}if(null!==n){let l=r?n.residualClasses:n.residualStyles;null!=l&&(s=wy(l,i))}return s}function dg(t){return void 0!==t}function bM(t,n){return 0!=(t.flags&(n?8:16))}function Yv(t,n,e){Hr(Xo,ma,zc(je(),t,n,e),!0)}class hH{destroy(n){}updateValue(n,e){}swap(n,e){const i=Math.min(n,e),o=Math.max(n,e),r=this.detach(o);if(o-i>1){const a=this.detach(i);this.attach(i,r),this.attach(o,a)}else this.attach(i,r)}move(n,e){this.attach(e,this.detach(n))}}function zv(t,n,e,i,o){return t===e&&Object.is(n,i)?1:Object.is(o(t,n),o(e,i))?-1:0}function $v(t,n,e,i){return!(void 0===n||!n.has(i)||(t.attach(e,n.get(i)),n.delete(i),0))}function yM(t,n,e,i,o){if($v(t,n,i,e(i,o)))t.updateValue(i,o);else{const r=t.create(i,o);t.attach(i,r)}}function _M(t,n,e,i){const o=new Set;for(let r=n;r<=e;r++)o.add(i(r,t.at(r)));return o}class vM{constructor(){this.kvMap=new Map,this._vMap=void 0}has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;const e=this.kvMap.get(n);return void 0!==this._vMap&&this._vMap.has(e)?(this.kvMap.set(n,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,e){if(this.kvMap.has(n)){let i=this.kvMap.get(n);void 0===this._vMap&&(this._vMap=new Map);const o=this._vMap;for(;o.has(i);)i=o.get(i);o.set(i,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,i]of this.kvMap)if(n(i,e),void 0!==this._vMap){const o=this._vMap;for(;o.has(i);)i=o.get(i),n(i,e)}}}function En(t,n,e){fa("NgControlFlow");const i=je(),o=jr(),r=Vv(i,Qt+t);if(Ei(i,o,n)){const s=j(null);try{if(ev(r,0),-1!==n){const l=Zv(i[nt],Qt+n),c=Rc(r,l.tView.ssrId);Id(r,kd(i,l,e,{dehydratedView:c}),0,Oc(l,c))}}finally{j(s)}}else{const s=wE(r,0);void 0!==s&&(s[Xn]=e)}}class pH{constructor(n,e,i){this.lContainer=n,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-Di}}function hg(t,n){return n}class mH{constructor(n,e,i){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=i}}function fg(t,n,e,i,o,r,a,s,l,c,u,d,h){fa("NgControlFlow");const p=void 0!==l,g=je(),b=s?a.bind(g[pi][Xn]):a,T=new mH(p,b);g[Qt+t]=T,Mt(t+1,n,e,i,o,r),p&&Mt(t+2,l,c,u,d,h)}class bH extends hH{constructor(n,e,i){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=i,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Di}at(n){return this.getLView(n)[Xn].$implicit}attach(n,e){const i=e[Jo];this.needsIndexUpdate||=n!==this.length,Id(this.lContainer,e,n,Oc(this.templateTNode,i))}detach(n){return this.needsIndexUpdate||=n!==this.length-1,function yH(t,n){return Ed(t,n)}(this.lContainer,n)}create(n,e){const i=Rc(this.lContainer,this.templateTNode.tView.ssrId);return kd(this.hostLView,this.templateTNode,new pH(this.lContainer,e,n),{dehydratedView:i})}destroy(n){Lp(n[nt],n)}updateValue(n,e){this.getLView(n)[Xn].$implicit=e}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n{t.destroy(s)})}(a,t,r.trackByFn),a.updateIndexes(),r.hasEmptyBlock){const s=jr(),l=0===a.length;if(Ei(i,s,l)){const c=e+2,u=Vv(i,c);if(l){const d=Zv(o,c),h=Rc(u,d.tView.ssrId);Id(u,kd(i,d,void 0,{dehydratedView:h}),0,Oc(d,h))}else ev(u,0)}}}finally{j(n)}}function Vv(t,n){return t[n]}function Zv(t,n){return cd(t,n)}function ye(t,n,e,i){const o=je(),r=gn(),a=Qt+t,s=o[Ut],l=r.firstCreatePass?function vH(t,n,e,i,o,r){const a=n.consts,l=Ic(n,t,2,i,aa(a,o));return W_(n,e,l,aa(a,r)),null!==l.attrs&&Kp(l,l.attrs,!1),null!==l.mergedAttrs&&Kp(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(a,r,o,n,e,i):r.data[a],c=wM(r,o,l,s,n,t);o[a]=c;const u=cp(l);return sa(l,!0),aE(s,c,l),!function Zd(t){return 32==(32&t.flags)}(l)&&fd()&&Bp(r,o,c,l),0===function g4(){return Wt.lFrame.elementDepthCount}()&&fo(c,o),function m4(){Wt.lFrame.elementDepthCount++}(),u&&(Z_(r,o,l),V_(r,l,o)),null!==i&&G_(o,l),ye}function ve(){let t=Fn();Zy()?Gy():(t=t.parent,sa(t,!1));const n=t;(function y4(t){return Wt.skipHydrationRootTNode===t})(n)&&function C4(){Wt.skipHydrationRootTNode=null}(),function b4(){Wt.lFrame.elementDepthCount--}();const e=gn();return e.firstCreatePass&&(hp(e,t),Ny(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function F4(t){return 0!=(8&t.flags)}(n)&&Bv(e,n,je(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function L4(t){return 0!=(16&t.flags)}(n)&&Bv(e,n,je(),n.stylesWithoutHost,!1),ve}function at(t,n,e,i){return ye(t,n,e,i),ve(),at}let wM=(t,n,e,i,o,r)=>(la(!0),Fp(i,o,function MS(){return Wt.lFrame.currentNamespace}()));function Jd(t,n,e){const i=je(),o=gn(),r=t+Qt,a=o.firstCreatePass?function xH(t,n,e,i,o){const r=n.consts,a=aa(r,i),s=Ic(n,t,8,"ng-container",a);return null!==a&&Kp(s,a,!0),W_(n,e,s,aa(r,o)),null!==n.queries&&n.queries.elementStart(n,s),s}(r,o,i,n,e):o.data[r];sa(a,!0);const s=CM(o,i,a,t);return i[r]=s,fd()&&Bp(o,i,s,a),fo(s,i),cp(a)&&(Z_(o,i,a),V_(o,a,i)),null!=e&&G_(i,a),Jd}function Qd(){let t=Fn();const n=gn();return Zy()?Gy():(t=t.parent,sa(t,!1)),n.firstCreatePass&&(hp(n,t),Ny(t)&&n.queries.elementEnd(t)),Qd}function Es(t,n,e){return Jd(t,n,e),Qd(),Es}let CM=(t,n,e,i)=>(la(!0),F_(n[Ut],""));function Tn(){return je()}function Ts(t,n,e){const i=je();return Ei(i,jr(),n)&&Bo(gn(),Jn(),i,t,n,i[Ut],e,!0),Ts}function Gv(t,n,e){const i=je();if(Ei(i,jr(),n)){const r=gn(),a=Jn();Bo(r,a,i,t,n,vE(Wy(r.data),a,i),e,!0)}return Gv}const Kc="en-US",gg={marker:"element"},mg={marker:"ICU"};var Ho=function(t){return t[t.SHIFT=2]="SHIFT",t[t.APPEND_EAGERLY=1]="APPEND_EAGERLY",t[t.COMMENT=2]="COMMENT",t}(Ho||{});let DM=Kc;function TM(t,n,e){const i=n.insertBeforeIndex,o=Array.isArray(i)?i[0]:i;return null===o?qD(t,0,e):Bn(e[o])}function MM(t,n,e,i,o){const r=n.insertBeforeIndex;if(Array.isArray(r)){let a=i,s=null;if(3&n.type||(s=a,a=o),null!==a&&-1===n.componentOffset)for(let l=1;l1)for(let e=t.length-2;e>=0;e--){const i=t[e];kM(i)||RH(i,n)&&null===PH(i)&&NH(i,n.index)}}function kM(t){return!(64&t.type)}function RH(t,n){return kM(n)||t.index>n.index}function PH(t){const n=t.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function NH(t,n){const e=t.insertBeforeIndex;Array.isArray(e)?e[0]=n:(tE(TM,MM),t.insertBeforeIndex=n)}function jH(t,n,e){const i=$_(t,e,64,null,null);return AM(n,i),i}let th=(t,n,e,i)=>(la(!0),function PM(t,n,e){const i=t[Ut];switch(e){case Node.COMMENT_NODE:return F_(i,n);case Node.TEXT_NODE:return N_(i,n);case Node.ELEMENT_NODE:return Fp(i,n,null)}}(t,e,i));function UH(){const t=[];let e,i,n=-1;function r(s,l){n=0;const c=function bg(t,n){const e=n[t.currentCaseLViewIndex];return null===e?e:e<0?~e:e}(s,l);i=null!==c?s.remove[c]:xn}function a(){if(n0?e[s]:(t.push(n,i),r(e[nt].data[~s],e),a())}return 0===t.length?null:(i=t.pop(),n=t.pop(),a())}return function o(s,l){for(e=l;t.length;)t.pop();return r(s.value,l),a}}const yg=/\ufffd(\d+):?\d*\ufffd/gi,XH=/\ufffd(\d+)\ufffd/,HM=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,nh="\ufffd",JH=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,QH=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,KH=/\uE500/g;function YM(t,n,e,i,o,r,a){const s=Ad(t,i,1,null);let l=s<e.length&&e.push(l)}return{type:i,mainBinding:o,cases:n,values:e}}function Uv(t){if(!t)return[];let n=0;const e=[],i=[],o=/[{}]/g;let r;for(o.lastIndex=0;r=o.exec(t);){const s=r.index;if("}"==r[0]){if(e.pop(),0==e.length){const l=t.substring(n,s);HM.test(l)?i.push(aY(l)):i.push(l),n=s+1}}else{if(0==e.length){const l=t.substring(n,s);i.push(l),n=s+1}e.push("{")}}const a=t.substring(n);return i.push(a),i}function sY(t,n,e,i,o,r,a,s,l){const c=[],u=[],d=[];e.cases.push(a),e.create.push(c),e.remove.push(u),e.update.push(d);const p=MD(bs()).getInertBodyElement(s),g=M_(p)||p;return g?ZM(t,n,e,i,o,c,u,d,g,r,l,0):0}function ZM(t,n,e,i,o,r,a,s,l,c,u,d){let h=0,p=l.firstChild;for(;p;){const g=Ad(n,i,1,null);switch(p.nodeType){case Node.ELEMENT_NODE:const b=p,T=b.tagName.toLowerCase();if(E_.hasOwnProperty(T)){Wv(r,gg,T,c,g),n.data[g]=T;const le=b.attributes;for(let pe=0;pe>>Ho.SHIFT;let d=t[u],h=!1;null===d&&(d=t[u]=th(t,u,n[r],(a&Ho.COMMENT)===Ho.COMMENT?Node.COMMENT_NODE:Node.TEXT_NODE),h=fd()),c&&null!==e&&h&&hl(o,e,d,i,!1)}})(o,l.create,u,s&&8&s.type?o[s.index]:null),CS(!0)}function no(){CS(!1)}function Pt(t,n,e){to(t,n,e),no()}function oh(t,n={}){return function _Y(t,n={}){let e=t;if(hY.test(t)){const i={},o=[0];e=e.replace(fY,(r,a,s)=>{const l=a||s,c=i[l]||[];if(c.length||(l.split("|").forEach(b=>{const T=b.match(yY),D=T?parseInt(T[1],10):0,H=bY.test(b);c.push([D,H,b])}),i[l]=c),!c.length)throw new Error(`i18n postprocess: unmatched placeholder - ${l}`);const u=o[o.length-1];let d=0;for(let b=0;bn.hasOwnProperty(r)?`${o}${n[r]}${l}`:i),e=e.replace(gY,(i,o)=>n.hasOwnProperty(o)?n[o]:i),e=e.replace(mY,(i,o)=>{if(n.hasOwnProperty(o)){const r=n[o];if(!r.length)throw new Error(`i18n postprocess: unmatched ICU - ${i} with key: ${o}`);return r.shift()}return i})),e}(t,n)}function _t(t,n,e,i){const o=je(),r=gn(),a=Fn();return Xv(r,o,o[Ut],a,t,n,i),_t}function Xv(t,n,e,i,o,r,a){const s=cp(i),c=t.firstCreatePass&&_E(t),u=n[Xn],d=yE(n);let h=!0;if(3&i.type||a){const b=wo(i,n),T=a?a(b):b,D=d.length,H=a?le=>a(Bn(le[i.index])):i.index;let oe=null;if(!a&&s&&(oe=function CY(t,n,e,i){const o=t.cleanup;if(null!=o)for(let r=0;rl?s[l]:null}"string"==typeof a&&(r+=2)}return null}(t,n,o,i.index)),null!==oe)(oe.__ngLastListenerFn__||oe).__ngNextListenerFn__=r,oe.__ngLastListenerFn__=r,h=!1;else{r=QM(i,n,u,r,!1);const le=e.listen(T,o,r);d.push(r,le),c&&c.push(o,H,D,D+1)}}else r=QM(i,n,u,r,!1);const p=i.outputs;let g;if(h&&null!==p&&(g=p[o])){const b=g.length;if(b)for(let T=0;T-1?Qo(t.index,n):n);let l=JM(n,e,i,a),c=r.__ngNextListenerFn__;for(;c;)l=JM(n,e,c,a)&&l,c=c.__ngNextListenerFn__;return o&&!1===l&&a.preventDefault(),l}}function rt(t=1){return function M4(t){return(Wt.lFrame.contextLView=function mS(t,n){for(;t>0;)n=n[mc],t--;return n}(t,Wt.lFrame.contextLView))[Xn]}(t)}function xY(t,n){let e=null;const i=function T3(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let o=0;o(la(!0),N_(n[Ut],i));function Yo(t){return yr("",t,""),Yo}function yr(t,n,e){const i=je(),o=zc(i,t,n,e);return o!==tn&&Ba(i,ho(),o),yr}function Jv(t,n,e,i,o){const r=je(),a=$c(r,t,n,e,i,o);return a!==tn&&Ba(r,ho(),a),Jv}function rh(t,n,e){uT(n)&&(n=n());const i=je();return Ei(i,jr(),n)&&Bo(gn(),Jn(),i,t,n,i[Ut],e,!1),rh}function vg(t,n){const e=uT(t);return e&&t.set(n),e}function ah(t,n){const e=je(),i=gn(),o=Fn();return Xv(i,e,e[Ut],o,t,n),ah}function Qv(t,n,e,i,o){if(t=Vt(t),Array.isArray(t))for(let r=0;r>20;if(rl(t)||!t.multi){const p=new pd(c,o,K),g=qv(l,n,o?u:u+h,d);-1===g?(i_(mp(s,a),r,l),Kv(r,t,n.length),n.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(p),a.push(p)):(e[g]=p,a[g]=p)}else{const p=qv(l,n,u+h,d),g=qv(l,n,u,u+h),T=g>=0&&e[g];if(o&&!T||!o&&!(p>=0&&e[p])){i_(mp(s,a),r,l);const D=function zY(t,n,e,i,o){const r=new pd(t,e,K);return r.multi=[],r.index=n,r.componentProviders=0,xA(r,o,i&&!e),r}(o?YY:HY,e.length,o,i,c);!o&&T&&(e[g].providerFactory=D),Kv(r,t,n.length,0),n.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(D),a.push(D)}else Kv(r,t,p>-1?p:g,xA(e[o?g:p],c,!o&&i));!o&&i&&T&&e[g].componentProviders++}}}function Kv(t,n,e,i){const o=rl(n),r=function H3(t){return!!t.useClass}(n);if(o||r){const l=(r?Vt(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!o&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function xA(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function qv(t,n,e,i){for(let o=e;o{e.providersResolver=(i,o)=>function BY(t,n,e){const i=gn();if(i.firstCreatePass){const o=Lr(t);Qv(e,i.data,i.blueprint,o,!0),Qv(n,i.data,i.blueprint,o,!1)}}(i,o?o(t):t,n)}}let $Y=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const i=Dy(0,e.type),o=i.length>0?tg([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=$e({token:t,providedIn:"environment",factory:()=>new t(Me(Lo))})}}return t})();function Zn(t){fa("NgStandalone"),t.getStandaloneInjector=n=>n.get($Y).getOrCreateStandaloneInjector(t)}function sh(t,n,e,i){return DA(je(),Co(),t,n,e,i)}function lh(t,n,e,i,o){return function EA(t,n,e,i,o,r,a){const s=n+e;return ml(t,s,o,r)?pa(t,s+2,a?i.call(a,o,r):i(o,r)):ch(t,s+2)}(je(),Co(),t,n,e,i,o)}function ch(t,n){const e=t[n];return e===tn?void 0:e}function DA(t,n,e,i,o,r){const a=n+e;return Ei(t,a,o)?pa(t,a+1,r?i.call(r,o):i(o)):ch(t,a+1)}function eu(t,n){const e=gn();let i;const o=t+Qt;e.firstCreatePass?(i=function ez(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[o]=i,i.onDestroy&&(e.destroyHooks??=[]).push(o,i.onDestroy)):i=e.data[o];const r=i.factory||(i.factory=il(i.type)),s=Po(K);try{const l=gp(!1),c=r();return gp(l),function TY(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,je(),o,c),c}finally{Po(s)}}function tu(t,n,e){const i=t+Qt,o=je(),r=_c(o,i);return function uh(t,n){return t[nt].data[n].pure}(o,i)?DA(o,Co(),n,r.transform,e,r):r.transform(e)}function tw(t,n){return Zp(t,n)}let ZA=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();const JA=new He(""),Sg=new He("");let cw,sw=(()=>{class t{constructor(e,i,o){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,cw||(function Qz(t){cw=t}(o),o.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{wt.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==r),e()},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,o){return[]}static{this.\u0275fac=function(i){return new(i||t)(Me(wt),Me(lw),Me(Sg))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})(),lw=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return cw?.findTestabilityInTree(this,e,i)??null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();function fh(t){return!!t&&"function"==typeof t.then}function QA(t){return!!t&&"function"==typeof t.subscribe}const uw=new He("");let dw=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i}),this.appInits=Pe(uw,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const o of this.appInits){const r=o();if(fh(r))e.push(r);else if(QA(r)){const a=new Promise((s,l)=>{r.subscribe({complete:s,error:l})});e.push(a)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(o=>{this.reject(o)}),0===e.length&&i(),this.initialized=!0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const hw=new He("");function ek(t,n){return Array.isArray(n)?n.reduce(ek,t):{...t,...n}}let Yr=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Pe(XS),this.afterRenderEffectManager=Pe(Bd),this.externalTestViews=new Set,this.beforeRender=new vt,this.afterTick=new vt,this.componentTypes=[],this.components=[],this.isStable=Pe(Cs).hasPendingTasks.pipe(Bt(e=>!e)),this._injector=Pe(Lo)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const o=e instanceof PE;if(!this._injector.get(dw).done)throw!o&&function gs(t){const n=dn(t)||ji(t)||Qi(t);return null!==n&&n.standalone}(e),new S(405,!1);let a;a=o?e:this._injector.get(fl).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const s=function Kz(t){return t.isBoundToModule}(a)?void 0:this._injector.get(gl),c=a.create(gi.NULL,[],i||a.selector,s),u=c.location.nativeElement,d=c.injector.get(JA,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Dg(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){this._tick(!0)}_tick(e){if(this._runningTick)throw new S(101,!1);const i=j(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(e)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,j(i)}}detectChangesInAttachedViews(e){let i=0;const o=this.afterRenderEffectManager;for(;;){if(i===SE)throw new S(103,!1);if(e){const r=0===i;this.beforeRender.next(r);for(let{_lView:a,notifyErrorHandler:s}of this._views)e$(a,r,s)}if(i++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:r})=>fw(r))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:r})=>fw(r))))break}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Dg(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(hw,[]);[...this._bootstrapListeners,...i].forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Dg(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new S(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Dg(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function e$(t,n,e){!n&&!fw(t)||function t$(t,n,e){let i;e?(i=0,t[It]|=1024):i=64&t[It]?0:1,Vp(t,n,i)}(t,e,n)}function fw(t){return zy(t)}class n${constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let tk=(()=>{class t{compileModuleSync(e){return new Dv(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),r=er(so(e).declarations).reduce((a,s)=>{const l=dn(s);return l&&a.push(new zd(l)),a},[]);return new n$(i,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),r$=(()=>{class t{constructor(){this.zone=Pe(wt),this.applicationRef=Pe(Yr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function a$(){const t=Pe(wt),n=Pe(Ko);return e=>t.runOutsideAngular(()=>n.handleError(e))}let l$=(()=>{class t{constructor(){this.subscription=new ge,this.initialized=!1,this.zone=Pe(wt),this.pendingTasks=Pe(Cs)}initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{wt.assertNotInAngularZone(),queueMicrotask(()=>{null!==e&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{wt.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const ba=new He("",{providedIn:"root",factory:()=>Pe(ba,fn.Optional|fn.SkipSelf)||function c$(){return typeof $localize<"u"&&$localize.locale||Kc}()}),pw=new He("");let rk=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const o=function o6(t="zone.js",n){return"noop"===t?new HE:"zone.js"===t?new wt(n):t}(i?.ngZone,function ok(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{const r=function Q6(t,n,e){return new Sv(t,n,e)}(e.moduleType,this.injector,function ik(t){return[{provide:wt,useFactory:t},{provide:ol,multi:!0,useFactory:()=>{const n=Pe(r$,{optional:!0});return()=>n.initialize()}},{provide:ol,multi:!0,useFactory:()=>{const n=Pe(l$);return()=>{n.initialize()}}},{provide:XS,useFactory:a$}]}(()=>o)),a=r.injector.get(Ko,null);return o.runOutsideAngular(()=>{const s=o.onError.subscribe({next:l=>{a.handleError(l)}});r.onDestroy(()=>{Dg(this._modules,r),s.unsubscribe()})}),function qA(t,n,e){try{const i=e();return fh(i)?i.catch(o=>{throw n.runOutsideAngular(()=>t.handleError(o)),o}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(a,o,()=>{const s=r.injector.get(dw);return s.runInitializers(),s.donePromise.then(()=>(function EM(t){"string"==typeof t&&(DM=t.toLowerCase().replace(/_/g,"-"))}(r.injector.get(ba,Kc)||Kc),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,i=[]){const o=ek({},i);return function o$(t,n,e){const i=new Dv(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(e){const i=e.injector.get(Yr);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new S(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new S(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(pw,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(i){return new(i||t)(Me(gi))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})(),Ms=null;const ak=new He("");function sk(t,n,e=[]){const i=`Platform: ${n}`,o=new He(i);return(r=[])=>{let a=gw();if(!a||a.injector.get(ak,!1)){const s=[...e,...r,{provide:o,useValue:!0}];t?t(s):function h$(t){if(Ms&&!Ms.get(ak,!1))throw new S(400,!1);(function KA(){!function _(t){Z=t}(()=>{throw new S(600,!1)})})(),Ms=t;const n=t.get(rk);(function ck(t){t.get(bD,null)?.forEach(e=>e())})(t)}(function lk(t=[],n){return gi.create({name:n,providers:[{provide:My,useValue:"platform"},{provide:pw,useValue:new Set([()=>Ms=null])},...t]})}(s,i))}return function f$(t){const n=gw();if(!n)throw new S(401,!1);return n}()}}function gw(){return Ms?.get(rk)??null}let mi=(()=>{class t{static{this.__NG_ELEMENT_ID__=g$}}return t})();function g$(t){return function m$(t,n,e){if(sl(t)&&!e){const i=Qo(t.index,n);return new Pd(i,i)}return 47&t.type?new Pd(n[pi],n):null}(Fn(),je(),16==(16&t))}class fk{constructor(){}supports(n){return ig(n)}create(n){return new C$(n)}}const w$=(t,n)=>n;class C${constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||w$}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,o=0,r=null;for(;e||i;){const a=!i||e&&e.currentIndex{a=this._trackByFn(o,s),null!==e&&Object.is(e.trackById,a)?(i&&(e=this._verifyReinsertion(e,s,a,o)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,a,o),i=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,o){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,r,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,r,o)):n=this._addAfter(new x$(e,i),r,o),n}_verifyReinsertion(n,e,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,r=n._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const o=null===e?this._itHead:e._next;return n._next=o,n._prev=e,null===o?this._itTail=n:o._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new pk),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new pk),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class x${constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class S${constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class pk{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new S$,this.map.set(e,i)),i.add(n)}get(n,e){const o=this.map.get(n);return o?o.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function gk(t,n,e){const i=t.previousIndex;if(null===i)return i;let o=0;return e&&i{if(e&&e.key===o)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(o,i);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const o=this._records.get(n);this._maybeAddToChanges(o,e);const r=o._prev,a=o._next;return r&&(r._next=a),a&&(a._prev=r),o._next=null,o._prev=null,o}const i=new E$(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class E${constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function bk(){return new vw([new fk])}let vw=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:bk})}constructor(e){this.factories=e}static create(e,i){if(null!=i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||bk()),deps:[[t,new lc,new ps]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(null!=i)return i;throw new S(901,!1)}}return t})();function yk(){return new Ag([new mk])}let Ag=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:yk})}constructor(e){this.factories=e}static create(e,i){if(i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||yk()),deps:[[t,new lc,new ps]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(i)return i;throw new S(901,!1)}}return t})();const A$=sk(null,"core",[]);let k$=(()=>{class t{constructor(e){}static{this.\u0275fac=function(i){return new(i||t)(Me(Yr))}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({})}}return t})();function Nt(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function As(t,n=NaN){return isNaN(parseFloat(t))||isNaN(Number(t))?n:Number(t)}function Hk(t){const n=j(null);try{return t()}finally{j(n)}}let Yk=null;function za(){return Yk}class f9{}const qt=new He("");let xw=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Pe(g9),providedIn:"platform"})}}return t})();const p9=new He("");let g9=(()=>{class t extends xw{constructor(){super(),this._doc=Pe(qt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return za().getBaseHref(this._doc)}onPopState(e){const i=za().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=za().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,o){this._history.pushState(e,i,o)}replaceState(e,i,o){this._history.replaceState(e,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>new t,providedIn:"platform"})}}return t})();function Sw(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function zk(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function $a(t){return t&&"?"!==t[0]?"?"+t:t}let Cl=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Pe(Vk),providedIn:"root"})}}return t})();const $k=new He("");let Vk=(()=>{class t extends Cl{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Pe(qt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Sw(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+$a(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${i}${o}`:i}pushState(e,i,o,r){const a=this.prepareExternalUrl(o+$a(r));this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){const a=this.prepareExternalUrl(o+$a(r));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(xw),Me($k,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),m9=(()=>{class t extends Cl{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){const i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=Sw(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,o,r){let a=this.prepareExternalUrl(o+$a(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){let a=this.prepareExternalUrl(o+$a(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(xw),Me($k,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})(),xl=(()=>{class t{constructor(e){this._subject=new Ot,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function _9(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(zk(Zk(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+$a(i))}normalize(e){return t.stripTrailingSlash(function y9(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,Zk(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",o=null){this._locationStrategy.pushState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+$a(i)),o)}replaceState(e,i="",o=null){this._locationStrategy.replaceState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+$a(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(o=>o(e,i))}subscribe(e,i,o){return this._subject.subscribe({next:e,error:i,complete:o})}static{this.normalizeQueryParams=$a}static{this.joinWithSlash=Sw}static{this.stripTrailingSlash=zk}static{this.\u0275fac=function(i){return new(i||t)(Me(Cl))}}static{this.\u0275prov=$e({token:t,factory:()=>function b9(){return new xl(Me(Cl))}(),providedIn:"root"})}}return t})();function Zk(t){return t.replace(/\/index.html$/,"")}function eI(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[o,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(o.trim()===n)return decodeURIComponent(r)}return null}const Pw=/\s+/,tI=[];let Nw=(()=>{class t{constructor(e,i){this._ngEl=e,this._renderer=i,this.initialClasses=tI,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(Pw):tI}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(Pw):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){const o=this.stateMap.get(e);void 0!==o?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],o=e[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(Pw).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static{this.\u0275fac=function(i){return new(i||t)(K(Zt),K(Ha))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngClass",""]],inputs:{klass:[Le.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return t})();class oV{constructor(n,e,i,o){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Fw=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,o){this._viewContainer=e,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((o,r,a)=>{if(null==o.previousIndex)i.createEmbeddedView(this._template,new oV(o.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)i.remove(null===r?void 0:r);else if(null!==r){const s=i.get(r);i.move(s,a),iI(s,o)}});for(let o=0,r=i.length;o{iI(i.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,i){return!0}static{this.\u0275fac=function(i){return new(i||t)(K(So),K(po),K(vw))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return t})();function iI(t,n){t.context.$implicit=n.item}let ks=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new rV,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){oI("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){oI("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}static{this.\u0275fac=function(i){return new(i||t)(K(So),K(po))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return t})();class rV{constructor(){this.$implicit=null,this.ngIf=null}}function oI(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${li(n)}'.`)}let aI=(()=>{class t{constructor(e,i,o){this._ngEl=e,this._differs=i,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[o,r]=e.split("."),a=-1===o.indexOf("-")?void 0:_s.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,o,r?`${i}${r}`:i,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}static{this.\u0275fac=function(i){return new(i||t)(K(Zt),K(Ag),K(Ha))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return t})(),Gg=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const o=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,o)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,i,o),get:(e,i,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,o)}})}static{this.\u0275fac=function(i){return new(i||t)(K(So))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Gi]})}}return t})();class uV{createSubscription(n,e){return Hk(()=>n.subscribe({next:e,error:i=>{throw i}}))}dispose(n){Hk(()=>n.unsubscribe())}}class dV{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}}const hV=new dV,fV=new uV;let Bw=(()=>{class t{constructor(e){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(fh(e))return hV;if(QA(e))return fV;throw function $r(t,n){return new S(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(i){return new(i||t)(K(mi,16))}}static{this.\u0275pipe=Fo({name:"async",type:t,pure:!1,standalone:!0})}}return t})(),Is=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({})}}return t})();const lI="browser";function cI(t){return t===lI}function uI(t){return"server"===t}let PV=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:()=>cI(Pe(La))?new NV(Pe(qt),window):new LV})}}return t})();class NV{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){const e=function FV(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=i.currentNode;for(;o;){const r=o.shadowRoot;if(r){const a=r.getElementById(n)||r.querySelector(`[name="${n}"]`);if(a)return a}o=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],o-r[1])}}class LV{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}}class dI{}class dZ extends f9{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class $w extends dZ{static makeCurrent(){!function h9(t){Yk??=t}(new $w)}onAndCancel(n,e,i){return n.addEventListener(e,i),()=>{n.removeEventListener(e,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function hZ(){return _h=_h||document.querySelector("base"),_h?_h.getAttribute("href"):null}();return null==e?null:function fZ(t){return new URL(t,document.baseURI).pathname}(e)}resetBaseElement(){_h=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return eI(document.cookie,n)}}let _h=null,gZ=(()=>{class t{build(){return new XMLHttpRequest}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const Vw=new He("");let vI=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,o){return this._findPluginFor(i).addEventListener(e,i,o)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(r=>r.supports(e)),!i)throw new S(5101,!1);return this._eventNameToPlugin.set(e,i),i}static{this.\u0275fac=function(i){return new(i||t)(Me(Vw),Me(wt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();class wI{constructor(n){this._doc=n}}const Zw="ng-app-id";let CI=(()=>{class t{constructor(e,i,o,r={}){this.doc=e,this.appId=i,this.nonce=o,this.platformId=r,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=uI(r),this.resetHostNodes()}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.elements?.forEach(o=>o.remove()),i.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${Zw}="${this.appId}"]`);if(e?.length){const i=new Map;return e.forEach(o=>{null!=o.textContent&&i.set(o.textContent,o)}),i}return null}changeUsageCount(e,i){const o=this.styleRef;if(o.has(e)){const r=o.get(e);return r.usage+=i,r.usage}return o.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){const o=this.styleNodesInDOM,r=o?.get(i);if(r?.parentNode===e)return o.delete(i),r.removeAttribute(Zw),r;{const a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Zw,this.appId),e.appendChild(a),a}}addStyleToHost(e,i){const o=this.getStyleElement(e,i),r=this.styleRef,a=r.get(i)?.elements;a?a.push(o):r.set(i,{elements:[o],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(i){return new(i||t)(Me(qt),Me(xp),Me(h_,8),Me(La))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const Gw={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Uw=/%COMP%/g,_Z=new He("",{providedIn:"root",factory:()=>!0});function SI(t,n){return n.map(e=>e.replace(Uw,t))}let Ww=(()=>{class t{constructor(e,i,o,r,a,s,l,c=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.platformId=s,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=uI(s),this.defaultRenderer=new Xw(e,a,l,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Rr.ShadowDom&&(i={...i,encapsulation:Rr.Emulated});const o=this.getOrCreateRenderer(e,i);return o instanceof EI?o.applyToHost(e):o instanceof Jw&&o.applyStyles(),o}getOrCreateRenderer(e,i){const o=this.rendererByCompId;let r=o.get(i.id);if(!r){const a=this.doc,s=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(i.encapsulation){case Rr.Emulated:r=new EI(l,c,i,this.appId,u,a,s,d);break;case Rr.ShadowDom:return new xZ(l,c,e,i,a,s,this.nonce,d);default:r=new Jw(l,c,i,u,a,s,d)}o.set(i.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(i){return new(i||t)(Me(vI),Me(CI),Me(xp),Me(_Z),Me(qt),Me(La),Me(wt),Me(h_))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();class Xw{constructor(n,e,i,o){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(Gw[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(DI(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(DI(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new S(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,o){if(o){e=o+":"+e;const r=Gw[o];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const o=Gw[i];o?n.removeAttributeNS(o,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,o){o&(_s.DashCase|_s.Important)?n.style.setProperty(e,i,o&_s.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&_s.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){null!=n&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i){if("string"==typeof n&&!(n=za().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(i))}decoratePreventDefault(n){return e=>{if("__ngUnwrap__"===e)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))&&e.preventDefault()}}}function DI(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class xZ extends Xw{constructor(n,e,i,o,r,a,s,l){super(n,r,a,l),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=SI(o.id,o.styles);for(const u of c){const d=document.createElement("style");s&&d.setAttribute("nonce",s),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Jw extends Xw{constructor(n,e,i,o,r,a,s,l){super(n,r,a,s),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=l?SI(l,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class EI extends Jw{constructor(n,e,i,o,r,a,s,l){const c=o+"-"+i.id;super(n,e,i,r,a,s,l,c),this.contentAttr=function vZ(t){return"_ngcontent-%COMP%".replace(Uw,t)}(c),this.hostAttr=function wZ(t){return"_nghost-%COMP%".replace(Uw,t)}(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let SZ=(()=>{class t extends wI{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,o){return e.addEventListener(i,o,!1),()=>this.removeEventListener(e,i,o)}removeEventListener(e,i,o){return e.removeEventListener(i,o)}static{this.\u0275fac=function(i){return new(i||t)(Me(qt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const TI=["alt","control","meta","shift"],DZ={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},EZ={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let TZ=(()=>{class t extends wI{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,o){const r=t.parseEventName(i),a=t.eventCallback(r.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>za().onAndCancel(e,r.domEventName,a))}static parseEventName(e){const i=e.toLowerCase().split("."),o=i.shift();if(0===i.length||"keydown"!==o&&"keyup"!==o)return null;const r=t._normalizeKey(i.pop());let a="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),a="code."),TI.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),a+=c+".")}),a+=r,0!=i.length||0===r.length)return null;const l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(e,i){let o=DZ[e.key]||e.key,r="";return i.indexOf("code.")>-1&&(o=e.code,r="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),TI.forEach(a=>{a!==o&&(0,EZ[a])(e)&&(r+=a+".")}),r+=o,r===i)}static eventCallback(e,i,o){return r=>{t.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}static{this.\u0275fac=function(i){return new(i||t)(Me(qt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const AI=[{provide:La,useValue:lI},{provide:bD,useValue:function MZ(){$w.makeCurrent()},multi:!0},{provide:qt,useFactory:function kZ(){return function S8(t){d_=t}(document),document},deps:[]}],IZ=sk(A$,"browser",AI),OZ=new He(""),kI=[{provide:Sg,useClass:class pZ{addToWindow(n){Gt.getAngularTestability=(i,o=!0)=>{const r=n.findTestabilityInTree(i,o);if(null==r)throw new S(5103,!1);return r},Gt.getAllAngularTestabilities=()=>n.getAllTestabilities(),Gt.getAllAngularRootElements=()=>n.getAllRootElements(),Gt.frameworkStabilizers||(Gt.frameworkStabilizers=[]),Gt.frameworkStabilizers.push(i=>{const o=Gt.getAllAngularTestabilities();let r=o.length;const a=function(){r--,0==r&&i()};o.forEach(s=>{s.whenStable(a)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?za().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:JA,useClass:sw,deps:[wt,lw,Sg]},{provide:sw,useClass:sw,deps:[wt,lw,Sg]}],II=[{provide:My,useValue:"root"},{provide:Ko,useFactory:function AZ(){return new Ko},deps:[]},{provide:Vw,useClass:SZ,multi:!0,deps:[qt,wt,La]},{provide:Vw,useClass:TZ,multi:!0,deps:[qt]},Ww,CI,vI,{provide:sv,useExisting:Ww},{provide:dI,useClass:gZ,deps:[]},[]];let Qw=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:xp,useValue:e.appId}]}}static{this.\u0275fac=function(i){return new(i||t)(Me(OZ,12))}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({providers:[...II,...kI],imports:[Is,k$]})}}return t})(),RZ=(()=>{class t{constructor(e){this._doc=e,this._dom=za()}addTag(e,i=!1){return e?this._getOrCreateElement(e,i):null}addTags(e,i=!1){return e?e.reduce((o,r)=>(r&&o.push(this._getOrCreateElement(r,i)),o),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];const i=this._doc.querySelectorAll(`meta[${e}]`);return i?[].slice.call(i):[]}updateTag(e,i){if(!e)return null;i=i||this._parseSelector(e);const o=this.getTag(i);return o?this._setMetaElementAttributes(e,o):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,i=!1){if(!i){const a=this._parseSelector(e),s=this.getTags(a).filter(l=>this._containsAttributes(e,l))[0];if(void 0!==s)return s}const o=this._dom.createElement("meta");return this._setMetaElementAttributes(e,o),this._doc.getElementsByTagName("head")[0].appendChild(o),o}_setMetaElementAttributes(e,i){return Object.keys(e).forEach(o=>i.setAttribute(this._getMetaKeyMap(o),e[o])),i}_parseSelector(e){const i=e.name?"name":"property";return`${i}="${e[i]}"`}_containsAttributes(e,i){return Object.keys(e).every(o=>i.getAttribute(this._getMetaKeyMap(o))===e[o])}_getMetaKeyMap(e){return PZ[e]||e}static{this.\u0275fac=function(i){return new(i||t)(Me(qt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const PZ={httpEquiv:"http-equiv"};let OI=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(i){return new(i||t)(Me(qt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Xg=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:function(i){let o=null;return o=i?new(i||t):Me(jZ),o},providedIn:"root"})}}return t})(),jZ=(()=>{class t extends Xg{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Ui.NONE:return i;case Ui.HTML:return da(i,"HTML")?qo(i):FD(this._doc,String(i)).toString();case Ui.STYLE:return da(i,"Style")?qo(i):i;case Ui.SCRIPT:if(da(i,"Script"))return qo(i);throw new S(5200,!1);case Ui.URL:return da(i,"URL")?qo(i):Op(String(i));case Ui.RESOURCE_URL:if(da(i,"ResourceURL"))return qo(i);throw new S(5201,!1);default:throw new S(5202,!1)}}bypassSecurityTrustHtml(e){return function Z8(t){return new B8(t)}(e)}bypassSecurityTrustStyle(e){return function G8(t){return new H8(t)}(e)}bypassSecurityTrustScript(e){return function U8(t){return new Y8(t)}(e)}bypassSecurityTrustUrl(e){return function W8(t){return new z8(t)}(e)}bypassSecurityTrustResourceUrl(e){return function X8(t){return new $8(t)}(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(qt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Xt=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(Xt||{});const Ga="*";function Ua(t,n){return{type:Xt.Trigger,name:t,definitions:n,options:{}}}function wr(t,n=null){return{type:Xt.Animate,styles:n,timings:t}}function Jg(t,n=null){return{type:Xt.Group,steps:t,options:n}}function oi(t){return{type:Xt.Style,styles:t,offset:null}}function Mo(t,n,e){return{type:Xt.State,name:t,styles:n,options:e}}function ir(t,n,e=null){return{type:Xt.Transition,expr:t,animation:n,options:e}}function wh(t=null){return{type:Xt.AnimateChild,options:t}}function Ch(t,n,e=null){return{type:Xt.Query,selector:t,animation:n,options:e}}class xh{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class FI{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,o=0;const r=this.players.length;0==r?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==r&&this._onFinish()}),a.onDestroy(()=>{++i==r&&this._onDestroy()}),a.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const o=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(o)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const LI=["toast-component",""];function $Z(t,n){if(1&t){const e=Tn();ye(0,"button",5),_t("click",function(){return Yt(e),zt(rt().remove())}),ye(1,"span",6),bn(2,"\xd7"),ve()()}}function VZ(t,n){if(1&t&&(Jd(0),bn(1),Qd()),2&t){const e=rt(2);Ne(),yr("[",e.duplicatesCount+1,"]")}}function ZZ(t,n){if(1&t&&(ye(0,"div"),bn(1),Mt(2,VZ,2,1,"ng-container",4),ve()),2&t){const e=rt();eo(e.options.titleClass),Kt("aria-label",e.title),Ne(),yr(" ",e.title," "),Ne(),Je("ngIf",e.duplicatesCount)}}function GZ(t,n){if(1&t&&at(0,"div",7),2&t){const e=rt();eo(e.options.messageClass),Je("innerHTML",e.message,A_)}}function UZ(t,n){if(1&t&&(ye(0,"div",8),bn(1),ve()),2&t){const e=rt();eo(e.options.messageClass),Kt("aria-label",e.message),Ne(),yr(" ",e.message," ")}}function WZ(t,n){if(1&t&&(ye(0,"div"),at(1,"div",9),ve()),2&t){const e=rt();Ne(),Ds("width",e.width+"%")}}class tG{_attachedHost;component;viewContainerRef;injector;constructor(n,e){this.component=n,this.injector=e}attach(n,e){return this._attachedHost=n,n.attach(this,e)}detach(){const n=this._attachedHost;if(n)return this._attachedHost=void 0,n.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class nG{_attachedPortal;_disposeFn;attach(n,e){return this._attachedPortal=n,this.attachComponentPortal(n,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(n){this._disposeFn=n}}class iG{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new vt;_activate=new vt;_manualClose=new vt;_resetTimeout=new vt;_countDuplicate=new vt;constructor(n){this._overlayRef=n}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(n,e){n&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}class Qg{toastId;config;message;title;toastType;toastRef;_onTap=new vt;_onAction=new vt;constructor(n,e,i,o,r,a){this.toastId=n,this.config=e,this.message=i,this.title=o,this.toastType=r,this.toastRef=a,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(n){this._onAction.next(n)}onAction(){return this._onAction.asObservable()}}const BI=new He("ToastConfig");class oG extends nG{_hostDomElement;_componentFactoryResolver;_appRef;constructor(n,e,i){super(),this._hostDomElement=n,this._componentFactoryResolver=e,this._appRef=i}attachComponentPortal(n,e){const i=this._componentFactoryResolver.resolveComponentFactory(n.component);let o;return o=i.create(n.injector),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.detachView(o.hostView),o.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(o),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(o)),o}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let rG=(()=>{class t{_document=Pe(qt);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._document.createElement("div");e.classList.add("overlay-container"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),this._containerElement=e}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class aG{_portalHost;constructor(n){this._portalHost=n}attach(n,e=!0){return this._portalHost.attach(n,e)}detach(){return this._portalHost.detach()}}let sG=(()=>{class t{_overlayContainer=Pe(rG);_componentFactoryResolver=Pe(fl);_appRef=Pe(Yr);_document=Pe(qt);_paneElements=new Map;create(e,i){return this._createOverlayRef(this.getPaneElement(e,i))}getPaneElement(e="",i){return this._paneElements.get(i)||this._paneElements.set(i,{}),this._paneElements.get(i)[e]||(this._paneElements.get(i)[e]=this._createPaneElement(e,i)),this._paneElements.get(i)[e]}_createPaneElement(e,i){const o=this._document.createElement("div");return o.id="toast-container",o.classList.add(e),o.classList.add("toast-container"),i?i.getContainerElement().appendChild(o):this._overlayContainer.getContainerElement().appendChild(o),o}_createPortalHost(e){return new oG(e,this._componentFactoryResolver,this._appRef)}_createOverlayRef(e){return new aG(this._createPortalHost(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Sl=(()=>{class t{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(e,i,o,r,a){this.overlay=i,this._injector=o,this.sanitizer=r,this.ngZone=a,this.toastrConfig={...e.default,...e.config},e.config.iconClasses&&(this.toastrConfig.iconClasses={...e.default.iconClasses,...e.config.iconClasses})}show(e,i,o={},r=""){return this._preBuildNotification(r,e,i,this.applyConfig(o))}success(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",e,i,this.applyConfig(o))}error(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",e,i,this.applyConfig(o))}info(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",e,i,this.applyConfig(o))}warning(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",e,i,this.applyConfig(o))}clear(e){for(const i of this.toasts)if(void 0!==e){if(i.toastId===e)return void i.toastRef.manualClose()}else i.toastRef.manualClose()}remove(e){const i=this._findToast(e);if(!i||(i.activeToast.toastRef.close(),this.toasts.splice(i.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActivethis._buildNotification(e,i,o,r)):this._buildNotification(e,i,o,r)}_buildNotification(e,i,o,r){if(!r.toastComponent)throw new Error("toastComponent required");const a=this.findDuplicate(o,i,this.toastrConfig.resetTimeoutOnDuplicate&&r.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&o||i)&&this.toastrConfig.preventDuplicates&&null!==a)return a;this.previousToastMessage=i;let s=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(s=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const l=this.overlay.create(r.positionClass,this.overlayContainer);this.index=this.index+1;let c=i;i&&r.enableHtml&&(c=this.sanitizer.sanitize(Ui.HTML,i));const u=new iG(l),d=new Qg(this.index,r,c,o,e,u),p=gi.create({providers:[{provide:Qg,useValue:d}],parent:this._injector}),g=new tG(r.toastComponent,p),b=l.attach(g,r.newestOnTop);u.componentInstance=b.instance;const T={toastId:this.index,title:o||"",message:i||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:b};return s||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{T.toastRef.activate()})),this.toasts.push(T),T}static \u0275fac=function(i){return new(i||t)(Me(BI),Me(sG),Me(gi),Me(Xg),Me(wt))};static \u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const lG={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:(()=>{class t{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=-1;toastClasses="";state;get displayStyle(){if("inactive"===this.state.value)return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(e,i,o){this.toastrService=e,this.toastPackage=i,this.ngZone=o,this.message=i.message,this.title=i.title,this.options=i.config,this.originalTimeout=i.config.timeOut,this.toastClasses=`${i.toastType} ${i.config.toastClass}`,this.sub=i.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=i.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=i.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=i.toastRef.countDuplicate().subscribe(r=>{this.duplicatesCount=r}),this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}}}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state={...this.state,value:"active"},!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state={...this.state,value:"active"},this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state={...this.state,value:"removed"},this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(e,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(e),i)):this.timeout=setTimeout(()=>e(),i)}outsideInterval(e,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(e),i)):this.intervalId=setInterval(()=>e(),i)}runInsideAngular(e){this.ngZone?this.ngZone.run(()=>e()):e()}static \u0275fac=function(i){return new(i||t)(K(Sl),K(Qg),K(wt))};static \u0275cmp=pn({type:t,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(i,o){1&i&&_t("click",function(){return o.tapToast()})("mouseenter",function(){return o.stickAround()})("mouseleave",function(){return o.delayedHideToast()}),2&i&&(Gv("@flyInOut",o.state),eo(o.toastClasses),Ds("display",o.displayStyle))},standalone:!0,features:[Zn],attrs:LI,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(i,o){1&i&&Mt(0,$Z,3,0,"button",0)(1,ZZ,3,5,"div",1)(2,GZ,1,3,"div",2)(3,UZ,2,4,"div",3)(4,WZ,2,2,"div",4),2&i&&(Je("ngIf",o.options.closeButton),Ne(),Je("ngIf",o.title),Ne(),Je("ngIf",o.message&&o.options.enableHtml),Ne(),Je("ngIf",o.message&&!o.options.enableHtml),Ne(),Je("ngIf",o.options.progressBar))},dependencies:[ks],encapsulation:2,data:{animation:[Ua("flyInOut",[Mo("inactive",oi({opacity:0})),Mo("active",oi({opacity:1})),Mo("removed",oi({opacity:0})),ir("inactive => active",wr("{{ easeTime }}ms {{ easing }}")),ir("active => removed",wr("{{ easeTime }}ms {{ easing }}"))])]}})}return t})()},cG=(t={})=>dc([{provide:BI,useValue:{default:lG,config:t}}]);let uG=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[cG(e)]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=nn({type:t});static \u0275inj=en({})}return t})();function HI(t){return t&&Ae(t.schedule)}function qw(t){return t[t.length-1]}function YI(t){return Ae(qw(t))?t.pop():void 0}function Sh(t){return HI(qw(t))?t.pop():void 0}function Os(t){return this instanceof Os?(this.v=t,this):new Os(t)}function UI(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function o0(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(r){e[r]=t[r]&&function(a){return new Promise(function(s,l){!function o(r,a,s,l){Promise.resolve(l).then(function(c){r({value:c,done:s})},a)}(s,l,(a=t[r](a)).done,a.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const r0=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function WI(t){return Ae(t?.then)}function XI(t){return Ae(t[ea])}function JI(t){return Symbol.asyncIterator&&Ae(t?.[Symbol.asyncIterator])}function QI(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const KI=function IG(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function qI(t){return Ae(t?.[KI])}function e2(t){return function GI(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=e.apply(t,n||[]),r=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(h){i[h]&&(o[h]=function(p){return new Promise(function(g,b){r.push([h,p,g,b])>1||s(h,p)})})}function s(h,p){try{!function l(h){h.value instanceof Os?Promise.resolve(h.value.v).then(c,u):d(r[0][2],h)}(i[h](p))}catch(g){d(r[0][3],g)}}function c(h){s("next",h)}function u(h){s("throw",h)}function d(h,p){h(p),r.shift(),r.length&&s(r[0][0],r[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:o}=yield Os(e.read());if(o)return yield Os(void 0);yield yield Os(i)}}finally{e.releaseLock()}})}function t2(t){return Ae(t?.getReader)}function io(t){if(t instanceof On)return t;if(null!=t){if(XI(t))return function OG(t){return new On(n=>{const e=t[ea]();if(Ae(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(r0(t))return function RG(t){return new On(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,tt)})}(t);if(JI(t))return n2(t);if(qI(t))return function NG(t){return new On(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(t2(t))return function FG(t){return n2(e2(t))}(t)}throw QI(t)}function n2(t){return new On(n=>{(function LG(t,n){var e,i,o,r;return function VI(t,n,e,i){return new(e||(e=Promise))(function(r,a){function s(u){try{c(i.next(u))}catch(d){a(d)}}function l(u){try{c(i.throw(u))}catch(d){a(d)}}function c(u){u.done?r(u.value):function o(r){return r instanceof e?r:new e(function(a){a(r)})}(u.value).then(s,l)}c((i=i.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=UI(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function Wa(t,n,e,i=0,o=!1){const r=n.schedule(function(){e(),o?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(r),!o)return r}function o2(t,n=0){return $n((e,i)=>{e.subscribe(Pn(i,o=>Wa(i,t,()=>i.next(o),n),()=>Wa(i,t,()=>i.complete(),n),o=>Wa(i,t,()=>i.error(o),n)))})}function r2(t,n=0){return $n((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function a2(t,n){if(!t)throw new Error("Iterable cannot be null");return new On(e=>{Wa(e,n,()=>{const i=t[Symbol.asyncIterator]();Wa(e,n,()=>{i.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function bi(t,n){return n?function $G(t,n){if(null!=t){if(XI(t))return function jG(t,n){return io(t).pipe(r2(n),o2(n))}(t,n);if(r0(t))return function HG(t,n){return new On(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(WI(t))return function BG(t,n){return io(t).pipe(r2(n),o2(n))}(t,n);if(JI(t))return a2(t,n);if(qI(t))return function YG(t,n){return new On(e=>{let i;return Wa(e,n,()=>{i=t[KI](),Wa(e,n,()=>{let o,r;try{({value:o,done:r}=i.next())}catch(a){return void e.error(a)}r?e.complete():e.next(o)},0,!0)}),()=>Ae(i?.return)&&i.return()})}(t,n);if(t2(t))return function zG(t,n){return a2(e2(t),n)}(t,n)}throw QI(t)}(t,n):io(t)}function Et(...t){return bi(t,Sh(t))}function Wi(t,n,e=1/0){return Ae(n)?Wi((i,o)=>Bt((r,a)=>n(i,r,o,a))(io(t(i,o))),e):("number"==typeof n&&(e=n),$n((i,o)=>function VG(t,n,e,i,o,r,a,s){const l=[];let c=0,u=0,d=!1;const h=()=>{d&&!l.length&&!c&&n.complete()},p=b=>c{r&&n.next(b),c++;let T=!1;io(e(b,u++)).subscribe(Pn(n,D=>{o?.(D),r?p(D):n.next(D)},()=>{T=!0},void 0,()=>{if(T)try{for(c--;l.length&&cg(D)):g(D)}h()}catch(D){n.error(D)}}))};return t.subscribe(Pn(n,p,()=>{d=!0,h()})),()=>{s?.()}}(i,o,t,e)))}function au(t,n){return Ae(n)?Wi(t,n,1):Wi(t,1)}function ui(t,n){return $n((e,i)=>{let o=0;e.subscribe(Pn(i,r=>t.call(n,r,o++)&&i.next(r)))})}function Dl(t){return $n((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function Ni(t,n){return $n((e,i)=>{let o=null,r=0,a=!1;const s=()=>a&&!o&&i.complete();e.subscribe(Pn(i,l=>{o?.unsubscribe();let c=0;const u=r++;io(t(l,u)).subscribe(o=Pn(i,d=>i.next(n?n(l,d,u,c++):d),()=>{o=null,s()}))},()=>{a=!0,s()}))})}class Kg{}class qg{}class Cr{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const o=e.slice(0,i),r=o.toLowerCase(),a=e.slice(i+1).trim();this.maybeSetNormalizedName(o,r),this.headers.has(r)?this.headers.get(r).push(a):this.headers.set(r,[a])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.setHeaderEntries(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof Cr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new Cr;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Cr?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const o=("a"===n.op?this.headers.get(e):void 0)||[];o.push(...i),this.headers.set(e,o);break;case"d":const r=n.value;if(r){let a=this.headers.get(e);if(!a)return;a=a.filter(s=>-1===r.indexOf(s)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}setHeaderEntries(n,e){const i=(Array.isArray(e)?e:[e]).map(r=>r.toString()),o=n.toLowerCase();this.headers.set(o,i),this.maybeSetNormalizedName(n,o)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class ZG{encodeKey(n){return s2(n)}encodeValue(n){return s2(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const UG=/%(\d[a-f0-9])/gi,WG={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function s2(t){return encodeURIComponent(t).replace(UG,(n,e)=>WG[e]??n)}function em(t){return`${t}`}class Rs{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new ZG,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function GG(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const r=o.indexOf("="),[a,s]=-1==r?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,r)),n.decodeValue(o.slice(r+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],o=Array.isArray(i)?i.map(em):[em(i)];this.map.set(e,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const o=n[i];Array.isArray(o)?o.forEach(r=>{e.push({param:i,value:r,op:"a"})}):e.push({param:i,value:o,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new Rs({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(em(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const o=i.indexOf(em(n.value));-1!==o&&i.splice(o,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class XG{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function l2(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function c2(t){return typeof Blob<"u"&&t instanceof Blob}function u2(t){return typeof FormData<"u"&&t instanceof FormData}class Dh{constructor(n,e,i,o){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function JG(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==i?i:null,r=o):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),this.transferCache=r.transferCache),this.headers??=new Cr,this.context??=new XG,this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":sd.set(h,n.setHeaders[h]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((d,h)=>d.set(h,n.setParams[h]),c)),new Dh(e,i,r,{params:c,headers:l,context:u,reportProgress:s,responseType:o,withCredentials:a})}}var Ps=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Ps||{});class a0{constructor(n,e=Eh.Ok,i="OK"){this.headers=n.headers||new Cr,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class tm extends a0{constructor(n={}){super(n),this.type=Ps.ResponseHeader}clone(n={}){return new tm({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class El extends a0{constructor(n={}){super(n),this.type=Ps.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new El({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Xa extends a0{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}var Eh=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(Eh||{});function s0(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}let su=(()=>{class t{constructor(e){this.handler=e}request(e,i,o={}){let r;if(e instanceof Dh)r=e;else{let l,c;l=o.headers instanceof Cr?o.headers:new Cr(o.headers),o.params&&(c=o.params instanceof Rs?o.params:new Rs({fromObject:o.params})),r=new Dh(e,i,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}const a=Et(r).pipe(au(l=>this.handler.handle(l)));if(e instanceof Dh||"events"===o.observe)return a;const s=a.pipe(ui(l=>l instanceof El));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(Bt(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return s.pipe(Bt(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return s.pipe(Bt(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return s.pipe(Bt(l=>l.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Rs).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,o={}){return this.request("PATCH",e,s0(o,i))}post(e,i,o={}){return this.request("POST",e,s0(o,i))}put(e,i,o={}){return this.request("PUT",e,s0(o,i))}static{this.\u0275fac=function(i){return new(i||t)(Me(Kg))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function h2(t,n){return n(t)}function nU(t,n){return(e,i)=>n.intercept(e,{handle:o=>t(o,i)})}const oU=new He(""),Th=new He(""),f2=new He(""),p2=new He("");function rU(){let t=null;return(n,e)=>{null===t&&(t=(Pe(oU,{optional:!0})??[]).reduceRight(nU,h2));const i=Pe(Cs),o=i.add();return t(n,e).pipe(Dl(()=>i.remove(o)))}}let g2=(()=>{class t extends Kg{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=Pe(Cs);const o=Pe(p2,{optional:!0});this.backend=o??e}handle(e){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(Th),...this.injector.get(f2,[])]));this.chain=o.reduceRight((r,a)=>function iU(t,n,e){return(i,o)=>ia(e,()=>n(i,r=>t(r,o)))}(r,a,this.injector),h2)}const i=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(Dl(()=>this.pendingTasks.remove(i)))}static{this.\u0275fac=function(i){return new(i||t)(Me(qg),Me(Lo))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const uU=/^\)\]\}',?\n/;let b2=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new S(-2800,!1);const i=this.xhrFactory;return(i.\u0275loadImpl?bi(i.\u0275loadImpl()):Et(null)).pipe(Ni(()=>new On(r=>{const a=i.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((b,T)=>a.setRequestHeader(b,T.join(","))),e.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const b=e.detectContentTypeHeader();null!==b&&a.setRequestHeader("Content-Type",b)}if(e.responseType){const b=e.responseType.toLowerCase();a.responseType="json"!==b?b:"text"}const s=e.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const b=a.statusText||"OK",T=new Cr(a.getAllResponseHeaders()),D=function dU(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(a)||e.url;return l=new tm({headers:T,status:a.status,statusText:b,url:D}),l},u=()=>{let{headers:b,status:T,statusText:D,url:H}=c(),oe=null;T!==Eh.NoContent&&(oe=typeof a.response>"u"?a.responseText:a.response),0===T&&(T=oe?Eh.Ok:0);let le=T>=200&&T<300;if("json"===e.responseType&&"string"==typeof oe){const G=oe;oe=oe.replace(uU,"");try{oe=""!==oe?JSON.parse(oe):null}catch(pe){oe=G,le&&(le=!1,oe={error:pe,text:oe})}}le?(r.next(new El({body:oe,headers:b,status:T,statusText:D,url:H||void 0})),r.complete()):r.error(new Xa({error:oe,headers:b,status:T,statusText:D,url:H||void 0}))},d=b=>{const{url:T}=c(),D=new Xa({error:b,status:a.status||0,statusText:a.statusText||"Unknown Error",url:T||void 0});r.error(D)};let h=!1;const p=b=>{h||(r.next(c()),h=!0);let T={type:Ps.DownloadProgress,loaded:b.loaded};b.lengthComputable&&(T.total=b.total),"text"===e.responseType&&a.responseText&&(T.partialText=a.responseText),r.next(T)},g=b=>{let T={type:Ps.UploadProgress,loaded:b.loaded};b.lengthComputable&&(T.total=b.total),r.next(T)};return a.addEventListener("load",u),a.addEventListener("error",d),a.addEventListener("timeout",d),a.addEventListener("abort",d),e.reportProgress&&(a.addEventListener("progress",p),null!==s&&a.upload&&a.upload.addEventListener("progress",g)),a.send(s),r.next({type:Ps.Sent}),()=>{a.removeEventListener("error",d),a.removeEventListener("abort",d),a.removeEventListener("load",u),a.removeEventListener("timeout",d),e.reportProgress&&(a.removeEventListener("progress",p),null!==s&&a.upload&&a.upload.removeEventListener("progress",g)),a.readyState!==a.DONE&&a.abort()}})))}static{this.\u0275fac=function(i){return new(i||t)(Me(dI))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const u0=new He(""),y2=new He("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),_2=new He("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class v2{}let pU=(()=>{class t{constructor(e,i,o){this.doc=e,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=eI(e,this.cookieName),this.lastCookieString=e),this.lastToken}static{this.\u0275fac=function(i){return new(i||t)(Me(qt),Me(La),Me(y2))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function gU(t,n){const e=t.url.toLowerCase();if(!Pe(u0)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=Pe(v2).getToken(),o=Pe(_2);return null!=i&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,i)})),n(t)}var Ns=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Ns||{});function Tl(t,n){return{\u0275kind:t,\u0275providers:n}}function mU(...t){const n=[su,b2,g2,{provide:Kg,useExisting:g2},{provide:qg,useExisting:b2},{provide:Th,useValue:gU,multi:!0},{provide:u0,useValue:!0},{provide:v2,useClass:pU}];for(const e of t)n.push(...e.\u0275providers);return dc(n)}const w2=new He("");let yU=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({providers:[mU(Tl(Ns.LegacyInterceptors,[{provide:w2,useFactory:rU},{provide:Th,useExisting:w2,multi:!0}]))]})}}return t})();const{isArray:SU}=Array,{getPrototypeOf:DU,prototype:EU,keys:TU}=Object;function M2(t){if(1===t.length){const n=t[0];if(SU(n))return{args:n,keys:null};if(function MU(t){return t&&"object"==typeof t&&DU(t)===EU}(n)){const e=TU(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:AU}=Array;function d0(t){return Bt(n=>function kU(t,n){return AU(n)?t(...n):t(n)}(t,n))}function A2(t,n){return t.reduce((e,i,o)=>(e[i]=n[o],e),{})}function Mh(...t){const n=YI(t),{args:e,keys:i}=M2(t),o=new On(r=>{const{length:a}=e;if(!a)return void r.complete();const s=new Array(a);let l=a,c=a;for(let u=0;u{d||(d=!0,c--),s[u]=h},()=>l--,void 0,()=>{(!l||!d)&&(c||r.next(i?A2(i,s):s),r.complete())}))}});return n?o.pipe(d0(n)):o}let k2=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static{this.\u0275fac=function(i){return new(i||t)(K(Ha),K(Zt))}}static{this.\u0275dir=gt({type:t})}}return t})(),Ml=(()=>{class t extends k2{static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=yi(t)))(o||t)}})()}static{this.\u0275dir=gt({type:t,features:[an]})}}return t})();const or=new He(""),OU={provide:or,useExisting:Dn(()=>Ah),multi:!0},PU=new He("");let Ah=(()=>{class t extends k2{constructor(e,i,o){super(e,i),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function RU(){const t=za()?za().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static{this.\u0275fac=function(i){return new(i||t)(K(Ha),K(Zt),K(PU,8))}}static{this.\u0275dir=gt({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){1&i&&_t("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[wn([OU]),an]})}}return t})();function Fs(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function O2(t){return null!=t&&"number"==typeof t.length}const Xi=new He(""),Ls=new He(""),NU=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class js{static min(n){return function R2(t){return n=>{if(Fs(n.value)||Fs(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{if(Fs(n.value)||Fs(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return N2(n)}static requiredTrue(n){return function F2(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function L2(t){return Fs(t.value)||NU.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function j2(t){return n=>Fs(n.value)||!O2(n.value)?null:n.value.lengthO2(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return function H2(t){if(!t)return im;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(Fs(i.value))return null;const o=i.value;return n.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}(n)}static nullValidator(n){return null}static compose(n){return G2(n)}static composeAsync(n){return U2(n)}}function N2(t){return Fs(t.value)?{required:!0}:null}function im(t){return null}function Y2(t){return null!=t}function z2(t){return fh(t)?bi(t):t}function $2(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function V2(t,n){return n.map(e=>e(t))}function Z2(t){return t.map(n=>function FU(t){return!t.validate}(n)?n:e=>n.validate(e))}function G2(t){if(!t)return null;const n=t.filter(Y2);return 0==n.length?null:function(e){return $2(V2(e,n))}}function h0(t){return null!=t?G2(Z2(t)):null}function U2(t){if(!t)return null;const n=t.filter(Y2);return 0==n.length?null:function(e){return Mh(V2(e,n).map(z2)).pipe(Bt($2))}}function f0(t){return null!=t?U2(Z2(t)):null}function W2(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function X2(t){return t._rawValidators}function J2(t){return t._rawAsyncValidators}function p0(t){return t?Array.isArray(t)?t:[t]:[]}function om(t,n){return Array.isArray(t)?t.includes(n):t===n}function Q2(t,n){const e=p0(n);return p0(t).forEach(o=>{om(e,o)||e.push(o)}),e}function K2(t,n){return p0(n).filter(e=>!om(t,e))}class q2{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=h0(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=f0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Ao extends q2{get formDirective(){return null}get path(){return null}}class ya extends q2{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class eO{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let rm=(()=>{class t extends eO{constructor(e){super(e)}static{this.\u0275fac=function(i){return new(i||t)(K(ya,2))}}static{this.\u0275dir=gt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){2&i&&un("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[an]})}}return t})();const kh="VALID",sm="INVALID",lu="PENDING",Ih="DISABLED";function b0(t){return(lm(t)?t.validators:t)||null}function y0(t,n){return(lm(n)?n.asyncValidators:t)||null}function lm(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function nO(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new S(1e3,"");if(!i[e])throw new S(1001,"")}function iO(t,n,e){t._forEachChild((i,o)=>{if(void 0===e[o])throw new S(1002,"")})}class cm{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===kh}get invalid(){return this.status===sm}get pending(){return this.status==lu}get disabled(){return this.status===Ih}get enabled(){return this.status!==Ih}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(Q2(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Q2(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(K2(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(K2(n,this._rawAsyncValidators))}hasValidator(n){return om(this._rawValidators,n)}hasAsyncValidator(n){return om(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=lu,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Ih,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=kh,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===kh||this.status===lu)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ih:kh}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=lu,this._hasOwnPendingAsyncValidator=!0;const e=z2(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,o)=>i&&i._find(o),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new Ot,this.statusChanges=new Ot}_calculateStatus(){return this._allControlsDisabled()?Ih:this.errors?sm:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(lu)?lu:this._anyControlsHaveStatus(sm)?sm:kh}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){lm(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function YU(t){return Array.isArray(t)?h0(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function zU(t){return Array.isArray(t)?f0(t):t||null}(this._rawAsyncValidators)}}class Oh extends cm{constructor(n,e,i){super(b0(e),y0(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){iO(this,0,n),Object.keys(n).forEach(i=>{nO(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const o=this.controls[i];o&&o.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,o)=>{i.reset(n?n[o]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,o)=>((i.enabled||this.disabled)&&(e[o]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((o,r)=>{i=e(i,o,r)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class oO extends Oh{}const Al=new He("CallSetDisabledState",{providedIn:"root",factory:()=>Rh}),Rh="always";function Ph(t,n,e=Rh){_0(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function VU(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&rO(t,n)})}(t,n),function GU(t,n){const e=(i,o)=>{n.valueAccessor.writeValue(i),o&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function ZU(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&rO(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function $U(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function dm(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),fm(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function hm(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function _0(t,n){const e=X2(t);null!==n.validator?t.setValidators(W2(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=J2(t);null!==n.asyncValidator?t.setAsyncValidators(W2(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const o=()=>t.updateValueAndValidity();hm(n._rawValidators,o),hm(n._rawAsyncValidators,o)}function fm(t,n){let e=!1;if(null!==t){if(null!==n.validator){const o=X2(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(null!==n.asyncValidator){const o=J2(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}const i=()=>{};return hm(n._rawValidators,i),hm(n._rawAsyncValidators,i),e}function rO(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function aO(t,n){_0(t,n)}function w0(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}function sO(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function C0(t,n){if(!n)return null;let e,i,o;return Array.isArray(n),n.forEach(r=>{r.constructor===Ah?e=r:function XU(t){return Object.getPrototypeOf(t.constructor)===Ml}(r)?i=r:o=r}),o||i||e||null}const QU={provide:Ao,useExisting:Dn(()=>Fh)},Nh=(()=>Promise.resolve())();let Fh=(()=>{class t extends Ao{constructor(e,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ot,this.form=new Oh({},h0(e),f0(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Nh.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Ph(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Nh.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Nh.then(()=>{const i=this._findContainer(e.path),o=new Oh({});aO(o,e),i.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Nh.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){Nh.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,sO(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static{this.\u0275fac=function(i){return new(i||t)(K(Xi,10),K(Ls,10),K(Al,8))}}static{this.\u0275dir=gt({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,o){1&i&&_t("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[Le.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[wn([QU]),an]})}}return t})();function lO(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function cO(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const Vr=class extends cm{constructor(n=null,e,i){super(b0(e),y0(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),lm(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=cO(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){lO(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){lO(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){cO(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},eW={provide:ya,useExisting:Dn(()=>Lh)},hO=(()=>Promise.resolve())();let Lh=(()=>{class t extends ya{constructor(e,i,o,r,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this.control=new Vr,this._registered=!1,this.name="",this.update=new Ot,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=C0(0,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),w0(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ph(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){hO.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,o=0!==i&&Nt(i);hO.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function um(t,n){return[...n.path,t]}(e,this._parent):[e]}static{this.\u0275fac=function(i){return new(i||t)(K(Ao,9),K(Xi,10),K(Ls,10),K(or,10),K(mi,8),K(Al,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[Le.None,"disabled","isDisabled"],model:[Le.None,"ngModel","model"],options:[Le.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[wn([eW]),an,Gi]})}}return t})();const x0=new He(""),aW={provide:ya,useExisting:Dn(()=>S0)};let S0=(()=>{class t extends ya{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,i,o,r,a){super(),this._ngModelWarningConfig=r,this.callSetDisabledState=a,this.update=new Ot,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=C0(0,o)}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&dm(i,this,!1),Ph(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}w0(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&dm(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static{this.\u0275fac=function(i){return new(i||t)(K(Xi,10),K(Ls,10),K(or,10),K(x0,8),K(Al,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","formControl",""]],inputs:{form:[Le.None,"formControl","form"],isDisabled:[Le.None,"disabled","isDisabled"],model:[Le.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[wn([aW]),an,Gi]})}}return t})();const sW={provide:Ao,useExisting:Dn(()=>jh)};let jh=(()=>{class t extends Ao{constructor(e,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ot,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(fm(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return Ph(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){dm(e.control||null,e,!1),function JU(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,sO(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,o=this.form.get(e.path);i!==o&&(dm(i||null,e),(t=>t instanceof Vr)(o)&&(Ph(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);aO(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function UU(t,n){return fm(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){_0(this.form,this),this._oldForm&&fm(this._oldForm,this)}_checkFormPresent(){}static{this.\u0275fac=function(i){return new(i||t)(K(Xi,10),K(Ls,10),K(Al,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,o){1&i&&_t("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[Le.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[wn([sW]),an,Gi]})}}return t})(),kl=(()=>{class t{constructor(){this._validator=im}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):im,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=gt({type:t,features:[Gi]})}}return t})();const _W={provide:Xi,useExisting:Dn(()=>pm),multi:!0};let pm=(()=>{class t extends kl{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Nt,this.createValidator=e=>N2}enabled(e){return e}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=yi(t)))(o||t)}})()}static{this.\u0275dir=gt({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,o){2&i&&Kt("required",o._enabled?"":null)},inputs:{required:"required"},features:[wn([_W]),an]})}}return t})(),MO=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({})}}return t})();class AO extends cm{constructor(n,e,i){super(b0(e),y0(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let o=this._adjustIndex(n);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),e&&(this.controls.splice(o,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){iO(this,0,n),n.forEach((i,o)=>{nO(this,!1,o),this.at(o).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,o)=>{this.at(o)&&this.at(o).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,o)=>{i.reset(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function kO(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let IO=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const o=this._reduceControls(e);let r={};return kO(i)?r=i:null!==i&&(r.validators=i.validator,r.asyncValidators=i.asyncValidator),new Oh(o,r)}record(e,i=null){const o=this._reduceControls(e);return new oO(o,i)}control(e,i,o){let r={};return this.useNonNullable?(kO(i)?r=i:(r.validators=i,r.asyncValidators=o),new Vr(e,{...r,nonNullable:!0})):new Vr(e,i,o)}array(e,i,o){const r=e.map(a=>this._createControl(a));return new AO(r,i,o)}_reduceControls(e){const i={};return Object.keys(e).forEach(o=>{i[o]=this._createControl(e[o])}),i}_createControl(e){return e instanceof Vr||e instanceof cm?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),OO=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Al,useValue:e.callSetDisabledState??Rh}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[MO]})}}return t})(),DW=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:x0,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Al,useValue:e.callSetDisabledState??Rh}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[MO]})}}return t})();function RO(t){return new S(3e3,!1)}function Bs(t){switch(t.length){case 0:return new xh;case 1:return t[0];default:return new FI(t)}}function PO(t,n,e=new Map,i=new Map){const o=[],r=[];let a=-1,s=null;if(n.forEach(l=>{const c=l.get("offset"),u=c==a,d=u&&s||new Map;l.forEach((h,p)=>{let g=p,b=h;if("offset"!==p)switch(g=t.normalizePropertyName(g,o),b){case"!":b=e.get(p);break;case Ga:b=i.get(p);break;default:b=t.normalizeStyleValue(p,g,b,o)}d.set(g,b)}),u||r.push(d),s=d,a=c}),o.length)throw function WW(t){return new S(3502,!1)}();return r}function k0(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&I0(e,"start",t)));break;case"done":t.onDone(()=>i(e&&I0(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&I0(e,"destroy",t)))}}function I0(t,n,e){const r=O0(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),a=t._data;return null!=a&&(r._data=a),r}function O0(t,n,e,i,o="",r=0,a){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:o,totalTime:r,disabled:!!a}}function rr(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function NO(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}const aX=(()=>typeof document>"u"?null:document.documentElement)();function R0(t){const n=t.parentNode||t.host||null;return n===aX?null:n}let Il=null,FO=!1;function LO(t,n){for(;n;){if(n===t)return!0;n=R0(n)}return!1}function jO(t,n,e){if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]}let P0=(()=>{class t{validateStyleProperty(e){return function lX(t){Il||(Il=function cX(){return typeof document<"u"?document.body:null}()||{},FO=!!Il.style&&"WebkitAppearance"in Il.style);let n=!0;return Il.style&&!function sX(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Il.style,!n&&FO&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Il.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return LO(e,i)}getParentElement(e){return R0(e)}query(e,i,o){return jO(e,i,o)}computeStyle(e,i,o){return o||""}animate(e,i,o,r,a,s=[],l){return new xh(o,r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();class N0{static{this.NOOP=new P0}}class F0{}const dX=1e3,L0="ng-enter",gm="ng-leave",mm="ng-trigger",bm=".ng-trigger",HO="ng-animating",j0=".ng-animating";function Ja(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:B0(parseFloat(n[1]),n[2])}function B0(t,n){return"s"===n?t*dX:t}function ym(t,n,e){return t.hasOwnProperty("duration")?t:function fX(t,n,e){let o,r=0,a="";if("string"==typeof t){const s=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return n.push(RO()),{duration:0,delay:0,easing:""};o=B0(parseFloat(s[1]),s[2]);const l=s[3];null!=l&&(r=B0(parseFloat(l),s[4]));const c=s[5];c&&(a=c)}else o=t;if(!e){let s=!1,l=n.length;o<0&&(n.push(function EW(){return new S(3100,!1)}()),s=!0),r<0&&(n.push(function TW(){return new S(3101,!1)}()),s=!0),s&&n.splice(l,0,RO())}return{duration:o,delay:r,easing:a}}(t,n,e)}function _a(t,n,e){n.forEach((i,o)=>{const r=Y0(o);e&&!e.has(o)&&e.set(o,t.style[r]),t.style[r]=i})}function Ol(t,n){n.forEach((e,i)=>{const o=Y0(i);t.style[o]=""})}function Bh(t){return Array.isArray(t)?1==t.length?t[0]:function BZ(t,n=null){return{type:Xt.Sequence,steps:t,options:n}}(t):t}const H0=new RegExp("{{\\s*(.+?)\\s*}}","g");function zO(t){let n=[];if("string"==typeof t){let e;for(;e=H0.exec(t);)n.push(e[1]);H0.lastIndex=0}return n}function Hh(t,n,e){const i=`${t}`,o=i.replace(H0,(r,a)=>{let s=n[a];return null==s&&(e.push(function AW(t){return new S(3003,!1)}()),s=""),s.toString()});return o==i?t:o}const mX=/-+([a-z0-9])/g;function Y0(t){return t.replace(mX,(...n)=>n[1].toUpperCase())}function ar(t,n,e){switch(n.type){case Xt.Trigger:return t.visitTrigger(n,e);case Xt.State:return t.visitState(n,e);case Xt.Transition:return t.visitTransition(n,e);case Xt.Sequence:return t.visitSequence(n,e);case Xt.Group:return t.visitGroup(n,e);case Xt.Animate:return t.visitAnimate(n,e);case Xt.Keyframes:return t.visitKeyframes(n,e);case Xt.Style:return t.visitStyle(n,e);case Xt.Reference:return t.visitReference(n,e);case Xt.AnimateChild:return t.visitAnimateChild(n,e);case Xt.AnimateRef:return t.visitAnimateRef(n,e);case Xt.Query:return t.visitQuery(n,e);case Xt.Stagger:return t.visitStagger(n,e);default:throw function kW(t){return new S(3004,!1)}()}}function z0(t,n){return window.getComputedStyle(t)[n]}const _X=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class $O extends F0{normalizePropertyName(n,e){return Y0(n)}normalizeStyleValue(n,e,i,o){let r="";const a=i.toString().trim();if(_X.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const s=i.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&o.push(function IW(t,n){return new S(3005,!1)}())}return a+r}}const _m="*";const vm=new Set(["true","1"]),wm=new Set(["false","0"]);function VO(t,n){const e=vm.has(t)||wm.has(t),i=vm.has(n)||wm.has(n);return(o,r)=>{let a=t==_m||t==o,s=n==_m||n==r;return!a&&e&&"boolean"==typeof o&&(a=o?vm.has(t):wm.has(t)),!s&&i&&"boolean"==typeof r&&(s=r?vm.has(n):wm.has(n)),a&&s}}const xX=new RegExp("s*:selfs*,?","g");function $0(t,n,e,i){return new SX(t).build(n,e,i)}class SX{constructor(n){this._driver=n}build(n,e,i){const o=new TX(e);return this._resetContextStyleTimingState(o),ar(this,Bh(n),o)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,o=e.depCount=0;const r=[],a=[];return"@"==n.name.charAt(0)&&e.errors.push(function OW(){return new S(3006,!1)}()),n.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==Xt.State){const l=s,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,r.push(this.visitState(l,e))}),l.name=c}else if(s.type==Xt.Transition){const l=this.visitTransition(s,e);i+=l.queryCount,o+=l.depCount,a.push(l)}else e.errors.push(function RW(){return new S(3007,!1)}())}),{type:Xt.Trigger,name:n.name,states:r,transitions:a,queryCount:i,depCount:o,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),o=n.options&&n.options.params||null;if(i.containsDynamicStyles){const r=new Set,a=o||{};i.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{zO(l).forEach(c=>{a.hasOwnProperty(c)||r.add(c)})})}),r.size&&e.errors.push(function PW(t,n){return new S(3008,!1)}(0,r.values()))}return{type:Xt.State,name:n.name,style:i,options:o?{params:o}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=ar(this,Bh(n.animation),e),o=function vX(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function wX(t,n,e){if(":"==t[0]){const l=function CX(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function $W(t){return new S(3015,!1)}()),n;const o=i[1],r=i[2],a=i[3];n.push(VO(o,a)),"<"==r[0]&&(o!=_m||a!=_m)&&n.push(VO(a,o))}(i,e,n)):e.push(t),e}(n.expr,e.errors);return{type:Xt.Transition,matchers:o,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Rl(n.options)}}visitSequence(n,e){return{type:Xt.Sequence,steps:n.steps.map(i=>ar(this,i,e)),options:Rl(n.options)}}visitGroup(n,e){const i=e.currentTime;let o=0;const r=n.steps.map(a=>{e.currentTime=i;const s=ar(this,a,e);return o=Math.max(o,e.currentTime),s});return e.currentTime=o,{type:Xt.Group,steps:r,options:Rl(n.options)}}visitAnimate(n,e){const i=function AX(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return V0(ym(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=V0(0,0,"");return r.dynamic=!0,r.strValue=e,r}const o=ym(e,n);return V0(o.duration,o.delay,o.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let o,r=n.styles?n.styles:oi({});if(r.type==Xt.Keyframes)o=this.visitKeyframes(r,e);else{let a=n.styles,s=!1;if(!a){s=!0;const c={};i.easing&&(c.easing=i.easing),a=oi(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(a,e);l.isEmptyStep=s,o=l}return e.currentAnimateTimings=null,{type:Xt.Animate,timings:i,style:o,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],o=Array.isArray(n.styles)?n.styles:[n.styles];for(let s of o)"string"==typeof s?s===Ga?i.push(s):e.errors.push(new S(3002,!1)):i.push(new Map(Object.entries(s)));let r=!1,a=null;return i.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!r))for(let l of s.values())if(l.toString().indexOf("{{")>=0){r=!0;break}}),{type:Xt.Style,styles:i,easing:a,offset:n.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let o=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),n.styles.forEach(a=>{"string"!=typeof a&&a.forEach((s,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(r!=o&&r>=u.startTime&&o<=u.endTime&&(e.errors.push(function FW(t,n,e,i,o){return new S(3010,!1)}()),d=!1),r=u.startTime),d&&c.set(l,{startTime:r,endTime:o}),e.options&&function gX(t,n,e){const i=n.params||{},o=zO(t);o.length&&o.forEach(r=>{i.hasOwnProperty(r)||e.push(function MW(t){return new S(3001,!1)}())})}(s,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:Xt.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function LW(){return new S(3011,!1)}()),i;let r=0;const a=[];let s=!1,l=!1,c=0;const u=n.steps.map(D=>{const H=this._makeStyleAst(D,e);let oe=null!=H.offset?H.offset:function MX(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(H.styles),le=0;return null!=oe&&(r++,le=H.offset=oe),l=l||le<0||le>1,s=s||le0&&r{const oe=h>0?H==p?1:h*H:a[H],le=oe*T;e.currentTime=g+b.delay+le,b.duration=le,this._validateStyleAst(D,e),D.offset=oe,i.styles.push(D)}),i}visitReference(n,e){return{type:Xt.Reference,animation:ar(this,Bh(n.animation),e),options:Rl(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:Xt.AnimateChild,options:Rl(n.options)}}visitAnimateRef(n,e){return{type:Xt.AnimateRef,animation:this.visitReference(n.animation,e),options:Rl(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,o=n.options||{};e.queryCount++,e.currentQuery=n;const[r,a]=function DX(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(xX,"")),t=t.replace(/@\*/g,bm).replace(/@\w+/g,e=>bm+"-"+e.slice(1)).replace(/:animating/g,j0),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+r:r,rr(e.collectedStyles,e.currentQuerySelector,new Map);const s=ar(this,Bh(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:Xt.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:s,originalSelector:n.selector,options:Rl(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function YW(){return new S(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:ym(n.timings,e.errors,!0);return{type:Xt.Stagger,animation:ar(this,Bh(n.animation),e),timings:i,options:null}}}class TX{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Rl(t){return t?(t={...t}).params&&(t.params=function EX(t){return t?{...t}:null}(t.params)):t={},t}function V0(t,n,e){return{duration:t,delay:n,easing:e}}function Z0(t,n,e,i,o,r,a=null,s=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:a,subTimeline:s}}class Cm{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const OX=new RegExp(":enter","g"),PX=new RegExp(":leave","g");function G0(t,n,e,i,o,r=new Map,a=new Map,s,l,c=[]){return(new NX).buildKeyframes(t,n,e,i,o,r,a,s,l,c)}class NX{buildKeyframes(n,e,i,o,r,a,s,l,c,u=[]){c=c||new Cm;const d=new U0(n,e,c,o,r,u,[]);d.options=l;const h=l.delay?Ja(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([a],null,d.errors,l),ar(this,i,d);const p=d.timelines.filter(g=>g.containsAnimation());if(p.length&&s.size){let g;for(let b=p.length-1;b>=0;b--){const T=p[b];if(T.element===e){g=T;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([s],null,d.errors,l)}return p.length?p.map(g=>g.buildKeyframes()):[Z0(e,[],[],[],0,h,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const o=e.createSubContext(n.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,o,o.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const o of n){const r=o?.delay;if(r){const a="number"==typeof r?r:Ja(Hh(r,o?.params??{},e.errors));i.delayNextStep(a)}}}_visitSubInstructions(n,e,i){let r=e.currentTimeline.currentTime;const a=null!=i.duration?Ja(i.duration):null,s=null!=i.delay?Ja(i.delay):null;return 0!==a&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,a,s);r=Math.max(r,c.duration+c.delay)}),r}visitReference(n,e){e.updateOptions(n.options,!0),ar(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let o=e;const r=n.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),null!=r.delay)){o.previousNode.type==Xt.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=xm);const a=Ja(r.delay);o.delayNextStep(a)}n.steps.length&&(n.steps.forEach(a=>ar(this,a,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let o=e.currentTimeline.currentTime;const r=n.options&&n.options.delay?Ja(n.options.delay):0;n.steps.forEach(a=>{const s=e.createSubContext(n.options);r&&s.delayNextStep(r),ar(this,a,s),o=Math.max(o,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(o),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return ym(e.params?Hh(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),o=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),o.snapshotCurrentStyles());const r=n.style;r.type==Xt.Keyframes?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,o=e.currentAnimateTimings;!o&&i.hasCurrentStyleProperties()&&i.forwardFrame();const r=o&&o.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(r):i.setStyles(n.styles,r,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,o=e.currentTimeline.duration,r=i.duration,s=e.createSubContext().currentTimeline;s.easing=i.easing,n.styles.forEach(l=>{s.forwardTime((l.offset||0)*r),s.setStyles(l.styles,l.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(o+r),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,o=n.options||{},r=o.delay?Ja(o.delay):0;r&&(e.previousNode.type===Xt.Style||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=xm);let a=i;const s=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;let l=null;s.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(n.options,c);r&&d.delayNextStep(r),c===e.element&&(l=d.currentTimeline),ar(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,o=e.currentTimeline,r=n.timings,a=Math.abs(r.duration),s=a*(e.currentQueryTotal-1);let l=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=s-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;ar(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=o.currentTime-d+(o.startTime-i.currentTimeline.startTime)}}const xm={};class U0{constructor(n,e,i,o,r,a,s,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=xm,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Sm(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let o=this.options;null!=i.duration&&(o.duration=Ja(i.duration)),null!=i.delay&&(o.delay=Ja(i.delay));const r=i.params;if(r){let a=o.params;a||(a=this.options.params={}),Object.keys(r).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=Hh(r[s],a,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(o=>{i[o]=e[o]})}}return n}createSubContext(n=null,e,i){const o=e||this.element,r=new U0(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=xm,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const o={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},r=new FX(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,o,n.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,o,r,a){let s=[];if(o&&s.push(this.element),n.length>0){n=(n=n.replace(OX,"."+this._enterClassName)).replace(PX,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),s.push(...c)}return!r&&0==s.length&&a.push(function zW(t){return new S(3014,!1)}()),s}}class Sm{constructor(n,e,i,o){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Sm(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Ga),this._currentKeyframe.set(e,Ga);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,o){e&&this._previousKeyframe.set("easing",e);const r=o&&o.params||{},a=function LX(t,n){const e=new Map;let i;return t.forEach(o=>{if("*"===o){i??=n.keys();for(let r of i)e.set(r,Ga)}else for(let[r,a]of o)e.set(r,a)}),e}(n,this._globalTimelineStyles);for(let[s,l]of a){const c=Hh(l,r,i);this._pendingStyles.set(s,c),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Ga),this._updateStyle(s,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const o=this._styleSummary.get(i);(!o||e.time>o.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((s,l)=>{const c=new Map([...this._backFill,...s]);c.forEach((u,d)=>{"!"===u?n.add(d):u===Ga&&e.add(d)}),i||c.set("offset",l/this.duration),o.push(c)});const r=[...n.values()],a=[...e.values()];if(i){const s=o[0],l=new Map(s);s.set("offset",0),l.set("offset",1),o=[s,l]}return Z0(this.element,o,r,a,this.duration,this.startTime,this.easing,!1)}}class FX extends Sm{constructor(n,e,i,o,r,a,s=!1){super(n,e,a.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],a=i+e,s=e/a,l=new Map(n[0]);l.set("offset",0),r.push(l);const c=new Map(n[0]);c.set("offset",UO(s)),r.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let h=new Map(n[d]);const p=h.get("offset");h.set("offset",UO((e+p*i)/a)),r.push(h)}i=a,e=0,o="",n=r}return Z0(this.element,n,this.preStyleProps,this.postStyleProps,i,e,o,!0)}}function UO(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}function WO(t,n,e,i,o,r,a,s,l,c,u,d,h){return{type:0,element:t,triggerName:n,isRemovalTransition:o,fromState:e,fromStyles:r,toState:i,toStyles:a,timelines:s,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const W0={};class XO{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,o){return function jX(t,n,e,i,o){return t.some(r=>r(n,e,i,o))}(this.ast.matchers,n,e,i,o)}buildStyles(n,e,i){let o=this._stateStyles.get("*");return void 0!==n&&(o=this._stateStyles.get(n?.toString())||o),o?o.buildStyles(e,i):new Map}build(n,e,i,o,r,a,s,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||W0,g=this.buildStyles(i,s&&s.params||W0,d),b=l&&l.params||W0,T=this.buildStyles(o,b,d),D=new Set,H=new Map,oe=new Map,le="void"===o,G={params:JO(b,h),delay:this.ast.options?.delay},pe=u?[]:G0(n,e,this.ast.animation,r,a,g,T,G,c,d);let _e=0;return pe.forEach(be=>{_e=Math.max(be.duration+be.delay,_e)}),d.length?WO(e,this._triggerName,i,o,le,g,T,[],[],H,oe,_e,d):(pe.forEach(be=>{const Be=be.element,Fe=rr(H,Be,new Set);be.preStyleProps.forEach(Re=>Fe.add(Re));const Qe=rr(oe,Be,new Set);be.postStyleProps.forEach(Re=>Qe.add(Re)),Be!==e&&D.add(Be)}),WO(e,this._triggerName,i,o,le,g,T,pe,[...D.values()],H,oe,_e))}}function JO(t,n){const e={...n};return Object.entries(t).forEach(([i,o])=>{null!=o&&(e[i]=o)}),e}class BX{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,o=JO(n,this.defaultParams);return this.styles.styles.forEach(r=>{"string"!=typeof r&&r.forEach((a,s)=>{a&&(a=Hh(a,o,e));const l=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,l,a,e),i.set(s,a)})}),i}}class YX{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new BX(o.style,o.options&&o.options.params||{},i))}),QO(this.states,"true","1"),QO(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new XO(n,o,this.states))}),this.fallbackTransition=function zX(t,n,e){return new XO(t,{type:Xt.Transition,animation:{type:Xt.Sequence,steps:[],options:null},matchers:[(a,s)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,o){return this.transitionFactories.find(a=>a.match(n,e,i,o))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function QO(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const $X=new Cm;class VX{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],r=$0(this._driver,e,i,[]);if(i.length)throw function XW(t){return new S(3503,!1)}();this._animations.set(n,r)}_buildPlayer(n,e,i){const o=n.element,r=PO(this._normalizer,n.keyframes,e,i);return this._driver.animate(o,r,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const o=[],r=this._animations.get(n);let a;const s=new Map;if(r?(a=G0(this._driver,e,r,L0,gm,new Map,new Map,i,$X,o),a.forEach(u=>{const d=rr(s,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(o.push(function JW(){return new S(3300,!1)}()),a=[]),o.length)throw function QW(t){return new S(3504,!1)}();s.forEach((u,d)=>{u.forEach((h,p)=>{u.set(p,this._driver.computeStyle(d,p,Ga))})});const c=Bs(a.map(u=>{const d=s.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function KW(t){return new S(3301,!1)}();return e}listen(n,e,i,o){const r=O0(e,"","","");return k0(this._getPlayer(n),i,r,o),()=>{}}command(n,e,i,o){if("register"==i)return void this.register(n,o[0]);if("create"==i)return void this.create(n,e,o[0]||{});const r=this._getPlayer(n);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(n)}}}const KO="ng-animate-queued",X0="ng-animate-disabled",XX=[],qO={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},JX={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Zr="__ng_removed";class J0{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function eJ(t){return t??null}(i?n.value:n),i){const{value:r,...a}=n;this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(o=>{null==i[o]&&(i[o]=e[o])})}}}const Yh="void",Q0=new J0(Yh);class QX{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,xr(e,this._hostClassName)}listen(n,e,i,o){if(!this._triggers.has(e))throw function qW(t,n){return new S(3302,!1)}();if(null==i||0==i.length)throw function eX(t){return new S(3303,!1)}();if(!function tJ(t){return"start"==t||"done"==t}(i))throw function tX(t,n){return new S(3400,!1)}();const r=rr(this._elementListeners,n,[]),a={name:e,phase:i,callback:o};r.push(a);const s=rr(this._engine.statesByElement,n,new Map);return s.has(e)||(xr(n,mm),xr(n,mm+"-"+e),s.set(e,Q0)),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(e)||s.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function nX(t){return new S(3401,!1)}();return e}trigger(n,e,i,o=!0){const r=this._getTrigger(e),a=new K0(this.id,e,n);let s=this._engine.statesByElement.get(n);s||(xr(n,mm),xr(n,mm+"-"+e),this._engine.statesByElement.set(n,s=new Map));let l=s.get(e);const c=new J0(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),s.set(e,c),l||(l=Q0),c.value!==Yh&&l.value===c.value){if(!function oJ(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let o=0;o{Ol(n,T),_a(n,D)})}return}const h=rr(this._engine.playersByElement,n,[]);h.forEach(b=>{b.namespaceId==this.id&&b.triggerName==e&&b.queued&&b.destroy()});let p=r.matchTransition(l.value,c.value,n,c.params),g=!1;if(!p){if(!o)return;p=r.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:p,fromState:l,toState:c,player:a,isFallbackTransition:g}),g||(xr(n,KO),a.onStart(()=>{cu(n,KO)})),a.onDone(()=>{let b=this.players.indexOf(a);b>=0&&this.players.splice(b,1);const T=this._engine.playersByElement.get(n);if(T){let D=T.indexOf(a);D>=0&&T.splice(D,1)}}),this.players.push(a),h.push(a),a}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(o=>o.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,bm,!0);i.forEach(o=>{if(o[Zr])return;const r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(a=>a.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(n,e,i,o){const r=this._engine.statesByElement.get(n),a=new Map;if(r){const s=[];if(r.forEach((l,c)=>{if(a.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,Yh,o);u&&s.push(u)}}),s.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,a),i&&Bs(s).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const o=new Set;e.forEach(r=>{const a=r.name;if(o.has(a))return;o.add(a);const l=this._triggers.get(a).fallbackTransition,c=i.get(a)||Q0,u=new J0(Yh),d=new K0(this.id,a,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:a,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let o=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(n):[];if(r&&r.length)o=!0;else{let a=n;for(;a=a.parentNode;)if(i.statesByElement.get(a)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(n),o)i.markElementAsRemoved(this.id,n,!1,e);else{const r=n[Zr];(!r||r===qO)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){xr(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const o=i.player;if(o.destroyed)return;const r=i.element,a=this._elementListeners.get(r);a&&a.forEach(s=>{if(s.name==i.triggerName){const l=O0(r,i.triggerName,i.fromState.value,i.toState.value);l._data=n,k0(i.player,s.phase,l,s.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(i)}),this._queue=[],e.sort((i,o)=>{const r=i.transition.ast.depCount,a=o.transition.ast.depCount;return 0==r||0==a?r-a:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class KX{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i,o){this.bodyNode=n,this.driver=e,this._normalizer=i,this.scheduler=o,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,a)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new QX(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,o=this.namespacesByHostElement;if(i.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){const l=o.get(s);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),a=!0;break}s=this.driver.getParentElement(s)}a||i.unshift(n)}else i.push(n);return o.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let o=this._namespaceLookup[n];o&&o.register(e,i)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);const o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1),i.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let o of i.values())if(o.namespaceId){const r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}return e}trigger(n,e,i,o){if(Dm(e)){const r=this._fetchNamespace(n);if(r)return r.trigger(e,i,o),!0}return!1}insertNode(n,e,i,o){if(!Dm(e))return;const r=e[Zr];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(n){const a=this._fetchNamespace(n);a&&a.insertNode(e,i)}o&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),xr(n,X0)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),cu(n,X0))}removeNode(n,e,i){if(Dm(e)){this.scheduler?.notify();const o=n?this._fetchNamespace(n):null;o?o.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);const r=this.namespacesByHostElement.get(e);r&&r.id!==n&&r.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(n,e,i,o,r){this.collectedLeaveElements.push(e),e[Zr]={namespaceId:n,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(n,e,i,o,r){return Dm(e)?this._fetchNamespace(n).listen(e,i,o,r):()=>{}}_buildInstruction(n,e,i,o,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,o,n.fromState.options,n.toState.options,e,r)}destroyInnerAnimations(n){let e=this.driver.query(n,bm,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,j0,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Bs(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[Zr];if(e&&e.setForRemoval){if(n[Zr]=qO,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(X0)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Bs(e).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(n){throw function iX(t){return new S(3402,!1)}()}_flushAnimations(n,e){const i=new Cm,o=[],r=new Map,a=[],s=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(Se=>{u.add(Se);const Ye=this.driver.query(Se,".ng-animate-queued",!0);for(let We=0;We{const We=L0+b++;g.set(Ye,We),Se.forEach(it=>xr(it,We))});const T=[],D=new Set,H=new Set;for(let Se=0;SeD.add(it)):H.add(Ye))}const oe=new Map,le=nR(h,Array.from(D));le.forEach((Se,Ye)=>{const We=gm+b++;oe.set(Ye,We),Se.forEach(it=>xr(it,We))}),n.push(()=>{p.forEach((Se,Ye)=>{const We=g.get(Ye);Se.forEach(it=>cu(it,We))}),le.forEach((Se,Ye)=>{const We=oe.get(Ye);Se.forEach(it=>cu(it,We))}),T.forEach(Se=>{this.processLeaveNode(Se)})});const G=[],pe=[];for(let Se=this._namespaceList.length-1;Se>=0;Se--)this._namespaceList[Se].drainQueuedTransitions(e).forEach(We=>{const it=We.player,St=We.element;if(G.push(it),this.collectedEnterElements.length){const Un=St[Zr];if(Un&&Un.setForMove){if(Un.previousTriggersValues&&Un.previousTriggersValues.has(We.triggerName)){const dt=Un.previousTriggersValues.get(We.triggerName),Cn=this.statesByElement.get(We.element);if(Cn&&Cn.has(We.triggerName)){const ro=Cn.get(We.triggerName);ro.value=dt,Cn.set(We.triggerName,ro)}}return void it.destroy()}}const At=!d||!this.driver.containsElement(d,St),on=oe.get(St),Rn=g.get(St),sn=this._buildInstruction(We,i,Rn,on,At);if(sn.errors&&sn.errors.length)return void pe.push(sn);if(At)return it.onStart(()=>Ol(St,sn.fromStyles)),it.onDestroy(()=>_a(St,sn.toStyles)),void o.push(it);if(We.isFallbackTransition)return it.onStart(()=>Ol(St,sn.fromStyles)),it.onDestroy(()=>_a(St,sn.toStyles)),void o.push(it);const ln=[];sn.timelines.forEach(Un=>{Un.stretchStartingKeyframe=!0,this.disabledNodes.has(Un.element)||ln.push(Un)}),sn.timelines=ln,i.append(St,sn.timelines),a.push({instruction:sn,player:it,element:St}),sn.queriedElements.forEach(Un=>rr(s,Un,[]).push(it)),sn.preStyleProps.forEach((Un,dt)=>{if(Un.size){let Cn=l.get(dt);Cn||l.set(dt,Cn=new Set),Un.forEach((ro,Ar)=>Cn.add(Ar))}}),sn.postStyleProps.forEach((Un,dt)=>{let Cn=c.get(dt);Cn||c.set(dt,Cn=new Set),Un.forEach((ro,Ar)=>Cn.add(Ar))})});if(pe.length){const Se=[];pe.forEach(Ye=>{Se.push(function oX(t,n){return new S(3505,!1)}())}),G.forEach(Ye=>Ye.destroy()),this.reportError(Se)}const _e=new Map,be=new Map;a.forEach(Se=>{const Ye=Se.element;i.has(Ye)&&(be.set(Ye,Ye),this._beforeAnimationBuild(Se.player.namespaceId,Se.instruction,_e))}),o.forEach(Se=>{const Ye=Se.element;this._getPreviousPlayers(Ye,!1,Se.namespaceId,Se.triggerName,null).forEach(it=>{rr(_e,Ye,[]).push(it),it.destroy()})});const Be=T.filter(Se=>oR(Se,l,c)),Fe=new Map;tR(Fe,this.driver,H,c,Ga).forEach(Se=>{oR(Se,l,c)&&Be.push(Se)});const Re=new Map;p.forEach((Se,Ye)=>{tR(Re,this.driver,new Set(Se),l,"!")}),Be.forEach(Se=>{const Ye=Fe.get(Se),We=Re.get(Se);Fe.set(Se,new Map([...Ye?.entries()??[],...We?.entries()??[]]))});const Xe=[],ct=[],ut={};a.forEach(Se=>{const{element:Ye,player:We,instruction:it}=Se;if(i.has(Ye)){if(u.has(Ye))return We.onDestroy(()=>_a(Ye,it.toStyles)),We.disabled=!0,We.overrideTotalTime(it.totalTime),void o.push(We);let St=ut;if(be.size>1){let on=Ye;const Rn=[];for(;on=on.parentNode;){const sn=be.get(on);if(sn){St=sn;break}Rn.push(on)}Rn.forEach(sn=>be.set(sn,St))}const At=this._buildAnimation(We.namespaceId,it,_e,r,Re,Fe);if(We.setRealPlayer(At),St===ut)Xe.push(We);else{const on=this.playersByElement.get(St);on&&on.length&&(We.parentPlayer=Bs(on)),o.push(We)}}else Ol(Ye,it.fromStyles),We.onDestroy(()=>_a(Ye,it.toStyles)),ct.push(We),u.has(Ye)&&o.push(We)}),ct.forEach(Se=>{const Ye=r.get(Se.element);if(Ye&&Ye.length){const We=Bs(Ye);Se.setRealPlayer(We)}}),o.forEach(Se=>{Se.parentPlayer?Se.syncPlayerEvents(Se.parentPlayer):Se.destroy()});for(let Se=0;Se!At.destroyed);St.length?nJ(this,Ye,St):this.processLeaveNode(Ye)}return T.length=0,Xe.forEach(Se=>{this.players.push(Se),Se.onDone(()=>{Se.destroy();const Ye=this.players.indexOf(Se);this.players.splice(Ye,1)}),Se.play()}),Xe}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,o,r){let a=[];if(e){const s=this.playersByQueriedElement.get(n);s&&(a=s)}else{const s=this.playersByElement.get(n);if(s){const l=!r||r==Yh;s.forEach(c=>{c.queued||!l&&c.triggerName!=o||a.push(c)})}}return(i||o)&&(a=a.filter(s=>!(i&&i!=s.namespaceId||o&&o!=s.triggerName))),a}_beforeAnimationBuild(n,e,i){const r=e.element,a=e.isRemovalTransition?void 0:n,s=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==r,d=rr(i,c,[]);this._getPreviousPlayers(c,u,a,s,e.toState).forEach(p=>{const g=p.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),p.destroy(),d.push(p)})}Ol(r,e.fromStyles)}_buildAnimation(n,e,i,o,r,a){const s=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(g=>{const b=g.element;u.add(b);const T=b[Zr];if(T&&T.removedBeforeQueried)return new xh(g.duration,g.delay);const D=b!==l,H=function iJ(t){const n=[];return iR(t,n),n}((i.get(b)||XX).map(_e=>_e.getRealPlayer())).filter(_e=>!!_e.element&&_e.element===b),oe=r.get(b),le=a.get(b),G=PO(this._normalizer,g.keyframes,oe,le),pe=this._buildPlayer(g,G,H);if(g.subTimeline&&o&&d.add(b),D){const _e=new K0(n,s,b);_e.setRealPlayer(pe),c.push(_e)}return pe});c.forEach(g=>{rr(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function qX(t,n,e){let i=t.get(n);if(i){if(i.length){const o=i.indexOf(e);i.splice(o,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,g.element,g))}),u.forEach(g=>xr(g,HO));const p=Bs(h);return p.onDestroy(()=>{u.forEach(g=>cu(g,HO)),_a(l,e.toStyles)}),d.forEach(g=>{rr(o,g,[]).push(p)}),p}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new xh(n.duration,n.delay)}}class K0{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new xh,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(o=>k0(n,i,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){rr(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Dm(t){return t&&1===t.nodeType}function eR(t,n){const e=t.style.display;return t.style.display=n??"none",e}function tR(t,n,e,i,o){const r=[];e.forEach(l=>r.push(eR(l)));const a=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=n.computeStyle(c,d,o);u.set(d,h),(!h||0==h.length)&&(c[Zr]=JX,a.push(c))}),t.set(c,u)});let s=0;return e.forEach(l=>eR(l,r[s++])),a}function nR(t,n){const e=new Map;if(t.forEach(s=>e.set(s,[])),0==n.length)return e;const o=new Set(n),r=new Map;function a(s){if(!s)return 1;let l=r.get(s);if(l)return l;const c=s.parentNode;return l=e.has(c)?c:o.has(c)?1:a(c),r.set(s,l),l}return n.forEach(s=>{const l=a(s);1!==l&&e.get(l).push(s)}),e}function xr(t,n){t.classList?.add(n)}function cu(t,n){t.classList?.remove(n)}function nJ(t,n,e){Bs(e).onDone(()=>t.processLeaveNode(n))}function iR(t,n){for(let e=0;eo.add(r)):n.set(t,i),e.delete(t),!0}class zh{constructor(n,e,i,o){this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,a)=>{},this._transitionEngine=new KX(n.body,e,i,o),this._timelineEngine=new VX(n.body,e,i),this._transitionEngine.onRemovalComplete=(r,a)=>this.onRemovalComplete(r,a)}registerTrigger(n,e,i,o,r){const a=n+"-"+o;let s=this._triggerCache[a];if(!s){const l=[],u=$0(this._driver,r,l,[]);if(l.length)throw function UW(t,n){return new S(3404,!1)}();s=function HX(t,n,e){return new YX(t,n,e)}(o,u,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,o,s)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,o){this._transitionEngine.insertNode(n,e,i,o)}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,o){if("@"==i.charAt(0)){const[r,a]=NO(i);this._timelineEngine.command(r,e,a,o)}else this._transitionEngine.trigger(n,e,i,o)}listen(n,e,i,o,r){if("@"==i.charAt(0)){const[a,s]=NO(i);return this._timelineEngine.listen(a,e,s,r)}return this._transitionEngine.listen(n,e,i,o,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}class $h{static{this.initialStylesByElement=new WeakMap}constructor(n,e,i){this._element=n,this._startStyles=e,this._endStyles=i,this._state=0;let o=$h.initialStylesByElement.get(n);o||$h.initialStylesByElement.set(n,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&_a(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(_a(this._element,this._initialStyles),this._endStyles&&(_a(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&($h.initialStylesByElement.delete(this._element),this._startStyles&&(Ol(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ol(this._element,this._endStyles),this._endStyles=null),_a(this._element,this._initialStyles),this._state=3)}}function q0(t){let n=null;return t.forEach((e,i)=>{(function aJ(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class rR{constructor(n,e,i,o){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,o)=>{"offset"!==o&&n.set(o,this._finished?i:z0(this.element,o))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class aR{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return LO(n,e)}getParentElement(n){return R0(n)}query(n,e,i){return jO(n,e,i)}computeStyle(n,e,i){return z0(n,e)}animate(n,e,i,o,r,a=[]){const l={duration:i,delay:o,fill:0==o?"both":"forwards"};r&&(l.easing=r);const c=new Map,u=a.filter(p=>p instanceof rR);(function bX(t,n){return 0===t||0===n})(i,o)&&u.forEach(p=>{p.currentSnapshot.forEach((g,b)=>c.set(b,g))});let d=function pX(t){return t.length?t[0]instanceof Map?t:t.map(n=>new Map(Object.entries(n))):[]}(e).map(p=>new Map(p));d=function yX(t,n,e){if(e.size&&n.length){let i=n[0],o=[];if(e.forEach((r,a)=>{i.has(a)||o.push(a),i.set(a,r)}),o.length)for(let r=1;ra.set(s,z0(t,s)))}}return n}(n,d,c);const h=function rJ(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=q0(n[0]),n.length>1&&(i=q0(n[n.length-1]))):n instanceof Map&&(e=q0(n)),e||i?new $h(t,e,i):null}(n,d);return new rR(n,d,l,h)}}const sR="@.disabled";class lR{constructor(n,e,i,o){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=o,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,o=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,o)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,o){this.delegate.setAttribute(n,e,i,o)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,o){this.delegate.setStyle(n,e,i,o)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==sR?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class sJ extends lR{constructor(n,e,i,o,r){super(e,i,o,r),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==sR?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const o=function lJ(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let r=e.slice(1),a="";return"@"!=r.charAt(0)&&([r,a]=function cJ(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(r)),this.engine.listen(this.namespaceId,o,r,a,s=>{this.factory.scheduleListenerCallback(s._data||-1,i,s)})}return this.delegate.listen(n,e,i)}}class uJ{constructor(n,e,i){this.delegate=n,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=(o,r)=>{const a=r?.parentNode(o);a&&r.removeChild(a,o)}}createRenderer(n,e){const o=this.delegate.createRenderer(n,e);if(!n||!e?.data?.animation){const c=this._rendererCache;let u=c.get(o);return u||(u=new lR("",o,this.engine,()=>c.delete(o)),c.set(o,u)),u}const r=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,n);const s=c=>{Array.isArray(c)?c.forEach(s):this.engine.registerTrigger(r,a,n,c.name,c)};return e.data.animation.forEach(s),new sJ(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,e,i){if(n>=0&&ne(i));const o=this._animationCallbacksBuffer;0==o.length&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(r=>{const[a,s]=r;a(s)}),this._animationCallbacksBuffer=[]})}),o.push([e,i])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}let dJ=(()=>{class t extends zh{constructor(e,i,o){super(e,i,o,Pe(Jp,{optional:!0}))}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(i){return new(i||t)(Me(qt),Me(N0),Me(F0))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const cR=[{provide:F0,useFactory:function hJ(){return new $O}},{provide:zh,useClass:dJ},{provide:sv,useFactory:function fJ(t,n,e){return new uJ(t,n,e)},deps:[Ww,zh,wt]}],eC=[{provide:N0,useFactory:()=>new aR},{provide:xo,useValue:"BrowserAnimations"},...cR],uR=[{provide:N0,useClass:P0},{provide:xo,useValue:"NoopAnimations"},...cR];let tC,pJ=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?uR:eC}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({providers:eC,imports:[Qw]})}}return t})();try{tC=typeof Intl<"u"&&Intl.v8BreakIterator}catch{tC=!1}let uu,Ai=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?cI(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!tC)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(i){return new(i||t)(Me(La))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const dR=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function hR(){if(uu)return uu;if("object"!=typeof document||!document)return uu=new Set(dR),uu;let t=document.createElement("input");return uu=new Set(dR.filter(n=>(t.setAttribute("type",n),t.type===n))),uu}let Vh,Pl,nC;function du(t){return function gJ(){if(null==Vh&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Vh=!0}))}finally{Vh=Vh||!1}return Vh}()?t:!!t.capture}function mJ(){if(null==Pl){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Pl=!1,Pl;if("scrollBehavior"in document.documentElement.style)Pl=!0;else{const t=Element.prototype.scrollTo;Pl=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Pl}function Mm(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function Hs(t){return t.composedPath?t.composedPath()[0]:t.target}function iC(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Qa(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function $i(t,n,e){const i=Ae(t)||n||e?{next:t,error:n,complete:e}:t;return i?$n((o,r)=>{var a;null===(a=i.subscribe)||void 0===a||a.call(i);let s=!0;o.subscribe(Pn(r,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),r.next(l)},()=>{var l;s=!1,null===(l=i.complete)||void 0===l||l.call(i),r.complete()},l=>{var c;s=!1,null===(c=i.error)||void 0===c||c.call(i,l),r.error(l)},()=>{var l,c;s&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):gr}class OJ extends ge{constructor(n,e){super()}schedule(n,e=0){return this}}const Pm={setInterval(t,n,...e){const{delegate:i}=Pm;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=Pm;return(n?.clearInterval||clearInterval)(t)},delegate:void 0};class oC extends OJ{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;const o=this.id,r=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(r,o,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return Pm.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&Pm.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let o,i=!1;try{this.work(n)}catch(r){i=!0,o=r||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,ne(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}const rC={now:()=>(rC.delegate||Date).now(),delegate:void 0};class Wh{constructor(n,e=Wh.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}Wh.now=rC.now;class aC extends Wh{constructor(n,e=Wh.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const Nm=new aC(oC),RJ=Nm;function pR(t,n=Nm){return $n((e,i)=>{let o=null,r=null,a=null;const s=()=>{if(o){o.unsubscribe(),o=null;const c=r;r=null,i.next(c)}};function l(){const c=a+t,u=n.now();if(u{r=c,a=n.now(),o||(o=n.schedule(l,t),i.add(o))},()=>{s(),i.complete()},void 0,()=>{r=o=null}))})}const Sr=new On(t=>t.complete());function _i(t){return t<=0?()=>Sr:$n((n,e)=>{let i=0;n.subscribe(Pn(e,o=>{++i<=t&&(e.next(o),t<=i&&e.complete())}))})}function gR(t){return ui((n,e)=>t<=e)}function sC(t,n=gr){return t=t??NJ,$n((e,i)=>{let o,r=!0;e.subscribe(Pn(i,a=>{const s=n(a);(r||!t(o,s))&&(r=!1,o=s,i.next(a))}))})}function NJ(t,n){return t===n}function yn(t){return $n((n,e)=>{io(t).subscribe(Pn(e,()=>e.complete(),kt)),!e.closed&&n.subscribe(e)})}let FJ=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),mR=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({providers:[FJ]})}}return t})();function Fm(t){return null!=t&&"false"!=`${t}`}function bR(t,n=0){return function LJ(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):n}function Lm(t){return Array.isArray(t)?t:[t]}function Fi(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Ys(t){return t instanceof Zt?t.nativeElement:t}function jm(...t){const n=Sh(t),e=YI(t),{args:i,keys:o}=M2(t);if(0===i.length)return bi([],n);const r=new On(function jJ(t,n,e=gr){return i=>{yR(n,()=>{const{length:o}=t,r=new Array(o);let a=o,s=o;for(let l=0;l{const c=bi(t[l],n);let u=!1;c.subscribe(Pn(i,d=>{r[l]=d,u||(u=!0,s--),s||i.next(e(r.slice()))},()=>{--a||i.complete()}))},i)},i)}}(i,n,o?a=>A2(o,a):gr));return e?r.pipe(d0(e)):r}function yR(t,n,e){t?Wa(e,t,n):n()}function hu(t=1/0){return Wi(gr,t)}function Xh(...t){return function BJ(){return hu(1)}()(bi(t,Sh(t)))}function sr(...t){const n=Sh(t);return $n((e,i)=>{(n?Xh(t,e,n):Xh(t,e)).subscribe(i)})}const _R=new Set;let Nl,HJ=(()=>{class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):zJ}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function YJ(t,n){if(!_R.has(t))try{Nl||(Nl=document.createElement("style"),n&&(Nl.nonce=n),Nl.setAttribute("type","text/css"),document.head.appendChild(Nl)),Nl.sheet&&(Nl.sheet.insertRule(`@media ${t} {body{ }}`,0),_R.add(t))}catch(e){console.error(e)}}(e,this._nonce),this._matchMedia(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(Ai),Me(h_,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function zJ(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let $J=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new vt}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return vR(Lm(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let r=jm(vR(Lm(e)).map(a=>this._registerQuery(a).observable));return r=Xh(r.pipe(_i(1)),r.pipe(gR(1),pR(0))),r.pipe(Bt(a=>{const s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:c})=>{s.matches=s.matches||l,s.breakpoints[c]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),r={observable:new On(a=>{const s=l=>this._zone.run(()=>a.next(l));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(sr(i),Bt(({matches:a})=>({query:e,matches:a})),yn(this._destroySubject)),mql:i};return this._queries.set(e,r),r}static{this.\u0275fac=function(i){return new(i||t)(Me(HJ),Me(wt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function vR(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}function CR(t,n,e){const i=xR(t,n);e=e.trim();const o=i.filter(r=>r!==e);o.length?t.setAttribute(n,o.join(" ")):t.removeAttribute(n)}function xR(t,n){return t.getAttribute(n)?.match(/\S+/g)??[]}class SR{constructor(n){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new vt,this._typeaheadSubscription=ge.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new vt,this.change=new vt,n instanceof Fa&&(this._itemChangesSubscription=n.changes.subscribe(e=>{if(this._activeItem){const o=e.toArray().indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}}))}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe($i(e=>this._pressedLetters.push(e)),pR(n),ui(()=>this._pressedLetters.length>0),Bt(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let o=1;o!n[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&o){this.setNextItemActive();break}return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&o){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&o){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&o){const r=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&o){const r=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],n.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){const e=this._getItemsArray(),i="number"==typeof n?n:e.indexOf(n);this._activeItem=e[i]??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const o=(this._activeItemIndex+n*i+e.length)%e.length;if(!this._skipPredicateFn(e[o]))return void this.setActiveItem(o)}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){const i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(!i[n+=e])return;this.setActiveItem(n)}}_getItemsArray(){return this._items instanceof Fa?this._items.toArray():this._items}}class UJ extends SR{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}}class DR extends SR{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}let lC=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function XJ(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function WJ(t){try{return t.frameElement}catch{return null}}(function iQ(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(i&&(-1===TR(i)||!this.isVisible(i)))return!1;let o=e.nodeName.toLowerCase(),r=TR(e);return e.hasAttribute("contenteditable")?-1!==r:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function tQ(t){let n=t.nodeName.toLowerCase(),e="input"===n&&t.type;return"text"===e||"password"===e||"select"===n||"textarea"===n}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==r:"video"===o?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function nQ(t){return!function QJ(t){return function qJ(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function JJ(t){let n=t.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(t)||function KJ(t){return function eQ(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||ER(t))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static{this.\u0275fac=function(i){return new(i||t)(Me(Ai))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function ER(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let n=t.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function TR(t){if(!ER(t))return null;const n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class oQ{get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}constructor(n,e,i,o,r=!1){this._element=n,this._checker=e,this._ngZone=i,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}destroy(){const n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){const e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return"start"==n?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){const e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){const e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const e=n.children;for(let i=0;i=0;i--){const o=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(o)return o}return null}_createAnchor(){const n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._ngZone.isStable?n():this._ngZone.onStable.pipe(_i(1)).subscribe(n)}}let MR=(()=>{class t{constructor(e,i,o){this._checker=e,this._ngZone=i,this._document=o}create(e,i=!1){return new oQ(e,this._checker,this._ngZone,this._document,i)}static{this.\u0275fac=function(i){return new(i||t)(Me(lC),Me(wt),Me(qt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function cC(t){return 0===t.buttons||0===t.detail}function uC(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const rQ=new He("cdk-input-modality-detector-options"),aQ={ignoreKeys:[18,17,224,91,16]},fu=du({passive:!0,capture:!0});let sQ=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,i,o,r){this._platform=e,this._mostRecentTarget=null,this._modality=new hi(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(s=>s===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Hs(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(cC(a)?"keyboard":"mouse"),this._mostRecentTarget=Hs(a))},this._onTouchstart=a=>{uC(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Hs(a))},this._options={...aQ,...r},this.modalityDetected=this._modality.pipe(gR(1)),this.modalityChanged=this.modalityDetected.pipe(sC()),e.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,fu),o.addEventListener("mousedown",this._onMousedown,fu),o.addEventListener("touchstart",this._onTouchstart,fu)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,fu),document.removeEventListener("mousedown",this._onMousedown,fu),document.removeEventListener("touchstart",this._onTouchstart,fu))}static{this.\u0275fac=function(i){return new(i||t)(Me(Ai),Me(wt),Me(qt),Me(rQ,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const lQ=new He("liveAnnouncerElement",{providedIn:"root",factory:function cQ(){return null}}),uQ=new He("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let dQ=0,hQ=(()=>{class t{constructor(e,i,o,r){this._ngZone=i,this._defaultOptions=r,this._document=o,this._liveElement=e||this._createLiveElement()}announce(e,...i){const o=this._defaultOptions;let r,a;return 1===i.length&&"number"==typeof i[0]?a=i[0]:[r,a]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),null==a&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{class t{constructor(e,i,o,r,a){this._ngZone=e,this._platform=i,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new vt,this._rootNodeFocusAndBlurListener=s=>{for(let c=Hs(s);c;c=c.parentElement)"focus"===s.type?this._onFocus(s,c):this._onBlur(s,c)},this._document=r,this._detectionMode=a?.detectionMode||Bm.IMMEDIATE}monitor(e,i=!1){const o=Ys(e);if(!this._platform.isBrowser||1!==o.nodeType)return Et();const r=function yJ(t){if(function bJ(){if(null==nC){const t=typeof document<"u"?document.head:null;nC=!(!t||!t.createShadowRoot&&!t.attachShadow)}return nC}()){const n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return i&&(a.checkChildren=!0),a.subject;const s={checkChildren:i,subject:new vt,rootNode:r};return this._elementInfo.set(o,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const i=Ys(e),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(e,i,o){const r=Ys(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([s,l])=>this._originChanged(s,i,l)):(this._setOrigin(i),"function"==typeof r.focus&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Bm.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,this._detectionMode===Bm.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const o=this._elementInfo.get(i),r=Hs(e);!o||!o.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),o)}_onBlur(e,i){const o=this._elementInfo.get(i);!o||o.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(o,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Hm),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Hm)}),this._rootNodeFocusListenerCount.set(i,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(yn(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Hm),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Hm),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,o){this._setClasses(e,i),this._emitOrigin(o,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&i.push([r,o])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const r=e.labels;if(r)for(let a=0;a{class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=Pe($J).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Fl.NONE;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,o=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Fl.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Fl.BLACK_ON_WHITE}return Fl.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(dC,kR,IR),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();i===Fl.BLACK_ON_WHITE?e.add(dC,kR):i===Fl.WHITE_ON_BLACK&&e.add(dC,IR)}}static{this.\u0275fac=function(i){return new(i||t)(Me(Ai),Me(qt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),pQ=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}static{this.\u0275fac=function(i){return new(i||t)(Me(OR))}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[mR]})}}return t})();const gQ=new He("cdk-dir-doc",{providedIn:"root",factory:function mQ(){return Pe(qt)}}),bQ=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let qa=(()=>{class t{constructor(e){this.value="ltr",this.change=new Ot,e&&(this.value=function yQ(t){const n=t?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?bQ.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(i){return new(i||t)(Me(gQ,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),pu=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({})}}return t})();const _Q=["text"],vQ=[[["mat-icon"]],"*"],wQ=["mat-icon","*"];function CQ(t,n){if(1&t&&at(0,"mat-pseudo-checkbox",1),2&t){const e=rt();Je("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function xQ(t,n){1&t&&at(0,"mat-pseudo-checkbox",3),2&t&&Je("disabled",rt().disabled)}function SQ(t,n){if(1&t&&(ye(0,"span",4),bn(1),ve()),2&t){const e=rt();Ne(),yr("(",e.group.label,")")}}const DQ=["mat-internal-form-field",""],EQ=["*"],MQ=new He("mat-sanity-checks",{providedIn:"root",factory:function TQ(){return!0}});let Ln=(()=>{class t{constructor(e,i,o){this._sanityChecks=i,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!iC()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}static{this.\u0275fac=function(i){return new(i||t)(Me(OR),Me(MQ,8),Me(qt))}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[pu,pu]})}}return t})();class hC{constructor(n,e,i,o,r){this._defaultMatcher=n,this.ngControl=e,this._parentFormGroup=i,this._parentForm=o,this._stateChanges=r,this.errorState=!1}updateErrorState(){const n=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,o=this.ngControl?this.ngControl.control:null,r=i?.isErrorState(o,e)??!1;r!==n&&(this.errorState=r,this._stateChanges.next())}}let Jh=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Dr=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(Dr||{});class PQ{constructor(n,e,i,o=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=o,this.state=Dr.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const NR=du({passive:!0,capture:!0});class NQ{constructor(){this._events=new Map,this._delegateEventHandler=n=>{const e=Hs(n);e&&this._events.get(n.type)?.forEach((i,o)=>{(o===e||o.contains(e))&&i.forEach(r=>r.handleEvent(n))})}}addHandler(n,e,i,o){const r=this._events.get(e);if(r){const a=r.get(i);a?a.add(o):r.set(i,new Set([o]))}else this._events.set(e,new Map([[i,new Set([o])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,NR)})}removeHandler(n,e,i){const o=this._events.get(n);if(!o)return;const r=o.get(e);r&&(r.delete(i),0===r.size&&o.delete(e),0===o.size&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,NR)))}}const FR={enterDuration:225,exitDuration:150},LR=du({passive:!0,capture:!0}),jR=["mousedown","touchstart"],BR=["mouseup","mouseleave","touchend","touchcancel"];class Ym{static{this._eventManager=new NQ}constructor(n,e,i,o){this._target=n,this._ngZone=e,this._platform=o,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=Ys(i))}fadeInRipple(n,e,i={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r={...FR,...i.animation};i.centered&&(n=o.left+o.width/2,e=o.top+o.height/2);const a=i.radius||function LQ(t,n,e){const i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+o*o)}(n,e,o),s=n-o.left,l=e-o.top,c=r.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=s-a+"px",u.style.top=l-a+"px",u.style.height=2*a+"px",u.style.width=2*a+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);const d=window.getComputedStyle(u),p=d.transitionDuration,g="none"===d.transitionProperty||"0s"===p||"0s, 0s"===p||0===o.width&&0===o.height,b=new PQ(this,u,i,g);u.style.transform="scale3d(1, 1, 1)",b.state=Dr.FADING_IN,i.persistent||(this._mostRecentTransientRipple=b);let T=null;return!g&&(c||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const D=()=>this._finishRippleTransition(b),H=()=>this._destroyRipple(b);u.addEventListener("transitionend",D),u.addEventListener("transitioncancel",H),T={onTransitionEnd:D,onTransitionCancel:H}}),this._activeRipples.set(b,T),(g||!c)&&this._finishRippleTransition(b),b}fadeOutRipple(n){if(n.state===Dr.FADING_OUT||n.state===Dr.HIDDEN)return;const e=n.element,i={...FR,...n.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=Dr.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const e=Ys(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,jR.forEach(i=>{Ym._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{BR.forEach(e=>{this._triggerElement.addEventListener(e,this,LR)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===Dr.FADING_IN?this._startFadeOutTransition(n):n.state===Dr.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){const e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=Dr.VISIBLE,!i&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){const e=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=Dr.HIDDEN,null!==e&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel)),n.element.remove()}_onMousedown(n){const e=cC(n),i=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(n.state===Dr.VISIBLE||n.config.terminateOnPointerUp&&n.state===Dr.FADING_IN)&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const n=this._triggerElement;n&&(jR.forEach(e=>Ym._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&BR.forEach(e=>n.removeEventListener(e,this,LR)))}}const HR=new He("mat-ripple-global-options");let Ll=(()=>{class t{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,o,r,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new Ym(this,i,e,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...o}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}static{this.\u0275fac=function(i){return new(i||t)(K(Zt),K(wt),K(Ai),K(HR,8),K(xo,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,o){2&i&&un("mat-ripple-unbounded",o.unbounded)},inputs:{color:[Le.None,"matRippleColor","color"],unbounded:[Le.None,"matRippleUnbounded","unbounded"],centered:[Le.None,"matRippleCentered","centered"],radius:[Le.None,"matRippleRadius","radius"],animation:[Le.None,"matRippleAnimation","animation"],disabled:[Le.None,"matRippleDisabled","disabled"],trigger:[Le.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}}return t})(),gu=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[Ln,Ln]})}}return t})(),YR=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}static{this.\u0275fac=function(i){return new(i||t)(K(xo,8))}}static{this.\u0275cmp=pn({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,o){2&i&&un("mat-pseudo-checkbox-indeterminate","indeterminate"===o.state)("mat-pseudo-checkbox-checked","checked"===o.state)("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal","minimal"===o.appearance)("mat-pseudo-checkbox-full","full"===o.appearance)("_mat-animation-noopable","NoopAnimations"===o._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[Zn],decls:0,vars:0,template:function(i,o){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}}return t})(),jQ=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[Ln]})}}return t})();const zR=new He("MAT_OPTION_PARENT_COMPONENT"),$R=new He("MatOptgroup");let BQ=0;class HQ{constructor(n,e=!1){this.source=n,this.isUserInput=e}}let fC=(()=>{class t{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=e}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(e,i,o,r){this._element=e,this._changeDetectorRef=i,this._parent=o,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+BQ++,this.onSelectionChange=new Ot,this._stateChanges=new vt}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,i){const o=this._getHostElement();"function"==typeof o.focus&&o.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!Qa(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new HQ(this,e))}static{this.\u0275fac=function(i){return new(i||t)(K(Zt),K(mi),K(zR,8),K($R,8))}}static{this.\u0275cmp=pn({type:t,selectors:[["mat-option"]],viewQuery:function(i,o){if(1&i&&Vn(_Q,7),2&i){let r;Ft(r=Lt())&&(o._text=r.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,o){1&i&&_t("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),2&i&&(Ts("id",o.id),Kt("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),un("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[Le.HasDecoratorInputTransform,"disabled","disabled",Nt]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[qi,Zn],ngContentSelectors:wQ,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(i,o){1&i&&(Oi(vQ),Mt(0,CQ,1,2,"mat-pseudo-checkbox",1),mn(1),ye(2,"span",2,0),mn(4,1),ve(),Mt(5,xQ,1,1,"mat-pseudo-checkbox",3)(6,SQ,2,1,"span",4),at(7,"div",5)),2&i&&(En(0,o.multiple?0:-1),Ne(5),En(5,o.multiple||!o.selected||o.hideSingleSelectionIndicator?-1:5),Ne(),En(6,o.group&&o.group._inert?6:-1),Ne(),Je("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[YR,Ll],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return t})(),VR=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[gu,Ln,jQ]})}}return t})();const ZR={capture:!0},GR=["focus","click","mouseenter","touchstart"],pC="mat-ripple-loader-uninitialized",gC="mat-ripple-loader-class-name",UR="mat-ripple-loader-centered",zm="mat-ripple-loader-disabled";let $Q=(()=>{class t{constructor(){this._document=Pe(qt,{optional:!0}),this._animationMode=Pe(xo,{optional:!0}),this._globalRippleOptions=Pe(HR,{optional:!0}),this._platform=Pe(Ai),this._ngZone=Pe(wt),this._hosts=new Map,this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;const o=e.target.closest(`[${pC}]`);o&&this._createRipple(o)},this._ngZone.runOutsideAngular(()=>{for(const e of GR)this._document?.addEventListener(e,this._onInteraction,ZR)})}ngOnDestroy(){const e=this._hosts.keys();for(const i of e)this.destroyRipple(i);for(const i of GR)this._document?.removeEventListener(i,this._onInteraction,ZR)}configureRipple(e,i){e.setAttribute(pC,""),(i.className||!e.hasAttribute(gC))&&e.setAttribute(gC,i.className||""),i.centered&&e.setAttribute(UR,""),i.disabled&&e.setAttribute(zm,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,i){const o=this._hosts.get(e);o?o.disabled=i:i?e.setAttribute(zm,""):e.removeAttribute(zm)}_createRipple(e){if(!this._document)return;const i=this._hosts.get(e);if(i)return i;e.querySelector(".mat-ripple")?.remove();const o=this._document.createElement("span");o.classList.add("mat-ripple",e.getAttribute(gC)),e.append(o);const r=new Ll(new Zt(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return r._isInitialized=!0,r.trigger=e,r.centered=e.hasAttribute(UR),r.disabled=e.hasAttribute(zm),this.attachRipple(e,r),r}attachRipple(e,i){e.removeAttribute(pC),this._hosts.set(e,i)}destroyRipple(e){const i=this._hosts.get(e);i&&(i.ngOnDestroy(),this._hosts.delete(e))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),WR=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=pn({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,o){2&i&&un("mdc-form-field--align-end","before"===o.labelPosition)},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[Zn],attrs:DQ,ngContentSelectors:EQ,decls:1,vars:0,template:function(i,o){1&i&&(Oi(),mn(0))},styles:[".mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-form-field{font-family:var(--mdc-form-field-label-text-font);line-height:var(--mdc-form-field-label-text-line-height);font-size:var(--mdc-form-field-label-text-size);font-weight:var(--mdc-form-field-label-text-weight);letter-spacing:var(--mdc-form-field-label-text-tracking);color:var(--mdc-form-field-label-text-color)}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0})}}return t})();const VQ=["*",[["mat-toolbar-row"]]],ZQ=["*","mat-toolbar-row"];let GQ=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=gt({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0})}}return t})(),XR=(()=>{class t{constructor(e,i,o){this._elementRef=e,this._platform=i,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static{this.\u0275fac=function(i){return new(i||t)(K(Zt),K(Ai),K(qt))}}static{this.\u0275cmp=pn({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,o,r){if(1&i&&ii(r,GQ,5),2&i){let a;Ft(a=Lt())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,o){2&i&&(eo(o.color?"mat-"+o.color:""),un("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",0===o._toolbarRows.length))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[Zn],ngContentSelectors:ZQ,decls:2,vars:0,template:function(i,o){1&i&&(Oi(VQ),mn(0),mn(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0})}}return t})(),UQ=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[Ln,Ln]})}}return t})();const $m=ke(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Kh(t){return new On(n=>{io(t()).subscribe(n)})}function mu(t,n){const e=Ae(t)?t:()=>t,i=o=>o.error(e());return new On(n?o=>n.schedule(i,0,o):i)}function mC(){return $n((t,n)=>{let e=null;t._refCount++;const i=Pn(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class JR extends On{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Qu(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new ge;const e=this.getSubject();n.add(this.source.subscribe(Pn(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=ge.EMPTY)}return n}refCount(){return mC()(this)}}function Vm(t){return $n((n,e)=>{let i=!1;n.subscribe(Pn(e,o=>{i=!0,e.next(o)},()=>{i||e.next(t),e.complete()}))})}function QR(t=XQ){return $n((n,e)=>{let i=!1;n.subscribe(Pn(e,o=>{i=!0,e.next(o)},()=>i?e.complete():e.error(t())))})}function XQ(){return new $m}function jl(t,n){const e=arguments.length>=2;return i=>i.pipe(t?ui((o,r)=>t(o,r,i)):gr,_i(1),e?Vm(n):QR(()=>new $m))}function es(t){return $n((n,e)=>{let r,i=null,o=!1;i=n.subscribe(Pn(e,void 0,void 0,a=>{r=io(t(a,es(t)(n))),i?(i.unsubscribe(),i=null,r.subscribe(e)):o=!0})),o&&(i.unsubscribe(),i=null,r.subscribe(e))})}function bC(t){return t<=0?()=>Sr:$n((n,e)=>{let i=[];n.subscribe(Pn(e,o=>{i.push(o),t{for(const o of i)e.next(o);e.complete()},void 0,()=>{i=null}))})}function KR(t){return Bt(()=>t)}const cn="primary",qh=Symbol("RouteTitle");class qQ{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function bu(t){return new qQ(t)}function eK(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[r]===o)}return t===n}function eP(t){return t.length>0?t[t.length-1]:null}function zs(t){return function WQ(t){return!!t&&(t instanceof On||Ae(t.lift)&&Ae(t.subscribe))}(t)?t:fh(t)?bi(Promise.resolve(t)):Et(t)}const nK={exact:function iP(t,n,e){if(!Bl(t.segments,n.segments)||!Zm(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!iP(t.children[i],n.children[i],e))return!1;return!0},subset:oP},tP={exact:function iK(t,n){return va(t,n)},subset:function oK(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>qR(t[e],n[e]))},ignored:()=>!0};function nP(t,n,e){return nK[e.paths](t.root,n.root,e.matrixParams)&&tP[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function oP(t,n,e){return rP(t,n,n.segments,e)}function rP(t,n,e,i){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!Bl(o,e)||n.hasChildren()||!Zm(o,e,i))}if(t.segments.length===e.length){if(!Bl(t.segments,e)||!Zm(t.segments,e,i))return!1;for(const o in n.children)if(!t.children[o]||!oP(t.children[o],n.children[o],i))return!1;return!0}{const o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!!(Bl(t.segments,o)&&Zm(t.segments,o,i)&&t.children[cn])&&rP(t.children[cn],n,r,i)}}function Zm(t,n,e){return n.every((i,o)=>tP[e](t[o].parameters,i.parameters))}class yu{constructor(n=new Hn([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=bu(this.queryParams),this._queryParamMap}toString(){return sK.serialize(this)}}class Hn{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Gm(this)}}class ef{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=bu(this.parameters),this._parameterMap}toString(){return lP(this)}}function Bl(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let _u=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>new _C,providedIn:"root"})}}return t})();class _C{parse(n){const e=new yK(n);return new yu(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${tf(n.root,!0)}`,i=function uK(t){const n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(o=>`${Um(e)}=${Um(o)}`).join("&"):`${Um(e)}=${Um(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function lK(t){return encodeURI(t)}(n.fragment)}`:""}`}}const sK=new _C;function Gm(t){return t.segments.map(n=>lP(n)).join("/")}function tf(t,n){if(!t.hasChildren())return Gm(t);if(n){const e=t.children[cn]?tf(t.children[cn],!1):"",i=[];return Object.entries(t.children).forEach(([o,r])=>{o!==cn&&i.push(`${o}:${tf(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function aK(t,n){let e=[];return Object.entries(t.children).forEach(([i,o])=>{i===cn&&(e=e.concat(n(o,i)))}),Object.entries(t.children).forEach(([i,o])=>{i!==cn&&(e=e.concat(n(o,i)))}),e}(t,(i,o)=>o===cn?[tf(t.children[cn],!1)]:[`${o}:${tf(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[cn]?`${Gm(t)}/${e[0]}`:`${Gm(t)}/(${e.join("//")})`}}function aP(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Um(t){return aP(t).replace(/%3B/gi,";")}function vC(t){return aP(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Wm(t){return decodeURIComponent(t)}function sP(t){return Wm(t.replace(/\+/g,"%20"))}function lP(t){return`${vC(t.path)}${function cK(t){return Object.entries(t).map(([n,e])=>`;${vC(n)}=${vC(e)}`).join("")}(t.parameters)}`}const dK=/^[^\/()?;#]+/;function wC(t){const n=t.match(dK);return n?n[0]:""}const hK=/^[^\/()?;=#]+/,pK=/^[^=?&#]+/,mK=/^[^&#]+/;class yK{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Hn([],{}):new Hn([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[cn]=new Hn(n,e)),i}parseSegment(){const n=wC(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(n),new ef(Wm(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=function fK(t){const n=t.match(hK);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=wC(this.remaining);o&&(i=o,this.capture(i))}n[Wm(e)]=Wm(i)}parseQueryParam(n){const e=function gK(t){const n=t.match(pK);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const a=function bK(t){const n=t.match(mK);return n?n[0]:""}(this.remaining);a&&(i=a,this.capture(i))}const o=sP(e),r=sP(i);if(n.hasOwnProperty(o)){let a=n[o];Array.isArray(a)||(a=[a],n[o]=a),a.push(r)}else n[o]=r}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=wC(this.remaining),o=this.remaining[i.length];if("/"!==o&&")"!==o&&";"!==o)throw new S(4010,!1);let r;i.indexOf(":")>-1?(r=i.slice(0,i.indexOf(":")),this.capture(r),this.capture(":")):n&&(r=cn);const a=this.parseChildren();e[r]=1===Object.keys(a).length?a[cn]:new Hn([],a),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new S(4011,!1)}}function cP(t){return t.segments.length>0?new Hn([],{[cn]:t}):t}function uP(t){const n={};for(const[i,o]of Object.entries(t.children)){const r=uP(o);if(i===cn&&0===r.segments.length&&r.hasChildren())for(const[a,s]of Object.entries(r.children))n[a]=s;else(r.segments.length>0||r.hasChildren())&&(n[i]=r)}return function _K(t){if(1===t.numberOfChildren&&t.children[cn]){const n=t.children[cn];return new Hn(t.segments.concat(n.segments),n.children)}return t}(new Hn(t.segments,n))}function vu(t){return t instanceof yu}function dP(t){let n;const o=cP(function e(r){const a={};for(const l of r.children){const c=e(l);a[l.outlet]=c}const s=new Hn(r.url,a);return r===t&&(n=s),s}(t.root));return n??o}function hP(t,n,e,i){let o=t;for(;o.parent;)o=o.parent;if(0===n.length)return CC(o,o,o,e,i);const r=function wK(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new pP(!0,0,t);let n=0,e=!1;const i=t.reduce((o,r,a)=>{if("object"==typeof r&&null!=r){if(r.outlets){const s={};return Object.entries(r.outlets).forEach(([l,c])=>{s[l]="string"==typeof c?c.split("/"):c}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return"string"!=typeof r?[...o,r]:0===a?(r.split("/").forEach((s,l)=>{0==l&&"."===s||(0==l&&""===s?e=!0:".."===s?n++:""!=s&&o.push(s))}),o):[...o,r]},[]);return new pP(e,n,i)}(n);if(r.toRoot())return CC(o,o,new Hn([],{}),e,i);const a=function CK(t,n,e){if(t.isAbsolute)return new Jm(n,!0,0);if(!e)return new Jm(n,!1,NaN);if(null===e.parent)return new Jm(e,!0,0);const i=Xm(t.commands[0])?0:1;return function xK(t,n,e){let i=t,o=n,r=e;for(;r>o;){if(r-=o,i=i.parent,!i)throw new S(4005,!1);o=i.segments.length}return new Jm(i,!1,o-r)}(e,e.segments.length-1+i,t.numberOfDoubleDots)}(r,o,t),s=a.processChildren?rf(a.segmentGroup,a.index,r.commands):gP(a.segmentGroup,a.index,r.commands);return CC(o,a.segmentGroup,s,e,i)}function Xm(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function nf(t){return"object"==typeof t&&null!=t&&t.outlets}function CC(t,n,e,i,o){let a,r={};i&&Object.entries(i).forEach(([l,c])=>{r[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`}),a=t===n?e:fP(t,n,e);const s=cP(uP(a));return new yu(s,r,o)}function fP(t,n,e){const i={};return Object.entries(t.children).forEach(([o,r])=>{i[o]=r===n?e:fP(r,n,e)}),new Hn(t.segments,i)}class pP{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&Xm(i[0]))throw new S(4003,!1);const o=i.find(nf);if(o&&o!==eP(i))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Jm{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function gP(t,n,e){if(t??=new Hn([],{}),0===t.segments.length&&t.hasChildren())return rf(t,n,e);const i=function DK(t,n,e){let i=0,o=n;const r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;const a=t.segments[o],s=e[i];if(nf(s))break;const l=`${s}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!bP(l,c,a))return r;i+=2}else{if(!bP(l,{},a))return r;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(t,n,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndexr!==cn)&&t.children[cn]&&1===t.numberOfChildren&&0===t.children[cn].segments.length){const r=rf(t.children[cn],n,e);return new Hn(t.segments,r.children)}return Object.entries(i).forEach(([r,a])=>{"string"==typeof a&&(a=[a]),null!==a&&(o[r]=gP(t.children[r],n,a))}),Object.entries(t.children).forEach(([r,a])=>{void 0===i[r]&&(o[r]=a)}),new Hn(t.segments,o)}}function xC(t,n,e){const i=t.segments.slice(0,n);let o=0;for(;o{"string"==typeof i&&(i=[i]),null!==i&&(n[e]=xC(new Hn([],{}),0,i))}),n}function mP(t){const n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function bP(t,n,e){return t==e.path&&va(n,e.parameters)}const af="imperative";var _n=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(_n||{});class wa{constructor(n,e){this.id=n,this.url=e}}class Qm extends wa{constructor(n,e,i="imperative",o=null){super(n,e),this.type=_n.NavigationStart,this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ts extends wa{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=_n.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var lr=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(lr||{}),Km=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Km||{});class wu extends wa{constructor(n,e,i,o){super(n,e),this.reason=i,this.code=o,this.type=_n.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Cu extends wa{constructor(n,e,i,o){super(n,e),this.reason=i,this.code=o,this.type=_n.NavigationSkipped}}class qm extends wa{constructor(n,e,i,o){super(n,e),this.error=i,this.target=o,this.type=_n.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class yP extends wa{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=_n.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class TK extends wa{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=_n.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class MK extends wa{constructor(n,e,i,o,r){super(n,e),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=r,this.type=_n.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class AK extends wa{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=_n.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class kK extends wa{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=_n.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class IK{constructor(n){this.route=n,this.type=_n.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class OK{constructor(n){this.route=n,this.type=_n.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class RK{constructor(n){this.snapshot=n,this.type=_n.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class PK{constructor(n){this.snapshot=n,this.type=_n.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class NK{constructor(n){this.snapshot=n,this.type=_n.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class FK{constructor(n){this.snapshot=n,this.type=_n.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _P{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=_n.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class SC{}class DC{constructor(n){this.url=n}}class LK{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new sf,this.attachRef=null}}let sf=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const o=this.getOrCreateContext(e);o.outlet=i,this.contexts.set(e,o)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new LK,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();class vP{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=EC(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=EC(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=TC(n,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return TC(n,this._root).map(e=>e.value)}}function EC(t,n){if(t===n.value)return n;for(const e of n.children){const i=EC(t,e);if(i)return i}return null}function TC(t,n){if(t===n.value)return[n];for(const e of n.children){const i=TC(t,e);if(i.length)return i.unshift(n),i}return[]}class Gr{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function xu(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class wP extends vP{constructor(n,e){super(n),this.snapshot=e,kC(this,n)}toString(){return this.snapshot.toString()}}function CP(t){const n=function jK(t){const r=new AC([],{},{},"",{},cn,t,null,{});return new xP("",new Gr(r,[]))}(t),e=new hi([new ef("",{})]),i=new hi({}),o=new hi({}),r=new hi({}),a=new hi(""),s=new Hl(e,i,r,a,o,cn,t,n.root);return s.snapshot=n.root,new wP(new Gr(s,[]),n)}class Hl{constructor(n,e,i,o,r,a,s,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=o,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(Bt(c=>c[qh]))??Et(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(Bt(n=>bu(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Bt(n=>bu(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function MC(t,n,e="emptyOnly"){let i;const{routeConfig:o}=t;return i=null===n||"always"!==e&&""!==o?.path&&(n.component||n.routeConfig?.loadComponent)?{params:{...t.params},data:{...t.data},resolve:{...t.data,...t._resolvedData??{}}}:{params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.data,...o?.data,...t._resolvedData}},o&&DP(o)&&(i.resolve[qh]=o.title),i}class AC{get title(){return this.data?.[qh]}constructor(n,e,i,o,r,a,s,l,c){this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=bu(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=bu(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class xP extends vP{constructor(n,e){super(e),this.url=n,kC(this,e)}toString(){return SP(this._root)}}function kC(t,n){n.value._routerState=t,n.children.forEach(e=>kC(t,e))}function SP(t){const n=t.children.length>0?` { ${t.children.map(SP).join(", ")} } `:"";return`${t.value}${n}`}function IC(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,va(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),va(n.params,e.params)||t.paramsSubject.next(e.params),function tK(t,n){if(t.length!==n.length)return!1;for(let e=0;eva(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||OC(t.parent,n.parent))}function DP(t){return"string"==typeof t.title||null===t.title}let RC=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=cn,this.activateEvents=new Ot,this.deactivateEvents=new Ot,this.attachEvents=new Ot,this.detachEvents=new Ot,this.parentContexts=Pe(sf),this.location=Pe(So),this.changeDetector=Pe(mi),this.environmentInjector=Pe(Lo),this.inputBinder=Pe(eb,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:o}=e.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=e;const o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new BK(e,s,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=gt({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Gi]})}}return t})();class BK{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Hl?this.route:n===sf?this.childContexts:this.parent.get(n,e)}}const eb=new He("");let EP=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:i}=e,o=jm([i.queryParams,i.params,i.data]).pipe(Ni(([r,a,s],l)=>(s={...r,...a,...s},0===l?Et(s):Promise.resolve(s)))).subscribe(r=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(e);const a=function d9(t){const n=dn(t);if(!n)return null;const e=new zd(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(i.component);if(a)for(const{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,r[s]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,o)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function lf(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const o=function YK(t,n,e){return n.children.map(i=>{for(const o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return lf(t,i,o);return lf(t,i)})}(t,n,e);return new Gr(i,o)}{if(t.shouldAttach(n.value)){const r=t.retrieve(n.value);if(null!==r){const a=r.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>lf(t,s)),a}}const i=function zK(t){return new Hl(new hi(t.url),new hi(t.params),new hi(t.queryParams),new hi(t.fragment),new hi(t.data),t.outlet,t.component,t)}(n.value),o=n.children.map(r=>lf(t,r));return new Gr(i,o)}}const TP="ngNavigationCancelingError";function MP(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=vu(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=AP(!1,lr.Redirect);return o.url=e,o.navigationBehaviorOptions=i,o}function AP(t,n){const e=new Error(`NavigationCancelingError: ${t||""}`);return e[TP]=!0,e.cancellationCode=n,e}function kP(t){return!!t&&t[TP]}let IP=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=pn({type:t,selectors:[["ng-component"]],standalone:!0,features:[Zn],decls:1,vars:0,template:function(i,o){1&i&&at(0,"router-outlet")},dependencies:[RC],encapsulation:2})}}return t})();function PC(t){const n=t.children&&t.children.map(PC),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==cn&&(e.component=IP),e}function Ca(t){return t.outlet||cn}function cf(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class JK{constructor(n,e,i,o,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=o,this.inputBindingEnabled=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),IC(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const o=xu(e);n.children.forEach(r=>{const a=r.value.outlet;this.deactivateRoutes(r,o[a],i),delete o[a]}),Object.values(o).forEach(r=>{this.deactivateRouteAndItsChildren(r,i)})}deactivateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(o===r)if(o.component){const a=i.getContext(o.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,i);else r&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=xu(n);for(const a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);if(i&&i.outlet){const a=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=xu(n);for(const a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){const o=xu(e);n.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],i),this.forwardEvent(new FK(r.value.snapshot))}),n.children.length&&this.forwardEvent(new PK(n.value.snapshot))}activateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(IC(o),o===r)if(o.component){const a=i.getOrCreateContext(o.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(o.component){const a=i.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),IC(s.route.value),this.activateChildRoutes(n,null,a.children)}else{const s=cf(o.snapshot);a.attachRef=null,a.route=o,a.injector=s,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(n,null,a.children)}}else this.activateChildRoutes(n,null,i)}}class OP{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class tb{constructor(n,e){this.component=n,this.route=e}}function QK(t,n,e){const i=t._root;return uf(i,n?n._root:null,e,[i.value])}function Su(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function i3(t){return null!==Gf(t)}(t)?n.get(t):t:i}function uf(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=xu(n);return t.children.forEach(a=>{(function qK(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,a=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){const l=function eq(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Bl(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Bl(t.url,n.url)||!va(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!OC(t,n)||!va(t.queryParams,n.queryParams);default:return!OC(t,n)}}(a,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new OP(i)):(r.data=a.data,r._resolvedData=a._resolvedData),uf(t,n,r.component?s?s.children:null:e,i,o),l&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new tb(s.outlet.component,a))}else a&&df(n,s,o),o.canActivateChecks.push(new OP(i)),uf(t,null,r.component?s?s.children:null:e,i,o)})(a,r[a.value.outlet],e,i.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>df(s,e.getContext(a),o)),o}function df(t,n,e){const i=xu(t),o=t.value;Object.entries(i).forEach(([r,a])=>{df(a,o.component?n?n.children.getContext(r):null:n,e)}),e.canDeactivateChecks.push(new tb(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function hf(t){return"function"==typeof t}function RP(t){return t instanceof $m||"EmptyError"===t?.name}const nb=Symbol("INITIAL_VALUE");function Du(){return Ni(t=>jm(t.map(n=>n.pipe(_i(1),sr(nb)))).pipe(Bt(n=>{for(const e of n)if(!0!==e){if(e===nb)return nb;if(!1===e||e instanceof yu)return e}return!0}),ui(n=>n!==nb),_i(1)))}function PP(t){return function ta(...t){return ac(t)}($i(n=>{if(vu(n))throw MP(0,n)}),Bt(n=>!0===n))}class NC{constructor(n){this.segmentGroup=n||null}}class FC extends Error{constructor(n){super(),this.urlTree=n}}function Eu(t){return mu(new NC(t))}class _q{constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],o=e.root;for(;;){if(i=i.concat(o.segments),0===o.numberOfChildren)return Et(i);if(o.numberOfChildren>1||!o.children[cn])return mu(new S(4e3,!1));o=o.children[cn]}}applyRedirectCommands(n,e,i){const o=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i);if(e.startsWith("/"))throw new FC(o);return o}applyRedirectCreateUrlTree(n,e,i,o){const r=this.createSegmentGroup(n,e.root,i,o);return new yu(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Object.entries(n).forEach(([o,r])=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);i[o]=e[s]}else i[o]=r}),i}createSegmentGroup(n,e,i,o){const r=this.createSegments(n,e.segments,i,o);let a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(n,l,i,o)}),new Hn(r,a)}createSegments(n,e,i,o){return e.map(r=>r.path.startsWith(":")?this.findPosParam(n,r,o):this.findOrReturn(r,i))}findPosParam(n,e,i){const o=i[e.path.substring(1)];if(!o)throw new S(4001,!1);return o}findOrReturn(n,e){let i=0;for(const o of e){if(o.path===n.path)return e.splice(i),o;i++}return n}}const LC={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function vq(t,n,e,i,o){const r=jC(t,n,e);return r.matched?(i=function VK(t,n){return t.providers&&!t._injector&&(t._injector=tg(t.providers,n,`Route: ${t.path}`)),t._injector??n}(n,i),function mq(t,n,e,i){const o=n.canMatch;return o&&0!==o.length?Et(o.map(a=>{const s=Su(a,t);return zs(function aq(t){return t&&hf(t.canMatch)}(s)?s.canMatch(n,e):ia(t,()=>s(n,e)))})).pipe(Du(),PP()):Et(!0)}(i,n,e).pipe(Bt(a=>!0===a?r:{...LC}))):Et(r)}function jC(t,n,e){if("**"===n.path)return function wq(t){return{matched:!0,parameters:t.length>0?eP(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}(e);if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...LC}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(n.matcher||eK)(e,t,n);if(!o)return{...LC};const r={};Object.entries(o.posParams??{}).forEach(([s,l])=>{r[s]=l.path});const a=o.consumed.length>0?{...r,...o.consumed[o.consumed.length-1].parameters}:r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function NP(t,n,e,i){return e.length>0&&function Sq(t,n,e){return e.some(i=>ib(t,n,i)&&Ca(i)!==cn)}(t,e,i)?{segmentGroup:new Hn(n,xq(i,new Hn(e,t.children))),slicedSegments:[]}:0===e.length&&function Dq(t,n,e){return e.some(i=>ib(t,n,i))}(t,e,i)?{segmentGroup:new Hn(t.segments,Cq(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new Hn(t.segments,t.children),slicedSegments:e}}function Cq(t,n,e,i){const o={};for(const r of e)if(ib(t,n,r)&&!i[Ca(r)]){const a=new Hn([],{});o[Ca(r)]=a}return{...i,...o}}function xq(t,n){const e={};e[cn]=n;for(const i of t)if(""===i.path&&Ca(i)!==cn){const o=new Hn([],{});e[Ca(i)]=o}return e}function ib(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}class Mq{}class Iq{constructor(n,e,i,o,r,a,s){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new _q(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new S(4002,`'${n.segmentGroup}'`)}recognize(){const n=NP(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(Bt(e=>{const i=new AC([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},cn,this.rootComponentType,null,{}),o=new Gr(i,e),r=new xP("",o),a=function vK(t,n,e=null,i=null){return hP(dP(t),n,e,i)}(i,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(r._root,null),{state:r,tree:a}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n,cn).pipe(es(i=>{if(i instanceof FC)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof NC?this.noMatchError(i):i}))}inheritParamsAndData(n,e){const i=n.value,o=MC(i,e,this.paramsInheritanceStrategy);i.params=Object.freeze(o.params),i.data=Object.freeze(o.data),n.children.forEach(r=>this.inheritParamsAndData(r,i))}processSegmentGroup(n,e,i,o){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,o,!0).pipe(Bt(r=>r instanceof Gr?[r]:[]))}processChildren(n,e,i){const o=[];for(const r of Object.keys(i.children))"primary"===r?o.unshift(r):o.push(r);return bi(o).pipe(au(r=>{const a=i.children[r],s=function WK(t,n){const e=t.filter(i=>Ca(i)===n);return e.push(...t.filter(i=>Ca(i)!==n)),e}(e,r);return this.processSegmentGroup(n,s,a,r)}),function QQ(t,n){return $n(function JQ(t,n,e,i,o){return(r,a)=>{let s=e,l=n,c=0;r.subscribe(Pn(a,u=>{const d=c++;l=s?t(l,u,d):(s=!0,u),i&&a.next(l)},o&&(()=>{s&&a.next(l),a.complete()})))}}(t,n,arguments.length>=2,!0))}((r,a)=>(r.push(...a),r)),Vm(null),function KQ(t,n){const e=arguments.length>=2;return i=>i.pipe(t?ui((o,r)=>t(o,r,i)):gr,bC(1),e?Vm(n):QR(()=>new $m))}(),Wi(r=>{if(null===r)return Eu(i);const a=FP(r);return function Oq(t){t.sort((n,e)=>n.value.outlet===cn?-1:e.value.outlet===cn?1:n.value.outlet.localeCompare(e.value.outlet))}(a),Et(a)}))}processSegment(n,e,i,o,r,a){return bi(e).pipe(au(s=>this.processSegmentAgainstRoute(s._injector??n,e,s,i,o,r,a).pipe(es(l=>{if(l instanceof NC)return Et(null);throw l}))),jl(s=>!!s),es(s=>{if(RP(s))return function Tq(t,n,e){return 0===n.length&&!t.children[e]}(i,o,r)?Et(new Mq):Eu(i);throw s}))}processSegmentAgainstRoute(n,e,i,o,r,a,s){return function Eq(t,n,e,i){return!!(Ca(t)===i||i!==cn&&ib(n,e,t))&&jC(n,t,e).matched}(i,o,r,a)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,o,i,r,a):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(n,o,e,i,r,a):Eu(o):Eu(o)}expandSegmentAgainstRouteUsingRedirect(n,e,i,o,r,a){const{matched:s,consumedSegments:l,positionalParamSegments:c,remainingSegments:u}=jC(e,o,r);if(!s)return Eu(e);o.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const d=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,c);return this.applyRedirects.lineralizeSegments(o,d).pipe(Wi(h=>this.processSegment(n,i,e,h.concat(u),a,!1)))}matchSegmentAgainstRoute(n,e,i,o,r){const a=vq(e,i,o,n);return"**"===i.path&&(e.children={}),a.pipe(Ni(s=>s.matched?this.getChildConfig(n=i._injector??n,i,o).pipe(Ni(({routes:l})=>{const c=i._loadedInjector??n,{consumedSegments:u,remainingSegments:d,parameters:h}=s,p=new AC(u,h,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function Pq(t){return t.data||{}}(i),Ca(i),i.component??i._loadedComponent??null,i,function Nq(t){return t.resolve||{}}(i)),{segmentGroup:g,slicedSegments:b}=NP(e,u,d,l);if(0===b.length&&g.hasChildren())return this.processChildren(c,l,g).pipe(Bt(D=>null===D?null:new Gr(p,D)));if(0===l.length&&0===b.length)return Et(new Gr(p,[]));const T=Ca(i)===r;return this.processSegment(c,l,g,b,T?cn:r,!0).pipe(Bt(D=>new Gr(p,D instanceof Gr?[D]:[])))})):Eu(e)))}getChildConfig(n,e,i){return e.children?Et({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?Et({routes:e._loadedRoutes,injector:e._loadedInjector}):function gq(t,n,e,i){const o=n.canLoad;return void 0===o||0===o.length?Et(!0):Et(o.map(a=>{const s=Su(a,t);return zs(function nq(t){return t&&hf(t.canLoad)}(s)?s.canLoad(n,e):ia(t,()=>s(n,e)))})).pipe(Du(),PP())}(n,e,i).pipe(Wi(o=>o?this.configLoader.loadChildren(n,e).pipe($i(r=>{e._loadedRoutes=r.routes,e._loadedInjector=r.injector})):function yq(t){return mu(AP(!1,lr.GuardRejected))}())):Et({routes:[],injector:n})}}function Rq(t){const n=t.value.routeConfig;return n&&""===n.path}function FP(t){const n=[],e=new Set;for(const i of t){if(!Rq(i)){n.push(i);continue}const o=n.find(r=>i.value.routeConfig===r.value.routeConfig);void 0!==o?(o.children.push(...i.children),e.add(o)):n.push(i)}for(const i of e){const o=FP(i.children);n.push(new Gr(i.value,o))}return n.filter(i=>!e.has(i))}function LP(t){const n=t.children.map(e=>LP(e)).flat();return[t,...n]}function BC(t){return Ni(n=>{const e=t(n);return e?bi(e).pipe(Bt(()=>n)):Et(n)})}let jP=(()=>{class t{buildTitle(e){let i,o=e.root;for(;void 0!==o;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(r=>r.outlet===cn);return i}getResolvedTitleForRoute(e){return e.data[qh]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Pe(Yq),providedIn:"root"})}}return t})(),Yq=(()=>{class t extends jP{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}static{this.\u0275fac=function(i){return new(i||t)(Me(OI))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const Tu=new He("",{providedIn:"root",factory:()=>({})}),Mu=new He("");let HC=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Pe(tk)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return Et(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=zs(e.loadComponent()).pipe(Bt(BP),$i(r=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=r}),Dl(()=>{this.componentLoaders.delete(e)})),o=new JR(i,()=>new vt).pipe(mC());return this.componentLoaders.set(e,o),o}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Et({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const r=function zq(t,n,e,i){return zs(t.loadChildren()).pipe(Bt(BP),Wi(o=>o instanceof DT||Array.isArray(o)?Et(o):bi(n.compileModuleAsync(o))),Bt(o=>{i&&i(t);let r,a,s=!1;return Array.isArray(o)?(a=o,!0):(r=o.create(e).injector,a=r.get(Mu,[],{optional:!0,self:!0}).flat()),{routes:a.map(PC),injector:r}}))}(i,this.compiler,e,this.onLoadEndListener).pipe(Dl(()=>{this.childrenLoaders.delete(i)})),a=new JR(r,()=>new vt).pipe(mC());return this.childrenLoaders.set(i,a),a}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function BP(t){return function $q(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let YC=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Pe(Vq),providedIn:"root"})}}return t})(),Vq=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const HP=new He(""),YP=new He("");function Zq(t,n,e){const i=t.get(YP),o=t.get(qt);return t.get(wt).runOutsideAngular(()=>{if(!o.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,Promise.resolve();let r;const a=new Promise(c=>{r=c}),s=o.startViewTransition(()=>(r(),function Gq(t){return new Promise(n=>{zE(n,{injector:t})})}(t))),{onViewTransitionCreated:l}=i;return l&&ia(t,()=>l({transition:s,from:n,to:e})),a})}let ob=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new vt,this.transitionAbortSubject=new vt,this.configLoader=Pe(HC),this.environmentInjector=Pe(Lo),this.urlSerializer=Pe(_u),this.rootContexts=Pe(sf),this.location=Pe(xl),this.inputBindingEnabled=null!==Pe(eb,{optional:!0}),this.titleStrategy=Pe(jP),this.options=Pe(Tu,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=Pe(YC),this.createViewTransition=Pe(HP,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>Et(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new OK(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new IK(o))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e,i,o){return this.transitions=new hi({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:af,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ui(r=>0!==r.id),Bt(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),Ni(r=>{let a=!1,s=!1;return Et(r).pipe(Ni(l=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",lr.SupersededByNewNavigation),Sr;this.currentTransition=r,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!c&&"reload"!==(l.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const d="";return this.events.next(new Cu(l.id,this.urlSerializer.serialize(l.rawUrl),d,Km.IgnoredSameUrlNavigation)),l.resolve(null),Sr}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return Et(l).pipe(Ni(d=>{const h=this.transitions?.getValue();return this.events.next(new Qm(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?Sr:Promise.resolve(d)}),function Fq(t,n,e,i,o,r){return Wi(a=>function Aq(t,n,e,i,o,r,a="emptyOnly"){return new Iq(t,n,e,i,o,a,r).recognize()}(t,n,e,i,a.extractedUrl,o,r).pipe(Bt(({state:s,tree:l})=>({...a,targetSnapshot:s,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),$i(d=>{r.targetSnapshot=d.targetSnapshot,r.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects};const h=new yP(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:d,extractedUrl:h,source:p,restoredState:g,extras:b}=l,T=new Qm(d,this.urlSerializer.serialize(h),p,g);this.events.next(T);const D=CP(this.rootComponentType).snapshot;return this.currentTransition=r={...l,targetSnapshot:D,urlAfterRedirects:h,extras:{...b,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=h,Et(r)}{const d="";return this.events.next(new Cu(l.id,this.urlSerializer.serialize(l.extractedUrl),d,Km.IgnoredByUrlHandlingStrategy)),l.resolve(null),Sr}}),$i(l=>{const c=new TK(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),Bt(l=>(this.currentTransition=r={...l,guards:QK(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},r)),function sq(t,n){return Wi(e=>{const{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:a}}=e;return 0===a.length&&0===r.length?Et({...e,guardsResult:!0}):function lq(t,n,e,i){return bi(t).pipe(Wi(o=>function pq(t,n,e,i,o){const r=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return r&&0!==r.length?Et(r.map(s=>{const l=cf(n)??o,c=Su(s,l);return zs(function rq(t){return t&&hf(t.canDeactivate)}(c)?c.canDeactivate(t,n,e,i):ia(l,()=>c(t,n,e,i))).pipe(jl())})).pipe(Du()):Et(!0)}(o.component,o.route,e,n,i)),jl(o=>!0!==o,!0))}(a,i,o,t).pipe(Wi(s=>s&&function tq(t){return"boolean"==typeof t}(s)?function cq(t,n,e,i){return bi(n).pipe(au(o=>Xh(function dq(t,n){return null!==t&&n&&n(new RK(t)),Et(!0)}(o.route.parent,i),function uq(t,n){return null!==t&&n&&n(new NK(t)),Et(!0)}(o.route,i),function fq(t,n,e){const i=n[n.length-1],r=n.slice(0,n.length-1).reverse().map(a=>function KK(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(a)).filter(a=>null!==a).map(a=>Kh(()=>Et(a.guards.map(l=>{const c=cf(a.node)??e,u=Su(l,c);return zs(function oq(t){return t&&hf(t.canActivateChild)}(u)?u.canActivateChild(i,t):ia(c,()=>u(i,t))).pipe(jl())})).pipe(Du())));return Et(r).pipe(Du())}(t,o.path,e),function hq(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return Et(!0);const o=i.map(r=>Kh(()=>{const a=cf(n)??e,s=Su(r,a);return zs(function iq(t){return t&&hf(t.canActivate)}(s)?s.canActivate(n,t):ia(a,()=>s(n,t))).pipe(jl())}));return Et(o).pipe(Du())}(t,o.route,e))),jl(o=>!0!==o,!0))}(i,r,t,n):Et(s)),Bt(s=>({...e,guardsResult:s})))})}(this.environmentInjector,l=>this.events.next(l)),$i(l=>{if(r.guardsResult=l.guardsResult,vu(l.guardsResult))throw MP(0,l.guardsResult);const c=new MK(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),ui(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",lr.GuardRejected),!1)),BC(l=>{if(l.guards.canActivateChecks.length)return Et(l).pipe($i(c=>{const u=new AK(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),Ni(c=>{let u=!1;return Et(c).pipe(function Lq(t,n){return Wi(e=>{const{targetSnapshot:i,guards:{canActivateChecks:o}}=e;if(!o.length)return Et(e);const r=new Set(o.map(l=>l.route)),a=new Set;for(const l of r)if(!a.has(l))for(const c of LP(l))a.add(c);let s=0;return bi(a).pipe(au(l=>r.has(l)?function jq(t,n,e,i){const o=t.routeConfig,r=t._resolve;return void 0!==o?.title&&!DP(o)&&(r[qh]=o.title),function Bq(t,n,e,i){const o=yC(t);if(0===o.length)return Et({});const r={};return bi(o).pipe(Wi(a=>function Hq(t,n,e,i){const o=cf(n)??i,r=Su(t,o);return zs(r.resolve?r.resolve(n,e):ia(o,()=>r(n,e)))}(t[a],n,e,i).pipe(jl(),$i(s=>{r[a]=s}))),bC(1),KR(r),es(a=>RP(a)?Sr:mu(a)))}(r,t,n,i).pipe(Bt(a=>(t._resolvedData=a,t.data=MC(t,t.parent,e).resolve,null)))}(l,i,t,n):(l.data=MC(l,l.parent,t).resolve,Et(void 0))),$i(()=>s++),bC(1),Wi(l=>s===a.size?Et(e):Sr))})}(this.paramsInheritanceStrategy,this.environmentInjector),$i({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(c,"",lr.NoDataFromResolver)}}))}),$i(c=>{const u=new kK(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}))}),BC(l=>{const c=u=>{const d=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(u.routeConfig).pipe($i(h=>{u.component=h}),Bt(()=>{})));for(const h of u.children)d.push(...c(h));return d};return jm(c(l.targetSnapshot.root)).pipe(Vm(null),_i(1))}),BC(()=>this.afterPreactivation()),Ni(()=>{const{currentSnapshot:l,targetSnapshot:c}=r,u=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return u?bi(u).pipe(Bt(()=>r)):Et(r)}),Bt(l=>{const c=function HK(t,n,e){const i=lf(t,n._root,e?e._root:void 0);return new wP(i,n)}(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=r={...l,targetRouterState:c},this.currentNavigation.targetRouterState=c,r}),$i(()=>{this.events.next(new SC)}),((t,n,e,i)=>Bt(o=>(new JK(n,o.targetRouterState,o.currentRouterState,e,i).activate(t),o)))(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),_i(1),$i({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ts(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),yn(this.transitionAbortSubject.pipe($i(l=>{throw l}))),Dl(()=>{a||s||this.cancelNavigationTransition(r,"",lr.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation=null,this.currentTransition=null)}),es(l=>{if(s=!0,kP(l))this.events.next(new wu(r.id,this.urlSerializer.serialize(r.extractedUrl),l.message,l.cancellationCode)),function $K(t){return kP(t)&&vu(t.url)}(l)?this.events.next(new DC(l.url)):r.resolve(!1);else{this.events.next(new qm(r.id,this.urlSerializer.serialize(r.extractedUrl),l,r.targetSnapshot??void 0));try{r.resolve(e.errorHandler(l))}catch(c){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(c)}}return Sr}))}))}cancelNavigationTransition(e,i,o){const r=new wu(e.id,this.urlSerializer.serialize(e.extractedUrl),i,o);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Uq(t){return t!==af}let Wq=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Pe(Jq),providedIn:"root"})}}return t})();class Xq{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let Jq=(()=>{class t extends Xq{static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=yi(t)))(o||t)}})()}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),zP=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Pe(Qq),providedIn:"root"})}}return t})(),Qq=(()=>{class t extends zP{constructor(){super(...arguments),this.location=Pe(xl),this.urlSerializer=Pe(_u),this.options=Pe(Tu,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=Pe(YC),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new yu,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=CP(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{"popstate"===i.type&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof Qm)this.stateMemento=this.createStateMemento();else if(e instanceof Cu)this.rawUrlTree=i.initialUrl;else if(e instanceof yP){if("eager"===this.urlUpdateStrategy&&!i.extras.skipLocationChange){const o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else e instanceof SC?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,"deferred"===this.urlUpdateStrategy&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):e instanceof wu&&(e.code===lr.GuardRejected||e.code===lr.NoDataFromResolver)?this.restoreHistory(i):e instanceof qm?this.restoreHistory(i,!0):e instanceof ts&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){const o=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){const a={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(o,"",a)}else{const r={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId+1)};this.location.go(o,"",r)}}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-this.browserPageId;0!==r?this.location.historyGo(r):this.currentUrlTree===e.finalUrl&&0===r&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=yi(t)))(o||t)}})()}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ff=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(ff||{});function $P(t,n){t.events.pipe(ui(e=>e instanceof ts||e instanceof wu||e instanceof qm||e instanceof Cu),Bt(e=>e instanceof ts||e instanceof Cu?ff.COMPLETE:e instanceof wu&&(e.code===lr.Redirect||e.code===lr.SupersededByNewNavigation)?ff.REDIRECTING:ff.FAILED),ui(e=>e!==ff.REDIRECTING),_i(1)).subscribe(()=>{n()})}function Kq(t){throw t}const qq={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},eee={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ko=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=Pe(ZA),this.stateManager=Pe(zP),this.options=Pe(Tu,{optional:!0})||{},this.pendingTasks=Pe(Cs),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=Pe(ob),this.urlSerializer=Pe(_u),this.location=Pe(xl),this.urlHandlingStrategy=Pe(YC),this._events=new vt,this.errorHandler=this.options.errorHandler||Kq,this.navigated=!1,this.routeReuseStrategy=Pe(Wq),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=Pe(Mu,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!Pe(eb,{optional:!0}),this.eventsSubscription=new ge,this.isNgZoneEnabled=Pe(wt)instanceof wt&&wt.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(i=>{try{const o=this.navigationTransitions.currentTransition,r=this.navigationTransitions.currentNavigation;if(null!==o&&null!==r)if(this.stateManager.handleRouterEvent(i,r),i instanceof wu&&i.code!==lr.Redirect&&i.code!==lr.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof ts)this.navigated=!0;else if(i instanceof DC){const a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),s={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Uq(o.source)};this.scheduleNavigation(a,af,null,s,{resolve:o.resolve,reject:o.reject,promise:o.promise})}(function nee(t){return!(t instanceof SC||t instanceof DC)})(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),af,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,o){const r={replaceUrl:!0},a=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(r.state=l)}const s=this.parseUrl(e);this.scheduleNavigation(s,i,a,r)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(PC),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){const{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:s,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:a;let d,u=null;switch(s){case"merge":u={...this.currentUrlTree.queryParams,...r};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}null!==u&&(u=this.removeEmptyProps(u));try{d=dP(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),d=this.currentUrlTree.root}return hP(d,e,u,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){const o=vu(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,af,null,i)}navigate(e,i={skipLocationChange:!1}){return function tee(t){for(let n=0;n(null!=r&&(i[o]=r),i),{})}scheduleNavigation(e,i,o,r,a){if(this.disposed)return Promise.resolve(!1);let s,l,c;a?(s=a.resolve,l=a.reject,c=a.promise):c=new Promise((d,h)=>{s=d,l=h});const u=this.pendingTasks.add();return $P(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:s,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),pf=(()=>{class t{constructor(e,i,o,r,a,s){this.router=e,this.route=i,this.tabIndexAttribute=o,this.renderer=r,this.el=a,this.locationStrategy=s,this.href=null,this.commands=null,this.onChanges=new vt,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof ts&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,i,o,r,a){const s=this.urlTree;return!!(null===s||this.isAnchorElement&&(0!==e||i||o||r||a||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(s,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const e=this.urlTree;this.href=null!==e&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;const i=null===this.href?null:function jD(t,n,e){return function h5(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?LD:Sd}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){const o=this.renderer,r=this.el.nativeElement;null!==i?o.setAttribute(r,e,i):o.removeAttribute(r,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(i){return new(i||t)(K(ko),K(Hl),ua("tabindex"),K(Ha),K(Zt),K(Cl))}}static{this.\u0275dir=gt({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){1&i&&_t("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),2&i&&Kt("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[Le.HasDecoratorInputTransform,"preserveFragment","preserveFragment",Nt],skipLocationChange:[Le.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",Nt],replaceUrl:[Le.HasDecoratorInputTransform,"replaceUrl","replaceUrl",Nt],routerLink:"routerLink"},standalone:!0,features:[qi,Gi]})}}return t})();class VP{}let ree=(()=>{class t{constructor(e,i,o,r,a){this.router=e,this.injector=o,this.preloadingStrategy=r,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(ui(e=>e instanceof ts),au(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const o=[];for(const r of i){r.providers&&!r._injector&&(r._injector=tg(r.providers,e,`Route: ${r.path}`));const a=r._injector??e,s=r._loadedInjector??a;(r.loadChildren&&!r._loadedRoutes&&void 0===r.canLoad||r.loadComponent&&!r._loadedComponent)&&o.push(this.preloadConfig(a,r)),(r.children||r._loadedRoutes)&&o.push(this.processRoutes(s,r.children??r._loadedRoutes))}return bi(o).pipe(hu())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let o;o=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):Et(null);const r=o.pipe(Wi(a=>null===a?Et(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));return i.loadComponent&&!i._loadedComponent?bi([r,this.loader.loadComponent(i)]).pipe(hu()):r})}static{this.\u0275fac=function(i){return new(i||t)(Me(ko),Me(tk),Me(Lo),Me(VP),Me(HC))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const zC=new He("");let ZP=(()=>{class t{constructor(e,i,o,r,a={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=o,this.zone=r,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Qm?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof ts?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Cu&&e.code===Km.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof _P&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new _P(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(i){z_()}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function xa(t,n){return{\u0275kind:t,\u0275providers:n}}function UP(){const t=Pe(gi);return n=>{const e=t.get(Yr);if(n!==e.components[0])return;const i=t.get(ko),o=t.get(WP);1===t.get($C)&&i.initialNavigation(),t.get(XP,null,fn.Optional)?.setUpPreloading(),t.get(zC,null,fn.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const WP=new He("",{factory:()=>new vt}),$C=new He("",{providedIn:"root",factory:()=>1}),XP=new He("");function cee(t){return xa(0,[{provide:XP,useExisting:ree},{provide:VP,useExisting:t}])}function dee(t){return xa(9,[{provide:HP,useValue:Zq},{provide:YP,useValue:{skipNextTransition:!!t?.skipInitialTransition,...t}}])}const JP=new He("ROUTER_FORROOT_GUARD"),hee=[xl,{provide:_u,useClass:_C},ko,sf,{provide:Hl,useFactory:function GP(t){return t.routerState.root},deps:[ko]},HC,[]];let QP=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[hee,[],{provide:Mu,multi:!0,useValue:e},{provide:JP,useFactory:mee,deps:[[ko,new ps,new lc]]},{provide:Tu,useValue:i||{}},i?.useHash?{provide:Cl,useClass:m9}:{provide:Cl,useClass:Vk},{provide:zC,useFactory:()=>{const t=Pe(PV),n=Pe(wt),e=Pe(Tu),i=Pe(ob),o=Pe(_u);return e.scrollOffset&&t.setOffset(e.scrollOffset),new ZP(o,i,t,n,e)}},i?.preloadingStrategy?cee(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?bee(i):[],i?.bindToComponentInputs?xa(8,[EP,{provide:eb,useExisting:EP}]).\u0275providers:[],i?.enableViewTransitions?dee().\u0275providers:[],[{provide:KP,useFactory:UP},{provide:hw,multi:!0,useExisting:KP}]]}}static forChild(e){return{ngModule:t,providers:[{provide:Mu,multi:!0,useValue:e}]}}static{this.\u0275fac=function(i){return new(i||t)(Me(JP,8))}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({})}}return t})();function mee(t){return"guarded"}function bee(t){return["disabled"===t.initialNavigation?xa(3,[{provide:uw,multi:!0,useFactory:()=>{const n=Pe(ko);return()=>{n.setUpLocationChangeListener()}}},{provide:$C,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?xa(2,[{provide:$C,useValue:0},{provide:uw,multi:!0,deps:[gi],useFactory:n=>{const e=n.get(p9,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const o=n.get(ko),r=n.get(WP);$P(o,()=>{i(!0)}),n.get(ob).afterPreactivation=()=>(i(!0),r.closed?Et(void 0):r),o.initialNavigation()}))}}]).\u0275providers:[]]}const KP=new He("");var _ee=function(n){return function vee(t){return!!t&&"object"==typeof t}(n)&&!function wee(t){var n=Object.prototype.toString.call(t);return"[object RegExp]"===n||"[object Date]"===n||function See(t){return t.$$typeof===xee}(t)}(n)},xee="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function gf(t,n){return!1!==n.clone&&n.isMergeableObject(t)?Au(function Dee(t){return Array.isArray(t)?[]:{}}(t),t,n):t}function Eee(t,n,e){return t.concat(n).map(function(i){return gf(i,e)})}function qP(t){return Object.keys(t).concat(function Mee(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(n){return Object.propertyIsEnumerable.call(t,n)}):[]}(t))}function eN(t,n){try{return n in t}catch{return!1}}function Au(t,n,e){(e=e||{}).arrayMerge=e.arrayMerge||Eee,e.isMergeableObject=e.isMergeableObject||_ee,e.cloneUnlessOtherwiseSpecified=gf;var i=Array.isArray(n);return i===Array.isArray(t)?i?e.arrayMerge(t,n,e):function kee(t,n,e){var i={};return e.isMergeableObject(t)&&qP(t).forEach(function(o){i[o]=gf(t[o],e)}),qP(n).forEach(function(o){(function Aee(t,n){return eN(t,n)&&!(Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))})(t,o)||(i[o]=eN(t,o)&&e.isMergeableObject(n[o])?function Tee(t,n){if(!n.customMerge)return Au;var e=n.customMerge(t);return"function"==typeof e?e:Au}(o,e)(t[o],n[o],e):gf(n[o],e))}),i}(t,n,e):gf(n,e)}Au.all=function(n,e){if(!Array.isArray(n))throw new Error("first argument should be an array");return n.reduce(function(i,o){return Au(i,o,e)},{})};var VC=Au;function ZC(t){return t instanceof HTMLElement}function Yl(t){return"function"==typeof t}function mf(t){return"string"==typeof t}function go(t){return void 0===t}class GC{on(n,e,i,o=!1){return go(this.bindings)&&(this.bindings={}),go(this.bindings[n])&&(this.bindings[n]=[]),this.bindings[n].push({handler:e,ctx:i,once:o}),this}once(n,e,i){return this.on(n,e,i,!0)}off(n,e){return go(this.bindings)||go(this.bindings[n])||(go(e)?delete this.bindings[n]:this.bindings[n].forEach((i,o)=>{i.handler===e&&this.bindings[n].splice(o,1)})),this}trigger(n,...e){return!go(this.bindings)&&this.bindings[n]&&this.bindings[n].forEach((i,o)=>{const{ctx:r,handler:a,once:s}=i;a.apply(r||this,e),s&&this.bindings[n].splice(o,1)}),this}}function tN(t){const n=Object.getOwnPropertyNames(t.constructor.prototype);for(let e=0;e{const e=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==n?e:3&e|8).toString(16)})}function mo(){return mo=Object.assign?Object.assign.bind():function(t){for(var n=1;n=0)&&(e[o]=t[o]);return e}const ku=Math.min,zl=Math.max,rb=Math.round,ab=Math.floor,$s=t=>({x:t,y:t}),Fee={left:"right",right:"left",bottom:"top",top:"bottom"},Lee={start:"end",end:"start"};function WC(t,n,e){return zl(t,ku(n,e))}function Iu(t,n){return"function"==typeof t?t(n):t}function $l(t){return t.split("-")[0]}function sb(t){return t.split("-")[1]}function XC(t){return"x"===t?"y":"x"}function JC(t){return"y"===t?"height":"width"}function lb(t){return["top","bottom"].includes($l(t))?"y":"x"}function QC(t){return XC(lb(t))}function KC(t){return t.replace(/start|end/g,n=>Lee[n])}function cb(t){return t.replace(/left|right|bottom|top/g,n=>Fee[n])}function rN(t){return"number"!=typeof t?function zee(t){return mo({top:0,right:0,bottom:0,left:0},t)}(t):{top:t,right:t,bottom:t,left:t}}function ub(t){return mo({},t,{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}const $ee=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],Vee=["mainAxis","crossAxis","limiter"];function aN(t,n,e){let{reference:i,floating:o}=t;const r=lb(n),a=QC(n),s=JC(a),l=$l(n),c="y"===r,u=i.x+i.width/2-o.width/2,d=i.y+i.height/2-o.height/2,h=i[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:i.y-o.height};break;case"bottom":p={x:u,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:d};break;case"left":p={x:i.x-o.width,y:d};break;default:p={x:i.x,y:i.y}}switch(sb(n)){case"start":p[a]-=h*(e&&c?-1:1);break;case"end":p[a]+=h*(e&&c?-1:1)}return p}const Zee=function(){var t=(0,y.Z)(function*(n,e,i){const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:s}=i,l=a.filter(Boolean),c=yield null==s.isRTL?void 0:s.isRTL(e);let u=yield s.getElementRects({reference:n,floating:e,strategy:r}),{x:d,y:h}=aN(u,o,c),p=o,g={},b=0;for(let T=0;Tpe&&(g=pe)}if(u){var H,oe;const le="y"===p?"width":"height",G=["top","left"].includes($l(r)),pe=a.reference[h]-a.floating[le]+(G&&(null==(H=s.offset)?void 0:H[h])||0)+(G?0:D.crossAxis),_e=a.reference[h]+a.reference[le]+(G?0:(null==(oe=s.offset)?void 0:oe[h])||0)-(G?D.crossAxis:0);b_e&&(b=_e)}return{[p]:g,[h]:b}}}};function Vs(t){return lN(t)?(t.nodeName||"").toLowerCase():"#document"}function cr(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function ns(t){var n;return null==(n=(lN(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function lN(t){return t instanceof Node||t instanceof cr(t).Node}function is(t){return t instanceof Element||t instanceof cr(t).Element}function Sa(t){return t instanceof HTMLElement||t instanceof cr(t).HTMLElement}function cN(t){return!(typeof ShadowRoot>"u")&&(t instanceof ShadowRoot||t instanceof cr(t).ShadowRoot)}function bf(t){const{overflow:n,overflowX:e,overflowY:i,display:o}=Er(t);return/auto|scroll|overlay|hidden|clip/.test(n+i+e)&&!["inline","contents"].includes(o)}function Jee(t){return["table","td","th"].includes(Vs(t))}function e1(t){const n=t1(),e=Er(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!n&&!!e.backdropFilter&&"none"!==e.backdropFilter||!n&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some(i=>(e.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(e.contain||"").includes(i))}function t1(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function db(t){return["html","body","#document"].includes(Vs(t))}function Er(t){return cr(t).getComputedStyle(t)}function hb(t){return is(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ou(t){if("html"===Vs(t))return t;const n=t.assignedSlot||t.parentNode||cN(t)&&t.host||ns(t);return cN(n)?n.host:n}function uN(t){const n=Ou(t);return db(n)?t.ownerDocument?t.ownerDocument.body:t.body:Sa(n)&&bf(n)?n:uN(n)}function fb(t,n){var e;void 0===n&&(n=[]);const i=uN(t),o=i===(null==(e=t.ownerDocument)?void 0:e.body),r=cr(i);return o?n.concat(r,r.visualViewport||[],bf(i)?i:[]):n.concat(i,fb(i))}function dN(t){const n=Er(t);let e=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const o=Sa(t),r=o?t.offsetWidth:e,a=o?t.offsetHeight:i,s=rb(e)!==r||rb(i)!==a;return s&&(e=r,i=a),{width:e,height:i,$:s}}function n1(t){return is(t)?t:t.contextElement}function Ru(t){const n=n1(t);if(!Sa(n))return $s(1);const e=n.getBoundingClientRect(),{width:i,height:o,$:r}=dN(n);let a=(r?rb(e.width):e.width)/i,s=(r?rb(e.height):e.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Kee=$s(0);function hN(t){const n=cr(t);return t1()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:Kee}function Vl(t,n,e,i){void 0===n&&(n=!1),void 0===e&&(e=!1);const o=t.getBoundingClientRect(),r=n1(t);let a=$s(1);n&&(i?is(i)&&(a=Ru(i)):a=Ru(t));const s=function qee(t,n,e){return void 0===n&&(n=!1),!(!e||n&&e!==cr(t))&&n}(r,e,i)?hN(r):$s(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(r){const h=cr(r),p=i&&is(i)?cr(i):i;let g=h.frameElement;for(;g&&i&&p!==h;){const b=Ru(g),T=g.getBoundingClientRect(),D=Er(g),H=T.left+(g.clientLeft+parseFloat(D.paddingLeft))*b.x,oe=T.top+(g.clientTop+parseFloat(D.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=H,c+=oe,g=cr(g).frameElement}}return ub({width:u,height:d,x:l,y:c})}function fN(t){return Vl(ns(t)).left+hb(t).scrollLeft}function pN(t,n,e){let i;if("viewport"===n)i=function ite(t,n){const e=cr(t),i=ns(t),o=e.visualViewport;let r=i.clientWidth,a=i.clientHeight,s=0,l=0;if(o){r=o.width,a=o.height;const c=t1();(!c||c&&"fixed"===n)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:r,height:a,x:s,y:l}}(t,e);else if("document"===n)i=function nte(t){const n=ns(t),e=hb(t),i=t.ownerDocument.body,o=zl(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),r=zl(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let a=-e.scrollLeft+fN(t);const s=-e.scrollTop;return"rtl"===Er(i).direction&&(a+=zl(n.clientWidth,i.clientWidth)-o),{width:o,height:r,x:a,y:s}}(ns(t));else if(is(n))i=function ote(t,n){const e=Vl(t,!0,"fixed"===n),i=e.top+t.clientTop,o=e.left+t.clientLeft,r=Sa(t)?Ru(t):$s(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y}}(n,e);else{const o=hN(t);i=mo({},n,{x:n.x-o.x,y:n.y-o.y})}return ub(i)}function gN(t,n){const e=Ou(t);return!(e===n||!is(e)||db(e))&&("fixed"===Er(e).position||gN(e,n))}function rte(t,n){const e=n.get(t);if(e)return e;let i=fb(t).filter(s=>is(s)&&"body"!==Vs(s)),o=null;const r="fixed"===Er(t).position;let a=r?Ou(t):t;for(;is(a)&&!db(a);){const s=Er(a),l=e1(a);!l&&"fixed"===s.position&&(o=null),(r?!l&&!o:!l&&"static"===s.position&&o&&["absolute","fixed"].includes(o.position)||bf(a)&&!l&&gN(t,a))?i=i.filter(u=>u!==a):o=s,a=Ou(a)}return n.set(t,i),i}function lte(t,n,e){const i=Sa(n),o=ns(n),r="fixed"===e,a=Vl(t,!0,r,n);let s={scrollLeft:0,scrollTop:0};const l=$s(0);if(i||!i&&!r)if(("body"!==Vs(n)||bf(o))&&(s=hb(n)),i){const c=Vl(n,!0,r,n);l.x=c.x+n.clientLeft,l.y=c.y+n.clientTop}else o&&(l.x=fN(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function mN(t,n){return Sa(t)&&"fixed"!==Er(t).position?n?n(t):t.offsetParent:null}function bN(t,n){const e=cr(t);if(!Sa(t))return e;let i=mN(t,n);for(;i&&Jee(i)&&"static"===Er(i).position;)i=mN(i,n);return i&&("html"===Vs(i)||"body"===Vs(i)&&"static"===Er(i).position&&!e1(i))?e:i||function Qee(t){let n=Ou(t);for(;Sa(n)&&!db(n);){if(e1(n))return n;n=Ou(n)}return null}(t)||e}const cte=function(){var t=(0,y.Z)(function*(e){let{reference:i,floating:o,strategy:r}=e;const a=this.getOffsetParent||bN,s=this.getDimensions;return{reference:lte(i,yield a(o),r),floating:mo({x:0,y:0},yield s(o))}});return function n(e){return t.apply(this,arguments)}}(),dte={convertOffsetParentRelativeRectToViewportRelativeRect:function ete(t){let{rect:n,offsetParent:e,strategy:i}=t;const o=Sa(e),r=ns(e);if(e===r)return n;let a={scrollLeft:0,scrollTop:0},s=$s(1);const l=$s(0);if((o||!o&&"fixed"!==i)&&(("body"!==Vs(e)||bf(r))&&(a=hb(e)),Sa(e))){const c=Vl(e);s=Ru(e),l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-a.scrollLeft*s.x+l.x,y:n.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:ns,getClippingRect:function ate(t){let{element:n,boundary:e,rootBoundary:i,strategy:o}=t;const a=[..."clippingAncestors"===e?rte(n,this._c):[].concat(e),i],l=a.reduce((c,u)=>{const d=pN(n,u,o);return c.top=zl(d.top,c.top),c.right=ku(d.right,c.right),c.bottom=ku(d.bottom,c.bottom),c.left=zl(d.left,c.left),c},pN(n,a[0],o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:bN,getElementRects:cte,getClientRects:function tte(t){return Array.from(t.getClientRects())},getDimensions:function ste(t){return dN(t)},getScale:Ru,isElement:is,isRTL:function ute(t){return"rtl"===Er(t).direction}};function gte(t){t.cleanup&&t.cleanup();const n=t._getResolvedAttachToOptions();let e=n.element;const i=function wte(t,n){const e={strategy:"absolute",middleware:[]},i=function Cte(t){return!(!t.options.arrow||!t.el)&&t.el.querySelector(".shepherd-arrow")}(n);return iN(t)||(e.middleware.push(function(n){return void 0===n&&(n={}),{name:"flip",options:n,fn:e=>(0,y.Z)(function*(){var i;const{placement:o,middlewareData:r,rects:a,initialPlacement:s,platform:l,elements:c}=e,u=Iu(n,e),{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:T=!0}=u,D=oN(u,$ee),H=$l(o),oe=$l(s)===s,le=yield null==l.isRTL?void 0:l.isRTL(c.floating),G=p||(oe||!T?[cb(s)]:function Bee(t){const n=cb(t);return[KC(t),n,KC(n)]}(s));!p&&"none"!==b&&G.push(...function Yee(t,n,e,i){const o=sb(t);let r=function Hee(t,n,e){const i=["left","right"],o=["right","left"],r=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return e?n?o:i:n?i:o;case"left":case"right":return n?r:a;default:return[]}}($l(t),"start"===e,i);return o&&(r=r.map(a=>a+"-"+o),n&&(r=r.concat(r.map(KC)))),r}(s,T,b,le));const pe=[s,...G],_e=yield sN(e,D),be=[];let Be=(null==(i=r.flip)?void 0:i.overflows)||[];if(d&&be.push(_e[H]),h){const Xe=function jee(t,n,e){void 0===e&&(e=!1);const i=sb(t),o=QC(t),r=JC(o);let a="x"===o?i===(e?"end":"start")?"right":"left":"start"===i?"bottom":"top";return n.reference[r]>n.floating[r]&&(a=cb(a)),[a,cb(a)]}(o,a,le);be.push(_e[Xe[0]],_e[Xe[1]])}if(Be=[...Be,{placement:o,overflows:be}],!be.every(Xe=>Xe<=0)){var Fe,Qe;const Xe=((null==(Fe=r.flip)?void 0:Fe.index)||0)+1,ct=pe[Xe];if(ct)return{data:{index:Xe,overflows:Be},reset:{placement:ct}};let ut=null==(Qe=Be.filter(Se=>Se.overflows[0]<=0).sort((Se,Ye)=>Se.overflows[1]-Ye.overflows[1])[0])?void 0:Qe.placement;if(!ut)switch(g){case"bestFit":{var Re;const Se=null==(Re=Be.map(Ye=>[Ye.placement,Ye.overflows.filter(We=>We>0).reduce((We,it)=>We+it,0)]).sort((Ye,We)=>Ye[1]-We[1])[0])?void 0:Re[0];Se&&(ut=Se);break}case"initialPlacement":ut=s}if(o!==ut)return{reset:{placement:ut}}}return{}})()}}(),function(n){return void 0===n&&(n={}),{name:"shift",options:n,fn:e=>(0,y.Z)(function*(){const{x:i,y:o,placement:r}=e,a=Iu(n,e),{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:H=>{let{x:oe,y:le}=H;return{x:oe,y:le}}}}=a,u=oN(a,Vee),d={x:i,y:o},h=yield sN(e,u),p=lb($l(r)),g=XC(p);let b=d[g],T=d[p];s&&(b=WC(b+h["y"===g?"top":"left"],b,b-h["y"===g?"bottom":"right"])),l&&(T=WC(T+h["y"===p?"top":"left"],T,T-h["y"===p?"bottom":"right"]));const D=c.fn(mo({},e,{[g]:b,[p]:T}));return mo({},D,{data:{x:D.x-i,y:D.y-o}})})()}}({limiter:Xee(),crossAxis:!0})),i&&e.middleware.push((t=>({name:"arrow",options:t,fn:n=>(0,y.Z)(function*(){const{x:e,y:i,placement:o,rects:r,platform:a,elements:s}=n,{element:l,padding:c=0}=Iu(t,n)||{};if(null==l)return{};const u=rN(c),d={x:e,y:i},h=QC(o),p=JC(h),g=yield a.getDimensions(l),b="y"===h,T=b?"top":"left",D=b?"bottom":"right",H=b?"clientHeight":"clientWidth",oe=r.reference[p]+r.reference[h]-d[h]-r.floating[p],le=d[h]-r.reference[h],G=yield null==a.getOffsetParent?void 0:a.getOffsetParent(l);let pe=G?G[H]:0;(!pe||!(yield null==a.isElement?void 0:a.isElement(G)))&&(pe=s.floating[H]||r.floating[p]);const _e=oe/2-le/2,be=pe/2-g[p]/2-1,Be=ku(u[T],be),Fe=ku(u[D],be),Qe=Be,Re=pe-g[p]-Fe,Xe=pe/2-g[p]/2+_e,ct=WC(Qe,Xe,Re),Se=null!=sb(o)&&Xe!=ct&&r.reference[p]/2-(Xe{o&&D.addEventListener("scroll",e,{passive:!0}),r&&D.addEventListener("resize",e)});const d=c&&s?function hte(t,n){let i,e=null;const o=ns(t);function r(){clearTimeout(i),e&&e.disconnect(),e=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),r();const{left:c,top:u,width:d,height:h}=t.getBoundingClientRect();if(s||n(),!d||!h)return;const H={rootMargin:-ab(u)+"px "+-ab(o.clientWidth-(c+d))+"px "+-ab(o.clientHeight-(u+h))+"px "+-ab(c)+"px",threshold:zl(0,ku(1,l))||1};let oe=!0;function le(G){const pe=G[0].intersectionRatio;if(pe!==l){if(!oe)return a();pe?a(!1,pe):i=setTimeout(()=>{a(!1,1e-7)},100)}oe=!1}try{e=new IntersectionObserver(le,mo({},H,{root:o.ownerDocument}))}catch{e=new IntersectionObserver(le,H)}e.observe(t)}(!0),r}(c,e):null;let h=-1,p=null;a&&(p=new ResizeObserver(D=>{let[H]=D;H&&H.target===c&&p&&(p.unobserve(n),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{p&&p.observe(n)})),e()}),c&&!l&&p.observe(c),p.observe(n));let g,b=l?Vl(t):null;return l&&function T(){const D=Vl(t);b&&(D.x!==b.x||D.y!==b.y||D.width!==b.width||D.height!==b.height)&&e(),b=D,g=requestAnimationFrame(T)}(),e(),()=>{u.forEach(D=>{o&&D.removeEventListener("scroll",e),r&&D.removeEventListener("resize",e)}),d&&d(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(g)}}(e,t.el,()=>{t.el?function yte(t,n,e,i){((t,n,e)=>{const i=new Map,o=mo({platform:dte},e),r=mo({},o.platform,{_c:i});return Zee(t,n,mo({},o,{platform:r}))})(t,n.el,e).then(function _te(t,n){return({x:e,y:i,placement:o,middlewareData:r})=>(t.el&&(Object.assign(t.el.style,n?{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}:{position:"absolute",left:`${e}px`,top:`${i}px`}),t.el.dataset.popperPlacement=o,function vte(t,n){const e=t.querySelector(".shepherd-arrow");if(e&&n.arrow){const{x:i,y:o}=n.arrow;Object.assign(e.style,{left:null!=i?`${i}px`:"",top:null!=o?`${o}px`:""})}}(t.el,r)),t)}(n,i)).then(o=>new Promise(r=>{setTimeout(()=>r(o),300)})).then(o=>{o&&o.el&&o.el.focus({preventScroll:!0})})}(e,t,i,o):t.cleanup()}),t.target=n.element,i}function ur(){}function xte(t,n){for(const e in n)t[e]=n[e];return t}function yN(t){return t()}function _N(){return Object.create(null)}function yf(t){t.forEach(yN)}function o1(t){return"function"==typeof t}function os(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function Pu(t,n){t.appendChild(n)}function Ur(t,n,e){t.insertBefore(n,e||null)}function Tr(t){t.parentNode&&t.parentNode.removeChild(t)}function Da(t){return document.createElement(t)}function vN(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function wN(t){return document.createTextNode(t)}function pb(){return wN(" ")}function gb(t,n,e,i){return t.addEventListener(n,e,i),()=>t.removeEventListener(n,e,i)}function ei(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}const Tte=["width","height"];function CN(t,n){const e=Object.getOwnPropertyDescriptors(t.__proto__);for(const i in n)null==n[i]?t.removeAttribute(i):"style"===i?t.style.cssText=n[i]:"__value"===i?t.value=t[i]=n[i]:e[i]&&e[i].set&&-1===Tte.indexOf(i)?t[i]=n[i]:ei(t,i,n[i])}function Nu(t,n,e){t.classList[e?"add":"remove"](n)}let _f;function vf(t){_f=t}function xN(){if(!_f)throw new Error("Function called outside component initialization");return _f}function r1(t){xN().$$.after_update.push(t)}const Fu=[],Lu=[];let ju=[];const SN=[],kte=Promise.resolve();let a1=!1;function s1(t){ju.push(t)}const l1=new Set;let Bu=0;function DN(){if(0!==Bu)return;const t=_f;do{try{for(;Bu{mb.delete(t),i&&(e&&t.d(1),i())}),t.o(n)}else i&&i()}function Wl(t){t&&t.c()}function Zs(t,n,e,i){const{fragment:o,after_update:r}=t.$$;o&&o.m(n,e),i||s1(()=>{const a=t.$$.on_mount.map(yN).filter(o1);t.$$.on_destroy?t.$$.on_destroy.push(...a):yf(a),t.$$.on_mount=[]}),r.forEach(s1)}function Gs(t,n){const e=t.$$;null!==e.fragment&&(function Rte(t){const n=[],e=[];ju.forEach(i=>-1===t.indexOf(i)?n.push(i):e.push(i)),e.forEach(i=>i()),ju=n}(e.after_update),yf(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function rs(t,n,e,i,o,r,a,s=[-1]){const l=_f;vf(t);const c=t.$$={fragment:null,ctx:[],props:r,update:ur,not_equal:o,bound:_N(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(l?l.$$.context:[])),callbacks:_N(),dirty:s,skip_bound:!1,root:n.target||l.$$.root};a&&a(c.root);let u=!1;if(c.ctx=e?e(t,n.props||{},(d,h,...p)=>{const g=p.length?p[0]:h;return c.ctx&&o(c.ctx[d],c.ctx[d]=g)&&(!c.skip_bound&&c.bound[d]&&c.bound[d](g),u&&function Nte(t,n){-1===t.$$.dirty[0]&&(Fu.push(t),function Ite(){a1||(a1=!0,kte.then(DN))}(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<{const o=i.indexOf(e);-1!==o&&i.splice(o,1)}}$set(n){this.$$set&&!function Ste(t){return 0===Object.keys(t).length}(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}function Fte(t){let n,e,i,o,r;return{c(){n=Da("button"),ei(n,"aria-label",e=t[3]?t[3]:null),ei(n,"class",i=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`),n.disabled=t[2],ei(n,"tabindex","0")},m(a,s){Ur(a,n,s),n.innerHTML=t[5],o||(r=gb(n,"click",function(){o1(t[0])&&t[0].apply(this,arguments)}),o=!0)},p(a,[s]){t=a,32&s&&(n.innerHTML=t[5]),8&s&&e!==(e=t[3]?t[3]:null)&&ei(n,"aria-label",e),18&s&&i!==(i=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`)&&ei(n,"class",i),4&s&&(n.disabled=t[2])},i:ur,o:ur,d(a){a&&Tr(n),o=!1,r()}}}function Lte(t,n,e){let r,a,s,l,c,u,{config:i,step:o}=n;function d(h){return Yl(h)?h=h.call(o):h}return t.$$set=h=>{"config"in h&&e(6,i=h.config),"step"in h&&e(7,o=h.step)},t.$$.update=()=>{192&t.$$.dirty&&(e(0,r=i.action?i.action.bind(o.tour):null),e(1,a=i.classes),e(2,s=!!i.disabled&&d(i.disabled)),e(3,l=i.label?d(i.label):null),e(4,c=i.secondary),e(5,u=i.text?d(i.text):null))},[r,a,s,l,c,u,i,o]}class jte extends as{constructor(n){super(),rs(this,n,Lte,Fte,os,{config:6,step:7})}}function EN(t,n,e){const i=t.slice();return i[2]=n[e],i}function TN(t){let n,e,i=t[1],o=[];for(let a=0;aki(o[a],1,1,()=>{o[a]=null});return{c(){for(let a=0;a{i=null}),Ul())},i(o){e||(jn(i),e=!0)},o(o){ki(i),e=!1},d(o){o&&Tr(n),i&&i.d()}}}function Hte(t,n,e){let i,{step:o}=n;return t.$$set=r=>{"step"in r&&e(0,o=r.step)},t.$$.update=()=>{1&t.$$.dirty&&e(1,i=o.options.buttons)},[o,i]}class Yte extends as{constructor(n){super(),rs(this,n,Hte,Bte,os,{step:0})}}function zte(t){let n,e,i,o,r;return{c(){n=Da("button"),e=Da("span"),e.textContent="\xd7",ei(e,"aria-hidden","true"),ei(n,"aria-label",i=t[0].label?t[0].label:"Close Tour"),ei(n,"class","shepherd-cancel-icon"),ei(n,"type","button")},m(a,s){Ur(a,n,s),Pu(n,e),o||(r=gb(n,"click",t[1]),o=!0)},p(a,[s]){1&s&&i!==(i=a[0].label?a[0].label:"Close Tour")&&ei(n,"aria-label",i)},i:ur,o:ur,d(a){a&&Tr(n),o=!1,r()}}}function $te(t,n,e){let{cancelIcon:i,step:o}=n;return t.$$set=a=>{"cancelIcon"in a&&e(0,i=a.cancelIcon),"step"in a&&e(2,o=a.step)},[i,a=>{a.preventDefault(),o.cancel()},o]}class Vte extends as{constructor(n){super(),rs(this,n,$te,zte,os,{cancelIcon:0,step:2})}}function Zte(t){let n;return{c(){n=Da("h3"),ei(n,"id",t[1]),ei(n,"class","shepherd-title")},m(e,i){Ur(e,n,i),t[3](n)},p(e,[i]){2&i&&ei(n,"id",e[1])},i:ur,o:ur,d(e){e&&Tr(n),t[3](null)}}}function Gte(t,n,e){let{labelId:i,element:o,title:r}=n;return r1(()=>{Yl(r)&&e(2,r=r()),e(0,o.innerHTML=r,o)}),t.$$set=s=>{"labelId"in s&&e(1,i=s.labelId),"element"in s&&e(0,o=s.element),"title"in s&&e(2,r=s.title)},[o,i,r,function a(s){Lu[s?"unshift":"push"](()=>{o=s,e(0,o)})}]}class Ute extends as{constructor(n){super(),rs(this,n,Gte,Zte,os,{labelId:1,element:0,title:2})}}function AN(t){let n,e;return n=new Ute({props:{labelId:t[0],title:t[2]}}),{c(){Wl(n.$$.fragment)},m(i,o){Zs(n,i,o),e=!0},p(i,o){const r={};1&o&&(r.labelId=i[0]),4&o&&(r.title=i[2]),n.$set(r)},i(i){e||(jn(n.$$.fragment,i),e=!0)},o(i){ki(n.$$.fragment,i),e=!1},d(i){Gs(n,i)}}}function kN(t){let n,e;return n=new Vte({props:{cancelIcon:t[3],step:t[1]}}),{c(){Wl(n.$$.fragment)},m(i,o){Zs(n,i,o),e=!0},p(i,o){const r={};8&o&&(r.cancelIcon=i[3]),2&o&&(r.step=i[1]),n.$set(r)},i(i){e||(jn(n.$$.fragment,i),e=!0)},o(i){ki(n.$$.fragment,i),e=!1},d(i){Gs(n,i)}}}function Wte(t){let n,e,i,o=t[2]&&AN(t),r=t[3]&&t[3].enabled&&kN(t);return{c(){n=Da("header"),o&&o.c(),e=pb(),r&&r.c(),ei(n,"class","shepherd-header")},m(a,s){Ur(a,n,s),o&&o.m(n,null),Pu(n,e),r&&r.m(n,null),i=!0},p(a,[s]){a[2]?o?(o.p(a,s),4&s&&jn(o,1)):(o=AN(a),o.c(),jn(o,1),o.m(n,e)):o&&(Gl(),ki(o,1,1,()=>{o=null}),Ul()),a[3]&&a[3].enabled?r?(r.p(a,s),8&s&&jn(r,1)):(r=kN(a),r.c(),jn(r,1),r.m(n,null)):r&&(Gl(),ki(r,1,1,()=>{r=null}),Ul())},i(a){i||(jn(o),jn(r),i=!0)},o(a){ki(o),ki(r),i=!1},d(a){a&&Tr(n),o&&o.d(),r&&r.d()}}}function Xte(t,n,e){let r,a,{labelId:i,step:o}=n;return t.$$set=s=>{"labelId"in s&&e(0,i=s.labelId),"step"in s&&e(1,o=s.step)},t.$$.update=()=>{2&t.$$.dirty&&(e(2,r=o.options.title),e(3,a=o.options.cancelIcon))},[i,o,r,a]}class Jte extends as{constructor(n){super(),rs(this,n,Xte,Wte,os,{labelId:0,step:1})}}function Qte(t){let n;return{c(){n=Da("div"),ei(n,"class","shepherd-text"),ei(n,"id",t[1])},m(e,i){Ur(e,n,i),t[3](n)},p(e,[i]){2&i&&ei(n,"id",e[1])},i:ur,o:ur,d(e){e&&Tr(n),t[3](null)}}}function Kte(t,n,e){let{descriptionId:i,element:o,step:r}=n;return r1(()=>{let{text:s}=r.options;Yl(s)&&(s=s.call(r)),ZC(s)?o.appendChild(s):e(0,o.innerHTML=s,o)}),t.$$set=s=>{"descriptionId"in s&&e(1,i=s.descriptionId),"element"in s&&e(0,o=s.element),"step"in s&&e(2,r=s.step)},[o,i,r,function a(s){Lu[s?"unshift":"push"](()=>{o=s,e(0,o)})}]}class qte extends as{constructor(n){super(),rs(this,n,Kte,Qte,os,{descriptionId:1,element:0,step:2})}}function IN(t){let n,e;return n=new Jte({props:{labelId:t[1],step:t[2]}}),{c(){Wl(n.$$.fragment)},m(i,o){Zs(n,i,o),e=!0},p(i,o){const r={};2&o&&(r.labelId=i[1]),4&o&&(r.step=i[2]),n.$set(r)},i(i){e||(jn(n.$$.fragment,i),e=!0)},o(i){ki(n.$$.fragment,i),e=!1},d(i){Gs(n,i)}}}function ON(t){let n,e;return n=new qte({props:{descriptionId:t[0],step:t[2]}}),{c(){Wl(n.$$.fragment)},m(i,o){Zs(n,i,o),e=!0},p(i,o){const r={};1&o&&(r.descriptionId=i[0]),4&o&&(r.step=i[2]),n.$set(r)},i(i){e||(jn(n.$$.fragment,i),e=!0)},o(i){ki(n.$$.fragment,i),e=!1},d(i){Gs(n,i)}}}function RN(t){let n,e;return n=new Yte({props:{step:t[2]}}),{c(){Wl(n.$$.fragment)},m(i,o){Zs(n,i,o),e=!0},p(i,o){const r={};4&o&&(r.step=i[2]),n.$set(r)},i(i){e||(jn(n.$$.fragment,i),e=!0)},o(i){ki(n.$$.fragment,i),e=!1},d(i){Gs(n,i)}}}function ene(t){let n,i,r,s,e=!go(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled,o=!go(t[2].options.text),a=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length,l=e&&IN(t),c=o&&ON(t),u=a&&RN(t);return{c(){n=Da("div"),l&&l.c(),i=pb(),c&&c.c(),r=pb(),u&&u.c(),ei(n,"class","shepherd-content")},m(d,h){Ur(d,n,h),l&&l.m(n,null),Pu(n,i),c&&c.m(n,null),Pu(n,r),u&&u.m(n,null),s=!0},p(d,[h]){4&h&&(e=!go(d[2].options.title)||d[2].options.cancelIcon&&d[2].options.cancelIcon.enabled),e?l?(l.p(d,h),4&h&&jn(l,1)):(l=IN(d),l.c(),jn(l,1),l.m(n,i)):l&&(Gl(),ki(l,1,1,()=>{l=null}),Ul()),4&h&&(o=!go(d[2].options.text)),o?c?(c.p(d,h),4&h&&jn(c,1)):(c=ON(d),c.c(),jn(c,1),c.m(n,r)):c&&(Gl(),ki(c,1,1,()=>{c=null}),Ul()),4&h&&(a=Array.isArray(d[2].options.buttons)&&d[2].options.buttons.length),a?u?(u.p(d,h),4&h&&jn(u,1)):(u=RN(d),u.c(),jn(u,1),u.m(n,null)):u&&(Gl(),ki(u,1,1,()=>{u=null}),Ul())},i(d){s||(jn(l),jn(c),jn(u),s=!0)},o(d){ki(l),ki(c),ki(u),s=!1},d(d){d&&Tr(n),l&&l.d(),c&&c.d(),u&&u.d()}}}function tne(t,n,e){let{descriptionId:i,labelId:o,step:r}=n;return t.$$set=a=>{"descriptionId"in a&&e(0,i=a.descriptionId),"labelId"in a&&e(1,o=a.labelId),"step"in a&&e(2,r=a.step)},[i,o,r]}class nne extends as{constructor(n){super(),rs(this,n,tne,ene,os,{descriptionId:0,labelId:1,step:2})}}function PN(t){let n;return{c(){n=Da("div"),ei(n,"class","shepherd-arrow"),ei(n,"data-popper-arrow","")},m(e,i){Ur(e,n,i)},d(e){e&&Tr(n)}}}function ine(t){let n,e,i,o,r,a,s,l,c=t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on&&PN();i=new nne({props:{descriptionId:t[2],labelId:t[3],step:t[4]}});let u=[{"aria-describedby":o=go(t[4].options.text)?null:t[2]},{"aria-labelledby":r=t[4].options.title?t[3]:null},t[1],{role:"dialog"},{tabindex:"0"}],d={};for(let h=0;h!!n.length)}function lne(t,n,e){let h,p,g,{classPrefix:i,element:o,descriptionId:r,firstFocusableElement:a,focusableElements:s,labelId:l,lastFocusableElement:c,step:u,dataStepId:d}=n;return function Ate(t){xN().$$.on_mount.push(t)}(()=>{e(1,d={[`data-${i}shepherd-step-id`]:u.id}),e(9,s=o.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),e(8,a=s[0]),e(10,c=s[s.length-1])}),r1(()=>{g!==u.options.classes&&function T(){(function D(G){if(mf(G)){const pe=NN(G);pe.length&&o.classList.remove(...pe)}})(g),g=u.options.classes,function H(G){if(mf(G)){const pe=NN(G);pe.length&&o.classList.add(...pe)}}(g)}()}),t.$$set=G=>{"classPrefix"in G&&e(11,i=G.classPrefix),"element"in G&&e(0,o=G.element),"descriptionId"in G&&e(2,r=G.descriptionId),"firstFocusableElement"in G&&e(8,a=G.firstFocusableElement),"focusableElements"in G&&e(9,s=G.focusableElements),"labelId"in G&&e(3,l=G.labelId),"lastFocusableElement"in G&&e(10,c=G.lastFocusableElement),"step"in G&&e(4,u=G.step),"dataStepId"in G&&e(1,d=G.dataStepId)},t.$$.update=()=>{16&t.$$.dirty&&(e(5,h=u.options&&u.options.cancelIcon&&u.options.cancelIcon.enabled),e(6,p=u.options&&u.options.title))},[o,d,r,l,u,h,p,G=>{const{tour:pe}=u;switch(G.keyCode){case 9:if(0===s.length){G.preventDefault();break}G.shiftKey?(document.activeElement===a||document.activeElement.classList.contains("shepherd-element"))&&(G.preventDefault(),c.focus()):document.activeElement===c&&(G.preventDefault(),a.focus());break;case 27:pe.options.exitOnEsc&&(G.stopPropagation(),u.cancel());break;case 37:pe.options.keyboardNavigation&&(G.stopPropagation(),pe.back());break;case 39:pe.options.keyboardNavigation&&(G.stopPropagation(),pe.next())}},a,s,c,i,()=>o,function le(G){Lu[G?"unshift":"push"](()=>{o=G,e(0,o)})}]}class cne extends as{constructor(n){super(),rs(this,n,lne,ine,os,{classPrefix:11,element:0,descriptionId:2,firstFocusableElement:8,focusableElements:9,labelId:3,lastFocusableElement:10,step:4,dataStepId:1,getElement:12})}get getElement(){return this.$$.ctx[12]}}class c1 extends GC{constructor(n,e={}){return super(n,e),this.tour=n,this.classPrefix=this.tour.options?nN(this.tour.options.classPrefix):"",this.styles=n.styles,this._resolvedAttachTo=null,tN(this),this._setOptions(e),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){(function bte(t){t.cleanup&&t.cleanup(),t.cleanup=null})(this),ZC(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){this.tour.modal.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=function Nee(t){const n=t.options.attachTo||{},e=Object.assign({},n);if(Yl(e.element)&&(e.element=e.element.call(t)),mf(e.element)){try{e.element=document.querySelector(e.element)}catch{}e.element||console.error(`The element for this Shepherd step was not found ${n.element}`)}return e}(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return null===this._resolvedAttachTo?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!(!this.el||this.el.hidden)}show(){return Yl(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(n){Object.assign(this.options,n),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){return this.shepherdElementComponent=new cne({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:`${this.id}-description`,labelId:`${this.id}-label`,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(n){const{element:e}=this._getResolvedAttachToOptions();Yl(this.options.scrollToHandler)?this.options.scrollToHandler(e):function Oee(t){return t instanceof Element}(e)&&"function"==typeof e.scrollIntoView&&e.scrollIntoView(n)}_getClassOptions(n){const e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,o=e&&e.classes?e.classes:"",r=[...(n.classes?n.classes:"").split(" "),...o.split(" ")],a=new Set(r);return Array.from(a).join(" ").trim()}_setOptions(n={}){let e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;e=VC({},e||{}),this.options=Object.assign({arrow:!0},e,n,function mte(t,n){return{floatingUIOptions:VC(t.floatingUIOptions||{},n.floatingUIOptions||{})}}(e,n));const{when:i}=this.options;this.options.classes=this._getClassOptions(n),this.destroy(),this.id=this.options.id||`step-${UC()}`,i&&Object.keys(i).forEach(o=>{this.on(o,i[o],this)})}_setupElements(){go(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&function Pee(t){const{event:n,selector:e}=t.options.advanceOn||{};if(!n)return console.error("advanceOn was defined, but no event name was passed.");{const i=function Ree(t,n){return e=>{if(n.isOpen()){const i=n.el&&e.currentTarget===n.el;(!go(t)&&e.currentTarget.matches(t)||i)&&n.tour.next()}}}(e,t);let o;try{o=document.querySelector(e)}catch{}if(!go(e)&&!o)return console.error(`No element was found for the selector supplied to advanceOn: ${e}`);o?(o.addEventListener(n,i),t.on("destroy",()=>o.removeEventListener(n,i))):(document.body.addEventListener(n,i,!0),t.on("destroy",()=>document.body.removeEventListener(n,i,!0)))}}(this),gte(this)}_show(){this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour._setupModal(),this.tour.modal.setupForStep(this),this._styleTargetElementForStep(this),this.el.hidden=!1,this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el.hidden=!1;const n=this.shepherdElementComponent.getElement(),e=this.target||document.body;e.classList.add(`${this.classPrefix}shepherd-enabled`),e.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(n){const e=n.target;e&&(n.options.highlightClass&&e.classList.add(n.options.highlightClass),e.classList.remove("shepherd-target-click-disabled"),!1===n.options.canClickTarget&&e.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const n=this.target||document.body;this.options.highlightClass&&n.classList.remove(this.options.highlightClass),n.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}}function hne(t){let n,e,i,o,r;return{c(){n=vN("svg"),e=vN("path"),ei(e,"d",t[2]),ei(n,"class",i=(t[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")},m(a,s){Ur(a,n,s),Pu(n,e),t[11](n),o||(r=gb(n,"touchmove",t[3]),o=!0)},p(a,[s]){4&s&&ei(e,"d",a[2]),2&s&&i!==(i=(a[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")&&ei(n,"class",i)},i:ur,o:ur,d(a){a&&Tr(n),t[11](null),o=!1,r()}}}function FN(t){if(!t)return null;const e=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return"hidden"!==e&&"visible"!==e&&t.scrollHeight>=t.clientHeight?t:FN(t.parentElement)}function pne(t,n,e){let{element:i,openingProperties:o}=n;UC();let a,s,r=!1;function c(){e(4,o={width:0,height:0,x:0,y:0,r:0})}function u(){e(1,r=!1),D()}function d(le=0,G=0,pe,_e){if(_e){const{y:be,height:Be}=function fne(t,n){const e=t.getBoundingClientRect();let i=e.y||e.top,o=e.bottom||i+e.height;if(n){const a=n.getBoundingClientRect(),s=a.y||a.top,l=a.bottom||s+a.height;i=Math.max(i,s),o=Math.min(o,l)}return{y:i,height:Math.max(o-i,0)}}(_e,pe),{x:Fe,width:Qe,left:Re}=_e.getBoundingClientRect();e(4,o={width:Qe+2*le,height:Be+2*le,x:(Fe||Re)-le,y:be-le,r:G})}else c()}function p(){e(1,r=!0)}c();const g=le=>{le.preventDefault()};function D(){a&&(cancelAnimationFrame(a),a=void 0),window.removeEventListener("touchmove",g,{passive:!1})}return t.$$set=le=>{"element"in le&&e(0,i=le.element),"openingProperties"in le&&e(4,o=le.openingProperties)},t.$$.update=()=>{16&t.$$.dirty&&e(2,s=function dne({width:t,height:n,x:e=0,y:i=0,r:o=0}){const{innerWidth:r,innerHeight:a}=window,{topLeft:s=0,topRight:l=0,bottomRight:c=0,bottomLeft:u=0}="number"==typeof o?{topLeft:o,topRight:o,bottomRight:o,bottomLeft:o}:o;return`M${r},${a}H0V0H${r}V${a}ZM${e+s},${i}a${s},${s},0,0,0-${s},${s}V${n+i-u}a${u},${u},0,0,0,${u},${u}H${t+e-c}a${c},${c},0,0,0,${c}-${c}V${i+l}a${l},${l},0,0,0-${l}-${l}Z`}(o))},[i,r,s,le=>{le.stopPropagation()},o,()=>i,c,u,d,function h(le){D(),le.tour.options.useModalOverlay?(function H(le){const{modalOverlayOpeningPadding:G,modalOverlayOpeningRadius:pe}=le.options,_e=FN(le.target),be=()=>{a=void 0,d(G,pe,_e,le.target),a=requestAnimationFrame(be)};be(),function T(){window.addEventListener("touchmove",g,{passive:!1})}()}(le),p()):u()},p,function oe(le){Lu[le?"unshift":"push"](()=>{i=le,e(0,i)})}]}class gne extends as{constructor(n){super(),rs(this,n,pne,hne,os,{element:0,openingProperties:4,getElement:5,closeModalOpening:6,hide:7,positionModal:8,setupForStep:9,show:10})}get getElement(){return this.$$.ctx[5]}get closeModalOpening(){return this.$$.ctx[6]}get hide(){return this.$$.ctx[7]}get positionModal(){return this.$$.ctx[8]}get setupForStep(){return this.$$.ctx[9]}get show(){return this.$$.ctx[10]}}const Xl=new GC,bne=typeof window>"u";class LN{constructor(){}}function _ne(t){const{classes:n,disabled:e,label:i,secondary:o,type:r,text:a}=t;if(!r)return t;if(-1===["back","cancel","next"].indexOf(r))throw new Error("'type' property must be one of 'back', 'cancel', or 'next'");return{action:this[r].bind(this),classes:n,disabled:e,label:i,secondary:o,text:a}}Object.assign(Xl,bne?{Tour:LN,Step:LN}:{Tour:class mne extends GC{constructor(n={}){return super(n),tN(this),this.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},n),this.classPrefix=nN(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(o=>{(r=>{this.on(r,a=>{(a=a||{}).tour=this,Xl.trigger(r,a)})})(o)}),this._setTourID(),this}addStep(n,e){let i=n;return i instanceof c1?i.tour=this:i=new c1(this,i),go(e)?this.steps.push(i):this.steps.splice(e,0,i),i}addSteps(n){return Array.isArray(n)&&n.forEach(e=>{this.addStep(e)}),this}back(){const n=this.steps.indexOf(this.currentStep);this.show(n-1,!1)}cancel(){var n=this;return(0,y.Z)(function*(){if(n.options.confirmCancel){const i=n.options.confirmCancelMessage||"Are you sure you want to stop the tour?";("function"==typeof n.options.confirmCancel?yield n.options.confirmCancel():window.confirm(i))&&n._done("cancel")}else n._done("cancel")})()}complete(){this._done("complete")}getById(n){return this.steps.find(e=>e.id===n)}getCurrentStep(){return this.currentStep}hide(){const n=this.getCurrentStep();if(n)return n.hide()}isActive(){return Xl.activeTour===this}next(){const n=this.steps.indexOf(this.currentStep);n===this.steps.length-1?this.complete():this.show(n+1,!0)}removeStep(n){const e=this.getCurrentStep();this.steps.some((i,o)=>{if(i.id===n)return i.isOpen()&&i.hide(),i.destroy(),this.steps.splice(o,1),!0}),e&&e.id===n&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(n=0,e=!0){const i=mf(n)?this.getById(n):this.steps[n];i&&(this._updateStateBeforeShow(),Yl(i.options.showOn)&&!i.options.showOn()?this._skipStep(i,e):(this.trigger("show",{step:i,previous:this.currentStep}),this.currentStep=i,i.show()))}start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this._setupModal(),this._setupActiveTour(),this.next()}_done(n){const e=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(i=>i.destroy()),function une(t){if(t){const{steps:n}=t;n.forEach(e=>{e.options&&!1===e.options.canClickTarget&&e.options.attachTo&&e.target instanceof HTMLElement&&e.target.classList.remove("shepherd-target-click-disabled")})}}(this),this.trigger(n,{index:e}),Xl.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),("cancel"===n||"complete"===n)&&this.modal){const i=document.querySelector(".shepherd-modal-overlay-container");i&&i.remove()}ZC(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),Xl.activeTour=this}_setupModal(){this.modal=new gne({target:this.options.modalContainer||document.body,props:{classPrefix:this.classPrefix,styles:this.styles}})}_skipStep(n,e){const i=this.steps.indexOf(n);i===this.steps.length-1?this.complete():this.show(e?i+1:i-1,e)}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(){this.id=`${this.options.tourName||"tour"}--${UC()}`}},Step:c1});let jN=(()=>{class t{constructor(){this.confirmCancel=!1,this.defaultStepOptions={},this.errorTitle=null,this.isActive=!1,this.keyboardNavigation=!0,this.modal=!1,this.requiredElements=[],this.tourName=void 0}back(){this.tourObject.back()}cancel(){this.tourObject.cancel()}complete(){this.tourObject.complete()}hide(){this.tourObject.hide()}next(){this.tourObject.next()}show(e){this.tourObject.show(e)}start(){this.isActive=!0,this.tourObject.start()}onTourFinish(e){this.isActive=!1}addSteps(e){this._initialize();const i=this.tourObject;if(e&&Array.isArray(e)&&0!==e.length){if(!this.requiredElementsPresent())return void i.addStep({buttons:[{text:"Exit",action:i.cancel}],id:"error",title:this.errorTitle,text:[this.messageForUser]});e.forEach(o=>{o.buttons&&(o.buttons=o.buttons.map(_ne.bind(this),this)),i.addStep(o)})}}requiredElementsPresent(){let e=!0;return this.requiredElements.forEach(i=>{const o=document.querySelector(i.selector);e&&(!o||function yne(t){return 0===t.offsetWidth&&0===t.offsetHeight}(o))&&(e=!1,this.errorTitle=i.title,this.messageForUser=i.message)}),e}_initialize(){const e=new Xl.Tour({confirmCancel:this.confirmCancel,confirmCancelMessage:this.confirmCancelMessage,defaultStepOptions:this.defaultStepOptions,keyboardNavigation:this.keyboardNavigation,tourName:this.tourName,useModalOverlay:this.modal});e.on("complete",this.onTourFinish.bind(this,"complete")),e.on("cancel",this.onTourFinish.bind(this,"cancel")),this.tourObject=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var t;O(7850);const wne=(t="file:///home/runner/work/Studio-Web/Studio-Web/node_modules/soundswallower/soundswallower.web.js",function(e={}){var i,o;(e=typeof e<"u"?e:{}).ready=new Promise(function(xe,fe){i=xe,o=fe});var b,r=Object.assign({},e),s="./this.program",l=(xe,fe)=>{throw fe},d="";typeof document<"u"&&document.currentScript&&(d=document.currentScript.src),t&&(d=t),d=0!==d.indexOf("blob:")?d.substr(0,d.replace(/[?#].*/,"").lastIndexOf("/")+1):"";var oe,D=e.print||console.log.bind(console),H=e.printErr||console.warn.bind(console);Object.assign(e,r),r=null,e.thisProgram&&(s=e.thisProgram),e.quit&&(l=e.quit),e.wasmBinary&&(oe=e.wasmBinary);var le=e.noExitRuntime||!0;"object"!=typeof WebAssembly&&Wn("no native wasm support detected");var G,Xe,ct,At,pe=!1,be=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Be(xe,fe,we){for(var Oe=fe+we,st=fe;xe[st]&&!(st>=Oe);)++st;if(st-fe>16&&xe.buffer&&be)return be.decode(xe.subarray(fe,st));for(var mt="";fe>10,56320|1023&Zi)}}else mt+=String.fromCharCode((31&Dt)<<6|Rt)}else mt+=String.fromCharCode(Dt)}return mt}function Fe(xe,fe){return xe?Be(ct,xe,fe):""}function on(){var xe=G.buffer;e.HEAP_DATA_VIEW=At=new DataView(xe),e.HEAP8=Xe=new Int8Array(xe),e.HEAP16=new Int16Array(xe),e.HEAP32=new Int32Array(xe),e.HEAPU8=ct=new Uint8Array(xe),e.HEAPU16=new Uint16Array(xe),e.HEAPU32=new Uint32Array(xe),e.HEAPF32=new Float32Array(xe),e.HEAPF64=new Float64Array(xe)}var sn=[],ln=[],Vo=[],ft=0,jt=null,ai=null;function Wn(xe){e.onAbort&&e.onAbort(xe),H(xe="Aborted("+xe+")"),pe=!0,xe+=". Build with -sASSERTIONS for more info.";var fe=new WebAssembly.RuntimeError(xe);throw o(fe),fe}var fr;function Qr(xe){return xe.startsWith("data:application/octet-stream;base64,")}function Xu(xe){try{if(xe==fr&&oe)return new Uint8Array(oe);if(b)return b(xe);throw"both async and sync fetching of the wasm failed"}catch(fe){Wn(fe)}}function ny(xe,fe,we){return function wx(xe){return oe||"function"!=typeof fetch?Promise.resolve().then(function(){return Xu(xe)}):fetch(xe,{credentials:"same-origin"}).then(function(fe){if(!fe.ok)throw"failed to load wasm binary file at '"+xe+"'";return fe.arrayBuffer()}).catch(function(){return Xu(xe)})}(xe).then(function(Oe){return WebAssembly.instantiate(Oe,fe)}).then(function(Oe){return Oe}).then(we,function(Oe){H("failed to asynchronously prepare wasm: "+Oe),Wn(Oe)})}function Phe(xe){this.name="ExitStatus",this.message="Program terminated with exit("+xe+")",this.status=xe}function Cx(xe){return At.getInt32(xe,!0)}function xx(xe){return At.getUint32(xe,!0)}function iy(xe,fe){At.setUint32(xe,fe,!0)}function kr(xe){var fe=function Re(xe){for(var fe=0,we=0;we=55296&&Oe<=57343?(fe+=4,++we):fe+=3}return fe}(xe)+1,we=Vj(fe);return we&&function Qe(xe,fe,we,Oe){if(!(Oe>0))return 0;for(var st=we,mt=we+Oe-1,Dt=0;Dt=55296&&Rt<=57343&&(Rt=65536+((1023&Rt)<<10)|1023&xe.charCodeAt(++Dt)),Rt<=127){if(we>=mt)break;fe[we++]=Rt}else if(Rt<=2047){if(we+1>=mt)break;fe[we++]=192|Rt>>6,fe[we++]=128|63&Rt}else if(Rt<=65535){if(we+2>=mt)break;fe[we++]=224|Rt>>12,fe[we++]=128|Rt>>6&63,fe[we++]=128|63&Rt}else{if(we+3>=mt)break;fe[we++]=240|Rt>>18,fe[we++]=128|Rt>>12&63,fe[we++]=128|Rt>>6&63,fe[we++]=128|63&Rt}}fe[we]=0}(xe,Xe,we,fe),we}function Sx(xe){for(;xe.length>0;)xe.shift()(e)}function jf(xe,fe){Xe.set(xe,fe)}function oy(xe,fe="i8"){switch(fe.endsWith("*")&&(fe="*"),fe){case"i1":case"i8":return Xe[xe>>0];case"i16":return function Lhe(xe){return At.getInt16(xe,!0)}(2*(xe>>1));case"i32":case"i64":return Cx(4*(xe>>2));case"float":return function Nhe(xe){return At.getFloat32(xe,!0)}(4*(xe>>2));case"double":return function Fhe(xe){return At.getFloat64(xe,!0)}(8*(xe>>3));case"*":return xx(4*(xe>>2));default:Wn("invalid type for getValue: "+fe)}}e.locateFile?Qr(fr="soundswallower.web.wasm")||(fr=function h(xe){return e.locateFile?e.locateFile(xe,d):d+xe}(fr)):fr=new URL(O(3970),O.b).href;var Bf={varargs:void 0,get:function(){return Bf.varargs+=4,Cx(4*(Bf.varargs-4>>2))},getStr:function(xe){return Fe(xe)}};function Whe(xe){var fe=G.buffer;try{return G.grow(xe-fe.byteLength+65535>>>16),on(),1}catch{}}var Dx={};function Hf(){if(!Hf.strings){var fe={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:s||"./this.program"};for(var we in Dx)void 0===Dx[we]?delete fe[we]:fe[we]=Dx[we];var Oe=[];for(var we in fe)Oe.push(we+"="+fe[we]);Hf.strings=Oe}return Hf.strings}var afe=[null,[],[]];function sfe(xe,fe){var we=afe[xe];0===fe||10===fe?((1===xe?D:H)(Be(we,0)),we.length=0):we.push(fe)}var ry,cfe={d:function jhe(xe,fe,we){return Bf.varargs=we,0},g:function Bhe(xe,fe){},i:function Hhe(xe,fe,we){return Bf.varargs=we,0},r:function Yhe(xe,fe,we,Oe){},e:function zhe(xe,fe,we,Oe){Bf.varargs=Oe},f:function $he(xe,fe){},n:function Vhe(xe,fe,we,Oe,st,mt,Dt){return-52},o:function Zhe(xe,fe,we,Oe,st,mt){},j:function Ghe(){return Date.now()},m:function Uhe(){return 2147483648},l:function Xhe(xe){var zn,fe=ct.length,we=2147483648;if((xe>>>=0)>we)return!1;for(var st=1;st<=4;st*=2){var mt=fe*(1+.2/st);if(mt=Math.min(mt,xe+100663296),Whe(Math.min(we,(zn=Math.max(xe,mt))+(65536-zn%65536)%65536)))return!0}return!1},p:function Khe(xe,fe){var we=0;return Hf().forEach(function(Oe,st){var mt=fe+we;iy(4*(xe+4*st>>2),mt),function Qhe(xe,fe,we){for(var Oe=0;Oe>0]=xe.charCodeAt(Oe);we||(Xe[fe>>0]=0)}(Oe,mt),we+=Oe.length+1}),0},q:function qhe(xe,fe){var we=Hf();iy(4*(xe>>2),we.length);var Oe=0;return we.forEach(function(st){Oe+=st.length+1}),iy(4*(fe>>2),Oe),0},a:function tfe(xe,fe){!function efe(xe){(function dt(){return le})()||(e.onExit&&e.onExit(xe),pe=!0),l(xe,new Phe(xe))}(xe)},b:function ife(xe){return 52},h:function ofe(xe,fe,we,Oe){return 52},k:function rfe(xe,fe,we,Oe,st){return 70},c:function lfe(xe,fe,we,Oe){for(var st=0,mt=0;mt>2)),Rt=xx(4*(fe+4>>2));fe+=8;for(var zn=0;zn>2),st),0}},Vj=(function Rhe(){var xe={a:cfe};function fe(Oe,st){var mt=Oe.exports;return e.asm=mt,G=e.asm.s,on(),function _x(xe){ln.unshift(xe)}(e.asm.t),function Sn(xe){if(ft--,e.monitorRunDependencies&&e.monitorRunDependencies(ft),0==ft&&(null!==jt&&(clearInterval(jt),jt=null),ai)){var fe=ai;ai=null,fe()}}(),mt}if(function si(xe){ft++,e.monitorRunDependencies&&e.monitorRunDependencies(ft)}(),e.instantiateWasm)try{return e.instantiateWasm(xe,fe)}catch(Oe){H("Module.instantiateWasm callback failed with error: "+Oe),o(Oe)}(function Ohe(xe,fe,we,Oe){return xe||"function"!=typeof WebAssembly.instantiateStreaming||Qr(fe)||"function"!=typeof fetch?ny(fe,we,Oe):fetch(fe,{credentials:"same-origin"}).then(function(st){return WebAssembly.instantiateStreaming(st,we).then(Oe,function(Dt){return H("wasm streaming compile failed: "+Dt),H("falling back to ArrayBuffer instantiation"),ny(fe,we,Oe)})})})(oe,fr,xe,function we(Oe){fe(Oe.instance)}).catch(o)}(),e._fsg_set_states=function(){return(e._fsg_set_states=e.asm.u).apply(null,arguments)},e._cmd_ln_hash_iter=function(){return(e._cmd_ln_hash_iter=e.asm.v).apply(null,arguments)},e._hash_iter_key=function(){return(e._hash_iter_key=e.asm.w).apply(null,arguments)},e._set_mdef=function(){return(e._set_mdef=e.asm.x).apply(null,arguments)},e._set_tmat=function(){return(e._set_tmat=e.asm.y).apply(null,arguments)},e._load_gmm=function(){return(e._load_gmm=e.asm.z).apply(null,arguments)},e._spectrogram=function(){return(e._spectrogram=e.asm.A).apply(null,arguments)},e._config_int=function(){return(e._config_int=e.asm.B).apply(null,arguments)},e._config_str=function(){return(e._config_str=e.asm.D).apply(null,arguments)},e._config_float=function(){return(e._config_float=e.asm.E).apply(null,arguments)},e._config_free=function(){return(e._config_free=e.asm.F).apply(null,arguments)},e._ckd_free_2d=function(){return(e._ckd_free_2d=e.asm.G).apply(null,arguments)},e._acmod_reinit_feat=function(){return(e._acmod_reinit_feat=e.asm.H).apply(null,arguments)},e._s3file_free=function(){return(e._s3file_free=e.asm.I).apply(null,arguments)},e._bin_mdef_read_s3file=function(){return(e._bin_mdef_read_s3file=e.asm.J).apply(null,arguments)},e._malloc=function(){return(Vj=e._malloc=e.asm.K).apply(null,arguments)});function Zj(){function xe(){ry||(ry=!0,e.calledRun=!0,!pe&&(function ro(){Sx(ln)}(),i(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),function Ar(){if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)xe=e.postRun.shift(),Vo.unshift(xe);var xe;Sx(Vo)}()))}ft>0||(function Cn(){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)xe=e.preRun.shift(),sn.unshift(xe);var xe;Sx(sn)}(),ft>0)||(e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),xe()},1)):xe())}if(e._free=function(){return(e._free=e.asm.L).apply(null,arguments)},e._config_parse_json=function(){return(e._config_parse_json=e.asm.M).apply(null,arguments)},e._config_set_str=function(){return(e._config_set_str=e.asm.N).apply(null,arguments)},e._config_serialize_json=function(){return(e._config_serialize_json=e.asm.O).apply(null,arguments)},e._hash_table_iter_next=function(){return(e._hash_table_iter_next=e.asm.P).apply(null,arguments)},e._config_typeof=function(){return(e._config_typeof=e.asm.Q).apply(null,arguments)},e._config_set=function(){return(e._config_set=e.asm.R).apply(null,arguments)},e._config_set_int=function(){return(e._config_set_int=e.asm.S).apply(null,arguments)},e._config_set_float=function(){return(e._config_set_float=e.asm.T).apply(null,arguments)},e._decoder_init_cleanup=function(){return(e._decoder_init_cleanup=e.asm.U).apply(null,arguments)},e._decoder_init_fe=function(){return(e._decoder_init_fe=e.asm.V).apply(null,arguments)},e._decoder_init_feat_s3file=function(){return(e._decoder_init_feat_s3file=e.asm.W).apply(null,arguments)},e._decoder_init_acmod_pre=function(){return(e._decoder_init_acmod_pre=e.asm.X).apply(null,arguments)},e._decoder_init_acmod_post=function(){return(e._decoder_init_acmod_post=e.asm.Y).apply(null,arguments)},e._decoder_init_dict_s3file=function(){return(e._decoder_init_dict_s3file=e.asm.Z).apply(null,arguments)},e._decoder_set_fsg=function(){return(e._decoder_set_fsg=e.asm._).apply(null,arguments)},e._fsg_model_free=function(){return(e._fsg_model_free=e.asm.$).apply(null,arguments)},e._jsgf_get_rule=function(){return(e._jsgf_get_rule=e.asm.aa).apply(null,arguments)},e._jsgf_get_public_rule=function(){return(e._jsgf_get_public_rule=e.asm.ba).apply(null,arguments)},e._jsgf_build_fsg=function(){return(e._jsgf_build_fsg=e.asm.ca).apply(null,arguments)},e._jsgf_grammar_free=function(){return(e._jsgf_grammar_free=e.asm.da).apply(null,arguments)},e._decoder_init_grammar_s3file=function(){return(e._decoder_init_grammar_s3file=e.asm.ea).apply(null,arguments)},e._jsgf_parse_string=function(){return(e._jsgf_parse_string=e.asm.fa).apply(null,arguments)},e._decoder_create=function(){return(e._decoder_create=e.asm.ga).apply(null,arguments)},e._decoder_free=function(){return(e._decoder_free=e.asm.ha).apply(null,arguments)},e._decoder_config=function(){return(e._decoder_config=e.asm.ia).apply(null,arguments)},e._decoder_logmath=function(){return(e._decoder_logmath=e.asm.ja).apply(null,arguments)},e._decoder_fe=function(){return(e._decoder_fe=e.asm.ka).apply(null,arguments)},e._decoder_set_align_text=function(){return(e._decoder_set_align_text=e.asm.la).apply(null,arguments)},e._fsg_model_init=function(){return(e._fsg_model_init=e.asm.ma).apply(null,arguments)},e._fsg_model_word_add=function(){return(e._fsg_model_word_add=e.asm.na).apply(null,arguments)},e._fsg_model_trans_add=function(){return(e._fsg_model_trans_add=e.asm.oa).apply(null,arguments)},e._decoder_seg_iter=function(){return(e._decoder_seg_iter=e.asm.pa).apply(null,arguments)},e._seg_iter_next=function(){return(e._seg_iter_next=e.asm.qa).apply(null,arguments)},e._decoder_add_word=function(){return(e._decoder_add_word=e.asm.ra).apply(null,arguments)},e._decoder_lookup_word=function(){return(e._decoder_lookup_word=e.asm.sa).apply(null,arguments)},e._decoder_start_utt=function(){return(e._decoder_start_utt=e.asm.ta).apply(null,arguments)},e._decoder_process_float32=function(){return(e._decoder_process_float32=e.asm.ua).apply(null,arguments)},e._decoder_end_utt=function(){return(e._decoder_end_utt=e.asm.va).apply(null,arguments)},e._decoder_hyp=function(){return(e._decoder_hyp=e.asm.wa).apply(null,arguments)},e._seg_iter_word=function(){return(e._seg_iter_word=e.asm.xa).apply(null,arguments)},e._seg_iter_frames=function(){return(e._seg_iter_frames=e.asm.ya).apply(null,arguments)},e._decoder_result_json=function(){return(e._decoder_result_json=e.asm.za).apply(null,arguments)},e._fsg_model_null_trans_add=function(){return(e._fsg_model_null_trans_add=e.asm.Aa).apply(null,arguments)},e._logmath_log=function(){return(e._logmath_log=e.asm.Ba).apply(null,arguments)},e._endpointer_init=function(){return(e._endpointer_init=e.asm.Ca).apply(null,arguments)},e._vad_frame_length=function(){return(e._vad_frame_length=e.asm.Da).apply(null,arguments)},e._vad_frame_size=function(){return(e._vad_frame_size=e.asm.Ea).apply(null,arguments)},e._endpointer_vad=function(){return(e._endpointer_vad=e.asm.Fa).apply(null,arguments)},e._endpointer_end_stream=function(){return(e._endpointer_end_stream=e.asm.Ga).apply(null,arguments)},e._endpointer_process=function(){return(e._endpointer_process=e.asm.Ha).apply(null,arguments)},e._endpointer_in_speech=function(){return(e._endpointer_in_speech=e.asm.Ia).apply(null,arguments)},e._endpointer_speech_start=function(){return(e._endpointer_speech_start=e.asm.Ja).apply(null,arguments)},e._endpointer_speech_end=function(){return(e._endpointer_speech_end=e.asm.Ka).apply(null,arguments)},e._s3file_init=function(){return(e._s3file_init=e.asm.La).apply(null,arguments)},e._tmat_init_s3file=function(){return(e._tmat_init_s3file=e.asm.Ma).apply(null,arguments)},ai=function xe(){ry||Zj(),ry||(ai=xe)},e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();function Gj(xe){return Ex.apply(this,arguments)}function Ex(){return(Ex=(0,y.Z)(function*(xe){const fe=yield fetch(xe);if(fe.ok)return fe.json();throw new Error("Failed to fetch "+xe+" :"+fe.statusText)})).apply(this,arguments)}function Kr(xe){return Tx.apply(this,arguments)}function Tx(){return(Tx=(0,y.Z)(function*(xe){let fe;const we=yield fetch(xe);if(!we.ok)throw new Error("Failed to fetch "+xe+" :"+we.statusText);{const Dt=yield(yield we.blob()).arrayBuffer();fe=new Uint8Array(Dt)}const Oe=fe.length+1,st=e._malloc(Oe);if(0==st)throw new Error("Failed to allocate "+Oe+" bytes for "+xe);return jf(fe,st),Xe[st+Oe]=0,e._s3file_init(st,Oe-1)})).apply(this,arguments)}return Zj(),typeof e.modelBase>"u"&&(e.modelBase="model/"),typeof e.defaultModel>"u"&&(e.defaultModel="en-us"),e.get_model_path=function Ape(xe){return e.modelBase+xe},e.load_json=Gj,e.Decoder=class Ipe{constructor(fe){this.initialized=!1,void 0===fe&&(fe={}),null!==e.defaultModel&&void 0===fe.hmm&&(fe.hmm=e.get_model_path(e.defaultModel));const we=kr(JSON.stringify(fe)),Oe=e._config_parse_json(0,we);if(e._free(we),this.cdecoder=e._decoder_create(Oe),0==this.cdecoder)throw new Error("Failed to construct Decoder")}delete(){0!=this.cdecoder&&e._decoder_free(this.cdecoder),this.cdecoder=0}get_config_json(){const fe=e._decoder_config(this.cdecoder);return Fe(e._config_serialize_json(fe))}set_config(fe,we){const Oe=kr(fe),st=e._decoder_config(this.cdecoder),mt=e._config_typeof(st,Oe);if(0==mt)throw e._free(Oe),new ReferenceError(`Unknown configuration parameter ${fe}`);if(8&mt){const Dt=kr(we);e._config_set_str(st,Oe,Dt),e._free(Dt)}else if(4&mt)e._config_set_float(st,Oe,we);else{if(!(18&mt))return e._free(Oe),!1;e._config_set_int(st,Oe,we)}return e._free(Oe),!0}unset_config(fe){const we=kr(fe),Oe=e._decoder_config(this.cdecoder),st=e._config_typeof(Oe,we);if(0==st)throw e._free(we),new ReferenceError(`Unknown configuration parameter ${fe}`);e._config_set(Oe,we,0,st),e._free(we)}get_config(fe){const we=kr(fe),Oe=e._decoder_config(this.cdecoder),st=e._config_typeof(Oe,we);if(0==st)throw e._free(we),new ReferenceError(`Unknown configuration parameter ${fe}`);let mt;if(8&st){const Dt=e._config_str(Oe,we);mt=0==Dt?null:Fe(Dt)}else 4&st?mt=e._config_float(Oe,we):2&st?mt=e._config_int(Oe,we):16&st&&(mt=!!e._config_int(Oe,we));if(e._free(we),void 0===mt)throw new TypeError(`Unsupported type ${st} for parameter ${fe}`);return mt}has_config(fe){const we=kr(fe),Oe=e._decoder_config(this.cdecoder),st=0!=e._config_typeof(Oe,we);return e._free(we),st}initialize(){var fe=this;return(0,y.Z)(function*(){if(0==fe.cdecoder)throw new Error("Decoder was somehow not constructed (ps==0)");yield fe.init_featparams(),yield fe.init_cleanup(),yield fe.init_fe(),yield fe.init_feat(),fe.cacmod=yield fe.init_acmod(),yield fe.load_acmod_files(),yield fe.init_dict(),yield fe.init_grammar(),fe.initialized=!0})()}init_featparams(){var fe=this;return(0,y.Z)(function*(){const we=yield Gj(fe.get_config("featparams"));for(const Oe in we)fe.has_config(Oe)&&fe.set_config(Oe,we[Oe]);return we})()}init_cleanup(){var fe=this;return(0,y.Z)(function*(){if(e._decoder_init_cleanup(fe.cdecoder)<0)throw new Error("Failed to clean up decoder internals")})()}init_fe(){var fe=this;return(0,y.Z)(function*(){const we=e._decoder_init_fe(fe.cdecoder);if(0==we)throw new Error("Failed to initialize frontend");return we})()}init_feat(){var fe=this;return(0,y.Z)(function*(){let we;try{const Oe=yield Kr(fe.get_config("lda"));we=e._decoder_init_feat_s3file(fe.cdecoder,Oe)}catch{we=e._decoder_init_feat_s3file(fe.cdecoder,0)}if(0==we)throw new Error("Failed to initialize feature module");return we})()}init_acmod(){var fe=this;return(0,y.Z)(function*(){const we=e._decoder_init_acmod_pre(fe.cdecoder);if(0==we)throw new Error("Failed to initialize acoustic model");return we})()}load_acmod_files(){var fe=this;return(0,y.Z)(function*(){yield fe.load_mdef(),yield fe.load_tmat(fe.get_config("tmat"));const we=fe.get_config("mean"),Oe=fe.get_config("var"),st=fe.get_config("sendump"),mt=fe.get_config("mixw");if(yield fe.load_gmm(we,Oe,st,mt),e._decoder_init_acmod_post(fe.cdecoder)<0)throw new Error("Failed to initialize acoustic scoring")})()}load_mdef(){var fe=this;return(0,y.Z)(function*(){const we=yield Kr(fe.get_config("mdef"));if(0==we)throw new Error("Failed to read mdef from "+fe.get_config("mdef"));const Oe=e._bin_mdef_read_s3file(we,fe.get_config("cionly"));if(e._s3file_free(we),0==Oe)throw new Error("Failed to read mdef from "+fe.get_config("mdef"));return e._set_mdef(fe.cdecoder,Oe),Oe})()}load_tmat(fe){var we=this;return(0,y.Z)(function*(){const Oe=yield Kr(fe),st=e._decoder_logmath(we.cdecoder),mt=we.get_config("tmatfloor"),Dt=e._tmat_init_s3file(Oe,st,mt);if(e._s3file_free(Oe),0==Dt)throw new Error("Failed to read tmat");return e._set_tmat(we.cdecoder,Dt),Dt})()}load_gmm(fe,we,Oe,st){var mt=this;return(0,y.Z)(function*(){const Dt=yield Kr(fe),Rt=yield Kr(we);var zn,Zi;try{zn=yield Kr(Oe),Zi=0}catch{zn=0,Zi=yield Kr(st)}if(e._load_gmm(mt.cdecoder,Dt,Rt,Zi,zn)<0)throw new Error("Failed to load GMM parameters")})()}init_dict(){var fe=this;return(0,y.Z)(function*(){let we,Oe;try{we=yield Kr(fe.get_config("dict"))}catch{we=0}try{Oe=yield Kr(fe.get_config("fdict"))}catch{Oe=0}if(0==e._decoder_init_dict_s3file(fe.cdecoder,we,Oe))throw new Error("Failed to initialize dictionaries")})()}init_grammar(){var fe=this;return(0,y.Z)(function*(){let we=0,Oe=0;const st=fe.get_config("jsgf");null!=st&&(Oe=yield Kr(st));const mt=fe.get_config("fsg");if(null!=mt&&(we=yield Kr(mt)),(we||Oe)&&e._decoder_init_grammar_s3file(fe.cdecoder,we,Oe)<0)throw new Error("Failed to initialize grammar")})()}assert_initialized(){if(!this.initialized)throw new Error("Decoder not yet initialized")}reinitialize_audio(){var fe=this;return(0,y.Z)(function*(){fe.assert_initialized();const we=yield fe.init_fe(),Oe=yield fe.init_feat();if(e._acmod_reinit_feat(fe.cacmod,we,Oe)<0)throw new Error("Failed to reinitialize audio parameters")})()}start(){if(this.assert_initialized(),e._decoder_start_utt(this.cdecoder)<0)throw new Error("Failed to start utterance processing")}stop(){if(this.assert_initialized(),e._decoder_end_utt(this.cdecoder)<0)throw new Error("Failed to stop utterance processing")}process_audio(fe,we=!1,Oe=!1){this.assert_initialized();const st=fe.length*fe.BYTES_PER_ELEMENT,mt=e._malloc(st);jf(new Uint8Array(fe.buffer,fe.byteOffset,st),mt);const Rt=e._decoder_process_float32(this.cdecoder,mt,st/4,we,Oe);if(e._free(mt),Rt<0)throw new Error("Utterance processing failed");return Rt}get_text(){return this.assert_initialized(),Fe(e._decoder_hyp(this.cdecoder,0))}get_alignment({start:fe=0,align_level:we=0}={}){if(this.assert_initialized(),we>2)throw new Error(`Invalid align_level ${we}`);const st=Fe(e._decoder_result_json(this.cdecoder,fe,we));return JSON.parse(st)}lookup_word(fe){this.assert_initialized();const we=kr(fe),Oe=e._decoder_lookup_word(this.cdecoder,we);return e._free(we),0==Oe?null:Fe(Oe)}add_words(...fe){this.assert_initialized();for(let we=0;weDt>0?32767*Dt:32768*Dt),Oe=new Uint8Array(we.buffer),st=e._malloc(Oe.length);jf(Oe,st);const mt=e._endpointer_process(this.cep,st);if(e._free(st),0!=mt){const Dt=new Int16Array(Xe.buffer,mt,this.get_frame_size());return Float32Array.from(Dt,Rt=>Rt>0?Rt/32767:Rt/32768)}return null}end_stream(fe){const we=Int16Array.from(fe.map(Rt=>Rt>0?32767*Rt:32768*Rt)),Oe=new Uint8Array(we.buffer),st=e._malloc(Oe.length);jf(Oe,st);const mt=e._malloc(4),Dt=e._endpointer_end_stream(this.cep,st,we.length,mt);if(e._free(mt),e._free(st),0!=Dt){const Rt=oy(mt,"i32"),zn=new Int16Array(Xe.buffer,Dt,2*Rt);return Float32Array.from(zn,Zi=>Zi>0?Zi/32767:Zi/32768)}return null}},e.ready});var bb,Us=function(t){return t.strict="strict",t.moderate="moderate",t.loose="loose",t}(Us||{});let BN=(()=>{class t{constructor(){this.modelLoaded=new hi(!1),this.mode=Us.strict,this.beamParams={strict:{beam:1e-100,pbeam:1e-100,wbeam:1e-80},moderate:{beam:1e-200,pbeam:1e-200,wbeam:1e-160},loose:{beam:0,pbeam:0,wbeam:0}}}preload(){var e=this;return(0,y.Z)(function*(){const i=new bb.Decoder;return i.initialize().finally(()=>{e.modelLoaded.next(!0),i.delete()})})()}loadModule$(){return bi(void 0===bb?wne().then(e=>(bb=e,this.preload())):this.preload())}align$(e,i){const o=i.text_ids,r=i.lexicon,a=i.processed_ras;return new On(s=>{const l=new bb.Decoder({loglevel:"INFO",beam:this.beamParams[this.mode].beam,wbeam:this.beamParams[this.mode].wbeam,pbeam:this.beamParams[this.mode].pbeam,samprate:e.sampleRate});l.unset_config("dict");let c=!1;return l.initialize().then((0,y.Z)(function*(){l.add_words(...r),l.set_align_text(o),l.start();const u=e.getChannelData(0);let h=0;for(s.next({pos:h,length:u.length});h8192&&(g=8192),yield new Promise(b=>{setTimeout(()=>{l.process_audio(u.subarray(h,h+g),!1,!1),b()},0)}),h+=g,s.next({pos:h,length:u.length}),c)return void l.stop()}l.stop();const p=l.get_alignment();if(console.log(`hypseg is ${p}`),void 0===p.w||0==p.w.length)throw new Error("No alignment found");s.next({pos:h,length:u.length,hypseg:p,xml:a}),s.complete()})).catch(u=>{s.error(u)}).finally(()=>{l.delete()}),()=>{c=!0}})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ws=O(9884);const Hu=new WeakSet,HN=new WeakMap,d1=new WeakMap,YN=new WeakMap,h1=new WeakMap,yb=new WeakMap,zN=new WeakMap,f1=new WeakMap,p1=new WeakMap,g1=new WeakMap,$N={construct:()=>$N},VN=/^import(?:(?:[\s]+[\w]+|(?:[\s]+[\w]+[\s]*,)?[\s]*\{[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?(?:[\s]*,[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?)*[\s]*}|(?:[\s]+[\w]+[\s]*,)?[\s]*\*[\s]+as[\s]+[\w]+)[\s]+from)?(?:[\s]*)("([^"\\]|\\.)+"|'([^'\\]|\\.)+')(?:[\s]*);?/,ZN=(t,n)=>{const e=[];let i=t.replace(/^[\s]+/,""),o=i.match(VN);for(;null!==o;){const r=o[1].slice(1,-1),a=o[0].replace(/([\s]+)?;?$/,"").replace(r,new URL(r,n).toString());e.push(a),i=i.slice(o[0].length).replace(/^[\s]+/,""),o=i.match(VN)}return[e.join(";"),i]},GN=t=>{if(void 0!==t&&!Array.isArray(t))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},UN=t=>{if(!(t=>{try{new new Proxy(t,$N)}catch{return!1}return!0})(t))throw new TypeError("The given value for processorCtor should be a constructor.");if(null===t.prototype||"object"!=typeof t.prototype)throw new TypeError("The given value for processorCtor should have a prototype.")},Wr=(t,n)=>{const e=t.get(n);if(void 0===e)throw new Error("A value with the given key could not be found.");return e},_b=(t,n)=>{const e=Array.from(t).filter(n);if(e.length>1)throw Error("More than one element was found.");if(0===e.length)throw Error("No element was found.");const[i]=e;return t.delete(i),i},WN=(t,n,e,i)=>{const o=Wr(t,n),r=_b(o,a=>a[0]===e&&a[1]===i);return 0===o.size&&t.delete(n),r},wf=t=>Wr(zN,t),Yu=t=>{if(Hu.has(t))throw new Error("The AudioNode is already stored.");Hu.add(t),wf(t).forEach(n=>n(!0))},XN=t=>"port"in t,Cf=t=>{if(!Hu.has(t))throw new Error("The AudioNode is not stored.");Hu.delete(t),wf(t).forEach(n=>n(!1))},m1=(t,n)=>{!XN(t)&&n.every(e=>0===e.size)&&Cf(t)},Rne={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},bo=(t,n)=>t.context===n,vb=t=>{try{t.copyToChannel(new Float32Array(1),0,-1)}catch{return!1}return!0},Ea=()=>new DOMException("","IndexSizeError"),b1=t=>{var n;t.getChannelData=(n=t.getChannelData,e=>{try{return n.call(t,e)}catch(i){throw 12===i.code?Ea():i}})},Fne={numberOfChannels:1},zo=-34028234663852886e22,Io=-zo,ss=t=>Hu.has(t),jne={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},Oo=t=>Wr(HN,t),xf=t=>Wr(YN,t),y1=(t,n)=>{const{activeInputs:e}=Oo(t);e.forEach(o=>o.forEach(([r])=>{n.includes(t)||y1(r,[...n,t])}));const i=(t=>"playbackRate"in t)(t)?[t.playbackRate]:XN(t)?Array.from(t.parameters.values()):(t=>"frequency"in t&&"gain"in t)(t)?[t.Q,t.detune,t.frequency,t.gain]:(t=>"offset"in t)(t)?[t.offset]:(t=>!("frequency"in t)&&"gain"in t)(t)?[t.gain]:(t=>"detune"in t&&"frequency"in t)(t)?[t.detune,t.frequency]:(t=>"pan"in t)(t)?[t.pan]:[];for(const o of i){const r=xf(o);void 0!==r&&r.activeInputs.forEach(([a])=>y1(a,n))}ss(t)&&Cf(t)},Cb=t=>"context"in t,Sf=t=>Cb(t[0]),Jl=(t,n,e,i)=>{for(const o of t)if(e(o)){if(i)return!1;throw Error("The set contains at least one similar element.")}return t.add(n),!0},QN=(t,n,[e,i],o)=>{Jl(t,[n,e,i],r=>r[0]===n&&r[1]===e,o)},KN=(t,[n,e,i],o)=>{const r=t.get(n);void 0===r?t.set(n,new Set([[e,i]])):Jl(r,[e,i],a=>a[0]===e,o)},zu=t=>"inputs"in t,xb=(t,n,e,i)=>{if(zu(n)){const o=n.inputs[i];return t.connect(o,e,0),[o,e,0]}return t.connect(n,e,i),[n,e,i]},qN=(t,n,e)=>{for(const i of t)if(i[0]===n&&i[1]===e)return t.delete(i),i;return null},eF=(t,n)=>{if(!wf(t).delete(n))throw new Error("Missing the expected event listener.")},tF=(t,n,e)=>{const i=Wr(t,n),o=_b(i,r=>r[0]===e);return 0===i.size&&t.delete(n),o},Sb=(t,n,e,i)=>{zu(n)?t.disconnect(n.inputs[i],e,0):t.disconnect(n,e,i)},ri=t=>Wr(d1,t),Df=t=>Wr(h1,t),Ql=t=>f1.has(t),Db=t=>!Hu.has(t),nF=(t,n)=>new Promise(e=>{if(null!==n)e(!0);else{const i=t.createScriptProcessor(256,1,1),o=t.createGain(),r=t.createBuffer(1,2,44100),a=r.getChannelData(0);a[0]=1,a[1]=1;const s=t.createBufferSource();s.buffer=r,s.loop=!0,s.connect(i).connect(t.destination),s.connect(o),s.disconnect(o),i.onaudioprocess=l=>{const c=l.inputBuffer.getChannelData(0);Array.prototype.some.call(c,u=>1===u)?e(!0):e(!1),s.stop(),i.onaudioprocess=null,s.disconnect(i),i.disconnect(t.destination)},s.start()}}),_1=(t,n)=>{const e=new Map;for(const i of t)for(const o of i){const r=e.get(o);e.set(o,void 0===r?1:r+1)}e.forEach((i,o)=>n(o,i))},Eb=t=>"context"in t,v1=(t,n,e,i,o)=>{const[r,a]=((t,n,e,i)=>{const{activeInputs:o,passiveInputs:r}=Oo(n),a=qN(o[i],t,e);return null===a?[WN(r,t,e,i)[2],!1]:[a[2],!0]})(t,e,i,o);if(null!==r&&(eF(t,r),a&&!n&&!Ql(t)&&Sb(ri(t),ri(e),i,o)),ss(e)){const{activeInputs:s}=Oo(e);m1(e,s)}},w1=(t,n,e,i)=>{const[o,r]=((t,n,e)=>{const{activeInputs:i,passiveInputs:o}=xf(n),r=qN(i,t,e);return null===r?[tF(o,t,e)[1],!1]:[r[2],!0]})(t,e,i);null!==o&&(eF(t,o),r&&!n&&!Ql(t)&&ri(t).disconnect(Df(e),i))};class iF{constructor(n){this._map=new Map(n)}get size(){return this._map.size}entries(){return this._map.entries()}forEach(n,e=null){return this._map.forEach((i,o)=>n.call(e,i,o,this))}get(n){return this._map.get(n)}has(n){return this._map.has(n)}keys(){return this._map.keys()}values(){return this._map.values()}}function Tb(t,n,e,i,o){if("function"==typeof t.copyFromChannel)0===n[e].byteLength&&(n[e]=new Float32Array(128)),t.copyFromChannel(n[e],i,o);else{const r=t.getChannelData(i);if(0===n[e].byteLength)n[e]=r.slice(o,o+128);else{const a=new Float32Array(r.buffer,o*Float32Array.BYTES_PER_ELEMENT,128);n[e].set(a)}}}const oF=(t,n,e,i,o)=>{"function"==typeof t.copyToChannel?0!==n[e].byteLength&&t.copyToChannel(n[e],i,o):0!==n[e].byteLength&&t.getChannelData(i).set(n[e],o)},Mb=(t,n)=>{const e=[];for(let i=0;iD+H,0),d=0===u?null:i.createBuffer(u,l,i.sampleRate);if(void 0===a)throw new Error("Missing the processor constructor.");const h=Oo(n),p=yield((t,n)=>{const e=Wr(g1,t),i=ri(n);return Wr(e,i)})(i,n),g=Mb(o.numberOfInputs,o.channelCount),b=Mb(o.numberOfOutputs,r),T=Array.from(n.parameters.keys()).reduce((D,H)=>({...D,[H]:new Float32Array(128)}),{});for(let D=0;D0&&null!==e)for(let H=0;H{Tb(e,T,H,c+oe,D)});for(let H=0;H0===h.activeInputs[G].size?[]:le),oe=s(D/i.sampleRate,i.sampleRate,()=>p.process(H,b,T));if(null!==d)for(let le=0,G=0;le{const{port1:n,port2:e}=new MessageChannel;return new Promise(i=>{const o=()=>{e.onmessage=null,n.close(),e.close(),i()};e.onmessage=()=>o();try{n.postMessage(t,[t])}catch{}finally{o()}})},jie={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",delayTime:0,maxDelayTime:1},Ab=(t,n,e)=>{const i=n[e];if(void 0===i)throw t();return i},Gie={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},eoe={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},Li=()=>new DOMException("","InvalidStateError"),kb=()=>new DOMException("","InvalidAccessError"),hoe={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},aF=(t,n,e,i,o,r,a,s,l,c,u)=>{const d=c.length;let h=s;for(let p=0;p{const n=new Uint32Array([1179011410,40,1163280727,544501094,16,131073,44100,176400,1048580,1635017060,4,0]);try{const e=t.decodeAudioData(n.buffer,()=>{});return void 0!==e&&(e.catch(()=>{}),!0)}catch{}return!1},di=(t,n,e)=>{const i=n[e];void 0!==i&&i!==t[e]&&(t[e]=i)},Vi=(t,n)=>{di(t,n,"channelCount"),di(t,n,"channelCountMode"),di(t,n,"channelInterpretation")},sF=t=>"function"==typeof t.getFloatTimeDomainData,vi=(t,n,e)=>{const i=n[e];void 0!==i&&i!==t[e].value&&(t[e].value=i)},C1=t=>{var n;t.start=(n=t.start,(e=0,i=0,o)=>{if("number"==typeof o&&o<0||i<0||e<0)throw new RangeError("The parameters can't be negative.");n.call(t,e,i,o)})},x1=t=>{var n;t.stop=(n=t.stop,(e=0)=>{if(e<0)throw new RangeError("The parameter can't be negative.");n.call(t,e)})},lF=(t,n)=>null===t?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(t*n))))),Woe=function(){var t=(0,y.Z)(function*(n,e){const i=yield(t=>new Promise((n,e)=>{const{port1:i,port2:o}=new MessageChannel;i.onmessage=({data:r})=>{i.close(),o.close(),n(r)},i.onmessageerror=({data:r})=>{i.close(),o.close(),e(r)},o.postMessage(t)}))(e);return new n(i)});return function(e,i){return t.apply(this,arguments)}}(),cF=(t,n)=>{const e=t.createBiquadFilter();return Vi(e,n),vi(e,n,"Q"),vi(e,n,"detune"),vi(e,n,"frequency"),vi(e,n,"gain"),di(e,n,"type"),e},Ef=(t,n)=>{const e=t.createChannelSplitter(n.numberOfOutputs);return Vi(e,n),(t=>{const n=t.numberOfOutputs;Object.defineProperty(t,"channelCount",{get:()=>n,set:e=>{if(e!==n)throw Li()}}),Object.defineProperty(t,"channelCountMode",{get:()=>"explicit",set:e=>{if("explicit"!==e)throw Li()}}),Object.defineProperty(t,"channelInterpretation",{get:()=>"discrete",set:e=>{if("discrete"!==e)throw Li()}})})(e),e},$u=(t,n)=>(t.connect=n.connect.bind(n),t.disconnect=n.disconnect.bind(n),t),uF=(t,n)=>{const e=t.createDelay(n.maxDelayTime);return Vi(e,n),vi(e,n,"delayTime"),e},$o=(t,n)=>{const e=t.createGain();return Vi(e,n),vi(e,n,"gain"),e};function ore(t,n){const e=n[0]*n[0]+n[1]*n[1];return[(t[0]*n[0]+t[1]*n[1])/e,(t[1]*n[0]-t[0]*n[1])/e]}function rre(t,n){return[t[0]*n[0]-t[1]*n[1],t[0]*n[1]+t[1]*n[0]]}function dF(t,n){let e=[0,0];for(let i=t.length-1;i>=0;i-=1)e=rre(e,n),e[0]+=t[i];return e}const Tf=(t,n,e,i)=>t.createScriptProcessor(n,e,i),yo=()=>new DOMException("","NotSupportedError"),Cre={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:440,periodicWave:void 0,type:"sine"},Dre={channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",coneInnerAngle:360,coneOuterAngle:360,coneOuterGain:0,distanceModel:"inverse",maxDistance:1e4,orientationX:1,orientationY:0,orientationZ:0,panningModel:"equalpower",positionX:0,positionY:0,positionZ:0,refDistance:1,rolloffFactor:1},Mre={disableNormalization:!1},Lre={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},hF=()=>new DOMException("","UnknownError"),$re={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",curve:null,oversample:"none"},fF=(t,n,e)=>void 0===t.copyFromChannel?t.getChannelData(e)[0]:(t.copyFromChannel(n,e),n[0]),pF=t=>{if(null===t)return!1;const n=t.length;return n%2!=0?0!==t[Math.floor(n/2)]:t[n/2-1]+t[n/2]!==0},Mf=(t,n,e,i)=>{let o=t;for(;!o.hasOwnProperty(n);)o=Object.getPrototypeOf(o);const{get:r,set:a}=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(t,n,{get:e(r),set:i(a)})},gF=(t,n,e)=>{try{t.setValueAtTime(n,e)}catch(i){if(9!==i.code)throw i;gF(t,n,e+1e-7)}},S1=t=>{const n=t.createOscillator();try{n.start(-1)}catch(e){return e instanceof RangeError}return!1},mF=t=>{const n=t.createBuffer(1,1,44100),e=t.createBufferSource();e.buffer=n,e.start(),e.stop();try{return e.stop(),!0}catch{return!1}},D1=t=>{const n=t.createOscillator();try{n.stop(-1)}catch(e){return e instanceof RangeError}return!1},bF=(t,n)=>{const e=n.createGain();t.connect(e);const i=(o=t.disconnect,()=>{o.call(t,e),t.removeEventListener("ended",i)});var o;t.addEventListener("ended",i),$u(t,e),t.stop=(o=>{let r=!1;return(a=0)=>{if(r)try{o.call(t,a)}catch{e.gain.setValueAtTime(0,a)}else o.call(t,a),r=!0}})(t.stop)},Vu=(t,n)=>e=>{const i={value:t};return Object.defineProperties(e,{currentTarget:i,target:i}),"function"==typeof n?n.call(t,e):n.handleEvent.call(t,e)},rae=(t=>(n,e,[i,o,r],a)=>{t(n[o],[e,i,r],s=>s[0]===e&&s[1]===i,a)})(Jl),aae=(t=>(n,e,[i,o,r],a)=>{const s=n.get(i);void 0===s?n.set(i,new Set([[o,e,r]])):t(s,[o,e,r],l=>l[0]===o&&l[1]===e,a)})(Jl),sae=(t=>(n,e,i,o)=>t(n[o],r=>r[0]===e&&r[1]===i))(_b),yF=new WeakMap,lae=(t=>n=>{var e;return null!==(e=t.get(n))&&void 0!==e?e:0})(yF),dr=((t,n)=>(e,i)=>{const o=n.get(e);if(void 0!==o)return o;const r=t.get(e);if(void 0!==r)return r;try{const a=i();return a instanceof Promise?(t.set(e,a),a.catch(()=>!1).then(s=>(t.delete(e),n.set(e,s),s))):(n.set(e,a),a)}catch{return n.set(e,!1),!1}})(new Map,new WeakMap),Xr=typeof window>"u"?null:window,_F=((t,n)=>(e,i)=>{const o=e.createAnalyser();if(Vi(o,i),!(i.maxDecibels>i.minDecibels))throw n();return di(o,i,"fftSize"),di(o,i,"maxDecibels"),di(o,i,"minDecibels"),di(o,i,"smoothingTimeConstant"),t(sF,()=>sF(o))||(t=>{t.getFloatTimeDomainData=n=>{const e=new Uint8Array(n.length);t.getByteTimeDomainData(e);const i=Math.max(e.length,t.fftSize);for(let o=0;on=>{const e=t(n);if(null===e.renderer)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return e.renderer})(Oo),oo=((t,n,e)=>function(){var i=(0,y.Z)(function*(o,r,a){const s=t(o);yield Promise.all(s.activeInputs.map((l,c)=>Array.from(l).map(function(){var u=(0,y.Z)(function*([d,h]){const g=yield n(d).render(d,r),b=o.context.destination;!e(d)&&(o!==b||!e(o))&&g.connect(a,h,c)});return function(d){return u.apply(this,arguments)}}())).reduce((l,c)=>[...l,...c],[]))});return function(o,r,a){return i.apply(this,arguments)}}())(Oo,E1,Ql),cae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,fftSize:l.fftSize,maxDecibels:l.maxDecibels,minDecibels:l.minDecibels,smoothingTimeConstant:l.smoothingTimeConstant})),i.set(s,l),yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(_F,ri,oo),ti=(t=>n=>{const e=t.get(n);if(void 0===e)throw Li();return e})(yb),Ji=(t=>null===t?null:t.hasOwnProperty("OfflineAudioContext")?t.OfflineAudioContext:t.hasOwnProperty("webkitOfflineAudioContext")?t.webkitOfflineAudioContext:null)(Xr),Yn=(t=>n=>null!==t&&n instanceof t)(Ji),vF=new WeakMap,wF=(t=>class{constructor(e){this._nativeEventTarget=e,this._listeners=new WeakMap}addEventListener(e,i,o){if(null!==i){let r=this._listeners.get(i);void 0===r&&(r=t(this,i),"function"==typeof i&&this._listeners.set(i,r)),this._nativeEventTarget.addEventListener(e,r,o)}}dispatchEvent(e){return this._nativeEventTarget.dispatchEvent(e)}removeEventListener(e,i,o){const r=null===i?void 0:this._listeners.get(i);this._nativeEventTarget.removeEventListener(e,void 0===r?null:r,o)}})(Vu),ls=(t=>null===t?null:t.hasOwnProperty("AudioContext")?t.AudioContext:t.hasOwnProperty("webkitAudioContext")?t.webkitAudioContext:null)(Xr),T1=(t=>n=>null!==t&&n instanceof t)(ls),M1=(t=>n=>null!==t&&"function"==typeof t.AudioNode&&n instanceof t.AudioNode)(Xr),CF=(t=>n=>null!==t&&"function"==typeof t.AudioParam&&n instanceof t.AudioParam)(Xr),Zu=(t=>null===t?null:t.hasOwnProperty("AudioWorkletNode")?t.AudioWorkletNode:null)(Xr),Ii=((t,n,e,i,o,r,a,s,l,c,u,d,h,p,g,b)=>class extends c{constructor(D,H,oe,le){super(oe),this._context=D,this._nativeAudioNode=oe;const G=u(D);d(G)&&!0!==e(nF,()=>nF(G,b))&&(t=>{const n=new Map;var e;t.connect=(e=t.connect.bind(t),(i,o=0,r=0)=>{const a=Eb(i)?e(i,o,r):e(i,o),s=n.get(i);return void 0===s?n.set(i,[{input:r,output:o}]):s.every(l=>l.input!==r||l.output!==o)&&s.push({input:r,output:o}),a}),t.disconnect=(e=>(i,o,r)=>{if(e.apply(t),void 0===i)n.clear();else if("number"==typeof i)for(const[a,s]of n){const l=s.filter(c=>c.output!==i);0===l.length?n.delete(a):n.set(a,l)}else if(n.has(i))if(void 0===o)n.delete(i);else{const a=n.get(i);if(void 0!==a){const s=a.filter(l=>l.output!==o&&(l.input!==r||void 0===r));0===s.length?n.delete(i):n.set(i,s)}}for(const[a,s]of n)s.forEach(l=>{Eb(a)?t.connect(a,l.output,l.input):t.connect(a,l.output)})})(t.disconnect)})(oe),d1.set(this,oe),zN.set(this,new Set),"closed"!==D.state&&H&&Yu(this),t(this,le,oe)}get channelCount(){return this._nativeAudioNode.channelCount}set channelCount(D){this._nativeAudioNode.channelCount=D}get channelCountMode(){return this._nativeAudioNode.channelCountMode}set channelCountMode(D){this._nativeAudioNode.channelCountMode=D}get channelInterpretation(){return this._nativeAudioNode.channelInterpretation}set channelInterpretation(D){this._nativeAudioNode.channelInterpretation=D}get context(){return this._context}get numberOfInputs(){return this._nativeAudioNode.numberOfInputs}get numberOfOutputs(){return this._nativeAudioNode.numberOfOutputs}connect(D,H=0,oe=0){if(H<0||H>=this._nativeAudioNode.numberOfOutputs)throw o();const le=u(this._context),G=g(le);if(h(D)||p(D))throw r();if(Cb(D)){const be=ri(D);try{const Fe=xb(this._nativeAudioNode,be,H,oe),Qe=Db(this);(G||Qe)&&this._nativeAudioNode.disconnect(...Fe),"closed"!==this.context.state&&!Qe&&Db(D)&&Yu(D)}catch(Fe){throw 12===Fe.code?r():Fe}if(n(this,D,H,oe,G)){const Fe=l([this],D);_1(Fe,i(G))}return D}const pe=Df(D);if("playbackRate"===pe.name&&1024===pe.maxValue)throw a();try{this._nativeAudioNode.connect(pe,H),(G||Db(this))&&this._nativeAudioNode.disconnect(pe,H)}catch(be){throw 12===be.code?r():be}if(((t,n,e,i)=>{const{activeInputs:o,passiveInputs:r}=xf(n),{outputs:a}=Oo(t),s=wf(t),l=c=>{const u=ri(t),d=Df(n);if(c){const h=tF(r,t,e);QN(o,t,h,!1),!i&&!Ql(t)&&u.connect(d,e)}else{const h=((t,n,e)=>_b(t,i=>i[0]===n&&i[1]===e))(o,t,e);KN(r,h,!1),!i&&!Ql(t)&&u.disconnect(d,e)}};return!!Jl(a,[n,e],c=>c[0]===n&&c[1]===e,!0)&&(s.add(l),ss(t)?QN(o,t,[e,l],!0):KN(r,[t,e,l],!0),!0)})(this,D,H,G)){const be=l([this],D);_1(be,i(G))}}disconnect(D,H,oe){let le;const G=u(this._context),pe=g(G);if(void 0===D)le=((t,n)=>{const e=Oo(t),i=[];for(const o of e.outputs)Sf(o)?v1(t,n,...o):w1(t,n,...o),i.push(o[0]);return e.outputs.clear(),i})(this,pe);else if("number"==typeof D){if(D<0||D>=this.numberOfOutputs)throw o();le=((t,n,e)=>{const i=Oo(t),o=[];for(const r of i.outputs)r[1]===e&&(Sf(r)?v1(t,n,...r):w1(t,n,...r),o.push(r[0]),i.outputs.delete(r));return o})(this,pe,D)}else{if(void 0!==H&&(H<0||H>=this.numberOfOutputs)||Cb(D)&&void 0!==oe&&(oe<0||oe>=D.numberOfInputs))throw o();if(le=((t,n,e,i,o)=>{const r=Oo(t);return Array.from(r.outputs).filter(a=>!(a[0]!==e||void 0!==i&&a[1]!==i||void 0!==o&&a[2]!==o)).map(a=>(Sf(a)?v1(t,n,...a):w1(t,n,...a),r.outputs.delete(a),a[0]))})(this,pe,D,H,oe),0===le.length)throw r()}for(const _e of le){const be=l([this],_e);_1(be,s)}}})((t=>(n,e,i)=>{const o=[];for(let r=0;r{const p=new WeakMap;return(g,b,T,D,H)=>{const{activeInputs:oe,passiveInputs:le}=r(b),{outputs:G}=r(g),pe=s(g),_e=be=>{const Be=l(b),Fe=l(g);if(be){const Qe=WN(le,g,T,D);t(oe,g,Qe,!1),!H&&!d(g)&&e(Fe,Be,T,D),h(b)&&Yu(b)}else{const Qe=i(oe,g,T,D);n(le,D,Qe,!1),!H&&!d(g)&&o(Fe,Be,T,D);const Re=a(b);if(0===Re)u(b)&&m1(b,oe);else{const Xe=p.get(b);void 0!==Xe&&clearTimeout(Xe),p.set(b,setTimeout(()=>{u(b)&&m1(b,oe)},1e3*Re))}}};return!!c(G,[b,T,D],be=>be[0]===b&&be[1]===T&&be[2]===D,!0)&&(pe.add(_e),u(g)?t(oe,g,[T,D,_e],!0):n(le,D,[g,T,_e],!0),!0)}})(rae,aae,xb,sae,Sb,Oo,lae,wf,ri,Jl,ss,Ql,Db),dr,((t,n,e,i,o,r)=>a=>(s,l)=>{const c=t.get(s);if(void 0===c){if(!a&&r(s)){const u=i(s),{outputs:d}=e(s);for(const h of d)if(Sf(h)){const p=i(h[0]);n(u,p,h[1],h[2])}else{const p=o(h[0]);u.disconnect(p,h[1])}}t.set(s,l)}else t.set(s,c+l)})(f1,Sb,Oo,ri,Df,ss),Ea,kb,yo,((t,n,e,i,o,r,a,s)=>(l,c)=>{const u=n.get(l);if(void 0===u)throw new Error("Missing the expected cycle count.");const d=r(l.context),h=s(d);if(u===c){if(n.delete(l),!h&&a(l)){const p=i(l),{outputs:g}=e(l);for(const b of g)if(Sf(b)){const T=i(b[0]);t(p,T,b[1],b[2])}else{const T=o(b[0]);p.connect(T,b[1])}}}else n.set(l,u-c)})(xb,f1,Oo,ri,Df,ti,ss,Yn),((t,n,e)=>function i(o,r){const a=Cb(r)?r:e(t,r);if((t=>"delayTime"in t)(a))return[];if(o[0]===a)return[o];if(o.includes(a))return[];const{outputs:s}=n(a);return Array.from(s).map(l=>i([...o,a],l[0])).reduce((l,c)=>l.concat(c),[])})(vF,Oo,Wr),wF,ti,T1,M1,CF,Yn,Zu),uae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=o(s),u={...Rne,...l},d=i(c,u);super(s,!1,d,r(c)?n():null),this._nativeAnalyserNode=d}get fftSize(){return this._nativeAnalyserNode.fftSize}set fftSize(s){this._nativeAnalyserNode.fftSize=s}get frequencyBinCount(){return this._nativeAnalyserNode.frequencyBinCount}get maxDecibels(){return this._nativeAnalyserNode.maxDecibels}set maxDecibels(s){const l=this._nativeAnalyserNode.maxDecibels;if(this._nativeAnalyserNode.maxDecibels=s,!(s>this._nativeAnalyserNode.minDecibels))throw this._nativeAnalyserNode.maxDecibels=l,e()}get minDecibels(){return this._nativeAnalyserNode.minDecibels}set minDecibels(s){const l=this._nativeAnalyserNode.minDecibels;if(this._nativeAnalyserNode.minDecibels=s,!(this._nativeAnalyserNode.maxDecibels>s))throw this._nativeAnalyserNode.minDecibels=l,e()}get smoothingTimeConstant(){return this._nativeAnalyserNode.smoothingTimeConstant}set smoothingTimeConstant(s){this._nativeAnalyserNode.smoothingTimeConstant=s}getByteFrequencyData(s){this._nativeAnalyserNode.getByteFrequencyData(s)}getByteTimeDomainData(s){this._nativeAnalyserNode.getByteTimeDomainData(s)}getFloatFrequencyData(s){this._nativeAnalyserNode.getFloatFrequencyData(s)}getFloatTimeDomainData(s){this._nativeAnalyserNode.getFloatTimeDomainData(s)}})(Ii,cae,Ea,_F,ti,Yn),A1=new WeakSet,xF=(t=>null===t?null:t.hasOwnProperty("AudioBuffer")?t.AudioBuffer:null)(Xr),SF=(t=>n=>(t[0]=n,t[0]))(new Uint32Array(1)),k1=((t,n)=>e=>{e.copyFromChannel=(i,o,r=0)=>{const a=t(r),s=t(o);if(s>=e.numberOfChannels)throw n();const l=e.length,c=e.getChannelData(s),u=i.length;for(let d=a<0?-a:0;d+a{const a=t(r),s=t(o);if(s>=e.numberOfChannels)throw n();const l=e.length,c=e.getChannelData(s),u=i.length;for(let d=a<0?-a:0;d+an=>{var e;n.copyFromChannel=(e=n.copyFromChannel,(i,o,r=0)=>{const a=t(r),s=t(o);if(a(i,o,r=0)=>{const a=t(r),s=t(o);if(a{let l=null;return class Qj{constructor(u){if(null===o)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:d,numberOfChannels:h,sampleRate:p}={...Fne,...u};null===l&&(l=new o(1,1,44100));const g=null!==i&&n(r,r)?new i({length:d,numberOfChannels:h,sampleRate:p}):l.createBuffer(h,d,p);if(0===g.numberOfChannels)throw e();return"function"!=typeof g.copyFromChannel?(a(g),b1(g)):n(vb,()=>vb(g))||s(g),t.add(g),g}static[Symbol.hasInstance](u){return null!==u&&"object"==typeof u&&Object.getPrototypeOf(u)===Qj.prototype||t.has(u)}}})(A1,dr,yo,xF,Ji,(t=>()=>{if(null===t)return!1;try{new t({length:1,sampleRate:44100})}catch{return!1}return!0})(xF),k1,I1),Ib=(t=>(n,e)=>{const i=t(n,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});e.connect(i).connect(n.destination);const o=()=>{e.removeEventListener("ended",o),e.disconnect(i),i.disconnect()};e.addEventListener("ended",o)})($o),DF=((t,n,e)=>function(){var i=(0,y.Z)(function*(o,r,a){const s=n(o);yield Promise.all(Array.from(s.activeInputs).map(function(){var l=(0,y.Z)(function*([c,u]){const h=yield t(c).render(c,r);e(c)||h.connect(a,u)});return function(c){return l.apply(this,arguments)}}()))});return function(o,r,a){return i.apply(this,arguments)}}())(E1,xf,Ql),Ta=(t=>(n,e,i)=>t(e,n,i))(DF),Gu=((t,n,e,i,o,r,a,s,l,c,u)=>(d,h)=>{const p=d.createBufferSource();return Vi(p,h),vi(p,h,"playbackRate"),di(p,h,"buffer"),di(p,h,"loop"),di(p,h,"loopEnd"),di(p,h,"loopStart"),n(e,()=>e(d))||(t=>{t.start=(n=>{let e=!1;return(i=0,o=0,r)=>{if(e)throw Li();n.call(t,i,o,r),e=!0}})(t.start)})(p),n(i,()=>i(d))||(t=>{var n;t.start=(n=t.start,(e=0,i=0,o)=>{const r=t.buffer,a=null===r?i:Math.min(r.duration,i);null!==r&&a>r.duration-.5/t.context.sampleRate?n.call(t,e,0,0):n.call(t,e,a,o)})})(p),n(o,()=>o(d))||c(p,d),n(r,()=>r(d))||C1(p),n(a,()=>a(d))||u(p,d),n(s,()=>s(d))||x1(p),t(d,p),p})(Ib,dr,t=>{const n=t.createBufferSource();n.start();try{n.start()}catch{return!0}return!1},t=>{const n=t.createBufferSource(),e=t.createBuffer(1,1,44100);n.buffer=e;try{n.start(0,1)}catch{return!1}return!0},t=>{const n=t.createBufferSource();n.start();try{n.stop()}catch{return!1}return!0},S1,mF,D1,0,(t=>(n,e)=>{const i=e.createBuffer(1,1,44100);null===n.buffer&&(n.buffer=i),t(n,"buffer",o=>()=>{const r=o.call(n);return r===i?null:r},o=>r=>o.call(n,null===r?i:r))})(Mf),bF),Ma=((t,n)=>(e,i,o)=>(t(i).replay(o),n(i,e,o)))((t=>n=>{const e=t(n);if(null===e.renderer)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return e.renderer})(xf),DF),hae=((t,n,e,i,o)=>()=>{const r=new WeakMap;let a=null,s=null;const l=function(){var c=(0,y.Z)(function*(u,d){let h=e(u);const p=bo(h,d);return p||(h=n(d,{buffer:h.buffer,channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,loop:h.loop,loopEnd:h.loopEnd,loopStart:h.loopStart,playbackRate:h.playbackRate.value}),null!==a&&h.start(...a),null!==s&&h.stop(s)),r.set(d,h),p?yield t(d,u.playbackRate,h.playbackRate):yield i(d,u.playbackRate,h.playbackRate),yield o(u,d,h),h});return function(d,h){return c.apply(this,arguments)}}();return{set start(c){a=c},set stop(c){s=c},render(c,u){const d=r.get(u);return void 0!==d?Promise.resolve(d):l(c,u)}}})(Ta,Gu,ri,Ma,oo),Jr=((t,n,e,i,o,r,a,s,l,c,u,d,h)=>(p,g,b,T=null,D=null)=>{const H=b.value,oe=new Ws.AutomationEventList(H),le=g?(t=>({replay(n){for(const e of t)if("exponentialRampToValue"===e.type){const{endTime:i,value:o}=e;n.exponentialRampToValueAtTime(o,i)}else if("linearRampToValue"===e.type){const{endTime:i,value:o}=e;n.linearRampToValueAtTime(o,i)}else if("setTarget"===e.type){const{startTime:i,target:o,timeConstant:r}=e;n.setTargetAtTime(o,i,r)}else if("setValue"===e.type){const{startTime:i,value:o}=e;n.setValueAtTime(o,i)}else{if("setValueCurve"!==e.type)throw new Error("Can't apply an unknown automation.");{const{duration:i,startTime:o,values:r}=e;n.setValueCurveAtTime(r,o,i)}}}}))(oe):null,G={get defaultValue(){return H},get maxValue(){return null===T?b.maxValue:T},get minValue(){return null===D?b.minValue:D},get value(){return b.value},set value(pe){b.value=pe,G.setValueAtTime(pe,p.context.currentTime)},cancelAndHoldAtTime(pe){if("function"==typeof b.cancelAndHoldAtTime)null===le&&oe.flush(p.context.currentTime),oe.add(o(pe)),b.cancelAndHoldAtTime(pe);else{const _e=Array.from(oe).pop();null===le&&oe.flush(p.context.currentTime),oe.add(o(pe));const be=Array.from(oe).pop();b.cancelScheduledValues(pe),_e!==be&&void 0!==be&&("exponentialRampToValue"===be.type?b.exponentialRampToValueAtTime(be.value,be.endTime):"linearRampToValue"===be.type?b.linearRampToValueAtTime(be.value,be.endTime):"setValue"===be.type?b.setValueAtTime(be.value,be.startTime):"setValueCurve"===be.type&&b.setValueCurveAtTime(be.values,be.startTime,be.duration))}return G},cancelScheduledValues:pe=>(null===le&&oe.flush(p.context.currentTime),oe.add(r(pe)),b.cancelScheduledValues(pe),G),exponentialRampToValueAtTime(pe,_e){if(0===pe)throw new RangeError;if(!Number.isFinite(_e)||_e<0)throw new RangeError;const be=p.context.currentTime;return null===le&&oe.flush(be),0===Array.from(oe).length&&(oe.add(c(H,be)),b.setValueAtTime(H,be)),oe.add(a(pe,_e)),b.exponentialRampToValueAtTime(pe,_e),G},linearRampToValueAtTime(pe,_e){const be=p.context.currentTime;return null===le&&oe.flush(be),0===Array.from(oe).length&&(oe.add(c(H,be)),b.setValueAtTime(H,be)),oe.add(s(pe,_e)),b.linearRampToValueAtTime(pe,_e),G},setTargetAtTime:(pe,_e,be)=>(null===le&&oe.flush(p.context.currentTime),oe.add(l(pe,_e,be)),b.setTargetAtTime(pe,_e,be),G),setValueAtTime:(pe,_e)=>(null===le&&oe.flush(p.context.currentTime),oe.add(c(pe,_e)),b.setValueAtTime(pe,_e),G),setValueCurveAtTime(pe,_e,be){const Be=pe instanceof Float32Array?pe:new Float32Array(pe);if(null!==d&&"webkitAudioContext"===d.name){const Fe=_e+be,Qe=p.context.sampleRate,Re=Math.ceil(_e*Qe),Xe=Math.floor(Fe*Qe),ct=Xe-Re,ut=new Float32Array(ct);for(let Ye=0;Ye(n,e)=>{t.set(n,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:e})})(YN),vF,h1,0,Ws.createCancelAndHoldAutomationEvent,Ws.createCancelScheduledValuesAutomationEvent,Ws.createExponentialRampToValueAutomationEvent,Ws.createLinearRampToValueAutomationEvent,Ws.createSetTargetAutomationEvent,Ws.createSetValueAutomationEvent,Ws.createSetValueCurveAutomationEvent,ls,gF),fae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h={...jne,...u},p=o(d,h),g=a(d),b=g?n():null;super(c,!1,p,b),this._audioBufferSourceNodeRenderer=b,this._isBufferNullified=!1,this._isBufferSet=null!==h.buffer,this._nativeAudioBufferSourceNode=p,this._onended=null,this._playbackRate=e(this,g,p.playbackRate,Io,zo)}get buffer(){return this._isBufferNullified?null:this._nativeAudioBufferSourceNode.buffer}set buffer(c){if(this._nativeAudioBufferSourceNode.buffer=c,null!==c){if(this._isBufferSet)throw i();this._isBufferSet=!0}}get loop(){return this._nativeAudioBufferSourceNode.loop}set loop(c){this._nativeAudioBufferSourceNode.loop=c}get loopEnd(){return this._nativeAudioBufferSourceNode.loopEnd}set loopEnd(c){this._nativeAudioBufferSourceNode.loopEnd=c}get loopStart(){return this._nativeAudioBufferSourceNode.loopStart}set loopStart(c){this._nativeAudioBufferSourceNode.loopStart=c}get onended(){return this._onended}set onended(c){const u="function"==typeof c?s(this,c):null;this._nativeAudioBufferSourceNode.onended=u;const d=this._nativeAudioBufferSourceNode.onended;this._onended=null!==d&&d===u?c:d}get playbackRate(){return this._playbackRate}start(c=0,u=0,d){if(this._nativeAudioBufferSourceNode.start(c,u,d),null!==this._audioBufferSourceNodeRenderer&&(this._audioBufferSourceNodeRenderer.start=void 0===d?[c,u]:[c,u,d]),"closed"!==this.context.state){Yu(this);const h=()=>{this._nativeAudioBufferSourceNode.removeEventListener("ended",h),ss(this)&&Cf(this)};this._nativeAudioBufferSourceNode.addEventListener("ended",h)}}stop(c=0){this._nativeAudioBufferSourceNode.stop(c),null!==this._audioBufferSourceNodeRenderer&&(this._audioBufferSourceNodeRenderer.stop=c)}})(Ii,hae,Jr,Li,Gu,ti,Yn,Vu),pae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h=a(d),p=o(d,u,h);super(c,!1,p,h?n(s):null),this._isNodeOfNativeOfflineAudioContext=h,this._nativeAudioDestinationNode=p}get channelCount(){return this._nativeAudioDestinationNode.channelCount}set channelCount(c){if(this._isNodeOfNativeOfflineAudioContext)throw i();if(c>this._nativeAudioDestinationNode.maxChannelCount)throw e();this._nativeAudioDestinationNode.channelCount=c}get channelCountMode(){return this._nativeAudioDestinationNode.channelCountMode}set channelCountMode(c){if(this._isNodeOfNativeOfflineAudioContext)throw i();this._nativeAudioDestinationNode.channelCountMode=c}get maxChannelCount(){return this._nativeAudioDestinationNode.maxChannelCount}})(Ii,t=>{const n=new WeakMap,e=function(){var i=(0,y.Z)(function*(o,r){const a=r.destination;return n.set(r,a),yield t(o,r,a),a});return function(r,a){return i.apply(this,arguments)}}();return{render(i,o){const r=n.get(o);return void 0!==r?Promise.resolve(r):e(i,o)}}},Ea,Li,((t,n)=>(e,i,o)=>{const r=e.destination;if(r.channelCount!==i)try{r.channelCount=i}catch{}o&&"explicit"!==r.channelCountMode&&(r.channelCountMode="explicit"),0===r.maxChannelCount&&Object.defineProperty(r,"maxChannelCount",{value:i});const a=t(e,{channelCount:i,channelCountMode:r.channelCountMode,channelInterpretation:r.channelInterpretation,gain:1});return n(a,"channelCount",s=>()=>s.call(a),s=>l=>{s.call(a,l);try{r.channelCount=l}catch(c){if(l>r.maxChannelCount)throw c}}),n(a,"channelCountMode",s=>()=>s.call(a),s=>l=>{s.call(a,l),r.channelCountMode=l}),n(a,"channelInterpretation",s=>()=>s.call(a),s=>l=>{s.call(a,l),r.channelInterpretation=l}),Object.defineProperty(a,"maxChannelCount",{get:()=>r.maxChannelCount}),a.connect(r),a})($o,Mf),ti,Yn,oo),gae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{Q:u.Q.value,channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,detune:u.detune.value,frequency:u.frequency.value,gain:u.gain.value,type:u.type})),r.set(c,u),d?(yield t(c,l.Q,u.Q),yield t(c,l.detune,u.detune),yield t(c,l.frequency,u.frequency),yield t(c,l.gain,u.gain)):(yield i(c,l.Q,u.Q),yield i(c,l.detune,u.detune),yield i(c,l.frequency,u.frequency),yield i(c,l.gain,u.gain)),yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ta,cF,ri,Ma,oo),ql=(t=>(n,e)=>t.set(n,e))(yF),mae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h={...pie,...u},p=o(d,h),g=a(d);super(c,!1,p,g?e():null),this._Q=n(this,g,p.Q,Io,zo),this._detune=n(this,g,p.detune,1200*Math.log2(Io),-1200*Math.log2(Io)),this._frequency=n(this,g,p.frequency,c.sampleRate/2,0),this._gain=n(this,g,p.gain,40*Math.log10(Io),zo),this._nativeBiquadFilterNode=p,s(this,1)}get detune(){return this._detune}get frequency(){return this._frequency}get gain(){return this._gain}get Q(){return this._Q}get type(){return this._nativeBiquadFilterNode.type}set type(c){this._nativeBiquadFilterNode.type=c}getFrequencyResponse(c,u,d){try{this._nativeBiquadFilterNode.getFrequencyResponse(c,u,d)}catch(h){throw 11===h.code?i():h}if(c.length!==u.length||u.length!==d.length)throw i()}})(Ii,Jr,gae,kb,cF,ti,Yn,ql),Xs=((t,n)=>(e,i,o)=>{const r=new Set;return e.connect=(a=e.connect,(s,l=0,c=0)=>{const u=0===r.size;if(n(s))return a.call(e,s,l,c),t(r,[s,l,c],d=>d[0]===s&&d[1]===l&&d[2]===c,!0),u&&i(),s;a.call(e,s,l),t(r,[s,l],d=>d[0]===s&&d[1]===l,!0),u&&i()}),e.disconnect=(a=>(s,l,c)=>{const u=r.size>0;if(void 0===s)a.apply(e),r.clear();else if("number"==typeof s){a.call(e,s);for(const h of r)h[1]===s&&r.delete(h)}else{n(s)?a.call(e,s,l,c):a.call(e,s,l);for(const h of r)h[0]===s&&(void 0===l||h[1]===l)&&(void 0===c||h[2]===c)&&r.delete(h)}u&&0===r.size&&o()})(e.disconnect),e;var a})(Jl,M1),bae=((t,n)=>(e,i)=>{i.channelCount=1,i.channelCountMode="explicit",Object.defineProperty(i,"channelCount",{get:()=>1,set:()=>{throw t()}}),Object.defineProperty(i,"channelCountMode",{get:()=>"explicit",set:()=>{throw t()}});const o=e.createBufferSource();n(i,()=>{const s=i.numberOfInputs;for(let l=0;lo.disconnect(i))})(Li,Xs),Js=((t,n)=>(e,i)=>{const o=e.createChannelMerger(i.numberOfInputs);return null!==t&&"webkitAudioContext"===t.name&&n(e,o),Vi(o,i),o})(ls,bae),yae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,numberOfInputs:l.numberOfInputs})),i.set(s,l),yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(Js,ri,oo),_ae=((t,n,e,i,o)=>class extends t{constructor(a,s){const l=i(a),c={...yie,...s};super(a,!1,e(l,c),o(l)?n():null)}})(Ii,yae,Js,ti,Yn),vae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,numberOfOutputs:l.numberOfOutputs})),i.set(s,l),yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(Ef,ri,oo),wae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=i(s),u=(t=>({...t,channelCount:t.numberOfOutputs}))({...wie,...l});super(s,!1,e(c,u),o(c)?n():null)}})(Ii,vae,Ef,ti,Yn),Cae=((t,n,e,i)=>(o,{offset:r,...a})=>{const s=o.createBuffer(1,2,44100),l=n(o,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),c=e(o,{...a,gain:r}),u=s.getChannelData(0);u[0]=1,u[1]=1,l.buffer=s,l.loop=!0;const d={get bufferSize(){},get channelCount(){return c.channelCount},set channelCount(g){c.channelCount=g},get channelCountMode(){return c.channelCountMode},set channelCountMode(g){c.channelCountMode=g},get channelInterpretation(){return c.channelInterpretation},set channelInterpretation(g){c.channelInterpretation=g},get context(){return c.context},get inputs(){return[]},get numberOfInputs(){return l.numberOfInputs},get numberOfOutputs(){return c.numberOfOutputs},get offset(){return c.gain},get onended(){return l.onended},set onended(g){l.onended=g},addEventListener:(...g)=>l.addEventListener(g[0],g[1],g[2]),dispatchEvent:(...g)=>l.dispatchEvent(g[0]),removeEventListener:(...g)=>l.removeEventListener(g[0],g[1],g[2]),start(g=0){l.start.call(l,g)},stop(g=0){l.stop.call(l,g)}};return t(o,l),i($u(d,c),()=>l.connect(c),()=>l.disconnect(c))})(Ib,Gu,$o,Xs),Uu=((t,n,e,i,o)=>(r,a)=>{if(void 0===r.createConstantSource)return e(r,a);const s=r.createConstantSource();return Vi(s,a),vi(s,a,"offset"),n(i,()=>i(r))||C1(s),n(o,()=>o(r))||x1(s),t(r,s),s})(Ib,dr,Cae,S1,D1),xae=((t,n,e,i,o)=>()=>{const r=new WeakMap;let a=null,s=null;const l=function(){var c=(0,y.Z)(function*(u,d){let h=e(u);const p=bo(h,d);return p||(h=n(d,{channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,offset:h.offset.value}),null!==a&&h.start(a),null!==s&&h.stop(s)),r.set(d,h),p?yield t(d,u.offset,h.offset):yield i(d,u.offset,h.offset),yield o(u,d,h),h});return function(d,h){return c.apply(this,arguments)}}();return{set start(c){a=c},set stop(c){s=c},render(c,u){const d=r.get(u);return void 0!==d?Promise.resolve(d):l(c,u)}}})(Ta,Uu,ri,Ma,oo),Sae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...Tie,...c},h=i(u,d),p=r(u),g=p?e():null;super(l,!1,h,g),this._constantSourceNodeRenderer=g,this._nativeConstantSourceNode=h,this._offset=n(this,p,h.offset,Io,zo),this._onended=null}get offset(){return this._offset}get onended(){return this._onended}set onended(l){const c="function"==typeof l?a(this,l):null;this._nativeConstantSourceNode.onended=c;const u=this._nativeConstantSourceNode.onended;this._onended=null!==u&&u===c?l:u}start(l=0){if(this._nativeConstantSourceNode.start(l),null!==this._constantSourceNodeRenderer&&(this._constantSourceNodeRenderer.start=l),"closed"!==this.context.state){Yu(this);const c=()=>{this._nativeConstantSourceNode.removeEventListener("ended",c),ss(this)&&Cf(this)};this._nativeConstantSourceNode.addEventListener("ended",c)}}stop(l=0){this._nativeConstantSourceNode.stop(l),null!==this._constantSourceNodeRenderer&&(this._constantSourceNodeRenderer.stop=l)}})(Ii,Jr,xae,Uu,ti,Yn,Vu),EF=((t,n)=>(e,i)=>{const o=e.createConvolver();if(Vi(o,i),i.disableNormalization===o.normalize&&(o.normalize=!i.disableNormalization),di(o,i,"buffer"),i.channelCount>2||(n(o,"channelCount",r=>()=>r.call(o),r=>a=>{if(a>2)throw t();return r.call(o,a)}),"max"===i.channelCountMode))throw t();return n(o,"channelCountMode",r=>()=>r.call(o),r=>a=>{if("max"===a)throw t();return r.call(o,a)}),o})(yo,Mf),Dae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{buffer:l.buffer,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,disableNormalization:!l.normalize})),i.set(s,l),zu(l)?yield e(a,s,l.inputs[0]):yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(EF,ri,oo),Eae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=i(s),u={...Iie,...l},d=e(c,u);super(s,!1,d,o(c)?n():null),this._isBufferNullified=!1,this._nativeConvolverNode=d,null!==u.buffer&&r(this,u.buffer.duration)}get buffer(){return this._isBufferNullified?null:this._nativeConvolverNode.buffer}set buffer(s){if(this._nativeConvolverNode.buffer=s,null===s&&null!==this._nativeConvolverNode.buffer){const l=this._nativeConvolverNode.context;this._nativeConvolverNode.buffer=l.createBuffer(1,1,l.sampleRate),this._isBufferNullified=!0,r(this,0)}else this._isBufferNullified=!1,r(this,null===this._nativeConvolverNode.buffer?0:this._nativeConvolverNode.buffer.duration)}get normalize(){return this._nativeConvolverNode.normalize}set normalize(s){this._nativeConvolverNode.normalize=s}})(Ii,Dae,EF,ti,Yn,ql),Tae=((t,n,e,i,o)=>r=>{const a=new WeakMap,s=function(){var l=(0,y.Z)(function*(c,u){let d=e(c);const h=bo(d,u);return h||(d=n(u,{channelCount:d.channelCount,channelCountMode:d.channelCountMode,channelInterpretation:d.channelInterpretation,delayTime:d.delayTime.value,maxDelayTime:r})),a.set(u,d),h?yield t(u,c.delayTime,d.delayTime):yield i(u,c.delayTime,d.delayTime),yield o(c,u,d),d});return function(u,d){return l.apply(this,arguments)}}();return{render(l,c){const u=a.get(c);return void 0!==u?Promise.resolve(u):s(l,c)}}})(Ta,uF,ri,Ma,oo),Mae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...jie,...c},h=i(u,d),p=r(u);super(l,!1,h,p?e(d.maxDelayTime):null),this._delayTime=n(this,p,h.delayTime),a(this,d.maxDelayTime)}get delayTime(){return this._delayTime}})(Ii,Jr,Tae,uF,ti,Yn,ql),TF=(t=>(n,e)=>{const i=n.createDynamicsCompressor();if(Vi(i,e),e.channelCount>2||"max"===e.channelCountMode)throw t();return vi(i,e,"attack"),vi(i,e,"knee"),vi(i,e,"ratio"),vi(i,e,"release"),vi(i,e,"threshold"),i})(yo),Aae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{attack:u.attack.value,channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,knee:u.knee.value,ratio:u.ratio.value,release:u.release.value,threshold:u.threshold.value})),r.set(c,u),d?(yield t(c,l.attack,u.attack),yield t(c,l.knee,u.knee),yield t(c,l.ratio,u.ratio),yield t(c,l.release,u.release),yield t(c,l.threshold,u.threshold)):(yield i(c,l.attack,u.attack),yield i(c,l.knee,u.knee),yield i(c,l.ratio,u.ratio),yield i(c,l.release,u.release),yield i(c,l.threshold,u.threshold)),yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ta,TF,ri,Ma,oo),kae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h={...Gie,...u},p=i(d,h),g=a(d);super(c,!1,p,g?e():null),this._attack=n(this,g,p.attack),this._knee=n(this,g,p.knee),this._nativeDynamicsCompressorNode=p,this._ratio=n(this,g,p.ratio),this._release=n(this,g,p.release),this._threshold=n(this,g,p.threshold),s(this,.006)}get attack(){return this._attack}get channelCount(){return this._nativeDynamicsCompressorNode.channelCount}set channelCount(c){const u=this._nativeDynamicsCompressorNode.channelCount;if(this._nativeDynamicsCompressorNode.channelCount=c,c>2)throw this._nativeDynamicsCompressorNode.channelCount=u,o()}get channelCountMode(){return this._nativeDynamicsCompressorNode.channelCountMode}set channelCountMode(c){const u=this._nativeDynamicsCompressorNode.channelCountMode;if(this._nativeDynamicsCompressorNode.channelCountMode=c,"max"===c)throw this._nativeDynamicsCompressorNode.channelCountMode=u,o()}get knee(){return this._knee}get ratio(){return this._ratio}get reduction(){return"number"==typeof this._nativeDynamicsCompressorNode.reduction.value?this._nativeDynamicsCompressorNode.reduction.value:this._nativeDynamicsCompressorNode.reduction}get release(){return this._release}get threshold(){return this._threshold}})(Ii,Jr,Aae,TF,yo,ti,Yn,ql),Iae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,gain:u.gain.value})),r.set(c,u),d?yield t(c,l.gain,u.gain):yield i(c,l.gain,u.gain),yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ta,$o,ri,Ma,oo),Oae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=o(s),u={...eoe,...l},d=i(c,u),h=r(c);super(s,!1,d,h?e():null),this._gain=n(this,h,d.gain,Io,zo)}get gain(){return this._gain}})(Ii,Jr,Iae,$o,ti,Yn),Rae=((t,n,e,i)=>(o,r,{channelCount:a,channelCountMode:s,channelInterpretation:l,feedback:c,feedforward:u})=>{const d=lF(r,o.sampleRate),h=c instanceof Float64Array?c:new Float64Array(c),p=u instanceof Float64Array?u:new Float64Array(u),g=h.length,b=p.length,T=Math.min(g,b);if(0===g||g>20)throw i();if(0===h[0])throw n();if(0===b||b>20)throw i();if(0===p[0])throw n();if(1!==h[0]){for(let be=0;be{const Be=be.inputBuffer,Fe=be.outputBuffer,Qe=Be.numberOfChannels;for(let Re=0;ReD.addEventListener(be[0],be[1],be[2]),dispatchEvent:(...be)=>D.dispatchEvent(be[0]),getFrequencyResponse(be,Be,Fe){if(be.length!==Be.length||Be.length!==Fe.length)throw t();const Qe=be.length;for(let Re=0;ReD.removeEventListener(be[0],be[1],be[2])},D)})(kb,Li,Tf,yo),Ob=((t,n,e,i)=>o=>t(Kl,()=>Kl(o))?Promise.resolve(t(i,i)).then(r=>{if(!r){const a=e(o,512,0,1);o.oncomplete=()=>{a.onaudioprocess=null,a.disconnect()},a.onaudioprocess=()=>o.currentTime,a.connect(o.destination)}return o.startRendering()}):new Promise(r=>{const a=n(o,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});o.oncomplete=s=>{a.disconnect(),r(s.renderedBuffer)},a.connect(o.destination),o.startRendering()}))(dr,$o,Tf,((t,n)=>()=>{if(null===n)return Promise.resolve(!1);const e=new n(1,1,44100),i=t(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(o=>{e.oncomplete=()=>{i.disconnect(),o(0!==e.currentTime)},e.startRendering()})})($o,Ji)),Pae=((t,n,e,i,o)=>(r,a)=>{const s=new WeakMap;let l=null;const c=function(){var u=(0,y.Z)(function*(d,h){let p=null,g=n(d);const b=bo(g,h);if(void 0===h.createIIRFilter?p=t(h,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}):b||(g=h.createIIRFilter(a,r)),s.set(h,null===p?g:p),null!==p){if(null===l){if(null===e)throw new Error("Missing the native OfflineAudioContext constructor.");const D=new e(d.context.destination.channelCount,d.context.length,h.sampleRate);l=(0,y.Z)(function*(){return yield i(d,D,D.destination),((t,n,e,i)=>{const o=e instanceof Float64Array?e:new Float64Array(e),r=i instanceof Float64Array?i:new Float64Array(i),a=o.length,s=r.length,l=Math.min(a,s);if(1!==o[0]){for(let g=0;g(n,e,i)=>{if(void 0===n.createIIRFilter)return t(n,e,i);const o=n.createIIRFilter(i.feedforward,i.feedback);return Vi(o,i),o})(Rae),Fae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=i(s),u=o(c),d={...hoe,...l},h=n(c,u?null:s.baseLatency,d);super(s,!1,h,u?e(d.feedback,d.feedforward):null),(t=>{var n;t.getFrequencyResponse=(n=t.getFrequencyResponse,(e,i,o)=>{if(e.length!==i.length||i.length!==o.length)throw kb();return n.call(t,e,i,o)})})(h),this._nativeIIRFilterNode=h,r(this,1)}getFrequencyResponse(s,l,c){return this._nativeIIRFilterNode.getFrequencyResponse(s,l,c)}})(Ii,Nae,Pae,ti,Yn,ql),Lae=((t,n,e,i,o,r,a,s)=>(l,c)=>{const u=c.listener,{forwardX:h,forwardY:p,forwardZ:g,positionX:b,positionY:T,positionZ:D,upX:H,upY:oe,upZ:le}=void 0===u.forwardX?(()=>{const G=new Float32Array(1),pe=n(c,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),_e=a(c);let be=!1,Be=[0,0,-1,0,1,0],Fe=[0,0,0];const Qe=()=>{if(be)return;be=!0;const ut=i(c,256,9,0);ut.onaudioprocess=({inputBuffer:Se})=>{const Ye=[r(Se,G,0),r(Se,G,1),r(Se,G,2),r(Se,G,3),r(Se,G,4),r(Se,G,5)];Ye.some((it,St)=>it!==Be[St])&&(u.setOrientation(...Ye),Be=Ye);const We=[r(Se,G,6),r(Se,G,7),r(Se,G,8)];We.some((it,St)=>it!==Fe[St])&&(u.setPosition(...We),Fe=We)},pe.connect(ut)},Re=ut=>Se=>{Se!==Be[ut]&&(Be[ut]=Se,u.setOrientation(...Be))},Xe=ut=>Se=>{Se!==Fe[ut]&&(Fe[ut]=Se,u.setPosition(...Fe))},ct=(ut,Se,Ye)=>{const We=e(c,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:Se});We.connect(pe,0,ut),We.start(),Object.defineProperty(We.offset,"defaultValue",{get:()=>Se});const it=t({context:l},_e,We.offset,Io,zo);return s(it,"value",St=>()=>St.call(it),St=>At=>{try{St.call(it,At)}catch(on){if(9!==on.code)throw on}Qe(),_e&&Ye(At)}),it.cancelAndHoldAtTime=(St=it.cancelAndHoldAtTime,_e?()=>{throw o()}:(...At)=>{const on=St.apply(it,At);return Qe(),on}),it.cancelScheduledValues=(St=>_e?()=>{throw o()}:(...At)=>{const on=St.apply(it,At);return Qe(),on})(it.cancelScheduledValues),it.exponentialRampToValueAtTime=(St=>_e?()=>{throw o()}:(...At)=>{const on=St.apply(it,At);return Qe(),on})(it.exponentialRampToValueAtTime),it.linearRampToValueAtTime=(St=>_e?()=>{throw o()}:(...At)=>{const on=St.apply(it,At);return Qe(),on})(it.linearRampToValueAtTime),it.setTargetAtTime=(St=>_e?()=>{throw o()}:(...At)=>{const on=St.apply(it,At);return Qe(),on})(it.setTargetAtTime),it.setValueAtTime=(St=>_e?()=>{throw o()}:(...At)=>{const on=St.apply(it,At);return Qe(),on})(it.setValueAtTime),it.setValueCurveAtTime=(St=>_e?()=>{throw o()}:(...At)=>{const on=St.apply(it,At);return Qe(),on})(it.setValueCurveAtTime),it;var St};return{forwardX:ct(0,0,Re(0)),forwardY:ct(1,0,Re(1)),forwardZ:ct(2,-1,Re(2)),positionX:ct(6,0,Xe(0)),positionY:ct(7,0,Xe(1)),positionZ:ct(8,0,Xe(2)),upX:ct(3,0,Re(3)),upY:ct(4,1,Re(4)),upZ:ct(5,0,Re(5))}})():u;return{get forwardX(){return h},get forwardY(){return p},get forwardZ(){return g},get positionX(){return b},get positionY(){return T},get positionZ(){return D},get upX(){return H},get upY(){return oe},get upZ(){return le}}})(Jr,Js,Uu,Tf,yo,fF,Yn,Mf),MF=new WeakMap,O1=((t,n,e,i,o,r)=>class extends e{constructor(s,l){super(s),this._nativeContext=s,yb.set(this,s),i(s)&&o.set(s,new Set),this._destination=new t(this,l),this._listener=n(this,s),this._onstatechange=null}get currentTime(){return this._nativeContext.currentTime}get destination(){return this._destination}get listener(){return this._listener}get onstatechange(){return this._onstatechange}set onstatechange(s){const l="function"==typeof s?r(this,s):null;this._nativeContext.onstatechange=l;const c=this._nativeContext.onstatechange;this._onstatechange=null!==c&&c===l?s:c}get sampleRate(){return this._nativeContext.sampleRate}get state(){return this._nativeContext.state}})(pae,Lae,wF,Yn,MF,Vu),AF=((t,n,e,i,o,r)=>(a,s)=>{const l=a.createOscillator();return Vi(l,s),vi(l,s,"detune"),vi(l,s,"frequency"),void 0!==s.periodicWave?l.setPeriodicWave(s.periodicWave):di(l,s,"type"),n(e,()=>e(a))||C1(l),n(i,()=>i(a))||r(l,a),n(o,()=>o(a))||x1(l),t(a,l),l})(Ib,dr,S1,mF,D1,bF),jae=((t,n,e,i,o)=>()=>{const r=new WeakMap;let a=null,s=null,l=null;const c=function(){var u=(0,y.Z)(function*(d,h){let p=e(d);const g=bo(p,h);return g||(p=n(h,{channelCount:p.channelCount,channelCountMode:p.channelCountMode,channelInterpretation:p.channelInterpretation,detune:p.detune.value,frequency:p.frequency.value,periodicWave:null===a?void 0:a,type:p.type}),null!==s&&p.start(s),null!==l&&p.stop(l)),r.set(h,p),g?(yield t(h,d.detune,p.detune),yield t(h,d.frequency,p.frequency)):(yield i(h,d.detune,p.detune),yield i(h,d.frequency,p.frequency)),yield o(d,h,p),p});return function(h,p){return u.apply(this,arguments)}}();return{set periodicWave(u){a=u},set start(u){s=u},set stop(u){l=u},render(u,d){const h=r.get(d);return void 0!==h?Promise.resolve(h):c(u,d)}}})(Ta,AF,ri,Ma,oo),Bae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...Cre,...c},h=e(u,d),p=r(u),g=p?i():null,b=l.sampleRate/2;super(l,!1,h,g),this._detune=n(this,p,h.detune,153600,-153600),this._frequency=n(this,p,h.frequency,b,-b),this._nativeOscillatorNode=h,this._onended=null,this._oscillatorNodeRenderer=g,null!==this._oscillatorNodeRenderer&&void 0!==d.periodicWave&&(this._oscillatorNodeRenderer.periodicWave=d.periodicWave)}get detune(){return this._detune}get frequency(){return this._frequency}get onended(){return this._onended}set onended(l){const c="function"==typeof l?a(this,l):null;this._nativeOscillatorNode.onended=c;const u=this._nativeOscillatorNode.onended;this._onended=null!==u&&u===c?l:u}get type(){return this._nativeOscillatorNode.type}set type(l){this._nativeOscillatorNode.type=l,null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.periodicWave=null)}setPeriodicWave(l){this._nativeOscillatorNode.setPeriodicWave(l),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.periodicWave=l)}start(l=0){if(this._nativeOscillatorNode.start(l),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.start=l),"closed"!==this.context.state){Yu(this);const c=()=>{this._nativeOscillatorNode.removeEventListener("ended",c),ss(this)&&Cf(this)};this._nativeOscillatorNode.addEventListener("ended",c)}}stop(l=0){this._nativeOscillatorNode.stop(l),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.stop=l)}})(Ii,Jr,AF,jae,ti,Yn,Vu),kF=(t=>(n,e)=>{const i=t(n,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),o=n.createBuffer(1,2,44100);return i.buffer=o,i.loop=!0,i.connect(e),i.start(),()=>{i.stop(),i.disconnect(e)}})(Gu),Hae=((t,n,e,i,o)=>(r,{curve:a,oversample:s,...l})=>{const c=r.createWaveShaper(),u=r.createWaveShaper();Vi(c,l),Vi(u,l);const d=e(r,{...l,gain:1}),h=e(r,{...l,gain:-1}),p=e(r,{...l,gain:1}),g=e(r,{...l,gain:-1});let b=null,T=!1,D=null;const H={get bufferSize(){},get channelCount(){return c.channelCount},set channelCount(G){d.channelCount=G,h.channelCount=G,c.channelCount=G,p.channelCount=G,u.channelCount=G,g.channelCount=G},get channelCountMode(){return c.channelCountMode},set channelCountMode(G){d.channelCountMode=G,h.channelCountMode=G,c.channelCountMode=G,p.channelCountMode=G,u.channelCountMode=G,g.channelCountMode=G},get channelInterpretation(){return c.channelInterpretation},set channelInterpretation(G){d.channelInterpretation=G,h.channelInterpretation=G,c.channelInterpretation=G,p.channelInterpretation=G,u.channelInterpretation=G,g.channelInterpretation=G},get context(){return c.context},get curve(){return D},set curve(G){if(null!==G&&G.length<2)throw n();if(null===G)c.curve=G,u.curve=G;else{const pe=G.length,_e=new Float32Array(pe+2-pe%2),be=new Float32Array(pe+2-pe%2);_e[0]=G[0],be[0]=-G[pe-1];const Be=Math.ceil((pe+1)/2),Fe=(pe+1)/2-1;for(let Qe=1;Qed.addEventListener(G[0],G[1],G[2]),dispatchEvent:(...G)=>d.dispatchEvent(G[0]),removeEventListener:(...G)=>d.removeEventListener(G[0],G[1],G[2])};return null!==a&&(H.curve=a instanceof Float32Array?a:new Float32Array(a)),s!==H.oversample&&(H.oversample=s),o($u(H,p),()=>{d.connect(c).connect(p),d.connect(h).connect(u).connect(g).connect(p),T=!0,i(D)&&(b=t(r,d))},()=>{d.disconnect(c),c.disconnect(p),d.disconnect(h),h.disconnect(u),u.disconnect(g),g.disconnect(p),T=!1,null!==b&&(b(),b=null)})})(kF,Li,$o,pF,Xs),Rb=((t,n,e,i,o,r,a)=>(s,l)=>{const c=s.createWaveShaper();if(null!==r&&"webkitAudioContext"===r.name&&void 0===s.createGain().gain.automationRate)return e(s,l);Vi(c,l);const u=null===l.curve||l.curve instanceof Float32Array?l.curve:new Float32Array(l.curve);if(null!==u&&u.length<2)throw n();di(c,{curve:u},"curve"),di(c,l,"oversample");let d=null,h=!1;return a(c,"curve",b=>()=>b.call(c),b=>T=>(b.call(c,T),h&&(i(T)&&null===d?d=t(s,c):!i(T)&&null!==d&&(d(),d=null)),T)),o(c,()=>{h=!0,i(c.curve)&&(d=t(s,c))},()=>{h=!1,null!==d&&(d(),d=null)})})(kF,Li,Hae,pF,Xs,ls,Mf),Yae=((t,n,e,i,o,r,a,s,l,c)=>(u,{coneInnerAngle:d,coneOuterAngle:h,coneOuterGain:p,distanceModel:g,maxDistance:b,orientationX:T,orientationY:D,orientationZ:H,panningModel:oe,positionX:le,positionY:G,positionZ:pe,refDistance:_e,rolloffFactor:be,...Be})=>{const Fe=u.createPanner();if(Be.channelCount>2||"max"===Be.channelCountMode)throw a();Vi(Fe,Be);const Qe={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},Re=e(u,{...Qe,channelInterpretation:"speakers",numberOfInputs:6}),Xe=i(u,{...Be,gain:1}),ct=i(u,{...Qe,gain:1}),ut=i(u,{...Qe,gain:0}),Se=i(u,{...Qe,gain:0}),Ye=i(u,{...Qe,gain:0}),We=i(u,{...Qe,gain:0}),it=i(u,{...Qe,gain:0}),St=o(u,256,6,1),At=r(u,{...Qe,curve:new Float32Array([1,1]),oversample:"none"});let on=[T,D,H],Rn=[le,G,pe];const sn=new Float32Array(1);St.onaudioprocess=({inputBuffer:dt})=>{const Cn=[l(dt,sn,0),l(dt,sn,1),l(dt,sn,2)];Cn.some((Ar,Ks)=>Ar!==on[Ks])&&(Fe.setOrientation(...Cn),on=Cn);const ro=[l(dt,sn,3),l(dt,sn,4),l(dt,sn,5)];ro.some((Ar,Ks)=>Ar!==Rn[Ks])&&(Fe.setPosition(...ro),Rn=ro)},Object.defineProperty(ut.gain,"defaultValue",{get:()=>0}),Object.defineProperty(Se.gain,"defaultValue",{get:()=>0}),Object.defineProperty(Ye.gain,"defaultValue",{get:()=>0}),Object.defineProperty(We.gain,"defaultValue",{get:()=>0}),Object.defineProperty(it.gain,"defaultValue",{get:()=>0});const ln={get bufferSize(){},get channelCount(){return Fe.channelCount},set channelCount(dt){if(dt>2)throw a();Xe.channelCount=dt,Fe.channelCount=dt},get channelCountMode(){return Fe.channelCountMode},set channelCountMode(dt){if("max"===dt)throw a();Xe.channelCountMode=dt,Fe.channelCountMode=dt},get channelInterpretation(){return Fe.channelInterpretation},set channelInterpretation(dt){Xe.channelInterpretation=dt,Fe.channelInterpretation=dt},get coneInnerAngle(){return Fe.coneInnerAngle},set coneInnerAngle(dt){Fe.coneInnerAngle=dt},get coneOuterAngle(){return Fe.coneOuterAngle},set coneOuterAngle(dt){Fe.coneOuterAngle=dt},get coneOuterGain(){return Fe.coneOuterGain},set coneOuterGain(dt){if(dt<0||dt>1)throw n();Fe.coneOuterGain=dt},get context(){return Fe.context},get distanceModel(){return Fe.distanceModel},set distanceModel(dt){Fe.distanceModel=dt},get inputs(){return[Xe]},get maxDistance(){return Fe.maxDistance},set maxDistance(dt){if(dt<0)throw new RangeError;Fe.maxDistance=dt},get numberOfInputs(){return Fe.numberOfInputs},get numberOfOutputs(){return Fe.numberOfOutputs},get orientationX(){return ct.gain},get orientationY(){return ut.gain},get orientationZ(){return Se.gain},get panningModel(){return Fe.panningModel},set panningModel(dt){Fe.panningModel=dt},get positionX(){return Ye.gain},get positionY(){return We.gain},get positionZ(){return it.gain},get refDistance(){return Fe.refDistance},set refDistance(dt){if(dt<0)throw new RangeError;Fe.refDistance=dt},get rolloffFactor(){return Fe.rolloffFactor},set rolloffFactor(dt){if(dt<0)throw new RangeError;Fe.rolloffFactor=dt},addEventListener:(...dt)=>Xe.addEventListener(dt[0],dt[1],dt[2]),dispatchEvent:(...dt)=>Xe.dispatchEvent(dt[0]),removeEventListener:(...dt)=>Xe.removeEventListener(dt[0],dt[1],dt[2])};return d!==ln.coneInnerAngle&&(ln.coneInnerAngle=d),h!==ln.coneOuterAngle&&(ln.coneOuterAngle=h),p!==ln.coneOuterGain&&(ln.coneOuterGain=p),g!==ln.distanceModel&&(ln.distanceModel=g),b!==ln.maxDistance&&(ln.maxDistance=b),T!==ln.orientationX.value&&(ln.orientationX.value=T),D!==ln.orientationY.value&&(ln.orientationY.value=D),H!==ln.orientationZ.value&&(ln.orientationZ.value=H),oe!==ln.panningModel&&(ln.panningModel=oe),le!==ln.positionX.value&&(ln.positionX.value=le),G!==ln.positionY.value&&(ln.positionY.value=G),pe!==ln.positionZ.value&&(ln.positionZ.value=pe),_e!==ln.refDistance&&(ln.refDistance=_e),be!==ln.rolloffFactor&&(ln.rolloffFactor=be),(1!==on[0]||0!==on[1]||0!==on[2])&&Fe.setOrientation(...on),(0!==Rn[0]||0!==Rn[1]||0!==Rn[2])&&Fe.setPosition(...Rn),c($u(ln,Fe),()=>{Xe.connect(Fe),t(Xe,At,0,0),At.connect(ct).connect(Re,0,0),At.connect(ut).connect(Re,0,1),At.connect(Se).connect(Re,0,2),At.connect(Ye).connect(Re,0,3),At.connect(We).connect(Re,0,4),At.connect(it).connect(Re,0,5),Re.connect(St).connect(u.destination)},()=>{Xe.disconnect(Fe),s(Xe,At,0,0),At.disconnect(ct),ct.disconnect(Re),At.disconnect(ut),ut.disconnect(Re),At.disconnect(Se),Se.disconnect(Re),At.disconnect(Ye),Ye.disconnect(Re),At.disconnect(We),We.disconnect(Re),At.disconnect(it),it.disconnect(Re),Re.disconnect(St),St.disconnect(u.destination)})})(xb,Li,Js,$o,Tf,Rb,yo,Sb,fF,Xs),IF=(t=>(n,e)=>{const i=n.createPanner();return void 0===i.orientationX?t(n,e):(Vi(i,e),vi(i,e,"orientationX"),vi(i,e,"orientationY"),vi(i,e,"orientationZ"),vi(i,e,"positionX"),vi(i,e,"positionY"),vi(i,e,"positionZ"),di(i,e,"coneInnerAngle"),di(i,e,"coneOuterAngle"),di(i,e,"coneOuterGain"),di(i,e,"distanceModel"),di(i,e,"maxDistance"),di(i,e,"panningModel"),di(i,e,"refDistance"),di(i,e,"rolloffFactor"),i)})(Yae),zae=((t,n,e,i,o,r,a,s,l,c)=>()=>{const u=new WeakMap;let d=null;const h=function(){var p=(0,y.Z)(function*(g,b){let T=null,D=r(g);const H={channelCount:D.channelCount,channelCountMode:D.channelCountMode,channelInterpretation:D.channelInterpretation},oe={...H,coneInnerAngle:D.coneInnerAngle,coneOuterAngle:D.coneOuterAngle,coneOuterGain:D.coneOuterGain,distanceModel:D.distanceModel,maxDistance:D.maxDistance,panningModel:D.panningModel,refDistance:D.refDistance,rolloffFactor:D.rolloffFactor},le=bo(D,b);if("bufferSize"in D)T=i(b,{...H,gain:1});else if(!le){const G={...oe,orientationX:D.orientationX.value,orientationY:D.orientationY.value,orientationZ:D.orientationZ.value,positionX:D.positionX.value,positionY:D.positionY.value,positionZ:D.positionZ.value};D=o(b,G)}if(u.set(b,null===T?D:T),null!==T){if(null===d){if(null===a)throw new Error("Missing the native OfflineAudioContext constructor.");const Re=new a(6,g.context.length,b.sampleRate),Xe=n(Re,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6});Xe.connect(Re.destination),d=(0,y.Z)(function*(){const ct=yield Promise.all([g.orientationX,g.orientationY,g.orientationZ,g.positionX,g.positionY,g.positionZ].map(function(){var ut=(0,y.Z)(function*(Se,Ye){const We=e(Re,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:0===Ye?1:0});return yield s(Re,Se,We.offset),We});return function(Se,Ye){return ut.apply(this,arguments)}}()));for(let ut=0;ut<6;ut+=1)ct[ut].connect(Xe,0,ut),ct[ut].start(0);return c(Re)})()}const G=yield d,pe=i(b,{...H,gain:1});yield l(g,b,pe);const _e=[];for(let Re=0;Reut!==be[Se])||ct.some((ut,Se)=>ut!==Be[Se])){be=Xe,Be=ct;const ut=Re/b.sampleRate;Fe.gain.setValueAtTime(0,ut),Fe=i(b,{...H,gain:0}),Qe=o(b,{...oe,orientationX:be[0],orientationY:be[1],orientationZ:be[2],positionX:Be[0],positionY:Be[1],positionZ:Be[2]}),Fe.gain.setValueAtTime(1,ut),pe.connect(Fe).connect(Qe.inputs[0]),Qe.connect(T)}}return T}return le?(yield t(b,g.orientationX,D.orientationX),yield t(b,g.orientationY,D.orientationY),yield t(b,g.orientationZ,D.orientationZ),yield t(b,g.positionX,D.positionX),yield t(b,g.positionY,D.positionY),yield t(b,g.positionZ,D.positionZ)):(yield s(b,g.orientationX,D.orientationX),yield s(b,g.orientationY,D.orientationY),yield s(b,g.orientationZ,D.orientationZ),yield s(b,g.positionX,D.positionX),yield s(b,g.positionY,D.positionY),yield s(b,g.positionZ,D.positionZ)),zu(D)?yield l(g,b,D.inputs[0]):yield l(g,b,D),D});return function(b,T){return p.apply(this,arguments)}}();return{render(p,g){const b=u.get(g);return void 0!==b?Promise.resolve(b):h(p,g)}}})(Ta,Js,Uu,$o,IF,ri,Ji,Ma,oo,Ob),$ae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...Dre,...c},h=e(u,d),p=r(u);super(l,!1,h,p?i():null),this._nativePannerNode=h,this._orientationX=n(this,p,h.orientationX,Io,zo),this._orientationY=n(this,p,h.orientationY,Io,zo),this._orientationZ=n(this,p,h.orientationZ,Io,zo),this._positionX=n(this,p,h.positionX,Io,zo),this._positionY=n(this,p,h.positionY,Io,zo),this._positionZ=n(this,p,h.positionZ,Io,zo),a(this,1)}get coneInnerAngle(){return this._nativePannerNode.coneInnerAngle}set coneInnerAngle(l){this._nativePannerNode.coneInnerAngle=l}get coneOuterAngle(){return this._nativePannerNode.coneOuterAngle}set coneOuterAngle(l){this._nativePannerNode.coneOuterAngle=l}get coneOuterGain(){return this._nativePannerNode.coneOuterGain}set coneOuterGain(l){this._nativePannerNode.coneOuterGain=l}get distanceModel(){return this._nativePannerNode.distanceModel}set distanceModel(l){this._nativePannerNode.distanceModel=l}get maxDistance(){return this._nativePannerNode.maxDistance}set maxDistance(l){this._nativePannerNode.maxDistance=l}get orientationX(){return this._orientationX}get orientationY(){return this._orientationY}get orientationZ(){return this._orientationZ}get panningModel(){return this._nativePannerNode.panningModel}set panningModel(l){this._nativePannerNode.panningModel=l}get positionX(){return this._positionX}get positionY(){return this._positionY}get positionZ(){return this._positionZ}get refDistance(){return this._nativePannerNode.refDistance}set refDistance(l){this._nativePannerNode.refDistance=l}get rolloffFactor(){return this._nativePannerNode.rolloffFactor}set rolloffFactor(l){this._nativePannerNode.rolloffFactor=l}})(Ii,Jr,IF,zae,ti,Yn,ql),Vae=(t=>(n,{disableNormalization:e,imag:i,real:o})=>{const r=i instanceof Float32Array?i:new Float32Array(i),a=o instanceof Float32Array?o:new Float32Array(o),s=n.createPeriodicWave(a,r,{disableNormalization:e});if(Array.from(i).length<2)throw t();return s})(Ea),Zae=((t,n,e,i)=>class Kj{constructor(r,a){const s=n(r),l=(t=>{const{imag:n,real:e}=t;return void 0===n?void 0===e?{...t,imag:[0,0],real:[0,0]}:{...t,imag:Array.from(e,()=>0),real:e}:void 0===e?{...t,imag:n,real:Array.from(n,()=>0)}:{...t,imag:n,real:e}})({...Mre,...a}),c=t(s,l);return e.add(c),c}static[Symbol.hasInstance](r){return null!==r&&"object"==typeof r&&Object.getPrototypeOf(r)===Kj.prototype||e.has(r)}})(Vae,ti,new WeakSet),Gae=((t,n,e,i,o,r)=>{const s=new Float32Array([1,1]),l=Math.PI/2,c={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},u={...c,oversample:"none"},p=(g,b,T,D,H)=>{if(1===b)return((g,b,T,D)=>{const H=new Float32Array(16385),oe=new Float32Array(16385);for(let Be=0;Be<16385;Be+=1){const Fe=Be/16384*l;H[Be]=Math.cos(Fe),oe[Be]=Math.sin(Fe)}const le=e(g,{...c,gain:0}),G=i(g,{...u,curve:H}),pe=i(g,{...u,curve:s}),_e=e(g,{...c,gain:0}),be=i(g,{...u,curve:oe});return{connectGraph(){b.connect(le),b.connect(void 0===pe.inputs?pe:pe.inputs[0]),b.connect(_e),pe.connect(T),T.connect(void 0===G.inputs?G:G.inputs[0]),T.connect(void 0===be.inputs?be:be.inputs[0]),G.connect(le.gain),be.connect(_e.gain),le.connect(D,0,0),_e.connect(D,0,1)},disconnectGraph(){b.disconnect(le),b.disconnect(void 0===pe.inputs?pe:pe.inputs[0]),b.disconnect(_e),pe.disconnect(T),T.disconnect(void 0===G.inputs?G:G.inputs[0]),T.disconnect(void 0===be.inputs?be:be.inputs[0]),G.disconnect(le.gain),be.disconnect(_e.gain),le.disconnect(D,0,0),_e.disconnect(D,0,1)}}})(g,T,D,H);if(2===b)return((g,b,T,D)=>{const H=new Float32Array(16385),oe=new Float32Array(16385),le=new Float32Array(16385),G=new Float32Array(16385),pe=Math.floor(8192.5);for(let Ye=0;Ye<16385;Ye+=1)if(Ye>pe){const We=(Ye-pe)/(16384-pe)*l;H[Ye]=Math.cos(We),oe[Ye]=Math.sin(We),le[Ye]=0,G[Ye]=1}else{const We=Ye/(16384-pe)*l;H[Ye]=1,oe[Ye]=0,le[Ye]=Math.cos(We),G[Ye]=Math.sin(We)}const _e=n(g,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),be=e(g,{...c,gain:0}),Be=i(g,{...u,curve:H}),Fe=e(g,{...c,gain:0}),Qe=i(g,{...u,curve:oe}),Re=i(g,{...u,curve:s}),Xe=e(g,{...c,gain:0}),ct=i(g,{...u,curve:le}),ut=e(g,{...c,gain:0}),Se=i(g,{...u,curve:G});return{connectGraph(){b.connect(_e),b.connect(void 0===Re.inputs?Re:Re.inputs[0]),_e.connect(be,0),_e.connect(Fe,0),_e.connect(Xe,1),_e.connect(ut,1),Re.connect(T),T.connect(void 0===Be.inputs?Be:Be.inputs[0]),T.connect(void 0===Qe.inputs?Qe:Qe.inputs[0]),T.connect(void 0===ct.inputs?ct:ct.inputs[0]),T.connect(void 0===Se.inputs?Se:Se.inputs[0]),Be.connect(be.gain),Qe.connect(Fe.gain),ct.connect(Xe.gain),Se.connect(ut.gain),be.connect(D,0,0),Xe.connect(D,0,0),Fe.connect(D,0,1),ut.connect(D,0,1)},disconnectGraph(){b.disconnect(_e),b.disconnect(void 0===Re.inputs?Re:Re.inputs[0]),_e.disconnect(be,0),_e.disconnect(Fe,0),_e.disconnect(Xe,1),_e.disconnect(ut,1),Re.disconnect(T),T.disconnect(void 0===Be.inputs?Be:Be.inputs[0]),T.disconnect(void 0===Qe.inputs?Qe:Qe.inputs[0]),T.disconnect(void 0===ct.inputs?ct:ct.inputs[0]),T.disconnect(void 0===Se.inputs?Se:Se.inputs[0]),Be.disconnect(be.gain),Qe.disconnect(Fe.gain),ct.disconnect(Xe.gain),Se.disconnect(ut.gain),be.disconnect(D,0,0),Xe.disconnect(D,0,0),Fe.disconnect(D,0,1),ut.disconnect(D,0,1)}}})(g,T,D,H);throw o()};return(g,{channelCount:b,channelCountMode:T,pan:D,...H})=>{if("max"===T)throw o();const oe=t(g,{...H,channelCount:1,channelCountMode:T,numberOfInputs:2}),le=e(g,{...H,channelCount:b,channelCountMode:T,gain:1}),G=e(g,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:D});let{connectGraph:pe,disconnectGraph:_e}=p(g,b,le,G,oe);Object.defineProperty(G.gain,"defaultValue",{get:()=>0}),Object.defineProperty(G.gain,"maxValue",{get:()=>1}),Object.defineProperty(G.gain,"minValue",{get:()=>-1});const be={get bufferSize(){},get channelCount(){return le.channelCount},set channelCount(Re){le.channelCount!==Re&&(Be&&_e(),({connectGraph:pe,disconnectGraph:_e}=p(g,Re,le,G,oe)),Be&&pe()),le.channelCount=Re},get channelCountMode(){return le.channelCountMode},set channelCountMode(Re){if("clamped-max"===Re||"max"===Re)throw o();le.channelCountMode=Re},get channelInterpretation(){return le.channelInterpretation},set channelInterpretation(Re){le.channelInterpretation=Re},get context(){return le.context},get inputs(){return[le]},get numberOfInputs(){return le.numberOfInputs},get numberOfOutputs(){return le.numberOfOutputs},get pan(){return G.gain},addEventListener:(...Re)=>le.addEventListener(Re[0],Re[1],Re[2]),dispatchEvent:(...Re)=>le.dispatchEvent(Re[0]),removeEventListener:(...Re)=>le.removeEventListener(Re[0],Re[1],Re[2])};let Be=!1;return r($u(be,oe),()=>{pe(),Be=!0},()=>{_e(),Be=!1})}})(Js,Ef,$o,Rb,yo,Xs),OF=((t,n)=>(e,i)=>{const o=i.channelCountMode;if("clamped-max"===o)throw n();if(void 0===e.createStereoPanner)return t(e,i);const r=e.createStereoPanner();return Vi(r,i),vi(r,i,"pan"),Object.defineProperty(r,"channelCountMode",{get:()=>o,set:a=>{if(a!==o)throw n()}}),r})(Gae,yo),Uae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,pan:u.pan.value})),r.set(c,u),d?yield t(c,l.pan,u.pan):yield i(c,l.pan,u.pan),zu(u)?yield o(l,c,u.inputs[0]):yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ta,OF,ri,Ma,oo),Wae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=o(s),u={...Lre,...l},d=e(c,u),h=r(c);super(s,!1,d,h?i():null),this._pan=n(this,h,d.pan)}get pan(){return this._pan}})(Ii,Jr,OF,Uae,ti,Yn),Xae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,curve:l.curve,oversample:l.oversample})),i.set(s,l),zu(l)?yield e(a,s,l.inputs[0]):yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(Rb,ri,oo),Jae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...$re,...c},h=e(u,d);super(l,!0,h,r(u)?i():null),this._isCurveNullified=!1,this._nativeWaveShaperNode=h,a(this,1)}get curve(){return this._isCurveNullified?null:this._nativeWaveShaperNode.curve}set curve(l){if(null===l)this._isCurveNullified=!0,this._nativeWaveShaperNode.curve=new Float32Array([0,0]);else{if(l.length<2)throw n();this._isCurveNullified=!1,this._nativeWaveShaperNode.curve=l}}get oversample(){return this._nativeWaveShaperNode.oversample}set oversample(l){this._nativeWaveShaperNode.oversample=l}})(Ii,Li,Rb,Xae,ti,Yn,ql),RF=(t=>null!==t&&t.isSecureContext)(Xr),R1=(t=>(n,e,i)=>{Object.defineProperties(t,{currentFrame:{configurable:!0,get:()=>Math.round(n*e)},currentTime:{configurable:!0,get:()=>n}});try{return i()}finally{null!==t&&(delete t.currentFrame,delete t.currentTime)}})(Xr),PF=new WeakMap,Qae=((t,n)=>e=>{let i=t.get(e);if(void 0!==i)return i;if(null===n)throw new Error("Missing the native OfflineAudioContext constructor.");return i=new n(1,1,44100),t.set(e,i),i})(PF,Ji),Kae=RF?((t,n,e,i,o,r,a,s,l,c,u,d,h)=>{let p=0;return(g,b,T={credentials:"omit"})=>{const D=u.get(g);if(void 0!==D&&D.has(b))return Promise.resolve();const H=c.get(g);if(void 0!==H){const G=H.get(b);if(void 0!==G)return G}const oe=r(g),le=void 0===oe.audioWorklet?o(b).then(([G,pe])=>{const[_e,be]=ZN(G,pe);return e(`${_e};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${be}\n})})(window,'_AWGS')`)}).then(()=>{const G=h._AWGS.pop();if(void 0===G)throw new SyntaxError;i(oe.currentTime,oe.sampleRate,()=>G(class{},void 0,(pe,_e)=>{if(""===pe.trim())throw n();const be=p1.get(oe);if(void 0!==be){if(be.has(pe))throw n();UN(_e),GN(_e.parameterDescriptors),be.set(pe,_e)}else UN(_e),GN(_e.parameterDescriptors),p1.set(oe,new Map([[pe,_e]]))},oe.sampleRate,void 0,void 0))}):Promise.all([o(b),Promise.resolve(t(d,d))]).then(([[G,pe],_e])=>{const be=p+1;p=be;const[Be,Fe]=ZN(G,pe),ut=new Blob([`${Be};((AudioWorkletProcessor,registerProcessor)=>{${Fe}\n})(${_e?"AudioWorkletProcessor":"class extends AudioWorkletProcessor {__b=new WeakSet();constructor(){super();(p=>p.postMessage=(q=>(m,t)=>q.call(p,m,t?t.filter(u=>!this.__b.has(u)):t))(p.postMessage))(this.port)}}"},(n,p)=>registerProcessor(n,class extends p{${_e?"":"__c = (a) => a.forEach(e=>this.__b.add(e.buffer));"}process(i,o,p){${_e?"":"i.forEach(this.__c);o.forEach(this.__c);this.__c(Object.values(p));"}return super.process(i.map(j=>j.some(k=>k.length===0)?[]:j),o,p)}}));registerProcessor('__sac${be}',class extends AudioWorkletProcessor{process(){return !1}})`],{type:"application/javascript; charset=utf-8"}),Se=URL.createObjectURL(ut);return oe.audioWorklet.addModule(Se,T).then(()=>{if(s(oe))return oe;const Ye=a(oe);return Ye.audioWorklet.addModule(Se,T).then(()=>Ye)}).then(Ye=>{if(null===l)throw new SyntaxError;try{new l(Ye,`__sac${be}`)}catch{throw new SyntaxError}}).finally(()=>URL.revokeObjectURL(Se))});return void 0===H?c.set(g,new Map([[b,le]])):H.set(b,le),le.then(()=>{const G=u.get(g);void 0===G?u.set(g,new Set([b])):G.add(b)}).finally(()=>{const G=c.get(g);void 0!==G&&G.delete(b)}),le}})(dr,yo,(t=>n=>new Promise((e,i)=>{if(null===t)return void i(new SyntaxError);const o=t.document.head;if(null===o)i(new SyntaxError);else{const r=t.document.createElement("script"),a=new Blob([n],{type:"application/javascript"}),s=URL.createObjectURL(a),l=t.onerror,c=()=>{t.onerror=l,URL.revokeObjectURL(s)};t.onerror=(u,d,h,p,g)=>d===s||d===t.location.href&&1===h&&1===p?(c(),i(g),!1):null!==l?l(u,d,h,p,g):void 0,r.onerror=()=>{c(),i(new SyntaxError)},r.onload=()=>{c(),e()},r.src=s,r.type="module",o.appendChild(r)}}))(Xr),R1,function(){var n=(0,y.Z)(function*(e){try{const i=yield fetch(e);if(i.ok)return[yield i.text(),i.url]}catch{}throw new DOMException("","AbortError")});return function(e){return n.apply(this,arguments)}}(),ti,Qae,Yn,Zu,new WeakMap,new WeakMap,((t,n)=>(0,y.Z)(function*(){if(null===t)return!0;if(null===n)return!1;const e=new Blob(['class A extends AudioWorkletProcessor{process(i){this.port.postMessage(i,[i[0][0].buffer])}}registerProcessor("a",A)'],{type:"application/javascript; charset=utf-8"}),i=new n(1,128,44100),o=URL.createObjectURL(e);let r=!1,a=!1;try{yield i.audioWorklet.addModule(o);const s=new t(i,"a",{numberOfOutputs:0}),l=i.createOscillator();s.port.onmessage=()=>r=!0,s.onprocessorerror=()=>a=!0,l.connect(s),l.start(0),yield i.startRendering(),yield new Promise(c=>setTimeout(c))}catch{}finally{URL.revokeObjectURL(o)}return r&&!a}))(Zu,Ji),Xr):void 0,qae=((t,n)=>e=>t(e)||n(e))(T1,Yn),ese=((t,n,e,i,o,r,a,s,l,c,u)=>(d,h)=>{const p=a(d)?d:r(d);if(o.has(h)){const g=new DOMException("","DataCloneError");return Promise.reject(g)}try{o.add(h)}catch{}return n(l,()=>l(p))?p.decodeAudioData(h).then(g=>(rF(h).catch(()=>{}),n(s,()=>s(g))||u(g),t.add(g),g)):new Promise((g,b)=>{const T=function(){var H=(0,y.Z)(function*(){try{yield rF(h)}catch{}});return function(){return H.apply(this,arguments)}}(),D=H=>{b(H),T()};try{p.decodeAudioData(h,H=>{"function"!=typeof H.copyFromChannel&&(c(H),b1(H)),t.add(H),T().then(()=>g(H))},H=>{D(null===H?new DOMException("","EncodingError"):H)})}catch(H){D(H)}})})(A1,dr,0,0,new WeakSet,ti,qae,vb,Kl,k1,I1),NF=((t,n,e,i,o,r,a,s,l,c,u,d,h,p,g,b,T,D,H,oe)=>class extends g{constructor(G,pe){super(G,pe),this._nativeContext=G,this._audioWorklet=void 0===t?void 0:{addModule:(_e,be)=>t(this,_e,be)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new n(this)}createBiquadFilter(){return new o(this)}createBuffer(G,pe,_e){return new e({length:pe,numberOfChannels:G,sampleRate:_e})}createBufferSource(){return new i(this)}createChannelMerger(G=6){return new r(this,{numberOfInputs:G})}createChannelSplitter(G=6){return new a(this,{numberOfOutputs:G})}createConstantSource(){return new s(this)}createConvolver(){return new l(this)}createDelay(G=1){return new u(this,{maxDelayTime:G})}createDynamicsCompressor(){return new d(this)}createGain(){return new h(this)}createIIRFilter(G,pe){return new p(this,{feedback:pe,feedforward:G})}createOscillator(){return new b(this)}createPanner(){return new T(this)}createPeriodicWave(G,pe,_e={disableNormalization:!1}){return new D(this,{..._e,imag:pe,real:G})}createStereoPanner(){return new H(this)}createWaveShaper(){return new oe(this)}decodeAudioData(G,pe,_e){return c(this._nativeContext,G).then(be=>("function"==typeof pe&&pe(be),be),be=>{throw"function"==typeof _e&&_e(be),be})}})(Kae,uae,dae,fae,mae,_ae,wae,Sae,Eae,ese,Mae,kae,Oae,Fae,O1,Bae,$ae,Zae,Wae,Jae),tse=((t,n,e,i)=>class extends t{constructor(r,a){const s=e(r),l=((t,n)=>t.createMediaElementSource(n.mediaElement))(s,a);if(i(s))throw TypeError();super(r,!0,l,null),this._nativeMediaElementAudioSourceNode=l}get mediaElement(){return this._nativeMediaElementAudioSourceNode.mediaElement}})(Ii,0,ti,Yn),nse=((t,n,e,i)=>class extends t{constructor(r,a){const s=e(r);if(i(s))throw new TypeError;const c=((t,n)=>{const e=t.createMediaStreamDestination();return Vi(e,n),1===e.numberOfOutputs&&Object.defineProperty(e,"numberOfOutputs",{get:()=>0}),e})(s,{...Moe,...a});super(r,!1,c,null),this._nativeMediaStreamAudioDestinationNode=c}get stream(){return this._nativeMediaStreamAudioDestinationNode.stream}})(Ii,0,ti,Yn),ise=((t,n,e,i)=>class extends t{constructor(r,a){const s=e(r),l=((t,{mediaStream:n})=>{const e=n.getAudioTracks();e.sort((r,a)=>r.ida.id?1:0);const i=e.slice(0,1),o=t.createMediaStreamSource(new MediaStream(i));return Object.defineProperty(o,"mediaStream",{value:n}),o})(s,a);if(i(s))throw new TypeError;super(r,!0,l,null),this._nativeMediaStreamAudioSourceNode=l}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}})(Ii,0,ti,Yn),ose=((t,n)=>(e,{mediaStreamTrack:i})=>{if("function"==typeof e.createMediaStreamTrackSource)return e.createMediaStreamTrackSource(i);const o=new MediaStream([i]),r=e.createMediaStreamSource(o);if("audio"!==i.kind)throw t();if(n(e))throw new TypeError;return r})(Li,Yn),rse=((t,n,e)=>class extends t{constructor(o,r){const a=e(o);super(o,!0,n(a,r),null)}})(Ii,ose,ti),ase=((t,n,e,i,o,r,a,s,l)=>class extends t{constructor(u={}){if(null===l)throw new Error("Missing the native AudioContext constructor.");let d;try{d=new l(u)}catch(g){throw 12===g.code&&"sampleRate is not in range"===g.message?e():g}if(null===d)throw i();if(!(t=>void 0===t||"number"==typeof t||"string"==typeof t&&("balanced"===t||"interactive"===t||"playback"===t))(u.latencyHint))throw new TypeError(`The provided value '${u.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(void 0!==u.sampleRate&&d.sampleRate!==u.sampleRate)throw e();super(d,2);const{latencyHint:h}=u,{sampleRate:p}=d;if(this._baseLatency="number"==typeof d.baseLatency?d.baseLatency:"balanced"===h?512/p:"interactive"===h||void 0===h?256/p:"playback"===h?1024/p:128*Math.max(2,Math.min(128,Math.round(h*p/128)))/p,this._nativeAudioContext=d,"webkitAudioContext"===l.name?(this._nativeGainNode=d.createGain(),this._nativeOscillatorNode=d.createOscillator(),this._nativeGainNode.gain.value=1e-37,this._nativeOscillatorNode.connect(this._nativeGainNode).connect(d.destination),this._nativeOscillatorNode.start()):(this._nativeGainNode=null,this._nativeOscillatorNode=null),this._state=null,"running"===d.state){this._state="suspended";const g=()=>{"suspended"===this._state&&(this._state=null),d.removeEventListener("statechange",g)};d.addEventListener("statechange",g)}}get baseLatency(){return this._baseLatency}get state(){return null!==this._state?this._state:this._nativeAudioContext.state}close(){return"closed"===this.state?this._nativeAudioContext.close().then(()=>{throw n()}):("suspended"===this._state&&(this._state=null),this._nativeAudioContext.close().then(()=>{null!==this._nativeGainNode&&null!==this._nativeOscillatorNode&&(this._nativeOscillatorNode.stop(),this._nativeGainNode.disconnect(),this._nativeOscillatorNode.disconnect()),(t=>{y1(t.destination,[])})(this)}))}createMediaElementSource(u){return new o(this,{mediaElement:u})}createMediaStreamDestination(){return new r(this)}createMediaStreamSource(u){return new a(this,{mediaStream:u})}createMediaStreamTrackSource(u){return new s(this,{mediaStreamTrack:u})}resume(){return"suspended"===this._state?new Promise((u,d)=>{const h=()=>{this._nativeAudioContext.removeEventListener("statechange",h),"running"===this._nativeAudioContext.state?u():this.resume().then(u,d)};this._nativeAudioContext.addEventListener("statechange",h)}):this._nativeAudioContext.resume().catch(u=>{throw void 0===u||15===u.code?n():u})}suspend(){return this._nativeAudioContext.suspend().catch(u=>{throw void 0===u?n():u})}})(NF,Li,yo,hF,tse,nse,ise,rse,ls),P1=(t=>n=>{const e=t.get(n);if(void 0===e)throw new Error("The context has no set of AudioWorkletNodes.");return e})(MF),FF=((t=>{})(P1),(t=>(n,e,i=0,o=0)=>{const r=n[i];if(void 0===r)throw t();return Eb(e)?r.connect(e,0,o):r.connect(e,0)})(Ea)),lse=(t=>(n,e)=>{t(n).delete(e)})(P1),LF=(t=>(n,e=void 0,i=void 0,o=0)=>void 0===e?n.forEach(r=>r.disconnect()):"number"==typeof e?Ab(t,n,e).disconnect():Eb(e)?void 0===i?n.forEach(r=>r.disconnect(e)):void 0===o?Ab(t,n,i).disconnect(e,0):Ab(t,n,i).disconnect(e,0,o):void 0===i?n.forEach(r=>r.disconnect(e)):Ab(t,n,i).disconnect(e,0))(Ea),jF=new WeakMap,cse=((t,n)=>e=>n(t,e))(jF,Wr),use=((t,n,e,i,o,r,a,s,l,c,u,d,h)=>(p,g,b,T)=>{if(0===T.numberOfInputs&&0===T.numberOfOutputs)throw l();const D=Array.isArray(T.outputChannelCount)?T.outputChannelCount:Array.from(T.outputChannelCount);if(D.some(ft=>ft<1))throw l();if(D.length!==T.numberOfOutputs)throw n();if("explicit"!==T.channelCountMode)throw l();const H=T.channelCount*T.numberOfInputs,oe=D.reduce((ft,jt)=>ft+jt,0),le=void 0===b.parameterDescriptors?0:b.parameterDescriptors.length;if(H+le>6||oe>6)throw l();const G=new MessageChannel,pe=[],_e=[];for(let ft=0;ftvoid 0===ft?0:ft},maxValue:{get:()=>void 0===jt?Io:jt},minValue:{get:()=>void 0===ai?zo:ai}}),be.push(Sn)}const Be=i(p,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,H+le)}),Fe=lF(g,p.sampleRate),Qe=s(p,Fe,H+le,Math.max(1,oe)),Re=o(p,{channelCount:Math.max(1,oe),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,oe)}),Xe=[];for(let ft=0;ft{const ai=be[jt];return ai.connect(Be,0,H+jt),ai.start(0),[ft,ai.offset]}));Be.connect(Qe);let ut=T.channelInterpretation,Se=null;const Ye=0===T.numberOfOutputs?[Qe]:Xe,We={get bufferSize(){return Fe},get channelCount(){return T.channelCount},set channelCount(ft){throw e()},get channelCountMode(){return T.channelCountMode},set channelCountMode(ft){throw e()},get channelInterpretation(){return ut},set channelInterpretation(ft){for(const jt of pe)jt.channelInterpretation=ft;ut=ft},get context(){return Qe.context},get inputs(){return pe},get numberOfInputs(){return T.numberOfInputs},get numberOfOutputs(){return T.numberOfOutputs},get onprocessorerror(){return Se},set onprocessorerror(ft){"function"==typeof Se&&We.removeEventListener("processorerror",Se),Se="function"==typeof ft?ft:null,"function"==typeof Se&&We.addEventListener("processorerror",Se)},get parameters(){return ct},get port(){return G.port2},addEventListener:(...ft)=>Qe.addEventListener(ft[0],ft[1],ft[2]),connect:t.bind(null,Ye),disconnect:c.bind(null,Ye),dispatchEvent:(...ft)=>Qe.dispatchEvent(ft[0]),removeEventListener:(...ft)=>Qe.removeEventListener(ft[0],ft[1],ft[2])},it=new Map;var ft;G.port1.addEventListener=(ft=G.port1.addEventListener,(...jt)=>{if("message"===jt[0]){const ai="function"==typeof jt[1]?jt[1]:"object"==typeof jt[1]&&null!==jt[1]&&"function"==typeof jt[1].handleEvent?jt[1].handleEvent:null;if(null!==ai){const si=it.get(jt[1]);void 0!==si?jt[1]=si:(jt[1]=Sn=>{u(p.currentTime,p.sampleRate,()=>ai(Sn))},it.set(ai,jt[1]))}}return ft.call(G.port1,jt[0],jt[1],jt[2])}),G.port1.removeEventListener=(ft=>(...jt)=>{if("message"===jt[0]){const ai=it.get(jt[1]);void 0!==ai&&(it.delete(jt[1]),jt[1]=ai)}return ft.call(G.port1,jt[0],jt[1],jt[2])})(G.port1.removeEventListener);let St=null;Object.defineProperty(G.port1,"onmessage",{get:()=>St,set:ft=>{"function"==typeof St&&G.port1.removeEventListener("message",St),St="function"==typeof ft?ft:null,"function"==typeof St&&(G.port1.addEventListener("message",St),G.port1.start())}}),b.prototype.port=G.port1;let At=null;((t,n,e,i)=>{let o=g1.get(t);void 0===o&&(o=new WeakMap,g1.set(t,o));const r=Woe(e,i);return o.set(n,r),r})(p,We,b,T).then(ft=>At=ft);const Rn=Mb(T.numberOfInputs,T.channelCount),sn=Mb(T.numberOfOutputs,D),ln=void 0===b.parameterDescriptors?[]:b.parameterDescriptors.reduce((ft,{name:jt})=>({...ft,[jt]:new Float32Array(128)}),{});let Vo=!0;const Un=()=>{T.numberOfOutputs>0&&Qe.disconnect(Re);for(let ft=0,jt=0;ft{if(null!==At){const ai=d(We);for(let si=0;si{Tb(ft,ln,Sn,H+Wn,si)});for(let Sn=0;Sn{if(ai[Qr].size>0)return dt.set(Qr,Fe/128),Zo;const Xu=dt.get(Qr);return void 0===Xu?[]:(Zo.every(wx=>wx.every(ny=>0===ny))&&(1===Xu?dt.delete(Qr):dt.set(Qr,Xu-1)),Zo)});Vo=u(p.currentTime+si/p.sampleRate,p.sampleRate,()=>At.process(Sn,sn,ln));for(let Zo=0,Qr=0;ZoQe.connect(ro).connect(p.destination),Ks=()=>{Qe.disconnect(ro),ro.disconnect()};return Ar(),h(We,()=>{if(Vo){Ks(),T.numberOfOutputs>0&&Qe.connect(Re);for(let ft=0,jt=0;ft{Vo&&(Ar(),Un()),Cn=!1})})(FF,Ea,Li,Js,Ef,Uu,$o,Tf,yo,LF,R1,cse,Xs);let Pb=(()=>{class t{constructor(e,i){this.http=e,this.toastr=i,this.returnFileFromPath$=(o,r="blob")=>this.http.get(o,{responseType:r}).pipe(es(s=>(this.toastr.error(s.message,"Ah, el fichero no se puede acceder. Intente otra vez m\xE1s tarde.",{timeOut:1e4}),Et(s))),Bt(s=>s),_i(1))}loadAudioBufferFromFile$(e,i){var o=new ase({sampleRate:i});return bi(e.arrayBuffer().then(a=>o.decodeAudioData(a)))}readFile$(e){const i=new FileReader;return On.create(o=>{i.onerror=r=>o.error(r),i.onabort=r=>o.error(r),i.onload=()=>o.next(i.result),i.onloadend=()=>o.complete(),i.readAsText(e)})}readFileAsData$(e){const i=new FileReader;return On.create(o=>{i.onerror=r=>o.error(r),i.onabort=r=>o.error(r),i.onload=()=>o.next(i.result),i.onloadend=()=>o.complete(),i.readAsDataURL(e)})}static{this.\u0275fac=function(i){return new(i||t)(Me(su),Me(Sl))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const hr={production:!0,apiBaseURL:"https://readalong-studio.herokuapp.com/api/v1",packageJson:JSON.parse('{"name":"readalong-studio","homepage":"https://readalong-studio.mothertongues.org","contact":"mailto:readalong.studio@gmail.com","documentationURL":"https://readalongs.github.io/ICLDC-Docs","version":"0.0.0","type":"module","scripts":{"helpme":"echo This project is part of a monorepo managed using nx. Run the targets in project.json using npx nx target studio-web at the root of the monorepo.","ng":"ng","test:ng":"ng test","test:once":"ng test --watch=false --browsers ChromeHeadlessCI","e2e":"playwright test","nyc":"nyc --reporter=html --reporter=text-summary playwright test ","e2e-ui":"playwright test --ui"},"private":true,"singleFileBundleVersion":"1.5.2","singleFileBundleTimestamp":"2024-12-05+14-41-20"}')},gse={title:"Bienvenidos al Studio de ReadAlong",text:"\xA1Crear un ReadAlong es f\xE1cil! Esta gu\xEDa le mostrar\xE1 todas las funcionalidades del Studio.",attachTo:{element:"#welcome-header",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"intro"},mse={title:"A\xF1adir sus datos",text:"Para crear su ReadAlong, necesitar\xE1 a\xF1adir su texto y su audio.",attachTo:{element:"#upload-header",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"data"},bse={title:"Escribir su texto",text:"Puede escribir su texto directamente en el Studio de ReadAlong si selecciona la opci\xF3n \xABescribir\xBB.",attachTo:{element:"#text-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"text-write"},YF={title:"Usar un fichero de texto",text:"Puede usar tambi\xE9n un fichero de texto (.txt) o un fichero en el formato RAS (.readalong).",attachTo:{element:"#text-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"text-file"},yse={title:"Grabar su propio audio",text:"Puede grabar su propio audio para que sea preprocesado si utiliza el micr\xF3fono en su navegador.",attachTo:{element:"#audio-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"audio-record"},zF={title:"Usar un fichero de audio",text:"Tambi\xE9n puede seleccionar un fichero .wav o .mp3 para su ReadAlong.",attachTo:{element:"#audio-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"audio-file"},_se={title:"Seleccionar su idioma",text:"Luego, opcionalmente, puede seleccionar el idioma de su ReadAlong.",attachTo:{element:"#language-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"language"},vse={title:"Seleccionar su idioma",text:"En la mayor\xEDa de los casos, la opci\xF3n predeterminada est\xE1 bien, \xA1simplemente deje esta opci\xF3n seleccionada!",attachTo:{element:"#generic-language",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"generic-language"},wse={title:"Seleccionar su idioma",text:"Por otro lado, si sus resultados no son adecuados con la opci\xF3n predeterminada, puede elegir un idioma de esta lista. Si no puede encontrar el suyo, siempre puede agregarlo. Comience leyendo nuestra serie de entradas de blog (en ingl\xE9s) para aprender c\xF3mo agregar su idioma, o cont\xE1ctenos para obtener m\xE1s informaci\xF3n.",attachTo:{element:"#specific-language",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"specific-language"},Af={title:"\xA1Eso es todo!",text:"Una vez que haya hecho esto, puede hacer clic en el bot\xF3n \xABPr\xF3ximo\xBB aqu\xED para que el Studio cree su ReadAlong. (Esto puede llevar varios segundos.)",attachTo:{element:"#next-step",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo"}],id:"create-readalong"},Cse={title:"\xA1Listo!",text:"Su ReadAlong ha sido creado.",attachTo:{element:"#readalong",on:"top"},buttons:[{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"step-two-intro"},$F={title:"Ver su ReadAlong",text:"Hacer clic en \xABplay\xBB hace pasar el audio y resalta el texto al mismo tiempo. \xA1Int\xE9ntelo!",buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"readalong-play"},VF={title:"Ver su ReadAlong",text:"Darle clic a una palabra tambi\xE9n pasar\xE1 el audio correspondiente.",buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"readalong-play-word"},ZF={title:"Editar su ReadAlong",text:"Puede editar el texto aqu\xED para a\xF1adir un T\xEDtulo o un Subt\xEDtulo a su ReadAlong.",buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"readalong-change-title"},Nb={title:"Editar su ReadAlong",text:"Puede a\xF1adir una imagen a cada p\xE1gina de su ReadAlong aqu\xED.",buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"readalong-add-image"},Fb={title:"Editar su ReadAlong",text:"Usted puede a\xF1adir una traducci\xF3n o alguna informaci\xF3n adicional para cada oraci\xF3n en su ReadAlong si le da clic al \xEDcono + aqu\xED. Si m\xE1s tarde quiere borrar la traducci\xF3n, utilice el \xEDcono - una vez que haya a\xF1adido la traducci\xF3n.",buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"readalong-add-translation"},Lb={title:"Exporte su ReadAlong",text:"Cuando est\xE9 satisfecho con su ReadAlong, puede exportarlo si selecciona un formato de descarga y le da clic al bot\xF3n de descarga (con la flecha apuntando hacia abajo). Puede seleccionar uno de los siguientes formatos: "+"
  • "+"HTML offline: su ReadAlong en un documento HTML \xFAnico que no necesita acceso a la web para funcionar, y que se puede reabrir en el editor,"+"
  • "+"Archivos web comprimidos: todos sus archivos de ReadAlong en una carpeta que puede ser alojada en un servidor web,"+"
  • "+"Ficheros de Elan y Praat: formatos de descarga utilizados por ling\xFCistas documentales,"+"
  • "+"Subt\xEDtulos SRT y WebVTT: formatos de descarga utilizados para a\xF1adir subt\xEDtulos a un video."+"
",attachTo:{element:"div.download__buttons",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"readalong-export"},xse={title:"Editar los inputs de su ReadAlong",text:"Si quiere cambiar su audio o su texto puede regresar al Paso 1 y hacer cambios ah\xED o crear un nuevo ReadAlong. "+"Pero tenga cuidado, regresar al paso anterior quiere decir que perder\xE1 sus traducciones y sus im\xE1genes."+"

"+"Advertencia: Utilizar la fecha de atr\xE1s del navegador hace que usted salga de la app y puede que tambi\xE9n borre todo su texto y su audio as\xED que se debe evitar usar este bot\xF3n. "+"En su lugar, use el bot\xF3n \xABPaso 1\xBB para regresar y cambiar su texto o audio.",attachTo:{element:"div.mat-horizontal-stepper-header-container",on:"botton-start"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}],id:"readalong-back"},Sse={title:"Editor para su ReadAlong exportados",text:"Este editor le permite modificar su ReadAlong exportado. Tenga en cuenta que esta herramienta solo acepta el formato HTML offline.",attachTo:{element:"#editor",on:"bottom-center"},buttons:[{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}]},GF={title:"Seleccione un fichero",text:"Seleccione un fichero HTML offline. O, puede usar el fichero HTML offline incluido en el formato de descarga Archivos web comprimidos. Para continuar el tour, a\xF1adiremos un ejemplo de ReadAlong para usted.",attachTo:{element:"#updateRAS",on:"bottom-middle"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-warning",text:"Pr\xF3ximo"}]},Dse={title:"\xA1Listo!",text:"Su ReadAlong esta listo para ser editado.",attachTo:{element:"#readalongContainer",on:"top"},buttons:[{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}]},Ese={title:"Barra de herramientas de audio",text:"Aqu\xED est\xE1 una representaci\xF3n visual de su audio y el alineamiento de su texto. Puede ajustar el alineamiento de su audio y texto y corregir errores de ortograf\xEDa aqu\xED. Haga clic en \xABpr\xF3ximo\xBB para ver c\xF3mo.",attachTo:{element:"#audioToolbar",on:"top"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}]},Tse={title:"Zoom de la visualizaci\xF3n del audio y texto",text:"Utiliza los controles de zoom para centrarse en una secci\xF3n del audio y texto.",attachTo:{element:"#zoomControls",on:"top-end"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}]},UF={title:"Visualizaci\xF3n del alineamiento de texto y audio",text:"Esto representa visualmente el alineamiento audio-texto de su ReadAlong. Haga clic en la forma de onda para escuchar una palabra. Mueve las barras en los bordes de una palabra para ajustar su alineamiento. Luego haga clic en el \xABplay\xBB bot\xF3n del ReadAlong para observar los resultados de sus ajustes en el resaltado de texto de su ReadAlong.",attachTo:{element:"#wavesurferContainer",on:"top"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}]},WF={title:"Corregir errores de ortograf\xEDa",text:"Puede corregir errores de ortograf\xEDa haciendo clic en una palabra y edit\xE1ndola.",attachTo:{element:"#wavesurferContainer",on:"left"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Pr\xF3ximo",type:"next"}]},Mse={title:"Ir al editor",text:"Despu\xE9s de haber descargado su ReadAlong, puede volver a abrirlo en el editor para continuar edit\xE1ndolo.",attachTo:{element:"#goToEditor",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Atr\xE1s",type:"back"},{classes:"shepherd-button-primary",text:"Terminar",type:"cancel"},{classes:"shepherd-button-warning",text:"Al editor",action:function(){this&&this.complete(),window.location.hash="#/editor?startTour=yes"}}]};let N1=(()=>{class t{constructor(e,i){this.http=e,this.fileService=i,this.JS_BUNDLE_URL="assets/bundle.js",this.FONTS_BUNDLE_URL="assets/fonts.b64.css",this.jsAndFontsBundle$=new hi(null),this.getBundle$().subscribe(o=>{this.jsAndFontsBundle$.next(o)})}getBundle$(){return Mh([this.http.get(this.JS_BUNDLE_URL,{responseType:"blob"}).pipe(Ni(e=>this.fileService.readFileAsData$(e))),this.http.get(this.FONTS_BUNDLE_URL,{responseType:"blob"}).pipe(Ni(e=>this.fileService.readFile$(e)))])}utf8_to_b64(e){return window.btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(i,o){return String.fromCharCode(parseInt(o,16))}))}b64_to_utf8(e){return decodeURIComponent(Array.prototype.map.call(window.atob(e),function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join(""))}xmlToB64(e){return this.utf8_to_b64((new XMLSerializer).serializeToString(e))}blobToB64(e){return new Promise((i,o)=>{const r=new FileReader;r.onloadend=()=>i(r.result),r.readAsDataURL(e)})}static{this.\u0275fac=function(i){return new(i||t)(Me(su),Me(Pb))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var F1=function(t){return t.generic="generic",t.specific="specific",t}(F1||{});let L1=(()=>{class t{constructor(e){this._formBuilder=e,this.slots={title:"T\xEDtulo",subtitle:"Subt\xEDtulo"},this.lastStepperIndex=0,this.temporaryBlob=void 0,this.b64Inputs$=new hi(["",null]),this.render$=new hi(!1),this.langMode$=new hi(F1.generic),this.langControl$=new Vr({value:"und",disabled:"specific"!==this.langMode$.value},js.required),this.textControl$=new Vr(null,js.required),this.audioControl$=new Vr(null,js.required),this.$textInput=new hi(""),this.uploadFormGroup=this._formBuilder.group({lang:this.langControl$,text:this.textControl$,audio:this.audioControl$}),this.inputMethod={audio:"mic",text:"edit"},this.langMode$.subscribe(i=>{i===F1.generic?this.langControl$.disable():this.langControl$.enable()})}static{this.\u0275fac=function(i){return new(i||t)(Me(IO))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ase=O(990),kse=O.n(Ase);function XF(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Ise(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Ose=[["\xdf","ss"],["\u1e9e","Ss"],["\xe4","ae"],["\xc4","Ae"],["\xf6","oe"],["\xd6","Oe"],["\xfc","ue"],["\xdc","Ue"],["\xc0","A"],["\xc1","A"],["\xc2","A"],["\xc3","A"],["\xc4","Ae"],["\xc5","A"],["\xc6","AE"],["\xc7","C"],["\xc8","E"],["\xc9","E"],["\xca","E"],["\xcb","E"],["\xcc","I"],["\xcd","I"],["\xce","I"],["\xcf","I"],["\xd0","D"],["\xd1","N"],["\xd2","O"],["\xd3","O"],["\xd4","O"],["\xd5","O"],["\xd6","Oe"],["\u0150","O"],["\xd8","O"],["\xd9","U"],["\xda","U"],["\xdb","U"],["\xdc","Ue"],["\u0170","U"],["\xdd","Y"],["\xde","TH"],["\xdf","ss"],["\xe0","a"],["\xe1","a"],["\xe2","a"],["\xe3","a"],["\xe4","ae"],["\xe5","a"],["\xe6","ae"],["\xe7","c"],["\xe8","e"],["\xe9","e"],["\xea","e"],["\xeb","e"],["\xec","i"],["\xed","i"],["\xee","i"],["\xef","i"],["\xf0","d"],["\xf1","n"],["\xf2","o"],["\xf3","o"],["\xf4","o"],["\xf5","o"],["\xf6","oe"],["\u0151","o"],["\xf8","o"],["\xf9","u"],["\xfa","u"],["\xfb","u"],["\xfc","ue"],["\u0171","u"],["\xfd","y"],["\xfe","th"],["\xff","y"],["\u1e9e","SS"],["\xe0","a"],["\xc0","A"],["\xe1","a"],["\xc1","A"],["\xe2","a"],["\xc2","A"],["\xe3","a"],["\xc3","A"],["\xe8","e"],["\xc8","E"],["\xe9","e"],["\xc9","E"],["\xea","e"],["\xca","E"],["\xec","i"],["\xcc","I"],["\xed","i"],["\xcd","I"],["\xf2","o"],["\xd2","O"],["\xf3","o"],["\xd3","O"],["\xf4","o"],["\xd4","O"],["\xf5","o"],["\xd5","O"],["\xf9","u"],["\xd9","U"],["\xfa","u"],["\xda","U"],["\xfd","y"],["\xdd","Y"],["\u0103","a"],["\u0102","A"],["\u0110","D"],["\u0111","d"],["\u0129","i"],["\u0128","I"],["\u0169","u"],["\u0168","U"],["\u01a1","o"],["\u01a0","O"],["\u01b0","u"],["\u01af","U"],["\u1ea1","a"],["\u1ea0","A"],["\u1ea3","a"],["\u1ea2","A"],["\u1ea5","a"],["\u1ea4","A"],["\u1ea7","a"],["\u1ea6","A"],["\u1ea9","a"],["\u1ea8","A"],["\u1eab","a"],["\u1eaa","A"],["\u1ead","a"],["\u1eac","A"],["\u1eaf","a"],["\u1eae","A"],["\u1eb1","a"],["\u1eb0","A"],["\u1eb3","a"],["\u1eb2","A"],["\u1eb5","a"],["\u1eb4","A"],["\u1eb7","a"],["\u1eb6","A"],["\u1eb9","e"],["\u1eb8","E"],["\u1ebb","e"],["\u1eba","E"],["\u1ebd","e"],["\u1ebc","E"],["\u1ebf","e"],["\u1ebe","E"],["\u1ec1","e"],["\u1ec0","E"],["\u1ec3","e"],["\u1ec2","E"],["\u1ec5","e"],["\u1ec4","E"],["\u1ec7","e"],["\u1ec6","E"],["\u1ec9","i"],["\u1ec8","I"],["\u1ecb","i"],["\u1eca","I"],["\u1ecd","o"],["\u1ecc","O"],["\u1ecf","o"],["\u1ece","O"],["\u1ed1","o"],["\u1ed0","O"],["\u1ed3","o"],["\u1ed2","O"],["\u1ed5","o"],["\u1ed4","O"],["\u1ed7","o"],["\u1ed6","O"],["\u1ed9","o"],["\u1ed8","O"],["\u1edb","o"],["\u1eda","O"],["\u1edd","o"],["\u1edc","O"],["\u1edf","o"],["\u1ede","O"],["\u1ee1","o"],["\u1ee0","O"],["\u1ee3","o"],["\u1ee2","O"],["\u1ee5","u"],["\u1ee4","U"],["\u1ee7","u"],["\u1ee6","U"],["\u1ee9","u"],["\u1ee8","U"],["\u1eeb","u"],["\u1eea","U"],["\u1eed","u"],["\u1eec","U"],["\u1eef","u"],["\u1eee","U"],["\u1ef1","u"],["\u1ef0","U"],["\u1ef3","y"],["\u1ef2","Y"],["\u1ef5","y"],["\u1ef4","Y"],["\u1ef7","y"],["\u1ef6","Y"],["\u1ef9","y"],["\u1ef8","Y"],["\u0621","e"],["\u0622","a"],["\u0623","a"],["\u0624","w"],["\u0625","i"],["\u0626","y"],["\u0627","a"],["\u0628","b"],["\u0629","t"],["\u062a","t"],["\u062b","th"],["\u062c","j"],["\u062d","h"],["\u062e","kh"],["\u062f","d"],["\u0630","dh"],["\u0631","r"],["\u0632","z"],["\u0633","s"],["\u0634","sh"],["\u0635","s"],["\u0636","d"],["\u0637","t"],["\u0638","z"],["\u0639","e"],["\u063a","gh"],["\u0640","_"],["\u0641","f"],["\u0642","q"],["\u0643","k"],["\u0644","l"],["\u0645","m"],["\u0646","n"],["\u0647","h"],["\u0648","w"],["\u0649","a"],["\u064a","y"],["\u064e\u200e","a"],["\u064f","u"],["\u0650\u200e","i"],["\u0660","0"],["\u0661","1"],["\u0662","2"],["\u0663","3"],["\u0664","4"],["\u0665","5"],["\u0666","6"],["\u0667","7"],["\u0668","8"],["\u0669","9"],["\u0686","ch"],["\u06a9","k"],["\u06af","g"],["\u067e","p"],["\u0698","zh"],["\u06cc","y"],["\u06f0","0"],["\u06f1","1"],["\u06f2","2"],["\u06f3","3"],["\u06f4","4"],["\u06f5","5"],["\u06f6","6"],["\u06f7","7"],["\u06f8","8"],["\u06f9","9"],["\u067c","p"],["\u0681","z"],["\u0685","c"],["\u0689","d"],["\ufeab","d"],["\ufead","r"],["\u0693","r"],["\ufeaf","z"],["\u0696","g"],["\u069a","x"],["\u06ab","g"],["\u06bc","n"],["\u06c0","e"],["\u06d0","e"],["\u06cd","ai"],["\u0679","t"],["\u0688","d"],["\u0691","r"],["\u06ba","n"],["\u06c1","h"],["\u06be","h"],["\u06d2","e"],["\u0410","A"],["\u0430","a"],["\u0411","B"],["\u0431","b"],["\u0412","V"],["\u0432","v"],["\u0413","G"],["\u0433","g"],["\u0414","D"],["\u0434","d"],["\u044a\u0435","ye"],["\u042a\u0435","Ye"],["\u044a\u0415","yE"],["\u042a\u0415","YE"],["\u0415","E"],["\u0435","e"],["\u0401","Yo"],["\u0451","yo"],["\u0416","Zh"],["\u0436","zh"],["\u0417","Z"],["\u0437","z"],["\u0418","I"],["\u0438","i"],["\u044b\u0439","iy"],["\u042b\u0439","Iy"],["\u042b\u0419","IY"],["\u044b\u0419","iY"],["\u0419","Y"],["\u0439","y"],["\u041a","K"],["\u043a","k"],["\u041b","L"],["\u043b","l"],["\u041c","M"],["\u043c","m"],["\u041d","N"],["\u043d","n"],["\u041e","O"],["\u043e","o"],["\u041f","P"],["\u043f","p"],["\u0420","R"],["\u0440","r"],["\u0421","S"],["\u0441","s"],["\u0422","T"],["\u0442","t"],["\u0423","U"],["\u0443","u"],["\u0424","F"],["\u0444","f"],["\u0425","Kh"],["\u0445","kh"],["\u0426","Ts"],["\u0446","ts"],["\u0427","Ch"],["\u0447","ch"],["\u0428","Sh"],["\u0448","sh"],["\u0429","Sch"],["\u0449","sch"],["\u042a",""],["\u044a",""],["\u042b","Y"],["\u044b","y"],["\u042c",""],["\u044c",""],["\u042d","E"],["\u044d","e"],["\u042e","Yu"],["\u044e","yu"],["\u042f","Ya"],["\u044f","ya"],["\u0103","a"],["\u0102","A"],["\u0219","s"],["\u0218","S"],["\u021b","t"],["\u021a","T"],["\u0163","t"],["\u0162","T"],["\u015f","s"],["\u015e","S"],["\xe7","c"],["\xc7","C"],["\u011f","g"],["\u011e","G"],["\u0131","i"],["\u0130","I"],["\u0561","a"],["\u0531","A"],["\u0562","b"],["\u0532","B"],["\u0563","g"],["\u0533","G"],["\u0564","d"],["\u0534","D"],["\u0565","ye"],["\u0535","Ye"],["\u0566","z"],["\u0536","Z"],["\u0567","e"],["\u0537","E"],["\u0568","y"],["\u0538","Y"],["\u0569","t"],["\u0539","T"],["\u056a","zh"],["\u053a","Zh"],["\u056b","i"],["\u053b","I"],["\u056c","l"],["\u053c","L"],["\u056d","kh"],["\u053d","Kh"],["\u056e","ts"],["\u053e","Ts"],["\u056f","k"],["\u053f","K"],["\u0570","h"],["\u0540","H"],["\u0571","dz"],["\u0541","Dz"],["\u0572","gh"],["\u0542","Gh"],["\u0573","tch"],["\u0543","Tch"],["\u0574","m"],["\u0544","M"],["\u0575","y"],["\u0545","Y"],["\u0576","n"],["\u0546","N"],["\u0577","sh"],["\u0547","Sh"],["\u0578","vo"],["\u0548","Vo"],["\u0579","ch"],["\u0549","Ch"],["\u057a","p"],["\u054a","P"],["\u057b","j"],["\u054b","J"],["\u057c","r"],["\u054c","R"],["\u057d","s"],["\u054d","S"],["\u057e","v"],["\u054e","V"],["\u057f","t"],["\u054f","T"],["\u0580","r"],["\u0550","R"],["\u0581","c"],["\u0551","C"],["\u0578\u0582","u"],["\u0548\u0552","U"],["\u0548\u0582","U"],["\u0583","p"],["\u0553","P"],["\u0584","q"],["\u0554","Q"],["\u0585","o"],["\u0555","O"],["\u0586","f"],["\u0556","F"],["\u0587","yev"],["\u10d0","a"],["\u10d1","b"],["\u10d2","g"],["\u10d3","d"],["\u10d4","e"],["\u10d5","v"],["\u10d6","z"],["\u10d7","t"],["\u10d8","i"],["\u10d9","k"],["\u10da","l"],["\u10db","m"],["\u10dc","n"],["\u10dd","o"],["\u10de","p"],["\u10df","zh"],["\u10e0","r"],["\u10e1","s"],["\u10e2","t"],["\u10e3","u"],["\u10e4","ph"],["\u10e5","q"],["\u10e6","gh"],["\u10e7","k"],["\u10e8","sh"],["\u10e9","ch"],["\u10ea","ts"],["\u10eb","dz"],["\u10ec","ts"],["\u10ed","tch"],["\u10ee","kh"],["\u10ef","j"],["\u10f0","h"],["\u010d","c"],["\u010f","d"],["\u011b","e"],["\u0148","n"],["\u0159","r"],["\u0161","s"],["\u0165","t"],["\u016f","u"],["\u017e","z"],["\u010c","C"],["\u010e","D"],["\u011a","E"],["\u0147","N"],["\u0158","R"],["\u0160","S"],["\u0164","T"],["\u016e","U"],["\u017d","Z"],["\u0780","h"],["\u0781","sh"],["\u0782","n"],["\u0783","r"],["\u0784","b"],["\u0785","lh"],["\u0786","k"],["\u0787","a"],["\u0788","v"],["\u0789","m"],["\u078a","f"],["\u078b","dh"],["\u078c","th"],["\u078d","l"],["\u078e","g"],["\u078f","gn"],["\u0790","s"],["\u0791","d"],["\u0792","z"],["\u0793","t"],["\u0794","y"],["\u0795","p"],["\u0796","j"],["\u0797","ch"],["\u0798","tt"],["\u0799","hh"],["\u079a","kh"],["\u079b","th"],["\u079c","z"],["\u079d","sh"],["\u079e","s"],["\u079f","d"],["\u07a0","t"],["\u07a1","z"],["\u07a2","a"],["\u07a3","gh"],["\u07a4","q"],["\u07a5","w"],["\u07a6","a"],["\u07a7","aa"],["\u07a8","i"],["\u07a9","ee"],["\u07aa","u"],["\u07ab","oo"],["\u07ac","e"],["\u07ad","ey"],["\u07ae","o"],["\u07af","oa"],["\u07b0",""],["\u03b1","a"],["\u03b2","v"],["\u03b3","g"],["\u03b4","d"],["\u03b5","e"],["\u03b6","z"],["\u03b7","i"],["\u03b8","th"],["\u03b9","i"],["\u03ba","k"],["\u03bb","l"],["\u03bc","m"],["\u03bd","n"],["\u03be","ks"],["\u03bf","o"],["\u03c0","p"],["\u03c1","r"],["\u03c3","s"],["\u03c4","t"],["\u03c5","y"],["\u03c6","f"],["\u03c7","x"],["\u03c8","ps"],["\u03c9","o"],["\u03ac","a"],["\u03ad","e"],["\u03af","i"],["\u03cc","o"],["\u03cd","y"],["\u03ae","i"],["\u03ce","o"],["\u03c2","s"],["\u03ca","i"],["\u03b0","y"],["\u03cb","y"],["\u0390","i"],["\u0391","A"],["\u0392","B"],["\u0393","G"],["\u0394","D"],["\u0395","E"],["\u0396","Z"],["\u0397","I"],["\u0398","TH"],["\u0399","I"],["\u039a","K"],["\u039b","L"],["\u039c","M"],["\u039d","N"],["\u039e","KS"],["\u039f","O"],["\u03a0","P"],["\u03a1","R"],["\u03a3","S"],["\u03a4","T"],["\u03a5","Y"],["\u03a6","F"],["\u03a7","X"],["\u03a8","PS"],["\u03a9","O"],["\u0386","A"],["\u0388","E"],["\u038a","I"],["\u038c","O"],["\u038e","Y"],["\u0389","I"],["\u038f","O"],["\u03aa","I"],["\u03ab","Y"],["\u0101","a"],["\u0113","e"],["\u0123","g"],["\u012b","i"],["\u0137","k"],["\u013c","l"],["\u0146","n"],["\u016b","u"],["\u0100","A"],["\u0112","E"],["\u0122","G"],["\u012a","I"],["\u0136","K"],["\u013b","L"],["\u0145","N"],["\u016a","U"],["\u010d","c"],["\u0161","s"],["\u017e","z"],["\u010c","C"],["\u0160","S"],["\u017d","Z"],["\u0105","a"],["\u010d","c"],["\u0119","e"],["\u0117","e"],["\u012f","i"],["\u0161","s"],["\u0173","u"],["\u016b","u"],["\u017e","z"],["\u0104","A"],["\u010c","C"],["\u0118","E"],["\u0116","E"],["\u012e","I"],["\u0160","S"],["\u0172","U"],["\u016a","U"],["\u040c","Kj"],["\u045c","kj"],["\u0409","Lj"],["\u0459","lj"],["\u040a","Nj"],["\u045a","nj"],["\u0422\u0441","Ts"],["\u0442\u0441","ts"],["\u0105","a"],["\u0107","c"],["\u0119","e"],["\u0142","l"],["\u0144","n"],["\u015b","s"],["\u017a","z"],["\u017c","z"],["\u0104","A"],["\u0106","C"],["\u0118","E"],["\u0141","L"],["\u0143","N"],["\u015a","S"],["\u0179","Z"],["\u017b","Z"],["\u0404","Ye"],["\u0406","I"],["\u0407","Yi"],["\u0490","G"],["\u0454","ye"],["\u0456","i"],["\u0457","yi"],["\u0491","g"],["\u0132","IJ"],["\u0133","ij"],["\xa2","c"],["\xa5","Y"],["\u07ff","b"],["\u09f3","t"],["\u0af1","Bo"],["\u0e3f","B"],["\u20a0","CE"],["\u20a1","C"],["\u20a2","Cr"],["\u20a3","F"],["\u20a5","m"],["\u20a6","N"],["\u20a7","Pt"],["\u20a8","Rs"],["\u20a9","W"],["\u20ab","s"],["\u20ac","E"],["\u20ad","K"],["\u20ae","T"],["\u20af","Dp"],["\u20b0","S"],["\u20b1","P"],["\u20b2","G"],["\u20b3","A"],["\u20b4","S"],["\u20b5","C"],["\u20b6","tt"],["\u20b7","S"],["\u20b8","T"],["\u20b9","R"],["\u20ba","L"],["\u20bd","P"],["\u20bf","B"],["\ufe69","$"],["\uffe0","c"],["\uffe5","Y"],["\uffe6","W"],["\u{1d400}","A"],["\u{1d401}","B"],["\u{1d402}","C"],["\u{1d403}","D"],["\u{1d404}","E"],["\u{1d405}","F"],["\u{1d406}","G"],["\u{1d407}","H"],["\u{1d408}","I"],["\u{1d409}","J"],["\u{1d40a}","K"],["\u{1d40b}","L"],["\u{1d40c}","M"],["\u{1d40d}","N"],["\u{1d40e}","O"],["\u{1d40f}","P"],["\u{1d410}","Q"],["\u{1d411}","R"],["\u{1d412}","S"],["\u{1d413}","T"],["\u{1d414}","U"],["\u{1d415}","V"],["\u{1d416}","W"],["\u{1d417}","X"],["\u{1d418}","Y"],["\u{1d419}","Z"],["\u{1d41a}","a"],["\u{1d41b}","b"],["\u{1d41c}","c"],["\u{1d41d}","d"],["\u{1d41e}","e"],["\u{1d41f}","f"],["\u{1d420}","g"],["\u{1d421}","h"],["\u{1d422}","i"],["\u{1d423}","j"],["\u{1d424}","k"],["\u{1d425}","l"],["\u{1d426}","m"],["\u{1d427}","n"],["\u{1d428}","o"],["\u{1d429}","p"],["\u{1d42a}","q"],["\u{1d42b}","r"],["\u{1d42c}","s"],["\u{1d42d}","t"],["\u{1d42e}","u"],["\u{1d42f}","v"],["\u{1d430}","w"],["\u{1d431}","x"],["\u{1d432}","y"],["\u{1d433}","z"],["\u{1d434}","A"],["\u{1d435}","B"],["\u{1d436}","C"],["\u{1d437}","D"],["\u{1d438}","E"],["\u{1d439}","F"],["\u{1d43a}","G"],["\u{1d43b}","H"],["\u{1d43c}","I"],["\u{1d43d}","J"],["\u{1d43e}","K"],["\u{1d43f}","L"],["\u{1d440}","M"],["\u{1d441}","N"],["\u{1d442}","O"],["\u{1d443}","P"],["\u{1d444}","Q"],["\u{1d445}","R"],["\u{1d446}","S"],["\u{1d447}","T"],["\u{1d448}","U"],["\u{1d449}","V"],["\u{1d44a}","W"],["\u{1d44b}","X"],["\u{1d44c}","Y"],["\u{1d44d}","Z"],["\u{1d44e}","a"],["\u{1d44f}","b"],["\u{1d450}","c"],["\u{1d451}","d"],["\u{1d452}","e"],["\u{1d453}","f"],["\u{1d454}","g"],["\u{1d456}","i"],["\u{1d457}","j"],["\u{1d458}","k"],["\u{1d459}","l"],["\u{1d45a}","m"],["\u{1d45b}","n"],["\u{1d45c}","o"],["\u{1d45d}","p"],["\u{1d45e}","q"],["\u{1d45f}","r"],["\u{1d460}","s"],["\u{1d461}","t"],["\u{1d462}","u"],["\u{1d463}","v"],["\u{1d464}","w"],["\u{1d465}","x"],["\u{1d466}","y"],["\u{1d467}","z"],["\u{1d468}","A"],["\u{1d469}","B"],["\u{1d46a}","C"],["\u{1d46b}","D"],["\u{1d46c}","E"],["\u{1d46d}","F"],["\u{1d46e}","G"],["\u{1d46f}","H"],["\u{1d470}","I"],["\u{1d471}","J"],["\u{1d472}","K"],["\u{1d473}","L"],["\u{1d474}","M"],["\u{1d475}","N"],["\u{1d476}","O"],["\u{1d477}","P"],["\u{1d478}","Q"],["\u{1d479}","R"],["\u{1d47a}","S"],["\u{1d47b}","T"],["\u{1d47c}","U"],["\u{1d47d}","V"],["\u{1d47e}","W"],["\u{1d47f}","X"],["\u{1d480}","Y"],["\u{1d481}","Z"],["\u{1d482}","a"],["\u{1d483}","b"],["\u{1d484}","c"],["\u{1d485}","d"],["\u{1d486}","e"],["\u{1d487}","f"],["\u{1d488}","g"],["\u{1d489}","h"],["\u{1d48a}","i"],["\u{1d48b}","j"],["\u{1d48c}","k"],["\u{1d48d}","l"],["\u{1d48e}","m"],["\u{1d48f}","n"],["\u{1d490}","o"],["\u{1d491}","p"],["\u{1d492}","q"],["\u{1d493}","r"],["\u{1d494}","s"],["\u{1d495}","t"],["\u{1d496}","u"],["\u{1d497}","v"],["\u{1d498}","w"],["\u{1d499}","x"],["\u{1d49a}","y"],["\u{1d49b}","z"],["\u{1d49c}","A"],["\u{1d49e}","C"],["\u{1d49f}","D"],["\u{1d4a2}","g"],["\u{1d4a5}","J"],["\u{1d4a6}","K"],["\u{1d4a9}","N"],["\u{1d4aa}","O"],["\u{1d4ab}","P"],["\u{1d4ac}","Q"],["\u{1d4ae}","S"],["\u{1d4af}","T"],["\u{1d4b0}","U"],["\u{1d4b1}","V"],["\u{1d4b2}","W"],["\u{1d4b3}","X"],["\u{1d4b4}","Y"],["\u{1d4b5}","Z"],["\u{1d4b6}","a"],["\u{1d4b7}","b"],["\u{1d4b8}","c"],["\u{1d4b9}","d"],["\u{1d4bb}","f"],["\u{1d4bd}","h"],["\u{1d4be}","i"],["\u{1d4bf}","j"],["\u{1d4c0}","h"],["\u{1d4c1}","l"],["\u{1d4c2}","m"],["\u{1d4c3}","n"],["\u{1d4c5}","p"],["\u{1d4c6}","q"],["\u{1d4c7}","r"],["\u{1d4c8}","s"],["\u{1d4c9}","t"],["\u{1d4ca}","u"],["\u{1d4cb}","v"],["\u{1d4cc}","w"],["\u{1d4cd}","x"],["\u{1d4ce}","y"],["\u{1d4cf}","z"],["\u{1d4d0}","A"],["\u{1d4d1}","B"],["\u{1d4d2}","C"],["\u{1d4d3}","D"],["\u{1d4d4}","E"],["\u{1d4d5}","F"],["\u{1d4d6}","G"],["\u{1d4d7}","H"],["\u{1d4d8}","I"],["\u{1d4d9}","J"],["\u{1d4da}","K"],["\u{1d4db}","L"],["\u{1d4dc}","M"],["\u{1d4dd}","N"],["\u{1d4de}","O"],["\u{1d4df}","P"],["\u{1d4e0}","Q"],["\u{1d4e1}","R"],["\u{1d4e2}","S"],["\u{1d4e3}","T"],["\u{1d4e4}","U"],["\u{1d4e5}","V"],["\u{1d4e6}","W"],["\u{1d4e7}","X"],["\u{1d4e8}","Y"],["\u{1d4e9}","Z"],["\u{1d4ea}","a"],["\u{1d4eb}","b"],["\u{1d4ec}","c"],["\u{1d4ed}","d"],["\u{1d4ee}","e"],["\u{1d4ef}","f"],["\u{1d4f0}","g"],["\u{1d4f1}","h"],["\u{1d4f2}","i"],["\u{1d4f3}","j"],["\u{1d4f4}","k"],["\u{1d4f5}","l"],["\u{1d4f6}","m"],["\u{1d4f7}","n"],["\u{1d4f8}","o"],["\u{1d4f9}","p"],["\u{1d4fa}","q"],["\u{1d4fb}","r"],["\u{1d4fc}","s"],["\u{1d4fd}","t"],["\u{1d4fe}","u"],["\u{1d4ff}","v"],["\u{1d500}","w"],["\u{1d501}","x"],["\u{1d502}","y"],["\u{1d503}","z"],["\u{1d504}","A"],["\u{1d505}","B"],["\u{1d507}","D"],["\u{1d508}","E"],["\u{1d509}","F"],["\u{1d50a}","G"],["\u{1d50d}","J"],["\u{1d50e}","K"],["\u{1d50f}","L"],["\u{1d510}","M"],["\u{1d511}","N"],["\u{1d512}","O"],["\u{1d513}","P"],["\u{1d514}","Q"],["\u{1d516}","S"],["\u{1d517}","T"],["\u{1d518}","U"],["\u{1d519}","V"],["\u{1d51a}","W"],["\u{1d51b}","X"],["\u{1d51c}","Y"],["\u{1d51e}","a"],["\u{1d51f}","b"],["\u{1d520}","c"],["\u{1d521}","d"],["\u{1d522}","e"],["\u{1d523}","f"],["\u{1d524}","g"],["\u{1d525}","h"],["\u{1d526}","i"],["\u{1d527}","j"],["\u{1d528}","k"],["\u{1d529}","l"],["\u{1d52a}","m"],["\u{1d52b}","n"],["\u{1d52c}","o"],["\u{1d52d}","p"],["\u{1d52e}","q"],["\u{1d52f}","r"],["\u{1d530}","s"],["\u{1d531}","t"],["\u{1d532}","u"],["\u{1d533}","v"],["\u{1d534}","w"],["\u{1d535}","x"],["\u{1d536}","y"],["\u{1d537}","z"],["\u{1d538}","A"],["\u{1d539}","B"],["\u{1d53b}","D"],["\u{1d53c}","E"],["\u{1d53d}","F"],["\u{1d53e}","G"],["\u{1d540}","I"],["\u{1d541}","J"],["\u{1d542}","K"],["\u{1d543}","L"],["\u{1d544}","M"],["\u{1d546}","N"],["\u{1d54a}","S"],["\u{1d54b}","T"],["\u{1d54c}","U"],["\u{1d54d}","V"],["\u{1d54e}","W"],["\u{1d54f}","X"],["\u{1d550}","Y"],["\u{1d552}","a"],["\u{1d553}","b"],["\u{1d554}","c"],["\u{1d555}","d"],["\u{1d556}","e"],["\u{1d557}","f"],["\u{1d558}","g"],["\u{1d559}","h"],["\u{1d55a}","i"],["\u{1d55b}","j"],["\u{1d55c}","k"],["\u{1d55d}","l"],["\u{1d55e}","m"],["\u{1d55f}","n"],["\u{1d560}","o"],["\u{1d561}","p"],["\u{1d562}","q"],["\u{1d563}","r"],["\u{1d564}","s"],["\u{1d565}","t"],["\u{1d566}","u"],["\u{1d567}","v"],["\u{1d568}","w"],["\u{1d569}","x"],["\u{1d56a}","y"],["\u{1d56b}","z"],["\u{1d56c}","A"],["\u{1d56d}","B"],["\u{1d56e}","C"],["\u{1d56f}","D"],["\u{1d570}","E"],["\u{1d571}","F"],["\u{1d572}","G"],["\u{1d573}","H"],["\u{1d574}","I"],["\u{1d575}","J"],["\u{1d576}","K"],["\u{1d577}","L"],["\u{1d578}","M"],["\u{1d579}","N"],["\u{1d57a}","O"],["\u{1d57b}","P"],["\u{1d57c}","Q"],["\u{1d57d}","R"],["\u{1d57e}","S"],["\u{1d57f}","T"],["\u{1d580}","U"],["\u{1d581}","V"],["\u{1d582}","W"],["\u{1d583}","X"],["\u{1d584}","Y"],["\u{1d585}","Z"],["\u{1d586}","a"],["\u{1d587}","b"],["\u{1d588}","c"],["\u{1d589}","d"],["\u{1d58a}","e"],["\u{1d58b}","f"],["\u{1d58c}","g"],["\u{1d58d}","h"],["\u{1d58e}","i"],["\u{1d58f}","j"],["\u{1d590}","k"],["\u{1d591}","l"],["\u{1d592}","m"],["\u{1d593}","n"],["\u{1d594}","o"],["\u{1d595}","p"],["\u{1d596}","q"],["\u{1d597}","r"],["\u{1d598}","s"],["\u{1d599}","t"],["\u{1d59a}","u"],["\u{1d59b}","v"],["\u{1d59c}","w"],["\u{1d59d}","x"],["\u{1d59e}","y"],["\u{1d59f}","z"],["\u{1d5a0}","A"],["\u{1d5a1}","B"],["\u{1d5a2}","C"],["\u{1d5a3}","D"],["\u{1d5a4}","E"],["\u{1d5a5}","F"],["\u{1d5a6}","G"],["\u{1d5a7}","H"],["\u{1d5a8}","I"],["\u{1d5a9}","J"],["\u{1d5aa}","K"],["\u{1d5ab}","L"],["\u{1d5ac}","M"],["\u{1d5ad}","N"],["\u{1d5ae}","O"],["\u{1d5af}","P"],["\u{1d5b0}","Q"],["\u{1d5b1}","R"],["\u{1d5b2}","S"],["\u{1d5b3}","T"],["\u{1d5b4}","U"],["\u{1d5b5}","V"],["\u{1d5b6}","W"],["\u{1d5b7}","X"],["\u{1d5b8}","Y"],["\u{1d5b9}","Z"],["\u{1d5ba}","a"],["\u{1d5bb}","b"],["\u{1d5bc}","c"],["\u{1d5bd}","d"],["\u{1d5be}","e"],["\u{1d5bf}","f"],["\u{1d5c0}","g"],["\u{1d5c1}","h"],["\u{1d5c2}","i"],["\u{1d5c3}","j"],["\u{1d5c4}","k"],["\u{1d5c5}","l"],["\u{1d5c6}","m"],["\u{1d5c7}","n"],["\u{1d5c8}","o"],["\u{1d5c9}","p"],["\u{1d5ca}","q"],["\u{1d5cb}","r"],["\u{1d5cc}","s"],["\u{1d5cd}","t"],["\u{1d5ce}","u"],["\u{1d5cf}","v"],["\u{1d5d0}","w"],["\u{1d5d1}","x"],["\u{1d5d2}","y"],["\u{1d5d3}","z"],["\u{1d5d4}","A"],["\u{1d5d5}","B"],["\u{1d5d6}","C"],["\u{1d5d7}","D"],["\u{1d5d8}","E"],["\u{1d5d9}","F"],["\u{1d5da}","G"],["\u{1d5db}","H"],["\u{1d5dc}","I"],["\u{1d5dd}","J"],["\u{1d5de}","K"],["\u{1d5df}","L"],["\u{1d5e0}","M"],["\u{1d5e1}","N"],["\u{1d5e2}","O"],["\u{1d5e3}","P"],["\u{1d5e4}","Q"],["\u{1d5e5}","R"],["\u{1d5e6}","S"],["\u{1d5e7}","T"],["\u{1d5e8}","U"],["\u{1d5e9}","V"],["\u{1d5ea}","W"],["\u{1d5eb}","X"],["\u{1d5ec}","Y"],["\u{1d5ed}","Z"],["\u{1d5ee}","a"],["\u{1d5ef}","b"],["\u{1d5f0}","c"],["\u{1d5f1}","d"],["\u{1d5f2}","e"],["\u{1d5f3}","f"],["\u{1d5f4}","g"],["\u{1d5f5}","h"],["\u{1d5f6}","i"],["\u{1d5f7}","j"],["\u{1d5f8}","k"],["\u{1d5f9}","l"],["\u{1d5fa}","m"],["\u{1d5fb}","n"],["\u{1d5fc}","o"],["\u{1d5fd}","p"],["\u{1d5fe}","q"],["\u{1d5ff}","r"],["\u{1d600}","s"],["\u{1d601}","t"],["\u{1d602}","u"],["\u{1d603}","v"],["\u{1d604}","w"],["\u{1d605}","x"],["\u{1d606}","y"],["\u{1d607}","z"],["\u{1d608}","A"],["\u{1d609}","B"],["\u{1d60a}","C"],["\u{1d60b}","D"],["\u{1d60c}","E"],["\u{1d60d}","F"],["\u{1d60e}","G"],["\u{1d60f}","H"],["\u{1d610}","I"],["\u{1d611}","J"],["\u{1d612}","K"],["\u{1d613}","L"],["\u{1d614}","M"],["\u{1d615}","N"],["\u{1d616}","O"],["\u{1d617}","P"],["\u{1d618}","Q"],["\u{1d619}","R"],["\u{1d61a}","S"],["\u{1d61b}","T"],["\u{1d61c}","U"],["\u{1d61d}","V"],["\u{1d61e}","W"],["\u{1d61f}","X"],["\u{1d620}","Y"],["\u{1d621}","Z"],["\u{1d622}","a"],["\u{1d623}","b"],["\u{1d624}","c"],["\u{1d625}","d"],["\u{1d626}","e"],["\u{1d627}","f"],["\u{1d628}","g"],["\u{1d629}","h"],["\u{1d62a}","i"],["\u{1d62b}","j"],["\u{1d62c}","k"],["\u{1d62d}","l"],["\u{1d62e}","m"],["\u{1d62f}","n"],["\u{1d630}","o"],["\u{1d631}","p"],["\u{1d632}","q"],["\u{1d633}","r"],["\u{1d634}","s"],["\u{1d635}","t"],["\u{1d636}","u"],["\u{1d637}","v"],["\u{1d638}","w"],["\u{1d639}","x"],["\u{1d63a}","y"],["\u{1d63b}","z"],["\u{1d63c}","A"],["\u{1d63d}","B"],["\u{1d63e}","C"],["\u{1d63f}","D"],["\u{1d640}","E"],["\u{1d641}","F"],["\u{1d642}","G"],["\u{1d643}","H"],["\u{1d644}","I"],["\u{1d645}","J"],["\u{1d646}","K"],["\u{1d647}","L"],["\u{1d648}","M"],["\u{1d649}","N"],["\u{1d64a}","O"],["\u{1d64b}","P"],["\u{1d64c}","Q"],["\u{1d64d}","R"],["\u{1d64e}","S"],["\u{1d64f}","T"],["\u{1d650}","U"],["\u{1d651}","V"],["\u{1d652}","W"],["\u{1d653}","X"],["\u{1d654}","Y"],["\u{1d655}","Z"],["\u{1d656}","a"],["\u{1d657}","b"],["\u{1d658}","c"],["\u{1d659}","d"],["\u{1d65a}","e"],["\u{1d65b}","f"],["\u{1d65c}","g"],["\u{1d65d}","h"],["\u{1d65e}","i"],["\u{1d65f}","j"],["\u{1d660}","k"],["\u{1d661}","l"],["\u{1d662}","m"],["\u{1d663}","n"],["\u{1d664}","o"],["\u{1d665}","p"],["\u{1d666}","q"],["\u{1d667}","r"],["\u{1d668}","s"],["\u{1d669}","t"],["\u{1d66a}","u"],["\u{1d66b}","v"],["\u{1d66c}","w"],["\u{1d66d}","x"],["\u{1d66e}","y"],["\u{1d66f}","z"],["\u{1d670}","A"],["\u{1d671}","B"],["\u{1d672}","C"],["\u{1d673}","D"],["\u{1d674}","E"],["\u{1d675}","F"],["\u{1d676}","G"],["\u{1d677}","H"],["\u{1d678}","I"],["\u{1d679}","J"],["\u{1d67a}","K"],["\u{1d67b}","L"],["\u{1d67c}","M"],["\u{1d67d}","N"],["\u{1d67e}","O"],["\u{1d67f}","P"],["\u{1d680}","Q"],["\u{1d681}","R"],["\u{1d682}","S"],["\u{1d683}","T"],["\u{1d684}","U"],["\u{1d685}","V"],["\u{1d686}","W"],["\u{1d687}","X"],["\u{1d688}","Y"],["\u{1d689}","Z"],["\u{1d68a}","a"],["\u{1d68b}","b"],["\u{1d68c}","c"],["\u{1d68d}","d"],["\u{1d68e}","e"],["\u{1d68f}","f"],["\u{1d690}","g"],["\u{1d691}","h"],["\u{1d692}","i"],["\u{1d693}","j"],["\u{1d694}","k"],["\u{1d695}","l"],["\u{1d696}","m"],["\u{1d697}","n"],["\u{1d698}","o"],["\u{1d699}","p"],["\u{1d69a}","q"],["\u{1d69b}","r"],["\u{1d69c}","s"],["\u{1d69d}","t"],["\u{1d69e}","u"],["\u{1d69f}","v"],["\u{1d6a0}","w"],["\u{1d6a1}","x"],["\u{1d6a2}","y"],["\u{1d6a3}","z"],["\u{1d6a4}","l"],["\u{1d6a5}","j"],["\u{1d6e2}","A"],["\u{1d6e3}","B"],["\u{1d6e4}","G"],["\u{1d6e5}","D"],["\u{1d6e6}","E"],["\u{1d6e7}","Z"],["\u{1d6e8}","I"],["\u{1d6e9}","TH"],["\u{1d6ea}","I"],["\u{1d6eb}","K"],["\u{1d6ec}","L"],["\u{1d6ed}","M"],["\u{1d6ee}","N"],["\u{1d6ef}","KS"],["\u{1d6f0}","O"],["\u{1d6f1}","P"],["\u{1d6f2}","R"],["\u{1d6f3}","TH"],["\u{1d6f4}","S"],["\u{1d6f5}","T"],["\u{1d6f6}","Y"],["\u{1d6f7}","F"],["\u{1d6f8}","x"],["\u{1d6f9}","PS"],["\u{1d6fa}","O"],["\u{1d6fb}","D"],["\u{1d6fc}","a"],["\u{1d6fd}","b"],["\u{1d6fe}","g"],["\u{1d6ff}","d"],["\u{1d700}","e"],["\u{1d701}","z"],["\u{1d702}","i"],["\u{1d703}","th"],["\u{1d704}","i"],["\u{1d705}","k"],["\u{1d706}","l"],["\u{1d707}","m"],["\u{1d708}","n"],["\u{1d709}","ks"],["\u{1d70a}","o"],["\u{1d70b}","p"],["\u{1d70c}","r"],["\u{1d70d}","s"],["\u{1d70e}","s"],["\u{1d70f}","t"],["\u{1d710}","y"],["\u{1d711}","f"],["\u{1d712}","x"],["\u{1d713}","ps"],["\u{1d714}","o"],["\u{1d715}","d"],["\u{1d716}","E"],["\u{1d717}","TH"],["\u{1d718}","K"],["\u{1d719}","f"],["\u{1d71a}","r"],["\u{1d71b}","p"],["\u{1d71c}","A"],["\u{1d71d}","V"],["\u{1d71e}","G"],["\u{1d71f}","D"],["\u{1d720}","E"],["\u{1d721}","Z"],["\u{1d722}","I"],["\u{1d723}","TH"],["\u{1d724}","I"],["\u{1d725}","K"],["\u{1d726}","L"],["\u{1d727}","M"],["\u{1d728}","N"],["\u{1d729}","KS"],["\u{1d72a}","O"],["\u{1d72b}","P"],["\u{1d72c}","S"],["\u{1d72d}","TH"],["\u{1d72e}","S"],["\u{1d72f}","T"],["\u{1d730}","Y"],["\u{1d731}","F"],["\u{1d732}","X"],["\u{1d733}","PS"],["\u{1d734}","O"],["\u{1d735}","D"],["\u{1d736}","a"],["\u{1d737}","v"],["\u{1d738}","g"],["\u{1d739}","d"],["\u{1d73a}","e"],["\u{1d73b}","z"],["\u{1d73c}","i"],["\u{1d73d}","th"],["\u{1d73e}","i"],["\u{1d73f}","k"],["\u{1d740}","l"],["\u{1d741}","m"],["\u{1d742}","n"],["\u{1d743}","ks"],["\u{1d744}","o"],["\u{1d745}","p"],["\u{1d746}","r"],["\u{1d747}","s"],["\u{1d748}","s"],["\u{1d749}","t"],["\u{1d74a}","y"],["\u{1d74b}","f"],["\u{1d74c}","x"],["\u{1d74d}","ps"],["\u{1d74e}","o"],["\u{1d74f}","a"],["\u{1d750}","e"],["\u{1d751}","i"],["\u{1d752}","k"],["\u{1d753}","f"],["\u{1d754}","r"],["\u{1d755}","p"],["\u{1d756}","A"],["\u{1d757}","B"],["\u{1d758}","G"],["\u{1d759}","D"],["\u{1d75a}","E"],["\u{1d75b}","Z"],["\u{1d75c}","I"],["\u{1d75d}","TH"],["\u{1d75e}","I"],["\u{1d75f}","K"],["\u{1d760}","L"],["\u{1d761}","M"],["\u{1d762}","N"],["\u{1d763}","KS"],["\u{1d764}","O"],["\u{1d765}","P"],["\u{1d766}","R"],["\u{1d767}","TH"],["\u{1d768}","S"],["\u{1d769}","T"],["\u{1d76a}","Y"],["\u{1d76b}","F"],["\u{1d76c}","X"],["\u{1d76d}","PS"],["\u{1d76e}","O"],["\u{1d76f}","D"],["\u{1d770}","a"],["\u{1d771}","v"],["\u{1d772}","g"],["\u{1d773}","d"],["\u{1d774}","e"],["\u{1d775}","z"],["\u{1d776}","i"],["\u{1d777}","th"],["\u{1d778}","i"],["\u{1d779}","k"],["\u{1d77a}","l"],["\u{1d77b}","m"],["\u{1d77c}","n"],["\u{1d77d}","ks"],["\u{1d77e}","o"],["\u{1d77f}","p"],["\u{1d780}","r"],["\u{1d781}","s"],["\u{1d782}","s"],["\u{1d783}","t"],["\u{1d784}","y"],["\u{1d785}","f"],["\u{1d786}","x"],["\u{1d787}","ps"],["\u{1d788}","o"],["\u{1d789}","a"],["\u{1d78a}","e"],["\u{1d78b}","i"],["\u{1d78c}","k"],["\u{1d78d}","f"],["\u{1d78e}","r"],["\u{1d78f}","p"],["\u{1d790}","A"],["\u{1d791}","V"],["\u{1d792}","G"],["\u{1d793}","D"],["\u{1d794}","E"],["\u{1d795}","Z"],["\u{1d796}","I"],["\u{1d797}","TH"],["\u{1d798}","I"],["\u{1d799}","K"],["\u{1d79a}","L"],["\u{1d79b}","M"],["\u{1d79c}","N"],["\u{1d79d}","KS"],["\u{1d79e}","O"],["\u{1d79f}","P"],["\u{1d7a0}","S"],["\u{1d7a1}","TH"],["\u{1d7a2}","S"],["\u{1d7a3}","T"],["\u{1d7a4}","Y"],["\u{1d7a5}","F"],["\u{1d7a6}","X"],["\u{1d7a7}","PS"],["\u{1d7a8}","O"],["\u{1d7a9}","D"],["\u{1d7aa}","av"],["\u{1d7ab}","g"],["\u{1d7ac}","d"],["\u{1d7ad}","e"],["\u{1d7ae}","z"],["\u{1d7af}","i"],["\u{1d7b0}","i"],["\u{1d7b1}","th"],["\u{1d7b2}","i"],["\u{1d7b3}","k"],["\u{1d7b4}","l"],["\u{1d7b5}","m"],["\u{1d7b6}","n"],["\u{1d7b7}","ks"],["\u{1d7b8}","o"],["\u{1d7b9}","p"],["\u{1d7ba}","r"],["\u{1d7bb}","s"],["\u{1d7bc}","s"],["\u{1d7bd}","t"],["\u{1d7be}","y"],["\u{1d7bf}","f"],["\u{1d7c0}","x"],["\u{1d7c1}","ps"],["\u{1d7c2}","o"],["\u{1d7c3}","a"],["\u{1d7c4}","e"],["\u{1d7c5}","i"],["\u{1d7c6}","k"],["\u{1d7c7}","f"],["\u{1d7c8}","r"],["\u{1d7c9}","p"],["\u{1d7ca}","F"],["\u{1d7cb}","f"],["\u249c","(a)"],["\u249d","(b)"],["\u249e","(c)"],["\u249f","(d)"],["\u24a0","(e)"],["\u24a1","(f)"],["\u24a2","(g)"],["\u24a3","(h)"],["\u24a4","(i)"],["\u24a5","(j)"],["\u24a6","(k)"],["\u24a7","(l)"],["\u24a8","(m)"],["\u24a9","(n)"],["\u24aa","(o)"],["\u24ab","(p)"],["\u24ac","(q)"],["\u24ad","(r)"],["\u24ae","(s)"],["\u24af","(t)"],["\u24b0","(u)"],["\u24b1","(v)"],["\u24b2","(w)"],["\u24b3","(x)"],["\u24b4","(y)"],["\u24b5","(z)"],["\u24b6","(A)"],["\u24b7","(B)"],["\u24b8","(C)"],["\u24b9","(D)"],["\u24ba","(E)"],["\u24bb","(F)"],["\u24bc","(G)"],["\u24bd","(H)"],["\u24be","(I)"],["\u24bf","(J)"],["\u24c0","(K)"],["\u24c1","(L)"],["\u24c3","(N)"],["\u24c4","(O)"],["\u24c5","(P)"],["\u24c6","(Q)"],["\u24c7","(R)"],["\u24c8","(S)"],["\u24c9","(T)"],["\u24ca","(U)"],["\u24cb","(V)"],["\u24cc","(W)"],["\u24cd","(X)"],["\u24ce","(Y)"],["\u24cf","(Z)"],["\u24d0","(a)"],["\u24d1","(b)"],["\u24d2","(b)"],["\u24d3","(c)"],["\u24d4","(e)"],["\u24d5","(f)"],["\u24d6","(g)"],["\u24d7","(h)"],["\u24d8","(i)"],["\u24d9","(j)"],["\u24da","(k)"],["\u24db","(l)"],["\u24dc","(m)"],["\u24dd","(n)"],["\u24de","(o)"],["\u24df","(p)"],["\u24e0","(q)"],["\u24e1","(r)"],["\u24e2","(s)"],["\u24e3","(t)"],["\u24e4","(u)"],["\u24e5","(v)"],["\u24e6","(w)"],["\u24e7","(x)"],["\u24e8","(y)"],["\u24e9","(z)"],["\u010a","C"],["\u010b","c"],["\u0120","G"],["\u0121","g"],["\u0126","H"],["\u0127","h"],["\u017b","Z"],["\u017c","z"],["\u{1d7ce}","0"],["\u{1d7cf}","1"],["\u{1d7d0}","2"],["\u{1d7d1}","3"],["\u{1d7d2}","4"],["\u{1d7d3}","5"],["\u{1d7d4}","6"],["\u{1d7d5}","7"],["\u{1d7d6}","8"],["\u{1d7d7}","9"],["\u{1d7d8}","0"],["\u{1d7d9}","1"],["\u{1d7da}","2"],["\u{1d7db}","3"],["\u{1d7dc}","4"],["\u{1d7dd}","5"],["\u{1d7de}","6"],["\u{1d7df}","7"],["\u{1d7e0}","8"],["\u{1d7e1}","9"],["\u{1d7e2}","0"],["\u{1d7e3}","1"],["\u{1d7e4}","2"],["\u{1d7e5}","3"],["\u{1d7e6}","4"],["\u{1d7e7}","5"],["\u{1d7e8}","6"],["\u{1d7e9}","7"],["\u{1d7ea}","8"],["\u{1d7eb}","9"],["\u{1d7ec}","0"],["\u{1d7ed}","1"],["\u{1d7ee}","2"],["\u{1d7ef}","3"],["\u{1d7f0}","4"],["\u{1d7f1}","5"],["\u{1d7f2}","6"],["\u{1d7f3}","7"],["\u{1d7f4}","8"],["\u{1d7f5}","9"],["\u{1d7f6}","0"],["\u{1d7f7}","1"],["\u{1d7f8}","2"],["\u{1d7f9}","3"],["\u{1d7fa}","4"],["\u{1d7fb}","5"],["\u{1d7fc}","6"],["\u{1d7fd}","7"],["\u{1d7fe}","8"],["\u{1d7ff}","9"],["\u2460","1"],["\u2461","2"],["\u2462","3"],["\u2463","4"],["\u2464","5"],["\u2465","6"],["\u2466","7"],["\u2467","8"],["\u2468","9"],["\u2469","10"],["\u246a","11"],["\u246b","12"],["\u246c","13"],["\u246d","14"],["\u246e","15"],["\u246f","16"],["\u2470","17"],["\u2471","18"],["\u2472","19"],["\u2473","20"],["\u2474","1"],["\u2475","2"],["\u2476","3"],["\u2477","4"],["\u2478","5"],["\u2479","6"],["\u247a","7"],["\u247b","8"],["\u247c","9"],["\u247d","10"],["\u247e","11"],["\u247f","12"],["\u2480","13"],["\u2481","14"],["\u2482","15"],["\u2483","16"],["\u2484","17"],["\u2485","18"],["\u2486","19"],["\u2487","20"],["\u2488","1."],["\u2489","2."],["\u248a","3."],["\u248b","4."],["\u248c","5."],["\u248d","6."],["\u248e","7."],["\u248f","8."],["\u2490","9."],["\u2491","10."],["\u2492","11."],["\u2493","12."],["\u2494","13."],["\u2495","14."],["\u2496","15."],["\u2497","16."],["\u2498","17."],["\u2499","18."],["\u249a","19."],["\u249b","20."],["\u24ea","0"],["\u24eb","11"],["\u24ec","12"],["\u24ed","13"],["\u24ee","14"],["\u24ef","15"],["\u24f0","16"],["\u24f1","17"],["\u24f2","18"],["\u24f3","19"],["\u24f4","20"],["\u24f5","1"],["\u24f6","2"],["\u24f7","3"],["\u24f8","4"],["\u24f9","5"],["\u24fa","6"],["\u24fb","7"],["\u24fc","8"],["\u24fd","9"],["\u24fe","10"],["\u24ff","0"],["\u{1f670}","&"],["\u{1f671}","&"],["\u{1f672}","&"],["\u{1f673}","&"],["\u{1f674}","&"],["\u{1f675}","&"],["\u{1f676}",'"'],["\u{1f677}",'"'],["\u{1f678}",'"'],["\u203d","?!"],["\u{1f679}","?!"],["\u{1f67a}","?!"],["\u{1f67b}","?!"],["\u{1f67c}","/"],["\u{1f67d}","\\"],["\u{1f707}","AR"],["\u{1f708}","V"],["\u{1f709}","V"],["\u{1f706}","VR"],["\u{1f705}","VF"],["\u{1f729}","2"],["\u{1f72a}","5"],["\u{1f761}","f"],["\u{1f762}","W"],["\u{1f763}","U"],["\u{1f767}","V"],["\u{1f768}","T"],["\u{1f76a}","V"],["\u{1f76b}","MB"],["\u{1f76c}","VB"],["\u{1f772}","3B"],["\u{1f773}","3B"],["\u{1f4af}","100"],["\u{1f519}","BACK"],["\u{1f51a}","END"],["\u{1f51b}","ON!"],["\u{1f51c}","SOON"],["\u{1f51d}","TOP"],["\u{1f51e}","18"],["\u{1f524}","abc"],["\u{1f520}","ABCD"],["\u{1f521}","abcd"],["\u{1f522}","1234"],["\u{1f523}","T&@%"],["#\ufe0f\u20e3","#"],["*\ufe0f\u20e3","*"],["0\ufe0f\u20e3","0"],["1\ufe0f\u20e3","1"],["2\ufe0f\u20e3","2"],["3\ufe0f\u20e3","3"],["4\ufe0f\u20e3","4"],["5\ufe0f\u20e3","5"],["6\ufe0f\u20e3","6"],["7\ufe0f\u20e3","7"],["8\ufe0f\u20e3","8"],["9\ufe0f\u20e3","9"],["\u{1f51f}","10"],["\u{1f170}\ufe0f","A"],["\u{1f171}\ufe0f","B"],["\u{1f18e}","AB"],["\u{1f191}","CL"],["\u{1f17e}\ufe0f","O"],["\u{1f17f}","P"],["\u{1f198}","SOS"],["\u{1f172}","C"],["\u{1f173}","D"],["\u{1f174}","E"],["\u{1f175}","F"],["\u{1f176}","G"],["\u{1f177}","H"],["\u{1f178}","I"],["\u{1f179}","J"],["\u{1f17a}","K"],["\u{1f17b}","L"],["\u{1f17c}","M"],["\u{1f17d}","N"],["\u{1f180}","Q"],["\u{1f181}","R"],["\u{1f182}","S"],["\u{1f183}","T"],["\u{1f184}","U"],["\u{1f185}","V"],["\u{1f186}","W"],["\u{1f187}","X"],["\u{1f188}","Y"],["\u{1f189}","Z"]],Nse=[["&"," and "],["\u{1f984}"," unicorn "],["\u2665"," love "]];function JF(t,n){if("string"!=typeof t)throw new TypeError(`Expected a string, got \`${typeof t}\``);const e=(n={separator:"-",lowercase:!0,decamelize:!0,customReplacements:[],preserveLeadingUnderscore:!1,preserveTrailingDash:!1,preserveCharacters:[],...n}).preserveLeadingUnderscore&&t.startsWith("_"),i=n.preserveTrailingDash&&t.endsWith("-");t=function Pse(t,n){if("string"!=typeof t)throw new TypeError(`Expected a string, got \`${typeof t}\``);n={customReplacements:[],...n};const e=new Map([...Ose,...n.customReplacements]);return(t=((t,n)=>{for(const[e,i]of n)t=t.replace(new RegExp(Ise(e),"g"),i);return t})(t=t.normalize(),e)).normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").normalize()}(t,{customReplacements:new Map([...Nse,...n.customReplacements])}),n.decamelize&&(t=(t=>t.replace(/([A-Z]{2,})(\d+)/g,"$1 $2").replace(/([a-z\d]+)([A-Z]{2,})/g,"$1 $2").replace(/([a-z\d])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-rt-z\d]+)/g,"$1 $2"))(t));const r=(t=>{let n="a-z\\d";if(n+=t.lowercase?"":"A-Z",t.preserveCharacters.length>0)for(const e of t.preserveCharacters){if(e===t.separator)throw new Error(`The separator character \`${t.separator}\` cannot be included in preserved characters: ${t.preserveCharacters}`);n+=XF(e)}return new RegExp(`[^${n}]+`,"g")})(n);return n.lowercase&&(t=t.toLowerCase()),t=(t=(t=t.replace(/([a-zA-Z\d]+)'([ts])(\s|$)/g,"$1$2$3")).replace(r,n.separator)).replace(/\\/g,""),n.separator&&(t=((t,n)=>{const e=XF(n);return t.replace(new RegExp(`${e}{2,}`,"g"),n).replace(new RegExp(`^${e}|${e}$`,"g"),"")})(t,n.separator)),e&&(t=`_${t}`),i&&(t=`${t}-`),t}var Hse=O(1651),QF=O(217),Yse=O(5965),zse=O.n(Yse);const KF={"application/prs.cww":["cww"],"application/prs.xsf+xml":["xsf"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["*xfdf"],"application/vnd.age":["age"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["*fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["*mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.pwg-xhtml-print+xml":["xhtm"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml","uo"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["*prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["*sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["*aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif","btf"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.cld":["cld"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.pytha.pyox":["pyo","pyox"],"model/vnd.sap.vds":["vds"],"model/vnd.usda":["usda"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.familysearch.gedcom":["ged"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]};Object.freeze(KF);const $se=KF,qF={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(qF);const Vse=qF;var Wu,kf,ec,Mr=function(t,n,e,i){if("a"===e&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?t!==n||!i:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?i:"a"===e?i.call(t):i?i.value:n.get(t)};Wu=new WeakMap,kf=new WeakMap,ec=new WeakMap;const Use=new class Zse{constructor(...n){Wu.set(this,new Map),kf.set(this,new Map),ec.set(this,new Map);for(const e of n)this.define(e)}define(n,e=!1){for(let[i,o]of Object.entries(n)){i=i.toLowerCase(),o=o.map(s=>s.toLowerCase()),Mr(this,ec,"f").has(i)||Mr(this,ec,"f").set(i,new Set);const r=Mr(this,ec,"f").get(i);let a=!0;for(let s of o){const l=s.startsWith("*");if(s=l?s.slice(1):s,r?.add(s),a&&Mr(this,kf,"f").set(i,s),a=!1,l)continue;const c=Mr(this,Wu,"f").get(s);if(c&&c!=i&&!e)throw new Error(`"${i} -> ${s}" conflicts with "${c} -> ${s}". Pass \`force=true\` to override this definition.`);Mr(this,Wu,"f").set(s,i)}}return this}getType(n){if("string"!=typeof n)return null;const e=n.replace(/^.*[/\\]/,"").toLowerCase(),i=e.replace(/^.*\./,"").toLowerCase();return i.length{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const n of Mr(this,ec,"f").values())Object.freeze(n);return this}_getTestState(){return{types:Mr(this,Wu,"f"),extensions:Mr(this,kf,"f")}}}(Vse,$se)._freeze();var Aa=function(t){return t.eaf="eaf",t.textgrid="textgrid",t.srt="srt",t.vtt="vtt",t.html="html",t.zip="zip",t}(Aa||{});let eL=(()=>{class t{constructor(e){this.http=e,this.baseURL=hr.apiBaseURL}convertRasFormat$(e,i){return this.http.post(this.baseURL+"/convert_alignment/"+i,e,{responseType:"blob"})}assembleReadalong$(e){return this.http.post(this.baseURL+"/assemble",e)}getLangs$(){return this.http.get(this.baseURL+"/langs")}static{this.\u0275fac=function(i){return new(i||t)(Me(su))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),tL=(()=>{class t{constructor(){this.$currentAudio=new hi(null),this.$currentText=new hi(null)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),j1=(()=>{class t{constructor(e,i,o,r){this.uploadService=e,this.rasService=i,this.b64Service=o,this.toastr=r,this.unsubscribe$=new vt,this.xmlSerializer=new XMLSerializer,this.readmeFile=new Blob(["Web Deployment Guide\n\nThis bundle has everything you need to host your ReadAlong on your own server.\n\nYour audio, (optional) image, and alignment (.readalong) assets are stored in the assets folder.\n\nThe plain text used to create your ReadAlong is also stored here along with an example index.html file.\n\nYour index.html file demonstrates the snippet and imports needed to host the ReadAlong on your server.\n\nPlease host all assets on your server, include the font and package imports defined in the index.html in your website's imports, and include the corresponding snippet everywhere you would like your ReadAlong to be displayed.\n "],{type:"text/plain"})}updateTranslations(e,i){return(0,y.Z)(function*(){const o=yield i.getTranslations();if(0==Object.keys(o).length)return e.querySelectorAll("s.translation, s.sentence__translation").forEach(r=>{r.remove()}),!1;{const r=e.querySelectorAll("s:not(.sentence__translation)"),a=new Set(Array.from(e.querySelectorAll(".editable__translation")).map(s=>s.id));return e.querySelectorAll("s.translation, s.sentence__translation").forEach(s=>{const l=s.hasAttribute("sentence-id")?s.getAttribute("sentence-id"):s.id;l in o?s.textContent=o[l]:s.remove()}),r.forEach(s=>{if(s.id in o&&!a.has(s.id)){let l=document.createElementNS(null,"s");l.setAttribute("do-not-align","true"),l.setAttribute("id",`${s.id}`),l.setAttribute("sentence-id",s.id),l.setAttribute("class","sentence__translation editable__translation"),l.setAttribute("xml:lang","eng"),l.append(o[s.id]),s.insertAdjacentElement("afterend",l)}}),!0}})()}updateImages(e,i=!0,o="image",r){var a=this;return(0,y.Z)(function*(){const s=yield r.getImages(),l=e.querySelectorAll("div[type=page]"),c=[];for(const[u,d]of Object.entries(s)){let h=l[parseInt(u)];if(h&&d){h.querySelectorAll("graphic").forEach(b=>b.remove());let p=e.createElementNS(null,"graphic"),g=yield fetch(d).then(b=>b.blob());if(g=yield(0,Hse.compress)(g,.75),i){let b=yield a.b64Service.blobToB64(g);p.setAttribute("url",b)}else{const b=Use.getExtension(g.type),T=`${o}-${u}.${b}`;c.push({blob:g,path:T}),p.setAttribute("url",`${T}`)}h.appendChild(p)}else null===d&&h.querySelectorAll("graphic").forEach(p=>p.remove())}return!!i||c})()}registerDownloadEvent(e,i){window.plausible("Download",{props:{fileType:e,downloadSource:i}})}createSingleFileBlob(e,i,o,r){var a=this;return(0,y.Z)(function*(){yield a.updateImages(e,!0,"image",i),yield a.updateTranslations(e,i);let s=a.b64Service.xmlToB64(e);if(null!==a.b64Service.jsAndFontsBundle$.value)return new Blob([`\n \n \n \n \n \n \n ${o.title}\n \n + diff --git a/pr-preview/pr-375/fr/main.af84ddac0f0afb77.js b/pr-preview/pr-375/fr/main.3161f3c1386a1a26.js similarity index 50% rename from pr-preview/pr-375/fr/main.af84ddac0f0afb77.js rename to pr-preview/pr-375/fr/main.3161f3c1386a1a26.js index 96c683ab..0f7d0ffb 100644 --- a/pr-preview/pr-375/fr/main.af84ddac0f0afb77.js +++ b/pr-preview/pr-375/fr/main.3161f3c1386a1a26.js @@ -1,6 +1,6 @@ globalThis.$localize=Object.assign(globalThis.$localize || {},{locale:"fr"}); "use strict";(function(global,_global$ng,_global$ng2,_global$ng2$common,_global$ng$common,_global$ng$common$loc){(_global$ng=global.ng)!==null&&_global$ng!==void 0?_global$ng:global.ng={};(_global$ng2$common=(_global$ng2=global.ng).common)!==null&&_global$ng2$common!==void 0?_global$ng2$common:_global$ng2.common={};(_global$ng$common$loc=(_global$ng$common=global.ng.common).locales)!==null&&_global$ng$common$loc!==void 0?_global$ng$common$loc:_global$ng$common.locales={};const u=undefined;function plural(val){const n=val,i=Math.floor(Math.abs(val)),v=val.toString().replace(/^[^.]*\.?/,"").length,e=parseInt(val.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;if(i===0||i===1)return 1;if(e===0&&!(i===0)&&i%1000000===0&&v===0||!(e>=0&&e<=5))return 4;return 5}global.ng.common.locales["fr"]=["fr",[["AM","PM"],u,u],u,[["D","L","M","M","J","V","S"],["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["di","lu","ma","me","je","ve","sa"]],u,[["J","F","M","A","M","J","J","A","S","O","N","D"],["janv.","f\xE9vr.","mars","avr.","mai","juin","juil.","ao\xFBt","sept.","oct.","nov.","d\xE9c."],["janvier","f\xE9vrier","mars","avril","mai","juin","juillet","ao\xFBt","septembre","octobre","novembre","d\xE9cembre"]],u,[["av. J.-C.","ap. J.-C."],u,["avant J\xE9sus-Christ","apr\xE8s J\xE9sus-Christ"]],1,[6,0],["dd/MM/y","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}","{1}, {0}","{1} '\xE0' {0}",u],[",","\u202F",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0\xA0%","#,##0.00\xA0\xA4","#E0"],"EUR","\u20AC","euro",{"ARS":["$AR","$"],"AUD":["$AU","$"],"BEF":["FB"],"BMD":["$BM","$"],"BND":["$BN","$"],"BYN":[u,"\u0440."],"BZD":["$BZ","$"],"CAD":["$CA","$"],"CLP":["$CL","$"],"CNY":[u,"\xA5"],"COP":["$CO","$"],"CYP":["\xA3CY"],"EGP":[u,"\xA3E"],"FJD":["$FJ","$"],"FKP":["\xA3FK","\xA3"],"FRF":["F"],"GBP":["\xA3GB","\xA3"],"GIP":["\xA3GI","\xA3"],"HKD":[u,"$"],"IEP":["\xA3IE"],"ILP":["\xA3IL"],"ITL":["\u20A4IT"],"JPY":[u,"\xA5"],"KMF":[u,"FC"],"LBP":["\xA3LB","\xA3L"],"MTP":["\xA3MT"],"MXN":["$MX","$"],"NAD":["$NA","$"],"NIO":[u,"$C"],"NZD":["$NZ","$"],"PHP":[u,"\u20B1"],"RHD":["$RH"],"RON":[u,"L"],"RWF":[u,"FR"],"SBD":["$SB","$"],"SGD":["$SG","$"],"SRD":["$SR","$"],"TOP":[u,"$T"],"TTD":["$TT","$"],"TWD":[u,"NT$"],"USD":["$US","$"],"UYU":["$UY","$"],"WST":["$WS"],"XCD":[u,"$"],"XPF":["FCFP"],"ZMW":[u,"Kw"]},"ltr",plural,[[["minuit","midi","mat.","ap.m.","soir","nuit"],u,["minuit","midi","du matin","de l\u2019apr\xE8s-midi","du soir","du matin"]],[["minuit","midi","mat.","ap.m.","soir","nuit"],u,["minuit","midi","matin","apr\xE8s-midi","soir","nuit"]],["00:00","12:00",["04:00","12:00"],["12:00","18:00"],["18:00","24:00"],["00:00","04:00"]]]]})(globalThis);; -(self.webpackChunkstudio_web=self.webpackChunkstudio_web||[]).push([[179],{8718:(C,de,O)=>{var y={"./read-along.entry.js":[9154,154]};function z(M){if(!O.o(y,M))return Promise.resolve().then(()=>{var L=new Error("Cannot find module '"+M+"'");throw L.code="MODULE_NOT_FOUND",L});var v=y[M],I=v[0];return O.e(v[1]).then(()=>O(I))}z.keys=()=>Object.keys(y),z.id=8718,C.exports=z},4156:(C,de,O)=>{"use strict";O.d(de,{F:()=>qr,b:()=>ni,g:()=>B,h:()=>q,r:()=>Ia});var y=O(5861);let M,v,I=!1,j=!1;const V="slot-fb{display:contents}slot-fb[hidden]{display:none}",x="http://www.w3.org/1999/xlink",N={},U=S=>"object"==(S=typeof S)||"function"===S;function X(S){var ue,Ie,Ee;return null!==(Ee=null===(Ie=null===(ue=S.head)||void 0===ue?void 0:ue.querySelector('meta[name="csp-nonce"]'))||void 0===Ie?void 0:Ie.getAttribute("content"))&&void 0!==Ee?Ee:void 0}const q=(S,ue,...Ie)=>{let Ee=null,Ve=null,ot=!1,qe=!1;const et=[],yt=xt=>{for(let $t=0;$txt[$t]).join(" "))}}if("function"==typeof S)return S(null===ue?{}:ue,et,ae);const Ct=ee(S,null);return Ct.$attrs$=ue,et.length>0&&(Ct.$children$=et),Ct.$key$=Ve,Ct},ee=(S,ue)=>({$flags$:0,$tag$:S,$text$:ue,$elm$:null,$children$:null,$attrs$:null,$key$:null}),J={},ae={forEach:(S,ue)=>S.map(Q).forEach(ue),map:(S,ue)=>S.map(Q).map(ue).map(se)},Q=S=>({vattrs:S.$attrs$,vchildren:S.$children$,vkey:S.$key$,vname:S.$name$,vtag:S.$tag$,vtext:S.$text$}),se=S=>{if("function"==typeof S.vtag){const Ie=Object.assign({},S.vattrs);return S.vkey&&(Ie.key=S.vkey),S.vname&&(Ie.name=S.vname),q(S.vtag,Ie,...S.vchildren||[])}const ue=ee(S.vtag,S.vtext);return ue.$attrs$=S.vattrs,ue.$children$=S.vchildren,ue.$key$=S.vkey,ue.$name$=S.vname,ue},B=S=>vo(S).$hostElement$,f=new WeakMap,E=(S,ue)=>"sc-"+S.$tagName$,P=(S,ue,Ie,Ee,Ve,ot)=>{if(Ie!==Ee){let qe=gr(S,ue),et=ue.toLowerCase();if("class"===ue){const yt=S.classList,Ct=k(Ie),xt=k(Ee);yt.remove(...Ct.filter($t=>$t&&!xt.includes($t))),yt.add(...xt.filter($t=>$t&&!Ct.includes($t)))}else if("style"===ue){for(const yt in Ie)(!Ee||null==Ee[yt])&&(yt.includes("-")?S.style.removeProperty(yt):S.style[yt]="");for(const yt in Ee)(!Ie||Ee[yt]!==Ie[yt])&&(yt.includes("-")?S.style.setProperty(yt,Ee[yt]):S.style[yt]=Ee[yt])}else if("key"!==ue)if("ref"===ue)Ee&&Ee(S);else if(qe||"o"!==ue[0]||"n"!==ue[1]){const yt=U(Ee);if((qe||yt&&null!==Ee)&&!Ve)try{if(S.tagName.includes("-"))S[ue]=Ee;else{const xt=Ee??"";"list"===ue?qe=!1:(null==Ie||S[ue]!=xt)&&(S[ue]=xt)}}catch{}let Ct=!1;et!==(et=et.replace(/^xlink\:?/,""))&&(ue=et,Ct=!0),null==Ee||!1===Ee?(!1!==Ee||""===S.getAttribute(ue))&&(Ct?S.removeAttributeNS(x,ue):S.removeAttribute(ue)):(!qe||4&ot||Ve)&&!yt&&(Ee=!0===Ee?"":Ee,Ct?S.setAttributeNS(x,ue,Ee):S.setAttribute(ue,Ee))}else if(ue="-"===ue[2]?ue.slice(3):gr(nl,et)?et.slice(2):et[2]+ue.slice(3),Ie||Ee){const yt=ue.endsWith(_);ue=ue.replace(he,""),Ie&&Ci.rel(S,ue,Ie,yt),Ee&&Ci.ael(S,ue,Ee,yt)}}},Z=/\s/,k=S=>S?S.split(Z):[],_="Capture",he=new RegExp(_+"$"),ce=(S,ue,Ie,Ee)=>{const Ve=11===ue.$elm$.nodeType&&ue.$elm$.host?ue.$elm$.host:ue.$elm$,ot=S&&S.$attrs$||N,qe=ue.$attrs$||N;for(Ee of De(Object.keys(ot)))Ee in qe||P(Ve,Ee,ot[Ee],void 0,Ie,ue.$flags$);for(Ee of De(Object.keys(qe)))P(Ve,Ee,ot[Ee],qe[Ee],Ie,ue.$flags$)};function De(S){return S.includes("ref")?[...S.filter(ue=>"ref"!==ue),"ref"]:S}const Ke=(S,ue,Ie,Ee)=>{const Ve=ue.$children$[Ie];let qe,et,ot=0;if(null!==Ve.$text$)qe=Ve.$elm$=Go.createTextNode(Ve.$text$);else if(qe=Ve.$elm$=Go.createElement(Ve.$tag$),ce(null,Ve,!1),(S=>null!=S)(M)&&qe["s-si"]!==M&&qe.classList.add(qe["s-si"]=M),Ve.$children$)for(ot=0;ot{let et,qe=S;for(qe.shadowRoot&&qe.tagName===v&&(qe=qe.shadowRoot);Ve<=ot;++Ve)Ee[Ve]&&(et=Ke(null,Ie,Ve),et&&(Ee[Ve].$elm$=et,qe.insertBefore(et,ue)))},Ce=(S,ue,Ie)=>{for(let Ee=ue;Ee<=Ie;++Ee){const Ve=S[Ee];if(Ve){const ot=Ve.$elm$;Tt(Ve),ot&&ot.remove()}}},lt=(S,ue,Ie=!1)=>S.$tag$===ue.$tag$&&(!!Ie||S.$key$===ue.$key$),ht=(S,ue,Ie=!1)=>{const Ee=ue.$elm$=S.$elm$,Ve=S.$children$,ot=ue.$children$,et=ue.$text$;null===et?("slot"===ue.$tag$&&!I||ce(S,ue,!1),null!==Ve&&null!==ot?((S,ue,Ie,Ee,Ve=!1)=>{let Gt,mr,ot=0,qe=0,et=0,yt=0,Ct=ue.length-1,xt=ue[0],$t=ue[Ct],fi=Ee.length-1,Nn=Ee[0],xi=Ee[fi];for(;ot<=Ct&&qe<=fi;)if(null==xt)xt=ue[++ot];else if(null==$t)$t=ue[--Ct];else if(null==Nn)Nn=Ee[++qe];else if(null==xi)xi=Ee[--fi];else if(lt(xt,Nn,Ve))ht(xt,Nn,Ve),xt=ue[++ot],Nn=Ee[++qe];else if(lt($t,xi,Ve))ht($t,xi,Ve),$t=ue[--Ct],xi=Ee[--fi];else if(lt(xt,xi,Ve))ht(xt,xi,Ve),S.insertBefore(xt.$elm$,$t.$elm$.nextSibling),xt=ue[++ot],xi=Ee[--fi];else if(lt($t,Nn,Ve))ht($t,Nn,Ve),S.insertBefore($t.$elm$,xt.$elm$),$t=ue[--Ct],Nn=Ee[++qe];else{for(et=-1,yt=ot;yt<=Ct;++yt)if(ue[yt]&&null!==ue[yt].$key$&&ue[yt].$key$===Nn.$key$){et=yt;break}et>=0?(mr=ue[et],mr.$tag$!==Nn.$tag$?Gt=Ke(ue&&ue[qe],Ie,et):(ht(mr,Nn,Ve),ue[et]=void 0,Gt=mr.$elm$),Nn=Ee[++qe]):(Gt=Ke(ue&&ue[qe],Ie,qe),Nn=Ee[++qe]),Gt&&xt.$elm$.parentNode.insertBefore(Gt,xt.$elm$)}ot>Ct?bt(S,null==Ee[fi+1]?null:Ee[fi+1].$elm$,Ie,Ee,qe,fi):qe>fi&&Ce(ue,ot,Ct)})(Ee,Ve,ue,ot,Ie):null!==ot?(null!==S.$text$&&(Ee.textContent=""),bt(Ee,null,ue,ot,0,ot.length-1)):null!==Ve&&Ce(Ve,0,Ve.length-1)):S.$text$!==et&&(Ee.data=et)},Tt=S=>{S.$attrs$&&S.$attrs$.ref&&S.$attrs$.ref(null),S.$children$&&S.$children$.map(Tt)},w=(S,ue)=>{ue&&!S.$onRenderResolve$&&ue["s-p"]&&ue["s-p"].push(new Promise(Ie=>S.$onRenderResolve$=Ie))},Ae=(S,ue)=>{if(S.$flags$|=16,!(4&S.$flags$))return w(S,S.$ancestorComponent$),Vf(()=>ke(S,ue));S.$flags$|=512},ke=(S,ue)=>{const Ee=S.$lazyInstance$;let Ve;return ue&&(S.$flags$|=256,S.$queuedListeners$&&(S.$queuedListeners$.map(([ot,qe])=>Ue(Ee,ot,qe)),S.$queuedListeners$=void 0),Ve=Ue(Ee,"componentWillLoad")),re(Ve,()=>ge(S,Ee,ue))},re=(S,ue)=>ne(S)?S.then(ue):ue(),ne=S=>S instanceof Promise||S&&S.then&&"function"==typeof S.then,ge=function(){var S=(0,y.Z)(function*(ue,Ie,Ee){var Ve;const ot=ue.$hostElement$,et=ot["s-rc"];Ee&&(S=>{const ue=S.$cmpMeta$,Ie=S.$hostElement$,Ee=ue.$flags$,ot=((S,ue,Ie)=>{var Ee;const Ve=E(ue),ot=tl.get(Ve);if(S=11===S.nodeType?S:Go,ot)if("string"==typeof ot){let et,qe=f.get(S=S.head||S);if(qe||f.set(S,qe=new Set),!qe.has(Ve)){{et=Go.createElement("style"),et.innerHTML=ot;const yt=null!==(Ee=Ci.$nonce$)&&void 0!==Ee?Ee:X(Go);null!=yt&&et.setAttribute("nonce",yt),S.insertBefore(et,S.querySelector("link"))}4&ue.$flags$&&(et.innerHTML+=V),qe&&qe.add(Ve)}}else S.adoptedStyleSheets.includes(ot)||(S.adoptedStyleSheets=[...S.adoptedStyleSheets,ot]);return Ve})(Ie.shadowRoot?Ie.shadowRoot:Ie.getRootNode(),ue);10&Ee&&(Ie["s-sc"]=ot,Ie.classList.add(ot+"-h"))})(ue);ze(ue,Ie,ot,Ee),et&&(et.map(Ct=>Ct()),ot["s-rc"]=void 0);{const Ct=null!==(Ve=ot["s-p"])&&void 0!==Ve?Ve:[],xt=()=>Ge(ue);0===Ct.length?xt():(Promise.all(Ct).then(xt),ue.$flags$|=4,Ct.length=0)}});return function(Ie,Ee,Ve){return S.apply(this,arguments)}}(),ze=(S,ue,Ie,Ee)=>{try{ue=ue.render(),S.$flags$&=-17,S.$flags$|=2,((S,ue,Ie=!1)=>{const Ee=S.$hostElement$,Ve=S.$cmpMeta$,ot=S.$vnode$||ee(null,null),qe=(S=>S&&S.$tag$===J)(ue)?ue:q(null,null,ue);if(v=Ee.tagName,Ve.$attrsToReflect$&&(qe.$attrs$=qe.$attrs$||{},Ve.$attrsToReflect$.map(([et,yt])=>qe.$attrs$[yt]=Ee[et])),Ie&&qe.$attrs$)for(const et of Object.keys(qe.$attrs$))Ee.hasAttribute(et)&&!["key","ref","style","class"].includes(et)&&(qe.$attrs$[et]=Ee[et]);qe.$tag$=null,qe.$flags$|=4,S.$vnode$=qe,qe.$elm$=ot.$elm$=Ee.shadowRoot||Ee,M=Ee["s-sc"],I=0!=(1&Ve.$flags$),ht(ot,qe,Ie)})(S,ue,Ee)}catch(Ve){ta(Ve,S.$hostElement$)}return null},Ge=S=>{const Ie=S.$hostElement$,Ve=S.$lazyInstance$,ot=S.$ancestorComponent$;Ue(Ve,"componentDidRender"),64&S.$flags$?Ue(Ve,"componentDidUpdate"):(S.$flags$|=64,pt(Ie),Ue(Ve,"componentDidLoad"),S.$onReadyResolve$(Ie),ot||Te()),S.$onInstanceResolve$(Ie),S.$onRenderResolve$&&(S.$onRenderResolve$(),S.$onRenderResolve$=void 0),512&S.$flags$&&$f(()=>Ae(S,!1)),S.$flags$&=-517},Te=S=>{pt(Go.documentElement),$f(()=>((S,ue,Ie)=>{const Ee=Ci.ce("appload",{detail:{namespace:"web-component"}});return S.dispatchEvent(Ee),Ee})(nl))},Ue=(S,ue,Ie)=>{if(S&&S[ue])try{return S[ue](Ie)}catch(Ee){ta(Ee)}},pt=S=>S.classList.add("hydrated"),Mn=(S,ue,Ie)=>{var Ee;const Ve=S.prototype;if(ue.$members$){S.watchers&&(ue.$watchers$=S.watchers);const ot=Object.entries(ue.$members$);if(ot.map(([qe,[et]])=>{31&et||2&Ie&&32&et?Object.defineProperty(Ve,qe,{get(){return((S,ue)=>vo(this).$instanceValues$.get(ue))(0,qe)},set(yt){((S,ue,Ie,Ee)=>{const Ve=vo(S),ot=Ve.$hostElement$,qe=Ve.$instanceValues$.get(ue),et=Ve.$flags$,yt=Ve.$lazyInstance$;Ie=((S,ue)=>null==S||U(S)?S:4&ue?"false"!==S&&(""===S||!!S):2&ue?parseFloat(S):1&ue?String(S):S)(Ie,Ee.$members$[ue][0]);const Ct=Number.isNaN(qe)&&Number.isNaN(Ie);if((!(8&et)||void 0===qe)&&Ie!==qe&&!Ct&&(Ve.$instanceValues$.set(ue,Ie),yt)){if(Ee.$watchers$&&128&et){const $t=Ee.$watchers$[ue];$t&&$t.map(fi=>{try{yt[fi](Ie,qe,ue)}catch(Nn){ta(Nn,ot)}})}2==(18&et)&&Ae(Ve,!1)}})(this,qe,yt,ue)},configurable:!0,enumerable:!0}):1&Ie&&64&et&&Object.defineProperty(Ve,qe,{value(...yt){var Ct;const xt=vo(this);return null===(Ct=xt?.$onInstancePromise$)||void 0===Ct?void 0:Ct.then(()=>{var $t;return null===($t=xt.$lazyInstance$)||void 0===$t?void 0:$t[qe](...yt)})}})}),1&Ie){const qe=new Map;Ve.attributeChangedCallback=function(et,yt,Ct){Ci.jmp(()=>{var xt;const $t=qe.get(et);if(this.hasOwnProperty($t))Ct=this[$t],delete this[$t];else{if(Ve.hasOwnProperty($t)&&"number"==typeof this[$t]&&this[$t]==Ct)return;if(null==$t){const fi=vo(this),Nn=fi?.$flags$;if(Nn&&!(8&Nn)&&128&Nn&&Ct!==yt){const xi=fi.$lazyInstance$,Gt=null===(xt=ue.$watchers$)||void 0===xt?void 0:xt[et];Gt?.forEach(mr=>{null!=xi[mr]&&xi[mr].call(xi,Ct,yt,et)})}return}}this[$t]=(null!==Ct||"boolean"!=typeof this[$t])&&Ct})},S.observedAttributes=Array.from(new Set([...Object.keys(null!==(Ee=ue.$watchers$)&&void 0!==Ee?Ee:{}),...ot.filter(([et,yt])=>15&yt[0]).map(([et,yt])=>{var Ct;const xt=yt[1]||et;return qe.set(xt,et),512&yt[0]&&(null===(Ct=ue.$attrsToReflect$)||void 0===Ct||Ct.push([et,xt])),xt})]))}}return S},hn=function(){var S=(0,y.Z)(function*(ue,Ie,Ee,Ve){let ot;if(!(32&Ie.$flags$)){if(Ie.$flags$|=32,Ee.$lazyBundleId$){if(ot=On(Ee),ot.then){const xt=()=>{};ot=yield ot,xt()}ot.isProxied||(Ee.$watchers$=ot.watchers,Mn(ot,Ee,2),ot.isProxied=!0);const Ct=()=>{};Ie.$flags$|=8;try{new ot(Ie)}catch(xt){ta(xt)}Ie.$flags$&=-9,Ie.$flags$|=128,Ct()}else ot=ue.constructor,customElements.whenDefined(Ee.$tagName$).then(()=>Ie.$flags$|=128);if(ot.style){let Ct=ot.style;const xt=E(Ee);if(!tl.has(xt)){const $t=()=>{};((S,ue,Ie)=>{let Ee=tl.get(S);hi&&Ie?(Ee=Ee||new CSSStyleSheet,"string"==typeof Ee?Ee=ue:Ee.replaceSync(ue)):Ee=ue,tl.set(S,Ee)})(xt,Ct,!!(1&Ee.$flags$)),$t()}}}const qe=Ie.$ancestorComponent$,et=()=>Ae(Ie,!0);qe&&qe["s-rc"]?qe["s-rc"].push(et):et()});return function(Ie,Ee,Ve,ot){return S.apply(this,arguments)}}(),wi=S=>{Ue(S,"disconnectedCallback")},pr=function(){var S=(0,y.Z)(function*(ue){if(!(1&Ci.$flags$)){const Ie=vo(ue);Ie.$rmListeners$&&(Ie.$rmListeners$.map(Ee=>Ee()),Ie.$rmListeners$=void 0),Ie?.$lazyInstance$?wi(Ie.$lazyInstance$):Ie?.$onReadyPromise$&&Ie.$onReadyPromise$.then(()=>wi(Ie.$lazyInstance$))}});return function(Ie){return S.apply(this,arguments)}}(),ni=(S,ue={})=>{var Ie;const Ve=[],ot=ue.exclude||[],qe=nl.customElements,et=Go.head,yt=et.querySelector("meta[charset]"),Ct=Go.createElement("style"),xt=[];let $t,fi=!0;Object.assign(Ci,ue),Ci.$resourcesUrl$=new URL(ue.resourcesUrl||"./",Go.baseURI).href;let Nn=!1;if(S.map(xi=>{xi[1].map(Gt=>{var mr;const Or={$flags$:Gt[0],$tagName$:Gt[1],$members$:Gt[2],$listeners$:Gt[3]};4&Or.$flags$&&(Nn=!0),Or.$members$=Gt[2],Or.$listeners$=Gt[3],Or.$attrsToReflect$=[],Or.$watchers$=null!==(mr=Gt[4])&&void 0!==mr?mr:{};const vn=Or.$tagName$,ay=class extends HTMLElement{constructor(li){super(li),ea(li=this,Or),1&Or.$flags$&&li.attachShadow({mode:"open"})}connectedCallback(){$t&&(clearTimeout($t),$t=null),fi?xt.push(this):Ci.jmp(()=>(S=>{if(!(1&Ci.$flags$)){const ue=vo(S),Ie=ue.$cmpMeta$,Ee=()=>{};if(1&ue.$flags$)ds(S,ue,Ie.$listeners$),ue?.$lazyInstance$||ue?.$onReadyPromise$&&ue.$onReadyPromise$.then(()=>{});else{ue.$flags$|=1;{let Ve=S;for(;Ve=Ve.parentNode||Ve.host;)if(Ve["s-p"]){w(ue,ue.$ancestorComponent$=Ve);break}}Ie.$members$&&Object.entries(Ie.$members$).map(([Ve,[ot]])=>{if(31&ot&&S.hasOwnProperty(Ve)){const qe=S[Ve];delete S[Ve],S[Ve]=qe}}),hn(S,ue,Ie)}Ee()}})(this))}disconnectedCallback(){Ci.jmp(()=>pr(this))}componentOnReady(){return vo(this).$onReadyPromise$}};Or.$lazyBundleId$=xi[0],!ot.includes(vn)&&!qe.get(vn)&&(Ve.push(vn),qe.define(vn,Mn(ay,Or,1)))})}),Ve.length>0&&(Nn&&(Ct.textContent+=V),Ct.textContent+=Ve+"{visibility:hidden}.hydrated{visibility:inherit}",Ct.innerHTML.length)){Ct.setAttribute("data-styles","");const xi=null!==(Ie=Ci.$nonce$)&&void 0!==Ie?Ie:X(Go);null!=xi&&Ct.setAttribute("nonce",xi),et.insertBefore(Ct,yt?yt.nextSibling:et.firstChild)}fi=!1,xt.length?xt.map(xi=>xi.connectedCallback()):Ci.jmp(()=>$t=setTimeout(Te,30))},qr=(S,ue)=>ue,ds=(S,ue,Ie,Ee)=>{Ie&&Ie.map(([Ve,ot,qe])=>{const et=rc(S,Ve),yt=_o(ue,qe),Ct=ka(Ve);Ci.ael(et,ot,yt,Ct),(ue.$rmListeners$=ue.$rmListeners$||[]).push(()=>Ci.rel(et,ot,yt,Ct))})},_o=(S,ue)=>Ie=>{try{256&S.$flags$?S.$lazyInstance$[ue](Ie):(S.$queuedListeners$=S.$queuedListeners$||[]).push([ue,Ie])}catch(Ee){ta(Ee)}},rc=(S,ue)=>8&ue?nl:S,ka=S=>vt?{passive:0!=(1&S),capture:0!=(2&S)}:0!=(2&S),el=new WeakMap,vo=S=>el.get(S),Ia=(S,ue)=>el.set(ue.$lazyInstance$=S,ue),ea=(S,ue)=>{const Ie={$flags$:0,$hostElement$:S,$cmpMeta$:ue,$instanceValues$:new Map};return Ie.$onInstancePromise$=new Promise(Ee=>Ie.$onInstanceResolve$=Ee),Ie.$onReadyPromise$=new Promise(Ee=>Ie.$onReadyResolve$=Ee),S["s-p"]=[],S["s-rc"]=[],ds(S,Ie,ue.$listeners$),el.set(S,Ie)},gr=(S,ue)=>ue in S,ta=(S,ue)=>(0,console.error)(S,ue),ac=new Map,On=(S,ue,Ie)=>{const Ee=S.$tagName$.replace(/-/g,"_"),Ve=S.$lazyBundleId$,ot=ac.get(Ve);if(ot)return ot[Ee];if(!Ie||!BUILD.hotModuleReplacement){const qe=et=>(ac.set(Ve,et),et[Ee]);if("read-along"===Ve)return O.e(154).then(O.bind(O,9154)).then(qe,ta)}return O(8718)(`./${Ve}.entry.js`).then(qe=>(ac.set(Ve,qe),qe[Ee]),ta)},tl=new Map,nl=typeof window<"u"?window:{},Go=nl.document||{head:{}},Ci={$flags$:0,$resourcesUrl$:"",jmp:S=>S(),raf:S=>requestAnimationFrame(S),ael:(S,ue,Ie,Ee)=>S.addEventListener(ue,Ie,Ee),rel:(S,ue,Ie,Ee)=>S.removeEventListener(ue,Ie,Ee),ce:(S,ue)=>new CustomEvent(S,ue)},vt=(()=>{let S=!1;try{Go.addEventListener("e",null,Object.defineProperty({},"passive",{get(){S=!0}}))}catch{}return S})(),hi=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),Qu=[],$n=[],Pn=(S,ue)=>Ie=>{S.push(Ie),j||(j=!0,ue&&4&Ci.$flags$?$f(Bt):Ci.raf(Bt))},zf=S=>{for(let ue=0;ue{zf(Qu),zf($n),(j=Qu.length>0)&&Ci.raf(Bt)},$f=S=>Promise.resolve(void 0).then(S),Vf=Pn($n,!0)},7044:(C,de,O)=>{"use strict";var y=O(5861);let M=null,I=1;const L=Symbol("SIGNAL");function j(t){const n=M;return M=t,n}function R(t){if((!me(t)||t.dirty)&&(t.dirty||t.lastCleanEpoch!==I)){if(!t.producerMustRecompute(t)&&!te(t))return t.dirty=!1,void(t.lastCleanEpoch=I);t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=I}}function te(t){B(t);for(let n=0;n0}function B(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}let Z=null;function Ae(t){return"function"==typeof t}function ke(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const re=ke(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,o)=>`${o+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function ne(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class ge{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const r of e)r.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(Ae(i))try{i()}catch(r){n=r instanceof re?r.errors:[r]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const r of o)try{Te(r)}catch(a){n=n??[],a instanceof re?n=[...n,...a.errors]:n.push(a)}}if(n)throw new re(n)}}add(n){var e;if(n&&n!==this)if(this.closed)Te(n);else{if(n instanceof ge){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&ne(e,n)}remove(n){const{_finalizers:e}=this;e&&ne(e,n),n instanceof ge&&n._removeParent(this)}}ge.EMPTY=(()=>{const t=new ge;return t.closed=!0,t})();const ze=ge.EMPTY;function Ge(t){return t instanceof ge||t&&"closed"in t&&Ae(t.remove)&&Ae(t.add)&&Ae(t.unsubscribe)}function Te(t){Ae(t)?t():t.unsubscribe()}const Ue={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},pt={setTimeout(t,n,...e){const{delegate:i}=pt;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=pt;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function tt(t){pt.setTimeout(()=>{const{onUnhandledError:n}=Ue;if(!n)throw t;n(t)})}function kt(){}const Mn=Ir("C",void 0,void 0);function Ir(t,n,e){return{kind:t,value:n,error:e}}let wi=null;function pr(t){if(Ue.useDeprecatedSynchronousErrorHandling){const n=!wi;if(n&&(wi={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=wi;if(wi=null,e)throw i}}else t()}class qr extends ge{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Ge(n)&&n.add(this)):this.destination=Ia}static create(n,e,i){return new ka(n,e,i)}next(n){this.isStopped?vo(function ao(t){return Ir("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?vo(function hn(t){return Ir("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?vo(Mn,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ds=Function.prototype.bind;function _o(t,n){return ds.call(t,n)}class rc{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){qs(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){qs(i)}else qs(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){qs(e)}}}class ka extends qr{constructor(n,e,i){let o;if(super(),Ae(n)||!n)o={next:n??void 0,error:e??void 0,complete:i??void 0};else{let r;this&&Ue.useDeprecatedNextContext?(r=Object.create(n),r.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&_o(n.next,r),error:n.error&&_o(n.error,r),complete:n.complete&&_o(n.complete,r)}):o=n}this.destination=new rc(o)}}function qs(t){Ue.useDeprecatedSynchronousErrorHandling?function ni(t){Ue.useDeprecatedSynchronousErrorHandling&&wi&&(wi.errorThrown=!0,wi.error=t)}(t):tt(t)}function vo(t,n){const{onStoppedNotification:e}=Ue;e&&pt.setTimeout(()=>e(t,n))}const Ia={closed:!0,next:kt,error:function el(t){throw t},complete:kt},ea="function"==typeof Symbol&&Symbol.observable||"@@observable";function gr(t){return t}function ac(t){return 0===t.length?gr:1===t.length?t[0]:function(e){return t.reduce((i,o)=>o(i),e)}}let On=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,o){const r=function Go(t){return t&&t instanceof qr||function nl(t){return t&&Ae(t.next)&&Ae(t.error)&&Ae(t.complete)}(t)&&Ge(t)}(e)?e:new ka(e,i,o);return pr(()=>{const{operator:a,source:s}=this;r.add(a?a.call(r,s):s?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=tl(i))((o,r)=>{const a=new ka({next:s=>{try{e(s)}catch(l){r(l),a.unsubscribe()}},error:r,complete:o});this.subscribe(a)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[ea](){return this}pipe(...e){return ac(e)(this)}toPromise(e){return new(e=tl(e))((i,o)=>{let r;this.subscribe(a=>r=a,a=>o(a),()=>i(r))})}}return t.create=n=>new t(n),t})();function tl(t){var n;return null!==(n=t??Ue.Promise)&&void 0!==n?n:Promise}const Ci=ke(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let vt=(()=>{class t extends On{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new Yf(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new Ci}next(e){pr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){pr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){pr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:o,observers:r}=this;return i||o?ze:(this.currentObservers=null,r.push(e),new ge(()=>{this.currentObservers=null,ne(r,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:o,isStopped:r}=this;i?e.error(o):r&&e.complete()}asObservable(){const e=new On;return e.source=this,e}}return t.create=(n,e)=>new Yf(n,e),t})();class Yf extends vt{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:ze}}class hi extends vt{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function Qu(t){return Ae(t?.lift)}function $n(t){return n=>{if(Qu(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Pn(t,n,e,i,o){return new zf(t,n,e,i,o)}class zf extends qr{constructor(n,e,i,o,r,a){super(n),this.onFinalize=r,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){n.error(l)}}:super._next,this._error=o?function(s){try{o(s)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function Bt(t,n){return $n((e,i)=>{let o=0;e.subscribe(Pn(i,r=>{i.next(t.call(n,r,o++))}))})}const Vf="https://g.co/ng/security#xss";class S extends Error{constructor(n,e){super(function ue(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function et(t){return{toString:t}.toString()}const Ct="__parameters__";function Nn(t,n,e){return et(()=>{const i=function fi(t){return function(...e){if(t){const i=t(...e);for(const o in i)this[o]=i[o]}}}(n);function o(...r){if(this instanceof o)return i.apply(this,r),this;const a=new o(...r);return s.annotation=a,s;function s(l,c,u){const d=l.hasOwnProperty(Ct)?l[Ct]:Object.defineProperty(l,Ct,{value:[]})[Ct];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(a),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}const Gt=globalThis;function vn(t){for(let n in t)if(t[n]===vn)return n;throw Error("Could not find renamed property on target object.")}function ay(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function li(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(li).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function sy(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const qj=vn({__forward_ref__:vn});function Dn(t){return t.__forward_ref__=Dn,t.toString=function(){return li(this())},t}function Vt(t){return Zf(t)?t():t}function Zf(t){return"function"==typeof t&&t.hasOwnProperty(qj)&&t.__forward_ref__===Dn}function hs(t,n,e){t!=n&&function Ht(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(e,t,n,"==")}function $e(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function en(t){return{providers:t.providers||[],imports:t.imports||[]}}function Gf(t){return Ax(t,Wf)||Ax(t,kx)}function Ax(t,n){return t.hasOwnProperty(n)?t[n]:null}function Uf(t){return t&&(t.hasOwnProperty(ly)||t.hasOwnProperty(r3))?t[ly]:null}const Wf=vn({\u0275prov:vn}),ly=vn({\u0275inj:vn}),kx=vn({ngInjectableDef:vn}),r3=vn({ngInjectorDef:vn});class He{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=$e({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function fy(t){return t&&!!t.\u0275providers}const Ku=vn({\u0275cmp:vn}),py=vn({\u0275dir:vn}),gy=vn({\u0275pipe:vn}),Ox=vn({\u0275mod:vn}),Oa=vn({\u0275fac:vn}),qu=vn({__NG_ELEMENT_ID__:vn}),Rx=vn({__NG_ENV_ID__:vn});function Jt(t){return"string"==typeof t?t:null==t?"":String(t)}function my(t,n){throw new S(-201,!1)}var fn=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(fn||{});let by;function Px(){return by}function Po(t){const n=by;return by=t,n}function Nx(t,n,e){const i=Gf(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&fn.Optional?null:void 0!==n?n:void my()}const ed={},yy="__NG_DI_FLAG__",Xf="ngTempTokenPath",d3=/\n/gm,Fx="__source";let sc;function fs(t){const n=sc;return sc=t,n}function p3(t,n=fn.Default){if(void 0===sc)throw new S(-203,!1);return null===sc?Nx(t,void 0,n):sc.get(t,n&fn.Optional?null:void 0,n)}function Me(t,n=fn.Default){return(Px()||p3)(Vt(t),n)}function Pe(t,n=fn.Default){return Me(t,Jf(n))}function Jf(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function _y(t){const n=[];for(let e=0;eArray.isArray(e)?cc(e,n):n(e))}function jx(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Qf(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Xo(t,n,e){let i=uc(t,n);return i>=0?t[1|i]=e:(i=~i,function Bx(t,n,e,i){let o=t.length;if(o==n)t.push(e,i);else if(1===o)t.push(i,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>n;)t[o]=t[o-2],o--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function wy(t,n){const e=uc(t,n);if(e>=0)return t[1|e]}function uc(t,n){return function Hx(t,n,e){let i=0,o=t.length>>e;for(;o!==i;){const r=i+(o-i>>1),a=t[r<n?o=r:i=r+1}return~(o<n){a=r-1;break}}}for(;r-1){let r;for(;++or?"":o[u+1].toLowerCase(),2&i&&c!==d){if(Pr(i))return!1;a=!0}}}}else{if(!a&&!Pr(i)&&!Pr(l))return!1;if(a&&Pr(l))continue;a=!1,i=l|1&i}}return Pr(i)||a}function Pr(t){return 0==(1&t)}function E3(t,n,e,i){if(null===n)return-1;let o=0;if(i||!e){let r=!1;for(;o-1)for(e++;e0?'="'+s+'"':"")+"]"}else 8&i?o+="."+a:4&i&&(o+=" "+a);else""!==o&&!Pr(a)&&(n+=Ux(r,o),o=""),i=a,r=r||!Pr(i);e++}return""!==o&&(n+=Ux(r,o)),n}function pn(t){return et(()=>{const n=Xx(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===ep.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Rr.Emulated,styles:t.styles||xn,_:null,schemas:t.schemas||null,tView:null,id:""};Jx(e);const i=t.dependencies;return e.directiveDefs=tp(i,!1),e.pipeDefs=tp(i,!0),e.id=function L3(t){let n=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const o of e)n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(e),e})}function P3(t){return dn(t)||ji(t)}function N3(t){return null!==t}function nn(t){return et(()=>({type:t.type,bootstrap:t.bootstrap||xn,declarations:t.declarations||xn,imports:t.imports||xn,exports:t.exports||xn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Wx(t,n){if(null==t)return na;const e={};for(const i in t)if(t.hasOwnProperty(i)){const o=t[i];let r,a,s=Le.None;Array.isArray(o)?(s=o[0],r=o[1],a=o[2]??r):(r=o,a=o),n?(e[r]=s!==Le.None?[i,s]:i,n[r]=a):e[r]=i}return e}function gt(t){return et(()=>{const n=Xx(t);return Jx(n),n})}function Fo(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function dn(t){return t[Ku]||null}function ji(t){return t[py]||null}function Qi(t){return t[gy]||null}function so(t,n){const e=t[Ox]||null;if(!e&&!0===n)throw new Error(`Type ${li(t)} does not have '\u0275mod' property.`);return e}function Xx(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:t.inputs||na,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||xn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Wx(t.inputs,n),outputs:Wx(t.outputs),debugInfo:null}}function Jx(t){t.features?.forEach(n=>n(t))}function tp(t,n){if(!t)return null;const e=n?Qi:P3;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(N3)}function dc(t){return{\u0275providers:t}}function j3(...t){return{\u0275providers:Dy(0,t),\u0275fromNgModule:!0}}function Dy(t,...n){const e=[],i=new Set;let o;const r=a=>{e.push(a)};return cc(n,a=>{const s=a;np(s,r,[],i)&&(o||=[],o.push(s))}),void 0!==o&&Qx(o,r),e}function Qx(t,n){for(let e=0;e{n(r,i)})}}function np(t,n,e,i){if(!(t=Vt(t)))return!1;let o=null,r=Uf(t);const a=!r&&dn(t);if(r||a){if(a&&!a.standalone)return!1;o=t}else{const l=t.ngModule;if(r=Uf(l),!r)return!1;o=l}const s=i.has(o);if(a){if(s)return!1;if(i.add(o),a.dependencies){const l="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const c of l)np(c,n,e,i)}}else{if(!r)return!1;{if(null!=r.imports&&!s){let c;i.add(o);try{cc(r.imports,u=>{np(u,n,e,i)&&(c||=[],c.push(u))})}finally{}void 0!==c&&Qx(c,n)}if(!s){const c=il(o)||(()=>new o);n({provide:o,useFactory:c,deps:xn},o),n({provide:Cy,useValue:o,multi:!0},o),n({provide:ol,useValue:()=>Me(o),multi:!0},o)}const l=r.providers;if(null!=l&&!s){const c=t;Ey(l,u=>{n(u,c)})}}}return o!==t&&void 0!==t.providers}function Ey(t,n){for(let e of t)fy(e)&&(e=e.\u0275providers),Array.isArray(e)?Ey(e,n):n(e)}const B3=vn({provide:String,useValue:vn});function Ty(t){return null!==t&&"object"==typeof t&&B3 in t}function rl(t){return"function"==typeof t}const My=new He(""),ip={},Y3={};let Ay;function op(){return void 0===Ay&&(Ay=new qf),Ay}class Lo{}class hc extends Lo{get destroyed(){return this._destroyed}constructor(n,e,i,o){super(),this.parent=e,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Iy(n,a=>this.processProvider(a)),this.records.set(Yx,fc(void 0,this)),o.has("environment")&&this.records.set(Lo,fc(void 0,this));const r=this.records.get(My);null!=r&&"string"==typeof r.value&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(Cy,xn,fn.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=j(null);try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const e=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),j(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const e=fs(this),i=Po(void 0);try{return n()}finally{fs(e),Po(i)}}get(n,e=ed,i=fn.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Rx))return n[Rx](this);i=Jf(i);const r=fs(this),a=Po(void 0);try{if(!(i&fn.SkipSelf)){let l=this.records.get(n);if(void 0===l){const c=function G3(t){return"function"==typeof t||"object"==typeof t&&t instanceof He}(n)&&Gf(n);l=c&&this.injectableDefInScope(c)?fc(ky(n),ip):null,this.records.set(n,l)}if(null!=l)return this.hydrate(n,l)}return(i&fn.Self?op():this.parent).get(n,e=i&fn.Optional&&e===ed?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Xf]=s[Xf]||[]).unshift(li(n)),r)throw s;return function m3(t,n,e,i){const o=t[Xf];throw n[Fx]&&o.unshift(n[Fx]),t.message=function b3(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let o=li(n);if(Array.isArray(n))o=n.map(li).join(" -> ");else if("object"==typeof n){let r=[];for(let a in n)if(n.hasOwnProperty(a)){let s=n[a];r.push(a+":"+("string"==typeof s?JSON.stringify(s):li(s)))}o=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${o}]: ${t.replace(d3,"\n ")}`}("\n"+t.message,o,e,i),t.ngTokenPath=o,t[Xf]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{Po(a),fs(r)}}resolveInjectorInitializers(){const n=j(null),e=fs(this),i=Po(void 0);try{const r=this.get(ol,xn,fn.Self);for(const a of r)a()}finally{fs(e),Po(i),j(n)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(li(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new S(205,!1)}processProvider(n){let e=rl(n=Vt(n))?n:Vt(n&&n.provide);const i=function $3(t){return Ty(t)?fc(void 0,t.useValue):fc(eS(t),ip)}(n);if(!rl(n)&&!0===n.multi){let o=this.records.get(e);o||(o=fc(void 0,ip,!0),o.factory=()=>_y(o.multi),this.records.set(e,o)),e=n,o.multi.push(n)}this.records.set(e,i)}hydrate(n,e){const i=j(null);try{return e.value===ip&&(e.value=Y3,e.value=e.factory()),"object"==typeof e.value&&e.value&&function Z3(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{j(i)}}injectableDefInScope(n){if(!n.providedIn)return!1;const e=Vt(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){const e=this._onDestroyHooks.indexOf(n);-1!==e&&this._onDestroyHooks.splice(e,1)}}function ky(t){const n=Gf(t),e=null!==n?n.factory:il(t);if(null!==e)return e;if(t instanceof He)throw new S(204,!1);if(t instanceof Function)return function z3(t){if(t.length>0)throw new S(204,!1);const e=function o3(t){return t&&(t[Wf]||t[kx])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new S(204,!1)}function eS(t,n,e){let i;if(rl(t)){const o=Vt(t);return il(o)||ky(o)}if(Ty(t))i=()=>Vt(t.useValue);else if(function qx(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(..._y(t.deps||[]));else if(function Kx(t){return!(!t||!t.useExisting)}(t))i=()=>Me(Vt(t.useExisting));else{const o=Vt(t&&(t.useClass||t.provide));if(!function V3(t){return!!t.deps}(t))return il(o)||ky(o);i=()=>new o(..._y(t.deps))}return i}function fc(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function Iy(t,n){for(const e of t)Array.isArray(e)?Iy(e,n):e&&fy(e)?Iy(e.\u0275providers,n):n(e)}function ia(t,n){t instanceof hc&&t.assertNotDestroyed();const i=fs(t),o=Po(void 0);try{return n()}finally{fs(i),Po(o)}}function tS(){return void 0!==Px()||null!=function f3(){return sc}()}const ci=0,nt=1,It=2,Si=3,Nr=4,lo=5,Jo=6,gc=7,Xn=8,Ki=9,Fr=10,Ut=11,od=12,iS=13,mc=14,pi=15,rd=16,bc=17,Ra=18,ad=19,oS=20,ms=21,sp=22,al=23,Qt=25,Ry=1,oa=7,yc=9,Di=10;var Py=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Py||{});function co(t){return Array.isArray(t)&&"object"==typeof t[Ry]}function uo(t){return Array.isArray(t)&&!0===t[Ry]}function Ny(t){return 0!=(4&t.flags)}function sl(t){return t.componentOffset>-1}function cp(t){return 1==(1&t.flags)}function Lr(t){return!!t.template}function Fy(t){return 0!=(512&t[It])}class r4{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function lS(t,n,e,i){null!==n?n.applyValueToInputSignal(n,i):t[e]=i}function Gi(){return cS}function cS(t){return t.type.prototype.ngOnChanges&&(t.setInput=s4),a4}function a4(){const t=dS(this),n=t?.current;if(n){const e=t.previous;if(e===na)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function s4(t,n,e,i,o){const r=this.declaredInputs[i],a=dS(t)||function l4(t,n){return t[uS]=n}(t,{previous:na,current:null}),s=a.current||(a.current={}),l=a.previous,c=l[r];s[r]=new r4(c&&c.currentValue,e,l===na),lS(t,n,o,e)}Gi.ngInherit=!0;const uS="__ngSimpleChanges__";function dS(t){return t[uS]||null}const ra=function(t,n,e){},hS="svg";let pS=!1;function Bn(t){for(;Array.isArray(t);)t=t[ci];return t}function ld(t,n){return Bn(n[t])}function wo(t,n){return Bn(n[t.index])}function cd(t,n){return t.data[n]}function _c(t,n){return t[n]}function Qo(t,n){const e=n[t];return co(e)?e:e[ci]}function Yy(t){return 128==(128&t[It])}function aa(t,n){return null==n?null:t[n]}function gS(t){t[bc]=0}function p4(t){1024&t[It]||(t[It]|=1024,Yy(t)&&ud(t))}function zy(t){return!!(9216&t[It]||t[al]?.dirty)}function $y(t){t[Fr].changeDetectionScheduler?.notify(1),zy(t)?ud(t):64&t[It]&&(function u4(){return pS}()?(t[It]|=1024,ud(t)):t[Fr].changeDetectionScheduler?.notify())}function ud(t){t[Fr].changeDetectionScheduler?.notify();let n=ll(t);for(;null!==n&&!(8192&n[It])&&(n[It]|=8192,Yy(n));)n=ll(n)}function up(t,n){if(256==(256&t[It]))throw new S(911,!1);null===t[ms]&&(t[ms]=[]),t[ms].push(n)}function ll(t){const n=t[Si];return uo(n)?n[Si]:n}const Wt={lFrame:DS(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function yS(){return Wt.bindingsEnabled}function vc(){return null!==Wt.skipHydrationRootTNode}function je(){return Wt.lFrame.lView}function gn(){return Wt.lFrame.tView}function Yt(t){return Wt.lFrame.contextLView=t,t[Xn]}function zt(t){return Wt.lFrame.contextLView=null,t}function Fn(){let t=_S();for(;null!==t&&64===t.type;)t=t.parent;return t}function _S(){return Wt.lFrame.currentTNode}function dd(){const t=Wt.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function sa(t,n){const e=Wt.lFrame;e.currentTNode=t,e.isParent=n}function Zy(){return Wt.lFrame.isParent}function Gy(){Wt.lFrame.isParent=!1}function Co(){const t=Wt.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function jr(){return Wt.lFrame.bindingIndex++}function Na(t){const n=Wt.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function CS(t){Wt.lFrame.inI18n=t}function D4(t,n){const e=Wt.lFrame;e.bindingIndex=e.bindingRootIndex=t,Uy(n)}function Uy(t){Wt.lFrame.currentDirectiveIndex=t}function Wy(t){const n=Wt.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function Xy(){return Wt.lFrame.currentQueryIndex}function dp(t){Wt.lFrame.currentQueryIndex=t}function T4(t){const n=t[nt];return 2===n.type?n.declTNode:1===n.type?t[lo]:null}function xS(t,n,e){if(e&fn.SkipSelf){let o=n,r=t;for(;!(o=o.parent,null!==o||e&fn.Host||(o=T4(r),null===o||(r=r[mc],10&o.type))););if(null===o)return!1;n=o,t=r}const i=Wt.lFrame=SS();return i.currentTNode=n,i.lView=t,!0}function Jy(t){const n=SS(),e=t[nt];Wt.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function SS(){const t=Wt.lFrame,n=null===t?null:t.child;return null===n?DS(t):n}function DS(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function ES(){const t=Wt.lFrame;return Wt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const TS=ES;function Qy(){const t=ES();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ho(){return Wt.lFrame.selectedIndex}function cl(t){Wt.lFrame.selectedIndex=t}function Jn(){const t=Wt.lFrame;return cd(t.tView,t.selectedIndex)}function hd(){Wt.lFrame.currentNamespace=hS}let AS=!0;function fd(){return AS}function la(t){AS=t}function hp(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[l]<0&&(t[bc]+=65536),(s>14>16&&(3&t[It])===n&&(t[It]+=16384,IS(s,r)):IS(s,r)}const wc=-1;class pd{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function e_(t){return t!==wc}function gd(t){return 32767&t}function md(t,n){let e=function j4(t){return t>>16}(t),i=n;for(;e>0;)i=i[mc],e--;return i}let t_=!0;function gp(t){const n=t_;return t_=t,n}const OS=255,RS=5;let B4=0;const ca={};function mp(t,n){const e=PS(t,n);if(-1!==e)return e;const i=n[nt];i.firstCreatePass&&(t.injectorIndex=n.length,n_(i.data,t),n_(n,null),n_(i.blueprint,null));const o=bp(t,n),r=t.injectorIndex;if(e_(o)){const a=gd(o),s=md(o,n),l=s[nt].data;for(let c=0;c<8;c++)n[r+c]=s[a+c]|l[a+c]}return n[r+8]=o,r}function n_(t,n){t.push(0,0,0,0,0,0,0,0,n)}function PS(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function bp(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,o=n;for(;null!==o;){if(i=YS(o),null===i)return wc;if(e++,o=o[mc],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return wc}function i_(t,n,e){!function H4(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(qu)&&(i=e[qu]),null==i&&(i=e[qu]=B4++);const o=i&OS;n.data[t+(o>>RS)]|=1<=0?n&OS:V4:n}(e);if("function"==typeof r){if(!xS(n,t,i))return i&fn.Host?NS(o,0,i):FS(n,e,i,o);try{let a;if(a=r(i),null!=a||i&fn.Optional)return a;my()}finally{TS()}}else if("number"==typeof r){let a=null,s=PS(t,n),l=wc,c=i&fn.Host?n[pi][lo]:null;for((-1===s||i&fn.SkipSelf)&&(l=-1===s?bp(t,n):n[s+8],l!==wc&&HS(i,!1)?(a=n[nt],s=gd(l),n=md(l,n)):s=-1);-1!==s;){const u=n[nt];if(BS(r,s,u.data)){const d=z4(s,n,e,a,i,c);if(d!==ca)return d}l=n[s+8],l!==wc&&HS(i,n[nt].data[s+8]===c)&&BS(r,s,n)?(a=u,s=gd(l),n=md(l,n)):s=-1}}return o}function z4(t,n,e,i,o,r){const a=n[nt],s=a.data[t+8],u=yp(s,a,e,null==i?sl(s)&&t_:i!=a&&0!=(3&s.type),o&fn.Host&&r===s);return null!==u?ul(n,a,u,s):ca}function yp(t,n,e,i,o){const r=t.providerIndexes,a=n.data,s=1048575&r,l=t.directiveStart,u=r>>20,h=o?s+u:t.directiveEnd;for(let p=i?s:s+u;p=l&&g.type===e)return p}if(o){const p=a[l];if(p&&Lr(p)&&p.type===e)return l}return null}function ul(t,n,e,i){let o=t[e];const r=n.data;if(function P4(t){return t instanceof pd}(o)){const a=o;a.resolving&&function l3(t,n){throw n&&n.join(" > "),new S(-200,t)}(function An(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Jt(t)}(r[e]));const s=gp(a.canSeeViewProviders);a.resolving=!0;const c=a.injectImpl?Po(a.injectImpl):null;xS(t,i,fn.Default);try{o=t[e]=a.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function O4(t,n,e){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=n.type.prototype;if(i){const a=cS(n);(e.preOrderHooks??=[]).push(t,a),(e.preOrderCheckHooks??=[]).push(t,a)}o&&(e.preOrderHooks??=[]).push(0-t,o),r&&((e.preOrderHooks??=[]).push(t,r),(e.preOrderCheckHooks??=[]).push(t,r))}(e,r[e],n)}finally{null!==c&&Po(c),gp(s),a.resolving=!1,TS()}}return o}function BS(t,n,e){return!!(e[n+(t>>RS)]&1<{const n=t.prototype.constructor,e=n[Oa]||o_(n),i=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==i;){const r=o[Oa]||o_(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function o_(t){return Zf(t)?()=>{const n=o_(Vt(t));return n&&n()}:il(t)}function YS(t){const n=t[nt],e=n.type;return 2===e?n.declTNode:1===e?t[lo]:null}function ua(t){return function Y4(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let o=0;for(;o{class t{static{this.THROW_IF_NOT_FOUND=ed}static{this.NULL=new qf}static create(e,i){if(Array.isArray(e))return GS({name:""},i,e,"");{const o=e.name??"";return GS({name:o},e.parent,e.providers,o)}}static{this.\u0275prov=$e({token:t,providedIn:"any",factory:()=>Me(Yx)})}static{this.__NG_ELEMENT_ID__=-1}}return t})();function a_(t){return t.ngOriginalError}class Ko{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&a_(n);for(;e&&a_(e);)e=a_(e);return e||null}}const XS=new He("",{providedIn:"root",factory:()=>Pe(Ko).handleError.bind(void 0)});let Sc=(()=>{class t{static{this.__NG_ELEMENT_ID__=e8}static{this.__NG_ENV_ID__=e=>e}}return t})();class q4 extends Sc{constructor(n){super(),this._lView=n}onDestroy(n){return up(this._lView,n),()=>function Vy(t,n){if(null===t[ms])return;const e=t[ms].indexOf(n);-1!==e&&t[ms].splice(e,1)}(this._lView,n)}}function e8(){return new q4(je())}function t8(){return Dc(Fn(),je())}function Dc(t,n){return new Zt(wo(t,n))}let Zt=(()=>{class t{constructor(e){this.nativeElement=e}static{this.__NG_ELEMENT_ID__=t8}}return t})();function QS(t){return t instanceof Zt?t.nativeElement:t}function s_(t){return n=>{setTimeout(t,void 0,n)}}const Ot=class n8 extends vt{constructor(n=!1){super(),this.destroyRef=void 0,this.__isAsync=n,tS()&&(this.destroyRef=Pe(Sc,{optional:!0})??void 0)}emit(n){const e=j(null);try{super.next(n)}finally{j(e)}}subscribe(n,e,i){let o=n,r=e||(()=>null),a=i;if(n&&"object"==typeof n){const l=n;o=l.next?.bind(l),r=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(r=s_(r),o&&(o=s_(o)),a&&(a=s_(a)));const s=super.subscribe({next:o,error:r,complete:a});return n instanceof ge&&n.add(s),s}};function i8(){return this._results[Symbol.iterator]()}class Fa{get changes(){return this._changes??=new Ot}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const e=Fa.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=i8)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){this.dirty=!1;const i=function No(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function w3(t,n,e){if(t.length!==n.length)return!1;for(let i=0;iD8}),D8="ng",bD=new He(""),La=new He("",{providedIn:"platform",factory:()=>"unknown"}),xo=new He(""),h_=new He("",{providedIn:"root",factory:()=>bs().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let yD=()=>null;function v_(t,n,e=!1){return yD(t,n,e)}const xD=new He("",{providedIn:"root",factory:()=>!1});let kp,Ip;function Mc(t){return function S_(){if(void 0===kp&&(kp=null,Gt.trustedTypes))try{kp=Gt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return kp}()?.createHTML(t)||t}function D_(){if(void 0===Ip&&(Ip=null,Gt.trustedTypes))try{Ip=Gt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ip}function DD(t){return D_()?.createHTML(t)||t}function TD(t){return D_()?.createScriptURL(t)||t}class dl{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Vf})`}}class B8 extends dl{getTypeName(){return"HTML"}}class H8 extends dl{getTypeName(){return"Style"}}class Y8 extends dl{getTypeName(){return"Script"}}class z8 extends dl{getTypeName(){return"URL"}}class $8 extends dl{getTypeName(){return"ResourceURL"}}function qo(t){return t instanceof dl?t.changingThisBreaksApplicationSecurity:t}function da(t,n){const e=function V8(t){return t instanceof dl&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${Vf})`)}return e===n}function MD(t){const n=new Q8(t);return function K8(){try{return!!(new window.DOMParser).parseFromString(Mc(""),"text/html")}catch{return!1}}()?new J8(n):n}class J8{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(Mc(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class Q8{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=Mc(n),e}}const q8=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Op(t){return(t=String(t)).match(q8)?t:"unsafe:"+t}function ja(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function xd(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const AD=ja("area,br,col,hr,img,wbr"),kD=ja("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ID=ja("rp,rt"),E_=xd(AD,xd(kD,ja("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),xd(ID,ja("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),xd(ID,kD)),T_=ja("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),OD=xd(T_,ja("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ja("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),e5=ja("script,style,template");class t5{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0,o=[];for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)o.push(e),e=o5(e);else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=i5(e);if(r){e=r;break}e=o.pop()}return this.buf.join("")}startElement(n){const e=RD(n).toLowerCase();if(!E_.hasOwnProperty(e))return this.sanitizedSomething=!0,!e5.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let o=0;o"),!0}endElement(n){const e=RD(n).toLowerCase();E_.hasOwnProperty(e)&&!AD.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(ND(n))}}function i5(t){const n=t.nextSibling;if(n&&t!==n.previousSibling)throw PD(n);return n}function o5(t){const n=t.firstChild;if(n&&function n5(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(t,n))throw PD(n);return n}function RD(t){const n=t.nodeName;return"string"==typeof n?n:"FORM"}function PD(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}const r5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,a5=/([^\#-~ |!])/g;function ND(t){return t.replace(/&/g,"&").replace(r5,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(a5,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let Rp;function FD(t,n){let e=null;try{Rp=Rp||MD(t);let i=n?String(n):"";e=Rp.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=e.innerHTML,e=Rp.getInertBodyElement(i)}while(i!==r);return Mc((new t5).sanitizeChildren(M_(e)||e))}finally{if(e){const i=M_(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function M_(t){return"content"in t&&function s5(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ui=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ui||{});function A_(t){const n=Dd();return n?DD(n.sanitize(Ui.HTML,t)||""):da(t,"HTML")?DD(qo(t)):FD(bs(),Jt(t))}function Sd(t){const n=Dd();return n?n.sanitize(Ui.URL,t)||"":da(t,"URL")?qo(t):Op(Jt(t))}function LD(t){const n=Dd();if(n)return TD(n.sanitize(Ui.RESOURCE_URL,t)||"");if(da(t,"ResourceURL"))return TD(qo(t));throw new S(904,!1)}function Dd(){const t=je();return t&&t[Fr].sanitizer}const f5=/^>|^->||--!>|)/g,g5="\u200b$1\u200b";function er(t){return t instanceof Function?t():t}var _s=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(_s||{});let R_;function P_(t,n){return R_(t,n)}function kc(t,n,e,i,o){if(null!=i){let r,a=!1;uo(i)?r=i:co(i)&&(a=!0,i=i[ci]);const s=Bn(i);0===t&&null!==e?null==o?JD(n,e,s):hl(n,e,s,o||null,!0):1===t&&null!==e?hl(n,e,s,o||null,!0):2===t?function Md(t,n,e){const i=jp(t,n);i&&function P5(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,s,a):3===t&&n.destroyNode(s),null!=r&&function L5(t,n,e,i,o){const r=e[oa];r!==Bn(e)&&kc(n,t,i,r,o);for(let s=Di;sn.replace(p5,g5))}(n))}function Fp(t,n,e){return t.createElement(n,e)}function UD(t,n){n[Fr].changeDetectionScheduler?.notify(1),Hp(t,n,n[Ut],2,null,null)}function WD(t,n){const e=t[yc],i=e.indexOf(n);e.splice(i,1)}function Ed(t,n){if(t.length<=Di)return;const e=Di+n,i=t[e];if(i){const o=i[rd];null!==o&&o!==t&&WD(o,i),n>0&&(t[e-1][Nr]=i[Nr]);const r=Qf(t,Di+n);!function T5(t,n){UD(t,n),n[ci]=null,n[lo]=null}(i[nt],i);const a=r[Ra];null!==a&&a.detachView(r[nt]),i[Si]=null,i[Nr]=null,i[It]&=-129}return i}function Lp(t,n){if(!(256&n[It])){const e=n[Ut];e.destroyNode&&Hp(t,n,e,3,null,null),function A5(t){let n=t[od];if(!n)return L_(t[nt],t);for(;n;){let e=null;if(co(n))e=n[od];else{const i=n[Di];i&&(e=i)}if(!e){for(;n&&!n[Nr]&&n!==t;)co(n)&&L_(n[nt],n),n=n[Si];null===n&&(n=t),co(n)&&L_(n[nt],n),e=n&&n[Nr]}n=e}}(n)}}function L_(t,n){if(256&n[It])return;const e=j(null);try{n[It]&=-129,n[It]|=256,n[al]&&function ae(t){if(B(t),me(t))for(let n=0;n=0?i[a]():i[-a].unsubscribe(),r+=2}else e[r].call(i[e[r+1]]);null!==i&&(n[gc]=null);const o=n[ms];if(null!==o){n[ms]=null;for(let r=0;r-1){const{encapsulation:r}=t.data[i.directiveStart+o];if(r===Rr.None||r===Rr.Emulated)return null}return wo(i,e)}}function hl(t,n,e,i,o){t.insertBefore(n,e,i,o)}function JD(t,n,e){t.appendChild(n,e)}function QD(t,n,e,i,o){null!==i?hl(t,n,e,i,o):JD(t,n,e)}function jp(t,n){return t.parentNode(n)}function KD(t,n,e){return eE(t,n,e)}function qD(t,n,e){return 40&t.type?wo(t,e):null}let B_,eE=qD;function tE(t,n){eE=t,B_=n}function Bp(t,n,e,i){const o=j_(t,i,n),r=n[Ut],s=KD(i.parent||n[lo],i,n);if(null!=o)if(Array.isArray(e))for(let l=0;lQt&&sE(t,n,Qt,!1),ra(a?2:0,o),e(i,o)}finally{cl(r),ra(a?3:1,o)}}function V_(t,n,e){if(Ny(n)){const i=j(null);try{const r=n.directiveEnd;for(let a=n.directiveStart;anull;function hE(t,n,e,i,o){for(let r in n){if(!n.hasOwnProperty(r))continue;const a=n[r];if(void 0===a)continue;i??={};let s,l=Le.None;Array.isArray(a)?(s=a[0],l=a[1]):s=a;let c=r;if(null!==o){if(!o.hasOwnProperty(r))continue;c=o[r]}0===t?fE(i,e,c,s,l):fE(i,e,c,s)}return i}function fE(t,n,e,i,o){let r;t.hasOwnProperty(e)?(r=t[e]).push(n,i):r=t[e]=[n,i],void 0!==o&&r.push(o)}function Bo(t,n,e,i,o,r,a,s){const l=wo(n,e);let u,c=n.inputs;!s&&null!=c&&(u=c[i])?(K_(t,e,u,i,o),sl(n)&&function J5(t,n){const e=Qo(n,t);16&e[It]||(e[It]|=64)}(e,n.index)):3&n.type&&(i=function X5(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),o=null!=a?a(o,n.value||"",i):o,r.setProperty(l,i,o))}function W_(t,n,e,i){if(yS()){const o=null===i?null:{"":-1},r=function nB(t,n){const e=t.directiveRegistry;let i=null,o=null;if(e)for(let r=0;r0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=s&&a.push(s),a.push(e,i,r)}}(t,n,i,Ad(t,e,o.hostVars,tn),o)}function ha(t,n,e,i,o,r){const a=wo(t,n);!function J_(t,n,e,i,o,r,a){if(null==r)t.removeAttribute(n,o,e);else{const s=null==a?Jt(r):a(r,i||"",o);t.setAttribute(n,o,s,e)}}(n[Ut],a,r,t.value,e,i,o)}function lB(t,n,e,i,o,r){const a=r[n];if(null!==a)for(let s=0;s0&&(e[o-1][Nr]=n),i!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{ud(t.lView)},consumerOnSignalRead(){this.lView[al]=this}},SE=100;function Vp(t,n=!0,e=0){const i=t[Fr],o=i.rendererFactory;o.begin?.();try{!function bB(t,n){tv(t,n);let e=0;for(;zy(t);){if(e===SE)throw new S(103,!1);e++,tv(t,1)}}(t,e)}catch(a){throw n&&$p(t,a),a}finally{o.end?.(),i.inlineEffectRunner?.flush()}}function yB(t,n,e,i){const o=n[It];if(256==(256&o))return;n[Fr].inlineEffectRunner?.flush(),Jy(n);let a=null,s=null;(function _B(t){return 2!==t.type})(t)&&(s=function fB(t){return t[al]??function pB(t){const n=xE.pop()??Object.create(mB);return n.lView=t,n}(t)}(n),a=function ee(t){return t&&(t.nextProducerIndex=0),j(t)}(s));try{gS(n),function wS(t){return Wt.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&cE(t,n,e,2,i);const l=3==(3&o);if(l){const d=t.preOrderCheckHooks;null!==d&&fp(n,d,null)}else{const d=t.preOrderHooks;null!==d&&pp(n,d,0,null),Ky(n,0)}if(function vB(t){for(let n=sD(t);null!==n;n=lD(n)){if(!(n[It]&Py.HasTransplantedViews))continue;const e=n[yc];for(let i=0;it.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}(s,a),function gB(t){t.lView[al]!==t&&(t.lView=null,xE.push(t))}(s)),Qy()}}function DE(t,n){for(let e=sD(t);null!==e;e=lD(e))for(let i=Di;i-1&&(Ed(n,i),Qf(e,i))}this._attachedToViewContainer=!1}Lp(this._lView[nt],this._lView)}onDestroy(n){up(this._lView,n)}markForCheck(){Rd(this._cdRefInjectingView||this._lView)}detach(){this._lView[It]&=-129}reattach(){$y(this._lView),this._lView[It]|=128}detectChanges(){this._lView[It]|=1024,Vp(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,UD(this._lView[nt],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=n,$y(this._lView)}}let po=(()=>{class t{static{this.__NG_ELEMENT_ID__=SB}}return t})();const CB=po,xB=class extends CB{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e)}createEmbeddedViewImpl(n,e,i){const o=kd(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:e,dehydratedView:i});return new Pd(o)}};function SB(){return Zp(Fn(),je())}function Zp(t,n){return 4&t.type?new xB(n,t,Dc(t,n)):null}let RE=()=>null;function Rc(t,n){return RE(t,n)}class Jp{}class WB{}class PE{}class JB{resolveComponentFactory(n){throw function XB(t){const n=Error(`No component factory found for ${li(t)}.`);return n.ngComponent=t,n}(n)}}let fl=(()=>{class t{static{this.NULL=new JB}}return t})();class sv{}let Ha=(()=>{class t{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function QB(){const t=je(),e=Qo(Fn().index,t);return(co(e)?e:t)[Ut]}()}}return t})(),KB=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:()=>null})}}return t})();const lv={},FE=new Set;function fa(t){FE.has(t)||(FE.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function LE(...t){}class wt{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ot(!1),this.onMicrotaskEmpty=new Ot(!1),this.onStable=new Ot(!1),this.onError=new Ot(!1),typeof Zone>"u")throw new S(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&e,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function qB(){const t="function"==typeof Gt.requestAnimationFrame;let n=Gt[t?"requestAnimationFrame":"setTimeout"],e=Gt[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&e){const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);const o=e[Zone.__symbol__("OriginalDelegate")];o&&(e=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function n6(t){const n=()=>{!function t6(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Gt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,uv(t),t.isCheckStableRunning=!0,cv(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),uv(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,o,r,a,s)=>{if(function i6(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(s))return e.invokeTask(o,r,a,s);try{return jE(t),e.invokeTask(o,r,a,s)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),BE(t)}},onInvoke:(e,i,o,r,a,s,l)=>{try{return jE(t),e.invoke(o,r,a,s,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),BE(t)}},onHasTask:(e,i,o,r)=>{e.hasTask(o,r),i===o&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,uv(t),cv(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,o,r)=>(e.handleError(o,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!wt.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(wt.isInAngularZone())throw new S(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,o){const r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+o,n,e6,LE,LE);try{return r.runTask(a,e,i)}finally{r.cancelTask(a)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const e6={};function cv(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function uv(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function jE(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function BE(t){t._nesting--,cv(t)}class HE{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ot,this.onMicrotaskEmpty=new Ot,this.onStable=new Ot,this.onError=new Ot}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,o){return n.apply(e,i)}}var pl=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(pl||{});const YE={destroy(){}};function zE(t,n){!n&&function rp(t){if(!tS())throw new S(-203,!1)}();const e=n?.injector??Pe(gi);if(!function ys(t){return"browser"===(t??Pe(gi)).get(La)}(e))return YE;fa("NgAfterNextRender");const i=e.get(Bd),o=i.handler??=new VE,r=n?.phase??pl.MixedReadWrite,a=()=>{o.unregister(l),s()},s=e.get(Sc).onDestroy(a),l=ia(e,()=>new $E(r,()=>{a(),t()}));return o.register(l),{destroy:a}}class $E{constructor(n,e){this.phase=n,this.callbackFn=e,this.zone=Pe(wt),this.errorHandler=Pe(Ko,{optional:!0}),Pe(Jp,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(n){this.errorHandler?.handleError(n)}}}class VE{constructor(){this.executingCallbacks=!1,this.buckets={[pl.EarlyRead]:new Set,[pl.Write]:new Set,[pl.MixedReadWrite]:new Set,[pl.Read]:new Set},this.deferredCallbacks=new Set}register(n){(this.executingCallbacks?this.deferredCallbacks:this.buckets[n.phase]).add(n)}unregister(n){this.buckets[n.phase].delete(n),this.deferredCallbacks.delete(n)}execute(){this.executingCallbacks=!0;for(const n of Object.values(this.buckets))for(const e of n)e.invoke();this.executingCallbacks=!1;for(const n of this.deferredCallbacks)this.buckets[n.phase].add(n);this.deferredCallbacks.clear()}destroy(){for(const n of Object.values(this.buckets))n.clear();this.deferredCallbacks.clear()}}let Bd=(()=>{class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const e=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const i of e)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static{this.\u0275prov=$e({token:t,providedIn:"root",factory:()=>new t})}}return t})();function Kp(t,n,e){let i=e?t.styles:null,o=e?t.classes:null,r=0;if(null!==n)for(let a=0;a0&&rE(t,e,r.join(" "))}}(p,pe,b,i),void 0!==e&&function m6(t,n,e){const i=t.projection=[];for(let o=0;o{class t{static{this.__NG_ELEMENT_ID__=y6}}return t})();function y6(){return QE(Fn(),je())}const _6=So,XE=class extends _6{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Dc(this._hostTNode,this._hostLView)}get injector(){return new Hi(this._hostTNode,this._hostLView)}get parentInjector(){const n=bp(this._hostTNode,this._hostLView);if(e_(n)){const e=md(n,this._hostLView),i=gd(n);return new Hi(e[nt].data[i+8],e)}return new Hi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=JE(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-Di}createEmbeddedView(n,e,i){let o,r;"number"==typeof i?o=i:null!=i&&(o=i.index,r=i.injector);const a=Rc(this._lContainer,n.ssrId),s=n.createEmbeddedViewImpl(e||{},r,a);return this.insertImpl(s,o,Oc(this._hostTNode,a)),s}createComponent(n,e,i,o,r){const a=n&&!function id(t){return"function"==typeof t}(n);let s;if(a)s=e;else{const g=e||{};s=g.index,i=g.injector,o=g.projectableNodes,r=g.environmentInjector||g.ngModuleRef}const l=a?n:new zd(dn(n)),c=i||this.parentInjector;if(!r&&null==l.ngModule){const b=(a?c:this.parentInjector).get(Lo,null);b&&(r=b)}const u=dn(l.componentType??{}),d=Rc(this._lContainer,u?.id??null),p=l.create(c,o,d?.firstChild??null,r);return this.insertImpl(p.hostView,s,Oc(this._hostTNode,d)),p}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){const o=n._lView;if(function f4(t){return uo(t[Si])}(o)){const s=this.indexOf(n);if(-1!==s)this.detach(s);else{const l=o[Si],c=new XE(l,l[lo],l[Si]);c.detach(c.indexOf(n))}}const r=this._adjustIndex(e),a=this._lContainer;return Id(a,o,r,i),n.attachToViewContainerRef(),jx(pv(a),r,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=JE(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=Ed(this._lContainer,e);i&&(Qf(pv(this._lContainer),e),Lp(i[nt],i))}detach(n){const e=this._adjustIndex(n,-1),i=Ed(this._lContainer,e);return i&&null!=Qf(pv(this._lContainer),e)?new Pd(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function JE(t){return t[8]}function pv(t){return t[8]||(t[8]=[])}function QE(t,n){let e;const i=n[t.index];return uo(i)?e=i:(e=mE(i,n,null,t),n[t.index]=e,zp(n,e)),KE(e,n,t,i),new XE(e,t,n)}let KE=function eT(t,n,e,i){if(t[oa])return;let o;o=8&e.type?Bn(i):function v6(t,n){const e=t[Ut],i=e.createComment(""),o=wo(n,t);return hl(e,jp(e,o),i,function N5(t,n){return t.nextSibling(n)}(e,o),!1),i}(n,e),t[oa]=o},gv=()=>!1;class mv{constructor(n){this.queryList=n,this.matches=null}clone(){return new mv(this.queryList)}setDirty(){this.queryList.setDirty()}}class bv{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,o=[];for(let r=0;rn.trim())}(n):n}}class yv{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i0)i.push(a[s/2]);else{const c=r[s+1],u=n[-l];for(let d=Di;d=0;i--){const o=t[i];o.hostVars=n+=o.hostVars,o.hostAttrs=nd(o.hostAttrs,e=nd(e,o.hostAttrs))}}(i)}function H6(t,n){for(const e in n.inputs){if(!n.inputs.hasOwnProperty(e)||t.inputs.hasOwnProperty(e))continue;const i=n.inputs[e];if(void 0!==i&&(t.inputs[e]=i,t.declaredInputs[e]=n.declaredInputs[e],null!==n.inputTransforms)){const o=Array.isArray(i)?i[0]:i;if(!n.inputTransforms.hasOwnProperty(o))continue;t.inputTransforms??={},t.inputTransforms[o]=n.inputTransforms[o]}}}function eg(t){return t===na?{}:t===xn?[]:t}function z6(t,n){const e=t.viewQuery;t.viewQuery=e?(i,o)=>{n(i,o),e(i,o)}:n}function $6(t,n){const e=t.contentQueries;t.contentQueries=e?(i,o,r)=>{n(i,o,r),e(i,o,r)}:n}function V6(t,n){const e=t.hostBindings;t.hostBindings=e?(i,o)=>{n(i,o),e(i,o)}:n}function qi(t){const n=t.inputConfig,e={};for(const i in n)if(n.hasOwnProperty(i)){const o=n[i];Array.isArray(o)&&o[3]&&(e[i]=o[3])}t.inputTransforms=e}class gl{}class DT{}class Sv extends gl{constructor(n,e,i){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new UE(this);const o=so(n);this._bootstrapComponents=er(o.bootstrap),this._r3Injector=US(n,e,[{provide:gl,useValue:this},{provide:fl,useValue:this.componentFactoryResolver},...i],li(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Dv extends DT{constructor(n){super(),this.moduleType=n}create(n){return new Sv(this.moduleType,n,[])}}class ET extends gl{constructor(n){super(),this.componentFactoryResolver=new UE(this),this.instance=null;const e=new hc([...n.providers,{provide:gl,useValue:this},{provide:fl,useValue:this.componentFactoryResolver}],n.parent||op(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function tg(t,n,e=null){return new ET({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}let Cs=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new hi(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function ig(t){return!!Ev(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function Ev(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function pa(t,n,e){return t[n]=e}function Ei(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function ml(t,n,e,i){const o=Ei(t,n,e);return Ei(t,n+1,i)||o}function Mt(t,n,e,i,o,r,a,s){const l=je(),c=gn(),u=t+Qt,d=c.firstCreatePass?function i7(t,n,e,i,o,r,a,s,l){const c=n.consts,u=Ic(n,t,4,a||null,aa(c,s));W_(n,e,u,aa(c,l)),hp(n,u);const d=u.tView=U_(2,u,i,o,r,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,e,i,o,r,a):c.data[u];sa(d,!1);const h=TT(c,l,d,t);fd()&&Bp(c,l,h,d),fo(h,l);const p=mE(h,l,h,d);return l[u]=p,zp(l,p),function qE(t,n,e){return gv(t,n,e)}(p,d,l),cp(d)&&Z_(c,l,d),null!=a&&G_(l,d,s),Mt}let TT=function MT(t,n,e,i){return la(!0),n[Ut].createComment("")};function Kt(t,n,e,i){const o=je();return Ei(o,jr(),n)&&(gn(),ha(Jn(),o,t,n,e,i)),Kt}function zc(t,n,e,i){return Ei(t,jr(),e)?n+Jt(e)+i:tn}function $c(t,n,e,i,o,r){const s=ml(t,function Pa(){return Wt.lFrame.bindingIndex}(),e,o);return Na(2),s?n+Jt(e)+i+Jt(o)+r:tn}function ug(t,n){return t<<17|n<<2}function Ss(t){return t>>17&32767}function Fv(t){return 2|t}function yl(t){return(131068&t)>>2}function Lv(t,n){return-131069&t|n<<2}function jv(t){return 1|t}function rM(t,n,e,i){const o=t[e+1],r=null===n;let a=i?Ss(o):yl(o),s=!1;for(;0!==a&&(!1===s||r);){const c=t[a+1];Y7(t[a],n)&&(s=!0,t[a+1]=i?jv(c):Fv(c)),a=i?Ss(c):yl(c)}s&&(t[e+1]=i?Fv(o):jv(o))}function Y7(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&uc(t,n)>=0}const Yi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function aM(t){return t.substring(Yi.key,Yi.keyEnd)}function sM(t,n){const e=Yi.textEnd;return e===n?-1:(n=Yi.keyEnd=function Z7(t,n,e){for(;n32;)n++;return n}(t,Yi.key=n,e),Jc(t,n,e))}function Jc(t,n,e){for(;n=0;e=sM(n,e))Xo(t,aM(n),!0)}function Br(t,n,e,i){const o=je(),r=gn(),a=Na(2);r.firstUpdatePass&&fM(r,t,a,i),n!==tn&&Ei(o,a,n)&&gM(r,r.data[ho()],o,o[Ut],t,o[a+1]=function nH(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=li(qo(t)))),t}(n,e),i,a)}function Hr(t,n,e,i){const o=gn(),r=Na(2);o.firstUpdatePass&&fM(o,null,r,i);const a=je();if(e!==tn&&Ei(a,r,e)){const s=o.data[ho()];if(bM(s,i)&&!hM(o,r)){let l=i?s.classesWithoutHost:s.stylesWithoutHost;null!==l&&(e=sy(l,e||"")),Bv(o,s,a,e,i)}else!function tH(t,n,e,i,o,r,a,s){o===tn&&(o=xn);let l=0,c=0,u=0=t.expandoStartIndex}function fM(t,n,e,i){const o=t.data;if(null===o[e+1]){const r=o[ho()],a=hM(t,e);bM(r,i)&&null===n&&!a&&(n=!1),n=function X7(t,n,e,i){const o=Wy(t);let r=i?n.residualClasses:n.residualStyles;if(null===o)0===(i?n.classBindings:n.styleBindings)&&(e=Xd(e=Hv(null,t,n,e,i),n.attrs,i),r=null);else{const a=n.directiveStylingLast;if(-1===a||t[a]!==o)if(e=Hv(o,t,n,e,i),null===r){let l=function J7(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==yl(i))return t[Ss(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=Hv(null,t,n,l[1],i),l=Xd(l,n.attrs,i),function Q7(t,n,e,i){t[Ss(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else r=function K7(t,n,e){let i;const o=n.directiveEnd;for(let r=1+n.directiveStylingLast;r0)&&(c=!0)):u=e,o)if(0!==l){const h=Ss(t[s+1]);t[i+1]=ug(h,s),0!==h&&(t[h+1]=Lv(t[h+1],i)),t[s+1]=function L7(t,n){return 131071&t|n<<17}(t[s+1],i)}else t[i+1]=ug(s,0),0!==s&&(t[s+1]=Lv(t[s+1],i)),s=i;else t[i+1]=ug(l,0),0===s?s=i:t[l+1]=Lv(t[l+1],i),l=i;c&&(t[i+1]=Fv(t[i+1])),rM(t,u,i,!0),rM(t,u,i,!1),function H7(t,n,e,i,o){const r=o?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&uc(r,n)>=0&&(e[i+1]=jv(e[i+1]))}(n,u,t,i,r),a=ug(s,l),r?n.classBindings=a:n.styleBindings=a}(o,r,n,e,a,i)}}function Hv(t,n,e,i,o){let r=null;const a=e.directiveEnd;let s=e.directiveStylingLast;for(-1===s?s=e.directiveStart:s++;s0;){const l=t[o],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[o+1];h===tn&&(h=d?xn:void 0);let p=d?wy(h,i):u===i?h:void 0;if(c&&!dg(p)&&(p=wy(l,i)),dg(p)&&(s=p,a))return s;const g=t[o+1];o=a?Ss(g):yl(g)}if(null!==n){let l=r?n.residualClasses:n.residualStyles;null!=l&&(s=wy(l,i))}return s}function dg(t){return void 0!==t}function bM(t,n){return 0!=(t.flags&(n?8:16))}function Yv(t,n,e){Hr(Xo,ma,zc(je(),t,n,e),!0)}class hH{destroy(n){}updateValue(n,e){}swap(n,e){const i=Math.min(n,e),o=Math.max(n,e),r=this.detach(o);if(o-i>1){const a=this.detach(i);this.attach(i,r),this.attach(o,a)}else this.attach(i,r)}move(n,e){this.attach(e,this.detach(n))}}function zv(t,n,e,i,o){return t===e&&Object.is(n,i)?1:Object.is(o(t,n),o(e,i))?-1:0}function $v(t,n,e,i){return!(void 0===n||!n.has(i)||(t.attach(e,n.get(i)),n.delete(i),0))}function yM(t,n,e,i,o){if($v(t,n,i,e(i,o)))t.updateValue(i,o);else{const r=t.create(i,o);t.attach(i,r)}}function _M(t,n,e,i){const o=new Set;for(let r=n;r<=e;r++)o.add(i(r,t.at(r)));return o}class vM{constructor(){this.kvMap=new Map,this._vMap=void 0}has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;const e=this.kvMap.get(n);return void 0!==this._vMap&&this._vMap.has(e)?(this.kvMap.set(n,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,e){if(this.kvMap.has(n)){let i=this.kvMap.get(n);void 0===this._vMap&&(this._vMap=new Map);const o=this._vMap;for(;o.has(i);)i=o.get(i);o.set(i,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,i]of this.kvMap)if(n(i,e),void 0!==this._vMap){const o=this._vMap;for(;o.has(i);)i=o.get(i),n(i,e)}}}function En(t,n,e){fa("NgControlFlow");const i=je(),o=jr(),r=Vv(i,Qt+t);if(Ei(i,o,n)){const s=j(null);try{if(ev(r,0),-1!==n){const l=Zv(i[nt],Qt+n),c=Rc(r,l.tView.ssrId);Id(r,kd(i,l,e,{dehydratedView:c}),0,Oc(l,c))}}finally{j(s)}}else{const s=wE(r,0);void 0!==s&&(s[Xn]=e)}}class pH{constructor(n,e,i){this.lContainer=n,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-Di}}function hg(t,n){return n}class mH{constructor(n,e,i){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=i}}function fg(t,n,e,i,o,r,a,s,l,c,u,d,h){fa("NgControlFlow");const p=void 0!==l,g=je(),b=s?a.bind(g[pi][Xn]):a,T=new mH(p,b);g[Qt+t]=T,Mt(t+1,n,e,i,o,r),p&&Mt(t+2,l,c,u,d,h)}class bH extends hH{constructor(n,e,i){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=i,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Di}at(n){return this.getLView(n)[Xn].$implicit}attach(n,e){const i=e[Jo];this.needsIndexUpdate||=n!==this.length,Id(this.lContainer,e,n,Oc(this.templateTNode,i))}detach(n){return this.needsIndexUpdate||=n!==this.length-1,function yH(t,n){return Ed(t,n)}(this.lContainer,n)}create(n,e){const i=Rc(this.lContainer,this.templateTNode.tView.ssrId);return kd(this.hostLView,this.templateTNode,new pH(this.lContainer,e,n),{dehydratedView:i})}destroy(n){Lp(n[nt],n)}updateValue(n,e){this.getLView(n)[Xn].$implicit=e}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n{t.destroy(s)})}(a,t,r.trackByFn),a.updateIndexes(),r.hasEmptyBlock){const s=jr(),l=0===a.length;if(Ei(i,s,l)){const c=e+2,u=Vv(i,c);if(l){const d=Zv(o,c),h=Rc(u,d.tView.ssrId);Id(u,kd(i,d,void 0,{dehydratedView:h}),0,Oc(d,h))}else ev(u,0)}}}finally{j(n)}}function Vv(t,n){return t[n]}function Zv(t,n){return cd(t,n)}function ye(t,n,e,i){const o=je(),r=gn(),a=Qt+t,s=o[Ut],l=r.firstCreatePass?function vH(t,n,e,i,o,r){const a=n.consts,l=Ic(n,t,2,i,aa(a,o));return W_(n,e,l,aa(a,r)),null!==l.attrs&&Kp(l,l.attrs,!1),null!==l.mergedAttrs&&Kp(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(a,r,o,n,e,i):r.data[a],c=wM(r,o,l,s,n,t);o[a]=c;const u=cp(l);return sa(l,!0),aE(s,c,l),!function Zd(t){return 32==(32&t.flags)}(l)&&fd()&&Bp(r,o,c,l),0===function g4(){return Wt.lFrame.elementDepthCount}()&&fo(c,o),function m4(){Wt.lFrame.elementDepthCount++}(),u&&(Z_(r,o,l),V_(r,l,o)),null!==i&&G_(o,l),ye}function ve(){let t=Fn();Zy()?Gy():(t=t.parent,sa(t,!1));const n=t;(function y4(t){return Wt.skipHydrationRootTNode===t})(n)&&function C4(){Wt.skipHydrationRootTNode=null}(),function b4(){Wt.lFrame.elementDepthCount--}();const e=gn();return e.firstCreatePass&&(hp(e,t),Ny(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function F4(t){return 0!=(8&t.flags)}(n)&&Bv(e,n,je(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function L4(t){return 0!=(16&t.flags)}(n)&&Bv(e,n,je(),n.stylesWithoutHost,!1),ve}function at(t,n,e,i){return ye(t,n,e,i),ve(),at}let wM=(t,n,e,i,o,r)=>(la(!0),Fp(i,o,function MS(){return Wt.lFrame.currentNamespace}()));function Jd(t,n,e){const i=je(),o=gn(),r=t+Qt,a=o.firstCreatePass?function xH(t,n,e,i,o){const r=n.consts,a=aa(r,i),s=Ic(n,t,8,"ng-container",a);return null!==a&&Kp(s,a,!0),W_(n,e,s,aa(r,o)),null!==n.queries&&n.queries.elementStart(n,s),s}(r,o,i,n,e):o.data[r];sa(a,!0);const s=CM(o,i,a,t);return i[r]=s,fd()&&Bp(o,i,s,a),fo(s,i),cp(a)&&(Z_(o,i,a),V_(o,a,i)),null!=e&&G_(i,a),Jd}function Qd(){let t=Fn();const n=gn();return Zy()?Gy():(t=t.parent,sa(t,!1)),n.firstCreatePass&&(hp(n,t),Ny(t)&&n.queries.elementEnd(t)),Qd}function Es(t,n,e){return Jd(t,n,e),Qd(),Es}let CM=(t,n,e,i)=>(la(!0),F_(n[Ut],""));function Tn(){return je()}function Ts(t,n,e){const i=je();return Ei(i,jr(),n)&&Bo(gn(),Jn(),i,t,n,i[Ut],e,!0),Ts}function Gv(t,n,e){const i=je();if(Ei(i,jr(),n)){const r=gn(),a=Jn();Bo(r,a,i,t,n,vE(Wy(r.data),a,i),e,!0)}return Gv}const Kc="en-US",gg={marker:"element"},mg={marker:"ICU"};var Ho=function(t){return t[t.SHIFT=2]="SHIFT",t[t.APPEND_EAGERLY=1]="APPEND_EAGERLY",t[t.COMMENT=2]="COMMENT",t}(Ho||{});let DM=Kc;function TM(t,n,e){const i=n.insertBeforeIndex,o=Array.isArray(i)?i[0]:i;return null===o?qD(t,0,e):Bn(e[o])}function MM(t,n,e,i,o){const r=n.insertBeforeIndex;if(Array.isArray(r)){let a=i,s=null;if(3&n.type||(s=a,a=o),null!==a&&-1===n.componentOffset)for(let l=1;l1)for(let e=t.length-2;e>=0;e--){const i=t[e];kM(i)||RH(i,n)&&null===PH(i)&&NH(i,n.index)}}function kM(t){return!(64&t.type)}function RH(t,n){return kM(n)||t.index>n.index}function PH(t){const n=t.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function NH(t,n){const e=t.insertBeforeIndex;Array.isArray(e)?e[0]=n:(tE(TM,MM),t.insertBeforeIndex=n)}function jH(t,n,e){const i=$_(t,e,64,null,null);return AM(n,i),i}let th=(t,n,e,i)=>(la(!0),function PM(t,n,e){const i=t[Ut];switch(e){case Node.COMMENT_NODE:return F_(i,n);case Node.TEXT_NODE:return N_(i,n);case Node.ELEMENT_NODE:return Fp(i,n,null)}}(t,e,i));function UH(){const t=[];let e,i,n=-1;function r(s,l){n=0;const c=function bg(t,n){const e=n[t.currentCaseLViewIndex];return null===e?e:e<0?~e:e}(s,l);i=null!==c?s.remove[c]:xn}function a(){if(n0?e[s]:(t.push(n,i),r(e[nt].data[~s],e),a())}return 0===t.length?null:(i=t.pop(),n=t.pop(),a())}return function o(s,l){for(e=l;t.length;)t.pop();return r(s.value,l),a}}const yg=/\ufffd(\d+):?\d*\ufffd/gi,XH=/\ufffd(\d+)\ufffd/,HM=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,nh="\ufffd",JH=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,QH=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,KH=/\uE500/g;function YM(t,n,e,i,o,r,a){const s=Ad(t,i,1,null);let l=s<e.length&&e.push(l)}return{type:i,mainBinding:o,cases:n,values:e}}function Uv(t){if(!t)return[];let n=0;const e=[],i=[],o=/[{}]/g;let r;for(o.lastIndex=0;r=o.exec(t);){const s=r.index;if("}"==r[0]){if(e.pop(),0==e.length){const l=t.substring(n,s);HM.test(l)?i.push(aY(l)):i.push(l),n=s+1}}else{if(0==e.length){const l=t.substring(n,s);i.push(l),n=s+1}e.push("{")}}const a=t.substring(n);return i.push(a),i}function sY(t,n,e,i,o,r,a,s,l){const c=[],u=[],d=[];e.cases.push(a),e.create.push(c),e.remove.push(u),e.update.push(d);const p=MD(bs()).getInertBodyElement(s),g=M_(p)||p;return g?ZM(t,n,e,i,o,c,u,d,g,r,l,0):0}function ZM(t,n,e,i,o,r,a,s,l,c,u,d){let h=0,p=l.firstChild;for(;p;){const g=Ad(n,i,1,null);switch(p.nodeType){case Node.ELEMENT_NODE:const b=p,T=b.tagName.toLowerCase();if(E_.hasOwnProperty(T)){Wv(r,gg,T,c,g),n.data[g]=T;const le=b.attributes;for(let pe=0;pe>>Ho.SHIFT;let d=t[u],h=!1;null===d&&(d=t[u]=th(t,u,n[r],(a&Ho.COMMENT)===Ho.COMMENT?Node.COMMENT_NODE:Node.TEXT_NODE),h=fd()),c&&null!==e&&h&&hl(o,e,d,i,!1)}})(o,l.create,u,s&&8&s.type?o[s.index]:null),CS(!0)}function no(){CS(!1)}function Pt(t,n,e){to(t,n,e),no()}function oh(t,n={}){return function _Y(t,n={}){let e=t;if(hY.test(t)){const i={},o=[0];e=e.replace(fY,(r,a,s)=>{const l=a||s,c=i[l]||[];if(c.length||(l.split("|").forEach(b=>{const T=b.match(yY),D=T?parseInt(T[1],10):0,H=bY.test(b);c.push([D,H,b])}),i[l]=c),!c.length)throw new Error(`i18n postprocess: unmatched placeholder - ${l}`);const u=o[o.length-1];let d=0;for(let b=0;bn.hasOwnProperty(r)?`${o}${n[r]}${l}`:i),e=e.replace(gY,(i,o)=>n.hasOwnProperty(o)?n[o]:i),e=e.replace(mY,(i,o)=>{if(n.hasOwnProperty(o)){const r=n[o];if(!r.length)throw new Error(`i18n postprocess: unmatched ICU - ${i} with key: ${o}`);return r.shift()}return i})),e}(t,n)}function _t(t,n,e,i){const o=je(),r=gn(),a=Fn();return Xv(r,o,o[Ut],a,t,n,i),_t}function Xv(t,n,e,i,o,r,a){const s=cp(i),c=t.firstCreatePass&&_E(t),u=n[Xn],d=yE(n);let h=!0;if(3&i.type||a){const b=wo(i,n),T=a?a(b):b,D=d.length,H=a?le=>a(Bn(le[i.index])):i.index;let oe=null;if(!a&&s&&(oe=function CY(t,n,e,i){const o=t.cleanup;if(null!=o)for(let r=0;rl?s[l]:null}"string"==typeof a&&(r+=2)}return null}(t,n,o,i.index)),null!==oe)(oe.__ngLastListenerFn__||oe).__ngNextListenerFn__=r,oe.__ngLastListenerFn__=r,h=!1;else{r=QM(i,n,u,r,!1);const le=e.listen(T,o,r);d.push(r,le),c&&c.push(o,H,D,D+1)}}else r=QM(i,n,u,r,!1);const p=i.outputs;let g;if(h&&null!==p&&(g=p[o])){const b=g.length;if(b)for(let T=0;T-1?Qo(t.index,n):n);let l=JM(n,e,i,a),c=r.__ngNextListenerFn__;for(;c;)l=JM(n,e,c,a)&&l,c=c.__ngNextListenerFn__;return o&&!1===l&&a.preventDefault(),l}}function rt(t=1){return function M4(t){return(Wt.lFrame.contextLView=function mS(t,n){for(;t>0;)n=n[mc],t--;return n}(t,Wt.lFrame.contextLView))[Xn]}(t)}function xY(t,n){let e=null;const i=function T3(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let o=0;o(la(!0),N_(n[Ut],i));function Yo(t){return yr("",t,""),Yo}function yr(t,n,e){const i=je(),o=zc(i,t,n,e);return o!==tn&&Ba(i,ho(),o),yr}function Jv(t,n,e,i,o){const r=je(),a=$c(r,t,n,e,i,o);return a!==tn&&Ba(r,ho(),a),Jv}function rh(t,n,e){uT(n)&&(n=n());const i=je();return Ei(i,jr(),n)&&Bo(gn(),Jn(),i,t,n,i[Ut],e,!1),rh}function vg(t,n){const e=uT(t);return e&&t.set(n),e}function ah(t,n){const e=je(),i=gn(),o=Fn();return Xv(i,e,e[Ut],o,t,n),ah}function Qv(t,n,e,i,o){if(t=Vt(t),Array.isArray(t))for(let r=0;r>20;if(rl(t)||!t.multi){const p=new pd(c,o,K),g=qv(l,n,o?u:u+h,d);-1===g?(i_(mp(s,a),r,l),Kv(r,t,n.length),n.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(p),a.push(p)):(e[g]=p,a[g]=p)}else{const p=qv(l,n,u+h,d),g=qv(l,n,u,u+h),T=g>=0&&e[g];if(o&&!T||!o&&!(p>=0&&e[p])){i_(mp(s,a),r,l);const D=function zY(t,n,e,i,o){const r=new pd(t,e,K);return r.multi=[],r.index=n,r.componentProviders=0,xA(r,o,i&&!e),r}(o?YY:HY,e.length,o,i,c);!o&&T&&(e[g].providerFactory=D),Kv(r,t,n.length,0),n.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(D),a.push(D)}else Kv(r,t,p>-1?p:g,xA(e[o?g:p],c,!o&&i));!o&&i&&T&&e[g].componentProviders++}}}function Kv(t,n,e,i){const o=rl(n),r=function H3(t){return!!t.useClass}(n);if(o||r){const l=(r?Vt(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!o&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function xA(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function qv(t,n,e,i){for(let o=e;o{e.providersResolver=(i,o)=>function BY(t,n,e){const i=gn();if(i.firstCreatePass){const o=Lr(t);Qv(e,i.data,i.blueprint,o,!0),Qv(n,i.data,i.blueprint,o,!1)}}(i,o?o(t):t,n)}}let $Y=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const i=Dy(0,e.type),o=i.length>0?tg([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=$e({token:t,providedIn:"environment",factory:()=>new t(Me(Lo))})}}return t})();function Zn(t){fa("NgStandalone"),t.getStandaloneInjector=n=>n.get($Y).getOrCreateStandaloneInjector(t)}function sh(t,n,e,i){return DA(je(),Co(),t,n,e,i)}function lh(t,n,e,i,o){return function EA(t,n,e,i,o,r,a){const s=n+e;return ml(t,s,o,r)?pa(t,s+2,a?i.call(a,o,r):i(o,r)):ch(t,s+2)}(je(),Co(),t,n,e,i,o)}function ch(t,n){const e=t[n];return e===tn?void 0:e}function DA(t,n,e,i,o,r){const a=n+e;return Ei(t,a,o)?pa(t,a+1,r?i.call(r,o):i(o)):ch(t,a+1)}function eu(t,n){const e=gn();let i;const o=t+Qt;e.firstCreatePass?(i=function ez(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[o]=i,i.onDestroy&&(e.destroyHooks??=[]).push(o,i.onDestroy)):i=e.data[o];const r=i.factory||(i.factory=il(i.type)),s=Po(K);try{const l=gp(!1),c=r();return gp(l),function TY(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,je(),o,c),c}finally{Po(s)}}function tu(t,n,e){const i=t+Qt,o=je(),r=_c(o,i);return function uh(t,n){return t[nt].data[n].pure}(o,i)?DA(o,Co(),n,r.transform,e,r):r.transform(e)}function tw(t,n){return Zp(t,n)}let ZA=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();const JA=new He(""),Sg=new He("");let cw,sw=(()=>{class t{constructor(e,i,o){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,cw||(function Qz(t){cw=t}(o),o.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{wt.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==r),e()},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,o){return[]}static{this.\u0275fac=function(i){return new(i||t)(Me(wt),Me(lw),Me(Sg))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})(),lw=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return cw?.findTestabilityInTree(this,e,i)??null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();function fh(t){return!!t&&"function"==typeof t.then}function QA(t){return!!t&&"function"==typeof t.subscribe}const uw=new He("");let dw=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i}),this.appInits=Pe(uw,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const o of this.appInits){const r=o();if(fh(r))e.push(r);else if(QA(r)){const a=new Promise((s,l)=>{r.subscribe({complete:s,error:l})});e.push(a)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(o=>{this.reject(o)}),0===e.length&&i(),this.initialized=!0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const hw=new He("");function ek(t,n){return Array.isArray(n)?n.reduce(ek,t):{...t,...n}}let Yr=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Pe(XS),this.afterRenderEffectManager=Pe(Bd),this.externalTestViews=new Set,this.beforeRender=new vt,this.afterTick=new vt,this.componentTypes=[],this.components=[],this.isStable=Pe(Cs).hasPendingTasks.pipe(Bt(e=>!e)),this._injector=Pe(Lo)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const o=e instanceof PE;if(!this._injector.get(dw).done)throw!o&&function gs(t){const n=dn(t)||ji(t)||Qi(t);return null!==n&&n.standalone}(e),new S(405,!1);let a;a=o?e:this._injector.get(fl).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const s=function Kz(t){return t.isBoundToModule}(a)?void 0:this._injector.get(gl),c=a.create(gi.NULL,[],i||a.selector,s),u=c.location.nativeElement,d=c.injector.get(JA,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Dg(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){this._tick(!0)}_tick(e){if(this._runningTick)throw new S(101,!1);const i=j(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(e)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,j(i)}}detectChangesInAttachedViews(e){let i=0;const o=this.afterRenderEffectManager;for(;;){if(i===SE)throw new S(103,!1);if(e){const r=0===i;this.beforeRender.next(r);for(let{_lView:a,notifyErrorHandler:s}of this._views)e$(a,r,s)}if(i++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:r})=>fw(r))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:r})=>fw(r))))break}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Dg(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(hw,[]);[...this._bootstrapListeners,...i].forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Dg(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new S(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Dg(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function e$(t,n,e){!n&&!fw(t)||function t$(t,n,e){let i;e?(i=0,t[It]|=1024):i=64&t[It]?0:1,Vp(t,n,i)}(t,e,n)}function fw(t){return zy(t)}class n${constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let tk=(()=>{class t{compileModuleSync(e){return new Dv(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),r=er(so(e).declarations).reduce((a,s)=>{const l=dn(s);return l&&a.push(new zd(l)),a},[]);return new n$(i,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),r$=(()=>{class t{constructor(){this.zone=Pe(wt),this.applicationRef=Pe(Yr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function a$(){const t=Pe(wt),n=Pe(Ko);return e=>t.runOutsideAngular(()=>n.handleError(e))}let l$=(()=>{class t{constructor(){this.subscription=new ge,this.initialized=!1,this.zone=Pe(wt),this.pendingTasks=Pe(Cs)}initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{wt.assertNotInAngularZone(),queueMicrotask(()=>{null!==e&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{wt.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const ba=new He("",{providedIn:"root",factory:()=>Pe(ba,fn.Optional|fn.SkipSelf)||function c$(){return typeof $localize<"u"&&$localize.locale||Kc}()}),pw=new He("");let rk=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const o=function o6(t="zone.js",n){return"noop"===t?new HE:"zone.js"===t?new wt(n):t}(i?.ngZone,function ok(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{const r=function Q6(t,n,e){return new Sv(t,n,e)}(e.moduleType,this.injector,function ik(t){return[{provide:wt,useFactory:t},{provide:ol,multi:!0,useFactory:()=>{const n=Pe(r$,{optional:!0});return()=>n.initialize()}},{provide:ol,multi:!0,useFactory:()=>{const n=Pe(l$);return()=>{n.initialize()}}},{provide:XS,useFactory:a$}]}(()=>o)),a=r.injector.get(Ko,null);return o.runOutsideAngular(()=>{const s=o.onError.subscribe({next:l=>{a.handleError(l)}});r.onDestroy(()=>{Dg(this._modules,r),s.unsubscribe()})}),function qA(t,n,e){try{const i=e();return fh(i)?i.catch(o=>{throw n.runOutsideAngular(()=>t.handleError(o)),o}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(a,o,()=>{const s=r.injector.get(dw);return s.runInitializers(),s.donePromise.then(()=>(function EM(t){"string"==typeof t&&(DM=t.toLowerCase().replace(/_/g,"-"))}(r.injector.get(ba,Kc)||Kc),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,i=[]){const o=ek({},i);return function o$(t,n,e){const i=new Dv(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(e){const i=e.injector.get(Yr);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new S(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new S(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(pw,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(i){return new(i||t)(Me(gi))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})(),Ms=null;const ak=new He("");function sk(t,n,e=[]){const i=`Platform: ${n}`,o=new He(i);return(r=[])=>{let a=gw();if(!a||a.injector.get(ak,!1)){const s=[...e,...r,{provide:o,useValue:!0}];t?t(s):function h$(t){if(Ms&&!Ms.get(ak,!1))throw new S(400,!1);(function KA(){!function _(t){Z=t}(()=>{throw new S(600,!1)})})(),Ms=t;const n=t.get(rk);(function ck(t){t.get(bD,null)?.forEach(e=>e())})(t)}(function lk(t=[],n){return gi.create({name:n,providers:[{provide:My,useValue:"platform"},{provide:pw,useValue:new Set([()=>Ms=null])},...t]})}(s,i))}return function f$(t){const n=gw();if(!n)throw new S(401,!1);return n}()}}function gw(){return Ms?.get(rk)??null}let mi=(()=>{class t{static{this.__NG_ELEMENT_ID__=g$}}return t})();function g$(t){return function m$(t,n,e){if(sl(t)&&!e){const i=Qo(t.index,n);return new Pd(i,i)}return 47&t.type?new Pd(n[pi],n):null}(Fn(),je(),16==(16&t))}class fk{constructor(){}supports(n){return ig(n)}create(n){return new C$(n)}}const w$=(t,n)=>n;class C${constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||w$}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,o=0,r=null;for(;e||i;){const a=!i||e&&e.currentIndex{a=this._trackByFn(o,s),null!==e&&Object.is(e.trackById,a)?(i&&(e=this._verifyReinsertion(e,s,a,o)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,a,o),i=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,o){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,r,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,r,o)):n=this._addAfter(new x$(e,i),r,o),n}_verifyReinsertion(n,e,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,r=n._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const o=null===e?this._itHead:e._next;return n._next=o,n._prev=e,null===o?this._itTail=n:o._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new pk),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new pk),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class x${constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class S${constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class pk{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new S$,this.map.set(e,i)),i.add(n)}get(n,e){const o=this.map.get(n);return o?o.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function gk(t,n,e){const i=t.previousIndex;if(null===i)return i;let o=0;return e&&i{if(e&&e.key===o)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(o,i);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const o=this._records.get(n);this._maybeAddToChanges(o,e);const r=o._prev,a=o._next;return r&&(r._next=a),a&&(a._prev=r),o._next=null,o._prev=null,o}const i=new E$(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class E${constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function bk(){return new vw([new fk])}let vw=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:bk})}constructor(e){this.factories=e}static create(e,i){if(null!=i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||bk()),deps:[[t,new lc,new ps]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(null!=i)return i;throw new S(901,!1)}}return t})();function yk(){return new Ag([new mk])}let Ag=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:yk})}constructor(e){this.factories=e}static create(e,i){if(i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||yk()),deps:[[t,new lc,new ps]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(i)return i;throw new S(901,!1)}}return t})();const A$=sk(null,"core",[]);let k$=(()=>{class t{constructor(e){}static{this.\u0275fac=function(i){return new(i||t)(Me(Yr))}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({})}}return t})();function Nt(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function As(t,n=NaN){return isNaN(parseFloat(t))||isNaN(Number(t))?n:Number(t)}function Hk(t){const n=j(null);try{return t()}finally{j(n)}}let Yk=null;function za(){return Yk}class f9{}const qt=new He("");let xw=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Pe(g9),providedIn:"platform"})}}return t})();const p9=new He("");let g9=(()=>{class t extends xw{constructor(){super(),this._doc=Pe(qt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return za().getBaseHref(this._doc)}onPopState(e){const i=za().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=za().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,o){this._history.pushState(e,i,o)}replaceState(e,i,o){this._history.replaceState(e,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>new t,providedIn:"platform"})}}return t})();function Sw(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function zk(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function $a(t){return t&&"?"!==t[0]?"?"+t:t}let Cl=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Pe(Vk),providedIn:"root"})}}return t})();const $k=new He("");let Vk=(()=>{class t extends Cl{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Pe(qt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Sw(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+$a(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${i}${o}`:i}pushState(e,i,o,r){const a=this.prepareExternalUrl(o+$a(r));this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){const a=this.prepareExternalUrl(o+$a(r));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(xw),Me($k,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),m9=(()=>{class t extends Cl{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){const i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=Sw(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,o,r){let a=this.prepareExternalUrl(o+$a(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){let a=this.prepareExternalUrl(o+$a(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(xw),Me($k,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})(),xl=(()=>{class t{constructor(e){this._subject=new Ot,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function _9(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(zk(Zk(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+$a(i))}normalize(e){return t.stripTrailingSlash(function y9(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,Zk(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",o=null){this._locationStrategy.pushState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+$a(i)),o)}replaceState(e,i="",o=null){this._locationStrategy.replaceState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+$a(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(o=>o(e,i))}subscribe(e,i,o){return this._subject.subscribe({next:e,error:i,complete:o})}static{this.normalizeQueryParams=$a}static{this.joinWithSlash=Sw}static{this.stripTrailingSlash=zk}static{this.\u0275fac=function(i){return new(i||t)(Me(Cl))}}static{this.\u0275prov=$e({token:t,factory:()=>function b9(){return new xl(Me(Cl))}(),providedIn:"root"})}}return t})();function Zk(t){return t.replace(/\/index.html$/,"")}function eI(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[o,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(o.trim()===n)return decodeURIComponent(r)}return null}const Pw=/\s+/,tI=[];let Nw=(()=>{class t{constructor(e,i){this._ngEl=e,this._renderer=i,this.initialClasses=tI,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(Pw):tI}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(Pw):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){const o=this.stateMap.get(e);void 0!==o?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],o=e[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(Pw).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static{this.\u0275fac=function(i){return new(i||t)(K(Zt),K(Ha))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngClass",""]],inputs:{klass:[Le.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return t})();class oV{constructor(n,e,i,o){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Fw=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,o){this._viewContainer=e,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((o,r,a)=>{if(null==o.previousIndex)i.createEmbeddedView(this._template,new oV(o.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)i.remove(null===r?void 0:r);else if(null!==r){const s=i.get(r);i.move(s,a),iI(s,o)}});for(let o=0,r=i.length;o{iI(i.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,i){return!0}static{this.\u0275fac=function(i){return new(i||t)(K(So),K(po),K(vw))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return t})();function iI(t,n){t.context.$implicit=n.item}let ks=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new rV,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){oI("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){oI("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}static{this.\u0275fac=function(i){return new(i||t)(K(So),K(po))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return t})();class rV{constructor(){this.$implicit=null,this.ngIf=null}}function oI(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${li(n)}'.`)}let aI=(()=>{class t{constructor(e,i,o){this._ngEl=e,this._differs=i,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[o,r]=e.split("."),a=-1===o.indexOf("-")?void 0:_s.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,o,r?`${i}${r}`:i,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}static{this.\u0275fac=function(i){return new(i||t)(K(Zt),K(Ag),K(Ha))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return t})(),Gg=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const o=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,o)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,i,o),get:(e,i,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,o)}})}static{this.\u0275fac=function(i){return new(i||t)(K(So))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Gi]})}}return t})();class uV{createSubscription(n,e){return Hk(()=>n.subscribe({next:e,error:i=>{throw i}}))}dispose(n){Hk(()=>n.unsubscribe())}}class dV{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}}const hV=new dV,fV=new uV;let Bw=(()=>{class t{constructor(e){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(fh(e))return hV;if(QA(e))return fV;throw function $r(t,n){return new S(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(i){return new(i||t)(K(mi,16))}}static{this.\u0275pipe=Fo({name:"async",type:t,pure:!1,standalone:!0})}}return t})(),Is=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({})}}return t})();const lI="browser";function cI(t){return t===lI}function uI(t){return"server"===t}let PV=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:()=>cI(Pe(La))?new NV(Pe(qt),window):new LV})}}return t})();class NV{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){const e=function FV(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=i.currentNode;for(;o;){const r=o.shadowRoot;if(r){const a=r.getElementById(n)||r.querySelector(`[name="${n}"]`);if(a)return a}o=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],o-r[1])}}class LV{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}}class dI{}class dZ extends f9{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class $w extends dZ{static makeCurrent(){!function h9(t){Yk??=t}(new $w)}onAndCancel(n,e,i){return n.addEventListener(e,i),()=>{n.removeEventListener(e,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function hZ(){return _h=_h||document.querySelector("base"),_h?_h.getAttribute("href"):null}();return null==e?null:function fZ(t){return new URL(t,document.baseURI).pathname}(e)}resetBaseElement(){_h=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return eI(document.cookie,n)}}let _h=null,gZ=(()=>{class t{build(){return new XMLHttpRequest}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const Vw=new He("");let vI=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,o){return this._findPluginFor(i).addEventListener(e,i,o)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(r=>r.supports(e)),!i)throw new S(5101,!1);return this._eventNameToPlugin.set(e,i),i}static{this.\u0275fac=function(i){return new(i||t)(Me(Vw),Me(wt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();class wI{constructor(n){this._doc=n}}const Zw="ng-app-id";let CI=(()=>{class t{constructor(e,i,o,r={}){this.doc=e,this.appId=i,this.nonce=o,this.platformId=r,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=uI(r),this.resetHostNodes()}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.elements?.forEach(o=>o.remove()),i.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${Zw}="${this.appId}"]`);if(e?.length){const i=new Map;return e.forEach(o=>{null!=o.textContent&&i.set(o.textContent,o)}),i}return null}changeUsageCount(e,i){const o=this.styleRef;if(o.has(e)){const r=o.get(e);return r.usage+=i,r.usage}return o.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){const o=this.styleNodesInDOM,r=o?.get(i);if(r?.parentNode===e)return o.delete(i),r.removeAttribute(Zw),r;{const a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Zw,this.appId),e.appendChild(a),a}}addStyleToHost(e,i){const o=this.getStyleElement(e,i),r=this.styleRef,a=r.get(i)?.elements;a?a.push(o):r.set(i,{elements:[o],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(i){return new(i||t)(Me(qt),Me(xp),Me(h_,8),Me(La))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const Gw={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Uw=/%COMP%/g,_Z=new He("",{providedIn:"root",factory:()=>!0});function SI(t,n){return n.map(e=>e.replace(Uw,t))}let Ww=(()=>{class t{constructor(e,i,o,r,a,s,l,c=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.platformId=s,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=uI(s),this.defaultRenderer=new Xw(e,a,l,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Rr.ShadowDom&&(i={...i,encapsulation:Rr.Emulated});const o=this.getOrCreateRenderer(e,i);return o instanceof EI?o.applyToHost(e):o instanceof Jw&&o.applyStyles(),o}getOrCreateRenderer(e,i){const o=this.rendererByCompId;let r=o.get(i.id);if(!r){const a=this.doc,s=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(i.encapsulation){case Rr.Emulated:r=new EI(l,c,i,this.appId,u,a,s,d);break;case Rr.ShadowDom:return new xZ(l,c,e,i,a,s,this.nonce,d);default:r=new Jw(l,c,i,u,a,s,d)}o.set(i.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(i){return new(i||t)(Me(vI),Me(CI),Me(xp),Me(_Z),Me(qt),Me(La),Me(wt),Me(h_))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();class Xw{constructor(n,e,i,o){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(Gw[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(DI(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(DI(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new S(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,o){if(o){e=o+":"+e;const r=Gw[o];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const o=Gw[i];o?n.removeAttributeNS(o,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,o){o&(_s.DashCase|_s.Important)?n.style.setProperty(e,i,o&_s.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&_s.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){null!=n&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i){if("string"==typeof n&&!(n=za().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(i))}decoratePreventDefault(n){return e=>{if("__ngUnwrap__"===e)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))&&e.preventDefault()}}}function DI(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class xZ extends Xw{constructor(n,e,i,o,r,a,s,l){super(n,r,a,l),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=SI(o.id,o.styles);for(const u of c){const d=document.createElement("style");s&&d.setAttribute("nonce",s),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Jw extends Xw{constructor(n,e,i,o,r,a,s,l){super(n,r,a,s),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=l?SI(l,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class EI extends Jw{constructor(n,e,i,o,r,a,s,l){const c=o+"-"+i.id;super(n,e,i,r,a,s,l,c),this.contentAttr=function vZ(t){return"_ngcontent-%COMP%".replace(Uw,t)}(c),this.hostAttr=function wZ(t){return"_nghost-%COMP%".replace(Uw,t)}(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let SZ=(()=>{class t extends wI{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,o){return e.addEventListener(i,o,!1),()=>this.removeEventListener(e,i,o)}removeEventListener(e,i,o){return e.removeEventListener(i,o)}static{this.\u0275fac=function(i){return new(i||t)(Me(qt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const TI=["alt","control","meta","shift"],DZ={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},EZ={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let TZ=(()=>{class t extends wI{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,o){const r=t.parseEventName(i),a=t.eventCallback(r.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>za().onAndCancel(e,r.domEventName,a))}static parseEventName(e){const i=e.toLowerCase().split("."),o=i.shift();if(0===i.length||"keydown"!==o&&"keyup"!==o)return null;const r=t._normalizeKey(i.pop());let a="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),a="code."),TI.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),a+=c+".")}),a+=r,0!=i.length||0===r.length)return null;const l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(e,i){let o=DZ[e.key]||e.key,r="";return i.indexOf("code.")>-1&&(o=e.code,r="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),TI.forEach(a=>{a!==o&&(0,EZ[a])(e)&&(r+=a+".")}),r+=o,r===i)}static eventCallback(e,i,o){return r=>{t.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}static{this.\u0275fac=function(i){return new(i||t)(Me(qt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const AI=[{provide:La,useValue:lI},{provide:bD,useValue:function MZ(){$w.makeCurrent()},multi:!0},{provide:qt,useFactory:function kZ(){return function S8(t){d_=t}(document),document},deps:[]}],IZ=sk(A$,"browser",AI),OZ=new He(""),kI=[{provide:Sg,useClass:class pZ{addToWindow(n){Gt.getAngularTestability=(i,o=!0)=>{const r=n.findTestabilityInTree(i,o);if(null==r)throw new S(5103,!1);return r},Gt.getAllAngularTestabilities=()=>n.getAllTestabilities(),Gt.getAllAngularRootElements=()=>n.getAllRootElements(),Gt.frameworkStabilizers||(Gt.frameworkStabilizers=[]),Gt.frameworkStabilizers.push(i=>{const o=Gt.getAllAngularTestabilities();let r=o.length;const a=function(){r--,0==r&&i()};o.forEach(s=>{s.whenStable(a)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?za().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:JA,useClass:sw,deps:[wt,lw,Sg]},{provide:sw,useClass:sw,deps:[wt,lw,Sg]}],II=[{provide:My,useValue:"root"},{provide:Ko,useFactory:function AZ(){return new Ko},deps:[]},{provide:Vw,useClass:SZ,multi:!0,deps:[qt,wt,La]},{provide:Vw,useClass:TZ,multi:!0,deps:[qt]},Ww,CI,vI,{provide:sv,useExisting:Ww},{provide:dI,useClass:gZ,deps:[]},[]];let Qw=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:xp,useValue:e.appId}]}}static{this.\u0275fac=function(i){return new(i||t)(Me(OZ,12))}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({providers:[...II,...kI],imports:[Is,k$]})}}return t})(),RZ=(()=>{class t{constructor(e){this._doc=e,this._dom=za()}addTag(e,i=!1){return e?this._getOrCreateElement(e,i):null}addTags(e,i=!1){return e?e.reduce((o,r)=>(r&&o.push(this._getOrCreateElement(r,i)),o),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];const i=this._doc.querySelectorAll(`meta[${e}]`);return i?[].slice.call(i):[]}updateTag(e,i){if(!e)return null;i=i||this._parseSelector(e);const o=this.getTag(i);return o?this._setMetaElementAttributes(e,o):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,i=!1){if(!i){const a=this._parseSelector(e),s=this.getTags(a).filter(l=>this._containsAttributes(e,l))[0];if(void 0!==s)return s}const o=this._dom.createElement("meta");return this._setMetaElementAttributes(e,o),this._doc.getElementsByTagName("head")[0].appendChild(o),o}_setMetaElementAttributes(e,i){return Object.keys(e).forEach(o=>i.setAttribute(this._getMetaKeyMap(o),e[o])),i}_parseSelector(e){const i=e.name?"name":"property";return`${i}="${e[i]}"`}_containsAttributes(e,i){return Object.keys(e).every(o=>i.getAttribute(this._getMetaKeyMap(o))===e[o])}_getMetaKeyMap(e){return PZ[e]||e}static{this.\u0275fac=function(i){return new(i||t)(Me(qt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const PZ={httpEquiv:"http-equiv"};let OI=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(i){return new(i||t)(Me(qt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Xg=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:function(i){let o=null;return o=i?new(i||t):Me(jZ),o},providedIn:"root"})}}return t})(),jZ=(()=>{class t extends Xg{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Ui.NONE:return i;case Ui.HTML:return da(i,"HTML")?qo(i):FD(this._doc,String(i)).toString();case Ui.STYLE:return da(i,"Style")?qo(i):i;case Ui.SCRIPT:if(da(i,"Script"))return qo(i);throw new S(5200,!1);case Ui.URL:return da(i,"URL")?qo(i):Op(String(i));case Ui.RESOURCE_URL:if(da(i,"ResourceURL"))return qo(i);throw new S(5201,!1);default:throw new S(5202,!1)}}bypassSecurityTrustHtml(e){return function Z8(t){return new B8(t)}(e)}bypassSecurityTrustStyle(e){return function G8(t){return new H8(t)}(e)}bypassSecurityTrustScript(e){return function U8(t){return new Y8(t)}(e)}bypassSecurityTrustUrl(e){return function W8(t){return new z8(t)}(e)}bypassSecurityTrustResourceUrl(e){return function X8(t){return new $8(t)}(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(qt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Xt=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(Xt||{});const Ga="*";function Ua(t,n){return{type:Xt.Trigger,name:t,definitions:n,options:{}}}function wr(t,n=null){return{type:Xt.Animate,styles:n,timings:t}}function Jg(t,n=null){return{type:Xt.Group,steps:t,options:n}}function oi(t){return{type:Xt.Style,styles:t,offset:null}}function Mo(t,n,e){return{type:Xt.State,name:t,styles:n,options:e}}function ir(t,n,e=null){return{type:Xt.Transition,expr:t,animation:n,options:e}}function wh(t=null){return{type:Xt.AnimateChild,options:t}}function Ch(t,n,e=null){return{type:Xt.Query,selector:t,animation:n,options:e}}class xh{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class FI{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,o=0;const r=this.players.length;0==r?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==r&&this._onFinish()}),a.onDestroy(()=>{++i==r&&this._onDestroy()}),a.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const o=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(o)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const LI=["toast-component",""];function $Z(t,n){if(1&t){const e=Tn();ye(0,"button",5),_t("click",function(){return Yt(e),zt(rt().remove())}),ye(1,"span",6),bn(2,"\xd7"),ve()()}}function VZ(t,n){if(1&t&&(Jd(0),bn(1),Qd()),2&t){const e=rt(2);Ne(),yr("[",e.duplicatesCount+1,"]")}}function ZZ(t,n){if(1&t&&(ye(0,"div"),bn(1),Mt(2,VZ,2,1,"ng-container",4),ve()),2&t){const e=rt();eo(e.options.titleClass),Kt("aria-label",e.title),Ne(),yr(" ",e.title," "),Ne(),Je("ngIf",e.duplicatesCount)}}function GZ(t,n){if(1&t&&at(0,"div",7),2&t){const e=rt();eo(e.options.messageClass),Je("innerHTML",e.message,A_)}}function UZ(t,n){if(1&t&&(ye(0,"div",8),bn(1),ve()),2&t){const e=rt();eo(e.options.messageClass),Kt("aria-label",e.message),Ne(),yr(" ",e.message," ")}}function WZ(t,n){if(1&t&&(ye(0,"div"),at(1,"div",9),ve()),2&t){const e=rt();Ne(),Ds("width",e.width+"%")}}class tG{_attachedHost;component;viewContainerRef;injector;constructor(n,e){this.component=n,this.injector=e}attach(n,e){return this._attachedHost=n,n.attach(this,e)}detach(){const n=this._attachedHost;if(n)return this._attachedHost=void 0,n.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class nG{_attachedPortal;_disposeFn;attach(n,e){return this._attachedPortal=n,this.attachComponentPortal(n,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(n){this._disposeFn=n}}class iG{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new vt;_activate=new vt;_manualClose=new vt;_resetTimeout=new vt;_countDuplicate=new vt;constructor(n){this._overlayRef=n}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(n,e){n&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}class Qg{toastId;config;message;title;toastType;toastRef;_onTap=new vt;_onAction=new vt;constructor(n,e,i,o,r,a){this.toastId=n,this.config=e,this.message=i,this.title=o,this.toastType=r,this.toastRef=a,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(n){this._onAction.next(n)}onAction(){return this._onAction.asObservable()}}const BI=new He("ToastConfig");class oG extends nG{_hostDomElement;_componentFactoryResolver;_appRef;constructor(n,e,i){super(),this._hostDomElement=n,this._componentFactoryResolver=e,this._appRef=i}attachComponentPortal(n,e){const i=this._componentFactoryResolver.resolveComponentFactory(n.component);let o;return o=i.create(n.injector),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.detachView(o.hostView),o.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(o),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(o)),o}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let rG=(()=>{class t{_document=Pe(qt);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._document.createElement("div");e.classList.add("overlay-container"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),this._containerElement=e}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class aG{_portalHost;constructor(n){this._portalHost=n}attach(n,e=!0){return this._portalHost.attach(n,e)}detach(){return this._portalHost.detach()}}let sG=(()=>{class t{_overlayContainer=Pe(rG);_componentFactoryResolver=Pe(fl);_appRef=Pe(Yr);_document=Pe(qt);_paneElements=new Map;create(e,i){return this._createOverlayRef(this.getPaneElement(e,i))}getPaneElement(e="",i){return this._paneElements.get(i)||this._paneElements.set(i,{}),this._paneElements.get(i)[e]||(this._paneElements.get(i)[e]=this._createPaneElement(e,i)),this._paneElements.get(i)[e]}_createPaneElement(e,i){const o=this._document.createElement("div");return o.id="toast-container",o.classList.add(e),o.classList.add("toast-container"),i?i.getContainerElement().appendChild(o):this._overlayContainer.getContainerElement().appendChild(o),o}_createPortalHost(e){return new oG(e,this._componentFactoryResolver,this._appRef)}_createOverlayRef(e){return new aG(this._createPortalHost(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Sl=(()=>{class t{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(e,i,o,r,a){this.overlay=i,this._injector=o,this.sanitizer=r,this.ngZone=a,this.toastrConfig={...e.default,...e.config},e.config.iconClasses&&(this.toastrConfig.iconClasses={...e.default.iconClasses,...e.config.iconClasses})}show(e,i,o={},r=""){return this._preBuildNotification(r,e,i,this.applyConfig(o))}success(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",e,i,this.applyConfig(o))}error(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",e,i,this.applyConfig(o))}info(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",e,i,this.applyConfig(o))}warning(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",e,i,this.applyConfig(o))}clear(e){for(const i of this.toasts)if(void 0!==e){if(i.toastId===e)return void i.toastRef.manualClose()}else i.toastRef.manualClose()}remove(e){const i=this._findToast(e);if(!i||(i.activeToast.toastRef.close(),this.toasts.splice(i.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActivethis._buildNotification(e,i,o,r)):this._buildNotification(e,i,o,r)}_buildNotification(e,i,o,r){if(!r.toastComponent)throw new Error("toastComponent required");const a=this.findDuplicate(o,i,this.toastrConfig.resetTimeoutOnDuplicate&&r.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&o||i)&&this.toastrConfig.preventDuplicates&&null!==a)return a;this.previousToastMessage=i;let s=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(s=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const l=this.overlay.create(r.positionClass,this.overlayContainer);this.index=this.index+1;let c=i;i&&r.enableHtml&&(c=this.sanitizer.sanitize(Ui.HTML,i));const u=new iG(l),d=new Qg(this.index,r,c,o,e,u),p=gi.create({providers:[{provide:Qg,useValue:d}],parent:this._injector}),g=new tG(r.toastComponent,p),b=l.attach(g,r.newestOnTop);u.componentInstance=b.instance;const T={toastId:this.index,title:o||"",message:i||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:b};return s||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{T.toastRef.activate()})),this.toasts.push(T),T}static \u0275fac=function(i){return new(i||t)(Me(BI),Me(sG),Me(gi),Me(Xg),Me(wt))};static \u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const lG={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:(()=>{class t{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=-1;toastClasses="";state;get displayStyle(){if("inactive"===this.state.value)return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(e,i,o){this.toastrService=e,this.toastPackage=i,this.ngZone=o,this.message=i.message,this.title=i.title,this.options=i.config,this.originalTimeout=i.config.timeOut,this.toastClasses=`${i.toastType} ${i.config.toastClass}`,this.sub=i.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=i.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=i.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=i.toastRef.countDuplicate().subscribe(r=>{this.duplicatesCount=r}),this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}}}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state={...this.state,value:"active"},!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state={...this.state,value:"active"},this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state={...this.state,value:"removed"},this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(e,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(e),i)):this.timeout=setTimeout(()=>e(),i)}outsideInterval(e,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(e),i)):this.intervalId=setInterval(()=>e(),i)}runInsideAngular(e){this.ngZone?this.ngZone.run(()=>e()):e()}static \u0275fac=function(i){return new(i||t)(K(Sl),K(Qg),K(wt))};static \u0275cmp=pn({type:t,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(i,o){1&i&&_t("click",function(){return o.tapToast()})("mouseenter",function(){return o.stickAround()})("mouseleave",function(){return o.delayedHideToast()}),2&i&&(Gv("@flyInOut",o.state),eo(o.toastClasses),Ds("display",o.displayStyle))},standalone:!0,features:[Zn],attrs:LI,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(i,o){1&i&&Mt(0,$Z,3,0,"button",0)(1,ZZ,3,5,"div",1)(2,GZ,1,3,"div",2)(3,UZ,2,4,"div",3)(4,WZ,2,2,"div",4),2&i&&(Je("ngIf",o.options.closeButton),Ne(),Je("ngIf",o.title),Ne(),Je("ngIf",o.message&&o.options.enableHtml),Ne(),Je("ngIf",o.message&&!o.options.enableHtml),Ne(),Je("ngIf",o.options.progressBar))},dependencies:[ks],encapsulation:2,data:{animation:[Ua("flyInOut",[Mo("inactive",oi({opacity:0})),Mo("active",oi({opacity:1})),Mo("removed",oi({opacity:0})),ir("inactive => active",wr("{{ easeTime }}ms {{ easing }}")),ir("active => removed",wr("{{ easeTime }}ms {{ easing }}"))])]}})}return t})()},cG=(t={})=>dc([{provide:BI,useValue:{default:lG,config:t}}]);let uG=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[cG(e)]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=nn({type:t});static \u0275inj=en({})}return t})();function HI(t){return t&&Ae(t.schedule)}function qw(t){return t[t.length-1]}function YI(t){return Ae(qw(t))?t.pop():void 0}function Sh(t){return HI(qw(t))?t.pop():void 0}function Os(t){return this instanceof Os?(this.v=t,this):new Os(t)}function UI(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function o0(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(r){e[r]=t[r]&&function(a){return new Promise(function(s,l){!function o(r,a,s,l){Promise.resolve(l).then(function(c){r({value:c,done:s})},a)}(s,l,(a=t[r](a)).done,a.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const r0=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function WI(t){return Ae(t?.then)}function XI(t){return Ae(t[ea])}function JI(t){return Symbol.asyncIterator&&Ae(t?.[Symbol.asyncIterator])}function QI(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const KI=function IG(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function qI(t){return Ae(t?.[KI])}function e2(t){return function GI(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=e.apply(t,n||[]),r=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(h){i[h]&&(o[h]=function(p){return new Promise(function(g,b){r.push([h,p,g,b])>1||s(h,p)})})}function s(h,p){try{!function l(h){h.value instanceof Os?Promise.resolve(h.value.v).then(c,u):d(r[0][2],h)}(i[h](p))}catch(g){d(r[0][3],g)}}function c(h){s("next",h)}function u(h){s("throw",h)}function d(h,p){h(p),r.shift(),r.length&&s(r[0][0],r[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:o}=yield Os(e.read());if(o)return yield Os(void 0);yield yield Os(i)}}finally{e.releaseLock()}})}function t2(t){return Ae(t?.getReader)}function io(t){if(t instanceof On)return t;if(null!=t){if(XI(t))return function OG(t){return new On(n=>{const e=t[ea]();if(Ae(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(r0(t))return function RG(t){return new On(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,tt)})}(t);if(JI(t))return n2(t);if(qI(t))return function NG(t){return new On(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(t2(t))return function FG(t){return n2(e2(t))}(t)}throw QI(t)}function n2(t){return new On(n=>{(function LG(t,n){var e,i,o,r;return function VI(t,n,e,i){return new(e||(e=Promise))(function(r,a){function s(u){try{c(i.next(u))}catch(d){a(d)}}function l(u){try{c(i.throw(u))}catch(d){a(d)}}function c(u){u.done?r(u.value):function o(r){return r instanceof e?r:new e(function(a){a(r)})}(u.value).then(s,l)}c((i=i.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=UI(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function Wa(t,n,e,i=0,o=!1){const r=n.schedule(function(){e(),o?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(r),!o)return r}function o2(t,n=0){return $n((e,i)=>{e.subscribe(Pn(i,o=>Wa(i,t,()=>i.next(o),n),()=>Wa(i,t,()=>i.complete(),n),o=>Wa(i,t,()=>i.error(o),n)))})}function r2(t,n=0){return $n((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function a2(t,n){if(!t)throw new Error("Iterable cannot be null");return new On(e=>{Wa(e,n,()=>{const i=t[Symbol.asyncIterator]();Wa(e,n,()=>{i.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function bi(t,n){return n?function $G(t,n){if(null!=t){if(XI(t))return function jG(t,n){return io(t).pipe(r2(n),o2(n))}(t,n);if(r0(t))return function HG(t,n){return new On(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(WI(t))return function BG(t,n){return io(t).pipe(r2(n),o2(n))}(t,n);if(JI(t))return a2(t,n);if(qI(t))return function YG(t,n){return new On(e=>{let i;return Wa(e,n,()=>{i=t[KI](),Wa(e,n,()=>{let o,r;try{({value:o,done:r}=i.next())}catch(a){return void e.error(a)}r?e.complete():e.next(o)},0,!0)}),()=>Ae(i?.return)&&i.return()})}(t,n);if(t2(t))return function zG(t,n){return a2(e2(t),n)}(t,n)}throw QI(t)}(t,n):io(t)}function Et(...t){return bi(t,Sh(t))}function Wi(t,n,e=1/0){return Ae(n)?Wi((i,o)=>Bt((r,a)=>n(i,r,o,a))(io(t(i,o))),e):("number"==typeof n&&(e=n),$n((i,o)=>function VG(t,n,e,i,o,r,a,s){const l=[];let c=0,u=0,d=!1;const h=()=>{d&&!l.length&&!c&&n.complete()},p=b=>c{r&&n.next(b),c++;let T=!1;io(e(b,u++)).subscribe(Pn(n,D=>{o?.(D),r?p(D):n.next(D)},()=>{T=!0},void 0,()=>{if(T)try{for(c--;l.length&&cg(D)):g(D)}h()}catch(D){n.error(D)}}))};return t.subscribe(Pn(n,p,()=>{d=!0,h()})),()=>{s?.()}}(i,o,t,e)))}function au(t,n){return Ae(n)?Wi(t,n,1):Wi(t,1)}function ui(t,n){return $n((e,i)=>{let o=0;e.subscribe(Pn(i,r=>t.call(n,r,o++)&&i.next(r)))})}function Dl(t){return $n((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function Ni(t,n){return $n((e,i)=>{let o=null,r=0,a=!1;const s=()=>a&&!o&&i.complete();e.subscribe(Pn(i,l=>{o?.unsubscribe();let c=0;const u=r++;io(t(l,u)).subscribe(o=Pn(i,d=>i.next(n?n(l,d,u,c++):d),()=>{o=null,s()}))},()=>{a=!0,s()}))})}class Kg{}class qg{}class Cr{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const o=e.slice(0,i),r=o.toLowerCase(),a=e.slice(i+1).trim();this.maybeSetNormalizedName(o,r),this.headers.has(r)?this.headers.get(r).push(a):this.headers.set(r,[a])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.setHeaderEntries(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof Cr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new Cr;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Cr?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const o=("a"===n.op?this.headers.get(e):void 0)||[];o.push(...i),this.headers.set(e,o);break;case"d":const r=n.value;if(r){let a=this.headers.get(e);if(!a)return;a=a.filter(s=>-1===r.indexOf(s)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}setHeaderEntries(n,e){const i=(Array.isArray(e)?e:[e]).map(r=>r.toString()),o=n.toLowerCase();this.headers.set(o,i),this.maybeSetNormalizedName(n,o)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class ZG{encodeKey(n){return s2(n)}encodeValue(n){return s2(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const UG=/%(\d[a-f0-9])/gi,WG={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function s2(t){return encodeURIComponent(t).replace(UG,(n,e)=>WG[e]??n)}function em(t){return`${t}`}class Rs{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new ZG,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function GG(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const r=o.indexOf("="),[a,s]=-1==r?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,r)),n.decodeValue(o.slice(r+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],o=Array.isArray(i)?i.map(em):[em(i)];this.map.set(e,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const o=n[i];Array.isArray(o)?o.forEach(r=>{e.push({param:i,value:r,op:"a"})}):e.push({param:i,value:o,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new Rs({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(em(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const o=i.indexOf(em(n.value));-1!==o&&i.splice(o,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class XG{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function l2(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function c2(t){return typeof Blob<"u"&&t instanceof Blob}function u2(t){return typeof FormData<"u"&&t instanceof FormData}class Dh{constructor(n,e,i,o){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function JG(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==i?i:null,r=o):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),this.transferCache=r.transferCache),this.headers??=new Cr,this.context??=new XG,this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":sd.set(h,n.setHeaders[h]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((d,h)=>d.set(h,n.setParams[h]),c)),new Dh(e,i,r,{params:c,headers:l,context:u,reportProgress:s,responseType:o,withCredentials:a})}}var Ps=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Ps||{});class a0{constructor(n,e=Eh.Ok,i="OK"){this.headers=n.headers||new Cr,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class tm extends a0{constructor(n={}){super(n),this.type=Ps.ResponseHeader}clone(n={}){return new tm({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class El extends a0{constructor(n={}){super(n),this.type=Ps.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new El({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Xa extends a0{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}var Eh=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(Eh||{});function s0(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}let su=(()=>{class t{constructor(e){this.handler=e}request(e,i,o={}){let r;if(e instanceof Dh)r=e;else{let l,c;l=o.headers instanceof Cr?o.headers:new Cr(o.headers),o.params&&(c=o.params instanceof Rs?o.params:new Rs({fromObject:o.params})),r=new Dh(e,i,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}const a=Et(r).pipe(au(l=>this.handler.handle(l)));if(e instanceof Dh||"events"===o.observe)return a;const s=a.pipe(ui(l=>l instanceof El));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(Bt(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return s.pipe(Bt(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return s.pipe(Bt(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return s.pipe(Bt(l=>l.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Rs).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,o={}){return this.request("PATCH",e,s0(o,i))}post(e,i,o={}){return this.request("POST",e,s0(o,i))}put(e,i,o={}){return this.request("PUT",e,s0(o,i))}static{this.\u0275fac=function(i){return new(i||t)(Me(Kg))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function h2(t,n){return n(t)}function nU(t,n){return(e,i)=>n.intercept(e,{handle:o=>t(o,i)})}const oU=new He(""),Th=new He(""),f2=new He(""),p2=new He("");function rU(){let t=null;return(n,e)=>{null===t&&(t=(Pe(oU,{optional:!0})??[]).reduceRight(nU,h2));const i=Pe(Cs),o=i.add();return t(n,e).pipe(Dl(()=>i.remove(o)))}}let g2=(()=>{class t extends Kg{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=Pe(Cs);const o=Pe(p2,{optional:!0});this.backend=o??e}handle(e){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(Th),...this.injector.get(f2,[])]));this.chain=o.reduceRight((r,a)=>function iU(t,n,e){return(i,o)=>ia(e,()=>n(i,r=>t(r,o)))}(r,a,this.injector),h2)}const i=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(Dl(()=>this.pendingTasks.remove(i)))}static{this.\u0275fac=function(i){return new(i||t)(Me(qg),Me(Lo))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const uU=/^\)\]\}',?\n/;let b2=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new S(-2800,!1);const i=this.xhrFactory;return(i.\u0275loadImpl?bi(i.\u0275loadImpl()):Et(null)).pipe(Ni(()=>new On(r=>{const a=i.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((b,T)=>a.setRequestHeader(b,T.join(","))),e.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const b=e.detectContentTypeHeader();null!==b&&a.setRequestHeader("Content-Type",b)}if(e.responseType){const b=e.responseType.toLowerCase();a.responseType="json"!==b?b:"text"}const s=e.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const b=a.statusText||"OK",T=new Cr(a.getAllResponseHeaders()),D=function dU(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(a)||e.url;return l=new tm({headers:T,status:a.status,statusText:b,url:D}),l},u=()=>{let{headers:b,status:T,statusText:D,url:H}=c(),oe=null;T!==Eh.NoContent&&(oe=typeof a.response>"u"?a.responseText:a.response),0===T&&(T=oe?Eh.Ok:0);let le=T>=200&&T<300;if("json"===e.responseType&&"string"==typeof oe){const G=oe;oe=oe.replace(uU,"");try{oe=""!==oe?JSON.parse(oe):null}catch(pe){oe=G,le&&(le=!1,oe={error:pe,text:oe})}}le?(r.next(new El({body:oe,headers:b,status:T,statusText:D,url:H||void 0})),r.complete()):r.error(new Xa({error:oe,headers:b,status:T,statusText:D,url:H||void 0}))},d=b=>{const{url:T}=c(),D=new Xa({error:b,status:a.status||0,statusText:a.statusText||"Unknown Error",url:T||void 0});r.error(D)};let h=!1;const p=b=>{h||(r.next(c()),h=!0);let T={type:Ps.DownloadProgress,loaded:b.loaded};b.lengthComputable&&(T.total=b.total),"text"===e.responseType&&a.responseText&&(T.partialText=a.responseText),r.next(T)},g=b=>{let T={type:Ps.UploadProgress,loaded:b.loaded};b.lengthComputable&&(T.total=b.total),r.next(T)};return a.addEventListener("load",u),a.addEventListener("error",d),a.addEventListener("timeout",d),a.addEventListener("abort",d),e.reportProgress&&(a.addEventListener("progress",p),null!==s&&a.upload&&a.upload.addEventListener("progress",g)),a.send(s),r.next({type:Ps.Sent}),()=>{a.removeEventListener("error",d),a.removeEventListener("abort",d),a.removeEventListener("load",u),a.removeEventListener("timeout",d),e.reportProgress&&(a.removeEventListener("progress",p),null!==s&&a.upload&&a.upload.removeEventListener("progress",g)),a.readyState!==a.DONE&&a.abort()}})))}static{this.\u0275fac=function(i){return new(i||t)(Me(dI))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const u0=new He(""),y2=new He("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),_2=new He("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class v2{}let pU=(()=>{class t{constructor(e,i,o){this.doc=e,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=eI(e,this.cookieName),this.lastCookieString=e),this.lastToken}static{this.\u0275fac=function(i){return new(i||t)(Me(qt),Me(La),Me(y2))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function gU(t,n){const e=t.url.toLowerCase();if(!Pe(u0)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=Pe(v2).getToken(),o=Pe(_2);return null!=i&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,i)})),n(t)}var Ns=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Ns||{});function Tl(t,n){return{\u0275kind:t,\u0275providers:n}}function mU(...t){const n=[su,b2,g2,{provide:Kg,useExisting:g2},{provide:qg,useExisting:b2},{provide:Th,useValue:gU,multi:!0},{provide:u0,useValue:!0},{provide:v2,useClass:pU}];for(const e of t)n.push(...e.\u0275providers);return dc(n)}const w2=new He("");let yU=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({providers:[mU(Tl(Ns.LegacyInterceptors,[{provide:w2,useFactory:rU},{provide:Th,useExisting:w2,multi:!0}]))]})}}return t})();const{isArray:SU}=Array,{getPrototypeOf:DU,prototype:EU,keys:TU}=Object;function M2(t){if(1===t.length){const n=t[0];if(SU(n))return{args:n,keys:null};if(function MU(t){return t&&"object"==typeof t&&DU(t)===EU}(n)){const e=TU(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:AU}=Array;function d0(t){return Bt(n=>function kU(t,n){return AU(n)?t(...n):t(n)}(t,n))}function A2(t,n){return t.reduce((e,i,o)=>(e[i]=n[o],e),{})}function Mh(...t){const n=YI(t),{args:e,keys:i}=M2(t),o=new On(r=>{const{length:a}=e;if(!a)return void r.complete();const s=new Array(a);let l=a,c=a;for(let u=0;u{d||(d=!0,c--),s[u]=h},()=>l--,void 0,()=>{(!l||!d)&&(c||r.next(i?A2(i,s):s),r.complete())}))}});return n?o.pipe(d0(n)):o}let k2=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static{this.\u0275fac=function(i){return new(i||t)(K(Ha),K(Zt))}}static{this.\u0275dir=gt({type:t})}}return t})(),Ml=(()=>{class t extends k2{static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=yi(t)))(o||t)}})()}static{this.\u0275dir=gt({type:t,features:[an]})}}return t})();const or=new He(""),OU={provide:or,useExisting:Dn(()=>Ah),multi:!0},PU=new He("");let Ah=(()=>{class t extends k2{constructor(e,i,o){super(e,i),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function RU(){const t=za()?za().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static{this.\u0275fac=function(i){return new(i||t)(K(Ha),K(Zt),K(PU,8))}}static{this.\u0275dir=gt({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){1&i&&_t("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[wn([OU]),an]})}}return t})();function Fs(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function O2(t){return null!=t&&"number"==typeof t.length}const Xi=new He(""),Ls=new He(""),NU=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class js{static min(n){return function R2(t){return n=>{if(Fs(n.value)||Fs(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{if(Fs(n.value)||Fs(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return N2(n)}static requiredTrue(n){return function F2(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function L2(t){return Fs(t.value)||NU.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function j2(t){return n=>Fs(n.value)||!O2(n.value)?null:n.value.lengthO2(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return function H2(t){if(!t)return im;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(Fs(i.value))return null;const o=i.value;return n.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}(n)}static nullValidator(n){return null}static compose(n){return G2(n)}static composeAsync(n){return U2(n)}}function N2(t){return Fs(t.value)?{required:!0}:null}function im(t){return null}function Y2(t){return null!=t}function z2(t){return fh(t)?bi(t):t}function $2(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function V2(t,n){return n.map(e=>e(t))}function Z2(t){return t.map(n=>function FU(t){return!t.validate}(n)?n:e=>n.validate(e))}function G2(t){if(!t)return null;const n=t.filter(Y2);return 0==n.length?null:function(e){return $2(V2(e,n))}}function h0(t){return null!=t?G2(Z2(t)):null}function U2(t){if(!t)return null;const n=t.filter(Y2);return 0==n.length?null:function(e){return Mh(V2(e,n).map(z2)).pipe(Bt($2))}}function f0(t){return null!=t?U2(Z2(t)):null}function W2(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function X2(t){return t._rawValidators}function J2(t){return t._rawAsyncValidators}function p0(t){return t?Array.isArray(t)?t:[t]:[]}function om(t,n){return Array.isArray(t)?t.includes(n):t===n}function Q2(t,n){const e=p0(n);return p0(t).forEach(o=>{om(e,o)||e.push(o)}),e}function K2(t,n){return p0(n).filter(e=>!om(t,e))}class q2{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=h0(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=f0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Ao extends q2{get formDirective(){return null}get path(){return null}}class ya extends q2{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class eO{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let rm=(()=>{class t extends eO{constructor(e){super(e)}static{this.\u0275fac=function(i){return new(i||t)(K(ya,2))}}static{this.\u0275dir=gt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){2&i&&un("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[an]})}}return t})();const kh="VALID",sm="INVALID",lu="PENDING",Ih="DISABLED";function b0(t){return(lm(t)?t.validators:t)||null}function y0(t,n){return(lm(n)?n.asyncValidators:t)||null}function lm(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function nO(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new S(1e3,"");if(!i[e])throw new S(1001,"")}function iO(t,n,e){t._forEachChild((i,o)=>{if(void 0===e[o])throw new S(1002,"")})}class cm{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===kh}get invalid(){return this.status===sm}get pending(){return this.status==lu}get disabled(){return this.status===Ih}get enabled(){return this.status!==Ih}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(Q2(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Q2(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(K2(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(K2(n,this._rawAsyncValidators))}hasValidator(n){return om(this._rawValidators,n)}hasAsyncValidator(n){return om(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=lu,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Ih,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=kh,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===kh||this.status===lu)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ih:kh}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=lu,this._hasOwnPendingAsyncValidator=!0;const e=z2(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,o)=>i&&i._find(o),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new Ot,this.statusChanges=new Ot}_calculateStatus(){return this._allControlsDisabled()?Ih:this.errors?sm:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(lu)?lu:this._anyControlsHaveStatus(sm)?sm:kh}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){lm(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function YU(t){return Array.isArray(t)?h0(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function zU(t){return Array.isArray(t)?f0(t):t||null}(this._rawAsyncValidators)}}class Oh extends cm{constructor(n,e,i){super(b0(e),y0(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){iO(this,0,n),Object.keys(n).forEach(i=>{nO(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const o=this.controls[i];o&&o.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,o)=>{i.reset(n?n[o]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,o)=>((i.enabled||this.disabled)&&(e[o]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((o,r)=>{i=e(i,o,r)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class oO extends Oh{}const Al=new He("CallSetDisabledState",{providedIn:"root",factory:()=>Rh}),Rh="always";function Ph(t,n,e=Rh){_0(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function VU(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&rO(t,n)})}(t,n),function GU(t,n){const e=(i,o)=>{n.valueAccessor.writeValue(i),o&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function ZU(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&rO(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function $U(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function dm(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),fm(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function hm(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function _0(t,n){const e=X2(t);null!==n.validator?t.setValidators(W2(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=J2(t);null!==n.asyncValidator?t.setAsyncValidators(W2(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const o=()=>t.updateValueAndValidity();hm(n._rawValidators,o),hm(n._rawAsyncValidators,o)}function fm(t,n){let e=!1;if(null!==t){if(null!==n.validator){const o=X2(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(null!==n.asyncValidator){const o=J2(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}const i=()=>{};return hm(n._rawValidators,i),hm(n._rawAsyncValidators,i),e}function rO(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function aO(t,n){_0(t,n)}function w0(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}function sO(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function C0(t,n){if(!n)return null;let e,i,o;return Array.isArray(n),n.forEach(r=>{r.constructor===Ah?e=r:function XU(t){return Object.getPrototypeOf(t.constructor)===Ml}(r)?i=r:o=r}),o||i||e||null}const QU={provide:Ao,useExisting:Dn(()=>Fh)},Nh=(()=>Promise.resolve())();let Fh=(()=>{class t extends Ao{constructor(e,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ot,this.form=new Oh({},h0(e),f0(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Nh.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Ph(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Nh.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Nh.then(()=>{const i=this._findContainer(e.path),o=new Oh({});aO(o,e),i.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Nh.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){Nh.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,sO(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static{this.\u0275fac=function(i){return new(i||t)(K(Xi,10),K(Ls,10),K(Al,8))}}static{this.\u0275dir=gt({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,o){1&i&&_t("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[Le.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[wn([QU]),an]})}}return t})();function lO(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function cO(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const Vr=class extends cm{constructor(n=null,e,i){super(b0(e),y0(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),lm(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=cO(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){lO(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){lO(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){cO(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},eW={provide:ya,useExisting:Dn(()=>Lh)},hO=(()=>Promise.resolve())();let Lh=(()=>{class t extends ya{constructor(e,i,o,r,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this.control=new Vr,this._registered=!1,this.name="",this.update=new Ot,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=C0(0,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),w0(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ph(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){hO.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,o=0!==i&&Nt(i);hO.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function um(t,n){return[...n.path,t]}(e,this._parent):[e]}static{this.\u0275fac=function(i){return new(i||t)(K(Ao,9),K(Xi,10),K(Ls,10),K(or,10),K(mi,8),K(Al,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[Le.None,"disabled","isDisabled"],model:[Le.None,"ngModel","model"],options:[Le.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[wn([eW]),an,Gi]})}}return t})();const x0=new He(""),aW={provide:ya,useExisting:Dn(()=>S0)};let S0=(()=>{class t extends ya{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,i,o,r,a){super(),this._ngModelWarningConfig=r,this.callSetDisabledState=a,this.update=new Ot,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=C0(0,o)}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&dm(i,this,!1),Ph(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}w0(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&dm(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static{this.\u0275fac=function(i){return new(i||t)(K(Xi,10),K(Ls,10),K(or,10),K(x0,8),K(Al,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","formControl",""]],inputs:{form:[Le.None,"formControl","form"],isDisabled:[Le.None,"disabled","isDisabled"],model:[Le.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[wn([aW]),an,Gi]})}}return t})();const sW={provide:Ao,useExisting:Dn(()=>jh)};let jh=(()=>{class t extends Ao{constructor(e,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ot,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(fm(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return Ph(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){dm(e.control||null,e,!1),function JU(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,sO(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,o=this.form.get(e.path);i!==o&&(dm(i||null,e),(t=>t instanceof Vr)(o)&&(Ph(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);aO(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function UU(t,n){return fm(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){_0(this.form,this),this._oldForm&&fm(this._oldForm,this)}_checkFormPresent(){}static{this.\u0275fac=function(i){return new(i||t)(K(Xi,10),K(Ls,10),K(Al,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,o){1&i&&_t("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[Le.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[wn([sW]),an,Gi]})}}return t})(),kl=(()=>{class t{constructor(){this._validator=im}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):im,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=gt({type:t,features:[Gi]})}}return t})();const _W={provide:Xi,useExisting:Dn(()=>pm),multi:!0};let pm=(()=>{class t extends kl{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Nt,this.createValidator=e=>N2}enabled(e){return e}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=yi(t)))(o||t)}})()}static{this.\u0275dir=gt({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,o){2&i&&Kt("required",o._enabled?"":null)},inputs:{required:"required"},features:[wn([_W]),an]})}}return t})(),MO=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({})}}return t})();class AO extends cm{constructor(n,e,i){super(b0(e),y0(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let o=this._adjustIndex(n);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),e&&(this.controls.splice(o,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){iO(this,0,n),n.forEach((i,o)=>{nO(this,!1,o),this.at(o).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,o)=>{this.at(o)&&this.at(o).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,o)=>{i.reset(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function kO(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let IO=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const o=this._reduceControls(e);let r={};return kO(i)?r=i:null!==i&&(r.validators=i.validator,r.asyncValidators=i.asyncValidator),new Oh(o,r)}record(e,i=null){const o=this._reduceControls(e);return new oO(o,i)}control(e,i,o){let r={};return this.useNonNullable?(kO(i)?r=i:(r.validators=i,r.asyncValidators=o),new Vr(e,{...r,nonNullable:!0})):new Vr(e,i,o)}array(e,i,o){const r=e.map(a=>this._createControl(a));return new AO(r,i,o)}_reduceControls(e){const i={};return Object.keys(e).forEach(o=>{i[o]=this._createControl(e[o])}),i}_createControl(e){return e instanceof Vr||e instanceof cm?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),OO=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Al,useValue:e.callSetDisabledState??Rh}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[MO]})}}return t})(),DW=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:x0,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Al,useValue:e.callSetDisabledState??Rh}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[MO]})}}return t})();function RO(t){return new S(3e3,!1)}function Bs(t){switch(t.length){case 0:return new xh;case 1:return t[0];default:return new FI(t)}}function PO(t,n,e=new Map,i=new Map){const o=[],r=[];let a=-1,s=null;if(n.forEach(l=>{const c=l.get("offset"),u=c==a,d=u&&s||new Map;l.forEach((h,p)=>{let g=p,b=h;if("offset"!==p)switch(g=t.normalizePropertyName(g,o),b){case"!":b=e.get(p);break;case Ga:b=i.get(p);break;default:b=t.normalizeStyleValue(p,g,b,o)}d.set(g,b)}),u||r.push(d),s=d,a=c}),o.length)throw function WW(t){return new S(3502,!1)}();return r}function k0(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&I0(e,"start",t)));break;case"done":t.onDone(()=>i(e&&I0(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&I0(e,"destroy",t)))}}function I0(t,n,e){const r=O0(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),a=t._data;return null!=a&&(r._data=a),r}function O0(t,n,e,i,o="",r=0,a){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:o,totalTime:r,disabled:!!a}}function rr(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function NO(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}const aX=(()=>typeof document>"u"?null:document.documentElement)();function R0(t){const n=t.parentNode||t.host||null;return n===aX?null:n}let Il=null,FO=!1;function LO(t,n){for(;n;){if(n===t)return!0;n=R0(n)}return!1}function jO(t,n,e){if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]}let P0=(()=>{class t{validateStyleProperty(e){return function lX(t){Il||(Il=function cX(){return typeof document<"u"?document.body:null}()||{},FO=!!Il.style&&"WebkitAppearance"in Il.style);let n=!0;return Il.style&&!function sX(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Il.style,!n&&FO&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Il.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return LO(e,i)}getParentElement(e){return R0(e)}query(e,i,o){return jO(e,i,o)}computeStyle(e,i,o){return o||""}animate(e,i,o,r,a,s=[],l){return new xh(o,r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();class N0{static{this.NOOP=new P0}}class F0{}const dX=1e3,L0="ng-enter",gm="ng-leave",mm="ng-trigger",bm=".ng-trigger",HO="ng-animating",j0=".ng-animating";function Ja(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:B0(parseFloat(n[1]),n[2])}function B0(t,n){return"s"===n?t*dX:t}function ym(t,n,e){return t.hasOwnProperty("duration")?t:function fX(t,n,e){let o,r=0,a="";if("string"==typeof t){const s=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return n.push(RO()),{duration:0,delay:0,easing:""};o=B0(parseFloat(s[1]),s[2]);const l=s[3];null!=l&&(r=B0(parseFloat(l),s[4]));const c=s[5];c&&(a=c)}else o=t;if(!e){let s=!1,l=n.length;o<0&&(n.push(function EW(){return new S(3100,!1)}()),s=!0),r<0&&(n.push(function TW(){return new S(3101,!1)}()),s=!0),s&&n.splice(l,0,RO())}return{duration:o,delay:r,easing:a}}(t,n,e)}function _a(t,n,e){n.forEach((i,o)=>{const r=Y0(o);e&&!e.has(o)&&e.set(o,t.style[r]),t.style[r]=i})}function Ol(t,n){n.forEach((e,i)=>{const o=Y0(i);t.style[o]=""})}function Bh(t){return Array.isArray(t)?1==t.length?t[0]:function BZ(t,n=null){return{type:Xt.Sequence,steps:t,options:n}}(t):t}const H0=new RegExp("{{\\s*(.+?)\\s*}}","g");function zO(t){let n=[];if("string"==typeof t){let e;for(;e=H0.exec(t);)n.push(e[1]);H0.lastIndex=0}return n}function Hh(t,n,e){const i=`${t}`,o=i.replace(H0,(r,a)=>{let s=n[a];return null==s&&(e.push(function AW(t){return new S(3003,!1)}()),s=""),s.toString()});return o==i?t:o}const mX=/-+([a-z0-9])/g;function Y0(t){return t.replace(mX,(...n)=>n[1].toUpperCase())}function ar(t,n,e){switch(n.type){case Xt.Trigger:return t.visitTrigger(n,e);case Xt.State:return t.visitState(n,e);case Xt.Transition:return t.visitTransition(n,e);case Xt.Sequence:return t.visitSequence(n,e);case Xt.Group:return t.visitGroup(n,e);case Xt.Animate:return t.visitAnimate(n,e);case Xt.Keyframes:return t.visitKeyframes(n,e);case Xt.Style:return t.visitStyle(n,e);case Xt.Reference:return t.visitReference(n,e);case Xt.AnimateChild:return t.visitAnimateChild(n,e);case Xt.AnimateRef:return t.visitAnimateRef(n,e);case Xt.Query:return t.visitQuery(n,e);case Xt.Stagger:return t.visitStagger(n,e);default:throw function kW(t){return new S(3004,!1)}()}}function z0(t,n){return window.getComputedStyle(t)[n]}const _X=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class $O extends F0{normalizePropertyName(n,e){return Y0(n)}normalizeStyleValue(n,e,i,o){let r="";const a=i.toString().trim();if(_X.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const s=i.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&o.push(function IW(t,n){return new S(3005,!1)}())}return a+r}}const _m="*";const vm=new Set(["true","1"]),wm=new Set(["false","0"]);function VO(t,n){const e=vm.has(t)||wm.has(t),i=vm.has(n)||wm.has(n);return(o,r)=>{let a=t==_m||t==o,s=n==_m||n==r;return!a&&e&&"boolean"==typeof o&&(a=o?vm.has(t):wm.has(t)),!s&&i&&"boolean"==typeof r&&(s=r?vm.has(n):wm.has(n)),a&&s}}const xX=new RegExp("s*:selfs*,?","g");function $0(t,n,e,i){return new SX(t).build(n,e,i)}class SX{constructor(n){this._driver=n}build(n,e,i){const o=new TX(e);return this._resetContextStyleTimingState(o),ar(this,Bh(n),o)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,o=e.depCount=0;const r=[],a=[];return"@"==n.name.charAt(0)&&e.errors.push(function OW(){return new S(3006,!1)}()),n.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==Xt.State){const l=s,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,r.push(this.visitState(l,e))}),l.name=c}else if(s.type==Xt.Transition){const l=this.visitTransition(s,e);i+=l.queryCount,o+=l.depCount,a.push(l)}else e.errors.push(function RW(){return new S(3007,!1)}())}),{type:Xt.Trigger,name:n.name,states:r,transitions:a,queryCount:i,depCount:o,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),o=n.options&&n.options.params||null;if(i.containsDynamicStyles){const r=new Set,a=o||{};i.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{zO(l).forEach(c=>{a.hasOwnProperty(c)||r.add(c)})})}),r.size&&e.errors.push(function PW(t,n){return new S(3008,!1)}(0,r.values()))}return{type:Xt.State,name:n.name,style:i,options:o?{params:o}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=ar(this,Bh(n.animation),e),o=function vX(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function wX(t,n,e){if(":"==t[0]){const l=function CX(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function $W(t){return new S(3015,!1)}()),n;const o=i[1],r=i[2],a=i[3];n.push(VO(o,a)),"<"==r[0]&&(o!=_m||a!=_m)&&n.push(VO(a,o))}(i,e,n)):e.push(t),e}(n.expr,e.errors);return{type:Xt.Transition,matchers:o,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Rl(n.options)}}visitSequence(n,e){return{type:Xt.Sequence,steps:n.steps.map(i=>ar(this,i,e)),options:Rl(n.options)}}visitGroup(n,e){const i=e.currentTime;let o=0;const r=n.steps.map(a=>{e.currentTime=i;const s=ar(this,a,e);return o=Math.max(o,e.currentTime),s});return e.currentTime=o,{type:Xt.Group,steps:r,options:Rl(n.options)}}visitAnimate(n,e){const i=function AX(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return V0(ym(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=V0(0,0,"");return r.dynamic=!0,r.strValue=e,r}const o=ym(e,n);return V0(o.duration,o.delay,o.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let o,r=n.styles?n.styles:oi({});if(r.type==Xt.Keyframes)o=this.visitKeyframes(r,e);else{let a=n.styles,s=!1;if(!a){s=!0;const c={};i.easing&&(c.easing=i.easing),a=oi(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(a,e);l.isEmptyStep=s,o=l}return e.currentAnimateTimings=null,{type:Xt.Animate,timings:i,style:o,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],o=Array.isArray(n.styles)?n.styles:[n.styles];for(let s of o)"string"==typeof s?s===Ga?i.push(s):e.errors.push(new S(3002,!1)):i.push(new Map(Object.entries(s)));let r=!1,a=null;return i.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!r))for(let l of s.values())if(l.toString().indexOf("{{")>=0){r=!0;break}}),{type:Xt.Style,styles:i,easing:a,offset:n.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let o=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),n.styles.forEach(a=>{"string"!=typeof a&&a.forEach((s,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(r!=o&&r>=u.startTime&&o<=u.endTime&&(e.errors.push(function FW(t,n,e,i,o){return new S(3010,!1)}()),d=!1),r=u.startTime),d&&c.set(l,{startTime:r,endTime:o}),e.options&&function gX(t,n,e){const i=n.params||{},o=zO(t);o.length&&o.forEach(r=>{i.hasOwnProperty(r)||e.push(function MW(t){return new S(3001,!1)}())})}(s,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:Xt.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function LW(){return new S(3011,!1)}()),i;let r=0;const a=[];let s=!1,l=!1,c=0;const u=n.steps.map(D=>{const H=this._makeStyleAst(D,e);let oe=null!=H.offset?H.offset:function MX(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(H.styles),le=0;return null!=oe&&(r++,le=H.offset=oe),l=l||le<0||le>1,s=s||le0&&r{const oe=h>0?H==p?1:h*H:a[H],le=oe*T;e.currentTime=g+b.delay+le,b.duration=le,this._validateStyleAst(D,e),D.offset=oe,i.styles.push(D)}),i}visitReference(n,e){return{type:Xt.Reference,animation:ar(this,Bh(n.animation),e),options:Rl(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:Xt.AnimateChild,options:Rl(n.options)}}visitAnimateRef(n,e){return{type:Xt.AnimateRef,animation:this.visitReference(n.animation,e),options:Rl(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,o=n.options||{};e.queryCount++,e.currentQuery=n;const[r,a]=function DX(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(xX,"")),t=t.replace(/@\*/g,bm).replace(/@\w+/g,e=>bm+"-"+e.slice(1)).replace(/:animating/g,j0),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+r:r,rr(e.collectedStyles,e.currentQuerySelector,new Map);const s=ar(this,Bh(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:Xt.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:s,originalSelector:n.selector,options:Rl(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function YW(){return new S(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:ym(n.timings,e.errors,!0);return{type:Xt.Stagger,animation:ar(this,Bh(n.animation),e),timings:i,options:null}}}class TX{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Rl(t){return t?(t={...t}).params&&(t.params=function EX(t){return t?{...t}:null}(t.params)):t={},t}function V0(t,n,e){return{duration:t,delay:n,easing:e}}function Z0(t,n,e,i,o,r,a=null,s=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:a,subTimeline:s}}class Cm{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const OX=new RegExp(":enter","g"),PX=new RegExp(":leave","g");function G0(t,n,e,i,o,r=new Map,a=new Map,s,l,c=[]){return(new NX).buildKeyframes(t,n,e,i,o,r,a,s,l,c)}class NX{buildKeyframes(n,e,i,o,r,a,s,l,c,u=[]){c=c||new Cm;const d=new U0(n,e,c,o,r,u,[]);d.options=l;const h=l.delay?Ja(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([a],null,d.errors,l),ar(this,i,d);const p=d.timelines.filter(g=>g.containsAnimation());if(p.length&&s.size){let g;for(let b=p.length-1;b>=0;b--){const T=p[b];if(T.element===e){g=T;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([s],null,d.errors,l)}return p.length?p.map(g=>g.buildKeyframes()):[Z0(e,[],[],[],0,h,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const o=e.createSubContext(n.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,o,o.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const o of n){const r=o?.delay;if(r){const a="number"==typeof r?r:Ja(Hh(r,o?.params??{},e.errors));i.delayNextStep(a)}}}_visitSubInstructions(n,e,i){let r=e.currentTimeline.currentTime;const a=null!=i.duration?Ja(i.duration):null,s=null!=i.delay?Ja(i.delay):null;return 0!==a&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,a,s);r=Math.max(r,c.duration+c.delay)}),r}visitReference(n,e){e.updateOptions(n.options,!0),ar(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let o=e;const r=n.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),null!=r.delay)){o.previousNode.type==Xt.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=xm);const a=Ja(r.delay);o.delayNextStep(a)}n.steps.length&&(n.steps.forEach(a=>ar(this,a,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let o=e.currentTimeline.currentTime;const r=n.options&&n.options.delay?Ja(n.options.delay):0;n.steps.forEach(a=>{const s=e.createSubContext(n.options);r&&s.delayNextStep(r),ar(this,a,s),o=Math.max(o,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(o),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return ym(e.params?Hh(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),o=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),o.snapshotCurrentStyles());const r=n.style;r.type==Xt.Keyframes?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,o=e.currentAnimateTimings;!o&&i.hasCurrentStyleProperties()&&i.forwardFrame();const r=o&&o.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(r):i.setStyles(n.styles,r,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,o=e.currentTimeline.duration,r=i.duration,s=e.createSubContext().currentTimeline;s.easing=i.easing,n.styles.forEach(l=>{s.forwardTime((l.offset||0)*r),s.setStyles(l.styles,l.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(o+r),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,o=n.options||{},r=o.delay?Ja(o.delay):0;r&&(e.previousNode.type===Xt.Style||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=xm);let a=i;const s=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;let l=null;s.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(n.options,c);r&&d.delayNextStep(r),c===e.element&&(l=d.currentTimeline),ar(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,o=e.currentTimeline,r=n.timings,a=Math.abs(r.duration),s=a*(e.currentQueryTotal-1);let l=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=s-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;ar(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=o.currentTime-d+(o.startTime-i.currentTimeline.startTime)}}const xm={};class U0{constructor(n,e,i,o,r,a,s,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=xm,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Sm(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let o=this.options;null!=i.duration&&(o.duration=Ja(i.duration)),null!=i.delay&&(o.delay=Ja(i.delay));const r=i.params;if(r){let a=o.params;a||(a=this.options.params={}),Object.keys(r).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=Hh(r[s],a,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(o=>{i[o]=e[o]})}}return n}createSubContext(n=null,e,i){const o=e||this.element,r=new U0(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=xm,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const o={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},r=new FX(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,o,n.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,o,r,a){let s=[];if(o&&s.push(this.element),n.length>0){n=(n=n.replace(OX,"."+this._enterClassName)).replace(PX,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),s.push(...c)}return!r&&0==s.length&&a.push(function zW(t){return new S(3014,!1)}()),s}}class Sm{constructor(n,e,i,o){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Sm(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Ga),this._currentKeyframe.set(e,Ga);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,o){e&&this._previousKeyframe.set("easing",e);const r=o&&o.params||{},a=function LX(t,n){const e=new Map;let i;return t.forEach(o=>{if("*"===o){i??=n.keys();for(let r of i)e.set(r,Ga)}else for(let[r,a]of o)e.set(r,a)}),e}(n,this._globalTimelineStyles);for(let[s,l]of a){const c=Hh(l,r,i);this._pendingStyles.set(s,c),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Ga),this._updateStyle(s,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const o=this._styleSummary.get(i);(!o||e.time>o.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((s,l)=>{const c=new Map([...this._backFill,...s]);c.forEach((u,d)=>{"!"===u?n.add(d):u===Ga&&e.add(d)}),i||c.set("offset",l/this.duration),o.push(c)});const r=[...n.values()],a=[...e.values()];if(i){const s=o[0],l=new Map(s);s.set("offset",0),l.set("offset",1),o=[s,l]}return Z0(this.element,o,r,a,this.duration,this.startTime,this.easing,!1)}}class FX extends Sm{constructor(n,e,i,o,r,a,s=!1){super(n,e,a.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],a=i+e,s=e/a,l=new Map(n[0]);l.set("offset",0),r.push(l);const c=new Map(n[0]);c.set("offset",UO(s)),r.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let h=new Map(n[d]);const p=h.get("offset");h.set("offset",UO((e+p*i)/a)),r.push(h)}i=a,e=0,o="",n=r}return Z0(this.element,n,this.preStyleProps,this.postStyleProps,i,e,o,!0)}}function UO(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}function WO(t,n,e,i,o,r,a,s,l,c,u,d,h){return{type:0,element:t,triggerName:n,isRemovalTransition:o,fromState:e,fromStyles:r,toState:i,toStyles:a,timelines:s,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const W0={};class XO{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,o){return function jX(t,n,e,i,o){return t.some(r=>r(n,e,i,o))}(this.ast.matchers,n,e,i,o)}buildStyles(n,e,i){let o=this._stateStyles.get("*");return void 0!==n&&(o=this._stateStyles.get(n?.toString())||o),o?o.buildStyles(e,i):new Map}build(n,e,i,o,r,a,s,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||W0,g=this.buildStyles(i,s&&s.params||W0,d),b=l&&l.params||W0,T=this.buildStyles(o,b,d),D=new Set,H=new Map,oe=new Map,le="void"===o,G={params:JO(b,h),delay:this.ast.options?.delay},pe=u?[]:G0(n,e,this.ast.animation,r,a,g,T,G,c,d);let _e=0;return pe.forEach(be=>{_e=Math.max(be.duration+be.delay,_e)}),d.length?WO(e,this._triggerName,i,o,le,g,T,[],[],H,oe,_e,d):(pe.forEach(be=>{const Be=be.element,Fe=rr(H,Be,new Set);be.preStyleProps.forEach(Re=>Fe.add(Re));const Qe=rr(oe,Be,new Set);be.postStyleProps.forEach(Re=>Qe.add(Re)),Be!==e&&D.add(Be)}),WO(e,this._triggerName,i,o,le,g,T,pe,[...D.values()],H,oe,_e))}}function JO(t,n){const e={...n};return Object.entries(t).forEach(([i,o])=>{null!=o&&(e[i]=o)}),e}class BX{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,o=JO(n,this.defaultParams);return this.styles.styles.forEach(r=>{"string"!=typeof r&&r.forEach((a,s)=>{a&&(a=Hh(a,o,e));const l=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,l,a,e),i.set(s,a)})}),i}}class YX{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new BX(o.style,o.options&&o.options.params||{},i))}),QO(this.states,"true","1"),QO(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new XO(n,o,this.states))}),this.fallbackTransition=function zX(t,n,e){return new XO(t,{type:Xt.Transition,animation:{type:Xt.Sequence,steps:[],options:null},matchers:[(a,s)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,o){return this.transitionFactories.find(a=>a.match(n,e,i,o))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function QO(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const $X=new Cm;class VX{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],r=$0(this._driver,e,i,[]);if(i.length)throw function XW(t){return new S(3503,!1)}();this._animations.set(n,r)}_buildPlayer(n,e,i){const o=n.element,r=PO(this._normalizer,n.keyframes,e,i);return this._driver.animate(o,r,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const o=[],r=this._animations.get(n);let a;const s=new Map;if(r?(a=G0(this._driver,e,r,L0,gm,new Map,new Map,i,$X,o),a.forEach(u=>{const d=rr(s,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(o.push(function JW(){return new S(3300,!1)}()),a=[]),o.length)throw function QW(t){return new S(3504,!1)}();s.forEach((u,d)=>{u.forEach((h,p)=>{u.set(p,this._driver.computeStyle(d,p,Ga))})});const c=Bs(a.map(u=>{const d=s.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function KW(t){return new S(3301,!1)}();return e}listen(n,e,i,o){const r=O0(e,"","","");return k0(this._getPlayer(n),i,r,o),()=>{}}command(n,e,i,o){if("register"==i)return void this.register(n,o[0]);if("create"==i)return void this.create(n,e,o[0]||{});const r=this._getPlayer(n);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(n)}}}const KO="ng-animate-queued",X0="ng-animate-disabled",XX=[],qO={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},JX={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Zr="__ng_removed";class J0{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function eJ(t){return t??null}(i?n.value:n),i){const{value:r,...a}=n;this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(o=>{null==i[o]&&(i[o]=e[o])})}}}const Yh="void",Q0=new J0(Yh);class QX{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,xr(e,this._hostClassName)}listen(n,e,i,o){if(!this._triggers.has(e))throw function qW(t,n){return new S(3302,!1)}();if(null==i||0==i.length)throw function eX(t){return new S(3303,!1)}();if(!function tJ(t){return"start"==t||"done"==t}(i))throw function tX(t,n){return new S(3400,!1)}();const r=rr(this._elementListeners,n,[]),a={name:e,phase:i,callback:o};r.push(a);const s=rr(this._engine.statesByElement,n,new Map);return s.has(e)||(xr(n,mm),xr(n,mm+"-"+e),s.set(e,Q0)),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(e)||s.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function nX(t){return new S(3401,!1)}();return e}trigger(n,e,i,o=!0){const r=this._getTrigger(e),a=new K0(this.id,e,n);let s=this._engine.statesByElement.get(n);s||(xr(n,mm),xr(n,mm+"-"+e),this._engine.statesByElement.set(n,s=new Map));let l=s.get(e);const c=new J0(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),s.set(e,c),l||(l=Q0),c.value!==Yh&&l.value===c.value){if(!function oJ(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let o=0;o{Ol(n,T),_a(n,D)})}return}const h=rr(this._engine.playersByElement,n,[]);h.forEach(b=>{b.namespaceId==this.id&&b.triggerName==e&&b.queued&&b.destroy()});let p=r.matchTransition(l.value,c.value,n,c.params),g=!1;if(!p){if(!o)return;p=r.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:p,fromState:l,toState:c,player:a,isFallbackTransition:g}),g||(xr(n,KO),a.onStart(()=>{cu(n,KO)})),a.onDone(()=>{let b=this.players.indexOf(a);b>=0&&this.players.splice(b,1);const T=this._engine.playersByElement.get(n);if(T){let D=T.indexOf(a);D>=0&&T.splice(D,1)}}),this.players.push(a),h.push(a),a}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(o=>o.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,bm,!0);i.forEach(o=>{if(o[Zr])return;const r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(a=>a.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(n,e,i,o){const r=this._engine.statesByElement.get(n),a=new Map;if(r){const s=[];if(r.forEach((l,c)=>{if(a.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,Yh,o);u&&s.push(u)}}),s.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,a),i&&Bs(s).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const o=new Set;e.forEach(r=>{const a=r.name;if(o.has(a))return;o.add(a);const l=this._triggers.get(a).fallbackTransition,c=i.get(a)||Q0,u=new J0(Yh),d=new K0(this.id,a,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:a,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let o=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(n):[];if(r&&r.length)o=!0;else{let a=n;for(;a=a.parentNode;)if(i.statesByElement.get(a)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(n),o)i.markElementAsRemoved(this.id,n,!1,e);else{const r=n[Zr];(!r||r===qO)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){xr(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const o=i.player;if(o.destroyed)return;const r=i.element,a=this._elementListeners.get(r);a&&a.forEach(s=>{if(s.name==i.triggerName){const l=O0(r,i.triggerName,i.fromState.value,i.toState.value);l._data=n,k0(i.player,s.phase,l,s.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(i)}),this._queue=[],e.sort((i,o)=>{const r=i.transition.ast.depCount,a=o.transition.ast.depCount;return 0==r||0==a?r-a:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class KX{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i,o){this.bodyNode=n,this.driver=e,this._normalizer=i,this.scheduler=o,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,a)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new QX(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,o=this.namespacesByHostElement;if(i.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){const l=o.get(s);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),a=!0;break}s=this.driver.getParentElement(s)}a||i.unshift(n)}else i.push(n);return o.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let o=this._namespaceLookup[n];o&&o.register(e,i)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);const o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1),i.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let o of i.values())if(o.namespaceId){const r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}return e}trigger(n,e,i,o){if(Dm(e)){const r=this._fetchNamespace(n);if(r)return r.trigger(e,i,o),!0}return!1}insertNode(n,e,i,o){if(!Dm(e))return;const r=e[Zr];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(n){const a=this._fetchNamespace(n);a&&a.insertNode(e,i)}o&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),xr(n,X0)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),cu(n,X0))}removeNode(n,e,i){if(Dm(e)){this.scheduler?.notify();const o=n?this._fetchNamespace(n):null;o?o.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);const r=this.namespacesByHostElement.get(e);r&&r.id!==n&&r.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(n,e,i,o,r){this.collectedLeaveElements.push(e),e[Zr]={namespaceId:n,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(n,e,i,o,r){return Dm(e)?this._fetchNamespace(n).listen(e,i,o,r):()=>{}}_buildInstruction(n,e,i,o,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,o,n.fromState.options,n.toState.options,e,r)}destroyInnerAnimations(n){let e=this.driver.query(n,bm,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,j0,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Bs(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[Zr];if(e&&e.setForRemoval){if(n[Zr]=qO,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(X0)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Bs(e).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(n){throw function iX(t){return new S(3402,!1)}()}_flushAnimations(n,e){const i=new Cm,o=[],r=new Map,a=[],s=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(Se=>{u.add(Se);const Ye=this.driver.query(Se,".ng-animate-queued",!0);for(let We=0;We{const We=L0+b++;g.set(Ye,We),Se.forEach(it=>xr(it,We))});const T=[],D=new Set,H=new Set;for(let Se=0;SeD.add(it)):H.add(Ye))}const oe=new Map,le=nR(h,Array.from(D));le.forEach((Se,Ye)=>{const We=gm+b++;oe.set(Ye,We),Se.forEach(it=>xr(it,We))}),n.push(()=>{p.forEach((Se,Ye)=>{const We=g.get(Ye);Se.forEach(it=>cu(it,We))}),le.forEach((Se,Ye)=>{const We=oe.get(Ye);Se.forEach(it=>cu(it,We))}),T.forEach(Se=>{this.processLeaveNode(Se)})});const G=[],pe=[];for(let Se=this._namespaceList.length-1;Se>=0;Se--)this._namespaceList[Se].drainQueuedTransitions(e).forEach(We=>{const it=We.player,St=We.element;if(G.push(it),this.collectedEnterElements.length){const Un=St[Zr];if(Un&&Un.setForMove){if(Un.previousTriggersValues&&Un.previousTriggersValues.has(We.triggerName)){const dt=Un.previousTriggersValues.get(We.triggerName),Cn=this.statesByElement.get(We.element);if(Cn&&Cn.has(We.triggerName)){const ro=Cn.get(We.triggerName);ro.value=dt,Cn.set(We.triggerName,ro)}}return void it.destroy()}}const At=!d||!this.driver.containsElement(d,St),on=oe.get(St),Rn=g.get(St),sn=this._buildInstruction(We,i,Rn,on,At);if(sn.errors&&sn.errors.length)return void pe.push(sn);if(At)return it.onStart(()=>Ol(St,sn.fromStyles)),it.onDestroy(()=>_a(St,sn.toStyles)),void o.push(it);if(We.isFallbackTransition)return it.onStart(()=>Ol(St,sn.fromStyles)),it.onDestroy(()=>_a(St,sn.toStyles)),void o.push(it);const ln=[];sn.timelines.forEach(Un=>{Un.stretchStartingKeyframe=!0,this.disabledNodes.has(Un.element)||ln.push(Un)}),sn.timelines=ln,i.append(St,sn.timelines),a.push({instruction:sn,player:it,element:St}),sn.queriedElements.forEach(Un=>rr(s,Un,[]).push(it)),sn.preStyleProps.forEach((Un,dt)=>{if(Un.size){let Cn=l.get(dt);Cn||l.set(dt,Cn=new Set),Un.forEach((ro,Ar)=>Cn.add(Ar))}}),sn.postStyleProps.forEach((Un,dt)=>{let Cn=c.get(dt);Cn||c.set(dt,Cn=new Set),Un.forEach((ro,Ar)=>Cn.add(Ar))})});if(pe.length){const Se=[];pe.forEach(Ye=>{Se.push(function oX(t,n){return new S(3505,!1)}())}),G.forEach(Ye=>Ye.destroy()),this.reportError(Se)}const _e=new Map,be=new Map;a.forEach(Se=>{const Ye=Se.element;i.has(Ye)&&(be.set(Ye,Ye),this._beforeAnimationBuild(Se.player.namespaceId,Se.instruction,_e))}),o.forEach(Se=>{const Ye=Se.element;this._getPreviousPlayers(Ye,!1,Se.namespaceId,Se.triggerName,null).forEach(it=>{rr(_e,Ye,[]).push(it),it.destroy()})});const Be=T.filter(Se=>oR(Se,l,c)),Fe=new Map;tR(Fe,this.driver,H,c,Ga).forEach(Se=>{oR(Se,l,c)&&Be.push(Se)});const Re=new Map;p.forEach((Se,Ye)=>{tR(Re,this.driver,new Set(Se),l,"!")}),Be.forEach(Se=>{const Ye=Fe.get(Se),We=Re.get(Se);Fe.set(Se,new Map([...Ye?.entries()??[],...We?.entries()??[]]))});const Xe=[],ct=[],ut={};a.forEach(Se=>{const{element:Ye,player:We,instruction:it}=Se;if(i.has(Ye)){if(u.has(Ye))return We.onDestroy(()=>_a(Ye,it.toStyles)),We.disabled=!0,We.overrideTotalTime(it.totalTime),void o.push(We);let St=ut;if(be.size>1){let on=Ye;const Rn=[];for(;on=on.parentNode;){const sn=be.get(on);if(sn){St=sn;break}Rn.push(on)}Rn.forEach(sn=>be.set(sn,St))}const At=this._buildAnimation(We.namespaceId,it,_e,r,Re,Fe);if(We.setRealPlayer(At),St===ut)Xe.push(We);else{const on=this.playersByElement.get(St);on&&on.length&&(We.parentPlayer=Bs(on)),o.push(We)}}else Ol(Ye,it.fromStyles),We.onDestroy(()=>_a(Ye,it.toStyles)),ct.push(We),u.has(Ye)&&o.push(We)}),ct.forEach(Se=>{const Ye=r.get(Se.element);if(Ye&&Ye.length){const We=Bs(Ye);Se.setRealPlayer(We)}}),o.forEach(Se=>{Se.parentPlayer?Se.syncPlayerEvents(Se.parentPlayer):Se.destroy()});for(let Se=0;Se!At.destroyed);St.length?nJ(this,Ye,St):this.processLeaveNode(Ye)}return T.length=0,Xe.forEach(Se=>{this.players.push(Se),Se.onDone(()=>{Se.destroy();const Ye=this.players.indexOf(Se);this.players.splice(Ye,1)}),Se.play()}),Xe}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,o,r){let a=[];if(e){const s=this.playersByQueriedElement.get(n);s&&(a=s)}else{const s=this.playersByElement.get(n);if(s){const l=!r||r==Yh;s.forEach(c=>{c.queued||!l&&c.triggerName!=o||a.push(c)})}}return(i||o)&&(a=a.filter(s=>!(i&&i!=s.namespaceId||o&&o!=s.triggerName))),a}_beforeAnimationBuild(n,e,i){const r=e.element,a=e.isRemovalTransition?void 0:n,s=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==r,d=rr(i,c,[]);this._getPreviousPlayers(c,u,a,s,e.toState).forEach(p=>{const g=p.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),p.destroy(),d.push(p)})}Ol(r,e.fromStyles)}_buildAnimation(n,e,i,o,r,a){const s=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(g=>{const b=g.element;u.add(b);const T=b[Zr];if(T&&T.removedBeforeQueried)return new xh(g.duration,g.delay);const D=b!==l,H=function iJ(t){const n=[];return iR(t,n),n}((i.get(b)||XX).map(_e=>_e.getRealPlayer())).filter(_e=>!!_e.element&&_e.element===b),oe=r.get(b),le=a.get(b),G=PO(this._normalizer,g.keyframes,oe,le),pe=this._buildPlayer(g,G,H);if(g.subTimeline&&o&&d.add(b),D){const _e=new K0(n,s,b);_e.setRealPlayer(pe),c.push(_e)}return pe});c.forEach(g=>{rr(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function qX(t,n,e){let i=t.get(n);if(i){if(i.length){const o=i.indexOf(e);i.splice(o,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,g.element,g))}),u.forEach(g=>xr(g,HO));const p=Bs(h);return p.onDestroy(()=>{u.forEach(g=>cu(g,HO)),_a(l,e.toStyles)}),d.forEach(g=>{rr(o,g,[]).push(p)}),p}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new xh(n.duration,n.delay)}}class K0{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new xh,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(o=>k0(n,i,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){rr(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Dm(t){return t&&1===t.nodeType}function eR(t,n){const e=t.style.display;return t.style.display=n??"none",e}function tR(t,n,e,i,o){const r=[];e.forEach(l=>r.push(eR(l)));const a=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=n.computeStyle(c,d,o);u.set(d,h),(!h||0==h.length)&&(c[Zr]=JX,a.push(c))}),t.set(c,u)});let s=0;return e.forEach(l=>eR(l,r[s++])),a}function nR(t,n){const e=new Map;if(t.forEach(s=>e.set(s,[])),0==n.length)return e;const o=new Set(n),r=new Map;function a(s){if(!s)return 1;let l=r.get(s);if(l)return l;const c=s.parentNode;return l=e.has(c)?c:o.has(c)?1:a(c),r.set(s,l),l}return n.forEach(s=>{const l=a(s);1!==l&&e.get(l).push(s)}),e}function xr(t,n){t.classList?.add(n)}function cu(t,n){t.classList?.remove(n)}function nJ(t,n,e){Bs(e).onDone(()=>t.processLeaveNode(n))}function iR(t,n){for(let e=0;eo.add(r)):n.set(t,i),e.delete(t),!0}class zh{constructor(n,e,i,o){this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,a)=>{},this._transitionEngine=new KX(n.body,e,i,o),this._timelineEngine=new VX(n.body,e,i),this._transitionEngine.onRemovalComplete=(r,a)=>this.onRemovalComplete(r,a)}registerTrigger(n,e,i,o,r){const a=n+"-"+o;let s=this._triggerCache[a];if(!s){const l=[],u=$0(this._driver,r,l,[]);if(l.length)throw function UW(t,n){return new S(3404,!1)}();s=function HX(t,n,e){return new YX(t,n,e)}(o,u,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,o,s)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,o){this._transitionEngine.insertNode(n,e,i,o)}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,o){if("@"==i.charAt(0)){const[r,a]=NO(i);this._timelineEngine.command(r,e,a,o)}else this._transitionEngine.trigger(n,e,i,o)}listen(n,e,i,o,r){if("@"==i.charAt(0)){const[a,s]=NO(i);return this._timelineEngine.listen(a,e,s,r)}return this._transitionEngine.listen(n,e,i,o,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}class $h{static{this.initialStylesByElement=new WeakMap}constructor(n,e,i){this._element=n,this._startStyles=e,this._endStyles=i,this._state=0;let o=$h.initialStylesByElement.get(n);o||$h.initialStylesByElement.set(n,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&_a(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(_a(this._element,this._initialStyles),this._endStyles&&(_a(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&($h.initialStylesByElement.delete(this._element),this._startStyles&&(Ol(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ol(this._element,this._endStyles),this._endStyles=null),_a(this._element,this._initialStyles),this._state=3)}}function q0(t){let n=null;return t.forEach((e,i)=>{(function aJ(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class rR{constructor(n,e,i,o){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,o)=>{"offset"!==o&&n.set(o,this._finished?i:z0(this.element,o))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class aR{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return LO(n,e)}getParentElement(n){return R0(n)}query(n,e,i){return jO(n,e,i)}computeStyle(n,e,i){return z0(n,e)}animate(n,e,i,o,r,a=[]){const l={duration:i,delay:o,fill:0==o?"both":"forwards"};r&&(l.easing=r);const c=new Map,u=a.filter(p=>p instanceof rR);(function bX(t,n){return 0===t||0===n})(i,o)&&u.forEach(p=>{p.currentSnapshot.forEach((g,b)=>c.set(b,g))});let d=function pX(t){return t.length?t[0]instanceof Map?t:t.map(n=>new Map(Object.entries(n))):[]}(e).map(p=>new Map(p));d=function yX(t,n,e){if(e.size&&n.length){let i=n[0],o=[];if(e.forEach((r,a)=>{i.has(a)||o.push(a),i.set(a,r)}),o.length)for(let r=1;ra.set(s,z0(t,s)))}}return n}(n,d,c);const h=function rJ(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=q0(n[0]),n.length>1&&(i=q0(n[n.length-1]))):n instanceof Map&&(e=q0(n)),e||i?new $h(t,e,i):null}(n,d);return new rR(n,d,l,h)}}const sR="@.disabled";class lR{constructor(n,e,i,o){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=o,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,o=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,o)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,o){this.delegate.setAttribute(n,e,i,o)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,o){this.delegate.setStyle(n,e,i,o)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==sR?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class sJ extends lR{constructor(n,e,i,o,r){super(e,i,o,r),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==sR?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const o=function lJ(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let r=e.slice(1),a="";return"@"!=r.charAt(0)&&([r,a]=function cJ(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(r)),this.engine.listen(this.namespaceId,o,r,a,s=>{this.factory.scheduleListenerCallback(s._data||-1,i,s)})}return this.delegate.listen(n,e,i)}}class uJ{constructor(n,e,i){this.delegate=n,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=(o,r)=>{const a=r?.parentNode(o);a&&r.removeChild(a,o)}}createRenderer(n,e){const o=this.delegate.createRenderer(n,e);if(!n||!e?.data?.animation){const c=this._rendererCache;let u=c.get(o);return u||(u=new lR("",o,this.engine,()=>c.delete(o)),c.set(o,u)),u}const r=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,n);const s=c=>{Array.isArray(c)?c.forEach(s):this.engine.registerTrigger(r,a,n,c.name,c)};return e.data.animation.forEach(s),new sJ(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,e,i){if(n>=0&&ne(i));const o=this._animationCallbacksBuffer;0==o.length&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(r=>{const[a,s]=r;a(s)}),this._animationCallbacksBuffer=[]})}),o.push([e,i])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}let dJ=(()=>{class t extends zh{constructor(e,i,o){super(e,i,o,Pe(Jp,{optional:!0}))}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(i){return new(i||t)(Me(qt),Me(N0),Me(F0))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const cR=[{provide:F0,useFactory:function hJ(){return new $O}},{provide:zh,useClass:dJ},{provide:sv,useFactory:function fJ(t,n,e){return new uJ(t,n,e)},deps:[Ww,zh,wt]}],eC=[{provide:N0,useFactory:()=>new aR},{provide:xo,useValue:"BrowserAnimations"},...cR],uR=[{provide:N0,useClass:P0},{provide:xo,useValue:"NoopAnimations"},...cR];let tC,pJ=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?uR:eC}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({providers:eC,imports:[Qw]})}}return t})();try{tC=typeof Intl<"u"&&Intl.v8BreakIterator}catch{tC=!1}let uu,Ai=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?cI(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!tC)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(i){return new(i||t)(Me(La))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const dR=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function hR(){if(uu)return uu;if("object"!=typeof document||!document)return uu=new Set(dR),uu;let t=document.createElement("input");return uu=new Set(dR.filter(n=>(t.setAttribute("type",n),t.type===n))),uu}let Vh,Pl,nC;function du(t){return function gJ(){if(null==Vh&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Vh=!0}))}finally{Vh=Vh||!1}return Vh}()?t:!!t.capture}function mJ(){if(null==Pl){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Pl=!1,Pl;if("scrollBehavior"in document.documentElement.style)Pl=!0;else{const t=Element.prototype.scrollTo;Pl=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Pl}function Mm(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function Hs(t){return t.composedPath?t.composedPath()[0]:t.target}function iC(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Qa(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function $i(t,n,e){const i=Ae(t)||n||e?{next:t,error:n,complete:e}:t;return i?$n((o,r)=>{var a;null===(a=i.subscribe)||void 0===a||a.call(i);let s=!0;o.subscribe(Pn(r,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),r.next(l)},()=>{var l;s=!1,null===(l=i.complete)||void 0===l||l.call(i),r.complete()},l=>{var c;s=!1,null===(c=i.error)||void 0===c||c.call(i,l),r.error(l)},()=>{var l,c;s&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):gr}class OJ extends ge{constructor(n,e){super()}schedule(n,e=0){return this}}const Pm={setInterval(t,n,...e){const{delegate:i}=Pm;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=Pm;return(n?.clearInterval||clearInterval)(t)},delegate:void 0};class oC extends OJ{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;const o=this.id,r=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(r,o,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return Pm.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&Pm.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let o,i=!1;try{this.work(n)}catch(r){i=!0,o=r||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,ne(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}const rC={now:()=>(rC.delegate||Date).now(),delegate:void 0};class Wh{constructor(n,e=Wh.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}Wh.now=rC.now;class aC extends Wh{constructor(n,e=Wh.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const Nm=new aC(oC),RJ=Nm;function pR(t,n=Nm){return $n((e,i)=>{let o=null,r=null,a=null;const s=()=>{if(o){o.unsubscribe(),o=null;const c=r;r=null,i.next(c)}};function l(){const c=a+t,u=n.now();if(u{r=c,a=n.now(),o||(o=n.schedule(l,t),i.add(o))},()=>{s(),i.complete()},void 0,()=>{r=o=null}))})}const Sr=new On(t=>t.complete());function _i(t){return t<=0?()=>Sr:$n((n,e)=>{let i=0;n.subscribe(Pn(e,o=>{++i<=t&&(e.next(o),t<=i&&e.complete())}))})}function gR(t){return ui((n,e)=>t<=e)}function sC(t,n=gr){return t=t??NJ,$n((e,i)=>{let o,r=!0;e.subscribe(Pn(i,a=>{const s=n(a);(r||!t(o,s))&&(r=!1,o=s,i.next(a))}))})}function NJ(t,n){return t===n}function yn(t){return $n((n,e)=>{io(t).subscribe(Pn(e,()=>e.complete(),kt)),!e.closed&&n.subscribe(e)})}let FJ=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),mR=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({providers:[FJ]})}}return t})();function Fm(t){return null!=t&&"false"!=`${t}`}function bR(t,n=0){return function LJ(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):n}function Lm(t){return Array.isArray(t)?t:[t]}function Fi(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Ys(t){return t instanceof Zt?t.nativeElement:t}function jm(...t){const n=Sh(t),e=YI(t),{args:i,keys:o}=M2(t);if(0===i.length)return bi([],n);const r=new On(function jJ(t,n,e=gr){return i=>{yR(n,()=>{const{length:o}=t,r=new Array(o);let a=o,s=o;for(let l=0;l{const c=bi(t[l],n);let u=!1;c.subscribe(Pn(i,d=>{r[l]=d,u||(u=!0,s--),s||i.next(e(r.slice()))},()=>{--a||i.complete()}))},i)},i)}}(i,n,o?a=>A2(o,a):gr));return e?r.pipe(d0(e)):r}function yR(t,n,e){t?Wa(e,t,n):n()}function hu(t=1/0){return Wi(gr,t)}function Xh(...t){return function BJ(){return hu(1)}()(bi(t,Sh(t)))}function sr(...t){const n=Sh(t);return $n((e,i)=>{(n?Xh(t,e,n):Xh(t,e)).subscribe(i)})}const _R=new Set;let Nl,HJ=(()=>{class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):zJ}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function YJ(t,n){if(!_R.has(t))try{Nl||(Nl=document.createElement("style"),n&&(Nl.nonce=n),Nl.setAttribute("type","text/css"),document.head.appendChild(Nl)),Nl.sheet&&(Nl.sheet.insertRule(`@media ${t} {body{ }}`,0),_R.add(t))}catch(e){console.error(e)}}(e,this._nonce),this._matchMedia(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(Ai),Me(h_,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function zJ(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let $J=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new vt}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return vR(Lm(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let r=jm(vR(Lm(e)).map(a=>this._registerQuery(a).observable));return r=Xh(r.pipe(_i(1)),r.pipe(gR(1),pR(0))),r.pipe(Bt(a=>{const s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:c})=>{s.matches=s.matches||l,s.breakpoints[c]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),r={observable:new On(a=>{const s=l=>this._zone.run(()=>a.next(l));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(sr(i),Bt(({matches:a})=>({query:e,matches:a})),yn(this._destroySubject)),mql:i};return this._queries.set(e,r),r}static{this.\u0275fac=function(i){return new(i||t)(Me(HJ),Me(wt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function vR(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}function CR(t,n,e){const i=xR(t,n);e=e.trim();const o=i.filter(r=>r!==e);o.length?t.setAttribute(n,o.join(" ")):t.removeAttribute(n)}function xR(t,n){return t.getAttribute(n)?.match(/\S+/g)??[]}class SR{constructor(n){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new vt,this._typeaheadSubscription=ge.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new vt,this.change=new vt,n instanceof Fa&&(this._itemChangesSubscription=n.changes.subscribe(e=>{if(this._activeItem){const o=e.toArray().indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}}))}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe($i(e=>this._pressedLetters.push(e)),pR(n),ui(()=>this._pressedLetters.length>0),Bt(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let o=1;o!n[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&o){this.setNextItemActive();break}return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&o){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&o){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&o){const r=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&o){const r=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],n.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){const e=this._getItemsArray(),i="number"==typeof n?n:e.indexOf(n);this._activeItem=e[i]??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const o=(this._activeItemIndex+n*i+e.length)%e.length;if(!this._skipPredicateFn(e[o]))return void this.setActiveItem(o)}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){const i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(!i[n+=e])return;this.setActiveItem(n)}}_getItemsArray(){return this._items instanceof Fa?this._items.toArray():this._items}}class UJ extends SR{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}}class DR extends SR{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}let lC=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function XJ(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function WJ(t){try{return t.frameElement}catch{return null}}(function iQ(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(i&&(-1===TR(i)||!this.isVisible(i)))return!1;let o=e.nodeName.toLowerCase(),r=TR(e);return e.hasAttribute("contenteditable")?-1!==r:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function tQ(t){let n=t.nodeName.toLowerCase(),e="input"===n&&t.type;return"text"===e||"password"===e||"select"===n||"textarea"===n}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==r:"video"===o?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function nQ(t){return!function QJ(t){return function qJ(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function JJ(t){let n=t.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(t)||function KJ(t){return function eQ(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||ER(t))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static{this.\u0275fac=function(i){return new(i||t)(Me(Ai))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function ER(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let n=t.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function TR(t){if(!ER(t))return null;const n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class oQ{get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}constructor(n,e,i,o,r=!1){this._element=n,this._checker=e,this._ngZone=i,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}destroy(){const n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){const e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return"start"==n?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){const e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){const e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const e=n.children;for(let i=0;i=0;i--){const o=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(o)return o}return null}_createAnchor(){const n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._ngZone.isStable?n():this._ngZone.onStable.pipe(_i(1)).subscribe(n)}}let MR=(()=>{class t{constructor(e,i,o){this._checker=e,this._ngZone=i,this._document=o}create(e,i=!1){return new oQ(e,this._checker,this._ngZone,this._document,i)}static{this.\u0275fac=function(i){return new(i||t)(Me(lC),Me(wt),Me(qt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function cC(t){return 0===t.buttons||0===t.detail}function uC(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const rQ=new He("cdk-input-modality-detector-options"),aQ={ignoreKeys:[18,17,224,91,16]},fu=du({passive:!0,capture:!0});let sQ=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,i,o,r){this._platform=e,this._mostRecentTarget=null,this._modality=new hi(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(s=>s===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Hs(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(cC(a)?"keyboard":"mouse"),this._mostRecentTarget=Hs(a))},this._onTouchstart=a=>{uC(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Hs(a))},this._options={...aQ,...r},this.modalityDetected=this._modality.pipe(gR(1)),this.modalityChanged=this.modalityDetected.pipe(sC()),e.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,fu),o.addEventListener("mousedown",this._onMousedown,fu),o.addEventListener("touchstart",this._onTouchstart,fu)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,fu),document.removeEventListener("mousedown",this._onMousedown,fu),document.removeEventListener("touchstart",this._onTouchstart,fu))}static{this.\u0275fac=function(i){return new(i||t)(Me(Ai),Me(wt),Me(qt),Me(rQ,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const lQ=new He("liveAnnouncerElement",{providedIn:"root",factory:function cQ(){return null}}),uQ=new He("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let dQ=0,hQ=(()=>{class t{constructor(e,i,o,r){this._ngZone=i,this._defaultOptions=r,this._document=o,this._liveElement=e||this._createLiveElement()}announce(e,...i){const o=this._defaultOptions;let r,a;return 1===i.length&&"number"==typeof i[0]?a=i[0]:[r,a]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),null==a&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{class t{constructor(e,i,o,r,a){this._ngZone=e,this._platform=i,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new vt,this._rootNodeFocusAndBlurListener=s=>{for(let c=Hs(s);c;c=c.parentElement)"focus"===s.type?this._onFocus(s,c):this._onBlur(s,c)},this._document=r,this._detectionMode=a?.detectionMode||Bm.IMMEDIATE}monitor(e,i=!1){const o=Ys(e);if(!this._platform.isBrowser||1!==o.nodeType)return Et();const r=function yJ(t){if(function bJ(){if(null==nC){const t=typeof document<"u"?document.head:null;nC=!(!t||!t.createShadowRoot&&!t.attachShadow)}return nC}()){const n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return i&&(a.checkChildren=!0),a.subject;const s={checkChildren:i,subject:new vt,rootNode:r};return this._elementInfo.set(o,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const i=Ys(e),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(e,i,o){const r=Ys(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([s,l])=>this._originChanged(s,i,l)):(this._setOrigin(i),"function"==typeof r.focus&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Bm.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,this._detectionMode===Bm.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const o=this._elementInfo.get(i),r=Hs(e);!o||!o.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),o)}_onBlur(e,i){const o=this._elementInfo.get(i);!o||o.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(o,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Hm),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Hm)}),this._rootNodeFocusListenerCount.set(i,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(yn(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Hm),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Hm),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,o){this._setClasses(e,i),this._emitOrigin(o,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&i.push([r,o])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const r=e.labels;if(r)for(let a=0;a{class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=Pe($J).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Fl.NONE;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,o=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Fl.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Fl.BLACK_ON_WHITE}return Fl.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(dC,kR,IR),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();i===Fl.BLACK_ON_WHITE?e.add(dC,kR):i===Fl.WHITE_ON_BLACK&&e.add(dC,IR)}}static{this.\u0275fac=function(i){return new(i||t)(Me(Ai),Me(qt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),pQ=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}static{this.\u0275fac=function(i){return new(i||t)(Me(OR))}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[mR]})}}return t})();const gQ=new He("cdk-dir-doc",{providedIn:"root",factory:function mQ(){return Pe(qt)}}),bQ=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let qa=(()=>{class t{constructor(e){this.value="ltr",this.change=new Ot,e&&(this.value=function yQ(t){const n=t?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?bQ.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(i){return new(i||t)(Me(gQ,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),pu=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({})}}return t})();const _Q=["text"],vQ=[[["mat-icon"]],"*"],wQ=["mat-icon","*"];function CQ(t,n){if(1&t&&at(0,"mat-pseudo-checkbox",1),2&t){const e=rt();Je("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function xQ(t,n){1&t&&at(0,"mat-pseudo-checkbox",3),2&t&&Je("disabled",rt().disabled)}function SQ(t,n){if(1&t&&(ye(0,"span",4),bn(1),ve()),2&t){const e=rt();Ne(),yr("(",e.group.label,")")}}const DQ=["mat-internal-form-field",""],EQ=["*"],MQ=new He("mat-sanity-checks",{providedIn:"root",factory:function TQ(){return!0}});let Ln=(()=>{class t{constructor(e,i,o){this._sanityChecks=i,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!iC()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}static{this.\u0275fac=function(i){return new(i||t)(Me(OR),Me(MQ,8),Me(qt))}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[pu,pu]})}}return t})();class hC{constructor(n,e,i,o,r){this._defaultMatcher=n,this.ngControl=e,this._parentFormGroup=i,this._parentForm=o,this._stateChanges=r,this.errorState=!1}updateErrorState(){const n=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,o=this.ngControl?this.ngControl.control:null,r=i?.isErrorState(o,e)??!1;r!==n&&(this.errorState=r,this._stateChanges.next())}}let Jh=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Dr=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(Dr||{});class PQ{constructor(n,e,i,o=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=o,this.state=Dr.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const NR=du({passive:!0,capture:!0});class NQ{constructor(){this._events=new Map,this._delegateEventHandler=n=>{const e=Hs(n);e&&this._events.get(n.type)?.forEach((i,o)=>{(o===e||o.contains(e))&&i.forEach(r=>r.handleEvent(n))})}}addHandler(n,e,i,o){const r=this._events.get(e);if(r){const a=r.get(i);a?a.add(o):r.set(i,new Set([o]))}else this._events.set(e,new Map([[i,new Set([o])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,NR)})}removeHandler(n,e,i){const o=this._events.get(n);if(!o)return;const r=o.get(e);r&&(r.delete(i),0===r.size&&o.delete(e),0===o.size&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,NR)))}}const FR={enterDuration:225,exitDuration:150},LR=du({passive:!0,capture:!0}),jR=["mousedown","touchstart"],BR=["mouseup","mouseleave","touchend","touchcancel"];class Ym{static{this._eventManager=new NQ}constructor(n,e,i,o){this._target=n,this._ngZone=e,this._platform=o,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=Ys(i))}fadeInRipple(n,e,i={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r={...FR,...i.animation};i.centered&&(n=o.left+o.width/2,e=o.top+o.height/2);const a=i.radius||function LQ(t,n,e){const i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+o*o)}(n,e,o),s=n-o.left,l=e-o.top,c=r.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=s-a+"px",u.style.top=l-a+"px",u.style.height=2*a+"px",u.style.width=2*a+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);const d=window.getComputedStyle(u),p=d.transitionDuration,g="none"===d.transitionProperty||"0s"===p||"0s, 0s"===p||0===o.width&&0===o.height,b=new PQ(this,u,i,g);u.style.transform="scale3d(1, 1, 1)",b.state=Dr.FADING_IN,i.persistent||(this._mostRecentTransientRipple=b);let T=null;return!g&&(c||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const D=()=>this._finishRippleTransition(b),H=()=>this._destroyRipple(b);u.addEventListener("transitionend",D),u.addEventListener("transitioncancel",H),T={onTransitionEnd:D,onTransitionCancel:H}}),this._activeRipples.set(b,T),(g||!c)&&this._finishRippleTransition(b),b}fadeOutRipple(n){if(n.state===Dr.FADING_OUT||n.state===Dr.HIDDEN)return;const e=n.element,i={...FR,...n.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=Dr.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const e=Ys(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,jR.forEach(i=>{Ym._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{BR.forEach(e=>{this._triggerElement.addEventListener(e,this,LR)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===Dr.FADING_IN?this._startFadeOutTransition(n):n.state===Dr.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){const e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=Dr.VISIBLE,!i&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){const e=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=Dr.HIDDEN,null!==e&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel)),n.element.remove()}_onMousedown(n){const e=cC(n),i=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(n.state===Dr.VISIBLE||n.config.terminateOnPointerUp&&n.state===Dr.FADING_IN)&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const n=this._triggerElement;n&&(jR.forEach(e=>Ym._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&BR.forEach(e=>n.removeEventListener(e,this,LR)))}}const HR=new He("mat-ripple-global-options");let Ll=(()=>{class t{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,o,r,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new Ym(this,i,e,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...o}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}static{this.\u0275fac=function(i){return new(i||t)(K(Zt),K(wt),K(Ai),K(HR,8),K(xo,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,o){2&i&&un("mat-ripple-unbounded",o.unbounded)},inputs:{color:[Le.None,"matRippleColor","color"],unbounded:[Le.None,"matRippleUnbounded","unbounded"],centered:[Le.None,"matRippleCentered","centered"],radius:[Le.None,"matRippleRadius","radius"],animation:[Le.None,"matRippleAnimation","animation"],disabled:[Le.None,"matRippleDisabled","disabled"],trigger:[Le.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}}return t})(),gu=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[Ln,Ln]})}}return t})(),YR=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}static{this.\u0275fac=function(i){return new(i||t)(K(xo,8))}}static{this.\u0275cmp=pn({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,o){2&i&&un("mat-pseudo-checkbox-indeterminate","indeterminate"===o.state)("mat-pseudo-checkbox-checked","checked"===o.state)("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal","minimal"===o.appearance)("mat-pseudo-checkbox-full","full"===o.appearance)("_mat-animation-noopable","NoopAnimations"===o._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[Zn],decls:0,vars:0,template:function(i,o){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}}return t})(),jQ=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[Ln]})}}return t})();const zR=new He("MAT_OPTION_PARENT_COMPONENT"),$R=new He("MatOptgroup");let BQ=0;class HQ{constructor(n,e=!1){this.source=n,this.isUserInput=e}}let fC=(()=>{class t{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=e}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(e,i,o,r){this._element=e,this._changeDetectorRef=i,this._parent=o,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+BQ++,this.onSelectionChange=new Ot,this._stateChanges=new vt}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,i){const o=this._getHostElement();"function"==typeof o.focus&&o.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!Qa(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new HQ(this,e))}static{this.\u0275fac=function(i){return new(i||t)(K(Zt),K(mi),K(zR,8),K($R,8))}}static{this.\u0275cmp=pn({type:t,selectors:[["mat-option"]],viewQuery:function(i,o){if(1&i&&Vn(_Q,7),2&i){let r;Ft(r=Lt())&&(o._text=r.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,o){1&i&&_t("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),2&i&&(Ts("id",o.id),Kt("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),un("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[Le.HasDecoratorInputTransform,"disabled","disabled",Nt]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[qi,Zn],ngContentSelectors:wQ,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(i,o){1&i&&(Oi(vQ),Mt(0,CQ,1,2,"mat-pseudo-checkbox",1),mn(1),ye(2,"span",2,0),mn(4,1),ve(),Mt(5,xQ,1,1,"mat-pseudo-checkbox",3)(6,SQ,2,1,"span",4),at(7,"div",5)),2&i&&(En(0,o.multiple?0:-1),Ne(5),En(5,o.multiple||!o.selected||o.hideSingleSelectionIndicator?-1:5),Ne(),En(6,o.group&&o.group._inert?6:-1),Ne(),Je("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[YR,Ll],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return t})(),VR=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[gu,Ln,jQ]})}}return t})();const ZR={capture:!0},GR=["focus","click","mouseenter","touchstart"],pC="mat-ripple-loader-uninitialized",gC="mat-ripple-loader-class-name",UR="mat-ripple-loader-centered",zm="mat-ripple-loader-disabled";let $Q=(()=>{class t{constructor(){this._document=Pe(qt,{optional:!0}),this._animationMode=Pe(xo,{optional:!0}),this._globalRippleOptions=Pe(HR,{optional:!0}),this._platform=Pe(Ai),this._ngZone=Pe(wt),this._hosts=new Map,this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;const o=e.target.closest(`[${pC}]`);o&&this._createRipple(o)},this._ngZone.runOutsideAngular(()=>{for(const e of GR)this._document?.addEventListener(e,this._onInteraction,ZR)})}ngOnDestroy(){const e=this._hosts.keys();for(const i of e)this.destroyRipple(i);for(const i of GR)this._document?.removeEventListener(i,this._onInteraction,ZR)}configureRipple(e,i){e.setAttribute(pC,""),(i.className||!e.hasAttribute(gC))&&e.setAttribute(gC,i.className||""),i.centered&&e.setAttribute(UR,""),i.disabled&&e.setAttribute(zm,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,i){const o=this._hosts.get(e);o?o.disabled=i:i?e.setAttribute(zm,""):e.removeAttribute(zm)}_createRipple(e){if(!this._document)return;const i=this._hosts.get(e);if(i)return i;e.querySelector(".mat-ripple")?.remove();const o=this._document.createElement("span");o.classList.add("mat-ripple",e.getAttribute(gC)),e.append(o);const r=new Ll(new Zt(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return r._isInitialized=!0,r.trigger=e,r.centered=e.hasAttribute(UR),r.disabled=e.hasAttribute(zm),this.attachRipple(e,r),r}attachRipple(e,i){e.removeAttribute(pC),this._hosts.set(e,i)}destroyRipple(e){const i=this._hosts.get(e);i&&(i.ngOnDestroy(),this._hosts.delete(e))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),WR=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=pn({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,o){2&i&&un("mdc-form-field--align-end","before"===o.labelPosition)},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[Zn],attrs:DQ,ngContentSelectors:EQ,decls:1,vars:0,template:function(i,o){1&i&&(Oi(),mn(0))},styles:[".mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-form-field{font-family:var(--mdc-form-field-label-text-font);line-height:var(--mdc-form-field-label-text-line-height);font-size:var(--mdc-form-field-label-text-size);font-weight:var(--mdc-form-field-label-text-weight);letter-spacing:var(--mdc-form-field-label-text-tracking);color:var(--mdc-form-field-label-text-color)}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0})}}return t})();const VQ=["*",[["mat-toolbar-row"]]],ZQ=["*","mat-toolbar-row"];let GQ=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=gt({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0})}}return t})(),XR=(()=>{class t{constructor(e,i,o){this._elementRef=e,this._platform=i,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static{this.\u0275fac=function(i){return new(i||t)(K(Zt),K(Ai),K(qt))}}static{this.\u0275cmp=pn({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,o,r){if(1&i&&ii(r,GQ,5),2&i){let a;Ft(a=Lt())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,o){2&i&&(eo(o.color?"mat-"+o.color:""),un("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",0===o._toolbarRows.length))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[Zn],ngContentSelectors:ZQ,decls:2,vars:0,template:function(i,o){1&i&&(Oi(VQ),mn(0),mn(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0})}}return t})(),UQ=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[Ln,Ln]})}}return t})();const $m=ke(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Kh(t){return new On(n=>{io(t()).subscribe(n)})}function mu(t,n){const e=Ae(t)?t:()=>t,i=o=>o.error(e());return new On(n?o=>n.schedule(i,0,o):i)}function mC(){return $n((t,n)=>{let e=null;t._refCount++;const i=Pn(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class JR extends On{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Qu(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new ge;const e=this.getSubject();n.add(this.source.subscribe(Pn(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=ge.EMPTY)}return n}refCount(){return mC()(this)}}function Vm(t){return $n((n,e)=>{let i=!1;n.subscribe(Pn(e,o=>{i=!0,e.next(o)},()=>{i||e.next(t),e.complete()}))})}function QR(t=XQ){return $n((n,e)=>{let i=!1;n.subscribe(Pn(e,o=>{i=!0,e.next(o)},()=>i?e.complete():e.error(t())))})}function XQ(){return new $m}function jl(t,n){const e=arguments.length>=2;return i=>i.pipe(t?ui((o,r)=>t(o,r,i)):gr,_i(1),e?Vm(n):QR(()=>new $m))}function es(t){return $n((n,e)=>{let r,i=null,o=!1;i=n.subscribe(Pn(e,void 0,void 0,a=>{r=io(t(a,es(t)(n))),i?(i.unsubscribe(),i=null,r.subscribe(e)):o=!0})),o&&(i.unsubscribe(),i=null,r.subscribe(e))})}function bC(t){return t<=0?()=>Sr:$n((n,e)=>{let i=[];n.subscribe(Pn(e,o=>{i.push(o),t{for(const o of i)e.next(o);e.complete()},void 0,()=>{i=null}))})}function KR(t){return Bt(()=>t)}const cn="primary",qh=Symbol("RouteTitle");class qQ{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function bu(t){return new qQ(t)}function eK(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[r]===o)}return t===n}function eP(t){return t.length>0?t[t.length-1]:null}function zs(t){return function WQ(t){return!!t&&(t instanceof On||Ae(t.lift)&&Ae(t.subscribe))}(t)?t:fh(t)?bi(Promise.resolve(t)):Et(t)}const nK={exact:function iP(t,n,e){if(!Bl(t.segments,n.segments)||!Zm(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!iP(t.children[i],n.children[i],e))return!1;return!0},subset:oP},tP={exact:function iK(t,n){return va(t,n)},subset:function oK(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>qR(t[e],n[e]))},ignored:()=>!0};function nP(t,n,e){return nK[e.paths](t.root,n.root,e.matrixParams)&&tP[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function oP(t,n,e){return rP(t,n,n.segments,e)}function rP(t,n,e,i){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!Bl(o,e)||n.hasChildren()||!Zm(o,e,i))}if(t.segments.length===e.length){if(!Bl(t.segments,e)||!Zm(t.segments,e,i))return!1;for(const o in n.children)if(!t.children[o]||!oP(t.children[o],n.children[o],i))return!1;return!0}{const o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!!(Bl(t.segments,o)&&Zm(t.segments,o,i)&&t.children[cn])&&rP(t.children[cn],n,r,i)}}function Zm(t,n,e){return n.every((i,o)=>tP[e](t[o].parameters,i.parameters))}class yu{constructor(n=new Hn([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=bu(this.queryParams),this._queryParamMap}toString(){return sK.serialize(this)}}class Hn{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Gm(this)}}class ef{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=bu(this.parameters),this._parameterMap}toString(){return lP(this)}}function Bl(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let _u=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>new _C,providedIn:"root"})}}return t})();class _C{parse(n){const e=new yK(n);return new yu(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${tf(n.root,!0)}`,i=function uK(t){const n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(o=>`${Um(e)}=${Um(o)}`).join("&"):`${Um(e)}=${Um(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function lK(t){return encodeURI(t)}(n.fragment)}`:""}`}}const sK=new _C;function Gm(t){return t.segments.map(n=>lP(n)).join("/")}function tf(t,n){if(!t.hasChildren())return Gm(t);if(n){const e=t.children[cn]?tf(t.children[cn],!1):"",i=[];return Object.entries(t.children).forEach(([o,r])=>{o!==cn&&i.push(`${o}:${tf(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function aK(t,n){let e=[];return Object.entries(t.children).forEach(([i,o])=>{i===cn&&(e=e.concat(n(o,i)))}),Object.entries(t.children).forEach(([i,o])=>{i!==cn&&(e=e.concat(n(o,i)))}),e}(t,(i,o)=>o===cn?[tf(t.children[cn],!1)]:[`${o}:${tf(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[cn]?`${Gm(t)}/${e[0]}`:`${Gm(t)}/(${e.join("//")})`}}function aP(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Um(t){return aP(t).replace(/%3B/gi,";")}function vC(t){return aP(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Wm(t){return decodeURIComponent(t)}function sP(t){return Wm(t.replace(/\+/g,"%20"))}function lP(t){return`${vC(t.path)}${function cK(t){return Object.entries(t).map(([n,e])=>`;${vC(n)}=${vC(e)}`).join("")}(t.parameters)}`}const dK=/^[^\/()?;#]+/;function wC(t){const n=t.match(dK);return n?n[0]:""}const hK=/^[^\/()?;=#]+/,pK=/^[^=?&#]+/,mK=/^[^&#]+/;class yK{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Hn([],{}):new Hn([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[cn]=new Hn(n,e)),i}parseSegment(){const n=wC(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(n),new ef(Wm(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=function fK(t){const n=t.match(hK);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=wC(this.remaining);o&&(i=o,this.capture(i))}n[Wm(e)]=Wm(i)}parseQueryParam(n){const e=function gK(t){const n=t.match(pK);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const a=function bK(t){const n=t.match(mK);return n?n[0]:""}(this.remaining);a&&(i=a,this.capture(i))}const o=sP(e),r=sP(i);if(n.hasOwnProperty(o)){let a=n[o];Array.isArray(a)||(a=[a],n[o]=a),a.push(r)}else n[o]=r}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=wC(this.remaining),o=this.remaining[i.length];if("/"!==o&&")"!==o&&";"!==o)throw new S(4010,!1);let r;i.indexOf(":")>-1?(r=i.slice(0,i.indexOf(":")),this.capture(r),this.capture(":")):n&&(r=cn);const a=this.parseChildren();e[r]=1===Object.keys(a).length?a[cn]:new Hn([],a),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new S(4011,!1)}}function cP(t){return t.segments.length>0?new Hn([],{[cn]:t}):t}function uP(t){const n={};for(const[i,o]of Object.entries(t.children)){const r=uP(o);if(i===cn&&0===r.segments.length&&r.hasChildren())for(const[a,s]of Object.entries(r.children))n[a]=s;else(r.segments.length>0||r.hasChildren())&&(n[i]=r)}return function _K(t){if(1===t.numberOfChildren&&t.children[cn]){const n=t.children[cn];return new Hn(t.segments.concat(n.segments),n.children)}return t}(new Hn(t.segments,n))}function vu(t){return t instanceof yu}function dP(t){let n;const o=cP(function e(r){const a={};for(const l of r.children){const c=e(l);a[l.outlet]=c}const s=new Hn(r.url,a);return r===t&&(n=s),s}(t.root));return n??o}function hP(t,n,e,i){let o=t;for(;o.parent;)o=o.parent;if(0===n.length)return CC(o,o,o,e,i);const r=function wK(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new pP(!0,0,t);let n=0,e=!1;const i=t.reduce((o,r,a)=>{if("object"==typeof r&&null!=r){if(r.outlets){const s={};return Object.entries(r.outlets).forEach(([l,c])=>{s[l]="string"==typeof c?c.split("/"):c}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return"string"!=typeof r?[...o,r]:0===a?(r.split("/").forEach((s,l)=>{0==l&&"."===s||(0==l&&""===s?e=!0:".."===s?n++:""!=s&&o.push(s))}),o):[...o,r]},[]);return new pP(e,n,i)}(n);if(r.toRoot())return CC(o,o,new Hn([],{}),e,i);const a=function CK(t,n,e){if(t.isAbsolute)return new Jm(n,!0,0);if(!e)return new Jm(n,!1,NaN);if(null===e.parent)return new Jm(e,!0,0);const i=Xm(t.commands[0])?0:1;return function xK(t,n,e){let i=t,o=n,r=e;for(;r>o;){if(r-=o,i=i.parent,!i)throw new S(4005,!1);o=i.segments.length}return new Jm(i,!1,o-r)}(e,e.segments.length-1+i,t.numberOfDoubleDots)}(r,o,t),s=a.processChildren?rf(a.segmentGroup,a.index,r.commands):gP(a.segmentGroup,a.index,r.commands);return CC(o,a.segmentGroup,s,e,i)}function Xm(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function nf(t){return"object"==typeof t&&null!=t&&t.outlets}function CC(t,n,e,i,o){let a,r={};i&&Object.entries(i).forEach(([l,c])=>{r[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`}),a=t===n?e:fP(t,n,e);const s=cP(uP(a));return new yu(s,r,o)}function fP(t,n,e){const i={};return Object.entries(t.children).forEach(([o,r])=>{i[o]=r===n?e:fP(r,n,e)}),new Hn(t.segments,i)}class pP{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&Xm(i[0]))throw new S(4003,!1);const o=i.find(nf);if(o&&o!==eP(i))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Jm{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function gP(t,n,e){if(t??=new Hn([],{}),0===t.segments.length&&t.hasChildren())return rf(t,n,e);const i=function DK(t,n,e){let i=0,o=n;const r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;const a=t.segments[o],s=e[i];if(nf(s))break;const l=`${s}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!bP(l,c,a))return r;i+=2}else{if(!bP(l,{},a))return r;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(t,n,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndexr!==cn)&&t.children[cn]&&1===t.numberOfChildren&&0===t.children[cn].segments.length){const r=rf(t.children[cn],n,e);return new Hn(t.segments,r.children)}return Object.entries(i).forEach(([r,a])=>{"string"==typeof a&&(a=[a]),null!==a&&(o[r]=gP(t.children[r],n,a))}),Object.entries(t.children).forEach(([r,a])=>{void 0===i[r]&&(o[r]=a)}),new Hn(t.segments,o)}}function xC(t,n,e){const i=t.segments.slice(0,n);let o=0;for(;o{"string"==typeof i&&(i=[i]),null!==i&&(n[e]=xC(new Hn([],{}),0,i))}),n}function mP(t){const n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function bP(t,n,e){return t==e.path&&va(n,e.parameters)}const af="imperative";var _n=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(_n||{});class wa{constructor(n,e){this.id=n,this.url=e}}class Qm extends wa{constructor(n,e,i="imperative",o=null){super(n,e),this.type=_n.NavigationStart,this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ts extends wa{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=_n.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var lr=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(lr||{}),Km=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Km||{});class wu extends wa{constructor(n,e,i,o){super(n,e),this.reason=i,this.code=o,this.type=_n.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Cu extends wa{constructor(n,e,i,o){super(n,e),this.reason=i,this.code=o,this.type=_n.NavigationSkipped}}class qm extends wa{constructor(n,e,i,o){super(n,e),this.error=i,this.target=o,this.type=_n.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class yP extends wa{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=_n.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class TK extends wa{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=_n.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class MK extends wa{constructor(n,e,i,o,r){super(n,e),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=r,this.type=_n.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class AK extends wa{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=_n.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class kK extends wa{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=_n.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class IK{constructor(n){this.route=n,this.type=_n.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class OK{constructor(n){this.route=n,this.type=_n.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class RK{constructor(n){this.snapshot=n,this.type=_n.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class PK{constructor(n){this.snapshot=n,this.type=_n.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class NK{constructor(n){this.snapshot=n,this.type=_n.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class FK{constructor(n){this.snapshot=n,this.type=_n.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _P{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=_n.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class SC{}class DC{constructor(n){this.url=n}}class LK{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new sf,this.attachRef=null}}let sf=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const o=this.getOrCreateContext(e);o.outlet=i,this.contexts.set(e,o)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new LK,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();class vP{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=EC(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=EC(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=TC(n,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return TC(n,this._root).map(e=>e.value)}}function EC(t,n){if(t===n.value)return n;for(const e of n.children){const i=EC(t,e);if(i)return i}return null}function TC(t,n){if(t===n.value)return[n];for(const e of n.children){const i=TC(t,e);if(i.length)return i.unshift(n),i}return[]}class Gr{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function xu(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class wP extends vP{constructor(n,e){super(n),this.snapshot=e,kC(this,n)}toString(){return this.snapshot.toString()}}function CP(t){const n=function jK(t){const r=new AC([],{},{},"",{},cn,t,null,{});return new xP("",new Gr(r,[]))}(t),e=new hi([new ef("",{})]),i=new hi({}),o=new hi({}),r=new hi({}),a=new hi(""),s=new Hl(e,i,r,a,o,cn,t,n.root);return s.snapshot=n.root,new wP(new Gr(s,[]),n)}class Hl{constructor(n,e,i,o,r,a,s,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=o,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(Bt(c=>c[qh]))??Et(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(Bt(n=>bu(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Bt(n=>bu(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function MC(t,n,e="emptyOnly"){let i;const{routeConfig:o}=t;return i=null===n||"always"!==e&&""!==o?.path&&(n.component||n.routeConfig?.loadComponent)?{params:{...t.params},data:{...t.data},resolve:{...t.data,...t._resolvedData??{}}}:{params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.data,...o?.data,...t._resolvedData}},o&&DP(o)&&(i.resolve[qh]=o.title),i}class AC{get title(){return this.data?.[qh]}constructor(n,e,i,o,r,a,s,l,c){this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=bu(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=bu(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class xP extends vP{constructor(n,e){super(e),this.url=n,kC(this,e)}toString(){return SP(this._root)}}function kC(t,n){n.value._routerState=t,n.children.forEach(e=>kC(t,e))}function SP(t){const n=t.children.length>0?` { ${t.children.map(SP).join(", ")} } `:"";return`${t.value}${n}`}function IC(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,va(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),va(n.params,e.params)||t.paramsSubject.next(e.params),function tK(t,n){if(t.length!==n.length)return!1;for(let e=0;eva(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||OC(t.parent,n.parent))}function DP(t){return"string"==typeof t.title||null===t.title}let RC=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=cn,this.activateEvents=new Ot,this.deactivateEvents=new Ot,this.attachEvents=new Ot,this.detachEvents=new Ot,this.parentContexts=Pe(sf),this.location=Pe(So),this.changeDetector=Pe(mi),this.environmentInjector=Pe(Lo),this.inputBinder=Pe(eb,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:o}=e.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=e;const o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new BK(e,s,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=gt({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Gi]})}}return t})();class BK{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Hl?this.route:n===sf?this.childContexts:this.parent.get(n,e)}}const eb=new He("");let EP=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:i}=e,o=jm([i.queryParams,i.params,i.data]).pipe(Ni(([r,a,s],l)=>(s={...r,...a,...s},0===l?Et(s):Promise.resolve(s)))).subscribe(r=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(e);const a=function d9(t){const n=dn(t);if(!n)return null;const e=new zd(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(i.component);if(a)for(const{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,r[s]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,o)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function lf(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const o=function YK(t,n,e){return n.children.map(i=>{for(const o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return lf(t,i,o);return lf(t,i)})}(t,n,e);return new Gr(i,o)}{if(t.shouldAttach(n.value)){const r=t.retrieve(n.value);if(null!==r){const a=r.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>lf(t,s)),a}}const i=function zK(t){return new Hl(new hi(t.url),new hi(t.params),new hi(t.queryParams),new hi(t.fragment),new hi(t.data),t.outlet,t.component,t)}(n.value),o=n.children.map(r=>lf(t,r));return new Gr(i,o)}}const TP="ngNavigationCancelingError";function MP(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=vu(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=AP(!1,lr.Redirect);return o.url=e,o.navigationBehaviorOptions=i,o}function AP(t,n){const e=new Error(`NavigationCancelingError: ${t||""}`);return e[TP]=!0,e.cancellationCode=n,e}function kP(t){return!!t&&t[TP]}let IP=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=pn({type:t,selectors:[["ng-component"]],standalone:!0,features:[Zn],decls:1,vars:0,template:function(i,o){1&i&&at(0,"router-outlet")},dependencies:[RC],encapsulation:2})}}return t})();function PC(t){const n=t.children&&t.children.map(PC),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==cn&&(e.component=IP),e}function Ca(t){return t.outlet||cn}function cf(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class JK{constructor(n,e,i,o,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=o,this.inputBindingEnabled=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),IC(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const o=xu(e);n.children.forEach(r=>{const a=r.value.outlet;this.deactivateRoutes(r,o[a],i),delete o[a]}),Object.values(o).forEach(r=>{this.deactivateRouteAndItsChildren(r,i)})}deactivateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(o===r)if(o.component){const a=i.getContext(o.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,i);else r&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=xu(n);for(const a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);if(i&&i.outlet){const a=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=xu(n);for(const a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){const o=xu(e);n.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],i),this.forwardEvent(new FK(r.value.snapshot))}),n.children.length&&this.forwardEvent(new PK(n.value.snapshot))}activateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(IC(o),o===r)if(o.component){const a=i.getOrCreateContext(o.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(o.component){const a=i.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),IC(s.route.value),this.activateChildRoutes(n,null,a.children)}else{const s=cf(o.snapshot);a.attachRef=null,a.route=o,a.injector=s,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(n,null,a.children)}}else this.activateChildRoutes(n,null,i)}}class OP{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class tb{constructor(n,e){this.component=n,this.route=e}}function QK(t,n,e){const i=t._root;return uf(i,n?n._root:null,e,[i.value])}function Su(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function i3(t){return null!==Gf(t)}(t)?n.get(t):t:i}function uf(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=xu(n);return t.children.forEach(a=>{(function qK(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,a=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){const l=function eq(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Bl(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Bl(t.url,n.url)||!va(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!OC(t,n)||!va(t.queryParams,n.queryParams);default:return!OC(t,n)}}(a,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new OP(i)):(r.data=a.data,r._resolvedData=a._resolvedData),uf(t,n,r.component?s?s.children:null:e,i,o),l&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new tb(s.outlet.component,a))}else a&&df(n,s,o),o.canActivateChecks.push(new OP(i)),uf(t,null,r.component?s?s.children:null:e,i,o)})(a,r[a.value.outlet],e,i.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>df(s,e.getContext(a),o)),o}function df(t,n,e){const i=xu(t),o=t.value;Object.entries(i).forEach(([r,a])=>{df(a,o.component?n?n.children.getContext(r):null:n,e)}),e.canDeactivateChecks.push(new tb(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function hf(t){return"function"==typeof t}function RP(t){return t instanceof $m||"EmptyError"===t?.name}const nb=Symbol("INITIAL_VALUE");function Du(){return Ni(t=>jm(t.map(n=>n.pipe(_i(1),sr(nb)))).pipe(Bt(n=>{for(const e of n)if(!0!==e){if(e===nb)return nb;if(!1===e||e instanceof yu)return e}return!0}),ui(n=>n!==nb),_i(1)))}function PP(t){return function ta(...t){return ac(t)}($i(n=>{if(vu(n))throw MP(0,n)}),Bt(n=>!0===n))}class NC{constructor(n){this.segmentGroup=n||null}}class FC extends Error{constructor(n){super(),this.urlTree=n}}function Eu(t){return mu(new NC(t))}class _q{constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],o=e.root;for(;;){if(i=i.concat(o.segments),0===o.numberOfChildren)return Et(i);if(o.numberOfChildren>1||!o.children[cn])return mu(new S(4e3,!1));o=o.children[cn]}}applyRedirectCommands(n,e,i){const o=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i);if(e.startsWith("/"))throw new FC(o);return o}applyRedirectCreateUrlTree(n,e,i,o){const r=this.createSegmentGroup(n,e.root,i,o);return new yu(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Object.entries(n).forEach(([o,r])=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);i[o]=e[s]}else i[o]=r}),i}createSegmentGroup(n,e,i,o){const r=this.createSegments(n,e.segments,i,o);let a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(n,l,i,o)}),new Hn(r,a)}createSegments(n,e,i,o){return e.map(r=>r.path.startsWith(":")?this.findPosParam(n,r,o):this.findOrReturn(r,i))}findPosParam(n,e,i){const o=i[e.path.substring(1)];if(!o)throw new S(4001,!1);return o}findOrReturn(n,e){let i=0;for(const o of e){if(o.path===n.path)return e.splice(i),o;i++}return n}}const LC={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function vq(t,n,e,i,o){const r=jC(t,n,e);return r.matched?(i=function VK(t,n){return t.providers&&!t._injector&&(t._injector=tg(t.providers,n,`Route: ${t.path}`)),t._injector??n}(n,i),function mq(t,n,e,i){const o=n.canMatch;return o&&0!==o.length?Et(o.map(a=>{const s=Su(a,t);return zs(function aq(t){return t&&hf(t.canMatch)}(s)?s.canMatch(n,e):ia(t,()=>s(n,e)))})).pipe(Du(),PP()):Et(!0)}(i,n,e).pipe(Bt(a=>!0===a?r:{...LC}))):Et(r)}function jC(t,n,e){if("**"===n.path)return function wq(t){return{matched:!0,parameters:t.length>0?eP(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}(e);if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...LC}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(n.matcher||eK)(e,t,n);if(!o)return{...LC};const r={};Object.entries(o.posParams??{}).forEach(([s,l])=>{r[s]=l.path});const a=o.consumed.length>0?{...r,...o.consumed[o.consumed.length-1].parameters}:r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function NP(t,n,e,i){return e.length>0&&function Sq(t,n,e){return e.some(i=>ib(t,n,i)&&Ca(i)!==cn)}(t,e,i)?{segmentGroup:new Hn(n,xq(i,new Hn(e,t.children))),slicedSegments:[]}:0===e.length&&function Dq(t,n,e){return e.some(i=>ib(t,n,i))}(t,e,i)?{segmentGroup:new Hn(t.segments,Cq(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new Hn(t.segments,t.children),slicedSegments:e}}function Cq(t,n,e,i){const o={};for(const r of e)if(ib(t,n,r)&&!i[Ca(r)]){const a=new Hn([],{});o[Ca(r)]=a}return{...i,...o}}function xq(t,n){const e={};e[cn]=n;for(const i of t)if(""===i.path&&Ca(i)!==cn){const o=new Hn([],{});e[Ca(i)]=o}return e}function ib(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}class Mq{}class Iq{constructor(n,e,i,o,r,a,s){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new _q(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new S(4002,`'${n.segmentGroup}'`)}recognize(){const n=NP(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(Bt(e=>{const i=new AC([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},cn,this.rootComponentType,null,{}),o=new Gr(i,e),r=new xP("",o),a=function vK(t,n,e=null,i=null){return hP(dP(t),n,e,i)}(i,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(r._root,null),{state:r,tree:a}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n,cn).pipe(es(i=>{if(i instanceof FC)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof NC?this.noMatchError(i):i}))}inheritParamsAndData(n,e){const i=n.value,o=MC(i,e,this.paramsInheritanceStrategy);i.params=Object.freeze(o.params),i.data=Object.freeze(o.data),n.children.forEach(r=>this.inheritParamsAndData(r,i))}processSegmentGroup(n,e,i,o){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,o,!0).pipe(Bt(r=>r instanceof Gr?[r]:[]))}processChildren(n,e,i){const o=[];for(const r of Object.keys(i.children))"primary"===r?o.unshift(r):o.push(r);return bi(o).pipe(au(r=>{const a=i.children[r],s=function WK(t,n){const e=t.filter(i=>Ca(i)===n);return e.push(...t.filter(i=>Ca(i)!==n)),e}(e,r);return this.processSegmentGroup(n,s,a,r)}),function QQ(t,n){return $n(function JQ(t,n,e,i,o){return(r,a)=>{let s=e,l=n,c=0;r.subscribe(Pn(a,u=>{const d=c++;l=s?t(l,u,d):(s=!0,u),i&&a.next(l)},o&&(()=>{s&&a.next(l),a.complete()})))}}(t,n,arguments.length>=2,!0))}((r,a)=>(r.push(...a),r)),Vm(null),function KQ(t,n){const e=arguments.length>=2;return i=>i.pipe(t?ui((o,r)=>t(o,r,i)):gr,bC(1),e?Vm(n):QR(()=>new $m))}(),Wi(r=>{if(null===r)return Eu(i);const a=FP(r);return function Oq(t){t.sort((n,e)=>n.value.outlet===cn?-1:e.value.outlet===cn?1:n.value.outlet.localeCompare(e.value.outlet))}(a),Et(a)}))}processSegment(n,e,i,o,r,a){return bi(e).pipe(au(s=>this.processSegmentAgainstRoute(s._injector??n,e,s,i,o,r,a).pipe(es(l=>{if(l instanceof NC)return Et(null);throw l}))),jl(s=>!!s),es(s=>{if(RP(s))return function Tq(t,n,e){return 0===n.length&&!t.children[e]}(i,o,r)?Et(new Mq):Eu(i);throw s}))}processSegmentAgainstRoute(n,e,i,o,r,a,s){return function Eq(t,n,e,i){return!!(Ca(t)===i||i!==cn&&ib(n,e,t))&&jC(n,t,e).matched}(i,o,r,a)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,o,i,r,a):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(n,o,e,i,r,a):Eu(o):Eu(o)}expandSegmentAgainstRouteUsingRedirect(n,e,i,o,r,a){const{matched:s,consumedSegments:l,positionalParamSegments:c,remainingSegments:u}=jC(e,o,r);if(!s)return Eu(e);o.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const d=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,c);return this.applyRedirects.lineralizeSegments(o,d).pipe(Wi(h=>this.processSegment(n,i,e,h.concat(u),a,!1)))}matchSegmentAgainstRoute(n,e,i,o,r){const a=vq(e,i,o,n);return"**"===i.path&&(e.children={}),a.pipe(Ni(s=>s.matched?this.getChildConfig(n=i._injector??n,i,o).pipe(Ni(({routes:l})=>{const c=i._loadedInjector??n,{consumedSegments:u,remainingSegments:d,parameters:h}=s,p=new AC(u,h,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function Pq(t){return t.data||{}}(i),Ca(i),i.component??i._loadedComponent??null,i,function Nq(t){return t.resolve||{}}(i)),{segmentGroup:g,slicedSegments:b}=NP(e,u,d,l);if(0===b.length&&g.hasChildren())return this.processChildren(c,l,g).pipe(Bt(D=>null===D?null:new Gr(p,D)));if(0===l.length&&0===b.length)return Et(new Gr(p,[]));const T=Ca(i)===r;return this.processSegment(c,l,g,b,T?cn:r,!0).pipe(Bt(D=>new Gr(p,D instanceof Gr?[D]:[])))})):Eu(e)))}getChildConfig(n,e,i){return e.children?Et({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?Et({routes:e._loadedRoutes,injector:e._loadedInjector}):function gq(t,n,e,i){const o=n.canLoad;return void 0===o||0===o.length?Et(!0):Et(o.map(a=>{const s=Su(a,t);return zs(function nq(t){return t&&hf(t.canLoad)}(s)?s.canLoad(n,e):ia(t,()=>s(n,e)))})).pipe(Du(),PP())}(n,e,i).pipe(Wi(o=>o?this.configLoader.loadChildren(n,e).pipe($i(r=>{e._loadedRoutes=r.routes,e._loadedInjector=r.injector})):function yq(t){return mu(AP(!1,lr.GuardRejected))}())):Et({routes:[],injector:n})}}function Rq(t){const n=t.value.routeConfig;return n&&""===n.path}function FP(t){const n=[],e=new Set;for(const i of t){if(!Rq(i)){n.push(i);continue}const o=n.find(r=>i.value.routeConfig===r.value.routeConfig);void 0!==o?(o.children.push(...i.children),e.add(o)):n.push(i)}for(const i of e){const o=FP(i.children);n.push(new Gr(i.value,o))}return n.filter(i=>!e.has(i))}function LP(t){const n=t.children.map(e=>LP(e)).flat();return[t,...n]}function BC(t){return Ni(n=>{const e=t(n);return e?bi(e).pipe(Bt(()=>n)):Et(n)})}let jP=(()=>{class t{buildTitle(e){let i,o=e.root;for(;void 0!==o;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(r=>r.outlet===cn);return i}getResolvedTitleForRoute(e){return e.data[qh]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Pe(Yq),providedIn:"root"})}}return t})(),Yq=(()=>{class t extends jP{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}static{this.\u0275fac=function(i){return new(i||t)(Me(OI))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const Tu=new He("",{providedIn:"root",factory:()=>({})}),Mu=new He("");let HC=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Pe(tk)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return Et(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=zs(e.loadComponent()).pipe(Bt(BP),$i(r=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=r}),Dl(()=>{this.componentLoaders.delete(e)})),o=new JR(i,()=>new vt).pipe(mC());return this.componentLoaders.set(e,o),o}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Et({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const r=function zq(t,n,e,i){return zs(t.loadChildren()).pipe(Bt(BP),Wi(o=>o instanceof DT||Array.isArray(o)?Et(o):bi(n.compileModuleAsync(o))),Bt(o=>{i&&i(t);let r,a,s=!1;return Array.isArray(o)?(a=o,!0):(r=o.create(e).injector,a=r.get(Mu,[],{optional:!0,self:!0}).flat()),{routes:a.map(PC),injector:r}}))}(i,this.compiler,e,this.onLoadEndListener).pipe(Dl(()=>{this.childrenLoaders.delete(i)})),a=new JR(r,()=>new vt).pipe(mC());return this.childrenLoaders.set(i,a),a}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function BP(t){return function $q(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let YC=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Pe(Vq),providedIn:"root"})}}return t})(),Vq=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const HP=new He(""),YP=new He("");function Zq(t,n,e){const i=t.get(YP),o=t.get(qt);return t.get(wt).runOutsideAngular(()=>{if(!o.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,Promise.resolve();let r;const a=new Promise(c=>{r=c}),s=o.startViewTransition(()=>(r(),function Gq(t){return new Promise(n=>{zE(n,{injector:t})})}(t))),{onViewTransitionCreated:l}=i;return l&&ia(t,()=>l({transition:s,from:n,to:e})),a})}let ob=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new vt,this.transitionAbortSubject=new vt,this.configLoader=Pe(HC),this.environmentInjector=Pe(Lo),this.urlSerializer=Pe(_u),this.rootContexts=Pe(sf),this.location=Pe(xl),this.inputBindingEnabled=null!==Pe(eb,{optional:!0}),this.titleStrategy=Pe(jP),this.options=Pe(Tu,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=Pe(YC),this.createViewTransition=Pe(HP,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>Et(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new OK(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new IK(o))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e,i,o){return this.transitions=new hi({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:af,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ui(r=>0!==r.id),Bt(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),Ni(r=>{let a=!1,s=!1;return Et(r).pipe(Ni(l=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",lr.SupersededByNewNavigation),Sr;this.currentTransition=r,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!c&&"reload"!==(l.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const d="";return this.events.next(new Cu(l.id,this.urlSerializer.serialize(l.rawUrl),d,Km.IgnoredSameUrlNavigation)),l.resolve(null),Sr}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return Et(l).pipe(Ni(d=>{const h=this.transitions?.getValue();return this.events.next(new Qm(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?Sr:Promise.resolve(d)}),function Fq(t,n,e,i,o,r){return Wi(a=>function Aq(t,n,e,i,o,r,a="emptyOnly"){return new Iq(t,n,e,i,o,a,r).recognize()}(t,n,e,i,a.extractedUrl,o,r).pipe(Bt(({state:s,tree:l})=>({...a,targetSnapshot:s,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),$i(d=>{r.targetSnapshot=d.targetSnapshot,r.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects};const h=new yP(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:d,extractedUrl:h,source:p,restoredState:g,extras:b}=l,T=new Qm(d,this.urlSerializer.serialize(h),p,g);this.events.next(T);const D=CP(this.rootComponentType).snapshot;return this.currentTransition=r={...l,targetSnapshot:D,urlAfterRedirects:h,extras:{...b,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=h,Et(r)}{const d="";return this.events.next(new Cu(l.id,this.urlSerializer.serialize(l.extractedUrl),d,Km.IgnoredByUrlHandlingStrategy)),l.resolve(null),Sr}}),$i(l=>{const c=new TK(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),Bt(l=>(this.currentTransition=r={...l,guards:QK(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},r)),function sq(t,n){return Wi(e=>{const{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:a}}=e;return 0===a.length&&0===r.length?Et({...e,guardsResult:!0}):function lq(t,n,e,i){return bi(t).pipe(Wi(o=>function pq(t,n,e,i,o){const r=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return r&&0!==r.length?Et(r.map(s=>{const l=cf(n)??o,c=Su(s,l);return zs(function rq(t){return t&&hf(t.canDeactivate)}(c)?c.canDeactivate(t,n,e,i):ia(l,()=>c(t,n,e,i))).pipe(jl())})).pipe(Du()):Et(!0)}(o.component,o.route,e,n,i)),jl(o=>!0!==o,!0))}(a,i,o,t).pipe(Wi(s=>s&&function tq(t){return"boolean"==typeof t}(s)?function cq(t,n,e,i){return bi(n).pipe(au(o=>Xh(function dq(t,n){return null!==t&&n&&n(new RK(t)),Et(!0)}(o.route.parent,i),function uq(t,n){return null!==t&&n&&n(new NK(t)),Et(!0)}(o.route,i),function fq(t,n,e){const i=n[n.length-1],r=n.slice(0,n.length-1).reverse().map(a=>function KK(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(a)).filter(a=>null!==a).map(a=>Kh(()=>Et(a.guards.map(l=>{const c=cf(a.node)??e,u=Su(l,c);return zs(function oq(t){return t&&hf(t.canActivateChild)}(u)?u.canActivateChild(i,t):ia(c,()=>u(i,t))).pipe(jl())})).pipe(Du())));return Et(r).pipe(Du())}(t,o.path,e),function hq(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return Et(!0);const o=i.map(r=>Kh(()=>{const a=cf(n)??e,s=Su(r,a);return zs(function iq(t){return t&&hf(t.canActivate)}(s)?s.canActivate(n,t):ia(a,()=>s(n,t))).pipe(jl())}));return Et(o).pipe(Du())}(t,o.route,e))),jl(o=>!0!==o,!0))}(i,r,t,n):Et(s)),Bt(s=>({...e,guardsResult:s})))})}(this.environmentInjector,l=>this.events.next(l)),$i(l=>{if(r.guardsResult=l.guardsResult,vu(l.guardsResult))throw MP(0,l.guardsResult);const c=new MK(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),ui(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",lr.GuardRejected),!1)),BC(l=>{if(l.guards.canActivateChecks.length)return Et(l).pipe($i(c=>{const u=new AK(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),Ni(c=>{let u=!1;return Et(c).pipe(function Lq(t,n){return Wi(e=>{const{targetSnapshot:i,guards:{canActivateChecks:o}}=e;if(!o.length)return Et(e);const r=new Set(o.map(l=>l.route)),a=new Set;for(const l of r)if(!a.has(l))for(const c of LP(l))a.add(c);let s=0;return bi(a).pipe(au(l=>r.has(l)?function jq(t,n,e,i){const o=t.routeConfig,r=t._resolve;return void 0!==o?.title&&!DP(o)&&(r[qh]=o.title),function Bq(t,n,e,i){const o=yC(t);if(0===o.length)return Et({});const r={};return bi(o).pipe(Wi(a=>function Hq(t,n,e,i){const o=cf(n)??i,r=Su(t,o);return zs(r.resolve?r.resolve(n,e):ia(o,()=>r(n,e)))}(t[a],n,e,i).pipe(jl(),$i(s=>{r[a]=s}))),bC(1),KR(r),es(a=>RP(a)?Sr:mu(a)))}(r,t,n,i).pipe(Bt(a=>(t._resolvedData=a,t.data=MC(t,t.parent,e).resolve,null)))}(l,i,t,n):(l.data=MC(l,l.parent,t).resolve,Et(void 0))),$i(()=>s++),bC(1),Wi(l=>s===a.size?Et(e):Sr))})}(this.paramsInheritanceStrategy,this.environmentInjector),$i({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(c,"",lr.NoDataFromResolver)}}))}),$i(c=>{const u=new kK(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}))}),BC(l=>{const c=u=>{const d=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(u.routeConfig).pipe($i(h=>{u.component=h}),Bt(()=>{})));for(const h of u.children)d.push(...c(h));return d};return jm(c(l.targetSnapshot.root)).pipe(Vm(null),_i(1))}),BC(()=>this.afterPreactivation()),Ni(()=>{const{currentSnapshot:l,targetSnapshot:c}=r,u=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return u?bi(u).pipe(Bt(()=>r)):Et(r)}),Bt(l=>{const c=function HK(t,n,e){const i=lf(t,n._root,e?e._root:void 0);return new wP(i,n)}(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=r={...l,targetRouterState:c},this.currentNavigation.targetRouterState=c,r}),$i(()=>{this.events.next(new SC)}),((t,n,e,i)=>Bt(o=>(new JK(n,o.targetRouterState,o.currentRouterState,e,i).activate(t),o)))(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),_i(1),$i({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ts(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),yn(this.transitionAbortSubject.pipe($i(l=>{throw l}))),Dl(()=>{a||s||this.cancelNavigationTransition(r,"",lr.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation=null,this.currentTransition=null)}),es(l=>{if(s=!0,kP(l))this.events.next(new wu(r.id,this.urlSerializer.serialize(r.extractedUrl),l.message,l.cancellationCode)),function $K(t){return kP(t)&&vu(t.url)}(l)?this.events.next(new DC(l.url)):r.resolve(!1);else{this.events.next(new qm(r.id,this.urlSerializer.serialize(r.extractedUrl),l,r.targetSnapshot??void 0));try{r.resolve(e.errorHandler(l))}catch(c){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(c)}}return Sr}))}))}cancelNavigationTransition(e,i,o){const r=new wu(e.id,this.urlSerializer.serialize(e.extractedUrl),i,o);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Uq(t){return t!==af}let Wq=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Pe(Jq),providedIn:"root"})}}return t})();class Xq{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let Jq=(()=>{class t extends Xq{static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=yi(t)))(o||t)}})()}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),zP=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Pe(Qq),providedIn:"root"})}}return t})(),Qq=(()=>{class t extends zP{constructor(){super(...arguments),this.location=Pe(xl),this.urlSerializer=Pe(_u),this.options=Pe(Tu,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=Pe(YC),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new yu,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=CP(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{"popstate"===i.type&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof Qm)this.stateMemento=this.createStateMemento();else if(e instanceof Cu)this.rawUrlTree=i.initialUrl;else if(e instanceof yP){if("eager"===this.urlUpdateStrategy&&!i.extras.skipLocationChange){const o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else e instanceof SC?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,"deferred"===this.urlUpdateStrategy&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):e instanceof wu&&(e.code===lr.GuardRejected||e.code===lr.NoDataFromResolver)?this.restoreHistory(i):e instanceof qm?this.restoreHistory(i,!0):e instanceof ts&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){const o=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){const a={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(o,"",a)}else{const r={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId+1)};this.location.go(o,"",r)}}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-this.browserPageId;0!==r?this.location.historyGo(r):this.currentUrlTree===e.finalUrl&&0===r&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=yi(t)))(o||t)}})()}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ff=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(ff||{});function $P(t,n){t.events.pipe(ui(e=>e instanceof ts||e instanceof wu||e instanceof qm||e instanceof Cu),Bt(e=>e instanceof ts||e instanceof Cu?ff.COMPLETE:e instanceof wu&&(e.code===lr.Redirect||e.code===lr.SupersededByNewNavigation)?ff.REDIRECTING:ff.FAILED),ui(e=>e!==ff.REDIRECTING),_i(1)).subscribe(()=>{n()})}function Kq(t){throw t}const qq={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},eee={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ko=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=Pe(ZA),this.stateManager=Pe(zP),this.options=Pe(Tu,{optional:!0})||{},this.pendingTasks=Pe(Cs),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=Pe(ob),this.urlSerializer=Pe(_u),this.location=Pe(xl),this.urlHandlingStrategy=Pe(YC),this._events=new vt,this.errorHandler=this.options.errorHandler||Kq,this.navigated=!1,this.routeReuseStrategy=Pe(Wq),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=Pe(Mu,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!Pe(eb,{optional:!0}),this.eventsSubscription=new ge,this.isNgZoneEnabled=Pe(wt)instanceof wt&&wt.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(i=>{try{const o=this.navigationTransitions.currentTransition,r=this.navigationTransitions.currentNavigation;if(null!==o&&null!==r)if(this.stateManager.handleRouterEvent(i,r),i instanceof wu&&i.code!==lr.Redirect&&i.code!==lr.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof ts)this.navigated=!0;else if(i instanceof DC){const a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),s={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Uq(o.source)};this.scheduleNavigation(a,af,null,s,{resolve:o.resolve,reject:o.reject,promise:o.promise})}(function nee(t){return!(t instanceof SC||t instanceof DC)})(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),af,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,o){const r={replaceUrl:!0},a=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(r.state=l)}const s=this.parseUrl(e);this.scheduleNavigation(s,i,a,r)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(PC),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){const{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:s,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:a;let d,u=null;switch(s){case"merge":u={...this.currentUrlTree.queryParams,...r};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}null!==u&&(u=this.removeEmptyProps(u));try{d=dP(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),d=this.currentUrlTree.root}return hP(d,e,u,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){const o=vu(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,af,null,i)}navigate(e,i={skipLocationChange:!1}){return function tee(t){for(let n=0;n(null!=r&&(i[o]=r),i),{})}scheduleNavigation(e,i,o,r,a){if(this.disposed)return Promise.resolve(!1);let s,l,c;a?(s=a.resolve,l=a.reject,c=a.promise):c=new Promise((d,h)=>{s=d,l=h});const u=this.pendingTasks.add();return $P(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:s,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),pf=(()=>{class t{constructor(e,i,o,r,a,s){this.router=e,this.route=i,this.tabIndexAttribute=o,this.renderer=r,this.el=a,this.locationStrategy=s,this.href=null,this.commands=null,this.onChanges=new vt,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof ts&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,i,o,r,a){const s=this.urlTree;return!!(null===s||this.isAnchorElement&&(0!==e||i||o||r||a||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(s,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const e=this.urlTree;this.href=null!==e&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;const i=null===this.href?null:function jD(t,n,e){return function h5(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?LD:Sd}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){const o=this.renderer,r=this.el.nativeElement;null!==i?o.setAttribute(r,e,i):o.removeAttribute(r,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(i){return new(i||t)(K(ko),K(Hl),ua("tabindex"),K(Ha),K(Zt),K(Cl))}}static{this.\u0275dir=gt({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){1&i&&_t("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),2&i&&Kt("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[Le.HasDecoratorInputTransform,"preserveFragment","preserveFragment",Nt],skipLocationChange:[Le.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",Nt],replaceUrl:[Le.HasDecoratorInputTransform,"replaceUrl","replaceUrl",Nt],routerLink:"routerLink"},standalone:!0,features:[qi,Gi]})}}return t})();class VP{}let ree=(()=>{class t{constructor(e,i,o,r,a){this.router=e,this.injector=o,this.preloadingStrategy=r,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(ui(e=>e instanceof ts),au(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const o=[];for(const r of i){r.providers&&!r._injector&&(r._injector=tg(r.providers,e,`Route: ${r.path}`));const a=r._injector??e,s=r._loadedInjector??a;(r.loadChildren&&!r._loadedRoutes&&void 0===r.canLoad||r.loadComponent&&!r._loadedComponent)&&o.push(this.preloadConfig(a,r)),(r.children||r._loadedRoutes)&&o.push(this.processRoutes(s,r.children??r._loadedRoutes))}return bi(o).pipe(hu())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let o;o=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):Et(null);const r=o.pipe(Wi(a=>null===a?Et(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));return i.loadComponent&&!i._loadedComponent?bi([r,this.loader.loadComponent(i)]).pipe(hu()):r})}static{this.\u0275fac=function(i){return new(i||t)(Me(ko),Me(tk),Me(Lo),Me(VP),Me(HC))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const zC=new He("");let ZP=(()=>{class t{constructor(e,i,o,r,a={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=o,this.zone=r,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Qm?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof ts?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Cu&&e.code===Km.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof _P&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new _P(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(i){z_()}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function xa(t,n){return{\u0275kind:t,\u0275providers:n}}function UP(){const t=Pe(gi);return n=>{const e=t.get(Yr);if(n!==e.components[0])return;const i=t.get(ko),o=t.get(WP);1===t.get($C)&&i.initialNavigation(),t.get(XP,null,fn.Optional)?.setUpPreloading(),t.get(zC,null,fn.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const WP=new He("",{factory:()=>new vt}),$C=new He("",{providedIn:"root",factory:()=>1}),XP=new He("");function cee(t){return xa(0,[{provide:XP,useExisting:ree},{provide:VP,useExisting:t}])}function dee(t){return xa(9,[{provide:HP,useValue:Zq},{provide:YP,useValue:{skipNextTransition:!!t?.skipInitialTransition,...t}}])}const JP=new He("ROUTER_FORROOT_GUARD"),hee=[xl,{provide:_u,useClass:_C},ko,sf,{provide:Hl,useFactory:function GP(t){return t.routerState.root},deps:[ko]},HC,[]];let QP=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[hee,[],{provide:Mu,multi:!0,useValue:e},{provide:JP,useFactory:mee,deps:[[ko,new ps,new lc]]},{provide:Tu,useValue:i||{}},i?.useHash?{provide:Cl,useClass:m9}:{provide:Cl,useClass:Vk},{provide:zC,useFactory:()=>{const t=Pe(PV),n=Pe(wt),e=Pe(Tu),i=Pe(ob),o=Pe(_u);return e.scrollOffset&&t.setOffset(e.scrollOffset),new ZP(o,i,t,n,e)}},i?.preloadingStrategy?cee(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?bee(i):[],i?.bindToComponentInputs?xa(8,[EP,{provide:eb,useExisting:EP}]).\u0275providers:[],i?.enableViewTransitions?dee().\u0275providers:[],[{provide:KP,useFactory:UP},{provide:hw,multi:!0,useExisting:KP}]]}}static forChild(e){return{ngModule:t,providers:[{provide:Mu,multi:!0,useValue:e}]}}static{this.\u0275fac=function(i){return new(i||t)(Me(JP,8))}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({})}}return t})();function mee(t){return"guarded"}function bee(t){return["disabled"===t.initialNavigation?xa(3,[{provide:uw,multi:!0,useFactory:()=>{const n=Pe(ko);return()=>{n.setUpLocationChangeListener()}}},{provide:$C,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?xa(2,[{provide:$C,useValue:0},{provide:uw,multi:!0,deps:[gi],useFactory:n=>{const e=n.get(p9,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const o=n.get(ko),r=n.get(WP);$P(o,()=>{i(!0)}),n.get(ob).afterPreactivation=()=>(i(!0),r.closed?Et(void 0):r),o.initialNavigation()}))}}]).\u0275providers:[]]}const KP=new He("");var _ee=function(n){return function vee(t){return!!t&&"object"==typeof t}(n)&&!function wee(t){var n=Object.prototype.toString.call(t);return"[object RegExp]"===n||"[object Date]"===n||function See(t){return t.$$typeof===xee}(t)}(n)},xee="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function gf(t,n){return!1!==n.clone&&n.isMergeableObject(t)?Au(function Dee(t){return Array.isArray(t)?[]:{}}(t),t,n):t}function Eee(t,n,e){return t.concat(n).map(function(i){return gf(i,e)})}function qP(t){return Object.keys(t).concat(function Mee(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(n){return Object.propertyIsEnumerable.call(t,n)}):[]}(t))}function eN(t,n){try{return n in t}catch{return!1}}function Au(t,n,e){(e=e||{}).arrayMerge=e.arrayMerge||Eee,e.isMergeableObject=e.isMergeableObject||_ee,e.cloneUnlessOtherwiseSpecified=gf;var i=Array.isArray(n);return i===Array.isArray(t)?i?e.arrayMerge(t,n,e):function kee(t,n,e){var i={};return e.isMergeableObject(t)&&qP(t).forEach(function(o){i[o]=gf(t[o],e)}),qP(n).forEach(function(o){(function Aee(t,n){return eN(t,n)&&!(Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))})(t,o)||(i[o]=eN(t,o)&&e.isMergeableObject(n[o])?function Tee(t,n){if(!n.customMerge)return Au;var e=n.customMerge(t);return"function"==typeof e?e:Au}(o,e)(t[o],n[o],e):gf(n[o],e))}),i}(t,n,e):gf(n,e)}Au.all=function(n,e){if(!Array.isArray(n))throw new Error("first argument should be an array");return n.reduce(function(i,o){return Au(i,o,e)},{})};var VC=Au;function ZC(t){return t instanceof HTMLElement}function Yl(t){return"function"==typeof t}function mf(t){return"string"==typeof t}function go(t){return void 0===t}class GC{on(n,e,i,o=!1){return go(this.bindings)&&(this.bindings={}),go(this.bindings[n])&&(this.bindings[n]=[]),this.bindings[n].push({handler:e,ctx:i,once:o}),this}once(n,e,i){return this.on(n,e,i,!0)}off(n,e){return go(this.bindings)||go(this.bindings[n])||(go(e)?delete this.bindings[n]:this.bindings[n].forEach((i,o)=>{i.handler===e&&this.bindings[n].splice(o,1)})),this}trigger(n,...e){return!go(this.bindings)&&this.bindings[n]&&this.bindings[n].forEach((i,o)=>{const{ctx:r,handler:a,once:s}=i;a.apply(r||this,e),s&&this.bindings[n].splice(o,1)}),this}}function tN(t){const n=Object.getOwnPropertyNames(t.constructor.prototype);for(let e=0;e{const e=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==n?e:3&e|8).toString(16)})}function mo(){return mo=Object.assign?Object.assign.bind():function(t){for(var n=1;n=0)&&(e[o]=t[o]);return e}const ku=Math.min,zl=Math.max,rb=Math.round,ab=Math.floor,$s=t=>({x:t,y:t}),Fee={left:"right",right:"left",bottom:"top",top:"bottom"},Lee={start:"end",end:"start"};function WC(t,n,e){return zl(t,ku(n,e))}function Iu(t,n){return"function"==typeof t?t(n):t}function $l(t){return t.split("-")[0]}function sb(t){return t.split("-")[1]}function XC(t){return"x"===t?"y":"x"}function JC(t){return"y"===t?"height":"width"}function lb(t){return["top","bottom"].includes($l(t))?"y":"x"}function QC(t){return XC(lb(t))}function KC(t){return t.replace(/start|end/g,n=>Lee[n])}function cb(t){return t.replace(/left|right|bottom|top/g,n=>Fee[n])}function rN(t){return"number"!=typeof t?function zee(t){return mo({top:0,right:0,bottom:0,left:0},t)}(t):{top:t,right:t,bottom:t,left:t}}function ub(t){return mo({},t,{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}const $ee=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],Vee=["mainAxis","crossAxis","limiter"];function aN(t,n,e){let{reference:i,floating:o}=t;const r=lb(n),a=QC(n),s=JC(a),l=$l(n),c="y"===r,u=i.x+i.width/2-o.width/2,d=i.y+i.height/2-o.height/2,h=i[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:i.y-o.height};break;case"bottom":p={x:u,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:d};break;case"left":p={x:i.x-o.width,y:d};break;default:p={x:i.x,y:i.y}}switch(sb(n)){case"start":p[a]-=h*(e&&c?-1:1);break;case"end":p[a]+=h*(e&&c?-1:1)}return p}const Zee=function(){var t=(0,y.Z)(function*(n,e,i){const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:s}=i,l=a.filter(Boolean),c=yield null==s.isRTL?void 0:s.isRTL(e);let u=yield s.getElementRects({reference:n,floating:e,strategy:r}),{x:d,y:h}=aN(u,o,c),p=o,g={},b=0;for(let T=0;Tpe&&(g=pe)}if(u){var H,oe;const le="y"===p?"width":"height",G=["top","left"].includes($l(r)),pe=a.reference[h]-a.floating[le]+(G&&(null==(H=s.offset)?void 0:H[h])||0)+(G?0:D.crossAxis),_e=a.reference[h]+a.reference[le]+(G?0:(null==(oe=s.offset)?void 0:oe[h])||0)-(G?D.crossAxis:0);b_e&&(b=_e)}return{[p]:g,[h]:b}}}};function Vs(t){return lN(t)?(t.nodeName||"").toLowerCase():"#document"}function cr(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function ns(t){var n;return null==(n=(lN(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function lN(t){return t instanceof Node||t instanceof cr(t).Node}function is(t){return t instanceof Element||t instanceof cr(t).Element}function Sa(t){return t instanceof HTMLElement||t instanceof cr(t).HTMLElement}function cN(t){return!(typeof ShadowRoot>"u")&&(t instanceof ShadowRoot||t instanceof cr(t).ShadowRoot)}function bf(t){const{overflow:n,overflowX:e,overflowY:i,display:o}=Er(t);return/auto|scroll|overlay|hidden|clip/.test(n+i+e)&&!["inline","contents"].includes(o)}function Jee(t){return["table","td","th"].includes(Vs(t))}function e1(t){const n=t1(),e=Er(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!n&&!!e.backdropFilter&&"none"!==e.backdropFilter||!n&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some(i=>(e.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(e.contain||"").includes(i))}function t1(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function db(t){return["html","body","#document"].includes(Vs(t))}function Er(t){return cr(t).getComputedStyle(t)}function hb(t){return is(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ou(t){if("html"===Vs(t))return t;const n=t.assignedSlot||t.parentNode||cN(t)&&t.host||ns(t);return cN(n)?n.host:n}function uN(t){const n=Ou(t);return db(n)?t.ownerDocument?t.ownerDocument.body:t.body:Sa(n)&&bf(n)?n:uN(n)}function fb(t,n){var e;void 0===n&&(n=[]);const i=uN(t),o=i===(null==(e=t.ownerDocument)?void 0:e.body),r=cr(i);return o?n.concat(r,r.visualViewport||[],bf(i)?i:[]):n.concat(i,fb(i))}function dN(t){const n=Er(t);let e=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const o=Sa(t),r=o?t.offsetWidth:e,a=o?t.offsetHeight:i,s=rb(e)!==r||rb(i)!==a;return s&&(e=r,i=a),{width:e,height:i,$:s}}function n1(t){return is(t)?t:t.contextElement}function Ru(t){const n=n1(t);if(!Sa(n))return $s(1);const e=n.getBoundingClientRect(),{width:i,height:o,$:r}=dN(n);let a=(r?rb(e.width):e.width)/i,s=(r?rb(e.height):e.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Kee=$s(0);function hN(t){const n=cr(t);return t1()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:Kee}function Vl(t,n,e,i){void 0===n&&(n=!1),void 0===e&&(e=!1);const o=t.getBoundingClientRect(),r=n1(t);let a=$s(1);n&&(i?is(i)&&(a=Ru(i)):a=Ru(t));const s=function qee(t,n,e){return void 0===n&&(n=!1),!(!e||n&&e!==cr(t))&&n}(r,e,i)?hN(r):$s(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(r){const h=cr(r),p=i&&is(i)?cr(i):i;let g=h.frameElement;for(;g&&i&&p!==h;){const b=Ru(g),T=g.getBoundingClientRect(),D=Er(g),H=T.left+(g.clientLeft+parseFloat(D.paddingLeft))*b.x,oe=T.top+(g.clientTop+parseFloat(D.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=H,c+=oe,g=cr(g).frameElement}}return ub({width:u,height:d,x:l,y:c})}function fN(t){return Vl(ns(t)).left+hb(t).scrollLeft}function pN(t,n,e){let i;if("viewport"===n)i=function ite(t,n){const e=cr(t),i=ns(t),o=e.visualViewport;let r=i.clientWidth,a=i.clientHeight,s=0,l=0;if(o){r=o.width,a=o.height;const c=t1();(!c||c&&"fixed"===n)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:r,height:a,x:s,y:l}}(t,e);else if("document"===n)i=function nte(t){const n=ns(t),e=hb(t),i=t.ownerDocument.body,o=zl(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),r=zl(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let a=-e.scrollLeft+fN(t);const s=-e.scrollTop;return"rtl"===Er(i).direction&&(a+=zl(n.clientWidth,i.clientWidth)-o),{width:o,height:r,x:a,y:s}}(ns(t));else if(is(n))i=function ote(t,n){const e=Vl(t,!0,"fixed"===n),i=e.top+t.clientTop,o=e.left+t.clientLeft,r=Sa(t)?Ru(t):$s(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y}}(n,e);else{const o=hN(t);i=mo({},n,{x:n.x-o.x,y:n.y-o.y})}return ub(i)}function gN(t,n){const e=Ou(t);return!(e===n||!is(e)||db(e))&&("fixed"===Er(e).position||gN(e,n))}function rte(t,n){const e=n.get(t);if(e)return e;let i=fb(t).filter(s=>is(s)&&"body"!==Vs(s)),o=null;const r="fixed"===Er(t).position;let a=r?Ou(t):t;for(;is(a)&&!db(a);){const s=Er(a),l=e1(a);!l&&"fixed"===s.position&&(o=null),(r?!l&&!o:!l&&"static"===s.position&&o&&["absolute","fixed"].includes(o.position)||bf(a)&&!l&&gN(t,a))?i=i.filter(u=>u!==a):o=s,a=Ou(a)}return n.set(t,i),i}function lte(t,n,e){const i=Sa(n),o=ns(n),r="fixed"===e,a=Vl(t,!0,r,n);let s={scrollLeft:0,scrollTop:0};const l=$s(0);if(i||!i&&!r)if(("body"!==Vs(n)||bf(o))&&(s=hb(n)),i){const c=Vl(n,!0,r,n);l.x=c.x+n.clientLeft,l.y=c.y+n.clientTop}else o&&(l.x=fN(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function mN(t,n){return Sa(t)&&"fixed"!==Er(t).position?n?n(t):t.offsetParent:null}function bN(t,n){const e=cr(t);if(!Sa(t))return e;let i=mN(t,n);for(;i&&Jee(i)&&"static"===Er(i).position;)i=mN(i,n);return i&&("html"===Vs(i)||"body"===Vs(i)&&"static"===Er(i).position&&!e1(i))?e:i||function Qee(t){let n=Ou(t);for(;Sa(n)&&!db(n);){if(e1(n))return n;n=Ou(n)}return null}(t)||e}const cte=function(){var t=(0,y.Z)(function*(e){let{reference:i,floating:o,strategy:r}=e;const a=this.getOffsetParent||bN,s=this.getDimensions;return{reference:lte(i,yield a(o),r),floating:mo({x:0,y:0},yield s(o))}});return function n(e){return t.apply(this,arguments)}}(),dte={convertOffsetParentRelativeRectToViewportRelativeRect:function ete(t){let{rect:n,offsetParent:e,strategy:i}=t;const o=Sa(e),r=ns(e);if(e===r)return n;let a={scrollLeft:0,scrollTop:0},s=$s(1);const l=$s(0);if((o||!o&&"fixed"!==i)&&(("body"!==Vs(e)||bf(r))&&(a=hb(e)),Sa(e))){const c=Vl(e);s=Ru(e),l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-a.scrollLeft*s.x+l.x,y:n.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:ns,getClippingRect:function ate(t){let{element:n,boundary:e,rootBoundary:i,strategy:o}=t;const a=[..."clippingAncestors"===e?rte(n,this._c):[].concat(e),i],l=a.reduce((c,u)=>{const d=pN(n,u,o);return c.top=zl(d.top,c.top),c.right=ku(d.right,c.right),c.bottom=ku(d.bottom,c.bottom),c.left=zl(d.left,c.left),c},pN(n,a[0],o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:bN,getElementRects:cte,getClientRects:function tte(t){return Array.from(t.getClientRects())},getDimensions:function ste(t){return dN(t)},getScale:Ru,isElement:is,isRTL:function ute(t){return"rtl"===Er(t).direction}};function gte(t){t.cleanup&&t.cleanup();const n=t._getResolvedAttachToOptions();let e=n.element;const i=function wte(t,n){const e={strategy:"absolute",middleware:[]},i=function Cte(t){return!(!t.options.arrow||!t.el)&&t.el.querySelector(".shepherd-arrow")}(n);return iN(t)||(e.middleware.push(function(n){return void 0===n&&(n={}),{name:"flip",options:n,fn:e=>(0,y.Z)(function*(){var i;const{placement:o,middlewareData:r,rects:a,initialPlacement:s,platform:l,elements:c}=e,u=Iu(n,e),{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:T=!0}=u,D=oN(u,$ee),H=$l(o),oe=$l(s)===s,le=yield null==l.isRTL?void 0:l.isRTL(c.floating),G=p||(oe||!T?[cb(s)]:function Bee(t){const n=cb(t);return[KC(t),n,KC(n)]}(s));!p&&"none"!==b&&G.push(...function Yee(t,n,e,i){const o=sb(t);let r=function Hee(t,n,e){const i=["left","right"],o=["right","left"],r=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return e?n?o:i:n?i:o;case"left":case"right":return n?r:a;default:return[]}}($l(t),"start"===e,i);return o&&(r=r.map(a=>a+"-"+o),n&&(r=r.concat(r.map(KC)))),r}(s,T,b,le));const pe=[s,...G],_e=yield sN(e,D),be=[];let Be=(null==(i=r.flip)?void 0:i.overflows)||[];if(d&&be.push(_e[H]),h){const Xe=function jee(t,n,e){void 0===e&&(e=!1);const i=sb(t),o=QC(t),r=JC(o);let a="x"===o?i===(e?"end":"start")?"right":"left":"start"===i?"bottom":"top";return n.reference[r]>n.floating[r]&&(a=cb(a)),[a,cb(a)]}(o,a,le);be.push(_e[Xe[0]],_e[Xe[1]])}if(Be=[...Be,{placement:o,overflows:be}],!be.every(Xe=>Xe<=0)){var Fe,Qe;const Xe=((null==(Fe=r.flip)?void 0:Fe.index)||0)+1,ct=pe[Xe];if(ct)return{data:{index:Xe,overflows:Be},reset:{placement:ct}};let ut=null==(Qe=Be.filter(Se=>Se.overflows[0]<=0).sort((Se,Ye)=>Se.overflows[1]-Ye.overflows[1])[0])?void 0:Qe.placement;if(!ut)switch(g){case"bestFit":{var Re;const Se=null==(Re=Be.map(Ye=>[Ye.placement,Ye.overflows.filter(We=>We>0).reduce((We,it)=>We+it,0)]).sort((Ye,We)=>Ye[1]-We[1])[0])?void 0:Re[0];Se&&(ut=Se);break}case"initialPlacement":ut=s}if(o!==ut)return{reset:{placement:ut}}}return{}})()}}(),function(n){return void 0===n&&(n={}),{name:"shift",options:n,fn:e=>(0,y.Z)(function*(){const{x:i,y:o,placement:r}=e,a=Iu(n,e),{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:H=>{let{x:oe,y:le}=H;return{x:oe,y:le}}}}=a,u=oN(a,Vee),d={x:i,y:o},h=yield sN(e,u),p=lb($l(r)),g=XC(p);let b=d[g],T=d[p];s&&(b=WC(b+h["y"===g?"top":"left"],b,b-h["y"===g?"bottom":"right"])),l&&(T=WC(T+h["y"===p?"top":"left"],T,T-h["y"===p?"bottom":"right"]));const D=c.fn(mo({},e,{[g]:b,[p]:T}));return mo({},D,{data:{x:D.x-i,y:D.y-o}})})()}}({limiter:Xee(),crossAxis:!0})),i&&e.middleware.push((t=>({name:"arrow",options:t,fn:n=>(0,y.Z)(function*(){const{x:e,y:i,placement:o,rects:r,platform:a,elements:s}=n,{element:l,padding:c=0}=Iu(t,n)||{};if(null==l)return{};const u=rN(c),d={x:e,y:i},h=QC(o),p=JC(h),g=yield a.getDimensions(l),b="y"===h,T=b?"top":"left",D=b?"bottom":"right",H=b?"clientHeight":"clientWidth",oe=r.reference[p]+r.reference[h]-d[h]-r.floating[p],le=d[h]-r.reference[h],G=yield null==a.getOffsetParent?void 0:a.getOffsetParent(l);let pe=G?G[H]:0;(!pe||!(yield null==a.isElement?void 0:a.isElement(G)))&&(pe=s.floating[H]||r.floating[p]);const _e=oe/2-le/2,be=pe/2-g[p]/2-1,Be=ku(u[T],be),Fe=ku(u[D],be),Qe=Be,Re=pe-g[p]-Fe,Xe=pe/2-g[p]/2+_e,ct=WC(Qe,Xe,Re),Se=null!=sb(o)&&Xe!=ct&&r.reference[p]/2-(Xe{o&&D.addEventListener("scroll",e,{passive:!0}),r&&D.addEventListener("resize",e)});const d=c&&s?function hte(t,n){let i,e=null;const o=ns(t);function r(){clearTimeout(i),e&&e.disconnect(),e=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),r();const{left:c,top:u,width:d,height:h}=t.getBoundingClientRect();if(s||n(),!d||!h)return;const H={rootMargin:-ab(u)+"px "+-ab(o.clientWidth-(c+d))+"px "+-ab(o.clientHeight-(u+h))+"px "+-ab(c)+"px",threshold:zl(0,ku(1,l))||1};let oe=!0;function le(G){const pe=G[0].intersectionRatio;if(pe!==l){if(!oe)return a();pe?a(!1,pe):i=setTimeout(()=>{a(!1,1e-7)},100)}oe=!1}try{e=new IntersectionObserver(le,mo({},H,{root:o.ownerDocument}))}catch{e=new IntersectionObserver(le,H)}e.observe(t)}(!0),r}(c,e):null;let h=-1,p=null;a&&(p=new ResizeObserver(D=>{let[H]=D;H&&H.target===c&&p&&(p.unobserve(n),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{p&&p.observe(n)})),e()}),c&&!l&&p.observe(c),p.observe(n));let g,b=l?Vl(t):null;return l&&function T(){const D=Vl(t);b&&(D.x!==b.x||D.y!==b.y||D.width!==b.width||D.height!==b.height)&&e(),b=D,g=requestAnimationFrame(T)}(),e(),()=>{u.forEach(D=>{o&&D.removeEventListener("scroll",e),r&&D.removeEventListener("resize",e)}),d&&d(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(g)}}(e,t.el,()=>{t.el?function yte(t,n,e,i){((t,n,e)=>{const i=new Map,o=mo({platform:dte},e),r=mo({},o.platform,{_c:i});return Zee(t,n,mo({},o,{platform:r}))})(t,n.el,e).then(function _te(t,n){return({x:e,y:i,placement:o,middlewareData:r})=>(t.el&&(Object.assign(t.el.style,n?{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}:{position:"absolute",left:`${e}px`,top:`${i}px`}),t.el.dataset.popperPlacement=o,function vte(t,n){const e=t.querySelector(".shepherd-arrow");if(e&&n.arrow){const{x:i,y:o}=n.arrow;Object.assign(e.style,{left:null!=i?`${i}px`:"",top:null!=o?`${o}px`:""})}}(t.el,r)),t)}(n,i)).then(o=>new Promise(r=>{setTimeout(()=>r(o),300)})).then(o=>{o&&o.el&&o.el.focus({preventScroll:!0})})}(e,t,i,o):t.cleanup()}),t.target=n.element,i}function ur(){}function xte(t,n){for(const e in n)t[e]=n[e];return t}function yN(t){return t()}function _N(){return Object.create(null)}function yf(t){t.forEach(yN)}function o1(t){return"function"==typeof t}function os(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function Pu(t,n){t.appendChild(n)}function Ur(t,n,e){t.insertBefore(n,e||null)}function Tr(t){t.parentNode&&t.parentNode.removeChild(t)}function Da(t){return document.createElement(t)}function vN(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function wN(t){return document.createTextNode(t)}function pb(){return wN(" ")}function gb(t,n,e,i){return t.addEventListener(n,e,i),()=>t.removeEventListener(n,e,i)}function ei(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}const Tte=["width","height"];function CN(t,n){const e=Object.getOwnPropertyDescriptors(t.__proto__);for(const i in n)null==n[i]?t.removeAttribute(i):"style"===i?t.style.cssText=n[i]:"__value"===i?t.value=t[i]=n[i]:e[i]&&e[i].set&&-1===Tte.indexOf(i)?t[i]=n[i]:ei(t,i,n[i])}function Nu(t,n,e){t.classList[e?"add":"remove"](n)}let _f;function vf(t){_f=t}function xN(){if(!_f)throw new Error("Function called outside component initialization");return _f}function r1(t){xN().$$.after_update.push(t)}const Fu=[],Lu=[];let ju=[];const SN=[],kte=Promise.resolve();let a1=!1;function s1(t){ju.push(t)}const l1=new Set;let Bu=0;function DN(){if(0!==Bu)return;const t=_f;do{try{for(;Bu{mb.delete(t),i&&(e&&t.d(1),i())}),t.o(n)}else i&&i()}function Wl(t){t&&t.c()}function Zs(t,n,e,i){const{fragment:o,after_update:r}=t.$$;o&&o.m(n,e),i||s1(()=>{const a=t.$$.on_mount.map(yN).filter(o1);t.$$.on_destroy?t.$$.on_destroy.push(...a):yf(a),t.$$.on_mount=[]}),r.forEach(s1)}function Gs(t,n){const e=t.$$;null!==e.fragment&&(function Rte(t){const n=[],e=[];ju.forEach(i=>-1===t.indexOf(i)?n.push(i):e.push(i)),e.forEach(i=>i()),ju=n}(e.after_update),yf(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function rs(t,n,e,i,o,r,a,s=[-1]){const l=_f;vf(t);const c=t.$$={fragment:null,ctx:[],props:r,update:ur,not_equal:o,bound:_N(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(l?l.$$.context:[])),callbacks:_N(),dirty:s,skip_bound:!1,root:n.target||l.$$.root};a&&a(c.root);let u=!1;if(c.ctx=e?e(t,n.props||{},(d,h,...p)=>{const g=p.length?p[0]:h;return c.ctx&&o(c.ctx[d],c.ctx[d]=g)&&(!c.skip_bound&&c.bound[d]&&c.bound[d](g),u&&function Nte(t,n){-1===t.$$.dirty[0]&&(Fu.push(t),function Ite(){a1||(a1=!0,kte.then(DN))}(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<{const o=i.indexOf(e);-1!==o&&i.splice(o,1)}}$set(n){this.$$set&&!function Ste(t){return 0===Object.keys(t).length}(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}function Fte(t){let n,e,i,o,r;return{c(){n=Da("button"),ei(n,"aria-label",e=t[3]?t[3]:null),ei(n,"class",i=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`),n.disabled=t[2],ei(n,"tabindex","0")},m(a,s){Ur(a,n,s),n.innerHTML=t[5],o||(r=gb(n,"click",function(){o1(t[0])&&t[0].apply(this,arguments)}),o=!0)},p(a,[s]){t=a,32&s&&(n.innerHTML=t[5]),8&s&&e!==(e=t[3]?t[3]:null)&&ei(n,"aria-label",e),18&s&&i!==(i=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`)&&ei(n,"class",i),4&s&&(n.disabled=t[2])},i:ur,o:ur,d(a){a&&Tr(n),o=!1,r()}}}function Lte(t,n,e){let r,a,s,l,c,u,{config:i,step:o}=n;function d(h){return Yl(h)?h=h.call(o):h}return t.$$set=h=>{"config"in h&&e(6,i=h.config),"step"in h&&e(7,o=h.step)},t.$$.update=()=>{192&t.$$.dirty&&(e(0,r=i.action?i.action.bind(o.tour):null),e(1,a=i.classes),e(2,s=!!i.disabled&&d(i.disabled)),e(3,l=i.label?d(i.label):null),e(4,c=i.secondary),e(5,u=i.text?d(i.text):null))},[r,a,s,l,c,u,i,o]}class jte extends as{constructor(n){super(),rs(this,n,Lte,Fte,os,{config:6,step:7})}}function EN(t,n,e){const i=t.slice();return i[2]=n[e],i}function TN(t){let n,e,i=t[1],o=[];for(let a=0;aki(o[a],1,1,()=>{o[a]=null});return{c(){for(let a=0;a{i=null}),Ul())},i(o){e||(jn(i),e=!0)},o(o){ki(i),e=!1},d(o){o&&Tr(n),i&&i.d()}}}function Hte(t,n,e){let i,{step:o}=n;return t.$$set=r=>{"step"in r&&e(0,o=r.step)},t.$$.update=()=>{1&t.$$.dirty&&e(1,i=o.options.buttons)},[o,i]}class Yte extends as{constructor(n){super(),rs(this,n,Hte,Bte,os,{step:0})}}function zte(t){let n,e,i,o,r;return{c(){n=Da("button"),e=Da("span"),e.textContent="\xd7",ei(e,"aria-hidden","true"),ei(n,"aria-label",i=t[0].label?t[0].label:"Close Tour"),ei(n,"class","shepherd-cancel-icon"),ei(n,"type","button")},m(a,s){Ur(a,n,s),Pu(n,e),o||(r=gb(n,"click",t[1]),o=!0)},p(a,[s]){1&s&&i!==(i=a[0].label?a[0].label:"Close Tour")&&ei(n,"aria-label",i)},i:ur,o:ur,d(a){a&&Tr(n),o=!1,r()}}}function $te(t,n,e){let{cancelIcon:i,step:o}=n;return t.$$set=a=>{"cancelIcon"in a&&e(0,i=a.cancelIcon),"step"in a&&e(2,o=a.step)},[i,a=>{a.preventDefault(),o.cancel()},o]}class Vte extends as{constructor(n){super(),rs(this,n,$te,zte,os,{cancelIcon:0,step:2})}}function Zte(t){let n;return{c(){n=Da("h3"),ei(n,"id",t[1]),ei(n,"class","shepherd-title")},m(e,i){Ur(e,n,i),t[3](n)},p(e,[i]){2&i&&ei(n,"id",e[1])},i:ur,o:ur,d(e){e&&Tr(n),t[3](null)}}}function Gte(t,n,e){let{labelId:i,element:o,title:r}=n;return r1(()=>{Yl(r)&&e(2,r=r()),e(0,o.innerHTML=r,o)}),t.$$set=s=>{"labelId"in s&&e(1,i=s.labelId),"element"in s&&e(0,o=s.element),"title"in s&&e(2,r=s.title)},[o,i,r,function a(s){Lu[s?"unshift":"push"](()=>{o=s,e(0,o)})}]}class Ute extends as{constructor(n){super(),rs(this,n,Gte,Zte,os,{labelId:1,element:0,title:2})}}function AN(t){let n,e;return n=new Ute({props:{labelId:t[0],title:t[2]}}),{c(){Wl(n.$$.fragment)},m(i,o){Zs(n,i,o),e=!0},p(i,o){const r={};1&o&&(r.labelId=i[0]),4&o&&(r.title=i[2]),n.$set(r)},i(i){e||(jn(n.$$.fragment,i),e=!0)},o(i){ki(n.$$.fragment,i),e=!1},d(i){Gs(n,i)}}}function kN(t){let n,e;return n=new Vte({props:{cancelIcon:t[3],step:t[1]}}),{c(){Wl(n.$$.fragment)},m(i,o){Zs(n,i,o),e=!0},p(i,o){const r={};8&o&&(r.cancelIcon=i[3]),2&o&&(r.step=i[1]),n.$set(r)},i(i){e||(jn(n.$$.fragment,i),e=!0)},o(i){ki(n.$$.fragment,i),e=!1},d(i){Gs(n,i)}}}function Wte(t){let n,e,i,o=t[2]&&AN(t),r=t[3]&&t[3].enabled&&kN(t);return{c(){n=Da("header"),o&&o.c(),e=pb(),r&&r.c(),ei(n,"class","shepherd-header")},m(a,s){Ur(a,n,s),o&&o.m(n,null),Pu(n,e),r&&r.m(n,null),i=!0},p(a,[s]){a[2]?o?(o.p(a,s),4&s&&jn(o,1)):(o=AN(a),o.c(),jn(o,1),o.m(n,e)):o&&(Gl(),ki(o,1,1,()=>{o=null}),Ul()),a[3]&&a[3].enabled?r?(r.p(a,s),8&s&&jn(r,1)):(r=kN(a),r.c(),jn(r,1),r.m(n,null)):r&&(Gl(),ki(r,1,1,()=>{r=null}),Ul())},i(a){i||(jn(o),jn(r),i=!0)},o(a){ki(o),ki(r),i=!1},d(a){a&&Tr(n),o&&o.d(),r&&r.d()}}}function Xte(t,n,e){let r,a,{labelId:i,step:o}=n;return t.$$set=s=>{"labelId"in s&&e(0,i=s.labelId),"step"in s&&e(1,o=s.step)},t.$$.update=()=>{2&t.$$.dirty&&(e(2,r=o.options.title),e(3,a=o.options.cancelIcon))},[i,o,r,a]}class Jte extends as{constructor(n){super(),rs(this,n,Xte,Wte,os,{labelId:0,step:1})}}function Qte(t){let n;return{c(){n=Da("div"),ei(n,"class","shepherd-text"),ei(n,"id",t[1])},m(e,i){Ur(e,n,i),t[3](n)},p(e,[i]){2&i&&ei(n,"id",e[1])},i:ur,o:ur,d(e){e&&Tr(n),t[3](null)}}}function Kte(t,n,e){let{descriptionId:i,element:o,step:r}=n;return r1(()=>{let{text:s}=r.options;Yl(s)&&(s=s.call(r)),ZC(s)?o.appendChild(s):e(0,o.innerHTML=s,o)}),t.$$set=s=>{"descriptionId"in s&&e(1,i=s.descriptionId),"element"in s&&e(0,o=s.element),"step"in s&&e(2,r=s.step)},[o,i,r,function a(s){Lu[s?"unshift":"push"](()=>{o=s,e(0,o)})}]}class qte extends as{constructor(n){super(),rs(this,n,Kte,Qte,os,{descriptionId:1,element:0,step:2})}}function IN(t){let n,e;return n=new Jte({props:{labelId:t[1],step:t[2]}}),{c(){Wl(n.$$.fragment)},m(i,o){Zs(n,i,o),e=!0},p(i,o){const r={};2&o&&(r.labelId=i[1]),4&o&&(r.step=i[2]),n.$set(r)},i(i){e||(jn(n.$$.fragment,i),e=!0)},o(i){ki(n.$$.fragment,i),e=!1},d(i){Gs(n,i)}}}function ON(t){let n,e;return n=new qte({props:{descriptionId:t[0],step:t[2]}}),{c(){Wl(n.$$.fragment)},m(i,o){Zs(n,i,o),e=!0},p(i,o){const r={};1&o&&(r.descriptionId=i[0]),4&o&&(r.step=i[2]),n.$set(r)},i(i){e||(jn(n.$$.fragment,i),e=!0)},o(i){ki(n.$$.fragment,i),e=!1},d(i){Gs(n,i)}}}function RN(t){let n,e;return n=new Yte({props:{step:t[2]}}),{c(){Wl(n.$$.fragment)},m(i,o){Zs(n,i,o),e=!0},p(i,o){const r={};4&o&&(r.step=i[2]),n.$set(r)},i(i){e||(jn(n.$$.fragment,i),e=!0)},o(i){ki(n.$$.fragment,i),e=!1},d(i){Gs(n,i)}}}function ene(t){let n,i,r,s,e=!go(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled,o=!go(t[2].options.text),a=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length,l=e&&IN(t),c=o&&ON(t),u=a&&RN(t);return{c(){n=Da("div"),l&&l.c(),i=pb(),c&&c.c(),r=pb(),u&&u.c(),ei(n,"class","shepherd-content")},m(d,h){Ur(d,n,h),l&&l.m(n,null),Pu(n,i),c&&c.m(n,null),Pu(n,r),u&&u.m(n,null),s=!0},p(d,[h]){4&h&&(e=!go(d[2].options.title)||d[2].options.cancelIcon&&d[2].options.cancelIcon.enabled),e?l?(l.p(d,h),4&h&&jn(l,1)):(l=IN(d),l.c(),jn(l,1),l.m(n,i)):l&&(Gl(),ki(l,1,1,()=>{l=null}),Ul()),4&h&&(o=!go(d[2].options.text)),o?c?(c.p(d,h),4&h&&jn(c,1)):(c=ON(d),c.c(),jn(c,1),c.m(n,r)):c&&(Gl(),ki(c,1,1,()=>{c=null}),Ul()),4&h&&(a=Array.isArray(d[2].options.buttons)&&d[2].options.buttons.length),a?u?(u.p(d,h),4&h&&jn(u,1)):(u=RN(d),u.c(),jn(u,1),u.m(n,null)):u&&(Gl(),ki(u,1,1,()=>{u=null}),Ul())},i(d){s||(jn(l),jn(c),jn(u),s=!0)},o(d){ki(l),ki(c),ki(u),s=!1},d(d){d&&Tr(n),l&&l.d(),c&&c.d(),u&&u.d()}}}function tne(t,n,e){let{descriptionId:i,labelId:o,step:r}=n;return t.$$set=a=>{"descriptionId"in a&&e(0,i=a.descriptionId),"labelId"in a&&e(1,o=a.labelId),"step"in a&&e(2,r=a.step)},[i,o,r]}class nne extends as{constructor(n){super(),rs(this,n,tne,ene,os,{descriptionId:0,labelId:1,step:2})}}function PN(t){let n;return{c(){n=Da("div"),ei(n,"class","shepherd-arrow"),ei(n,"data-popper-arrow","")},m(e,i){Ur(e,n,i)},d(e){e&&Tr(n)}}}function ine(t){let n,e,i,o,r,a,s,l,c=t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on&&PN();i=new nne({props:{descriptionId:t[2],labelId:t[3],step:t[4]}});let u=[{"aria-describedby":o=go(t[4].options.text)?null:t[2]},{"aria-labelledby":r=t[4].options.title?t[3]:null},t[1],{role:"dialog"},{tabindex:"0"}],d={};for(let h=0;h!!n.length)}function lne(t,n,e){let h,p,g,{classPrefix:i,element:o,descriptionId:r,firstFocusableElement:a,focusableElements:s,labelId:l,lastFocusableElement:c,step:u,dataStepId:d}=n;return function Ate(t){xN().$$.on_mount.push(t)}(()=>{e(1,d={[`data-${i}shepherd-step-id`]:u.id}),e(9,s=o.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),e(8,a=s[0]),e(10,c=s[s.length-1])}),r1(()=>{g!==u.options.classes&&function T(){(function D(G){if(mf(G)){const pe=NN(G);pe.length&&o.classList.remove(...pe)}})(g),g=u.options.classes,function H(G){if(mf(G)){const pe=NN(G);pe.length&&o.classList.add(...pe)}}(g)}()}),t.$$set=G=>{"classPrefix"in G&&e(11,i=G.classPrefix),"element"in G&&e(0,o=G.element),"descriptionId"in G&&e(2,r=G.descriptionId),"firstFocusableElement"in G&&e(8,a=G.firstFocusableElement),"focusableElements"in G&&e(9,s=G.focusableElements),"labelId"in G&&e(3,l=G.labelId),"lastFocusableElement"in G&&e(10,c=G.lastFocusableElement),"step"in G&&e(4,u=G.step),"dataStepId"in G&&e(1,d=G.dataStepId)},t.$$.update=()=>{16&t.$$.dirty&&(e(5,h=u.options&&u.options.cancelIcon&&u.options.cancelIcon.enabled),e(6,p=u.options&&u.options.title))},[o,d,r,l,u,h,p,G=>{const{tour:pe}=u;switch(G.keyCode){case 9:if(0===s.length){G.preventDefault();break}G.shiftKey?(document.activeElement===a||document.activeElement.classList.contains("shepherd-element"))&&(G.preventDefault(),c.focus()):document.activeElement===c&&(G.preventDefault(),a.focus());break;case 27:pe.options.exitOnEsc&&(G.stopPropagation(),u.cancel());break;case 37:pe.options.keyboardNavigation&&(G.stopPropagation(),pe.back());break;case 39:pe.options.keyboardNavigation&&(G.stopPropagation(),pe.next())}},a,s,c,i,()=>o,function le(G){Lu[G?"unshift":"push"](()=>{o=G,e(0,o)})}]}class cne extends as{constructor(n){super(),rs(this,n,lne,ine,os,{classPrefix:11,element:0,descriptionId:2,firstFocusableElement:8,focusableElements:9,labelId:3,lastFocusableElement:10,step:4,dataStepId:1,getElement:12})}get getElement(){return this.$$.ctx[12]}}class c1 extends GC{constructor(n,e={}){return super(n,e),this.tour=n,this.classPrefix=this.tour.options?nN(this.tour.options.classPrefix):"",this.styles=n.styles,this._resolvedAttachTo=null,tN(this),this._setOptions(e),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){(function bte(t){t.cleanup&&t.cleanup(),t.cleanup=null})(this),ZC(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){this.tour.modal.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=function Nee(t){const n=t.options.attachTo||{},e=Object.assign({},n);if(Yl(e.element)&&(e.element=e.element.call(t)),mf(e.element)){try{e.element=document.querySelector(e.element)}catch{}e.element||console.error(`The element for this Shepherd step was not found ${n.element}`)}return e}(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return null===this._resolvedAttachTo?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!(!this.el||this.el.hidden)}show(){return Yl(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(n){Object.assign(this.options,n),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){return this.shepherdElementComponent=new cne({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:`${this.id}-description`,labelId:`${this.id}-label`,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(n){const{element:e}=this._getResolvedAttachToOptions();Yl(this.options.scrollToHandler)?this.options.scrollToHandler(e):function Oee(t){return t instanceof Element}(e)&&"function"==typeof e.scrollIntoView&&e.scrollIntoView(n)}_getClassOptions(n){const e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,o=e&&e.classes?e.classes:"",r=[...(n.classes?n.classes:"").split(" "),...o.split(" ")],a=new Set(r);return Array.from(a).join(" ").trim()}_setOptions(n={}){let e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;e=VC({},e||{}),this.options=Object.assign({arrow:!0},e,n,function mte(t,n){return{floatingUIOptions:VC(t.floatingUIOptions||{},n.floatingUIOptions||{})}}(e,n));const{when:i}=this.options;this.options.classes=this._getClassOptions(n),this.destroy(),this.id=this.options.id||`step-${UC()}`,i&&Object.keys(i).forEach(o=>{this.on(o,i[o],this)})}_setupElements(){go(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&function Pee(t){const{event:n,selector:e}=t.options.advanceOn||{};if(!n)return console.error("advanceOn was defined, but no event name was passed.");{const i=function Ree(t,n){return e=>{if(n.isOpen()){const i=n.el&&e.currentTarget===n.el;(!go(t)&&e.currentTarget.matches(t)||i)&&n.tour.next()}}}(e,t);let o;try{o=document.querySelector(e)}catch{}if(!go(e)&&!o)return console.error(`No element was found for the selector supplied to advanceOn: ${e}`);o?(o.addEventListener(n,i),t.on("destroy",()=>o.removeEventListener(n,i))):(document.body.addEventListener(n,i,!0),t.on("destroy",()=>document.body.removeEventListener(n,i,!0)))}}(this),gte(this)}_show(){this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour._setupModal(),this.tour.modal.setupForStep(this),this._styleTargetElementForStep(this),this.el.hidden=!1,this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el.hidden=!1;const n=this.shepherdElementComponent.getElement(),e=this.target||document.body;e.classList.add(`${this.classPrefix}shepherd-enabled`),e.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(n){const e=n.target;e&&(n.options.highlightClass&&e.classList.add(n.options.highlightClass),e.classList.remove("shepherd-target-click-disabled"),!1===n.options.canClickTarget&&e.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const n=this.target||document.body;this.options.highlightClass&&n.classList.remove(this.options.highlightClass),n.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}}function hne(t){let n,e,i,o,r;return{c(){n=vN("svg"),e=vN("path"),ei(e,"d",t[2]),ei(n,"class",i=(t[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")},m(a,s){Ur(a,n,s),Pu(n,e),t[11](n),o||(r=gb(n,"touchmove",t[3]),o=!0)},p(a,[s]){4&s&&ei(e,"d",a[2]),2&s&&i!==(i=(a[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")&&ei(n,"class",i)},i:ur,o:ur,d(a){a&&Tr(n),t[11](null),o=!1,r()}}}function FN(t){if(!t)return null;const e=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return"hidden"!==e&&"visible"!==e&&t.scrollHeight>=t.clientHeight?t:FN(t.parentElement)}function pne(t,n,e){let{element:i,openingProperties:o}=n;UC();let a,s,r=!1;function c(){e(4,o={width:0,height:0,x:0,y:0,r:0})}function u(){e(1,r=!1),D()}function d(le=0,G=0,pe,_e){if(_e){const{y:be,height:Be}=function fne(t,n){const e=t.getBoundingClientRect();let i=e.y||e.top,o=e.bottom||i+e.height;if(n){const a=n.getBoundingClientRect(),s=a.y||a.top,l=a.bottom||s+a.height;i=Math.max(i,s),o=Math.min(o,l)}return{y:i,height:Math.max(o-i,0)}}(_e,pe),{x:Fe,width:Qe,left:Re}=_e.getBoundingClientRect();e(4,o={width:Qe+2*le,height:Be+2*le,x:(Fe||Re)-le,y:be-le,r:G})}else c()}function p(){e(1,r=!0)}c();const g=le=>{le.preventDefault()};function D(){a&&(cancelAnimationFrame(a),a=void 0),window.removeEventListener("touchmove",g,{passive:!1})}return t.$$set=le=>{"element"in le&&e(0,i=le.element),"openingProperties"in le&&e(4,o=le.openingProperties)},t.$$.update=()=>{16&t.$$.dirty&&e(2,s=function dne({width:t,height:n,x:e=0,y:i=0,r:o=0}){const{innerWidth:r,innerHeight:a}=window,{topLeft:s=0,topRight:l=0,bottomRight:c=0,bottomLeft:u=0}="number"==typeof o?{topLeft:o,topRight:o,bottomRight:o,bottomLeft:o}:o;return`M${r},${a}H0V0H${r}V${a}ZM${e+s},${i}a${s},${s},0,0,0-${s},${s}V${n+i-u}a${u},${u},0,0,0,${u},${u}H${t+e-c}a${c},${c},0,0,0,${c}-${c}V${i+l}a${l},${l},0,0,0-${l}-${l}Z`}(o))},[i,r,s,le=>{le.stopPropagation()},o,()=>i,c,u,d,function h(le){D(),le.tour.options.useModalOverlay?(function H(le){const{modalOverlayOpeningPadding:G,modalOverlayOpeningRadius:pe}=le.options,_e=FN(le.target),be=()=>{a=void 0,d(G,pe,_e,le.target),a=requestAnimationFrame(be)};be(),function T(){window.addEventListener("touchmove",g,{passive:!1})}()}(le),p()):u()},p,function oe(le){Lu[le?"unshift":"push"](()=>{i=le,e(0,i)})}]}class gne extends as{constructor(n){super(),rs(this,n,pne,hne,os,{element:0,openingProperties:4,getElement:5,closeModalOpening:6,hide:7,positionModal:8,setupForStep:9,show:10})}get getElement(){return this.$$.ctx[5]}get closeModalOpening(){return this.$$.ctx[6]}get hide(){return this.$$.ctx[7]}get positionModal(){return this.$$.ctx[8]}get setupForStep(){return this.$$.ctx[9]}get show(){return this.$$.ctx[10]}}const Xl=new GC,bne=typeof window>"u";class LN{constructor(){}}function _ne(t){const{classes:n,disabled:e,label:i,secondary:o,type:r,text:a}=t;if(!r)return t;if(-1===["back","cancel","next"].indexOf(r))throw new Error("'type' property must be one of 'back', 'cancel', or 'next'");return{action:this[r].bind(this),classes:n,disabled:e,label:i,secondary:o,text:a}}Object.assign(Xl,bne?{Tour:LN,Step:LN}:{Tour:class mne extends GC{constructor(n={}){return super(n),tN(this),this.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},n),this.classPrefix=nN(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(o=>{(r=>{this.on(r,a=>{(a=a||{}).tour=this,Xl.trigger(r,a)})})(o)}),this._setTourID(),this}addStep(n,e){let i=n;return i instanceof c1?i.tour=this:i=new c1(this,i),go(e)?this.steps.push(i):this.steps.splice(e,0,i),i}addSteps(n){return Array.isArray(n)&&n.forEach(e=>{this.addStep(e)}),this}back(){const n=this.steps.indexOf(this.currentStep);this.show(n-1,!1)}cancel(){var n=this;return(0,y.Z)(function*(){if(n.options.confirmCancel){const i=n.options.confirmCancelMessage||"Are you sure you want to stop the tour?";("function"==typeof n.options.confirmCancel?yield n.options.confirmCancel():window.confirm(i))&&n._done("cancel")}else n._done("cancel")})()}complete(){this._done("complete")}getById(n){return this.steps.find(e=>e.id===n)}getCurrentStep(){return this.currentStep}hide(){const n=this.getCurrentStep();if(n)return n.hide()}isActive(){return Xl.activeTour===this}next(){const n=this.steps.indexOf(this.currentStep);n===this.steps.length-1?this.complete():this.show(n+1,!0)}removeStep(n){const e=this.getCurrentStep();this.steps.some((i,o)=>{if(i.id===n)return i.isOpen()&&i.hide(),i.destroy(),this.steps.splice(o,1),!0}),e&&e.id===n&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(n=0,e=!0){const i=mf(n)?this.getById(n):this.steps[n];i&&(this._updateStateBeforeShow(),Yl(i.options.showOn)&&!i.options.showOn()?this._skipStep(i,e):(this.trigger("show",{step:i,previous:this.currentStep}),this.currentStep=i,i.show()))}start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this._setupModal(),this._setupActiveTour(),this.next()}_done(n){const e=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(i=>i.destroy()),function une(t){if(t){const{steps:n}=t;n.forEach(e=>{e.options&&!1===e.options.canClickTarget&&e.options.attachTo&&e.target instanceof HTMLElement&&e.target.classList.remove("shepherd-target-click-disabled")})}}(this),this.trigger(n,{index:e}),Xl.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),("cancel"===n||"complete"===n)&&this.modal){const i=document.querySelector(".shepherd-modal-overlay-container");i&&i.remove()}ZC(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),Xl.activeTour=this}_setupModal(){this.modal=new gne({target:this.options.modalContainer||document.body,props:{classPrefix:this.classPrefix,styles:this.styles}})}_skipStep(n,e){const i=this.steps.indexOf(n);i===this.steps.length-1?this.complete():this.show(e?i+1:i-1,e)}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(){this.id=`${this.options.tourName||"tour"}--${UC()}`}},Step:c1});let jN=(()=>{class t{constructor(){this.confirmCancel=!1,this.defaultStepOptions={},this.errorTitle=null,this.isActive=!1,this.keyboardNavigation=!0,this.modal=!1,this.requiredElements=[],this.tourName=void 0}back(){this.tourObject.back()}cancel(){this.tourObject.cancel()}complete(){this.tourObject.complete()}hide(){this.tourObject.hide()}next(){this.tourObject.next()}show(e){this.tourObject.show(e)}start(){this.isActive=!0,this.tourObject.start()}onTourFinish(e){this.isActive=!1}addSteps(e){this._initialize();const i=this.tourObject;if(e&&Array.isArray(e)&&0!==e.length){if(!this.requiredElementsPresent())return void i.addStep({buttons:[{text:"Exit",action:i.cancel}],id:"error",title:this.errorTitle,text:[this.messageForUser]});e.forEach(o=>{o.buttons&&(o.buttons=o.buttons.map(_ne.bind(this),this)),i.addStep(o)})}}requiredElementsPresent(){let e=!0;return this.requiredElements.forEach(i=>{const o=document.querySelector(i.selector);e&&(!o||function yne(t){return 0===t.offsetWidth&&0===t.offsetHeight}(o))&&(e=!1,this.errorTitle=i.title,this.messageForUser=i.message)}),e}_initialize(){const e=new Xl.Tour({confirmCancel:this.confirmCancel,confirmCancelMessage:this.confirmCancelMessage,defaultStepOptions:this.defaultStepOptions,keyboardNavigation:this.keyboardNavigation,tourName:this.tourName,useModalOverlay:this.modal});e.on("complete",this.onTourFinish.bind(this,"complete")),e.on("cancel",this.onTourFinish.bind(this,"cancel")),this.tourObject=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var t;O(7850);const wne=(t="file:///home/runner/work/Studio-Web/Studio-Web/node_modules/soundswallower/soundswallower.web.js",function(e={}){var i,o;(e=typeof e<"u"?e:{}).ready=new Promise(function(xe,fe){i=xe,o=fe});var b,r=Object.assign({},e),s="./this.program",l=(xe,fe)=>{throw fe},d="";typeof document<"u"&&document.currentScript&&(d=document.currentScript.src),t&&(d=t),d=0!==d.indexOf("blob:")?d.substr(0,d.replace(/[?#].*/,"").lastIndexOf("/")+1):"";var oe,D=e.print||console.log.bind(console),H=e.printErr||console.warn.bind(console);Object.assign(e,r),r=null,e.thisProgram&&(s=e.thisProgram),e.quit&&(l=e.quit),e.wasmBinary&&(oe=e.wasmBinary);var le=e.noExitRuntime||!0;"object"!=typeof WebAssembly&&Wn("no native wasm support detected");var G,Xe,ct,At,pe=!1,be=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Be(xe,fe,we){for(var Oe=fe+we,st=fe;xe[st]&&!(st>=Oe);)++st;if(st-fe>16&&xe.buffer&&be)return be.decode(xe.subarray(fe,st));for(var mt="";fe>10,56320|1023&Zi)}}else mt+=String.fromCharCode((31&Dt)<<6|Rt)}else mt+=String.fromCharCode(Dt)}return mt}function Fe(xe,fe){return xe?Be(ct,xe,fe):""}function on(){var xe=G.buffer;e.HEAP_DATA_VIEW=At=new DataView(xe),e.HEAP8=Xe=new Int8Array(xe),e.HEAP16=new Int16Array(xe),e.HEAP32=new Int32Array(xe),e.HEAPU8=ct=new Uint8Array(xe),e.HEAPU16=new Uint16Array(xe),e.HEAPU32=new Uint32Array(xe),e.HEAPF32=new Float32Array(xe),e.HEAPF64=new Float64Array(xe)}var sn=[],ln=[],Vo=[],ft=0,jt=null,ai=null;function Wn(xe){e.onAbort&&e.onAbort(xe),H(xe="Aborted("+xe+")"),pe=!0,xe+=". Build with -sASSERTIONS for more info.";var fe=new WebAssembly.RuntimeError(xe);throw o(fe),fe}var fr;function Qr(xe){return xe.startsWith("data:application/octet-stream;base64,")}function Xu(xe){try{if(xe==fr&&oe)return new Uint8Array(oe);if(b)return b(xe);throw"both async and sync fetching of the wasm failed"}catch(fe){Wn(fe)}}function ny(xe,fe,we){return function wx(xe){return oe||"function"!=typeof fetch?Promise.resolve().then(function(){return Xu(xe)}):fetch(xe,{credentials:"same-origin"}).then(function(fe){if(!fe.ok)throw"failed to load wasm binary file at '"+xe+"'";return fe.arrayBuffer()}).catch(function(){return Xu(xe)})}(xe).then(function(Oe){return WebAssembly.instantiate(Oe,fe)}).then(function(Oe){return Oe}).then(we,function(Oe){H("failed to asynchronously prepare wasm: "+Oe),Wn(Oe)})}function Phe(xe){this.name="ExitStatus",this.message="Program terminated with exit("+xe+")",this.status=xe}function Cx(xe){return At.getInt32(xe,!0)}function xx(xe){return At.getUint32(xe,!0)}function iy(xe,fe){At.setUint32(xe,fe,!0)}function kr(xe){var fe=function Re(xe){for(var fe=0,we=0;we=55296&&Oe<=57343?(fe+=4,++we):fe+=3}return fe}(xe)+1,we=Vj(fe);return we&&function Qe(xe,fe,we,Oe){if(!(Oe>0))return 0;for(var st=we,mt=we+Oe-1,Dt=0;Dt=55296&&Rt<=57343&&(Rt=65536+((1023&Rt)<<10)|1023&xe.charCodeAt(++Dt)),Rt<=127){if(we>=mt)break;fe[we++]=Rt}else if(Rt<=2047){if(we+1>=mt)break;fe[we++]=192|Rt>>6,fe[we++]=128|63&Rt}else if(Rt<=65535){if(we+2>=mt)break;fe[we++]=224|Rt>>12,fe[we++]=128|Rt>>6&63,fe[we++]=128|63&Rt}else{if(we+3>=mt)break;fe[we++]=240|Rt>>18,fe[we++]=128|Rt>>12&63,fe[we++]=128|Rt>>6&63,fe[we++]=128|63&Rt}}fe[we]=0}(xe,Xe,we,fe),we}function Sx(xe){for(;xe.length>0;)xe.shift()(e)}function jf(xe,fe){Xe.set(xe,fe)}function oy(xe,fe="i8"){switch(fe.endsWith("*")&&(fe="*"),fe){case"i1":case"i8":return Xe[xe>>0];case"i16":return function Lhe(xe){return At.getInt16(xe,!0)}(2*(xe>>1));case"i32":case"i64":return Cx(4*(xe>>2));case"float":return function Nhe(xe){return At.getFloat32(xe,!0)}(4*(xe>>2));case"double":return function Fhe(xe){return At.getFloat64(xe,!0)}(8*(xe>>3));case"*":return xx(4*(xe>>2));default:Wn("invalid type for getValue: "+fe)}}e.locateFile?Qr(fr="soundswallower.web.wasm")||(fr=function h(xe){return e.locateFile?e.locateFile(xe,d):d+xe}(fr)):fr=new URL(O(3970),O.b).href;var Bf={varargs:void 0,get:function(){return Bf.varargs+=4,Cx(4*(Bf.varargs-4>>2))},getStr:function(xe){return Fe(xe)}};function Whe(xe){var fe=G.buffer;try{return G.grow(xe-fe.byteLength+65535>>>16),on(),1}catch{}}var Dx={};function Hf(){if(!Hf.strings){var fe={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:s||"./this.program"};for(var we in Dx)void 0===Dx[we]?delete fe[we]:fe[we]=Dx[we];var Oe=[];for(var we in fe)Oe.push(we+"="+fe[we]);Hf.strings=Oe}return Hf.strings}var afe=[null,[],[]];function sfe(xe,fe){var we=afe[xe];0===fe||10===fe?((1===xe?D:H)(Be(we,0)),we.length=0):we.push(fe)}var ry,cfe={d:function jhe(xe,fe,we){return Bf.varargs=we,0},g:function Bhe(xe,fe){},i:function Hhe(xe,fe,we){return Bf.varargs=we,0},r:function Yhe(xe,fe,we,Oe){},e:function zhe(xe,fe,we,Oe){Bf.varargs=Oe},f:function $he(xe,fe){},n:function Vhe(xe,fe,we,Oe,st,mt,Dt){return-52},o:function Zhe(xe,fe,we,Oe,st,mt){},j:function Ghe(){return Date.now()},m:function Uhe(){return 2147483648},l:function Xhe(xe){var zn,fe=ct.length,we=2147483648;if((xe>>>=0)>we)return!1;for(var st=1;st<=4;st*=2){var mt=fe*(1+.2/st);if(mt=Math.min(mt,xe+100663296),Whe(Math.min(we,(zn=Math.max(xe,mt))+(65536-zn%65536)%65536)))return!0}return!1},p:function Khe(xe,fe){var we=0;return Hf().forEach(function(Oe,st){var mt=fe+we;iy(4*(xe+4*st>>2),mt),function Qhe(xe,fe,we){for(var Oe=0;Oe>0]=xe.charCodeAt(Oe);we||(Xe[fe>>0]=0)}(Oe,mt),we+=Oe.length+1}),0},q:function qhe(xe,fe){var we=Hf();iy(4*(xe>>2),we.length);var Oe=0;return we.forEach(function(st){Oe+=st.length+1}),iy(4*(fe>>2),Oe),0},a:function tfe(xe,fe){!function efe(xe){(function dt(){return le})()||(e.onExit&&e.onExit(xe),pe=!0),l(xe,new Phe(xe))}(xe)},b:function ife(xe){return 52},h:function ofe(xe,fe,we,Oe){return 52},k:function rfe(xe,fe,we,Oe,st){return 70},c:function lfe(xe,fe,we,Oe){for(var st=0,mt=0;mt>2)),Rt=xx(4*(fe+4>>2));fe+=8;for(var zn=0;zn>2),st),0}},Vj=(function Rhe(){var xe={a:cfe};function fe(Oe,st){var mt=Oe.exports;return e.asm=mt,G=e.asm.s,on(),function _x(xe){ln.unshift(xe)}(e.asm.t),function Sn(xe){if(ft--,e.monitorRunDependencies&&e.monitorRunDependencies(ft),0==ft&&(null!==jt&&(clearInterval(jt),jt=null),ai)){var fe=ai;ai=null,fe()}}(),mt}if(function si(xe){ft++,e.monitorRunDependencies&&e.monitorRunDependencies(ft)}(),e.instantiateWasm)try{return e.instantiateWasm(xe,fe)}catch(Oe){H("Module.instantiateWasm callback failed with error: "+Oe),o(Oe)}(function Ohe(xe,fe,we,Oe){return xe||"function"!=typeof WebAssembly.instantiateStreaming||Qr(fe)||"function"!=typeof fetch?ny(fe,we,Oe):fetch(fe,{credentials:"same-origin"}).then(function(st){return WebAssembly.instantiateStreaming(st,we).then(Oe,function(Dt){return H("wasm streaming compile failed: "+Dt),H("falling back to ArrayBuffer instantiation"),ny(fe,we,Oe)})})})(oe,fr,xe,function we(Oe){fe(Oe.instance)}).catch(o)}(),e._fsg_set_states=function(){return(e._fsg_set_states=e.asm.u).apply(null,arguments)},e._cmd_ln_hash_iter=function(){return(e._cmd_ln_hash_iter=e.asm.v).apply(null,arguments)},e._hash_iter_key=function(){return(e._hash_iter_key=e.asm.w).apply(null,arguments)},e._set_mdef=function(){return(e._set_mdef=e.asm.x).apply(null,arguments)},e._set_tmat=function(){return(e._set_tmat=e.asm.y).apply(null,arguments)},e._load_gmm=function(){return(e._load_gmm=e.asm.z).apply(null,arguments)},e._spectrogram=function(){return(e._spectrogram=e.asm.A).apply(null,arguments)},e._config_int=function(){return(e._config_int=e.asm.B).apply(null,arguments)},e._config_str=function(){return(e._config_str=e.asm.D).apply(null,arguments)},e._config_float=function(){return(e._config_float=e.asm.E).apply(null,arguments)},e._config_free=function(){return(e._config_free=e.asm.F).apply(null,arguments)},e._ckd_free_2d=function(){return(e._ckd_free_2d=e.asm.G).apply(null,arguments)},e._acmod_reinit_feat=function(){return(e._acmod_reinit_feat=e.asm.H).apply(null,arguments)},e._s3file_free=function(){return(e._s3file_free=e.asm.I).apply(null,arguments)},e._bin_mdef_read_s3file=function(){return(e._bin_mdef_read_s3file=e.asm.J).apply(null,arguments)},e._malloc=function(){return(Vj=e._malloc=e.asm.K).apply(null,arguments)});function Zj(){function xe(){ry||(ry=!0,e.calledRun=!0,!pe&&(function ro(){Sx(ln)}(),i(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),function Ar(){if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)xe=e.postRun.shift(),Vo.unshift(xe);var xe;Sx(Vo)}()))}ft>0||(function Cn(){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)xe=e.preRun.shift(),sn.unshift(xe);var xe;Sx(sn)}(),ft>0)||(e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),xe()},1)):xe())}if(e._free=function(){return(e._free=e.asm.L).apply(null,arguments)},e._config_parse_json=function(){return(e._config_parse_json=e.asm.M).apply(null,arguments)},e._config_set_str=function(){return(e._config_set_str=e.asm.N).apply(null,arguments)},e._config_serialize_json=function(){return(e._config_serialize_json=e.asm.O).apply(null,arguments)},e._hash_table_iter_next=function(){return(e._hash_table_iter_next=e.asm.P).apply(null,arguments)},e._config_typeof=function(){return(e._config_typeof=e.asm.Q).apply(null,arguments)},e._config_set=function(){return(e._config_set=e.asm.R).apply(null,arguments)},e._config_set_int=function(){return(e._config_set_int=e.asm.S).apply(null,arguments)},e._config_set_float=function(){return(e._config_set_float=e.asm.T).apply(null,arguments)},e._decoder_init_cleanup=function(){return(e._decoder_init_cleanup=e.asm.U).apply(null,arguments)},e._decoder_init_fe=function(){return(e._decoder_init_fe=e.asm.V).apply(null,arguments)},e._decoder_init_feat_s3file=function(){return(e._decoder_init_feat_s3file=e.asm.W).apply(null,arguments)},e._decoder_init_acmod_pre=function(){return(e._decoder_init_acmod_pre=e.asm.X).apply(null,arguments)},e._decoder_init_acmod_post=function(){return(e._decoder_init_acmod_post=e.asm.Y).apply(null,arguments)},e._decoder_init_dict_s3file=function(){return(e._decoder_init_dict_s3file=e.asm.Z).apply(null,arguments)},e._decoder_set_fsg=function(){return(e._decoder_set_fsg=e.asm._).apply(null,arguments)},e._fsg_model_free=function(){return(e._fsg_model_free=e.asm.$).apply(null,arguments)},e._jsgf_get_rule=function(){return(e._jsgf_get_rule=e.asm.aa).apply(null,arguments)},e._jsgf_get_public_rule=function(){return(e._jsgf_get_public_rule=e.asm.ba).apply(null,arguments)},e._jsgf_build_fsg=function(){return(e._jsgf_build_fsg=e.asm.ca).apply(null,arguments)},e._jsgf_grammar_free=function(){return(e._jsgf_grammar_free=e.asm.da).apply(null,arguments)},e._decoder_init_grammar_s3file=function(){return(e._decoder_init_grammar_s3file=e.asm.ea).apply(null,arguments)},e._jsgf_parse_string=function(){return(e._jsgf_parse_string=e.asm.fa).apply(null,arguments)},e._decoder_create=function(){return(e._decoder_create=e.asm.ga).apply(null,arguments)},e._decoder_free=function(){return(e._decoder_free=e.asm.ha).apply(null,arguments)},e._decoder_config=function(){return(e._decoder_config=e.asm.ia).apply(null,arguments)},e._decoder_logmath=function(){return(e._decoder_logmath=e.asm.ja).apply(null,arguments)},e._decoder_fe=function(){return(e._decoder_fe=e.asm.ka).apply(null,arguments)},e._decoder_set_align_text=function(){return(e._decoder_set_align_text=e.asm.la).apply(null,arguments)},e._fsg_model_init=function(){return(e._fsg_model_init=e.asm.ma).apply(null,arguments)},e._fsg_model_word_add=function(){return(e._fsg_model_word_add=e.asm.na).apply(null,arguments)},e._fsg_model_trans_add=function(){return(e._fsg_model_trans_add=e.asm.oa).apply(null,arguments)},e._decoder_seg_iter=function(){return(e._decoder_seg_iter=e.asm.pa).apply(null,arguments)},e._seg_iter_next=function(){return(e._seg_iter_next=e.asm.qa).apply(null,arguments)},e._decoder_add_word=function(){return(e._decoder_add_word=e.asm.ra).apply(null,arguments)},e._decoder_lookup_word=function(){return(e._decoder_lookup_word=e.asm.sa).apply(null,arguments)},e._decoder_start_utt=function(){return(e._decoder_start_utt=e.asm.ta).apply(null,arguments)},e._decoder_process_float32=function(){return(e._decoder_process_float32=e.asm.ua).apply(null,arguments)},e._decoder_end_utt=function(){return(e._decoder_end_utt=e.asm.va).apply(null,arguments)},e._decoder_hyp=function(){return(e._decoder_hyp=e.asm.wa).apply(null,arguments)},e._seg_iter_word=function(){return(e._seg_iter_word=e.asm.xa).apply(null,arguments)},e._seg_iter_frames=function(){return(e._seg_iter_frames=e.asm.ya).apply(null,arguments)},e._decoder_result_json=function(){return(e._decoder_result_json=e.asm.za).apply(null,arguments)},e._fsg_model_null_trans_add=function(){return(e._fsg_model_null_trans_add=e.asm.Aa).apply(null,arguments)},e._logmath_log=function(){return(e._logmath_log=e.asm.Ba).apply(null,arguments)},e._endpointer_init=function(){return(e._endpointer_init=e.asm.Ca).apply(null,arguments)},e._vad_frame_length=function(){return(e._vad_frame_length=e.asm.Da).apply(null,arguments)},e._vad_frame_size=function(){return(e._vad_frame_size=e.asm.Ea).apply(null,arguments)},e._endpointer_vad=function(){return(e._endpointer_vad=e.asm.Fa).apply(null,arguments)},e._endpointer_end_stream=function(){return(e._endpointer_end_stream=e.asm.Ga).apply(null,arguments)},e._endpointer_process=function(){return(e._endpointer_process=e.asm.Ha).apply(null,arguments)},e._endpointer_in_speech=function(){return(e._endpointer_in_speech=e.asm.Ia).apply(null,arguments)},e._endpointer_speech_start=function(){return(e._endpointer_speech_start=e.asm.Ja).apply(null,arguments)},e._endpointer_speech_end=function(){return(e._endpointer_speech_end=e.asm.Ka).apply(null,arguments)},e._s3file_init=function(){return(e._s3file_init=e.asm.La).apply(null,arguments)},e._tmat_init_s3file=function(){return(e._tmat_init_s3file=e.asm.Ma).apply(null,arguments)},ai=function xe(){ry||Zj(),ry||(ai=xe)},e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();function Gj(xe){return Ex.apply(this,arguments)}function Ex(){return(Ex=(0,y.Z)(function*(xe){const fe=yield fetch(xe);if(fe.ok)return fe.json();throw new Error("Failed to fetch "+xe+" :"+fe.statusText)})).apply(this,arguments)}function Kr(xe){return Tx.apply(this,arguments)}function Tx(){return(Tx=(0,y.Z)(function*(xe){let fe;const we=yield fetch(xe);if(!we.ok)throw new Error("Failed to fetch "+xe+" :"+we.statusText);{const Dt=yield(yield we.blob()).arrayBuffer();fe=new Uint8Array(Dt)}const Oe=fe.length+1,st=e._malloc(Oe);if(0==st)throw new Error("Failed to allocate "+Oe+" bytes for "+xe);return jf(fe,st),Xe[st+Oe]=0,e._s3file_init(st,Oe-1)})).apply(this,arguments)}return Zj(),typeof e.modelBase>"u"&&(e.modelBase="model/"),typeof e.defaultModel>"u"&&(e.defaultModel="en-us"),e.get_model_path=function Ape(xe){return e.modelBase+xe},e.load_json=Gj,e.Decoder=class Ipe{constructor(fe){this.initialized=!1,void 0===fe&&(fe={}),null!==e.defaultModel&&void 0===fe.hmm&&(fe.hmm=e.get_model_path(e.defaultModel));const we=kr(JSON.stringify(fe)),Oe=e._config_parse_json(0,we);if(e._free(we),this.cdecoder=e._decoder_create(Oe),0==this.cdecoder)throw new Error("Failed to construct Decoder")}delete(){0!=this.cdecoder&&e._decoder_free(this.cdecoder),this.cdecoder=0}get_config_json(){const fe=e._decoder_config(this.cdecoder);return Fe(e._config_serialize_json(fe))}set_config(fe,we){const Oe=kr(fe),st=e._decoder_config(this.cdecoder),mt=e._config_typeof(st,Oe);if(0==mt)throw e._free(Oe),new ReferenceError(`Unknown configuration parameter ${fe}`);if(8&mt){const Dt=kr(we);e._config_set_str(st,Oe,Dt),e._free(Dt)}else if(4&mt)e._config_set_float(st,Oe,we);else{if(!(18&mt))return e._free(Oe),!1;e._config_set_int(st,Oe,we)}return e._free(Oe),!0}unset_config(fe){const we=kr(fe),Oe=e._decoder_config(this.cdecoder),st=e._config_typeof(Oe,we);if(0==st)throw e._free(we),new ReferenceError(`Unknown configuration parameter ${fe}`);e._config_set(Oe,we,0,st),e._free(we)}get_config(fe){const we=kr(fe),Oe=e._decoder_config(this.cdecoder),st=e._config_typeof(Oe,we);if(0==st)throw e._free(we),new ReferenceError(`Unknown configuration parameter ${fe}`);let mt;if(8&st){const Dt=e._config_str(Oe,we);mt=0==Dt?null:Fe(Dt)}else 4&st?mt=e._config_float(Oe,we):2&st?mt=e._config_int(Oe,we):16&st&&(mt=!!e._config_int(Oe,we));if(e._free(we),void 0===mt)throw new TypeError(`Unsupported type ${st} for parameter ${fe}`);return mt}has_config(fe){const we=kr(fe),Oe=e._decoder_config(this.cdecoder),st=0!=e._config_typeof(Oe,we);return e._free(we),st}initialize(){var fe=this;return(0,y.Z)(function*(){if(0==fe.cdecoder)throw new Error("Decoder was somehow not constructed (ps==0)");yield fe.init_featparams(),yield fe.init_cleanup(),yield fe.init_fe(),yield fe.init_feat(),fe.cacmod=yield fe.init_acmod(),yield fe.load_acmod_files(),yield fe.init_dict(),yield fe.init_grammar(),fe.initialized=!0})()}init_featparams(){var fe=this;return(0,y.Z)(function*(){const we=yield Gj(fe.get_config("featparams"));for(const Oe in we)fe.has_config(Oe)&&fe.set_config(Oe,we[Oe]);return we})()}init_cleanup(){var fe=this;return(0,y.Z)(function*(){if(e._decoder_init_cleanup(fe.cdecoder)<0)throw new Error("Failed to clean up decoder internals")})()}init_fe(){var fe=this;return(0,y.Z)(function*(){const we=e._decoder_init_fe(fe.cdecoder);if(0==we)throw new Error("Failed to initialize frontend");return we})()}init_feat(){var fe=this;return(0,y.Z)(function*(){let we;try{const Oe=yield Kr(fe.get_config("lda"));we=e._decoder_init_feat_s3file(fe.cdecoder,Oe)}catch{we=e._decoder_init_feat_s3file(fe.cdecoder,0)}if(0==we)throw new Error("Failed to initialize feature module");return we})()}init_acmod(){var fe=this;return(0,y.Z)(function*(){const we=e._decoder_init_acmod_pre(fe.cdecoder);if(0==we)throw new Error("Failed to initialize acoustic model");return we})()}load_acmod_files(){var fe=this;return(0,y.Z)(function*(){yield fe.load_mdef(),yield fe.load_tmat(fe.get_config("tmat"));const we=fe.get_config("mean"),Oe=fe.get_config("var"),st=fe.get_config("sendump"),mt=fe.get_config("mixw");if(yield fe.load_gmm(we,Oe,st,mt),e._decoder_init_acmod_post(fe.cdecoder)<0)throw new Error("Failed to initialize acoustic scoring")})()}load_mdef(){var fe=this;return(0,y.Z)(function*(){const we=yield Kr(fe.get_config("mdef"));if(0==we)throw new Error("Failed to read mdef from "+fe.get_config("mdef"));const Oe=e._bin_mdef_read_s3file(we,fe.get_config("cionly"));if(e._s3file_free(we),0==Oe)throw new Error("Failed to read mdef from "+fe.get_config("mdef"));return e._set_mdef(fe.cdecoder,Oe),Oe})()}load_tmat(fe){var we=this;return(0,y.Z)(function*(){const Oe=yield Kr(fe),st=e._decoder_logmath(we.cdecoder),mt=we.get_config("tmatfloor"),Dt=e._tmat_init_s3file(Oe,st,mt);if(e._s3file_free(Oe),0==Dt)throw new Error("Failed to read tmat");return e._set_tmat(we.cdecoder,Dt),Dt})()}load_gmm(fe,we,Oe,st){var mt=this;return(0,y.Z)(function*(){const Dt=yield Kr(fe),Rt=yield Kr(we);var zn,Zi;try{zn=yield Kr(Oe),Zi=0}catch{zn=0,Zi=yield Kr(st)}if(e._load_gmm(mt.cdecoder,Dt,Rt,Zi,zn)<0)throw new Error("Failed to load GMM parameters")})()}init_dict(){var fe=this;return(0,y.Z)(function*(){let we,Oe;try{we=yield Kr(fe.get_config("dict"))}catch{we=0}try{Oe=yield Kr(fe.get_config("fdict"))}catch{Oe=0}if(0==e._decoder_init_dict_s3file(fe.cdecoder,we,Oe))throw new Error("Failed to initialize dictionaries")})()}init_grammar(){var fe=this;return(0,y.Z)(function*(){let we=0,Oe=0;const st=fe.get_config("jsgf");null!=st&&(Oe=yield Kr(st));const mt=fe.get_config("fsg");if(null!=mt&&(we=yield Kr(mt)),(we||Oe)&&e._decoder_init_grammar_s3file(fe.cdecoder,we,Oe)<0)throw new Error("Failed to initialize grammar")})()}assert_initialized(){if(!this.initialized)throw new Error("Decoder not yet initialized")}reinitialize_audio(){var fe=this;return(0,y.Z)(function*(){fe.assert_initialized();const we=yield fe.init_fe(),Oe=yield fe.init_feat();if(e._acmod_reinit_feat(fe.cacmod,we,Oe)<0)throw new Error("Failed to reinitialize audio parameters")})()}start(){if(this.assert_initialized(),e._decoder_start_utt(this.cdecoder)<0)throw new Error("Failed to start utterance processing")}stop(){if(this.assert_initialized(),e._decoder_end_utt(this.cdecoder)<0)throw new Error("Failed to stop utterance processing")}process_audio(fe,we=!1,Oe=!1){this.assert_initialized();const st=fe.length*fe.BYTES_PER_ELEMENT,mt=e._malloc(st);jf(new Uint8Array(fe.buffer,fe.byteOffset,st),mt);const Rt=e._decoder_process_float32(this.cdecoder,mt,st/4,we,Oe);if(e._free(mt),Rt<0)throw new Error("Utterance processing failed");return Rt}get_text(){return this.assert_initialized(),Fe(e._decoder_hyp(this.cdecoder,0))}get_alignment({start:fe=0,align_level:we=0}={}){if(this.assert_initialized(),we>2)throw new Error(`Invalid align_level ${we}`);const st=Fe(e._decoder_result_json(this.cdecoder,fe,we));return JSON.parse(st)}lookup_word(fe){this.assert_initialized();const we=kr(fe),Oe=e._decoder_lookup_word(this.cdecoder,we);return e._free(we),0==Oe?null:Fe(Oe)}add_words(...fe){this.assert_initialized();for(let we=0;weDt>0?32767*Dt:32768*Dt),Oe=new Uint8Array(we.buffer),st=e._malloc(Oe.length);jf(Oe,st);const mt=e._endpointer_process(this.cep,st);if(e._free(st),0!=mt){const Dt=new Int16Array(Xe.buffer,mt,this.get_frame_size());return Float32Array.from(Dt,Rt=>Rt>0?Rt/32767:Rt/32768)}return null}end_stream(fe){const we=Int16Array.from(fe.map(Rt=>Rt>0?32767*Rt:32768*Rt)),Oe=new Uint8Array(we.buffer),st=e._malloc(Oe.length);jf(Oe,st);const mt=e._malloc(4),Dt=e._endpointer_end_stream(this.cep,st,we.length,mt);if(e._free(mt),e._free(st),0!=Dt){const Rt=oy(mt,"i32"),zn=new Int16Array(Xe.buffer,Dt,2*Rt);return Float32Array.from(zn,Zi=>Zi>0?Zi/32767:Zi/32768)}return null}},e.ready});var bb,Us=function(t){return t.strict="strict",t.moderate="moderate",t.loose="loose",t}(Us||{});let BN=(()=>{class t{constructor(){this.modelLoaded=new hi(!1),this.mode=Us.strict,this.beamParams={strict:{beam:1e-100,pbeam:1e-100,wbeam:1e-80},moderate:{beam:1e-200,pbeam:1e-200,wbeam:1e-160},loose:{beam:0,pbeam:0,wbeam:0}}}preload(){var e=this;return(0,y.Z)(function*(){const i=new bb.Decoder;return i.initialize().finally(()=>{e.modelLoaded.next(!0),i.delete()})})()}loadModule$(){return bi(void 0===bb?wne().then(e=>(bb=e,this.preload())):this.preload())}align$(e,i){const o=i.text_ids,r=i.lexicon,a=i.processed_ras;return new On(s=>{const l=new bb.Decoder({loglevel:"INFO",beam:this.beamParams[this.mode].beam,wbeam:this.beamParams[this.mode].wbeam,pbeam:this.beamParams[this.mode].pbeam,samprate:e.sampleRate});l.unset_config("dict");let c=!1;return l.initialize().then((0,y.Z)(function*(){l.add_words(...r),l.set_align_text(o),l.start();const u=e.getChannelData(0);let h=0;for(s.next({pos:h,length:u.length});h8192&&(g=8192),yield new Promise(b=>{setTimeout(()=>{l.process_audio(u.subarray(h,h+g),!1,!1),b()},0)}),h+=g,s.next({pos:h,length:u.length}),c)return void l.stop()}l.stop();const p=l.get_alignment();if(console.log(`hypseg is ${p}`),void 0===p.w||0==p.w.length)throw new Error("No alignment found");s.next({pos:h,length:u.length,hypseg:p,xml:a}),s.complete()})).catch(u=>{s.error(u)}).finally(()=>{l.delete()}),()=>{c=!0}})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ws=O(9884);const Hu=new WeakSet,HN=new WeakMap,d1=new WeakMap,YN=new WeakMap,h1=new WeakMap,yb=new WeakMap,zN=new WeakMap,f1=new WeakMap,p1=new WeakMap,g1=new WeakMap,$N={construct:()=>$N},VN=/^import(?:(?:[\s]+[\w]+|(?:[\s]+[\w]+[\s]*,)?[\s]*\{[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?(?:[\s]*,[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?)*[\s]*}|(?:[\s]+[\w]+[\s]*,)?[\s]*\*[\s]+as[\s]+[\w]+)[\s]+from)?(?:[\s]*)("([^"\\]|\\.)+"|'([^'\\]|\\.)+')(?:[\s]*);?/,ZN=(t,n)=>{const e=[];let i=t.replace(/^[\s]+/,""),o=i.match(VN);for(;null!==o;){const r=o[1].slice(1,-1),a=o[0].replace(/([\s]+)?;?$/,"").replace(r,new URL(r,n).toString());e.push(a),i=i.slice(o[0].length).replace(/^[\s]+/,""),o=i.match(VN)}return[e.join(";"),i]},GN=t=>{if(void 0!==t&&!Array.isArray(t))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},UN=t=>{if(!(t=>{try{new new Proxy(t,$N)}catch{return!1}return!0})(t))throw new TypeError("The given value for processorCtor should be a constructor.");if(null===t.prototype||"object"!=typeof t.prototype)throw new TypeError("The given value for processorCtor should have a prototype.")},Wr=(t,n)=>{const e=t.get(n);if(void 0===e)throw new Error("A value with the given key could not be found.");return e},_b=(t,n)=>{const e=Array.from(t).filter(n);if(e.length>1)throw Error("More than one element was found.");if(0===e.length)throw Error("No element was found.");const[i]=e;return t.delete(i),i},WN=(t,n,e,i)=>{const o=Wr(t,n),r=_b(o,a=>a[0]===e&&a[1]===i);return 0===o.size&&t.delete(n),r},wf=t=>Wr(zN,t),Yu=t=>{if(Hu.has(t))throw new Error("The AudioNode is already stored.");Hu.add(t),wf(t).forEach(n=>n(!0))},XN=t=>"port"in t,Cf=t=>{if(!Hu.has(t))throw new Error("The AudioNode is not stored.");Hu.delete(t),wf(t).forEach(n=>n(!1))},m1=(t,n)=>{!XN(t)&&n.every(e=>0===e.size)&&Cf(t)},Rne={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},bo=(t,n)=>t.context===n,vb=t=>{try{t.copyToChannel(new Float32Array(1),0,-1)}catch{return!1}return!0},Ea=()=>new DOMException("","IndexSizeError"),b1=t=>{var n;t.getChannelData=(n=t.getChannelData,e=>{try{return n.call(t,e)}catch(i){throw 12===i.code?Ea():i}})},Fne={numberOfChannels:1},zo=-34028234663852886e22,Io=-zo,ss=t=>Hu.has(t),jne={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},Oo=t=>Wr(HN,t),xf=t=>Wr(YN,t),y1=(t,n)=>{const{activeInputs:e}=Oo(t);e.forEach(o=>o.forEach(([r])=>{n.includes(t)||y1(r,[...n,t])}));const i=(t=>"playbackRate"in t)(t)?[t.playbackRate]:XN(t)?Array.from(t.parameters.values()):(t=>"frequency"in t&&"gain"in t)(t)?[t.Q,t.detune,t.frequency,t.gain]:(t=>"offset"in t)(t)?[t.offset]:(t=>!("frequency"in t)&&"gain"in t)(t)?[t.gain]:(t=>"detune"in t&&"frequency"in t)(t)?[t.detune,t.frequency]:(t=>"pan"in t)(t)?[t.pan]:[];for(const o of i){const r=xf(o);void 0!==r&&r.activeInputs.forEach(([a])=>y1(a,n))}ss(t)&&Cf(t)},Cb=t=>"context"in t,Sf=t=>Cb(t[0]),Jl=(t,n,e,i)=>{for(const o of t)if(e(o)){if(i)return!1;throw Error("The set contains at least one similar element.")}return t.add(n),!0},QN=(t,n,[e,i],o)=>{Jl(t,[n,e,i],r=>r[0]===n&&r[1]===e,o)},KN=(t,[n,e,i],o)=>{const r=t.get(n);void 0===r?t.set(n,new Set([[e,i]])):Jl(r,[e,i],a=>a[0]===e,o)},zu=t=>"inputs"in t,xb=(t,n,e,i)=>{if(zu(n)){const o=n.inputs[i];return t.connect(o,e,0),[o,e,0]}return t.connect(n,e,i),[n,e,i]},qN=(t,n,e)=>{for(const i of t)if(i[0]===n&&i[1]===e)return t.delete(i),i;return null},eF=(t,n)=>{if(!wf(t).delete(n))throw new Error("Missing the expected event listener.")},tF=(t,n,e)=>{const i=Wr(t,n),o=_b(i,r=>r[0]===e);return 0===i.size&&t.delete(n),o},Sb=(t,n,e,i)=>{zu(n)?t.disconnect(n.inputs[i],e,0):t.disconnect(n,e,i)},ri=t=>Wr(d1,t),Df=t=>Wr(h1,t),Ql=t=>f1.has(t),Db=t=>!Hu.has(t),nF=(t,n)=>new Promise(e=>{if(null!==n)e(!0);else{const i=t.createScriptProcessor(256,1,1),o=t.createGain(),r=t.createBuffer(1,2,44100),a=r.getChannelData(0);a[0]=1,a[1]=1;const s=t.createBufferSource();s.buffer=r,s.loop=!0,s.connect(i).connect(t.destination),s.connect(o),s.disconnect(o),i.onaudioprocess=l=>{const c=l.inputBuffer.getChannelData(0);Array.prototype.some.call(c,u=>1===u)?e(!0):e(!1),s.stop(),i.onaudioprocess=null,s.disconnect(i),i.disconnect(t.destination)},s.start()}}),_1=(t,n)=>{const e=new Map;for(const i of t)for(const o of i){const r=e.get(o);e.set(o,void 0===r?1:r+1)}e.forEach((i,o)=>n(o,i))},Eb=t=>"context"in t,v1=(t,n,e,i,o)=>{const[r,a]=((t,n,e,i)=>{const{activeInputs:o,passiveInputs:r}=Oo(n),a=qN(o[i],t,e);return null===a?[WN(r,t,e,i)[2],!1]:[a[2],!0]})(t,e,i,o);if(null!==r&&(eF(t,r),a&&!n&&!Ql(t)&&Sb(ri(t),ri(e),i,o)),ss(e)){const{activeInputs:s}=Oo(e);m1(e,s)}},w1=(t,n,e,i)=>{const[o,r]=((t,n,e)=>{const{activeInputs:i,passiveInputs:o}=xf(n),r=qN(i,t,e);return null===r?[tF(o,t,e)[1],!1]:[r[2],!0]})(t,e,i);null!==o&&(eF(t,o),r&&!n&&!Ql(t)&&ri(t).disconnect(Df(e),i))};class iF{constructor(n){this._map=new Map(n)}get size(){return this._map.size}entries(){return this._map.entries()}forEach(n,e=null){return this._map.forEach((i,o)=>n.call(e,i,o,this))}get(n){return this._map.get(n)}has(n){return this._map.has(n)}keys(){return this._map.keys()}values(){return this._map.values()}}function Tb(t,n,e,i,o){if("function"==typeof t.copyFromChannel)0===n[e].byteLength&&(n[e]=new Float32Array(128)),t.copyFromChannel(n[e],i,o);else{const r=t.getChannelData(i);if(0===n[e].byteLength)n[e]=r.slice(o,o+128);else{const a=new Float32Array(r.buffer,o*Float32Array.BYTES_PER_ELEMENT,128);n[e].set(a)}}}const oF=(t,n,e,i,o)=>{"function"==typeof t.copyToChannel?0!==n[e].byteLength&&t.copyToChannel(n[e],i,o):0!==n[e].byteLength&&t.getChannelData(i).set(n[e],o)},Mb=(t,n)=>{const e=[];for(let i=0;iD+H,0),d=0===u?null:i.createBuffer(u,l,i.sampleRate);if(void 0===a)throw new Error("Missing the processor constructor.");const h=Oo(n),p=yield((t,n)=>{const e=Wr(g1,t),i=ri(n);return Wr(e,i)})(i,n),g=Mb(o.numberOfInputs,o.channelCount),b=Mb(o.numberOfOutputs,r),T=Array.from(n.parameters.keys()).reduce((D,H)=>({...D,[H]:new Float32Array(128)}),{});for(let D=0;D0&&null!==e)for(let H=0;H{Tb(e,T,H,c+oe,D)});for(let H=0;H0===h.activeInputs[G].size?[]:le),oe=s(D/i.sampleRate,i.sampleRate,()=>p.process(H,b,T));if(null!==d)for(let le=0,G=0;le{const{port1:n,port2:e}=new MessageChannel;return new Promise(i=>{const o=()=>{e.onmessage=null,n.close(),e.close(),i()};e.onmessage=()=>o();try{n.postMessage(t,[t])}catch{}finally{o()}})},jie={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",delayTime:0,maxDelayTime:1},Ab=(t,n,e)=>{const i=n[e];if(void 0===i)throw t();return i},Gie={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},eoe={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},Li=()=>new DOMException("","InvalidStateError"),kb=()=>new DOMException("","InvalidAccessError"),hoe={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},aF=(t,n,e,i,o,r,a,s,l,c,u)=>{const d=c.length;let h=s;for(let p=0;p{const n=new Uint32Array([1179011410,40,1163280727,544501094,16,131073,44100,176400,1048580,1635017060,4,0]);try{const e=t.decodeAudioData(n.buffer,()=>{});return void 0!==e&&(e.catch(()=>{}),!0)}catch{}return!1},di=(t,n,e)=>{const i=n[e];void 0!==i&&i!==t[e]&&(t[e]=i)},Vi=(t,n)=>{di(t,n,"channelCount"),di(t,n,"channelCountMode"),di(t,n,"channelInterpretation")},sF=t=>"function"==typeof t.getFloatTimeDomainData,vi=(t,n,e)=>{const i=n[e];void 0!==i&&i!==t[e].value&&(t[e].value=i)},C1=t=>{var n;t.start=(n=t.start,(e=0,i=0,o)=>{if("number"==typeof o&&o<0||i<0||e<0)throw new RangeError("The parameters can't be negative.");n.call(t,e,i,o)})},x1=t=>{var n;t.stop=(n=t.stop,(e=0)=>{if(e<0)throw new RangeError("The parameter can't be negative.");n.call(t,e)})},lF=(t,n)=>null===t?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(t*n))))),Woe=function(){var t=(0,y.Z)(function*(n,e){const i=yield(t=>new Promise((n,e)=>{const{port1:i,port2:o}=new MessageChannel;i.onmessage=({data:r})=>{i.close(),o.close(),n(r)},i.onmessageerror=({data:r})=>{i.close(),o.close(),e(r)},o.postMessage(t)}))(e);return new n(i)});return function(e,i){return t.apply(this,arguments)}}(),cF=(t,n)=>{const e=t.createBiquadFilter();return Vi(e,n),vi(e,n,"Q"),vi(e,n,"detune"),vi(e,n,"frequency"),vi(e,n,"gain"),di(e,n,"type"),e},Ef=(t,n)=>{const e=t.createChannelSplitter(n.numberOfOutputs);return Vi(e,n),(t=>{const n=t.numberOfOutputs;Object.defineProperty(t,"channelCount",{get:()=>n,set:e=>{if(e!==n)throw Li()}}),Object.defineProperty(t,"channelCountMode",{get:()=>"explicit",set:e=>{if("explicit"!==e)throw Li()}}),Object.defineProperty(t,"channelInterpretation",{get:()=>"discrete",set:e=>{if("discrete"!==e)throw Li()}})})(e),e},$u=(t,n)=>(t.connect=n.connect.bind(n),t.disconnect=n.disconnect.bind(n),t),uF=(t,n)=>{const e=t.createDelay(n.maxDelayTime);return Vi(e,n),vi(e,n,"delayTime"),e},$o=(t,n)=>{const e=t.createGain();return Vi(e,n),vi(e,n,"gain"),e};function ore(t,n){const e=n[0]*n[0]+n[1]*n[1];return[(t[0]*n[0]+t[1]*n[1])/e,(t[1]*n[0]-t[0]*n[1])/e]}function rre(t,n){return[t[0]*n[0]-t[1]*n[1],t[0]*n[1]+t[1]*n[0]]}function dF(t,n){let e=[0,0];for(let i=t.length-1;i>=0;i-=1)e=rre(e,n),e[0]+=t[i];return e}const Tf=(t,n,e,i)=>t.createScriptProcessor(n,e,i),yo=()=>new DOMException("","NotSupportedError"),Cre={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:440,periodicWave:void 0,type:"sine"},Dre={channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",coneInnerAngle:360,coneOuterAngle:360,coneOuterGain:0,distanceModel:"inverse",maxDistance:1e4,orientationX:1,orientationY:0,orientationZ:0,panningModel:"equalpower",positionX:0,positionY:0,positionZ:0,refDistance:1,rolloffFactor:1},Mre={disableNormalization:!1},Lre={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},hF=()=>new DOMException("","UnknownError"),$re={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",curve:null,oversample:"none"},fF=(t,n,e)=>void 0===t.copyFromChannel?t.getChannelData(e)[0]:(t.copyFromChannel(n,e),n[0]),pF=t=>{if(null===t)return!1;const n=t.length;return n%2!=0?0!==t[Math.floor(n/2)]:t[n/2-1]+t[n/2]!==0},Mf=(t,n,e,i)=>{let o=t;for(;!o.hasOwnProperty(n);)o=Object.getPrototypeOf(o);const{get:r,set:a}=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(t,n,{get:e(r),set:i(a)})},gF=(t,n,e)=>{try{t.setValueAtTime(n,e)}catch(i){if(9!==i.code)throw i;gF(t,n,e+1e-7)}},S1=t=>{const n=t.createOscillator();try{n.start(-1)}catch(e){return e instanceof RangeError}return!1},mF=t=>{const n=t.createBuffer(1,1,44100),e=t.createBufferSource();e.buffer=n,e.start(),e.stop();try{return e.stop(),!0}catch{return!1}},D1=t=>{const n=t.createOscillator();try{n.stop(-1)}catch(e){return e instanceof RangeError}return!1},bF=(t,n)=>{const e=n.createGain();t.connect(e);const i=(o=t.disconnect,()=>{o.call(t,e),t.removeEventListener("ended",i)});var o;t.addEventListener("ended",i),$u(t,e),t.stop=(o=>{let r=!1;return(a=0)=>{if(r)try{o.call(t,a)}catch{e.gain.setValueAtTime(0,a)}else o.call(t,a),r=!0}})(t.stop)},Vu=(t,n)=>e=>{const i={value:t};return Object.defineProperties(e,{currentTarget:i,target:i}),"function"==typeof n?n.call(t,e):n.handleEvent.call(t,e)},rae=(t=>(n,e,[i,o,r],a)=>{t(n[o],[e,i,r],s=>s[0]===e&&s[1]===i,a)})(Jl),aae=(t=>(n,e,[i,o,r],a)=>{const s=n.get(i);void 0===s?n.set(i,new Set([[o,e,r]])):t(s,[o,e,r],l=>l[0]===o&&l[1]===e,a)})(Jl),sae=(t=>(n,e,i,o)=>t(n[o],r=>r[0]===e&&r[1]===i))(_b),yF=new WeakMap,lae=(t=>n=>{var e;return null!==(e=t.get(n))&&void 0!==e?e:0})(yF),dr=((t,n)=>(e,i)=>{const o=n.get(e);if(void 0!==o)return o;const r=t.get(e);if(void 0!==r)return r;try{const a=i();return a instanceof Promise?(t.set(e,a),a.catch(()=>!1).then(s=>(t.delete(e),n.set(e,s),s))):(n.set(e,a),a)}catch{return n.set(e,!1),!1}})(new Map,new WeakMap),Xr=typeof window>"u"?null:window,_F=((t,n)=>(e,i)=>{const o=e.createAnalyser();if(Vi(o,i),!(i.maxDecibels>i.minDecibels))throw n();return di(o,i,"fftSize"),di(o,i,"maxDecibels"),di(o,i,"minDecibels"),di(o,i,"smoothingTimeConstant"),t(sF,()=>sF(o))||(t=>{t.getFloatTimeDomainData=n=>{const e=new Uint8Array(n.length);t.getByteTimeDomainData(e);const i=Math.max(e.length,t.fftSize);for(let o=0;on=>{const e=t(n);if(null===e.renderer)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return e.renderer})(Oo),oo=((t,n,e)=>function(){var i=(0,y.Z)(function*(o,r,a){const s=t(o);yield Promise.all(s.activeInputs.map((l,c)=>Array.from(l).map(function(){var u=(0,y.Z)(function*([d,h]){const g=yield n(d).render(d,r),b=o.context.destination;!e(d)&&(o!==b||!e(o))&&g.connect(a,h,c)});return function(d){return u.apply(this,arguments)}}())).reduce((l,c)=>[...l,...c],[]))});return function(o,r,a){return i.apply(this,arguments)}}())(Oo,E1,Ql),cae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,fftSize:l.fftSize,maxDecibels:l.maxDecibels,minDecibels:l.minDecibels,smoothingTimeConstant:l.smoothingTimeConstant})),i.set(s,l),yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(_F,ri,oo),ti=(t=>n=>{const e=t.get(n);if(void 0===e)throw Li();return e})(yb),Ji=(t=>null===t?null:t.hasOwnProperty("OfflineAudioContext")?t.OfflineAudioContext:t.hasOwnProperty("webkitOfflineAudioContext")?t.webkitOfflineAudioContext:null)(Xr),Yn=(t=>n=>null!==t&&n instanceof t)(Ji),vF=new WeakMap,wF=(t=>class{constructor(e){this._nativeEventTarget=e,this._listeners=new WeakMap}addEventListener(e,i,o){if(null!==i){let r=this._listeners.get(i);void 0===r&&(r=t(this,i),"function"==typeof i&&this._listeners.set(i,r)),this._nativeEventTarget.addEventListener(e,r,o)}}dispatchEvent(e){return this._nativeEventTarget.dispatchEvent(e)}removeEventListener(e,i,o){const r=null===i?void 0:this._listeners.get(i);this._nativeEventTarget.removeEventListener(e,void 0===r?null:r,o)}})(Vu),ls=(t=>null===t?null:t.hasOwnProperty("AudioContext")?t.AudioContext:t.hasOwnProperty("webkitAudioContext")?t.webkitAudioContext:null)(Xr),T1=(t=>n=>null!==t&&n instanceof t)(ls),M1=(t=>n=>null!==t&&"function"==typeof t.AudioNode&&n instanceof t.AudioNode)(Xr),CF=(t=>n=>null!==t&&"function"==typeof t.AudioParam&&n instanceof t.AudioParam)(Xr),Zu=(t=>null===t?null:t.hasOwnProperty("AudioWorkletNode")?t.AudioWorkletNode:null)(Xr),Ii=((t,n,e,i,o,r,a,s,l,c,u,d,h,p,g,b)=>class extends c{constructor(D,H,oe,le){super(oe),this._context=D,this._nativeAudioNode=oe;const G=u(D);d(G)&&!0!==e(nF,()=>nF(G,b))&&(t=>{const n=new Map;var e;t.connect=(e=t.connect.bind(t),(i,o=0,r=0)=>{const a=Eb(i)?e(i,o,r):e(i,o),s=n.get(i);return void 0===s?n.set(i,[{input:r,output:o}]):s.every(l=>l.input!==r||l.output!==o)&&s.push({input:r,output:o}),a}),t.disconnect=(e=>(i,o,r)=>{if(e.apply(t),void 0===i)n.clear();else if("number"==typeof i)for(const[a,s]of n){const l=s.filter(c=>c.output!==i);0===l.length?n.delete(a):n.set(a,l)}else if(n.has(i))if(void 0===o)n.delete(i);else{const a=n.get(i);if(void 0!==a){const s=a.filter(l=>l.output!==o&&(l.input!==r||void 0===r));0===s.length?n.delete(i):n.set(i,s)}}for(const[a,s]of n)s.forEach(l=>{Eb(a)?t.connect(a,l.output,l.input):t.connect(a,l.output)})})(t.disconnect)})(oe),d1.set(this,oe),zN.set(this,new Set),"closed"!==D.state&&H&&Yu(this),t(this,le,oe)}get channelCount(){return this._nativeAudioNode.channelCount}set channelCount(D){this._nativeAudioNode.channelCount=D}get channelCountMode(){return this._nativeAudioNode.channelCountMode}set channelCountMode(D){this._nativeAudioNode.channelCountMode=D}get channelInterpretation(){return this._nativeAudioNode.channelInterpretation}set channelInterpretation(D){this._nativeAudioNode.channelInterpretation=D}get context(){return this._context}get numberOfInputs(){return this._nativeAudioNode.numberOfInputs}get numberOfOutputs(){return this._nativeAudioNode.numberOfOutputs}connect(D,H=0,oe=0){if(H<0||H>=this._nativeAudioNode.numberOfOutputs)throw o();const le=u(this._context),G=g(le);if(h(D)||p(D))throw r();if(Cb(D)){const be=ri(D);try{const Fe=xb(this._nativeAudioNode,be,H,oe),Qe=Db(this);(G||Qe)&&this._nativeAudioNode.disconnect(...Fe),"closed"!==this.context.state&&!Qe&&Db(D)&&Yu(D)}catch(Fe){throw 12===Fe.code?r():Fe}if(n(this,D,H,oe,G)){const Fe=l([this],D);_1(Fe,i(G))}return D}const pe=Df(D);if("playbackRate"===pe.name&&1024===pe.maxValue)throw a();try{this._nativeAudioNode.connect(pe,H),(G||Db(this))&&this._nativeAudioNode.disconnect(pe,H)}catch(be){throw 12===be.code?r():be}if(((t,n,e,i)=>{const{activeInputs:o,passiveInputs:r}=xf(n),{outputs:a}=Oo(t),s=wf(t),l=c=>{const u=ri(t),d=Df(n);if(c){const h=tF(r,t,e);QN(o,t,h,!1),!i&&!Ql(t)&&u.connect(d,e)}else{const h=((t,n,e)=>_b(t,i=>i[0]===n&&i[1]===e))(o,t,e);KN(r,h,!1),!i&&!Ql(t)&&u.disconnect(d,e)}};return!!Jl(a,[n,e],c=>c[0]===n&&c[1]===e,!0)&&(s.add(l),ss(t)?QN(o,t,[e,l],!0):KN(r,[t,e,l],!0),!0)})(this,D,H,G)){const be=l([this],D);_1(be,i(G))}}disconnect(D,H,oe){let le;const G=u(this._context),pe=g(G);if(void 0===D)le=((t,n)=>{const e=Oo(t),i=[];for(const o of e.outputs)Sf(o)?v1(t,n,...o):w1(t,n,...o),i.push(o[0]);return e.outputs.clear(),i})(this,pe);else if("number"==typeof D){if(D<0||D>=this.numberOfOutputs)throw o();le=((t,n,e)=>{const i=Oo(t),o=[];for(const r of i.outputs)r[1]===e&&(Sf(r)?v1(t,n,...r):w1(t,n,...r),o.push(r[0]),i.outputs.delete(r));return o})(this,pe,D)}else{if(void 0!==H&&(H<0||H>=this.numberOfOutputs)||Cb(D)&&void 0!==oe&&(oe<0||oe>=D.numberOfInputs))throw o();if(le=((t,n,e,i,o)=>{const r=Oo(t);return Array.from(r.outputs).filter(a=>!(a[0]!==e||void 0!==i&&a[1]!==i||void 0!==o&&a[2]!==o)).map(a=>(Sf(a)?v1(t,n,...a):w1(t,n,...a),r.outputs.delete(a),a[0]))})(this,pe,D,H,oe),0===le.length)throw r()}for(const _e of le){const be=l([this],_e);_1(be,s)}}})((t=>(n,e,i)=>{const o=[];for(let r=0;r{const p=new WeakMap;return(g,b,T,D,H)=>{const{activeInputs:oe,passiveInputs:le}=r(b),{outputs:G}=r(g),pe=s(g),_e=be=>{const Be=l(b),Fe=l(g);if(be){const Qe=WN(le,g,T,D);t(oe,g,Qe,!1),!H&&!d(g)&&e(Fe,Be,T,D),h(b)&&Yu(b)}else{const Qe=i(oe,g,T,D);n(le,D,Qe,!1),!H&&!d(g)&&o(Fe,Be,T,D);const Re=a(b);if(0===Re)u(b)&&m1(b,oe);else{const Xe=p.get(b);void 0!==Xe&&clearTimeout(Xe),p.set(b,setTimeout(()=>{u(b)&&m1(b,oe)},1e3*Re))}}};return!!c(G,[b,T,D],be=>be[0]===b&&be[1]===T&&be[2]===D,!0)&&(pe.add(_e),u(g)?t(oe,g,[T,D,_e],!0):n(le,D,[g,T,_e],!0),!0)}})(rae,aae,xb,sae,Sb,Oo,lae,wf,ri,Jl,ss,Ql,Db),dr,((t,n,e,i,o,r)=>a=>(s,l)=>{const c=t.get(s);if(void 0===c){if(!a&&r(s)){const u=i(s),{outputs:d}=e(s);for(const h of d)if(Sf(h)){const p=i(h[0]);n(u,p,h[1],h[2])}else{const p=o(h[0]);u.disconnect(p,h[1])}}t.set(s,l)}else t.set(s,c+l)})(f1,Sb,Oo,ri,Df,ss),Ea,kb,yo,((t,n,e,i,o,r,a,s)=>(l,c)=>{const u=n.get(l);if(void 0===u)throw new Error("Missing the expected cycle count.");const d=r(l.context),h=s(d);if(u===c){if(n.delete(l),!h&&a(l)){const p=i(l),{outputs:g}=e(l);for(const b of g)if(Sf(b)){const T=i(b[0]);t(p,T,b[1],b[2])}else{const T=o(b[0]);p.connect(T,b[1])}}}else n.set(l,u-c)})(xb,f1,Oo,ri,Df,ti,ss,Yn),((t,n,e)=>function i(o,r){const a=Cb(r)?r:e(t,r);if((t=>"delayTime"in t)(a))return[];if(o[0]===a)return[o];if(o.includes(a))return[];const{outputs:s}=n(a);return Array.from(s).map(l=>i([...o,a],l[0])).reduce((l,c)=>l.concat(c),[])})(vF,Oo,Wr),wF,ti,T1,M1,CF,Yn,Zu),uae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=o(s),u={...Rne,...l},d=i(c,u);super(s,!1,d,r(c)?n():null),this._nativeAnalyserNode=d}get fftSize(){return this._nativeAnalyserNode.fftSize}set fftSize(s){this._nativeAnalyserNode.fftSize=s}get frequencyBinCount(){return this._nativeAnalyserNode.frequencyBinCount}get maxDecibels(){return this._nativeAnalyserNode.maxDecibels}set maxDecibels(s){const l=this._nativeAnalyserNode.maxDecibels;if(this._nativeAnalyserNode.maxDecibels=s,!(s>this._nativeAnalyserNode.minDecibels))throw this._nativeAnalyserNode.maxDecibels=l,e()}get minDecibels(){return this._nativeAnalyserNode.minDecibels}set minDecibels(s){const l=this._nativeAnalyserNode.minDecibels;if(this._nativeAnalyserNode.minDecibels=s,!(this._nativeAnalyserNode.maxDecibels>s))throw this._nativeAnalyserNode.minDecibels=l,e()}get smoothingTimeConstant(){return this._nativeAnalyserNode.smoothingTimeConstant}set smoothingTimeConstant(s){this._nativeAnalyserNode.smoothingTimeConstant=s}getByteFrequencyData(s){this._nativeAnalyserNode.getByteFrequencyData(s)}getByteTimeDomainData(s){this._nativeAnalyserNode.getByteTimeDomainData(s)}getFloatFrequencyData(s){this._nativeAnalyserNode.getFloatFrequencyData(s)}getFloatTimeDomainData(s){this._nativeAnalyserNode.getFloatTimeDomainData(s)}})(Ii,cae,Ea,_F,ti,Yn),A1=new WeakSet,xF=(t=>null===t?null:t.hasOwnProperty("AudioBuffer")?t.AudioBuffer:null)(Xr),SF=(t=>n=>(t[0]=n,t[0]))(new Uint32Array(1)),k1=((t,n)=>e=>{e.copyFromChannel=(i,o,r=0)=>{const a=t(r),s=t(o);if(s>=e.numberOfChannels)throw n();const l=e.length,c=e.getChannelData(s),u=i.length;for(let d=a<0?-a:0;d+a{const a=t(r),s=t(o);if(s>=e.numberOfChannels)throw n();const l=e.length,c=e.getChannelData(s),u=i.length;for(let d=a<0?-a:0;d+an=>{var e;n.copyFromChannel=(e=n.copyFromChannel,(i,o,r=0)=>{const a=t(r),s=t(o);if(a(i,o,r=0)=>{const a=t(r),s=t(o);if(a{let l=null;return class Qj{constructor(u){if(null===o)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:d,numberOfChannels:h,sampleRate:p}={...Fne,...u};null===l&&(l=new o(1,1,44100));const g=null!==i&&n(r,r)?new i({length:d,numberOfChannels:h,sampleRate:p}):l.createBuffer(h,d,p);if(0===g.numberOfChannels)throw e();return"function"!=typeof g.copyFromChannel?(a(g),b1(g)):n(vb,()=>vb(g))||s(g),t.add(g),g}static[Symbol.hasInstance](u){return null!==u&&"object"==typeof u&&Object.getPrototypeOf(u)===Qj.prototype||t.has(u)}}})(A1,dr,yo,xF,Ji,(t=>()=>{if(null===t)return!1;try{new t({length:1,sampleRate:44100})}catch{return!1}return!0})(xF),k1,I1),Ib=(t=>(n,e)=>{const i=t(n,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});e.connect(i).connect(n.destination);const o=()=>{e.removeEventListener("ended",o),e.disconnect(i),i.disconnect()};e.addEventListener("ended",o)})($o),DF=((t,n,e)=>function(){var i=(0,y.Z)(function*(o,r,a){const s=n(o);yield Promise.all(Array.from(s.activeInputs).map(function(){var l=(0,y.Z)(function*([c,u]){const h=yield t(c).render(c,r);e(c)||h.connect(a,u)});return function(c){return l.apply(this,arguments)}}()))});return function(o,r,a){return i.apply(this,arguments)}}())(E1,xf,Ql),Ta=(t=>(n,e,i)=>t(e,n,i))(DF),Gu=((t,n,e,i,o,r,a,s,l,c,u)=>(d,h)=>{const p=d.createBufferSource();return Vi(p,h),vi(p,h,"playbackRate"),di(p,h,"buffer"),di(p,h,"loop"),di(p,h,"loopEnd"),di(p,h,"loopStart"),n(e,()=>e(d))||(t=>{t.start=(n=>{let e=!1;return(i=0,o=0,r)=>{if(e)throw Li();n.call(t,i,o,r),e=!0}})(t.start)})(p),n(i,()=>i(d))||(t=>{var n;t.start=(n=t.start,(e=0,i=0,o)=>{const r=t.buffer,a=null===r?i:Math.min(r.duration,i);null!==r&&a>r.duration-.5/t.context.sampleRate?n.call(t,e,0,0):n.call(t,e,a,o)})})(p),n(o,()=>o(d))||c(p,d),n(r,()=>r(d))||C1(p),n(a,()=>a(d))||u(p,d),n(s,()=>s(d))||x1(p),t(d,p),p})(Ib,dr,t=>{const n=t.createBufferSource();n.start();try{n.start()}catch{return!0}return!1},t=>{const n=t.createBufferSource(),e=t.createBuffer(1,1,44100);n.buffer=e;try{n.start(0,1)}catch{return!1}return!0},t=>{const n=t.createBufferSource();n.start();try{n.stop()}catch{return!1}return!0},S1,mF,D1,0,(t=>(n,e)=>{const i=e.createBuffer(1,1,44100);null===n.buffer&&(n.buffer=i),t(n,"buffer",o=>()=>{const r=o.call(n);return r===i?null:r},o=>r=>o.call(n,null===r?i:r))})(Mf),bF),Ma=((t,n)=>(e,i,o)=>(t(i).replay(o),n(i,e,o)))((t=>n=>{const e=t(n);if(null===e.renderer)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return e.renderer})(xf),DF),hae=((t,n,e,i,o)=>()=>{const r=new WeakMap;let a=null,s=null;const l=function(){var c=(0,y.Z)(function*(u,d){let h=e(u);const p=bo(h,d);return p||(h=n(d,{buffer:h.buffer,channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,loop:h.loop,loopEnd:h.loopEnd,loopStart:h.loopStart,playbackRate:h.playbackRate.value}),null!==a&&h.start(...a),null!==s&&h.stop(s)),r.set(d,h),p?yield t(d,u.playbackRate,h.playbackRate):yield i(d,u.playbackRate,h.playbackRate),yield o(u,d,h),h});return function(d,h){return c.apply(this,arguments)}}();return{set start(c){a=c},set stop(c){s=c},render(c,u){const d=r.get(u);return void 0!==d?Promise.resolve(d):l(c,u)}}})(Ta,Gu,ri,Ma,oo),Jr=((t,n,e,i,o,r,a,s,l,c,u,d,h)=>(p,g,b,T=null,D=null)=>{const H=b.value,oe=new Ws.AutomationEventList(H),le=g?(t=>({replay(n){for(const e of t)if("exponentialRampToValue"===e.type){const{endTime:i,value:o}=e;n.exponentialRampToValueAtTime(o,i)}else if("linearRampToValue"===e.type){const{endTime:i,value:o}=e;n.linearRampToValueAtTime(o,i)}else if("setTarget"===e.type){const{startTime:i,target:o,timeConstant:r}=e;n.setTargetAtTime(o,i,r)}else if("setValue"===e.type){const{startTime:i,value:o}=e;n.setValueAtTime(o,i)}else{if("setValueCurve"!==e.type)throw new Error("Can't apply an unknown automation.");{const{duration:i,startTime:o,values:r}=e;n.setValueCurveAtTime(r,o,i)}}}}))(oe):null,G={get defaultValue(){return H},get maxValue(){return null===T?b.maxValue:T},get minValue(){return null===D?b.minValue:D},get value(){return b.value},set value(pe){b.value=pe,G.setValueAtTime(pe,p.context.currentTime)},cancelAndHoldAtTime(pe){if("function"==typeof b.cancelAndHoldAtTime)null===le&&oe.flush(p.context.currentTime),oe.add(o(pe)),b.cancelAndHoldAtTime(pe);else{const _e=Array.from(oe).pop();null===le&&oe.flush(p.context.currentTime),oe.add(o(pe));const be=Array.from(oe).pop();b.cancelScheduledValues(pe),_e!==be&&void 0!==be&&("exponentialRampToValue"===be.type?b.exponentialRampToValueAtTime(be.value,be.endTime):"linearRampToValue"===be.type?b.linearRampToValueAtTime(be.value,be.endTime):"setValue"===be.type?b.setValueAtTime(be.value,be.startTime):"setValueCurve"===be.type&&b.setValueCurveAtTime(be.values,be.startTime,be.duration))}return G},cancelScheduledValues:pe=>(null===le&&oe.flush(p.context.currentTime),oe.add(r(pe)),b.cancelScheduledValues(pe),G),exponentialRampToValueAtTime(pe,_e){if(0===pe)throw new RangeError;if(!Number.isFinite(_e)||_e<0)throw new RangeError;const be=p.context.currentTime;return null===le&&oe.flush(be),0===Array.from(oe).length&&(oe.add(c(H,be)),b.setValueAtTime(H,be)),oe.add(a(pe,_e)),b.exponentialRampToValueAtTime(pe,_e),G},linearRampToValueAtTime(pe,_e){const be=p.context.currentTime;return null===le&&oe.flush(be),0===Array.from(oe).length&&(oe.add(c(H,be)),b.setValueAtTime(H,be)),oe.add(s(pe,_e)),b.linearRampToValueAtTime(pe,_e),G},setTargetAtTime:(pe,_e,be)=>(null===le&&oe.flush(p.context.currentTime),oe.add(l(pe,_e,be)),b.setTargetAtTime(pe,_e,be),G),setValueAtTime:(pe,_e)=>(null===le&&oe.flush(p.context.currentTime),oe.add(c(pe,_e)),b.setValueAtTime(pe,_e),G),setValueCurveAtTime(pe,_e,be){const Be=pe instanceof Float32Array?pe:new Float32Array(pe);if(null!==d&&"webkitAudioContext"===d.name){const Fe=_e+be,Qe=p.context.sampleRate,Re=Math.ceil(_e*Qe),Xe=Math.floor(Fe*Qe),ct=Xe-Re,ut=new Float32Array(ct);for(let Ye=0;Ye(n,e)=>{t.set(n,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:e})})(YN),vF,h1,0,Ws.createCancelAndHoldAutomationEvent,Ws.createCancelScheduledValuesAutomationEvent,Ws.createExponentialRampToValueAutomationEvent,Ws.createLinearRampToValueAutomationEvent,Ws.createSetTargetAutomationEvent,Ws.createSetValueAutomationEvent,Ws.createSetValueCurveAutomationEvent,ls,gF),fae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h={...jne,...u},p=o(d,h),g=a(d),b=g?n():null;super(c,!1,p,b),this._audioBufferSourceNodeRenderer=b,this._isBufferNullified=!1,this._isBufferSet=null!==h.buffer,this._nativeAudioBufferSourceNode=p,this._onended=null,this._playbackRate=e(this,g,p.playbackRate,Io,zo)}get buffer(){return this._isBufferNullified?null:this._nativeAudioBufferSourceNode.buffer}set buffer(c){if(this._nativeAudioBufferSourceNode.buffer=c,null!==c){if(this._isBufferSet)throw i();this._isBufferSet=!0}}get loop(){return this._nativeAudioBufferSourceNode.loop}set loop(c){this._nativeAudioBufferSourceNode.loop=c}get loopEnd(){return this._nativeAudioBufferSourceNode.loopEnd}set loopEnd(c){this._nativeAudioBufferSourceNode.loopEnd=c}get loopStart(){return this._nativeAudioBufferSourceNode.loopStart}set loopStart(c){this._nativeAudioBufferSourceNode.loopStart=c}get onended(){return this._onended}set onended(c){const u="function"==typeof c?s(this,c):null;this._nativeAudioBufferSourceNode.onended=u;const d=this._nativeAudioBufferSourceNode.onended;this._onended=null!==d&&d===u?c:d}get playbackRate(){return this._playbackRate}start(c=0,u=0,d){if(this._nativeAudioBufferSourceNode.start(c,u,d),null!==this._audioBufferSourceNodeRenderer&&(this._audioBufferSourceNodeRenderer.start=void 0===d?[c,u]:[c,u,d]),"closed"!==this.context.state){Yu(this);const h=()=>{this._nativeAudioBufferSourceNode.removeEventListener("ended",h),ss(this)&&Cf(this)};this._nativeAudioBufferSourceNode.addEventListener("ended",h)}}stop(c=0){this._nativeAudioBufferSourceNode.stop(c),null!==this._audioBufferSourceNodeRenderer&&(this._audioBufferSourceNodeRenderer.stop=c)}})(Ii,hae,Jr,Li,Gu,ti,Yn,Vu),pae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h=a(d),p=o(d,u,h);super(c,!1,p,h?n(s):null),this._isNodeOfNativeOfflineAudioContext=h,this._nativeAudioDestinationNode=p}get channelCount(){return this._nativeAudioDestinationNode.channelCount}set channelCount(c){if(this._isNodeOfNativeOfflineAudioContext)throw i();if(c>this._nativeAudioDestinationNode.maxChannelCount)throw e();this._nativeAudioDestinationNode.channelCount=c}get channelCountMode(){return this._nativeAudioDestinationNode.channelCountMode}set channelCountMode(c){if(this._isNodeOfNativeOfflineAudioContext)throw i();this._nativeAudioDestinationNode.channelCountMode=c}get maxChannelCount(){return this._nativeAudioDestinationNode.maxChannelCount}})(Ii,t=>{const n=new WeakMap,e=function(){var i=(0,y.Z)(function*(o,r){const a=r.destination;return n.set(r,a),yield t(o,r,a),a});return function(r,a){return i.apply(this,arguments)}}();return{render(i,o){const r=n.get(o);return void 0!==r?Promise.resolve(r):e(i,o)}}},Ea,Li,((t,n)=>(e,i,o)=>{const r=e.destination;if(r.channelCount!==i)try{r.channelCount=i}catch{}o&&"explicit"!==r.channelCountMode&&(r.channelCountMode="explicit"),0===r.maxChannelCount&&Object.defineProperty(r,"maxChannelCount",{value:i});const a=t(e,{channelCount:i,channelCountMode:r.channelCountMode,channelInterpretation:r.channelInterpretation,gain:1});return n(a,"channelCount",s=>()=>s.call(a),s=>l=>{s.call(a,l);try{r.channelCount=l}catch(c){if(l>r.maxChannelCount)throw c}}),n(a,"channelCountMode",s=>()=>s.call(a),s=>l=>{s.call(a,l),r.channelCountMode=l}),n(a,"channelInterpretation",s=>()=>s.call(a),s=>l=>{s.call(a,l),r.channelInterpretation=l}),Object.defineProperty(a,"maxChannelCount",{get:()=>r.maxChannelCount}),a.connect(r),a})($o,Mf),ti,Yn,oo),gae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{Q:u.Q.value,channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,detune:u.detune.value,frequency:u.frequency.value,gain:u.gain.value,type:u.type})),r.set(c,u),d?(yield t(c,l.Q,u.Q),yield t(c,l.detune,u.detune),yield t(c,l.frequency,u.frequency),yield t(c,l.gain,u.gain)):(yield i(c,l.Q,u.Q),yield i(c,l.detune,u.detune),yield i(c,l.frequency,u.frequency),yield i(c,l.gain,u.gain)),yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ta,cF,ri,Ma,oo),ql=(t=>(n,e)=>t.set(n,e))(yF),mae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h={...pie,...u},p=o(d,h),g=a(d);super(c,!1,p,g?e():null),this._Q=n(this,g,p.Q,Io,zo),this._detune=n(this,g,p.detune,1200*Math.log2(Io),-1200*Math.log2(Io)),this._frequency=n(this,g,p.frequency,c.sampleRate/2,0),this._gain=n(this,g,p.gain,40*Math.log10(Io),zo),this._nativeBiquadFilterNode=p,s(this,1)}get detune(){return this._detune}get frequency(){return this._frequency}get gain(){return this._gain}get Q(){return this._Q}get type(){return this._nativeBiquadFilterNode.type}set type(c){this._nativeBiquadFilterNode.type=c}getFrequencyResponse(c,u,d){try{this._nativeBiquadFilterNode.getFrequencyResponse(c,u,d)}catch(h){throw 11===h.code?i():h}if(c.length!==u.length||u.length!==d.length)throw i()}})(Ii,Jr,gae,kb,cF,ti,Yn,ql),Xs=((t,n)=>(e,i,o)=>{const r=new Set;return e.connect=(a=e.connect,(s,l=0,c=0)=>{const u=0===r.size;if(n(s))return a.call(e,s,l,c),t(r,[s,l,c],d=>d[0]===s&&d[1]===l&&d[2]===c,!0),u&&i(),s;a.call(e,s,l),t(r,[s,l],d=>d[0]===s&&d[1]===l,!0),u&&i()}),e.disconnect=(a=>(s,l,c)=>{const u=r.size>0;if(void 0===s)a.apply(e),r.clear();else if("number"==typeof s){a.call(e,s);for(const h of r)h[1]===s&&r.delete(h)}else{n(s)?a.call(e,s,l,c):a.call(e,s,l);for(const h of r)h[0]===s&&(void 0===l||h[1]===l)&&(void 0===c||h[2]===c)&&r.delete(h)}u&&0===r.size&&o()})(e.disconnect),e;var a})(Jl,M1),bae=((t,n)=>(e,i)=>{i.channelCount=1,i.channelCountMode="explicit",Object.defineProperty(i,"channelCount",{get:()=>1,set:()=>{throw t()}}),Object.defineProperty(i,"channelCountMode",{get:()=>"explicit",set:()=>{throw t()}});const o=e.createBufferSource();n(i,()=>{const s=i.numberOfInputs;for(let l=0;lo.disconnect(i))})(Li,Xs),Js=((t,n)=>(e,i)=>{const o=e.createChannelMerger(i.numberOfInputs);return null!==t&&"webkitAudioContext"===t.name&&n(e,o),Vi(o,i),o})(ls,bae),yae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,numberOfInputs:l.numberOfInputs})),i.set(s,l),yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(Js,ri,oo),_ae=((t,n,e,i,o)=>class extends t{constructor(a,s){const l=i(a),c={...yie,...s};super(a,!1,e(l,c),o(l)?n():null)}})(Ii,yae,Js,ti,Yn),vae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,numberOfOutputs:l.numberOfOutputs})),i.set(s,l),yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(Ef,ri,oo),wae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=i(s),u=(t=>({...t,channelCount:t.numberOfOutputs}))({...wie,...l});super(s,!1,e(c,u),o(c)?n():null)}})(Ii,vae,Ef,ti,Yn),Cae=((t,n,e,i)=>(o,{offset:r,...a})=>{const s=o.createBuffer(1,2,44100),l=n(o,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),c=e(o,{...a,gain:r}),u=s.getChannelData(0);u[0]=1,u[1]=1,l.buffer=s,l.loop=!0;const d={get bufferSize(){},get channelCount(){return c.channelCount},set channelCount(g){c.channelCount=g},get channelCountMode(){return c.channelCountMode},set channelCountMode(g){c.channelCountMode=g},get channelInterpretation(){return c.channelInterpretation},set channelInterpretation(g){c.channelInterpretation=g},get context(){return c.context},get inputs(){return[]},get numberOfInputs(){return l.numberOfInputs},get numberOfOutputs(){return c.numberOfOutputs},get offset(){return c.gain},get onended(){return l.onended},set onended(g){l.onended=g},addEventListener:(...g)=>l.addEventListener(g[0],g[1],g[2]),dispatchEvent:(...g)=>l.dispatchEvent(g[0]),removeEventListener:(...g)=>l.removeEventListener(g[0],g[1],g[2]),start(g=0){l.start.call(l,g)},stop(g=0){l.stop.call(l,g)}};return t(o,l),i($u(d,c),()=>l.connect(c),()=>l.disconnect(c))})(Ib,Gu,$o,Xs),Uu=((t,n,e,i,o)=>(r,a)=>{if(void 0===r.createConstantSource)return e(r,a);const s=r.createConstantSource();return Vi(s,a),vi(s,a,"offset"),n(i,()=>i(r))||C1(s),n(o,()=>o(r))||x1(s),t(r,s),s})(Ib,dr,Cae,S1,D1),xae=((t,n,e,i,o)=>()=>{const r=new WeakMap;let a=null,s=null;const l=function(){var c=(0,y.Z)(function*(u,d){let h=e(u);const p=bo(h,d);return p||(h=n(d,{channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,offset:h.offset.value}),null!==a&&h.start(a),null!==s&&h.stop(s)),r.set(d,h),p?yield t(d,u.offset,h.offset):yield i(d,u.offset,h.offset),yield o(u,d,h),h});return function(d,h){return c.apply(this,arguments)}}();return{set start(c){a=c},set stop(c){s=c},render(c,u){const d=r.get(u);return void 0!==d?Promise.resolve(d):l(c,u)}}})(Ta,Uu,ri,Ma,oo),Sae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...Tie,...c},h=i(u,d),p=r(u),g=p?e():null;super(l,!1,h,g),this._constantSourceNodeRenderer=g,this._nativeConstantSourceNode=h,this._offset=n(this,p,h.offset,Io,zo),this._onended=null}get offset(){return this._offset}get onended(){return this._onended}set onended(l){const c="function"==typeof l?a(this,l):null;this._nativeConstantSourceNode.onended=c;const u=this._nativeConstantSourceNode.onended;this._onended=null!==u&&u===c?l:u}start(l=0){if(this._nativeConstantSourceNode.start(l),null!==this._constantSourceNodeRenderer&&(this._constantSourceNodeRenderer.start=l),"closed"!==this.context.state){Yu(this);const c=()=>{this._nativeConstantSourceNode.removeEventListener("ended",c),ss(this)&&Cf(this)};this._nativeConstantSourceNode.addEventListener("ended",c)}}stop(l=0){this._nativeConstantSourceNode.stop(l),null!==this._constantSourceNodeRenderer&&(this._constantSourceNodeRenderer.stop=l)}})(Ii,Jr,xae,Uu,ti,Yn,Vu),EF=((t,n)=>(e,i)=>{const o=e.createConvolver();if(Vi(o,i),i.disableNormalization===o.normalize&&(o.normalize=!i.disableNormalization),di(o,i,"buffer"),i.channelCount>2||(n(o,"channelCount",r=>()=>r.call(o),r=>a=>{if(a>2)throw t();return r.call(o,a)}),"max"===i.channelCountMode))throw t();return n(o,"channelCountMode",r=>()=>r.call(o),r=>a=>{if("max"===a)throw t();return r.call(o,a)}),o})(yo,Mf),Dae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{buffer:l.buffer,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,disableNormalization:!l.normalize})),i.set(s,l),zu(l)?yield e(a,s,l.inputs[0]):yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(EF,ri,oo),Eae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=i(s),u={...Iie,...l},d=e(c,u);super(s,!1,d,o(c)?n():null),this._isBufferNullified=!1,this._nativeConvolverNode=d,null!==u.buffer&&r(this,u.buffer.duration)}get buffer(){return this._isBufferNullified?null:this._nativeConvolverNode.buffer}set buffer(s){if(this._nativeConvolverNode.buffer=s,null===s&&null!==this._nativeConvolverNode.buffer){const l=this._nativeConvolverNode.context;this._nativeConvolverNode.buffer=l.createBuffer(1,1,l.sampleRate),this._isBufferNullified=!0,r(this,0)}else this._isBufferNullified=!1,r(this,null===this._nativeConvolverNode.buffer?0:this._nativeConvolverNode.buffer.duration)}get normalize(){return this._nativeConvolverNode.normalize}set normalize(s){this._nativeConvolverNode.normalize=s}})(Ii,Dae,EF,ti,Yn,ql),Tae=((t,n,e,i,o)=>r=>{const a=new WeakMap,s=function(){var l=(0,y.Z)(function*(c,u){let d=e(c);const h=bo(d,u);return h||(d=n(u,{channelCount:d.channelCount,channelCountMode:d.channelCountMode,channelInterpretation:d.channelInterpretation,delayTime:d.delayTime.value,maxDelayTime:r})),a.set(u,d),h?yield t(u,c.delayTime,d.delayTime):yield i(u,c.delayTime,d.delayTime),yield o(c,u,d),d});return function(u,d){return l.apply(this,arguments)}}();return{render(l,c){const u=a.get(c);return void 0!==u?Promise.resolve(u):s(l,c)}}})(Ta,uF,ri,Ma,oo),Mae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...jie,...c},h=i(u,d),p=r(u);super(l,!1,h,p?e(d.maxDelayTime):null),this._delayTime=n(this,p,h.delayTime),a(this,d.maxDelayTime)}get delayTime(){return this._delayTime}})(Ii,Jr,Tae,uF,ti,Yn,ql),TF=(t=>(n,e)=>{const i=n.createDynamicsCompressor();if(Vi(i,e),e.channelCount>2||"max"===e.channelCountMode)throw t();return vi(i,e,"attack"),vi(i,e,"knee"),vi(i,e,"ratio"),vi(i,e,"release"),vi(i,e,"threshold"),i})(yo),Aae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{attack:u.attack.value,channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,knee:u.knee.value,ratio:u.ratio.value,release:u.release.value,threshold:u.threshold.value})),r.set(c,u),d?(yield t(c,l.attack,u.attack),yield t(c,l.knee,u.knee),yield t(c,l.ratio,u.ratio),yield t(c,l.release,u.release),yield t(c,l.threshold,u.threshold)):(yield i(c,l.attack,u.attack),yield i(c,l.knee,u.knee),yield i(c,l.ratio,u.ratio),yield i(c,l.release,u.release),yield i(c,l.threshold,u.threshold)),yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ta,TF,ri,Ma,oo),kae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h={...Gie,...u},p=i(d,h),g=a(d);super(c,!1,p,g?e():null),this._attack=n(this,g,p.attack),this._knee=n(this,g,p.knee),this._nativeDynamicsCompressorNode=p,this._ratio=n(this,g,p.ratio),this._release=n(this,g,p.release),this._threshold=n(this,g,p.threshold),s(this,.006)}get attack(){return this._attack}get channelCount(){return this._nativeDynamicsCompressorNode.channelCount}set channelCount(c){const u=this._nativeDynamicsCompressorNode.channelCount;if(this._nativeDynamicsCompressorNode.channelCount=c,c>2)throw this._nativeDynamicsCompressorNode.channelCount=u,o()}get channelCountMode(){return this._nativeDynamicsCompressorNode.channelCountMode}set channelCountMode(c){const u=this._nativeDynamicsCompressorNode.channelCountMode;if(this._nativeDynamicsCompressorNode.channelCountMode=c,"max"===c)throw this._nativeDynamicsCompressorNode.channelCountMode=u,o()}get knee(){return this._knee}get ratio(){return this._ratio}get reduction(){return"number"==typeof this._nativeDynamicsCompressorNode.reduction.value?this._nativeDynamicsCompressorNode.reduction.value:this._nativeDynamicsCompressorNode.reduction}get release(){return this._release}get threshold(){return this._threshold}})(Ii,Jr,Aae,TF,yo,ti,Yn,ql),Iae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,gain:u.gain.value})),r.set(c,u),d?yield t(c,l.gain,u.gain):yield i(c,l.gain,u.gain),yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ta,$o,ri,Ma,oo),Oae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=o(s),u={...eoe,...l},d=i(c,u),h=r(c);super(s,!1,d,h?e():null),this._gain=n(this,h,d.gain,Io,zo)}get gain(){return this._gain}})(Ii,Jr,Iae,$o,ti,Yn),Rae=((t,n,e,i)=>(o,r,{channelCount:a,channelCountMode:s,channelInterpretation:l,feedback:c,feedforward:u})=>{const d=lF(r,o.sampleRate),h=c instanceof Float64Array?c:new Float64Array(c),p=u instanceof Float64Array?u:new Float64Array(u),g=h.length,b=p.length,T=Math.min(g,b);if(0===g||g>20)throw i();if(0===h[0])throw n();if(0===b||b>20)throw i();if(0===p[0])throw n();if(1!==h[0]){for(let be=0;be{const Be=be.inputBuffer,Fe=be.outputBuffer,Qe=Be.numberOfChannels;for(let Re=0;ReD.addEventListener(be[0],be[1],be[2]),dispatchEvent:(...be)=>D.dispatchEvent(be[0]),getFrequencyResponse(be,Be,Fe){if(be.length!==Be.length||Be.length!==Fe.length)throw t();const Qe=be.length;for(let Re=0;ReD.removeEventListener(be[0],be[1],be[2])},D)})(kb,Li,Tf,yo),Ob=((t,n,e,i)=>o=>t(Kl,()=>Kl(o))?Promise.resolve(t(i,i)).then(r=>{if(!r){const a=e(o,512,0,1);o.oncomplete=()=>{a.onaudioprocess=null,a.disconnect()},a.onaudioprocess=()=>o.currentTime,a.connect(o.destination)}return o.startRendering()}):new Promise(r=>{const a=n(o,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});o.oncomplete=s=>{a.disconnect(),r(s.renderedBuffer)},a.connect(o.destination),o.startRendering()}))(dr,$o,Tf,((t,n)=>()=>{if(null===n)return Promise.resolve(!1);const e=new n(1,1,44100),i=t(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(o=>{e.oncomplete=()=>{i.disconnect(),o(0!==e.currentTime)},e.startRendering()})})($o,Ji)),Pae=((t,n,e,i,o)=>(r,a)=>{const s=new WeakMap;let l=null;const c=function(){var u=(0,y.Z)(function*(d,h){let p=null,g=n(d);const b=bo(g,h);if(void 0===h.createIIRFilter?p=t(h,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}):b||(g=h.createIIRFilter(a,r)),s.set(h,null===p?g:p),null!==p){if(null===l){if(null===e)throw new Error("Missing the native OfflineAudioContext constructor.");const D=new e(d.context.destination.channelCount,d.context.length,h.sampleRate);l=(0,y.Z)(function*(){return yield i(d,D,D.destination),((t,n,e,i)=>{const o=e instanceof Float64Array?e:new Float64Array(e),r=i instanceof Float64Array?i:new Float64Array(i),a=o.length,s=r.length,l=Math.min(a,s);if(1!==o[0]){for(let g=0;g(n,e,i)=>{if(void 0===n.createIIRFilter)return t(n,e,i);const o=n.createIIRFilter(i.feedforward,i.feedback);return Vi(o,i),o})(Rae),Fae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=i(s),u=o(c),d={...hoe,...l},h=n(c,u?null:s.baseLatency,d);super(s,!1,h,u?e(d.feedback,d.feedforward):null),(t=>{var n;t.getFrequencyResponse=(n=t.getFrequencyResponse,(e,i,o)=>{if(e.length!==i.length||i.length!==o.length)throw kb();return n.call(t,e,i,o)})})(h),this._nativeIIRFilterNode=h,r(this,1)}getFrequencyResponse(s,l,c){return this._nativeIIRFilterNode.getFrequencyResponse(s,l,c)}})(Ii,Nae,Pae,ti,Yn,ql),Lae=((t,n,e,i,o,r,a,s)=>(l,c)=>{const u=c.listener,{forwardX:h,forwardY:p,forwardZ:g,positionX:b,positionY:T,positionZ:D,upX:H,upY:oe,upZ:le}=void 0===u.forwardX?(()=>{const G=new Float32Array(1),pe=n(c,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),_e=a(c);let be=!1,Be=[0,0,-1,0,1,0],Fe=[0,0,0];const Qe=()=>{if(be)return;be=!0;const ut=i(c,256,9,0);ut.onaudioprocess=({inputBuffer:Se})=>{const Ye=[r(Se,G,0),r(Se,G,1),r(Se,G,2),r(Se,G,3),r(Se,G,4),r(Se,G,5)];Ye.some((it,St)=>it!==Be[St])&&(u.setOrientation(...Ye),Be=Ye);const We=[r(Se,G,6),r(Se,G,7),r(Se,G,8)];We.some((it,St)=>it!==Fe[St])&&(u.setPosition(...We),Fe=We)},pe.connect(ut)},Re=ut=>Se=>{Se!==Be[ut]&&(Be[ut]=Se,u.setOrientation(...Be))},Xe=ut=>Se=>{Se!==Fe[ut]&&(Fe[ut]=Se,u.setPosition(...Fe))},ct=(ut,Se,Ye)=>{const We=e(c,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:Se});We.connect(pe,0,ut),We.start(),Object.defineProperty(We.offset,"defaultValue",{get:()=>Se});const it=t({context:l},_e,We.offset,Io,zo);return s(it,"value",St=>()=>St.call(it),St=>At=>{try{St.call(it,At)}catch(on){if(9!==on.code)throw on}Qe(),_e&&Ye(At)}),it.cancelAndHoldAtTime=(St=it.cancelAndHoldAtTime,_e?()=>{throw o()}:(...At)=>{const on=St.apply(it,At);return Qe(),on}),it.cancelScheduledValues=(St=>_e?()=>{throw o()}:(...At)=>{const on=St.apply(it,At);return Qe(),on})(it.cancelScheduledValues),it.exponentialRampToValueAtTime=(St=>_e?()=>{throw o()}:(...At)=>{const on=St.apply(it,At);return Qe(),on})(it.exponentialRampToValueAtTime),it.linearRampToValueAtTime=(St=>_e?()=>{throw o()}:(...At)=>{const on=St.apply(it,At);return Qe(),on})(it.linearRampToValueAtTime),it.setTargetAtTime=(St=>_e?()=>{throw o()}:(...At)=>{const on=St.apply(it,At);return Qe(),on})(it.setTargetAtTime),it.setValueAtTime=(St=>_e?()=>{throw o()}:(...At)=>{const on=St.apply(it,At);return Qe(),on})(it.setValueAtTime),it.setValueCurveAtTime=(St=>_e?()=>{throw o()}:(...At)=>{const on=St.apply(it,At);return Qe(),on})(it.setValueCurveAtTime),it;var St};return{forwardX:ct(0,0,Re(0)),forwardY:ct(1,0,Re(1)),forwardZ:ct(2,-1,Re(2)),positionX:ct(6,0,Xe(0)),positionY:ct(7,0,Xe(1)),positionZ:ct(8,0,Xe(2)),upX:ct(3,0,Re(3)),upY:ct(4,1,Re(4)),upZ:ct(5,0,Re(5))}})():u;return{get forwardX(){return h},get forwardY(){return p},get forwardZ(){return g},get positionX(){return b},get positionY(){return T},get positionZ(){return D},get upX(){return H},get upY(){return oe},get upZ(){return le}}})(Jr,Js,Uu,Tf,yo,fF,Yn,Mf),MF=new WeakMap,O1=((t,n,e,i,o,r)=>class extends e{constructor(s,l){super(s),this._nativeContext=s,yb.set(this,s),i(s)&&o.set(s,new Set),this._destination=new t(this,l),this._listener=n(this,s),this._onstatechange=null}get currentTime(){return this._nativeContext.currentTime}get destination(){return this._destination}get listener(){return this._listener}get onstatechange(){return this._onstatechange}set onstatechange(s){const l="function"==typeof s?r(this,s):null;this._nativeContext.onstatechange=l;const c=this._nativeContext.onstatechange;this._onstatechange=null!==c&&c===l?s:c}get sampleRate(){return this._nativeContext.sampleRate}get state(){return this._nativeContext.state}})(pae,Lae,wF,Yn,MF,Vu),AF=((t,n,e,i,o,r)=>(a,s)=>{const l=a.createOscillator();return Vi(l,s),vi(l,s,"detune"),vi(l,s,"frequency"),void 0!==s.periodicWave?l.setPeriodicWave(s.periodicWave):di(l,s,"type"),n(e,()=>e(a))||C1(l),n(i,()=>i(a))||r(l,a),n(o,()=>o(a))||x1(l),t(a,l),l})(Ib,dr,S1,mF,D1,bF),jae=((t,n,e,i,o)=>()=>{const r=new WeakMap;let a=null,s=null,l=null;const c=function(){var u=(0,y.Z)(function*(d,h){let p=e(d);const g=bo(p,h);return g||(p=n(h,{channelCount:p.channelCount,channelCountMode:p.channelCountMode,channelInterpretation:p.channelInterpretation,detune:p.detune.value,frequency:p.frequency.value,periodicWave:null===a?void 0:a,type:p.type}),null!==s&&p.start(s),null!==l&&p.stop(l)),r.set(h,p),g?(yield t(h,d.detune,p.detune),yield t(h,d.frequency,p.frequency)):(yield i(h,d.detune,p.detune),yield i(h,d.frequency,p.frequency)),yield o(d,h,p),p});return function(h,p){return u.apply(this,arguments)}}();return{set periodicWave(u){a=u},set start(u){s=u},set stop(u){l=u},render(u,d){const h=r.get(d);return void 0!==h?Promise.resolve(h):c(u,d)}}})(Ta,AF,ri,Ma,oo),Bae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...Cre,...c},h=e(u,d),p=r(u),g=p?i():null,b=l.sampleRate/2;super(l,!1,h,g),this._detune=n(this,p,h.detune,153600,-153600),this._frequency=n(this,p,h.frequency,b,-b),this._nativeOscillatorNode=h,this._onended=null,this._oscillatorNodeRenderer=g,null!==this._oscillatorNodeRenderer&&void 0!==d.periodicWave&&(this._oscillatorNodeRenderer.periodicWave=d.periodicWave)}get detune(){return this._detune}get frequency(){return this._frequency}get onended(){return this._onended}set onended(l){const c="function"==typeof l?a(this,l):null;this._nativeOscillatorNode.onended=c;const u=this._nativeOscillatorNode.onended;this._onended=null!==u&&u===c?l:u}get type(){return this._nativeOscillatorNode.type}set type(l){this._nativeOscillatorNode.type=l,null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.periodicWave=null)}setPeriodicWave(l){this._nativeOscillatorNode.setPeriodicWave(l),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.periodicWave=l)}start(l=0){if(this._nativeOscillatorNode.start(l),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.start=l),"closed"!==this.context.state){Yu(this);const c=()=>{this._nativeOscillatorNode.removeEventListener("ended",c),ss(this)&&Cf(this)};this._nativeOscillatorNode.addEventListener("ended",c)}}stop(l=0){this._nativeOscillatorNode.stop(l),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.stop=l)}})(Ii,Jr,AF,jae,ti,Yn,Vu),kF=(t=>(n,e)=>{const i=t(n,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),o=n.createBuffer(1,2,44100);return i.buffer=o,i.loop=!0,i.connect(e),i.start(),()=>{i.stop(),i.disconnect(e)}})(Gu),Hae=((t,n,e,i,o)=>(r,{curve:a,oversample:s,...l})=>{const c=r.createWaveShaper(),u=r.createWaveShaper();Vi(c,l),Vi(u,l);const d=e(r,{...l,gain:1}),h=e(r,{...l,gain:-1}),p=e(r,{...l,gain:1}),g=e(r,{...l,gain:-1});let b=null,T=!1,D=null;const H={get bufferSize(){},get channelCount(){return c.channelCount},set channelCount(G){d.channelCount=G,h.channelCount=G,c.channelCount=G,p.channelCount=G,u.channelCount=G,g.channelCount=G},get channelCountMode(){return c.channelCountMode},set channelCountMode(G){d.channelCountMode=G,h.channelCountMode=G,c.channelCountMode=G,p.channelCountMode=G,u.channelCountMode=G,g.channelCountMode=G},get channelInterpretation(){return c.channelInterpretation},set channelInterpretation(G){d.channelInterpretation=G,h.channelInterpretation=G,c.channelInterpretation=G,p.channelInterpretation=G,u.channelInterpretation=G,g.channelInterpretation=G},get context(){return c.context},get curve(){return D},set curve(G){if(null!==G&&G.length<2)throw n();if(null===G)c.curve=G,u.curve=G;else{const pe=G.length,_e=new Float32Array(pe+2-pe%2),be=new Float32Array(pe+2-pe%2);_e[0]=G[0],be[0]=-G[pe-1];const Be=Math.ceil((pe+1)/2),Fe=(pe+1)/2-1;for(let Qe=1;Qed.addEventListener(G[0],G[1],G[2]),dispatchEvent:(...G)=>d.dispatchEvent(G[0]),removeEventListener:(...G)=>d.removeEventListener(G[0],G[1],G[2])};return null!==a&&(H.curve=a instanceof Float32Array?a:new Float32Array(a)),s!==H.oversample&&(H.oversample=s),o($u(H,p),()=>{d.connect(c).connect(p),d.connect(h).connect(u).connect(g).connect(p),T=!0,i(D)&&(b=t(r,d))},()=>{d.disconnect(c),c.disconnect(p),d.disconnect(h),h.disconnect(u),u.disconnect(g),g.disconnect(p),T=!1,null!==b&&(b(),b=null)})})(kF,Li,$o,pF,Xs),Rb=((t,n,e,i,o,r,a)=>(s,l)=>{const c=s.createWaveShaper();if(null!==r&&"webkitAudioContext"===r.name&&void 0===s.createGain().gain.automationRate)return e(s,l);Vi(c,l);const u=null===l.curve||l.curve instanceof Float32Array?l.curve:new Float32Array(l.curve);if(null!==u&&u.length<2)throw n();di(c,{curve:u},"curve"),di(c,l,"oversample");let d=null,h=!1;return a(c,"curve",b=>()=>b.call(c),b=>T=>(b.call(c,T),h&&(i(T)&&null===d?d=t(s,c):!i(T)&&null!==d&&(d(),d=null)),T)),o(c,()=>{h=!0,i(c.curve)&&(d=t(s,c))},()=>{h=!1,null!==d&&(d(),d=null)})})(kF,Li,Hae,pF,Xs,ls,Mf),Yae=((t,n,e,i,o,r,a,s,l,c)=>(u,{coneInnerAngle:d,coneOuterAngle:h,coneOuterGain:p,distanceModel:g,maxDistance:b,orientationX:T,orientationY:D,orientationZ:H,panningModel:oe,positionX:le,positionY:G,positionZ:pe,refDistance:_e,rolloffFactor:be,...Be})=>{const Fe=u.createPanner();if(Be.channelCount>2||"max"===Be.channelCountMode)throw a();Vi(Fe,Be);const Qe={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},Re=e(u,{...Qe,channelInterpretation:"speakers",numberOfInputs:6}),Xe=i(u,{...Be,gain:1}),ct=i(u,{...Qe,gain:1}),ut=i(u,{...Qe,gain:0}),Se=i(u,{...Qe,gain:0}),Ye=i(u,{...Qe,gain:0}),We=i(u,{...Qe,gain:0}),it=i(u,{...Qe,gain:0}),St=o(u,256,6,1),At=r(u,{...Qe,curve:new Float32Array([1,1]),oversample:"none"});let on=[T,D,H],Rn=[le,G,pe];const sn=new Float32Array(1);St.onaudioprocess=({inputBuffer:dt})=>{const Cn=[l(dt,sn,0),l(dt,sn,1),l(dt,sn,2)];Cn.some((Ar,Ks)=>Ar!==on[Ks])&&(Fe.setOrientation(...Cn),on=Cn);const ro=[l(dt,sn,3),l(dt,sn,4),l(dt,sn,5)];ro.some((Ar,Ks)=>Ar!==Rn[Ks])&&(Fe.setPosition(...ro),Rn=ro)},Object.defineProperty(ut.gain,"defaultValue",{get:()=>0}),Object.defineProperty(Se.gain,"defaultValue",{get:()=>0}),Object.defineProperty(Ye.gain,"defaultValue",{get:()=>0}),Object.defineProperty(We.gain,"defaultValue",{get:()=>0}),Object.defineProperty(it.gain,"defaultValue",{get:()=>0});const ln={get bufferSize(){},get channelCount(){return Fe.channelCount},set channelCount(dt){if(dt>2)throw a();Xe.channelCount=dt,Fe.channelCount=dt},get channelCountMode(){return Fe.channelCountMode},set channelCountMode(dt){if("max"===dt)throw a();Xe.channelCountMode=dt,Fe.channelCountMode=dt},get channelInterpretation(){return Fe.channelInterpretation},set channelInterpretation(dt){Xe.channelInterpretation=dt,Fe.channelInterpretation=dt},get coneInnerAngle(){return Fe.coneInnerAngle},set coneInnerAngle(dt){Fe.coneInnerAngle=dt},get coneOuterAngle(){return Fe.coneOuterAngle},set coneOuterAngle(dt){Fe.coneOuterAngle=dt},get coneOuterGain(){return Fe.coneOuterGain},set coneOuterGain(dt){if(dt<0||dt>1)throw n();Fe.coneOuterGain=dt},get context(){return Fe.context},get distanceModel(){return Fe.distanceModel},set distanceModel(dt){Fe.distanceModel=dt},get inputs(){return[Xe]},get maxDistance(){return Fe.maxDistance},set maxDistance(dt){if(dt<0)throw new RangeError;Fe.maxDistance=dt},get numberOfInputs(){return Fe.numberOfInputs},get numberOfOutputs(){return Fe.numberOfOutputs},get orientationX(){return ct.gain},get orientationY(){return ut.gain},get orientationZ(){return Se.gain},get panningModel(){return Fe.panningModel},set panningModel(dt){Fe.panningModel=dt},get positionX(){return Ye.gain},get positionY(){return We.gain},get positionZ(){return it.gain},get refDistance(){return Fe.refDistance},set refDistance(dt){if(dt<0)throw new RangeError;Fe.refDistance=dt},get rolloffFactor(){return Fe.rolloffFactor},set rolloffFactor(dt){if(dt<0)throw new RangeError;Fe.rolloffFactor=dt},addEventListener:(...dt)=>Xe.addEventListener(dt[0],dt[1],dt[2]),dispatchEvent:(...dt)=>Xe.dispatchEvent(dt[0]),removeEventListener:(...dt)=>Xe.removeEventListener(dt[0],dt[1],dt[2])};return d!==ln.coneInnerAngle&&(ln.coneInnerAngle=d),h!==ln.coneOuterAngle&&(ln.coneOuterAngle=h),p!==ln.coneOuterGain&&(ln.coneOuterGain=p),g!==ln.distanceModel&&(ln.distanceModel=g),b!==ln.maxDistance&&(ln.maxDistance=b),T!==ln.orientationX.value&&(ln.orientationX.value=T),D!==ln.orientationY.value&&(ln.orientationY.value=D),H!==ln.orientationZ.value&&(ln.orientationZ.value=H),oe!==ln.panningModel&&(ln.panningModel=oe),le!==ln.positionX.value&&(ln.positionX.value=le),G!==ln.positionY.value&&(ln.positionY.value=G),pe!==ln.positionZ.value&&(ln.positionZ.value=pe),_e!==ln.refDistance&&(ln.refDistance=_e),be!==ln.rolloffFactor&&(ln.rolloffFactor=be),(1!==on[0]||0!==on[1]||0!==on[2])&&Fe.setOrientation(...on),(0!==Rn[0]||0!==Rn[1]||0!==Rn[2])&&Fe.setPosition(...Rn),c($u(ln,Fe),()=>{Xe.connect(Fe),t(Xe,At,0,0),At.connect(ct).connect(Re,0,0),At.connect(ut).connect(Re,0,1),At.connect(Se).connect(Re,0,2),At.connect(Ye).connect(Re,0,3),At.connect(We).connect(Re,0,4),At.connect(it).connect(Re,0,5),Re.connect(St).connect(u.destination)},()=>{Xe.disconnect(Fe),s(Xe,At,0,0),At.disconnect(ct),ct.disconnect(Re),At.disconnect(ut),ut.disconnect(Re),At.disconnect(Se),Se.disconnect(Re),At.disconnect(Ye),Ye.disconnect(Re),At.disconnect(We),We.disconnect(Re),At.disconnect(it),it.disconnect(Re),Re.disconnect(St),St.disconnect(u.destination)})})(xb,Li,Js,$o,Tf,Rb,yo,Sb,fF,Xs),IF=(t=>(n,e)=>{const i=n.createPanner();return void 0===i.orientationX?t(n,e):(Vi(i,e),vi(i,e,"orientationX"),vi(i,e,"orientationY"),vi(i,e,"orientationZ"),vi(i,e,"positionX"),vi(i,e,"positionY"),vi(i,e,"positionZ"),di(i,e,"coneInnerAngle"),di(i,e,"coneOuterAngle"),di(i,e,"coneOuterGain"),di(i,e,"distanceModel"),di(i,e,"maxDistance"),di(i,e,"panningModel"),di(i,e,"refDistance"),di(i,e,"rolloffFactor"),i)})(Yae),zae=((t,n,e,i,o,r,a,s,l,c)=>()=>{const u=new WeakMap;let d=null;const h=function(){var p=(0,y.Z)(function*(g,b){let T=null,D=r(g);const H={channelCount:D.channelCount,channelCountMode:D.channelCountMode,channelInterpretation:D.channelInterpretation},oe={...H,coneInnerAngle:D.coneInnerAngle,coneOuterAngle:D.coneOuterAngle,coneOuterGain:D.coneOuterGain,distanceModel:D.distanceModel,maxDistance:D.maxDistance,panningModel:D.panningModel,refDistance:D.refDistance,rolloffFactor:D.rolloffFactor},le=bo(D,b);if("bufferSize"in D)T=i(b,{...H,gain:1});else if(!le){const G={...oe,orientationX:D.orientationX.value,orientationY:D.orientationY.value,orientationZ:D.orientationZ.value,positionX:D.positionX.value,positionY:D.positionY.value,positionZ:D.positionZ.value};D=o(b,G)}if(u.set(b,null===T?D:T),null!==T){if(null===d){if(null===a)throw new Error("Missing the native OfflineAudioContext constructor.");const Re=new a(6,g.context.length,b.sampleRate),Xe=n(Re,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6});Xe.connect(Re.destination),d=(0,y.Z)(function*(){const ct=yield Promise.all([g.orientationX,g.orientationY,g.orientationZ,g.positionX,g.positionY,g.positionZ].map(function(){var ut=(0,y.Z)(function*(Se,Ye){const We=e(Re,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:0===Ye?1:0});return yield s(Re,Se,We.offset),We});return function(Se,Ye){return ut.apply(this,arguments)}}()));for(let ut=0;ut<6;ut+=1)ct[ut].connect(Xe,0,ut),ct[ut].start(0);return c(Re)})()}const G=yield d,pe=i(b,{...H,gain:1});yield l(g,b,pe);const _e=[];for(let Re=0;Reut!==be[Se])||ct.some((ut,Se)=>ut!==Be[Se])){be=Xe,Be=ct;const ut=Re/b.sampleRate;Fe.gain.setValueAtTime(0,ut),Fe=i(b,{...H,gain:0}),Qe=o(b,{...oe,orientationX:be[0],orientationY:be[1],orientationZ:be[2],positionX:Be[0],positionY:Be[1],positionZ:Be[2]}),Fe.gain.setValueAtTime(1,ut),pe.connect(Fe).connect(Qe.inputs[0]),Qe.connect(T)}}return T}return le?(yield t(b,g.orientationX,D.orientationX),yield t(b,g.orientationY,D.orientationY),yield t(b,g.orientationZ,D.orientationZ),yield t(b,g.positionX,D.positionX),yield t(b,g.positionY,D.positionY),yield t(b,g.positionZ,D.positionZ)):(yield s(b,g.orientationX,D.orientationX),yield s(b,g.orientationY,D.orientationY),yield s(b,g.orientationZ,D.orientationZ),yield s(b,g.positionX,D.positionX),yield s(b,g.positionY,D.positionY),yield s(b,g.positionZ,D.positionZ)),zu(D)?yield l(g,b,D.inputs[0]):yield l(g,b,D),D});return function(b,T){return p.apply(this,arguments)}}();return{render(p,g){const b=u.get(g);return void 0!==b?Promise.resolve(b):h(p,g)}}})(Ta,Js,Uu,$o,IF,ri,Ji,Ma,oo,Ob),$ae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...Dre,...c},h=e(u,d),p=r(u);super(l,!1,h,p?i():null),this._nativePannerNode=h,this._orientationX=n(this,p,h.orientationX,Io,zo),this._orientationY=n(this,p,h.orientationY,Io,zo),this._orientationZ=n(this,p,h.orientationZ,Io,zo),this._positionX=n(this,p,h.positionX,Io,zo),this._positionY=n(this,p,h.positionY,Io,zo),this._positionZ=n(this,p,h.positionZ,Io,zo),a(this,1)}get coneInnerAngle(){return this._nativePannerNode.coneInnerAngle}set coneInnerAngle(l){this._nativePannerNode.coneInnerAngle=l}get coneOuterAngle(){return this._nativePannerNode.coneOuterAngle}set coneOuterAngle(l){this._nativePannerNode.coneOuterAngle=l}get coneOuterGain(){return this._nativePannerNode.coneOuterGain}set coneOuterGain(l){this._nativePannerNode.coneOuterGain=l}get distanceModel(){return this._nativePannerNode.distanceModel}set distanceModel(l){this._nativePannerNode.distanceModel=l}get maxDistance(){return this._nativePannerNode.maxDistance}set maxDistance(l){this._nativePannerNode.maxDistance=l}get orientationX(){return this._orientationX}get orientationY(){return this._orientationY}get orientationZ(){return this._orientationZ}get panningModel(){return this._nativePannerNode.panningModel}set panningModel(l){this._nativePannerNode.panningModel=l}get positionX(){return this._positionX}get positionY(){return this._positionY}get positionZ(){return this._positionZ}get refDistance(){return this._nativePannerNode.refDistance}set refDistance(l){this._nativePannerNode.refDistance=l}get rolloffFactor(){return this._nativePannerNode.rolloffFactor}set rolloffFactor(l){this._nativePannerNode.rolloffFactor=l}})(Ii,Jr,IF,zae,ti,Yn,ql),Vae=(t=>(n,{disableNormalization:e,imag:i,real:o})=>{const r=i instanceof Float32Array?i:new Float32Array(i),a=o instanceof Float32Array?o:new Float32Array(o),s=n.createPeriodicWave(a,r,{disableNormalization:e});if(Array.from(i).length<2)throw t();return s})(Ea),Zae=((t,n,e,i)=>class Kj{constructor(r,a){const s=n(r),l=(t=>{const{imag:n,real:e}=t;return void 0===n?void 0===e?{...t,imag:[0,0],real:[0,0]}:{...t,imag:Array.from(e,()=>0),real:e}:void 0===e?{...t,imag:n,real:Array.from(n,()=>0)}:{...t,imag:n,real:e}})({...Mre,...a}),c=t(s,l);return e.add(c),c}static[Symbol.hasInstance](r){return null!==r&&"object"==typeof r&&Object.getPrototypeOf(r)===Kj.prototype||e.has(r)}})(Vae,ti,new WeakSet),Gae=((t,n,e,i,o,r)=>{const s=new Float32Array([1,1]),l=Math.PI/2,c={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},u={...c,oversample:"none"},p=(g,b,T,D,H)=>{if(1===b)return((g,b,T,D)=>{const H=new Float32Array(16385),oe=new Float32Array(16385);for(let Be=0;Be<16385;Be+=1){const Fe=Be/16384*l;H[Be]=Math.cos(Fe),oe[Be]=Math.sin(Fe)}const le=e(g,{...c,gain:0}),G=i(g,{...u,curve:H}),pe=i(g,{...u,curve:s}),_e=e(g,{...c,gain:0}),be=i(g,{...u,curve:oe});return{connectGraph(){b.connect(le),b.connect(void 0===pe.inputs?pe:pe.inputs[0]),b.connect(_e),pe.connect(T),T.connect(void 0===G.inputs?G:G.inputs[0]),T.connect(void 0===be.inputs?be:be.inputs[0]),G.connect(le.gain),be.connect(_e.gain),le.connect(D,0,0),_e.connect(D,0,1)},disconnectGraph(){b.disconnect(le),b.disconnect(void 0===pe.inputs?pe:pe.inputs[0]),b.disconnect(_e),pe.disconnect(T),T.disconnect(void 0===G.inputs?G:G.inputs[0]),T.disconnect(void 0===be.inputs?be:be.inputs[0]),G.disconnect(le.gain),be.disconnect(_e.gain),le.disconnect(D,0,0),_e.disconnect(D,0,1)}}})(g,T,D,H);if(2===b)return((g,b,T,D)=>{const H=new Float32Array(16385),oe=new Float32Array(16385),le=new Float32Array(16385),G=new Float32Array(16385),pe=Math.floor(8192.5);for(let Ye=0;Ye<16385;Ye+=1)if(Ye>pe){const We=(Ye-pe)/(16384-pe)*l;H[Ye]=Math.cos(We),oe[Ye]=Math.sin(We),le[Ye]=0,G[Ye]=1}else{const We=Ye/(16384-pe)*l;H[Ye]=1,oe[Ye]=0,le[Ye]=Math.cos(We),G[Ye]=Math.sin(We)}const _e=n(g,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),be=e(g,{...c,gain:0}),Be=i(g,{...u,curve:H}),Fe=e(g,{...c,gain:0}),Qe=i(g,{...u,curve:oe}),Re=i(g,{...u,curve:s}),Xe=e(g,{...c,gain:0}),ct=i(g,{...u,curve:le}),ut=e(g,{...c,gain:0}),Se=i(g,{...u,curve:G});return{connectGraph(){b.connect(_e),b.connect(void 0===Re.inputs?Re:Re.inputs[0]),_e.connect(be,0),_e.connect(Fe,0),_e.connect(Xe,1),_e.connect(ut,1),Re.connect(T),T.connect(void 0===Be.inputs?Be:Be.inputs[0]),T.connect(void 0===Qe.inputs?Qe:Qe.inputs[0]),T.connect(void 0===ct.inputs?ct:ct.inputs[0]),T.connect(void 0===Se.inputs?Se:Se.inputs[0]),Be.connect(be.gain),Qe.connect(Fe.gain),ct.connect(Xe.gain),Se.connect(ut.gain),be.connect(D,0,0),Xe.connect(D,0,0),Fe.connect(D,0,1),ut.connect(D,0,1)},disconnectGraph(){b.disconnect(_e),b.disconnect(void 0===Re.inputs?Re:Re.inputs[0]),_e.disconnect(be,0),_e.disconnect(Fe,0),_e.disconnect(Xe,1),_e.disconnect(ut,1),Re.disconnect(T),T.disconnect(void 0===Be.inputs?Be:Be.inputs[0]),T.disconnect(void 0===Qe.inputs?Qe:Qe.inputs[0]),T.disconnect(void 0===ct.inputs?ct:ct.inputs[0]),T.disconnect(void 0===Se.inputs?Se:Se.inputs[0]),Be.disconnect(be.gain),Qe.disconnect(Fe.gain),ct.disconnect(Xe.gain),Se.disconnect(ut.gain),be.disconnect(D,0,0),Xe.disconnect(D,0,0),Fe.disconnect(D,0,1),ut.disconnect(D,0,1)}}})(g,T,D,H);throw o()};return(g,{channelCount:b,channelCountMode:T,pan:D,...H})=>{if("max"===T)throw o();const oe=t(g,{...H,channelCount:1,channelCountMode:T,numberOfInputs:2}),le=e(g,{...H,channelCount:b,channelCountMode:T,gain:1}),G=e(g,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:D});let{connectGraph:pe,disconnectGraph:_e}=p(g,b,le,G,oe);Object.defineProperty(G.gain,"defaultValue",{get:()=>0}),Object.defineProperty(G.gain,"maxValue",{get:()=>1}),Object.defineProperty(G.gain,"minValue",{get:()=>-1});const be={get bufferSize(){},get channelCount(){return le.channelCount},set channelCount(Re){le.channelCount!==Re&&(Be&&_e(),({connectGraph:pe,disconnectGraph:_e}=p(g,Re,le,G,oe)),Be&&pe()),le.channelCount=Re},get channelCountMode(){return le.channelCountMode},set channelCountMode(Re){if("clamped-max"===Re||"max"===Re)throw o();le.channelCountMode=Re},get channelInterpretation(){return le.channelInterpretation},set channelInterpretation(Re){le.channelInterpretation=Re},get context(){return le.context},get inputs(){return[le]},get numberOfInputs(){return le.numberOfInputs},get numberOfOutputs(){return le.numberOfOutputs},get pan(){return G.gain},addEventListener:(...Re)=>le.addEventListener(Re[0],Re[1],Re[2]),dispatchEvent:(...Re)=>le.dispatchEvent(Re[0]),removeEventListener:(...Re)=>le.removeEventListener(Re[0],Re[1],Re[2])};let Be=!1;return r($u(be,oe),()=>{pe(),Be=!0},()=>{_e(),Be=!1})}})(Js,Ef,$o,Rb,yo,Xs),OF=((t,n)=>(e,i)=>{const o=i.channelCountMode;if("clamped-max"===o)throw n();if(void 0===e.createStereoPanner)return t(e,i);const r=e.createStereoPanner();return Vi(r,i),vi(r,i,"pan"),Object.defineProperty(r,"channelCountMode",{get:()=>o,set:a=>{if(a!==o)throw n()}}),r})(Gae,yo),Uae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,pan:u.pan.value})),r.set(c,u),d?yield t(c,l.pan,u.pan):yield i(c,l.pan,u.pan),zu(u)?yield o(l,c,u.inputs[0]):yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ta,OF,ri,Ma,oo),Wae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=o(s),u={...Lre,...l},d=e(c,u),h=r(c);super(s,!1,d,h?i():null),this._pan=n(this,h,d.pan)}get pan(){return this._pan}})(Ii,Jr,OF,Uae,ti,Yn),Xae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,curve:l.curve,oversample:l.oversample})),i.set(s,l),zu(l)?yield e(a,s,l.inputs[0]):yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(Rb,ri,oo),Jae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...$re,...c},h=e(u,d);super(l,!0,h,r(u)?i():null),this._isCurveNullified=!1,this._nativeWaveShaperNode=h,a(this,1)}get curve(){return this._isCurveNullified?null:this._nativeWaveShaperNode.curve}set curve(l){if(null===l)this._isCurveNullified=!0,this._nativeWaveShaperNode.curve=new Float32Array([0,0]);else{if(l.length<2)throw n();this._isCurveNullified=!1,this._nativeWaveShaperNode.curve=l}}get oversample(){return this._nativeWaveShaperNode.oversample}set oversample(l){this._nativeWaveShaperNode.oversample=l}})(Ii,Li,Rb,Xae,ti,Yn,ql),RF=(t=>null!==t&&t.isSecureContext)(Xr),R1=(t=>(n,e,i)=>{Object.defineProperties(t,{currentFrame:{configurable:!0,get:()=>Math.round(n*e)},currentTime:{configurable:!0,get:()=>n}});try{return i()}finally{null!==t&&(delete t.currentFrame,delete t.currentTime)}})(Xr),PF=new WeakMap,Qae=((t,n)=>e=>{let i=t.get(e);if(void 0!==i)return i;if(null===n)throw new Error("Missing the native OfflineAudioContext constructor.");return i=new n(1,1,44100),t.set(e,i),i})(PF,Ji),Kae=RF?((t,n,e,i,o,r,a,s,l,c,u,d,h)=>{let p=0;return(g,b,T={credentials:"omit"})=>{const D=u.get(g);if(void 0!==D&&D.has(b))return Promise.resolve();const H=c.get(g);if(void 0!==H){const G=H.get(b);if(void 0!==G)return G}const oe=r(g),le=void 0===oe.audioWorklet?o(b).then(([G,pe])=>{const[_e,be]=ZN(G,pe);return e(`${_e};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${be}\n})})(window,'_AWGS')`)}).then(()=>{const G=h._AWGS.pop();if(void 0===G)throw new SyntaxError;i(oe.currentTime,oe.sampleRate,()=>G(class{},void 0,(pe,_e)=>{if(""===pe.trim())throw n();const be=p1.get(oe);if(void 0!==be){if(be.has(pe))throw n();UN(_e),GN(_e.parameterDescriptors),be.set(pe,_e)}else UN(_e),GN(_e.parameterDescriptors),p1.set(oe,new Map([[pe,_e]]))},oe.sampleRate,void 0,void 0))}):Promise.all([o(b),Promise.resolve(t(d,d))]).then(([[G,pe],_e])=>{const be=p+1;p=be;const[Be,Fe]=ZN(G,pe),ut=new Blob([`${Be};((AudioWorkletProcessor,registerProcessor)=>{${Fe}\n})(${_e?"AudioWorkletProcessor":"class extends AudioWorkletProcessor {__b=new WeakSet();constructor(){super();(p=>p.postMessage=(q=>(m,t)=>q.call(p,m,t?t.filter(u=>!this.__b.has(u)):t))(p.postMessage))(this.port)}}"},(n,p)=>registerProcessor(n,class extends p{${_e?"":"__c = (a) => a.forEach(e=>this.__b.add(e.buffer));"}process(i,o,p){${_e?"":"i.forEach(this.__c);o.forEach(this.__c);this.__c(Object.values(p));"}return super.process(i.map(j=>j.some(k=>k.length===0)?[]:j),o,p)}}));registerProcessor('__sac${be}',class extends AudioWorkletProcessor{process(){return !1}})`],{type:"application/javascript; charset=utf-8"}),Se=URL.createObjectURL(ut);return oe.audioWorklet.addModule(Se,T).then(()=>{if(s(oe))return oe;const Ye=a(oe);return Ye.audioWorklet.addModule(Se,T).then(()=>Ye)}).then(Ye=>{if(null===l)throw new SyntaxError;try{new l(Ye,`__sac${be}`)}catch{throw new SyntaxError}}).finally(()=>URL.revokeObjectURL(Se))});return void 0===H?c.set(g,new Map([[b,le]])):H.set(b,le),le.then(()=>{const G=u.get(g);void 0===G?u.set(g,new Set([b])):G.add(b)}).finally(()=>{const G=c.get(g);void 0!==G&&G.delete(b)}),le}})(dr,yo,(t=>n=>new Promise((e,i)=>{if(null===t)return void i(new SyntaxError);const o=t.document.head;if(null===o)i(new SyntaxError);else{const r=t.document.createElement("script"),a=new Blob([n],{type:"application/javascript"}),s=URL.createObjectURL(a),l=t.onerror,c=()=>{t.onerror=l,URL.revokeObjectURL(s)};t.onerror=(u,d,h,p,g)=>d===s||d===t.location.href&&1===h&&1===p?(c(),i(g),!1):null!==l?l(u,d,h,p,g):void 0,r.onerror=()=>{c(),i(new SyntaxError)},r.onload=()=>{c(),e()},r.src=s,r.type="module",o.appendChild(r)}}))(Xr),R1,function(){var n=(0,y.Z)(function*(e){try{const i=yield fetch(e);if(i.ok)return[yield i.text(),i.url]}catch{}throw new DOMException("","AbortError")});return function(e){return n.apply(this,arguments)}}(),ti,Qae,Yn,Zu,new WeakMap,new WeakMap,((t,n)=>(0,y.Z)(function*(){if(null===t)return!0;if(null===n)return!1;const e=new Blob(['class A extends AudioWorkletProcessor{process(i){this.port.postMessage(i,[i[0][0].buffer])}}registerProcessor("a",A)'],{type:"application/javascript; charset=utf-8"}),i=new n(1,128,44100),o=URL.createObjectURL(e);let r=!1,a=!1;try{yield i.audioWorklet.addModule(o);const s=new t(i,"a",{numberOfOutputs:0}),l=i.createOscillator();s.port.onmessage=()=>r=!0,s.onprocessorerror=()=>a=!0,l.connect(s),l.start(0),yield i.startRendering(),yield new Promise(c=>setTimeout(c))}catch{}finally{URL.revokeObjectURL(o)}return r&&!a}))(Zu,Ji),Xr):void 0,qae=((t,n)=>e=>t(e)||n(e))(T1,Yn),ese=((t,n,e,i,o,r,a,s,l,c,u)=>(d,h)=>{const p=a(d)?d:r(d);if(o.has(h)){const g=new DOMException("","DataCloneError");return Promise.reject(g)}try{o.add(h)}catch{}return n(l,()=>l(p))?p.decodeAudioData(h).then(g=>(rF(h).catch(()=>{}),n(s,()=>s(g))||u(g),t.add(g),g)):new Promise((g,b)=>{const T=function(){var H=(0,y.Z)(function*(){try{yield rF(h)}catch{}});return function(){return H.apply(this,arguments)}}(),D=H=>{b(H),T()};try{p.decodeAudioData(h,H=>{"function"!=typeof H.copyFromChannel&&(c(H),b1(H)),t.add(H),T().then(()=>g(H))},H=>{D(null===H?new DOMException("","EncodingError"):H)})}catch(H){D(H)}})})(A1,dr,0,0,new WeakSet,ti,qae,vb,Kl,k1,I1),NF=((t,n,e,i,o,r,a,s,l,c,u,d,h,p,g,b,T,D,H,oe)=>class extends g{constructor(G,pe){super(G,pe),this._nativeContext=G,this._audioWorklet=void 0===t?void 0:{addModule:(_e,be)=>t(this,_e,be)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new n(this)}createBiquadFilter(){return new o(this)}createBuffer(G,pe,_e){return new e({length:pe,numberOfChannels:G,sampleRate:_e})}createBufferSource(){return new i(this)}createChannelMerger(G=6){return new r(this,{numberOfInputs:G})}createChannelSplitter(G=6){return new a(this,{numberOfOutputs:G})}createConstantSource(){return new s(this)}createConvolver(){return new l(this)}createDelay(G=1){return new u(this,{maxDelayTime:G})}createDynamicsCompressor(){return new d(this)}createGain(){return new h(this)}createIIRFilter(G,pe){return new p(this,{feedback:pe,feedforward:G})}createOscillator(){return new b(this)}createPanner(){return new T(this)}createPeriodicWave(G,pe,_e={disableNormalization:!1}){return new D(this,{..._e,imag:pe,real:G})}createStereoPanner(){return new H(this)}createWaveShaper(){return new oe(this)}decodeAudioData(G,pe,_e){return c(this._nativeContext,G).then(be=>("function"==typeof pe&&pe(be),be),be=>{throw"function"==typeof _e&&_e(be),be})}})(Kae,uae,dae,fae,mae,_ae,wae,Sae,Eae,ese,Mae,kae,Oae,Fae,O1,Bae,$ae,Zae,Wae,Jae),tse=((t,n,e,i)=>class extends t{constructor(r,a){const s=e(r),l=((t,n)=>t.createMediaElementSource(n.mediaElement))(s,a);if(i(s))throw TypeError();super(r,!0,l,null),this._nativeMediaElementAudioSourceNode=l}get mediaElement(){return this._nativeMediaElementAudioSourceNode.mediaElement}})(Ii,0,ti,Yn),nse=((t,n,e,i)=>class extends t{constructor(r,a){const s=e(r);if(i(s))throw new TypeError;const c=((t,n)=>{const e=t.createMediaStreamDestination();return Vi(e,n),1===e.numberOfOutputs&&Object.defineProperty(e,"numberOfOutputs",{get:()=>0}),e})(s,{...Moe,...a});super(r,!1,c,null),this._nativeMediaStreamAudioDestinationNode=c}get stream(){return this._nativeMediaStreamAudioDestinationNode.stream}})(Ii,0,ti,Yn),ise=((t,n,e,i)=>class extends t{constructor(r,a){const s=e(r),l=((t,{mediaStream:n})=>{const e=n.getAudioTracks();e.sort((r,a)=>r.ida.id?1:0);const i=e.slice(0,1),o=t.createMediaStreamSource(new MediaStream(i));return Object.defineProperty(o,"mediaStream",{value:n}),o})(s,a);if(i(s))throw new TypeError;super(r,!0,l,null),this._nativeMediaStreamAudioSourceNode=l}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}})(Ii,0,ti,Yn),ose=((t,n)=>(e,{mediaStreamTrack:i})=>{if("function"==typeof e.createMediaStreamTrackSource)return e.createMediaStreamTrackSource(i);const o=new MediaStream([i]),r=e.createMediaStreamSource(o);if("audio"!==i.kind)throw t();if(n(e))throw new TypeError;return r})(Li,Yn),rse=((t,n,e)=>class extends t{constructor(o,r){const a=e(o);super(o,!0,n(a,r),null)}})(Ii,ose,ti),ase=((t,n,e,i,o,r,a,s,l)=>class extends t{constructor(u={}){if(null===l)throw new Error("Missing the native AudioContext constructor.");let d;try{d=new l(u)}catch(g){throw 12===g.code&&"sampleRate is not in range"===g.message?e():g}if(null===d)throw i();if(!(t=>void 0===t||"number"==typeof t||"string"==typeof t&&("balanced"===t||"interactive"===t||"playback"===t))(u.latencyHint))throw new TypeError(`The provided value '${u.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(void 0!==u.sampleRate&&d.sampleRate!==u.sampleRate)throw e();super(d,2);const{latencyHint:h}=u,{sampleRate:p}=d;if(this._baseLatency="number"==typeof d.baseLatency?d.baseLatency:"balanced"===h?512/p:"interactive"===h||void 0===h?256/p:"playback"===h?1024/p:128*Math.max(2,Math.min(128,Math.round(h*p/128)))/p,this._nativeAudioContext=d,"webkitAudioContext"===l.name?(this._nativeGainNode=d.createGain(),this._nativeOscillatorNode=d.createOscillator(),this._nativeGainNode.gain.value=1e-37,this._nativeOscillatorNode.connect(this._nativeGainNode).connect(d.destination),this._nativeOscillatorNode.start()):(this._nativeGainNode=null,this._nativeOscillatorNode=null),this._state=null,"running"===d.state){this._state="suspended";const g=()=>{"suspended"===this._state&&(this._state=null),d.removeEventListener("statechange",g)};d.addEventListener("statechange",g)}}get baseLatency(){return this._baseLatency}get state(){return null!==this._state?this._state:this._nativeAudioContext.state}close(){return"closed"===this.state?this._nativeAudioContext.close().then(()=>{throw n()}):("suspended"===this._state&&(this._state=null),this._nativeAudioContext.close().then(()=>{null!==this._nativeGainNode&&null!==this._nativeOscillatorNode&&(this._nativeOscillatorNode.stop(),this._nativeGainNode.disconnect(),this._nativeOscillatorNode.disconnect()),(t=>{y1(t.destination,[])})(this)}))}createMediaElementSource(u){return new o(this,{mediaElement:u})}createMediaStreamDestination(){return new r(this)}createMediaStreamSource(u){return new a(this,{mediaStream:u})}createMediaStreamTrackSource(u){return new s(this,{mediaStreamTrack:u})}resume(){return"suspended"===this._state?new Promise((u,d)=>{const h=()=>{this._nativeAudioContext.removeEventListener("statechange",h),"running"===this._nativeAudioContext.state?u():this.resume().then(u,d)};this._nativeAudioContext.addEventListener("statechange",h)}):this._nativeAudioContext.resume().catch(u=>{throw void 0===u||15===u.code?n():u})}suspend(){return this._nativeAudioContext.suspend().catch(u=>{throw void 0===u?n():u})}})(NF,Li,yo,hF,tse,nse,ise,rse,ls),P1=(t=>n=>{const e=t.get(n);if(void 0===e)throw new Error("The context has no set of AudioWorkletNodes.");return e})(MF),FF=((t=>{})(P1),(t=>(n,e,i=0,o=0)=>{const r=n[i];if(void 0===r)throw t();return Eb(e)?r.connect(e,0,o):r.connect(e,0)})(Ea)),lse=(t=>(n,e)=>{t(n).delete(e)})(P1),LF=(t=>(n,e=void 0,i=void 0,o=0)=>void 0===e?n.forEach(r=>r.disconnect()):"number"==typeof e?Ab(t,n,e).disconnect():Eb(e)?void 0===i?n.forEach(r=>r.disconnect(e)):void 0===o?Ab(t,n,i).disconnect(e,0):Ab(t,n,i).disconnect(e,0,o):void 0===i?n.forEach(r=>r.disconnect(e)):Ab(t,n,i).disconnect(e,0))(Ea),jF=new WeakMap,cse=((t,n)=>e=>n(t,e))(jF,Wr),use=((t,n,e,i,o,r,a,s,l,c,u,d,h)=>(p,g,b,T)=>{if(0===T.numberOfInputs&&0===T.numberOfOutputs)throw l();const D=Array.isArray(T.outputChannelCount)?T.outputChannelCount:Array.from(T.outputChannelCount);if(D.some(ft=>ft<1))throw l();if(D.length!==T.numberOfOutputs)throw n();if("explicit"!==T.channelCountMode)throw l();const H=T.channelCount*T.numberOfInputs,oe=D.reduce((ft,jt)=>ft+jt,0),le=void 0===b.parameterDescriptors?0:b.parameterDescriptors.length;if(H+le>6||oe>6)throw l();const G=new MessageChannel,pe=[],_e=[];for(let ft=0;ftvoid 0===ft?0:ft},maxValue:{get:()=>void 0===jt?Io:jt},minValue:{get:()=>void 0===ai?zo:ai}}),be.push(Sn)}const Be=i(p,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,H+le)}),Fe=lF(g,p.sampleRate),Qe=s(p,Fe,H+le,Math.max(1,oe)),Re=o(p,{channelCount:Math.max(1,oe),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,oe)}),Xe=[];for(let ft=0;ft{const ai=be[jt];return ai.connect(Be,0,H+jt),ai.start(0),[ft,ai.offset]}));Be.connect(Qe);let ut=T.channelInterpretation,Se=null;const Ye=0===T.numberOfOutputs?[Qe]:Xe,We={get bufferSize(){return Fe},get channelCount(){return T.channelCount},set channelCount(ft){throw e()},get channelCountMode(){return T.channelCountMode},set channelCountMode(ft){throw e()},get channelInterpretation(){return ut},set channelInterpretation(ft){for(const jt of pe)jt.channelInterpretation=ft;ut=ft},get context(){return Qe.context},get inputs(){return pe},get numberOfInputs(){return T.numberOfInputs},get numberOfOutputs(){return T.numberOfOutputs},get onprocessorerror(){return Se},set onprocessorerror(ft){"function"==typeof Se&&We.removeEventListener("processorerror",Se),Se="function"==typeof ft?ft:null,"function"==typeof Se&&We.addEventListener("processorerror",Se)},get parameters(){return ct},get port(){return G.port2},addEventListener:(...ft)=>Qe.addEventListener(ft[0],ft[1],ft[2]),connect:t.bind(null,Ye),disconnect:c.bind(null,Ye),dispatchEvent:(...ft)=>Qe.dispatchEvent(ft[0]),removeEventListener:(...ft)=>Qe.removeEventListener(ft[0],ft[1],ft[2])},it=new Map;var ft;G.port1.addEventListener=(ft=G.port1.addEventListener,(...jt)=>{if("message"===jt[0]){const ai="function"==typeof jt[1]?jt[1]:"object"==typeof jt[1]&&null!==jt[1]&&"function"==typeof jt[1].handleEvent?jt[1].handleEvent:null;if(null!==ai){const si=it.get(jt[1]);void 0!==si?jt[1]=si:(jt[1]=Sn=>{u(p.currentTime,p.sampleRate,()=>ai(Sn))},it.set(ai,jt[1]))}}return ft.call(G.port1,jt[0],jt[1],jt[2])}),G.port1.removeEventListener=(ft=>(...jt)=>{if("message"===jt[0]){const ai=it.get(jt[1]);void 0!==ai&&(it.delete(jt[1]),jt[1]=ai)}return ft.call(G.port1,jt[0],jt[1],jt[2])})(G.port1.removeEventListener);let St=null;Object.defineProperty(G.port1,"onmessage",{get:()=>St,set:ft=>{"function"==typeof St&&G.port1.removeEventListener("message",St),St="function"==typeof ft?ft:null,"function"==typeof St&&(G.port1.addEventListener("message",St),G.port1.start())}}),b.prototype.port=G.port1;let At=null;((t,n,e,i)=>{let o=g1.get(t);void 0===o&&(o=new WeakMap,g1.set(t,o));const r=Woe(e,i);return o.set(n,r),r})(p,We,b,T).then(ft=>At=ft);const Rn=Mb(T.numberOfInputs,T.channelCount),sn=Mb(T.numberOfOutputs,D),ln=void 0===b.parameterDescriptors?[]:b.parameterDescriptors.reduce((ft,{name:jt})=>({...ft,[jt]:new Float32Array(128)}),{});let Vo=!0;const Un=()=>{T.numberOfOutputs>0&&Qe.disconnect(Re);for(let ft=0,jt=0;ft{if(null!==At){const ai=d(We);for(let si=0;si{Tb(ft,ln,Sn,H+Wn,si)});for(let Sn=0;Sn{if(ai[Qr].size>0)return dt.set(Qr,Fe/128),Zo;const Xu=dt.get(Qr);return void 0===Xu?[]:(Zo.every(wx=>wx.every(ny=>0===ny))&&(1===Xu?dt.delete(Qr):dt.set(Qr,Xu-1)),Zo)});Vo=u(p.currentTime+si/p.sampleRate,p.sampleRate,()=>At.process(Sn,sn,ln));for(let Zo=0,Qr=0;ZoQe.connect(ro).connect(p.destination),Ks=()=>{Qe.disconnect(ro),ro.disconnect()};return Ar(),h(We,()=>{if(Vo){Ks(),T.numberOfOutputs>0&&Qe.connect(Re);for(let ft=0,jt=0;ft{Vo&&(Ar(),Un()),Cn=!1})})(FF,Ea,Li,Js,Ef,Uu,$o,Tf,yo,LF,R1,cse,Xs);let Pb=(()=>{class t{constructor(e,i){this.http=e,this.toastr=i,this.returnFileFromPath$=(o,r="blob")=>this.http.get(o,{responseType:r}).pipe(es(s=>(this.toastr.error(s.message,"Hum, le fichier ne peut pas \xEAtre t\xE9l\xE9charg\xE9. Pri\xE8re de r\xE9essayer plus tard.",{timeOut:1e4}),Et(s))),Bt(s=>s),_i(1))}loadAudioBufferFromFile$(e,i){var o=new ase({sampleRate:i});return bi(e.arrayBuffer().then(a=>o.decodeAudioData(a)))}readFile$(e){const i=new FileReader;return On.create(o=>{i.onerror=r=>o.error(r),i.onabort=r=>o.error(r),i.onload=()=>o.next(i.result),i.onloadend=()=>o.complete(),i.readAsText(e)})}readFileAsData$(e){const i=new FileReader;return On.create(o=>{i.onerror=r=>o.error(r),i.onabort=r=>o.error(r),i.onload=()=>o.next(i.result),i.onloadend=()=>o.complete(),i.readAsDataURL(e)})}static{this.\u0275fac=function(i){return new(i||t)(Me(su),Me(Sl))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const hr={production:!0,apiBaseURL:"https://readalong-studio.herokuapp.com/api/v1",packageJson:JSON.parse('{"name":"readalong-studio","homepage":"https://readalong-studio.mothertongues.org","contact":"mailto:readalong.studio@gmail.com","documentationURL":"https://readalongs.github.io/ICLDC-Docs","version":"0.0.0","type":"module","scripts":{"helpme":"echo This project is part of a monorepo managed using nx. Run the targets in project.json using npx nx target studio-web at the root of the monorepo.","ng":"ng","test:ng":"ng test","test:once":"ng test --watch=false --browsers ChromeHeadlessCI","e2e":"playwright test","nyc":"nyc --reporter=html --reporter=text-summary playwright test ","e2e-ui":"playwright test --ui"},"private":true,"singleFileBundleVersion":"1.5.2","singleFileBundleTimestamp":"2024-12-05+14-41-20"}')},gse={title:"Bienvenue au Studio ReadAlong",text:"Il est facile de cr\xE9er un ReadAlong! Vous trouverez tous les trucs et astuces pour utiliser le Studio dans cette visite guid\xE9e.",attachTo:{element:"#welcome-header",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"intro"},mse={title:"Ajouter vos donn\xE9es",text:"Pour cr\xE9er un ReadAlong, il faut ajouter du texte et de l'audio.",attachTo:{element:"#upload-header",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"data"},bse={title:"R\xE9diger votre texte",text:"Vous pouvez r\xE9diger directement votre texte dans ReadAlongStudio en s\xE9lectionnant l'option \xAB\xA0R\xE9diger\xA0\xBB.",attachTo:{element:"#text-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"text-write"},YF={title:"Utiliser un fichier texte",text:"Vous pouvez aussi lire votre texte \xE0 partir d'un ficher en format texte brut (.txt) ou ReadAlong Studio (.readalong).",attachTo:{element:"#text-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"text-file"},yse={title:"Enregistrer votre propre audio",text:"Vous pouvez enregistrer votre propre audio avec votre microphone.",attachTo:{element:"#audio-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"audio-record"},zF={title:"Utiliser un fichier audio",text:"Vous pouvez aussi s\xE9lectionner un fichier .wav, .mp3 ou .webm de votre ordinateur.",attachTo:{element:"#audio-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"audio-file"},_se={title:"Selectionner votre langue",text:"Ensuite, facultativement, vous pouvez s\xE9lectionner la langue de votre ReadAlong.",attachTo:{element:"#language-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"language"},vse={title:"Selectionner votre langue",text:"Pour la plupart des cas, l'option par d\xE9faut est appropri\xE9e - laissez simplement cette option s\xE9lectionn\xE9e!",attachTo:{element:"#generic-language",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"generic-language"},wse={title:"Selectionner votre langue",text:"Par contre, si vos r\xE9sultats sont inad\xE9quats avec l'option par d\xE9faut, vous pouvez choisir un langue parmi cette liste. Si vous ne trouvez pas la v\xF4tre, il est toujours possible de l'ajouter. Commencez par lire nos billets de blogue (en anglais) pour apprendre comment ajouter votre langue, or encore contactez-nous pour plus d'information.",attachTo:{element:"#specific-language",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"specific-language"},Af={title:"C'est fini!",text:"Une fois termin\xE9, vous pouvez cliquer sur \xAB\xA0prochaine \xE9tape\xA0\xBB pour laisser Studio monter votre ReadAlong! (Ceci peut prendre quelques secondes.)",attachTo:{element:"#next-step",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer"}],id:"create-readalong"},Cse={title:"Tada!",text:"Votre ReadAlong vient d'\xEAtre cr\xE9e.",attachTo:{element:"#readalong",on:"top"},buttons:[{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"step-two-intro"},$F={title:"\xC9couter votre ReadAlong",text:"En cliquant sur l'ic\xF4ne de lecture, vous pouvez \xE9couter l'audio en voyant chaque mot surlign\xE9 lorsqu'il est lu. Essayez-le!",buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"readalong-play"},VF={title:"\xC9couter votre ReadAlong",text:"Vous pouvez aussi faire lire un mot en isolation en cliquant dessus.",buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"readalong-play-word"},ZF={title:"Modifier votre ReadAlong",text:"Vous pouvez modifier le texte ici pour ajouter un titre ou un sous-titre \xE0 votre ReadAlong.",buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"readalong-change-title"},Nb={title:"Modifier votre ReadAlong",text:"Vous pouvez ajouter une image \xE0 chaque page de votre ReadAlong ici.",buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"readalong-add-image"},Fb={title:"Modifier votre ReadAlong",text:"Vous pouvez ajouter une traduction ou d'autre texte informatif \xE0 chaque phrase de votre ReadAlong en cliquant sur l'ic\xF4ne + ici. Si vous voulez ensuite retirer une traduction, cliquez sur l'ic\xF4ne \u2212.",buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"readalong-add-translation"},Lb={title:"Exporter votre ReadAlong",text:"Quand vous \xEAtes satisfait de votre ReadAlong, vous pouvez le t\xE9l\xE9charger en divers formats, en s\xE9lectionnant un format puis en cliquant sur le bouton de t\xE9l\xE9chargement (la fl\xE8che qui pointe vers le bas). Vous pouvez s\xE9lectionner l'un des formats suivants: "+"
  • "+"Fichier HTML hors r\xE9seau: votre ReadAlong en un seul fichier HTML qui s'utilise sans acc\xE8s web et qui peut \xEAtre rouvert dans l'\xE9diteur,"+"
  • "+"Fichiers Web zipp\xE9s: tous vos fichiers ReadAlong dans un dossier pouvant \xEAtre h\xE9berg\xE9 sur un serveur web,"+"
  • "+"Fichiers Elan and Praat: formats exportables utilis\xE9s par les linguistes documentaires,"+"
  • "+"Sous-titres SRT et WebVTT: formats exportables pour ajouter des sous-titres \xE0 des vid\xE9os."+"
",attachTo:{element:"div.download__buttons",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"readalong-export"},xse={title:"Modifier les donn\xE9es pour votre ReadAlong",text:"Si vous voulez modifier votre audio ou votre texte, vous pouvez retourner \xE0 l'\xC9tape 1 pour effectuer des changements ou cr\xE9er un nouveau ReadAlong. "+"Mais attention, retourner en arri\xE8re vous fera perdre vos traductions et vos images."+"

"+"Attention: si vous utilisez le bouton de retour de votre navigateur, vous quitterez l'appli au complet et perdrez probablement aussi tout votre texte et votre audio. "+"Utilisez plut\xF4t le bouton \"\xC9tape 1\" pour retourner modifier votre texte ou votre audio.",attachTo:{element:"div.mat-horizontal-stepper-header-container",on:"botton-start"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}],id:"readalong-back"},Sse={title:"\xC9diteur pour votre ReadAlong",text:"Cet outil vous permet de modifier votre ReadAlong. Notez que cet outil n'accepte que le format HTML hors r\xE9seau.",attachTo:{element:"#editor",on:"bottom-center"},buttons:[{classes:"shepherd-button-primary",text:"Continuer",type:"next"}]},GF={title:"Choisir un fichier",text:"Choisissez un fichier ReadAlong en format HTML hors r\xE9seau. Vous pouvez aussi utiliser le fichier HTML hors r\xE9seau inclus dans le format de Fichiers Web zipp\xE9s. Pour continuer la visite guid\xE9e, nous allons ajouter un exemple de ReadAlong pour vous.",attachTo:{element:"#updateRAS",on:"bottom-middle"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-warning",text:"Continuer"}]},Dse={title:"Tada!",text:"Votre ReadAlong a \xE9t\xE9 charg\xE9.",attachTo:{element:"#readalongContainer",on:"top"},buttons:[{classes:"shepherd-button-primary",text:"Continuer",type:"next"}]},Ese={title:"Barre d'outils audio",text:"Voici une repr\xE9sentation visuelle de l'alignement de votre audio et de votre texte. Vous pouvez ajuster cet alignement et corriger les erreurs d'orthographe ici. Cliquez sur \xAB\xA0Continuer\xA0\xBB pour voir comment.",attachTo:{element:"#audioToolbar",on:"top"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}]},Tse={title:"Zoom de la visualisation audio-texte",text:"Utilisez les contr\xF4les de zoom pour vous concentrer sur une section de l'audio-texte.",attachTo:{element:"#zoomControls",on:"top-end"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}]},UF={title:"Visualisation de l'alignement audio-texte",text:"Ceci repr\xE9sente visuellement l'alignement audio-texte de votre ReadAlong. Cliquez sur la forme d'onde pour \xE9couter un mot. D\xE9placez les barres aux bordures d'un mot pour ajuster son alignement. Clickez ensuite sur le bouton de lecture du ReadAlong pour constater le r\xE9sultat de vos ajustements sur le surlignage de votre ReadAlong.",attachTo:{element:"#wavesurferContainer",on:"top"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}]},WF={title:"Corriger les fautes d'orthographe",text:"Pour corriger une faute d'orthographe, cliquez sur un mot et modifiez-le.",attachTo:{element:"#wavesurferContainer",on:"left"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Continuer",type:"next"}]},Mse={title:"Passer \xE0 l'\xE9diteur",text:"Apr\xE8s avoir t\xE9l\xE9charg\xE9 votre ReadAlong, vous pouvez le rouvrir dans l'\xE9diteur pour continuer \xE0 le modifier.",attachTo:{element:"#goToEditor",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:"Retourner",type:"back"},{classes:"shepherd-button-primary",text:"Terminer",type:"cancel"},{classes:"shepherd-button-warning",text:"\xC0 l'\xE9diteur",action:function(){this&&this.complete(),window.location.hash="#/editor?startTour=yes"}}]};let N1=(()=>{class t{constructor(e,i){this.http=e,this.fileService=i,this.JS_BUNDLE_URL="assets/bundle.js",this.FONTS_BUNDLE_URL="assets/fonts.b64.css",this.jsAndFontsBundle$=new hi(null),this.getBundle$().subscribe(o=>{this.jsAndFontsBundle$.next(o)})}getBundle$(){return Mh([this.http.get(this.JS_BUNDLE_URL,{responseType:"blob"}).pipe(Ni(e=>this.fileService.readFileAsData$(e))),this.http.get(this.FONTS_BUNDLE_URL,{responseType:"blob"}).pipe(Ni(e=>this.fileService.readFile$(e)))])}utf8_to_b64(e){return window.btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(i,o){return String.fromCharCode(parseInt(o,16))}))}b64_to_utf8(e){return decodeURIComponent(Array.prototype.map.call(window.atob(e),function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join(""))}xmlToB64(e){return this.utf8_to_b64((new XMLSerializer).serializeToString(e))}blobToB64(e){return new Promise((i,o)=>{const r=new FileReader;r.onloadend=()=>i(r.result),r.readAsDataURL(e)})}static{this.\u0275fac=function(i){return new(i||t)(Me(su),Me(Pb))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var F1=function(t){return t.generic="generic",t.specific="specific",t}(F1||{});let L1=(()=>{class t{constructor(e){this._formBuilder=e,this.slots={title:"Titre",subtitle:"Sous-titre"},this.lastStepperIndex=0,this.temporaryBlob=void 0,this.b64Inputs$=new hi(["",null]),this.render$=new hi(!1),this.langMode$=new hi(F1.generic),this.langControl$=new Vr({value:"und",disabled:"specific"!==this.langMode$.value},js.required),this.textControl$=new Vr(null,js.required),this.audioControl$=new Vr(null,js.required),this.$textInput=new hi(""),this.uploadFormGroup=this._formBuilder.group({lang:this.langControl$,text:this.textControl$,audio:this.audioControl$}),this.inputMethod={audio:"mic",text:"edit"},this.langMode$.subscribe(i=>{i===F1.generic?this.langControl$.disable():this.langControl$.enable()})}static{this.\u0275fac=function(i){return new(i||t)(Me(IO))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ase=O(990),kse=O.n(Ase);function XF(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Ise(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Ose=[["\xdf","ss"],["\u1e9e","Ss"],["\xe4","ae"],["\xc4","Ae"],["\xf6","oe"],["\xd6","Oe"],["\xfc","ue"],["\xdc","Ue"],["\xc0","A"],["\xc1","A"],["\xc2","A"],["\xc3","A"],["\xc4","Ae"],["\xc5","A"],["\xc6","AE"],["\xc7","C"],["\xc8","E"],["\xc9","E"],["\xca","E"],["\xcb","E"],["\xcc","I"],["\xcd","I"],["\xce","I"],["\xcf","I"],["\xd0","D"],["\xd1","N"],["\xd2","O"],["\xd3","O"],["\xd4","O"],["\xd5","O"],["\xd6","Oe"],["\u0150","O"],["\xd8","O"],["\xd9","U"],["\xda","U"],["\xdb","U"],["\xdc","Ue"],["\u0170","U"],["\xdd","Y"],["\xde","TH"],["\xdf","ss"],["\xe0","a"],["\xe1","a"],["\xe2","a"],["\xe3","a"],["\xe4","ae"],["\xe5","a"],["\xe6","ae"],["\xe7","c"],["\xe8","e"],["\xe9","e"],["\xea","e"],["\xeb","e"],["\xec","i"],["\xed","i"],["\xee","i"],["\xef","i"],["\xf0","d"],["\xf1","n"],["\xf2","o"],["\xf3","o"],["\xf4","o"],["\xf5","o"],["\xf6","oe"],["\u0151","o"],["\xf8","o"],["\xf9","u"],["\xfa","u"],["\xfb","u"],["\xfc","ue"],["\u0171","u"],["\xfd","y"],["\xfe","th"],["\xff","y"],["\u1e9e","SS"],["\xe0","a"],["\xc0","A"],["\xe1","a"],["\xc1","A"],["\xe2","a"],["\xc2","A"],["\xe3","a"],["\xc3","A"],["\xe8","e"],["\xc8","E"],["\xe9","e"],["\xc9","E"],["\xea","e"],["\xca","E"],["\xec","i"],["\xcc","I"],["\xed","i"],["\xcd","I"],["\xf2","o"],["\xd2","O"],["\xf3","o"],["\xd3","O"],["\xf4","o"],["\xd4","O"],["\xf5","o"],["\xd5","O"],["\xf9","u"],["\xd9","U"],["\xfa","u"],["\xda","U"],["\xfd","y"],["\xdd","Y"],["\u0103","a"],["\u0102","A"],["\u0110","D"],["\u0111","d"],["\u0129","i"],["\u0128","I"],["\u0169","u"],["\u0168","U"],["\u01a1","o"],["\u01a0","O"],["\u01b0","u"],["\u01af","U"],["\u1ea1","a"],["\u1ea0","A"],["\u1ea3","a"],["\u1ea2","A"],["\u1ea5","a"],["\u1ea4","A"],["\u1ea7","a"],["\u1ea6","A"],["\u1ea9","a"],["\u1ea8","A"],["\u1eab","a"],["\u1eaa","A"],["\u1ead","a"],["\u1eac","A"],["\u1eaf","a"],["\u1eae","A"],["\u1eb1","a"],["\u1eb0","A"],["\u1eb3","a"],["\u1eb2","A"],["\u1eb5","a"],["\u1eb4","A"],["\u1eb7","a"],["\u1eb6","A"],["\u1eb9","e"],["\u1eb8","E"],["\u1ebb","e"],["\u1eba","E"],["\u1ebd","e"],["\u1ebc","E"],["\u1ebf","e"],["\u1ebe","E"],["\u1ec1","e"],["\u1ec0","E"],["\u1ec3","e"],["\u1ec2","E"],["\u1ec5","e"],["\u1ec4","E"],["\u1ec7","e"],["\u1ec6","E"],["\u1ec9","i"],["\u1ec8","I"],["\u1ecb","i"],["\u1eca","I"],["\u1ecd","o"],["\u1ecc","O"],["\u1ecf","o"],["\u1ece","O"],["\u1ed1","o"],["\u1ed0","O"],["\u1ed3","o"],["\u1ed2","O"],["\u1ed5","o"],["\u1ed4","O"],["\u1ed7","o"],["\u1ed6","O"],["\u1ed9","o"],["\u1ed8","O"],["\u1edb","o"],["\u1eda","O"],["\u1edd","o"],["\u1edc","O"],["\u1edf","o"],["\u1ede","O"],["\u1ee1","o"],["\u1ee0","O"],["\u1ee3","o"],["\u1ee2","O"],["\u1ee5","u"],["\u1ee4","U"],["\u1ee7","u"],["\u1ee6","U"],["\u1ee9","u"],["\u1ee8","U"],["\u1eeb","u"],["\u1eea","U"],["\u1eed","u"],["\u1eec","U"],["\u1eef","u"],["\u1eee","U"],["\u1ef1","u"],["\u1ef0","U"],["\u1ef3","y"],["\u1ef2","Y"],["\u1ef5","y"],["\u1ef4","Y"],["\u1ef7","y"],["\u1ef6","Y"],["\u1ef9","y"],["\u1ef8","Y"],["\u0621","e"],["\u0622","a"],["\u0623","a"],["\u0624","w"],["\u0625","i"],["\u0626","y"],["\u0627","a"],["\u0628","b"],["\u0629","t"],["\u062a","t"],["\u062b","th"],["\u062c","j"],["\u062d","h"],["\u062e","kh"],["\u062f","d"],["\u0630","dh"],["\u0631","r"],["\u0632","z"],["\u0633","s"],["\u0634","sh"],["\u0635","s"],["\u0636","d"],["\u0637","t"],["\u0638","z"],["\u0639","e"],["\u063a","gh"],["\u0640","_"],["\u0641","f"],["\u0642","q"],["\u0643","k"],["\u0644","l"],["\u0645","m"],["\u0646","n"],["\u0647","h"],["\u0648","w"],["\u0649","a"],["\u064a","y"],["\u064e\u200e","a"],["\u064f","u"],["\u0650\u200e","i"],["\u0660","0"],["\u0661","1"],["\u0662","2"],["\u0663","3"],["\u0664","4"],["\u0665","5"],["\u0666","6"],["\u0667","7"],["\u0668","8"],["\u0669","9"],["\u0686","ch"],["\u06a9","k"],["\u06af","g"],["\u067e","p"],["\u0698","zh"],["\u06cc","y"],["\u06f0","0"],["\u06f1","1"],["\u06f2","2"],["\u06f3","3"],["\u06f4","4"],["\u06f5","5"],["\u06f6","6"],["\u06f7","7"],["\u06f8","8"],["\u06f9","9"],["\u067c","p"],["\u0681","z"],["\u0685","c"],["\u0689","d"],["\ufeab","d"],["\ufead","r"],["\u0693","r"],["\ufeaf","z"],["\u0696","g"],["\u069a","x"],["\u06ab","g"],["\u06bc","n"],["\u06c0","e"],["\u06d0","e"],["\u06cd","ai"],["\u0679","t"],["\u0688","d"],["\u0691","r"],["\u06ba","n"],["\u06c1","h"],["\u06be","h"],["\u06d2","e"],["\u0410","A"],["\u0430","a"],["\u0411","B"],["\u0431","b"],["\u0412","V"],["\u0432","v"],["\u0413","G"],["\u0433","g"],["\u0414","D"],["\u0434","d"],["\u044a\u0435","ye"],["\u042a\u0435","Ye"],["\u044a\u0415","yE"],["\u042a\u0415","YE"],["\u0415","E"],["\u0435","e"],["\u0401","Yo"],["\u0451","yo"],["\u0416","Zh"],["\u0436","zh"],["\u0417","Z"],["\u0437","z"],["\u0418","I"],["\u0438","i"],["\u044b\u0439","iy"],["\u042b\u0439","Iy"],["\u042b\u0419","IY"],["\u044b\u0419","iY"],["\u0419","Y"],["\u0439","y"],["\u041a","K"],["\u043a","k"],["\u041b","L"],["\u043b","l"],["\u041c","M"],["\u043c","m"],["\u041d","N"],["\u043d","n"],["\u041e","O"],["\u043e","o"],["\u041f","P"],["\u043f","p"],["\u0420","R"],["\u0440","r"],["\u0421","S"],["\u0441","s"],["\u0422","T"],["\u0442","t"],["\u0423","U"],["\u0443","u"],["\u0424","F"],["\u0444","f"],["\u0425","Kh"],["\u0445","kh"],["\u0426","Ts"],["\u0446","ts"],["\u0427","Ch"],["\u0447","ch"],["\u0428","Sh"],["\u0448","sh"],["\u0429","Sch"],["\u0449","sch"],["\u042a",""],["\u044a",""],["\u042b","Y"],["\u044b","y"],["\u042c",""],["\u044c",""],["\u042d","E"],["\u044d","e"],["\u042e","Yu"],["\u044e","yu"],["\u042f","Ya"],["\u044f","ya"],["\u0103","a"],["\u0102","A"],["\u0219","s"],["\u0218","S"],["\u021b","t"],["\u021a","T"],["\u0163","t"],["\u0162","T"],["\u015f","s"],["\u015e","S"],["\xe7","c"],["\xc7","C"],["\u011f","g"],["\u011e","G"],["\u0131","i"],["\u0130","I"],["\u0561","a"],["\u0531","A"],["\u0562","b"],["\u0532","B"],["\u0563","g"],["\u0533","G"],["\u0564","d"],["\u0534","D"],["\u0565","ye"],["\u0535","Ye"],["\u0566","z"],["\u0536","Z"],["\u0567","e"],["\u0537","E"],["\u0568","y"],["\u0538","Y"],["\u0569","t"],["\u0539","T"],["\u056a","zh"],["\u053a","Zh"],["\u056b","i"],["\u053b","I"],["\u056c","l"],["\u053c","L"],["\u056d","kh"],["\u053d","Kh"],["\u056e","ts"],["\u053e","Ts"],["\u056f","k"],["\u053f","K"],["\u0570","h"],["\u0540","H"],["\u0571","dz"],["\u0541","Dz"],["\u0572","gh"],["\u0542","Gh"],["\u0573","tch"],["\u0543","Tch"],["\u0574","m"],["\u0544","M"],["\u0575","y"],["\u0545","Y"],["\u0576","n"],["\u0546","N"],["\u0577","sh"],["\u0547","Sh"],["\u0578","vo"],["\u0548","Vo"],["\u0579","ch"],["\u0549","Ch"],["\u057a","p"],["\u054a","P"],["\u057b","j"],["\u054b","J"],["\u057c","r"],["\u054c","R"],["\u057d","s"],["\u054d","S"],["\u057e","v"],["\u054e","V"],["\u057f","t"],["\u054f","T"],["\u0580","r"],["\u0550","R"],["\u0581","c"],["\u0551","C"],["\u0578\u0582","u"],["\u0548\u0552","U"],["\u0548\u0582","U"],["\u0583","p"],["\u0553","P"],["\u0584","q"],["\u0554","Q"],["\u0585","o"],["\u0555","O"],["\u0586","f"],["\u0556","F"],["\u0587","yev"],["\u10d0","a"],["\u10d1","b"],["\u10d2","g"],["\u10d3","d"],["\u10d4","e"],["\u10d5","v"],["\u10d6","z"],["\u10d7","t"],["\u10d8","i"],["\u10d9","k"],["\u10da","l"],["\u10db","m"],["\u10dc","n"],["\u10dd","o"],["\u10de","p"],["\u10df","zh"],["\u10e0","r"],["\u10e1","s"],["\u10e2","t"],["\u10e3","u"],["\u10e4","ph"],["\u10e5","q"],["\u10e6","gh"],["\u10e7","k"],["\u10e8","sh"],["\u10e9","ch"],["\u10ea","ts"],["\u10eb","dz"],["\u10ec","ts"],["\u10ed","tch"],["\u10ee","kh"],["\u10ef","j"],["\u10f0","h"],["\u010d","c"],["\u010f","d"],["\u011b","e"],["\u0148","n"],["\u0159","r"],["\u0161","s"],["\u0165","t"],["\u016f","u"],["\u017e","z"],["\u010c","C"],["\u010e","D"],["\u011a","E"],["\u0147","N"],["\u0158","R"],["\u0160","S"],["\u0164","T"],["\u016e","U"],["\u017d","Z"],["\u0780","h"],["\u0781","sh"],["\u0782","n"],["\u0783","r"],["\u0784","b"],["\u0785","lh"],["\u0786","k"],["\u0787","a"],["\u0788","v"],["\u0789","m"],["\u078a","f"],["\u078b","dh"],["\u078c","th"],["\u078d","l"],["\u078e","g"],["\u078f","gn"],["\u0790","s"],["\u0791","d"],["\u0792","z"],["\u0793","t"],["\u0794","y"],["\u0795","p"],["\u0796","j"],["\u0797","ch"],["\u0798","tt"],["\u0799","hh"],["\u079a","kh"],["\u079b","th"],["\u079c","z"],["\u079d","sh"],["\u079e","s"],["\u079f","d"],["\u07a0","t"],["\u07a1","z"],["\u07a2","a"],["\u07a3","gh"],["\u07a4","q"],["\u07a5","w"],["\u07a6","a"],["\u07a7","aa"],["\u07a8","i"],["\u07a9","ee"],["\u07aa","u"],["\u07ab","oo"],["\u07ac","e"],["\u07ad","ey"],["\u07ae","o"],["\u07af","oa"],["\u07b0",""],["\u03b1","a"],["\u03b2","v"],["\u03b3","g"],["\u03b4","d"],["\u03b5","e"],["\u03b6","z"],["\u03b7","i"],["\u03b8","th"],["\u03b9","i"],["\u03ba","k"],["\u03bb","l"],["\u03bc","m"],["\u03bd","n"],["\u03be","ks"],["\u03bf","o"],["\u03c0","p"],["\u03c1","r"],["\u03c3","s"],["\u03c4","t"],["\u03c5","y"],["\u03c6","f"],["\u03c7","x"],["\u03c8","ps"],["\u03c9","o"],["\u03ac","a"],["\u03ad","e"],["\u03af","i"],["\u03cc","o"],["\u03cd","y"],["\u03ae","i"],["\u03ce","o"],["\u03c2","s"],["\u03ca","i"],["\u03b0","y"],["\u03cb","y"],["\u0390","i"],["\u0391","A"],["\u0392","B"],["\u0393","G"],["\u0394","D"],["\u0395","E"],["\u0396","Z"],["\u0397","I"],["\u0398","TH"],["\u0399","I"],["\u039a","K"],["\u039b","L"],["\u039c","M"],["\u039d","N"],["\u039e","KS"],["\u039f","O"],["\u03a0","P"],["\u03a1","R"],["\u03a3","S"],["\u03a4","T"],["\u03a5","Y"],["\u03a6","F"],["\u03a7","X"],["\u03a8","PS"],["\u03a9","O"],["\u0386","A"],["\u0388","E"],["\u038a","I"],["\u038c","O"],["\u038e","Y"],["\u0389","I"],["\u038f","O"],["\u03aa","I"],["\u03ab","Y"],["\u0101","a"],["\u0113","e"],["\u0123","g"],["\u012b","i"],["\u0137","k"],["\u013c","l"],["\u0146","n"],["\u016b","u"],["\u0100","A"],["\u0112","E"],["\u0122","G"],["\u012a","I"],["\u0136","K"],["\u013b","L"],["\u0145","N"],["\u016a","U"],["\u010d","c"],["\u0161","s"],["\u017e","z"],["\u010c","C"],["\u0160","S"],["\u017d","Z"],["\u0105","a"],["\u010d","c"],["\u0119","e"],["\u0117","e"],["\u012f","i"],["\u0161","s"],["\u0173","u"],["\u016b","u"],["\u017e","z"],["\u0104","A"],["\u010c","C"],["\u0118","E"],["\u0116","E"],["\u012e","I"],["\u0160","S"],["\u0172","U"],["\u016a","U"],["\u040c","Kj"],["\u045c","kj"],["\u0409","Lj"],["\u0459","lj"],["\u040a","Nj"],["\u045a","nj"],["\u0422\u0441","Ts"],["\u0442\u0441","ts"],["\u0105","a"],["\u0107","c"],["\u0119","e"],["\u0142","l"],["\u0144","n"],["\u015b","s"],["\u017a","z"],["\u017c","z"],["\u0104","A"],["\u0106","C"],["\u0118","E"],["\u0141","L"],["\u0143","N"],["\u015a","S"],["\u0179","Z"],["\u017b","Z"],["\u0404","Ye"],["\u0406","I"],["\u0407","Yi"],["\u0490","G"],["\u0454","ye"],["\u0456","i"],["\u0457","yi"],["\u0491","g"],["\u0132","IJ"],["\u0133","ij"],["\xa2","c"],["\xa5","Y"],["\u07ff","b"],["\u09f3","t"],["\u0af1","Bo"],["\u0e3f","B"],["\u20a0","CE"],["\u20a1","C"],["\u20a2","Cr"],["\u20a3","F"],["\u20a5","m"],["\u20a6","N"],["\u20a7","Pt"],["\u20a8","Rs"],["\u20a9","W"],["\u20ab","s"],["\u20ac","E"],["\u20ad","K"],["\u20ae","T"],["\u20af","Dp"],["\u20b0","S"],["\u20b1","P"],["\u20b2","G"],["\u20b3","A"],["\u20b4","S"],["\u20b5","C"],["\u20b6","tt"],["\u20b7","S"],["\u20b8","T"],["\u20b9","R"],["\u20ba","L"],["\u20bd","P"],["\u20bf","B"],["\ufe69","$"],["\uffe0","c"],["\uffe5","Y"],["\uffe6","W"],["\u{1d400}","A"],["\u{1d401}","B"],["\u{1d402}","C"],["\u{1d403}","D"],["\u{1d404}","E"],["\u{1d405}","F"],["\u{1d406}","G"],["\u{1d407}","H"],["\u{1d408}","I"],["\u{1d409}","J"],["\u{1d40a}","K"],["\u{1d40b}","L"],["\u{1d40c}","M"],["\u{1d40d}","N"],["\u{1d40e}","O"],["\u{1d40f}","P"],["\u{1d410}","Q"],["\u{1d411}","R"],["\u{1d412}","S"],["\u{1d413}","T"],["\u{1d414}","U"],["\u{1d415}","V"],["\u{1d416}","W"],["\u{1d417}","X"],["\u{1d418}","Y"],["\u{1d419}","Z"],["\u{1d41a}","a"],["\u{1d41b}","b"],["\u{1d41c}","c"],["\u{1d41d}","d"],["\u{1d41e}","e"],["\u{1d41f}","f"],["\u{1d420}","g"],["\u{1d421}","h"],["\u{1d422}","i"],["\u{1d423}","j"],["\u{1d424}","k"],["\u{1d425}","l"],["\u{1d426}","m"],["\u{1d427}","n"],["\u{1d428}","o"],["\u{1d429}","p"],["\u{1d42a}","q"],["\u{1d42b}","r"],["\u{1d42c}","s"],["\u{1d42d}","t"],["\u{1d42e}","u"],["\u{1d42f}","v"],["\u{1d430}","w"],["\u{1d431}","x"],["\u{1d432}","y"],["\u{1d433}","z"],["\u{1d434}","A"],["\u{1d435}","B"],["\u{1d436}","C"],["\u{1d437}","D"],["\u{1d438}","E"],["\u{1d439}","F"],["\u{1d43a}","G"],["\u{1d43b}","H"],["\u{1d43c}","I"],["\u{1d43d}","J"],["\u{1d43e}","K"],["\u{1d43f}","L"],["\u{1d440}","M"],["\u{1d441}","N"],["\u{1d442}","O"],["\u{1d443}","P"],["\u{1d444}","Q"],["\u{1d445}","R"],["\u{1d446}","S"],["\u{1d447}","T"],["\u{1d448}","U"],["\u{1d449}","V"],["\u{1d44a}","W"],["\u{1d44b}","X"],["\u{1d44c}","Y"],["\u{1d44d}","Z"],["\u{1d44e}","a"],["\u{1d44f}","b"],["\u{1d450}","c"],["\u{1d451}","d"],["\u{1d452}","e"],["\u{1d453}","f"],["\u{1d454}","g"],["\u{1d456}","i"],["\u{1d457}","j"],["\u{1d458}","k"],["\u{1d459}","l"],["\u{1d45a}","m"],["\u{1d45b}","n"],["\u{1d45c}","o"],["\u{1d45d}","p"],["\u{1d45e}","q"],["\u{1d45f}","r"],["\u{1d460}","s"],["\u{1d461}","t"],["\u{1d462}","u"],["\u{1d463}","v"],["\u{1d464}","w"],["\u{1d465}","x"],["\u{1d466}","y"],["\u{1d467}","z"],["\u{1d468}","A"],["\u{1d469}","B"],["\u{1d46a}","C"],["\u{1d46b}","D"],["\u{1d46c}","E"],["\u{1d46d}","F"],["\u{1d46e}","G"],["\u{1d46f}","H"],["\u{1d470}","I"],["\u{1d471}","J"],["\u{1d472}","K"],["\u{1d473}","L"],["\u{1d474}","M"],["\u{1d475}","N"],["\u{1d476}","O"],["\u{1d477}","P"],["\u{1d478}","Q"],["\u{1d479}","R"],["\u{1d47a}","S"],["\u{1d47b}","T"],["\u{1d47c}","U"],["\u{1d47d}","V"],["\u{1d47e}","W"],["\u{1d47f}","X"],["\u{1d480}","Y"],["\u{1d481}","Z"],["\u{1d482}","a"],["\u{1d483}","b"],["\u{1d484}","c"],["\u{1d485}","d"],["\u{1d486}","e"],["\u{1d487}","f"],["\u{1d488}","g"],["\u{1d489}","h"],["\u{1d48a}","i"],["\u{1d48b}","j"],["\u{1d48c}","k"],["\u{1d48d}","l"],["\u{1d48e}","m"],["\u{1d48f}","n"],["\u{1d490}","o"],["\u{1d491}","p"],["\u{1d492}","q"],["\u{1d493}","r"],["\u{1d494}","s"],["\u{1d495}","t"],["\u{1d496}","u"],["\u{1d497}","v"],["\u{1d498}","w"],["\u{1d499}","x"],["\u{1d49a}","y"],["\u{1d49b}","z"],["\u{1d49c}","A"],["\u{1d49e}","C"],["\u{1d49f}","D"],["\u{1d4a2}","g"],["\u{1d4a5}","J"],["\u{1d4a6}","K"],["\u{1d4a9}","N"],["\u{1d4aa}","O"],["\u{1d4ab}","P"],["\u{1d4ac}","Q"],["\u{1d4ae}","S"],["\u{1d4af}","T"],["\u{1d4b0}","U"],["\u{1d4b1}","V"],["\u{1d4b2}","W"],["\u{1d4b3}","X"],["\u{1d4b4}","Y"],["\u{1d4b5}","Z"],["\u{1d4b6}","a"],["\u{1d4b7}","b"],["\u{1d4b8}","c"],["\u{1d4b9}","d"],["\u{1d4bb}","f"],["\u{1d4bd}","h"],["\u{1d4be}","i"],["\u{1d4bf}","j"],["\u{1d4c0}","h"],["\u{1d4c1}","l"],["\u{1d4c2}","m"],["\u{1d4c3}","n"],["\u{1d4c5}","p"],["\u{1d4c6}","q"],["\u{1d4c7}","r"],["\u{1d4c8}","s"],["\u{1d4c9}","t"],["\u{1d4ca}","u"],["\u{1d4cb}","v"],["\u{1d4cc}","w"],["\u{1d4cd}","x"],["\u{1d4ce}","y"],["\u{1d4cf}","z"],["\u{1d4d0}","A"],["\u{1d4d1}","B"],["\u{1d4d2}","C"],["\u{1d4d3}","D"],["\u{1d4d4}","E"],["\u{1d4d5}","F"],["\u{1d4d6}","G"],["\u{1d4d7}","H"],["\u{1d4d8}","I"],["\u{1d4d9}","J"],["\u{1d4da}","K"],["\u{1d4db}","L"],["\u{1d4dc}","M"],["\u{1d4dd}","N"],["\u{1d4de}","O"],["\u{1d4df}","P"],["\u{1d4e0}","Q"],["\u{1d4e1}","R"],["\u{1d4e2}","S"],["\u{1d4e3}","T"],["\u{1d4e4}","U"],["\u{1d4e5}","V"],["\u{1d4e6}","W"],["\u{1d4e7}","X"],["\u{1d4e8}","Y"],["\u{1d4e9}","Z"],["\u{1d4ea}","a"],["\u{1d4eb}","b"],["\u{1d4ec}","c"],["\u{1d4ed}","d"],["\u{1d4ee}","e"],["\u{1d4ef}","f"],["\u{1d4f0}","g"],["\u{1d4f1}","h"],["\u{1d4f2}","i"],["\u{1d4f3}","j"],["\u{1d4f4}","k"],["\u{1d4f5}","l"],["\u{1d4f6}","m"],["\u{1d4f7}","n"],["\u{1d4f8}","o"],["\u{1d4f9}","p"],["\u{1d4fa}","q"],["\u{1d4fb}","r"],["\u{1d4fc}","s"],["\u{1d4fd}","t"],["\u{1d4fe}","u"],["\u{1d4ff}","v"],["\u{1d500}","w"],["\u{1d501}","x"],["\u{1d502}","y"],["\u{1d503}","z"],["\u{1d504}","A"],["\u{1d505}","B"],["\u{1d507}","D"],["\u{1d508}","E"],["\u{1d509}","F"],["\u{1d50a}","G"],["\u{1d50d}","J"],["\u{1d50e}","K"],["\u{1d50f}","L"],["\u{1d510}","M"],["\u{1d511}","N"],["\u{1d512}","O"],["\u{1d513}","P"],["\u{1d514}","Q"],["\u{1d516}","S"],["\u{1d517}","T"],["\u{1d518}","U"],["\u{1d519}","V"],["\u{1d51a}","W"],["\u{1d51b}","X"],["\u{1d51c}","Y"],["\u{1d51e}","a"],["\u{1d51f}","b"],["\u{1d520}","c"],["\u{1d521}","d"],["\u{1d522}","e"],["\u{1d523}","f"],["\u{1d524}","g"],["\u{1d525}","h"],["\u{1d526}","i"],["\u{1d527}","j"],["\u{1d528}","k"],["\u{1d529}","l"],["\u{1d52a}","m"],["\u{1d52b}","n"],["\u{1d52c}","o"],["\u{1d52d}","p"],["\u{1d52e}","q"],["\u{1d52f}","r"],["\u{1d530}","s"],["\u{1d531}","t"],["\u{1d532}","u"],["\u{1d533}","v"],["\u{1d534}","w"],["\u{1d535}","x"],["\u{1d536}","y"],["\u{1d537}","z"],["\u{1d538}","A"],["\u{1d539}","B"],["\u{1d53b}","D"],["\u{1d53c}","E"],["\u{1d53d}","F"],["\u{1d53e}","G"],["\u{1d540}","I"],["\u{1d541}","J"],["\u{1d542}","K"],["\u{1d543}","L"],["\u{1d544}","M"],["\u{1d546}","N"],["\u{1d54a}","S"],["\u{1d54b}","T"],["\u{1d54c}","U"],["\u{1d54d}","V"],["\u{1d54e}","W"],["\u{1d54f}","X"],["\u{1d550}","Y"],["\u{1d552}","a"],["\u{1d553}","b"],["\u{1d554}","c"],["\u{1d555}","d"],["\u{1d556}","e"],["\u{1d557}","f"],["\u{1d558}","g"],["\u{1d559}","h"],["\u{1d55a}","i"],["\u{1d55b}","j"],["\u{1d55c}","k"],["\u{1d55d}","l"],["\u{1d55e}","m"],["\u{1d55f}","n"],["\u{1d560}","o"],["\u{1d561}","p"],["\u{1d562}","q"],["\u{1d563}","r"],["\u{1d564}","s"],["\u{1d565}","t"],["\u{1d566}","u"],["\u{1d567}","v"],["\u{1d568}","w"],["\u{1d569}","x"],["\u{1d56a}","y"],["\u{1d56b}","z"],["\u{1d56c}","A"],["\u{1d56d}","B"],["\u{1d56e}","C"],["\u{1d56f}","D"],["\u{1d570}","E"],["\u{1d571}","F"],["\u{1d572}","G"],["\u{1d573}","H"],["\u{1d574}","I"],["\u{1d575}","J"],["\u{1d576}","K"],["\u{1d577}","L"],["\u{1d578}","M"],["\u{1d579}","N"],["\u{1d57a}","O"],["\u{1d57b}","P"],["\u{1d57c}","Q"],["\u{1d57d}","R"],["\u{1d57e}","S"],["\u{1d57f}","T"],["\u{1d580}","U"],["\u{1d581}","V"],["\u{1d582}","W"],["\u{1d583}","X"],["\u{1d584}","Y"],["\u{1d585}","Z"],["\u{1d586}","a"],["\u{1d587}","b"],["\u{1d588}","c"],["\u{1d589}","d"],["\u{1d58a}","e"],["\u{1d58b}","f"],["\u{1d58c}","g"],["\u{1d58d}","h"],["\u{1d58e}","i"],["\u{1d58f}","j"],["\u{1d590}","k"],["\u{1d591}","l"],["\u{1d592}","m"],["\u{1d593}","n"],["\u{1d594}","o"],["\u{1d595}","p"],["\u{1d596}","q"],["\u{1d597}","r"],["\u{1d598}","s"],["\u{1d599}","t"],["\u{1d59a}","u"],["\u{1d59b}","v"],["\u{1d59c}","w"],["\u{1d59d}","x"],["\u{1d59e}","y"],["\u{1d59f}","z"],["\u{1d5a0}","A"],["\u{1d5a1}","B"],["\u{1d5a2}","C"],["\u{1d5a3}","D"],["\u{1d5a4}","E"],["\u{1d5a5}","F"],["\u{1d5a6}","G"],["\u{1d5a7}","H"],["\u{1d5a8}","I"],["\u{1d5a9}","J"],["\u{1d5aa}","K"],["\u{1d5ab}","L"],["\u{1d5ac}","M"],["\u{1d5ad}","N"],["\u{1d5ae}","O"],["\u{1d5af}","P"],["\u{1d5b0}","Q"],["\u{1d5b1}","R"],["\u{1d5b2}","S"],["\u{1d5b3}","T"],["\u{1d5b4}","U"],["\u{1d5b5}","V"],["\u{1d5b6}","W"],["\u{1d5b7}","X"],["\u{1d5b8}","Y"],["\u{1d5b9}","Z"],["\u{1d5ba}","a"],["\u{1d5bb}","b"],["\u{1d5bc}","c"],["\u{1d5bd}","d"],["\u{1d5be}","e"],["\u{1d5bf}","f"],["\u{1d5c0}","g"],["\u{1d5c1}","h"],["\u{1d5c2}","i"],["\u{1d5c3}","j"],["\u{1d5c4}","k"],["\u{1d5c5}","l"],["\u{1d5c6}","m"],["\u{1d5c7}","n"],["\u{1d5c8}","o"],["\u{1d5c9}","p"],["\u{1d5ca}","q"],["\u{1d5cb}","r"],["\u{1d5cc}","s"],["\u{1d5cd}","t"],["\u{1d5ce}","u"],["\u{1d5cf}","v"],["\u{1d5d0}","w"],["\u{1d5d1}","x"],["\u{1d5d2}","y"],["\u{1d5d3}","z"],["\u{1d5d4}","A"],["\u{1d5d5}","B"],["\u{1d5d6}","C"],["\u{1d5d7}","D"],["\u{1d5d8}","E"],["\u{1d5d9}","F"],["\u{1d5da}","G"],["\u{1d5db}","H"],["\u{1d5dc}","I"],["\u{1d5dd}","J"],["\u{1d5de}","K"],["\u{1d5df}","L"],["\u{1d5e0}","M"],["\u{1d5e1}","N"],["\u{1d5e2}","O"],["\u{1d5e3}","P"],["\u{1d5e4}","Q"],["\u{1d5e5}","R"],["\u{1d5e6}","S"],["\u{1d5e7}","T"],["\u{1d5e8}","U"],["\u{1d5e9}","V"],["\u{1d5ea}","W"],["\u{1d5eb}","X"],["\u{1d5ec}","Y"],["\u{1d5ed}","Z"],["\u{1d5ee}","a"],["\u{1d5ef}","b"],["\u{1d5f0}","c"],["\u{1d5f1}","d"],["\u{1d5f2}","e"],["\u{1d5f3}","f"],["\u{1d5f4}","g"],["\u{1d5f5}","h"],["\u{1d5f6}","i"],["\u{1d5f7}","j"],["\u{1d5f8}","k"],["\u{1d5f9}","l"],["\u{1d5fa}","m"],["\u{1d5fb}","n"],["\u{1d5fc}","o"],["\u{1d5fd}","p"],["\u{1d5fe}","q"],["\u{1d5ff}","r"],["\u{1d600}","s"],["\u{1d601}","t"],["\u{1d602}","u"],["\u{1d603}","v"],["\u{1d604}","w"],["\u{1d605}","x"],["\u{1d606}","y"],["\u{1d607}","z"],["\u{1d608}","A"],["\u{1d609}","B"],["\u{1d60a}","C"],["\u{1d60b}","D"],["\u{1d60c}","E"],["\u{1d60d}","F"],["\u{1d60e}","G"],["\u{1d60f}","H"],["\u{1d610}","I"],["\u{1d611}","J"],["\u{1d612}","K"],["\u{1d613}","L"],["\u{1d614}","M"],["\u{1d615}","N"],["\u{1d616}","O"],["\u{1d617}","P"],["\u{1d618}","Q"],["\u{1d619}","R"],["\u{1d61a}","S"],["\u{1d61b}","T"],["\u{1d61c}","U"],["\u{1d61d}","V"],["\u{1d61e}","W"],["\u{1d61f}","X"],["\u{1d620}","Y"],["\u{1d621}","Z"],["\u{1d622}","a"],["\u{1d623}","b"],["\u{1d624}","c"],["\u{1d625}","d"],["\u{1d626}","e"],["\u{1d627}","f"],["\u{1d628}","g"],["\u{1d629}","h"],["\u{1d62a}","i"],["\u{1d62b}","j"],["\u{1d62c}","k"],["\u{1d62d}","l"],["\u{1d62e}","m"],["\u{1d62f}","n"],["\u{1d630}","o"],["\u{1d631}","p"],["\u{1d632}","q"],["\u{1d633}","r"],["\u{1d634}","s"],["\u{1d635}","t"],["\u{1d636}","u"],["\u{1d637}","v"],["\u{1d638}","w"],["\u{1d639}","x"],["\u{1d63a}","y"],["\u{1d63b}","z"],["\u{1d63c}","A"],["\u{1d63d}","B"],["\u{1d63e}","C"],["\u{1d63f}","D"],["\u{1d640}","E"],["\u{1d641}","F"],["\u{1d642}","G"],["\u{1d643}","H"],["\u{1d644}","I"],["\u{1d645}","J"],["\u{1d646}","K"],["\u{1d647}","L"],["\u{1d648}","M"],["\u{1d649}","N"],["\u{1d64a}","O"],["\u{1d64b}","P"],["\u{1d64c}","Q"],["\u{1d64d}","R"],["\u{1d64e}","S"],["\u{1d64f}","T"],["\u{1d650}","U"],["\u{1d651}","V"],["\u{1d652}","W"],["\u{1d653}","X"],["\u{1d654}","Y"],["\u{1d655}","Z"],["\u{1d656}","a"],["\u{1d657}","b"],["\u{1d658}","c"],["\u{1d659}","d"],["\u{1d65a}","e"],["\u{1d65b}","f"],["\u{1d65c}","g"],["\u{1d65d}","h"],["\u{1d65e}","i"],["\u{1d65f}","j"],["\u{1d660}","k"],["\u{1d661}","l"],["\u{1d662}","m"],["\u{1d663}","n"],["\u{1d664}","o"],["\u{1d665}","p"],["\u{1d666}","q"],["\u{1d667}","r"],["\u{1d668}","s"],["\u{1d669}","t"],["\u{1d66a}","u"],["\u{1d66b}","v"],["\u{1d66c}","w"],["\u{1d66d}","x"],["\u{1d66e}","y"],["\u{1d66f}","z"],["\u{1d670}","A"],["\u{1d671}","B"],["\u{1d672}","C"],["\u{1d673}","D"],["\u{1d674}","E"],["\u{1d675}","F"],["\u{1d676}","G"],["\u{1d677}","H"],["\u{1d678}","I"],["\u{1d679}","J"],["\u{1d67a}","K"],["\u{1d67b}","L"],["\u{1d67c}","M"],["\u{1d67d}","N"],["\u{1d67e}","O"],["\u{1d67f}","P"],["\u{1d680}","Q"],["\u{1d681}","R"],["\u{1d682}","S"],["\u{1d683}","T"],["\u{1d684}","U"],["\u{1d685}","V"],["\u{1d686}","W"],["\u{1d687}","X"],["\u{1d688}","Y"],["\u{1d689}","Z"],["\u{1d68a}","a"],["\u{1d68b}","b"],["\u{1d68c}","c"],["\u{1d68d}","d"],["\u{1d68e}","e"],["\u{1d68f}","f"],["\u{1d690}","g"],["\u{1d691}","h"],["\u{1d692}","i"],["\u{1d693}","j"],["\u{1d694}","k"],["\u{1d695}","l"],["\u{1d696}","m"],["\u{1d697}","n"],["\u{1d698}","o"],["\u{1d699}","p"],["\u{1d69a}","q"],["\u{1d69b}","r"],["\u{1d69c}","s"],["\u{1d69d}","t"],["\u{1d69e}","u"],["\u{1d69f}","v"],["\u{1d6a0}","w"],["\u{1d6a1}","x"],["\u{1d6a2}","y"],["\u{1d6a3}","z"],["\u{1d6a4}","l"],["\u{1d6a5}","j"],["\u{1d6e2}","A"],["\u{1d6e3}","B"],["\u{1d6e4}","G"],["\u{1d6e5}","D"],["\u{1d6e6}","E"],["\u{1d6e7}","Z"],["\u{1d6e8}","I"],["\u{1d6e9}","TH"],["\u{1d6ea}","I"],["\u{1d6eb}","K"],["\u{1d6ec}","L"],["\u{1d6ed}","M"],["\u{1d6ee}","N"],["\u{1d6ef}","KS"],["\u{1d6f0}","O"],["\u{1d6f1}","P"],["\u{1d6f2}","R"],["\u{1d6f3}","TH"],["\u{1d6f4}","S"],["\u{1d6f5}","T"],["\u{1d6f6}","Y"],["\u{1d6f7}","F"],["\u{1d6f8}","x"],["\u{1d6f9}","PS"],["\u{1d6fa}","O"],["\u{1d6fb}","D"],["\u{1d6fc}","a"],["\u{1d6fd}","b"],["\u{1d6fe}","g"],["\u{1d6ff}","d"],["\u{1d700}","e"],["\u{1d701}","z"],["\u{1d702}","i"],["\u{1d703}","th"],["\u{1d704}","i"],["\u{1d705}","k"],["\u{1d706}","l"],["\u{1d707}","m"],["\u{1d708}","n"],["\u{1d709}","ks"],["\u{1d70a}","o"],["\u{1d70b}","p"],["\u{1d70c}","r"],["\u{1d70d}","s"],["\u{1d70e}","s"],["\u{1d70f}","t"],["\u{1d710}","y"],["\u{1d711}","f"],["\u{1d712}","x"],["\u{1d713}","ps"],["\u{1d714}","o"],["\u{1d715}","d"],["\u{1d716}","E"],["\u{1d717}","TH"],["\u{1d718}","K"],["\u{1d719}","f"],["\u{1d71a}","r"],["\u{1d71b}","p"],["\u{1d71c}","A"],["\u{1d71d}","V"],["\u{1d71e}","G"],["\u{1d71f}","D"],["\u{1d720}","E"],["\u{1d721}","Z"],["\u{1d722}","I"],["\u{1d723}","TH"],["\u{1d724}","I"],["\u{1d725}","K"],["\u{1d726}","L"],["\u{1d727}","M"],["\u{1d728}","N"],["\u{1d729}","KS"],["\u{1d72a}","O"],["\u{1d72b}","P"],["\u{1d72c}","S"],["\u{1d72d}","TH"],["\u{1d72e}","S"],["\u{1d72f}","T"],["\u{1d730}","Y"],["\u{1d731}","F"],["\u{1d732}","X"],["\u{1d733}","PS"],["\u{1d734}","O"],["\u{1d735}","D"],["\u{1d736}","a"],["\u{1d737}","v"],["\u{1d738}","g"],["\u{1d739}","d"],["\u{1d73a}","e"],["\u{1d73b}","z"],["\u{1d73c}","i"],["\u{1d73d}","th"],["\u{1d73e}","i"],["\u{1d73f}","k"],["\u{1d740}","l"],["\u{1d741}","m"],["\u{1d742}","n"],["\u{1d743}","ks"],["\u{1d744}","o"],["\u{1d745}","p"],["\u{1d746}","r"],["\u{1d747}","s"],["\u{1d748}","s"],["\u{1d749}","t"],["\u{1d74a}","y"],["\u{1d74b}","f"],["\u{1d74c}","x"],["\u{1d74d}","ps"],["\u{1d74e}","o"],["\u{1d74f}","a"],["\u{1d750}","e"],["\u{1d751}","i"],["\u{1d752}","k"],["\u{1d753}","f"],["\u{1d754}","r"],["\u{1d755}","p"],["\u{1d756}","A"],["\u{1d757}","B"],["\u{1d758}","G"],["\u{1d759}","D"],["\u{1d75a}","E"],["\u{1d75b}","Z"],["\u{1d75c}","I"],["\u{1d75d}","TH"],["\u{1d75e}","I"],["\u{1d75f}","K"],["\u{1d760}","L"],["\u{1d761}","M"],["\u{1d762}","N"],["\u{1d763}","KS"],["\u{1d764}","O"],["\u{1d765}","P"],["\u{1d766}","R"],["\u{1d767}","TH"],["\u{1d768}","S"],["\u{1d769}","T"],["\u{1d76a}","Y"],["\u{1d76b}","F"],["\u{1d76c}","X"],["\u{1d76d}","PS"],["\u{1d76e}","O"],["\u{1d76f}","D"],["\u{1d770}","a"],["\u{1d771}","v"],["\u{1d772}","g"],["\u{1d773}","d"],["\u{1d774}","e"],["\u{1d775}","z"],["\u{1d776}","i"],["\u{1d777}","th"],["\u{1d778}","i"],["\u{1d779}","k"],["\u{1d77a}","l"],["\u{1d77b}","m"],["\u{1d77c}","n"],["\u{1d77d}","ks"],["\u{1d77e}","o"],["\u{1d77f}","p"],["\u{1d780}","r"],["\u{1d781}","s"],["\u{1d782}","s"],["\u{1d783}","t"],["\u{1d784}","y"],["\u{1d785}","f"],["\u{1d786}","x"],["\u{1d787}","ps"],["\u{1d788}","o"],["\u{1d789}","a"],["\u{1d78a}","e"],["\u{1d78b}","i"],["\u{1d78c}","k"],["\u{1d78d}","f"],["\u{1d78e}","r"],["\u{1d78f}","p"],["\u{1d790}","A"],["\u{1d791}","V"],["\u{1d792}","G"],["\u{1d793}","D"],["\u{1d794}","E"],["\u{1d795}","Z"],["\u{1d796}","I"],["\u{1d797}","TH"],["\u{1d798}","I"],["\u{1d799}","K"],["\u{1d79a}","L"],["\u{1d79b}","M"],["\u{1d79c}","N"],["\u{1d79d}","KS"],["\u{1d79e}","O"],["\u{1d79f}","P"],["\u{1d7a0}","S"],["\u{1d7a1}","TH"],["\u{1d7a2}","S"],["\u{1d7a3}","T"],["\u{1d7a4}","Y"],["\u{1d7a5}","F"],["\u{1d7a6}","X"],["\u{1d7a7}","PS"],["\u{1d7a8}","O"],["\u{1d7a9}","D"],["\u{1d7aa}","av"],["\u{1d7ab}","g"],["\u{1d7ac}","d"],["\u{1d7ad}","e"],["\u{1d7ae}","z"],["\u{1d7af}","i"],["\u{1d7b0}","i"],["\u{1d7b1}","th"],["\u{1d7b2}","i"],["\u{1d7b3}","k"],["\u{1d7b4}","l"],["\u{1d7b5}","m"],["\u{1d7b6}","n"],["\u{1d7b7}","ks"],["\u{1d7b8}","o"],["\u{1d7b9}","p"],["\u{1d7ba}","r"],["\u{1d7bb}","s"],["\u{1d7bc}","s"],["\u{1d7bd}","t"],["\u{1d7be}","y"],["\u{1d7bf}","f"],["\u{1d7c0}","x"],["\u{1d7c1}","ps"],["\u{1d7c2}","o"],["\u{1d7c3}","a"],["\u{1d7c4}","e"],["\u{1d7c5}","i"],["\u{1d7c6}","k"],["\u{1d7c7}","f"],["\u{1d7c8}","r"],["\u{1d7c9}","p"],["\u{1d7ca}","F"],["\u{1d7cb}","f"],["\u249c","(a)"],["\u249d","(b)"],["\u249e","(c)"],["\u249f","(d)"],["\u24a0","(e)"],["\u24a1","(f)"],["\u24a2","(g)"],["\u24a3","(h)"],["\u24a4","(i)"],["\u24a5","(j)"],["\u24a6","(k)"],["\u24a7","(l)"],["\u24a8","(m)"],["\u24a9","(n)"],["\u24aa","(o)"],["\u24ab","(p)"],["\u24ac","(q)"],["\u24ad","(r)"],["\u24ae","(s)"],["\u24af","(t)"],["\u24b0","(u)"],["\u24b1","(v)"],["\u24b2","(w)"],["\u24b3","(x)"],["\u24b4","(y)"],["\u24b5","(z)"],["\u24b6","(A)"],["\u24b7","(B)"],["\u24b8","(C)"],["\u24b9","(D)"],["\u24ba","(E)"],["\u24bb","(F)"],["\u24bc","(G)"],["\u24bd","(H)"],["\u24be","(I)"],["\u24bf","(J)"],["\u24c0","(K)"],["\u24c1","(L)"],["\u24c3","(N)"],["\u24c4","(O)"],["\u24c5","(P)"],["\u24c6","(Q)"],["\u24c7","(R)"],["\u24c8","(S)"],["\u24c9","(T)"],["\u24ca","(U)"],["\u24cb","(V)"],["\u24cc","(W)"],["\u24cd","(X)"],["\u24ce","(Y)"],["\u24cf","(Z)"],["\u24d0","(a)"],["\u24d1","(b)"],["\u24d2","(b)"],["\u24d3","(c)"],["\u24d4","(e)"],["\u24d5","(f)"],["\u24d6","(g)"],["\u24d7","(h)"],["\u24d8","(i)"],["\u24d9","(j)"],["\u24da","(k)"],["\u24db","(l)"],["\u24dc","(m)"],["\u24dd","(n)"],["\u24de","(o)"],["\u24df","(p)"],["\u24e0","(q)"],["\u24e1","(r)"],["\u24e2","(s)"],["\u24e3","(t)"],["\u24e4","(u)"],["\u24e5","(v)"],["\u24e6","(w)"],["\u24e7","(x)"],["\u24e8","(y)"],["\u24e9","(z)"],["\u010a","C"],["\u010b","c"],["\u0120","G"],["\u0121","g"],["\u0126","H"],["\u0127","h"],["\u017b","Z"],["\u017c","z"],["\u{1d7ce}","0"],["\u{1d7cf}","1"],["\u{1d7d0}","2"],["\u{1d7d1}","3"],["\u{1d7d2}","4"],["\u{1d7d3}","5"],["\u{1d7d4}","6"],["\u{1d7d5}","7"],["\u{1d7d6}","8"],["\u{1d7d7}","9"],["\u{1d7d8}","0"],["\u{1d7d9}","1"],["\u{1d7da}","2"],["\u{1d7db}","3"],["\u{1d7dc}","4"],["\u{1d7dd}","5"],["\u{1d7de}","6"],["\u{1d7df}","7"],["\u{1d7e0}","8"],["\u{1d7e1}","9"],["\u{1d7e2}","0"],["\u{1d7e3}","1"],["\u{1d7e4}","2"],["\u{1d7e5}","3"],["\u{1d7e6}","4"],["\u{1d7e7}","5"],["\u{1d7e8}","6"],["\u{1d7e9}","7"],["\u{1d7ea}","8"],["\u{1d7eb}","9"],["\u{1d7ec}","0"],["\u{1d7ed}","1"],["\u{1d7ee}","2"],["\u{1d7ef}","3"],["\u{1d7f0}","4"],["\u{1d7f1}","5"],["\u{1d7f2}","6"],["\u{1d7f3}","7"],["\u{1d7f4}","8"],["\u{1d7f5}","9"],["\u{1d7f6}","0"],["\u{1d7f7}","1"],["\u{1d7f8}","2"],["\u{1d7f9}","3"],["\u{1d7fa}","4"],["\u{1d7fb}","5"],["\u{1d7fc}","6"],["\u{1d7fd}","7"],["\u{1d7fe}","8"],["\u{1d7ff}","9"],["\u2460","1"],["\u2461","2"],["\u2462","3"],["\u2463","4"],["\u2464","5"],["\u2465","6"],["\u2466","7"],["\u2467","8"],["\u2468","9"],["\u2469","10"],["\u246a","11"],["\u246b","12"],["\u246c","13"],["\u246d","14"],["\u246e","15"],["\u246f","16"],["\u2470","17"],["\u2471","18"],["\u2472","19"],["\u2473","20"],["\u2474","1"],["\u2475","2"],["\u2476","3"],["\u2477","4"],["\u2478","5"],["\u2479","6"],["\u247a","7"],["\u247b","8"],["\u247c","9"],["\u247d","10"],["\u247e","11"],["\u247f","12"],["\u2480","13"],["\u2481","14"],["\u2482","15"],["\u2483","16"],["\u2484","17"],["\u2485","18"],["\u2486","19"],["\u2487","20"],["\u2488","1."],["\u2489","2."],["\u248a","3."],["\u248b","4."],["\u248c","5."],["\u248d","6."],["\u248e","7."],["\u248f","8."],["\u2490","9."],["\u2491","10."],["\u2492","11."],["\u2493","12."],["\u2494","13."],["\u2495","14."],["\u2496","15."],["\u2497","16."],["\u2498","17."],["\u2499","18."],["\u249a","19."],["\u249b","20."],["\u24ea","0"],["\u24eb","11"],["\u24ec","12"],["\u24ed","13"],["\u24ee","14"],["\u24ef","15"],["\u24f0","16"],["\u24f1","17"],["\u24f2","18"],["\u24f3","19"],["\u24f4","20"],["\u24f5","1"],["\u24f6","2"],["\u24f7","3"],["\u24f8","4"],["\u24f9","5"],["\u24fa","6"],["\u24fb","7"],["\u24fc","8"],["\u24fd","9"],["\u24fe","10"],["\u24ff","0"],["\u{1f670}","&"],["\u{1f671}","&"],["\u{1f672}","&"],["\u{1f673}","&"],["\u{1f674}","&"],["\u{1f675}","&"],["\u{1f676}",'"'],["\u{1f677}",'"'],["\u{1f678}",'"'],["\u203d","?!"],["\u{1f679}","?!"],["\u{1f67a}","?!"],["\u{1f67b}","?!"],["\u{1f67c}","/"],["\u{1f67d}","\\"],["\u{1f707}","AR"],["\u{1f708}","V"],["\u{1f709}","V"],["\u{1f706}","VR"],["\u{1f705}","VF"],["\u{1f729}","2"],["\u{1f72a}","5"],["\u{1f761}","f"],["\u{1f762}","W"],["\u{1f763}","U"],["\u{1f767}","V"],["\u{1f768}","T"],["\u{1f76a}","V"],["\u{1f76b}","MB"],["\u{1f76c}","VB"],["\u{1f772}","3B"],["\u{1f773}","3B"],["\u{1f4af}","100"],["\u{1f519}","BACK"],["\u{1f51a}","END"],["\u{1f51b}","ON!"],["\u{1f51c}","SOON"],["\u{1f51d}","TOP"],["\u{1f51e}","18"],["\u{1f524}","abc"],["\u{1f520}","ABCD"],["\u{1f521}","abcd"],["\u{1f522}","1234"],["\u{1f523}","T&@%"],["#\ufe0f\u20e3","#"],["*\ufe0f\u20e3","*"],["0\ufe0f\u20e3","0"],["1\ufe0f\u20e3","1"],["2\ufe0f\u20e3","2"],["3\ufe0f\u20e3","3"],["4\ufe0f\u20e3","4"],["5\ufe0f\u20e3","5"],["6\ufe0f\u20e3","6"],["7\ufe0f\u20e3","7"],["8\ufe0f\u20e3","8"],["9\ufe0f\u20e3","9"],["\u{1f51f}","10"],["\u{1f170}\ufe0f","A"],["\u{1f171}\ufe0f","B"],["\u{1f18e}","AB"],["\u{1f191}","CL"],["\u{1f17e}\ufe0f","O"],["\u{1f17f}","P"],["\u{1f198}","SOS"],["\u{1f172}","C"],["\u{1f173}","D"],["\u{1f174}","E"],["\u{1f175}","F"],["\u{1f176}","G"],["\u{1f177}","H"],["\u{1f178}","I"],["\u{1f179}","J"],["\u{1f17a}","K"],["\u{1f17b}","L"],["\u{1f17c}","M"],["\u{1f17d}","N"],["\u{1f180}","Q"],["\u{1f181}","R"],["\u{1f182}","S"],["\u{1f183}","T"],["\u{1f184}","U"],["\u{1f185}","V"],["\u{1f186}","W"],["\u{1f187}","X"],["\u{1f188}","Y"],["\u{1f189}","Z"]],Nse=[["&"," and "],["\u{1f984}"," unicorn "],["\u2665"," love "]];function JF(t,n){if("string"!=typeof t)throw new TypeError(`Expected a string, got \`${typeof t}\``);const e=(n={separator:"-",lowercase:!0,decamelize:!0,customReplacements:[],preserveLeadingUnderscore:!1,preserveTrailingDash:!1,preserveCharacters:[],...n}).preserveLeadingUnderscore&&t.startsWith("_"),i=n.preserveTrailingDash&&t.endsWith("-");t=function Pse(t,n){if("string"!=typeof t)throw new TypeError(`Expected a string, got \`${typeof t}\``);n={customReplacements:[],...n};const e=new Map([...Ose,...n.customReplacements]);return(t=((t,n)=>{for(const[e,i]of n)t=t.replace(new RegExp(Ise(e),"g"),i);return t})(t=t.normalize(),e)).normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").normalize()}(t,{customReplacements:new Map([...Nse,...n.customReplacements])}),n.decamelize&&(t=(t=>t.replace(/([A-Z]{2,})(\d+)/g,"$1 $2").replace(/([a-z\d]+)([A-Z]{2,})/g,"$1 $2").replace(/([a-z\d])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-rt-z\d]+)/g,"$1 $2"))(t));const r=(t=>{let n="a-z\\d";if(n+=t.lowercase?"":"A-Z",t.preserveCharacters.length>0)for(const e of t.preserveCharacters){if(e===t.separator)throw new Error(`The separator character \`${t.separator}\` cannot be included in preserved characters: ${t.preserveCharacters}`);n+=XF(e)}return new RegExp(`[^${n}]+`,"g")})(n);return n.lowercase&&(t=t.toLowerCase()),t=(t=(t=t.replace(/([a-zA-Z\d]+)'([ts])(\s|$)/g,"$1$2$3")).replace(r,n.separator)).replace(/\\/g,""),n.separator&&(t=((t,n)=>{const e=XF(n);return t.replace(new RegExp(`${e}{2,}`,"g"),n).replace(new RegExp(`^${e}|${e}$`,"g"),"")})(t,n.separator)),e&&(t=`_${t}`),i&&(t=`${t}-`),t}var Hse=O(1651),QF=O(217),Yse=O(5965),zse=O.n(Yse);const KF={"application/prs.cww":["cww"],"application/prs.xsf+xml":["xsf"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["*xfdf"],"application/vnd.age":["age"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["*fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["*mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.pwg-xhtml-print+xml":["xhtm"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml","uo"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["*prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["*sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["*aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif","btf"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.cld":["cld"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.pytha.pyox":["pyo","pyox"],"model/vnd.sap.vds":["vds"],"model/vnd.usda":["usda"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.familysearch.gedcom":["ged"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]};Object.freeze(KF);const $se=KF,qF={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(qF);const Vse=qF;var Wu,kf,ec,Mr=function(t,n,e,i){if("a"===e&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?t!==n||!i:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?i:"a"===e?i.call(t):i?i.value:n.get(t)};Wu=new WeakMap,kf=new WeakMap,ec=new WeakMap;const Use=new class Zse{constructor(...n){Wu.set(this,new Map),kf.set(this,new Map),ec.set(this,new Map);for(const e of n)this.define(e)}define(n,e=!1){for(let[i,o]of Object.entries(n)){i=i.toLowerCase(),o=o.map(s=>s.toLowerCase()),Mr(this,ec,"f").has(i)||Mr(this,ec,"f").set(i,new Set);const r=Mr(this,ec,"f").get(i);let a=!0;for(let s of o){const l=s.startsWith("*");if(s=l?s.slice(1):s,r?.add(s),a&&Mr(this,kf,"f").set(i,s),a=!1,l)continue;const c=Mr(this,Wu,"f").get(s);if(c&&c!=i&&!e)throw new Error(`"${i} -> ${s}" conflicts with "${c} -> ${s}". Pass \`force=true\` to override this definition.`);Mr(this,Wu,"f").set(s,i)}}return this}getType(n){if("string"!=typeof n)return null;const e=n.replace(/^.*[/\\]/,"").toLowerCase(),i=e.replace(/^.*\./,"").toLowerCase();return i.length{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const n of Mr(this,ec,"f").values())Object.freeze(n);return this}_getTestState(){return{types:Mr(this,Wu,"f"),extensions:Mr(this,kf,"f")}}}(Vse,$se)._freeze();var Aa=function(t){return t.eaf="eaf",t.textgrid="textgrid",t.srt="srt",t.vtt="vtt",t.html="html",t.zip="zip",t}(Aa||{});let eL=(()=>{class t{constructor(e){this.http=e,this.baseURL=hr.apiBaseURL}convertRasFormat$(e,i){return this.http.post(this.baseURL+"/convert_alignment/"+i,e,{responseType:"blob"})}assembleReadalong$(e){return this.http.post(this.baseURL+"/assemble",e)}getLangs$(){return this.http.get(this.baseURL+"/langs")}static{this.\u0275fac=function(i){return new(i||t)(Me(su))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),tL=(()=>{class t{constructor(){this.$currentAudio=new hi(null),this.$currentText=new hi(null)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),j1=(()=>{class t{constructor(e,i,o,r){this.uploadService=e,this.rasService=i,this.b64Service=o,this.toastr=r,this.unsubscribe$=new vt,this.xmlSerializer=new XMLSerializer,this.readmeFile=new Blob(["Web Deployment Guide\n\nThis bundle has everything you need to host your ReadAlong on your own server.\n\nYour audio, (optional) image, and alignment (.readalong) assets are stored in the assets folder.\n\nThe plain text used to create your ReadAlong is also stored here along with an example index.html file.\n\nYour index.html file demonstrates the snippet and imports needed to host the ReadAlong on your server.\n\nPlease host all assets on your server, include the font and package imports defined in the index.html in your website's imports, and include the corresponding snippet everywhere you would like your ReadAlong to be displayed.\n "],{type:"text/plain"})}updateTranslations(e,i){return(0,y.Z)(function*(){const o=yield i.getTranslations();if(0==Object.keys(o).length)return e.querySelectorAll("s.translation, s.sentence__translation").forEach(r=>{r.remove()}),!1;{const r=e.querySelectorAll("s:not(.sentence__translation)"),a=new Set(Array.from(e.querySelectorAll(".editable__translation")).map(s=>s.id));return e.querySelectorAll("s.translation, s.sentence__translation").forEach(s=>{const l=s.hasAttribute("sentence-id")?s.getAttribute("sentence-id"):s.id;l in o?s.textContent=o[l]:s.remove()}),r.forEach(s=>{if(s.id in o&&!a.has(s.id)){let l=document.createElementNS(null,"s");l.setAttribute("do-not-align","true"),l.setAttribute("id",`${s.id}`),l.setAttribute("sentence-id",s.id),l.setAttribute("class","sentence__translation editable__translation"),l.setAttribute("xml:lang","eng"),l.append(o[s.id]),s.insertAdjacentElement("afterend",l)}}),!0}})()}updateImages(e,i=!0,o="image",r){var a=this;return(0,y.Z)(function*(){const s=yield r.getImages(),l=e.querySelectorAll("div[type=page]"),c=[];for(const[u,d]of Object.entries(s)){let h=l[parseInt(u)];if(h&&d){h.querySelectorAll("graphic").forEach(b=>b.remove());let p=e.createElementNS(null,"graphic"),g=yield fetch(d).then(b=>b.blob());if(g=yield(0,Hse.compress)(g,.75),i){let b=yield a.b64Service.blobToB64(g);p.setAttribute("url",b)}else{const b=Use.getExtension(g.type),T=`${o}-${u}.${b}`;c.push({blob:g,path:T}),p.setAttribute("url",`${T}`)}h.appendChild(p)}else null===d&&h.querySelectorAll("graphic").forEach(p=>p.remove())}return!!i||c})()}registerDownloadEvent(e,i){window.plausible("Download",{props:{fileType:e,downloadSource:i}})}createSingleFileBlob(e,i,o,r){var a=this;return(0,y.Z)(function*(){yield a.updateImages(e,!0,"image",i),yield a.updateTranslations(e,i);let s=a.b64Service.xmlToB64(e);if(null!==a.b64Service.jsAndFontsBundle$.value)return new Blob([`\n \n \n \n \n \n \n ${o.title}\n \n + diff --git a/pr-preview/pr-375/main.af84ddac0f0afb77.js b/pr-preview/pr-375/main.3161f3c1386a1a26.js similarity index 99% rename from pr-preview/pr-375/main.af84ddac0f0afb77.js rename to pr-preview/pr-375/main.3161f3c1386a1a26.js index d4c9df2b..08f25c5a 100644 --- a/pr-preview/pr-375/main.af84ddac0f0afb77.js +++ b/pr-preview/pr-375/main.3161f3c1386a1a26.js @@ -1,4 +1,4 @@ -(self.webpackChunkstudio_web=self.webpackChunkstudio_web||[]).push([[179],{8718:(C,de,O)=>{var y={"./read-along.entry.js":[9154,154]};function z(M){if(!O.o(y,M))return Promise.resolve().then(()=>{var L=new Error("Cannot find module '"+M+"'");throw L.code="MODULE_NOT_FOUND",L});var v=y[M],I=v[0];return O.e(v[1]).then(()=>O(I))}z.keys=()=>Object.keys(y),z.id=8718,C.exports=z},4156:(C,de,O)=>{"use strict";O.d(de,{F:()=>qr,b:()=>ni,g:()=>B,h:()=>q,r:()=>Ia});var y=O(5861);let M,v,I=!1,j=!1;const V="slot-fb{display:contents}slot-fb[hidden]{display:none}",x="http://www.w3.org/1999/xlink",N={},U=S=>"object"==(S=typeof S)||"function"===S;function X(S){var ue,Ie,Ee;return null!==(Ee=null===(Ie=null===(ue=S.head)||void 0===ue?void 0:ue.querySelector('meta[name="csp-nonce"]'))||void 0===Ie?void 0:Ie.getAttribute("content"))&&void 0!==Ee?Ee:void 0}const q=(S,ue,...Ie)=>{let Ee=null,Ve=null,ot=!1,qe=!1;const et=[],yt=xt=>{for(let $t=0;$txt[$t]).join(" "))}}if("function"==typeof S)return S(null===ue?{}:ue,et,ae);const Ct=ee(S,null);return Ct.$attrs$=ue,et.length>0&&(Ct.$children$=et),Ct.$key$=Ve,Ct},ee=(S,ue)=>({$flags$:0,$tag$:S,$text$:ue,$elm$:null,$children$:null,$attrs$:null,$key$:null}),J={},ae={forEach:(S,ue)=>S.map(Q).forEach(ue),map:(S,ue)=>S.map(Q).map(ue).map(se)},Q=S=>({vattrs:S.$attrs$,vchildren:S.$children$,vkey:S.$key$,vname:S.$name$,vtag:S.$tag$,vtext:S.$text$}),se=S=>{if("function"==typeof S.vtag){const Ie=Object.assign({},S.vattrs);return S.vkey&&(Ie.key=S.vkey),S.vname&&(Ie.name=S.vname),q(S.vtag,Ie,...S.vchildren||[])}const ue=ee(S.vtag,S.vtext);return ue.$attrs$=S.vattrs,ue.$children$=S.vchildren,ue.$key$=S.vkey,ue.$name$=S.vname,ue},B=S=>vo(S).$hostElement$,f=new WeakMap,E=(S,ue)=>"sc-"+S.$tagName$,P=(S,ue,Ie,Ee,Ve,ot)=>{if(Ie!==Ee){let qe=gr(S,ue),et=ue.toLowerCase();if("class"===ue){const yt=S.classList,Ct=k(Ie),xt=k(Ee);yt.remove(...Ct.filter($t=>$t&&!xt.includes($t))),yt.add(...xt.filter($t=>$t&&!Ct.includes($t)))}else if("style"===ue){for(const yt in Ie)(!Ee||null==Ee[yt])&&(yt.includes("-")?S.style.removeProperty(yt):S.style[yt]="");for(const yt in Ee)(!Ie||Ee[yt]!==Ie[yt])&&(yt.includes("-")?S.style.setProperty(yt,Ee[yt]):S.style[yt]=Ee[yt])}else if("key"!==ue)if("ref"===ue)Ee&&Ee(S);else if(qe||"o"!==ue[0]||"n"!==ue[1]){const yt=U(Ee);if((qe||yt&&null!==Ee)&&!Ve)try{if(S.tagName.includes("-"))S[ue]=Ee;else{const xt=Ee??"";"list"===ue?qe=!1:(null==Ie||S[ue]!=xt)&&(S[ue]=xt)}}catch{}let Ct=!1;et!==(et=et.replace(/^xlink\:?/,""))&&(ue=et,Ct=!0),null==Ee||!1===Ee?(!1!==Ee||""===S.getAttribute(ue))&&(Ct?S.removeAttributeNS(x,ue):S.removeAttribute(ue)):(!qe||4&ot||Ve)&&!yt&&(Ee=!0===Ee?"":Ee,Ct?S.setAttributeNS(x,ue,Ee):S.setAttribute(ue,Ee))}else if(ue="-"===ue[2]?ue.slice(3):gr(nl,et)?et.slice(2):et[2]+ue.slice(3),Ie||Ee){const yt=ue.endsWith(_);ue=ue.replace(he,""),Ie&&Ci.rel(S,ue,Ie,yt),Ee&&Ci.ael(S,ue,Ee,yt)}}},Z=/\s/,k=S=>S?S.split(Z):[],_="Capture",he=new RegExp(_+"$"),ce=(S,ue,Ie,Ee)=>{const Ve=11===ue.$elm$.nodeType&&ue.$elm$.host?ue.$elm$.host:ue.$elm$,ot=S&&S.$attrs$||N,qe=ue.$attrs$||N;for(Ee of De(Object.keys(ot)))Ee in qe||P(Ve,Ee,ot[Ee],void 0,Ie,ue.$flags$);for(Ee of De(Object.keys(qe)))P(Ve,Ee,ot[Ee],qe[Ee],Ie,ue.$flags$)};function De(S){return S.includes("ref")?[...S.filter(ue=>"ref"!==ue),"ref"]:S}const Ke=(S,ue,Ie,Ee)=>{const Ve=ue.$children$[Ie];let qe,et,ot=0;if(null!==Ve.$text$)qe=Ve.$elm$=Go.createTextNode(Ve.$text$);else if(qe=Ve.$elm$=Go.createElement(Ve.$tag$),ce(null,Ve,!1),(S=>null!=S)(M)&&qe["s-si"]!==M&&qe.classList.add(qe["s-si"]=M),Ve.$children$)for(ot=0;ot{let et,qe=S;for(qe.shadowRoot&&qe.tagName===v&&(qe=qe.shadowRoot);Ve<=ot;++Ve)Ee[Ve]&&(et=Ke(null,Ie,Ve),et&&(Ee[Ve].$elm$=et,qe.insertBefore(et,ue)))},Ce=(S,ue,Ie)=>{for(let Ee=ue;Ee<=Ie;++Ee){const Ve=S[Ee];if(Ve){const ot=Ve.$elm$;Tt(Ve),ot&&ot.remove()}}},lt=(S,ue,Ie=!1)=>S.$tag$===ue.$tag$&&(!!Ie||S.$key$===ue.$key$),ht=(S,ue,Ie=!1)=>{const Ee=ue.$elm$=S.$elm$,Ve=S.$children$,ot=ue.$children$,et=ue.$text$;null===et?("slot"===ue.$tag$&&!I||ce(S,ue,!1),null!==Ve&&null!==ot?((S,ue,Ie,Ee,Ve=!1)=>{let Gt,mr,ot=0,qe=0,et=0,yt=0,Ct=ue.length-1,xt=ue[0],$t=ue[Ct],fi=Ee.length-1,Nn=Ee[0],xi=Ee[fi];for(;ot<=Ct&&qe<=fi;)if(null==xt)xt=ue[++ot];else if(null==$t)$t=ue[--Ct];else if(null==Nn)Nn=Ee[++qe];else if(null==xi)xi=Ee[--fi];else if(lt(xt,Nn,Ve))ht(xt,Nn,Ve),xt=ue[++ot],Nn=Ee[++qe];else if(lt($t,xi,Ve))ht($t,xi,Ve),$t=ue[--Ct],xi=Ee[--fi];else if(lt(xt,xi,Ve))ht(xt,xi,Ve),S.insertBefore(xt.$elm$,$t.$elm$.nextSibling),xt=ue[++ot],xi=Ee[--fi];else if(lt($t,Nn,Ve))ht($t,Nn,Ve),S.insertBefore($t.$elm$,xt.$elm$),$t=ue[--Ct],Nn=Ee[++qe];else{for(et=-1,yt=ot;yt<=Ct;++yt)if(ue[yt]&&null!==ue[yt].$key$&&ue[yt].$key$===Nn.$key$){et=yt;break}et>=0?(mr=ue[et],mr.$tag$!==Nn.$tag$?Gt=Ke(ue&&ue[qe],Ie,et):(ht(mr,Nn,Ve),ue[et]=void 0,Gt=mr.$elm$),Nn=Ee[++qe]):(Gt=Ke(ue&&ue[qe],Ie,qe),Nn=Ee[++qe]),Gt&&xt.$elm$.parentNode.insertBefore(Gt,xt.$elm$)}ot>Ct?bt(S,null==Ee[fi+1]?null:Ee[fi+1].$elm$,Ie,Ee,qe,fi):qe>fi&&Ce(ue,ot,Ct)})(Ee,Ve,ue,ot,Ie):null!==ot?(null!==S.$text$&&(Ee.textContent=""),bt(Ee,null,ue,ot,0,ot.length-1)):null!==Ve&&Ce(Ve,0,Ve.length-1)):S.$text$!==et&&(Ee.data=et)},Tt=S=>{S.$attrs$&&S.$attrs$.ref&&S.$attrs$.ref(null),S.$children$&&S.$children$.map(Tt)},w=(S,ue)=>{ue&&!S.$onRenderResolve$&&ue["s-p"]&&ue["s-p"].push(new Promise(Ie=>S.$onRenderResolve$=Ie))},Ae=(S,ue)=>{if(S.$flags$|=16,!(4&S.$flags$))return w(S,S.$ancestorComponent$),Vf(()=>ke(S,ue));S.$flags$|=512},ke=(S,ue)=>{const Ee=S.$lazyInstance$;let Ve;return ue&&(S.$flags$|=256,S.$queuedListeners$&&(S.$queuedListeners$.map(([ot,qe])=>Ue(Ee,ot,qe)),S.$queuedListeners$=void 0),Ve=Ue(Ee,"componentWillLoad")),re(Ve,()=>ge(S,Ee,ue))},re=(S,ue)=>ne(S)?S.then(ue):ue(),ne=S=>S instanceof Promise||S&&S.then&&"function"==typeof S.then,ge=function(){var S=(0,y.Z)(function*(ue,Ie,Ee){var Ve;const ot=ue.$hostElement$,et=ot["s-rc"];Ee&&(S=>{const ue=S.$cmpMeta$,Ie=S.$hostElement$,Ee=ue.$flags$,ot=((S,ue,Ie)=>{var Ee;const Ve=E(ue),ot=tl.get(Ve);if(S=11===S.nodeType?S:Go,ot)if("string"==typeof ot){let et,qe=f.get(S=S.head||S);if(qe||f.set(S,qe=new Set),!qe.has(Ve)){{et=Go.createElement("style"),et.innerHTML=ot;const yt=null!==(Ee=Ci.$nonce$)&&void 0!==Ee?Ee:X(Go);null!=yt&&et.setAttribute("nonce",yt),S.insertBefore(et,S.querySelector("link"))}4&ue.$flags$&&(et.innerHTML+=V),qe&&qe.add(Ve)}}else S.adoptedStyleSheets.includes(ot)||(S.adoptedStyleSheets=[...S.adoptedStyleSheets,ot]);return Ve})(Ie.shadowRoot?Ie.shadowRoot:Ie.getRootNode(),ue);10&Ee&&(Ie["s-sc"]=ot,Ie.classList.add(ot+"-h"))})(ue);ze(ue,Ie,ot,Ee),et&&(et.map(Ct=>Ct()),ot["s-rc"]=void 0);{const Ct=null!==(Ve=ot["s-p"])&&void 0!==Ve?Ve:[],xt=()=>Ge(ue);0===Ct.length?xt():(Promise.all(Ct).then(xt),ue.$flags$|=4,Ct.length=0)}});return function(Ie,Ee,Ve){return S.apply(this,arguments)}}(),ze=(S,ue,Ie,Ee)=>{try{ue=ue.render(),S.$flags$&=-17,S.$flags$|=2,((S,ue,Ie=!1)=>{const Ee=S.$hostElement$,Ve=S.$cmpMeta$,ot=S.$vnode$||ee(null,null),qe=(S=>S&&S.$tag$===J)(ue)?ue:q(null,null,ue);if(v=Ee.tagName,Ve.$attrsToReflect$&&(qe.$attrs$=qe.$attrs$||{},Ve.$attrsToReflect$.map(([et,yt])=>qe.$attrs$[yt]=Ee[et])),Ie&&qe.$attrs$)for(const et of Object.keys(qe.$attrs$))Ee.hasAttribute(et)&&!["key","ref","style","class"].includes(et)&&(qe.$attrs$[et]=Ee[et]);qe.$tag$=null,qe.$flags$|=4,S.$vnode$=qe,qe.$elm$=ot.$elm$=Ee.shadowRoot||Ee,M=Ee["s-sc"],I=0!=(1&Ve.$flags$),ht(ot,qe,Ie)})(S,ue,Ee)}catch(Ve){ta(Ve,S.$hostElement$)}return null},Ge=S=>{const Ie=S.$hostElement$,Ve=S.$lazyInstance$,ot=S.$ancestorComponent$;Ue(Ve,"componentDidRender"),64&S.$flags$?Ue(Ve,"componentDidUpdate"):(S.$flags$|=64,pt(Ie),Ue(Ve,"componentDidLoad"),S.$onReadyResolve$(Ie),ot||Te()),S.$onInstanceResolve$(Ie),S.$onRenderResolve$&&(S.$onRenderResolve$(),S.$onRenderResolve$=void 0),512&S.$flags$&&$f(()=>Ae(S,!1)),S.$flags$&=-517},Te=S=>{pt(Go.documentElement),$f(()=>((S,ue,Ie)=>{const Ee=Ci.ce("appload",{detail:{namespace:"web-component"}});return S.dispatchEvent(Ee),Ee})(nl))},Ue=(S,ue,Ie)=>{if(S&&S[ue])try{return S[ue](Ie)}catch(Ee){ta(Ee)}},pt=S=>S.classList.add("hydrated"),Mn=(S,ue,Ie)=>{var Ee;const Ve=S.prototype;if(ue.$members$){S.watchers&&(ue.$watchers$=S.watchers);const ot=Object.entries(ue.$members$);if(ot.map(([qe,[et]])=>{31&et||2&Ie&&32&et?Object.defineProperty(Ve,qe,{get(){return((S,ue)=>vo(this).$instanceValues$.get(ue))(0,qe)},set(yt){((S,ue,Ie,Ee)=>{const Ve=vo(S),ot=Ve.$hostElement$,qe=Ve.$instanceValues$.get(ue),et=Ve.$flags$,yt=Ve.$lazyInstance$;Ie=((S,ue)=>null==S||U(S)?S:4&ue?"false"!==S&&(""===S||!!S):2&ue?parseFloat(S):1&ue?String(S):S)(Ie,Ee.$members$[ue][0]);const Ct=Number.isNaN(qe)&&Number.isNaN(Ie);if((!(8&et)||void 0===qe)&&Ie!==qe&&!Ct&&(Ve.$instanceValues$.set(ue,Ie),yt)){if(Ee.$watchers$&&128&et){const $t=Ee.$watchers$[ue];$t&&$t.map(fi=>{try{yt[fi](Ie,qe,ue)}catch(Nn){ta(Nn,ot)}})}2==(18&et)&&Ae(Ve,!1)}})(this,qe,yt,ue)},configurable:!0,enumerable:!0}):1&Ie&&64&et&&Object.defineProperty(Ve,qe,{value(...yt){var Ct;const xt=vo(this);return null===(Ct=xt?.$onInstancePromise$)||void 0===Ct?void 0:Ct.then(()=>{var $t;return null===($t=xt.$lazyInstance$)||void 0===$t?void 0:$t[qe](...yt)})}})}),1&Ie){const qe=new Map;Ve.attributeChangedCallback=function(et,yt,Ct){Ci.jmp(()=>{var xt;const $t=qe.get(et);if(this.hasOwnProperty($t))Ct=this[$t],delete this[$t];else{if(Ve.hasOwnProperty($t)&&"number"==typeof this[$t]&&this[$t]==Ct)return;if(null==$t){const fi=vo(this),Nn=fi?.$flags$;if(Nn&&!(8&Nn)&&128&Nn&&Ct!==yt){const xi=fi.$lazyInstance$,Gt=null===(xt=ue.$watchers$)||void 0===xt?void 0:xt[et];Gt?.forEach(mr=>{null!=xi[mr]&&xi[mr].call(xi,Ct,yt,et)})}return}}this[$t]=(null!==Ct||"boolean"!=typeof this[$t])&&Ct})},S.observedAttributes=Array.from(new Set([...Object.keys(null!==(Ee=ue.$watchers$)&&void 0!==Ee?Ee:{}),...ot.filter(([et,yt])=>15&yt[0]).map(([et,yt])=>{var Ct;const xt=yt[1]||et;return qe.set(xt,et),512&yt[0]&&(null===(Ct=ue.$attrsToReflect$)||void 0===Ct||Ct.push([et,xt])),xt})]))}}return S},hn=function(){var S=(0,y.Z)(function*(ue,Ie,Ee,Ve){let ot;if(!(32&Ie.$flags$)){if(Ie.$flags$|=32,Ee.$lazyBundleId$){if(ot=On(Ee),ot.then){const xt=()=>{};ot=yield ot,xt()}ot.isProxied||(Ee.$watchers$=ot.watchers,Mn(ot,Ee,2),ot.isProxied=!0);const Ct=()=>{};Ie.$flags$|=8;try{new ot(Ie)}catch(xt){ta(xt)}Ie.$flags$&=-9,Ie.$flags$|=128,Ct()}else ot=ue.constructor,customElements.whenDefined(Ee.$tagName$).then(()=>Ie.$flags$|=128);if(ot.style){let Ct=ot.style;const xt=E(Ee);if(!tl.has(xt)){const $t=()=>{};((S,ue,Ie)=>{let Ee=tl.get(S);hi&&Ie?(Ee=Ee||new CSSStyleSheet,"string"==typeof Ee?Ee=ue:Ee.replaceSync(ue)):Ee=ue,tl.set(S,Ee)})(xt,Ct,!!(1&Ee.$flags$)),$t()}}}const qe=Ie.$ancestorComponent$,et=()=>Ae(Ie,!0);qe&&qe["s-rc"]?qe["s-rc"].push(et):et()});return function(Ie,Ee,Ve,ot){return S.apply(this,arguments)}}(),wi=S=>{Ue(S,"disconnectedCallback")},pr=function(){var S=(0,y.Z)(function*(ue){if(!(1&Ci.$flags$)){const Ie=vo(ue);Ie.$rmListeners$&&(Ie.$rmListeners$.map(Ee=>Ee()),Ie.$rmListeners$=void 0),Ie?.$lazyInstance$?wi(Ie.$lazyInstance$):Ie?.$onReadyPromise$&&Ie.$onReadyPromise$.then(()=>wi(Ie.$lazyInstance$))}});return function(Ie){return S.apply(this,arguments)}}(),ni=(S,ue={})=>{var Ie;const Ve=[],ot=ue.exclude||[],qe=nl.customElements,et=Go.head,yt=et.querySelector("meta[charset]"),Ct=Go.createElement("style"),xt=[];let $t,fi=!0;Object.assign(Ci,ue),Ci.$resourcesUrl$=new URL(ue.resourcesUrl||"./",Go.baseURI).href;let Nn=!1;if(S.map(xi=>{xi[1].map(Gt=>{var mr;const Or={$flags$:Gt[0],$tagName$:Gt[1],$members$:Gt[2],$listeners$:Gt[3]};4&Or.$flags$&&(Nn=!0),Or.$members$=Gt[2],Or.$listeners$=Gt[3],Or.$attrsToReflect$=[],Or.$watchers$=null!==(mr=Gt[4])&&void 0!==mr?mr:{};const vn=Or.$tagName$,ay=class extends HTMLElement{constructor(li){super(li),ea(li=this,Or),1&Or.$flags$&&li.attachShadow({mode:"open"})}connectedCallback(){$t&&(clearTimeout($t),$t=null),fi?xt.push(this):Ci.jmp(()=>(S=>{if(!(1&Ci.$flags$)){const ue=vo(S),Ie=ue.$cmpMeta$,Ee=()=>{};if(1&ue.$flags$)ds(S,ue,Ie.$listeners$),ue?.$lazyInstance$||ue?.$onReadyPromise$&&ue.$onReadyPromise$.then(()=>{});else{ue.$flags$|=1;{let Ve=S;for(;Ve=Ve.parentNode||Ve.host;)if(Ve["s-p"]){w(ue,ue.$ancestorComponent$=Ve);break}}Ie.$members$&&Object.entries(Ie.$members$).map(([Ve,[ot]])=>{if(31&ot&&S.hasOwnProperty(Ve)){const qe=S[Ve];delete S[Ve],S[Ve]=qe}}),hn(S,ue,Ie)}Ee()}})(this))}disconnectedCallback(){Ci.jmp(()=>pr(this))}componentOnReady(){return vo(this).$onReadyPromise$}};Or.$lazyBundleId$=xi[0],!ot.includes(vn)&&!qe.get(vn)&&(Ve.push(vn),qe.define(vn,Mn(ay,Or,1)))})}),Ve.length>0&&(Nn&&(Ct.textContent+=V),Ct.textContent+=Ve+"{visibility:hidden}.hydrated{visibility:inherit}",Ct.innerHTML.length)){Ct.setAttribute("data-styles","");const xi=null!==(Ie=Ci.$nonce$)&&void 0!==Ie?Ie:X(Go);null!=xi&&Ct.setAttribute("nonce",xi),et.insertBefore(Ct,yt?yt.nextSibling:et.firstChild)}fi=!1,xt.length?xt.map(xi=>xi.connectedCallback()):Ci.jmp(()=>$t=setTimeout(Te,30))},qr=(S,ue)=>ue,ds=(S,ue,Ie,Ee)=>{Ie&&Ie.map(([Ve,ot,qe])=>{const et=rc(S,Ve),yt=_o(ue,qe),Ct=ka(Ve);Ci.ael(et,ot,yt,Ct),(ue.$rmListeners$=ue.$rmListeners$||[]).push(()=>Ci.rel(et,ot,yt,Ct))})},_o=(S,ue)=>Ie=>{try{256&S.$flags$?S.$lazyInstance$[ue](Ie):(S.$queuedListeners$=S.$queuedListeners$||[]).push([ue,Ie])}catch(Ee){ta(Ee)}},rc=(S,ue)=>8&ue?nl:S,ka=S=>vt?{passive:0!=(1&S),capture:0!=(2&S)}:0!=(2&S),el=new WeakMap,vo=S=>el.get(S),Ia=(S,ue)=>el.set(ue.$lazyInstance$=S,ue),ea=(S,ue)=>{const Ie={$flags$:0,$hostElement$:S,$cmpMeta$:ue,$instanceValues$:new Map};return Ie.$onInstancePromise$=new Promise(Ee=>Ie.$onInstanceResolve$=Ee),Ie.$onReadyPromise$=new Promise(Ee=>Ie.$onReadyResolve$=Ee),S["s-p"]=[],S["s-rc"]=[],ds(S,Ie,ue.$listeners$),el.set(S,Ie)},gr=(S,ue)=>ue in S,ta=(S,ue)=>(0,console.error)(S,ue),ac=new Map,On=(S,ue,Ie)=>{const Ee=S.$tagName$.replace(/-/g,"_"),Ve=S.$lazyBundleId$,ot=ac.get(Ve);if(ot)return ot[Ee];if(!Ie||!BUILD.hotModuleReplacement){const qe=et=>(ac.set(Ve,et),et[Ee]);if("read-along"===Ve)return O.e(154).then(O.bind(O,9154)).then(qe,ta)}return O(8718)(`./${Ve}.entry.js`).then(qe=>(ac.set(Ve,qe),qe[Ee]),ta)},tl=new Map,nl=typeof window<"u"?window:{},Go=nl.document||{head:{}},Ci={$flags$:0,$resourcesUrl$:"",jmp:S=>S(),raf:S=>requestAnimationFrame(S),ael:(S,ue,Ie,Ee)=>S.addEventListener(ue,Ie,Ee),rel:(S,ue,Ie,Ee)=>S.removeEventListener(ue,Ie,Ee),ce:(S,ue)=>new CustomEvent(S,ue)},vt=(()=>{let S=!1;try{Go.addEventListener("e",null,Object.defineProperty({},"passive",{get(){S=!0}}))}catch{}return S})(),hi=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),Qu=[],$n=[],Pn=(S,ue)=>Ie=>{S.push(Ie),j||(j=!0,ue&&4&Ci.$flags$?$f(Bt):Ci.raf(Bt))},zf=S=>{for(let ue=0;ue{zf(Qu),zf($n),(j=Qu.length>0)&&Ci.raf(Bt)},$f=S=>Promise.resolve(void 0).then(S),Vf=Pn($n,!0)},7044:(C,de,O)=>{"use strict";var y=O(5861);let M=null,I=1;const L=Symbol("SIGNAL");function j(t){const n=M;return M=t,n}function R(t){if((!me(t)||t.dirty)&&(t.dirty||t.lastCleanEpoch!==I)){if(!t.producerMustRecompute(t)&&!te(t))return t.dirty=!1,void(t.lastCleanEpoch=I);t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=I}}function te(t){B(t);for(let n=0;n0}function B(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}let Z=null;function Ae(t){return"function"==typeof t}function ke(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const re=ke(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,o)=>`${o+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function ne(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class ge{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const r of e)r.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(Ae(i))try{i()}catch(r){n=r instanceof re?r.errors:[r]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const r of o)try{Te(r)}catch(a){n=n??[],a instanceof re?n=[...n,...a.errors]:n.push(a)}}if(n)throw new re(n)}}add(n){var e;if(n&&n!==this)if(this.closed)Te(n);else{if(n instanceof ge){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&ne(e,n)}remove(n){const{_finalizers:e}=this;e&&ne(e,n),n instanceof ge&&n._removeParent(this)}}ge.EMPTY=(()=>{const t=new ge;return t.closed=!0,t})();const ze=ge.EMPTY;function Ge(t){return t instanceof ge||t&&"closed"in t&&Ae(t.remove)&&Ae(t.add)&&Ae(t.unsubscribe)}function Te(t){Ae(t)?t():t.unsubscribe()}const Ue={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},pt={setTimeout(t,n,...e){const{delegate:i}=pt;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=pt;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function tt(t){pt.setTimeout(()=>{const{onUnhandledError:n}=Ue;if(!n)throw t;n(t)})}function kt(){}const Mn=Ir("C",void 0,void 0);function Ir(t,n,e){return{kind:t,value:n,error:e}}let wi=null;function pr(t){if(Ue.useDeprecatedSynchronousErrorHandling){const n=!wi;if(n&&(wi={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=wi;if(wi=null,e)throw i}}else t()}class qr extends ge{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Ge(n)&&n.add(this)):this.destination=Ia}static create(n,e,i){return new ka(n,e,i)}next(n){this.isStopped?vo(function ao(t){return Ir("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?vo(function hn(t){return Ir("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?vo(Mn,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ds=Function.prototype.bind;function _o(t,n){return ds.call(t,n)}class rc{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){qs(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){qs(i)}else qs(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){qs(e)}}}class ka extends qr{constructor(n,e,i){let o;if(super(),Ae(n)||!n)o={next:n??void 0,error:e??void 0,complete:i??void 0};else{let r;this&&Ue.useDeprecatedNextContext?(r=Object.create(n),r.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&_o(n.next,r),error:n.error&&_o(n.error,r),complete:n.complete&&_o(n.complete,r)}):o=n}this.destination=new rc(o)}}function qs(t){Ue.useDeprecatedSynchronousErrorHandling?function ni(t){Ue.useDeprecatedSynchronousErrorHandling&&wi&&(wi.errorThrown=!0,wi.error=t)}(t):tt(t)}function vo(t,n){const{onStoppedNotification:e}=Ue;e&&pt.setTimeout(()=>e(t,n))}const Ia={closed:!0,next:kt,error:function el(t){throw t},complete:kt},ea="function"==typeof Symbol&&Symbol.observable||"@@observable";function gr(t){return t}function ac(t){return 0===t.length?gr:1===t.length?t[0]:function(e){return t.reduce((i,o)=>o(i),e)}}let On=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,o){const r=function Go(t){return t&&t instanceof qr||function nl(t){return t&&Ae(t.next)&&Ae(t.error)&&Ae(t.complete)}(t)&&Ge(t)}(e)?e:new ka(e,i,o);return pr(()=>{const{operator:a,source:s}=this;r.add(a?a.call(r,s):s?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=tl(i))((o,r)=>{const a=new ka({next:s=>{try{e(s)}catch(l){r(l),a.unsubscribe()}},error:r,complete:o});this.subscribe(a)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[ea](){return this}pipe(...e){return ac(e)(this)}toPromise(e){return new(e=tl(e))((i,o)=>{let r;this.subscribe(a=>r=a,a=>o(a),()=>i(r))})}}return t.create=n=>new t(n),t})();function tl(t){var n;return null!==(n=t??Ue.Promise)&&void 0!==n?n:Promise}const Ci=ke(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let vt=(()=>{class t extends On{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new Yf(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new Ci}next(e){pr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){pr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){pr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:o,observers:r}=this;return i||o?ze:(this.currentObservers=null,r.push(e),new ge(()=>{this.currentObservers=null,ne(r,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:o,isStopped:r}=this;i?e.error(o):r&&e.complete()}asObservable(){const e=new On;return e.source=this,e}}return t.create=(n,e)=>new Yf(n,e),t})();class Yf extends vt{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:ze}}class hi extends vt{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function Qu(t){return Ae(t?.lift)}function $n(t){return n=>{if(Qu(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Pn(t,n,e,i,o){return new zf(t,n,e,i,o)}class zf extends qr{constructor(n,e,i,o,r,a){super(n),this.onFinalize=r,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){n.error(l)}}:super._next,this._error=o?function(s){try{o(s)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function Bt(t,n){return $n((e,i)=>{let o=0;e.subscribe(Pn(i,r=>{i.next(t.call(n,r,o++))}))})}const Vf="https://g.co/ng/security#xss";class S extends Error{constructor(n,e){super(function ue(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function et(t){return{toString:t}.toString()}const Ct="__parameters__";function Nn(t,n,e){return et(()=>{const i=function fi(t){return function(...e){if(t){const i=t(...e);for(const o in i)this[o]=i[o]}}}(n);function o(...r){if(this instanceof o)return i.apply(this,r),this;const a=new o(...r);return s.annotation=a,s;function s(l,c,u){const d=l.hasOwnProperty(Ct)?l[Ct]:Object.defineProperty(l,Ct,{value:[]})[Ct];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(a),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}const Gt=globalThis;function vn(t){for(let n in t)if(t[n]===vn)return n;throw Error("Could not find renamed property on target object.")}function ay(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function li(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(li).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function sy(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const qj=vn({__forward_ref__:vn});function Dn(t){return t.__forward_ref__=Dn,t.toString=function(){return li(this())},t}function Vt(t){return Zf(t)?t():t}function Zf(t){return"function"==typeof t&&t.hasOwnProperty(qj)&&t.__forward_ref__===Dn}function hs(t,n,e){t!=n&&function Ht(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(e,t,n,"==")}function $e(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function en(t){return{providers:t.providers||[],imports:t.imports||[]}}function Gf(t){return Ax(t,Wf)||Ax(t,kx)}function Ax(t,n){return t.hasOwnProperty(n)?t[n]:null}function Uf(t){return t&&(t.hasOwnProperty(ly)||t.hasOwnProperty(r3))?t[ly]:null}const Wf=vn({\u0275prov:vn}),ly=vn({\u0275inj:vn}),kx=vn({ngInjectableDef:vn}),r3=vn({ngInjectorDef:vn});class He{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=$e({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function fy(t){return t&&!!t.\u0275providers}const Ku=vn({\u0275cmp:vn}),py=vn({\u0275dir:vn}),gy=vn({\u0275pipe:vn}),Ox=vn({\u0275mod:vn}),Oa=vn({\u0275fac:vn}),qu=vn({__NG_ELEMENT_ID__:vn}),Rx=vn({__NG_ENV_ID__:vn});function Jt(t){return"string"==typeof t?t:null==t?"":String(t)}function my(t,n){throw new S(-201,!1)}var fn=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(fn||{});let by;function Px(){return by}function Po(t){const n=by;return by=t,n}function Nx(t,n,e){const i=Gf(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&fn.Optional?null:void 0!==n?n:void my()}const ed={},yy="__NG_DI_FLAG__",Xf="ngTempTokenPath",d3=/\n/gm,Fx="__source";let sc;function fs(t){const n=sc;return sc=t,n}function p3(t,n=fn.Default){if(void 0===sc)throw new S(-203,!1);return null===sc?Nx(t,void 0,n):sc.get(t,n&fn.Optional?null:void 0,n)}function Me(t,n=fn.Default){return(Px()||p3)(Vt(t),n)}function Pe(t,n=fn.Default){return Me(t,Jf(n))}function Jf(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function _y(t){const n=[];for(let e=0;eArray.isArray(e)?cc(e,n):n(e))}function jx(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Qf(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Xo(t,n,e){let i=uc(t,n);return i>=0?t[1|i]=e:(i=~i,function Bx(t,n,e,i){let o=t.length;if(o==n)t.push(e,i);else if(1===o)t.push(i,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>n;)t[o]=t[o-2],o--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function wy(t,n){const e=uc(t,n);if(e>=0)return t[1|e]}function uc(t,n){return function Hx(t,n,e){let i=0,o=t.length>>e;for(;o!==i;){const r=i+(o-i>>1),a=t[r<n?o=r:i=r+1}return~(o<n){a=r-1;break}}}for(;r-1){let r;for(;++or?"":o[u+1].toLowerCase(),2&i&&c!==d){if(Pr(i))return!1;a=!0}}}}else{if(!a&&!Pr(i)&&!Pr(l))return!1;if(a&&Pr(l))continue;a=!1,i=l|1&i}}return Pr(i)||a}function Pr(t){return 0==(1&t)}function E3(t,n,e,i){if(null===n)return-1;let o=0;if(i||!e){let r=!1;for(;o-1)for(e++;e0?'="'+s+'"':"")+"]"}else 8&i?o+="."+a:4&i&&(o+=" "+a);else""!==o&&!Pr(a)&&(n+=Ux(r,o),o=""),i=a,r=r||!Pr(i);e++}return""!==o&&(n+=Ux(r,o)),n}function pn(t){return et(()=>{const n=Xx(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===ep.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Rr.Emulated,styles:t.styles||xn,_:null,schemas:t.schemas||null,tView:null,id:""};Jx(e);const i=t.dependencies;return e.directiveDefs=tp(i,!1),e.pipeDefs=tp(i,!0),e.id=function L3(t){let n=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const o of e)n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(e),e})}function P3(t){return dn(t)||ji(t)}function N3(t){return null!==t}function nn(t){return et(()=>({type:t.type,bootstrap:t.bootstrap||xn,declarations:t.declarations||xn,imports:t.imports||xn,exports:t.exports||xn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Wx(t,n){if(null==t)return na;const e={};for(const i in t)if(t.hasOwnProperty(i)){const o=t[i];let r,a,s=Le.None;Array.isArray(o)?(s=o[0],r=o[1],a=o[2]??r):(r=o,a=o),n?(e[r]=s!==Le.None?[i,s]:i,n[r]=a):e[r]=i}return e}function gt(t){return et(()=>{const n=Xx(t);return Jx(n),n})}function Fo(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function dn(t){return t[Ku]||null}function ji(t){return t[py]||null}function Qi(t){return t[gy]||null}function so(t,n){const e=t[Ox]||null;if(!e&&!0===n)throw new Error(`Type ${li(t)} does not have '\u0275mod' property.`);return e}function Xx(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:t.inputs||na,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||xn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Wx(t.inputs,n),outputs:Wx(t.outputs),debugInfo:null}}function Jx(t){t.features?.forEach(n=>n(t))}function tp(t,n){if(!t)return null;const e=n?Qi:P3;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(N3)}function dc(t){return{\u0275providers:t}}function j3(...t){return{\u0275providers:Dy(0,t),\u0275fromNgModule:!0}}function Dy(t,...n){const e=[],i=new Set;let o;const r=a=>{e.push(a)};return cc(n,a=>{const s=a;np(s,r,[],i)&&(o||=[],o.push(s))}),void 0!==o&&Qx(o,r),e}function Qx(t,n){for(let e=0;e{n(r,i)})}}function np(t,n,e,i){if(!(t=Vt(t)))return!1;let o=null,r=Uf(t);const a=!r&&dn(t);if(r||a){if(a&&!a.standalone)return!1;o=t}else{const l=t.ngModule;if(r=Uf(l),!r)return!1;o=l}const s=i.has(o);if(a){if(s)return!1;if(i.add(o),a.dependencies){const l="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const c of l)np(c,n,e,i)}}else{if(!r)return!1;{if(null!=r.imports&&!s){let c;i.add(o);try{cc(r.imports,u=>{np(u,n,e,i)&&(c||=[],c.push(u))})}finally{}void 0!==c&&Qx(c,n)}if(!s){const c=il(o)||(()=>new o);n({provide:o,useFactory:c,deps:xn},o),n({provide:Cy,useValue:o,multi:!0},o),n({provide:ol,useValue:()=>Me(o),multi:!0},o)}const l=r.providers;if(null!=l&&!s){const c=t;Ey(l,u=>{n(u,c)})}}}return o!==t&&void 0!==t.providers}function Ey(t,n){for(let e of t)fy(e)&&(e=e.\u0275providers),Array.isArray(e)?Ey(e,n):n(e)}const B3=vn({provide:String,useValue:vn});function Ty(t){return null!==t&&"object"==typeof t&&B3 in t}function rl(t){return"function"==typeof t}const My=new He(""),ip={},Y3={};let Ay;function op(){return void 0===Ay&&(Ay=new qf),Ay}class Lo{}class hc extends Lo{get destroyed(){return this._destroyed}constructor(n,e,i,o){super(),this.parent=e,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Iy(n,a=>this.processProvider(a)),this.records.set(Yx,fc(void 0,this)),o.has("environment")&&this.records.set(Lo,fc(void 0,this));const r=this.records.get(My);null!=r&&"string"==typeof r.value&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(Cy,xn,fn.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=j(null);try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const e=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),j(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const e=fs(this),i=Po(void 0);try{return n()}finally{fs(e),Po(i)}}get(n,e=ed,i=fn.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Rx))return n[Rx](this);i=Jf(i);const r=fs(this),a=Po(void 0);try{if(!(i&fn.SkipSelf)){let l=this.records.get(n);if(void 0===l){const c=function G3(t){return"function"==typeof t||"object"==typeof t&&t instanceof He}(n)&&Gf(n);l=c&&this.injectableDefInScope(c)?fc(ky(n),ip):null,this.records.set(n,l)}if(null!=l)return this.hydrate(n,l)}return(i&fn.Self?op():this.parent).get(n,e=i&fn.Optional&&e===ed?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Xf]=s[Xf]||[]).unshift(li(n)),r)throw s;return function m3(t,n,e,i){const o=t[Xf];throw n[Fx]&&o.unshift(n[Fx]),t.message=function b3(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let o=li(n);if(Array.isArray(n))o=n.map(li).join(" -> ");else if("object"==typeof n){let r=[];for(let a in n)if(n.hasOwnProperty(a)){let s=n[a];r.push(a+":"+("string"==typeof s?JSON.stringify(s):li(s)))}o=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${o}]: ${t.replace(d3,"\n ")}`}("\n"+t.message,o,e,i),t.ngTokenPath=o,t[Xf]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{Po(a),fs(r)}}resolveInjectorInitializers(){const n=j(null),e=fs(this),i=Po(void 0);try{const r=this.get(ol,xn,fn.Self);for(const a of r)a()}finally{fs(e),Po(i),j(n)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(li(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new S(205,!1)}processProvider(n){let e=rl(n=Vt(n))?n:Vt(n&&n.provide);const i=function $3(t){return Ty(t)?fc(void 0,t.useValue):fc(eS(t),ip)}(n);if(!rl(n)&&!0===n.multi){let o=this.records.get(e);o||(o=fc(void 0,ip,!0),o.factory=()=>_y(o.multi),this.records.set(e,o)),e=n,o.multi.push(n)}this.records.set(e,i)}hydrate(n,e){const i=j(null);try{return e.value===ip&&(e.value=Y3,e.value=e.factory()),"object"==typeof e.value&&e.value&&function Z3(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{j(i)}}injectableDefInScope(n){if(!n.providedIn)return!1;const e=Vt(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){const e=this._onDestroyHooks.indexOf(n);-1!==e&&this._onDestroyHooks.splice(e,1)}}function ky(t){const n=Gf(t),e=null!==n?n.factory:il(t);if(null!==e)return e;if(t instanceof He)throw new S(204,!1);if(t instanceof Function)return function z3(t){if(t.length>0)throw new S(204,!1);const e=function o3(t){return t&&(t[Wf]||t[kx])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new S(204,!1)}function eS(t,n,e){let i;if(rl(t)){const o=Vt(t);return il(o)||ky(o)}if(Ty(t))i=()=>Vt(t.useValue);else if(function qx(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(..._y(t.deps||[]));else if(function Kx(t){return!(!t||!t.useExisting)}(t))i=()=>Me(Vt(t.useExisting));else{const o=Vt(t&&(t.useClass||t.provide));if(!function V3(t){return!!t.deps}(t))return il(o)||ky(o);i=()=>new o(..._y(t.deps))}return i}function fc(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function Iy(t,n){for(const e of t)Array.isArray(e)?Iy(e,n):e&&fy(e)?Iy(e.\u0275providers,n):n(e)}function ia(t,n){t instanceof hc&&t.assertNotDestroyed();const i=fs(t),o=Po(void 0);try{return n()}finally{fs(i),Po(o)}}function tS(){return void 0!==Px()||null!=function f3(){return sc}()}const ci=0,nt=1,It=2,Si=3,Nr=4,lo=5,Jo=6,gc=7,Xn=8,Ki=9,Fr=10,Ut=11,od=12,iS=13,mc=14,pi=15,rd=16,bc=17,Ra=18,ad=19,oS=20,ms=21,sp=22,al=23,Qt=25,Ry=1,oa=7,yc=9,Di=10;var Py=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Py||{});function co(t){return Array.isArray(t)&&"object"==typeof t[Ry]}function uo(t){return Array.isArray(t)&&!0===t[Ry]}function Ny(t){return 0!=(4&t.flags)}function sl(t){return t.componentOffset>-1}function cp(t){return 1==(1&t.flags)}function Lr(t){return!!t.template}function Fy(t){return 0!=(512&t[It])}class r4{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function lS(t,n,e,i){null!==n?n.applyValueToInputSignal(n,i):t[e]=i}function Gi(){return cS}function cS(t){return t.type.prototype.ngOnChanges&&(t.setInput=s4),a4}function a4(){const t=dS(this),n=t?.current;if(n){const e=t.previous;if(e===na)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function s4(t,n,e,i,o){const r=this.declaredInputs[i],a=dS(t)||function l4(t,n){return t[uS]=n}(t,{previous:na,current:null}),s=a.current||(a.current={}),l=a.previous,c=l[r];s[r]=new r4(c&&c.currentValue,e,l===na),lS(t,n,o,e)}Gi.ngInherit=!0;const uS="__ngSimpleChanges__";function dS(t){return t[uS]||null}const ra=function(t,n,e){},hS="svg";let pS=!1;function Bn(t){for(;Array.isArray(t);)t=t[ci];return t}function ld(t,n){return Bn(n[t])}function wo(t,n){return Bn(n[t.index])}function cd(t,n){return t.data[n]}function _c(t,n){return t[n]}function Qo(t,n){const e=n[t];return co(e)?e:e[ci]}function Yy(t){return 128==(128&t[It])}function aa(t,n){return null==n?null:t[n]}function gS(t){t[bc]=0}function p4(t){1024&t[It]||(t[It]|=1024,Yy(t)&&ud(t))}function zy(t){return!!(9216&t[It]||t[al]?.dirty)}function $y(t){t[Fr].changeDetectionScheduler?.notify(1),zy(t)?ud(t):64&t[It]&&(function u4(){return pS}()?(t[It]|=1024,ud(t)):t[Fr].changeDetectionScheduler?.notify())}function ud(t){t[Fr].changeDetectionScheduler?.notify();let n=ll(t);for(;null!==n&&!(8192&n[It])&&(n[It]|=8192,Yy(n));)n=ll(n)}function up(t,n){if(256==(256&t[It]))throw new S(911,!1);null===t[ms]&&(t[ms]=[]),t[ms].push(n)}function ll(t){const n=t[Si];return uo(n)?n[Si]:n}const Wt={lFrame:DS(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function yS(){return Wt.bindingsEnabled}function vc(){return null!==Wt.skipHydrationRootTNode}function je(){return Wt.lFrame.lView}function gn(){return Wt.lFrame.tView}function Yt(t){return Wt.lFrame.contextLView=t,t[Xn]}function zt(t){return Wt.lFrame.contextLView=null,t}function Fn(){let t=_S();for(;null!==t&&64===t.type;)t=t.parent;return t}function _S(){return Wt.lFrame.currentTNode}function dd(){const t=Wt.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function sa(t,n){const e=Wt.lFrame;e.currentTNode=t,e.isParent=n}function Zy(){return Wt.lFrame.isParent}function Gy(){Wt.lFrame.isParent=!1}function Co(){const t=Wt.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function jr(){return Wt.lFrame.bindingIndex++}function Na(t){const n=Wt.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function CS(t){Wt.lFrame.inI18n=t}function D4(t,n){const e=Wt.lFrame;e.bindingIndex=e.bindingRootIndex=t,Uy(n)}function Uy(t){Wt.lFrame.currentDirectiveIndex=t}function Wy(t){const n=Wt.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function Xy(){return Wt.lFrame.currentQueryIndex}function dp(t){Wt.lFrame.currentQueryIndex=t}function T4(t){const n=t[nt];return 2===n.type?n.declTNode:1===n.type?t[lo]:null}function xS(t,n,e){if(e&fn.SkipSelf){let o=n,r=t;for(;!(o=o.parent,null!==o||e&fn.Host||(o=T4(r),null===o||(r=r[mc],10&o.type))););if(null===o)return!1;n=o,t=r}const i=Wt.lFrame=SS();return i.currentTNode=n,i.lView=t,!0}function Jy(t){const n=SS(),e=t[nt];Wt.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function SS(){const t=Wt.lFrame,n=null===t?null:t.child;return null===n?DS(t):n}function DS(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function ES(){const t=Wt.lFrame;return Wt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const TS=ES;function Qy(){const t=ES();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ho(){return Wt.lFrame.selectedIndex}function cl(t){Wt.lFrame.selectedIndex=t}function Jn(){const t=Wt.lFrame;return cd(t.tView,t.selectedIndex)}function hd(){Wt.lFrame.currentNamespace=hS}let AS=!0;function fd(){return AS}function la(t){AS=t}function hp(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[l]<0&&(t[bc]+=65536),(s>14>16&&(3&t[It])===n&&(t[It]+=16384,IS(s,r)):IS(s,r)}const wc=-1;class pd{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function e_(t){return t!==wc}function gd(t){return 32767&t}function md(t,n){let e=function j4(t){return t>>16}(t),i=n;for(;e>0;)i=i[mc],e--;return i}let t_=!0;function gp(t){const n=t_;return t_=t,n}const OS=255,RS=5;let B4=0;const ca={};function mp(t,n){const e=PS(t,n);if(-1!==e)return e;const i=n[nt];i.firstCreatePass&&(t.injectorIndex=n.length,n_(i.data,t),n_(n,null),n_(i.blueprint,null));const o=bp(t,n),r=t.injectorIndex;if(e_(o)){const a=gd(o),s=md(o,n),l=s[nt].data;for(let c=0;c<8;c++)n[r+c]=s[a+c]|l[a+c]}return n[r+8]=o,r}function n_(t,n){t.push(0,0,0,0,0,0,0,0,n)}function PS(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function bp(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,o=n;for(;null!==o;){if(i=YS(o),null===i)return wc;if(e++,o=o[mc],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return wc}function i_(t,n,e){!function H4(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(qu)&&(i=e[qu]),null==i&&(i=e[qu]=B4++);const o=i&OS;n.data[t+(o>>RS)]|=1<=0?n&OS:V4:n}(e);if("function"==typeof r){if(!xS(n,t,i))return i&fn.Host?NS(o,0,i):FS(n,e,i,o);try{let a;if(a=r(i),null!=a||i&fn.Optional)return a;my()}finally{TS()}}else if("number"==typeof r){let a=null,s=PS(t,n),l=wc,c=i&fn.Host?n[pi][lo]:null;for((-1===s||i&fn.SkipSelf)&&(l=-1===s?bp(t,n):n[s+8],l!==wc&&HS(i,!1)?(a=n[nt],s=gd(l),n=md(l,n)):s=-1);-1!==s;){const u=n[nt];if(BS(r,s,u.data)){const d=z4(s,n,e,a,i,c);if(d!==ca)return d}l=n[s+8],l!==wc&&HS(i,n[nt].data[s+8]===c)&&BS(r,s,n)?(a=u,s=gd(l),n=md(l,n)):s=-1}}return o}function z4(t,n,e,i,o,r){const a=n[nt],s=a.data[t+8],u=yp(s,a,e,null==i?sl(s)&&t_:i!=a&&0!=(3&s.type),o&fn.Host&&r===s);return null!==u?ul(n,a,u,s):ca}function yp(t,n,e,i,o){const r=t.providerIndexes,a=n.data,s=1048575&r,l=t.directiveStart,u=r>>20,h=o?s+u:t.directiveEnd;for(let p=i?s:s+u;p=l&&g.type===e)return p}if(o){const p=a[l];if(p&&Lr(p)&&p.type===e)return l}return null}function ul(t,n,e,i){let o=t[e];const r=n.data;if(function P4(t){return t instanceof pd}(o)){const a=o;a.resolving&&function l3(t,n){throw n&&n.join(" > "),new S(-200,t)}(function An(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Jt(t)}(r[e]));const s=gp(a.canSeeViewProviders);a.resolving=!0;const c=a.injectImpl?Po(a.injectImpl):null;xS(t,i,fn.Default);try{o=t[e]=a.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function O4(t,n,e){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=n.type.prototype;if(i){const a=cS(n);(e.preOrderHooks??=[]).push(t,a),(e.preOrderCheckHooks??=[]).push(t,a)}o&&(e.preOrderHooks??=[]).push(0-t,o),r&&((e.preOrderHooks??=[]).push(t,r),(e.preOrderCheckHooks??=[]).push(t,r))}(e,r[e],n)}finally{null!==c&&Po(c),gp(s),a.resolving=!1,TS()}}return o}function BS(t,n,e){return!!(e[n+(t>>RS)]&1<{const n=t.prototype.constructor,e=n[Oa]||o_(n),i=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==i;){const r=o[Oa]||o_(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function o_(t){return Zf(t)?()=>{const n=o_(Vt(t));return n&&n()}:il(t)}function YS(t){const n=t[nt],e=n.type;return 2===e?n.declTNode:1===e?t[lo]:null}function ua(t){return function Y4(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let o=0;for(;o{class t{static{this.THROW_IF_NOT_FOUND=ed}static{this.NULL=new qf}static create(e,i){if(Array.isArray(e))return GS({name:""},i,e,"");{const o=e.name??"";return GS({name:o},e.parent,e.providers,o)}}static{this.\u0275prov=$e({token:t,providedIn:"any",factory:()=>Me(Yx)})}static{this.__NG_ELEMENT_ID__=-1}}return t})();function a_(t){return t.ngOriginalError}class Ko{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&a_(n);for(;e&&a_(e);)e=a_(e);return e||null}}const XS=new He("",{providedIn:"root",factory:()=>Pe(Ko).handleError.bind(void 0)});let Sc=(()=>{class t{static{this.__NG_ELEMENT_ID__=e8}static{this.__NG_ENV_ID__=e=>e}}return t})();class q4 extends Sc{constructor(n){super(),this._lView=n}onDestroy(n){return up(this._lView,n),()=>function Vy(t,n){if(null===t[ms])return;const e=t[ms].indexOf(n);-1!==e&&t[ms].splice(e,1)}(this._lView,n)}}function e8(){return new q4(je())}function t8(){return Dc(Fn(),je())}function Dc(t,n){return new Zt(wo(t,n))}let Zt=(()=>{class t{constructor(e){this.nativeElement=e}static{this.__NG_ELEMENT_ID__=t8}}return t})();function QS(t){return t instanceof Zt?t.nativeElement:t}function s_(t){return n=>{setTimeout(t,void 0,n)}}const Ot=class n8 extends vt{constructor(n=!1){super(),this.destroyRef=void 0,this.__isAsync=n,tS()&&(this.destroyRef=Pe(Sc,{optional:!0})??void 0)}emit(n){const e=j(null);try{super.next(n)}finally{j(e)}}subscribe(n,e,i){let o=n,r=e||(()=>null),a=i;if(n&&"object"==typeof n){const l=n;o=l.next?.bind(l),r=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(r=s_(r),o&&(o=s_(o)),a&&(a=s_(a)));const s=super.subscribe({next:o,error:r,complete:a});return n instanceof ge&&n.add(s),s}};function i8(){return this._results[Symbol.iterator]()}class Fa{get changes(){return this._changes??=new Ot}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const e=Fa.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=i8)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){this.dirty=!1;const i=function No(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function w3(t,n,e){if(t.length!==n.length)return!1;for(let i=0;iD8}),D8="ng",bD=new He(""),La=new He("",{providedIn:"platform",factory:()=>"unknown"}),xo=new He(""),h_=new He("",{providedIn:"root",factory:()=>bs().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let yD=()=>null;function v_(t,n,e=!1){return yD(t,n,e)}const xD=new He("",{providedIn:"root",factory:()=>!1});let kp,Ip;function Mc(t){return function S_(){if(void 0===kp&&(kp=null,Gt.trustedTypes))try{kp=Gt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return kp}()?.createHTML(t)||t}function D_(){if(void 0===Ip&&(Ip=null,Gt.trustedTypes))try{Ip=Gt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ip}function DD(t){return D_()?.createHTML(t)||t}function TD(t){return D_()?.createScriptURL(t)||t}class dl{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Vf})`}}class B8 extends dl{getTypeName(){return"HTML"}}class H8 extends dl{getTypeName(){return"Style"}}class Y8 extends dl{getTypeName(){return"Script"}}class z8 extends dl{getTypeName(){return"URL"}}class $8 extends dl{getTypeName(){return"ResourceURL"}}function qo(t){return t instanceof dl?t.changingThisBreaksApplicationSecurity:t}function da(t,n){const e=function V8(t){return t instanceof dl&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${Vf})`)}return e===n}function MD(t){const n=new Q8(t);return function K8(){try{return!!(new window.DOMParser).parseFromString(Mc(""),"text/html")}catch{return!1}}()?new J8(n):n}class J8{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(Mc(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class Q8{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=Mc(n),e}}const q8=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Op(t){return(t=String(t)).match(q8)?t:"unsafe:"+t}function ja(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function xd(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const AD=ja("area,br,col,hr,img,wbr"),kD=ja("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ID=ja("rp,rt"),E_=xd(AD,xd(kD,ja("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),xd(ID,ja("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),xd(ID,kD)),T_=ja("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),OD=xd(T_,ja("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ja("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),e5=ja("script,style,template");class t5{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0,o=[];for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)o.push(e),e=o5(e);else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=i5(e);if(r){e=r;break}e=o.pop()}return this.buf.join("")}startElement(n){const e=RD(n).toLowerCase();if(!E_.hasOwnProperty(e))return this.sanitizedSomething=!0,!e5.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let o=0;o"),!0}endElement(n){const e=RD(n).toLowerCase();E_.hasOwnProperty(e)&&!AD.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(ND(n))}}function i5(t){const n=t.nextSibling;if(n&&t!==n.previousSibling)throw PD(n);return n}function o5(t){const n=t.firstChild;if(n&&function n5(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(t,n))throw PD(n);return n}function RD(t){const n=t.nodeName;return"string"==typeof n?n:"FORM"}function PD(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}const r5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,a5=/([^\#-~ |!])/g;function ND(t){return t.replace(/&/g,"&").replace(r5,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(a5,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let Rp;function FD(t,n){let e=null;try{Rp=Rp||MD(t);let i=n?String(n):"";e=Rp.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=e.innerHTML,e=Rp.getInertBodyElement(i)}while(i!==r);return Mc((new t5).sanitizeChildren(M_(e)||e))}finally{if(e){const i=M_(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function M_(t){return"content"in t&&function s5(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ui=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ui||{});function A_(t){const n=Dd();return n?DD(n.sanitize(Ui.HTML,t)||""):da(t,"HTML")?DD(qo(t)):FD(bs(),Jt(t))}function Sd(t){const n=Dd();return n?n.sanitize(Ui.URL,t)||"":da(t,"URL")?qo(t):Op(Jt(t))}function LD(t){const n=Dd();if(n)return TD(n.sanitize(Ui.RESOURCE_URL,t)||"");if(da(t,"ResourceURL"))return TD(qo(t));throw new S(904,!1)}function Dd(){const t=je();return t&&t[Fr].sanitizer}const f5=/^>|^->||--!>|)/g,g5="\u200b$1\u200b";function er(t){return t instanceof Function?t():t}var _s=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(_s||{});let R_;function P_(t,n){return R_(t,n)}function kc(t,n,e,i,o){if(null!=i){let r,a=!1;uo(i)?r=i:co(i)&&(a=!0,i=i[ci]);const s=Bn(i);0===t&&null!==e?null==o?JD(n,e,s):hl(n,e,s,o||null,!0):1===t&&null!==e?hl(n,e,s,o||null,!0):2===t?function Md(t,n,e){const i=jp(t,n);i&&function P5(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,s,a):3===t&&n.destroyNode(s),null!=r&&function L5(t,n,e,i,o){const r=e[oa];r!==Bn(e)&&kc(n,t,i,r,o);for(let s=Di;sn.replace(p5,g5))}(n))}function Fp(t,n,e){return t.createElement(n,e)}function UD(t,n){n[Fr].changeDetectionScheduler?.notify(1),Hp(t,n,n[Ut],2,null,null)}function WD(t,n){const e=t[yc],i=e.indexOf(n);e.splice(i,1)}function Ed(t,n){if(t.length<=Di)return;const e=Di+n,i=t[e];if(i){const o=i[rd];null!==o&&o!==t&&WD(o,i),n>0&&(t[e-1][Nr]=i[Nr]);const r=Qf(t,Di+n);!function T5(t,n){UD(t,n),n[ci]=null,n[lo]=null}(i[nt],i);const a=r[Ra];null!==a&&a.detachView(r[nt]),i[Si]=null,i[Nr]=null,i[It]&=-129}return i}function Lp(t,n){if(!(256&n[It])){const e=n[Ut];e.destroyNode&&Hp(t,n,e,3,null,null),function A5(t){let n=t[od];if(!n)return L_(t[nt],t);for(;n;){let e=null;if(co(n))e=n[od];else{const i=n[Di];i&&(e=i)}if(!e){for(;n&&!n[Nr]&&n!==t;)co(n)&&L_(n[nt],n),n=n[Si];null===n&&(n=t),co(n)&&L_(n[nt],n),e=n&&n[Nr]}n=e}}(n)}}function L_(t,n){if(256&n[It])return;const e=j(null);try{n[It]&=-129,n[It]|=256,n[al]&&function ae(t){if(B(t),me(t))for(let n=0;n=0?i[a]():i[-a].unsubscribe(),r+=2}else e[r].call(i[e[r+1]]);null!==i&&(n[gc]=null);const o=n[ms];if(null!==o){n[ms]=null;for(let r=0;r-1){const{encapsulation:r}=t.data[i.directiveStart+o];if(r===Rr.None||r===Rr.Emulated)return null}return wo(i,e)}}function hl(t,n,e,i,o){t.insertBefore(n,e,i,o)}function JD(t,n,e){t.appendChild(n,e)}function QD(t,n,e,i,o){null!==i?hl(t,n,e,i,o):JD(t,n,e)}function jp(t,n){return t.parentNode(n)}function KD(t,n,e){return eE(t,n,e)}function qD(t,n,e){return 40&t.type?wo(t,e):null}let B_,eE=qD;function tE(t,n){eE=t,B_=n}function Bp(t,n,e,i){const o=j_(t,i,n),r=n[Ut],s=KD(i.parent||n[lo],i,n);if(null!=o)if(Array.isArray(e))for(let l=0;lQt&&sE(t,n,Qt,!1),ra(a?2:0,o),e(i,o)}finally{cl(r),ra(a?3:1,o)}}function V_(t,n,e){if(Ny(n)){const i=j(null);try{const r=n.directiveEnd;for(let a=n.directiveStart;anull;function hE(t,n,e,i,o){for(let r in n){if(!n.hasOwnProperty(r))continue;const a=n[r];if(void 0===a)continue;i??={};let s,l=Le.None;Array.isArray(a)?(s=a[0],l=a[1]):s=a;let c=r;if(null!==o){if(!o.hasOwnProperty(r))continue;c=o[r]}0===t?fE(i,e,c,s,l):fE(i,e,c,s)}return i}function fE(t,n,e,i,o){let r;t.hasOwnProperty(e)?(r=t[e]).push(n,i):r=t[e]=[n,i],void 0!==o&&r.push(o)}function Bo(t,n,e,i,o,r,a,s){const l=wo(n,e);let u,c=n.inputs;!s&&null!=c&&(u=c[i])?(K_(t,e,u,i,o),sl(n)&&function J5(t,n){const e=Qo(n,t);16&e[It]||(e[It]|=64)}(e,n.index)):3&n.type&&(i=function X5(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),o=null!=a?a(o,n.value||"",i):o,r.setProperty(l,i,o))}function W_(t,n,e,i){if(yS()){const o=null===i?null:{"":-1},r=function nB(t,n){const e=t.directiveRegistry;let i=null,o=null;if(e)for(let r=0;r0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=s&&a.push(s),a.push(e,i,r)}}(t,n,i,Ad(t,e,o.hostVars,tn),o)}function ha(t,n,e,i,o,r){const a=wo(t,n);!function J_(t,n,e,i,o,r,a){if(null==r)t.removeAttribute(n,o,e);else{const s=null==a?Jt(r):a(r,i||"",o);t.setAttribute(n,o,s,e)}}(n[Ut],a,r,t.value,e,i,o)}function lB(t,n,e,i,o,r){const a=r[n];if(null!==a)for(let s=0;s0&&(e[o-1][Nr]=n),i!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{ud(t.lView)},consumerOnSignalRead(){this.lView[al]=this}},SE=100;function Vp(t,n=!0,e=0){const i=t[Fr],o=i.rendererFactory;o.begin?.();try{!function bB(t,n){tv(t,n);let e=0;for(;zy(t);){if(e===SE)throw new S(103,!1);e++,tv(t,1)}}(t,e)}catch(a){throw n&&$p(t,a),a}finally{o.end?.(),i.inlineEffectRunner?.flush()}}function yB(t,n,e,i){const o=n[It];if(256==(256&o))return;n[Fr].inlineEffectRunner?.flush(),Jy(n);let a=null,s=null;(function _B(t){return 2!==t.type})(t)&&(s=function fB(t){return t[al]??function pB(t){const n=xE.pop()??Object.create(mB);return n.lView=t,n}(t)}(n),a=function ee(t){return t&&(t.nextProducerIndex=0),j(t)}(s));try{gS(n),function wS(t){return Wt.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&cE(t,n,e,2,i);const l=3==(3&o);if(l){const d=t.preOrderCheckHooks;null!==d&&fp(n,d,null)}else{const d=t.preOrderHooks;null!==d&&pp(n,d,0,null),Ky(n,0)}if(function vB(t){for(let n=sD(t);null!==n;n=lD(n)){if(!(n[It]&Py.HasTransplantedViews))continue;const e=n[yc];for(let i=0;it.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}(s,a),function gB(t){t.lView[al]!==t&&(t.lView=null,xE.push(t))}(s)),Qy()}}function DE(t,n){for(let e=sD(t);null!==e;e=lD(e))for(let i=Di;i-1&&(Ed(n,i),Qf(e,i))}this._attachedToViewContainer=!1}Lp(this._lView[nt],this._lView)}onDestroy(n){up(this._lView,n)}markForCheck(){Rd(this._cdRefInjectingView||this._lView)}detach(){this._lView[It]&=-129}reattach(){$y(this._lView),this._lView[It]|=128}detectChanges(){this._lView[It]|=1024,Vp(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,UD(this._lView[nt],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=n,$y(this._lView)}}let po=(()=>{class t{static{this.__NG_ELEMENT_ID__=SB}}return t})();const CB=po,xB=class extends CB{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e)}createEmbeddedViewImpl(n,e,i){const o=kd(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:e,dehydratedView:i});return new Pd(o)}};function SB(){return Zp(Fn(),je())}function Zp(t,n){return 4&t.type?new xB(n,t,Dc(t,n)):null}let RE=()=>null;function Rc(t,n){return RE(t,n)}class Jp{}class WB{}class PE{}class JB{resolveComponentFactory(n){throw function XB(t){const n=Error(`No component factory found for ${li(t)}.`);return n.ngComponent=t,n}(n)}}let fl=(()=>{class t{static{this.NULL=new JB}}return t})();class sv{}let Ha=(()=>{class t{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function QB(){const t=je(),e=Qo(Fn().index,t);return(co(e)?e:t)[Ut]}()}}return t})(),KB=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:()=>null})}}return t})();const lv={},FE=new Set;function fa(t){FE.has(t)||(FE.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function LE(...t){}class wt{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ot(!1),this.onMicrotaskEmpty=new Ot(!1),this.onStable=new Ot(!1),this.onError=new Ot(!1),typeof Zone>"u")throw new S(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&e,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function qB(){const t="function"==typeof Gt.requestAnimationFrame;let n=Gt[t?"requestAnimationFrame":"setTimeout"],e=Gt[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&e){const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);const o=e[Zone.__symbol__("OriginalDelegate")];o&&(e=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function n6(t){const n=()=>{!function t6(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Gt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,uv(t),t.isCheckStableRunning=!0,cv(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),uv(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,o,r,a,s)=>{if(function i6(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(s))return e.invokeTask(o,r,a,s);try{return jE(t),e.invokeTask(o,r,a,s)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),BE(t)}},onInvoke:(e,i,o,r,a,s,l)=>{try{return jE(t),e.invoke(o,r,a,s,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),BE(t)}},onHasTask:(e,i,o,r)=>{e.hasTask(o,r),i===o&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,uv(t),cv(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,o,r)=>(e.handleError(o,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!wt.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(wt.isInAngularZone())throw new S(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,o){const r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+o,n,e6,LE,LE);try{return r.runTask(a,e,i)}finally{r.cancelTask(a)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const e6={};function cv(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function uv(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function jE(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function BE(t){t._nesting--,cv(t)}class HE{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ot,this.onMicrotaskEmpty=new Ot,this.onStable=new Ot,this.onError=new Ot}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,o){return n.apply(e,i)}}var pl=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(pl||{});const YE={destroy(){}};function zE(t,n){!n&&function rp(t){if(!tS())throw new S(-203,!1)}();const e=n?.injector??Pe(gi);if(!function ys(t){return"browser"===(t??Pe(gi)).get(La)}(e))return YE;fa("NgAfterNextRender");const i=e.get(Bd),o=i.handler??=new VE,r=n?.phase??pl.MixedReadWrite,a=()=>{o.unregister(l),s()},s=e.get(Sc).onDestroy(a),l=ia(e,()=>new $E(r,()=>{a(),t()}));return o.register(l),{destroy:a}}class $E{constructor(n,e){this.phase=n,this.callbackFn=e,this.zone=Pe(wt),this.errorHandler=Pe(Ko,{optional:!0}),Pe(Jp,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(n){this.errorHandler?.handleError(n)}}}class VE{constructor(){this.executingCallbacks=!1,this.buckets={[pl.EarlyRead]:new Set,[pl.Write]:new Set,[pl.MixedReadWrite]:new Set,[pl.Read]:new Set},this.deferredCallbacks=new Set}register(n){(this.executingCallbacks?this.deferredCallbacks:this.buckets[n.phase]).add(n)}unregister(n){this.buckets[n.phase].delete(n),this.deferredCallbacks.delete(n)}execute(){this.executingCallbacks=!0;for(const n of Object.values(this.buckets))for(const e of n)e.invoke();this.executingCallbacks=!1;for(const n of this.deferredCallbacks)this.buckets[n.phase].add(n);this.deferredCallbacks.clear()}destroy(){for(const n of Object.values(this.buckets))n.clear();this.deferredCallbacks.clear()}}let Bd=(()=>{class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const e=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const i of e)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static{this.\u0275prov=$e({token:t,providedIn:"root",factory:()=>new t})}}return t})();function Kp(t,n,e){let i=e?t.styles:null,o=e?t.classes:null,r=0;if(null!==n)for(let a=0;a0&&rE(t,e,r.join(" "))}}(p,pe,b,i),void 0!==e&&function m6(t,n,e){const i=t.projection=[];for(let o=0;o{class t{static{this.__NG_ELEMENT_ID__=y6}}return t})();function y6(){return QE(Fn(),je())}const _6=So,XE=class extends _6{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Dc(this._hostTNode,this._hostLView)}get injector(){return new Hi(this._hostTNode,this._hostLView)}get parentInjector(){const n=bp(this._hostTNode,this._hostLView);if(e_(n)){const e=md(n,this._hostLView),i=gd(n);return new Hi(e[nt].data[i+8],e)}return new Hi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=JE(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-Di}createEmbeddedView(n,e,i){let o,r;"number"==typeof i?o=i:null!=i&&(o=i.index,r=i.injector);const a=Rc(this._lContainer,n.ssrId),s=n.createEmbeddedViewImpl(e||{},r,a);return this.insertImpl(s,o,Oc(this._hostTNode,a)),s}createComponent(n,e,i,o,r){const a=n&&!function id(t){return"function"==typeof t}(n);let s;if(a)s=e;else{const g=e||{};s=g.index,i=g.injector,o=g.projectableNodes,r=g.environmentInjector||g.ngModuleRef}const l=a?n:new zd(dn(n)),c=i||this.parentInjector;if(!r&&null==l.ngModule){const b=(a?c:this.parentInjector).get(Lo,null);b&&(r=b)}const u=dn(l.componentType??{}),d=Rc(this._lContainer,u?.id??null),p=l.create(c,o,d?.firstChild??null,r);return this.insertImpl(p.hostView,s,Oc(this._hostTNode,d)),p}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){const o=n._lView;if(function f4(t){return uo(t[Si])}(o)){const s=this.indexOf(n);if(-1!==s)this.detach(s);else{const l=o[Si],c=new XE(l,l[lo],l[Si]);c.detach(c.indexOf(n))}}const r=this._adjustIndex(e),a=this._lContainer;return Id(a,o,r,i),n.attachToViewContainerRef(),jx(pv(a),r,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=JE(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=Ed(this._lContainer,e);i&&(Qf(pv(this._lContainer),e),Lp(i[nt],i))}detach(n){const e=this._adjustIndex(n,-1),i=Ed(this._lContainer,e);return i&&null!=Qf(pv(this._lContainer),e)?new Pd(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function JE(t){return t[8]}function pv(t){return t[8]||(t[8]=[])}function QE(t,n){let e;const i=n[t.index];return uo(i)?e=i:(e=mE(i,n,null,t),n[t.index]=e,zp(n,e)),KE(e,n,t,i),new XE(e,t,n)}let KE=function eT(t,n,e,i){if(t[oa])return;let o;o=8&e.type?Bn(i):function v6(t,n){const e=t[Ut],i=e.createComment(""),o=wo(n,t);return hl(e,jp(e,o),i,function N5(t,n){return t.nextSibling(n)}(e,o),!1),i}(n,e),t[oa]=o},gv=()=>!1;class mv{constructor(n){this.queryList=n,this.matches=null}clone(){return new mv(this.queryList)}setDirty(){this.queryList.setDirty()}}class bv{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,o=[];for(let r=0;rn.trim())}(n):n}}class yv{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i0)i.push(a[s/2]);else{const c=r[s+1],u=n[-l];for(let d=Di;d=0;i--){const o=t[i];o.hostVars=n+=o.hostVars,o.hostAttrs=nd(o.hostAttrs,e=nd(e,o.hostAttrs))}}(i)}function H6(t,n){for(const e in n.inputs){if(!n.inputs.hasOwnProperty(e)||t.inputs.hasOwnProperty(e))continue;const i=n.inputs[e];if(void 0!==i&&(t.inputs[e]=i,t.declaredInputs[e]=n.declaredInputs[e],null!==n.inputTransforms)){const o=Array.isArray(i)?i[0]:i;if(!n.inputTransforms.hasOwnProperty(o))continue;t.inputTransforms??={},t.inputTransforms[o]=n.inputTransforms[o]}}}function eg(t){return t===na?{}:t===xn?[]:t}function z6(t,n){const e=t.viewQuery;t.viewQuery=e?(i,o)=>{n(i,o),e(i,o)}:n}function $6(t,n){const e=t.contentQueries;t.contentQueries=e?(i,o,r)=>{n(i,o,r),e(i,o,r)}:n}function V6(t,n){const e=t.hostBindings;t.hostBindings=e?(i,o)=>{n(i,o),e(i,o)}:n}function qi(t){const n=t.inputConfig,e={};for(const i in n)if(n.hasOwnProperty(i)){const o=n[i];Array.isArray(o)&&o[3]&&(e[i]=o[3])}t.inputTransforms=e}class gl{}class DT{}class Sv extends gl{constructor(n,e,i){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new UE(this);const o=so(n);this._bootstrapComponents=er(o.bootstrap),this._r3Injector=US(n,e,[{provide:gl,useValue:this},{provide:fl,useValue:this.componentFactoryResolver},...i],li(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Dv extends DT{constructor(n){super(),this.moduleType=n}create(n){return new Sv(this.moduleType,n,[])}}class ET extends gl{constructor(n){super(),this.componentFactoryResolver=new UE(this),this.instance=null;const e=new hc([...n.providers,{provide:gl,useValue:this},{provide:fl,useValue:this.componentFactoryResolver}],n.parent||op(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function tg(t,n,e=null){return new ET({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}let Cs=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new hi(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function ig(t){return!!Ev(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function Ev(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function pa(t,n,e){return t[n]=e}function Ei(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function ml(t,n,e,i){const o=Ei(t,n,e);return Ei(t,n+1,i)||o}function Mt(t,n,e,i,o,r,a,s){const l=je(),c=gn(),u=t+Qt,d=c.firstCreatePass?function i7(t,n,e,i,o,r,a,s,l){const c=n.consts,u=Ic(n,t,4,a||null,aa(c,s));W_(n,e,u,aa(c,l)),hp(n,u);const d=u.tView=U_(2,u,i,o,r,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,e,i,o,r,a):c.data[u];sa(d,!1);const h=TT(c,l,d,t);fd()&&Bp(c,l,h,d),fo(h,l);const p=mE(h,l,h,d);return l[u]=p,zp(l,p),function qE(t,n,e){return gv(t,n,e)}(p,d,l),cp(d)&&Z_(c,l,d),null!=a&&G_(l,d,s),Mt}let TT=function MT(t,n,e,i){return la(!0),n[Ut].createComment("")};function Kt(t,n,e,i){const o=je();return Ei(o,jr(),n)&&(gn(),ha(Jn(),o,t,n,e,i)),Kt}function zc(t,n,e,i){return Ei(t,jr(),e)?n+Jt(e)+i:tn}function $c(t,n,e,i,o,r){const s=ml(t,function Pa(){return Wt.lFrame.bindingIndex}(),e,o);return Na(2),s?n+Jt(e)+i+Jt(o)+r:tn}function ug(t,n){return t<<17|n<<2}function Ss(t){return t>>17&32767}function Fv(t){return 2|t}function yl(t){return(131068&t)>>2}function Lv(t,n){return-131069&t|n<<2}function jv(t){return 1|t}function rM(t,n,e,i){const o=t[e+1],r=null===n;let a=i?Ss(o):yl(o),s=!1;for(;0!==a&&(!1===s||r);){const c=t[a+1];Y7(t[a],n)&&(s=!0,t[a+1]=i?jv(c):Fv(c)),a=i?Ss(c):yl(c)}s&&(t[e+1]=i?Fv(o):jv(o))}function Y7(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&uc(t,n)>=0}const Yi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function aM(t){return t.substring(Yi.key,Yi.keyEnd)}function sM(t,n){const e=Yi.textEnd;return e===n?-1:(n=Yi.keyEnd=function Z7(t,n,e){for(;n32;)n++;return n}(t,Yi.key=n,e),Jc(t,n,e))}function Jc(t,n,e){for(;n=0;e=sM(n,e))Xo(t,aM(n),!0)}function Br(t,n,e,i){const o=je(),r=gn(),a=Na(2);r.firstUpdatePass&&fM(r,t,a,i),n!==tn&&Ei(o,a,n)&&gM(r,r.data[ho()],o,o[Ut],t,o[a+1]=function nH(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=li(qo(t)))),t}(n,e),i,a)}function Hr(t,n,e,i){const o=gn(),r=Na(2);o.firstUpdatePass&&fM(o,null,r,i);const a=je();if(e!==tn&&Ei(a,r,e)){const s=o.data[ho()];if(bM(s,i)&&!hM(o,r)){let l=i?s.classesWithoutHost:s.stylesWithoutHost;null!==l&&(e=sy(l,e||"")),Bv(o,s,a,e,i)}else!function tH(t,n,e,i,o,r,a,s){o===tn&&(o=xn);let l=0,c=0,u=0=t.expandoStartIndex}function fM(t,n,e,i){const o=t.data;if(null===o[e+1]){const r=o[ho()],a=hM(t,e);bM(r,i)&&null===n&&!a&&(n=!1),n=function X7(t,n,e,i){const o=Wy(t);let r=i?n.residualClasses:n.residualStyles;if(null===o)0===(i?n.classBindings:n.styleBindings)&&(e=Xd(e=Hv(null,t,n,e,i),n.attrs,i),r=null);else{const a=n.directiveStylingLast;if(-1===a||t[a]!==o)if(e=Hv(o,t,n,e,i),null===r){let l=function J7(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==yl(i))return t[Ss(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=Hv(null,t,n,l[1],i),l=Xd(l,n.attrs,i),function Q7(t,n,e,i){t[Ss(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else r=function K7(t,n,e){let i;const o=n.directiveEnd;for(let r=1+n.directiveStylingLast;r0)&&(c=!0)):u=e,o)if(0!==l){const h=Ss(t[s+1]);t[i+1]=ug(h,s),0!==h&&(t[h+1]=Lv(t[h+1],i)),t[s+1]=function L7(t,n){return 131071&t|n<<17}(t[s+1],i)}else t[i+1]=ug(s,0),0!==s&&(t[s+1]=Lv(t[s+1],i)),s=i;else t[i+1]=ug(l,0),0===s?s=i:t[l+1]=Lv(t[l+1],i),l=i;c&&(t[i+1]=Fv(t[i+1])),rM(t,u,i,!0),rM(t,u,i,!1),function H7(t,n,e,i,o){const r=o?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&uc(r,n)>=0&&(e[i+1]=jv(e[i+1]))}(n,u,t,i,r),a=ug(s,l),r?n.classBindings=a:n.styleBindings=a}(o,r,n,e,a,i)}}function Hv(t,n,e,i,o){let r=null;const a=e.directiveEnd;let s=e.directiveStylingLast;for(-1===s?s=e.directiveStart:s++;s0;){const l=t[o],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[o+1];h===tn&&(h=d?xn:void 0);let p=d?wy(h,i):u===i?h:void 0;if(c&&!dg(p)&&(p=wy(l,i)),dg(p)&&(s=p,a))return s;const g=t[o+1];o=a?Ss(g):yl(g)}if(null!==n){let l=r?n.residualClasses:n.residualStyles;null!=l&&(s=wy(l,i))}return s}function dg(t){return void 0!==t}function bM(t,n){return 0!=(t.flags&(n?8:16))}function Yv(t,n,e){Hr(Xo,ma,zc(je(),t,n,e),!0)}class hH{destroy(n){}updateValue(n,e){}swap(n,e){const i=Math.min(n,e),o=Math.max(n,e),r=this.detach(o);if(o-i>1){const a=this.detach(i);this.attach(i,r),this.attach(o,a)}else this.attach(i,r)}move(n,e){this.attach(e,this.detach(n))}}function zv(t,n,e,i,o){return t===e&&Object.is(n,i)?1:Object.is(o(t,n),o(e,i))?-1:0}function $v(t,n,e,i){return!(void 0===n||!n.has(i)||(t.attach(e,n.get(i)),n.delete(i),0))}function yM(t,n,e,i,o){if($v(t,n,i,e(i,o)))t.updateValue(i,o);else{const r=t.create(i,o);t.attach(i,r)}}function _M(t,n,e,i){const o=new Set;for(let r=n;r<=e;r++)o.add(i(r,t.at(r)));return o}class vM{constructor(){this.kvMap=new Map,this._vMap=void 0}has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;const e=this.kvMap.get(n);return void 0!==this._vMap&&this._vMap.has(e)?(this.kvMap.set(n,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,e){if(this.kvMap.has(n)){let i=this.kvMap.get(n);void 0===this._vMap&&(this._vMap=new Map);const o=this._vMap;for(;o.has(i);)i=o.get(i);o.set(i,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,i]of this.kvMap)if(n(i,e),void 0!==this._vMap){const o=this._vMap;for(;o.has(i);)i=o.get(i),n(i,e)}}}function En(t,n,e){fa("NgControlFlow");const i=je(),o=jr(),r=Vv(i,Qt+t);if(Ei(i,o,n)){const s=j(null);try{if(ev(r,0),-1!==n){const l=Zv(i[nt],Qt+n),c=Rc(r,l.tView.ssrId);Id(r,kd(i,l,e,{dehydratedView:c}),0,Oc(l,c))}}finally{j(s)}}else{const s=wE(r,0);void 0!==s&&(s[Xn]=e)}}class pH{constructor(n,e,i){this.lContainer=n,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-Di}}function hg(t,n){return n}class mH{constructor(n,e,i){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=i}}function fg(t,n,e,i,o,r,a,s,l,c,u,d,h){fa("NgControlFlow");const p=void 0!==l,g=je(),b=s?a.bind(g[pi][Xn]):a,T=new mH(p,b);g[Qt+t]=T,Mt(t+1,n,e,i,o,r),p&&Mt(t+2,l,c,u,d,h)}class bH extends hH{constructor(n,e,i){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=i,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Di}at(n){return this.getLView(n)[Xn].$implicit}attach(n,e){const i=e[Jo];this.needsIndexUpdate||=n!==this.length,Id(this.lContainer,e,n,Oc(this.templateTNode,i))}detach(n){return this.needsIndexUpdate||=n!==this.length-1,function yH(t,n){return Ed(t,n)}(this.lContainer,n)}create(n,e){const i=Rc(this.lContainer,this.templateTNode.tView.ssrId);return kd(this.hostLView,this.templateTNode,new pH(this.lContainer,e,n),{dehydratedView:i})}destroy(n){Lp(n[nt],n)}updateValue(n,e){this.getLView(n)[Xn].$implicit=e}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n{t.destroy(s)})}(a,t,r.trackByFn),a.updateIndexes(),r.hasEmptyBlock){const s=jr(),l=0===a.length;if(Ei(i,s,l)){const c=e+2,u=Vv(i,c);if(l){const d=Zv(o,c),h=Rc(u,d.tView.ssrId);Id(u,kd(i,d,void 0,{dehydratedView:h}),0,Oc(d,h))}else ev(u,0)}}}finally{j(n)}}function Vv(t,n){return t[n]}function Zv(t,n){return cd(t,n)}function ye(t,n,e,i){const o=je(),r=gn(),a=Qt+t,s=o[Ut],l=r.firstCreatePass?function vH(t,n,e,i,o,r){const a=n.consts,l=Ic(n,t,2,i,aa(a,o));return W_(n,e,l,aa(a,r)),null!==l.attrs&&Kp(l,l.attrs,!1),null!==l.mergedAttrs&&Kp(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(a,r,o,n,e,i):r.data[a],c=wM(r,o,l,s,n,t);o[a]=c;const u=cp(l);return sa(l,!0),aE(s,c,l),!function Zd(t){return 32==(32&t.flags)}(l)&&fd()&&Bp(r,o,c,l),0===function g4(){return Wt.lFrame.elementDepthCount}()&&fo(c,o),function m4(){Wt.lFrame.elementDepthCount++}(),u&&(Z_(r,o,l),V_(r,l,o)),null!==i&&G_(o,l),ye}function ve(){let t=Fn();Zy()?Gy():(t=t.parent,sa(t,!1));const n=t;(function y4(t){return Wt.skipHydrationRootTNode===t})(n)&&function C4(){Wt.skipHydrationRootTNode=null}(),function b4(){Wt.lFrame.elementDepthCount--}();const e=gn();return e.firstCreatePass&&(hp(e,t),Ny(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function F4(t){return 0!=(8&t.flags)}(n)&&Bv(e,n,je(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function L4(t){return 0!=(16&t.flags)}(n)&&Bv(e,n,je(),n.stylesWithoutHost,!1),ve}function at(t,n,e,i){return ye(t,n,e,i),ve(),at}let wM=(t,n,e,i,o,r)=>(la(!0),Fp(i,o,function MS(){return Wt.lFrame.currentNamespace}()));function Jd(t,n,e){const i=je(),o=gn(),r=t+Qt,a=o.firstCreatePass?function xH(t,n,e,i,o){const r=n.consts,a=aa(r,i),s=Ic(n,t,8,"ng-container",a);return null!==a&&Kp(s,a,!0),W_(n,e,s,aa(r,o)),null!==n.queries&&n.queries.elementStart(n,s),s}(r,o,i,n,e):o.data[r];sa(a,!0);const s=CM(o,i,a,t);return i[r]=s,fd()&&Bp(o,i,s,a),fo(s,i),cp(a)&&(Z_(o,i,a),V_(o,a,i)),null!=e&&G_(i,a),Jd}function Qd(){let t=Fn();const n=gn();return Zy()?Gy():(t=t.parent,sa(t,!1)),n.firstCreatePass&&(hp(n,t),Ny(t)&&n.queries.elementEnd(t)),Qd}function Es(t,n,e){return Jd(t,n,e),Qd(),Es}let CM=(t,n,e,i)=>(la(!0),F_(n[Ut],""));function Tn(){return je()}function Ts(t,n,e){const i=je();return Ei(i,jr(),n)&&Bo(gn(),Jn(),i,t,n,i[Ut],e,!0),Ts}function Gv(t,n,e){const i=je();if(Ei(i,jr(),n)){const r=gn(),a=Jn();Bo(r,a,i,t,n,vE(Wy(r.data),a,i),e,!0)}return Gv}const Kc="en-US",gg={marker:"element"},mg={marker:"ICU"};var Ho=function(t){return t[t.SHIFT=2]="SHIFT",t[t.APPEND_EAGERLY=1]="APPEND_EAGERLY",t[t.COMMENT=2]="COMMENT",t}(Ho||{});let DM=Kc;function TM(t,n,e){const i=n.insertBeforeIndex,o=Array.isArray(i)?i[0]:i;return null===o?qD(t,0,e):Bn(e[o])}function MM(t,n,e,i,o){const r=n.insertBeforeIndex;if(Array.isArray(r)){let a=i,s=null;if(3&n.type||(s=a,a=o),null!==a&&-1===n.componentOffset)for(let l=1;l1)for(let e=t.length-2;e>=0;e--){const i=t[e];kM(i)||RH(i,n)&&null===PH(i)&&NH(i,n.index)}}function kM(t){return!(64&t.type)}function RH(t,n){return kM(n)||t.index>n.index}function PH(t){const n=t.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function NH(t,n){const e=t.insertBeforeIndex;Array.isArray(e)?e[0]=n:(tE(TM,MM),t.insertBeforeIndex=n)}function jH(t,n,e){const i=$_(t,e,64,null,null);return AM(n,i),i}let th=(t,n,e,i)=>(la(!0),function PM(t,n,e){const i=t[Ut];switch(e){case Node.COMMENT_NODE:return F_(i,n);case Node.TEXT_NODE:return N_(i,n);case Node.ELEMENT_NODE:return Fp(i,n,null)}}(t,e,i));function UH(){const t=[];let e,i,n=-1;function r(s,l){n=0;const c=function bg(t,n){const e=n[t.currentCaseLViewIndex];return null===e?e:e<0?~e:e}(s,l);i=null!==c?s.remove[c]:xn}function a(){if(n0?e[s]:(t.push(n,i),r(e[nt].data[~s],e),a())}return 0===t.length?null:(i=t.pop(),n=t.pop(),a())}return function o(s,l){for(e=l;t.length;)t.pop();return r(s.value,l),a}}const yg=/\ufffd(\d+):?\d*\ufffd/gi,XH=/\ufffd(\d+)\ufffd/,HM=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,nh="\ufffd",JH=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,QH=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,KH=/\uE500/g;function YM(t,n,e,i,o,r,a){const s=Ad(t,i,1,null);let l=s<e.length&&e.push(l)}return{type:i,mainBinding:o,cases:n,values:e}}function Uv(t){if(!t)return[];let n=0;const e=[],i=[],o=/[{}]/g;let r;for(o.lastIndex=0;r=o.exec(t);){const s=r.index;if("}"==r[0]){if(e.pop(),0==e.length){const l=t.substring(n,s);HM.test(l)?i.push(aY(l)):i.push(l),n=s+1}}else{if(0==e.length){const l=t.substring(n,s);i.push(l),n=s+1}e.push("{")}}const a=t.substring(n);return i.push(a),i}function sY(t,n,e,i,o,r,a,s,l){const c=[],u=[],d=[];e.cases.push(a),e.create.push(c),e.remove.push(u),e.update.push(d);const p=MD(bs()).getInertBodyElement(s),g=M_(p)||p;return g?ZM(t,n,e,i,o,c,u,d,g,r,l,0):0}function ZM(t,n,e,i,o,r,a,s,l,c,u,d){let h=0,p=l.firstChild;for(;p;){const g=Ad(n,i,1,null);switch(p.nodeType){case Node.ELEMENT_NODE:const b=p,T=b.tagName.toLowerCase();if(E_.hasOwnProperty(T)){Wv(r,gg,T,c,g),n.data[g]=T;const le=b.attributes;for(let pe=0;pe>>Ho.SHIFT;let d=t[u],h=!1;null===d&&(d=t[u]=th(t,u,n[r],(a&Ho.COMMENT)===Ho.COMMENT?Node.COMMENT_NODE:Node.TEXT_NODE),h=fd()),c&&null!==e&&h&&hl(o,e,d,i,!1)}})(o,l.create,u,s&&8&s.type?o[s.index]:null),CS(!0)}function no(){CS(!1)}function Pt(t,n,e){to(t,n,e),no()}function oh(t,n={}){return function _Y(t,n={}){let e=t;if(hY.test(t)){const i={},o=[0];e=e.replace(fY,(r,a,s)=>{const l=a||s,c=i[l]||[];if(c.length||(l.split("|").forEach(b=>{const T=b.match(yY),D=T?parseInt(T[1],10):0,H=bY.test(b);c.push([D,H,b])}),i[l]=c),!c.length)throw new Error(`i18n postprocess: unmatched placeholder - ${l}`);const u=o[o.length-1];let d=0;for(let b=0;bn.hasOwnProperty(r)?`${o}${n[r]}${l}`:i),e=e.replace(gY,(i,o)=>n.hasOwnProperty(o)?n[o]:i),e=e.replace(mY,(i,o)=>{if(n.hasOwnProperty(o)){const r=n[o];if(!r.length)throw new Error(`i18n postprocess: unmatched ICU - ${i} with key: ${o}`);return r.shift()}return i})),e}(t,n)}function _t(t,n,e,i){const o=je(),r=gn(),a=Fn();return Xv(r,o,o[Ut],a,t,n,i),_t}function Xv(t,n,e,i,o,r,a){const s=cp(i),c=t.firstCreatePass&&_E(t),u=n[Xn],d=yE(n);let h=!0;if(3&i.type||a){const b=wo(i,n),T=a?a(b):b,D=d.length,H=a?le=>a(Bn(le[i.index])):i.index;let oe=null;if(!a&&s&&(oe=function CY(t,n,e,i){const o=t.cleanup;if(null!=o)for(let r=0;rl?s[l]:null}"string"==typeof a&&(r+=2)}return null}(t,n,o,i.index)),null!==oe)(oe.__ngLastListenerFn__||oe).__ngNextListenerFn__=r,oe.__ngLastListenerFn__=r,h=!1;else{r=QM(i,n,u,r,!1);const le=e.listen(T,o,r);d.push(r,le),c&&c.push(o,H,D,D+1)}}else r=QM(i,n,u,r,!1);const p=i.outputs;let g;if(h&&null!==p&&(g=p[o])){const b=g.length;if(b)for(let T=0;T-1?Qo(t.index,n):n);let l=JM(n,e,i,a),c=r.__ngNextListenerFn__;for(;c;)l=JM(n,e,c,a)&&l,c=c.__ngNextListenerFn__;return o&&!1===l&&a.preventDefault(),l}}function rt(t=1){return function M4(t){return(Wt.lFrame.contextLView=function mS(t,n){for(;t>0;)n=n[mc],t--;return n}(t,Wt.lFrame.contextLView))[Xn]}(t)}function xY(t,n){let e=null;const i=function T3(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let o=0;o(la(!0),N_(n[Ut],i));function Yo(t){return yr("",t,""),Yo}function yr(t,n,e){const i=je(),o=zc(i,t,n,e);return o!==tn&&Ba(i,ho(),o),yr}function Jv(t,n,e,i,o){const r=je(),a=$c(r,t,n,e,i,o);return a!==tn&&Ba(r,ho(),a),Jv}function rh(t,n,e){uT(n)&&(n=n());const i=je();return Ei(i,jr(),n)&&Bo(gn(),Jn(),i,t,n,i[Ut],e,!1),rh}function vg(t,n){const e=uT(t);return e&&t.set(n),e}function ah(t,n){const e=je(),i=gn(),o=Fn();return Xv(i,e,e[Ut],o,t,n),ah}function Qv(t,n,e,i,o){if(t=Vt(t),Array.isArray(t))for(let r=0;r>20;if(rl(t)||!t.multi){const p=new pd(c,o,K),g=qv(l,n,o?u:u+h,d);-1===g?(i_(mp(s,a),r,l),Kv(r,t,n.length),n.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(p),a.push(p)):(e[g]=p,a[g]=p)}else{const p=qv(l,n,u+h,d),g=qv(l,n,u,u+h),T=g>=0&&e[g];if(o&&!T||!o&&!(p>=0&&e[p])){i_(mp(s,a),r,l);const D=function zY(t,n,e,i,o){const r=new pd(t,e,K);return r.multi=[],r.index=n,r.componentProviders=0,xA(r,o,i&&!e),r}(o?YY:HY,e.length,o,i,c);!o&&T&&(e[g].providerFactory=D),Kv(r,t,n.length,0),n.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(D),a.push(D)}else Kv(r,t,p>-1?p:g,xA(e[o?g:p],c,!o&&i));!o&&i&&T&&e[g].componentProviders++}}}function Kv(t,n,e,i){const o=rl(n),r=function H3(t){return!!t.useClass}(n);if(o||r){const l=(r?Vt(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!o&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function xA(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function qv(t,n,e,i){for(let o=e;o{e.providersResolver=(i,o)=>function BY(t,n,e){const i=gn();if(i.firstCreatePass){const o=Lr(t);Qv(e,i.data,i.blueprint,o,!0),Qv(n,i.data,i.blueprint,o,!1)}}(i,o?o(t):t,n)}}let $Y=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const i=Dy(0,e.type),o=i.length>0?tg([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=$e({token:t,providedIn:"environment",factory:()=>new t(Me(Lo))})}}return t})();function Zn(t){fa("NgStandalone"),t.getStandaloneInjector=n=>n.get($Y).getOrCreateStandaloneInjector(t)}function sh(t,n,e,i){return DA(je(),Co(),t,n,e,i)}function lh(t,n,e,i,o){return function EA(t,n,e,i,o,r,a){const s=n+e;return ml(t,s,o,r)?pa(t,s+2,a?i.call(a,o,r):i(o,r)):ch(t,s+2)}(je(),Co(),t,n,e,i,o)}function ch(t,n){const e=t[n];return e===tn?void 0:e}function DA(t,n,e,i,o,r){const a=n+e;return Ei(t,a,o)?pa(t,a+1,r?i.call(r,o):i(o)):ch(t,a+1)}function eu(t,n){const e=gn();let i;const o=t+Qt;e.firstCreatePass?(i=function ez(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[o]=i,i.onDestroy&&(e.destroyHooks??=[]).push(o,i.onDestroy)):i=e.data[o];const r=i.factory||(i.factory=il(i.type)),s=Po(K);try{const l=gp(!1),c=r();return gp(l),function TY(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,je(),o,c),c}finally{Po(s)}}function tu(t,n,e){const i=t+Qt,o=je(),r=_c(o,i);return function uh(t,n){return t[nt].data[n].pure}(o,i)?DA(o,Co(),n,r.transform,e,r):r.transform(e)}function tw(t,n){return Zp(t,n)}let ZA=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();const JA=new He(""),Sg=new He("");let cw,sw=(()=>{class t{constructor(e,i,o){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,cw||(function Qz(t){cw=t}(o),o.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{wt.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==r),e()},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,o){return[]}static{this.\u0275fac=function(i){return new(i||t)(Me(wt),Me(lw),Me(Sg))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})(),lw=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return cw?.findTestabilityInTree(this,e,i)??null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();function fh(t){return!!t&&"function"==typeof t.then}function QA(t){return!!t&&"function"==typeof t.subscribe}const uw=new He("");let dw=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i}),this.appInits=Pe(uw,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const o of this.appInits){const r=o();if(fh(r))e.push(r);else if(QA(r)){const a=new Promise((s,l)=>{r.subscribe({complete:s,error:l})});e.push(a)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(o=>{this.reject(o)}),0===e.length&&i(),this.initialized=!0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const hw=new He("");function ek(t,n){return Array.isArray(n)?n.reduce(ek,t):{...t,...n}}let Yr=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Pe(XS),this.afterRenderEffectManager=Pe(Bd),this.externalTestViews=new Set,this.beforeRender=new vt,this.afterTick=new vt,this.componentTypes=[],this.components=[],this.isStable=Pe(Cs).hasPendingTasks.pipe(Bt(e=>!e)),this._injector=Pe(Lo)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const o=e instanceof PE;if(!this._injector.get(dw).done)throw!o&&function gs(t){const n=dn(t)||ji(t)||Qi(t);return null!==n&&n.standalone}(e),new S(405,!1);let a;a=o?e:this._injector.get(fl).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const s=function Kz(t){return t.isBoundToModule}(a)?void 0:this._injector.get(gl),c=a.create(gi.NULL,[],i||a.selector,s),u=c.location.nativeElement,d=c.injector.get(JA,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Dg(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){this._tick(!0)}_tick(e){if(this._runningTick)throw new S(101,!1);const i=j(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(e)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,j(i)}}detectChangesInAttachedViews(e){let i=0;const o=this.afterRenderEffectManager;for(;;){if(i===SE)throw new S(103,!1);if(e){const r=0===i;this.beforeRender.next(r);for(let{_lView:a,notifyErrorHandler:s}of this._views)e$(a,r,s)}if(i++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:r})=>fw(r))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:r})=>fw(r))))break}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Dg(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(hw,[]);[...this._bootstrapListeners,...i].forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Dg(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new S(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Dg(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function e$(t,n,e){!n&&!fw(t)||function t$(t,n,e){let i;e?(i=0,t[It]|=1024):i=64&t[It]?0:1,Vp(t,n,i)}(t,e,n)}function fw(t){return zy(t)}class n${constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let tk=(()=>{class t{compileModuleSync(e){return new Dv(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),r=er(so(e).declarations).reduce((a,s)=>{const l=dn(s);return l&&a.push(new zd(l)),a},[]);return new n$(i,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),r$=(()=>{class t{constructor(){this.zone=Pe(wt),this.applicationRef=Pe(Yr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function a$(){const t=Pe(wt),n=Pe(Ko);return e=>t.runOutsideAngular(()=>n.handleError(e))}let l$=(()=>{class t{constructor(){this.subscription=new ge,this.initialized=!1,this.zone=Pe(wt),this.pendingTasks=Pe(Cs)}initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{wt.assertNotInAngularZone(),queueMicrotask(()=>{null!==e&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{wt.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const ba=new He("",{providedIn:"root",factory:()=>Pe(ba,fn.Optional|fn.SkipSelf)||function c$(){return typeof $localize<"u"&&$localize.locale||Kc}()}),pw=new He("");let rk=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const o=function o6(t="zone.js",n){return"noop"===t?new HE:"zone.js"===t?new wt(n):t}(i?.ngZone,function ok(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{const r=function Q6(t,n,e){return new Sv(t,n,e)}(e.moduleType,this.injector,function ik(t){return[{provide:wt,useFactory:t},{provide:ol,multi:!0,useFactory:()=>{const n=Pe(r$,{optional:!0});return()=>n.initialize()}},{provide:ol,multi:!0,useFactory:()=>{const n=Pe(l$);return()=>{n.initialize()}}},{provide:XS,useFactory:a$}]}(()=>o)),a=r.injector.get(Ko,null);return o.runOutsideAngular(()=>{const s=o.onError.subscribe({next:l=>{a.handleError(l)}});r.onDestroy(()=>{Dg(this._modules,r),s.unsubscribe()})}),function qA(t,n,e){try{const i=e();return fh(i)?i.catch(o=>{throw n.runOutsideAngular(()=>t.handleError(o)),o}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(a,o,()=>{const s=r.injector.get(dw);return s.runInitializers(),s.donePromise.then(()=>(function EM(t){"string"==typeof t&&(DM=t.toLowerCase().replace(/_/g,"-"))}(r.injector.get(ba,Kc)||Kc),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,i=[]){const o=ek({},i);return function o$(t,n,e){const i=new Dv(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(e){const i=e.injector.get(Yr);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new S(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new S(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(pw,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(i){return new(i||t)(Me(gi))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})(),Ms=null;const ak=new He("");function sk(t,n,e=[]){const i=`Platform: ${n}`,o=new He(i);return(r=[])=>{let a=gw();if(!a||a.injector.get(ak,!1)){const s=[...e,...r,{provide:o,useValue:!0}];t?t(s):function h$(t){if(Ms&&!Ms.get(ak,!1))throw new S(400,!1);(function KA(){!function _(t){Z=t}(()=>{throw new S(600,!1)})})(),Ms=t;const n=t.get(rk);(function ck(t){t.get(bD,null)?.forEach(e=>e())})(t)}(function lk(t=[],n){return gi.create({name:n,providers:[{provide:My,useValue:"platform"},{provide:pw,useValue:new Set([()=>Ms=null])},...t]})}(s,i))}return function f$(t){const n=gw();if(!n)throw new S(401,!1);return n}()}}function gw(){return Ms?.get(rk)??null}let mi=(()=>{class t{static{this.__NG_ELEMENT_ID__=g$}}return t})();function g$(t){return function m$(t,n,e){if(sl(t)&&!e){const i=Qo(t.index,n);return new Pd(i,i)}return 47&t.type?new Pd(n[pi],n):null}(Fn(),je(),16==(16&t))}class fk{constructor(){}supports(n){return ig(n)}create(n){return new C$(n)}}const w$=(t,n)=>n;class C${constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||w$}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,o=0,r=null;for(;e||i;){const a=!i||e&&e.currentIndex{a=this._trackByFn(o,s),null!==e&&Object.is(e.trackById,a)?(i&&(e=this._verifyReinsertion(e,s,a,o)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,a,o),i=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,o){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,r,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,r,o)):n=this._addAfter(new x$(e,i),r,o),n}_verifyReinsertion(n,e,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,r=n._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const o=null===e?this._itHead:e._next;return n._next=o,n._prev=e,null===o?this._itTail=n:o._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new pk),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new pk),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class x${constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class S${constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class pk{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new S$,this.map.set(e,i)),i.add(n)}get(n,e){const o=this.map.get(n);return o?o.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function gk(t,n,e){const i=t.previousIndex;if(null===i)return i;let o=0;return e&&i{if(e&&e.key===o)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(o,i);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const o=this._records.get(n);this._maybeAddToChanges(o,e);const r=o._prev,a=o._next;return r&&(r._next=a),a&&(a._prev=r),o._next=null,o._prev=null,o}const i=new E$(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class E${constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function bk(){return new vw([new fk])}let vw=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:bk})}constructor(e){this.factories=e}static create(e,i){if(null!=i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||bk()),deps:[[t,new lc,new ps]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(null!=i)return i;throw new S(901,!1)}}return t})();function yk(){return new Ag([new mk])}let Ag=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:yk})}constructor(e){this.factories=e}static create(e,i){if(i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||yk()),deps:[[t,new lc,new ps]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(i)return i;throw new S(901,!1)}}return t})();const A$=sk(null,"core",[]);let k$=(()=>{class t{constructor(e){}static{this.\u0275fac=function(i){return new(i||t)(Me(Yr))}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({})}}return t})();function Nt(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function As(t,n=NaN){return isNaN(parseFloat(t))||isNaN(Number(t))?n:Number(t)}function Hk(t){const n=j(null);try{return t()}finally{j(n)}}let Yk=null;function za(){return Yk}class f9{}const qt=new He("");let xw=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Pe(g9),providedIn:"platform"})}}return t})();const p9=new He("");let g9=(()=>{class t extends xw{constructor(){super(),this._doc=Pe(qt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return za().getBaseHref(this._doc)}onPopState(e){const i=za().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=za().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,o){this._history.pushState(e,i,o)}replaceState(e,i,o){this._history.replaceState(e,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>new t,providedIn:"platform"})}}return t})();function Sw(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function zk(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function $a(t){return t&&"?"!==t[0]?"?"+t:t}let Cl=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Pe(Vk),providedIn:"root"})}}return t})();const $k=new He("");let Vk=(()=>{class t extends Cl{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Pe(qt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Sw(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+$a(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${i}${o}`:i}pushState(e,i,o,r){const a=this.prepareExternalUrl(o+$a(r));this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){const a=this.prepareExternalUrl(o+$a(r));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(xw),Me($k,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),m9=(()=>{class t extends Cl{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){const i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=Sw(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,o,r){let a=this.prepareExternalUrl(o+$a(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){let a=this.prepareExternalUrl(o+$a(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(xw),Me($k,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})(),xl=(()=>{class t{constructor(e){this._subject=new Ot,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function _9(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(zk(Zk(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+$a(i))}normalize(e){return t.stripTrailingSlash(function y9(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,Zk(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",o=null){this._locationStrategy.pushState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+$a(i)),o)}replaceState(e,i="",o=null){this._locationStrategy.replaceState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+$a(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(o=>o(e,i))}subscribe(e,i,o){return this._subject.subscribe({next:e,error:i,complete:o})}static{this.normalizeQueryParams=$a}static{this.joinWithSlash=Sw}static{this.stripTrailingSlash=zk}static{this.\u0275fac=function(i){return new(i||t)(Me(Cl))}}static{this.\u0275prov=$e({token:t,factory:()=>function b9(){return new xl(Me(Cl))}(),providedIn:"root"})}}return t})();function Zk(t){return t.replace(/\/index.html$/,"")}function eI(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[o,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(o.trim()===n)return decodeURIComponent(r)}return null}const Pw=/\s+/,tI=[];let Nw=(()=>{class t{constructor(e,i){this._ngEl=e,this._renderer=i,this.initialClasses=tI,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(Pw):tI}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(Pw):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){const o=this.stateMap.get(e);void 0!==o?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],o=e[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(Pw).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static{this.\u0275fac=function(i){return new(i||t)(K(Zt),K(Ha))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngClass",""]],inputs:{klass:[Le.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return t})();class oV{constructor(n,e,i,o){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Fw=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,o){this._viewContainer=e,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((o,r,a)=>{if(null==o.previousIndex)i.createEmbeddedView(this._template,new oV(o.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)i.remove(null===r?void 0:r);else if(null!==r){const s=i.get(r);i.move(s,a),iI(s,o)}});for(let o=0,r=i.length;o{iI(i.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,i){return!0}static{this.\u0275fac=function(i){return new(i||t)(K(So),K(po),K(vw))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return t})();function iI(t,n){t.context.$implicit=n.item}let ks=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new rV,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){oI("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){oI("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}static{this.\u0275fac=function(i){return new(i||t)(K(So),K(po))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return t})();class rV{constructor(){this.$implicit=null,this.ngIf=null}}function oI(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${li(n)}'.`)}let aI=(()=>{class t{constructor(e,i,o){this._ngEl=e,this._differs=i,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[o,r]=e.split("."),a=-1===o.indexOf("-")?void 0:_s.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,o,r?`${i}${r}`:i,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}static{this.\u0275fac=function(i){return new(i||t)(K(Zt),K(Ag),K(Ha))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return t})(),Gg=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const o=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,o)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,i,o),get:(e,i,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,o)}})}static{this.\u0275fac=function(i){return new(i||t)(K(So))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Gi]})}}return t})();class uV{createSubscription(n,e){return Hk(()=>n.subscribe({next:e,error:i=>{throw i}}))}dispose(n){Hk(()=>n.unsubscribe())}}class dV{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}}const hV=new dV,fV=new uV;let Bw=(()=>{class t{constructor(e){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(fh(e))return hV;if(QA(e))return fV;throw function $r(t,n){return new S(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(i){return new(i||t)(K(mi,16))}}static{this.\u0275pipe=Fo({name:"async",type:t,pure:!1,standalone:!0})}}return t})(),Is=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({})}}return t})();const lI="browser";function cI(t){return t===lI}function uI(t){return"server"===t}let PV=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:()=>cI(Pe(La))?new NV(Pe(qt),window):new LV})}}return t})();class NV{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){const e=function FV(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=i.currentNode;for(;o;){const r=o.shadowRoot;if(r){const a=r.getElementById(n)||r.querySelector(`[name="${n}"]`);if(a)return a}o=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],o-r[1])}}class LV{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}}class dI{}class dZ extends f9{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class $w extends dZ{static makeCurrent(){!function h9(t){Yk??=t}(new $w)}onAndCancel(n,e,i){return n.addEventListener(e,i),()=>{n.removeEventListener(e,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function hZ(){return _h=_h||document.querySelector("base"),_h?_h.getAttribute("href"):null}();return null==e?null:function fZ(t){return new URL(t,document.baseURI).pathname}(e)}resetBaseElement(){_h=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return eI(document.cookie,n)}}let _h=null,gZ=(()=>{class t{build(){return new XMLHttpRequest}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const Vw=new He("");let vI=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,o){return this._findPluginFor(i).addEventListener(e,i,o)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(r=>r.supports(e)),!i)throw new S(5101,!1);return this._eventNameToPlugin.set(e,i),i}static{this.\u0275fac=function(i){return new(i||t)(Me(Vw),Me(wt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();class wI{constructor(n){this._doc=n}}const Zw="ng-app-id";let CI=(()=>{class t{constructor(e,i,o,r={}){this.doc=e,this.appId=i,this.nonce=o,this.platformId=r,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=uI(r),this.resetHostNodes()}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.elements?.forEach(o=>o.remove()),i.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${Zw}="${this.appId}"]`);if(e?.length){const i=new Map;return e.forEach(o=>{null!=o.textContent&&i.set(o.textContent,o)}),i}return null}changeUsageCount(e,i){const o=this.styleRef;if(o.has(e)){const r=o.get(e);return r.usage+=i,r.usage}return o.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){const o=this.styleNodesInDOM,r=o?.get(i);if(r?.parentNode===e)return o.delete(i),r.removeAttribute(Zw),r;{const a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Zw,this.appId),e.appendChild(a),a}}addStyleToHost(e,i){const o=this.getStyleElement(e,i),r=this.styleRef,a=r.get(i)?.elements;a?a.push(o):r.set(i,{elements:[o],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(i){return new(i||t)(Me(qt),Me(xp),Me(h_,8),Me(La))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const Gw={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Uw=/%COMP%/g,_Z=new He("",{providedIn:"root",factory:()=>!0});function SI(t,n){return n.map(e=>e.replace(Uw,t))}let Ww=(()=>{class t{constructor(e,i,o,r,a,s,l,c=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.platformId=s,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=uI(s),this.defaultRenderer=new Xw(e,a,l,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Rr.ShadowDom&&(i={...i,encapsulation:Rr.Emulated});const o=this.getOrCreateRenderer(e,i);return o instanceof EI?o.applyToHost(e):o instanceof Jw&&o.applyStyles(),o}getOrCreateRenderer(e,i){const o=this.rendererByCompId;let r=o.get(i.id);if(!r){const a=this.doc,s=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(i.encapsulation){case Rr.Emulated:r=new EI(l,c,i,this.appId,u,a,s,d);break;case Rr.ShadowDom:return new xZ(l,c,e,i,a,s,this.nonce,d);default:r=new Jw(l,c,i,u,a,s,d)}o.set(i.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(i){return new(i||t)(Me(vI),Me(CI),Me(xp),Me(_Z),Me(qt),Me(La),Me(wt),Me(h_))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();class Xw{constructor(n,e,i,o){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(Gw[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(DI(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(DI(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new S(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,o){if(o){e=o+":"+e;const r=Gw[o];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const o=Gw[i];o?n.removeAttributeNS(o,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,o){o&(_s.DashCase|_s.Important)?n.style.setProperty(e,i,o&_s.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&_s.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){null!=n&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i){if("string"==typeof n&&!(n=za().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(i))}decoratePreventDefault(n){return e=>{if("__ngUnwrap__"===e)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))&&e.preventDefault()}}}function DI(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class xZ extends Xw{constructor(n,e,i,o,r,a,s,l){super(n,r,a,l),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=SI(o.id,o.styles);for(const u of c){const d=document.createElement("style");s&&d.setAttribute("nonce",s),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Jw extends Xw{constructor(n,e,i,o,r,a,s,l){super(n,r,a,s),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=l?SI(l,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class EI extends Jw{constructor(n,e,i,o,r,a,s,l){const c=o+"-"+i.id;super(n,e,i,r,a,s,l,c),this.contentAttr=function vZ(t){return"_ngcontent-%COMP%".replace(Uw,t)}(c),this.hostAttr=function wZ(t){return"_nghost-%COMP%".replace(Uw,t)}(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let SZ=(()=>{class t extends wI{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,o){return e.addEventListener(i,o,!1),()=>this.removeEventListener(e,i,o)}removeEventListener(e,i,o){return e.removeEventListener(i,o)}static{this.\u0275fac=function(i){return new(i||t)(Me(qt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const TI=["alt","control","meta","shift"],DZ={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},EZ={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let TZ=(()=>{class t extends wI{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,o){const r=t.parseEventName(i),a=t.eventCallback(r.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>za().onAndCancel(e,r.domEventName,a))}static parseEventName(e){const i=e.toLowerCase().split("."),o=i.shift();if(0===i.length||"keydown"!==o&&"keyup"!==o)return null;const r=t._normalizeKey(i.pop());let a="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),a="code."),TI.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),a+=c+".")}),a+=r,0!=i.length||0===r.length)return null;const l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(e,i){let o=DZ[e.key]||e.key,r="";return i.indexOf("code.")>-1&&(o=e.code,r="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),TI.forEach(a=>{a!==o&&(0,EZ[a])(e)&&(r+=a+".")}),r+=o,r===i)}static eventCallback(e,i,o){return r=>{t.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}static{this.\u0275fac=function(i){return new(i||t)(Me(qt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const AI=[{provide:La,useValue:lI},{provide:bD,useValue:function MZ(){$w.makeCurrent()},multi:!0},{provide:qt,useFactory:function kZ(){return function S8(t){d_=t}(document),document},deps:[]}],IZ=sk(A$,"browser",AI),OZ=new He(""),kI=[{provide:Sg,useClass:class pZ{addToWindow(n){Gt.getAngularTestability=(i,o=!0)=>{const r=n.findTestabilityInTree(i,o);if(null==r)throw new S(5103,!1);return r},Gt.getAllAngularTestabilities=()=>n.getAllTestabilities(),Gt.getAllAngularRootElements=()=>n.getAllRootElements(),Gt.frameworkStabilizers||(Gt.frameworkStabilizers=[]),Gt.frameworkStabilizers.push(i=>{const o=Gt.getAllAngularTestabilities();let r=o.length;const a=function(){r--,0==r&&i()};o.forEach(s=>{s.whenStable(a)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?za().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:JA,useClass:sw,deps:[wt,lw,Sg]},{provide:sw,useClass:sw,deps:[wt,lw,Sg]}],II=[{provide:My,useValue:"root"},{provide:Ko,useFactory:function AZ(){return new Ko},deps:[]},{provide:Vw,useClass:SZ,multi:!0,deps:[qt,wt,La]},{provide:Vw,useClass:TZ,multi:!0,deps:[qt]},Ww,CI,vI,{provide:sv,useExisting:Ww},{provide:dI,useClass:gZ,deps:[]},[]];let Qw=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:xp,useValue:e.appId}]}}static{this.\u0275fac=function(i){return new(i||t)(Me(OZ,12))}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({providers:[...II,...kI],imports:[Is,k$]})}}return t})(),RZ=(()=>{class t{constructor(e){this._doc=e,this._dom=za()}addTag(e,i=!1){return e?this._getOrCreateElement(e,i):null}addTags(e,i=!1){return e?e.reduce((o,r)=>(r&&o.push(this._getOrCreateElement(r,i)),o),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];const i=this._doc.querySelectorAll(`meta[${e}]`);return i?[].slice.call(i):[]}updateTag(e,i){if(!e)return null;i=i||this._parseSelector(e);const o=this.getTag(i);return o?this._setMetaElementAttributes(e,o):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,i=!1){if(!i){const a=this._parseSelector(e),s=this.getTags(a).filter(l=>this._containsAttributes(e,l))[0];if(void 0!==s)return s}const o=this._dom.createElement("meta");return this._setMetaElementAttributes(e,o),this._doc.getElementsByTagName("head")[0].appendChild(o),o}_setMetaElementAttributes(e,i){return Object.keys(e).forEach(o=>i.setAttribute(this._getMetaKeyMap(o),e[o])),i}_parseSelector(e){const i=e.name?"name":"property";return`${i}="${e[i]}"`}_containsAttributes(e,i){return Object.keys(e).every(o=>i.getAttribute(this._getMetaKeyMap(o))===e[o])}_getMetaKeyMap(e){return PZ[e]||e}static{this.\u0275fac=function(i){return new(i||t)(Me(qt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const PZ={httpEquiv:"http-equiv"};let OI=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(i){return new(i||t)(Me(qt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Xg=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:function(i){let o=null;return o=i?new(i||t):Me(jZ),o},providedIn:"root"})}}return t})(),jZ=(()=>{class t extends Xg{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Ui.NONE:return i;case Ui.HTML:return da(i,"HTML")?qo(i):FD(this._doc,String(i)).toString();case Ui.STYLE:return da(i,"Style")?qo(i):i;case Ui.SCRIPT:if(da(i,"Script"))return qo(i);throw new S(5200,!1);case Ui.URL:return da(i,"URL")?qo(i):Op(String(i));case Ui.RESOURCE_URL:if(da(i,"ResourceURL"))return qo(i);throw new S(5201,!1);default:throw new S(5202,!1)}}bypassSecurityTrustHtml(e){return function Z8(t){return new B8(t)}(e)}bypassSecurityTrustStyle(e){return function G8(t){return new H8(t)}(e)}bypassSecurityTrustScript(e){return function U8(t){return new Y8(t)}(e)}bypassSecurityTrustUrl(e){return function W8(t){return new z8(t)}(e)}bypassSecurityTrustResourceUrl(e){return function X8(t){return new $8(t)}(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(qt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Xt=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(Xt||{});const Ga="*";function Ua(t,n){return{type:Xt.Trigger,name:t,definitions:n,options:{}}}function wr(t,n=null){return{type:Xt.Animate,styles:n,timings:t}}function Jg(t,n=null){return{type:Xt.Group,steps:t,options:n}}function oi(t){return{type:Xt.Style,styles:t,offset:null}}function Mo(t,n,e){return{type:Xt.State,name:t,styles:n,options:e}}function ir(t,n,e=null){return{type:Xt.Transition,expr:t,animation:n,options:e}}function wh(t=null){return{type:Xt.AnimateChild,options:t}}function Ch(t,n,e=null){return{type:Xt.Query,selector:t,animation:n,options:e}}class xh{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class FI{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,o=0;const r=this.players.length;0==r?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==r&&this._onFinish()}),a.onDestroy(()=>{++i==r&&this._onDestroy()}),a.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const o=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(o)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const LI=["toast-component",""];function $Z(t,n){if(1&t){const e=Tn();ye(0,"button",5),_t("click",function(){return Yt(e),zt(rt().remove())}),ye(1,"span",6),bn(2,"\xd7"),ve()()}}function VZ(t,n){if(1&t&&(Jd(0),bn(1),Qd()),2&t){const e=rt(2);Ne(),yr("[",e.duplicatesCount+1,"]")}}function ZZ(t,n){if(1&t&&(ye(0,"div"),bn(1),Mt(2,VZ,2,1,"ng-container",4),ve()),2&t){const e=rt();eo(e.options.titleClass),Kt("aria-label",e.title),Ne(),yr(" ",e.title," "),Ne(),Je("ngIf",e.duplicatesCount)}}function GZ(t,n){if(1&t&&at(0,"div",7),2&t){const e=rt();eo(e.options.messageClass),Je("innerHTML",e.message,A_)}}function UZ(t,n){if(1&t&&(ye(0,"div",8),bn(1),ve()),2&t){const e=rt();eo(e.options.messageClass),Kt("aria-label",e.message),Ne(),yr(" ",e.message," ")}}function WZ(t,n){if(1&t&&(ye(0,"div"),at(1,"div",9),ve()),2&t){const e=rt();Ne(),Ds("width",e.width+"%")}}class tG{_attachedHost;component;viewContainerRef;injector;constructor(n,e){this.component=n,this.injector=e}attach(n,e){return this._attachedHost=n,n.attach(this,e)}detach(){const n=this._attachedHost;if(n)return this._attachedHost=void 0,n.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class nG{_attachedPortal;_disposeFn;attach(n,e){return this._attachedPortal=n,this.attachComponentPortal(n,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(n){this._disposeFn=n}}class iG{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new vt;_activate=new vt;_manualClose=new vt;_resetTimeout=new vt;_countDuplicate=new vt;constructor(n){this._overlayRef=n}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(n,e){n&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}class Qg{toastId;config;message;title;toastType;toastRef;_onTap=new vt;_onAction=new vt;constructor(n,e,i,o,r,a){this.toastId=n,this.config=e,this.message=i,this.title=o,this.toastType=r,this.toastRef=a,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(n){this._onAction.next(n)}onAction(){return this._onAction.asObservable()}}const BI=new He("ToastConfig");class oG extends nG{_hostDomElement;_componentFactoryResolver;_appRef;constructor(n,e,i){super(),this._hostDomElement=n,this._componentFactoryResolver=e,this._appRef=i}attachComponentPortal(n,e){const i=this._componentFactoryResolver.resolveComponentFactory(n.component);let o;return o=i.create(n.injector),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.detachView(o.hostView),o.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(o),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(o)),o}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let rG=(()=>{class t{_document=Pe(qt);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._document.createElement("div");e.classList.add("overlay-container"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),this._containerElement=e}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class aG{_portalHost;constructor(n){this._portalHost=n}attach(n,e=!0){return this._portalHost.attach(n,e)}detach(){return this._portalHost.detach()}}let sG=(()=>{class t{_overlayContainer=Pe(rG);_componentFactoryResolver=Pe(fl);_appRef=Pe(Yr);_document=Pe(qt);_paneElements=new Map;create(e,i){return this._createOverlayRef(this.getPaneElement(e,i))}getPaneElement(e="",i){return this._paneElements.get(i)||this._paneElements.set(i,{}),this._paneElements.get(i)[e]||(this._paneElements.get(i)[e]=this._createPaneElement(e,i)),this._paneElements.get(i)[e]}_createPaneElement(e,i){const o=this._document.createElement("div");return o.id="toast-container",o.classList.add(e),o.classList.add("toast-container"),i?i.getContainerElement().appendChild(o):this._overlayContainer.getContainerElement().appendChild(o),o}_createPortalHost(e){return new oG(e,this._componentFactoryResolver,this._appRef)}_createOverlayRef(e){return new aG(this._createPortalHost(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Sl=(()=>{class t{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(e,i,o,r,a){this.overlay=i,this._injector=o,this.sanitizer=r,this.ngZone=a,this.toastrConfig={...e.default,...e.config},e.config.iconClasses&&(this.toastrConfig.iconClasses={...e.default.iconClasses,...e.config.iconClasses})}show(e,i,o={},r=""){return this._preBuildNotification(r,e,i,this.applyConfig(o))}success(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",e,i,this.applyConfig(o))}error(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",e,i,this.applyConfig(o))}info(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",e,i,this.applyConfig(o))}warning(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",e,i,this.applyConfig(o))}clear(e){for(const i of this.toasts)if(void 0!==e){if(i.toastId===e)return void i.toastRef.manualClose()}else i.toastRef.manualClose()}remove(e){const i=this._findToast(e);if(!i||(i.activeToast.toastRef.close(),this.toasts.splice(i.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActivethis._buildNotification(e,i,o,r)):this._buildNotification(e,i,o,r)}_buildNotification(e,i,o,r){if(!r.toastComponent)throw new Error("toastComponent required");const a=this.findDuplicate(o,i,this.toastrConfig.resetTimeoutOnDuplicate&&r.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&o||i)&&this.toastrConfig.preventDuplicates&&null!==a)return a;this.previousToastMessage=i;let s=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(s=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const l=this.overlay.create(r.positionClass,this.overlayContainer);this.index=this.index+1;let c=i;i&&r.enableHtml&&(c=this.sanitizer.sanitize(Ui.HTML,i));const u=new iG(l),d=new Qg(this.index,r,c,o,e,u),p=gi.create({providers:[{provide:Qg,useValue:d}],parent:this._injector}),g=new tG(r.toastComponent,p),b=l.attach(g,r.newestOnTop);u.componentInstance=b.instance;const T={toastId:this.index,title:o||"",message:i||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:b};return s||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{T.toastRef.activate()})),this.toasts.push(T),T}static \u0275fac=function(i){return new(i||t)(Me(BI),Me(sG),Me(gi),Me(Xg),Me(wt))};static \u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const lG={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:(()=>{class t{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=-1;toastClasses="";state;get displayStyle(){if("inactive"===this.state.value)return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(e,i,o){this.toastrService=e,this.toastPackage=i,this.ngZone=o,this.message=i.message,this.title=i.title,this.options=i.config,this.originalTimeout=i.config.timeOut,this.toastClasses=`${i.toastType} ${i.config.toastClass}`,this.sub=i.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=i.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=i.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=i.toastRef.countDuplicate().subscribe(r=>{this.duplicatesCount=r}),this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}}}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state={...this.state,value:"active"},!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state={...this.state,value:"active"},this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state={...this.state,value:"removed"},this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(e,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(e),i)):this.timeout=setTimeout(()=>e(),i)}outsideInterval(e,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(e),i)):this.intervalId=setInterval(()=>e(),i)}runInsideAngular(e){this.ngZone?this.ngZone.run(()=>e()):e()}static \u0275fac=function(i){return new(i||t)(K(Sl),K(Qg),K(wt))};static \u0275cmp=pn({type:t,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(i,o){1&i&&_t("click",function(){return o.tapToast()})("mouseenter",function(){return o.stickAround()})("mouseleave",function(){return o.delayedHideToast()}),2&i&&(Gv("@flyInOut",o.state),eo(o.toastClasses),Ds("display",o.displayStyle))},standalone:!0,features:[Zn],attrs:LI,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(i,o){1&i&&Mt(0,$Z,3,0,"button",0)(1,ZZ,3,5,"div",1)(2,GZ,1,3,"div",2)(3,UZ,2,4,"div",3)(4,WZ,2,2,"div",4),2&i&&(Je("ngIf",o.options.closeButton),Ne(),Je("ngIf",o.title),Ne(),Je("ngIf",o.message&&o.options.enableHtml),Ne(),Je("ngIf",o.message&&!o.options.enableHtml),Ne(),Je("ngIf",o.options.progressBar))},dependencies:[ks],encapsulation:2,data:{animation:[Ua("flyInOut",[Mo("inactive",oi({opacity:0})),Mo("active",oi({opacity:1})),Mo("removed",oi({opacity:0})),ir("inactive => active",wr("{{ easeTime }}ms {{ easing }}")),ir("active => removed",wr("{{ easeTime }}ms {{ easing }}"))])]}})}return t})()},cG=(t={})=>dc([{provide:BI,useValue:{default:lG,config:t}}]);let uG=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[cG(e)]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=nn({type:t});static \u0275inj=en({})}return t})();function HI(t){return t&&Ae(t.schedule)}function qw(t){return t[t.length-1]}function YI(t){return Ae(qw(t))?t.pop():void 0}function Sh(t){return HI(qw(t))?t.pop():void 0}function Os(t){return this instanceof Os?(this.v=t,this):new Os(t)}function UI(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function o0(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(r){e[r]=t[r]&&function(a){return new Promise(function(s,l){!function o(r,a,s,l){Promise.resolve(l).then(function(c){r({value:c,done:s})},a)}(s,l,(a=t[r](a)).done,a.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const r0=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function WI(t){return Ae(t?.then)}function XI(t){return Ae(t[ea])}function JI(t){return Symbol.asyncIterator&&Ae(t?.[Symbol.asyncIterator])}function QI(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const KI=function IG(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function qI(t){return Ae(t?.[KI])}function e2(t){return function GI(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=e.apply(t,n||[]),r=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(h){i[h]&&(o[h]=function(p){return new Promise(function(g,b){r.push([h,p,g,b])>1||s(h,p)})})}function s(h,p){try{!function l(h){h.value instanceof Os?Promise.resolve(h.value.v).then(c,u):d(r[0][2],h)}(i[h](p))}catch(g){d(r[0][3],g)}}function c(h){s("next",h)}function u(h){s("throw",h)}function d(h,p){h(p),r.shift(),r.length&&s(r[0][0],r[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:o}=yield Os(e.read());if(o)return yield Os(void 0);yield yield Os(i)}}finally{e.releaseLock()}})}function t2(t){return Ae(t?.getReader)}function io(t){if(t instanceof On)return t;if(null!=t){if(XI(t))return function OG(t){return new On(n=>{const e=t[ea]();if(Ae(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(r0(t))return function RG(t){return new On(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,tt)})}(t);if(JI(t))return n2(t);if(qI(t))return function NG(t){return new On(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(t2(t))return function FG(t){return n2(e2(t))}(t)}throw QI(t)}function n2(t){return new On(n=>{(function LG(t,n){var e,i,o,r;return function VI(t,n,e,i){return new(e||(e=Promise))(function(r,a){function s(u){try{c(i.next(u))}catch(d){a(d)}}function l(u){try{c(i.throw(u))}catch(d){a(d)}}function c(u){u.done?r(u.value):function o(r){return r instanceof e?r:new e(function(a){a(r)})}(u.value).then(s,l)}c((i=i.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=UI(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function Wa(t,n,e,i=0,o=!1){const r=n.schedule(function(){e(),o?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(r),!o)return r}function o2(t,n=0){return $n((e,i)=>{e.subscribe(Pn(i,o=>Wa(i,t,()=>i.next(o),n),()=>Wa(i,t,()=>i.complete(),n),o=>Wa(i,t,()=>i.error(o),n)))})}function r2(t,n=0){return $n((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function a2(t,n){if(!t)throw new Error("Iterable cannot be null");return new On(e=>{Wa(e,n,()=>{const i=t[Symbol.asyncIterator]();Wa(e,n,()=>{i.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function bi(t,n){return n?function $G(t,n){if(null!=t){if(XI(t))return function jG(t,n){return io(t).pipe(r2(n),o2(n))}(t,n);if(r0(t))return function HG(t,n){return new On(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(WI(t))return function BG(t,n){return io(t).pipe(r2(n),o2(n))}(t,n);if(JI(t))return a2(t,n);if(qI(t))return function YG(t,n){return new On(e=>{let i;return Wa(e,n,()=>{i=t[KI](),Wa(e,n,()=>{let o,r;try{({value:o,done:r}=i.next())}catch(a){return void e.error(a)}r?e.complete():e.next(o)},0,!0)}),()=>Ae(i?.return)&&i.return()})}(t,n);if(t2(t))return function zG(t,n){return a2(e2(t),n)}(t,n)}throw QI(t)}(t,n):io(t)}function Et(...t){return bi(t,Sh(t))}function Wi(t,n,e=1/0){return Ae(n)?Wi((i,o)=>Bt((r,a)=>n(i,r,o,a))(io(t(i,o))),e):("number"==typeof n&&(e=n),$n((i,o)=>function VG(t,n,e,i,o,r,a,s){const l=[];let c=0,u=0,d=!1;const h=()=>{d&&!l.length&&!c&&n.complete()},p=b=>c{r&&n.next(b),c++;let T=!1;io(e(b,u++)).subscribe(Pn(n,D=>{o?.(D),r?p(D):n.next(D)},()=>{T=!0},void 0,()=>{if(T)try{for(c--;l.length&&cg(D)):g(D)}h()}catch(D){n.error(D)}}))};return t.subscribe(Pn(n,p,()=>{d=!0,h()})),()=>{s?.()}}(i,o,t,e)))}function au(t,n){return Ae(n)?Wi(t,n,1):Wi(t,1)}function ui(t,n){return $n((e,i)=>{let o=0;e.subscribe(Pn(i,r=>t.call(n,r,o++)&&i.next(r)))})}function Dl(t){return $n((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function Ni(t,n){return $n((e,i)=>{let o=null,r=0,a=!1;const s=()=>a&&!o&&i.complete();e.subscribe(Pn(i,l=>{o?.unsubscribe();let c=0;const u=r++;io(t(l,u)).subscribe(o=Pn(i,d=>i.next(n?n(l,d,u,c++):d),()=>{o=null,s()}))},()=>{a=!0,s()}))})}class Kg{}class qg{}class Cr{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const o=e.slice(0,i),r=o.toLowerCase(),a=e.slice(i+1).trim();this.maybeSetNormalizedName(o,r),this.headers.has(r)?this.headers.get(r).push(a):this.headers.set(r,[a])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.setHeaderEntries(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof Cr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new Cr;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Cr?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const o=("a"===n.op?this.headers.get(e):void 0)||[];o.push(...i),this.headers.set(e,o);break;case"d":const r=n.value;if(r){let a=this.headers.get(e);if(!a)return;a=a.filter(s=>-1===r.indexOf(s)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}setHeaderEntries(n,e){const i=(Array.isArray(e)?e:[e]).map(r=>r.toString()),o=n.toLowerCase();this.headers.set(o,i),this.maybeSetNormalizedName(n,o)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class ZG{encodeKey(n){return s2(n)}encodeValue(n){return s2(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const UG=/%(\d[a-f0-9])/gi,WG={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function s2(t){return encodeURIComponent(t).replace(UG,(n,e)=>WG[e]??n)}function em(t){return`${t}`}class Rs{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new ZG,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function GG(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const r=o.indexOf("="),[a,s]=-1==r?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,r)),n.decodeValue(o.slice(r+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],o=Array.isArray(i)?i.map(em):[em(i)];this.map.set(e,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const o=n[i];Array.isArray(o)?o.forEach(r=>{e.push({param:i,value:r,op:"a"})}):e.push({param:i,value:o,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new Rs({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(em(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const o=i.indexOf(em(n.value));-1!==o&&i.splice(o,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class XG{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function l2(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function c2(t){return typeof Blob<"u"&&t instanceof Blob}function u2(t){return typeof FormData<"u"&&t instanceof FormData}class Dh{constructor(n,e,i,o){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function JG(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==i?i:null,r=o):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),this.transferCache=r.transferCache),this.headers??=new Cr,this.context??=new XG,this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":sd.set(h,n.setHeaders[h]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((d,h)=>d.set(h,n.setParams[h]),c)),new Dh(e,i,r,{params:c,headers:l,context:u,reportProgress:s,responseType:o,withCredentials:a})}}var Ps=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Ps||{});class a0{constructor(n,e=Eh.Ok,i="OK"){this.headers=n.headers||new Cr,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class tm extends a0{constructor(n={}){super(n),this.type=Ps.ResponseHeader}clone(n={}){return new tm({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class El extends a0{constructor(n={}){super(n),this.type=Ps.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new El({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Xa extends a0{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}var Eh=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(Eh||{});function s0(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}let su=(()=>{class t{constructor(e){this.handler=e}request(e,i,o={}){let r;if(e instanceof Dh)r=e;else{let l,c;l=o.headers instanceof Cr?o.headers:new Cr(o.headers),o.params&&(c=o.params instanceof Rs?o.params:new Rs({fromObject:o.params})),r=new Dh(e,i,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}const a=Et(r).pipe(au(l=>this.handler.handle(l)));if(e instanceof Dh||"events"===o.observe)return a;const s=a.pipe(ui(l=>l instanceof El));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(Bt(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return s.pipe(Bt(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return s.pipe(Bt(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return s.pipe(Bt(l=>l.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Rs).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,o={}){return this.request("PATCH",e,s0(o,i))}post(e,i,o={}){return this.request("POST",e,s0(o,i))}put(e,i,o={}){return this.request("PUT",e,s0(o,i))}static{this.\u0275fac=function(i){return new(i||t)(Me(Kg))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function h2(t,n){return n(t)}function nU(t,n){return(e,i)=>n.intercept(e,{handle:o=>t(o,i)})}const oU=new He(""),Th=new He(""),f2=new He(""),p2=new He("");function rU(){let t=null;return(n,e)=>{null===t&&(t=(Pe(oU,{optional:!0})??[]).reduceRight(nU,h2));const i=Pe(Cs),o=i.add();return t(n,e).pipe(Dl(()=>i.remove(o)))}}let g2=(()=>{class t extends Kg{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=Pe(Cs);const o=Pe(p2,{optional:!0});this.backend=o??e}handle(e){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(Th),...this.injector.get(f2,[])]));this.chain=o.reduceRight((r,a)=>function iU(t,n,e){return(i,o)=>ia(e,()=>n(i,r=>t(r,o)))}(r,a,this.injector),h2)}const i=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(Dl(()=>this.pendingTasks.remove(i)))}static{this.\u0275fac=function(i){return new(i||t)(Me(qg),Me(Lo))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const uU=/^\)\]\}',?\n/;let b2=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new S(-2800,!1);const i=this.xhrFactory;return(i.\u0275loadImpl?bi(i.\u0275loadImpl()):Et(null)).pipe(Ni(()=>new On(r=>{const a=i.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((b,T)=>a.setRequestHeader(b,T.join(","))),e.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const b=e.detectContentTypeHeader();null!==b&&a.setRequestHeader("Content-Type",b)}if(e.responseType){const b=e.responseType.toLowerCase();a.responseType="json"!==b?b:"text"}const s=e.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const b=a.statusText||"OK",T=new Cr(a.getAllResponseHeaders()),D=function dU(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(a)||e.url;return l=new tm({headers:T,status:a.status,statusText:b,url:D}),l},u=()=>{let{headers:b,status:T,statusText:D,url:H}=c(),oe=null;T!==Eh.NoContent&&(oe=typeof a.response>"u"?a.responseText:a.response),0===T&&(T=oe?Eh.Ok:0);let le=T>=200&&T<300;if("json"===e.responseType&&"string"==typeof oe){const G=oe;oe=oe.replace(uU,"");try{oe=""!==oe?JSON.parse(oe):null}catch(pe){oe=G,le&&(le=!1,oe={error:pe,text:oe})}}le?(r.next(new El({body:oe,headers:b,status:T,statusText:D,url:H||void 0})),r.complete()):r.error(new Xa({error:oe,headers:b,status:T,statusText:D,url:H||void 0}))},d=b=>{const{url:T}=c(),D=new Xa({error:b,status:a.status||0,statusText:a.statusText||"Unknown Error",url:T||void 0});r.error(D)};let h=!1;const p=b=>{h||(r.next(c()),h=!0);let T={type:Ps.DownloadProgress,loaded:b.loaded};b.lengthComputable&&(T.total=b.total),"text"===e.responseType&&a.responseText&&(T.partialText=a.responseText),r.next(T)},g=b=>{let T={type:Ps.UploadProgress,loaded:b.loaded};b.lengthComputable&&(T.total=b.total),r.next(T)};return a.addEventListener("load",u),a.addEventListener("error",d),a.addEventListener("timeout",d),a.addEventListener("abort",d),e.reportProgress&&(a.addEventListener("progress",p),null!==s&&a.upload&&a.upload.addEventListener("progress",g)),a.send(s),r.next({type:Ps.Sent}),()=>{a.removeEventListener("error",d),a.removeEventListener("abort",d),a.removeEventListener("load",u),a.removeEventListener("timeout",d),e.reportProgress&&(a.removeEventListener("progress",p),null!==s&&a.upload&&a.upload.removeEventListener("progress",g)),a.readyState!==a.DONE&&a.abort()}})))}static{this.\u0275fac=function(i){return new(i||t)(Me(dI))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const u0=new He(""),y2=new He("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),_2=new He("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class v2{}let pU=(()=>{class t{constructor(e,i,o){this.doc=e,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=eI(e,this.cookieName),this.lastCookieString=e),this.lastToken}static{this.\u0275fac=function(i){return new(i||t)(Me(qt),Me(La),Me(y2))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function gU(t,n){const e=t.url.toLowerCase();if(!Pe(u0)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=Pe(v2).getToken(),o=Pe(_2);return null!=i&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,i)})),n(t)}var Ns=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Ns||{});function Tl(t,n){return{\u0275kind:t,\u0275providers:n}}function mU(...t){const n=[su,b2,g2,{provide:Kg,useExisting:g2},{provide:qg,useExisting:b2},{provide:Th,useValue:gU,multi:!0},{provide:u0,useValue:!0},{provide:v2,useClass:pU}];for(const e of t)n.push(...e.\u0275providers);return dc(n)}const w2=new He("");let yU=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({providers:[mU(Tl(Ns.LegacyInterceptors,[{provide:w2,useFactory:rU},{provide:Th,useExisting:w2,multi:!0}]))]})}}return t})();const{isArray:SU}=Array,{getPrototypeOf:DU,prototype:EU,keys:TU}=Object;function M2(t){if(1===t.length){const n=t[0];if(SU(n))return{args:n,keys:null};if(function MU(t){return t&&"object"==typeof t&&DU(t)===EU}(n)){const e=TU(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:AU}=Array;function d0(t){return Bt(n=>function kU(t,n){return AU(n)?t(...n):t(n)}(t,n))}function A2(t,n){return t.reduce((e,i,o)=>(e[i]=n[o],e),{})}function Mh(...t){const n=YI(t),{args:e,keys:i}=M2(t),o=new On(r=>{const{length:a}=e;if(!a)return void r.complete();const s=new Array(a);let l=a,c=a;for(let u=0;u{d||(d=!0,c--),s[u]=h},()=>l--,void 0,()=>{(!l||!d)&&(c||r.next(i?A2(i,s):s),r.complete())}))}});return n?o.pipe(d0(n)):o}let k2=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static{this.\u0275fac=function(i){return new(i||t)(K(Ha),K(Zt))}}static{this.\u0275dir=gt({type:t})}}return t})(),Ml=(()=>{class t extends k2{static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=yi(t)))(o||t)}})()}static{this.\u0275dir=gt({type:t,features:[an]})}}return t})();const or=new He(""),OU={provide:or,useExisting:Dn(()=>Ah),multi:!0},PU=new He("");let Ah=(()=>{class t extends k2{constructor(e,i,o){super(e,i),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function RU(){const t=za()?za().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static{this.\u0275fac=function(i){return new(i||t)(K(Ha),K(Zt),K(PU,8))}}static{this.\u0275dir=gt({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){1&i&&_t("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[wn([OU]),an]})}}return t})();function Fs(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function O2(t){return null!=t&&"number"==typeof t.length}const Xi=new He(""),Ls=new He(""),NU=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class js{static min(n){return function R2(t){return n=>{if(Fs(n.value)||Fs(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{if(Fs(n.value)||Fs(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return N2(n)}static requiredTrue(n){return function F2(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function L2(t){return Fs(t.value)||NU.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function j2(t){return n=>Fs(n.value)||!O2(n.value)?null:n.value.lengthO2(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return function H2(t){if(!t)return im;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(Fs(i.value))return null;const o=i.value;return n.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}(n)}static nullValidator(n){return null}static compose(n){return G2(n)}static composeAsync(n){return U2(n)}}function N2(t){return Fs(t.value)?{required:!0}:null}function im(t){return null}function Y2(t){return null!=t}function z2(t){return fh(t)?bi(t):t}function $2(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function V2(t,n){return n.map(e=>e(t))}function Z2(t){return t.map(n=>function FU(t){return!t.validate}(n)?n:e=>n.validate(e))}function G2(t){if(!t)return null;const n=t.filter(Y2);return 0==n.length?null:function(e){return $2(V2(e,n))}}function h0(t){return null!=t?G2(Z2(t)):null}function U2(t){if(!t)return null;const n=t.filter(Y2);return 0==n.length?null:function(e){return Mh(V2(e,n).map(z2)).pipe(Bt($2))}}function f0(t){return null!=t?U2(Z2(t)):null}function W2(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function X2(t){return t._rawValidators}function J2(t){return t._rawAsyncValidators}function p0(t){return t?Array.isArray(t)?t:[t]:[]}function om(t,n){return Array.isArray(t)?t.includes(n):t===n}function Q2(t,n){const e=p0(n);return p0(t).forEach(o=>{om(e,o)||e.push(o)}),e}function K2(t,n){return p0(n).filter(e=>!om(t,e))}class q2{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=h0(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=f0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Ao extends q2{get formDirective(){return null}get path(){return null}}class ya extends q2{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class eO{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let rm=(()=>{class t extends eO{constructor(e){super(e)}static{this.\u0275fac=function(i){return new(i||t)(K(ya,2))}}static{this.\u0275dir=gt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){2&i&&un("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[an]})}}return t})();const kh="VALID",sm="INVALID",lu="PENDING",Ih="DISABLED";function b0(t){return(lm(t)?t.validators:t)||null}function y0(t,n){return(lm(n)?n.asyncValidators:t)||null}function lm(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function nO(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new S(1e3,"");if(!i[e])throw new S(1001,"")}function iO(t,n,e){t._forEachChild((i,o)=>{if(void 0===e[o])throw new S(1002,"")})}class cm{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===kh}get invalid(){return this.status===sm}get pending(){return this.status==lu}get disabled(){return this.status===Ih}get enabled(){return this.status!==Ih}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(Q2(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Q2(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(K2(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(K2(n,this._rawAsyncValidators))}hasValidator(n){return om(this._rawValidators,n)}hasAsyncValidator(n){return om(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=lu,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Ih,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=kh,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===kh||this.status===lu)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ih:kh}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=lu,this._hasOwnPendingAsyncValidator=!0;const e=z2(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,o)=>i&&i._find(o),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new Ot,this.statusChanges=new Ot}_calculateStatus(){return this._allControlsDisabled()?Ih:this.errors?sm:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(lu)?lu:this._anyControlsHaveStatus(sm)?sm:kh}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){lm(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function YU(t){return Array.isArray(t)?h0(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function zU(t){return Array.isArray(t)?f0(t):t||null}(this._rawAsyncValidators)}}class Oh extends cm{constructor(n,e,i){super(b0(e),y0(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){iO(this,0,n),Object.keys(n).forEach(i=>{nO(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const o=this.controls[i];o&&o.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,o)=>{i.reset(n?n[o]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,o)=>((i.enabled||this.disabled)&&(e[o]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((o,r)=>{i=e(i,o,r)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class oO extends Oh{}const Al=new He("CallSetDisabledState",{providedIn:"root",factory:()=>Rh}),Rh="always";function Ph(t,n,e=Rh){_0(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function VU(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&rO(t,n)})}(t,n),function GU(t,n){const e=(i,o)=>{n.valueAccessor.writeValue(i),o&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function ZU(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&rO(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function $U(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function dm(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),fm(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function hm(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function _0(t,n){const e=X2(t);null!==n.validator?t.setValidators(W2(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=J2(t);null!==n.asyncValidator?t.setAsyncValidators(W2(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const o=()=>t.updateValueAndValidity();hm(n._rawValidators,o),hm(n._rawAsyncValidators,o)}function fm(t,n){let e=!1;if(null!==t){if(null!==n.validator){const o=X2(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(null!==n.asyncValidator){const o=J2(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}const i=()=>{};return hm(n._rawValidators,i),hm(n._rawAsyncValidators,i),e}function rO(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function aO(t,n){_0(t,n)}function w0(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}function sO(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function C0(t,n){if(!n)return null;let e,i,o;return Array.isArray(n),n.forEach(r=>{r.constructor===Ah?e=r:function XU(t){return Object.getPrototypeOf(t.constructor)===Ml}(r)?i=r:o=r}),o||i||e||null}const QU={provide:Ao,useExisting:Dn(()=>Fh)},Nh=(()=>Promise.resolve())();let Fh=(()=>{class t extends Ao{constructor(e,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ot,this.form=new Oh({},h0(e),f0(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Nh.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Ph(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Nh.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Nh.then(()=>{const i=this._findContainer(e.path),o=new Oh({});aO(o,e),i.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Nh.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){Nh.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,sO(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static{this.\u0275fac=function(i){return new(i||t)(K(Xi,10),K(Ls,10),K(Al,8))}}static{this.\u0275dir=gt({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,o){1&i&&_t("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[Le.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[wn([QU]),an]})}}return t})();function lO(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function cO(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const Vr=class extends cm{constructor(n=null,e,i){super(b0(e),y0(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),lm(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=cO(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){lO(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){lO(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){cO(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},eW={provide:ya,useExisting:Dn(()=>Lh)},hO=(()=>Promise.resolve())();let Lh=(()=>{class t extends ya{constructor(e,i,o,r,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this.control=new Vr,this._registered=!1,this.name="",this.update=new Ot,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=C0(0,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),w0(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ph(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){hO.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,o=0!==i&&Nt(i);hO.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function um(t,n){return[...n.path,t]}(e,this._parent):[e]}static{this.\u0275fac=function(i){return new(i||t)(K(Ao,9),K(Xi,10),K(Ls,10),K(or,10),K(mi,8),K(Al,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[Le.None,"disabled","isDisabled"],model:[Le.None,"ngModel","model"],options:[Le.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[wn([eW]),an,Gi]})}}return t})();const x0=new He(""),aW={provide:ya,useExisting:Dn(()=>S0)};let S0=(()=>{class t extends ya{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,i,o,r,a){super(),this._ngModelWarningConfig=r,this.callSetDisabledState=a,this.update=new Ot,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=C0(0,o)}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&dm(i,this,!1),Ph(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}w0(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&dm(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static{this.\u0275fac=function(i){return new(i||t)(K(Xi,10),K(Ls,10),K(or,10),K(x0,8),K(Al,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","formControl",""]],inputs:{form:[Le.None,"formControl","form"],isDisabled:[Le.None,"disabled","isDisabled"],model:[Le.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[wn([aW]),an,Gi]})}}return t})();const sW={provide:Ao,useExisting:Dn(()=>jh)};let jh=(()=>{class t extends Ao{constructor(e,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ot,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(fm(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return Ph(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){dm(e.control||null,e,!1),function JU(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,sO(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,o=this.form.get(e.path);i!==o&&(dm(i||null,e),(t=>t instanceof Vr)(o)&&(Ph(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);aO(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function UU(t,n){return fm(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){_0(this.form,this),this._oldForm&&fm(this._oldForm,this)}_checkFormPresent(){}static{this.\u0275fac=function(i){return new(i||t)(K(Xi,10),K(Ls,10),K(Al,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,o){1&i&&_t("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[Le.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[wn([sW]),an,Gi]})}}return t})(),kl=(()=>{class t{constructor(){this._validator=im}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):im,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=gt({type:t,features:[Gi]})}}return t})();const _W={provide:Xi,useExisting:Dn(()=>pm),multi:!0};let pm=(()=>{class t extends kl{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Nt,this.createValidator=e=>N2}enabled(e){return e}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=yi(t)))(o||t)}})()}static{this.\u0275dir=gt({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,o){2&i&&Kt("required",o._enabled?"":null)},inputs:{required:"required"},features:[wn([_W]),an]})}}return t})(),MO=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({})}}return t})();class AO extends cm{constructor(n,e,i){super(b0(e),y0(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let o=this._adjustIndex(n);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),e&&(this.controls.splice(o,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){iO(this,0,n),n.forEach((i,o)=>{nO(this,!1,o),this.at(o).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,o)=>{this.at(o)&&this.at(o).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,o)=>{i.reset(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function kO(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let IO=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const o=this._reduceControls(e);let r={};return kO(i)?r=i:null!==i&&(r.validators=i.validator,r.asyncValidators=i.asyncValidator),new Oh(o,r)}record(e,i=null){const o=this._reduceControls(e);return new oO(o,i)}control(e,i,o){let r={};return this.useNonNullable?(kO(i)?r=i:(r.validators=i,r.asyncValidators=o),new Vr(e,{...r,nonNullable:!0})):new Vr(e,i,o)}array(e,i,o){const r=e.map(a=>this._createControl(a));return new AO(r,i,o)}_reduceControls(e){const i={};return Object.keys(e).forEach(o=>{i[o]=this._createControl(e[o])}),i}_createControl(e){return e instanceof Vr||e instanceof cm?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),OO=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Al,useValue:e.callSetDisabledState??Rh}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[MO]})}}return t})(),DW=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:x0,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Al,useValue:e.callSetDisabledState??Rh}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[MO]})}}return t})();function RO(t){return new S(3e3,!1)}function Bs(t){switch(t.length){case 0:return new xh;case 1:return t[0];default:return new FI(t)}}function PO(t,n,e=new Map,i=new Map){const o=[],r=[];let a=-1,s=null;if(n.forEach(l=>{const c=l.get("offset"),u=c==a,d=u&&s||new Map;l.forEach((h,p)=>{let g=p,b=h;if("offset"!==p)switch(g=t.normalizePropertyName(g,o),b){case"!":b=e.get(p);break;case Ga:b=i.get(p);break;default:b=t.normalizeStyleValue(p,g,b,o)}d.set(g,b)}),u||r.push(d),s=d,a=c}),o.length)throw function WW(t){return new S(3502,!1)}();return r}function k0(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&I0(e,"start",t)));break;case"done":t.onDone(()=>i(e&&I0(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&I0(e,"destroy",t)))}}function I0(t,n,e){const r=O0(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),a=t._data;return null!=a&&(r._data=a),r}function O0(t,n,e,i,o="",r=0,a){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:o,totalTime:r,disabled:!!a}}function rr(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function NO(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}const aX=(()=>typeof document>"u"?null:document.documentElement)();function R0(t){const n=t.parentNode||t.host||null;return n===aX?null:n}let Il=null,FO=!1;function LO(t,n){for(;n;){if(n===t)return!0;n=R0(n)}return!1}function jO(t,n,e){if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]}let P0=(()=>{class t{validateStyleProperty(e){return function lX(t){Il||(Il=function cX(){return typeof document<"u"?document.body:null}()||{},FO=!!Il.style&&"WebkitAppearance"in Il.style);let n=!0;return Il.style&&!function sX(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Il.style,!n&&FO&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Il.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return LO(e,i)}getParentElement(e){return R0(e)}query(e,i,o){return jO(e,i,o)}computeStyle(e,i,o){return o||""}animate(e,i,o,r,a,s=[],l){return new xh(o,r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();class N0{static{this.NOOP=new P0}}class F0{}const dX=1e3,L0="ng-enter",gm="ng-leave",mm="ng-trigger",bm=".ng-trigger",HO="ng-animating",j0=".ng-animating";function Ja(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:B0(parseFloat(n[1]),n[2])}function B0(t,n){return"s"===n?t*dX:t}function ym(t,n,e){return t.hasOwnProperty("duration")?t:function fX(t,n,e){let o,r=0,a="";if("string"==typeof t){const s=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return n.push(RO()),{duration:0,delay:0,easing:""};o=B0(parseFloat(s[1]),s[2]);const l=s[3];null!=l&&(r=B0(parseFloat(l),s[4]));const c=s[5];c&&(a=c)}else o=t;if(!e){let s=!1,l=n.length;o<0&&(n.push(function EW(){return new S(3100,!1)}()),s=!0),r<0&&(n.push(function TW(){return new S(3101,!1)}()),s=!0),s&&n.splice(l,0,RO())}return{duration:o,delay:r,easing:a}}(t,n,e)}function _a(t,n,e){n.forEach((i,o)=>{const r=Y0(o);e&&!e.has(o)&&e.set(o,t.style[r]),t.style[r]=i})}function Ol(t,n){n.forEach((e,i)=>{const o=Y0(i);t.style[o]=""})}function Bh(t){return Array.isArray(t)?1==t.length?t[0]:function BZ(t,n=null){return{type:Xt.Sequence,steps:t,options:n}}(t):t}const H0=new RegExp("{{\\s*(.+?)\\s*}}","g");function zO(t){let n=[];if("string"==typeof t){let e;for(;e=H0.exec(t);)n.push(e[1]);H0.lastIndex=0}return n}function Hh(t,n,e){const i=`${t}`,o=i.replace(H0,(r,a)=>{let s=n[a];return null==s&&(e.push(function AW(t){return new S(3003,!1)}()),s=""),s.toString()});return o==i?t:o}const mX=/-+([a-z0-9])/g;function Y0(t){return t.replace(mX,(...n)=>n[1].toUpperCase())}function ar(t,n,e){switch(n.type){case Xt.Trigger:return t.visitTrigger(n,e);case Xt.State:return t.visitState(n,e);case Xt.Transition:return t.visitTransition(n,e);case Xt.Sequence:return t.visitSequence(n,e);case Xt.Group:return t.visitGroup(n,e);case Xt.Animate:return t.visitAnimate(n,e);case Xt.Keyframes:return t.visitKeyframes(n,e);case Xt.Style:return t.visitStyle(n,e);case Xt.Reference:return t.visitReference(n,e);case Xt.AnimateChild:return t.visitAnimateChild(n,e);case Xt.AnimateRef:return t.visitAnimateRef(n,e);case Xt.Query:return t.visitQuery(n,e);case Xt.Stagger:return t.visitStagger(n,e);default:throw function kW(t){return new S(3004,!1)}()}}function z0(t,n){return window.getComputedStyle(t)[n]}const _X=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class $O extends F0{normalizePropertyName(n,e){return Y0(n)}normalizeStyleValue(n,e,i,o){let r="";const a=i.toString().trim();if(_X.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const s=i.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&o.push(function IW(t,n){return new S(3005,!1)}())}return a+r}}const _m="*";const vm=new Set(["true","1"]),wm=new Set(["false","0"]);function VO(t,n){const e=vm.has(t)||wm.has(t),i=vm.has(n)||wm.has(n);return(o,r)=>{let a=t==_m||t==o,s=n==_m||n==r;return!a&&e&&"boolean"==typeof o&&(a=o?vm.has(t):wm.has(t)),!s&&i&&"boolean"==typeof r&&(s=r?vm.has(n):wm.has(n)),a&&s}}const xX=new RegExp("s*:selfs*,?","g");function $0(t,n,e,i){return new SX(t).build(n,e,i)}class SX{constructor(n){this._driver=n}build(n,e,i){const o=new TX(e);return this._resetContextStyleTimingState(o),ar(this,Bh(n),o)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,o=e.depCount=0;const r=[],a=[];return"@"==n.name.charAt(0)&&e.errors.push(function OW(){return new S(3006,!1)}()),n.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==Xt.State){const l=s,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,r.push(this.visitState(l,e))}),l.name=c}else if(s.type==Xt.Transition){const l=this.visitTransition(s,e);i+=l.queryCount,o+=l.depCount,a.push(l)}else e.errors.push(function RW(){return new S(3007,!1)}())}),{type:Xt.Trigger,name:n.name,states:r,transitions:a,queryCount:i,depCount:o,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),o=n.options&&n.options.params||null;if(i.containsDynamicStyles){const r=new Set,a=o||{};i.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{zO(l).forEach(c=>{a.hasOwnProperty(c)||r.add(c)})})}),r.size&&e.errors.push(function PW(t,n){return new S(3008,!1)}(0,r.values()))}return{type:Xt.State,name:n.name,style:i,options:o?{params:o}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=ar(this,Bh(n.animation),e),o=function vX(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function wX(t,n,e){if(":"==t[0]){const l=function CX(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function $W(t){return new S(3015,!1)}()),n;const o=i[1],r=i[2],a=i[3];n.push(VO(o,a)),"<"==r[0]&&(o!=_m||a!=_m)&&n.push(VO(a,o))}(i,e,n)):e.push(t),e}(n.expr,e.errors);return{type:Xt.Transition,matchers:o,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Rl(n.options)}}visitSequence(n,e){return{type:Xt.Sequence,steps:n.steps.map(i=>ar(this,i,e)),options:Rl(n.options)}}visitGroup(n,e){const i=e.currentTime;let o=0;const r=n.steps.map(a=>{e.currentTime=i;const s=ar(this,a,e);return o=Math.max(o,e.currentTime),s});return e.currentTime=o,{type:Xt.Group,steps:r,options:Rl(n.options)}}visitAnimate(n,e){const i=function AX(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return V0(ym(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=V0(0,0,"");return r.dynamic=!0,r.strValue=e,r}const o=ym(e,n);return V0(o.duration,o.delay,o.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let o,r=n.styles?n.styles:oi({});if(r.type==Xt.Keyframes)o=this.visitKeyframes(r,e);else{let a=n.styles,s=!1;if(!a){s=!0;const c={};i.easing&&(c.easing=i.easing),a=oi(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(a,e);l.isEmptyStep=s,o=l}return e.currentAnimateTimings=null,{type:Xt.Animate,timings:i,style:o,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],o=Array.isArray(n.styles)?n.styles:[n.styles];for(let s of o)"string"==typeof s?s===Ga?i.push(s):e.errors.push(new S(3002,!1)):i.push(new Map(Object.entries(s)));let r=!1,a=null;return i.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!r))for(let l of s.values())if(l.toString().indexOf("{{")>=0){r=!0;break}}),{type:Xt.Style,styles:i,easing:a,offset:n.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let o=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),n.styles.forEach(a=>{"string"!=typeof a&&a.forEach((s,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(r!=o&&r>=u.startTime&&o<=u.endTime&&(e.errors.push(function FW(t,n,e,i,o){return new S(3010,!1)}()),d=!1),r=u.startTime),d&&c.set(l,{startTime:r,endTime:o}),e.options&&function gX(t,n,e){const i=n.params||{},o=zO(t);o.length&&o.forEach(r=>{i.hasOwnProperty(r)||e.push(function MW(t){return new S(3001,!1)}())})}(s,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:Xt.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function LW(){return new S(3011,!1)}()),i;let r=0;const a=[];let s=!1,l=!1,c=0;const u=n.steps.map(D=>{const H=this._makeStyleAst(D,e);let oe=null!=H.offset?H.offset:function MX(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(H.styles),le=0;return null!=oe&&(r++,le=H.offset=oe),l=l||le<0||le>1,s=s||le0&&r{const oe=h>0?H==p?1:h*H:a[H],le=oe*T;e.currentTime=g+b.delay+le,b.duration=le,this._validateStyleAst(D,e),D.offset=oe,i.styles.push(D)}),i}visitReference(n,e){return{type:Xt.Reference,animation:ar(this,Bh(n.animation),e),options:Rl(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:Xt.AnimateChild,options:Rl(n.options)}}visitAnimateRef(n,e){return{type:Xt.AnimateRef,animation:this.visitReference(n.animation,e),options:Rl(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,o=n.options||{};e.queryCount++,e.currentQuery=n;const[r,a]=function DX(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(xX,"")),t=t.replace(/@\*/g,bm).replace(/@\w+/g,e=>bm+"-"+e.slice(1)).replace(/:animating/g,j0),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+r:r,rr(e.collectedStyles,e.currentQuerySelector,new Map);const s=ar(this,Bh(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:Xt.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:s,originalSelector:n.selector,options:Rl(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function YW(){return new S(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:ym(n.timings,e.errors,!0);return{type:Xt.Stagger,animation:ar(this,Bh(n.animation),e),timings:i,options:null}}}class TX{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Rl(t){return t?(t={...t}).params&&(t.params=function EX(t){return t?{...t}:null}(t.params)):t={},t}function V0(t,n,e){return{duration:t,delay:n,easing:e}}function Z0(t,n,e,i,o,r,a=null,s=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:a,subTimeline:s}}class Cm{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const OX=new RegExp(":enter","g"),PX=new RegExp(":leave","g");function G0(t,n,e,i,o,r=new Map,a=new Map,s,l,c=[]){return(new NX).buildKeyframes(t,n,e,i,o,r,a,s,l,c)}class NX{buildKeyframes(n,e,i,o,r,a,s,l,c,u=[]){c=c||new Cm;const d=new U0(n,e,c,o,r,u,[]);d.options=l;const h=l.delay?Ja(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([a],null,d.errors,l),ar(this,i,d);const p=d.timelines.filter(g=>g.containsAnimation());if(p.length&&s.size){let g;for(let b=p.length-1;b>=0;b--){const T=p[b];if(T.element===e){g=T;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([s],null,d.errors,l)}return p.length?p.map(g=>g.buildKeyframes()):[Z0(e,[],[],[],0,h,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const o=e.createSubContext(n.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,o,o.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const o of n){const r=o?.delay;if(r){const a="number"==typeof r?r:Ja(Hh(r,o?.params??{},e.errors));i.delayNextStep(a)}}}_visitSubInstructions(n,e,i){let r=e.currentTimeline.currentTime;const a=null!=i.duration?Ja(i.duration):null,s=null!=i.delay?Ja(i.delay):null;return 0!==a&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,a,s);r=Math.max(r,c.duration+c.delay)}),r}visitReference(n,e){e.updateOptions(n.options,!0),ar(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let o=e;const r=n.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),null!=r.delay)){o.previousNode.type==Xt.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=xm);const a=Ja(r.delay);o.delayNextStep(a)}n.steps.length&&(n.steps.forEach(a=>ar(this,a,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let o=e.currentTimeline.currentTime;const r=n.options&&n.options.delay?Ja(n.options.delay):0;n.steps.forEach(a=>{const s=e.createSubContext(n.options);r&&s.delayNextStep(r),ar(this,a,s),o=Math.max(o,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(o),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return ym(e.params?Hh(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),o=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),o.snapshotCurrentStyles());const r=n.style;r.type==Xt.Keyframes?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,o=e.currentAnimateTimings;!o&&i.hasCurrentStyleProperties()&&i.forwardFrame();const r=o&&o.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(r):i.setStyles(n.styles,r,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,o=e.currentTimeline.duration,r=i.duration,s=e.createSubContext().currentTimeline;s.easing=i.easing,n.styles.forEach(l=>{s.forwardTime((l.offset||0)*r),s.setStyles(l.styles,l.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(o+r),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,o=n.options||{},r=o.delay?Ja(o.delay):0;r&&(e.previousNode.type===Xt.Style||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=xm);let a=i;const s=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;let l=null;s.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(n.options,c);r&&d.delayNextStep(r),c===e.element&&(l=d.currentTimeline),ar(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,o=e.currentTimeline,r=n.timings,a=Math.abs(r.duration),s=a*(e.currentQueryTotal-1);let l=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=s-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;ar(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=o.currentTime-d+(o.startTime-i.currentTimeline.startTime)}}const xm={};class U0{constructor(n,e,i,o,r,a,s,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=xm,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Sm(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let o=this.options;null!=i.duration&&(o.duration=Ja(i.duration)),null!=i.delay&&(o.delay=Ja(i.delay));const r=i.params;if(r){let a=o.params;a||(a=this.options.params={}),Object.keys(r).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=Hh(r[s],a,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(o=>{i[o]=e[o]})}}return n}createSubContext(n=null,e,i){const o=e||this.element,r=new U0(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=xm,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const o={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},r=new FX(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,o,n.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,o,r,a){let s=[];if(o&&s.push(this.element),n.length>0){n=(n=n.replace(OX,"."+this._enterClassName)).replace(PX,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),s.push(...c)}return!r&&0==s.length&&a.push(function zW(t){return new S(3014,!1)}()),s}}class Sm{constructor(n,e,i,o){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Sm(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Ga),this._currentKeyframe.set(e,Ga);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,o){e&&this._previousKeyframe.set("easing",e);const r=o&&o.params||{},a=function LX(t,n){const e=new Map;let i;return t.forEach(o=>{if("*"===o){i??=n.keys();for(let r of i)e.set(r,Ga)}else for(let[r,a]of o)e.set(r,a)}),e}(n,this._globalTimelineStyles);for(let[s,l]of a){const c=Hh(l,r,i);this._pendingStyles.set(s,c),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Ga),this._updateStyle(s,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const o=this._styleSummary.get(i);(!o||e.time>o.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((s,l)=>{const c=new Map([...this._backFill,...s]);c.forEach((u,d)=>{"!"===u?n.add(d):u===Ga&&e.add(d)}),i||c.set("offset",l/this.duration),o.push(c)});const r=[...n.values()],a=[...e.values()];if(i){const s=o[0],l=new Map(s);s.set("offset",0),l.set("offset",1),o=[s,l]}return Z0(this.element,o,r,a,this.duration,this.startTime,this.easing,!1)}}class FX extends Sm{constructor(n,e,i,o,r,a,s=!1){super(n,e,a.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],a=i+e,s=e/a,l=new Map(n[0]);l.set("offset",0),r.push(l);const c=new Map(n[0]);c.set("offset",UO(s)),r.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let h=new Map(n[d]);const p=h.get("offset");h.set("offset",UO((e+p*i)/a)),r.push(h)}i=a,e=0,o="",n=r}return Z0(this.element,n,this.preStyleProps,this.postStyleProps,i,e,o,!0)}}function UO(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}function WO(t,n,e,i,o,r,a,s,l,c,u,d,h){return{type:0,element:t,triggerName:n,isRemovalTransition:o,fromState:e,fromStyles:r,toState:i,toStyles:a,timelines:s,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const W0={};class XO{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,o){return function jX(t,n,e,i,o){return t.some(r=>r(n,e,i,o))}(this.ast.matchers,n,e,i,o)}buildStyles(n,e,i){let o=this._stateStyles.get("*");return void 0!==n&&(o=this._stateStyles.get(n?.toString())||o),o?o.buildStyles(e,i):new Map}build(n,e,i,o,r,a,s,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||W0,g=this.buildStyles(i,s&&s.params||W0,d),b=l&&l.params||W0,T=this.buildStyles(o,b,d),D=new Set,H=new Map,oe=new Map,le="void"===o,G={params:JO(b,h),delay:this.ast.options?.delay},pe=u?[]:G0(n,e,this.ast.animation,r,a,g,T,G,c,d);let _e=0;return pe.forEach(be=>{_e=Math.max(be.duration+be.delay,_e)}),d.length?WO(e,this._triggerName,i,o,le,g,T,[],[],H,oe,_e,d):(pe.forEach(be=>{const Be=be.element,Fe=rr(H,Be,new Set);be.preStyleProps.forEach(Re=>Fe.add(Re));const Qe=rr(oe,Be,new Set);be.postStyleProps.forEach(Re=>Qe.add(Re)),Be!==e&&D.add(Be)}),WO(e,this._triggerName,i,o,le,g,T,pe,[...D.values()],H,oe,_e))}}function JO(t,n){const e={...n};return Object.entries(t).forEach(([i,o])=>{null!=o&&(e[i]=o)}),e}class BX{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,o=JO(n,this.defaultParams);return this.styles.styles.forEach(r=>{"string"!=typeof r&&r.forEach((a,s)=>{a&&(a=Hh(a,o,e));const l=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,l,a,e),i.set(s,a)})}),i}}class YX{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new BX(o.style,o.options&&o.options.params||{},i))}),QO(this.states,"true","1"),QO(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new XO(n,o,this.states))}),this.fallbackTransition=function zX(t,n,e){return new XO(t,{type:Xt.Transition,animation:{type:Xt.Sequence,steps:[],options:null},matchers:[(a,s)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,o){return this.transitionFactories.find(a=>a.match(n,e,i,o))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function QO(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const $X=new Cm;class VX{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],r=$0(this._driver,e,i,[]);if(i.length)throw function XW(t){return new S(3503,!1)}();this._animations.set(n,r)}_buildPlayer(n,e,i){const o=n.element,r=PO(this._normalizer,n.keyframes,e,i);return this._driver.animate(o,r,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const o=[],r=this._animations.get(n);let a;const s=new Map;if(r?(a=G0(this._driver,e,r,L0,gm,new Map,new Map,i,$X,o),a.forEach(u=>{const d=rr(s,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(o.push(function JW(){return new S(3300,!1)}()),a=[]),o.length)throw function QW(t){return new S(3504,!1)}();s.forEach((u,d)=>{u.forEach((h,p)=>{u.set(p,this._driver.computeStyle(d,p,Ga))})});const c=Bs(a.map(u=>{const d=s.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function KW(t){return new S(3301,!1)}();return e}listen(n,e,i,o){const r=O0(e,"","","");return k0(this._getPlayer(n),i,r,o),()=>{}}command(n,e,i,o){if("register"==i)return void this.register(n,o[0]);if("create"==i)return void this.create(n,e,o[0]||{});const r=this._getPlayer(n);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(n)}}}const KO="ng-animate-queued",X0="ng-animate-disabled",XX=[],qO={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},JX={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Zr="__ng_removed";class J0{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function eJ(t){return t??null}(i?n.value:n),i){const{value:r,...a}=n;this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(o=>{null==i[o]&&(i[o]=e[o])})}}}const Yh="void",Q0=new J0(Yh);class QX{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,xr(e,this._hostClassName)}listen(n,e,i,o){if(!this._triggers.has(e))throw function qW(t,n){return new S(3302,!1)}();if(null==i||0==i.length)throw function eX(t){return new S(3303,!1)}();if(!function tJ(t){return"start"==t||"done"==t}(i))throw function tX(t,n){return new S(3400,!1)}();const r=rr(this._elementListeners,n,[]),a={name:e,phase:i,callback:o};r.push(a);const s=rr(this._engine.statesByElement,n,new Map);return s.has(e)||(xr(n,mm),xr(n,mm+"-"+e),s.set(e,Q0)),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(e)||s.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function nX(t){return new S(3401,!1)}();return e}trigger(n,e,i,o=!0){const r=this._getTrigger(e),a=new K0(this.id,e,n);let s=this._engine.statesByElement.get(n);s||(xr(n,mm),xr(n,mm+"-"+e),this._engine.statesByElement.set(n,s=new Map));let l=s.get(e);const c=new J0(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),s.set(e,c),l||(l=Q0),c.value!==Yh&&l.value===c.value){if(!function oJ(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let o=0;o{Ol(n,T),_a(n,D)})}return}const h=rr(this._engine.playersByElement,n,[]);h.forEach(b=>{b.namespaceId==this.id&&b.triggerName==e&&b.queued&&b.destroy()});let p=r.matchTransition(l.value,c.value,n,c.params),g=!1;if(!p){if(!o)return;p=r.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:p,fromState:l,toState:c,player:a,isFallbackTransition:g}),g||(xr(n,KO),a.onStart(()=>{cu(n,KO)})),a.onDone(()=>{let b=this.players.indexOf(a);b>=0&&this.players.splice(b,1);const T=this._engine.playersByElement.get(n);if(T){let D=T.indexOf(a);D>=0&&T.splice(D,1)}}),this.players.push(a),h.push(a),a}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(o=>o.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,bm,!0);i.forEach(o=>{if(o[Zr])return;const r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(a=>a.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(n,e,i,o){const r=this._engine.statesByElement.get(n),a=new Map;if(r){const s=[];if(r.forEach((l,c)=>{if(a.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,Yh,o);u&&s.push(u)}}),s.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,a),i&&Bs(s).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const o=new Set;e.forEach(r=>{const a=r.name;if(o.has(a))return;o.add(a);const l=this._triggers.get(a).fallbackTransition,c=i.get(a)||Q0,u=new J0(Yh),d=new K0(this.id,a,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:a,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let o=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(n):[];if(r&&r.length)o=!0;else{let a=n;for(;a=a.parentNode;)if(i.statesByElement.get(a)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(n),o)i.markElementAsRemoved(this.id,n,!1,e);else{const r=n[Zr];(!r||r===qO)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){xr(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const o=i.player;if(o.destroyed)return;const r=i.element,a=this._elementListeners.get(r);a&&a.forEach(s=>{if(s.name==i.triggerName){const l=O0(r,i.triggerName,i.fromState.value,i.toState.value);l._data=n,k0(i.player,s.phase,l,s.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(i)}),this._queue=[],e.sort((i,o)=>{const r=i.transition.ast.depCount,a=o.transition.ast.depCount;return 0==r||0==a?r-a:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class KX{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i,o){this.bodyNode=n,this.driver=e,this._normalizer=i,this.scheduler=o,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,a)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new QX(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,o=this.namespacesByHostElement;if(i.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){const l=o.get(s);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),a=!0;break}s=this.driver.getParentElement(s)}a||i.unshift(n)}else i.push(n);return o.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let o=this._namespaceLookup[n];o&&o.register(e,i)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);const o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1),i.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let o of i.values())if(o.namespaceId){const r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}return e}trigger(n,e,i,o){if(Dm(e)){const r=this._fetchNamespace(n);if(r)return r.trigger(e,i,o),!0}return!1}insertNode(n,e,i,o){if(!Dm(e))return;const r=e[Zr];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(n){const a=this._fetchNamespace(n);a&&a.insertNode(e,i)}o&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),xr(n,X0)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),cu(n,X0))}removeNode(n,e,i){if(Dm(e)){this.scheduler?.notify();const o=n?this._fetchNamespace(n):null;o?o.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);const r=this.namespacesByHostElement.get(e);r&&r.id!==n&&r.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(n,e,i,o,r){this.collectedLeaveElements.push(e),e[Zr]={namespaceId:n,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(n,e,i,o,r){return Dm(e)?this._fetchNamespace(n).listen(e,i,o,r):()=>{}}_buildInstruction(n,e,i,o,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,o,n.fromState.options,n.toState.options,e,r)}destroyInnerAnimations(n){let e=this.driver.query(n,bm,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,j0,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Bs(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[Zr];if(e&&e.setForRemoval){if(n[Zr]=qO,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(X0)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Bs(e).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(n){throw function iX(t){return new S(3402,!1)}()}_flushAnimations(n,e){const i=new Cm,o=[],r=new Map,a=[],s=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(Se=>{u.add(Se);const Ye=this.driver.query(Se,".ng-animate-queued",!0);for(let We=0;We{const We=L0+b++;g.set(Ye,We),Se.forEach(it=>xr(it,We))});const T=[],D=new Set,H=new Set;for(let Se=0;SeD.add(it)):H.add(Ye))}const oe=new Map,le=nR(h,Array.from(D));le.forEach((Se,Ye)=>{const We=gm+b++;oe.set(Ye,We),Se.forEach(it=>xr(it,We))}),n.push(()=>{p.forEach((Se,Ye)=>{const We=g.get(Ye);Se.forEach(it=>cu(it,We))}),le.forEach((Se,Ye)=>{const We=oe.get(Ye);Se.forEach(it=>cu(it,We))}),T.forEach(Se=>{this.processLeaveNode(Se)})});const G=[],pe=[];for(let Se=this._namespaceList.length-1;Se>=0;Se--)this._namespaceList[Se].drainQueuedTransitions(e).forEach(We=>{const it=We.player,St=We.element;if(G.push(it),this.collectedEnterElements.length){const Un=St[Zr];if(Un&&Un.setForMove){if(Un.previousTriggersValues&&Un.previousTriggersValues.has(We.triggerName)){const dt=Un.previousTriggersValues.get(We.triggerName),Cn=this.statesByElement.get(We.element);if(Cn&&Cn.has(We.triggerName)){const ro=Cn.get(We.triggerName);ro.value=dt,Cn.set(We.triggerName,ro)}}return void it.destroy()}}const At=!d||!this.driver.containsElement(d,St),on=oe.get(St),Rn=g.get(St),sn=this._buildInstruction(We,i,Rn,on,At);if(sn.errors&&sn.errors.length)return void pe.push(sn);if(At)return it.onStart(()=>Ol(St,sn.fromStyles)),it.onDestroy(()=>_a(St,sn.toStyles)),void o.push(it);if(We.isFallbackTransition)return it.onStart(()=>Ol(St,sn.fromStyles)),it.onDestroy(()=>_a(St,sn.toStyles)),void o.push(it);const ln=[];sn.timelines.forEach(Un=>{Un.stretchStartingKeyframe=!0,this.disabledNodes.has(Un.element)||ln.push(Un)}),sn.timelines=ln,i.append(St,sn.timelines),a.push({instruction:sn,player:it,element:St}),sn.queriedElements.forEach(Un=>rr(s,Un,[]).push(it)),sn.preStyleProps.forEach((Un,dt)=>{if(Un.size){let Cn=l.get(dt);Cn||l.set(dt,Cn=new Set),Un.forEach((ro,Ar)=>Cn.add(Ar))}}),sn.postStyleProps.forEach((Un,dt)=>{let Cn=c.get(dt);Cn||c.set(dt,Cn=new Set),Un.forEach((ro,Ar)=>Cn.add(Ar))})});if(pe.length){const Se=[];pe.forEach(Ye=>{Se.push(function oX(t,n){return new S(3505,!1)}())}),G.forEach(Ye=>Ye.destroy()),this.reportError(Se)}const _e=new Map,be=new Map;a.forEach(Se=>{const Ye=Se.element;i.has(Ye)&&(be.set(Ye,Ye),this._beforeAnimationBuild(Se.player.namespaceId,Se.instruction,_e))}),o.forEach(Se=>{const Ye=Se.element;this._getPreviousPlayers(Ye,!1,Se.namespaceId,Se.triggerName,null).forEach(it=>{rr(_e,Ye,[]).push(it),it.destroy()})});const Be=T.filter(Se=>oR(Se,l,c)),Fe=new Map;tR(Fe,this.driver,H,c,Ga).forEach(Se=>{oR(Se,l,c)&&Be.push(Se)});const Re=new Map;p.forEach((Se,Ye)=>{tR(Re,this.driver,new Set(Se),l,"!")}),Be.forEach(Se=>{const Ye=Fe.get(Se),We=Re.get(Se);Fe.set(Se,new Map([...Ye?.entries()??[],...We?.entries()??[]]))});const Xe=[],ct=[],ut={};a.forEach(Se=>{const{element:Ye,player:We,instruction:it}=Se;if(i.has(Ye)){if(u.has(Ye))return We.onDestroy(()=>_a(Ye,it.toStyles)),We.disabled=!0,We.overrideTotalTime(it.totalTime),void o.push(We);let St=ut;if(be.size>1){let on=Ye;const Rn=[];for(;on=on.parentNode;){const sn=be.get(on);if(sn){St=sn;break}Rn.push(on)}Rn.forEach(sn=>be.set(sn,St))}const At=this._buildAnimation(We.namespaceId,it,_e,r,Re,Fe);if(We.setRealPlayer(At),St===ut)Xe.push(We);else{const on=this.playersByElement.get(St);on&&on.length&&(We.parentPlayer=Bs(on)),o.push(We)}}else Ol(Ye,it.fromStyles),We.onDestroy(()=>_a(Ye,it.toStyles)),ct.push(We),u.has(Ye)&&o.push(We)}),ct.forEach(Se=>{const Ye=r.get(Se.element);if(Ye&&Ye.length){const We=Bs(Ye);Se.setRealPlayer(We)}}),o.forEach(Se=>{Se.parentPlayer?Se.syncPlayerEvents(Se.parentPlayer):Se.destroy()});for(let Se=0;Se!At.destroyed);St.length?nJ(this,Ye,St):this.processLeaveNode(Ye)}return T.length=0,Xe.forEach(Se=>{this.players.push(Se),Se.onDone(()=>{Se.destroy();const Ye=this.players.indexOf(Se);this.players.splice(Ye,1)}),Se.play()}),Xe}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,o,r){let a=[];if(e){const s=this.playersByQueriedElement.get(n);s&&(a=s)}else{const s=this.playersByElement.get(n);if(s){const l=!r||r==Yh;s.forEach(c=>{c.queued||!l&&c.triggerName!=o||a.push(c)})}}return(i||o)&&(a=a.filter(s=>!(i&&i!=s.namespaceId||o&&o!=s.triggerName))),a}_beforeAnimationBuild(n,e,i){const r=e.element,a=e.isRemovalTransition?void 0:n,s=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==r,d=rr(i,c,[]);this._getPreviousPlayers(c,u,a,s,e.toState).forEach(p=>{const g=p.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),p.destroy(),d.push(p)})}Ol(r,e.fromStyles)}_buildAnimation(n,e,i,o,r,a){const s=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(g=>{const b=g.element;u.add(b);const T=b[Zr];if(T&&T.removedBeforeQueried)return new xh(g.duration,g.delay);const D=b!==l,H=function iJ(t){const n=[];return iR(t,n),n}((i.get(b)||XX).map(_e=>_e.getRealPlayer())).filter(_e=>!!_e.element&&_e.element===b),oe=r.get(b),le=a.get(b),G=PO(this._normalizer,g.keyframes,oe,le),pe=this._buildPlayer(g,G,H);if(g.subTimeline&&o&&d.add(b),D){const _e=new K0(n,s,b);_e.setRealPlayer(pe),c.push(_e)}return pe});c.forEach(g=>{rr(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function qX(t,n,e){let i=t.get(n);if(i){if(i.length){const o=i.indexOf(e);i.splice(o,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,g.element,g))}),u.forEach(g=>xr(g,HO));const p=Bs(h);return p.onDestroy(()=>{u.forEach(g=>cu(g,HO)),_a(l,e.toStyles)}),d.forEach(g=>{rr(o,g,[]).push(p)}),p}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new xh(n.duration,n.delay)}}class K0{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new xh,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(o=>k0(n,i,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){rr(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Dm(t){return t&&1===t.nodeType}function eR(t,n){const e=t.style.display;return t.style.display=n??"none",e}function tR(t,n,e,i,o){const r=[];e.forEach(l=>r.push(eR(l)));const a=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=n.computeStyle(c,d,o);u.set(d,h),(!h||0==h.length)&&(c[Zr]=JX,a.push(c))}),t.set(c,u)});let s=0;return e.forEach(l=>eR(l,r[s++])),a}function nR(t,n){const e=new Map;if(t.forEach(s=>e.set(s,[])),0==n.length)return e;const o=new Set(n),r=new Map;function a(s){if(!s)return 1;let l=r.get(s);if(l)return l;const c=s.parentNode;return l=e.has(c)?c:o.has(c)?1:a(c),r.set(s,l),l}return n.forEach(s=>{const l=a(s);1!==l&&e.get(l).push(s)}),e}function xr(t,n){t.classList?.add(n)}function cu(t,n){t.classList?.remove(n)}function nJ(t,n,e){Bs(e).onDone(()=>t.processLeaveNode(n))}function iR(t,n){for(let e=0;eo.add(r)):n.set(t,i),e.delete(t),!0}class zh{constructor(n,e,i,o){this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,a)=>{},this._transitionEngine=new KX(n.body,e,i,o),this._timelineEngine=new VX(n.body,e,i),this._transitionEngine.onRemovalComplete=(r,a)=>this.onRemovalComplete(r,a)}registerTrigger(n,e,i,o,r){const a=n+"-"+o;let s=this._triggerCache[a];if(!s){const l=[],u=$0(this._driver,r,l,[]);if(l.length)throw function UW(t,n){return new S(3404,!1)}();s=function HX(t,n,e){return new YX(t,n,e)}(o,u,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,o,s)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,o){this._transitionEngine.insertNode(n,e,i,o)}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,o){if("@"==i.charAt(0)){const[r,a]=NO(i);this._timelineEngine.command(r,e,a,o)}else this._transitionEngine.trigger(n,e,i,o)}listen(n,e,i,o,r){if("@"==i.charAt(0)){const[a,s]=NO(i);return this._timelineEngine.listen(a,e,s,r)}return this._transitionEngine.listen(n,e,i,o,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}class $h{static{this.initialStylesByElement=new WeakMap}constructor(n,e,i){this._element=n,this._startStyles=e,this._endStyles=i,this._state=0;let o=$h.initialStylesByElement.get(n);o||$h.initialStylesByElement.set(n,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&_a(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(_a(this._element,this._initialStyles),this._endStyles&&(_a(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&($h.initialStylesByElement.delete(this._element),this._startStyles&&(Ol(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ol(this._element,this._endStyles),this._endStyles=null),_a(this._element,this._initialStyles),this._state=3)}}function q0(t){let n=null;return t.forEach((e,i)=>{(function aJ(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class rR{constructor(n,e,i,o){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,o)=>{"offset"!==o&&n.set(o,this._finished?i:z0(this.element,o))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class aR{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return LO(n,e)}getParentElement(n){return R0(n)}query(n,e,i){return jO(n,e,i)}computeStyle(n,e,i){return z0(n,e)}animate(n,e,i,o,r,a=[]){const l={duration:i,delay:o,fill:0==o?"both":"forwards"};r&&(l.easing=r);const c=new Map,u=a.filter(p=>p instanceof rR);(function bX(t,n){return 0===t||0===n})(i,o)&&u.forEach(p=>{p.currentSnapshot.forEach((g,b)=>c.set(b,g))});let d=function pX(t){return t.length?t[0]instanceof Map?t:t.map(n=>new Map(Object.entries(n))):[]}(e).map(p=>new Map(p));d=function yX(t,n,e){if(e.size&&n.length){let i=n[0],o=[];if(e.forEach((r,a)=>{i.has(a)||o.push(a),i.set(a,r)}),o.length)for(let r=1;ra.set(s,z0(t,s)))}}return n}(n,d,c);const h=function rJ(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=q0(n[0]),n.length>1&&(i=q0(n[n.length-1]))):n instanceof Map&&(e=q0(n)),e||i?new $h(t,e,i):null}(n,d);return new rR(n,d,l,h)}}const sR="@.disabled";class lR{constructor(n,e,i,o){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=o,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,o=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,o)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,o){this.delegate.setAttribute(n,e,i,o)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,o){this.delegate.setStyle(n,e,i,o)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==sR?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class sJ extends lR{constructor(n,e,i,o,r){super(e,i,o,r),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==sR?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const o=function lJ(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let r=e.slice(1),a="";return"@"!=r.charAt(0)&&([r,a]=function cJ(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(r)),this.engine.listen(this.namespaceId,o,r,a,s=>{this.factory.scheduleListenerCallback(s._data||-1,i,s)})}return this.delegate.listen(n,e,i)}}class uJ{constructor(n,e,i){this.delegate=n,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=(o,r)=>{const a=r?.parentNode(o);a&&r.removeChild(a,o)}}createRenderer(n,e){const o=this.delegate.createRenderer(n,e);if(!n||!e?.data?.animation){const c=this._rendererCache;let u=c.get(o);return u||(u=new lR("",o,this.engine,()=>c.delete(o)),c.set(o,u)),u}const r=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,n);const s=c=>{Array.isArray(c)?c.forEach(s):this.engine.registerTrigger(r,a,n,c.name,c)};return e.data.animation.forEach(s),new sJ(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,e,i){if(n>=0&&ne(i));const o=this._animationCallbacksBuffer;0==o.length&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(r=>{const[a,s]=r;a(s)}),this._animationCallbacksBuffer=[]})}),o.push([e,i])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}let dJ=(()=>{class t extends zh{constructor(e,i,o){super(e,i,o,Pe(Jp,{optional:!0}))}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(i){return new(i||t)(Me(qt),Me(N0),Me(F0))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const cR=[{provide:F0,useFactory:function hJ(){return new $O}},{provide:zh,useClass:dJ},{provide:sv,useFactory:function fJ(t,n,e){return new uJ(t,n,e)},deps:[Ww,zh,wt]}],eC=[{provide:N0,useFactory:()=>new aR},{provide:xo,useValue:"BrowserAnimations"},...cR],uR=[{provide:N0,useClass:P0},{provide:xo,useValue:"NoopAnimations"},...cR];let tC,pJ=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?uR:eC}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({providers:eC,imports:[Qw]})}}return t})();try{tC=typeof Intl<"u"&&Intl.v8BreakIterator}catch{tC=!1}let uu,Ai=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?cI(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!tC)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(i){return new(i||t)(Me(La))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const dR=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function hR(){if(uu)return uu;if("object"!=typeof document||!document)return uu=new Set(dR),uu;let t=document.createElement("input");return uu=new Set(dR.filter(n=>(t.setAttribute("type",n),t.type===n))),uu}let Vh,Pl,nC;function du(t){return function gJ(){if(null==Vh&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Vh=!0}))}finally{Vh=Vh||!1}return Vh}()?t:!!t.capture}function mJ(){if(null==Pl){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Pl=!1,Pl;if("scrollBehavior"in document.documentElement.style)Pl=!0;else{const t=Element.prototype.scrollTo;Pl=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Pl}function Mm(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function Hs(t){return t.composedPath?t.composedPath()[0]:t.target}function iC(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Qa(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function $i(t,n,e){const i=Ae(t)||n||e?{next:t,error:n,complete:e}:t;return i?$n((o,r)=>{var a;null===(a=i.subscribe)||void 0===a||a.call(i);let s=!0;o.subscribe(Pn(r,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),r.next(l)},()=>{var l;s=!1,null===(l=i.complete)||void 0===l||l.call(i),r.complete()},l=>{var c;s=!1,null===(c=i.error)||void 0===c||c.call(i,l),r.error(l)},()=>{var l,c;s&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):gr}class OJ extends ge{constructor(n,e){super()}schedule(n,e=0){return this}}const Pm={setInterval(t,n,...e){const{delegate:i}=Pm;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=Pm;return(n?.clearInterval||clearInterval)(t)},delegate:void 0};class oC extends OJ{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;const o=this.id,r=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(r,o,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return Pm.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&Pm.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let o,i=!1;try{this.work(n)}catch(r){i=!0,o=r||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,ne(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}const rC={now:()=>(rC.delegate||Date).now(),delegate:void 0};class Wh{constructor(n,e=Wh.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}Wh.now=rC.now;class aC extends Wh{constructor(n,e=Wh.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const Nm=new aC(oC),RJ=Nm;function pR(t,n=Nm){return $n((e,i)=>{let o=null,r=null,a=null;const s=()=>{if(o){o.unsubscribe(),o=null;const c=r;r=null,i.next(c)}};function l(){const c=a+t,u=n.now();if(u{r=c,a=n.now(),o||(o=n.schedule(l,t),i.add(o))},()=>{s(),i.complete()},void 0,()=>{r=o=null}))})}const Sr=new On(t=>t.complete());function _i(t){return t<=0?()=>Sr:$n((n,e)=>{let i=0;n.subscribe(Pn(e,o=>{++i<=t&&(e.next(o),t<=i&&e.complete())}))})}function gR(t){return ui((n,e)=>t<=e)}function sC(t,n=gr){return t=t??NJ,$n((e,i)=>{let o,r=!0;e.subscribe(Pn(i,a=>{const s=n(a);(r||!t(o,s))&&(r=!1,o=s,i.next(a))}))})}function NJ(t,n){return t===n}function yn(t){return $n((n,e)=>{io(t).subscribe(Pn(e,()=>e.complete(),kt)),!e.closed&&n.subscribe(e)})}let FJ=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),mR=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({providers:[FJ]})}}return t})();function Fm(t){return null!=t&&"false"!=`${t}`}function bR(t,n=0){return function LJ(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):n}function Lm(t){return Array.isArray(t)?t:[t]}function Fi(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Ys(t){return t instanceof Zt?t.nativeElement:t}function jm(...t){const n=Sh(t),e=YI(t),{args:i,keys:o}=M2(t);if(0===i.length)return bi([],n);const r=new On(function jJ(t,n,e=gr){return i=>{yR(n,()=>{const{length:o}=t,r=new Array(o);let a=o,s=o;for(let l=0;l{const c=bi(t[l],n);let u=!1;c.subscribe(Pn(i,d=>{r[l]=d,u||(u=!0,s--),s||i.next(e(r.slice()))},()=>{--a||i.complete()}))},i)},i)}}(i,n,o?a=>A2(o,a):gr));return e?r.pipe(d0(e)):r}function yR(t,n,e){t?Wa(e,t,n):n()}function hu(t=1/0){return Wi(gr,t)}function Xh(...t){return function BJ(){return hu(1)}()(bi(t,Sh(t)))}function sr(...t){const n=Sh(t);return $n((e,i)=>{(n?Xh(t,e,n):Xh(t,e)).subscribe(i)})}const _R=new Set;let Nl,HJ=(()=>{class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):zJ}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function YJ(t,n){if(!_R.has(t))try{Nl||(Nl=document.createElement("style"),n&&(Nl.nonce=n),Nl.setAttribute("type","text/css"),document.head.appendChild(Nl)),Nl.sheet&&(Nl.sheet.insertRule(`@media ${t} {body{ }}`,0),_R.add(t))}catch(e){console.error(e)}}(e,this._nonce),this._matchMedia(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(Ai),Me(h_,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function zJ(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let $J=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new vt}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return vR(Lm(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let r=jm(vR(Lm(e)).map(a=>this._registerQuery(a).observable));return r=Xh(r.pipe(_i(1)),r.pipe(gR(1),pR(0))),r.pipe(Bt(a=>{const s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:c})=>{s.matches=s.matches||l,s.breakpoints[c]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),r={observable:new On(a=>{const s=l=>this._zone.run(()=>a.next(l));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(sr(i),Bt(({matches:a})=>({query:e,matches:a})),yn(this._destroySubject)),mql:i};return this._queries.set(e,r),r}static{this.\u0275fac=function(i){return new(i||t)(Me(HJ),Me(wt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function vR(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}function CR(t,n,e){const i=xR(t,n);e=e.trim();const o=i.filter(r=>r!==e);o.length?t.setAttribute(n,o.join(" ")):t.removeAttribute(n)}function xR(t,n){return t.getAttribute(n)?.match(/\S+/g)??[]}class SR{constructor(n){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new vt,this._typeaheadSubscription=ge.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new vt,this.change=new vt,n instanceof Fa&&(this._itemChangesSubscription=n.changes.subscribe(e=>{if(this._activeItem){const o=e.toArray().indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}}))}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe($i(e=>this._pressedLetters.push(e)),pR(n),ui(()=>this._pressedLetters.length>0),Bt(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let o=1;o!n[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&o){this.setNextItemActive();break}return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&o){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&o){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&o){const r=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&o){const r=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],n.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){const e=this._getItemsArray(),i="number"==typeof n?n:e.indexOf(n);this._activeItem=e[i]??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const o=(this._activeItemIndex+n*i+e.length)%e.length;if(!this._skipPredicateFn(e[o]))return void this.setActiveItem(o)}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){const i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(!i[n+=e])return;this.setActiveItem(n)}}_getItemsArray(){return this._items instanceof Fa?this._items.toArray():this._items}}class UJ extends SR{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}}class DR extends SR{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}let lC=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function XJ(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function WJ(t){try{return t.frameElement}catch{return null}}(function iQ(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(i&&(-1===TR(i)||!this.isVisible(i)))return!1;let o=e.nodeName.toLowerCase(),r=TR(e);return e.hasAttribute("contenteditable")?-1!==r:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function tQ(t){let n=t.nodeName.toLowerCase(),e="input"===n&&t.type;return"text"===e||"password"===e||"select"===n||"textarea"===n}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==r:"video"===o?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function nQ(t){return!function QJ(t){return function qJ(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function JJ(t){let n=t.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(t)||function KJ(t){return function eQ(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||ER(t))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static{this.\u0275fac=function(i){return new(i||t)(Me(Ai))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function ER(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let n=t.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function TR(t){if(!ER(t))return null;const n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class oQ{get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}constructor(n,e,i,o,r=!1){this._element=n,this._checker=e,this._ngZone=i,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}destroy(){const n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){const e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return"start"==n?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){const e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){const e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const e=n.children;for(let i=0;i=0;i--){const o=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(o)return o}return null}_createAnchor(){const n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._ngZone.isStable?n():this._ngZone.onStable.pipe(_i(1)).subscribe(n)}}let MR=(()=>{class t{constructor(e,i,o){this._checker=e,this._ngZone=i,this._document=o}create(e,i=!1){return new oQ(e,this._checker,this._ngZone,this._document,i)}static{this.\u0275fac=function(i){return new(i||t)(Me(lC),Me(wt),Me(qt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function cC(t){return 0===t.buttons||0===t.detail}function uC(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const rQ=new He("cdk-input-modality-detector-options"),aQ={ignoreKeys:[18,17,224,91,16]},fu=du({passive:!0,capture:!0});let sQ=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,i,o,r){this._platform=e,this._mostRecentTarget=null,this._modality=new hi(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(s=>s===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Hs(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(cC(a)?"keyboard":"mouse"),this._mostRecentTarget=Hs(a))},this._onTouchstart=a=>{uC(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Hs(a))},this._options={...aQ,...r},this.modalityDetected=this._modality.pipe(gR(1)),this.modalityChanged=this.modalityDetected.pipe(sC()),e.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,fu),o.addEventListener("mousedown",this._onMousedown,fu),o.addEventListener("touchstart",this._onTouchstart,fu)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,fu),document.removeEventListener("mousedown",this._onMousedown,fu),document.removeEventListener("touchstart",this._onTouchstart,fu))}static{this.\u0275fac=function(i){return new(i||t)(Me(Ai),Me(wt),Me(qt),Me(rQ,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const lQ=new He("liveAnnouncerElement",{providedIn:"root",factory:function cQ(){return null}}),uQ=new He("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let dQ=0,hQ=(()=>{class t{constructor(e,i,o,r){this._ngZone=i,this._defaultOptions=r,this._document=o,this._liveElement=e||this._createLiveElement()}announce(e,...i){const o=this._defaultOptions;let r,a;return 1===i.length&&"number"==typeof i[0]?a=i[0]:[r,a]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),null==a&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{class t{constructor(e,i,o,r,a){this._ngZone=e,this._platform=i,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new vt,this._rootNodeFocusAndBlurListener=s=>{for(let c=Hs(s);c;c=c.parentElement)"focus"===s.type?this._onFocus(s,c):this._onBlur(s,c)},this._document=r,this._detectionMode=a?.detectionMode||Bm.IMMEDIATE}monitor(e,i=!1){const o=Ys(e);if(!this._platform.isBrowser||1!==o.nodeType)return Et();const r=function yJ(t){if(function bJ(){if(null==nC){const t=typeof document<"u"?document.head:null;nC=!(!t||!t.createShadowRoot&&!t.attachShadow)}return nC}()){const n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return i&&(a.checkChildren=!0),a.subject;const s={checkChildren:i,subject:new vt,rootNode:r};return this._elementInfo.set(o,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const i=Ys(e),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(e,i,o){const r=Ys(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([s,l])=>this._originChanged(s,i,l)):(this._setOrigin(i),"function"==typeof r.focus&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Bm.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,this._detectionMode===Bm.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const o=this._elementInfo.get(i),r=Hs(e);!o||!o.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),o)}_onBlur(e,i){const o=this._elementInfo.get(i);!o||o.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(o,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Hm),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Hm)}),this._rootNodeFocusListenerCount.set(i,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(yn(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Hm),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Hm),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,o){this._setClasses(e,i),this._emitOrigin(o,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&i.push([r,o])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const r=e.labels;if(r)for(let a=0;a{class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=Pe($J).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Fl.NONE;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,o=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Fl.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Fl.BLACK_ON_WHITE}return Fl.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(dC,kR,IR),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();i===Fl.BLACK_ON_WHITE?e.add(dC,kR):i===Fl.WHITE_ON_BLACK&&e.add(dC,IR)}}static{this.\u0275fac=function(i){return new(i||t)(Me(Ai),Me(qt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),pQ=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}static{this.\u0275fac=function(i){return new(i||t)(Me(OR))}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[mR]})}}return t})();const gQ=new He("cdk-dir-doc",{providedIn:"root",factory:function mQ(){return Pe(qt)}}),bQ=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let qa=(()=>{class t{constructor(e){this.value="ltr",this.change=new Ot,e&&(this.value=function yQ(t){const n=t?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?bQ.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(i){return new(i||t)(Me(gQ,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),pu=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({})}}return t})();const _Q=["text"],vQ=[[["mat-icon"]],"*"],wQ=["mat-icon","*"];function CQ(t,n){if(1&t&&at(0,"mat-pseudo-checkbox",1),2&t){const e=rt();Je("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function xQ(t,n){1&t&&at(0,"mat-pseudo-checkbox",3),2&t&&Je("disabled",rt().disabled)}function SQ(t,n){if(1&t&&(ye(0,"span",4),bn(1),ve()),2&t){const e=rt();Ne(),yr("(",e.group.label,")")}}const DQ=["mat-internal-form-field",""],EQ=["*"],MQ=new He("mat-sanity-checks",{providedIn:"root",factory:function TQ(){return!0}});let Ln=(()=>{class t{constructor(e,i,o){this._sanityChecks=i,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!iC()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}static{this.\u0275fac=function(i){return new(i||t)(Me(OR),Me(MQ,8),Me(qt))}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[pu,pu]})}}return t})();class hC{constructor(n,e,i,o,r){this._defaultMatcher=n,this.ngControl=e,this._parentFormGroup=i,this._parentForm=o,this._stateChanges=r,this.errorState=!1}updateErrorState(){const n=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,o=this.ngControl?this.ngControl.control:null,r=i?.isErrorState(o,e)??!1;r!==n&&(this.errorState=r,this._stateChanges.next())}}let Jh=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Dr=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(Dr||{});class PQ{constructor(n,e,i,o=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=o,this.state=Dr.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const NR=du({passive:!0,capture:!0});class NQ{constructor(){this._events=new Map,this._delegateEventHandler=n=>{const e=Hs(n);e&&this._events.get(n.type)?.forEach((i,o)=>{(o===e||o.contains(e))&&i.forEach(r=>r.handleEvent(n))})}}addHandler(n,e,i,o){const r=this._events.get(e);if(r){const a=r.get(i);a?a.add(o):r.set(i,new Set([o]))}else this._events.set(e,new Map([[i,new Set([o])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,NR)})}removeHandler(n,e,i){const o=this._events.get(n);if(!o)return;const r=o.get(e);r&&(r.delete(i),0===r.size&&o.delete(e),0===o.size&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,NR)))}}const FR={enterDuration:225,exitDuration:150},LR=du({passive:!0,capture:!0}),jR=["mousedown","touchstart"],BR=["mouseup","mouseleave","touchend","touchcancel"];class Ym{static{this._eventManager=new NQ}constructor(n,e,i,o){this._target=n,this._ngZone=e,this._platform=o,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=Ys(i))}fadeInRipple(n,e,i={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r={...FR,...i.animation};i.centered&&(n=o.left+o.width/2,e=o.top+o.height/2);const a=i.radius||function LQ(t,n,e){const i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+o*o)}(n,e,o),s=n-o.left,l=e-o.top,c=r.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=s-a+"px",u.style.top=l-a+"px",u.style.height=2*a+"px",u.style.width=2*a+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);const d=window.getComputedStyle(u),p=d.transitionDuration,g="none"===d.transitionProperty||"0s"===p||"0s, 0s"===p||0===o.width&&0===o.height,b=new PQ(this,u,i,g);u.style.transform="scale3d(1, 1, 1)",b.state=Dr.FADING_IN,i.persistent||(this._mostRecentTransientRipple=b);let T=null;return!g&&(c||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const D=()=>this._finishRippleTransition(b),H=()=>this._destroyRipple(b);u.addEventListener("transitionend",D),u.addEventListener("transitioncancel",H),T={onTransitionEnd:D,onTransitionCancel:H}}),this._activeRipples.set(b,T),(g||!c)&&this._finishRippleTransition(b),b}fadeOutRipple(n){if(n.state===Dr.FADING_OUT||n.state===Dr.HIDDEN)return;const e=n.element,i={...FR,...n.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=Dr.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const e=Ys(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,jR.forEach(i=>{Ym._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{BR.forEach(e=>{this._triggerElement.addEventListener(e,this,LR)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===Dr.FADING_IN?this._startFadeOutTransition(n):n.state===Dr.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){const e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=Dr.VISIBLE,!i&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){const e=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=Dr.HIDDEN,null!==e&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel)),n.element.remove()}_onMousedown(n){const e=cC(n),i=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(n.state===Dr.VISIBLE||n.config.terminateOnPointerUp&&n.state===Dr.FADING_IN)&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const n=this._triggerElement;n&&(jR.forEach(e=>Ym._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&BR.forEach(e=>n.removeEventListener(e,this,LR)))}}const HR=new He("mat-ripple-global-options");let Ll=(()=>{class t{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,o,r,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new Ym(this,i,e,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...o}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}static{this.\u0275fac=function(i){return new(i||t)(K(Zt),K(wt),K(Ai),K(HR,8),K(xo,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,o){2&i&&un("mat-ripple-unbounded",o.unbounded)},inputs:{color:[Le.None,"matRippleColor","color"],unbounded:[Le.None,"matRippleUnbounded","unbounded"],centered:[Le.None,"matRippleCentered","centered"],radius:[Le.None,"matRippleRadius","radius"],animation:[Le.None,"matRippleAnimation","animation"],disabled:[Le.None,"matRippleDisabled","disabled"],trigger:[Le.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}}return t})(),gu=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[Ln,Ln]})}}return t})(),YR=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}static{this.\u0275fac=function(i){return new(i||t)(K(xo,8))}}static{this.\u0275cmp=pn({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,o){2&i&&un("mat-pseudo-checkbox-indeterminate","indeterminate"===o.state)("mat-pseudo-checkbox-checked","checked"===o.state)("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal","minimal"===o.appearance)("mat-pseudo-checkbox-full","full"===o.appearance)("_mat-animation-noopable","NoopAnimations"===o._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[Zn],decls:0,vars:0,template:function(i,o){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}}return t})(),jQ=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[Ln]})}}return t})();const zR=new He("MAT_OPTION_PARENT_COMPONENT"),$R=new He("MatOptgroup");let BQ=0;class HQ{constructor(n,e=!1){this.source=n,this.isUserInput=e}}let fC=(()=>{class t{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=e}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(e,i,o,r){this._element=e,this._changeDetectorRef=i,this._parent=o,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+BQ++,this.onSelectionChange=new Ot,this._stateChanges=new vt}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,i){const o=this._getHostElement();"function"==typeof o.focus&&o.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!Qa(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new HQ(this,e))}static{this.\u0275fac=function(i){return new(i||t)(K(Zt),K(mi),K(zR,8),K($R,8))}}static{this.\u0275cmp=pn({type:t,selectors:[["mat-option"]],viewQuery:function(i,o){if(1&i&&Vn(_Q,7),2&i){let r;Ft(r=Lt())&&(o._text=r.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,o){1&i&&_t("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),2&i&&(Ts("id",o.id),Kt("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),un("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[Le.HasDecoratorInputTransform,"disabled","disabled",Nt]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[qi,Zn],ngContentSelectors:wQ,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(i,o){1&i&&(Oi(vQ),Mt(0,CQ,1,2,"mat-pseudo-checkbox",1),mn(1),ye(2,"span",2,0),mn(4,1),ve(),Mt(5,xQ,1,1,"mat-pseudo-checkbox",3)(6,SQ,2,1,"span",4),at(7,"div",5)),2&i&&(En(0,o.multiple?0:-1),Ne(5),En(5,o.multiple||!o.selected||o.hideSingleSelectionIndicator?-1:5),Ne(),En(6,o.group&&o.group._inert?6:-1),Ne(),Je("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[YR,Ll],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return t})(),VR=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[gu,Ln,jQ]})}}return t})();const ZR={capture:!0},GR=["focus","click","mouseenter","touchstart"],pC="mat-ripple-loader-uninitialized",gC="mat-ripple-loader-class-name",UR="mat-ripple-loader-centered",zm="mat-ripple-loader-disabled";let $Q=(()=>{class t{constructor(){this._document=Pe(qt,{optional:!0}),this._animationMode=Pe(xo,{optional:!0}),this._globalRippleOptions=Pe(HR,{optional:!0}),this._platform=Pe(Ai),this._ngZone=Pe(wt),this._hosts=new Map,this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;const o=e.target.closest(`[${pC}]`);o&&this._createRipple(o)},this._ngZone.runOutsideAngular(()=>{for(const e of GR)this._document?.addEventListener(e,this._onInteraction,ZR)})}ngOnDestroy(){const e=this._hosts.keys();for(const i of e)this.destroyRipple(i);for(const i of GR)this._document?.removeEventListener(i,this._onInteraction,ZR)}configureRipple(e,i){e.setAttribute(pC,""),(i.className||!e.hasAttribute(gC))&&e.setAttribute(gC,i.className||""),i.centered&&e.setAttribute(UR,""),i.disabled&&e.setAttribute(zm,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,i){const o=this._hosts.get(e);o?o.disabled=i:i?e.setAttribute(zm,""):e.removeAttribute(zm)}_createRipple(e){if(!this._document)return;const i=this._hosts.get(e);if(i)return i;e.querySelector(".mat-ripple")?.remove();const o=this._document.createElement("span");o.classList.add("mat-ripple",e.getAttribute(gC)),e.append(o);const r=new Ll(new Zt(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return r._isInitialized=!0,r.trigger=e,r.centered=e.hasAttribute(UR),r.disabled=e.hasAttribute(zm),this.attachRipple(e,r),r}attachRipple(e,i){e.removeAttribute(pC),this._hosts.set(e,i)}destroyRipple(e){const i=this._hosts.get(e);i&&(i.ngOnDestroy(),this._hosts.delete(e))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),WR=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=pn({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,o){2&i&&un("mdc-form-field--align-end","before"===o.labelPosition)},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[Zn],attrs:DQ,ngContentSelectors:EQ,decls:1,vars:0,template:function(i,o){1&i&&(Oi(),mn(0))},styles:[".mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-form-field{font-family:var(--mdc-form-field-label-text-font);line-height:var(--mdc-form-field-label-text-line-height);font-size:var(--mdc-form-field-label-text-size);font-weight:var(--mdc-form-field-label-text-weight);letter-spacing:var(--mdc-form-field-label-text-tracking);color:var(--mdc-form-field-label-text-color)}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0})}}return t})();const VQ=["*",[["mat-toolbar-row"]]],ZQ=["*","mat-toolbar-row"];let GQ=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=gt({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0})}}return t})(),XR=(()=>{class t{constructor(e,i,o){this._elementRef=e,this._platform=i,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static{this.\u0275fac=function(i){return new(i||t)(K(Zt),K(Ai),K(qt))}}static{this.\u0275cmp=pn({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,o,r){if(1&i&&ii(r,GQ,5),2&i){let a;Ft(a=Lt())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,o){2&i&&(eo(o.color?"mat-"+o.color:""),un("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",0===o._toolbarRows.length))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[Zn],ngContentSelectors:ZQ,decls:2,vars:0,template:function(i,o){1&i&&(Oi(VQ),mn(0),mn(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0})}}return t})(),UQ=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[Ln,Ln]})}}return t})();const $m=ke(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Kh(t){return new On(n=>{io(t()).subscribe(n)})}function mu(t,n){const e=Ae(t)?t:()=>t,i=o=>o.error(e());return new On(n?o=>n.schedule(i,0,o):i)}function mC(){return $n((t,n)=>{let e=null;t._refCount++;const i=Pn(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class JR extends On{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Qu(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new ge;const e=this.getSubject();n.add(this.source.subscribe(Pn(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=ge.EMPTY)}return n}refCount(){return mC()(this)}}function Vm(t){return $n((n,e)=>{let i=!1;n.subscribe(Pn(e,o=>{i=!0,e.next(o)},()=>{i||e.next(t),e.complete()}))})}function QR(t=XQ){return $n((n,e)=>{let i=!1;n.subscribe(Pn(e,o=>{i=!0,e.next(o)},()=>i?e.complete():e.error(t())))})}function XQ(){return new $m}function jl(t,n){const e=arguments.length>=2;return i=>i.pipe(t?ui((o,r)=>t(o,r,i)):gr,_i(1),e?Vm(n):QR(()=>new $m))}function es(t){return $n((n,e)=>{let r,i=null,o=!1;i=n.subscribe(Pn(e,void 0,void 0,a=>{r=io(t(a,es(t)(n))),i?(i.unsubscribe(),i=null,r.subscribe(e)):o=!0})),o&&(i.unsubscribe(),i=null,r.subscribe(e))})}function bC(t){return t<=0?()=>Sr:$n((n,e)=>{let i=[];n.subscribe(Pn(e,o=>{i.push(o),t{for(const o of i)e.next(o);e.complete()},void 0,()=>{i=null}))})}function KR(t){return Bt(()=>t)}const cn="primary",qh=Symbol("RouteTitle");class qQ{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function bu(t){return new qQ(t)}function eK(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[r]===o)}return t===n}function eP(t){return t.length>0?t[t.length-1]:null}function zs(t){return function WQ(t){return!!t&&(t instanceof On||Ae(t.lift)&&Ae(t.subscribe))}(t)?t:fh(t)?bi(Promise.resolve(t)):Et(t)}const nK={exact:function iP(t,n,e){if(!Bl(t.segments,n.segments)||!Zm(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!iP(t.children[i],n.children[i],e))return!1;return!0},subset:oP},tP={exact:function iK(t,n){return va(t,n)},subset:function oK(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>qR(t[e],n[e]))},ignored:()=>!0};function nP(t,n,e){return nK[e.paths](t.root,n.root,e.matrixParams)&&tP[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function oP(t,n,e){return rP(t,n,n.segments,e)}function rP(t,n,e,i){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!Bl(o,e)||n.hasChildren()||!Zm(o,e,i))}if(t.segments.length===e.length){if(!Bl(t.segments,e)||!Zm(t.segments,e,i))return!1;for(const o in n.children)if(!t.children[o]||!oP(t.children[o],n.children[o],i))return!1;return!0}{const o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!!(Bl(t.segments,o)&&Zm(t.segments,o,i)&&t.children[cn])&&rP(t.children[cn],n,r,i)}}function Zm(t,n,e){return n.every((i,o)=>tP[e](t[o].parameters,i.parameters))}class yu{constructor(n=new Hn([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=bu(this.queryParams),this._queryParamMap}toString(){return sK.serialize(this)}}class Hn{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Gm(this)}}class ef{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=bu(this.parameters),this._parameterMap}toString(){return lP(this)}}function Bl(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let _u=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>new _C,providedIn:"root"})}}return t})();class _C{parse(n){const e=new yK(n);return new yu(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${tf(n.root,!0)}`,i=function uK(t){const n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(o=>`${Um(e)}=${Um(o)}`).join("&"):`${Um(e)}=${Um(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function lK(t){return encodeURI(t)}(n.fragment)}`:""}`}}const sK=new _C;function Gm(t){return t.segments.map(n=>lP(n)).join("/")}function tf(t,n){if(!t.hasChildren())return Gm(t);if(n){const e=t.children[cn]?tf(t.children[cn],!1):"",i=[];return Object.entries(t.children).forEach(([o,r])=>{o!==cn&&i.push(`${o}:${tf(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function aK(t,n){let e=[];return Object.entries(t.children).forEach(([i,o])=>{i===cn&&(e=e.concat(n(o,i)))}),Object.entries(t.children).forEach(([i,o])=>{i!==cn&&(e=e.concat(n(o,i)))}),e}(t,(i,o)=>o===cn?[tf(t.children[cn],!1)]:[`${o}:${tf(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[cn]?`${Gm(t)}/${e[0]}`:`${Gm(t)}/(${e.join("//")})`}}function aP(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Um(t){return aP(t).replace(/%3B/gi,";")}function vC(t){return aP(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Wm(t){return decodeURIComponent(t)}function sP(t){return Wm(t.replace(/\+/g,"%20"))}function lP(t){return`${vC(t.path)}${function cK(t){return Object.entries(t).map(([n,e])=>`;${vC(n)}=${vC(e)}`).join("")}(t.parameters)}`}const dK=/^[^\/()?;#]+/;function wC(t){const n=t.match(dK);return n?n[0]:""}const hK=/^[^\/()?;=#]+/,pK=/^[^=?&#]+/,mK=/^[^&#]+/;class yK{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Hn([],{}):new Hn([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[cn]=new Hn(n,e)),i}parseSegment(){const n=wC(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(n),new ef(Wm(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=function fK(t){const n=t.match(hK);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=wC(this.remaining);o&&(i=o,this.capture(i))}n[Wm(e)]=Wm(i)}parseQueryParam(n){const e=function gK(t){const n=t.match(pK);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const a=function bK(t){const n=t.match(mK);return n?n[0]:""}(this.remaining);a&&(i=a,this.capture(i))}const o=sP(e),r=sP(i);if(n.hasOwnProperty(o)){let a=n[o];Array.isArray(a)||(a=[a],n[o]=a),a.push(r)}else n[o]=r}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=wC(this.remaining),o=this.remaining[i.length];if("/"!==o&&")"!==o&&";"!==o)throw new S(4010,!1);let r;i.indexOf(":")>-1?(r=i.slice(0,i.indexOf(":")),this.capture(r),this.capture(":")):n&&(r=cn);const a=this.parseChildren();e[r]=1===Object.keys(a).length?a[cn]:new Hn([],a),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new S(4011,!1)}}function cP(t){return t.segments.length>0?new Hn([],{[cn]:t}):t}function uP(t){const n={};for(const[i,o]of Object.entries(t.children)){const r=uP(o);if(i===cn&&0===r.segments.length&&r.hasChildren())for(const[a,s]of Object.entries(r.children))n[a]=s;else(r.segments.length>0||r.hasChildren())&&(n[i]=r)}return function _K(t){if(1===t.numberOfChildren&&t.children[cn]){const n=t.children[cn];return new Hn(t.segments.concat(n.segments),n.children)}return t}(new Hn(t.segments,n))}function vu(t){return t instanceof yu}function dP(t){let n;const o=cP(function e(r){const a={};for(const l of r.children){const c=e(l);a[l.outlet]=c}const s=new Hn(r.url,a);return r===t&&(n=s),s}(t.root));return n??o}function hP(t,n,e,i){let o=t;for(;o.parent;)o=o.parent;if(0===n.length)return CC(o,o,o,e,i);const r=function wK(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new pP(!0,0,t);let n=0,e=!1;const i=t.reduce((o,r,a)=>{if("object"==typeof r&&null!=r){if(r.outlets){const s={};return Object.entries(r.outlets).forEach(([l,c])=>{s[l]="string"==typeof c?c.split("/"):c}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return"string"!=typeof r?[...o,r]:0===a?(r.split("/").forEach((s,l)=>{0==l&&"."===s||(0==l&&""===s?e=!0:".."===s?n++:""!=s&&o.push(s))}),o):[...o,r]},[]);return new pP(e,n,i)}(n);if(r.toRoot())return CC(o,o,new Hn([],{}),e,i);const a=function CK(t,n,e){if(t.isAbsolute)return new Jm(n,!0,0);if(!e)return new Jm(n,!1,NaN);if(null===e.parent)return new Jm(e,!0,0);const i=Xm(t.commands[0])?0:1;return function xK(t,n,e){let i=t,o=n,r=e;for(;r>o;){if(r-=o,i=i.parent,!i)throw new S(4005,!1);o=i.segments.length}return new Jm(i,!1,o-r)}(e,e.segments.length-1+i,t.numberOfDoubleDots)}(r,o,t),s=a.processChildren?rf(a.segmentGroup,a.index,r.commands):gP(a.segmentGroup,a.index,r.commands);return CC(o,a.segmentGroup,s,e,i)}function Xm(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function nf(t){return"object"==typeof t&&null!=t&&t.outlets}function CC(t,n,e,i,o){let a,r={};i&&Object.entries(i).forEach(([l,c])=>{r[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`}),a=t===n?e:fP(t,n,e);const s=cP(uP(a));return new yu(s,r,o)}function fP(t,n,e){const i={};return Object.entries(t.children).forEach(([o,r])=>{i[o]=r===n?e:fP(r,n,e)}),new Hn(t.segments,i)}class pP{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&Xm(i[0]))throw new S(4003,!1);const o=i.find(nf);if(o&&o!==eP(i))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Jm{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function gP(t,n,e){if(t??=new Hn([],{}),0===t.segments.length&&t.hasChildren())return rf(t,n,e);const i=function DK(t,n,e){let i=0,o=n;const r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;const a=t.segments[o],s=e[i];if(nf(s))break;const l=`${s}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!bP(l,c,a))return r;i+=2}else{if(!bP(l,{},a))return r;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(t,n,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndexr!==cn)&&t.children[cn]&&1===t.numberOfChildren&&0===t.children[cn].segments.length){const r=rf(t.children[cn],n,e);return new Hn(t.segments,r.children)}return Object.entries(i).forEach(([r,a])=>{"string"==typeof a&&(a=[a]),null!==a&&(o[r]=gP(t.children[r],n,a))}),Object.entries(t.children).forEach(([r,a])=>{void 0===i[r]&&(o[r]=a)}),new Hn(t.segments,o)}}function xC(t,n,e){const i=t.segments.slice(0,n);let o=0;for(;o{"string"==typeof i&&(i=[i]),null!==i&&(n[e]=xC(new Hn([],{}),0,i))}),n}function mP(t){const n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function bP(t,n,e){return t==e.path&&va(n,e.parameters)}const af="imperative";var _n=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(_n||{});class wa{constructor(n,e){this.id=n,this.url=e}}class Qm extends wa{constructor(n,e,i="imperative",o=null){super(n,e),this.type=_n.NavigationStart,this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ts extends wa{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=_n.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var lr=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(lr||{}),Km=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Km||{});class wu extends wa{constructor(n,e,i,o){super(n,e),this.reason=i,this.code=o,this.type=_n.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Cu extends wa{constructor(n,e,i,o){super(n,e),this.reason=i,this.code=o,this.type=_n.NavigationSkipped}}class qm extends wa{constructor(n,e,i,o){super(n,e),this.error=i,this.target=o,this.type=_n.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class yP extends wa{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=_n.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class TK extends wa{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=_n.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class MK extends wa{constructor(n,e,i,o,r){super(n,e),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=r,this.type=_n.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class AK extends wa{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=_n.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class kK extends wa{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=_n.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class IK{constructor(n){this.route=n,this.type=_n.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class OK{constructor(n){this.route=n,this.type=_n.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class RK{constructor(n){this.snapshot=n,this.type=_n.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class PK{constructor(n){this.snapshot=n,this.type=_n.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class NK{constructor(n){this.snapshot=n,this.type=_n.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class FK{constructor(n){this.snapshot=n,this.type=_n.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _P{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=_n.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class SC{}class DC{constructor(n){this.url=n}}class LK{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new sf,this.attachRef=null}}let sf=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const o=this.getOrCreateContext(e);o.outlet=i,this.contexts.set(e,o)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new LK,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();class vP{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=EC(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=EC(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=TC(n,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return TC(n,this._root).map(e=>e.value)}}function EC(t,n){if(t===n.value)return n;for(const e of n.children){const i=EC(t,e);if(i)return i}return null}function TC(t,n){if(t===n.value)return[n];for(const e of n.children){const i=TC(t,e);if(i.length)return i.unshift(n),i}return[]}class Gr{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function xu(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class wP extends vP{constructor(n,e){super(n),this.snapshot=e,kC(this,n)}toString(){return this.snapshot.toString()}}function CP(t){const n=function jK(t){const r=new AC([],{},{},"",{},cn,t,null,{});return new xP("",new Gr(r,[]))}(t),e=new hi([new ef("",{})]),i=new hi({}),o=new hi({}),r=new hi({}),a=new hi(""),s=new Hl(e,i,r,a,o,cn,t,n.root);return s.snapshot=n.root,new wP(new Gr(s,[]),n)}class Hl{constructor(n,e,i,o,r,a,s,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=o,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(Bt(c=>c[qh]))??Et(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(Bt(n=>bu(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Bt(n=>bu(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function MC(t,n,e="emptyOnly"){let i;const{routeConfig:o}=t;return i=null===n||"always"!==e&&""!==o?.path&&(n.component||n.routeConfig?.loadComponent)?{params:{...t.params},data:{...t.data},resolve:{...t.data,...t._resolvedData??{}}}:{params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.data,...o?.data,...t._resolvedData}},o&&DP(o)&&(i.resolve[qh]=o.title),i}class AC{get title(){return this.data?.[qh]}constructor(n,e,i,o,r,a,s,l,c){this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=bu(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=bu(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class xP extends vP{constructor(n,e){super(e),this.url=n,kC(this,e)}toString(){return SP(this._root)}}function kC(t,n){n.value._routerState=t,n.children.forEach(e=>kC(t,e))}function SP(t){const n=t.children.length>0?` { ${t.children.map(SP).join(", ")} } `:"";return`${t.value}${n}`}function IC(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,va(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),va(n.params,e.params)||t.paramsSubject.next(e.params),function tK(t,n){if(t.length!==n.length)return!1;for(let e=0;eva(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||OC(t.parent,n.parent))}function DP(t){return"string"==typeof t.title||null===t.title}let RC=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=cn,this.activateEvents=new Ot,this.deactivateEvents=new Ot,this.attachEvents=new Ot,this.detachEvents=new Ot,this.parentContexts=Pe(sf),this.location=Pe(So),this.changeDetector=Pe(mi),this.environmentInjector=Pe(Lo),this.inputBinder=Pe(eb,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:o}=e.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=e;const o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new BK(e,s,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=gt({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Gi]})}}return t})();class BK{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Hl?this.route:n===sf?this.childContexts:this.parent.get(n,e)}}const eb=new He("");let EP=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:i}=e,o=jm([i.queryParams,i.params,i.data]).pipe(Ni(([r,a,s],l)=>(s={...r,...a,...s},0===l?Et(s):Promise.resolve(s)))).subscribe(r=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(e);const a=function d9(t){const n=dn(t);if(!n)return null;const e=new zd(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(i.component);if(a)for(const{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,r[s]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,o)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function lf(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const o=function YK(t,n,e){return n.children.map(i=>{for(const o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return lf(t,i,o);return lf(t,i)})}(t,n,e);return new Gr(i,o)}{if(t.shouldAttach(n.value)){const r=t.retrieve(n.value);if(null!==r){const a=r.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>lf(t,s)),a}}const i=function zK(t){return new Hl(new hi(t.url),new hi(t.params),new hi(t.queryParams),new hi(t.fragment),new hi(t.data),t.outlet,t.component,t)}(n.value),o=n.children.map(r=>lf(t,r));return new Gr(i,o)}}const TP="ngNavigationCancelingError";function MP(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=vu(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=AP(!1,lr.Redirect);return o.url=e,o.navigationBehaviorOptions=i,o}function AP(t,n){const e=new Error(`NavigationCancelingError: ${t||""}`);return e[TP]=!0,e.cancellationCode=n,e}function kP(t){return!!t&&t[TP]}let IP=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=pn({type:t,selectors:[["ng-component"]],standalone:!0,features:[Zn],decls:1,vars:0,template:function(i,o){1&i&&at(0,"router-outlet")},dependencies:[RC],encapsulation:2})}}return t})();function PC(t){const n=t.children&&t.children.map(PC),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==cn&&(e.component=IP),e}function Ca(t){return t.outlet||cn}function cf(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class JK{constructor(n,e,i,o,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=o,this.inputBindingEnabled=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),IC(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const o=xu(e);n.children.forEach(r=>{const a=r.value.outlet;this.deactivateRoutes(r,o[a],i),delete o[a]}),Object.values(o).forEach(r=>{this.deactivateRouteAndItsChildren(r,i)})}deactivateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(o===r)if(o.component){const a=i.getContext(o.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,i);else r&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=xu(n);for(const a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);if(i&&i.outlet){const a=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=xu(n);for(const a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){const o=xu(e);n.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],i),this.forwardEvent(new FK(r.value.snapshot))}),n.children.length&&this.forwardEvent(new PK(n.value.snapshot))}activateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(IC(o),o===r)if(o.component){const a=i.getOrCreateContext(o.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(o.component){const a=i.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),IC(s.route.value),this.activateChildRoutes(n,null,a.children)}else{const s=cf(o.snapshot);a.attachRef=null,a.route=o,a.injector=s,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(n,null,a.children)}}else this.activateChildRoutes(n,null,i)}}class OP{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class tb{constructor(n,e){this.component=n,this.route=e}}function QK(t,n,e){const i=t._root;return uf(i,n?n._root:null,e,[i.value])}function Su(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function i3(t){return null!==Gf(t)}(t)?n.get(t):t:i}function uf(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=xu(n);return t.children.forEach(a=>{(function qK(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,a=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){const l=function eq(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Bl(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Bl(t.url,n.url)||!va(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!OC(t,n)||!va(t.queryParams,n.queryParams);default:return!OC(t,n)}}(a,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new OP(i)):(r.data=a.data,r._resolvedData=a._resolvedData),uf(t,n,r.component?s?s.children:null:e,i,o),l&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new tb(s.outlet.component,a))}else a&&df(n,s,o),o.canActivateChecks.push(new OP(i)),uf(t,null,r.component?s?s.children:null:e,i,o)})(a,r[a.value.outlet],e,i.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>df(s,e.getContext(a),o)),o}function df(t,n,e){const i=xu(t),o=t.value;Object.entries(i).forEach(([r,a])=>{df(a,o.component?n?n.children.getContext(r):null:n,e)}),e.canDeactivateChecks.push(new tb(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function hf(t){return"function"==typeof t}function RP(t){return t instanceof $m||"EmptyError"===t?.name}const nb=Symbol("INITIAL_VALUE");function Du(){return Ni(t=>jm(t.map(n=>n.pipe(_i(1),sr(nb)))).pipe(Bt(n=>{for(const e of n)if(!0!==e){if(e===nb)return nb;if(!1===e||e instanceof yu)return e}return!0}),ui(n=>n!==nb),_i(1)))}function PP(t){return function ta(...t){return ac(t)}($i(n=>{if(vu(n))throw MP(0,n)}),Bt(n=>!0===n))}class NC{constructor(n){this.segmentGroup=n||null}}class FC extends Error{constructor(n){super(),this.urlTree=n}}function Eu(t){return mu(new NC(t))}class _q{constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],o=e.root;for(;;){if(i=i.concat(o.segments),0===o.numberOfChildren)return Et(i);if(o.numberOfChildren>1||!o.children[cn])return mu(new S(4e3,!1));o=o.children[cn]}}applyRedirectCommands(n,e,i){const o=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i);if(e.startsWith("/"))throw new FC(o);return o}applyRedirectCreateUrlTree(n,e,i,o){const r=this.createSegmentGroup(n,e.root,i,o);return new yu(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Object.entries(n).forEach(([o,r])=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);i[o]=e[s]}else i[o]=r}),i}createSegmentGroup(n,e,i,o){const r=this.createSegments(n,e.segments,i,o);let a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(n,l,i,o)}),new Hn(r,a)}createSegments(n,e,i,o){return e.map(r=>r.path.startsWith(":")?this.findPosParam(n,r,o):this.findOrReturn(r,i))}findPosParam(n,e,i){const o=i[e.path.substring(1)];if(!o)throw new S(4001,!1);return o}findOrReturn(n,e){let i=0;for(const o of e){if(o.path===n.path)return e.splice(i),o;i++}return n}}const LC={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function vq(t,n,e,i,o){const r=jC(t,n,e);return r.matched?(i=function VK(t,n){return t.providers&&!t._injector&&(t._injector=tg(t.providers,n,`Route: ${t.path}`)),t._injector??n}(n,i),function mq(t,n,e,i){const o=n.canMatch;return o&&0!==o.length?Et(o.map(a=>{const s=Su(a,t);return zs(function aq(t){return t&&hf(t.canMatch)}(s)?s.canMatch(n,e):ia(t,()=>s(n,e)))})).pipe(Du(),PP()):Et(!0)}(i,n,e).pipe(Bt(a=>!0===a?r:{...LC}))):Et(r)}function jC(t,n,e){if("**"===n.path)return function wq(t){return{matched:!0,parameters:t.length>0?eP(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}(e);if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...LC}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(n.matcher||eK)(e,t,n);if(!o)return{...LC};const r={};Object.entries(o.posParams??{}).forEach(([s,l])=>{r[s]=l.path});const a=o.consumed.length>0?{...r,...o.consumed[o.consumed.length-1].parameters}:r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function NP(t,n,e,i){return e.length>0&&function Sq(t,n,e){return e.some(i=>ib(t,n,i)&&Ca(i)!==cn)}(t,e,i)?{segmentGroup:new Hn(n,xq(i,new Hn(e,t.children))),slicedSegments:[]}:0===e.length&&function Dq(t,n,e){return e.some(i=>ib(t,n,i))}(t,e,i)?{segmentGroup:new Hn(t.segments,Cq(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new Hn(t.segments,t.children),slicedSegments:e}}function Cq(t,n,e,i){const o={};for(const r of e)if(ib(t,n,r)&&!i[Ca(r)]){const a=new Hn([],{});o[Ca(r)]=a}return{...i,...o}}function xq(t,n){const e={};e[cn]=n;for(const i of t)if(""===i.path&&Ca(i)!==cn){const o=new Hn([],{});e[Ca(i)]=o}return e}function ib(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}class Mq{}class Iq{constructor(n,e,i,o,r,a,s){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new _q(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new S(4002,`'${n.segmentGroup}'`)}recognize(){const n=NP(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(Bt(e=>{const i=new AC([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},cn,this.rootComponentType,null,{}),o=new Gr(i,e),r=new xP("",o),a=function vK(t,n,e=null,i=null){return hP(dP(t),n,e,i)}(i,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(r._root,null),{state:r,tree:a}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n,cn).pipe(es(i=>{if(i instanceof FC)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof NC?this.noMatchError(i):i}))}inheritParamsAndData(n,e){const i=n.value,o=MC(i,e,this.paramsInheritanceStrategy);i.params=Object.freeze(o.params),i.data=Object.freeze(o.data),n.children.forEach(r=>this.inheritParamsAndData(r,i))}processSegmentGroup(n,e,i,o){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,o,!0).pipe(Bt(r=>r instanceof Gr?[r]:[]))}processChildren(n,e,i){const o=[];for(const r of Object.keys(i.children))"primary"===r?o.unshift(r):o.push(r);return bi(o).pipe(au(r=>{const a=i.children[r],s=function WK(t,n){const e=t.filter(i=>Ca(i)===n);return e.push(...t.filter(i=>Ca(i)!==n)),e}(e,r);return this.processSegmentGroup(n,s,a,r)}),function QQ(t,n){return $n(function JQ(t,n,e,i,o){return(r,a)=>{let s=e,l=n,c=0;r.subscribe(Pn(a,u=>{const d=c++;l=s?t(l,u,d):(s=!0,u),i&&a.next(l)},o&&(()=>{s&&a.next(l),a.complete()})))}}(t,n,arguments.length>=2,!0))}((r,a)=>(r.push(...a),r)),Vm(null),function KQ(t,n){const e=arguments.length>=2;return i=>i.pipe(t?ui((o,r)=>t(o,r,i)):gr,bC(1),e?Vm(n):QR(()=>new $m))}(),Wi(r=>{if(null===r)return Eu(i);const a=FP(r);return function Oq(t){t.sort((n,e)=>n.value.outlet===cn?-1:e.value.outlet===cn?1:n.value.outlet.localeCompare(e.value.outlet))}(a),Et(a)}))}processSegment(n,e,i,o,r,a){return bi(e).pipe(au(s=>this.processSegmentAgainstRoute(s._injector??n,e,s,i,o,r,a).pipe(es(l=>{if(l instanceof NC)return Et(null);throw l}))),jl(s=>!!s),es(s=>{if(RP(s))return function Tq(t,n,e){return 0===n.length&&!t.children[e]}(i,o,r)?Et(new Mq):Eu(i);throw s}))}processSegmentAgainstRoute(n,e,i,o,r,a,s){return function Eq(t,n,e,i){return!!(Ca(t)===i||i!==cn&&ib(n,e,t))&&jC(n,t,e).matched}(i,o,r,a)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,o,i,r,a):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(n,o,e,i,r,a):Eu(o):Eu(o)}expandSegmentAgainstRouteUsingRedirect(n,e,i,o,r,a){const{matched:s,consumedSegments:l,positionalParamSegments:c,remainingSegments:u}=jC(e,o,r);if(!s)return Eu(e);o.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const d=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,c);return this.applyRedirects.lineralizeSegments(o,d).pipe(Wi(h=>this.processSegment(n,i,e,h.concat(u),a,!1)))}matchSegmentAgainstRoute(n,e,i,o,r){const a=vq(e,i,o,n);return"**"===i.path&&(e.children={}),a.pipe(Ni(s=>s.matched?this.getChildConfig(n=i._injector??n,i,o).pipe(Ni(({routes:l})=>{const c=i._loadedInjector??n,{consumedSegments:u,remainingSegments:d,parameters:h}=s,p=new AC(u,h,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function Pq(t){return t.data||{}}(i),Ca(i),i.component??i._loadedComponent??null,i,function Nq(t){return t.resolve||{}}(i)),{segmentGroup:g,slicedSegments:b}=NP(e,u,d,l);if(0===b.length&&g.hasChildren())return this.processChildren(c,l,g).pipe(Bt(D=>null===D?null:new Gr(p,D)));if(0===l.length&&0===b.length)return Et(new Gr(p,[]));const T=Ca(i)===r;return this.processSegment(c,l,g,b,T?cn:r,!0).pipe(Bt(D=>new Gr(p,D instanceof Gr?[D]:[])))})):Eu(e)))}getChildConfig(n,e,i){return e.children?Et({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?Et({routes:e._loadedRoutes,injector:e._loadedInjector}):function gq(t,n,e,i){const o=n.canLoad;return void 0===o||0===o.length?Et(!0):Et(o.map(a=>{const s=Su(a,t);return zs(function nq(t){return t&&hf(t.canLoad)}(s)?s.canLoad(n,e):ia(t,()=>s(n,e)))})).pipe(Du(),PP())}(n,e,i).pipe(Wi(o=>o?this.configLoader.loadChildren(n,e).pipe($i(r=>{e._loadedRoutes=r.routes,e._loadedInjector=r.injector})):function yq(t){return mu(AP(!1,lr.GuardRejected))}())):Et({routes:[],injector:n})}}function Rq(t){const n=t.value.routeConfig;return n&&""===n.path}function FP(t){const n=[],e=new Set;for(const i of t){if(!Rq(i)){n.push(i);continue}const o=n.find(r=>i.value.routeConfig===r.value.routeConfig);void 0!==o?(o.children.push(...i.children),e.add(o)):n.push(i)}for(const i of e){const o=FP(i.children);n.push(new Gr(i.value,o))}return n.filter(i=>!e.has(i))}function LP(t){const n=t.children.map(e=>LP(e)).flat();return[t,...n]}function BC(t){return Ni(n=>{const e=t(n);return e?bi(e).pipe(Bt(()=>n)):Et(n)})}let jP=(()=>{class t{buildTitle(e){let i,o=e.root;for(;void 0!==o;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(r=>r.outlet===cn);return i}getResolvedTitleForRoute(e){return e.data[qh]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Pe(Yq),providedIn:"root"})}}return t})(),Yq=(()=>{class t extends jP{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}static{this.\u0275fac=function(i){return new(i||t)(Me(OI))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const Tu=new He("",{providedIn:"root",factory:()=>({})}),Mu=new He("");let HC=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Pe(tk)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return Et(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=zs(e.loadComponent()).pipe(Bt(BP),$i(r=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=r}),Dl(()=>{this.componentLoaders.delete(e)})),o=new JR(i,()=>new vt).pipe(mC());return this.componentLoaders.set(e,o),o}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Et({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const r=function zq(t,n,e,i){return zs(t.loadChildren()).pipe(Bt(BP),Wi(o=>o instanceof DT||Array.isArray(o)?Et(o):bi(n.compileModuleAsync(o))),Bt(o=>{i&&i(t);let r,a,s=!1;return Array.isArray(o)?(a=o,!0):(r=o.create(e).injector,a=r.get(Mu,[],{optional:!0,self:!0}).flat()),{routes:a.map(PC),injector:r}}))}(i,this.compiler,e,this.onLoadEndListener).pipe(Dl(()=>{this.childrenLoaders.delete(i)})),a=new JR(r,()=>new vt).pipe(mC());return this.childrenLoaders.set(i,a),a}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function BP(t){return function $q(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let YC=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Pe(Vq),providedIn:"root"})}}return t})(),Vq=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const HP=new He(""),YP=new He("");function Zq(t,n,e){const i=t.get(YP),o=t.get(qt);return t.get(wt).runOutsideAngular(()=>{if(!o.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,Promise.resolve();let r;const a=new Promise(c=>{r=c}),s=o.startViewTransition(()=>(r(),function Gq(t){return new Promise(n=>{zE(n,{injector:t})})}(t))),{onViewTransitionCreated:l}=i;return l&&ia(t,()=>l({transition:s,from:n,to:e})),a})}let ob=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new vt,this.transitionAbortSubject=new vt,this.configLoader=Pe(HC),this.environmentInjector=Pe(Lo),this.urlSerializer=Pe(_u),this.rootContexts=Pe(sf),this.location=Pe(xl),this.inputBindingEnabled=null!==Pe(eb,{optional:!0}),this.titleStrategy=Pe(jP),this.options=Pe(Tu,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=Pe(YC),this.createViewTransition=Pe(HP,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>Et(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new OK(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new IK(o))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e,i,o){return this.transitions=new hi({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:af,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ui(r=>0!==r.id),Bt(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),Ni(r=>{let a=!1,s=!1;return Et(r).pipe(Ni(l=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",lr.SupersededByNewNavigation),Sr;this.currentTransition=r,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!c&&"reload"!==(l.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const d="";return this.events.next(new Cu(l.id,this.urlSerializer.serialize(l.rawUrl),d,Km.IgnoredSameUrlNavigation)),l.resolve(null),Sr}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return Et(l).pipe(Ni(d=>{const h=this.transitions?.getValue();return this.events.next(new Qm(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?Sr:Promise.resolve(d)}),function Fq(t,n,e,i,o,r){return Wi(a=>function Aq(t,n,e,i,o,r,a="emptyOnly"){return new Iq(t,n,e,i,o,a,r).recognize()}(t,n,e,i,a.extractedUrl,o,r).pipe(Bt(({state:s,tree:l})=>({...a,targetSnapshot:s,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),$i(d=>{r.targetSnapshot=d.targetSnapshot,r.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects};const h=new yP(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:d,extractedUrl:h,source:p,restoredState:g,extras:b}=l,T=new Qm(d,this.urlSerializer.serialize(h),p,g);this.events.next(T);const D=CP(this.rootComponentType).snapshot;return this.currentTransition=r={...l,targetSnapshot:D,urlAfterRedirects:h,extras:{...b,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=h,Et(r)}{const d="";return this.events.next(new Cu(l.id,this.urlSerializer.serialize(l.extractedUrl),d,Km.IgnoredByUrlHandlingStrategy)),l.resolve(null),Sr}}),$i(l=>{const c=new TK(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),Bt(l=>(this.currentTransition=r={...l,guards:QK(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},r)),function sq(t,n){return Wi(e=>{const{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:a}}=e;return 0===a.length&&0===r.length?Et({...e,guardsResult:!0}):function lq(t,n,e,i){return bi(t).pipe(Wi(o=>function pq(t,n,e,i,o){const r=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return r&&0!==r.length?Et(r.map(s=>{const l=cf(n)??o,c=Su(s,l);return zs(function rq(t){return t&&hf(t.canDeactivate)}(c)?c.canDeactivate(t,n,e,i):ia(l,()=>c(t,n,e,i))).pipe(jl())})).pipe(Du()):Et(!0)}(o.component,o.route,e,n,i)),jl(o=>!0!==o,!0))}(a,i,o,t).pipe(Wi(s=>s&&function tq(t){return"boolean"==typeof t}(s)?function cq(t,n,e,i){return bi(n).pipe(au(o=>Xh(function dq(t,n){return null!==t&&n&&n(new RK(t)),Et(!0)}(o.route.parent,i),function uq(t,n){return null!==t&&n&&n(new NK(t)),Et(!0)}(o.route,i),function fq(t,n,e){const i=n[n.length-1],r=n.slice(0,n.length-1).reverse().map(a=>function KK(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(a)).filter(a=>null!==a).map(a=>Kh(()=>Et(a.guards.map(l=>{const c=cf(a.node)??e,u=Su(l,c);return zs(function oq(t){return t&&hf(t.canActivateChild)}(u)?u.canActivateChild(i,t):ia(c,()=>u(i,t))).pipe(jl())})).pipe(Du())));return Et(r).pipe(Du())}(t,o.path,e),function hq(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return Et(!0);const o=i.map(r=>Kh(()=>{const a=cf(n)??e,s=Su(r,a);return zs(function iq(t){return t&&hf(t.canActivate)}(s)?s.canActivate(n,t):ia(a,()=>s(n,t))).pipe(jl())}));return Et(o).pipe(Du())}(t,o.route,e))),jl(o=>!0!==o,!0))}(i,r,t,n):Et(s)),Bt(s=>({...e,guardsResult:s})))})}(this.environmentInjector,l=>this.events.next(l)),$i(l=>{if(r.guardsResult=l.guardsResult,vu(l.guardsResult))throw MP(0,l.guardsResult);const c=new MK(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),ui(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",lr.GuardRejected),!1)),BC(l=>{if(l.guards.canActivateChecks.length)return Et(l).pipe($i(c=>{const u=new AK(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),Ni(c=>{let u=!1;return Et(c).pipe(function Lq(t,n){return Wi(e=>{const{targetSnapshot:i,guards:{canActivateChecks:o}}=e;if(!o.length)return Et(e);const r=new Set(o.map(l=>l.route)),a=new Set;for(const l of r)if(!a.has(l))for(const c of LP(l))a.add(c);let s=0;return bi(a).pipe(au(l=>r.has(l)?function jq(t,n,e,i){const o=t.routeConfig,r=t._resolve;return void 0!==o?.title&&!DP(o)&&(r[qh]=o.title),function Bq(t,n,e,i){const o=yC(t);if(0===o.length)return Et({});const r={};return bi(o).pipe(Wi(a=>function Hq(t,n,e,i){const o=cf(n)??i,r=Su(t,o);return zs(r.resolve?r.resolve(n,e):ia(o,()=>r(n,e)))}(t[a],n,e,i).pipe(jl(),$i(s=>{r[a]=s}))),bC(1),KR(r),es(a=>RP(a)?Sr:mu(a)))}(r,t,n,i).pipe(Bt(a=>(t._resolvedData=a,t.data=MC(t,t.parent,e).resolve,null)))}(l,i,t,n):(l.data=MC(l,l.parent,t).resolve,Et(void 0))),$i(()=>s++),bC(1),Wi(l=>s===a.size?Et(e):Sr))})}(this.paramsInheritanceStrategy,this.environmentInjector),$i({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(c,"",lr.NoDataFromResolver)}}))}),$i(c=>{const u=new kK(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}))}),BC(l=>{const c=u=>{const d=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(u.routeConfig).pipe($i(h=>{u.component=h}),Bt(()=>{})));for(const h of u.children)d.push(...c(h));return d};return jm(c(l.targetSnapshot.root)).pipe(Vm(null),_i(1))}),BC(()=>this.afterPreactivation()),Ni(()=>{const{currentSnapshot:l,targetSnapshot:c}=r,u=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return u?bi(u).pipe(Bt(()=>r)):Et(r)}),Bt(l=>{const c=function HK(t,n,e){const i=lf(t,n._root,e?e._root:void 0);return new wP(i,n)}(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=r={...l,targetRouterState:c},this.currentNavigation.targetRouterState=c,r}),$i(()=>{this.events.next(new SC)}),((t,n,e,i)=>Bt(o=>(new JK(n,o.targetRouterState,o.currentRouterState,e,i).activate(t),o)))(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),_i(1),$i({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ts(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),yn(this.transitionAbortSubject.pipe($i(l=>{throw l}))),Dl(()=>{a||s||this.cancelNavigationTransition(r,"",lr.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation=null,this.currentTransition=null)}),es(l=>{if(s=!0,kP(l))this.events.next(new wu(r.id,this.urlSerializer.serialize(r.extractedUrl),l.message,l.cancellationCode)),function $K(t){return kP(t)&&vu(t.url)}(l)?this.events.next(new DC(l.url)):r.resolve(!1);else{this.events.next(new qm(r.id,this.urlSerializer.serialize(r.extractedUrl),l,r.targetSnapshot??void 0));try{r.resolve(e.errorHandler(l))}catch(c){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(c)}}return Sr}))}))}cancelNavigationTransition(e,i,o){const r=new wu(e.id,this.urlSerializer.serialize(e.extractedUrl),i,o);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Uq(t){return t!==af}let Wq=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Pe(Jq),providedIn:"root"})}}return t})();class Xq{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let Jq=(()=>{class t extends Xq{static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=yi(t)))(o||t)}})()}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),zP=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Pe(Qq),providedIn:"root"})}}return t})(),Qq=(()=>{class t extends zP{constructor(){super(...arguments),this.location=Pe(xl),this.urlSerializer=Pe(_u),this.options=Pe(Tu,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=Pe(YC),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new yu,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=CP(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{"popstate"===i.type&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof Qm)this.stateMemento=this.createStateMemento();else if(e instanceof Cu)this.rawUrlTree=i.initialUrl;else if(e instanceof yP){if("eager"===this.urlUpdateStrategy&&!i.extras.skipLocationChange){const o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else e instanceof SC?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,"deferred"===this.urlUpdateStrategy&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):e instanceof wu&&(e.code===lr.GuardRejected||e.code===lr.NoDataFromResolver)?this.restoreHistory(i):e instanceof qm?this.restoreHistory(i,!0):e instanceof ts&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){const o=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){const a={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(o,"",a)}else{const r={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId+1)};this.location.go(o,"",r)}}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-this.browserPageId;0!==r?this.location.historyGo(r):this.currentUrlTree===e.finalUrl&&0===r&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=yi(t)))(o||t)}})()}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ff=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(ff||{});function $P(t,n){t.events.pipe(ui(e=>e instanceof ts||e instanceof wu||e instanceof qm||e instanceof Cu),Bt(e=>e instanceof ts||e instanceof Cu?ff.COMPLETE:e instanceof wu&&(e.code===lr.Redirect||e.code===lr.SupersededByNewNavigation)?ff.REDIRECTING:ff.FAILED),ui(e=>e!==ff.REDIRECTING),_i(1)).subscribe(()=>{n()})}function Kq(t){throw t}const qq={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},eee={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ko=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=Pe(ZA),this.stateManager=Pe(zP),this.options=Pe(Tu,{optional:!0})||{},this.pendingTasks=Pe(Cs),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=Pe(ob),this.urlSerializer=Pe(_u),this.location=Pe(xl),this.urlHandlingStrategy=Pe(YC),this._events=new vt,this.errorHandler=this.options.errorHandler||Kq,this.navigated=!1,this.routeReuseStrategy=Pe(Wq),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=Pe(Mu,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!Pe(eb,{optional:!0}),this.eventsSubscription=new ge,this.isNgZoneEnabled=Pe(wt)instanceof wt&&wt.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(i=>{try{const o=this.navigationTransitions.currentTransition,r=this.navigationTransitions.currentNavigation;if(null!==o&&null!==r)if(this.stateManager.handleRouterEvent(i,r),i instanceof wu&&i.code!==lr.Redirect&&i.code!==lr.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof ts)this.navigated=!0;else if(i instanceof DC){const a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),s={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Uq(o.source)};this.scheduleNavigation(a,af,null,s,{resolve:o.resolve,reject:o.reject,promise:o.promise})}(function nee(t){return!(t instanceof SC||t instanceof DC)})(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),af,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,o){const r={replaceUrl:!0},a=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(r.state=l)}const s=this.parseUrl(e);this.scheduleNavigation(s,i,a,r)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(PC),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){const{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:s,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:a;let d,u=null;switch(s){case"merge":u={...this.currentUrlTree.queryParams,...r};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}null!==u&&(u=this.removeEmptyProps(u));try{d=dP(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),d=this.currentUrlTree.root}return hP(d,e,u,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){const o=vu(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,af,null,i)}navigate(e,i={skipLocationChange:!1}){return function tee(t){for(let n=0;n(null!=r&&(i[o]=r),i),{})}scheduleNavigation(e,i,o,r,a){if(this.disposed)return Promise.resolve(!1);let s,l,c;a?(s=a.resolve,l=a.reject,c=a.promise):c=new Promise((d,h)=>{s=d,l=h});const u=this.pendingTasks.add();return $P(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:s,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),pf=(()=>{class t{constructor(e,i,o,r,a,s){this.router=e,this.route=i,this.tabIndexAttribute=o,this.renderer=r,this.el=a,this.locationStrategy=s,this.href=null,this.commands=null,this.onChanges=new vt,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof ts&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,i,o,r,a){const s=this.urlTree;return!!(null===s||this.isAnchorElement&&(0!==e||i||o||r||a||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(s,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const e=this.urlTree;this.href=null!==e&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;const i=null===this.href?null:function jD(t,n,e){return function h5(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?LD:Sd}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){const o=this.renderer,r=this.el.nativeElement;null!==i?o.setAttribute(r,e,i):o.removeAttribute(r,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(i){return new(i||t)(K(ko),K(Hl),ua("tabindex"),K(Ha),K(Zt),K(Cl))}}static{this.\u0275dir=gt({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){1&i&&_t("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),2&i&&Kt("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[Le.HasDecoratorInputTransform,"preserveFragment","preserveFragment",Nt],skipLocationChange:[Le.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",Nt],replaceUrl:[Le.HasDecoratorInputTransform,"replaceUrl","replaceUrl",Nt],routerLink:"routerLink"},standalone:!0,features:[qi,Gi]})}}return t})();class VP{}let ree=(()=>{class t{constructor(e,i,o,r,a){this.router=e,this.injector=o,this.preloadingStrategy=r,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(ui(e=>e instanceof ts),au(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const o=[];for(const r of i){r.providers&&!r._injector&&(r._injector=tg(r.providers,e,`Route: ${r.path}`));const a=r._injector??e,s=r._loadedInjector??a;(r.loadChildren&&!r._loadedRoutes&&void 0===r.canLoad||r.loadComponent&&!r._loadedComponent)&&o.push(this.preloadConfig(a,r)),(r.children||r._loadedRoutes)&&o.push(this.processRoutes(s,r.children??r._loadedRoutes))}return bi(o).pipe(hu())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let o;o=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):Et(null);const r=o.pipe(Wi(a=>null===a?Et(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));return i.loadComponent&&!i._loadedComponent?bi([r,this.loader.loadComponent(i)]).pipe(hu()):r})}static{this.\u0275fac=function(i){return new(i||t)(Me(ko),Me(tk),Me(Lo),Me(VP),Me(HC))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const zC=new He("");let ZP=(()=>{class t{constructor(e,i,o,r,a={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=o,this.zone=r,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Qm?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof ts?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Cu&&e.code===Km.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof _P&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new _P(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(i){z_()}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function xa(t,n){return{\u0275kind:t,\u0275providers:n}}function UP(){const t=Pe(gi);return n=>{const e=t.get(Yr);if(n!==e.components[0])return;const i=t.get(ko),o=t.get(WP);1===t.get($C)&&i.initialNavigation(),t.get(XP,null,fn.Optional)?.setUpPreloading(),t.get(zC,null,fn.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const WP=new He("",{factory:()=>new vt}),$C=new He("",{providedIn:"root",factory:()=>1}),XP=new He("");function cee(t){return xa(0,[{provide:XP,useExisting:ree},{provide:VP,useExisting:t}])}function dee(t){return xa(9,[{provide:HP,useValue:Zq},{provide:YP,useValue:{skipNextTransition:!!t?.skipInitialTransition,...t}}])}const JP=new He("ROUTER_FORROOT_GUARD"),hee=[xl,{provide:_u,useClass:_C},ko,sf,{provide:Hl,useFactory:function GP(t){return t.routerState.root},deps:[ko]},HC,[]];let QP=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[hee,[],{provide:Mu,multi:!0,useValue:e},{provide:JP,useFactory:mee,deps:[[ko,new ps,new lc]]},{provide:Tu,useValue:i||{}},i?.useHash?{provide:Cl,useClass:m9}:{provide:Cl,useClass:Vk},{provide:zC,useFactory:()=>{const t=Pe(PV),n=Pe(wt),e=Pe(Tu),i=Pe(ob),o=Pe(_u);return e.scrollOffset&&t.setOffset(e.scrollOffset),new ZP(o,i,t,n,e)}},i?.preloadingStrategy?cee(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?bee(i):[],i?.bindToComponentInputs?xa(8,[EP,{provide:eb,useExisting:EP}]).\u0275providers:[],i?.enableViewTransitions?dee().\u0275providers:[],[{provide:KP,useFactory:UP},{provide:hw,multi:!0,useExisting:KP}]]}}static forChild(e){return{ngModule:t,providers:[{provide:Mu,multi:!0,useValue:e}]}}static{this.\u0275fac=function(i){return new(i||t)(Me(JP,8))}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({})}}return t})();function mee(t){return"guarded"}function bee(t){return["disabled"===t.initialNavigation?xa(3,[{provide:uw,multi:!0,useFactory:()=>{const n=Pe(ko);return()=>{n.setUpLocationChangeListener()}}},{provide:$C,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?xa(2,[{provide:$C,useValue:0},{provide:uw,multi:!0,deps:[gi],useFactory:n=>{const e=n.get(p9,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const o=n.get(ko),r=n.get(WP);$P(o,()=>{i(!0)}),n.get(ob).afterPreactivation=()=>(i(!0),r.closed?Et(void 0):r),o.initialNavigation()}))}}]).\u0275providers:[]]}const KP=new He("");var _ee=function(n){return function vee(t){return!!t&&"object"==typeof t}(n)&&!function wee(t){var n=Object.prototype.toString.call(t);return"[object RegExp]"===n||"[object Date]"===n||function See(t){return t.$$typeof===xee}(t)}(n)},xee="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function gf(t,n){return!1!==n.clone&&n.isMergeableObject(t)?Au(function Dee(t){return Array.isArray(t)?[]:{}}(t),t,n):t}function Eee(t,n,e){return t.concat(n).map(function(i){return gf(i,e)})}function qP(t){return Object.keys(t).concat(function Mee(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(n){return Object.propertyIsEnumerable.call(t,n)}):[]}(t))}function eN(t,n){try{return n in t}catch{return!1}}function Au(t,n,e){(e=e||{}).arrayMerge=e.arrayMerge||Eee,e.isMergeableObject=e.isMergeableObject||_ee,e.cloneUnlessOtherwiseSpecified=gf;var i=Array.isArray(n);return i===Array.isArray(t)?i?e.arrayMerge(t,n,e):function kee(t,n,e){var i={};return e.isMergeableObject(t)&&qP(t).forEach(function(o){i[o]=gf(t[o],e)}),qP(n).forEach(function(o){(function Aee(t,n){return eN(t,n)&&!(Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))})(t,o)||(i[o]=eN(t,o)&&e.isMergeableObject(n[o])?function Tee(t,n){if(!n.customMerge)return Au;var e=n.customMerge(t);return"function"==typeof e?e:Au}(o,e)(t[o],n[o],e):gf(n[o],e))}),i}(t,n,e):gf(n,e)}Au.all=function(n,e){if(!Array.isArray(n))throw new Error("first argument should be an array");return n.reduce(function(i,o){return Au(i,o,e)},{})};var VC=Au;function ZC(t){return t instanceof HTMLElement}function Yl(t){return"function"==typeof t}function mf(t){return"string"==typeof t}function go(t){return void 0===t}class GC{on(n,e,i,o=!1){return go(this.bindings)&&(this.bindings={}),go(this.bindings[n])&&(this.bindings[n]=[]),this.bindings[n].push({handler:e,ctx:i,once:o}),this}once(n,e,i){return this.on(n,e,i,!0)}off(n,e){return go(this.bindings)||go(this.bindings[n])||(go(e)?delete this.bindings[n]:this.bindings[n].forEach((i,o)=>{i.handler===e&&this.bindings[n].splice(o,1)})),this}trigger(n,...e){return!go(this.bindings)&&this.bindings[n]&&this.bindings[n].forEach((i,o)=>{const{ctx:r,handler:a,once:s}=i;a.apply(r||this,e),s&&this.bindings[n].splice(o,1)}),this}}function tN(t){const n=Object.getOwnPropertyNames(t.constructor.prototype);for(let e=0;e{const e=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==n?e:3&e|8).toString(16)})}function mo(){return mo=Object.assign?Object.assign.bind():function(t){for(var n=1;n=0)&&(e[o]=t[o]);return e}const ku=Math.min,zl=Math.max,rb=Math.round,ab=Math.floor,$s=t=>({x:t,y:t}),Fee={left:"right",right:"left",bottom:"top",top:"bottom"},Lee={start:"end",end:"start"};function WC(t,n,e){return zl(t,ku(n,e))}function Iu(t,n){return"function"==typeof t?t(n):t}function $l(t){return t.split("-")[0]}function sb(t){return t.split("-")[1]}function XC(t){return"x"===t?"y":"x"}function JC(t){return"y"===t?"height":"width"}function lb(t){return["top","bottom"].includes($l(t))?"y":"x"}function QC(t){return XC(lb(t))}function KC(t){return t.replace(/start|end/g,n=>Lee[n])}function cb(t){return t.replace(/left|right|bottom|top/g,n=>Fee[n])}function rN(t){return"number"!=typeof t?function zee(t){return mo({top:0,right:0,bottom:0,left:0},t)}(t):{top:t,right:t,bottom:t,left:t}}function ub(t){return mo({},t,{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}const $ee=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],Vee=["mainAxis","crossAxis","limiter"];function aN(t,n,e){let{reference:i,floating:o}=t;const r=lb(n),a=QC(n),s=JC(a),l=$l(n),c="y"===r,u=i.x+i.width/2-o.width/2,d=i.y+i.height/2-o.height/2,h=i[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:i.y-o.height};break;case"bottom":p={x:u,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:d};break;case"left":p={x:i.x-o.width,y:d};break;default:p={x:i.x,y:i.y}}switch(sb(n)){case"start":p[a]-=h*(e&&c?-1:1);break;case"end":p[a]+=h*(e&&c?-1:1)}return p}const Zee=function(){var t=(0,y.Z)(function*(n,e,i){const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:s}=i,l=a.filter(Boolean),c=yield null==s.isRTL?void 0:s.isRTL(e);let u=yield s.getElementRects({reference:n,floating:e,strategy:r}),{x:d,y:h}=aN(u,o,c),p=o,g={},b=0;for(let T=0;Tpe&&(g=pe)}if(u){var H,oe;const le="y"===p?"width":"height",G=["top","left"].includes($l(r)),pe=a.reference[h]-a.floating[le]+(G&&(null==(H=s.offset)?void 0:H[h])||0)+(G?0:D.crossAxis),_e=a.reference[h]+a.reference[le]+(G?0:(null==(oe=s.offset)?void 0:oe[h])||0)-(G?D.crossAxis:0);b_e&&(b=_e)}return{[p]:g,[h]:b}}}};function Vs(t){return lN(t)?(t.nodeName||"").toLowerCase():"#document"}function cr(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function ns(t){var n;return null==(n=(lN(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function lN(t){return t instanceof Node||t instanceof cr(t).Node}function is(t){return t instanceof Element||t instanceof cr(t).Element}function Sa(t){return t instanceof HTMLElement||t instanceof cr(t).HTMLElement}function cN(t){return!(typeof ShadowRoot>"u")&&(t instanceof ShadowRoot||t instanceof cr(t).ShadowRoot)}function bf(t){const{overflow:n,overflowX:e,overflowY:i,display:o}=Er(t);return/auto|scroll|overlay|hidden|clip/.test(n+i+e)&&!["inline","contents"].includes(o)}function Jee(t){return["table","td","th"].includes(Vs(t))}function e1(t){const n=t1(),e=Er(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!n&&!!e.backdropFilter&&"none"!==e.backdropFilter||!n&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some(i=>(e.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(e.contain||"").includes(i))}function t1(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function db(t){return["html","body","#document"].includes(Vs(t))}function Er(t){return cr(t).getComputedStyle(t)}function hb(t){return is(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ou(t){if("html"===Vs(t))return t;const n=t.assignedSlot||t.parentNode||cN(t)&&t.host||ns(t);return cN(n)?n.host:n}function uN(t){const n=Ou(t);return db(n)?t.ownerDocument?t.ownerDocument.body:t.body:Sa(n)&&bf(n)?n:uN(n)}function fb(t,n){var e;void 0===n&&(n=[]);const i=uN(t),o=i===(null==(e=t.ownerDocument)?void 0:e.body),r=cr(i);return o?n.concat(r,r.visualViewport||[],bf(i)?i:[]):n.concat(i,fb(i))}function dN(t){const n=Er(t);let e=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const o=Sa(t),r=o?t.offsetWidth:e,a=o?t.offsetHeight:i,s=rb(e)!==r||rb(i)!==a;return s&&(e=r,i=a),{width:e,height:i,$:s}}function n1(t){return is(t)?t:t.contextElement}function Ru(t){const n=n1(t);if(!Sa(n))return $s(1);const e=n.getBoundingClientRect(),{width:i,height:o,$:r}=dN(n);let a=(r?rb(e.width):e.width)/i,s=(r?rb(e.height):e.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Kee=$s(0);function hN(t){const n=cr(t);return t1()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:Kee}function Vl(t,n,e,i){void 0===n&&(n=!1),void 0===e&&(e=!1);const o=t.getBoundingClientRect(),r=n1(t);let a=$s(1);n&&(i?is(i)&&(a=Ru(i)):a=Ru(t));const s=function qee(t,n,e){return void 0===n&&(n=!1),!(!e||n&&e!==cr(t))&&n}(r,e,i)?hN(r):$s(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(r){const h=cr(r),p=i&&is(i)?cr(i):i;let g=h.frameElement;for(;g&&i&&p!==h;){const b=Ru(g),T=g.getBoundingClientRect(),D=Er(g),H=T.left+(g.clientLeft+parseFloat(D.paddingLeft))*b.x,oe=T.top+(g.clientTop+parseFloat(D.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=H,c+=oe,g=cr(g).frameElement}}return ub({width:u,height:d,x:l,y:c})}function fN(t){return Vl(ns(t)).left+hb(t).scrollLeft}function pN(t,n,e){let i;if("viewport"===n)i=function ite(t,n){const e=cr(t),i=ns(t),o=e.visualViewport;let r=i.clientWidth,a=i.clientHeight,s=0,l=0;if(o){r=o.width,a=o.height;const c=t1();(!c||c&&"fixed"===n)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:r,height:a,x:s,y:l}}(t,e);else if("document"===n)i=function nte(t){const n=ns(t),e=hb(t),i=t.ownerDocument.body,o=zl(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),r=zl(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let a=-e.scrollLeft+fN(t);const s=-e.scrollTop;return"rtl"===Er(i).direction&&(a+=zl(n.clientWidth,i.clientWidth)-o),{width:o,height:r,x:a,y:s}}(ns(t));else if(is(n))i=function ote(t,n){const e=Vl(t,!0,"fixed"===n),i=e.top+t.clientTop,o=e.left+t.clientLeft,r=Sa(t)?Ru(t):$s(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y}}(n,e);else{const o=hN(t);i=mo({},n,{x:n.x-o.x,y:n.y-o.y})}return ub(i)}function gN(t,n){const e=Ou(t);return!(e===n||!is(e)||db(e))&&("fixed"===Er(e).position||gN(e,n))}function rte(t,n){const e=n.get(t);if(e)return e;let i=fb(t).filter(s=>is(s)&&"body"!==Vs(s)),o=null;const r="fixed"===Er(t).position;let a=r?Ou(t):t;for(;is(a)&&!db(a);){const s=Er(a),l=e1(a);!l&&"fixed"===s.position&&(o=null),(r?!l&&!o:!l&&"static"===s.position&&o&&["absolute","fixed"].includes(o.position)||bf(a)&&!l&&gN(t,a))?i=i.filter(u=>u!==a):o=s,a=Ou(a)}return n.set(t,i),i}function lte(t,n,e){const i=Sa(n),o=ns(n),r="fixed"===e,a=Vl(t,!0,r,n);let s={scrollLeft:0,scrollTop:0};const l=$s(0);if(i||!i&&!r)if(("body"!==Vs(n)||bf(o))&&(s=hb(n)),i){const c=Vl(n,!0,r,n);l.x=c.x+n.clientLeft,l.y=c.y+n.clientTop}else o&&(l.x=fN(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function mN(t,n){return Sa(t)&&"fixed"!==Er(t).position?n?n(t):t.offsetParent:null}function bN(t,n){const e=cr(t);if(!Sa(t))return e;let i=mN(t,n);for(;i&&Jee(i)&&"static"===Er(i).position;)i=mN(i,n);return i&&("html"===Vs(i)||"body"===Vs(i)&&"static"===Er(i).position&&!e1(i))?e:i||function Qee(t){let n=Ou(t);for(;Sa(n)&&!db(n);){if(e1(n))return n;n=Ou(n)}return null}(t)||e}const cte=function(){var t=(0,y.Z)(function*(e){let{reference:i,floating:o,strategy:r}=e;const a=this.getOffsetParent||bN,s=this.getDimensions;return{reference:lte(i,yield a(o),r),floating:mo({x:0,y:0},yield s(o))}});return function n(e){return t.apply(this,arguments)}}(),dte={convertOffsetParentRelativeRectToViewportRelativeRect:function ete(t){let{rect:n,offsetParent:e,strategy:i}=t;const o=Sa(e),r=ns(e);if(e===r)return n;let a={scrollLeft:0,scrollTop:0},s=$s(1);const l=$s(0);if((o||!o&&"fixed"!==i)&&(("body"!==Vs(e)||bf(r))&&(a=hb(e)),Sa(e))){const c=Vl(e);s=Ru(e),l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-a.scrollLeft*s.x+l.x,y:n.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:ns,getClippingRect:function ate(t){let{element:n,boundary:e,rootBoundary:i,strategy:o}=t;const a=[..."clippingAncestors"===e?rte(n,this._c):[].concat(e),i],l=a.reduce((c,u)=>{const d=pN(n,u,o);return c.top=zl(d.top,c.top),c.right=ku(d.right,c.right),c.bottom=ku(d.bottom,c.bottom),c.left=zl(d.left,c.left),c},pN(n,a[0],o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:bN,getElementRects:cte,getClientRects:function tte(t){return Array.from(t.getClientRects())},getDimensions:function ste(t){return dN(t)},getScale:Ru,isElement:is,isRTL:function ute(t){return"rtl"===Er(t).direction}};function gte(t){t.cleanup&&t.cleanup();const n=t._getResolvedAttachToOptions();let e=n.element;const i=function wte(t,n){const e={strategy:"absolute",middleware:[]},i=function Cte(t){return!(!t.options.arrow||!t.el)&&t.el.querySelector(".shepherd-arrow")}(n);return iN(t)||(e.middleware.push(function(n){return void 0===n&&(n={}),{name:"flip",options:n,fn:e=>(0,y.Z)(function*(){var i;const{placement:o,middlewareData:r,rects:a,initialPlacement:s,platform:l,elements:c}=e,u=Iu(n,e),{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:T=!0}=u,D=oN(u,$ee),H=$l(o),oe=$l(s)===s,le=yield null==l.isRTL?void 0:l.isRTL(c.floating),G=p||(oe||!T?[cb(s)]:function Bee(t){const n=cb(t);return[KC(t),n,KC(n)]}(s));!p&&"none"!==b&&G.push(...function Yee(t,n,e,i){const o=sb(t);let r=function Hee(t,n,e){const i=["left","right"],o=["right","left"],r=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return e?n?o:i:n?i:o;case"left":case"right":return n?r:a;default:return[]}}($l(t),"start"===e,i);return o&&(r=r.map(a=>a+"-"+o),n&&(r=r.concat(r.map(KC)))),r}(s,T,b,le));const pe=[s,...G],_e=yield sN(e,D),be=[];let Be=(null==(i=r.flip)?void 0:i.overflows)||[];if(d&&be.push(_e[H]),h){const Xe=function jee(t,n,e){void 0===e&&(e=!1);const i=sb(t),o=QC(t),r=JC(o);let a="x"===o?i===(e?"end":"start")?"right":"left":"start"===i?"bottom":"top";return n.reference[r]>n.floating[r]&&(a=cb(a)),[a,cb(a)]}(o,a,le);be.push(_e[Xe[0]],_e[Xe[1]])}if(Be=[...Be,{placement:o,overflows:be}],!be.every(Xe=>Xe<=0)){var Fe,Qe;const Xe=((null==(Fe=r.flip)?void 0:Fe.index)||0)+1,ct=pe[Xe];if(ct)return{data:{index:Xe,overflows:Be},reset:{placement:ct}};let ut=null==(Qe=Be.filter(Se=>Se.overflows[0]<=0).sort((Se,Ye)=>Se.overflows[1]-Ye.overflows[1])[0])?void 0:Qe.placement;if(!ut)switch(g){case"bestFit":{var Re;const Se=null==(Re=Be.map(Ye=>[Ye.placement,Ye.overflows.filter(We=>We>0).reduce((We,it)=>We+it,0)]).sort((Ye,We)=>Ye[1]-We[1])[0])?void 0:Re[0];Se&&(ut=Se);break}case"initialPlacement":ut=s}if(o!==ut)return{reset:{placement:ut}}}return{}})()}}(),function(n){return void 0===n&&(n={}),{name:"shift",options:n,fn:e=>(0,y.Z)(function*(){const{x:i,y:o,placement:r}=e,a=Iu(n,e),{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:H=>{let{x:oe,y:le}=H;return{x:oe,y:le}}}}=a,u=oN(a,Vee),d={x:i,y:o},h=yield sN(e,u),p=lb($l(r)),g=XC(p);let b=d[g],T=d[p];s&&(b=WC(b+h["y"===g?"top":"left"],b,b-h["y"===g?"bottom":"right"])),l&&(T=WC(T+h["y"===p?"top":"left"],T,T-h["y"===p?"bottom":"right"]));const D=c.fn(mo({},e,{[g]:b,[p]:T}));return mo({},D,{data:{x:D.x-i,y:D.y-o}})})()}}({limiter:Xee(),crossAxis:!0})),i&&e.middleware.push((t=>({name:"arrow",options:t,fn:n=>(0,y.Z)(function*(){const{x:e,y:i,placement:o,rects:r,platform:a,elements:s}=n,{element:l,padding:c=0}=Iu(t,n)||{};if(null==l)return{};const u=rN(c),d={x:e,y:i},h=QC(o),p=JC(h),g=yield a.getDimensions(l),b="y"===h,T=b?"top":"left",D=b?"bottom":"right",H=b?"clientHeight":"clientWidth",oe=r.reference[p]+r.reference[h]-d[h]-r.floating[p],le=d[h]-r.reference[h],G=yield null==a.getOffsetParent?void 0:a.getOffsetParent(l);let pe=G?G[H]:0;(!pe||!(yield null==a.isElement?void 0:a.isElement(G)))&&(pe=s.floating[H]||r.floating[p]);const _e=oe/2-le/2,be=pe/2-g[p]/2-1,Be=ku(u[T],be),Fe=ku(u[D],be),Qe=Be,Re=pe-g[p]-Fe,Xe=pe/2-g[p]/2+_e,ct=WC(Qe,Xe,Re),Se=null!=sb(o)&&Xe!=ct&&r.reference[p]/2-(Xe{o&&D.addEventListener("scroll",e,{passive:!0}),r&&D.addEventListener("resize",e)});const d=c&&s?function hte(t,n){let i,e=null;const o=ns(t);function r(){clearTimeout(i),e&&e.disconnect(),e=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),r();const{left:c,top:u,width:d,height:h}=t.getBoundingClientRect();if(s||n(),!d||!h)return;const H={rootMargin:-ab(u)+"px "+-ab(o.clientWidth-(c+d))+"px "+-ab(o.clientHeight-(u+h))+"px "+-ab(c)+"px",threshold:zl(0,ku(1,l))||1};let oe=!0;function le(G){const pe=G[0].intersectionRatio;if(pe!==l){if(!oe)return a();pe?a(!1,pe):i=setTimeout(()=>{a(!1,1e-7)},100)}oe=!1}try{e=new IntersectionObserver(le,mo({},H,{root:o.ownerDocument}))}catch{e=new IntersectionObserver(le,H)}e.observe(t)}(!0),r}(c,e):null;let h=-1,p=null;a&&(p=new ResizeObserver(D=>{let[H]=D;H&&H.target===c&&p&&(p.unobserve(n),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{p&&p.observe(n)})),e()}),c&&!l&&p.observe(c),p.observe(n));let g,b=l?Vl(t):null;return l&&function T(){const D=Vl(t);b&&(D.x!==b.x||D.y!==b.y||D.width!==b.width||D.height!==b.height)&&e(),b=D,g=requestAnimationFrame(T)}(),e(),()=>{u.forEach(D=>{o&&D.removeEventListener("scroll",e),r&&D.removeEventListener("resize",e)}),d&&d(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(g)}}(e,t.el,()=>{t.el?function yte(t,n,e,i){((t,n,e)=>{const i=new Map,o=mo({platform:dte},e),r=mo({},o.platform,{_c:i});return Zee(t,n,mo({},o,{platform:r}))})(t,n.el,e).then(function _te(t,n){return({x:e,y:i,placement:o,middlewareData:r})=>(t.el&&(Object.assign(t.el.style,n?{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}:{position:"absolute",left:`${e}px`,top:`${i}px`}),t.el.dataset.popperPlacement=o,function vte(t,n){const e=t.querySelector(".shepherd-arrow");if(e&&n.arrow){const{x:i,y:o}=n.arrow;Object.assign(e.style,{left:null!=i?`${i}px`:"",top:null!=o?`${o}px`:""})}}(t.el,r)),t)}(n,i)).then(o=>new Promise(r=>{setTimeout(()=>r(o),300)})).then(o=>{o&&o.el&&o.el.focus({preventScroll:!0})})}(e,t,i,o):t.cleanup()}),t.target=n.element,i}function ur(){}function xte(t,n){for(const e in n)t[e]=n[e];return t}function yN(t){return t()}function _N(){return Object.create(null)}function yf(t){t.forEach(yN)}function o1(t){return"function"==typeof t}function os(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function Pu(t,n){t.appendChild(n)}function Ur(t,n,e){t.insertBefore(n,e||null)}function Tr(t){t.parentNode&&t.parentNode.removeChild(t)}function Da(t){return document.createElement(t)}function vN(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function wN(t){return document.createTextNode(t)}function pb(){return wN(" ")}function gb(t,n,e,i){return t.addEventListener(n,e,i),()=>t.removeEventListener(n,e,i)}function ei(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}const Tte=["width","height"];function CN(t,n){const e=Object.getOwnPropertyDescriptors(t.__proto__);for(const i in n)null==n[i]?t.removeAttribute(i):"style"===i?t.style.cssText=n[i]:"__value"===i?t.value=t[i]=n[i]:e[i]&&e[i].set&&-1===Tte.indexOf(i)?t[i]=n[i]:ei(t,i,n[i])}function Nu(t,n,e){t.classList[e?"add":"remove"](n)}let _f;function vf(t){_f=t}function xN(){if(!_f)throw new Error("Function called outside component initialization");return _f}function r1(t){xN().$$.after_update.push(t)}const Fu=[],Lu=[];let ju=[];const SN=[],kte=Promise.resolve();let a1=!1;function s1(t){ju.push(t)}const l1=new Set;let Bu=0;function DN(){if(0!==Bu)return;const t=_f;do{try{for(;Bu{mb.delete(t),i&&(e&&t.d(1),i())}),t.o(n)}else i&&i()}function Wl(t){t&&t.c()}function Zs(t,n,e,i){const{fragment:o,after_update:r}=t.$$;o&&o.m(n,e),i||s1(()=>{const a=t.$$.on_mount.map(yN).filter(o1);t.$$.on_destroy?t.$$.on_destroy.push(...a):yf(a),t.$$.on_mount=[]}),r.forEach(s1)}function Gs(t,n){const e=t.$$;null!==e.fragment&&(function Rte(t){const n=[],e=[];ju.forEach(i=>-1===t.indexOf(i)?n.push(i):e.push(i)),e.forEach(i=>i()),ju=n}(e.after_update),yf(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function rs(t,n,e,i,o,r,a,s=[-1]){const l=_f;vf(t);const c=t.$$={fragment:null,ctx:[],props:r,update:ur,not_equal:o,bound:_N(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(l?l.$$.context:[])),callbacks:_N(),dirty:s,skip_bound:!1,root:n.target||l.$$.root};a&&a(c.root);let u=!1;if(c.ctx=e?e(t,n.props||{},(d,h,...p)=>{const g=p.length?p[0]:h;return c.ctx&&o(c.ctx[d],c.ctx[d]=g)&&(!c.skip_bound&&c.bound[d]&&c.bound[d](g),u&&function Nte(t,n){-1===t.$$.dirty[0]&&(Fu.push(t),function Ite(){a1||(a1=!0,kte.then(DN))}(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<{const o=i.indexOf(e);-1!==o&&i.splice(o,1)}}$set(n){this.$$set&&!function Ste(t){return 0===Object.keys(t).length}(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}function Fte(t){let n,e,i,o,r;return{c(){n=Da("button"),ei(n,"aria-label",e=t[3]?t[3]:null),ei(n,"class",i=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`),n.disabled=t[2],ei(n,"tabindex","0")},m(a,s){Ur(a,n,s),n.innerHTML=t[5],o||(r=gb(n,"click",function(){o1(t[0])&&t[0].apply(this,arguments)}),o=!0)},p(a,[s]){t=a,32&s&&(n.innerHTML=t[5]),8&s&&e!==(e=t[3]?t[3]:null)&&ei(n,"aria-label",e),18&s&&i!==(i=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`)&&ei(n,"class",i),4&s&&(n.disabled=t[2])},i:ur,o:ur,d(a){a&&Tr(n),o=!1,r()}}}function Lte(t,n,e){let r,a,s,l,c,u,{config:i,step:o}=n;function d(h){return Yl(h)?h=h.call(o):h}return t.$$set=h=>{"config"in h&&e(6,i=h.config),"step"in h&&e(7,o=h.step)},t.$$.update=()=>{192&t.$$.dirty&&(e(0,r=i.action?i.action.bind(o.tour):null),e(1,a=i.classes),e(2,s=!!i.disabled&&d(i.disabled)),e(3,l=i.label?d(i.label):null),e(4,c=i.secondary),e(5,u=i.text?d(i.text):null))},[r,a,s,l,c,u,i,o]}class jte extends as{constructor(n){super(),rs(this,n,Lte,Fte,os,{config:6,step:7})}}function EN(t,n,e){const i=t.slice();return i[2]=n[e],i}function TN(t){let n,e,i=t[1],o=[];for(let a=0;aki(o[a],1,1,()=>{o[a]=null});return{c(){for(let a=0;a{i=null}),Ul())},i(o){e||(jn(i),e=!0)},o(o){ki(i),e=!1},d(o){o&&Tr(n),i&&i.d()}}}function Hte(t,n,e){let i,{step:o}=n;return t.$$set=r=>{"step"in r&&e(0,o=r.step)},t.$$.update=()=>{1&t.$$.dirty&&e(1,i=o.options.buttons)},[o,i]}class Yte extends as{constructor(n){super(),rs(this,n,Hte,Bte,os,{step:0})}}function zte(t){let n,e,i,o,r;return{c(){n=Da("button"),e=Da("span"),e.textContent="\xd7",ei(e,"aria-hidden","true"),ei(n,"aria-label",i=t[0].label?t[0].label:"Close Tour"),ei(n,"class","shepherd-cancel-icon"),ei(n,"type","button")},m(a,s){Ur(a,n,s),Pu(n,e),o||(r=gb(n,"click",t[1]),o=!0)},p(a,[s]){1&s&&i!==(i=a[0].label?a[0].label:"Close Tour")&&ei(n,"aria-label",i)},i:ur,o:ur,d(a){a&&Tr(n),o=!1,r()}}}function $te(t,n,e){let{cancelIcon:i,step:o}=n;return t.$$set=a=>{"cancelIcon"in a&&e(0,i=a.cancelIcon),"step"in a&&e(2,o=a.step)},[i,a=>{a.preventDefault(),o.cancel()},o]}class Vte extends as{constructor(n){super(),rs(this,n,$te,zte,os,{cancelIcon:0,step:2})}}function Zte(t){let n;return{c(){n=Da("h3"),ei(n,"id",t[1]),ei(n,"class","shepherd-title")},m(e,i){Ur(e,n,i),t[3](n)},p(e,[i]){2&i&&ei(n,"id",e[1])},i:ur,o:ur,d(e){e&&Tr(n),t[3](null)}}}function Gte(t,n,e){let{labelId:i,element:o,title:r}=n;return r1(()=>{Yl(r)&&e(2,r=r()),e(0,o.innerHTML=r,o)}),t.$$set=s=>{"labelId"in s&&e(1,i=s.labelId),"element"in s&&e(0,o=s.element),"title"in s&&e(2,r=s.title)},[o,i,r,function a(s){Lu[s?"unshift":"push"](()=>{o=s,e(0,o)})}]}class Ute extends as{constructor(n){super(),rs(this,n,Gte,Zte,os,{labelId:1,element:0,title:2})}}function AN(t){let n,e;return n=new Ute({props:{labelId:t[0],title:t[2]}}),{c(){Wl(n.$$.fragment)},m(i,o){Zs(n,i,o),e=!0},p(i,o){const r={};1&o&&(r.labelId=i[0]),4&o&&(r.title=i[2]),n.$set(r)},i(i){e||(jn(n.$$.fragment,i),e=!0)},o(i){ki(n.$$.fragment,i),e=!1},d(i){Gs(n,i)}}}function kN(t){let n,e;return n=new Vte({props:{cancelIcon:t[3],step:t[1]}}),{c(){Wl(n.$$.fragment)},m(i,o){Zs(n,i,o),e=!0},p(i,o){const r={};8&o&&(r.cancelIcon=i[3]),2&o&&(r.step=i[1]),n.$set(r)},i(i){e||(jn(n.$$.fragment,i),e=!0)},o(i){ki(n.$$.fragment,i),e=!1},d(i){Gs(n,i)}}}function Wte(t){let n,e,i,o=t[2]&&AN(t),r=t[3]&&t[3].enabled&&kN(t);return{c(){n=Da("header"),o&&o.c(),e=pb(),r&&r.c(),ei(n,"class","shepherd-header")},m(a,s){Ur(a,n,s),o&&o.m(n,null),Pu(n,e),r&&r.m(n,null),i=!0},p(a,[s]){a[2]?o?(o.p(a,s),4&s&&jn(o,1)):(o=AN(a),o.c(),jn(o,1),o.m(n,e)):o&&(Gl(),ki(o,1,1,()=>{o=null}),Ul()),a[3]&&a[3].enabled?r?(r.p(a,s),8&s&&jn(r,1)):(r=kN(a),r.c(),jn(r,1),r.m(n,null)):r&&(Gl(),ki(r,1,1,()=>{r=null}),Ul())},i(a){i||(jn(o),jn(r),i=!0)},o(a){ki(o),ki(r),i=!1},d(a){a&&Tr(n),o&&o.d(),r&&r.d()}}}function Xte(t,n,e){let r,a,{labelId:i,step:o}=n;return t.$$set=s=>{"labelId"in s&&e(0,i=s.labelId),"step"in s&&e(1,o=s.step)},t.$$.update=()=>{2&t.$$.dirty&&(e(2,r=o.options.title),e(3,a=o.options.cancelIcon))},[i,o,r,a]}class Jte extends as{constructor(n){super(),rs(this,n,Xte,Wte,os,{labelId:0,step:1})}}function Qte(t){let n;return{c(){n=Da("div"),ei(n,"class","shepherd-text"),ei(n,"id",t[1])},m(e,i){Ur(e,n,i),t[3](n)},p(e,[i]){2&i&&ei(n,"id",e[1])},i:ur,o:ur,d(e){e&&Tr(n),t[3](null)}}}function Kte(t,n,e){let{descriptionId:i,element:o,step:r}=n;return r1(()=>{let{text:s}=r.options;Yl(s)&&(s=s.call(r)),ZC(s)?o.appendChild(s):e(0,o.innerHTML=s,o)}),t.$$set=s=>{"descriptionId"in s&&e(1,i=s.descriptionId),"element"in s&&e(0,o=s.element),"step"in s&&e(2,r=s.step)},[o,i,r,function a(s){Lu[s?"unshift":"push"](()=>{o=s,e(0,o)})}]}class qte extends as{constructor(n){super(),rs(this,n,Kte,Qte,os,{descriptionId:1,element:0,step:2})}}function IN(t){let n,e;return n=new Jte({props:{labelId:t[1],step:t[2]}}),{c(){Wl(n.$$.fragment)},m(i,o){Zs(n,i,o),e=!0},p(i,o){const r={};2&o&&(r.labelId=i[1]),4&o&&(r.step=i[2]),n.$set(r)},i(i){e||(jn(n.$$.fragment,i),e=!0)},o(i){ki(n.$$.fragment,i),e=!1},d(i){Gs(n,i)}}}function ON(t){let n,e;return n=new qte({props:{descriptionId:t[0],step:t[2]}}),{c(){Wl(n.$$.fragment)},m(i,o){Zs(n,i,o),e=!0},p(i,o){const r={};1&o&&(r.descriptionId=i[0]),4&o&&(r.step=i[2]),n.$set(r)},i(i){e||(jn(n.$$.fragment,i),e=!0)},o(i){ki(n.$$.fragment,i),e=!1},d(i){Gs(n,i)}}}function RN(t){let n,e;return n=new Yte({props:{step:t[2]}}),{c(){Wl(n.$$.fragment)},m(i,o){Zs(n,i,o),e=!0},p(i,o){const r={};4&o&&(r.step=i[2]),n.$set(r)},i(i){e||(jn(n.$$.fragment,i),e=!0)},o(i){ki(n.$$.fragment,i),e=!1},d(i){Gs(n,i)}}}function ene(t){let n,i,r,s,e=!go(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled,o=!go(t[2].options.text),a=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length,l=e&&IN(t),c=o&&ON(t),u=a&&RN(t);return{c(){n=Da("div"),l&&l.c(),i=pb(),c&&c.c(),r=pb(),u&&u.c(),ei(n,"class","shepherd-content")},m(d,h){Ur(d,n,h),l&&l.m(n,null),Pu(n,i),c&&c.m(n,null),Pu(n,r),u&&u.m(n,null),s=!0},p(d,[h]){4&h&&(e=!go(d[2].options.title)||d[2].options.cancelIcon&&d[2].options.cancelIcon.enabled),e?l?(l.p(d,h),4&h&&jn(l,1)):(l=IN(d),l.c(),jn(l,1),l.m(n,i)):l&&(Gl(),ki(l,1,1,()=>{l=null}),Ul()),4&h&&(o=!go(d[2].options.text)),o?c?(c.p(d,h),4&h&&jn(c,1)):(c=ON(d),c.c(),jn(c,1),c.m(n,r)):c&&(Gl(),ki(c,1,1,()=>{c=null}),Ul()),4&h&&(a=Array.isArray(d[2].options.buttons)&&d[2].options.buttons.length),a?u?(u.p(d,h),4&h&&jn(u,1)):(u=RN(d),u.c(),jn(u,1),u.m(n,null)):u&&(Gl(),ki(u,1,1,()=>{u=null}),Ul())},i(d){s||(jn(l),jn(c),jn(u),s=!0)},o(d){ki(l),ki(c),ki(u),s=!1},d(d){d&&Tr(n),l&&l.d(),c&&c.d(),u&&u.d()}}}function tne(t,n,e){let{descriptionId:i,labelId:o,step:r}=n;return t.$$set=a=>{"descriptionId"in a&&e(0,i=a.descriptionId),"labelId"in a&&e(1,o=a.labelId),"step"in a&&e(2,r=a.step)},[i,o,r]}class nne extends as{constructor(n){super(),rs(this,n,tne,ene,os,{descriptionId:0,labelId:1,step:2})}}function PN(t){let n;return{c(){n=Da("div"),ei(n,"class","shepherd-arrow"),ei(n,"data-popper-arrow","")},m(e,i){Ur(e,n,i)},d(e){e&&Tr(n)}}}function ine(t){let n,e,i,o,r,a,s,l,c=t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on&&PN();i=new nne({props:{descriptionId:t[2],labelId:t[3],step:t[4]}});let u=[{"aria-describedby":o=go(t[4].options.text)?null:t[2]},{"aria-labelledby":r=t[4].options.title?t[3]:null},t[1],{role:"dialog"},{tabindex:"0"}],d={};for(let h=0;h!!n.length)}function lne(t,n,e){let h,p,g,{classPrefix:i,element:o,descriptionId:r,firstFocusableElement:a,focusableElements:s,labelId:l,lastFocusableElement:c,step:u,dataStepId:d}=n;return function Ate(t){xN().$$.on_mount.push(t)}(()=>{e(1,d={[`data-${i}shepherd-step-id`]:u.id}),e(9,s=o.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),e(8,a=s[0]),e(10,c=s[s.length-1])}),r1(()=>{g!==u.options.classes&&function T(){(function D(G){if(mf(G)){const pe=NN(G);pe.length&&o.classList.remove(...pe)}})(g),g=u.options.classes,function H(G){if(mf(G)){const pe=NN(G);pe.length&&o.classList.add(...pe)}}(g)}()}),t.$$set=G=>{"classPrefix"in G&&e(11,i=G.classPrefix),"element"in G&&e(0,o=G.element),"descriptionId"in G&&e(2,r=G.descriptionId),"firstFocusableElement"in G&&e(8,a=G.firstFocusableElement),"focusableElements"in G&&e(9,s=G.focusableElements),"labelId"in G&&e(3,l=G.labelId),"lastFocusableElement"in G&&e(10,c=G.lastFocusableElement),"step"in G&&e(4,u=G.step),"dataStepId"in G&&e(1,d=G.dataStepId)},t.$$.update=()=>{16&t.$$.dirty&&(e(5,h=u.options&&u.options.cancelIcon&&u.options.cancelIcon.enabled),e(6,p=u.options&&u.options.title))},[o,d,r,l,u,h,p,G=>{const{tour:pe}=u;switch(G.keyCode){case 9:if(0===s.length){G.preventDefault();break}G.shiftKey?(document.activeElement===a||document.activeElement.classList.contains("shepherd-element"))&&(G.preventDefault(),c.focus()):document.activeElement===c&&(G.preventDefault(),a.focus());break;case 27:pe.options.exitOnEsc&&(G.stopPropagation(),u.cancel());break;case 37:pe.options.keyboardNavigation&&(G.stopPropagation(),pe.back());break;case 39:pe.options.keyboardNavigation&&(G.stopPropagation(),pe.next())}},a,s,c,i,()=>o,function le(G){Lu[G?"unshift":"push"](()=>{o=G,e(0,o)})}]}class cne extends as{constructor(n){super(),rs(this,n,lne,ine,os,{classPrefix:11,element:0,descriptionId:2,firstFocusableElement:8,focusableElements:9,labelId:3,lastFocusableElement:10,step:4,dataStepId:1,getElement:12})}get getElement(){return this.$$.ctx[12]}}class c1 extends GC{constructor(n,e={}){return super(n,e),this.tour=n,this.classPrefix=this.tour.options?nN(this.tour.options.classPrefix):"",this.styles=n.styles,this._resolvedAttachTo=null,tN(this),this._setOptions(e),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){(function bte(t){t.cleanup&&t.cleanup(),t.cleanup=null})(this),ZC(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){this.tour.modal.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=function Nee(t){const n=t.options.attachTo||{},e=Object.assign({},n);if(Yl(e.element)&&(e.element=e.element.call(t)),mf(e.element)){try{e.element=document.querySelector(e.element)}catch{}e.element||console.error(`The element for this Shepherd step was not found ${n.element}`)}return e}(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return null===this._resolvedAttachTo?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!(!this.el||this.el.hidden)}show(){return Yl(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(n){Object.assign(this.options,n),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){return this.shepherdElementComponent=new cne({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:`${this.id}-description`,labelId:`${this.id}-label`,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(n){const{element:e}=this._getResolvedAttachToOptions();Yl(this.options.scrollToHandler)?this.options.scrollToHandler(e):function Oee(t){return t instanceof Element}(e)&&"function"==typeof e.scrollIntoView&&e.scrollIntoView(n)}_getClassOptions(n){const e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,o=e&&e.classes?e.classes:"",r=[...(n.classes?n.classes:"").split(" "),...o.split(" ")],a=new Set(r);return Array.from(a).join(" ").trim()}_setOptions(n={}){let e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;e=VC({},e||{}),this.options=Object.assign({arrow:!0},e,n,function mte(t,n){return{floatingUIOptions:VC(t.floatingUIOptions||{},n.floatingUIOptions||{})}}(e,n));const{when:i}=this.options;this.options.classes=this._getClassOptions(n),this.destroy(),this.id=this.options.id||`step-${UC()}`,i&&Object.keys(i).forEach(o=>{this.on(o,i[o],this)})}_setupElements(){go(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&function Pee(t){const{event:n,selector:e}=t.options.advanceOn||{};if(!n)return console.error("advanceOn was defined, but no event name was passed.");{const i=function Ree(t,n){return e=>{if(n.isOpen()){const i=n.el&&e.currentTarget===n.el;(!go(t)&&e.currentTarget.matches(t)||i)&&n.tour.next()}}}(e,t);let o;try{o=document.querySelector(e)}catch{}if(!go(e)&&!o)return console.error(`No element was found for the selector supplied to advanceOn: ${e}`);o?(o.addEventListener(n,i),t.on("destroy",()=>o.removeEventListener(n,i))):(document.body.addEventListener(n,i,!0),t.on("destroy",()=>document.body.removeEventListener(n,i,!0)))}}(this),gte(this)}_show(){this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour._setupModal(),this.tour.modal.setupForStep(this),this._styleTargetElementForStep(this),this.el.hidden=!1,this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el.hidden=!1;const n=this.shepherdElementComponent.getElement(),e=this.target||document.body;e.classList.add(`${this.classPrefix}shepherd-enabled`),e.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(n){const e=n.target;e&&(n.options.highlightClass&&e.classList.add(n.options.highlightClass),e.classList.remove("shepherd-target-click-disabled"),!1===n.options.canClickTarget&&e.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const n=this.target||document.body;this.options.highlightClass&&n.classList.remove(this.options.highlightClass),n.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}}function hne(t){let n,e,i,o,r;return{c(){n=vN("svg"),e=vN("path"),ei(e,"d",t[2]),ei(n,"class",i=(t[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")},m(a,s){Ur(a,n,s),Pu(n,e),t[11](n),o||(r=gb(n,"touchmove",t[3]),o=!0)},p(a,[s]){4&s&&ei(e,"d",a[2]),2&s&&i!==(i=(a[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")&&ei(n,"class",i)},i:ur,o:ur,d(a){a&&Tr(n),t[11](null),o=!1,r()}}}function FN(t){if(!t)return null;const e=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return"hidden"!==e&&"visible"!==e&&t.scrollHeight>=t.clientHeight?t:FN(t.parentElement)}function pne(t,n,e){let{element:i,openingProperties:o}=n;UC();let a,s,r=!1;function c(){e(4,o={width:0,height:0,x:0,y:0,r:0})}function u(){e(1,r=!1),D()}function d(le=0,G=0,pe,_e){if(_e){const{y:be,height:Be}=function fne(t,n){const e=t.getBoundingClientRect();let i=e.y||e.top,o=e.bottom||i+e.height;if(n){const a=n.getBoundingClientRect(),s=a.y||a.top,l=a.bottom||s+a.height;i=Math.max(i,s),o=Math.min(o,l)}return{y:i,height:Math.max(o-i,0)}}(_e,pe),{x:Fe,width:Qe,left:Re}=_e.getBoundingClientRect();e(4,o={width:Qe+2*le,height:Be+2*le,x:(Fe||Re)-le,y:be-le,r:G})}else c()}function p(){e(1,r=!0)}c();const g=le=>{le.preventDefault()};function D(){a&&(cancelAnimationFrame(a),a=void 0),window.removeEventListener("touchmove",g,{passive:!1})}return t.$$set=le=>{"element"in le&&e(0,i=le.element),"openingProperties"in le&&e(4,o=le.openingProperties)},t.$$.update=()=>{16&t.$$.dirty&&e(2,s=function dne({width:t,height:n,x:e=0,y:i=0,r:o=0}){const{innerWidth:r,innerHeight:a}=window,{topLeft:s=0,topRight:l=0,bottomRight:c=0,bottomLeft:u=0}="number"==typeof o?{topLeft:o,topRight:o,bottomRight:o,bottomLeft:o}:o;return`M${r},${a}H0V0H${r}V${a}ZM${e+s},${i}a${s},${s},0,0,0-${s},${s}V${n+i-u}a${u},${u},0,0,0,${u},${u}H${t+e-c}a${c},${c},0,0,0,${c}-${c}V${i+l}a${l},${l},0,0,0-${l}-${l}Z`}(o))},[i,r,s,le=>{le.stopPropagation()},o,()=>i,c,u,d,function h(le){D(),le.tour.options.useModalOverlay?(function H(le){const{modalOverlayOpeningPadding:G,modalOverlayOpeningRadius:pe}=le.options,_e=FN(le.target),be=()=>{a=void 0,d(G,pe,_e,le.target),a=requestAnimationFrame(be)};be(),function T(){window.addEventListener("touchmove",g,{passive:!1})}()}(le),p()):u()},p,function oe(le){Lu[le?"unshift":"push"](()=>{i=le,e(0,i)})}]}class gne extends as{constructor(n){super(),rs(this,n,pne,hne,os,{element:0,openingProperties:4,getElement:5,closeModalOpening:6,hide:7,positionModal:8,setupForStep:9,show:10})}get getElement(){return this.$$.ctx[5]}get closeModalOpening(){return this.$$.ctx[6]}get hide(){return this.$$.ctx[7]}get positionModal(){return this.$$.ctx[8]}get setupForStep(){return this.$$.ctx[9]}get show(){return this.$$.ctx[10]}}const Xl=new GC,bne=typeof window>"u";class LN{constructor(){}}function _ne(t){const{classes:n,disabled:e,label:i,secondary:o,type:r,text:a}=t;if(!r)return t;if(-1===["back","cancel","next"].indexOf(r))throw new Error("'type' property must be one of 'back', 'cancel', or 'next'");return{action:this[r].bind(this),classes:n,disabled:e,label:i,secondary:o,text:a}}Object.assign(Xl,bne?{Tour:LN,Step:LN}:{Tour:class mne extends GC{constructor(n={}){return super(n),tN(this),this.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},n),this.classPrefix=nN(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(o=>{(r=>{this.on(r,a=>{(a=a||{}).tour=this,Xl.trigger(r,a)})})(o)}),this._setTourID(),this}addStep(n,e){let i=n;return i instanceof c1?i.tour=this:i=new c1(this,i),go(e)?this.steps.push(i):this.steps.splice(e,0,i),i}addSteps(n){return Array.isArray(n)&&n.forEach(e=>{this.addStep(e)}),this}back(){const n=this.steps.indexOf(this.currentStep);this.show(n-1,!1)}cancel(){var n=this;return(0,y.Z)(function*(){if(n.options.confirmCancel){const i=n.options.confirmCancelMessage||"Are you sure you want to stop the tour?";("function"==typeof n.options.confirmCancel?yield n.options.confirmCancel():window.confirm(i))&&n._done("cancel")}else n._done("cancel")})()}complete(){this._done("complete")}getById(n){return this.steps.find(e=>e.id===n)}getCurrentStep(){return this.currentStep}hide(){const n=this.getCurrentStep();if(n)return n.hide()}isActive(){return Xl.activeTour===this}next(){const n=this.steps.indexOf(this.currentStep);n===this.steps.length-1?this.complete():this.show(n+1,!0)}removeStep(n){const e=this.getCurrentStep();this.steps.some((i,o)=>{if(i.id===n)return i.isOpen()&&i.hide(),i.destroy(),this.steps.splice(o,1),!0}),e&&e.id===n&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(n=0,e=!0){const i=mf(n)?this.getById(n):this.steps[n];i&&(this._updateStateBeforeShow(),Yl(i.options.showOn)&&!i.options.showOn()?this._skipStep(i,e):(this.trigger("show",{step:i,previous:this.currentStep}),this.currentStep=i,i.show()))}start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this._setupModal(),this._setupActiveTour(),this.next()}_done(n){const e=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(i=>i.destroy()),function une(t){if(t){const{steps:n}=t;n.forEach(e=>{e.options&&!1===e.options.canClickTarget&&e.options.attachTo&&e.target instanceof HTMLElement&&e.target.classList.remove("shepherd-target-click-disabled")})}}(this),this.trigger(n,{index:e}),Xl.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),("cancel"===n||"complete"===n)&&this.modal){const i=document.querySelector(".shepherd-modal-overlay-container");i&&i.remove()}ZC(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),Xl.activeTour=this}_setupModal(){this.modal=new gne({target:this.options.modalContainer||document.body,props:{classPrefix:this.classPrefix,styles:this.styles}})}_skipStep(n,e){const i=this.steps.indexOf(n);i===this.steps.length-1?this.complete():this.show(e?i+1:i-1,e)}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(){this.id=`${this.options.tourName||"tour"}--${UC()}`}},Step:c1});let jN=(()=>{class t{constructor(){this.confirmCancel=!1,this.defaultStepOptions={},this.errorTitle=null,this.isActive=!1,this.keyboardNavigation=!0,this.modal=!1,this.requiredElements=[],this.tourName=void 0}back(){this.tourObject.back()}cancel(){this.tourObject.cancel()}complete(){this.tourObject.complete()}hide(){this.tourObject.hide()}next(){this.tourObject.next()}show(e){this.tourObject.show(e)}start(){this.isActive=!0,this.tourObject.start()}onTourFinish(e){this.isActive=!1}addSteps(e){this._initialize();const i=this.tourObject;if(e&&Array.isArray(e)&&0!==e.length){if(!this.requiredElementsPresent())return void i.addStep({buttons:[{text:"Exit",action:i.cancel}],id:"error",title:this.errorTitle,text:[this.messageForUser]});e.forEach(o=>{o.buttons&&(o.buttons=o.buttons.map(_ne.bind(this),this)),i.addStep(o)})}}requiredElementsPresent(){let e=!0;return this.requiredElements.forEach(i=>{const o=document.querySelector(i.selector);e&&(!o||function yne(t){return 0===t.offsetWidth&&0===t.offsetHeight}(o))&&(e=!1,this.errorTitle=i.title,this.messageForUser=i.message)}),e}_initialize(){const e=new Xl.Tour({confirmCancel:this.confirmCancel,confirmCancelMessage:this.confirmCancelMessage,defaultStepOptions:this.defaultStepOptions,keyboardNavigation:this.keyboardNavigation,tourName:this.tourName,useModalOverlay:this.modal});e.on("complete",this.onTourFinish.bind(this,"complete")),e.on("cancel",this.onTourFinish.bind(this,"cancel")),this.tourObject=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var t;O(7850);const wne=(t="file:///home/runner/work/Studio-Web/Studio-Web/node_modules/soundswallower/soundswallower.web.js",function(e={}){var i,o;(e=typeof e<"u"?e:{}).ready=new Promise(function(xe,fe){i=xe,o=fe});var b,r=Object.assign({},e),s="./this.program",l=(xe,fe)=>{throw fe},d="";typeof document<"u"&&document.currentScript&&(d=document.currentScript.src),t&&(d=t),d=0!==d.indexOf("blob:")?d.substr(0,d.replace(/[?#].*/,"").lastIndexOf("/")+1):"";var oe,D=e.print||console.log.bind(console),H=e.printErr||console.warn.bind(console);Object.assign(e,r),r=null,e.thisProgram&&(s=e.thisProgram),e.quit&&(l=e.quit),e.wasmBinary&&(oe=e.wasmBinary);var le=e.noExitRuntime||!0;"object"!=typeof WebAssembly&&Wn("no native wasm support detected");var G,Xe,ct,At,pe=!1,be=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Be(xe,fe,we){for(var Oe=fe+we,st=fe;xe[st]&&!(st>=Oe);)++st;if(st-fe>16&&xe.buffer&&be)return be.decode(xe.subarray(fe,st));for(var mt="";fe>10,56320|1023&Zi)}}else mt+=String.fromCharCode((31&Dt)<<6|Rt)}else mt+=String.fromCharCode(Dt)}return mt}function Fe(xe,fe){return xe?Be(ct,xe,fe):""}function on(){var xe=G.buffer;e.HEAP_DATA_VIEW=At=new DataView(xe),e.HEAP8=Xe=new Int8Array(xe),e.HEAP16=new Int16Array(xe),e.HEAP32=new Int32Array(xe),e.HEAPU8=ct=new Uint8Array(xe),e.HEAPU16=new Uint16Array(xe),e.HEAPU32=new Uint32Array(xe),e.HEAPF32=new Float32Array(xe),e.HEAPF64=new Float64Array(xe)}var sn=[],ln=[],Vo=[],ft=0,jt=null,ai=null;function Wn(xe){e.onAbort&&e.onAbort(xe),H(xe="Aborted("+xe+")"),pe=!0,xe+=". Build with -sASSERTIONS for more info.";var fe=new WebAssembly.RuntimeError(xe);throw o(fe),fe}var fr;function Qr(xe){return xe.startsWith("data:application/octet-stream;base64,")}function Xu(xe){try{if(xe==fr&&oe)return new Uint8Array(oe);if(b)return b(xe);throw"both async and sync fetching of the wasm failed"}catch(fe){Wn(fe)}}function ny(xe,fe,we){return function wx(xe){return oe||"function"!=typeof fetch?Promise.resolve().then(function(){return Xu(xe)}):fetch(xe,{credentials:"same-origin"}).then(function(fe){if(!fe.ok)throw"failed to load wasm binary file at '"+xe+"'";return fe.arrayBuffer()}).catch(function(){return Xu(xe)})}(xe).then(function(Oe){return WebAssembly.instantiate(Oe,fe)}).then(function(Oe){return Oe}).then(we,function(Oe){H("failed to asynchronously prepare wasm: "+Oe),Wn(Oe)})}function Phe(xe){this.name="ExitStatus",this.message="Program terminated with exit("+xe+")",this.status=xe}function Cx(xe){return At.getInt32(xe,!0)}function xx(xe){return At.getUint32(xe,!0)}function iy(xe,fe){At.setUint32(xe,fe,!0)}function kr(xe){var fe=function Re(xe){for(var fe=0,we=0;we=55296&&Oe<=57343?(fe+=4,++we):fe+=3}return fe}(xe)+1,we=Vj(fe);return we&&function Qe(xe,fe,we,Oe){if(!(Oe>0))return 0;for(var st=we,mt=we+Oe-1,Dt=0;Dt=55296&&Rt<=57343&&(Rt=65536+((1023&Rt)<<10)|1023&xe.charCodeAt(++Dt)),Rt<=127){if(we>=mt)break;fe[we++]=Rt}else if(Rt<=2047){if(we+1>=mt)break;fe[we++]=192|Rt>>6,fe[we++]=128|63&Rt}else if(Rt<=65535){if(we+2>=mt)break;fe[we++]=224|Rt>>12,fe[we++]=128|Rt>>6&63,fe[we++]=128|63&Rt}else{if(we+3>=mt)break;fe[we++]=240|Rt>>18,fe[we++]=128|Rt>>12&63,fe[we++]=128|Rt>>6&63,fe[we++]=128|63&Rt}}fe[we]=0}(xe,Xe,we,fe),we}function Sx(xe){for(;xe.length>0;)xe.shift()(e)}function jf(xe,fe){Xe.set(xe,fe)}function oy(xe,fe="i8"){switch(fe.endsWith("*")&&(fe="*"),fe){case"i1":case"i8":return Xe[xe>>0];case"i16":return function Lhe(xe){return At.getInt16(xe,!0)}(2*(xe>>1));case"i32":case"i64":return Cx(4*(xe>>2));case"float":return function Nhe(xe){return At.getFloat32(xe,!0)}(4*(xe>>2));case"double":return function Fhe(xe){return At.getFloat64(xe,!0)}(8*(xe>>3));case"*":return xx(4*(xe>>2));default:Wn("invalid type for getValue: "+fe)}}e.locateFile?Qr(fr="soundswallower.web.wasm")||(fr=function h(xe){return e.locateFile?e.locateFile(xe,d):d+xe}(fr)):fr=new URL(O(3970),O.b).href;var Bf={varargs:void 0,get:function(){return Bf.varargs+=4,Cx(4*(Bf.varargs-4>>2))},getStr:function(xe){return Fe(xe)}};function Whe(xe){var fe=G.buffer;try{return G.grow(xe-fe.byteLength+65535>>>16),on(),1}catch{}}var Dx={};function Hf(){if(!Hf.strings){var fe={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:s||"./this.program"};for(var we in Dx)void 0===Dx[we]?delete fe[we]:fe[we]=Dx[we];var Oe=[];for(var we in fe)Oe.push(we+"="+fe[we]);Hf.strings=Oe}return Hf.strings}var afe=[null,[],[]];function sfe(xe,fe){var we=afe[xe];0===fe||10===fe?((1===xe?D:H)(Be(we,0)),we.length=0):we.push(fe)}var ry,cfe={d:function jhe(xe,fe,we){return Bf.varargs=we,0},g:function Bhe(xe,fe){},i:function Hhe(xe,fe,we){return Bf.varargs=we,0},r:function Yhe(xe,fe,we,Oe){},e:function zhe(xe,fe,we,Oe){Bf.varargs=Oe},f:function $he(xe,fe){},n:function Vhe(xe,fe,we,Oe,st,mt,Dt){return-52},o:function Zhe(xe,fe,we,Oe,st,mt){},j:function Ghe(){return Date.now()},m:function Uhe(){return 2147483648},l:function Xhe(xe){var zn,fe=ct.length,we=2147483648;if((xe>>>=0)>we)return!1;for(var st=1;st<=4;st*=2){var mt=fe*(1+.2/st);if(mt=Math.min(mt,xe+100663296),Whe(Math.min(we,(zn=Math.max(xe,mt))+(65536-zn%65536)%65536)))return!0}return!1},p:function Khe(xe,fe){var we=0;return Hf().forEach(function(Oe,st){var mt=fe+we;iy(4*(xe+4*st>>2),mt),function Qhe(xe,fe,we){for(var Oe=0;Oe>0]=xe.charCodeAt(Oe);we||(Xe[fe>>0]=0)}(Oe,mt),we+=Oe.length+1}),0},q:function qhe(xe,fe){var we=Hf();iy(4*(xe>>2),we.length);var Oe=0;return we.forEach(function(st){Oe+=st.length+1}),iy(4*(fe>>2),Oe),0},a:function tfe(xe,fe){!function efe(xe){(function dt(){return le})()||(e.onExit&&e.onExit(xe),pe=!0),l(xe,new Phe(xe))}(xe)},b:function ife(xe){return 52},h:function ofe(xe,fe,we,Oe){return 52},k:function rfe(xe,fe,we,Oe,st){return 70},c:function lfe(xe,fe,we,Oe){for(var st=0,mt=0;mt>2)),Rt=xx(4*(fe+4>>2));fe+=8;for(var zn=0;zn>2),st),0}},Vj=(function Rhe(){var xe={a:cfe};function fe(Oe,st){var mt=Oe.exports;return e.asm=mt,G=e.asm.s,on(),function _x(xe){ln.unshift(xe)}(e.asm.t),function Sn(xe){if(ft--,e.monitorRunDependencies&&e.monitorRunDependencies(ft),0==ft&&(null!==jt&&(clearInterval(jt),jt=null),ai)){var fe=ai;ai=null,fe()}}(),mt}if(function si(xe){ft++,e.monitorRunDependencies&&e.monitorRunDependencies(ft)}(),e.instantiateWasm)try{return e.instantiateWasm(xe,fe)}catch(Oe){H("Module.instantiateWasm callback failed with error: "+Oe),o(Oe)}(function Ohe(xe,fe,we,Oe){return xe||"function"!=typeof WebAssembly.instantiateStreaming||Qr(fe)||"function"!=typeof fetch?ny(fe,we,Oe):fetch(fe,{credentials:"same-origin"}).then(function(st){return WebAssembly.instantiateStreaming(st,we).then(Oe,function(Dt){return H("wasm streaming compile failed: "+Dt),H("falling back to ArrayBuffer instantiation"),ny(fe,we,Oe)})})})(oe,fr,xe,function we(Oe){fe(Oe.instance)}).catch(o)}(),e._fsg_set_states=function(){return(e._fsg_set_states=e.asm.u).apply(null,arguments)},e._cmd_ln_hash_iter=function(){return(e._cmd_ln_hash_iter=e.asm.v).apply(null,arguments)},e._hash_iter_key=function(){return(e._hash_iter_key=e.asm.w).apply(null,arguments)},e._set_mdef=function(){return(e._set_mdef=e.asm.x).apply(null,arguments)},e._set_tmat=function(){return(e._set_tmat=e.asm.y).apply(null,arguments)},e._load_gmm=function(){return(e._load_gmm=e.asm.z).apply(null,arguments)},e._spectrogram=function(){return(e._spectrogram=e.asm.A).apply(null,arguments)},e._config_int=function(){return(e._config_int=e.asm.B).apply(null,arguments)},e._config_str=function(){return(e._config_str=e.asm.D).apply(null,arguments)},e._config_float=function(){return(e._config_float=e.asm.E).apply(null,arguments)},e._config_free=function(){return(e._config_free=e.asm.F).apply(null,arguments)},e._ckd_free_2d=function(){return(e._ckd_free_2d=e.asm.G).apply(null,arguments)},e._acmod_reinit_feat=function(){return(e._acmod_reinit_feat=e.asm.H).apply(null,arguments)},e._s3file_free=function(){return(e._s3file_free=e.asm.I).apply(null,arguments)},e._bin_mdef_read_s3file=function(){return(e._bin_mdef_read_s3file=e.asm.J).apply(null,arguments)},e._malloc=function(){return(Vj=e._malloc=e.asm.K).apply(null,arguments)});function Zj(){function xe(){ry||(ry=!0,e.calledRun=!0,!pe&&(function ro(){Sx(ln)}(),i(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),function Ar(){if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)xe=e.postRun.shift(),Vo.unshift(xe);var xe;Sx(Vo)}()))}ft>0||(function Cn(){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)xe=e.preRun.shift(),sn.unshift(xe);var xe;Sx(sn)}(),ft>0)||(e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),xe()},1)):xe())}if(e._free=function(){return(e._free=e.asm.L).apply(null,arguments)},e._config_parse_json=function(){return(e._config_parse_json=e.asm.M).apply(null,arguments)},e._config_set_str=function(){return(e._config_set_str=e.asm.N).apply(null,arguments)},e._config_serialize_json=function(){return(e._config_serialize_json=e.asm.O).apply(null,arguments)},e._hash_table_iter_next=function(){return(e._hash_table_iter_next=e.asm.P).apply(null,arguments)},e._config_typeof=function(){return(e._config_typeof=e.asm.Q).apply(null,arguments)},e._config_set=function(){return(e._config_set=e.asm.R).apply(null,arguments)},e._config_set_int=function(){return(e._config_set_int=e.asm.S).apply(null,arguments)},e._config_set_float=function(){return(e._config_set_float=e.asm.T).apply(null,arguments)},e._decoder_init_cleanup=function(){return(e._decoder_init_cleanup=e.asm.U).apply(null,arguments)},e._decoder_init_fe=function(){return(e._decoder_init_fe=e.asm.V).apply(null,arguments)},e._decoder_init_feat_s3file=function(){return(e._decoder_init_feat_s3file=e.asm.W).apply(null,arguments)},e._decoder_init_acmod_pre=function(){return(e._decoder_init_acmod_pre=e.asm.X).apply(null,arguments)},e._decoder_init_acmod_post=function(){return(e._decoder_init_acmod_post=e.asm.Y).apply(null,arguments)},e._decoder_init_dict_s3file=function(){return(e._decoder_init_dict_s3file=e.asm.Z).apply(null,arguments)},e._decoder_set_fsg=function(){return(e._decoder_set_fsg=e.asm._).apply(null,arguments)},e._fsg_model_free=function(){return(e._fsg_model_free=e.asm.$).apply(null,arguments)},e._jsgf_get_rule=function(){return(e._jsgf_get_rule=e.asm.aa).apply(null,arguments)},e._jsgf_get_public_rule=function(){return(e._jsgf_get_public_rule=e.asm.ba).apply(null,arguments)},e._jsgf_build_fsg=function(){return(e._jsgf_build_fsg=e.asm.ca).apply(null,arguments)},e._jsgf_grammar_free=function(){return(e._jsgf_grammar_free=e.asm.da).apply(null,arguments)},e._decoder_init_grammar_s3file=function(){return(e._decoder_init_grammar_s3file=e.asm.ea).apply(null,arguments)},e._jsgf_parse_string=function(){return(e._jsgf_parse_string=e.asm.fa).apply(null,arguments)},e._decoder_create=function(){return(e._decoder_create=e.asm.ga).apply(null,arguments)},e._decoder_free=function(){return(e._decoder_free=e.asm.ha).apply(null,arguments)},e._decoder_config=function(){return(e._decoder_config=e.asm.ia).apply(null,arguments)},e._decoder_logmath=function(){return(e._decoder_logmath=e.asm.ja).apply(null,arguments)},e._decoder_fe=function(){return(e._decoder_fe=e.asm.ka).apply(null,arguments)},e._decoder_set_align_text=function(){return(e._decoder_set_align_text=e.asm.la).apply(null,arguments)},e._fsg_model_init=function(){return(e._fsg_model_init=e.asm.ma).apply(null,arguments)},e._fsg_model_word_add=function(){return(e._fsg_model_word_add=e.asm.na).apply(null,arguments)},e._fsg_model_trans_add=function(){return(e._fsg_model_trans_add=e.asm.oa).apply(null,arguments)},e._decoder_seg_iter=function(){return(e._decoder_seg_iter=e.asm.pa).apply(null,arguments)},e._seg_iter_next=function(){return(e._seg_iter_next=e.asm.qa).apply(null,arguments)},e._decoder_add_word=function(){return(e._decoder_add_word=e.asm.ra).apply(null,arguments)},e._decoder_lookup_word=function(){return(e._decoder_lookup_word=e.asm.sa).apply(null,arguments)},e._decoder_start_utt=function(){return(e._decoder_start_utt=e.asm.ta).apply(null,arguments)},e._decoder_process_float32=function(){return(e._decoder_process_float32=e.asm.ua).apply(null,arguments)},e._decoder_end_utt=function(){return(e._decoder_end_utt=e.asm.va).apply(null,arguments)},e._decoder_hyp=function(){return(e._decoder_hyp=e.asm.wa).apply(null,arguments)},e._seg_iter_word=function(){return(e._seg_iter_word=e.asm.xa).apply(null,arguments)},e._seg_iter_frames=function(){return(e._seg_iter_frames=e.asm.ya).apply(null,arguments)},e._decoder_result_json=function(){return(e._decoder_result_json=e.asm.za).apply(null,arguments)},e._fsg_model_null_trans_add=function(){return(e._fsg_model_null_trans_add=e.asm.Aa).apply(null,arguments)},e._logmath_log=function(){return(e._logmath_log=e.asm.Ba).apply(null,arguments)},e._endpointer_init=function(){return(e._endpointer_init=e.asm.Ca).apply(null,arguments)},e._vad_frame_length=function(){return(e._vad_frame_length=e.asm.Da).apply(null,arguments)},e._vad_frame_size=function(){return(e._vad_frame_size=e.asm.Ea).apply(null,arguments)},e._endpointer_vad=function(){return(e._endpointer_vad=e.asm.Fa).apply(null,arguments)},e._endpointer_end_stream=function(){return(e._endpointer_end_stream=e.asm.Ga).apply(null,arguments)},e._endpointer_process=function(){return(e._endpointer_process=e.asm.Ha).apply(null,arguments)},e._endpointer_in_speech=function(){return(e._endpointer_in_speech=e.asm.Ia).apply(null,arguments)},e._endpointer_speech_start=function(){return(e._endpointer_speech_start=e.asm.Ja).apply(null,arguments)},e._endpointer_speech_end=function(){return(e._endpointer_speech_end=e.asm.Ka).apply(null,arguments)},e._s3file_init=function(){return(e._s3file_init=e.asm.La).apply(null,arguments)},e._tmat_init_s3file=function(){return(e._tmat_init_s3file=e.asm.Ma).apply(null,arguments)},ai=function xe(){ry||Zj(),ry||(ai=xe)},e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();function Gj(xe){return Ex.apply(this,arguments)}function Ex(){return(Ex=(0,y.Z)(function*(xe){const fe=yield fetch(xe);if(fe.ok)return fe.json();throw new Error("Failed to fetch "+xe+" :"+fe.statusText)})).apply(this,arguments)}function Kr(xe){return Tx.apply(this,arguments)}function Tx(){return(Tx=(0,y.Z)(function*(xe){let fe;const we=yield fetch(xe);if(!we.ok)throw new Error("Failed to fetch "+xe+" :"+we.statusText);{const Dt=yield(yield we.blob()).arrayBuffer();fe=new Uint8Array(Dt)}const Oe=fe.length+1,st=e._malloc(Oe);if(0==st)throw new Error("Failed to allocate "+Oe+" bytes for "+xe);return jf(fe,st),Xe[st+Oe]=0,e._s3file_init(st,Oe-1)})).apply(this,arguments)}return Zj(),typeof e.modelBase>"u"&&(e.modelBase="model/"),typeof e.defaultModel>"u"&&(e.defaultModel="en-us"),e.get_model_path=function Ape(xe){return e.modelBase+xe},e.load_json=Gj,e.Decoder=class Ipe{constructor(fe){this.initialized=!1,void 0===fe&&(fe={}),null!==e.defaultModel&&void 0===fe.hmm&&(fe.hmm=e.get_model_path(e.defaultModel));const we=kr(JSON.stringify(fe)),Oe=e._config_parse_json(0,we);if(e._free(we),this.cdecoder=e._decoder_create(Oe),0==this.cdecoder)throw new Error("Failed to construct Decoder")}delete(){0!=this.cdecoder&&e._decoder_free(this.cdecoder),this.cdecoder=0}get_config_json(){const fe=e._decoder_config(this.cdecoder);return Fe(e._config_serialize_json(fe))}set_config(fe,we){const Oe=kr(fe),st=e._decoder_config(this.cdecoder),mt=e._config_typeof(st,Oe);if(0==mt)throw e._free(Oe),new ReferenceError(`Unknown configuration parameter ${fe}`);if(8&mt){const Dt=kr(we);e._config_set_str(st,Oe,Dt),e._free(Dt)}else if(4&mt)e._config_set_float(st,Oe,we);else{if(!(18&mt))return e._free(Oe),!1;e._config_set_int(st,Oe,we)}return e._free(Oe),!0}unset_config(fe){const we=kr(fe),Oe=e._decoder_config(this.cdecoder),st=e._config_typeof(Oe,we);if(0==st)throw e._free(we),new ReferenceError(`Unknown configuration parameter ${fe}`);e._config_set(Oe,we,0,st),e._free(we)}get_config(fe){const we=kr(fe),Oe=e._decoder_config(this.cdecoder),st=e._config_typeof(Oe,we);if(0==st)throw e._free(we),new ReferenceError(`Unknown configuration parameter ${fe}`);let mt;if(8&st){const Dt=e._config_str(Oe,we);mt=0==Dt?null:Fe(Dt)}else 4&st?mt=e._config_float(Oe,we):2&st?mt=e._config_int(Oe,we):16&st&&(mt=!!e._config_int(Oe,we));if(e._free(we),void 0===mt)throw new TypeError(`Unsupported type ${st} for parameter ${fe}`);return mt}has_config(fe){const we=kr(fe),Oe=e._decoder_config(this.cdecoder),st=0!=e._config_typeof(Oe,we);return e._free(we),st}initialize(){var fe=this;return(0,y.Z)(function*(){if(0==fe.cdecoder)throw new Error("Decoder was somehow not constructed (ps==0)");yield fe.init_featparams(),yield fe.init_cleanup(),yield fe.init_fe(),yield fe.init_feat(),fe.cacmod=yield fe.init_acmod(),yield fe.load_acmod_files(),yield fe.init_dict(),yield fe.init_grammar(),fe.initialized=!0})()}init_featparams(){var fe=this;return(0,y.Z)(function*(){const we=yield Gj(fe.get_config("featparams"));for(const Oe in we)fe.has_config(Oe)&&fe.set_config(Oe,we[Oe]);return we})()}init_cleanup(){var fe=this;return(0,y.Z)(function*(){if(e._decoder_init_cleanup(fe.cdecoder)<0)throw new Error("Failed to clean up decoder internals")})()}init_fe(){var fe=this;return(0,y.Z)(function*(){const we=e._decoder_init_fe(fe.cdecoder);if(0==we)throw new Error("Failed to initialize frontend");return we})()}init_feat(){var fe=this;return(0,y.Z)(function*(){let we;try{const Oe=yield Kr(fe.get_config("lda"));we=e._decoder_init_feat_s3file(fe.cdecoder,Oe)}catch{we=e._decoder_init_feat_s3file(fe.cdecoder,0)}if(0==we)throw new Error("Failed to initialize feature module");return we})()}init_acmod(){var fe=this;return(0,y.Z)(function*(){const we=e._decoder_init_acmod_pre(fe.cdecoder);if(0==we)throw new Error("Failed to initialize acoustic model");return we})()}load_acmod_files(){var fe=this;return(0,y.Z)(function*(){yield fe.load_mdef(),yield fe.load_tmat(fe.get_config("tmat"));const we=fe.get_config("mean"),Oe=fe.get_config("var"),st=fe.get_config("sendump"),mt=fe.get_config("mixw");if(yield fe.load_gmm(we,Oe,st,mt),e._decoder_init_acmod_post(fe.cdecoder)<0)throw new Error("Failed to initialize acoustic scoring")})()}load_mdef(){var fe=this;return(0,y.Z)(function*(){const we=yield Kr(fe.get_config("mdef"));if(0==we)throw new Error("Failed to read mdef from "+fe.get_config("mdef"));const Oe=e._bin_mdef_read_s3file(we,fe.get_config("cionly"));if(e._s3file_free(we),0==Oe)throw new Error("Failed to read mdef from "+fe.get_config("mdef"));return e._set_mdef(fe.cdecoder,Oe),Oe})()}load_tmat(fe){var we=this;return(0,y.Z)(function*(){const Oe=yield Kr(fe),st=e._decoder_logmath(we.cdecoder),mt=we.get_config("tmatfloor"),Dt=e._tmat_init_s3file(Oe,st,mt);if(e._s3file_free(Oe),0==Dt)throw new Error("Failed to read tmat");return e._set_tmat(we.cdecoder,Dt),Dt})()}load_gmm(fe,we,Oe,st){var mt=this;return(0,y.Z)(function*(){const Dt=yield Kr(fe),Rt=yield Kr(we);var zn,Zi;try{zn=yield Kr(Oe),Zi=0}catch{zn=0,Zi=yield Kr(st)}if(e._load_gmm(mt.cdecoder,Dt,Rt,Zi,zn)<0)throw new Error("Failed to load GMM parameters")})()}init_dict(){var fe=this;return(0,y.Z)(function*(){let we,Oe;try{we=yield Kr(fe.get_config("dict"))}catch{we=0}try{Oe=yield Kr(fe.get_config("fdict"))}catch{Oe=0}if(0==e._decoder_init_dict_s3file(fe.cdecoder,we,Oe))throw new Error("Failed to initialize dictionaries")})()}init_grammar(){var fe=this;return(0,y.Z)(function*(){let we=0,Oe=0;const st=fe.get_config("jsgf");null!=st&&(Oe=yield Kr(st));const mt=fe.get_config("fsg");if(null!=mt&&(we=yield Kr(mt)),(we||Oe)&&e._decoder_init_grammar_s3file(fe.cdecoder,we,Oe)<0)throw new Error("Failed to initialize grammar")})()}assert_initialized(){if(!this.initialized)throw new Error("Decoder not yet initialized")}reinitialize_audio(){var fe=this;return(0,y.Z)(function*(){fe.assert_initialized();const we=yield fe.init_fe(),Oe=yield fe.init_feat();if(e._acmod_reinit_feat(fe.cacmod,we,Oe)<0)throw new Error("Failed to reinitialize audio parameters")})()}start(){if(this.assert_initialized(),e._decoder_start_utt(this.cdecoder)<0)throw new Error("Failed to start utterance processing")}stop(){if(this.assert_initialized(),e._decoder_end_utt(this.cdecoder)<0)throw new Error("Failed to stop utterance processing")}process_audio(fe,we=!1,Oe=!1){this.assert_initialized();const st=fe.length*fe.BYTES_PER_ELEMENT,mt=e._malloc(st);jf(new Uint8Array(fe.buffer,fe.byteOffset,st),mt);const Rt=e._decoder_process_float32(this.cdecoder,mt,st/4,we,Oe);if(e._free(mt),Rt<0)throw new Error("Utterance processing failed");return Rt}get_text(){return this.assert_initialized(),Fe(e._decoder_hyp(this.cdecoder,0))}get_alignment({start:fe=0,align_level:we=0}={}){if(this.assert_initialized(),we>2)throw new Error(`Invalid align_level ${we}`);const st=Fe(e._decoder_result_json(this.cdecoder,fe,we));return JSON.parse(st)}lookup_word(fe){this.assert_initialized();const we=kr(fe),Oe=e._decoder_lookup_word(this.cdecoder,we);return e._free(we),0==Oe?null:Fe(Oe)}add_words(...fe){this.assert_initialized();for(let we=0;weDt>0?32767*Dt:32768*Dt),Oe=new Uint8Array(we.buffer),st=e._malloc(Oe.length);jf(Oe,st);const mt=e._endpointer_process(this.cep,st);if(e._free(st),0!=mt){const Dt=new Int16Array(Xe.buffer,mt,this.get_frame_size());return Float32Array.from(Dt,Rt=>Rt>0?Rt/32767:Rt/32768)}return null}end_stream(fe){const we=Int16Array.from(fe.map(Rt=>Rt>0?32767*Rt:32768*Rt)),Oe=new Uint8Array(we.buffer),st=e._malloc(Oe.length);jf(Oe,st);const mt=e._malloc(4),Dt=e._endpointer_end_stream(this.cep,st,we.length,mt);if(e._free(mt),e._free(st),0!=Dt){const Rt=oy(mt,"i32"),zn=new Int16Array(Xe.buffer,Dt,2*Rt);return Float32Array.from(zn,Zi=>Zi>0?Zi/32767:Zi/32768)}return null}},e.ready});var bb,Us=function(t){return t.strict="strict",t.moderate="moderate",t.loose="loose",t}(Us||{});let BN=(()=>{class t{constructor(){this.modelLoaded=new hi(!1),this.mode=Us.strict,this.beamParams={strict:{beam:1e-100,pbeam:1e-100,wbeam:1e-80},moderate:{beam:1e-200,pbeam:1e-200,wbeam:1e-160},loose:{beam:0,pbeam:0,wbeam:0}}}preload(){var e=this;return(0,y.Z)(function*(){const i=new bb.Decoder;return i.initialize().finally(()=>{e.modelLoaded.next(!0),i.delete()})})()}loadModule$(){return bi(void 0===bb?wne().then(e=>(bb=e,this.preload())):this.preload())}align$(e,i){const o=i.text_ids,r=i.lexicon,a=i.processed_ras;return new On(s=>{const l=new bb.Decoder({loglevel:"INFO",beam:this.beamParams[this.mode].beam,wbeam:this.beamParams[this.mode].wbeam,pbeam:this.beamParams[this.mode].pbeam,samprate:e.sampleRate});l.unset_config("dict");let c=!1;return l.initialize().then((0,y.Z)(function*(){l.add_words(...r),l.set_align_text(o),l.start();const u=e.getChannelData(0);let h=0;for(s.next({pos:h,length:u.length});h8192&&(g=8192),yield new Promise(b=>{setTimeout(()=>{l.process_audio(u.subarray(h,h+g),!1,!1),b()},0)}),h+=g,s.next({pos:h,length:u.length}),c)return void l.stop()}l.stop();const p=l.get_alignment();if(console.log(`hypseg is ${p}`),void 0===p.w||0==p.w.length)throw new Error("No alignment found");s.next({pos:h,length:u.length,hypseg:p,xml:a}),s.complete()})).catch(u=>{s.error(u)}).finally(()=>{l.delete()}),()=>{c=!0}})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ws=O(9884);const Hu=new WeakSet,HN=new WeakMap,d1=new WeakMap,YN=new WeakMap,h1=new WeakMap,yb=new WeakMap,zN=new WeakMap,f1=new WeakMap,p1=new WeakMap,g1=new WeakMap,$N={construct:()=>$N},VN=/^import(?:(?:[\s]+[\w]+|(?:[\s]+[\w]+[\s]*,)?[\s]*\{[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?(?:[\s]*,[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?)*[\s]*}|(?:[\s]+[\w]+[\s]*,)?[\s]*\*[\s]+as[\s]+[\w]+)[\s]+from)?(?:[\s]*)("([^"\\]|\\.)+"|'([^'\\]|\\.)+')(?:[\s]*);?/,ZN=(t,n)=>{const e=[];let i=t.replace(/^[\s]+/,""),o=i.match(VN);for(;null!==o;){const r=o[1].slice(1,-1),a=o[0].replace(/([\s]+)?;?$/,"").replace(r,new URL(r,n).toString());e.push(a),i=i.slice(o[0].length).replace(/^[\s]+/,""),o=i.match(VN)}return[e.join(";"),i]},GN=t=>{if(void 0!==t&&!Array.isArray(t))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},UN=t=>{if(!(t=>{try{new new Proxy(t,$N)}catch{return!1}return!0})(t))throw new TypeError("The given value for processorCtor should be a constructor.");if(null===t.prototype||"object"!=typeof t.prototype)throw new TypeError("The given value for processorCtor should have a prototype.")},Wr=(t,n)=>{const e=t.get(n);if(void 0===e)throw new Error("A value with the given key could not be found.");return e},_b=(t,n)=>{const e=Array.from(t).filter(n);if(e.length>1)throw Error("More than one element was found.");if(0===e.length)throw Error("No element was found.");const[i]=e;return t.delete(i),i},WN=(t,n,e,i)=>{const o=Wr(t,n),r=_b(o,a=>a[0]===e&&a[1]===i);return 0===o.size&&t.delete(n),r},wf=t=>Wr(zN,t),Yu=t=>{if(Hu.has(t))throw new Error("The AudioNode is already stored.");Hu.add(t),wf(t).forEach(n=>n(!0))},XN=t=>"port"in t,Cf=t=>{if(!Hu.has(t))throw new Error("The AudioNode is not stored.");Hu.delete(t),wf(t).forEach(n=>n(!1))},m1=(t,n)=>{!XN(t)&&n.every(e=>0===e.size)&&Cf(t)},Rne={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},bo=(t,n)=>t.context===n,vb=t=>{try{t.copyToChannel(new Float32Array(1),0,-1)}catch{return!1}return!0},Ea=()=>new DOMException("","IndexSizeError"),b1=t=>{var n;t.getChannelData=(n=t.getChannelData,e=>{try{return n.call(t,e)}catch(i){throw 12===i.code?Ea():i}})},Fne={numberOfChannels:1},zo=-34028234663852886e22,Io=-zo,ss=t=>Hu.has(t),jne={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},Oo=t=>Wr(HN,t),xf=t=>Wr(YN,t),y1=(t,n)=>{const{activeInputs:e}=Oo(t);e.forEach(o=>o.forEach(([r])=>{n.includes(t)||y1(r,[...n,t])}));const i=(t=>"playbackRate"in t)(t)?[t.playbackRate]:XN(t)?Array.from(t.parameters.values()):(t=>"frequency"in t&&"gain"in t)(t)?[t.Q,t.detune,t.frequency,t.gain]:(t=>"offset"in t)(t)?[t.offset]:(t=>!("frequency"in t)&&"gain"in t)(t)?[t.gain]:(t=>"detune"in t&&"frequency"in t)(t)?[t.detune,t.frequency]:(t=>"pan"in t)(t)?[t.pan]:[];for(const o of i){const r=xf(o);void 0!==r&&r.activeInputs.forEach(([a])=>y1(a,n))}ss(t)&&Cf(t)},Cb=t=>"context"in t,Sf=t=>Cb(t[0]),Jl=(t,n,e,i)=>{for(const o of t)if(e(o)){if(i)return!1;throw Error("The set contains at least one similar element.")}return t.add(n),!0},QN=(t,n,[e,i],o)=>{Jl(t,[n,e,i],r=>r[0]===n&&r[1]===e,o)},KN=(t,[n,e,i],o)=>{const r=t.get(n);void 0===r?t.set(n,new Set([[e,i]])):Jl(r,[e,i],a=>a[0]===e,o)},zu=t=>"inputs"in t,xb=(t,n,e,i)=>{if(zu(n)){const o=n.inputs[i];return t.connect(o,e,0),[o,e,0]}return t.connect(n,e,i),[n,e,i]},qN=(t,n,e)=>{for(const i of t)if(i[0]===n&&i[1]===e)return t.delete(i),i;return null},eF=(t,n)=>{if(!wf(t).delete(n))throw new Error("Missing the expected event listener.")},tF=(t,n,e)=>{const i=Wr(t,n),o=_b(i,r=>r[0]===e);return 0===i.size&&t.delete(n),o},Sb=(t,n,e,i)=>{zu(n)?t.disconnect(n.inputs[i],e,0):t.disconnect(n,e,i)},ri=t=>Wr(d1,t),Df=t=>Wr(h1,t),Ql=t=>f1.has(t),Db=t=>!Hu.has(t),nF=(t,n)=>new Promise(e=>{if(null!==n)e(!0);else{const i=t.createScriptProcessor(256,1,1),o=t.createGain(),r=t.createBuffer(1,2,44100),a=r.getChannelData(0);a[0]=1,a[1]=1;const s=t.createBufferSource();s.buffer=r,s.loop=!0,s.connect(i).connect(t.destination),s.connect(o),s.disconnect(o),i.onaudioprocess=l=>{const c=l.inputBuffer.getChannelData(0);Array.prototype.some.call(c,u=>1===u)?e(!0):e(!1),s.stop(),i.onaudioprocess=null,s.disconnect(i),i.disconnect(t.destination)},s.start()}}),_1=(t,n)=>{const e=new Map;for(const i of t)for(const o of i){const r=e.get(o);e.set(o,void 0===r?1:r+1)}e.forEach((i,o)=>n(o,i))},Eb=t=>"context"in t,v1=(t,n,e,i,o)=>{const[r,a]=((t,n,e,i)=>{const{activeInputs:o,passiveInputs:r}=Oo(n),a=qN(o[i],t,e);return null===a?[WN(r,t,e,i)[2],!1]:[a[2],!0]})(t,e,i,o);if(null!==r&&(eF(t,r),a&&!n&&!Ql(t)&&Sb(ri(t),ri(e),i,o)),ss(e)){const{activeInputs:s}=Oo(e);m1(e,s)}},w1=(t,n,e,i)=>{const[o,r]=((t,n,e)=>{const{activeInputs:i,passiveInputs:o}=xf(n),r=qN(i,t,e);return null===r?[tF(o,t,e)[1],!1]:[r[2],!0]})(t,e,i);null!==o&&(eF(t,o),r&&!n&&!Ql(t)&&ri(t).disconnect(Df(e),i))};class iF{constructor(n){this._map=new Map(n)}get size(){return this._map.size}entries(){return this._map.entries()}forEach(n,e=null){return this._map.forEach((i,o)=>n.call(e,i,o,this))}get(n){return this._map.get(n)}has(n){return this._map.has(n)}keys(){return this._map.keys()}values(){return this._map.values()}}function Tb(t,n,e,i,o){if("function"==typeof t.copyFromChannel)0===n[e].byteLength&&(n[e]=new Float32Array(128)),t.copyFromChannel(n[e],i,o);else{const r=t.getChannelData(i);if(0===n[e].byteLength)n[e]=r.slice(o,o+128);else{const a=new Float32Array(r.buffer,o*Float32Array.BYTES_PER_ELEMENT,128);n[e].set(a)}}}const oF=(t,n,e,i,o)=>{"function"==typeof t.copyToChannel?0!==n[e].byteLength&&t.copyToChannel(n[e],i,o):0!==n[e].byteLength&&t.getChannelData(i).set(n[e],o)},Mb=(t,n)=>{const e=[];for(let i=0;iD+H,0),d=0===u?null:i.createBuffer(u,l,i.sampleRate);if(void 0===a)throw new Error("Missing the processor constructor.");const h=Oo(n),p=yield((t,n)=>{const e=Wr(g1,t),i=ri(n);return Wr(e,i)})(i,n),g=Mb(o.numberOfInputs,o.channelCount),b=Mb(o.numberOfOutputs,r),T=Array.from(n.parameters.keys()).reduce((D,H)=>({...D,[H]:new Float32Array(128)}),{});for(let D=0;D0&&null!==e)for(let H=0;H{Tb(e,T,H,c+oe,D)});for(let H=0;H0===h.activeInputs[G].size?[]:le),oe=s(D/i.sampleRate,i.sampleRate,()=>p.process(H,b,T));if(null!==d)for(let le=0,G=0;le{const{port1:n,port2:e}=new MessageChannel;return new Promise(i=>{const o=()=>{e.onmessage=null,n.close(),e.close(),i()};e.onmessage=()=>o();try{n.postMessage(t,[t])}catch{}finally{o()}})},jie={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",delayTime:0,maxDelayTime:1},Ab=(t,n,e)=>{const i=n[e];if(void 0===i)throw t();return i},Gie={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},eoe={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},Li=()=>new DOMException("","InvalidStateError"),kb=()=>new DOMException("","InvalidAccessError"),hoe={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},aF=(t,n,e,i,o,r,a,s,l,c,u)=>{const d=c.length;let h=s;for(let p=0;p{const n=new Uint32Array([1179011410,40,1163280727,544501094,16,131073,44100,176400,1048580,1635017060,4,0]);try{const e=t.decodeAudioData(n.buffer,()=>{});return void 0!==e&&(e.catch(()=>{}),!0)}catch{}return!1},di=(t,n,e)=>{const i=n[e];void 0!==i&&i!==t[e]&&(t[e]=i)},Vi=(t,n)=>{di(t,n,"channelCount"),di(t,n,"channelCountMode"),di(t,n,"channelInterpretation")},sF=t=>"function"==typeof t.getFloatTimeDomainData,vi=(t,n,e)=>{const i=n[e];void 0!==i&&i!==t[e].value&&(t[e].value=i)},C1=t=>{var n;t.start=(n=t.start,(e=0,i=0,o)=>{if("number"==typeof o&&o<0||i<0||e<0)throw new RangeError("The parameters can't be negative.");n.call(t,e,i,o)})},x1=t=>{var n;t.stop=(n=t.stop,(e=0)=>{if(e<0)throw new RangeError("The parameter can't be negative.");n.call(t,e)})},lF=(t,n)=>null===t?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(t*n))))),Woe=function(){var t=(0,y.Z)(function*(n,e){const i=yield(t=>new Promise((n,e)=>{const{port1:i,port2:o}=new MessageChannel;i.onmessage=({data:r})=>{i.close(),o.close(),n(r)},i.onmessageerror=({data:r})=>{i.close(),o.close(),e(r)},o.postMessage(t)}))(e);return new n(i)});return function(e,i){return t.apply(this,arguments)}}(),cF=(t,n)=>{const e=t.createBiquadFilter();return Vi(e,n),vi(e,n,"Q"),vi(e,n,"detune"),vi(e,n,"frequency"),vi(e,n,"gain"),di(e,n,"type"),e},Ef=(t,n)=>{const e=t.createChannelSplitter(n.numberOfOutputs);return Vi(e,n),(t=>{const n=t.numberOfOutputs;Object.defineProperty(t,"channelCount",{get:()=>n,set:e=>{if(e!==n)throw Li()}}),Object.defineProperty(t,"channelCountMode",{get:()=>"explicit",set:e=>{if("explicit"!==e)throw Li()}}),Object.defineProperty(t,"channelInterpretation",{get:()=>"discrete",set:e=>{if("discrete"!==e)throw Li()}})})(e),e},$u=(t,n)=>(t.connect=n.connect.bind(n),t.disconnect=n.disconnect.bind(n),t),uF=(t,n)=>{const e=t.createDelay(n.maxDelayTime);return Vi(e,n),vi(e,n,"delayTime"),e},$o=(t,n)=>{const e=t.createGain();return Vi(e,n),vi(e,n,"gain"),e};function ore(t,n){const e=n[0]*n[0]+n[1]*n[1];return[(t[0]*n[0]+t[1]*n[1])/e,(t[1]*n[0]-t[0]*n[1])/e]}function rre(t,n){return[t[0]*n[0]-t[1]*n[1],t[0]*n[1]+t[1]*n[0]]}function dF(t,n){let e=[0,0];for(let i=t.length-1;i>=0;i-=1)e=rre(e,n),e[0]+=t[i];return e}const Tf=(t,n,e,i)=>t.createScriptProcessor(n,e,i),yo=()=>new DOMException("","NotSupportedError"),Cre={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:440,periodicWave:void 0,type:"sine"},Dre={channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",coneInnerAngle:360,coneOuterAngle:360,coneOuterGain:0,distanceModel:"inverse",maxDistance:1e4,orientationX:1,orientationY:0,orientationZ:0,panningModel:"equalpower",positionX:0,positionY:0,positionZ:0,refDistance:1,rolloffFactor:1},Mre={disableNormalization:!1},Lre={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},hF=()=>new DOMException("","UnknownError"),$re={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",curve:null,oversample:"none"},fF=(t,n,e)=>void 0===t.copyFromChannel?t.getChannelData(e)[0]:(t.copyFromChannel(n,e),n[0]),pF=t=>{if(null===t)return!1;const n=t.length;return n%2!=0?0!==t[Math.floor(n/2)]:t[n/2-1]+t[n/2]!==0},Mf=(t,n,e,i)=>{let o=t;for(;!o.hasOwnProperty(n);)o=Object.getPrototypeOf(o);const{get:r,set:a}=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(t,n,{get:e(r),set:i(a)})},gF=(t,n,e)=>{try{t.setValueAtTime(n,e)}catch(i){if(9!==i.code)throw i;gF(t,n,e+1e-7)}},S1=t=>{const n=t.createOscillator();try{n.start(-1)}catch(e){return e instanceof RangeError}return!1},mF=t=>{const n=t.createBuffer(1,1,44100),e=t.createBufferSource();e.buffer=n,e.start(),e.stop();try{return e.stop(),!0}catch{return!1}},D1=t=>{const n=t.createOscillator();try{n.stop(-1)}catch(e){return e instanceof RangeError}return!1},bF=(t,n)=>{const e=n.createGain();t.connect(e);const i=(o=t.disconnect,()=>{o.call(t,e),t.removeEventListener("ended",i)});var o;t.addEventListener("ended",i),$u(t,e),t.stop=(o=>{let r=!1;return(a=0)=>{if(r)try{o.call(t,a)}catch{e.gain.setValueAtTime(0,a)}else o.call(t,a),r=!0}})(t.stop)},Vu=(t,n)=>e=>{const i={value:t};return Object.defineProperties(e,{currentTarget:i,target:i}),"function"==typeof n?n.call(t,e):n.handleEvent.call(t,e)},rae=(t=>(n,e,[i,o,r],a)=>{t(n[o],[e,i,r],s=>s[0]===e&&s[1]===i,a)})(Jl),aae=(t=>(n,e,[i,o,r],a)=>{const s=n.get(i);void 0===s?n.set(i,new Set([[o,e,r]])):t(s,[o,e,r],l=>l[0]===o&&l[1]===e,a)})(Jl),sae=(t=>(n,e,i,o)=>t(n[o],r=>r[0]===e&&r[1]===i))(_b),yF=new WeakMap,lae=(t=>n=>{var e;return null!==(e=t.get(n))&&void 0!==e?e:0})(yF),dr=((t,n)=>(e,i)=>{const o=n.get(e);if(void 0!==o)return o;const r=t.get(e);if(void 0!==r)return r;try{const a=i();return a instanceof Promise?(t.set(e,a),a.catch(()=>!1).then(s=>(t.delete(e),n.set(e,s),s))):(n.set(e,a),a)}catch{return n.set(e,!1),!1}})(new Map,new WeakMap),Xr=typeof window>"u"?null:window,_F=((t,n)=>(e,i)=>{const o=e.createAnalyser();if(Vi(o,i),!(i.maxDecibels>i.minDecibels))throw n();return di(o,i,"fftSize"),di(o,i,"maxDecibels"),di(o,i,"minDecibels"),di(o,i,"smoothingTimeConstant"),t(sF,()=>sF(o))||(t=>{t.getFloatTimeDomainData=n=>{const e=new Uint8Array(n.length);t.getByteTimeDomainData(e);const i=Math.max(e.length,t.fftSize);for(let o=0;on=>{const e=t(n);if(null===e.renderer)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return e.renderer})(Oo),oo=((t,n,e)=>function(){var i=(0,y.Z)(function*(o,r,a){const s=t(o);yield Promise.all(s.activeInputs.map((l,c)=>Array.from(l).map(function(){var u=(0,y.Z)(function*([d,h]){const g=yield n(d).render(d,r),b=o.context.destination;!e(d)&&(o!==b||!e(o))&&g.connect(a,h,c)});return function(d){return u.apply(this,arguments)}}())).reduce((l,c)=>[...l,...c],[]))});return function(o,r,a){return i.apply(this,arguments)}}())(Oo,E1,Ql),cae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,fftSize:l.fftSize,maxDecibels:l.maxDecibels,minDecibels:l.minDecibels,smoothingTimeConstant:l.smoothingTimeConstant})),i.set(s,l),yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(_F,ri,oo),ti=(t=>n=>{const e=t.get(n);if(void 0===e)throw Li();return e})(yb),Ji=(t=>null===t?null:t.hasOwnProperty("OfflineAudioContext")?t.OfflineAudioContext:t.hasOwnProperty("webkitOfflineAudioContext")?t.webkitOfflineAudioContext:null)(Xr),Yn=(t=>n=>null!==t&&n instanceof t)(Ji),vF=new WeakMap,wF=(t=>class{constructor(e){this._nativeEventTarget=e,this._listeners=new WeakMap}addEventListener(e,i,o){if(null!==i){let r=this._listeners.get(i);void 0===r&&(r=t(this,i),"function"==typeof i&&this._listeners.set(i,r)),this._nativeEventTarget.addEventListener(e,r,o)}}dispatchEvent(e){return this._nativeEventTarget.dispatchEvent(e)}removeEventListener(e,i,o){const r=null===i?void 0:this._listeners.get(i);this._nativeEventTarget.removeEventListener(e,void 0===r?null:r,o)}})(Vu),ls=(t=>null===t?null:t.hasOwnProperty("AudioContext")?t.AudioContext:t.hasOwnProperty("webkitAudioContext")?t.webkitAudioContext:null)(Xr),T1=(t=>n=>null!==t&&n instanceof t)(ls),M1=(t=>n=>null!==t&&"function"==typeof t.AudioNode&&n instanceof t.AudioNode)(Xr),CF=(t=>n=>null!==t&&"function"==typeof t.AudioParam&&n instanceof t.AudioParam)(Xr),Zu=(t=>null===t?null:t.hasOwnProperty("AudioWorkletNode")?t.AudioWorkletNode:null)(Xr),Ii=((t,n,e,i,o,r,a,s,l,c,u,d,h,p,g,b)=>class extends c{constructor(D,H,oe,le){super(oe),this._context=D,this._nativeAudioNode=oe;const G=u(D);d(G)&&!0!==e(nF,()=>nF(G,b))&&(t=>{const n=new Map;var e;t.connect=(e=t.connect.bind(t),(i,o=0,r=0)=>{const a=Eb(i)?e(i,o,r):e(i,o),s=n.get(i);return void 0===s?n.set(i,[{input:r,output:o}]):s.every(l=>l.input!==r||l.output!==o)&&s.push({input:r,output:o}),a}),t.disconnect=(e=>(i,o,r)=>{if(e.apply(t),void 0===i)n.clear();else if("number"==typeof i)for(const[a,s]of n){const l=s.filter(c=>c.output!==i);0===l.length?n.delete(a):n.set(a,l)}else if(n.has(i))if(void 0===o)n.delete(i);else{const a=n.get(i);if(void 0!==a){const s=a.filter(l=>l.output!==o&&(l.input!==r||void 0===r));0===s.length?n.delete(i):n.set(i,s)}}for(const[a,s]of n)s.forEach(l=>{Eb(a)?t.connect(a,l.output,l.input):t.connect(a,l.output)})})(t.disconnect)})(oe),d1.set(this,oe),zN.set(this,new Set),"closed"!==D.state&&H&&Yu(this),t(this,le,oe)}get channelCount(){return this._nativeAudioNode.channelCount}set channelCount(D){this._nativeAudioNode.channelCount=D}get channelCountMode(){return this._nativeAudioNode.channelCountMode}set channelCountMode(D){this._nativeAudioNode.channelCountMode=D}get channelInterpretation(){return this._nativeAudioNode.channelInterpretation}set channelInterpretation(D){this._nativeAudioNode.channelInterpretation=D}get context(){return this._context}get numberOfInputs(){return this._nativeAudioNode.numberOfInputs}get numberOfOutputs(){return this._nativeAudioNode.numberOfOutputs}connect(D,H=0,oe=0){if(H<0||H>=this._nativeAudioNode.numberOfOutputs)throw o();const le=u(this._context),G=g(le);if(h(D)||p(D))throw r();if(Cb(D)){const be=ri(D);try{const Fe=xb(this._nativeAudioNode,be,H,oe),Qe=Db(this);(G||Qe)&&this._nativeAudioNode.disconnect(...Fe),"closed"!==this.context.state&&!Qe&&Db(D)&&Yu(D)}catch(Fe){throw 12===Fe.code?r():Fe}if(n(this,D,H,oe,G)){const Fe=l([this],D);_1(Fe,i(G))}return D}const pe=Df(D);if("playbackRate"===pe.name&&1024===pe.maxValue)throw a();try{this._nativeAudioNode.connect(pe,H),(G||Db(this))&&this._nativeAudioNode.disconnect(pe,H)}catch(be){throw 12===be.code?r():be}if(((t,n,e,i)=>{const{activeInputs:o,passiveInputs:r}=xf(n),{outputs:a}=Oo(t),s=wf(t),l=c=>{const u=ri(t),d=Df(n);if(c){const h=tF(r,t,e);QN(o,t,h,!1),!i&&!Ql(t)&&u.connect(d,e)}else{const h=((t,n,e)=>_b(t,i=>i[0]===n&&i[1]===e))(o,t,e);KN(r,h,!1),!i&&!Ql(t)&&u.disconnect(d,e)}};return!!Jl(a,[n,e],c=>c[0]===n&&c[1]===e,!0)&&(s.add(l),ss(t)?QN(o,t,[e,l],!0):KN(r,[t,e,l],!0),!0)})(this,D,H,G)){const be=l([this],D);_1(be,i(G))}}disconnect(D,H,oe){let le;const G=u(this._context),pe=g(G);if(void 0===D)le=((t,n)=>{const e=Oo(t),i=[];for(const o of e.outputs)Sf(o)?v1(t,n,...o):w1(t,n,...o),i.push(o[0]);return e.outputs.clear(),i})(this,pe);else if("number"==typeof D){if(D<0||D>=this.numberOfOutputs)throw o();le=((t,n,e)=>{const i=Oo(t),o=[];for(const r of i.outputs)r[1]===e&&(Sf(r)?v1(t,n,...r):w1(t,n,...r),o.push(r[0]),i.outputs.delete(r));return o})(this,pe,D)}else{if(void 0!==H&&(H<0||H>=this.numberOfOutputs)||Cb(D)&&void 0!==oe&&(oe<0||oe>=D.numberOfInputs))throw o();if(le=((t,n,e,i,o)=>{const r=Oo(t);return Array.from(r.outputs).filter(a=>!(a[0]!==e||void 0!==i&&a[1]!==i||void 0!==o&&a[2]!==o)).map(a=>(Sf(a)?v1(t,n,...a):w1(t,n,...a),r.outputs.delete(a),a[0]))})(this,pe,D,H,oe),0===le.length)throw r()}for(const _e of le){const be=l([this],_e);_1(be,s)}}})((t=>(n,e,i)=>{const o=[];for(let r=0;r{const p=new WeakMap;return(g,b,T,D,H)=>{const{activeInputs:oe,passiveInputs:le}=r(b),{outputs:G}=r(g),pe=s(g),_e=be=>{const Be=l(b),Fe=l(g);if(be){const Qe=WN(le,g,T,D);t(oe,g,Qe,!1),!H&&!d(g)&&e(Fe,Be,T,D),h(b)&&Yu(b)}else{const Qe=i(oe,g,T,D);n(le,D,Qe,!1),!H&&!d(g)&&o(Fe,Be,T,D);const Re=a(b);if(0===Re)u(b)&&m1(b,oe);else{const Xe=p.get(b);void 0!==Xe&&clearTimeout(Xe),p.set(b,setTimeout(()=>{u(b)&&m1(b,oe)},1e3*Re))}}};return!!c(G,[b,T,D],be=>be[0]===b&&be[1]===T&&be[2]===D,!0)&&(pe.add(_e),u(g)?t(oe,g,[T,D,_e],!0):n(le,D,[g,T,_e],!0),!0)}})(rae,aae,xb,sae,Sb,Oo,lae,wf,ri,Jl,ss,Ql,Db),dr,((t,n,e,i,o,r)=>a=>(s,l)=>{const c=t.get(s);if(void 0===c){if(!a&&r(s)){const u=i(s),{outputs:d}=e(s);for(const h of d)if(Sf(h)){const p=i(h[0]);n(u,p,h[1],h[2])}else{const p=o(h[0]);u.disconnect(p,h[1])}}t.set(s,l)}else t.set(s,c+l)})(f1,Sb,Oo,ri,Df,ss),Ea,kb,yo,((t,n,e,i,o,r,a,s)=>(l,c)=>{const u=n.get(l);if(void 0===u)throw new Error("Missing the expected cycle count.");const d=r(l.context),h=s(d);if(u===c){if(n.delete(l),!h&&a(l)){const p=i(l),{outputs:g}=e(l);for(const b of g)if(Sf(b)){const T=i(b[0]);t(p,T,b[1],b[2])}else{const T=o(b[0]);p.connect(T,b[1])}}}else n.set(l,u-c)})(xb,f1,Oo,ri,Df,ti,ss,Yn),((t,n,e)=>function i(o,r){const a=Cb(r)?r:e(t,r);if((t=>"delayTime"in t)(a))return[];if(o[0]===a)return[o];if(o.includes(a))return[];const{outputs:s}=n(a);return Array.from(s).map(l=>i([...o,a],l[0])).reduce((l,c)=>l.concat(c),[])})(vF,Oo,Wr),wF,ti,T1,M1,CF,Yn,Zu),uae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=o(s),u={...Rne,...l},d=i(c,u);super(s,!1,d,r(c)?n():null),this._nativeAnalyserNode=d}get fftSize(){return this._nativeAnalyserNode.fftSize}set fftSize(s){this._nativeAnalyserNode.fftSize=s}get frequencyBinCount(){return this._nativeAnalyserNode.frequencyBinCount}get maxDecibels(){return this._nativeAnalyserNode.maxDecibels}set maxDecibels(s){const l=this._nativeAnalyserNode.maxDecibels;if(this._nativeAnalyserNode.maxDecibels=s,!(s>this._nativeAnalyserNode.minDecibels))throw this._nativeAnalyserNode.maxDecibels=l,e()}get minDecibels(){return this._nativeAnalyserNode.minDecibels}set minDecibels(s){const l=this._nativeAnalyserNode.minDecibels;if(this._nativeAnalyserNode.minDecibels=s,!(this._nativeAnalyserNode.maxDecibels>s))throw this._nativeAnalyserNode.minDecibels=l,e()}get smoothingTimeConstant(){return this._nativeAnalyserNode.smoothingTimeConstant}set smoothingTimeConstant(s){this._nativeAnalyserNode.smoothingTimeConstant=s}getByteFrequencyData(s){this._nativeAnalyserNode.getByteFrequencyData(s)}getByteTimeDomainData(s){this._nativeAnalyserNode.getByteTimeDomainData(s)}getFloatFrequencyData(s){this._nativeAnalyserNode.getFloatFrequencyData(s)}getFloatTimeDomainData(s){this._nativeAnalyserNode.getFloatTimeDomainData(s)}})(Ii,cae,Ea,_F,ti,Yn),A1=new WeakSet,xF=(t=>null===t?null:t.hasOwnProperty("AudioBuffer")?t.AudioBuffer:null)(Xr),SF=(t=>n=>(t[0]=n,t[0]))(new Uint32Array(1)),k1=((t,n)=>e=>{e.copyFromChannel=(i,o,r=0)=>{const a=t(r),s=t(o);if(s>=e.numberOfChannels)throw n();const l=e.length,c=e.getChannelData(s),u=i.length;for(let d=a<0?-a:0;d+a{const a=t(r),s=t(o);if(s>=e.numberOfChannels)throw n();const l=e.length,c=e.getChannelData(s),u=i.length;for(let d=a<0?-a:0;d+an=>{var e;n.copyFromChannel=(e=n.copyFromChannel,(i,o,r=0)=>{const a=t(r),s=t(o);if(a(i,o,r=0)=>{const a=t(r),s=t(o);if(a{let l=null;return class Qj{constructor(u){if(null===o)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:d,numberOfChannels:h,sampleRate:p}={...Fne,...u};null===l&&(l=new o(1,1,44100));const g=null!==i&&n(r,r)?new i({length:d,numberOfChannels:h,sampleRate:p}):l.createBuffer(h,d,p);if(0===g.numberOfChannels)throw e();return"function"!=typeof g.copyFromChannel?(a(g),b1(g)):n(vb,()=>vb(g))||s(g),t.add(g),g}static[Symbol.hasInstance](u){return null!==u&&"object"==typeof u&&Object.getPrototypeOf(u)===Qj.prototype||t.has(u)}}})(A1,dr,yo,xF,Ji,(t=>()=>{if(null===t)return!1;try{new t({length:1,sampleRate:44100})}catch{return!1}return!0})(xF),k1,I1),Ib=(t=>(n,e)=>{const i=t(n,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});e.connect(i).connect(n.destination);const o=()=>{e.removeEventListener("ended",o),e.disconnect(i),i.disconnect()};e.addEventListener("ended",o)})($o),DF=((t,n,e)=>function(){var i=(0,y.Z)(function*(o,r,a){const s=n(o);yield Promise.all(Array.from(s.activeInputs).map(function(){var l=(0,y.Z)(function*([c,u]){const h=yield t(c).render(c,r);e(c)||h.connect(a,u)});return function(c){return l.apply(this,arguments)}}()))});return function(o,r,a){return i.apply(this,arguments)}}())(E1,xf,Ql),Ta=(t=>(n,e,i)=>t(e,n,i))(DF),Gu=((t,n,e,i,o,r,a,s,l,c,u)=>(d,h)=>{const p=d.createBufferSource();return Vi(p,h),vi(p,h,"playbackRate"),di(p,h,"buffer"),di(p,h,"loop"),di(p,h,"loopEnd"),di(p,h,"loopStart"),n(e,()=>e(d))||(t=>{t.start=(n=>{let e=!1;return(i=0,o=0,r)=>{if(e)throw Li();n.call(t,i,o,r),e=!0}})(t.start)})(p),n(i,()=>i(d))||(t=>{var n;t.start=(n=t.start,(e=0,i=0,o)=>{const r=t.buffer,a=null===r?i:Math.min(r.duration,i);null!==r&&a>r.duration-.5/t.context.sampleRate?n.call(t,e,0,0):n.call(t,e,a,o)})})(p),n(o,()=>o(d))||c(p,d),n(r,()=>r(d))||C1(p),n(a,()=>a(d))||u(p,d),n(s,()=>s(d))||x1(p),t(d,p),p})(Ib,dr,t=>{const n=t.createBufferSource();n.start();try{n.start()}catch{return!0}return!1},t=>{const n=t.createBufferSource(),e=t.createBuffer(1,1,44100);n.buffer=e;try{n.start(0,1)}catch{return!1}return!0},t=>{const n=t.createBufferSource();n.start();try{n.stop()}catch{return!1}return!0},S1,mF,D1,0,(t=>(n,e)=>{const i=e.createBuffer(1,1,44100);null===n.buffer&&(n.buffer=i),t(n,"buffer",o=>()=>{const r=o.call(n);return r===i?null:r},o=>r=>o.call(n,null===r?i:r))})(Mf),bF),Ma=((t,n)=>(e,i,o)=>(t(i).replay(o),n(i,e,o)))((t=>n=>{const e=t(n);if(null===e.renderer)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return e.renderer})(xf),DF),hae=((t,n,e,i,o)=>()=>{const r=new WeakMap;let a=null,s=null;const l=function(){var c=(0,y.Z)(function*(u,d){let h=e(u);const p=bo(h,d);return p||(h=n(d,{buffer:h.buffer,channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,loop:h.loop,loopEnd:h.loopEnd,loopStart:h.loopStart,playbackRate:h.playbackRate.value}),null!==a&&h.start(...a),null!==s&&h.stop(s)),r.set(d,h),p?yield t(d,u.playbackRate,h.playbackRate):yield i(d,u.playbackRate,h.playbackRate),yield o(u,d,h),h});return function(d,h){return c.apply(this,arguments)}}();return{set start(c){a=c},set stop(c){s=c},render(c,u){const d=r.get(u);return void 0!==d?Promise.resolve(d):l(c,u)}}})(Ta,Gu,ri,Ma,oo),Jr=((t,n,e,i,o,r,a,s,l,c,u,d,h)=>(p,g,b,T=null,D=null)=>{const H=b.value,oe=new Ws.AutomationEventList(H),le=g?(t=>({replay(n){for(const e of t)if("exponentialRampToValue"===e.type){const{endTime:i,value:o}=e;n.exponentialRampToValueAtTime(o,i)}else if("linearRampToValue"===e.type){const{endTime:i,value:o}=e;n.linearRampToValueAtTime(o,i)}else if("setTarget"===e.type){const{startTime:i,target:o,timeConstant:r}=e;n.setTargetAtTime(o,i,r)}else if("setValue"===e.type){const{startTime:i,value:o}=e;n.setValueAtTime(o,i)}else{if("setValueCurve"!==e.type)throw new Error("Can't apply an unknown automation.");{const{duration:i,startTime:o,values:r}=e;n.setValueCurveAtTime(r,o,i)}}}}))(oe):null,G={get defaultValue(){return H},get maxValue(){return null===T?b.maxValue:T},get minValue(){return null===D?b.minValue:D},get value(){return b.value},set value(pe){b.value=pe,G.setValueAtTime(pe,p.context.currentTime)},cancelAndHoldAtTime(pe){if("function"==typeof b.cancelAndHoldAtTime)null===le&&oe.flush(p.context.currentTime),oe.add(o(pe)),b.cancelAndHoldAtTime(pe);else{const _e=Array.from(oe).pop();null===le&&oe.flush(p.context.currentTime),oe.add(o(pe));const be=Array.from(oe).pop();b.cancelScheduledValues(pe),_e!==be&&void 0!==be&&("exponentialRampToValue"===be.type?b.exponentialRampToValueAtTime(be.value,be.endTime):"linearRampToValue"===be.type?b.linearRampToValueAtTime(be.value,be.endTime):"setValue"===be.type?b.setValueAtTime(be.value,be.startTime):"setValueCurve"===be.type&&b.setValueCurveAtTime(be.values,be.startTime,be.duration))}return G},cancelScheduledValues:pe=>(null===le&&oe.flush(p.context.currentTime),oe.add(r(pe)),b.cancelScheduledValues(pe),G),exponentialRampToValueAtTime(pe,_e){if(0===pe)throw new RangeError;if(!Number.isFinite(_e)||_e<0)throw new RangeError;const be=p.context.currentTime;return null===le&&oe.flush(be),0===Array.from(oe).length&&(oe.add(c(H,be)),b.setValueAtTime(H,be)),oe.add(a(pe,_e)),b.exponentialRampToValueAtTime(pe,_e),G},linearRampToValueAtTime(pe,_e){const be=p.context.currentTime;return null===le&&oe.flush(be),0===Array.from(oe).length&&(oe.add(c(H,be)),b.setValueAtTime(H,be)),oe.add(s(pe,_e)),b.linearRampToValueAtTime(pe,_e),G},setTargetAtTime:(pe,_e,be)=>(null===le&&oe.flush(p.context.currentTime),oe.add(l(pe,_e,be)),b.setTargetAtTime(pe,_e,be),G),setValueAtTime:(pe,_e)=>(null===le&&oe.flush(p.context.currentTime),oe.add(c(pe,_e)),b.setValueAtTime(pe,_e),G),setValueCurveAtTime(pe,_e,be){const Be=pe instanceof Float32Array?pe:new Float32Array(pe);if(null!==d&&"webkitAudioContext"===d.name){const Fe=_e+be,Qe=p.context.sampleRate,Re=Math.ceil(_e*Qe),Xe=Math.floor(Fe*Qe),ct=Xe-Re,ut=new Float32Array(ct);for(let Ye=0;Ye(n,e)=>{t.set(n,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:e})})(YN),vF,h1,0,Ws.createCancelAndHoldAutomationEvent,Ws.createCancelScheduledValuesAutomationEvent,Ws.createExponentialRampToValueAutomationEvent,Ws.createLinearRampToValueAutomationEvent,Ws.createSetTargetAutomationEvent,Ws.createSetValueAutomationEvent,Ws.createSetValueCurveAutomationEvent,ls,gF),fae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h={...jne,...u},p=o(d,h),g=a(d),b=g?n():null;super(c,!1,p,b),this._audioBufferSourceNodeRenderer=b,this._isBufferNullified=!1,this._isBufferSet=null!==h.buffer,this._nativeAudioBufferSourceNode=p,this._onended=null,this._playbackRate=e(this,g,p.playbackRate,Io,zo)}get buffer(){return this._isBufferNullified?null:this._nativeAudioBufferSourceNode.buffer}set buffer(c){if(this._nativeAudioBufferSourceNode.buffer=c,null!==c){if(this._isBufferSet)throw i();this._isBufferSet=!0}}get loop(){return this._nativeAudioBufferSourceNode.loop}set loop(c){this._nativeAudioBufferSourceNode.loop=c}get loopEnd(){return this._nativeAudioBufferSourceNode.loopEnd}set loopEnd(c){this._nativeAudioBufferSourceNode.loopEnd=c}get loopStart(){return this._nativeAudioBufferSourceNode.loopStart}set loopStart(c){this._nativeAudioBufferSourceNode.loopStart=c}get onended(){return this._onended}set onended(c){const u="function"==typeof c?s(this,c):null;this._nativeAudioBufferSourceNode.onended=u;const d=this._nativeAudioBufferSourceNode.onended;this._onended=null!==d&&d===u?c:d}get playbackRate(){return this._playbackRate}start(c=0,u=0,d){if(this._nativeAudioBufferSourceNode.start(c,u,d),null!==this._audioBufferSourceNodeRenderer&&(this._audioBufferSourceNodeRenderer.start=void 0===d?[c,u]:[c,u,d]),"closed"!==this.context.state){Yu(this);const h=()=>{this._nativeAudioBufferSourceNode.removeEventListener("ended",h),ss(this)&&Cf(this)};this._nativeAudioBufferSourceNode.addEventListener("ended",h)}}stop(c=0){this._nativeAudioBufferSourceNode.stop(c),null!==this._audioBufferSourceNodeRenderer&&(this._audioBufferSourceNodeRenderer.stop=c)}})(Ii,hae,Jr,Li,Gu,ti,Yn,Vu),pae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h=a(d),p=o(d,u,h);super(c,!1,p,h?n(s):null),this._isNodeOfNativeOfflineAudioContext=h,this._nativeAudioDestinationNode=p}get channelCount(){return this._nativeAudioDestinationNode.channelCount}set channelCount(c){if(this._isNodeOfNativeOfflineAudioContext)throw i();if(c>this._nativeAudioDestinationNode.maxChannelCount)throw e();this._nativeAudioDestinationNode.channelCount=c}get channelCountMode(){return this._nativeAudioDestinationNode.channelCountMode}set channelCountMode(c){if(this._isNodeOfNativeOfflineAudioContext)throw i();this._nativeAudioDestinationNode.channelCountMode=c}get maxChannelCount(){return this._nativeAudioDestinationNode.maxChannelCount}})(Ii,t=>{const n=new WeakMap,e=function(){var i=(0,y.Z)(function*(o,r){const a=r.destination;return n.set(r,a),yield t(o,r,a),a});return function(r,a){return i.apply(this,arguments)}}();return{render(i,o){const r=n.get(o);return void 0!==r?Promise.resolve(r):e(i,o)}}},Ea,Li,((t,n)=>(e,i,o)=>{const r=e.destination;if(r.channelCount!==i)try{r.channelCount=i}catch{}o&&"explicit"!==r.channelCountMode&&(r.channelCountMode="explicit"),0===r.maxChannelCount&&Object.defineProperty(r,"maxChannelCount",{value:i});const a=t(e,{channelCount:i,channelCountMode:r.channelCountMode,channelInterpretation:r.channelInterpretation,gain:1});return n(a,"channelCount",s=>()=>s.call(a),s=>l=>{s.call(a,l);try{r.channelCount=l}catch(c){if(l>r.maxChannelCount)throw c}}),n(a,"channelCountMode",s=>()=>s.call(a),s=>l=>{s.call(a,l),r.channelCountMode=l}),n(a,"channelInterpretation",s=>()=>s.call(a),s=>l=>{s.call(a,l),r.channelInterpretation=l}),Object.defineProperty(a,"maxChannelCount",{get:()=>r.maxChannelCount}),a.connect(r),a})($o,Mf),ti,Yn,oo),gae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{Q:u.Q.value,channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,detune:u.detune.value,frequency:u.frequency.value,gain:u.gain.value,type:u.type})),r.set(c,u),d?(yield t(c,l.Q,u.Q),yield t(c,l.detune,u.detune),yield t(c,l.frequency,u.frequency),yield t(c,l.gain,u.gain)):(yield i(c,l.Q,u.Q),yield i(c,l.detune,u.detune),yield i(c,l.frequency,u.frequency),yield i(c,l.gain,u.gain)),yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ta,cF,ri,Ma,oo),ql=(t=>(n,e)=>t.set(n,e))(yF),mae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h={...pie,...u},p=o(d,h),g=a(d);super(c,!1,p,g?e():null),this._Q=n(this,g,p.Q,Io,zo),this._detune=n(this,g,p.detune,1200*Math.log2(Io),-1200*Math.log2(Io)),this._frequency=n(this,g,p.frequency,c.sampleRate/2,0),this._gain=n(this,g,p.gain,40*Math.log10(Io),zo),this._nativeBiquadFilterNode=p,s(this,1)}get detune(){return this._detune}get frequency(){return this._frequency}get gain(){return this._gain}get Q(){return this._Q}get type(){return this._nativeBiquadFilterNode.type}set type(c){this._nativeBiquadFilterNode.type=c}getFrequencyResponse(c,u,d){try{this._nativeBiquadFilterNode.getFrequencyResponse(c,u,d)}catch(h){throw 11===h.code?i():h}if(c.length!==u.length||u.length!==d.length)throw i()}})(Ii,Jr,gae,kb,cF,ti,Yn,ql),Xs=((t,n)=>(e,i,o)=>{const r=new Set;return e.connect=(a=e.connect,(s,l=0,c=0)=>{const u=0===r.size;if(n(s))return a.call(e,s,l,c),t(r,[s,l,c],d=>d[0]===s&&d[1]===l&&d[2]===c,!0),u&&i(),s;a.call(e,s,l),t(r,[s,l],d=>d[0]===s&&d[1]===l,!0),u&&i()}),e.disconnect=(a=>(s,l,c)=>{const u=r.size>0;if(void 0===s)a.apply(e),r.clear();else if("number"==typeof s){a.call(e,s);for(const h of r)h[1]===s&&r.delete(h)}else{n(s)?a.call(e,s,l,c):a.call(e,s,l);for(const h of r)h[0]===s&&(void 0===l||h[1]===l)&&(void 0===c||h[2]===c)&&r.delete(h)}u&&0===r.size&&o()})(e.disconnect),e;var a})(Jl,M1),bae=((t,n)=>(e,i)=>{i.channelCount=1,i.channelCountMode="explicit",Object.defineProperty(i,"channelCount",{get:()=>1,set:()=>{throw t()}}),Object.defineProperty(i,"channelCountMode",{get:()=>"explicit",set:()=>{throw t()}});const o=e.createBufferSource();n(i,()=>{const s=i.numberOfInputs;for(let l=0;lo.disconnect(i))})(Li,Xs),Js=((t,n)=>(e,i)=>{const o=e.createChannelMerger(i.numberOfInputs);return null!==t&&"webkitAudioContext"===t.name&&n(e,o),Vi(o,i),o})(ls,bae),yae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,numberOfInputs:l.numberOfInputs})),i.set(s,l),yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(Js,ri,oo),_ae=((t,n,e,i,o)=>class extends t{constructor(a,s){const l=i(a),c={...yie,...s};super(a,!1,e(l,c),o(l)?n():null)}})(Ii,yae,Js,ti,Yn),vae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,numberOfOutputs:l.numberOfOutputs})),i.set(s,l),yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(Ef,ri,oo),wae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=i(s),u=(t=>({...t,channelCount:t.numberOfOutputs}))({...wie,...l});super(s,!1,e(c,u),o(c)?n():null)}})(Ii,vae,Ef,ti,Yn),Cae=((t,n,e,i)=>(o,{offset:r,...a})=>{const s=o.createBuffer(1,2,44100),l=n(o,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),c=e(o,{...a,gain:r}),u=s.getChannelData(0);u[0]=1,u[1]=1,l.buffer=s,l.loop=!0;const d={get bufferSize(){},get channelCount(){return c.channelCount},set channelCount(g){c.channelCount=g},get channelCountMode(){return c.channelCountMode},set channelCountMode(g){c.channelCountMode=g},get channelInterpretation(){return c.channelInterpretation},set channelInterpretation(g){c.channelInterpretation=g},get context(){return c.context},get inputs(){return[]},get numberOfInputs(){return l.numberOfInputs},get numberOfOutputs(){return c.numberOfOutputs},get offset(){return c.gain},get onended(){return l.onended},set onended(g){l.onended=g},addEventListener:(...g)=>l.addEventListener(g[0],g[1],g[2]),dispatchEvent:(...g)=>l.dispatchEvent(g[0]),removeEventListener:(...g)=>l.removeEventListener(g[0],g[1],g[2]),start(g=0){l.start.call(l,g)},stop(g=0){l.stop.call(l,g)}};return t(o,l),i($u(d,c),()=>l.connect(c),()=>l.disconnect(c))})(Ib,Gu,$o,Xs),Uu=((t,n,e,i,o)=>(r,a)=>{if(void 0===r.createConstantSource)return e(r,a);const s=r.createConstantSource();return Vi(s,a),vi(s,a,"offset"),n(i,()=>i(r))||C1(s),n(o,()=>o(r))||x1(s),t(r,s),s})(Ib,dr,Cae,S1,D1),xae=((t,n,e,i,o)=>()=>{const r=new WeakMap;let a=null,s=null;const l=function(){var c=(0,y.Z)(function*(u,d){let h=e(u);const p=bo(h,d);return p||(h=n(d,{channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,offset:h.offset.value}),null!==a&&h.start(a),null!==s&&h.stop(s)),r.set(d,h),p?yield t(d,u.offset,h.offset):yield i(d,u.offset,h.offset),yield o(u,d,h),h});return function(d,h){return c.apply(this,arguments)}}();return{set start(c){a=c},set stop(c){s=c},render(c,u){const d=r.get(u);return void 0!==d?Promise.resolve(d):l(c,u)}}})(Ta,Uu,ri,Ma,oo),Sae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...Tie,...c},h=i(u,d),p=r(u),g=p?e():null;super(l,!1,h,g),this._constantSourceNodeRenderer=g,this._nativeConstantSourceNode=h,this._offset=n(this,p,h.offset,Io,zo),this._onended=null}get offset(){return this._offset}get onended(){return this._onended}set onended(l){const c="function"==typeof l?a(this,l):null;this._nativeConstantSourceNode.onended=c;const u=this._nativeConstantSourceNode.onended;this._onended=null!==u&&u===c?l:u}start(l=0){if(this._nativeConstantSourceNode.start(l),null!==this._constantSourceNodeRenderer&&(this._constantSourceNodeRenderer.start=l),"closed"!==this.context.state){Yu(this);const c=()=>{this._nativeConstantSourceNode.removeEventListener("ended",c),ss(this)&&Cf(this)};this._nativeConstantSourceNode.addEventListener("ended",c)}}stop(l=0){this._nativeConstantSourceNode.stop(l),null!==this._constantSourceNodeRenderer&&(this._constantSourceNodeRenderer.stop=l)}})(Ii,Jr,xae,Uu,ti,Yn,Vu),EF=((t,n)=>(e,i)=>{const o=e.createConvolver();if(Vi(o,i),i.disableNormalization===o.normalize&&(o.normalize=!i.disableNormalization),di(o,i,"buffer"),i.channelCount>2||(n(o,"channelCount",r=>()=>r.call(o),r=>a=>{if(a>2)throw t();return r.call(o,a)}),"max"===i.channelCountMode))throw t();return n(o,"channelCountMode",r=>()=>r.call(o),r=>a=>{if("max"===a)throw t();return r.call(o,a)}),o})(yo,Mf),Dae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{buffer:l.buffer,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,disableNormalization:!l.normalize})),i.set(s,l),zu(l)?yield e(a,s,l.inputs[0]):yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(EF,ri,oo),Eae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=i(s),u={...Iie,...l},d=e(c,u);super(s,!1,d,o(c)?n():null),this._isBufferNullified=!1,this._nativeConvolverNode=d,null!==u.buffer&&r(this,u.buffer.duration)}get buffer(){return this._isBufferNullified?null:this._nativeConvolverNode.buffer}set buffer(s){if(this._nativeConvolverNode.buffer=s,null===s&&null!==this._nativeConvolverNode.buffer){const l=this._nativeConvolverNode.context;this._nativeConvolverNode.buffer=l.createBuffer(1,1,l.sampleRate),this._isBufferNullified=!0,r(this,0)}else this._isBufferNullified=!1,r(this,null===this._nativeConvolverNode.buffer?0:this._nativeConvolverNode.buffer.duration)}get normalize(){return this._nativeConvolverNode.normalize}set normalize(s){this._nativeConvolverNode.normalize=s}})(Ii,Dae,EF,ti,Yn,ql),Tae=((t,n,e,i,o)=>r=>{const a=new WeakMap,s=function(){var l=(0,y.Z)(function*(c,u){let d=e(c);const h=bo(d,u);return h||(d=n(u,{channelCount:d.channelCount,channelCountMode:d.channelCountMode,channelInterpretation:d.channelInterpretation,delayTime:d.delayTime.value,maxDelayTime:r})),a.set(u,d),h?yield t(u,c.delayTime,d.delayTime):yield i(u,c.delayTime,d.delayTime),yield o(c,u,d),d});return function(u,d){return l.apply(this,arguments)}}();return{render(l,c){const u=a.get(c);return void 0!==u?Promise.resolve(u):s(l,c)}}})(Ta,uF,ri,Ma,oo),Mae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...jie,...c},h=i(u,d),p=r(u);super(l,!1,h,p?e(d.maxDelayTime):null),this._delayTime=n(this,p,h.delayTime),a(this,d.maxDelayTime)}get delayTime(){return this._delayTime}})(Ii,Jr,Tae,uF,ti,Yn,ql),TF=(t=>(n,e)=>{const i=n.createDynamicsCompressor();if(Vi(i,e),e.channelCount>2||"max"===e.channelCountMode)throw t();return vi(i,e,"attack"),vi(i,e,"knee"),vi(i,e,"ratio"),vi(i,e,"release"),vi(i,e,"threshold"),i})(yo),Aae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{attack:u.attack.value,channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,knee:u.knee.value,ratio:u.ratio.value,release:u.release.value,threshold:u.threshold.value})),r.set(c,u),d?(yield t(c,l.attack,u.attack),yield t(c,l.knee,u.knee),yield t(c,l.ratio,u.ratio),yield t(c,l.release,u.release),yield t(c,l.threshold,u.threshold)):(yield i(c,l.attack,u.attack),yield i(c,l.knee,u.knee),yield i(c,l.ratio,u.ratio),yield i(c,l.release,u.release),yield i(c,l.threshold,u.threshold)),yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ta,TF,ri,Ma,oo),kae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h={...Gie,...u},p=i(d,h),g=a(d);super(c,!1,p,g?e():null),this._attack=n(this,g,p.attack),this._knee=n(this,g,p.knee),this._nativeDynamicsCompressorNode=p,this._ratio=n(this,g,p.ratio),this._release=n(this,g,p.release),this._threshold=n(this,g,p.threshold),s(this,.006)}get attack(){return this._attack}get channelCount(){return this._nativeDynamicsCompressorNode.channelCount}set channelCount(c){const u=this._nativeDynamicsCompressorNode.channelCount;if(this._nativeDynamicsCompressorNode.channelCount=c,c>2)throw this._nativeDynamicsCompressorNode.channelCount=u,o()}get channelCountMode(){return this._nativeDynamicsCompressorNode.channelCountMode}set channelCountMode(c){const u=this._nativeDynamicsCompressorNode.channelCountMode;if(this._nativeDynamicsCompressorNode.channelCountMode=c,"max"===c)throw this._nativeDynamicsCompressorNode.channelCountMode=u,o()}get knee(){return this._knee}get ratio(){return this._ratio}get reduction(){return"number"==typeof this._nativeDynamicsCompressorNode.reduction.value?this._nativeDynamicsCompressorNode.reduction.value:this._nativeDynamicsCompressorNode.reduction}get release(){return this._release}get threshold(){return this._threshold}})(Ii,Jr,Aae,TF,yo,ti,Yn,ql),Iae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,gain:u.gain.value})),r.set(c,u),d?yield t(c,l.gain,u.gain):yield i(c,l.gain,u.gain),yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ta,$o,ri,Ma,oo),Oae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=o(s),u={...eoe,...l},d=i(c,u),h=r(c);super(s,!1,d,h?e():null),this._gain=n(this,h,d.gain,Io,zo)}get gain(){return this._gain}})(Ii,Jr,Iae,$o,ti,Yn),Rae=((t,n,e,i)=>(o,r,{channelCount:a,channelCountMode:s,channelInterpretation:l,feedback:c,feedforward:u})=>{const d=lF(r,o.sampleRate),h=c instanceof Float64Array?c:new Float64Array(c),p=u instanceof Float64Array?u:new Float64Array(u),g=h.length,b=p.length,T=Math.min(g,b);if(0===g||g>20)throw i();if(0===h[0])throw n();if(0===b||b>20)throw i();if(0===p[0])throw n();if(1!==h[0]){for(let be=0;be{const Be=be.inputBuffer,Fe=be.outputBuffer,Qe=Be.numberOfChannels;for(let Re=0;ReD.addEventListener(be[0],be[1],be[2]),dispatchEvent:(...be)=>D.dispatchEvent(be[0]),getFrequencyResponse(be,Be,Fe){if(be.length!==Be.length||Be.length!==Fe.length)throw t();const Qe=be.length;for(let Re=0;ReD.removeEventListener(be[0],be[1],be[2])},D)})(kb,Li,Tf,yo),Ob=((t,n,e,i)=>o=>t(Kl,()=>Kl(o))?Promise.resolve(t(i,i)).then(r=>{if(!r){const a=e(o,512,0,1);o.oncomplete=()=>{a.onaudioprocess=null,a.disconnect()},a.onaudioprocess=()=>o.currentTime,a.connect(o.destination)}return o.startRendering()}):new Promise(r=>{const a=n(o,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});o.oncomplete=s=>{a.disconnect(),r(s.renderedBuffer)},a.connect(o.destination),o.startRendering()}))(dr,$o,Tf,((t,n)=>()=>{if(null===n)return Promise.resolve(!1);const e=new n(1,1,44100),i=t(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(o=>{e.oncomplete=()=>{i.disconnect(),o(0!==e.currentTime)},e.startRendering()})})($o,Ji)),Pae=((t,n,e,i,o)=>(r,a)=>{const s=new WeakMap;let l=null;const c=function(){var u=(0,y.Z)(function*(d,h){let p=null,g=n(d);const b=bo(g,h);if(void 0===h.createIIRFilter?p=t(h,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}):b||(g=h.createIIRFilter(a,r)),s.set(h,null===p?g:p),null!==p){if(null===l){if(null===e)throw new Error("Missing the native OfflineAudioContext constructor.");const D=new e(d.context.destination.channelCount,d.context.length,h.sampleRate);l=(0,y.Z)(function*(){return yield i(d,D,D.destination),((t,n,e,i)=>{const o=e instanceof Float64Array?e:new Float64Array(e),r=i instanceof Float64Array?i:new Float64Array(i),a=o.length,s=r.length,l=Math.min(a,s);if(1!==o[0]){for(let g=0;g(n,e,i)=>{if(void 0===n.createIIRFilter)return t(n,e,i);const o=n.createIIRFilter(i.feedforward,i.feedback);return Vi(o,i),o})(Rae),Fae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=i(s),u=o(c),d={...hoe,...l},h=n(c,u?null:s.baseLatency,d);super(s,!1,h,u?e(d.feedback,d.feedforward):null),(t=>{var n;t.getFrequencyResponse=(n=t.getFrequencyResponse,(e,i,o)=>{if(e.length!==i.length||i.length!==o.length)throw kb();return n.call(t,e,i,o)})})(h),this._nativeIIRFilterNode=h,r(this,1)}getFrequencyResponse(s,l,c){return this._nativeIIRFilterNode.getFrequencyResponse(s,l,c)}})(Ii,Nae,Pae,ti,Yn,ql),Lae=((t,n,e,i,o,r,a,s)=>(l,c)=>{const u=c.listener,{forwardX:h,forwardY:p,forwardZ:g,positionX:b,positionY:T,positionZ:D,upX:H,upY:oe,upZ:le}=void 0===u.forwardX?(()=>{const G=new Float32Array(1),pe=n(c,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),_e=a(c);let be=!1,Be=[0,0,-1,0,1,0],Fe=[0,0,0];const Qe=()=>{if(be)return;be=!0;const ut=i(c,256,9,0);ut.onaudioprocess=({inputBuffer:Se})=>{const Ye=[r(Se,G,0),r(Se,G,1),r(Se,G,2),r(Se,G,3),r(Se,G,4),r(Se,G,5)];Ye.some((it,St)=>it!==Be[St])&&(u.setOrientation(...Ye),Be=Ye);const We=[r(Se,G,6),r(Se,G,7),r(Se,G,8)];We.some((it,St)=>it!==Fe[St])&&(u.setPosition(...We),Fe=We)},pe.connect(ut)},Re=ut=>Se=>{Se!==Be[ut]&&(Be[ut]=Se,u.setOrientation(...Be))},Xe=ut=>Se=>{Se!==Fe[ut]&&(Fe[ut]=Se,u.setPosition(...Fe))},ct=(ut,Se,Ye)=>{const We=e(c,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:Se});We.connect(pe,0,ut),We.start(),Object.defineProperty(We.offset,"defaultValue",{get:()=>Se});const it=t({context:l},_e,We.offset,Io,zo);return s(it,"value",St=>()=>St.call(it),St=>At=>{try{St.call(it,At)}catch(on){if(9!==on.code)throw on}Qe(),_e&&Ye(At)}),it.cancelAndHoldAtTime=(St=it.cancelAndHoldAtTime,_e?()=>{throw o()}:(...At)=>{const on=St.apply(it,At);return Qe(),on}),it.cancelScheduledValues=(St=>_e?()=>{throw o()}:(...At)=>{const on=St.apply(it,At);return Qe(),on})(it.cancelScheduledValues),it.exponentialRampToValueAtTime=(St=>_e?()=>{throw o()}:(...At)=>{const on=St.apply(it,At);return Qe(),on})(it.exponentialRampToValueAtTime),it.linearRampToValueAtTime=(St=>_e?()=>{throw o()}:(...At)=>{const on=St.apply(it,At);return Qe(),on})(it.linearRampToValueAtTime),it.setTargetAtTime=(St=>_e?()=>{throw o()}:(...At)=>{const on=St.apply(it,At);return Qe(),on})(it.setTargetAtTime),it.setValueAtTime=(St=>_e?()=>{throw o()}:(...At)=>{const on=St.apply(it,At);return Qe(),on})(it.setValueAtTime),it.setValueCurveAtTime=(St=>_e?()=>{throw o()}:(...At)=>{const on=St.apply(it,At);return Qe(),on})(it.setValueCurveAtTime),it;var St};return{forwardX:ct(0,0,Re(0)),forwardY:ct(1,0,Re(1)),forwardZ:ct(2,-1,Re(2)),positionX:ct(6,0,Xe(0)),positionY:ct(7,0,Xe(1)),positionZ:ct(8,0,Xe(2)),upX:ct(3,0,Re(3)),upY:ct(4,1,Re(4)),upZ:ct(5,0,Re(5))}})():u;return{get forwardX(){return h},get forwardY(){return p},get forwardZ(){return g},get positionX(){return b},get positionY(){return T},get positionZ(){return D},get upX(){return H},get upY(){return oe},get upZ(){return le}}})(Jr,Js,Uu,Tf,yo,fF,Yn,Mf),MF=new WeakMap,O1=((t,n,e,i,o,r)=>class extends e{constructor(s,l){super(s),this._nativeContext=s,yb.set(this,s),i(s)&&o.set(s,new Set),this._destination=new t(this,l),this._listener=n(this,s),this._onstatechange=null}get currentTime(){return this._nativeContext.currentTime}get destination(){return this._destination}get listener(){return this._listener}get onstatechange(){return this._onstatechange}set onstatechange(s){const l="function"==typeof s?r(this,s):null;this._nativeContext.onstatechange=l;const c=this._nativeContext.onstatechange;this._onstatechange=null!==c&&c===l?s:c}get sampleRate(){return this._nativeContext.sampleRate}get state(){return this._nativeContext.state}})(pae,Lae,wF,Yn,MF,Vu),AF=((t,n,e,i,o,r)=>(a,s)=>{const l=a.createOscillator();return Vi(l,s),vi(l,s,"detune"),vi(l,s,"frequency"),void 0!==s.periodicWave?l.setPeriodicWave(s.periodicWave):di(l,s,"type"),n(e,()=>e(a))||C1(l),n(i,()=>i(a))||r(l,a),n(o,()=>o(a))||x1(l),t(a,l),l})(Ib,dr,S1,mF,D1,bF),jae=((t,n,e,i,o)=>()=>{const r=new WeakMap;let a=null,s=null,l=null;const c=function(){var u=(0,y.Z)(function*(d,h){let p=e(d);const g=bo(p,h);return g||(p=n(h,{channelCount:p.channelCount,channelCountMode:p.channelCountMode,channelInterpretation:p.channelInterpretation,detune:p.detune.value,frequency:p.frequency.value,periodicWave:null===a?void 0:a,type:p.type}),null!==s&&p.start(s),null!==l&&p.stop(l)),r.set(h,p),g?(yield t(h,d.detune,p.detune),yield t(h,d.frequency,p.frequency)):(yield i(h,d.detune,p.detune),yield i(h,d.frequency,p.frequency)),yield o(d,h,p),p});return function(h,p){return u.apply(this,arguments)}}();return{set periodicWave(u){a=u},set start(u){s=u},set stop(u){l=u},render(u,d){const h=r.get(d);return void 0!==h?Promise.resolve(h):c(u,d)}}})(Ta,AF,ri,Ma,oo),Bae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...Cre,...c},h=e(u,d),p=r(u),g=p?i():null,b=l.sampleRate/2;super(l,!1,h,g),this._detune=n(this,p,h.detune,153600,-153600),this._frequency=n(this,p,h.frequency,b,-b),this._nativeOscillatorNode=h,this._onended=null,this._oscillatorNodeRenderer=g,null!==this._oscillatorNodeRenderer&&void 0!==d.periodicWave&&(this._oscillatorNodeRenderer.periodicWave=d.periodicWave)}get detune(){return this._detune}get frequency(){return this._frequency}get onended(){return this._onended}set onended(l){const c="function"==typeof l?a(this,l):null;this._nativeOscillatorNode.onended=c;const u=this._nativeOscillatorNode.onended;this._onended=null!==u&&u===c?l:u}get type(){return this._nativeOscillatorNode.type}set type(l){this._nativeOscillatorNode.type=l,null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.periodicWave=null)}setPeriodicWave(l){this._nativeOscillatorNode.setPeriodicWave(l),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.periodicWave=l)}start(l=0){if(this._nativeOscillatorNode.start(l),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.start=l),"closed"!==this.context.state){Yu(this);const c=()=>{this._nativeOscillatorNode.removeEventListener("ended",c),ss(this)&&Cf(this)};this._nativeOscillatorNode.addEventListener("ended",c)}}stop(l=0){this._nativeOscillatorNode.stop(l),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.stop=l)}})(Ii,Jr,AF,jae,ti,Yn,Vu),kF=(t=>(n,e)=>{const i=t(n,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),o=n.createBuffer(1,2,44100);return i.buffer=o,i.loop=!0,i.connect(e),i.start(),()=>{i.stop(),i.disconnect(e)}})(Gu),Hae=((t,n,e,i,o)=>(r,{curve:a,oversample:s,...l})=>{const c=r.createWaveShaper(),u=r.createWaveShaper();Vi(c,l),Vi(u,l);const d=e(r,{...l,gain:1}),h=e(r,{...l,gain:-1}),p=e(r,{...l,gain:1}),g=e(r,{...l,gain:-1});let b=null,T=!1,D=null;const H={get bufferSize(){},get channelCount(){return c.channelCount},set channelCount(G){d.channelCount=G,h.channelCount=G,c.channelCount=G,p.channelCount=G,u.channelCount=G,g.channelCount=G},get channelCountMode(){return c.channelCountMode},set channelCountMode(G){d.channelCountMode=G,h.channelCountMode=G,c.channelCountMode=G,p.channelCountMode=G,u.channelCountMode=G,g.channelCountMode=G},get channelInterpretation(){return c.channelInterpretation},set channelInterpretation(G){d.channelInterpretation=G,h.channelInterpretation=G,c.channelInterpretation=G,p.channelInterpretation=G,u.channelInterpretation=G,g.channelInterpretation=G},get context(){return c.context},get curve(){return D},set curve(G){if(null!==G&&G.length<2)throw n();if(null===G)c.curve=G,u.curve=G;else{const pe=G.length,_e=new Float32Array(pe+2-pe%2),be=new Float32Array(pe+2-pe%2);_e[0]=G[0],be[0]=-G[pe-1];const Be=Math.ceil((pe+1)/2),Fe=(pe+1)/2-1;for(let Qe=1;Qed.addEventListener(G[0],G[1],G[2]),dispatchEvent:(...G)=>d.dispatchEvent(G[0]),removeEventListener:(...G)=>d.removeEventListener(G[0],G[1],G[2])};return null!==a&&(H.curve=a instanceof Float32Array?a:new Float32Array(a)),s!==H.oversample&&(H.oversample=s),o($u(H,p),()=>{d.connect(c).connect(p),d.connect(h).connect(u).connect(g).connect(p),T=!0,i(D)&&(b=t(r,d))},()=>{d.disconnect(c),c.disconnect(p),d.disconnect(h),h.disconnect(u),u.disconnect(g),g.disconnect(p),T=!1,null!==b&&(b(),b=null)})})(kF,Li,$o,pF,Xs),Rb=((t,n,e,i,o,r,a)=>(s,l)=>{const c=s.createWaveShaper();if(null!==r&&"webkitAudioContext"===r.name&&void 0===s.createGain().gain.automationRate)return e(s,l);Vi(c,l);const u=null===l.curve||l.curve instanceof Float32Array?l.curve:new Float32Array(l.curve);if(null!==u&&u.length<2)throw n();di(c,{curve:u},"curve"),di(c,l,"oversample");let d=null,h=!1;return a(c,"curve",b=>()=>b.call(c),b=>T=>(b.call(c,T),h&&(i(T)&&null===d?d=t(s,c):!i(T)&&null!==d&&(d(),d=null)),T)),o(c,()=>{h=!0,i(c.curve)&&(d=t(s,c))},()=>{h=!1,null!==d&&(d(),d=null)})})(kF,Li,Hae,pF,Xs,ls,Mf),Yae=((t,n,e,i,o,r,a,s,l,c)=>(u,{coneInnerAngle:d,coneOuterAngle:h,coneOuterGain:p,distanceModel:g,maxDistance:b,orientationX:T,orientationY:D,orientationZ:H,panningModel:oe,positionX:le,positionY:G,positionZ:pe,refDistance:_e,rolloffFactor:be,...Be})=>{const Fe=u.createPanner();if(Be.channelCount>2||"max"===Be.channelCountMode)throw a();Vi(Fe,Be);const Qe={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},Re=e(u,{...Qe,channelInterpretation:"speakers",numberOfInputs:6}),Xe=i(u,{...Be,gain:1}),ct=i(u,{...Qe,gain:1}),ut=i(u,{...Qe,gain:0}),Se=i(u,{...Qe,gain:0}),Ye=i(u,{...Qe,gain:0}),We=i(u,{...Qe,gain:0}),it=i(u,{...Qe,gain:0}),St=o(u,256,6,1),At=r(u,{...Qe,curve:new Float32Array([1,1]),oversample:"none"});let on=[T,D,H],Rn=[le,G,pe];const sn=new Float32Array(1);St.onaudioprocess=({inputBuffer:dt})=>{const Cn=[l(dt,sn,0),l(dt,sn,1),l(dt,sn,2)];Cn.some((Ar,Ks)=>Ar!==on[Ks])&&(Fe.setOrientation(...Cn),on=Cn);const ro=[l(dt,sn,3),l(dt,sn,4),l(dt,sn,5)];ro.some((Ar,Ks)=>Ar!==Rn[Ks])&&(Fe.setPosition(...ro),Rn=ro)},Object.defineProperty(ut.gain,"defaultValue",{get:()=>0}),Object.defineProperty(Se.gain,"defaultValue",{get:()=>0}),Object.defineProperty(Ye.gain,"defaultValue",{get:()=>0}),Object.defineProperty(We.gain,"defaultValue",{get:()=>0}),Object.defineProperty(it.gain,"defaultValue",{get:()=>0});const ln={get bufferSize(){},get channelCount(){return Fe.channelCount},set channelCount(dt){if(dt>2)throw a();Xe.channelCount=dt,Fe.channelCount=dt},get channelCountMode(){return Fe.channelCountMode},set channelCountMode(dt){if("max"===dt)throw a();Xe.channelCountMode=dt,Fe.channelCountMode=dt},get channelInterpretation(){return Fe.channelInterpretation},set channelInterpretation(dt){Xe.channelInterpretation=dt,Fe.channelInterpretation=dt},get coneInnerAngle(){return Fe.coneInnerAngle},set coneInnerAngle(dt){Fe.coneInnerAngle=dt},get coneOuterAngle(){return Fe.coneOuterAngle},set coneOuterAngle(dt){Fe.coneOuterAngle=dt},get coneOuterGain(){return Fe.coneOuterGain},set coneOuterGain(dt){if(dt<0||dt>1)throw n();Fe.coneOuterGain=dt},get context(){return Fe.context},get distanceModel(){return Fe.distanceModel},set distanceModel(dt){Fe.distanceModel=dt},get inputs(){return[Xe]},get maxDistance(){return Fe.maxDistance},set maxDistance(dt){if(dt<0)throw new RangeError;Fe.maxDistance=dt},get numberOfInputs(){return Fe.numberOfInputs},get numberOfOutputs(){return Fe.numberOfOutputs},get orientationX(){return ct.gain},get orientationY(){return ut.gain},get orientationZ(){return Se.gain},get panningModel(){return Fe.panningModel},set panningModel(dt){Fe.panningModel=dt},get positionX(){return Ye.gain},get positionY(){return We.gain},get positionZ(){return it.gain},get refDistance(){return Fe.refDistance},set refDistance(dt){if(dt<0)throw new RangeError;Fe.refDistance=dt},get rolloffFactor(){return Fe.rolloffFactor},set rolloffFactor(dt){if(dt<0)throw new RangeError;Fe.rolloffFactor=dt},addEventListener:(...dt)=>Xe.addEventListener(dt[0],dt[1],dt[2]),dispatchEvent:(...dt)=>Xe.dispatchEvent(dt[0]),removeEventListener:(...dt)=>Xe.removeEventListener(dt[0],dt[1],dt[2])};return d!==ln.coneInnerAngle&&(ln.coneInnerAngle=d),h!==ln.coneOuterAngle&&(ln.coneOuterAngle=h),p!==ln.coneOuterGain&&(ln.coneOuterGain=p),g!==ln.distanceModel&&(ln.distanceModel=g),b!==ln.maxDistance&&(ln.maxDistance=b),T!==ln.orientationX.value&&(ln.orientationX.value=T),D!==ln.orientationY.value&&(ln.orientationY.value=D),H!==ln.orientationZ.value&&(ln.orientationZ.value=H),oe!==ln.panningModel&&(ln.panningModel=oe),le!==ln.positionX.value&&(ln.positionX.value=le),G!==ln.positionY.value&&(ln.positionY.value=G),pe!==ln.positionZ.value&&(ln.positionZ.value=pe),_e!==ln.refDistance&&(ln.refDistance=_e),be!==ln.rolloffFactor&&(ln.rolloffFactor=be),(1!==on[0]||0!==on[1]||0!==on[2])&&Fe.setOrientation(...on),(0!==Rn[0]||0!==Rn[1]||0!==Rn[2])&&Fe.setPosition(...Rn),c($u(ln,Fe),()=>{Xe.connect(Fe),t(Xe,At,0,0),At.connect(ct).connect(Re,0,0),At.connect(ut).connect(Re,0,1),At.connect(Se).connect(Re,0,2),At.connect(Ye).connect(Re,0,3),At.connect(We).connect(Re,0,4),At.connect(it).connect(Re,0,5),Re.connect(St).connect(u.destination)},()=>{Xe.disconnect(Fe),s(Xe,At,0,0),At.disconnect(ct),ct.disconnect(Re),At.disconnect(ut),ut.disconnect(Re),At.disconnect(Se),Se.disconnect(Re),At.disconnect(Ye),Ye.disconnect(Re),At.disconnect(We),We.disconnect(Re),At.disconnect(it),it.disconnect(Re),Re.disconnect(St),St.disconnect(u.destination)})})(xb,Li,Js,$o,Tf,Rb,yo,Sb,fF,Xs),IF=(t=>(n,e)=>{const i=n.createPanner();return void 0===i.orientationX?t(n,e):(Vi(i,e),vi(i,e,"orientationX"),vi(i,e,"orientationY"),vi(i,e,"orientationZ"),vi(i,e,"positionX"),vi(i,e,"positionY"),vi(i,e,"positionZ"),di(i,e,"coneInnerAngle"),di(i,e,"coneOuterAngle"),di(i,e,"coneOuterGain"),di(i,e,"distanceModel"),di(i,e,"maxDistance"),di(i,e,"panningModel"),di(i,e,"refDistance"),di(i,e,"rolloffFactor"),i)})(Yae),zae=((t,n,e,i,o,r,a,s,l,c)=>()=>{const u=new WeakMap;let d=null;const h=function(){var p=(0,y.Z)(function*(g,b){let T=null,D=r(g);const H={channelCount:D.channelCount,channelCountMode:D.channelCountMode,channelInterpretation:D.channelInterpretation},oe={...H,coneInnerAngle:D.coneInnerAngle,coneOuterAngle:D.coneOuterAngle,coneOuterGain:D.coneOuterGain,distanceModel:D.distanceModel,maxDistance:D.maxDistance,panningModel:D.panningModel,refDistance:D.refDistance,rolloffFactor:D.rolloffFactor},le=bo(D,b);if("bufferSize"in D)T=i(b,{...H,gain:1});else if(!le){const G={...oe,orientationX:D.orientationX.value,orientationY:D.orientationY.value,orientationZ:D.orientationZ.value,positionX:D.positionX.value,positionY:D.positionY.value,positionZ:D.positionZ.value};D=o(b,G)}if(u.set(b,null===T?D:T),null!==T){if(null===d){if(null===a)throw new Error("Missing the native OfflineAudioContext constructor.");const Re=new a(6,g.context.length,b.sampleRate),Xe=n(Re,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6});Xe.connect(Re.destination),d=(0,y.Z)(function*(){const ct=yield Promise.all([g.orientationX,g.orientationY,g.orientationZ,g.positionX,g.positionY,g.positionZ].map(function(){var ut=(0,y.Z)(function*(Se,Ye){const We=e(Re,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:0===Ye?1:0});return yield s(Re,Se,We.offset),We});return function(Se,Ye){return ut.apply(this,arguments)}}()));for(let ut=0;ut<6;ut+=1)ct[ut].connect(Xe,0,ut),ct[ut].start(0);return c(Re)})()}const G=yield d,pe=i(b,{...H,gain:1});yield l(g,b,pe);const _e=[];for(let Re=0;Reut!==be[Se])||ct.some((ut,Se)=>ut!==Be[Se])){be=Xe,Be=ct;const ut=Re/b.sampleRate;Fe.gain.setValueAtTime(0,ut),Fe=i(b,{...H,gain:0}),Qe=o(b,{...oe,orientationX:be[0],orientationY:be[1],orientationZ:be[2],positionX:Be[0],positionY:Be[1],positionZ:Be[2]}),Fe.gain.setValueAtTime(1,ut),pe.connect(Fe).connect(Qe.inputs[0]),Qe.connect(T)}}return T}return le?(yield t(b,g.orientationX,D.orientationX),yield t(b,g.orientationY,D.orientationY),yield t(b,g.orientationZ,D.orientationZ),yield t(b,g.positionX,D.positionX),yield t(b,g.positionY,D.positionY),yield t(b,g.positionZ,D.positionZ)):(yield s(b,g.orientationX,D.orientationX),yield s(b,g.orientationY,D.orientationY),yield s(b,g.orientationZ,D.orientationZ),yield s(b,g.positionX,D.positionX),yield s(b,g.positionY,D.positionY),yield s(b,g.positionZ,D.positionZ)),zu(D)?yield l(g,b,D.inputs[0]):yield l(g,b,D),D});return function(b,T){return p.apply(this,arguments)}}();return{render(p,g){const b=u.get(g);return void 0!==b?Promise.resolve(b):h(p,g)}}})(Ta,Js,Uu,$o,IF,ri,Ji,Ma,oo,Ob),$ae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...Dre,...c},h=e(u,d),p=r(u);super(l,!1,h,p?i():null),this._nativePannerNode=h,this._orientationX=n(this,p,h.orientationX,Io,zo),this._orientationY=n(this,p,h.orientationY,Io,zo),this._orientationZ=n(this,p,h.orientationZ,Io,zo),this._positionX=n(this,p,h.positionX,Io,zo),this._positionY=n(this,p,h.positionY,Io,zo),this._positionZ=n(this,p,h.positionZ,Io,zo),a(this,1)}get coneInnerAngle(){return this._nativePannerNode.coneInnerAngle}set coneInnerAngle(l){this._nativePannerNode.coneInnerAngle=l}get coneOuterAngle(){return this._nativePannerNode.coneOuterAngle}set coneOuterAngle(l){this._nativePannerNode.coneOuterAngle=l}get coneOuterGain(){return this._nativePannerNode.coneOuterGain}set coneOuterGain(l){this._nativePannerNode.coneOuterGain=l}get distanceModel(){return this._nativePannerNode.distanceModel}set distanceModel(l){this._nativePannerNode.distanceModel=l}get maxDistance(){return this._nativePannerNode.maxDistance}set maxDistance(l){this._nativePannerNode.maxDistance=l}get orientationX(){return this._orientationX}get orientationY(){return this._orientationY}get orientationZ(){return this._orientationZ}get panningModel(){return this._nativePannerNode.panningModel}set panningModel(l){this._nativePannerNode.panningModel=l}get positionX(){return this._positionX}get positionY(){return this._positionY}get positionZ(){return this._positionZ}get refDistance(){return this._nativePannerNode.refDistance}set refDistance(l){this._nativePannerNode.refDistance=l}get rolloffFactor(){return this._nativePannerNode.rolloffFactor}set rolloffFactor(l){this._nativePannerNode.rolloffFactor=l}})(Ii,Jr,IF,zae,ti,Yn,ql),Vae=(t=>(n,{disableNormalization:e,imag:i,real:o})=>{const r=i instanceof Float32Array?i:new Float32Array(i),a=o instanceof Float32Array?o:new Float32Array(o),s=n.createPeriodicWave(a,r,{disableNormalization:e});if(Array.from(i).length<2)throw t();return s})(Ea),Zae=((t,n,e,i)=>class Kj{constructor(r,a){const s=n(r),l=(t=>{const{imag:n,real:e}=t;return void 0===n?void 0===e?{...t,imag:[0,0],real:[0,0]}:{...t,imag:Array.from(e,()=>0),real:e}:void 0===e?{...t,imag:n,real:Array.from(n,()=>0)}:{...t,imag:n,real:e}})({...Mre,...a}),c=t(s,l);return e.add(c),c}static[Symbol.hasInstance](r){return null!==r&&"object"==typeof r&&Object.getPrototypeOf(r)===Kj.prototype||e.has(r)}})(Vae,ti,new WeakSet),Gae=((t,n,e,i,o,r)=>{const s=new Float32Array([1,1]),l=Math.PI/2,c={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},u={...c,oversample:"none"},p=(g,b,T,D,H)=>{if(1===b)return((g,b,T,D)=>{const H=new Float32Array(16385),oe=new Float32Array(16385);for(let Be=0;Be<16385;Be+=1){const Fe=Be/16384*l;H[Be]=Math.cos(Fe),oe[Be]=Math.sin(Fe)}const le=e(g,{...c,gain:0}),G=i(g,{...u,curve:H}),pe=i(g,{...u,curve:s}),_e=e(g,{...c,gain:0}),be=i(g,{...u,curve:oe});return{connectGraph(){b.connect(le),b.connect(void 0===pe.inputs?pe:pe.inputs[0]),b.connect(_e),pe.connect(T),T.connect(void 0===G.inputs?G:G.inputs[0]),T.connect(void 0===be.inputs?be:be.inputs[0]),G.connect(le.gain),be.connect(_e.gain),le.connect(D,0,0),_e.connect(D,0,1)},disconnectGraph(){b.disconnect(le),b.disconnect(void 0===pe.inputs?pe:pe.inputs[0]),b.disconnect(_e),pe.disconnect(T),T.disconnect(void 0===G.inputs?G:G.inputs[0]),T.disconnect(void 0===be.inputs?be:be.inputs[0]),G.disconnect(le.gain),be.disconnect(_e.gain),le.disconnect(D,0,0),_e.disconnect(D,0,1)}}})(g,T,D,H);if(2===b)return((g,b,T,D)=>{const H=new Float32Array(16385),oe=new Float32Array(16385),le=new Float32Array(16385),G=new Float32Array(16385),pe=Math.floor(8192.5);for(let Ye=0;Ye<16385;Ye+=1)if(Ye>pe){const We=(Ye-pe)/(16384-pe)*l;H[Ye]=Math.cos(We),oe[Ye]=Math.sin(We),le[Ye]=0,G[Ye]=1}else{const We=Ye/(16384-pe)*l;H[Ye]=1,oe[Ye]=0,le[Ye]=Math.cos(We),G[Ye]=Math.sin(We)}const _e=n(g,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),be=e(g,{...c,gain:0}),Be=i(g,{...u,curve:H}),Fe=e(g,{...c,gain:0}),Qe=i(g,{...u,curve:oe}),Re=i(g,{...u,curve:s}),Xe=e(g,{...c,gain:0}),ct=i(g,{...u,curve:le}),ut=e(g,{...c,gain:0}),Se=i(g,{...u,curve:G});return{connectGraph(){b.connect(_e),b.connect(void 0===Re.inputs?Re:Re.inputs[0]),_e.connect(be,0),_e.connect(Fe,0),_e.connect(Xe,1),_e.connect(ut,1),Re.connect(T),T.connect(void 0===Be.inputs?Be:Be.inputs[0]),T.connect(void 0===Qe.inputs?Qe:Qe.inputs[0]),T.connect(void 0===ct.inputs?ct:ct.inputs[0]),T.connect(void 0===Se.inputs?Se:Se.inputs[0]),Be.connect(be.gain),Qe.connect(Fe.gain),ct.connect(Xe.gain),Se.connect(ut.gain),be.connect(D,0,0),Xe.connect(D,0,0),Fe.connect(D,0,1),ut.connect(D,0,1)},disconnectGraph(){b.disconnect(_e),b.disconnect(void 0===Re.inputs?Re:Re.inputs[0]),_e.disconnect(be,0),_e.disconnect(Fe,0),_e.disconnect(Xe,1),_e.disconnect(ut,1),Re.disconnect(T),T.disconnect(void 0===Be.inputs?Be:Be.inputs[0]),T.disconnect(void 0===Qe.inputs?Qe:Qe.inputs[0]),T.disconnect(void 0===ct.inputs?ct:ct.inputs[0]),T.disconnect(void 0===Se.inputs?Se:Se.inputs[0]),Be.disconnect(be.gain),Qe.disconnect(Fe.gain),ct.disconnect(Xe.gain),Se.disconnect(ut.gain),be.disconnect(D,0,0),Xe.disconnect(D,0,0),Fe.disconnect(D,0,1),ut.disconnect(D,0,1)}}})(g,T,D,H);throw o()};return(g,{channelCount:b,channelCountMode:T,pan:D,...H})=>{if("max"===T)throw o();const oe=t(g,{...H,channelCount:1,channelCountMode:T,numberOfInputs:2}),le=e(g,{...H,channelCount:b,channelCountMode:T,gain:1}),G=e(g,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:D});let{connectGraph:pe,disconnectGraph:_e}=p(g,b,le,G,oe);Object.defineProperty(G.gain,"defaultValue",{get:()=>0}),Object.defineProperty(G.gain,"maxValue",{get:()=>1}),Object.defineProperty(G.gain,"minValue",{get:()=>-1});const be={get bufferSize(){},get channelCount(){return le.channelCount},set channelCount(Re){le.channelCount!==Re&&(Be&&_e(),({connectGraph:pe,disconnectGraph:_e}=p(g,Re,le,G,oe)),Be&&pe()),le.channelCount=Re},get channelCountMode(){return le.channelCountMode},set channelCountMode(Re){if("clamped-max"===Re||"max"===Re)throw o();le.channelCountMode=Re},get channelInterpretation(){return le.channelInterpretation},set channelInterpretation(Re){le.channelInterpretation=Re},get context(){return le.context},get inputs(){return[le]},get numberOfInputs(){return le.numberOfInputs},get numberOfOutputs(){return le.numberOfOutputs},get pan(){return G.gain},addEventListener:(...Re)=>le.addEventListener(Re[0],Re[1],Re[2]),dispatchEvent:(...Re)=>le.dispatchEvent(Re[0]),removeEventListener:(...Re)=>le.removeEventListener(Re[0],Re[1],Re[2])};let Be=!1;return r($u(be,oe),()=>{pe(),Be=!0},()=>{_e(),Be=!1})}})(Js,Ef,$o,Rb,yo,Xs),OF=((t,n)=>(e,i)=>{const o=i.channelCountMode;if("clamped-max"===o)throw n();if(void 0===e.createStereoPanner)return t(e,i);const r=e.createStereoPanner();return Vi(r,i),vi(r,i,"pan"),Object.defineProperty(r,"channelCountMode",{get:()=>o,set:a=>{if(a!==o)throw n()}}),r})(Gae,yo),Uae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,pan:u.pan.value})),r.set(c,u),d?yield t(c,l.pan,u.pan):yield i(c,l.pan,u.pan),zu(u)?yield o(l,c,u.inputs[0]):yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ta,OF,ri,Ma,oo),Wae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=o(s),u={...Lre,...l},d=e(c,u),h=r(c);super(s,!1,d,h?i():null),this._pan=n(this,h,d.pan)}get pan(){return this._pan}})(Ii,Jr,OF,Uae,ti,Yn),Xae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,curve:l.curve,oversample:l.oversample})),i.set(s,l),zu(l)?yield e(a,s,l.inputs[0]):yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(Rb,ri,oo),Jae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...$re,...c},h=e(u,d);super(l,!0,h,r(u)?i():null),this._isCurveNullified=!1,this._nativeWaveShaperNode=h,a(this,1)}get curve(){return this._isCurveNullified?null:this._nativeWaveShaperNode.curve}set curve(l){if(null===l)this._isCurveNullified=!0,this._nativeWaveShaperNode.curve=new Float32Array([0,0]);else{if(l.length<2)throw n();this._isCurveNullified=!1,this._nativeWaveShaperNode.curve=l}}get oversample(){return this._nativeWaveShaperNode.oversample}set oversample(l){this._nativeWaveShaperNode.oversample=l}})(Ii,Li,Rb,Xae,ti,Yn,ql),RF=(t=>null!==t&&t.isSecureContext)(Xr),R1=(t=>(n,e,i)=>{Object.defineProperties(t,{currentFrame:{configurable:!0,get:()=>Math.round(n*e)},currentTime:{configurable:!0,get:()=>n}});try{return i()}finally{null!==t&&(delete t.currentFrame,delete t.currentTime)}})(Xr),PF=new WeakMap,Qae=((t,n)=>e=>{let i=t.get(e);if(void 0!==i)return i;if(null===n)throw new Error("Missing the native OfflineAudioContext constructor.");return i=new n(1,1,44100),t.set(e,i),i})(PF,Ji),Kae=RF?((t,n,e,i,o,r,a,s,l,c,u,d,h)=>{let p=0;return(g,b,T={credentials:"omit"})=>{const D=u.get(g);if(void 0!==D&&D.has(b))return Promise.resolve();const H=c.get(g);if(void 0!==H){const G=H.get(b);if(void 0!==G)return G}const oe=r(g),le=void 0===oe.audioWorklet?o(b).then(([G,pe])=>{const[_e,be]=ZN(G,pe);return e(`${_e};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${be}\n})})(window,'_AWGS')`)}).then(()=>{const G=h._AWGS.pop();if(void 0===G)throw new SyntaxError;i(oe.currentTime,oe.sampleRate,()=>G(class{},void 0,(pe,_e)=>{if(""===pe.trim())throw n();const be=p1.get(oe);if(void 0!==be){if(be.has(pe))throw n();UN(_e),GN(_e.parameterDescriptors),be.set(pe,_e)}else UN(_e),GN(_e.parameterDescriptors),p1.set(oe,new Map([[pe,_e]]))},oe.sampleRate,void 0,void 0))}):Promise.all([o(b),Promise.resolve(t(d,d))]).then(([[G,pe],_e])=>{const be=p+1;p=be;const[Be,Fe]=ZN(G,pe),ut=new Blob([`${Be};((AudioWorkletProcessor,registerProcessor)=>{${Fe}\n})(${_e?"AudioWorkletProcessor":"class extends AudioWorkletProcessor {__b=new WeakSet();constructor(){super();(p=>p.postMessage=(q=>(m,t)=>q.call(p,m,t?t.filter(u=>!this.__b.has(u)):t))(p.postMessage))(this.port)}}"},(n,p)=>registerProcessor(n,class extends p{${_e?"":"__c = (a) => a.forEach(e=>this.__b.add(e.buffer));"}process(i,o,p){${_e?"":"i.forEach(this.__c);o.forEach(this.__c);this.__c(Object.values(p));"}return super.process(i.map(j=>j.some(k=>k.length===0)?[]:j),o,p)}}));registerProcessor('__sac${be}',class extends AudioWorkletProcessor{process(){return !1}})`],{type:"application/javascript; charset=utf-8"}),Se=URL.createObjectURL(ut);return oe.audioWorklet.addModule(Se,T).then(()=>{if(s(oe))return oe;const Ye=a(oe);return Ye.audioWorklet.addModule(Se,T).then(()=>Ye)}).then(Ye=>{if(null===l)throw new SyntaxError;try{new l(Ye,`__sac${be}`)}catch{throw new SyntaxError}}).finally(()=>URL.revokeObjectURL(Se))});return void 0===H?c.set(g,new Map([[b,le]])):H.set(b,le),le.then(()=>{const G=u.get(g);void 0===G?u.set(g,new Set([b])):G.add(b)}).finally(()=>{const G=c.get(g);void 0!==G&&G.delete(b)}),le}})(dr,yo,(t=>n=>new Promise((e,i)=>{if(null===t)return void i(new SyntaxError);const o=t.document.head;if(null===o)i(new SyntaxError);else{const r=t.document.createElement("script"),a=new Blob([n],{type:"application/javascript"}),s=URL.createObjectURL(a),l=t.onerror,c=()=>{t.onerror=l,URL.revokeObjectURL(s)};t.onerror=(u,d,h,p,g)=>d===s||d===t.location.href&&1===h&&1===p?(c(),i(g),!1):null!==l?l(u,d,h,p,g):void 0,r.onerror=()=>{c(),i(new SyntaxError)},r.onload=()=>{c(),e()},r.src=s,r.type="module",o.appendChild(r)}}))(Xr),R1,function(){var n=(0,y.Z)(function*(e){try{const i=yield fetch(e);if(i.ok)return[yield i.text(),i.url]}catch{}throw new DOMException("","AbortError")});return function(e){return n.apply(this,arguments)}}(),ti,Qae,Yn,Zu,new WeakMap,new WeakMap,((t,n)=>(0,y.Z)(function*(){if(null===t)return!0;if(null===n)return!1;const e=new Blob(['class A extends AudioWorkletProcessor{process(i){this.port.postMessage(i,[i[0][0].buffer])}}registerProcessor("a",A)'],{type:"application/javascript; charset=utf-8"}),i=new n(1,128,44100),o=URL.createObjectURL(e);let r=!1,a=!1;try{yield i.audioWorklet.addModule(o);const s=new t(i,"a",{numberOfOutputs:0}),l=i.createOscillator();s.port.onmessage=()=>r=!0,s.onprocessorerror=()=>a=!0,l.connect(s),l.start(0),yield i.startRendering(),yield new Promise(c=>setTimeout(c))}catch{}finally{URL.revokeObjectURL(o)}return r&&!a}))(Zu,Ji),Xr):void 0,qae=((t,n)=>e=>t(e)||n(e))(T1,Yn),ese=((t,n,e,i,o,r,a,s,l,c,u)=>(d,h)=>{const p=a(d)?d:r(d);if(o.has(h)){const g=new DOMException("","DataCloneError");return Promise.reject(g)}try{o.add(h)}catch{}return n(l,()=>l(p))?p.decodeAudioData(h).then(g=>(rF(h).catch(()=>{}),n(s,()=>s(g))||u(g),t.add(g),g)):new Promise((g,b)=>{const T=function(){var H=(0,y.Z)(function*(){try{yield rF(h)}catch{}});return function(){return H.apply(this,arguments)}}(),D=H=>{b(H),T()};try{p.decodeAudioData(h,H=>{"function"!=typeof H.copyFromChannel&&(c(H),b1(H)),t.add(H),T().then(()=>g(H))},H=>{D(null===H?new DOMException("","EncodingError"):H)})}catch(H){D(H)}})})(A1,dr,0,0,new WeakSet,ti,qae,vb,Kl,k1,I1),NF=((t,n,e,i,o,r,a,s,l,c,u,d,h,p,g,b,T,D,H,oe)=>class extends g{constructor(G,pe){super(G,pe),this._nativeContext=G,this._audioWorklet=void 0===t?void 0:{addModule:(_e,be)=>t(this,_e,be)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new n(this)}createBiquadFilter(){return new o(this)}createBuffer(G,pe,_e){return new e({length:pe,numberOfChannels:G,sampleRate:_e})}createBufferSource(){return new i(this)}createChannelMerger(G=6){return new r(this,{numberOfInputs:G})}createChannelSplitter(G=6){return new a(this,{numberOfOutputs:G})}createConstantSource(){return new s(this)}createConvolver(){return new l(this)}createDelay(G=1){return new u(this,{maxDelayTime:G})}createDynamicsCompressor(){return new d(this)}createGain(){return new h(this)}createIIRFilter(G,pe){return new p(this,{feedback:pe,feedforward:G})}createOscillator(){return new b(this)}createPanner(){return new T(this)}createPeriodicWave(G,pe,_e={disableNormalization:!1}){return new D(this,{..._e,imag:pe,real:G})}createStereoPanner(){return new H(this)}createWaveShaper(){return new oe(this)}decodeAudioData(G,pe,_e){return c(this._nativeContext,G).then(be=>("function"==typeof pe&&pe(be),be),be=>{throw"function"==typeof _e&&_e(be),be})}})(Kae,uae,dae,fae,mae,_ae,wae,Sae,Eae,ese,Mae,kae,Oae,Fae,O1,Bae,$ae,Zae,Wae,Jae),tse=((t,n,e,i)=>class extends t{constructor(r,a){const s=e(r),l=((t,n)=>t.createMediaElementSource(n.mediaElement))(s,a);if(i(s))throw TypeError();super(r,!0,l,null),this._nativeMediaElementAudioSourceNode=l}get mediaElement(){return this._nativeMediaElementAudioSourceNode.mediaElement}})(Ii,0,ti,Yn),nse=((t,n,e,i)=>class extends t{constructor(r,a){const s=e(r);if(i(s))throw new TypeError;const c=((t,n)=>{const e=t.createMediaStreamDestination();return Vi(e,n),1===e.numberOfOutputs&&Object.defineProperty(e,"numberOfOutputs",{get:()=>0}),e})(s,{...Moe,...a});super(r,!1,c,null),this._nativeMediaStreamAudioDestinationNode=c}get stream(){return this._nativeMediaStreamAudioDestinationNode.stream}})(Ii,0,ti,Yn),ise=((t,n,e,i)=>class extends t{constructor(r,a){const s=e(r),l=((t,{mediaStream:n})=>{const e=n.getAudioTracks();e.sort((r,a)=>r.ida.id?1:0);const i=e.slice(0,1),o=t.createMediaStreamSource(new MediaStream(i));return Object.defineProperty(o,"mediaStream",{value:n}),o})(s,a);if(i(s))throw new TypeError;super(r,!0,l,null),this._nativeMediaStreamAudioSourceNode=l}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}})(Ii,0,ti,Yn),ose=((t,n)=>(e,{mediaStreamTrack:i})=>{if("function"==typeof e.createMediaStreamTrackSource)return e.createMediaStreamTrackSource(i);const o=new MediaStream([i]),r=e.createMediaStreamSource(o);if("audio"!==i.kind)throw t();if(n(e))throw new TypeError;return r})(Li,Yn),rse=((t,n,e)=>class extends t{constructor(o,r){const a=e(o);super(o,!0,n(a,r),null)}})(Ii,ose,ti),ase=((t,n,e,i,o,r,a,s,l)=>class extends t{constructor(u={}){if(null===l)throw new Error("Missing the native AudioContext constructor.");let d;try{d=new l(u)}catch(g){throw 12===g.code&&"sampleRate is not in range"===g.message?e():g}if(null===d)throw i();if(!(t=>void 0===t||"number"==typeof t||"string"==typeof t&&("balanced"===t||"interactive"===t||"playback"===t))(u.latencyHint))throw new TypeError(`The provided value '${u.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(void 0!==u.sampleRate&&d.sampleRate!==u.sampleRate)throw e();super(d,2);const{latencyHint:h}=u,{sampleRate:p}=d;if(this._baseLatency="number"==typeof d.baseLatency?d.baseLatency:"balanced"===h?512/p:"interactive"===h||void 0===h?256/p:"playback"===h?1024/p:128*Math.max(2,Math.min(128,Math.round(h*p/128)))/p,this._nativeAudioContext=d,"webkitAudioContext"===l.name?(this._nativeGainNode=d.createGain(),this._nativeOscillatorNode=d.createOscillator(),this._nativeGainNode.gain.value=1e-37,this._nativeOscillatorNode.connect(this._nativeGainNode).connect(d.destination),this._nativeOscillatorNode.start()):(this._nativeGainNode=null,this._nativeOscillatorNode=null),this._state=null,"running"===d.state){this._state="suspended";const g=()=>{"suspended"===this._state&&(this._state=null),d.removeEventListener("statechange",g)};d.addEventListener("statechange",g)}}get baseLatency(){return this._baseLatency}get state(){return null!==this._state?this._state:this._nativeAudioContext.state}close(){return"closed"===this.state?this._nativeAudioContext.close().then(()=>{throw n()}):("suspended"===this._state&&(this._state=null),this._nativeAudioContext.close().then(()=>{null!==this._nativeGainNode&&null!==this._nativeOscillatorNode&&(this._nativeOscillatorNode.stop(),this._nativeGainNode.disconnect(),this._nativeOscillatorNode.disconnect()),(t=>{y1(t.destination,[])})(this)}))}createMediaElementSource(u){return new o(this,{mediaElement:u})}createMediaStreamDestination(){return new r(this)}createMediaStreamSource(u){return new a(this,{mediaStream:u})}createMediaStreamTrackSource(u){return new s(this,{mediaStreamTrack:u})}resume(){return"suspended"===this._state?new Promise((u,d)=>{const h=()=>{this._nativeAudioContext.removeEventListener("statechange",h),"running"===this._nativeAudioContext.state?u():this.resume().then(u,d)};this._nativeAudioContext.addEventListener("statechange",h)}):this._nativeAudioContext.resume().catch(u=>{throw void 0===u||15===u.code?n():u})}suspend(){return this._nativeAudioContext.suspend().catch(u=>{throw void 0===u?n():u})}})(NF,Li,yo,hF,tse,nse,ise,rse,ls),P1=(t=>n=>{const e=t.get(n);if(void 0===e)throw new Error("The context has no set of AudioWorkletNodes.");return e})(MF),FF=((t=>{})(P1),(t=>(n,e,i=0,o=0)=>{const r=n[i];if(void 0===r)throw t();return Eb(e)?r.connect(e,0,o):r.connect(e,0)})(Ea)),lse=(t=>(n,e)=>{t(n).delete(e)})(P1),LF=(t=>(n,e=void 0,i=void 0,o=0)=>void 0===e?n.forEach(r=>r.disconnect()):"number"==typeof e?Ab(t,n,e).disconnect():Eb(e)?void 0===i?n.forEach(r=>r.disconnect(e)):void 0===o?Ab(t,n,i).disconnect(e,0):Ab(t,n,i).disconnect(e,0,o):void 0===i?n.forEach(r=>r.disconnect(e)):Ab(t,n,i).disconnect(e,0))(Ea),jF=new WeakMap,cse=((t,n)=>e=>n(t,e))(jF,Wr),use=((t,n,e,i,o,r,a,s,l,c,u,d,h)=>(p,g,b,T)=>{if(0===T.numberOfInputs&&0===T.numberOfOutputs)throw l();const D=Array.isArray(T.outputChannelCount)?T.outputChannelCount:Array.from(T.outputChannelCount);if(D.some(ft=>ft<1))throw l();if(D.length!==T.numberOfOutputs)throw n();if("explicit"!==T.channelCountMode)throw l();const H=T.channelCount*T.numberOfInputs,oe=D.reduce((ft,jt)=>ft+jt,0),le=void 0===b.parameterDescriptors?0:b.parameterDescriptors.length;if(H+le>6||oe>6)throw l();const G=new MessageChannel,pe=[],_e=[];for(let ft=0;ftvoid 0===ft?0:ft},maxValue:{get:()=>void 0===jt?Io:jt},minValue:{get:()=>void 0===ai?zo:ai}}),be.push(Sn)}const Be=i(p,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,H+le)}),Fe=lF(g,p.sampleRate),Qe=s(p,Fe,H+le,Math.max(1,oe)),Re=o(p,{channelCount:Math.max(1,oe),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,oe)}),Xe=[];for(let ft=0;ft{const ai=be[jt];return ai.connect(Be,0,H+jt),ai.start(0),[ft,ai.offset]}));Be.connect(Qe);let ut=T.channelInterpretation,Se=null;const Ye=0===T.numberOfOutputs?[Qe]:Xe,We={get bufferSize(){return Fe},get channelCount(){return T.channelCount},set channelCount(ft){throw e()},get channelCountMode(){return T.channelCountMode},set channelCountMode(ft){throw e()},get channelInterpretation(){return ut},set channelInterpretation(ft){for(const jt of pe)jt.channelInterpretation=ft;ut=ft},get context(){return Qe.context},get inputs(){return pe},get numberOfInputs(){return T.numberOfInputs},get numberOfOutputs(){return T.numberOfOutputs},get onprocessorerror(){return Se},set onprocessorerror(ft){"function"==typeof Se&&We.removeEventListener("processorerror",Se),Se="function"==typeof ft?ft:null,"function"==typeof Se&&We.addEventListener("processorerror",Se)},get parameters(){return ct},get port(){return G.port2},addEventListener:(...ft)=>Qe.addEventListener(ft[0],ft[1],ft[2]),connect:t.bind(null,Ye),disconnect:c.bind(null,Ye),dispatchEvent:(...ft)=>Qe.dispatchEvent(ft[0]),removeEventListener:(...ft)=>Qe.removeEventListener(ft[0],ft[1],ft[2])},it=new Map;var ft;G.port1.addEventListener=(ft=G.port1.addEventListener,(...jt)=>{if("message"===jt[0]){const ai="function"==typeof jt[1]?jt[1]:"object"==typeof jt[1]&&null!==jt[1]&&"function"==typeof jt[1].handleEvent?jt[1].handleEvent:null;if(null!==ai){const si=it.get(jt[1]);void 0!==si?jt[1]=si:(jt[1]=Sn=>{u(p.currentTime,p.sampleRate,()=>ai(Sn))},it.set(ai,jt[1]))}}return ft.call(G.port1,jt[0],jt[1],jt[2])}),G.port1.removeEventListener=(ft=>(...jt)=>{if("message"===jt[0]){const ai=it.get(jt[1]);void 0!==ai&&(it.delete(jt[1]),jt[1]=ai)}return ft.call(G.port1,jt[0],jt[1],jt[2])})(G.port1.removeEventListener);let St=null;Object.defineProperty(G.port1,"onmessage",{get:()=>St,set:ft=>{"function"==typeof St&&G.port1.removeEventListener("message",St),St="function"==typeof ft?ft:null,"function"==typeof St&&(G.port1.addEventListener("message",St),G.port1.start())}}),b.prototype.port=G.port1;let At=null;((t,n,e,i)=>{let o=g1.get(t);void 0===o&&(o=new WeakMap,g1.set(t,o));const r=Woe(e,i);return o.set(n,r),r})(p,We,b,T).then(ft=>At=ft);const Rn=Mb(T.numberOfInputs,T.channelCount),sn=Mb(T.numberOfOutputs,D),ln=void 0===b.parameterDescriptors?[]:b.parameterDescriptors.reduce((ft,{name:jt})=>({...ft,[jt]:new Float32Array(128)}),{});let Vo=!0;const Un=()=>{T.numberOfOutputs>0&&Qe.disconnect(Re);for(let ft=0,jt=0;ft{if(null!==At){const ai=d(We);for(let si=0;si{Tb(ft,ln,Sn,H+Wn,si)});for(let Sn=0;Sn{if(ai[Qr].size>0)return dt.set(Qr,Fe/128),Zo;const Xu=dt.get(Qr);return void 0===Xu?[]:(Zo.every(wx=>wx.every(ny=>0===ny))&&(1===Xu?dt.delete(Qr):dt.set(Qr,Xu-1)),Zo)});Vo=u(p.currentTime+si/p.sampleRate,p.sampleRate,()=>At.process(Sn,sn,ln));for(let Zo=0,Qr=0;ZoQe.connect(ro).connect(p.destination),Ks=()=>{Qe.disconnect(ro),ro.disconnect()};return Ar(),h(We,()=>{if(Vo){Ks(),T.numberOfOutputs>0&&Qe.connect(Re);for(let ft=0,jt=0;ft{Vo&&(Ar(),Un()),Cn=!1})})(FF,Ea,Li,Js,Ef,Uu,$o,Tf,yo,LF,R1,cse,Xs);let Pb=(()=>{class t{constructor(e,i){this.http=e,this.toastr=i,this.returnFileFromPath$=(o,r="blob")=>this.http.get(o,{responseType:r}).pipe(es(s=>(this.toastr.error(s.message,$localize`Hmm, the file is unreachable. Please try again later.`,{timeOut:1e4}),Et(s))),Bt(s=>s),_i(1))}loadAudioBufferFromFile$(e,i){var o=new ase({sampleRate:i});return bi(e.arrayBuffer().then(a=>o.decodeAudioData(a)))}readFile$(e){const i=new FileReader;return On.create(o=>{i.onerror=r=>o.error(r),i.onabort=r=>o.error(r),i.onload=()=>o.next(i.result),i.onloadend=()=>o.complete(),i.readAsText(e)})}readFileAsData$(e){const i=new FileReader;return On.create(o=>{i.onerror=r=>o.error(r),i.onabort=r=>o.error(r),i.onload=()=>o.next(i.result),i.onloadend=()=>o.complete(),i.readAsDataURL(e)})}static{this.\u0275fac=function(i){return new(i||t)(Me(su),Me(Sl))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const hr={production:!0,apiBaseURL:"https://readalong-studio.herokuapp.com/api/v1",packageJson:JSON.parse('{"name":"readalong-studio","homepage":"https://readalong-studio.mothertongues.org","contact":"mailto:readalong.studio@gmail.com","documentationURL":"https://readalongs.github.io/ICLDC-Docs","version":"0.0.0","type":"module","scripts":{"helpme":"echo This project is part of a monorepo managed using nx. Run the targets in project.json using npx nx target studio-web at the root of the monorepo.","ng":"ng","test:ng":"ng test","test:once":"ng test --watch=false --browsers ChromeHeadlessCI","e2e":"playwright test","nyc":"nyc --reporter=html --reporter=text-summary playwright test ","e2e-ui":"playwright test --ui"},"private":true,"singleFileBundleVersion":"1.5.2","singleFileBundleTimestamp":"2024-12-05+14-41-20"}')},gse={title:$localize`Welcome to ReadAlong Studio`,text:$localize`Creating a ReadAlong is easy!\ +(self.webpackChunkstudio_web=self.webpackChunkstudio_web||[]).push([[179],{8718:(C,de,O)=>{var y={"./read-along.entry.js":[9154,154]};function z(M){if(!O.o(y,M))return Promise.resolve().then(()=>{var L=new Error("Cannot find module '"+M+"'");throw L.code="MODULE_NOT_FOUND",L});var v=y[M],I=v[0];return O.e(v[1]).then(()=>O(I))}z.keys=()=>Object.keys(y),z.id=8718,C.exports=z},4156:(C,de,O)=>{"use strict";O.d(de,{F:()=>qr,b:()=>ni,g:()=>B,h:()=>q,r:()=>Ia});var y=O(5861);let M,v,I=!1,j=!1;const V="slot-fb{display:contents}slot-fb[hidden]{display:none}",x="http://www.w3.org/1999/xlink",N={},U=S=>"object"==(S=typeof S)||"function"===S;function X(S){var ue,Ie,Ee;return null!==(Ee=null===(Ie=null===(ue=S.head)||void 0===ue?void 0:ue.querySelector('meta[name="csp-nonce"]'))||void 0===Ie?void 0:Ie.getAttribute("content"))&&void 0!==Ee?Ee:void 0}const q=(S,ue,...Ie)=>{let Ee=null,Ve=null,ot=!1,qe=!1;const et=[],yt=xt=>{for(let $t=0;$txt[$t]).join(" "))}}if("function"==typeof S)return S(null===ue?{}:ue,et,ae);const Ct=ee(S,null);return Ct.$attrs$=ue,et.length>0&&(Ct.$children$=et),Ct.$key$=Ve,Ct},ee=(S,ue)=>({$flags$:0,$tag$:S,$text$:ue,$elm$:null,$children$:null,$attrs$:null,$key$:null}),J={},ae={forEach:(S,ue)=>S.map(Q).forEach(ue),map:(S,ue)=>S.map(Q).map(ue).map(se)},Q=S=>({vattrs:S.$attrs$,vchildren:S.$children$,vkey:S.$key$,vname:S.$name$,vtag:S.$tag$,vtext:S.$text$}),se=S=>{if("function"==typeof S.vtag){const Ie=Object.assign({},S.vattrs);return S.vkey&&(Ie.key=S.vkey),S.vname&&(Ie.name=S.vname),q(S.vtag,Ie,...S.vchildren||[])}const ue=ee(S.vtag,S.vtext);return ue.$attrs$=S.vattrs,ue.$children$=S.vchildren,ue.$key$=S.vkey,ue.$name$=S.vname,ue},B=S=>vo(S).$hostElement$,f=new WeakMap,E=(S,ue)=>"sc-"+S.$tagName$,P=(S,ue,Ie,Ee,Ve,ot)=>{if(Ie!==Ee){let qe=gr(S,ue),et=ue.toLowerCase();if("class"===ue){const yt=S.classList,Ct=k(Ie),xt=k(Ee);yt.remove(...Ct.filter($t=>$t&&!xt.includes($t))),yt.add(...xt.filter($t=>$t&&!Ct.includes($t)))}else if("style"===ue){for(const yt in Ie)(!Ee||null==Ee[yt])&&(yt.includes("-")?S.style.removeProperty(yt):S.style[yt]="");for(const yt in Ee)(!Ie||Ee[yt]!==Ie[yt])&&(yt.includes("-")?S.style.setProperty(yt,Ee[yt]):S.style[yt]=Ee[yt])}else if("key"!==ue)if("ref"===ue)Ee&&Ee(S);else if(qe||"o"!==ue[0]||"n"!==ue[1]){const yt=U(Ee);if((qe||yt&&null!==Ee)&&!Ve)try{if(S.tagName.includes("-"))S[ue]=Ee;else{const xt=Ee??"";"list"===ue?qe=!1:(null==Ie||S[ue]!=xt)&&(S[ue]=xt)}}catch{}let Ct=!1;et!==(et=et.replace(/^xlink\:?/,""))&&(ue=et,Ct=!0),null==Ee||!1===Ee?(!1!==Ee||""===S.getAttribute(ue))&&(Ct?S.removeAttributeNS(x,ue):S.removeAttribute(ue)):(!qe||4&ot||Ve)&&!yt&&(Ee=!0===Ee?"":Ee,Ct?S.setAttributeNS(x,ue,Ee):S.setAttribute(ue,Ee))}else if(ue="-"===ue[2]?ue.slice(3):gr(nl,et)?et.slice(2):et[2]+ue.slice(3),Ie||Ee){const yt=ue.endsWith(_);ue=ue.replace(he,""),Ie&&Ci.rel(S,ue,Ie,yt),Ee&&Ci.ael(S,ue,Ee,yt)}}},Z=/\s/,k=S=>S?S.split(Z):[],_="Capture",he=new RegExp(_+"$"),ce=(S,ue,Ie,Ee)=>{const Ve=11===ue.$elm$.nodeType&&ue.$elm$.host?ue.$elm$.host:ue.$elm$,ot=S&&S.$attrs$||N,qe=ue.$attrs$||N;for(Ee of De(Object.keys(ot)))Ee in qe||P(Ve,Ee,ot[Ee],void 0,Ie,ue.$flags$);for(Ee of De(Object.keys(qe)))P(Ve,Ee,ot[Ee],qe[Ee],Ie,ue.$flags$)};function De(S){return S.includes("ref")?[...S.filter(ue=>"ref"!==ue),"ref"]:S}const Ke=(S,ue,Ie,Ee)=>{const Ve=ue.$children$[Ie];let qe,et,ot=0;if(null!==Ve.$text$)qe=Ve.$elm$=Go.createTextNode(Ve.$text$);else if(qe=Ve.$elm$=Go.createElement(Ve.$tag$),ce(null,Ve,!1),(S=>null!=S)(M)&&qe["s-si"]!==M&&qe.classList.add(qe["s-si"]=M),Ve.$children$)for(ot=0;ot{let et,qe=S;for(qe.shadowRoot&&qe.tagName===v&&(qe=qe.shadowRoot);Ve<=ot;++Ve)Ee[Ve]&&(et=Ke(null,Ie,Ve),et&&(Ee[Ve].$elm$=et,qe.insertBefore(et,ue)))},Ce=(S,ue,Ie)=>{for(let Ee=ue;Ee<=Ie;++Ee){const Ve=S[Ee];if(Ve){const ot=Ve.$elm$;Tt(Ve),ot&&ot.remove()}}},lt=(S,ue,Ie=!1)=>S.$tag$===ue.$tag$&&(!!Ie||S.$key$===ue.$key$),ht=(S,ue,Ie=!1)=>{const Ee=ue.$elm$=S.$elm$,Ve=S.$children$,ot=ue.$children$,et=ue.$text$;null===et?("slot"===ue.$tag$&&!I||ce(S,ue,!1),null!==Ve&&null!==ot?((S,ue,Ie,Ee,Ve=!1)=>{let Gt,mr,ot=0,qe=0,et=0,yt=0,Ct=ue.length-1,xt=ue[0],$t=ue[Ct],fi=Ee.length-1,Nn=Ee[0],xi=Ee[fi];for(;ot<=Ct&&qe<=fi;)if(null==xt)xt=ue[++ot];else if(null==$t)$t=ue[--Ct];else if(null==Nn)Nn=Ee[++qe];else if(null==xi)xi=Ee[--fi];else if(lt(xt,Nn,Ve))ht(xt,Nn,Ve),xt=ue[++ot],Nn=Ee[++qe];else if(lt($t,xi,Ve))ht($t,xi,Ve),$t=ue[--Ct],xi=Ee[--fi];else if(lt(xt,xi,Ve))ht(xt,xi,Ve),S.insertBefore(xt.$elm$,$t.$elm$.nextSibling),xt=ue[++ot],xi=Ee[--fi];else if(lt($t,Nn,Ve))ht($t,Nn,Ve),S.insertBefore($t.$elm$,xt.$elm$),$t=ue[--Ct],Nn=Ee[++qe];else{for(et=-1,yt=ot;yt<=Ct;++yt)if(ue[yt]&&null!==ue[yt].$key$&&ue[yt].$key$===Nn.$key$){et=yt;break}et>=0?(mr=ue[et],mr.$tag$!==Nn.$tag$?Gt=Ke(ue&&ue[qe],Ie,et):(ht(mr,Nn,Ve),ue[et]=void 0,Gt=mr.$elm$),Nn=Ee[++qe]):(Gt=Ke(ue&&ue[qe],Ie,qe),Nn=Ee[++qe]),Gt&&xt.$elm$.parentNode.insertBefore(Gt,xt.$elm$)}ot>Ct?bt(S,null==Ee[fi+1]?null:Ee[fi+1].$elm$,Ie,Ee,qe,fi):qe>fi&&Ce(ue,ot,Ct)})(Ee,Ve,ue,ot,Ie):null!==ot?(null!==S.$text$&&(Ee.textContent=""),bt(Ee,null,ue,ot,0,ot.length-1)):null!==Ve&&Ce(Ve,0,Ve.length-1)):S.$text$!==et&&(Ee.data=et)},Tt=S=>{S.$attrs$&&S.$attrs$.ref&&S.$attrs$.ref(null),S.$children$&&S.$children$.map(Tt)},w=(S,ue)=>{ue&&!S.$onRenderResolve$&&ue["s-p"]&&ue["s-p"].push(new Promise(Ie=>S.$onRenderResolve$=Ie))},Ae=(S,ue)=>{if(S.$flags$|=16,!(4&S.$flags$))return w(S,S.$ancestorComponent$),Vf(()=>ke(S,ue));S.$flags$|=512},ke=(S,ue)=>{const Ee=S.$lazyInstance$;let Ve;return ue&&(S.$flags$|=256,S.$queuedListeners$&&(S.$queuedListeners$.map(([ot,qe])=>Ue(Ee,ot,qe)),S.$queuedListeners$=void 0),Ve=Ue(Ee,"componentWillLoad")),re(Ve,()=>ge(S,Ee,ue))},re=(S,ue)=>ne(S)?S.then(ue):ue(),ne=S=>S instanceof Promise||S&&S.then&&"function"==typeof S.then,ge=function(){var S=(0,y.Z)(function*(ue,Ie,Ee){var Ve;const ot=ue.$hostElement$,et=ot["s-rc"];Ee&&(S=>{const ue=S.$cmpMeta$,Ie=S.$hostElement$,Ee=ue.$flags$,ot=((S,ue,Ie)=>{var Ee;const Ve=E(ue),ot=tl.get(Ve);if(S=11===S.nodeType?S:Go,ot)if("string"==typeof ot){let et,qe=f.get(S=S.head||S);if(qe||f.set(S,qe=new Set),!qe.has(Ve)){{et=Go.createElement("style"),et.innerHTML=ot;const yt=null!==(Ee=Ci.$nonce$)&&void 0!==Ee?Ee:X(Go);null!=yt&&et.setAttribute("nonce",yt),S.insertBefore(et,S.querySelector("link"))}4&ue.$flags$&&(et.innerHTML+=V),qe&&qe.add(Ve)}}else S.adoptedStyleSheets.includes(ot)||(S.adoptedStyleSheets=[...S.adoptedStyleSheets,ot]);return Ve})(Ie.shadowRoot?Ie.shadowRoot:Ie.getRootNode(),ue);10&Ee&&(Ie["s-sc"]=ot,Ie.classList.add(ot+"-h"))})(ue);ze(ue,Ie,ot,Ee),et&&(et.map(Ct=>Ct()),ot["s-rc"]=void 0);{const Ct=null!==(Ve=ot["s-p"])&&void 0!==Ve?Ve:[],xt=()=>Ge(ue);0===Ct.length?xt():(Promise.all(Ct).then(xt),ue.$flags$|=4,Ct.length=0)}});return function(Ie,Ee,Ve){return S.apply(this,arguments)}}(),ze=(S,ue,Ie,Ee)=>{try{ue=ue.render(),S.$flags$&=-17,S.$flags$|=2,((S,ue,Ie=!1)=>{const Ee=S.$hostElement$,Ve=S.$cmpMeta$,ot=S.$vnode$||ee(null,null),qe=(S=>S&&S.$tag$===J)(ue)?ue:q(null,null,ue);if(v=Ee.tagName,Ve.$attrsToReflect$&&(qe.$attrs$=qe.$attrs$||{},Ve.$attrsToReflect$.map(([et,yt])=>qe.$attrs$[yt]=Ee[et])),Ie&&qe.$attrs$)for(const et of Object.keys(qe.$attrs$))Ee.hasAttribute(et)&&!["key","ref","style","class"].includes(et)&&(qe.$attrs$[et]=Ee[et]);qe.$tag$=null,qe.$flags$|=4,S.$vnode$=qe,qe.$elm$=ot.$elm$=Ee.shadowRoot||Ee,M=Ee["s-sc"],I=0!=(1&Ve.$flags$),ht(ot,qe,Ie)})(S,ue,Ee)}catch(Ve){ta(Ve,S.$hostElement$)}return null},Ge=S=>{const Ie=S.$hostElement$,Ve=S.$lazyInstance$,ot=S.$ancestorComponent$;Ue(Ve,"componentDidRender"),64&S.$flags$?Ue(Ve,"componentDidUpdate"):(S.$flags$|=64,pt(Ie),Ue(Ve,"componentDidLoad"),S.$onReadyResolve$(Ie),ot||Te()),S.$onInstanceResolve$(Ie),S.$onRenderResolve$&&(S.$onRenderResolve$(),S.$onRenderResolve$=void 0),512&S.$flags$&&$f(()=>Ae(S,!1)),S.$flags$&=-517},Te=S=>{pt(Go.documentElement),$f(()=>((S,ue,Ie)=>{const Ee=Ci.ce("appload",{detail:{namespace:"web-component"}});return S.dispatchEvent(Ee),Ee})(nl))},Ue=(S,ue,Ie)=>{if(S&&S[ue])try{return S[ue](Ie)}catch(Ee){ta(Ee)}},pt=S=>S.classList.add("hydrated"),Mn=(S,ue,Ie)=>{var Ee;const Ve=S.prototype;if(ue.$members$){S.watchers&&(ue.$watchers$=S.watchers);const ot=Object.entries(ue.$members$);if(ot.map(([qe,[et]])=>{31&et||2&Ie&&32&et?Object.defineProperty(Ve,qe,{get(){return((S,ue)=>vo(this).$instanceValues$.get(ue))(0,qe)},set(yt){((S,ue,Ie,Ee)=>{const Ve=vo(S),ot=Ve.$hostElement$,qe=Ve.$instanceValues$.get(ue),et=Ve.$flags$,yt=Ve.$lazyInstance$;Ie=((S,ue)=>null==S||U(S)?S:4&ue?"false"!==S&&(""===S||!!S):2&ue?parseFloat(S):1&ue?String(S):S)(Ie,Ee.$members$[ue][0]);const Ct=Number.isNaN(qe)&&Number.isNaN(Ie);if((!(8&et)||void 0===qe)&&Ie!==qe&&!Ct&&(Ve.$instanceValues$.set(ue,Ie),yt)){if(Ee.$watchers$&&128&et){const $t=Ee.$watchers$[ue];$t&&$t.map(fi=>{try{yt[fi](Ie,qe,ue)}catch(Nn){ta(Nn,ot)}})}2==(18&et)&&Ae(Ve,!1)}})(this,qe,yt,ue)},configurable:!0,enumerable:!0}):1&Ie&&64&et&&Object.defineProperty(Ve,qe,{value(...yt){var Ct;const xt=vo(this);return null===(Ct=xt?.$onInstancePromise$)||void 0===Ct?void 0:Ct.then(()=>{var $t;return null===($t=xt.$lazyInstance$)||void 0===$t?void 0:$t[qe](...yt)})}})}),1&Ie){const qe=new Map;Ve.attributeChangedCallback=function(et,yt,Ct){Ci.jmp(()=>{var xt;const $t=qe.get(et);if(this.hasOwnProperty($t))Ct=this[$t],delete this[$t];else{if(Ve.hasOwnProperty($t)&&"number"==typeof this[$t]&&this[$t]==Ct)return;if(null==$t){const fi=vo(this),Nn=fi?.$flags$;if(Nn&&!(8&Nn)&&128&Nn&&Ct!==yt){const xi=fi.$lazyInstance$,Gt=null===(xt=ue.$watchers$)||void 0===xt?void 0:xt[et];Gt?.forEach(mr=>{null!=xi[mr]&&xi[mr].call(xi,Ct,yt,et)})}return}}this[$t]=(null!==Ct||"boolean"!=typeof this[$t])&&Ct})},S.observedAttributes=Array.from(new Set([...Object.keys(null!==(Ee=ue.$watchers$)&&void 0!==Ee?Ee:{}),...ot.filter(([et,yt])=>15&yt[0]).map(([et,yt])=>{var Ct;const xt=yt[1]||et;return qe.set(xt,et),512&yt[0]&&(null===(Ct=ue.$attrsToReflect$)||void 0===Ct||Ct.push([et,xt])),xt})]))}}return S},hn=function(){var S=(0,y.Z)(function*(ue,Ie,Ee,Ve){let ot;if(!(32&Ie.$flags$)){if(Ie.$flags$|=32,Ee.$lazyBundleId$){if(ot=On(Ee),ot.then){const xt=()=>{};ot=yield ot,xt()}ot.isProxied||(Ee.$watchers$=ot.watchers,Mn(ot,Ee,2),ot.isProxied=!0);const Ct=()=>{};Ie.$flags$|=8;try{new ot(Ie)}catch(xt){ta(xt)}Ie.$flags$&=-9,Ie.$flags$|=128,Ct()}else ot=ue.constructor,customElements.whenDefined(Ee.$tagName$).then(()=>Ie.$flags$|=128);if(ot.style){let Ct=ot.style;const xt=E(Ee);if(!tl.has(xt)){const $t=()=>{};((S,ue,Ie)=>{let Ee=tl.get(S);hi&&Ie?(Ee=Ee||new CSSStyleSheet,"string"==typeof Ee?Ee=ue:Ee.replaceSync(ue)):Ee=ue,tl.set(S,Ee)})(xt,Ct,!!(1&Ee.$flags$)),$t()}}}const qe=Ie.$ancestorComponent$,et=()=>Ae(Ie,!0);qe&&qe["s-rc"]?qe["s-rc"].push(et):et()});return function(Ie,Ee,Ve,ot){return S.apply(this,arguments)}}(),wi=S=>{Ue(S,"disconnectedCallback")},pr=function(){var S=(0,y.Z)(function*(ue){if(!(1&Ci.$flags$)){const Ie=vo(ue);Ie.$rmListeners$&&(Ie.$rmListeners$.map(Ee=>Ee()),Ie.$rmListeners$=void 0),Ie?.$lazyInstance$?wi(Ie.$lazyInstance$):Ie?.$onReadyPromise$&&Ie.$onReadyPromise$.then(()=>wi(Ie.$lazyInstance$))}});return function(Ie){return S.apply(this,arguments)}}(),ni=(S,ue={})=>{var Ie;const Ve=[],ot=ue.exclude||[],qe=nl.customElements,et=Go.head,yt=et.querySelector("meta[charset]"),Ct=Go.createElement("style"),xt=[];let $t,fi=!0;Object.assign(Ci,ue),Ci.$resourcesUrl$=new URL(ue.resourcesUrl||"./",Go.baseURI).href;let Nn=!1;if(S.map(xi=>{xi[1].map(Gt=>{var mr;const Or={$flags$:Gt[0],$tagName$:Gt[1],$members$:Gt[2],$listeners$:Gt[3]};4&Or.$flags$&&(Nn=!0),Or.$members$=Gt[2],Or.$listeners$=Gt[3],Or.$attrsToReflect$=[],Or.$watchers$=null!==(mr=Gt[4])&&void 0!==mr?mr:{};const vn=Or.$tagName$,ay=class extends HTMLElement{constructor(li){super(li),ea(li=this,Or),1&Or.$flags$&&li.attachShadow({mode:"open"})}connectedCallback(){$t&&(clearTimeout($t),$t=null),fi?xt.push(this):Ci.jmp(()=>(S=>{if(!(1&Ci.$flags$)){const ue=vo(S),Ie=ue.$cmpMeta$,Ee=()=>{};if(1&ue.$flags$)ds(S,ue,Ie.$listeners$),ue?.$lazyInstance$||ue?.$onReadyPromise$&&ue.$onReadyPromise$.then(()=>{});else{ue.$flags$|=1;{let Ve=S;for(;Ve=Ve.parentNode||Ve.host;)if(Ve["s-p"]){w(ue,ue.$ancestorComponent$=Ve);break}}Ie.$members$&&Object.entries(Ie.$members$).map(([Ve,[ot]])=>{if(31&ot&&S.hasOwnProperty(Ve)){const qe=S[Ve];delete S[Ve],S[Ve]=qe}}),hn(S,ue,Ie)}Ee()}})(this))}disconnectedCallback(){Ci.jmp(()=>pr(this))}componentOnReady(){return vo(this).$onReadyPromise$}};Or.$lazyBundleId$=xi[0],!ot.includes(vn)&&!qe.get(vn)&&(Ve.push(vn),qe.define(vn,Mn(ay,Or,1)))})}),Ve.length>0&&(Nn&&(Ct.textContent+=V),Ct.textContent+=Ve+"{visibility:hidden}.hydrated{visibility:inherit}",Ct.innerHTML.length)){Ct.setAttribute("data-styles","");const xi=null!==(Ie=Ci.$nonce$)&&void 0!==Ie?Ie:X(Go);null!=xi&&Ct.setAttribute("nonce",xi),et.insertBefore(Ct,yt?yt.nextSibling:et.firstChild)}fi=!1,xt.length?xt.map(xi=>xi.connectedCallback()):Ci.jmp(()=>$t=setTimeout(Te,30))},qr=(S,ue)=>ue,ds=(S,ue,Ie,Ee)=>{Ie&&Ie.map(([Ve,ot,qe])=>{const et=rc(S,Ve),yt=_o(ue,qe),Ct=ka(Ve);Ci.ael(et,ot,yt,Ct),(ue.$rmListeners$=ue.$rmListeners$||[]).push(()=>Ci.rel(et,ot,yt,Ct))})},_o=(S,ue)=>Ie=>{try{256&S.$flags$?S.$lazyInstance$[ue](Ie):(S.$queuedListeners$=S.$queuedListeners$||[]).push([ue,Ie])}catch(Ee){ta(Ee)}},rc=(S,ue)=>8&ue?nl:S,ka=S=>vt?{passive:0!=(1&S),capture:0!=(2&S)}:0!=(2&S),el=new WeakMap,vo=S=>el.get(S),Ia=(S,ue)=>el.set(ue.$lazyInstance$=S,ue),ea=(S,ue)=>{const Ie={$flags$:0,$hostElement$:S,$cmpMeta$:ue,$instanceValues$:new Map};return Ie.$onInstancePromise$=new Promise(Ee=>Ie.$onInstanceResolve$=Ee),Ie.$onReadyPromise$=new Promise(Ee=>Ie.$onReadyResolve$=Ee),S["s-p"]=[],S["s-rc"]=[],ds(S,Ie,ue.$listeners$),el.set(S,Ie)},gr=(S,ue)=>ue in S,ta=(S,ue)=>(0,console.error)(S,ue),ac=new Map,On=(S,ue,Ie)=>{const Ee=S.$tagName$.replace(/-/g,"_"),Ve=S.$lazyBundleId$,ot=ac.get(Ve);if(ot)return ot[Ee];if(!Ie||!BUILD.hotModuleReplacement){const qe=et=>(ac.set(Ve,et),et[Ee]);if("read-along"===Ve)return O.e(154).then(O.bind(O,9154)).then(qe,ta)}return O(8718)(`./${Ve}.entry.js`).then(qe=>(ac.set(Ve,qe),qe[Ee]),ta)},tl=new Map,nl=typeof window<"u"?window:{},Go=nl.document||{head:{}},Ci={$flags$:0,$resourcesUrl$:"",jmp:S=>S(),raf:S=>requestAnimationFrame(S),ael:(S,ue,Ie,Ee)=>S.addEventListener(ue,Ie,Ee),rel:(S,ue,Ie,Ee)=>S.removeEventListener(ue,Ie,Ee),ce:(S,ue)=>new CustomEvent(S,ue)},vt=(()=>{let S=!1;try{Go.addEventListener("e",null,Object.defineProperty({},"passive",{get(){S=!0}}))}catch{}return S})(),hi=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),Qu=[],$n=[],Pn=(S,ue)=>Ie=>{S.push(Ie),j||(j=!0,ue&&4&Ci.$flags$?$f(Bt):Ci.raf(Bt))},zf=S=>{for(let ue=0;ue{zf(Qu),zf($n),(j=Qu.length>0)&&Ci.raf(Bt)},$f=S=>Promise.resolve(void 0).then(S),Vf=Pn($n,!0)},7044:(C,de,O)=>{"use strict";var y=O(5861);let M=null,I=1;const L=Symbol("SIGNAL");function j(t){const n=M;return M=t,n}function R(t){if((!me(t)||t.dirty)&&(t.dirty||t.lastCleanEpoch!==I)){if(!t.producerMustRecompute(t)&&!te(t))return t.dirty=!1,void(t.lastCleanEpoch=I);t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=I}}function te(t){B(t);for(let n=0;n0}function B(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}let Z=null;function Ae(t){return"function"==typeof t}function ke(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const re=ke(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,o)=>`${o+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function ne(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class ge{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const r of e)r.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(Ae(i))try{i()}catch(r){n=r instanceof re?r.errors:[r]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const r of o)try{Te(r)}catch(a){n=n??[],a instanceof re?n=[...n,...a.errors]:n.push(a)}}if(n)throw new re(n)}}add(n){var e;if(n&&n!==this)if(this.closed)Te(n);else{if(n instanceof ge){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&ne(e,n)}remove(n){const{_finalizers:e}=this;e&&ne(e,n),n instanceof ge&&n._removeParent(this)}}ge.EMPTY=(()=>{const t=new ge;return t.closed=!0,t})();const ze=ge.EMPTY;function Ge(t){return t instanceof ge||t&&"closed"in t&&Ae(t.remove)&&Ae(t.add)&&Ae(t.unsubscribe)}function Te(t){Ae(t)?t():t.unsubscribe()}const Ue={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},pt={setTimeout(t,n,...e){const{delegate:i}=pt;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=pt;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function tt(t){pt.setTimeout(()=>{const{onUnhandledError:n}=Ue;if(!n)throw t;n(t)})}function kt(){}const Mn=Ir("C",void 0,void 0);function Ir(t,n,e){return{kind:t,value:n,error:e}}let wi=null;function pr(t){if(Ue.useDeprecatedSynchronousErrorHandling){const n=!wi;if(n&&(wi={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=wi;if(wi=null,e)throw i}}else t()}class qr extends ge{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Ge(n)&&n.add(this)):this.destination=Ia}static create(n,e,i){return new ka(n,e,i)}next(n){this.isStopped?vo(function ao(t){return Ir("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?vo(function hn(t){return Ir("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?vo(Mn,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ds=Function.prototype.bind;function _o(t,n){return ds.call(t,n)}class rc{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){qs(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){qs(i)}else qs(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){qs(e)}}}class ka extends qr{constructor(n,e,i){let o;if(super(),Ae(n)||!n)o={next:n??void 0,error:e??void 0,complete:i??void 0};else{let r;this&&Ue.useDeprecatedNextContext?(r=Object.create(n),r.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&_o(n.next,r),error:n.error&&_o(n.error,r),complete:n.complete&&_o(n.complete,r)}):o=n}this.destination=new rc(o)}}function qs(t){Ue.useDeprecatedSynchronousErrorHandling?function ni(t){Ue.useDeprecatedSynchronousErrorHandling&&wi&&(wi.errorThrown=!0,wi.error=t)}(t):tt(t)}function vo(t,n){const{onStoppedNotification:e}=Ue;e&&pt.setTimeout(()=>e(t,n))}const Ia={closed:!0,next:kt,error:function el(t){throw t},complete:kt},ea="function"==typeof Symbol&&Symbol.observable||"@@observable";function gr(t){return t}function ac(t){return 0===t.length?gr:1===t.length?t[0]:function(e){return t.reduce((i,o)=>o(i),e)}}let On=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,o){const r=function Go(t){return t&&t instanceof qr||function nl(t){return t&&Ae(t.next)&&Ae(t.error)&&Ae(t.complete)}(t)&&Ge(t)}(e)?e:new ka(e,i,o);return pr(()=>{const{operator:a,source:s}=this;r.add(a?a.call(r,s):s?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=tl(i))((o,r)=>{const a=new ka({next:s=>{try{e(s)}catch(l){r(l),a.unsubscribe()}},error:r,complete:o});this.subscribe(a)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[ea](){return this}pipe(...e){return ac(e)(this)}toPromise(e){return new(e=tl(e))((i,o)=>{let r;this.subscribe(a=>r=a,a=>o(a),()=>i(r))})}}return t.create=n=>new t(n),t})();function tl(t){var n;return null!==(n=t??Ue.Promise)&&void 0!==n?n:Promise}const Ci=ke(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let vt=(()=>{class t extends On{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new Yf(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new Ci}next(e){pr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){pr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){pr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:o,observers:r}=this;return i||o?ze:(this.currentObservers=null,r.push(e),new ge(()=>{this.currentObservers=null,ne(r,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:o,isStopped:r}=this;i?e.error(o):r&&e.complete()}asObservable(){const e=new On;return e.source=this,e}}return t.create=(n,e)=>new Yf(n,e),t})();class Yf extends vt{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:ze}}class hi extends vt{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function Qu(t){return Ae(t?.lift)}function $n(t){return n=>{if(Qu(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Pn(t,n,e,i,o){return new zf(t,n,e,i,o)}class zf extends qr{constructor(n,e,i,o,r,a){super(n),this.onFinalize=r,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){n.error(l)}}:super._next,this._error=o?function(s){try{o(s)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function Bt(t,n){return $n((e,i)=>{let o=0;e.subscribe(Pn(i,r=>{i.next(t.call(n,r,o++))}))})}const Vf="https://g.co/ng/security#xss";class S extends Error{constructor(n,e){super(function ue(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function et(t){return{toString:t}.toString()}const Ct="__parameters__";function Nn(t,n,e){return et(()=>{const i=function fi(t){return function(...e){if(t){const i=t(...e);for(const o in i)this[o]=i[o]}}}(n);function o(...r){if(this instanceof o)return i.apply(this,r),this;const a=new o(...r);return s.annotation=a,s;function s(l,c,u){const d=l.hasOwnProperty(Ct)?l[Ct]:Object.defineProperty(l,Ct,{value:[]})[Ct];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(a),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}const Gt=globalThis;function vn(t){for(let n in t)if(t[n]===vn)return n;throw Error("Could not find renamed property on target object.")}function ay(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function li(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(li).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function sy(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const qj=vn({__forward_ref__:vn});function Dn(t){return t.__forward_ref__=Dn,t.toString=function(){return li(this())},t}function Vt(t){return Zf(t)?t():t}function Zf(t){return"function"==typeof t&&t.hasOwnProperty(qj)&&t.__forward_ref__===Dn}function hs(t,n,e){t!=n&&function Ht(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(e,t,n,"==")}function $e(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function en(t){return{providers:t.providers||[],imports:t.imports||[]}}function Gf(t){return Ax(t,Wf)||Ax(t,kx)}function Ax(t,n){return t.hasOwnProperty(n)?t[n]:null}function Uf(t){return t&&(t.hasOwnProperty(ly)||t.hasOwnProperty(r3))?t[ly]:null}const Wf=vn({\u0275prov:vn}),ly=vn({\u0275inj:vn}),kx=vn({ngInjectableDef:vn}),r3=vn({ngInjectorDef:vn});class He{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=$e({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function fy(t){return t&&!!t.\u0275providers}const Ku=vn({\u0275cmp:vn}),py=vn({\u0275dir:vn}),gy=vn({\u0275pipe:vn}),Ox=vn({\u0275mod:vn}),Oa=vn({\u0275fac:vn}),qu=vn({__NG_ELEMENT_ID__:vn}),Rx=vn({__NG_ENV_ID__:vn});function Jt(t){return"string"==typeof t?t:null==t?"":String(t)}function my(t,n){throw new S(-201,!1)}var fn=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(fn||{});let by;function Px(){return by}function Po(t){const n=by;return by=t,n}function Nx(t,n,e){const i=Gf(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&fn.Optional?null:void 0!==n?n:void my()}const ed={},yy="__NG_DI_FLAG__",Xf="ngTempTokenPath",d3=/\n/gm,Fx="__source";let sc;function fs(t){const n=sc;return sc=t,n}function p3(t,n=fn.Default){if(void 0===sc)throw new S(-203,!1);return null===sc?Nx(t,void 0,n):sc.get(t,n&fn.Optional?null:void 0,n)}function Me(t,n=fn.Default){return(Px()||p3)(Vt(t),n)}function Pe(t,n=fn.Default){return Me(t,Jf(n))}function Jf(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function _y(t){const n=[];for(let e=0;eArray.isArray(e)?cc(e,n):n(e))}function jx(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Qf(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Xo(t,n,e){let i=uc(t,n);return i>=0?t[1|i]=e:(i=~i,function Bx(t,n,e,i){let o=t.length;if(o==n)t.push(e,i);else if(1===o)t.push(i,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>n;)t[o]=t[o-2],o--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function wy(t,n){const e=uc(t,n);if(e>=0)return t[1|e]}function uc(t,n){return function Hx(t,n,e){let i=0,o=t.length>>e;for(;o!==i;){const r=i+(o-i>>1),a=t[r<n?o=r:i=r+1}return~(o<n){a=r-1;break}}}for(;r-1){let r;for(;++or?"":o[u+1].toLowerCase(),2&i&&c!==d){if(Pr(i))return!1;a=!0}}}}else{if(!a&&!Pr(i)&&!Pr(l))return!1;if(a&&Pr(l))continue;a=!1,i=l|1&i}}return Pr(i)||a}function Pr(t){return 0==(1&t)}function E3(t,n,e,i){if(null===n)return-1;let o=0;if(i||!e){let r=!1;for(;o-1)for(e++;e0?'="'+s+'"':"")+"]"}else 8&i?o+="."+a:4&i&&(o+=" "+a);else""!==o&&!Pr(a)&&(n+=Ux(r,o),o=""),i=a,r=r||!Pr(i);e++}return""!==o&&(n+=Ux(r,o)),n}function pn(t){return et(()=>{const n=Xx(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===ep.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Rr.Emulated,styles:t.styles||xn,_:null,schemas:t.schemas||null,tView:null,id:""};Jx(e);const i=t.dependencies;return e.directiveDefs=tp(i,!1),e.pipeDefs=tp(i,!0),e.id=function L3(t){let n=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const o of e)n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(e),e})}function P3(t){return dn(t)||ji(t)}function N3(t){return null!==t}function nn(t){return et(()=>({type:t.type,bootstrap:t.bootstrap||xn,declarations:t.declarations||xn,imports:t.imports||xn,exports:t.exports||xn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Wx(t,n){if(null==t)return na;const e={};for(const i in t)if(t.hasOwnProperty(i)){const o=t[i];let r,a,s=Le.None;Array.isArray(o)?(s=o[0],r=o[1],a=o[2]??r):(r=o,a=o),n?(e[r]=s!==Le.None?[i,s]:i,n[r]=a):e[r]=i}return e}function gt(t){return et(()=>{const n=Xx(t);return Jx(n),n})}function Fo(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function dn(t){return t[Ku]||null}function ji(t){return t[py]||null}function Qi(t){return t[gy]||null}function so(t,n){const e=t[Ox]||null;if(!e&&!0===n)throw new Error(`Type ${li(t)} does not have '\u0275mod' property.`);return e}function Xx(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:t.inputs||na,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||xn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Wx(t.inputs,n),outputs:Wx(t.outputs),debugInfo:null}}function Jx(t){t.features?.forEach(n=>n(t))}function tp(t,n){if(!t)return null;const e=n?Qi:P3;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(N3)}function dc(t){return{\u0275providers:t}}function j3(...t){return{\u0275providers:Dy(0,t),\u0275fromNgModule:!0}}function Dy(t,...n){const e=[],i=new Set;let o;const r=a=>{e.push(a)};return cc(n,a=>{const s=a;np(s,r,[],i)&&(o||=[],o.push(s))}),void 0!==o&&Qx(o,r),e}function Qx(t,n){for(let e=0;e{n(r,i)})}}function np(t,n,e,i){if(!(t=Vt(t)))return!1;let o=null,r=Uf(t);const a=!r&&dn(t);if(r||a){if(a&&!a.standalone)return!1;o=t}else{const l=t.ngModule;if(r=Uf(l),!r)return!1;o=l}const s=i.has(o);if(a){if(s)return!1;if(i.add(o),a.dependencies){const l="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const c of l)np(c,n,e,i)}}else{if(!r)return!1;{if(null!=r.imports&&!s){let c;i.add(o);try{cc(r.imports,u=>{np(u,n,e,i)&&(c||=[],c.push(u))})}finally{}void 0!==c&&Qx(c,n)}if(!s){const c=il(o)||(()=>new o);n({provide:o,useFactory:c,deps:xn},o),n({provide:Cy,useValue:o,multi:!0},o),n({provide:ol,useValue:()=>Me(o),multi:!0},o)}const l=r.providers;if(null!=l&&!s){const c=t;Ey(l,u=>{n(u,c)})}}}return o!==t&&void 0!==t.providers}function Ey(t,n){for(let e of t)fy(e)&&(e=e.\u0275providers),Array.isArray(e)?Ey(e,n):n(e)}const B3=vn({provide:String,useValue:vn});function Ty(t){return null!==t&&"object"==typeof t&&B3 in t}function rl(t){return"function"==typeof t}const My=new He(""),ip={},Y3={};let Ay;function op(){return void 0===Ay&&(Ay=new qf),Ay}class Lo{}class hc extends Lo{get destroyed(){return this._destroyed}constructor(n,e,i,o){super(),this.parent=e,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Iy(n,a=>this.processProvider(a)),this.records.set(Yx,fc(void 0,this)),o.has("environment")&&this.records.set(Lo,fc(void 0,this));const r=this.records.get(My);null!=r&&"string"==typeof r.value&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(Cy,xn,fn.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=j(null);try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const e=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),j(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const e=fs(this),i=Po(void 0);try{return n()}finally{fs(e),Po(i)}}get(n,e=ed,i=fn.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Rx))return n[Rx](this);i=Jf(i);const r=fs(this),a=Po(void 0);try{if(!(i&fn.SkipSelf)){let l=this.records.get(n);if(void 0===l){const c=function G3(t){return"function"==typeof t||"object"==typeof t&&t instanceof He}(n)&&Gf(n);l=c&&this.injectableDefInScope(c)?fc(ky(n),ip):null,this.records.set(n,l)}if(null!=l)return this.hydrate(n,l)}return(i&fn.Self?op():this.parent).get(n,e=i&fn.Optional&&e===ed?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Xf]=s[Xf]||[]).unshift(li(n)),r)throw s;return function m3(t,n,e,i){const o=t[Xf];throw n[Fx]&&o.unshift(n[Fx]),t.message=function b3(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let o=li(n);if(Array.isArray(n))o=n.map(li).join(" -> ");else if("object"==typeof n){let r=[];for(let a in n)if(n.hasOwnProperty(a)){let s=n[a];r.push(a+":"+("string"==typeof s?JSON.stringify(s):li(s)))}o=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${o}]: ${t.replace(d3,"\n ")}`}("\n"+t.message,o,e,i),t.ngTokenPath=o,t[Xf]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{Po(a),fs(r)}}resolveInjectorInitializers(){const n=j(null),e=fs(this),i=Po(void 0);try{const r=this.get(ol,xn,fn.Self);for(const a of r)a()}finally{fs(e),Po(i),j(n)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(li(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new S(205,!1)}processProvider(n){let e=rl(n=Vt(n))?n:Vt(n&&n.provide);const i=function $3(t){return Ty(t)?fc(void 0,t.useValue):fc(eS(t),ip)}(n);if(!rl(n)&&!0===n.multi){let o=this.records.get(e);o||(o=fc(void 0,ip,!0),o.factory=()=>_y(o.multi),this.records.set(e,o)),e=n,o.multi.push(n)}this.records.set(e,i)}hydrate(n,e){const i=j(null);try{return e.value===ip&&(e.value=Y3,e.value=e.factory()),"object"==typeof e.value&&e.value&&function Z3(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{j(i)}}injectableDefInScope(n){if(!n.providedIn)return!1;const e=Vt(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){const e=this._onDestroyHooks.indexOf(n);-1!==e&&this._onDestroyHooks.splice(e,1)}}function ky(t){const n=Gf(t),e=null!==n?n.factory:il(t);if(null!==e)return e;if(t instanceof He)throw new S(204,!1);if(t instanceof Function)return function z3(t){if(t.length>0)throw new S(204,!1);const e=function o3(t){return t&&(t[Wf]||t[kx])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new S(204,!1)}function eS(t,n,e){let i;if(rl(t)){const o=Vt(t);return il(o)||ky(o)}if(Ty(t))i=()=>Vt(t.useValue);else if(function qx(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(..._y(t.deps||[]));else if(function Kx(t){return!(!t||!t.useExisting)}(t))i=()=>Me(Vt(t.useExisting));else{const o=Vt(t&&(t.useClass||t.provide));if(!function V3(t){return!!t.deps}(t))return il(o)||ky(o);i=()=>new o(..._y(t.deps))}return i}function fc(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function Iy(t,n){for(const e of t)Array.isArray(e)?Iy(e,n):e&&fy(e)?Iy(e.\u0275providers,n):n(e)}function ia(t,n){t instanceof hc&&t.assertNotDestroyed();const i=fs(t),o=Po(void 0);try{return n()}finally{fs(i),Po(o)}}function tS(){return void 0!==Px()||null!=function f3(){return sc}()}const ci=0,nt=1,It=2,Si=3,Nr=4,lo=5,Jo=6,gc=7,Xn=8,Ki=9,Fr=10,Ut=11,od=12,iS=13,mc=14,pi=15,rd=16,bc=17,Ra=18,ad=19,oS=20,ms=21,sp=22,al=23,Qt=25,Ry=1,oa=7,yc=9,Di=10;var Py=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Py||{});function co(t){return Array.isArray(t)&&"object"==typeof t[Ry]}function uo(t){return Array.isArray(t)&&!0===t[Ry]}function Ny(t){return 0!=(4&t.flags)}function sl(t){return t.componentOffset>-1}function cp(t){return 1==(1&t.flags)}function Lr(t){return!!t.template}function Fy(t){return 0!=(512&t[It])}class r4{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function lS(t,n,e,i){null!==n?n.applyValueToInputSignal(n,i):t[e]=i}function Gi(){return cS}function cS(t){return t.type.prototype.ngOnChanges&&(t.setInput=s4),a4}function a4(){const t=dS(this),n=t?.current;if(n){const e=t.previous;if(e===na)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function s4(t,n,e,i,o){const r=this.declaredInputs[i],a=dS(t)||function l4(t,n){return t[uS]=n}(t,{previous:na,current:null}),s=a.current||(a.current={}),l=a.previous,c=l[r];s[r]=new r4(c&&c.currentValue,e,l===na),lS(t,n,o,e)}Gi.ngInherit=!0;const uS="__ngSimpleChanges__";function dS(t){return t[uS]||null}const ra=function(t,n,e){},hS="svg";let pS=!1;function Bn(t){for(;Array.isArray(t);)t=t[ci];return t}function ld(t,n){return Bn(n[t])}function wo(t,n){return Bn(n[t.index])}function cd(t,n){return t.data[n]}function _c(t,n){return t[n]}function Qo(t,n){const e=n[t];return co(e)?e:e[ci]}function Yy(t){return 128==(128&t[It])}function aa(t,n){return null==n?null:t[n]}function gS(t){t[bc]=0}function p4(t){1024&t[It]||(t[It]|=1024,Yy(t)&&ud(t))}function zy(t){return!!(9216&t[It]||t[al]?.dirty)}function $y(t){t[Fr].changeDetectionScheduler?.notify(1),zy(t)?ud(t):64&t[It]&&(function u4(){return pS}()?(t[It]|=1024,ud(t)):t[Fr].changeDetectionScheduler?.notify())}function ud(t){t[Fr].changeDetectionScheduler?.notify();let n=ll(t);for(;null!==n&&!(8192&n[It])&&(n[It]|=8192,Yy(n));)n=ll(n)}function up(t,n){if(256==(256&t[It]))throw new S(911,!1);null===t[ms]&&(t[ms]=[]),t[ms].push(n)}function ll(t){const n=t[Si];return uo(n)?n[Si]:n}const Wt={lFrame:DS(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function yS(){return Wt.bindingsEnabled}function vc(){return null!==Wt.skipHydrationRootTNode}function je(){return Wt.lFrame.lView}function gn(){return Wt.lFrame.tView}function Yt(t){return Wt.lFrame.contextLView=t,t[Xn]}function zt(t){return Wt.lFrame.contextLView=null,t}function Fn(){let t=_S();for(;null!==t&&64===t.type;)t=t.parent;return t}function _S(){return Wt.lFrame.currentTNode}function dd(){const t=Wt.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function sa(t,n){const e=Wt.lFrame;e.currentTNode=t,e.isParent=n}function Zy(){return Wt.lFrame.isParent}function Gy(){Wt.lFrame.isParent=!1}function Co(){const t=Wt.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function jr(){return Wt.lFrame.bindingIndex++}function Na(t){const n=Wt.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function CS(t){Wt.lFrame.inI18n=t}function D4(t,n){const e=Wt.lFrame;e.bindingIndex=e.bindingRootIndex=t,Uy(n)}function Uy(t){Wt.lFrame.currentDirectiveIndex=t}function Wy(t){const n=Wt.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function Xy(){return Wt.lFrame.currentQueryIndex}function dp(t){Wt.lFrame.currentQueryIndex=t}function T4(t){const n=t[nt];return 2===n.type?n.declTNode:1===n.type?t[lo]:null}function xS(t,n,e){if(e&fn.SkipSelf){let o=n,r=t;for(;!(o=o.parent,null!==o||e&fn.Host||(o=T4(r),null===o||(r=r[mc],10&o.type))););if(null===o)return!1;n=o,t=r}const i=Wt.lFrame=SS();return i.currentTNode=n,i.lView=t,!0}function Jy(t){const n=SS(),e=t[nt];Wt.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function SS(){const t=Wt.lFrame,n=null===t?null:t.child;return null===n?DS(t):n}function DS(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function ES(){const t=Wt.lFrame;return Wt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const TS=ES;function Qy(){const t=ES();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ho(){return Wt.lFrame.selectedIndex}function cl(t){Wt.lFrame.selectedIndex=t}function Jn(){const t=Wt.lFrame;return cd(t.tView,t.selectedIndex)}function hd(){Wt.lFrame.currentNamespace=hS}let AS=!0;function fd(){return AS}function la(t){AS=t}function hp(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[l]<0&&(t[bc]+=65536),(s>14>16&&(3&t[It])===n&&(t[It]+=16384,IS(s,r)):IS(s,r)}const wc=-1;class pd{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function e_(t){return t!==wc}function gd(t){return 32767&t}function md(t,n){let e=function j4(t){return t>>16}(t),i=n;for(;e>0;)i=i[mc],e--;return i}let t_=!0;function gp(t){const n=t_;return t_=t,n}const OS=255,RS=5;let B4=0;const ca={};function mp(t,n){const e=PS(t,n);if(-1!==e)return e;const i=n[nt];i.firstCreatePass&&(t.injectorIndex=n.length,n_(i.data,t),n_(n,null),n_(i.blueprint,null));const o=bp(t,n),r=t.injectorIndex;if(e_(o)){const a=gd(o),s=md(o,n),l=s[nt].data;for(let c=0;c<8;c++)n[r+c]=s[a+c]|l[a+c]}return n[r+8]=o,r}function n_(t,n){t.push(0,0,0,0,0,0,0,0,n)}function PS(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function bp(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,o=n;for(;null!==o;){if(i=YS(o),null===i)return wc;if(e++,o=o[mc],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return wc}function i_(t,n,e){!function H4(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(qu)&&(i=e[qu]),null==i&&(i=e[qu]=B4++);const o=i&OS;n.data[t+(o>>RS)]|=1<=0?n&OS:V4:n}(e);if("function"==typeof r){if(!xS(n,t,i))return i&fn.Host?NS(o,0,i):FS(n,e,i,o);try{let a;if(a=r(i),null!=a||i&fn.Optional)return a;my()}finally{TS()}}else if("number"==typeof r){let a=null,s=PS(t,n),l=wc,c=i&fn.Host?n[pi][lo]:null;for((-1===s||i&fn.SkipSelf)&&(l=-1===s?bp(t,n):n[s+8],l!==wc&&HS(i,!1)?(a=n[nt],s=gd(l),n=md(l,n)):s=-1);-1!==s;){const u=n[nt];if(BS(r,s,u.data)){const d=z4(s,n,e,a,i,c);if(d!==ca)return d}l=n[s+8],l!==wc&&HS(i,n[nt].data[s+8]===c)&&BS(r,s,n)?(a=u,s=gd(l),n=md(l,n)):s=-1}}return o}function z4(t,n,e,i,o,r){const a=n[nt],s=a.data[t+8],u=yp(s,a,e,null==i?sl(s)&&t_:i!=a&&0!=(3&s.type),o&fn.Host&&r===s);return null!==u?ul(n,a,u,s):ca}function yp(t,n,e,i,o){const r=t.providerIndexes,a=n.data,s=1048575&r,l=t.directiveStart,u=r>>20,h=o?s+u:t.directiveEnd;for(let p=i?s:s+u;p=l&&g.type===e)return p}if(o){const p=a[l];if(p&&Lr(p)&&p.type===e)return l}return null}function ul(t,n,e,i){let o=t[e];const r=n.data;if(function P4(t){return t instanceof pd}(o)){const a=o;a.resolving&&function l3(t,n){throw n&&n.join(" > "),new S(-200,t)}(function An(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Jt(t)}(r[e]));const s=gp(a.canSeeViewProviders);a.resolving=!0;const c=a.injectImpl?Po(a.injectImpl):null;xS(t,i,fn.Default);try{o=t[e]=a.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function O4(t,n,e){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=n.type.prototype;if(i){const a=cS(n);(e.preOrderHooks??=[]).push(t,a),(e.preOrderCheckHooks??=[]).push(t,a)}o&&(e.preOrderHooks??=[]).push(0-t,o),r&&((e.preOrderHooks??=[]).push(t,r),(e.preOrderCheckHooks??=[]).push(t,r))}(e,r[e],n)}finally{null!==c&&Po(c),gp(s),a.resolving=!1,TS()}}return o}function BS(t,n,e){return!!(e[n+(t>>RS)]&1<{const n=t.prototype.constructor,e=n[Oa]||o_(n),i=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==i;){const r=o[Oa]||o_(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function o_(t){return Zf(t)?()=>{const n=o_(Vt(t));return n&&n()}:il(t)}function YS(t){const n=t[nt],e=n.type;return 2===e?n.declTNode:1===e?t[lo]:null}function ua(t){return function Y4(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let o=0;for(;o{class t{static{this.THROW_IF_NOT_FOUND=ed}static{this.NULL=new qf}static create(e,i){if(Array.isArray(e))return GS({name:""},i,e,"");{const o=e.name??"";return GS({name:o},e.parent,e.providers,o)}}static{this.\u0275prov=$e({token:t,providedIn:"any",factory:()=>Me(Yx)})}static{this.__NG_ELEMENT_ID__=-1}}return t})();function a_(t){return t.ngOriginalError}class Ko{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&a_(n);for(;e&&a_(e);)e=a_(e);return e||null}}const XS=new He("",{providedIn:"root",factory:()=>Pe(Ko).handleError.bind(void 0)});let Sc=(()=>{class t{static{this.__NG_ELEMENT_ID__=e8}static{this.__NG_ENV_ID__=e=>e}}return t})();class q4 extends Sc{constructor(n){super(),this._lView=n}onDestroy(n){return up(this._lView,n),()=>function Vy(t,n){if(null===t[ms])return;const e=t[ms].indexOf(n);-1!==e&&t[ms].splice(e,1)}(this._lView,n)}}function e8(){return new q4(je())}function t8(){return Dc(Fn(),je())}function Dc(t,n){return new Zt(wo(t,n))}let Zt=(()=>{class t{constructor(e){this.nativeElement=e}static{this.__NG_ELEMENT_ID__=t8}}return t})();function QS(t){return t instanceof Zt?t.nativeElement:t}function s_(t){return n=>{setTimeout(t,void 0,n)}}const Ot=class n8 extends vt{constructor(n=!1){super(),this.destroyRef=void 0,this.__isAsync=n,tS()&&(this.destroyRef=Pe(Sc,{optional:!0})??void 0)}emit(n){const e=j(null);try{super.next(n)}finally{j(e)}}subscribe(n,e,i){let o=n,r=e||(()=>null),a=i;if(n&&"object"==typeof n){const l=n;o=l.next?.bind(l),r=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(r=s_(r),o&&(o=s_(o)),a&&(a=s_(a)));const s=super.subscribe({next:o,error:r,complete:a});return n instanceof ge&&n.add(s),s}};function i8(){return this._results[Symbol.iterator]()}class Fa{get changes(){return this._changes??=new Ot}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const e=Fa.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=i8)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){this.dirty=!1;const i=function No(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function w3(t,n,e){if(t.length!==n.length)return!1;for(let i=0;iD8}),D8="ng",bD=new He(""),La=new He("",{providedIn:"platform",factory:()=>"unknown"}),xo=new He(""),h_=new He("",{providedIn:"root",factory:()=>bs().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let yD=()=>null;function v_(t,n,e=!1){return yD(t,n,e)}const xD=new He("",{providedIn:"root",factory:()=>!1});let kp,Ip;function Mc(t){return function S_(){if(void 0===kp&&(kp=null,Gt.trustedTypes))try{kp=Gt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return kp}()?.createHTML(t)||t}function D_(){if(void 0===Ip&&(Ip=null,Gt.trustedTypes))try{Ip=Gt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ip}function DD(t){return D_()?.createHTML(t)||t}function TD(t){return D_()?.createScriptURL(t)||t}class dl{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Vf})`}}class B8 extends dl{getTypeName(){return"HTML"}}class H8 extends dl{getTypeName(){return"Style"}}class Y8 extends dl{getTypeName(){return"Script"}}class z8 extends dl{getTypeName(){return"URL"}}class $8 extends dl{getTypeName(){return"ResourceURL"}}function qo(t){return t instanceof dl?t.changingThisBreaksApplicationSecurity:t}function da(t,n){const e=function V8(t){return t instanceof dl&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${Vf})`)}return e===n}function MD(t){const n=new Q8(t);return function K8(){try{return!!(new window.DOMParser).parseFromString(Mc(""),"text/html")}catch{return!1}}()?new J8(n):n}class J8{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(Mc(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class Q8{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=Mc(n),e}}const q8=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Op(t){return(t=String(t)).match(q8)?t:"unsafe:"+t}function ja(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function xd(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const AD=ja("area,br,col,hr,img,wbr"),kD=ja("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ID=ja("rp,rt"),E_=xd(AD,xd(kD,ja("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),xd(ID,ja("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),xd(ID,kD)),T_=ja("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),OD=xd(T_,ja("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ja("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),e5=ja("script,style,template");class t5{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0,o=[];for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)o.push(e),e=o5(e);else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=i5(e);if(r){e=r;break}e=o.pop()}return this.buf.join("")}startElement(n){const e=RD(n).toLowerCase();if(!E_.hasOwnProperty(e))return this.sanitizedSomething=!0,!e5.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let o=0;o"),!0}endElement(n){const e=RD(n).toLowerCase();E_.hasOwnProperty(e)&&!AD.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(ND(n))}}function i5(t){const n=t.nextSibling;if(n&&t!==n.previousSibling)throw PD(n);return n}function o5(t){const n=t.firstChild;if(n&&function n5(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(t,n))throw PD(n);return n}function RD(t){const n=t.nodeName;return"string"==typeof n?n:"FORM"}function PD(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}const r5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,a5=/([^\#-~ |!])/g;function ND(t){return t.replace(/&/g,"&").replace(r5,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(a5,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let Rp;function FD(t,n){let e=null;try{Rp=Rp||MD(t);let i=n?String(n):"";e=Rp.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=e.innerHTML,e=Rp.getInertBodyElement(i)}while(i!==r);return Mc((new t5).sanitizeChildren(M_(e)||e))}finally{if(e){const i=M_(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function M_(t){return"content"in t&&function s5(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ui=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ui||{});function A_(t){const n=Dd();return n?DD(n.sanitize(Ui.HTML,t)||""):da(t,"HTML")?DD(qo(t)):FD(bs(),Jt(t))}function Sd(t){const n=Dd();return n?n.sanitize(Ui.URL,t)||"":da(t,"URL")?qo(t):Op(Jt(t))}function LD(t){const n=Dd();if(n)return TD(n.sanitize(Ui.RESOURCE_URL,t)||"");if(da(t,"ResourceURL"))return TD(qo(t));throw new S(904,!1)}function Dd(){const t=je();return t&&t[Fr].sanitizer}const f5=/^>|^->||--!>|)/g,g5="\u200b$1\u200b";function er(t){return t instanceof Function?t():t}var _s=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(_s||{});let R_;function P_(t,n){return R_(t,n)}function kc(t,n,e,i,o){if(null!=i){let r,a=!1;uo(i)?r=i:co(i)&&(a=!0,i=i[ci]);const s=Bn(i);0===t&&null!==e?null==o?JD(n,e,s):hl(n,e,s,o||null,!0):1===t&&null!==e?hl(n,e,s,o||null,!0):2===t?function Md(t,n,e){const i=jp(t,n);i&&function P5(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,s,a):3===t&&n.destroyNode(s),null!=r&&function L5(t,n,e,i,o){const r=e[oa];r!==Bn(e)&&kc(n,t,i,r,o);for(let s=Di;sn.replace(p5,g5))}(n))}function Fp(t,n,e){return t.createElement(n,e)}function UD(t,n){n[Fr].changeDetectionScheduler?.notify(1),Hp(t,n,n[Ut],2,null,null)}function WD(t,n){const e=t[yc],i=e.indexOf(n);e.splice(i,1)}function Ed(t,n){if(t.length<=Di)return;const e=Di+n,i=t[e];if(i){const o=i[rd];null!==o&&o!==t&&WD(o,i),n>0&&(t[e-1][Nr]=i[Nr]);const r=Qf(t,Di+n);!function T5(t,n){UD(t,n),n[ci]=null,n[lo]=null}(i[nt],i);const a=r[Ra];null!==a&&a.detachView(r[nt]),i[Si]=null,i[Nr]=null,i[It]&=-129}return i}function Lp(t,n){if(!(256&n[It])){const e=n[Ut];e.destroyNode&&Hp(t,n,e,3,null,null),function A5(t){let n=t[od];if(!n)return L_(t[nt],t);for(;n;){let e=null;if(co(n))e=n[od];else{const i=n[Di];i&&(e=i)}if(!e){for(;n&&!n[Nr]&&n!==t;)co(n)&&L_(n[nt],n),n=n[Si];null===n&&(n=t),co(n)&&L_(n[nt],n),e=n&&n[Nr]}n=e}}(n)}}function L_(t,n){if(256&n[It])return;const e=j(null);try{n[It]&=-129,n[It]|=256,n[al]&&function ae(t){if(B(t),me(t))for(let n=0;n=0?i[a]():i[-a].unsubscribe(),r+=2}else e[r].call(i[e[r+1]]);null!==i&&(n[gc]=null);const o=n[ms];if(null!==o){n[ms]=null;for(let r=0;r-1){const{encapsulation:r}=t.data[i.directiveStart+o];if(r===Rr.None||r===Rr.Emulated)return null}return wo(i,e)}}function hl(t,n,e,i,o){t.insertBefore(n,e,i,o)}function JD(t,n,e){t.appendChild(n,e)}function QD(t,n,e,i,o){null!==i?hl(t,n,e,i,o):JD(t,n,e)}function jp(t,n){return t.parentNode(n)}function KD(t,n,e){return eE(t,n,e)}function qD(t,n,e){return 40&t.type?wo(t,e):null}let B_,eE=qD;function tE(t,n){eE=t,B_=n}function Bp(t,n,e,i){const o=j_(t,i,n),r=n[Ut],s=KD(i.parent||n[lo],i,n);if(null!=o)if(Array.isArray(e))for(let l=0;lQt&&sE(t,n,Qt,!1),ra(a?2:0,o),e(i,o)}finally{cl(r),ra(a?3:1,o)}}function V_(t,n,e){if(Ny(n)){const i=j(null);try{const r=n.directiveEnd;for(let a=n.directiveStart;anull;function hE(t,n,e,i,o){for(let r in n){if(!n.hasOwnProperty(r))continue;const a=n[r];if(void 0===a)continue;i??={};let s,l=Le.None;Array.isArray(a)?(s=a[0],l=a[1]):s=a;let c=r;if(null!==o){if(!o.hasOwnProperty(r))continue;c=o[r]}0===t?fE(i,e,c,s,l):fE(i,e,c,s)}return i}function fE(t,n,e,i,o){let r;t.hasOwnProperty(e)?(r=t[e]).push(n,i):r=t[e]=[n,i],void 0!==o&&r.push(o)}function Bo(t,n,e,i,o,r,a,s){const l=wo(n,e);let u,c=n.inputs;!s&&null!=c&&(u=c[i])?(K_(t,e,u,i,o),sl(n)&&function J5(t,n){const e=Qo(n,t);16&e[It]||(e[It]|=64)}(e,n.index)):3&n.type&&(i=function X5(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),o=null!=a?a(o,n.value||"",i):o,r.setProperty(l,i,o))}function W_(t,n,e,i){if(yS()){const o=null===i?null:{"":-1},r=function nB(t,n){const e=t.directiveRegistry;let i=null,o=null;if(e)for(let r=0;r0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=s&&a.push(s),a.push(e,i,r)}}(t,n,i,Ad(t,e,o.hostVars,tn),o)}function ha(t,n,e,i,o,r){const a=wo(t,n);!function J_(t,n,e,i,o,r,a){if(null==r)t.removeAttribute(n,o,e);else{const s=null==a?Jt(r):a(r,i||"",o);t.setAttribute(n,o,s,e)}}(n[Ut],a,r,t.value,e,i,o)}function lB(t,n,e,i,o,r){const a=r[n];if(null!==a)for(let s=0;s0&&(e[o-1][Nr]=n),i!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{ud(t.lView)},consumerOnSignalRead(){this.lView[al]=this}},SE=100;function Vp(t,n=!0,e=0){const i=t[Fr],o=i.rendererFactory;o.begin?.();try{!function bB(t,n){tv(t,n);let e=0;for(;zy(t);){if(e===SE)throw new S(103,!1);e++,tv(t,1)}}(t,e)}catch(a){throw n&&$p(t,a),a}finally{o.end?.(),i.inlineEffectRunner?.flush()}}function yB(t,n,e,i){const o=n[It];if(256==(256&o))return;n[Fr].inlineEffectRunner?.flush(),Jy(n);let a=null,s=null;(function _B(t){return 2!==t.type})(t)&&(s=function fB(t){return t[al]??function pB(t){const n=xE.pop()??Object.create(mB);return n.lView=t,n}(t)}(n),a=function ee(t){return t&&(t.nextProducerIndex=0),j(t)}(s));try{gS(n),function wS(t){return Wt.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&cE(t,n,e,2,i);const l=3==(3&o);if(l){const d=t.preOrderCheckHooks;null!==d&&fp(n,d,null)}else{const d=t.preOrderHooks;null!==d&&pp(n,d,0,null),Ky(n,0)}if(function vB(t){for(let n=sD(t);null!==n;n=lD(n)){if(!(n[It]&Py.HasTransplantedViews))continue;const e=n[yc];for(let i=0;it.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}(s,a),function gB(t){t.lView[al]!==t&&(t.lView=null,xE.push(t))}(s)),Qy()}}function DE(t,n){for(let e=sD(t);null!==e;e=lD(e))for(let i=Di;i-1&&(Ed(n,i),Qf(e,i))}this._attachedToViewContainer=!1}Lp(this._lView[nt],this._lView)}onDestroy(n){up(this._lView,n)}markForCheck(){Rd(this._cdRefInjectingView||this._lView)}detach(){this._lView[It]&=-129}reattach(){$y(this._lView),this._lView[It]|=128}detectChanges(){this._lView[It]|=1024,Vp(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,UD(this._lView[nt],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=n,$y(this._lView)}}let po=(()=>{class t{static{this.__NG_ELEMENT_ID__=SB}}return t})();const CB=po,xB=class extends CB{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e)}createEmbeddedViewImpl(n,e,i){const o=kd(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:e,dehydratedView:i});return new Pd(o)}};function SB(){return Zp(Fn(),je())}function Zp(t,n){return 4&t.type?new xB(n,t,Dc(t,n)):null}let RE=()=>null;function Rc(t,n){return RE(t,n)}class Jp{}class WB{}class PE{}class JB{resolveComponentFactory(n){throw function XB(t){const n=Error(`No component factory found for ${li(t)}.`);return n.ngComponent=t,n}(n)}}let fl=(()=>{class t{static{this.NULL=new JB}}return t})();class sv{}let Ha=(()=>{class t{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function QB(){const t=je(),e=Qo(Fn().index,t);return(co(e)?e:t)[Ut]}()}}return t})(),KB=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:()=>null})}}return t})();const lv={},FE=new Set;function fa(t){FE.has(t)||(FE.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function LE(...t){}class wt{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ot(!1),this.onMicrotaskEmpty=new Ot(!1),this.onStable=new Ot(!1),this.onError=new Ot(!1),typeof Zone>"u")throw new S(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&e,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function qB(){const t="function"==typeof Gt.requestAnimationFrame;let n=Gt[t?"requestAnimationFrame":"setTimeout"],e=Gt[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&e){const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);const o=e[Zone.__symbol__("OriginalDelegate")];o&&(e=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function n6(t){const n=()=>{!function t6(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Gt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,uv(t),t.isCheckStableRunning=!0,cv(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),uv(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,o,r,a,s)=>{if(function i6(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(s))return e.invokeTask(o,r,a,s);try{return jE(t),e.invokeTask(o,r,a,s)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),BE(t)}},onInvoke:(e,i,o,r,a,s,l)=>{try{return jE(t),e.invoke(o,r,a,s,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),BE(t)}},onHasTask:(e,i,o,r)=>{e.hasTask(o,r),i===o&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,uv(t),cv(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,o,r)=>(e.handleError(o,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!wt.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(wt.isInAngularZone())throw new S(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,o){const r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+o,n,e6,LE,LE);try{return r.runTask(a,e,i)}finally{r.cancelTask(a)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const e6={};function cv(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function uv(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function jE(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function BE(t){t._nesting--,cv(t)}class HE{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ot,this.onMicrotaskEmpty=new Ot,this.onStable=new Ot,this.onError=new Ot}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,o){return n.apply(e,i)}}var pl=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(pl||{});const YE={destroy(){}};function zE(t,n){!n&&function rp(t){if(!tS())throw new S(-203,!1)}();const e=n?.injector??Pe(gi);if(!function ys(t){return"browser"===(t??Pe(gi)).get(La)}(e))return YE;fa("NgAfterNextRender");const i=e.get(Bd),o=i.handler??=new VE,r=n?.phase??pl.MixedReadWrite,a=()=>{o.unregister(l),s()},s=e.get(Sc).onDestroy(a),l=ia(e,()=>new $E(r,()=>{a(),t()}));return o.register(l),{destroy:a}}class $E{constructor(n,e){this.phase=n,this.callbackFn=e,this.zone=Pe(wt),this.errorHandler=Pe(Ko,{optional:!0}),Pe(Jp,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(n){this.errorHandler?.handleError(n)}}}class VE{constructor(){this.executingCallbacks=!1,this.buckets={[pl.EarlyRead]:new Set,[pl.Write]:new Set,[pl.MixedReadWrite]:new Set,[pl.Read]:new Set},this.deferredCallbacks=new Set}register(n){(this.executingCallbacks?this.deferredCallbacks:this.buckets[n.phase]).add(n)}unregister(n){this.buckets[n.phase].delete(n),this.deferredCallbacks.delete(n)}execute(){this.executingCallbacks=!0;for(const n of Object.values(this.buckets))for(const e of n)e.invoke();this.executingCallbacks=!1;for(const n of this.deferredCallbacks)this.buckets[n.phase].add(n);this.deferredCallbacks.clear()}destroy(){for(const n of Object.values(this.buckets))n.clear();this.deferredCallbacks.clear()}}let Bd=(()=>{class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const e=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const i of e)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static{this.\u0275prov=$e({token:t,providedIn:"root",factory:()=>new t})}}return t})();function Kp(t,n,e){let i=e?t.styles:null,o=e?t.classes:null,r=0;if(null!==n)for(let a=0;a0&&rE(t,e,r.join(" "))}}(p,pe,b,i),void 0!==e&&function m6(t,n,e){const i=t.projection=[];for(let o=0;o{class t{static{this.__NG_ELEMENT_ID__=y6}}return t})();function y6(){return QE(Fn(),je())}const _6=So,XE=class extends _6{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Dc(this._hostTNode,this._hostLView)}get injector(){return new Hi(this._hostTNode,this._hostLView)}get parentInjector(){const n=bp(this._hostTNode,this._hostLView);if(e_(n)){const e=md(n,this._hostLView),i=gd(n);return new Hi(e[nt].data[i+8],e)}return new Hi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=JE(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-Di}createEmbeddedView(n,e,i){let o,r;"number"==typeof i?o=i:null!=i&&(o=i.index,r=i.injector);const a=Rc(this._lContainer,n.ssrId),s=n.createEmbeddedViewImpl(e||{},r,a);return this.insertImpl(s,o,Oc(this._hostTNode,a)),s}createComponent(n,e,i,o,r){const a=n&&!function id(t){return"function"==typeof t}(n);let s;if(a)s=e;else{const g=e||{};s=g.index,i=g.injector,o=g.projectableNodes,r=g.environmentInjector||g.ngModuleRef}const l=a?n:new zd(dn(n)),c=i||this.parentInjector;if(!r&&null==l.ngModule){const b=(a?c:this.parentInjector).get(Lo,null);b&&(r=b)}const u=dn(l.componentType??{}),d=Rc(this._lContainer,u?.id??null),p=l.create(c,o,d?.firstChild??null,r);return this.insertImpl(p.hostView,s,Oc(this._hostTNode,d)),p}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){const o=n._lView;if(function f4(t){return uo(t[Si])}(o)){const s=this.indexOf(n);if(-1!==s)this.detach(s);else{const l=o[Si],c=new XE(l,l[lo],l[Si]);c.detach(c.indexOf(n))}}const r=this._adjustIndex(e),a=this._lContainer;return Id(a,o,r,i),n.attachToViewContainerRef(),jx(pv(a),r,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=JE(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=Ed(this._lContainer,e);i&&(Qf(pv(this._lContainer),e),Lp(i[nt],i))}detach(n){const e=this._adjustIndex(n,-1),i=Ed(this._lContainer,e);return i&&null!=Qf(pv(this._lContainer),e)?new Pd(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function JE(t){return t[8]}function pv(t){return t[8]||(t[8]=[])}function QE(t,n){let e;const i=n[t.index];return uo(i)?e=i:(e=mE(i,n,null,t),n[t.index]=e,zp(n,e)),KE(e,n,t,i),new XE(e,t,n)}let KE=function eT(t,n,e,i){if(t[oa])return;let o;o=8&e.type?Bn(i):function v6(t,n){const e=t[Ut],i=e.createComment(""),o=wo(n,t);return hl(e,jp(e,o),i,function N5(t,n){return t.nextSibling(n)}(e,o),!1),i}(n,e),t[oa]=o},gv=()=>!1;class mv{constructor(n){this.queryList=n,this.matches=null}clone(){return new mv(this.queryList)}setDirty(){this.queryList.setDirty()}}class bv{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,o=[];for(let r=0;rn.trim())}(n):n}}class yv{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i0)i.push(a[s/2]);else{const c=r[s+1],u=n[-l];for(let d=Di;d=0;i--){const o=t[i];o.hostVars=n+=o.hostVars,o.hostAttrs=nd(o.hostAttrs,e=nd(e,o.hostAttrs))}}(i)}function H6(t,n){for(const e in n.inputs){if(!n.inputs.hasOwnProperty(e)||t.inputs.hasOwnProperty(e))continue;const i=n.inputs[e];if(void 0!==i&&(t.inputs[e]=i,t.declaredInputs[e]=n.declaredInputs[e],null!==n.inputTransforms)){const o=Array.isArray(i)?i[0]:i;if(!n.inputTransforms.hasOwnProperty(o))continue;t.inputTransforms??={},t.inputTransforms[o]=n.inputTransforms[o]}}}function eg(t){return t===na?{}:t===xn?[]:t}function z6(t,n){const e=t.viewQuery;t.viewQuery=e?(i,o)=>{n(i,o),e(i,o)}:n}function $6(t,n){const e=t.contentQueries;t.contentQueries=e?(i,o,r)=>{n(i,o,r),e(i,o,r)}:n}function V6(t,n){const e=t.hostBindings;t.hostBindings=e?(i,o)=>{n(i,o),e(i,o)}:n}function qi(t){const n=t.inputConfig,e={};for(const i in n)if(n.hasOwnProperty(i)){const o=n[i];Array.isArray(o)&&o[3]&&(e[i]=o[3])}t.inputTransforms=e}class gl{}class DT{}class Sv extends gl{constructor(n,e,i){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new UE(this);const o=so(n);this._bootstrapComponents=er(o.bootstrap),this._r3Injector=US(n,e,[{provide:gl,useValue:this},{provide:fl,useValue:this.componentFactoryResolver},...i],li(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Dv extends DT{constructor(n){super(),this.moduleType=n}create(n){return new Sv(this.moduleType,n,[])}}class ET extends gl{constructor(n){super(),this.componentFactoryResolver=new UE(this),this.instance=null;const e=new hc([...n.providers,{provide:gl,useValue:this},{provide:fl,useValue:this.componentFactoryResolver}],n.parent||op(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function tg(t,n,e=null){return new ET({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}let Cs=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new hi(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function ig(t){return!!Ev(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function Ev(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function pa(t,n,e){return t[n]=e}function Ei(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function ml(t,n,e,i){const o=Ei(t,n,e);return Ei(t,n+1,i)||o}function Mt(t,n,e,i,o,r,a,s){const l=je(),c=gn(),u=t+Qt,d=c.firstCreatePass?function i7(t,n,e,i,o,r,a,s,l){const c=n.consts,u=Ic(n,t,4,a||null,aa(c,s));W_(n,e,u,aa(c,l)),hp(n,u);const d=u.tView=U_(2,u,i,o,r,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,e,i,o,r,a):c.data[u];sa(d,!1);const h=TT(c,l,d,t);fd()&&Bp(c,l,h,d),fo(h,l);const p=mE(h,l,h,d);return l[u]=p,zp(l,p),function qE(t,n,e){return gv(t,n,e)}(p,d,l),cp(d)&&Z_(c,l,d),null!=a&&G_(l,d,s),Mt}let TT=function MT(t,n,e,i){return la(!0),n[Ut].createComment("")};function Kt(t,n,e,i){const o=je();return Ei(o,jr(),n)&&(gn(),ha(Jn(),o,t,n,e,i)),Kt}function zc(t,n,e,i){return Ei(t,jr(),e)?n+Jt(e)+i:tn}function $c(t,n,e,i,o,r){const s=ml(t,function Pa(){return Wt.lFrame.bindingIndex}(),e,o);return Na(2),s?n+Jt(e)+i+Jt(o)+r:tn}function ug(t,n){return t<<17|n<<2}function Ss(t){return t>>17&32767}function Fv(t){return 2|t}function yl(t){return(131068&t)>>2}function Lv(t,n){return-131069&t|n<<2}function jv(t){return 1|t}function rM(t,n,e,i){const o=t[e+1],r=null===n;let a=i?Ss(o):yl(o),s=!1;for(;0!==a&&(!1===s||r);){const c=t[a+1];Y7(t[a],n)&&(s=!0,t[a+1]=i?jv(c):Fv(c)),a=i?Ss(c):yl(c)}s&&(t[e+1]=i?Fv(o):jv(o))}function Y7(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&uc(t,n)>=0}const Yi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function aM(t){return t.substring(Yi.key,Yi.keyEnd)}function sM(t,n){const e=Yi.textEnd;return e===n?-1:(n=Yi.keyEnd=function Z7(t,n,e){for(;n32;)n++;return n}(t,Yi.key=n,e),Jc(t,n,e))}function Jc(t,n,e){for(;n=0;e=sM(n,e))Xo(t,aM(n),!0)}function Br(t,n,e,i){const o=je(),r=gn(),a=Na(2);r.firstUpdatePass&&fM(r,t,a,i),n!==tn&&Ei(o,a,n)&&gM(r,r.data[ho()],o,o[Ut],t,o[a+1]=function nH(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=li(qo(t)))),t}(n,e),i,a)}function Hr(t,n,e,i){const o=gn(),r=Na(2);o.firstUpdatePass&&fM(o,null,r,i);const a=je();if(e!==tn&&Ei(a,r,e)){const s=o.data[ho()];if(bM(s,i)&&!hM(o,r)){let l=i?s.classesWithoutHost:s.stylesWithoutHost;null!==l&&(e=sy(l,e||"")),Bv(o,s,a,e,i)}else!function tH(t,n,e,i,o,r,a,s){o===tn&&(o=xn);let l=0,c=0,u=0=t.expandoStartIndex}function fM(t,n,e,i){const o=t.data;if(null===o[e+1]){const r=o[ho()],a=hM(t,e);bM(r,i)&&null===n&&!a&&(n=!1),n=function X7(t,n,e,i){const o=Wy(t);let r=i?n.residualClasses:n.residualStyles;if(null===o)0===(i?n.classBindings:n.styleBindings)&&(e=Xd(e=Hv(null,t,n,e,i),n.attrs,i),r=null);else{const a=n.directiveStylingLast;if(-1===a||t[a]!==o)if(e=Hv(o,t,n,e,i),null===r){let l=function J7(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==yl(i))return t[Ss(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=Hv(null,t,n,l[1],i),l=Xd(l,n.attrs,i),function Q7(t,n,e,i){t[Ss(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else r=function K7(t,n,e){let i;const o=n.directiveEnd;for(let r=1+n.directiveStylingLast;r0)&&(c=!0)):u=e,o)if(0!==l){const h=Ss(t[s+1]);t[i+1]=ug(h,s),0!==h&&(t[h+1]=Lv(t[h+1],i)),t[s+1]=function L7(t,n){return 131071&t|n<<17}(t[s+1],i)}else t[i+1]=ug(s,0),0!==s&&(t[s+1]=Lv(t[s+1],i)),s=i;else t[i+1]=ug(l,0),0===s?s=i:t[l+1]=Lv(t[l+1],i),l=i;c&&(t[i+1]=Fv(t[i+1])),rM(t,u,i,!0),rM(t,u,i,!1),function H7(t,n,e,i,o){const r=o?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&uc(r,n)>=0&&(e[i+1]=jv(e[i+1]))}(n,u,t,i,r),a=ug(s,l),r?n.classBindings=a:n.styleBindings=a}(o,r,n,e,a,i)}}function Hv(t,n,e,i,o){let r=null;const a=e.directiveEnd;let s=e.directiveStylingLast;for(-1===s?s=e.directiveStart:s++;s0;){const l=t[o],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[o+1];h===tn&&(h=d?xn:void 0);let p=d?wy(h,i):u===i?h:void 0;if(c&&!dg(p)&&(p=wy(l,i)),dg(p)&&(s=p,a))return s;const g=t[o+1];o=a?Ss(g):yl(g)}if(null!==n){let l=r?n.residualClasses:n.residualStyles;null!=l&&(s=wy(l,i))}return s}function dg(t){return void 0!==t}function bM(t,n){return 0!=(t.flags&(n?8:16))}function Yv(t,n,e){Hr(Xo,ma,zc(je(),t,n,e),!0)}class hH{destroy(n){}updateValue(n,e){}swap(n,e){const i=Math.min(n,e),o=Math.max(n,e),r=this.detach(o);if(o-i>1){const a=this.detach(i);this.attach(i,r),this.attach(o,a)}else this.attach(i,r)}move(n,e){this.attach(e,this.detach(n))}}function zv(t,n,e,i,o){return t===e&&Object.is(n,i)?1:Object.is(o(t,n),o(e,i))?-1:0}function $v(t,n,e,i){return!(void 0===n||!n.has(i)||(t.attach(e,n.get(i)),n.delete(i),0))}function yM(t,n,e,i,o){if($v(t,n,i,e(i,o)))t.updateValue(i,o);else{const r=t.create(i,o);t.attach(i,r)}}function _M(t,n,e,i){const o=new Set;for(let r=n;r<=e;r++)o.add(i(r,t.at(r)));return o}class vM{constructor(){this.kvMap=new Map,this._vMap=void 0}has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;const e=this.kvMap.get(n);return void 0!==this._vMap&&this._vMap.has(e)?(this.kvMap.set(n,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,e){if(this.kvMap.has(n)){let i=this.kvMap.get(n);void 0===this._vMap&&(this._vMap=new Map);const o=this._vMap;for(;o.has(i);)i=o.get(i);o.set(i,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,i]of this.kvMap)if(n(i,e),void 0!==this._vMap){const o=this._vMap;for(;o.has(i);)i=o.get(i),n(i,e)}}}function En(t,n,e){fa("NgControlFlow");const i=je(),o=jr(),r=Vv(i,Qt+t);if(Ei(i,o,n)){const s=j(null);try{if(ev(r,0),-1!==n){const l=Zv(i[nt],Qt+n),c=Rc(r,l.tView.ssrId);Id(r,kd(i,l,e,{dehydratedView:c}),0,Oc(l,c))}}finally{j(s)}}else{const s=wE(r,0);void 0!==s&&(s[Xn]=e)}}class pH{constructor(n,e,i){this.lContainer=n,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-Di}}function hg(t,n){return n}class mH{constructor(n,e,i){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=i}}function fg(t,n,e,i,o,r,a,s,l,c,u,d,h){fa("NgControlFlow");const p=void 0!==l,g=je(),b=s?a.bind(g[pi][Xn]):a,T=new mH(p,b);g[Qt+t]=T,Mt(t+1,n,e,i,o,r),p&&Mt(t+2,l,c,u,d,h)}class bH extends hH{constructor(n,e,i){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=i,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Di}at(n){return this.getLView(n)[Xn].$implicit}attach(n,e){const i=e[Jo];this.needsIndexUpdate||=n!==this.length,Id(this.lContainer,e,n,Oc(this.templateTNode,i))}detach(n){return this.needsIndexUpdate||=n!==this.length-1,function yH(t,n){return Ed(t,n)}(this.lContainer,n)}create(n,e){const i=Rc(this.lContainer,this.templateTNode.tView.ssrId);return kd(this.hostLView,this.templateTNode,new pH(this.lContainer,e,n),{dehydratedView:i})}destroy(n){Lp(n[nt],n)}updateValue(n,e){this.getLView(n)[Xn].$implicit=e}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n{t.destroy(s)})}(a,t,r.trackByFn),a.updateIndexes(),r.hasEmptyBlock){const s=jr(),l=0===a.length;if(Ei(i,s,l)){const c=e+2,u=Vv(i,c);if(l){const d=Zv(o,c),h=Rc(u,d.tView.ssrId);Id(u,kd(i,d,void 0,{dehydratedView:h}),0,Oc(d,h))}else ev(u,0)}}}finally{j(n)}}function Vv(t,n){return t[n]}function Zv(t,n){return cd(t,n)}function ye(t,n,e,i){const o=je(),r=gn(),a=Qt+t,s=o[Ut],l=r.firstCreatePass?function vH(t,n,e,i,o,r){const a=n.consts,l=Ic(n,t,2,i,aa(a,o));return W_(n,e,l,aa(a,r)),null!==l.attrs&&Kp(l,l.attrs,!1),null!==l.mergedAttrs&&Kp(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(a,r,o,n,e,i):r.data[a],c=wM(r,o,l,s,n,t);o[a]=c;const u=cp(l);return sa(l,!0),aE(s,c,l),!function Zd(t){return 32==(32&t.flags)}(l)&&fd()&&Bp(r,o,c,l),0===function g4(){return Wt.lFrame.elementDepthCount}()&&fo(c,o),function m4(){Wt.lFrame.elementDepthCount++}(),u&&(Z_(r,o,l),V_(r,l,o)),null!==i&&G_(o,l),ye}function ve(){let t=Fn();Zy()?Gy():(t=t.parent,sa(t,!1));const n=t;(function y4(t){return Wt.skipHydrationRootTNode===t})(n)&&function C4(){Wt.skipHydrationRootTNode=null}(),function b4(){Wt.lFrame.elementDepthCount--}();const e=gn();return e.firstCreatePass&&(hp(e,t),Ny(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function F4(t){return 0!=(8&t.flags)}(n)&&Bv(e,n,je(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function L4(t){return 0!=(16&t.flags)}(n)&&Bv(e,n,je(),n.stylesWithoutHost,!1),ve}function at(t,n,e,i){return ye(t,n,e,i),ve(),at}let wM=(t,n,e,i,o,r)=>(la(!0),Fp(i,o,function MS(){return Wt.lFrame.currentNamespace}()));function Jd(t,n,e){const i=je(),o=gn(),r=t+Qt,a=o.firstCreatePass?function xH(t,n,e,i,o){const r=n.consts,a=aa(r,i),s=Ic(n,t,8,"ng-container",a);return null!==a&&Kp(s,a,!0),W_(n,e,s,aa(r,o)),null!==n.queries&&n.queries.elementStart(n,s),s}(r,o,i,n,e):o.data[r];sa(a,!0);const s=CM(o,i,a,t);return i[r]=s,fd()&&Bp(o,i,s,a),fo(s,i),cp(a)&&(Z_(o,i,a),V_(o,a,i)),null!=e&&G_(i,a),Jd}function Qd(){let t=Fn();const n=gn();return Zy()?Gy():(t=t.parent,sa(t,!1)),n.firstCreatePass&&(hp(n,t),Ny(t)&&n.queries.elementEnd(t)),Qd}function Es(t,n,e){return Jd(t,n,e),Qd(),Es}let CM=(t,n,e,i)=>(la(!0),F_(n[Ut],""));function Tn(){return je()}function Ts(t,n,e){const i=je();return Ei(i,jr(),n)&&Bo(gn(),Jn(),i,t,n,i[Ut],e,!0),Ts}function Gv(t,n,e){const i=je();if(Ei(i,jr(),n)){const r=gn(),a=Jn();Bo(r,a,i,t,n,vE(Wy(r.data),a,i),e,!0)}return Gv}const Kc="en-US",gg={marker:"element"},mg={marker:"ICU"};var Ho=function(t){return t[t.SHIFT=2]="SHIFT",t[t.APPEND_EAGERLY=1]="APPEND_EAGERLY",t[t.COMMENT=2]="COMMENT",t}(Ho||{});let DM=Kc;function TM(t,n,e){const i=n.insertBeforeIndex,o=Array.isArray(i)?i[0]:i;return null===o?qD(t,0,e):Bn(e[o])}function MM(t,n,e,i,o){const r=n.insertBeforeIndex;if(Array.isArray(r)){let a=i,s=null;if(3&n.type||(s=a,a=o),null!==a&&-1===n.componentOffset)for(let l=1;l1)for(let e=t.length-2;e>=0;e--){const i=t[e];kM(i)||RH(i,n)&&null===PH(i)&&NH(i,n.index)}}function kM(t){return!(64&t.type)}function RH(t,n){return kM(n)||t.index>n.index}function PH(t){const n=t.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function NH(t,n){const e=t.insertBeforeIndex;Array.isArray(e)?e[0]=n:(tE(TM,MM),t.insertBeforeIndex=n)}function jH(t,n,e){const i=$_(t,e,64,null,null);return AM(n,i),i}let th=(t,n,e,i)=>(la(!0),function PM(t,n,e){const i=t[Ut];switch(e){case Node.COMMENT_NODE:return F_(i,n);case Node.TEXT_NODE:return N_(i,n);case Node.ELEMENT_NODE:return Fp(i,n,null)}}(t,e,i));function UH(){const t=[];let e,i,n=-1;function r(s,l){n=0;const c=function bg(t,n){const e=n[t.currentCaseLViewIndex];return null===e?e:e<0?~e:e}(s,l);i=null!==c?s.remove[c]:xn}function a(){if(n0?e[s]:(t.push(n,i),r(e[nt].data[~s],e),a())}return 0===t.length?null:(i=t.pop(),n=t.pop(),a())}return function o(s,l){for(e=l;t.length;)t.pop();return r(s.value,l),a}}const yg=/\ufffd(\d+):?\d*\ufffd/gi,XH=/\ufffd(\d+)\ufffd/,HM=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,nh="\ufffd",JH=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,QH=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,KH=/\uE500/g;function YM(t,n,e,i,o,r,a){const s=Ad(t,i,1,null);let l=s<e.length&&e.push(l)}return{type:i,mainBinding:o,cases:n,values:e}}function Uv(t){if(!t)return[];let n=0;const e=[],i=[],o=/[{}]/g;let r;for(o.lastIndex=0;r=o.exec(t);){const s=r.index;if("}"==r[0]){if(e.pop(),0==e.length){const l=t.substring(n,s);HM.test(l)?i.push(aY(l)):i.push(l),n=s+1}}else{if(0==e.length){const l=t.substring(n,s);i.push(l),n=s+1}e.push("{")}}const a=t.substring(n);return i.push(a),i}function sY(t,n,e,i,o,r,a,s,l){const c=[],u=[],d=[];e.cases.push(a),e.create.push(c),e.remove.push(u),e.update.push(d);const p=MD(bs()).getInertBodyElement(s),g=M_(p)||p;return g?ZM(t,n,e,i,o,c,u,d,g,r,l,0):0}function ZM(t,n,e,i,o,r,a,s,l,c,u,d){let h=0,p=l.firstChild;for(;p;){const g=Ad(n,i,1,null);switch(p.nodeType){case Node.ELEMENT_NODE:const b=p,T=b.tagName.toLowerCase();if(E_.hasOwnProperty(T)){Wv(r,gg,T,c,g),n.data[g]=T;const le=b.attributes;for(let pe=0;pe>>Ho.SHIFT;let d=t[u],h=!1;null===d&&(d=t[u]=th(t,u,n[r],(a&Ho.COMMENT)===Ho.COMMENT?Node.COMMENT_NODE:Node.TEXT_NODE),h=fd()),c&&null!==e&&h&&hl(o,e,d,i,!1)}})(o,l.create,u,s&&8&s.type?o[s.index]:null),CS(!0)}function no(){CS(!1)}function Pt(t,n,e){to(t,n,e),no()}function oh(t,n={}){return function _Y(t,n={}){let e=t;if(hY.test(t)){const i={},o=[0];e=e.replace(fY,(r,a,s)=>{const l=a||s,c=i[l]||[];if(c.length||(l.split("|").forEach(b=>{const T=b.match(yY),D=T?parseInt(T[1],10):0,H=bY.test(b);c.push([D,H,b])}),i[l]=c),!c.length)throw new Error(`i18n postprocess: unmatched placeholder - ${l}`);const u=o[o.length-1];let d=0;for(let b=0;bn.hasOwnProperty(r)?`${o}${n[r]}${l}`:i),e=e.replace(gY,(i,o)=>n.hasOwnProperty(o)?n[o]:i),e=e.replace(mY,(i,o)=>{if(n.hasOwnProperty(o)){const r=n[o];if(!r.length)throw new Error(`i18n postprocess: unmatched ICU - ${i} with key: ${o}`);return r.shift()}return i})),e}(t,n)}function _t(t,n,e,i){const o=je(),r=gn(),a=Fn();return Xv(r,o,o[Ut],a,t,n,i),_t}function Xv(t,n,e,i,o,r,a){const s=cp(i),c=t.firstCreatePass&&_E(t),u=n[Xn],d=yE(n);let h=!0;if(3&i.type||a){const b=wo(i,n),T=a?a(b):b,D=d.length,H=a?le=>a(Bn(le[i.index])):i.index;let oe=null;if(!a&&s&&(oe=function CY(t,n,e,i){const o=t.cleanup;if(null!=o)for(let r=0;rl?s[l]:null}"string"==typeof a&&(r+=2)}return null}(t,n,o,i.index)),null!==oe)(oe.__ngLastListenerFn__||oe).__ngNextListenerFn__=r,oe.__ngLastListenerFn__=r,h=!1;else{r=QM(i,n,u,r,!1);const le=e.listen(T,o,r);d.push(r,le),c&&c.push(o,H,D,D+1)}}else r=QM(i,n,u,r,!1);const p=i.outputs;let g;if(h&&null!==p&&(g=p[o])){const b=g.length;if(b)for(let T=0;T-1?Qo(t.index,n):n);let l=JM(n,e,i,a),c=r.__ngNextListenerFn__;for(;c;)l=JM(n,e,c,a)&&l,c=c.__ngNextListenerFn__;return o&&!1===l&&a.preventDefault(),l}}function rt(t=1){return function M4(t){return(Wt.lFrame.contextLView=function mS(t,n){for(;t>0;)n=n[mc],t--;return n}(t,Wt.lFrame.contextLView))[Xn]}(t)}function xY(t,n){let e=null;const i=function T3(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let o=0;o(la(!0),N_(n[Ut],i));function Yo(t){return yr("",t,""),Yo}function yr(t,n,e){const i=je(),o=zc(i,t,n,e);return o!==tn&&Ba(i,ho(),o),yr}function Jv(t,n,e,i,o){const r=je(),a=$c(r,t,n,e,i,o);return a!==tn&&Ba(r,ho(),a),Jv}function rh(t,n,e){uT(n)&&(n=n());const i=je();return Ei(i,jr(),n)&&Bo(gn(),Jn(),i,t,n,i[Ut],e,!1),rh}function vg(t,n){const e=uT(t);return e&&t.set(n),e}function ah(t,n){const e=je(),i=gn(),o=Fn();return Xv(i,e,e[Ut],o,t,n),ah}function Qv(t,n,e,i,o){if(t=Vt(t),Array.isArray(t))for(let r=0;r>20;if(rl(t)||!t.multi){const p=new pd(c,o,K),g=qv(l,n,o?u:u+h,d);-1===g?(i_(mp(s,a),r,l),Kv(r,t,n.length),n.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(p),a.push(p)):(e[g]=p,a[g]=p)}else{const p=qv(l,n,u+h,d),g=qv(l,n,u,u+h),T=g>=0&&e[g];if(o&&!T||!o&&!(p>=0&&e[p])){i_(mp(s,a),r,l);const D=function zY(t,n,e,i,o){const r=new pd(t,e,K);return r.multi=[],r.index=n,r.componentProviders=0,xA(r,o,i&&!e),r}(o?YY:HY,e.length,o,i,c);!o&&T&&(e[g].providerFactory=D),Kv(r,t,n.length,0),n.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(D),a.push(D)}else Kv(r,t,p>-1?p:g,xA(e[o?g:p],c,!o&&i));!o&&i&&T&&e[g].componentProviders++}}}function Kv(t,n,e,i){const o=rl(n),r=function H3(t){return!!t.useClass}(n);if(o||r){const l=(r?Vt(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!o&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function xA(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function qv(t,n,e,i){for(let o=e;o{e.providersResolver=(i,o)=>function BY(t,n,e){const i=gn();if(i.firstCreatePass){const o=Lr(t);Qv(e,i.data,i.blueprint,o,!0),Qv(n,i.data,i.blueprint,o,!1)}}(i,o?o(t):t,n)}}let $Y=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const i=Dy(0,e.type),o=i.length>0?tg([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=$e({token:t,providedIn:"environment",factory:()=>new t(Me(Lo))})}}return t})();function Zn(t){fa("NgStandalone"),t.getStandaloneInjector=n=>n.get($Y).getOrCreateStandaloneInjector(t)}function sh(t,n,e,i){return DA(je(),Co(),t,n,e,i)}function lh(t,n,e,i,o){return function EA(t,n,e,i,o,r,a){const s=n+e;return ml(t,s,o,r)?pa(t,s+2,a?i.call(a,o,r):i(o,r)):ch(t,s+2)}(je(),Co(),t,n,e,i,o)}function ch(t,n){const e=t[n];return e===tn?void 0:e}function DA(t,n,e,i,o,r){const a=n+e;return Ei(t,a,o)?pa(t,a+1,r?i.call(r,o):i(o)):ch(t,a+1)}function eu(t,n){const e=gn();let i;const o=t+Qt;e.firstCreatePass?(i=function ez(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[o]=i,i.onDestroy&&(e.destroyHooks??=[]).push(o,i.onDestroy)):i=e.data[o];const r=i.factory||(i.factory=il(i.type)),s=Po(K);try{const l=gp(!1),c=r();return gp(l),function TY(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,je(),o,c),c}finally{Po(s)}}function tu(t,n,e){const i=t+Qt,o=je(),r=_c(o,i);return function uh(t,n){return t[nt].data[n].pure}(o,i)?DA(o,Co(),n,r.transform,e,r):r.transform(e)}function tw(t,n){return Zp(t,n)}let ZA=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();const JA=new He(""),Sg=new He("");let cw,sw=(()=>{class t{constructor(e,i,o){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,cw||(function Qz(t){cw=t}(o),o.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{wt.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==r),e()},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,o){return[]}static{this.\u0275fac=function(i){return new(i||t)(Me(wt),Me(lw),Me(Sg))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})(),lw=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return cw?.findTestabilityInTree(this,e,i)??null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();function fh(t){return!!t&&"function"==typeof t.then}function QA(t){return!!t&&"function"==typeof t.subscribe}const uw=new He("");let dw=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i}),this.appInits=Pe(uw,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const o of this.appInits){const r=o();if(fh(r))e.push(r);else if(QA(r)){const a=new Promise((s,l)=>{r.subscribe({complete:s,error:l})});e.push(a)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(o=>{this.reject(o)}),0===e.length&&i(),this.initialized=!0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const hw=new He("");function ek(t,n){return Array.isArray(n)?n.reduce(ek,t):{...t,...n}}let Yr=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Pe(XS),this.afterRenderEffectManager=Pe(Bd),this.externalTestViews=new Set,this.beforeRender=new vt,this.afterTick=new vt,this.componentTypes=[],this.components=[],this.isStable=Pe(Cs).hasPendingTasks.pipe(Bt(e=>!e)),this._injector=Pe(Lo)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const o=e instanceof PE;if(!this._injector.get(dw).done)throw!o&&function gs(t){const n=dn(t)||ji(t)||Qi(t);return null!==n&&n.standalone}(e),new S(405,!1);let a;a=o?e:this._injector.get(fl).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const s=function Kz(t){return t.isBoundToModule}(a)?void 0:this._injector.get(gl),c=a.create(gi.NULL,[],i||a.selector,s),u=c.location.nativeElement,d=c.injector.get(JA,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Dg(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){this._tick(!0)}_tick(e){if(this._runningTick)throw new S(101,!1);const i=j(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(e)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,j(i)}}detectChangesInAttachedViews(e){let i=0;const o=this.afterRenderEffectManager;for(;;){if(i===SE)throw new S(103,!1);if(e){const r=0===i;this.beforeRender.next(r);for(let{_lView:a,notifyErrorHandler:s}of this._views)e$(a,r,s)}if(i++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:r})=>fw(r))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:r})=>fw(r))))break}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Dg(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(hw,[]);[...this._bootstrapListeners,...i].forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Dg(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new S(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Dg(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function e$(t,n,e){!n&&!fw(t)||function t$(t,n,e){let i;e?(i=0,t[It]|=1024):i=64&t[It]?0:1,Vp(t,n,i)}(t,e,n)}function fw(t){return zy(t)}class n${constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let tk=(()=>{class t{compileModuleSync(e){return new Dv(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),r=er(so(e).declarations).reduce((a,s)=>{const l=dn(s);return l&&a.push(new zd(l)),a},[]);return new n$(i,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),r$=(()=>{class t{constructor(){this.zone=Pe(wt),this.applicationRef=Pe(Yr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function a$(){const t=Pe(wt),n=Pe(Ko);return e=>t.runOutsideAngular(()=>n.handleError(e))}let l$=(()=>{class t{constructor(){this.subscription=new ge,this.initialized=!1,this.zone=Pe(wt),this.pendingTasks=Pe(Cs)}initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{wt.assertNotInAngularZone(),queueMicrotask(()=>{null!==e&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{wt.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const ba=new He("",{providedIn:"root",factory:()=>Pe(ba,fn.Optional|fn.SkipSelf)||function c$(){return typeof $localize<"u"&&$localize.locale||Kc}()}),pw=new He("");let rk=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const o=function o6(t="zone.js",n){return"noop"===t?new HE:"zone.js"===t?new wt(n):t}(i?.ngZone,function ok(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{const r=function Q6(t,n,e){return new Sv(t,n,e)}(e.moduleType,this.injector,function ik(t){return[{provide:wt,useFactory:t},{provide:ol,multi:!0,useFactory:()=>{const n=Pe(r$,{optional:!0});return()=>n.initialize()}},{provide:ol,multi:!0,useFactory:()=>{const n=Pe(l$);return()=>{n.initialize()}}},{provide:XS,useFactory:a$}]}(()=>o)),a=r.injector.get(Ko,null);return o.runOutsideAngular(()=>{const s=o.onError.subscribe({next:l=>{a.handleError(l)}});r.onDestroy(()=>{Dg(this._modules,r),s.unsubscribe()})}),function qA(t,n,e){try{const i=e();return fh(i)?i.catch(o=>{throw n.runOutsideAngular(()=>t.handleError(o)),o}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(a,o,()=>{const s=r.injector.get(dw);return s.runInitializers(),s.donePromise.then(()=>(function EM(t){"string"==typeof t&&(DM=t.toLowerCase().replace(/_/g,"-"))}(r.injector.get(ba,Kc)||Kc),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,i=[]){const o=ek({},i);return function o$(t,n,e){const i=new Dv(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(e){const i=e.injector.get(Yr);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new S(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new S(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(pw,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(i){return new(i||t)(Me(gi))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})(),Ms=null;const ak=new He("");function sk(t,n,e=[]){const i=`Platform: ${n}`,o=new He(i);return(r=[])=>{let a=gw();if(!a||a.injector.get(ak,!1)){const s=[...e,...r,{provide:o,useValue:!0}];t?t(s):function h$(t){if(Ms&&!Ms.get(ak,!1))throw new S(400,!1);(function KA(){!function _(t){Z=t}(()=>{throw new S(600,!1)})})(),Ms=t;const n=t.get(rk);(function ck(t){t.get(bD,null)?.forEach(e=>e())})(t)}(function lk(t=[],n){return gi.create({name:n,providers:[{provide:My,useValue:"platform"},{provide:pw,useValue:new Set([()=>Ms=null])},...t]})}(s,i))}return function f$(t){const n=gw();if(!n)throw new S(401,!1);return n}()}}function gw(){return Ms?.get(rk)??null}let mi=(()=>{class t{static{this.__NG_ELEMENT_ID__=g$}}return t})();function g$(t){return function m$(t,n,e){if(sl(t)&&!e){const i=Qo(t.index,n);return new Pd(i,i)}return 47&t.type?new Pd(n[pi],n):null}(Fn(),je(),16==(16&t))}class fk{constructor(){}supports(n){return ig(n)}create(n){return new C$(n)}}const w$=(t,n)=>n;class C${constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||w$}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,o=0,r=null;for(;e||i;){const a=!i||e&&e.currentIndex{a=this._trackByFn(o,s),null!==e&&Object.is(e.trackById,a)?(i&&(e=this._verifyReinsertion(e,s,a,o)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,a,o),i=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,o){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,r,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,r,o)):n=this._addAfter(new x$(e,i),r,o),n}_verifyReinsertion(n,e,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,r=n._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const o=null===e?this._itHead:e._next;return n._next=o,n._prev=e,null===o?this._itTail=n:o._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new pk),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new pk),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class x${constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class S${constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class pk{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new S$,this.map.set(e,i)),i.add(n)}get(n,e){const o=this.map.get(n);return o?o.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function gk(t,n,e){const i=t.previousIndex;if(null===i)return i;let o=0;return e&&i{if(e&&e.key===o)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(o,i);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const o=this._records.get(n);this._maybeAddToChanges(o,e);const r=o._prev,a=o._next;return r&&(r._next=a),a&&(a._prev=r),o._next=null,o._prev=null,o}const i=new E$(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class E${constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function bk(){return new vw([new fk])}let vw=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:bk})}constructor(e){this.factories=e}static create(e,i){if(null!=i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||bk()),deps:[[t,new lc,new ps]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(null!=i)return i;throw new S(901,!1)}}return t})();function yk(){return new Ag([new mk])}let Ag=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:yk})}constructor(e){this.factories=e}static create(e,i){if(i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||yk()),deps:[[t,new lc,new ps]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(i)return i;throw new S(901,!1)}}return t})();const A$=sk(null,"core",[]);let k$=(()=>{class t{constructor(e){}static{this.\u0275fac=function(i){return new(i||t)(Me(Yr))}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({})}}return t})();function Nt(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function As(t,n=NaN){return isNaN(parseFloat(t))||isNaN(Number(t))?n:Number(t)}function Hk(t){const n=j(null);try{return t()}finally{j(n)}}let Yk=null;function za(){return Yk}class f9{}const qt=new He("");let xw=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Pe(g9),providedIn:"platform"})}}return t})();const p9=new He("");let g9=(()=>{class t extends xw{constructor(){super(),this._doc=Pe(qt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return za().getBaseHref(this._doc)}onPopState(e){const i=za().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=za().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,o){this._history.pushState(e,i,o)}replaceState(e,i,o){this._history.replaceState(e,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>new t,providedIn:"platform"})}}return t})();function Sw(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function zk(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function $a(t){return t&&"?"!==t[0]?"?"+t:t}let Cl=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Pe(Vk),providedIn:"root"})}}return t})();const $k=new He("");let Vk=(()=>{class t extends Cl{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Pe(qt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Sw(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+$a(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${i}${o}`:i}pushState(e,i,o,r){const a=this.prepareExternalUrl(o+$a(r));this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){const a=this.prepareExternalUrl(o+$a(r));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(xw),Me($k,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),m9=(()=>{class t extends Cl{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){const i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=Sw(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,o,r){let a=this.prepareExternalUrl(o+$a(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){let a=this.prepareExternalUrl(o+$a(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(xw),Me($k,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})(),xl=(()=>{class t{constructor(e){this._subject=new Ot,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function _9(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(zk(Zk(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+$a(i))}normalize(e){return t.stripTrailingSlash(function y9(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,Zk(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",o=null){this._locationStrategy.pushState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+$a(i)),o)}replaceState(e,i="",o=null){this._locationStrategy.replaceState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+$a(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(o=>o(e,i))}subscribe(e,i,o){return this._subject.subscribe({next:e,error:i,complete:o})}static{this.normalizeQueryParams=$a}static{this.joinWithSlash=Sw}static{this.stripTrailingSlash=zk}static{this.\u0275fac=function(i){return new(i||t)(Me(Cl))}}static{this.\u0275prov=$e({token:t,factory:()=>function b9(){return new xl(Me(Cl))}(),providedIn:"root"})}}return t})();function Zk(t){return t.replace(/\/index.html$/,"")}function eI(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[o,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(o.trim()===n)return decodeURIComponent(r)}return null}const Pw=/\s+/,tI=[];let Nw=(()=>{class t{constructor(e,i){this._ngEl=e,this._renderer=i,this.initialClasses=tI,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(Pw):tI}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(Pw):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){const o=this.stateMap.get(e);void 0!==o?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],o=e[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(Pw).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static{this.\u0275fac=function(i){return new(i||t)(K(Zt),K(Ha))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngClass",""]],inputs:{klass:[Le.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return t})();class oV{constructor(n,e,i,o){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Fw=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,o){this._viewContainer=e,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((o,r,a)=>{if(null==o.previousIndex)i.createEmbeddedView(this._template,new oV(o.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)i.remove(null===r?void 0:r);else if(null!==r){const s=i.get(r);i.move(s,a),iI(s,o)}});for(let o=0,r=i.length;o{iI(i.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,i){return!0}static{this.\u0275fac=function(i){return new(i||t)(K(So),K(po),K(vw))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return t})();function iI(t,n){t.context.$implicit=n.item}let ks=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new rV,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){oI("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){oI("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}static{this.\u0275fac=function(i){return new(i||t)(K(So),K(po))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return t})();class rV{constructor(){this.$implicit=null,this.ngIf=null}}function oI(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${li(n)}'.`)}let aI=(()=>{class t{constructor(e,i,o){this._ngEl=e,this._differs=i,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[o,r]=e.split("."),a=-1===o.indexOf("-")?void 0:_s.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,o,r?`${i}${r}`:i,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}static{this.\u0275fac=function(i){return new(i||t)(K(Zt),K(Ag),K(Ha))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return t})(),Gg=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const o=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,o)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,i,o),get:(e,i,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,o)}})}static{this.\u0275fac=function(i){return new(i||t)(K(So))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Gi]})}}return t})();class uV{createSubscription(n,e){return Hk(()=>n.subscribe({next:e,error:i=>{throw i}}))}dispose(n){Hk(()=>n.unsubscribe())}}class dV{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}}const hV=new dV,fV=new uV;let Bw=(()=>{class t{constructor(e){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(fh(e))return hV;if(QA(e))return fV;throw function $r(t,n){return new S(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(i){return new(i||t)(K(mi,16))}}static{this.\u0275pipe=Fo({name:"async",type:t,pure:!1,standalone:!0})}}return t})(),Is=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({})}}return t})();const lI="browser";function cI(t){return t===lI}function uI(t){return"server"===t}let PV=(()=>{class t{static{this.\u0275prov=$e({token:t,providedIn:"root",factory:()=>cI(Pe(La))?new NV(Pe(qt),window):new LV})}}return t})();class NV{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){const e=function FV(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=i.currentNode;for(;o;){const r=o.shadowRoot;if(r){const a=r.getElementById(n)||r.querySelector(`[name="${n}"]`);if(a)return a}o=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],o-r[1])}}class LV{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}}class dI{}class dZ extends f9{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class $w extends dZ{static makeCurrent(){!function h9(t){Yk??=t}(new $w)}onAndCancel(n,e,i){return n.addEventListener(e,i),()=>{n.removeEventListener(e,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function hZ(){return _h=_h||document.querySelector("base"),_h?_h.getAttribute("href"):null}();return null==e?null:function fZ(t){return new URL(t,document.baseURI).pathname}(e)}resetBaseElement(){_h=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return eI(document.cookie,n)}}let _h=null,gZ=(()=>{class t{build(){return new XMLHttpRequest}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const Vw=new He("");let vI=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,o){return this._findPluginFor(i).addEventListener(e,i,o)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(r=>r.supports(e)),!i)throw new S(5101,!1);return this._eventNameToPlugin.set(e,i),i}static{this.\u0275fac=function(i){return new(i||t)(Me(Vw),Me(wt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();class wI{constructor(n){this._doc=n}}const Zw="ng-app-id";let CI=(()=>{class t{constructor(e,i,o,r={}){this.doc=e,this.appId=i,this.nonce=o,this.platformId=r,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=uI(r),this.resetHostNodes()}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.elements?.forEach(o=>o.remove()),i.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${Zw}="${this.appId}"]`);if(e?.length){const i=new Map;return e.forEach(o=>{null!=o.textContent&&i.set(o.textContent,o)}),i}return null}changeUsageCount(e,i){const o=this.styleRef;if(o.has(e)){const r=o.get(e);return r.usage+=i,r.usage}return o.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){const o=this.styleNodesInDOM,r=o?.get(i);if(r?.parentNode===e)return o.delete(i),r.removeAttribute(Zw),r;{const a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Zw,this.appId),e.appendChild(a),a}}addStyleToHost(e,i){const o=this.getStyleElement(e,i),r=this.styleRef,a=r.get(i)?.elements;a?a.push(o):r.set(i,{elements:[o],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(i){return new(i||t)(Me(qt),Me(xp),Me(h_,8),Me(La))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const Gw={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Uw=/%COMP%/g,_Z=new He("",{providedIn:"root",factory:()=>!0});function SI(t,n){return n.map(e=>e.replace(Uw,t))}let Ww=(()=>{class t{constructor(e,i,o,r,a,s,l,c=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.platformId=s,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=uI(s),this.defaultRenderer=new Xw(e,a,l,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Rr.ShadowDom&&(i={...i,encapsulation:Rr.Emulated});const o=this.getOrCreateRenderer(e,i);return o instanceof EI?o.applyToHost(e):o instanceof Jw&&o.applyStyles(),o}getOrCreateRenderer(e,i){const o=this.rendererByCompId;let r=o.get(i.id);if(!r){const a=this.doc,s=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(i.encapsulation){case Rr.Emulated:r=new EI(l,c,i,this.appId,u,a,s,d);break;case Rr.ShadowDom:return new xZ(l,c,e,i,a,s,this.nonce,d);default:r=new Jw(l,c,i,u,a,s,d)}o.set(i.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(i){return new(i||t)(Me(vI),Me(CI),Me(xp),Me(_Z),Me(qt),Me(La),Me(wt),Me(h_))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();class Xw{constructor(n,e,i,o){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(Gw[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(DI(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(DI(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new S(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,o){if(o){e=o+":"+e;const r=Gw[o];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const o=Gw[i];o?n.removeAttributeNS(o,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,o){o&(_s.DashCase|_s.Important)?n.style.setProperty(e,i,o&_s.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&_s.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){null!=n&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i){if("string"==typeof n&&!(n=za().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(i))}decoratePreventDefault(n){return e=>{if("__ngUnwrap__"===e)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))&&e.preventDefault()}}}function DI(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class xZ extends Xw{constructor(n,e,i,o,r,a,s,l){super(n,r,a,l),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=SI(o.id,o.styles);for(const u of c){const d=document.createElement("style");s&&d.setAttribute("nonce",s),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Jw extends Xw{constructor(n,e,i,o,r,a,s,l){super(n,r,a,s),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=l?SI(l,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class EI extends Jw{constructor(n,e,i,o,r,a,s,l){const c=o+"-"+i.id;super(n,e,i,r,a,s,l,c),this.contentAttr=function vZ(t){return"_ngcontent-%COMP%".replace(Uw,t)}(c),this.hostAttr=function wZ(t){return"_nghost-%COMP%".replace(Uw,t)}(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let SZ=(()=>{class t extends wI{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,o){return e.addEventListener(i,o,!1),()=>this.removeEventListener(e,i,o)}removeEventListener(e,i,o){return e.removeEventListener(i,o)}static{this.\u0275fac=function(i){return new(i||t)(Me(qt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const TI=["alt","control","meta","shift"],DZ={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},EZ={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let TZ=(()=>{class t extends wI{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,o){const r=t.parseEventName(i),a=t.eventCallback(r.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>za().onAndCancel(e,r.domEventName,a))}static parseEventName(e){const i=e.toLowerCase().split("."),o=i.shift();if(0===i.length||"keydown"!==o&&"keyup"!==o)return null;const r=t._normalizeKey(i.pop());let a="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),a="code."),TI.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),a+=c+".")}),a+=r,0!=i.length||0===r.length)return null;const l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(e,i){let o=DZ[e.key]||e.key,r="";return i.indexOf("code.")>-1&&(o=e.code,r="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),TI.forEach(a=>{a!==o&&(0,EZ[a])(e)&&(r+=a+".")}),r+=o,r===i)}static eventCallback(e,i,o){return r=>{t.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}static{this.\u0275fac=function(i){return new(i||t)(Me(qt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const AI=[{provide:La,useValue:lI},{provide:bD,useValue:function MZ(){$w.makeCurrent()},multi:!0},{provide:qt,useFactory:function kZ(){return function S8(t){d_=t}(document),document},deps:[]}],IZ=sk(A$,"browser",AI),OZ=new He(""),kI=[{provide:Sg,useClass:class pZ{addToWindow(n){Gt.getAngularTestability=(i,o=!0)=>{const r=n.findTestabilityInTree(i,o);if(null==r)throw new S(5103,!1);return r},Gt.getAllAngularTestabilities=()=>n.getAllTestabilities(),Gt.getAllAngularRootElements=()=>n.getAllRootElements(),Gt.frameworkStabilizers||(Gt.frameworkStabilizers=[]),Gt.frameworkStabilizers.push(i=>{const o=Gt.getAllAngularTestabilities();let r=o.length;const a=function(){r--,0==r&&i()};o.forEach(s=>{s.whenStable(a)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?za().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:JA,useClass:sw,deps:[wt,lw,Sg]},{provide:sw,useClass:sw,deps:[wt,lw,Sg]}],II=[{provide:My,useValue:"root"},{provide:Ko,useFactory:function AZ(){return new Ko},deps:[]},{provide:Vw,useClass:SZ,multi:!0,deps:[qt,wt,La]},{provide:Vw,useClass:TZ,multi:!0,deps:[qt]},Ww,CI,vI,{provide:sv,useExisting:Ww},{provide:dI,useClass:gZ,deps:[]},[]];let Qw=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:xp,useValue:e.appId}]}}static{this.\u0275fac=function(i){return new(i||t)(Me(OZ,12))}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({providers:[...II,...kI],imports:[Is,k$]})}}return t})(),RZ=(()=>{class t{constructor(e){this._doc=e,this._dom=za()}addTag(e,i=!1){return e?this._getOrCreateElement(e,i):null}addTags(e,i=!1){return e?e.reduce((o,r)=>(r&&o.push(this._getOrCreateElement(r,i)),o),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];const i=this._doc.querySelectorAll(`meta[${e}]`);return i?[].slice.call(i):[]}updateTag(e,i){if(!e)return null;i=i||this._parseSelector(e);const o=this.getTag(i);return o?this._setMetaElementAttributes(e,o):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,i=!1){if(!i){const a=this._parseSelector(e),s=this.getTags(a).filter(l=>this._containsAttributes(e,l))[0];if(void 0!==s)return s}const o=this._dom.createElement("meta");return this._setMetaElementAttributes(e,o),this._doc.getElementsByTagName("head")[0].appendChild(o),o}_setMetaElementAttributes(e,i){return Object.keys(e).forEach(o=>i.setAttribute(this._getMetaKeyMap(o),e[o])),i}_parseSelector(e){const i=e.name?"name":"property";return`${i}="${e[i]}"`}_containsAttributes(e,i){return Object.keys(e).every(o=>i.getAttribute(this._getMetaKeyMap(o))===e[o])}_getMetaKeyMap(e){return PZ[e]||e}static{this.\u0275fac=function(i){return new(i||t)(Me(qt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const PZ={httpEquiv:"http-equiv"};let OI=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(i){return new(i||t)(Me(qt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Xg=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:function(i){let o=null;return o=i?new(i||t):Me(jZ),o},providedIn:"root"})}}return t})(),jZ=(()=>{class t extends Xg{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Ui.NONE:return i;case Ui.HTML:return da(i,"HTML")?qo(i):FD(this._doc,String(i)).toString();case Ui.STYLE:return da(i,"Style")?qo(i):i;case Ui.SCRIPT:if(da(i,"Script"))return qo(i);throw new S(5200,!1);case Ui.URL:return da(i,"URL")?qo(i):Op(String(i));case Ui.RESOURCE_URL:if(da(i,"ResourceURL"))return qo(i);throw new S(5201,!1);default:throw new S(5202,!1)}}bypassSecurityTrustHtml(e){return function Z8(t){return new B8(t)}(e)}bypassSecurityTrustStyle(e){return function G8(t){return new H8(t)}(e)}bypassSecurityTrustScript(e){return function U8(t){return new Y8(t)}(e)}bypassSecurityTrustUrl(e){return function W8(t){return new z8(t)}(e)}bypassSecurityTrustResourceUrl(e){return function X8(t){return new $8(t)}(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(qt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Xt=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(Xt||{});const Ga="*";function Ua(t,n){return{type:Xt.Trigger,name:t,definitions:n,options:{}}}function wr(t,n=null){return{type:Xt.Animate,styles:n,timings:t}}function Jg(t,n=null){return{type:Xt.Group,steps:t,options:n}}function oi(t){return{type:Xt.Style,styles:t,offset:null}}function Mo(t,n,e){return{type:Xt.State,name:t,styles:n,options:e}}function ir(t,n,e=null){return{type:Xt.Transition,expr:t,animation:n,options:e}}function wh(t=null){return{type:Xt.AnimateChild,options:t}}function Ch(t,n,e=null){return{type:Xt.Query,selector:t,animation:n,options:e}}class xh{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class FI{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,o=0;const r=this.players.length;0==r?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==r&&this._onFinish()}),a.onDestroy(()=>{++i==r&&this._onDestroy()}),a.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const o=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(o)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const LI=["toast-component",""];function $Z(t,n){if(1&t){const e=Tn();ye(0,"button",5),_t("click",function(){return Yt(e),zt(rt().remove())}),ye(1,"span",6),bn(2,"\xd7"),ve()()}}function VZ(t,n){if(1&t&&(Jd(0),bn(1),Qd()),2&t){const e=rt(2);Ne(),yr("[",e.duplicatesCount+1,"]")}}function ZZ(t,n){if(1&t&&(ye(0,"div"),bn(1),Mt(2,VZ,2,1,"ng-container",4),ve()),2&t){const e=rt();eo(e.options.titleClass),Kt("aria-label",e.title),Ne(),yr(" ",e.title," "),Ne(),Je("ngIf",e.duplicatesCount)}}function GZ(t,n){if(1&t&&at(0,"div",7),2&t){const e=rt();eo(e.options.messageClass),Je("innerHTML",e.message,A_)}}function UZ(t,n){if(1&t&&(ye(0,"div",8),bn(1),ve()),2&t){const e=rt();eo(e.options.messageClass),Kt("aria-label",e.message),Ne(),yr(" ",e.message," ")}}function WZ(t,n){if(1&t&&(ye(0,"div"),at(1,"div",9),ve()),2&t){const e=rt();Ne(),Ds("width",e.width+"%")}}class tG{_attachedHost;component;viewContainerRef;injector;constructor(n,e){this.component=n,this.injector=e}attach(n,e){return this._attachedHost=n,n.attach(this,e)}detach(){const n=this._attachedHost;if(n)return this._attachedHost=void 0,n.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class nG{_attachedPortal;_disposeFn;attach(n,e){return this._attachedPortal=n,this.attachComponentPortal(n,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(n){this._disposeFn=n}}class iG{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new vt;_activate=new vt;_manualClose=new vt;_resetTimeout=new vt;_countDuplicate=new vt;constructor(n){this._overlayRef=n}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(n,e){n&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}class Qg{toastId;config;message;title;toastType;toastRef;_onTap=new vt;_onAction=new vt;constructor(n,e,i,o,r,a){this.toastId=n,this.config=e,this.message=i,this.title=o,this.toastType=r,this.toastRef=a,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(n){this._onAction.next(n)}onAction(){return this._onAction.asObservable()}}const BI=new He("ToastConfig");class oG extends nG{_hostDomElement;_componentFactoryResolver;_appRef;constructor(n,e,i){super(),this._hostDomElement=n,this._componentFactoryResolver=e,this._appRef=i}attachComponentPortal(n,e){const i=this._componentFactoryResolver.resolveComponentFactory(n.component);let o;return o=i.create(n.injector),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.detachView(o.hostView),o.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(o),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(o)),o}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let rG=(()=>{class t{_document=Pe(qt);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._document.createElement("div");e.classList.add("overlay-container"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),this._containerElement=e}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class aG{_portalHost;constructor(n){this._portalHost=n}attach(n,e=!0){return this._portalHost.attach(n,e)}detach(){return this._portalHost.detach()}}let sG=(()=>{class t{_overlayContainer=Pe(rG);_componentFactoryResolver=Pe(fl);_appRef=Pe(Yr);_document=Pe(qt);_paneElements=new Map;create(e,i){return this._createOverlayRef(this.getPaneElement(e,i))}getPaneElement(e="",i){return this._paneElements.get(i)||this._paneElements.set(i,{}),this._paneElements.get(i)[e]||(this._paneElements.get(i)[e]=this._createPaneElement(e,i)),this._paneElements.get(i)[e]}_createPaneElement(e,i){const o=this._document.createElement("div");return o.id="toast-container",o.classList.add(e),o.classList.add("toast-container"),i?i.getContainerElement().appendChild(o):this._overlayContainer.getContainerElement().appendChild(o),o}_createPortalHost(e){return new oG(e,this._componentFactoryResolver,this._appRef)}_createOverlayRef(e){return new aG(this._createPortalHost(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Sl=(()=>{class t{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(e,i,o,r,a){this.overlay=i,this._injector=o,this.sanitizer=r,this.ngZone=a,this.toastrConfig={...e.default,...e.config},e.config.iconClasses&&(this.toastrConfig.iconClasses={...e.default.iconClasses,...e.config.iconClasses})}show(e,i,o={},r=""){return this._preBuildNotification(r,e,i,this.applyConfig(o))}success(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",e,i,this.applyConfig(o))}error(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",e,i,this.applyConfig(o))}info(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",e,i,this.applyConfig(o))}warning(e,i,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",e,i,this.applyConfig(o))}clear(e){for(const i of this.toasts)if(void 0!==e){if(i.toastId===e)return void i.toastRef.manualClose()}else i.toastRef.manualClose()}remove(e){const i=this._findToast(e);if(!i||(i.activeToast.toastRef.close(),this.toasts.splice(i.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActivethis._buildNotification(e,i,o,r)):this._buildNotification(e,i,o,r)}_buildNotification(e,i,o,r){if(!r.toastComponent)throw new Error("toastComponent required");const a=this.findDuplicate(o,i,this.toastrConfig.resetTimeoutOnDuplicate&&r.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&o||i)&&this.toastrConfig.preventDuplicates&&null!==a)return a;this.previousToastMessage=i;let s=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(s=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const l=this.overlay.create(r.positionClass,this.overlayContainer);this.index=this.index+1;let c=i;i&&r.enableHtml&&(c=this.sanitizer.sanitize(Ui.HTML,i));const u=new iG(l),d=new Qg(this.index,r,c,o,e,u),p=gi.create({providers:[{provide:Qg,useValue:d}],parent:this._injector}),g=new tG(r.toastComponent,p),b=l.attach(g,r.newestOnTop);u.componentInstance=b.instance;const T={toastId:this.index,title:o||"",message:i||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:b};return s||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{T.toastRef.activate()})),this.toasts.push(T),T}static \u0275fac=function(i){return new(i||t)(Me(BI),Me(sG),Me(gi),Me(Xg),Me(wt))};static \u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const lG={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:(()=>{class t{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=-1;toastClasses="";state;get displayStyle(){if("inactive"===this.state.value)return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(e,i,o){this.toastrService=e,this.toastPackage=i,this.ngZone=o,this.message=i.message,this.title=i.title,this.options=i.config,this.originalTimeout=i.config.timeOut,this.toastClasses=`${i.toastType} ${i.config.toastClass}`,this.sub=i.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=i.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=i.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=i.toastRef.countDuplicate().subscribe(r=>{this.duplicatesCount=r}),this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}}}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state={...this.state,value:"active"},!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state={...this.state,value:"active"},this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state={...this.state,value:"removed"},this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(e,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(e),i)):this.timeout=setTimeout(()=>e(),i)}outsideInterval(e,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(e),i)):this.intervalId=setInterval(()=>e(),i)}runInsideAngular(e){this.ngZone?this.ngZone.run(()=>e()):e()}static \u0275fac=function(i){return new(i||t)(K(Sl),K(Qg),K(wt))};static \u0275cmp=pn({type:t,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(i,o){1&i&&_t("click",function(){return o.tapToast()})("mouseenter",function(){return o.stickAround()})("mouseleave",function(){return o.delayedHideToast()}),2&i&&(Gv("@flyInOut",o.state),eo(o.toastClasses),Ds("display",o.displayStyle))},standalone:!0,features:[Zn],attrs:LI,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(i,o){1&i&&Mt(0,$Z,3,0,"button",0)(1,ZZ,3,5,"div",1)(2,GZ,1,3,"div",2)(3,UZ,2,4,"div",3)(4,WZ,2,2,"div",4),2&i&&(Je("ngIf",o.options.closeButton),Ne(),Je("ngIf",o.title),Ne(),Je("ngIf",o.message&&o.options.enableHtml),Ne(),Je("ngIf",o.message&&!o.options.enableHtml),Ne(),Je("ngIf",o.options.progressBar))},dependencies:[ks],encapsulation:2,data:{animation:[Ua("flyInOut",[Mo("inactive",oi({opacity:0})),Mo("active",oi({opacity:1})),Mo("removed",oi({opacity:0})),ir("inactive => active",wr("{{ easeTime }}ms {{ easing }}")),ir("active => removed",wr("{{ easeTime }}ms {{ easing }}"))])]}})}return t})()},cG=(t={})=>dc([{provide:BI,useValue:{default:lG,config:t}}]);let uG=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[cG(e)]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=nn({type:t});static \u0275inj=en({})}return t})();function HI(t){return t&&Ae(t.schedule)}function qw(t){return t[t.length-1]}function YI(t){return Ae(qw(t))?t.pop():void 0}function Sh(t){return HI(qw(t))?t.pop():void 0}function Os(t){return this instanceof Os?(this.v=t,this):new Os(t)}function UI(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function o0(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(r){e[r]=t[r]&&function(a){return new Promise(function(s,l){!function o(r,a,s,l){Promise.resolve(l).then(function(c){r({value:c,done:s})},a)}(s,l,(a=t[r](a)).done,a.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const r0=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function WI(t){return Ae(t?.then)}function XI(t){return Ae(t[ea])}function JI(t){return Symbol.asyncIterator&&Ae(t?.[Symbol.asyncIterator])}function QI(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const KI=function IG(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function qI(t){return Ae(t?.[KI])}function e2(t){return function GI(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=e.apply(t,n||[]),r=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(h){i[h]&&(o[h]=function(p){return new Promise(function(g,b){r.push([h,p,g,b])>1||s(h,p)})})}function s(h,p){try{!function l(h){h.value instanceof Os?Promise.resolve(h.value.v).then(c,u):d(r[0][2],h)}(i[h](p))}catch(g){d(r[0][3],g)}}function c(h){s("next",h)}function u(h){s("throw",h)}function d(h,p){h(p),r.shift(),r.length&&s(r[0][0],r[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:o}=yield Os(e.read());if(o)return yield Os(void 0);yield yield Os(i)}}finally{e.releaseLock()}})}function t2(t){return Ae(t?.getReader)}function io(t){if(t instanceof On)return t;if(null!=t){if(XI(t))return function OG(t){return new On(n=>{const e=t[ea]();if(Ae(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(r0(t))return function RG(t){return new On(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,tt)})}(t);if(JI(t))return n2(t);if(qI(t))return function NG(t){return new On(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(t2(t))return function FG(t){return n2(e2(t))}(t)}throw QI(t)}function n2(t){return new On(n=>{(function LG(t,n){var e,i,o,r;return function VI(t,n,e,i){return new(e||(e=Promise))(function(r,a){function s(u){try{c(i.next(u))}catch(d){a(d)}}function l(u){try{c(i.throw(u))}catch(d){a(d)}}function c(u){u.done?r(u.value):function o(r){return r instanceof e?r:new e(function(a){a(r)})}(u.value).then(s,l)}c((i=i.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=UI(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function Wa(t,n,e,i=0,o=!1){const r=n.schedule(function(){e(),o?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(r),!o)return r}function o2(t,n=0){return $n((e,i)=>{e.subscribe(Pn(i,o=>Wa(i,t,()=>i.next(o),n),()=>Wa(i,t,()=>i.complete(),n),o=>Wa(i,t,()=>i.error(o),n)))})}function r2(t,n=0){return $n((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function a2(t,n){if(!t)throw new Error("Iterable cannot be null");return new On(e=>{Wa(e,n,()=>{const i=t[Symbol.asyncIterator]();Wa(e,n,()=>{i.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function bi(t,n){return n?function $G(t,n){if(null!=t){if(XI(t))return function jG(t,n){return io(t).pipe(r2(n),o2(n))}(t,n);if(r0(t))return function HG(t,n){return new On(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(WI(t))return function BG(t,n){return io(t).pipe(r2(n),o2(n))}(t,n);if(JI(t))return a2(t,n);if(qI(t))return function YG(t,n){return new On(e=>{let i;return Wa(e,n,()=>{i=t[KI](),Wa(e,n,()=>{let o,r;try{({value:o,done:r}=i.next())}catch(a){return void e.error(a)}r?e.complete():e.next(o)},0,!0)}),()=>Ae(i?.return)&&i.return()})}(t,n);if(t2(t))return function zG(t,n){return a2(e2(t),n)}(t,n)}throw QI(t)}(t,n):io(t)}function Et(...t){return bi(t,Sh(t))}function Wi(t,n,e=1/0){return Ae(n)?Wi((i,o)=>Bt((r,a)=>n(i,r,o,a))(io(t(i,o))),e):("number"==typeof n&&(e=n),$n((i,o)=>function VG(t,n,e,i,o,r,a,s){const l=[];let c=0,u=0,d=!1;const h=()=>{d&&!l.length&&!c&&n.complete()},p=b=>c{r&&n.next(b),c++;let T=!1;io(e(b,u++)).subscribe(Pn(n,D=>{o?.(D),r?p(D):n.next(D)},()=>{T=!0},void 0,()=>{if(T)try{for(c--;l.length&&cg(D)):g(D)}h()}catch(D){n.error(D)}}))};return t.subscribe(Pn(n,p,()=>{d=!0,h()})),()=>{s?.()}}(i,o,t,e)))}function au(t,n){return Ae(n)?Wi(t,n,1):Wi(t,1)}function ui(t,n){return $n((e,i)=>{let o=0;e.subscribe(Pn(i,r=>t.call(n,r,o++)&&i.next(r)))})}function Dl(t){return $n((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function Ni(t,n){return $n((e,i)=>{let o=null,r=0,a=!1;const s=()=>a&&!o&&i.complete();e.subscribe(Pn(i,l=>{o?.unsubscribe();let c=0;const u=r++;io(t(l,u)).subscribe(o=Pn(i,d=>i.next(n?n(l,d,u,c++):d),()=>{o=null,s()}))},()=>{a=!0,s()}))})}class Kg{}class qg{}class Cr{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const o=e.slice(0,i),r=o.toLowerCase(),a=e.slice(i+1).trim();this.maybeSetNormalizedName(o,r),this.headers.has(r)?this.headers.get(r).push(a):this.headers.set(r,[a])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.setHeaderEntries(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof Cr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new Cr;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Cr?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const o=("a"===n.op?this.headers.get(e):void 0)||[];o.push(...i),this.headers.set(e,o);break;case"d":const r=n.value;if(r){let a=this.headers.get(e);if(!a)return;a=a.filter(s=>-1===r.indexOf(s)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}setHeaderEntries(n,e){const i=(Array.isArray(e)?e:[e]).map(r=>r.toString()),o=n.toLowerCase();this.headers.set(o,i),this.maybeSetNormalizedName(n,o)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class ZG{encodeKey(n){return s2(n)}encodeValue(n){return s2(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const UG=/%(\d[a-f0-9])/gi,WG={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function s2(t){return encodeURIComponent(t).replace(UG,(n,e)=>WG[e]??n)}function em(t){return`${t}`}class Rs{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new ZG,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function GG(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const r=o.indexOf("="),[a,s]=-1==r?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,r)),n.decodeValue(o.slice(r+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],o=Array.isArray(i)?i.map(em):[em(i)];this.map.set(e,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const o=n[i];Array.isArray(o)?o.forEach(r=>{e.push({param:i,value:r,op:"a"})}):e.push({param:i,value:o,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new Rs({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(em(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const o=i.indexOf(em(n.value));-1!==o&&i.splice(o,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class XG{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function l2(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function c2(t){return typeof Blob<"u"&&t instanceof Blob}function u2(t){return typeof FormData<"u"&&t instanceof FormData}class Dh{constructor(n,e,i,o){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function JG(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==i?i:null,r=o):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),this.transferCache=r.transferCache),this.headers??=new Cr,this.context??=new XG,this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":sd.set(h,n.setHeaders[h]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((d,h)=>d.set(h,n.setParams[h]),c)),new Dh(e,i,r,{params:c,headers:l,context:u,reportProgress:s,responseType:o,withCredentials:a})}}var Ps=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Ps||{});class a0{constructor(n,e=Eh.Ok,i="OK"){this.headers=n.headers||new Cr,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class tm extends a0{constructor(n={}){super(n),this.type=Ps.ResponseHeader}clone(n={}){return new tm({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class El extends a0{constructor(n={}){super(n),this.type=Ps.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new El({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Xa extends a0{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}var Eh=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(Eh||{});function s0(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}let su=(()=>{class t{constructor(e){this.handler=e}request(e,i,o={}){let r;if(e instanceof Dh)r=e;else{let l,c;l=o.headers instanceof Cr?o.headers:new Cr(o.headers),o.params&&(c=o.params instanceof Rs?o.params:new Rs({fromObject:o.params})),r=new Dh(e,i,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}const a=Et(r).pipe(au(l=>this.handler.handle(l)));if(e instanceof Dh||"events"===o.observe)return a;const s=a.pipe(ui(l=>l instanceof El));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(Bt(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return s.pipe(Bt(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return s.pipe(Bt(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return s.pipe(Bt(l=>l.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Rs).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,o={}){return this.request("PATCH",e,s0(o,i))}post(e,i,o={}){return this.request("POST",e,s0(o,i))}put(e,i,o={}){return this.request("PUT",e,s0(o,i))}static{this.\u0275fac=function(i){return new(i||t)(Me(Kg))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function h2(t,n){return n(t)}function nU(t,n){return(e,i)=>n.intercept(e,{handle:o=>t(o,i)})}const oU=new He(""),Th=new He(""),f2=new He(""),p2=new He("");function rU(){let t=null;return(n,e)=>{null===t&&(t=(Pe(oU,{optional:!0})??[]).reduceRight(nU,h2));const i=Pe(Cs),o=i.add();return t(n,e).pipe(Dl(()=>i.remove(o)))}}let g2=(()=>{class t extends Kg{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=Pe(Cs);const o=Pe(p2,{optional:!0});this.backend=o??e}handle(e){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(Th),...this.injector.get(f2,[])]));this.chain=o.reduceRight((r,a)=>function iU(t,n,e){return(i,o)=>ia(e,()=>n(i,r=>t(r,o)))}(r,a,this.injector),h2)}const i=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(Dl(()=>this.pendingTasks.remove(i)))}static{this.\u0275fac=function(i){return new(i||t)(Me(qg),Me(Lo))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const uU=/^\)\]\}',?\n/;let b2=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new S(-2800,!1);const i=this.xhrFactory;return(i.\u0275loadImpl?bi(i.\u0275loadImpl()):Et(null)).pipe(Ni(()=>new On(r=>{const a=i.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((b,T)=>a.setRequestHeader(b,T.join(","))),e.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const b=e.detectContentTypeHeader();null!==b&&a.setRequestHeader("Content-Type",b)}if(e.responseType){const b=e.responseType.toLowerCase();a.responseType="json"!==b?b:"text"}const s=e.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const b=a.statusText||"OK",T=new Cr(a.getAllResponseHeaders()),D=function dU(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(a)||e.url;return l=new tm({headers:T,status:a.status,statusText:b,url:D}),l},u=()=>{let{headers:b,status:T,statusText:D,url:H}=c(),oe=null;T!==Eh.NoContent&&(oe=typeof a.response>"u"?a.responseText:a.response),0===T&&(T=oe?Eh.Ok:0);let le=T>=200&&T<300;if("json"===e.responseType&&"string"==typeof oe){const G=oe;oe=oe.replace(uU,"");try{oe=""!==oe?JSON.parse(oe):null}catch(pe){oe=G,le&&(le=!1,oe={error:pe,text:oe})}}le?(r.next(new El({body:oe,headers:b,status:T,statusText:D,url:H||void 0})),r.complete()):r.error(new Xa({error:oe,headers:b,status:T,statusText:D,url:H||void 0}))},d=b=>{const{url:T}=c(),D=new Xa({error:b,status:a.status||0,statusText:a.statusText||"Unknown Error",url:T||void 0});r.error(D)};let h=!1;const p=b=>{h||(r.next(c()),h=!0);let T={type:Ps.DownloadProgress,loaded:b.loaded};b.lengthComputable&&(T.total=b.total),"text"===e.responseType&&a.responseText&&(T.partialText=a.responseText),r.next(T)},g=b=>{let T={type:Ps.UploadProgress,loaded:b.loaded};b.lengthComputable&&(T.total=b.total),r.next(T)};return a.addEventListener("load",u),a.addEventListener("error",d),a.addEventListener("timeout",d),a.addEventListener("abort",d),e.reportProgress&&(a.addEventListener("progress",p),null!==s&&a.upload&&a.upload.addEventListener("progress",g)),a.send(s),r.next({type:Ps.Sent}),()=>{a.removeEventListener("error",d),a.removeEventListener("abort",d),a.removeEventListener("load",u),a.removeEventListener("timeout",d),e.reportProgress&&(a.removeEventListener("progress",p),null!==s&&a.upload&&a.upload.removeEventListener("progress",g)),a.readyState!==a.DONE&&a.abort()}})))}static{this.\u0275fac=function(i){return new(i||t)(Me(dI))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const u0=new He(""),y2=new He("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),_2=new He("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class v2{}let pU=(()=>{class t{constructor(e,i,o){this.doc=e,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=eI(e,this.cookieName),this.lastCookieString=e),this.lastToken}static{this.\u0275fac=function(i){return new(i||t)(Me(qt),Me(La),Me(y2))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function gU(t,n){const e=t.url.toLowerCase();if(!Pe(u0)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=Pe(v2).getToken(),o=Pe(_2);return null!=i&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,i)})),n(t)}var Ns=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Ns||{});function Tl(t,n){return{\u0275kind:t,\u0275providers:n}}function mU(...t){const n=[su,b2,g2,{provide:Kg,useExisting:g2},{provide:qg,useExisting:b2},{provide:Th,useValue:gU,multi:!0},{provide:u0,useValue:!0},{provide:v2,useClass:pU}];for(const e of t)n.push(...e.\u0275providers);return dc(n)}const w2=new He("");let yU=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({providers:[mU(Tl(Ns.LegacyInterceptors,[{provide:w2,useFactory:rU},{provide:Th,useExisting:w2,multi:!0}]))]})}}return t})();const{isArray:SU}=Array,{getPrototypeOf:DU,prototype:EU,keys:TU}=Object;function M2(t){if(1===t.length){const n=t[0];if(SU(n))return{args:n,keys:null};if(function MU(t){return t&&"object"==typeof t&&DU(t)===EU}(n)){const e=TU(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:AU}=Array;function d0(t){return Bt(n=>function kU(t,n){return AU(n)?t(...n):t(n)}(t,n))}function A2(t,n){return t.reduce((e,i,o)=>(e[i]=n[o],e),{})}function Mh(...t){const n=YI(t),{args:e,keys:i}=M2(t),o=new On(r=>{const{length:a}=e;if(!a)return void r.complete();const s=new Array(a);let l=a,c=a;for(let u=0;u{d||(d=!0,c--),s[u]=h},()=>l--,void 0,()=>{(!l||!d)&&(c||r.next(i?A2(i,s):s),r.complete())}))}});return n?o.pipe(d0(n)):o}let k2=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static{this.\u0275fac=function(i){return new(i||t)(K(Ha),K(Zt))}}static{this.\u0275dir=gt({type:t})}}return t})(),Ml=(()=>{class t extends k2{static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=yi(t)))(o||t)}})()}static{this.\u0275dir=gt({type:t,features:[an]})}}return t})();const or=new He(""),OU={provide:or,useExisting:Dn(()=>Ah),multi:!0},PU=new He("");let Ah=(()=>{class t extends k2{constructor(e,i,o){super(e,i),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function RU(){const t=za()?za().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static{this.\u0275fac=function(i){return new(i||t)(K(Ha),K(Zt),K(PU,8))}}static{this.\u0275dir=gt({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){1&i&&_t("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[wn([OU]),an]})}}return t})();function Fs(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function O2(t){return null!=t&&"number"==typeof t.length}const Xi=new He(""),Ls=new He(""),NU=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class js{static min(n){return function R2(t){return n=>{if(Fs(n.value)||Fs(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{if(Fs(n.value)||Fs(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return N2(n)}static requiredTrue(n){return function F2(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function L2(t){return Fs(t.value)||NU.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function j2(t){return n=>Fs(n.value)||!O2(n.value)?null:n.value.lengthO2(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return function H2(t){if(!t)return im;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(Fs(i.value))return null;const o=i.value;return n.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}(n)}static nullValidator(n){return null}static compose(n){return G2(n)}static composeAsync(n){return U2(n)}}function N2(t){return Fs(t.value)?{required:!0}:null}function im(t){return null}function Y2(t){return null!=t}function z2(t){return fh(t)?bi(t):t}function $2(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function V2(t,n){return n.map(e=>e(t))}function Z2(t){return t.map(n=>function FU(t){return!t.validate}(n)?n:e=>n.validate(e))}function G2(t){if(!t)return null;const n=t.filter(Y2);return 0==n.length?null:function(e){return $2(V2(e,n))}}function h0(t){return null!=t?G2(Z2(t)):null}function U2(t){if(!t)return null;const n=t.filter(Y2);return 0==n.length?null:function(e){return Mh(V2(e,n).map(z2)).pipe(Bt($2))}}function f0(t){return null!=t?U2(Z2(t)):null}function W2(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function X2(t){return t._rawValidators}function J2(t){return t._rawAsyncValidators}function p0(t){return t?Array.isArray(t)?t:[t]:[]}function om(t,n){return Array.isArray(t)?t.includes(n):t===n}function Q2(t,n){const e=p0(n);return p0(t).forEach(o=>{om(e,o)||e.push(o)}),e}function K2(t,n){return p0(n).filter(e=>!om(t,e))}class q2{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=h0(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=f0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Ao extends q2{get formDirective(){return null}get path(){return null}}class ya extends q2{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class eO{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let rm=(()=>{class t extends eO{constructor(e){super(e)}static{this.\u0275fac=function(i){return new(i||t)(K(ya,2))}}static{this.\u0275dir=gt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){2&i&&un("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[an]})}}return t})();const kh="VALID",sm="INVALID",lu="PENDING",Ih="DISABLED";function b0(t){return(lm(t)?t.validators:t)||null}function y0(t,n){return(lm(n)?n.asyncValidators:t)||null}function lm(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function nO(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new S(1e3,"");if(!i[e])throw new S(1001,"")}function iO(t,n,e){t._forEachChild((i,o)=>{if(void 0===e[o])throw new S(1002,"")})}class cm{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===kh}get invalid(){return this.status===sm}get pending(){return this.status==lu}get disabled(){return this.status===Ih}get enabled(){return this.status!==Ih}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(Q2(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Q2(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(K2(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(K2(n,this._rawAsyncValidators))}hasValidator(n){return om(this._rawValidators,n)}hasAsyncValidator(n){return om(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=lu,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Ih,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=kh,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===kh||this.status===lu)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ih:kh}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=lu,this._hasOwnPendingAsyncValidator=!0;const e=z2(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,o)=>i&&i._find(o),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new Ot,this.statusChanges=new Ot}_calculateStatus(){return this._allControlsDisabled()?Ih:this.errors?sm:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(lu)?lu:this._anyControlsHaveStatus(sm)?sm:kh}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){lm(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function YU(t){return Array.isArray(t)?h0(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function zU(t){return Array.isArray(t)?f0(t):t||null}(this._rawAsyncValidators)}}class Oh extends cm{constructor(n,e,i){super(b0(e),y0(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){iO(this,0,n),Object.keys(n).forEach(i=>{nO(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const o=this.controls[i];o&&o.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,o)=>{i.reset(n?n[o]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,o)=>((i.enabled||this.disabled)&&(e[o]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((o,r)=>{i=e(i,o,r)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class oO extends Oh{}const Al=new He("CallSetDisabledState",{providedIn:"root",factory:()=>Rh}),Rh="always";function Ph(t,n,e=Rh){_0(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function VU(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&rO(t,n)})}(t,n),function GU(t,n){const e=(i,o)=>{n.valueAccessor.writeValue(i),o&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function ZU(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&rO(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function $U(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function dm(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),fm(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function hm(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function _0(t,n){const e=X2(t);null!==n.validator?t.setValidators(W2(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=J2(t);null!==n.asyncValidator?t.setAsyncValidators(W2(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const o=()=>t.updateValueAndValidity();hm(n._rawValidators,o),hm(n._rawAsyncValidators,o)}function fm(t,n){let e=!1;if(null!==t){if(null!==n.validator){const o=X2(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(null!==n.asyncValidator){const o=J2(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}const i=()=>{};return hm(n._rawValidators,i),hm(n._rawAsyncValidators,i),e}function rO(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function aO(t,n){_0(t,n)}function w0(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}function sO(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function C0(t,n){if(!n)return null;let e,i,o;return Array.isArray(n),n.forEach(r=>{r.constructor===Ah?e=r:function XU(t){return Object.getPrototypeOf(t.constructor)===Ml}(r)?i=r:o=r}),o||i||e||null}const QU={provide:Ao,useExisting:Dn(()=>Fh)},Nh=(()=>Promise.resolve())();let Fh=(()=>{class t extends Ao{constructor(e,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ot,this.form=new Oh({},h0(e),f0(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Nh.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Ph(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Nh.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Nh.then(()=>{const i=this._findContainer(e.path),o=new Oh({});aO(o,e),i.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Nh.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){Nh.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,sO(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static{this.\u0275fac=function(i){return new(i||t)(K(Xi,10),K(Ls,10),K(Al,8))}}static{this.\u0275dir=gt({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,o){1&i&&_t("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[Le.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[wn([QU]),an]})}}return t})();function lO(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function cO(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const Vr=class extends cm{constructor(n=null,e,i){super(b0(e),y0(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),lm(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=cO(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){lO(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){lO(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){cO(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},eW={provide:ya,useExisting:Dn(()=>Lh)},hO=(()=>Promise.resolve())();let Lh=(()=>{class t extends ya{constructor(e,i,o,r,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this.control=new Vr,this._registered=!1,this.name="",this.update=new Ot,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=C0(0,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),w0(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ph(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){hO.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,o=0!==i&&Nt(i);hO.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function um(t,n){return[...n.path,t]}(e,this._parent):[e]}static{this.\u0275fac=function(i){return new(i||t)(K(Ao,9),K(Xi,10),K(Ls,10),K(or,10),K(mi,8),K(Al,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[Le.None,"disabled","isDisabled"],model:[Le.None,"ngModel","model"],options:[Le.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[wn([eW]),an,Gi]})}}return t})();const x0=new He(""),aW={provide:ya,useExisting:Dn(()=>S0)};let S0=(()=>{class t extends ya{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,i,o,r,a){super(),this._ngModelWarningConfig=r,this.callSetDisabledState=a,this.update=new Ot,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=C0(0,o)}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&dm(i,this,!1),Ph(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}w0(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&dm(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static{this.\u0275fac=function(i){return new(i||t)(K(Xi,10),K(Ls,10),K(or,10),K(x0,8),K(Al,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","formControl",""]],inputs:{form:[Le.None,"formControl","form"],isDisabled:[Le.None,"disabled","isDisabled"],model:[Le.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[wn([aW]),an,Gi]})}}return t})();const sW={provide:Ao,useExisting:Dn(()=>jh)};let jh=(()=>{class t extends Ao{constructor(e,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ot,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(fm(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return Ph(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){dm(e.control||null,e,!1),function JU(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,sO(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,o=this.form.get(e.path);i!==o&&(dm(i||null,e),(t=>t instanceof Vr)(o)&&(Ph(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);aO(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function UU(t,n){return fm(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){_0(this.form,this),this._oldForm&&fm(this._oldForm,this)}_checkFormPresent(){}static{this.\u0275fac=function(i){return new(i||t)(K(Xi,10),K(Ls,10),K(Al,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,o){1&i&&_t("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[Le.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[wn([sW]),an,Gi]})}}return t})(),kl=(()=>{class t{constructor(){this._validator=im}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):im,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=gt({type:t,features:[Gi]})}}return t})();const _W={provide:Xi,useExisting:Dn(()=>pm),multi:!0};let pm=(()=>{class t extends kl{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Nt,this.createValidator=e=>N2}enabled(e){return e}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=yi(t)))(o||t)}})()}static{this.\u0275dir=gt({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,o){2&i&&Kt("required",o._enabled?"":null)},inputs:{required:"required"},features:[wn([_W]),an]})}}return t})(),MO=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({})}}return t})();class AO extends cm{constructor(n,e,i){super(b0(e),y0(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let o=this._adjustIndex(n);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),e&&(this.controls.splice(o,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){iO(this,0,n),n.forEach((i,o)=>{nO(this,!1,o),this.at(o).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,o)=>{this.at(o)&&this.at(o).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,o)=>{i.reset(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function kO(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let IO=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const o=this._reduceControls(e);let r={};return kO(i)?r=i:null!==i&&(r.validators=i.validator,r.asyncValidators=i.asyncValidator),new Oh(o,r)}record(e,i=null){const o=this._reduceControls(e);return new oO(o,i)}control(e,i,o){let r={};return this.useNonNullable?(kO(i)?r=i:(r.validators=i,r.asyncValidators=o),new Vr(e,{...r,nonNullable:!0})):new Vr(e,i,o)}array(e,i,o){const r=e.map(a=>this._createControl(a));return new AO(r,i,o)}_reduceControls(e){const i={};return Object.keys(e).forEach(o=>{i[o]=this._createControl(e[o])}),i}_createControl(e){return e instanceof Vr||e instanceof cm?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),OO=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Al,useValue:e.callSetDisabledState??Rh}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[MO]})}}return t})(),DW=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:x0,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Al,useValue:e.callSetDisabledState??Rh}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[MO]})}}return t})();function RO(t){return new S(3e3,!1)}function Bs(t){switch(t.length){case 0:return new xh;case 1:return t[0];default:return new FI(t)}}function PO(t,n,e=new Map,i=new Map){const o=[],r=[];let a=-1,s=null;if(n.forEach(l=>{const c=l.get("offset"),u=c==a,d=u&&s||new Map;l.forEach((h,p)=>{let g=p,b=h;if("offset"!==p)switch(g=t.normalizePropertyName(g,o),b){case"!":b=e.get(p);break;case Ga:b=i.get(p);break;default:b=t.normalizeStyleValue(p,g,b,o)}d.set(g,b)}),u||r.push(d),s=d,a=c}),o.length)throw function WW(t){return new S(3502,!1)}();return r}function k0(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&I0(e,"start",t)));break;case"done":t.onDone(()=>i(e&&I0(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&I0(e,"destroy",t)))}}function I0(t,n,e){const r=O0(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),a=t._data;return null!=a&&(r._data=a),r}function O0(t,n,e,i,o="",r=0,a){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:o,totalTime:r,disabled:!!a}}function rr(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function NO(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}const aX=(()=>typeof document>"u"?null:document.documentElement)();function R0(t){const n=t.parentNode||t.host||null;return n===aX?null:n}let Il=null,FO=!1;function LO(t,n){for(;n;){if(n===t)return!0;n=R0(n)}return!1}function jO(t,n,e){if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]}let P0=(()=>{class t{validateStyleProperty(e){return function lX(t){Il||(Il=function cX(){return typeof document<"u"?document.body:null}()||{},FO=!!Il.style&&"WebkitAppearance"in Il.style);let n=!0;return Il.style&&!function sX(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Il.style,!n&&FO&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Il.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return LO(e,i)}getParentElement(e){return R0(e)}query(e,i,o){return jO(e,i,o)}computeStyle(e,i,o){return o||""}animate(e,i,o,r,a,s=[],l){return new xh(o,r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();class N0{static{this.NOOP=new P0}}class F0{}const dX=1e3,L0="ng-enter",gm="ng-leave",mm="ng-trigger",bm=".ng-trigger",HO="ng-animating",j0=".ng-animating";function Ja(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:B0(parseFloat(n[1]),n[2])}function B0(t,n){return"s"===n?t*dX:t}function ym(t,n,e){return t.hasOwnProperty("duration")?t:function fX(t,n,e){let o,r=0,a="";if("string"==typeof t){const s=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return n.push(RO()),{duration:0,delay:0,easing:""};o=B0(parseFloat(s[1]),s[2]);const l=s[3];null!=l&&(r=B0(parseFloat(l),s[4]));const c=s[5];c&&(a=c)}else o=t;if(!e){let s=!1,l=n.length;o<0&&(n.push(function EW(){return new S(3100,!1)}()),s=!0),r<0&&(n.push(function TW(){return new S(3101,!1)}()),s=!0),s&&n.splice(l,0,RO())}return{duration:o,delay:r,easing:a}}(t,n,e)}function _a(t,n,e){n.forEach((i,o)=>{const r=Y0(o);e&&!e.has(o)&&e.set(o,t.style[r]),t.style[r]=i})}function Ol(t,n){n.forEach((e,i)=>{const o=Y0(i);t.style[o]=""})}function Bh(t){return Array.isArray(t)?1==t.length?t[0]:function BZ(t,n=null){return{type:Xt.Sequence,steps:t,options:n}}(t):t}const H0=new RegExp("{{\\s*(.+?)\\s*}}","g");function zO(t){let n=[];if("string"==typeof t){let e;for(;e=H0.exec(t);)n.push(e[1]);H0.lastIndex=0}return n}function Hh(t,n,e){const i=`${t}`,o=i.replace(H0,(r,a)=>{let s=n[a];return null==s&&(e.push(function AW(t){return new S(3003,!1)}()),s=""),s.toString()});return o==i?t:o}const mX=/-+([a-z0-9])/g;function Y0(t){return t.replace(mX,(...n)=>n[1].toUpperCase())}function ar(t,n,e){switch(n.type){case Xt.Trigger:return t.visitTrigger(n,e);case Xt.State:return t.visitState(n,e);case Xt.Transition:return t.visitTransition(n,e);case Xt.Sequence:return t.visitSequence(n,e);case Xt.Group:return t.visitGroup(n,e);case Xt.Animate:return t.visitAnimate(n,e);case Xt.Keyframes:return t.visitKeyframes(n,e);case Xt.Style:return t.visitStyle(n,e);case Xt.Reference:return t.visitReference(n,e);case Xt.AnimateChild:return t.visitAnimateChild(n,e);case Xt.AnimateRef:return t.visitAnimateRef(n,e);case Xt.Query:return t.visitQuery(n,e);case Xt.Stagger:return t.visitStagger(n,e);default:throw function kW(t){return new S(3004,!1)}()}}function z0(t,n){return window.getComputedStyle(t)[n]}const _X=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class $O extends F0{normalizePropertyName(n,e){return Y0(n)}normalizeStyleValue(n,e,i,o){let r="";const a=i.toString().trim();if(_X.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const s=i.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&o.push(function IW(t,n){return new S(3005,!1)}())}return a+r}}const _m="*";const vm=new Set(["true","1"]),wm=new Set(["false","0"]);function VO(t,n){const e=vm.has(t)||wm.has(t),i=vm.has(n)||wm.has(n);return(o,r)=>{let a=t==_m||t==o,s=n==_m||n==r;return!a&&e&&"boolean"==typeof o&&(a=o?vm.has(t):wm.has(t)),!s&&i&&"boolean"==typeof r&&(s=r?vm.has(n):wm.has(n)),a&&s}}const xX=new RegExp("s*:selfs*,?","g");function $0(t,n,e,i){return new SX(t).build(n,e,i)}class SX{constructor(n){this._driver=n}build(n,e,i){const o=new TX(e);return this._resetContextStyleTimingState(o),ar(this,Bh(n),o)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,o=e.depCount=0;const r=[],a=[];return"@"==n.name.charAt(0)&&e.errors.push(function OW(){return new S(3006,!1)}()),n.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==Xt.State){const l=s,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,r.push(this.visitState(l,e))}),l.name=c}else if(s.type==Xt.Transition){const l=this.visitTransition(s,e);i+=l.queryCount,o+=l.depCount,a.push(l)}else e.errors.push(function RW(){return new S(3007,!1)}())}),{type:Xt.Trigger,name:n.name,states:r,transitions:a,queryCount:i,depCount:o,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),o=n.options&&n.options.params||null;if(i.containsDynamicStyles){const r=new Set,a=o||{};i.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{zO(l).forEach(c=>{a.hasOwnProperty(c)||r.add(c)})})}),r.size&&e.errors.push(function PW(t,n){return new S(3008,!1)}(0,r.values()))}return{type:Xt.State,name:n.name,style:i,options:o?{params:o}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=ar(this,Bh(n.animation),e),o=function vX(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function wX(t,n,e){if(":"==t[0]){const l=function CX(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function $W(t){return new S(3015,!1)}()),n;const o=i[1],r=i[2],a=i[3];n.push(VO(o,a)),"<"==r[0]&&(o!=_m||a!=_m)&&n.push(VO(a,o))}(i,e,n)):e.push(t),e}(n.expr,e.errors);return{type:Xt.Transition,matchers:o,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Rl(n.options)}}visitSequence(n,e){return{type:Xt.Sequence,steps:n.steps.map(i=>ar(this,i,e)),options:Rl(n.options)}}visitGroup(n,e){const i=e.currentTime;let o=0;const r=n.steps.map(a=>{e.currentTime=i;const s=ar(this,a,e);return o=Math.max(o,e.currentTime),s});return e.currentTime=o,{type:Xt.Group,steps:r,options:Rl(n.options)}}visitAnimate(n,e){const i=function AX(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return V0(ym(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=V0(0,0,"");return r.dynamic=!0,r.strValue=e,r}const o=ym(e,n);return V0(o.duration,o.delay,o.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let o,r=n.styles?n.styles:oi({});if(r.type==Xt.Keyframes)o=this.visitKeyframes(r,e);else{let a=n.styles,s=!1;if(!a){s=!0;const c={};i.easing&&(c.easing=i.easing),a=oi(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(a,e);l.isEmptyStep=s,o=l}return e.currentAnimateTimings=null,{type:Xt.Animate,timings:i,style:o,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],o=Array.isArray(n.styles)?n.styles:[n.styles];for(let s of o)"string"==typeof s?s===Ga?i.push(s):e.errors.push(new S(3002,!1)):i.push(new Map(Object.entries(s)));let r=!1,a=null;return i.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!r))for(let l of s.values())if(l.toString().indexOf("{{")>=0){r=!0;break}}),{type:Xt.Style,styles:i,easing:a,offset:n.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let o=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),n.styles.forEach(a=>{"string"!=typeof a&&a.forEach((s,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(r!=o&&r>=u.startTime&&o<=u.endTime&&(e.errors.push(function FW(t,n,e,i,o){return new S(3010,!1)}()),d=!1),r=u.startTime),d&&c.set(l,{startTime:r,endTime:o}),e.options&&function gX(t,n,e){const i=n.params||{},o=zO(t);o.length&&o.forEach(r=>{i.hasOwnProperty(r)||e.push(function MW(t){return new S(3001,!1)}())})}(s,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:Xt.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function LW(){return new S(3011,!1)}()),i;let r=0;const a=[];let s=!1,l=!1,c=0;const u=n.steps.map(D=>{const H=this._makeStyleAst(D,e);let oe=null!=H.offset?H.offset:function MX(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(H.styles),le=0;return null!=oe&&(r++,le=H.offset=oe),l=l||le<0||le>1,s=s||le0&&r{const oe=h>0?H==p?1:h*H:a[H],le=oe*T;e.currentTime=g+b.delay+le,b.duration=le,this._validateStyleAst(D,e),D.offset=oe,i.styles.push(D)}),i}visitReference(n,e){return{type:Xt.Reference,animation:ar(this,Bh(n.animation),e),options:Rl(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:Xt.AnimateChild,options:Rl(n.options)}}visitAnimateRef(n,e){return{type:Xt.AnimateRef,animation:this.visitReference(n.animation,e),options:Rl(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,o=n.options||{};e.queryCount++,e.currentQuery=n;const[r,a]=function DX(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(xX,"")),t=t.replace(/@\*/g,bm).replace(/@\w+/g,e=>bm+"-"+e.slice(1)).replace(/:animating/g,j0),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+r:r,rr(e.collectedStyles,e.currentQuerySelector,new Map);const s=ar(this,Bh(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:Xt.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:s,originalSelector:n.selector,options:Rl(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function YW(){return new S(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:ym(n.timings,e.errors,!0);return{type:Xt.Stagger,animation:ar(this,Bh(n.animation),e),timings:i,options:null}}}class TX{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Rl(t){return t?(t={...t}).params&&(t.params=function EX(t){return t?{...t}:null}(t.params)):t={},t}function V0(t,n,e){return{duration:t,delay:n,easing:e}}function Z0(t,n,e,i,o,r,a=null,s=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:a,subTimeline:s}}class Cm{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const OX=new RegExp(":enter","g"),PX=new RegExp(":leave","g");function G0(t,n,e,i,o,r=new Map,a=new Map,s,l,c=[]){return(new NX).buildKeyframes(t,n,e,i,o,r,a,s,l,c)}class NX{buildKeyframes(n,e,i,o,r,a,s,l,c,u=[]){c=c||new Cm;const d=new U0(n,e,c,o,r,u,[]);d.options=l;const h=l.delay?Ja(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([a],null,d.errors,l),ar(this,i,d);const p=d.timelines.filter(g=>g.containsAnimation());if(p.length&&s.size){let g;for(let b=p.length-1;b>=0;b--){const T=p[b];if(T.element===e){g=T;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([s],null,d.errors,l)}return p.length?p.map(g=>g.buildKeyframes()):[Z0(e,[],[],[],0,h,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const o=e.createSubContext(n.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,o,o.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const o of n){const r=o?.delay;if(r){const a="number"==typeof r?r:Ja(Hh(r,o?.params??{},e.errors));i.delayNextStep(a)}}}_visitSubInstructions(n,e,i){let r=e.currentTimeline.currentTime;const a=null!=i.duration?Ja(i.duration):null,s=null!=i.delay?Ja(i.delay):null;return 0!==a&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,a,s);r=Math.max(r,c.duration+c.delay)}),r}visitReference(n,e){e.updateOptions(n.options,!0),ar(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let o=e;const r=n.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),null!=r.delay)){o.previousNode.type==Xt.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=xm);const a=Ja(r.delay);o.delayNextStep(a)}n.steps.length&&(n.steps.forEach(a=>ar(this,a,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let o=e.currentTimeline.currentTime;const r=n.options&&n.options.delay?Ja(n.options.delay):0;n.steps.forEach(a=>{const s=e.createSubContext(n.options);r&&s.delayNextStep(r),ar(this,a,s),o=Math.max(o,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(o),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return ym(e.params?Hh(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),o=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),o.snapshotCurrentStyles());const r=n.style;r.type==Xt.Keyframes?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,o=e.currentAnimateTimings;!o&&i.hasCurrentStyleProperties()&&i.forwardFrame();const r=o&&o.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(r):i.setStyles(n.styles,r,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,o=e.currentTimeline.duration,r=i.duration,s=e.createSubContext().currentTimeline;s.easing=i.easing,n.styles.forEach(l=>{s.forwardTime((l.offset||0)*r),s.setStyles(l.styles,l.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(o+r),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,o=n.options||{},r=o.delay?Ja(o.delay):0;r&&(e.previousNode.type===Xt.Style||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=xm);let a=i;const s=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;let l=null;s.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(n.options,c);r&&d.delayNextStep(r),c===e.element&&(l=d.currentTimeline),ar(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,o=e.currentTimeline,r=n.timings,a=Math.abs(r.duration),s=a*(e.currentQueryTotal-1);let l=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=s-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;ar(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=o.currentTime-d+(o.startTime-i.currentTimeline.startTime)}}const xm={};class U0{constructor(n,e,i,o,r,a,s,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=xm,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Sm(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let o=this.options;null!=i.duration&&(o.duration=Ja(i.duration)),null!=i.delay&&(o.delay=Ja(i.delay));const r=i.params;if(r){let a=o.params;a||(a=this.options.params={}),Object.keys(r).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=Hh(r[s],a,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(o=>{i[o]=e[o]})}}return n}createSubContext(n=null,e,i){const o=e||this.element,r=new U0(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=xm,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const o={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},r=new FX(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,o,n.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,o,r,a){let s=[];if(o&&s.push(this.element),n.length>0){n=(n=n.replace(OX,"."+this._enterClassName)).replace(PX,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),s.push(...c)}return!r&&0==s.length&&a.push(function zW(t){return new S(3014,!1)}()),s}}class Sm{constructor(n,e,i,o){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Sm(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Ga),this._currentKeyframe.set(e,Ga);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,o){e&&this._previousKeyframe.set("easing",e);const r=o&&o.params||{},a=function LX(t,n){const e=new Map;let i;return t.forEach(o=>{if("*"===o){i??=n.keys();for(let r of i)e.set(r,Ga)}else for(let[r,a]of o)e.set(r,a)}),e}(n,this._globalTimelineStyles);for(let[s,l]of a){const c=Hh(l,r,i);this._pendingStyles.set(s,c),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Ga),this._updateStyle(s,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const o=this._styleSummary.get(i);(!o||e.time>o.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((s,l)=>{const c=new Map([...this._backFill,...s]);c.forEach((u,d)=>{"!"===u?n.add(d):u===Ga&&e.add(d)}),i||c.set("offset",l/this.duration),o.push(c)});const r=[...n.values()],a=[...e.values()];if(i){const s=o[0],l=new Map(s);s.set("offset",0),l.set("offset",1),o=[s,l]}return Z0(this.element,o,r,a,this.duration,this.startTime,this.easing,!1)}}class FX extends Sm{constructor(n,e,i,o,r,a,s=!1){super(n,e,a.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],a=i+e,s=e/a,l=new Map(n[0]);l.set("offset",0),r.push(l);const c=new Map(n[0]);c.set("offset",UO(s)),r.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let h=new Map(n[d]);const p=h.get("offset");h.set("offset",UO((e+p*i)/a)),r.push(h)}i=a,e=0,o="",n=r}return Z0(this.element,n,this.preStyleProps,this.postStyleProps,i,e,o,!0)}}function UO(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}function WO(t,n,e,i,o,r,a,s,l,c,u,d,h){return{type:0,element:t,triggerName:n,isRemovalTransition:o,fromState:e,fromStyles:r,toState:i,toStyles:a,timelines:s,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const W0={};class XO{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,o){return function jX(t,n,e,i,o){return t.some(r=>r(n,e,i,o))}(this.ast.matchers,n,e,i,o)}buildStyles(n,e,i){let o=this._stateStyles.get("*");return void 0!==n&&(o=this._stateStyles.get(n?.toString())||o),o?o.buildStyles(e,i):new Map}build(n,e,i,o,r,a,s,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||W0,g=this.buildStyles(i,s&&s.params||W0,d),b=l&&l.params||W0,T=this.buildStyles(o,b,d),D=new Set,H=new Map,oe=new Map,le="void"===o,G={params:JO(b,h),delay:this.ast.options?.delay},pe=u?[]:G0(n,e,this.ast.animation,r,a,g,T,G,c,d);let _e=0;return pe.forEach(be=>{_e=Math.max(be.duration+be.delay,_e)}),d.length?WO(e,this._triggerName,i,o,le,g,T,[],[],H,oe,_e,d):(pe.forEach(be=>{const Be=be.element,Fe=rr(H,Be,new Set);be.preStyleProps.forEach(Re=>Fe.add(Re));const Qe=rr(oe,Be,new Set);be.postStyleProps.forEach(Re=>Qe.add(Re)),Be!==e&&D.add(Be)}),WO(e,this._triggerName,i,o,le,g,T,pe,[...D.values()],H,oe,_e))}}function JO(t,n){const e={...n};return Object.entries(t).forEach(([i,o])=>{null!=o&&(e[i]=o)}),e}class BX{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,o=JO(n,this.defaultParams);return this.styles.styles.forEach(r=>{"string"!=typeof r&&r.forEach((a,s)=>{a&&(a=Hh(a,o,e));const l=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,l,a,e),i.set(s,a)})}),i}}class YX{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new BX(o.style,o.options&&o.options.params||{},i))}),QO(this.states,"true","1"),QO(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new XO(n,o,this.states))}),this.fallbackTransition=function zX(t,n,e){return new XO(t,{type:Xt.Transition,animation:{type:Xt.Sequence,steps:[],options:null},matchers:[(a,s)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,o){return this.transitionFactories.find(a=>a.match(n,e,i,o))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function QO(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const $X=new Cm;class VX{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],r=$0(this._driver,e,i,[]);if(i.length)throw function XW(t){return new S(3503,!1)}();this._animations.set(n,r)}_buildPlayer(n,e,i){const o=n.element,r=PO(this._normalizer,n.keyframes,e,i);return this._driver.animate(o,r,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const o=[],r=this._animations.get(n);let a;const s=new Map;if(r?(a=G0(this._driver,e,r,L0,gm,new Map,new Map,i,$X,o),a.forEach(u=>{const d=rr(s,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(o.push(function JW(){return new S(3300,!1)}()),a=[]),o.length)throw function QW(t){return new S(3504,!1)}();s.forEach((u,d)=>{u.forEach((h,p)=>{u.set(p,this._driver.computeStyle(d,p,Ga))})});const c=Bs(a.map(u=>{const d=s.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function KW(t){return new S(3301,!1)}();return e}listen(n,e,i,o){const r=O0(e,"","","");return k0(this._getPlayer(n),i,r,o),()=>{}}command(n,e,i,o){if("register"==i)return void this.register(n,o[0]);if("create"==i)return void this.create(n,e,o[0]||{});const r=this._getPlayer(n);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(n)}}}const KO="ng-animate-queued",X0="ng-animate-disabled",XX=[],qO={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},JX={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Zr="__ng_removed";class J0{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function eJ(t){return t??null}(i?n.value:n),i){const{value:r,...a}=n;this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(o=>{null==i[o]&&(i[o]=e[o])})}}}const Yh="void",Q0=new J0(Yh);class QX{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,xr(e,this._hostClassName)}listen(n,e,i,o){if(!this._triggers.has(e))throw function qW(t,n){return new S(3302,!1)}();if(null==i||0==i.length)throw function eX(t){return new S(3303,!1)}();if(!function tJ(t){return"start"==t||"done"==t}(i))throw function tX(t,n){return new S(3400,!1)}();const r=rr(this._elementListeners,n,[]),a={name:e,phase:i,callback:o};r.push(a);const s=rr(this._engine.statesByElement,n,new Map);return s.has(e)||(xr(n,mm),xr(n,mm+"-"+e),s.set(e,Q0)),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(e)||s.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function nX(t){return new S(3401,!1)}();return e}trigger(n,e,i,o=!0){const r=this._getTrigger(e),a=new K0(this.id,e,n);let s=this._engine.statesByElement.get(n);s||(xr(n,mm),xr(n,mm+"-"+e),this._engine.statesByElement.set(n,s=new Map));let l=s.get(e);const c=new J0(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),s.set(e,c),l||(l=Q0),c.value!==Yh&&l.value===c.value){if(!function oJ(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let o=0;o{Ol(n,T),_a(n,D)})}return}const h=rr(this._engine.playersByElement,n,[]);h.forEach(b=>{b.namespaceId==this.id&&b.triggerName==e&&b.queued&&b.destroy()});let p=r.matchTransition(l.value,c.value,n,c.params),g=!1;if(!p){if(!o)return;p=r.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:p,fromState:l,toState:c,player:a,isFallbackTransition:g}),g||(xr(n,KO),a.onStart(()=>{cu(n,KO)})),a.onDone(()=>{let b=this.players.indexOf(a);b>=0&&this.players.splice(b,1);const T=this._engine.playersByElement.get(n);if(T){let D=T.indexOf(a);D>=0&&T.splice(D,1)}}),this.players.push(a),h.push(a),a}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(o=>o.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,bm,!0);i.forEach(o=>{if(o[Zr])return;const r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(a=>a.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(n,e,i,o){const r=this._engine.statesByElement.get(n),a=new Map;if(r){const s=[];if(r.forEach((l,c)=>{if(a.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,Yh,o);u&&s.push(u)}}),s.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,a),i&&Bs(s).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const o=new Set;e.forEach(r=>{const a=r.name;if(o.has(a))return;o.add(a);const l=this._triggers.get(a).fallbackTransition,c=i.get(a)||Q0,u=new J0(Yh),d=new K0(this.id,a,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:a,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let o=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(n):[];if(r&&r.length)o=!0;else{let a=n;for(;a=a.parentNode;)if(i.statesByElement.get(a)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(n),o)i.markElementAsRemoved(this.id,n,!1,e);else{const r=n[Zr];(!r||r===qO)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){xr(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const o=i.player;if(o.destroyed)return;const r=i.element,a=this._elementListeners.get(r);a&&a.forEach(s=>{if(s.name==i.triggerName){const l=O0(r,i.triggerName,i.fromState.value,i.toState.value);l._data=n,k0(i.player,s.phase,l,s.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(i)}),this._queue=[],e.sort((i,o)=>{const r=i.transition.ast.depCount,a=o.transition.ast.depCount;return 0==r||0==a?r-a:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class KX{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i,o){this.bodyNode=n,this.driver=e,this._normalizer=i,this.scheduler=o,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,a)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new QX(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,o=this.namespacesByHostElement;if(i.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){const l=o.get(s);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),a=!0;break}s=this.driver.getParentElement(s)}a||i.unshift(n)}else i.push(n);return o.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let o=this._namespaceLookup[n];o&&o.register(e,i)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);const o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1),i.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let o of i.values())if(o.namespaceId){const r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}return e}trigger(n,e,i,o){if(Dm(e)){const r=this._fetchNamespace(n);if(r)return r.trigger(e,i,o),!0}return!1}insertNode(n,e,i,o){if(!Dm(e))return;const r=e[Zr];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(n){const a=this._fetchNamespace(n);a&&a.insertNode(e,i)}o&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),xr(n,X0)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),cu(n,X0))}removeNode(n,e,i){if(Dm(e)){this.scheduler?.notify();const o=n?this._fetchNamespace(n):null;o?o.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);const r=this.namespacesByHostElement.get(e);r&&r.id!==n&&r.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(n,e,i,o,r){this.collectedLeaveElements.push(e),e[Zr]={namespaceId:n,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(n,e,i,o,r){return Dm(e)?this._fetchNamespace(n).listen(e,i,o,r):()=>{}}_buildInstruction(n,e,i,o,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,o,n.fromState.options,n.toState.options,e,r)}destroyInnerAnimations(n){let e=this.driver.query(n,bm,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,j0,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Bs(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[Zr];if(e&&e.setForRemoval){if(n[Zr]=qO,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(X0)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Bs(e).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(n){throw function iX(t){return new S(3402,!1)}()}_flushAnimations(n,e){const i=new Cm,o=[],r=new Map,a=[],s=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(Se=>{u.add(Se);const Ye=this.driver.query(Se,".ng-animate-queued",!0);for(let We=0;We{const We=L0+b++;g.set(Ye,We),Se.forEach(it=>xr(it,We))});const T=[],D=new Set,H=new Set;for(let Se=0;SeD.add(it)):H.add(Ye))}const oe=new Map,le=nR(h,Array.from(D));le.forEach((Se,Ye)=>{const We=gm+b++;oe.set(Ye,We),Se.forEach(it=>xr(it,We))}),n.push(()=>{p.forEach((Se,Ye)=>{const We=g.get(Ye);Se.forEach(it=>cu(it,We))}),le.forEach((Se,Ye)=>{const We=oe.get(Ye);Se.forEach(it=>cu(it,We))}),T.forEach(Se=>{this.processLeaveNode(Se)})});const G=[],pe=[];for(let Se=this._namespaceList.length-1;Se>=0;Se--)this._namespaceList[Se].drainQueuedTransitions(e).forEach(We=>{const it=We.player,St=We.element;if(G.push(it),this.collectedEnterElements.length){const Un=St[Zr];if(Un&&Un.setForMove){if(Un.previousTriggersValues&&Un.previousTriggersValues.has(We.triggerName)){const dt=Un.previousTriggersValues.get(We.triggerName),Cn=this.statesByElement.get(We.element);if(Cn&&Cn.has(We.triggerName)){const ro=Cn.get(We.triggerName);ro.value=dt,Cn.set(We.triggerName,ro)}}return void it.destroy()}}const At=!d||!this.driver.containsElement(d,St),on=oe.get(St),Rn=g.get(St),sn=this._buildInstruction(We,i,Rn,on,At);if(sn.errors&&sn.errors.length)return void pe.push(sn);if(At)return it.onStart(()=>Ol(St,sn.fromStyles)),it.onDestroy(()=>_a(St,sn.toStyles)),void o.push(it);if(We.isFallbackTransition)return it.onStart(()=>Ol(St,sn.fromStyles)),it.onDestroy(()=>_a(St,sn.toStyles)),void o.push(it);const ln=[];sn.timelines.forEach(Un=>{Un.stretchStartingKeyframe=!0,this.disabledNodes.has(Un.element)||ln.push(Un)}),sn.timelines=ln,i.append(St,sn.timelines),a.push({instruction:sn,player:it,element:St}),sn.queriedElements.forEach(Un=>rr(s,Un,[]).push(it)),sn.preStyleProps.forEach((Un,dt)=>{if(Un.size){let Cn=l.get(dt);Cn||l.set(dt,Cn=new Set),Un.forEach((ro,Ar)=>Cn.add(Ar))}}),sn.postStyleProps.forEach((Un,dt)=>{let Cn=c.get(dt);Cn||c.set(dt,Cn=new Set),Un.forEach((ro,Ar)=>Cn.add(Ar))})});if(pe.length){const Se=[];pe.forEach(Ye=>{Se.push(function oX(t,n){return new S(3505,!1)}())}),G.forEach(Ye=>Ye.destroy()),this.reportError(Se)}const _e=new Map,be=new Map;a.forEach(Se=>{const Ye=Se.element;i.has(Ye)&&(be.set(Ye,Ye),this._beforeAnimationBuild(Se.player.namespaceId,Se.instruction,_e))}),o.forEach(Se=>{const Ye=Se.element;this._getPreviousPlayers(Ye,!1,Se.namespaceId,Se.triggerName,null).forEach(it=>{rr(_e,Ye,[]).push(it),it.destroy()})});const Be=T.filter(Se=>oR(Se,l,c)),Fe=new Map;tR(Fe,this.driver,H,c,Ga).forEach(Se=>{oR(Se,l,c)&&Be.push(Se)});const Re=new Map;p.forEach((Se,Ye)=>{tR(Re,this.driver,new Set(Se),l,"!")}),Be.forEach(Se=>{const Ye=Fe.get(Se),We=Re.get(Se);Fe.set(Se,new Map([...Ye?.entries()??[],...We?.entries()??[]]))});const Xe=[],ct=[],ut={};a.forEach(Se=>{const{element:Ye,player:We,instruction:it}=Se;if(i.has(Ye)){if(u.has(Ye))return We.onDestroy(()=>_a(Ye,it.toStyles)),We.disabled=!0,We.overrideTotalTime(it.totalTime),void o.push(We);let St=ut;if(be.size>1){let on=Ye;const Rn=[];for(;on=on.parentNode;){const sn=be.get(on);if(sn){St=sn;break}Rn.push(on)}Rn.forEach(sn=>be.set(sn,St))}const At=this._buildAnimation(We.namespaceId,it,_e,r,Re,Fe);if(We.setRealPlayer(At),St===ut)Xe.push(We);else{const on=this.playersByElement.get(St);on&&on.length&&(We.parentPlayer=Bs(on)),o.push(We)}}else Ol(Ye,it.fromStyles),We.onDestroy(()=>_a(Ye,it.toStyles)),ct.push(We),u.has(Ye)&&o.push(We)}),ct.forEach(Se=>{const Ye=r.get(Se.element);if(Ye&&Ye.length){const We=Bs(Ye);Se.setRealPlayer(We)}}),o.forEach(Se=>{Se.parentPlayer?Se.syncPlayerEvents(Se.parentPlayer):Se.destroy()});for(let Se=0;Se!At.destroyed);St.length?nJ(this,Ye,St):this.processLeaveNode(Ye)}return T.length=0,Xe.forEach(Se=>{this.players.push(Se),Se.onDone(()=>{Se.destroy();const Ye=this.players.indexOf(Se);this.players.splice(Ye,1)}),Se.play()}),Xe}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,o,r){let a=[];if(e){const s=this.playersByQueriedElement.get(n);s&&(a=s)}else{const s=this.playersByElement.get(n);if(s){const l=!r||r==Yh;s.forEach(c=>{c.queued||!l&&c.triggerName!=o||a.push(c)})}}return(i||o)&&(a=a.filter(s=>!(i&&i!=s.namespaceId||o&&o!=s.triggerName))),a}_beforeAnimationBuild(n,e,i){const r=e.element,a=e.isRemovalTransition?void 0:n,s=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==r,d=rr(i,c,[]);this._getPreviousPlayers(c,u,a,s,e.toState).forEach(p=>{const g=p.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),p.destroy(),d.push(p)})}Ol(r,e.fromStyles)}_buildAnimation(n,e,i,o,r,a){const s=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(g=>{const b=g.element;u.add(b);const T=b[Zr];if(T&&T.removedBeforeQueried)return new xh(g.duration,g.delay);const D=b!==l,H=function iJ(t){const n=[];return iR(t,n),n}((i.get(b)||XX).map(_e=>_e.getRealPlayer())).filter(_e=>!!_e.element&&_e.element===b),oe=r.get(b),le=a.get(b),G=PO(this._normalizer,g.keyframes,oe,le),pe=this._buildPlayer(g,G,H);if(g.subTimeline&&o&&d.add(b),D){const _e=new K0(n,s,b);_e.setRealPlayer(pe),c.push(_e)}return pe});c.forEach(g=>{rr(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function qX(t,n,e){let i=t.get(n);if(i){if(i.length){const o=i.indexOf(e);i.splice(o,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,g.element,g))}),u.forEach(g=>xr(g,HO));const p=Bs(h);return p.onDestroy(()=>{u.forEach(g=>cu(g,HO)),_a(l,e.toStyles)}),d.forEach(g=>{rr(o,g,[]).push(p)}),p}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new xh(n.duration,n.delay)}}class K0{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new xh,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(o=>k0(n,i,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){rr(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Dm(t){return t&&1===t.nodeType}function eR(t,n){const e=t.style.display;return t.style.display=n??"none",e}function tR(t,n,e,i,o){const r=[];e.forEach(l=>r.push(eR(l)));const a=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=n.computeStyle(c,d,o);u.set(d,h),(!h||0==h.length)&&(c[Zr]=JX,a.push(c))}),t.set(c,u)});let s=0;return e.forEach(l=>eR(l,r[s++])),a}function nR(t,n){const e=new Map;if(t.forEach(s=>e.set(s,[])),0==n.length)return e;const o=new Set(n),r=new Map;function a(s){if(!s)return 1;let l=r.get(s);if(l)return l;const c=s.parentNode;return l=e.has(c)?c:o.has(c)?1:a(c),r.set(s,l),l}return n.forEach(s=>{const l=a(s);1!==l&&e.get(l).push(s)}),e}function xr(t,n){t.classList?.add(n)}function cu(t,n){t.classList?.remove(n)}function nJ(t,n,e){Bs(e).onDone(()=>t.processLeaveNode(n))}function iR(t,n){for(let e=0;eo.add(r)):n.set(t,i),e.delete(t),!0}class zh{constructor(n,e,i,o){this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,a)=>{},this._transitionEngine=new KX(n.body,e,i,o),this._timelineEngine=new VX(n.body,e,i),this._transitionEngine.onRemovalComplete=(r,a)=>this.onRemovalComplete(r,a)}registerTrigger(n,e,i,o,r){const a=n+"-"+o;let s=this._triggerCache[a];if(!s){const l=[],u=$0(this._driver,r,l,[]);if(l.length)throw function UW(t,n){return new S(3404,!1)}();s=function HX(t,n,e){return new YX(t,n,e)}(o,u,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,o,s)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,o){this._transitionEngine.insertNode(n,e,i,o)}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,o){if("@"==i.charAt(0)){const[r,a]=NO(i);this._timelineEngine.command(r,e,a,o)}else this._transitionEngine.trigger(n,e,i,o)}listen(n,e,i,o,r){if("@"==i.charAt(0)){const[a,s]=NO(i);return this._timelineEngine.listen(a,e,s,r)}return this._transitionEngine.listen(n,e,i,o,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}class $h{static{this.initialStylesByElement=new WeakMap}constructor(n,e,i){this._element=n,this._startStyles=e,this._endStyles=i,this._state=0;let o=$h.initialStylesByElement.get(n);o||$h.initialStylesByElement.set(n,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&_a(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(_a(this._element,this._initialStyles),this._endStyles&&(_a(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&($h.initialStylesByElement.delete(this._element),this._startStyles&&(Ol(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ol(this._element,this._endStyles),this._endStyles=null),_a(this._element,this._initialStyles),this._state=3)}}function q0(t){let n=null;return t.forEach((e,i)=>{(function aJ(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class rR{constructor(n,e,i,o){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,o)=>{"offset"!==o&&n.set(o,this._finished?i:z0(this.element,o))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class aR{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return LO(n,e)}getParentElement(n){return R0(n)}query(n,e,i){return jO(n,e,i)}computeStyle(n,e,i){return z0(n,e)}animate(n,e,i,o,r,a=[]){const l={duration:i,delay:o,fill:0==o?"both":"forwards"};r&&(l.easing=r);const c=new Map,u=a.filter(p=>p instanceof rR);(function bX(t,n){return 0===t||0===n})(i,o)&&u.forEach(p=>{p.currentSnapshot.forEach((g,b)=>c.set(b,g))});let d=function pX(t){return t.length?t[0]instanceof Map?t:t.map(n=>new Map(Object.entries(n))):[]}(e).map(p=>new Map(p));d=function yX(t,n,e){if(e.size&&n.length){let i=n[0],o=[];if(e.forEach((r,a)=>{i.has(a)||o.push(a),i.set(a,r)}),o.length)for(let r=1;ra.set(s,z0(t,s)))}}return n}(n,d,c);const h=function rJ(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=q0(n[0]),n.length>1&&(i=q0(n[n.length-1]))):n instanceof Map&&(e=q0(n)),e||i?new $h(t,e,i):null}(n,d);return new rR(n,d,l,h)}}const sR="@.disabled";class lR{constructor(n,e,i,o){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=o,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,o=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,o)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,o){this.delegate.setAttribute(n,e,i,o)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,o){this.delegate.setStyle(n,e,i,o)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==sR?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class sJ extends lR{constructor(n,e,i,o,r){super(e,i,o,r),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==sR?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const o=function lJ(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let r=e.slice(1),a="";return"@"!=r.charAt(0)&&([r,a]=function cJ(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(r)),this.engine.listen(this.namespaceId,o,r,a,s=>{this.factory.scheduleListenerCallback(s._data||-1,i,s)})}return this.delegate.listen(n,e,i)}}class uJ{constructor(n,e,i){this.delegate=n,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=(o,r)=>{const a=r?.parentNode(o);a&&r.removeChild(a,o)}}createRenderer(n,e){const o=this.delegate.createRenderer(n,e);if(!n||!e?.data?.animation){const c=this._rendererCache;let u=c.get(o);return u||(u=new lR("",o,this.engine,()=>c.delete(o)),c.set(o,u)),u}const r=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,n);const s=c=>{Array.isArray(c)?c.forEach(s):this.engine.registerTrigger(r,a,n,c.name,c)};return e.data.animation.forEach(s),new sJ(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,e,i){if(n>=0&&ne(i));const o=this._animationCallbacksBuffer;0==o.length&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(r=>{const[a,s]=r;a(s)}),this._animationCallbacksBuffer=[]})}),o.push([e,i])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}let dJ=(()=>{class t extends zh{constructor(e,i,o){super(e,i,o,Pe(Jp,{optional:!0}))}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(i){return new(i||t)(Me(qt),Me(N0),Me(F0))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();const cR=[{provide:F0,useFactory:function hJ(){return new $O}},{provide:zh,useClass:dJ},{provide:sv,useFactory:function fJ(t,n,e){return new uJ(t,n,e)},deps:[Ww,zh,wt]}],eC=[{provide:N0,useFactory:()=>new aR},{provide:xo,useValue:"BrowserAnimations"},...cR],uR=[{provide:N0,useClass:P0},{provide:xo,useValue:"NoopAnimations"},...cR];let tC,pJ=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?uR:eC}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({providers:eC,imports:[Qw]})}}return t})();try{tC=typeof Intl<"u"&&Intl.v8BreakIterator}catch{tC=!1}let uu,Ai=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?cI(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!tC)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(i){return new(i||t)(Me(La))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const dR=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function hR(){if(uu)return uu;if("object"!=typeof document||!document)return uu=new Set(dR),uu;let t=document.createElement("input");return uu=new Set(dR.filter(n=>(t.setAttribute("type",n),t.type===n))),uu}let Vh,Pl,nC;function du(t){return function gJ(){if(null==Vh&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Vh=!0}))}finally{Vh=Vh||!1}return Vh}()?t:!!t.capture}function mJ(){if(null==Pl){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Pl=!1,Pl;if("scrollBehavior"in document.documentElement.style)Pl=!0;else{const t=Element.prototype.scrollTo;Pl=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Pl}function Mm(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function Hs(t){return t.composedPath?t.composedPath()[0]:t.target}function iC(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Qa(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function $i(t,n,e){const i=Ae(t)||n||e?{next:t,error:n,complete:e}:t;return i?$n((o,r)=>{var a;null===(a=i.subscribe)||void 0===a||a.call(i);let s=!0;o.subscribe(Pn(r,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),r.next(l)},()=>{var l;s=!1,null===(l=i.complete)||void 0===l||l.call(i),r.complete()},l=>{var c;s=!1,null===(c=i.error)||void 0===c||c.call(i,l),r.error(l)},()=>{var l,c;s&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):gr}class OJ extends ge{constructor(n,e){super()}schedule(n,e=0){return this}}const Pm={setInterval(t,n,...e){const{delegate:i}=Pm;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=Pm;return(n?.clearInterval||clearInterval)(t)},delegate:void 0};class oC extends OJ{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;const o=this.id,r=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(r,o,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return Pm.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&Pm.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let o,i=!1;try{this.work(n)}catch(r){i=!0,o=r||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,ne(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}const rC={now:()=>(rC.delegate||Date).now(),delegate:void 0};class Wh{constructor(n,e=Wh.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}Wh.now=rC.now;class aC extends Wh{constructor(n,e=Wh.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const Nm=new aC(oC),RJ=Nm;function pR(t,n=Nm){return $n((e,i)=>{let o=null,r=null,a=null;const s=()=>{if(o){o.unsubscribe(),o=null;const c=r;r=null,i.next(c)}};function l(){const c=a+t,u=n.now();if(u{r=c,a=n.now(),o||(o=n.schedule(l,t),i.add(o))},()=>{s(),i.complete()},void 0,()=>{r=o=null}))})}const Sr=new On(t=>t.complete());function _i(t){return t<=0?()=>Sr:$n((n,e)=>{let i=0;n.subscribe(Pn(e,o=>{++i<=t&&(e.next(o),t<=i&&e.complete())}))})}function gR(t){return ui((n,e)=>t<=e)}function sC(t,n=gr){return t=t??NJ,$n((e,i)=>{let o,r=!0;e.subscribe(Pn(i,a=>{const s=n(a);(r||!t(o,s))&&(r=!1,o=s,i.next(a))}))})}function NJ(t,n){return t===n}function yn(t){return $n((n,e)=>{io(t).subscribe(Pn(e,()=>e.complete(),kt)),!e.closed&&n.subscribe(e)})}let FJ=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),mR=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({providers:[FJ]})}}return t})();function Fm(t){return null!=t&&"false"!=`${t}`}function bR(t,n=0){return function LJ(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):n}function Lm(t){return Array.isArray(t)?t:[t]}function Fi(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Ys(t){return t instanceof Zt?t.nativeElement:t}function jm(...t){const n=Sh(t),e=YI(t),{args:i,keys:o}=M2(t);if(0===i.length)return bi([],n);const r=new On(function jJ(t,n,e=gr){return i=>{yR(n,()=>{const{length:o}=t,r=new Array(o);let a=o,s=o;for(let l=0;l{const c=bi(t[l],n);let u=!1;c.subscribe(Pn(i,d=>{r[l]=d,u||(u=!0,s--),s||i.next(e(r.slice()))},()=>{--a||i.complete()}))},i)},i)}}(i,n,o?a=>A2(o,a):gr));return e?r.pipe(d0(e)):r}function yR(t,n,e){t?Wa(e,t,n):n()}function hu(t=1/0){return Wi(gr,t)}function Xh(...t){return function BJ(){return hu(1)}()(bi(t,Sh(t)))}function sr(...t){const n=Sh(t);return $n((e,i)=>{(n?Xh(t,e,n):Xh(t,e)).subscribe(i)})}const _R=new Set;let Nl,HJ=(()=>{class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):zJ}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function YJ(t,n){if(!_R.has(t))try{Nl||(Nl=document.createElement("style"),n&&(Nl.nonce=n),Nl.setAttribute("type","text/css"),document.head.appendChild(Nl)),Nl.sheet&&(Nl.sheet.insertRule(`@media ${t} {body{ }}`,0),_R.add(t))}catch(e){console.error(e)}}(e,this._nonce),this._matchMedia(e)}static{this.\u0275fac=function(i){return new(i||t)(Me(Ai),Me(h_,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function zJ(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let $J=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new vt}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return vR(Lm(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let r=jm(vR(Lm(e)).map(a=>this._registerQuery(a).observable));return r=Xh(r.pipe(_i(1)),r.pipe(gR(1),pR(0))),r.pipe(Bt(a=>{const s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:c})=>{s.matches=s.matches||l,s.breakpoints[c]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),r={observable:new On(a=>{const s=l=>this._zone.run(()=>a.next(l));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(sr(i),Bt(({matches:a})=>({query:e,matches:a})),yn(this._destroySubject)),mql:i};return this._queries.set(e,r),r}static{this.\u0275fac=function(i){return new(i||t)(Me(HJ),Me(wt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function vR(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}function CR(t,n,e){const i=xR(t,n);e=e.trim();const o=i.filter(r=>r!==e);o.length?t.setAttribute(n,o.join(" ")):t.removeAttribute(n)}function xR(t,n){return t.getAttribute(n)?.match(/\S+/g)??[]}class SR{constructor(n){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new vt,this._typeaheadSubscription=ge.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new vt,this.change=new vt,n instanceof Fa&&(this._itemChangesSubscription=n.changes.subscribe(e=>{if(this._activeItem){const o=e.toArray().indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}}))}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe($i(e=>this._pressedLetters.push(e)),pR(n),ui(()=>this._pressedLetters.length>0),Bt(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let o=1;o!n[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&o){this.setNextItemActive();break}return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&o){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&o){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&o){const r=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&o){const r=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],n.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){const e=this._getItemsArray(),i="number"==typeof n?n:e.indexOf(n);this._activeItem=e[i]??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const o=(this._activeItemIndex+n*i+e.length)%e.length;if(!this._skipPredicateFn(e[o]))return void this.setActiveItem(o)}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){const i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(!i[n+=e])return;this.setActiveItem(n)}}_getItemsArray(){return this._items instanceof Fa?this._items.toArray():this._items}}class UJ extends SR{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}}class DR extends SR{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}let lC=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function XJ(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function WJ(t){try{return t.frameElement}catch{return null}}(function iQ(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(i&&(-1===TR(i)||!this.isVisible(i)))return!1;let o=e.nodeName.toLowerCase(),r=TR(e);return e.hasAttribute("contenteditable")?-1!==r:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function tQ(t){let n=t.nodeName.toLowerCase(),e="input"===n&&t.type;return"text"===e||"password"===e||"select"===n||"textarea"===n}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==r:"video"===o?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function nQ(t){return!function QJ(t){return function qJ(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function JJ(t){let n=t.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(t)||function KJ(t){return function eQ(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||ER(t))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static{this.\u0275fac=function(i){return new(i||t)(Me(Ai))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function ER(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let n=t.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function TR(t){if(!ER(t))return null;const n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class oQ{get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}constructor(n,e,i,o,r=!1){this._element=n,this._checker=e,this._ngZone=i,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}destroy(){const n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){const e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return"start"==n?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){const e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){const e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const e=n.children;for(let i=0;i=0;i--){const o=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(o)return o}return null}_createAnchor(){const n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._ngZone.isStable?n():this._ngZone.onStable.pipe(_i(1)).subscribe(n)}}let MR=(()=>{class t{constructor(e,i,o){this._checker=e,this._ngZone=i,this._document=o}create(e,i=!1){return new oQ(e,this._checker,this._ngZone,this._document,i)}static{this.\u0275fac=function(i){return new(i||t)(Me(lC),Me(wt),Me(qt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function cC(t){return 0===t.buttons||0===t.detail}function uC(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const rQ=new He("cdk-input-modality-detector-options"),aQ={ignoreKeys:[18,17,224,91,16]},fu=du({passive:!0,capture:!0});let sQ=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,i,o,r){this._platform=e,this._mostRecentTarget=null,this._modality=new hi(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(s=>s===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Hs(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(cC(a)?"keyboard":"mouse"),this._mostRecentTarget=Hs(a))},this._onTouchstart=a=>{uC(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Hs(a))},this._options={...aQ,...r},this.modalityDetected=this._modality.pipe(gR(1)),this.modalityChanged=this.modalityDetected.pipe(sC()),e.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,fu),o.addEventListener("mousedown",this._onMousedown,fu),o.addEventListener("touchstart",this._onTouchstart,fu)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,fu),document.removeEventListener("mousedown",this._onMousedown,fu),document.removeEventListener("touchstart",this._onTouchstart,fu))}static{this.\u0275fac=function(i){return new(i||t)(Me(Ai),Me(wt),Me(qt),Me(rQ,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const lQ=new He("liveAnnouncerElement",{providedIn:"root",factory:function cQ(){return null}}),uQ=new He("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let dQ=0,hQ=(()=>{class t{constructor(e,i,o,r){this._ngZone=i,this._defaultOptions=r,this._document=o,this._liveElement=e||this._createLiveElement()}announce(e,...i){const o=this._defaultOptions;let r,a;return 1===i.length&&"number"==typeof i[0]?a=i[0]:[r,a]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),null==a&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{class t{constructor(e,i,o,r,a){this._ngZone=e,this._platform=i,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new vt,this._rootNodeFocusAndBlurListener=s=>{for(let c=Hs(s);c;c=c.parentElement)"focus"===s.type?this._onFocus(s,c):this._onBlur(s,c)},this._document=r,this._detectionMode=a?.detectionMode||Bm.IMMEDIATE}monitor(e,i=!1){const o=Ys(e);if(!this._platform.isBrowser||1!==o.nodeType)return Et();const r=function yJ(t){if(function bJ(){if(null==nC){const t=typeof document<"u"?document.head:null;nC=!(!t||!t.createShadowRoot&&!t.attachShadow)}return nC}()){const n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return i&&(a.checkChildren=!0),a.subject;const s={checkChildren:i,subject:new vt,rootNode:r};return this._elementInfo.set(o,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const i=Ys(e),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(e,i,o){const r=Ys(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([s,l])=>this._originChanged(s,i,l)):(this._setOrigin(i),"function"==typeof r.focus&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Bm.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,this._detectionMode===Bm.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const o=this._elementInfo.get(i),r=Hs(e);!o||!o.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),o)}_onBlur(e,i){const o=this._elementInfo.get(i);!o||o.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(o,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Hm),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Hm)}),this._rootNodeFocusListenerCount.set(i,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(yn(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Hm),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Hm),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,o){this._setClasses(e,i),this._emitOrigin(o,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&i.push([r,o])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const r=e.labels;if(r)for(let a=0;a{class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=Pe($J).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Fl.NONE;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,o=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Fl.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Fl.BLACK_ON_WHITE}return Fl.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(dC,kR,IR),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();i===Fl.BLACK_ON_WHITE?e.add(dC,kR):i===Fl.WHITE_ON_BLACK&&e.add(dC,IR)}}static{this.\u0275fac=function(i){return new(i||t)(Me(Ai),Me(qt))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),pQ=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}static{this.\u0275fac=function(i){return new(i||t)(Me(OR))}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[mR]})}}return t})();const gQ=new He("cdk-dir-doc",{providedIn:"root",factory:function mQ(){return Pe(qt)}}),bQ=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let qa=(()=>{class t{constructor(e){this.value="ltr",this.change=new Ot,e&&(this.value=function yQ(t){const n=t?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?bQ.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(i){return new(i||t)(Me(gQ,8))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),pu=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({})}}return t})();const _Q=["text"],vQ=[[["mat-icon"]],"*"],wQ=["mat-icon","*"];function CQ(t,n){if(1&t&&at(0,"mat-pseudo-checkbox",1),2&t){const e=rt();Je("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function xQ(t,n){1&t&&at(0,"mat-pseudo-checkbox",3),2&t&&Je("disabled",rt().disabled)}function SQ(t,n){if(1&t&&(ye(0,"span",4),bn(1),ve()),2&t){const e=rt();Ne(),yr("(",e.group.label,")")}}const DQ=["mat-internal-form-field",""],EQ=["*"],MQ=new He("mat-sanity-checks",{providedIn:"root",factory:function TQ(){return!0}});let Ln=(()=>{class t{constructor(e,i,o){this._sanityChecks=i,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!iC()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}static{this.\u0275fac=function(i){return new(i||t)(Me(OR),Me(MQ,8),Me(qt))}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[pu,pu]})}}return t})();class hC{constructor(n,e,i,o,r){this._defaultMatcher=n,this.ngControl=e,this._parentFormGroup=i,this._parentForm=o,this._stateChanges=r,this.errorState=!1}updateErrorState(){const n=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,o=this.ngControl?this.ngControl.control:null,r=i?.isErrorState(o,e)??!1;r!==n&&(this.errorState=r,this._stateChanges.next())}}let Jh=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Dr=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(Dr||{});class PQ{constructor(n,e,i,o=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=o,this.state=Dr.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const NR=du({passive:!0,capture:!0});class NQ{constructor(){this._events=new Map,this._delegateEventHandler=n=>{const e=Hs(n);e&&this._events.get(n.type)?.forEach((i,o)=>{(o===e||o.contains(e))&&i.forEach(r=>r.handleEvent(n))})}}addHandler(n,e,i,o){const r=this._events.get(e);if(r){const a=r.get(i);a?a.add(o):r.set(i,new Set([o]))}else this._events.set(e,new Map([[i,new Set([o])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,NR)})}removeHandler(n,e,i){const o=this._events.get(n);if(!o)return;const r=o.get(e);r&&(r.delete(i),0===r.size&&o.delete(e),0===o.size&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,NR)))}}const FR={enterDuration:225,exitDuration:150},LR=du({passive:!0,capture:!0}),jR=["mousedown","touchstart"],BR=["mouseup","mouseleave","touchend","touchcancel"];class Ym{static{this._eventManager=new NQ}constructor(n,e,i,o){this._target=n,this._ngZone=e,this._platform=o,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=Ys(i))}fadeInRipple(n,e,i={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r={...FR,...i.animation};i.centered&&(n=o.left+o.width/2,e=o.top+o.height/2);const a=i.radius||function LQ(t,n,e){const i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+o*o)}(n,e,o),s=n-o.left,l=e-o.top,c=r.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=s-a+"px",u.style.top=l-a+"px",u.style.height=2*a+"px",u.style.width=2*a+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);const d=window.getComputedStyle(u),p=d.transitionDuration,g="none"===d.transitionProperty||"0s"===p||"0s, 0s"===p||0===o.width&&0===o.height,b=new PQ(this,u,i,g);u.style.transform="scale3d(1, 1, 1)",b.state=Dr.FADING_IN,i.persistent||(this._mostRecentTransientRipple=b);let T=null;return!g&&(c||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const D=()=>this._finishRippleTransition(b),H=()=>this._destroyRipple(b);u.addEventListener("transitionend",D),u.addEventListener("transitioncancel",H),T={onTransitionEnd:D,onTransitionCancel:H}}),this._activeRipples.set(b,T),(g||!c)&&this._finishRippleTransition(b),b}fadeOutRipple(n){if(n.state===Dr.FADING_OUT||n.state===Dr.HIDDEN)return;const e=n.element,i={...FR,...n.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=Dr.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const e=Ys(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,jR.forEach(i=>{Ym._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{BR.forEach(e=>{this._triggerElement.addEventListener(e,this,LR)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===Dr.FADING_IN?this._startFadeOutTransition(n):n.state===Dr.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){const e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=Dr.VISIBLE,!i&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){const e=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=Dr.HIDDEN,null!==e&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel)),n.element.remove()}_onMousedown(n){const e=cC(n),i=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(n.state===Dr.VISIBLE||n.config.terminateOnPointerUp&&n.state===Dr.FADING_IN)&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const n=this._triggerElement;n&&(jR.forEach(e=>Ym._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&BR.forEach(e=>n.removeEventListener(e,this,LR)))}}const HR=new He("mat-ripple-global-options");let Ll=(()=>{class t{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,o,r,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new Ym(this,i,e,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...o}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}static{this.\u0275fac=function(i){return new(i||t)(K(Zt),K(wt),K(Ai),K(HR,8),K(xo,8))}}static{this.\u0275dir=gt({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,o){2&i&&un("mat-ripple-unbounded",o.unbounded)},inputs:{color:[Le.None,"matRippleColor","color"],unbounded:[Le.None,"matRippleUnbounded","unbounded"],centered:[Le.None,"matRippleCentered","centered"],radius:[Le.None,"matRippleRadius","radius"],animation:[Le.None,"matRippleAnimation","animation"],disabled:[Le.None,"matRippleDisabled","disabled"],trigger:[Le.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}}return t})(),gu=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[Ln,Ln]})}}return t})(),YR=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}static{this.\u0275fac=function(i){return new(i||t)(K(xo,8))}}static{this.\u0275cmp=pn({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,o){2&i&&un("mat-pseudo-checkbox-indeterminate","indeterminate"===o.state)("mat-pseudo-checkbox-checked","checked"===o.state)("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal","minimal"===o.appearance)("mat-pseudo-checkbox-full","full"===o.appearance)("_mat-animation-noopable","NoopAnimations"===o._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[Zn],decls:0,vars:0,template:function(i,o){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}}return t})(),jQ=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[Ln]})}}return t})();const zR=new He("MAT_OPTION_PARENT_COMPONENT"),$R=new He("MatOptgroup");let BQ=0;class HQ{constructor(n,e=!1){this.source=n,this.isUserInput=e}}let fC=(()=>{class t{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=e}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(e,i,o,r){this._element=e,this._changeDetectorRef=i,this._parent=o,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+BQ++,this.onSelectionChange=new Ot,this._stateChanges=new vt}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,i){const o=this._getHostElement();"function"==typeof o.focus&&o.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!Qa(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new HQ(this,e))}static{this.\u0275fac=function(i){return new(i||t)(K(Zt),K(mi),K(zR,8),K($R,8))}}static{this.\u0275cmp=pn({type:t,selectors:[["mat-option"]],viewQuery:function(i,o){if(1&i&&Vn(_Q,7),2&i){let r;Ft(r=Lt())&&(o._text=r.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,o){1&i&&_t("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),2&i&&(Ts("id",o.id),Kt("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),un("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[Le.HasDecoratorInputTransform,"disabled","disabled",Nt]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[qi,Zn],ngContentSelectors:wQ,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(i,o){1&i&&(Oi(vQ),Mt(0,CQ,1,2,"mat-pseudo-checkbox",1),mn(1),ye(2,"span",2,0),mn(4,1),ve(),Mt(5,xQ,1,1,"mat-pseudo-checkbox",3)(6,SQ,2,1,"span",4),at(7,"div",5)),2&i&&(En(0,o.multiple?0:-1),Ne(5),En(5,o.multiple||!o.selected||o.hideSingleSelectionIndicator?-1:5),Ne(),En(6,o.group&&o.group._inert?6:-1),Ne(),Je("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[YR,Ll],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return t})(),VR=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[gu,Ln,jQ]})}}return t})();const ZR={capture:!0},GR=["focus","click","mouseenter","touchstart"],pC="mat-ripple-loader-uninitialized",gC="mat-ripple-loader-class-name",UR="mat-ripple-loader-centered",zm="mat-ripple-loader-disabled";let $Q=(()=>{class t{constructor(){this._document=Pe(qt,{optional:!0}),this._animationMode=Pe(xo,{optional:!0}),this._globalRippleOptions=Pe(HR,{optional:!0}),this._platform=Pe(Ai),this._ngZone=Pe(wt),this._hosts=new Map,this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;const o=e.target.closest(`[${pC}]`);o&&this._createRipple(o)},this._ngZone.runOutsideAngular(()=>{for(const e of GR)this._document?.addEventListener(e,this._onInteraction,ZR)})}ngOnDestroy(){const e=this._hosts.keys();for(const i of e)this.destroyRipple(i);for(const i of GR)this._document?.removeEventListener(i,this._onInteraction,ZR)}configureRipple(e,i){e.setAttribute(pC,""),(i.className||!e.hasAttribute(gC))&&e.setAttribute(gC,i.className||""),i.centered&&e.setAttribute(UR,""),i.disabled&&e.setAttribute(zm,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,i){const o=this._hosts.get(e);o?o.disabled=i:i?e.setAttribute(zm,""):e.removeAttribute(zm)}_createRipple(e){if(!this._document)return;const i=this._hosts.get(e);if(i)return i;e.querySelector(".mat-ripple")?.remove();const o=this._document.createElement("span");o.classList.add("mat-ripple",e.getAttribute(gC)),e.append(o);const r=new Ll(new Zt(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return r._isInitialized=!0,r.trigger=e,r.centered=e.hasAttribute(UR),r.disabled=e.hasAttribute(zm),this.attachRipple(e,r),r}attachRipple(e,i){e.removeAttribute(pC),this._hosts.set(e,i)}destroyRipple(e){const i=this._hosts.get(e);i&&(i.ngOnDestroy(),this._hosts.delete(e))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),WR=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=pn({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,o){2&i&&un("mdc-form-field--align-end","before"===o.labelPosition)},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[Zn],attrs:DQ,ngContentSelectors:EQ,decls:1,vars:0,template:function(i,o){1&i&&(Oi(),mn(0))},styles:[".mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-form-field{font-family:var(--mdc-form-field-label-text-font);line-height:var(--mdc-form-field-label-text-line-height);font-size:var(--mdc-form-field-label-text-size);font-weight:var(--mdc-form-field-label-text-weight);letter-spacing:var(--mdc-form-field-label-text-tracking);color:var(--mdc-form-field-label-text-color)}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0})}}return t})();const VQ=["*",[["mat-toolbar-row"]]],ZQ=["*","mat-toolbar-row"];let GQ=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=gt({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0})}}return t})(),XR=(()=>{class t{constructor(e,i,o){this._elementRef=e,this._platform=i,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static{this.\u0275fac=function(i){return new(i||t)(K(Zt),K(Ai),K(qt))}}static{this.\u0275cmp=pn({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,o,r){if(1&i&&ii(r,GQ,5),2&i){let a;Ft(a=Lt())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,o){2&i&&(eo(o.color?"mat-"+o.color:""),un("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",0===o._toolbarRows.length))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[Zn],ngContentSelectors:ZQ,decls:2,vars:0,template:function(i,o){1&i&&(Oi(VQ),mn(0),mn(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0})}}return t})(),UQ=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({imports:[Ln,Ln]})}}return t})();const $m=ke(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Kh(t){return new On(n=>{io(t()).subscribe(n)})}function mu(t,n){const e=Ae(t)?t:()=>t,i=o=>o.error(e());return new On(n?o=>n.schedule(i,0,o):i)}function mC(){return $n((t,n)=>{let e=null;t._refCount++;const i=Pn(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class JR extends On{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Qu(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new ge;const e=this.getSubject();n.add(this.source.subscribe(Pn(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=ge.EMPTY)}return n}refCount(){return mC()(this)}}function Vm(t){return $n((n,e)=>{let i=!1;n.subscribe(Pn(e,o=>{i=!0,e.next(o)},()=>{i||e.next(t),e.complete()}))})}function QR(t=XQ){return $n((n,e)=>{let i=!1;n.subscribe(Pn(e,o=>{i=!0,e.next(o)},()=>i?e.complete():e.error(t())))})}function XQ(){return new $m}function jl(t,n){const e=arguments.length>=2;return i=>i.pipe(t?ui((o,r)=>t(o,r,i)):gr,_i(1),e?Vm(n):QR(()=>new $m))}function es(t){return $n((n,e)=>{let r,i=null,o=!1;i=n.subscribe(Pn(e,void 0,void 0,a=>{r=io(t(a,es(t)(n))),i?(i.unsubscribe(),i=null,r.subscribe(e)):o=!0})),o&&(i.unsubscribe(),i=null,r.subscribe(e))})}function bC(t){return t<=0?()=>Sr:$n((n,e)=>{let i=[];n.subscribe(Pn(e,o=>{i.push(o),t{for(const o of i)e.next(o);e.complete()},void 0,()=>{i=null}))})}function KR(t){return Bt(()=>t)}const cn="primary",qh=Symbol("RouteTitle");class qQ{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function bu(t){return new qQ(t)}function eK(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[r]===o)}return t===n}function eP(t){return t.length>0?t[t.length-1]:null}function zs(t){return function WQ(t){return!!t&&(t instanceof On||Ae(t.lift)&&Ae(t.subscribe))}(t)?t:fh(t)?bi(Promise.resolve(t)):Et(t)}const nK={exact:function iP(t,n,e){if(!Bl(t.segments,n.segments)||!Zm(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!iP(t.children[i],n.children[i],e))return!1;return!0},subset:oP},tP={exact:function iK(t,n){return va(t,n)},subset:function oK(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>qR(t[e],n[e]))},ignored:()=>!0};function nP(t,n,e){return nK[e.paths](t.root,n.root,e.matrixParams)&&tP[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function oP(t,n,e){return rP(t,n,n.segments,e)}function rP(t,n,e,i){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!Bl(o,e)||n.hasChildren()||!Zm(o,e,i))}if(t.segments.length===e.length){if(!Bl(t.segments,e)||!Zm(t.segments,e,i))return!1;for(const o in n.children)if(!t.children[o]||!oP(t.children[o],n.children[o],i))return!1;return!0}{const o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!!(Bl(t.segments,o)&&Zm(t.segments,o,i)&&t.children[cn])&&rP(t.children[cn],n,r,i)}}function Zm(t,n,e){return n.every((i,o)=>tP[e](t[o].parameters,i.parameters))}class yu{constructor(n=new Hn([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=bu(this.queryParams),this._queryParamMap}toString(){return sK.serialize(this)}}class Hn{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Gm(this)}}class ef{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=bu(this.parameters),this._parameterMap}toString(){return lP(this)}}function Bl(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let _u=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>new _C,providedIn:"root"})}}return t})();class _C{parse(n){const e=new yK(n);return new yu(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${tf(n.root,!0)}`,i=function uK(t){const n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(o=>`${Um(e)}=${Um(o)}`).join("&"):`${Um(e)}=${Um(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function lK(t){return encodeURI(t)}(n.fragment)}`:""}`}}const sK=new _C;function Gm(t){return t.segments.map(n=>lP(n)).join("/")}function tf(t,n){if(!t.hasChildren())return Gm(t);if(n){const e=t.children[cn]?tf(t.children[cn],!1):"",i=[];return Object.entries(t.children).forEach(([o,r])=>{o!==cn&&i.push(`${o}:${tf(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function aK(t,n){let e=[];return Object.entries(t.children).forEach(([i,o])=>{i===cn&&(e=e.concat(n(o,i)))}),Object.entries(t.children).forEach(([i,o])=>{i!==cn&&(e=e.concat(n(o,i)))}),e}(t,(i,o)=>o===cn?[tf(t.children[cn],!1)]:[`${o}:${tf(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[cn]?`${Gm(t)}/${e[0]}`:`${Gm(t)}/(${e.join("//")})`}}function aP(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Um(t){return aP(t).replace(/%3B/gi,";")}function vC(t){return aP(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Wm(t){return decodeURIComponent(t)}function sP(t){return Wm(t.replace(/\+/g,"%20"))}function lP(t){return`${vC(t.path)}${function cK(t){return Object.entries(t).map(([n,e])=>`;${vC(n)}=${vC(e)}`).join("")}(t.parameters)}`}const dK=/^[^\/()?;#]+/;function wC(t){const n=t.match(dK);return n?n[0]:""}const hK=/^[^\/()?;=#]+/,pK=/^[^=?&#]+/,mK=/^[^&#]+/;class yK{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Hn([],{}):new Hn([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[cn]=new Hn(n,e)),i}parseSegment(){const n=wC(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(n),new ef(Wm(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=function fK(t){const n=t.match(hK);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=wC(this.remaining);o&&(i=o,this.capture(i))}n[Wm(e)]=Wm(i)}parseQueryParam(n){const e=function gK(t){const n=t.match(pK);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const a=function bK(t){const n=t.match(mK);return n?n[0]:""}(this.remaining);a&&(i=a,this.capture(i))}const o=sP(e),r=sP(i);if(n.hasOwnProperty(o)){let a=n[o];Array.isArray(a)||(a=[a],n[o]=a),a.push(r)}else n[o]=r}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=wC(this.remaining),o=this.remaining[i.length];if("/"!==o&&")"!==o&&";"!==o)throw new S(4010,!1);let r;i.indexOf(":")>-1?(r=i.slice(0,i.indexOf(":")),this.capture(r),this.capture(":")):n&&(r=cn);const a=this.parseChildren();e[r]=1===Object.keys(a).length?a[cn]:new Hn([],a),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new S(4011,!1)}}function cP(t){return t.segments.length>0?new Hn([],{[cn]:t}):t}function uP(t){const n={};for(const[i,o]of Object.entries(t.children)){const r=uP(o);if(i===cn&&0===r.segments.length&&r.hasChildren())for(const[a,s]of Object.entries(r.children))n[a]=s;else(r.segments.length>0||r.hasChildren())&&(n[i]=r)}return function _K(t){if(1===t.numberOfChildren&&t.children[cn]){const n=t.children[cn];return new Hn(t.segments.concat(n.segments),n.children)}return t}(new Hn(t.segments,n))}function vu(t){return t instanceof yu}function dP(t){let n;const o=cP(function e(r){const a={};for(const l of r.children){const c=e(l);a[l.outlet]=c}const s=new Hn(r.url,a);return r===t&&(n=s),s}(t.root));return n??o}function hP(t,n,e,i){let o=t;for(;o.parent;)o=o.parent;if(0===n.length)return CC(o,o,o,e,i);const r=function wK(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new pP(!0,0,t);let n=0,e=!1;const i=t.reduce((o,r,a)=>{if("object"==typeof r&&null!=r){if(r.outlets){const s={};return Object.entries(r.outlets).forEach(([l,c])=>{s[l]="string"==typeof c?c.split("/"):c}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return"string"!=typeof r?[...o,r]:0===a?(r.split("/").forEach((s,l)=>{0==l&&"."===s||(0==l&&""===s?e=!0:".."===s?n++:""!=s&&o.push(s))}),o):[...o,r]},[]);return new pP(e,n,i)}(n);if(r.toRoot())return CC(o,o,new Hn([],{}),e,i);const a=function CK(t,n,e){if(t.isAbsolute)return new Jm(n,!0,0);if(!e)return new Jm(n,!1,NaN);if(null===e.parent)return new Jm(e,!0,0);const i=Xm(t.commands[0])?0:1;return function xK(t,n,e){let i=t,o=n,r=e;for(;r>o;){if(r-=o,i=i.parent,!i)throw new S(4005,!1);o=i.segments.length}return new Jm(i,!1,o-r)}(e,e.segments.length-1+i,t.numberOfDoubleDots)}(r,o,t),s=a.processChildren?rf(a.segmentGroup,a.index,r.commands):gP(a.segmentGroup,a.index,r.commands);return CC(o,a.segmentGroup,s,e,i)}function Xm(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function nf(t){return"object"==typeof t&&null!=t&&t.outlets}function CC(t,n,e,i,o){let a,r={};i&&Object.entries(i).forEach(([l,c])=>{r[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`}),a=t===n?e:fP(t,n,e);const s=cP(uP(a));return new yu(s,r,o)}function fP(t,n,e){const i={};return Object.entries(t.children).forEach(([o,r])=>{i[o]=r===n?e:fP(r,n,e)}),new Hn(t.segments,i)}class pP{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&Xm(i[0]))throw new S(4003,!1);const o=i.find(nf);if(o&&o!==eP(i))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Jm{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function gP(t,n,e){if(t??=new Hn([],{}),0===t.segments.length&&t.hasChildren())return rf(t,n,e);const i=function DK(t,n,e){let i=0,o=n;const r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;const a=t.segments[o],s=e[i];if(nf(s))break;const l=`${s}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!bP(l,c,a))return r;i+=2}else{if(!bP(l,{},a))return r;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(t,n,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndexr!==cn)&&t.children[cn]&&1===t.numberOfChildren&&0===t.children[cn].segments.length){const r=rf(t.children[cn],n,e);return new Hn(t.segments,r.children)}return Object.entries(i).forEach(([r,a])=>{"string"==typeof a&&(a=[a]),null!==a&&(o[r]=gP(t.children[r],n,a))}),Object.entries(t.children).forEach(([r,a])=>{void 0===i[r]&&(o[r]=a)}),new Hn(t.segments,o)}}function xC(t,n,e){const i=t.segments.slice(0,n);let o=0;for(;o{"string"==typeof i&&(i=[i]),null!==i&&(n[e]=xC(new Hn([],{}),0,i))}),n}function mP(t){const n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function bP(t,n,e){return t==e.path&&va(n,e.parameters)}const af="imperative";var _n=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(_n||{});class wa{constructor(n,e){this.id=n,this.url=e}}class Qm extends wa{constructor(n,e,i="imperative",o=null){super(n,e),this.type=_n.NavigationStart,this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ts extends wa{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=_n.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var lr=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(lr||{}),Km=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Km||{});class wu extends wa{constructor(n,e,i,o){super(n,e),this.reason=i,this.code=o,this.type=_n.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Cu extends wa{constructor(n,e,i,o){super(n,e),this.reason=i,this.code=o,this.type=_n.NavigationSkipped}}class qm extends wa{constructor(n,e,i,o){super(n,e),this.error=i,this.target=o,this.type=_n.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class yP extends wa{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=_n.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class TK extends wa{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=_n.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class MK extends wa{constructor(n,e,i,o,r){super(n,e),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=r,this.type=_n.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class AK extends wa{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=_n.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class kK extends wa{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=_n.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class IK{constructor(n){this.route=n,this.type=_n.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class OK{constructor(n){this.route=n,this.type=_n.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class RK{constructor(n){this.snapshot=n,this.type=_n.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class PK{constructor(n){this.snapshot=n,this.type=_n.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class NK{constructor(n){this.snapshot=n,this.type=_n.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class FK{constructor(n){this.snapshot=n,this.type=_n.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _P{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=_n.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class SC{}class DC{constructor(n){this.url=n}}class LK{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new sf,this.attachRef=null}}let sf=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const o=this.getOrCreateContext(e);o.outlet=i,this.contexts.set(e,o)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new LK,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();class vP{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=EC(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=EC(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=TC(n,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return TC(n,this._root).map(e=>e.value)}}function EC(t,n){if(t===n.value)return n;for(const e of n.children){const i=EC(t,e);if(i)return i}return null}function TC(t,n){if(t===n.value)return[n];for(const e of n.children){const i=TC(t,e);if(i.length)return i.unshift(n),i}return[]}class Gr{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function xu(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class wP extends vP{constructor(n,e){super(n),this.snapshot=e,kC(this,n)}toString(){return this.snapshot.toString()}}function CP(t){const n=function jK(t){const r=new AC([],{},{},"",{},cn,t,null,{});return new xP("",new Gr(r,[]))}(t),e=new hi([new ef("",{})]),i=new hi({}),o=new hi({}),r=new hi({}),a=new hi(""),s=new Hl(e,i,r,a,o,cn,t,n.root);return s.snapshot=n.root,new wP(new Gr(s,[]),n)}class Hl{constructor(n,e,i,o,r,a,s,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=o,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(Bt(c=>c[qh]))??Et(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(Bt(n=>bu(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Bt(n=>bu(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function MC(t,n,e="emptyOnly"){let i;const{routeConfig:o}=t;return i=null===n||"always"!==e&&""!==o?.path&&(n.component||n.routeConfig?.loadComponent)?{params:{...t.params},data:{...t.data},resolve:{...t.data,...t._resolvedData??{}}}:{params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.data,...o?.data,...t._resolvedData}},o&&DP(o)&&(i.resolve[qh]=o.title),i}class AC{get title(){return this.data?.[qh]}constructor(n,e,i,o,r,a,s,l,c){this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=bu(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=bu(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class xP extends vP{constructor(n,e){super(e),this.url=n,kC(this,e)}toString(){return SP(this._root)}}function kC(t,n){n.value._routerState=t,n.children.forEach(e=>kC(t,e))}function SP(t){const n=t.children.length>0?` { ${t.children.map(SP).join(", ")} } `:"";return`${t.value}${n}`}function IC(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,va(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),va(n.params,e.params)||t.paramsSubject.next(e.params),function tK(t,n){if(t.length!==n.length)return!1;for(let e=0;eva(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||OC(t.parent,n.parent))}function DP(t){return"string"==typeof t.title||null===t.title}let RC=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=cn,this.activateEvents=new Ot,this.deactivateEvents=new Ot,this.attachEvents=new Ot,this.detachEvents=new Ot,this.parentContexts=Pe(sf),this.location=Pe(So),this.changeDetector=Pe(mi),this.environmentInjector=Pe(Lo),this.inputBinder=Pe(eb,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:o}=e.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=e;const o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new BK(e,s,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=gt({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Gi]})}}return t})();class BK{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Hl?this.route:n===sf?this.childContexts:this.parent.get(n,e)}}const eb=new He("");let EP=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:i}=e,o=jm([i.queryParams,i.params,i.data]).pipe(Ni(([r,a,s],l)=>(s={...r,...a,...s},0===l?Et(s):Promise.resolve(s)))).subscribe(r=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(e);const a=function d9(t){const n=dn(t);if(!n)return null;const e=new zd(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(i.component);if(a)for(const{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,r[s]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,o)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function lf(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const o=function YK(t,n,e){return n.children.map(i=>{for(const o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return lf(t,i,o);return lf(t,i)})}(t,n,e);return new Gr(i,o)}{if(t.shouldAttach(n.value)){const r=t.retrieve(n.value);if(null!==r){const a=r.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>lf(t,s)),a}}const i=function zK(t){return new Hl(new hi(t.url),new hi(t.params),new hi(t.queryParams),new hi(t.fragment),new hi(t.data),t.outlet,t.component,t)}(n.value),o=n.children.map(r=>lf(t,r));return new Gr(i,o)}}const TP="ngNavigationCancelingError";function MP(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=vu(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=AP(!1,lr.Redirect);return o.url=e,o.navigationBehaviorOptions=i,o}function AP(t,n){const e=new Error(`NavigationCancelingError: ${t||""}`);return e[TP]=!0,e.cancellationCode=n,e}function kP(t){return!!t&&t[TP]}let IP=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=pn({type:t,selectors:[["ng-component"]],standalone:!0,features:[Zn],decls:1,vars:0,template:function(i,o){1&i&&at(0,"router-outlet")},dependencies:[RC],encapsulation:2})}}return t})();function PC(t){const n=t.children&&t.children.map(PC),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==cn&&(e.component=IP),e}function Ca(t){return t.outlet||cn}function cf(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class JK{constructor(n,e,i,o,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=o,this.inputBindingEnabled=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),IC(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const o=xu(e);n.children.forEach(r=>{const a=r.value.outlet;this.deactivateRoutes(r,o[a],i),delete o[a]}),Object.values(o).forEach(r=>{this.deactivateRouteAndItsChildren(r,i)})}deactivateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(o===r)if(o.component){const a=i.getContext(o.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,i);else r&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=xu(n);for(const a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);if(i&&i.outlet){const a=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=xu(n);for(const a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){const o=xu(e);n.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],i),this.forwardEvent(new FK(r.value.snapshot))}),n.children.length&&this.forwardEvent(new PK(n.value.snapshot))}activateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(IC(o),o===r)if(o.component){const a=i.getOrCreateContext(o.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(o.component){const a=i.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),IC(s.route.value),this.activateChildRoutes(n,null,a.children)}else{const s=cf(o.snapshot);a.attachRef=null,a.route=o,a.injector=s,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(n,null,a.children)}}else this.activateChildRoutes(n,null,i)}}class OP{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class tb{constructor(n,e){this.component=n,this.route=e}}function QK(t,n,e){const i=t._root;return uf(i,n?n._root:null,e,[i.value])}function Su(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function i3(t){return null!==Gf(t)}(t)?n.get(t):t:i}function uf(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=xu(n);return t.children.forEach(a=>{(function qK(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,a=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){const l=function eq(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Bl(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Bl(t.url,n.url)||!va(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!OC(t,n)||!va(t.queryParams,n.queryParams);default:return!OC(t,n)}}(a,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new OP(i)):(r.data=a.data,r._resolvedData=a._resolvedData),uf(t,n,r.component?s?s.children:null:e,i,o),l&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new tb(s.outlet.component,a))}else a&&df(n,s,o),o.canActivateChecks.push(new OP(i)),uf(t,null,r.component?s?s.children:null:e,i,o)})(a,r[a.value.outlet],e,i.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>df(s,e.getContext(a),o)),o}function df(t,n,e){const i=xu(t),o=t.value;Object.entries(i).forEach(([r,a])=>{df(a,o.component?n?n.children.getContext(r):null:n,e)}),e.canDeactivateChecks.push(new tb(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function hf(t){return"function"==typeof t}function RP(t){return t instanceof $m||"EmptyError"===t?.name}const nb=Symbol("INITIAL_VALUE");function Du(){return Ni(t=>jm(t.map(n=>n.pipe(_i(1),sr(nb)))).pipe(Bt(n=>{for(const e of n)if(!0!==e){if(e===nb)return nb;if(!1===e||e instanceof yu)return e}return!0}),ui(n=>n!==nb),_i(1)))}function PP(t){return function ta(...t){return ac(t)}($i(n=>{if(vu(n))throw MP(0,n)}),Bt(n=>!0===n))}class NC{constructor(n){this.segmentGroup=n||null}}class FC extends Error{constructor(n){super(),this.urlTree=n}}function Eu(t){return mu(new NC(t))}class _q{constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],o=e.root;for(;;){if(i=i.concat(o.segments),0===o.numberOfChildren)return Et(i);if(o.numberOfChildren>1||!o.children[cn])return mu(new S(4e3,!1));o=o.children[cn]}}applyRedirectCommands(n,e,i){const o=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i);if(e.startsWith("/"))throw new FC(o);return o}applyRedirectCreateUrlTree(n,e,i,o){const r=this.createSegmentGroup(n,e.root,i,o);return new yu(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Object.entries(n).forEach(([o,r])=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);i[o]=e[s]}else i[o]=r}),i}createSegmentGroup(n,e,i,o){const r=this.createSegments(n,e.segments,i,o);let a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(n,l,i,o)}),new Hn(r,a)}createSegments(n,e,i,o){return e.map(r=>r.path.startsWith(":")?this.findPosParam(n,r,o):this.findOrReturn(r,i))}findPosParam(n,e,i){const o=i[e.path.substring(1)];if(!o)throw new S(4001,!1);return o}findOrReturn(n,e){let i=0;for(const o of e){if(o.path===n.path)return e.splice(i),o;i++}return n}}const LC={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function vq(t,n,e,i,o){const r=jC(t,n,e);return r.matched?(i=function VK(t,n){return t.providers&&!t._injector&&(t._injector=tg(t.providers,n,`Route: ${t.path}`)),t._injector??n}(n,i),function mq(t,n,e,i){const o=n.canMatch;return o&&0!==o.length?Et(o.map(a=>{const s=Su(a,t);return zs(function aq(t){return t&&hf(t.canMatch)}(s)?s.canMatch(n,e):ia(t,()=>s(n,e)))})).pipe(Du(),PP()):Et(!0)}(i,n,e).pipe(Bt(a=>!0===a?r:{...LC}))):Et(r)}function jC(t,n,e){if("**"===n.path)return function wq(t){return{matched:!0,parameters:t.length>0?eP(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}(e);if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...LC}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(n.matcher||eK)(e,t,n);if(!o)return{...LC};const r={};Object.entries(o.posParams??{}).forEach(([s,l])=>{r[s]=l.path});const a=o.consumed.length>0?{...r,...o.consumed[o.consumed.length-1].parameters}:r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function NP(t,n,e,i){return e.length>0&&function Sq(t,n,e){return e.some(i=>ib(t,n,i)&&Ca(i)!==cn)}(t,e,i)?{segmentGroup:new Hn(n,xq(i,new Hn(e,t.children))),slicedSegments:[]}:0===e.length&&function Dq(t,n,e){return e.some(i=>ib(t,n,i))}(t,e,i)?{segmentGroup:new Hn(t.segments,Cq(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new Hn(t.segments,t.children),slicedSegments:e}}function Cq(t,n,e,i){const o={};for(const r of e)if(ib(t,n,r)&&!i[Ca(r)]){const a=new Hn([],{});o[Ca(r)]=a}return{...i,...o}}function xq(t,n){const e={};e[cn]=n;for(const i of t)if(""===i.path&&Ca(i)!==cn){const o=new Hn([],{});e[Ca(i)]=o}return e}function ib(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}class Mq{}class Iq{constructor(n,e,i,o,r,a,s){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new _q(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new S(4002,`'${n.segmentGroup}'`)}recognize(){const n=NP(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(Bt(e=>{const i=new AC([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},cn,this.rootComponentType,null,{}),o=new Gr(i,e),r=new xP("",o),a=function vK(t,n,e=null,i=null){return hP(dP(t),n,e,i)}(i,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(r._root,null),{state:r,tree:a}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n,cn).pipe(es(i=>{if(i instanceof FC)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof NC?this.noMatchError(i):i}))}inheritParamsAndData(n,e){const i=n.value,o=MC(i,e,this.paramsInheritanceStrategy);i.params=Object.freeze(o.params),i.data=Object.freeze(o.data),n.children.forEach(r=>this.inheritParamsAndData(r,i))}processSegmentGroup(n,e,i,o){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,o,!0).pipe(Bt(r=>r instanceof Gr?[r]:[]))}processChildren(n,e,i){const o=[];for(const r of Object.keys(i.children))"primary"===r?o.unshift(r):o.push(r);return bi(o).pipe(au(r=>{const a=i.children[r],s=function WK(t,n){const e=t.filter(i=>Ca(i)===n);return e.push(...t.filter(i=>Ca(i)!==n)),e}(e,r);return this.processSegmentGroup(n,s,a,r)}),function QQ(t,n){return $n(function JQ(t,n,e,i,o){return(r,a)=>{let s=e,l=n,c=0;r.subscribe(Pn(a,u=>{const d=c++;l=s?t(l,u,d):(s=!0,u),i&&a.next(l)},o&&(()=>{s&&a.next(l),a.complete()})))}}(t,n,arguments.length>=2,!0))}((r,a)=>(r.push(...a),r)),Vm(null),function KQ(t,n){const e=arguments.length>=2;return i=>i.pipe(t?ui((o,r)=>t(o,r,i)):gr,bC(1),e?Vm(n):QR(()=>new $m))}(),Wi(r=>{if(null===r)return Eu(i);const a=FP(r);return function Oq(t){t.sort((n,e)=>n.value.outlet===cn?-1:e.value.outlet===cn?1:n.value.outlet.localeCompare(e.value.outlet))}(a),Et(a)}))}processSegment(n,e,i,o,r,a){return bi(e).pipe(au(s=>this.processSegmentAgainstRoute(s._injector??n,e,s,i,o,r,a).pipe(es(l=>{if(l instanceof NC)return Et(null);throw l}))),jl(s=>!!s),es(s=>{if(RP(s))return function Tq(t,n,e){return 0===n.length&&!t.children[e]}(i,o,r)?Et(new Mq):Eu(i);throw s}))}processSegmentAgainstRoute(n,e,i,o,r,a,s){return function Eq(t,n,e,i){return!!(Ca(t)===i||i!==cn&&ib(n,e,t))&&jC(n,t,e).matched}(i,o,r,a)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,o,i,r,a):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(n,o,e,i,r,a):Eu(o):Eu(o)}expandSegmentAgainstRouteUsingRedirect(n,e,i,o,r,a){const{matched:s,consumedSegments:l,positionalParamSegments:c,remainingSegments:u}=jC(e,o,r);if(!s)return Eu(e);o.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const d=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,c);return this.applyRedirects.lineralizeSegments(o,d).pipe(Wi(h=>this.processSegment(n,i,e,h.concat(u),a,!1)))}matchSegmentAgainstRoute(n,e,i,o,r){const a=vq(e,i,o,n);return"**"===i.path&&(e.children={}),a.pipe(Ni(s=>s.matched?this.getChildConfig(n=i._injector??n,i,o).pipe(Ni(({routes:l})=>{const c=i._loadedInjector??n,{consumedSegments:u,remainingSegments:d,parameters:h}=s,p=new AC(u,h,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function Pq(t){return t.data||{}}(i),Ca(i),i.component??i._loadedComponent??null,i,function Nq(t){return t.resolve||{}}(i)),{segmentGroup:g,slicedSegments:b}=NP(e,u,d,l);if(0===b.length&&g.hasChildren())return this.processChildren(c,l,g).pipe(Bt(D=>null===D?null:new Gr(p,D)));if(0===l.length&&0===b.length)return Et(new Gr(p,[]));const T=Ca(i)===r;return this.processSegment(c,l,g,b,T?cn:r,!0).pipe(Bt(D=>new Gr(p,D instanceof Gr?[D]:[])))})):Eu(e)))}getChildConfig(n,e,i){return e.children?Et({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?Et({routes:e._loadedRoutes,injector:e._loadedInjector}):function gq(t,n,e,i){const o=n.canLoad;return void 0===o||0===o.length?Et(!0):Et(o.map(a=>{const s=Su(a,t);return zs(function nq(t){return t&&hf(t.canLoad)}(s)?s.canLoad(n,e):ia(t,()=>s(n,e)))})).pipe(Du(),PP())}(n,e,i).pipe(Wi(o=>o?this.configLoader.loadChildren(n,e).pipe($i(r=>{e._loadedRoutes=r.routes,e._loadedInjector=r.injector})):function yq(t){return mu(AP(!1,lr.GuardRejected))}())):Et({routes:[],injector:n})}}function Rq(t){const n=t.value.routeConfig;return n&&""===n.path}function FP(t){const n=[],e=new Set;for(const i of t){if(!Rq(i)){n.push(i);continue}const o=n.find(r=>i.value.routeConfig===r.value.routeConfig);void 0!==o?(o.children.push(...i.children),e.add(o)):n.push(i)}for(const i of e){const o=FP(i.children);n.push(new Gr(i.value,o))}return n.filter(i=>!e.has(i))}function LP(t){const n=t.children.map(e=>LP(e)).flat();return[t,...n]}function BC(t){return Ni(n=>{const e=t(n);return e?bi(e).pipe(Bt(()=>n)):Et(n)})}let jP=(()=>{class t{buildTitle(e){let i,o=e.root;for(;void 0!==o;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(r=>r.outlet===cn);return i}getResolvedTitleForRoute(e){return e.data[qh]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Pe(Yq),providedIn:"root"})}}return t})(),Yq=(()=>{class t extends jP{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}static{this.\u0275fac=function(i){return new(i||t)(Me(OI))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const Tu=new He("",{providedIn:"root",factory:()=>({})}),Mu=new He("");let HC=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Pe(tk)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return Et(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=zs(e.loadComponent()).pipe(Bt(BP),$i(r=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=r}),Dl(()=>{this.componentLoaders.delete(e)})),o=new JR(i,()=>new vt).pipe(mC());return this.componentLoaders.set(e,o),o}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Et({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const r=function zq(t,n,e,i){return zs(t.loadChildren()).pipe(Bt(BP),Wi(o=>o instanceof DT||Array.isArray(o)?Et(o):bi(n.compileModuleAsync(o))),Bt(o=>{i&&i(t);let r,a,s=!1;return Array.isArray(o)?(a=o,!0):(r=o.create(e).injector,a=r.get(Mu,[],{optional:!0,self:!0}).flat()),{routes:a.map(PC),injector:r}}))}(i,this.compiler,e,this.onLoadEndListener).pipe(Dl(()=>{this.childrenLoaders.delete(i)})),a=new JR(r,()=>new vt).pipe(mC());return this.childrenLoaders.set(i,a),a}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function BP(t){return function $q(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let YC=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Pe(Vq),providedIn:"root"})}}return t})(),Vq=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const HP=new He(""),YP=new He("");function Zq(t,n,e){const i=t.get(YP),o=t.get(qt);return t.get(wt).runOutsideAngular(()=>{if(!o.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,Promise.resolve();let r;const a=new Promise(c=>{r=c}),s=o.startViewTransition(()=>(r(),function Gq(t){return new Promise(n=>{zE(n,{injector:t})})}(t))),{onViewTransitionCreated:l}=i;return l&&ia(t,()=>l({transition:s,from:n,to:e})),a})}let ob=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new vt,this.transitionAbortSubject=new vt,this.configLoader=Pe(HC),this.environmentInjector=Pe(Lo),this.urlSerializer=Pe(_u),this.rootContexts=Pe(sf),this.location=Pe(xl),this.inputBindingEnabled=null!==Pe(eb,{optional:!0}),this.titleStrategy=Pe(jP),this.options=Pe(Tu,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=Pe(YC),this.createViewTransition=Pe(HP,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>Et(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new OK(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new IK(o))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e,i,o){return this.transitions=new hi({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:af,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ui(r=>0!==r.id),Bt(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),Ni(r=>{let a=!1,s=!1;return Et(r).pipe(Ni(l=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",lr.SupersededByNewNavigation),Sr;this.currentTransition=r,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!c&&"reload"!==(l.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const d="";return this.events.next(new Cu(l.id,this.urlSerializer.serialize(l.rawUrl),d,Km.IgnoredSameUrlNavigation)),l.resolve(null),Sr}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return Et(l).pipe(Ni(d=>{const h=this.transitions?.getValue();return this.events.next(new Qm(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?Sr:Promise.resolve(d)}),function Fq(t,n,e,i,o,r){return Wi(a=>function Aq(t,n,e,i,o,r,a="emptyOnly"){return new Iq(t,n,e,i,o,a,r).recognize()}(t,n,e,i,a.extractedUrl,o,r).pipe(Bt(({state:s,tree:l})=>({...a,targetSnapshot:s,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),$i(d=>{r.targetSnapshot=d.targetSnapshot,r.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects};const h=new yP(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:d,extractedUrl:h,source:p,restoredState:g,extras:b}=l,T=new Qm(d,this.urlSerializer.serialize(h),p,g);this.events.next(T);const D=CP(this.rootComponentType).snapshot;return this.currentTransition=r={...l,targetSnapshot:D,urlAfterRedirects:h,extras:{...b,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=h,Et(r)}{const d="";return this.events.next(new Cu(l.id,this.urlSerializer.serialize(l.extractedUrl),d,Km.IgnoredByUrlHandlingStrategy)),l.resolve(null),Sr}}),$i(l=>{const c=new TK(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),Bt(l=>(this.currentTransition=r={...l,guards:QK(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},r)),function sq(t,n){return Wi(e=>{const{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:a}}=e;return 0===a.length&&0===r.length?Et({...e,guardsResult:!0}):function lq(t,n,e,i){return bi(t).pipe(Wi(o=>function pq(t,n,e,i,o){const r=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return r&&0!==r.length?Et(r.map(s=>{const l=cf(n)??o,c=Su(s,l);return zs(function rq(t){return t&&hf(t.canDeactivate)}(c)?c.canDeactivate(t,n,e,i):ia(l,()=>c(t,n,e,i))).pipe(jl())})).pipe(Du()):Et(!0)}(o.component,o.route,e,n,i)),jl(o=>!0!==o,!0))}(a,i,o,t).pipe(Wi(s=>s&&function tq(t){return"boolean"==typeof t}(s)?function cq(t,n,e,i){return bi(n).pipe(au(o=>Xh(function dq(t,n){return null!==t&&n&&n(new RK(t)),Et(!0)}(o.route.parent,i),function uq(t,n){return null!==t&&n&&n(new NK(t)),Et(!0)}(o.route,i),function fq(t,n,e){const i=n[n.length-1],r=n.slice(0,n.length-1).reverse().map(a=>function KK(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(a)).filter(a=>null!==a).map(a=>Kh(()=>Et(a.guards.map(l=>{const c=cf(a.node)??e,u=Su(l,c);return zs(function oq(t){return t&&hf(t.canActivateChild)}(u)?u.canActivateChild(i,t):ia(c,()=>u(i,t))).pipe(jl())})).pipe(Du())));return Et(r).pipe(Du())}(t,o.path,e),function hq(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return Et(!0);const o=i.map(r=>Kh(()=>{const a=cf(n)??e,s=Su(r,a);return zs(function iq(t){return t&&hf(t.canActivate)}(s)?s.canActivate(n,t):ia(a,()=>s(n,t))).pipe(jl())}));return Et(o).pipe(Du())}(t,o.route,e))),jl(o=>!0!==o,!0))}(i,r,t,n):Et(s)),Bt(s=>({...e,guardsResult:s})))})}(this.environmentInjector,l=>this.events.next(l)),$i(l=>{if(r.guardsResult=l.guardsResult,vu(l.guardsResult))throw MP(0,l.guardsResult);const c=new MK(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),ui(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",lr.GuardRejected),!1)),BC(l=>{if(l.guards.canActivateChecks.length)return Et(l).pipe($i(c=>{const u=new AK(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),Ni(c=>{let u=!1;return Et(c).pipe(function Lq(t,n){return Wi(e=>{const{targetSnapshot:i,guards:{canActivateChecks:o}}=e;if(!o.length)return Et(e);const r=new Set(o.map(l=>l.route)),a=new Set;for(const l of r)if(!a.has(l))for(const c of LP(l))a.add(c);let s=0;return bi(a).pipe(au(l=>r.has(l)?function jq(t,n,e,i){const o=t.routeConfig,r=t._resolve;return void 0!==o?.title&&!DP(o)&&(r[qh]=o.title),function Bq(t,n,e,i){const o=yC(t);if(0===o.length)return Et({});const r={};return bi(o).pipe(Wi(a=>function Hq(t,n,e,i){const o=cf(n)??i,r=Su(t,o);return zs(r.resolve?r.resolve(n,e):ia(o,()=>r(n,e)))}(t[a],n,e,i).pipe(jl(),$i(s=>{r[a]=s}))),bC(1),KR(r),es(a=>RP(a)?Sr:mu(a)))}(r,t,n,i).pipe(Bt(a=>(t._resolvedData=a,t.data=MC(t,t.parent,e).resolve,null)))}(l,i,t,n):(l.data=MC(l,l.parent,t).resolve,Et(void 0))),$i(()=>s++),bC(1),Wi(l=>s===a.size?Et(e):Sr))})}(this.paramsInheritanceStrategy,this.environmentInjector),$i({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(c,"",lr.NoDataFromResolver)}}))}),$i(c=>{const u=new kK(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}))}),BC(l=>{const c=u=>{const d=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(u.routeConfig).pipe($i(h=>{u.component=h}),Bt(()=>{})));for(const h of u.children)d.push(...c(h));return d};return jm(c(l.targetSnapshot.root)).pipe(Vm(null),_i(1))}),BC(()=>this.afterPreactivation()),Ni(()=>{const{currentSnapshot:l,targetSnapshot:c}=r,u=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return u?bi(u).pipe(Bt(()=>r)):Et(r)}),Bt(l=>{const c=function HK(t,n,e){const i=lf(t,n._root,e?e._root:void 0);return new wP(i,n)}(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=r={...l,targetRouterState:c},this.currentNavigation.targetRouterState=c,r}),$i(()=>{this.events.next(new SC)}),((t,n,e,i)=>Bt(o=>(new JK(n,o.targetRouterState,o.currentRouterState,e,i).activate(t),o)))(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),_i(1),$i({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ts(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),yn(this.transitionAbortSubject.pipe($i(l=>{throw l}))),Dl(()=>{a||s||this.cancelNavigationTransition(r,"",lr.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation=null,this.currentTransition=null)}),es(l=>{if(s=!0,kP(l))this.events.next(new wu(r.id,this.urlSerializer.serialize(r.extractedUrl),l.message,l.cancellationCode)),function $K(t){return kP(t)&&vu(t.url)}(l)?this.events.next(new DC(l.url)):r.resolve(!1);else{this.events.next(new qm(r.id,this.urlSerializer.serialize(r.extractedUrl),l,r.targetSnapshot??void 0));try{r.resolve(e.errorHandler(l))}catch(c){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(c)}}return Sr}))}))}cancelNavigationTransition(e,i,o){const r=new wu(e.id,this.urlSerializer.serialize(e.extractedUrl),i,o);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Uq(t){return t!==af}let Wq=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Pe(Jq),providedIn:"root"})}}return t})();class Xq{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let Jq=(()=>{class t extends Xq{static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=yi(t)))(o||t)}})()}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),zP=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:()=>Pe(Qq),providedIn:"root"})}}return t})(),Qq=(()=>{class t extends zP{constructor(){super(...arguments),this.location=Pe(xl),this.urlSerializer=Pe(_u),this.options=Pe(Tu,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=Pe(YC),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new yu,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=CP(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{"popstate"===i.type&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof Qm)this.stateMemento=this.createStateMemento();else if(e instanceof Cu)this.rawUrlTree=i.initialUrl;else if(e instanceof yP){if("eager"===this.urlUpdateStrategy&&!i.extras.skipLocationChange){const o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else e instanceof SC?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,"deferred"===this.urlUpdateStrategy&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):e instanceof wu&&(e.code===lr.GuardRejected||e.code===lr.NoDataFromResolver)?this.restoreHistory(i):e instanceof qm?this.restoreHistory(i,!0):e instanceof ts&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){const o=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){const a={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(o,"",a)}else{const r={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId+1)};this.location.go(o,"",r)}}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-this.browserPageId;0!==r?this.location.historyGo(r):this.currentUrlTree===e.finalUrl&&0===r&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=yi(t)))(o||t)}})()}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ff=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(ff||{});function $P(t,n){t.events.pipe(ui(e=>e instanceof ts||e instanceof wu||e instanceof qm||e instanceof Cu),Bt(e=>e instanceof ts||e instanceof Cu?ff.COMPLETE:e instanceof wu&&(e.code===lr.Redirect||e.code===lr.SupersededByNewNavigation)?ff.REDIRECTING:ff.FAILED),ui(e=>e!==ff.REDIRECTING),_i(1)).subscribe(()=>{n()})}function Kq(t){throw t}const qq={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},eee={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ko=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=Pe(ZA),this.stateManager=Pe(zP),this.options=Pe(Tu,{optional:!0})||{},this.pendingTasks=Pe(Cs),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=Pe(ob),this.urlSerializer=Pe(_u),this.location=Pe(xl),this.urlHandlingStrategy=Pe(YC),this._events=new vt,this.errorHandler=this.options.errorHandler||Kq,this.navigated=!1,this.routeReuseStrategy=Pe(Wq),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=Pe(Mu,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!Pe(eb,{optional:!0}),this.eventsSubscription=new ge,this.isNgZoneEnabled=Pe(wt)instanceof wt&&wt.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(i=>{try{const o=this.navigationTransitions.currentTransition,r=this.navigationTransitions.currentNavigation;if(null!==o&&null!==r)if(this.stateManager.handleRouterEvent(i,r),i instanceof wu&&i.code!==lr.Redirect&&i.code!==lr.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof ts)this.navigated=!0;else if(i instanceof DC){const a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),s={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Uq(o.source)};this.scheduleNavigation(a,af,null,s,{resolve:o.resolve,reject:o.reject,promise:o.promise})}(function nee(t){return!(t instanceof SC||t instanceof DC)})(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),af,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,o){const r={replaceUrl:!0},a=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(r.state=l)}const s=this.parseUrl(e);this.scheduleNavigation(s,i,a,r)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(PC),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){const{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:s,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:a;let d,u=null;switch(s){case"merge":u={...this.currentUrlTree.queryParams,...r};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}null!==u&&(u=this.removeEmptyProps(u));try{d=dP(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),d=this.currentUrlTree.root}return hP(d,e,u,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){const o=vu(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,af,null,i)}navigate(e,i={skipLocationChange:!1}){return function tee(t){for(let n=0;n(null!=r&&(i[o]=r),i),{})}scheduleNavigation(e,i,o,r,a){if(this.disposed)return Promise.resolve(!1);let s,l,c;a?(s=a.resolve,l=a.reject,c=a.promise):c=new Promise((d,h)=>{s=d,l=h});const u=this.pendingTasks.add();return $P(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:s,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),pf=(()=>{class t{constructor(e,i,o,r,a,s){this.router=e,this.route=i,this.tabIndexAttribute=o,this.renderer=r,this.el=a,this.locationStrategy=s,this.href=null,this.commands=null,this.onChanges=new vt,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof ts&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,i,o,r,a){const s=this.urlTree;return!!(null===s||this.isAnchorElement&&(0!==e||i||o||r||a||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(s,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const e=this.urlTree;this.href=null!==e&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;const i=null===this.href?null:function jD(t,n,e){return function h5(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?LD:Sd}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){const o=this.renderer,r=this.el.nativeElement;null!==i?o.setAttribute(r,e,i):o.removeAttribute(r,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(i){return new(i||t)(K(ko),K(Hl),ua("tabindex"),K(Ha),K(Zt),K(Cl))}}static{this.\u0275dir=gt({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){1&i&&_t("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),2&i&&Kt("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[Le.HasDecoratorInputTransform,"preserveFragment","preserveFragment",Nt],skipLocationChange:[Le.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",Nt],replaceUrl:[Le.HasDecoratorInputTransform,"replaceUrl","replaceUrl",Nt],routerLink:"routerLink"},standalone:!0,features:[qi,Gi]})}}return t})();class VP{}let ree=(()=>{class t{constructor(e,i,o,r,a){this.router=e,this.injector=o,this.preloadingStrategy=r,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(ui(e=>e instanceof ts),au(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const o=[];for(const r of i){r.providers&&!r._injector&&(r._injector=tg(r.providers,e,`Route: ${r.path}`));const a=r._injector??e,s=r._loadedInjector??a;(r.loadChildren&&!r._loadedRoutes&&void 0===r.canLoad||r.loadComponent&&!r._loadedComponent)&&o.push(this.preloadConfig(a,r)),(r.children||r._loadedRoutes)&&o.push(this.processRoutes(s,r.children??r._loadedRoutes))}return bi(o).pipe(hu())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let o;o=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):Et(null);const r=o.pipe(Wi(a=>null===a?Et(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));return i.loadComponent&&!i._loadedComponent?bi([r,this.loader.loadComponent(i)]).pipe(hu()):r})}static{this.\u0275fac=function(i){return new(i||t)(Me(ko),Me(tk),Me(Lo),Me(VP),Me(HC))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const zC=new He("");let ZP=(()=>{class t{constructor(e,i,o,r,a={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=o,this.zone=r,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Qm?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof ts?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Cu&&e.code===Km.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof _P&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new _P(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(i){z_()}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac})}}return t})();function xa(t,n){return{\u0275kind:t,\u0275providers:n}}function UP(){const t=Pe(gi);return n=>{const e=t.get(Yr);if(n!==e.components[0])return;const i=t.get(ko),o=t.get(WP);1===t.get($C)&&i.initialNavigation(),t.get(XP,null,fn.Optional)?.setUpPreloading(),t.get(zC,null,fn.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const WP=new He("",{factory:()=>new vt}),$C=new He("",{providedIn:"root",factory:()=>1}),XP=new He("");function cee(t){return xa(0,[{provide:XP,useExisting:ree},{provide:VP,useExisting:t}])}function dee(t){return xa(9,[{provide:HP,useValue:Zq},{provide:YP,useValue:{skipNextTransition:!!t?.skipInitialTransition,...t}}])}const JP=new He("ROUTER_FORROOT_GUARD"),hee=[xl,{provide:_u,useClass:_C},ko,sf,{provide:Hl,useFactory:function GP(t){return t.routerState.root},deps:[ko]},HC,[]];let QP=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[hee,[],{provide:Mu,multi:!0,useValue:e},{provide:JP,useFactory:mee,deps:[[ko,new ps,new lc]]},{provide:Tu,useValue:i||{}},i?.useHash?{provide:Cl,useClass:m9}:{provide:Cl,useClass:Vk},{provide:zC,useFactory:()=>{const t=Pe(PV),n=Pe(wt),e=Pe(Tu),i=Pe(ob),o=Pe(_u);return e.scrollOffset&&t.setOffset(e.scrollOffset),new ZP(o,i,t,n,e)}},i?.preloadingStrategy?cee(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?bee(i):[],i?.bindToComponentInputs?xa(8,[EP,{provide:eb,useExisting:EP}]).\u0275providers:[],i?.enableViewTransitions?dee().\u0275providers:[],[{provide:KP,useFactory:UP},{provide:hw,multi:!0,useExisting:KP}]]}}static forChild(e){return{ngModule:t,providers:[{provide:Mu,multi:!0,useValue:e}]}}static{this.\u0275fac=function(i){return new(i||t)(Me(JP,8))}}static{this.\u0275mod=nn({type:t})}static{this.\u0275inj=en({})}}return t})();function mee(t){return"guarded"}function bee(t){return["disabled"===t.initialNavigation?xa(3,[{provide:uw,multi:!0,useFactory:()=>{const n=Pe(ko);return()=>{n.setUpLocationChangeListener()}}},{provide:$C,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?xa(2,[{provide:$C,useValue:0},{provide:uw,multi:!0,deps:[gi],useFactory:n=>{const e=n.get(p9,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const o=n.get(ko),r=n.get(WP);$P(o,()=>{i(!0)}),n.get(ob).afterPreactivation=()=>(i(!0),r.closed?Et(void 0):r),o.initialNavigation()}))}}]).\u0275providers:[]]}const KP=new He("");var _ee=function(n){return function vee(t){return!!t&&"object"==typeof t}(n)&&!function wee(t){var n=Object.prototype.toString.call(t);return"[object RegExp]"===n||"[object Date]"===n||function See(t){return t.$$typeof===xee}(t)}(n)},xee="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function gf(t,n){return!1!==n.clone&&n.isMergeableObject(t)?Au(function Dee(t){return Array.isArray(t)?[]:{}}(t),t,n):t}function Eee(t,n,e){return t.concat(n).map(function(i){return gf(i,e)})}function qP(t){return Object.keys(t).concat(function Mee(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(n){return Object.propertyIsEnumerable.call(t,n)}):[]}(t))}function eN(t,n){try{return n in t}catch{return!1}}function Au(t,n,e){(e=e||{}).arrayMerge=e.arrayMerge||Eee,e.isMergeableObject=e.isMergeableObject||_ee,e.cloneUnlessOtherwiseSpecified=gf;var i=Array.isArray(n);return i===Array.isArray(t)?i?e.arrayMerge(t,n,e):function kee(t,n,e){var i={};return e.isMergeableObject(t)&&qP(t).forEach(function(o){i[o]=gf(t[o],e)}),qP(n).forEach(function(o){(function Aee(t,n){return eN(t,n)&&!(Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))})(t,o)||(i[o]=eN(t,o)&&e.isMergeableObject(n[o])?function Tee(t,n){if(!n.customMerge)return Au;var e=n.customMerge(t);return"function"==typeof e?e:Au}(o,e)(t[o],n[o],e):gf(n[o],e))}),i}(t,n,e):gf(n,e)}Au.all=function(n,e){if(!Array.isArray(n))throw new Error("first argument should be an array");return n.reduce(function(i,o){return Au(i,o,e)},{})};var VC=Au;function ZC(t){return t instanceof HTMLElement}function Yl(t){return"function"==typeof t}function mf(t){return"string"==typeof t}function go(t){return void 0===t}class GC{on(n,e,i,o=!1){return go(this.bindings)&&(this.bindings={}),go(this.bindings[n])&&(this.bindings[n]=[]),this.bindings[n].push({handler:e,ctx:i,once:o}),this}once(n,e,i){return this.on(n,e,i,!0)}off(n,e){return go(this.bindings)||go(this.bindings[n])||(go(e)?delete this.bindings[n]:this.bindings[n].forEach((i,o)=>{i.handler===e&&this.bindings[n].splice(o,1)})),this}trigger(n,...e){return!go(this.bindings)&&this.bindings[n]&&this.bindings[n].forEach((i,o)=>{const{ctx:r,handler:a,once:s}=i;a.apply(r||this,e),s&&this.bindings[n].splice(o,1)}),this}}function tN(t){const n=Object.getOwnPropertyNames(t.constructor.prototype);for(let e=0;e{const e=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==n?e:3&e|8).toString(16)})}function mo(){return mo=Object.assign?Object.assign.bind():function(t){for(var n=1;n=0)&&(e[o]=t[o]);return e}const ku=Math.min,zl=Math.max,rb=Math.round,ab=Math.floor,$s=t=>({x:t,y:t}),Fee={left:"right",right:"left",bottom:"top",top:"bottom"},Lee={start:"end",end:"start"};function WC(t,n,e){return zl(t,ku(n,e))}function Iu(t,n){return"function"==typeof t?t(n):t}function $l(t){return t.split("-")[0]}function sb(t){return t.split("-")[1]}function XC(t){return"x"===t?"y":"x"}function JC(t){return"y"===t?"height":"width"}function lb(t){return["top","bottom"].includes($l(t))?"y":"x"}function QC(t){return XC(lb(t))}function KC(t){return t.replace(/start|end/g,n=>Lee[n])}function cb(t){return t.replace(/left|right|bottom|top/g,n=>Fee[n])}function rN(t){return"number"!=typeof t?function zee(t){return mo({top:0,right:0,bottom:0,left:0},t)}(t):{top:t,right:t,bottom:t,left:t}}function ub(t){return mo({},t,{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}const $ee=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],Vee=["mainAxis","crossAxis","limiter"];function aN(t,n,e){let{reference:i,floating:o}=t;const r=lb(n),a=QC(n),s=JC(a),l=$l(n),c="y"===r,u=i.x+i.width/2-o.width/2,d=i.y+i.height/2-o.height/2,h=i[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:i.y-o.height};break;case"bottom":p={x:u,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:d};break;case"left":p={x:i.x-o.width,y:d};break;default:p={x:i.x,y:i.y}}switch(sb(n)){case"start":p[a]-=h*(e&&c?-1:1);break;case"end":p[a]+=h*(e&&c?-1:1)}return p}const Zee=function(){var t=(0,y.Z)(function*(n,e,i){const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:s}=i,l=a.filter(Boolean),c=yield null==s.isRTL?void 0:s.isRTL(e);let u=yield s.getElementRects({reference:n,floating:e,strategy:r}),{x:d,y:h}=aN(u,o,c),p=o,g={},b=0;for(let T=0;Tpe&&(g=pe)}if(u){var H,oe;const le="y"===p?"width":"height",G=["top","left"].includes($l(r)),pe=a.reference[h]-a.floating[le]+(G&&(null==(H=s.offset)?void 0:H[h])||0)+(G?0:D.crossAxis),_e=a.reference[h]+a.reference[le]+(G?0:(null==(oe=s.offset)?void 0:oe[h])||0)-(G?D.crossAxis:0);b_e&&(b=_e)}return{[p]:g,[h]:b}}}};function Vs(t){return lN(t)?(t.nodeName||"").toLowerCase():"#document"}function cr(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function ns(t){var n;return null==(n=(lN(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function lN(t){return t instanceof Node||t instanceof cr(t).Node}function is(t){return t instanceof Element||t instanceof cr(t).Element}function Sa(t){return t instanceof HTMLElement||t instanceof cr(t).HTMLElement}function cN(t){return!(typeof ShadowRoot>"u")&&(t instanceof ShadowRoot||t instanceof cr(t).ShadowRoot)}function bf(t){const{overflow:n,overflowX:e,overflowY:i,display:o}=Er(t);return/auto|scroll|overlay|hidden|clip/.test(n+i+e)&&!["inline","contents"].includes(o)}function Jee(t){return["table","td","th"].includes(Vs(t))}function e1(t){const n=t1(),e=Er(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!n&&!!e.backdropFilter&&"none"!==e.backdropFilter||!n&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some(i=>(e.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(e.contain||"").includes(i))}function t1(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function db(t){return["html","body","#document"].includes(Vs(t))}function Er(t){return cr(t).getComputedStyle(t)}function hb(t){return is(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ou(t){if("html"===Vs(t))return t;const n=t.assignedSlot||t.parentNode||cN(t)&&t.host||ns(t);return cN(n)?n.host:n}function uN(t){const n=Ou(t);return db(n)?t.ownerDocument?t.ownerDocument.body:t.body:Sa(n)&&bf(n)?n:uN(n)}function fb(t,n){var e;void 0===n&&(n=[]);const i=uN(t),o=i===(null==(e=t.ownerDocument)?void 0:e.body),r=cr(i);return o?n.concat(r,r.visualViewport||[],bf(i)?i:[]):n.concat(i,fb(i))}function dN(t){const n=Er(t);let e=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const o=Sa(t),r=o?t.offsetWidth:e,a=o?t.offsetHeight:i,s=rb(e)!==r||rb(i)!==a;return s&&(e=r,i=a),{width:e,height:i,$:s}}function n1(t){return is(t)?t:t.contextElement}function Ru(t){const n=n1(t);if(!Sa(n))return $s(1);const e=n.getBoundingClientRect(),{width:i,height:o,$:r}=dN(n);let a=(r?rb(e.width):e.width)/i,s=(r?rb(e.height):e.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Kee=$s(0);function hN(t){const n=cr(t);return t1()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:Kee}function Vl(t,n,e,i){void 0===n&&(n=!1),void 0===e&&(e=!1);const o=t.getBoundingClientRect(),r=n1(t);let a=$s(1);n&&(i?is(i)&&(a=Ru(i)):a=Ru(t));const s=function qee(t,n,e){return void 0===n&&(n=!1),!(!e||n&&e!==cr(t))&&n}(r,e,i)?hN(r):$s(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(r){const h=cr(r),p=i&&is(i)?cr(i):i;let g=h.frameElement;for(;g&&i&&p!==h;){const b=Ru(g),T=g.getBoundingClientRect(),D=Er(g),H=T.left+(g.clientLeft+parseFloat(D.paddingLeft))*b.x,oe=T.top+(g.clientTop+parseFloat(D.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=H,c+=oe,g=cr(g).frameElement}}return ub({width:u,height:d,x:l,y:c})}function fN(t){return Vl(ns(t)).left+hb(t).scrollLeft}function pN(t,n,e){let i;if("viewport"===n)i=function ite(t,n){const e=cr(t),i=ns(t),o=e.visualViewport;let r=i.clientWidth,a=i.clientHeight,s=0,l=0;if(o){r=o.width,a=o.height;const c=t1();(!c||c&&"fixed"===n)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:r,height:a,x:s,y:l}}(t,e);else if("document"===n)i=function nte(t){const n=ns(t),e=hb(t),i=t.ownerDocument.body,o=zl(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),r=zl(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let a=-e.scrollLeft+fN(t);const s=-e.scrollTop;return"rtl"===Er(i).direction&&(a+=zl(n.clientWidth,i.clientWidth)-o),{width:o,height:r,x:a,y:s}}(ns(t));else if(is(n))i=function ote(t,n){const e=Vl(t,!0,"fixed"===n),i=e.top+t.clientTop,o=e.left+t.clientLeft,r=Sa(t)?Ru(t):$s(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y}}(n,e);else{const o=hN(t);i=mo({},n,{x:n.x-o.x,y:n.y-o.y})}return ub(i)}function gN(t,n){const e=Ou(t);return!(e===n||!is(e)||db(e))&&("fixed"===Er(e).position||gN(e,n))}function rte(t,n){const e=n.get(t);if(e)return e;let i=fb(t).filter(s=>is(s)&&"body"!==Vs(s)),o=null;const r="fixed"===Er(t).position;let a=r?Ou(t):t;for(;is(a)&&!db(a);){const s=Er(a),l=e1(a);!l&&"fixed"===s.position&&(o=null),(r?!l&&!o:!l&&"static"===s.position&&o&&["absolute","fixed"].includes(o.position)||bf(a)&&!l&&gN(t,a))?i=i.filter(u=>u!==a):o=s,a=Ou(a)}return n.set(t,i),i}function lte(t,n,e){const i=Sa(n),o=ns(n),r="fixed"===e,a=Vl(t,!0,r,n);let s={scrollLeft:0,scrollTop:0};const l=$s(0);if(i||!i&&!r)if(("body"!==Vs(n)||bf(o))&&(s=hb(n)),i){const c=Vl(n,!0,r,n);l.x=c.x+n.clientLeft,l.y=c.y+n.clientTop}else o&&(l.x=fN(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function mN(t,n){return Sa(t)&&"fixed"!==Er(t).position?n?n(t):t.offsetParent:null}function bN(t,n){const e=cr(t);if(!Sa(t))return e;let i=mN(t,n);for(;i&&Jee(i)&&"static"===Er(i).position;)i=mN(i,n);return i&&("html"===Vs(i)||"body"===Vs(i)&&"static"===Er(i).position&&!e1(i))?e:i||function Qee(t){let n=Ou(t);for(;Sa(n)&&!db(n);){if(e1(n))return n;n=Ou(n)}return null}(t)||e}const cte=function(){var t=(0,y.Z)(function*(e){let{reference:i,floating:o,strategy:r}=e;const a=this.getOffsetParent||bN,s=this.getDimensions;return{reference:lte(i,yield a(o),r),floating:mo({x:0,y:0},yield s(o))}});return function n(e){return t.apply(this,arguments)}}(),dte={convertOffsetParentRelativeRectToViewportRelativeRect:function ete(t){let{rect:n,offsetParent:e,strategy:i}=t;const o=Sa(e),r=ns(e);if(e===r)return n;let a={scrollLeft:0,scrollTop:0},s=$s(1);const l=$s(0);if((o||!o&&"fixed"!==i)&&(("body"!==Vs(e)||bf(r))&&(a=hb(e)),Sa(e))){const c=Vl(e);s=Ru(e),l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-a.scrollLeft*s.x+l.x,y:n.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:ns,getClippingRect:function ate(t){let{element:n,boundary:e,rootBoundary:i,strategy:o}=t;const a=[..."clippingAncestors"===e?rte(n,this._c):[].concat(e),i],l=a.reduce((c,u)=>{const d=pN(n,u,o);return c.top=zl(d.top,c.top),c.right=ku(d.right,c.right),c.bottom=ku(d.bottom,c.bottom),c.left=zl(d.left,c.left),c},pN(n,a[0],o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:bN,getElementRects:cte,getClientRects:function tte(t){return Array.from(t.getClientRects())},getDimensions:function ste(t){return dN(t)},getScale:Ru,isElement:is,isRTL:function ute(t){return"rtl"===Er(t).direction}};function gte(t){t.cleanup&&t.cleanup();const n=t._getResolvedAttachToOptions();let e=n.element;const i=function wte(t,n){const e={strategy:"absolute",middleware:[]},i=function Cte(t){return!(!t.options.arrow||!t.el)&&t.el.querySelector(".shepherd-arrow")}(n);return iN(t)||(e.middleware.push(function(n){return void 0===n&&(n={}),{name:"flip",options:n,fn:e=>(0,y.Z)(function*(){var i;const{placement:o,middlewareData:r,rects:a,initialPlacement:s,platform:l,elements:c}=e,u=Iu(n,e),{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:T=!0}=u,D=oN(u,$ee),H=$l(o),oe=$l(s)===s,le=yield null==l.isRTL?void 0:l.isRTL(c.floating),G=p||(oe||!T?[cb(s)]:function Bee(t){const n=cb(t);return[KC(t),n,KC(n)]}(s));!p&&"none"!==b&&G.push(...function Yee(t,n,e,i){const o=sb(t);let r=function Hee(t,n,e){const i=["left","right"],o=["right","left"],r=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return e?n?o:i:n?i:o;case"left":case"right":return n?r:a;default:return[]}}($l(t),"start"===e,i);return o&&(r=r.map(a=>a+"-"+o),n&&(r=r.concat(r.map(KC)))),r}(s,T,b,le));const pe=[s,...G],_e=yield sN(e,D),be=[];let Be=(null==(i=r.flip)?void 0:i.overflows)||[];if(d&&be.push(_e[H]),h){const Xe=function jee(t,n,e){void 0===e&&(e=!1);const i=sb(t),o=QC(t),r=JC(o);let a="x"===o?i===(e?"end":"start")?"right":"left":"start"===i?"bottom":"top";return n.reference[r]>n.floating[r]&&(a=cb(a)),[a,cb(a)]}(o,a,le);be.push(_e[Xe[0]],_e[Xe[1]])}if(Be=[...Be,{placement:o,overflows:be}],!be.every(Xe=>Xe<=0)){var Fe,Qe;const Xe=((null==(Fe=r.flip)?void 0:Fe.index)||0)+1,ct=pe[Xe];if(ct)return{data:{index:Xe,overflows:Be},reset:{placement:ct}};let ut=null==(Qe=Be.filter(Se=>Se.overflows[0]<=0).sort((Se,Ye)=>Se.overflows[1]-Ye.overflows[1])[0])?void 0:Qe.placement;if(!ut)switch(g){case"bestFit":{var Re;const Se=null==(Re=Be.map(Ye=>[Ye.placement,Ye.overflows.filter(We=>We>0).reduce((We,it)=>We+it,0)]).sort((Ye,We)=>Ye[1]-We[1])[0])?void 0:Re[0];Se&&(ut=Se);break}case"initialPlacement":ut=s}if(o!==ut)return{reset:{placement:ut}}}return{}})()}}(),function(n){return void 0===n&&(n={}),{name:"shift",options:n,fn:e=>(0,y.Z)(function*(){const{x:i,y:o,placement:r}=e,a=Iu(n,e),{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:H=>{let{x:oe,y:le}=H;return{x:oe,y:le}}}}=a,u=oN(a,Vee),d={x:i,y:o},h=yield sN(e,u),p=lb($l(r)),g=XC(p);let b=d[g],T=d[p];s&&(b=WC(b+h["y"===g?"top":"left"],b,b-h["y"===g?"bottom":"right"])),l&&(T=WC(T+h["y"===p?"top":"left"],T,T-h["y"===p?"bottom":"right"]));const D=c.fn(mo({},e,{[g]:b,[p]:T}));return mo({},D,{data:{x:D.x-i,y:D.y-o}})})()}}({limiter:Xee(),crossAxis:!0})),i&&e.middleware.push((t=>({name:"arrow",options:t,fn:n=>(0,y.Z)(function*(){const{x:e,y:i,placement:o,rects:r,platform:a,elements:s}=n,{element:l,padding:c=0}=Iu(t,n)||{};if(null==l)return{};const u=rN(c),d={x:e,y:i},h=QC(o),p=JC(h),g=yield a.getDimensions(l),b="y"===h,T=b?"top":"left",D=b?"bottom":"right",H=b?"clientHeight":"clientWidth",oe=r.reference[p]+r.reference[h]-d[h]-r.floating[p],le=d[h]-r.reference[h],G=yield null==a.getOffsetParent?void 0:a.getOffsetParent(l);let pe=G?G[H]:0;(!pe||!(yield null==a.isElement?void 0:a.isElement(G)))&&(pe=s.floating[H]||r.floating[p]);const _e=oe/2-le/2,be=pe/2-g[p]/2-1,Be=ku(u[T],be),Fe=ku(u[D],be),Qe=Be,Re=pe-g[p]-Fe,Xe=pe/2-g[p]/2+_e,ct=WC(Qe,Xe,Re),Se=null!=sb(o)&&Xe!=ct&&r.reference[p]/2-(Xe{o&&D.addEventListener("scroll",e,{passive:!0}),r&&D.addEventListener("resize",e)});const d=c&&s?function hte(t,n){let i,e=null;const o=ns(t);function r(){clearTimeout(i),e&&e.disconnect(),e=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),r();const{left:c,top:u,width:d,height:h}=t.getBoundingClientRect();if(s||n(),!d||!h)return;const H={rootMargin:-ab(u)+"px "+-ab(o.clientWidth-(c+d))+"px "+-ab(o.clientHeight-(u+h))+"px "+-ab(c)+"px",threshold:zl(0,ku(1,l))||1};let oe=!0;function le(G){const pe=G[0].intersectionRatio;if(pe!==l){if(!oe)return a();pe?a(!1,pe):i=setTimeout(()=>{a(!1,1e-7)},100)}oe=!1}try{e=new IntersectionObserver(le,mo({},H,{root:o.ownerDocument}))}catch{e=new IntersectionObserver(le,H)}e.observe(t)}(!0),r}(c,e):null;let h=-1,p=null;a&&(p=new ResizeObserver(D=>{let[H]=D;H&&H.target===c&&p&&(p.unobserve(n),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{p&&p.observe(n)})),e()}),c&&!l&&p.observe(c),p.observe(n));let g,b=l?Vl(t):null;return l&&function T(){const D=Vl(t);b&&(D.x!==b.x||D.y!==b.y||D.width!==b.width||D.height!==b.height)&&e(),b=D,g=requestAnimationFrame(T)}(),e(),()=>{u.forEach(D=>{o&&D.removeEventListener("scroll",e),r&&D.removeEventListener("resize",e)}),d&&d(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(g)}}(e,t.el,()=>{t.el?function yte(t,n,e,i){((t,n,e)=>{const i=new Map,o=mo({platform:dte},e),r=mo({},o.platform,{_c:i});return Zee(t,n,mo({},o,{platform:r}))})(t,n.el,e).then(function _te(t,n){return({x:e,y:i,placement:o,middlewareData:r})=>(t.el&&(Object.assign(t.el.style,n?{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}:{position:"absolute",left:`${e}px`,top:`${i}px`}),t.el.dataset.popperPlacement=o,function vte(t,n){const e=t.querySelector(".shepherd-arrow");if(e&&n.arrow){const{x:i,y:o}=n.arrow;Object.assign(e.style,{left:null!=i?`${i}px`:"",top:null!=o?`${o}px`:""})}}(t.el,r)),t)}(n,i)).then(o=>new Promise(r=>{setTimeout(()=>r(o),300)})).then(o=>{o&&o.el&&o.el.focus({preventScroll:!0})})}(e,t,i,o):t.cleanup()}),t.target=n.element,i}function ur(){}function xte(t,n){for(const e in n)t[e]=n[e];return t}function yN(t){return t()}function _N(){return Object.create(null)}function yf(t){t.forEach(yN)}function o1(t){return"function"==typeof t}function os(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function Pu(t,n){t.appendChild(n)}function Ur(t,n,e){t.insertBefore(n,e||null)}function Tr(t){t.parentNode&&t.parentNode.removeChild(t)}function Da(t){return document.createElement(t)}function vN(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function wN(t){return document.createTextNode(t)}function pb(){return wN(" ")}function gb(t,n,e,i){return t.addEventListener(n,e,i),()=>t.removeEventListener(n,e,i)}function ei(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}const Tte=["width","height"];function CN(t,n){const e=Object.getOwnPropertyDescriptors(t.__proto__);for(const i in n)null==n[i]?t.removeAttribute(i):"style"===i?t.style.cssText=n[i]:"__value"===i?t.value=t[i]=n[i]:e[i]&&e[i].set&&-1===Tte.indexOf(i)?t[i]=n[i]:ei(t,i,n[i])}function Nu(t,n,e){t.classList[e?"add":"remove"](n)}let _f;function vf(t){_f=t}function xN(){if(!_f)throw new Error("Function called outside component initialization");return _f}function r1(t){xN().$$.after_update.push(t)}const Fu=[],Lu=[];let ju=[];const SN=[],kte=Promise.resolve();let a1=!1;function s1(t){ju.push(t)}const l1=new Set;let Bu=0;function DN(){if(0!==Bu)return;const t=_f;do{try{for(;Bu{mb.delete(t),i&&(e&&t.d(1),i())}),t.o(n)}else i&&i()}function Wl(t){t&&t.c()}function Zs(t,n,e,i){const{fragment:o,after_update:r}=t.$$;o&&o.m(n,e),i||s1(()=>{const a=t.$$.on_mount.map(yN).filter(o1);t.$$.on_destroy?t.$$.on_destroy.push(...a):yf(a),t.$$.on_mount=[]}),r.forEach(s1)}function Gs(t,n){const e=t.$$;null!==e.fragment&&(function Rte(t){const n=[],e=[];ju.forEach(i=>-1===t.indexOf(i)?n.push(i):e.push(i)),e.forEach(i=>i()),ju=n}(e.after_update),yf(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function rs(t,n,e,i,o,r,a,s=[-1]){const l=_f;vf(t);const c=t.$$={fragment:null,ctx:[],props:r,update:ur,not_equal:o,bound:_N(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(l?l.$$.context:[])),callbacks:_N(),dirty:s,skip_bound:!1,root:n.target||l.$$.root};a&&a(c.root);let u=!1;if(c.ctx=e?e(t,n.props||{},(d,h,...p)=>{const g=p.length?p[0]:h;return c.ctx&&o(c.ctx[d],c.ctx[d]=g)&&(!c.skip_bound&&c.bound[d]&&c.bound[d](g),u&&function Nte(t,n){-1===t.$$.dirty[0]&&(Fu.push(t),function Ite(){a1||(a1=!0,kte.then(DN))}(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<{const o=i.indexOf(e);-1!==o&&i.splice(o,1)}}$set(n){this.$$set&&!function Ste(t){return 0===Object.keys(t).length}(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}function Fte(t){let n,e,i,o,r;return{c(){n=Da("button"),ei(n,"aria-label",e=t[3]?t[3]:null),ei(n,"class",i=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`),n.disabled=t[2],ei(n,"tabindex","0")},m(a,s){Ur(a,n,s),n.innerHTML=t[5],o||(r=gb(n,"click",function(){o1(t[0])&&t[0].apply(this,arguments)}),o=!0)},p(a,[s]){t=a,32&s&&(n.innerHTML=t[5]),8&s&&e!==(e=t[3]?t[3]:null)&&ei(n,"aria-label",e),18&s&&i!==(i=`${t[1]||""} shepherd-button ${t[4]?"shepherd-button-secondary":""}`)&&ei(n,"class",i),4&s&&(n.disabled=t[2])},i:ur,o:ur,d(a){a&&Tr(n),o=!1,r()}}}function Lte(t,n,e){let r,a,s,l,c,u,{config:i,step:o}=n;function d(h){return Yl(h)?h=h.call(o):h}return t.$$set=h=>{"config"in h&&e(6,i=h.config),"step"in h&&e(7,o=h.step)},t.$$.update=()=>{192&t.$$.dirty&&(e(0,r=i.action?i.action.bind(o.tour):null),e(1,a=i.classes),e(2,s=!!i.disabled&&d(i.disabled)),e(3,l=i.label?d(i.label):null),e(4,c=i.secondary),e(5,u=i.text?d(i.text):null))},[r,a,s,l,c,u,i,o]}class jte extends as{constructor(n){super(),rs(this,n,Lte,Fte,os,{config:6,step:7})}}function EN(t,n,e){const i=t.slice();return i[2]=n[e],i}function TN(t){let n,e,i=t[1],o=[];for(let a=0;aki(o[a],1,1,()=>{o[a]=null});return{c(){for(let a=0;a{i=null}),Ul())},i(o){e||(jn(i),e=!0)},o(o){ki(i),e=!1},d(o){o&&Tr(n),i&&i.d()}}}function Hte(t,n,e){let i,{step:o}=n;return t.$$set=r=>{"step"in r&&e(0,o=r.step)},t.$$.update=()=>{1&t.$$.dirty&&e(1,i=o.options.buttons)},[o,i]}class Yte extends as{constructor(n){super(),rs(this,n,Hte,Bte,os,{step:0})}}function zte(t){let n,e,i,o,r;return{c(){n=Da("button"),e=Da("span"),e.textContent="\xd7",ei(e,"aria-hidden","true"),ei(n,"aria-label",i=t[0].label?t[0].label:"Close Tour"),ei(n,"class","shepherd-cancel-icon"),ei(n,"type","button")},m(a,s){Ur(a,n,s),Pu(n,e),o||(r=gb(n,"click",t[1]),o=!0)},p(a,[s]){1&s&&i!==(i=a[0].label?a[0].label:"Close Tour")&&ei(n,"aria-label",i)},i:ur,o:ur,d(a){a&&Tr(n),o=!1,r()}}}function $te(t,n,e){let{cancelIcon:i,step:o}=n;return t.$$set=a=>{"cancelIcon"in a&&e(0,i=a.cancelIcon),"step"in a&&e(2,o=a.step)},[i,a=>{a.preventDefault(),o.cancel()},o]}class Vte extends as{constructor(n){super(),rs(this,n,$te,zte,os,{cancelIcon:0,step:2})}}function Zte(t){let n;return{c(){n=Da("h3"),ei(n,"id",t[1]),ei(n,"class","shepherd-title")},m(e,i){Ur(e,n,i),t[3](n)},p(e,[i]){2&i&&ei(n,"id",e[1])},i:ur,o:ur,d(e){e&&Tr(n),t[3](null)}}}function Gte(t,n,e){let{labelId:i,element:o,title:r}=n;return r1(()=>{Yl(r)&&e(2,r=r()),e(0,o.innerHTML=r,o)}),t.$$set=s=>{"labelId"in s&&e(1,i=s.labelId),"element"in s&&e(0,o=s.element),"title"in s&&e(2,r=s.title)},[o,i,r,function a(s){Lu[s?"unshift":"push"](()=>{o=s,e(0,o)})}]}class Ute extends as{constructor(n){super(),rs(this,n,Gte,Zte,os,{labelId:1,element:0,title:2})}}function AN(t){let n,e;return n=new Ute({props:{labelId:t[0],title:t[2]}}),{c(){Wl(n.$$.fragment)},m(i,o){Zs(n,i,o),e=!0},p(i,o){const r={};1&o&&(r.labelId=i[0]),4&o&&(r.title=i[2]),n.$set(r)},i(i){e||(jn(n.$$.fragment,i),e=!0)},o(i){ki(n.$$.fragment,i),e=!1},d(i){Gs(n,i)}}}function kN(t){let n,e;return n=new Vte({props:{cancelIcon:t[3],step:t[1]}}),{c(){Wl(n.$$.fragment)},m(i,o){Zs(n,i,o),e=!0},p(i,o){const r={};8&o&&(r.cancelIcon=i[3]),2&o&&(r.step=i[1]),n.$set(r)},i(i){e||(jn(n.$$.fragment,i),e=!0)},o(i){ki(n.$$.fragment,i),e=!1},d(i){Gs(n,i)}}}function Wte(t){let n,e,i,o=t[2]&&AN(t),r=t[3]&&t[3].enabled&&kN(t);return{c(){n=Da("header"),o&&o.c(),e=pb(),r&&r.c(),ei(n,"class","shepherd-header")},m(a,s){Ur(a,n,s),o&&o.m(n,null),Pu(n,e),r&&r.m(n,null),i=!0},p(a,[s]){a[2]?o?(o.p(a,s),4&s&&jn(o,1)):(o=AN(a),o.c(),jn(o,1),o.m(n,e)):o&&(Gl(),ki(o,1,1,()=>{o=null}),Ul()),a[3]&&a[3].enabled?r?(r.p(a,s),8&s&&jn(r,1)):(r=kN(a),r.c(),jn(r,1),r.m(n,null)):r&&(Gl(),ki(r,1,1,()=>{r=null}),Ul())},i(a){i||(jn(o),jn(r),i=!0)},o(a){ki(o),ki(r),i=!1},d(a){a&&Tr(n),o&&o.d(),r&&r.d()}}}function Xte(t,n,e){let r,a,{labelId:i,step:o}=n;return t.$$set=s=>{"labelId"in s&&e(0,i=s.labelId),"step"in s&&e(1,o=s.step)},t.$$.update=()=>{2&t.$$.dirty&&(e(2,r=o.options.title),e(3,a=o.options.cancelIcon))},[i,o,r,a]}class Jte extends as{constructor(n){super(),rs(this,n,Xte,Wte,os,{labelId:0,step:1})}}function Qte(t){let n;return{c(){n=Da("div"),ei(n,"class","shepherd-text"),ei(n,"id",t[1])},m(e,i){Ur(e,n,i),t[3](n)},p(e,[i]){2&i&&ei(n,"id",e[1])},i:ur,o:ur,d(e){e&&Tr(n),t[3](null)}}}function Kte(t,n,e){let{descriptionId:i,element:o,step:r}=n;return r1(()=>{let{text:s}=r.options;Yl(s)&&(s=s.call(r)),ZC(s)?o.appendChild(s):e(0,o.innerHTML=s,o)}),t.$$set=s=>{"descriptionId"in s&&e(1,i=s.descriptionId),"element"in s&&e(0,o=s.element),"step"in s&&e(2,r=s.step)},[o,i,r,function a(s){Lu[s?"unshift":"push"](()=>{o=s,e(0,o)})}]}class qte extends as{constructor(n){super(),rs(this,n,Kte,Qte,os,{descriptionId:1,element:0,step:2})}}function IN(t){let n,e;return n=new Jte({props:{labelId:t[1],step:t[2]}}),{c(){Wl(n.$$.fragment)},m(i,o){Zs(n,i,o),e=!0},p(i,o){const r={};2&o&&(r.labelId=i[1]),4&o&&(r.step=i[2]),n.$set(r)},i(i){e||(jn(n.$$.fragment,i),e=!0)},o(i){ki(n.$$.fragment,i),e=!1},d(i){Gs(n,i)}}}function ON(t){let n,e;return n=new qte({props:{descriptionId:t[0],step:t[2]}}),{c(){Wl(n.$$.fragment)},m(i,o){Zs(n,i,o),e=!0},p(i,o){const r={};1&o&&(r.descriptionId=i[0]),4&o&&(r.step=i[2]),n.$set(r)},i(i){e||(jn(n.$$.fragment,i),e=!0)},o(i){ki(n.$$.fragment,i),e=!1},d(i){Gs(n,i)}}}function RN(t){let n,e;return n=new Yte({props:{step:t[2]}}),{c(){Wl(n.$$.fragment)},m(i,o){Zs(n,i,o),e=!0},p(i,o){const r={};4&o&&(r.step=i[2]),n.$set(r)},i(i){e||(jn(n.$$.fragment,i),e=!0)},o(i){ki(n.$$.fragment,i),e=!1},d(i){Gs(n,i)}}}function ene(t){let n,i,r,s,e=!go(t[2].options.title)||t[2].options.cancelIcon&&t[2].options.cancelIcon.enabled,o=!go(t[2].options.text),a=Array.isArray(t[2].options.buttons)&&t[2].options.buttons.length,l=e&&IN(t),c=o&&ON(t),u=a&&RN(t);return{c(){n=Da("div"),l&&l.c(),i=pb(),c&&c.c(),r=pb(),u&&u.c(),ei(n,"class","shepherd-content")},m(d,h){Ur(d,n,h),l&&l.m(n,null),Pu(n,i),c&&c.m(n,null),Pu(n,r),u&&u.m(n,null),s=!0},p(d,[h]){4&h&&(e=!go(d[2].options.title)||d[2].options.cancelIcon&&d[2].options.cancelIcon.enabled),e?l?(l.p(d,h),4&h&&jn(l,1)):(l=IN(d),l.c(),jn(l,1),l.m(n,i)):l&&(Gl(),ki(l,1,1,()=>{l=null}),Ul()),4&h&&(o=!go(d[2].options.text)),o?c?(c.p(d,h),4&h&&jn(c,1)):(c=ON(d),c.c(),jn(c,1),c.m(n,r)):c&&(Gl(),ki(c,1,1,()=>{c=null}),Ul()),4&h&&(a=Array.isArray(d[2].options.buttons)&&d[2].options.buttons.length),a?u?(u.p(d,h),4&h&&jn(u,1)):(u=RN(d),u.c(),jn(u,1),u.m(n,null)):u&&(Gl(),ki(u,1,1,()=>{u=null}),Ul())},i(d){s||(jn(l),jn(c),jn(u),s=!0)},o(d){ki(l),ki(c),ki(u),s=!1},d(d){d&&Tr(n),l&&l.d(),c&&c.d(),u&&u.d()}}}function tne(t,n,e){let{descriptionId:i,labelId:o,step:r}=n;return t.$$set=a=>{"descriptionId"in a&&e(0,i=a.descriptionId),"labelId"in a&&e(1,o=a.labelId),"step"in a&&e(2,r=a.step)},[i,o,r]}class nne extends as{constructor(n){super(),rs(this,n,tne,ene,os,{descriptionId:0,labelId:1,step:2})}}function PN(t){let n;return{c(){n=Da("div"),ei(n,"class","shepherd-arrow"),ei(n,"data-popper-arrow","")},m(e,i){Ur(e,n,i)},d(e){e&&Tr(n)}}}function ine(t){let n,e,i,o,r,a,s,l,c=t[4].options.arrow&&t[4].options.attachTo&&t[4].options.attachTo.element&&t[4].options.attachTo.on&&PN();i=new nne({props:{descriptionId:t[2],labelId:t[3],step:t[4]}});let u=[{"aria-describedby":o=go(t[4].options.text)?null:t[2]},{"aria-labelledby":r=t[4].options.title?t[3]:null},t[1],{role:"dialog"},{tabindex:"0"}],d={};for(let h=0;h!!n.length)}function lne(t,n,e){let h,p,g,{classPrefix:i,element:o,descriptionId:r,firstFocusableElement:a,focusableElements:s,labelId:l,lastFocusableElement:c,step:u,dataStepId:d}=n;return function Ate(t){xN().$$.on_mount.push(t)}(()=>{e(1,d={[`data-${i}shepherd-step-id`]:u.id}),e(9,s=o.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),e(8,a=s[0]),e(10,c=s[s.length-1])}),r1(()=>{g!==u.options.classes&&function T(){(function D(G){if(mf(G)){const pe=NN(G);pe.length&&o.classList.remove(...pe)}})(g),g=u.options.classes,function H(G){if(mf(G)){const pe=NN(G);pe.length&&o.classList.add(...pe)}}(g)}()}),t.$$set=G=>{"classPrefix"in G&&e(11,i=G.classPrefix),"element"in G&&e(0,o=G.element),"descriptionId"in G&&e(2,r=G.descriptionId),"firstFocusableElement"in G&&e(8,a=G.firstFocusableElement),"focusableElements"in G&&e(9,s=G.focusableElements),"labelId"in G&&e(3,l=G.labelId),"lastFocusableElement"in G&&e(10,c=G.lastFocusableElement),"step"in G&&e(4,u=G.step),"dataStepId"in G&&e(1,d=G.dataStepId)},t.$$.update=()=>{16&t.$$.dirty&&(e(5,h=u.options&&u.options.cancelIcon&&u.options.cancelIcon.enabled),e(6,p=u.options&&u.options.title))},[o,d,r,l,u,h,p,G=>{const{tour:pe}=u;switch(G.keyCode){case 9:if(0===s.length){G.preventDefault();break}G.shiftKey?(document.activeElement===a||document.activeElement.classList.contains("shepherd-element"))&&(G.preventDefault(),c.focus()):document.activeElement===c&&(G.preventDefault(),a.focus());break;case 27:pe.options.exitOnEsc&&(G.stopPropagation(),u.cancel());break;case 37:pe.options.keyboardNavigation&&(G.stopPropagation(),pe.back());break;case 39:pe.options.keyboardNavigation&&(G.stopPropagation(),pe.next())}},a,s,c,i,()=>o,function le(G){Lu[G?"unshift":"push"](()=>{o=G,e(0,o)})}]}class cne extends as{constructor(n){super(),rs(this,n,lne,ine,os,{classPrefix:11,element:0,descriptionId:2,firstFocusableElement:8,focusableElements:9,labelId:3,lastFocusableElement:10,step:4,dataStepId:1,getElement:12})}get getElement(){return this.$$.ctx[12]}}class c1 extends GC{constructor(n,e={}){return super(n,e),this.tour=n,this.classPrefix=this.tour.options?nN(this.tour.options.classPrefix):"",this.styles=n.styles,this._resolvedAttachTo=null,tN(this),this._setOptions(e),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){(function bte(t){t.cleanup&&t.cleanup(),t.cleanup=null})(this),ZC(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){this.tour.modal.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=function Nee(t){const n=t.options.attachTo||{},e=Object.assign({},n);if(Yl(e.element)&&(e.element=e.element.call(t)),mf(e.element)){try{e.element=document.querySelector(e.element)}catch{}e.element||console.error(`The element for this Shepherd step was not found ${n.element}`)}return e}(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return null===this._resolvedAttachTo?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!(!this.el||this.el.hidden)}show(){return Yl(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(n){Object.assign(this.options,n),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){return this.shepherdElementComponent=new cne({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:`${this.id}-description`,labelId:`${this.id}-label`,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(n){const{element:e}=this._getResolvedAttachToOptions();Yl(this.options.scrollToHandler)?this.options.scrollToHandler(e):function Oee(t){return t instanceof Element}(e)&&"function"==typeof e.scrollIntoView&&e.scrollIntoView(n)}_getClassOptions(n){const e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,o=e&&e.classes?e.classes:"",r=[...(n.classes?n.classes:"").split(" "),...o.split(" ")],a=new Set(r);return Array.from(a).join(" ").trim()}_setOptions(n={}){let e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;e=VC({},e||{}),this.options=Object.assign({arrow:!0},e,n,function mte(t,n){return{floatingUIOptions:VC(t.floatingUIOptions||{},n.floatingUIOptions||{})}}(e,n));const{when:i}=this.options;this.options.classes=this._getClassOptions(n),this.destroy(),this.id=this.options.id||`step-${UC()}`,i&&Object.keys(i).forEach(o=>{this.on(o,i[o],this)})}_setupElements(){go(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&function Pee(t){const{event:n,selector:e}=t.options.advanceOn||{};if(!n)return console.error("advanceOn was defined, but no event name was passed.");{const i=function Ree(t,n){return e=>{if(n.isOpen()){const i=n.el&&e.currentTarget===n.el;(!go(t)&&e.currentTarget.matches(t)||i)&&n.tour.next()}}}(e,t);let o;try{o=document.querySelector(e)}catch{}if(!go(e)&&!o)return console.error(`No element was found for the selector supplied to advanceOn: ${e}`);o?(o.addEventListener(n,i),t.on("destroy",()=>o.removeEventListener(n,i))):(document.body.addEventListener(n,i,!0),t.on("destroy",()=>document.body.removeEventListener(n,i,!0)))}}(this),gte(this)}_show(){this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour._setupModal(),this.tour.modal.setupForStep(this),this._styleTargetElementForStep(this),this.el.hidden=!1,this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el.hidden=!1;const n=this.shepherdElementComponent.getElement(),e=this.target||document.body;e.classList.add(`${this.classPrefix}shepherd-enabled`),e.classList.add(`${this.classPrefix}shepherd-target`),n.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(n){const e=n.target;e&&(n.options.highlightClass&&e.classList.add(n.options.highlightClass),e.classList.remove("shepherd-target-click-disabled"),!1===n.options.canClickTarget&&e.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const n=this.target||document.body;this.options.highlightClass&&n.classList.remove(this.options.highlightClass),n.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}}function hne(t){let n,e,i,o,r;return{c(){n=vN("svg"),e=vN("path"),ei(e,"d",t[2]),ei(n,"class",i=(t[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")},m(a,s){Ur(a,n,s),Pu(n,e),t[11](n),o||(r=gb(n,"touchmove",t[3]),o=!0)},p(a,[s]){4&s&&ei(e,"d",a[2]),2&s&&i!==(i=(a[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")&&ei(n,"class",i)},i:ur,o:ur,d(a){a&&Tr(n),t[11](null),o=!1,r()}}}function FN(t){if(!t)return null;const e=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return"hidden"!==e&&"visible"!==e&&t.scrollHeight>=t.clientHeight?t:FN(t.parentElement)}function pne(t,n,e){let{element:i,openingProperties:o}=n;UC();let a,s,r=!1;function c(){e(4,o={width:0,height:0,x:0,y:0,r:0})}function u(){e(1,r=!1),D()}function d(le=0,G=0,pe,_e){if(_e){const{y:be,height:Be}=function fne(t,n){const e=t.getBoundingClientRect();let i=e.y||e.top,o=e.bottom||i+e.height;if(n){const a=n.getBoundingClientRect(),s=a.y||a.top,l=a.bottom||s+a.height;i=Math.max(i,s),o=Math.min(o,l)}return{y:i,height:Math.max(o-i,0)}}(_e,pe),{x:Fe,width:Qe,left:Re}=_e.getBoundingClientRect();e(4,o={width:Qe+2*le,height:Be+2*le,x:(Fe||Re)-le,y:be-le,r:G})}else c()}function p(){e(1,r=!0)}c();const g=le=>{le.preventDefault()};function D(){a&&(cancelAnimationFrame(a),a=void 0),window.removeEventListener("touchmove",g,{passive:!1})}return t.$$set=le=>{"element"in le&&e(0,i=le.element),"openingProperties"in le&&e(4,o=le.openingProperties)},t.$$.update=()=>{16&t.$$.dirty&&e(2,s=function dne({width:t,height:n,x:e=0,y:i=0,r:o=0}){const{innerWidth:r,innerHeight:a}=window,{topLeft:s=0,topRight:l=0,bottomRight:c=0,bottomLeft:u=0}="number"==typeof o?{topLeft:o,topRight:o,bottomRight:o,bottomLeft:o}:o;return`M${r},${a}H0V0H${r}V${a}ZM${e+s},${i}a${s},${s},0,0,0-${s},${s}V${n+i-u}a${u},${u},0,0,0,${u},${u}H${t+e-c}a${c},${c},0,0,0,${c}-${c}V${i+l}a${l},${l},0,0,0-${l}-${l}Z`}(o))},[i,r,s,le=>{le.stopPropagation()},o,()=>i,c,u,d,function h(le){D(),le.tour.options.useModalOverlay?(function H(le){const{modalOverlayOpeningPadding:G,modalOverlayOpeningRadius:pe}=le.options,_e=FN(le.target),be=()=>{a=void 0,d(G,pe,_e,le.target),a=requestAnimationFrame(be)};be(),function T(){window.addEventListener("touchmove",g,{passive:!1})}()}(le),p()):u()},p,function oe(le){Lu[le?"unshift":"push"](()=>{i=le,e(0,i)})}]}class gne extends as{constructor(n){super(),rs(this,n,pne,hne,os,{element:0,openingProperties:4,getElement:5,closeModalOpening:6,hide:7,positionModal:8,setupForStep:9,show:10})}get getElement(){return this.$$.ctx[5]}get closeModalOpening(){return this.$$.ctx[6]}get hide(){return this.$$.ctx[7]}get positionModal(){return this.$$.ctx[8]}get setupForStep(){return this.$$.ctx[9]}get show(){return this.$$.ctx[10]}}const Xl=new GC,bne=typeof window>"u";class LN{constructor(){}}function _ne(t){const{classes:n,disabled:e,label:i,secondary:o,type:r,text:a}=t;if(!r)return t;if(-1===["back","cancel","next"].indexOf(r))throw new Error("'type' property must be one of 'back', 'cancel', or 'next'");return{action:this[r].bind(this),classes:n,disabled:e,label:i,secondary:o,text:a}}Object.assign(Xl,bne?{Tour:LN,Step:LN}:{Tour:class mne extends GC{constructor(n={}){return super(n),tN(this),this.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},n),this.classPrefix=nN(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(o=>{(r=>{this.on(r,a=>{(a=a||{}).tour=this,Xl.trigger(r,a)})})(o)}),this._setTourID(),this}addStep(n,e){let i=n;return i instanceof c1?i.tour=this:i=new c1(this,i),go(e)?this.steps.push(i):this.steps.splice(e,0,i),i}addSteps(n){return Array.isArray(n)&&n.forEach(e=>{this.addStep(e)}),this}back(){const n=this.steps.indexOf(this.currentStep);this.show(n-1,!1)}cancel(){var n=this;return(0,y.Z)(function*(){if(n.options.confirmCancel){const i=n.options.confirmCancelMessage||"Are you sure you want to stop the tour?";("function"==typeof n.options.confirmCancel?yield n.options.confirmCancel():window.confirm(i))&&n._done("cancel")}else n._done("cancel")})()}complete(){this._done("complete")}getById(n){return this.steps.find(e=>e.id===n)}getCurrentStep(){return this.currentStep}hide(){const n=this.getCurrentStep();if(n)return n.hide()}isActive(){return Xl.activeTour===this}next(){const n=this.steps.indexOf(this.currentStep);n===this.steps.length-1?this.complete():this.show(n+1,!0)}removeStep(n){const e=this.getCurrentStep();this.steps.some((i,o)=>{if(i.id===n)return i.isOpen()&&i.hide(),i.destroy(),this.steps.splice(o,1),!0}),e&&e.id===n&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(n=0,e=!0){const i=mf(n)?this.getById(n):this.steps[n];i&&(this._updateStateBeforeShow(),Yl(i.options.showOn)&&!i.options.showOn()?this._skipStep(i,e):(this.trigger("show",{step:i,previous:this.currentStep}),this.currentStep=i,i.show()))}start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this._setupModal(),this._setupActiveTour(),this.next()}_done(n){const e=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(i=>i.destroy()),function une(t){if(t){const{steps:n}=t;n.forEach(e=>{e.options&&!1===e.options.canClickTarget&&e.options.attachTo&&e.target instanceof HTMLElement&&e.target.classList.remove("shepherd-target-click-disabled")})}}(this),this.trigger(n,{index:e}),Xl.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),("cancel"===n||"complete"===n)&&this.modal){const i=document.querySelector(".shepherd-modal-overlay-container");i&&i.remove()}ZC(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),Xl.activeTour=this}_setupModal(){this.modal=new gne({target:this.options.modalContainer||document.body,props:{classPrefix:this.classPrefix,styles:this.styles}})}_skipStep(n,e){const i=this.steps.indexOf(n);i===this.steps.length-1?this.complete():this.show(e?i+1:i-1,e)}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(){this.id=`${this.options.tourName||"tour"}--${UC()}`}},Step:c1});let jN=(()=>{class t{constructor(){this.confirmCancel=!1,this.defaultStepOptions={},this.errorTitle=null,this.isActive=!1,this.keyboardNavigation=!0,this.modal=!1,this.requiredElements=[],this.tourName=void 0}back(){this.tourObject.back()}cancel(){this.tourObject.cancel()}complete(){this.tourObject.complete()}hide(){this.tourObject.hide()}next(){this.tourObject.next()}show(e){this.tourObject.show(e)}start(){this.isActive=!0,this.tourObject.start()}onTourFinish(e){this.isActive=!1}addSteps(e){this._initialize();const i=this.tourObject;if(e&&Array.isArray(e)&&0!==e.length){if(!this.requiredElementsPresent())return void i.addStep({buttons:[{text:"Exit",action:i.cancel}],id:"error",title:this.errorTitle,text:[this.messageForUser]});e.forEach(o=>{o.buttons&&(o.buttons=o.buttons.map(_ne.bind(this),this)),i.addStep(o)})}}requiredElementsPresent(){let e=!0;return this.requiredElements.forEach(i=>{const o=document.querySelector(i.selector);e&&(!o||function yne(t){return 0===t.offsetWidth&&0===t.offsetHeight}(o))&&(e=!1,this.errorTitle=i.title,this.messageForUser=i.message)}),e}_initialize(){const e=new Xl.Tour({confirmCancel:this.confirmCancel,confirmCancelMessage:this.confirmCancelMessage,defaultStepOptions:this.defaultStepOptions,keyboardNavigation:this.keyboardNavigation,tourName:this.tourName,useModalOverlay:this.modal});e.on("complete",this.onTourFinish.bind(this,"complete")),e.on("cancel",this.onTourFinish.bind(this,"cancel")),this.tourObject=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var t;O(7850);const wne=(t="file:///home/runner/work/Studio-Web/Studio-Web/node_modules/soundswallower/soundswallower.web.js",function(e={}){var i,o;(e=typeof e<"u"?e:{}).ready=new Promise(function(xe,fe){i=xe,o=fe});var b,r=Object.assign({},e),s="./this.program",l=(xe,fe)=>{throw fe},d="";typeof document<"u"&&document.currentScript&&(d=document.currentScript.src),t&&(d=t),d=0!==d.indexOf("blob:")?d.substr(0,d.replace(/[?#].*/,"").lastIndexOf("/")+1):"";var oe,D=e.print||console.log.bind(console),H=e.printErr||console.warn.bind(console);Object.assign(e,r),r=null,e.thisProgram&&(s=e.thisProgram),e.quit&&(l=e.quit),e.wasmBinary&&(oe=e.wasmBinary);var le=e.noExitRuntime||!0;"object"!=typeof WebAssembly&&Wn("no native wasm support detected");var G,Xe,ct,At,pe=!1,be=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Be(xe,fe,we){for(var Oe=fe+we,st=fe;xe[st]&&!(st>=Oe);)++st;if(st-fe>16&&xe.buffer&&be)return be.decode(xe.subarray(fe,st));for(var mt="";fe>10,56320|1023&Zi)}}else mt+=String.fromCharCode((31&Dt)<<6|Rt)}else mt+=String.fromCharCode(Dt)}return mt}function Fe(xe,fe){return xe?Be(ct,xe,fe):""}function on(){var xe=G.buffer;e.HEAP_DATA_VIEW=At=new DataView(xe),e.HEAP8=Xe=new Int8Array(xe),e.HEAP16=new Int16Array(xe),e.HEAP32=new Int32Array(xe),e.HEAPU8=ct=new Uint8Array(xe),e.HEAPU16=new Uint16Array(xe),e.HEAPU32=new Uint32Array(xe),e.HEAPF32=new Float32Array(xe),e.HEAPF64=new Float64Array(xe)}var sn=[],ln=[],Vo=[],ft=0,jt=null,ai=null;function Wn(xe){e.onAbort&&e.onAbort(xe),H(xe="Aborted("+xe+")"),pe=!0,xe+=". Build with -sASSERTIONS for more info.";var fe=new WebAssembly.RuntimeError(xe);throw o(fe),fe}var fr;function Qr(xe){return xe.startsWith("data:application/octet-stream;base64,")}function Xu(xe){try{if(xe==fr&&oe)return new Uint8Array(oe);if(b)return b(xe);throw"both async and sync fetching of the wasm failed"}catch(fe){Wn(fe)}}function ny(xe,fe,we){return function wx(xe){return oe||"function"!=typeof fetch?Promise.resolve().then(function(){return Xu(xe)}):fetch(xe,{credentials:"same-origin"}).then(function(fe){if(!fe.ok)throw"failed to load wasm binary file at '"+xe+"'";return fe.arrayBuffer()}).catch(function(){return Xu(xe)})}(xe).then(function(Oe){return WebAssembly.instantiate(Oe,fe)}).then(function(Oe){return Oe}).then(we,function(Oe){H("failed to asynchronously prepare wasm: "+Oe),Wn(Oe)})}function Phe(xe){this.name="ExitStatus",this.message="Program terminated with exit("+xe+")",this.status=xe}function Cx(xe){return At.getInt32(xe,!0)}function xx(xe){return At.getUint32(xe,!0)}function iy(xe,fe){At.setUint32(xe,fe,!0)}function kr(xe){var fe=function Re(xe){for(var fe=0,we=0;we=55296&&Oe<=57343?(fe+=4,++we):fe+=3}return fe}(xe)+1,we=Vj(fe);return we&&function Qe(xe,fe,we,Oe){if(!(Oe>0))return 0;for(var st=we,mt=we+Oe-1,Dt=0;Dt=55296&&Rt<=57343&&(Rt=65536+((1023&Rt)<<10)|1023&xe.charCodeAt(++Dt)),Rt<=127){if(we>=mt)break;fe[we++]=Rt}else if(Rt<=2047){if(we+1>=mt)break;fe[we++]=192|Rt>>6,fe[we++]=128|63&Rt}else if(Rt<=65535){if(we+2>=mt)break;fe[we++]=224|Rt>>12,fe[we++]=128|Rt>>6&63,fe[we++]=128|63&Rt}else{if(we+3>=mt)break;fe[we++]=240|Rt>>18,fe[we++]=128|Rt>>12&63,fe[we++]=128|Rt>>6&63,fe[we++]=128|63&Rt}}fe[we]=0}(xe,Xe,we,fe),we}function Sx(xe){for(;xe.length>0;)xe.shift()(e)}function jf(xe,fe){Xe.set(xe,fe)}function oy(xe,fe="i8"){switch(fe.endsWith("*")&&(fe="*"),fe){case"i1":case"i8":return Xe[xe>>0];case"i16":return function Lhe(xe){return At.getInt16(xe,!0)}(2*(xe>>1));case"i32":case"i64":return Cx(4*(xe>>2));case"float":return function Nhe(xe){return At.getFloat32(xe,!0)}(4*(xe>>2));case"double":return function Fhe(xe){return At.getFloat64(xe,!0)}(8*(xe>>3));case"*":return xx(4*(xe>>2));default:Wn("invalid type for getValue: "+fe)}}e.locateFile?Qr(fr="soundswallower.web.wasm")||(fr=function h(xe){return e.locateFile?e.locateFile(xe,d):d+xe}(fr)):fr=new URL(O(3970),O.b).href;var Bf={varargs:void 0,get:function(){return Bf.varargs+=4,Cx(4*(Bf.varargs-4>>2))},getStr:function(xe){return Fe(xe)}};function Whe(xe){var fe=G.buffer;try{return G.grow(xe-fe.byteLength+65535>>>16),on(),1}catch{}}var Dx={};function Hf(){if(!Hf.strings){var fe={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:s||"./this.program"};for(var we in Dx)void 0===Dx[we]?delete fe[we]:fe[we]=Dx[we];var Oe=[];for(var we in fe)Oe.push(we+"="+fe[we]);Hf.strings=Oe}return Hf.strings}var afe=[null,[],[]];function sfe(xe,fe){var we=afe[xe];0===fe||10===fe?((1===xe?D:H)(Be(we,0)),we.length=0):we.push(fe)}var ry,cfe={d:function jhe(xe,fe,we){return Bf.varargs=we,0},g:function Bhe(xe,fe){},i:function Hhe(xe,fe,we){return Bf.varargs=we,0},r:function Yhe(xe,fe,we,Oe){},e:function zhe(xe,fe,we,Oe){Bf.varargs=Oe},f:function $he(xe,fe){},n:function Vhe(xe,fe,we,Oe,st,mt,Dt){return-52},o:function Zhe(xe,fe,we,Oe,st,mt){},j:function Ghe(){return Date.now()},m:function Uhe(){return 2147483648},l:function Xhe(xe){var zn,fe=ct.length,we=2147483648;if((xe>>>=0)>we)return!1;for(var st=1;st<=4;st*=2){var mt=fe*(1+.2/st);if(mt=Math.min(mt,xe+100663296),Whe(Math.min(we,(zn=Math.max(xe,mt))+(65536-zn%65536)%65536)))return!0}return!1},p:function Khe(xe,fe){var we=0;return Hf().forEach(function(Oe,st){var mt=fe+we;iy(4*(xe+4*st>>2),mt),function Qhe(xe,fe,we){for(var Oe=0;Oe>0]=xe.charCodeAt(Oe);we||(Xe[fe>>0]=0)}(Oe,mt),we+=Oe.length+1}),0},q:function qhe(xe,fe){var we=Hf();iy(4*(xe>>2),we.length);var Oe=0;return we.forEach(function(st){Oe+=st.length+1}),iy(4*(fe>>2),Oe),0},a:function tfe(xe,fe){!function efe(xe){(function dt(){return le})()||(e.onExit&&e.onExit(xe),pe=!0),l(xe,new Phe(xe))}(xe)},b:function ife(xe){return 52},h:function ofe(xe,fe,we,Oe){return 52},k:function rfe(xe,fe,we,Oe,st){return 70},c:function lfe(xe,fe,we,Oe){for(var st=0,mt=0;mt>2)),Rt=xx(4*(fe+4>>2));fe+=8;for(var zn=0;zn>2),st),0}},Vj=(function Rhe(){var xe={a:cfe};function fe(Oe,st){var mt=Oe.exports;return e.asm=mt,G=e.asm.s,on(),function _x(xe){ln.unshift(xe)}(e.asm.t),function Sn(xe){if(ft--,e.monitorRunDependencies&&e.monitorRunDependencies(ft),0==ft&&(null!==jt&&(clearInterval(jt),jt=null),ai)){var fe=ai;ai=null,fe()}}(),mt}if(function si(xe){ft++,e.monitorRunDependencies&&e.monitorRunDependencies(ft)}(),e.instantiateWasm)try{return e.instantiateWasm(xe,fe)}catch(Oe){H("Module.instantiateWasm callback failed with error: "+Oe),o(Oe)}(function Ohe(xe,fe,we,Oe){return xe||"function"!=typeof WebAssembly.instantiateStreaming||Qr(fe)||"function"!=typeof fetch?ny(fe,we,Oe):fetch(fe,{credentials:"same-origin"}).then(function(st){return WebAssembly.instantiateStreaming(st,we).then(Oe,function(Dt){return H("wasm streaming compile failed: "+Dt),H("falling back to ArrayBuffer instantiation"),ny(fe,we,Oe)})})})(oe,fr,xe,function we(Oe){fe(Oe.instance)}).catch(o)}(),e._fsg_set_states=function(){return(e._fsg_set_states=e.asm.u).apply(null,arguments)},e._cmd_ln_hash_iter=function(){return(e._cmd_ln_hash_iter=e.asm.v).apply(null,arguments)},e._hash_iter_key=function(){return(e._hash_iter_key=e.asm.w).apply(null,arguments)},e._set_mdef=function(){return(e._set_mdef=e.asm.x).apply(null,arguments)},e._set_tmat=function(){return(e._set_tmat=e.asm.y).apply(null,arguments)},e._load_gmm=function(){return(e._load_gmm=e.asm.z).apply(null,arguments)},e._spectrogram=function(){return(e._spectrogram=e.asm.A).apply(null,arguments)},e._config_int=function(){return(e._config_int=e.asm.B).apply(null,arguments)},e._config_str=function(){return(e._config_str=e.asm.D).apply(null,arguments)},e._config_float=function(){return(e._config_float=e.asm.E).apply(null,arguments)},e._config_free=function(){return(e._config_free=e.asm.F).apply(null,arguments)},e._ckd_free_2d=function(){return(e._ckd_free_2d=e.asm.G).apply(null,arguments)},e._acmod_reinit_feat=function(){return(e._acmod_reinit_feat=e.asm.H).apply(null,arguments)},e._s3file_free=function(){return(e._s3file_free=e.asm.I).apply(null,arguments)},e._bin_mdef_read_s3file=function(){return(e._bin_mdef_read_s3file=e.asm.J).apply(null,arguments)},e._malloc=function(){return(Vj=e._malloc=e.asm.K).apply(null,arguments)});function Zj(){function xe(){ry||(ry=!0,e.calledRun=!0,!pe&&(function ro(){Sx(ln)}(),i(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),function Ar(){if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)xe=e.postRun.shift(),Vo.unshift(xe);var xe;Sx(Vo)}()))}ft>0||(function Cn(){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)xe=e.preRun.shift(),sn.unshift(xe);var xe;Sx(sn)}(),ft>0)||(e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),xe()},1)):xe())}if(e._free=function(){return(e._free=e.asm.L).apply(null,arguments)},e._config_parse_json=function(){return(e._config_parse_json=e.asm.M).apply(null,arguments)},e._config_set_str=function(){return(e._config_set_str=e.asm.N).apply(null,arguments)},e._config_serialize_json=function(){return(e._config_serialize_json=e.asm.O).apply(null,arguments)},e._hash_table_iter_next=function(){return(e._hash_table_iter_next=e.asm.P).apply(null,arguments)},e._config_typeof=function(){return(e._config_typeof=e.asm.Q).apply(null,arguments)},e._config_set=function(){return(e._config_set=e.asm.R).apply(null,arguments)},e._config_set_int=function(){return(e._config_set_int=e.asm.S).apply(null,arguments)},e._config_set_float=function(){return(e._config_set_float=e.asm.T).apply(null,arguments)},e._decoder_init_cleanup=function(){return(e._decoder_init_cleanup=e.asm.U).apply(null,arguments)},e._decoder_init_fe=function(){return(e._decoder_init_fe=e.asm.V).apply(null,arguments)},e._decoder_init_feat_s3file=function(){return(e._decoder_init_feat_s3file=e.asm.W).apply(null,arguments)},e._decoder_init_acmod_pre=function(){return(e._decoder_init_acmod_pre=e.asm.X).apply(null,arguments)},e._decoder_init_acmod_post=function(){return(e._decoder_init_acmod_post=e.asm.Y).apply(null,arguments)},e._decoder_init_dict_s3file=function(){return(e._decoder_init_dict_s3file=e.asm.Z).apply(null,arguments)},e._decoder_set_fsg=function(){return(e._decoder_set_fsg=e.asm._).apply(null,arguments)},e._fsg_model_free=function(){return(e._fsg_model_free=e.asm.$).apply(null,arguments)},e._jsgf_get_rule=function(){return(e._jsgf_get_rule=e.asm.aa).apply(null,arguments)},e._jsgf_get_public_rule=function(){return(e._jsgf_get_public_rule=e.asm.ba).apply(null,arguments)},e._jsgf_build_fsg=function(){return(e._jsgf_build_fsg=e.asm.ca).apply(null,arguments)},e._jsgf_grammar_free=function(){return(e._jsgf_grammar_free=e.asm.da).apply(null,arguments)},e._decoder_init_grammar_s3file=function(){return(e._decoder_init_grammar_s3file=e.asm.ea).apply(null,arguments)},e._jsgf_parse_string=function(){return(e._jsgf_parse_string=e.asm.fa).apply(null,arguments)},e._decoder_create=function(){return(e._decoder_create=e.asm.ga).apply(null,arguments)},e._decoder_free=function(){return(e._decoder_free=e.asm.ha).apply(null,arguments)},e._decoder_config=function(){return(e._decoder_config=e.asm.ia).apply(null,arguments)},e._decoder_logmath=function(){return(e._decoder_logmath=e.asm.ja).apply(null,arguments)},e._decoder_fe=function(){return(e._decoder_fe=e.asm.ka).apply(null,arguments)},e._decoder_set_align_text=function(){return(e._decoder_set_align_text=e.asm.la).apply(null,arguments)},e._fsg_model_init=function(){return(e._fsg_model_init=e.asm.ma).apply(null,arguments)},e._fsg_model_word_add=function(){return(e._fsg_model_word_add=e.asm.na).apply(null,arguments)},e._fsg_model_trans_add=function(){return(e._fsg_model_trans_add=e.asm.oa).apply(null,arguments)},e._decoder_seg_iter=function(){return(e._decoder_seg_iter=e.asm.pa).apply(null,arguments)},e._seg_iter_next=function(){return(e._seg_iter_next=e.asm.qa).apply(null,arguments)},e._decoder_add_word=function(){return(e._decoder_add_word=e.asm.ra).apply(null,arguments)},e._decoder_lookup_word=function(){return(e._decoder_lookup_word=e.asm.sa).apply(null,arguments)},e._decoder_start_utt=function(){return(e._decoder_start_utt=e.asm.ta).apply(null,arguments)},e._decoder_process_float32=function(){return(e._decoder_process_float32=e.asm.ua).apply(null,arguments)},e._decoder_end_utt=function(){return(e._decoder_end_utt=e.asm.va).apply(null,arguments)},e._decoder_hyp=function(){return(e._decoder_hyp=e.asm.wa).apply(null,arguments)},e._seg_iter_word=function(){return(e._seg_iter_word=e.asm.xa).apply(null,arguments)},e._seg_iter_frames=function(){return(e._seg_iter_frames=e.asm.ya).apply(null,arguments)},e._decoder_result_json=function(){return(e._decoder_result_json=e.asm.za).apply(null,arguments)},e._fsg_model_null_trans_add=function(){return(e._fsg_model_null_trans_add=e.asm.Aa).apply(null,arguments)},e._logmath_log=function(){return(e._logmath_log=e.asm.Ba).apply(null,arguments)},e._endpointer_init=function(){return(e._endpointer_init=e.asm.Ca).apply(null,arguments)},e._vad_frame_length=function(){return(e._vad_frame_length=e.asm.Da).apply(null,arguments)},e._vad_frame_size=function(){return(e._vad_frame_size=e.asm.Ea).apply(null,arguments)},e._endpointer_vad=function(){return(e._endpointer_vad=e.asm.Fa).apply(null,arguments)},e._endpointer_end_stream=function(){return(e._endpointer_end_stream=e.asm.Ga).apply(null,arguments)},e._endpointer_process=function(){return(e._endpointer_process=e.asm.Ha).apply(null,arguments)},e._endpointer_in_speech=function(){return(e._endpointer_in_speech=e.asm.Ia).apply(null,arguments)},e._endpointer_speech_start=function(){return(e._endpointer_speech_start=e.asm.Ja).apply(null,arguments)},e._endpointer_speech_end=function(){return(e._endpointer_speech_end=e.asm.Ka).apply(null,arguments)},e._s3file_init=function(){return(e._s3file_init=e.asm.La).apply(null,arguments)},e._tmat_init_s3file=function(){return(e._tmat_init_s3file=e.asm.Ma).apply(null,arguments)},ai=function xe(){ry||Zj(),ry||(ai=xe)},e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();function Gj(xe){return Ex.apply(this,arguments)}function Ex(){return(Ex=(0,y.Z)(function*(xe){const fe=yield fetch(xe);if(fe.ok)return fe.json();throw new Error("Failed to fetch "+xe+" :"+fe.statusText)})).apply(this,arguments)}function Kr(xe){return Tx.apply(this,arguments)}function Tx(){return(Tx=(0,y.Z)(function*(xe){let fe;const we=yield fetch(xe);if(!we.ok)throw new Error("Failed to fetch "+xe+" :"+we.statusText);{const Dt=yield(yield we.blob()).arrayBuffer();fe=new Uint8Array(Dt)}const Oe=fe.length+1,st=e._malloc(Oe);if(0==st)throw new Error("Failed to allocate "+Oe+" bytes for "+xe);return jf(fe,st),Xe[st+Oe]=0,e._s3file_init(st,Oe-1)})).apply(this,arguments)}return Zj(),typeof e.modelBase>"u"&&(e.modelBase="model/"),typeof e.defaultModel>"u"&&(e.defaultModel="en-us"),e.get_model_path=function Ape(xe){return e.modelBase+xe},e.load_json=Gj,e.Decoder=class Ipe{constructor(fe){this.initialized=!1,void 0===fe&&(fe={}),null!==e.defaultModel&&void 0===fe.hmm&&(fe.hmm=e.get_model_path(e.defaultModel));const we=kr(JSON.stringify(fe)),Oe=e._config_parse_json(0,we);if(e._free(we),this.cdecoder=e._decoder_create(Oe),0==this.cdecoder)throw new Error("Failed to construct Decoder")}delete(){0!=this.cdecoder&&e._decoder_free(this.cdecoder),this.cdecoder=0}get_config_json(){const fe=e._decoder_config(this.cdecoder);return Fe(e._config_serialize_json(fe))}set_config(fe,we){const Oe=kr(fe),st=e._decoder_config(this.cdecoder),mt=e._config_typeof(st,Oe);if(0==mt)throw e._free(Oe),new ReferenceError(`Unknown configuration parameter ${fe}`);if(8&mt){const Dt=kr(we);e._config_set_str(st,Oe,Dt),e._free(Dt)}else if(4&mt)e._config_set_float(st,Oe,we);else{if(!(18&mt))return e._free(Oe),!1;e._config_set_int(st,Oe,we)}return e._free(Oe),!0}unset_config(fe){const we=kr(fe),Oe=e._decoder_config(this.cdecoder),st=e._config_typeof(Oe,we);if(0==st)throw e._free(we),new ReferenceError(`Unknown configuration parameter ${fe}`);e._config_set(Oe,we,0,st),e._free(we)}get_config(fe){const we=kr(fe),Oe=e._decoder_config(this.cdecoder),st=e._config_typeof(Oe,we);if(0==st)throw e._free(we),new ReferenceError(`Unknown configuration parameter ${fe}`);let mt;if(8&st){const Dt=e._config_str(Oe,we);mt=0==Dt?null:Fe(Dt)}else 4&st?mt=e._config_float(Oe,we):2&st?mt=e._config_int(Oe,we):16&st&&(mt=!!e._config_int(Oe,we));if(e._free(we),void 0===mt)throw new TypeError(`Unsupported type ${st} for parameter ${fe}`);return mt}has_config(fe){const we=kr(fe),Oe=e._decoder_config(this.cdecoder),st=0!=e._config_typeof(Oe,we);return e._free(we),st}initialize(){var fe=this;return(0,y.Z)(function*(){if(0==fe.cdecoder)throw new Error("Decoder was somehow not constructed (ps==0)");yield fe.init_featparams(),yield fe.init_cleanup(),yield fe.init_fe(),yield fe.init_feat(),fe.cacmod=yield fe.init_acmod(),yield fe.load_acmod_files(),yield fe.init_dict(),yield fe.init_grammar(),fe.initialized=!0})()}init_featparams(){var fe=this;return(0,y.Z)(function*(){const we=yield Gj(fe.get_config("featparams"));for(const Oe in we)fe.has_config(Oe)&&fe.set_config(Oe,we[Oe]);return we})()}init_cleanup(){var fe=this;return(0,y.Z)(function*(){if(e._decoder_init_cleanup(fe.cdecoder)<0)throw new Error("Failed to clean up decoder internals")})()}init_fe(){var fe=this;return(0,y.Z)(function*(){const we=e._decoder_init_fe(fe.cdecoder);if(0==we)throw new Error("Failed to initialize frontend");return we})()}init_feat(){var fe=this;return(0,y.Z)(function*(){let we;try{const Oe=yield Kr(fe.get_config("lda"));we=e._decoder_init_feat_s3file(fe.cdecoder,Oe)}catch{we=e._decoder_init_feat_s3file(fe.cdecoder,0)}if(0==we)throw new Error("Failed to initialize feature module");return we})()}init_acmod(){var fe=this;return(0,y.Z)(function*(){const we=e._decoder_init_acmod_pre(fe.cdecoder);if(0==we)throw new Error("Failed to initialize acoustic model");return we})()}load_acmod_files(){var fe=this;return(0,y.Z)(function*(){yield fe.load_mdef(),yield fe.load_tmat(fe.get_config("tmat"));const we=fe.get_config("mean"),Oe=fe.get_config("var"),st=fe.get_config("sendump"),mt=fe.get_config("mixw");if(yield fe.load_gmm(we,Oe,st,mt),e._decoder_init_acmod_post(fe.cdecoder)<0)throw new Error("Failed to initialize acoustic scoring")})()}load_mdef(){var fe=this;return(0,y.Z)(function*(){const we=yield Kr(fe.get_config("mdef"));if(0==we)throw new Error("Failed to read mdef from "+fe.get_config("mdef"));const Oe=e._bin_mdef_read_s3file(we,fe.get_config("cionly"));if(e._s3file_free(we),0==Oe)throw new Error("Failed to read mdef from "+fe.get_config("mdef"));return e._set_mdef(fe.cdecoder,Oe),Oe})()}load_tmat(fe){var we=this;return(0,y.Z)(function*(){const Oe=yield Kr(fe),st=e._decoder_logmath(we.cdecoder),mt=we.get_config("tmatfloor"),Dt=e._tmat_init_s3file(Oe,st,mt);if(e._s3file_free(Oe),0==Dt)throw new Error("Failed to read tmat");return e._set_tmat(we.cdecoder,Dt),Dt})()}load_gmm(fe,we,Oe,st){var mt=this;return(0,y.Z)(function*(){const Dt=yield Kr(fe),Rt=yield Kr(we);var zn,Zi;try{zn=yield Kr(Oe),Zi=0}catch{zn=0,Zi=yield Kr(st)}if(e._load_gmm(mt.cdecoder,Dt,Rt,Zi,zn)<0)throw new Error("Failed to load GMM parameters")})()}init_dict(){var fe=this;return(0,y.Z)(function*(){let we,Oe;try{we=yield Kr(fe.get_config("dict"))}catch{we=0}try{Oe=yield Kr(fe.get_config("fdict"))}catch{Oe=0}if(0==e._decoder_init_dict_s3file(fe.cdecoder,we,Oe))throw new Error("Failed to initialize dictionaries")})()}init_grammar(){var fe=this;return(0,y.Z)(function*(){let we=0,Oe=0;const st=fe.get_config("jsgf");null!=st&&(Oe=yield Kr(st));const mt=fe.get_config("fsg");if(null!=mt&&(we=yield Kr(mt)),(we||Oe)&&e._decoder_init_grammar_s3file(fe.cdecoder,we,Oe)<0)throw new Error("Failed to initialize grammar")})()}assert_initialized(){if(!this.initialized)throw new Error("Decoder not yet initialized")}reinitialize_audio(){var fe=this;return(0,y.Z)(function*(){fe.assert_initialized();const we=yield fe.init_fe(),Oe=yield fe.init_feat();if(e._acmod_reinit_feat(fe.cacmod,we,Oe)<0)throw new Error("Failed to reinitialize audio parameters")})()}start(){if(this.assert_initialized(),e._decoder_start_utt(this.cdecoder)<0)throw new Error("Failed to start utterance processing")}stop(){if(this.assert_initialized(),e._decoder_end_utt(this.cdecoder)<0)throw new Error("Failed to stop utterance processing")}process_audio(fe,we=!1,Oe=!1){this.assert_initialized();const st=fe.length*fe.BYTES_PER_ELEMENT,mt=e._malloc(st);jf(new Uint8Array(fe.buffer,fe.byteOffset,st),mt);const Rt=e._decoder_process_float32(this.cdecoder,mt,st/4,we,Oe);if(e._free(mt),Rt<0)throw new Error("Utterance processing failed");return Rt}get_text(){return this.assert_initialized(),Fe(e._decoder_hyp(this.cdecoder,0))}get_alignment({start:fe=0,align_level:we=0}={}){if(this.assert_initialized(),we>2)throw new Error(`Invalid align_level ${we}`);const st=Fe(e._decoder_result_json(this.cdecoder,fe,we));return JSON.parse(st)}lookup_word(fe){this.assert_initialized();const we=kr(fe),Oe=e._decoder_lookup_word(this.cdecoder,we);return e._free(we),0==Oe?null:Fe(Oe)}add_words(...fe){this.assert_initialized();for(let we=0;weDt>0?32767*Dt:32768*Dt),Oe=new Uint8Array(we.buffer),st=e._malloc(Oe.length);jf(Oe,st);const mt=e._endpointer_process(this.cep,st);if(e._free(st),0!=mt){const Dt=new Int16Array(Xe.buffer,mt,this.get_frame_size());return Float32Array.from(Dt,Rt=>Rt>0?Rt/32767:Rt/32768)}return null}end_stream(fe){const we=Int16Array.from(fe.map(Rt=>Rt>0?32767*Rt:32768*Rt)),Oe=new Uint8Array(we.buffer),st=e._malloc(Oe.length);jf(Oe,st);const mt=e._malloc(4),Dt=e._endpointer_end_stream(this.cep,st,we.length,mt);if(e._free(mt),e._free(st),0!=Dt){const Rt=oy(mt,"i32"),zn=new Int16Array(Xe.buffer,Dt,2*Rt);return Float32Array.from(zn,Zi=>Zi>0?Zi/32767:Zi/32768)}return null}},e.ready});var bb,Us=function(t){return t.strict="strict",t.moderate="moderate",t.loose="loose",t}(Us||{});let BN=(()=>{class t{constructor(){this.modelLoaded=new hi(!1),this.mode=Us.strict,this.beamParams={strict:{beam:1e-100,pbeam:1e-100,wbeam:1e-80},moderate:{beam:1e-200,pbeam:1e-200,wbeam:1e-160},loose:{beam:0,pbeam:0,wbeam:0}}}preload(){var e=this;return(0,y.Z)(function*(){const i=new bb.Decoder;return i.initialize().finally(()=>{e.modelLoaded.next(!0),i.delete()})})()}loadModule$(){return bi(void 0===bb?wne().then(e=>(bb=e,this.preload())):this.preload())}align$(e,i){const o=i.text_ids,r=i.lexicon,a=i.processed_ras;return new On(s=>{const l=new bb.Decoder({loglevel:"INFO",beam:this.beamParams[this.mode].beam,wbeam:this.beamParams[this.mode].wbeam,pbeam:this.beamParams[this.mode].pbeam,samprate:e.sampleRate});l.unset_config("dict");let c=!1;return l.initialize().then((0,y.Z)(function*(){l.add_words(...r),l.set_align_text(o),l.start();const u=e.getChannelData(0);let h=0;for(s.next({pos:h,length:u.length});h8192&&(g=8192),yield new Promise(b=>{setTimeout(()=>{l.process_audio(u.subarray(h,h+g),!1,!1),b()},0)}),h+=g,s.next({pos:h,length:u.length}),c)return void l.stop()}l.stop();const p=l.get_alignment();if(console.log(`hypseg is ${p}`),void 0===p.w||0==p.w.length)throw new Error("No alignment found");s.next({pos:h,length:u.length,hypseg:p,xml:a}),s.complete()})).catch(u=>{s.error(u)}).finally(()=>{l.delete()}),()=>{c=!0}})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ws=O(9884);const Hu=new WeakSet,HN=new WeakMap,d1=new WeakMap,YN=new WeakMap,h1=new WeakMap,yb=new WeakMap,zN=new WeakMap,f1=new WeakMap,p1=new WeakMap,g1=new WeakMap,$N={construct:()=>$N},VN=/^import(?:(?:[\s]+[\w]+|(?:[\s]+[\w]+[\s]*,)?[\s]*\{[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?(?:[\s]*,[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?)*[\s]*}|(?:[\s]+[\w]+[\s]*,)?[\s]*\*[\s]+as[\s]+[\w]+)[\s]+from)?(?:[\s]*)("([^"\\]|\\.)+"|'([^'\\]|\\.)+')(?:[\s]*);?/,ZN=(t,n)=>{const e=[];let i=t.replace(/^[\s]+/,""),o=i.match(VN);for(;null!==o;){const r=o[1].slice(1,-1),a=o[0].replace(/([\s]+)?;?$/,"").replace(r,new URL(r,n).toString());e.push(a),i=i.slice(o[0].length).replace(/^[\s]+/,""),o=i.match(VN)}return[e.join(";"),i]},GN=t=>{if(void 0!==t&&!Array.isArray(t))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},UN=t=>{if(!(t=>{try{new new Proxy(t,$N)}catch{return!1}return!0})(t))throw new TypeError("The given value for processorCtor should be a constructor.");if(null===t.prototype||"object"!=typeof t.prototype)throw new TypeError("The given value for processorCtor should have a prototype.")},Wr=(t,n)=>{const e=t.get(n);if(void 0===e)throw new Error("A value with the given key could not be found.");return e},_b=(t,n)=>{const e=Array.from(t).filter(n);if(e.length>1)throw Error("More than one element was found.");if(0===e.length)throw Error("No element was found.");const[i]=e;return t.delete(i),i},WN=(t,n,e,i)=>{const o=Wr(t,n),r=_b(o,a=>a[0]===e&&a[1]===i);return 0===o.size&&t.delete(n),r},wf=t=>Wr(zN,t),Yu=t=>{if(Hu.has(t))throw new Error("The AudioNode is already stored.");Hu.add(t),wf(t).forEach(n=>n(!0))},XN=t=>"port"in t,Cf=t=>{if(!Hu.has(t))throw new Error("The AudioNode is not stored.");Hu.delete(t),wf(t).forEach(n=>n(!1))},m1=(t,n)=>{!XN(t)&&n.every(e=>0===e.size)&&Cf(t)},Rne={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},bo=(t,n)=>t.context===n,vb=t=>{try{t.copyToChannel(new Float32Array(1),0,-1)}catch{return!1}return!0},Ea=()=>new DOMException("","IndexSizeError"),b1=t=>{var n;t.getChannelData=(n=t.getChannelData,e=>{try{return n.call(t,e)}catch(i){throw 12===i.code?Ea():i}})},Fne={numberOfChannels:1},zo=-34028234663852886e22,Io=-zo,ss=t=>Hu.has(t),jne={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},Oo=t=>Wr(HN,t),xf=t=>Wr(YN,t),y1=(t,n)=>{const{activeInputs:e}=Oo(t);e.forEach(o=>o.forEach(([r])=>{n.includes(t)||y1(r,[...n,t])}));const i=(t=>"playbackRate"in t)(t)?[t.playbackRate]:XN(t)?Array.from(t.parameters.values()):(t=>"frequency"in t&&"gain"in t)(t)?[t.Q,t.detune,t.frequency,t.gain]:(t=>"offset"in t)(t)?[t.offset]:(t=>!("frequency"in t)&&"gain"in t)(t)?[t.gain]:(t=>"detune"in t&&"frequency"in t)(t)?[t.detune,t.frequency]:(t=>"pan"in t)(t)?[t.pan]:[];for(const o of i){const r=xf(o);void 0!==r&&r.activeInputs.forEach(([a])=>y1(a,n))}ss(t)&&Cf(t)},Cb=t=>"context"in t,Sf=t=>Cb(t[0]),Jl=(t,n,e,i)=>{for(const o of t)if(e(o)){if(i)return!1;throw Error("The set contains at least one similar element.")}return t.add(n),!0},QN=(t,n,[e,i],o)=>{Jl(t,[n,e,i],r=>r[0]===n&&r[1]===e,o)},KN=(t,[n,e,i],o)=>{const r=t.get(n);void 0===r?t.set(n,new Set([[e,i]])):Jl(r,[e,i],a=>a[0]===e,o)},zu=t=>"inputs"in t,xb=(t,n,e,i)=>{if(zu(n)){const o=n.inputs[i];return t.connect(o,e,0),[o,e,0]}return t.connect(n,e,i),[n,e,i]},qN=(t,n,e)=>{for(const i of t)if(i[0]===n&&i[1]===e)return t.delete(i),i;return null},eF=(t,n)=>{if(!wf(t).delete(n))throw new Error("Missing the expected event listener.")},tF=(t,n,e)=>{const i=Wr(t,n),o=_b(i,r=>r[0]===e);return 0===i.size&&t.delete(n),o},Sb=(t,n,e,i)=>{zu(n)?t.disconnect(n.inputs[i],e,0):t.disconnect(n,e,i)},ri=t=>Wr(d1,t),Df=t=>Wr(h1,t),Ql=t=>f1.has(t),Db=t=>!Hu.has(t),nF=(t,n)=>new Promise(e=>{if(null!==n)e(!0);else{const i=t.createScriptProcessor(256,1,1),o=t.createGain(),r=t.createBuffer(1,2,44100),a=r.getChannelData(0);a[0]=1,a[1]=1;const s=t.createBufferSource();s.buffer=r,s.loop=!0,s.connect(i).connect(t.destination),s.connect(o),s.disconnect(o),i.onaudioprocess=l=>{const c=l.inputBuffer.getChannelData(0);Array.prototype.some.call(c,u=>1===u)?e(!0):e(!1),s.stop(),i.onaudioprocess=null,s.disconnect(i),i.disconnect(t.destination)},s.start()}}),_1=(t,n)=>{const e=new Map;for(const i of t)for(const o of i){const r=e.get(o);e.set(o,void 0===r?1:r+1)}e.forEach((i,o)=>n(o,i))},Eb=t=>"context"in t,v1=(t,n,e,i,o)=>{const[r,a]=((t,n,e,i)=>{const{activeInputs:o,passiveInputs:r}=Oo(n),a=qN(o[i],t,e);return null===a?[WN(r,t,e,i)[2],!1]:[a[2],!0]})(t,e,i,o);if(null!==r&&(eF(t,r),a&&!n&&!Ql(t)&&Sb(ri(t),ri(e),i,o)),ss(e)){const{activeInputs:s}=Oo(e);m1(e,s)}},w1=(t,n,e,i)=>{const[o,r]=((t,n,e)=>{const{activeInputs:i,passiveInputs:o}=xf(n),r=qN(i,t,e);return null===r?[tF(o,t,e)[1],!1]:[r[2],!0]})(t,e,i);null!==o&&(eF(t,o),r&&!n&&!Ql(t)&&ri(t).disconnect(Df(e),i))};class iF{constructor(n){this._map=new Map(n)}get size(){return this._map.size}entries(){return this._map.entries()}forEach(n,e=null){return this._map.forEach((i,o)=>n.call(e,i,o,this))}get(n){return this._map.get(n)}has(n){return this._map.has(n)}keys(){return this._map.keys()}values(){return this._map.values()}}function Tb(t,n,e,i,o){if("function"==typeof t.copyFromChannel)0===n[e].byteLength&&(n[e]=new Float32Array(128)),t.copyFromChannel(n[e],i,o);else{const r=t.getChannelData(i);if(0===n[e].byteLength)n[e]=r.slice(o,o+128);else{const a=new Float32Array(r.buffer,o*Float32Array.BYTES_PER_ELEMENT,128);n[e].set(a)}}}const oF=(t,n,e,i,o)=>{"function"==typeof t.copyToChannel?0!==n[e].byteLength&&t.copyToChannel(n[e],i,o):0!==n[e].byteLength&&t.getChannelData(i).set(n[e],o)},Mb=(t,n)=>{const e=[];for(let i=0;iD+H,0),d=0===u?null:i.createBuffer(u,l,i.sampleRate);if(void 0===a)throw new Error("Missing the processor constructor.");const h=Oo(n),p=yield((t,n)=>{const e=Wr(g1,t),i=ri(n);return Wr(e,i)})(i,n),g=Mb(o.numberOfInputs,o.channelCount),b=Mb(o.numberOfOutputs,r),T=Array.from(n.parameters.keys()).reduce((D,H)=>({...D,[H]:new Float32Array(128)}),{});for(let D=0;D0&&null!==e)for(let H=0;H{Tb(e,T,H,c+oe,D)});for(let H=0;H0===h.activeInputs[G].size?[]:le),oe=s(D/i.sampleRate,i.sampleRate,()=>p.process(H,b,T));if(null!==d)for(let le=0,G=0;le{const{port1:n,port2:e}=new MessageChannel;return new Promise(i=>{const o=()=>{e.onmessage=null,n.close(),e.close(),i()};e.onmessage=()=>o();try{n.postMessage(t,[t])}catch{}finally{o()}})},jie={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",delayTime:0,maxDelayTime:1},Ab=(t,n,e)=>{const i=n[e];if(void 0===i)throw t();return i},Gie={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},eoe={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},Li=()=>new DOMException("","InvalidStateError"),kb=()=>new DOMException("","InvalidAccessError"),hoe={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},aF=(t,n,e,i,o,r,a,s,l,c,u)=>{const d=c.length;let h=s;for(let p=0;p{const n=new Uint32Array([1179011410,40,1163280727,544501094,16,131073,44100,176400,1048580,1635017060,4,0]);try{const e=t.decodeAudioData(n.buffer,()=>{});return void 0!==e&&(e.catch(()=>{}),!0)}catch{}return!1},di=(t,n,e)=>{const i=n[e];void 0!==i&&i!==t[e]&&(t[e]=i)},Vi=(t,n)=>{di(t,n,"channelCount"),di(t,n,"channelCountMode"),di(t,n,"channelInterpretation")},sF=t=>"function"==typeof t.getFloatTimeDomainData,vi=(t,n,e)=>{const i=n[e];void 0!==i&&i!==t[e].value&&(t[e].value=i)},C1=t=>{var n;t.start=(n=t.start,(e=0,i=0,o)=>{if("number"==typeof o&&o<0||i<0||e<0)throw new RangeError("The parameters can't be negative.");n.call(t,e,i,o)})},x1=t=>{var n;t.stop=(n=t.stop,(e=0)=>{if(e<0)throw new RangeError("The parameter can't be negative.");n.call(t,e)})},lF=(t,n)=>null===t?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(t*n))))),Woe=function(){var t=(0,y.Z)(function*(n,e){const i=yield(t=>new Promise((n,e)=>{const{port1:i,port2:o}=new MessageChannel;i.onmessage=({data:r})=>{i.close(),o.close(),n(r)},i.onmessageerror=({data:r})=>{i.close(),o.close(),e(r)},o.postMessage(t)}))(e);return new n(i)});return function(e,i){return t.apply(this,arguments)}}(),cF=(t,n)=>{const e=t.createBiquadFilter();return Vi(e,n),vi(e,n,"Q"),vi(e,n,"detune"),vi(e,n,"frequency"),vi(e,n,"gain"),di(e,n,"type"),e},Ef=(t,n)=>{const e=t.createChannelSplitter(n.numberOfOutputs);return Vi(e,n),(t=>{const n=t.numberOfOutputs;Object.defineProperty(t,"channelCount",{get:()=>n,set:e=>{if(e!==n)throw Li()}}),Object.defineProperty(t,"channelCountMode",{get:()=>"explicit",set:e=>{if("explicit"!==e)throw Li()}}),Object.defineProperty(t,"channelInterpretation",{get:()=>"discrete",set:e=>{if("discrete"!==e)throw Li()}})})(e),e},$u=(t,n)=>(t.connect=n.connect.bind(n),t.disconnect=n.disconnect.bind(n),t),uF=(t,n)=>{const e=t.createDelay(n.maxDelayTime);return Vi(e,n),vi(e,n,"delayTime"),e},$o=(t,n)=>{const e=t.createGain();return Vi(e,n),vi(e,n,"gain"),e};function ore(t,n){const e=n[0]*n[0]+n[1]*n[1];return[(t[0]*n[0]+t[1]*n[1])/e,(t[1]*n[0]-t[0]*n[1])/e]}function rre(t,n){return[t[0]*n[0]-t[1]*n[1],t[0]*n[1]+t[1]*n[0]]}function dF(t,n){let e=[0,0];for(let i=t.length-1;i>=0;i-=1)e=rre(e,n),e[0]+=t[i];return e}const Tf=(t,n,e,i)=>t.createScriptProcessor(n,e,i),yo=()=>new DOMException("","NotSupportedError"),Cre={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:440,periodicWave:void 0,type:"sine"},Dre={channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",coneInnerAngle:360,coneOuterAngle:360,coneOuterGain:0,distanceModel:"inverse",maxDistance:1e4,orientationX:1,orientationY:0,orientationZ:0,panningModel:"equalpower",positionX:0,positionY:0,positionZ:0,refDistance:1,rolloffFactor:1},Mre={disableNormalization:!1},Lre={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},hF=()=>new DOMException("","UnknownError"),$re={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",curve:null,oversample:"none"},fF=(t,n,e)=>void 0===t.copyFromChannel?t.getChannelData(e)[0]:(t.copyFromChannel(n,e),n[0]),pF=t=>{if(null===t)return!1;const n=t.length;return n%2!=0?0!==t[Math.floor(n/2)]:t[n/2-1]+t[n/2]!==0},Mf=(t,n,e,i)=>{let o=t;for(;!o.hasOwnProperty(n);)o=Object.getPrototypeOf(o);const{get:r,set:a}=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(t,n,{get:e(r),set:i(a)})},gF=(t,n,e)=>{try{t.setValueAtTime(n,e)}catch(i){if(9!==i.code)throw i;gF(t,n,e+1e-7)}},S1=t=>{const n=t.createOscillator();try{n.start(-1)}catch(e){return e instanceof RangeError}return!1},mF=t=>{const n=t.createBuffer(1,1,44100),e=t.createBufferSource();e.buffer=n,e.start(),e.stop();try{return e.stop(),!0}catch{return!1}},D1=t=>{const n=t.createOscillator();try{n.stop(-1)}catch(e){return e instanceof RangeError}return!1},bF=(t,n)=>{const e=n.createGain();t.connect(e);const i=(o=t.disconnect,()=>{o.call(t,e),t.removeEventListener("ended",i)});var o;t.addEventListener("ended",i),$u(t,e),t.stop=(o=>{let r=!1;return(a=0)=>{if(r)try{o.call(t,a)}catch{e.gain.setValueAtTime(0,a)}else o.call(t,a),r=!0}})(t.stop)},Vu=(t,n)=>e=>{const i={value:t};return Object.defineProperties(e,{currentTarget:i,target:i}),"function"==typeof n?n.call(t,e):n.handleEvent.call(t,e)},rae=(t=>(n,e,[i,o,r],a)=>{t(n[o],[e,i,r],s=>s[0]===e&&s[1]===i,a)})(Jl),aae=(t=>(n,e,[i,o,r],a)=>{const s=n.get(i);void 0===s?n.set(i,new Set([[o,e,r]])):t(s,[o,e,r],l=>l[0]===o&&l[1]===e,a)})(Jl),sae=(t=>(n,e,i,o)=>t(n[o],r=>r[0]===e&&r[1]===i))(_b),yF=new WeakMap,lae=(t=>n=>{var e;return null!==(e=t.get(n))&&void 0!==e?e:0})(yF),dr=((t,n)=>(e,i)=>{const o=n.get(e);if(void 0!==o)return o;const r=t.get(e);if(void 0!==r)return r;try{const a=i();return a instanceof Promise?(t.set(e,a),a.catch(()=>!1).then(s=>(t.delete(e),n.set(e,s),s))):(n.set(e,a),a)}catch{return n.set(e,!1),!1}})(new Map,new WeakMap),Xr=typeof window>"u"?null:window,_F=((t,n)=>(e,i)=>{const o=e.createAnalyser();if(Vi(o,i),!(i.maxDecibels>i.minDecibels))throw n();return di(o,i,"fftSize"),di(o,i,"maxDecibels"),di(o,i,"minDecibels"),di(o,i,"smoothingTimeConstant"),t(sF,()=>sF(o))||(t=>{t.getFloatTimeDomainData=n=>{const e=new Uint8Array(n.length);t.getByteTimeDomainData(e);const i=Math.max(e.length,t.fftSize);for(let o=0;on=>{const e=t(n);if(null===e.renderer)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return e.renderer})(Oo),oo=((t,n,e)=>function(){var i=(0,y.Z)(function*(o,r,a){const s=t(o);yield Promise.all(s.activeInputs.map((l,c)=>Array.from(l).map(function(){var u=(0,y.Z)(function*([d,h]){const g=yield n(d).render(d,r),b=o.context.destination;!e(d)&&(o!==b||!e(o))&&g.connect(a,h,c)});return function(d){return u.apply(this,arguments)}}())).reduce((l,c)=>[...l,...c],[]))});return function(o,r,a){return i.apply(this,arguments)}}())(Oo,E1,Ql),cae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,fftSize:l.fftSize,maxDecibels:l.maxDecibels,minDecibels:l.minDecibels,smoothingTimeConstant:l.smoothingTimeConstant})),i.set(s,l),yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(_F,ri,oo),ti=(t=>n=>{const e=t.get(n);if(void 0===e)throw Li();return e})(yb),Ji=(t=>null===t?null:t.hasOwnProperty("OfflineAudioContext")?t.OfflineAudioContext:t.hasOwnProperty("webkitOfflineAudioContext")?t.webkitOfflineAudioContext:null)(Xr),Yn=(t=>n=>null!==t&&n instanceof t)(Ji),vF=new WeakMap,wF=(t=>class{constructor(e){this._nativeEventTarget=e,this._listeners=new WeakMap}addEventListener(e,i,o){if(null!==i){let r=this._listeners.get(i);void 0===r&&(r=t(this,i),"function"==typeof i&&this._listeners.set(i,r)),this._nativeEventTarget.addEventListener(e,r,o)}}dispatchEvent(e){return this._nativeEventTarget.dispatchEvent(e)}removeEventListener(e,i,o){const r=null===i?void 0:this._listeners.get(i);this._nativeEventTarget.removeEventListener(e,void 0===r?null:r,o)}})(Vu),ls=(t=>null===t?null:t.hasOwnProperty("AudioContext")?t.AudioContext:t.hasOwnProperty("webkitAudioContext")?t.webkitAudioContext:null)(Xr),T1=(t=>n=>null!==t&&n instanceof t)(ls),M1=(t=>n=>null!==t&&"function"==typeof t.AudioNode&&n instanceof t.AudioNode)(Xr),CF=(t=>n=>null!==t&&"function"==typeof t.AudioParam&&n instanceof t.AudioParam)(Xr),Zu=(t=>null===t?null:t.hasOwnProperty("AudioWorkletNode")?t.AudioWorkletNode:null)(Xr),Ii=((t,n,e,i,o,r,a,s,l,c,u,d,h,p,g,b)=>class extends c{constructor(D,H,oe,le){super(oe),this._context=D,this._nativeAudioNode=oe;const G=u(D);d(G)&&!0!==e(nF,()=>nF(G,b))&&(t=>{const n=new Map;var e;t.connect=(e=t.connect.bind(t),(i,o=0,r=0)=>{const a=Eb(i)?e(i,o,r):e(i,o),s=n.get(i);return void 0===s?n.set(i,[{input:r,output:o}]):s.every(l=>l.input!==r||l.output!==o)&&s.push({input:r,output:o}),a}),t.disconnect=(e=>(i,o,r)=>{if(e.apply(t),void 0===i)n.clear();else if("number"==typeof i)for(const[a,s]of n){const l=s.filter(c=>c.output!==i);0===l.length?n.delete(a):n.set(a,l)}else if(n.has(i))if(void 0===o)n.delete(i);else{const a=n.get(i);if(void 0!==a){const s=a.filter(l=>l.output!==o&&(l.input!==r||void 0===r));0===s.length?n.delete(i):n.set(i,s)}}for(const[a,s]of n)s.forEach(l=>{Eb(a)?t.connect(a,l.output,l.input):t.connect(a,l.output)})})(t.disconnect)})(oe),d1.set(this,oe),zN.set(this,new Set),"closed"!==D.state&&H&&Yu(this),t(this,le,oe)}get channelCount(){return this._nativeAudioNode.channelCount}set channelCount(D){this._nativeAudioNode.channelCount=D}get channelCountMode(){return this._nativeAudioNode.channelCountMode}set channelCountMode(D){this._nativeAudioNode.channelCountMode=D}get channelInterpretation(){return this._nativeAudioNode.channelInterpretation}set channelInterpretation(D){this._nativeAudioNode.channelInterpretation=D}get context(){return this._context}get numberOfInputs(){return this._nativeAudioNode.numberOfInputs}get numberOfOutputs(){return this._nativeAudioNode.numberOfOutputs}connect(D,H=0,oe=0){if(H<0||H>=this._nativeAudioNode.numberOfOutputs)throw o();const le=u(this._context),G=g(le);if(h(D)||p(D))throw r();if(Cb(D)){const be=ri(D);try{const Fe=xb(this._nativeAudioNode,be,H,oe),Qe=Db(this);(G||Qe)&&this._nativeAudioNode.disconnect(...Fe),"closed"!==this.context.state&&!Qe&&Db(D)&&Yu(D)}catch(Fe){throw 12===Fe.code?r():Fe}if(n(this,D,H,oe,G)){const Fe=l([this],D);_1(Fe,i(G))}return D}const pe=Df(D);if("playbackRate"===pe.name&&1024===pe.maxValue)throw a();try{this._nativeAudioNode.connect(pe,H),(G||Db(this))&&this._nativeAudioNode.disconnect(pe,H)}catch(be){throw 12===be.code?r():be}if(((t,n,e,i)=>{const{activeInputs:o,passiveInputs:r}=xf(n),{outputs:a}=Oo(t),s=wf(t),l=c=>{const u=ri(t),d=Df(n);if(c){const h=tF(r,t,e);QN(o,t,h,!1),!i&&!Ql(t)&&u.connect(d,e)}else{const h=((t,n,e)=>_b(t,i=>i[0]===n&&i[1]===e))(o,t,e);KN(r,h,!1),!i&&!Ql(t)&&u.disconnect(d,e)}};return!!Jl(a,[n,e],c=>c[0]===n&&c[1]===e,!0)&&(s.add(l),ss(t)?QN(o,t,[e,l],!0):KN(r,[t,e,l],!0),!0)})(this,D,H,G)){const be=l([this],D);_1(be,i(G))}}disconnect(D,H,oe){let le;const G=u(this._context),pe=g(G);if(void 0===D)le=((t,n)=>{const e=Oo(t),i=[];for(const o of e.outputs)Sf(o)?v1(t,n,...o):w1(t,n,...o),i.push(o[0]);return e.outputs.clear(),i})(this,pe);else if("number"==typeof D){if(D<0||D>=this.numberOfOutputs)throw o();le=((t,n,e)=>{const i=Oo(t),o=[];for(const r of i.outputs)r[1]===e&&(Sf(r)?v1(t,n,...r):w1(t,n,...r),o.push(r[0]),i.outputs.delete(r));return o})(this,pe,D)}else{if(void 0!==H&&(H<0||H>=this.numberOfOutputs)||Cb(D)&&void 0!==oe&&(oe<0||oe>=D.numberOfInputs))throw o();if(le=((t,n,e,i,o)=>{const r=Oo(t);return Array.from(r.outputs).filter(a=>!(a[0]!==e||void 0!==i&&a[1]!==i||void 0!==o&&a[2]!==o)).map(a=>(Sf(a)?v1(t,n,...a):w1(t,n,...a),r.outputs.delete(a),a[0]))})(this,pe,D,H,oe),0===le.length)throw r()}for(const _e of le){const be=l([this],_e);_1(be,s)}}})((t=>(n,e,i)=>{const o=[];for(let r=0;r{const p=new WeakMap;return(g,b,T,D,H)=>{const{activeInputs:oe,passiveInputs:le}=r(b),{outputs:G}=r(g),pe=s(g),_e=be=>{const Be=l(b),Fe=l(g);if(be){const Qe=WN(le,g,T,D);t(oe,g,Qe,!1),!H&&!d(g)&&e(Fe,Be,T,D),h(b)&&Yu(b)}else{const Qe=i(oe,g,T,D);n(le,D,Qe,!1),!H&&!d(g)&&o(Fe,Be,T,D);const Re=a(b);if(0===Re)u(b)&&m1(b,oe);else{const Xe=p.get(b);void 0!==Xe&&clearTimeout(Xe),p.set(b,setTimeout(()=>{u(b)&&m1(b,oe)},1e3*Re))}}};return!!c(G,[b,T,D],be=>be[0]===b&&be[1]===T&&be[2]===D,!0)&&(pe.add(_e),u(g)?t(oe,g,[T,D,_e],!0):n(le,D,[g,T,_e],!0),!0)}})(rae,aae,xb,sae,Sb,Oo,lae,wf,ri,Jl,ss,Ql,Db),dr,((t,n,e,i,o,r)=>a=>(s,l)=>{const c=t.get(s);if(void 0===c){if(!a&&r(s)){const u=i(s),{outputs:d}=e(s);for(const h of d)if(Sf(h)){const p=i(h[0]);n(u,p,h[1],h[2])}else{const p=o(h[0]);u.disconnect(p,h[1])}}t.set(s,l)}else t.set(s,c+l)})(f1,Sb,Oo,ri,Df,ss),Ea,kb,yo,((t,n,e,i,o,r,a,s)=>(l,c)=>{const u=n.get(l);if(void 0===u)throw new Error("Missing the expected cycle count.");const d=r(l.context),h=s(d);if(u===c){if(n.delete(l),!h&&a(l)){const p=i(l),{outputs:g}=e(l);for(const b of g)if(Sf(b)){const T=i(b[0]);t(p,T,b[1],b[2])}else{const T=o(b[0]);p.connect(T,b[1])}}}else n.set(l,u-c)})(xb,f1,Oo,ri,Df,ti,ss,Yn),((t,n,e)=>function i(o,r){const a=Cb(r)?r:e(t,r);if((t=>"delayTime"in t)(a))return[];if(o[0]===a)return[o];if(o.includes(a))return[];const{outputs:s}=n(a);return Array.from(s).map(l=>i([...o,a],l[0])).reduce((l,c)=>l.concat(c),[])})(vF,Oo,Wr),wF,ti,T1,M1,CF,Yn,Zu),uae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=o(s),u={...Rne,...l},d=i(c,u);super(s,!1,d,r(c)?n():null),this._nativeAnalyserNode=d}get fftSize(){return this._nativeAnalyserNode.fftSize}set fftSize(s){this._nativeAnalyserNode.fftSize=s}get frequencyBinCount(){return this._nativeAnalyserNode.frequencyBinCount}get maxDecibels(){return this._nativeAnalyserNode.maxDecibels}set maxDecibels(s){const l=this._nativeAnalyserNode.maxDecibels;if(this._nativeAnalyserNode.maxDecibels=s,!(s>this._nativeAnalyserNode.minDecibels))throw this._nativeAnalyserNode.maxDecibels=l,e()}get minDecibels(){return this._nativeAnalyserNode.minDecibels}set minDecibels(s){const l=this._nativeAnalyserNode.minDecibels;if(this._nativeAnalyserNode.minDecibels=s,!(this._nativeAnalyserNode.maxDecibels>s))throw this._nativeAnalyserNode.minDecibels=l,e()}get smoothingTimeConstant(){return this._nativeAnalyserNode.smoothingTimeConstant}set smoothingTimeConstant(s){this._nativeAnalyserNode.smoothingTimeConstant=s}getByteFrequencyData(s){this._nativeAnalyserNode.getByteFrequencyData(s)}getByteTimeDomainData(s){this._nativeAnalyserNode.getByteTimeDomainData(s)}getFloatFrequencyData(s){this._nativeAnalyserNode.getFloatFrequencyData(s)}getFloatTimeDomainData(s){this._nativeAnalyserNode.getFloatTimeDomainData(s)}})(Ii,cae,Ea,_F,ti,Yn),A1=new WeakSet,xF=(t=>null===t?null:t.hasOwnProperty("AudioBuffer")?t.AudioBuffer:null)(Xr),SF=(t=>n=>(t[0]=n,t[0]))(new Uint32Array(1)),k1=((t,n)=>e=>{e.copyFromChannel=(i,o,r=0)=>{const a=t(r),s=t(o);if(s>=e.numberOfChannels)throw n();const l=e.length,c=e.getChannelData(s),u=i.length;for(let d=a<0?-a:0;d+a{const a=t(r),s=t(o);if(s>=e.numberOfChannels)throw n();const l=e.length,c=e.getChannelData(s),u=i.length;for(let d=a<0?-a:0;d+an=>{var e;n.copyFromChannel=(e=n.copyFromChannel,(i,o,r=0)=>{const a=t(r),s=t(o);if(a(i,o,r=0)=>{const a=t(r),s=t(o);if(a{let l=null;return class Qj{constructor(u){if(null===o)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:d,numberOfChannels:h,sampleRate:p}={...Fne,...u};null===l&&(l=new o(1,1,44100));const g=null!==i&&n(r,r)?new i({length:d,numberOfChannels:h,sampleRate:p}):l.createBuffer(h,d,p);if(0===g.numberOfChannels)throw e();return"function"!=typeof g.copyFromChannel?(a(g),b1(g)):n(vb,()=>vb(g))||s(g),t.add(g),g}static[Symbol.hasInstance](u){return null!==u&&"object"==typeof u&&Object.getPrototypeOf(u)===Qj.prototype||t.has(u)}}})(A1,dr,yo,xF,Ji,(t=>()=>{if(null===t)return!1;try{new t({length:1,sampleRate:44100})}catch{return!1}return!0})(xF),k1,I1),Ib=(t=>(n,e)=>{const i=t(n,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});e.connect(i).connect(n.destination);const o=()=>{e.removeEventListener("ended",o),e.disconnect(i),i.disconnect()};e.addEventListener("ended",o)})($o),DF=((t,n,e)=>function(){var i=(0,y.Z)(function*(o,r,a){const s=n(o);yield Promise.all(Array.from(s.activeInputs).map(function(){var l=(0,y.Z)(function*([c,u]){const h=yield t(c).render(c,r);e(c)||h.connect(a,u)});return function(c){return l.apply(this,arguments)}}()))});return function(o,r,a){return i.apply(this,arguments)}}())(E1,xf,Ql),Ta=(t=>(n,e,i)=>t(e,n,i))(DF),Gu=((t,n,e,i,o,r,a,s,l,c,u)=>(d,h)=>{const p=d.createBufferSource();return Vi(p,h),vi(p,h,"playbackRate"),di(p,h,"buffer"),di(p,h,"loop"),di(p,h,"loopEnd"),di(p,h,"loopStart"),n(e,()=>e(d))||(t=>{t.start=(n=>{let e=!1;return(i=0,o=0,r)=>{if(e)throw Li();n.call(t,i,o,r),e=!0}})(t.start)})(p),n(i,()=>i(d))||(t=>{var n;t.start=(n=t.start,(e=0,i=0,o)=>{const r=t.buffer,a=null===r?i:Math.min(r.duration,i);null!==r&&a>r.duration-.5/t.context.sampleRate?n.call(t,e,0,0):n.call(t,e,a,o)})})(p),n(o,()=>o(d))||c(p,d),n(r,()=>r(d))||C1(p),n(a,()=>a(d))||u(p,d),n(s,()=>s(d))||x1(p),t(d,p),p})(Ib,dr,t=>{const n=t.createBufferSource();n.start();try{n.start()}catch{return!0}return!1},t=>{const n=t.createBufferSource(),e=t.createBuffer(1,1,44100);n.buffer=e;try{n.start(0,1)}catch{return!1}return!0},t=>{const n=t.createBufferSource();n.start();try{n.stop()}catch{return!1}return!0},S1,mF,D1,0,(t=>(n,e)=>{const i=e.createBuffer(1,1,44100);null===n.buffer&&(n.buffer=i),t(n,"buffer",o=>()=>{const r=o.call(n);return r===i?null:r},o=>r=>o.call(n,null===r?i:r))})(Mf),bF),Ma=((t,n)=>(e,i,o)=>(t(i).replay(o),n(i,e,o)))((t=>n=>{const e=t(n);if(null===e.renderer)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return e.renderer})(xf),DF),hae=((t,n,e,i,o)=>()=>{const r=new WeakMap;let a=null,s=null;const l=function(){var c=(0,y.Z)(function*(u,d){let h=e(u);const p=bo(h,d);return p||(h=n(d,{buffer:h.buffer,channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,loop:h.loop,loopEnd:h.loopEnd,loopStart:h.loopStart,playbackRate:h.playbackRate.value}),null!==a&&h.start(...a),null!==s&&h.stop(s)),r.set(d,h),p?yield t(d,u.playbackRate,h.playbackRate):yield i(d,u.playbackRate,h.playbackRate),yield o(u,d,h),h});return function(d,h){return c.apply(this,arguments)}}();return{set start(c){a=c},set stop(c){s=c},render(c,u){const d=r.get(u);return void 0!==d?Promise.resolve(d):l(c,u)}}})(Ta,Gu,ri,Ma,oo),Jr=((t,n,e,i,o,r,a,s,l,c,u,d,h)=>(p,g,b,T=null,D=null)=>{const H=b.value,oe=new Ws.AutomationEventList(H),le=g?(t=>({replay(n){for(const e of t)if("exponentialRampToValue"===e.type){const{endTime:i,value:o}=e;n.exponentialRampToValueAtTime(o,i)}else if("linearRampToValue"===e.type){const{endTime:i,value:o}=e;n.linearRampToValueAtTime(o,i)}else if("setTarget"===e.type){const{startTime:i,target:o,timeConstant:r}=e;n.setTargetAtTime(o,i,r)}else if("setValue"===e.type){const{startTime:i,value:o}=e;n.setValueAtTime(o,i)}else{if("setValueCurve"!==e.type)throw new Error("Can't apply an unknown automation.");{const{duration:i,startTime:o,values:r}=e;n.setValueCurveAtTime(r,o,i)}}}}))(oe):null,G={get defaultValue(){return H},get maxValue(){return null===T?b.maxValue:T},get minValue(){return null===D?b.minValue:D},get value(){return b.value},set value(pe){b.value=pe,G.setValueAtTime(pe,p.context.currentTime)},cancelAndHoldAtTime(pe){if("function"==typeof b.cancelAndHoldAtTime)null===le&&oe.flush(p.context.currentTime),oe.add(o(pe)),b.cancelAndHoldAtTime(pe);else{const _e=Array.from(oe).pop();null===le&&oe.flush(p.context.currentTime),oe.add(o(pe));const be=Array.from(oe).pop();b.cancelScheduledValues(pe),_e!==be&&void 0!==be&&("exponentialRampToValue"===be.type?b.exponentialRampToValueAtTime(be.value,be.endTime):"linearRampToValue"===be.type?b.linearRampToValueAtTime(be.value,be.endTime):"setValue"===be.type?b.setValueAtTime(be.value,be.startTime):"setValueCurve"===be.type&&b.setValueCurveAtTime(be.values,be.startTime,be.duration))}return G},cancelScheduledValues:pe=>(null===le&&oe.flush(p.context.currentTime),oe.add(r(pe)),b.cancelScheduledValues(pe),G),exponentialRampToValueAtTime(pe,_e){if(0===pe)throw new RangeError;if(!Number.isFinite(_e)||_e<0)throw new RangeError;const be=p.context.currentTime;return null===le&&oe.flush(be),0===Array.from(oe).length&&(oe.add(c(H,be)),b.setValueAtTime(H,be)),oe.add(a(pe,_e)),b.exponentialRampToValueAtTime(pe,_e),G},linearRampToValueAtTime(pe,_e){const be=p.context.currentTime;return null===le&&oe.flush(be),0===Array.from(oe).length&&(oe.add(c(H,be)),b.setValueAtTime(H,be)),oe.add(s(pe,_e)),b.linearRampToValueAtTime(pe,_e),G},setTargetAtTime:(pe,_e,be)=>(null===le&&oe.flush(p.context.currentTime),oe.add(l(pe,_e,be)),b.setTargetAtTime(pe,_e,be),G),setValueAtTime:(pe,_e)=>(null===le&&oe.flush(p.context.currentTime),oe.add(c(pe,_e)),b.setValueAtTime(pe,_e),G),setValueCurveAtTime(pe,_e,be){const Be=pe instanceof Float32Array?pe:new Float32Array(pe);if(null!==d&&"webkitAudioContext"===d.name){const Fe=_e+be,Qe=p.context.sampleRate,Re=Math.ceil(_e*Qe),Xe=Math.floor(Fe*Qe),ct=Xe-Re,ut=new Float32Array(ct);for(let Ye=0;Ye(n,e)=>{t.set(n,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:e})})(YN),vF,h1,0,Ws.createCancelAndHoldAutomationEvent,Ws.createCancelScheduledValuesAutomationEvent,Ws.createExponentialRampToValueAutomationEvent,Ws.createLinearRampToValueAutomationEvent,Ws.createSetTargetAutomationEvent,Ws.createSetValueAutomationEvent,Ws.createSetValueCurveAutomationEvent,ls,gF),fae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h={...jne,...u},p=o(d,h),g=a(d),b=g?n():null;super(c,!1,p,b),this._audioBufferSourceNodeRenderer=b,this._isBufferNullified=!1,this._isBufferSet=null!==h.buffer,this._nativeAudioBufferSourceNode=p,this._onended=null,this._playbackRate=e(this,g,p.playbackRate,Io,zo)}get buffer(){return this._isBufferNullified?null:this._nativeAudioBufferSourceNode.buffer}set buffer(c){if(this._nativeAudioBufferSourceNode.buffer=c,null!==c){if(this._isBufferSet)throw i();this._isBufferSet=!0}}get loop(){return this._nativeAudioBufferSourceNode.loop}set loop(c){this._nativeAudioBufferSourceNode.loop=c}get loopEnd(){return this._nativeAudioBufferSourceNode.loopEnd}set loopEnd(c){this._nativeAudioBufferSourceNode.loopEnd=c}get loopStart(){return this._nativeAudioBufferSourceNode.loopStart}set loopStart(c){this._nativeAudioBufferSourceNode.loopStart=c}get onended(){return this._onended}set onended(c){const u="function"==typeof c?s(this,c):null;this._nativeAudioBufferSourceNode.onended=u;const d=this._nativeAudioBufferSourceNode.onended;this._onended=null!==d&&d===u?c:d}get playbackRate(){return this._playbackRate}start(c=0,u=0,d){if(this._nativeAudioBufferSourceNode.start(c,u,d),null!==this._audioBufferSourceNodeRenderer&&(this._audioBufferSourceNodeRenderer.start=void 0===d?[c,u]:[c,u,d]),"closed"!==this.context.state){Yu(this);const h=()=>{this._nativeAudioBufferSourceNode.removeEventListener("ended",h),ss(this)&&Cf(this)};this._nativeAudioBufferSourceNode.addEventListener("ended",h)}}stop(c=0){this._nativeAudioBufferSourceNode.stop(c),null!==this._audioBufferSourceNodeRenderer&&(this._audioBufferSourceNodeRenderer.stop=c)}})(Ii,hae,Jr,Li,Gu,ti,Yn,Vu),pae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h=a(d),p=o(d,u,h);super(c,!1,p,h?n(s):null),this._isNodeOfNativeOfflineAudioContext=h,this._nativeAudioDestinationNode=p}get channelCount(){return this._nativeAudioDestinationNode.channelCount}set channelCount(c){if(this._isNodeOfNativeOfflineAudioContext)throw i();if(c>this._nativeAudioDestinationNode.maxChannelCount)throw e();this._nativeAudioDestinationNode.channelCount=c}get channelCountMode(){return this._nativeAudioDestinationNode.channelCountMode}set channelCountMode(c){if(this._isNodeOfNativeOfflineAudioContext)throw i();this._nativeAudioDestinationNode.channelCountMode=c}get maxChannelCount(){return this._nativeAudioDestinationNode.maxChannelCount}})(Ii,t=>{const n=new WeakMap,e=function(){var i=(0,y.Z)(function*(o,r){const a=r.destination;return n.set(r,a),yield t(o,r,a),a});return function(r,a){return i.apply(this,arguments)}}();return{render(i,o){const r=n.get(o);return void 0!==r?Promise.resolve(r):e(i,o)}}},Ea,Li,((t,n)=>(e,i,o)=>{const r=e.destination;if(r.channelCount!==i)try{r.channelCount=i}catch{}o&&"explicit"!==r.channelCountMode&&(r.channelCountMode="explicit"),0===r.maxChannelCount&&Object.defineProperty(r,"maxChannelCount",{value:i});const a=t(e,{channelCount:i,channelCountMode:r.channelCountMode,channelInterpretation:r.channelInterpretation,gain:1});return n(a,"channelCount",s=>()=>s.call(a),s=>l=>{s.call(a,l);try{r.channelCount=l}catch(c){if(l>r.maxChannelCount)throw c}}),n(a,"channelCountMode",s=>()=>s.call(a),s=>l=>{s.call(a,l),r.channelCountMode=l}),n(a,"channelInterpretation",s=>()=>s.call(a),s=>l=>{s.call(a,l),r.channelInterpretation=l}),Object.defineProperty(a,"maxChannelCount",{get:()=>r.maxChannelCount}),a.connect(r),a})($o,Mf),ti,Yn,oo),gae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{Q:u.Q.value,channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,detune:u.detune.value,frequency:u.frequency.value,gain:u.gain.value,type:u.type})),r.set(c,u),d?(yield t(c,l.Q,u.Q),yield t(c,l.detune,u.detune),yield t(c,l.frequency,u.frequency),yield t(c,l.gain,u.gain)):(yield i(c,l.Q,u.Q),yield i(c,l.detune,u.detune),yield i(c,l.frequency,u.frequency),yield i(c,l.gain,u.gain)),yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ta,cF,ri,Ma,oo),ql=(t=>(n,e)=>t.set(n,e))(yF),mae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h={...pie,...u},p=o(d,h),g=a(d);super(c,!1,p,g?e():null),this._Q=n(this,g,p.Q,Io,zo),this._detune=n(this,g,p.detune,1200*Math.log2(Io),-1200*Math.log2(Io)),this._frequency=n(this,g,p.frequency,c.sampleRate/2,0),this._gain=n(this,g,p.gain,40*Math.log10(Io),zo),this._nativeBiquadFilterNode=p,s(this,1)}get detune(){return this._detune}get frequency(){return this._frequency}get gain(){return this._gain}get Q(){return this._Q}get type(){return this._nativeBiquadFilterNode.type}set type(c){this._nativeBiquadFilterNode.type=c}getFrequencyResponse(c,u,d){try{this._nativeBiquadFilterNode.getFrequencyResponse(c,u,d)}catch(h){throw 11===h.code?i():h}if(c.length!==u.length||u.length!==d.length)throw i()}})(Ii,Jr,gae,kb,cF,ti,Yn,ql),Xs=((t,n)=>(e,i,o)=>{const r=new Set;return e.connect=(a=e.connect,(s,l=0,c=0)=>{const u=0===r.size;if(n(s))return a.call(e,s,l,c),t(r,[s,l,c],d=>d[0]===s&&d[1]===l&&d[2]===c,!0),u&&i(),s;a.call(e,s,l),t(r,[s,l],d=>d[0]===s&&d[1]===l,!0),u&&i()}),e.disconnect=(a=>(s,l,c)=>{const u=r.size>0;if(void 0===s)a.apply(e),r.clear();else if("number"==typeof s){a.call(e,s);for(const h of r)h[1]===s&&r.delete(h)}else{n(s)?a.call(e,s,l,c):a.call(e,s,l);for(const h of r)h[0]===s&&(void 0===l||h[1]===l)&&(void 0===c||h[2]===c)&&r.delete(h)}u&&0===r.size&&o()})(e.disconnect),e;var a})(Jl,M1),bae=((t,n)=>(e,i)=>{i.channelCount=1,i.channelCountMode="explicit",Object.defineProperty(i,"channelCount",{get:()=>1,set:()=>{throw t()}}),Object.defineProperty(i,"channelCountMode",{get:()=>"explicit",set:()=>{throw t()}});const o=e.createBufferSource();n(i,()=>{const s=i.numberOfInputs;for(let l=0;lo.disconnect(i))})(Li,Xs),Js=((t,n)=>(e,i)=>{const o=e.createChannelMerger(i.numberOfInputs);return null!==t&&"webkitAudioContext"===t.name&&n(e,o),Vi(o,i),o})(ls,bae),yae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,numberOfInputs:l.numberOfInputs})),i.set(s,l),yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(Js,ri,oo),_ae=((t,n,e,i,o)=>class extends t{constructor(a,s){const l=i(a),c={...yie,...s};super(a,!1,e(l,c),o(l)?n():null)}})(Ii,yae,Js,ti,Yn),vae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,numberOfOutputs:l.numberOfOutputs})),i.set(s,l),yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(Ef,ri,oo),wae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=i(s),u=(t=>({...t,channelCount:t.numberOfOutputs}))({...wie,...l});super(s,!1,e(c,u),o(c)?n():null)}})(Ii,vae,Ef,ti,Yn),Cae=((t,n,e,i)=>(o,{offset:r,...a})=>{const s=o.createBuffer(1,2,44100),l=n(o,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),c=e(o,{...a,gain:r}),u=s.getChannelData(0);u[0]=1,u[1]=1,l.buffer=s,l.loop=!0;const d={get bufferSize(){},get channelCount(){return c.channelCount},set channelCount(g){c.channelCount=g},get channelCountMode(){return c.channelCountMode},set channelCountMode(g){c.channelCountMode=g},get channelInterpretation(){return c.channelInterpretation},set channelInterpretation(g){c.channelInterpretation=g},get context(){return c.context},get inputs(){return[]},get numberOfInputs(){return l.numberOfInputs},get numberOfOutputs(){return c.numberOfOutputs},get offset(){return c.gain},get onended(){return l.onended},set onended(g){l.onended=g},addEventListener:(...g)=>l.addEventListener(g[0],g[1],g[2]),dispatchEvent:(...g)=>l.dispatchEvent(g[0]),removeEventListener:(...g)=>l.removeEventListener(g[0],g[1],g[2]),start(g=0){l.start.call(l,g)},stop(g=0){l.stop.call(l,g)}};return t(o,l),i($u(d,c),()=>l.connect(c),()=>l.disconnect(c))})(Ib,Gu,$o,Xs),Uu=((t,n,e,i,o)=>(r,a)=>{if(void 0===r.createConstantSource)return e(r,a);const s=r.createConstantSource();return Vi(s,a),vi(s,a,"offset"),n(i,()=>i(r))||C1(s),n(o,()=>o(r))||x1(s),t(r,s),s})(Ib,dr,Cae,S1,D1),xae=((t,n,e,i,o)=>()=>{const r=new WeakMap;let a=null,s=null;const l=function(){var c=(0,y.Z)(function*(u,d){let h=e(u);const p=bo(h,d);return p||(h=n(d,{channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,offset:h.offset.value}),null!==a&&h.start(a),null!==s&&h.stop(s)),r.set(d,h),p?yield t(d,u.offset,h.offset):yield i(d,u.offset,h.offset),yield o(u,d,h),h});return function(d,h){return c.apply(this,arguments)}}();return{set start(c){a=c},set stop(c){s=c},render(c,u){const d=r.get(u);return void 0!==d?Promise.resolve(d):l(c,u)}}})(Ta,Uu,ri,Ma,oo),Sae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...Tie,...c},h=i(u,d),p=r(u),g=p?e():null;super(l,!1,h,g),this._constantSourceNodeRenderer=g,this._nativeConstantSourceNode=h,this._offset=n(this,p,h.offset,Io,zo),this._onended=null}get offset(){return this._offset}get onended(){return this._onended}set onended(l){const c="function"==typeof l?a(this,l):null;this._nativeConstantSourceNode.onended=c;const u=this._nativeConstantSourceNode.onended;this._onended=null!==u&&u===c?l:u}start(l=0){if(this._nativeConstantSourceNode.start(l),null!==this._constantSourceNodeRenderer&&(this._constantSourceNodeRenderer.start=l),"closed"!==this.context.state){Yu(this);const c=()=>{this._nativeConstantSourceNode.removeEventListener("ended",c),ss(this)&&Cf(this)};this._nativeConstantSourceNode.addEventListener("ended",c)}}stop(l=0){this._nativeConstantSourceNode.stop(l),null!==this._constantSourceNodeRenderer&&(this._constantSourceNodeRenderer.stop=l)}})(Ii,Jr,xae,Uu,ti,Yn,Vu),EF=((t,n)=>(e,i)=>{const o=e.createConvolver();if(Vi(o,i),i.disableNormalization===o.normalize&&(o.normalize=!i.disableNormalization),di(o,i,"buffer"),i.channelCount>2||(n(o,"channelCount",r=>()=>r.call(o),r=>a=>{if(a>2)throw t();return r.call(o,a)}),"max"===i.channelCountMode))throw t();return n(o,"channelCountMode",r=>()=>r.call(o),r=>a=>{if("max"===a)throw t();return r.call(o,a)}),o})(yo,Mf),Dae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{buffer:l.buffer,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,disableNormalization:!l.normalize})),i.set(s,l),zu(l)?yield e(a,s,l.inputs[0]):yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(EF,ri,oo),Eae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=i(s),u={...Iie,...l},d=e(c,u);super(s,!1,d,o(c)?n():null),this._isBufferNullified=!1,this._nativeConvolverNode=d,null!==u.buffer&&r(this,u.buffer.duration)}get buffer(){return this._isBufferNullified?null:this._nativeConvolverNode.buffer}set buffer(s){if(this._nativeConvolverNode.buffer=s,null===s&&null!==this._nativeConvolverNode.buffer){const l=this._nativeConvolverNode.context;this._nativeConvolverNode.buffer=l.createBuffer(1,1,l.sampleRate),this._isBufferNullified=!0,r(this,0)}else this._isBufferNullified=!1,r(this,null===this._nativeConvolverNode.buffer?0:this._nativeConvolverNode.buffer.duration)}get normalize(){return this._nativeConvolverNode.normalize}set normalize(s){this._nativeConvolverNode.normalize=s}})(Ii,Dae,EF,ti,Yn,ql),Tae=((t,n,e,i,o)=>r=>{const a=new WeakMap,s=function(){var l=(0,y.Z)(function*(c,u){let d=e(c);const h=bo(d,u);return h||(d=n(u,{channelCount:d.channelCount,channelCountMode:d.channelCountMode,channelInterpretation:d.channelInterpretation,delayTime:d.delayTime.value,maxDelayTime:r})),a.set(u,d),h?yield t(u,c.delayTime,d.delayTime):yield i(u,c.delayTime,d.delayTime),yield o(c,u,d),d});return function(u,d){return l.apply(this,arguments)}}();return{render(l,c){const u=a.get(c);return void 0!==u?Promise.resolve(u):s(l,c)}}})(Ta,uF,ri,Ma,oo),Mae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...jie,...c},h=i(u,d),p=r(u);super(l,!1,h,p?e(d.maxDelayTime):null),this._delayTime=n(this,p,h.delayTime),a(this,d.maxDelayTime)}get delayTime(){return this._delayTime}})(Ii,Jr,Tae,uF,ti,Yn,ql),TF=(t=>(n,e)=>{const i=n.createDynamicsCompressor();if(Vi(i,e),e.channelCount>2||"max"===e.channelCountMode)throw t();return vi(i,e,"attack"),vi(i,e,"knee"),vi(i,e,"ratio"),vi(i,e,"release"),vi(i,e,"threshold"),i})(yo),Aae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{attack:u.attack.value,channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,knee:u.knee.value,ratio:u.ratio.value,release:u.release.value,threshold:u.threshold.value})),r.set(c,u),d?(yield t(c,l.attack,u.attack),yield t(c,l.knee,u.knee),yield t(c,l.ratio,u.ratio),yield t(c,l.release,u.release),yield t(c,l.threshold,u.threshold)):(yield i(c,l.attack,u.attack),yield i(c,l.knee,u.knee),yield i(c,l.ratio,u.ratio),yield i(c,l.release,u.release),yield i(c,l.threshold,u.threshold)),yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ta,TF,ri,Ma,oo),kae=((t,n,e,i,o,r,a,s)=>class extends t{constructor(c,u){const d=r(c),h={...Gie,...u},p=i(d,h),g=a(d);super(c,!1,p,g?e():null),this._attack=n(this,g,p.attack),this._knee=n(this,g,p.knee),this._nativeDynamicsCompressorNode=p,this._ratio=n(this,g,p.ratio),this._release=n(this,g,p.release),this._threshold=n(this,g,p.threshold),s(this,.006)}get attack(){return this._attack}get channelCount(){return this._nativeDynamicsCompressorNode.channelCount}set channelCount(c){const u=this._nativeDynamicsCompressorNode.channelCount;if(this._nativeDynamicsCompressorNode.channelCount=c,c>2)throw this._nativeDynamicsCompressorNode.channelCount=u,o()}get channelCountMode(){return this._nativeDynamicsCompressorNode.channelCountMode}set channelCountMode(c){const u=this._nativeDynamicsCompressorNode.channelCountMode;if(this._nativeDynamicsCompressorNode.channelCountMode=c,"max"===c)throw this._nativeDynamicsCompressorNode.channelCountMode=u,o()}get knee(){return this._knee}get ratio(){return this._ratio}get reduction(){return"number"==typeof this._nativeDynamicsCompressorNode.reduction.value?this._nativeDynamicsCompressorNode.reduction.value:this._nativeDynamicsCompressorNode.reduction}get release(){return this._release}get threshold(){return this._threshold}})(Ii,Jr,Aae,TF,yo,ti,Yn,ql),Iae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,gain:u.gain.value})),r.set(c,u),d?yield t(c,l.gain,u.gain):yield i(c,l.gain,u.gain),yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ta,$o,ri,Ma,oo),Oae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=o(s),u={...eoe,...l},d=i(c,u),h=r(c);super(s,!1,d,h?e():null),this._gain=n(this,h,d.gain,Io,zo)}get gain(){return this._gain}})(Ii,Jr,Iae,$o,ti,Yn),Rae=((t,n,e,i)=>(o,r,{channelCount:a,channelCountMode:s,channelInterpretation:l,feedback:c,feedforward:u})=>{const d=lF(r,o.sampleRate),h=c instanceof Float64Array?c:new Float64Array(c),p=u instanceof Float64Array?u:new Float64Array(u),g=h.length,b=p.length,T=Math.min(g,b);if(0===g||g>20)throw i();if(0===h[0])throw n();if(0===b||b>20)throw i();if(0===p[0])throw n();if(1!==h[0]){for(let be=0;be{const Be=be.inputBuffer,Fe=be.outputBuffer,Qe=Be.numberOfChannels;for(let Re=0;ReD.addEventListener(be[0],be[1],be[2]),dispatchEvent:(...be)=>D.dispatchEvent(be[0]),getFrequencyResponse(be,Be,Fe){if(be.length!==Be.length||Be.length!==Fe.length)throw t();const Qe=be.length;for(let Re=0;ReD.removeEventListener(be[0],be[1],be[2])},D)})(kb,Li,Tf,yo),Ob=((t,n,e,i)=>o=>t(Kl,()=>Kl(o))?Promise.resolve(t(i,i)).then(r=>{if(!r){const a=e(o,512,0,1);o.oncomplete=()=>{a.onaudioprocess=null,a.disconnect()},a.onaudioprocess=()=>o.currentTime,a.connect(o.destination)}return o.startRendering()}):new Promise(r=>{const a=n(o,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});o.oncomplete=s=>{a.disconnect(),r(s.renderedBuffer)},a.connect(o.destination),o.startRendering()}))(dr,$o,Tf,((t,n)=>()=>{if(null===n)return Promise.resolve(!1);const e=new n(1,1,44100),i=t(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(o=>{e.oncomplete=()=>{i.disconnect(),o(0!==e.currentTime)},e.startRendering()})})($o,Ji)),Pae=((t,n,e,i,o)=>(r,a)=>{const s=new WeakMap;let l=null;const c=function(){var u=(0,y.Z)(function*(d,h){let p=null,g=n(d);const b=bo(g,h);if(void 0===h.createIIRFilter?p=t(h,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}):b||(g=h.createIIRFilter(a,r)),s.set(h,null===p?g:p),null!==p){if(null===l){if(null===e)throw new Error("Missing the native OfflineAudioContext constructor.");const D=new e(d.context.destination.channelCount,d.context.length,h.sampleRate);l=(0,y.Z)(function*(){return yield i(d,D,D.destination),((t,n,e,i)=>{const o=e instanceof Float64Array?e:new Float64Array(e),r=i instanceof Float64Array?i:new Float64Array(i),a=o.length,s=r.length,l=Math.min(a,s);if(1!==o[0]){for(let g=0;g(n,e,i)=>{if(void 0===n.createIIRFilter)return t(n,e,i);const o=n.createIIRFilter(i.feedforward,i.feedback);return Vi(o,i),o})(Rae),Fae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=i(s),u=o(c),d={...hoe,...l},h=n(c,u?null:s.baseLatency,d);super(s,!1,h,u?e(d.feedback,d.feedforward):null),(t=>{var n;t.getFrequencyResponse=(n=t.getFrequencyResponse,(e,i,o)=>{if(e.length!==i.length||i.length!==o.length)throw kb();return n.call(t,e,i,o)})})(h),this._nativeIIRFilterNode=h,r(this,1)}getFrequencyResponse(s,l,c){return this._nativeIIRFilterNode.getFrequencyResponse(s,l,c)}})(Ii,Nae,Pae,ti,Yn,ql),Lae=((t,n,e,i,o,r,a,s)=>(l,c)=>{const u=c.listener,{forwardX:h,forwardY:p,forwardZ:g,positionX:b,positionY:T,positionZ:D,upX:H,upY:oe,upZ:le}=void 0===u.forwardX?(()=>{const G=new Float32Array(1),pe=n(c,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),_e=a(c);let be=!1,Be=[0,0,-1,0,1,0],Fe=[0,0,0];const Qe=()=>{if(be)return;be=!0;const ut=i(c,256,9,0);ut.onaudioprocess=({inputBuffer:Se})=>{const Ye=[r(Se,G,0),r(Se,G,1),r(Se,G,2),r(Se,G,3),r(Se,G,4),r(Se,G,5)];Ye.some((it,St)=>it!==Be[St])&&(u.setOrientation(...Ye),Be=Ye);const We=[r(Se,G,6),r(Se,G,7),r(Se,G,8)];We.some((it,St)=>it!==Fe[St])&&(u.setPosition(...We),Fe=We)},pe.connect(ut)},Re=ut=>Se=>{Se!==Be[ut]&&(Be[ut]=Se,u.setOrientation(...Be))},Xe=ut=>Se=>{Se!==Fe[ut]&&(Fe[ut]=Se,u.setPosition(...Fe))},ct=(ut,Se,Ye)=>{const We=e(c,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:Se});We.connect(pe,0,ut),We.start(),Object.defineProperty(We.offset,"defaultValue",{get:()=>Se});const it=t({context:l},_e,We.offset,Io,zo);return s(it,"value",St=>()=>St.call(it),St=>At=>{try{St.call(it,At)}catch(on){if(9!==on.code)throw on}Qe(),_e&&Ye(At)}),it.cancelAndHoldAtTime=(St=it.cancelAndHoldAtTime,_e?()=>{throw o()}:(...At)=>{const on=St.apply(it,At);return Qe(),on}),it.cancelScheduledValues=(St=>_e?()=>{throw o()}:(...At)=>{const on=St.apply(it,At);return Qe(),on})(it.cancelScheduledValues),it.exponentialRampToValueAtTime=(St=>_e?()=>{throw o()}:(...At)=>{const on=St.apply(it,At);return Qe(),on})(it.exponentialRampToValueAtTime),it.linearRampToValueAtTime=(St=>_e?()=>{throw o()}:(...At)=>{const on=St.apply(it,At);return Qe(),on})(it.linearRampToValueAtTime),it.setTargetAtTime=(St=>_e?()=>{throw o()}:(...At)=>{const on=St.apply(it,At);return Qe(),on})(it.setTargetAtTime),it.setValueAtTime=(St=>_e?()=>{throw o()}:(...At)=>{const on=St.apply(it,At);return Qe(),on})(it.setValueAtTime),it.setValueCurveAtTime=(St=>_e?()=>{throw o()}:(...At)=>{const on=St.apply(it,At);return Qe(),on})(it.setValueCurveAtTime),it;var St};return{forwardX:ct(0,0,Re(0)),forwardY:ct(1,0,Re(1)),forwardZ:ct(2,-1,Re(2)),positionX:ct(6,0,Xe(0)),positionY:ct(7,0,Xe(1)),positionZ:ct(8,0,Xe(2)),upX:ct(3,0,Re(3)),upY:ct(4,1,Re(4)),upZ:ct(5,0,Re(5))}})():u;return{get forwardX(){return h},get forwardY(){return p},get forwardZ(){return g},get positionX(){return b},get positionY(){return T},get positionZ(){return D},get upX(){return H},get upY(){return oe},get upZ(){return le}}})(Jr,Js,Uu,Tf,yo,fF,Yn,Mf),MF=new WeakMap,O1=((t,n,e,i,o,r)=>class extends e{constructor(s,l){super(s),this._nativeContext=s,yb.set(this,s),i(s)&&o.set(s,new Set),this._destination=new t(this,l),this._listener=n(this,s),this._onstatechange=null}get currentTime(){return this._nativeContext.currentTime}get destination(){return this._destination}get listener(){return this._listener}get onstatechange(){return this._onstatechange}set onstatechange(s){const l="function"==typeof s?r(this,s):null;this._nativeContext.onstatechange=l;const c=this._nativeContext.onstatechange;this._onstatechange=null!==c&&c===l?s:c}get sampleRate(){return this._nativeContext.sampleRate}get state(){return this._nativeContext.state}})(pae,Lae,wF,Yn,MF,Vu),AF=((t,n,e,i,o,r)=>(a,s)=>{const l=a.createOscillator();return Vi(l,s),vi(l,s,"detune"),vi(l,s,"frequency"),void 0!==s.periodicWave?l.setPeriodicWave(s.periodicWave):di(l,s,"type"),n(e,()=>e(a))||C1(l),n(i,()=>i(a))||r(l,a),n(o,()=>o(a))||x1(l),t(a,l),l})(Ib,dr,S1,mF,D1,bF),jae=((t,n,e,i,o)=>()=>{const r=new WeakMap;let a=null,s=null,l=null;const c=function(){var u=(0,y.Z)(function*(d,h){let p=e(d);const g=bo(p,h);return g||(p=n(h,{channelCount:p.channelCount,channelCountMode:p.channelCountMode,channelInterpretation:p.channelInterpretation,detune:p.detune.value,frequency:p.frequency.value,periodicWave:null===a?void 0:a,type:p.type}),null!==s&&p.start(s),null!==l&&p.stop(l)),r.set(h,p),g?(yield t(h,d.detune,p.detune),yield t(h,d.frequency,p.frequency)):(yield i(h,d.detune,p.detune),yield i(h,d.frequency,p.frequency)),yield o(d,h,p),p});return function(h,p){return u.apply(this,arguments)}}();return{set periodicWave(u){a=u},set start(u){s=u},set stop(u){l=u},render(u,d){const h=r.get(d);return void 0!==h?Promise.resolve(h):c(u,d)}}})(Ta,AF,ri,Ma,oo),Bae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...Cre,...c},h=e(u,d),p=r(u),g=p?i():null,b=l.sampleRate/2;super(l,!1,h,g),this._detune=n(this,p,h.detune,153600,-153600),this._frequency=n(this,p,h.frequency,b,-b),this._nativeOscillatorNode=h,this._onended=null,this._oscillatorNodeRenderer=g,null!==this._oscillatorNodeRenderer&&void 0!==d.periodicWave&&(this._oscillatorNodeRenderer.periodicWave=d.periodicWave)}get detune(){return this._detune}get frequency(){return this._frequency}get onended(){return this._onended}set onended(l){const c="function"==typeof l?a(this,l):null;this._nativeOscillatorNode.onended=c;const u=this._nativeOscillatorNode.onended;this._onended=null!==u&&u===c?l:u}get type(){return this._nativeOscillatorNode.type}set type(l){this._nativeOscillatorNode.type=l,null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.periodicWave=null)}setPeriodicWave(l){this._nativeOscillatorNode.setPeriodicWave(l),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.periodicWave=l)}start(l=0){if(this._nativeOscillatorNode.start(l),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.start=l),"closed"!==this.context.state){Yu(this);const c=()=>{this._nativeOscillatorNode.removeEventListener("ended",c),ss(this)&&Cf(this)};this._nativeOscillatorNode.addEventListener("ended",c)}}stop(l=0){this._nativeOscillatorNode.stop(l),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.stop=l)}})(Ii,Jr,AF,jae,ti,Yn,Vu),kF=(t=>(n,e)=>{const i=t(n,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),o=n.createBuffer(1,2,44100);return i.buffer=o,i.loop=!0,i.connect(e),i.start(),()=>{i.stop(),i.disconnect(e)}})(Gu),Hae=((t,n,e,i,o)=>(r,{curve:a,oversample:s,...l})=>{const c=r.createWaveShaper(),u=r.createWaveShaper();Vi(c,l),Vi(u,l);const d=e(r,{...l,gain:1}),h=e(r,{...l,gain:-1}),p=e(r,{...l,gain:1}),g=e(r,{...l,gain:-1});let b=null,T=!1,D=null;const H={get bufferSize(){},get channelCount(){return c.channelCount},set channelCount(G){d.channelCount=G,h.channelCount=G,c.channelCount=G,p.channelCount=G,u.channelCount=G,g.channelCount=G},get channelCountMode(){return c.channelCountMode},set channelCountMode(G){d.channelCountMode=G,h.channelCountMode=G,c.channelCountMode=G,p.channelCountMode=G,u.channelCountMode=G,g.channelCountMode=G},get channelInterpretation(){return c.channelInterpretation},set channelInterpretation(G){d.channelInterpretation=G,h.channelInterpretation=G,c.channelInterpretation=G,p.channelInterpretation=G,u.channelInterpretation=G,g.channelInterpretation=G},get context(){return c.context},get curve(){return D},set curve(G){if(null!==G&&G.length<2)throw n();if(null===G)c.curve=G,u.curve=G;else{const pe=G.length,_e=new Float32Array(pe+2-pe%2),be=new Float32Array(pe+2-pe%2);_e[0]=G[0],be[0]=-G[pe-1];const Be=Math.ceil((pe+1)/2),Fe=(pe+1)/2-1;for(let Qe=1;Qed.addEventListener(G[0],G[1],G[2]),dispatchEvent:(...G)=>d.dispatchEvent(G[0]),removeEventListener:(...G)=>d.removeEventListener(G[0],G[1],G[2])};return null!==a&&(H.curve=a instanceof Float32Array?a:new Float32Array(a)),s!==H.oversample&&(H.oversample=s),o($u(H,p),()=>{d.connect(c).connect(p),d.connect(h).connect(u).connect(g).connect(p),T=!0,i(D)&&(b=t(r,d))},()=>{d.disconnect(c),c.disconnect(p),d.disconnect(h),h.disconnect(u),u.disconnect(g),g.disconnect(p),T=!1,null!==b&&(b(),b=null)})})(kF,Li,$o,pF,Xs),Rb=((t,n,e,i,o,r,a)=>(s,l)=>{const c=s.createWaveShaper();if(null!==r&&"webkitAudioContext"===r.name&&void 0===s.createGain().gain.automationRate)return e(s,l);Vi(c,l);const u=null===l.curve||l.curve instanceof Float32Array?l.curve:new Float32Array(l.curve);if(null!==u&&u.length<2)throw n();di(c,{curve:u},"curve"),di(c,l,"oversample");let d=null,h=!1;return a(c,"curve",b=>()=>b.call(c),b=>T=>(b.call(c,T),h&&(i(T)&&null===d?d=t(s,c):!i(T)&&null!==d&&(d(),d=null)),T)),o(c,()=>{h=!0,i(c.curve)&&(d=t(s,c))},()=>{h=!1,null!==d&&(d(),d=null)})})(kF,Li,Hae,pF,Xs,ls,Mf),Yae=((t,n,e,i,o,r,a,s,l,c)=>(u,{coneInnerAngle:d,coneOuterAngle:h,coneOuterGain:p,distanceModel:g,maxDistance:b,orientationX:T,orientationY:D,orientationZ:H,panningModel:oe,positionX:le,positionY:G,positionZ:pe,refDistance:_e,rolloffFactor:be,...Be})=>{const Fe=u.createPanner();if(Be.channelCount>2||"max"===Be.channelCountMode)throw a();Vi(Fe,Be);const Qe={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},Re=e(u,{...Qe,channelInterpretation:"speakers",numberOfInputs:6}),Xe=i(u,{...Be,gain:1}),ct=i(u,{...Qe,gain:1}),ut=i(u,{...Qe,gain:0}),Se=i(u,{...Qe,gain:0}),Ye=i(u,{...Qe,gain:0}),We=i(u,{...Qe,gain:0}),it=i(u,{...Qe,gain:0}),St=o(u,256,6,1),At=r(u,{...Qe,curve:new Float32Array([1,1]),oversample:"none"});let on=[T,D,H],Rn=[le,G,pe];const sn=new Float32Array(1);St.onaudioprocess=({inputBuffer:dt})=>{const Cn=[l(dt,sn,0),l(dt,sn,1),l(dt,sn,2)];Cn.some((Ar,Ks)=>Ar!==on[Ks])&&(Fe.setOrientation(...Cn),on=Cn);const ro=[l(dt,sn,3),l(dt,sn,4),l(dt,sn,5)];ro.some((Ar,Ks)=>Ar!==Rn[Ks])&&(Fe.setPosition(...ro),Rn=ro)},Object.defineProperty(ut.gain,"defaultValue",{get:()=>0}),Object.defineProperty(Se.gain,"defaultValue",{get:()=>0}),Object.defineProperty(Ye.gain,"defaultValue",{get:()=>0}),Object.defineProperty(We.gain,"defaultValue",{get:()=>0}),Object.defineProperty(it.gain,"defaultValue",{get:()=>0});const ln={get bufferSize(){},get channelCount(){return Fe.channelCount},set channelCount(dt){if(dt>2)throw a();Xe.channelCount=dt,Fe.channelCount=dt},get channelCountMode(){return Fe.channelCountMode},set channelCountMode(dt){if("max"===dt)throw a();Xe.channelCountMode=dt,Fe.channelCountMode=dt},get channelInterpretation(){return Fe.channelInterpretation},set channelInterpretation(dt){Xe.channelInterpretation=dt,Fe.channelInterpretation=dt},get coneInnerAngle(){return Fe.coneInnerAngle},set coneInnerAngle(dt){Fe.coneInnerAngle=dt},get coneOuterAngle(){return Fe.coneOuterAngle},set coneOuterAngle(dt){Fe.coneOuterAngle=dt},get coneOuterGain(){return Fe.coneOuterGain},set coneOuterGain(dt){if(dt<0||dt>1)throw n();Fe.coneOuterGain=dt},get context(){return Fe.context},get distanceModel(){return Fe.distanceModel},set distanceModel(dt){Fe.distanceModel=dt},get inputs(){return[Xe]},get maxDistance(){return Fe.maxDistance},set maxDistance(dt){if(dt<0)throw new RangeError;Fe.maxDistance=dt},get numberOfInputs(){return Fe.numberOfInputs},get numberOfOutputs(){return Fe.numberOfOutputs},get orientationX(){return ct.gain},get orientationY(){return ut.gain},get orientationZ(){return Se.gain},get panningModel(){return Fe.panningModel},set panningModel(dt){Fe.panningModel=dt},get positionX(){return Ye.gain},get positionY(){return We.gain},get positionZ(){return it.gain},get refDistance(){return Fe.refDistance},set refDistance(dt){if(dt<0)throw new RangeError;Fe.refDistance=dt},get rolloffFactor(){return Fe.rolloffFactor},set rolloffFactor(dt){if(dt<0)throw new RangeError;Fe.rolloffFactor=dt},addEventListener:(...dt)=>Xe.addEventListener(dt[0],dt[1],dt[2]),dispatchEvent:(...dt)=>Xe.dispatchEvent(dt[0]),removeEventListener:(...dt)=>Xe.removeEventListener(dt[0],dt[1],dt[2])};return d!==ln.coneInnerAngle&&(ln.coneInnerAngle=d),h!==ln.coneOuterAngle&&(ln.coneOuterAngle=h),p!==ln.coneOuterGain&&(ln.coneOuterGain=p),g!==ln.distanceModel&&(ln.distanceModel=g),b!==ln.maxDistance&&(ln.maxDistance=b),T!==ln.orientationX.value&&(ln.orientationX.value=T),D!==ln.orientationY.value&&(ln.orientationY.value=D),H!==ln.orientationZ.value&&(ln.orientationZ.value=H),oe!==ln.panningModel&&(ln.panningModel=oe),le!==ln.positionX.value&&(ln.positionX.value=le),G!==ln.positionY.value&&(ln.positionY.value=G),pe!==ln.positionZ.value&&(ln.positionZ.value=pe),_e!==ln.refDistance&&(ln.refDistance=_e),be!==ln.rolloffFactor&&(ln.rolloffFactor=be),(1!==on[0]||0!==on[1]||0!==on[2])&&Fe.setOrientation(...on),(0!==Rn[0]||0!==Rn[1]||0!==Rn[2])&&Fe.setPosition(...Rn),c($u(ln,Fe),()=>{Xe.connect(Fe),t(Xe,At,0,0),At.connect(ct).connect(Re,0,0),At.connect(ut).connect(Re,0,1),At.connect(Se).connect(Re,0,2),At.connect(Ye).connect(Re,0,3),At.connect(We).connect(Re,0,4),At.connect(it).connect(Re,0,5),Re.connect(St).connect(u.destination)},()=>{Xe.disconnect(Fe),s(Xe,At,0,0),At.disconnect(ct),ct.disconnect(Re),At.disconnect(ut),ut.disconnect(Re),At.disconnect(Se),Se.disconnect(Re),At.disconnect(Ye),Ye.disconnect(Re),At.disconnect(We),We.disconnect(Re),At.disconnect(it),it.disconnect(Re),Re.disconnect(St),St.disconnect(u.destination)})})(xb,Li,Js,$o,Tf,Rb,yo,Sb,fF,Xs),IF=(t=>(n,e)=>{const i=n.createPanner();return void 0===i.orientationX?t(n,e):(Vi(i,e),vi(i,e,"orientationX"),vi(i,e,"orientationY"),vi(i,e,"orientationZ"),vi(i,e,"positionX"),vi(i,e,"positionY"),vi(i,e,"positionZ"),di(i,e,"coneInnerAngle"),di(i,e,"coneOuterAngle"),di(i,e,"coneOuterGain"),di(i,e,"distanceModel"),di(i,e,"maxDistance"),di(i,e,"panningModel"),di(i,e,"refDistance"),di(i,e,"rolloffFactor"),i)})(Yae),zae=((t,n,e,i,o,r,a,s,l,c)=>()=>{const u=new WeakMap;let d=null;const h=function(){var p=(0,y.Z)(function*(g,b){let T=null,D=r(g);const H={channelCount:D.channelCount,channelCountMode:D.channelCountMode,channelInterpretation:D.channelInterpretation},oe={...H,coneInnerAngle:D.coneInnerAngle,coneOuterAngle:D.coneOuterAngle,coneOuterGain:D.coneOuterGain,distanceModel:D.distanceModel,maxDistance:D.maxDistance,panningModel:D.panningModel,refDistance:D.refDistance,rolloffFactor:D.rolloffFactor},le=bo(D,b);if("bufferSize"in D)T=i(b,{...H,gain:1});else if(!le){const G={...oe,orientationX:D.orientationX.value,orientationY:D.orientationY.value,orientationZ:D.orientationZ.value,positionX:D.positionX.value,positionY:D.positionY.value,positionZ:D.positionZ.value};D=o(b,G)}if(u.set(b,null===T?D:T),null!==T){if(null===d){if(null===a)throw new Error("Missing the native OfflineAudioContext constructor.");const Re=new a(6,g.context.length,b.sampleRate),Xe=n(Re,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6});Xe.connect(Re.destination),d=(0,y.Z)(function*(){const ct=yield Promise.all([g.orientationX,g.orientationY,g.orientationZ,g.positionX,g.positionY,g.positionZ].map(function(){var ut=(0,y.Z)(function*(Se,Ye){const We=e(Re,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:0===Ye?1:0});return yield s(Re,Se,We.offset),We});return function(Se,Ye){return ut.apply(this,arguments)}}()));for(let ut=0;ut<6;ut+=1)ct[ut].connect(Xe,0,ut),ct[ut].start(0);return c(Re)})()}const G=yield d,pe=i(b,{...H,gain:1});yield l(g,b,pe);const _e=[];for(let Re=0;Reut!==be[Se])||ct.some((ut,Se)=>ut!==Be[Se])){be=Xe,Be=ct;const ut=Re/b.sampleRate;Fe.gain.setValueAtTime(0,ut),Fe=i(b,{...H,gain:0}),Qe=o(b,{...oe,orientationX:be[0],orientationY:be[1],orientationZ:be[2],positionX:Be[0],positionY:Be[1],positionZ:Be[2]}),Fe.gain.setValueAtTime(1,ut),pe.connect(Fe).connect(Qe.inputs[0]),Qe.connect(T)}}return T}return le?(yield t(b,g.orientationX,D.orientationX),yield t(b,g.orientationY,D.orientationY),yield t(b,g.orientationZ,D.orientationZ),yield t(b,g.positionX,D.positionX),yield t(b,g.positionY,D.positionY),yield t(b,g.positionZ,D.positionZ)):(yield s(b,g.orientationX,D.orientationX),yield s(b,g.orientationY,D.orientationY),yield s(b,g.orientationZ,D.orientationZ),yield s(b,g.positionX,D.positionX),yield s(b,g.positionY,D.positionY),yield s(b,g.positionZ,D.positionZ)),zu(D)?yield l(g,b,D.inputs[0]):yield l(g,b,D),D});return function(b,T){return p.apply(this,arguments)}}();return{render(p,g){const b=u.get(g);return void 0!==b?Promise.resolve(b):h(p,g)}}})(Ta,Js,Uu,$o,IF,ri,Ji,Ma,oo,Ob),$ae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...Dre,...c},h=e(u,d),p=r(u);super(l,!1,h,p?i():null),this._nativePannerNode=h,this._orientationX=n(this,p,h.orientationX,Io,zo),this._orientationY=n(this,p,h.orientationY,Io,zo),this._orientationZ=n(this,p,h.orientationZ,Io,zo),this._positionX=n(this,p,h.positionX,Io,zo),this._positionY=n(this,p,h.positionY,Io,zo),this._positionZ=n(this,p,h.positionZ,Io,zo),a(this,1)}get coneInnerAngle(){return this._nativePannerNode.coneInnerAngle}set coneInnerAngle(l){this._nativePannerNode.coneInnerAngle=l}get coneOuterAngle(){return this._nativePannerNode.coneOuterAngle}set coneOuterAngle(l){this._nativePannerNode.coneOuterAngle=l}get coneOuterGain(){return this._nativePannerNode.coneOuterGain}set coneOuterGain(l){this._nativePannerNode.coneOuterGain=l}get distanceModel(){return this._nativePannerNode.distanceModel}set distanceModel(l){this._nativePannerNode.distanceModel=l}get maxDistance(){return this._nativePannerNode.maxDistance}set maxDistance(l){this._nativePannerNode.maxDistance=l}get orientationX(){return this._orientationX}get orientationY(){return this._orientationY}get orientationZ(){return this._orientationZ}get panningModel(){return this._nativePannerNode.panningModel}set panningModel(l){this._nativePannerNode.panningModel=l}get positionX(){return this._positionX}get positionY(){return this._positionY}get positionZ(){return this._positionZ}get refDistance(){return this._nativePannerNode.refDistance}set refDistance(l){this._nativePannerNode.refDistance=l}get rolloffFactor(){return this._nativePannerNode.rolloffFactor}set rolloffFactor(l){this._nativePannerNode.rolloffFactor=l}})(Ii,Jr,IF,zae,ti,Yn,ql),Vae=(t=>(n,{disableNormalization:e,imag:i,real:o})=>{const r=i instanceof Float32Array?i:new Float32Array(i),a=o instanceof Float32Array?o:new Float32Array(o),s=n.createPeriodicWave(a,r,{disableNormalization:e});if(Array.from(i).length<2)throw t();return s})(Ea),Zae=((t,n,e,i)=>class Kj{constructor(r,a){const s=n(r),l=(t=>{const{imag:n,real:e}=t;return void 0===n?void 0===e?{...t,imag:[0,0],real:[0,0]}:{...t,imag:Array.from(e,()=>0),real:e}:void 0===e?{...t,imag:n,real:Array.from(n,()=>0)}:{...t,imag:n,real:e}})({...Mre,...a}),c=t(s,l);return e.add(c),c}static[Symbol.hasInstance](r){return null!==r&&"object"==typeof r&&Object.getPrototypeOf(r)===Kj.prototype||e.has(r)}})(Vae,ti,new WeakSet),Gae=((t,n,e,i,o,r)=>{const s=new Float32Array([1,1]),l=Math.PI/2,c={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},u={...c,oversample:"none"},p=(g,b,T,D,H)=>{if(1===b)return((g,b,T,D)=>{const H=new Float32Array(16385),oe=new Float32Array(16385);for(let Be=0;Be<16385;Be+=1){const Fe=Be/16384*l;H[Be]=Math.cos(Fe),oe[Be]=Math.sin(Fe)}const le=e(g,{...c,gain:0}),G=i(g,{...u,curve:H}),pe=i(g,{...u,curve:s}),_e=e(g,{...c,gain:0}),be=i(g,{...u,curve:oe});return{connectGraph(){b.connect(le),b.connect(void 0===pe.inputs?pe:pe.inputs[0]),b.connect(_e),pe.connect(T),T.connect(void 0===G.inputs?G:G.inputs[0]),T.connect(void 0===be.inputs?be:be.inputs[0]),G.connect(le.gain),be.connect(_e.gain),le.connect(D,0,0),_e.connect(D,0,1)},disconnectGraph(){b.disconnect(le),b.disconnect(void 0===pe.inputs?pe:pe.inputs[0]),b.disconnect(_e),pe.disconnect(T),T.disconnect(void 0===G.inputs?G:G.inputs[0]),T.disconnect(void 0===be.inputs?be:be.inputs[0]),G.disconnect(le.gain),be.disconnect(_e.gain),le.disconnect(D,0,0),_e.disconnect(D,0,1)}}})(g,T,D,H);if(2===b)return((g,b,T,D)=>{const H=new Float32Array(16385),oe=new Float32Array(16385),le=new Float32Array(16385),G=new Float32Array(16385),pe=Math.floor(8192.5);for(let Ye=0;Ye<16385;Ye+=1)if(Ye>pe){const We=(Ye-pe)/(16384-pe)*l;H[Ye]=Math.cos(We),oe[Ye]=Math.sin(We),le[Ye]=0,G[Ye]=1}else{const We=Ye/(16384-pe)*l;H[Ye]=1,oe[Ye]=0,le[Ye]=Math.cos(We),G[Ye]=Math.sin(We)}const _e=n(g,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),be=e(g,{...c,gain:0}),Be=i(g,{...u,curve:H}),Fe=e(g,{...c,gain:0}),Qe=i(g,{...u,curve:oe}),Re=i(g,{...u,curve:s}),Xe=e(g,{...c,gain:0}),ct=i(g,{...u,curve:le}),ut=e(g,{...c,gain:0}),Se=i(g,{...u,curve:G});return{connectGraph(){b.connect(_e),b.connect(void 0===Re.inputs?Re:Re.inputs[0]),_e.connect(be,0),_e.connect(Fe,0),_e.connect(Xe,1),_e.connect(ut,1),Re.connect(T),T.connect(void 0===Be.inputs?Be:Be.inputs[0]),T.connect(void 0===Qe.inputs?Qe:Qe.inputs[0]),T.connect(void 0===ct.inputs?ct:ct.inputs[0]),T.connect(void 0===Se.inputs?Se:Se.inputs[0]),Be.connect(be.gain),Qe.connect(Fe.gain),ct.connect(Xe.gain),Se.connect(ut.gain),be.connect(D,0,0),Xe.connect(D,0,0),Fe.connect(D,0,1),ut.connect(D,0,1)},disconnectGraph(){b.disconnect(_e),b.disconnect(void 0===Re.inputs?Re:Re.inputs[0]),_e.disconnect(be,0),_e.disconnect(Fe,0),_e.disconnect(Xe,1),_e.disconnect(ut,1),Re.disconnect(T),T.disconnect(void 0===Be.inputs?Be:Be.inputs[0]),T.disconnect(void 0===Qe.inputs?Qe:Qe.inputs[0]),T.disconnect(void 0===ct.inputs?ct:ct.inputs[0]),T.disconnect(void 0===Se.inputs?Se:Se.inputs[0]),Be.disconnect(be.gain),Qe.disconnect(Fe.gain),ct.disconnect(Xe.gain),Se.disconnect(ut.gain),be.disconnect(D,0,0),Xe.disconnect(D,0,0),Fe.disconnect(D,0,1),ut.disconnect(D,0,1)}}})(g,T,D,H);throw o()};return(g,{channelCount:b,channelCountMode:T,pan:D,...H})=>{if("max"===T)throw o();const oe=t(g,{...H,channelCount:1,channelCountMode:T,numberOfInputs:2}),le=e(g,{...H,channelCount:b,channelCountMode:T,gain:1}),G=e(g,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:D});let{connectGraph:pe,disconnectGraph:_e}=p(g,b,le,G,oe);Object.defineProperty(G.gain,"defaultValue",{get:()=>0}),Object.defineProperty(G.gain,"maxValue",{get:()=>1}),Object.defineProperty(G.gain,"minValue",{get:()=>-1});const be={get bufferSize(){},get channelCount(){return le.channelCount},set channelCount(Re){le.channelCount!==Re&&(Be&&_e(),({connectGraph:pe,disconnectGraph:_e}=p(g,Re,le,G,oe)),Be&&pe()),le.channelCount=Re},get channelCountMode(){return le.channelCountMode},set channelCountMode(Re){if("clamped-max"===Re||"max"===Re)throw o();le.channelCountMode=Re},get channelInterpretation(){return le.channelInterpretation},set channelInterpretation(Re){le.channelInterpretation=Re},get context(){return le.context},get inputs(){return[le]},get numberOfInputs(){return le.numberOfInputs},get numberOfOutputs(){return le.numberOfOutputs},get pan(){return G.gain},addEventListener:(...Re)=>le.addEventListener(Re[0],Re[1],Re[2]),dispatchEvent:(...Re)=>le.dispatchEvent(Re[0]),removeEventListener:(...Re)=>le.removeEventListener(Re[0],Re[1],Re[2])};let Be=!1;return r($u(be,oe),()=>{pe(),Be=!0},()=>{_e(),Be=!1})}})(Js,Ef,$o,Rb,yo,Xs),OF=((t,n)=>(e,i)=>{const o=i.channelCountMode;if("clamped-max"===o)throw n();if(void 0===e.createStereoPanner)return t(e,i);const r=e.createStereoPanner();return Vi(r,i),vi(r,i,"pan"),Object.defineProperty(r,"channelCountMode",{get:()=>o,set:a=>{if(a!==o)throw n()}}),r})(Gae,yo),Uae=((t,n,e,i,o)=>()=>{const r=new WeakMap,a=function(){var s=(0,y.Z)(function*(l,c){let u=e(l);const d=bo(u,c);return d||(u=n(c,{channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,pan:u.pan.value})),r.set(c,u),d?yield t(c,l.pan,u.pan):yield i(c,l.pan,u.pan),zu(u)?yield o(l,c,u.inputs[0]):yield o(l,c,u),u});return function(c,u){return s.apply(this,arguments)}}();return{render(s,l){const c=r.get(l);return void 0!==c?Promise.resolve(c):a(s,l)}}})(Ta,OF,ri,Ma,oo),Wae=((t,n,e,i,o,r)=>class extends t{constructor(s,l){const c=o(s),u={...Lre,...l},d=e(c,u),h=r(c);super(s,!1,d,h?i():null),this._pan=n(this,h,d.pan)}get pan(){return this._pan}})(Ii,Jr,OF,Uae,ti,Yn),Xae=((t,n,e)=>()=>{const i=new WeakMap,o=function(){var r=(0,y.Z)(function*(a,s){let l=n(a);return bo(l,s)||(l=t(s,{channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,curve:l.curve,oversample:l.oversample})),i.set(s,l),zu(l)?yield e(a,s,l.inputs[0]):yield e(a,s,l),l});return function(s,l){return r.apply(this,arguments)}}();return{render(r,a){const s=i.get(a);return void 0!==s?Promise.resolve(s):o(r,a)}}})(Rb,ri,oo),Jae=((t,n,e,i,o,r,a)=>class extends t{constructor(l,c){const u=o(l),d={...$re,...c},h=e(u,d);super(l,!0,h,r(u)?i():null),this._isCurveNullified=!1,this._nativeWaveShaperNode=h,a(this,1)}get curve(){return this._isCurveNullified?null:this._nativeWaveShaperNode.curve}set curve(l){if(null===l)this._isCurveNullified=!0,this._nativeWaveShaperNode.curve=new Float32Array([0,0]);else{if(l.length<2)throw n();this._isCurveNullified=!1,this._nativeWaveShaperNode.curve=l}}get oversample(){return this._nativeWaveShaperNode.oversample}set oversample(l){this._nativeWaveShaperNode.oversample=l}})(Ii,Li,Rb,Xae,ti,Yn,ql),RF=(t=>null!==t&&t.isSecureContext)(Xr),R1=(t=>(n,e,i)=>{Object.defineProperties(t,{currentFrame:{configurable:!0,get:()=>Math.round(n*e)},currentTime:{configurable:!0,get:()=>n}});try{return i()}finally{null!==t&&(delete t.currentFrame,delete t.currentTime)}})(Xr),PF=new WeakMap,Qae=((t,n)=>e=>{let i=t.get(e);if(void 0!==i)return i;if(null===n)throw new Error("Missing the native OfflineAudioContext constructor.");return i=new n(1,1,44100),t.set(e,i),i})(PF,Ji),Kae=RF?((t,n,e,i,o,r,a,s,l,c,u,d,h)=>{let p=0;return(g,b,T={credentials:"omit"})=>{const D=u.get(g);if(void 0!==D&&D.has(b))return Promise.resolve();const H=c.get(g);if(void 0!==H){const G=H.get(b);if(void 0!==G)return G}const oe=r(g),le=void 0===oe.audioWorklet?o(b).then(([G,pe])=>{const[_e,be]=ZN(G,pe);return e(`${_e};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${be}\n})})(window,'_AWGS')`)}).then(()=>{const G=h._AWGS.pop();if(void 0===G)throw new SyntaxError;i(oe.currentTime,oe.sampleRate,()=>G(class{},void 0,(pe,_e)=>{if(""===pe.trim())throw n();const be=p1.get(oe);if(void 0!==be){if(be.has(pe))throw n();UN(_e),GN(_e.parameterDescriptors),be.set(pe,_e)}else UN(_e),GN(_e.parameterDescriptors),p1.set(oe,new Map([[pe,_e]]))},oe.sampleRate,void 0,void 0))}):Promise.all([o(b),Promise.resolve(t(d,d))]).then(([[G,pe],_e])=>{const be=p+1;p=be;const[Be,Fe]=ZN(G,pe),ut=new Blob([`${Be};((AudioWorkletProcessor,registerProcessor)=>{${Fe}\n})(${_e?"AudioWorkletProcessor":"class extends AudioWorkletProcessor {__b=new WeakSet();constructor(){super();(p=>p.postMessage=(q=>(m,t)=>q.call(p,m,t?t.filter(u=>!this.__b.has(u)):t))(p.postMessage))(this.port)}}"},(n,p)=>registerProcessor(n,class extends p{${_e?"":"__c = (a) => a.forEach(e=>this.__b.add(e.buffer));"}process(i,o,p){${_e?"":"i.forEach(this.__c);o.forEach(this.__c);this.__c(Object.values(p));"}return super.process(i.map(j=>j.some(k=>k.length===0)?[]:j),o,p)}}));registerProcessor('__sac${be}',class extends AudioWorkletProcessor{process(){return !1}})`],{type:"application/javascript; charset=utf-8"}),Se=URL.createObjectURL(ut);return oe.audioWorklet.addModule(Se,T).then(()=>{if(s(oe))return oe;const Ye=a(oe);return Ye.audioWorklet.addModule(Se,T).then(()=>Ye)}).then(Ye=>{if(null===l)throw new SyntaxError;try{new l(Ye,`__sac${be}`)}catch{throw new SyntaxError}}).finally(()=>URL.revokeObjectURL(Se))});return void 0===H?c.set(g,new Map([[b,le]])):H.set(b,le),le.then(()=>{const G=u.get(g);void 0===G?u.set(g,new Set([b])):G.add(b)}).finally(()=>{const G=c.get(g);void 0!==G&&G.delete(b)}),le}})(dr,yo,(t=>n=>new Promise((e,i)=>{if(null===t)return void i(new SyntaxError);const o=t.document.head;if(null===o)i(new SyntaxError);else{const r=t.document.createElement("script"),a=new Blob([n],{type:"application/javascript"}),s=URL.createObjectURL(a),l=t.onerror,c=()=>{t.onerror=l,URL.revokeObjectURL(s)};t.onerror=(u,d,h,p,g)=>d===s||d===t.location.href&&1===h&&1===p?(c(),i(g),!1):null!==l?l(u,d,h,p,g):void 0,r.onerror=()=>{c(),i(new SyntaxError)},r.onload=()=>{c(),e()},r.src=s,r.type="module",o.appendChild(r)}}))(Xr),R1,function(){var n=(0,y.Z)(function*(e){try{const i=yield fetch(e);if(i.ok)return[yield i.text(),i.url]}catch{}throw new DOMException("","AbortError")});return function(e){return n.apply(this,arguments)}}(),ti,Qae,Yn,Zu,new WeakMap,new WeakMap,((t,n)=>(0,y.Z)(function*(){if(null===t)return!0;if(null===n)return!1;const e=new Blob(['class A extends AudioWorkletProcessor{process(i){this.port.postMessage(i,[i[0][0].buffer])}}registerProcessor("a",A)'],{type:"application/javascript; charset=utf-8"}),i=new n(1,128,44100),o=URL.createObjectURL(e);let r=!1,a=!1;try{yield i.audioWorklet.addModule(o);const s=new t(i,"a",{numberOfOutputs:0}),l=i.createOscillator();s.port.onmessage=()=>r=!0,s.onprocessorerror=()=>a=!0,l.connect(s),l.start(0),yield i.startRendering(),yield new Promise(c=>setTimeout(c))}catch{}finally{URL.revokeObjectURL(o)}return r&&!a}))(Zu,Ji),Xr):void 0,qae=((t,n)=>e=>t(e)||n(e))(T1,Yn),ese=((t,n,e,i,o,r,a,s,l,c,u)=>(d,h)=>{const p=a(d)?d:r(d);if(o.has(h)){const g=new DOMException("","DataCloneError");return Promise.reject(g)}try{o.add(h)}catch{}return n(l,()=>l(p))?p.decodeAudioData(h).then(g=>(rF(h).catch(()=>{}),n(s,()=>s(g))||u(g),t.add(g),g)):new Promise((g,b)=>{const T=function(){var H=(0,y.Z)(function*(){try{yield rF(h)}catch{}});return function(){return H.apply(this,arguments)}}(),D=H=>{b(H),T()};try{p.decodeAudioData(h,H=>{"function"!=typeof H.copyFromChannel&&(c(H),b1(H)),t.add(H),T().then(()=>g(H))},H=>{D(null===H?new DOMException("","EncodingError"):H)})}catch(H){D(H)}})})(A1,dr,0,0,new WeakSet,ti,qae,vb,Kl,k1,I1),NF=((t,n,e,i,o,r,a,s,l,c,u,d,h,p,g,b,T,D,H,oe)=>class extends g{constructor(G,pe){super(G,pe),this._nativeContext=G,this._audioWorklet=void 0===t?void 0:{addModule:(_e,be)=>t(this,_e,be)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new n(this)}createBiquadFilter(){return new o(this)}createBuffer(G,pe,_e){return new e({length:pe,numberOfChannels:G,sampleRate:_e})}createBufferSource(){return new i(this)}createChannelMerger(G=6){return new r(this,{numberOfInputs:G})}createChannelSplitter(G=6){return new a(this,{numberOfOutputs:G})}createConstantSource(){return new s(this)}createConvolver(){return new l(this)}createDelay(G=1){return new u(this,{maxDelayTime:G})}createDynamicsCompressor(){return new d(this)}createGain(){return new h(this)}createIIRFilter(G,pe){return new p(this,{feedback:pe,feedforward:G})}createOscillator(){return new b(this)}createPanner(){return new T(this)}createPeriodicWave(G,pe,_e={disableNormalization:!1}){return new D(this,{..._e,imag:pe,real:G})}createStereoPanner(){return new H(this)}createWaveShaper(){return new oe(this)}decodeAudioData(G,pe,_e){return c(this._nativeContext,G).then(be=>("function"==typeof pe&&pe(be),be),be=>{throw"function"==typeof _e&&_e(be),be})}})(Kae,uae,dae,fae,mae,_ae,wae,Sae,Eae,ese,Mae,kae,Oae,Fae,O1,Bae,$ae,Zae,Wae,Jae),tse=((t,n,e,i)=>class extends t{constructor(r,a){const s=e(r),l=((t,n)=>t.createMediaElementSource(n.mediaElement))(s,a);if(i(s))throw TypeError();super(r,!0,l,null),this._nativeMediaElementAudioSourceNode=l}get mediaElement(){return this._nativeMediaElementAudioSourceNode.mediaElement}})(Ii,0,ti,Yn),nse=((t,n,e,i)=>class extends t{constructor(r,a){const s=e(r);if(i(s))throw new TypeError;const c=((t,n)=>{const e=t.createMediaStreamDestination();return Vi(e,n),1===e.numberOfOutputs&&Object.defineProperty(e,"numberOfOutputs",{get:()=>0}),e})(s,{...Moe,...a});super(r,!1,c,null),this._nativeMediaStreamAudioDestinationNode=c}get stream(){return this._nativeMediaStreamAudioDestinationNode.stream}})(Ii,0,ti,Yn),ise=((t,n,e,i)=>class extends t{constructor(r,a){const s=e(r),l=((t,{mediaStream:n})=>{const e=n.getAudioTracks();e.sort((r,a)=>r.ida.id?1:0);const i=e.slice(0,1),o=t.createMediaStreamSource(new MediaStream(i));return Object.defineProperty(o,"mediaStream",{value:n}),o})(s,a);if(i(s))throw new TypeError;super(r,!0,l,null),this._nativeMediaStreamAudioSourceNode=l}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}})(Ii,0,ti,Yn),ose=((t,n)=>(e,{mediaStreamTrack:i})=>{if("function"==typeof e.createMediaStreamTrackSource)return e.createMediaStreamTrackSource(i);const o=new MediaStream([i]),r=e.createMediaStreamSource(o);if("audio"!==i.kind)throw t();if(n(e))throw new TypeError;return r})(Li,Yn),rse=((t,n,e)=>class extends t{constructor(o,r){const a=e(o);super(o,!0,n(a,r),null)}})(Ii,ose,ti),ase=((t,n,e,i,o,r,a,s,l)=>class extends t{constructor(u={}){if(null===l)throw new Error("Missing the native AudioContext constructor.");let d;try{d=new l(u)}catch(g){throw 12===g.code&&"sampleRate is not in range"===g.message?e():g}if(null===d)throw i();if(!(t=>void 0===t||"number"==typeof t||"string"==typeof t&&("balanced"===t||"interactive"===t||"playback"===t))(u.latencyHint))throw new TypeError(`The provided value '${u.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(void 0!==u.sampleRate&&d.sampleRate!==u.sampleRate)throw e();super(d,2);const{latencyHint:h}=u,{sampleRate:p}=d;if(this._baseLatency="number"==typeof d.baseLatency?d.baseLatency:"balanced"===h?512/p:"interactive"===h||void 0===h?256/p:"playback"===h?1024/p:128*Math.max(2,Math.min(128,Math.round(h*p/128)))/p,this._nativeAudioContext=d,"webkitAudioContext"===l.name?(this._nativeGainNode=d.createGain(),this._nativeOscillatorNode=d.createOscillator(),this._nativeGainNode.gain.value=1e-37,this._nativeOscillatorNode.connect(this._nativeGainNode).connect(d.destination),this._nativeOscillatorNode.start()):(this._nativeGainNode=null,this._nativeOscillatorNode=null),this._state=null,"running"===d.state){this._state="suspended";const g=()=>{"suspended"===this._state&&(this._state=null),d.removeEventListener("statechange",g)};d.addEventListener("statechange",g)}}get baseLatency(){return this._baseLatency}get state(){return null!==this._state?this._state:this._nativeAudioContext.state}close(){return"closed"===this.state?this._nativeAudioContext.close().then(()=>{throw n()}):("suspended"===this._state&&(this._state=null),this._nativeAudioContext.close().then(()=>{null!==this._nativeGainNode&&null!==this._nativeOscillatorNode&&(this._nativeOscillatorNode.stop(),this._nativeGainNode.disconnect(),this._nativeOscillatorNode.disconnect()),(t=>{y1(t.destination,[])})(this)}))}createMediaElementSource(u){return new o(this,{mediaElement:u})}createMediaStreamDestination(){return new r(this)}createMediaStreamSource(u){return new a(this,{mediaStream:u})}createMediaStreamTrackSource(u){return new s(this,{mediaStreamTrack:u})}resume(){return"suspended"===this._state?new Promise((u,d)=>{const h=()=>{this._nativeAudioContext.removeEventListener("statechange",h),"running"===this._nativeAudioContext.state?u():this.resume().then(u,d)};this._nativeAudioContext.addEventListener("statechange",h)}):this._nativeAudioContext.resume().catch(u=>{throw void 0===u||15===u.code?n():u})}suspend(){return this._nativeAudioContext.suspend().catch(u=>{throw void 0===u?n():u})}})(NF,Li,yo,hF,tse,nse,ise,rse,ls),P1=(t=>n=>{const e=t.get(n);if(void 0===e)throw new Error("The context has no set of AudioWorkletNodes.");return e})(MF),FF=((t=>{})(P1),(t=>(n,e,i=0,o=0)=>{const r=n[i];if(void 0===r)throw t();return Eb(e)?r.connect(e,0,o):r.connect(e,0)})(Ea)),lse=(t=>(n,e)=>{t(n).delete(e)})(P1),LF=(t=>(n,e=void 0,i=void 0,o=0)=>void 0===e?n.forEach(r=>r.disconnect()):"number"==typeof e?Ab(t,n,e).disconnect():Eb(e)?void 0===i?n.forEach(r=>r.disconnect(e)):void 0===o?Ab(t,n,i).disconnect(e,0):Ab(t,n,i).disconnect(e,0,o):void 0===i?n.forEach(r=>r.disconnect(e)):Ab(t,n,i).disconnect(e,0))(Ea),jF=new WeakMap,cse=((t,n)=>e=>n(t,e))(jF,Wr),use=((t,n,e,i,o,r,a,s,l,c,u,d,h)=>(p,g,b,T)=>{if(0===T.numberOfInputs&&0===T.numberOfOutputs)throw l();const D=Array.isArray(T.outputChannelCount)?T.outputChannelCount:Array.from(T.outputChannelCount);if(D.some(ft=>ft<1))throw l();if(D.length!==T.numberOfOutputs)throw n();if("explicit"!==T.channelCountMode)throw l();const H=T.channelCount*T.numberOfInputs,oe=D.reduce((ft,jt)=>ft+jt,0),le=void 0===b.parameterDescriptors?0:b.parameterDescriptors.length;if(H+le>6||oe>6)throw l();const G=new MessageChannel,pe=[],_e=[];for(let ft=0;ftvoid 0===ft?0:ft},maxValue:{get:()=>void 0===jt?Io:jt},minValue:{get:()=>void 0===ai?zo:ai}}),be.push(Sn)}const Be=i(p,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,H+le)}),Fe=lF(g,p.sampleRate),Qe=s(p,Fe,H+le,Math.max(1,oe)),Re=o(p,{channelCount:Math.max(1,oe),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,oe)}),Xe=[];for(let ft=0;ft{const ai=be[jt];return ai.connect(Be,0,H+jt),ai.start(0),[ft,ai.offset]}));Be.connect(Qe);let ut=T.channelInterpretation,Se=null;const Ye=0===T.numberOfOutputs?[Qe]:Xe,We={get bufferSize(){return Fe},get channelCount(){return T.channelCount},set channelCount(ft){throw e()},get channelCountMode(){return T.channelCountMode},set channelCountMode(ft){throw e()},get channelInterpretation(){return ut},set channelInterpretation(ft){for(const jt of pe)jt.channelInterpretation=ft;ut=ft},get context(){return Qe.context},get inputs(){return pe},get numberOfInputs(){return T.numberOfInputs},get numberOfOutputs(){return T.numberOfOutputs},get onprocessorerror(){return Se},set onprocessorerror(ft){"function"==typeof Se&&We.removeEventListener("processorerror",Se),Se="function"==typeof ft?ft:null,"function"==typeof Se&&We.addEventListener("processorerror",Se)},get parameters(){return ct},get port(){return G.port2},addEventListener:(...ft)=>Qe.addEventListener(ft[0],ft[1],ft[2]),connect:t.bind(null,Ye),disconnect:c.bind(null,Ye),dispatchEvent:(...ft)=>Qe.dispatchEvent(ft[0]),removeEventListener:(...ft)=>Qe.removeEventListener(ft[0],ft[1],ft[2])},it=new Map;var ft;G.port1.addEventListener=(ft=G.port1.addEventListener,(...jt)=>{if("message"===jt[0]){const ai="function"==typeof jt[1]?jt[1]:"object"==typeof jt[1]&&null!==jt[1]&&"function"==typeof jt[1].handleEvent?jt[1].handleEvent:null;if(null!==ai){const si=it.get(jt[1]);void 0!==si?jt[1]=si:(jt[1]=Sn=>{u(p.currentTime,p.sampleRate,()=>ai(Sn))},it.set(ai,jt[1]))}}return ft.call(G.port1,jt[0],jt[1],jt[2])}),G.port1.removeEventListener=(ft=>(...jt)=>{if("message"===jt[0]){const ai=it.get(jt[1]);void 0!==ai&&(it.delete(jt[1]),jt[1]=ai)}return ft.call(G.port1,jt[0],jt[1],jt[2])})(G.port1.removeEventListener);let St=null;Object.defineProperty(G.port1,"onmessage",{get:()=>St,set:ft=>{"function"==typeof St&&G.port1.removeEventListener("message",St),St="function"==typeof ft?ft:null,"function"==typeof St&&(G.port1.addEventListener("message",St),G.port1.start())}}),b.prototype.port=G.port1;let At=null;((t,n,e,i)=>{let o=g1.get(t);void 0===o&&(o=new WeakMap,g1.set(t,o));const r=Woe(e,i);return o.set(n,r),r})(p,We,b,T).then(ft=>At=ft);const Rn=Mb(T.numberOfInputs,T.channelCount),sn=Mb(T.numberOfOutputs,D),ln=void 0===b.parameterDescriptors?[]:b.parameterDescriptors.reduce((ft,{name:jt})=>({...ft,[jt]:new Float32Array(128)}),{});let Vo=!0;const Un=()=>{T.numberOfOutputs>0&&Qe.disconnect(Re);for(let ft=0,jt=0;ft{if(null!==At){const ai=d(We);for(let si=0;si{Tb(ft,ln,Sn,H+Wn,si)});for(let Sn=0;Sn{if(ai[Qr].size>0)return dt.set(Qr,Fe/128),Zo;const Xu=dt.get(Qr);return void 0===Xu?[]:(Zo.every(wx=>wx.every(ny=>0===ny))&&(1===Xu?dt.delete(Qr):dt.set(Qr,Xu-1)),Zo)});Vo=u(p.currentTime+si/p.sampleRate,p.sampleRate,()=>At.process(Sn,sn,ln));for(let Zo=0,Qr=0;ZoQe.connect(ro).connect(p.destination),Ks=()=>{Qe.disconnect(ro),ro.disconnect()};return Ar(),h(We,()=>{if(Vo){Ks(),T.numberOfOutputs>0&&Qe.connect(Re);for(let ft=0,jt=0;ft{Vo&&(Ar(),Un()),Cn=!1})})(FF,Ea,Li,Js,Ef,Uu,$o,Tf,yo,LF,R1,cse,Xs);let Pb=(()=>{class t{constructor(e,i){this.http=e,this.toastr=i,this.returnFileFromPath$=(o,r="blob")=>this.http.get(o,{responseType:r}).pipe(es(s=>(this.toastr.error(s.message,$localize`Hmm, the file is unreachable. Please try again later.`,{timeOut:1e4}),Et(s))),Bt(s=>s),_i(1))}loadAudioBufferFromFile$(e,i){var o=new ase({sampleRate:i});return bi(e.arrayBuffer().then(a=>o.decodeAudioData(a)))}readFile$(e){const i=new FileReader;return On.create(o=>{i.onerror=r=>o.error(r),i.onabort=r=>o.error(r),i.onload=()=>o.next(i.result),i.onloadend=()=>o.complete(),i.readAsText(e)})}readFileAsData$(e){const i=new FileReader;return On.create(o=>{i.onerror=r=>o.error(r),i.onabort=r=>o.error(r),i.onload=()=>o.next(i.result),i.onloadend=()=>o.complete(),i.readAsDataURL(e)})}static{this.\u0275fac=function(i){return new(i||t)(Me(su),Me(Sl))}}static{this.\u0275prov=$e({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const hr={production:!0,apiBaseURL:"https://readalong-studio.herokuapp.com/api/v1",packageJson:JSON.parse('{"name":"readalong-studio","homepage":"https://readalong-studio.mothertongues.org","contact":"mailto:readalong.studio@gmail.com","documentationURL":"https://readalongs.github.io/ICLDC-Docs","version":"0.0.0","type":"module","scripts":{"helpme":"echo This project is part of a monorepo managed using nx. Run the targets in project.json using npx nx target studio-web at the root of the monorepo.","ng":"ng","test:ng":"ng test","test:once":"ng test --watch=false --browsers ChromeHeadlessCI","e2e":"playwright test","e2e-ui":"playwright test --ui"},"private":true,"singleFileBundleVersion":"1.5.2","singleFileBundleTimestamp":"2024-12-06+17-21-57","dependencies":{"readalong-studio":"file:"}}')},gse={title:$localize`Welcome to ReadAlong Studio`,text:$localize`Creating a ReadAlong is easy!\ This guide will show you all the bells and whistles of the Studio.`,attachTo:{element:"#welcome-header",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:$localize`Next`,type:"next"}],id:"intro"},mse={title:$localize`Adding your data`,text:$localize`To make your ReadAlong, you'll need to add your text and audio.`,attachTo:{element:"#upload-header",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:$localize`Back`,type:"back"},{classes:"shepherd-button-primary",text:$localize`Next`,type:"next"}],id:"data"},bse={title:$localize`Write your text`,text:$localize`You can write your text directly into ReadAlong Studio, by selecting the "write" option.`,attachTo:{element:"#text-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:$localize`Back`,type:"back"},{classes:"shepherd-button-primary",text:$localize`Next`,type:"next"}],id:"text-write"},YF={title:$localize`Use a text file`,text:$localize`You can also use text from a plain text file (.txt) or a file in the RAS format (.readalong).`,attachTo:{element:"#text-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:$localize`Back`,type:"back"},{classes:"shepherd-button-primary",text:$localize`Next`,type:"next"}],id:"text-file"},yse={title:$localize`Record your own audio`,text:$localize`You can record your own audio for preprocessing using your browser's microphone.`,attachTo:{element:"#audio-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:$localize`Back`,type:"back"},{classes:"shepherd-button-primary",text:$localize`Next`,type:"next"}],id:"audio-record"},zF={title:$localize`Use an audio file`,text:$localize`You can also select either a .wav or .mp3 file for your ReadAlong.`,attachTo:{element:"#audio-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:$localize`Back`,type:"back"},{classes:"shepherd-button-primary",text:$localize`Next`,type:"next"}],id:"audio-file"},_se={title:$localize`Select your language`,text:$localize`Then, optionally, you can select the language of your ReadAlong.`,attachTo:{element:"#language-section",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:$localize`Back`,type:"back"},{classes:"shepherd-button-primary",text:$localize`Next`,type:"next"}],id:"language"},vse={title:$localize`Select your language`,text:$localize`For most users, the default settings here are appropriate, and you don't need to do anything else - just keep this option selected!`,attachTo:{element:"#generic-language",on:"bottom"},buttons:[{classes:"shepherd-button-primary",text:$localize`Back`,type:"back"},{classes:"shepherd-button-primary",text:$localize`Next`,type:"next"}],id:"generic-language"},wse={title:$localize`Select your language`,text:$localize`However, if your results aren't good enough with the default settings you can choose your language from this list. If it's not supported already, have a look at this blog post series