File: /var/www/vhost/disk-apps/pwa.sports-crowd.com/www/main.f97b15a5ac64c818.js
(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8792],{23239:(He,L,o)=>{"use strict";o.d(L,{l:()=>y});const y=(0,o(27721).F3)("Http",{web:()=>o.e(791).then(o.bind(o,30791)).then(a=>new a.HttpWeb),electron:()=>o.e(791).then(o.bind(o,30791)).then(a=>new a.HttpWeb)})},27721:(He,L,o)=>{"use strict";o.d(L,{E_:()=>$,F3:()=>C});var n=o(73308);typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"&&global;var w=function(g){return g.Unimplemented="UNIMPLEMENTED",g.Unavailable="UNAVAILABLE",g}(w||{});class D extends Error{constructor(f,m){super(f),this.message=f,this.code=m}}const E=g=>{var f,m,T,W,K;const re=g.CapacitorCustomPlatform||null,U=g.Capacitor||{},fe=U.Plugins=U.Plugins||{},ue=g.CapacitorPlatforms,he=(null===(f=ue?.currentPlatform)||void 0===f?void 0:f.getPlatform)||(()=>null!==re?re.name:(g=>{var f,m;return g?.androidBridge?"android":null!==(m=null===(f=g?.webkit)||void 0===f?void 0:f.messageHandlers)&&void 0!==m&&m.bridge?"ios":"web"})(g)),_e=(null===(m=ue?.currentPlatform)||void 0===m?void 0:m.isNativePlatform)||(()=>"web"!==he()),Ne=(null===(T=ue?.currentPlatform)||void 0===T?void 0:T.isPluginAvailable)||(ne=>{const S=N.get(ne);return!(!S?.platforms.has(he())&&!q(ne))}),q=(null===(W=ue?.currentPlatform)||void 0===W?void 0:W.getPluginHeader)||(ne=>{var S;return null===(S=U.PluginHeaders)||void 0===S?void 0:S.find(se=>se.name===ne)}),N=new Map,R=(null===(K=ue?.currentPlatform)||void 0===K?void 0:K.registerPlugin)||((ne,S={})=>{const se=N.get(ne);if(se)return console.warn(`Capacitor plugin "${ne}" already registered. Cannot register plugins twice.`),se.proxy;const Me=he(),Fe=q(ne);let Re;const je=function(){var ht=(0,n.A)(function*(){return!Re&&Me in S?Re=Re="function"==typeof S[Me]?yield S[Me]():S[Me]:null!==re&&!Re&&"web"in S&&(Re=Re="function"==typeof S.web?yield S.web():S.web),Re});return function(){return ht.apply(this,arguments)}}(),ft=ht=>{let It;const Rt=(...At)=>{const Ut=je().then(Wt=>{const it=((ht,It)=>{var Rt,At;if(!Fe){if(ht)return null===(At=ht[It])||void 0===At?void 0:At.bind(ht);throw new D(`"${ne}" plugin is not implemented on ${Me}`,w.Unimplemented)}{const Ut=Fe?.methods.find(Wt=>It===Wt.name);if(Ut)return"promise"===Ut.rtype?Wt=>U.nativePromise(ne,It.toString(),Wt):(Wt,it)=>U.nativeCallback(ne,It.toString(),Wt,it);if(ht)return null===(Rt=ht[It])||void 0===Rt?void 0:Rt.bind(ht)}})(Wt,ht);if(it){const Bt=it(...At);return It=Bt?.remove,Bt}throw new D(`"${ne}.${ht}()" is not implemented on ${Me}`,w.Unimplemented)});return"addListener"===ht&&(Ut.remove=(0,n.A)(function*(){return It()})),Ut};return Rt.toString=()=>`${ht.toString()}() { [capacitor code] }`,Object.defineProperty(Rt,"name",{value:ht,writable:!1,configurable:!1}),Rt},Qe=ft("addListener"),nt=ft("removeListener"),_t=(ht,It)=>{const Rt=Qe({eventName:ht},It),At=function(){var Wt=(0,n.A)(function*(){const it=yield Rt;nt({eventName:ht,callbackId:it},It)});return function(){return Wt.apply(this,arguments)}}(),Ut=new Promise(Wt=>Rt.then(()=>Wt({remove:At})));return Ut.remove=(0,n.A)(function*(){console.warn("Using addListener() without 'await' is deprecated."),yield At()}),Ut},Ge=new Proxy({},{get(ht,It){switch(It){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return Fe?_t:Qe;case"removeListener":return nt;default:return ft(It)}}});return fe[ne]=Ge,N.set(ne,{name:ne,proxy:Ge,platforms:new Set([...Object.keys(S),...Fe?[Me]:[]])}),Ge});return U.convertFileSrc||(U.convertFileSrc=ne=>ne),U.getPlatform=he,U.handleError=ne=>g.console.error(ne),U.isNativePlatform=_e,U.isPluginAvailable=Ne,U.pluginMethodNoop=(ne,S,se)=>Promise.reject(`${se} does not have an implementation of "${S}".`),U.registerPlugin=R,U.Exception=D,U.DEBUG=!!U.DEBUG,U.isLoggingEnabled=!!U.isLoggingEnabled,U.platform=U.getPlatform(),U.isNative=U.isNativePlatform(),U},d=(g=>g.Capacitor=E(g))(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),C=d.registerPlugin;class ${constructor(f){this.listeners={},this.windowListeners={},f&&(console.warn(`Capacitor WebPlugin "${f.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=f)}addListener(f,m){var T=this;this.listeners[f]||(this.listeners[f]=[]),this.listeners[f].push(m);const K=this.windowListeners[f];K&&!K.registered&&this.addWindowListener(K);const re=function(){var fe=(0,n.A)(function*(){return T.removeListener(f,m)});return function(){return fe.apply(this,arguments)}}(),U=Promise.resolve({remove:re});return Object.defineProperty(U,"remove",{value:(fe=(0,n.A)(function*(){console.warn("Using addListener() without 'await' is deprecated."),yield re()}),function(){return fe.apply(this,arguments)})}),U;var fe}removeAllListeners(){var f=this;return(0,n.A)(function*(){f.listeners={};for(const m in f.windowListeners)f.removeWindowListener(f.windowListeners[m]);f.windowListeners={}})()}notifyListeners(f,m){const T=this.listeners[f];T&&T.forEach(W=>W(m))}hasListeners(f){return!!this.listeners[f].length}registerWindowListener(f,m){this.windowListeners[m]={registered:!1,windowEventName:f,pluginEventName:m,handler:T=>{this.notifyListeners(m,T)}}}unimplemented(f="not implemented"){return new d.Exception(f,w.Unimplemented)}unavailable(f="not available"){return new d.Exception(f,w.Unavailable)}removeListener(f,m){var T=this;return(0,n.A)(function*(){const W=T.listeners[f];if(!W)return;const K=W.indexOf(m);T.listeners[f].splice(K,1),T.listeners[f].length||T.removeWindowListener(T.windowListeners[f])})()}addWindowListener(f){window.addEventListener(f.windowEventName,f.handler),f.registered=!0}removeWindowListener(f){f&&(window.removeEventListener(f.windowEventName,f.handler),f.registered=!1)}}},54709:(He,L,o)=>{"use strict";o.d(L,{y:()=>y});const y=(0,o(22126).F3)("NativeMarket",{web:()=>o.e(7935).then(o.bind(o,27935)).then(a=>new a.NativeMarketWeb)})},42294:(He,L,o)=>{"use strict";o.d(L,{q:()=>y});const y=(0,o(22126).F3)("App",{web:()=>o.e(4292).then(o.bind(o,84292)).then(a=>new a.AppWeb)})},23867:(He,L,o)=>{"use strict";o.d(L,{P:()=>y});const y=(0,o(22126).F3)("Browser",{web:()=>o.e(2161).then(o.bind(o,72161)).then(a=>new a.BrowserWeb)})},22126:(He,L,o)=>{"use strict";o.d(L,{EA:()=>U,E_:()=>$,F3:()=>C,I9:()=>D,Ii:()=>d});var n=o(73308);typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"&&global;var w=function(pe){return pe.Unimplemented="UNIMPLEMENTED",pe.Unavailable="UNAVAILABLE",pe}(w||{});class D extends Error{constructor(he,de,_e){super(he),this.message=he,this.code=de,this.data=_e}}const E=pe=>{var he,de,_e,Ee,Ne;const ge=pe.CapacitorCustomPlatform||null,q=pe.Capacitor||{},u=q.Plugins=q.Plugins||{},p=pe.CapacitorPlatforms,G=(null===(he=p?.currentPlatform)||void 0===he?void 0:he.getPlatform)||(()=>null!==ge?ge.name:(pe=>{var he,de;return pe?.androidBridge?"android":null!==(de=null===(he=pe?.webkit)||void 0===he?void 0:he.messageHandlers)&&void 0!==de&&de.bridge?"ios":"web"})(pe)),ne=(null===(de=p?.currentPlatform)||void 0===de?void 0:de.isNativePlatform)||(()=>"web"!==G()),se=(null===(_e=p?.currentPlatform)||void 0===_e?void 0:_e.isPluginAvailable)||(nt=>{const _t=at.get(nt);return!(!_t?.platforms.has(G())&&!Fe(nt))}),Fe=(null===(Ee=p?.currentPlatform)||void 0===Ee?void 0:Ee.getPluginHeader)||(nt=>{var _t;return null===(_t=q.PluginHeaders)||void 0===_t?void 0:_t.find(Ge=>Ge.name===nt)}),at=new Map,Qe=(null===(Ne=p?.currentPlatform)||void 0===Ne?void 0:Ne.registerPlugin)||((nt,_t={})=>{const Ge=at.get(nt);if(Ge)return console.warn(`Capacitor plugin "${nt}" already registered. Cannot register plugins twice.`),Ge.proxy;const ht=G(),It=Fe(nt);let Rt;const At=function(){var vt=(0,n.A)(function*(){return!Rt&&ht in _t?Rt=Rt="function"==typeof _t[ht]?yield _t[ht]():_t[ht]:null!==ge&&!Rt&&"web"in _t&&(Rt=Rt="function"==typeof _t.web?yield _t.web():_t.web),Rt});return function(){return vt.apply(this,arguments)}}(),Wt=vt=>{let $t;const ct=(...Be)=>{const Je=At().then(wt=>{const Jt=((vt,$t)=>{var ct,Be;if(!It){if(vt)return null===(Be=vt[$t])||void 0===Be?void 0:Be.bind(vt);throw new D(`"${nt}" plugin is not implemented on ${ht}`,w.Unimplemented)}{const Je=It?.methods.find(wt=>$t===wt.name);if(Je)return"promise"===Je.rtype?wt=>q.nativePromise(nt,$t.toString(),wt):(wt,Jt)=>q.nativeCallback(nt,$t.toString(),wt,Jt);if(vt)return null===(ct=vt[$t])||void 0===ct?void 0:ct.bind(vt)}})(wt,vt);if(Jt){const ln=Jt(...Be);return $t=ln?.remove,ln}throw new D(`"${nt}.${vt}()" is not implemented on ${ht}`,w.Unimplemented)});return"addListener"===vt&&(Je.remove=(0,n.A)(function*(){return $t()})),Je};return ct.toString=()=>`${vt.toString()}() { [capacitor code] }`,Object.defineProperty(ct,"name",{value:vt,writable:!1,configurable:!1}),ct},it=Wt("addListener"),Bt=Wt("removeListener"),rt=(vt,$t)=>{const ct=it({eventName:vt},$t),Be=function(){var wt=(0,n.A)(function*(){const Jt=yield ct;Bt({eventName:vt,callbackId:Jt},$t)});return function(){return wt.apply(this,arguments)}}(),Je=new Promise(wt=>ct.then(()=>wt({remove:Be})));return Je.remove=(0,n.A)(function*(){console.warn("Using addListener() without 'await' is deprecated."),yield Be()}),Je},Pt=new Proxy({},{get(vt,$t){switch($t){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return It?rt:it;case"removeListener":return Bt;default:return Wt($t)}}});return u[nt]=Pt,at.set(nt,{name:nt,proxy:Pt,platforms:new Set([...Object.keys(_t),...It?[ht]:[]])}),Pt});return q.convertFileSrc||(q.convertFileSrc=nt=>nt),q.getPlatform=G,q.handleError=nt=>pe.console.error(nt),q.isNativePlatform=ne,q.isPluginAvailable=se,q.pluginMethodNoop=(nt,_t,Ge)=>Promise.reject(`${Ge} does not have an implementation of "${_t}".`),q.registerPlugin=Qe,q.Exception=D,q.DEBUG=!!q.DEBUG,q.isLoggingEnabled=!!q.isLoggingEnabled,q.platform=q.getPlatform(),q.isNative=q.isNativePlatform(),q},d=(pe=>pe.Capacitor=E(pe))(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),C=d.registerPlugin;class ${constructor(he){this.listeners={},this.retainedEventArguments={},this.windowListeners={},he&&(console.warn(`Capacitor WebPlugin "${he.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=he)}addListener(he,de){var _e=this;let Ee=!1;this.listeners[he]||(this.listeners[he]=[],Ee=!0),this.listeners[he].push(de);const ge=this.windowListeners[he];ge&&!ge.registered&&this.addWindowListener(ge),Ee&&this.sendRetainedArgumentsForEvent(he);const q=function(){var p=(0,n.A)(function*(){return _e.removeListener(he,de)});return function(){return p.apply(this,arguments)}}();return Promise.resolve({remove:q})}removeAllListeners(){var he=this;return(0,n.A)(function*(){he.listeners={};for(const de in he.windowListeners)he.removeWindowListener(he.windowListeners[de]);he.windowListeners={}})()}notifyListeners(he,de,_e){const Ee=this.listeners[he];if(Ee)Ee.forEach(Ne=>Ne(de));else if(_e){let Ne=this.retainedEventArguments[he];Ne||(Ne=[]),Ne.push(de),this.retainedEventArguments[he]=Ne}}hasListeners(he){return!!this.listeners[he].length}registerWindowListener(he,de){this.windowListeners[de]={registered:!1,windowEventName:he,pluginEventName:de,handler:_e=>{this.notifyListeners(de,_e)}}}unimplemented(he="not implemented"){return new d.Exception(he,w.Unimplemented)}unavailable(he="not available"){return new d.Exception(he,w.Unavailable)}removeListener(he,de){var _e=this;return(0,n.A)(function*(){const Ee=_e.listeners[he];if(!Ee)return;const Ne=Ee.indexOf(de);_e.listeners[he].splice(Ne,1),_e.listeners[he].length||_e.removeWindowListener(_e.windowListeners[he])})()}addWindowListener(he){window.addEventListener(he.windowEventName,he.handler),he.registered=!0}removeWindowListener(he){he&&(window.removeEventListener(he.windowEventName,he.handler),he.registered=!1)}sendRetainedArgumentsForEvent(he){const de=this.retainedEventArguments[he];de&&(delete this.retainedEventArguments[he],de.forEach(_e=>{this.notifyListeners(he,_e)}))}}const g=pe=>encodeURIComponent(pe).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),f=pe=>pe.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class m extends ${getCookies(){return(0,n.A)(function*(){const he=document.cookie,de={};return he.split(";").forEach(_e=>{if(_e.length<=0)return;let[Ee,Ne]=_e.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");Ee=f(Ee).trim(),Ne=f(Ne).trim(),de[Ee]=Ne}),de})()}setCookie(he){return(0,n.A)(function*(){try{const de=g(he.key),_e=g(he.value),Ee=`; expires=${(he.expires||"").replace("expires=","")}`,Ne=(he.path||"/").replace("path=",""),ge=null!=he.url&&he.url.length>0?`domain=${he.url}`:"";document.cookie=`${de}=${_e||""}${Ee}; path=${Ne}; ${ge};`}catch(de){return Promise.reject(de)}})()}deleteCookie(he){return(0,n.A)(function*(){try{document.cookie=`${he.key}=; Max-Age=0`}catch(de){return Promise.reject(de)}})()}clearCookies(){return(0,n.A)(function*(){try{const he=document.cookie.split(";")||[];for(const de of he)document.cookie=de.replace(/^ +/,"").replace(/=.*/,`=;expires=${(new Date).toUTCString()};path=/`)}catch(he){return Promise.reject(he)}})()}clearAllCookies(){var he=this;return(0,n.A)(function*(){try{yield he.clearCookies()}catch(de){return Promise.reject(de)}})()}}C("CapacitorCookies",{web:()=>new m});const W=function(){var pe=(0,n.A)(function*(he){return new Promise((de,_e)=>{const Ee=new FileReader;Ee.onload=()=>{const Ne=Ee.result;de(Ne.indexOf(",")>=0?Ne.split(",")[1]:Ne)},Ee.onerror=Ne=>_e(Ne),Ee.readAsDataURL(he)})});return function(de){return pe.apply(this,arguments)}}(),U=(pe,he={})=>{const de=Object.assign({method:pe.method||"GET",headers:pe.headers},he),Ee=((pe={})=>{const he=Object.keys(pe);return Object.keys(pe).map(Ee=>Ee.toLocaleLowerCase()).reduce((Ee,Ne,ge)=>(Ee[Ne]=pe[he[ge]],Ee),{})})(pe.headers)["content-type"]||"";if("string"==typeof pe.data)de.body=pe.data;else if(Ee.includes("application/x-www-form-urlencoded")){const Ne=new URLSearchParams;for(const[ge,q]of Object.entries(pe.data||{}))Ne.set(ge,q);de.body=Ne.toString()}else if(Ee.includes("multipart/form-data")||pe.data instanceof FormData){const Ne=new FormData;if(pe.data instanceof FormData)pe.data.forEach((q,u)=>{Ne.append(u,q)});else for(const q of Object.keys(pe.data))Ne.append(q,pe.data[q]);de.body=Ne;const ge=new Headers(de.headers);ge.delete("content-type"),de.headers=ge}else(Ee.includes("application/json")||"object"==typeof pe.data)&&(de.body=JSON.stringify(pe.data));return de};class fe extends ${request(he){return(0,n.A)(function*(){const de=U(he,he.webFetchExtra),_e=((pe,he=!0)=>pe?Object.entries(pe).reduce((_e,Ee)=>{const[Ne,ge]=Ee;let q,u;return Array.isArray(ge)?(u="",ge.forEach(p=>{q=he?encodeURIComponent(p):p,u+=`${Ne}=${q}&`}),u.slice(0,-1)):(q=he?encodeURIComponent(ge):ge,u=`${Ne}=${q}`),`${_e}&${u}`},"").substr(1):null)(he.params,he.shouldEncodeUrlParams),Ee=_e?`${he.url}?${_e}`:he.url,Ne=yield fetch(Ee,de),ge=Ne.headers.get("content-type")||"";let u,p,{responseType:q="text"}=Ne.ok?he:{};switch(ge.includes("application/json")&&(q="json"),q){case"arraybuffer":case"blob":p=yield Ne.blob(),u=yield W(p);break;case"json":u=yield Ne.json();break;default:u=yield Ne.text()}const N={};return Ne.headers.forEach((G,R)=>{N[R]=G}),{data:u,headers:N,status:Ne.status,url:Ne.url}})()}get(he){var de=this;return(0,n.A)(function*(){return de.request(Object.assign(Object.assign({},he),{method:"GET"}))})()}post(he){var de=this;return(0,n.A)(function*(){return de.request(Object.assign(Object.assign({},he),{method:"POST"}))})()}put(he){var de=this;return(0,n.A)(function*(){return de.request(Object.assign(Object.assign({},he),{method:"PUT"}))})()}patch(he){var de=this;return(0,n.A)(function*(){return de.request(Object.assign(Object.assign({},he),{method:"PATCH"}))})()}delete(he){var de=this;return(0,n.A)(function*(){return de.request(Object.assign(Object.assign({},he),{method:"DELETE"}))})()}}C("CapacitorHttp",{web:()=>new fe})},92908:(He,L,o)=>{"use strict";o.d(L,{Wi:()=>y,__:()=>n});var n=function(ie){return ie.Documents="DOCUMENTS",ie.Data="DATA",ie.Library="LIBRARY",ie.Cache="CACHE",ie.External="EXTERNAL",ie.ExternalStorage="EXTERNAL_STORAGE",ie}(n||{}),y=function(ie){return ie.UTF8="utf8",ie.ASCII="ascii",ie.UTF16="utf16",ie}(y||{})},19866:(He,L,o)=>{"use strict";o.d(L,{YA:()=>a,__:()=>y.__});var n=o(22126),y=o(92908);const a=(0,n.F3)("Filesystem",{web:()=>o.e(2992).then(o.bind(o,52992)).then(Q=>new Q.FilesystemWeb)})},21510:(He,L,o)=>{"use strict";o.d(L,{S:()=>y});const y=(0,o(22126).F3)("Share",{web:()=>o.e(2644).then(o.bind(o,2644)).then(a=>new a.ShareWeb)})},27504:(He,L,o)=>{"use strict";o.d(L,{Nb:()=>Q,Kk:()=>a});var n=o(22126),a=function(ie){return ie.ACTIVITY="activity",ie.NAVIGATION="navigation",ie.BLANK="blank",ie.DEFAULT="",ie}(a||{});const Q=(0,n.F3)("InAppBrowser",{web:()=>o.e(4025).then(o.bind(o,84025)).then(ie=>new ie.InAppBrowserWeb)})},77897:(He,L,o)=>{"use strict";o.d(L,{GD:()=>tr,hG:()=>Tn,hB:()=>Me,TS:()=>zr,xk:()=>ht,YH:()=>It,U1:()=>Rt,mC:()=>At,el:()=>Ut,tY:()=>sr,In:()=>it,Jm:()=>Pt,QW:()=>vt,b_:()=>$t,I9:()=>ct,ME:()=>Be,HW:()=>Je,tN:()=>wt,eY:()=>Jt,ZB:()=>ln,hU:()=>pn,W9:()=>kn,A9:()=>Mn,Q8:()=>Bn,YW:()=>Zn,OL:()=>Yn,M0:()=>Jn,lO:()=>In,eU:()=>ii,iq:()=>yi,KW:()=>mt,Ax:()=>yt,Hp:()=>We,$w:()=>et,uz:()=>Mt,Dg:()=>zt,LU:()=>un,CE:()=>An,A7:()=>dn,he:()=>ri,nf:()=>si,AF:()=>gt,Sb:()=>Pr,JI:()=>jt,KO:()=>qt,f0:()=>Un,To:()=>qn,Ki:()=>jn,Rg:()=>Ri,ln:()=>_n,S1:()=>Ci,Gp:()=>fi,eP:()=>Ln,Nm:()=>Xn,Ip:()=>oi,ds:()=>Le,q3:()=>tt,tR:()=>te,w2:()=>be,Jq:()=>Pe,qW:()=>Ke,p4:()=>yn,IO:()=>Se,nc:()=>Ue,Zx:()=>Xe,BC:()=>lt,BY:()=>pt,ai:()=>kt,bv:()=>ws,jM:()=>zi,Xi:()=>Jr,_t:()=>kr,W3:()=>nr,q9:()=>ji,y8:()=>Kt,su:()=>Fe,OD:()=>En,IE:()=>lr,uR:()=>Re,N7:()=>pr,oY:()=>Wn,Je:()=>je,Gw:()=>at,K_:()=>qr});var n=o(2978),y=o(37222),a=o(97270),Q=o(98129),ie=o(16104),Z=o(95981),h=o(36075),z=(o(28775),o(86494),o(90600),o(53847),o(42673)),d=o(46184),C=o(69324),P=o(89345),k=o(15130),$=o(97255),f=(o(94706),o(45995),o(29814)),K=o(38503),re=o(72831),U=o(73793),fe=o(56610);const pe=z.i,_e=["*"],Ee=["outlet"],Ne=[[["","slot","top"]],"*"],ge=["[slot=top]","*"];function q(b,ve){if(1&b&&(n.j41(0,"div",1),n.eu8(1,2),n.k0s()),2&b){const A=n.XpG();n.R7$(1),n.Y8G("ngTemplateOutlet",A.template)}}const p=b=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(b):"function"==typeof requestAnimationFrame?requestAnimationFrame(b):setTimeout(b),N=b=>!!b.resolveComponentFactory;let G=(()=>{class b{constructor(A,ce){this.injector=A,this.el=ce,this.onChange=()=>{},this.onTouched=()=>{}}writeValue(A){this.el.nativeElement.value=this.lastValue=A??"",R(this.el)}handleChangeEvent(A,ce){A===this.el.nativeElement&&(ce!==this.lastValue&&(this.lastValue=ce,this.onChange(ce)),R(this.el))}_handleBlurEvent(A){A===this.el.nativeElement&&(this.onTouched(),R(this.el))}registerOnChange(A){this.onChange=A}registerOnTouched(A){this.onTouched=A}setDisabledState(A){this.el.nativeElement.disabled=A}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let A;try{A=this.injector.get(y.vO)}catch{}if(!A)return;A.statusChanges&&(this.statusChanges=A.statusChanges.subscribe(()=>R(this.el)));const ce=A.control;ce&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(ae=>{if(typeof ce[ae]<"u"){const Y=ce[ae].bind(ce);ce[ae]=(...De)=>{Y(...De),R(this.el)}}})}}return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.zZn),n.rXU(n.aKT))},b.\u0275dir=n.FsC({type:b,hostBindings:function(A,ce){1&A&&n.bIt("ionBlur",function(ae){return ce._handleBlurEvent(ae.target)})}}),b})();const R=b=>{p(()=>{const ve=b.nativeElement,A=null!=ve.value&&ve.value.toString().length>0,ce=ne(ve);S(ve,ce);const F=ve.closest("ion-item");F&&S(F,A?[...ce,"item-has-value"]:ce)})},ne=b=>{const ve=b.classList,A=[];for(let ce=0;ce<ve.length;ce++){const F=ve.item(ce);null!==F&&se(F,"ng-")&&A.push(`ion-${F.substring(3)}`)}return A},S=(b,ve)=>{const A=b.classList;A.remove("ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"),A.add(...ve)},se=(b,ve)=>b.substring(0,ve.length)===ve;let Me=(()=>{class b extends G{constructor(A,ce){super(A,ce)}writeValue(A){this.el.nativeElement.checked=this.lastValue=A??!1,R(this.el)}_handleIonChange(A){this.handleChangeEvent(A,A.checked)}}return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.zZn),n.rXU(n.aKT))},b.\u0275dir=n.FsC({type:b,selectors:[["ion-checkbox"],["ion-toggle"]],hostBindings:function(A,ce){1&A&&n.bIt("ionChange",function(ae){return ce._handleIonChange(ae.target)})},features:[n.Jv_([{provide:y.kq,useExisting:b,multi:!0}]),n.Vt3]}),b})(),Fe=(()=>{class b extends G{constructor(A,ce){super(A,ce)}_handleIonChange(A){this.handleChangeEvent(A,A.value)}registerOnChange(A){super.registerOnChange(ce=>{A(""===ce?null:parseFloat(ce))})}}return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.zZn),n.rXU(n.aKT))},b.\u0275dir=n.FsC({type:b,selectors:[["ion-input","type","number"]],hostBindings:function(A,ce){1&A&&n.bIt("ionChange",function(ae){return ce._handleIonChange(ae.target)})},features:[n.Jv_([{provide:y.kq,useExisting:b,multi:!0}]),n.Vt3]}),b})(),Re=(()=>{class b extends G{constructor(A,ce){super(A,ce)}_handleIonSelect(A){this.handleChangeEvent(A,A.checked)}}return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.zZn),n.rXU(n.aKT))},b.\u0275dir=n.FsC({type:b,selectors:[["ion-radio"]],hostBindings:function(A,ce){1&A&&n.bIt("ionSelect",function(ae){return ce._handleIonSelect(ae.target)})},features:[n.Jv_([{provide:y.kq,useExisting:b,multi:!0}]),n.Vt3]}),b})(),je=(()=>{class b extends G{constructor(A,ce){super(A,ce)}_handleChangeEvent(A){this.handleChangeEvent(A,A.value)}}return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.zZn),n.rXU(n.aKT))},b.\u0275dir=n.FsC({type:b,selectors:[["ion-range"],["ion-select"],["ion-radio-group"],["ion-segment"],["ion-datetime"]],hostBindings:function(A,ce){1&A&&n.bIt("ionChange",function(ae){return ce._handleChangeEvent(ae.target)})},features:[n.Jv_([{provide:y.kq,useExisting:b,multi:!0}]),n.Vt3]}),b})(),at=(()=>{class b extends G{constructor(A,ce){super(A,ce)}_handleInputEvent(A){this.handleChangeEvent(A,A.value)}}return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.zZn),n.rXU(n.aKT))},b.\u0275dir=n.FsC({type:b,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(A,ce){1&A&&n.bIt("ionChange",function(ae){return ce._handleInputEvent(ae.target)})},features:[n.Jv_([{provide:y.kq,useExisting:b,multi:!0}]),n.Vt3]}),b})();const ft=(b,ve)=>{const A=b.prototype;ve.forEach(ce=>{Object.defineProperty(A,ce,{get(){return this.el[ce]},set(F){this.z.runOutsideAngular(()=>this.el[ce]=F)}})})},Qe=(b,ve)=>{const A=b.prototype;ve.forEach(ce=>{A[ce]=function(){const F=arguments;return this.z.runOutsideAngular(()=>this.el[ce].apply(this.el,F))}})},nt=(b,ve,A)=>{A.forEach(ce=>b[ce]=(0,Q.R)(ve,ce))};function Ge(b){return function(A){const{defineCustomElementFn:ce,inputs:F,methods:ae}=b;return void 0!==ce&&ce(),F&&ft(A,F),ae&&Qe(A,ae),A}}let ht=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-accordion"]],inputs:{disabled:"disabled",mode:"mode",readonly:"readonly",toggleIcon:"toggleIcon",toggleIconSlot:"toggleIconSlot",value:"value"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["disabled","mode","readonly","toggleIcon","toggleIconSlot","value"]})],b),b})(),It=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement,nt(this,this.el,["ionChange"])}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-accordion-group"]],inputs:{animated:"animated",disabled:"disabled",expand:"expand",mode:"mode",multiple:"multiple",readonly:"readonly",value:"value"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["animated","disabled","expand","mode","multiple","readonly","value"]})],b),b})(),Rt=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-app"]],ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0})],b),b})(),At=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-avatar"]],ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0})],b),b})(),Ut=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-back-button"]],inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"]})],b),b})(),it=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-badge"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["color","mode"]})],b),b})(),Pt=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement,nt(this,this.el,["ionFocus","ionBlur"])}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",form:"form",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["buttonType","color","disabled","download","expand","fill","form","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],b),b})(),vt=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-buttons"]],inputs:{collapse:"collapse"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["collapse"]})],b),b})(),$t=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-card"]],inputs:{button:"button",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],b),b})(),ct=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["mode"]})],b),b})(),Be=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["color","mode","translucent"]})],b),b})(),Je=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-card-subtitle"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["color","mode"]})],b),b})(),wt=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-card-title"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["color","mode"]})],b),b})(),Jt=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement,nt(this,this.el,["ionChange","ionFocus","ionBlur"])}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-checkbox"]],inputs:{checked:"checked",color:"color",disabled:"disabled",indeterminate:"indeterminate",mode:"mode",name:"name",value:"value"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["checked","color","disabled","indeterminate","mode","name","value"]})],b),b})(),ln=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-chip"]],inputs:{color:"color",disabled:"disabled",mode:"mode",outline:"outline"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["color","disabled","mode","outline"]})],b),b})(),pn=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pushXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],b),b})(),kn=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement,nt(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-content"]],inputs:{color:"color",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["color","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],b),b})(),Mn=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement,nt(this,this.el,["ionCancel","ionChange","ionFocus","ionBlur"])}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-datetime"]],inputs:{cancelText:"cancelText",clearText:"clearText",color:"color",dayValues:"dayValues",disabled:"disabled",doneText:"doneText",firstDayOfWeek:"firstDayOfWeek",highlightedDates:"highlightedDates",hourCycle:"hourCycle",hourValues:"hourValues",isDateEnabled:"isDateEnabled",locale:"locale",max:"max",min:"min",minuteValues:"minuteValues",mode:"mode",monthValues:"monthValues",multiple:"multiple",name:"name",preferWheel:"preferWheel",presentation:"presentation",readonly:"readonly",showClearButton:"showClearButton",showDefaultButtons:"showDefaultButtons",showDefaultTimeLabel:"showDefaultTimeLabel",showDefaultTitle:"showDefaultTitle",size:"size",titleSelectedDatesFormatter:"titleSelectedDatesFormatter",value:"value",yearValues:"yearValues"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["cancelText","clearText","color","dayValues","disabled","doneText","firstDayOfWeek","highlightedDates","hourCycle","hourValues","isDateEnabled","locale","max","min","minuteValues","mode","monthValues","multiple","name","preferWheel","presentation","readonly","showClearButton","showDefaultButtons","showDefaultTimeLabel","showDefaultTitle","size","titleSelectedDatesFormatter","value","yearValues"],methods:["confirm","reset","cancel"]})],b),b})(),Bn=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-fab"]],inputs:{activated:"activated",edge:"edge",horizontal:"horizontal",vertical:"vertical"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["activated","edge","horizontal","vertical"],methods:["close"]})],b),b})(),Zn=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement,nt(this,this.el,["ionFocus","ionBlur"])}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-fab-button"]],inputs:{activated:"activated",closeIcon:"closeIcon",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",show:"show",size:"size",target:"target",translucent:"translucent",type:"type"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["activated","closeIcon","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","show","size","target","translucent","type"]})],b),b})(),Yn=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-fab-list"]],inputs:{activated:"activated",side:"side"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["activated","side"]})],b),b})(),Jn=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-footer"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["collapse","mode","translucent"]})],b),b})(),In=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["fixed"]})],b),b})(),ii=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["collapse","mode","translucent"]})],b),b})(),yi=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-icon"]],inputs:{color:"color",flipRtl:"flipRtl",icon:"icon",ios:"ios",lazy:"lazy",md:"md",mode:"mode",name:"name",sanitize:"sanitize",size:"size",src:"src"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],b),b})(),mt=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement,nt(this,this.el,["ionImgWillLoad","ionImgDidLoad","ionError"])}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-img"]],inputs:{alt:"alt",src:"src"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["alt","src"]})],b),b})(),yt=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement,nt(this,this.el,["ionInfinite"])}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-infinite-scroll"]],inputs:{disabled:"disabled",position:"position",threshold:"threshold"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["disabled","position","threshold"],methods:["complete"]})],b),b})(),We=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-infinite-scroll-content"]],inputs:{loadingSpinner:"loadingSpinner",loadingText:"loadingText"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["loadingSpinner","loadingText"]})],b),b})(),et=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement,nt(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-input"]],inputs:{accept:"accept",autocapitalize:"autocapitalize",autocomplete:"autocomplete",autocorrect:"autocorrect",autofocus:"autofocus",clearInput:"clearInput",clearOnEdit:"clearOnEdit",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",max:"max",maxlength:"maxlength",min:"min",minlength:"minlength",mode:"mode",multiple:"multiple",name:"name",pattern:"pattern",placeholder:"placeholder",readonly:"readonly",required:"required",size:"size",spellcheck:"spellcheck",step:"step",type:"type",value:"value"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["accept","autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearOnEdit","color","debounce","disabled","enterkeyhint","inputmode","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","size","spellcheck","step","type","value"],methods:["setFocus","getInputElement"]})],b),b})(),Mt=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-item"]],inputs:{button:"button",color:"color",counter:"counter",counterFormatter:"counterFormatter",detail:"detail",detailIcon:"detailIcon",disabled:"disabled",download:"download",fill:"fill",href:"href",lines:"lines",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",target:"target",type:"type"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["button","color","counter","counterFormatter","detail","detailIcon","disabled","download","fill","href","lines","mode","rel","routerAnimation","routerDirection","shape","target","type"]})],b),b})(),zt=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-item-divider"]],inputs:{color:"color",mode:"mode",sticky:"sticky"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["color","mode","sticky"]})],b),b})(),un=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-item-option"]],inputs:{color:"color",disabled:"disabled",download:"download",expandable:"expandable",href:"href",mode:"mode",rel:"rel",target:"target",type:"type"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["color","disabled","download","expandable","href","mode","rel","target","type"]})],b),b})(),An=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement,nt(this,this.el,["ionSwipe"])}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-item-options"]],inputs:{side:"side"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["side"]})],b),b})(),dn=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement,nt(this,this.el,["ionDrag"])}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-item-sliding"]],inputs:{disabled:"disabled"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["disabled"],methods:["getOpenAmount","getSlidingRatio","open","close","closeOpened"]})],b),b})(),ri=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["color","mode","position"]})],b),b})(),si=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],b),b})(),gt=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-list-header"]],inputs:{color:"color",lines:"lines",mode:"mode"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["color","lines","mode"]})],b),b})(),jt=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-note"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["color","mode"]})],b),b})(),qt=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement,nt(this,this.el,["ionFocus","ionBlur"])}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-radio"]],inputs:{color:"color",disabled:"disabled",mode:"mode",name:"name",value:"value"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["color","disabled","mode","name","value"]})],b),b})(),Un=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement,nt(this,this.el,["ionChange"])}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-radio-group"]],inputs:{allowEmptySelection:"allowEmptySelection",name:"name",value:"value"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["allowEmptySelection","name","value"]})],b),b})(),qn=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement,nt(this,this.el,["ionRefresh","ionPull","ionStart"])}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-refresher"]],inputs:{closeDuration:"closeDuration",disabled:"disabled",pullFactor:"pullFactor",pullMax:"pullMax",pullMin:"pullMin",snapbackDuration:"snapbackDuration"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["closeDuration","disabled","pullFactor","pullMax","pullMin","snapbackDuration"],methods:["complete","cancel","getProgress"]})],b),b})(),jn=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-refresher-content"]],inputs:{pullingIcon:"pullingIcon",pullingText:"pullingText",refreshingSpinner:"refreshingSpinner",refreshingText:"refreshingText"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["pullingIcon","pullingText","refreshingSpinner","refreshingText"]})],b),b})(),_n=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-row"]],ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0})],b),b})(),Ci=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement,nt(this,this.el,["ionInput","ionChange","ionCancel","ionClear","ionBlur","ionFocus"])}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-searchbar"]],inputs:{animated:"animated",autocomplete:"autocomplete",autocorrect:"autocorrect",cancelButtonIcon:"cancelButtonIcon",cancelButtonText:"cancelButtonText",clearIcon:"clearIcon",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",mode:"mode",placeholder:"placeholder",searchIcon:"searchIcon",showCancelButton:"showCancelButton",showClearButton:"showClearButton",spellcheck:"spellcheck",type:"type",value:"value"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["animated","autocomplete","autocorrect","cancelButtonIcon","cancelButtonText","clearIcon","color","debounce","disabled","enterkeyhint","inputmode","mode","placeholder","searchIcon","showCancelButton","showClearButton","spellcheck","type","value"],methods:["setFocus","getInputElement"]})],b),b})(),fi=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement,nt(this,this.el,["ionChange"])}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-segment"]],inputs:{color:"color",disabled:"disabled",mode:"mode",scrollable:"scrollable",selectOnFocus:"selectOnFocus",swipeGesture:"swipeGesture",value:"value"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["color","disabled","mode","scrollable","selectOnFocus","swipeGesture","value"]})],b),b})(),Ln=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-segment-button"]],inputs:{disabled:"disabled",layout:"layout",mode:"mode",type:"type",value:"value"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["disabled","layout","mode","type","value"]})],b),b})(),Xn=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement,nt(this,this.el,["ionChange","ionCancel","ionDismiss","ionFocus","ionBlur"])}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-select"]],inputs:{cancelText:"cancelText",compareWith:"compareWith",disabled:"disabled",interface:"interface",interfaceOptions:"interfaceOptions",mode:"mode",multiple:"multiple",name:"name",okText:"okText",placeholder:"placeholder",selectedText:"selectedText",value:"value"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["cancelText","compareWith","disabled","interface","interfaceOptions","mode","multiple","name","okText","placeholder","selectedText","value"],methods:["open"]})],b),b})(),oi=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-select-option"]],inputs:{disabled:"disabled",value:"value"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["disabled","value"]})],b),b})(),Le=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-skeleton-text"]],inputs:{animated:"animated"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["animated"]})],b),b})(),tt=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-slide"]],ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0})],b),b})(),te=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement,nt(this,this.el,["ionSlidesDidLoad","ionSlideTap","ionSlideDoubleTap","ionSlideWillChange","ionSlideDidChange","ionSlideNextStart","ionSlidePrevStart","ionSlideNextEnd","ionSlidePrevEnd","ionSlideTransitionStart","ionSlideTransitionEnd","ionSlideDrag","ionSlideReachStart","ionSlideReachEnd","ionSlideTouchStart","ionSlideTouchEnd"])}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-slides"]],inputs:{mode:"mode",options:"options",pager:"pager",scrollbar:"scrollbar"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["mode","options","pager","scrollbar"],methods:["update","updateAutoHeight","slideTo","slideNext","slidePrev","getActiveIndex","getPreviousIndex","length","isEnd","isBeginning","startAutoplay","stopAutoplay","lockSwipeToNext","lockSwipeToPrev","lockSwipes","getSwiper"]})],b),b})(),be=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-spinner"]],inputs:{color:"color",duration:"duration",name:"name",paused:"paused"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["color","duration","name","paused"]})],b),b})(),Pe=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-tab-bar"]],inputs:{color:"color",mode:"mode",selectedTab:"selectedTab",translucent:"translucent"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["color","mode","selectedTab","translucent"]})],b),b})(),Ke=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-tab-button"]],inputs:{disabled:"disabled",download:"download",href:"href",layout:"layout",mode:"mode",rel:"rel",selected:"selected",tab:"tab",target:"target"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["disabled","download","href","layout","mode","rel","selected","tab","target"]})],b),b})(),Se=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-text"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["color","mode"]})],b),b})(),Ue=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement,nt(this,this.el,["ionChange","ionInput","ionBlur","ionFocus"])}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-textarea"]],inputs:{autoGrow:"autoGrow",autocapitalize:"autocapitalize",autofocus:"autofocus",clearOnEdit:"clearOnEdit",color:"color",cols:"cols",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",maxlength:"maxlength",minlength:"minlength",mode:"mode",name:"name",placeholder:"placeholder",readonly:"readonly",required:"required",rows:"rows",spellcheck:"spellcheck",value:"value",wrap:"wrap"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["autoGrow","autocapitalize","autofocus","clearOnEdit","color","cols","debounce","disabled","enterkeyhint","inputmode","maxlength","minlength","mode","name","placeholder","readonly","required","rows","spellcheck","value","wrap"],methods:["setFocus","getInputElement"]})],b),b})(),Xe=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-thumbnail"]],ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0})],b),b})(),lt=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["color","size"]})],b),b})(),pt=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement,nt(this,this.el,["ionChange","ionFocus","ionBlur"])}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-toggle"]],inputs:{checked:"checked",color:"color",disabled:"disabled",enableOnOffLabels:"enableOnOffLabels",mode:"mode",name:"name",value:"value"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["checked","color","disabled","enableOnOffLabels","mode","name","value"]})],b),b})(),kt=(()=>{let b=class{constructor(A,ce,F){this.z=F,A.detach(),this.el=ce.nativeElement}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:_e,decls:1,vars:0,template:function(A,ce){1&A&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({defineCustomElementFn:void 0,inputs:["color","mode"]})],b),b})();class Kt{constructor(ve={}){this.data=ve}get(ve){return this.data[ve]}}let Zt=(()=>{class b{constructor(A,ce){this.zone=A,this.appRef=ce}create(A,ce,F,ae){return new we(A,ce,F,this.appRef,this.zone,ae)}}return b.\u0275fac=function(A){return new(A||b)(n.KVO(n.SKi),n.KVO(n.o8S))},b.\u0275prov=n.jDH({token:b,factory:b.\u0275fac}),b})();class we{constructor(ve,A,ce,F,ae,Y){this.resolverOrInjector=ve,this.injector=A,this.location=ce,this.appRef=F,this.zone=ae,this.elementReferenceKey=Y,this.elRefMap=new WeakMap,this.elEventsMap=new WeakMap}attachViewToDom(ve,A,ce,F){return this.zone.run(()=>new Promise(ae=>{const Y=Object.assign({},ce);void 0!==this.elementReferenceKey&&(Y[this.elementReferenceKey]=ve),ae(ke(this.zone,this.resolverOrInjector,this.injector,this.location,this.appRef,this.elRefMap,this.elEventsMap,ve,A,Y,F))}))}removeViewFromDom(ve,A){return this.zone.run(()=>new Promise(ce=>{const F=this.elRefMap.get(A);if(F){F.destroy(),this.elRefMap.delete(A);const ae=this.elEventsMap.get(A);ae&&(ae(),this.elEventsMap.delete(A))}ce()}))}}const ke=(b,ve,A,ce,F,ae,Y,De,Ve,Yt,gn)=>{let Kn;const Di=n.zZn.create({providers:nn(Yt),parent:A});if(ve&&N(ve)){const cs=ve.resolveComponentFactory(Ve);Kn=ce?ce.createComponent(cs,ce.length,Di):cs.create(Di)}else{if(!ce)return null;Kn=ce.createComponent(Ve,{index:ce.indexOf,injector:Di,environmentInjector:ve})}const ur=Kn.instance,Nr=Kn.location.nativeElement;if(Yt&&Object.assign(ur,Yt),gn)for(const cs of gn)Nr.classList.add(cs);const Ns=Ct(b,ur,Nr);return De.appendChild(Nr),ce||F.attachView(Kn.hostView),Kn.changeDetectorRef.reattach(),ae.set(Nr,Kn),Y.set(Nr,Ns),Nr},Ze=[P.L,P.a,P.b,P.c,P.d],Ct=(b,ve,A)=>b.run(()=>{const ce=Ze.filter(F=>"function"==typeof ve[F]).map(F=>{const ae=Y=>ve[F](Y.detail);return A.addEventListener(F,ae),()=>A.removeEventListener(F,ae)});return()=>ce.forEach(F=>F())}),Vt=new n.nKC("NavParamsToken"),nn=b=>[{provide:Vt,useValue:b},{provide:Kt,useFactory:hn,deps:[Vt]}],hn=b=>new Kt(b),ai=(b,ve)=>((b=b.filter(A=>A.stackId!==ve.stackId)).push(ve),b),Hn=(b,ve)=>{const A=b.createUrlTree(["."],{relativeTo:ve});return b.serializeUrl(A)},Rr=(b,ve)=>{if(!b)return;const A=Ii(ve);for(let ce=0;ce<A.length;ce++){if(ce>=b.length)return A[ce];if(A[ce]!==b[ce])return}},Ii=b=>b.split("/").map(ve=>ve.trim()).filter(ve=>""!==ve),vr=b=>{b&&(b.ref.destroy(),b.unlistenEvents())};class rr{constructor(ve,A,ce,F,ae,Y){this.containerEl=A,this.router=ce,this.navCtrl=F,this.zone=ae,this.location=Y,this.views=[],this.skipTransition=!1,this.nextId=0,this.tabsPrefix=void 0!==ve?Ii(ve):void 0}createView(ve,A){var ce;const F=Hn(this.router,A),ae=null===(ce=ve?.location)||void 0===ce?void 0:ce.nativeElement,Y=Ct(this.zone,ve.instance,ae);return{id:this.nextId++,stackId:Rr(this.tabsPrefix,F),unlistenEvents:Y,element:ae,ref:ve,url:F}}getExistingView(ve){const A=Hn(this.router,ve),ce=this.views.find(F=>F.url===A);return ce&&ce.ref.changeDetectorRef.reattach(),ce}setActive(ve){var A,ce;const F=this.navCtrl.consumeTransition();let{direction:ae,animation:Y,animationBuilder:De}=F;const Ve=this.activeView,Yt=((b,ve)=>!ve||b.stackId!==ve.stackId)(ve,Ve);Yt&&(ae="back",Y=void 0);const gn=this.views.slice();let Kn;const Di=this.router;Di.getCurrentNavigation?Kn=Di.getCurrentNavigation():!(null===(A=Di.navigations)||void 0===A)&&A.value&&(Kn=Di.navigations.value),null!==(ce=Kn?.extras)&&void 0!==ce&&ce.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const ur=this.views.includes(ve),Nr=this.insertView(ve,ae);ur||ve.ref.changeDetectorRef.detectChanges();const Ns=ve.animationBuilder;return void 0===De&&"back"===ae&&!Yt&&void 0!==Ns&&(De=Ns),Ve&&(Ve.animationBuilder=De),this.zone.runOutsideAngular(()=>this.wait(()=>(Ve&&Ve.ref.changeDetectorRef.detach(),ve.ref.changeDetectorRef.reattach(),this.transition(ve,Ve,Y,this.canGoBack(1),!1,De).then(()=>Hr(ve,Nr,gn,this.location,this.zone)).then(()=>({enteringView:ve,direction:ae,animation:Y,tabSwitch:Yt})))))}canGoBack(ve,A=this.getActiveStackId()){return this.getStack(A).length>ve}pop(ve,A=this.getActiveStackId()){return this.zone.run(()=>{var ce,F;const ae=this.getStack(A);if(ae.length<=ve)return Promise.resolve(!1);const Y=ae[ae.length-ve-1];let De=Y.url;const Ve=Y.savedData;if(Ve){const gn=Ve.get("primary");null!==(F=null===(ce=gn?.route)||void 0===ce?void 0:ce._routerState)&&void 0!==F&&F.snapshot.url&&(De=gn.route._routerState.snapshot.url)}const{animationBuilder:Yt}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(De,Object.assign(Object.assign({},Y.savedExtras),{animation:Yt})).then(()=>!0)})}startBackTransition(){const ve=this.activeView;if(ve){const A=this.getStack(ve.stackId),ce=A[A.length-2],F=ce.animationBuilder;return this.wait(()=>this.transition(ce,ve,"back",this.canGoBack(2),!0,F))}return Promise.resolve()}endBackTransition(ve){ve?(this.skipTransition=!0,this.pop(1)):this.activeView&&Lr(this.activeView,this.views,this.views,this.location,this.zone)}getLastUrl(ve){const A=this.getStack(ve);return A.length>0?A[A.length-1]:void 0}getRootUrl(ve){const A=this.getStack(ve);return A.length>0?A[0]:void 0}getActiveStackId(){return this.activeView?this.activeView.stackId:void 0}hasRunningTask(){return void 0!==this.runningTask}destroy(){this.containerEl=void 0,this.views.forEach(vr),this.activeView=void 0,this.views=[]}getStack(ve){return this.views.filter(A=>A.stackId===ve)}insertView(ve,A){return this.activeView=ve,this.views=((b,ve,A)=>"root"===A?ai(b,ve):"forward"===A?((b,ve)=>(b.indexOf(ve)>=0?b=b.filter(ce=>ce.stackId!==ve.stackId||ce.id<=ve.id):b.push(ve),b))(b,ve):((b,ve)=>b.indexOf(ve)>=0?b.filter(ce=>ce.stackId!==ve.stackId||ce.id<=ve.id):ai(b,ve))(b,ve))(this.views,ve,A),this.views.slice()}transition(ve,A,ce,F,ae,Y){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(A===ve)return Promise.resolve(!1);const De=ve?ve.element:void 0,Ve=A?A.element:void 0,Yt=this.containerEl;return De&&De!==Ve&&(De.classList.add("ion-page"),De.classList.add("ion-page-invisible"),De.parentElement!==Yt&&Yt.appendChild(De),Yt.commit)?Yt.commit(De,Ve,{deepWait:!0,duration:void 0===ce?0:void 0,direction:ce,showGoBack:F,progressAnimation:ae,animationBuilder:Y}):Promise.resolve(!1)}wait(ve){return(0,a.sH)(this,void 0,void 0,function*(){void 0!==this.runningTask&&(yield this.runningTask,this.runningTask=void 0);const A=this.runningTask=ve();return A.finally(()=>this.runningTask=void 0),A})}}const Hr=(b,ve,A,ce,F)=>"function"==typeof requestAnimationFrame?new Promise(ae=>{requestAnimationFrame(()=>{Lr(b,ve,A,ce,F),ae()})}):Promise.resolve(),Lr=(b,ve,A,ce,F)=>{F.run(()=>A.filter(ae=>!ve.includes(ae)).forEach(vr)),ve.forEach(ae=>{const De=ce.path().split("?")[0].split("#")[0];if(ae!==b&&ae.url!==De){const Ve=ae.element;Ve.setAttribute("aria-hidden","true"),Ve.classList.add("ion-page-hidden"),ae.ref.changeDetectorRef.detach()}})};let zr=(()=>{class b{get(A,ce){const F=tn();return F?F.get(A,ce):null}getBoolean(A,ce){const F=tn();return!!F&&F.getBoolean(A,ce)}getNumber(A,ce){const F=tn();return F?F.getNumber(A,ce):0}}return b.\u0275fac=function(A){return new(A||b)},b.\u0275prov=n.jDH({token:b,factory:b.\u0275fac,providedIn:"root"}),b})();const gi=new n.nKC("USERCONFIG"),tn=()=>{if(typeof window<"u"){const b=window.Ionic;if(b?.config)return b.config}return null};let En=(()=>{class b{constructor(A,ce){this.doc=A,this.backButton=new ie.B,this.keyboardDidShow=new ie.B,this.keyboardDidHide=new ie.B,this.pause=new ie.B,this.resume=new ie.B,this.resize=new ie.B,ce.run(()=>{var F;let ae;this.win=A.defaultView,this.backButton.subscribeWithPriority=function(Y,De){return this.subscribe(Ve=>Ve.register(Y,Yt=>ce.run(()=>De(Yt))))},Pi(this.pause,A,"pause"),Pi(this.resume,A,"resume"),Pi(this.backButton,A,"ionBackButton"),Pi(this.resize,this.win,"resize"),Pi(this.keyboardDidShow,this.win,"ionKeyboardDidShow"),Pi(this.keyboardDidHide,this.win,"ionKeyboardDidHide"),this._readyPromise=new Promise(Y=>{ae=Y}),null!==(F=this.win)&&void 0!==F&&F.cordova?A.addEventListener("deviceready",()=>{ae("cordova")},{once:!0}):ae("dom")})}is(A){return(0,z.a)(this.win,A)}platforms(){return(0,z.g)(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(A){return li(this.win.location.href,A)}isLandscape(){return!this.isPortrait()}isPortrait(){var A,ce;return null===(ce=(A=this.win).matchMedia)||void 0===ce?void 0:ce.call(A,"(orientation: portrait)").matches}testUserAgent(A){const ce=this.win.navigator;return!!(ce?.userAgent&&ce.userAgent.indexOf(A)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}}return b.\u0275fac=function(A){return new(A||b)(n.KVO(fe.qQ),n.KVO(n.SKi))},b.\u0275prov=n.jDH({token:b,factory:b.\u0275fac,providedIn:"root"}),b})();const li=(b,ve)=>{ve=ve.replace(/[[\]\\]/g,"\\$&");const ce=new RegExp("[\\?&]"+ve+"=([^&#]*)").exec(b);return ce?decodeURIComponent(ce[1].replace(/\+/g," ")):null},Pi=(b,ve,A)=>{ve&&ve.addEventListener(A,ce=>{b.next(ce?.detail)})};let ji=(()=>{class b{constructor(A,ce,F,ae){this.location=ce,this.serializer=F,this.router=ae,this.direction=yr,this.animated=bi,this.guessDirection="forward",this.lastNavId=-1,ae&&ae.events.subscribe(Y=>{if(Y instanceof h.Z){const De=Y.restoredState?Y.restoredState.navigationId:Y.id;this.guessDirection=De<this.lastNavId?"back":"forward",this.guessAnimation=Y.restoredState?void 0:this.guessDirection,this.lastNavId="forward"===this.guessDirection?Y.id:De}}),A.backButton.subscribeWithPriority(0,Y=>{this.pop(),Y()})}navigateForward(A,ce={}){return this.setDirection("forward",ce.animated,ce.animationDirection,ce.animation),this.navigate(A,ce)}navigateBack(A,ce={}){return this.setDirection("back",ce.animated,ce.animationDirection,ce.animation),this.navigate(A,ce)}navigateRoot(A,ce={}){return this.setDirection("root",ce.animated,ce.animationDirection,ce.animation),this.navigate(A,ce)}back(A={animated:!0,animationDirection:"back"}){return this.setDirection("back",A.animated,A.animationDirection,A.animation),this.location.back()}pop(){return(0,a.sH)(this,void 0,void 0,function*(){let A=this.topOutlet;for(;A&&!(yield A.pop());)A=A.parentOutlet})}setDirection(A,ce,F,ae){this.direction=A,this.animated=Oi(A,ce,F),this.animationBuilder=ae}setTopOutlet(A){this.topOutlet=A}consumeTransition(){let ce,A="root";const F=this.animationBuilder;return"auto"===this.direction?(A=this.guessDirection,ce=this.guessAnimation):(ce=this.animated,A=this.direction),this.direction=yr,this.animated=bi,this.animationBuilder=void 0,{direction:A,animation:ce,animationBuilder:F}}navigate(A,ce){if(Array.isArray(A))return this.router.navigate(A,ce);{const F=this.serializer.parse(A.toString());return void 0!==ce.queryParams&&(F.queryParams=Object.assign({},ce.queryParams)),void 0!==ce.fragment&&(F.fragment=ce.fragment),this.router.navigateByUrl(F,ce)}}}return b.\u0275fac=function(A){return new(A||b)(n.KVO(En),n.KVO(fe.aZ),n.KVO(h.Sd),n.KVO(h.Ix,8))},b.\u0275prov=n.jDH({token:b,factory:b.\u0275fac,providedIn:"root"}),b})();const Oi=(b,ve,A)=>{if(!1!==ve){if(void 0!==A)return A;if("forward"===b||"back"===b)return b;if("root"===b&&!0===ve)return"forward"}},yr="auto",bi=void 0;let Ri=(()=>{class b{constructor(A,ce,F,ae,Y,De,Ve,Yt,gn,Kn,Di,ur,Nr){this.parentContexts=A,this.location=ce,this.config=Y,this.navCtrl=De,this.componentFactoryResolver=Ve,this.parentOutlet=Nr,this.activated=null,this.activatedView=null,this._activatedRoute=null,this.proxyMap=new WeakMap,this.currentActivatedRoute$=new Z.t(null),this.stackEvents=new n.bkB,this.activateEvents=new n.bkB,this.deactivateEvents=new n.bkB,this.nativeEl=gn.nativeElement,this.name=F||h.Xk,this.tabsPrefix="true"===ae?Hn(Kn,ur):void 0,this.stackCtrl=new rr(this.tabsPrefix,this.nativeEl,Kn,De,Di,Yt),A.onChildOutletCreated(this.name,this)}set animation(A){this.nativeEl.animation=A}set animated(A){this.nativeEl.animated=A}set swipeGesture(A){this._swipeGesture=A,this.nativeEl.swipeHandler=A?{canStart:()=>this.stackCtrl.canGoBack(1)&&!this.stackCtrl.hasRunningTask(),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:ce=>this.stackCtrl.endBackTransition(ce)}:void 0}ngOnDestroy(){this.stackCtrl.destroy()}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){if(!this.activated){const A=this.getContext();A?.route&&this.activateWith(A.route,A.resolver||null)}new Promise(A=>(0,d.c)(this.nativeEl,A)).then(()=>{void 0===this._swipeGesture&&(this.swipeGesture=this.config.getBoolean("swipeBackEnabled","ios"===this.nativeEl.mode))})}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){throw new Error("incompatible reuse strategy")}attach(A,ce){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){const ce=this.getContext();this.activatedView.savedData=new Map(ce.children.contexts);const F=this.activatedView.savedData.get("primary");if(F&&ce.route&&(F.route=Object.assign({},ce.route)),this.activatedView.savedExtras={},ce.route){const ae=ce.route.snapshot;this.activatedView.savedExtras.queryParams=ae.queryParams,this.activatedView.savedExtras.fragment=ae.fragment}}const A=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(A)}}activateWith(A,ce){var F;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=A;let ae,Y=this.stackCtrl.getExistingView(A);if(Y){ae=this.activated=Y.ref;const De=Y.savedData;De&&(this.getContext().children.contexts=De),this.updateActivatedRouteProxy(ae.instance,A)}else{const De=A._futureSnapshot;if(null==De.routeConfig.component&&null==this.environmentInjector)return void console.warn('[Ionic Warning]: You must supply an environmentInjector to use standalone components with routing:\n\nIn your component class, add:\n\n import { EnvironmentInjector } from \'@angular/core\';\n constructor(public environmentInjector: EnvironmentInjector) {}\n\nIn your router outlet template, add:\n\n <ion-router-outlet [environmentInjector]="environmentInjector"></ion-router-outlet>\n\nAlternatively, if you are routing within ion-tabs:\n\n <ion-tabs [environmentInjector]="environmentInjector"></ion-tabs>');const Ve=this.parentContexts.getOrCreateContext(this.name).children,Yt=new Z.t(null),gn=this.createActivatedRouteProxy(Yt,A),Kn=new wr(gn,Ve,this.location.injector),Di=null!==(F=De.routeConfig.component)&&void 0!==F?F:De.component;if((ce=ce||this.componentFactoryResolver)&&N(ce)){const ur=ce.resolveComponentFactory(Di);ae=this.activated=this.location.createComponent(ur,this.location.length,Kn)}else ae=this.activated=this.location.createComponent(Di,{index:this.location.length,injector:Kn,environmentInjector:ce??this.environmentInjector});Yt.next(ae.instance),Y=this.stackCtrl.createView(this.activated,A),this.proxyMap.set(ae.instance,gn),this.currentActivatedRoute$.next({component:ae.instance,activatedRoute:A})}this.activatedView=Y,this.navCtrl.setTopOutlet(this),this.stackCtrl.setActive(Y).then(De=>{this.activateEvents.emit(ae.instance),this.stackEvents.emit(De)})}canGoBack(A=1,ce){return this.stackCtrl.canGoBack(A,ce)}pop(A=1,ce){return this.stackCtrl.pop(A,ce)}getLastUrl(A){const ce=this.stackCtrl.getLastUrl(A);return ce?ce.url:void 0}getLastRouteView(A){return this.stackCtrl.getLastUrl(A)}getRootView(A){return this.stackCtrl.getRootUrl(A)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(A,ce){const F=new h.nX;return F._futureSnapshot=ce._futureSnapshot,F._routerState=ce._routerState,F.snapshot=ce.snapshot,F.outlet=ce.outlet,F.component=ce.component,F._paramMap=this.proxyObservable(A,"paramMap"),F._queryParamMap=this.proxyObservable(A,"queryParamMap"),F.url=this.proxyObservable(A,"url"),F.params=this.proxyObservable(A,"params"),F.queryParams=this.proxyObservable(A,"queryParams"),F.fragment=this.proxyObservable(A,"fragment"),F.data=this.proxyObservable(A,"data"),F}proxyObservable(A,ce){return A.pipe((0,K.p)(F=>!!F),(0,re.n)(F=>this.currentActivatedRoute$.pipe((0,K.p)(ae=>null!==ae&&ae.component===F),(0,re.n)(ae=>ae&&ae.activatedRoute[ce]),(0,U.F)())))}updateActivatedRouteProxy(A,ce){const F=this.proxyMap.get(A);if(!F)throw new Error("Could not find activated route proxy for view");F._futureSnapshot=ce._futureSnapshot,F._routerState=ce._routerState,F.snapshot=ce.snapshot,F.outlet=ce.outlet,F.component=ce.component,this.currentActivatedRoute$.next({component:A,activatedRoute:ce})}}return b.\u0275fac=function(A){return new(A||b)(n.rXU(h.Zp),n.rXU(n.c1b),n.kS0("name"),n.kS0("tabs"),n.rXU(zr),n.rXU(ji),n.rXU(n.OM3,8),n.rXU(fe.aZ),n.rXU(n.aKT),n.rXU(h.Ix),n.rXU(n.SKi),n.rXU(h.nX),n.rXU(b,12))},b.\u0275dir=n.FsC({type:b,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",mode:"mode",swipeGesture:"swipeGesture",environmentInjector:"environmentInjector"},outputs:{stackEvents:"stackEvents",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),b})();class wr{constructor(ve,A,ce){this.route=ve,this.childContexts=A,this.parent=ce}get(ve,A){return ve===h.nX?this.route:ve===h.Zp?this.childContexts:this.parent.get(ve,A)}}let yn=(()=>{class b{constructor(A){this.navCtrl=A,this.ionTabsWillChange=new n.bkB,this.ionTabsDidChange=new n.bkB}onPageSelected(A){const ce=A.enteringView.stackId;A.tabSwitch&&void 0!==ce&&(this.ionTabsWillChange.emit({tab:ce}),this.tabBar&&(this.tabBar.selectedTab=ce),this.ionTabsDidChange.emit({tab:ce}))}select(A){const ce="string"==typeof A,F=ce?A:A.detail.tab,ae=this.outlet.getActiveStackId()===F,Y=`${this.outlet.tabsPrefix}/${F}`;if(ce||A.stopPropagation(),ae){const De=this.outlet.getActiveStackId(),Ve=this.outlet.getLastRouteView(De);if(Ve?.url===Y)return;const Yt=this.outlet.getRootView(F);return this.navCtrl.navigateRoot(Y,Object.assign(Object.assign({},Yt&&Y===Yt.url&&Yt.savedExtras),{animated:!0,animationDirection:"back"}))}{const De=this.outlet.getLastRouteView(F),Ve=De?.url||Y,Yt=De?.savedExtras;return this.navCtrl.navigateRoot(Ve,Object.assign(Object.assign({},Yt),{animated:!0,animationDirection:"back"}))}}getSelected(){return this.outlet.getActiveStackId()}}return b.\u0275fac=function(A){return new(A||b)(n.rXU(ji))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-tabs"]],contentQueries:function(A,ce,F){if(1&A&&n.wni(F,Pe,5),2&A){let ae;n.mGM(ae=n.lsd())&&(ce.tabBar=ae.first)}},viewQuery:function(A,ce){if(1&A&&n.GBs(Ee,5,Ri),2&A){let F;n.mGM(F=n.lsd())&&(ce.outlet=F.first)}},hostBindings:function(A,ce){1&A&&n.bIt("ionTabButtonClick",function(ae){return ce.select(ae)})},inputs:{environmentInjector:"environmentInjector"},outputs:{ionTabsWillChange:"ionTabsWillChange",ionTabsDidChange:"ionTabsDidChange"},ngContentSelectors:ge,decls:5,vars:1,consts:[[1,"tabs-inner"],["tabs","true",3,"environmentInjector","stackEvents"],["outlet",""]],template:function(A,ce){1&A&&(n.NAR(Ne),n.SdG(0),n.j41(1,"div",0)(2,"ion-router-outlet",1,2),n.bIt("stackEvents",function(ae){return ce.onPageSelected(ae)}),n.k0s()(),n.SdG(4,1)),2&A&&(n.R7$(2),n.Y8G("environmentInjector",ce.environmentInjector))},dependencies:[Ri],styles:["[_nghost-%COMP%] {\n display: flex;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n\n flex-direction: column;\n\n width: 100%;\n height: 100%;\n\n contain: layout size style;\n z-index: $z-index-page-container;\n }\n .tabs-inner[_ngcontent-%COMP%] {\n position: relative;\n\n flex: 1;\n\n contain: layout size style;\n }"]}),b})(),sr=(()=>{class b{constructor(A,ce,F){this.routerOutlet=A,this.navCtrl=ce,this.config=F}onClick(A){var ce;const F=this.defaultHref||this.config.get("backButtonDefaultHref");null!==(ce=this.routerOutlet)&&void 0!==ce&&ce.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),A.preventDefault()):null!=F&&(this.navCtrl.navigateBack(F,{animation:this.routerAnimation}),A.preventDefault())}}return b.\u0275fac=function(A){return new(A||b)(n.rXU(Ri,8),n.rXU(ji),n.rXU(zr))},b.\u0275dir=n.FsC({type:b,selectors:[["ion-back-button"]],hostBindings:function(A,ce){1&A&&n.bIt("click",function(ae){return ce.onClick(ae)})},inputs:{defaultHref:"defaultHref",routerAnimation:"routerAnimation"}}),b})(),pr=(()=>{class b{constructor(A,ce,F,ae,Y){this.locationStrategy=A,this.navCtrl=ce,this.elementRef=F,this.router=ae,this.routerLink=Y,this.routerDirection="forward"}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var A;if(null!==(A=this.routerLink)&&void 0!==A&&A.urlTree){const ce=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=ce}}onClick(A){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),A.preventDefault()}}return b.\u0275fac=function(A){return new(A||b)(n.rXU(fe.hb),n.rXU(ji),n.rXU(n.aKT),n.rXU(h.Ix),n.rXU(h.Wk,8))},b.\u0275dir=n.FsC({type:b,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(A,ce){1&A&&n.bIt("click",function(ae){return ce.onClick(ae)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[n.OA$]}),b})(),Wn=(()=>{class b{constructor(A,ce,F,ae,Y){this.locationStrategy=A,this.navCtrl=ce,this.elementRef=F,this.router=ae,this.routerLink=Y,this.routerDirection="forward"}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var A;if(null!==(A=this.routerLink)&&void 0!==A&&A.urlTree){const ce=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=ce}}onClick(){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation)}}return b.\u0275fac=function(A){return new(A||b)(n.rXU(fe.hb),n.rXU(ji),n.rXU(n.aKT),n.rXU(h.Ix),n.rXU(h.Wk,8))},b.\u0275dir=n.FsC({type:b,selectors:[["a","routerLink",""],["area","routerLink",""]],hostBindings:function(A,ce){1&A&&n.bIt("click",function(){return ce.onClick()})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[n.OA$]}),b})(),Pr=(()=>{let b=class{constructor(A,ce,F){this.z=F,this.isCmpOpen=!1,this.el=ce.nativeElement,this.el.addEventListener("willPresent",()=>{this.isCmpOpen=!0,A.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,A.detectChanges()}),nt(this,this.el,["ionModalDidPresent","ionModalWillPresent","ionModalWillDismiss","ionModalDidDismiss","ionBreakpointDidChange","didPresent","willPresent","willDismiss","didDismiss"])}};return b.\u0275fac=function(A){return new(A||b)(n.rXU(n.gRc),n.rXU(n.aKT),n.rXU(n.SKi))},b.\u0275cmp=n.VBU({type:b,selectors:[["ion-modal"]],contentQueries:function(A,ce,F){if(1&A&&n.wni(F,n.C4Q,5),2&A){let ae;n.mGM(ae=n.lsd())&&(ce.template=ae.first)}},inputs:{animated:"animated",keepContentsMounted:"keepContentsMounted",backdropBreakpoint:"backdropBreakpoint",backdropDismiss:"backdropDismiss",breakpoints:"breakpoints",canDismiss:"canDismiss",cssClass:"cssClass",enterAnimation:"enterAnimation",event:"event",handle:"handle",handleBehavior:"handleBehavior",initialBreakpoint:"initialBreakpoint",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",presentingElement:"presentingElement",showBackdrop:"showBackdrop",swipeToClose:"swipeToClose",translucent:"translucent",trigger:"trigger"},decls:1,vars:1,consts:[["class","ion-delegate-host ion-page",4,"ngIf"],[1,"ion-delegate-host","ion-page"],[3,"ngTemplateOutlet"]],template:function(A,ce){1&A&&n.DNE(0,q,2,1,"div",0),2&A&&n.Y8G("ngIf",ce.isCmpOpen||ce.keepContentsMounted)},dependencies:[fe.bT,fe.T3],encapsulation:2,changeDetection:0}),b=(0,a.Cg)([Ge({inputs:["animated","keepContentsMounted","backdropBreakpoint","backdropDismiss","breakpoints","canDismiss","cssClass","enterAnimation","event","handle","handleBehavior","initialBreakpoint","isOpen","keyboardClose","leaveAnimation","mode","presentingElement","showBackdrop","swipeToClose","translucent","trigger"],methods:["present","dismiss","onDidDismiss","onWillDismiss","setCurrentBreakpoint","getCurrentBreakpoint"]})],b),b})();class Ai{constructor(ve){this.ctrl=ve}create(ve){return this.ctrl.create(ve||{})}dismiss(ve,A,ce){return this.ctrl.dismiss(ve,A,ce)}getTop(){return this.ctrl.getTop()}}let tr=(()=>{class b extends Ai{constructor(){super($.b)}}return b.\u0275fac=function(A){return new(A||b)},b.\u0275prov=n.jDH({token:b,factory:b.\u0275fac,providedIn:"root"}),b})(),Tn=(()=>{class b extends Ai{constructor(){super($.a)}}return b.\u0275fac=function(A){return new(A||b)},b.\u0275prov=n.jDH({token:b,factory:b.\u0275fac,providedIn:"root"}),b})(),Jr=(()=>{class b extends Ai{constructor(){super($.l)}}return b.\u0275fac=function(A){return new(A||b)},b.\u0275prov=n.jDH({token:b,factory:b.\u0275fac,providedIn:"root"}),b})(),kr=(()=>{class b{open(A){return k.m.open(A)}close(A){return k.m.close(A)}toggle(A){return k.m.toggle(A)}enable(A,ce){return k.m.enable(A,ce)}swipeGesture(A,ce){return k.m.swipeGesture(A,ce)}isOpen(A){return k.m.isOpen(A)}isEnabled(A){return k.m.isEnabled(A)}get(A){return k.m.get(A)}getOpen(){return k.m.getOpen()}getMenus(){return k.m.getMenus()}}return b.\u0275fac=function(A){return new(A||b)},b.\u0275prov=n.jDH({token:b,factory:b.\u0275fac,providedIn:"root"}),b})();class Hi{}let nr=(()=>{class b extends Ai{constructor(A,ce,F,ae){super($.m),this.angularDelegate=A,this.resolver=ce,this.injector=F,this.environmentInjector=ae}create(A){var ce;return super.create(Object.assign(Object.assign({},A),{delegate:this.angularDelegate.create(null!==(ce=this.resolver)&&void 0!==ce?ce:this.environmentInjector,this.injector,void 0,"modal")}))}}return b.\u0275fac=function(A){return new(A||b)(n.KVO(Zt),n.KVO(n.OM3),n.KVO(n.zZn),n.KVO(Hi,8))},b.\u0275prov=n.jDH({token:b,factory:b.\u0275fac}),b})(),lr=(()=>{class b extends Ai{constructor(A,ce,F,ae){super($.c),this.angularDelegate=A,this.resolver=ce,this.injector=F,this.environmentInjector=ae}create(A){var ce;return super.create(Object.assign(Object.assign({},A),{delegate:this.angularDelegate.create(null!==(ce=this.resolver)&&void 0!==ce?ce:this.environmentInjector,this.injector,void 0,"popover")}))}}return b.\u0275fac=function(A){return new(A||b)(n.KVO(Zt),n.KVO(n.OM3),n.KVO(n.zZn),n.KVO(Hi,8))},b.\u0275prov=n.jDH({token:b,factory:b.\u0275fac}),b})(),qr=(()=>{class b extends Ai{constructor(){super($.t)}}return b.\u0275fac=function(A){return new(A||b)},b.\u0275prov=n.jDH({token:b,factory:b.\u0275fac,providedIn:"root"}),b})();class zi{shouldDetach(ve){return!1}shouldAttach(ve){return!1}store(ve,A){}retrieve(ve){return null}shouldReuseRoute(ve,A){if(ve.routeConfig!==A.routeConfig)return!1;const ce=ve.params,F=A.params,ae=Object.keys(ce),Y=Object.keys(F);if(ae.length!==Y.length)return!1;for(const De of ae)if(F[De]!==ce[De])return!1;return!0}}const cr=(b,ve,A)=>()=>{if(ve.defaultView&&typeof window<"u"){(0,C.s)(Object.assign(Object.assign({},b),{_zoneGate:ae=>A.run(ae)}));const F="__zone_symbol__addEventListener"in ve.body?"__zone_symbol__addEventListener":"addEventListener";return function ue(){var b=[];if(typeof window<"u"){var ve=window;(!ve.customElements||ve.Element&&(!ve.Element.prototype.closest||!ve.Element.prototype.matches||!ve.Element.prototype.remove||!ve.Element.prototype.getRootNode))&&b.push(o.e(7278).then(o.t.bind(o,71571,23))),("function"!=typeof Object.assign||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||ve.NodeList&&!ve.NodeList.prototype.forEach||!ve.fetch||!function(){try{var ce=new URL("b","http://a");return ce.pathname="c%20d","http://a/c%20d"===ce.href&&ce.searchParams}catch{return!1}}()||typeof WeakMap>"u")&&b.push(o.e(9329).then(o.t.bind(o,9846,23)))}return Promise.all(b)}().then(()=>((b,ve)=>typeof window>"u"?Promise.resolve():(0,f.p)().then(()=>(pe(),(0,f.b)(JSON.parse('[["ion-menu_3",[[33,"ion-menu-button",{"color":[513],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"],[0,"keydown","onKeydown"]]],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[513],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64],"toggle":[64]}],[1,"ion-fab-list",{"activated":[4],"side":[1]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]}]]],["ion-back-button",[[33,"ion-back-button",{"color":[513],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[513],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"layout":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"buttons":[16],"translucent":[4],"animated":[4],"icon":[1],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-card_5",[[33,"ion-card",{"color":[513],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[513],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[513]}],[33,"ion-card-title",{"color":[513]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[513],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]}]]],["ion-accordion_2",[[49,"ion-accordion",{"value":[1],"disabled":[4],"readonly":[4],"toggleIcon":[1,"toggle-icon"],"toggleIconSlot":[1,"toggle-icon-slot"],"state":[32],"isNext":[32],"isPrevious":[32]}],[33,"ion-accordion-group",{"animated":[4],"multiple":[4],"value":[1025],"disabled":[4],"readonly":[4],"expand":[1],"requestAccordionToggle":[64],"getAccordions":[64]},[[0,"keydown","onKeydown"]]]]],["ion-breadcrumb_2",[[33,"ion-breadcrumb",{"collapsed":[4],"last":[4],"showCollapsedIndicator":[4,"show-collapsed-indicator"],"color":[1],"active":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"separator":[4],"target":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}],[33,"ion-breadcrumbs",{"color":[1],"maxItems":[2,"max-items"],"itemsBeforeCollapse":[2,"items-before-collapse"],"itemsAfterCollapse":[2,"items-after-collapse"],"collapsed":[32],"activeChanged":[32]},[[0,"collapsedClick","onCollapsedClick"]]]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[4],"layout":[1],"type":[1],"value":[1],"checked":[32],"setFocus":[64]}],[33,"ion-segment",{"color":[513],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1025],"selectOnFocus":[4,"select-on-focus"],"activated":[32]},[[0,"keydown","onKeyDown"]]]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[513],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]}]]],["ion-chip",[[1,"ion-chip",{"color":[513],"outline":[4],"disabled":[4]}]]],["ion-datetime-button",[[33,"ion-datetime-button",{"color":[513],"disabled":[516],"datetime":[1],"datetimePresentation":[32],"dateText":[32],"timeText":[32],"datetimeActive":[32],"selectedButton":[32]}]]],["ion-input",[[34,"ion-input",{"fireFocusEvents":[4,"fire-focus-events"],"color":[513],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[513],"animated":[4],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[513],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"enableOnOffLabels":[4,"enable-on-off-labels"],"activated":[32]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[513]}],[1,"ion-thumbnail"]]],["ion-textarea",[[34,"ion-textarea",{"fireFocusEvents":[4,"fire-focus-events"],"color":[513],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[516,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-modal",[[33,"ion-modal",{"hasController":[4,"has-controller"],"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"breakpoints":[16],"initialBreakpoint":[2,"initial-breakpoint"],"backdropBreakpoint":[2,"backdrop-breakpoint"],"handle":[4],"handleBehavior":[1,"handle-behavior"],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"swipeToClose":[4,"swipe-to-close"],"presentingElement":[16],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"keepContentsMounted":[4,"keep-contents-mounted"],"canDismiss":[4,"can-dismiss"],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"setCurrentBreakpoint":[64],"getCurrentBreakpoint":[64]}]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]}],[0,"ion-route-redirect",{"from":[1],"to":[1]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[513],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-slide_2",[[0,"ion-slide"],[36,"ion-slides",{"options":[8],"pager":[4],"scrollbar":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[513]}]]],["ion-range",[[33,"ion-range",{"color":[513],"debounce":[2],"name":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"pinFormatter":[16],"snaps":[4],"step":[2],"ticks":[4],"activeBarStart":[1026,"active-bar-start"],"disabled":[4],"value":[1026],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]}]]],["ion-text",[[1,"ion-text",{"color":[513]}]]],["ion-virtual-scroll",[[0,"ion-virtual-scroll",{"approxItemHeight":[2,"approx-item-height"],"approxHeaderHeight":[2,"approx-header-height"],"approxFooterHeight":[2,"approx-footer-height"],"headerFn":[16],"footerFn":[16],"items":[16],"itemHeight":[16],"headerHeight":[16],"footerHeight":[16],"renderItem":[16],"renderHeader":[16],"renderFooter":[16],"nodeRender":[16],"domRender":[16],"totalHeight":[32],"positionForItem":[64],"checkRange":[64],"checkEnd":[64]},[[9,"resize","onResize"]]]]],["ion-picker-column-internal",[[33,"ion-picker-column-internal",{"items":[16],"value":[1032],"color":[513],"numericInput":[4,"numeric-input"],"isActive":[32],"scrollActiveItemIntoView":[64],"setValue":[64]}]]],["ion-picker-internal",[[33,"ion-picker-internal",{"exitInputMode":[64]},[[1,"touchstart","preventTouchStartPropagation"]]]]],["ion-radio_2",[[33,"ion-radio",{"color":[513],"name":[1],"disabled":[4],"value":[8],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]]]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[513],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1],"form":[1]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32],"ariaLabel":[32]}]]],["ion-datetime_3",[[33,"ion-datetime",{"color":[1],"name":[1],"disabled":[4],"readonly":[4],"isDateEnabled":[16],"min":[1025],"max":[1025],"presentation":[1],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"clearText":[1,"clear-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"locale":[1],"firstDayOfWeek":[2,"first-day-of-week"],"titleSelectedDatesFormatter":[16],"multiple":[4],"highlightedDates":[16],"value":[1025],"showDefaultTitle":[4,"show-default-title"],"showDefaultButtons":[4,"show-default-buttons"],"showClearButton":[4,"show-clear-button"],"showDefaultTimeLabel":[4,"show-default-time-label"],"hourCycle":[1,"hour-cycle"],"size":[1],"preferWheel":[4,"prefer-wheel"],"showMonthAndYear":[32],"activeParts":[32],"workingParts":[32],"isPresented":[32],"isTimePopoverOpen":[32],"confirm":[64],"reset":[64],"cancel":[64]}],[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"htmlAttributes":[16],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}],[32,"ion-picker-column",{"col":[16]}]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]]]]],["ion-popover",[[33,"ion-popover",{"hasController":[4,"has-controller"],"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"triggerAction":[1,"trigger-action"],"trigger":[1],"size":[1],"dismissOnSelect":[4,"dismiss-on-select"],"reference":[1],"side":[1],"alignment":[1025],"arrow":[4],"isOpen":[4,"is-open"],"keyboardEvents":[4,"keyboard-events"],"keepContentsMounted":[4,"keep-contents-mounted"],"presented":[32],"presentFromTrigger":[64],"present":[64],"dismiss":[64],"getParentPopover":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[513],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[8]}]]],["ion-select_3",[[33,"ion-select",{"disabled":[4],"cancelText":[1,"cancel-text"],"okText":[1,"ok-text"],"placeholder":[1],"name":[1],"selectedText":[1,"selected-text"],"multiple":[4],"interface":[1],"interfaceOptions":[8,"interface-options"],"compareWith":[1,"compare-with"],"value":[1032],"isExpanded":[32],"open":[64]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}],[34,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"multiple":[4],"options":[16]},[[0,"ionChange","onSelect"]]]]],["ion-app_8",[[0,"ion-app",{"setFocus":[64]}],[1,"ion-content",{"color":[513],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"getBackgroundElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[8,"appload","onAppLoad"],[9,"resize","onResize"]]],[36,"ion-footer",{"collapse":[1],"translucent":[4],"keyboardVisible":[32]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]}],[33,"ion-title",{"color":[513],"size":[1]}],[33,"ion-toolbar",{"color":[513]},[[0,"ionStyle","childrenStyle"]]],[34,"ion-buttons",{"collapse":[4]}]]],["ion-spinner",[[1,"ion-spinner",{"color":[513],"duration":[2],"name":[1],"paused":[4]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[513],"sticky":[4]}],[32,"ion-item-group"],[1,"ion-skeleton-text",{"animated":[4]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[513],"lines":[1]}],[49,"ion-item",{"color":[513],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"fill":[1],"shape":[1],"href":[1],"rel":[1],"lines":[1],"counter":[4],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"counterFormatter":[16],"multipleInputs":[32],"focusable":[32],"counterString":[32]},[[0,"ionChange","handleIonChange"],[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]]],[34,"ion-label",{"color":[513],"position":[1],"noAnimate":[32]}],[33,"ion-note",{"color":[513]}]]]]'),ve))))(0,{exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:p,jmp:ae=>A.runOutsideAngular(ae),ael(ae,Y,De,Ve){ae[F](Y,De,Ve)},rel(ae,Y,De,Ve){ae.removeEventListener(Y,De,Ve)}}))}};let ws=(()=>{class b{static forRoot(A){return{ngModule:b,providers:[{provide:gi,useValue:A},{provide:n.hnV,useFactory:cr,multi:!0,deps:[gi,fe.qQ,n.SKi]}]}}}return b.\u0275fac=function(A){return new(A||b)},b.\u0275mod=n.$C({type:b}),b.\u0275inj=n.G2t({providers:[Zt,nr,lr],imports:[[fe.MD]]}),b})()},28775:(He,L,o)=>{"use strict";o.d(L,{c:()=>k});var n=o(46184),y=o(94706);let a;const ie=$=>$.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Z=$=>(void 0===a&&(a=void 0===$.style.animationName&&void 0!==$.style.webkitAnimationName?"-webkit-":""),a),h=($,I,g)=>{const f=I.startsWith("animation")?Z($):"";$.style.setProperty(f+I,g)},w=($,I)=>{const g=I.startsWith("animation")?Z($):"";$.style.removeProperty(g+I)},E=[],P=($=[],I)=>{if(void 0!==I){const g=Array.isArray(I)?I:[I];return[...$,...g]}return $},k=$=>{let I,g,f,m,T,W,ue,q,u,p,N,S,se,K=[],re=[],U=[],fe=!1,pe={},he=[],de=[],_e={},Ee=0,Ne=!1,ge=!1,G=!0,R=!1,ne=!0,Me=!1;const Fe=$,Re=[],je=[],at=[],ft=[],Qe=[],nt=[],_t=[],Ge=[],ht=[],It=[],Rt="function"==typeof AnimationEffect||void 0!==y.w&&"function"==typeof y.w.AnimationEffect,At="function"==typeof Element&&"function"==typeof Element.prototype.animate&&Rt,Wt=()=>It,vt=(Se,Ue)=>((Ue?.oneTimeCallback?je:Re).push({c:Se,o:Ue}),se),ct=()=>{if(At)It.forEach(Se=>{Se.cancel()}),It.length=0;else{const Se=at.slice();(0,n.r)(()=>{Se.forEach(Ue=>{w(Ue,"animation-name"),w(Ue,"animation-duration"),w(Ue,"animation-timing-function"),w(Ue,"animation-iteration-count"),w(Ue,"animation-delay"),w(Ue,"animation-play-state"),w(Ue,"animation-fill-mode"),w(Ue,"animation-direction")})})}},Be=()=>{Qe.forEach(Se=>{Se?.parentNode&&Se.parentNode.removeChild(Se)}),Qe.length=0},In=()=>void 0!==T?T:ue?ue.getFill():"both",ii=()=>void 0!==u?u:void 0!==W?W:ue?ue.getDirection():"normal",yi=()=>Ne?"linear":void 0!==f?f:ue?ue.getEasing():"linear",mt=()=>ge?0:void 0!==p?p:void 0!==g?g:ue?ue.getDuration():0,yt=()=>void 0!==m?m:ue?ue.getIterations():1,We=()=>void 0!==N?N:void 0!==I?I:ue?ue.getDelay():0,Xt=()=>{0!==Ee&&(Ee--,0===Ee&&((()=>{Ln(),Ge.forEach(pt=>pt()),ht.forEach(pt=>pt());const Se=G?1:0,Ue=he,Xe=de,lt=_e;at.forEach(pt=>{const kt=pt.classList;Ue.forEach(Kt=>kt.add(Kt)),Xe.forEach(Kt=>kt.remove(Kt));for(const Kt in lt)lt.hasOwnProperty(Kt)&&h(pt,Kt,lt[Kt])}),Re.forEach(pt=>pt.c(Se,se)),je.forEach(pt=>pt.c(Se,se)),je.length=0,ne=!0,G&&(R=!0),G=!0})(),ue&&ue.animationFinish()))},jt=(Se=!0)=>{Be();const Ue=($=>($.forEach(I=>{for(const g in I)if(I.hasOwnProperty(g)){const f=I[g];if("easing"===g)I["animation-timing-function"]=f,delete I[g];else{const m=ie(g);m!==g&&(I[m]=f,delete I[g])}}}),$))(K);at.forEach(Xe=>{if(Ue.length>0){const lt=(($=[])=>$.map(I=>{const g=I.offset,f=[];for(const m in I)I.hasOwnProperty(m)&&"offset"!==m&&f.push(`${m}: ${I[m]};`);return`${100*g}% { ${f.join(" ")} }`}).join(" "))(Ue);S=void 0!==$?$:($=>{let I=E.indexOf($);return I<0&&(I=E.push($)-1),`ion-animation-${I}`})(lt);const pt=(($,I,g)=>{var f;const m=($=>{const I=void 0!==$.getRootNode?$.getRootNode():$;return I.head||I})(g),T=Z(g),W=m.querySelector("#"+$);if(W)return W;const K=(null!==(f=g.ownerDocument)&&void 0!==f?f:document).createElement("style");return K.id=$,K.textContent=`@${T}keyframes ${$} { ${I} } @${T}keyframes ${$}-alt { ${I} }`,m.appendChild(K),K})(S,lt,Xe);Qe.push(pt),h(Xe,"animation-duration",`${mt()}ms`),h(Xe,"animation-timing-function",yi()),h(Xe,"animation-delay",`${We()}ms`),h(Xe,"animation-fill-mode",In()),h(Xe,"animation-direction",ii());const kt=yt()===1/0?"infinite":yt().toString();h(Xe,"animation-iteration-count",kt),h(Xe,"animation-play-state","paused"),Se&&h(Xe,"animation-name",`${pt.id}-alt`),(0,n.r)(()=>{h(Xe,"animation-name",pt.id||null)})}})},qt=(Se=!0)=>{(()=>{nt.forEach(lt=>lt()),_t.forEach(lt=>lt());const Se=re,Ue=U,Xe=pe;at.forEach(lt=>{const pt=lt.classList;Se.forEach(kt=>pt.add(kt)),Ue.forEach(kt=>pt.remove(kt));for(const kt in Xe)Xe.hasOwnProperty(kt)&&h(lt,kt,Xe[kt])})})(),K.length>0&&(At?(at.forEach(Se=>{const Ue=Se.animate(K,{id:Fe,delay:We(),duration:mt(),easing:yi(),iterations:yt(),fill:In(),direction:ii()});Ue.pause(),It.push(Ue)}),It.length>0&&(It[0].onfinish=()=>{Xt()})):jt(Se)),fe=!0},Un=Se=>{if(Se=Math.min(Math.max(Se,0),.9999),At)It.forEach(Ue=>{Ue.currentTime=Ue.effect.getComputedTiming().delay+mt()*Se,Ue.pause()});else{const Ue=`-${mt()*Se}ms`;at.forEach(Xe=>{K.length>0&&(h(Xe,"animation-delay",Ue),h(Xe,"animation-play-state","paused"))})}},ti=Se=>{It.forEach(Ue=>{Ue.effect.updateTiming({delay:We(),duration:mt(),easing:yi(),iterations:yt(),fill:In(),direction:ii()})}),void 0!==Se&&Un(Se)},qn=(Se=!0,Ue)=>{(0,n.r)(()=>{at.forEach(Xe=>{h(Xe,"animation-name",S||null),h(Xe,"animation-duration",`${mt()}ms`),h(Xe,"animation-timing-function",yi()),h(Xe,"animation-delay",void 0!==Ue?`-${Ue*mt()}ms`:`${We()}ms`),h(Xe,"animation-fill-mode",In()||null),h(Xe,"animation-direction",ii()||null);const lt=yt()===1/0?"infinite":yt().toString();h(Xe,"animation-iteration-count",lt),Se&&h(Xe,"animation-name",`${S}-alt`),(0,n.r)(()=>{h(Xe,"animation-name",S||null)})})})},jn=(Se=!1,Ue=!0,Xe)=>(Se&&ft.forEach(lt=>{lt.update(Se,Ue,Xe)}),At?ti(Xe):qn(Ue,Xe),se),_n=()=>{fe&&(At?It.forEach(Se=>{Se.pause()}):at.forEach(Se=>{h(Se,"animation-play-state","paused")}),Me=!0)},fi=()=>{q=void 0,Xt()},Ln=()=>{q&&clearTimeout(q)},te=Se=>new Promise(Ue=>{Se?.sync&&(ge=!0,vt(()=>ge=!1,{oneTimeCallback:!0})),fe||qt(),R&&(At?(Un(0),ti()):qn(),R=!1),ne&&(Ee=ft.length+1,ne=!1),vt(()=>Ue(),{oneTimeCallback:!0}),ft.forEach(Xe=>{Xe.play()}),At?(It.forEach(Se=>{Se.play()}),(0===K.length||0===at.length)&&Xt()):(()=>{if(Ln(),(0,n.r)(()=>{at.forEach(Se=>{K.length>0&&h(Se,"animation-play-state","running")})}),0===K.length||0===at.length)Xt();else{const Se=We()||0,Ue=mt()||0,Xe=yt()||1;isFinite(Xe)&&(q=setTimeout(fi,Se+Ue*Xe+100)),(($,I)=>{let g;const f={passive:!0},T=W=>{$===W.target&&(g&&g(),Ln(),(0,n.r)(()=>{at.forEach(Se=>{w(Se,"animation-duration"),w(Se,"animation-delay"),w(Se,"animation-play-state")}),(0,n.r)(Xt)}))};$&&($.addEventListener("webkitAnimationEnd",T,f),$.addEventListener("animationend",T,f),g=()=>{$.removeEventListener("webkitAnimationEnd",T,f),$.removeEventListener("animationend",T,f)})})(at[0])}})(),Me=!1}),Ie=(Se,Ue)=>{const Xe=K[0];return void 0===Xe||void 0!==Xe.offset&&0!==Xe.offset?K=[{offset:0,[Se]:Ue},...K]:Xe[Se]=Ue,se};return se={parentAnimation:ue,elements:at,childAnimations:ft,id:Fe,animationFinish:Xt,from:Ie,to:(Se,Ue)=>{const Xe=K[K.length-1];return void 0===Xe||void 0!==Xe.offset&&1!==Xe.offset?K=[...K,{offset:1,[Se]:Ue}]:Xe[Se]=Ue,se},fromTo:(Se,Ue,Xe)=>Ie(Se,Ue).to(Se,Xe),parent:Se=>(ue=Se,se),play:te,pause:()=>(ft.forEach(Se=>{Se.pause()}),_n(),se),stop:()=>{ft.forEach(Se=>{Se.stop()}),fe&&(ct(),fe=!1),Ne=!1,ge=!1,ne=!0,u=void 0,p=void 0,N=void 0,Ee=0,R=!1,G=!0,Me=!1},destroy:Se=>(ft.forEach(Ue=>{Ue.destroy(Se)}),(Se=>{ct(),Se&&Be()})(Se),at.length=0,ft.length=0,K.length=0,Re.length=0,je.length=0,fe=!1,ne=!0,se),keyframes:Se=>{const Ue=K!==Se;return K=Se,Ue&&(Se=>{At?Wt().forEach(Ue=>{if(Ue.effect.setKeyframes)Ue.effect.setKeyframes(Se);else{const Xe=new KeyframeEffect(Ue.effect.target,Se,Ue.effect.getTiming());Ue.effect=Xe}}):jt()})(K),se},addAnimation:Se=>{if(null!=Se)if(Array.isArray(Se))for(const Ue of Se)Ue.parent(se),ft.push(Ue);else Se.parent(se),ft.push(Se);return se},addElement:Se=>{if(null!=Se)if(1===Se.nodeType)at.push(Se);else if(Se.length>=0)for(let Ue=0;Ue<Se.length;Ue++)at.push(Se[Ue]);else console.error("Invalid addElement value");return se},update:jn,fill:Se=>(T=Se,jn(!0),se),direction:Se=>(W=Se,jn(!0),se),iterations:Se=>(m=Se,jn(!0),se),duration:Se=>(!At&&0===Se&&(Se=1),g=Se,jn(!0),se),easing:Se=>(f=Se,jn(!0),se),delay:Se=>(I=Se,jn(!0),se),getWebAnimations:Wt,getKeyframes:()=>K,getFill:In,getDirection:ii,getDelay:We,getIterations:yt,getEasing:yi,getDuration:mt,afterAddRead:Se=>(Ge.push(Se),se),afterAddWrite:Se=>(ht.push(Se),se),afterClearStyles:(Se=[])=>{for(const Ue of Se)_e[Ue]="";return se},afterStyles:(Se={})=>(_e=Se,se),afterRemoveClass:Se=>(de=P(de,Se),se),afterAddClass:Se=>(he=P(he,Se),se),beforeAddRead:Se=>(nt.push(Se),se),beforeAddWrite:Se=>(_t.push(Se),se),beforeClearStyles:(Se=[])=>{for(const Ue of Se)pe[Ue]="";return se},beforeStyles:(Se={})=>(pe=Se,se),beforeRemoveClass:Se=>(U=P(U,Se),se),beforeAddClass:Se=>(re=P(re,Se),se),onFinish:vt,isRunning:()=>0!==Ee&&!Me,progressStart:(Se=!1,Ue)=>(ft.forEach(Xe=>{Xe.progressStart(Se,Ue)}),_n(),Ne=Se,fe||qt(),jn(!1,!0,Ue),se),progressStep:Se=>(ft.forEach(Ue=>{Ue.progressStep(Se)}),Un(Se),se),progressEnd:(Se,Ue,Xe)=>(Ne=!1,ft.forEach(lt=>{lt.progressEnd(Se,Ue,Xe)}),void 0!==Xe&&(p=Xe),R=!1,G=!0,0===Se?(u="reverse"===ii()?"normal":"reverse","reverse"===u&&(G=!1),At?(jn(),Un(1-Ue)):(N=(1-Ue)*mt()*-1,jn(!1,!1))):1===Se&&(At?(jn(),Un(Ue)):(N=Ue*mt()*-1,jn(!1,!1))),void 0!==Se&&(vt(()=>{p=void 0,u=void 0,N=void 0},{oneTimeCallback:!0}),ue||te()),se)}}},69324:(He,L,o)=>{"use strict";o.d(L,{E:()=>x,a:()=>n,s:()=>w});const n=E=>{try{if(E instanceof h)return E.value;if(!Q()||"string"!=typeof E||""===E)return E;if(E.includes("onload="))return"";const z=document.createDocumentFragment(),d=document.createElement("div");z.appendChild(d),d.innerHTML=E,Z.forEach($=>{const I=z.querySelectorAll($);for(let g=I.length-1;g>=0;g--){const f=I[g];f.parentNode?f.parentNode.removeChild(f):z.removeChild(f);const m=a(f);for(let T=0;T<m.length;T++)y(m[T])}});const C=a(z);for(let $=0;$<C.length;$++)y(C[$]);const P=document.createElement("div");P.appendChild(z);const k=P.querySelector("div");return null!==k?k.innerHTML:P.innerHTML}catch(z){return console.error(z),""}},y=E=>{if(E.nodeType&&1!==E.nodeType)return;if(typeof NamedNodeMap<"u"&&!(E.attributes instanceof NamedNodeMap))return void E.remove();for(let d=E.attributes.length-1;d>=0;d--){const C=E.attributes.item(d),P=C.name;if(!ie.includes(P.toLowerCase())){E.removeAttribute(P);continue}const k=C.value,$=E[P];(null!=k&&k.toLowerCase().includes("javascript:")||null!=$&&$.toLowerCase().includes("javascript:"))&&E.removeAttribute(P)}const z=a(E);for(let d=0;d<z.length;d++)y(z[d])},a=E=>null!=E.children?E.children:E.childNodes,Q=()=>{var E;const z=window,d=null===(E=z?.Ionic)||void 0===E?void 0:E.config;return!d||(d.get?d.get("sanitizerEnabled",!0):!0===d.sanitizerEnabled||void 0===d.sanitizerEnabled)},ie=["class","id","href","src","name","slot"],Z=["script","style","iframe","meta","link","object","embed"];class h{constructor(z){this.value=z}}const w=E=>{const z=window,d=z.Ionic;if(!d||!d.config||"Object"===d.config.constructor.name)return z.Ionic=z.Ionic||{},z.Ionic.config=Object.assign(Object.assign({},z.Ionic.config),E),z.Ionic.config},x=!0},45995:(He,L,o)=>{"use strict";o.d(L,{G:()=>ie});class y{constructor(h,w,D,x,E){this.id=w,this.name=D,this.disableScroll=E,this.priority=1e6*x+w,this.ctrl=h}canStart(){return!!this.ctrl&&this.ctrl.canStart(this.name)}start(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}capture(){if(!this.ctrl)return!1;const h=this.ctrl.capture(this.name,this.id,this.priority);return h&&this.disableScroll&&this.ctrl.disableScroll(this.id),h}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class a{constructor(h,w,D,x){this.id=w,this.disable=D,this.disableScroll=x,this.ctrl=h}block(){if(this.ctrl){if(this.disable)for(const h of this.disable)this.ctrl.disableGesture(h,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const h of this.disable)this.ctrl.enableGesture(h,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const Q="backdrop-no-scroll",ie=new class n{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(h){var w;return new y(this,this.newID(),h.name,null!==(w=h.priority)&&void 0!==w?w:0,!!h.disableScroll)}createBlocker(h={}){return new a(this,this.newID(),h.disable,!!h.disableScroll)}start(h,w,D){return this.canStart(h)?(this.requestedStart.set(w,D),!0):(this.requestedStart.delete(w),!1)}capture(h,w,D){if(!this.start(h,w,D))return!1;const x=this.requestedStart;let E=-1e4;if(x.forEach(z=>{E=Math.max(E,z)}),E===D){this.capturedId=w,x.clear();const z=new CustomEvent("ionGestureCaptured",{detail:{gestureName:h}});return document.dispatchEvent(z),!0}return x.delete(w),!1}release(h){this.requestedStart.delete(h),this.capturedId===h&&(this.capturedId=void 0)}disableGesture(h,w){let D=this.disabledGestures.get(h);void 0===D&&(D=new Set,this.disabledGestures.set(h,D)),D.add(w)}enableGesture(h,w){const D=this.disabledGestures.get(h);void 0!==D&&D.delete(w)}disableScroll(h){this.disabledScroll.add(h),1===this.disabledScroll.size&&document.body.classList.add(Q)}enableScroll(h){this.disabledScroll.delete(h),0===this.disabledScroll.size&&document.body.classList.remove(Q)}canStart(h){return!(void 0!==this.capturedId||this.isDisabled(h))}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(h){const w=this.disabledGestures.get(h);return!!(w&&w.size>0)}newID(){return this.gestureId++,this.gestureId}}},28226:(He,L,o)=>{"use strict";o.r(L),o.d(L,{MENU_BACK_BUTTON_PRIORITY:()=>ie,OVERLAY_BACK_BUTTON_PRIORITY:()=>Q,blockHardwareBackButton:()=>y,startHardwareBackButton:()=>a});var n=o(73308);const y=()=>{document.addEventListener("backbutton",()=>{})},a=()=>{const Z=document;let h=!1;Z.addEventListener("backbutton",()=>{if(h)return;let w=0,D=[];const x=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(d,C){D.push({priority:d,handler:C,id:w++})}}});Z.dispatchEvent(x);const E=function(){var d=(0,n.A)(function*(C){try{if(C?.handler){const P=C.handler(z);null!=P&&(yield P)}}catch(P){console.error(P)}});return function(P){return d.apply(this,arguments)}}(),z=()=>{if(D.length>0){let d={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};D.forEach(C=>{C.priority>=d.priority&&(d=C)}),h=!0,D=D.filter(C=>C.id!==d.id),E(d).then(()=>h=!1)}};z()})},Q=100,ie=99},46184:(He,L,o)=>{"use strict";o.d(L,{a:()=>h,b:()=>w,c:()=>a,d:()=>C,e:()=>P,f:()=>d,g:()=>D,h:()=>m,i:()=>Z,j:()=>Q,k:()=>z,l:()=>k,m:()=>E,n:()=>$,o:()=>f,p:()=>g,q:()=>T,r:()=>x,s:()=>W,t:()=>n,u:()=>I});const n=(K,re=0)=>new Promise(U=>{y(K,re,U)}),y=(K,re=0,U)=>{let fe,ue;const pe={passive:!0},de=()=>{fe&&fe()},_e=Ee=>{(void 0===Ee||K===Ee.target)&&(de(),U(Ee))};return K&&(K.addEventListener("webkitTransitionEnd",_e,pe),K.addEventListener("transitionend",_e,pe),ue=setTimeout(_e,re+500),fe=()=>{ue&&(clearTimeout(ue),ue=void 0),K.removeEventListener("webkitTransitionEnd",_e,pe),K.removeEventListener("transitionend",_e,pe)}),de},a=(K,re)=>{K.componentOnReady?K.componentOnReady().then(U=>re(U)):x(()=>re(K))},Q=(K,re=[])=>{const U={};return re.forEach(fe=>{K.hasAttribute(fe)&&(null!==K.getAttribute(fe)&&(U[fe]=K.getAttribute(fe)),K.removeAttribute(fe))}),U},ie=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","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-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],Z=(K,re)=>{let U=ie;return re&&re.length>0&&(U=U.filter(fe=>!re.includes(fe))),Q(K,U)},h=(K,re,U,fe)=>{var ue;if(typeof window<"u"){const pe=window,he=null===(ue=pe?.Ionic)||void 0===ue?void 0:ue.config;if(he){const de=he.get("_ael");if(de)return de(K,re,U,fe);if(he._ael)return he._ael(K,re,U,fe)}}return K.addEventListener(re,U,fe)},w=(K,re,U,fe)=>{var ue;if(typeof window<"u"){const pe=window,he=null===(ue=pe?.Ionic)||void 0===ue?void 0:ue.config;if(he){const de=he.get("_rel");if(de)return de(K,re,U,fe);if(he._rel)return he._rel(K,re,U,fe)}}return K.removeEventListener(re,U,fe)},D=(K,re=K)=>K.shadowRoot||re,x=K=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(K):"function"==typeof requestAnimationFrame?requestAnimationFrame(K):setTimeout(K),E=K=>!!K.shadowRoot&&!!K.attachShadow,z=K=>{const re=K.closest("ion-item");return re?re.querySelector("ion-label"):null},d=K=>{if(K.focus(),K.classList.contains("ion-focusable")){const re=K.closest("ion-app");re&&re.setFocus([K])}},C=(K,re)=>{let U;const fe=K.getAttribute("aria-labelledby"),ue=K.id;let pe=null!==fe&&""!==fe.trim()?fe:re+"-lbl",he=null!==fe&&""!==fe.trim()?document.getElementById(fe):z(K);return he?(null===fe&&(he.id=pe),U=he.textContent,he.setAttribute("aria-hidden","true")):""!==ue.trim()&&(he=document.querySelector(`label[for="${ue}"]`),he&&(""!==he.id?pe=he.id:he.id=pe=`${ue}-lbl`,U=he.textContent)),{label:he,labelId:pe,labelText:U}},P=(K,re,U,fe,ue)=>{if(K||E(re)){let pe=re.querySelector("input.aux-input");pe||(pe=re.ownerDocument.createElement("input"),pe.type="hidden",pe.classList.add("aux-input"),re.appendChild(pe)),pe.disabled=ue,pe.name=U,pe.value=fe||""}},k=(K,re,U)=>Math.max(K,Math.min(re,U)),$=(K,re)=>{if(!K){const U="ASSERT: "+re;throw console.error(U),new Error(U)}},I=K=>K.timeStamp||Date.now(),g=K=>{if(K){const re=K.changedTouches;if(re&&re.length>0){const U=re[0];return{x:U.clientX,y:U.clientY}}if(void 0!==K.pageX)return{x:K.pageX,y:K.pageY}}return{x:0,y:0}},f=K=>{const re="rtl"===document.dir;switch(K){case"start":return re;case"end":return!re;default:throw new Error(`"${K}" is not a valid value for [side]. Use "start" or "end" instead.`)}},m=(K,re)=>{const U=K._original||K;return{_original:K,emit:T(U.emit.bind(U),re)}},T=(K,re=0)=>{let U;return(...fe)=>{clearTimeout(U),U=setTimeout(K,re,...fe)}},W=(K,re)=>{if(K??(K={}),re??(re={}),K===re)return!0;const U=Object.keys(K);if(U.length!==Object.keys(re).length)return!1;for(const fe of U)if(!(fe in re)||K[fe]!==re[fe])return!1;return!0}},89345:(He,L,o)=>{"use strict";o.d(L,{L:()=>Q,a:()=>ie,b:()=>Z,c:()=>h,d:()=>w,e:()=>re,g:()=>ue,l:()=>W,s:()=>U,t:()=>E});var n=o(73308),y=o(29814),a=o(46184);const Q="ionViewWillEnter",ie="ionViewDidEnter",Z="ionViewWillLeave",h="ionViewDidLeave",w="ionViewWillUnload",E=pe=>new Promise((he,de)=>{(0,y.c)(()=>{z(pe),d(pe).then(_e=>{_e.animation&&_e.animation.destroy(),C(pe),he(_e)},_e=>{C(pe),de(_e)})})}),z=pe=>{const he=pe.enteringEl,de=pe.leavingEl;fe(he,de,pe.direction),pe.showGoBack?he.classList.add("can-go-back"):he.classList.remove("can-go-back"),U(he,!1),he.style.setProperty("pointer-events","none"),de&&(U(de,!1),de.style.setProperty("pointer-events","none"))},d=function(){var pe=(0,n.A)(function*(he){const de=yield P(he);return de&&y.B.isBrowser?k(de,he):$(he)});return function(de){return pe.apply(this,arguments)}}(),C=pe=>{const he=pe.enteringEl,de=pe.leavingEl;he.classList.remove("ion-page-invisible"),he.style.removeProperty("pointer-events"),void 0!==de&&(de.classList.remove("ion-page-invisible"),de.style.removeProperty("pointer-events"))},P=function(){var pe=(0,n.A)(function*(he){return he.leavingEl&&he.animated&&0!==he.duration?he.animationBuilder?he.animationBuilder:"ios"===he.mode?(yield Promise.resolve().then(o.bind(o,86494))).iosTransitionAnimation:(yield Promise.resolve().then(o.bind(o,90600))).mdTransitionAnimation:void 0});return function(de){return pe.apply(this,arguments)}}(),k=function(){var pe=(0,n.A)(function*(he,de){yield I(de,!0);const _e=he(de.baseEl,de);m(de.enteringEl,de.leavingEl);const Ee=yield f(_e,de);return de.progressCallback&&de.progressCallback(void 0),Ee&&T(de.enteringEl,de.leavingEl),{hasCompleted:Ee,animation:_e}});return function(de,_e){return pe.apply(this,arguments)}}(),$=function(){var pe=(0,n.A)(function*(he){const de=he.enteringEl,_e=he.leavingEl;return yield I(he,!1),m(de,_e),T(de,_e),{hasCompleted:!0}});return function(de){return pe.apply(this,arguments)}}(),I=function(){var pe=(0,n.A)(function*(he,de){const Ee=(void 0!==he.deepWait?he.deepWait:de)?[re(he.enteringEl),re(he.leavingEl)]:[K(he.enteringEl),K(he.leavingEl)];yield Promise.all(Ee),yield g(he.viewIsReady,he.enteringEl)});return function(de,_e){return pe.apply(this,arguments)}}(),g=function(){var pe=(0,n.A)(function*(he,de){he&&(yield he(de))});return function(de,_e){return pe.apply(this,arguments)}}(),f=(pe,he)=>{const de=he.progressCallback,_e=new Promise(Ee=>{pe.onFinish(Ne=>Ee(1===Ne))});return de?(pe.progressStart(!0),de(pe)):pe.play(),_e},m=(pe,he)=>{W(he,Z),W(pe,Q)},T=(pe,he)=>{W(pe,ie),W(he,h)},W=(pe,he)=>{if(pe){const de=new CustomEvent(he,{bubbles:!1,cancelable:!1});pe.dispatchEvent(de)}},K=pe=>pe?new Promise(he=>(0,a.c)(pe,he)):Promise.resolve(),re=function(){var pe=(0,n.A)(function*(he){const de=he;if(de){if(null!=de.componentOnReady){if(null!=(yield de.componentOnReady()))return}else if(null!=de.__registerHost)return void(yield new Promise(Ee=>(0,a.r)(Ee)));yield Promise.all(Array.from(de.children).map(re))}});return function(de){return pe.apply(this,arguments)}}(),U=(pe,he)=>{he?(pe.setAttribute("aria-hidden","true"),pe.classList.add("ion-page-hidden")):(pe.hidden=!1,pe.removeAttribute("aria-hidden"),pe.classList.remove("ion-page-hidden"))},fe=(pe,he,de)=>{void 0!==pe&&(pe.style.zIndex="back"===de?"99":"101"),void 0!==he&&(he.style.zIndex="100")},ue=pe=>pe.classList.contains("ion-page")?pe:pe.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||pe},15130:(He,L,o)=>{"use strict";o.d(L,{m:()=>E});var n=o(73308),y=o(28226),a=o(46184),Q=o(42673),ie=o(28775);const Z=z=>(0,ie.c)().duration(z?400:300),h=z=>{let d,C;const P=z.width+8,k=(0,ie.c)(),$=(0,ie.c)();z.isEndSide?(d=P+"px",C="0px"):(d=-P+"px",C="0px"),k.addElement(z.menuInnerEl).fromTo("transform",`translateX(${d})`,`translateX(${C})`);const g="ios"===(0,Q.b)(z),f=g?.2:.25;return $.addElement(z.backdropEl).fromTo("opacity",.01,f),Z(g).addAnimation([k,$])},w=z=>{let d,C;const P=(0,Q.b)(z),k=z.width;z.isEndSide?(d=-k+"px",C=k+"px"):(d=k+"px",C=-k+"px");const $=(0,ie.c)().addElement(z.menuInnerEl).fromTo("transform",`translateX(${C})`,"translateX(0px)"),I=(0,ie.c)().addElement(z.contentEl).fromTo("transform","translateX(0px)",`translateX(${d})`),g=(0,ie.c)().addElement(z.backdropEl).fromTo("opacity",.01,.32);return Z("ios"===P).addAnimation([$,I,g])},D=z=>{const d=(0,Q.b)(z),C=z.width*(z.isEndSide?-1:1)+"px",P=(0,ie.c)().addElement(z.contentEl).fromTo("transform","translateX(0px)",`translateX(${C})`);return Z("ios"===d).addAnimation(P)},E=(()=>{const z=new Map,d=[],C=function(){var q=(0,n.A)(function*(u){const p=yield m(u);return!!p&&p.open()});return function(p){return q.apply(this,arguments)}}(),P=function(){var q=(0,n.A)(function*(u){const p=yield void 0!==u?m(u):T();return void 0!==p&&p.close()});return function(p){return q.apply(this,arguments)}}(),k=function(){var q=(0,n.A)(function*(u){const p=yield m(u);return!!p&&p.toggle()});return function(p){return q.apply(this,arguments)}}(),$=function(){var q=(0,n.A)(function*(u,p){const N=yield m(p);return N&&(N.disabled=!u),N});return function(p,N){return q.apply(this,arguments)}}(),I=function(){var q=(0,n.A)(function*(u,p){const N=yield m(p);return N&&(N.swipeGesture=u),N});return function(p,N){return q.apply(this,arguments)}}(),g=function(){var q=(0,n.A)(function*(u){if(null!=u){const p=yield m(u);return void 0!==p&&p.isOpen()}return void 0!==(yield T())});return function(p){return q.apply(this,arguments)}}(),f=function(){var q=(0,n.A)(function*(u){const p=yield m(u);return!!p&&!p.disabled});return function(p){return q.apply(this,arguments)}}(),m=function(){var q=(0,n.A)(function*(u){return yield ge(),"start"===u||"end"===u?Ne(G=>G.side===u&&!G.disabled)||Ne(G=>G.side===u):null!=u?Ne(N=>N.menuId===u):Ne(N=>!N.disabled)||(d.length>0?d[0].el:void 0)});return function(p){return q.apply(this,arguments)}}(),T=function(){var q=(0,n.A)(function*(){return yield ge(),de()});return function(){return q.apply(this,arguments)}}(),W=function(){var q=(0,n.A)(function*(){return yield ge(),_e()});return function(){return q.apply(this,arguments)}}(),K=function(){var q=(0,n.A)(function*(){return yield ge(),Ee()});return function(){return q.apply(this,arguments)}}(),re=(q,u)=>{z.set(q,u)},ue=q=>{const u=q.side;d.filter(p=>p.side===u&&p!==q).forEach(p=>p.disabled=!0)},pe=function(){var q=(0,n.A)(function*(u,p,N){if(Ee())return!1;if(p){const G=yield T();G&&u.el!==G&&(yield G.setOpen(!1,!1))}return u._setOpen(p,N)});return function(p,N,G){return q.apply(this,arguments)}}(),de=()=>Ne(q=>q._isOpen),_e=()=>d.map(q=>q.el),Ee=()=>d.some(q=>q.isAnimating),Ne=q=>{const u=d.find(q);if(void 0!==u)return u.el},ge=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(q=>new Promise(u=>(0,a.c)(q,u))));return re("reveal",D),re("push",w),re("overlay",h),typeof document<"u"&&document.addEventListener("ionBackButton",q=>{const u=de();u&&q.detail.register(y.MENU_BACK_BUTTON_PRIORITY,()=>u.close())}),{registerAnimation:re,get:m,getMenus:W,getOpen:T,isEnabled:f,swipeGesture:I,isAnimating:K,isOpen:g,enable:$,toggle:k,close:P,open:C,_getOpenSync:de,_createAnimation:(q,u)=>{const p=z.get(q);if(!p)throw new Error("animation not registered");return p(u)},_register:q=>{d.indexOf(q)<0&&(q.disabled||ue(q),d.push(q))},_unregister:q=>{const u=d.indexOf(q);u>-1&&d.splice(u,1)},_setOpen:pe,_setActiveMenu:ue}})()},94706:(He,L,o)=>{"use strict";o.d(L,{w:()=>n});const n=typeof window<"u"?window:void 0},53847:(He,L,o)=>{"use strict";o.r(L),o.d(L,{GESTURE_CONTROLLER:()=>n.G,createGesture:()=>D});var n=o(45995);const y=(d,C,P,k)=>{const $=a(d)?{capture:!!k.capture,passive:!!k.passive}:!!k.capture;let I,g;return d.__zone_symbol__addEventListener?(I="__zone_symbol__addEventListener",g="__zone_symbol__removeEventListener"):(I="addEventListener",g="removeEventListener"),d[I](C,P,$),()=>{d[g](C,P,$)}},a=d=>{if(void 0===Q)try{const C=Object.defineProperty({},"passive",{get:()=>{Q=!0}});d.addEventListener("optsTest",()=>{},C)}catch{Q=!1}return!!Q};let Q;const h=d=>d instanceof Document?d:d.ownerDocument,D=d=>{let C=!1,P=!1,k=!0,$=!1;const I=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},d),g=I.canStart,f=I.onWillStart,m=I.onStart,T=I.onEnd,W=I.notCaptured,K=I.onMove,re=I.threshold,U=I.passive,fe=I.blurOnStart,ue={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},pe=((d,C,P)=>{const k=P*(Math.PI/180),$="x"===d,I=Math.cos(k),g=C*C;let f=0,m=0,T=!1,W=0;return{start(K,re){f=K,m=re,W=0,T=!0},detect(K,re){if(!T)return!1;const U=K-f,fe=re-m,ue=U*U+fe*fe;if(ue<g)return!1;const pe=Math.sqrt(ue),he=($?U:fe)/pe;return W=he>I?1:he<-I?-1:0,T=!1,!0},isGesture:()=>0!==W,getDirection:()=>W}})(I.direction,I.threshold,I.maxAngle),he=n.G.createGesture({name:d.gestureName,priority:d.gesturePriority,disableScroll:d.disableScroll}),Ee=()=>{C&&($=!1,K&&K(ue))},Ne=()=>!!he.capture()&&(C=!0,k=!1,ue.startX=ue.currentX,ue.startY=ue.currentY,ue.startTime=ue.currentTime,f?f(ue).then(q):q(),!0),q=()=>{fe&&(()=>{if(typeof document<"u"){const R=document.activeElement;R?.blur&&R.blur()}})(),m&&m(ue),k=!0},u=()=>{C=!1,P=!1,$=!1,k=!0,he.release()},p=R=>{const ne=C,S=k;if(u(),S){if(x(ue,R),ne)return void(T&&T(ue));W&&W(ue)}},N=((d,C,P,k,$)=>{let I,g,f,m,T,W,K,re=0;const U=ge=>{re=Date.now()+2e3,C(ge)&&(!g&&P&&(g=y(d,"touchmove",P,$)),f||(f=y(ge.target,"touchend",ue,$)),m||(m=y(ge.target,"touchcancel",ue,$)))},fe=ge=>{re>Date.now()||C(ge)&&(!W&&P&&(W=y(h(d),"mousemove",P,$)),K||(K=y(h(d),"mouseup",pe,$)))},ue=ge=>{he(),k&&k(ge)},pe=ge=>{de(),k&&k(ge)},he=()=>{g&&g(),f&&f(),m&&m(),g=f=m=void 0},de=()=>{W&&W(),K&&K(),W=K=void 0},_e=()=>{he(),de()},Ee=(ge=!0)=>{ge?(I||(I=y(d,"touchstart",U,$)),T||(T=y(d,"mousedown",fe,$))):(I&&I(),T&&T(),I=T=void 0,_e())};return{enable:Ee,stop:_e,destroy:()=>{Ee(!1),k=P=C=void 0}}})(I.el,R=>{const ne=z(R);return!(P||!k||(E(R,ue),ue.startX=ue.currentX,ue.startY=ue.currentY,ue.startTime=ue.currentTime=ne,ue.velocityX=ue.velocityY=ue.deltaX=ue.deltaY=0,ue.event=R,g&&!1===g(ue))||(he.release(),!he.start()))&&(P=!0,0===re?Ne():(pe.start(ue.startX,ue.startY),!0))},R=>{C?!$&&k&&($=!0,x(ue,R),requestAnimationFrame(Ee)):(x(ue,R),pe.detect(ue.currentX,ue.currentY)&&(!pe.isGesture()||!Ne())&&G())},p,{capture:!1,passive:U}),G=()=>{u(),N.stop(),W&&W(ue)};return{enable(R=!0){R||(C&&p(void 0),u()),N.enable(R)},destroy(){he.destroy(),N.destroy()}}},x=(d,C)=>{if(!C)return;const P=d.currentX,k=d.currentY,$=d.currentTime;E(C,d);const I=d.currentX,g=d.currentY,m=(d.currentTime=z(C))-$;if(m>0&&m<100){const W=(g-k)/m;d.velocityX=(I-P)/m*.7+.3*d.velocityX,d.velocityY=.7*W+.3*d.velocityY}d.deltaX=I-d.startX,d.deltaY=g-d.startY,d.event=C},E=(d,C)=>{let P=0,k=0;if(d){const $=d.changedTouches;if($&&$.length>0){const I=$[0];P=I.clientX,k=I.clientY}else void 0!==d.pageX&&(P=d.pageX,k=d.pageY)}C.currentX=P,C.currentY=k},z=d=>d.timeStamp||Date.now()},29814:(He,L,o)=>{"use strict";o.d(L,{B:()=>tt,H:()=>at,a:()=>G,b:()=>Lt,c:()=>Le,e:()=>kn,f:()=>oi,g:()=>R,h:()=>Re,i:()=>pn,j:()=>ii,k:()=>Ot,p:()=>k,r:()=>Sn,s:()=>C});var n=o(73308);let a,Q,ie,Z=!1,h=!1,w=!1,D=!1,x=!1;const E=typeof window<"u"?window:{},z=E.document||{head:{}},d={$flags$:0,$resourcesUrl$:"",jmp:te=>te(),raf:te=>requestAnimationFrame(te),ael:(te,be,Ie,Pe)=>te.addEventListener(be,Ie,Pe),rel:(te,be,Ie,Pe)=>te.removeEventListener(be,Ie,Pe),ce:(te,be)=>new CustomEvent(te,be)},C=te=>{Object.assign(d,te)},k=te=>Promise.resolve(te),$=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),I=(te,be,Ie,Pe)=>{Ie&&Ie.map(([Ke,Se,Ue])=>{const Xe=f(te,Ke),lt=g(be,Ue),pt=m(Ke);d.ael(Xe,Se,lt,pt),(be.$rmListeners$=be.$rmListeners$||[]).push(()=>d.rel(Xe,Se,lt,pt))})},g=(te,be)=>Ie=>{try{256&te.$flags$?te.$lazyInstance$[be](Ie):(te.$queuedListeners$=te.$queuedListeners$||[]).push([be,Ie])}catch(Pe){ti(Pe)}},f=(te,be)=>4&be?z:8&be?E:16&be?z.body:te,m=te=>0!=(2&te),U="s-id",fe="sty-id",he="http://www.w3.org/1999/xlink",Ee=new WeakMap,Ne=(te,be,Ie)=>{let Pe=xn.get(te);$&&Ie?(Pe=Pe||new CSSStyleSheet,"string"==typeof Pe?Pe=be:Pe.replaceSync(be)):Pe=be,xn.set(te,Pe)},ge=(te,be,Ie,Pe)=>{let Ke=u(be,Ie);const Se=xn.get(Ke);if(te=11===te.nodeType?te:z,Se)if("string"==typeof Se){let Xe,Ue=Ee.get(te=te.head||te);Ue||Ee.set(te,Ue=new Set),Ue.has(Ke)||(te.host&&(Xe=te.querySelector(`[${fe}="${Ke}"]`))?Xe.innerHTML=Se:(Xe=z.createElement("style"),Xe.innerHTML=Se,te.insertBefore(Xe,te.querySelector("link"))),Ue&&Ue.add(Ke))}else te.adoptedStyleSheets.includes(Se)||(te.adoptedStyleSheets=[...te.adoptedStyleSheets,Se]);return Ke},u=(te,be)=>"sc-"+(be&&32&te.$flags$?te.$tagName$+"-"+be:te.$tagName$),p=te=>te.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),G=te=>Qn.push(te),R=te=>jt(te).$modeName$,ne={},Fe=te=>"object"==(te=typeof te)||"function"===te,Re=(te,be,...Ie)=>{let Pe=null,Ke=null,Se=null,Ue=!1,Xe=!1;const lt=[],pt=Kt=>{for(let Zt=0;Zt<Kt.length;Zt++)Pe=Kt[Zt],Array.isArray(Pe)?pt(Pe):null!=Pe&&"boolean"!=typeof Pe&&((Ue="function"!=typeof te&&!Fe(Pe))&&(Pe=String(Pe)),Ue&&Xe?lt[lt.length-1].$text$+=Pe:lt.push(Ue?je(null,Pe):Pe),Xe=Ue)};if(pt(Ie),be){be.key&&(Ke=be.key),be.name&&(Se=be.name);{const Kt=be.className||be.class;Kt&&(be.class="object"!=typeof Kt?Kt:Object.keys(Kt).filter(Zt=>Kt[Zt]).join(" "))}}if("function"==typeof te)return te(null===be?{}:be,lt,Qe);const kt=je(te,null);return kt.$attrs$=be,lt.length>0&&(kt.$children$=lt),kt.$key$=Ke,kt.$name$=Se,kt},je=(te,be)=>({$flags$:0,$tag$:te,$text$:be,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),at={},Qe={forEach:(te,be)=>te.map(nt).forEach(be),map:(te,be)=>te.map(nt).map(be).map(_t)},nt=te=>({vattrs:te.$attrs$,vchildren:te.$children$,vkey:te.$key$,vname:te.$name$,vtag:te.$tag$,vtext:te.$text$}),_t=te=>{if("function"==typeof te.vtag){const Ie=Object.assign({},te.vattrs);return te.vkey&&(Ie.key=te.vkey),te.vname&&(Ie.name=te.vname),Re(te.vtag,Ie,...te.vchildren||[])}const be=je(te.vtag,te.vtext);return be.$attrs$=te.vattrs,be.$children$=te.vchildren,be.$key$=te.vkey,be.$name$=te.vname,be},Ge=(te,be,Ie,Pe,Ke,Se)=>{if(Ie!==Pe){let Ue=Un(te,be),Xe=be.toLowerCase();if("class"===be){const lt=te.classList,pt=It(Ie),kt=It(Pe);lt.remove(...pt.filter(Kt=>Kt&&!kt.includes(Kt))),lt.add(...kt.filter(Kt=>Kt&&!pt.includes(Kt)))}else if("style"===be){for(const lt in Ie)(!Pe||null==Pe[lt])&&(lt.includes("-")?te.style.removeProperty(lt):te.style[lt]="");for(const lt in Pe)(!Ie||Pe[lt]!==Ie[lt])&&(lt.includes("-")?te.style.setProperty(lt,Pe[lt]):te.style[lt]=Pe[lt])}else if("key"!==be)if("ref"===be)Pe&&Pe(te);else if(Ue||"o"!==be[0]||"n"!==be[1]){const lt=Fe(Pe);if((Ue||lt&&null!==Pe)&&!Ke)try{if(te.tagName.includes("-"))te[be]=Pe;else{const kt=Pe??"";"list"===be?Ue=!1:(null==Ie||te[be]!=kt)&&(te[be]=kt)}}catch{}let pt=!1;Xe!==(Xe=Xe.replace(/^xlink\:?/,""))&&(be=Xe,pt=!0),null==Pe||!1===Pe?(!1!==Pe||""===te.getAttribute(be))&&(pt?te.removeAttributeNS(he,be):te.removeAttribute(be)):(!Ue||4&Se||Ke)&&!lt&&(Pe=!0===Pe?"":Pe,pt?te.setAttributeNS(he,be,Pe):te.setAttribute(be,Pe))}else be="-"===be[2]?be.slice(3):Un(E,Xe)?Xe.slice(2):Xe[2]+be.slice(3),Ie&&d.rel(te,be,Ie,!1),Pe&&d.ael(te,be,Pe,!1)}},ht=/\s/,It=te=>te?te.split(ht):[],Rt=(te,be,Ie,Pe)=>{const Ke=11===be.$elm$.nodeType&&be.$elm$.host?be.$elm$.host:be.$elm$,Se=te&&te.$attrs$||ne,Ue=be.$attrs$||ne;for(Pe in Se)Pe in Ue||Ge(Ke,Pe,Se[Pe],void 0,Ie,be.$flags$);for(Pe in Ue)Ge(Ke,Pe,Se[Pe],Ue[Pe],Ie,be.$flags$)},At=(te,be,Ie,Pe)=>{const Ke=be.$children$[Ie];let Ue,Xe,lt,Se=0;if(Z||(w=!0,"slot"===Ke.$tag$&&(a&&Pe.classList.add(a+"-s"),Ke.$flags$|=Ke.$children$?2:1)),null!==Ke.$text$)Ue=Ke.$elm$=z.createTextNode(Ke.$text$);else if(1&Ke.$flags$)Ue=Ke.$elm$=z.createTextNode("");else{if(D||(D="svg"===Ke.$tag$),Ue=Ke.$elm$=z.createElementNS(D?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&Ke.$flags$?"slot-fb":Ke.$tag$),D&&"foreignObject"===Ke.$tag$&&(D=!1),Rt(null,Ke,D),(te=>null!=te)(a)&&Ue["s-si"]!==a&&Ue.classList.add(Ue["s-si"]=a),Ke.$children$)for(Se=0;Se<Ke.$children$.length;++Se)Xe=At(te,Ke,Se,Ue),Xe&&Ue.appendChild(Xe);"svg"===Ke.$tag$?D=!1:"foreignObject"===Ue.tagName&&(D=!0)}return Ue["s-hn"]=ie,3&Ke.$flags$&&(Ue["s-sr"]=!0,Ue["s-cr"]=Q,Ue["s-sn"]=Ke.$name$||"",lt=te&&te.$children$&&te.$children$[Ie],lt&<.$tag$===Ke.$tag$&&te.$elm$&&Ut(te.$elm$,!1)),Ue},Ut=(te,be)=>{d.$flags$|=1;const Ie=te.childNodes;for(let Pe=Ie.length-1;Pe>=0;Pe--){const Ke=Ie[Pe];Ke["s-hn"]!==ie&&Ke["s-ol"]&&(vt(Ke).insertBefore(Ke,Pt(Ke)),Ke["s-ol"].remove(),Ke["s-ol"]=void 0,w=!0),be&&Ut(Ke,be)}d.$flags$&=-2},Wt=(te,be,Ie,Pe,Ke,Se)=>{let Xe,Ue=te["s-cr"]&&te["s-cr"].parentNode||te;for(Ue.shadowRoot&&Ue.tagName===ie&&(Ue=Ue.shadowRoot);Ke<=Se;++Ke)Pe[Ke]&&(Xe=At(null,Ie,Ke,te),Xe&&(Pe[Ke].$elm$=Xe,Ue.insertBefore(Xe,Pt(be))))},it=(te,be,Ie,Pe,Ke)=>{for(;be<=Ie;++be)(Pe=te[be])&&(Ke=Pe.$elm$,Jt(Pe),h=!0,Ke["s-ol"]?Ke["s-ol"].remove():Ut(Ke,!0),Ke.remove())},rt=(te,be)=>te.$tag$===be.$tag$&&("slot"===te.$tag$?te.$name$===be.$name$:te.$key$===be.$key$),Pt=te=>te&&te["s-ol"]||te,vt=te=>(te["s-ol"]?te["s-ol"]:te).parentNode,$t=(te,be)=>{const Ie=be.$elm$=te.$elm$,Pe=te.$children$,Ke=be.$children$,Se=be.$tag$,Ue=be.$text$;let Xe;null===Ue?(D="svg"===Se||"foreignObject"!==Se&&D,"slot"===Se||Rt(te,be,D),null!==Pe&&null!==Ke?((te,be,Ie,Pe)=>{let ke,Ze,Ke=0,Se=0,Ue=0,Xe=0,lt=be.length-1,pt=be[0],kt=be[lt],Kt=Pe.length-1,Zt=Pe[0],we=Pe[Kt];for(;Ke<=lt&&Se<=Kt;)if(null==pt)pt=be[++Ke];else if(null==kt)kt=be[--lt];else if(null==Zt)Zt=Pe[++Se];else if(null==we)we=Pe[--Kt];else if(rt(pt,Zt))$t(pt,Zt),pt=be[++Ke],Zt=Pe[++Se];else if(rt(kt,we))$t(kt,we),kt=be[--lt],we=Pe[--Kt];else if(rt(pt,we))("slot"===pt.$tag$||"slot"===we.$tag$)&&Ut(pt.$elm$.parentNode,!1),$t(pt,we),te.insertBefore(pt.$elm$,kt.$elm$.nextSibling),pt=be[++Ke],we=Pe[--Kt];else if(rt(kt,Zt))("slot"===pt.$tag$||"slot"===we.$tag$)&&Ut(kt.$elm$.parentNode,!1),$t(kt,Zt),te.insertBefore(kt.$elm$,pt.$elm$),kt=be[--lt],Zt=Pe[++Se];else{for(Ue=-1,Xe=Ke;Xe<=lt;++Xe)if(be[Xe]&&null!==be[Xe].$key$&&be[Xe].$key$===Zt.$key$){Ue=Xe;break}Ue>=0?(Ze=be[Ue],Ze.$tag$!==Zt.$tag$?ke=At(be&&be[Se],Ie,Ue,te):($t(Ze,Zt),be[Ue]=void 0,ke=Ze.$elm$),Zt=Pe[++Se]):(ke=At(be&&be[Se],Ie,Se,te),Zt=Pe[++Se]),ke&&vt(pt.$elm$).insertBefore(ke,Pt(pt.$elm$))}Ke>lt?Wt(te,null==Pe[Kt+1]?null:Pe[Kt+1].$elm$,Ie,Pe,Se,Kt):Se>Kt&&it(be,Ke,lt)})(Ie,Pe,be,Ke):null!==Ke?(null!==te.$text$&&(Ie.textContent=""),Wt(Ie,null,be,Ke,0,Ke.length-1)):null!==Pe&&it(Pe,0,Pe.length-1),D&&"svg"===Se&&(D=!1)):(Xe=Ie["s-cr"])?Xe.parentNode.textContent=Ue:te.$text$!==Ue&&(Ie.data=Ue)},ct=te=>{const be=te.childNodes;let Ie,Pe,Ke,Se,Ue,Xe;for(Pe=0,Ke=be.length;Pe<Ke;Pe++)if(Ie=be[Pe],1===Ie.nodeType){if(Ie["s-sr"])for(Ue=Ie["s-sn"],Ie.hidden=!1,Se=0;Se<Ke;Se++)if(Xe=be[Se].nodeType,be[Se]["s-hn"]!==Ie["s-hn"]||""!==Ue){if(1===Xe&&Ue===be[Se].getAttribute("slot")){Ie.hidden=!0;break}}else if(1===Xe||3===Xe&&""!==be[Se].textContent.trim()){Ie.hidden=!0;break}ct(Ie)}},Be=[],Je=te=>{let be,Ie,Pe,Ke,Se,Ue,Xe=0;const lt=te.childNodes,pt=lt.length;for(;Xe<pt;Xe++){if(be=lt[Xe],be["s-sr"]&&(Ie=be["s-cr"])&&Ie.parentNode)for(Pe=Ie.parentNode.childNodes,Ke=be["s-sn"],Ue=Pe.length-1;Ue>=0;Ue--)Ie=Pe[Ue],!Ie["s-cn"]&&!Ie["s-nr"]&&Ie["s-hn"]!==be["s-hn"]&&(wt(Ie,Ke)?(Se=Be.find(kt=>kt.$nodeToRelocate$===Ie),h=!0,Ie["s-sn"]=Ie["s-sn"]||Ke,Se?Se.$slotRefNode$=be:Be.push({$slotRefNode$:be,$nodeToRelocate$:Ie}),Ie["s-sr"]&&Be.map(kt=>{wt(kt.$nodeToRelocate$,Ie["s-sn"])&&(Se=Be.find(Kt=>Kt.$nodeToRelocate$===Ie),Se&&!kt.$slotRefNode$&&(kt.$slotRefNode$=Se.$slotRefNode$))})):Be.some(kt=>kt.$nodeToRelocate$===Ie)||Be.push({$nodeToRelocate$:Ie}));1===be.nodeType&&Je(be)}},wt=(te,be)=>1===te.nodeType?null===te.getAttribute("slot")&&""===be||te.getAttribute("slot")===be:te["s-sn"]===be||""===be,Jt=te=>{te.$attrs$&&te.$attrs$.ref&&te.$attrs$.ref(null),te.$children$&&te.$children$.map(Jt)},pn=te=>jt(te).$hostElement$,kn=(te,be,Ie)=>{const Pe=pn(te);return{emit:Ke=>Mn(Pe,be,{bubbles:!!(4&Ie),composed:!!(2&Ie),cancelable:!!(1&Ie),detail:Ke})}},Mn=(te,be,Ie)=>{const Pe=d.ce(be,Ie);return te.dispatchEvent(Pe),Pe},wn=(te,be)=>{be&&!te.$onRenderResolve$&&be["s-p"]&&be["s-p"].push(new Promise(Ie=>te.$onRenderResolve$=Ie))},Bn=(te,be)=>{if(te.$flags$|=16,!(4&te.$flags$))return wn(te,te.$ancestorComponent$),Le(()=>Zn(te,be));te.$flags$|=512},Zn=(te,be)=>{const Pe=te.$lazyInstance$;let Ke;return be&&(te.$flags$|=256,te.$queuedListeners$&&(te.$queuedListeners$.map(([Se,Ue])=>mt(Pe,Se,Ue)),te.$queuedListeners$=null),Ke=mt(Pe,"componentWillLoad")),Ke=yt(Ke,()=>mt(Pe,"componentWillRender")),yt(Ke,()=>Yn(te,Pe,be))},Yn=function(){var te=(0,n.A)(function*(be,Ie,Pe){const Ke=be.$hostElement$,Ue=Ke["s-rc"];Pe&&(te=>{const be=te.$cmpMeta$,Ie=te.$hostElement$,Pe=be.$flags$,Se=ge(Ie.shadowRoot?Ie.shadowRoot:Ie.getRootNode(),be,te.$modeName$);10&Pe&&(Ie["s-sc"]=Se,Ie.classList.add(Se+"-h"),2&Pe&&Ie.classList.add(Se+"-s"))})(be);Jn(be,Ie),Ue&&(Ue.map(lt=>lt()),Ke["s-rc"]=void 0);{const lt=Ke["s-p"],pt=()=>In(be);0===lt.length?pt():(Promise.all(lt).then(pt),be.$flags$|=4,lt.length=0)}});return function(Ie,Pe,Ke){return te.apply(this,arguments)}}(),Jn=(te,be,Ie)=>{try{be=be.render&&be.render(),te.$flags$&=-17,te.$flags$|=2,((te,be)=>{const Ie=te.$hostElement$,Pe=te.$cmpMeta$,Ke=te.$vnode$||je(null,null),Se=(te=>te&&te.$tag$===at)(be)?be:Re(null,null,be);if(ie=Ie.tagName,Pe.$attrsToReflect$&&(Se.$attrs$=Se.$attrs$||{},Pe.$attrsToReflect$.map(([Ue,Xe])=>Se.$attrs$[Xe]=Ie[Ue])),Se.$tag$=null,Se.$flags$|=4,te.$vnode$=Se,Se.$elm$=Ke.$elm$=Ie.shadowRoot||Ie,a=Ie["s-sc"],Q=Ie["s-cr"],Z=0!=(1&Pe.$flags$),h=!1,$t(Ke,Se),d.$flags$|=1,w){Je(Se.$elm$);let Ue,Xe,lt,pt,kt,Kt,Zt=0;for(;Zt<Be.length;Zt++)Ue=Be[Zt],Xe=Ue.$nodeToRelocate$,Xe["s-ol"]||(lt=z.createTextNode(""),lt["s-nr"]=Xe,Xe.parentNode.insertBefore(Xe["s-ol"]=lt,Xe));for(Zt=0;Zt<Be.length;Zt++)if(Ue=Be[Zt],Xe=Ue.$nodeToRelocate$,Ue.$slotRefNode$){for(pt=Ue.$slotRefNode$.parentNode,kt=Ue.$slotRefNode$.nextSibling,lt=Xe["s-ol"];lt=lt.previousSibling;)if(Kt=lt["s-nr"],Kt&&Kt["s-sn"]===Xe["s-sn"]&&pt===Kt.parentNode&&(Kt=Kt.nextSibling,!Kt||!Kt["s-nr"])){kt=Kt;break}(!kt&&pt!==Xe.parentNode||Xe.nextSibling!==kt)&&Xe!==kt&&(!Xe["s-hn"]&&Xe["s-ol"]&&(Xe["s-hn"]=Xe["s-ol"].parentNode.nodeName),pt.insertBefore(Xe,kt))}else 1===Xe.nodeType&&(Xe.hidden=!0)}h&&ct(Se.$elm$),d.$flags$&=-2,Be.length=0})(te,be)}catch(Pe){ti(Pe,te.$hostElement$)}return null},In=te=>{const Ie=te.$hostElement$,Ke=te.$lazyInstance$,Se=te.$ancestorComponent$;mt(Ke,"componentDidRender"),64&te.$flags$?mt(Ke,"componentDidUpdate"):(te.$flags$|=64,We(Ie),mt(Ke,"componentDidLoad"),te.$onReadyResolve$(Ie),Se||yi()),te.$onInstanceResolve$(Ie),te.$onRenderResolve$&&(te.$onRenderResolve$(),te.$onRenderResolve$=void 0),512&te.$flags$&&Xn(()=>Bn(te,!1)),te.$flags$&=-517},ii=te=>{{const be=jt(te),Ie=be.$hostElement$.isConnected;return Ie&&2==(18&be.$flags$)&&Bn(be,!1),Ie}},yi=te=>{We(z.documentElement),Xn(()=>Mn(E,"appload",{detail:{namespace:"ionic"}}))},mt=(te,be,Ie)=>{if(te&&te[be])try{return te[be](Ie)}catch(Pe){ti(Pe)}},yt=(te,be)=>te&&te.then?te.then(be):be(),We=te=>te.classList.add("hydrated"),Mt=(te,be,Ie,Pe,Ke,Se,Ue)=>{let Xe,lt,pt,kt;if(1===Se.nodeType){for(Xe=Se.getAttribute("c-id"),Xe&&(lt=Xe.split("."),(lt[0]===Ue||"0"===lt[0])&&(pt={$flags$:0,$hostId$:lt[0],$nodeId$:lt[1],$depth$:lt[2],$index$:lt[3],$tag$:Se.tagName.toLowerCase(),$elm$:Se,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},be.push(pt),Se.removeAttribute("c-id"),te.$children$||(te.$children$=[]),te.$children$[pt.$index$]=pt,te=pt,Pe&&"0"===pt.$depth$&&(Pe[pt.$index$]=pt.$elm$))),kt=Se.childNodes.length-1;kt>=0;kt--)Mt(te,be,Ie,Pe,Ke,Se.childNodes[kt],Ue);if(Se.shadowRoot)for(kt=Se.shadowRoot.childNodes.length-1;kt>=0;kt--)Mt(te,be,Ie,Pe,Ke,Se.shadowRoot.childNodes[kt],Ue)}else if(8===Se.nodeType)lt=Se.nodeValue.split("."),(lt[1]===Ue||"0"===lt[1])&&(Xe=lt[0],pt={$flags$:0,$hostId$:lt[1],$nodeId$:lt[2],$depth$:lt[3],$index$:lt[4],$elm$:Se,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===Xe?(pt.$elm$=Se.nextSibling,pt.$elm$&&3===pt.$elm$.nodeType&&(pt.$text$=pt.$elm$.textContent,be.push(pt),Se.remove(),te.$children$||(te.$children$=[]),te.$children$[pt.$index$]=pt,Pe&&"0"===pt.$depth$&&(Pe[pt.$index$]=pt.$elm$))):pt.$hostId$===Ue&&("s"===Xe?(pt.$tag$="slot",Se["s-sn"]=lt[5]?pt.$name$=lt[5]:"",Se["s-sr"]=!0,Pe&&(pt.$elm$=z.createElement(pt.$tag$),pt.$name$&&pt.$elm$.setAttribute("name",pt.$name$),Se.parentNode.insertBefore(pt.$elm$,Se),Se.remove(),"0"===pt.$depth$&&(Pe[pt.$index$]=pt.$elm$)),Ie.push(pt),te.$children$||(te.$children$=[]),te.$children$[pt.$index$]=pt):"r"===Xe&&(Pe?Se.remove():(Ke["s-cr"]=Se,Se["s-cn"]=!0))));else if(te&&"style"===te.$tag$){const Kt=je(null,Se.textContent);Kt.$elm$=Se,Kt.$index$="0",te.$children$=[Kt]}},zt=(te,be)=>{if(1===te.nodeType){let Ie=0;for(;Ie<te.childNodes.length;Ie++)zt(te.childNodes[Ie],be);if(te.shadowRoot)for(Ie=0;Ie<te.shadowRoot.childNodes.length;Ie++)zt(te.shadowRoot.childNodes[Ie],be)}else if(8===te.nodeType){const Ie=te.nodeValue.split(".");"o"===Ie[0]&&(be.set(Ie[1]+"."+Ie[2],te),te.nodeValue="",te["s-en"]=Ie[3])}},dn=(te,be,Ie)=>{if(be.$members$){te.watchers&&(be.$watchers$=te.watchers);const Pe=Object.entries(be.$members$),Ke=te.prototype;if(Pe.map(([Se,[Ue]])=>{31&Ue||2&Ie&&32&Ue?Object.defineProperty(Ke,Se,{get(){return((te,be)=>jt(this).$instanceValues$.get(be))(0,Se)},set(Xe){((te,be,Ie,Pe)=>{const Ke=jt(te),Se=Ke.$hostElement$,Ue=Ke.$instanceValues$.get(be),Xe=Ke.$flags$,lt=Ke.$lazyInstance$;Ie=((te,be)=>null==te||Fe(te)?te:4&be?"false"!==te&&(""===te||!!te):2&be?parseFloat(te):1&be?String(te):te)(Ie,Pe.$members$[be][0]);const pt=Number.isNaN(Ue)&&Number.isNaN(Ie);if((!(8&Xe)||void 0===Ue)&&Ie!==Ue&&!pt&&(Ke.$instanceValues$.set(be,Ie),lt)){if(Pe.$watchers$&&128&Xe){const Kt=Pe.$watchers$[be];Kt&&Kt.map(Zt=>{try{lt[Zt](Ie,Ue,be)}catch(we){ti(we,Se)}})}2==(18&Xe)&&Bn(Ke,!1)}})(this,Se,Xe,be)},configurable:!0,enumerable:!0}):1&Ie&&64&Ue&&Object.defineProperty(Ke,Se,{value(...Xe){const lt=jt(this);return lt.$onInstancePromise$.then(()=>lt.$lazyInstance$[Se](...Xe))}})}),1&Ie){const Se=new Map;Ke.attributeChangedCallback=function(Ue,Xe,lt){d.jmp(()=>{const pt=Se.get(Ue);if(this.hasOwnProperty(pt))lt=this[pt],delete this[pt];else if(Ke.hasOwnProperty(pt)&&"number"==typeof this[pt]&&this[pt]==lt)return;this[pt]=(null!==lt||"boolean"!=typeof this[pt])&<})},te.observedAttributes=Pe.filter(([Ue,Xe])=>15&Xe[0]).map(([Ue,Xe])=>{const lt=Xe[1]||Ue;return Se.set(lt,Ue),512&Xe[0]&&be.$attrsToReflect$.push([Ue,lt]),lt})}}return te},ri=function(){var te=(0,n.A)(function*(be,Ie,Pe,Ke,Se){if(!(32&Ie.$flags$)){{if(Ie.$flags$|=32,(Se=jn(Pe)).then){const pt=()=>{};Se=yield Se,pt()}Se.isProxied||(Pe.$watchers$=Se.watchers,dn(Se,Pe,2),Se.isProxied=!0);const lt=()=>{};Ie.$flags$|=8;try{new Se(Ie)}catch(pt){ti(pt)}Ie.$flags$&=-9,Ie.$flags$|=128,lt(),si(Ie.$lazyInstance$)}if(Se.style){let lt=Se.style;"string"!=typeof lt&&(lt=lt[Ie.$modeName$=(te=>Qn.map(be=>be(te)).find(be=>!!be))(be)]);const pt=u(Pe,Ie.$modeName$);if(!xn.has(pt)){const kt=()=>{};Ne(pt,lt,!!(1&Pe.$flags$)),kt()}}}const Ue=Ie.$ancestorComponent$,Xe=()=>Bn(Ie,!0);Ue&&Ue["s-rc"]?Ue["s-rc"].push(Xe):Xe()});return function(Ie,Pe,Ke,Se,Ue){return te.apply(this,arguments)}}(),si=te=>{mt(te,"connectedCallback")},ot=te=>{const be=te["s-cr"]=z.createComment("");be["s-cn"]=!0,te.insertBefore(be,te.firstChild)},Lt=(te,be={})=>{const Pe=[],Ke=be.exclude||[],Se=E.customElements,Ue=z.head,Xe=Ue.querySelector("meta[charset]"),lt=z.createElement("style"),pt=[],kt=z.querySelectorAll(`[${fe}]`);let Kt,Zt=!0,we=0;for(Object.assign(d,be),d.$resourcesUrl$=new URL(be.resourcesUrl||"./",z.baseURI).href,d.$flags$|=2;we<kt.length;we++)Ne(kt[we].getAttribute(fe),p(kt[we].innerHTML),!0);te.map(ke=>{ke[1].map(Ze=>{const Ct={$flags$:Ze[0],$tagName$:Ze[1],$members$:Ze[2],$listeners$:Ze[3]};Ct.$members$=Ze[2],Ct.$listeners$=Ze[3],Ct.$attrsToReflect$=[],Ct.$watchers$={};const Vt=Ct.$tagName$,nn=class extends HTMLElement{constructor(hn){super(hn),qt(hn=this,Ct),1&Ct.$flags$&&hn.attachShadow({mode:"open",delegatesFocus:!!(16&Ct.$flags$)})}connectedCallback(){Kt&&(clearTimeout(Kt),Kt=null),Zt?pt.push(this):d.jmp(()=>(te=>{if(!(1&d.$flags$)){const be=jt(te),Ie=be.$cmpMeta$,Pe=()=>{};if(1&be.$flags$)I(te,be,Ie.$listeners$),si(be.$lazyInstance$);else{let Ke;if(be.$flags$|=1,Ke=te.getAttribute(U),Ke){if(1&Ie.$flags$){const Se=ge(te.shadowRoot,Ie,te.getAttribute("s-mode"));te.classList.remove(Se+"-h",Se+"-s")}((te,be,Ie,Pe)=>{const Se=te.shadowRoot,Ue=[],lt=Se?[]:null,pt=Pe.$vnode$=je(be,null);d.$orgLocNodes$||zt(z.body,d.$orgLocNodes$=new Map),te[U]=Ie,te.removeAttribute(U),Mt(pt,Ue,[],lt,te,te,Ie),Ue.map(kt=>{const Kt=kt.$hostId$+"."+kt.$nodeId$,Zt=d.$orgLocNodes$.get(Kt),we=kt.$elm$;Zt&&""===Zt["s-en"]&&Zt.parentNode.insertBefore(we,Zt.nextSibling),Se||(we["s-hn"]=be,Zt&&(we["s-ol"]=Zt,we["s-ol"]["s-nr"]=we)),d.$orgLocNodes$.delete(Kt)}),Se&<.map(kt=>{kt&&Se.appendChild(kt)})})(te,Ie.$tagName$,Ke,be)}Ke||12&Ie.$flags$&&ot(te);{let Se=te;for(;Se=Se.parentNode||Se.host;)if(1===Se.nodeType&&Se.hasAttribute("s-id")&&Se["s-p"]||Se["s-p"]){wn(be,be.$ancestorComponent$=Se);break}}Ie.$members$&&Object.entries(Ie.$members$).map(([Se,[Ue]])=>{if(31&Ue&&te.hasOwnProperty(Se)){const Xe=te[Se];delete te[Se],te[Se]=Xe}}),Xn(()=>ri(te,be,Ie))}Pe()}})(this))}disconnectedCallback(){d.jmp(()=>(te=>{if(!(1&d.$flags$)){const be=jt(this),Ie=be.$lazyInstance$;be.$rmListeners$&&(be.$rmListeners$.map(Pe=>Pe()),be.$rmListeners$=void 0),mt(Ie,"disconnectedCallback")}})())}componentOnReady(){return jt(this).$onReadyPromise$}};Ct.$lazyBundleId$=ke[0],!Ke.includes(Vt)&&!Se.get(Vt)&&(Pe.push(Vt),Se.define(Vt,dn(nn,Ct,1)))})}),lt.innerHTML=Pe+"{visibility:hidden}.hydrated{visibility:inherit}",lt.setAttribute("data-styles",""),Ue.insertBefore(lt,Xe?Xe.nextSibling:Ue.firstChild),Zt=!1,pt.length?pt.map(ke=>ke.connectedCallback()):d.jmp(()=>Kt=setTimeout(yi,30))},Ot=te=>{const be=new URL(te,d.$resourcesUrl$);return be.origin!==E.location.origin?be.href:be.pathname},Xt=new WeakMap,jt=te=>Xt.get(te),Sn=(te,be)=>Xt.set(be.$lazyInstance$=te,be),qt=(te,be)=>{const Ie={$flags$:0,$hostElement$:te,$cmpMeta$:be,$instanceValues$:new Map};return Ie.$onInstancePromise$=new Promise(Pe=>Ie.$onInstanceResolve$=Pe),Ie.$onReadyPromise$=new Promise(Pe=>Ie.$onReadyResolve$=Pe),te["s-p"]=[],te["s-rc"]=[],I(te,Ie,be.$listeners$),Xt.set(te,Ie)},Un=(te,be)=>be in te,ti=(te,be)=>(0,console.error)(te,be),qn=new Map,jn=(te,be,Ie)=>{const Pe=te.$tagName$.replace(/-/g,"_"),Ke=te.$lazyBundleId$,Se=qn.get(Ke);return Se?Se[Pe]:o(88996)(`./${Ke}.entry.js`).then(Ue=>(qn.set(Ke,Ue),Ue[Pe]),ti)},xn=new Map,Qn=[],bn=[],_n=[],Ci=(te,be)=>Ie=>{te.push(Ie),x||(x=!0,be&&4&d.$flags$?Xn(Ln):d.raf(Ln))},fi=te=>{for(let be=0;be<te.length;be++)try{te[be](performance.now())}catch(Ie){ti(Ie)}te.length=0},Ln=()=>{fi(bn),fi(_n),(x=bn.length>0)&&d.raf(Ln)},Xn=te=>k().then(te),oi=Ci(bn,!1),Le=Ci(_n,!0),tt={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1}},42673:(He,L,o)=>{"use strict";o.d(L,{a:()=>E,b:()=>Ee,c:()=>a,g:()=>x,i:()=>Ne});var n=o(29814);class y{constructor(){this.m=new Map}reset(q){this.m=new Map(Object.entries(q))}get(q,u){const p=this.m.get(q);return void 0!==p?p:u}getBoolean(q,u=!1){const p=this.m.get(q);return void 0===p?u:"string"==typeof p?"true"===p:!!p}getNumber(q,u){const p=parseFloat(this.m.get(q));return isNaN(p)?void 0!==u?u:NaN:p}set(q,u){this.m.set(q,u)}}const a=new y,w="ionic:",D="ionic-persist-config",x=ge=>z(ge),E=(ge,q)=>("string"==typeof ge&&(q=ge,ge=void 0),x(ge).includes(q)),z=(ge=window)=>{if(typeof ge>"u")return[];ge.Ionic=ge.Ionic||{};let q=ge.Ionic.platforms;return null==q&&(q=ge.Ionic.platforms=d(ge),q.forEach(u=>ge.document.documentElement.classList.add(`plt-${u}`))),q},d=ge=>{const q=a.get("platform");return Object.keys(de).filter(u=>{const p=q?.[u];return"function"==typeof p?p(ge):de[u](ge)})},P=ge=>!!(pe(ge,/iPad/i)||pe(ge,/Macintosh/i)&&T(ge)),I=ge=>pe(ge,/android|sink/i),T=ge=>he(ge,"(any-pointer:coarse)"),K=ge=>re(ge)||U(ge),re=ge=>!!(ge.cordova||ge.phonegap||ge.PhoneGap),U=ge=>{const q=ge.Capacitor;return!!q?.isNative},pe=(ge,q)=>q.test(ge.navigator.userAgent),he=(ge,q)=>{var u;return null===(u=ge.matchMedia)||void 0===u?void 0:u.call(ge,q).matches},de={ipad:P,iphone:ge=>pe(ge,/iPhone/i),ios:ge=>pe(ge,/iPhone|iPod/i)||P(ge),android:I,phablet:ge=>{const q=ge.innerWidth,u=ge.innerHeight,p=Math.min(q,u),N=Math.max(q,u);return p>390&&p<520&&N>620&&N<800},tablet:ge=>{const q=ge.innerWidth,u=ge.innerHeight,p=Math.min(q,u),N=Math.max(q,u);return P(ge)||(ge=>I(ge)&&!pe(ge,/mobile/i))(ge)||p>460&&p<820&&N>780&&N<1400},cordova:re,capacitor:U,electron:ge=>pe(ge,/electron/i),pwa:ge=>{var q;return!!(null!==(q=ge.matchMedia)&&void 0!==q&&q.call(ge,"(display-mode: standalone)").matches||ge.navigator.standalone)},mobile:T,mobileweb:ge=>T(ge)&&!K(ge),desktop:ge=>!T(ge),hybrid:K};let _e;const Ee=ge=>ge&&(0,n.g)(ge)||_e,Ne=(ge={})=>{if(typeof window>"u")return;const q=window.document,u=window,p=u.Ionic=u.Ionic||{},N={};ge._ael&&(N.ael=ge._ael),ge._rel&&(N.rel=ge._rel),ge._ce&&(N.ce=ge._ce),(0,n.s)(N);const G=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(ge=>{try{const q=ge.sessionStorage.getItem(D);return null!==q?JSON.parse(q):{}}catch{return{}}})(u)),{persistConfig:!1}),p.config),(ge=>{const q={};return ge.location.search.slice(1).split("&").map(u=>u.split("=")).map(([u,p])=>[decodeURIComponent(u),decodeURIComponent(p)]).filter(([u])=>((ge,q)=>ge.substr(0,q.length)===q)(u,w)).map(([u,p])=>[u.slice(6),p]).forEach(([u,p])=>{q[u]=p}),q})(u)),ge);a.reset(G),a.getBoolean("persistConfig")&&((ge,q)=>{try{ge.sessionStorage.setItem(D,JSON.stringify(q))}catch{return}})(u,G),z(u),p.config=a,p.mode=_e=a.get("mode",q.documentElement.getAttribute("mode")||(E(u,"ios")?"ios":"md")),a.set("mode",_e),q.documentElement.setAttribute("mode",_e),q.documentElement.classList.add(_e),a.getBoolean("_testing")&&a.set("animated",!1);const R=S=>{var se;return null===(se=S.tagName)||void 0===se?void 0:se.startsWith("ION-")},ne=S=>["ios","md"].includes(S);(0,n.a)(S=>{for(;S;){const se=S.mode||S.getAttribute("mode");if(se){if(ne(se))return se;R(S)&&console.warn('Invalid ionic mode: "'+se+'", expected: "ios" or "md"')}S=S.parentElement}return _e})}},86494:(He,L,o)=>{"use strict";o.r(L),o.d(L,{iosTransitionAnimation:()=>d,shadow:()=>h});var n=o(28775),y=o(89345);o(94706),o(29814);const Z=C=>document.querySelector(`${C}.ion-cloned-element`),h=C=>C.shadowRoot||C,w=C=>{const P="ION-TABS"===C.tagName?C:C.querySelector("ion-tabs"),k="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=P){const $=P.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=$?$.querySelector(k):null}return C.querySelector(k)},D=(C,P)=>{const k="ION-TABS"===C.tagName?C:C.querySelector("ion-tabs");let $=[];if(null!=k){const I=k.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=I&&($=I.querySelectorAll("ion-buttons"))}else $=C.querySelectorAll("ion-buttons");for(const I of $){const g=I.closest("ion-header"),f=g&&!g.classList.contains("header-collapse-condense-inactive"),m=I.querySelector("ion-back-button"),T=I.classList.contains("buttons-collapse");if(null!==m&&("start"===I.slot||""===I.slot)&&(T&&f&&P||!T))return m}return null},E=(C,P,k,$,I,g)=>{const f=P?`calc(100% - ${g.right+4}px)`:g.left-4+"px",m=P?"7px":"-7px",T=P?"-4px":"4px",W=P?"-4px":"4px",K=P?"right":"left",re=P?"left":"right",ue=k?[{offset:0,opacity:1,transform:`translate3d(${T}, ${g.top-46}px, 0) scale(1)`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${m}, ${I.top-40}px, 0) scale(2.1)`}]:[{offset:0,opacity:0,transform:`translate3d(${m}, ${I.top-40}px, 0) scale(2.1)`},{offset:1,opacity:1,transform:`translate3d(${T}, ${g.top-46}px, 0) scale(1)`}],de=k?[{offset:0,opacity:1,transform:`translate3d(${W}, ${g.top-46}px, 0) scale(1)`},{offset:.2,opacity:0,transform:`translate3d(${W}, ${g.top-41}px, 0) scale(0.6)`},{offset:1,opacity:0,transform:`translate3d(${W}, ${g.top-41}px, 0) scale(0.6)`}]:[{offset:0,opacity:0,transform:`translate3d(${W}, ${g.top-41}px, 0) scale(0.6)`},{offset:1,opacity:1,transform:`translate3d(${W}, ${g.top-46}px, 0) scale(1)`}],_e=(0,n.c)(),Ee=(0,n.c)(),Ne=Z("ion-back-button"),ge=h(Ne).querySelector(".button-text"),q=h(Ne).querySelector("ion-icon");Ne.text=$.text,Ne.mode=$.mode,Ne.icon=$.icon,Ne.color=$.color,Ne.disabled=$.disabled,Ne.style.setProperty("display","block"),Ne.style.setProperty("position","fixed"),Ee.addElement(q),_e.addElement(ge),_e.beforeStyles({"transform-origin":`${K} center`}).beforeAddWrite(()=>{$.style.setProperty("display","none"),Ne.style.setProperty(K,f)}).afterAddWrite(()=>{$.style.setProperty("display",""),Ne.style.setProperty("display","none"),Ne.style.removeProperty(K)}).keyframes(ue),Ee.beforeStyles({"transform-origin":`${re} center`}).keyframes(de),C.addAnimation([_e,Ee])},z=(C,P,k,$,I,g)=>{const f=P?`calc(100% - ${I.right}px)`:`${I.left}px`,m=P?"-18px":"18px",T=P?"right":"left",re=k?[{offset:0,opacity:0,transform:`translate3d(${m}, ${g.top-4}px, 0) scale(0.49)`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0, ${I.top-2}px, 0) scale(1)`}]:[{offset:0,opacity:.99,transform:`translate3d(0, ${I.top-2}px, 0) scale(1)`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${m}, ${g.top-4}px, 0) scale(0.5)`}],U=Z("ion-title"),fe=(0,n.c)();U.innerText=$.innerText,U.size=$.size,U.color=$.color,fe.addElement(U),fe.beforeStyles({"transform-origin":`${T} center`,height:"46px",display:"",position:"relative",[T]:f}).beforeAddWrite(()=>{$.style.setProperty("display","none")}).afterAddWrite(()=>{$.style.setProperty("display",""),U.style.setProperty("display","none")}).keyframes(re),C.addAnimation(fe)},d=(C,P)=>{var k;try{const $="cubic-bezier(0.32,0.72,0,1)",I="opacity",g="transform",f="0%",T="rtl"===C.ownerDocument.dir,W=T?"-99.5%":"99.5%",K=T?"33%":"-33%",re=P.enteringEl,U=P.leavingEl,fe="back"===P.direction,ue=re.querySelector(":scope > ion-content"),pe=re.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),he=re.querySelectorAll(":scope > ion-header > ion-toolbar"),de=(0,n.c)(),_e=(0,n.c)();if(de.addElement(re).duration((null!==(k=P.duration)&&void 0!==k?k:0)||540).easing(P.easing||$).fill("both").beforeRemoveClass("ion-page-invisible"),U&&null!=C){const q=(0,n.c)();q.addElement(C),de.addAnimation(q)}if(ue||0!==he.length||0!==pe.length?(_e.addElement(ue),_e.addElement(pe)):_e.addElement(re.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),de.addAnimation(_e),fe?_e.beforeClearStyles([I]).fromTo("transform",`translateX(${K})`,`translateX(${f})`).fromTo(I,.8,1):_e.beforeClearStyles([I]).fromTo("transform",`translateX(${W})`,`translateX(${f})`),ue){const q=h(ue).querySelector(".transition-effect");if(q){const u=q.querySelector(".transition-cover"),p=q.querySelector(".transition-shadow"),N=(0,n.c)(),G=(0,n.c)(),R=(0,n.c)();N.addElement(q).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),G.addElement(u).beforeClearStyles([I]).fromTo(I,0,.1),R.addElement(p).beforeClearStyles([I]).fromTo(I,.03,.7),N.addAnimation([G,R]),_e.addAnimation([N])}}const Ee=re.querySelector("ion-header.header-collapse-condense"),{forward:Ne,backward:ge}=((C,P,k,$,I)=>{const g=D($,k),f=w(I),m=w($),T=D(I,k),W=null!==g&&null!==f&&!k,K=null!==m&&null!==T&&k;if(W){const re=f.getBoundingClientRect(),U=g.getBoundingClientRect();z(C,P,k,f,re,U),E(C,P,k,g,re,U)}else if(K){const re=m.getBoundingClientRect(),U=T.getBoundingClientRect();z(C,P,k,m,re,U),E(C,P,k,T,re,U)}return{forward:W,backward:K}})(de,T,fe,re,U);if(he.forEach(q=>{const u=(0,n.c)();u.addElement(q),de.addAnimation(u);const p=(0,n.c)();p.addElement(q.querySelector("ion-title"));const N=(0,n.c)(),G=Array.from(q.querySelectorAll("ion-buttons,[menuToggle]")),R=q.closest("ion-header"),ne=R?.classList.contains("header-collapse-condense-inactive");let S;S=G.filter(fe?je=>{const at=je.classList.contains("buttons-collapse");return at&&!ne||!at}:je=>!je.classList.contains("buttons-collapse")),N.addElement(S);const se=(0,n.c)();se.addElement(q.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const Me=(0,n.c)();Me.addElement(h(q).querySelector(".toolbar-background"));const Fe=(0,n.c)(),Re=q.querySelector("ion-back-button");if(Re&&Fe.addElement(Re),u.addAnimation([p,N,se,Me,Fe]),N.fromTo(I,.01,1),se.fromTo(I,.01,1),fe)ne||p.fromTo("transform",`translateX(${K})`,`translateX(${f})`).fromTo(I,.01,1),se.fromTo("transform",`translateX(${K})`,`translateX(${f})`),Fe.fromTo(I,.01,1);else if(Ee||p.fromTo("transform",`translateX(${W})`,`translateX(${f})`).fromTo(I,.01,1),se.fromTo("transform",`translateX(${W})`,`translateX(${f})`),Me.beforeClearStyles([I,"transform"]),R?.translucent?Me.fromTo("transform",T?"translateX(-100%)":"translateX(100%)","translateX(0px)"):Me.fromTo(I,.01,"var(--opacity)"),Ne||Fe.fromTo(I,.01,1),Re&&!Ne){const at=(0,n.c)();at.addElement(h(Re).querySelector(".button-text")).fromTo("transform",T?"translateX(-100px)":"translateX(100px)","translateX(0px)"),u.addAnimation(at)}}),U){const q=(0,n.c)(),u=U.querySelector(":scope > ion-content"),p=U.querySelectorAll(":scope > ion-header > ion-toolbar"),N=U.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(u||0!==p.length||0!==N.length?(q.addElement(u),q.addElement(N)):q.addElement(U.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),de.addAnimation(q),fe){q.beforeClearStyles([I]).fromTo("transform",`translateX(${f})`,T?"translateX(-100%)":"translateX(100%)");const G=(0,y.g)(U);de.afterAddWrite(()=>{"normal"===de.getDirection()&&G.style.setProperty("display","none")})}else q.fromTo("transform",`translateX(${f})`,`translateX(${K})`).fromTo(I,1,.8);if(u){const G=h(u).querySelector(".transition-effect");if(G){const R=G.querySelector(".transition-cover"),ne=G.querySelector(".transition-shadow"),S=(0,n.c)(),se=(0,n.c)(),Me=(0,n.c)();S.addElement(G).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),se.addElement(R).beforeClearStyles([I]).fromTo(I,.1,0),Me.addElement(ne).beforeClearStyles([I]).fromTo(I,.7,.03),S.addAnimation([se,Me]),q.addAnimation([S])}}p.forEach(G=>{const R=(0,n.c)();R.addElement(G);const ne=(0,n.c)();ne.addElement(G.querySelector("ion-title"));const S=(0,n.c)(),se=G.querySelectorAll("ion-buttons,[menuToggle]"),Me=G.closest("ion-header"),Fe=Me?.classList.contains("header-collapse-condense-inactive"),Re=Array.from(se).filter(_t=>{const Ge=_t.classList.contains("buttons-collapse");return Ge&&!Fe||!Ge});S.addElement(Re);const je=(0,n.c)(),at=G.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");at.length>0&&je.addElement(at);const ft=(0,n.c)();ft.addElement(h(G).querySelector(".toolbar-background"));const Qe=(0,n.c)(),nt=G.querySelector("ion-back-button");if(nt&&Qe.addElement(nt),R.addAnimation([ne,S,je,Qe,ft]),de.addAnimation(R),Qe.fromTo(I,.99,0),S.fromTo(I,.99,0),je.fromTo(I,.99,0),fe){if(Fe||ne.fromTo("transform",`translateX(${f})`,T?"translateX(-100%)":"translateX(100%)").fromTo(I,.99,0),je.fromTo("transform",`translateX(${f})`,T?"translateX(-100%)":"translateX(100%)"),ft.beforeClearStyles([I,"transform"]),Me?.translucent?ft.fromTo("transform","translateX(0px)",T?"translateX(-100%)":"translateX(100%)"):ft.fromTo(I,"var(--opacity)",0),nt&&!ge){const Ge=(0,n.c)();Ge.addElement(h(nt).querySelector(".button-text")).fromTo("transform",`translateX(${f})`,`translateX(${(T?-124:124)+"px"})`),R.addAnimation(Ge)}}else Fe||ne.fromTo("transform",`translateX(${f})`,`translateX(${K})`).fromTo(I,.99,0).afterClearStyles([g,I]),je.fromTo("transform",`translateX(${f})`,`translateX(${K})`).afterClearStyles([g,I]),Qe.afterClearStyles([I]),ne.afterClearStyles([I]),S.afterClearStyles([I])})}return de}catch($){throw $}}},90600:(He,L,o)=>{"use strict";o.r(L),o.d(L,{mdTransitionAnimation:()=>ie});var n=o(28775),y=o(89345);o(94706),o(29814);const ie=(Z,h)=>{var w,D,x;const E="40px",d="back"===h.direction,P=h.leavingEl,k=(0,y.g)(h.enteringEl),$=k.querySelector("ion-toolbar"),I=(0,n.c)();if(I.addElement(k).fill("both").beforeRemoveClass("ion-page-invisible"),d?I.duration((null!==(w=h.duration)&&void 0!==w?w:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):I.duration((null!==(D=h.duration)&&void 0!==D?D:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform",`translateY(${E})`,"translateY(0px)").fromTo("opacity",.01,1),$){const g=(0,n.c)();g.addElement($),I.addAnimation(g)}if(P&&d){I.duration((null!==(x=h.duration)&&void 0!==x?x:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const g=(0,n.c)();g.addElement((0,y.g)(P)).onFinish(f=>{1===f&&g.elements.length>0&&g.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)",`translateY(${E})`).fromTo("opacity",1,0),I.addAnimation(g)}return I}},97255:(He,L,o)=>{"use strict";o.d(L,{B:()=>u,G:()=>p,a:()=>w,b:()=>D,c:()=>d,d:()=>fe,e:()=>P,f:()=>pe,g:()=>_e,h:()=>Z,i:()=>Ne,j:()=>I,k:()=>re,l:()=>x,m:()=>E,s:()=>q,t:()=>C});var n=o(73308),y=o(42673),a=o(28226),Q=o(46184);let ie=0;const Z=new WeakMap,h=N=>({create:G=>k(N,G),dismiss:(G,R,ne)=>W(document,G,R,N,ne),getTop:()=>(0,n.A)(function*(){return re(document,N)})()}),w=h("ion-alert"),D=h("ion-action-sheet"),x=h("ion-loading"),E=h("ion-modal"),d=h("ion-popover"),C=h("ion-toast"),P=N=>{typeof document<"u"&&T(document);const G=ie++;N.overlayIndex=G,N.hasAttribute("id")||(N.id=`ion-overlay-${G}`)},k=(N,G)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(N).then(()=>{const R=document.createElement(N);return R.classList.add("overlay-hidden"),Object.assign(R,Object.assign(Object.assign({},G),{hasController:!0})),he(document).appendChild(R),new Promise(ne=>(0,Q.c)(R,ne))}):Promise.resolve(),$='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',I=(N,G)=>{let R=N.querySelector($);const ne=R?.shadowRoot;ne&&(R=ne.querySelector($)||R),R?(0,Q.f)(R):G.focus()},f=(N,G)=>{const R=Array.from(N.querySelectorAll($));let ne=R.length>0?R[R.length-1]:null;const S=ne?.shadowRoot;S&&(ne=S.querySelector($)||ne),ne?ne.focus():G.focus()},T=N=>{0===ie&&(ie=1,N.addEventListener("focus",G=>{((N,G)=>{const R=re(G,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover"),ne=N.target;R&&ne&&!R.classList.contains("ion-disable-focus-trap")&&(R.shadowRoot?(()=>{if(R.contains(ne))R.lastFocus=ne;else{const Me=R.lastFocus;I(R,R),Me===G.activeElement&&f(R,R),R.lastFocus=G.activeElement}})():(()=>{if(R===ne)R.lastFocus=void 0;else{const Me=(0,Q.g)(R);if(!Me.contains(ne))return;const Fe=Me.querySelector(".ion-overlay-wrapper");if(!Fe)return;if(Fe.contains(ne))R.lastFocus=ne;else{const Re=R.lastFocus;I(Fe,R),Re===G.activeElement&&f(Fe,R),R.lastFocus=G.activeElement}}})())})(G,N)},!0),N.addEventListener("ionBackButton",G=>{const R=re(N);R?.backdropDismiss&&G.detail.register(a.OVERLAY_BACK_BUTTON_PRIORITY,()=>R.dismiss(void 0,u))}),N.addEventListener("keyup",G=>{if("Escape"===G.key){const R=re(N);R?.backdropDismiss&&R.dismiss(void 0,u)}}))},W=(N,G,R,ne,S)=>{const se=re(N,ne,S);return se?se.dismiss(G,R):Promise.reject("overlay does not exist")},re=(N,G,R)=>{const ne=((N,G)=>(void 0===G&&(G="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(N.querySelectorAll(G)).filter(R=>R.overlayIndex>0)))(N,G).filter(S=>!(N=>N.classList.contains("overlay-hidden"))(S));return void 0===R?ne[ne.length-1]:ne.find(S=>S.id===R)},U=(N=!1)=>{const R=he(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");R&&(N?R.setAttribute("aria-hidden","true"):R.removeAttribute("aria-hidden"))},fe=function(){var N=(0,n.A)(function*(G,R,ne,S,se){var Me,Fe;if(G.presented)return;U(!0),G.presented=!0,G.willPresent.emit(),null===(Me=G.willPresentShorthand)||void 0===Me||Me.emit();const Re=(0,y.b)(G),je=G.enterAnimation?G.enterAnimation:y.c.get(R,"ios"===Re?ne:S);(yield de(G,je,G.el,se))&&(G.didPresent.emit(),null===(Fe=G.didPresentShorthand)||void 0===Fe||Fe.emit()),"ION-TOAST"!==G.el.tagName&&ue(G.el),G.keyboardClose&&(null===document.activeElement||!G.el.contains(document.activeElement))&&G.el.focus()});return function(R,ne,S,se,Me){return N.apply(this,arguments)}}(),ue=function(){var N=(0,n.A)(function*(G){let R=document.activeElement;if(!R)return;const ne=R?.shadowRoot;ne&&(R=ne.querySelector($)||R),yield G.onDidDismiss(),R.focus()});return function(R){return N.apply(this,arguments)}}(),pe=function(){var N=(0,n.A)(function*(G,R,ne,S,se,Me,Fe){var Re,je;if(!G.presented)return!1;U(!1),G.presented=!1;try{G.el.style.setProperty("pointer-events","none"),G.willDismiss.emit({data:R,role:ne}),null===(Re=G.willDismissShorthand)||void 0===Re||Re.emit({data:R,role:ne});const at=(0,y.b)(G),ft=G.leaveAnimation?G.leaveAnimation:y.c.get(S,"ios"===at?se:Me);ne!==p&&(yield de(G,ft,G.el,Fe)),G.didDismiss.emit({data:R,role:ne}),null===(je=G.didDismissShorthand)||void 0===je||je.emit({data:R,role:ne}),Z.delete(G),G.el.classList.add("overlay-hidden"),G.el.style.removeProperty("pointer-events"),void 0!==G.el.lastFocus&&(G.el.lastFocus=void 0)}catch(at){console.error(at)}return G.el.remove(),!0});return function(R,ne,S,se,Me,Fe,Re){return N.apply(this,arguments)}}(),he=N=>N.querySelector("ion-app")||N.body,de=function(){var N=(0,n.A)(function*(G,R,ne,S){ne.classList.remove("overlay-hidden");const Me=R(G.el,S);(!G.animated||!y.c.getBoolean("animated",!0))&&Me.duration(0),G.keyboardClose&&Me.beforeAddWrite(()=>{const Re=ne.ownerDocument.activeElement;Re?.matches("input,ion-input, ion-textarea")&&Re.blur()});const Fe=Z.get(G)||[];return Z.set(G,[...Fe,Me]),yield Me.play(),!0});return function(R,ne,S,se){return N.apply(this,arguments)}}(),_e=(N,G)=>{let R;const ne=new Promise(S=>R=S);return Ee(N,G,S=>{R(S.detail)}),ne},Ee=(N,G,R)=>{const ne=S=>{(0,Q.b)(N,G,ne),R(S)};(0,Q.a)(N,G,ne)},Ne=N=>"cancel"===N||N===u,ge=N=>N(),q=(N,G)=>{if("function"==typeof N)return y.c.get("_zoneGate",ge)(()=>{try{return N(G)}catch(ne){throw ne}})},u="backdrop",p="gesture"},89818:(He,L,o)=>{"use strict";o.d(L,{w:()=>Z});var n=o(73308),y=o(81210),a=o.n(y);const Q={SecureStorage:"ionicSecureStorage",IndexedDB:a().INDEXEDDB,LocalStorage:a().LOCALSTORAGE},ie={name:"_ionicstorage",storeName:"_ionickv",dbKey:"_ionickey",driverOrder:[Q.SecureStorage,Q.IndexedDB,Q.LocalStorage]};class Z{constructor(w=ie){this._db=null,this._secureStorageDriver=null;const D=Object.assign({},ie,w||{});this._config=D}create(){var w=this;return(0,n.A)(function*(){const D=a().createInstance(w._config);return w._db=D,yield D.setDriver(w._config.driverOrder||[]),w})()}defineDriver(w){var D=this;return(0,n.A)(function*(){return w._driver===Q.SecureStorage&&(D._secureStorageDriver=w),a().defineDriver(w)})()}get driver(){var w;return(null===(w=this._db)||void 0===w?void 0:w.driver())||null}assertDb(){if(!this._db)throw new Error("Database not created. Must call create() first");return this._db}get(w){return this.assertDb().getItem(w)}set(w,D){return this.assertDb().setItem(w,D)}remove(w){return this.assertDb().removeItem(w)}clear(){return this.assertDb().clear()}length(){return this.assertDb().length()}keys(){return this.assertDb().keys()}forEach(w){return this.assertDb().iterate(w)}setEncryptionKey(w){var D;if(!this._secureStorageDriver)throw new Error("@ionic-enterprise/secure-storage not installed. Encryption support not available");null===(D=this._secureStorageDriver)||void 0===D||D.setEncryptionKey(w)}}},66716:(He,L,o)=>{var n;!function(y,a,Q,ie){"use strict";var k,Z=["","webkit","Moz","MS","ms","o"],h=a.createElement("div"),w="function",D=Math.round,x=Math.abs,E=Date.now;function z(we,ke,Ze){return setTimeout(f(we,Ze),ke)}function d(we,ke,Ze){return!!Array.isArray(we)&&(C(we,Ze[ke],Ze),!0)}function C(we,ke,Ze){var Ct;if(we)if(we.forEach)we.forEach(ke,Ze);else if(we.length!==ie)for(Ct=0;Ct<we.length;)ke.call(Ze,we[Ct],Ct,we),Ct++;else for(Ct in we)we.hasOwnProperty(Ct)&&ke.call(Ze,we[Ct],Ct,we)}function P(we,ke,Ze){var Ct="DEPRECATED METHOD: "+ke+"\n"+Ze+" AT \n";return function(){var Vt=new Error("get-stack-trace"),nn=Vt&&Vt.stack?Vt.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",hn=y.console&&(y.console.warn||y.console.log);return hn&&hn.call(y.console,Ct,nn),we.apply(this,arguments)}}k="function"!=typeof Object.assign?function(ke){if(ke===ie||null===ke)throw new TypeError("Cannot convert undefined or null to object");for(var Ze=Object(ke),Ct=1;Ct<arguments.length;Ct++){var Vt=arguments[Ct];if(Vt!==ie&&null!==Vt)for(var nn in Vt)Vt.hasOwnProperty(nn)&&(Ze[nn]=Vt[nn])}return Ze}:Object.assign;var $=P(function(ke,Ze,Ct){for(var Vt=Object.keys(Ze),nn=0;nn<Vt.length;)(!Ct||Ct&&ke[Vt[nn]]===ie)&&(ke[Vt[nn]]=Ze[Vt[nn]]),nn++;return ke},"extend","Use `assign`."),I=P(function(ke,Ze){return $(ke,Ze,!0)},"merge","Use `assign`.");function g(we,ke,Ze){var Vt,Ct=ke.prototype;(Vt=we.prototype=Object.create(Ct)).constructor=we,Vt._super=Ct,Ze&&k(Vt,Ze)}function f(we,ke){return function(){return we.apply(ke,arguments)}}function m(we,ke){return typeof we==w?we.apply(ke&&ke[0]||ie,ke):we}function T(we,ke){return we===ie?ke:we}function W(we,ke,Ze){C(fe(ke),function(Ct){we.addEventListener(Ct,Ze,!1)})}function K(we,ke,Ze){C(fe(ke),function(Ct){we.removeEventListener(Ct,Ze,!1)})}function re(we,ke){for(;we;){if(we==ke)return!0;we=we.parentNode}return!1}function U(we,ke){return we.indexOf(ke)>-1}function fe(we){return we.trim().split(/\s+/g)}function ue(we,ke,Ze){if(we.indexOf&&!Ze)return we.indexOf(ke);for(var Ct=0;Ct<we.length;){if(Ze&&we[Ct][Ze]==ke||!Ze&&we[Ct]===ke)return Ct;Ct++}return-1}function pe(we){return Array.prototype.slice.call(we,0)}function he(we,ke,Ze){for(var Ct=[],Vt=[],nn=0;nn<we.length;){var hn=ke?we[nn][ke]:we[nn];ue(Vt,hn)<0&&Ct.push(we[nn]),Vt[nn]=hn,nn++}return Ze&&(Ct=ke?Ct.sort(function(ai,_i){return ai[ke]>_i[ke]}):Ct.sort()),Ct}function de(we,ke){for(var Ze,Ct,Vt=ke[0].toUpperCase()+ke.slice(1),nn=0;nn<Z.length;){if((Ct=(Ze=Z[nn])?Ze+Vt:ke)in we)return Ct;nn++}return ie}var _e=1;function Ne(we){var ke=we.ownerDocument||we;return ke.defaultView||ke.parentWindow||y}var q="ontouchstart"in y,u=de(y,"PointerEvent")!==ie,p=q&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),N="touch",R="mouse",S=25,se=1,Fe=4,Re=8,je=1,at=2,ft=4,Qe=8,nt=16,_t=at|ft,Ge=Qe|nt,ht=_t|Ge,It=["x","y"],Rt=["clientX","clientY"];function At(we,ke){var Ze=this;this.manager=we,this.callback=ke,this.element=we.element,this.target=we.options.inputTarget,this.domHandler=function(Ct){m(we.options.enable,[we])&&Ze.handler(Ct)},this.init()}function Wt(we,ke,Ze){var Ct=Ze.pointers.length,Vt=Ze.changedPointers.length,nn=ke&se&&Ct-Vt==0,hn=ke&(Fe|Re)&&Ct-Vt==0;Ze.isFirst=!!nn,Ze.isFinal=!!hn,nn&&(we.session={}),Ze.eventType=ke,function it(we,ke){var Ze=we.session,Ct=ke.pointers,Vt=Ct.length;Ze.firstInput||(Ze.firstInput=Pt(ke)),Vt>1&&!Ze.firstMultiple?Ze.firstMultiple=Pt(ke):1===Vt&&(Ze.firstMultiple=!1);var nn=Ze.firstInput,hn=Ze.firstMultiple,pi=hn?hn.center:nn.center,ai=ke.center=vt(Ct);ke.timeStamp=E(),ke.deltaTime=ke.timeStamp-nn.timeStamp,ke.angle=Je(pi,ai),ke.distance=Be(pi,ai),function Bt(we,ke){var Ze=ke.center,Ct=we.offsetDelta||{},Vt=we.prevDelta||{},nn=we.prevInput||{};(ke.eventType===se||nn.eventType===Fe)&&(Vt=we.prevDelta={x:nn.deltaX||0,y:nn.deltaY||0},Ct=we.offsetDelta={x:Ze.x,y:Ze.y}),ke.deltaX=Vt.x+(Ze.x-Ct.x),ke.deltaY=Vt.y+(Ze.y-Ct.y)}(Ze,ke),ke.offsetDirection=ct(ke.deltaX,ke.deltaY);var _i=$t(ke.deltaTime,ke.deltaX,ke.deltaY);ke.overallVelocityX=_i.x,ke.overallVelocityY=_i.y,ke.overallVelocity=x(_i.x)>x(_i.y)?_i.x:_i.y,ke.scale=hn?function Jt(we,ke){return Be(ke[0],ke[1],Rt)/Be(we[0],we[1],Rt)}(hn.pointers,Ct):1,ke.rotation=hn?function wt(we,ke){return Je(ke[1],ke[0],Rt)+Je(we[1],we[0],Rt)}(hn.pointers,Ct):0,ke.maxPointers=Ze.prevInput?ke.pointers.length>Ze.prevInput.maxPointers?ke.pointers.length:Ze.prevInput.maxPointers:ke.pointers.length,function rt(we,ke){var Vt,nn,hn,pi,Ze=we.lastInterval||ke,Ct=ke.timeStamp-Ze.timeStamp;if(ke.eventType!=Re&&(Ct>S||Ze.velocity===ie)){var ai=ke.deltaX-Ze.deltaX,_i=ke.deltaY-Ze.deltaY,fn=$t(Ct,ai,_i);nn=fn.x,hn=fn.y,Vt=x(fn.x)>x(fn.y)?fn.x:fn.y,pi=ct(ai,_i),we.lastInterval=ke}else Vt=Ze.velocity,nn=Ze.velocityX,hn=Ze.velocityY,pi=Ze.direction;ke.velocity=Vt,ke.velocityX=nn,ke.velocityY=hn,ke.direction=pi}(Ze,ke);var fn=we.element;re(ke.srcEvent.target,fn)&&(fn=ke.srcEvent.target),ke.target=fn}(we,Ze),we.emit("hammer.input",Ze),we.recognize(Ze),we.session.prevInput=Ze}function Pt(we){for(var ke=[],Ze=0;Ze<we.pointers.length;)ke[Ze]={clientX:D(we.pointers[Ze].clientX),clientY:D(we.pointers[Ze].clientY)},Ze++;return{timeStamp:E(),pointers:ke,center:vt(ke),deltaX:we.deltaX,deltaY:we.deltaY}}function vt(we){var ke=we.length;if(1===ke)return{x:D(we[0].clientX),y:D(we[0].clientY)};for(var Ze=0,Ct=0,Vt=0;Vt<ke;)Ze+=we[Vt].clientX,Ct+=we[Vt].clientY,Vt++;return{x:D(Ze/ke),y:D(Ct/ke)}}function $t(we,ke,Ze){return{x:ke/we||0,y:Ze/we||0}}function ct(we,ke){return we===ke?je:x(we)>=x(ke)?we<0?at:ft:ke<0?Qe:nt}function Be(we,ke,Ze){Ze||(Ze=It);var Ct=ke[Ze[0]]-we[Ze[0]],Vt=ke[Ze[1]]-we[Ze[1]];return Math.sqrt(Ct*Ct+Vt*Vt)}function Je(we,ke,Ze){return Ze||(Ze=It),180*Math.atan2(ke[Ze[1]]-we[Ze[1]],ke[Ze[0]]-we[Ze[0]])/Math.PI}At.prototype={handler:function(){},init:function(){this.evEl&&W(this.element,this.evEl,this.domHandler),this.evTarget&&W(this.target,this.evTarget,this.domHandler),this.evWin&&W(Ne(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&K(this.element,this.evEl,this.domHandler),this.evTarget&&K(this.target,this.evTarget,this.domHandler),this.evWin&&K(Ne(this.element),this.evWin,this.domHandler)}};var ln={mousedown:se,mousemove:2,mouseup:Fe},pn="mousedown",kn="mousemove mouseup";function Mn(){this.evEl=pn,this.evWin=kn,this.pressed=!1,At.apply(this,arguments)}g(Mn,At,{handler:function(ke){var Ze=ln[ke.type];Ze&se&&0===ke.button&&(this.pressed=!0),2&Ze&&1!==ke.which&&(Ze=Fe),this.pressed&&(Ze&Fe&&(this.pressed=!1),this.callback(this.manager,Ze,{pointers:[ke],changedPointers:[ke],pointerType:R,srcEvent:ke}))}});var wn={pointerdown:se,pointermove:2,pointerup:Fe,pointercancel:Re,pointerout:Re},Bn={2:N,3:"pen",4:R,5:"kinect"},Zn="pointerdown",Yn="pointermove pointerup pointercancel";function Jn(){this.evEl=Zn,this.evWin=Yn,At.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}y.MSPointerEvent&&!y.PointerEvent&&(Zn="MSPointerDown",Yn="MSPointerMove MSPointerUp MSPointerCancel"),g(Jn,At,{handler:function(ke){var Ze=this.store,Ct=!1,Vt=ke.type.toLowerCase().replace("ms",""),nn=wn[Vt],hn=Bn[ke.pointerType]||ke.pointerType,pi=hn==N,ai=ue(Ze,ke.pointerId,"pointerId");nn&se&&(0===ke.button||pi)?ai<0&&(Ze.push(ke),ai=Ze.length-1):nn&(Fe|Re)&&(Ct=!0),!(ai<0)&&(Ze[ai]=ke,this.callback(this.manager,nn,{pointers:Ze,changedPointers:[ke],pointerType:hn,srcEvent:ke}),Ct&&Ze.splice(ai,1))}});var In={touchstart:se,touchmove:2,touchend:Fe,touchcancel:Re};function mt(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,At.apply(this,arguments)}function yt(we,ke){var Ze=pe(we.touches),Ct=pe(we.changedTouches);return ke&(Fe|Re)&&(Ze=he(Ze.concat(Ct),"identifier",!0)),[Ze,Ct]}g(mt,At,{handler:function(ke){var Ze=In[ke.type];if(Ze===se&&(this.started=!0),this.started){var Ct=yt.call(this,ke,Ze);Ze&(Fe|Re)&&Ct[0].length-Ct[1].length==0&&(this.started=!1),this.callback(this.manager,Ze,{pointers:Ct[0],changedPointers:Ct[1],pointerType:N,srcEvent:ke})}}});var We={touchstart:se,touchmove:2,touchend:Fe,touchcancel:Re},et="touchstart touchmove touchend touchcancel";function Mt(){this.evTarget=et,this.targetIds={},At.apply(this,arguments)}function zt(we,ke){var Ze=pe(we.touches),Ct=this.targetIds;if(ke&(2|se)&&1===Ze.length)return Ct[Ze[0].identifier]=!0,[Ze,Ze];var Vt,nn,hn=pe(we.changedTouches),pi=[],ai=this.target;if(nn=Ze.filter(function(_i){return re(_i.target,ai)}),ke===se)for(Vt=0;Vt<nn.length;)Ct[nn[Vt].identifier]=!0,Vt++;for(Vt=0;Vt<hn.length;)Ct[hn[Vt].identifier]&&pi.push(hn[Vt]),ke&(Fe|Re)&&delete Ct[hn[Vt].identifier],Vt++;return pi.length?[he(nn.concat(pi),"identifier",!0),pi]:void 0}g(Mt,At,{handler:function(ke){var Ze=We[ke.type],Ct=zt.call(this,ke,Ze);Ct&&this.callback(this.manager,Ze,{pointers:Ct[0],changedPointers:Ct[1],pointerType:N,srcEvent:ke})}});var sn=2500;function An(){At.apply(this,arguments);var we=f(this.handler,this);this.touch=new Mt(this.manager,we),this.mouse=new Mn(this.manager,we),this.primaryTouch=null,this.lastTouches=[]}function dn(we,ke){we&se?(this.primaryTouch=ke.changedPointers[0].identifier,ri.call(this,ke)):we&(Fe|Re)&&ri.call(this,ke)}function ri(we){var ke=we.changedPointers[0];if(ke.identifier===this.primaryTouch){var Ze={x:ke.clientX,y:ke.clientY};this.lastTouches.push(Ze);var Ct=this.lastTouches;setTimeout(function(){var nn=Ct.indexOf(Ze);nn>-1&&Ct.splice(nn,1)},sn)}}function si(we){for(var ke=we.srcEvent.clientX,Ze=we.srcEvent.clientY,Ct=0;Ct<this.lastTouches.length;Ct++){var Vt=this.lastTouches[Ct],nn=Math.abs(ke-Vt.x),hn=Math.abs(Ze-Vt.y);if(nn<=25&&hn<=25)return!0}return!1}g(An,At,{handler:function(ke,Ze,Ct){var nn=Ct.pointerType==R;if(!(nn&&Ct.sourceCapabilities&&Ct.sourceCapabilities.firesTouchEvents)){if(Ct.pointerType==N)dn.call(this,Ze,Ct);else if(nn&&si.call(this,Ct))return;this.callback(ke,Ze,Ct)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var gt=de(h.style,"touchAction"),ot=gt!==ie,ut="compute",Ot="manipulation",Xt="none",jt="pan-x",Sn="pan-y",qt=function qn(){if(!ot)return!1;var we={},ke=y.CSS&&y.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(Ze){we[Ze]=!ke||y.CSS.supports("touch-action",Ze)}),we}();function Un(we,ke){this.manager=we,this.set(ke)}Un.prototype={set:function(we){we==ut&&(we=this.compute()),ot&&this.manager.element.style&&qt[we]&&(this.manager.element.style[gt]=we),this.actions=we.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var we=[];return C(this.manager.recognizers,function(ke){m(ke.options.enable,[ke])&&(we=we.concat(ke.getTouchAction()))}),function ti(we){if(U(we,Xt))return Xt;var ke=U(we,jt),Ze=U(we,Sn);return ke&&Ze?Xt:ke||Ze?ke?jt:Sn:U(we,Ot)?Ot:"auto"}(we.join(" "))},preventDefaults:function(we){var ke=we.srcEvent,Ze=we.offsetDirection;if(!this.manager.session.prevented){var Ct=this.actions,Vt=U(Ct,Xt)&&!qt[Xt],nn=U(Ct,Sn)&&!qt[Sn],hn=U(Ct,jt)&&!qt[jt];if(Vt&&1===we.pointers.length&&we.distance<2&&we.deltaTime<250)return;return hn&&nn||!(Vt||nn&&Ze&_t||hn&&Ze&Ge)?void 0:this.preventSrc(ke)}ke.preventDefault()},preventSrc:function(we){this.manager.session.prevented=!0,we.preventDefault()}};var jn=1;function Ln(we){this.options=k({},this.defaults,we||{}),this.id=function Ee(){return _e++}(),this.manager=null,this.options.enable=T(this.options.enable,!0),this.state=jn,this.simultaneous={},this.requireFail=[]}function Xn(we){return 16&we?"cancel":8&we?"end":4&we?"move":2&we?"start":""}function oi(we){return we==nt?"down":we==Qe?"up":we==at?"left":we==ft?"right":""}function Le(we,ke){var Ze=ke.manager;return Ze?Ze.get(we):we}function tt(){Ln.apply(this,arguments)}function te(){tt.apply(this,arguments),this.pX=null,this.pY=null}function be(){tt.apply(this,arguments)}function Ie(){Ln.apply(this,arguments),this._timer=null,this._input=null}function Pe(){tt.apply(this,arguments)}function Ke(){tt.apply(this,arguments)}function Se(){Ln.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Ue(we,ke){return(ke=ke||{}).recognizers=T(ke.recognizers,Ue.defaults.preset),new pt(we,ke)}function pt(we,ke){this.options=k({},Ue.defaults,ke||{}),this.options.inputTarget=this.options.inputTarget||we,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=we,this.input=function Ut(we){return new(we.options.inputClass||(u?Jn:p?Mt:q?An:Mn))(we,Wt)}(this),this.touchAction=new Un(this,this.options.touchAction),kt(this,!0),C(this.options.recognizers,function(Ze){var Ct=this.add(new Ze[0](Ze[1]));Ze[2]&&Ct.recognizeWith(Ze[2]),Ze[3]&&Ct.requireFailure(Ze[3])},this)}function kt(we,ke){var Ct,Ze=we.element;Ze.style&&(C(we.options.cssProps,function(Vt,nn){Ct=de(Ze.style,nn),ke?(we.oldCssProps[Ct]=Ze.style[Ct],Ze.style[Ct]=Vt):Ze.style[Ct]=we.oldCssProps[Ct]||""}),ke||(we.oldCssProps={}))}Ln.prototype={defaults:{},set:function(we){return k(this.options,we),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(we){if(d(we,"recognizeWith",this))return this;var ke=this.simultaneous;return ke[(we=Le(we,this)).id]||(ke[we.id]=we,we.recognizeWith(this)),this},dropRecognizeWith:function(we){return d(we,"dropRecognizeWith",this)||(we=Le(we,this),delete this.simultaneous[we.id]),this},requireFailure:function(we){if(d(we,"requireFailure",this))return this;var ke=this.requireFail;return-1===ue(ke,we=Le(we,this))&&(ke.push(we),we.requireFailure(this)),this},dropRequireFailure:function(we){if(d(we,"dropRequireFailure",this))return this;we=Le(we,this);var ke=ue(this.requireFail,we);return ke>-1&&this.requireFail.splice(ke,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(we){return!!this.simultaneous[we.id]},emit:function(we){var ke=this,Ze=this.state;function Ct(Vt){ke.manager.emit(Vt,we)}Ze<8&&Ct(ke.options.event+Xn(Ze)),Ct(ke.options.event),we.additionalEvent&&Ct(we.additionalEvent),Ze>=8&&Ct(ke.options.event+Xn(Ze))},tryEmit:function(we){if(this.canEmit())return this.emit(we);this.state=32},canEmit:function(){for(var we=0;we<this.requireFail.length;){if(!(this.requireFail[we].state&(32|jn)))return!1;we++}return!0},recognize:function(we){var ke=k({},we);if(!m(this.options.enable,[this,ke]))return this.reset(),void(this.state=32);56&this.state&&(this.state=jn),this.state=this.process(ke),30&this.state&&this.tryEmit(ke)},process:function(we){},getTouchAction:function(){},reset:function(){}},g(tt,Ln,{defaults:{pointers:1},attrTest:function(we){var ke=this.options.pointers;return 0===ke||we.pointers.length===ke},process:function(we){var ke=this.state,Ze=we.eventType,Ct=6&ke,Vt=this.attrTest(we);return Ct&&(Ze&Re||!Vt)?16|ke:Ct||Vt?Ze&Fe?8|ke:2&ke?4|ke:2:32}}),g(te,tt,{defaults:{event:"pan",threshold:10,pointers:1,direction:ht},getTouchAction:function(){var we=this.options.direction,ke=[];return we&_t&&ke.push(Sn),we&Ge&&ke.push(jt),ke},directionTest:function(we){var ke=this.options,Ze=!0,Ct=we.distance,Vt=we.direction,nn=we.deltaX,hn=we.deltaY;return Vt&ke.direction||(ke.direction&_t?(Vt=0===nn?je:nn<0?at:ft,Ze=nn!=this.pX,Ct=Math.abs(we.deltaX)):(Vt=0===hn?je:hn<0?Qe:nt,Ze=hn!=this.pY,Ct=Math.abs(we.deltaY))),we.direction=Vt,Ze&&Ct>ke.threshold&&Vt&ke.direction},attrTest:function(we){return tt.prototype.attrTest.call(this,we)&&(2&this.state||!(2&this.state)&&this.directionTest(we))},emit:function(we){this.pX=we.deltaX,this.pY=we.deltaY;var ke=oi(we.direction);ke&&(we.additionalEvent=this.options.event+ke),this._super.emit.call(this,we)}}),g(be,tt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Xt]},attrTest:function(we){return this._super.attrTest.call(this,we)&&(Math.abs(we.scale-1)>this.options.threshold||2&this.state)},emit:function(we){1!==we.scale&&(we.additionalEvent=this.options.event+(we.scale<1?"in":"out")),this._super.emit.call(this,we)}}),g(Ie,Ln,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(we){var ke=this.options,Ze=we.pointers.length===ke.pointers,Ct=we.distance<ke.threshold,Vt=we.deltaTime>ke.time;if(this._input=we,!Ct||!Ze||we.eventType&(Fe|Re)&&!Vt)this.reset();else if(we.eventType&se)this.reset(),this._timer=z(function(){this.state=8,this.tryEmit()},ke.time,this);else if(we.eventType&Fe)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(we){8===this.state&&(we&&we.eventType&Fe?this.manager.emit(this.options.event+"up",we):(this._input.timeStamp=E(),this.manager.emit(this.options.event,this._input)))}}),g(Pe,tt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Xt]},attrTest:function(we){return this._super.attrTest.call(this,we)&&(Math.abs(we.rotation)>this.options.threshold||2&this.state)}}),g(Ke,tt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:_t|Ge,pointers:1},getTouchAction:function(){return te.prototype.getTouchAction.call(this)},attrTest:function(we){var Ze,ke=this.options.direction;return ke&(_t|Ge)?Ze=we.overallVelocity:ke&_t?Ze=we.overallVelocityX:ke&Ge&&(Ze=we.overallVelocityY),this._super.attrTest.call(this,we)&&ke&we.offsetDirection&&we.distance>this.options.threshold&&we.maxPointers==this.options.pointers&&x(Ze)>this.options.velocity&&we.eventType&Fe},emit:function(we){var ke=oi(we.offsetDirection);ke&&this.manager.emit(this.options.event+ke,we),this.manager.emit(this.options.event,we)}}),g(Se,Ln,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Ot]},process:function(we){var ke=this.options,Ze=we.pointers.length===ke.pointers,Ct=we.distance<ke.threshold,Vt=we.deltaTime<ke.time;if(this.reset(),we.eventType&se&&0===this.count)return this.failTimeout();if(Ct&&Vt&&Ze){if(we.eventType!=Fe)return this.failTimeout();var nn=!this.pTime||we.timeStamp-this.pTime<ke.interval,hn=!this.pCenter||Be(this.pCenter,we.center)<ke.posThreshold;if(this.pTime=we.timeStamp,this.pCenter=we.center,hn&&nn?this.count+=1:this.count=1,this._input=we,0==this.count%ke.taps)return this.hasRequireFailures()?(this._timer=z(function(){this.state=8,this.tryEmit()},ke.interval,this),2):8}return 32},failTimeout:function(){return this._timer=z(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Ue.VERSION="2.0.7",Ue.defaults={domEvents:!1,touchAction:ut,enable:!0,inputTarget:null,inputClass:null,preset:[[Pe,{enable:!1}],[be,{enable:!1},["rotate"]],[Ke,{direction:_t}],[te,{direction:_t},["swipe"]],[Se],[Se,{event:"doubletap",taps:2},["tap"]],[Ie]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},pt.prototype={set:function(we){return k(this.options,we),we.touchAction&&this.touchAction.update(),we.inputTarget&&(this.input.destroy(),this.input.target=we.inputTarget,this.input.init()),this},stop:function(we){this.session.stopped=we?2:1},recognize:function(we){var ke=this.session;if(!ke.stopped){this.touchAction.preventDefaults(we);var Ze,Ct=this.recognizers,Vt=ke.curRecognizer;(!Vt||Vt&&8&Vt.state)&&(Vt=ke.curRecognizer=null);for(var nn=0;nn<Ct.length;)Ze=Ct[nn],2===ke.stopped||Vt&&Ze!=Vt&&!Ze.canRecognizeWith(Vt)?Ze.reset():Ze.recognize(we),!Vt&&14&Ze.state&&(Vt=ke.curRecognizer=Ze),nn++}},get:function(we){if(we instanceof Ln)return we;for(var ke=this.recognizers,Ze=0;Ze<ke.length;Ze++)if(ke[Ze].options.event==we)return ke[Ze];return null},add:function(we){if(d(we,"add",this))return this;var ke=this.get(we.options.event);return ke&&this.remove(ke),this.recognizers.push(we),we.manager=this,this.touchAction.update(),we},remove:function(we){if(d(we,"remove",this))return this;if(we=this.get(we)){var ke=this.recognizers,Ze=ue(ke,we);-1!==Ze&&(ke.splice(Ze,1),this.touchAction.update())}return this},on:function(we,ke){if(we!==ie&&ke!==ie){var Ze=this.handlers;return C(fe(we),function(Ct){Ze[Ct]=Ze[Ct]||[],Ze[Ct].push(ke)}),this}},off:function(we,ke){if(we!==ie){var Ze=this.handlers;return C(fe(we),function(Ct){ke?Ze[Ct]&&Ze[Ct].splice(ue(Ze[Ct],ke),1):delete Ze[Ct]}),this}},emit:function(we,ke){this.options.domEvents&&function Kt(we,ke){var Ze=a.createEvent("Event");Ze.initEvent(we,!0,!0),Ze.gesture=ke,ke.target.dispatchEvent(Ze)}(we,ke);var Ze=this.handlers[we]&&this.handlers[we].slice();if(Ze&&Ze.length){ke.type=we,ke.preventDefault=function(){ke.srcEvent.preventDefault()};for(var Ct=0;Ct<Ze.length;)Ze[Ct](ke),Ct++}},destroy:function(){this.element&&kt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},k(Ue,{INPUT_START:se,INPUT_MOVE:2,INPUT_END:Fe,INPUT_CANCEL:Re,STATE_POSSIBLE:jn,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:je,DIRECTION_LEFT:at,DIRECTION_RIGHT:ft,DIRECTION_UP:Qe,DIRECTION_DOWN:nt,DIRECTION_HORIZONTAL:_t,DIRECTION_VERTICAL:Ge,DIRECTION_ALL:ht,Manager:pt,Input:At,TouchAction:Un,TouchInput:Mt,MouseInput:Mn,PointerEventInput:Jn,TouchMouseInput:An,SingleTouchInput:mt,Recognizer:Ln,AttrRecognizer:tt,Tap:Se,Pan:te,Swipe:Ke,Pinch:be,Rotate:Pe,Press:Ie,on:W,off:K,each:C,merge:I,extend:$,assign:k,inherit:g,bindFn:f,prefixed:de}),(typeof y<"u"?y:typeof self<"u"?self:{}).Hammer=Ue,(n=function(){return Ue}.call(L,o,L,He))!==ie&&(He.exports=n)}(window,document)},81210:He=>{He.exports=function y(a,Q,ie){function Z(D,x){if(!Q[D]){if(!a[D]){if(h)return h(D,!0);var z=new Error("Cannot find module '"+D+"'");throw z.code="MODULE_NOT_FOUND",z}var d=Q[D]={exports:{}};a[D][0].call(d.exports,function(C){return Z(a[D][1][C]||C)},d,d.exports,y,a,Q,ie)}return Q[D].exports}for(var h=void 0,w=0;w<ie.length;w++)Z(ie[w]);return Z}({1:[function(y,a,Q){(function(ie){"use strict";var h,Z=ie.MutationObserver||ie.WebKitMutationObserver;if(Z){var w=0,D=new Z(C),x=ie.document.createTextNode("");D.observe(x,{characterData:!0}),h=function(){x.data=w=++w%2}}else if(!ie.setImmediate&&typeof ie.MessageChannel<"u"){var E=new ie.MessageChannel;E.port1.onmessage=C,h=function(){E.port2.postMessage(0)}}else h="document"in ie&&"onreadystatechange"in ie.document.createElement("script")?function(){var k=ie.document.createElement("script");k.onreadystatechange=function(){C(),k.onreadystatechange=null,k.parentNode.removeChild(k),k=null},ie.document.documentElement.appendChild(k)}:function(){setTimeout(C,0)};var z,d=[];function C(){z=!0;for(var k,$,I=d.length;I;){for($=d,d=[],k=-1;++k<I;)$[k]();I=d.length}z=!1}a.exports=function P(k){1===d.push(k)&&!z&&h()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(y,a,Q){"use strict";var ie=y(1);function Z(){}var h={},w=["REJECTED"],D=["FULFILLED"],x=["PENDING"];function E(m){if("function"!=typeof m)throw new TypeError("resolver must be a function");this.state=x,this.queue=[],this.outcome=void 0,m!==Z&&P(this,m)}function z(m,T,W){this.promise=m,"function"==typeof T&&(this.onFulfilled=T,this.callFulfilled=this.otherCallFulfilled),"function"==typeof W&&(this.onRejected=W,this.callRejected=this.otherCallRejected)}function d(m,T,W){ie(function(){var K;try{K=T(W)}catch(re){return h.reject(m,re)}K===m?h.reject(m,new TypeError("Cannot resolve promise with itself")):h.resolve(m,K)})}function C(m){var T=m&&m.then;if(m&&("object"==typeof m||"function"==typeof m)&&"function"==typeof T)return function(){T.apply(m,arguments)}}function P(m,T){var W=!1;function K(ue){W||(W=!0,h.reject(m,ue))}function re(ue){W||(W=!0,h.resolve(m,ue))}var fe=k(function U(){T(re,K)});"error"===fe.status&&K(fe.value)}function k(m,T){var W={};try{W.value=m(T),W.status="success"}catch(K){W.status="error",W.value=K}return W}a.exports=E,E.prototype.catch=function(m){return this.then(null,m)},E.prototype.then=function(m,T){if("function"!=typeof m&&this.state===D||"function"!=typeof T&&this.state===w)return this;var W=new this.constructor(Z);return this.state!==x?d(W,this.state===D?m:T,this.outcome):this.queue.push(new z(W,m,T)),W},z.prototype.callFulfilled=function(m){h.resolve(this.promise,m)},z.prototype.otherCallFulfilled=function(m){d(this.promise,this.onFulfilled,m)},z.prototype.callRejected=function(m){h.reject(this.promise,m)},z.prototype.otherCallRejected=function(m){d(this.promise,this.onRejected,m)},h.resolve=function(m,T){var W=k(C,T);if("error"===W.status)return h.reject(m,W.value);var K=W.value;if(K)P(m,K);else{m.state=D,m.outcome=T;for(var re=-1,U=m.queue.length;++re<U;)m.queue[re].callFulfilled(T)}return m},h.reject=function(m,T){m.state=w,m.outcome=T;for(var W=-1,K=m.queue.length;++W<K;)m.queue[W].callRejected(T);return m},E.resolve=function $(m){return m instanceof this?m:h.resolve(new this(Z),m)},E.reject=function I(m){var T=new this(Z);return h.reject(T,m)},E.all=function g(m){var T=this;if("[object Array]"!==Object.prototype.toString.call(m))return this.reject(new TypeError("must be an array"));var W=m.length,K=!1;if(!W)return this.resolve([]);for(var re=new Array(W),U=0,fe=-1,ue=new this(Z);++fe<W;)pe(m[fe],fe);return ue;function pe(he,de){T.resolve(he).then(function _e(Ee){re[de]=Ee,++U===W&&!K&&(K=!0,h.resolve(ue,re))},function(Ee){K||(K=!0,h.reject(ue,Ee))})}},E.race=function f(m){var T=this;if("[object Array]"!==Object.prototype.toString.call(m))return this.reject(new TypeError("must be an array"));var W=m.length,K=!1;if(!W)return this.resolve([]);for(var re=-1,U=new this(Z);++re<W;)T.resolve(m[re]).then(function(pe){K||(K=!0,h.resolve(U,pe))},function(pe){K||(K=!0,h.reject(U,pe))});return U}},{1:1}],3:[function(y,a,Q){(function(ie){"use strict";"function"!=typeof ie.Promise&&(ie.Promise=y(2))}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(y,a,Q){"use strict";var ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Le){return typeof Le}:function(Le){return Le&&"function"==typeof Symbol&&Le.constructor===Symbol&&Le!==Symbol.prototype?"symbol":typeof Le};var w=function h(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}();function x(Le,tt){Le=Le||[],tt=tt||{};try{return new Blob(Le,tt)}catch(Pe){if("TypeError"!==Pe.name)throw Pe;for(var be=new(typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder),Ie=0;Ie<Le.length;Ie+=1)be.append(Le[Ie]);return be.getBlob(tt.type)}}typeof Promise>"u"&&y(3);var E=Promise;function z(Le,tt){tt&&Le.then(function(te){tt(null,te)},function(te){tt(te)})}function d(Le,tt,te){"function"==typeof tt&&Le.then(tt),"function"==typeof te&&Le.catch(te)}function C(Le){return"string"!=typeof Le&&(console.warn(Le+" used as a key, but it is not a string."),Le=String(Le)),Le}function P(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var k="local-forage-detect-blob-support",$=void 0,I={},g=Object.prototype.toString,f="readonly",m="readwrite";function T(Le){for(var tt=Le.length,te=new ArrayBuffer(tt),be=new Uint8Array(te),Ie=0;Ie<tt;Ie++)be[Ie]=Le.charCodeAt(Ie);return te}function K(Le){return"boolean"==typeof $?E.resolve($):function W(Le){return new E(function(tt){var te=Le.transaction(k,m),be=x([""]);te.objectStore(k).put(be,"key"),te.onabort=function(Ie){Ie.preventDefault(),Ie.stopPropagation(),tt(!1)},te.oncomplete=function(){var Ie=navigator.userAgent.match(/Chrome\/(\d+)/),Pe=navigator.userAgent.match(/Edge\//);tt(Pe||!Ie||parseInt(Ie[1],10)>=43)}}).catch(function(){return!1})}(Le).then(function(tt){return $=tt})}function re(Le){var tt=I[Le.name],te={};te.promise=new E(function(be,Ie){te.resolve=be,te.reject=Ie}),tt.deferredOperations.push(te),tt.dbReady=tt.dbReady?tt.dbReady.then(function(){return te.promise}):te.promise}function U(Le){var te=I[Le.name].deferredOperations.pop();if(te)return te.resolve(),te.promise}function fe(Le,tt){var be=I[Le.name].deferredOperations.pop();if(be)return be.reject(tt),be.promise}function ue(Le,tt){return new E(function(te,be){if(I[Le.name]=I[Le.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},Le.db){if(!tt)return te(Le.db);re(Le),Le.db.close()}var Ie=[Le.name];tt&&Ie.push(Le.version);var Pe=w.open.apply(w,Ie);tt&&(Pe.onupgradeneeded=function(Ke){var Se=Pe.result;try{Se.createObjectStore(Le.storeName),Ke.oldVersion<=1&&Se.createObjectStore(k)}catch(Ue){if("ConstraintError"!==Ue.name)throw Ue;console.warn('The database "'+Le.name+'" has been upgraded from version '+Ke.oldVersion+" to version "+Ke.newVersion+', but the storage "'+Le.storeName+'" already exists.')}}),Pe.onerror=function(Ke){Ke.preventDefault(),be(Pe.error)},Pe.onsuccess=function(){var Ke=Pe.result;Ke.onversionchange=function(Se){Se.target.close()},te(Ke),U(Le)}})}function pe(Le){return ue(Le,!1)}function he(Le){return ue(Le,!0)}function de(Le,tt){if(!Le.db)return!0;var te=!Le.db.objectStoreNames.contains(Le.storeName),Ie=Le.version>Le.db.version;if(Le.version<Le.db.version&&(Le.version!==tt&&console.warn('The database "'+Le.name+"\" can't be downgraded from version "+Le.db.version+" to version "+Le.version+"."),Le.version=Le.db.version),Ie||te){if(te){var Pe=Le.db.version+1;Pe>Le.version&&(Le.version=Pe)}return!0}return!1}function Ee(Le){return x([T(atob(Le.data))],{type:Le.type})}function Ne(Le){return Le&&Le.__local_forage_encoded_blob}function ge(Le){var tt=this,te=tt._initReady().then(function(){var be=I[tt._dbInfo.name];if(be&&be.dbReady)return be.dbReady});return d(te,Le,Le),te}function u(Le,tt,te,be){void 0===be&&(be=1);try{var Ie=Le.db.transaction(Le.storeName,tt);te(null,Ie)}catch(Pe){if(be>0&&(!Le.db||"InvalidStateError"===Pe.name||"NotFoundError"===Pe.name))return E.resolve().then(function(){if(!Le.db||"NotFoundError"===Pe.name&&!Le.db.objectStoreNames.contains(Le.storeName)&&Le.version<=Le.db.version)return Le.db&&(Le.version=Le.db.version+1),he(Le)}).then(function(){return function q(Le){re(Le);for(var tt=I[Le.name],te=tt.forages,be=0;be<te.length;be++){var Ie=te[be];Ie._dbInfo.db&&(Ie._dbInfo.db.close(),Ie._dbInfo.db=null)}return Le.db=null,pe(Le).then(function(Pe){return Le.db=Pe,de(Le)?he(Le):Pe}).then(function(Pe){Le.db=tt.db=Pe;for(var Ke=0;Ke<te.length;Ke++)te[Ke]._dbInfo.db=Pe}).catch(function(Pe){throw fe(Le,Pe),Pe})}(Le).then(function(){u(Le,tt,te,be-1)})}).catch(te);te(Pe)}}var at={_driver:"asyncStorage",_initStorage:function N(Le){var tt=this,te={db:null};if(Le)for(var be in Le)te[be]=Le[be];var Ie=I[te.name];Ie||(I[te.name]=Ie={forages:[],db:null,dbReady:null,deferredOperations:[]}),Ie.forages.push(tt),tt._initReady||(tt._initReady=tt.ready,tt.ready=ge);var Pe=[];function Ke(){return E.resolve()}for(var Se=0;Se<Ie.forages.length;Se++){var Ue=Ie.forages[Se];Ue!==tt&&Pe.push(Ue._initReady().catch(Ke))}var Xe=Ie.forages.slice(0);return E.all(Pe).then(function(){return te.db=Ie.db,pe(te)}).then(function(lt){return te.db=lt,de(te,tt._defaultConfig.version)?he(te):lt}).then(function(lt){te.db=Ie.db=lt,tt._dbInfo=te;for(var pt=0;pt<Xe.length;pt++){var kt=Xe[pt];kt!==tt&&(kt._dbInfo.db=te.db,kt._dbInfo.version=te.version)}})},_support:function D(){try{if(!w||!w.open)return!1;var Le=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),tt="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!Le||tt)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}(),iterate:function R(Le,tt){var te=this,be=new E(function(Ie,Pe){te.ready().then(function(){u(te._dbInfo,f,function(Ke,Se){if(Ke)return Pe(Ke);try{var Xe=Se.objectStore(te._dbInfo.storeName).openCursor(),lt=1;Xe.onsuccess=function(){var pt=Xe.result;if(pt){var kt=pt.value;Ne(kt)&&(kt=Ee(kt));var Kt=Le(kt,pt.key,lt++);void 0!==Kt?Ie(Kt):pt.continue()}else Ie()},Xe.onerror=function(){Pe(Xe.error)}}catch(pt){Pe(pt)}})}).catch(Pe)});return z(be,tt),be},getItem:function G(Le,tt){var te=this;Le=C(Le);var be=new E(function(Ie,Pe){te.ready().then(function(){u(te._dbInfo,f,function(Ke,Se){if(Ke)return Pe(Ke);try{var Xe=Se.objectStore(te._dbInfo.storeName).get(Le);Xe.onsuccess=function(){var lt=Xe.result;void 0===lt&&(lt=null),Ne(lt)&&(lt=Ee(lt)),Ie(lt)},Xe.onerror=function(){Pe(Xe.error)}}catch(lt){Pe(lt)}})}).catch(Pe)});return z(be,tt),be},setItem:function ne(Le,tt,te){var be=this;Le=C(Le);var Ie=new E(function(Pe,Ke){var Se;be.ready().then(function(){return Se=be._dbInfo,"[object Blob]"===g.call(tt)?K(Se.db).then(function(Ue){return Ue?tt:function _e(Le){return new E(function(tt,te){var be=new FileReader;be.onerror=te,be.onloadend=function(Ie){var Pe=btoa(Ie.target.result||"");tt({__local_forage_encoded_blob:!0,data:Pe,type:Le.type})},be.readAsBinaryString(Le)})}(tt)}):tt}).then(function(Ue){u(be._dbInfo,m,function(Xe,lt){if(Xe)return Ke(Xe);try{var pt=lt.objectStore(be._dbInfo.storeName);null===Ue&&(Ue=void 0);var kt=pt.put(Ue,Le);lt.oncomplete=function(){void 0===Ue&&(Ue=null),Pe(Ue)},lt.onabort=lt.onerror=function(){Ke(kt.error?kt.error:kt.transaction.error)}}catch(Kt){Ke(Kt)}})}).catch(Ke)});return z(Ie,te),Ie},removeItem:function S(Le,tt){var te=this;Le=C(Le);var be=new E(function(Ie,Pe){te.ready().then(function(){u(te._dbInfo,m,function(Ke,Se){if(Ke)return Pe(Ke);try{var Xe=Se.objectStore(te._dbInfo.storeName).delete(Le);Se.oncomplete=function(){Ie()},Se.onerror=function(){Pe(Xe.error)},Se.onabort=function(){Pe(Xe.error?Xe.error:Xe.transaction.error)}}catch(lt){Pe(lt)}})}).catch(Pe)});return z(be,tt),be},clear:function se(Le){var tt=this,te=new E(function(be,Ie){tt.ready().then(function(){u(tt._dbInfo,m,function(Pe,Ke){if(Pe)return Ie(Pe);try{var Ue=Ke.objectStore(tt._dbInfo.storeName).clear();Ke.oncomplete=function(){be()},Ke.onabort=Ke.onerror=function(){Ie(Ue.error?Ue.error:Ue.transaction.error)}}catch(Xe){Ie(Xe)}})}).catch(Ie)});return z(te,Le),te},length:function Me(Le){var tt=this,te=new E(function(be,Ie){tt.ready().then(function(){u(tt._dbInfo,f,function(Pe,Ke){if(Pe)return Ie(Pe);try{var Ue=Ke.objectStore(tt._dbInfo.storeName).count();Ue.onsuccess=function(){be(Ue.result)},Ue.onerror=function(){Ie(Ue.error)}}catch(Xe){Ie(Xe)}})}).catch(Ie)});return z(te,Le),te},key:function Fe(Le,tt){var te=this,be=new E(function(Ie,Pe){Le<0?Ie(null):te.ready().then(function(){u(te._dbInfo,f,function(Ke,Se){if(Ke)return Pe(Ke);try{var Ue=Se.objectStore(te._dbInfo.storeName),Xe=!1,lt=Ue.openKeyCursor();lt.onsuccess=function(){var pt=lt.result;pt?0===Le||Xe?Ie(pt.key):(Xe=!0,pt.advance(Le)):Ie(null)},lt.onerror=function(){Pe(lt.error)}}catch(pt){Pe(pt)}})}).catch(Pe)});return z(be,tt),be},keys:function Re(Le){var tt=this,te=new E(function(be,Ie){tt.ready().then(function(){u(tt._dbInfo,f,function(Pe,Ke){if(Pe)return Ie(Pe);try{var Ue=Ke.objectStore(tt._dbInfo.storeName).openKeyCursor(),Xe=[];Ue.onsuccess=function(){var lt=Ue.result;lt?(Xe.push(lt.key),lt.continue()):be(Xe)},Ue.onerror=function(){Ie(Ue.error)}}catch(lt){Ie(lt)}})}).catch(Ie)});return z(te,Le),te},dropInstance:function je(Le,tt){tt=P.apply(this,arguments);var Ie,te=this.config();return(Le="function"!=typeof Le&&Le||{}).name||(Le.name=Le.name||te.name,Le.storeName=Le.storeName||te.storeName),z(Ie=Le.name?(Le.name===te.name&&this._dbInfo.db?E.resolve(this._dbInfo.db):pe(Le).then(function(Se){var Ue=I[Le.name],Xe=Ue.forages;Ue.db=Se;for(var lt=0;lt<Xe.length;lt++)Xe[lt]._dbInfo.db=Se;return Se})).then(Le.storeName?function(Se){if(Se.objectStoreNames.contains(Le.storeName)){var Ue=Se.version+1;re(Le);var Xe=I[Le.name],lt=Xe.forages;Se.close();for(var pt=0;pt<lt.length;pt++){var kt=lt[pt];kt._dbInfo.db=null,kt._dbInfo.version=Ue}return new E(function(Zt,we){var ke=w.open(Le.name,Ue);ke.onerror=function(Ze){ke.result.close(),we(Ze)},ke.onupgradeneeded=function(){ke.result.deleteObjectStore(Le.storeName)},ke.onsuccess=function(){var Ze=ke.result;Ze.close(),Zt(Ze)}}).then(function(Zt){Xe.db=Zt;for(var we=0;we<lt.length;we++){var ke=lt[we];ke._dbInfo.db=Zt,U(ke._dbInfo)}}).catch(function(Zt){throw(fe(Le,Zt)||E.resolve()).catch(function(){}),Zt})}}:function(Se){re(Le);var Ue=I[Le.name],Xe=Ue.forages;Se.close();for(var lt=0;lt<Xe.length;lt++)Xe[lt]._dbInfo.db=null;return new E(function(Kt,Zt){var we=w.deleteDatabase(Le.name);we.onerror=function(){var ke=we.result;ke&&ke.close(),Zt(we.error)},we.onblocked=function(){console.warn('dropInstance blocked for database "'+Le.name+'" until all open connections are closed')},we.onsuccess=function(){var ke=we.result;ke&&ke.close(),Kt(ke)}}).then(function(Kt){Ue.db=Kt;for(var Zt=0;Zt<Xe.length;Zt++)U(Xe[Zt]._dbInfo)}).catch(function(Kt){throw(fe(Le,Kt)||E.resolve()).catch(function(){}),Kt})}):E.reject("Invalid arguments"),tt),Ie}};var Qe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_t=/^~~local_forage_type~([^~]+)~/,Ge="__lfsc__:",It="arbf",Rt="blob",Be=Object.prototype.toString;function Je(Le){var be,Pe,Ke,Se,Ue,tt=.75*Le.length,te=Le.length,Ie=0;"="===Le[Le.length-1]&&(tt--,"="===Le[Le.length-2]&&tt--);var Xe=new ArrayBuffer(tt),lt=new Uint8Array(Xe);for(be=0;be<te;be+=4)Pe=Qe.indexOf(Le[be]),Ke=Qe.indexOf(Le[be+1]),Se=Qe.indexOf(Le[be+2]),Ue=Qe.indexOf(Le[be+3]),lt[Ie++]=Pe<<2|Ke>>4,lt[Ie++]=(15&Ke)<<4|Se>>2,lt[Ie++]=(3&Se)<<6|63&Ue;return Xe}function wt(Le){var be,tt=new Uint8Array(Le),te="";for(be=0;be<tt.length;be+=3)te+=Qe[tt[be]>>2],te+=Qe[(3&tt[be])<<4|tt[be+1]>>4],te+=Qe[(15&tt[be+1])<<2|tt[be+2]>>6],te+=Qe[63&tt[be+2]];return tt.length%3==2?te=te.substring(0,te.length-1)+"=":tt.length%3==1&&(te=te.substring(0,te.length-2)+"=="),te}var pn={serialize:function Jt(Le,tt){var te="";if(Le&&(te=Be.call(Le)),Le&&("[object ArrayBuffer]"===te||Le.buffer&&"[object ArrayBuffer]"===Be.call(Le.buffer))){var be,Ie=Ge;Le instanceof ArrayBuffer?(be=Le,Ie+=It):(be=Le.buffer,"[object Int8Array]"===te?Ie+="si08":"[object Uint8Array]"===te?Ie+="ui08":"[object Uint8ClampedArray]"===te?Ie+="uic8":"[object Int16Array]"===te?Ie+="si16":"[object Uint16Array]"===te?Ie+="ur16":"[object Int32Array]"===te?Ie+="si32":"[object Uint32Array]"===te?Ie+="ui32":"[object Float32Array]"===te?Ie+="fl32":"[object Float64Array]"===te?Ie+="fl64":tt(new Error("Failed to get type for BinaryArray"))),tt(Ie+wt(be))}else if("[object Blob]"===te){var Pe=new FileReader;Pe.onload=function(){var Ke="~~local_forage_type~"+Le.type+"~"+wt(this.result);tt(Ge+Rt+Ke)},Pe.readAsArrayBuffer(Le)}else try{tt(JSON.stringify(Le))}catch(Ke){console.error("Couldn't convert value into a JSON string: ",Le),tt(null,Ke)}},deserialize:function ln(Le){if(Le.substring(0,9)!==Ge)return JSON.parse(Le);var be,tt=Le.substring(13),te=Le.substring(9,13);if(te===Rt&&_t.test(tt)){var Ie=tt.match(_t);be=Ie[1],tt=tt.substring(Ie[0].length)}var Pe=Je(tt);switch(te){case It:return Pe;case Rt:return x([Pe],{type:be});case"si08":return new Int8Array(Pe);case"ui08":return new Uint8Array(Pe);case"uic8":return new Uint8ClampedArray(Pe);case"si16":return new Int16Array(Pe);case"ur16":return new Uint16Array(Pe);case"si32":return new Int32Array(Pe);case"ui32":return new Uint32Array(Pe);case"fl32":return new Float32Array(Pe);case"fl64":return new Float64Array(Pe);default:throw new Error("Unkown type: "+te)}},stringToBuffer:Je,bufferToString:wt};function kn(Le,tt,te,be){Le.executeSql("CREATE TABLE IF NOT EXISTS "+tt.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],te,be)}function wn(Le,tt,te,be,Ie,Pe){Le.executeSql(te,be,Ie,function(Ke,Se){Se.code===Se.SYNTAX_ERR?Ke.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[tt.storeName],function(Ue,Xe){Xe.rows.length?Pe(Ue,Se):kn(Ue,tt,function(){Ue.executeSql(te,be,Ie,Pe)},Pe)},Pe):Pe(Ke,Se)},Pe)}function Yn(Le,tt,te,be){var Ie=this;Le=C(Le);var Pe=new E(function(Ke,Se){Ie.ready().then(function(){void 0===tt&&(tt=null);var Ue=tt,Xe=Ie._dbInfo;Xe.serializer.serialize(tt,function(lt,pt){pt?Se(pt):Xe.db.transaction(function(kt){wn(kt,Xe,"INSERT OR REPLACE INTO "+Xe.storeName+" (key, value) VALUES (?, ?)",[Le,lt],function(){Ke(Ue)},function(Kt,Zt){Se(Zt)})},function(kt){if(kt.code===kt.QUOTA_ERR){if(be>0)return void Ke(Yn.apply(Ie,[Le,Ue,te,be-1]));Se(kt)}})})}).catch(Se)});return z(Pe,te),Pe}var Mt={_driver:"webSQLStorage",_initStorage:function Mn(Le){var tt=this,te={db:null};if(Le)for(var be in Le)te[be]="string"!=typeof Le[be]?Le[be].toString():Le[be];var Ie=new E(function(Pe,Ke){try{te.db=openDatabase(te.name,String(te.version),te.description,te.size)}catch(Se){return Ke(Se)}te.db.transaction(function(Se){kn(Se,te,function(){tt._dbInfo=te,Pe()},function(Ue,Xe){Ke(Xe)})},Ke)});return te.serializer=pn,Ie},_support:function ft(){return"function"==typeof openDatabase}(),iterate:function Zn(Le,tt){var te=this,be=new E(function(Ie,Pe){te.ready().then(function(){var Ke=te._dbInfo;Ke.db.transaction(function(Se){wn(Se,Ke,"SELECT * FROM "+Ke.storeName,[],function(Ue,Xe){for(var lt=Xe.rows,pt=lt.length,kt=0;kt<pt;kt++){var Kt=lt.item(kt),Zt=Kt.value;if(Zt&&(Zt=Ke.serializer.deserialize(Zt)),void 0!==(Zt=Le(Zt,Kt.key,kt+1)))return void Ie(Zt)}Ie()},function(Ue,Xe){Pe(Xe)})})}).catch(Pe)});return z(be,tt),be},getItem:function Bn(Le,tt){var te=this;Le=C(Le);var be=new E(function(Ie,Pe){te.ready().then(function(){var Ke=te._dbInfo;Ke.db.transaction(function(Se){wn(Se,Ke,"SELECT * FROM "+Ke.storeName+" WHERE key = ? LIMIT 1",[Le],function(Ue,Xe){var lt=Xe.rows.length?Xe.rows.item(0).value:null;lt&&(lt=Ke.serializer.deserialize(lt)),Ie(lt)},function(Ue,Xe){Pe(Xe)})})}).catch(Pe)});return z(be,tt),be},setItem:function Jn(Le,tt,te){return Yn.apply(this,[Le,tt,te,1])},removeItem:function In(Le,tt){var te=this;Le=C(Le);var be=new E(function(Ie,Pe){te.ready().then(function(){var Ke=te._dbInfo;Ke.db.transaction(function(Se){wn(Se,Ke,"DELETE FROM "+Ke.storeName+" WHERE key = ?",[Le],function(){Ie()},function(Ue,Xe){Pe(Xe)})})}).catch(Pe)});return z(be,tt),be},clear:function ii(Le){var tt=this,te=new E(function(be,Ie){tt.ready().then(function(){var Pe=tt._dbInfo;Pe.db.transaction(function(Ke){wn(Ke,Pe,"DELETE FROM "+Pe.storeName,[],function(){be()},function(Se,Ue){Ie(Ue)})})}).catch(Ie)});return z(te,Le),te},length:function yi(Le){var tt=this,te=new E(function(be,Ie){tt.ready().then(function(){var Pe=tt._dbInfo;Pe.db.transaction(function(Ke){wn(Ke,Pe,"SELECT COUNT(key) as c FROM "+Pe.storeName,[],function(Se,Ue){var Xe=Ue.rows.item(0).c;be(Xe)},function(Se,Ue){Ie(Ue)})})}).catch(Ie)});return z(te,Le),te},key:function mt(Le,tt){var te=this,be=new E(function(Ie,Pe){te.ready().then(function(){var Ke=te._dbInfo;Ke.db.transaction(function(Se){wn(Se,Ke,"SELECT key FROM "+Ke.storeName+" WHERE id = ? LIMIT 1",[Le+1],function(Ue,Xe){var lt=Xe.rows.length?Xe.rows.item(0).key:null;Ie(lt)},function(Ue,Xe){Pe(Xe)})})}).catch(Pe)});return z(be,tt),be},keys:function yt(Le){var tt=this,te=new E(function(be,Ie){tt.ready().then(function(){var Pe=tt._dbInfo;Pe.db.transaction(function(Ke){wn(Ke,Pe,"SELECT key FROM "+Pe.storeName,[],function(Se,Ue){for(var Xe=[],lt=0;lt<Ue.rows.length;lt++)Xe.push(Ue.rows.item(lt).key);be(Xe)},function(Se,Ue){Ie(Ue)})})}).catch(Ie)});return z(te,Le),te},dropInstance:function et(Le,tt){tt=P.apply(this,arguments);var te=this.config();(Le="function"!=typeof Le&&Le||{}).name||(Le.name=Le.name||te.name,Le.storeName=Le.storeName||te.storeName);var Ie,be=this;return z(Ie=Le.name?new E(function(Pe){var Ke;Ke=Le.name===te.name?be._dbInfo.db:openDatabase(Le.name,"","",0),Pe(Le.storeName?{db:Ke,storeNames:[Le.storeName]}:function We(Le){return new E(function(tt,te){Le.transaction(function(be){be.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(Ie,Pe){for(var Ke=[],Se=0;Se<Pe.rows.length;Se++)Ke.push(Pe.rows.item(Se).name);tt({db:Le,storeNames:Ke})},function(Ie,Pe){te(Pe)})},function(be){te(be)})})}(Ke))}).then(function(Pe){return new E(function(Ke,Se){Pe.db.transaction(function(Ue){function Xe(Kt){return new E(function(Zt,we){Ue.executeSql("DROP TABLE IF EXISTS "+Kt,[],function(){Zt()},function(ke,Ze){we(Ze)})})}for(var lt=[],pt=0,kt=Pe.storeNames.length;pt<kt;pt++)lt.push(Xe(Pe.storeNames[pt]));E.all(lt).then(function(){Ke()}).catch(function(Kt){Se(Kt)})},function(Ue){Se(Ue)})})}):E.reject("Invalid arguments"),tt),Ie}};function sn(Le,tt){var te=Le.name+"/";return Le.storeName!==tt.storeName&&(te+=Le.storeName+"/"),te}function An(){return!function un(){var Le="_localforage_support_test";try{return localStorage.setItem(Le,!0),localStorage.removeItem(Le),!1}catch{return!0}}()||localStorage.length>0}var Sn={_driver:"localStorageWrapper",_initStorage:function dn(Le){var te={};if(Le)for(var be in Le)te[be]=Le[be];return te.keyPrefix=sn(Le,this._defaultConfig),An()?(this._dbInfo=te,te.serializer=pn,E.resolve()):E.reject()},_support:function zt(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}(),iterate:function gt(Le,tt){var te=this,be=te.ready().then(function(){for(var Ie=te._dbInfo,Pe=Ie.keyPrefix,Ke=Pe.length,Se=localStorage.length,Ue=1,Xe=0;Xe<Se;Xe++){var lt=localStorage.key(Xe);if(0===lt.indexOf(Pe)){var pt=localStorage.getItem(lt);if(pt&&(pt=Ie.serializer.deserialize(pt)),void 0!==(pt=Le(pt,lt.substring(Ke),Ue++)))return pt}}});return z(be,tt),be},getItem:function si(Le,tt){var te=this;Le=C(Le);var be=te.ready().then(function(){var Ie=te._dbInfo,Pe=localStorage.getItem(Ie.keyPrefix+Le);return Pe&&(Pe=Ie.serializer.deserialize(Pe)),Pe});return z(be,tt),be},setItem:function Xt(Le,tt,te){var be=this;Le=C(Le);var Ie=be.ready().then(function(){void 0===tt&&(tt=null);var Pe=tt;return new E(function(Ke,Se){var Ue=be._dbInfo;Ue.serializer.serialize(tt,function(Xe,lt){if(lt)Se(lt);else try{localStorage.setItem(Ue.keyPrefix+Le,Xe),Ke(Pe)}catch(pt){("QuotaExceededError"===pt.name||"NS_ERROR_DOM_QUOTA_REACHED"===pt.name)&&Se(pt),Se(pt)}})})});return z(Ie,te),Ie},removeItem:function Ot(Le,tt){var te=this;Le=C(Le);var be=te.ready().then(function(){localStorage.removeItem(te._dbInfo.keyPrefix+Le)});return z(be,tt),be},clear:function ri(Le){var tt=this,te=tt.ready().then(function(){for(var be=tt._dbInfo.keyPrefix,Ie=localStorage.length-1;Ie>=0;Ie--){var Pe=localStorage.key(Ie);0===Pe.indexOf(be)&&localStorage.removeItem(Pe)}});return z(te,Le),te},length:function Lt(Le){var te=this.keys().then(function(be){return be.length});return z(te,Le),te},key:function ot(Le,tt){var te=this,be=te.ready().then(function(){var Pe,Ie=te._dbInfo;try{Pe=localStorage.key(Le)}catch{Pe=null}return Pe&&(Pe=Pe.substring(Ie.keyPrefix.length)),Pe});return z(be,tt),be},keys:function ut(Le){var tt=this,te=tt.ready().then(function(){for(var be=tt._dbInfo,Ie=localStorage.length,Pe=[],Ke=0;Ke<Ie;Ke++){var Se=localStorage.key(Ke);0===Se.indexOf(be.keyPrefix)&&Pe.push(Se.substring(be.keyPrefix.length))}return Pe});return z(te,Le),te},dropInstance:function jt(Le,tt){if(tt=P.apply(this,arguments),!(Le="function"!=typeof Le&&Le||{}).name){var te=this.config();Le.name=Le.name||te.name,Le.storeName=Le.storeName||te.storeName}var Ie,be=this;return z(Ie=Le.name?new E(function(Pe){Pe(Le.storeName?sn(Le,be._defaultConfig):Le.name+"/")}).then(function(Pe){for(var Ke=localStorage.length-1;Ke>=0;Ke--){var Se=localStorage.key(Ke);0===Se.indexOf(Pe)&&localStorage.removeItem(Se)}}):E.reject("Invalid arguments"),tt),Ie}},qt=function(tt,te){return tt===te||"number"==typeof tt&&"number"==typeof te&&isNaN(tt)&&isNaN(te)},Un=function(tt,te){for(var be=tt.length,Ie=0;Ie<be;){if(qt(tt[Ie],te))return!0;Ie++}return!1},ti=Array.isArray||function(Le){return"[object Array]"===Object.prototype.toString.call(Le)},qn={},jn={},xn={INDEXEDDB:at,WEBSQL:Mt,LOCALSTORAGE:Sn},Qn=[xn.INDEXEDDB._driver,xn.WEBSQL._driver,xn.LOCALSTORAGE._driver],bn=["dropInstance"],_n=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(bn),Ci={description:"",driver:Qn.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function fi(Le,tt){Le[tt]=function(){var te=arguments;return Le.ready().then(function(){return Le[tt].apply(Le,te)})}}function Ln(){for(var Le=1;Le<arguments.length;Le++){var tt=arguments[Le];if(tt)for(var te in tt)tt.hasOwnProperty(te)&&(arguments[0][te]=ti(tt[te])?tt[te].slice():tt[te])}return arguments[0]}var Xn=function(){function Le(tt){for(var te in function Z(Le,tt){if(!(Le instanceof tt))throw new TypeError("Cannot call a class as a function")}(this,Le),xn)if(xn.hasOwnProperty(te)){var be=xn[te],Ie=be._driver;this[te]=Ie,qn[Ie]||this.defineDriver(be)}this._defaultConfig=Ln({},Ci),this._config=Ln({},this._defaultConfig,tt),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return Le.prototype.config=function(te){if("object"===(typeof te>"u"?"undefined":ie(te))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var be in te){if("storeName"===be&&(te[be]=te[be].replace(/\W/g,"_")),"version"===be&&"number"!=typeof te[be])return new Error("Database version must be a number.");this._config[be]=te[be]}return!("driver"in te)||!te.driver||this.setDriver(this._config.driver)}return"string"==typeof te?this._config[te]:this._config},Le.prototype.defineDriver=function(te,be,Ie){var Pe=new E(function(Ke,Se){try{var Ue=te._driver,Xe=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!te._driver)return void Se(Xe);for(var lt=_n.concat("_initStorage"),pt=0,kt=lt.length;pt<kt;pt++){var Kt=lt[pt];if((!Un(bn,Kt)||te[Kt])&&"function"!=typeof te[Kt])return void Se(Xe)}!function(){for(var Ct=function(ai){return function(){var _i=new Error("Method "+ai+" is not implemented by the current driver"),fn=E.reject(_i);return z(fn,arguments[arguments.length-1]),fn}},Vt=0,nn=bn.length;Vt<nn;Vt++){var hn=bn[Vt];te[hn]||(te[hn]=Ct(hn))}}();var ke=function(Ct){qn[Ue]&&console.info("Redefining LocalForage driver: "+Ue),qn[Ue]=te,jn[Ue]=Ct,Ke()};"_support"in te?te._support&&"function"==typeof te._support?te._support().then(ke,Se):ke(!!te._support):ke(!0)}catch(Ze){Se(Ze)}});return d(Pe,be,Ie),Pe},Le.prototype.driver=function(){return this._driver||null},Le.prototype.getDriver=function(te,be,Ie){var Pe=qn[te]?E.resolve(qn[te]):E.reject(new Error("Driver not found."));return d(Pe,be,Ie),Pe},Le.prototype.getSerializer=function(te){var be=E.resolve(pn);return d(be,te),be},Le.prototype.ready=function(te){var be=this,Ie=be._driverSet.then(function(){return null===be._ready&&(be._ready=be._initDriver()),be._ready});return d(Ie,te,te),Ie},Le.prototype.setDriver=function(te,be,Ie){var Pe=this;ti(te)||(te=[te]);var Ke=this._getSupportedDrivers(te);function Se(){Pe._config.driver=Pe.driver()}function Ue(pt){return Pe._extend(pt),Se(),Pe._ready=Pe._initStorage(Pe._config),Pe._ready}var lt=null!==this._driverSet?this._driverSet.catch(function(){return E.resolve()}):E.resolve();return this._driverSet=lt.then(function(){var pt=Ke[0];return Pe._dbInfo=null,Pe._ready=null,Pe.getDriver(pt).then(function(kt){Pe._driver=kt._driver,Se(),Pe._wrapLibraryMethodsWithReady(),Pe._initDriver=function Xe(pt){return function(){var kt=0;return function Kt(){for(;kt<pt.length;){var Zt=pt[kt];return kt++,Pe._dbInfo=null,Pe._ready=null,Pe.getDriver(Zt).then(Ue).catch(Kt)}Se();var we=new Error("No available storage method found.");return Pe._driverSet=E.reject(we),Pe._driverSet}()}}(Ke)})}).catch(function(){Se();var pt=new Error("No available storage method found.");return Pe._driverSet=E.reject(pt),Pe._driverSet}),d(this._driverSet,be,Ie),this._driverSet},Le.prototype.supports=function(te){return!!jn[te]},Le.prototype._extend=function(te){Ln(this,te)},Le.prototype._getSupportedDrivers=function(te){for(var be=[],Ie=0,Pe=te.length;Ie<Pe;Ie++){var Ke=te[Ie];this.supports(Ke)&&be.push(Ke)}return be},Le.prototype._wrapLibraryMethodsWithReady=function(){for(var te=0,be=_n.length;te<be;te++)fi(this,_n[te])},Le.prototype.createInstance=function(te){return new Le(te)},Le}(),oi=new Xn;a.exports=oi},{3:3}]},{},[4])(4)},45481:function(module,__unused_webpack_exports,__webpack_require__){var _asyncToGenerator=__webpack_require__(24510).default,o;o=()=>(()=>{"use strict";var __webpack_modules__=[,(He,L,o)=>{Object.defineProperty(L,"__esModule",{value:!0}),L.VerbosityLevel=L.Util=L.UnknownErrorException=L.UnexpectedResponseException=L.UNSUPPORTED_FEATURES=L.TextRenderingMode=L.StreamType=L.RenderingIntentFlag=L.PermissionFlag=L.PasswordResponses=L.PasswordException=L.PageActionEventType=L.OPS=L.MissingPDFException=L.InvalidPDFException=L.ImageKind=L.IDENTITY_MATRIX=L.FormatError=L.FontType=L.FeatureTest=L.FONT_IDENTITY_MATRIX=L.DocumentActionEventType=L.CMapCompressionType=L.BaseException=L.AnnotationType=L.AnnotationStateModelType=L.AnnotationReviewState=L.AnnotationReplyType=L.AnnotationMode=L.AnnotationMarkedState=L.AnnotationFlag=L.AnnotationFieldFlag=L.AnnotationBorderStyleType=L.AnnotationActionEventType=L.AbortException=void 0,L.arrayByteLength=Fe,L.arraysToBytes=function Re(ct){const Be=ct.length;if(1===Be&&ct[0]instanceof Uint8Array)return ct[0];let Je=0;for(let ln=0;ln<Be;ln++)Je+=Fe(ct[ln]);let wt=0;const Jt=new Uint8Array(Je);for(let ln=0;ln<Be;ln++){let pn=ct[ln];pn instanceof Uint8Array||(pn="string"==typeof pn?Me(pn):new Uint8Array(pn));const kn=pn.byteLength;Jt.set(pn,wt),wt+=kn}return Jt},L.assert=function _e(ct,Be){ct||de(Be)},L.bytesToString=function se(ct){("object"!=typeof ct||null===ct||void 0===ct.length)&&de("Invalid argument for bytesToString");const Be=ct.length;if(Be<8192)return String.fromCharCode.apply(null,ct);const wt=[];for(let Jt=0;Jt<Be;Jt+=8192){const ln=Math.min(Jt+8192,Be),pn=ct.subarray(Jt,ln);wt.push(String.fromCharCode.apply(null,pn))}return wt.join("")},L.createPromiseCapability=function $t(){const ct=Object.create(null);let Be=!1;return Object.defineProperty(ct,"settled",{get:()=>Be}),ct.promise=new Promise(function(Je,wt){ct.resolve=function(Jt){Be=!0,Je(Jt)},ct.reject=function(Jt){Be=!0,wt(Jt)}}),ct},L.createValidAbsoluteUrl=function Ne(ct,Be=null,Je=null){if(!ct)return null;try{if(Je&&"string"==typeof ct){if(Je.addDefaultProtocol&&ct.startsWith("www.")){const Jt=ct.match(/\./g);Jt&&Jt.length>=2&&(ct=`http://${ct}`)}if(Je.tryConvertEncoding)try{ct=it(ct)}catch{}}const wt=Be?new URL(ct,Be):new URL(ct);if(function Ee(ct){if(!ct)return!1;switch(ct.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(wt))return wt}catch{}return null},L.escapeString=function At(ct){return ct.replace(/([()\\\n\r])/g,Be=>"\n"===Be?"\\n":"\r"===Be?"\\r":`\\${Be}`)},L.getModificationDate=function vt(ct=new Date){return[ct.getUTCFullYear().toString(),(ct.getUTCMonth()+1).toString().padStart(2,"0"),ct.getUTCDate().toString().padStart(2,"0"),ct.getUTCHours().toString().padStart(2,"0"),ct.getUTCMinutes().toString().padStart(2,"0"),ct.getUTCSeconds().toString().padStart(2,"0")].join("")},L.getVerbosityLevel=function ue(){return U},L.info=function pe(ct){U>=m.INFOS&&console.log(`Info: ${ct}`)},L.isArrayBuffer=function rt(ct){return"object"==typeof ct&&null!==ct&&void 0!==ct.byteLength},L.isArrayEqual=function Pt(ct,Be){if(ct.length!==Be.length)return!1;for(let Je=0,wt=ct.length;Je<wt;Je++)if(ct[Je]!==Be[Je])return!1;return!0},L.isAscii=function Ut(ct){return/^[\x00-\x7F]*$/.test(ct)},L.objectFromMap=function ft(ct){const Be=Object.create(null);for(const[Je,wt]of ct)Be[Je]=wt;return Be},L.objectSize=function at(ct){return Object.keys(ct).length},L.setVerbosityLevel=function fe(ct){Number.isInteger(ct)&&(U=ct)},L.shadow=ge,L.string32=function je(ct){return String.fromCharCode(ct>>24&255,ct>>16&255,ct>>8&255,255&ct)},L.stringToBytes=Me,L.stringToPDFString=function Rt(ct){if(ct[0]>="\xef"){let Je;if("\xfe"===ct[0]&&"\xff"===ct[1]?Je="utf-16be":"\xff"===ct[0]&&"\xfe"===ct[1]?Je="utf-16le":"\xef"===ct[0]&&"\xbb"===ct[1]&&"\xbf"===ct[2]&&(Je="utf-8"),Je)try{const wt=new TextDecoder(Je,{fatal:!0}),Jt=Me(ct);return wt.decode(Jt)}catch(wt){he(`stringToPDFString: "${wt}".`)}}const Be=[];for(let Je=0,wt=ct.length;Je<wt;Je++){const Jt=It[ct.charCodeAt(Je)];Be.push(Jt?String.fromCharCode(Jt):ct.charAt(Je))}return Be.join("")},L.stringToUTF16BEString=function Wt(ct){const Be=["\xfe\xff"];for(let Je=0,wt=ct.length;Je<wt;Je++){const Jt=ct.charCodeAt(Je);Be.push(String.fromCharCode(Jt>>8&255),String.fromCharCode(255&Jt))}return Be.join("")},L.stringToUTF8String=it,L.unreachable=de,L.utf8StringToString=function Bt(ct){return unescape(encodeURIComponent(ct))},L.warn=he,o(2),L.IDENTITY_MATRIX=[1,0,0,1,0,0],L.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],L.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256},L.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},L.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},L.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},L.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},L.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},L.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},L.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},L.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},L.AnnotationReplyType={GROUP:"Group",REPLY:"R"},L.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},L.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},L.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},L.AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"},L.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},L.PageActionEventType={O:"PageOpen",C:"PageClose"},L.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"},L.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};const m={ERRORS:0,WARNINGS:1,INFOS:5};L.VerbosityLevel=m,L.CMapCompressionType={NONE:0,BINARY:1,STREAM:2},L.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},L.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent",errorContentSubStream:"errorContentSubStream"},L.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let U=m.WARNINGS;function he(ct){U>=m.WARNINGS&&console.log(`Warning: ${ct}`)}function de(ct){throw new Error(ct)}function ge(ct,Be,Je){return Object.defineProperty(ct,Be,{value:Je,enumerable:!0,configurable:!0,writable:!1}),Je}const q=function(){function Be(Je,wt){this.constructor===Be&&de("Cannot initialize BaseException."),this.message=Je,this.name=wt}return Be.prototype=new Error,Be.constructor=Be,Be}();function Me(ct){"string"!=typeof ct&&de("Invalid argument for stringToBytes");const Be=ct.length,Je=new Uint8Array(Be);for(let wt=0;wt<Be;++wt)Je[wt]=255&ct.charCodeAt(wt);return Je}function Fe(ct){return void 0!==ct.length?ct.length:void 0!==ct.byteLength?ct.byteLength:void de("Invalid argument for arrayByteLength")}L.BaseException=q,L.PasswordException=class u extends q{constructor(Be,Je){super(Be,"PasswordException"),this.code=Je}},L.UnknownErrorException=class p extends q{constructor(Be,Je){super(Be,"UnknownErrorException"),this.details=Je}},L.InvalidPDFException=class N extends q{constructor(Be){super(Be,"InvalidPDFException")}},L.MissingPDFException=class G extends q{constructor(Be){super(Be,"MissingPDFException")}},L.UnexpectedResponseException=class R extends q{constructor(Be,Je){super(Be,"UnexpectedResponseException"),this.status=Je}},L.FormatError=class ne extends q{constructor(Be){super(Be,"FormatError")}},L.AbortException=class S extends q{constructor(Be){super(Be,"AbortException")}},L.FeatureTest=class _t{static get isLittleEndian(){return ge(this,"isLittleEndian",function Qe(){const ct=new Uint8Array(4);return ct[0]=1,1===new Uint32Array(ct.buffer,0,1)[0]}())}static get isEvalSupported(){return ge(this,"isEvalSupported",function nt(){try{return new Function(""),!0}catch{return!1}}())}static get isOffscreenCanvasSupported(){return ge(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}};const Ge=[...Array(256).keys()].map(ct=>ct.toString(16).padStart(2,"0"));class ht{static makeHexColor(Be,Je,wt){return`#${Ge[Be]}${Ge[Je]}${Ge[wt]}`}static scaleMinMax(Be,Je){let wt;Be[0]?(Be[0]<0&&(wt=Je[0],Je[0]=Je[1],Je[1]=wt),Je[0]*=Be[0],Je[1]*=Be[0],Be[3]<0&&(wt=Je[2],Je[2]=Je[3],Je[3]=wt),Je[2]*=Be[3],Je[3]*=Be[3]):(wt=Je[0],Je[0]=Je[2],Je[2]=wt,wt=Je[1],Je[1]=Je[3],Je[3]=wt,Be[1]<0&&(wt=Je[2],Je[2]=Je[3],Je[3]=wt),Je[2]*=Be[1],Je[3]*=Be[1],Be[2]<0&&(wt=Je[0],Je[0]=Je[1],Je[1]=wt),Je[0]*=Be[2],Je[1]*=Be[2]),Je[0]+=Be[4],Je[1]+=Be[4],Je[2]+=Be[5],Je[3]+=Be[5]}static transform(Be,Je){return[Be[0]*Je[0]+Be[2]*Je[1],Be[1]*Je[0]+Be[3]*Je[1],Be[0]*Je[2]+Be[2]*Je[3],Be[1]*Je[2]+Be[3]*Je[3],Be[0]*Je[4]+Be[2]*Je[5]+Be[4],Be[1]*Je[4]+Be[3]*Je[5]+Be[5]]}static applyTransform(Be,Je){return[Be[0]*Je[0]+Be[1]*Je[2]+Je[4],Be[0]*Je[1]+Be[1]*Je[3]+Je[5]]}static applyInverseTransform(Be,Je){const wt=Je[0]*Je[3]-Je[1]*Je[2];return[(Be[0]*Je[3]-Be[1]*Je[2]+Je[2]*Je[5]-Je[4]*Je[3])/wt,(-Be[0]*Je[1]+Be[1]*Je[0]+Je[4]*Je[1]-Je[5]*Je[0])/wt]}static getAxialAlignedBoundingBox(Be,Je){const wt=ht.applyTransform(Be,Je),Jt=ht.applyTransform(Be.slice(2,4),Je),ln=ht.applyTransform([Be[0],Be[3]],Je),pn=ht.applyTransform([Be[2],Be[1]],Je);return[Math.min(wt[0],Jt[0],ln[0],pn[0]),Math.min(wt[1],Jt[1],ln[1],pn[1]),Math.max(wt[0],Jt[0],ln[0],pn[0]),Math.max(wt[1],Jt[1],ln[1],pn[1])]}static inverseTransform(Be){const Je=Be[0]*Be[3]-Be[1]*Be[2];return[Be[3]/Je,-Be[1]/Je,-Be[2]/Je,Be[0]/Je,(Be[2]*Be[5]-Be[4]*Be[3])/Je,(Be[4]*Be[1]-Be[5]*Be[0])/Je]}static apply3dTransform(Be,Je){return[Be[0]*Je[0]+Be[1]*Je[1]+Be[2]*Je[2],Be[3]*Je[0]+Be[4]*Je[1]+Be[5]*Je[2],Be[6]*Je[0]+Be[7]*Je[1]+Be[8]*Je[2]]}static singularValueDecompose2dScale(Be){const Je=[Be[0],Be[2],Be[1],Be[3]],wt=Be[0]*Je[0]+Be[1]*Je[2],pn=Be[2]*Je[1]+Be[3]*Je[3],kn=(wt+pn)/2,Mn=Math.sqrt((wt+pn)**2-4*(wt*pn-(Be[2]*Je[0]+Be[3]*Je[2])*(Be[0]*Je[1]+Be[1]*Je[3])))/2,Bn=kn-Mn||1;return[Math.sqrt(kn+Mn||1),Math.sqrt(Bn)]}static normalizeRect(Be){const Je=Be.slice(0);return Be[0]>Be[2]&&(Je[0]=Be[2],Je[2]=Be[0]),Be[1]>Be[3]&&(Je[1]=Be[3],Je[3]=Be[1]),Je}static intersect(Be,Je){const wt=Math.max(Math.min(Be[0],Be[2]),Math.min(Je[0],Je[2])),Jt=Math.min(Math.max(Be[0],Be[2]),Math.max(Je[0],Je[2]));if(wt>Jt)return null;const ln=Math.max(Math.min(Be[1],Be[3]),Math.min(Je[1],Je[3])),pn=Math.min(Math.max(Be[1],Be[3]),Math.max(Je[1],Je[3]));return ln>pn?null:[wt,ln,Jt,pn]}static bezierBoundingBox(Be,Je,wt,Jt,ln,pn,kn,Mn){const wn=[],Bn=[[],[]];let Zn,Yn,Jn,In,ii,yi,mt,yt;for(let zt=0;zt<2;++zt)if(0===zt?(Yn=6*Be-12*wt+6*ln,Zn=-3*Be+9*wt-9*ln+3*kn,Jn=3*wt-3*Be):(Yn=6*Je-12*Jt+6*pn,Zn=-3*Je+9*Jt-9*pn+3*Mn,Jn=3*Jt-3*Je),Math.abs(Zn)<1e-12){if(Math.abs(Yn)<1e-12)continue;In=-Jn/Yn,0<In&&In<1&&wn.push(In)}else mt=Yn*Yn-4*Jn*Zn,yt=Math.sqrt(mt),!(mt<0)&&(ii=(-Yn+yt)/(2*Zn),0<ii&&ii<1&&wn.push(ii),yi=(-Yn-yt)/(2*Zn),0<yi&&yi<1&&wn.push(yi));let et,We=wn.length;const Mt=We;for(;We--;)In=wn[We],et=1-In,Bn[0][We]=et*et*et*Be+3*et*et*In*wt+3*et*In*In*ln+In*In*In*kn,Bn[1][We]=et*et*et*Je+3*et*et*In*Jt+3*et*In*In*pn+In*In*In*Mn;return Bn[0][Mt]=Be,Bn[1][Mt]=Je,Bn[0][Mt+1]=kn,Bn[1][Mt+1]=Mn,Bn[0].length=Bn[1].length=Mt+2,[Math.min(...Bn[0]),Math.min(...Bn[1]),Math.max(...Bn[0]),Math.max(...Bn[1])]}}L.Util=ht;const It=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function it(ct){return decodeURIComponent(escape(ct))}},(He,L,o)=>{o(3)},(He,L)=>{Object.defineProperty(L,"__esModule",{value:!0}),L.isNodeJS=void 0;const o=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);L.isNodeJS=o},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.build=exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.version=void 0;var _util=__w_pdfjs_require__(1),_display_utils=__w_pdfjs_require__(5),_font_loader=__w_pdfjs_require__(7),_annotation_storage=__w_pdfjs_require__(8),_canvas=__w_pdfjs_require__(10),_worker_options=__w_pdfjs_require__(13),_is_node=__w_pdfjs_require__(3),_message_handler=__w_pdfjs_require__(14),_metadata=__w_pdfjs_require__(15),_optional_content_config=__w_pdfjs_require__(16),_transport_stream=__w_pdfjs_require__(17),_xfa_text=__w_pdfjs_require__(18);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100;let DefaultCanvasFactory=_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;let DefaultCMapReaderFactory=_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;let DefaultStandardFontDataFactory=_display_utils.DOMStandardFontDataFactory,createPDFNetworkStream;if(exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory,_is_node.isNodeJS){const{NodeCanvasFactory:He,NodeCMapReaderFactory:L,NodeStandardFontDataFactory:o}=__w_pdfjs_require__(19);exports.DefaultCanvasFactory=DefaultCanvasFactory=He,exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory=L,exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory=o}function setPDFNetworkStreamFactory(He){createPDFNetworkStream=He}function getDocument(He){const L=new PDFDocumentLoadingTask;let o;if("string"==typeof He||He instanceof URL)o={url:He};else if((0,_util.isArrayBuffer)(He))o={data:He};else if(He instanceof PDFDataRangeTransport)o={range:He};else{if("object"!=typeof He)throw new Error("Invalid parameter in getDocument, need either string, URL, Uint8Array, or parameter object.");if(!He.url&&!He.data&&!He.range)throw new Error("Invalid parameter object: need either .data, .range or .url");o=He}const n=Object.create(null);let y=null,a=null;for(const ie in o){const Z=o[ie];switch(ie){case"url":if(typeof window<"u")try{n[ie]=new URL(Z,window.location).href;continue}catch(h){(0,_util.warn)(`Cannot create valid URL: "${h}".`)}else if("string"==typeof Z||Z instanceof URL){n[ie]=Z.toString();continue}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.");case"range":y=Z;continue;case"worker":a=Z;continue;case"data":if(_is_node.isNodeJS&&typeof Buffer<"u"&&Z instanceof Buffer)n[ie]=new Uint8Array(Z);else{if(Z instanceof Uint8Array)break;if("string"==typeof Z)n[ie]=(0,_util.stringToBytes)(Z);else if("object"!=typeof Z||null===Z||isNaN(Z.length)){if(!(0,_util.isArrayBuffer)(Z))throw new Error("Invalid PDF binary data: either typed array, string, or array-like object is expected in the data property.");n[ie]=new Uint8Array(Z)}else n[ie]=new Uint8Array(Z)}continue}n[ie]=Z}if(n.CMapReaderFactory=n.CMapReaderFactory||DefaultCMapReaderFactory,n.StandardFontDataFactory=n.StandardFontDataFactory||DefaultStandardFontDataFactory,n.ignoreErrors=!0!==n.stopAtErrors,n.fontExtraProperties=!0===n.fontExtraProperties,n.pdfBug=!0===n.pdfBug,n.enableXfa=!0===n.enableXfa,(!Number.isInteger(n.rangeChunkSize)||n.rangeChunkSize<1)&&(n.rangeChunkSize=DEFAULT_RANGE_CHUNK_SIZE),("string"!=typeof n.docBaseUrl||(0,_display_utils.isDataScheme)(n.docBaseUrl))&&(n.docBaseUrl=null),(!Number.isInteger(n.maxImageSize)||n.maxImageSize<-1)&&(n.maxImageSize=-1),"string"!=typeof n.cMapUrl&&(n.cMapUrl=null),"string"!=typeof n.standardFontDataUrl&&(n.standardFontDataUrl=null),"boolean"!=typeof n.useWorkerFetch&&(n.useWorkerFetch=n.CMapReaderFactory===_display_utils.DOMCMapReaderFactory&&n.StandardFontDataFactory===_display_utils.DOMStandardFontDataFactory),"boolean"!=typeof n.isEvalSupported&&(n.isEvalSupported=!0),"boolean"!=typeof n.disableFontFace&&(n.disableFontFace=_is_node.isNodeJS),"boolean"!=typeof n.useSystemFonts&&(n.useSystemFonts=!_is_node.isNodeJS&&!n.disableFontFace),("object"!=typeof n.ownerDocument||null===n.ownerDocument)&&(n.ownerDocument=globalThis.document),"boolean"!=typeof n.disableRange&&(n.disableRange=!1),"boolean"!=typeof n.disableStream&&(n.disableStream=!1),"boolean"!=typeof n.disableAutoFetch&&(n.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(n.verbosity),!a){const ie={verbosity:n.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};a=ie.port?PDFWorker.fromPort(ie):new PDFWorker(ie),L._worker=a}const Q=L.docId;return a.promise.then(function(){if(L.destroyed)throw new Error("Loading aborted");const ie=_fetchDocument(a,n,y,Q),Z=new Promise(function(h){let w;y?w=new _transport_stream.PDFDataTransportStream({length:n.length,initialData:n.initialData,progressiveDone:n.progressiveDone,contentDispositionFilename:n.contentDispositionFilename,disableRange:n.disableRange,disableStream:n.disableStream},y):n.data||(w=createPDFNetworkStream({url:n.url,length:n.length,httpHeaders:n.httpHeaders,withCredentials:n.withCredentials,rangeChunkSize:n.rangeChunkSize,disableRange:n.disableRange,disableStream:n.disableStream})),h(w)});return Promise.all([ie,Z]).then(function([h,w]){if(L.destroyed)throw new Error("Loading aborted");const D=new _message_handler.MessageHandler(Q,h,a.port),x=new WorkerTransport(D,L,w,n);L._transport=x,D.send("Ready",null)})}).catch(L._capability.reject),L}function _fetchDocument(He,L,o,n){return _fetchDocument2.apply(this,arguments)}function _fetchDocument2(){return(_fetchDocument2=_asyncToGenerator(function*(He,L,o,n){if(He.destroyed)throw new Error("Worker was destroyed");o&&(L.length=o.length,L.initialData=o.initialData,L.progressiveDone=o.progressiveDone,L.contentDispositionFilename=o.contentDispositionFilename);const y=yield He.messageHandler.sendWithPromise("GetDocRequest",{docId:n,apiVersion:"2.14.305",source:{data:L.data,url:L.url,password:L.password,disableAutoFetch:L.disableAutoFetch,rangeChunkSize:L.rangeChunkSize,length:L.length},maxImageSize:L.maxImageSize,disableFontFace:L.disableFontFace,docBaseUrl:L.docBaseUrl,ignoreErrors:L.ignoreErrors,isEvalSupported:L.isEvalSupported,fontExtraProperties:L.fontExtraProperties,enableXfa:L.enableXfa,useSystemFonts:L.useSystemFonts,cMapUrl:L.useWorkerFetch?L.cMapUrl:null,standardFontDataUrl:L.useWorkerFetch?L.standardFontDataUrl:null});if(He.destroyed)throw new Error("Worker was destroyed");return y})).apply(this,arguments)}class PDFDocumentLoadingTask{static#e=0;constructor(){this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+PDFDocumentLoadingTask.#e++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}get promise(){return this._capability.promise}destroy(){var L=this;return _asyncToGenerator(function*(){L.destroyed=!0,yield L._transport?.destroy(),L._transport=null,L._worker&&(L._worker.destroy(),L._worker=null)})()}}exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(L,o,n=!1,y=null){this.length=L,this.initialData=o,this.progressiveDone=n,this.contentDispositionFilename=y,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}addRangeListener(L){this._rangeListeners.push(L)}addProgressListener(L){this._progressListeners.push(L)}addProgressiveReadListener(L){this._progressiveReadListeners.push(L)}addProgressiveDoneListener(L){this._progressiveDoneListeners.push(L)}onDataRange(L,o){for(const n of this._rangeListeners)n(L,o)}onDataProgress(L,o){this._readyCapability.promise.then(()=>{for(const n of this._progressListeners)n(L,o)})}onDataProgressiveRead(L){this._readyCapability.promise.then(()=>{for(const o of this._progressiveReadListeners)o(L)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const L of this._progressiveDoneListeners)L()})}transportReady(){this._readyCapability.resolve()}requestDataRange(L,o){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(L,o){var y,n=this;this._pdfInfo=L,this._transport=o,Object.defineProperty(this,"fingerprint",{get(){return(0,_display_utils.deprecated)("`PDFDocumentProxy.fingerprint`, please use `PDFDocumentProxy.fingerprints` instead."),this.fingerprints[0]}}),Object.defineProperty(this,"getStats",{value:(y=_asyncToGenerator(function*(){return(0,_display_utils.deprecated)("`PDFDocumentProxy.getStats`, please use the `PDFDocumentProxy.stats`-getter instead."),n.stats||{streamTypes:{},fontTypes:{}}}),function(){return y.apply(this,arguments)})})}get annotationStorage(){return this._transport.annotationStorage}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get stats(){return this._transport.stats}get isPureXfa(){return!!this._transport._htmlForXfa}get allXfaHtml(){return this._transport._htmlForXfa}getPage(L){return this._transport.getPage(L)}getPageIndex(L){return this._transport.getPageIndex(L)}getDestinations(){return this._transport.getDestinations()}getDestination(L){return this._transport.getDestination(L)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJavaScript(){return this._transport.getJavaScript()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(L=!1){return this._transport.startCleanup(L||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}saveDocument(){return this._transport.annotationStorage.size<=0&&(0,_display_utils.deprecated)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead."),this._transport.saveDocument()}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(L,o,n,y,a=!1){this._pageIndex=L,this._pageInfo=o,this._ownerDocument=y,this._transport=n,this._stats=a?new _display_utils.StatTimer:null,this._pdfBug=a,this.commonObjs=n.commonObjs,this.objs=new PDFObjects,this._bitmaps=new Set,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this._intentStates=new Map,this._annotationPromises=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:L,rotation:o=this.rotate,offsetX:n=0,offsetY:y=0,dontFlip:a=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:L,rotation:o,offsetX:n,offsetY:y,dontFlip:a})}getAnnotations({intent:L="display"}={}){const o=this._transport.getRenderingIntent(L);let n=this._annotationPromises.get(o.cacheKey);return n||(n=this._transport.getAnnotations(this._pageIndex,o.renderingIntent),this._annotationPromises.set(o.cacheKey,n),n=n.then(y=>{for(const a of y)void 0!==a.titleObj&&Object.defineProperty(a,"title",{get:()=>((0,_display_utils.deprecated)("`title`-property on annotation, please use `titleObj` instead."),a.titleObj.str)}),void 0!==a.contentsObj&&Object.defineProperty(a,"contents",{get:()=>((0,_display_utils.deprecated)("`contents`-property on annotation, please use `contentsObj` instead."),a.contentsObj.str)});return y})),n}getJSActions(){return this._jsActionsPromise||=this._transport.getPageJSActions(this._pageIndex)}getXfa(){var L=this;return _asyncToGenerator(function*(){return L._transport._htmlForXfa?.children[L._pageIndex]||null})()}render({canvasContext:L,viewport:o,intent:n="display",annotationMode:y=_util.AnnotationMode.ENABLE,transform:a=null,imageLayer:Q=null,canvasFactory:ie=null,background:Z=null,optionalContentConfigPromise:h=null,annotationCanvasMap:w=null,pageColors:D=null}){void 0!==arguments[0]?.renderInteractiveForms&&((0,_display_utils.deprecated)("render no longer accepts the `renderInteractiveForms`-option, please use the `annotationMode`-option instead."),!0===arguments[0].renderInteractiveForms&&y===_util.AnnotationMode.ENABLE&&(y=_util.AnnotationMode.ENABLE_FORMS)),void 0!==arguments[0]?.includeAnnotationStorage&&((0,_display_utils.deprecated)("render no longer accepts the `includeAnnotationStorage`-option, please use the `annotationMode`-option instead."),!0===arguments[0].includeAnnotationStorage&&y===_util.AnnotationMode.ENABLE&&(y=_util.AnnotationMode.ENABLE_STORAGE)),this._stats&&this._stats.time("Overall");const x=this._transport.getRenderingIntent(n,y);this.pendingCleanup=!1,h||(h=this._transport.getOptionalContentConfig());let E=this._intentStates.get(x.cacheKey);E||(E=Object.create(null),this._intentStates.set(x.cacheKey,E)),E.streamReaderCancelTimeout&&(clearTimeout(E.streamReaderCancelTimeout),E.streamReaderCancelTimeout=null);const z=ie||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),d=!!(x.renderingIntent&_util.RenderingIntentFlag.PRINT);E.displayReadyCapability||(E.displayReadyCapability=(0,_util.createPromiseCapability)(),E.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(x));const C=$=>{E.renderTasks.delete(P),(this.cleanupAfterRender||d)&&(this.pendingCleanup=!0),this._tryCleanup(),$?(P.capability.reject($),this._abortOperatorList({intentState:E,reason:$ instanceof Error?$:new Error($)})):P.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"))},P=new InternalRenderTask({callback:C,params:{canvasContext:L,viewport:o,transform:a,imageLayer:Q,background:Z},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:w,operatorList:E.operatorList,pageIndex:this._pageIndex,canvasFactory:z,useRequestAnimationFrame:!d,pdfBug:this._pdfBug,pageColors:D});(E.renderTasks||=new Set).add(P);const k=P.task;return Promise.all([E.displayReadyCapability.promise,h]).then(([$,I])=>{this.pendingCleanup?C():(this._stats&&this._stats.time("Rendering"),P.initializeGraphics({transparency:$,optionalContentConfig:I}),P.operatorListChanged())}).catch(C),k}getOperatorList({intent:L="display",annotationMode:o=_util.AnnotationMode.ENABLE}={}){const y=this._transport.getRenderingIntent(L,o,!0);let Q,a=this._intentStates.get(y.cacheKey);return a||(a=Object.create(null),this._intentStates.set(y.cacheKey,a)),a.opListReadCapability||(Q=Object.create(null),Q.operatorListChanged=function n(){a.operatorList.lastChunk&&(a.opListReadCapability.resolve(a.operatorList),a.renderTasks.delete(Q))},a.opListReadCapability=(0,_util.createPromiseCapability)(),(a.renderTasks||=new Set).add(Q),a.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(y)),a.opListReadCapability.promise}streamTextContent({disableCombineTextItems:L=!1,includeMarkedContent:o=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,combineTextItems:!0!==L,includeMarkedContent:!0===o},{highWaterMark:100,size:y=>y.items.length})}getTextContent(L={}){if(this._transport._htmlForXfa)return this.getXfa().then(n=>_xfa_text.XfaText.textContent(n));const o=this.streamTextContent(L);return new Promise(function(n,y){const Q=o.getReader(),ie={items:[],styles:Object.create(null)};!function a(){Q.read().then(function({value:Z,done:h}){h?n(ie):(Object.assign(ie.styles,Z.styles),ie.items.push(...Z.items),a())},y)}()})}getStructTree(){return this._structTreePromise||=this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const L=[];for(const o of this._intentStates.values())if(this._abortOperatorList({intentState:o,reason:new Error("Page was destroyed."),force:!0}),!o.opListReadCapability)for(const n of o.renderTasks)L.push(n.completed),n.cancel();this.objs.clear();for(const o of this._bitmaps)o.close();return this._bitmaps.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,this.pendingCleanup=!1,Promise.all(L)}cleanup(L=!1){return this.pendingCleanup=!0,this._tryCleanup(L)}_tryCleanup(L=!1){if(!this.pendingCleanup)return!1;for(const{renderTasks:o,operatorList:n}of this._intentStates.values())if(o.size>0||!n.lastChunk)return!1;this._intentStates.clear(),this.objs.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,L&&this._stats&&(this._stats=new _display_utils.StatTimer);for(const o of this._bitmaps)o.close();return this._bitmaps.clear(),this.pendingCleanup=!1,!0}_startRenderPage(L,o){const n=this._intentStates.get(o);n&&(this._stats&&this._stats.timeEnd("Page Request"),n.displayReadyCapability&&n.displayReadyCapability.resolve(L))}_renderPageChunk(L,o){for(let n=0,y=L.length;n<y;n++)o.operatorList.fnArray.push(L.fnArray[n]),o.operatorList.argsArray.push(L.argsArray[n]);o.operatorList.lastChunk=L.lastChunk;for(const n of o.renderTasks)n.operatorListChanged();L.lastChunk&&this._tryCleanup()}_pumpOperatorList({renderingIntent:L,cacheKey:o}){const y=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:L,cacheKey:o,annotationStorage:L&_util.RenderingIntentFlag.ANNOTATIONS_STORAGE?this._transport.annotationStorage.serializable:null}).getReader(),a=this._intentStates.get(o);a.streamReader=y;const Q=()=>{y.read().then(({value:ie,done:Z})=>{Z?a.streamReader=null:this._transport.destroyed||(this._renderPageChunk(ie,a),Q())},ie=>{if(a.streamReader=null,!this._transport.destroyed){if(a.operatorList){a.operatorList.lastChunk=!0;for(const Z of a.renderTasks)Z.operatorListChanged();this._tryCleanup()}if(a.displayReadyCapability)a.displayReadyCapability.reject(ie);else{if(!a.opListReadCapability)throw ie;a.opListReadCapability.reject(ie)}}})};Q()}_abortOperatorList({intentState:L,reason:o,force:n=!1}){if(L.streamReader){if(!n){if(L.renderTasks.size>0)return;if(o instanceof _display_utils.RenderingCancelledException)return void(L.streamReaderCancelTimeout=setTimeout(()=>{this._abortOperatorList({intentState:L,reason:o,force:!0}),L.streamReaderCancelTimeout=null},RENDERING_CANCELLED_TIMEOUT))}if(L.streamReader.cancel(new _util.AbortException(o.message)).catch(()=>{}),L.streamReader=null,!this._transport.destroyed){for(const[y,a]of this._intentStates)if(a===L){this._intentStates.delete(y);break}this.cleanup()}}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(){this._listeners=[],this._deferred=Promise.resolve()}postMessage(L,o){const n={data:structuredClone(L,o)};this._deferred.then(()=>{for(const y of this._listeners)y.call(this,n)})}addEventListener(L,o){this._listeners.push(o)}removeEventListener(L,o){const n=this._listeners.indexOf(o);this._listeners.splice(n,1)}terminate(){this._listeners.length=0}}exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};if(exports.PDFWorkerUtil=PDFWorkerUtil,_is_node.isNodeJS)PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if("object"==typeof document){const He=document?.currentScript?.src;He&&(PDFWorkerUtil.fallbackWorkerSrc=He.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(He,L){let o;try{if(o=new URL(He),!o.origin||"null"===o.origin)return!1}catch{return!1}const n=new URL(L,o);return o.origin===n.origin},PDFWorkerUtil.createCDNWrapper=function(He){return URL.createObjectURL(new Blob([`importScripts("${He}");`]))};class PDFWorker{static#workerPorts=new WeakMap;constructor({name:He=null,port:L=null,verbosity:o=(0,_util.getVerbosityLevel)()}={}){if(L&&PDFWorker.#workerPorts.has(L))throw new Error("Cannot use more than one PDFWorker per port.");if(this.name=He,this.destroyed=!1,this.verbosity=o,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,L)return PDFWorker.#workerPorts.set(L,this),void this._initializeFromPort(L);this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(He){this._port=He,this._messageHandler=new _message_handler.MessageHandler("main","worker",He),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()}_initialize(){if(typeof Worker<"u"&&!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){let He=PDFWorker.workerSrc;try{PDFWorkerUtil.isSameOrigin(window.location.href,He)||(He=PDFWorkerUtil.createCDNWrapper(new URL(He,window.location).href));const L=new Worker(He),o=new _message_handler.MessageHandler("main","worker",L),n=()=>{L.removeEventListener("error",y),o.destroy(),L.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},y=()=>{this._webWorker||n()};L.addEventListener("error",y),o.on("test",Q=>{L.removeEventListener("error",y),this.destroyed?n():Q?(this._messageHandler=o,this._port=L,this._webWorker=L,this._readyCapability.resolve(),o.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),o.destroy(),L.terminate())}),o.on("ready",Q=>{if(L.removeEventListener("error",y),this.destroyed)n();else try{a()}catch{this._setupFakeWorker()}});const a=()=>{const Q=new Uint8Array;o.send("test",Q,[Q.buffer])};return void a()}catch{(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),PDFWorker._setupFakeWorkerGlobal.then(He=>{if(this.destroyed)return void this._readyCapability.reject(new Error("Worker was destroyed"));const L=new LoopbackPort;this._port=L;const o="fake"+PDFWorkerUtil.fakeWorkerId++,n=new _message_handler.MessageHandler(o+"_worker",o,L);He.setup(n,L);const y=new _message_handler.MessageHandler(o,o+"_worker",L);this._messageHandler=y,this._readyCapability.resolve(),y.send("configure",{verbosity:this.verbosity})}).catch(He=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${He.message}".`))})}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),PDFWorker.#workerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(He){if(!He?.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return this.#workerPorts.has(He.port)?this.#workerPorts.get(He.port):new PDFWorker(He)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(null!==PDFWorkerUtil.fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}}static get _setupFakeWorkerGlobal(){var _this4=this;const loader=function(){var _ref2=_asyncToGenerator(function*(){const mainWorkerMessageHandler=_this4._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_is_node.isNodeJS){const worker=eval("require")(_this4.workerSrc);return worker.WorkerMessageHandler}return yield(0,_display_utils.loadScript)(_this4.workerSrc),window.pdfjsWorker.WorkerMessageHandler});return function He(){return _ref2.apply(this,arguments)}}();return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}exports.PDFWorker=PDFWorker,PDFWorker.getWorkerSrc=function(){return(0,_display_utils.deprecated)("`PDFWorker.getWorkerSrc()`, please use `PDFWorker.workerSrc` instead."),this.workerSrc};class WorkerTransport{#e=null;#t=new Map;#n=new Map;#r=null;constructor(L,o,n,y){this.messageHandler=L,this.loadingTask=o,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:o.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:y.ownerDocument,styleElement:y.styleElement}),this._params=y,y.useWorkerFetch||(this.CMapReaderFactory=new y.CMapReaderFactory({baseUrl:y.cMapUrl,isCompressed:y.cMapPacked}),this.StandardFontDataFactory=new y.StandardFontDataFactory({baseUrl:y.standardFontDataUrl})),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}get stats(){return this.#e}getRenderingIntent(L,o=_util.AnnotationMode.ENABLE,n=!1){let y=_util.RenderingIntentFlag.DISPLAY,a="";switch(L){case"any":y=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":y=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)(`getRenderingIntent - invalid intent: ${L}`)}switch(o){case _util.AnnotationMode.DISABLE:y+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:y+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:y+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,a=this.annotationStorage.hash;break;default:(0,_util.warn)(`getRenderingIntent - invalid annotationMode: ${o}`)}return n&&(y+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:y,cacheKey:`${y}_${a}`}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));const L=[];for(const n of this.#t.values())L.push(n._destroy());this.#t.clear(),this.#n.clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const o=this.messageHandler.sendWithPromise("Terminate",null);return L.push(o),Promise.all(L).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#r=null,this._getFieldObjectsPromise=null,this._hasJSActionsPromise=null,this._networkStream&&this._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:L,loadingTask:o}=this;L.on("GetReader",(n,y)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=a=>{this._lastProgress={loaded:a.loaded,total:a.total}},y.onPull=()=>{this._fullReader.read().then(function({value:a,done:Q}){Q?y.close():((0,_util.assert)((0,_util.isArrayBuffer)(a),"GetReader - expected an ArrayBuffer."),y.enqueue(new Uint8Array(a),1,[a]))}).catch(a=>{y.error(a)})},y.onCancel=a=>{this._fullReader.cancel(a),y.ready.catch(Q=>{if(!this.destroyed)throw Q})}}),L.on("ReaderHeadersReady",n=>{const y=(0,_util.createPromiseCapability)(),a=this._fullReader;return a.headersReady.then(()=>{(!a.isStreamingSupported||!a.isRangeSupported)&&(this._lastProgress&&o.onProgress?.(this._lastProgress),a.onProgress=Q=>{o.onProgress?.({loaded:Q.loaded,total:Q.total})}),y.resolve({isStreamingSupported:a.isStreamingSupported,isRangeSupported:a.isRangeSupported,contentLength:a.contentLength})},y.reject),y.promise}),L.on("GetRangeReader",(n,y)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const a=this._networkStream.getRangeReader(n.begin,n.end);a?(y.onPull=()=>{a.read().then(function({value:Q,done:ie}){ie?y.close():((0,_util.assert)((0,_util.isArrayBuffer)(Q),"GetRangeReader - expected an ArrayBuffer."),y.enqueue(new Uint8Array(Q),1,[Q]))}).catch(Q=>{y.error(Q)})},y.onCancel=Q=>{a.cancel(Q),y.ready.catch(ie=>{if(!this.destroyed)throw ie})}):y.close()}),L.on("GetDoc",({pdfInfo:n})=>{this._numPages=n.numPages,this._htmlForXfa=n.htmlForXfa,delete n.htmlForXfa,o._capability.resolve(new PDFDocumentProxy(n,this))}),L.on("DocException",function(n){let y;switch(n.name){case"PasswordException":y=new _util.PasswordException(n.message,n.code);break;case"InvalidPDFException":y=new _util.InvalidPDFException(n.message);break;case"MissingPDFException":y=new _util.MissingPDFException(n.message);break;case"UnexpectedResponseException":y=new _util.UnexpectedResponseException(n.message,n.status);break;case"UnknownErrorException":y=new _util.UnknownErrorException(n.message,n.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}o._capability.reject(y)}),L.on("PasswordRequest",n=>{if(this._passwordCapability=(0,_util.createPromiseCapability)(),o.onPassword){const y=a=>{a instanceof Error?this._passwordCapability.reject(a):this._passwordCapability.resolve({password:a})};try{o.onPassword(y,n.code)}catch(a){this._passwordCapability.reject(a)}}else this._passwordCapability.reject(new _util.PasswordException(n.message,n.code));return this._passwordCapability.promise}),L.on("DataLoaded",n=>{o.onProgress?.({loaded:n.length,total:n.length}),this.downloadInfoCapability.resolve(n)}),L.on("StartRenderPage",n=>{this.destroyed||this.#t.get(n.pageIndex)._startRenderPage(n.transparency,n.cacheKey)}),L.on("commonobj",([n,y,a])=>{if(!this.destroyed&&!this.commonObjs.has(n))switch(y){case"Font":const Q=this._params;if("error"in a){const h=a.error;(0,_util.warn)(`Error during font loading: ${h}`),this.commonObjs.resolve(n,h);break}let ie=null;Q.pdfBug&&globalThis.FontInspector?.enabled&&(ie={registerFont(h,w){globalThis.FontInspector.fontAdded(h,w)}});const Z=new _font_loader.FontFaceObject(a,{isEvalSupported:Q.isEvalSupported,disableFontFace:Q.disableFontFace,ignoreErrors:Q.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:ie});this.fontLoader.bind(Z).catch(h=>L.sendWithPromise("FontFallback",{id:n})).finally(()=>{!Q.fontExtraProperties&&Z.data&&(Z.data=null),this.commonObjs.resolve(n,Z)});break;case"FontPath":case"Image":this.commonObjs.resolve(n,a);break;default:throw new Error(`Got unknown common object type ${y}`)}}),L.on("obj",([n,y,a,Q])=>{if(this.destroyed)return;const ie=this.#t.get(y);if(!ie.objs.has(n))switch(a){case"Image":ie.objs.resolve(n,Q);const Z=8e6;if(Q){let h;if(Q.bitmap){const{bitmap:w,width:D,height:x}=Q;h=D*x*4,ie._bitmaps.add(w)}else h=Q.data?.length||0;h>Z&&(ie.cleanupAfterRender=!0)}break;case"Pattern":ie.objs.resolve(n,Q);break;default:throw new Error(`Got unknown object type ${a}`)}}),L.on("DocProgress",n=>{this.destroyed||o.onProgress?.({loaded:n.loaded,total:n.total})}),L.on("DocStats",n=>{this.destroyed||(this.#e=Object.freeze({streamTypes:Object.freeze(n.streamTypes),fontTypes:Object.freeze(n.fontTypes)}))}),L.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),L.on("FetchBuiltInCMap",n=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.CMapReaderFactory?this.CMapReaderFactory.fetch(n):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),L.on("FetchStandardFontData",n=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.StandardFontDataFactory?this.StandardFontDataFactory.fetch(n):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}_onUnsupportedFeature({featureId:L}){this.destroyed||this.loadingTask.onUnsupportedFeature?.(L)}getData(){return this.messageHandler.sendWithPromise("GetData",null)}getPage(L){if(!Number.isInteger(L)||L<=0||L>this._numPages)return Promise.reject(new Error("Invalid page request."));const o=L-1,n=this.#n.get(o);if(n)return n;const y=this.messageHandler.sendWithPromise("GetPage",{pageIndex:o}).then(a=>{if(this.destroyed)throw new Error("Transport destroyed");const Q=new PDFPageProxy(o,a,this,this._params.ownerDocument,this._params.pdfBug);return this.#t.set(o,Q),Q});return this.#n.set(o,y),y}getPageIndex(L){return"object"!=typeof L||null===L||!Number.isInteger(L.num)||L.num<0||!Number.isInteger(L.gen)||L.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:L.num,gen:L.gen})}getAnnotations(L,o){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:L,intent:o})}saveDocument(){return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:this.annotationStorage.serializable,filename:this._fullReader?.filename??null}).finally(()=>{this.annotationStorage.resetModified()})}getFieldObjects(){return this._getFieldObjectsPromise||=this.messageHandler.sendWithPromise("GetFieldObjects",null)}hasJSActions(){return this._hasJSActionsPromise||=this.messageHandler.sendWithPromise("HasJSActions",null)}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(L){return"string"!=typeof L?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:L})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getJavaScript(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}getDocJSActions(){return this.messageHandler.sendWithPromise("GetDocJSActions",null)}getPageJSActions(L){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:L})}getStructTree(L){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:L})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then(L=>new _optional_content_config.OptionalContentConfig(L))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){return this.#r||=this.messageHandler.sendWithPromise("GetMetadata",null).then(L=>({info:L[0],metadata:L[1]?new _metadata.Metadata(L[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null}))}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}startCleanup(L=!1){var o=this;return _asyncToGenerator(function*(){if(yield o.messageHandler.sendWithPromise("Cleanup",null),!o.destroyed){for(const n of o.#t.values())if(!n.cleanup())throw new Error(`startCleanup: Page ${n.pageNumber} is currently rendering.`);o.commonObjs.clear(),L||o.fontLoader.clear(),o.#r=null,o._getFieldObjectsPromise=null,o._hasJSActionsPromise=null}})()}get loadingParams(){const L=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:L.disableAutoFetch,enableXfa:L.enableXfa})}}class PDFObjects{#e=Object.create(null);#t(L){return this.#e[L]||(this.#e[L]={capability:(0,_util.createPromiseCapability)(),data:null})}get(L,o=null){if(o){const y=this.#t(L);return y.capability.promise.then(()=>o(y.data)),null}const n=this.#e[L];if(!n?.capability.settled)throw new Error(`Requesting object that isn't resolved yet ${L}.`);return n.data}has(L){return this.#e[L]?.capability.settled||!1}resolve(L,o=null){const n=this.#t(L);n.data=o,n.capability.resolve()}clear(){this.#e=Object.create(null)}}class RenderTask{constructor(L){this._internalRenderTask=L,this.onContinue=null}get promise(){return this._internalRenderTask.capability.promise}cancel(){this._internalRenderTask.cancel()}}exports.RenderTask=RenderTask;class InternalRenderTask{static#e=new WeakSet;constructor({callback:L,params:o,objs:n,commonObjs:y,annotationCanvasMap:a,operatorList:Q,pageIndex:ie,canvasFactory:Z,useRequestAnimationFrame:h=!1,pdfBug:w=!1,pageColors:D=null}){this.callback=L,this.params=o,this.objs=n,this.commonObjs=y,this.annotationCanvasMap=a,this.operatorListIdx=null,this.operatorList=Q,this._pageIndex=ie,this.canvasFactory=Z,this._pdfBug=w,this.pageColors=D,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===h&&typeof window<"u",this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=o.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:L=!1,optionalContentConfig:o}){if(this.cancelled)return;if(this._canvas){if(InternalRenderTask.#e.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");InternalRenderTask.#e.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:n,viewport:y,transform:a,imageLayer:Q,background:ie}=this.params;this.gfx=new _canvas.CanvasGraphics(n,this.commonObjs,this.objs,this.canvasFactory,Q,o,this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:a,viewport:y,transparency:L,background:ie}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}cancel(L=null){this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&InternalRenderTask.#e.delete(this._canvas),this.callback(L||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,"canvas"))}operatorListChanged(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),!this.running&&this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame(()=>{this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}_next(){var L=this;return _asyncToGenerator(function*(){L.cancelled||(L.operatorListIdx=L.gfx.executeOperatorList(L.operatorList,L.operatorListIdx,L._continueBound,L.stepper),L.operatorListIdx===L.operatorList.argsArray.length&&(L.running=!1,L.operatorList.lastChunk&&(L.gfx.endDrawing(),L._canvas&&InternalRenderTask.#e.delete(L._canvas),L.callback())))})()}}const version="2.14.305";exports.version=version;const build="eaaa8b4ad";exports.build=build},(He,L,o)=>{Object.defineProperty(L,"__esModule",{value:!0}),L.StatTimer=L.RenderingCancelledException=L.PixelsPerInch=L.PageViewport=L.PDFDateString=L.DOMStandardFontDataFactory=L.DOMSVGFactory=L.DOMCanvasFactory=L.DOMCMapReaderFactory=void 0,L.deprecated=function f(K){console.log("Deprecated API usage: "+K)},L.getFilenameFromUrl=function P(K){const re=K.indexOf("#"),U=K.indexOf("?"),fe=Math.min(re>0?re:K.length,U>0?U:K.length);return K.substring(K.lastIndexOf("/",fe)+1,fe)},L.getPdfFilenameFromUrl=function k(K,re="document.pdf"){if("string"!=typeof K)return re;if(d(K))return(0,y.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),re;const fe=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,ue=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(K);let pe=fe.exec(ue[1])||fe.exec(ue[2])||fe.exec(ue[3]);if(pe&&(pe=pe[0],pe.includes("%")))try{pe=fe.exec(decodeURIComponent(pe))[0]}catch{}return pe||re},L.getXfaPageViewport=function W(K,{scale:re=1,rotation:U=0}){const{width:fe,height:ue}=K.attributes.style,pe=[0,0,parseInt(fe),parseInt(ue)];return new E({viewBox:pe,scale:re,rotation:U})},L.isDataScheme=d,L.isPdfFile=function C(K){return"string"==typeof K&&/\.pdf$/i.test(K)},L.isValidFetchUrl=I,L.loadScript=function g(K,re=!1){return new Promise((U,fe)=>{const ue=document.createElement("script");ue.src=K,ue.onload=function(pe){re&&ue.remove(),U(pe)},ue.onerror=function(){fe(new Error(`Cannot load script at: ${ue.src}`))},(document.head||document.documentElement).appendChild(ue)})};var n=o(6),y=o(1);function Z(K){return h.apply(this,arguments)}function h(){return(h=_asyncToGenerator(function*(K,re=!1){if(I(K,document.baseURI)){const U=yield fetch(K);if(!U.ok)throw new Error(U.statusText);return re?new Uint8Array(yield U.arrayBuffer()):(0,y.stringToBytes)(yield U.text())}return new Promise((U,fe)=>{const ue=new XMLHttpRequest;ue.open("GET",K,!0),re&&(ue.responseType="arraybuffer"),ue.onreadystatechange=()=>{if(ue.readyState===XMLHttpRequest.DONE){if(200===ue.status||0===ue.status){let pe;if(re&&ue.response?pe=new Uint8Array(ue.response):!re&&ue.responseText&&(pe=(0,y.stringToBytes)(ue.responseText)),pe)return void U(pe)}fe(new Error(ue.statusText))}},ue.send(null)})})).apply(this,arguments)}L.PixelsPerInch=class Q{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS/this.PDF},L.DOMCanvasFactory=class ie extends n.BaseCanvasFactory{constructor({ownerDocument:re=globalThis.document}={}){super(),this._document=re}_createCanvas(re,U){const fe=this._document.createElement("canvas");return fe.width=re,fe.height=U,fe}},L.DOMCMapReaderFactory=class w extends n.BaseCMapReaderFactory{_fetchData(re,U){return Z(re,this.isCompressed).then(fe=>({cMapData:fe,compressionType:U}))}},L.DOMStandardFontDataFactory=class D extends n.BaseStandardFontDataFactory{_fetchData(re){return Z(re,!0)}},L.DOMSVGFactory=class x extends n.BaseSVGFactory{_createSVG(re){return document.createElementNS("http://www.w3.org/2000/svg",re)}};class E{constructor({viewBox:re,scale:U,rotation:fe,offsetX:ue=0,offsetY:pe=0,dontFlip:he=!1}){this.viewBox=re,this.scale=U,this.rotation=fe,this.offsetX=ue,this.offsetY=pe;const de=(re[2]+re[0])/2,_e=(re[3]+re[1])/2;let Ee,Ne,ge,q,u,p,N,G;switch((fe%=360)<0&&(fe+=360),fe){case 180:Ee=-1,Ne=0,ge=0,q=1;break;case 90:Ee=0,Ne=1,ge=1,q=0;break;case 270:Ee=0,Ne=-1,ge=-1,q=0;break;case 0:Ee=1,Ne=0,ge=0,q=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}he&&(ge=-ge,q=-q),0===Ee?(u=Math.abs(_e-re[1])*U+ue,p=Math.abs(de-re[0])*U+pe,N=Math.abs(re[3]-re[1])*U,G=Math.abs(re[2]-re[0])*U):(u=Math.abs(de-re[0])*U+ue,p=Math.abs(_e-re[1])*U+pe,N=Math.abs(re[2]-re[0])*U,G=Math.abs(re[3]-re[1])*U),this.transform=[Ee*U,Ne*U,ge*U,q*U,u-Ee*U*de-ge*U*_e,p-Ne*U*de-q*U*_e],this.width=N,this.height=G}clone({scale:re=this.scale,rotation:U=this.rotation,offsetX:fe=this.offsetX,offsetY:ue=this.offsetY,dontFlip:pe=!1}={}){return new E({viewBox:this.viewBox.slice(),scale:re,rotation:U,offsetX:fe,offsetY:ue,dontFlip:pe})}convertToViewportPoint(re,U){return y.Util.applyTransform([re,U],this.transform)}convertToViewportRectangle(re){const U=y.Util.applyTransform([re[0],re[1]],this.transform),fe=y.Util.applyTransform([re[2],re[3]],this.transform);return[U[0],U[1],fe[0],fe[1]]}convertToPdfPoint(re,U){return y.Util.applyInverseTransform([re,U],this.transform)}}function d(K){const re=K.length;let U=0;for(;U<re&&""===K[U].trim();)U++;return"data:"===K.substring(U,U+5).toLowerCase()}function I(K,re){try{const{protocol:U}=re?new URL(K,re):new URL(K);return"http:"===U||"https:"===U}catch{return!1}}let m;L.PageViewport=E,L.RenderingCancelledException=class z extends y.BaseException{constructor(re,U){super(re,"RenderingCancelledException"),this.type=U}},L.StatTimer=class ${constructor(){this.started=Object.create(null),this.times=[]}time(re){re in this.started&&(0,y.warn)(`Timer is already running for ${re}`),this.started[re]=Date.now()}timeEnd(re){re in this.started||(0,y.warn)(`Timer has not been started for ${re}`),this.times.push({name:re,start:this.started[re],end:Date.now()}),delete this.started[re]}toString(){const re=[];let U=0;for(const fe of this.times){const ue=fe.name;ue.length>U&&(U=ue.length)}for(const fe of this.times){const ue=fe.end-fe.start;re.push(`${fe.name.padEnd(U)} ${ue}ms\n`)}return re.join("")}},L.PDFDateString=class T{static toDateObject(re){if(!re||"string"!=typeof re)return null;m||(m=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const U=m.exec(re);if(!U)return null;const fe=parseInt(U[1],10);let ue=parseInt(U[2],10);ue=ue>=1&&ue<=12?ue-1:0;let pe=parseInt(U[3],10);pe=pe>=1&&pe<=31?pe:1;let he=parseInt(U[4],10);he=he>=0&&he<=23?he:0;let de=parseInt(U[5],10);de=de>=0&&de<=59?de:0;let _e=parseInt(U[6],10);_e=_e>=0&&_e<=59?_e:0;const Ee=U[7]||"Z";let Ne=parseInt(U[8],10);Ne=Ne>=0&&Ne<=23?Ne:0;let ge=parseInt(U[9],10)||0;return ge=ge>=0&&ge<=59?ge:0,"-"===Ee?(he+=Ne,de+=ge):"+"===Ee&&(he-=Ne,de-=ge),new Date(Date.UTC(fe,ue,pe,he,de,_e))}}},(He,L,o)=>{Object.defineProperty(L,"__esModule",{value:!0}),L.BaseStandardFontDataFactory=L.BaseSVGFactory=L.BaseCanvasFactory=L.BaseCMapReaderFactory=void 0;var n=o(1);class y{constructor(){this.constructor===y&&(0,n.unreachable)("Cannot initialize BaseCanvasFactory.")}create(h,w){if(h<=0||w<=0)throw new Error("Invalid canvas size");const D=this._createCanvas(h,w);return{canvas:D,context:D.getContext("2d")}}reset(h,w,D){if(!h.canvas)throw new Error("Canvas is not specified");if(w<=0||D<=0)throw new Error("Invalid canvas size");h.canvas.width=w,h.canvas.height=D}destroy(h){if(!h.canvas)throw new Error("Canvas is not specified");h.canvas.width=0,h.canvas.height=0,h.canvas=null,h.context=null}_createCanvas(h,w){(0,n.unreachable)("Abstract method `_createCanvas` called.")}}L.BaseCanvasFactory=y;class a{constructor({baseUrl:h=null,isCompressed:w=!1}){this.constructor===a&&(0,n.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=h,this.isCompressed=w}fetch({name:h}){var w=this;return _asyncToGenerator(function*(){if(!w.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!h)throw new Error("CMap name must be specified.");const D=w.baseUrl+h+(w.isCompressed?".bcmap":"");return w._fetchData(D,w.isCompressed?n.CMapCompressionType.BINARY:n.CMapCompressionType.NONE).catch(E=>{throw new Error(`Unable to load ${w.isCompressed?"binary ":""}CMap at: ${D}`)})})()}_fetchData(h,w){(0,n.unreachable)("Abstract method `_fetchData` called.")}}L.BaseCMapReaderFactory=a;class Q{constructor({baseUrl:h=null}){this.constructor===Q&&(0,n.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=h}fetch({filename:h}){var w=this;return _asyncToGenerator(function*(){if(!w.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!h)throw new Error("Font filename must be specified.");const D=`${w.baseUrl}${h}`;return w._fetchData(D).catch(x=>{throw new Error(`Unable to load font data at: ${D}`)})})()}_fetchData(h){(0,n.unreachable)("Abstract method `_fetchData` called.")}}L.BaseStandardFontDataFactory=Q;class ie{constructor(){this.constructor===ie&&(0,n.unreachable)("Cannot initialize BaseSVGFactory.")}create(h,w){if(h<=0||w<=0)throw new Error("Invalid SVG dimensions");const D=this._createSVG("svg:svg");return D.setAttribute("version","1.1"),D.setAttribute("width",`${h}px`),D.setAttribute("height",`${w}px`),D.setAttribute("preserveAspectRatio","none"),D.setAttribute("viewBox",`0 0 ${h} ${w}`),D}createElement(h){if("string"!=typeof h)throw new Error("Invalid SVG element type");return this._createSVG(h)}_createSVG(h){(0,n.unreachable)("Abstract method `_createSVG` called.")}}L.BaseSVGFactory=ie},(He,L,o)=>{Object.defineProperty(L,"__esModule",{value:!0}),L.FontLoader=L.FontFaceObject=void 0;var n=o(1);class y{constructor({docId:Z,onUnsupportedFeature:h,ownerDocument:w=globalThis.document,styleElement:D=null}){this.constructor===y&&(0,n.unreachable)("Cannot initialize BaseFontLoader."),this.docId=Z,this._onUnsupportedFeature=h,this._document=w,this.nativeFontFaces=[],this.styleElement=null}addNativeFontFace(Z){this.nativeFontFaces.push(Z),this._document.fonts.add(Z)}insertRule(Z){let h=this.styleElement;h||(h=this.styleElement=this._document.createElement("style"),h.id=`PDFJS_FONT_STYLE_TAG_${this.docId}`,this._document.documentElement.getElementsByTagName("head")[0].appendChild(h));const w=h.sheet;w.insertRule(Z,w.cssRules.length)}clear(){for(const Z of this.nativeFontFaces)this._document.fonts.delete(Z);this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}bind(Z){var h=this;return _asyncToGenerator(function*(){if(Z.attached||Z.missingFile)return;if(Z.attached=!0,h.isFontLoadingAPISupported){const D=Z.createNativeFontFace();if(D){h.addNativeFontFace(D);try{yield D.loaded}catch(x){throw h._onUnsupportedFeature({featureId:n.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,n.warn)(`Failed to load font '${D.family}': '${x}'.`),Z.disableFontFace=!0,x}}return}const w=Z.createFontFaceRule();if(w){if(h.insertRule(w),h.isSyncFontLoadingSupported)return;yield new Promise(D=>{const x=h._queueLoadingCallback(D);h._prepareFontLoadEvent([w],[Z],x)})}})()}_queueLoadingCallback(Z){(0,n.unreachable)("Abstract method `_queueLoadingCallback`.")}get isFontLoadingAPISupported(){return(0,n.shadow)(this,"isFontLoadingAPISupported",!!this._document?.fonts)}get isSyncFontLoadingSupported(){(0,n.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}get _loadTestFont(){(0,n.unreachable)("Abstract method `_loadTestFont`.")}_prepareFontLoadEvent(Z,h,w){(0,n.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}let a;L.FontLoader=a,L.FontLoader=a=class extends y{constructor(Z){super(Z),this.loadingContext={requests:[],nextRequestId:0},this.loadTestFontId=0}get isSyncFontLoadingSupported(){let Z=!1;return(typeof navigator>"u"||/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent)?.[1]>=14)&&(Z=!0),(0,n.shadow)(this,"isSyncFontLoadingSupported",Z)}_queueLoadingCallback(Z){const w=this.loadingContext,D={id:"pdfjs-font-loading-"+w.nextRequestId++,done:!1,complete:function h(){for((0,n.assert)(!D.done,"completeRequest() cannot be called twice."),D.done=!0;w.requests.length>0&&w.requests[0].done;){const x=w.requests.shift();setTimeout(x.callback,0)}},callback:Z};return w.requests.push(D),D}get _loadTestFont(){return(0,n.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}_prepareFontLoadEvent(Z,h,w){function D(fe,ue){return fe.charCodeAt(ue)<<24|fe.charCodeAt(ue+1)<<16|fe.charCodeAt(ue+2)<<8|255&fe.charCodeAt(ue+3)}function x(fe,ue,pe,he){return fe.substring(0,ue)+he+fe.substring(ue+pe)}let E,z;const d=this._document.createElement("canvas");d.width=1,d.height=1;const C=d.getContext("2d");let P=0;const $=`lt${Date.now()}${this.loadTestFontId++}`;let I=this._loadTestFont;I=x(I,976,$.length,$);const m=1482184792;let T=D(I,16);for(E=0,z=$.length-3;E<z;E+=4)T=T-m+D($,E)|0;E<$.length&&(T=T-m+D($+"XXX",E)|0),I=x(I,16,4,(0,n.string32)(T));const W=`url(data:font/opentype;base64,${btoa(I)});`;this.insertRule(`@font-face {font-family:"${$}";src:${W}}`);const re=[];for(const fe of h)re.push(fe.loadedName);re.push($);const U=this._document.createElement("div");U.style.visibility="hidden",U.style.width=U.style.height="10px",U.style.position="absolute",U.style.top=U.style.left="0px";for(const fe of re){const ue=this._document.createElement("span");ue.textContent="Hi",ue.style.fontFamily=fe,U.appendChild(ue)}this._document.body.appendChild(U),function k(fe,ue){if(P++,P>30)return(0,n.warn)("Load test font never loaded."),void ue();C.font="30px "+fe,C.fillText(".",0,20),C.getImageData(0,0,1,1).data[3]>0?ue():setTimeout(k.bind(null,fe,ue))}($,()=>{U.remove(),w.complete()})}},L.FontFaceObject=class Q{constructor(Z,{isEvalSupported:h=!0,disableFontFace:w=!1,ignoreErrors:D=!1,onUnsupportedFeature:x,fontRegistry:E=null}){this.compiledGlyphs=Object.create(null);for(const z in Z)this[z]=Z[z];this.isEvalSupported=!1!==h,this.disableFontFace=!0===w,this.ignoreErrors=!0===D,this._onUnsupportedFeature=x,this.fontRegistry=E}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let Z;if(this.cssFontInfo){const h={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(h.style=`oblique ${this.cssFontInfo.italicAngle}deg`),Z=new FontFace(this.cssFontInfo.fontFamily,this.data,h)}else Z=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),Z}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const Z=(0,n.bytesToString)(this.data),h=`url(data:${this.mimetype};base64,${btoa(Z)});`;let w;if(this.cssFontInfo){let D=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(D+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),w=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${D}src:${h}}`}else w=`@font-face {font-family:"${this.loadedName}";src:${h}}`;return this.fontRegistry&&this.fontRegistry.registerFont(this,h),w}getPathGenerator(Z,h){if(void 0!==this.compiledGlyphs[h])return this.compiledGlyphs[h];let w;try{w=Z.get(this.loadedName+"_path_"+h)}catch(D){if(!this.ignoreErrors)throw D;return this._onUnsupportedFeature({featureId:n.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,n.warn)(`getPathGenerator - ignoring character: "${D}".`),this.compiledGlyphs[h]=function(x,E){}}if(this.isEvalSupported&&n.FeatureTest.isEvalSupported){const D=[];for(const x of w){const E=void 0!==x.args?x.args.join(","):"";D.push("c.",x.cmd,"(",E,");\n")}return this.compiledGlyphs[h]=new Function("c","size",D.join(""))}return this.compiledGlyphs[h]=function(D,x){for(const E of w)"scale"===E.cmd&&(E.args=[x,-x]),D[E.cmd].apply(D,E.args)}}}},(He,L,o)=>{Object.defineProperty(L,"__esModule",{value:!0}),L.AnnotationStorage=void 0;var n=o(9),y=o(1);L.AnnotationStorage=class a{constructor(){this._storage=new Map,this._modified=!1,this.onSetModified=null,this.onResetModified=null}getValue(ie,Z){const h=this._storage.get(ie);return void 0===h?Z:Object.assign(Z,h)}getRawValue(ie){return this._storage.get(ie)}setValue(ie,Z){const h=this._storage.get(ie);let w=!1;if(void 0!==h)for(const[D,x]of Object.entries(Z))h[D]!==x&&(w=!0,h[D]=x);else w=!0,this._storage.set(ie,Z);w&&this._setModified()}getAll(){return this._storage.size>0?(0,y.objectFromMap)(this._storage):null}get size(){return this._storage.size}_setModified(){this._modified||(this._modified=!0,"function"==typeof this.onSetModified&&this.onSetModified())}resetModified(){this._modified&&(this._modified=!1,"function"==typeof this.onResetModified&&this.onResetModified())}get serializable(){return this._storage.size>0?this._storage:null}get hash(){const ie=new n.MurmurHash3_64;for(const[Z,h]of this._storage)ie.update(`${Z}:${JSON.stringify(h)}`);return ie.hexdigest()}}},(He,L,o)=>{Object.defineProperty(L,"__esModule",{value:!0}),L.MurmurHash3_64=void 0;var n=o(1);const y=3285377520,a=4294901760,Q=65535;L.MurmurHash3_64=class ie{constructor(h){this.h1=h?4294967295&h:y,this.h2=h?4294967295&h:y}update(h){let w,D;if("string"==typeof h){w=new Uint8Array(2*h.length),D=0;for(let m=0,T=h.length;m<T;m++){const W=h.charCodeAt(m);W<=255?w[D++]=W:(w[D++]=W>>>8,w[D++]=255&W)}}else{if(!(0,n.isArrayBuffer)(h))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");w=h.slice(),D=w.byteLength}const x=D>>2,E=D-4*x,z=new Uint32Array(w.buffer,0,x);let d=0,C=0,P=this.h1,k=this.h2;const $=3432918353,I=461845907,g=$&Q,f=I&Q;for(let m=0;m<x;m++)1&m?(d=z[m],d=d*$&a|d*g&Q,d=d<<15|d>>>17,d=d*I&a|d*f&Q,P^=d,P=P<<13|P>>>19,P=5*P+3864292196):(C=z[m],C=C*$&a|C*g&Q,C=C<<15|C>>>17,C=C*I&a|C*f&Q,k^=C,k=k<<13|k>>>19,k=5*k+3864292196);switch(d=0,E){case 3:d^=w[4*x+2]<<16;case 2:d^=w[4*x+1]<<8;case 1:d^=w[4*x],d=d*$&a|d*g&Q,d=d<<15|d>>>17,d=d*I&a|d*f&Q,1&x?P^=d:k^=d}this.h1=P,this.h2=k}hexdigest(){let h=this.h1,w=this.h2;h^=w>>>1,h=3981806797*h&a|36045*h&Q,w=4283543511*w&a|(2950163797*(w<<16|h>>>16)&a)>>>16,h^=w>>>1,h=444984403*h&a|60499*h&Q,w=3301882366*w&a|(3120437893*(w<<16|h>>>16)&a)>>>16,h^=w>>>1;const D=(h>>>0).toString(16),x=(w>>>0).toString(16);return D.padStart(8,"0")+x.padStart(8,"0")}}},(He,L,o)=>{Object.defineProperty(L,"__esModule",{value:!0}),L.CanvasGraphics=void 0;var n=o(1),y=o(11),a=o(12),Q=o(3),ie=o(5);const w=4096,d=16;function k(q){if(q._transformStack&&(q._transformStack=[]),!q.mozCurrentTransform){q._originalSave=q.save,q._originalRestore=q.restore,q._originalRotate=q.rotate,q._originalScale=q.scale,q._originalTranslate=q.translate,q._originalTransform=q.transform,q._originalSetTransform=q.setTransform,q._originalResetTransform=q.resetTransform,q._transformMatrix=q._transformMatrix||[1,0,0,1,0,0],q._transformStack=[];try{const u=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(q),"lineWidth");q._setLineWidth=u.set,q._getLineWidth=u.get,Object.defineProperty(q,"lineWidth",{set:function(N){this._setLineWidth(1.000001*N)},get:function(){return this._getLineWidth()}})}catch{}Object.defineProperty(q,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(q,"mozCurrentTransformInverse",{get:function(){const[p,N,G,R,ne,S]=this._transformMatrix,se=p*R-N*G,Me=N*G-p*R;return[R/se,N/Me,G/Me,p/se,(R*ne-G*S)/Me,(N*ne-p*S)/se]}}),q.save=function(){const p=this._transformMatrix;this._transformStack.push(p),this._transformMatrix=p.slice(0,6),this._originalSave()},q.restore=function(){0===this._transformStack.length&&(0,n.warn)("Tried to restore a ctx when the stack was already empty.");const p=this._transformStack.pop();p&&(this._transformMatrix=p,this._originalRestore())},q.translate=function(p,N){const G=this._transformMatrix;G[4]=G[0]*p+G[2]*N+G[4],G[5]=G[1]*p+G[3]*N+G[5],this._originalTranslate(p,N)},q.scale=function(p,N){const G=this._transformMatrix;G[0]*=p,G[1]*=p,G[2]*=N,G[3]*=N,this._originalScale(p,N)},q.transform=function(p,N,G,R,ne,S){const se=this._transformMatrix;this._transformMatrix=[se[0]*p+se[2]*N,se[1]*p+se[3]*N,se[0]*G+se[2]*R,se[1]*G+se[3]*R,se[0]*ne+se[2]*S+se[4],se[1]*ne+se[3]*S+se[5]],q._originalTransform(p,N,G,R,ne,S)},q.setTransform=function(p,N,G,R,ne,S){this._transformMatrix=[p,N,G,R,ne,S],q._originalSetTransform(p,N,G,R,ne,S)},q.resetTransform=function(){this._transformMatrix=[1,0,0,1,0,0],q._originalResetTransform()},q.rotate=function(p){const N=Math.cos(p),G=Math.sin(p),R=this._transformMatrix;this._transformMatrix=[R[0]*N+R[2]*G,R[1]*N+R[3]*G,R[0]*-G+R[2]*N,R[1]*-G+R[3]*N,R[4],R[5]],this._originalRotate(p)}}}class ${constructor(u){this.canvasFactory=u,this.cache=Object.create(null)}getCanvas(u,p,N,G){let R;return void 0!==this.cache[u]?(R=this.cache[u],this.canvasFactory.reset(R,p,N),R.context.setTransform(1,0,0,1,0,0)):(R=this.canvasFactory.create(p,N),this.cache[u]=R),G&&k(R.context),R}delete(u){delete this.cache[u]}clear(){for(const u in this.cache)this.canvasFactory.destroy(this.cache[u]),delete this.cache[u]}}function I(q,u,p,N,G,R,ne,S,se,Me){const[Fe,Re,je,at,ft,Qe]=q.mozCurrentTransform;if(0===Re&&0===je){const ht=Math.round(ne*Fe+ft),Rt=Math.round(S*at+Qe),Ut=Math.abs(Math.round((ne+se)*Fe+ft)-ht)||1,it=Math.abs(Math.round((S+Me)*at+Qe)-Rt)||1;return q.setTransform(Math.sign(Fe),0,0,Math.sign(at),ht,Rt),q.drawImage(u,p,N,G,R,0,0,Ut,it),q.setTransform(Fe,Re,je,at,ft,Qe),[Ut,it]}if(0===Fe&&0===at){const ht=Math.round(S*je+ft),Rt=Math.round(ne*Re+Qe),Ut=Math.abs(Math.round((S+Me)*je+ft)-ht)||1,it=Math.abs(Math.round((ne+se)*Re+Qe)-Rt)||1;return q.setTransform(0,Math.sign(Re),Math.sign(je),0,ht,Rt),q.drawImage(u,p,N,G,R,0,0,it,Ut),q.setTransform(Fe,Re,je,at,ft,Qe),[it,Ut]}return q.drawImage(u,p,N,G,R,ne,S,se,Me),[Math.hypot(Fe,Re)*se,Math.hypot(je,at)*Me]}class f{constructor(u,p){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=n.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=n.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=n.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps=null,this.startNewPathAndClipBox([0,0,u,p])}clone(){const u=Object.create(this);return u.clipBox=this.clipBox.slice(),u}setCurrentPoint(u,p){this.x=u,this.y=p}updatePathMinMax(u,p,N){[p,N]=n.Util.applyTransform([p,N],u),this.minX=Math.min(this.minX,p),this.minY=Math.min(this.minY,N),this.maxX=Math.max(this.maxX,p),this.maxY=Math.max(this.maxY,N)}updateRectMinMax(u,p){const N=n.Util.applyTransform(p,u),G=n.Util.applyTransform(p.slice(2),u);this.minX=Math.min(this.minX,N[0],G[0]),this.minY=Math.min(this.minY,N[1],G[1]),this.maxX=Math.max(this.maxX,N[0],G[0]),this.maxY=Math.max(this.maxY,N[1],G[1])}updateScalingPathMinMax(u,p){n.Util.scaleMinMax(u,p),this.minX=Math.min(this.minX,p[0]),this.maxX=Math.max(this.maxX,p[1]),this.minY=Math.min(this.minY,p[2]),this.maxY=Math.max(this.maxY,p[3])}updateCurvePathMinMax(u,p,N,G,R,ne,S,se,Me,Fe){const Re=n.Util.bezierBoundingBox(p,N,G,R,ne,S,se,Me);if(Fe)return Fe[0]=Math.min(Fe[0],Re[0],Re[2]),Fe[1]=Math.max(Fe[1],Re[0],Re[2]),Fe[2]=Math.min(Fe[2],Re[1],Re[3]),void(Fe[3]=Math.max(Fe[3],Re[1],Re[3]));this.updateRectMinMax(u,Re)}getPathBoundingBox(u=y.PathType.FILL,p=null){const N=[this.minX,this.minY,this.maxX,this.maxY];if(u===y.PathType.STROKE){p||(0,n.unreachable)("Stroke bounding box must include transform.");const G=n.Util.singularValueDecompose2dScale(p),R=G[0]*this.lineWidth/2,ne=G[1]*this.lineWidth/2;N[0]-=R,N[1]-=ne,N[2]+=R,N[3]+=ne}return N}updateClipFromPath(){const u=n.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(u||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(u){this.clipBox=u,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(u=y.PathType.FILL,p=null){return n.Util.intersect(this.clipBox,this.getPathBoundingBox(u,p))}}function m(q,u,p=null){if(typeof ImageData<"u"&&u instanceof ImageData)return void q.putImageData(u,0,0);const N=u.height,G=u.width,R=N%d,ne=(N-R)/d,S=0===R?ne:ne+1,se=q.createImageData(G,d);let Fe,Me=0;const Re=u.data,je=se.data;let at,ft,Qe,nt,_t,Ge,ht,It;if(p)switch(p.length){case 1:_t=p[0],Ge=p[0],ht=p[0],It=p[0];break;case 4:_t=p[0],Ge=p[1],ht=p[2],It=p[3]}if(u.kind===n.ImageKind.GRAYSCALE_1BPP){const Rt=Re.byteLength,At=new Uint32Array(je.buffer,0,je.byteLength>>2),Ut=At.length,Wt=G+7>>3;let it=4294967295,Bt=n.FeatureTest.isLittleEndian?4278190080:255;for(It&&255===It[0]&&0===It[255]&&([it,Bt]=[Bt,it]),at=0;at<S;at++){for(Qe=at<ne?d:R,Fe=0,ft=0;ft<Qe;ft++){const rt=Rt-Me;let Pt=0;const vt=rt>Wt?G:8*rt-7,$t=-8&vt;let ct=0,Be=0;for(;Pt<$t;Pt+=8)Be=Re[Me++],At[Fe++]=128&Be?it:Bt,At[Fe++]=64&Be?it:Bt,At[Fe++]=32&Be?it:Bt,At[Fe++]=16&Be?it:Bt,At[Fe++]=8&Be?it:Bt,At[Fe++]=4&Be?it:Bt,At[Fe++]=2&Be?it:Bt,At[Fe++]=1&Be?it:Bt;for(;Pt<vt;Pt++)0===ct&&(Be=Re[Me++],ct=128),At[Fe++]=Be&ct?it:Bt,ct>>=1}for(;Fe<Ut;)At[Fe++]=0;q.putImageData(se,0,at*d)}}else if(u.kind===n.ImageKind.RGBA_32BPP){const Rt=!!(_t||Ge||ht);for(ft=0,nt=G*d*4,at=0;at<ne;at++){if(je.set(Re.subarray(Me,Me+nt)),Me+=nt,Rt)for(let At=0;At<nt;At+=4)_t&&(je[At+0]=_t[je[At+0]]),Ge&&(je[At+1]=Ge[je[At+1]]),ht&&(je[At+2]=ht[je[At+2]]);q.putImageData(se,0,ft),ft+=d}if(at<S){if(nt=G*R*4,je.set(Re.subarray(Me,Me+nt)),Rt)for(let At=0;At<nt;At+=4)_t&&(je[At+0]=_t[je[At+0]]),Ge&&(je[At+1]=Ge[je[At+1]]),ht&&(je[At+2]=ht[je[At+2]]);q.putImageData(se,0,ft)}}else{if(u.kind!==n.ImageKind.RGB_24BPP)throw new Error(`bad image kind: ${u.kind}`);{const Rt=!!(_t||Ge||ht);for(Qe=d,nt=G*Qe,at=0;at<S;at++){for(at>=ne&&(Qe=R,nt=G*Qe),Fe=0,ft=nt;ft--;)je[Fe++]=Re[Me++],je[Fe++]=Re[Me++],je[Fe++]=Re[Me++],je[Fe++]=255;if(Rt)for(let At=0;At<Fe;At+=4)_t&&(je[At+0]=_t[je[At+0]]),Ge&&(je[At+1]=Ge[je[At+1]]),ht&&(je[At+2]=ht[je[At+2]]);q.putImageData(se,0,at*d)}}}}function T(q,u){if(u.bitmap)return void q.drawImage(u.bitmap,0,0);const p=u.height,N=u.width,G=p%d,R=(p-G)/d,ne=0===G?R:R+1,S=q.createImageData(N,d);let se=0;const Me=u.data,Fe=S.data;for(let Re=0;Re<ne;Re++){const je=Re<R?d:G;({srcPos:se}=(0,a.applyMaskImageData)({src:Me,srcPos:se,dest:Fe,width:N,height:je})),q.putImageData(S,0,Re*d)}}function W(q,u){const p=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"];for(let N=0,G=p.length;N<G;N++){const R=p[N];void 0!==q[R]&&(u[R]=q[R])}void 0!==q.setLineDash&&(u.setLineDash(q.getLineDash()),u.lineDashOffset=q.lineDashOffset)}function K(q,u){q.strokeStyle=q.fillStyle=u||"#000000",q.fillRule="nonzero",q.globalAlpha=1,q.lineWidth=1,q.lineCap="butt",q.lineJoin="miter",q.miterLimit=10,q.globalCompositeOperation="source-over",q.font="10px sans-serif",void 0!==q.setLineDash&&(q.setLineDash([]),q.lineDashOffset=0)}function re(q,u,p,N){const G=q.length;for(let R=3;R<G;R+=4){const ne=q[R];if(0===ne)q[R-3]=u,q[R-2]=p,q[R-1]=N;else if(ne<255){const S=255-ne;q[R-3]=q[R-3]*ne+u*S>>8,q[R-2]=q[R-2]*ne+p*S>>8,q[R-1]=q[R-1]*ne+N*S>>8}}}function U(q,u,p){const N=q.length;for(let R=3;R<N;R+=4)u[R]=u[R]*(p?p[q[R]]:q[R])*.00392156862745098|0}function fe(q,u,p){const N=q.length;for(let G=3;G<N;G+=4){const R=77*q[G-3]+152*q[G-2]+28*q[G-1];u[G]=p?u[G]*p[R>>8]>>8:u[G]*R>>16}}function he(q,u){const p=n.Util.singularValueDecompose2dScale(q);p[0]=Math.fround(p[0]),p[1]=Math.fround(p[1]);const N=Math.fround((globalThis.devicePixelRatio||1)*ie.PixelsPerInch.PDF_TO_CSS_UNITS);return void 0!==u?u:p[0]<=N||p[1]<=N}const de=["butt","round","square"],_e=["miter","round","bevel"],Ee={},Ne={};class ge{constructor(u,p,N,G,R,ne,S,se){this.ctx=u,this.current=new f(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=p,this.objs=N,this.canvasFactory=G,this.imageLayer=R,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=[],this.optionalContentConfig=ne,this.cachedCanvases=new $(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=S,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.backgroundColor=se?.background||null,this.foregroundColor=se?.foreground||null,u&&k(u),this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(u,p=null){return"string"==typeof u?u.startsWith("g_")?this.commonObjs.get(u):this.objs.get(u):p}beginDrawing({transform:u,viewport:p,transparency:N=!1,background:G=null}){const R=this.ctx.canvas.width,ne=this.ctx.canvas.height,S=G||"#ffffff";if(this.ctx.save(),this.foregroundColor&&this.backgroundColor){this.ctx.fillStyle=this.foregroundColor;const se=this.foregroundColor=this.ctx.fillStyle;this.ctx.fillStyle=this.backgroundColor;const Me=this.backgroundColor=this.ctx.fillStyle;let Fe=!0,Re=S;if(this.ctx.fillStyle=S,Re=this.ctx.fillStyle,Fe="string"==typeof Re&&/^#[0-9A-Fa-f]{6}$/.test(Re),"#000000"===se&&"#ffffff"===Me||se===Me||!Fe)this.foregroundColor=this.backgroundColor=null;else{const je=parseInt(Re.slice(1),16),ft=(je&&65280)>>8,Qe=je&&255,nt=Ge=>(Ge/=255)<=.03928?Ge/12.92:((Ge+.055)/1.055)**2.4,_t=Math.round(.2126*nt((je&&16711680)>>16)+.7152*nt(ft)+.0722*nt(Qe));this.selectColor=(Ge,ht,It)=>{const Rt=.2126*nt(Ge)+.7152*nt(ht)+.0722*nt(It);return Math.round(Rt)===_t?Me:se}}}if(this.ctx.fillStyle=this.backgroundColor||S,this.ctx.fillRect(0,0,R,ne),this.ctx.restore(),N){const se=this.cachedCanvases.getCanvas("transparent",R,ne,!0);this.compositeCtx=this.ctx,this.transparentCanvas=se.canvas,this.ctx=se.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),K(this.ctx,this.foregroundColor),u&&(this.ctx.transform.apply(this.ctx,u),this.outputScaleX=u[0],this.outputScaleY=u[0]),this.ctx.transform.apply(this.ctx,p.transform),this.viewportScale=p.scale,this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()}executeOperatorList(u,p,N,G){const R=u.argsArray,ne=u.fnArray;let S=p||0;const se=R.length;if(se===S)return S;const Me=se-S>10&&"function"==typeof N,Fe=Me?Date.now()+15:0;let Re=0;const je=this.commonObjs,at=this.objs;let ft;for(;;){if(void 0!==G&&S===G.nextBreakPoint)return G.breakIt(S,N),S;if(ft=ne[S],ft!==n.OPS.dependency)this[ft].apply(this,R[S]);else for(const Qe of R[S]){const nt=Qe.startsWith("g_")?je:at;if(!nt.has(Qe))return nt.get(Qe,N),S}if(S++,S===se)return S;if(Me&&++Re>10){if(Date.now()>Fe)return N(),S;Re=0}}}endDrawing(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const u of this._cachedBitmapsMap.values()){for(const p of u.values())typeof HTMLCanvasElement<"u"&&p instanceof HTMLCanvasElement&&(p.width=p.height=0);u.clear()}this._cachedBitmapsMap.clear(),this.imageLayer&&this.imageLayer.endLayout()}_scaleImage(u,p){const N=u.width,G=u.height;let Fe,Re,R=Math.max(Math.hypot(p[0],p[1]),1),ne=Math.max(Math.hypot(p[2],p[3]),1),S=N,se=G,Me="prescale1";for(;R>2&&S>1||ne>2&&se>1;){let je=S,at=se;R>2&&S>1&&(je=Math.ceil(S/2),R/=S/je),ne>2&&se>1&&(at=Math.ceil(se/2),ne/=se/at),Fe=this.cachedCanvases.getCanvas(Me,je,at,!1),Re=Fe.context,Re.clearRect(0,0,je,at),Re.drawImage(u,0,0,S,se,0,0,je,at),u=Fe.canvas,S=je,se=at,Me="prescale1"===Me?"prescale2":"prescale1"}return{img:u,paintWidth:S,paintHeight:se}}_createMaskCanvas(u){const p=this.ctx,{width:N,height:G}=u,R=this.current.fillColor,ne=this.current.patternFill,S=p.mozCurrentTransform;let se,Me,Fe,Re;if((u.bitmap||u.data)&&u.count>1){const Ut=u.bitmap||u.data.buffer,Wt=S.slice(0,4);Me=JSON.stringify(ne?Wt:[Wt,R]),se=this._cachedBitmapsMap.get(Ut),se||(se=new Map,this._cachedBitmapsMap.set(Ut,se));const it=se.get(Me);if(it&&!ne)return{canvas:it,offsetX:Math.round(Math.min(S[0],S[2])+S[4]),offsetY:Math.round(Math.min(S[1],S[3])+S[5])};Fe=it}Fe||(Re=this.cachedCanvases.getCanvas("maskCanvas",N,G,!1),T(Re.context,u));let je=n.Util.transform(S,[1/N,0,0,-1/G,0,0]);je=n.Util.transform(je,[1,0,0,1,0,-G]);const at=n.Util.applyTransform([0,0],je),ft=n.Util.applyTransform([N,G],je),Qe=n.Util.normalizeRect([at[0],at[1],ft[0],ft[1]]),nt=Math.round(Qe[2]-Qe[0])||1,_t=Math.round(Qe[3]-Qe[1])||1,Ge=this.cachedCanvases.getCanvas("fillCanvas",nt,_t,!0),ht=Ge.context,It=Math.min(at[0],ft[0]),Rt=Math.min(at[1],ft[1]);ht.translate(-It,-Rt),ht.transform.apply(ht,je),Fe||(Fe=this._scaleImage(Re.canvas,ht.mozCurrentTransformInverse),Fe=Fe.img,se&&ne&&se.set(Me,Fe)),ht.imageSmoothingEnabled=he(ht.mozCurrentTransform,u.interpolate),I(ht,Fe,0,0,Fe.width,Fe.height,0,0,N,G),ht.globalCompositeOperation="source-in";const At=n.Util.transform(ht.mozCurrentTransformInverse,[1,0,0,1,-It,-Rt]);return ht.fillStyle=ne?R.getPattern(p,this,At,y.PathType.FILL):R,ht.fillRect(0,0,N,G),se&&!ne&&(this.cachedCanvases.delete("fillCanvas"),se.set(Me,Ge.canvas)),{canvas:Ge.canvas,offsetX:Math.round(It),offsetY:Math.round(Rt)}}setLineWidth(u){u!==this.current.lineWidth&&(this._cachedScaleForStroking=null),this.current.lineWidth=u,this.ctx.lineWidth=u}setLineCap(u){this.ctx.lineCap=de[u]}setLineJoin(u){this.ctx.lineJoin=_e[u]}setMiterLimit(u){this.ctx.miterLimit=u}setDash(u,p){const N=this.ctx;void 0!==N.setLineDash&&(N.setLineDash(u),N.lineDashOffset=p)}setRenderingIntent(u){}setFlatness(u){}setGState(u){for(let p=0,N=u.length;p<N;p++){const G=u[p],ne=G[1];switch(G[0]){case"LW":this.setLineWidth(ne);break;case"LC":this.setLineCap(ne);break;case"LJ":this.setLineJoin(ne);break;case"ML":this.setMiterLimit(ne);break;case"D":this.setDash(ne[0],ne[1]);break;case"RI":this.setRenderingIntent(ne);break;case"FL":this.setFlatness(ne);break;case"Font":this.setFont(ne[0],ne[1]);break;case"CA":this.current.strokeAlpha=G[1];break;case"ca":this.current.fillAlpha=G[1],this.ctx.globalAlpha=G[1];break;case"BM":this.ctx.globalCompositeOperation=ne;break;case"SMask":this.current.activeSMask=ne?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.current.transferMaps=ne}}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const u=this.inSMaskMode;this.current.activeSMask&&!u?this.beginSMaskMode():!this.current.activeSMask&&u&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const G=this.cachedCanvases.getCanvas("smaskGroupAt"+this.groupLevel,this.ctx.canvas.width,this.ctx.canvas.height,!0);this.suspendedCtx=this.ctx,this.ctx=G.context;const R=this.ctx;R.setTransform.apply(R,this.suspendedCtx.mozCurrentTransform),W(this.suspendedCtx,R),function P(q,u){if(q._removeMirroring)throw new Error("Context is already forwarding operations.");q.__originalSave=q.save,q.__originalRestore=q.restore,q.__originalRotate=q.rotate,q.__originalScale=q.scale,q.__originalTranslate=q.translate,q.__originalTransform=q.transform,q.__originalSetTransform=q.setTransform,q.__originalResetTransform=q.resetTransform,q.__originalClip=q.clip,q.__originalMoveTo=q.moveTo,q.__originalLineTo=q.lineTo,q.__originalBezierCurveTo=q.bezierCurveTo,q.__originalRect=q.rect,q.__originalClosePath=q.closePath,q.__originalBeginPath=q.beginPath,q._removeMirroring=()=>{q.save=q.__originalSave,q.restore=q.__originalRestore,q.rotate=q.__originalRotate,q.scale=q.__originalScale,q.translate=q.__originalTranslate,q.transform=q.__originalTransform,q.setTransform=q.__originalSetTransform,q.resetTransform=q.__originalResetTransform,q.clip=q.__originalClip,q.moveTo=q.__originalMoveTo,q.lineTo=q.__originalLineTo,q.bezierCurveTo=q.__originalBezierCurveTo,q.rect=q.__originalRect,q.closePath=q.__originalClosePath,q.beginPath=q.__originalBeginPath,delete q._removeMirroring},q.save=function(){u.save(),this.__originalSave()},q.restore=function(){u.restore(),this.__originalRestore()},q.translate=function(N,G){u.translate(N,G),this.__originalTranslate(N,G)},q.scale=function(N,G){u.scale(N,G),this.__originalScale(N,G)},q.transform=function(N,G,R,ne,S,se){u.transform(N,G,R,ne,S,se),this.__originalTransform(N,G,R,ne,S,se)},q.setTransform=function(N,G,R,ne,S,se){u.setTransform(N,G,R,ne,S,se),this.__originalSetTransform(N,G,R,ne,S,se)},q.resetTransform=function(){u.resetTransform(),this.__originalResetTransform()},q.rotate=function(N){u.rotate(N),this.__originalRotate(N)},q.clip=function(N){u.clip(N),this.__originalClip(N)},q.moveTo=function(p,N){u.moveTo(p,N),this.__originalMoveTo(p,N)},q.lineTo=function(p,N){u.lineTo(p,N),this.__originalLineTo(p,N)},q.bezierCurveTo=function(p,N,G,R,ne,S){u.bezierCurveTo(p,N,G,R,ne,S),this.__originalBezierCurveTo(p,N,G,R,ne,S)},q.rect=function(p,N,G,R){u.rect(p,N,G,R),this.__originalRect(p,N,G,R)},q.closePath=function(){u.closePath(),this.__originalClosePath()},q.beginPath=function(){u.beginPath(),this.__originalBeginPath()}}(R,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),W(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(u){this.current.activeSMask&&(u?(u[0]=Math.floor(u[0]),u[1]=Math.floor(u[1]),u[2]=Math.ceil(u[2]),u[3]=Math.ceil(u[3])):u=[0,0,this.ctx.canvas.width,this.ctx.canvas.height],function pe(q,u,p,N){const G=N[0],R=N[1],ne=N[2]-G,S=N[3]-R;0===ne||0===S||(function ue(q,u,p,N,G,R,ne,S,se,Me,Fe){const Re=!!R,je=Re?R[0]:0,at=Re?R[1]:0,ft=Re?R[2]:0;let Qe;Qe="Luminosity"===G?fe:U;const _t=Math.min(N,Math.ceil(1048576/p));for(let Ge=0;Ge<N;Ge+=_t){const ht=Math.min(_t,N-Ge),It=q.getImageData(S-Me,Ge+(se-Fe),p,ht),Rt=u.getImageData(S,Ge+se,p,ht);Re&&re(It.data,je,at,ft),Qe(It.data,Rt.data,ne),u.putImageData(Rt,S,Ge+se)}}(u.context,p,ne,S,u.subtype,u.backdrop,u.transferMap,G,R,u.offsetX,u.offsetY),q.save(),q.globalAlpha=1,q.globalCompositeOperation="source-over",q.setTransform(1,0,0,1,0,0),q.drawImage(p.canvas,0,0),q.restore())}(this.suspendedCtx,this.current.activeSMask,this.ctx,u),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore())}save(){this.inSMaskMode?(W(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const u=this.current;this.stateStack.push(u),this.current=u.clone()}restore(){0===this.stateStack.length&&this.inSMaskMode&&this.endSMaskMode(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),W(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null)}transform(u,p,N,G,R,ne){this.ctx.transform(u,p,N,G,R,ne),this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null}constructPath(u,p,N){const G=this.ctx,R=this.current;let se,Me,ne=R.x,S=R.y;const Fe=G.mozCurrentTransform,Re=0===Fe[0]&&0===Fe[3]||0===Fe[1]&&0===Fe[2],je=Re?N.slice(0):null;for(let at=0,ft=0,Qe=u.length;at<Qe;at++)switch(0|u[at]){case n.OPS.rectangle:ne=p[ft++],S=p[ft++];const nt=p[ft++],_t=p[ft++],Ge=ne+nt,ht=S+_t;G.moveTo(ne,S),0===nt||0===_t?G.lineTo(Ge,ht):(G.lineTo(Ge,S),G.lineTo(Ge,ht),G.lineTo(ne,ht)),Re||R.updateRectMinMax(Fe,[ne,S,Ge,ht]),G.closePath();break;case n.OPS.moveTo:ne=p[ft++],S=p[ft++],G.moveTo(ne,S),Re||R.updatePathMinMax(Fe,ne,S);break;case n.OPS.lineTo:ne=p[ft++],S=p[ft++],G.lineTo(ne,S),Re||R.updatePathMinMax(Fe,ne,S);break;case n.OPS.curveTo:se=ne,Me=S,ne=p[ft+4],S=p[ft+5],G.bezierCurveTo(p[ft],p[ft+1],p[ft+2],p[ft+3],ne,S),R.updateCurvePathMinMax(Fe,se,Me,p[ft],p[ft+1],p[ft+2],p[ft+3],ne,S,je),ft+=6;break;case n.OPS.curveTo2:se=ne,Me=S,G.bezierCurveTo(ne,S,p[ft],p[ft+1],p[ft+2],p[ft+3]),R.updateCurvePathMinMax(Fe,se,Me,ne,S,p[ft],p[ft+1],p[ft+2],p[ft+3],je),ne=p[ft+2],S=p[ft+3],ft+=4;break;case n.OPS.curveTo3:se=ne,Me=S,ne=p[ft+2],S=p[ft+3],G.bezierCurveTo(p[ft],p[ft+1],ne,S,ne,S),R.updateCurvePathMinMax(Fe,se,Me,p[ft],p[ft+1],ne,S,ne,S,je),ft+=4;break;case n.OPS.closePath:G.closePath()}Re&&R.updateScalingPathMinMax(Fe,je),R.setCurrentPoint(ne,S)}closePath(){this.ctx.closePath()}stroke(u){u=!(typeof u<"u")||u;const p=this.ctx,N=this.current.strokeColor;p.globalAlpha=this.current.strokeAlpha,this.contentVisible&&("object"==typeof N&&N?.getPattern?(p.save(),p.strokeStyle=N.getPattern(p,this,p.mozCurrentTransformInverse,y.PathType.STROKE),this.rescaleAndStroke(!1),p.restore()):this.rescaleAndStroke(!0)),u&&this.consumePath(this.current.getClippedPathBoundingBox()),p.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(u){u=!(typeof u<"u")||u;const p=this.ctx,N=this.current.fillColor;let R=!1;this.current.patternFill&&(p.save(),p.fillStyle=N.getPattern(p,this,p.mozCurrentTransformInverse,y.PathType.FILL),R=!0);const ne=this.current.getClippedPathBoundingBox();this.contentVisible&&null!==ne&&(this.pendingEOFill?(p.fill("evenodd"),this.pendingEOFill=!1):p.fill()),R&&p.restore(),u&&this.consumePath(ne)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=Ee}eoClip(){this.pendingClip=Ne}beginText(){this.current.textMatrix=n.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const u=this.pendingTextPaths,p=this.ctx;if(void 0!==u){p.save(),p.beginPath();for(let N=0;N<u.length;N++){const G=u[N];p.setTransform.apply(p,G.transform),p.translate(G.x,G.y),G.addToPath(p,G.fontSize)}p.restore(),p.clip(),p.beginPath(),delete this.pendingTextPaths}else p.beginPath()}setCharSpacing(u){this.current.charSpacing=u}setWordSpacing(u){this.current.wordSpacing=u}setHScale(u){this.current.textHScale=u/100}setLeading(u){this.current.leading=-u}setFont(u,p){const N=this.commonObjs.get(u),G=this.current;if(!N)throw new Error(`Can't find font for ${u}`);if(G.fontMatrix=N.fontMatrix||n.FONT_IDENTITY_MATRIX,(0===G.fontMatrix[0]||0===G.fontMatrix[3])&&(0,n.warn)("Invalid font matrix for font "+u),p<0?(p=-p,G.fontDirection=-1):G.fontDirection=1,this.current.font=N,this.current.fontSize=p,N.isType3Font)return;let ne="normal";N.black?ne="900":N.bold&&(ne="bold");const S=N.italic?"italic":"normal",se=`"${N.loadedName||"sans-serif"}", ${N.fallbackName}`;let Me=p;p<16?Me=16:p>100&&(Me=100),this.current.fontSizeScale=p/Me,this.ctx.font=`${S} ${ne} ${Me}px ${se}`}setTextRenderingMode(u){this.current.textRenderingMode=u}setTextRise(u){this.current.textRise=u}moveText(u,p){this.current.x=this.current.lineX+=u,this.current.y=this.current.lineY+=p}setLeadingMoveText(u,p){this.setLeading(-p),this.moveText(u,p)}setTextMatrix(u,p,N,G,R,ne){this.current.textMatrix=[u,p,N,G,R,ne],this.current.textMatrixScale=Math.hypot(u,p),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(u,p,N,G){const R=this.ctx,ne=this.current,S=ne.font,se=ne.textRenderingMode,Me=ne.fontSize/ne.fontSizeScale,Fe=se&n.TextRenderingMode.FILL_STROKE_MASK,Re=!!(se&n.TextRenderingMode.ADD_TO_PATH_FLAG),je=ne.patternFill&&!S.missingFile;let at;(S.disableFontFace||Re||je)&&(at=S.getPathGenerator(this.commonObjs,u)),S.disableFontFace||je?(R.save(),R.translate(p,N),R.beginPath(),at(R,Me),G&&R.setTransform.apply(R,G),(Fe===n.TextRenderingMode.FILL||Fe===n.TextRenderingMode.FILL_STROKE)&&R.fill(),(Fe===n.TextRenderingMode.STROKE||Fe===n.TextRenderingMode.FILL_STROKE)&&R.stroke(),R.restore()):((Fe===n.TextRenderingMode.FILL||Fe===n.TextRenderingMode.FILL_STROKE)&&R.fillText(u,p,N),(Fe===n.TextRenderingMode.STROKE||Fe===n.TextRenderingMode.FILL_STROKE)&&R.strokeText(u,p,N)),Re&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:R.mozCurrentTransform,x:p,y:N,fontSize:Me,addToPath:at})}get isFontSubpixelAAEnabled(){const{context:u}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10,!1);u.scale(1.5,1),u.fillText("I",0,10);const p=u.getImageData(0,0,10,10).data;let N=!1;for(let G=3;G<p.length;G+=4)if(p[G]>0&&p[G]<255){N=!0;break}return(0,n.shadow)(this,"isFontSubpixelAAEnabled",N)}showText(u){const p=this.current,N=p.font;if(N.isType3Font)return this.showType3Text(u);const G=p.fontSize;if(0===G)return;const R=this.ctx,ne=p.fontSizeScale,S=p.charSpacing,se=p.wordSpacing,Me=p.fontDirection,Fe=p.textHScale*Me,Re=u.length,je=N.vertical,at=je?1:-1,ft=N.defaultVMetrics,Qe=G*p.fontMatrix[0],nt=p.textRenderingMode===n.TextRenderingMode.FILL&&!N.disableFontFace&&!p.patternFill;let _t;if(R.save(),R.transform.apply(R,p.textMatrix),R.translate(p.x,p.y+p.textRise),R.scale(Fe,Me>0?-1:1),p.patternFill){R.save();const At=p.fillColor.getPattern(R,this,R.mozCurrentTransformInverse,y.PathType.FILL);_t=R.mozCurrentTransform,R.restore(),R.fillStyle=At}let Ge=p.lineWidth;const ht=p.textMatrixScale;if(0===ht||0===Ge){const At=p.textRenderingMode&n.TextRenderingMode.FILL_STROKE_MASK;(At===n.TextRenderingMode.STROKE||At===n.TextRenderingMode.FILL_STROKE)&&(Ge=this.getSinglePixelWidth())}else Ge/=ht;1!==ne&&(R.scale(ne,ne),Ge/=ne),R.lineWidth=Ge;let Rt,It=0;for(Rt=0;Rt<Re;++Rt){const At=u[Rt];if("number"==typeof At){It+=at*At*G/1e3;continue}let Ut=!1;const Wt=(At.isSpace?se:0)+S,it=At.fontChar,Bt=At.accent;let rt,Pt,$t,vt=At.width;if(je){const ct=At.vmetric||ft,Be=-(At.vmetric?ct[1]:.5*vt)*Qe;vt=ct?-ct[0]:vt,rt=Be/ne,Pt=(It+ct[2]*Qe)/ne}else rt=It/ne,Pt=0;if(N.remeasure&&vt>0){const ct=1e3*R.measureText(it).width/G*ne;if(vt<ct&&this.isFontSubpixelAAEnabled){const Be=vt/ct;Ut=!0,R.save(),R.scale(Be,1),rt/=Be}else vt!==ct&&(rt+=(vt-ct)/2e3*G/ne)}this.contentVisible&&(At.isInFont||N.missingFile)&&(nt&&!Bt?R.fillText(it,rt,Pt):(this.paintChar(it,rt,Pt,_t),Bt&&this.paintChar(Bt.fontChar,rt+G*Bt.offset.x/ne,Pt-G*Bt.offset.y/ne,_t))),$t=je?vt*Qe-Wt*Me:vt*Qe+Wt*Me,It+=$t,Ut&&R.restore()}je?p.y-=It:p.x+=It*Fe,R.restore(),this.compose()}showType3Text(u){const p=this.ctx,N=this.current,G=N.font,R=N.fontSize,ne=N.fontDirection,S=G.vertical?1:-1,se=N.charSpacing,Me=N.wordSpacing,Fe=N.textHScale*ne,Re=N.fontMatrix||n.FONT_IDENTITY_MATRIX,je=u.length;let ft,Qe,nt,_t;if(N.textRenderingMode!==n.TextRenderingMode.INVISIBLE&&0!==R){for(this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null,p.save(),p.transform.apply(p,N.textMatrix),p.translate(N.x,N.y),p.scale(Fe,ne),ft=0;ft<je;++ft){if(Qe=u[ft],"number"==typeof Qe){_t=S*Qe*R/1e3,this.ctx.translate(_t,0),N.x+=_t*Fe;continue}const Ge=(Qe.isSpace?Me:0)+se,ht=G.charProcOperatorList[Qe.operatorListId];ht?(this.contentVisible&&(this.processingType3=Qe,this.save(),p.scale(R,R),p.transform.apply(p,Re),this.executeOperatorList(ht),this.restore()),nt=n.Util.applyTransform([Qe.width,0],Re)[0]*R+Ge,p.translate(nt,0),N.x+=nt*Fe):(0,n.warn)(`Type3 character "${Qe.operatorListId}" is not available.`)}p.restore(),this.processingType3=null}}setCharWidth(u,p){}setCharWidthAndBounds(u,p,N,G,R,ne){this.ctx.rect(N,G,R-N,ne-G),this.ctx.clip(),this.endPath()}getColorN_Pattern(u){let p;if("TilingPattern"===u[0]){const N=u[1],G=this.baseTransform||this.ctx.mozCurrentTransform.slice();p=new y.TilingPattern(u,N,this.ctx,{createCanvasGraphics:ne=>new ge(ne,this.commonObjs,this.objs,this.canvasFactory)},G)}else p=this._getPattern(u[1],u[2]);return p}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(u,p,N){const G=this.selectColor?.(u,p,N)||n.Util.makeHexColor(u,p,N);this.ctx.strokeStyle=G,this.current.strokeColor=G}setFillRGBColor(u,p,N){const G=this.selectColor?.(u,p,N)||n.Util.makeHexColor(u,p,N);this.ctx.fillStyle=G,this.current.fillColor=G,this.current.patternFill=!1}_getPattern(u,p=null){let N;return this.cachedPatterns.has(u)?N=this.cachedPatterns.get(u):(N=(0,y.getShadingPattern)(this.objs.get(u)),this.cachedPatterns.set(u,N)),p&&(N.matrix=p),N}shadingFill(u){if(!this.contentVisible)return;const p=this.ctx;this.save();const N=this._getPattern(u);p.fillStyle=N.getPattern(p,this,p.mozCurrentTransformInverse,y.PathType.SHADING);const G=p.mozCurrentTransformInverse;if(G){const R=p.canvas,ne=R.width,S=R.height,se=n.Util.applyTransform([0,0],G),Me=n.Util.applyTransform([0,S],G),Fe=n.Util.applyTransform([ne,0],G),Re=n.Util.applyTransform([ne,S],G),je=Math.min(se[0],Me[0],Fe[0],Re[0]),at=Math.min(se[1],Me[1],Fe[1],Re[1]),ft=Math.max(se[0],Me[0],Fe[0],Re[0]),Qe=Math.max(se[1],Me[1],Fe[1],Re[1]);this.ctx.fillRect(je,at,ft-je,Qe-at)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){(0,n.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,n.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(u,p){this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(u)&&6===u.length&&this.transform.apply(this,u),this.baseTransform=this.ctx.mozCurrentTransform,p)&&(this.ctx.rect(p[0],p[1],p[2]-p[0],p[3]-p[1]),this.current.updateRectMinMax(this.ctx.mozCurrentTransform,p),this.clip(),this.endPath())}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(u){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const p=this.ctx;u.isolated||(0,n.info)("TODO: Support non-isolated groups."),u.knockout&&(0,n.warn)("Knockout groups not supported.");const N=p.mozCurrentTransform;if(u.matrix&&p.transform.apply(p,u.matrix),!u.bbox)throw new Error("Bounding box is required.");let G=n.Util.getAxialAlignedBoundingBox(u.bbox,p.mozCurrentTransform);G=n.Util.intersect(G,[0,0,p.canvas.width,p.canvas.height])||[0,0,0,0];const ne=Math.floor(G[0]),S=Math.floor(G[1]);let se=Math.max(Math.ceil(G[2])-ne,1),Me=Math.max(Math.ceil(G[3])-S,1),Fe=1,Re=1;se>w&&(Fe=se/w,se=w),Me>w&&(Re=Me/w,Me=w),this.current.startNewPathAndClipBox([0,0,se,Me]);let je="groupAt"+this.groupLevel;u.smask&&(je+="_smask_"+this.smaskCounter++%2);const at=this.cachedCanvases.getCanvas(je,se,Me,!0),ft=at.context;ft.scale(1/Fe,1/Re),ft.translate(-ne,-S),ft.transform.apply(ft,N),u.smask?this.smaskStack.push({canvas:at.canvas,context:ft,offsetX:ne,offsetY:S,scaleX:Fe,scaleY:Re,subtype:u.smask.subtype,backdrop:u.smask.backdrop,transferMap:u.smask.transferMap||null,startTransformInverse:null}):(p.setTransform(1,0,0,1,0,0),p.translate(ne,S),p.scale(Fe,Re),p.save()),W(p,ft),this.ctx=ft,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(p),this.groupLevel++}endGroup(u){if(!this.contentVisible)return;this.groupLevel--;const p=this.ctx,N=this.groupStack.pop();if(this.ctx=N,this.ctx.imageSmoothingEnabled=!1,u.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const G=this.ctx.mozCurrentTransform;this.restore(),this.ctx.save(),this.ctx.setTransform.apply(this.ctx,G);const R=n.Util.getAxialAlignedBoundingBox([0,0,p.canvas.width,p.canvas.height],G);this.ctx.drawImage(p.canvas,0,0),this.ctx.restore(),this.compose(R)}}beginAnnotations(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)}endAnnotations(){this.restore()}beginAnnotation(u,p,N,G,R){if(this.save(),Array.isArray(p)&&4===p.length){const ne=p[2]-p[0],S=p[3]-p[1];if(R&&this.annotationCanvasMap){(N=N.slice())[4]-=p[0],N[5]-=p[1],(p=p.slice())[0]=p[1]=0,p[2]=ne,p[3]=S;const[se,Me]=n.Util.singularValueDecompose2dScale(this.ctx.mozCurrentTransform),{viewportScale:Fe}=this,Re=Math.ceil(ne*this.outputScaleX*Fe),je=Math.ceil(S*this.outputScaleY*Fe);this.annotationCanvas=this.canvasFactory.create(Re,je);const{canvas:at,context:ft}=this.annotationCanvas,Qe=`var(--zoom-factor) * ${ie.PixelsPerInch.PDF_TO_CSS_UNITS}`;at.style.width=`calc(${ne}px * ${Qe})`,at.style.height=`calc(${S}px * ${Qe})`,this.annotationCanvasMap.set(u,at),this.annotationCanvas.savedCtx=this.ctx,this.ctx=ft,this.ctx.setTransform(se,0,0,-Me,0,S*Me),k(this.ctx),K(this.ctx,this.foregroundColor)}else K(this.ctx,this.foregroundColor),this.ctx.rect(p[0],p[1],ne,S),this.ctx.clip(),this.endPath()}this.current=new f(this.ctx.canvas.width,this.ctx.canvas.height),this.transform.apply(this,N),this.transform.apply(this,G)}endAnnotation(){this.annotationCanvas&&(this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas),this.restore()}paintImageMaskXObject(u){if(!this.contentVisible)return;const p=u.count;(u=this.getObject(u.data,u)).count=p;const N=this.ctx,G=this.processingType3;if(G&&(void 0===G.compiled&&(G.compiled=function g(q){const{width:u,height:p}=q;if(u>1e3||p>1e3)return null;const G=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),R=u+1;let S,se,Me,ne=new Uint8Array(R*(p+1));const Fe=u+7&-8;let Re=new Uint8Array(Fe*p),je=0;for(const ht of q.data){let It=128;for(;It>0;)Re[je++]=ht&It?0:255,It>>=1}let at=0;for(je=0,0!==Re[je]&&(ne[0]=1,++at),se=1;se<u;se++)Re[je]!==Re[je+1]&&(ne[se]=Re[je]?2:1,++at),je++;for(0!==Re[je]&&(ne[se]=2,++at),S=1;S<p;S++){je=S*Fe,Me=S*R,Re[je-Fe]!==Re[je]&&(ne[Me]=Re[je]?1:8,++at);let ht=(Re[je]?4:0)+(Re[je-Fe]?8:0);for(se=1;se<u;se++)ht=(ht>>2)+(Re[je+1]?4:0)+(Re[je-Fe+1]?8:0),G[ht]&&(ne[Me+se]=G[ht],++at),je++;if(Re[je-Fe]!==Re[je]&&(ne[Me+se]=Re[je]?2:4,++at),at>1e3)return null}for(je=Fe*(p-1),Me=S*R,0!==Re[je]&&(ne[Me]=8,++at),se=1;se<u;se++)Re[je]!==Re[je+1]&&(ne[Me+se]=Re[je]?4:8,++at),je++;if(0!==Re[je]&&(ne[Me+se]=4,++at),at>1e3)return null;const ft=new Int32Array([0,R,-1,0,-R,0,0,0,1]);let Qe,nt,_t;for(Q.isNodeJS?nt=[]:Qe=new Path2D,S=0;at&&S<=p;S++){let ht=S*R;const It=ht+u;for(;ht<It&&!ne[ht];)ht++;if(ht===It)continue;Qe?Qe.moveTo(ht%R,S):_t=[ht%R,S];const Rt=ht;let At=ne[ht];do{const Ut=ft[At];do{ht+=Ut}while(!ne[ht]);const Wt=ne[ht];5!==Wt&&10!==Wt?(At=Wt,ne[ht]=0):(At=Wt&51*At>>4,ne[ht]&=At>>2|At<<2),Qe?Qe.lineTo(ht%R,ht/R|0):_t.push(ht%R,ht/R|0),ne[ht]||--at}while(Rt!==ht);Qe||nt.push(_t),--S}return Re=null,ne=null,function(ht){if(ht.save(),ht.scale(1/u,-1/p),ht.translate(0,-p),Qe)ht.fill(Qe);else{ht.beginPath();for(const It of nt){ht.moveTo(It[0],It[1]);for(let Rt=2,At=It.length;Rt<At;Rt+=2)ht.lineTo(It[Rt],It[Rt+1])}ht.fill()}ht.beginPath(),ht.restore()}}(u)),G.compiled))return void G.compiled(N);const R=this._createMaskCanvas(u),ne=R.canvas;N.save(),N.setTransform(1,0,0,1,0,0),N.drawImage(ne,R.offsetX,R.offsetY),N.restore(),this.compose()}paintImageMaskXObjectRepeat(u,p,N=0,G=0,R,ne){if(!this.contentVisible)return;u=this.getObject(u.data,u);const S=this.ctx;S.save();const se=S.mozCurrentTransform;S.transform(p,N,G,R,0,0);const Me=this._createMaskCanvas(u);S.setTransform(1,0,0,1,0,0);for(let Fe=0,Re=ne.length;Fe<Re;Fe+=2){const je=n.Util.transform(se,[p,N,G,R,ne[Fe],ne[Fe+1]]),[at,ft]=n.Util.applyTransform([0,0],je);S.drawImage(Me.canvas,at,ft)}S.restore(),this.compose()}paintImageMaskXObjectGroup(u){if(!this.contentVisible)return;const p=this.ctx,N=this.current.fillColor,G=this.current.patternFill;for(let R=0,ne=u.length;R<ne;R++){const S=u[R],se=S.width,Me=S.height,Fe=this.cachedCanvases.getCanvas("maskCanvas",se,Me,!1),Re=Fe.context;Re.save(),T(Re,S),Re.globalCompositeOperation="source-in",Re.fillStyle=G?N.getPattern(Re,this,p.mozCurrentTransformInverse,y.PathType.FILL):N,Re.fillRect(0,0,se,Me),Re.restore(),p.save(),p.transform.apply(p,S.transform),p.scale(1,-1),I(p,Fe.canvas,0,0,se,Me,0,-1,1,1),p.restore()}this.compose()}paintImageXObject(u){if(!this.contentVisible)return;const p=this.getObject(u);p?this.paintInlineImageXObject(p):(0,n.warn)("Dependent image isn't ready yet")}paintImageXObjectRepeat(u,p,N,G){if(!this.contentVisible)return;const R=this.getObject(u);if(!R)return void(0,n.warn)("Dependent image isn't ready yet");const ne=R.width,S=R.height,se=[];for(let Me=0,Fe=G.length;Me<Fe;Me+=2)se.push({transform:[p,0,0,N,G[Me],G[Me+1]],x:0,y:0,w:ne,h:S});this.paintInlineImageXObjectGroup(R,se)}paintInlineImageXObject(u){if(!this.contentVisible)return;const p=u.width,N=u.height,G=this.ctx;let R;if(this.save(),G.scale(1/p,-1/N),"function"==typeof HTMLElement&&u instanceof HTMLElement||!u.data)R=u;else{const Me=this.cachedCanvases.getCanvas("inlineImage",p,N,!1);m(Me.context,u,this.current.transferMaps),R=Me.canvas}const ne=this._scaleImage(R,G.mozCurrentTransformInverse);G.imageSmoothingEnabled=he(G.mozCurrentTransform,u.interpolate);const[S,se]=I(G,ne.img,0,0,ne.paintWidth,ne.paintHeight,0,-N,p,N);if(this.imageLayer){const Me=this.getCanvasPosition(0,-N);this.imageLayer.appendImage({imgData:u,left:Me[0],top:Me[1],width:S,height:se})}this.compose(),this.restore()}paintInlineImageXObjectGroup(u,p){if(!this.contentVisible)return;const N=this.ctx,G=u.width,R=u.height,ne=this.cachedCanvases.getCanvas("inlineImage",G,R,!1);m(ne.context,u,this.current.transferMaps);for(let se=0,Me=p.length;se<Me;se++){const Fe=p[se];if(N.save(),N.transform.apply(N,Fe.transform),N.scale(1,-1),I(N,ne.canvas,Fe.x,Fe.y,Fe.w,Fe.h,0,-1,1,1),this.imageLayer){const Re=this.getCanvasPosition(Fe.x,Fe.y);this.imageLayer.appendImage({imgData:u,left:Re[0],top:Re[1],width:G,height:R})}N.restore()}this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(u){}markPointProps(u,p){}beginMarkedContent(u){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(u,p){this.markedContentStack.push("OC"===u?{visible:this.optionalContentConfig.isVisible(p)}:{visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(u){const p=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(u);const N=this.ctx;this.pendingClip&&(p||(this.pendingClip===Ne?N.clip("evenodd"):N.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),N.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const u=this.ctx.mozCurrentTransform;if(0===u[1]&&0===u[2])this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(u[0]),Math.abs(u[3]));else{const p=Math.abs(u[0]*u[3]-u[2]*u[1]),N=Math.hypot(u[0],u[2]),G=Math.hypot(u[1],u[3]);this._cachedGetSinglePixelWidth=Math.max(N,G)/p}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(!this._cachedScaleForStroking){const{lineWidth:u}=this.current,p=this.ctx.mozCurrentTransform;let N,G;if(0===p[1]&&0===p[2]){const R=Math.abs(p[0]),ne=Math.abs(p[3]);if(0===u)N=1/R,G=1/ne;else{const S=R*u,se=ne*u;N=S<1?1/S:1,G=se<1?1/se:1}}else{const R=Math.abs(p[0]*p[3]-p[2]*p[1]),ne=Math.hypot(p[0],p[1]),S=Math.hypot(p[2],p[3]);if(0===u)N=S/R,G=ne/R;else{const se=u*R;N=S>se?S/se:1,G=ne>se?ne/se:1}}this._cachedScaleForStroking=[N,G]}return this._cachedScaleForStroking}rescaleAndStroke(u){const{ctx:p}=this,{lineWidth:N}=this.current,[G,R]=this.getScaleForStroking();if(p.lineWidth=N||1,1===G&&1===R)return void p.stroke();let ne,S,se;u&&(ne=p.mozCurrentTransform.slice(),S=p.getLineDash().slice(),se=p.lineDashOffset),p.scale(G,R);const Me=Math.max(G,R);p.setLineDash(p.getLineDash().map(Fe=>Fe/Me)),p.lineDashOffset/=Me,p.stroke(),u&&(p.setTransform(...ne),p.setLineDash(S),p.lineDashOffset=se)}getCanvasPosition(u,p){const N=this.ctx.mozCurrentTransform;return[N[0]*u+N[2]*p+N[4],N[1]*u+N[3]*p+N[5]]}isContentVisible(){for(let u=this.markedContentStack.length-1;u>=0;u--)if(!this.markedContentStack[u].visible)return!1;return!0}}L.CanvasGraphics=ge;for(const q in n.OPS)void 0!==ge.prototype[q]&&(ge.prototype[n.OPS[q]]=ge.prototype[q])},(He,L,o)=>{Object.defineProperty(L,"__esModule",{value:!0}),L.TilingPattern=L.PathType=void 0,L.getShadingPattern=function E(C){switch(C[0]){case"RadialAxial":return new Z(C);case"Mesh":return new D(C);case"Dummy":return new x}throw new Error(`Unknown IR type: ${C[0]}`)};var n=o(1),y=o(3);const a={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function Q(C,P){if(!P||y.isNodeJS)return;const k=P[2]-P[0],$=P[3]-P[1],I=new Path2D;I.rect(P[0],P[1],k,$),C.clip(I)}L.PathType=a;class ie{constructor(){this.constructor===ie&&(0,n.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,n.unreachable)("Abstract method `getPattern` called.")}}class Z extends ie{constructor(P){super(),this._type=P[1],this._bbox=P[2],this._colorStops=P[3],this._p0=P[4],this._p1=P[5],this._r0=P[6],this._r1=P[7],this.matrix=null}_createGradient(P){let k;"axial"===this._type?k=P.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(k=P.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const $ of this._colorStops)k.addColorStop($[0],$[1]);return k}getPattern(P,k,$,I){let g;if(I===a.STROKE||I===a.FILL){const f=k.current.getClippedPathBoundingBox(I,P.mozCurrentTransform)||[0,0,0,0],m=Math.ceil(f[2]-f[0])||1,T=Math.ceil(f[3]-f[1])||1,W=k.cachedCanvases.getCanvas("pattern",m,T,!0),K=W.context;K.clearRect(0,0,K.canvas.width,K.canvas.height),K.beginPath(),K.rect(0,0,K.canvas.width,K.canvas.height),K.translate(-f[0],-f[1]),$=n.Util.transform($,[1,0,0,1,f[0],f[1]]),K.transform.apply(K,k.baseTransform),this.matrix&&K.transform.apply(K,this.matrix),Q(K,this._bbox),K.fillStyle=this._createGradient(K),K.fill(),g=P.createPattern(W.canvas,"no-repeat");const re=new DOMMatrix($);try{g.setTransform(re)}catch(U){(0,n.warn)(`RadialAxialShadingPattern.getPattern: "${U?.message}".`)}}else Q(P,this._bbox),g=this._createGradient(P);return g}}function h(C,P,k,$,I,g,f,m){const T=P.coords,W=P.colors,K=C.data,re=4*C.width;let U;T[k+1]>T[$+1]&&(U=k,k=$,$=U,U=g,g=f,f=U),T[$+1]>T[I+1]&&(U=$,$=I,I=U,U=f,f=m,m=U),T[k+1]>T[$+1]&&(U=k,k=$,$=U,U=g,g=f,f=U);const fe=(T[k]+P.offsetX)*P.scaleX,ue=(T[k+1]+P.offsetY)*P.scaleY,pe=(T[$]+P.offsetX)*P.scaleX,he=(T[$+1]+P.offsetY)*P.scaleY,de=(T[I]+P.offsetX)*P.scaleX,_e=(T[I+1]+P.offsetY)*P.scaleY;if(ue>=_e)return;const Ee=W[g],Ne=W[g+1],ge=W[g+2],q=W[f],u=W[f+1],p=W[f+2],N=W[m],G=W[m+1],R=W[m+2],ne=Math.round(ue),S=Math.round(_e);let se,Me,Fe,Re,je,at,ft,Qe;for(let nt=ne;nt<=S;nt++){if(nt<he){let Rt;Rt=nt<ue?0:(ue-nt)/(ue-he),se=fe-(fe-pe)*Rt,Me=Ee-(Ee-q)*Rt,Fe=Ne-(Ne-u)*Rt,Re=ge-(ge-p)*Rt}else{let Rt;Rt=nt>_e?1:he===_e?0:(he-nt)/(he-_e),se=pe-(pe-de)*Rt,Me=q-(q-N)*Rt,Fe=u-(u-G)*Rt,Re=p-(p-R)*Rt}let _t;_t=nt<ue?0:nt>_e?1:(ue-nt)/(ue-_e),je=fe-(fe-de)*_t,at=Ee-(Ee-N)*_t,ft=Ne-(Ne-G)*_t,Qe=ge-(ge-R)*_t;const Ge=Math.round(Math.min(se,je)),ht=Math.round(Math.max(se,je));let It=re*nt+4*Ge;for(let Rt=Ge;Rt<=ht;Rt++)_t=(se-Rt)/(se-je),_t<0?_t=0:_t>1&&(_t=1),K[It++]=Me-(Me-at)*_t|0,K[It++]=Fe-(Fe-ft)*_t|0,K[It++]=Re-(Re-Qe)*_t|0,K[It++]=255}}function w(C,P,k){const $=P.coords,I=P.colors;let g,f;switch(P.type){case"lattice":const m=P.verticesPerRow,T=Math.floor($.length/m)-1,W=m-1;for(g=0;g<T;g++){let K=g*m;for(let re=0;re<W;re++,K++)h(C,k,$[K],$[K+1],$[K+m],I[K],I[K+1],I[K+m]),h(C,k,$[K+m+1],$[K+1],$[K+m],I[K+m+1],I[K+1],I[K+m])}break;case"triangles":for(g=0,f=$.length;g<f;g+=3)h(C,k,$[g],$[g+1],$[g+2],I[g],I[g+1],I[g+2]);break;default:throw new Error("illegal figure")}}class D extends ie{constructor(P){super(),this._coords=P[2],this._colors=P[3],this._figures=P[4],this._bounds=P[5],this._bbox=P[7],this._background=P[8],this.matrix=null}_createMeshCanvas(P,k,$){const m=Math.floor(this._bounds[0]),T=Math.floor(this._bounds[1]),W=Math.ceil(this._bounds[2])-m,K=Math.ceil(this._bounds[3])-T,re=Math.min(Math.ceil(Math.abs(W*P[0]*1.1)),3e3),U=Math.min(Math.ceil(Math.abs(K*P[1]*1.1)),3e3),fe=W/re,ue=K/U,pe={coords:this._coords,colors:this._colors,offsetX:-m,offsetY:-T,scaleX:1/fe,scaleY:1/ue},_e=$.getCanvas("mesh",re+4,U+4,!1),Ee=_e.context,Ne=Ee.createImageData(re,U);if(k){const q=Ne.data;for(let u=0,p=q.length;u<p;u+=4)q[u]=k[0],q[u+1]=k[1],q[u+2]=k[2],q[u+3]=255}for(const q of this._figures)w(Ne,q,pe);return Ee.putImageData(Ne,2,2),{canvas:_e.canvas,offsetX:m-2*fe,offsetY:T-2*ue,scaleX:fe,scaleY:ue}}getPattern(P,k,$,I){let g;if(Q(P,this._bbox),I===a.SHADING)g=n.Util.singularValueDecompose2dScale(P.mozCurrentTransform);else if(g=n.Util.singularValueDecompose2dScale(k.baseTransform),this.matrix){const m=n.Util.singularValueDecompose2dScale(this.matrix);g=[g[0]*m[0],g[1]*m[1]]}const f=this._createMeshCanvas(g,I===a.SHADING?null:this._background,k.cachedCanvases);return I!==a.SHADING&&(P.setTransform.apply(P,k.baseTransform),this.matrix&&P.transform.apply(P,this.matrix)),P.translate(f.offsetX,f.offsetY),P.scale(f.scaleX,f.scaleY),P.createPattern(f.canvas,"no-repeat")}}class x extends ie{getPattern(){return"hotpink"}}class d{static get MAX_PATTERN_SIZE(){return(0,n.shadow)(this,"MAX_PATTERN_SIZE",3e3)}constructor(P,k,$,I,g){this.operatorList=P[2],this.matrix=P[3]||[1,0,0,1,0,0],this.bbox=P[4],this.xstep=P[5],this.ystep=P[6],this.paintType=P[7],this.tilingType=P[8],this.color=k,this.ctx=$,this.canvasGraphicsFactory=I,this.baseTransform=g}createPatternCanvas(P){const k=this.operatorList,$=this.bbox,I=this.xstep,g=this.ystep,f=this.paintType,T=this.color,W=this.canvasGraphicsFactory;(0,n.info)("TilingType: "+this.tilingType);const K=$[0],re=$[1],U=$[2],fe=$[3],ue=n.Util.singularValueDecompose2dScale(this.matrix),pe=n.Util.singularValueDecompose2dScale(this.baseTransform),he=[ue[0]*pe[0],ue[1]*pe[1]],de=this.getSizeAndScale(I,this.ctx.canvas.width,he[0]),_e=this.getSizeAndScale(g,this.ctx.canvas.height,he[1]),Ee=P.cachedCanvases.getCanvas("pattern",de.size,_e.size,!0),Ne=Ee.context,ge=W.createCanvasGraphics(Ne);ge.groupLevel=P.groupLevel,this.setFillAndStrokeStyleToContext(ge,f,T);let q=K,u=re,p=U,N=fe;return K<0&&(q=0,p+=Math.abs(K)),re<0&&(u=0,N+=Math.abs(re)),Ne.translate(-de.scale*q,-_e.scale*u),ge.transform(de.scale,0,0,_e.scale,0,0),Ne.save(),this.clipBbox(ge,q,u,p,N),ge.baseTransform=ge.ctx.mozCurrentTransform.slice(),ge.executeOperatorList(k),ge.endDrawing(),{canvas:Ee.canvas,scaleX:de.scale,scaleY:_e.scale,offsetX:q,offsetY:u}}getSizeAndScale(P,k,$){P=Math.abs(P);const I=Math.max(d.MAX_PATTERN_SIZE,k);let g=Math.ceil(P*$);return g>=I?g=I:$=g/P,{scale:$,size:g}}clipBbox(P,k,$,I,g){P.ctx.rect(k,$,I-k,g-$),P.current.updateRectMinMax(P.ctx.mozCurrentTransform,[k,$,I,g]),P.clip(),P.endPath()}setFillAndStrokeStyleToContext(P,k,$){const I=P.ctx,g=P.current;switch(k){case 1:const f=this.ctx;I.fillStyle=f.fillStyle,I.strokeStyle=f.strokeStyle,g.fillColor=f.fillStyle,g.strokeColor=f.strokeStyle;break;case 2:const m=n.Util.makeHexColor($[0],$[1],$[2]);I.fillStyle=m,I.strokeStyle=m,g.fillColor=m,g.strokeColor=m;break;default:throw new n.FormatError(`Unsupported paint type: ${k}`)}}getPattern(P,k,$,I){let g=$;I!==a.SHADING&&(g=n.Util.transform(g,k.baseTransform),this.matrix&&(g=n.Util.transform(g,this.matrix)));const f=this.createPatternCanvas(k);let m=new DOMMatrix(g);m=m.translate(f.offsetX,f.offsetY),m=m.scale(1/f.scaleX,1/f.scaleY);const T=P.createPattern(f.canvas,"repeat");try{T.setTransform(m)}catch(W){(0,n.warn)(`TilingPattern.getPattern: "${W?.message}".`)}return T}}L.TilingPattern=d},(He,L,o)=>{Object.defineProperty(L,"__esModule",{value:!0}),L.applyMaskImageData=function y({src:a,srcPos:Q=0,dest:ie,destPos:Z=0,width:h,height:w,inverseDecode:D=!1}){const x=n.FeatureTest.isLittleEndian?4278190080:255,[E,z]=D?[0,x]:[x,0],d=h>>3,C=7&h,P=a.length;ie=new Uint32Array(ie.buffer);for(let k=0;k<w;k++){for(const I=Q+d;Q<I;Q++){const g=Q<P?a[Q]:255;ie[Z++]=128&g?z:E,ie[Z++]=64&g?z:E,ie[Z++]=32&g?z:E,ie[Z++]=16&g?z:E,ie[Z++]=8&g?z:E,ie[Z++]=4&g?z:E,ie[Z++]=2&g?z:E,ie[Z++]=1&g?z:E}if(0===C)continue;const $=Q<P?a[Q++]:255;for(let I=0;I<C;I++)ie[Z++]=$&1<<7-I?z:E}return{srcPos:Q,destPos:Z}};var n=o(1)},(He,L)=>{Object.defineProperty(L,"__esModule",{value:!0}),L.GlobalWorkerOptions=void 0;const o=Object.create(null);L.GlobalWorkerOptions=o,o.workerPort=void 0===o.workerPort?null:o.workerPort,o.workerSrc=void 0===o.workerSrc?"":o.workerSrc},(He,L,o)=>{Object.defineProperty(L,"__esModule",{value:!0}),L.MessageHandler=void 0;var n=o(1);function Q(Z){switch(Z instanceof Error||"object"==typeof Z&&null!==Z||(0,n.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),Z.name){case"AbortException":return new n.AbortException(Z.message);case"MissingPDFException":return new n.MissingPDFException(Z.message);case"PasswordException":return new n.PasswordException(Z.message,Z.code);case"UnexpectedResponseException":return new n.UnexpectedResponseException(Z.message,Z.status);case"UnknownErrorException":return new n.UnknownErrorException(Z.message,Z.details);default:return new n.UnknownErrorException(Z.message,Z.toString())}}L.MessageHandler=class ie{constructor(h,w,D){this.sourceName=h,this.targetName=w,this.comObj=D,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=x=>{const E=x.data;if(E.targetName!==this.sourceName)return;if(E.stream)return void this._processStreamMessage(E);if(E.callback){const d=E.callbackId,C=this.callbackCapabilities[d];if(!C)throw new Error(`Cannot resolve callback ${d}`);if(delete this.callbackCapabilities[d],1===E.callback)C.resolve(E.data);else{if(2!==E.callback)throw new Error("Unexpected callback case");C.reject(Q(E.reason))}return}const z=this.actionHandler[E.action];if(!z)throw new Error(`Unknown action from worker: ${E.action}`);if(E.callbackId){const d=this.sourceName,C=E.sourceName;new Promise(function(P){P(z(E.data))}).then(function(P){D.postMessage({sourceName:d,targetName:C,callback:1,callbackId:E.callbackId,data:P})},function(P){D.postMessage({sourceName:d,targetName:C,callback:2,callbackId:E.callbackId,reason:Q(P)})})}else E.streamId?this._createStreamSink(E):z(E.data)},D.addEventListener("message",this._onComObjOnMessage)}on(h,w){const D=this.actionHandler;if(D[h])throw new Error(`There is already an actionName called "${h}"`);D[h]=w}send(h,w,D){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:h,data:w},D)}sendWithPromise(h,w,D){const x=this.callbackId++,E=(0,n.createPromiseCapability)();this.callbackCapabilities[x]=E;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:h,callbackId:x,data:w},D)}catch(z){E.reject(z)}return E.promise}sendWithStream(h,w,D,x){const E=this.streamId++,z=this.sourceName,d=this.targetName,C=this.comObj;return new ReadableStream({start:P=>{const k=(0,n.createPromiseCapability)();return this.streamControllers[E]={controller:P,startCall:k,pullCall:null,cancelCall:null,isClosed:!1},C.postMessage({sourceName:z,targetName:d,action:h,streamId:E,data:w,desiredSize:P.desiredSize},x),k.promise},pull:P=>{const k=(0,n.createPromiseCapability)();return this.streamControllers[E].pullCall=k,C.postMessage({sourceName:z,targetName:d,stream:6,streamId:E,desiredSize:P.desiredSize}),k.promise},cancel:P=>{(0,n.assert)(P instanceof Error,"cancel must have a valid reason");const k=(0,n.createPromiseCapability)();return this.streamControllers[E].cancelCall=k,this.streamControllers[E].isClosed=!0,C.postMessage({sourceName:z,targetName:d,stream:1,streamId:E,reason:Q(P)}),k.promise}},D)}_createStreamSink(h){const w=h.streamId,D=this.sourceName,x=h.sourceName,E=this.comObj,z=this,d=this.actionHandler[h.action],C={enqueue(P,k=1,$){if(this.isCancelled)return;const I=this.desiredSize;this.desiredSize-=k,I>0&&this.desiredSize<=0&&(this.sinkCapability=(0,n.createPromiseCapability)(),this.ready=this.sinkCapability.promise),E.postMessage({sourceName:D,targetName:x,stream:4,streamId:w,chunk:P},$)},close(){this.isCancelled||(this.isCancelled=!0,E.postMessage({sourceName:D,targetName:x,stream:3,streamId:w}),delete z.streamSinks[w])},error(P){(0,n.assert)(P instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,E.postMessage({sourceName:D,targetName:x,stream:5,streamId:w,reason:Q(P)}))},sinkCapability:(0,n.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:h.desiredSize,ready:null};C.sinkCapability.resolve(),C.ready=C.sinkCapability.promise,this.streamSinks[w]=C,new Promise(function(P){P(d(h.data,C))}).then(function(){E.postMessage({sourceName:D,targetName:x,stream:8,streamId:w,success:!0})},function(P){E.postMessage({sourceName:D,targetName:x,stream:8,streamId:w,reason:Q(P)})})}_processStreamMessage(h){const w=h.streamId,D=this.sourceName,x=h.sourceName,E=this.comObj,z=this.streamControllers[w],d=this.streamSinks[w];switch(h.stream){case 8:h.success?z.startCall.resolve():z.startCall.reject(Q(h.reason));break;case 7:h.success?z.pullCall.resolve():z.pullCall.reject(Q(h.reason));break;case 6:if(!d){E.postMessage({sourceName:D,targetName:x,stream:7,streamId:w,success:!0});break}d.desiredSize<=0&&h.desiredSize>0&&d.sinkCapability.resolve(),d.desiredSize=h.desiredSize,new Promise(function(C){C(d.onPull&&d.onPull())}).then(function(){E.postMessage({sourceName:D,targetName:x,stream:7,streamId:w,success:!0})},function(C){E.postMessage({sourceName:D,targetName:x,stream:7,streamId:w,reason:Q(C)})});break;case 4:if((0,n.assert)(z,"enqueue should have stream controller"),z.isClosed)break;z.controller.enqueue(h.chunk);break;case 3:if((0,n.assert)(z,"close should have stream controller"),z.isClosed)break;z.isClosed=!0,z.controller.close(),this._deleteStreamController(z,w);break;case 5:(0,n.assert)(z,"error should have stream controller"),z.controller.error(Q(h.reason)),this._deleteStreamController(z,w);break;case 2:h.success?z.cancelCall.resolve():z.cancelCall.reject(Q(h.reason)),this._deleteStreamController(z,w);break;case 1:if(!d)break;new Promise(function(C){C(d.onCancel&&d.onCancel(Q(h.reason)))}).then(function(){E.postMessage({sourceName:D,targetName:x,stream:2,streamId:w,success:!0})},function(C){E.postMessage({sourceName:D,targetName:x,stream:2,streamId:w,reason:Q(C)})}),d.sinkCapability.reject(Q(h.reason)),d.isCancelled=!0,delete this.streamSinks[w];break;default:throw new Error("Unexpected stream case")}}_deleteStreamController(h,w){var D=this;return _asyncToGenerator(function*(){yield Promise.allSettled([h.startCall&&h.startCall.promise,h.pullCall&&h.pullCall.promise,h.cancelCall&&h.cancelCall.promise]),delete D.streamControllers[w]})()}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(He,L,o)=>{Object.defineProperty(L,"__esModule",{value:!0}),L.Metadata=void 0;var n=o(1);L.Metadata=class y{#e;#t;constructor({parsedData:Q,rawData:ie}){this.#e=Q,this.#t=ie}getRaw(){return this.#t}get(Q){return this.#e.get(Q)??null}getAll(){return(0,n.objectFromMap)(this.#e)}has(Q){return this.#e.has(Q)}}},(He,L,o)=>{Object.defineProperty(L,"__esModule",{value:!0}),L.OptionalContentConfig=void 0;var n=o(1);class y{constructor(ie,Z){this.visible=!0,this.name=ie,this.intent=Z}}L.OptionalContentConfig=class a{constructor(ie){if(this.name=null,this.creator=null,this._order=null,this._groups=new Map,null!==ie){this.name=ie.name,this.creator=ie.creator,this._order=ie.order;for(const Z of ie.groups)this._groups.set(Z.id,new y(Z.name,Z.intent));if("OFF"===ie.baseState)for(const Z of this._groups)Z.visible=!1;for(const Z of ie.on)this._groups.get(Z).visible=!0;for(const Z of ie.off)this._groups.get(Z).visible=!1}}_evaluateVisibilityExpression(ie){const Z=ie.length;if(Z<2)return!0;const h=ie[0];for(let w=1;w<Z;w++){const D=ie[w];let x;if(Array.isArray(D))x=this._evaluateVisibilityExpression(D);else{if(!this._groups.has(D))return(0,n.warn)(`Optional content group not found: ${D}`),!0;x=this._groups.get(D).visible}switch(h){case"And":if(!x)return!1;break;case"Or":if(x)return!0;break;case"Not":return!x;default:return!0}}return"And"===h}isVisible(ie){if(0===this._groups.size)return!0;if(!ie)return(0,n.warn)("Optional content group not defined."),!0;if("OCG"===ie.type)return this._groups.has(ie.id)?this._groups.get(ie.id).visible:((0,n.warn)(`Optional content group not found: ${ie.id}`),!0);if("OCMD"===ie.type){if(ie.expression)return this._evaluateVisibilityExpression(ie.expression);if(!ie.policy||"AnyOn"===ie.policy){for(const Z of ie.ids){if(!this._groups.has(Z))return(0,n.warn)(`Optional content group not found: ${Z}`),!0;if(this._groups.get(Z).visible)return!0}return!1}if("AllOn"===ie.policy){for(const Z of ie.ids){if(!this._groups.has(Z))return(0,n.warn)(`Optional content group not found: ${Z}`),!0;if(!this._groups.get(Z).visible)return!1}return!0}if("AnyOff"===ie.policy){for(const Z of ie.ids){if(!this._groups.has(Z))return(0,n.warn)(`Optional content group not found: ${Z}`),!0;if(!this._groups.get(Z).visible)return!0}return!1}if("AllOff"===ie.policy){for(const Z of ie.ids){if(!this._groups.has(Z))return(0,n.warn)(`Optional content group not found: ${Z}`),!0;if(this._groups.get(Z).visible)return!1}return!0}return(0,n.warn)(`Unknown optional content policy ${ie.policy}.`),!0}return(0,n.warn)(`Unknown group type ${ie.type}.`),!0}setVisibility(ie,Z=!0){this._groups.has(ie)?this._groups.get(ie).visible=!!Z:(0,n.warn)(`Optional content group not found: ${ie}`)}getOrder(){return this._groups.size?this._order?this._order.slice():Array.from(this._groups.keys()):null}getGroups(){return this._groups.size>0?(0,n.objectFromMap)(this._groups):null}getGroup(ie){return this._groups.get(ie)||null}}},(He,L,o)=>{Object.defineProperty(L,"__esModule",{value:!0}),L.PDFDataTransportStream=void 0;var n=o(1),y=o(5);L.PDFDataTransportStream=class a{constructor(h,w){(0,n.assert)(w,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=h.progressiveDone||!1,this._contentDispositionFilename=h.contentDispositionFilename||null;const D=h.initialData;if(D?.length>0){const x=new Uint8Array(D).buffer;this._queuedChunks.push(x)}this._pdfDataRangeTransport=w,this._isStreamingSupported=!h.disableStream,this._isRangeSupported=!h.disableRange,this._contentLength=h.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((x,E)=>{this._onReceiveData({begin:x,chunk:E})}),this._pdfDataRangeTransport.addProgressListener((x,E)=>{this._onProgress({loaded:x,total:E})}),this._pdfDataRangeTransport.addProgressiveReadListener(x=>{this._onReceiveData({chunk:x})}),this._pdfDataRangeTransport.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}_onReceiveData(h){const w=new Uint8Array(h.chunk).buffer;if(void 0===h.begin)this._fullRequestReader?this._fullRequestReader._enqueue(w):this._queuedChunks.push(w);else{const D=this._rangeReaders.some(function(x){return x._begin===h.begin&&(x._enqueue(w),!0)});(0,n.assert)(D,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(h){if(void 0===h.total){const w=this._rangeReaders[0];w?.onProgress&&w.onProgress({loaded:h.loaded})}else{const w=this._fullRequestReader;w?.onProgress&&w.onProgress({loaded:h.loaded,total:h.total})}}_onProgressiveDone(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(h){const w=this._rangeReaders.indexOf(h);w>=0&&this._rangeReaders.splice(w,1)}getFullReader(){(0,n.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const h=this._queuedChunks;return this._queuedChunks=null,new Q(this,h,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(h,w){if(w<=this._progressiveDataLength)return null;const D=new ie(this,h,w);return this._pdfDataRangeTransport.requestDataRange(h,w),this._rangeReaders.push(D),D}cancelAllRequests(h){this._fullRequestReader&&this._fullRequestReader.cancel(h);for(const w of this._rangeReaders.slice(0))w.cancel(h);this._pdfDataRangeTransport.abort()}};class Q{constructor(h,w,D=!1,x=null){this._stream=h,this._done=D||!1,this._filename=(0,y.isPdfFile)(x)?x:null,this._queuedChunks=w||[],this._loaded=0;for(const E of this._queuedChunks)this._loaded+=E.byteLength;this._requests=[],this._headersReady=Promise.resolve(),h._fullRequestReader=this,this.onProgress=null}_enqueue(h){this._done||(this._requests.length>0?this._requests.shift().resolve({value:h,done:!1}):this._queuedChunks.push(h),this._loaded+=h.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}read(){var h=this;return _asyncToGenerator(function*(){if(h._queuedChunks.length>0)return{value:h._queuedChunks.shift(),done:!1};if(h._done)return{value:void 0,done:!0};const w=(0,n.createPromiseCapability)();return h._requests.push(w),w.promise})()}cancel(h){this._done=!0;for(const w of this._requests)w.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class ie{constructor(h,w,D){this._stream=h,this._begin=w,this._end=D,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(h){if(!this._done){if(0===this._requests.length)this._queuedChunk=h;else{this._requests.shift().resolve({value:h,done:!1});for(const D of this._requests)D.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}read(){var h=this;return _asyncToGenerator(function*(){if(h._queuedChunk){const D=h._queuedChunk;return h._queuedChunk=null,{value:D,done:!1}}if(h._done)return{value:void 0,done:!0};const w=(0,n.createPromiseCapability)();return h._requests.push(w),w.promise})()}cancel(h){this._done=!0;for(const w of this._requests)w.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(He,L)=>{Object.defineProperty(L,"__esModule",{value:!0}),L.XfaText=void 0;class o{static textContent(y){const a=[],Q={items:a,styles:Object.create(null)};return function ie(Z){if(!Z)return;let h=null;const w=Z.name;if("#text"===w)h=Z.value;else{if(!o.shouldBuildText(w))return;Z?.attributes?.textContent?h=Z.attributes.textContent:Z.value&&(h=Z.value)}if(null!==h&&a.push({str:h}),Z.children)for(const D of Z.children)ie(D)}(y),Q}static shouldBuildText(y){return!("textarea"===y||"input"===y||"option"===y||"select"===y)}}L.XfaText=o},(He,L,o)=>{Object.defineProperty(L,"__esModule",{value:!0}),L.NodeStandardFontDataFactory=L.NodeCanvasFactory=L.NodeCMapReaderFactory=void 0;var n=o(6);const y=function(Z){return new Promise((h,w)=>{__webpack_require__(49464).readFile(Z,(x,E)=>{!x&&E?h(new Uint8Array(E)):w(new Error(x))})})};L.NodeCanvasFactory=class a extends n.BaseCanvasFactory{_createCanvas(h,w){return __webpack_require__(89601).createCanvas(h,w)}},L.NodeCMapReaderFactory=class Q extends n.BaseCMapReaderFactory{_fetchData(h,w){return y(h).then(D=>({cMapData:D,compressionType:w}))}},L.NodeStandardFontDataFactory=class ie extends n.BaseStandardFontDataFactory{_fetchData(h){return y(h)}}},(He,L,o)=>{Object.defineProperty(L,"__esModule",{value:!0}),L.AnnotationLayer=void 0;var n=o(1),y=o(5),a=o(8),Q=o(21),ie=o(22);const Z=1e3,h=new WeakSet;function w(q){return{width:q[2]-q[0],height:q[3]-q[1]}}class D{static create(u){switch(u.data.annotationType){case n.AnnotationType.LINK:return new E(u);case n.AnnotationType.TEXT:return new z(u);case n.AnnotationType.WIDGET:switch(u.data.fieldType){case"Tx":return new C(u);case"Btn":return u.data.radioButton?new k(u):u.data.checkBox?new P(u):new $(u);case"Ch":return new I(u)}return new d(u);case n.AnnotationType.POPUP:return new g(u);case n.AnnotationType.FREETEXT:return new m(u);case n.AnnotationType.LINE:return new T(u);case n.AnnotationType.SQUARE:return new W(u);case n.AnnotationType.CIRCLE:return new K(u);case n.AnnotationType.POLYLINE:return new re(u);case n.AnnotationType.CARET:return new fe(u);case n.AnnotationType.INK:return new ue(u);case n.AnnotationType.POLYGON:return new U(u);case n.AnnotationType.HIGHLIGHT:return new pe(u);case n.AnnotationType.UNDERLINE:return new he(u);case n.AnnotationType.SQUIGGLY:return new de(u);case n.AnnotationType.STRIKEOUT:return new _e(u);case n.AnnotationType.STAMP:return new Ee(u);case n.AnnotationType.FILEATTACHMENT:return new Ne(u);default:return new x(u)}}}class x{constructor(u,{isRenderable:p=!1,ignoreBorder:N=!1,createQuadrilaterals:G=!1}={}){this.isRenderable=p,this.data=u.data,this.layer=u.layer,this.page=u.page,this.viewport=u.viewport,this.linkService=u.linkService,this.downloadManager=u.downloadManager,this.imageResourcesPath=u.imageResourcesPath,this.renderForms=u.renderForms,this.svgFactory=u.svgFactory,this.annotationStorage=u.annotationStorage,this.enableScripting=u.enableScripting,this.hasJSActions=u.hasJSActions,this._fieldObjects=u.fieldObjects,this._mouseState=u.mouseState,p&&(this.container=this._createContainer(N)),G&&(this.quadrilaterals=this._createQuadrilaterals(N))}_createContainer(u=!1){const p=this.data,N=this.page,G=this.viewport,R=document.createElement("section");let{width:ne,height:S}=w(p.rect);R.setAttribute("data-annotation-id",p.id);const se=n.Util.normalizeRect([p.rect[0],N.view[3]-p.rect[1]+N.view[1],p.rect[2],N.view[3]-p.rect[3]+N.view[1]]);if(p.hasOwnCanvas){const Me=G.transform.slice(),[Fe,Re]=n.Util.singularValueDecompose2dScale(Me);ne=Math.ceil(ne*Fe),S=Math.ceil(S*Re),se[0]*=Fe,se[1]*=Re;for(let je=0;je<4;je++)Me[je]=Math.sign(Me[je]);R.style.transform=`matrix(${Me.join(",")})`}else R.style.transform=`matrix(${G.transform.join(",")})`;if(R.style.transformOrigin=`${-se[0]}px ${-se[1]}px`,!u&&p.borderStyle.width>0){R.style.borderWidth=`${p.borderStyle.width}px`,p.borderStyle.style!==n.AnnotationBorderStyleType.UNDERLINE&&(ne-=2*p.borderStyle.width,S-=2*p.borderStyle.width);const Me=p.borderStyle.horizontalCornerRadius,Fe=p.borderStyle.verticalCornerRadius;switch((Me>0||Fe>0)&&(R.style.borderRadius=`${Me}px / ${Fe}px`),p.borderStyle.style){case n.AnnotationBorderStyleType.SOLID:R.style.borderStyle="solid";break;case n.AnnotationBorderStyleType.DASHED:R.style.borderStyle="dashed";break;case n.AnnotationBorderStyleType.BEVELED:(0,n.warn)("Unimplemented border style: beveled");break;case n.AnnotationBorderStyleType.INSET:(0,n.warn)("Unimplemented border style: inset");break;case n.AnnotationBorderStyleType.UNDERLINE:R.style.borderBottomStyle="solid"}p.borderColor||p.color?R.style.borderColor=n.Util.makeHexColor(0|p.color[0],0|p.color[1],0|p.color[2]):R.style.borderWidth=0}return R.style.left=`${se[0]}px`,R.style.top=`${se[1]}px`,p.hasOwnCanvas?R.style.width=R.style.height="auto":(R.style.width=`${ne}px`,R.style.height=`${S}px`),R}get _commonActions(){const u=(p,N,G)=>{const R=G.detail[p];G.target.style[N]=Q.ColorConverters[`${R[0]}_HTML`](R.slice(1))};return(0,n.shadow)(this,"_commonActions",{display:p=>{const N=p.detail.display%2==1;p.target.style.visibility=N?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:N,print:0===p.detail.display||3===p.detail.display})},print:p=>{this.annotationStorage.setValue(this.data.id,{print:p.detail.print})},hidden:p=>{p.target.style.visibility=p.detail.hidden?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:p.detail.hidden})},focus:p=>{setTimeout(()=>p.target.focus({preventScroll:!1}),0)},userName:p=>{p.target.title=p.detail.userName},readonly:p=>{p.detail.readonly?p.target.setAttribute("readonly",""):p.target.removeAttribute("readonly")},required:p=>{p.detail.required?p.target.setAttribute("required",""):p.target.removeAttribute("required")},bgColor:p=>{u("bgColor","backgroundColor",p)},fillColor:p=>{u("fillColor","backgroundColor",p)},fgColor:p=>{u("fgColor","color",p)},textColor:p=>{u("textColor","color",p)},borderColor:p=>{u("borderColor","borderColor",p)},strokeColor:p=>{u("strokeColor","borderColor",p)}})}_dispatchEventFromSandbox(u,p){const N=this._commonActions;for(const G of Object.keys(p.detail)){const R=u[G]||N[G];R&&R(p)}}_setDefaultPropertiesFromJS(u){if(!this.enableScripting)return;const p=this.annotationStorage.getRawValue(this.data.id);if(!p)return;const N=this._commonActions;for(const[G,R]of Object.entries(p)){const ne=N[G];ne&&(ne({detail:R,target:u}),delete p[G])}}_createQuadrilaterals(u=!1){if(!this.data.quadPoints)return null;const p=[],N=this.data.rect;for(const G of this.data.quadPoints)this.data.rect=[G[2].x,G[2].y,G[1].x,G[1].y],p.push(this._createContainer(u));return this.data.rect=N,p}_createPopup(u,p){let N=this.container;this.quadrilaterals&&(u=u||this.quadrilaterals,N=this.quadrilaterals[0]),u||((u=document.createElement("div")).style.height=N.style.height,u.style.width=N.style.width,N.appendChild(u));const R=new f({container:N,trigger:u,color:p.color,titleObj:p.titleObj,modificationDate:p.modificationDate,contentsObj:p.contentsObj,richText:p.richText,hideWrapper:!0}).render();R.style.left=N.style.width,N.appendChild(R)}_renderQuadrilaterals(u){for(const p of this.quadrilaterals)p.className=u;return this.quadrilaterals}render(){(0,n.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(u,p=null){const N=[];if(this._fieldObjects){const G=this._fieldObjects[u];if(G)for(const{page:R,id:ne,exportValues:S}of G){if(-1===R||ne===p)continue;const se="string"==typeof S?S:null,Me=document.getElementById(ne);!Me||h.has(Me)?N.push({id:ne,exportValue:se,domElement:Me}):(0,n.warn)(`_getElementsByName - element not allowed: ${ne}`)}return N}for(const G of document.getElementsByName(u)){const{id:R,exportValue:ne}=G;R!==p&&h.has(G)&&N.push({id:R,exportValue:ne,domElement:G})}return N}static get platform(){const u=typeof navigator<"u"?navigator.platform:"";return(0,n.shadow)(this,"platform",{isWin:u.includes("Win"),isMac:u.includes("Mac")})}}class E extends x{constructor(u,p=null){super(u,{isRenderable:!!(u.data.url||u.data.dest||u.data.action||u.data.isTooltipOnly||u.data.resetForm||u.data.actions&&(u.data.actions.Action||u.data.actions["Mouse Up"]||u.data.actions["Mouse Down"])),ignoreBorder:!!p?.ignoreBorder,createQuadrilaterals:!0})}render(){const{data:u,linkService:p}=this,N=document.createElement("a");if(u.url)p.addLinkAttributes(N,u.url,u.newWindow);else if(u.action)this._bindNamedAction(N,u.action);else if(u.dest)this._bindLink(N,u.dest);else{let G=!1;u.actions&&(u.actions.Action||u.actions["Mouse Up"]||u.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(G=!0,this._bindJSAction(N,u)),u.resetForm?this._bindResetFormAction(N,u.resetForm):G||this._bindLink(N,"")}return this.quadrilaterals?this._renderQuadrilaterals("linkAnnotation").map((G,R)=>{const ne=0===R?N:N.cloneNode();return G.appendChild(ne),G}):(this.container.className="linkAnnotation",this.container.appendChild(N),this.container)}_bindLink(u,p){u.href=this.linkService.getDestinationHash(p),u.onclick=()=>(p&&this.linkService.goToDestination(p),!1),(p||""===p)&&(u.className="internalLink")}_bindNamedAction(u,p){u.href=this.linkService.getAnchorUrl(""),u.onclick=()=>(this.linkService.executeNamedAction(p),!1),u.className="internalLink"}_bindJSAction(u,p){u.href=this.linkService.getAnchorUrl("");const N=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const G of Object.keys(p.actions)){const R=N.get(G);R&&(u[R]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:p.id,name:G}}),!1))}u.onclick||(u.onclick=()=>!1),u.className="internalLink"}_bindResetFormAction(u,p){const N=u.onclick;if(N||(u.href=this.linkService.getAnchorUrl("")),u.className="internalLink",!this._fieldObjects)return(0,n.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),void(N||(u.onclick=()=>!1));u.onclick=()=>{N&&N();const{fields:G,refs:R,include:ne}=p,S=[];if(0!==G.length||0!==R.length){const Fe=new Set(R);for(const Re of G){const je=this._fieldObjects[Re]||[];for(const{id:at}of je)Fe.add(at)}for(const Re of Object.values(this._fieldObjects))for(const je of Re)Fe.has(je.id)===ne&&S.push(je)}else for(const Fe of Object.values(this._fieldObjects))S.push(...Fe);const se=this.annotationStorage,Me=[];for(const Fe of S){const{id:Re}=Fe;switch(Me.push(Re),Fe.type){case"text":case"combobox":case"listbox":se.setValue(Re,{value:Fe.defaultValue||""});break;case"checkbox":case"radiobutton":se.setValue(Re,{value:Fe.defaultValue===Fe.exportValues});break;default:continue}const je=document.getElementById(Re);!je||!h.has(je)||je.dispatchEvent(new Event("resetform"))}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:Me,name:"ResetForm"}}),!1}}}class z extends x{constructor(u){super(u,{isRenderable:!!(u.data.hasPopup||u.data.titleObj?.str||u.data.contentsObj?.str||u.data.richText?.str)})}render(){this.container.className="textAnnotation";const u=document.createElement("img");return u.style.height=this.container.style.height,u.style.width=this.container.style.width,u.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",u.alt="[{{type}} Annotation]",u.dataset.l10nId="text_annotation_type",u.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(u,this.data),this.container.appendChild(u),this.container}}class d extends x{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}_getKeyModifier(u){const{isWin:p,isMac:N}=x.platform;return p&&u.ctrlKey||N&&u.metaKey}_setEventListener(u,p,N,G){p.includes("mouse")?u.addEventListener(p,R=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:N,value:G(R),shift:R.shiftKey,modifier:this._getKeyModifier(R)}})}):u.addEventListener(p,R=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:N,value:G(R)}})})}_setEventListeners(u,p,N){for(const[G,R]of p)("Action"===R||this.data.actions?.[R])&&this._setEventListener(u,G,R,N)}_setBackgroundColor(u){const p=this.data.backgroundColor||null;u.style.backgroundColor=null===p?"transparent":n.Util.makeHexColor(p[0],p[1],p[2])}}class C extends d{constructor(u){super(u,{isRenderable:u.renderForms||!u.data.hasAppearance&&!!u.data.fieldValue})}setPropertyOnSiblings(u,p,N,G){const R=this.annotationStorage;for(const ne of this._getElementsByName(u.name,u.id))ne.domElement&&(ne.domElement[p]=N),R.setValue(ne.id,{[G]:N})}render(){const u=this.annotationStorage,p=this.data.id;this.container.className="textWidgetAnnotation";let N=null;if(this.renderForms){const G=u.getValue(p,{value:this.data.fieldValue}),R=G.formattedValue||G.value||"",ne={userValue:null,formattedValue:null,valueOnFocus:""};this.data.multiLine?(N=document.createElement("textarea"),N.textContent=R):(N=document.createElement("input"),N.type="text",N.setAttribute("value",R)),h.add(N),N.disabled=this.data.readOnly,N.name=this.data.fieldName,N.tabIndex=Z,ne.userValue=R,N.setAttribute("id",p),N.addEventListener("input",se=>{u.setValue(p,{value:se.target.value}),this.setPropertyOnSiblings(N,"value",se.target.value,"value")}),N.addEventListener("resetform",se=>{N.value=ne.userValue=this.data.defaultFieldValue??"",ne.formattedValue=null});let S=se=>{const{formattedValue:Me}=ne;null!=Me&&(se.target.value=Me),se.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){N.addEventListener("focus",Me=>{ne.userValue&&(Me.target.value=ne.userValue),ne.valueOnFocus=Me.target.value}),N.addEventListener("updatefromsandbox",Me=>{this._dispatchEventFromSandbox({value(Re){ne.userValue=Re.detail.value??"",u.setValue(p,{value:ne.userValue.toString()}),Re.target.value=ne.userValue},formattedValue(Re){const{formattedValue:je}=Re.detail;ne.formattedValue=je,null!=je&&Re.target!==document.activeElement&&(Re.target.value=je),u.setValue(p,{formattedValue:je})},selRange(Re){Re.target.setSelectionRange(...Re.detail.selRange)}},Me)}),N.addEventListener("keydown",Me=>{let Fe=-1;if("Escape"===Me.key?Fe=0:"Enter"===Me.key?Fe=2:"Tab"===Me.key&&(Fe=3),-1===Fe)return;const{value:Re}=Me.target;ne.valueOnFocus!==Re&&(ne.userValue=Re,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:p,name:"Keystroke",value:Re,willCommit:!0,commitKey:Fe,selStart:Me.target.selectionStart,selEnd:Me.target.selectionEnd}}))});const se=S;S=null,N.addEventListener("blur",Me=>{const{value:Fe}=Me.target;ne.userValue=Fe,this._mouseState.isDown&&ne.valueOnFocus!==Fe&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:p,name:"Keystroke",value:Fe,willCommit:!0,commitKey:1,selStart:Me.target.selectionStart,selEnd:Me.target.selectionEnd}}),se(Me)}),this.data.actions?.Keystroke&&N.addEventListener("beforeinput",Me=>{const{data:Fe,target:Re}=Me,{value:je,selectionStart:at,selectionEnd:ft}=Re;let Qe=at,nt=ft;switch(Me.inputType){case"deleteWordBackward":{const _t=je.substring(0,at).match(/\w*[^\w]*$/);_t&&(Qe-=_t[0].length);break}case"deleteWordForward":{const _t=je.substring(at).match(/^[^\w]*\w*/);_t&&(nt+=_t[0].length);break}case"deleteContentBackward":at===ft&&(Qe-=1);break;case"deleteContentForward":at===ft&&(nt+=1)}Me.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:p,name:"Keystroke",value:je,change:Fe||"",willCommit:!1,selStart:Qe,selEnd:nt}})}),this._setEventListeners(N,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],Me=>Me.target.value)}if(S&&N.addEventListener("blur",S),null!==this.data.maxLen&&(N.maxLength=this.data.maxLen),this.data.comb){const Me=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;N.classList.add("comb"),N.style.letterSpacing=`calc(${Me}px - 1ch)`}}else N=document.createElement("div"),N.textContent=this.data.fieldValue,N.style.verticalAlign="middle",N.style.display="table-cell";return this._setTextStyle(N),this._setBackgroundColor(N),this._setDefaultPropertiesFromJS(N),this.container.appendChild(N),this.container}_setTextStyle(u){const{fontSize:N,fontColor:G}=this.data.defaultAppearanceData,R=u.style;N&&(R.fontSize=`${N}px`),R.color=n.Util.makeHexColor(G[0],G[1],G[2]),null!==this.data.textAlignment&&(R.textAlign=["left","center","right"][this.data.textAlignment])}}class P extends d{constructor(u){super(u,{isRenderable:u.renderForms})}render(){const u=this.annotationStorage,p=this.data,N=p.id;let G=u.getValue(N,{value:p.exportValue===p.fieldValue}).value;"string"==typeof G&&(G="Off"!==G,u.setValue(N,{value:G})),this.container.className="buttonWidgetAnnotation checkBox";const R=document.createElement("input");return h.add(R),R.disabled=p.readOnly,R.type="checkbox",R.name=p.fieldName,G&&R.setAttribute("checked",!0),R.setAttribute("id",N),R.setAttribute("exportValue",p.exportValue),R.tabIndex=Z,R.addEventListener("change",ne=>{const{name:S,checked:se}=ne.target;for(const Me of this._getElementsByName(S,N)){const Fe=se&&Me.exportValue===p.exportValue;Me.domElement&&(Me.domElement.checked=Fe),u.setValue(Me.id,{value:Fe})}u.setValue(N,{value:se})}),R.addEventListener("resetform",ne=>{ne.target.checked=(p.defaultFieldValue||"Off")===p.exportValue}),this.enableScripting&&this.hasJSActions&&(R.addEventListener("updatefromsandbox",ne=>{this._dispatchEventFromSandbox({value(se){se.target.checked="Off"!==se.detail.value,u.setValue(N,{value:se.target.checked})}},ne)}),this._setEventListeners(R,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],ne=>ne.target.checked)),this._setBackgroundColor(R),this._setDefaultPropertiesFromJS(R),this.container.appendChild(R),this.container}}class k extends d{constructor(u){super(u,{isRenderable:u.renderForms})}render(){this.container.className="buttonWidgetAnnotation radioButton";const u=this.annotationStorage,p=this.data,N=p.id;let G=u.getValue(N,{value:p.fieldValue===p.buttonValue}).value;"string"==typeof G&&(G=G!==p.buttonValue,u.setValue(N,{value:G}));const R=document.createElement("input");if(h.add(R),R.disabled=p.readOnly,R.type="radio",R.name=p.fieldName,G&&R.setAttribute("checked",!0),R.setAttribute("id",N),R.tabIndex=Z,R.addEventListener("change",ne=>{const{name:S,checked:se}=ne.target;for(const Me of this._getElementsByName(S,N))u.setValue(Me.id,{value:!1});u.setValue(N,{value:se})}),R.addEventListener("resetform",ne=>{const S=p.defaultFieldValue;ne.target.checked=null!=S&&S===p.buttonValue}),this.enableScripting&&this.hasJSActions){const ne=p.buttonValue;R.addEventListener("updatefromsandbox",S=>{this._dispatchEventFromSandbox({value:Me=>{const Fe=ne===Me.detail.value;for(const Re of this._getElementsByName(Me.target.name)){const je=Fe&&Re.id===N;Re.domElement&&(Re.domElement.checked=je),u.setValue(Re.id,{value:je})}}},S)}),this._setEventListeners(R,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],S=>S.target.checked)}return this._setBackgroundColor(R),this._setDefaultPropertiesFromJS(R),this.container.appendChild(R),this.container}}class $ extends E{constructor(u){super(u,{ignoreBorder:u.data.hasAppearance})}render(){const u=super.render();return u.className="buttonWidgetAnnotation pushButton",this.data.alternativeText&&(u.title=this.data.alternativeText),this._setDefaultPropertiesFromJS(u),u}}class I extends d{constructor(u){super(u,{isRenderable:u.renderForms})}render(){this.container.className="choiceWidgetAnnotation";const u=this.annotationStorage,p=this.data.id,N=u.getValue(p,{value:this.data.fieldValue});let{fontSize:G}=this.data.defaultAppearanceData;G||(G=9);const R=`calc(${G}px * var(--zoom-factor))`,ne=document.createElement("select");h.add(ne),ne.disabled=this.data.readOnly,ne.name=this.data.fieldName,ne.setAttribute("id",p),ne.tabIndex=Z,ne.style.fontSize=`${G}px`,this.data.combo||(ne.size=this.data.options.length,this.data.multiSelect&&(ne.multiple=!0)),ne.addEventListener("resetform",Me=>{const Fe=this.data.defaultFieldValue;for(const Re of ne.options)Re.selected=Re.value===Fe});for(const Me of this.data.options){const Fe=document.createElement("option");Fe.textContent=Me.displayValue,Fe.value=Me.exportValue,this.data.combo&&(Fe.style.fontSize=R),N.value.includes(Me.exportValue)&&Fe.setAttribute("selected",!0),ne.appendChild(Fe)}const S=(Me,Fe)=>{const Re=Fe?"value":"textContent",je=Me.target.options;return Me.target.multiple?Array.prototype.filter.call(je,at=>at.selected).map(at=>at[Re]):-1===je.selectedIndex?null:je[je.selectedIndex][Re]},se=Me=>Array.prototype.map.call(Me.target.options,Re=>({displayValue:Re.textContent,exportValue:Re.value}));return this.enableScripting&&this.hasJSActions?(ne.addEventListener("updatefromsandbox",Me=>{this._dispatchEventFromSandbox({value(Re){const je=Re.detail.value,at=new Set(Array.isArray(je)?je:[je]);for(const ft of ne.options)ft.selected=at.has(ft.value);u.setValue(p,{value:S(Re,!0)})},multipleSelection(Re){ne.multiple=!0},remove(Re){const je=ne.options,at=Re.detail.remove;je[at].selected=!1,ne.remove(at),je.length>0&&-1===Array.prototype.findIndex.call(je,Qe=>Qe.selected)&&(je[0].selected=!0),u.setValue(p,{value:S(Re,!0),items:se(Re)})},clear(Re){for(;0!==ne.length;)ne.remove(0);u.setValue(p,{value:null,items:[]})},insert(Re){const{index:je,displayValue:at,exportValue:ft}=Re.detail.insert,Qe=document.createElement("option");Qe.textContent=at,Qe.value=ft,ne.insertBefore(Qe,ne.children[je]),u.setValue(p,{value:S(Re,!0),items:se(Re)})},items(Re){const{items:je}=Re.detail;for(;0!==ne.length;)ne.remove(0);for(const at of je){const{displayValue:ft,exportValue:Qe}=at,nt=document.createElement("option");nt.textContent=ft,nt.value=Qe,ne.appendChild(nt)}ne.options.length>0&&(ne.options[0].selected=!0),u.setValue(p,{value:S(Re,!0),items:se(Re)})},indices(Re){const je=new Set(Re.detail.indices);for(const at of Re.target.options)at.selected=je.has(at.index);u.setValue(p,{value:S(Re,!0)})},editable(Re){Re.target.disabled=!Re.detail.editable}},Me)}),ne.addEventListener("input",Me=>{const Fe=S(Me,!0),Re=S(Me,!1);u.setValue(p,{value:Fe}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:p,name:"Keystroke",value:Re,changeEx:Fe,willCommit:!0,commitKey:1,keyDown:!1}})}),this._setEventListeners(ne,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"]],Me=>Me.target.checked)):ne.addEventListener("input",function(Me){u.setValue(p,{value:S(Me,!0)})}),this._setBackgroundColor(ne),this._setDefaultPropertiesFromJS(ne),this.container.appendChild(ne),this.container}}class g extends x{constructor(u){super(u,{isRenderable:!!(u.data.titleObj?.str||u.data.contentsObj?.str||u.data.richText?.str)})}render(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container;const N=this.layer.querySelectorAll(`[data-annotation-id="${this.data.parentId}"]`);if(0===N.length)return this.container;const G=new f({container:this.container,trigger:Array.from(N),color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText}),R=this.page,ne=n.Util.normalizeRect([this.data.parentRect[0],R.view[3]-this.data.parentRect[1]+R.view[1],this.data.parentRect[2],R.view[3]-this.data.parentRect[3]+R.view[1]]),S=ne[0]+this.data.parentRect[2]-this.data.parentRect[0],se=ne[1];return this.container.style.transformOrigin=`${-S}px ${-se}px`,this.container.style.left=`${S}px`,this.container.style.top=`${se}px`,this.container.appendChild(G.render()),this.container}}class f{constructor(u){this.container=u.container,this.trigger=u.trigger,this.color=u.color,this.titleObj=u.titleObj,this.modificationDate=u.modificationDate,this.contentsObj=u.contentsObj,this.richText=u.richText,this.hideWrapper=u.hideWrapper||!1,this.pinned=!1}render(){const p=document.createElement("div");p.className="popupWrapper",this.hideElement=this.hideWrapper?p:this.container,this.hideElement.hidden=!0;const N=document.createElement("div");N.className="popup";const G=this.color;G&&(N.style.backgroundColor=n.Util.makeHexColor(0|.7*(255-G[0])+G[0],0|.7*(255-G[1])+G[1],0|.7*(255-G[2])+G[2]));const R=document.createElement("h1");R.dir=this.titleObj.dir,R.textContent=this.titleObj.str,N.appendChild(R);const ne=y.PDFDateString.toDateObject(this.modificationDate);if(ne){const S=document.createElement("span");S.className="popupDate",S.textContent="{{date}}, {{time}}",S.dataset.l10nId="annotation_date_string",S.dataset.l10nArgs=JSON.stringify({date:ne.toLocaleDateString(),time:ne.toLocaleTimeString()}),N.appendChild(S)}if(!this.richText?.str||this.contentsObj?.str&&this.contentsObj.str!==this.richText.str){const S=this._formatContents(this.contentsObj);N.appendChild(S)}else ie.XfaLayer.render({xfaHtml:this.richText.html,intent:"richText",div:N}),N.lastChild.className="richText popupContent";Array.isArray(this.trigger)||(this.trigger=[this.trigger]);for(const S of this.trigger)S.addEventListener("click",this._toggle.bind(this)),S.addEventListener("mouseover",this._show.bind(this,!1)),S.addEventListener("mouseout",this._hide.bind(this,!1));return N.addEventListener("click",this._hide.bind(this,!0)),p.appendChild(N),p}_formatContents({str:u,dir:p}){const N=document.createElement("p");N.className="popupContent",N.dir=p;const G=u.split(/(?:\r\n?|\n)/);for(let R=0,ne=G.length;R<ne;++R)N.appendChild(document.createTextNode(G[R])),R<ne-1&&N.appendChild(document.createElement("br"));return N}_toggle(){this.pinned?this._hide(!0):this._show(!0)}_show(u=!1){u&&(this.pinned=!0),this.hideElement.hidden&&(this.hideElement.hidden=!1,this.container.style.zIndex+=1)}_hide(u=!0){u&&(this.pinned=!1),!this.hideElement.hidden&&!this.pinned&&(this.hideElement.hidden=!0,this.container.style.zIndex-=1)}}class m extends x{constructor(u){super(u,{isRenderable:!!(u.data.hasPopup||u.data.titleObj?.str||u.data.contentsObj?.str||u.data.richText?.str),ignoreBorder:!0})}render(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class T extends x{constructor(u){super(u,{isRenderable:!!(u.data.hasPopup||u.data.titleObj?.str||u.data.contentsObj?.str||u.data.richText?.str),ignoreBorder:!0})}render(){this.container.className="lineAnnotation";const u=this.data,{width:p,height:N}=w(u.rect),G=this.svgFactory.create(p,N),R=this.svgFactory.createElement("svg:line");return R.setAttribute("x1",u.rect[2]-u.lineCoordinates[0]),R.setAttribute("y1",u.rect[3]-u.lineCoordinates[1]),R.setAttribute("x2",u.rect[2]-u.lineCoordinates[2]),R.setAttribute("y2",u.rect[3]-u.lineCoordinates[3]),R.setAttribute("stroke-width",u.borderStyle.width||1),R.setAttribute("stroke","transparent"),R.setAttribute("fill","transparent"),G.appendChild(R),this.container.append(G),this._createPopup(R,u),this.container}}class W extends x{constructor(u){super(u,{isRenderable:!!(u.data.hasPopup||u.data.titleObj?.str||u.data.contentsObj?.str||u.data.richText?.str),ignoreBorder:!0})}render(){this.container.className="squareAnnotation";const u=this.data,{width:p,height:N}=w(u.rect),G=this.svgFactory.create(p,N),R=u.borderStyle.width,ne=this.svgFactory.createElement("svg:rect");return ne.setAttribute("x",R/2),ne.setAttribute("y",R/2),ne.setAttribute("width",p-R),ne.setAttribute("height",N-R),ne.setAttribute("stroke-width",R||1),ne.setAttribute("stroke","transparent"),ne.setAttribute("fill","transparent"),G.appendChild(ne),this.container.append(G),this._createPopup(ne,u),this.container}}class K extends x{constructor(u){super(u,{isRenderable:!!(u.data.hasPopup||u.data.titleObj?.str||u.data.contentsObj?.str||u.data.richText?.str),ignoreBorder:!0})}render(){this.container.className="circleAnnotation";const u=this.data,{width:p,height:N}=w(u.rect),G=this.svgFactory.create(p,N),R=u.borderStyle.width,ne=this.svgFactory.createElement("svg:ellipse");return ne.setAttribute("cx",p/2),ne.setAttribute("cy",N/2),ne.setAttribute("rx",p/2-R/2),ne.setAttribute("ry",N/2-R/2),ne.setAttribute("stroke-width",R||1),ne.setAttribute("stroke","transparent"),ne.setAttribute("fill","transparent"),G.appendChild(ne),this.container.append(G),this._createPopup(ne,u),this.container}}class re extends x{constructor(u){super(u,{isRenderable:!!(u.data.hasPopup||u.data.titleObj?.str||u.data.contentsObj?.str||u.data.richText?.str),ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const u=this.data,{width:p,height:N}=w(u.rect),G=this.svgFactory.create(p,N);let R=[];for(const S of u.vertices)R.push(S.x-u.rect[0]+","+(u.rect[3]-S.y));R=R.join(" ");const ne=this.svgFactory.createElement(this.svgElementName);return ne.setAttribute("points",R),ne.setAttribute("stroke-width",u.borderStyle.width||1),ne.setAttribute("stroke","transparent"),ne.setAttribute("fill","transparent"),G.appendChild(ne),this.container.append(G),this._createPopup(ne,u),this.container}}class U extends re{constructor(u){super(u),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class fe extends x{constructor(u){super(u,{isRenderable:!!(u.data.hasPopup||u.data.titleObj?.str||u.data.contentsObj?.str||u.data.richText?.str),ignoreBorder:!0})}render(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class ue extends x{constructor(u){super(u,{isRenderable:!!(u.data.hasPopup||u.data.titleObj?.str||u.data.contentsObj?.str||u.data.richText?.str),ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const u=this.data,{width:p,height:N}=w(u.rect),G=this.svgFactory.create(p,N);for(const R of u.inkLists){let ne=[];for(const se of R)ne.push(`${se.x-u.rect[0]},${u.rect[3]-se.y}`);ne=ne.join(" ");const S=this.svgFactory.createElement(this.svgElementName);S.setAttribute("points",ne),S.setAttribute("stroke-width",u.borderStyle.width||1),S.setAttribute("stroke","transparent"),S.setAttribute("fill","transparent"),this._createPopup(S,u),G.appendChild(S)}return this.container.append(G),this.container}}class pe extends x{constructor(u){super(u,{isRenderable:!!(u.data.hasPopup||u.data.titleObj?.str||u.data.contentsObj?.str||u.data.richText?.str),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("highlightAnnotation"):(this.container.className="highlightAnnotation",this.container)}}class he extends x{constructor(u){super(u,{isRenderable:!!(u.data.hasPopup||u.data.titleObj?.str||u.data.contentsObj?.str||u.data.richText?.str),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("underlineAnnotation"):(this.container.className="underlineAnnotation",this.container)}}class de extends x{constructor(u){super(u,{isRenderable:!!(u.data.hasPopup||u.data.titleObj?.str||u.data.contentsObj?.str||u.data.richText?.str),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("squigglyAnnotation"):(this.container.className="squigglyAnnotation",this.container)}}class _e extends x{constructor(u){super(u,{isRenderable:!!(u.data.hasPopup||u.data.titleObj?.str||u.data.contentsObj?.str||u.data.richText?.str),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("strikeoutAnnotation"):(this.container.className="strikeoutAnnotation",this.container)}}class Ee extends x{constructor(u){super(u,{isRenderable:!!(u.data.hasPopup||u.data.titleObj?.str||u.data.contentsObj?.str||u.data.richText?.str),ignoreBorder:!0})}render(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class Ne extends x{constructor(u){super(u,{isRenderable:!0});const{filename:p,content:N}=this.data.file;this.filename=(0,y.getFilenameFromUrl)(p),this.content=N,this.linkService.eventBus?.dispatch("fileattachmentannotation",{source:this,filename:p,content:N})}render(){this.container.className="fileAttachmentAnnotation";const u=document.createElement("div");return u.style.height=this.container.style.height,u.style.width=this.container.style.width,u.addEventListener("dblclick",this._download.bind(this)),!this.data.hasPopup&&(this.data.titleObj?.str||this.data.contentsObj?.str||this.data.richText)&&this._createPopup(u,this.data),this.container.appendChild(u),this.container}_download(){this.downloadManager?.openOrDownloadData(this.container,this.content,this.filename)}}L.AnnotationLayer=class ge{static render(u){const p=[],N=[];for(const R of u.annotations){if(!R)continue;const{width:ne,height:S}=w(R.rect);if(!(ne<=0||S<=0)){if(R.annotationType===n.AnnotationType.POPUP){N.push(R);continue}p.push(R)}}N.length&&p.push(...N);const G=u.div;for(const R of p){const ne=D.create({data:R,layer:G,page:u.page,viewport:u.viewport,linkService:u.linkService,downloadManager:u.downloadManager,imageResourcesPath:u.imageResourcesPath||"",renderForms:!1!==u.renderForms,svgFactory:new y.DOMSVGFactory,annotationStorage:u.annotationStorage||new a.AnnotationStorage,enableScripting:u.enableScripting,hasJSActions:u.hasJSActions,fieldObjects:u.fieldObjects,mouseState:u.mouseState||{isDown:!1}});if(ne.isRenderable){const S=ne.render();if(R.hidden&&(S.style.visibility="hidden"),Array.isArray(S))for(const se of S)G.appendChild(se);else ne instanceof g?G.prepend(S):G.appendChild(S)}}this.#e(G,u.annotationCanvasMap)}static update(u){const{page:p,viewport:N,annotations:G,annotationCanvasMap:R,div:ne}=u,S=N.transform,se=`matrix(${S.join(",")})`;let Me,Fe;for(const Re of G){const je=ne.querySelectorAll(`[data-annotation-id="${Re.id}"]`);if(je)for(const at of je)if(Re.hasOwnCanvas){const ft=n.Util.normalizeRect([Re.rect[0],p.view[3]-Re.rect[1]+p.view[1],Re.rect[2],p.view[3]-Re.rect[3]+p.view[1]]);if(!Fe){Me=Math.abs(S[0]||S[1]);const _t=S.slice();for(let Ge=0;Ge<4;Ge++)_t[Ge]=Math.sign(_t[Ge]);Fe=`matrix(${_t.join(",")})`}const Qe=ft[0]*Me,nt=ft[1]*Me;at.style.left=`${Qe}px`,at.style.top=`${nt}px`,at.style.transformOrigin=`${-Qe}px ${-nt}px`,at.style.transform=Fe}else at.style.transform=se}this.#e(ne,R),ne.hidden=!1}static#e(u,p){if(p){for(const[N,G]of p){const R=u.querySelector(`[data-annotation-id="${N}"]`);if(!R)continue;const{firstChild:ne}=R;"CANVAS"===ne.nodeName?R.replaceChild(G,ne):R.insertBefore(G,ne)}p.clear()}}}},(He,L)=>{function o(y){return Math.floor(255*Math.max(0,Math.min(1,y))).toString(16).padStart(2,"0")}Object.defineProperty(L,"__esModule",{value:!0}),L.ColorConverters=void 0,L.ColorConverters=class n{static CMYK_G([a,Q,ie,Z]){return["G",1-Math.min(1,.3*a+.59*ie+.11*Q+Z)]}static G_CMYK([a]){return["CMYK",0,0,0,1-a]}static G_RGB([a]){return["RGB",a,a,a]}static G_HTML([a]){const Q=o(a);return`#${Q}${Q}${Q}`}static RGB_G([a,Q,ie]){return["G",.3*a+.59*Q+.11*ie]}static RGB_HTML([a,Q,ie]){return`#${o(a)}${o(Q)}${o(ie)}`}static T_HTML(){return"#00000000"}static CMYK_RGB([a,Q,ie,Z]){return["RGB",1-Math.min(1,a+Z),1-Math.min(1,ie+Z),1-Math.min(1,Q+Z)]}static CMYK_HTML(a){return this.RGB_HTML(this.CMYK_RGB(a))}static RGB_CMYK([a,Q,ie]){const Z=1-a,h=1-Q,w=1-ie;return["CMYK",Z,h,w,Math.min(Z,h,w)]}}},(He,L,o)=>{Object.defineProperty(L,"__esModule",{value:!0}),L.XfaLayer=void 0;var n=o(18);L.XfaLayer=class y{static setupStorage(Q,ie,Z,h,w){const D=h.getValue(ie,{value:null});switch(Z.name){case"textarea":if(null!==D.value&&(Q.textContent=D.value),"print"===w)break;Q.addEventListener("input",x=>{h.setValue(ie,{value:x.target.value})});break;case"input":if("radio"===Z.attributes.type||"checkbox"===Z.attributes.type){if(D.value===Z.attributes.xfaOn?Q.setAttribute("checked",!0):D.value===Z.attributes.xfaOff&&Q.removeAttribute("checked"),"print"===w)break;Q.addEventListener("change",x=>{h.setValue(ie,{value:x.target.getAttribute(x.target.checked?"xfaOn":"xfaOff")})})}else{if(null!==D.value&&Q.setAttribute("value",D.value),"print"===w)break;Q.addEventListener("input",x=>{h.setValue(ie,{value:x.target.value})})}break;case"select":if(null!==D.value)for(const x of Z.children)x.attributes.value===D.value&&(x.attributes.selected=!0);Q.addEventListener("input",x=>{const E=x.target.options;h.setValue(ie,{value:-1===E.selectedIndex?"":E[E.selectedIndex].value})})}}static setAttributes({html:Q,element:ie,storage:Z=null,intent:h,linkService:w}){const{attributes:D}=ie,x=Q instanceof HTMLAnchorElement;"radio"===D.type&&(D.name=`${D.name}-${h}`);for(const[E,z]of Object.entries(D))if(null!=z&&"dataId"!==E)if("style"!==E)if("textContent"===E)Q.textContent=z;else if("class"===E)z.length&&Q.setAttribute(E,z.join(" "));else{if(x&&("href"===E||"newWindow"===E))continue;Q.setAttribute(E,z)}else Object.assign(Q.style,z);x&&w.addLinkAttributes(Q,D.href,D.newWindow),Z&&D.dataId&&this.setupStorage(Q,D.dataId,ie,Z)}static render(Q){const ie=Q.annotationStorage,Z=Q.linkService,h=Q.xfaHtml,w=Q.intent||"display",D=document.createElement(h.name);h.attributes&&this.setAttributes({html:D,element:h,intent:w,linkService:Z});const x=[[h,-1,D]],E=Q.div;if(E.appendChild(D),Q.viewport){const d=`matrix(${Q.viewport.transform.join(",")})`;E.style.transform=d}"richText"!==w&&E.setAttribute("class","xfaLayer xfaFont");const z=[];for(;x.length>0;){const[d,C,P]=x[x.length-1];if(C+1===d.children.length){x.pop();continue}const k=d.children[++x[x.length-1][1]];if(null===k)continue;const{name:$}=k;if("#text"===$){const g=document.createTextNode(k.value);z.push(g),P.appendChild(g);continue}let I;if(I=k?.attributes?.xmlns?document.createElementNS(k.attributes.xmlns,$):document.createElement($),P.appendChild(I),k.attributes&&this.setAttributes({html:I,element:k,storage:ie,intent:w,linkService:Z}),k.children&&k.children.length>0)x.push([k,-1,I]);else if(k.value){const g=document.createTextNode(k.value);n.XfaText.shouldBuildText($)&&z.push(g),I.appendChild(g)}}for(const d of E.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))d.setAttribute("readOnly",!0);return{textDivs:z}}static update(Q){const ie=`matrix(${Q.viewport.transform.join(",")})`;Q.div.style.transform=ie,Q.div.hidden=!1}}},(He,L,o)=>{Object.defineProperty(L,"__esModule",{value:!0}),L.renderTextLayer=function P(k){const $=new C({textContent:k.textContent,textContentStream:k.textContentStream,container:k.container,viewport:k.viewport,textDivs:k.textDivs,textContentItemsStr:k.textContentItemsStr,enhanceTextSelection:k.enhanceTextSelection});return $._render(k.timeout),$};var n=o(1);const a=30,ie=new Map,Z=/^\s+$/g;function w(k,$,I,g){const f=document.createElement("span"),m=k._enhanceTextSelection?{angle:0,canvasWidth:0,hasText:""!==$.str,hasEOL:$.hasEOL,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1}:{angle:0,canvasWidth:0,hasText:""!==$.str,hasEOL:$.hasEOL};k._textDivs.push(f);const T=n.Util.transform(k._viewport.transform,$.transform);let W=Math.atan2(T[1],T[0]);const K=I[$.fontName];K.vertical&&(W+=Math.PI/2);const re=Math.hypot(T[2],T[3]),U=re*function h(k,$){const I=ie.get(k);if(I)return I;$.save(),$.font=`30px ${k}`;const g=$.measureText("");let f=g.fontBoundingBoxAscent,m=Math.abs(g.fontBoundingBoxDescent);if(f){$.restore();const W=f/(f+m);return ie.set(k,W),W}$.strokeStyle="red",$.clearRect(0,0,a,a),$.strokeText("g",0,0);let T=$.getImageData(0,0,a,a).data;m=0;for(let W=T.length-1-3;W>=0;W-=4)if(T[W]>0){m=Math.ceil(W/4/a);break}$.clearRect(0,0,a,a),$.strokeText("A",0,a),T=$.getImageData(0,0,a,a).data,f=0;for(let W=0,K=T.length;W<K;W+=4)if(T[W]>0){f=a-Math.floor(W/4/a);break}if($.restore(),f){const W=f/(f+m);return ie.set(k,W),W}return ie.set(k,.8),.8}(K.fontFamily,g);let fe,ue;0===W?(fe=T[4],ue=T[5]-U):(fe=T[4]+U*Math.sin(W),ue=T[5]-U*Math.cos(W)),f.style.left=`${fe}px`,f.style.top=`${ue}px`,f.style.fontSize=`${re}px`,f.style.fontFamily=K.fontFamily,f.setAttribute("role","presentation"),f.textContent=$.str,f.dir=$.dir,k._fontInspectorEnabled&&(f.dataset.fontName=$.fontName),0!==W&&(m.angle=W*(180/Math.PI));let pe=!1;if($.str.length>1||k._enhanceTextSelection&&Z.test($.str))pe=!0;else if(" "!==$.str&&$.transform[0]!==$.transform[3]){const he=Math.abs($.transform[0]),de=Math.abs($.transform[3]);he!==de&&Math.max(he,de)/Math.min(he,de)>1.5&&(pe=!0)}if(pe&&(m.canvasWidth=K.vertical?$.height*k._viewport.scale:$.width*k._viewport.scale),k._textDivProperties.set(f,m),k._textContentStream&&k._layoutText(f),k._enhanceTextSelection&&m.hasText){let he=1,de=0;0!==W&&(he=Math.cos(W),de=Math.sin(W));const _e=(K.vertical?$.height:$.width)*k._viewport.scale,Ee=re;let Ne,ge;0!==W?(Ne=[he,de,-de,he,fe,ue],ge=n.Util.getAxialAlignedBoundingBox([0,0,_e,Ee],Ne)):ge=[fe,ue,fe+_e,ue+Ee],k._bounds.push({left:ge[0],top:ge[1],right:ge[2],bottom:ge[3],div:f,size:[_e,Ee],m:Ne})}}function D(k){if(k._canceled)return;const $=k._textDivs,I=k._capability,g=$.length;if(g>1e5)return k._renderingDone=!0,void I.resolve();if(!k._textContentStream)for(let f=0;f<g;f++)k._layoutText($[f]);k._renderingDone=!0,I.resolve()}function x(k,$,I){let g=0;for(let f=0;f<I;f++){const m=k[$++];m>0&&(g=g?Math.min(m,g):m)}return g}function d(k,$){$.sort(function(f,m){return f.x1-m.x1||f.index-m.index});const g=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}];for(const f of $){let m=0;for(;m<g.length&&g[m].end<=f.y1;)m++;let T=g.length-1;for(;T>=0&&g[T].start>=f.y2;)T--;let W,K,re,U,fe=-1/0;for(re=m;re<=T;re++){let he;W=g[re],K=W.boundary,he=K.x2>f.x1?K.index>f.index?K.x1New:f.x1:void 0===K.x2New?(K.x2+f.x1)/2:K.x2New,he>fe&&(fe=he)}for(f.x1New=fe,re=m;re<=T;re++)W=g[re],K=W.boundary,void 0===K.x2New?K.x2>f.x1?K.index>f.index&&(K.x2New=K.x2):K.x2New=fe:K.x2New>fe&&(K.x2New=Math.max(fe,K.x2));const ue=[];let pe=null;for(re=m;re<=T;re++){W=g[re],K=W.boundary;const he=K.x2>f.x2?K:f;pe===he?ue[ue.length-1].end=W.end:(ue.push({start:W.start,end:W.end,boundary:he}),pe=he)}for(g[m].start<f.y1&&(ue[0].start=f.y1,ue.unshift({start:g[m].start,end:f.y1,boundary:g[m].boundary})),f.y2<g[T].end&&(ue[ue.length-1].end=f.y2,ue.push({start:f.y2,end:g[T].end,boundary:g[T].boundary})),re=m;re<=T;re++){if(W=g[re],K=W.boundary,void 0!==K.x2New)continue;let he=!1;for(U=m-1;!he&&U>=0&&g[U].start>=K.y1;U--)he=g[U].boundary===K;for(U=T+1;!he&&U<g.length&&g[U].end<=K.y2;U++)he=g[U].boundary===K;for(U=0;!he&&U<ue.length;U++)he=ue[U].boundary===K;he||(K.x2New=fe)}Array.prototype.splice.apply(g,[m,T-m+1].concat(ue))}for(const f of g){const m=f.boundary;void 0===m.x2New&&(m.x2New=Math.max(k,m.x2))}}class C{constructor({textContent:$,textContentStream:I,container:g,viewport:f,textDivs:m,textContentItemsStr:T,enhanceTextSelection:W}){this._textContent=$,this._textContentStream=I,this._container=g,this._document=g.ownerDocument,this._viewport=f,this._textDivs=m||[],this._textContentItemsStr=T||[],this._enhanceTextSelection=!!W,this._fontInspectorEnabled=!!globalThis.FontInspector?.enabled,this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,n.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise.finally(()=>{this._enhanceTextSelection||(this._textDivProperties=null),this._layoutTextCtx&&(this._layoutTextCtx.canvas.width=0,this._layoutTextCtx.canvas.height=0,this._layoutTextCtx=null)}).catch(()=>{})}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new n.AbortException("TextLayer task cancelled.")).catch(()=>{}),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))}_processItems($,I){for(let g=0,f=$.length;g<f;g++)if(void 0!==$[g].str)this._textContentItemsStr.push($[g].str),w(this,$[g],I,this._layoutTextCtx);else if("beginMarkedContentProps"===$[g].type||"beginMarkedContent"===$[g].type){const m=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),null!==$[g].id&&this._container.setAttribute("id",`${$[g].id}`),m.appendChild(this._container)}else"endMarkedContent"===$[g].type&&(this._container=this._container.parentNode)}_layoutText($){const I=this._textDivProperties.get($);let g="";if(0!==I.canvasWidth&&I.hasText){const{fontSize:f,fontFamily:m}=$.style;(f!==this._layoutTextLastFontSize||m!==this._layoutTextLastFontFamily)&&(this._layoutTextCtx.font=`${f} ${m}`,this._layoutTextLastFontSize=f,this._layoutTextLastFontFamily=m);const{width:T}=this._layoutTextCtx.measureText($.textContent);if(T>0){const W=I.canvasWidth/T;this._enhanceTextSelection&&(I.scale=W),g=`scaleX(${W})`}}if(0!==I.angle&&(g=`rotate(${I.angle}deg) ${g}`),g.length>0&&(this._enhanceTextSelection&&(I.originalTransform=g),$.style.transform=g),I.hasText&&this._container.appendChild($),I.hasEOL){const f=document.createElement("br");f.setAttribute("role","presentation"),this._container.appendChild(f)}}_render($=0){const I=(0,n.createPromiseCapability)();let g=Object.create(null);const f=this._document.createElement("canvas");if(f.height=f.width=a,this._layoutTextCtx=f.getContext("2d",{alpha:!1}),this._textContent)this._processItems(this._textContent.items,this._textContent.styles),I.resolve();else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');{const m=()=>{this._reader.read().then(({value:T,done:W})=>{W?I.resolve():(Object.assign(g,T.styles),this._processItems(T.items,g),m())},I.reject)};this._reader=this._textContentStream.getReader(),m()}}I.promise.then(()=>{g=null,$?this._renderTimer=setTimeout(()=>{D(this),this._renderTimer=null},$):D(this)},this._capability.reject)}expandTextDivs($=!1){if(!this._enhanceTextSelection||!this._renderingDone)return;null!==this._bounds&&(function E(k){const $=k._bounds,I=k._viewport,g=function z(k,$,I){const g=I.map(function(m,T){return{x1:m.left,y1:m.top,x2:m.right,y2:m.bottom,index:T,x1New:void 0,x2New:void 0}});d(k,g);const f=new Array(I.length);for(const m of g)f[m.index]={left:m.x1New,top:0,right:m.x2New,bottom:0};I.map(function(m,T){const W=f[T],K=g[T];K.x1=m.top,K.y1=k-W.right,K.x2=m.bottom,K.y2=k-W.left,K.index=T,K.x1New=void 0,K.x2New=void 0}),d($,g);for(const m of g){const T=m.index;f[T].top=m.x1New,f[T].bottom=m.x2New}return f}(I.width,I.height,$);for(let f=0;f<g.length;f++){const m=$[f].div,T=k._textDivProperties.get(m);if(0===T.angle){T.paddingLeft=$[f].left-g[f].left,T.paddingTop=$[f].top-g[f].top,T.paddingRight=g[f].right-$[f].right,T.paddingBottom=g[f].bottom-$[f].bottom,k._textDivProperties.set(m,T);continue}const W=g[f],K=$[f],re=K.m,U=re[0],fe=re[1],ue=[[0,0],[0,K.size[1]],[K.size[0],0],K.size],pe=new Float64Array(64);for(let de=0,_e=ue.length;de<_e;de++){const Ee=n.Util.applyTransform(ue[de],re);pe[de+0]=U&&(W.left-Ee[0])/U,pe[de+4]=fe&&(W.top-Ee[1])/fe,pe[de+8]=U&&(W.right-Ee[0])/U,pe[de+12]=fe&&(W.bottom-Ee[1])/fe,pe[de+16]=fe&&(W.left-Ee[0])/-fe,pe[de+20]=U&&(W.top-Ee[1])/U,pe[de+24]=fe&&(W.right-Ee[0])/-fe,pe[de+28]=U&&(W.bottom-Ee[1])/U,pe[de+32]=U&&(W.left-Ee[0])/-U,pe[de+36]=fe&&(W.top-Ee[1])/-fe,pe[de+40]=U&&(W.right-Ee[0])/-U,pe[de+44]=fe&&(W.bottom-Ee[1])/-fe,pe[de+48]=fe&&(W.left-Ee[0])/fe,pe[de+52]=U&&(W.top-Ee[1])/-U,pe[de+56]=fe&&(W.right-Ee[0])/fe,pe[de+60]=U&&(W.bottom-Ee[1])/-U}const he=1+Math.min(Math.abs(U),Math.abs(fe));T.paddingLeft=x(pe,32,16)/he,T.paddingTop=x(pe,48,16)/he,T.paddingRight=x(pe,0,16)/he,T.paddingBottom=x(pe,16,16)/he,k._textDivProperties.set(m,T)}}(this),this._bounds=null);const I=[],g=[];for(let f=0,m=this._textDivs.length;f<m;f++){const T=this._textDivs[f],W=this._textDivProperties.get(T);W.hasText&&($?(I.length=0,g.length=0,W.originalTransform&&I.push(W.originalTransform),W.paddingTop>0?(g.push(`${W.paddingTop}px`),I.push(`translateY(${-W.paddingTop}px)`)):g.push(0),g.push(W.paddingRight>0?W.paddingRight/W.scale+"px":0),g.push(W.paddingBottom>0?`${W.paddingBottom}px`:0),W.paddingLeft>0?(g.push(W.paddingLeft/W.scale+"px"),I.push(`translateX(${-W.paddingLeft/W.scale}px)`)):g.push(0),T.style.padding=g.join(" "),I.length&&(T.style.transform=I.join(" "))):(T.style.padding=null,T.style.transform=W.originalTransform))}}}},(He,L,o)=>{Object.defineProperty(L,"__esModule",{value:!0}),L.SVGGraphics=void 0;var n=o(1),y=o(5),a=o(3);let Q=class{constructor(){(0,n.unreachable)("Not implemented: SVGGraphics")}};L.SVGGraphics=Q;{let d=function(g){let f=[];const m=[];for(const T of g)"save"!==T.fn?"restore"===T.fn?f=m.pop():f.push(T):(f.push({fnId:92,fn:"group",items:[]}),m.push(f),f=f[f.length-1].items);return f},C=function(g){if(Number.isInteger(g))return g.toString();const f=g.toFixed(10);let m=f.length-1;if("0"!==f[m])return f;do{m--}while("0"===f[m]);return f.substring(0,"."===f[m]?m:m+1)},P=function(g){if(0===g[4]&&0===g[5]){if(0===g[1]&&0===g[2])return 1===g[0]&&1===g[3]?"":`scale(${C(g[0])} ${C(g[3])})`;if(g[0]===g[3]&&g[1]===-g[2]){const f=180*Math.acos(g[0])/Math.PI;return`rotate(${C(f)})`}}else if(1===g[0]&&0===g[1]&&0===g[2]&&1===g[3])return`translate(${C(g[4])} ${C(g[5])})`;return`matrix(${C(g[0])} ${C(g[1])} ${C(g[2])} ${C(g[3])} ${C(g[4])} ${C(g[5])})`};const ie={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},Z="http://www.w3.org/XML/1998/namespace",h="http://www.w3.org/1999/xlink",w=["butt","round","square"],D=["miter","round","bevel"],x=function(g,f="",m=!1){if(URL.createObjectURL&&typeof Blob<"u"&&!m)return URL.createObjectURL(new Blob([g],{type:f}));const T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let W=`data:${f};base64,`;for(let K=0,re=g.length;K<re;K+=3){const U=255&g[K],fe=255&g[K+1],ue=255&g[K+2];W+=T[U>>2]+T[(3&U)<<4|fe>>4]+T[K+1<re?(15&fe)<<2|ue>>6:64]+T[K+2<re?63&ue:64]}return W},E=function(){const g=new Uint8Array([137,80,78,71,13,10,26,10]),m=new Int32Array(256);for(let ue=0;ue<256;ue++){let pe=ue;for(let he=0;he<8;he++)pe=1&pe?3988292384^pe>>1&2147483647:pe>>1&2147483647;m[ue]=pe}function W(ue,pe,he,de){let _e=de;const Ee=pe.length;he[_e]=Ee>>24&255,he[_e+1]=Ee>>16&255,he[_e+2]=Ee>>8&255,he[_e+3]=255&Ee,_e+=4,he[_e]=255&ue.charCodeAt(0),he[_e+1]=255&ue.charCodeAt(1),he[_e+2]=255&ue.charCodeAt(2),he[_e+3]=255&ue.charCodeAt(3),_e+=4,he.set(pe,_e),_e+=pe.length;const Ne=function T(ue,pe,he){let de=-1;for(let _e=pe;_e<he;_e++)de=de>>>8^m[255&(de^ue[_e])];return-1^de}(he,de+4,_e);he[_e]=Ne>>24&255,he[_e+1]=Ne>>16&255,he[_e+2]=Ne>>8&255,he[_e+3]=255&Ne}function U(ue){let pe=ue.length;const he=65535,de=Math.ceil(pe/he),_e=new Uint8Array(2+pe+5*de+4);let Ee=0;_e[Ee++]=120,_e[Ee++]=156;let Ne=0;for(;pe>he;)_e[Ee++]=0,_e[Ee++]=255,_e[Ee++]=255,_e[Ee++]=0,_e[Ee++]=0,_e.set(ue.subarray(Ne,Ne+he),Ee),Ee+=he,Ne+=he,pe-=he;_e[Ee++]=1,_e[Ee++]=255&pe,_e[Ee++]=pe>>8&255,_e[Ee++]=255&~pe,_e[Ee++]=(65535&~pe)>>8&255,_e.set(ue.subarray(Ne),Ee),Ee+=ue.length-Ne;const ge=function K(ue,pe,he){let de=1,_e=0;for(let Ee=pe;Ee<he;++Ee)de=(de+(255&ue[Ee]))%65521,_e=(_e+de)%65521;return _e<<16|de}(ue,0,ue.length);return _e[Ee++]=ge>>24&255,_e[Ee++]=ge>>16&255,_e[Ee++]=ge>>8&255,_e[Ee++]=255&ge,_e}return function(pe,he,de){return function fe(ue,pe,he,de){const _e=ue.width,Ee=ue.height;let Ne,ge,q;const u=ue.data;switch(pe){case n.ImageKind.GRAYSCALE_1BPP:ge=0,Ne=1,q=_e+7>>3;break;case n.ImageKind.RGB_24BPP:ge=2,Ne=8,q=3*_e;break;case n.ImageKind.RGBA_32BPP:ge=6,Ne=8,q=4*_e;break;default:throw new Error("invalid format")}const p=new Uint8Array((1+q)*Ee);let N=0,G=0;for(let Fe=0;Fe<Ee;++Fe)p[N++]=0,p.set(u.subarray(G,G+q),N),G+=q,N+=q;if(pe===n.ImageKind.GRAYSCALE_1BPP&&de){N=0;for(let Fe=0;Fe<Ee;Fe++){N++;for(let Re=0;Re<q;Re++)p[N++]^=255}}const R=new Uint8Array([_e>>24&255,_e>>16&255,_e>>8&255,255&_e,Ee>>24&255,Ee>>16&255,Ee>>8&255,255&Ee,Ne,ge,0,0,0]),ne=function re(ue){if(!a.isNodeJS)return U(ue);try{let pe;pe=parseInt(process.versions.node)>=8?ue:Buffer.from(ue);const he=__webpack_require__(18306).deflateSync(pe,{level:9});return he instanceof Uint8Array?he:new Uint8Array(he)}catch(pe){(0,n.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+pe)}return U(ue)}(p),se=new Uint8Array(g.length+36+R.length+ne.length);let Me=0;return se.set(g,Me),Me+=g.length,W("IHDR",R,se,Me),Me+=12+R.length,W("IDATA",ne,se,Me),Me+=12+ne.length,W("IEND",new Uint8Array(0),se,Me),x(se,"image/png",he)}(pe,void 0===pe.kind?n.ImageKind.GRAYSCALE_1BPP:pe.kind,he,de)}}();class z{constructor(){this.fontSizeScale=1,this.fontWeight=ie.fontWeight,this.fontSize=0,this.textMatrix=n.IDENTITY_MATRIX,this.fontMatrix=n.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=n.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=ie.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(f,m){this.x=f,this.y=m}}let k=0,$=0,I=0;L.SVGGraphics=Q=class{constructor(g,f,m=!1){this.svgFactory=new y.DOMSVGFactory,this.current=new z,this.transformMatrix=n.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=g,this.objs=f,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!m,this._operatorIdMapping=[];for(const T in n.OPS)this._operatorIdMapping[n.OPS[T]]=T}save(){this.transformStack.push(this.transformMatrix);const g=this.current;this.extraStack.push(g),this.current=g.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(g){this.save(),this.executeOpTree(g),this.restore()}loadDependencies(g){const f=g.fnArray,m=g.argsArray;for(let T=0,W=f.length;T<W;T++)if(f[T]===n.OPS.dependency)for(const K of m[T]){const re=K.startsWith("g_")?this.commonObjs:this.objs,U=new Promise(fe=>{re.get(K,fe)});this.current.dependencies.push(U)}return Promise.all(this.current.dependencies)}transform(g,f,m,T,W,K){this.transformMatrix=n.Util.transform(this.transformMatrix,[g,f,m,T,W,K]),this.tgrp=null}getSVG(g,f){this.viewport=f;const m=this._initialize(f);return this.loadDependencies(g).then(()=>(this.transformMatrix=n.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(g)),m))}convertOpList(g){const f=this._operatorIdMapping,m=g.argsArray,T=g.fnArray,W=[];for(let K=0,re=T.length;K<re;K++){const U=T[K];W.push({fnId:U,fn:f[U],args:m[K]})}return d(W)}executeOpTree(g){for(const f of g){const m=f.fn,W=f.args;switch(0|f.fnId){case n.OPS.beginText:this.beginText();break;case n.OPS.dependency:break;case n.OPS.setLeading:this.setLeading(W);break;case n.OPS.setLeadingMoveText:this.setLeadingMoveText(W[0],W[1]);break;case n.OPS.setFont:this.setFont(W);break;case n.OPS.showText:case n.OPS.showSpacedText:this.showText(W[0]);break;case n.OPS.endText:this.endText();break;case n.OPS.moveText:this.moveText(W[0],W[1]);break;case n.OPS.setCharSpacing:this.setCharSpacing(W[0]);break;case n.OPS.setWordSpacing:this.setWordSpacing(W[0]);break;case n.OPS.setHScale:this.setHScale(W[0]);break;case n.OPS.setTextMatrix:this.setTextMatrix(W[0],W[1],W[2],W[3],W[4],W[5]);break;case n.OPS.setTextRise:this.setTextRise(W[0]);break;case n.OPS.setTextRenderingMode:this.setTextRenderingMode(W[0]);break;case n.OPS.setLineWidth:this.setLineWidth(W[0]);break;case n.OPS.setLineJoin:this.setLineJoin(W[0]);break;case n.OPS.setLineCap:this.setLineCap(W[0]);break;case n.OPS.setMiterLimit:this.setMiterLimit(W[0]);break;case n.OPS.setFillRGBColor:this.setFillRGBColor(W[0],W[1],W[2]);break;case n.OPS.setStrokeRGBColor:this.setStrokeRGBColor(W[0],W[1],W[2]);break;case n.OPS.setStrokeColorN:this.setStrokeColorN(W);break;case n.OPS.setFillColorN:this.setFillColorN(W);break;case n.OPS.shadingFill:this.shadingFill(W[0]);break;case n.OPS.setDash:this.setDash(W[0],W[1]);break;case n.OPS.setRenderingIntent:this.setRenderingIntent(W[0]);break;case n.OPS.setFlatness:this.setFlatness(W[0]);break;case n.OPS.setGState:this.setGState(W[0]);break;case n.OPS.fill:this.fill();break;case n.OPS.eoFill:this.eoFill();break;case n.OPS.stroke:this.stroke();break;case n.OPS.fillStroke:this.fillStroke();break;case n.OPS.eoFillStroke:this.eoFillStroke();break;case n.OPS.clip:this.clip("nonzero");break;case n.OPS.eoClip:this.clip("evenodd");break;case n.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case n.OPS.paintImageXObject:this.paintImageXObject(W[0]);break;case n.OPS.paintInlineImageXObject:this.paintInlineImageXObject(W[0]);break;case n.OPS.paintImageMaskXObject:this.paintImageMaskXObject(W[0]);break;case n.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(W[0],W[1]);break;case n.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case n.OPS.closePath:this.closePath();break;case n.OPS.closeStroke:this.closeStroke();break;case n.OPS.closeFillStroke:this.closeFillStroke();break;case n.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case n.OPS.nextLine:this.nextLine();break;case n.OPS.transform:this.transform(W[0],W[1],W[2],W[3],W[4],W[5]);break;case n.OPS.constructPath:this.constructPath(W[0],W[1]);break;case n.OPS.endPath:this.endPath();break;case 92:this.group(f.items);break;default:(0,n.warn)(`Unimplemented operator ${m}`)}}}setWordSpacing(g){this.current.wordSpacing=g}setCharSpacing(g){this.current.charSpacing=g}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(g,f,m,T,W,K){const re=this.current;re.textMatrix=re.lineMatrix=[g,f,m,T,W,K],re.textMatrixScale=Math.hypot(g,f),re.x=re.lineX=0,re.y=re.lineY=0,re.xcoords=[],re.ycoords=[],re.tspan=this.svgFactory.createElement("svg:tspan"),re.tspan.setAttributeNS(null,"font-family",re.fontFamily),re.tspan.setAttributeNS(null,"font-size",`${C(re.fontSize)}px`),re.tspan.setAttributeNS(null,"y",C(-re.y)),re.txtElement=this.svgFactory.createElement("svg:text"),re.txtElement.appendChild(re.tspan)}beginText(){const g=this.current;g.x=g.lineX=0,g.y=g.lineY=0,g.textMatrix=n.IDENTITY_MATRIX,g.lineMatrix=n.IDENTITY_MATRIX,g.textMatrixScale=1,g.tspan=this.svgFactory.createElement("svg:tspan"),g.txtElement=this.svgFactory.createElement("svg:text"),g.txtgrp=this.svgFactory.createElement("svg:g"),g.xcoords=[],g.ycoords=[]}moveText(g,f){const m=this.current;m.x=m.lineX+=g,m.y=m.lineY+=f,m.xcoords=[],m.ycoords=[],m.tspan=this.svgFactory.createElement("svg:tspan"),m.tspan.setAttributeNS(null,"font-family",m.fontFamily),m.tspan.setAttributeNS(null,"font-size",`${C(m.fontSize)}px`),m.tspan.setAttributeNS(null,"y",C(-m.y))}showText(g){const f=this.current,m=f.font,T=f.fontSize;if(0===T)return;const W=f.fontSizeScale,K=f.charSpacing,re=f.wordSpacing,U=f.fontDirection,fe=f.textHScale*U,ue=m.vertical,pe=ue?1:-1,he=m.defaultVMetrics,de=T*f.fontMatrix[0];let _e=0;for(const ge of g){if(null===ge){_e+=U*re;continue}if("number"==typeof ge){_e+=pe*ge*T/1e3;continue}const q=(ge.isSpace?re:0)+K,u=ge.fontChar;let p,N,R,G=ge.width;if(ue){let ne;const S=ge.vmetric||he;ne=ge.vmetric?S[1]:.5*G,ne=-ne*de,G=S?-S[0]:G,p=ne/W,N=(_e+S[2]*de)/W}else p=_e/W,N=0;(ge.isInFont||m.missingFile)&&(f.xcoords.push(f.x+p),ue&&f.ycoords.push(-f.y+N),f.tspan.textContent+=u),R=ue?G*de-q*U:G*de+q*U,_e+=R}f.tspan.setAttributeNS(null,"x",f.xcoords.map(C).join(" ")),f.tspan.setAttributeNS(null,"y",ue?f.ycoords.map(C).join(" "):C(-f.y)),ue?f.y-=_e:f.x+=_e*fe,f.tspan.setAttributeNS(null,"font-family",f.fontFamily),f.tspan.setAttributeNS(null,"font-size",`${C(f.fontSize)}px`),f.fontStyle!==ie.fontStyle&&f.tspan.setAttributeNS(null,"font-style",f.fontStyle),f.fontWeight!==ie.fontWeight&&f.tspan.setAttributeNS(null,"font-weight",f.fontWeight);const Ee=f.textRenderingMode&n.TextRenderingMode.FILL_STROKE_MASK;Ee===n.TextRenderingMode.FILL||Ee===n.TextRenderingMode.FILL_STROKE?(f.fillColor!==ie.fillColor&&f.tspan.setAttributeNS(null,"fill",f.fillColor),f.fillAlpha<1&&f.tspan.setAttributeNS(null,"fill-opacity",f.fillAlpha)):f.tspan.setAttributeNS(null,"fill",f.textRenderingMode===n.TextRenderingMode.ADD_TO_PATH?"transparent":"none"),(Ee===n.TextRenderingMode.STROKE||Ee===n.TextRenderingMode.FILL_STROKE)&&this._setStrokeAttributes(f.tspan,1/(f.textMatrixScale||1));let Ne=f.textMatrix;0!==f.textRise&&(Ne=Ne.slice(),Ne[5]+=f.textRise),f.txtElement.setAttributeNS(null,"transform",`${P(Ne)} scale(${C(fe)}, -1)`),f.txtElement.setAttributeNS(Z,"xml:space","preserve"),f.txtElement.appendChild(f.tspan),f.txtgrp.appendChild(f.txtElement),this._ensureTransformGroup().appendChild(f.txtElement)}setLeadingMoveText(g,f){this.setLeading(-f),this.moveText(g,f)}addFontStyle(g){if(!g.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));const f=x(g.data,g.mimetype,this.forceDataSchema);this.cssStyle.textContent+=`@font-face { font-family: "${g.loadedName}"; src: url(${f}); }\n`}setFont(g){const f=this.current,m=this.commonObjs.get(g[0]);let T=g[1];f.font=m,this.embedFonts&&!m.missingFile&&!this.embeddedFonts[m.loadedName]&&(this.addFontStyle(m),this.embeddedFonts[m.loadedName]=m),f.fontMatrix=m.fontMatrix||n.FONT_IDENTITY_MATRIX;let W="normal";m.black?W="900":m.bold&&(W="bold");const K=m.italic?"italic":"normal";T<0?(T=-T,f.fontDirection=-1):f.fontDirection=1,f.fontSize=T,f.fontFamily=m.loadedName,f.fontWeight=W,f.fontStyle=K,f.tspan=this.svgFactory.createElement("svg:tspan"),f.tspan.setAttributeNS(null,"y",C(-f.y)),f.xcoords=[],f.ycoords=[]}endText(){const g=this.current;g.textRenderingMode&n.TextRenderingMode.ADD_TO_PATH_FLAG&&g.txtElement?.hasChildNodes()&&(g.element=g.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(g){g>0&&(this.current.lineWidth=g)}setLineCap(g){this.current.lineCap=w[g]}setLineJoin(g){this.current.lineJoin=D[g]}setMiterLimit(g){this.current.miterLimit=g}setStrokeAlpha(g){this.current.strokeAlpha=g}setStrokeRGBColor(g,f,m){this.current.strokeColor=n.Util.makeHexColor(g,f,m)}setFillAlpha(g){this.current.fillAlpha=g}setFillRGBColor(g,f,m){this.current.fillColor=n.Util.makeHexColor(g,f,m),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(g){this.current.strokeColor=this._makeColorN_Pattern(g)}setFillColorN(g){this.current.fillColor=this._makeColorN_Pattern(g)}shadingFill(g){const f=this.viewport.width,m=this.viewport.height,T=n.Util.inverseTransform(this.transformMatrix),W=n.Util.applyTransform([0,0],T),K=n.Util.applyTransform([0,m],T),re=n.Util.applyTransform([f,0],T),U=n.Util.applyTransform([f,m],T),fe=Math.min(W[0],K[0],re[0],U[0]),ue=Math.min(W[1],K[1],re[1],U[1]),pe=Math.max(W[0],K[0],re[0],U[0]),he=Math.max(W[1],K[1],re[1],U[1]),de=this.svgFactory.createElement("svg:rect");de.setAttributeNS(null,"x",fe),de.setAttributeNS(null,"y",ue),de.setAttributeNS(null,"width",pe-fe),de.setAttributeNS(null,"height",he-ue),de.setAttributeNS(null,"fill",this._makeShadingPattern(g)),this.current.fillAlpha<1&&de.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(de)}_makeColorN_Pattern(g){return"TilingPattern"===g[0]?this._makeTilingPattern(g):this._makeShadingPattern(g)}_makeTilingPattern(g){const f=g[1],m=g[2],T=g[3]||n.IDENTITY_MATRIX,[W,K,re,U]=g[4],fe=g[5],ue=g[6],pe=g[7],he="shading"+I++,[de,_e,Ee,Ne]=n.Util.normalizeRect([...n.Util.applyTransform([W,K],T),...n.Util.applyTransform([re,U],T)]),[ge,q]=n.Util.singularValueDecompose2dScale(T),u=fe*ge,p=ue*q,N=this.svgFactory.createElement("svg:pattern");N.setAttributeNS(null,"id",he),N.setAttributeNS(null,"patternUnits","userSpaceOnUse"),N.setAttributeNS(null,"width",u),N.setAttributeNS(null,"height",p),N.setAttributeNS(null,"x",`${de}`),N.setAttributeNS(null,"y",`${_e}`);const G=this.svg,R=this.transformMatrix,ne=this.current.fillColor,S=this.current.strokeColor,se=this.svgFactory.create(Ee-de,Ne-_e);if(this.svg=se,this.transformMatrix=T,2===pe){const Me=n.Util.makeHexColor(...f);this.current.fillColor=Me,this.current.strokeColor=Me}return this.executeOpTree(this.convertOpList(m)),this.svg=G,this.transformMatrix=R,this.current.fillColor=ne,this.current.strokeColor=S,N.appendChild(se.childNodes[0]),this.defs.appendChild(N),`url(#${he})`}_makeShadingPattern(g){switch("string"==typeof g&&(g=this.objs.get(g)),g[0]){case"RadialAxial":const f="shading"+I++,m=g[3];let T;switch(g[1]){case"axial":const W=g[4],K=g[5];T=this.svgFactory.createElement("svg:linearGradient"),T.setAttributeNS(null,"id",f),T.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),T.setAttributeNS(null,"x1",W[0]),T.setAttributeNS(null,"y1",W[1]),T.setAttributeNS(null,"x2",K[0]),T.setAttributeNS(null,"y2",K[1]);break;case"radial":const re=g[4],U=g[5],fe=g[6],ue=g[7];T=this.svgFactory.createElement("svg:radialGradient"),T.setAttributeNS(null,"id",f),T.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),T.setAttributeNS(null,"cx",U[0]),T.setAttributeNS(null,"cy",U[1]),T.setAttributeNS(null,"r",ue),T.setAttributeNS(null,"fx",re[0]),T.setAttributeNS(null,"fy",re[1]),T.setAttributeNS(null,"fr",fe);break;default:throw new Error(`Unknown RadialAxial type: ${g[1]}`)}for(const W of m){const K=this.svgFactory.createElement("svg:stop");K.setAttributeNS(null,"offset",W[0]),K.setAttributeNS(null,"stop-color",W[1]),T.appendChild(K)}return this.defs.appendChild(T),`url(#${f})`;case"Mesh":return(0,n.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${g[0]}`)}}setDash(g,f){this.current.dashArray=g,this.current.dashPhase=f}constructPath(g,f){const m=this.current;let T=m.x,W=m.y,K=[],re=0;for(const U of g)switch(0|U){case n.OPS.rectangle:T=f[re++],W=f[re++];const pe=T+f[re++],he=W+f[re++];K.push("M",C(T),C(W),"L",C(pe),C(W),"L",C(pe),C(he),"L",C(T),C(he),"Z");break;case n.OPS.moveTo:T=f[re++],W=f[re++],K.push("M",C(T),C(W));break;case n.OPS.lineTo:T=f[re++],W=f[re++],K.push("L",C(T),C(W));break;case n.OPS.curveTo:T=f[re+4],W=f[re+5],K.push("C",C(f[re]),C(f[re+1]),C(f[re+2]),C(f[re+3]),C(T),C(W)),re+=6;break;case n.OPS.curveTo2:K.push("C",C(T),C(W),C(f[re]),C(f[re+1]),C(f[re+2]),C(f[re+3])),T=f[re+2],W=f[re+3],re+=4;break;case n.OPS.curveTo3:T=f[re+2],W=f[re+3],K.push("C",C(f[re]),C(f[re+1]),C(T),C(W),C(T),C(W)),re+=4;break;case n.OPS.closePath:K.push("Z")}K=K.join(" "),m.path&&g.length>0&&g[0]!==n.OPS.rectangle&&g[0]!==n.OPS.moveTo?K=m.path.getAttributeNS(null,"d")+K:(m.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(m.path)),m.path.setAttributeNS(null,"d",K),m.path.setAttributeNS(null,"fill","none"),m.element=m.path,m.setCurrentPoint(T,W)}endPath(){const g=this.current;if(g.path=null,!this.pendingClip)return;if(!g.element)return void(this.pendingClip=null);const f="clippath"+k++,m=this.svgFactory.createElement("svg:clipPath");m.setAttributeNS(null,"id",f),m.setAttributeNS(null,"transform",P(this.transformMatrix));const T=g.element.cloneNode(!0);if(T.setAttributeNS(null,"clip-rule","evenodd"===this.pendingClip?"evenodd":"nonzero"),this.pendingClip=null,m.appendChild(T),this.defs.appendChild(m),g.activeClipUrl){g.clipGroup=null;for(const W of this.extraStack)W.clipGroup=null;m.setAttributeNS(null,"clip-path",g.activeClipUrl)}g.activeClipUrl=`url(#${f})`,this.tgrp=null}clip(g){this.pendingClip=g}closePath(){const g=this.current;if(g.path){const f=`${g.path.getAttributeNS(null,"d")}Z`;g.path.setAttributeNS(null,"d",f)}}setLeading(g){this.current.leading=-g}setTextRise(g){this.current.textRise=g}setTextRenderingMode(g){this.current.textRenderingMode=g}setHScale(g){this.current.textHScale=g/100}setRenderingIntent(g){}setFlatness(g){}setGState(g){for(const[f,m]of g)switch(f){case"LW":this.setLineWidth(m);break;case"LC":this.setLineCap(m);break;case"LJ":this.setLineJoin(m);break;case"ML":this.setMiterLimit(m);break;case"D":this.setDash(m[0],m[1]);break;case"RI":this.setRenderingIntent(m);break;case"FL":this.setFlatness(m);break;case"Font":this.setFont(m);break;case"CA":this.setStrokeAlpha(m);break;case"ca":this.setFillAlpha(m);break;default:(0,n.warn)(`Unimplemented graphic state operator ${f}`)}}fill(){const g=this.current;g.element&&(g.element.setAttributeNS(null,"fill",g.fillColor),g.element.setAttributeNS(null,"fill-opacity",g.fillAlpha),this.endPath())}stroke(){const g=this.current;g.element&&(this._setStrokeAttributes(g.element),g.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(g,f=1){const m=this.current;let T=m.dashArray;1!==f&&T.length>0&&(T=T.map(function(W){return f*W})),g.setAttributeNS(null,"stroke",m.strokeColor),g.setAttributeNS(null,"stroke-opacity",m.strokeAlpha),g.setAttributeNS(null,"stroke-miterlimit",C(m.miterLimit)),g.setAttributeNS(null,"stroke-linecap",m.lineCap),g.setAttributeNS(null,"stroke-linejoin",m.lineJoin),g.setAttributeNS(null,"stroke-width",C(f*m.lineWidth)+"px"),g.setAttributeNS(null,"stroke-dasharray",T.map(C).join(" ")),g.setAttributeNS(null,"stroke-dashoffset",C(f*m.dashPhase)+"px")}eoFill(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const g=this.svgFactory.createElement("svg:rect");g.setAttributeNS(null,"x","0"),g.setAttributeNS(null,"y","0"),g.setAttributeNS(null,"width","1px"),g.setAttributeNS(null,"height","1px"),g.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(g)}paintImageXObject(g){const f=g.startsWith("g_")?this.commonObjs.get(g):this.objs.get(g);f?this.paintInlineImageXObject(f):(0,n.warn)(`Dependent image with object ID ${g} is not ready yet`)}paintInlineImageXObject(g,f){const m=g.width,T=g.height,W=E(g,this.forceDataSchema,!!f),K=this.svgFactory.createElement("svg:rect");K.setAttributeNS(null,"x","0"),K.setAttributeNS(null,"y","0"),K.setAttributeNS(null,"width",C(m)),K.setAttributeNS(null,"height",C(T)),this.current.element=K,this.clip("nonzero");const re=this.svgFactory.createElement("svg:image");re.setAttributeNS(h,"xlink:href",W),re.setAttributeNS(null,"x","0"),re.setAttributeNS(null,"y",C(-T)),re.setAttributeNS(null,"width",C(m)+"px"),re.setAttributeNS(null,"height",C(T)+"px"),re.setAttributeNS(null,"transform",`scale(${C(1/m)} ${C(-1/T)})`),f?f.appendChild(re):this._ensureTransformGroup().appendChild(re)}paintImageMaskXObject(g){const f=this.current,m=g.width,T=g.height,W=f.fillColor;f.maskId="mask"+$++;const K=this.svgFactory.createElement("svg:mask");K.setAttributeNS(null,"id",f.maskId);const re=this.svgFactory.createElement("svg:rect");re.setAttributeNS(null,"x","0"),re.setAttributeNS(null,"y","0"),re.setAttributeNS(null,"width",C(m)),re.setAttributeNS(null,"height",C(T)),re.setAttributeNS(null,"fill",W),re.setAttributeNS(null,"mask",`url(#${f.maskId})`),this.defs.appendChild(K),this._ensureTransformGroup().appendChild(re),this.paintInlineImageXObject(g,K)}paintFormXObjectBegin(g,f){if(Array.isArray(g)&&6===g.length&&this.transform(g[0],g[1],g[2],g[3],g[4],g[5]),f){const m=f[2]-f[0],T=f[3]-f[1],W=this.svgFactory.createElement("svg:rect");W.setAttributeNS(null,"x",f[0]),W.setAttributeNS(null,"y",f[1]),W.setAttributeNS(null,"width",C(m)),W.setAttributeNS(null,"height",C(T)),this.current.element=W,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(g){const f=this.svgFactory.create(g.width,g.height),m=this.svgFactory.createElement("svg:defs");f.appendChild(m),this.defs=m;const T=this.svgFactory.createElement("svg:g");return T.setAttributeNS(null,"transform",P(g.transform)),f.appendChild(T),this.svg=T,f}_ensureClipGroup(){if(!this.current.clipGroup){const g=this.svgFactory.createElement("svg:g");g.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(g),this.current.clipGroup=g}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",P(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}}},(He,L,o)=>{Object.defineProperty(L,"__esModule",{value:!0}),L.PDFNodeStream=void 0;var n=o(1),y=o(26);const a=__webpack_require__(49464),Q=__webpack_require__(88717),ie=__webpack_require__(36588),Z=__webpack_require__(83032),h=/^file:\/\/\/[a-zA-Z]:\//;L.PDFNodeStream=class D{constructor(I){this.source=I,this.url=function w($){const I=Z.parse($);return"file:"===I.protocol||I.host?I:/^[a-z]:[/\\]/i.test($)?Z.parse(`file:///${$}`):(I.host||(I.protocol="file:"),I)}(I.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&I.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,n.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new P(this):new d(this),this._fullRequestReader}getRangeReader(I,g){if(g<=this._progressiveDataLength)return null;const f=this.isFsUrl?new k(this,I,g):new C(this,I,g);return this._rangeRequestReaders.push(f),f}cancelAllRequests(I){this._fullRequestReader&&this._fullRequestReader.cancel(I);for(const g of this._rangeRequestReaders.slice(0))g.cancel(I)}};class x{constructor(I){this._url=I.url,this._done=!1,this._storedError=null,this.onProgress=null;const g=I.source;this._contentLength=g.length,this._loaded=0,this._filename=null,this._disableRange=g.disableRange||!1,this._rangeChunkSize=g.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!g.disableStream,this._isRangeSupported=!g.disableRange,this._readableStream=null,this._readCapability=(0,n.createPromiseCapability)(),this._headersCapability=(0,n.createPromiseCapability)()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}read(){var I=this;return _asyncToGenerator(function*(){if(yield I._readCapability.promise,I._done)return{value:void 0,done:!0};if(I._storedError)throw I._storedError;const g=I._readableStream.read();return null===g?(I._readCapability=(0,n.createPromiseCapability)(),I.read()):(I._loaded+=g.length,I.onProgress&&I.onProgress({loaded:I._loaded,total:I._contentLength}),{value:new Uint8Array(g).buffer,done:!1})})()}cancel(I){this._readableStream?this._readableStream.destroy(I):this._error(I)}_error(I){this._storedError=I,this._readCapability.resolve()}_setReadableStream(I){this._readableStream=I,I.on("readable",()=>{this._readCapability.resolve()}),I.on("end",()=>{I.destroy(),this._done=!0,this._readCapability.resolve()}),I.on("error",g=>{this._error(g)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new n.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class E{constructor(I){this._url=I.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,n.createPromiseCapability)(),this._isStreamingSupported=!I.source.disableStream}get isStreamingSupported(){return this._isStreamingSupported}read(){var I=this;return _asyncToGenerator(function*(){if(yield I._readCapability.promise,I._done)return{value:void 0,done:!0};if(I._storedError)throw I._storedError;const g=I._readableStream.read();return null===g?(I._readCapability=(0,n.createPromiseCapability)(),I.read()):(I._loaded+=g.length,I.onProgress&&I.onProgress({loaded:I._loaded}),{value:new Uint8Array(g).buffer,done:!1})})()}cancel(I){this._readableStream?this._readableStream.destroy(I):this._error(I)}_error(I){this._storedError=I,this._readCapability.resolve()}_setReadableStream(I){this._readableStream=I,I.on("readable",()=>{this._readCapability.resolve()}),I.on("end",()=>{I.destroy(),this._done=!0,this._readCapability.resolve()}),I.on("error",g=>{this._error(g)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function z($,I){return{protocol:$.protocol,auth:$.auth,host:$.hostname,port:$.port,path:$.path,method:"GET",headers:I}}class d extends x{constructor(I){super(I);const g=f=>{if(404===f.statusCode){const K=new n.MissingPDFException(`Missing PDF "${this._url}".`);return this._storedError=K,void this._headersCapability.reject(K)}this._headersCapability.resolve(),this._setReadableStream(f);const m=K=>this._readableStream.headers[K.toLowerCase()],{allowRangeRequests:T,suggestedLength:W}=(0,y.validateRangeRequestCapabilities)({getResponseHeader:m,isHttp:I.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=T,this._contentLength=W||this._contentLength,this._filename=(0,y.extractFilenameFromHeader)(m)};this._request=null,this._request="http:"===this._url.protocol?Q.request(z(this._url,I.httpHeaders),g):ie.request(z(this._url,I.httpHeaders),g),this._request.on("error",f=>{this._storedError=f,this._headersCapability.reject(f)}),this._request.end()}}class C extends E{constructor(I,g,f){super(I),this._httpHeaders={};for(const T in I.httpHeaders){const W=I.httpHeaders[T];typeof W>"u"||(this._httpHeaders[T]=W)}this._httpHeaders.Range=`bytes=${g}-${f-1}`;const m=T=>{if(404!==T.statusCode)this._setReadableStream(T);else{const W=new n.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=W}};this._request=null,this._request="http:"===this._url.protocol?Q.request(z(this._url,this._httpHeaders),m):ie.request(z(this._url,this._httpHeaders),m),this._request.on("error",T=>{this._storedError=T}),this._request.end()}}class P extends x{constructor(I){super(I);let g=decodeURIComponent(this._url.path);h.test(this._url.href)&&(g=g.replace(/^\//,"")),a.lstat(g,(f,m)=>{if(f)return"ENOENT"===f.code&&(f=new n.MissingPDFException(`Missing PDF "${g}".`)),this._storedError=f,void this._headersCapability.reject(f);this._contentLength=m.size,this._setReadableStream(a.createReadStream(g)),this._headersCapability.resolve()})}}class k extends E{constructor(I,g,f){super(I);let m=decodeURIComponent(this._url.path);h.test(this._url.href)&&(m=m.replace(/^\//,"")),this._setReadableStream(a.createReadStream(m,{start:g,end:f-1}))}}},(He,L,o)=>{Object.defineProperty(L,"__esModule",{value:!0}),L.createResponseStatusError=function Z(w,D){return 404===w||0===w&&D.startsWith("file:")?new n.MissingPDFException('Missing PDF "'+D+'".'):new n.UnexpectedResponseException(`Unexpected server response (${w}) while retrieving PDF "${D}".`,w)},L.extractFilenameFromHeader=function ie(w){const D=w("Content-Disposition");if(D){let x=(0,y.getFilenameFromContentDispositionHeader)(D);if(x.includes("%"))try{x=decodeURIComponent(x)}catch{}if((0,a.isPdfFile)(x))return x}return null},L.validateRangeRequestCapabilities=function Q({getResponseHeader:w,isHttp:D,rangeChunkSize:x,disableRange:E}){const z={allowRangeRequests:!1,suggestedLength:void 0},d=parseInt(w("Content-Length"),10);return!Number.isInteger(d)||(z.suggestedLength=d,d<=2*x)||E||!D||"bytes"!==w("Accept-Ranges")||"identity"!==(w("Content-Encoding")||"identity")||(z.allowRangeRequests=!0),z},L.validateResponseStatus=function h(w){return 200===w||206===w};var n=o(1),y=o(27),a=o(5)},(He,L,o)=>{Object.defineProperty(L,"__esModule",{value:!0}),L.getFilenameFromContentDispositionHeader=function y(a){let Q=!0,ie=Z("filename\\*","i").exec(a);if(ie){ie=ie[1];let d=x(ie);return d=unescape(d),d=E(d),d=z(d),w(d)}if(ie=function D(d){const C=[];let P;const k=Z("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(P=k.exec(d));){let[,I,g,f]=P;if(I=parseInt(I,10),I in C){if(0===I)break}else C[I]=[g,f]}const $=[];for(let I=0;I<C.length&&I in C;++I){let[g,f]=C[I];f=x(f),g&&(f=unescape(f),0===I&&(f=E(f))),$.push(f)}return $.join("")}(a),ie)return w(z(ie));if(ie=Z("filename","i").exec(a),ie){ie=ie[1];let d=x(ie);return d=z(d),w(d)}function Z(d,C){return new RegExp("(?:^|;)\\s*"+d+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',C)}function h(d,C){if(d){if(!/^[\x00-\xFF]+$/.test(C))return C;try{const P=new TextDecoder(d,{fatal:!0}),k=(0,n.stringToBytes)(C);C=P.decode(k),Q=!1}catch{}}return C}function w(d){return Q&&/[\x80-\xff]/.test(d)&&(d=h("utf-8",d),Q&&(d=h("iso-8859-1",d))),d}function x(d){if(d.startsWith('"')){const C=d.slice(1).split('\\"');for(let P=0;P<C.length;++P){const k=C[P].indexOf('"');-1!==k&&(C[P]=C[P].slice(0,k),C.length=P+1),C[P]=C[P].replace(/\\(.)/g,"$1")}d=C.join('"')}return d}function E(d){const C=d.indexOf("'");return-1===C?d:h(d.slice(0,C),d.slice(C+1).replace(/^[^']*'/,""))}function z(d){return!d.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(d)?d:d.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(C,P,k,$){if("q"===k||"Q"===k)return h(P,$=($=$.replace(/_/g," ")).replace(/=([0-9a-fA-F]{2})/g,function(I,g){return String.fromCharCode(parseInt(g,16))}));try{$=atob($)}catch{}return h(P,$)})}return""};var n=o(1)},(He,L,o)=>{Object.defineProperty(L,"__esModule",{value:!0}),L.PDFNetworkStream=void 0;var n=o(1),y=o(26);class Z{constructor(E,z={}){this.url=E,this.isHttp=/^https?:/i.test(E),this.httpHeaders=this.isHttp&&z.httpHeaders||Object.create(null),this.withCredentials=z.withCredentials||!1,this.getXhr=z.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(E,z,d){const C={begin:E,end:z};for(const P in d)C[P]=d[P];return this.request(C)}requestFull(E){return this.request(E)}request(E){const z=this.getXhr(),d=this.currXhrId++,C=this.pendingRequests[d]={xhr:z};z.open("GET",this.url),z.withCredentials=this.withCredentials;for(const P in this.httpHeaders){const k=this.httpHeaders[P];typeof k>"u"||z.setRequestHeader(P,k)}return this.isHttp&&"begin"in E&&"end"in E?(z.setRequestHeader("Range",`bytes=${E.begin}-${E.end-1}`),C.expectedStatus=206):C.expectedStatus=200,z.responseType="arraybuffer",E.onError&&(z.onerror=function(P){E.onError(z.status)}),z.onreadystatechange=this.onStateChange.bind(this,d),z.onprogress=this.onProgress.bind(this,d),C.onHeadersReceived=E.onHeadersReceived,C.onDone=E.onDone,C.onError=E.onError,C.onProgress=E.onProgress,z.send(null),d}onProgress(E,z){const d=this.pendingRequests[E];d&&d.onProgress?.(z)}onStateChange(E,z){const d=this.pendingRequests[E];if(!d)return;const C=d.xhr;if(C.readyState>=2&&d.onHeadersReceived&&(d.onHeadersReceived(),delete d.onHeadersReceived),4!==C.readyState||!(E in this.pendingRequests))return;if(delete this.pendingRequests[E],0===C.status&&this.isHttp)return void d.onError?.(C.status);const P=C.status||200;if((200!==P||206!==d.expectedStatus)&&P!==d.expectedStatus)return void d.onError?.(C.status);const $=function ie(x){const E=x.response;return"string"!=typeof E?E:(0,n.stringToBytes)(E).buffer}(C);if(206===P){const I=C.getResponseHeader("Content-Range"),g=/bytes (\d+)-(\d+)\/(\d+)/.exec(I);d.onDone({begin:parseInt(g[1],10),chunk:$})}else $?d.onDone({begin:0,chunk:$}):d.onError?.(C.status)}getRequestXhr(E){return this.pendingRequests[E].xhr}isPendingRequest(E){return E in this.pendingRequests}abortRequest(E){const z=this.pendingRequests[E].xhr;delete this.pendingRequests[E],z.abort()}}L.PDFNetworkStream=class h{constructor(E){this._source=E,this._manager=new Z(E.url,{httpHeaders:E.httpHeaders,withCredentials:E.withCredentials}),this._rangeChunkSize=E.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(E){const z=this._rangeRequestReaders.indexOf(E);z>=0&&this._rangeRequestReaders.splice(z,1)}getFullReader(){return(0,n.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new w(this._manager,this._source),this._fullRequestReader}getRangeReader(E,z){const d=new D(this._manager,E,z);return d.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(d),d}cancelAllRequests(E){this._fullRequestReader?.cancel(E);for(const z of this._rangeRequestReaders.slice(0))z.cancel(E)}};class w{constructor(E,z){this._manager=E;const d={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=z.url,this._fullRequestId=E.requestFull(d),this._headersReceivedCapability=(0,n.createPromiseCapability)(),this._disableRange=z.disableRange||!1,this._contentLength=z.length,this._rangeChunkSize=z.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const E=this._fullRequestId,z=this._manager.getRequestXhr(E),d=k=>z.getResponseHeader(k),{allowRangeRequests:C,suggestedLength:P}=(0,y.validateRangeRequestCapabilities)({getResponseHeader:d,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});C&&(this._isRangeSupported=!0),this._contentLength=P||this._contentLength,this._filename=(0,y.extractFilenameFromHeader)(d),this._isRangeSupported&&this._manager.abortRequest(E),this._headersReceivedCapability.resolve()}_onDone(E){if(E&&(this._requests.length>0?this._requests.shift().resolve({value:E.chunk,done:!1}):this._cachedChunks.push(E.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const z of this._requests)z.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(E){this._storedError=(0,y.createResponseStatusError)(E,this._url),this._headersReceivedCapability.reject(this._storedError);for(const z of this._requests)z.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(E){this.onProgress?.({loaded:E.loaded,total:E.lengthComputable?E.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}read(){var E=this;return _asyncToGenerator(function*(){if(E._storedError)throw E._storedError;if(E._cachedChunks.length>0)return{value:E._cachedChunks.shift(),done:!1};if(E._done)return{value:void 0,done:!0};const z=(0,n.createPromiseCapability)();return E._requests.push(z),z.promise})()}cancel(E){this._done=!0,this._headersReceivedCapability.reject(E);for(const z of this._requests)z.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class D{constructor(E,z,d){this._manager=E;const C={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=E.url,this._requestId=E.requestRange(z,d,C),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){this.onClosed?.(this)}_onDone(E){const z=E.chunk;this._requests.length>0?this._requests.shift().resolve({value:z,done:!1}):this._queuedChunk=z,this._done=!0;for(const d of this._requests)d.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(E){this._storedError=(0,y.createResponseStatusError)(E,this._url);for(const z of this._requests)z.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(E){this.isStreamingSupported||this.onProgress?.({loaded:E.loaded})}get isStreamingSupported(){return!1}read(){var E=this;return _asyncToGenerator(function*(){if(E._storedError)throw E._storedError;if(null!==E._queuedChunk){const d=E._queuedChunk;return E._queuedChunk=null,{value:d,done:!1}}if(E._done)return{value:void 0,done:!0};const z=(0,n.createPromiseCapability)();return E._requests.push(z),z.promise})()}cancel(E){this._done=!0;for(const z of this._requests)z.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(He,L,o)=>{Object.defineProperty(L,"__esModule",{value:!0}),L.PDFFetchStream=void 0;var n=o(1),y=o(26);function a(w,D,x){return{method:"GET",headers:w,signal:x?.signal,mode:"cors",credentials:D?"include":"same-origin",redirect:"follow"}}function Q(w){const D=new Headers;for(const x in w){const E=w[x];typeof E>"u"||D.append(x,E)}return D}L.PDFFetchStream=class ie{constructor(D){this.source=D,this.isHttp=/^https?:/i.test(D.url),this.httpHeaders=this.isHttp&&D.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,n.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new Z(this),this._fullRequestReader}getRangeReader(D,x){if(x<=this._progressiveDataLength)return null;const E=new h(this,D,x);return this._rangeRequestReaders.push(E),E}cancelAllRequests(D){this._fullRequestReader&&this._fullRequestReader.cancel(D);for(const x of this._rangeRequestReaders.slice(0))x.cancel(D)}};class Z{constructor(D){this._stream=D,this._reader=null,this._loaded=0,this._filename=null;const x=D.source;this._withCredentials=x.withCredentials||!1,this._contentLength=x.length,this._headersCapability=(0,n.createPromiseCapability)(),this._disableRange=x.disableRange||!1,this._rangeChunkSize=x.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),typeof AbortController<"u"&&(this._abortController=new AbortController),this._isStreamingSupported=!x.disableStream,this._isRangeSupported=!x.disableRange,this._headers=Q(this._stream.httpHeaders);const E=x.url;fetch(E,a(this._headers,this._withCredentials,this._abortController)).then(z=>{if(!(0,y.validateResponseStatus)(z.status))throw(0,y.createResponseStatusError)(z.status,E);this._reader=z.body.getReader(),this._headersCapability.resolve();const d=k=>z.headers.get(k),{allowRangeRequests:C,suggestedLength:P}=(0,y.validateRangeRequestCapabilities)({getResponseHeader:d,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=C,this._contentLength=P||this._contentLength,this._filename=(0,y.extractFilenameFromHeader)(d),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new n.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}read(){var D=this;return _asyncToGenerator(function*(){yield D._headersCapability.promise;const{value:x,done:E}=yield D._reader.read();return E?{value:x,done:E}:(D._loaded+=x.byteLength,D.onProgress&&D.onProgress({loaded:D._loaded,total:D._contentLength}),{value:new Uint8Array(x).buffer,done:!1})})()}cancel(D){this._reader&&this._reader.cancel(D),this._abortController&&this._abortController.abort()}}class h{constructor(D,x,E){this._stream=D,this._reader=null,this._loaded=0;const z=D.source;this._withCredentials=z.withCredentials||!1,this._readCapability=(0,n.createPromiseCapability)(),this._isStreamingSupported=!z.disableStream,typeof AbortController<"u"&&(this._abortController=new AbortController),this._headers=Q(this._stream.httpHeaders),this._headers.append("Range",`bytes=${x}-${E-1}`);const d=z.url;fetch(d,a(this._headers,this._withCredentials,this._abortController)).then(C=>{if(!(0,y.validateResponseStatus)(C.status))throw(0,y.createResponseStatusError)(C.status,d);this._readCapability.resolve(),this._reader=C.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}read(){var D=this;return _asyncToGenerator(function*(){yield D._readCapability.promise;const{value:x,done:E}=yield D._reader.read();return E?{value:x,done:E}:(D._loaded+=x.byteLength,D.onProgress&&D.onProgress({loaded:D._loaded}),{value:new Uint8Array(x).buffer,done:!1})})()}cancel(D){this._reader&&this._reader.cancel(D),this._abortController&&this._abortController.abort()}}}],__webpack_module_cache__={};function __w_pdfjs_require__(He){var L=__webpack_module_cache__[He];if(void 0!==L)return L.exports;var o=__webpack_module_cache__[He]={exports:{}};return __webpack_modules__[He](o,o.exports,__w_pdfjs_require__),o.exports}var __nested_webpack_exports__={};return(()=>{var He=__nested_webpack_exports__;Object.defineProperty(He,"__esModule",{value:!0}),Object.defineProperty(He,"AnnotationLayer",{enumerable:!0,get:function(){return y.AnnotationLayer}}),Object.defineProperty(He,"AnnotationMode",{enumerable:!0,get:function(){return L.AnnotationMode}}),Object.defineProperty(He,"CMapCompressionType",{enumerable:!0,get:function(){return L.CMapCompressionType}}),Object.defineProperty(He,"GlobalWorkerOptions",{enumerable:!0,get:function(){return a.GlobalWorkerOptions}}),Object.defineProperty(He,"InvalidPDFException",{enumerable:!0,get:function(){return L.InvalidPDFException}}),Object.defineProperty(He,"LoopbackPort",{enumerable:!0,get:function(){return o.LoopbackPort}}),Object.defineProperty(He,"MissingPDFException",{enumerable:!0,get:function(){return L.MissingPDFException}}),Object.defineProperty(He,"OPS",{enumerable:!0,get:function(){return L.OPS}}),Object.defineProperty(He,"PDFDataRangeTransport",{enumerable:!0,get:function(){return o.PDFDataRangeTransport}}),Object.defineProperty(He,"PDFDateString",{enumerable:!0,get:function(){return n.PDFDateString}}),Object.defineProperty(He,"PDFWorker",{enumerable:!0,get:function(){return o.PDFWorker}}),Object.defineProperty(He,"PasswordResponses",{enumerable:!0,get:function(){return L.PasswordResponses}}),Object.defineProperty(He,"PermissionFlag",{enumerable:!0,get:function(){return L.PermissionFlag}}),Object.defineProperty(He,"PixelsPerInch",{enumerable:!0,get:function(){return n.PixelsPerInch}}),Object.defineProperty(He,"RenderingCancelledException",{enumerable:!0,get:function(){return n.RenderingCancelledException}}),Object.defineProperty(He,"SVGGraphics",{enumerable:!0,get:function(){return Z.SVGGraphics}}),Object.defineProperty(He,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return L.UNSUPPORTED_FEATURES}}),Object.defineProperty(He,"UnexpectedResponseException",{enumerable:!0,get:function(){return L.UnexpectedResponseException}}),Object.defineProperty(He,"Util",{enumerable:!0,get:function(){return L.Util}}),Object.defineProperty(He,"VerbosityLevel",{enumerable:!0,get:function(){return L.VerbosityLevel}}),Object.defineProperty(He,"XfaLayer",{enumerable:!0,get:function(){return h.XfaLayer}}),Object.defineProperty(He,"build",{enumerable:!0,get:function(){return o.build}}),Object.defineProperty(He,"createPromiseCapability",{enumerable:!0,get:function(){return L.createPromiseCapability}}),Object.defineProperty(He,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return L.createValidAbsoluteUrl}}),Object.defineProperty(He,"getDocument",{enumerable:!0,get:function(){return o.getDocument}}),Object.defineProperty(He,"getFilenameFromUrl",{enumerable:!0,get:function(){return n.getFilenameFromUrl}}),Object.defineProperty(He,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return n.getPdfFilenameFromUrl}}),Object.defineProperty(He,"getXfaPageViewport",{enumerable:!0,get:function(){return n.getXfaPageViewport}}),Object.defineProperty(He,"isPdfFile",{enumerable:!0,get:function(){return n.isPdfFile}}),Object.defineProperty(He,"loadScript",{enumerable:!0,get:function(){return n.loadScript}}),Object.defineProperty(He,"renderTextLayer",{enumerable:!0,get:function(){return ie.renderTextLayer}}),Object.defineProperty(He,"shadow",{enumerable:!0,get:function(){return L.shadow}}),Object.defineProperty(He,"version",{enumerable:!0,get:function(){return o.version}});var L=__w_pdfjs_require__(1),o=__w_pdfjs_require__(4),n=__w_pdfjs_require__(5),y=__w_pdfjs_require__(20),a=__w_pdfjs_require__(13),Q=__w_pdfjs_require__(3),ie=__w_pdfjs_require__(23),Z=__w_pdfjs_require__(24),h=__w_pdfjs_require__(22);if(Q.isNodeJS){const{PDFNodeStream:x}=__w_pdfjs_require__(25);(0,o.setPDFNetworkStreamFactory)(E=>new x(E))}else{const{PDFNetworkStream:x}=__w_pdfjs_require__(28),{PDFFetchStream:E}=__w_pdfjs_require__(29);(0,o.setPDFNetworkStreamFactory)(z=>(0,n.isValidFetchUrl)(z.url)?new E(z):new x(z))}})(),__nested_webpack_exports__})(),module.exports=o()},91528:function(He,L,o){var Q,n=o(24510).default;Q=()=>(()=>{"use strict";var y=[,(Z,h,w)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.DefaultXfaLayerFactory=h.DefaultTextLayerFactory=h.DefaultStructTreeLayerFactory=h.DefaultAnnotationLayerFactory=void 0;var D=w(2),x=w(4),E=w(5),z=w(7),d=w(8),C=w(9);h.DefaultAnnotationLayerFactory=class P{createAnnotationLayerBuilder(f,m,T=null,W="",K=!0,re=x.NullL10n,U=!1,fe=null,ue=null,pe=null,he=null){return new D.AnnotationLayerBuilder({pageDiv:f,pdfPage:m,imageResourcesPath:W,renderForms:K,linkService:new E.SimpleLinkService,l10n:re,annotationStorage:T,enableScripting:U,hasJSActionsPromise:fe,fieldObjectsPromise:pe,mouseState:ue,annotationCanvasMap:he})}},h.DefaultStructTreeLayerFactory=class k{createStructTreeLayerBuilder(f){return new z.StructTreeLayerBuilder({pdfPage:f})}},h.DefaultTextLayerFactory=class ${createTextLayerBuilder(f,m,T,W=!1,K,re){return new d.TextLayerBuilder({textLayerDiv:f,pageIndex:m,viewport:T,enhanceTextSelection:W,eventBus:K,highlighter:re})}},h.DefaultXfaLayerFactory=class I{createXfaLayerBuilder(f,m,T=null,W=null){return new C.XfaLayerBuilder({pageDiv:f,pdfPage:m,annotationStorage:T,linkService:new E.SimpleLinkService,xfaHtml:W})}}},(Z,h,w)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.AnnotationLayerBuilder=void 0;var D=w(3),x=w(4);h.AnnotationLayerBuilder=class E{constructor({pageDiv:d,pdfPage:C,linkService:P,downloadManager:k,annotationStorage:$=null,imageResourcesPath:I="",renderForms:g=!0,l10n:f=x.NullL10n,enableScripting:m=!1,hasJSActionsPromise:T=null,fieldObjectsPromise:W=null,mouseState:K=null,annotationCanvasMap:re=null}){this.pageDiv=d,this.pdfPage=C,this.linkService=P,this.downloadManager=k,this.imageResourcesPath=I,this.renderForms=g,this.l10n=f,this.annotationStorage=$,this.enableScripting=m,this._hasJSActionsPromise=T,this._fieldObjectsPromise=W,this._mouseState=K,this._annotationCanvasMap=re,this.div=null,this._cancelled=!1}render(d,C="display"){var P=this;return n(function*(){const[k,$=!1,I=null]=yield Promise.all([P.pdfPage.getAnnotations({intent:C}),P._hasJSActionsPromise,P._fieldObjectsPromise]);if(P._cancelled||0===k.length)return;const g={viewport:d.clone({dontFlip:!0}),div:P.div,annotations:k,page:P.pdfPage,imageResourcesPath:P.imageResourcesPath,renderForms:P.renderForms,linkService:P.linkService,downloadManager:P.downloadManager,annotationStorage:P.annotationStorage,enableScripting:P.enableScripting,hasJSActions:$,fieldObjects:I,mouseState:P._mouseState,annotationCanvasMap:P._annotationCanvasMap};P.div?D.AnnotationLayer.update(g):(P.div=document.createElement("div"),P.div.className="annotationLayer",P.pageDiv.appendChild(P.div),g.div=P.div,D.AnnotationLayer.render(g),P.l10n.translate(P.div))})()}cancel(){this._cancelled=!0}hide(){this.div&&(this.div.hidden=!0)}}},Z=>{let h;h=typeof window<"u"&&window["pdfjs-dist/build/pdf"]?window["pdfjs-dist/build/pdf"]:o(45481),Z.exports=h},(Z,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.NullL10n=void 0,h.fixupLangCode=function E(C){return x[C?.toLowerCase()]||C},h.getL10nFallback=D;const w={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} \xd7 {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} \xd7 {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",print_progress_percent:"{{progress}}%","toggle_sidebar.title":"Toggle Sidebar","toggle_sidebar_notification2.title":"Toggle Sidebar (document contains outline/attachments/layers)",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",error_version_info:"PDF.js v{{version}} (build: {{build}})",error_message:"Message: {{message}}",error_stack:"Stack: {{stack}}",error_file:"File: {{file}}",error_line:"Line: {{line}}",rendering_error:"An error occurred while rendering the page.",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading:"Loading\u2026",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts."};function D(C,P){switch(C){case"find_match_count":C=`find_match_count[${1===P.total?"one":"other"}]`;break;case"find_match_count_limit":C=`find_match_count_limit[${1===P.limit?"one":"other"}]`}return w[C]||""}const x={en:"en-US",es:"es-ES",fy:"fy-NL",ga:"ga-IE",gu:"gu-IN",hi:"hi-IN",hy:"hy-AM",nb:"nb-NO",ne:"ne-NP",nn:"nn-NO",pa:"pa-IN",pt:"pt-PT",sv:"sv-SE",zh:"zh-CN"};h.NullL10n={getLanguage:()=>n(function*(){return"en-us"})(),getDirection:()=>n(function*(){return"ltr"})(),get:(C,P=null,k=D(C,P))=>n(function*(){return function z(C,P){return P?C.replace(/\{\{\s*(\w+)\s*\}\}/g,(k,$)=>$ in P?P[$]:"{{"+$+"}}"):C}(k,P)})(),translate:C=>n(function*(){})()}},(Z,h,w)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.SimpleLinkService=h.PDFLinkService=h.LinkTarget=void 0;var D=w(6);const E={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};function z(P,{url:k,target:$,rel:I,enabled:g=!0}={}){if(!k||"string"!=typeof k)throw new Error('A valid "url" parameter must provided.');const f=(0,D.removeNullCharacters)(k);g?P.href=P.title=f:(P.href="",P.title=`Disabled: ${f}`,P.onclick=()=>!1);let m="";switch($){case E.NONE:break;case E.SELF:m="_self";break;case E.BLANK:m="_blank";break;case E.PARENT:m="_parent";break;case E.TOP:m="_top"}P.target=m,P.rel="string"==typeof I?I:"noopener noreferrer nofollow"}h.LinkTarget=E;class d{#e=new Map;constructor({eventBus:k,externalLinkTarget:$=null,externalLinkRel:I=null,ignoreDestinationZoom:g=!1}={}){this.eventBus=k,this.externalLinkTarget=$,this.externalLinkRel=I,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=g,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null}setDocument(k,$=null){this.baseUrl=$,this.pdfDocument=k,this.#e.clear()}setViewer(k){this.pdfViewer=k}setHistory(k){this.pdfHistory=k}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return this.pdfViewer.currentPageNumber}set page(k){this.pdfViewer.currentPageNumber=k}get rotation(){return this.pdfViewer.pagesRotation}set rotation(k){this.pdfViewer.pagesRotation=k}#t(k,$=null,I){const g=I[0];let f;if("object"==typeof g&&null!==g){if(f=this._cachedPageNumber(g),!f)return void this.pdfDocument.getPageIndex(g).then(m=>{this.cachePageRef(m+1,g),this.#t(k,$,I)}).catch(()=>{console.error(`PDFLinkService.#goToDestinationHelper: "${g}" is not a valid page reference, for dest="${k}".`)})}else{if(!Number.isInteger(g))return void console.error(`PDFLinkService.#goToDestinationHelper: "${g}" is not a valid destination reference, for dest="${k}".`);f=g+1}!f||f<1||f>this.pagesCount?console.error(`PDFLinkService.#goToDestinationHelper: "${f}" is not a valid page number, for dest="${k}".`):(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.push({namedDest:$,explicitDest:I,pageNumber:f})),this.pdfViewer.scrollPageIntoView({pageNumber:f,destArray:I,ignoreDestinationZoom:this._ignoreDestinationZoom}))}goToDestination(k){var $=this;return n(function*(){if(!$.pdfDocument)return;let I,g;"string"==typeof k?(I=k,g=yield $.pdfDocument.getDestination(k)):(I=null,g=yield k),Array.isArray(g)?$.#t(k,I,g):console.error(`PDFLinkService.goToDestination: "${g}" is not a valid destination array, for dest="${k}".`)})()}goToPage(k){if(!this.pdfDocument)return;const $="string"==typeof k&&this.pdfViewer.pageLabelToPageNumber(k)||0|k;Number.isInteger($)&&$>0&&$<=this.pagesCount?(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.pushPage($)),this.pdfViewer.scrollPageIntoView({pageNumber:$})):console.error(`PDFLinkService.goToPage: "${k}" is not a valid page.`)}addLinkAttributes(k,$,I=!1){z(k,{url:$,target:I?E.BLANK:this.externalLinkTarget,rel:this.externalLinkRel,enabled:this.externalLinkEnabled})}getDestinationHash(k){if("string"==typeof k){if(k.length>0)return this.getAnchorUrl("#"+escape(k))}else if(Array.isArray(k)){const $=JSON.stringify(k);if($.length>0)return this.getAnchorUrl("#"+escape($))}return this.getAnchorUrl("")}getAnchorUrl(k){return(this.baseUrl||"")+k}setHash(k){if(!this.pdfDocument)return;let $,I;if(k.includes("=")){const g=(0,D.parseQueryString)(k);if(g.has("search")&&this.eventBus.dispatch("findfromurlhash",{source:this,query:g.get("search").replace(/"/g,""),phraseSearch:"true"===g.get("phrase")}),g.has("page")&&($=0|g.get("page")||1),g.has("zoom")){const f=g.get("zoom").split(","),m=f[0],T=parseFloat(m);m.includes("Fit")?"Fit"===m||"FitB"===m?I=[null,{name:m}]:"FitH"===m||"FitBH"===m||"FitV"===m||"FitBV"===m?I=[null,{name:m},f.length>1?0|f[1]:null]:"FitR"===m?5!==f.length?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):I=[null,{name:m},0|f[1],0|f[2],0|f[3],0|f[4]]:console.error(`PDFLinkService.setHash: "${m}" is not a valid zoom value.`):I=[null,{name:"XYZ"},f.length>1?0|f[1]:null,f.length>2?0|f[2]:null,T?T/100:m]}I?this.pdfViewer.scrollPageIntoView({pageNumber:$||this.page,destArray:I,allowNegativeOffset:!0}):$&&(this.page=$),g.has("pagemode")&&this.eventBus.dispatch("pagemode",{source:this,mode:g.get("pagemode")}),g.has("nameddest")&&this.goToDestination(g.get("nameddest"))}else{I=unescape(k);try{I=JSON.parse(I),Array.isArray(I)||(I=I.toString())}catch{}if("string"==typeof I||d.#n(I))return void this.goToDestination(I);console.error(`PDFLinkService.setHash: "${unescape(k)}" is not a valid destination.`)}}executeNamedAction(k){switch(k){case"GoBack":this.pdfHistory?.back();break;case"GoForward":this.pdfHistory?.forward();break;case"NextPage":this.pdfViewer.nextPage();break;case"PrevPage":this.pdfViewer.previousPage();break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1}this.eventBus.dispatch("namedaction",{source:this,action:k})}cachePageRef(k,$){$&&this.#e.set(0===$.gen?`${$.num}R`:`${$.num}R${$.gen}`,k)}_cachedPageNumber(k){return k&&this.#e.get(0===k.gen?`${k.num}R`:`${k.num}R${k.gen}`)||null}isPageVisible(k){return this.pdfViewer.isPageVisible(k)}isPageCached(k){return this.pdfViewer.isPageCached(k)}static#n(k){if(!Array.isArray(k))return!1;const $=k.length;if($<2)return!1;const I=k[0];if(!("object"==typeof I&&Number.isInteger(I.num)&&Number.isInteger(I.gen)||Number.isInteger(I)&&I>=0))return!1;const g=k[1];if("object"!=typeof g||"string"!=typeof g.name)return!1;let f=!0;switch(g.name){case"XYZ":if(5!==$)return!1;break;case"Fit":case"FitB":return 2===$;case"FitH":case"FitBH":case"FitV":case"FitBV":if(3!==$)return!1;break;case"FitR":if(6!==$)return!1;f=!1;break;default:return!1}for(let m=2;m<$;m++){const T=k[m];if(!("number"==typeof T||f&&null===T))return!1}return!0}}h.PDFLinkService=d,h.SimpleLinkService=class C{constructor(){this.externalLinkEnabled=!0}get pagesCount(){return 0}get page(){return 0}set page(k){}get rotation(){return 0}set rotation(k){}goToDestination(k){return n(function*(){})()}goToPage(k){}addLinkAttributes(k,$,I=!1){z(k,{url:$,enabled:this.externalLinkEnabled})}getDestinationHash(k){return"#"}getAnchorUrl(k){return"#"}setHash(k){}executeNamedAction(k){}cachePageRef(k,$){}isPageVisible(k){return!0}isPageCached(k){return!0}}},(Z,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.animationStarted=h.VERTICAL_PADDING=h.UNKNOWN_SCALE=h.TextLayerMode=h.SpreadMode=h.SidebarView=h.ScrollMode=h.SCROLLBAR_PADDING=h.RenderingStates=h.RendererType=h.ProgressBar=h.PresentationModeState=h.OutputScale=h.MIN_SCALE=h.MAX_SCALE=h.MAX_AUTO_SCALE=h.DEFAULT_SCALE_VALUE=h.DEFAULT_SCALE_DELTA=h.DEFAULT_SCALE=h.AutoPrintRegExp=void 0,h.apiPageLayoutToViewerModes=function at(Qe){let nt=T.VERTICAL,_t=W.NONE;switch(Qe){case"SinglePage":nt=T.PAGE;break;case"OneColumn":break;case"TwoPageLeft":nt=T.PAGE;case"TwoColumnLeft":_t=W.ODD;break;case"TwoPageRight":nt=T.PAGE;case"TwoColumnRight":_t=W.EVEN}return{scrollMode:nt,spreadMode:_t}},h.apiPageModeToSidebarView=function ft(Qe){switch(Qe){case"UseNone":return g.NONE;case"UseThumbs":return g.THUMBS;case"UseOutlines":return g.OUTLINE;case"UseAttachments":return g.ATTACHMENTS;case"UseOC":return g.LAYERS}return g.NONE},h.approximateFraction=function Ee(Qe){if(Math.floor(Qe)===Qe)return[Qe,1];const nt=1/Qe;if(nt>8)return[1,8];if(Math.floor(nt)===nt)return[1,nt];const Ge=Qe>1?nt:Qe;let Ut,ht=0,It=1,Rt=1,At=1;for(;;){const Wt=ht+Rt,it=It+At;if(it>8)break;Ge<=Wt/it?(Rt=Wt,At=it):(ht=Wt,It=it)}return Ut=Ge-ht/It<Rt/At-Ge?Ge===Qe?[ht,It]:[It,ht]:Ge===Qe?[Rt,At]:[At,Rt],Ut},h.backtrackBeforeAllVisibleElements=q,h.binarySearchFirstItem=_e,h.getActiveOrFocusedElement=function je(){let Qe=document,nt=Qe.activeElement||Qe.querySelector(":focus");for(;nt?.shadowRoot;)Qe=nt.shadowRoot,nt=Qe.activeElement||Qe.querySelector(":focus");return nt},h.getPageSizeInches=function ge({view:Qe,userUnit:nt,rotate:_t}){const[Ge,ht,It,Rt]=Qe,At=_t%180!=0,Ut=(It-Ge)/72*nt,Wt=(Rt-ht)/72*nt;return{width:At?Wt:Ut,height:At?Ut:Wt}},h.getVisibleElements=function u({scrollEl:Qe,views:nt,sortByVisibility:_t=!1,horizontal:Ge=!1,rtl:ht=!1}){const It=Qe.scrollTop,Rt=It+Qe.clientHeight,At=Qe.scrollLeft,Ut=At+Qe.clientWidth,Bt=[],rt=new Set,Pt=nt.length;let vt=_e(nt,Ge?function it(Je){const wt=Je.div,Jt=wt.offsetLeft+wt.clientLeft;return ht?Jt<Ut:Jt+wt.clientWidth>At}:function Wt(Je){const wt=Je.div;return wt.offsetTop+wt.clientTop+wt.clientHeight>It});vt>0&&vt<Pt&&!Ge&&(vt=q(vt,nt,It));let $t=Ge?Ut:-1;for(let Je=vt;Je<Pt;Je++){const wt=nt[Je],Jt=wt.div,ln=Jt.offsetLeft+Jt.clientLeft,pn=Jt.offsetTop+Jt.clientTop,kn=Jt.clientWidth,Mn=Jt.clientHeight,wn=ln+kn,Bn=pn+Mn;if(-1===$t)Bn>=Rt&&($t=Bn);else if((Ge?ln:pn)>$t)break;if(Bn<=It||pn>=Rt||wn<=At||ln>=Ut)continue;const Zn=Math.max(0,It-pn)+Math.max(0,Bn-Rt),In=(kn-(Math.max(0,At-ln)+Math.max(0,wn-Ut)))/kn;Bt.push({id:wt.id,x:ln,y:pn,view:wt,percent:(Mn-Zn)/Mn*In*100|0,widthPercent:100*In|0}),rt.add(wt.id)}const ct=Bt[0],Be=Bt[Bt.length-1];return _t&&Bt.sort(function(Je,wt){const Jt=Je.percent-wt.percent;return Math.abs(Jt)>.001?-Jt:Je.id-wt.id}),{first:ct,last:Be,views:Bt,ids:rt}},h.isPortraitOrientation=function se(Qe){return Qe.width<=Qe.height},h.isValidRotation=function R(Qe){return Number.isInteger(Qe)&&Qe%90==0},h.isValidScrollMode=function ne(Qe){return Number.isInteger(Qe)&&Object.values(T).includes(Qe)&&Qe!==T.UNKNOWN},h.isValidSpreadMode=function S(Qe){return Number.isInteger(Qe)&&Object.values(W).includes(Qe)&&Qe!==W.UNKNOWN},h.noContextMenuHandler=function p(Qe){Qe.preventDefault()},h.normalizeWheelEventDelta=function G(Qe){let nt=N(Qe);return 0===Qe.deltaMode?nt/=900:1===Qe.deltaMode&&(nt/=30),nt},h.normalizeWheelEventDirection=N,h.parseQueryString=function ue(Qe){const nt=new Map;for(const[_t,Ge]of new URLSearchParams(Qe))nt.set(_t.toLowerCase(),Ge);return nt},h.removeNullCharacters=function de(Qe,nt=!1){return"string"!=typeof Qe?(console.error("The argument must be a string."),Qe):(nt&&(Qe=Qe.replace(he," ")),Qe.replace(pe,""))},h.roundToDivide=function Ne(Qe,nt){const _t=Qe%nt;return 0===_t?Qe:Math.round(Qe-_t+nt)},h.scrollIntoView=function U(Qe,nt,_t=!1){let Ge=Qe.offsetParent;if(!Ge)return void console.error("offsetParent is not set -- cannot scroll");let ht=Qe.offsetTop+Qe.clientTop,It=Qe.offsetLeft+Qe.clientLeft;for(;Ge.clientHeight===Ge.scrollHeight&&Ge.clientWidth===Ge.scrollWidth||_t&&(Ge.classList.contains("markedContent")||"hidden"===getComputedStyle(Ge).overflow);)if(ht+=Ge.offsetTop,It+=Ge.offsetLeft,Ge=Ge.offsetParent,!Ge)return;nt&&(void 0!==nt.top&&(ht+=nt.top),void 0!==nt.left&&(It+=nt.left,Ge.scrollLeft=It)),Ge.scrollTop=ht},h.watchScroll=function fe(Qe,nt){const _t=function(It){ht||(ht=window.requestAnimationFrame(function(){ht=null;const At=Qe.scrollLeft,Ut=Ge.lastX;At!==Ut&&(Ge.right=At>Ut),Ge.lastX=At;const Wt=Qe.scrollTop,it=Ge.lastY;Wt!==it&&(Ge.down=Wt>it),Ge.lastY=Wt,nt(Ge)}))},Ge={right:!0,down:!0,lastX:Qe.scrollLeft,lastY:Qe.scrollTop,_eventHandler:_t};let ht=null;return Qe.addEventListener("scroll",_t,!0),Ge},h.DEFAULT_SCALE_VALUE="auto",h.DEFAULT_SCALE=1,h.DEFAULT_SCALE_DELTA=1.1,h.MIN_SCALE=.1,h.MAX_SCALE=10,h.UNKNOWN_SCALE=0,h.MAX_AUTO_SCALE=1.25,h.SCROLLBAR_PADDING=40,h.VERTICAL_PADDING=5,h.RenderingStates={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3},h.PresentationModeState={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3};const g={UNKNOWN:-1,NONE:0,THUMBS:1,OUTLINE:2,ATTACHMENTS:3,LAYERS:4};h.SidebarView=g,h.RendererType={CANVAS:"canvas",SVG:"svg"},h.TextLayerMode={DISABLE:0,ENABLE:1,ENABLE_ENHANCE:2};const T={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2,PAGE:3};h.ScrollMode=T;const W={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};h.SpreadMode=W,h.AutoPrintRegExp=/\bprint\s*\(/,h.OutputScale=class re{constructor(){const nt=window.devicePixelRatio||1;this.sx=nt,this.sy=nt}get scaled(){return 1!==this.sx||1!==this.sy}};const pe=/\x00/g,he=/[\x01-\x1F]/g;function _e(Qe,nt,_t=0){let Ge=_t,ht=Qe.length-1;if(ht<0||!nt(Qe[ht]))return Qe.length;if(nt(Qe[Ge]))return Ge;for(;Ge<ht;){const It=Ge+ht>>1;nt(Qe[It])?ht=It:Ge=It+1}return Ge}function q(Qe,nt,_t){if(Qe<2)return Qe;let Ge=nt[Qe].div,ht=Ge.offsetTop+Ge.clientTop;ht>=_t&&(Ge=nt[Qe-1].div,ht=Ge.offsetTop+Ge.clientTop);for(let It=Qe-2;It>=0&&(Ge=nt[It].div,!(Ge.offsetTop+Ge.clientTop+Ge.clientHeight<=ht));--It)Qe=It;return Qe}function N(Qe){let nt=Math.hypot(Qe.deltaX,Qe.deltaY);const _t=Math.atan2(Qe.deltaY,Qe.deltaX);return-.25*Math.PI<_t&&_t<.75*Math.PI&&(nt=-nt),nt}const Me=new Promise(function(Qe){window.requestAnimationFrame(Qe)});h.animationStarted=Me,h.ProgressBar=class Re{constructor(nt){if(arguments.length>1)throw new Error("ProgressBar no longer accepts any additional options, please use CSS rules to modify its appearance instead.");this.visible=!0,this.div=document.querySelector(nt+" .progress"),this.bar=this.div.parentNode,this.percent=0}#e(){this._indeterminate?this.div.classList.add("indeterminate"):(this.div.classList.remove("indeterminate"),document.documentElement.style.setProperty("--progressBar-percent",`${this._percent}%`))}get percent(){return this._percent}set percent(nt){this._indeterminate=isNaN(nt),this._percent=function Fe(Qe,nt,_t){return Math.min(Math.max(Qe,nt),_t)}(nt,0,100),this.#e()}setWidth(nt){if(!nt)return;const Ge=nt.parentNode.offsetWidth-nt.offsetWidth;Ge>0&&document.documentElement.style.setProperty("--progressBar-end-offset",`${Ge}px`)}hide(){this.visible&&(this.visible=!1,this.bar.classList.add("hidden"))}show(){this.visible||(this.visible=!0,this.bar.classList.remove("hidden"))}}},(Z,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.StructTreeLayerBuilder=void 0;const w={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},D=/^H(\d+)$/;h.StructTreeLayerBuilder=class x{constructor({pdfPage:z}){this.pdfPage=z}render(z){return this._walk(z)}_setAttributes(z,d){void 0!==z.alt&&d.setAttribute("aria-label",z.alt),void 0!==z.id&&d.setAttribute("aria-owns",z.id),void 0!==z.lang&&d.setAttribute("lang",z.lang)}_walk(z){if(!z)return null;const d=document.createElement("span");if("role"in z){const{role:C}=z,P=C.match(D);P?(d.setAttribute("role","heading"),d.setAttribute("aria-level",P[1])):w[C]&&d.setAttribute("role",w[C])}if(this._setAttributes(z,d),z.children)if(1===z.children.length&&"id"in z.children[0])this._setAttributes(z.children[0],d);else for(const C of z.children)d.appendChild(this._walk(C));return d}}},(Z,h,w)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.TextLayerBuilder=void 0;var D=w(3);h.TextLayerBuilder=class E{constructor({textLayerDiv:d,eventBus:C,pageIndex:P,viewport:k,highlighter:$=null,enhanceTextSelection:I=!1}){this.textLayerDiv=d,this.eventBus=C,this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageNumber=P+1,this.viewport=k,this.textDivs=[],this.textLayerRenderTask=null,this.highlighter=$,this.enhanceTextSelection=I,this._bindMouse()}_finishRendering(){if(this.renderingDone=!0,!this.enhanceTextSelection){const d=document.createElement("div");d.className="endOfContent",this.textLayerDiv.appendChild(d)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}render(d=0){if(!this.textContent&&!this.textContentStream||this.renderingDone)return;this.cancel(),this.textDivs.length=0,this.highlighter?.setTextMapping(this.textDivs,this.textContentItemsStr);const C=document.createDocumentFragment();this.textLayerRenderTask=(0,D.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:C,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:d,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then(()=>{this.textLayerDiv.appendChild(C),this._finishRendering(),this.highlighter?.enable()},function(P){})}cancel(){this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),this.highlighter?.disable()}setTextContentStream(d){this.cancel(),this.textContentStream=d}setTextContent(d){this.cancel(),this.textContent=d}_bindMouse(){const d=this.textLayerDiv;let C=null;d.addEventListener("mousedown",P=>{if(this.enhanceTextSelection&&this.textLayerRenderTask)return this.textLayerRenderTask.expandTextDivs(!0),void(C&&(clearTimeout(C),C=null));const k=d.querySelector(".endOfContent");if(!k)return;let $=P.target!==d;if($=$&&"none"!==window.getComputedStyle(k).getPropertyValue("-moz-user-select"),$){const I=d.getBoundingClientRect(),g=Math.max(0,(P.pageY-I.top)/I.height);k.style.top=(100*g).toFixed(2)+"%"}k.classList.add("active")}),d.addEventListener("mouseup",()=>{if(this.enhanceTextSelection&&this.textLayerRenderTask)return void(C=setTimeout(()=>{this.textLayerRenderTask&&this.textLayerRenderTask.expandTextDivs(!1),C=null},300));const P=d.querySelector(".endOfContent");P&&(P.style.top="",P.classList.remove("active"))})}}},(Z,h,w)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.XfaLayerBuilder=void 0;var D=w(3);h.XfaLayerBuilder=class x{constructor({pageDiv:z,pdfPage:d,annotationStorage:C=null,linkService:P,xfaHtml:k=null}){this.pageDiv=z,this.pdfPage=d,this.annotationStorage=C,this.linkService=P,this.xfaHtml=k,this.div=null,this._cancelled=!1}render(z,d="display"){if("print"===d){const C={viewport:z.clone({dontFlip:!0}),div:this.div,xfaHtml:this.xfaHtml,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:d},P=document.createElement("div");this.pageDiv.appendChild(P),C.div=P;const k=D.XfaLayer.render(C);return Promise.resolve(k)}return this.pdfPage.getXfa().then(C=>{if(this._cancelled||!C)return{textDivs:[]};const P={viewport:z.clone({dontFlip:!0}),div:this.div,xfaHtml:C,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:d};return this.div?D.XfaLayer.update(P):(this.div=document.createElement("div"),this.pageDiv.appendChild(this.div),P.div=this.div,D.XfaLayer.render(P))}).catch(C=>{console.error(C)})}cancel(){this._cancelled=!0}hide(){this.div&&(this.div.hidden=!0)}}},(Z,h,w)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.PDFViewer=h.PDFSinglePageViewer=void 0;var D=w(6),x=w(11);h.PDFViewer=class E extends x.BaseViewer{},h.PDFSinglePageViewer=class z extends x.BaseViewer{_resetView(){super._resetView(),this._scrollMode=D.ScrollMode.PAGE,this._spreadMode=D.SpreadMode.NONE}set scrollMode(C){}_updateScrollMode(){}set spreadMode(C){}_updateSpreadMode(){}}},(Z,h,w)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.PagesCountLimit=h.PDFPageViewBuffer=h.BaseViewer=void 0;var D=w(3),x=w(6),E=w(2),z=w(4),d=w(12),C=w(14),P=w(5),k=w(7),$=w(15),I=w(8),g=w(9);const m="enablePermissions",T={FORCE_SCROLL_MODE_PAGE:15e3,FORCE_LAZY_PAGE_INIT:7500,PAUSE_EAGER_PAGE_INIT:250};h.PagesCountLimit=T;class W{#e=new Set;#t=0;constructor(U){this.#t=U}push(U){const fe=this.#e;fe.has(U)&&fe.delete(U),fe.add(U),fe.size>this.#t&&this.#n()}resize(U,fe=null){this.#t=U;const ue=this.#e;if(fe){const pe=ue.size;let he=1;for(const de of ue)if(fe.has(de.id)&&(ue.delete(de),ue.add(de)),++he>pe)break}for(;ue.size>this.#t;)this.#n()}has(U){return this.#e.has(U)}[Symbol.iterator](){return this.#e.keys()}#n(){const U=this.#e.keys().next().value;U?.destroy(),this.#e.delete(U)}}h.PDFPageViewBuffer=W;class K{#e=null;#t=D.AnnotationMode.ENABLE_FORMS;#n=null;#r=!1;#c=0;#l=null;#i=null;constructor(U){if(this.constructor===K)throw new Error("Cannot initialize BaseViewer.");const fe="2.14.305";if(D.version!==fe)throw new Error(`The API version "${D.version}" does not match the Viewer version "${fe}".`);if(this.container=U.container,this.viewer=U.viewer||U.container.firstElementChild,"DIV"!==this.container?.tagName.toUpperCase()||"DIV"!==this.viewer?.tagName.toUpperCase())throw new Error("Invalid `container` and/or `viewer` option.");if(this.container.offsetParent&&"absolute"!==getComputedStyle(this.container).position)throw new Error("The `container` must be absolutely positioned.");this.eventBus=U.eventBus,this.linkService=U.linkService||new P.SimpleLinkService,this.downloadManager=U.downloadManager||null,this.findController=U.findController||null,this._scriptingManager=U.scriptingManager||null,this.removePageBorders=U.removePageBorders||!1,this.textLayerMode=U.textLayerMode??x.TextLayerMode.ENABLE,this.#t=U.annotationMode??D.AnnotationMode.ENABLE_FORMS,this.imageResourcesPath=U.imageResourcesPath||"",this.enablePrintAutoRotate=U.enablePrintAutoRotate||!1,this.renderer=U.renderer||x.RendererType.CANVAS,this.useOnlyCssZoom=U.useOnlyCssZoom||!1,this.maxCanvasPixels=U.maxCanvasPixels,this.l10n=U.l10n||z.NullL10n,this.#r=U.enablePermissions||!1,this.pageColors=U.pageColors||null,U.pageColors&&(!CSS.supports("color",U.pageColors.background)||!CSS.supports("color",U.pageColors.foreground))&&((U.pageColors.background||U.pageColors.foreground)&&console.warn("Ignoring `pageColors`-option, since the browser doesn't support the values used."),this.pageColors=null),this.defaultRenderingQueue=!U.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new C.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=U.renderingQueue,this._doc=document.documentElement,this.scroll=(0,x.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=x.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),this.updateContainerHeightCss(),Promise.resolve().then(()=>{this.eventBus.dispatch("baseviewerinit",{source:this})})}get pagesCount(){return this._pages.length}getPageView(U){return this._pages[U]}get pageViewsReady(){return!!this._pagesCapability.settled&&this._pages.every(function(U){return U?.pdfPage})}get renderForms(){return this.#t===D.AnnotationMode.ENABLE_FORMS}get enableScripting(){return!!this._scriptingManager}get currentPageNumber(){return this._currentPageNumber}set currentPageNumber(U){if(!Number.isInteger(U))throw new Error("Invalid page number.");this.pdfDocument&&(this._setCurrentPageNumber(U,!0)||console.error(`currentPageNumber: "${U}" is not a valid page.`))}_setCurrentPageNumber(U,fe=!1){if(this._currentPageNumber===U)return fe&&this.#d(),!0;if(!(0<U&&U<=this.pagesCount))return!1;const ue=this._currentPageNumber;return this._currentPageNumber=U,this.eventBus.dispatch("pagechanging",{source:this,pageNumber:U,pageLabel:this._pageLabels?.[U-1]??null,previous:ue}),fe&&this.#d(),!0}get currentPageLabel(){return this._pageLabels?.[this._currentPageNumber-1]??null}set currentPageLabel(U){if(!this.pdfDocument)return;let fe=0|U;if(this._pageLabels){const ue=this._pageLabels.indexOf(U);ue>=0&&(fe=ue+1)}this._setCurrentPageNumber(fe,!0)||console.error(`currentPageLabel: "${U}" is not a valid page.`)}get currentScale(){return this._currentScale!==x.UNKNOWN_SCALE?this._currentScale:x.DEFAULT_SCALE}set currentScale(U){if(isNaN(U))throw new Error("Invalid numeric scale.");this.pdfDocument&&this._setScale(U,!1)}get currentScaleValue(){return this._currentScaleValue}set currentScaleValue(U){this.pdfDocument&&this._setScale(U,!1)}get pagesRotation(){return this._pagesRotation}set pagesRotation(U){if(!(0,x.isValidRotation)(U))throw new Error("Invalid pages rotation angle.");if(!this.pdfDocument||((U%=360)<0&&(U+=360),this._pagesRotation===U))return;this._pagesRotation=U;const fe=this._currentPageNumber,ue={rotation:U};for(const pe of this._pages)pe.update(ue);this._currentScaleValue&&this._setScale(this._currentScaleValue,!0),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:U,pageNumber:fe}),this.defaultRenderingQueue&&this.update()}get firstPagePromise(){return this.pdfDocument?this._firstPageCapability.promise:null}get onePageRendered(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}get pagesPromise(){return this.pdfDocument?this._pagesCapability.promise:null}#g(U){U&&(U.includes(D.PermissionFlag.COPY)||this.viewer.classList.add(m),!U.includes(D.PermissionFlag.MODIFY_ANNOTATIONS)&&!U.includes(D.PermissionFlag.FILL_INTERACTIVE_FORMS)&&this.#t===D.AnnotationMode.ENABLE_FORMS&&(this.#n=this.#t,this.#t=D.AnnotationMode.ENABLE))}#m(){if("hidden"===document.visibilityState||!this.container.offsetParent||0===this._getVisiblePages().views.length)return Promise.resolve();const U=new Promise(fe=>{this.#i=()=>{"hidden"===document.visibilityState&&(fe(),document.removeEventListener("visibilitychange",this.#i),this.#i=null)},document.addEventListener("visibilitychange",this.#i)});return Promise.race([this._onePageRenderedCapability.promise,U])}setDocument(U){var fe=this;if(this.pdfDocument&&(this.eventBus.dispatch("pagesdestroy",{source:this}),this._cancelRendering(),this._resetView(),this.findController&&this.findController.setDocument(null),this._scriptingManager&&this._scriptingManager.setDocument(null)),this.pdfDocument=U,!U)return;const ue=U.isPureXfa,pe=U.numPages,he=U.getPage(1),de=U.getOptionalContentConfig(),_e=this.#r?U.getPermissions():Promise.resolve();if(pe>T.FORCE_SCROLL_MODE_PAGE){console.warn("Forcing PAGE-scrolling for performance reasons, given the length of the document.");const Ee=this._scrollMode=x.ScrollMode.PAGE;this.eventBus.dispatch("scrollmodechanged",{source:this,mode:Ee})}this._pagesCapability.promise.then(()=>{this.eventBus.dispatch("pagesloaded",{source:this,pagesCount:pe})},()=>{}),this._onBeforeDraw=Ee=>{const Ne=this._pages[Ee.pageNumber-1];Ne&&this.#e.push(Ne)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=Ee=>{Ee.cssTransform||this._onePageRenderedCapability.settled||(this._onePageRenderedCapability.resolve({timestamp:Ee.timestamp}),this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null,this.#i&&(document.removeEventListener("visibilitychange",this.#i),this.#i=null))},this.eventBus._on("pagerendered",this._onAfterDraw),Promise.all([he,_e]).then(([Ee,Ne])=>{if(U!==this.pdfDocument)return;this._firstPageCapability.resolve(Ee),this._optionalContentConfigPromise=de,this.#g(Ne);const ge=this._scrollMode===x.ScrollMode.PAGE?null:this.viewer,q=this.currentScale,u=Ee.getViewport({scale:q*D.PixelsPerInch.PDF_TO_CSS_UNITS}),p=this.textLayerMode===x.TextLayerMode.DISABLE||ue?null:this,N=this.#t!==D.AnnotationMode.DISABLE?this:null,G=ue?this:null;for(let ne=1;ne<=pe;++ne){const S=new d.PDFPageView({container:ge,eventBus:this.eventBus,id:ne,scale:q,defaultViewport:u.clone(),optionalContentConfigPromise:de,renderingQueue:this.renderingQueue,textLayerFactory:p,textLayerMode:this.textLayerMode,annotationLayerFactory:N,annotationMode:this.#t,xfaLayerFactory:G,textHighlighterFactory:this,structTreeLayerFactory:this,imageResourcesPath:this.imageResourcesPath,renderer:this.renderer,useOnlyCssZoom:this.useOnlyCssZoom,maxCanvasPixels:this.maxCanvasPixels,pageColors:this.pageColors,l10n:this.l10n});this._pages.push(S)}const R=this._pages[0];R&&(R.setPdfPage(Ee),this.linkService.cachePageRef(1,Ee.ref)),this._scrollMode===x.ScrollMode.PAGE?this.#s():this._spreadMode!==x.SpreadMode.NONE&&this._updateSpreadMode(),this.#m().then(n(function*(){if(fe.findController&&fe.findController.setDocument(U),fe._scriptingManager&&fe._scriptingManager.setDocument(U),U.loadingParams.disableAutoFetch||pe>T.FORCE_LAZY_PAGE_INIT)return void fe._pagesCapability.resolve();let ne=pe-1;if(ne<=0)fe._pagesCapability.resolve();else for(let S=2;S<=pe;++S){const se=U.getPage(S).then(Me=>{const Fe=fe._pages[S-1];Fe.pdfPage||Fe.setPdfPage(Me),fe.linkService.cachePageRef(S,Me.ref),0==--ne&&fe._pagesCapability.resolve()},Me=>{console.error(`Unable to get page ${S} to initialize viewer`,Me),0==--ne&&fe._pagesCapability.resolve()});S%T.PAUSE_EAGER_PAGE_INIT==0&&(yield se)}})),this.eventBus.dispatch("pagesinit",{source:this}),U.getMetadata().then(({info:ne})=>{U===this.pdfDocument&&ne.Language&&(this.viewer.lang=ne.Language)}),this.defaultRenderingQueue&&this.update()}).catch(Ee=>{console.error("Unable to initialize viewer",Ee),this._pagesCapability.reject(Ee)})}setPageLabels(U){if(this.pdfDocument){U?Array.isArray(U)&&this.pdfDocument.numPages===U.length?this._pageLabels=U:(this._pageLabels=null,console.error("setPageLabels: Invalid page labels.")):this._pageLabels=null;for(let fe=0,ue=this._pages.length;fe<ue;fe++)this._pages[fe].setPageLabel(this._pageLabels?.[fe]??null)}}_resetView(){this._pages=[],this._currentPageNumber=1,this._currentScale=x.UNKNOWN_SCALE,this._currentScaleValue=null,this._pageLabels=null,this.#e=new W(10),this._location=null,this._pagesRotation=0,this._optionalContentConfigPromise=null,this._firstPageCapability=(0,D.createPromiseCapability)(),this._onePageRenderedCapability=(0,D.createPromiseCapability)(),this._pagesCapability=(0,D.createPromiseCapability)(),this._scrollMode=x.ScrollMode.VERTICAL,this._previousScrollMode=x.ScrollMode.UNKNOWN,this._spreadMode=x.SpreadMode.NONE,this.#l={previousPageNumber:1,scrollDown:!0,pages:[]},this._onBeforeDraw&&(this.eventBus._off("pagerender",this._onBeforeDraw),this._onBeforeDraw=null),this._onAfterDraw&&(this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null),this.#i&&(document.removeEventListener("visibilitychange",this.#i),this.#i=null),this.viewer.textContent="",this._updateScrollMode(),this.viewer.removeAttribute("lang"),this.viewer.classList.remove(m),null!==this.#n&&(this.#t=this.#n,this.#n=null)}#s(){if(this._scrollMode!==x.ScrollMode.PAGE)throw new Error("#ensurePageViewVisible: Invalid scrollMode value.");const U=this._currentPageNumber,fe=this.#l,ue=this.viewer;if(ue.textContent="",fe.pages.length=0,this._spreadMode!==x.SpreadMode.NONE||this.isInPresentationMode){const pe=new Set,he=this._spreadMode-1;-1===he?pe.add(U-1):U%2!==he?(pe.add(U-1),pe.add(U)):(pe.add(U-2),pe.add(U-1));const de=document.createElement("div");if(de.className="spread",this.isInPresentationMode){const _e=document.createElement("div");_e.className="dummyPage",de.appendChild(_e)}for(const _e of pe){const Ee=this._pages[_e];Ee&&(de.appendChild(Ee.div),fe.pages.push(Ee))}ue.appendChild(de)}else{const pe=this._pages[U-1];ue.appendChild(pe.div),fe.pages.push(pe)}fe.scrollDown=U>=fe.previousPageNumber,fe.previousPageNumber=U}_scrollUpdate(){0!==this.pagesCount&&this.update()}#o(U,fe=null){const{div:ue,id:pe}=U;if(this._scrollMode===x.ScrollMode.PAGE&&(this._setCurrentPageNumber(pe),this.#s(),this.update()),!fe&&!this.isInPresentationMode){const he=ue.offsetLeft+ue.clientLeft,de=he+ue.clientWidth,{scrollLeft:_e,clientWidth:Ee}=this.container;(this._scrollMode===x.ScrollMode.HORIZONTAL||he<_e||de>_e+Ee)&&(fe={left:0,top:0})}(0,x.scrollIntoView)(ue,fe)}#a(U){return U===this._currentScale||Math.abs(U-this._currentScale)<1e-15}_setScaleUpdatePages(U,fe,ue=!1,pe=!1){if(this._currentScaleValue=fe.toString(),this.#a(U))return void(pe&&this.eventBus.dispatch("scalechanging",{source:this,scale:U,presetValue:fe}));this._doc.style.setProperty("--zoom-factor",U);const he={scale:U};for(const de of this._pages)de.update(he);if(this._currentScale=U,!ue){let _e,de=this._currentPageNumber;this._location&&!(this.isInPresentationMode||this.isChangingPresentationMode)&&(de=this._location.pageNumber,_e=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:de,destArray:_e,allowNegativeOffset:!0})}this.eventBus.dispatch("scalechanging",{source:this,scale:U,presetValue:pe?fe:void 0}),this.defaultRenderingQueue&&this.update(),this.updateContainerHeightCss()}get _pageWidthScaleFactor(){return this._spreadMode!==x.SpreadMode.NONE&&this._scrollMode!==x.ScrollMode.HORIZONTAL?2:1}_setScale(U,fe=!1){let ue=parseFloat(U);if(ue>0)this._setScaleUpdatePages(ue,U,fe,!1);else{const pe=this._pages[this._currentPageNumber-1];if(!pe)return;let he=x.SCROLLBAR_PADDING,de=x.VERTICAL_PADDING;this.isInPresentationMode?he=de=4:this.removePageBorders?he=de=0:this._scrollMode===x.ScrollMode.HORIZONTAL&&([he,de]=[de,he]);const _e=(this.container.clientWidth-he)/pe.width*pe.scale/this._pageWidthScaleFactor,Ee=(this.container.clientHeight-de)/pe.height*pe.scale;switch(U){case"page-actual":ue=1;break;case"page-width":ue=_e;break;case"page-height":ue=Ee;break;case"page-fit":ue=Math.min(_e,Ee);break;case"auto":const Ne=(0,x.isPortraitOrientation)(pe)?_e:Math.min(Ee,_e);ue=Math.min(x.MAX_AUTO_SCALE,Ne);break;default:return void console.error(`_setScale: "${U}" is an unknown zoom value.`)}this._setScaleUpdatePages(ue,U,fe,!0)}}#d(){const U=this._pages[this._currentPageNumber-1];this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0),this.#o(U)}pageLabelToPageNumber(U){if(!this._pageLabels)return null;const fe=this._pageLabels.indexOf(U);return fe<0?null:fe+1}scrollPageIntoView({pageNumber:U,destArray:fe=null,allowNegativeOffset:ue=!1,ignoreDestinationZoom:pe=!1}){if(!this.pdfDocument)return;const he=Number.isInteger(U)&&this._pages[U-1];if(!he)return void console.error(`scrollPageIntoView: "${U}" is not a valid pageNumber parameter.`);if(this.isInPresentationMode||!fe)return void this._setCurrentPageNumber(U,!0);let ge,q,de=0,_e=0,Ee=0,Ne=0;const u=he.rotation%180!=0,p=(u?he.height:he.width)/he.scale/D.PixelsPerInch.PDF_TO_CSS_UNITS,N=(u?he.width:he.height)/he.scale/D.PixelsPerInch.PDF_TO_CSS_UNITS;let G=0;switch(fe[1].name){case"XYZ":de=fe[2],_e=fe[3],G=fe[4],de=null!==de?de:0,_e=null!==_e?_e:N;break;case"Fit":case"FitB":G="page-fit";break;case"FitH":case"FitBH":_e=fe[2],G="page-width",null===_e&&this._location?(de=this._location.left,_e=this._location.top):("number"!=typeof _e||_e<0)&&(_e=N);break;case"FitV":case"FitBV":de=fe[2],Ee=p,Ne=N,G="page-height";break;case"FitR":de=fe[2],_e=fe[3],Ee=fe[4]-de,Ne=fe[5]-_e,ge=(this.container.clientWidth-(this.removePageBorders?0:x.SCROLLBAR_PADDING))/Ee/D.PixelsPerInch.PDF_TO_CSS_UNITS,q=(this.container.clientHeight-(this.removePageBorders?0:x.VERTICAL_PADDING))/Ne/D.PixelsPerInch.PDF_TO_CSS_UNITS,G=Math.min(Math.abs(ge),Math.abs(q));break;default:return void console.error(`scrollPageIntoView: "${fe[1].name}" is not a valid destination type.`)}if(pe||(G&&G!==this._currentScale?this.currentScaleValue=G:this._currentScale===x.UNKNOWN_SCALE&&(this.currentScaleValue=x.DEFAULT_SCALE_VALUE)),"page-fit"===G&&!fe[4])return void this.#o(he);const R=[he.viewport.convertToViewportPoint(de,_e),he.viewport.convertToViewportPoint(de+Ee,_e+Ne)];let ne=Math.min(R[0][0],R[1][0]),S=Math.min(R[0][1],R[1][1]);ue||(ne=Math.max(ne,0),S=Math.max(S,0)),this.#o(he,{left:ne,top:S})}_updateLocation(U){const fe=this._currentScale,ue=this._currentScaleValue,pe=parseFloat(ue)===fe?Math.round(1e4*fe)/100:ue,he=U.id,_e=this.container,Ee=this._pages[he-1].getPagePoint(_e.scrollLeft-U.x,_e.scrollTop-U.y),Ne=Math.round(Ee[0]),ge=Math.round(Ee[1]);let q=`#page=${he}`;this.isInPresentationMode||(q+=`&zoom=${pe},${Ne},${ge}`),this._location={pageNumber:he,scale:pe,top:ge,left:Ne,rotation:this._pagesRotation,pdfOpenParams:q}}update(){const U=this._getVisiblePages(),fe=U.views,ue=fe.length;if(0===ue)return;const pe=Math.max(10,2*ue+1);this.#e.resize(pe,U.ids),this.renderingQueue.renderHighestPriority(U);const he=this._spreadMode===x.SpreadMode.NONE&&(this._scrollMode===x.ScrollMode.PAGE||this._scrollMode===x.ScrollMode.VERTICAL),de=this._currentPageNumber;let _e=!1;for(const Ee of fe){if(Ee.percent<100)break;if(Ee.id===de&&he){_e=!0;break}}this._setCurrentPageNumber(_e?de:fe[0].id),this._updateLocation(U.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}containsElement(U){return this.container.contains(U)}focus(){this.container.focus()}get _isContainerRtl(){return"rtl"===getComputedStyle(this.container).direction}get isInPresentationMode(){return this.presentationModeState===x.PresentationModeState.FULLSCREEN}get isChangingPresentationMode(){return this.presentationModeState===x.PresentationModeState.CHANGING}get isHorizontalScrollbarEnabled(){return!this.isInPresentationMode&&this.container.scrollWidth>this.container.clientWidth}get isVerticalScrollbarEnabled(){return!this.isInPresentationMode&&this.container.scrollHeight>this.container.clientHeight}_getVisiblePages(){const U=this._scrollMode===x.ScrollMode.PAGE?this.#l.pages:this._pages,fe=this._scrollMode===x.ScrollMode.HORIZONTAL;return(0,x.getVisibleElements)({scrollEl:this.container,views:U,sortByVisibility:!0,horizontal:fe,rtl:fe&&this._isContainerRtl})}isPageVisible(U){return!!this.pdfDocument&&(Number.isInteger(U)&&U>0&&U<=this.pagesCount?this._getVisiblePages().ids.has(U):(console.error(`isPageVisible: "${U}" is not a valid page.`),!1))}isPageCached(U){return!!this.pdfDocument&&(Number.isInteger(U)&&U>0&&U<=this.pagesCount?this.#e.has(this._pages[U-1]):(console.error(`isPageCached: "${U}" is not a valid page.`),!1))}cleanup(){for(const U of this._pages)U.renderingState!==x.RenderingStates.FINISHED&&U.reset()}_cancelRendering(){for(const U of this._pages)U.cancelRendering()}#h(U){var fe=this;return n(function*(){if(U.pdfPage)return U.pdfPage;try{const ue=yield fe.pdfDocument.getPage(U.id);return U.pdfPage||U.setPdfPage(ue),fe.linkService._cachedPageNumber?.(ue.ref)||fe.linkService.cachePageRef(U.id,ue.ref),ue}catch(ue){return console.error("Unable to get page for page view",ue),null}})()}#f(U){if(1===U.first?.id)return!0;if(U.last?.id===this.pagesCount)return!1;switch(this._scrollMode){case x.ScrollMode.PAGE:return this.#l.scrollDown;case x.ScrollMode.HORIZONTAL:return this.scroll.right}return this.scroll.down}#u(U){for(const fe of U)this._pages[fe-1]?.toggleLoadingIconSpinner(!0);for(const fe of this.#e)U.has(fe.id)||fe.toggleLoadingIconSpinner(!1)}forceRendering(U){const fe=U||this._getVisiblePages(),ue=this.#f(fe),he=this.renderingQueue.getHighestPriority(fe,this._pages,ue,this._spreadMode!==x.SpreadMode.NONE&&this._scrollMode!==x.ScrollMode.HORIZONTAL);return this.#u(fe.ids),!!he&&(this.#h(he).then(()=>{this.renderingQueue.renderView(he)}),!0)}createTextLayerBuilder(U,fe,ue,pe=!1,he,de){return new I.TextLayerBuilder({textLayerDiv:U,eventBus:he,pageIndex:fe,viewport:ue,enhanceTextSelection:!this.isInPresentationMode&&pe,highlighter:de})}createTextHighlighter(U,fe){return new $.TextHighlighter({eventBus:fe,pageIndex:U,findController:this.isInPresentationMode?null:this.findController})}createAnnotationLayerBuilder(U,fe,ue=null,pe="",he=!0,de=z.NullL10n,_e=null,Ee=null,Ne=null,ge=null,q=null){return new E.AnnotationLayerBuilder({pageDiv:U,pdfPage:fe,annotationStorage:ue||this.pdfDocument?.annotationStorage,imageResourcesPath:pe,renderForms:he,linkService:this.linkService,downloadManager:this.downloadManager,l10n:de,enableScripting:_e??this.enableScripting,hasJSActionsPromise:Ee||this.pdfDocument?.hasJSActions(),fieldObjectsPromise:ge||this.pdfDocument?.getFieldObjects(),mouseState:Ne||this._scriptingManager?.mouseState,annotationCanvasMap:q})}createXfaLayerBuilder(U,fe,ue=null){return new g.XfaLayerBuilder({pageDiv:U,pdfPage:fe,annotationStorage:ue||this.pdfDocument?.annotationStorage,linkService:this.linkService})}createStructTreeLayerBuilder(U){return new k.StructTreeLayerBuilder({pdfPage:U})}get hasEqualPageSizes(){const U=this._pages[0];for(let fe=1,ue=this._pages.length;fe<ue;++fe){const pe=this._pages[fe];if(pe.width!==U.width||pe.height!==U.height)return!1}return!0}getPagesOverview(){return this._pages.map(U=>{const fe=U.pdfPage.getViewport({scale:1});return!this.enablePrintAutoRotate||(0,x.isPortraitOrientation)(fe)?{width:fe.width,height:fe.height,rotation:fe.rotation}:{width:fe.height,height:fe.width,rotation:(fe.rotation-90)%360}})}get optionalContentConfigPromise(){return this.pdfDocument?this._optionalContentConfigPromise?this._optionalContentConfigPromise:this.pdfDocument.getOptionalContentConfig():Promise.resolve(null)}set optionalContentConfigPromise(U){if(!(U instanceof Promise))throw new Error(`Invalid optionalContentConfigPromise: ${U}`);if(!this.pdfDocument||!this._optionalContentConfigPromise)return;this._optionalContentConfigPromise=U;const fe={optionalContentConfigPromise:U};for(const ue of this._pages)ue.update(fe);this.update(),this.eventBus.dispatch("optionalcontentconfigchanged",{source:this,promise:U})}get scrollMode(){return this._scrollMode}set scrollMode(U){if(this._scrollMode!==U){if(!(0,x.isValidScrollMode)(U))throw new Error(`Invalid scroll mode: ${U}`);this.pagesCount>T.FORCE_SCROLL_MODE_PAGE||(this._previousScrollMode=this._scrollMode,this._scrollMode=U,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:U}),this._updateScrollMode(this._currentPageNumber))}}_updateScrollMode(U=null){const fe=this._scrollMode,ue=this.viewer;ue.classList.toggle("scrollHorizontal",fe===x.ScrollMode.HORIZONTAL),ue.classList.toggle("scrollWrapped",fe===x.ScrollMode.WRAPPED),this.pdfDocument&&U&&(fe===x.ScrollMode.PAGE?this.#s():this._previousScrollMode===x.ScrollMode.PAGE&&this._updateSpreadMode(),this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(U,!0),this.update())}get spreadMode(){return this._spreadMode}set spreadMode(U){if(this._spreadMode!==U){if(!(0,x.isValidSpreadMode)(U))throw new Error(`Invalid spread mode: ${U}`);this._spreadMode=U,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:U}),this._updateSpreadMode(this._currentPageNumber)}}_updateSpreadMode(U=null){if(!this.pdfDocument)return;const fe=this.viewer,ue=this._pages;if(this._scrollMode===x.ScrollMode.PAGE)this.#s();else if(fe.textContent="",this._spreadMode===x.SpreadMode.NONE)for(const pe of this._pages)fe.appendChild(pe.div);else{const pe=this._spreadMode-1;let he=null;for(let de=0,_e=ue.length;de<_e;++de)null===he?(he=document.createElement("div"),he.className="spread",fe.appendChild(he)):de%2===pe&&(he=he.cloneNode(!1),fe.appendChild(he)),he.appendChild(ue[de].div)}U&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(U,!0),this.update())}_getPageAdvance(U,fe=!1){switch(this._scrollMode){case x.ScrollMode.WRAPPED:{const{views:ue}=this._getVisiblePages(),pe=new Map;for(const{id:he,y:de,percent:_e,widthPercent:Ee}of ue){if(0===_e||Ee<100)continue;let Ne=pe.get(de);Ne||pe.set(de,Ne||=[]),Ne.push(he)}for(const he of pe.values()){const de=he.indexOf(U);if(-1===de)continue;const _e=he.length;if(1===_e)break;if(fe)for(let Ee=de-1,Ne=0;Ee>=Ne;Ee--){const q=he[Ee+1]-1;if(he[Ee]<q)return U-q}else for(let Ee=de+1,Ne=_e;Ee<Ne;Ee++){const q=he[Ee-1]+1;if(he[Ee]>q)return q-U}if(fe){const Ee=he[0];if(Ee<U)return U-Ee+1}else{const Ee=he[_e-1];if(Ee>U)return Ee-U+1}break}break}case x.ScrollMode.HORIZONTAL:break;case x.ScrollMode.PAGE:case x.ScrollMode.VERTICAL:{if(this._spreadMode===x.SpreadMode.NONE)break;const ue=this._spreadMode-1;if(fe&&U%2!==ue)break;if(!fe&&U%2===ue)break;const{views:pe}=this._getVisiblePages(),he=fe?U-1:U+1;for(const{id:de,percent:_e,widthPercent:Ee}of pe)if(de===he){if(_e>0&&100===Ee)return 2;break}break}}return 1}nextPage(){const U=this._currentPageNumber,fe=this.pagesCount;if(U>=fe)return!1;const ue=this._getPageAdvance(U,!1)||1;return this.currentPageNumber=Math.min(U+ue,fe),!0}previousPage(){const U=this._currentPageNumber;if(U<=1)return!1;const fe=this._getPageAdvance(U,!0)||1;return this.currentPageNumber=Math.max(U-fe,1),!0}increaseScale(U=1){let fe=this._currentScale;do{fe=(fe*x.DEFAULT_SCALE_DELTA).toFixed(2),fe=Math.ceil(10*fe)/10,fe=Math.min(x.MAX_SCALE,fe)}while(--U>0&&fe<x.MAX_SCALE);this.currentScaleValue=fe}decreaseScale(U=1){let fe=this._currentScale;do{fe=(fe/x.DEFAULT_SCALE_DELTA).toFixed(2),fe=Math.floor(10*fe)/10,fe=Math.max(x.MIN_SCALE,fe)}while(--U>0&&fe>x.MIN_SCALE);this.currentScaleValue=fe}updateContainerHeightCss(){const U=this.container.clientHeight;U!==this.#c&&(this.#c=U,this._doc.style.setProperty("--viewer-container-height",`${U}px`))}}h.BaseViewer=K},(Z,h,w)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.PDFPageView=void 0;var D=w(3),x=w(6),E=w(13),z=w(4);const d=E.compatibilityParams.maxCanvasPixels||16777216;h.PDFPageView=class C{#e=D.AnnotationMode.ENABLE_FORMS;constructor(k){const $=k.container,I=k.defaultViewport;this.id=k.id,this.renderingId="page"+this.id,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=k.scale||x.DEFAULT_SCALE,this.viewport=I,this.pdfPageRotate=I.rotation,this._optionalContentConfigPromise=k.optionalContentConfigPromise||null,this.hasRestrictedScaling=!1,this.textLayerMode=k.textLayerMode??x.TextLayerMode.ENABLE,this.#e=k.annotationMode??D.AnnotationMode.ENABLE_FORMS,this.imageResourcesPath=k.imageResourcesPath||"",this.useOnlyCssZoom=k.useOnlyCssZoom||!1,this.maxCanvasPixels=k.maxCanvasPixels||d,this.pageColors=k.pageColors||null,this.eventBus=k.eventBus,this.renderingQueue=k.renderingQueue,this.textLayerFactory=k.textLayerFactory,this.annotationLayerFactory=k.annotationLayerFactory,this.xfaLayerFactory=k.xfaLayerFactory,this.textHighlighter=k.textHighlighterFactory?.createTextHighlighter(this.id-1,this.eventBus),this.structTreeLayerFactory=k.structTreeLayerFactory,this.renderer=k.renderer||x.RendererType.CANVAS,this.l10n=k.l10n||z.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.renderingState=x.RenderingStates.INITIAL,this.resume=null,this._renderError=null,this._isStandalone=!this.renderingQueue?.hasViewer(),this._annotationCanvasMap=null,this.annotationLayer=null,this.textLayer=null,this.zoomLayer=null,this.xfaLayer=null,this.structTreeLayer=null;const g=document.createElement("div");g.className="page",g.style.width=Math.floor(this.viewport.width)+"px",g.style.height=Math.floor(this.viewport.height)+"px",g.setAttribute("data-page-number",this.id),g.setAttribute("role","region"),this.l10n.get("page_landmark",{page:this.id}).then(f=>{g.setAttribute("aria-label",f)}),this.div=g,$?.appendChild(g)}setPdfPage(k){this.pdfPage=k,this.pdfPageRotate=k.rotate,this.viewport=k.getViewport({scale:this.scale*D.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:(this.rotation+this.pdfPageRotate)%360}),this.reset()}destroy(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()}_renderAnnotationLayer(){var k=this;return n(function*(){let $=null;try{yield k.annotationLayer.render(k.viewport,"display")}catch(I){$=I}finally{k.eventBus.dispatch("annotationlayerrendered",{source:k,pageNumber:k.id,error:$})}})()}_renderXfaLayer(){var k=this;return n(function*(){let $=null;try{const I=yield k.xfaLayer.render(k.viewport,"display");k.textHighlighter&&k._buildXfaTextContentItems(I.textDivs)}catch(I){$=I}finally{k.eventBus.dispatch("xfalayerrendered",{source:k,pageNumber:k.id,error:$})}})()}_buildXfaTextContentItems(k){var $=this;return n(function*(){const I=yield $.pdfPage.getTextContent(),g=[];for(const f of I.items)g.push(f.str);$.textHighlighter.setTextMapping(k,g),$.textHighlighter.enable()})()}_resetZoomLayer(k=!1){if(!this.zoomLayer)return;const $=this.zoomLayer.firstChild;this.paintedViewportMap.delete($),$.width=0,$.height=0,k&&this.zoomLayer.remove(),this.zoomLayer=null}reset({keepZoomLayer:k=!1,keepAnnotationLayer:$=!1,keepXfaLayer:I=!1}={}){this.cancelRendering({keepAnnotationLayer:$,keepXfaLayer:I}),this.renderingState=x.RenderingStates.INITIAL;const g=this.div;g.style.width=Math.floor(this.viewport.width)+"px",g.style.height=Math.floor(this.viewport.height)+"px";const f=g.childNodes,m=k&&this.zoomLayer||null,T=$&&this.annotationLayer?.div||null,W=I&&this.xfaLayer?.div||null;for(let K=f.length-1;K>=0;K--){const re=f[K];switch(re){case m:case T:case W:continue}re.remove()}g.removeAttribute("data-loaded"),T&&this.annotationLayer.hide(),W&&this.xfaLayer.hide(),m||(this.canvas&&(this.paintedViewportMap.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap.delete(this.svg),delete this.svg),this.loadingIconDiv=document.createElement("div"),this.loadingIconDiv.className="loadingIcon notVisible",this._isStandalone&&this.toggleLoadingIconSpinner(!0),this.loadingIconDiv.setAttribute("role","img"),this.l10n.get("loading").then(K=>{this.loadingIconDiv?.setAttribute("aria-label",K)}),g.appendChild(this.loadingIconDiv)}update({scale:k=0,rotation:$=null,optionalContentConfigPromise:I=null}){if(this.scale=k||this.scale,"number"==typeof $&&(this.rotation=$),I instanceof Promise&&(this._optionalContentConfigPromise=I),this.viewport=this.viewport.clone({scale:this.scale*D.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:(this.rotation+this.pdfPageRotate)%360}),this._isStandalone){const{style:m}=document.documentElement;m.setProperty("--zoom-factor",this.scale)}if(this.svg)return this.cssTransform({target:this.svg,redrawAnnotationLayer:!0,redrawXfaLayer:!0}),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});let f=!1;if(this.canvas&&this.maxCanvasPixels>0){const m=this.outputScale;(Math.floor(this.viewport.width)*m.sx|0)*(Math.floor(this.viewport.height)*m.sy|0)>this.maxCanvasPixels&&(f=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&f)return this.cssTransform({target:this.canvas,redrawAnnotationLayer:!0,redrawXfaLayer:!0}),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});!this.zoomLayer&&!this.canvas.hidden&&(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform({target:this.zoomLayer.firstChild}),this.reset({keepZoomLayer:!0,keepAnnotationLayer:!0,keepXfaLayer:!0})}cancelRendering({keepAnnotationLayer:k=!1,keepXfaLayer:$=!1}={}){this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),this.annotationLayer&&(!k||!this.annotationLayer.div)&&(this.annotationLayer.cancel(),this.annotationLayer=null,this._annotationCanvasMap=null),this.xfaLayer&&(!$||!this.xfaLayer.div)&&(this.xfaLayer.cancel(),this.xfaLayer=null,this.textHighlighter?.disable()),this._onTextLayerRendered&&(this.eventBus._off("textlayerrendered",this._onTextLayerRendered),this._onTextLayerRendered=null)}cssTransform({target:k,redrawAnnotationLayer:$=!1,redrawXfaLayer:I=!1}){const g=this.viewport.width,f=this.viewport.height,m=this.div;k.style.width=k.parentNode.style.width=m.style.width=Math.floor(g)+"px",k.style.height=k.parentNode.style.height=m.style.height=Math.floor(f)+"px";const T=this.viewport.rotation-this.paintedViewportMap.get(k).rotation,W=Math.abs(T);let K=1,re=1;if((90===W||270===W)&&(K=f/g,re=g/f),k.style.transform=`rotate(${T}deg) scale(${K}, ${re})`,this.textLayer){const U=this.textLayer.viewport,ue=Math.abs(this.viewport.rotation-U.rotation);let pe=g/U.width;(90===ue||270===ue)&&(pe=g/U.height);const he=this.textLayer.textLayerDiv;let de,_e;switch(ue){case 0:de=_e=0;break;case 90:de=0,_e="-"+he.style.height;break;case 180:de="-"+he.style.width,_e="-"+he.style.height;break;case 270:de="-"+he.style.width,_e=0;break;default:console.error("Bad rotation value.")}he.style.transform=`rotate(${ue}deg) scale(${pe}) translate(${de}, ${_e})`,he.style.transformOrigin="0% 0%"}$&&this.annotationLayer&&this._renderAnnotationLayer(),I&&this.xfaLayer&&this._renderXfaLayer()}get width(){return this.viewport.width}get height(){return this.viewport.height}getPagePoint(k,$){return this.viewport.convertToPdfPoint(k,$)}toggleLoadingIconSpinner(k=!1){this.loadingIconDiv?.classList.toggle("notVisible",!k)}draw(){var k=this;this.renderingState!==x.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());const{div:$,pdfPage:I}=this;if(!I)return this.renderingState=x.RenderingStates.FINISHED,this.loadingIconDiv&&(this.loadingIconDiv.remove(),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=x.RenderingStates.RUNNING;const g=document.createElement("div");g.style.width=$.style.width,g.style.height=$.style.height,g.classList.add("canvasWrapper"),this.annotationLayer?.div?$.insertBefore(g,this.annotationLayer.div):$.appendChild(g);let f=null;if(this.textLayerMode!==x.TextLayerMode.DISABLE&&this.textLayerFactory){const re=document.createElement("div");re.className="textLayer",re.style.width=g.style.width,re.style.height=g.style.height,this.annotationLayer?.div?$.insertBefore(re,this.annotationLayer.div):$.appendChild(re),f=this.textLayerFactory.createTextLayerBuilder(re,this.id-1,this.viewport,this.textLayerMode===x.TextLayerMode.ENABLE_ENHANCE,this.eventBus,this.textHighlighter)}this.textLayer=f,this.#e!==D.AnnotationMode.DISABLE&&this.annotationLayerFactory&&(this._annotationCanvasMap||=new Map,this.annotationLayer||=this.annotationLayerFactory.createAnnotationLayerBuilder($,I,null,this.imageResourcesPath,this.#e===D.AnnotationMode.ENABLE_FORMS,this.l10n,null,null,null,null,this._annotationCanvasMap)),this.xfaLayer?.div&&$.appendChild(this.xfaLayer.div);let m=null;this.renderingQueue&&(m=re=>{if(!this.renderingQueue.isHighestPriority(this))return this.renderingState=x.RenderingStates.PAUSED,void(this.resume=()=>{this.renderingState=x.RenderingStates.RUNNING,re()});re()});const T=function(){var re=n(function*(U=null){if(W===k.paintTask&&(k.paintTask=null),U instanceof D.RenderingCancelledException)k._renderError=null;else if(k._renderError=U,k.renderingState=x.RenderingStates.FINISHED,k.loadingIconDiv&&(k.loadingIconDiv.remove(),delete k.loadingIconDiv),k._resetZoomLayer(!0),k.eventBus.dispatch("pagerendered",{source:k,pageNumber:k.id,cssTransform:!1,timestamp:performance.now(),error:k._renderError}),U)throw U});return function(){return re.apply(this,arguments)}}(),W=this.renderer===x.RendererType.SVG?this.paintOnSvg(g):this.paintOnCanvas(g);W.onRenderContinue=m,this.paintTask=W;const K=W.promise.then(()=>T(null).then(()=>{if(f){const re=I.streamTextContent({includeMarkedContent:!0});f.setTextContentStream(re),f.render()}this.annotationLayer&&this._renderAnnotationLayer()}),function(re){return T(re)});return this.xfaLayerFactory&&(this.xfaLayer||(this.xfaLayer=this.xfaLayerFactory.createXfaLayerBuilder($,I,null)),this._renderXfaLayer()),this.structTreeLayerFactory&&this.textLayer&&this.canvas&&(this._onTextLayerRendered=re=>{re.pageNumber===this.id&&(this.eventBus._off("textlayerrendered",this._onTextLayerRendered),this._onTextLayerRendered=null,this.canvas&&this.pdfPage.getStructTree().then(U=>{if(!U||!this.canvas)return;const fe=this.structTreeLayer.render(U);fe.classList.add("structTree"),this.canvas.appendChild(fe)}))},this.eventBus._on("textlayerrendered",this._onTextLayerRendered),this.structTreeLayer=this.structTreeLayerFactory.createStructTreeLayerBuilder(I)),$.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),K}paintOnCanvas(k){const $=(0,D.createPromiseCapability)(),I={promise:$.promise,onRenderContinue(he){he()},cancel(){pe.cancel()}},g=this.viewport,f=document.createElement("canvas");f.hidden=!0;let m=!0;const T=function(){m&&(f.hidden=!1,m=!1)};k.appendChild(f),this.canvas=f;const W=f.getContext("2d",{alpha:!1}),K=this.outputScale=new x.OutputScale;if(this.useOnlyCssZoom){const he=g.clone({scale:D.PixelsPerInch.PDF_TO_CSS_UNITS});K.sx*=he.width/g.width,K.sy*=he.height/g.height}if(this.maxCanvasPixels>0){const de=Math.sqrt(this.maxCanvasPixels/(g.width*g.height));K.sx>de||K.sy>de?(K.sx=de,K.sy=de,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}const re=(0,x.approximateFraction)(K.sx),U=(0,x.approximateFraction)(K.sy);f.width=(0,x.roundToDivide)(g.width*K.sx,re[0]),f.height=(0,x.roundToDivide)(g.height*K.sy,U[0]),f.style.width=(0,x.roundToDivide)(g.width,re[1])+"px",f.style.height=(0,x.roundToDivide)(g.height,U[1])+"px",this.paintedViewportMap.set(f,g);const ue={canvasContext:W,transform:K.scaled?[K.sx,0,0,K.sy,0,0]:null,viewport:this.viewport,annotationMode:this.#e,optionalContentConfigPromise:this._optionalContentConfigPromise,annotationCanvasMap:this._annotationCanvasMap,pageColors:this.pageColors},pe=this.pdfPage.render(ue);return pe.onContinue=function(he){T(),I.onRenderContinue?I.onRenderContinue(he):he()},pe.promise.then(function(){T(),$.resolve()},function(he){T(),$.reject(he)}),I}paintOnSvg(k){let $=!1;const I=()=>{if($)throw new D.RenderingCancelledException(`Rendering cancelled, page ${this.id}`,"svg")},g=this.pdfPage,f=this.viewport.clone({scale:D.PixelsPerInch.PDF_TO_CSS_UNITS});return{promise:g.getOperatorList({annotationMode:this.#e}).then(T=>(I(),new D.SVGGraphics(g.commonObjs,g.objs).getSVG(T,f).then(K=>{I(),this.svg=K,this.paintedViewportMap.set(K,f),K.style.width=k.style.width,K.style.height=k.style.height,this.renderingState=x.RenderingStates.FINISHED,k.appendChild(K)}))),onRenderContinue(T){T()},cancel(){$=!0}}}setPageLabel(k){this.pageLabel="string"==typeof k?k:null,null!==this.pageLabel?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}}},(Z,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.compatibilityParams=h.OptionKind=h.AppOptions=void 0;const w=Object.create(null);h.compatibilityParams=w;{const d=navigator.userAgent||"",C=navigator.platform||"",P=navigator.maxTouchPoints||1,k=/Android/.test(d);(/\b(iPad|iPhone|iPod)(?=;)/.test(d)||"MacIntel"===C&&P>1||k)&&(w.maxCanvasPixels=5242880)}const D={VIEWER:2,API:4,WORKER:8,PREFERENCE:128};h.OptionKind=D;const x={annotationMode:{value:2,kind:D.VIEWER+D.PREFERENCE},cursorToolOnLoad:{value:0,kind:D.VIEWER+D.PREFERENCE},defaultUrl:{value:"compressed.tracemonkey-pldi-09.pdf",kind:D.VIEWER},defaultZoomValue:{value:"",kind:D.VIEWER+D.PREFERENCE},disableHistory:{value:!1,kind:D.VIEWER},disablePageLabels:{value:!1,kind:D.VIEWER+D.PREFERENCE},enablePermissions:{value:!1,kind:D.VIEWER+D.PREFERENCE},enablePrintAutoRotate:{value:!0,kind:D.VIEWER+D.PREFERENCE},enableScripting:{value:!0,kind:D.VIEWER+D.PREFERENCE},externalLinkRel:{value:"noopener noreferrer nofollow",kind:D.VIEWER},externalLinkTarget:{value:0,kind:D.VIEWER+D.PREFERENCE},historyUpdateUrl:{value:!1,kind:D.VIEWER+D.PREFERENCE},ignoreDestinationZoom:{value:!1,kind:D.VIEWER+D.PREFERENCE},imageResourcesPath:{value:"./images/",kind:D.VIEWER},maxCanvasPixels:{value:16777216,compatibility:w.maxCanvasPixels,kind:D.VIEWER},pageColorsBackground:{value:"Canvas",kind:D.VIEWER+D.PREFERENCE},pageColorsForeground:{value:"CanvasText",kind:D.VIEWER+D.PREFERENCE},pdfBugEnabled:{value:!1,kind:D.VIEWER+D.PREFERENCE},printResolution:{value:150,kind:D.VIEWER},renderer:{value:"canvas",kind:D.VIEWER},sidebarViewOnLoad:{value:-1,kind:D.VIEWER+D.PREFERENCE},scrollModeOnLoad:{value:-1,kind:D.VIEWER+D.PREFERENCE},spreadModeOnLoad:{value:-1,kind:D.VIEWER+D.PREFERENCE},textLayerMode:{value:1,kind:D.VIEWER+D.PREFERENCE},useOnlyCssZoom:{value:!1,kind:D.VIEWER+D.PREFERENCE},viewerCssTheme:{value:0,kind:D.VIEWER+D.PREFERENCE},viewOnLoad:{value:0,kind:D.VIEWER+D.PREFERENCE},cMapPacked:{value:!0,kind:D.API},cMapUrl:{value:"../web/cmaps/",kind:D.API},disableAutoFetch:{value:!1,kind:D.API+D.PREFERENCE},disableFontFace:{value:!1,kind:D.API+D.PREFERENCE},disableRange:{value:!1,kind:D.API+D.PREFERENCE},disableStream:{value:!1,kind:D.API+D.PREFERENCE},docBaseUrl:{value:"",kind:D.API},enableXfa:{value:!0,kind:D.API+D.PREFERENCE},fontExtraProperties:{value:!1,kind:D.API},isEvalSupported:{value:!0,kind:D.API},maxImageSize:{value:-1,kind:D.API},pdfBug:{value:!1,kind:D.API},standardFontDataUrl:{value:"../web/standard_fonts/",kind:D.API},verbosity:{value:1,kind:D.API},workerPort:{value:null,kind:D.WORKER},workerSrc:{value:"../build/pdf.worker.js",kind:D.WORKER}};x.disablePreferences={value:!1,kind:D.VIEWER},x.locale={value:navigator.language||"en-US",kind:D.VIEWER},x.sandboxBundleSrc={value:"../build/pdf.sandbox.js",kind:D.VIEWER},x.renderer.kind+=D.PREFERENCE;const E=Object.create(null);h.AppOptions=class z{constructor(){throw new Error("Cannot initialize AppOptions.")}static get(C){const P=E[C];if(void 0!==P)return P;const k=x[C];return void 0!==k?k.compatibility??k.value:void 0}static getAll(C=null){const P=Object.create(null);for(const k in x){const $=x[k];if(C){if(!(C&$.kind))continue;if(C===D.PREFERENCE){const g=$.value,f=typeof g;if("boolean"===f||"string"===f||"number"===f&&Number.isInteger(g)){P[k]=g;continue}throw new Error(`Invalid type for preference: ${k}`)}}const I=E[k];P[k]=void 0!==I?I:$.compatibility??$.value}return P}static set(C,P){E[C]=P}static setAll(C){for(const P in C)E[P]=C[P]}static remove(C){delete E[C]}static _hasUserOptions(){return Object.keys(E).length>0}}},(Z,h,w)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.PDFRenderingQueue=void 0;var D=w(3),x=w(6);h.PDFRenderingQueue=class z{constructor(){this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}setViewer(C){this.pdfViewer=C}setThumbnailViewer(C){this.pdfThumbnailViewer=C}isHighestPriority(C){return this.highestPriorityPage===C.renderingId}hasViewer(){return!!this.pdfViewer}renderHighestPriority(C){this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),!this.pdfViewer.forceRendering(C)&&(this.isThumbnailViewEnabled&&this.pdfThumbnailViewer?.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),3e4)))}getHighestPriority(C,P,k,$=!1){const I=C.views,g=I.length;if(0===g)return null;for(let K=0;K<g;K++){const re=I[K].view;if(!this.isViewFinished(re))return re}const f=C.first.id,m=C.last.id;if(m-f+1>g){const K=C.ids;for(let re=1,U=m-f;re<U;re++){const fe=k?f+re:m-re;if(K.has(fe))continue;const ue=P[fe-1];if(!this.isViewFinished(ue))return ue}}let T=k?m:f-2,W=P[T];return W&&!this.isViewFinished(W)||$&&(T+=k?1:-1,W=P[T],W&&!this.isViewFinished(W))?W:null}isViewFinished(C){return C.renderingState===x.RenderingStates.FINISHED}renderView(C){switch(C.renderingState){case x.RenderingStates.FINISHED:return!1;case x.RenderingStates.PAUSED:this.highestPriorityPage=C.renderingId,C.resume();break;case x.RenderingStates.RUNNING:this.highestPriorityPage=C.renderingId;break;case x.RenderingStates.INITIAL:this.highestPriorityPage=C.renderingId,C.draw().finally(()=>{this.renderHighestPriority()}).catch(P=>{P instanceof D.RenderingCancelledException||console.error(`renderView: "${P}"`)})}return!0}}},(Z,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.TextHighlighter=void 0,h.TextHighlighter=class w{constructor({findController:x,eventBus:E,pageIndex:z}){this.findController=x,this.matches=[],this.eventBus=E,this.pageIdx=z,this._onUpdateTextLayerMatches=null,this.textDivs=null,this.textContentItemsStr=null,this.enabled=!1}setTextMapping(x,E){this.textDivs=x,this.textContentItemsStr=E}enable(){if(!this.textDivs||!this.textContentItemsStr)throw new Error("Text divs and strings have not been set.");if(this.enabled)throw new Error("TextHighlighter is already enabled.");this.enabled=!0,this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=x=>{(x.pageIndex===this.pageIdx||-1===x.pageIndex)&&this._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches)),this._updateMatches()}disable(){this.enabled&&(this.enabled=!1,this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null))}_convertMatches(x,E){if(!x)return[];const{textContentItemsStr:z}=this;let d=0,C=0;const P=z.length-1,k=[];for(let $=0,I=x.length;$<I;$++){let g=x[$];for(;d!==P&&g>=C+z[d].length;)C+=z[d].length,d++;d===z.length&&console.error("Could not find a matching mapping");const f={begin:{divIdx:d,offset:g-C}};for(g+=E[$];d!==P&&g>C+z[d].length;)C+=z[d].length,d++;f.end={divIdx:d,offset:g-C},k.push(f)}return k}_renderMatches(x){if(0===x.length)return;const{findController:E,pageIdx:z}=this,{textContentItemsStr:d,textDivs:C}=this,P=z===E.selected.pageIdx,k=E.selected.matchIdx;let I=null;function f(K,re){const U=K.divIdx;return C[U].textContent="",m(U,0,K.offset,re)}function m(K,re,U,fe){let ue=C[K];if(ue.nodeType===Node.TEXT_NODE){const de=document.createElement("span");ue.parentNode.insertBefore(de,ue),de.appendChild(ue),C[K]=de,ue=de}const pe=d[K].substring(re,U),he=document.createTextNode(pe);if(fe){const de=document.createElement("span");return de.className=`${fe} appended`,de.appendChild(he),ue.appendChild(de),fe.includes("selected")?de.offsetLeft:0}return ue.appendChild(he),0}let T=k,W=T+1;if(E.state.highlightAll)T=0,W=x.length;else if(!P)return;for(let K=T;K<W;K++){const re=x[K],U=re.begin,fe=re.end,ue=P&&K===k,pe=ue?" selected":"";let he=0;if(I&&U.divIdx===I.divIdx?m(I.divIdx,I.offset,U.offset):(null!==I&&m(I.divIdx,I.offset,undefined),f(U)),U.divIdx===fe.divIdx)he=m(U.divIdx,U.offset,fe.offset,"highlight"+pe);else{he=m(U.divIdx,U.offset,undefined,"highlight begin"+pe);for(let de=U.divIdx+1,_e=fe.divIdx;de<_e;de++)C[de].className="highlight middle"+pe;f(fe,"highlight end"+pe)}I=fe,ue&&E.scrollMatchIntoView({element:C[U.divIdx],selectedLeft:he,pageIndex:z,matchIndex:k})}I&&m(I.divIdx,I.offset,undefined)}_updateMatches(){if(!this.enabled)return;const{findController:x,matches:E,pageIdx:z}=this,{textContentItemsStr:d,textDivs:C}=this;let P=-1;for(let I=0,g=E.length;I<g;I++){const f=E[I];for(let T=Math.max(P,f.begin.divIdx),W=f.end.divIdx;T<=W;T++){const K=C[T];K.textContent=d[T],K.className=""}P=f.end.divIdx+1}x?.highlightMatches&&(this.matches=this._convertMatches(x.pageMatches[z]||null,x.pageMatchesLength[z]||null),this._renderMatches(this.matches))}}},(Z,h,w)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.DownloadManager=void 0;var D=w(3);function x(z,d){const C=document.createElement("a");if(!C.click)throw new Error('DownloadManager: "a.click()" is not supported.');C.href=z,C.target="_parent","download"in C&&(C.download=d),(document.body||document.documentElement).appendChild(C),C.click(),C.remove()}h.DownloadManager=class E{constructor(){this._openBlobUrls=new WeakMap}downloadUrl(d,C){(0,D.createValidAbsoluteUrl)(d,"http://example.com")?x(d+"#pdfjs.action=download",C):console.error(`downloadUrl - not a valid URL: ${d}`)}downloadData(d,C,P){x(URL.createObjectURL(new Blob([d],{type:P})),C)}openOrDownloadData(d,C,P){const k=(0,D.isPdfFile)(P),$=k?"application/pdf":"";if(k){let g,I=this._openBlobUrls.get(d);I||(I=URL.createObjectURL(new Blob([C],{type:$})),this._openBlobUrls.set(d,I)),g="?file="+encodeURIComponent(I+"#"+P);try{return window.open(g),!0}catch(f){console.error(`openOrDownloadData: ${f}`),URL.revokeObjectURL(I),this._openBlobUrls.delete(d)}}return this.downloadData(C,P,$),!1}download(d,C,P,k="download"){x(URL.createObjectURL(d),P)}}},(Z,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.WaitOnType=h.EventBus=h.AutomationEventBus=void 0,h.waitOnEventOrTimeout=function D({target:z,name:d,delay:C=0}){return new Promise(function(P,k){if("object"!=typeof z||!d||"string"!=typeof d||!(Number.isInteger(C)&&C>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function $(m){z instanceof x?z._off(d,I):z.removeEventListener(d,I),f&&clearTimeout(f),P(m)}const I=$.bind(null,w.EVENT);z instanceof x?z._on(d,I):z.addEventListener(d,I);const g=$.bind(null,w.TIMEOUT),f=setTimeout(g,C)})};const w={EVENT:"event",TIMEOUT:"timeout"};h.WaitOnType=w;class x{constructor(){this._listeners=Object.create(null)}on(d,C,P=null){this._on(d,C,{external:!0,once:P?.once})}off(d,C,P=null){this._off(d,C,{external:!0,once:P?.once})}dispatch(d,C){const P=this._listeners[d];if(!P||0===P.length)return;let k;for(const{listener:$,external:I,once:g}of P.slice(0))g&&this._off(d,$),I?(k||=[]).push($):$(C);if(k){for(const $ of k)$(C);k=null}}_on(d,C,P=null){(this._listeners[d]||=[]).push({listener:C,external:!0===P?.external,once:!0===P?.once})}_off(d,C,P=null){const k=this._listeners[d];if(k)for(let $=0,I=k.length;$<I;$++)if(k[$].listener===C)return void k.splice($,1)}}h.EventBus=x,h.AutomationEventBus=class E extends x{dispatch(d,C){throw new Error("Not implemented: AutomationEventBus.dispatch")}}},(Z,h,w)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.GenericL10n=void 0,w(19);var D=w(4);const x=document.webL10n;h.GenericL10n=class E{constructor(d){this._lang=d,this._ready=new Promise((C,P)=>{x.setLanguage((0,D.fixupLangCode)(d),()=>{C(x)})})}getLanguage(){var d=this;return n(function*(){return(yield d._ready).getLanguage()})()}getDirection(){var d=this;return n(function*(){return(yield d._ready).getDirection()})()}get(d,C=null,P=(0,D.getL10nFallback)(d,C)){var k=this;return n(function*(){return(yield k._ready).get(d,C,P)})()}translate(d){var C=this;return n(function*(){return(yield C._ready).translate(d)})()}}},()=>{document.webL10n=function(Z,h,w){var D={},x="",E="textContent",z="",d={},C="loading",P=!0;function f(de,_e,Ee){_e=_e||function(q){},Ee=Ee||function(){};var Ne=new XMLHttpRequest;Ne.open("GET",de,P),Ne.overrideMimeType&&Ne.overrideMimeType("text/plain; charset=utf-8"),Ne.onreadystatechange=function(){4==Ne.readyState&&(200==Ne.status||0===Ne.status?_e(Ne.responseText):Ee())},Ne.onerror=Ee,Ne.ontimeout=Ee;try{Ne.send(null)}catch{Ee()}}function T(de,_e){de&&(de=de.toLowerCase()),_e=_e||function(){},function W(){D={},x="",z=""}(),z=de;var Ee=function k(){return h.querySelectorAll('link[type="application/l10n"]')}(),Ne=Ee.length;if(0!==Ne){var p,N=0;p=function(){++N>=Ne&&(_e(),C="complete")};for(var R=0;R<Ne;R++)new G(Ee[R]).load(de,p)}else{var ge=function $(){var de=h.querySelector('script[type="application/l10n"]');return de?JSON.parse(de.innerHTML):null}();if(ge&&ge.locales&&ge.default_locale){if(console.log("using the embedded JSON directory, early way out"),!(D=ge.locales[de])){var q=ge.default_locale.toLowerCase();for(var u in ge.locales){if((u=u.toLowerCase())===de){D=ge.locales[de];break}u===q&&(D=ge.locales[q])}}_e()}else console.log("no resource to load, early way out");C="complete"}function G(S){var se=S.href;this.load=function(Me,Fe){!function m(de,_e,Ee,Ne){var ge=de.replace(/[^\/]*$/,"")||"./";function q(p){return p.lastIndexOf("\\")<0?p:p.replace(/\\\\/g,"\\").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'")}f(de,function(p){x+=p,function u(p,N){var G={},R=/^\s*|\s*$/,ne=/^\s*#|^\s*$/,S=/^\s*\[(.*)\]\s*$/,se=/^\s*@import\s+url\((.*)\)\s*$/i,Me=/^([^=\s]*)\s*=\s*(.+)$/;function Fe(je,at,ft){var Qe=je.replace(R,"").split(/[\r\n]+/),nt="*",_t=_e.split("-",1)[0],Ge=!1,ht="";!function It(){for(;;){if(!Qe.length)return void ft();var Rt=Qe.shift();if(!ne.test(Rt)){if(at){if(ht=S.exec(Rt)){nt=ht[1].toLowerCase(),Ge="*"!==nt&&nt!==_e&&nt!==_t;continue}if(Ge)continue;if(ht=se.exec(Rt))return void Re(ge+ht[1],It)}var At=Rt.match(Me);At&&3==At.length&&(G[At[1]]=q(At[2]))}}}()}function Re(je,at){f(je,function(ft){Fe(ft,!1,at)},function(){console.warn(je+" not found."),at()})}Fe(p,!0,function(){N(G)})}(p,function(N){for(var G in N){var R,ne,S=G.lastIndexOf(".");S>0?(R=G.substring(0,S),ne=G.substring(S+1)):(R=G,ne=E),D[R]||(D[R]={}),D[R][ne]=N[G]}Ee&&Ee()})},Ne)}(se,Me,Fe,function(){console.warn(se+" not found."),console.warn('"'+Me+'" resource not found'),z="",Fe()})}}}function re(de,_e,Ee){var Ne=D[de];if(!Ne){if(console.warn("#"+de+" is undefined."),!Ee)return null;Ne=Ee}var ge={};for(var q in Ne){var u=Ne[q];u=fe(u=U(u,_e,de,q),_e,de),ge[q]=u}return ge}function U(de,_e,Ee,Ne){var q=/\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/.exec(de);if(!q||!q.length)return de;var N,u=q[1],p=q[2];return _e&&p in _e?N=_e[p]:p in D&&(N=D[p]),u in d&&(de=(0,d[u])(de,N,Ee,Ne)),de}function fe(de,_e,Ee){return de.replace(/\{\{\s*(.+?)\s*\}\}/g,function(ge,q){return _e&&q in _e?_e[q]:q in D?D[q]:(console.log("argument {{"+q+"}} for #"+Ee+" is undefined."),ge)})}function ue(de){var _e=function g(de){if(!de)return{};var _e=de.getAttribute("data-l10n-id"),Ee=de.getAttribute("data-l10n-args"),Ne={};if(Ee)try{Ne=JSON.parse(Ee)}catch{console.warn("could not parse arguments for #"+_e)}return{id:_e,args:Ne}}(de);if(_e.id){var Ee=re(_e.id,_e.args);if(!Ee)return void console.warn("#"+_e.id+" is undefined.");if(Ee[E]){if(0===function pe(de){if(de.children)return de.children.length;if(typeof de.childElementCount<"u")return de.childElementCount;for(var _e=0,Ee=0;Ee<de.childNodes.length;Ee++)_e+=1===de.nodeType?1:0;return _e}(de))de[E]=Ee[E];else{for(var Ne=de.childNodes,ge=!1,q=0,u=Ne.length;q<u;q++)3===Ne[q].nodeType&&/\S/.test(Ne[q].nodeValue)&&(ge?Ne[q].nodeValue="":(Ne[q].nodeValue=Ee[E],ge=!0));if(!ge){var p=h.createTextNode(Ee[E]);de.insertBefore(p,de.firstChild)}}delete Ee[E]}for(var N in Ee)de[N]=Ee[N]}}return d.plural=function(de,_e,Ee,Ne){var ge=parseFloat(_e);if(isNaN(ge)||Ne!=E)return de;d._pluralRules||(d._pluralRules=function K(de){function Ee(u,p){return-1!==p.indexOf(u)}function Ne(u,p,N){return p<=u&&u<=N}var ge={0:function(u){return"other"},1:function(u){return Ne(u%100,3,10)?"few":0===u?"zero":Ne(u%100,11,99)?"many":2==u?"two":1==u?"one":"other"},2:function(u){return 0!==u&&u%10==0?"many":2==u?"two":1==u?"one":"other"},3:function(u){return 1==u?"one":"other"},4:function(u){return Ne(u,0,1)?"one":"other"},5:function(u){return Ne(u,0,2)&&2!=u?"one":"other"},6:function(u){return 0===u?"zero":u%10==1&&u%100!=11?"one":"other"},7:function(u){return 2==u?"two":1==u?"one":"other"},8:function(u){return Ne(u,3,6)?"few":Ne(u,7,10)?"many":2==u?"two":1==u?"one":"other"},9:function(u){return 0===u||1!=u&&Ne(u%100,1,19)?"few":1==u?"one":"other"},10:function(u){return Ne(u%10,2,9)&&!Ne(u%100,11,19)?"few":u%10!=1||Ne(u%100,11,19)?"other":"one"},11:function(u){return Ne(u%10,2,4)&&!Ne(u%100,12,14)?"few":u%10==0||Ne(u%10,5,9)||Ne(u%100,11,14)?"many":u%10==1&&u%100!=11?"one":"other"},12:function(u){return Ne(u,2,4)?"few":1==u?"one":"other"},13:function(u){return Ne(u%10,2,4)&&!Ne(u%100,12,14)?"few":1!=u&&Ne(u%10,0,1)||Ne(u%10,5,9)||Ne(u%100,12,14)?"many":1==u?"one":"other"},14:function(u){return Ne(u%100,3,4)?"few":u%100==2?"two":u%100==1?"one":"other"},15:function(u){return 0===u||Ne(u%100,2,10)?"few":Ne(u%100,11,19)?"many":1==u?"one":"other"},16:function(u){return u%10==1&&11!=u?"one":"other"},17:function(u){return 3==u?"few":0===u?"zero":6==u?"many":2==u?"two":1==u?"one":"other"},18:function(u){return 0===u?"zero":Ne(u,0,2)&&0!==u&&2!=u?"one":"other"},19:function(u){return Ne(u,2,10)?"few":Ne(u,0,1)?"one":"other"},20:function(u){return!Ne(u%10,3,4)&&u%10!=9||Ne(u%100,10,19)||Ne(u%100,70,79)||Ne(u%100,90,99)?u%1e6==0&&0!==u?"many":u%10!=2||Ee(u%100,[12,72,92])?u%10!=1||Ee(u%100,[11,71,91])?"other":"one":"two":"few"},21:function(u){return 0===u?"zero":1==u?"one":"other"},22:function(u){return Ne(u,0,1)||Ne(u,11,99)?"one":"other"},23:function(u){return Ne(u%10,1,2)||u%20==0?"one":"other"},24:function(u){return Ne(u,3,10)||Ne(u,13,19)?"few":Ee(u,[2,12])?"two":Ee(u,[1,11])?"one":"other"}},q={af:3,ak:4,am:4,ar:1,asa:3,az:0,be:11,bem:3,bez:3,bg:3,bh:4,bm:0,bn:3,bo:0,br:20,brx:3,bs:11,ca:3,cgg:3,chr:3,cs:12,cy:17,da:3,de:3,dv:3,dz:0,ee:3,el:3,en:3,eo:3,es:3,et:3,eu:3,fa:0,ff:5,fi:3,fil:4,fo:3,fr:5,fur:3,fy:3,ga:8,gd:24,gl:3,gsw:3,gu:3,guw:4,gv:23,ha:3,haw:3,he:2,hi:4,hr:11,hu:0,id:0,ig:0,ii:0,is:3,it:3,iu:7,ja:0,jmc:3,jv:0,ka:0,kab:5,kaj:3,kcg:3,kde:0,kea:0,kk:3,kl:3,km:0,kn:0,ko:0,ksb:3,ksh:21,ku:3,kw:7,lag:18,lb:3,lg:3,ln:4,lo:0,lt:10,lv:6,mas:3,mg:4,mk:16,ml:3,mn:3,mo:9,mr:3,ms:0,mt:15,my:0,nah:3,naq:7,nb:3,nd:3,ne:3,nl:3,nn:3,no:3,nr:3,nso:4,ny:3,nyn:3,om:3,or:3,pa:3,pap:3,pl:13,ps:3,pt:3,rm:3,ro:9,rof:3,ru:11,rwk:3,sah:0,saq:3,se:7,seh:3,ses:0,sg:0,sh:11,shi:19,sk:12,sl:14,sma:7,smi:7,smj:7,smn:7,sms:7,sn:3,so:3,sq:3,sr:11,ss:3,ssy:3,st:3,sv:3,sw:3,syr:3,ta:3,te:3,teo:3,th:0,ti:4,tig:3,tk:3,tl:4,tn:3,to:0,tr:0,ts:3,tzm:22,uk:11,ur:3,ve:3,vi:0,vun:3,wa:4,wae:3,wo:0,xh:3,xog:3,yo:0,zh:0,zu:3}[de.replace(/-.*$/,"")];return q in ge?ge[q]:(console.warn("plural form unknown for ["+de+"]"),function(){return"other"})}(z));var q="["+d._pluralRules(ge)+"]";return 0===ge&&Ee+"[zero]"in D?de=D[Ee+"[zero]"][Ne]:1==ge&&Ee+"[one]"in D?de=D[Ee+"[one]"][Ne]:2==ge&&Ee+"[two]"in D?de=D[Ee+"[two]"][Ne]:Ee+q in D?de=D[Ee+q][Ne]:Ee+"[other]"in D&&(de=D[Ee+"[other]"][Ne]),de},{get:function(de,_e,Ee){var q,Ne=de.lastIndexOf("."),ge=E;Ne>0&&(ge=de.substring(Ne+1),de=de.substring(0,Ne)),Ee&&((q={})[ge]=Ee);var u=re(de,_e,q);return u&&ge in u?u[ge]:"{{"+de+"}}"},getData:function(){return D},getText:function(){return x},getLanguage:function(){return z},setLanguage:function(de,_e){T(de,function(){_e&&_e()})},getDirection:function(){var _e=z.split("-",1)[0];return["ar","he","fa","ps","ur"].indexOf(_e)>=0?"rtl":"ltr"},translate:function he(de){for(var _e=function I(de){return de?de.querySelectorAll("*[data-l10n-id]"):[]}(de=de||h.documentElement),Ee=_e.length,Ne=0;Ne<Ee;Ne++)ue(_e[Ne]);ue(de)},getReadyState:function(){return C},ready:function(de){de&&("complete"==C||"interactive"==C?Z.setTimeout(function(){de()}):h.addEventListener&&h.addEventListener("localized",function _e(){h.removeEventListener("localized",_e),de()}))}}}(window,document)},(Z,h,w)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.PDFFindController=h.FindState=void 0;var D=w(6),x=w(3),E=w(21);const z={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};h.FindState=z;const k={"\u2010":"-","\u2018":"'","\u2019":"'","\u201a":"'","\u201b":"'","\u201c":'"',"\u201d":'"',"\u201e":'"',"\u201f":'"',"\xbc":"1/4","\xbd":"1/2","\xbe":"3/4"},$=new Set([12441,12442,2381,2509,2637,2765,2893,3021,3149,3277,3387,3388,3405,3530,3642,3770,3972,4153,4154,5908,5940,6098,6752,6980,7082,7083,7154,7155,11647,43014,43052,43204,43347,43456,43766,44013,3158,3953,3954,3962,3963,3964,3965,3968,3956]),I=[...$.values()].map(fe=>String.fromCharCode(fe)).join(""),g=/\p{M}+/gu,f=/([.*+?^${}()|[\]\\])|(\p{P})|(\s+)|(\p{M})|(\p{L})/gu,m=/([^\p{M}])\p{M}*$/u,T=/^\p{M}*([^\p{M}])/u;let W=null;function K(fe){if(!W){const u=Object.keys(k).join("");W=new RegExp(`([${u}])|(\\p{M}+(?:-\\n)?)|(\\S-\\n)|(\\n)`,"gum")}const ue=[];let pe;for(;null!==(pe=g.exec(fe));)ue.push([pe[0].length,pe.index]);let he=fe.normalize("NFD");const de=[[0,0]];let _e=0,Ee=0,Ne=0,ge=0,q=!1;return he=he.replace(W,(u,p,N,G,R,ne)=>{if(ne-=Ne,p){const S=k[u],se=S.length;for(let Me=1;Me<se;Me++)de.push([ne-Ee+Me,Ee-Me]);return Ee-=se-1,S}if(N){const S=N.endsWith("\n"),se=S?N.length-2:N.length;q=!0;let Me=se;ne+ge===ue[_e]?.[1]&&(Me-=ue[_e][0],++_e);for(let Fe=1;Fe<Me+1;Fe++)de.push([ne-1-Ee+Fe,Ee-Fe]);return Ee-=Me,Ne+=Me,S?(de.push([(ne+=se-1)-Ee+1,1+Ee]),Ee+=1,Ne+=1,ge+=1,N.slice(0,se)):N}return G?(de.push([ne-Ee+1,1+Ee]),Ee+=1,Ne+=1,ge+=1,G.charAt(0)):(de.push([ne-Ee+1,Ee-1]),Ee-=1,Ne+=1,ge+=1," ")}),de.push([he.length,Ee]),[he,de,q]}function re(fe,ue,pe){if(!fe)return[ue,pe];const he=ue,de=ue+pe;let _e=(0,D.binarySearchFirstItem)(fe,Ne=>Ne[0]>=he);fe[_e][0]>he&&--_e;let Ee=(0,D.binarySearchFirstItem)(fe,Ne=>Ne[0]>=de,_e);return fe[Ee][0]>de&&--Ee,[he+fe[_e][1],pe+fe[Ee][1]-fe[_e][1]]}h.PDFFindController=class U{constructor({linkService:ue,eventBus:pe}){this._linkService=ue,this._eventBus=pe,this.#t(),pe._on("find",this.#e.bind(this)),pe._on("findbarclose",this.#y.bind(this))}get highlightMatches(){return this._highlightMatches}get pageMatches(){return this._pageMatches}get pageMatchesLength(){return this._pageMatchesLength}get selected(){return this._selected}get state(){return this._state}setDocument(ue){this._pdfDocument&&this.#t(),ue&&(this._pdfDocument=ue,this._firstPageCapability.resolve())}#e(ue){if(!ue)return;const pe=this._pdfDocument,{type:he}=ue;(null===this._state||this.#r(ue))&&(this._dirtyMatch=!0),this._state=ue,"highlightallchange"!==he&&this.#p(z.PENDING),this._firstPageCapability.promise.then(()=>{if(!this._pdfDocument||pe&&this._pdfDocument!==pe)return;this.#m();const de=!this._highlightMatches,_e=!!this._findTimeout;this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),he?this._dirtyMatch?this.#a():"again"===he?(this.#a(),de&&this._state.highlightAll&&this.#o()):"highlightallchange"===he?(_e?this.#a():this._highlightMatches=!0,this.#o()):this.#a():this._findTimeout=setTimeout(()=>{this.#a(),this._findTimeout=null},250)})}scrollMatchIntoView({element:ue=null,selectedLeft:pe=0,pageIndex:he=-1,matchIndex:de=-1}){this._scrollMatches&&ue&&-1!==de&&de===this._selected.matchIdx&&-1!==he&&he===this._selected.pageIdx&&(this._scrollMatches=!1,(0,D.scrollIntoView)(ue,{top:-50,left:pe+-400},!0))}#t(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this._state=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._pageDiffs=[],this._hasDiacritics=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=new Set,this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=(0,x.createPromiseCapability)()}get#n(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,[this._normalizedQuery]=K(this._state.query)),this._normalizedQuery}#r(ue){if(ue.query!==this._state.query)return!0;switch(ue.type){case"again":const pe=this._selected.pageIdx+1,he=this._linkService;return pe>=1&&pe<=he.pagesCount&&pe!==he.page&&!he.isPageVisible(pe);case"highlightallchange":return!1}return!0}#c(ue,pe,he){let de=ue.slice(0,pe).match(m);if(de){const _e=ue.charCodeAt(pe),Ee=de[1].charCodeAt(0);if((0,E.getCharacterType)(_e)===(0,E.getCharacterType)(Ee))return!1}if(de=ue.slice(pe+he).match(T),de){const _e=ue.charCodeAt(pe+he-1),Ee=de[1].charCodeAt(0);if((0,E.getCharacterType)(_e)===(0,E.getCharacterType)(Ee))return!1}return!0}#l(ue,pe,he,de){const _e=[],Ee=[],Ne=this._pageDiffs[he];let ge;for(;null!==(ge=ue.exec(de));){if(pe&&!this.#c(de,ge.index,ge[0].length))continue;const[q,u]=re(Ne,ge.index,ge[0].length);u&&(_e.push(q),Ee.push(u))}this._pageMatches[he]=_e,this._pageMatchesLength[he]=Ee}#i(ue,pe){const{matchDiacritics:he}=this._state;let de=!1;return(ue=ue.replace(f,(Ee,Ne,ge,q,u,p)=>Ne?`[ ]*\\${Ne}[ ]*`:ge?`[ ]*${ge}[ ]*`:q?"[ ]+":he?u||p:u?$.has(u.charCodeAt(0))?u:"":pe?(de=!0,`${p}\\p{M}*`):p)).endsWith("[ ]*")&&(ue=ue.slice(0,ue.length-4)),he&&pe&&(de=!0,ue=`${ue}(?=[${I}]|[^\\p{M}]|$)`),[de,ue]}#g(ue){let pe=this.#n;if(0===pe.length)return;const{caseSensitive:he,entireWord:de,phraseSearch:_e}=this._state,Ee=this._pageContents[ue],Ne=this._hasDiacritics[ue];let ge=!1;if(_e)[ge,pe]=this.#i(pe,Ne);else{const p=pe.match(/\S+/g);p&&(pe=p.sort().reverse().map(N=>{const[G,R]=this.#i(N,Ne);return ge||=G,`(${R})`}).join("|"))}pe=new RegExp(pe,`g${ge?"u":""}${he?"":"i"}`),this.#l(pe,de,ue,Ee),this._state.highlightAll&&this.#s(ue),this._resumePageIdx===ue&&(this._resumePageIdx=null,this.#h());const u=this._pageMatches[ue].length;u>0&&(this._matchesCountTotal+=u,this.#_())}#m(){if(this._extractTextPromises.length>0)return;let ue=Promise.resolve();for(let pe=0,he=this._linkService.pagesCount;pe<he;pe++){const de=(0,x.createPromiseCapability)();this._extractTextPromises[pe]=de.promise,ue=ue.then(()=>this._pdfDocument.getPage(pe+1).then(_e=>_e.getTextContent()).then(_e=>{const Ee=[];for(const Ne of _e.items)Ee.push(Ne.str),Ne.hasEOL&&Ee.push("\n");[this._pageContents[pe],this._pageDiffs[pe],this._hasDiacritics[pe]]=K(Ee.join("")),de.resolve()},_e=>{console.error(`Unable to get text content for page ${pe+1}`,_e),this._pageContents[pe]="",this._pageDiffs[pe]=null,this._hasDiacritics[pe]=!1,de.resolve()}))}}#s(ue){this._scrollMatches&&this._selected.pageIdx===ue&&(this._linkService.page=ue+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:ue})}#o(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}#a(){const ue=this._state.findPrevious,pe=this._linkService.page-1,he=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=pe,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this._matchesCountTotal=0,this.#o();for(let _e=0;_e<he;_e++)this._pendingFindMatches.has(_e)||(this._pendingFindMatches.add(_e),this._extractTextPromises[_e].then(()=>{this._pendingFindMatches.delete(_e),this.#g(_e)}))}if(""===this.#n)return void this.#p(z.FOUND);if(this._resumePageIdx)return;const de=this._offset;if(this._pagesToSearch=he,null!==de.matchIdx){if(!ue&&de.matchIdx+1<this._pageMatches[de.pageIdx].length||ue&&de.matchIdx>0)return de.matchIdx=ue?de.matchIdx-1:de.matchIdx+1,void this.#u(!0);this.#f(ue)}this.#h()}#d(ue){const pe=this._offset,he=ue.length,de=this._state.findPrevious;return he?(pe.matchIdx=de?he-1:0,this.#u(!0),!0):(this.#f(de),!!(pe.wrapped&&(pe.matchIdx=null,this._pagesToSearch<0))&&(this.#u(!1),!0))}#h(){null!==this._resumePageIdx&&console.error("There can only be one pending page.");let ue=null;do{const pe=this._offset.pageIdx;if(ue=this._pageMatches[pe],!ue){this._resumePageIdx=pe;break}}while(!this.#d(ue))}#f(ue){const pe=this._offset,he=this._linkService.pagesCount;pe.pageIdx=ue?pe.pageIdx-1:pe.pageIdx+1,pe.matchIdx=null,this._pagesToSearch--,(pe.pageIdx>=he||pe.pageIdx<0)&&(pe.pageIdx=ue?he-1:0,pe.wrapped=!0)}#u(ue=!1){let pe=z.NOT_FOUND;const he=this._offset.wrapped;if(this._offset.wrapped=!1,ue){const de=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,pe=he?z.WRAPPED:z.FOUND,-1!==de&&de!==this._selected.pageIdx&&this.#s(de)}this.#p(pe,this._state.findPrevious),-1!==this._selected.pageIdx&&(this._scrollMatches=!0,this.#s(this._selected.pageIdx))}#y(ue){const pe=this._pdfDocument;this._firstPageCapability.promise.then(()=>{!this._pdfDocument||pe&&this._pdfDocument!==pe||(this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),this._resumePageIdx&&(this._resumePageIdx=null,this._dirtyMatch=!0),this.#p(z.FOUND),this._highlightMatches=!1,this.#o())})}#v(){const{pageIdx:ue,matchIdx:pe}=this._selected;let he=0,de=this._matchesCountTotal;if(-1!==pe){for(let _e=0;_e<ue;_e++)he+=this._pageMatches[_e]?.length||0;he+=pe+1}return(he<1||he>de)&&(he=de=0),{current:he,total:de}}#_(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this.#v()})}#p(ue,pe=!1){this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:ue,previous:pe,matchesCount:this.#v(),rawQuery:this._state?.query??null})}}},(Z,h)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.CharacterType=void 0,h.getCharacterType=function g(f){return function D(f){return f<11904}(f)?function x(f){return 0==(65408&f)}(f)?function d(f){return 32===f||9===f||13===f||10===f}(f)?w.SPACE:function E(f){return f>=97&&f<=122||f>=65&&f<=90}(f)||function z(f){return f>=48&&f<=57}(f)||95===f?w.ALPHA_LETTER:w.PUNCT:function I(f){return 3584==(65408&f)}(f)?w.THAI_LETTER:160===f?w.SPACE:w.ALPHA_LETTER:function C(f){return f>=13312&&f<=40959||f>=63744&&f<=64255}(f)?w.HAN_LETTER:function P(f){return f>=12448&&f<=12543}(f)?w.KATAKANA_LETTER:function k(f){return f>=12352&&f<=12447}(f)?w.HIRAGANA_LETTER:function $(f){return f>=65376&&f<=65439}(f)?w.HALFWIDTH_KATAKANA_LETTER:w.ALPHA_LETTER};const w={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};h.CharacterType=w},(Z,h,w)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.PDFHistory=void 0,h.isDestArraysEqual=$,h.isDestHashesEqual=k;var D=w(6),x=w(17);function C(){return document.location.hash}function k(I,g){return"string"==typeof I&&"string"==typeof g&&(I===g||(0,D.parseQueryString)(I).get("nameddest")===g)}function $(I,g){function f(m,T){if(typeof m!=typeof T||Array.isArray(m)||Array.isArray(T))return!1;if(null!==m&&"object"==typeof m&&null!==T){if(Object.keys(m).length!==Object.keys(T).length)return!1;for(const W in m)if(!f(m[W],T[W]))return!1;return!0}return m===T||Number.isNaN(m)&&Number.isNaN(T)}if(!Array.isArray(I)||!Array.isArray(g)||I.length!==g.length)return!1;for(let m=0,T=I.length;m<T;m++)if(!f(I[m],g[m]))return!1;return!0}h.PDFHistory=class P{constructor({linkService:g,eventBus:f}){this.linkService=g,this.eventBus=f,this._initialized=!1,this._fingerprint="",this.reset(),this._boundEvents=null,this.eventBus._on("pagesinit",()=>{this._isPagesLoaded=!1,this.eventBus._on("pagesloaded",m=>{this._isPagesLoaded=!!m.pagesCount},{once:!0})})}initialize({fingerprint:g,resetHistory:f=!1,updateUrl:m=!1}){if(!g||"string"!=typeof g)return void console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.');this._initialized&&this.reset();const T=""!==this._fingerprint&&this._fingerprint!==g;this._fingerprint=g,this._updateUrl=!0===m,this._initialized=!0,this._bindEvents();const W=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=C(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(W,!0)||f){const{hash:re,page:U,rotation:fe}=this._parseCurrentHash(!0);return!re||T||f?void this._pushOrReplaceState(null,!0):void this._pushOrReplaceState({hash:re,page:U,rotation:fe},!0)}const K=W.destination;this._updateInternalState(K,W.uid,!0),void 0!==K.rotation&&(this._initialRotation=K.rotation),K.dest?(this._initialBookmark=JSON.stringify(K.dest),this._destination.page=null):K.hash?this._initialBookmark=K.hash:K.page&&(this._initialBookmark=`page=${K.page}`)}reset(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}push({namedDest:g=null,explicitDest:f,pageNumber:m}){if(!this._initialized)return;if(g&&"string"!=typeof g)return void console.error(`PDFHistory.push: "${g}" is not a valid namedDest parameter.`);if(!Array.isArray(f))return void console.error(`PDFHistory.push: "${f}" is not a valid explicitDest parameter.`);if(!this._isValidPage(m)&&(null!==m||this._destination))return void console.error(`PDFHistory.push: "${m}" is not a valid pageNumber parameter.`);const T=g||JSON.stringify(f);if(!T)return;let W=!1;if(this._destination&&(k(this._destination.hash,T)||$(this._destination.dest,f))){if(this._destination.page)return;W=!0}this._popStateInProgress&&!W||(this._pushOrReplaceState({dest:f,hash:T,page:m,rotation:this.linkService.rotation},W),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1})))}pushPage(g){if(this._initialized){if(!this._isValidPage(g))return void console.error(`PDFHistory.pushPage: "${g}" is not a valid page number.`);this._destination?.page!==g&&(this._popStateInProgress||(this._pushOrReplaceState({dest:null,hash:`page=${g}`,page:g,rotation:this.linkService.rotation}),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1}))))}}pushCurrentPosition(){!this._initialized||this._popStateInProgress||this._tryPushCurrentPosition()}back(){if(!this._initialized||this._popStateInProgress)return;const g=window.history.state;this._isValidState(g)&&g.uid>0&&window.history.back()}forward(){if(!this._initialized||this._popStateInProgress)return;const g=window.history.state;this._isValidState(g)&&g.uid<this._maxUid&&window.history.forward()}get popStateInProgress(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}get initialBookmark(){return this._initialized?this._initialBookmark:null}get initialRotation(){return this._initialized?this._initialRotation:null}_pushOrReplaceState(g,f=!1){const m=f||!this._destination,T={fingerprint:this._fingerprint,uid:m?this._uid:this._uid+1,destination:g};let W;if(this._updateInternalState(g,T.uid),this._updateUrl&&g?.hash){const K=document.location.href.split("#")[0];K.startsWith("file://")||(W=`${K}#${g.hash}`)}m?window.history.replaceState(T,"",W):window.history.pushState(T,"",W)}_tryPushCurrentPosition(g=!1){if(!this._position)return;let f=this._position;if(g&&(f=Object.assign(Object.create(null),this._position),f.temporary=!0),!this._destination)return void this._pushOrReplaceState(f);if(this._destination.temporary)return void this._pushOrReplaceState(f,!0);if(this._destination.hash===f.hash||!this._destination.page&&this._numPositionUpdates<=50)return;let m=!1;if(this._destination.page>=f.first&&this._destination.page<=f.page){if(void 0!==this._destination.dest||!this._destination.first)return;m=!0}this._pushOrReplaceState(f,m)}_isValidPage(g){return Number.isInteger(g)&&g>0&&g<=this.linkService.pagesCount}_isValidState(g,f=!1){if(!g)return!1;if(g.fingerprint!==this._fingerprint){if(!f)return!1;{if("string"!=typeof g.fingerprint||g.fingerprint.length!==this._fingerprint.length)return!1;const[m]=performance.getEntriesByType("navigation");if("reload"!==m?.type)return!1}}return!(!Number.isInteger(g.uid)||g.uid<0||null===g.destination||"object"!=typeof g.destination)}_updateInternalState(g,f,m=!1){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),m&&g?.temporary&&delete g.temporary,this._destination=g,this._uid=f,this._maxUid=Math.max(this._maxUid,f),this._numPositionUpdates=0}_parseCurrentHash(g=!1){const f=unescape(C()).substring(1),m=(0,D.parseQueryString)(f),T=m.get("nameddest")||"";let W=0|m.get("page");return(!this._isValidPage(W)||g&&T.length>0)&&(W=null),{hash:f,page:W,rotation:this.linkService.rotation}}_updateViewarea({location:g}){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:g.pdfOpenParams.substring(1),page:this.linkService.page,first:g.pageNumber,rotation:g.rotation},!this._popStateInProgress&&(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout(()=>{this._popStateInProgress||this._tryPushCurrentPosition(!0),this._updateViewareaTimeout=null},1e3))}_popState({state:g}){const f=C(),m=this._currentHash!==f;if(this._currentHash=f,!g){this._uid++;const{hash:W,page:K,rotation:re}=this._parseCurrentHash();return void this._pushOrReplaceState({hash:W,page:K,rotation:re},!0)}if(!this._isValidState(g))return;this._popStateInProgress=!0,m&&(this._blockHashChange++,(0,x.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:1e3}).then(()=>{this._blockHashChange--}));const T=g.destination;this._updateInternalState(T,g.uid,!0),(0,D.isValidRotation)(T.rotation)&&(this.linkService.rotation=T.rotation),T.dest?this.linkService.goToDestination(T.dest):T.hash?this.linkService.setHash(T.hash):T.page&&(this.linkService.page=T.page),Promise.resolve().then(()=>{this._popStateInProgress=!1})}_pageHide(){(!this._destination||this._destination.temporary)&&this._tryPushCurrentPosition()}_bindEvents(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}_unbindEvents(){this._boundEvents&&(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}}},(Z,h,w)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.PDFScriptingManager=void 0;var D=w(6),x=w(3);h.PDFScriptingManager=class E{constructor({eventBus:d,sandboxBundleSrc:C=null,scriptingFactory:P=null,docPropertiesLookup:k=null}){this._pdfDocument=null,this._pdfViewer=null,this._closeCapability=null,this._destroyCapability=null,this._scripting=null,this._mouseState=Object.create(null),this._ready=!1,this._eventBus=d,this._sandboxBundleSrc=C,this._scriptingFactory=P,this._docPropertiesLookup=k,this._scriptingFactory||window.addEventListener("updatefromsandbox",$=>{this._eventBus.dispatch("updatefromsandbox",{source:window,detail:$.detail})})}setViewer(d){this._pdfViewer=d}setDocument(d){var C=this;return n(function*(){if(C._pdfDocument&&(yield C._destroyScripting()),C._pdfDocument=d,!d)return;const[P,k,$]=yield Promise.all([d.getFieldObjects(),d.getCalculationOrderIds(),d.getJSActions()]);if(P||$){if(d===C._pdfDocument){try{C._scripting=C._createScripting()}catch(I){return console.error(`PDFScriptingManager.setDocument: "${I?.message}".`),void(yield C._destroyScripting())}C._internalEvents.set("updatefromsandbox",I=>{I?.source===window&&C._updateFromSandbox(I.detail)}),C._internalEvents.set("dispatcheventinsandbox",I=>{C._scripting?.dispatchEventInSandbox(I.detail)}),C._internalEvents.set("pagechanging",({pageNumber:I,previous:g})=>{I!==g&&(C._dispatchPageClose(g),C._dispatchPageOpen(I))}),C._internalEvents.set("pagerendered",({pageNumber:I})=>{C._pageOpenPending.has(I)&&I===C._pdfViewer.currentPageNumber&&C._dispatchPageOpen(I)}),C._internalEvents.set("pagesdestroy",function(){var I=n(function*(g){yield C._dispatchPageClose(C._pdfViewer.currentPageNumber),yield C._scripting?.dispatchEventInSandbox({id:"doc",name:"WillClose"}),C._closeCapability?.resolve()});return function(g){return I.apply(this,arguments)}}()),C._domEvents.set("mousedown",I=>{C._mouseState.isDown=!0}),C._domEvents.set("mouseup",I=>{C._mouseState.isDown=!1});for(const[I,g]of C._internalEvents)C._eventBus._on(I,g);for(const[I,g]of C._domEvents)window.addEventListener(I,g,!0);try{const I=yield C._getDocProperties();if(d!==C._pdfDocument)return;yield C._scripting.createSandbox({objects:P,calculationOrder:k,appInfo:{platform:navigator.platform,language:navigator.language},docInfo:{...I,actions:$}}),C._eventBus.dispatch("sandboxcreated",{source:C})}catch(I){return console.error(`PDFScriptingManager.setDocument: "${I?.message}".`),void(yield C._destroyScripting())}yield C._scripting?.dispatchEventInSandbox({id:"doc",name:"Open"}),yield C._dispatchPageOpen(C._pdfViewer.currentPageNumber,!0),Promise.resolve().then(()=>{d===C._pdfDocument&&(C._ready=!0)})}}else yield C._destroyScripting()})()}dispatchWillSave(d){var C=this;return n(function*(){return C._scripting?.dispatchEventInSandbox({id:"doc",name:"WillSave"})})()}dispatchDidSave(d){var C=this;return n(function*(){return C._scripting?.dispatchEventInSandbox({id:"doc",name:"DidSave"})})()}dispatchWillPrint(d){var C=this;return n(function*(){return C._scripting?.dispatchEventInSandbox({id:"doc",name:"WillPrint"})})()}dispatchDidPrint(d){var C=this;return n(function*(){return C._scripting?.dispatchEventInSandbox({id:"doc",name:"DidPrint"})})()}get mouseState(){return this._mouseState}get destroyPromise(){return this._destroyCapability?.promise||null}get ready(){return this._ready}get _internalEvents(){return(0,x.shadow)(this,"_internalEvents",new Map)}get _domEvents(){return(0,x.shadow)(this,"_domEvents",new Map)}get _pageOpenPending(){return(0,x.shadow)(this,"_pageOpenPending",new Set)}get _visitedPages(){return(0,x.shadow)(this,"_visitedPages",new Map)}_updateFromSandbox(d){var C=this;return n(function*(){const P=C._pdfViewer.isInPresentationMode||C._pdfViewer.isChangingPresentationMode,{id:k,siblings:$,command:I,value:g}=d;if(!k){switch(I){case"clear":console.clear();break;case"error":console.error(g);break;case"layout":if(P)return;const m=(0,D.apiPageLayoutToViewerModes)(g);C._pdfViewer.spreadMode=m.spreadMode;break;case"page-num":C._pdfViewer.currentPageNumber=g+1;break;case"print":yield C._pdfViewer.pagesPromise,C._eventBus.dispatch("print",{source:C});break;case"println":console.log(g);break;case"zoom":if(P)return;C._pdfViewer.currentScaleValue=g;break;case"SaveAs":C._eventBus.dispatch("save",{source:C});break;case"FirstPage":C._pdfViewer.currentPageNumber=1;break;case"LastPage":C._pdfViewer.currentPageNumber=C._pdfViewer.pagesCount;break;case"NextPage":C._pdfViewer.nextPage();break;case"PrevPage":C._pdfViewer.previousPage();break;case"ZoomViewIn":if(P)return;C._pdfViewer.increaseScale();break;case"ZoomViewOut":if(P)return;C._pdfViewer.decreaseScale()}return}if(P&&d.focus)return;delete d.id,delete d.siblings;const f=$?[k,...$]:[k];for(const m of f){const T=document.getElementById(m);T?T.dispatchEvent(new CustomEvent("updatefromsandbox",{detail:d})):C._pdfDocument?.annotationStorage.setValue(m,d)}})()}_dispatchPageOpen(d,C=!1){var P=this;return n(function*(){const k=P._pdfDocument,$=P._visitedPages;if(C&&(P._closeCapability=(0,x.createPromiseCapability)()),!P._closeCapability)return;const I=P._pdfViewer.getPageView(d-1);if(I?.renderingState!==D.RenderingStates.FINISHED)return void P._pageOpenPending.add(d);P._pageOpenPending.delete(d);const g=n(function*(){const f=yield $.has(d)?null:I.pdfPage?.getJSActions();k===P._pdfDocument&&(yield P._scripting?.dispatchEventInSandbox({id:"page",name:"PageOpen",pageNumber:d,actions:f}))})();$.set(d,g)})()}_dispatchPageClose(d){var C=this;return n(function*(){const P=C._pdfDocument,k=C._visitedPages;if(!C._closeCapability||C._pageOpenPending.has(d))return;const $=k.get(d);$&&(k.set(d,null),yield $,P===C._pdfDocument&&(yield C._scripting?.dispatchEventInSandbox({id:"page",name:"PageClose",pageNumber:d})))})()}_getDocProperties(){var d=this;return n(function*(){if(d._docPropertiesLookup)return d._docPropertiesLookup(d._pdfDocument);const{docPropertiesLookup:C}=w(24);return C(d._pdfDocument)})()}_createScripting(){if(this._destroyCapability=(0,x.createPromiseCapability)(),this._scripting)throw new Error("_createScripting: Scripting already exists.");if(this._scriptingFactory)return this._scriptingFactory.createScripting({sandboxBundleSrc:this._sandboxBundleSrc});const{GenericScripting:d}=w(24);return new d(this._sandboxBundleSrc)}_destroyScripting(){var d=this;return n(function*(){if(!d._scripting)return d._pdfDocument=null,void d._destroyCapability?.resolve();d._closeCapability&&(yield Promise.race([d._closeCapability.promise,new Promise(C=>{setTimeout(C,1e3)})]).catch(C=>{}),d._closeCapability=null),d._pdfDocument=null;try{yield d._scripting.destroySandbox()}catch{}for(const[C,P]of d._internalEvents)d._eventBus._off(C,P);d._internalEvents.clear();for(const[C,P]of d._domEvents)window.removeEventListener(C,P,!0);d._domEvents.clear(),d._pageOpenPending.clear(),d._visitedPages.clear(),d._scripting=null,delete d._mouseState.isDown,d._ready=!1,d._destroyCapability?.resolve()})()}}},(Z,h,w)=>{Object.defineProperty(h,"__esModule",{value:!0}),h.GenericScripting=void 0,h.docPropertiesLookup=function x(d){return E.apply(this,arguments)};var D=w(3);function E(){return(E=n(function*(d){const P="".split("#")[0];let{info:k,metadata:$,contentDispositionFilename:I,contentLength:g}=yield d.getMetadata();if(!g){const{length:f}=yield d.getDownloadInfo();g=f}return{...k,baseURL:P,filesize:g,filename:I||(0,D.getPdfFilenameFromUrl)(""),metadata:$?.getRaw(),authors:$?.get("dc:creator"),numPages:d.numPages,URL:""}})).apply(this,arguments)}h.GenericScripting=class z{constructor(C){this._ready=(0,D.loadScript)(C,!0).then(()=>window.pdfjsSandbox.QuickJSSandbox())}createSandbox(C){var P=this;return n(function*(){(yield P._ready).create(C)})()}dispatchEventInSandbox(C){var P=this;return n(function*(){const k=yield P._ready;setTimeout(()=>k.dispatchEvent(C),0)})()}destroySandbox(){var C=this;return n(function*(){(yield C._ready).nukeSandbox()})()}}}],a={};function Q(Z){var h=a[Z];if(void 0!==h)return h.exports;var w=a[Z]={exports:{}};return y[Z](w,w.exports,Q),w.exports}var ie={};return(()=>{var Z=ie;Object.defineProperty(Z,"__esModule",{value:!0}),Object.defineProperty(Z,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return E.AnnotationLayerBuilder}}),Object.defineProperty(Z,"DefaultAnnotationLayerFactory",{enumerable:!0,get:function(){return h.DefaultAnnotationLayerFactory}}),Object.defineProperty(Z,"DefaultStructTreeLayerFactory",{enumerable:!0,get:function(){return h.DefaultStructTreeLayerFactory}}),Object.defineProperty(Z,"DefaultTextLayerFactory",{enumerable:!0,get:function(){return h.DefaultTextLayerFactory}}),Object.defineProperty(Z,"DefaultXfaLayerFactory",{enumerable:!0,get:function(){return h.DefaultXfaLayerFactory}}),Object.defineProperty(Z,"DownloadManager",{enumerable:!0,get:function(){return z.DownloadManager}}),Object.defineProperty(Z,"EventBus",{enumerable:!0,get:function(){return d.EventBus}}),Object.defineProperty(Z,"GenericL10n",{enumerable:!0,get:function(){return C.GenericL10n}}),Object.defineProperty(Z,"LinkTarget",{enumerable:!0,get:function(){return w.LinkTarget}}),Object.defineProperty(Z,"NullL10n",{enumerable:!0,get:function(){return P.NullL10n}}),Object.defineProperty(Z,"PDFFindController",{enumerable:!0,get:function(){return k.PDFFindController}}),Object.defineProperty(Z,"PDFHistory",{enumerable:!0,get:function(){return $.PDFHistory}}),Object.defineProperty(Z,"PDFLinkService",{enumerable:!0,get:function(){return w.PDFLinkService}}),Object.defineProperty(Z,"PDFPageView",{enumerable:!0,get:function(){return I.PDFPageView}}),Object.defineProperty(Z,"PDFScriptingManager",{enumerable:!0,get:function(){return g.PDFScriptingManager}}),Object.defineProperty(Z,"PDFSinglePageViewer",{enumerable:!0,get:function(){return x.PDFSinglePageViewer}}),Object.defineProperty(Z,"PDFViewer",{enumerable:!0,get:function(){return x.PDFViewer}}),Object.defineProperty(Z,"ProgressBar",{enumerable:!0,get:function(){return D.ProgressBar}}),Object.defineProperty(Z,"SimpleLinkService",{enumerable:!0,get:function(){return w.SimpleLinkService}}),Object.defineProperty(Z,"StructTreeLayerBuilder",{enumerable:!0,get:function(){return f.StructTreeLayerBuilder}}),Object.defineProperty(Z,"TextLayerBuilder",{enumerable:!0,get:function(){return m.TextLayerBuilder}}),Object.defineProperty(Z,"XfaLayerBuilder",{enumerable:!0,get:function(){return T.XfaLayerBuilder}}),Object.defineProperty(Z,"parseQueryString",{enumerable:!0,get:function(){return D.parseQueryString}});var h=Q(1),w=Q(5),D=Q(6),x=Q(10),E=Q(2),z=Q(16),d=Q(17),C=Q(18),P=Q(4),k=Q(20),$=Q(22),I=Q(12),g=Q(23),f=Q(7),m=Q(8),T=Q(9)})(),ie})(),He.exports=Q()},44337:(He,L)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.LogLevel=void 0;var o=function(y){return y[y.None=0]="None",y[y.Fatal=1]="Fatal",y[y.Error=2]="Error",y[y.Warn=3]="Warn",y[y.Info=4]="Info",y[y.Debug=5]="Debug",y[y.Verbose=6]="Verbose",y}(o||(L.LogLevel=o={})),n=function(){function y(){}return y.prototype.setLogLevel=function(a){window.cordova.exec(function(){},function(){},"OneSignalPush","setLogLevel",[a])},y.prototype.setAlertLevel=function(a){window.cordova.exec(function(){},function(){},"OneSignalPush","setAlertLevel",[a])},y}();L.default=n},61994:(He,L)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var o=function(){function n(){this._inAppMessageClickListeners=[],this._willDisplayInAppMessageListeners=[],this._didDisplayInAppMessageListeners=[],this._willDismissInAppMessageListeners=[],this._didDismissInAppMessageListeners=[]}return n.prototype._processFunctionList=function(y,a){for(var Q=0;Q<y.length;Q++)y[Q](a)},n.prototype.addEventListener=function(y,a){var Q=this;if("click"===y)this._inAppMessageClickListeners.push(a),window.cordova.exec(function(x){Q._processFunctionList(Q._inAppMessageClickListeners,x)},function(){},"OneSignalPush","setInAppMessageClickHandler",[]);else if("willDisplay"===y)this._willDisplayInAppMessageListeners.push(a),window.cordova.exec(function(x){Q._processFunctionList(Q._willDisplayInAppMessageListeners,x)},function(){},"OneSignalPush","setOnWillDisplayInAppMessageHandler",[]);else if("didDisplay"===y)this._didDisplayInAppMessageListeners.push(a),window.cordova.exec(function(x){Q._processFunctionList(Q._didDisplayInAppMessageListeners,x)},function(){},"OneSignalPush","setOnDidDisplayInAppMessageHandler",[]);else if("willDismiss"===y)this._willDismissInAppMessageListeners.push(a),window.cordova.exec(function(x){Q._processFunctionList(Q._willDismissInAppMessageListeners,x)},function(){},"OneSignalPush","setOnWillDismissInAppMessageHandler",[]);else{if("didDismiss"!==y)return;this._didDismissInAppMessageListeners.push(a),window.cordova.exec(function(x){Q._processFunctionList(Q._didDismissInAppMessageListeners,x)},function(){},"OneSignalPush","setOnDidDismissInAppMessageHandler",[])}},n.prototype.removeEventListener=function(y,a){if("click"===y)-1!==(Q=this._inAppMessageClickListeners.indexOf(a))&&this._inAppMessageClickListeners.splice(Q,1);else if("willDisplay"===y)-1!==(Q=this._willDisplayInAppMessageListeners.indexOf(a))&&this._willDisplayInAppMessageListeners.splice(Q,1);else if("didDisplay"===y)-1!==(Q=this._didDisplayInAppMessageListeners.indexOf(a))&&this._willDisplayInAppMessageListeners.splice(Q,1);else if("willDismiss"===y)-1!==(Q=this._willDismissInAppMessageListeners.indexOf(a))&&this._willDismissInAppMessageListeners.splice(Q,1);else{if("didDismiss"!==y)return;var Q;-1!==(Q=this._didDismissInAppMessageListeners.indexOf(a))&&this._didDismissInAppMessageListeners.splice(Q,1)}},n.prototype.addTrigger=function(y,a){var Q,ie=((Q={})[y]=a,Q);this.addTriggers(ie)},n.prototype.addTriggers=function(y){Object.keys(y).forEach(function(a){"string"!=typeof y[a]&&(y[a]=JSON.stringify(y[a]))}),window.cordova.exec(function(){},function(){},"OneSignalPush","addTriggers",[y])},n.prototype.removeTrigger=function(y){this.removeTriggers([y])},n.prototype.removeTriggers=function(y){Array.isArray(y)||console.error("OneSignal: removeTriggers: argument must be of type Array"),window.cordova.exec(function(){},function(){},"OneSignalPush","removeTriggers",[y])},n.prototype.clearTriggers=function(){window.cordova.exec(function(){},function(){},"OneSignalPush","clearTriggers")},n.prototype.setPaused=function(y){window.cordova.exec(function(){},function(){},"OneSignalPush","setPaused",[y])},n.prototype.getPaused=function(){return new Promise(function(y,a){window.cordova.exec(y,a,"OneSignalPush","isPaused",[])})},n}();L.default=o},48321:(He,L)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var o=function(){function n(){}return n.prototype.enter=function(y,a,Q,ie){null==Q&&(Q=function(){}),null==ie&&(ie=function(){}),window.cordova.exec(Q,ie,"OneSignalPush","enterLiveActivity",[y,a])},n.prototype.exit=function(y,a,Q){null==a&&(a=function(){}),null==Q&&(Q=function(){}),window.cordova.exec(a,Q,"OneSignalPush","exitLiveActivity",[y])},n.prototype.setPushToStartToken=function(y,a){window.cordova.exec(function(){},function(){},"OneSignalPush","setPushToStartToken",[y,a])},n.prototype.removePushToStartToken=function(y){window.cordova.exec(function(){},function(){},"OneSignalPush","removePushToStartToken",[y])},n.prototype.setupDefault=function(y){window.cordova.exec(function(){},function(){},"OneSignalPush","setupDefaultLiveActivity",[y])},n.prototype.startDefault=function(y,a,Q){window.cordova.exec(function(){},function(){},"OneSignalPush","startDefaultLiveActivity",[y,a,Q])},n}();L.default=o},6033:(He,L)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var o=function(){function n(){}return n.prototype.requestPermission=function(){window.cordova.exec(function(){},function(){},"OneSignalPush","requestLocationPermission",[])},n.prototype.setShared=function(y){window.cordova.exec(function(){},function(){},"OneSignalPush","setLocationShared",[y])},n.prototype.isShared=function(){return new Promise(function(y,a){window.cordova.exec(y,a,"OneSignalPush","isLocationShared",[])})},n}();L.default=o},71163:(He,L,o)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.NotificationWillDisplayEvent=void 0;var n=o(99718),y=function(){function a(Q){this.notification=new n.OSNotification(Q)}return a.prototype.preventDefault=function(){window.cordova.exec(function(){},function(){},"OneSignalPush","preventDefault",[this.notification.notificationId])},a.prototype.getNotification=function(){return this.notification},a}();L.NotificationWillDisplayEvent=y},81380:function(He,L,o){"use strict";var n=this&&this.__awaiter||function(Z,h,w,D){return new(w||(w=Promise))(function(E,z){function d(k){try{P(D.next(k))}catch($){z($)}}function C(k){try{P(D.throw(k))}catch($){z($)}}function P(k){k.done?E(k.value):function x(E){return E instanceof w?E:new w(function(z){z(E)})}(k.value).then(d,C)}P((D=D.apply(Z,h||[])).next())})},y=this&&this.__generator||function(Z,h){var D,x,E,z,w={label:0,sent:function(){if(1&E[0])throw E[1];return E[1]},trys:[],ops:[]};return z={next:d(0),throw:d(1),return:d(2)},"function"==typeof Symbol&&(z[Symbol.iterator]=function(){return this}),z;function d(P){return function(k){return function C(P){if(D)throw new TypeError("Generator is already executing.");for(;z&&(z=0,P[0]&&(w=0)),w;)try{if(D=1,x&&(E=2&P[0]?x.return:P[0]?x.throw||((E=x.return)&&E.call(x),0):x.next)&&!(E=E.call(x,P[1])).done)return E;switch(x=0,E&&(P=[2&P[0],E.value]),P[0]){case 0:case 1:E=P;break;case 4:return w.label++,{value:P[1],done:!1};case 5:w.label++,x=P[1],P=[0];continue;case 7:P=w.ops.pop(),w.trys.pop();continue;default:if(!(E=(E=w.trys).length>0&&E[E.length-1])&&(6===P[0]||2===P[0])){w=0;continue}if(3===P[0]&&(!E||P[1]>E[0]&&P[1]<E[3])){w.label=P[1];break}if(6===P[0]&&w.label<E[1]){w.label=E[1],E=P;break}if(E&&w.label<E[2]){w.label=E[2],w.ops.push(P);break}E[2]&&w.ops.pop(),w.trys.pop();continue}P=h.call(Z,w)}catch(k){P=[6,k],x=0}finally{D=E=0}if(5&P[0])throw P[1];return{value:P[0]?P[1]:void 0,done:!0}}([P,k])}}};Object.defineProperty(L,"__esModule",{value:!0}),L.OSNotificationPermission=void 0;var a=o(71163),Q=function(Z){return Z[Z.NotDetermined=0]="NotDetermined",Z[Z.Denied=1]="Denied",Z[Z.Authorized=2]="Authorized",Z[Z.Provisional=3]="Provisional",Z[Z.Ephemeral=4]="Ephemeral",Z}(Q||(L.OSNotificationPermission=Q={})),ie=function(){function Z(){this._permissionObserverList=[],this._notificationClickedListeners=[],this._notificationWillDisplayListeners=[]}return Z.prototype._processFunctionList=function(h,w){for(var D=0;D<h.length;D++)h[D](w)},Z.prototype._setPropertyAndObserver=function(){var h=this;window.cordova.exec(function(D){h._permission=D},function(){},"OneSignalPush","getPermissionInternal"),this.addEventListener("permissionChange",function(D){h._permission=D})},Z.prototype.hasPermission=function(){return this._permission||!1},Z.prototype.getPermissionAsync=function(){return n(this,void 0,void 0,function(){return y(this,function(h){return[2,new Promise(function(w,D){window.cordova.exec(w,D,"OneSignalPush","getPermissionInternal")})]})})},Z.prototype.permissionNative=function(){return new Promise(function(h,w){window.cordova.exec(h,w,"OneSignalPush","permissionNative",[])})},Z.prototype.requestPermission=function(h){var w=h??!1;return new Promise(function(D,x){window.cordova.exec(D,x,"OneSignalPush","requestPermission",[w])})},Z.prototype.canRequestPermission=function(){return new Promise(function(h,w){window.cordova.exec(h,w,"OneSignalPush","canRequestPermission",[])})},Z.prototype.registerForProvisionalAuthorization=function(h){window.cordova.exec(h,function(){},"OneSignalPush","registerForProvisionalAuthorization",[])},Z.prototype.addEventListener=function(h,w){var D=this;if("click"===h)this._notificationClickedListeners.push(w),window.cordova.exec(function(d){D._processFunctionList(D._notificationClickedListeners,d)},function(){},"OneSignalPush","addNotificationClickListener",[]);else if("foregroundWillDisplay"===h)this._notificationWillDisplayListeners.push(w),window.cordova.exec(function(d){D._notificationWillDisplayListeners.forEach(function(C){C(new a.NotificationWillDisplayEvent(d))}),window.cordova.exec(function(){},function(){},"OneSignalPush","proceedWithWillDisplay",[d.notificationId])},function(){},"OneSignalPush","addForegroundLifecycleListener",[]);else{if("permissionChange"!==h)return;this._permissionObserverList.push(w),window.cordova.exec(function(d){D._processFunctionList(D._permissionObserverList,d)},function(){},"OneSignalPush","addPermissionObserver",[])}},Z.prototype.removeEventListener=function(h,w){if("click"===h)-1!==(D=this._notificationClickedListeners.indexOf(w))&&this._notificationClickedListeners.splice(D,1);else if("foregroundWillDisplay"===h)-1!==(D=this._notificationWillDisplayListeners.indexOf(w))&&this._notificationWillDisplayListeners.splice(D,1);else{if("permissionChange"!==h)return;var D;-1!==(D=this._permissionObserverList.indexOf(w))&&this._permissionObserverList.splice(D,1)}},Z.prototype.clearAll=function(){window.cordova.exec(function(){},function(){},"OneSignalPush","clearAllNotifications",[])},Z.prototype.removeNotification=function(h){window.cordova.exec(function(){},function(){},"OneSignalPush","removeNotification",[h])},Z.prototype.removeGroupedNotifications=function(h){window.cordova.exec(function(){},function(){},"OneSignalPush","removeGroupedNotifications",[h])},Z}();L.default=ie},99718:(He,L)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.OSNotification=void 0;var o=function(){function n(y){this.notificationId=y.notificationId,this.body=y.body,this.title=y.title,this.additionalData=y.additionalData,this.rawPayload="string"==typeof y.rawPayload?JSON.parse(y.rawPayload):y.rawPayload,this.launchURL=y.launchURL,this.sound=y.sound,y.actionButtons&&(this.actionButtons=y.actionButtons),y.groupKey&&(this.groupKey=y.groupKey),y.ledColor&&(this.ledColor=y.ledColor),typeof y.priority<"u"&&(this.priority=y.priority),y.smallIcon&&(this.smallIcon=y.smallIcon),y.largeIcon&&(this.largeIcon=y.largeIcon),y.bigPicture&&(this.bigPicture=y.bigPicture),y.collapseId&&(this.collapseId=y.collapseId),y.groupMessage&&(this.groupMessage=y.groupMessage),y.fromProjectNumber&&(this.fromProjectNumber=y.fromProjectNumber),y.smallIconAccentColor&&(this.smallIconAccentColor=y.smallIconAccentColor),y.lockScreenVisibility&&(this.lockScreenVisibility=y.lockScreenVisibility),y.androidNotificationId&&(this.androidNotificationId=y.androidNotificationId),y.groupedNotifications&&y.groupedNotifications.length&&(this.groupedNotifications=y.groupedNotifications),y.badge&&(this.badge=y.badge),y.category&&(this.category=y.category),y.threadId&&(this.threadId=y.threadId),y.subtitle&&(this.subtitle=y.subtitle),y.templateId&&(this.templateId=y.templateId),y.attachments&&(this.attachments=y.attachments),y.templateName&&(this.templateName=y.templateName),y.mutableContent&&(this.mutableContent=y.mutableContent),y.badgeIncrement&&(this.badgeIncrement=y.badgeIncrement),y.contentAvailable&&(this.contentAvailable=y.contentAvailable),y.relevanceScore&&(this.relevanceScore=y.relevanceScore),y.interruptionLevel&&(this.interruptionLevel=y.interruptionLevel)}return n.prototype.display=function(){window.cordova.exec(function(){},function(){},"OneSignalPush","displayNotification",[this.notificationId])},n}();L.OSNotification=o},17147:(He,L)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var o=function(){function n(){this._subscriptionObserverList=[]}return n.prototype._processFunctionList=function(y,a){for(var Q=0;Q<y.length;Q++)y[Q](a)},n.prototype._setPropertiesAndObserver=function(){var y=this;window.cordova.exec(function(Z){y._id=Z},function(){},"OneSignalPush","getPushSubscriptionId"),window.cordova.exec(function(Z){y._token=Z},function(){},"OneSignalPush","getPushSubscriptionToken"),window.cordova.exec(function(Z){y._optedIn=Z},function(){},"OneSignalPush","getPushSubscriptionOptedIn"),this.addEventListener("change",function(Z){y._id=Z.current.id,y._token=Z.current.token,y._optedIn=Z.current.optedIn})},Object.defineProperty(n.prototype,"id",{get:function(){return console.warn("OneSignal: This method has been deprecated. Use getIdAsync instead for getting push subscription id."),this._id},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"token",{get:function(){return console.warn("OneSignal: This method has been deprecated. Use getTokenAsync instead for getting push subscription token."),this._token},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"optedIn",{get:function(){return console.warn("OneSignal: This method has been deprecated. Use getOptedInAsync instead for getting push subscription opted in status."),this._optedIn||!1},enumerable:!1,configurable:!0}),n.prototype.getIdAsync=function(){return new Promise(function(y,a){window.cordova.exec(y,a,"OneSignalPush","getPushSubscriptionId")})},n.prototype.getTokenAsync=function(){return new Promise(function(y,a){window.cordova.exec(y,a,"OneSignalPush","getPushSubscriptionToken")})},n.prototype.getOptedInAsync=function(){return new Promise(function(y,a){window.cordova.exec(y,a,"OneSignalPush","getPushSubscriptionOptedIn")})},n.prototype.addEventListener=function(y,a){var Q=this;this._subscriptionObserverList.push(a),window.cordova.exec(function(Z){Q._processFunctionList(Q._subscriptionObserverList,Z)},function(){},"OneSignalPush","addPushSubscriptionObserver",[])},n.prototype.removeEventListener=function(y,a){var Q=this._subscriptionObserverList.indexOf(a);-1!==Q&&this._subscriptionObserverList.splice(Q,1)},n.prototype.optIn=function(){window.cordova.exec(function(){},function(){},"OneSignalPush","optInPushSubscription")},n.prototype.optOut=function(){window.cordova.exec(function(){},function(){},"OneSignalPush","optOutPushSubscription")},n}();L.default=o},88860:(He,L)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var o=function(){function n(){}return n.prototype.addOutcome=function(y){window.cordova.exec(function(){},function(){},"OneSignalPush","addOutcome",[y])},n.prototype.addUniqueOutcome=function(y){window.cordova.exec(function(){},function(){},"OneSignalPush","addUniqueOutcome",[y])},n.prototype.addOutcomeWithValue=function(y,a){window.cordova.exec(function(){},function(){},"OneSignalPush","addOutcomeWithValue",[y,a])},n}();L.default=o},84541:function(He,L,o){"use strict";var n=this&&this.__awaiter||function(Z,h,w,D){return new(w||(w=Promise))(function(E,z){function d(k){try{P(D.next(k))}catch($){z($)}}function C(k){try{P(D.throw(k))}catch($){z($)}}function P(k){k.done?E(k.value):function x(E){return E instanceof w?E:new w(function(z){z(E)})}(k.value).then(d,C)}P((D=D.apply(Z,h||[])).next())})},y=this&&this.__generator||function(Z,h){var D,x,E,z,w={label:0,sent:function(){if(1&E[0])throw E[1];return E[1]},trys:[],ops:[]};return z={next:d(0),throw:d(1),return:d(2)},"function"==typeof Symbol&&(z[Symbol.iterator]=function(){return this}),z;function d(P){return function(k){return function C(P){if(D)throw new TypeError("Generator is already executing.");for(;z&&(z=0,P[0]&&(w=0)),w;)try{if(D=1,x&&(E=2&P[0]?x.return:P[0]?x.throw||((E=x.return)&&E.call(x),0):x.next)&&!(E=E.call(x,P[1])).done)return E;switch(x=0,E&&(P=[2&P[0],E.value]),P[0]){case 0:case 1:E=P;break;case 4:return w.label++,{value:P[1],done:!1};case 5:w.label++,x=P[1],P=[0];continue;case 7:P=w.ops.pop(),w.trys.pop();continue;default:if(!(E=(E=w.trys).length>0&&E[E.length-1])&&(6===P[0]||2===P[0])){w=0;continue}if(3===P[0]&&(!E||P[1]>E[0]&&P[1]<E[3])){w.label=P[1];break}if(6===P[0]&&w.label<E[1]){w.label=E[1],E=P;break}if(E&&w.label<E[2]){w.label=E[2],w.ops.push(P);break}E[2]&&w.ops.pop(),w.trys.pop();continue}P=h.call(Z,w)}catch(k){P=[6,k],x=0}finally{D=E=0}if(5&P[0])throw P[1];return{value:P[0]?P[1]:void 0,done:!0}}([P,k])}}},a=this&&this.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(L,"__esModule",{value:!0});var Q=a(o(17147)),ie=function(){function Z(){this.pushSubscription=new Q.default,this._userStateObserverList=[]}return Z.prototype._processFunctionList=function(h,w){for(var D=0;D<h.length;D++)h[D](w)},Z.prototype.setLanguage=function(h){window.cordova.exec(function(){},function(){},"OneSignalPush","setLanguage",[h])},Z.prototype.addAlias=function(h,w){var D,x=((D={})[h]=w,D);window.cordova.exec(function(){},function(){},"OneSignalPush","addAliases",[x])},Z.prototype.addAliases=function(h){window.cordova.exec(function(){},function(){},"OneSignalPush","addAliases",[h])},Z.prototype.removeAlias=function(h){window.cordova.exec(function(){},function(){},"OneSignalPush","removeAliases",[h])},Z.prototype.removeAliases=function(h){window.cordova.exec(function(){},function(){},"OneSignalPush","removeAliases",h)},Z.prototype.addEmail=function(h){window.cordova.exec(function(){},function(){},"OneSignalPush","addEmail",[h])},Z.prototype.removeEmail=function(h){window.cordova.exec(function(){},function(){},"OneSignalPush","removeEmail",[h])},Z.prototype.addSms=function(h){window.cordova.exec(function(){},function(){},"OneSignalPush","addSms",[h])},Z.prototype.removeSms=function(h){window.cordova.exec(function(){},function(){},"OneSignalPush","removeSms",[h])},Z.prototype.addTag=function(h,w){var D,x=((D={})[h]=w,D);window.cordova.exec(function(){},function(){},"OneSignalPush","addTags",[x])},Z.prototype.addTags=function(h){var w=h;Object.keys(h).forEach(function(D){"string"!=typeof w[D]&&(w[D]=JSON.stringify(w[D]))}),window.cordova.exec(function(){},function(){},"OneSignalPush","addTags",[w])},Z.prototype.removeTag=function(h){window.cordova.exec(function(){},function(){},"OneSignalPush","removeTags",[h])},Z.prototype.removeTags=function(h){window.cordova.exec(function(){},function(){},"OneSignalPush","removeTags",h)},Z.prototype.getTags=function(){return new Promise(function(h,w){window.cordova.exec(h,w,"OneSignalPush","getTags",[])})},Z.prototype.addEventListener=function(h,w){var D=this;this._userStateObserverList.push(w),window.cordova.exec(function(E){D._processFunctionList(D._userStateObserverList,E)},function(){},"OneSignalPush","addUserStateObserver",[])},Z.prototype.removeEventListener=function(h,w){var D=this._userStateObserverList.indexOf(w);-1!==D&&this._userStateObserverList.splice(D,1)},Z.prototype.getOnesignalId=function(){return n(this,void 0,void 0,function(){return y(this,function(h){return[2,new Promise(function(w,D){window.cordova.exec(w,D,"OneSignalPush","getOnesignalId",[])})]})})},Z.prototype.getExternalId=function(){return n(this,void 0,void 0,function(){return y(this,function(h){return[2,new Promise(function(w,D){window.cordova.exec(w,D,"OneSignalPush","getExternalId",[])})]})})},Z}();L.default=ie},22871:function(He,L,o){"use strict";var n=this&&this.__importDefault||function(P){return P&&P.__esModule?P:{default:P}};Object.defineProperty(L,"__esModule",{value:!0}),L.NotificationWillDisplayEvent=L.OSNotificationPermission=L.OSNotification=L.LogLevel=L.OneSignalPlugin=void 0;var y=n(o(84541)),a=n(o(44337)),Q=n(o(88860)),ie=n(o(6033)),Z=n(o(61994)),h=n(o(81380)),w=n(o(48321)),D=function(){function P(){this.User=new y.default,this.Debug=new a.default,this.Session=new Q.default,this.Location=new ie.default,this.InAppMessages=new Z.default,this.Notifications=new h.default,this.LiveActivities=new w.default,this._appID=""}return P.prototype.initialize=function(k){var $=this;this._appID=k,window.cordova.exec(function(){$.User.pushSubscription._setPropertiesAndObserver(),$.Notifications._setPropertyAndObserver()},function(){},"OneSignalPush","init",[this._appID])},P.prototype.login=function(k){window.cordova.exec(function(){},function(){},"OneSignalPush","login",[k])},P.prototype.logout=function(){window.cordova.exec(function(){},function(){},"OneSignalPush","logout")},P.prototype.setConsentRequired=function(k){window.cordova.exec(function(){},function(){},"OneSignalPush","setPrivacyConsentRequired",[k])},P.prototype.setConsentGiven=function(k){window.cordova.exec(function(){},function(){},"OneSignalPush","setPrivacyConsentGiven",[k])},P}();L.OneSignalPlugin=D;var x=new D;window.plugins||(window.plugins={}),window.plugins.OneSignal||(window.plugins.OneSignal=x);var E=o(44337);Object.defineProperty(L,"LogLevel",{enumerable:!0,get:function(){return E.LogLevel}});var z=o(99718);Object.defineProperty(L,"OSNotification",{enumerable:!0,get:function(){return z.OSNotification}});var d=o(81380);Object.defineProperty(L,"OSNotificationPermission",{enumerable:!0,get:function(){return d.OSNotificationPermission}});var C=o(71163);Object.defineProperty(L,"NotificationWillDisplayEvent",{enumerable:!0,get:function(){return C.NotificationWillDisplayEvent}}),L.default=x},95981:(He,L,o)=>{"use strict";o.d(L,{t:()=>y});var n=o(16104);class y extends n.B{constructor(Q){super(),this._value=Q}get value(){return this.getValue()}_subscribe(Q){const ie=super._subscribe(Q);return!ie.closed&&Q.next(this._value),ie}getValue(){const{hasError:Q,thrownError:ie,_value:Z}=this;if(Q)throw ie;return this._throwIfClosed(),Z}next(Q){super.next(this._value=Q)}}},99406:(He,L,o)=>{"use strict";o.d(L,{c:()=>w});var n=o(44500),y=o(42029),a=o(1479),Q=o(46106),ie=o(42493),Z=o(54418),h=o(52895);let w=(()=>{class z{constructor(C){C&&(this._subscribe=C)}lift(C){const P=new z;return P.source=this,P.operator=C,P}subscribe(C,P,k){const $=function E(z){return z&&z instanceof n.vU||function x(z){return z&&(0,Z.T)(z.next)&&(0,Z.T)(z.error)&&(0,Z.T)(z.complete)}(z)&&(0,y.Uv)(z)}(C)?C:new n.Ms(C,P,k);return(0,h.Y)(()=>{const{operator:I,source:g}=this;$.add(I?I.call($,g):g?this._subscribe($):this._trySubscribe($))}),$}_trySubscribe(C){try{return this._subscribe(C)}catch(P){C.error(P)}}forEach(C,P){return new(P=D(P))((k,$)=>{const I=new n.Ms({next:g=>{try{C(g)}catch(f){$(f),I.unsubscribe()}},error:$,complete:k});this.subscribe(I)})}_subscribe(C){var P;return null===(P=this.source)||void 0===P?void 0:P.subscribe(C)}[a.s](){return this}pipe(...C){return(0,Q.m)(C)(this)}toPromise(C){return new(C=D(C))((P,k)=>{let $;this.subscribe(I=>$=I,I=>k(I),()=>P($))})}}return z.create=d=>new z(d),z})();function D(z){var d;return null!==(d=z??ie.$.Promise)&&void 0!==d?d:Promise}},16104:(He,L,o)=>{"use strict";o.d(L,{B:()=>h});var n=o(99406),y=o(42029);const Q=(0,o(4520).L)(D=>function(){D(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ie=o(79583),Z=o(52895);let h=(()=>{class D extends n.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(E){const z=new w(this,this);return z.operator=E,z}_throwIfClosed(){if(this.closed)throw new Q}next(E){(0,Z.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const z of this.currentObservers)z.next(E)}})}error(E){(0,Z.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=E;const{observers:z}=this;for(;z.length;)z.shift().error(E)}})}complete(){(0,Z.Y)(()=>{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:z,isStopped:d,observers:C}=this;return z||d?y.Kn:(this.currentObservers=null,C.push(E),new y.yU(()=>{this.currentObservers=null,(0,ie.o)(C,E)}))}_checkFinalizedStatuses(E){const{hasError:z,thrownError:d,isStopped:C}=this;z?E.error(d):C&&E.complete()}asObservable(){const E=new n.c;return E.source=this,E}}return D.create=(x,E)=>new w(x,E),D})();class w extends h{constructor(x,E){super(),this.destination=x,this.source=E}next(x){var E,z;null===(z=null===(E=this.destination)||void 0===E?void 0:E.next)||void 0===z||z.call(E,x)}error(x){var E,z;null===(z=null===(E=this.destination)||void 0===E?void 0:E.error)||void 0===z||z.call(E,x)}complete(){var x,E;null===(E=null===(x=this.destination)||void 0===x?void 0:x.complete)||void 0===E||E.call(x)}_subscribe(x){var E,z;return null!==(z=null===(E=this.source)||void 0===E?void 0:E.subscribe(x))&&void 0!==z?z:y.Kn}}},44500:(He,L,o)=>{"use strict";o.d(L,{Ms:()=>k,vU:()=>z});var n=o(54418),y=o(42029),a=o(42493),Q=o(76379),ie=o(20262);const Z=D("C",void 0,void 0);function D(m,T,W){return{kind:m,value:T,error:W}}var x=o(76171),E=o(52895);class z extends y.yU{constructor(T){super(),this.isStopped=!1,T?(this.destination=T,(0,y.Uv)(T)&&T.add(this)):this.destination=f}static create(T,W,K){return new k(T,W,K)}next(T){this.isStopped?g(function w(m){return D("N",m,void 0)}(T),this):this._next(T)}error(T){this.isStopped?g(function h(m){return D("E",void 0,m)}(T),this):(this.isStopped=!0,this._error(T))}complete(){this.isStopped?g(Z,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(T){this.destination.next(T)}_error(T){try{this.destination.error(T)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const d=Function.prototype.bind;function C(m,T){return d.call(m,T)}class P{constructor(T){this.partialObserver=T}next(T){const{partialObserver:W}=this;if(W.next)try{W.next(T)}catch(K){$(K)}}error(T){const{partialObserver:W}=this;if(W.error)try{W.error(T)}catch(K){$(K)}else $(T)}complete(){const{partialObserver:T}=this;if(T.complete)try{T.complete()}catch(W){$(W)}}}class k extends z{constructor(T,W,K){let re;if(super(),(0,n.T)(T)||!T)re={next:T??void 0,error:W??void 0,complete:K??void 0};else{let U;this&&a.$.useDeprecatedNextContext?(U=Object.create(T),U.unsubscribe=()=>this.unsubscribe(),re={next:T.next&&C(T.next,U),error:T.error&&C(T.error,U),complete:T.complete&&C(T.complete,U)}):re=T}this.destination=new P(re)}}function $(m){a.$.useDeprecatedSynchronousErrorHandling?(0,E.l)(m):(0,Q.m)(m)}function g(m,T){const{onStoppedNotification:W}=a.$;W&&x.f.setTimeout(()=>W(m,T))}const f={closed:!0,next:ie.l,error:function I(m){throw m},complete:ie.l}},42029:(He,L,o)=>{"use strict";o.d(L,{Kn:()=>Z,yU:()=>ie,Uv:()=>h});var n=o(54418);const a=(0,o(4520).L)(D=>function(E){D(this),this.message=E?`${E.length} errors occurred during unsubscription:\n${E.map((z,d)=>`${d+1}) ${z.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=E});var Q=o(79583);class ie{constructor(x){this.initialTeardown=x,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let x;if(!this.closed){this.closed=!0;const{_parentage:E}=this;if(E)if(this._parentage=null,Array.isArray(E))for(const C of E)C.remove(this);else E.remove(this);const{initialTeardown:z}=this;if((0,n.T)(z))try{z()}catch(C){x=C instanceof a?C.errors:[C]}const{_finalizers:d}=this;if(d){this._finalizers=null;for(const C of d)try{w(C)}catch(P){x=x??[],P instanceof a?x=[...x,...P.errors]:x.push(P)}}if(x)throw new a(x)}}add(x){var E;if(x&&x!==this)if(this.closed)w(x);else{if(x instanceof ie){if(x.closed||x._hasParent(this))return;x._addParent(this)}(this._finalizers=null!==(E=this._finalizers)&&void 0!==E?E:[]).push(x)}}_hasParent(x){const{_parentage:E}=this;return E===x||Array.isArray(E)&&E.includes(x)}_addParent(x){const{_parentage:E}=this;this._parentage=Array.isArray(E)?(E.push(x),E):E?[E,x]:x}_removeParent(x){const{_parentage:E}=this;E===x?this._parentage=null:Array.isArray(E)&&(0,Q.o)(E,x)}remove(x){const{_finalizers:E}=this;E&&(0,Q.o)(E,x),x instanceof ie&&x._removeParent(this)}}ie.EMPTY=(()=>{const D=new ie;return D.closed=!0,D})();const Z=ie.EMPTY;function h(D){return D instanceof ie||D&&"closed"in D&&(0,n.T)(D.remove)&&(0,n.T)(D.add)&&(0,n.T)(D.unsubscribe)}function w(D){(0,n.T)(D)?D():D.unsubscribe()}},42493:(He,L,o)=>{"use strict";o.d(L,{$:()=>n});const n={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},29086:(He,L,o)=>{"use strict";o.d(L,{G:()=>Z});var n=o(99406),y=o(42029),a=o(79841),Q=o(96111),ie=o(9867);class Z extends n.c{constructor(w,D){super(),this.source=w,this.subjectFactory=D,this._subject=null,this._refCount=0,this._connection=null,(0,ie.S)(w)&&(this.lift=w.lift)}_subscribe(w){return this.getSubject().subscribe(w)}getSubject(){const w=this._subject;return(!w||w.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:w}=this;this._subject=this._connection=null,w?.unsubscribe()}connect(){let w=this._connection;if(!w){w=this._connection=new y.yU;const D=this.getSubject();w.add(this.source.subscribe((0,Q._)(D,void 0,()=>{this._teardown(),D.complete()},x=>{this._teardown(),D.error(x)},()=>this._teardown()))),w.closed&&(this._connection=null,w=y.yU.EMPTY)}return w}refCount(){return(0,a.B)()(this)}}},199:(He,L,o)=>{"use strict";o.d(L,{z:()=>x});var n=o(99406),y=o(6872),a=o(38399),Q=o(19656),ie=o(86219),Z=o(2363),h=o(16405),w=o(96111),D=o(21982);function x(...d){const C=(0,Z.lI)(d),P=(0,Z.ms)(d),{args:k,keys:$}=(0,y.D)(d);if(0===k.length)return(0,a.H)([],C);const I=new n.c(function E(d,C,P=Q.D){return k=>{z(C,()=>{const{length:$}=d,I=new Array($);let g=$,f=$;for(let m=0;m<$;m++)z(C,()=>{const T=(0,a.H)(d[m],C);let W=!1;T.subscribe((0,w._)(k,K=>{I[m]=K,W||(W=!0,f--),f||k.next(P(I.slice()))},()=>{--g||k.complete()}))},k)},k)}}(k,C,$?g=>(0,h.e)($,g):Q.D));return P?I.pipe((0,ie.I)(P)):I}function z(d,C,P){d?(0,D.N)(P,d,C):C()}},47267:(He,L,o)=>{"use strict";o.d(L,{x:()=>ie});var n=o(83806),a=o(2363),Q=o(38399);function ie(...Z){return function y(){return(0,n.U)(1)}()((0,Q.H)(Z,(0,a.lI)(Z)))}},68001:(He,L,o)=>{"use strict";o.d(L,{v:()=>a});var n=o(99406),y=o(18621);function a(Q){return new n.c(ie=>{(0,y.Tg)(Q()).subscribe(ie)})}},28448:(He,L,o)=>{"use strict";o.d(L,{w:()=>y});const y=new(o(99406).c)(ie=>ie.complete())},18361:(He,L,o)=>{"use strict";o.d(L,{p:()=>w});var n=o(99406),y=o(6872),a=o(18621),Q=o(2363),ie=o(96111),Z=o(86219),h=o(16405);function w(...D){const x=(0,Q.ms)(D),{args:E,keys:z}=(0,y.D)(D),d=new n.c(C=>{const{length:P}=E;if(!P)return void C.complete();const k=new Array(P);let $=P,I=P;for(let g=0;g<P;g++){let f=!1;(0,a.Tg)(E[g]).subscribe((0,ie._)(C,m=>{f||(f=!0,I--),k[g]=m},()=>$--,void 0,()=>{(!$||!f)&&(I||C.next(z?(0,h.e)(z,k):k),C.complete())}))}});return x?d.pipe((0,Z.I)(x)):d}},38399:(He,L,o)=>{"use strict";o.d(L,{H:()=>K});var n=o(18621),y=o(21982),a=o(9867),Q=o(96111);function ie(re,U=0){return(0,a.N)((fe,ue)=>{fe.subscribe((0,Q._)(ue,pe=>(0,y.N)(ue,re,()=>ue.next(pe),U),()=>(0,y.N)(ue,re,()=>ue.complete(),U),pe=>(0,y.N)(ue,re,()=>ue.error(pe),U)))})}function Z(re,U=0){return(0,a.N)((fe,ue)=>{ue.add(re.schedule(()=>fe.subscribe(ue),U))})}var D=o(99406),E=o(77028),z=o(54418);function C(re,U){if(!re)throw new Error("Iterable cannot be null");return new D.c(fe=>{(0,y.N)(fe,U,()=>{const ue=re[Symbol.asyncIterator]();(0,y.N)(fe,U,()=>{ue.next().then(pe=>{pe.done?fe.complete():fe.next(pe.value)})},0,!0)})})}var P=o(18932),k=o(25717),$=o(15206),I=o(16472),g=o(37462),f=o(42246),m=o(98889);function K(re,U){return U?function W(re,U){if(null!=re){if((0,P.l)(re))return function h(re,U){return(0,n.Tg)(re).pipe(Z(U),ie(U))}(re,U);if((0,$.X)(re))return function x(re,U){return new D.c(fe=>{let ue=0;return U.schedule(function(){ue===re.length?fe.complete():(fe.next(re[ue++]),fe.closed||this.schedule())})})}(re,U);if((0,k.y)(re))return function w(re,U){return(0,n.Tg)(re).pipe(Z(U),ie(U))}(re,U);if((0,g.T)(re))return C(re,U);if((0,I.x)(re))return function d(re,U){return new D.c(fe=>{let ue;return(0,y.N)(fe,U,()=>{ue=re[E.l](),(0,y.N)(fe,U,()=>{let pe,he;try{({value:pe,done:he}=ue.next())}catch(de){return void fe.error(de)}he?fe.complete():fe.next(pe)},0,!0)}),()=>(0,z.T)(ue?.return)&&ue.return()})}(re,U);if((0,m.U)(re))return function T(re,U){return C((0,m.C)(re),U)}(re,U)}throw(0,f.L)(re)}(re,U):(0,n.Tg)(re)}},98129:(He,L,o)=>{"use strict";o.d(L,{R:()=>x});var n=o(18621),y=o(99406),a=o(93422),Q=o(15206),ie=o(54418),Z=o(86219);const h=["addListener","removeListener"],w=["addEventListener","removeEventListener"],D=["on","off"];function x(P,k,$,I){if((0,ie.T)($)&&(I=$,$=void 0),I)return x(P,k,$).pipe((0,Z.I)(I));const[g,f]=function C(P){return(0,ie.T)(P.addEventListener)&&(0,ie.T)(P.removeEventListener)}(P)?w.map(m=>T=>P[m](k,T,$)):function z(P){return(0,ie.T)(P.addListener)&&(0,ie.T)(P.removeListener)}(P)?h.map(E(P,k)):function d(P){return(0,ie.T)(P.on)&&(0,ie.T)(P.off)}(P)?D.map(E(P,k)):[];if(!g&&(0,Q.X)(P))return(0,a.Z)(m=>x(m,k,$))((0,n.Tg)(P));if(!g)throw new TypeError("Invalid event target");return new y.c(m=>{const T=(...W)=>m.next(1<W.length?W:W[0]);return g(T),()=>f(T)})}function E(P,k){return $=>I=>P[$](k,I)}},18621:(He,L,o)=>{"use strict";o.d(L,{Tg:()=>d});var n=o(97270),y=o(15206),a=o(25717),Q=o(99406),ie=o(18932),Z=o(37462),h=o(42246),w=o(16472),D=o(98889),x=o(54418),E=o(76379),z=o(1479);function d(m){if(m instanceof Q.c)return m;if(null!=m){if((0,ie.l)(m))return function C(m){return new Q.c(T=>{const W=m[z.s]();if((0,x.T)(W.subscribe))return W.subscribe(T);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(m);if((0,y.X)(m))return function P(m){return new Q.c(T=>{for(let W=0;W<m.length&&!T.closed;W++)T.next(m[W]);T.complete()})}(m);if((0,a.y)(m))return function k(m){return new Q.c(T=>{m.then(W=>{T.closed||(T.next(W),T.complete())},W=>T.error(W)).then(null,E.m)})}(m);if((0,Z.T)(m))return I(m);if((0,w.x)(m))return function $(m){return new Q.c(T=>{for(const W of m)if(T.next(W),T.closed)return;T.complete()})}(m);if((0,D.U)(m))return function g(m){return I((0,D.C)(m))}(m)}throw(0,h.L)(m)}function I(m){return new Q.c(T=>{(function f(m,T){var W,K,re,U;return(0,n.sH)(this,void 0,void 0,function*(){try{for(W=(0,n.xN)(m);!(K=yield W.next()).done;)if(T.next(K.value),T.closed)return}catch(fe){re={error:fe}}finally{try{K&&!K.done&&(U=W.return)&&(yield U.call(W))}finally{if(re)throw re.error}}T.complete()})})(m,T).catch(W=>T.error(W))})}},52489:(He,L,o)=>{"use strict";o.d(L,{h:()=>Z});var n=o(83806),y=o(18621),a=o(28448),Q=o(2363),ie=o(38399);function Z(...h){const w=(0,Q.lI)(h),D=(0,Q.R0)(h,1/0),x=h;return x.length?1===x.length?(0,y.Tg)(x[0]):(0,n.U)(D)((0,ie.H)(x,w)):a.w}},20756:(He,L,o)=>{"use strict";o.d(L,{of:()=>a});var n=o(2363),y=o(38399);function a(...Q){const ie=(0,n.lI)(Q);return(0,y.H)(Q,ie)}},48823:(He,L,o)=>{"use strict";o.d(L,{$:()=>a});var n=o(99406),y=o(54418);function a(Q,ie){const Z=(0,y.T)(Q)?Q:()=>Q,h=w=>w.error(Z());return new n.c(ie?w=>ie.schedule(h,0,w):h)}},53229:(He,L,o)=>{"use strict";o.d(L,{O:()=>ie});var n=o(99406),y=o(14929),a=o(31677);function ie(Z=0,h,w=y.b){let D=-1;return null!=h&&((0,a.m)(h)?w=h:D=h),new n.c(x=>{let E=function Q(Z){return Z instanceof Date&&!isNaN(Z)}(Z)?+Z-w.now():Z;E<0&&(E=0);let z=0;return w.schedule(function(){x.closed||(x.next(z++),0<=D?this.schedule(void 0,D):x.complete())},E)})}},96111:(He,L,o)=>{"use strict";o.d(L,{_:()=>y});var n=o(44500);function y(Q,ie,Z,h,w){return new a(Q,ie,Z,h,w)}class a extends n.vU{constructor(ie,Z,h,w,D,x){super(ie),this.onFinalize=D,this.shouldUnsubscribe=x,this._next=Z?function(E){try{Z(E)}catch(z){ie.error(z)}}:super._next,this._error=w?function(E){try{w(E)}catch(z){ie.error(z)}finally{this.unsubscribe()}}:super._error,this._complete=h?function(){try{h()}catch(E){ie.error(E)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var ie;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:Z}=this;super.unsubscribe(),!Z&&(null===(ie=this.onFinalize)||void 0===ie||ie.call(this))}}}},34526:(He,L,o)=>{"use strict";o.d(L,{W:()=>Q});var n=o(18621),y=o(96111),a=o(9867);function Q(ie){return(0,a.N)((Z,h)=>{let x,w=null,D=!1;w=Z.subscribe((0,y._)(h,void 0,void 0,E=>{x=(0,n.Tg)(ie(E,Q(ie)(Z))),w?(w.unsubscribe(),w=null,x.subscribe(h)):D=!0})),D&&(w.unsubscribe(),w=null,x.subscribe(h))})}},54807:(He,L,o)=>{"use strict";o.d(L,{H:()=>a});var n=o(93422),y=o(54418);function a(Q,ie){return(0,y.T)(ie)?(0,n.Z)(Q,ie,1):(0,n.Z)(Q,1)}},68887:(He,L,o)=>{"use strict";o.d(L,{B:()=>Q});var n=o(14929),y=o(9867),a=o(96111);function Q(ie,Z=n.E){return(0,y.N)((h,w)=>{let D=null,x=null,E=null;const z=()=>{if(D){D.unsubscribe(),D=null;const C=x;x=null,w.next(C)}};function d(){const C=E+ie,P=Z.now();if(P<C)return D=this.schedule(void 0,C-P),void w.add(D);z()}h.subscribe((0,a._)(w,C=>{x=C,E=Z.now(),D||(D=Z.schedule(d,ie),w.add(D))},()=>{z(),w.complete()},void 0,()=>{x=D=null}))})}},73793:(He,L,o)=>{"use strict";o.d(L,{F:()=>Q});var n=o(19656),y=o(9867),a=o(96111);function Q(Z,h=n.D){return Z=Z??ie,(0,y.N)((w,D)=>{let x,E=!0;w.subscribe((0,a._)(D,z=>{const d=h(z);(E||!Z(x,d))&&(E=!1,x=d,D.next(z))}))})}function ie(Z,h){return Z===h}},38503:(He,L,o)=>{"use strict";o.d(L,{p:()=>a});var n=o(9867),y=o(96111);function a(Q,ie){return(0,n.N)((Z,h)=>{let w=0;Z.subscribe((0,y._)(h,D=>Q.call(ie,D,w++)&&h.next(D)))})}},46347:(He,L,o)=>{"use strict";o.d(L,{j:()=>y});var n=o(9867);function y(a){return(0,n.N)((Q,ie)=>{try{Q.subscribe(ie)}finally{ie.add(a)}})}},93527:(He,L,o)=>{"use strict";o.d(L,{T:()=>a});var n=o(9867),y=o(96111);function a(Q,ie){return(0,n.N)((Z,h)=>{let w=0;Z.subscribe((0,y._)(h,D=>{h.next(Q.call(ie,D,w++))}))})}},3770:(He,L,o)=>{"use strict";o.d(L,{u:()=>y});var n=o(93527);function y(a){return(0,n.T)(()=>a)}},83806:(He,L,o)=>{"use strict";o.d(L,{U:()=>a});var n=o(93422),y=o(19656);function a(Q=1/0){return(0,n.Z)(y.D,Q)}},93422:(He,L,o)=>{"use strict";o.d(L,{Z:()=>w});var n=o(93527),y=o(18621),a=o(9867),Q=o(21982),ie=o(96111),h=o(54418);function w(D,x,E=1/0){return(0,h.T)(x)?w((z,d)=>(0,n.T)((C,P)=>x(z,C,d,P))((0,y.Tg)(D(z,d))),E):("number"==typeof x&&(E=x),(0,a.N)((z,d)=>function Z(D,x,E,z,d,C,P,k){const $=[];let I=0,g=0,f=!1;const m=()=>{f&&!$.length&&!I&&x.complete()},T=K=>I<z?W(K):$.push(K),W=K=>{C&&x.next(K),I++;let re=!1;(0,y.Tg)(E(K,g++)).subscribe((0,ie._)(x,U=>{d?.(U),C?T(U):x.next(U)},()=>{re=!0},void 0,()=>{if(re)try{for(I--;$.length&&I<z;){const U=$.shift();P?(0,Q.N)(x,P,()=>W(U)):W(U)}m()}catch(U){x.error(U)}}))};return D.subscribe((0,ie._)(x,T,()=>{f=!0,m()})),()=>{k?.()}}(z,d,D,E)))}},79841:(He,L,o)=>{"use strict";o.d(L,{B:()=>a});var n=o(9867),y=o(96111);function a(){return(0,n.N)((Q,ie)=>{let Z=null;Q._refCount++;const h=(0,y._)(ie,void 0,void 0,void 0,()=>{if(!Q||Q._refCount<=0||0<--Q._refCount)return void(Z=null);const w=Q._connection,D=Z;Z=null,w&&(!D||w===D)&&w.unsubscribe(),ie.unsubscribe()});Q.subscribe(h),h.closed||(Z=Q.connect())})}},37782:(He,L,o)=>{"use strict";o.d(L,{u:()=>ie});var n=o(18621),y=o(16104),a=o(44500),Q=o(9867);function ie(h={}){const{connector:w=(()=>new y.B),resetOnError:D=!0,resetOnComplete:x=!0,resetOnRefCountZero:E=!0}=h;return z=>{let d,C,P,k=0,$=!1,I=!1;const g=()=>{C?.unsubscribe(),C=void 0},f=()=>{g(),d=P=void 0,$=I=!1},m=()=>{const T=d;f(),T?.unsubscribe()};return(0,Q.N)((T,W)=>{k++,!I&&!$&&g();const K=P=P??w();W.add(()=>{k--,0===k&&!I&&!$&&(C=Z(m,E))}),K.subscribe(W),!d&&k>0&&(d=new a.Ms({next:re=>K.next(re),error:re=>{I=!0,g(),C=Z(f,D,re),K.error(re)},complete:()=>{$=!0,g(),C=Z(f,x),K.complete()}}),(0,n.Tg)(T).subscribe(d))})(z)}}function Z(h,w,...D){if(!0===w)return void h();if(!1===w)return;const x=new a.Ms({next:()=>{x.unsubscribe(),h()}});return(0,n.Tg)(w(...D)).subscribe(x)}},858:(He,L,o)=>{"use strict";o.d(L,{t:()=>ie});var n=o(16104),y=o(4808);class a extends n.B{constructor(h=1/0,w=1/0,D=y.U){super(),this._bufferSize=h,this._windowTime=w,this._timestampProvider=D,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=w===1/0,this._bufferSize=Math.max(1,h),this._windowTime=Math.max(1,w)}next(h){const{isStopped:w,_buffer:D,_infiniteTimeWindow:x,_timestampProvider:E,_windowTime:z}=this;w||(D.push(h),!x&&D.push(E.now()+z)),this._trimBuffer(),super.next(h)}_subscribe(h){this._throwIfClosed(),this._trimBuffer();const w=this._innerSubscribe(h),{_infiniteTimeWindow:D,_buffer:x}=this,E=x.slice();for(let z=0;z<E.length&&!h.closed;z+=D?1:2)h.next(E[z]);return this._checkFinalizedStatuses(h),w}_trimBuffer(){const{_bufferSize:h,_timestampProvider:w,_buffer:D,_infiniteTimeWindow:x}=this,E=(x?1:2)*h;if(h<1/0&&E<D.length&&D.splice(0,D.length-E),!x){const z=w.now();let d=0;for(let C=1;C<D.length&&D[C]<=z;C+=2)d=C;d&&D.splice(0,d+1)}}}var Q=o(37782);function ie(Z,h,w){let D,x=!1;return Z&&"object"==typeof Z?({bufferSize:D=1/0,windowTime:h=1/0,refCount:x=!1,scheduler:w}=Z):D=Z??1/0,(0,Q.u)({connector:()=>new a(D,h,w),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:x})}},20965:(He,L,o)=>{"use strict";o.d(L,{Z:()=>Q});var n=o(47267),y=o(2363),a=o(9867);function Q(...ie){const Z=(0,y.lI)(ie);return(0,a.N)((h,w)=>{(Z?(0,n.x)(ie,h,Z):(0,n.x)(ie,h)).subscribe(w)})}},72831:(He,L,o)=>{"use strict";o.d(L,{n:()=>Q});var n=o(18621),y=o(9867),a=o(96111);function Q(ie,Z){return(0,y.N)((h,w)=>{let D=null,x=0,E=!1;const z=()=>E&&!D&&w.complete();h.subscribe((0,a._)(w,d=>{D?.unsubscribe();let C=0;const P=x++;(0,n.Tg)(ie(d,P)).subscribe(D=(0,a._)(w,k=>w.next(Z?Z(d,k,P,C++):k),()=>{D=null,z()}))},()=>{E=!0,z()}))})}},38486:(He,L,o)=>{"use strict";o.d(L,{s:()=>Q});var n=o(28448),y=o(9867),a=o(96111);function Q(ie){return ie<=0?()=>n.w:(0,y.N)((Z,h)=>{let w=0;Z.subscribe((0,a._)(h,D=>{++w<=ie&&(h.next(D),ie<=w&&h.complete())}))})}},76340:(He,L,o)=>{"use strict";o.d(L,{Q:()=>ie});var n=o(9867),y=o(96111),a=o(18621),Q=o(20262);function ie(Z){return(0,n.N)((h,w)=>{(0,a.Tg)(Z).subscribe((0,y._)(w,()=>w.complete(),Q.l)),!w.closed&&h.subscribe(w)})}},37236:(He,L,o)=>{"use strict";o.d(L,{M:()=>ie});var n=o(54418),y=o(9867),a=o(96111),Q=o(19656);function ie(Z,h,w){const D=(0,n.T)(Z)||h||w?{next:Z,error:h,complete:w}:Z;return D?(0,y.N)((x,E)=>{var z;null===(z=D.subscribe)||void 0===z||z.call(D);let d=!0;x.subscribe((0,a._)(E,C=>{var P;null===(P=D.next)||void 0===P||P.call(D,C),E.next(C)},()=>{var C;d=!1,null===(C=D.complete)||void 0===C||C.call(D),E.complete()},C=>{var P;d=!1,null===(P=D.error)||void 0===P||P.call(D,C),E.error(C)},()=>{var C,P;d&&(null===(C=D.unsubscribe)||void 0===C||C.call(D)),null===(P=D.finalize)||void 0===P||P.call(D)}))}):Q.D}},61227:(He,L,o)=>{"use strict";o.d(L,{R:()=>ie});var n=o(42029);class y extends n.yU{constructor(h,w){super()}schedule(h,w=0){return this}}const a={setInterval(Z,h,...w){const{delegate:D}=a;return D?.setInterval?D.setInterval(Z,h,...w):setInterval(Z,h,...w)},clearInterval(Z){const{delegate:h}=a;return(h?.clearInterval||clearInterval)(Z)},delegate:void 0};var Q=o(79583);class ie extends y{constructor(h,w){super(h,w),this.scheduler=h,this.work=w,this.pending=!1}schedule(h,w=0){var D;if(this.closed)return this;this.state=h;const x=this.id,E=this.scheduler;return null!=x&&(this.id=this.recycleAsyncId(E,x,w)),this.pending=!0,this.delay=w,this.id=null!==(D=this.id)&&void 0!==D?D:this.requestAsyncId(E,this.id,w),this}requestAsyncId(h,w,D=0){return a.setInterval(h.flush.bind(h,this),D)}recycleAsyncId(h,w,D=0){if(null!=D&&this.delay===D&&!1===this.pending)return w;null!=w&&a.clearInterval(w)}execute(h,w){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const D=this._execute(h,w);if(D)return D;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(h,w){let x,D=!1;try{this.work(h)}catch(E){D=!0,x=E||new Error("Scheduled action threw falsy error")}if(D)return this.unsubscribe(),x}unsubscribe(){if(!this.closed){const{id:h,scheduler:w}=this,{actions:D}=w;this.work=this.state=this.scheduler=null,this.pending=!1,(0,Q.o)(D,this),null!=h&&(this.id=this.recycleAsyncId(w,h,null)),this.delay=null,super.unsubscribe()}}}},31246:(He,L,o)=>{"use strict";o.d(L,{q:()=>a});var n=o(4808);class y{constructor(ie,Z=y.now){this.schedulerActionCtor=ie,this.now=Z}schedule(ie,Z=0,h){return new this.schedulerActionCtor(this,ie).schedule(h,Z)}}y.now=n.U.now;class a extends y{constructor(ie,Z=y.now){super(ie,Z),this.actions=[],this._active=!1}flush(ie){const{actions:Z}=this;if(this._active)return void Z.push(ie);let h;this._active=!0;do{if(h=ie.execute(ie.state,ie.delay))break}while(ie=Z.shift());if(this._active=!1,h){for(;ie=Z.shift();)ie.unsubscribe();throw h}}}},14929:(He,L,o)=>{"use strict";o.d(L,{E:()=>a,b:()=>Q});var n=o(61227);const a=new(o(31246).q)(n.R),Q=a},4808:(He,L,o)=>{"use strict";o.d(L,{U:()=>n});const n={now:()=>(n.delegate||Date).now(),delegate:void 0}},76171:(He,L,o)=>{"use strict";o.d(L,{f:()=>n});const n={setTimeout(y,a,...Q){const{delegate:ie}=n;return ie?.setTimeout?ie.setTimeout(y,a,...Q):setTimeout(y,a,...Q)},clearTimeout(y){const{delegate:a}=n;return(a?.clearTimeout||clearTimeout)(y)},delegate:void 0}},77028:(He,L,o)=>{"use strict";o.d(L,{l:()=>y});const y=function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},1479:(He,L,o)=>{"use strict";o.d(L,{s:()=>n});const n="function"==typeof Symbol&&Symbol.observable||"@@observable"},2363:(He,L,o)=>{"use strict";o.d(L,{R0:()=>Z,lI:()=>ie,ms:()=>Q});var n=o(54418),y=o(31677);function a(h){return h[h.length-1]}function Q(h){return(0,n.T)(a(h))?h.pop():void 0}function ie(h){return(0,y.m)(a(h))?h.pop():void 0}function Z(h,w){return"number"==typeof a(h)?h.pop():w}},6872:(He,L,o)=>{"use strict";o.d(L,{D:()=>ie});const{isArray:n}=Array,{getPrototypeOf:y,prototype:a,keys:Q}=Object;function ie(h){if(1===h.length){const w=h[0];if(n(w))return{args:w,keys:null};if(function Z(h){return h&&"object"==typeof h&&y(h)===a}(w)){const D=Q(w);return{args:D.map(x=>w[x]),keys:D}}}return{args:h,keys:null}}},79583:(He,L,o)=>{"use strict";function n(y,a){if(y){const Q=y.indexOf(a);0<=Q&&y.splice(Q,1)}}o.d(L,{o:()=>n})},4520:(He,L,o)=>{"use strict";function n(y){const Q=y(ie=>{Error.call(ie),ie.stack=(new Error).stack});return Q.prototype=Object.create(Error.prototype),Q.prototype.constructor=Q,Q}o.d(L,{L:()=>n})},16405:(He,L,o)=>{"use strict";function n(y,a){return y.reduce((Q,ie,Z)=>(Q[ie]=a[Z],Q),{})}o.d(L,{e:()=>n})},52895:(He,L,o)=>{"use strict";o.d(L,{Y:()=>a,l:()=>Q});var n=o(42493);let y=null;function a(ie){if(n.$.useDeprecatedSynchronousErrorHandling){const Z=!y;if(Z&&(y={errorThrown:!1,error:null}),ie(),Z){const{errorThrown:h,error:w}=y;if(y=null,h)throw w}}else ie()}function Q(ie){n.$.useDeprecatedSynchronousErrorHandling&&y&&(y.errorThrown=!0,y.error=ie)}},21982:(He,L,o)=>{"use strict";function n(y,a,Q,ie=0,Z=!1){const h=a.schedule(function(){Q(),Z?y.add(this.schedule(null,ie)):this.unsubscribe()},ie);if(y.add(h),!Z)return h}o.d(L,{N:()=>n})},19656:(He,L,o)=>{"use strict";function n(y){return y}o.d(L,{D:()=>n})},15206:(He,L,o)=>{"use strict";o.d(L,{X:()=>n});const n=y=>y&&"number"==typeof y.length&&"function"!=typeof y},37462:(He,L,o)=>{"use strict";o.d(L,{T:()=>y});var n=o(54418);function y(a){return Symbol.asyncIterator&&(0,n.T)(a?.[Symbol.asyncIterator])}},54418:(He,L,o)=>{"use strict";function n(y){return"function"==typeof y}o.d(L,{T:()=>n})},18932:(He,L,o)=>{"use strict";o.d(L,{l:()=>a});var n=o(1479),y=o(54418);function a(Q){return(0,y.T)(Q[n.s])}},16472:(He,L,o)=>{"use strict";o.d(L,{x:()=>a});var n=o(77028),y=o(54418);function a(Q){return(0,y.T)(Q?.[n.l])}},92319:(He,L,o)=>{"use strict";o.d(L,{A:()=>a});var n=o(99406),y=o(54418);function a(Q){return!!Q&&(Q instanceof n.c||(0,y.T)(Q.lift)&&(0,y.T)(Q.subscribe))}},25717:(He,L,o)=>{"use strict";o.d(L,{y:()=>y});var n=o(54418);function y(a){return(0,n.T)(a?.then)}},98889:(He,L,o)=>{"use strict";o.d(L,{C:()=>a,U:()=>Q});var n=o(97270),y=o(54418);function a(ie){return(0,n.AQ)(this,arguments,function*(){const h=ie.getReader();try{for(;;){const{value:w,done:D}=yield(0,n.N3)(h.read());if(D)return yield(0,n.N3)(void 0);yield yield(0,n.N3)(w)}}finally{h.releaseLock()}})}function Q(ie){return(0,y.T)(ie?.getReader)}},31677:(He,L,o)=>{"use strict";o.d(L,{m:()=>y});var n=o(54418);function y(a){return a&&(0,n.T)(a.schedule)}},9867:(He,L,o)=>{"use strict";o.d(L,{N:()=>a,S:()=>y});var n=o(54418);function y(Q){return(0,n.T)(Q?.lift)}function a(Q){return ie=>{if(y(ie))return ie.lift(function(Z){try{return Q(Z,this)}catch(h){this.error(h)}});throw new TypeError("Unable to lift unknown Observable type")}}},86219:(He,L,o)=>{"use strict";o.d(L,{I:()=>Q});var n=o(93527);const{isArray:y}=Array;function Q(ie){return(0,n.T)(Z=>function a(ie,Z){return y(Z)?ie(...Z):ie(Z)}(ie,Z))}},20262:(He,L,o)=>{"use strict";function n(){}o.d(L,{l:()=>n})},46106:(He,L,o)=>{"use strict";o.d(L,{F:()=>y,m:()=>a});var n=o(19656);function y(...Q){return a(Q)}function a(Q){return 0===Q.length?n.D:1===Q.length?Q[0]:function(Z){return Q.reduce((h,w)=>w(h),Z)}}},76379:(He,L,o)=>{"use strict";o.d(L,{m:()=>a});var n=o(42493),y=o(76171);function a(Q){y.f.setTimeout(()=>{const{onUnhandledError:ie}=n.$;if(!ie)throw Q;ie(Q)})}},42246:(He,L,o)=>{"use strict";function n(y){return new TypeError(`You provided ${null!==y&&"object"==typeof y?"an invalid object":`'${y}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}o.d(L,{L:()=>n})},58901:(He,L,o)=>{"use strict";o.d(L,{F:()=>w});var n=o(2978),y=o(57291),a=o(56610),Q=o(77897);function ie(D,x){if(1&D&&(n.j41(0,"p",3),n.EFF(1),n.k0s()),2&D){const E=n.XpG();n.R7$(1),n.SpI(" ",E.sign?"+":"-"," ")}}function Z(D,x){if(1&D&&(n.j41(0,"p",3),n.EFF(1),n.nI1(2,"number"),n.k0s()),2&D){const E=n.XpG();n.R7$(1),n.SpI(" ",n.i5U(2,1,E.price/E.valuePointsCoin,"1.0-0"),"")}}function h(D,x){if(1&D&&(n.j41(0,"p",3),n.EFF(1),n.k0s()),2&D){const E=n.XpG();n.R7$(1),n.SpI(" ",E.coins,"")}}let w=(()=>{class D{constructor(E){this.storage=E,this.valuePointsCoin=1}ngOnInit(){this.storage.get("parameters").then(E=>{E&&(this.valuePointsCoin=E.value_points_coin??1)})}static#e=this.\u0275fac=function(z){return new(z||D)(n.rXU(y.n))};static#t=this.\u0275cmp=n.VBU({type:D,selectors:[["app-coin-info"]],inputs:{sign:"sign",price:"price",coins:"coins"},decls:5,vars:3,consts:[[1,"infoCoins"],["src","assets/img/icons/coins-solid.svg","slot","start",1,"iconInfoCoins"],["class","textInfoCoins",4,"ngIf"],[1,"textInfoCoins"]],template:function(z,d){1&z&&(n.j41(0,"div",0),n.nrm(1,"ion-icon",1),n.DNE(2,ie,2,1,"p",2),n.DNE(3,Z,3,4,"p",2),n.DNE(4,h,2,1,"p",2),n.k0s()),2&z&&(n.R7$(2),n.Y8G("ngIf",d.sign),n.R7$(1),n.Y8G("ngIf",null!=d.price),n.R7$(1),n.Y8G("ngIf",null!=d.coins))},dependencies:[a.bT,Q.iq,a.QX],styles:[".infoCoins[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:3px;padding:3px;background:linear-gradient(317.09deg,rgba(255,216,79,.2) -28.87%,rgba(255,153,0,.2) 174.24%);border-radius:8px;color:#ffca0f;width:-moz-fit-content;width:fit-content}.iconInfoCoins[_ngcontent-%COMP%]{font-size:16px}.textInfoCoins[_ngcontent-%COMP%]{font-weight:700;margin:0}"]})}return D})()},59001:(He,L,o)=>{"use strict";o.d(L,{W:()=>D});var n=o(2978),y=o(22882),a=o(69942),Q=o(56610),ie=o(77897),Z=o(60822);function h(x,E){if(1&x&&(n.j41(0,"p"),n.EFF(1),n.nI1(2,"translate"),n.nI1(3,"formatCurrency"),n.k0s()),2&x){const z=n.XpG();n.R7$(1),n.E5c(" ",z.pumType," ",n.bMT(2,3,"PUM")," ",n.i5U(3,5,z.pum,z.currency),"\n")}}function w(x,E){if(1&x&&(n.j41(0,"ion-label"),n.EFF(1),n.nI1(2,"translate"),n.nI1(3,"formatCurrency"),n.k0s()),2&x){const z=n.XpG();n.R7$(1),n.E5c(" ",z.pumType," ",n.bMT(2,3,"PUM")," ",n.i5U(3,5,z.pum,z.currency),"\n")}}let D=(()=>{class x{constructor(z,d){this.translateService=z,this.corporateIdentityService=d,this.type="p",this.pum=0,this.pumType="",this.currency=this.corporateIdentityService.getCurrency()}ngOnInit(){if(this.product){let z=this.product.productAttributes;for(let d=0;d<z.length;d++)if(this.pum=z[d].pum,this.pumType=z[d].attribute.name,this.pum)return}else this.attribute&&(this.pum=this.attribute.pum,this.pumType=this.attribute.attribute.name)}static#e=this.\u0275fac=function(d){return new(d||x)(n.rXU(y.c$),n.rXU(a.r))};static#t=this.\u0275cmp=n.VBU({type:x,selectors:[["app-pum-info"]],inputs:{product:"product",attribute:"attribute",type:"type"},decls:2,vars:2,consts:[[4,"ngIf"]],template:function(d,C){1&d&&(n.DNE(0,h,4,8,"p",0),n.DNE(1,w,4,8,"ion-label",0)),2&d&&(n.Y8G("ngIf",C.pum&&"p"==C.type),n.R7$(1),n.Y8G("ngIf",C.pum&&"label"==C.type))},dependencies:[Q.bT,ie.he,Z.P,y.D9],styles:["p[_ngcontent-%COMP%]{color:gray;font-size:min(3vw,10px)}"]})}return x})()},13721:(He,L,o)=>{"use strict";o.d(L,{h:()=>a});var n=o(56610),y=o(2978);let a=(()=>{class Q{static#e=this.\u0275fac=function(h){return new(h||Q)};static#t=this.\u0275mod=y.$C({type:Q});static#n=this.\u0275inj=y.G2t({imports:[n.MD]})}return Q})()},97411:(He,L,o)=>{"use strict";o.d(L,{a:()=>y});var n=o(2978);let y=(()=>{class a{constructor(ie){this.imageRef=ie}ngAfterViewInit(){const ie=new Image;ie.onload=()=>{this.setImage(this.src)},ie.onerror=()=>{this.setImage("assets/img/default.png")},ie.src=this.src}setImage(ie){this.imageRef.nativeElement.setAttribute("src",ie)}static#e=this.\u0275fac=function(Z){return new(Z||a)(n.rXU(n.aKT))};static#t=this.\u0275dir=n.FsC({type:a,selectors:[["","valid-url-image",""]],inputs:{src:"src"}})}return a})()},58118:(He,L,o)=>{"use strict";o.d(L,{u:()=>Wt});const y=(0,o(22126).F3)("CapacitorVideoPlayer",{web:()=>o.e(5813).then(o.bind(o,85813)).then(it=>new it.CapacitorVideoPlayerWeb)});var a=o(2978),Q=o(77897),ie=o(46868),Z=o(7125),h=o(54171),w=o(22882),D=o(57291),x=o(69942),E=o(56610),z=o(97411),d=o(37222),C=o(58901),P=o(59001);let k=(()=>{class it{transform(rt,Pt){if(!rt)return null;const vt=rt.reduce(($t,ct)=>($t[ct[Pt]]?$t[ct[Pt]].push(ct):$t[ct[Pt]]=[ct],$t),{});return Object.keys(vt).map($t=>({key:$t,value:vt[$t]}))}static#e=this.\u0275fac=function(Pt){return new(Pt||it)};static#t=this.\u0275pipe=a.EJ8({name:"groupBy",type:it,pure:!0})}return it})();var $=o(60822);function I(it,Bt){if(1&it){const rt=a.RV6();a.j41(0,"img",24,25),a.bIt("click",function(){a.eBV(rt);const vt=a.sdS(1),$t=a.XpG(3);return a.Njj($t.previewImage(vt))}),a.k0s()}if(2&it){const rt=a.XpG().$implicit,Pt=a.XpG(2);a.Y8G("src",Pt.cityProvider._urlGallery+"products/"+rt.name,a.B4B)}}function g(it,Bt){if(1&it){const rt=a.RV6();a.j41(0,"img",26),a.bIt("click",function(){a.eBV(rt);const vt=a.XpG().$implicit,$t=a.XpG(2);return a.Njj($t.playVideo($t.cityProvider._urlGallery+"products/"+vt.name))}),a.k0s()}}function f(it,Bt){if(1&it&&(a.j41(0,"ion-slide"),a.DNE(1,I,2,1,"img",22),a.DNE(2,g,1,0,"img",23),a.k0s()),2&it){const rt=Bt.$implicit,Pt=a.XpG(2);a.R7$(1),a.Y8G("ngIf",Pt.itsImage(rt.name)),a.R7$(1),a.Y8G("ngIf",!Pt.itsImage(rt.name))}}function m(it,Bt){if(1&it&&(a.j41(0,"ion-slides",20),a.DNE(1,f,3,2,"ion-slide",21),a.k0s()),2&it){const rt=a.XpG();a.R7$(1),a.Y8G("ngForOf",rt.product.product_images)}}function T(it,Bt){if(1&it){const rt=a.RV6();a.j41(0,"img",24,25),a.bIt("click",function(){a.eBV(rt);const vt=a.sdS(1),$t=a.XpG(2);return a.Njj($t.previewImage(vt))}),a.k0s()}if(2&it){const rt=a.XpG(2);a.Y8G("src",rt.cityProvider._urlGallery+"products/"+rt.product.product_images[0].name,a.B4B)}}function W(it,Bt){if(1&it){const rt=a.RV6();a.j41(0,"img",26),a.bIt("click",function(){a.eBV(rt);const vt=a.XpG(2);return a.Njj(vt.playVideo(vt.cityProvider._urlGallery+"products/"+vt.product.product_images[0].name))}),a.k0s()}}function K(it,Bt){if(1&it&&(a.j41(0,"ion-item",27),a.DNE(1,T,2,1,"img",22),a.DNE(2,W,1,0,"img",23),a.k0s()),2&it){const rt=a.XpG();a.R7$(1),a.Y8G("ngIf",rt.itsImage(rt.product.product_images[0].name)),a.R7$(1),a.Y8G("ngIf",!rt.itsImage(rt.product.product_images[0].name))}}function re(it,Bt){1&it&&(a.j41(0,"ion-item",27),a.nrm(1,"img",28),a.k0s())}function U(it,Bt){if(1&it&&(a.j41(0,"ion-item",29)(1,"ion-label",30),a.EFF(2),a.nI1(3,"formatCurrency"),a.k0s()()),2&it){const rt=a.XpG();a.R7$(2),a.SpI(" ",a.i5U(3,1,rt.product.price,rt.currency)," ")}}function fe(it,Bt){if(1&it&&(a.j41(0,"ion-item",31)(1,"ion-label",32)(2,"ion-text")(3,"ion-text",33),a.nrm(4,"ion-icon",34),a.j41(5,"h5"),a.EFF(6),a.k0s()(),a.j41(7,"p",35),a.EFF(8),a.nI1(9,"formatCurrency"),a.k0s()()(),a.j41(10,"ion-label",36),a.EFF(11),a.nI1(12,"formatCurrency"),a.k0s()()),2&it){const rt=a.XpG();a.R7$(6),a.JRh(rt.product.special_tag),a.R7$(2),a.SpI(" ",a.i5U(9,3,rt.product.priceAfterSpecialPriceTag,rt.currency)," "),a.R7$(3),a.SpI(" ",a.i5U(12,6,rt.product.price,rt.currency)," ")}}function ue(it,Bt){if(1&it&&(a.j41(0,"ion-item",37)(1,"ion-label",32),a.nrm(2,"ion-icon",38),a.EFF(3),a.nI1(4,"formatCurrency"),a.k0s(),a.j41(5,"ion-label",39),a.EFF(6),a.nI1(7,"formatCurrency"),a.k0s()()),2&it){const rt=a.XpG();a.R7$(3),a.SpI(" ",a.i5U(4,2,rt.product.priceAfterFlash,rt.currency)," "),a.R7$(3),a.SpI(" ",a.i5U(7,5,rt.product.price,rt.currency)," ")}}function pe(it,Bt){if(1&it&&(a.j41(0,"ion-item",37)(1,"ion-label",32),a.EFF(2),a.nI1(3,"formatCurrency"),a.k0s(),a.j41(4,"ion-label",40),a.EFF(5),a.nI1(6,"formatCurrency"),a.k0s()()),2&it){const rt=a.XpG();a.R7$(2),a.SpI(" ",a.i5U(3,2,rt.product.priceAfterDiscount,rt.currency)," "),a.R7$(3),a.SpI(" ",a.i5U(6,5,rt.product.price,rt.currency)," ")}}function he(it,Bt){if(1&it&&(a.j41(0,"ion-item",15)(1,"ion-label",16),a.nrm(2,"app-pum-info",41),a.k0s()()),2&it){const rt=a.XpG();a.R7$(2),a.Y8G("product",rt.product)("type","label")}}function de(it,Bt){if(1&it&&(a.j41(0,"ion-item",15)(1,"ion-label",16),a.EFF(2),a.nI1(3,"translate"),a.k0s()()),2&it){const rt=a.XpG();a.R7$(2),a.Lme("",a.bMT(3,2,"PLU"),": ",rt.product.plu," ")}}function _e(it,Bt){if(1&it&&(a.j41(0,"ion-item",15)(1,"ion-label",16),a.EFF(2),a.nI1(3,"translate"),a.k0s()()),2&it){const rt=a.XpG();a.R7$(2),a.Lme("",a.bMT(3,2,"BARCODE"),": ",rt.product.bar_code,"")}}function Ee(it,Bt){if(1&it&&(a.j41(0,"ion-item",15)(1,"ion-label",16),a.EFF(2),a.nI1(3,"translate"),a.k0s()()),2&it){const rt=a.XpG();a.R7$(2),a.Lme("",a.bMT(3,2,"BRAND"),": ",rt.product.brand.name,"")}}function Ne(it,Bt){if(1&it&&(a.j41(0,"ion-item",15)(1,"ion-label",16),a.EFF(2),a.nI1(3,"translate"),a.k0s()()),2&it){const rt=a.XpG();a.R7$(2),a.Lme("",a.bMT(3,2,"MAX_UNITS_PER_ATTRIBUTTE"),": ",null==rt.product?null:rt.product.max_units_per_order," ")}}function ge(it,Bt){if(1&it&&(a.j41(0,"ion-item",15)(1,"ion-label",16),a.EFF(2),a.nI1(3,"translate"),a.k0s()()),2&it){const rt=a.XpG();a.R7$(2),a.Lme("",a.bMT(3,2,"MAX_UNITS_PER_PRODUCT"),": ",null==rt.product?null:rt.product.max_units_per_product," ")}}function q(it,Bt){if(1&it&&a.nrm(0,"div",45),2&it){const rt=a.XpG().$implicit;a.xc7("background",rt.value)}}function u(it,Bt){if(1&it&&(a.j41(0,"ion-item",27)(1,"ion-label",43),a.EFF(2),a.DNE(3,q,1,2,"div",44),a.EFF(4),a.nI1(5,"formatCurrency"),a.k0s()()),2&it){const rt=Bt.$implicit,Pt=a.XpG(4);a.R7$(2),a.SpI("",rt.value," "),a.R7$(1),a.Y8G("ngIf",4==rt.attribute.attribute_type_id),a.R7$(1),a.Lme(" (",rt.quantity?rt.quantity:1,") - ",a.i5U(5,4,rt.price_additional,Pt.currency)," ")}}function p(it,Bt){if(1&it&&(a.j41(0,"ion-list")(1,"ion-list-header")(2,"ion-label"),a.EFF(3),a.k0s()(),a.DNE(4,u,6,7,"ion-item",42),a.k0s()),2&it){const rt=Bt.$implicit;a.R7$(3),a.SpI(" ",rt.value[0].attribute.display_name," "),a.R7$(1),a.Y8G("ngForOf",rt.value)}}function N(it,Bt){if(1&it&&(a.j41(0,"div"),a.DNE(1,p,5,2,"ion-list",21),a.nI1(2,"groupBy"),a.k0s()),2&it){const rt=a.XpG(2);a.R7$(1),a.Y8G("ngForOf",a.i5U(2,1,rt.product.order_product_attributes,"attribute_id"))}}function G(it,Bt){if(1&it&&(a.j41(0,"div")(1,"ion-item",27)(2,"ion-label",46),a.EFF(3),a.k0s()()()),2&it){const rt=a.XpG(2);a.R7$(3),a.SpI("Comentarios: ",rt.product.comments,"")}}function R(it,Bt){if(1&it&&(a.j41(0,"div"),a.DNE(1,N,3,4,"div",17),a.DNE(2,G,4,1,"div",17),a.k0s()),2&it){const rt=a.XpG();a.R7$(1),a.Y8G("ngIf",rt.product.order_product_attributes),a.R7$(1),a.Y8G("ngIf",rt.product.comments)}}function ne(it,Bt){if(1&it&&(a.j41(0,"ion-label",50),a.EFF(1),a.k0s()),2&it){const rt=a.XpG().$implicit;a.R7$(1),a.JRh(rt[1][0].value)}}function S(it,Bt){1&it&&(a.j41(0,"ion-chip",55)(1,"ion-label",56),a.EFF(2),a.nI1(3,"translate"),a.k0s()()),2&it&&(a.R7$(2),a.JRh(a.bMT(3,1,"REQUIRED")))}function se(it,Bt){if(1&it&&a.nrm(0,"app-pum-info",62),2&it){const rt=a.XpG().$implicit;a.Y8G("attribute",rt)}}function Me(it,Bt){if(1&it&&(a.j41(0,"p",63),a.EFF(1),a.nI1(2,"translate"),a.k0s()),2&it){const rt=a.XpG().$implicit;a.R7$(1),a.Lme(" ",rt.available_units," ",a.bMT(2,2,"AVAILABLE_UNITS")," ")}}function Fe(it,Bt){if(1&it&&(a.j41(0,"ion-label",64),a.EFF(1),a.nI1(2,"formatCurrency"),a.k0s()),2&it){const rt=a.XpG().$implicit,Pt=a.XpG(4);a.R7$(1),a.SpI(" ",a.i5U(2,1,rt.price_additional,Pt.currency)," ")}}function Re(it,Bt){if(1&it&&(a.j41(0,"ion-item"),a.nrm(1,"ion-radio",57),a.j41(2,"ion-label",58),a.EFF(3),a.DNE(4,se,1,1,"app-pum-info",59),a.DNE(5,Me,3,4,"p",60),a.k0s(),a.DNE(6,Fe,3,4,"ion-label",61),a.k0s()),2&it){const rt=Bt.$implicit;a.R7$(1),a.Y8G("value",rt.id)("disabled",0==rt.available_units),a.R7$(2),a.SpI("",rt.value," "),a.R7$(1),a.Y8G("ngIf",rt.pum),a.R7$(1),a.Y8G("ngIf",!rt.pum),a.R7$(1),a.Y8G("ngIf",rt.price_additional>0)}}function je(it,Bt){if(1&it){const rt=a.RV6();a.j41(0,"ion-list")(1,"ion-radio-group",51),a.bIt("ionChange",function(vt){a.eBV(rt);const $t=a.XpG().index,ct=a.XpG(2);return a.Njj(ct.updateControlRadio(vt,$t))}),a.j41(2,"ion-list-header")(3,"ion-item",52)(4,"ion-label",53),a.EFF(5),a.k0s(),a.DNE(6,S,4,3,"ion-chip",54),a.k0s()(),a.DNE(7,Re,7,6,"ion-item",21),a.k0s()()}if(2&it){const rt=a.XpG(),Pt=rt.index,vt=rt.$implicit,$t=a.XpG(2);a.R7$(1),a.Y8G("value",$t.valueControl[Pt]),a.R7$(4),a.SpI(" ",vt[1][0].attribute.display_name," "),a.R7$(1),a.Y8G("ngIf",vt[1][0].attribute.required),a.R7$(1),a.Y8G("ngForOf",vt[1])}}function at(it,Bt){1&it&&(a.j41(0,"ion-chip",55)(1,"ion-label",56),a.EFF(2),a.nI1(3,"translate"),a.k0s()()),2&it&&(a.R7$(2),a.JRh(a.bMT(3,1,"REQUIRED")))}function ft(it,Bt){if(1&it&&(a.j41(0,"ion-label",69),a.EFF(1),a.nI1(2,"formatCurrency"),a.k0s()),2&it){const rt=a.XpG().$implicit,Pt=a.XpG(4);a.R7$(1),a.JRh(a.i5U(2,1,rt.price_additional,Pt.currency))}}function Qe(it,Bt){if(1&it){const rt=a.RV6();a.j41(0,"ion-item",70)(1,"ion-button",71),a.bIt("click",function(){a.eBV(rt);const vt=a.XpG().index,$t=a.XpG(2).index,ct=a.XpG(2);return a.Njj(ct.removeMoreOne($t,vt))}),a.nrm(2,"ion-icon",72),a.k0s(),a.j41(3,"ion-label"),a.EFF(4),a.k0s(),a.j41(5,"ion-button",73),a.bIt("click",function(){a.eBV(rt);const vt=a.XpG().index,$t=a.XpG(2).index,ct=a.XpG(2);return a.Njj(ct.addMoreOne($t,vt))}),a.nrm(6,"ion-icon",74),a.k0s()()}if(2&it){const rt=a.XpG().index,Pt=a.XpG(2).index,vt=a.XpG(2);a.R7$(4),a.JRh(vt.valueControlCheckbox[Pt][rt].quantity)}}function nt(it,Bt){if(1&it){const rt=a.RV6();a.j41(0,"ion-item")(1,"ion-checkbox",65),a.bIt("ngModelChange",function(vt){const ct=a.eBV(rt).index,Be=a.XpG(2).index,Je=a.XpG(2);return a.Njj(Je.valueControlCheckbox[Be][ct].status=vt)})("ionChange",function(){a.eBV(rt);const vt=a.XpG(2).index,$t=a.XpG(2);return a.Njj($t.updateCheckedOptions(vt))}),a.k0s(),a.j41(2,"ion-label",66),a.EFF(3),a.nI1(4,"translate"),a.k0s(),a.DNE(5,ft,3,4,"ion-label",67),a.DNE(6,Qe,7,1,"ion-item",68),a.k0s()}if(2&it){const rt=Bt.$implicit,Pt=Bt.index,vt=a.XpG(2),$t=vt.index,ct=vt.$implicit,Be=a.XpG(2);a.R7$(1),a.Y8G("ngModel",Be.valueControlCheckbox[$t][Pt].status)("disabled",0==rt.available_units),a.R7$(2),a.E5c("",rt.value," (",rt.available_units," ",a.bMT(4,7,"AVAILABLE_UNITS"),")"),a.R7$(2),a.Y8G("ngIf",rt.price_additional>0),a.R7$(1),a.Y8G("ngIf",ct[1][0].attribute.is_more_one&&Be.valueControlCheckbox[$t][Pt].status)}}function _t(it,Bt){if(1&it&&(a.j41(0,"ion-list")(1,"ion-list-header")(2,"ion-label")(3,"ion-item",27)(4,"ion-label",53),a.EFF(5),a.k0s(),a.DNE(6,at,4,3,"ion-chip",54),a.k0s()()(),a.DNE(7,nt,7,9,"ion-item",21),a.k0s()),2&it){const rt=a.XpG().$implicit;a.R7$(5),a.SpI(" ",rt[1][0].attribute.display_name," "),a.R7$(1),a.Y8G("ngIf",rt[1][0].attribute.required),a.R7$(1),a.Y8G("ngForOf",rt[1])}}function Ge(it,Bt){if(1&it){const rt=a.RV6();a.j41(0,"div",75)(1,"ion-fab",76)(2,"ion-fab-button")(3,"ion-fab-button",77),a.bIt("colorPickerClose",function(){a.eBV(rt);const vt=a.XpG(3);return a.Njj(vt.closePicker())}),a.k0s()()(),a.j41(4,"ion-label",78),a.EFF(5),a.k0s()()}if(2&it){const rt=a.XpG(3);a.R7$(3),a.xc7("background",rt.color),a.R7$(2),a.SpI("C\xf3digo color: ",rt.color,"")}}function ht(it,Bt){if(1&it&&(a.j41(0,"div",79),a.nrm(1,"img",80),a.k0s()),2&it){const rt=a.XpG(3);a.xc7("background",rt.color)}}function It(it,Bt){if(1&it&&(a.j41(0,"div"),a.DNE(1,ne,2,1,"ion-label",47),a.DNE(2,je,8,4,"ion-list",17),a.DNE(3,_t,8,3,"ion-list",17),a.DNE(4,Ge,6,3,"div",48),a.DNE(5,ht,2,2,"div",49),a.k0s()),2&it){const rt=Bt.$implicit;a.R7$(1),a.Y8G("ngIf",1==rt[1][0].attribute.attribute_type_id),a.R7$(1),a.Y8G("ngIf",2==rt[1][0].attribute.attribute_type_id),a.R7$(1),a.Y8G("ngIf",3==rt[1][0].attribute.attribute_type_id),a.R7$(1),a.Y8G("ngIf",4==rt[1][0].attribute.attribute_type_id),a.R7$(1),a.Y8G("ngIf",4==rt[1][0].attribute.attribute_type_id)}}function Rt(it,Bt){if(1&it&&(a.j41(0,"div"),a.DNE(1,It,6,5,"div",21),a.k0s()),2&it){const rt=a.XpG();a.R7$(1),a.Y8G("ngForOf",rt.attributes)}}function At(it,Bt){if(1&it){const rt=a.RV6();a.j41(0,"ion-row",81)(1,"ion-col")(2,"ion-label"),a.EFF(3),a.nI1(4,"translate"),a.k0s(),a.j41(5,"ion-input",82),a.bIt("ngModelChange",function(vt){a.eBV(rt);const $t=a.XpG();return a.Njj($t.comments=vt)})("ionChange",function(){a.eBV(rt);const vt=a.XpG();return a.Njj(vt.inputCommentsChange())}),a.nI1(6,"translate"),a.k0s()()()}if(2&it){const rt=a.XpG();a.R7$(3),a.JRh(a.bMT(4,3,"COMMENTS_ADITIONAL")),a.R7$(2),a.FS9("placeholder",a.bMT(6,5,"COMMENTS_ADITIONAL_2")),a.Y8G("ngModel",rt.comments)}}function Ut(it,Bt){if(1&it){const rt=a.RV6();a.j41(0,"ion-footer",0)(1,"ion-toolbar",83)(2,"ion-grid")(3,"ion-row",84)(4,"ion-col",85)(5,"ion-item",86)(6,"ion-button",87),a.bIt("click",function(){a.eBV(rt);const vt=a.XpG();return a.Njj(vt.removeProductCart())}),a.nrm(7,"ion-icon",88),a.k0s(),a.j41(8,"ion-label",89),a.EFF(9),a.k0s(),a.j41(10,"ion-button",90),a.bIt("click",function(){a.eBV(rt);const vt=a.XpG();return a.Njj(vt.addProductCart())}),a.nrm(11,"ion-icon",91),a.k0s()()(),a.j41(12,"ion-col",92)(13,"ion-button",93),a.bIt("click",function(){a.eBV(rt);const vt=a.XpG();return a.Njj(vt.productChange(vt.propertyButtonAdd.id))}),a.j41(14,"ion-label",94),a.EFF(15),a.k0s(),a.j41(16,"ion-label",95),a.EFF(17),a.nI1(18,"formatCurrency"),a.k0s()()()()()()()}if(2&it){const rt=a.XpG();a.R7$(6),a.Y8G("disabled",!rt.quantity||0==rt.quantity||1==rt.quantity&&0==rt.product.quantity),a.R7$(3),a.JRh(rt.quantity),a.R7$(1),a.Y8G("disabled",rt.quantity>=rt.maxStock),a.R7$(3),a.FS9("color",rt.propertyButtonAdd.color),a.R7$(2),a.SpI(" ",rt.propertyButtonAdd.name," "),a.R7$(2),a.JRh(a.i5U(18,6,rt.priceTotal,rt.currency))}}let Wt=(()=>{class it{constructor(rt,Pt,vt,$t,ct,Be,Je,wt){this.navParams=rt,this.cartProvider=Pt,this.cityProvider=vt,this.utilsService=$t,this.modalCtrl=ct,this.translate=Be,this.storage=Je,this.corporateIdentityService=wt,this.attributes=[],this.valueControl=[],this.valueControlCheckbox=[],this.priceBruto=0,this.priceTotal=0,this.quantity=1,this.propertyButtonAdd={id:0,name:"",color:""},this.valuePointsCoin=1,this.stock=0,this.maxStock=0,this.product=this.cartProvider.deepCopy(rt.get("product")),this.origin=rt.get("origin")||"",this.priceBruto=this.product.priceAfterSpecialPriceTag?this.product.priceAfterSpecialPriceTag:this.product.priceAfterFlash?this.product.priceAfterFlash:this.product.priceAfterDiscount?this.product.priceAfterDiscount:this.product.price,(this.product.attributeText||"cart"==this.origin)&&(this.comments=this.product.comments),(this.product.addCart&&this.product.attributeText||"cart"==this.origin)&&(this.quantity=this.product.quantity),this.currency=this.corporateIdentityService.getCurrency()}ngOnInit(){"orderDetail"!=this.origin&&this.assingAttributes(),this.storage.get("parameters").then(rt=>{rt&&(this.valuePointsCoin=rt.value_points_coin)})}closePicker(){this.calculatePrice()}assingAttributes(){if(this.product.productAttributes&&this.product.productAttributes.length>1){let rt=Object.entries(this.product.product_attributes);this.attributes=rt;for(let Pt=0;Pt<this.attributes.length;Pt++){let vt=null,$t=this.attributes[Pt][1],ct=[];for(let Be=0;Be<$t.length;Be++){let Je=$t[Be];this.maxStock+=Je.available_units;let wt={id:Je.id,status:!1,quantity:1};if(this.product.attributeText||"cart"!=this.origin)3==Je.attribute.attribute_type_id&&ct.push(wt),4==Je.attribute.attribute_type_id&&(vt=String(Je.id),this.color=Je.value);else{let Jt=this.product.product_attributes_selected.find(ln=>ln.id==Je.id);Jt?2==Je.attribute.attribute_type_id?vt=Jt.id:3==Je.attribute.attribute_type_id?(wt={id:Jt.id,status:!0,quantity:Jt.quantity},ct.push(wt)):4==Je.attribute.attribute_type_id&&(vt=String(Jt.id),this.color=Jt.value):(3==Je.attribute.attribute_type_id&&ct.push(wt),4==Je.attribute.attribute_type_id&&(vt=String(Je.id),this.color=Je.value))}}this.valueControlCheckbox[Pt]=ct,this.valueControl.push(vt),!this.product.attributeText&&"cart"==this.origin&&ct.length&&this.updateCheckedOptions(Pt,!0)}}else this.maxStock=this.product.productAttributes&&1==this.product.productAttributes.length?this.product.productAttributes[0].available_units:this.product.max_units_per_order?Math.min(this.product.available_units,this.product.max_units_per_order):this.product.available_units;this.stock=this.maxStock,this.assignPropertyButton()}cancel(){this.modalCtrl.dismiss()}addProductCart(){this.quantity+=1,this.assignPropertyButton()}removeProductCart(){if(this.quantity>0){if(1==this.quantity&&!this.product.attributeText)return;this.quantity-=1}this.assignPropertyButton()}removeMoreOne(rt,Pt){this.valueControlCheckbox[rt][Pt].quantity>1&&(this.valueControlCheckbox[rt][Pt].quantity-=1),this.calculatePrice()}addMoreOne(rt,Pt){this.valueControlCheckbox[rt][Pt].quantity+=1,this.calculatePrice()}previewImage(rt){this.utilsService.openLink(rt.src)}updateCheckedOptions(rt,Pt){this.quantity=1,this.valueControl[rt]=this.valueControlCheckbox[rt],Pt||this.calculatePrice()}updateControlRadio(rt,Pt){this.quantity=1,this.valueControl[Pt]=rt.detail.value,this.calculatePrice()}inputCommentsChange(){this.product.comments=this.comments,this.product.addCart&&this.product.attributeText&&this.cartProvider.updateComments(this.product,this.comments)}calculatePrice(){this.priceTotal=0;let rt=0,Pt=[];if(this.valueControl&&this.valueControl.length)for(let vt=0;vt<this.valueControl.length;vt++){let $t=this.valueControl[vt];if($t&&!Array.isArray($t)){let ct=this.attributes[vt][1].find(Be=>Be.id==$t);ct&&2==ct.attribute.attribute_type_id&&ct.price_additional>0?rt+=ct.price_additional:ct&&4==ct.attribute.attribute_type_id&&(ct.value=this.color),Pt.push(ct),this.maxStock=this.product.max_units_per_order?Math.min(ct.available_units,this.product.max_units_per_order):ct.available_units}else if($t&&Array.isArray($t))for(let ct=0;ct<$t.length;ct++){const Be=$t[ct];if(Be.status){let Je=this.attributes[vt][1].find(wt=>wt.id==Be.id);Je&&3==Je.attribute.attribute_type_id&&Je.price_additional>0&&(rt+=Je.price_additional*Be.quantity),Je.quantity=Be.quantity,Pt.push(Je),this.maxStock=this.product.max_units_per_order?Math.min(Je.available_units,this.product.max_units_per_order):Je.available_units}}}this.priceTotal=(this.priceBruto+rt)*this.quantity,this.product.priceTotal=this.priceTotal,this.product.product_attributes_selected=Pt}assignPropertyButton(){this.product.addCart&&this.quantity>0&&this.quantity!=this.product.quantity&&this.product.attributeText?(this.propertyButtonAdd.id=1,this.propertyButtonAdd.name=this.translate.instant("BUTTONUPDATE"),this.propertyButtonAdd.color="secondary"):this.product.addCart&&this.quantity==this.product.quantity&&this.product.attributeText?(this.propertyButtonAdd.id=2,this.propertyButtonAdd.name=this.translate.instant("BUTTONINCART"),this.propertyButtonAdd.color="primary"):0==this.quantity&&this.product.attributeText?(this.propertyButtonAdd.id=3,this.propertyButtonAdd.name=this.translate.instant("BUTTONDELETE"),this.propertyButtonAdd.color="danger"):this.product.attributeText||"cart"!=this.origin?(this.propertyButtonAdd.id=4,this.propertyButtonAdd.name=this.translate.instant("BUTTONADD"),this.propertyButtonAdd.color="primary"):(this.propertyButtonAdd.id=5,this.propertyButtonAdd.name=this.translate.instant("BUTTONUPDATE"),this.propertyButtonAdd.color="secondary"),this.calculatePrice()}validateAttributes(){let rt=!0;for(let Pt=0;Pt<this.attributes.length;Pt++){let vt=this.attributes[Pt][1][0].attribute;if(vt.required&&!this.valueControl[Pt]){this.utilsService.presentToast(3e3,"warning","top",this.translate.instant("ATTRIBUTE_REQUIRED",{attribute:vt.display_name})),rt=!1;break}}return rt}productChange(rt){this.validateAttributes()&&(1==rt?(this.cartProvider.updateQuantity(this.product,this.quantity,"detail_product"),this.cancel()):2==rt?this.cancel():3==rt?(this.cartProvider.deleteProduct(this.product),this.cancel()):4==rt?(this.cartProvider.addProduct(this.product,this.quantity,"detail_product"),this.cancel()):5==rt&&(this.product.quantity=this.quantity,this.cartProvider.updateProduct(this.product,"detail_product"),this.cancel()))}playVideo(rt){y.play(rt)}itsImage(rt){if("mp4"!=rt.split(".")[1])return!0}static#e=this.\u0275fac=function(Pt){return new(Pt||it)(a.rXU(Q.y8),a.rXU(ie.m),a.rXU(Z.h),a.rXU(h.T),a.rXU(Q.W3),a.rXU(w.c$),a.rXU(D.n),a.rXU(x.r))};static#t=this.\u0275cmp=a.VBU({type:it,selectors:[["page-detail-product"]],decls:34,vars:26,consts:[[1,"ion-no-border"],["color","primary"],["slot","end"],["strong","","color","light",3,"click"],["no-bounce",""],["pager","",4,"ngIf"],["lines","none",4,"ngIf"],["lines","none",1,"ion-text-center","ion-text-wrap"],[1,"textItemProduct","textNameProduct"],["lines","none","class","ion-text-center item-primary",4,"ngIf"],["lines","none","class","align-item-flex item-primary-special",4,"ngIf"],["lines","none","class","align-item-flex item-primary",4,"ngIf"],["lines","none","class","ion-text-center item-secondary",4,"ngIf"],["lines","none","hidden","",1,"ion-text-center","item-secondary"],[1,"centerCoin",3,"price"],["lines","none",1,"ion-text-center","item-secondary"],[1,"ion-no-margin","textItemProduct"],[4,"ngIf"],["class","ion-margin-top",4,"ngIf"],["class","ion-no-border",4,"ngIf"],["pager",""],[4,"ngFor","ngForOf"],["class","imageDetailProduct","valid-url-image","",3,"src","click",4,"ngIf"],["src","assets/img/video_icon_default.png","class","videoDetailProduct",3,"click",4,"ngIf"],["valid-url-image","",1,"imageDetailProduct",3,"src","click"],["myImage",""],["src","assets/img/video_icon_default.png",1,"videoDetailProduct",3,"click"],["lines","none"],["src","assets/img/default.png",1,"imageDetailProduct"],["lines","none",1,"ion-text-center","item-primary"],[1,"textItemProduct","textPriceProduct"],["lines","none",1,"align-item-flex","item-primary-special"],[1,"priceDiscount","marginRight7","ion-text-end"],["color","secondary",1,"priceTag"],["name","pricetag-outline"],[1,"priceDiscount","marginRight7"],[1,"priceDecorationThrough","marginTop16","ion-text-start"],["lines","none",1,"align-item-flex","item-primary"],["name","flash-outline",1,"ion-text-start"],[1,"priceDecorationThrough","ion-text-start"],[1,"priceDecorationThrough","marginTop13","ion-text-start"],[3,"product","type"],["lines","none",4,"ngFor","ngForOf"],[1,"displayContents"],["class","pickerColor",3,"background",4,"ngIf"],[1,"pickerColor"],["text-wrap","",1,"textItemProduct"],["class","ion-text-center textItemProduct",4,"ngIf"],["class","divContainer","margin","",4,"ngIf"],["class","divSuite",3,"background",4,"ngIf"],[1,"ion-text-center","textItemProduct"],[3,"value","ionChange"],["lines","none",2,"width","100%"],["slot","start"],["color","danger","slot","end",4,"ngIf"],["color","danger","slot","end"],["color","danger",1,"ion-text-capitalize"],["slot","start","mode","md",3,"value","disabled"],[1,"ion-text-wrap","itemAttribute"],["style","margin-left: 10px;",3,"attribute",4,"ngIf"],["style","margin-left: 10px; color: grey; font-size: min(3vw, 10px);",4,"ngIf"],["class","ion-text-end",4,"ngIf"],[2,"margin-left","10px",3,"attribute"],[2,"margin-left","10px","color","grey","font-size","min(3vw, 10px)"],[1,"ion-text-end"],["slot","start",3,"ngModel","disabled","ngModelChange","ionChange"],[1,"ion-text-wrap","zindex"],["class","ion-text-end zindex",4,"ngIf"],["lines","none","class","ion-text-end moreOne zindex",4,"ngIf"],[1,"ion-text-end","zindex"],["lines","none",1,"ion-text-end","moreOne","zindex"],["slot","start","color","secondary","size","small","fill","outline",1,"f-s-8",3,"click"],["slot","icon-only","name","remove-outline"],["slot","end","color","secondary","size","small","fill","outline",1,"f-s-8",3,"click"],["slot","icon-only","name","add-outline"],["margin","",1,"divContainer"],["vertical","bottom","horizontal","start","slot","fixed",1,"fabColor"],[3,"colorPickerClose"],[1,"labelColor"],[1,"divSuite"],["src","assets/img/suite.png","alt","suite"],[1,"ion-margin-top"],["debounce","1000","type","text",1,"inputComments","ion-margin-top",3,"ngModel","placeholder","ngModelChange","ionChange"],["color","light"],[1,"align-items-center"],["size","5"],["lines","none",1,"containerQuantity"],["slot","start","color","secondary","size","small","fill","clear",1,"ion-no-margin",3,"disabled","click"],["name","remove-outline",1,"ion-no-margin"],[1,"ion-text-center"],["slot","end","color","secondary","size","small","fill","clear",1,"ion-no-margin",3,"disabled","click"],["name","add-outline",1,"ion-no-margin"],["size","7"],["expand","block",3,"color","click"],["slot","start",1,"b-l","ion-text-start","ion-float-left"],["slot","end",1,"b-r","ion-text-end","ion-float-right"]],template:function(Pt,vt){1&Pt&&(a.j41(0,"ion-header",0)(1,"ion-toolbar",1)(2,"ion-buttons",2)(3,"ion-button",3),a.bIt("click",function(){return vt.cancel()}),a.EFF(4),a.nI1(5,"translate"),a.k0s()()()(),a.j41(6,"ion-content",4)(7,"ion-list"),a.DNE(8,m,2,1,"ion-slides",5),a.DNE(9,K,3,2,"ion-item",6),a.DNE(10,re,2,0,"ion-item",6),a.j41(11,"ion-item",7)(12,"ion-label",8),a.EFF(13),a.k0s()(),a.DNE(14,U,4,4,"ion-item",9),a.DNE(15,fe,13,9,"ion-item",10),a.DNE(16,ue,8,8,"ion-item",11),a.DNE(17,pe,7,8,"ion-item",11),a.DNE(18,he,3,2,"ion-item",12),a.j41(19,"ion-item",13),a.nrm(20,"app-coin-info",14),a.k0s(),a.DNE(21,de,4,4,"ion-item",12),a.DNE(22,_e,4,4,"ion-item",12),a.DNE(23,Ee,4,4,"ion-item",12),a.j41(24,"ion-item",15)(25,"ion-label",16),a.EFF(26),a.nI1(27,"translate"),a.k0s()(),a.DNE(28,Ne,4,4,"ion-item",12),a.DNE(29,ge,4,4,"ion-item",12),a.DNE(30,R,3,2,"div",17),a.DNE(31,Rt,2,1,"div",17),a.DNE(32,At,7,7,"ion-row",18),a.k0s()(),a.DNE(33,Ut,19,9,"ion-footer",19)),2&Pt&&(a.R7$(4),a.JRh(a.bMT(5,22,"all.close")),a.R7$(4),a.Y8G("ngIf",vt.product.product_images.length>1),a.R7$(1),a.Y8G("ngIf",1==vt.product.product_images.length),a.R7$(1),a.Y8G("ngIf",0==vt.product.product_images.length),a.R7$(3),a.SpI(" ",vt.product.name," "),a.R7$(1),a.Y8G("ngIf",!vt.product.priceAfterSpecialPriceTag&&!vt.product.priceAfterFlash&&!vt.product.priceAfterDiscount),a.R7$(1),a.Y8G("ngIf",vt.product.priceAfterSpecialPriceTag),a.R7$(1),a.Y8G("ngIf",vt.product.priceAfterFlash),a.R7$(1),a.Y8G("ngIf",vt.product.priceAfterDiscount),a.R7$(1),a.Y8G("ngIf",vt.product.productAttributes&&1==vt.product.productAttributes.length&&vt.product.productAttributes[0].pum),a.R7$(2),a.Y8G("price",vt.product.price),a.R7$(1),a.Y8G("ngIf",vt.product.plu),a.R7$(1),a.Y8G("ngIf",vt.product.bar_code),a.R7$(1),a.Y8G("ngIf",vt.product.brand),a.R7$(3),a.Lme("",a.bMT(27,24,"AVAILABLE_UNITS"),": ",vt.stock," "),a.R7$(2),a.Y8G("ngIf",vt.product.max_units_per_order),a.R7$(1),a.Y8G("ngIf",vt.product.max_units_per_product),a.R7$(1),a.Y8G("ngIf","orderDetail"==vt.origin),a.R7$(1),a.Y8G("ngIf","orderDetail"!=vt.origin&&vt.product.productAttributes.length>1),a.R7$(1),a.Y8G("ngIf","orderDetail"!=vt.origin),a.R7$(1),a.Y8G("ngIf","orderDetail"!=vt.origin))},dependencies:[E.Sq,E.bT,Q.Jm,Q.QW,Q.eY,Q.ZB,Q.hU,Q.W9,Q.Q8,Q.YW,Q.M0,Q.lO,Q.eU,Q.iq,Q.$w,Q.uz,Q.he,Q.nf,Q.AF,Q.KO,Q.f0,Q.ln,Q.q3,Q.tR,Q.IO,Q.ai,Q.hB,Q.uR,Q.Je,Q.Gw,z.a,d.BC,d.vS,C.F,P.W,k,$.P,w.D9],styles:[".imageDetailProduct[_ngcontent-%COMP%]{display:block!important;margin:10px auto!important;height:400px}.videoDetailProduct[_ngcontent-%COMP%]{display:block!important;margin:10px auto!important;width:55px;height:55px}.textItemProduct[_ngcontent-%COMP%]{font-size:15px;color:var(--color-title)}.textNameProduct[_ngcontent-%COMP%], .textPriceProduct[_ngcontent-%COMP%]{font-weight:600;font-size:20px!important}.priceDiscount[_ngcontent-%COMP%]{font-weight:600;font-size:18px;color:var(--ion-color-secondary);display:flex;justify-content:flex-end}.marginRight7[_ngcontent-%COMP%]{margin-right:7px!important}.marginTop13[_ngcontent-%COMP%]{margin-top:13.5px!important}.marginTop16[_ngcontent-%COMP%]{margin-top:16.5px!important}.priceDecorationThrough[_ngcontent-%COMP%]{text-decoration:line-through!important}.buttonContainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.buttonRemove[_ngcontent-%COMP%]{border:none!important}.fontSize20[_ngcontent-%COMP%]{font-size:20px!important}.containerMoreOne[_ngcontent-%COMP%]{width:78px!important;height:25px!important;display:inline-flex!important;border:1px solid #d3d3d3!important;border-radius:5px!important}.labelMoreOne[_ngcontent-%COMP%]{height:20px!important;margin:5px 0 0!important;font-size:10px}.containerQuantity[_ngcontent-%COMP%]{border:1px solid #d3d3d3!important;border-radius:5px!important}.chipRequired[_ngcontent-%COMP%]{height:25px!important;font-size:10px!important;line-height:25px!important}.testcolor[_ngcontent-%COMP%] ion-col[_ngcontent-%COMP%]{width:51px;height:51px;border-radius:50%}button[_ngcontent-%COMP%]{width:100%;height:100%}.mydiv[_ngcontent-%COMP%]{height:100px;width:auto}.fabColor[_ngcontent-%COMP%]{position:relative;margin-top:10px}.divContainer[_ngcontent-%COMP%]{display:flex}.labelColor[_ngcontent-%COMP%]{margin-left:30px;margin-top:20px}.divSuite[_ngcontent-%COMP%]{height:210px}.displayContents[_ngcontent-%COMP%]{display:contents!important}.pickerColor[_ngcontent-%COMP%]{width:36px;height:36px;border-radius:50%;cursor:pointer;margin:0 5px}.align-items-center[_ngcontent-%COMP%]{align-items:center}.align-item-flex[_ngcontent-%COMP%]{align-items:flex-end}ion-item.moreOne[_ngcontent-%COMP%]{--inner-padding-end: 0px;--inner-padding-start: 0px}ion-label.zindex[_ngcontent-%COMP%]{z-index:3}ion-item.zindex[_ngcontent-%COMP%]{z-index:3}.centerCoin[_ngcontent-%COMP%]{display:grid;justify-content:center;align-content:space-between;width:-webkit-fill-available}.item-primary[_ngcontent-%COMP%]{height:38px}.item-primary-special[_ngcontent-%COMP%]{height:45px;align-items:normal}.item-secondary[_ngcontent-%COMP%]{height:25px;display:flex;flex-flow:row;align-content:center;justify-content:center;flex-wrap:wrap}.itemAttribute[_ngcontent-%COMP%]{display:flex;flex-flow:row;align-items:baseline}h5[_ngcontent-%COMP%]{font-size:min(2vw,8px)}.priceTag[_ngcontent-%COMP%]{display:flex;align-items:center}"]})}return it})()},30873:(He,L,o)=>{"use strict";o.d(L,{b:()=>x});var n=o(2978),y=o(77897),a=o(54171),Q=o(22882),ie=o(56610),Z=o(30537);function h(E,z){if(1&E){const d=n.RV6();n.j41(0,"ion-item")(1,"ion-label",6)(2,"ion-button",7),n.bIt("click",function(){n.eBV(d);const P=n.XpG();return n.Njj(P.cancel())}),n.EFF(3),n.nI1(4,"translate"),n.k0s()()()}if(2&E){const d=n.XpG();n.R7$(2),n.Y8G("disabled",d.loadingTerm),n.R7$(1),n.SpI(" ",n.bMT(4,2,"all.close")," ")}}function w(E,z){if(1&E){const d=n.RV6();n.j41(0,"ion-item")(1,"div",8)(2,"ion-checkbox",9),n.bIt("ionChange",function(P){n.eBV(d);const k=n.XpG();return n.Njj(k.changeAccept(P))}),n.k0s(),n.j41(3,"span",10),n.EFF(4),n.nI1(5,"translate"),n.k0s()()()}if(2&E){const d=n.XpG();n.R7$(2),n.Y8G("disabled",d.loadingTerm),n.R7$(2),n.JRh(n.bMT(5,2,"ACCEPT_DOCUMENT"))}}function D(E,z){if(1&E){const d=n.RV6();n.j41(0,"ion-item")(1,"ion-label",6)(2,"ion-button",7),n.bIt("click",function(){n.eBV(d);const P=n.XpG();return n.Njj(P.acceptDocument())}),n.EFF(3),n.nI1(4,"translate"),n.k0s()()()}if(2&E){const d=n.XpG();n.R7$(2),n.Y8G("disabled",d.loadingTerm),n.R7$(1),n.SpI(" ",n.bMT(4,2,"all.accept")," ")}}let x=(()=>{class E{constructor(d,C,P,k){this.modalCtrl=d,this.utilsService=C,this.translateService=P,this.platform=k,this.loadingTerm=!0,this.accept=!1,this.statusAccept=!1}ngOnInit(){this.utilsService.presentLoading(this.translateService.instant("all.loading_terms"));var d=this;setTimeout(()=>{d.utilsService.dismissLoading()},5e3)}ionViewDidEnter(){this.subscription=this.platform.backButton.subscribeWithPriority(9999,()=>{})}ionViewWillLeave(){this.subscription.unsubscribe()}loadComplete(d){this.utilsService.dismissLoading(),this.numPages=d._pdfInfo.numPages}pageRendered(d){this.pageNumber=d.pageNumber,this.pageNumber==this.numPages&&(this.loadingTerm=!1)}cancel(d=!1){this.modalCtrl.dismiss(d)}acceptDocument(){this.statusAccept?this.cancel(this.statusAccept):this.utilsService.presentToast(4e3,"warning","top",this.translateService.instant("ACCEPT_DOCUMENT_REQUIRED"))}changeAccept(d){this.statusAccept=d.detail.checked}static#e=this.\u0275fac=function(C){return new(C||E)(n.rXU(y.W3),n.rXU(a.T),n.rXU(Q.c$),n.rXU(y.OD))};static#t=this.\u0275cmp=n.VBU({type:E,selectors:[["app-modal-see-document"]],decls:10,vars:7,consts:[[1,"ion-no-border"],["color","primary"],[1,"responsive-text",2,"display","contents"],[1,"content"],[2,"width","100%","height","100%",3,"src","render-text","original-size","after-load-complete","page-rendered"],[4,"ngIf"],[1,"ion-text-center"],["size","default",3,"disabled","click"],[1,"ion-margin","p-r",2,"display","flex","flex-flow","row"],["color","primary","checked","false",3,"disabled","ionChange"],[1,"text_terms"]],template:function(C,P){1&C&&(n.j41(0,"ion-header",0)(1,"ion-toolbar",1)(2,"ion-title",2),n.EFF(3),n.k0s()()(),n.j41(4,"ion-content",3)(5,"pdf-viewer",4),n.bIt("after-load-complete",function($){return P.loadComplete($)})("page-rendered",function($){return P.pageRendered($)}),n.k0s()(),n.j41(6,"ion-footer"),n.DNE(7,h,5,4,"ion-item",5),n.DNE(8,w,6,4,"ion-item",5),n.DNE(9,D,5,4,"ion-item",5),n.k0s()),2&C&&(n.R7$(3),n.JRh(P.title),n.R7$(2),n.Y8G("src",P.url)("render-text",!0)("original-size",!1),n.R7$(2),n.Y8G("ngIf",!P.accept),n.R7$(1),n.Y8G("ngIf",P.accept),n.R7$(1),n.Y8G("ngIf",P.accept))},dependencies:[ie.bT,y.Jm,y.eY,y.W9,y.M0,y.eU,y.uz,y.he,y.BC,y.ai,y.hB,Z.c6,Q.D9],styles:["ion-content[_ngcontent-%COMP%]{scrollbar-width:none!important}.content[_ngcontent-%COMP%]::-webkit-scrollbar{display:none;overflow:hidden}.text_terms[_ngcontent-%COMP%]{margin:5px 10px}"]})}return E})()},15218:(He,L,o)=>{"use strict";o.d(L,{i:()=>k});var n=o(73308),y=o(2978),a=o(77897),Q=o(96168),ie=o(57291),Z=o(7125),h=o(54171),w=o(22882),D=o(56610);function x($,I){if(1&$){const g=y.RV6();y.j41(0,"ion-buttons",5)(1,"ion-button",6),y.bIt("click",function(){y.eBV(g);const m=y.XpG();return y.Njj(m.closeModal(!1))}),y.EFF(2),y.nI1(3,"translate"),y.k0s()()}2&$&&(y.R7$(2),y.JRh(y.bMT(3,1,"all.return")))}function E($,I){if(1&$&&y.nrm(0,"img",13),2&$){const g=y.XpG().$implicit,f=y.XpG(2);y.FCK("src","",f.cityProvider._urlGallery,"sucursals/",g.image,"",y.B4B)}}function z($,I){1&$&&y.nrm(0,"img",14)}function d($,I){if(1&$&&(y.j41(0,"div",15),y.EFF(1),y.k0s()),2&$){const g=y.XpG().$implicit;y.R7$(1),y.JRh(g.name)}}function C($,I){if(1&$){const g=y.RV6();y.j41(0,"ion-col",8)(1,"ion-card",9),y.bIt("click",function(){const T=y.eBV(g).$implicit,W=y.XpG(2);return y.Njj(W.sucursalSelected(T))}),y.DNE(2,E,1,2,"img",10),y.DNE(3,z,1,0,"img",11),y.DNE(4,d,2,1,"div",12),y.k0s()()}if(2&$){const g=I.$implicit;y.R7$(2),y.Y8G("ngIf",g.image),y.R7$(1),y.Y8G("ngIf",!g.image),y.R7$(1),y.Y8G("ngIf",!g.image)}}function P($,I){if(1&$&&(y.j41(0,"ion-grid")(1,"ion-row"),y.DNE(2,C,5,3,"ion-col",7),y.k0s()()),2&$){const g=y.XpG();y.R7$(2),y.Y8G("ngForOf",g.listSucursals)}}let k=(()=>{class ${constructor(g,f,m,T,W,K,re){this.navParams=g,this.sucursalProvider=f,this.storage=m,this.cityProvider=T,this.utilsService=W,this.translate=K,this.modalCtrl=re,this.statusButtonBack=this.navParams.get("buttonBack")}ngOnInit(){}ionViewDidLoad(){}ionViewWillEnter(){var g=this;this.utilsService.presentLoading(this.translate.instant("all.loading")).then((0,n.A)(function*(){(yield g.sucursalProvider.listSucursals()).subscribe(f=>{g.utilsService.dismissLoading(),g.listSucursals=f.listSucursals,g.storage.set("listSucursals",g.listSucursals)},f=>{g.utilsService.dismissLoading(),console.log("error listSucursals: ",f)})}))}sucursalSelected(g){this.storage.set("sucursalSelected",g),this.closeModal(g)}closeModal(g){this.modalCtrl.dismiss(g)}static#e=this.\u0275fac=function(f){return new(f||$)(y.rXU(a.y8),y.rXU(Q.g),y.rXU(ie.n),y.rXU(Z.h),y.rXU(h.T),y.rXU(w.c$),y.rXU(a.W3))};static#t=this.\u0275cmp=y.VBU({type:$,selectors:[["page-sucursal-connection"]],decls:8,vars:5,consts:[[1,"ion-no-border"],[1,"ion-text-center"],["slot","end",4,"ngIf"],["padding","",1,"card-background-page"],[4,"ngIf"],["slot","end"],["strong","","color","light",3,"click"],["col-6","","col-lg-3","","col-sm-6","","col-xs-6","",4,"ngFor","ngForOf"],["col-6","","col-lg-3","","col-sm-6","","col-xs-6",""],[1,"borderRadius7",3,"click"],[3,"src",4,"ngIf"],["src","../../assets/img/default_sucursal.png",4,"ngIf"],["class","card-title",4,"ngIf"],[3,"src"],["src","../../assets/img/default_sucursal.png"],[1,"card-title"]],template:function(f,m){1&f&&(y.j41(0,"ion-header",0)(1,"ion-toolbar",1),y.DNE(2,x,4,3,"ion-buttons",2),y.j41(3,"ion-title"),y.EFF(4),y.nI1(5,"translate"),y.k0s()()(),y.j41(6,"ion-content",3),y.DNE(7,P,3,1,"ion-grid",4),y.k0s()),2&f&&(y.R7$(2),y.Y8G("ngIf",m.statusButtonBack),y.R7$(2),y.JRh(y.bMT(5,3,"LABEL_SUCURSAL")),y.R7$(3),y.Y8G("ngIf",m.listSucursals))},dependencies:[D.Sq,D.bT,a.Jm,a.QW,a.b_,a.hU,a.W9,a.lO,a.eU,a.ln,a.BC,a.ai,w.D9],encapsulation:2})}return $})()},60822:(He,L,o)=>{"use strict";o.d(L,{P:()=>y});var n=o(2978);let y=(()=>{class a{transform(ie,Z){return Z=Z||"COP",new Intl.NumberFormat("en-US",{style:"currency",currency:Z,currencyDisplay:"narrowSymbol",minimumFractionDigits:0,maximumFractionDigits:2}).format(ie)+" "+Z}static#e=this.\u0275fac=function(Z){return new(Z||a)};static#t=this.\u0275pipe=n.EJ8({name:"formatCurrency",type:a,pure:!0})}return a})()},41683:(He,L,o)=>{"use strict";o.d(L,{Y:()=>a});var n=o(56610),y=o(2978);let a=(()=>{class Q{static#e=this.\u0275fac=function(h){return new(h||Q)};static#t=this.\u0275mod=y.$C({type:Q});static#n=this.\u0275inj=y.G2t({imports:[n.MD]})}return Q})()},99657:(He,L,o)=>{"use strict";o.d(L,{I:()=>y});var n=o(2978);let y=(()=>{class a{constructor(){}createLogEvent(ie,Z,h){}static#e=this.\u0275fac=function(Z){return new(Z||a)};static#t=this.\u0275prov=n.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})()},83254:(He,L,o)=>{"use strict";o.d(L,{c:()=>h});var n=o(22126),y=o(36075);const a=(0,n.F3)("FirebaseAnalytics",{web:()=>o.e(1453).then(o.bind(o,81453)).then(w=>new w.FirebaseAnalyticsWeb)});var Q=o(38503),ie=o(45312),Z=o(2978);let h=(()=>{class w{constructor(x){this.router=x,this.initialize(),this.router.events.pipe((0,Q.p)(E=>E instanceof y.wF)).subscribe(E=>{this.setScreenName(E.url)})}initialize(){n.Ii.isNativePlatform()||a.initializeFirebase(ie.c.firebase)}setScreenName(x){a.setScreenName({screenName:x,nameOverride:x})}logEvent(x,E,z="click",d=""){x&&a.logEvent({name:x.replace(/\s/g,"_"),params:{category:z,origin:E,data:d}})}setUserId(x){a.setUserId({userId:x})}static#e=this.\u0275fac=function(E){return new(E||w)(Z.KVO(y.Ix))};static#t=this.\u0275prov=Z.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})()},32144:(He,L,o)=>{"use strict";o.d(L,{H:()=>Q});var n=o(26409),y=o(45312),a=o(2978);let Q=(()=>{class ie{constructor(h){this.http=h,this.url=y.c.apiUrl}get(h,w,D){if(D||(D={params:new n.Nl}),w){D.params=new n.Nl;for(let x in w)D.params=D.params.set(x,w[x])}return this.http.get(this.url+"/"+h,D)}getFree(h,w,D){if(D||(D={params:new n.Nl}),w){D.params=new n.Nl;for(let x in w)D.params=D.params.set(x,w[x])}return this.http.get(this.url+"/"+h,D)}post(h,w,D){return this.http.post(this.url+"/"+h,w,D)}postFree(h,w,D){return this.http.post(this.url+"/"+h,w,D)}put(h,w,D,x){let E=new n.Lr({Authorization:"Bearer "+D});return this.http.put(this.url+"/"+h,w,{headers:E})}putFree(h,w,D){return this.http.put(this.url+"/"+h,w,D)}delete(h,w){return this.http.delete(this.url+"/"+h,w)}patch(h,w,D){return this.http.patch(this.url+"/"+h,w,D)}static#e=this.\u0275fac=function(w){return new(w||ie)(a.KVO(n.Qq))};static#t=this.\u0275prov=a.jDH({token:ie,factory:ie.\u0275fac,providedIn:"root"})}return ie})()},3366:(He,L,o)=>{"use strict";o.d(L,{G:()=>Z});var n=o(73308),y=o(2978),a=o(26409),Q=o(7125),ie=o(57291);let Z=(()=>{class h{constructor(D,x,E){this.http=D,this.cityService=x,this.storageService=E}getUrl(){return this.cityService._urlAdmin}get(D,x,E,z){var d=this;return(0,n.A)(function*(){const C=yield d.getAccessToken();try{x=C||x}catch{console.log("unauthorized",D)}let P=new a.Lr({Authorization:"Bearer "+x});if(z||(z={params:new a.Nl,headers:P}),E){z.params=new a.Nl;for(let k in E)z.params=z.params.set(k,E[k])}return d.http.get((yield d.cityService.getApiUrl())+"/"+D,z)})()}getFree(D,x,E){var z=this;return(0,n.A)(function*(){if(E||(E={params:new a.Nl}),x){E.params=new a.Nl;for(let d in x)E.params=E.params.set(d,x[d])}return z.http.get((yield z.cityService.getApiUrl())+"/"+D,E)})()}postFile(D,x,E,z){var d=this;return(0,n.A)(function*(){let C=new a.Lr({Authorization:"Bearer "+E});return d.http.post((yield d.cityService.getApiUrl())+"/"+D,x,{headers:C})})()}post(D,x,E){var z=this;return(0,n.A)(function*(){const d=yield z.getAccessToken();try{E=d||E}catch{console.log("unauthorized",D)}let C=new a.Lr({Authorization:"Bearer "+E});return z.http.post((yield z.cityService.getApiUrl())+"/"+D,x,{headers:C})})()}postFree(D,x,E){return this.http.post(this.cityService._urlApi+"/"+D,x,E)}put(D,x,E,z){let d=new a.Lr({Authorization:"Bearer "+E});return this.http.put(this.cityService._urlApi+"/"+D,x,{headers:d})}putFree(D,x,E){return this.http.put(this.cityService._urlApi+"/"+D,x,E)}delete(D,x,E){let z=new a.Lr({Authorization:"Bearer "+x});return E||(E={params:new a.Nl,headers:z}),this.http.delete(this.cityService._urlApi+"/"+D,E)}patch(D,x,E){return this.http.patch(this.cityService._urlApi+"/"+D,x,E)}getAccessToken(){return new Promise((D,x)=>{this.storageService.get("token").then(E=>{D(E?E.access_token:"")})})}static#e=this.\u0275fac=function(x){return new(x||h)(y.KVO(a.Qq),y.KVO((0,y.Rfq)(()=>Q.h)),y.KVO(ie.n))};static#t=this.\u0275prov=y.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})()},44796:(He,L,o)=>{"use strict";o.d(L,{u:()=>ie});var n=o(73308),y=o(2978),a=o(57291),Q=o(3366);let ie=(()=>{class Z{constructor(w,D){this.storage=w,this.api=D,this.oauthUrl="login",this.oauthRefreshUrl="refreshToken"}refreshToken(w){let D={refreshtoken:w};return new Promise((x,E)=>{this.api.postFree(this.oauthRefreshUrl,D).subscribe(z=>{x(z)},z=>{console.log("error getAccessToken: ",z),E(z)})})}getAccessToken(w,D){let x={username:w,password:D,type:"U"};return new Promise((E,z)=>{this.api.postFree(this.oauthUrl,x).subscribe(d=>{E(d)},d=>{console.log("error getAccessToken: ",d),z(d)})})}itIsAuthorized(w){var D=this;return new Promise(function(){var x=(0,n.A)(function*(E,z){(yield D.api.post("itIsAuthorized",{},w)).subscribe(d=>{E(d)},d=>{z(d)})});return function(E,z){return x.apply(this,arguments)}}())}invalidateToken(){this.storage.remove("token")}static#e=this.\u0275fac=function(D){return new(D||Z)(y.KVO(a.n),y.KVO(Q.G))};static#t=this.\u0275prov=y.jDH({token:Z,factory:Z.\u0275fac,providedIn:"root"})}return Z})()},46868:(He,L,o)=>{"use strict";o.d(L,{m:()=>x});var n=o(73308),y=o(2978),a=o(57291),Q=o(3366),ie=o(77897),Z=o(22882),h=o(54171),w=o(29885),D=o(99657);let x=(()=>{class E{constructor(d,C,P,k,$,I,g){this.storage=d,this.api=C,this.alertController=P,this.translateService=k,this.utilsService=$,this.userService=I,this.analyticsFacebookService=g,this.productsCartDiscount=[],this.productsCart=[],this.priceToDiscount=[],this._statusMinimumOrderPrice=!1,this._activeDiscount=!1,this._discountsApplied=[],this._listShowToast=[],this._serviceChargeEnabled=!1,this._serviceCharge=0,this.priceDomicileDefault=0,this.domicile_by_coverage=!1}getProductsCart(){this.storage.get("productsCart").then(d=>{d&&(this.productsCart=d)})}priceDomicileByCoverage(){return new Promise((d,C)=>{this.userService.getlastAddressUser().then(P=>{this._priceDomicile=P&&P.coverage?P.coverage.cost_delivery:this.priceDomicileDefault,d(!0)}).catch(P=>{C(!1),this._priceDomicile=this.priceDomicileDefault,console.log("error getlastAddressUser: ",P)})})}getPriceDomicile(){var d=this;this.storage.get("token").then(function(){var C=(0,n.A)(function*(P){P&&(d._priceDomicile="",d._minimumOrderPrice="",(yield d.api.get("parameters/info",P.access_token)).subscribe($=>{"success"==$.status&&(d.storage.set("parameters",$.parameters),d.domicile_by_coverage=$.parameters.cost_delivery_by_coverage,d.priceDomicileDefault=$.parameters.cost_delivery,d._minimumOrderPrice=$.parameters.minimum_order_price,1==$.parameters.cost_delivery_by_coverage?d.priceDomicileByCoverage().then(()=>{d.calculatePrice()}).catch(I=>{console.log("error")}):(d._priceDomicile=$.parameters.cost_delivery,d.calculatePrice()))},$=>{console.error("Error provider cart getPriceDomicile",$)}))});return function(P){return C.apply(this,arguments)}}())}getPaymentTypesDomicile(){var d=this;this.storage.get("token").then(function(){var C=(0,n.A)(function*(P){P&&(d._paymentTypes=[],(yield d.api.get("cart/paymentTypes/list",P.access_token)).subscribe($=>{"success"==$.status&&(d.storage.set("paymentTypes",$.paymentTypes),d._paymentTypes=$.paymentTypes)},$=>{console.error("Error provider cart getPriceDomicile",$)}))});return function(P){return C.apply(this,arguments)}}())}presentVALIDATEAGE(d,C,P){var k=this;return(0,n.A)(function*(){yield(yield k.alertController.create({header:k.translateService.instant("TITLE_VALIDATE_AGE"),message:k.translateService.instant("TEXT_VALIDATE_AGE"),buttons:[{text:"No",role:"cancel",cssClass:"secondary",handler:I=>{}},{text:"Si",handler:()=>{k.addProduct(d,C,P,!1)}}]})).present()})()}presentAlertUNITSORDER(){var d=this;return(0,n.A)(function*(){yield(yield d.alertController.create({header:d.translateService.instant("TITLE_MAX_UNITS_ORDER"),message:d.translateService.instant("TEXT_MAX_UNITS_ORDER"),buttons:["Ok"]})).present()})()}presentAlertAvailableUnits(){var d=this;return(0,n.A)(function*(){yield(yield d.alertController.create({header:d.translateService.instant("TITLE_AVAILABLE_UNITS_ORDER"),message:d.translateService.instant("TEXT_AVAILABLE_UNITS_ORDER"),buttons:["Ok"]})).present()})()}presentAlertAvailableUnitsItems(d,C){var P=this;return(0,n.A)(function*(){yield(yield P.alertController.create({header:P.translateService.instant("TITLE_AVAILABLE_UNITS_ORDER"),message:P.translateService.instant("ATTRIBUTE_REQUIRED_ITEMS",{attribute:d,value:C}),buttons:["Ok"]})).present()})()}validateItemsProduct(d,C,P,k){let $=0,I=0;if("remove"!=P){"detail_product"!=P&&(C=1);for(let g=0;g<this.productsCart.length;g++){let f=this.productsCart[g];f.id==d.id&&(d.product_attributes_selected&&d.product_attributes_selected[0]?f.product_attributes_selected&&f.product_attributes_selected[0]&&(I+=f.quantity,f.product_attributes_selected[0].value==d.product_attributes_selected[0].value&&($+=f.quantity)):(I+=f.quantity,$+=f.quantity))}}if(d.max_units_per_product&&C+I>d.max_units_per_product)return this.presentAlertUNITSORDER(),!1;if(d.max_units_per_order&&C+$>d.max_units_per_order)return this.presentAlertUNITSORDER(),!1;if(C+$>d.available_units)return this.presentAlertAvailableUnits(),!1;if(d.product_attributes_selected)for(let g=0;g<d.product_attributes_selected.length;g++){let f=d.product_attributes_selected[g];if(C+$>f.available_units)return this.presentAlertAvailableUnitsItems(f.attribute.display_name,f.value),!1}return!(d.validate_age&&!d.addCart&&k&&(this.presentVALIDATEAGE(d,C,P),1))}deepCopy(d){var C;if(null==d||"object"!=typeof d)return d;if(d instanceof Date)return(C=new Date).setTime(d.getTime()),C;if(d instanceof Array){C=[];for(var P=0,k=d.length;P<k;P++)C[P]=this.deepCopy(d[P]);return C}if(d instanceof Object){for(var $ in C={},d)d.hasOwnProperty($)&&(C[$]=this.deepCopy(d[$]));return C}throw new Error("Unable to copy obj! Its type isn't supported.")}addProduct(d,C,P,k=!0){if(this.validateItemsProduct(d,C,P,k)){var $={};$.CONTENT=d.name,$.CONTENT_ID=d.id,$.CONTENT_TYPE=d.category.name,$.CURRENCY="COP",this.analyticsFacebookService.createLogEvent("EVENT_NAME_ADDED_TO_CART",$,d.price);var I=this.deepCopy(d);I.addCart=!0,I.quantity=C,I.indexCart=this.productsCart.length,I.priceToDiscount=0,this.productsCart.push(I),this.storage.set("productsCart",this.productsCart),this.calculatePrice()}}updateQuantity(d,C,P){C>0?this.validateItemsProduct(d,C,P)&&(this.productsCart[d.indexCart].quantity=C,this.storage.set("productsCart",this.productsCart),this.calculatePrice()):d.priceToDiscount>0?this.showConfirmDeleteProductGift(d):this.deleteProduct(d)}showConfirmDeleteProductGift(d){this.alertController.create({header:"Producto obsequio",message:"Quieres eliminar el producto obsequio: "+d.name+"?",buttons:[{text:"Cancelar",handler:()=>{}},{text:"Eliminar!",handler:()=>{if(this.productsCart&&this.productsCart.length){if(typeof this.productsCart.find(P=>P.id!=d.id)>"u")for(let P=0;P<this.productsCart.length;P++)this.productsCart[P].priceToDiscount=d.priceToDiscount;this.storage.set("productsCart",this.productsCart)}this.deleteProduct(d)}}]}).then(C=>{C.present()})}updateProduct(d,C){if(this.validateItemsProduct(d,d.quantity,C)){let P=this.deepCopy(d);this.productsCart[d.indexCart]=P,this.storage.set("productsCart",this.productsCart),this.calculatePrice()}}deleteProduct(d){this.productsCart.splice(d.indexCart,1),this.updateIndexProductsInCart(),this.calculatePrice()}updateIndexProductsInCart(){if(this.productsCart&&this.productsCart.length){for(let d=0;d<this.productsCart.length;d++)this.productsCart[d].indexCart=d;this.storage.set("productsCart",this.productsCart)}}deleteAllProductsCart(){this.productsCart=[],this.storage.remove("productsCart"),this.storage.remove("productsCartCombo"),this.calculatePrice()}updateComments(d,C){this.productsCart[d.indexCart].comments=C,this.storage.set("productsCart",this.productsCart)}typeAttribute(d){let C=!0;if(d&&""!=d){let P=Object.entries(d);for(let k=0;k<P.length;k++){let $=P[k][1];for(let I=0;I<$.length;I++)1!=$[I].attribute.attribute_type_id&&(C=!1)}}return C}itemProductTour(d){d.attributeText=this.typeAttribute(d.product_attributes),d.priceAfterFlash=0,d.priceAfterDiscount=0,d.priceAfterSpecialPriceTag=0;let C=0,P=0,k=!1;for(let $=0;$<this.productsCart.length;$++){const I=this.productsCart[$];d.id==I.id&&(d.indexCart=$,C=I.quantity,P+=C,k=!0)}return k?(d.addCart=!0,d.quantity=C,d.quantityGlobal=P):(d.addCart=!1,d.quantity=0,d.quantityGlobal=0),d}calculatePrice(){if(this._subtotal=0,this._discount=0,this._total=0,this.productsCart&&this.productsCart.length){for(let d=0;d<this.productsCart.length;d++){let C=this.productsCart[d].quantity,P=this.productsCart[d].price,k=0,$=0,I=0,g=0,f=0;if(this.productsCart[d].priceAfterDiscount>0)k=C*(P-this.productsCart[d].priceAfterDiscount),this._discount+=k,I=this.productsCart[d].priceAfterDiscount;else if(this.productsCart[d].priceAfterFlash>0)k=C*(P-this.productsCart[d].priceAfterFlash),this._discount+=k,I=this.productsCart[d].priceAfterFlash;else if(this.productsCart[d].priceAfterSpecialPriceTag>0)k=C*(P-this.productsCart[d].priceAfterSpecialPriceTag),this._discount+=k,I=this.productsCart[d].priceAfterSpecialPriceTag;else if(typeof this.productsCart[d].priceToDiscount<"u"&&0!==this.productsCart[d].priceToDiscount){let T=this.productsCart[d].priceToDiscount;if(this.productsCart.find(W=>W.priceToDiscount==this.productsCart[d].priceToDiscount))if(1==this.productsCart[d].quantity&&this.productsCart.length>1)I=0,this._discount+=T;else if(2==this.productsCart[d].quantity&&this.productsCart.length>1){let W=this.productsCart.find(re=>re.priceToDiscount==T),K=this.productsCart.findIndex(re=>re.product_id==W.product_id);f+=0!==this.productsCart[K].priceWithDiscount?(this.productsCart[K].price-T)*C:T,I=f,this._discount+=T}else I=P;else I=P}else if(typeof this.productsCart[d].discountpercentageCombo<"u"&&0!==this.productsCart[d].discountpercentageCombo)if(this.productsCart.find(T=>1==T.pivotProduct)){this.productsCart.map((K,re)=>K.discountpercentageCombo&&1==K.quantity),this.getProductsCombos();const W=this.productsCart.every(K=>!(!K.discountpercentageCombo||1!=K.quantity));if(1==W||0==W)if(this.productsCart[d].pivotProduct)I=P;else{let K=this.productsCartDiscount.filter(fe=>fe.discountpercentageCombo&&!fe.pivotProduct),re=this.productsCart.filter(fe=>fe.discountpercentageCombo&&!fe.pivotProduct);0==K.filter(fe=>!re.some(ue=>fe.product_id==ue.product_id)).length?(k=this.productsCart[d].price*this.productsCart[d].discountpercentageCombo/100,I=P-k,this._discount+=k):I=P}else I=P}else I=P;else I=P;if(this.productsCart[d].product_attributes_selected&&this.productsCart[d].product_attributes_selected.length)for(let T=0;T<this.productsCart[d].product_attributes_selected.length;T++){let W=1;const K=this.productsCart[d].product_attributes_selected[T];K.quantity&&(W=K.quantity),g+=K.price_additional*W}$=I+g,this.productsCart[d].priceTotal=$,this.productsCart[d].priceWithDiscount=I;let m=this.productsCart.find(T=>T.priceToDiscount==P);this._subtotal+=m&&2==m.quantity&&m.priceToDiscount==P?$:C*$}"string"==typeof this._priceDomicile&&(this._priceDomicile=""!=this._priceDomicile?parseFloat(this._priceDomicile):this.priceDomicileDefault),this._total=this._subtotal+this._priceDomicile+this._serviceCharge,this.storage.get("parameters").then(d=>{this._statusMinimumOrderPrice=!!d&&d.minimum_order_price>this._subtotal})}}generateOrder(d,C){return this.api.post("cart/userCreateOrder",d,C)}copyProductsToOrder(d){for(let C=0;C<d.length;C++){let P=[];if(d[C].order_product_attributes&&d[C].order_product_attributes.length){for(let k=0;k<d[C].order_product_attributes.length;k++){let $=d[C].order_product_attributes[k];for(let I=0;I<d[C].products.product_attributes.length;I++){let g=d[C].products.product_attributes[I];g.product_id==d[C].product_id&&g.attribute_id==$.attribute_id&&g.value==$.value&&P.push(g)}}d[C].products.active&&(d[C].products.product_attributes_selected=P)}this.addProduct(d[C].products,d[C].quantity)}}getDiscounts(d){return this.api.get("cart/discount/list",d)}applyDiscount(d){if(!d.is_cumulative_another_discounts&&this._activeDiscount)this.utilsService.presentToast(4e3,"warning","top",this.translateService.instant("TEXT_TOAST_DISCOUNT")+d.name);else if(this.validateDateDiscount(d))if(this.validateDiscountRedeemed(d.id)){if(this.validateUserDiscount(d)){if(this._activeDiscount=!0,this._discountsApplied.push({discount_id:d.id,discount_type_id:d.discount_type_id}),d.price_discount)this._discount+=d.price_discount,this._total-=d.price_discount;else{let P=this._total*d.percentage_discount/100;this._discount+=P,this._total-=P}4===d.discount_type_id?this.utilsService.presentToast(4e3,"warning","top",d.message_to_user):this.toatDiscountApply(d.message_to_user)}}else this.toatDiscountApply(this.translateService.instant("TEXT2_TOAST_DISCOUNT"));else 4===d.discount_type_id&&this.toatDiscountApply("El descuento cup\xf3n: "+d.name+" no est\xe1 vigente")}validateDiscountRedeemed(d){let C=!1,P=!1;if(this._discountsApplied.length){for(let k=0;k<this._discountsApplied.length;k++)this._discountsApplied[k].discount_id==d&&(P=!0);C=!P}else C=!0;return C}validateUserDiscount(d){let C=!0;return d.discountOrderUsers&&!d.is_multiple_redeem&&(C=!1),C}validateDateDiscount(d){let C=!0,P=new Date,k=new Date(d.when_start.replace(/\s+/g,"T").concat(".000-05:00")),$=new Date(d.when_finish.replace(/\s+/g,"T").concat(".000-05:00"));return C=k.getTime()<P.getTime()&&$.getTime()>P.getTime(),C}toatDiscountApply(d){this._listShowToast.push({message:d})}showListToast(){let d=this._listShowToast,C=this.utilsService;if(d&&d.length)for(let P=0;P<d.length;P++)setTimeout(function(){C.presentToast(4e3,"warning","top",d[P].message)}.bind(P,d[P],C),4e3*P)}getProductsCombos(){this.storage.get("productsCartCombo").then(d=>{d&&(this.productsCartDiscount=d)})}productValidationCart(d,C){return this.api.post("cart/productValidationCart",d,C)}validationOrderForPayment(d,C){return this.api.post("cart/validationOrderForPayment",d,C)}updateAddressPrice(d){this.domicile_by_coverage?d?(this._priceDomicile=d.coverage?d.coverage.cost_delivery:this.priceDomicileDefault,this.calculatePrice()):this.priceDomicileByCoverage().then(()=>{this.calculatePrice()}).catch(C=>{console.log("error")}):this.calculatePrice()}static#e=this.\u0275fac=function(C){return new(C||E)(y.KVO(a.n),y.KVO(Q.G),y.KVO(ie.hG),y.KVO(Z.c$),y.KVO(h.T),y.KVO(w.D),y.KVO(D.I))};static#t=this.\u0275prov=y.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})()},7125:(He,L,o)=>{"use strict";o.d(L,{h:()=>h});var n=o(73308),y=o(2978),a=o(32144),Q=o(54171),ie=o(22882),Z=o(57291);let h=(()=>{class w{constructor(x,E,z,d){this.apiMain=x,this.utilsService=E,this.translate=z,this.storage=d,this._listCities=[],this._urlGallery="",this._urlApi="",this._urlAdmin=""}getListCitiesConnection(){var x=this;return new Promise(function(){var E=(0,n.A)(function*(z,d){x.utilsService.presentLoading(x.translate.instant("all.loading")).then(()=>{x.apiMain.getFree("listCitiesConnection").subscribe(C=>{x.utilsService.dismissLoading(),C&&(x._listCities=C.listCities,x.storage.set("listCities",x._listCities)),z(C)},C=>{x.utilsService.dismissLoading(),console.error("Erro provider getListCitiesConnection",C),d(C)})})});return function(z,d){return E.apply(this,arguments)}}())}getApiUrl(){var x=this;return(0,n.A)(function*(){return new Promise((E,z)=>{x.storage.get("infoHost").then(d=>{E(d.url_api)})})})()}getGalleryUrl(){var x=this;return(0,n.A)(function*(){return new Promise((E,z)=>{x.storage.get("infoHost").then(d=>{E(d.url_gallery)})})})()}getAdminUrl(){var x=this;return(0,n.A)(function*(){return new Promise((E,z)=>{x.storage.get("infoHost").then(d=>{E(d.url_admin)})})})()}getInfoHost(){var x=this;return(0,n.A)(function*(){return x.storage.get("infoHost").then(E=>{x._urlApi=E.url_api,x._urlAdmin=E.url_admin,x._urlGallery=E.url_gallery})})()}static#e=this.\u0275fac=function(E){return new(E||w)(y.KVO(a.H),y.KVO(Q.T),y.KVO(ie.c$),y.KVO(Z.n))};static#t=this.\u0275prov=y.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})()},69942:(He,L,o)=>{"use strict";o.d(L,{r:()=>ie});var n=o(73308),y=o(2978),a=o(57291),Q=o(3366);let ie=(()=>{class Z{constructor(w,D){this.storageService=w,this.apiService=D,this.key="corporateIdentity",this.storageService.get(this.key).then(x=>{x?this.corporateIdentity=x:this.getCorporateIdentity().then(E=>{this.corporateIdentity=E})})}getCorporateIdentity(){var w=this;return(0,n.A)(function*(){let D=yield w.apiService.getFree("corporate-identity");return D.subscribe({next:x=>{w.storageService.set("corporateIdentity",x),w.corporateIdentity=x},error:x=>{console.error("Error api service getCorporateIdentity",x)},complete:()=>{}}),D})()}getCurrency(){return this.corporateIdentity.currency}static#e=this.\u0275fac=function(D){return new(D||Z)(y.KVO(a.n),y.KVO(Q.G))};static#t=this.\u0275prov=y.jDH({token:Z,factory:Z.\u0275fac,providedIn:"root"})}return Z})()},26173:(He,L,o)=>{"use strict";o.d(L,{X:()=>w});var n=o(73308),y=o(2978),a=o(3366),Q=o(57291),ie=o(54171),Z=o(36075),h=o(7125);let w=(()=>{class D{constructor(E,z,d,C,P){this.api=E,this.storage=z,this.utilsService=d,this.router=C,this.cityProvider=P,this._listCategories=[],this._listCategoriesBusiness=[],this._listDirectoryBusiness=[],this._listForms=[],this._activateNewsLink=!0,this._urlNewsLink="https://www.saprissa.com/noticias"}infoCategories(E){var z=this;this.storage.get("token").then(function(){var d=(0,n.A)(function*(C){C&&(z._listCategories=[],(yield z.api.get("home/category/list/"+E,C.access_token)).subscribe(P=>{"success"==P.status&&(z._listCategories=P.categories)},P=>{console.error("Error provider home infoCategories",P)}))});return function(C){return d.apply(this,arguments)}}()).catch(d=>{console.log("error storage token",d)})}infoCategoriesBusiness(){var E=this;this.storage.get("token").then(function(){var z=(0,n.A)(function*(d){d&&(E._listCategoriesBusiness=[],(yield E.api.get("home/categoryBusiness/list",d.access_token)).subscribe(C=>{"success"==C.status&&(E._listCategoriesBusiness=C.business)},C=>{console.error("Error provider home infoCategoriesBusiness",C)}))});return function(d){return z.apply(this,arguments)}}()).catch(z=>{console.log("error storage token",z)})}infoDirectoryBusiness(){var E=this;this.storage.get("token").then(function(){var z=(0,n.A)(function*(d){d&&(E._listDirectoryBusiness=[],(yield E.api.get("home/categoryBusiness/list",d.access_token)).subscribe(C=>{"success"==C.status&&(E._listDirectoryBusiness=C.business)},C=>{console.error("Error provider home infoCategoriesBusiness",C)}))});return function(d){return z.apply(this,arguments)}}()).catch(z=>{console.log("error storage token",z)})}getSymbolicBallot(){var E=this;this.storage.get("token").then(function(){var z=(0,n.A)(function*(d){d&&(E._listSymbolicBallots=[],(yield E.api.get("symbolic_tickets/get",d.access_token)).subscribe(C=>{E._listSymbolicBallots=C},C=>{console.error("Error getSymbolicBallot",C)}))});return function(d){return z.apply(this,arguments)}}()).catch(z=>{console.log("error storage token",z)})}getTeamData(){var E=this;return new Promise(function(){var z=(0,n.A)(function*(d,C){(yield E.api.get("team_main")).subscribe(P=>{E._teamData=P,d(P)},P=>{console.error("Error getTeamData",P),C(P)})});return function(d,C){return z.apply(this,arguments)}}())}listSubcategories(E,z){return this.api.post("home/subcategory/list",{category_id:E},z)}listProductsSubcategory(E,z,d,C,P,k,$){return this.api.post("home/productsSubcategory/list/"+k,{subcategory_id:E,offset:z,take:d,valueOrder:C,orderSorting:P},$)}getProductsTrends(E,z,d,C){return this.api.post("home/productsTrends/"+d,{offset:E,take:z},C)}getProductsSubcategoryFilter(E,z,d,C,P,k){return this.api.post("home/productsSubcategoryFilter/"+P,{valueSearch:E,subCategory_id:z,offset:d,take:C},k)}getProductsPlu(E,z){return this.api.get("home/getProductsPlu/"+E,z)}getSymbolicPriceTicket(E,z){return this.api.get(`symbolic_tickets/get_prices/${E}`,z)}symbolicTicketPending(E,z,d,C){return this.api.post("symbolic_tickets/createSymbolicTicketPending",{symbolic_ticket_id:E,symbolic_ticket_price_id:z,quantity:d},C)}purchaseSymbolicTicket(E){let d=`${this.api.getUrl()}/symbolic_tickets/purchase/symbolic_ticket?uid=`+E;this.utilsService.openLink(d)}purchaseSubscriberSymbolicTicket(E,z){return this.api.post("symbolic_tickets/purchaseSubscriber",{uid:E},z)}getSimbolicTickets(E,z){return this.api.get(`symbolic_tickets/get_my_tickets/${E}/${z}`)}openAction(E,z,d){switch(E){case 1:if(z=parseInt(z),d.includes("business-directory")){let P=this._listDirectoryBusiness.find(k=>k.id===z);if(P){let k=!1;this._listDirectoryBusiness=P,this.router.navigate(["/business-directory-list/"+this._listDirectoryBusiness.id+"/"+k+"/"+this._listDirectoryBusiness.name])}}else if(d.includes("category-")){let P=this._listCategoriesBusiness.find(k=>k.id===z);if(P){let k=!1;this._listCategoriesBusiness=P,this.router.navigate(["/business-directory-list/"+this._listCategoriesBusiness.id+"/"+k+"/"+this._listCategoriesBusiness.name])}}else{let P=this._listCategories.find(k=>k.id===z);P&&(this._currentCategory=P,this.router.navigate(["/app/tabs/shop/item-detail"]))}break;case 2:this.utilsService.openLink(z);break;case 3:this.router.navigate([z])}}loadHomeImage(){var E=this;this.storage.get("token").then(function(){var z=(0,n.A)(function*(d){d&&(E._homeImage="",(yield E.api.get("homeImage/list",d.access_token)).subscribe(C=>{C&&"success"==C.status&&C.homeImageList&&(E._homeImage=E.cityProvider._urlGallery+"home_image/"+C.homeImageList.image)},C=>{console.log("Error loadHomeImage",C)}))});return function(d){return z.apply(this,arguments)}}()).catch(z=>{console.log("error storage token",z)})}getForms(){var E=this;this.storage.get("token").then(function(){var z=(0,n.A)(function*(d){if(d){let C={show_in_home:!0};(yield E.api.post("requests/forms",C,d.access_token)).subscribe(P=>{1==P.status&&(E._listForms=P.data)},P=>{console.log("Error loadHomeImage",P)})}});return function(d){return z.apply(this,arguments)}}()).catch(z=>{console.log("error storage token",z)})}static#e=this.\u0275fac=function(z){return new(z||D)(y.KVO(a.G),y.KVO(Q.n),y.KVO(ie.T),y.KVO(Z.Ix),y.KVO(h.h))};static#t=this.\u0275prov=y.jDH({token:D,factory:D.\u0275fac,providedIn:"root"})}return D})()},64230:(He,L,o)=>{"use strict";o.d(L,{w:()=>h});var n=o(73308),y=o(2978),a=o(32144),Q=o(57291),ie=o(3366),Z=o(69942);let h=(()=>{class w{constructor(x,E,z,d){this.apiMain=x,this.storage=E,this.apiService=z,this.corporateIdentityService=d}getParameters(){let x=this.apiMain.getFree("parameters/info");return x.subscribe(E=>{"success"==E.status&&(this._parametersMain=E.parameters,this.storage.set("parametersMain",E.parameters))},E=>{console.error("Error provider central getParameters",E)}),x}getCorporateIdentity(){var x=this;return(0,n.A)(function*(){return x.corporateIdentityService.getCorporateIdentity()})()}static#e=this.\u0275fac=function(E){return new(E||w)(y.KVO(a.H),y.KVO(Q.n),y.KVO(ie.G),y.KVO(Z.r))};static#t=this.\u0275prov=y.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})()},12692:(He,L,o)=>{"use strict";o.d(L,{w:()=>x});var n=o(73308);const a=(0,o(22126).F3)("Network",{web:()=>o.e(8135).then(o.bind(o,68135)).then(E=>new E.NetworkWeb)});var Q=o(2978),ie=o(77897),Z=o(22882),h=o(36075),w=o(54171),D=o(57291);let x=(()=>{class E{constructor(d,C,P,k,$){this.alertController=d,this.translateService=C,this.router=P,this.utilsService=k,this.storage=$,this.isOnline=!0,this.isSlowNetwork=!1,this.initNetworkListener()}initNetworkListener(){var d=this;return(0,n.A)(function*(){const C=yield a.getStatus();d.setNetworkStatus(C),a.addListener("networkStatusChange",P=>{d.setNetworkStatus(P)})})()}setNetworkStatus(d){this.alert&&(this.alert.dismiss(),this.alert=null),!this.isOnline&&d.connected&&window.location.reload(),this.isOnline=d.connected,this.checkNetworkSpeed(),(!this.isOnline||this.isSlowNetwork)&&this.showSlowSpeedNetworkAlert()}checkNetworkSpeed(){const d=navigator.connection;d?this.isSlowNetwork=["slow-2g","2g","3g"].includes(d.effectiveType):console.log("Network information API not supported in this browser.")}showSlowSpeedNetworkAlert(){var d=this;return(0,n.A)(function*(){console.log("hola");var C=[];let P=yield d.storage.get("token");var k=d.translateService.instant("NETWORKING.OFFLINE_MESSAGE");P?C.push({text:d.translateService.instant("GO_TO_TICKETS"),role:"confirm",handler:()=>{d.router.navigateByUrl("/tickets-list",{replaceUrl:!0})}}):k=d.translateService.instant("NETWORKING.OFFLINE_WITHOUT_LOGIN_MESSAGE"),d.isSlowNetwork&&C.push({text:d.translateService.instant("WAIT"),role:"cancel"}),d.alert=yield d.alertController.create({header:d.translateService.instant("NETWORKING.OFFLINE_TITLE"),message:k,backdropDismiss:!1,buttons:C}),yield d.alert.present()})()}static#e=this.\u0275fac=function(C){return new(C||E)(Q.KVO(ie.hG),Q.KVO(Z.c$),Q.KVO(h.Ix),Q.KVO(w.T),Q.KVO(D.n))};static#t=this.\u0275prov=Q.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})()},88885:(He,L,o)=>{"use strict";o.d(L,{f:()=>x});var n=o(73308),y=o(42294),a=o(54709),Q=o(22126),ie=o(2978),Z=o(57291),h=o(77897),w=o(22882),D=o(3366);let x=(()=>{class E{constructor(d,C,P,k,$,I){this.storage=d,this.platform=C,this.translate=P,this.navCtrl=k,this.alertController=$,this.api=I,this.minimumValidationTime=864e5}getParameters(d){var C=this;return new Promise(function(){var P=(0,n.A)(function*(k,$){(yield C.api.getFree("parameters/info"+(d?"?keys="+d:""))).subscribe(g=>{"success"==g.status&&(d||(C.parameters=g.parameters,C.storage.set("parameters",g.parameters))),k(g)},g=>{console.error("Error provider getParameters",g),$(g)})});return function(k,$){return P.apply(this,arguments)}}())}startApp(d){var C=this;return(0,n.A)(function*(){Q.Ii.isNativePlatform()?C.getParameters().then(P=>{C.runNavigation(P.parameters,d)}).catch(P=>{console.log("error startApp service: ",P)}):d&&C.navCtrl.navigateRoot("/welcome")})()}runNavigation(d,C){var P=this;return(0,n.A)(function*(){var k=(yield y.q.getInfo()).version;let $=parseInt(d.minimal_version.split(".").join("")),I=parseInt(k.split(".").join("")),g=Q.Ii.getPlatform();"android"==g&&$>I?P.showConfirmVersionAppOld(d.android_play_store,d.optional_app_upgrade,!0,C):"ios"==g&&$>I?P.showConfirmVersionAppOld(d.ios_app_store,d.optional_app_upgrade_ios,!1,C):C&&P.navCtrl.navigateRoot("/welcome")})()}showConfirmVersionAppOld(d,C=!1,P=!1,k=!1){var $=this;return(0,n.A)(function*(){let I=[];C&&I.push({text:$.translate.instant("BUTTON3_ALERT_UPDATE_APP"),handler:()=>{$.lastValidationDate=(new Date).getTime(),k&&$.navCtrl.navigateRoot("/welcome")}}),P&&I.push({text:$.translate.instant("BUTTON1_ALERT_UPDATE_APP"),handler:()=>{$.exitApp(),$.navCtrl.navigateRoot("/welcome")}}),I.push({text:$.translate.instant("BUTTON2_ALERT_UPDATE_APP"),handler:()=>{a.y.openStoreListing({appId:d}),$.showConfirmVersionAppOld(d,C,P,k)}});const g=yield $.alertController.create({header:$.translate.instant("TITLE_ALERT_UPDATE_APP"),message:$.translate.instant("TEXT_ALERT_UPDATE_APP"),backdropDismiss:!1,buttons:I});(!$.lastValidationDate||(new Date).getTime()-$.lastValidationDate>$.minimumValidationTime)&&($.lastValidationDate=null,yield g.present())})()}exitApp(){this.backButtonSubscription=this.platform.backButton.subscribe(()=>{navigator.app.exitApp()})}static#e=this.\u0275fac=function(C){return new(C||E)(ie.KVO(Z.n),ie.KVO(h.OD),ie.KVO(w.c$),ie.KVO(h.q9),ie.KVO(h.hG),ie.KVO(D.G))};static#t=this.\u0275prov=ie.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})()},57291:(He,L,o)=>{"use strict";o.d(L,{n:()=>Q});var n=o(73308),y=o(2978),a=o(89818);let Q=(()=>{class ie{constructor(h){this.storage=h,this._storage=null,this.init()}init(){var h=this;return(0,n.A)(function*(){const w=yield h.storage.create();h._storage=w})()}set(h,w){this._storage?.set(h,w)}get(h){return this._storage?.get(h)}remove(h){var w=this;return(0,n.A)(function*(){yield w._storage.remove(h)})()}clear(){var h=this;return(0,n.A)(function*(){yield h._storage.clear()})()}static#e=this.\u0275fac=function(w){return new(w||ie)(y.KVO(a.w))};static#t=this.\u0275prov=y.jDH({token:ie,factory:ie.\u0275fac,providedIn:"root"})}return ie})()},96168:(He,L,o)=>{"use strict";o.d(L,{g:()=>a});var n=o(2978),y=o(3366);let a=(()=>{class Q{constructor(Z){this.api=Z}listSucursals(){return this.api.getFree("listSucursals")}updateSucursalUser(Z,h){return this.api.post("user/updateSucursalUser",{sucursal_id:Z},h)}static#e=this.\u0275fac=function(h){return new(h||Q)(n.KVO(y.G))};static#t=this.\u0275prov=n.jDH({token:Q,factory:Q.\u0275fac,providedIn:"root"})}return Q})()},29885:(He,L,o)=>{"use strict";o.d(L,{D:()=>$});var n=o(73308),y=o(15218),a=o(22871),Q=o.n(a),ie=o(22126),Z=o(2978),h=o(3366),w=o(32144),D=o(57291),x=o(44796),E=o(54171),z=o(77897),d=o(96168),C=o(22882),P=o(36075),k=o(56610);let $=(()=>{class I{constructor(f,m,T,W,K,re,U,fe,ue,pe,he,de,_e){this.api=f,this.apiMainProvider=m,this.storage=T,this.auth=W,this.utilsService=K,this.platform=re,this.sucursalProvider=U,this.modalCtrl=fe,this.translateService=ue,this.alertController=pe,this.router=he,this.navCtrl=de,this.location=_e,this.invitedUser="invitado@invitado",this.testingUser="test@test"}signup(f,m){return new Promise((T,W)=>{this.apiMainProvider.postFree("user/signup",{accountInfo:f,name_database:m}).subscribe(re=>{"success"==re.status?this.auth.getAccessToken(f.email,f.password).then(U=>{this.storage.set("token",{access_token:U.access_token,token_refresh:U.refresh_token}),this.utilsService._HAS_LOGGED_IN=!0,this.storage.set("HAS_LOGGED_IN",!0),this.infoUser(f.email,f.password,U.access_token).then(fe=>{this.savePlayerOnesignal(),this.registerDiscountShipments(U.access_token),this.utilsService._HAS_LOGGED_IN=!0,this.storage.set("HAS_LOGGED_IN",!0),this.storage.get("sucursalSelected").then(ue=>{ue?this.sucursalProvider.updateSucursalUser(ue.id,U.access_token).then(pe=>{T(pe)}):T(fe)}),T(fe)})}).catch(U=>{console.log("error getTokenUser: ",U),W(U)}):W(re)},re=>{console.error("error provider signup: ",re),W(re)})})}isPreabonadoByEmail(f){return new Promise((m,T)=>{this.api.postFree("tickets/isPreabonadoByEmail",{email:f}).subscribe(W=>{m(W)},W=>{T(W),console.error("error provider isPreabonadoByEmail: ",W)})})}isPreabonadoByDocSuscription(f){return new Promise((m,T)=>{this.api.postFree("tickets/isPreabonadoByDocSuscription",f).subscribe(W=>{m(W)},W=>{T(W),console.error("error provider isPreabonadoByDocSuscription: ",W)})})}uploadProfilePhoto(f,m){var T=this;return new Promise(function(){var W=(0,n.A)(function*(K,re){(yield T.api.postFile("user/uploadImageProfile",f,m)).subscribe(U=>{K(U)},U=>{re(U),console.error("error provider uploadProfilePhoto: ",U)})});return function(K,re){return W.apply(this,arguments)}}())}infoUser(f,m,T){var W=this;return new Promise(function(){var K=(0,n.A)(function*(re,U){let fe={email:f};(yield W.api.post("user/info",fe,T)).subscribe(ue=>{if("success"==ue.status){let pe=ue.user;pe.password=m,W.storage.set("infoUser",pe),setTimeout(()=>{W.getInfoUser()},300)}re(ue)},ue=>{U(ue),console.error("error provider infoUser: ",ue)})});return function(re,U){return K.apply(this,arguments)}}())}loginAuthMain(f,m){return this.apiMainProvider.postFree("validate/login",{email:f,name_database:m})}facebookAuthMain(f,m){return this.apiMainProvider.postFree("loginSocial",{accessToken:f,provider:"facebook",name_database:m})}appleAuthMain(f,m){return this.apiMainProvider.postFree("loginSocial",{accessToken:f,provider:"apple",name_database:m})}facebookAuth(f){return this.api.postFree("loginSocial",{accessToken:f,provider:"facebook"})}appleAuth(f){return this.api.postFree("loginSocial",{accessToken:f,provider:"apple"})}getDocumentType(f,m){var T=this;return new Promise(function(){var W=(0,n.A)(function*(K,re){(yield T.api.get("user/getDocumentTypes",f,m)).subscribe({next:U=>{"success"==U.status&&(T._documentType=U.documents_types),K(U)},error:U=>{re(U),console.error("error provider infoUser: ",U)}})});return function(K,re){return W.apply(this,arguments)}}())}getInfoUser(){return new Promise((f,m)=>{this.storage.get("infoUser").then(T=>{T&&(this._infoUser=T,f(T))},m)})}updateInfoUser(f,m,T){return new Promise((W,K)=>{this.api.put("user/update",f,T).subscribe(re=>{if("success"==re.status){let U=re.user;U.password=m,this.storage.set("infoUser",U),setTimeout(()=>{W(re),this.getInfoUser()},300)}},re=>{K(re),console.error("error provider infoUser: ",re)})})}savePlayerOnesignal(){var f=this;return(0,n.A)(function*(){if(ie.Ii.isNativePlatform()){const m=yield f.api.getAccessToken();Q().User.pushSubscription.getIdAsync().then(T=>{f.api.put("user/saveOnesignalPlayerId",{playerId:T},m).subscribe(K=>{console.log("updateOnesignalPnsId: ",K)},K=>{console.error("updateOnesignalPnsIdError: ",K)})})}})()}sendMailbox(f,m){return this.api.post("user/mailbox",{mailbox:f},m)}getMessages(f){return this.api.get("user/messages",f)}newMessage(f,m){return this.api.post("user/newMessage",{message:f},m)}rememberPassword(f){return this.apiMainProvider.postFree("recoverPassword",{email:f})}getlastAddressUser(){return new Promise((f,m)=>{this.storage.get("infoUser").then(T=>{let W=null;T&&(W=T.addresses.find(K=>1==K.last_used)),f(W)},m)})}updateLastUsedAddress(f){var m=this;return(0,n.A)(function*(){(yield m.api.post(`users/addresses/${f}/set-default`,{})).subscribe(T=>{console.log("updateLastUsedAddress: ",T)},T=>{console.error("error getting delivery price: ",T)}),m.storage.get("infoUser").then(T=>{if(T){for(let W=0;W<T.addresses.length;W++)T.addresses[W].last_used=T.addresses[W].id==f?1:0;m._infoUser=T,m.storage.set("infoUser",m._infoUser)}})})()}changeCityUser(f,m){return new Promise((T,W)=>{this.storage.get("infoHost").then(K=>{K&&this.loginAuthMain(f,K.name_database).subscribe(re=>{"success"==re.status&&this.auth.getAccessToken(f,m).then(U=>{null==U.m?(this.storage.set("token",{access_token:U.access_token,token_refresh:U.refresh_token}),this.infoUser(f,m,U.access_token).then(fe=>{"success"==fe.status&&(this.savePlayerOnesignal(),K.sucursal_products&&this.storage.get("sucursalSelected").then(ue=>{this.openModalSucursalConnection(U.access_token)}))},fe=>{console.log("error getInfoUser changeCityUser",fe)})):this.utilsService.presentToast(3e3,"warning","top",U.m)}).catch(U=>{console.log("getAccessToken error: ",U)})},re=>{console.log("error loginAuthMain: ",re),W(re)})})})}openModalSucursalConnection(f){var m=this;return(0,n.A)(function*(){const T=yield m.modalCtrl.create({component:y.i,componentProps:{buttonBack:!1}});yield T.present();const{data:W}=yield T.onWillDismiss();W&&m.sucursalProvider.updateSucursalUser(W.id,f)})()}changeCityUserFacebook(f){return new Promise((m,T)=>{this.storage.get("infoHost").then(W=>{W&&this.facebookAuthMain(f.accessToken,W.name_database).subscribe(K=>{this.facebookAuth(f.accessToken).subscribe(re=>{this.storage.set("infoUser",re.userInfo),setTimeout(()=>{this.getInfoUser()},300),this.storage.set("token",{access_token:re.token.access_token,token_refresh:re.token.refresh_token}),this.savePlayerOnesignal(),this.storage.get("sucursalSelected").then(fe=>{fe&&this.sucursalProvider.updateSucursalUser(1,re.token.access_token)}),m(re)},re=>{console.log("error facebookAuth: ",re)})},K=>{console.log("error facebookAuthMain",K),T(K)})})})}saveCardCredit(f,m,T){let W=f.date.split("/"),K={name:f.name,expiryMonth:W[0],expiryYear:"20"+W[1],cardNumber:f.numberCard.split(" ").join(""),type:"Card",cvc:f.cvc,paymentMethod:m};return this.api.post("wpgw/cc/register",K,T)}listCreditCard(f){return this.api.get("wpgw/cc/all",f)}getPointsSale(f){return this.api.get("orders/getPointsSale",f)}deleteCreditCard(f,m){return this.api.delete("wpgw/cc/delete/"+f,m)}selectDefaultCard(f,m){return this.api.put("wpgw/cc/current/"+f,{},m)}generateVerifyCard(f,m){return this.api.put("wpgw/cc/apply/verification/"+f,{},m)}sendValueVerifyCard(f,m,T){return this.api.put("wpgw/cc/verify/"+f,{amount:m},T)}generateOrderPaymentTDC(f,m){return this.api.post("wpgw/cc/apply/charge",{amount:f},m)}registerDiscountShipments(f){var m=this;return(0,n.A)(function*(){(yield m.api.get("user/registerDiscountShipments",f)).subscribe(W=>{console.log("res registerDiscountShipments: ",W)},W=>{console.error("Error registerDiscountShipments",W)})})()}updateViewTutorial(f){var m=this;return(0,n.A)(function*(){(yield m.api.get("user/updateViewTutorial",f)).subscribe(W=>{m._infoUser.user_info.is_tutorial_viewed=!0},W=>{console.error("Error updateViewTutorial",W)})})()}updateLastSession(){var f=this;return new Promise((m,T)=>{this.storage.get("token").then(function(){var W=(0,n.A)(function*(K){K&&(yield f.api.get("user/updateLastSession",K.access_token)).subscribe(U=>{m(U)},U=>{T(),console.error("Error updateLastSession",U)})});return function(K){return W.apply(this,arguments)}}())})}getCurrentCoinsUser(){var f=this;return new Promise((m,T)=>{this.storage.get("token").then(function(){var W=(0,n.A)(function*(K){K&&(yield f.api.get("coins/info",K.access_token)).subscribe(U=>{m(U)},U=>{T(),console.error("Error updateLastSession",U)})});return function(K){return W.apply(this,arguments)}}())})}deleteAccount(f){var m=this;return new Promise((T,W)=>{this.storage.get("token").then(function(){var K=(0,n.A)(function*(re){re&&(yield m.api.delete("user/deleteSystemUser/"+f,re.access_token)).subscribe(U=>{T(U)},U=>{W(U),console.error("error provider deleteAccount: ",U)})});return function(re){return K.apply(this,arguments)}}())})}getSexType(){this._sexType=[{id:"M",name:this.translateService.instant("MALE")},{id:"F",name:this.translateService.instant("FEMALE")},{id:"I",name:this.translateService.instant("NONBINARY")}]}validateAlertsUseApp(f="document",m=!1){return this.messageText||this.loadTextAlerts(),!(!this._infoUser||(2==this._infoUser.id?(this.alertUserInvited(m),1):f&&"comingSoon"==f?(this.confirmationAlertWithGenericMessage(this.messageText.textFeatureComingSoon,m),1):f&&"document"==f&&!this._infoUser.document?(this.alertUserInformationUpdate(m),1):f&&"coins"==f&&!this._infoUser.coin_uid?(this.alertUserWalletRegistrationConfirmation(m),1):f&&"isSubscriber"==f&&!this._infoUser.is_subscriber&&(this.confirmationAlertWithGenericMessage(this.messageText.textValidateUserSubscriberCard,m),1)))}loadTextAlerts(){var f=this;return(0,n.A)(function*(){yield f.translateService.get(["TITLE_VALIDATE_INVITED","TEXT_VALIDATE_INVITED","TEXT_VALIDATE_USER_INFORMATION","TEXT_VALIDATE_USER_SUBSCRIBER_CARD","TEXT_VALIDATE_REGISTER_API","TEXT_CANCEL_ACTION","TEXT_SIGN_UP","TEXT_UPDATE_PROFILE","BUTTON_OK","COMING_SOON"]).subscribe(m=>{f.messageText={titleValidateUser:m.TITLE_VALIDATE_INVITED,textValidateInvited:m.TEXT_VALIDATE_INVITED,textValidateUserInformation:m.TEXT_VALIDATE_USER_INFORMATION,textValidateUserSubscriberCard:m.TEXT_VALIDATE_USER_SUBSCRIBER_CARD,textValidateUserWalletRegistrationConfirmation:m.TEXT_VALIDATE_REGISTER_API,textCancel:m.TEXT_CANCEL_ACTION,textSignup:m.TEXT_SIGN_UP,textUpdateProfile:m.TEXT_UPDATE_PROFILE,textOk:m.BUTTON_OK,textFeatureComingSoon:m.COMING_SOON}})})()}alertUserInvited(f=!1){var m=this;return(0,n.A)(function*(){yield(yield m.alertController.create({header:m.messageText.titleValidateUser,message:m.messageText.textValidateInvited,backdropDismiss:!1,buttons:[{text:m.messageText.textCancel,handler:()=>{f&&m.location.back()}},{text:m.messageText.textSignup,handler:()=>{m.storage.remove("token"),m.storage.remove("infoUser"),m.navCtrl.navigateRoot("/city-connection")}}]})).present()})()}alertUserInformationUpdate(f=!1){var m=this;return(0,n.A)(function*(){yield(yield m.alertController.create({header:m.messageText.titleValidateUser,message:m.messageText.textValidateUserInformation,backdropDismiss:!1,buttons:[{text:m.messageText.textCancel,handler:()=>{f&&m.location.back()}},{text:m.messageText.textUpdateProfile,handler:()=>{m.router.navigate(["/user-profile"])}}]})).present()})()}alertUserWalletRegistrationConfirmation(f=!1){var m=this;return(0,n.A)(function*(){yield(yield m.alertController.create({header:m.messageText.titleValidateUser,message:m.messageText.textValidateUserWalletRegistrationConfirmation,backdropDismiss:!1,buttons:[{text:m.messageText.textCancel,handler:()=>{f&&m.location.back()}},{text:m.messageText.textUpdateProfile,handler:()=>{m.router.navigate(["/user-profile"])}}]})).present()})()}confirmationAlertWithGenericMessage(f,m=!1){var T=this;return(0,n.A)(function*(){yield(yield T.alertController.create({header:T.messageText.titleValidateUser,message:f,backdropDismiss:!1,buttons:[{text:T.messageText.textOk,handler:()=>{m&&T.location.back()}}]})).present()})()}getUserCards(f,m,T){var W=this;return(0,n.A)(function*(){return W.api.get(`user/cards/${f}/${m}/${T}`,yield W.utilsService.getAccessToken())})()}getMemberships(){var f=this;return(0,n.A)(function*(){return f.api.get("users/memberships")})()}isRestrictedUser(){let f=!1;return this._infoUser&&(this._infoUser.email.includes(this.invitedUser)||this._infoUser.email.includes(this.testingUser))&&(f=!0),f}static#e=this.\u0275fac=function(m){return new(m||I)(Z.KVO(h.G),Z.KVO(w.H),Z.KVO(D.n),Z.KVO(x.u),Z.KVO(E.T),Z.KVO(z.OD),Z.KVO(d.g),Z.KVO(z.W3),Z.KVO(C.c$),Z.KVO(z.hG),Z.KVO(P.Ix),Z.KVO(z.q9),Z.KVO(k.aZ))};static#t=this.\u0275prov=Z.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})()},54171:(He,L,o)=>{"use strict";o.d(L,{T:()=>P});var n=o(73308),y=o(30873),a=o(23867),Q=o(27504),ie=o(22126),Z=o(19866),h=o(23239),w=o(21510),D=o(2978),x=o(57291),E=o(77897),z=o(56610),d=o(36075),C=o(22882);let P=(()=>{class k{constructor(I,g,f,m,T,W,K,re){this.storage=I,this.loadingController=g,this.toastController=f,this.alertController=m,this.currencyPipe=T,this.router=W,this.modalController=K,this.translateService=re,this._HAS_LOGGED_IN=!1,this.categorySession="Session",this.categoryWelcome="Welcome",this.categoryHome="Home",this.categorySettings="Settings",this.categoryShop="Shop",this.categoryApp="App",this.loadingPage=!1}presentLoading(I){var g=this;return(0,n.A)(function*(){return g.loading=yield g.loadingController.create({message:I,spinner:"lines",translucent:!0,mode:"ios"}),yield g.loading.present()})()}dismissLoading(){var I=this;return(0,n.A)(function*(){try{yield I.loading.dismiss()}catch{}})()}presentToast(I,g,f,m,T=!1){var W=this;return(0,n.A)(function*(){var K=W;K.closeToast(K.toast),K.toastController.create({message:m,position:f,color:g,duration:T?null:I,buttons:T?[{text:"\u2713",handler:()=>{}}]:[]}).then(re=>{re.present(),re.addEventListener("ionToastDidPresent",U=>{U.target&&U.target.addEventListener("click",function(){K.closeToast(K.toast)})}),K.toast=re})})()}closeToast(I){I&&I.dismiss()}presentAlertInfo(I,g,f){var m=this;return(0,n.A)(function*(){yield(yield m.alertController.create({cssClass:"my-custom-class",header:I,subHeader:g,message:f,backdropDismiss:!1,buttons:["OK"]})).present()})()}formatCurrency(I){return this.currencyPipe.transform(I,"USD","symbol","1.0-0")}formataDate(I,g){return"dd-mm-yyy"==g&&(I=I.slice(0,10).split("-").reverse().join("-")),I}currentDate(){let I=new Date;return I.getFullYear()+"-"+(I.getMonth()+1).toString().padStart(2,"0")+"-"+I.getDate().toString().padStart(2,"0")+" "+(I.getHours()<10?"0"+I.getHours():I.getHours())+":"+(I.getMinutes()<10?"0"+I.getMinutes():I.getMinutes())+":"+(I.getSeconds()<10?"0"+I.getSeconds():I.getSeconds())}currentDateToISOString(I){return I.replace(" ","T")+".455-05:00"}validateDate(I,g){let f=new Date;if(I&&""!=I){let m=(I=I.replace("T"," ").slice(0,19)).slice(0,10).split("-"),T=I.slice(11,19).split(":"),W=new Date(parseInt(m[0]),parseInt(m[1])-1,parseInt(m[2]),parseInt(T[0]),parseInt(T[1]),parseInt(T[2]));if(W.getTime()<f.getTime()&&"start"==g||W.getTime()>f.getTime()&&"end"==g)return!0}return!1}validateDateCustom(I,g,f,m=0){if(I&&""!=I&&g&&""!=g){I=I.replace("T"," ").slice(0,19),g=g.replace("T"," ").slice(0,19);let T=I.slice(0,10).split("-"),W=I.slice(11,19).split(":"),K=g.slice(0,10).split("-"),re=g.slice(11,19).split(":"),U=new Date(parseInt(T[0]),parseInt(T[1])-1,parseInt(T[2])-m,parseInt(W[0]),parseInt(W[1]),parseInt(W[2])),fe=new Date(parseInt(K[0]),parseInt(K[1])-1,parseInt(K[2]),parseInt(re[0]),parseInt(re[1]),parseInt(re[2]));if(U.getTime()<fe.getTime()&&"start"==f||U.getTime()>fe.getTime()&&"end"==f)return!0}return!1}getAccessToken(){return new Promise((I,g)=>{this.storage.get("token").then(f=>{I(f?f.access_token:"")})})}sendMessage(I){let T="https://api.whatsapp.com/send?phone="+(I.code+I.phone)+"&text=Me gustar\xeda solicitar los servicios de tu negocio, te he contactado desde el APP Academias Saprissa";ie.Ii.isNativePlatform()?a.P.open({url:T}):window.open(T)}actionClickBanner(I){switch(I.type_action_id){case 2:this.openLink(I.value);break;case 3:this.router.navigate([I.value])}}isEmptyObject(I){return I&&0===Object.keys(I).length}getWeeksDiff(I,g){return Math.floor(Math.abs(g.getTime()-I.getTime())/6048e5)}omitSpecialChar(I,g,f){""!=f&&!/^[a-zA-Z\xf1\xe1\xe9\xed\xf3\xfa\xfc ]+$/i.test(f)&&"string"==typeof f&&g.controls[I].setValue(f.replace(/[^a-zA-Z ]/g,""))}validateEmail(I){return/\S+@\S+\.\S+/.test(I)}closeAllAlerts(){const I=document.querySelectorAll("ion-loading");Array.from(I).forEach(f=>f.dismiss())}presentSeeDocument(I,g){var f=this;return(0,n.A)(function*(){const m=yield f.modalController.create({component:y.b,showBackdrop:!1,swipeToClose:!1,componentProps:{title:I,url:g}});return m.onDidDismiss().then(T=>{}),yield m.present()})()}timeSince(I,g=!1){var f=Math.floor(((new Date).getTime()-new Date(I).getTime())/1e3);let m=g?"TIMING_AGO.":"TIMING.";var T=f/31536e3;if(T>2){let W=Math.floor(T);return this.translateService.instant(m+"YEAR",{time:W})}return(T=f/2592e3)>2?this.translateService.instant(m+"MONTH",{time:Math.floor(T)}):(T=f/86400)>2?this.translateService.instant(m+"DAY",{time:Math.floor(T)}):(T=f/3600)>2?this.translateService.instant(m+"HOUR",{time:Math.floor(T)}):this.translateService.instant((T=f/60)>2?m+"MINUTE":m+"SECOND",{time:Math.floor(T)})}openLink(I){I?ie.Ii.isNativePlatform()?this.isIOS()?Q.Nb.openWebView({url:encodeURI(I),title:""}):Q.Nb.open({url:I}):window.open(I,"_blank"):this.presentAlertInfo(this.translateService.instant("error.alert"),"",this.translateService.instant("error.invalid_link"))}downloadFromLink(I){var g=this;return(0,n.A)(function*(){let f="SportsCrowd_"+(new Date).getTime()+".pdf";if(g.isIOS()){g.presentLoading(g.translateService.instant("all.loading"));const m={url:I,filePath:f,fileDirectory:Z.__.Documents,method:"GET"};if((yield h.l.downloadFile(m)).path){const W=yield Z.YA.getUri({directory:Z.__.Documents,path:f});g.closeAllAlerts(),w.S.share({title:f,url:W.uri}).then(()=>{g.presentToast(3e3,"success","top",g.translateService.instant("FILE_DOWNLOADED")),g.dismissLoading()}).catch(K=>{})}}else g.openLink(I)})()}isIOS(){return"ios"===ie.Ii.getPlatform()}static#e=this.\u0275fac=function(g){return new(g||k)(D.KVO(x.n),D.KVO(E.Xi),D.KVO(E.K_),D.KVO(E.hG),D.KVO(z.oe),D.KVO(d.Ix),D.KVO(E.W3),D.KVO(C.c$))};static#t=this.\u0275prov=D.jDH({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})()},45312:(He,L,o)=>{"use strict";o.d(L,{c:()=>n});const n={production:!0,firebase:{apiKey:"AIzaSyD6lLwpQnEIKDgRTi1zVLfi33FqcoUUfCg",authDomain:"deportivo-saprissa.firebaseapp.com",projectId:"deportivo-saprissa",storageBucket:"deportivo-saprissa.appspot.com",messagingSenderId:"456584316752",appId:"1:456584316752:web:55336de23ac68d56a68e55",measurementId:"G-4BP1QSLJBW"},appId:"com.co.fanaticadas.sportscrowd.saprissa",appName:"Academias Saprissa",apiUrl:"https://qas.sports-crowd.com/api/central",onesignalId:"5de2789d-1627-41bc-b310-15329c0ef97b"}},91120:(He,L,o)=>{"use strict";var n=o(76098),y=o(2978),a=o(26409),Q=o(22882),ie=o(36075);class Z{constructor(_,c="/assets/i18n/",j=".json"){this.http=_,this.prefix=c,this.suffix=j}getTranslation(_){return this.http.get(`${this.prefix}${_}${this.suffix}`)}}var h=o(77897),w=o(56610),D=o(73308),x=o(89818);const E=new y.nKC("STORAGE_CONFIG_TOKEN");class z extends x.w{constructor(){super()}create(){var _=this;return(0,D.A)(function*(){return _})()}defineDriver(){return(0,D.A)(function*(){})()}get driver(){return"noop"}get(_){return(0,D.A)(function*(){return null})()}set(_,c){return(0,D.A)(function*(){})()}remove(_){return(0,D.A)(function*(){})()}clear(){return(0,D.A)(function*(){})()}length(){return(0,D.A)(function*(){return 0})()}keys(){return(0,D.A)(function*(){return[]})()}forEach(_){return(0,D.A)(function*(){})()}setEncryptionKey(_){}}function d(V,_){return(0,w.Vy)(V)?new z:new x.w(_)}let C=(()=>{class V{static forRoot(c=null){return{ngModule:V,providers:[{provide:E,useValue:c},{provide:x.w,useFactory:d,deps:[y.Agw,E]}]}}}return V.\u0275fac=function(c){return new(c||V)},V.\u0275mod=y.$C({type:V}),V.\u0275inj=y.G2t({}),V})();typeof window<"u"&&window;let Pt=(()=>{class V{static \u0275fac=function(j){return new(j||V)};static \u0275mod=y.$C({type:V});static \u0275inj=y.G2t({imports:[w.MD]})}return V})();var vt=o(58118),$t=o(22126);const ct=(0,$t.F3)("SplashScreen",{web:()=>o.e(271).then(o.bind(o,20271)).then(V=>new V.SplashScreenWeb)}),ln=(0,$t.F3)("StatusBar");var pn=o(22871),kn=o.n(pn),Mn=o(27504),wn=o(45312),Bn=o(26173),Zn=o(46868),Yn=o(54171),Jn=o(83254),In=o(29885),ii=o(12692);let yi=(()=>{class V{constructor(c,j,oe,Ce,$e,st,Et,xt,en,rn,Nn){this.platform=c,this.translate=j,this.menu=oe,this.modalCtrl=Ce,this.homeService=$e,this.cartService=st,this.utilsService=Et,this.router=xt,this.analyticsService=en,this.userProvider=rn,this.networkingService=Nn,this.showSplash=!0,this.splashClass="splashDay",this.updateManifest(),this.initializeApp()}ngOnInit(){this.platform.resume.subscribe(()=>{this.userProvider.savePlayerOnesignal()})}initializeApp(){this.platform.ready().then(()=>{ct.hide(),this.menu.enable(!1)}),this.initTranslate(),this.initMobileFunctions()}onClick(c){var j=(c=c||window.event).target||c.srcElement;this.analyticsService.logEvent(j.textContent||j.innerText,j.tagName)}initMobileFunctions(){$t.Ii.isNativePlatform()&&(this.setStatusBar(),this.oneSignalInit())}setStatusBar(){ln.setBackgroundColor({color:getComputedStyle(document.documentElement).getPropertyValue("--ion-color-primary-shade").replace("#","")})}oneSignalInit(){kn().initialize(wn.c.onesignalId);let c=this,j=function(){var Ce=(0,D.A)(function*($e){let st=$e.notification;c.analyticsService.logEvent("Notification Click","Notification","click",st.body),Mn.Nb.close(),c.utilsService.closeAllAlerts(),c.router.navigate(["/notification"],{skipLocationChange:!0}),c.redirectToPage(st)});return function(st){return Ce.apply(this,arguments)}}();kn().Notifications.addEventListener("click",j),kn().Notifications.addEventListener("foregroundWillDisplay",function(Ce){Ce.notification.display(),c.reloadHome()}),kn().Notifications.requestPermission(!0).then(Ce=>{console.log("User accepted notifications: "+Ce)})}reloadHome(){this.router.url.includes("home")&&(this.router.routeReuseStrategy.shouldReuseRoute=function(){return!1},this.router.navigateByUrl(this.router.url+"?").then(()=>{this.router.navigated=!1,this.router.navigate([this.router.url])}))}redirectToPage(c){let j=c.additionalData.link;j&&(j.includes("http")?this.utilsService.openLink(j):this.router.navigate([j]))}initTranslate(){this.translate.setDefaultLang("es"),this.translate.getBrowserLang()?this.translate.use(this.translate.getBrowserLang()):this.translate.use("es")}openModalDetailProduct(c){var j=this;return(0,D.A)(function*(){yield(yield j.modalCtrl.create({component:vt.u,componentProps:{product:c}})).present()})()}updateManifest(){const c=wn.c.appName;fetch("../manifest.webmanifest").then(j=>j.json()).then(j=>{j.name=c})}static#e=this.\u0275fac=function(j){return new(j||V)(y.rXU(h.OD),y.rXU(Q.c$),y.rXU(h._t),y.rXU(h.W3),y.rXU(Bn.X),y.rXU(Zn.m),y.rXU(Yn.T),y.rXU(ie.Ix),y.rXU(Jn.c),y.rXU(In.D),y.rXU(ii.w))};static#t=this.\u0275cmp=y.VBU({type:V,selectors:[["app-root"]],hostBindings:function(j,oe){1&j&&y.bIt("click",function($e){return oe.onClick($e)})},decls:2,vars:0,template:function(j,oe){1&j&&(y.j41(0,"ion-app"),y.nrm(1,"ion-router-outlet"),y.k0s())},dependencies:[h.U1,h.Rg],styles:["*[_ngcontent-%COMP%]{caret-color:#488aff}.toolbar-background-md[_ngcontent-%COMP%]{border-color:none!important;background:none!important}.item-md.item-input.item-input-has-focus[_ngcontent-%COMP%] .item-inner[_ngcontent-%COMP%], .item-md.item-input.input-has-focus[_ngcontent-%COMP%] .item-inner[_ngcontent-%COMP%]{border-bottom-color:none!important;box-shadow:none!important}.item-md.item-input.ng-valid.item-input-has-value[_ngcontent-%COMP%]:not(.input-has-focus):not(.item-input-has-focus) .item-inner[_ngcontent-%COMP%], .item-md.item-input.ng-valid.input-has-value[_ngcontent-%COMP%]:not(.input-has-focus):not(.item-input-has-focus) .item-inner[_ngcontent-%COMP%]{border-bottom-color:none!important;box-shadow:none!important}.containerGifCart[_ngcontent-%COMP%]{padding:0!important;margin:0!important;width:80px!important}.loading-ios[_ngcontent-%COMP%] .loading-wrapper[_ngcontent-%COMP%], .loading-md[_ngcontent-%COMP%] .loading-wrapper[_ngcontent-%COMP%]{padding:0!important;border-radius:10px!important}.imageGifCart[_ngcontent-%COMP%]{border-radius:10px!important}.action-sheet-md[_ngcontent-%COMP%]{text-align:center}.action-sheet-md[_ngcontent-%COMP%] .action-sheet-wrapper[_ngcontent-%COMP%]{margin:constant(safe-area-inset-top) auto constant(safe-area-inset-bottom);margin:env(safe-area-inset-top) auto env(safe-area-inset-bottom)}.action-sheet-md[_ngcontent-%COMP%] .action-sheet-container[_ngcontent-%COMP%]{padding:0 10px}.action-sheet-md[_ngcontent-%COMP%] .action-sheet-group[_ngcontent-%COMP%]{border-radius:13px;margin-bottom:8px;background:#f9f9f9}.action-sheet-md[_ngcontent-%COMP%] .action-sheet-group[_ngcontent-%COMP%]:first-child{margin-top:10px}.action-sheet-md[_ngcontent-%COMP%] .action-sheet-group[_ngcontent-%COMP%]:last-child{margin-bottom:10px}.action-sheet-md[_ngcontent-%COMP%] .action-sheet-title[_ngcontent-%COMP%]{padding:1.5rem;text-align:center;border-radius:0;border-bottom:.55px solid #d6d6da;font-size:1.3rem;font-weight:400;color:#8f8f8f}.action-sheet-md[_ngcontent-%COMP%] .action-sheet-button[_ngcontent-%COMP%]{margin:0;padding:18px;min-height:5.6rem;border-bottom:.55px solid #d6d6da;font-size:2rem;color:#007aff;background:transparent}.action-sheet-md[_ngcontent-%COMP%] .action-sheet-button[_ngcontent-%COMP%]:last-child{border-bottom-color:transparent}.action-sheet-md[_ngcontent-%COMP%] .action-sheet-button.activated[_ngcontent-%COMP%]{margin-top:-.55px;border-top:.55px solid #ebebeb;border-bottom-color:#ebebeb;background:#ebebeb}.action-sheet-md[_ngcontent-%COMP%] .action-sheet-selected[_ngcontent-%COMP%]{font-weight:700;background:#fff}.action-sheet-md[_ngcontent-%COMP%] .action-sheet-destructive[_ngcontent-%COMP%]{color:#f53d3d}.action-sheet-md[_ngcontent-%COMP%] .action-sheet-cancel[_ngcontent-%COMP%]{font-weight:600;color:red;background:#fff}.action-sheet-md[_ngcontent-%COMP%] .action-sheet-group[_ngcontent-%COMP%] .button-inner[_ngcontent-%COMP%]{display:flex;flex-flow:row nowrap;flex-shrink:0;align-items:center;justify-content:center;width:100%;height:100%}.has-refresher[_ngcontent-%COMP%] .scroll-content[_ngcontent-%COMP%]{border-top:0!important}.not-margin[_ngcontent-%COMP%]{margin:0!important}"]})}return V})();var mt=o(7125);let yt=(()=>{class V{constructor(c,j,oe,Ce){this.navParams=c,this.sanitizer=j,this.cityProvider=oe,this.utilsService=Ce,this.backgroundImg=this.sanitizer.bypassSecurityTrustStyle("url("+c.get("image_end_version")+")"),this.textEndVersion=c.get("text_end_version"),this.urlEndVersion=c.get("link_end_version")}ngOnInit(){}openLink(){this.utilsService.openLink(this.urlEndVersion)}static#e=this.\u0275fac=function(j){return new(j||V)(y.rXU(h.y8),y.rXU(n.up),y.rXU(mt.h),y.rXU(Yn.T))};static#t=this.\u0275cmp=y.VBU({type:V,selectors:[["page-end-version"]],decls:6,vars:3,consts:[[1,"imageEnd",3,"click"],["endImage",""],["margin","",1,"textEnd","ion-text-center"]],template:function(j,oe){1&j&&(y.j41(0,"ion-content")(1,"div",0,1),y.bIt("click",function(){return oe.openLink()}),y.k0s(),y.j41(3,"ion-label")(4,"p",2),y.EFF(5),y.k0s()()()),2&j&&(y.R7$(1),y.xc7("background-image",oe.backgroundImg),y.R7$(4),y.JRh(oe.textEndVersion))},dependencies:[h.W9,h.he],styles:[".imageEnd[_ngcontent-%COMP%]{width:100%;height:100%;background-size:cover}.textEnd[_ngcontent-%COMP%]{top:0;position:absolute}"]})}return V})();var We=o(54709),et=o(57291),Mt=o(64230),zt=o(44796),sn=o(88885);let un=(()=>{class V{constructor(c,j,oe,Ce,$e,st,Et,xt,en,rn,Nn){this.platform=c,this.alertController=j,this.translate=oe,this.userService=Ce,this.storage=$e,this.modalCtrl=st,this.initialService=Et,this.cityService=xt,this.authService=en,this.utilsService=rn,this.parameterService=Nn,this.isNavigator=!1}validateLoginUser(){return new Promise((c,j)=>{this.storage.get("HAS_LOGGED_IN").then(oe=>{this.utilsService._HAS_LOGGED_IN=oe,this.platform.is("cordova")?this.initialService.getParameters().subscribe(Ce=>{"success"==Ce.status&&(this.storage.set("infoEndVersion",{image_end_version:Ce.parameters.image_end_version,text_end_version:Ce.parameters.text_end_version,link_end_version:Ce.parameters.link_end_version,end_version_home:Ce.parameters.end_version_home}),Ce.parameters.end_version?(c("showEndVersionModal"),this.showEndVersionModal(Ce.parameters.image_end_version,Ce.parameters.text_end_version,Ce.parameters.link_end_version)):oe?(this.cityService.getInfoHost(),c("existsUser")):this.storage.get("productsCart").then(st=>{st&&this.storage.clear(),c("notExistsUser")}))},Ce=>{console.log("error initialService.getParameters: ",Ce),this.storage.clear(),this.exitApp()}):this.initialService.getParameters().subscribe(Ce=>{this.storage.get("infoUser").then($e=>{this.storage.set("infoEndVersion",{image_end_version:Ce.parameters.image_end_version,text_end_version:Ce.parameters.text_end_version,link_end_version:Ce.parameters.link_end_version,end_version_home:Ce.parameters.end_version_home}),$e?(this.cityService.getInfoHost(),c("existsUser")):c("notExistsUser")})})}).catch(oe=>{j(!1),console.log("error getHAS_LOGGED_IN: ",oe)})})}showConfirmVersionAppOld(c){var j=this;return(0,D.A)(function*(){yield(yield j.alertController.create({header:j.translate.instant("TITLE_ALERT_UPDATE_APP"),message:j.translate.instant("TEXT_ALERT_UPDATE_APP"),buttons:[{text:j.translate.instant("BUTTON1_ALERT_UPDATE_APP"),handler:()=>{j.exitApp()}},{text:j.translate.instant("BUTTON2_ALERT_UPDATE_APP"),handler:()=>{We.y.openStoreListing({appId:c}),j.exitApp()}}]})).present()})()}showEndVersionModal(c,j,oe){var Ce=this;return(0,D.A)(function*(){const $e=yield Ce.modalCtrl.create({component:yt,componentProps:{image_end_version:c,text_end_version:j,link_end_version:oe}});yield $e.present(),yield $e.onWillDismiss().then(()=>{Ce.exitApp()})})()}exitApp(){this.backButtonSubscription=this.platform.backButton.subscribe(()=>{navigator.app.exitApp()})}static#e=this.\u0275fac=function(j){return new(j||V)(y.KVO(h.OD),y.KVO(h.hG),y.KVO(Q.c$),y.KVO(In.D),y.KVO(et.n),y.KVO(h.W3),y.KVO(Mt.w),y.KVO(mt.h),y.KVO(zt.u),y.KVO(Yn.T),y.KVO(sn.f))};static#t=this.\u0275prov=y.jDH({token:V,factory:V.\u0275fac,providedIn:"root"})}return V})();const dn=[{path:"",redirectTo:"/app/tabs/home",pathMatch:"full"},{path:"app",loadChildren:()=>Promise.all([o.e(6751),o.e(2341),o.e(5408),o.e(2076),o.e(9893)]).then(o.bind(o,49893)).then(V=>V.TabsModule),canActivate:[(()=>{class V{constructor(c,j,oe){this.authRouteService=c,this.router=j,this.storage=oe}canActivate(c,j){var oe=this;return(0,D.A)(function*(){return yield oe.checkLogin()})()}checkLogin(){var c=this;return(0,D.A)(function*(){return!!(yield c.storage.get("token"))||c.authRouteService.validateLoginUser().then(j=>"showEndVersionModal"!=j&&"showConfirmVersionAppOld"!=j&&("notExistsUser"==j?(c.router.navigate(["/city-connection"]),!1):"existsUser"==j||void 0))})()}static#e=this.\u0275fac=function(j){return new(j||V)(y.KVO(un),y.KVO(ie.Ix),y.KVO(et.n))};static#t=this.\u0275prov=y.jDH({token:V,factory:V.\u0275fac,providedIn:"root"})}return V})()]},{path:"tutorial/:origin",loadChildren:()=>o.e(7886).then(o.bind(o,37886)).then(V=>V.TutorialPageModule)},{path:"city-connection",loadChildren:()=>o.e(6640).then(o.bind(o,86640)).then(V=>V.CityConnectionPageModule)},{path:"cart",loadChildren:()=>Promise.all([o.e(6751),o.e(5408)]).then(o.bind(o,15408)).then(V=>V.CartPageModule)},{path:"payment-gateway-selection",loadChildren:()=>o.e(2788).then(o.bind(o,2788)).then(V=>V.PaymentGatewaySelectionModule)},{path:"welcome",loadChildren:()=>o.e(316).then(o.bind(o,70316)).then(V=>V.WelcomePageModule)},{path:"login",loadChildren:()=>Promise.all([o.e(2076),o.e(2309)]).then(o.bind(o,54690)).then(V=>V.LoginPageModule)},{path:"signup",loadChildren:()=>Promise.all([o.e(2076),o.e(964)]).then(o.bind(o,90964)).then(V=>V.SignupPageModule)},{path:"address/:pageOrigin/:backButton",loadChildren:()=>Promise.all([o.e(6811),o.e(7255)]).then(o.bind(o,22038)).then(V=>V.AddressPageModule)},{path:"address-map/:pageOrigin",loadChildren:()=>o.e(6122).then(o.bind(o,56122)).then(V=>V.AddressMapPageModule)},{path:"trends",loadChildren:()=>Promise.all([o.e(6751),o.e(2076)]).then(o.bind(o,13453)).then(V=>V.TrendsPageModule)},{path:"dorsal",loadChildren:()=>Promise.all([o.e(2053),o.e(9845)]).then(o.bind(o,89845)).then(V=>V.DorsalPageModule)},{path:"video",loadChildren:()=>o.e(5288).then(o.bind(o,5288)).then(V=>V.VideoPageModule)},{path:"bookcase",loadChildren:()=>Promise.all([o.e(2076),o.e(1519)]).then(o.bind(o,63490)).then(V=>V.BookcasePageModule)},{path:"radio",loadChildren:()=>Promise.all([o.e(2076),o.e(3900)]).then(o.bind(o,63162)).then(V=>V.RadioPageModule)},{path:"youtube",loadChildren:()=>Promise.all([o.e(902),o.e(6757)]).then(o.bind(o,60902)).then(V=>V.YoutubePageModule)},{path:"tiktok",loadChildren:()=>Promise.all([o.e(2076),o.e(9138)]).then(o.bind(o,27308)).then(V=>V.TiktokPageModule)},{path:"news",loadChildren:()=>Promise.all([o.e(2076),o.e(8674)]).then(o.bind(o,94751)).then(V=>V.NewsPageModule)},{path:"new-detail",loadChildren:()=>o.e(5954).then(o.bind(o,25954)).then(V=>V.NewDetailPageModule)},{path:"tickets",loadChildren:()=>Promise.all([o.e(742),o.e(2697)]).then(o.bind(o,10742)).then(V=>V.BuyTicketsPageModule)},{path:"select-tickets/:matchEventId",loadChildren:()=>Promise.all([o.e(6108),o.e(2076),o.e(6766)]).then(o.bind(o,86766)).then(V=>V.TicketsPageModule)},{path:"symbolic-ballot/:ballot_id",loadChildren:()=>o.e(8723).then(o.bind(o,98723)).then(V=>V.SymbolicBallotPageModule)},{path:"modal-update-profile",loadChildren:()=>Promise.all([o.e(7855),o.e(5539)]).then(o.bind(o,85539)).then(V=>V.ModalUpdateProfilePageModule)},{path:"modal-list-suscription",loadChildren:()=>Promise.all([o.e(6108),o.e(6554)]).then(o.bind(o,36554)).then(V=>V.ModalListSuscriptionPageModule)},{path:"album",loadChildren:()=>Promise.all([o.e(2076),o.e(4143)]).then(o.bind(o,84143)).then(V=>V.AlbumPageModule)},{path:"wallet",loadChildren:()=>Promise.all([o.e(2076),o.e(4769)]).then(o.bind(o,3843)).then(V=>V.WalletPageModule)},{path:"modal-popup",loadChildren:()=>o.e(793).then(o.bind(o,793)).then(V=>V.ModalPopupPageModule)},{path:"player",loadChildren:()=>Promise.all([o.e(2076),o.e(4668)]).then(o.bind(o,84668)).then(V=>V.PlayerPageModule)},{path:"player-detail",loadChildren:()=>Promise.all([o.e(2076),o.e(8996)]).then(o.bind(o,58996)).then(V=>V.PlayerDetailPageModule)},{path:"academy/:type_academy",loadChildren:()=>Promise.all([o.e(7992),o.e(7311),o.e(3797),o.e(6811),o.e(8846),o.e(2889),o.e(7641),o.e(8805),o.e(4231)]).then(o.bind(o,68805)).then(V=>V.AcademyPageModule)},{path:"academy",loadChildren:()=>Promise.all([o.e(7992),o.e(7311),o.e(3797),o.e(6811),o.e(8846),o.e(2889),o.e(7641),o.e(8805),o.e(4231)]).then(o.bind(o,68805)).then(V=>V.AcademyPageModule)},{path:"academy-enrollment",loadChildren:()=>Promise.all([o.e(7992),o.e(6811),o.e(2889),o.e(6274)]).then(o.bind(o,90144)).then(V=>V.AcademyEnrollmentPageModule)},{path:"subscriber-tutorial",loadChildren:()=>o.e(6106).then(o.bind(o,36106)).then(V=>V.SubscriberTutorialPageModule)},{path:"subscribers",loadChildren:()=>o.e(8913).then(o.bind(o,48913)).then(V=>V.SubscribersPageModule)},{path:"coins",loadChildren:()=>Promise.all([o.e(2928),o.e(5553)]).then(o.bind(o,22928)).then(V=>V.CoinsPageModule)},{path:"home-sc",loadChildren:()=>Promise.all([o.e(367),o.e(2902),o.e(2076),o.e(2280)]).then(o.bind(o,12902)).then(V=>V.HomeScPageModule)},{path:"business-directory",loadChildren:()=>Promise.all([o.e(3767),o.e(767)]).then(o.bind(o,93767)).then(V=>V.BusinessDirectoryPageModule)},{path:"business-directory-list/:category/:onlyUser/:categoryName",loadChildren:()=>Promise.all([o.e(1442),o.e(1979)]).then(o.bind(o,11979)).then(V=>V.BusinessDirectoryListPageModule)},{path:"modal-inapp",loadChildren:()=>o.e(1782).then(o.bind(o,31782)).then(V=>V.ModalInappPageModule)},{path:"modal-business",loadChildren:()=>o.e(1386).then(o.bind(o,71386)).then(V=>V.ModalBusinessPageModule)},{path:"business-directory-rate/:business",loadChildren:()=>o.e(4865).then(o.bind(o,57246)).then(V=>V.BusinessDirectoryRatePageModule)},{path:"tickets-list",loadChildren:()=>Promise.all([o.e(2053),o.e(1213),o.e(7150)]).then(o.bind(o,71213)).then(V=>V.TicketsListPageModule)},{path:"tickets-list/ticket-detail/:code",loadChildren:()=>Promise.all([o.e(2053),o.e(5935),o.e(2076)]).then(o.bind(o,35935)).then(V=>V.TicketDetailPageModule)},{path:"partners",loadChildren:()=>o.e(7747).then(o.bind(o,57747)).then(V=>V.PartnersPageModule)},{path:"flash-tickets/:matchEventId",loadChildren:()=>o.e(5742).then(o.bind(o,35742)).then(V=>V.FlashTicketsPageModule)},{path:"flash-tickets/:matchEventId/:presuscription",loadChildren:()=>o.e(5742).then(o.bind(o,35742)).then(V=>V.FlashTicketsPageModule)},{path:"business-register/:business/:category",loadChildren:()=>Promise.all([o.e(6811),o.e(2865),o.e(3641)]).then(o.bind(o,3641)).then(V=>V.BusinessRegisterPageModule)},{path:"business-directory-tab-map",loadChildren:()=>Promise.all([o.e(6811),o.e(1442),o.e(2076)]).then(o.bind(o,97322)).then(V=>V.BusinessDirectoryTabMapPageModule)},{path:"business-directory-tab-list",loadChildren:()=>Promise.all([o.e(7349),o.e(4677),o.e(9990)]).then(o.bind(o,54677)).then(V=>V.BusinessDirectoryTabListPageModule)},{path:"academy-payments/:academy_user_id",loadChildren:()=>Promise.all([o.e(7992),o.e(7311),o.e(3797),o.e(1702),o.e(9531)]).then(o.bind(o,1702)).then(V=>V.AcademyPaymentsPageModule)},{path:"academy-full-enrollment",loadChildren:()=>Promise.all([o.e(7992),o.e(7311),o.e(3797),o.e(7641),o.e(2050)]).then(o.bind(o,82050)).then(V=>V.AcademyFullEnrollmentPageModule)},{path:"academy-user-card/:user",loadChildren:()=>Promise.all([o.e(8846),o.e(4083)]).then(o.bind(o,24083)).then(V=>V.AcademyUserCardPageModule)},{path:"user-cards",loadChildren:()=>Promise.all([o.e(8846),o.e(9523)]).then(o.bind(o,29523)).then(V=>V.UserCardsPageModule)},{path:"address-gmap",loadChildren:()=>Promise.all([o.e(6811),o.e(2865),o.e(3575)]).then(o.bind(o,53575)).then(V=>V.AddressGmapPageModule)},{path:"academy-documents",loadChildren:()=>Promise.all([o.e(7992),o.e(7311),o.e(3797),o.e(7930)]).then(o.bind(o,47930)).then(V=>V.AcademyDocumentsPageModule)},{path:"academy-payment-support",loadChildren:()=>Promise.all([o.e(7992),o.e(7311),o.e(3797),o.e(9561)]).then(o.bind(o,49561)).then(V=>V.AcademyPaymentSupportPageModule)},{path:"academy-reports/:academy_user_id",loadChildren:()=>Promise.all([o.e(7992),o.e(895)]).then(o.bind(o,80895)).then(V=>V.AcademyReportsPageModule)},{path:"academy-period",loadChildren:()=>Promise.all([o.e(7992),o.e(9921)]).then(o.bind(o,32302)).then(V=>V.AcademyPeriodPageModule)},{path:"academy-schedules",loadChildren:()=>Promise.all([o.e(7992),o.e(9415)]).then(o.bind(o,89415)).then(V=>V.AcademySchedulesPageModule)},{path:"shopify",loadChildren:()=>o.e(2076).then(o.bind(o,81143)).then(V=>V.ShopifyPageModule)},{path:"notification",loadChildren:()=>o.e(4088).then(o.bind(o,24088)).then(V=>V.NotificationPageModule)},{path:"modal-business-rating",loadChildren:()=>Promise.all([o.e(7349),o.e(3778)]).then(o.bind(o,93778)).then(V=>V.ModalBusinessRatingPageModule)},{path:"tickets-assignment/:ticket_id",loadChildren:()=>o.e(4022).then(o.bind(o,64022)).then(V=>V.TicketsAssignmentPageModule)},{path:"academy-tournaments/:academyUserId",loadChildren:()=>Promise.all([o.e(7992),o.e(7311),o.e(3797),o.e(2076),o.e(9600)]).then(o.bind(o,13129)).then(V=>V.AcademyTournamentsPageModule)},{path:"academy-tournament-registration",loadChildren:()=>Promise.all([o.e(7992),o.e(2076),o.e(7346)]).then(o.bind(o,13159)).then(V=>V.AcademyTournamentRegistrationPageModule)},{path:"academy-tournament-payment-support",loadChildren:()=>Promise.all([o.e(7992),o.e(7311),o.e(3797),o.e(2076),o.e(6978)]).then(o.bind(o,64990)).then(V=>V.AcademyTournamentPaymentSupportPageModule)},{path:"academy-user-select-modal",loadChildren:()=>o.e(4902).then(o.bind(o,94902)).then(V=>V.AcademyUserSelectModalPageModule)},{path:"academy-user-profile/:academy_user_id",loadChildren:()=>Promise.all([o.e(7992),o.e(199)]).then(o.bind(o,90199)).then(V=>V.AcademyUserProfilePageModule)},{path:"modal-term",loadChildren:()=>Promise.all([o.e(2076),o.e(5268)]).then(o.bind(o,55268)).then(V=>V.ModalTermPageModule)},{path:"academy-news-list/:academy_user_id",loadChildren:()=>Promise.all([o.e(7992),o.e(7311),o.e(3797),o.e(6268),o.e(7091)]).then(o.bind(o,87091)).then(V=>V.AcademyNewsListPageModule)},{path:"academy-news-add",loadChildren:()=>Promise.all([o.e(7992),o.e(7311),o.e(3797),o.e(6268),o.e(7682)]).then(o.bind(o,87682)).then(V=>V.AcademyNewsAddPageModule)},{path:"shop",loadChildren:()=>Promise.all([o.e(2341),o.e(7934)]).then(o.bind(o,92341)).then(V=>V.ListMasterPageModule)},{path:"shop/:storeType",loadChildren:()=>Promise.all([o.e(2341),o.e(7934)]).then(o.bind(o,92341)).then(V=>V.ListMasterPageModule)},{path:"shop/:storeType/item-detail",loadChildren:()=>Promise.all([o.e(6751),o.e(5068),o.e(1337)]).then(o.bind(o,45068)).then(V=>V.ItemDetailPageModule)},{path:"shop/:storeType/trends",loadChildren:()=>Promise.all([o.e(6751),o.e(2076)]).then(o.bind(o,13453)).then(V=>V.TrendsPageModule)},{path:"shop/:storeType/cart",loadChildren:()=>Promise.all([o.e(6751),o.e(5408)]).then(o.bind(o,15408)).then(V=>V.CartPageModule)},{path:"shop/:storeType/search",loadChildren:()=>Promise.all([o.e(6751),o.e(2076)]).then(o.bind(o,86302)).then(V=>V.SearchPageModule)},{path:"shop/:storeType/confirm-order",loadChildren:()=>Promise.all([o.e(7855),o.e(6483),o.e(1073)]).then(o.bind(o,76483)).then(V=>V.ConfirmOrderPageModule)},{path:"modal-see-document",loadChildren:()=>o.e(9156).then(o.bind(o,69156)).then(V=>V.ModalSeeDocumentPageModule)},{path:"club-content",loadChildren:()=>Promise.all([o.e(367),o.e(2744)]).then(o.bind(o,32744)).then(V=>V.ClubContentPageModule)},{path:"club-content-comments",loadChildren:()=>o.e(8884).then(o.bind(o,18884)).then(V=>V.ClubContentCommentsPageModule)},{path:"club-content-news",loadChildren:()=>o.e(2888).then(o.bind(o,52888)).then(V=>V.ClubContentNewsPageModule)},{path:"website/:sectionName",loadChildren:()=>o.e(7381).then(o.bind(o,67381)).then(V=>V.WebsitePageModule)},{path:"publication-detail/:publicationId",loadChildren:()=>Promise.all([o.e(367),o.e(1889)]).then(o.bind(o,41889)).then(V=>V.PublicationDetailPageModule)},{path:"experience",children:[{path:":type",loadChildren:()=>Promise.all([o.e(7308),o.e(9652)]).then(o.bind(o,49652)).then(V=>V.ExperienceHomePageModule)},{path:":type/:payments",loadChildren:()=>Promise.all([o.e(7308),o.e(9652)]).then(o.bind(o,49652)).then(V=>V.ExperienceHomePageModule)},{path:":type/detail/:id",loadChildren:()=>Promise.all([o.e(7308),o.e(7923)]).then(o.bind(o,67923)).then(V=>V.ExperienceDetailPageModule)},{path:":type/enroll/:id",loadChildren:()=>Promise.all([o.e(7308),o.e(4041)]).then(o.bind(o,94041)).then(V=>V.ExperienceEnrollPageModule)},{path:":type/enroll/:id/:planType",loadChildren:()=>Promise.all([o.e(7308),o.e(4041)]).then(o.bind(o,94041)).then(V=>V.ExperienceEnrollPageModule)}]},{path:"memberships",loadChildren:()=>Promise.all([o.e(2076),o.e(5744)]).then(o.bind(o,5744)).then(V=>V.MembershipListPageModule)},{path:"memberships/:payments",loadChildren:()=>Promise.all([o.e(2076),o.e(5744)]).then(o.bind(o,5744)).then(V=>V.MembershipListPageModule)},{path:"memberships/enroll/:membershipId",loadChildren:()=>Promise.all([o.e(2076),o.e(1737)]).then(o.bind(o,81737)).then(V=>V.MembershipDetailPageModule)},{path:"user-locations",loadChildren:()=>o.e(5171).then(o.bind(o,35171)).then(V=>V.UserLocationsPageModule)},{path:"academy-guardian-information",loadChildren:()=>Promise.all([o.e(7992),o.e(7311),o.e(3971)]).then(o.bind(o,83971)).then(V=>V.AcademyGuardianInformationPageModule)},{path:"user-profile",loadChildren:()=>Promise.all([o.e(7855),o.e(5132),o.e(315)]).then(o.bind(o,65132)).then(V=>V.UserProfilePageModule)},{path:"tickets-list",loadChildren:()=>Promise.all([o.e(2053),o.e(1213),o.e(7150)]).then(o.bind(o,71213)).then(V=>V.TicketsListPageModule)}];let ri=(()=>{class V{static#e=this.\u0275fac=function(j){return new(j||V)};static#t=this.\u0275mod=y.$C({type:V});static#n=this.\u0275inj=y.G2t({imports:[ie.iI.forRoot(dn,{preloadingStrategy:ie.Kp}),ie.iI]})}return V})();var si=o(41683),gt=o(13721),ot=o(48823),ut=o(34526);let Lt=(()=>{class V{constructor(c,j,oe){this.storage=c,this.cartProvider=j,this.navCtrl=oe}intercept(c,j){return j.handle(c).pipe((0,ut.W)(Ce=>(401===Ce.status&&(this.cartProvider.deleteAllProductsCart(),this.storage.clear(),this.navCtrl.navigateRoot("/city-connection")),(0,ot.$)(Ce))))}static#e=this.\u0275fac=function(j){return new(j||V)(y.KVO(et.n),y.KVO(Zn.m),y.KVO(h.q9))};static#t=this.\u0275prov=y.jDH({token:V,factory:V.\u0275fac,providedIn:"root"})}return V})();var Ot=o(10194);function jt(V){return new y.wOt(3e3,!1)}function hn(V){switch(V.length){case 0:return new Ot.sf;case 1:return V[0];default:return new Ot.ui(V)}}function pi(V,_,c=new Map,j=new Map){const oe=[],Ce=[];let $e=-1,st=null;if(_.forEach(Et=>{const xt=Et.get("offset"),en=xt==$e,rn=en&&st||new Map;Et.forEach((Nn,Fn)=>{let vn=Fn,Pn=Nn;if("offset"!==Fn)switch(vn=V.normalizePropertyName(vn,oe),Pn){case Ot.FX:Pn=c.get(Fn);break;case Ot.kp:Pn=j.get(Fn);break;default:Pn=V.normalizeStyleValue(Fn,vn,Pn,oe)}rn.set(vn,Pn)}),en||Ce.push(rn),st=rn,$e=xt}),oe.length)throw function Ue(V){return new y.wOt(3502,!1)}();return Ce}function ai(V,_,c,j){switch(_){case"start":V.onStart(()=>j(c&&_i(c,"start",V)));break;case"done":V.onDone(()=>j(c&&_i(c,"done",V)));break;case"destroy":V.onDestroy(()=>j(c&&_i(c,"destroy",V)))}}function _i(V,_,c){const Ce=fn(V.element,V.triggerName,V.fromState,V.toState,_||V.phaseName,c.totalTime??V.totalTime,!!c.disabled),$e=V._data;return null!=$e&&(Ce._data=$e),Ce}function fn(V,_,c,j,oe="",Ce=0,$e){return{element:V,triggerName:_,fromState:c,toState:j,phaseName:oe,totalTime:Ce,disabled:!!$e}}function Hn(V,_,c){let j=V.get(_);return j||V.set(_,j=c),j}function Ti(V){const _=V.indexOf(":");return[V.substring(1,_),V.slice(_+1)]}const Rr=(()=>typeof document>"u"?null:document.documentElement)();function Ii(V){const _=V.parentNode||V.host||null;return _===Rr?null:_}let rr=null,Hr=!1;function tn(V,_){for(;_;){if(_===V)return!0;_=Ii(_)}return!1}function En(V,_,c){if(c)return Array.from(V.querySelectorAll(_));const j=V.querySelector(_);return j?[j]:[]}let Pi=(()=>{class V{validateStyleProperty(c){return function Lr(V){rr||(rr=function gi(){return typeof document<"u"?document.body:null}()||{},Hr=!!rr.style&&"WebkitAppearance"in rr.style);let _=!0;return rr.style&&!function vr(V){return"ebkit"==V.substring(1,6)}(V)&&(_=V in rr.style,!_&&Hr&&(_="Webkit"+V.charAt(0).toUpperCase()+V.slice(1)in rr.style)),_}(c)}matchesElement(c,j){return!1}containsElement(c,j){return tn(c,j)}getParentElement(c){return Ii(c)}query(c,j,oe){return En(c,j,oe)}computeStyle(c,j,oe){return oe||""}animate(c,j,oe,Ce,$e,st=[],Et){return new Ot.sf(oe,Ce)}static#e=this.\u0275fac=function(j){return new(j||V)};static#t=this.\u0275prov=y.jDH({token:V,factory:V.\u0275fac})}return V})(),ji=(()=>{class V{static#e=this.NOOP=new Pi}return V})();const Oi=1e3,Ri="ng-enter",wr="ng-leave",yn="ng-trigger",sr=".ng-trigger",Wr="ng-animating",pr=".ng-animating";function Wn(V){if("number"==typeof V)return V;const _=V.match(/^(-?[\.\d]+)(m?s)/);return!_||_.length<2?0:Tr(parseFloat(_[1]),_[2])}function Tr(V,_){return"s"===_?V*Oi:V}function er(V,_,c){return V.hasOwnProperty("duration")?V:function or(V,_,c){let oe,Ce=0,$e="";if("string"==typeof V){const st=V.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===st)return _.push(jt()),{duration:0,delay:0,easing:""};oe=Tr(parseFloat(st[1]),st[2]);const Et=st[3];null!=Et&&(Ce=Tr(parseFloat(Et),st[4]));const xt=st[5];xt&&($e=xt)}else oe=V;if(!c){let st=!1,Et=_.length;oe<0&&(_.push(function Sn(){return new y.wOt(3100,!1)}()),st=!0),Ce<0&&(_.push(function qt(){return new y.wOt(3101,!1)}()),st=!0),st&&_.splice(Et,0,jt())}return{duration:oe,delay:Ce,easing:$e}}(V,_,c)}function _r(V,_={}){return Object.keys(V).forEach(c=>{_[c]=V[c]}),_}function Ss(V){const _=new Map;return Object.keys(V).forEach(c=>{_.set(c,V[c])}),_}function Ai(V,_=new Map,c){if(c)for(let[j,oe]of c)_.set(j,oe);for(let[j,oe]of V)_.set(j,oe);return _}function tr(V,_,c){_.forEach((j,oe)=>{const Ce=Bi(oe);c&&!c.has(oe)&&c.set(oe,V.style[Ce]),V.style[Ce]=j})}function Tn(V,_){_.forEach((c,j)=>{const oe=Bi(j);V.style[oe]=""})}function Jr(V){return Array.isArray(V)?1==V.length?V[0]:(0,Ot.K2)(V):V}const Ni=new RegExp("{{\\s*(.+?)\\s*}}","g");function Hi(V){let _=[];if("string"==typeof V){let c;for(;c=Ni.exec(V);)_.push(c[1]);Ni.lastIndex=0}return _}function nr(V,_,c){const j=V.toString(),oe=j.replace(Ni,(Ce,$e)=>{let st=_[$e];return null==st&&(c.push(function ti(V){return new y.wOt(3003,!1)}()),st=""),st.toString()});return oe==j?V:oe}function lr(V){const _=[];let c=V.next();for(;!c.done;)_.push(c.value),c=V.next();return _}const qr=/-+([a-z0-9])/g;function Bi(V){return V.replace(qr,(..._)=>_[1].toUpperCase())}function zi(V,_,c){switch(_.type){case 7:return V.visitTrigger(_,c);case 0:return V.visitState(_,c);case 1:return V.visitTransition(_,c);case 2:return V.visitSequence(_,c);case 3:return V.visitGroup(_,c);case 4:return V.visitAnimate(_,c);case 5:return V.visitKeyframes(_,c);case 6:return V.visitStyle(_,c);case 8:return V.visitReference(_,c);case 9:return V.visitAnimateChild(_,c);case 10:return V.visitAnimateRef(_,c);case 11:return V.visitQuery(_,c);case 12:return V.visitStagger(_,c);default:throw function qn(V){return new y.wOt(3004,!1)}()}}function cr(V,_){return window.getComputedStyle(V)[_]}const ce="*";function F(V,_){const c=[];return"string"==typeof V?V.split(/\s*,\s*/).forEach(j=>function ae(V,_,c){if(":"==V[0]){const Et=function Y(V,_){switch(V){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(c,j)=>parseFloat(j)>parseFloat(c);case":decrement":return(c,j)=>parseFloat(j)<parseFloat(c);default:return _.push(function Ie(V){return new y.wOt(3016,!1)}()),"* => *"}}(V,c);if("function"==typeof Et)return void _.push(Et);V=Et}const j=V.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==j||j.length<4)return c.push(function be(V){return new y.wOt(3015,!1)}()),_;const oe=j[1],Ce=j[2],$e=j[3];_.push(Yt(oe,$e));"<"==Ce[0]&&!(oe==ce&&$e==ce)&&_.push(Yt($e,oe))}(j,c,_)):c.push(V),c}const De=new Set(["true","1"]),Ve=new Set(["false","0"]);function Yt(V,_){const c=De.has(V)||Ve.has(V),j=De.has(_)||Ve.has(_);return(oe,Ce)=>{let $e=V==ce||V==oe,st=_==ce||_==Ce;return!$e&&c&&"boolean"==typeof oe&&($e=oe?De.has(V):Ve.has(V)),!st&&j&&"boolean"==typeof Ce&&(st=Ce?De.has(_):Ve.has(_)),$e&&st}}const Kn=new RegExp("s*:selfs*,?","g");function Di(V,_,c,j){return new Nr(V).build(_,c,j)}class Nr{constructor(_){this._driver=_}build(_,c,j){const oe=new wo(c);return this._resetContextStyleTimingState(oe),zi(this,Jr(_),oe)}_resetContextStyleTimingState(_){_.currentQuerySelector="",_.collectedStyles=new Map,_.collectedStyles.set("",new Map),_.currentTime=0}visitTrigger(_,c){let j=c.queryCount=0,oe=c.depCount=0;const Ce=[],$e=[];return"@"==_.name.charAt(0)&&c.errors.push(function xn(){return new y.wOt(3006,!1)}()),_.definitions.forEach(st=>{if(this._resetContextStyleTimingState(c),0==st.type){const Et=st,xt=Et.name;xt.toString().split(/\s*,\s*/).forEach(en=>{Et.name=en,Ce.push(this.visitState(Et,c))}),Et.name=xt}else if(1==st.type){const Et=this.visitTransition(st,c);j+=Et.queryCount,oe+=Et.depCount,$e.push(Et)}else c.errors.push(function Qn(){return new y.wOt(3007,!1)}())}),{type:7,name:_.name,states:Ce,transitions:$e,queryCount:j,depCount:oe,options:null}}visitState(_,c){const j=this.visitStyle(_.styles,c),oe=_.options&&_.options.params||null;if(j.containsDynamicStyles){const Ce=new Set,$e=oe||{};j.styles.forEach(st=>{st instanceof Map&&st.forEach(Et=>{Hi(Et).forEach(xt=>{$e.hasOwnProperty(xt)||Ce.add(xt)})})}),Ce.size&&(lr(Ce.values()),c.errors.push(function bn(V,_){return new y.wOt(3008,!1)}()))}return{type:0,name:_.name,style:j,options:oe?{params:oe}:null}}visitTransition(_,c){c.queryCount=0,c.depCount=0;const j=zi(this,Jr(_.animation),c);return{type:1,matchers:F(_.expr,c.errors),animation:j,queryCount:c.queryCount,depCount:c.depCount,options:us(_.options)}}visitSequence(_,c){return{type:2,steps:_.steps.map(j=>zi(this,j,c)),options:us(_.options)}}visitGroup(_,c){const j=c.currentTime;let oe=0;const Ce=_.steps.map($e=>{c.currentTime=j;const st=zi(this,$e,c);return oe=Math.max(oe,c.currentTime),st});return c.currentTime=oe,{type:3,steps:Ce,options:us(_.options)}}visitAnimate(_,c){const j=function el(V,_){if(V.hasOwnProperty("duration"))return V;if("number"==typeof V)return fo(er(V,_).duration,0,"");const c=V;if(c.split(/\s+/).some(Ce=>"{"==Ce.charAt(0)&&"{"==Ce.charAt(1))){const Ce=fo(0,0,"");return Ce.dynamic=!0,Ce.strValue=c,Ce}const oe=er(c,_);return fo(oe.duration,oe.delay,oe.easing)}(_.timings,c.errors);c.currentAnimateTimings=j;let oe,Ce=_.styles?_.styles:(0,Ot.iF)({});if(5==Ce.type)oe=this.visitKeyframes(Ce,c);else{let $e=_.styles,st=!1;if(!$e){st=!0;const xt={};j.easing&&(xt.easing=j.easing),$e=(0,Ot.iF)(xt)}c.currentTime+=j.duration+j.delay;const Et=this.visitStyle($e,c);Et.isEmptyStep=st,oe=Et}return c.currentAnimateTimings=null,{type:4,timings:j,style:oe,options:null}}visitStyle(_,c){const j=this._makeStyleAst(_,c);return this._validateStyleAst(j,c),j}_makeStyleAst(_,c){const j=[],oe=Array.isArray(_.styles)?_.styles:[_.styles];for(let st of oe)"string"==typeof st?st===Ot.kp?j.push(st):c.errors.push(new y.wOt(3002,!1)):j.push(Ss(st));let Ce=!1,$e=null;return j.forEach(st=>{if(st instanceof Map&&(st.has("easing")&&($e=st.get("easing"),st.delete("easing")),!Ce))for(let Et of st.values())if(Et.toString().indexOf("{{")>=0){Ce=!0;break}}),{type:6,styles:j,easing:$e,offset:_.offset,containsDynamicStyles:Ce,options:null}}_validateStyleAst(_,c){const j=c.currentAnimateTimings;let oe=c.currentTime,Ce=c.currentTime;j&&Ce>0&&(Ce-=j.duration+j.delay),_.styles.forEach($e=>{"string"!=typeof $e&&$e.forEach((st,Et)=>{const xt=c.collectedStyles.get(c.currentQuerySelector),en=xt.get(Et);let rn=!0;en&&(Ce!=oe&&Ce>=en.startTime&&oe<=en.endTime&&(c.errors.push(function fi(V,_,c,j,oe){return new y.wOt(3010,!1)}()),rn=!1),Ce=en.startTime),rn&&xt.set(Et,{startTime:Ce,endTime:oe}),c.options&&function kr(V,_,c){const j=_.params||{},oe=Hi(V);oe.length&&oe.forEach(Ce=>{j.hasOwnProperty(Ce)||c.push(function Un(V){return new y.wOt(3001,!1)}())})}(st,c.options,c.errors)})})}visitKeyframes(_,c){const j={type:5,styles:[],options:null};if(!c.currentAnimateTimings)return c.errors.push(function Ln(){return new y.wOt(3011,!1)}()),j;let Ce=0;const $e=[];let st=!1,Et=!1,xt=0;const en=_.steps.map(wi=>{const Ji=this._makeStyleAst(wi,c);let dr=null!=Ji.offset?Ji.offset:function To(V){if("string"==typeof V)return null;let _=null;if(Array.isArray(V))V.forEach(c=>{if(c instanceof Map&&c.has("offset")){const j=c;_=parseFloat(j.get("offset")),j.delete("offset")}});else if(V instanceof Map&&V.has("offset")){const c=V;_=parseFloat(c.get("offset")),c.delete("offset")}return _}(Ji.styles),Ar=0;return null!=dr&&(Ce++,Ar=Ji.offset=dr),Et=Et||Ar<0||Ar>1,st=st||Ar<xt,xt=Ar,$e.push(Ar),Ji});Et&&c.errors.push(function Xn(){return new y.wOt(3012,!1)}()),st&&c.errors.push(function oi(){return new y.wOt(3200,!1)}());const rn=_.steps.length;let Nn=0;Ce>0&&Ce<rn?c.errors.push(function Le(){return new y.wOt(3202,!1)}()):0==Ce&&(Nn=1/(rn-1));const Fn=rn-1,vn=c.currentTime,Pn=c.currentAnimateTimings,Si=Pn.duration;return en.forEach((wi,Ji)=>{const dr=Nn>0?Ji==Fn?1:Nn*Ji:$e[Ji],Ar=dr*Si;c.currentTime=vn+Pn.delay+Ar,Pn.duration=Ar,this._validateStyleAst(wi,c),wi.offset=dr,j.styles.push(wi)}),j}visitReference(_,c){return{type:8,animation:zi(this,Jr(_.animation),c),options:us(_.options)}}visitAnimateChild(_,c){return c.depCount++,{type:9,options:us(_.options)}}visitAnimateRef(_,c){return{type:10,animation:this.visitReference(_.animation,c),options:us(_.options)}}visitQuery(_,c){const j=c.currentQuerySelector,oe=_.options||{};c.queryCount++,c.currentQuery=_;const[Ce,$e]=function Ns(V){const _=!!V.split(/\s*,\s*/).find(c=>":self"==c);return _&&(V=V.replace(Kn,"")),V=V.replace(/@\*/g,sr).replace(/@\w+/g,c=>sr+"-"+c.slice(1)).replace(/:animating/g,pr),[V,_]}(_.selector);c.currentQuerySelector=j.length?j+" "+Ce:Ce,Hn(c.collectedStyles,c.currentQuerySelector,new Map);const st=zi(this,Jr(_.animation),c);return c.currentQuery=null,c.currentQuerySelector=j,{type:11,selector:Ce,limit:oe.limit||0,optional:!!oe.optional,includeSelf:$e,animation:st,originalSelector:_.selector,options:us(_.options)}}visitStagger(_,c){c.currentQuery||c.errors.push(function tt(){return new y.wOt(3013,!1)}());const j="full"===_.timings?{duration:0,delay:0,easing:"full"}:er(_.timings,c.errors,!0);return{type:12,animation:zi(this,Jr(_.animation),c),timings:j,options:null}}}class wo{constructor(_){this.errors=_,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 us(V){return V?(V=_r(V)).params&&(V.params=function cs(V){return V?_r(V):null}(V.params)):V={},V}function fo(V,_,c){return{duration:V,delay:_,easing:c}}function Br(V,_,c,j,oe,Ce,$e=null,st=!1){return{type:1,element:V,keyframes:_,preStyleProps:c,postStyleProps:j,duration:oe,delay:Ce,totalTime:oe+Ce,easing:$e,subTimeline:st}}class br{constructor(){this._map=new Map}get(_){return this._map.get(_)||[]}append(_,c){let j=this._map.get(_);j||this._map.set(_,j=[]),j.push(...c)}has(_){return this._map.has(_)}clear(){this._map.clear()}}const Fi=new RegExp(":enter","g"),Er=new RegExp(":leave","g");function eo(V,_,c,j,oe,Ce=new Map,$e=new Map,st,Et,xt=[]){return(new Po).buildKeyframes(V,_,c,j,oe,Ce,$e,st,Et,xt)}class Po{buildKeyframes(_,c,j,oe,Ce,$e,st,Et,xt,en=[]){xt=xt||new br;const rn=new Ts(_,c,xt,oe,Ce,en,[]);rn.options=Et;const Nn=Et.delay?Wn(Et.delay):0;rn.currentTimeline.delayNextStep(Nn),rn.currentTimeline.setStyles([$e],null,rn.errors,Et),zi(this,j,rn);const Fn=rn.timelines.filter(vn=>vn.containsAnimation());if(Fn.length&&st.size){let vn;for(let Pn=Fn.length-1;Pn>=0;Pn--){const Si=Fn[Pn];if(Si.element===c){vn=Si;break}}vn&&!vn.allowOnlyTimelineStyles()&&vn.setStyles([st],null,rn.errors,Et)}return Fn.length?Fn.map(vn=>vn.buildKeyframes()):[Br(c,[],[],[],0,Nn,"",!1)]}visitTrigger(_,c){}visitState(_,c){}visitTransition(_,c){}visitAnimateChild(_,c){const j=c.subInstructions.get(c.element);if(j){const oe=c.createSubContext(_.options),Ce=c.currentTimeline.currentTime,$e=this._visitSubInstructions(j,oe,oe.options);Ce!=$e&&c.transformIntoNewTimeline($e)}c.previousNode=_}visitAnimateRef(_,c){const j=c.createSubContext(_.options);j.transformIntoNewTimeline(),this._applyAnimationRefDelays([_.options,_.animation.options],c,j),this.visitReference(_.animation,j),c.transformIntoNewTimeline(j.currentTimeline.currentTime),c.previousNode=_}_applyAnimationRefDelays(_,c,j){for(const oe of _){const Ce=oe?.delay;if(Ce){const $e="number"==typeof Ce?Ce:Wn(nr(Ce,oe?.params??{},c.errors));j.delayNextStep($e)}}}_visitSubInstructions(_,c,j){let Ce=c.currentTimeline.currentTime;const $e=null!=j.duration?Wn(j.duration):null,st=null!=j.delay?Wn(j.delay):null;return 0!==$e&&_.forEach(Et=>{const xt=c.appendInstructionToTimeline(Et,$e,st);Ce=Math.max(Ce,xt.duration+xt.delay)}),Ce}visitReference(_,c){c.updateOptions(_.options,!0),zi(this,_.animation,c),c.previousNode=_}visitSequence(_,c){const j=c.subContextCount;let oe=c;const Ce=_.options;if(Ce&&(Ce.params||Ce.delay)&&(oe=c.createSubContext(Ce),oe.transformIntoNewTimeline(),null!=Ce.delay)){6==oe.previousNode.type&&(oe.currentTimeline.snapshotCurrentStyles(),oe.previousNode=hs);const $e=Wn(Ce.delay);oe.delayNextStep($e)}_.steps.length&&(_.steps.forEach($e=>zi(this,$e,oe)),oe.currentTimeline.applyStylesToKeyframe(),oe.subContextCount>j&&oe.transformIntoNewTimeline()),c.previousNode=_}visitGroup(_,c){const j=[];let oe=c.currentTimeline.currentTime;const Ce=_.options&&_.options.delay?Wn(_.options.delay):0;_.steps.forEach($e=>{const st=c.createSubContext(_.options);Ce&&st.delayNextStep(Ce),zi(this,$e,st),oe=Math.max(oe,st.currentTimeline.currentTime),j.push(st.currentTimeline)}),j.forEach($e=>c.currentTimeline.mergeTimelineCollectedStyles($e)),c.transformIntoNewTimeline(oe),c.previousNode=_}_visitTiming(_,c){if(_.dynamic){const j=_.strValue;return er(c.params?nr(j,c.params,c.errors):j,c.errors)}return{duration:_.duration,delay:_.delay,easing:_.easing}}visitAnimate(_,c){const j=c.currentAnimateTimings=this._visitTiming(_.timings,c),oe=c.currentTimeline;j.delay&&(c.incrementTime(j.delay),oe.snapshotCurrentStyles());const Ce=_.style;5==Ce.type?this.visitKeyframes(Ce,c):(c.incrementTime(j.duration),this.visitStyle(Ce,c),oe.applyStylesToKeyframe()),c.currentAnimateTimings=null,c.previousNode=_}visitStyle(_,c){const j=c.currentTimeline,oe=c.currentAnimateTimings;!oe&&j.hasCurrentStyleProperties()&&j.forwardFrame();const Ce=oe&&oe.easing||_.easing;_.isEmptyStep?j.applyEmptyStep(Ce):j.setStyles(_.styles,Ce,c.errors,c.options),c.previousNode=_}visitKeyframes(_,c){const j=c.currentAnimateTimings,oe=c.currentTimeline.duration,Ce=j.duration,st=c.createSubContext().currentTimeline;st.easing=j.easing,_.styles.forEach(Et=>{st.forwardTime((Et.offset||0)*Ce),st.setStyles(Et.styles,Et.easing,c.errors,c.options),st.applyStylesToKeyframe()}),c.currentTimeline.mergeTimelineCollectedStyles(st),c.transformIntoNewTimeline(oe+Ce),c.previousNode=_}visitQuery(_,c){const j=c.currentTimeline.currentTime,oe=_.options||{},Ce=oe.delay?Wn(oe.delay):0;Ce&&(6===c.previousNode.type||0==j&&c.currentTimeline.hasCurrentStyleProperties())&&(c.currentTimeline.snapshotCurrentStyles(),c.previousNode=hs);let $e=j;const st=c.invokeQuery(_.selector,_.originalSelector,_.limit,_.includeSelf,!!oe.optional,c.errors);c.currentQueryTotal=st.length;let Et=null;st.forEach((xt,en)=>{c.currentQueryIndex=en;const rn=c.createSubContext(_.options,xt);Ce&&rn.delayNextStep(Ce),xt===c.element&&(Et=rn.currentTimeline),zi(this,_.animation,rn),rn.currentTimeline.applyStylesToKeyframe(),$e=Math.max($e,rn.currentTimeline.currentTime)}),c.currentQueryIndex=0,c.currentQueryTotal=0,c.transformIntoNewTimeline($e),Et&&(c.currentTimeline.mergeTimelineCollectedStyles(Et),c.currentTimeline.snapshotCurrentStyles()),c.previousNode=_}visitStagger(_,c){const j=c.parentContext,oe=c.currentTimeline,Ce=_.timings,$e=Math.abs(Ce.duration),st=$e*(c.currentQueryTotal-1);let Et=$e*c.currentQueryIndex;switch(Ce.duration<0?"reverse":Ce.easing){case"reverse":Et=st-Et;break;case"full":Et=j.currentStaggerTime}const en=c.currentTimeline;Et&&en.delayNextStep(Et);const rn=en.currentTime;zi(this,_.animation,c),c.previousNode=_,j.currentStaggerTime=oe.currentTime-rn+(oe.startTime-j.currentTimeline.startTime)}}const hs={};class Ts{constructor(_,c,j,oe,Ce,$e,st,Et){this._driver=_,this.element=c,this.subInstructions=j,this._enterClassName=oe,this._leaveClassName=Ce,this.errors=$e,this.timelines=st,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=hs,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Et||new fs(this._driver,c,0),st.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(_,c){if(!_)return;const j=_;let oe=this.options;null!=j.duration&&(oe.duration=Wn(j.duration)),null!=j.delay&&(oe.delay=Wn(j.delay));const Ce=j.params;if(Ce){let $e=oe.params;$e||($e=this.options.params={}),Object.keys(Ce).forEach(st=>{(!c||!$e.hasOwnProperty(st))&&($e[st]=nr(Ce[st],$e,this.errors))})}}_copyOptions(){const _={};if(this.options){const c=this.options.params;if(c){const j=_.params={};Object.keys(c).forEach(oe=>{j[oe]=c[oe]})}}return _}createSubContext(_=null,c,j){const oe=c||this.element,Ce=new Ts(this._driver,oe,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(oe,j||0));return Ce.previousNode=this.previousNode,Ce.currentAnimateTimings=this.currentAnimateTimings,Ce.options=this._copyOptions(),Ce.updateOptions(_),Ce.currentQueryIndex=this.currentQueryIndex,Ce.currentQueryTotal=this.currentQueryTotal,Ce.parentContext=this,this.subContextCount++,Ce}transformIntoNewTimeline(_){return this.previousNode=hs,this.currentTimeline=this.currentTimeline.fork(this.element,_),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(_,c,j){const oe={duration:c??_.duration,delay:this.currentTimeline.currentTime+(j??0)+_.delay,easing:""},Ce=new po(this._driver,_.element,_.keyframes,_.preStyleProps,_.postStyleProps,oe,_.stretchStartingKeyframe);return this.timelines.push(Ce),oe}incrementTime(_){this.currentTimeline.forwardTime(this.currentTimeline.duration+_)}delayNextStep(_){_>0&&this.currentTimeline.delayNextStep(_)}invokeQuery(_,c,j,oe,Ce,$e){let st=[];if(oe&&st.push(this.element),_.length>0){_=(_=_.replace(Fi,"."+this._enterClassName)).replace(Er,"."+this._leaveClassName);let xt=this._driver.query(this.element,_,1!=j);0!==j&&(xt=j<0?xt.slice(xt.length+j,xt.length):xt.slice(0,j)),st.push(...xt)}return!Ce&&0==st.length&&$e.push(function te(V){return new y.wOt(3014,!1)}()),st}}class fs{constructor(_,c,j,oe){this._driver=_,this.element=c,this.startTime=j,this._elementTimelineStylesLookup=oe,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(c),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(c,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(_){const c=1===this._keyframes.size&&this._pendingStyles.size;this.duration||c?(this.forwardTime(this.currentTime+_),c&&this.snapshotCurrentStyles()):this.startTime+=_}fork(_,c){return this.applyStylesToKeyframe(),new fs(this._driver,_,c||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(_){this.applyStylesToKeyframe(),this.duration=_,this._loadKeyframe()}_updateStyle(_,c){this._localTimelineStyles.set(_,c),this._globalTimelineStyles.set(_,c),this._styleSummary.set(_,{time:this.currentTime,value:c})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(_){_&&this._previousKeyframe.set("easing",_);for(let[c,j]of this._globalTimelineStyles)this._backFill.set(c,j||Ot.kp),this._currentKeyframe.set(c,Ot.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(_,c,j,oe){c&&this._previousKeyframe.set("easing",c);const Ce=oe&&oe.params||{},$e=function go(V,_){const c=new Map;let j;return V.forEach(oe=>{if("*"===oe){j=j||_.keys();for(let Ce of j)c.set(Ce,Ot.kp)}else Ai(oe,c)}),c}(_,this._globalTimelineStyles);for(let[st,Et]of $e){const xt=nr(Et,Ce,j);this._pendingStyles.set(st,xt),this._localTimelineStyles.has(st)||this._backFill.set(st,this._globalTimelineStyles.get(st)??Ot.kp),this._updateStyle(st,xt)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((_,c)=>{this._currentKeyframe.set(c,_)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((_,c)=>{this._currentKeyframe.has(c)||this._currentKeyframe.set(c,_)}))}snapshotCurrentStyles(){for(let[_,c]of this._localTimelineStyles)this._pendingStyles.set(_,c),this._updateStyle(_,c)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const _=[];for(let c in this._currentKeyframe)_.push(c);return _}mergeTimelineCollectedStyles(_){_._styleSummary.forEach((c,j)=>{const oe=this._styleSummary.get(j);(!oe||c.time>oe.time)&&this._updateStyle(j,c.value)})}buildKeyframes(){this.applyStylesToKeyframe();const _=new Set,c=new Set,j=1===this._keyframes.size&&0===this.duration;let oe=[];this._keyframes.forEach((st,Et)=>{const xt=Ai(st,new Map,this._backFill);xt.forEach((en,rn)=>{en===Ot.FX?_.add(rn):en===Ot.kp&&c.add(rn)}),j||xt.set("offset",Et/this.duration),oe.push(xt)});const Ce=_.size?lr(_.values()):[],$e=c.size?lr(c.values()):[];if(j){const st=oe[0],Et=new Map(st);st.set("offset",0),Et.set("offset",1),oe=[st,Et]}return Br(this.element,oe,Ce,$e,this.duration,this.startTime,this.easing,!1)}}class po extends fs{constructor(_,c,j,oe,Ce,$e,st=!1){super(_,c,$e.delay),this.keyframes=j,this.preStyleProps=oe,this.postStyleProps=Ce,this._stretchStartingKeyframe=st,this.timings={duration:$e.duration,delay:$e.delay,easing:$e.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let _=this.keyframes,{delay:c,duration:j,easing:oe}=this.timings;if(this._stretchStartingKeyframe&&c){const Ce=[],$e=j+c,st=c/$e,Et=Ai(_[0]);Et.set("offset",0),Ce.push(Et);const xt=Ai(_[0]);xt.set("offset",to(st)),Ce.push(xt);const en=_.length-1;for(let rn=1;rn<=en;rn++){let Nn=Ai(_[rn]);const Fn=Nn.get("offset");Nn.set("offset",to((c+Fn*j)/$e)),Ce.push(Nn)}j=$e,c=0,oe="",_=Ce}return Br(this.element,_,this.preStyleProps,this.postStyleProps,j,c,oe,!0)}}function to(V,_=3){const c=Math.pow(10,_-1);return Math.round(V*c)/c}class no{}const ro=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 Ps extends no{normalizePropertyName(_,c){return Bi(_)}normalizeStyleValue(_,c,j,oe){let Ce="";const $e=j.toString().trim();if(ro.has(c)&&0!==j&&"0"!==j)if("number"==typeof j)Ce="px";else{const st=j.match(/^[+-]?[\d\.]+([a-z]*)$/);st&&0==st[1].length&&oe.push(function jn(V,_){return new y.wOt(3005,!1)}())}return $e+Ce}}function Cs(V,_,c,j,oe,Ce,$e,st,Et,xt,en,rn,Nn){return{type:0,element:V,triggerName:_,isRemovalTransition:oe,fromState:c,fromStyles:Ce,toState:j,toStyles:$e,timelines:st,queriedElements:Et,preStyleProps:xt,postStyleProps:en,totalTime:rn,errors:Nn}}const Bs={};class Mo{constructor(_,c,j){this._triggerName=_,this.ast=c,this._stateStyles=j}match(_,c,j,oe){return function ra(V,_,c,j,oe){return V.some(Ce=>Ce(_,c,j,oe))}(this.ast.matchers,_,c,j,oe)}buildStyles(_,c,j){let oe=this._stateStyles.get("*");return void 0!==_&&(oe=this._stateStyles.get(_?.toString())||oe),oe?oe.buildStyles(c,j):new Map}build(_,c,j,oe,Ce,$e,st,Et,xt,en){const rn=[],Nn=this.ast.options&&this.ast.options.params||Bs,vn=this.buildStyles(j,st&&st.params||Bs,rn),Pn=Et&&Et.params||Bs,Si=this.buildStyles(oe,Pn,rn),wi=new Set,Ji=new Map,dr=new Map,Ar="void"===oe,Ks={params:tl(Pn,Nn),delay:this.ast.options?.delay},is=en?[]:eo(_,c,this.ast.animation,Ce,$e,vn,Si,Ks,xt,rn);let Ir=0;if(is.forEach(Es=>{Ir=Math.max(Es.duration+Es.delay,Ir)}),rn.length)return Cs(c,this._triggerName,j,oe,Ar,vn,Si,[],[],Ji,dr,Ir,rn);is.forEach(Es=>{const Qr=Es.element,$o=Hn(Ji,Qr,new Set);Es.preStyleProps.forEach(ms=>$o.add(ms));const oo=Hn(dr,Qr,new Set);Es.postStyleProps.forEach(ms=>oo.add(ms)),Qr!==c&&wi.add(Qr)});const hr=lr(wi.values());return Cs(c,this._triggerName,j,oe,Ar,vn,Si,is,hr,Ji,dr,Ir)}}function tl(V,_){const c=_r(_);for(const j in V)V.hasOwnProperty(j)&&null!=V[j]&&(c[j]=V[j]);return c}class Io{constructor(_,c,j){this.styles=_,this.defaultParams=c,this.normalizer=j}buildStyles(_,c){const j=new Map,oe=_r(this.defaultParams);return Object.keys(_).forEach(Ce=>{const $e=_[Ce];null!==$e&&(oe[Ce]=$e)}),this.styles.styles.forEach(Ce=>{"string"!=typeof Ce&&Ce.forEach(($e,st)=>{$e&&($e=nr($e,oe,c));const Et=this.normalizer.normalizePropertyName(st,c);$e=this.normalizer.normalizeStyleValue(st,Et,$e,c),j.set(st,$e)})}),j}}class xo{constructor(_,c,j){this.name=_,this.ast=c,this._normalizer=j,this.transitionFactories=[],this.states=new Map,c.states.forEach(oe=>{this.states.set(oe.name,new Io(oe.style,oe.options&&oe.options.params||{},j))}),Oo(this.states,"true","1"),Oo(this.states,"false","0"),c.transitions.forEach(oe=>{this.transitionFactories.push(new Mo(_,oe,this.states))}),this.fallbackTransition=function mo(V,_,c){return new Mo(V,{type:1,animation:{type:2,steps:[],options:null},matchers:[($e,st)=>!0],options:null,queryCount:0,depCount:0},_)}(_,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(_,c,j,oe){return this.transitionFactories.find($e=>$e.match(_,c,j,oe))||null}matchStyles(_,c,j){return this.fallbackTransition.buildStyles(_,c,j)}}function Oo(V,_,c){V.has(_)?V.has(c)||V.set(c,V.get(_)):V.has(c)&&V.set(_,V.get(c))}const vo=new br;class nl{constructor(_,c,j){this.bodyNode=_,this._driver=c,this._normalizer=j,this._animations=new Map,this._playersById=new Map,this.players=[]}register(_,c){const j=[],Ce=Di(this._driver,c,j,[]);if(j.length)throw function Xe(V){return new y.wOt(3503,!1)}();this._animations.set(_,Ce)}_buildPlayer(_,c,j){const oe=_.element,Ce=pi(this._normalizer,_.keyframes,c,j);return this._driver.animate(oe,Ce,_.duration,_.delay,_.easing,[],!0)}create(_,c,j={}){const oe=[],Ce=this._animations.get(_);let $e;const st=new Map;if(Ce?($e=eo(this._driver,c,Ce,Ri,wr,new Map,new Map,j,vo,oe),$e.forEach(en=>{const rn=Hn(st,en.element,new Map);en.postStyleProps.forEach(Nn=>rn.set(Nn,null))})):(oe.push(function lt(){return new y.wOt(3300,!1)}()),$e=[]),oe.length)throw function pt(V){return new y.wOt(3504,!1)}();st.forEach((en,rn)=>{en.forEach((Nn,Fn)=>{en.set(Fn,this._driver.computeStyle(rn,Fn,Ot.kp))})});const xt=hn($e.map(en=>{const rn=st.get(en.element);return this._buildPlayer(en,new Map,rn)}));return this._playersById.set(_,xt),xt.onDestroy(()=>this.destroy(_)),this.players.push(xt),xt}destroy(_){const c=this._getPlayer(_);c.destroy(),this._playersById.delete(_);const j=this.players.indexOf(c);j>=0&&this.players.splice(j,1)}_getPlayer(_){const c=this._playersById.get(_);if(!c)throw function kt(V){return new y.wOt(3301,!1)}();return c}listen(_,c,j,oe){const Ce=fn(c,"","","");return ai(this._getPlayer(_),j,Ce,oe),()=>{}}command(_,c,j,oe){if("register"==j)return void this.register(_,oe[0]);if("create"==j)return void this.create(_,c,oe[0]||{});const Ce=this._getPlayer(_);switch(j){case"play":Ce.play();break;case"pause":Ce.pause();break;case"reset":Ce.reset();break;case"restart":Ce.restart();break;case"finish":Ce.finish();break;case"init":Ce.init();break;case"setPosition":Ce.setPosition(parseFloat(oe[0]));break;case"destroy":this.destroy(_)}}}const Us="ng-animate-queued",H="ng-animate-disabled",qe=[],Tt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Nt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},on="__ng_removed";class mi{get params(){return this.options.params}constructor(_,c=""){this.namespaceId=c;const j=_&&_.hasOwnProperty("value");if(this.value=function Gr(V){return V??null}(j?_.value:_),j){const Ce=_r(_);delete Ce.value,this.options=Ce}else this.options={};this.options.params||(this.options.params={})}absorbOptions(_){const c=_.params;if(c){const j=this.options.params;Object.keys(c).forEach(oe=>{null==j[oe]&&(j[oe]=c[oe])})}}}const vi="void",ni=new mi(vi);class zn{constructor(_,c,j){this.id=_,this.hostElement=c,this._engine=j,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+_,Gi(c,this._hostClassName)}listen(_,c,j,oe){if(!this._triggers.has(c))throw function Kt(V,_){return new y.wOt(3302,!1)}();if(null==j||0==j.length)throw function Zt(V){return new y.wOt(3303,!1)}();if(!function ps(V){return"start"==V||"done"==V}(j))throw function we(V,_){return new y.wOt(3400,!1)}();const Ce=Hn(this._elementListeners,_,[]),$e={name:c,phase:j,callback:oe};Ce.push($e);const st=Hn(this._engine.statesByElement,_,new Map);return st.has(c)||(Gi(_,yn),Gi(_,yn+"-"+c),st.set(c,ni)),()=>{this._engine.afterFlush(()=>{const Et=Ce.indexOf($e);Et>=0&&Ce.splice(Et,1),this._triggers.has(c)||st.delete(c)})}}register(_,c){return!this._triggers.has(_)&&(this._triggers.set(_,c),!0)}_getTrigger(_){const c=this._triggers.get(_);if(!c)throw function ke(V){return new y.wOt(3401,!1)}();return c}trigger(_,c,j,oe=!0){const Ce=this._getTrigger(c),$e=new ui(this.id,c,_);let st=this._engine.statesByElement.get(_);st||(Gi(_,yn),Gi(_,yn+"-"+c),this._engine.statesByElement.set(_,st=new Map));let Et=st.get(c);const xt=new mi(j,this.id);if(!(j&&j.hasOwnProperty("value"))&&Et&&xt.absorbOptions(Et.options),st.set(c,xt),Et||(Et=ni),xt.value!==vi&&Et.value===xt.value){if(!function Mr(V,_){const c=Object.keys(V),j=Object.keys(_);if(c.length!=j.length)return!1;for(let oe=0;oe<c.length;oe++){const Ce=c[oe];if(!_.hasOwnProperty(Ce)||V[Ce]!==_[Ce])return!1}return!0}(Et.params,xt.params)){const Pn=[],Si=Ce.matchStyles(Et.value,Et.params,Pn),wi=Ce.matchStyles(xt.value,xt.params,Pn);Pn.length?this._engine.reportError(Pn):this._engine.afterFlush(()=>{Tn(_,Si),tr(_,wi)})}return}const Nn=Hn(this._engine.playersByElement,_,[]);Nn.forEach(Pn=>{Pn.namespaceId==this.id&&Pn.triggerName==c&&Pn.queued&&Pn.destroy()});let Fn=Ce.matchTransition(Et.value,xt.value,_,xt.params),vn=!1;if(!Fn){if(!oe)return;Fn=Ce.fallbackTransition,vn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:_,triggerName:c,transition:Fn,fromState:Et,toState:xt,player:$e,isFallbackTransition:vn}),vn||(Gi(_,Us),$e.onStart(()=>{Yi(_,Us)})),$e.onDone(()=>{let Pn=this.players.indexOf($e);Pn>=0&&this.players.splice(Pn,1);const Si=this._engine.playersByElement.get(_);if(Si){let wi=Si.indexOf($e);wi>=0&&Si.splice(wi,1)}}),this.players.push($e),Nn.push($e),$e}deregister(_){this._triggers.delete(_),this._engine.statesByElement.forEach(c=>c.delete(_)),this._elementListeners.forEach((c,j)=>{this._elementListeners.set(j,c.filter(oe=>oe.name!=_))})}clearElementCache(_){this._engine.statesByElement.delete(_),this._elementListeners.delete(_);const c=this._engine.playersByElement.get(_);c&&(c.forEach(j=>j.destroy()),this._engine.playersByElement.delete(_))}_signalRemovalForInnerTriggers(_,c){const j=this._engine.driver.query(_,sr,!0);j.forEach(oe=>{if(oe[on])return;const Ce=this._engine.fetchNamespacesByElement(oe);Ce.size?Ce.forEach($e=>$e.triggerLeaveAnimation(oe,c,!1,!0)):this.clearElementCache(oe)}),this._engine.afterFlushAnimationsDone(()=>j.forEach(oe=>this.clearElementCache(oe)))}triggerLeaveAnimation(_,c,j,oe){const Ce=this._engine.statesByElement.get(_),$e=new Map;if(Ce){const st=[];if(Ce.forEach((Et,xt)=>{if($e.set(xt,Et.value),this._triggers.has(xt)){const en=this.trigger(_,xt,vi,oe);en&&st.push(en)}}),st.length)return this._engine.markElementAsRemoved(this.id,_,!0,c,$e),j&&hn(st).onDone(()=>this._engine.processLeaveNode(_)),!0}return!1}prepareLeaveAnimationListeners(_){const c=this._elementListeners.get(_),j=this._engine.statesByElement.get(_);if(c&&j){const oe=new Set;c.forEach(Ce=>{const $e=Ce.name;if(oe.has($e))return;oe.add($e);const Et=this._triggers.get($e).fallbackTransition,xt=j.get($e)||ni,en=new mi(vi),rn=new ui(this.id,$e,_);this._engine.totalQueuedPlayers++,this._queue.push({element:_,triggerName:$e,transition:Et,fromState:xt,toState:en,player:rn,isFallbackTransition:!0})})}}removeNode(_,c){const j=this._engine;if(_.childElementCount&&this._signalRemovalForInnerTriggers(_,c),this.triggerLeaveAnimation(_,c,!0))return;let oe=!1;if(j.totalAnimations){const Ce=j.players.length?j.playersByQueriedElement.get(_):[];if(Ce&&Ce.length)oe=!0;else{let $e=_;for(;$e=$e.parentNode;)if(j.statesByElement.get($e)){oe=!0;break}}}if(this.prepareLeaveAnimationListeners(_),oe)j.markElementAsRemoved(this.id,_,!1,c);else{const Ce=_[on];(!Ce||Ce===Tt)&&(j.afterFlush(()=>this.clearElementCache(_)),j.destroyInnerAnimations(_),j._onRemovalComplete(_,c))}}insertNode(_,c){Gi(_,this._hostClassName)}drainQueuedTransitions(_){const c=[];return this._queue.forEach(j=>{const oe=j.player;if(oe.destroyed)return;const Ce=j.element,$e=this._elementListeners.get(Ce);$e&&$e.forEach(st=>{if(st.name==j.triggerName){const Et=fn(Ce,j.triggerName,j.fromState.value,j.toState.value);Et._data=_,ai(j.player,st.phase,Et,st.callback)}}),oe.markedForDestroy?this._engine.afterFlush(()=>{oe.destroy()}):c.push(j)}),this._queue=[],c.sort((j,oe)=>{const Ce=j.transition.ast.depCount,$e=oe.transition.ast.depCount;return 0==Ce||0==$e?Ce-$e:this._engine.driver.containsElement(j.element,oe.element)?1:-1})}destroy(_){this.players.forEach(c=>c.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,_)}}class Li{_onRemovalComplete(_,c){this.onRemovalComplete(_,c)}constructor(_,c,j){this.bodyNode=_,this.driver=c,this._normalizer=j,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=(oe,Ce)=>{}}get queuedPlayers(){const _=[];return this._namespaceList.forEach(c=>{c.players.forEach(j=>{j.queued&&_.push(j)})}),_}createNamespace(_,c){const j=new zn(_,c,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,c)?this._balanceNamespaceList(j,c):(this.newHostElements.set(c,j),this.collectEnterElement(c)),this._namespaceLookup[_]=j}_balanceNamespaceList(_,c){const j=this._namespaceList,oe=this.namespacesByHostElement;if(j.length-1>=0){let $e=!1,st=this.driver.getParentElement(c);for(;st;){const Et=oe.get(st);if(Et){const xt=j.indexOf(Et);j.splice(xt+1,0,_),$e=!0;break}st=this.driver.getParentElement(st)}$e||j.unshift(_)}else j.push(_);return oe.set(c,_),_}register(_,c){let j=this._namespaceLookup[_];return j||(j=this.createNamespace(_,c)),j}registerTrigger(_,c,j){let oe=this._namespaceLookup[_];oe&&oe.register(c,j)&&this.totalAnimations++}destroy(_,c){_&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const j=this._fetchNamespace(_);this.namespacesByHostElement.delete(j.hostElement);const oe=this._namespaceList.indexOf(j);oe>=0&&this._namespaceList.splice(oe,1),j.destroy(c),delete this._namespaceLookup[_]}))}_fetchNamespace(_){return this._namespaceLookup[_]}fetchNamespacesByElement(_){const c=new Set,j=this.statesByElement.get(_);if(j)for(let oe of j.values())if(oe.namespaceId){const Ce=this._fetchNamespace(oe.namespaceId);Ce&&c.add(Ce)}return c}trigger(_,c,j,oe){if(Ki(c)){const Ce=this._fetchNamespace(_);if(Ce)return Ce.trigger(c,j,oe),!0}return!1}insertNode(_,c,j,oe){if(!Ki(c))return;const Ce=c[on];if(Ce&&Ce.setForRemoval){Ce.setForRemoval=!1,Ce.setForMove=!0;const $e=this.collectedLeaveElements.indexOf(c);$e>=0&&this.collectedLeaveElements.splice($e,1)}if(_){const $e=this._fetchNamespace(_);$e&&$e.insertNode(c,j)}oe&&this.collectEnterElement(c)}collectEnterElement(_){this.collectedEnterElements.push(_)}markElementAsDisabled(_,c){c?this.disabledNodes.has(_)||(this.disabledNodes.add(_),Gi(_,H)):this.disabledNodes.has(_)&&(this.disabledNodes.delete(_),Yi(_,H))}removeNode(_,c,j){if(Ki(c)){const oe=_?this._fetchNamespace(_):null;oe?oe.removeNode(c,j):this.markElementAsRemoved(_,c,!1,j);const Ce=this.namespacesByHostElement.get(c);Ce&&Ce.id!==_&&Ce.removeNode(c,j)}else this._onRemovalComplete(c,j)}markElementAsRemoved(_,c,j,oe,Ce){this.collectedLeaveElements.push(c),c[on]={namespaceId:_,setForRemoval:oe,hasAnimation:j,removedBeforeQueried:!1,previousTriggersValues:Ce}}listen(_,c,j,oe,Ce){return Ki(c)?this._fetchNamespace(_).listen(c,j,oe,Ce):()=>{}}_buildInstruction(_,c,j,oe,Ce){return _.transition.build(this.driver,_.element,_.fromState.value,_.toState.value,j,oe,_.fromState.options,_.toState.options,c,Ce)}destroyInnerAnimations(_){let c=this.driver.query(_,sr,!0);c.forEach(j=>this.destroyActiveAnimationsForElement(j)),0!=this.playersByQueriedElement.size&&(c=this.driver.query(_,pr,!0),c.forEach(j=>this.finishActiveQueriedAnimationOnElement(j)))}destroyActiveAnimationsForElement(_){const c=this.playersByElement.get(_);c&&c.forEach(j=>{j.queued?j.markedForDestroy=!0:j.destroy()})}finishActiveQueriedAnimationOnElement(_){const c=this.playersByQueriedElement.get(_);c&&c.forEach(j=>j.finish())}whenRenderingDone(){return new Promise(_=>{if(this.players.length)return hn(this.players).onDone(()=>_());_()})}processLeaveNode(_){const c=_[on];if(c&&c.setForRemoval){if(_[on]=Tt,c.namespaceId){this.destroyInnerAnimations(_);const j=this._fetchNamespace(c.namespaceId);j&&j.clearElementCache(_)}this._onRemovalComplete(_,c.setForRemoval)}_.classList?.contains(H)&&this.markElementAsDisabled(_,!1),this.driver.query(_,".ng-animate-disabled",!0).forEach(j=>{this.markElementAsDisabled(j,!1)})}flush(_=-1){let c=[];if(this.newHostElements.size&&(this.newHostElements.forEach((j,oe)=>this._balanceNamespaceList(j,oe)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let j=0;j<this.collectedEnterElements.length;j++)Gi(this.collectedEnterElements[j],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const j=[];try{c=this._flushAnimations(j,_)}finally{for(let oe=0;oe<j.length;oe++)j[oe]()}}else for(let j=0;j<this.collectedLeaveElements.length;j++)this.processLeaveNode(this.collectedLeaveElements[j]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(j=>j()),this._flushFns=[],this._whenQuietFns.length){const j=this._whenQuietFns;this._whenQuietFns=[],c.length?hn(c).onDone(()=>{j.forEach(oe=>oe())}):j.forEach(oe=>oe())}}reportError(_){throw function Ze(V){return new y.wOt(3402,!1)}()}_flushAnimations(_,c){const j=new br,oe=[],Ce=new Map,$e=[],st=new Map,Et=new Map,xt=new Map,en=new Set;this.disabledNodes.forEach(mn=>{en.add(mn);const Dn=this.driver.query(mn,".ng-animate-queued",!0);for(let Rn=0;Rn<Dn.length;Rn++)en.add(Dn[Rn])});const rn=this.bodyNode,Nn=Array.from(this.statesByElement.keys()),Fn=Xi(Nn,this.collectedEnterElements),vn=new Map;let Pn=0;Fn.forEach((mn,Dn)=>{const Rn=Ri+Pn++;vn.set(Dn,Rn),mn.forEach(hi=>Gi(hi,Rn))});const Si=[],wi=new Set,Ji=new Set;for(let mn=0;mn<this.collectedLeaveElements.length;mn++){const Dn=this.collectedLeaveElements[mn],Rn=Dn[on];Rn&&Rn.setForRemoval&&(Si.push(Dn),wi.add(Dn),Rn.hasAnimation?this.driver.query(Dn,".ng-star-inserted",!0).forEach(hi=>wi.add(hi)):Ji.add(Dn))}const dr=new Map,Ar=Xi(Nn,Array.from(wi));Ar.forEach((mn,Dn)=>{const Rn=wr+Pn++;dr.set(Dn,Rn),mn.forEach(hi=>Gi(hi,Rn))}),_.push(()=>{Fn.forEach((mn,Dn)=>{const Rn=vn.get(Dn);mn.forEach(hi=>Yi(hi,Rn))}),Ar.forEach((mn,Dn)=>{const Rn=dr.get(Dn);mn.forEach(hi=>Yi(hi,Rn))}),Si.forEach(mn=>{this.processLeaveNode(mn)})});const Ks=[],is=[];for(let mn=this._namespaceList.length-1;mn>=0;mn--)this._namespaceList[mn].drainQueuedTransitions(c).forEach(Rn=>{const hi=Rn.player,fr=Rn.element;if(Ks.push(hi),this.collectedEnterElements.length){const xr=fr[on];if(xr&&xr.setForMove){if(xr.previousTriggersValues&&xr.previousTriggersValues.has(Rn.triggerName)){const qi=xr.previousTriggersValues.get(Rn.triggerName),rs=this.statesByElement.get(Rn.element);if(rs&&rs.has(Rn.triggerName)){const Wo=rs.get(Rn.triggerName);Wo.value=qi,rs.set(Rn.triggerName,Wo)}}return void hi.destroy()}}const Vr=!rn||!this.driver.containsElement(rn,fr),ir=dr.get(fr),Rs=vn.get(fr),Vi=this._buildInstruction(Rn,j,Rs,ir,Vr);if(Vi.errors&&Vi.errors.length)return void is.push(Vi);if(Vr)return hi.onStart(()=>Tn(fr,Vi.fromStyles)),hi.onDestroy(()=>tr(fr,Vi.toStyles)),void oe.push(hi);if(Rn.isFallbackTransition)return hi.onStart(()=>Tn(fr,Vi.fromStyles)),hi.onDestroy(()=>tr(fr,Vi.toStyles)),void oe.push(hi);const gl=[];Vi.timelines.forEach(xr=>{xr.stretchStartingKeyframe=!0,this.disabledNodes.has(xr.element)||gl.push(xr)}),Vi.timelines=gl,j.append(fr,Vi.timelines),$e.push({instruction:Vi,player:hi,element:fr}),Vi.queriedElements.forEach(xr=>Hn(st,xr,[]).push(hi)),Vi.preStyleProps.forEach((xr,qi)=>{if(xr.size){let rs=Et.get(qi);rs||Et.set(qi,rs=new Set),xr.forEach((Wo,Go)=>rs.add(Go))}}),Vi.postStyleProps.forEach((xr,qi)=>{let rs=xt.get(qi);rs||xt.set(qi,rs=new Set),xr.forEach((Wo,Go)=>rs.add(Go))})});if(is.length){const mn=[];is.forEach(Dn=>{mn.push(function Vt(V,_){return new y.wOt(3505,!1)}())}),Ks.forEach(Dn=>Dn.destroy()),this.reportError(mn)}const Ir=new Map,hr=new Map;$e.forEach(mn=>{const Dn=mn.element;j.has(Dn)&&(hr.set(Dn,Dn),this._beforeAnimationBuild(mn.player.namespaceId,mn.instruction,Ir))}),oe.forEach(mn=>{const Dn=mn.element;this._getPreviousPlayers(Dn,!1,mn.namespaceId,mn.triggerName,null).forEach(hi=>{Hn(Ir,Dn,[]).push(hi),hi.destroy()})});const Es=Si.filter(mn=>oa(mn,Et,xt)),Qr=new Map;es(Qr,this.driver,Ji,xt,Ot.kp).forEach(mn=>{oa(mn,Et,xt)&&Es.push(mn)});const oo=new Map;Fn.forEach((mn,Dn)=>{es(oo,this.driver,new Set(mn),Et,Ot.FX)}),Es.forEach(mn=>{const Dn=Qr.get(mn),Rn=oo.get(mn);Qr.set(mn,new Map([...Dn?.entries()??[],...Rn?.entries()??[]]))});const ms=[],Ho=[],pl={};$e.forEach(mn=>{const{element:Dn,player:Rn,instruction:hi}=mn;if(j.has(Dn)){if(en.has(Dn))return Rn.onDestroy(()=>tr(Dn,hi.toStyles)),Rn.disabled=!0,Rn.overrideTotalTime(hi.totalTime),void oe.push(Rn);let fr=pl;if(hr.size>1){let ir=Dn;const Rs=[];for(;ir=ir.parentNode;){const Vi=hr.get(ir);if(Vi){fr=Vi;break}Rs.push(ir)}Rs.forEach(Vi=>hr.set(Vi,fr))}const Vr=this._buildAnimation(Rn.namespaceId,hi,Ir,Ce,oo,Qr);if(Rn.setRealPlayer(Vr),fr===pl)ms.push(Rn);else{const ir=this.playersByElement.get(fr);ir&&ir.length&&(Rn.parentPlayer=hn(ir)),oe.push(Rn)}}else Tn(Dn,hi.fromStyles),Rn.onDestroy(()=>tr(Dn,hi.toStyles)),Ho.push(Rn),en.has(Dn)&&oe.push(Rn)}),Ho.forEach(mn=>{const Dn=Ce.get(mn.element);if(Dn&&Dn.length){const Rn=hn(Dn);mn.setRealPlayer(Rn)}}),oe.forEach(mn=>{mn.parentPlayer?mn.syncPlayerEvents(mn.parentPlayer):mn.destroy()});for(let mn=0;mn<Si.length;mn++){const Dn=Si[mn],Rn=Dn[on];if(Yi(Dn,wr),Rn&&Rn.hasAnimation)continue;let hi=[];if(st.size){let Vr=st.get(Dn);Vr&&Vr.length&&hi.push(...Vr);let ir=this.driver.query(Dn,pr,!0);for(let Rs=0;Rs<ir.length;Rs++){let Vi=st.get(ir[Rs]);Vi&&Vi.length&&hi.push(...Vi)}}const fr=hi.filter(Vr=>!Vr.destroyed);fr.length?Mi(this,Dn,fr):this.processLeaveNode(Dn)}return Si.length=0,ms.forEach(mn=>{this.players.push(mn),mn.onDone(()=>{mn.destroy();const Dn=this.players.indexOf(mn);this.players.splice(Dn,1)}),mn.play()}),ms}afterFlush(_){this._flushFns.push(_)}afterFlushAnimationsDone(_){this._whenQuietFns.push(_)}_getPreviousPlayers(_,c,j,oe,Ce){let $e=[];if(c){const st=this.playersByQueriedElement.get(_);st&&($e=st)}else{const st=this.playersByElement.get(_);if(st){const Et=!Ce||Ce==vi;st.forEach(xt=>{xt.queued||!Et&&xt.triggerName!=oe||$e.push(xt)})}}return(j||oe)&&($e=$e.filter(st=>!(j&&j!=st.namespaceId||oe&&oe!=st.triggerName))),$e}_beforeAnimationBuild(_,c,j){const Ce=c.element,$e=c.isRemovalTransition?void 0:_,st=c.isRemovalTransition?void 0:c.triggerName;for(const Et of c.timelines){const xt=Et.element,en=xt!==Ce,rn=Hn(j,xt,[]);this._getPreviousPlayers(xt,en,$e,st,c.toState).forEach(Fn=>{const vn=Fn.getRealPlayer();vn.beforeDestroy&&vn.beforeDestroy(),Fn.destroy(),rn.push(Fn)})}Tn(Ce,c.fromStyles)}_buildAnimation(_,c,j,oe,Ce,$e){const st=c.triggerName,Et=c.element,xt=[],en=new Set,rn=new Set,Nn=c.timelines.map(vn=>{const Pn=vn.element;en.add(Pn);const Si=Pn[on];if(Si&&Si.removedBeforeQueried)return new Ot.sf(vn.duration,vn.delay);const wi=Pn!==Et,Ji=function yo(V){const _=[];return bs(V,_),_}((j.get(Pn)||qe).map(Ir=>Ir.getRealPlayer())).filter(Ir=>!!Ir.element&&Ir.element===Pn),dr=Ce.get(Pn),Ar=$e.get(Pn),Ks=pi(this._normalizer,vn.keyframes,dr,Ar),is=this._buildPlayer(vn,Ks,Ji);if(vn.subTimeline&&oe&&rn.add(Pn),wi){const Ir=new ui(_,st,Pn);Ir.setRealPlayer(is),xt.push(Ir)}return is});xt.forEach(vn=>{Hn(this.playersByQueriedElement,vn.element,[]).push(vn),vn.onDone(()=>function Wi(V,_,c){let j=V.get(_);if(j){if(j.length){const oe=j.indexOf(c);j.splice(oe,1)}0==j.length&&V.delete(_)}return j}(this.playersByQueriedElement,vn.element,vn))}),en.forEach(vn=>Gi(vn,Wr));const Fn=hn(Nn);return Fn.onDestroy(()=>{en.forEach(vn=>Yi(vn,Wr)),tr(Et,c.toStyles)}),rn.forEach(vn=>{Hn(oe,vn,[]).push(Fn)}),Fn}_buildPlayer(_,c,j){return c.length>0?this.driver.animate(_.element,c,_.duration,_.delay,_.easing,j):new Ot.sf(_.duration,_.delay)}}class ui{constructor(_,c,j){this.namespaceId=_,this.triggerName=c,this.element=j,this._player=new Ot.sf,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(_){this._containsRealPlayer||(this._player=_,this._queuedCallbacks.forEach((c,j)=>{c.forEach(oe=>ai(_,j,void 0,oe))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(_.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(_){this.totalTime=_}syncPlayerEvents(_){const c=this._player;c.triggerCallback&&_.onStart(()=>c.triggerCallback("start")),_.onDone(()=>this.finish()),_.onDestroy(()=>this.destroy())}_queueEvent(_,c){Hn(this._queuedCallbacks,_,[]).push(c)}onDone(_){this.queued&&this._queueEvent("done",_),this._player.onDone(_)}onStart(_){this.queued&&this._queueEvent("start",_),this._player.onStart(_)}onDestroy(_){this.queued&&this._queueEvent("destroy",_),this._player.onDestroy(_)}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(_){this.queued||this._player.setPosition(_)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(_){const c=this._player;c.triggerCallback&&c.triggerCallback(_)}}function Ki(V){return V&&1===V.nodeType}function gr(V,_){const c=V.style.display;return V.style.display=_??"none",c}function es(V,_,c,j,oe){const Ce=[];c.forEach(Et=>Ce.push(gr(Et)));const $e=[];j.forEach((Et,xt)=>{const en=new Map;Et.forEach(rn=>{const Nn=_.computeStyle(xt,rn,oe);en.set(rn,Nn),(!Nn||0==Nn.length)&&(xt[on]=Nt,$e.push(xt))}),V.set(xt,en)});let st=0;return c.forEach(Et=>gr(Et,Ce[st++])),$e}function Xi(V,_){const c=new Map;if(V.forEach(st=>c.set(st,[])),0==_.length)return c;const oe=new Set(_),Ce=new Map;function $e(st){if(!st)return 1;let Et=Ce.get(st);if(Et)return Et;const xt=st.parentNode;return Et=c.has(xt)?xt:oe.has(xt)?1:$e(xt),Ce.set(st,Et),Et}return _.forEach(st=>{const Et=$e(st);1!==Et&&c.get(Et).push(st)}),c}function Gi(V,_){V.classList?.add(_)}function Yi(V,_){V.classList?.remove(_)}function Mi(V,_,c){hn(c).onDone(()=>V.processLeaveNode(_))}function bs(V,_){for(let c=0;c<V.length;c++){const j=V[c];j instanceof Ot.ui?bs(j.players,_):_.push(j)}}function oa(V,_,c){const j=c.get(V);if(!j)return!1;let oe=_.get(V);return oe?j.forEach(Ce=>oe.add(Ce)):_.set(V,j),c.delete(V),!0}class Vs{constructor(_,c,j){this.bodyNode=_,this._driver=c,this._normalizer=j,this._triggerCache={},this.onRemovalComplete=(oe,Ce)=>{},this._transitionEngine=new Li(_,c,j),this._timelineEngine=new nl(_,c,j),this._transitionEngine.onRemovalComplete=(oe,Ce)=>this.onRemovalComplete(oe,Ce)}registerTrigger(_,c,j,oe,Ce){const $e=_+"-"+oe;let st=this._triggerCache[$e];if(!st){const Et=[],en=Di(this._driver,Ce,Et,[]);if(Et.length)throw function Se(V,_){return new y.wOt(3404,!1)}();st=function sa(V,_,c){return new xo(V,_,c)}(oe,en,this._normalizer),this._triggerCache[$e]=st}this._transitionEngine.registerTrigger(c,oe,st)}register(_,c){this._transitionEngine.register(_,c)}destroy(_,c){this._transitionEngine.destroy(_,c)}onInsert(_,c,j,oe){this._transitionEngine.insertNode(_,c,j,oe)}onRemove(_,c,j){this._transitionEngine.removeNode(_,c,j)}disableAnimations(_,c){this._transitionEngine.markElementAsDisabled(_,c)}process(_,c,j,oe){if("@"==j.charAt(0)){const[Ce,$e]=Ti(j);this._timelineEngine.command(Ce,c,$e,oe)}else this._transitionEngine.trigger(_,c,j,oe)}listen(_,c,j,oe,Ce){if("@"==j.charAt(0)){const[$e,st]=Ti(j);return this._timelineEngine.listen($e,c,st,Ce)}return this._transitionEngine.listen(_,c,j,oe,Ce)}flush(_=-1){this._transitionEngine.flush(_)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(_){this._transitionEngine.afterFlushAnimationsDone(_)}}let Ur=(()=>{class V{static#e=this.initialStylesByElement=new WeakMap;constructor(c,j,oe){this._element=c,this._startStyles=j,this._endStyles=oe,this._state=0;let Ce=V.initialStylesByElement.get(c);Ce||V.initialStylesByElement.set(c,Ce=new Map),this._initialStyles=Ce}start(){this._state<1&&(this._startStyles&&tr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(tr(this._element,this._initialStyles),this._endStyles&&(tr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(V.initialStylesByElement.delete(this._element),this._startStyles&&(Tn(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Tn(this._element,this._endStyles),this._endStyles=null),tr(this._element,this._initialStyles),this._state=3)}}return V})();function Lo(V){let _=null;return V.forEach((c,j)=>{(function ko(V){return"display"===V||"position"===V})(j)&&(_=_||new Map,_.set(j,c))}),_}class Fo{constructor(_,c,j,oe){this.element=_,this.keyframes=c,this.options=j,this._specialStyles=oe,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=j.duration,this._delay=j.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(_=>_()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const _=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,_,this.options),this._finalKeyframe=_.length?_[_.length-1]:new Map;const c=()=>this._onFinish();this.domPlayer.addEventListener("finish",c),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",c)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(_){const c=[];return _.forEach(j=>{c.push(Object.fromEntries(j))}),c}_triggerWebAnimation(_,c,j){return _.animate(this._convertKeyframesToObject(c),j)}onStart(_){this._originalOnStartFns.push(_),this._onStartFns.push(_)}onDone(_){this._originalOnDoneFns.push(_),this._onDoneFns.push(_)}onDestroy(_){this._onDestroyFns.push(_)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(_=>_()),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(_=>_()),this._onDestroyFns=[])}setPosition(_){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=_*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const _=new Map;this.hasStarted()&&this._finalKeyframe.forEach((j,oe)=>{"offset"!==oe&&_.set(oe,this._finished?j:cr(this.element,oe))}),this.currentSnapshot=_}triggerCallback(_){const c="start"===_?this._onStartFns:this._onDoneFns;c.forEach(j=>j()),c.length=0}}class Ms{validateStyleProperty(_){return!0}validateAnimatableStyleProperty(_){return!0}matchesElement(_,c){return!1}containsElement(_,c){return tn(_,c)}getParentElement(_){return Ii(_)}query(_,c,j){return En(_,c,j)}computeStyle(_,c,j){return window.getComputedStyle(_)[c]}animate(_,c,j,oe,Ce,$e=[]){const Et={duration:j,delay:oe,fill:0==oe?"both":"forwards"};Ce&&(Et.easing=Ce);const xt=new Map,en=$e.filter(Fn=>Fn instanceof Fo);(function ki(V,_){return 0===V||0===_})(j,oe)&&en.forEach(Fn=>{Fn.currentSnapshot.forEach((vn,Pn)=>xt.set(Pn,vn))});let rn=function Pr(V){return V.length?V[0]instanceof Map?V:V.map(_=>Ss(_)):[]}(c).map(Fn=>Ai(Fn));rn=function $i(V,_,c){if(c.size&&_.length){let j=_[0],oe=[];if(c.forEach((Ce,$e)=>{j.has($e)||oe.push($e),j.set($e,Ce)}),oe.length)for(let Ce=1;Ce<_.length;Ce++){let $e=_[Ce];oe.forEach(st=>$e.set(st,cr(V,st)))}}return _}(_,rn,xt);const Nn=function js(V,_){let c=null,j=null;return Array.isArray(_)&&_.length?(c=Lo(_[0]),_.length>1&&(j=Lo(_[_.length-1]))):_ instanceof Map&&(c=Lo(_)),c||j?new Ur(V,c,j):null}(_,rn);return new Fo(_,rn,Et,Nn)}}let No=(()=>{class V extends Ot.S6{constructor(c,j){super(),this._nextAnimationId=0,this._renderer=c.createRenderer(j.body,{id:"0",encapsulation:y.gXe.None,styles:[],data:{animation:[]}})}build(c){const j=this._nextAnimationId.toString();this._nextAnimationId++;const oe=Array.isArray(c)?(0,Ot.K2)(c):c;return la(this._renderer,null,j,"register",[oe]),new gs(j,this._renderer)}static#e=this.\u0275fac=function(j){return new(j||V)(y.KVO(y._9s),y.KVO(w.qQ))};static#t=this.\u0275prov=y.jDH({token:V,factory:V.\u0275fac})}return V})();class gs extends Ot.Ro{constructor(_,c){super(),this._id=_,this._renderer=c}create(_,c){return new aa(this._id,_,c||{},this._renderer)}}class aa{constructor(_,c,j,oe){this.id=_,this.element=c,this._renderer=oe,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",j)}_listen(_,c){return this._renderer.listen(this.element,`@@${this.id}:${_}`,c)}_command(_,...c){return la(this._renderer,this.element,this.id,_,c)}onDone(_){this._listen("done",_)}onStart(_){this._listen("start",_)}onDestroy(_){this._listen("destroy",_)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(_){this._command("setPosition",_)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function la(V,_,c,j,oe){return V.setProperty(_,`@@${c}:${j}`,oe)}const il="@.disabled";let On=(()=>{class V{constructor(c,j,oe){this.delegate=c,this.engine=j,this._zone=oe,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,j.onRemovalComplete=(Ce,$e)=>{const st=$e?.parentNode(Ce);st&&$e.removeChild(st,Ce)}}createRenderer(c,j){const Ce=this.delegate.createRenderer(c,j);if(!(c&&j&&j.data&&j.data.animation)){let en=this._rendererCache.get(Ce);return en||(en=new Co("",Ce,this.engine,()=>this._rendererCache.delete(Ce)),this._rendererCache.set(Ce,en)),en}const $e=j.id,st=j.id+"-"+this._currentId;this._currentId++,this.engine.register(st,c);const Et=en=>{Array.isArray(en)?en.forEach(Et):this.engine.registerTrigger($e,st,c,en.name,en)};return j.data.animation.forEach(Et),new ca(this,st,Ce,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(c,j,oe){c>=0&&c<this._microtaskId?this._zone.run(()=>j(oe)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Ce=>{const[$e,st]=Ce;$e(st)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([j,oe]))}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()}static#e=this.\u0275fac=function(j){return new(j||V)(y.KVO(y._9s),y.KVO(Vs),y.KVO(y.SKi))};static#t=this.\u0275prov=y.jDH({token:V,factory:V.\u0275fac})}return V})();class Co{constructor(_,c,j,oe){this.namespaceId=_,this.delegate=c,this.engine=j,this._onDestroy=oe}get data(){return this.delegate.data}destroyNode(_){this.delegate.destroyNode?.(_)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(_,c){return this.delegate.createElement(_,c)}createComment(_){return this.delegate.createComment(_)}createText(_){return this.delegate.createText(_)}appendChild(_,c){this.delegate.appendChild(_,c),this.engine.onInsert(this.namespaceId,c,_,!1)}insertBefore(_,c,j,oe=!0){this.delegate.insertBefore(_,c,j),this.engine.onInsert(this.namespaceId,c,_,oe)}removeChild(_,c,j){this.engine.onRemove(this.namespaceId,c,this.delegate)}selectRootElement(_,c){return this.delegate.selectRootElement(_,c)}parentNode(_){return this.delegate.parentNode(_)}nextSibling(_){return this.delegate.nextSibling(_)}setAttribute(_,c,j,oe){this.delegate.setAttribute(_,c,j,oe)}removeAttribute(_,c,j){this.delegate.removeAttribute(_,c,j)}addClass(_,c){this.delegate.addClass(_,c)}removeClass(_,c){this.delegate.removeClass(_,c)}setStyle(_,c,j,oe){this.delegate.setStyle(_,c,j,oe)}removeStyle(_,c,j){this.delegate.removeStyle(_,c,j)}setProperty(_,c,j){"@"==c.charAt(0)&&c==il?this.disableAnimations(_,!!j):this.delegate.setProperty(_,c,j)}setValue(_,c){this.delegate.setValue(_,c)}listen(_,c,j){return this.delegate.listen(_,c,j)}disableAnimations(_,c){this.engine.disableAnimations(_,c)}}class ca extends Co{constructor(_,c,j,oe,Ce){super(c,j,oe,Ce),this.factory=_,this.namespaceId=c}setProperty(_,c,j){"@"==c.charAt(0)?"."==c.charAt(1)&&c==il?this.disableAnimations(_,j=void 0===j||!!j):this.engine.process(this.namespaceId,_,c.slice(1),j):this.delegate.setProperty(_,c,j)}listen(_,c,j){if("@"==c.charAt(0)){const oe=function rl(V){switch(V){case"body":return document.body;case"document":return document;case"window":return window;default:return V}}(_);let Ce=c.slice(1),$e="";return"@"!=Ce.charAt(0)&&([Ce,$e]=function sl(V){const _=V.indexOf(".");return[V.substring(0,_),V.slice(_+1)]}(Ce)),this.engine.listen(this.namespaceId,oe,Ce,$e,st=>{this.factory.scheduleListenerCallback(st._data||-1,j,st)})}return this.delegate.listen(_,c,j)}}const ol=[{provide:Ot.S6,useClass:No},{provide:no,useFactory:function Bo(){return new Ps}},{provide:Vs,useClass:(()=>{class V extends Vs{constructor(c,j,oe,Ce){super(c.body,j,oe)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(j){return new(j||V)(y.KVO(w.qQ),y.KVO(ji),y.KVO(no),y.KVO(y.o8S))};static#t=this.\u0275prov=y.jDH({token:V,factory:V.\u0275fac})}return V})()},{provide:y._9s,useFactory:function $s(V,_,c){return new On(V,_,c)},deps:[n.B7,Vs,y.SKi]}],ua=[{provide:ji,useFactory:()=>new Ms},{provide:y.bc$,useValue:"BrowserAnimations"},...ol],al=[{provide:ji,useClass:Pi},{provide:y.bc$,useValue:"NoopAnimations"},...ol];let ll=(()=>{class V{static withConfig(c){return{ngModule:V,providers:c.disableAnimations?al:ua}}static#e=this.\u0275fac=function(j){return new(j||V)};static#t=this.\u0275mod=y.$C({type:V});static#n=this.\u0275inj=y.G2t({providers:ua,imports:[n.Bb]})}return V})();var Uo=o(68001),Vo=o(98129),Qi=o(20756),jo=o(47267),Is=o(16104),Kr=o(99406),bo=o(20262);const Xr=new Kr.c(bo.l);var ql=o(52489),xs=o(93527),Zi=o(38503),Yr=o(72831),cl=o(29086),Hs=o(54418),B=o(18621),ee=o(9867);const J={connector:()=>new Is.B};function ye(V,_=J){const{connector:c}=_;return(0,ee.N)((j,oe)=>{const Ce=c();(0,B.Tg)(V(function M(V){return new Kr.c(_=>V.subscribe(_))}(Ce))).subscribe(oe),oe.add(j.subscribe(Ce))})}var Dt=o(38486),St=o(37236),an=o(14929),Vn=o(96111),ci=o(3770),ts=o(93422);function Os(V,_){return _?c=>(0,jo.x)(_.pipe((0,Dt.s)(1),function Ei(){return(0,ee.N)((V,_)=>{V.subscribe((0,Vn._)(_,bo.l))})}()),c.pipe(Os(V))):(0,ts.Z)((c,j)=>(0,B.Tg)(V(c,j)).pipe((0,Dt.s)(1),(0,ci.u)(c)))}var zs=o(53229);const ns="Service workers are disabled or not supported by this browser";class mr{constructor(_){if(this.serviceWorker=_,_){const j=(0,Vo.R)(_,"controllerchange").pipe((0,xs.T)(()=>_.controller)),oe=(0,Uo.v)(()=>(0,Qi.of)(_.controller)),Ce=(0,jo.x)(oe,j);this.worker=Ce.pipe((0,Zi.p)(en=>!!en)),this.registration=this.worker.pipe((0,Yr.n)(()=>_.getRegistration()));const xt=(0,Vo.R)(_,"message").pipe((0,xs.T)(en=>en.data)).pipe((0,Zi.p)(en=>en&&en.type)).pipe(function Ye(V){return V?_=>ye(V)(_):_=>function Oe(V,_){const c=(0,Hs.T)(V)?V:()=>V;return(0,Hs.T)(_)?ye(_,{connector:c}):j=>new cl.G(j,c)}(new Is.B)(_)}());xt.connect(),this.events=xt}else this.worker=this.events=this.registration=function ul(V){return(0,Uo.v)(()=>(0,ot.$)(new Error(V)))}(ns)}postMessage(_,c){return this.worker.pipe((0,Dt.s)(1),(0,St.M)(j=>{j.postMessage({action:_,...c})})).toPromise().then(()=>{})}postMessageWithOperation(_,c,j){const oe=this.waitForOperationCompleted(j),Ce=this.postMessage(_,c);return Promise.all([Ce,oe]).then(([,$e])=>$e)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(_){let c;return c="string"==typeof _?j=>j.type===_:j=>_.includes(j.type),this.events.pipe((0,Zi.p)(c))}nextEventOfType(_){return this.eventsOfType(_).pipe((0,Dt.s)(1))}waitForOperationCompleted(_){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,Zi.p)(c=>c.nonce===_),(0,Dt.s)(1),(0,xs.T)(c=>{if(void 0!==c.result)return c.result;throw new Error(c.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let Ws=(()=>{class V{get isEnabled(){return this.sw.isEnabled}constructor(c){if(this.sw=c,this.pushManager=null,this.subscriptionChanges=new Is.B,!c.isEnabled)return this.messages=Xr,this.notificationClicks=Xr,void(this.subscription=Xr);this.messages=this.sw.eventsOfType("PUSH").pipe((0,xs.T)(oe=>oe.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,xs.T)(oe=>oe.data)),this.pushManager=this.sw.registration.pipe((0,xs.T)(oe=>oe.pushManager));const j=this.pushManager.pipe((0,Yr.n)(oe=>oe.getSubscription()));this.subscription=(0,ql.h)(j,this.subscriptionChanges)}requestSubscription(c){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(ns));const j={userVisibleOnly:!0};let oe=this.decodeBase64(c.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),Ce=new Uint8Array(new ArrayBuffer(oe.length));for(let $e=0;$e<oe.length;$e++)Ce[$e]=oe.charCodeAt($e);return j.applicationServerKey=Ce,this.pushManager.pipe((0,Yr.n)($e=>$e.subscribe(j)),(0,Dt.s)(1)).toPromise().then($e=>(this.subscriptionChanges.next($e),$e))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,Dt.s)(1),(0,Yr.n)(j=>{if(null===j)throw new Error("Not subscribed to push notifications.");return j.unsubscribe().then(oe=>{if(!oe)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(ns))}decodeBase64(c){return atob(c)}static#e=this.\u0275fac=function(j){return new(j||V)(y.KVO(mr))};static#t=this.\u0275prov=y.jDH({token:V,factory:V.\u0275fac})}return V})(),Ui=(()=>{class V{get isEnabled(){return this.sw.isEnabled}constructor(c){if(this.sw=c,!c.isEnabled)return this.versionUpdates=Xr,this.available=Xr,this.activated=Xr,void(this.unrecoverable=Xr);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.available=this.versionUpdates.pipe((0,Zi.p)(j=>"VERSION_READY"===j.type),(0,xs.T)(j=>({type:"UPDATE_AVAILABLE",current:j.currentVersion,available:j.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(ns));const c=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:c},c)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(ns));const c=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:c},c)}static#e=this.\u0275fac=function(j){return new(j||V)(y.KVO(mr))};static#t=this.\u0275prov=y.jDH({token:V,factory:V.\u0275fac})}return V})();const dl=new y.nKC("NGSW_REGISTER_SCRIPT");function pu(V,_,c,j){return()=>{if(!(0,w.UE)(j)||!("serviceWorker"in navigator)||!1===c.enabled)return;let oe;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof c.registrationStrategy)oe=c.registrationStrategy();else{const[$e,...st]=(c.registrationStrategy||"registerWhenStable:30000").split(":");switch($e){case"registerImmediately":oe=(0,Qi.of)(null);break;case"registerWithDelay":oe=hl(+st[0]||0);break;case"registerWhenStable":oe=st[0]?(0,ql.h)(ec(V),hl(+st[0])):ec(V);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${c.registrationStrategy}`)}}V.get(y.SKi).runOutsideAngular(()=>oe.pipe((0,Dt.s)(1)).subscribe(()=>navigator.serviceWorker.register(_,{scope:c.scope}).catch($e=>console.error("Service worker registration failed with:",$e))))}}function hl(V){return(0,Qi.of)(null).pipe(function so(V,_=an.E){const c=(0,zs.O)(V,_);return Os(()=>c)}(V))}function ec(V){return V.get(y.o8S).isStable.pipe((0,Zi.p)(c=>c))}function tc(V,_){return new mr((0,w.UE)(_)&&!1!==V.enabled?navigator.serviceWorker:void 0)}class da{}function ha(V,_={}){return(0,y.EmA)([Ws,Ui,{provide:dl,useValue:V},{provide:da,useValue:_},{provide:mr,useFactory:tc,deps:[da,y.Agw]},{provide:y.hnV,useFactory:pu,deps:[y.zZn,dl,da,y.Agw],multi:!0}])}let Gs=(()=>{class V{static register(c,j={}){return{ngModule:V,providers:[ha(c,j)]}}static#e=this.\u0275fac=function(j){return new(j||V)};static#t=this.\u0275mod=y.$C({type:V});static#n=this.\u0275inj=y.G2t({providers:[Ws,Ui]})}return V})();var gu=o(36594);function fa(V){return new Z(V,"./assets/i18n/",".json")}let pa=(()=>{class V{static#e=this.\u0275fac=function(j){return new(j||V)};static#t=this.\u0275mod=y.$C({type:V,bootstrap:[yi]});static#n=this.\u0275inj=y.G2t({providers:[{provide:a.a7,useClass:Lt,multi:!0},{provide:ie.b,useClass:h.jM},Storage,Geolocation,w.oe,Clipboard],imports:[n.Bb,h.bv.forRoot({backButtonText:""}),C.forRoot(),ri,a.q1,Q.h.forRoot({loader:{provide:Q.Wr,useFactory:fa,deps:[a.Qq]}}),Pt,si.Y,gt.h,ll,Gs.register("ngsw-worker.js",{enabled:wn.c.production,registrationStrategy:"registerWhenStable:30000"}),gu.rJ]})}return V})();o(66716),wn.c.production&&(0,y.SmG)(),n.sG().bootstrapModule(pa).catch(V=>console.log(V))},88996:(He,L,o)=>{var n={"./ion-accordion_2.entry.js":[21462,2076,1462],"./ion-action-sheet.entry.js":[19349,2076,9349],"./ion-alert.entry.js":[9723,2076,9723],"./ion-app_8.entry.js":[33049,2076,1929],"./ion-avatar_3.entry.js":[96850,6850],"./ion-back-button.entry.js":[25463,2076,5463],"./ion-backdrop.entry.js":[91268,8887],"./ion-breadcrumb_2.entry.js":[26037,2076,6037],"./ion-button_2.entry.js":[79176,9176],"./ion-card_5.entry.js":[15327,5327],"./ion-checkbox.entry.js":[59552,9552],"./ion-chip.entry.js":[24879,4879],"./ion-col_3.entry.js":[65409,5409],"./ion-datetime-button.entry.js":[99313,8244,9313],"./ion-datetime_3.entry.js":[77646,8244,2076,7646],"./ion-fab_3.entry.js":[7386,2076,7386],"./ion-img.entry.js":[92406,2406],"./ion-infinite-scroll_2.entry.js":[31482,2076,9034],"./ion-input.entry.js":[1841,2076,1841],"./ion-item-option_3.entry.js":[60244,2076,1892],"./ion-item_8.entry.js":[13245,2076,3245],"./ion-loading.entry.js":[31001,1001],"./ion-menu_3.entry.js":[71368,2076,1368],"./ion-modal.entry.js":[50576,2076,576],"./ion-nav_2.entry.js":[26177,2076,6177],"./ion-picker-column-internal.entry.js":[20810,2076,810],"./ion-picker-internal.entry.js":[89949,9949],"./ion-popover.entry.js":[63868,2076,3868],"./ion-progress-bar.entry.js":[62882,2882],"./ion-radio_2.entry.js":[99703,9703],"./ion-range.entry.js":[22892,2076,2892],"./ion-refresher_2.entry.js":[66556,2076,652],"./ion-reorder_2.entry.js":[52287,2076,9183],"./ion-ripple-effect.entry.js":[76777,6777],"./ion-route_4.entry.js":[98123,8123],"./ion-searchbar.entry.js":[69160,2076,9160],"./ion-segment_2.entry.js":[60861,2076,861],"./ion-select_3.entry.js":[95759,5759],"./ion-slide_2.entry.js":[74617,4617],"./ion-spinner.entry.js":[81964,2076,1964],"./ion-split-pane.entry.js":[55264,5264],"./ion-tab-bar_2.entry.js":[12819,2076,2819],"./ion-tab_2.entry.js":[43323,2076,3323],"./ion-text.entry.js":[40814,814],"./ion-textarea.entry.js":[66495,6495],"./ion-toast.entry.js":[5566,5566],"./ion-toggle.entry.js":[6041,2076,6041],"./ion-virtual-scroll.entry.js":[53058,3058]};function y(a){if(!o.o(n,a))return Promise.resolve().then(()=>{var Z=new Error("Cannot find module '"+a+"'");throw Z.code="MODULE_NOT_FOUND",Z});var Q=n[a],ie=Q[0];return Promise.all(Q.slice(1).map(o.e)).then(()=>o(ie))}y.keys=()=>Object.keys(n),y.id=88996,He.exports=y},89601:()=>{},49464:()=>{},88717:()=>{},36588:()=>{},83032:()=>{},18306:()=>{},24510:He=>{function L(n,y,a,Q,ie,Z,h){try{var w=n[Z](h),D=w.value}catch(x){return void a(x)}w.done?y(D):Promise.resolve(D).then(Q,ie)}He.exports=function o(n){return function(){var y=this,a=arguments;return new Promise(function(Q,ie){var Z=n.apply(y,a);function h(D){L(Z,Q,ie,h,w,"next",D)}function w(D){L(Z,Q,ie,h,w,"throw",D)}h(void 0)})}},He.exports.__esModule=!0,He.exports.default=He.exports},10194:(He,L,o)=>{"use strict";o.d(L,{FX:()=>g,K2:()=>h,MA:()=>d,Os:()=>Z,P:()=>P,Ro:()=>y,S6:()=>n,hZ:()=>Q,i0:()=>ie,iF:()=>w,kY:()=>E,kp:()=>a,sf:()=>$,ui:()=>I,wk:()=>D});class n{}class y{}const a="*";function Q(f,m){return{type:7,name:f,definitions:m,options:{}}}function ie(f,m=null){return{type:4,styles:m,timings:f}}function Z(f,m=null){return{type:3,steps:f,options:m}}function h(f,m=null){return{type:2,steps:f,options:m}}function w(f){return{type:6,styles:f,offset:null}}function D(f,m,T){return{type:0,name:f,styles:m,options:T}}function E(f,m,T=null){return{type:1,expr:f,animation:m,options:T}}function d(f=null){return{type:9,options:f}}function P(f,m,T=null){return{type:11,selector:f,animation:m,options:T}}class ${constructor(m=0,T=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=m+T}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(m=>m()),this._onDoneFns=[])}onStart(m){this._originalOnStartFns.push(m),this._onStartFns.push(m)}onDone(m){this._originalOnDoneFns.push(m),this._onDoneFns.push(m)}onDestroy(m){this._onDestroyFns.push(m)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(m=>m()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(m=>m()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(m){this._position=this.totalTime?m*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(m){const T="start"==m?this._onStartFns:this._onDoneFns;T.forEach(W=>W()),T.length=0}}class I{constructor(m){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=m;let T=0,W=0,K=0;const re=this.players.length;0==re?queueMicrotask(()=>this._onFinish()):this.players.forEach(U=>{U.onDone(()=>{++T==re&&this._onFinish()}),U.onDestroy(()=>{++W==re&&this._onDestroy()}),U.onStart(()=>{++K==re&&this._onStart()})}),this.totalTime=this.players.reduce((U,fe)=>Math.max(U,fe.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(m=>m()),this._onDoneFns=[])}init(){this.players.forEach(m=>m.init())}onStart(m){this._onStartFns.push(m)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(m=>m()),this._onStartFns=[])}onDone(m){this._onDoneFns.push(m)}onDestroy(m){this._onDestroyFns.push(m)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(m=>m.play())}pause(){this.players.forEach(m=>m.pause())}restart(){this.players.forEach(m=>m.restart())}finish(){this._onFinish(),this.players.forEach(m=>m.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(m=>m.destroy()),this._onDestroyFns.forEach(m=>m()),this._onDestroyFns=[])}reset(){this.players.forEach(m=>m.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(m){const T=m*this.totalTime;this.players.forEach(W=>{const K=W.totalTime?Math.min(1,T/W.totalTime):1;W.setPosition(K)})}getPosition(){const m=this.players.reduce((T,W)=>null===T||W.totalTime>T.totalTime?W:T,null);return null!=m?m.getPosition():0}beforeDestroy(){this.players.forEach(m=>{m.beforeDestroy&&m.beforeDestroy()})}triggerCallback(m){const T="start"==m?this._onStartFns:this._onDoneFns;T.forEach(W=>W()),T.length=0}}const g="!"},56610:(He,L,o)=>{"use strict";o.d(L,{AJ:()=>bi,B3:()=>pt,Jj:()=>Vt,MD:()=>yr,N0:()=>Pr,P9:()=>ji,PV:()=>pi,Pc:()=>ai,QT:()=>a,QX:()=>gi,Sm:()=>P,Sq:()=>Xn,T3:()=>kt,UE:()=>sr,VF:()=>ie,Vy:()=>Wr,Xr:()=>er,YU:()=>_n,ZD:()=>Q,_b:()=>xn,aZ:()=>$,bT:()=>tt,e1:()=>Ke,fG:()=>Se,fw:()=>k,hb:()=>d,hj:()=>w,oe:()=>En,qQ:()=>Z,ux:()=>Pe,vh:()=>Ti});var n=o(2978);let y=null;function a(){return y}function Q(H){y||(y=H)}class ie{}const Z=new n.nKC("DocumentToken");let h=(()=>{class H{historyGo(le){throw new Error("Not implemented")}static#e=this.\u0275fac=function(Ae){return new(Ae||H)};static#t=this.\u0275prov=n.jDH({token:H,factory:function(){return(0,n.WQX)(D)},providedIn:"platform"})}return H})();const w=new n.nKC("Location Initialized");let D=(()=>{class H extends h{constructor(){super(),this._doc=(0,n.WQX)(Z),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return a().getBaseHref(this._doc)}onPopState(le){const Ae=a().getGlobalEventTarget(this._doc,"window");return Ae.addEventListener("popstate",le,!1),()=>Ae.removeEventListener("popstate",le)}onHashChange(le){const Ae=a().getGlobalEventTarget(this._doc,"window");return Ae.addEventListener("hashchange",le,!1),()=>Ae.removeEventListener("hashchange",le)}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(le){this._location.pathname=le}pushState(le,Ae,qe){this._history.pushState(le,Ae,qe)}replaceState(le,Ae,qe){this._history.replaceState(le,Ae,qe)}forward(){this._history.forward()}back(){this._history.back()}historyGo(le=0){this._history.go(le)}getState(){return this._history.state}static#e=this.\u0275fac=function(Ae){return new(Ae||H)};static#t=this.\u0275prov=n.jDH({token:H,factory:function(){return new H},providedIn:"platform"})}return H})();function x(H,Te){if(0==H.length)return Te;if(0==Te.length)return H;let le=0;return H.endsWith("/")&&le++,Te.startsWith("/")&&le++,2==le?H+Te.substring(1):1==le?H+Te:H+"/"+Te}function E(H){const Te=H.match(/#|\?|$/),le=Te&&Te.index||H.length;return H.slice(0,le-("/"===H[le-1]?1:0))+H.slice(le)}function z(H){return H&&"?"!==H[0]?"?"+H:H}let d=(()=>{class H{historyGo(le){throw new Error("Not implemented")}static#e=this.\u0275fac=function(Ae){return new(Ae||H)};static#t=this.\u0275prov=n.jDH({token:H,factory:function(){return(0,n.WQX)(P)},providedIn:"root"})}return H})();const C=new n.nKC("appBaseHref");let P=(()=>{class H extends d{constructor(le,Ae){super(),this._platformLocation=le,this._removeListenerFns=[],this._baseHref=Ae??this._platformLocation.getBaseHrefFromDOM()??(0,n.WQX)(Z).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(le){this._removeListenerFns.push(this._platformLocation.onPopState(le),this._platformLocation.onHashChange(le))}getBaseHref(){return this._baseHref}prepareExternalUrl(le){return x(this._baseHref,le)}path(le=!1){const Ae=this._platformLocation.pathname+z(this._platformLocation.search),qe=this._platformLocation.hash;return qe&&le?`${Ae}${qe}`:Ae}pushState(le,Ae,qe,Tt){const Nt=this.prepareExternalUrl(qe+z(Tt));this._platformLocation.pushState(le,Ae,Nt)}replaceState(le,Ae,qe,Tt){const Nt=this.prepareExternalUrl(qe+z(Tt));this._platformLocation.replaceState(le,Ae,Nt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(le=0){this._platformLocation.historyGo?.(le)}static#e=this.\u0275fac=function(Ae){return new(Ae||H)(n.KVO(h),n.KVO(C,8))};static#t=this.\u0275prov=n.jDH({token:H,factory:H.\u0275fac,providedIn:"root"})}return H})(),k=(()=>{class H extends d{constructor(le,Ae){super(),this._platformLocation=le,this._baseHref="",this._removeListenerFns=[],null!=Ae&&(this._baseHref=Ae)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(le){this._removeListenerFns.push(this._platformLocation.onPopState(le),this._platformLocation.onHashChange(le))}getBaseHref(){return this._baseHref}path(le=!1){let Ae=this._platformLocation.hash;return null==Ae&&(Ae="#"),Ae.length>0?Ae.substring(1):Ae}prepareExternalUrl(le){const Ae=x(this._baseHref,le);return Ae.length>0?"#"+Ae:Ae}pushState(le,Ae,qe,Tt){let Nt=this.prepareExternalUrl(qe+z(Tt));0==Nt.length&&(Nt=this._platformLocation.pathname),this._platformLocation.pushState(le,Ae,Nt)}replaceState(le,Ae,qe,Tt){let Nt=this.prepareExternalUrl(qe+z(Tt));0==Nt.length&&(Nt=this._platformLocation.pathname),this._platformLocation.replaceState(le,Ae,Nt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(le=0){this._platformLocation.historyGo?.(le)}static#e=this.\u0275fac=function(Ae){return new(Ae||H)(n.KVO(h),n.KVO(C,8))};static#t=this.\u0275prov=n.jDH({token:H,factory:H.\u0275fac})}return H})(),$=(()=>{class H{constructor(le){this._subject=new n.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=le;const Ae=this._locationStrategy.getBaseHref();this._basePath=function m(H){if(new RegExp("^(https?:)?//").test(H)){const[,le]=H.split(/\/\/[^\/]+/);return le}return H}(E(f(Ae))),this._locationStrategy.onPopState(qe=>{this._subject.emit({url:this.path(!0),pop:!0,state:qe.state,type:qe.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(le=!1){return this.normalize(this._locationStrategy.path(le))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(le,Ae=""){return this.path()==this.normalize(le+z(Ae))}normalize(le){return H.stripTrailingSlash(function g(H,Te){if(!H||!Te.startsWith(H))return Te;const le=Te.substring(H.length);return""===le||["/",";","?","#"].includes(le[0])?le:Te}(this._basePath,f(le)))}prepareExternalUrl(le){return le&&"/"!==le[0]&&(le="/"+le),this._locationStrategy.prepareExternalUrl(le)}go(le,Ae="",qe=null){this._locationStrategy.pushState(qe,"",le,Ae),this._notifyUrlChangeListeners(this.prepareExternalUrl(le+z(Ae)),qe)}replaceState(le,Ae="",qe=null){this._locationStrategy.replaceState(qe,"",le,Ae),this._notifyUrlChangeListeners(this.prepareExternalUrl(le+z(Ae)),qe)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(le=0){this._locationStrategy.historyGo?.(le)}onUrlChange(le){return this._urlChangeListeners.push(le),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Ae=>{this._notifyUrlChangeListeners(Ae.url,Ae.state)})),()=>{const Ae=this._urlChangeListeners.indexOf(le);this._urlChangeListeners.splice(Ae,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(le="",Ae){this._urlChangeListeners.forEach(qe=>qe(le,Ae))}subscribe(le,Ae,qe){return this._subject.subscribe({next:le,error:Ae,complete:qe})}static#e=this.normalizeQueryParams=z;static#t=this.joinWithSlash=x;static#n=this.stripTrailingSlash=E;static#r=this.\u0275fac=function(Ae){return new(Ae||H)(n.KVO(d))};static#c=this.\u0275prov=n.jDH({token:H,factory:function(){return function I(){return new $((0,n.KVO)(d))}()},providedIn:"root"})}return H})();function f(H){return H.replace(/\/index.html$/,"")}const T={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var W=function(H){return H[H.Decimal=0]="Decimal",H[H.Percent=1]="Percent",H[H.Currency=2]="Currency",H[H.Scientific=3]="Scientific",H}(W||{}),re=function(H){return H[H.Format=0]="Format",H[H.Standalone=1]="Standalone",H}(re||{}),U=function(H){return H[H.Narrow=0]="Narrow",H[H.Abbreviated=1]="Abbreviated",H[H.Wide=2]="Wide",H[H.Short=3]="Short",H}(U||{}),fe=function(H){return H[H.Short=0]="Short",H[H.Medium=1]="Medium",H[H.Long=2]="Long",H[H.Full=3]="Full",H}(fe||{}),ue=function(H){return H[H.Decimal=0]="Decimal",H[H.Group=1]="Group",H[H.List=2]="List",H[H.PercentSign=3]="PercentSign",H[H.PlusSign=4]="PlusSign",H[H.MinusSign=5]="MinusSign",H[H.Exponential=6]="Exponential",H[H.SuperscriptingExponent=7]="SuperscriptingExponent",H[H.PerMille=8]="PerMille",H[H.Infinity=9]="Infinity",H[H.NaN=10]="NaN",H[H.TimeSeparator=11]="TimeSeparator",H[H.CurrencyDecimal=12]="CurrencyDecimal",H[H.CurrencyGroup=13]="CurrencyGroup",H}(ue||{});function u(H,Te){return Qe((0,n.H5H)(H)[n.KH2.DateFormat],Te)}function p(H,Te){return Qe((0,n.H5H)(H)[n.KH2.TimeFormat],Te)}function N(H,Te){return Qe((0,n.H5H)(H)[n.KH2.DateTimeFormat],Te)}function G(H,Te){const le=(0,n.H5H)(H),Ae=le[n.KH2.NumberSymbols][Te];if(typeof Ae>"u"){if(Te===ue.CurrencyDecimal)return le[n.KH2.NumberSymbols][ue.Decimal];if(Te===ue.CurrencyGroup)return le[n.KH2.NumberSymbols][ue.Group]}return Ae}function R(H,Te){return(0,n.H5H)(H)[n.KH2.NumberFormats][Te]}function Re(H){if(!H[n.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${H[n.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Qe(H,Te){for(let le=Te;le>-1;le--)if(typeof H[le]<"u")return H[le];throw new Error("Locale data API: locale data undefined")}function nt(H){const[Te,le]=H.split(":");return{hours:+Te,minutes:+le}}const It=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Rt={},At=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Ut=function(H){return H[H.Short=0]="Short",H[H.ShortGMT=1]="ShortGMT",H[H.Long=2]="Long",H[H.Extended=3]="Extended",H}(Ut||{}),Wt=function(H){return H[H.FullYear=0]="FullYear",H[H.Month=1]="Month",H[H.Date=2]="Date",H[H.Hours=3]="Hours",H[H.Minutes=4]="Minutes",H[H.Seconds=5]="Seconds",H[H.FractionalSeconds=6]="FractionalSeconds",H[H.Day=7]="Day",H}(Wt||{}),it=function(H){return H[H.DayPeriods=0]="DayPeriods",H[H.Days=1]="Days",H[H.Months=2]="Months",H[H.Eras=3]="Eras",H}(it||{});function Bt(H,Te,le,Ae){let qe=function mt(H){if(We(H))return H;if("number"==typeof H&&!isNaN(H))return new Date(H);if("string"==typeof H){if(H=H.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(H)){const[qe,Tt=1,Nt=1]=H.split("-").map(on=>+on);return rt(qe,Tt-1,Nt)}const le=parseFloat(H);if(!isNaN(H-le))return new Date(le);let Ae;if(Ae=H.match(It))return function yt(H){const Te=new Date(0);let le=0,Ae=0;const qe=H[8]?Te.setUTCFullYear:Te.setFullYear,Tt=H[8]?Te.setUTCHours:Te.setHours;H[9]&&(le=Number(H[9]+H[10]),Ae=Number(H[9]+H[11])),qe.call(Te,Number(H[1]),Number(H[2])-1,Number(H[3]));const Nt=Number(H[4]||0)-le,on=Number(H[5]||0)-Ae,mi=Number(H[6]||0),vi=Math.floor(1e3*parseFloat("0."+(H[7]||0)));return Tt.call(Te,Nt,on,mi,vi),Te}(Ae)}const Te=new Date(H);if(!We(Te))throw new Error(`Unable to convert "${H}" into a date`);return Te}(H);Te=Pt(le,Te)||Te;let on,Nt=[];for(;Te;){if(on=At.exec(Te),!on){Nt.push(Te);break}{Nt=Nt.concat(on.slice(1));const ni=Nt.pop();if(!ni)break;Te=ni}}let mi=qe.getTimezoneOffset();Ae&&(mi=In(Ae,mi),qe=function yi(H,Te,le){const Ae=le?-1:1,qe=H.getTimezoneOffset();return function ii(H,Te){return(H=new Date(H.getTime())).setMinutes(H.getMinutes()+Te),H}(H,Ae*(In(Te,qe)-qe))}(qe,Ae,!0));let vi="";return Nt.forEach(ni=>{const zn=function Jn(H){if(Yn[H])return Yn[H];let Te;switch(H){case"G":case"GG":case"GGG":Te=wt(it.Eras,U.Abbreviated);break;case"GGGG":Te=wt(it.Eras,U.Wide);break;case"GGGGG":Te=wt(it.Eras,U.Narrow);break;case"y":Te=Be(Wt.FullYear,1,0,!1,!0);break;case"yy":Te=Be(Wt.FullYear,2,0,!0,!0);break;case"yyy":Te=Be(Wt.FullYear,3,0,!1,!0);break;case"yyyy":Te=Be(Wt.FullYear,4,0,!1,!0);break;case"Y":Te=Zn(1);break;case"YY":Te=Zn(2,!0);break;case"YYY":Te=Zn(3);break;case"YYYY":Te=Zn(4);break;case"M":case"L":Te=Be(Wt.Month,1,1);break;case"MM":case"LL":Te=Be(Wt.Month,2,1);break;case"MMM":Te=wt(it.Months,U.Abbreviated);break;case"MMMM":Te=wt(it.Months,U.Wide);break;case"MMMMM":Te=wt(it.Months,U.Narrow);break;case"LLL":Te=wt(it.Months,U.Abbreviated,re.Standalone);break;case"LLLL":Te=wt(it.Months,U.Wide,re.Standalone);break;case"LLLLL":Te=wt(it.Months,U.Narrow,re.Standalone);break;case"w":Te=Bn(1);break;case"ww":Te=Bn(2);break;case"W":Te=Bn(1,!0);break;case"d":Te=Be(Wt.Date,1);break;case"dd":Te=Be(Wt.Date,2);break;case"c":case"cc":Te=Be(Wt.Day,1);break;case"ccc":Te=wt(it.Days,U.Abbreviated,re.Standalone);break;case"cccc":Te=wt(it.Days,U.Wide,re.Standalone);break;case"ccccc":Te=wt(it.Days,U.Narrow,re.Standalone);break;case"cccccc":Te=wt(it.Days,U.Short,re.Standalone);break;case"E":case"EE":case"EEE":Te=wt(it.Days,U.Abbreviated);break;case"EEEE":Te=wt(it.Days,U.Wide);break;case"EEEEE":Te=wt(it.Days,U.Narrow);break;case"EEEEEE":Te=wt(it.Days,U.Short);break;case"a":case"aa":case"aaa":Te=wt(it.DayPeriods,U.Abbreviated);break;case"aaaa":Te=wt(it.DayPeriods,U.Wide);break;case"aaaaa":Te=wt(it.DayPeriods,U.Narrow);break;case"b":case"bb":case"bbb":Te=wt(it.DayPeriods,U.Abbreviated,re.Standalone,!0);break;case"bbbb":Te=wt(it.DayPeriods,U.Wide,re.Standalone,!0);break;case"bbbbb":Te=wt(it.DayPeriods,U.Narrow,re.Standalone,!0);break;case"B":case"BB":case"BBB":Te=wt(it.DayPeriods,U.Abbreviated,re.Format,!0);break;case"BBBB":Te=wt(it.DayPeriods,U.Wide,re.Format,!0);break;case"BBBBB":Te=wt(it.DayPeriods,U.Narrow,re.Format,!0);break;case"h":Te=Be(Wt.Hours,1,-12);break;case"hh":Te=Be(Wt.Hours,2,-12);break;case"H":Te=Be(Wt.Hours,1);break;case"HH":Te=Be(Wt.Hours,2);break;case"m":Te=Be(Wt.Minutes,1);break;case"mm":Te=Be(Wt.Minutes,2);break;case"s":Te=Be(Wt.Seconds,1);break;case"ss":Te=Be(Wt.Seconds,2);break;case"S":Te=Be(Wt.FractionalSeconds,1);break;case"SS":Te=Be(Wt.FractionalSeconds,2);break;case"SSS":Te=Be(Wt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Te=ln(Ut.Short);break;case"ZZZZZ":Te=ln(Ut.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Te=ln(Ut.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Te=ln(Ut.Long);break;default:return null}return Yn[H]=Te,Te}(ni);vi+=zn?zn(qe,le,mi):"''"===ni?"'":ni.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),vi}function rt(H,Te,le){const Ae=new Date(0);return Ae.setFullYear(H,Te,le),Ae.setHours(0,0,0),Ae}function Pt(H,Te){const le=function he(H){return(0,n.H5H)(H)[n.KH2.LocaleId]}(H);if(Rt[le]=Rt[le]||{},Rt[le][Te])return Rt[le][Te];let Ae="";switch(Te){case"shortDate":Ae=u(H,fe.Short);break;case"mediumDate":Ae=u(H,fe.Medium);break;case"longDate":Ae=u(H,fe.Long);break;case"fullDate":Ae=u(H,fe.Full);break;case"shortTime":Ae=p(H,fe.Short);break;case"mediumTime":Ae=p(H,fe.Medium);break;case"longTime":Ae=p(H,fe.Long);break;case"fullTime":Ae=p(H,fe.Full);break;case"short":const qe=Pt(H,"shortTime"),Tt=Pt(H,"shortDate");Ae=vt(N(H,fe.Short),[qe,Tt]);break;case"medium":const Nt=Pt(H,"mediumTime"),on=Pt(H,"mediumDate");Ae=vt(N(H,fe.Medium),[Nt,on]);break;case"long":const mi=Pt(H,"longTime"),vi=Pt(H,"longDate");Ae=vt(N(H,fe.Long),[mi,vi]);break;case"full":const ni=Pt(H,"fullTime"),zn=Pt(H,"fullDate");Ae=vt(N(H,fe.Full),[ni,zn])}return Ae&&(Rt[le][Te]=Ae),Ae}function vt(H,Te){return Te&&(H=H.replace(/\{([^}]+)}/g,function(le,Ae){return null!=Te&&Ae in Te?Te[Ae]:le})),H}function $t(H,Te,le="-",Ae,qe){let Tt="";(H<0||qe&&H<=0)&&(qe?H=1-H:(H=-H,Tt=le));let Nt=String(H);for(;Nt.length<Te;)Nt="0"+Nt;return Ae&&(Nt=Nt.slice(Nt.length-Te)),Tt+Nt}function Be(H,Te,le=0,Ae=!1,qe=!1){return function(Tt,Nt){let on=function Je(H,Te){switch(H){case Wt.FullYear:return Te.getFullYear();case Wt.Month:return Te.getMonth();case Wt.Date:return Te.getDate();case Wt.Hours:return Te.getHours();case Wt.Minutes:return Te.getMinutes();case Wt.Seconds:return Te.getSeconds();case Wt.FractionalSeconds:return Te.getMilliseconds();case Wt.Day:return Te.getDay();default:throw new Error(`Unknown DateType value "${H}".`)}}(H,Tt);if((le>0||on>-le)&&(on+=le),H===Wt.Hours)0===on&&-12===le&&(on=12);else if(H===Wt.FractionalSeconds)return function ct(H,Te){return $t(H,3).substring(0,Te)}(on,Te);const mi=G(Nt,ue.MinusSign);return $t(on,Te,mi,Ae,qe)}}function wt(H,Te,le=re.Format,Ae=!1){return function(qe,Tt){return function Jt(H,Te,le,Ae,qe,Tt){switch(le){case it.Months:return function Ee(H,Te,le){const Ae=(0,n.H5H)(H),Tt=Qe([Ae[n.KH2.MonthsFormat],Ae[n.KH2.MonthsStandalone]],Te);return Qe(Tt,le)}(Te,qe,Ae)[H.getMonth()];case it.Days:return function _e(H,Te,le){const Ae=(0,n.H5H)(H),Tt=Qe([Ae[n.KH2.DaysFormat],Ae[n.KH2.DaysStandalone]],Te);return Qe(Tt,le)}(Te,qe,Ae)[H.getDay()];case it.DayPeriods:const Nt=H.getHours(),on=H.getMinutes();if(Tt){const vi=function je(H){const Te=(0,n.H5H)(H);return Re(Te),(Te[n.KH2.ExtraData][2]||[]).map(Ae=>"string"==typeof Ae?nt(Ae):[nt(Ae[0]),nt(Ae[1])])}(Te),ni=function at(H,Te,le){const Ae=(0,n.H5H)(H);Re(Ae);const Tt=Qe([Ae[n.KH2.ExtraData][0],Ae[n.KH2.ExtraData][1]],Te)||[];return Qe(Tt,le)||[]}(Te,qe,Ae),zn=vi.findIndex(Li=>{if(Array.isArray(Li)){const[ui,Wi]=Li,Gr=Nt>=ui.hours&&on>=ui.minutes,Ki=Nt<Wi.hours||Nt===Wi.hours&&on<Wi.minutes;if(ui.hours<Wi.hours){if(Gr&&Ki)return!0}else if(Gr||Ki)return!0}else if(Li.hours===Nt&&Li.minutes===on)return!0;return!1});if(-1!==zn)return ni[zn]}return function de(H,Te,le){const Ae=(0,n.H5H)(H),Tt=Qe([Ae[n.KH2.DayPeriodsFormat],Ae[n.KH2.DayPeriodsStandalone]],Te);return Qe(Tt,le)}(Te,qe,Ae)[Nt<12?0:1];case it.Eras:return function Ne(H,Te){return Qe((0,n.H5H)(H)[n.KH2.Eras],Te)}(Te,Ae)[H.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${le}`)}}(qe,Tt,H,Te,le,Ae)}}function ln(H){return function(Te,le,Ae){const qe=-1*Ae,Tt=G(le,ue.MinusSign),Nt=qe>0?Math.floor(qe/60):Math.ceil(qe/60);switch(H){case Ut.Short:return(qe>=0?"+":"")+$t(Nt,2,Tt)+$t(Math.abs(qe%60),2,Tt);case Ut.ShortGMT:return"GMT"+(qe>=0?"+":"")+$t(Nt,1,Tt);case Ut.Long:return"GMT"+(qe>=0?"+":"")+$t(Nt,2,Tt)+":"+$t(Math.abs(qe%60),2,Tt);case Ut.Extended:return 0===Ae?"Z":(qe>=0?"+":"")+$t(Nt,2,Tt)+":"+$t(Math.abs(qe%60),2,Tt);default:throw new Error(`Unknown zone width "${H}"`)}}}const pn=0,kn=4;function wn(H){return rt(H.getFullYear(),H.getMonth(),H.getDate()+(kn-H.getDay()))}function Bn(H,Te=!1){return function(le,Ae){let qe;if(Te){const Tt=new Date(le.getFullYear(),le.getMonth(),1).getDay()-1,Nt=le.getDate();qe=1+Math.floor((Nt+Tt)/7)}else{const Tt=wn(le),Nt=function Mn(H){const Te=rt(H,pn,1).getDay();return rt(H,0,1+(Te<=kn?kn:kn+7)-Te)}(Tt.getFullYear()),on=Tt.getTime()-Nt.getTime();qe=1+Math.round(on/6048e5)}return $t(qe,H,G(Ae,ue.MinusSign))}}function Zn(H,Te=!1){return function(le,Ae){return $t(wn(le).getFullYear(),H,G(Ae,ue.MinusSign),Te)}}const Yn={};function In(H,Te){H=H.replace(/:/g,"");const le=Date.parse("Jan 01, 1970 00:00:00 "+H)/6e4;return isNaN(le)?Te:le}function We(H){return H instanceof Date&&!isNaN(H.valueOf())}const et=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Mt=22,zt=".",sn="0",un=";",An=",",dn="#";function gt(H,Te,le,Ae,qe,Tt,Nt=!1){let on="",mi=!1;if(isFinite(H)){let vi=function jt(H){let Ae,qe,Tt,Nt,on,Te=Math.abs(H)+"",le=0;for((qe=Te.indexOf(zt))>-1&&(Te=Te.replace(zt,"")),(Tt=Te.search(/e/i))>0?(qe<0&&(qe=Tt),qe+=+Te.slice(Tt+1),Te=Te.substring(0,Tt)):qe<0&&(qe=Te.length),Tt=0;Te.charAt(Tt)===sn;Tt++);if(Tt===(on=Te.length))Ae=[0],qe=1;else{for(on--;Te.charAt(on)===sn;)on--;for(qe-=Tt,Ae=[],Nt=0;Tt<=on;Tt++,Nt++)Ae[Nt]=Number(Te.charAt(Tt))}return qe>Mt&&(Ae=Ae.splice(0,Mt-1),le=qe-1,qe=1),{digits:Ae,exponent:le,integerLen:qe}}(H);Nt&&(vi=function Xt(H){if(0===H.digits[0])return H;const Te=H.digits.length-H.integerLen;return H.exponent?H.exponent+=2:(0===Te?H.digits.push(0,0):1===Te&&H.digits.push(0),H.integerLen+=2),H}(vi));let ni=Te.minInt,zn=Te.minFrac,Li=Te.maxFrac;if(Tt){const gr=Tt.match(et);if(null===gr)throw new Error(`${Tt} is not a valid digit info`);const es=gr[1],Xi=gr[3],Gi=gr[5];null!=es&&(ni=qt(es)),null!=Xi&&(zn=qt(Xi)),null!=Gi?Li=qt(Gi):null!=Xi&&zn>Li&&(Li=zn)}!function Sn(H,Te,le){if(Te>le)throw new Error(`The minimum number of digits after fraction (${Te}) is higher than the maximum (${le}).`);let Ae=H.digits,qe=Ae.length-H.integerLen;const Tt=Math.min(Math.max(Te,qe),le);let Nt=Tt+H.integerLen,on=Ae[Nt];if(Nt>0){Ae.splice(Math.max(H.integerLen,Nt));for(let zn=Nt;zn<Ae.length;zn++)Ae[zn]=0}else{qe=Math.max(0,qe),H.integerLen=1,Ae.length=Math.max(1,Nt=Tt+1),Ae[0]=0;for(let zn=1;zn<Nt;zn++)Ae[zn]=0}if(on>=5)if(Nt-1<0){for(let zn=0;zn>Nt;zn--)Ae.unshift(0),H.integerLen++;Ae.unshift(1),H.integerLen++}else Ae[Nt-1]++;for(;qe<Math.max(0,Tt);qe++)Ae.push(0);let mi=0!==Tt;const vi=Te+H.integerLen,ni=Ae.reduceRight(function(zn,Li,ui,Wi){return Wi[ui]=(Li+=zn)<10?Li:Li-10,mi&&(0===Wi[ui]&&ui>=vi?Wi.pop():mi=!1),Li>=10?1:0},0);ni&&(Ae.unshift(ni),H.integerLen++)}(vi,zn,Li);let ui=vi.digits,Wi=vi.integerLen;const Gr=vi.exponent;let Ki=[];for(mi=ui.every(gr=>!gr);Wi<ni;Wi++)ui.unshift(0);for(;Wi<0;Wi++)ui.unshift(0);Wi>0?Ki=ui.splice(Wi,ui.length):(Ki=ui,ui=[0]);const ps=[];for(ui.length>=Te.lgSize&&ps.unshift(ui.splice(-Te.lgSize,ui.length).join(""));ui.length>Te.gSize;)ps.unshift(ui.splice(-Te.gSize,ui.length).join(""));ui.length&&ps.unshift(ui.join("")),on=ps.join(G(le,Ae)),Ki.length&&(on+=G(le,qe)+Ki.join("")),Gr&&(on+=G(le,ue.Exponential)+"+"+Gr)}else on=G(le,ue.Infinity);return on=H<0&&!mi?Te.negPre+on+Te.negSuf:Te.posPre+on+Te.posSuf,on}function Ot(H,Te="-"){const le={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ae=H.split(un),qe=Ae[0],Tt=Ae[1],Nt=-1!==qe.indexOf(zt)?qe.split(zt):[qe.substring(0,qe.lastIndexOf(sn)+1),qe.substring(qe.lastIndexOf(sn)+1)],on=Nt[0],mi=Nt[1]||"";le.posPre=on.substring(0,on.indexOf(dn));for(let ni=0;ni<mi.length;ni++){const zn=mi.charAt(ni);zn===sn?le.minFrac=le.maxFrac=ni+1:zn===dn?le.maxFrac=ni+1:le.posSuf+=zn}const vi=on.split(An);if(le.gSize=vi[1]?vi[1].length:0,le.lgSize=vi[2]||vi[1]?(vi[2]||vi[1]).length:0,Tt){const ni=qe.length-le.posPre.length-le.posSuf.length,zn=Tt.indexOf(dn);le.negPre=Tt.substring(0,zn).replace(/'/g,""),le.negSuf=Tt.slice(zn+ni).replace(/'/g,"")}else le.negPre=Te+le.posPre,le.negSuf=le.posSuf;return le}function qt(H){const Te=parseInt(H);if(isNaN(Te))throw new Error("Invalid integer literal when parsing "+H);return Te}function xn(H,Te){Te=encodeURIComponent(Te);for(const le of H.split(";")){const Ae=le.indexOf("="),[qe,Tt]=-1==Ae?[le,""]:[le.slice(0,Ae),le.slice(Ae+1)];if(qe.trim()===Te)return decodeURIComponent(Tt)}return null}const Qn=/\s+/,bn=[];let _n=(()=>{class H{constructor(le,Ae,qe,Tt){this._iterableDiffers=le,this._keyValueDiffers=Ae,this._ngEl=qe,this._renderer=Tt,this.initialClasses=bn,this.stateMap=new Map}set klass(le){this.initialClasses=null!=le?le.trim().split(Qn):bn}set ngClass(le){this.rawClass="string"==typeof le?le.trim().split(Qn):le}ngDoCheck(){for(const Ae of this.initialClasses)this._updateState(Ae,!0);const le=this.rawClass;if(Array.isArray(le)||le instanceof Set)for(const Ae of le)this._updateState(Ae,!0);else if(null!=le)for(const Ae of Object.keys(le))this._updateState(Ae,!!le[Ae]);this._applyStateDiff()}_updateState(le,Ae){const qe=this.stateMap.get(le);void 0!==qe?(qe.enabled!==Ae&&(qe.changed=!0,qe.enabled=Ae),qe.touched=!0):this.stateMap.set(le,{enabled:Ae,changed:!0,touched:!0})}_applyStateDiff(){for(const le of this.stateMap){const Ae=le[0],qe=le[1];qe.changed?(this._toggleClass(Ae,qe.enabled),qe.changed=!1):qe.touched||(qe.enabled&&this._toggleClass(Ae,!1),this.stateMap.delete(Ae)),qe.touched=!1}}_toggleClass(le,Ae){(le=le.trim()).length>0&&le.split(Qn).forEach(qe=>{Ae?this._renderer.addClass(this._ngEl.nativeElement,qe):this._renderer.removeClass(this._ngEl.nativeElement,qe)})}static#e=this.\u0275fac=function(Ae){return new(Ae||H)(n.rXU(n._q3),n.rXU(n.MKu),n.rXU(n.aKT),n.rXU(n.sFG))};static#t=this.\u0275dir=n.FsC({type:H,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return H})();class Ln{constructor(Te,le,Ae,qe){this.$implicit=Te,this.ngForOf=le,this.index=Ae,this.count=qe}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 Xn=(()=>{class H{set ngForOf(le){this._ngForOf=le,this._ngForOfDirty=!0}set ngForTrackBy(le){this._trackByFn=le}get ngForTrackBy(){return this._trackByFn}constructor(le,Ae,qe){this._viewContainer=le,this._template=Ae,this._differs=qe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(le){le&&(this._template=le)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const le=this._ngForOf;!this._differ&&le&&(this._differ=this._differs.find(le).create(this.ngForTrackBy))}if(this._differ){const le=this._differ.diff(this._ngForOf);le&&this._applyChanges(le)}}_applyChanges(le){const Ae=this._viewContainer;le.forEachOperation((qe,Tt,Nt)=>{if(null==qe.previousIndex)Ae.createEmbeddedView(this._template,new Ln(qe.item,this._ngForOf,-1,-1),null===Nt?void 0:Nt);else if(null==Nt)Ae.remove(null===Tt?void 0:Tt);else if(null!==Tt){const on=Ae.get(Tt);Ae.move(on,Nt),oi(on,qe)}});for(let qe=0,Tt=Ae.length;qe<Tt;qe++){const on=Ae.get(qe).context;on.index=qe,on.count=Tt,on.ngForOf=this._ngForOf}le.forEachIdentityChange(qe=>{oi(Ae.get(qe.currentIndex),qe)})}static ngTemplateContextGuard(le,Ae){return!0}static#e=this.\u0275fac=function(Ae){return new(Ae||H)(n.rXU(n.c1b),n.rXU(n.C4Q),n.rXU(n._q3))};static#t=this.\u0275dir=n.FsC({type:H,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return H})();function oi(H,Te){H.context.$implicit=Te.item}let tt=(()=>{class H{constructor(le,Ae){this._viewContainer=le,this._context=new te,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ae}set ngIf(le){this._context.$implicit=this._context.ngIf=le,this._updateView()}set ngIfThen(le){be("ngIfThen",le),this._thenTemplateRef=le,this._thenViewRef=null,this._updateView()}set ngIfElse(le){be("ngIfElse",le),this._elseTemplateRef=le,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(le,Ae){return!0}static#e=this.\u0275fac=function(Ae){return new(Ae||H)(n.rXU(n.c1b),n.rXU(n.C4Q))};static#t=this.\u0275dir=n.FsC({type:H,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return H})();class te{constructor(){this.$implicit=null,this.ngIf=null}}function be(H,Te){if(Te&&!Te.createEmbeddedView)throw new Error(`${H} must be a TemplateRef, but received '${(0,n.Tbb)(Te)}'.`)}class Ie{constructor(Te,le){this._viewContainerRef=Te,this._templateRef=le,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Te){Te&&!this._created?this.create():!Te&&this._created&&this.destroy()}}let Pe=(()=>{class H{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(le){this._ngSwitch=le,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(le){this._defaultViews.push(le)}_matchCase(le){const Ae=le==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Ae,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ae}_updateDefaultCases(le){if(this._defaultViews.length>0&&le!==this._defaultUsed){this._defaultUsed=le;for(const Ae of this._defaultViews)Ae.enforceState(le)}}static#e=this.\u0275fac=function(Ae){return new(Ae||H)};static#t=this.\u0275dir=n.FsC({type:H,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return H})(),Ke=(()=>{class H{constructor(le,Ae,qe){this.ngSwitch=qe,qe._addCase(),this._view=new Ie(le,Ae)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(Ae){return new(Ae||H)(n.rXU(n.c1b),n.rXU(n.C4Q),n.rXU(Pe,9))};static#t=this.\u0275dir=n.FsC({type:H,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return H})(),Se=(()=>{class H{constructor(le,Ae,qe){qe._addDefault(new Ie(le,Ae))}static#e=this.\u0275fac=function(Ae){return new(Ae||H)(n.rXU(n.c1b),n.rXU(n.C4Q),n.rXU(Pe,9))};static#t=this.\u0275dir=n.FsC({type:H,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return H})(),pt=(()=>{class H{constructor(le,Ae,qe){this._ngEl=le,this._differs=Ae,this._renderer=qe,this._ngStyle=null,this._differ=null}set ngStyle(le){this._ngStyle=le,!this._differ&&le&&(this._differ=this._differs.find(le).create())}ngDoCheck(){if(this._differ){const le=this._differ.diff(this._ngStyle);le&&this._applyChanges(le)}}_setStyle(le,Ae){const[qe,Tt]=le.split("."),Nt=-1===qe.indexOf("-")?void 0:n.czy.DashCase;null!=Ae?this._renderer.setStyle(this._ngEl.nativeElement,qe,Tt?`${Ae}${Tt}`:Ae,Nt):this._renderer.removeStyle(this._ngEl.nativeElement,qe,Nt)}_applyChanges(le){le.forEachRemovedItem(Ae=>this._setStyle(Ae.key,null)),le.forEachAddedItem(Ae=>this._setStyle(Ae.key,Ae.currentValue)),le.forEachChangedItem(Ae=>this._setStyle(Ae.key,Ae.currentValue))}static#e=this.\u0275fac=function(Ae){return new(Ae||H)(n.rXU(n.aKT),n.rXU(n.MKu),n.rXU(n.sFG))};static#t=this.\u0275dir=n.FsC({type:H,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return H})(),kt=(()=>{class H{constructor(le){this._viewContainerRef=le,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(le){if(le.ngTemplateOutlet||le.ngTemplateOutletInjector){const Ae=this._viewContainerRef;if(this._viewRef&&Ae.remove(Ae.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:qe,ngTemplateOutletContext:Tt,ngTemplateOutletInjector:Nt}=this;this._viewRef=Ae.createEmbeddedView(qe,Tt,Nt?{injector:Nt}:void 0)}else this._viewRef=null}else this._viewRef&&le.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#e=this.\u0275fac=function(Ae){return new(Ae||H)(n.rXU(n.c1b))};static#t=this.\u0275dir=n.FsC({type:H,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[n.OA$]})}return H})();function Zt(H,Te){return new n.wOt(2100,!1)}class we{createSubscription(Te,le){return(0,n.O8t)(()=>Te.subscribe({next:le,error:Ae=>{throw Ae}}))}dispose(Te){(0,n.O8t)(()=>Te.unsubscribe())}}class ke{createSubscription(Te,le){return Te.then(le,Ae=>{throw Ae})}dispose(Te){}}const Ze=new ke,Ct=new we;let Vt=(()=>{class H{constructor(le){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=le}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(le){return this._obj?le!==this._obj?(this._dispose(),this.transform(le)):this._latestValue:(le&&this._subscribe(le),this._latestValue)}_subscribe(le){this._obj=le,this._strategy=this._selectStrategy(le),this._subscription=this._strategy.createSubscription(le,Ae=>this._updateLatestValue(le,Ae))}_selectStrategy(le){if((0,n.jNT)(le))return Ze;if((0,n.zjR)(le))return Ct;throw Zt()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(le,Ae){le===this._obj&&(this._latestValue=Ae,this._ref.markForCheck())}static#e=this.\u0275fac=function(Ae){return new(Ae||H)(n.rXU(n.gRc,16))};static#t=this.\u0275pipe=n.EJ8({name:"async",type:H,pure:!1,standalone:!0})}return H})();const hn=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let pi=(()=>{class H{transform(le){if(null==le)return null;if("string"!=typeof le)throw Zt();return le.replace(hn,Ae=>Ae[0].toUpperCase()+Ae.slice(1).toLowerCase())}static#e=this.\u0275fac=function(Ae){return new(Ae||H)};static#t=this.\u0275pipe=n.EJ8({name:"titlecase",type:H,pure:!0,standalone:!0})}return H})(),ai=(()=>{class H{transform(le){if(null==le)return null;if("string"!=typeof le)throw Zt();return le.toUpperCase()}static#e=this.\u0275fac=function(Ae){return new(Ae||H)};static#t=this.\u0275pipe=n.EJ8({name:"uppercase",type:H,pure:!0,standalone:!0})}return H})();const fn=new n.nKC("DATE_PIPE_DEFAULT_TIMEZONE"),Hn=new n.nKC("DATE_PIPE_DEFAULT_OPTIONS");let Ti=(()=>{class H{constructor(le,Ae,qe){this.locale=le,this.defaultTimezone=Ae,this.defaultOptions=qe}transform(le,Ae,qe,Tt){if(null==le||""===le||le!=le)return null;try{return Bt(le,Ae??this.defaultOptions?.dateFormat??"mediumDate",Tt||this.locale,qe??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Nt){throw Zt()}}static#e=this.\u0275fac=function(Ae){return new(Ae||H)(n.rXU(n.xe9,16),n.rXU(fn,24),n.rXU(Hn,24))};static#t=this.\u0275pipe=n.EJ8({name:"date",type:H,pure:!0,standalone:!0})}return H})(),gi=(()=>{class H{constructor(le){this._locale=le}transform(le,Ae,qe){if(!li(le))return null;qe=qe||this._locale;try{return function Lt(H,Te,le){return gt(H,Ot(R(Te,W.Decimal),G(Te,ue.MinusSign)),Te,ue.Group,ue.Decimal,le)}(Pi(le),qe,Ae)}catch(Tt){throw Zt()}}static#e=this.\u0275fac=function(Ae){return new(Ae||H)(n.rXU(n.xe9,16))};static#t=this.\u0275pipe=n.EJ8({name:"number",type:H,pure:!0,standalone:!0})}return H})(),En=(()=>{class H{constructor(le,Ae="USD"){this._locale=le,this._defaultCurrencyCode=Ae}transform(le,Ae=this._defaultCurrencyCode,qe="symbol",Tt,Nt){if(!li(le))return null;Nt=Nt||this._locale,"boolean"==typeof qe&&(qe=qe?"symbol":"code");let on=Ae||this._defaultCurrencyCode;"code"!==qe&&(on="symbol"===qe||"symbol-narrow"===qe?function _t(H,Te,le="en"){const Ae=function Me(H){return(0,n.H5H)(H)[n.KH2.Currencies]}(le)[H]||T[H]||[],qe=Ae[1];return"narrow"===Te&&"string"==typeof qe?qe:Ae[0]||H}(on,"symbol"===qe?"wide":"narrow",Nt):qe);try{return function ot(H,Te,le,Ae,qe){const Nt=Ot(R(Te,W.Currency),G(Te,ue.MinusSign));return Nt.minFrac=function ht(H){let Te;const le=T[H];return le&&(Te=le[2]),"number"==typeof Te?Te:2}(Ae),Nt.maxFrac=Nt.minFrac,gt(H,Nt,Te,ue.CurrencyGroup,ue.CurrencyDecimal,qe).replace("\xa4",le).replace("\xa4","").trim()}(Pi(le),Nt,on,Ae,Tt)}catch(mi){throw Zt()}}static#e=this.\u0275fac=function(Ae){return new(Ae||H)(n.rXU(n.xe9,16),n.rXU(n.Ocv,16))};static#t=this.\u0275pipe=n.EJ8({name:"currency",type:H,pure:!0,standalone:!0})}return H})();function li(H){return!(null==H||""===H||H!=H)}function Pi(H){if("string"==typeof H&&!isNaN(Number(H)-parseFloat(H)))return Number(H);if("number"!=typeof H)throw new Error(`${H} is not a number`);return H}let ji=(()=>{class H{transform(le,Ae,qe){if(null==le)return null;if(!this.supports(le))throw Zt();return le.slice(Ae,qe)}supports(le){return"string"==typeof le||Array.isArray(le)}static#e=this.\u0275fac=function(Ae){return new(Ae||H)};static#t=this.\u0275pipe=n.EJ8({name:"slice",type:H,pure:!1,standalone:!0})}return H})(),yr=(()=>{class H{static#e=this.\u0275fac=function(Ae){return new(Ae||H)};static#t=this.\u0275mod=n.$C({type:H});static#n=this.\u0275inj=n.G2t({})}return H})();const bi="browser",Ri="server";function sr(H){return H===bi}function Wr(H){return H===Ri}let er=(()=>{class H{static#e=this.\u0275prov=(0,n.jDH)({token:H,providedIn:"root",factory:()=>new or((0,n.KVO)(Z),window)})}return H})();class or{constructor(Te,le){this.document=Te,this.window=le,this.offset=()=>[0,0]}setOffset(Te){this.offset=Array.isArray(Te)?()=>Te:Te}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Te){this.supportsScrolling()&&this.window.scrollTo(Te[0],Te[1])}scrollToAnchor(Te){if(!this.supportsScrolling())return;const le=function _r(H,Te){const le=H.getElementById(Te)||H.getElementsByName(Te)[0];if(le)return le;if("function"==typeof H.createTreeWalker&&H.body&&"function"==typeof H.body.attachShadow){const Ae=H.createTreeWalker(H.body,NodeFilter.SHOW_ELEMENT);let qe=Ae.currentNode;for(;qe;){const Tt=qe.shadowRoot;if(Tt){const Nt=Tt.getElementById(Te)||Tt.querySelector(`[name="${Te}"]`);if(Nt)return Nt}qe=Ae.nextNode()}}return null}(this.document,Te);le&&(this.scrollToElement(le),le.focus())}setHistoryScrollRestoration(Te){this.supportsScrolling()&&(this.window.history.scrollRestoration=Te)}scrollToElement(Te){const le=Te.getBoundingClientRect(),Ae=le.left+this.window.pageXOffset,qe=le.top+this.window.pageYOffset,Tt=this.offset();this.window.scrollTo(Ae-Tt[0],qe-Tt[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class Pr{}},26409:(He,L,o)=>{"use strict";o.d(L,{Lr:()=>d,Nl:()=>m,Qq:()=>q,a7:()=>Re,q1:()=>et});var n=o(2978),y=o(20756),a=o(38399),Q=o(99406),ie=o(54807),Z=o(38503),h=o(93527),w=o(46347),D=o(72831),x=o(56610);class E{}class z{}class d{constructor(ot){this.normalizedNames=new Map,this.lazyUpdate=null,ot?"string"==typeof ot?this.lazyInit=()=>{this.headers=new Map,ot.split("\n").forEach(ut=>{const Lt=ut.indexOf(":");if(Lt>0){const Ot=ut.slice(0,Lt),Xt=Ot.toLowerCase(),jt=ut.slice(Lt+1).trim();this.maybeSetNormalizedName(Ot,Xt),this.headers.has(Xt)?this.headers.get(Xt).push(jt):this.headers.set(Xt,[jt])}})}:typeof Headers<"u"&&ot instanceof Headers?(this.headers=new Map,ot.forEach((ut,Lt)=>{this.setHeaderEntries(Lt,ut)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(ot).forEach(([ut,Lt])=>{this.setHeaderEntries(ut,Lt)})}:this.headers=new Map}has(ot){return this.init(),this.headers.has(ot.toLowerCase())}get(ot){this.init();const ut=this.headers.get(ot.toLowerCase());return ut&&ut.length>0?ut[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ot){return this.init(),this.headers.get(ot.toLowerCase())||null}append(ot,ut){return this.clone({name:ot,value:ut,op:"a"})}set(ot,ut){return this.clone({name:ot,value:ut,op:"s"})}delete(ot,ut){return this.clone({name:ot,value:ut,op:"d"})}maybeSetNormalizedName(ot,ut){this.normalizedNames.has(ut)||this.normalizedNames.set(ut,ot)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ot=>this.applyUpdate(ot)),this.lazyUpdate=null))}copyFrom(ot){ot.init(),Array.from(ot.headers.keys()).forEach(ut=>{this.headers.set(ut,ot.headers.get(ut)),this.normalizedNames.set(ut,ot.normalizedNames.get(ut))})}clone(ot){const ut=new d;return ut.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,ut.lazyUpdate=(this.lazyUpdate||[]).concat([ot]),ut}applyUpdate(ot){const ut=ot.name.toLowerCase();switch(ot.op){case"a":case"s":let Lt=ot.value;if("string"==typeof Lt&&(Lt=[Lt]),0===Lt.length)return;this.maybeSetNormalizedName(ot.name,ut);const Ot=("a"===ot.op?this.headers.get(ut):void 0)||[];Ot.push(...Lt),this.headers.set(ut,Ot);break;case"d":const Xt=ot.value;if(Xt){let jt=this.headers.get(ut);if(!jt)return;jt=jt.filter(Sn=>-1===Xt.indexOf(Sn)),0===jt.length?(this.headers.delete(ut),this.normalizedNames.delete(ut)):this.headers.set(ut,jt)}else this.headers.delete(ut),this.normalizedNames.delete(ut)}}setHeaderEntries(ot,ut){const Lt=(Array.isArray(ut)?ut:[ut]).map(Xt=>Xt.toString()),Ot=ot.toLowerCase();this.headers.set(Ot,Lt),this.maybeSetNormalizedName(ot,Ot)}forEach(ot){this.init(),Array.from(this.normalizedNames.keys()).forEach(ut=>ot(this.normalizedNames.get(ut),this.headers.get(ut)))}}class P{encodeKey(ot){return g(ot)}encodeValue(ot){return g(ot)}decodeKey(ot){return decodeURIComponent(ot)}decodeValue(ot){return decodeURIComponent(ot)}}const $=/%(\d[a-f0-9])/gi,I={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function g(gt){return encodeURIComponent(gt).replace($,(ot,ut)=>I[ut]??ot)}function f(gt){return`${gt}`}class m{constructor(ot={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ot.encoder||new P,ot.fromString){if(ot.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function k(gt,ot){const ut=new Map;return gt.length>0&>.replace(/^\?/,"").split("&").forEach(Ot=>{const Xt=Ot.indexOf("="),[jt,Sn]=-1==Xt?[ot.decodeKey(Ot),""]:[ot.decodeKey(Ot.slice(0,Xt)),ot.decodeValue(Ot.slice(Xt+1))],qt=ut.get(jt)||[];qt.push(Sn),ut.set(jt,qt)}),ut}(ot.fromString,this.encoder)}else ot.fromObject?(this.map=new Map,Object.keys(ot.fromObject).forEach(ut=>{const Lt=ot.fromObject[ut],Ot=Array.isArray(Lt)?Lt.map(f):[f(Lt)];this.map.set(ut,Ot)})):this.map=null}has(ot){return this.init(),this.map.has(ot)}get(ot){this.init();const ut=this.map.get(ot);return ut?ut[0]:null}getAll(ot){return this.init(),this.map.get(ot)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ot,ut){return this.clone({param:ot,value:ut,op:"a"})}appendAll(ot){const ut=[];return Object.keys(ot).forEach(Lt=>{const Ot=ot[Lt];Array.isArray(Ot)?Ot.forEach(Xt=>{ut.push({param:Lt,value:Xt,op:"a"})}):ut.push({param:Lt,value:Ot,op:"a"})}),this.clone(ut)}set(ot,ut){return this.clone({param:ot,value:ut,op:"s"})}delete(ot,ut){return this.clone({param:ot,value:ut,op:"d"})}toString(){return this.init(),this.keys().map(ot=>{const ut=this.encoder.encodeKey(ot);return this.map.get(ot).map(Lt=>ut+"="+this.encoder.encodeValue(Lt)).join("&")}).filter(ot=>""!==ot).join("&")}clone(ot){const ut=new m({encoder:this.encoder});return ut.cloneFrom=this.cloneFrom||this,ut.updates=(this.updates||[]).concat(ot),ut}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ot=>this.map.set(ot,this.cloneFrom.map.get(ot))),this.updates.forEach(ot=>{switch(ot.op){case"a":case"s":const ut=("a"===ot.op?this.map.get(ot.param):void 0)||[];ut.push(f(ot.value)),this.map.set(ot.param,ut);break;case"d":if(void 0===ot.value){this.map.delete(ot.param);break}{let Lt=this.map.get(ot.param)||[];const Ot=Lt.indexOf(f(ot.value));-1!==Ot&&Lt.splice(Ot,1),Lt.length>0?this.map.set(ot.param,Lt):this.map.delete(ot.param)}}}),this.cloneFrom=this.updates=null)}}class W{constructor(){this.map=new Map}set(ot,ut){return this.map.set(ot,ut),this}get(ot){return this.map.has(ot)||this.map.set(ot,ot.defaultValue()),this.map.get(ot)}delete(ot){return this.map.delete(ot),this}has(ot){return this.map.has(ot)}keys(){return this.map.keys()}}function re(gt){return typeof ArrayBuffer<"u"&> instanceof ArrayBuffer}function U(gt){return typeof Blob<"u"&> instanceof Blob}function fe(gt){return typeof FormData<"u"&> instanceof FormData}class pe{constructor(ot,ut,Lt,Ot){let Xt;if(this.url=ut,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ot.toUpperCase(),function K(gt){switch(gt){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ot?(this.body=void 0!==Lt?Lt:null,Xt=Ot):Xt=Lt,Xt&&(this.reportProgress=!!Xt.reportProgress,this.withCredentials=!!Xt.withCredentials,Xt.responseType&&(this.responseType=Xt.responseType),Xt.headers&&(this.headers=Xt.headers),Xt.context&&(this.context=Xt.context),Xt.params&&(this.params=Xt.params)),this.headers||(this.headers=new d),this.context||(this.context=new W),this.params){const jt=this.params.toString();if(0===jt.length)this.urlWithParams=ut;else{const Sn=ut.indexOf("?");this.urlWithParams=ut+(-1===Sn?"?":Sn<ut.length-1?"&":"")+jt}}else this.params=new m,this.urlWithParams=ut}serializeBody(){return null===this.body?null:re(this.body)||U(this.body)||fe(this.body)||function ue(gt){return typeof URLSearchParams<"u"&> instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof m?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||fe(this.body)?null:U(this.body)?this.body.type||null:re(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof m?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(ot={}){const ut=ot.method||this.method,Lt=ot.url||this.url,Ot=ot.responseType||this.responseType,Xt=void 0!==ot.body?ot.body:this.body,jt=void 0!==ot.withCredentials?ot.withCredentials:this.withCredentials,Sn=void 0!==ot.reportProgress?ot.reportProgress:this.reportProgress;let qt=ot.headers||this.headers,Un=ot.params||this.params;const ti=ot.context??this.context;return void 0!==ot.setHeaders&&(qt=Object.keys(ot.setHeaders).reduce((qn,jn)=>qn.set(jn,ot.setHeaders[jn]),qt)),ot.setParams&&(Un=Object.keys(ot.setParams).reduce((qn,jn)=>qn.set(jn,ot.setParams[jn]),Un)),new pe(ut,Lt,Xt,{params:Un,headers:qt,context:ti,reportProgress:Sn,responseType:Ot,withCredentials:jt})}}var he=function(gt){return gt[gt.Sent=0]="Sent",gt[gt.UploadProgress=1]="UploadProgress",gt[gt.ResponseHeader=2]="ResponseHeader",gt[gt.DownloadProgress=3]="DownloadProgress",gt[gt.Response=4]="Response",gt[gt.User=5]="User",gt}(he||{});class de{constructor(ot,ut=200,Lt="OK"){this.headers=ot.headers||new d,this.status=void 0!==ot.status?ot.status:ut,this.statusText=ot.statusText||Lt,this.url=ot.url||null,this.ok=this.status>=200&&this.status<300}}class _e extends de{constructor(ot={}){super(ot),this.type=he.ResponseHeader}clone(ot={}){return new _e({headers:ot.headers||this.headers,status:void 0!==ot.status?ot.status:this.status,statusText:ot.statusText||this.statusText,url:ot.url||this.url||void 0})}}class Ee extends de{constructor(ot={}){super(ot),this.type=he.Response,this.body=void 0!==ot.body?ot.body:null}clone(ot={}){return new Ee({body:void 0!==ot.body?ot.body:this.body,headers:ot.headers||this.headers,status:void 0!==ot.status?ot.status:this.status,statusText:ot.statusText||this.statusText,url:ot.url||this.url||void 0})}}class Ne extends de{constructor(ot){super(ot,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ot.url||"(unknown url)"}`:`Http failure response for ${ot.url||"(unknown url)"}: ${ot.status} ${ot.statusText}`,this.error=ot.error||null}}function ge(gt,ot){return{body:ot,headers:gt.headers,context:gt.context,observe:gt.observe,params:gt.params,reportProgress:gt.reportProgress,responseType:gt.responseType,withCredentials:gt.withCredentials}}let q=(()=>{class gt{constructor(ut){this.handler=ut}request(ut,Lt,Ot={}){let Xt;if(ut instanceof pe)Xt=ut;else{let qt,Un;qt=Ot.headers instanceof d?Ot.headers:new d(Ot.headers),Ot.params&&(Un=Ot.params instanceof m?Ot.params:new m({fromObject:Ot.params})),Xt=new pe(ut,Lt,void 0!==Ot.body?Ot.body:null,{headers:qt,context:Ot.context,params:Un,reportProgress:Ot.reportProgress,responseType:Ot.responseType||"json",withCredentials:Ot.withCredentials})}const jt=(0,y.of)(Xt).pipe((0,ie.H)(qt=>this.handler.handle(qt)));if(ut instanceof pe||"events"===Ot.observe)return jt;const Sn=jt.pipe((0,Z.p)(qt=>qt instanceof Ee));switch(Ot.observe||"body"){case"body":switch(Xt.responseType){case"arraybuffer":return Sn.pipe((0,h.T)(qt=>{if(null!==qt.body&&!(qt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return qt.body}));case"blob":return Sn.pipe((0,h.T)(qt=>{if(null!==qt.body&&!(qt.body instanceof Blob))throw new Error("Response is not a Blob.");return qt.body}));case"text":return Sn.pipe((0,h.T)(qt=>{if(null!==qt.body&&"string"!=typeof qt.body)throw new Error("Response is not a string.");return qt.body}));default:return Sn.pipe((0,h.T)(qt=>qt.body))}case"response":return Sn;default:throw new Error(`Unreachable: unhandled observe type ${Ot.observe}}`)}}delete(ut,Lt={}){return this.request("DELETE",ut,Lt)}get(ut,Lt={}){return this.request("GET",ut,Lt)}head(ut,Lt={}){return this.request("HEAD",ut,Lt)}jsonp(ut,Lt){return this.request("JSONP",ut,{params:(new m).append(Lt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ut,Lt={}){return this.request("OPTIONS",ut,Lt)}patch(ut,Lt,Ot={}){return this.request("PATCH",ut,ge(Ot,Lt))}post(ut,Lt,Ot={}){return this.request("POST",ut,ge(Ot,Lt))}put(ut,Lt,Ot={}){return this.request("PUT",ut,ge(Ot,Lt))}static#e=this.\u0275fac=function(Lt){return new(Lt||gt)(n.KVO(E))};static#t=this.\u0275prov=n.jDH({token:gt,factory:gt.\u0275fac})}return gt})();function se(gt,ot){return ot(gt)}function Me(gt,ot){return(ut,Lt)=>ot.intercept(ut,{handle:Ot=>gt(Ot,Lt)})}const Re=new n.nKC(""),je=new n.nKC(""),at=new n.nKC("");function ft(){let gt=null;return(ot,ut)=>{null===gt&&(gt=((0,n.WQX)(Re,{optional:!0})??[]).reduceRight(Me,se));const Lt=(0,n.WQX)(n.$K3),Ot=Lt.add();return gt(ot,ut).pipe((0,w.j)(()=>Lt.remove(Ot)))}}let Qe=(()=>{class gt extends E{constructor(ut,Lt){super(),this.backend=ut,this.injector=Lt,this.chain=null,this.pendingTasks=(0,n.WQX)(n.$K3)}handle(ut){if(null===this.chain){const Ot=Array.from(new Set([...this.injector.get(je),...this.injector.get(at,[])]));this.chain=Ot.reduceRight((Xt,jt)=>function Fe(gt,ot,ut){return(Lt,Ot)=>ut.runInContext(()=>ot(Lt,Xt=>gt(Xt,Ot)))}(Xt,jt,this.injector),se)}const Lt=this.pendingTasks.add();return this.chain(ut,Ot=>this.backend.handle(Ot)).pipe((0,w.j)(()=>this.pendingTasks.remove(Lt)))}static#e=this.\u0275fac=function(Lt){return new(Lt||gt)(n.KVO(z),n.KVO(n.uvJ))};static#t=this.\u0275prov=n.jDH({token:gt,factory:gt.\u0275fac})}return gt})();const rt=/^\)\]\}',?\n/;let vt=(()=>{class gt{constructor(ut){this.xhrFactory=ut}handle(ut){if("JSONP"===ut.method)throw new n.wOt(-2800,!1);const Lt=this.xhrFactory;return(Lt.\u0275loadImpl?(0,a.H)(Lt.\u0275loadImpl()):(0,y.of)(null)).pipe((0,D.n)(()=>new Q.c(Xt=>{const jt=Lt.build();if(jt.open(ut.method,ut.urlWithParams),ut.withCredentials&&(jt.withCredentials=!0),ut.headers.forEach((bn,_n)=>jt.setRequestHeader(bn,_n.join(","))),ut.headers.has("Accept")||jt.setRequestHeader("Accept","application/json, text/plain, */*"),!ut.headers.has("Content-Type")){const bn=ut.detectContentTypeHeader();null!==bn&&jt.setRequestHeader("Content-Type",bn)}if(ut.responseType){const bn=ut.responseType.toLowerCase();jt.responseType="json"!==bn?bn:"text"}const Sn=ut.serializeBody();let qt=null;const Un=()=>{if(null!==qt)return qt;const bn=jt.statusText||"OK",_n=new d(jt.getAllResponseHeaders()),Ci=function Pt(gt){return"responseURL"in gt&>.responseURL?gt.responseURL:/^X-Request-URL:/m.test(gt.getAllResponseHeaders())?gt.getResponseHeader("X-Request-URL"):null}(jt)||ut.url;return qt=new _e({headers:_n,status:jt.status,statusText:bn,url:Ci}),qt},ti=()=>{let{headers:bn,status:_n,statusText:Ci,url:fi}=Un(),Ln=null;204!==_n&&(Ln=typeof jt.response>"u"?jt.responseText:jt.response),0===_n&&(_n=Ln?200:0);let Xn=_n>=200&&_n<300;if("json"===ut.responseType&&"string"==typeof Ln){const oi=Ln;Ln=Ln.replace(rt,"");try{Ln=""!==Ln?JSON.parse(Ln):null}catch(Le){Ln=oi,Xn&&(Xn=!1,Ln={error:Le,text:Ln})}}Xn?(Xt.next(new Ee({body:Ln,headers:bn,status:_n,statusText:Ci,url:fi||void 0})),Xt.complete()):Xt.error(new Ne({error:Ln,headers:bn,status:_n,statusText:Ci,url:fi||void 0}))},qn=bn=>{const{url:_n}=Un(),Ci=new Ne({error:bn,status:jt.status||0,statusText:jt.statusText||"Unknown Error",url:_n||void 0});Xt.error(Ci)};let jn=!1;const xn=bn=>{jn||(Xt.next(Un()),jn=!0);let _n={type:he.DownloadProgress,loaded:bn.loaded};bn.lengthComputable&&(_n.total=bn.total),"text"===ut.responseType&&jt.responseText&&(_n.partialText=jt.responseText),Xt.next(_n)},Qn=bn=>{let _n={type:he.UploadProgress,loaded:bn.loaded};bn.lengthComputable&&(_n.total=bn.total),Xt.next(_n)};return jt.addEventListener("load",ti),jt.addEventListener("error",qn),jt.addEventListener("timeout",qn),jt.addEventListener("abort",qn),ut.reportProgress&&(jt.addEventListener("progress",xn),null!==Sn&&jt.upload&&jt.upload.addEventListener("progress",Qn)),jt.send(Sn),Xt.next({type:he.Sent}),()=>{jt.removeEventListener("error",qn),jt.removeEventListener("abort",qn),jt.removeEventListener("load",ti),jt.removeEventListener("timeout",qn),ut.reportProgress&&(jt.removeEventListener("progress",xn),null!==Sn&&jt.upload&&jt.upload.removeEventListener("progress",Qn)),jt.readyState!==jt.DONE&&jt.abort()}})))}static#e=this.\u0275fac=function(Lt){return new(Lt||gt)(n.KVO(x.N0))};static#t=this.\u0275prov=n.jDH({token:gt,factory:gt.\u0275fac})}return gt})();const $t=new n.nKC("XSRF_ENABLED"),Be=new n.nKC("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),wt=new n.nKC("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Jt{}let ln=(()=>{class gt{constructor(ut,Lt,Ot){this.doc=ut,this.platform=Lt,this.cookieName=Ot,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const ut=this.doc.cookie||"";return ut!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,x._b)(ut,this.cookieName),this.lastCookieString=ut),this.lastToken}static#e=this.\u0275fac=function(Lt){return new(Lt||gt)(n.KVO(x.qQ),n.KVO(n.Agw),n.KVO(Be))};static#t=this.\u0275prov=n.jDH({token:gt,factory:gt.\u0275fac})}return gt})();function pn(gt,ot){const ut=gt.url.toLowerCase();if(!(0,n.WQX)($t)||"GET"===gt.method||"HEAD"===gt.method||ut.startsWith("http://")||ut.startsWith("https://"))return ot(gt);const Lt=(0,n.WQX)(Jt).getToken(),Ot=(0,n.WQX)(wt);return null!=Lt&&!gt.headers.has(Ot)&&(gt=gt.clone({headers:gt.headers.set(Ot,Lt)})),ot(gt)}var Mn=function(gt){return gt[gt.Interceptors=0]="Interceptors",gt[gt.LegacyInterceptors=1]="LegacyInterceptors",gt[gt.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",gt[gt.NoXsrfProtection=3]="NoXsrfProtection",gt[gt.JsonpSupport=4]="JsonpSupport",gt[gt.RequestsMadeViaParent=5]="RequestsMadeViaParent",gt[gt.Fetch=6]="Fetch",gt}(Mn||{});function Bn(...gt){const ot=[q,vt,Qe,{provide:E,useExisting:Qe},{provide:z,useExisting:vt},{provide:je,useValue:pn,multi:!0},{provide:$t,useValue:!0},{provide:Jt,useClass:ln}];for(const ut of gt)ot.push(...ut.\u0275providers);return(0,n.EmA)(ot)}const Yn=new n.nKC("LEGACY_INTERCEPTOR_FN");function Jn(){return function wn(gt,ot){return{\u0275kind:gt,\u0275providers:ot}}(Mn.LegacyInterceptors,[{provide:Yn,useFactory:ft},{provide:je,useExisting:Yn,multi:!0}])}let et=(()=>{class gt{static#e=this.\u0275fac=function(Lt){return new(Lt||gt)};static#t=this.\u0275mod=n.$C({type:gt});static#n=this.\u0275inj=n.G2t({providers:[Bn(Jn())]})}return gt})()},2978:(He,L,o)=>{"use strict";o.d(L,{$C:()=>nn,$GK:()=>Ut,$K3:()=>Hv,$MX:()=>bc,AVh:()=>Xd,Agw:()=>Zu,B4B:()=>ju,BIS:()=>v0,BMQ:()=>Pd,C4Q:()=>Kl,C5r:()=>Dv,Co$:()=>Bm,DNE:()=>cg,E5c:()=>Jd,EFF:()=>zg,EJ8:()=>_i,EmA:()=>zu,FCK:()=>$d,FS9:()=>jd,FsC:()=>ai,G2t:()=>at,GBs:()=>yv,GFd:()=>Zp,H3F:()=>$v,H5H:()=>th,H8p:()=>Ku,HJs:()=>$S,HbH:()=>Ng,Hbi:()=>MS,JRh:()=>Qd,JZv:()=>vt,Jv_:()=>Nm,KH2:()=>Xa,KVO:()=>un,Kcf:()=>V_,L39:()=>VS,LHq:()=>qd,LfX:()=>Qe,Lme:()=>Zd,MKu:()=>Lh,Mr5:()=>eh,Mz_:()=>Xc,NAR:()=>Eg,NEm:()=>sS,NYb:()=>tS,Njj:()=>Vo,O8t:()=>Tt,OA$:()=>zn,OM3:()=>Pl,Ocv:()=>ID,Ol2:()=>Vm,PLl:()=>Wf,QTQ:()=>Dp,Ql9:()=>RD,QuC:()=>Rr,R7$:()=>Ep,RV6:()=>gg,Rfq:()=>P,RxE:()=>Jf,SKi:()=>Or,SdG:()=>Ag,SmG:()=>fS,SpI:()=>Zc,TL$:()=>R_,Tbb:()=>z,UyX:()=>$_,VBU:()=>ke,Vns:()=>ea,Vt3:()=>wd,WHO:()=>Kv,WPN:()=>Yo,WQX:()=>dn,XpG:()=>bg,Xx1:()=>rc,Y8G:()=>kd,Z63:()=>Sl,ZF7:()=>Ta,ZvI:()=>Zg,_9s:()=>Zf,_q3:()=>Rh,aKT:()=>Ml,aNF:()=>jm,bIt:()=>Vd,bMT:()=>iv,bVm:()=>Kc,bc$:()=>m0,bkB:()=>Ys,brH:()=>sv,c1b:()=>su,cWb:()=>j_,czy:()=>hc,e01:()=>Xv,e5t:()=>z_,eBV:()=>Uo,eq3:()=>Ym,eu8:()=>Bd,f$h:()=>$u,fpN:()=>PS,gRc:()=>pS,gXe:()=>jt,giA:()=>Yv,h9k:()=>Lf,hnV:()=>jv,i5U:()=>rv,iLQ:()=>Th,j41:()=>zc,jDH:()=>Re,jNT:()=>Ud,joV:()=>hl,k0s:()=>Wc,kS0:()=>mu,kdw:()=>sc,lJ4:()=>Xm,lNU:()=>f,l_i:()=>Qm,lsd:()=>Cv,mGM:()=>vv,mq5:()=>cm,muq:()=>Jg,n$t:()=>Ff,nI1:()=>nv,nKC:()=>Be,npT:()=>kf,nrm:()=>Nd,o8S:()=>Ja,oH4:()=>qv,osQ:()=>H_,plB:()=>vh,qSk:()=>dl,qex:()=>Gc,qtP:()=>Md,rOR:()=>nu,rXU:()=>ka,rcV:()=>ao,sFG:()=>O0,sZ2:()=>zf,sdS:()=>hg,uvJ:()=>Xs,w6W:()=>CA,wOt:()=>m,wjB:()=>Ze,wni:()=>_v,xGo:()=>Wo,xc7:()=>Kd,xe9:()=>au,yjJ:()=>Hd,zZn:()=>Ls,zcH:()=>Eo,zjR:()=>mg});var n=o(16104),y=o(42029),a=o(99406),Q=o(52489),ie=o(95981),Z=o(20756),h=o(37782),w=o(72831),D=o(73793);function x(e){for(let t in e)if(e[t]===x)return t;throw Error("Could not find renamed property on target object.")}function E(e,t){for(const i in t)t.hasOwnProperty(i)&&!e.hasOwnProperty(i)&&(e[i]=t[i])}function z(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(z).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const i=t.indexOf("\n");return-1===i?t:t.substring(0,i)}function d(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const C=x({__forward_ref__:x});function P(e){return e.__forward_ref__=P,e.toString=function(){return z(this())},e}function k(e){return $(e)?e():e}function $(e){return"function"==typeof e&&e.hasOwnProperty(C)&&e.__forward_ref__===P}function I(e){return e&&!!e.\u0275providers}const f="https://g.co/ng/security#xss";class m extends Error{constructor(t,i){super(function T(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,i)),this.code=t}}function W(e){return"string"==typeof e?e:null==e?"":String(e)}function ue(e,t){throw new m(-201,!1)}function ne(e,t){null==e&&function S(e,t,i,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${i} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function Re(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function at(e){return{providers:e.providers||[],imports:e.imports||[]}}function ft(e){return nt(e,ht)||nt(e,Rt)}function Qe(e){return null!==ft(e)}function nt(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ge(e){return e&&(e.hasOwnProperty(It)||e.hasOwnProperty(At))?e[It]:null}const ht=x({\u0275prov:x}),It=x({\u0275inj:x}),Rt=x({ngInjectableDef:x}),At=x({ngInjectorDef:x});var Ut=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Ut||{});let Wt;function Bt(e){const t=Wt;return Wt=e,t}function rt(e,t,i){const r=ft(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:i&Ut.Optional?null:void 0!==t?t:void ue(z(e))}const vt=globalThis;class Be{constructor(t,i){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof i?this.__NG_ELEMENT_ID__=i:void 0!==i&&(this.\u0275prov=Re({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Jn={},In="__NG_DI_FLAG__",ii="ngTempTokenPath",mt=/\n/gm,We="__source";let et;function zt(e){const t=et;return et=e,t}function sn(e,t=Ut.Default){if(void 0===et)throw new m(-203,!1);return null===et?rt(e,void 0,t):et.get(e,t&Ut.Optional?null:void 0,t)}function un(e,t=Ut.Default){return(function it(){return Wt}()||sn)(k(e),t)}function dn(e,t=Ut.Default){return un(e,ri(t))}function ri(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function si(e){const t=[];for(let i=0;i<e.length;i++){const r=k(e[i]);if(Array.isArray(r)){if(0===r.length)throw new m(900,!1);let s,l=Ut.Default;for(let v=0;v<r.length;v++){const O=r[v],X=ot(O);"number"==typeof X?-1===X?s=O.token:l|=X:s=O}t.push(un(s,l))}else t.push(un(r))}return t}function gt(e,t){return e[In]=t,e.prototype[In]=t,e}function ot(e){return e[In]}function Ot(e){return{toString:e}.toString()}var Xt=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Xt||{}),jt=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(jt||{});const Sn={},qt=[],Un=x({\u0275cmp:x}),ti=x({\u0275dir:x}),qn=x({\u0275pipe:x}),jn=x({\u0275mod:x}),xn=x({\u0275fac:x}),Qn=x({__NG_ELEMENT_ID__:x}),bn=x({__NG_ENV_ID__:x});function _n(e,t,i){let r=e.length;for(;;){const s=e.indexOf(t,i);if(-1===s)return s;if(0===s||e.charCodeAt(s-1)<=32){const l=t.length;if(s+l===r||e.charCodeAt(s+l)<=32)return s}i=s+1}}function Ci(e,t,i){let r=0;for(;r<i.length;){const s=i[r];if("number"==typeof s){if(0!==s)break;r++;const l=i[r++],v=i[r++],O=i[r++];e.setAttribute(t,v,O,l)}else{const l=s,v=i[++r];Ln(l)?e.setProperty(t,l,v):e.setAttribute(t,l,v),r++}}return r}function fi(e){return 3===e||4===e||6===e}function Ln(e){return 64===e.charCodeAt(0)}function Xn(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let i=-1;for(let r=0;r<t.length;r++){const s=t[r];"number"==typeof s?i=s:0===i||oi(e,i,s,null,-1===i||2===i?t[++r]:null)}}return e}function oi(e,t,i,r,s){let l=0,v=e.length;if(-1===t)v=-1;else for(;l<e.length;){const O=e[l++];if("number"==typeof O){if(O===t){v=-1;break}if(O>t){v=l-1;break}}}for(;l<e.length;){const O=e[l];if("number"==typeof O)break;if(O===i){if(null===r)return void(null!==s&&(e[l+1]=s));if(r===e[l+1])return void(e[l+2]=s)}l++,null!==r&&l++,null!==s&&l++}-1!==v&&(e.splice(v,0,t),l=v+1),e.splice(l++,0,i),null!==r&&e.splice(l++,0,r),null!==s&&e.splice(l++,0,s)}const Le="ng-template";function tt(e,t,i){let r=0,s=!0;for(;r<e.length;){let l=e[r++];if("string"==typeof l&&s){const v=e[r++];if(i&&"class"===l&&-1!==_n(v.toLowerCase(),t,0))return!0}else{if(1===l){for(;r<e.length&&"string"==typeof(l=e[r++]);)if(l.toLowerCase()===t)return!0;return!1}"number"==typeof l&&(s=!1)}}return!1}function te(e){return 4===e.type&&e.value!==Le}function be(e,t,i){return t===(4!==e.type||i?e.value:Le)}function Ie(e,t,i){let r=4;const s=e.attrs||[],l=function Xe(e){for(let t=0;t<e.length;t++)if(fi(e[t]))return t;return e.length}(s);let v=!1;for(let O=0;O<t.length;O++){const X=t[O];if("number"!=typeof X){if(!v)if(4&r){if(r=2|1&r,""!==X&&!be(e,X,i)||""===X&&1===t.length){if(Pe(r))return!1;v=!0}}else{const me=8&r?X:t[++O];if(8&r&&null!==e.attrs){if(!tt(e.attrs,me,i)){if(Pe(r))return!1;v=!0}continue}const ze=Ke(8&r?"class":X,s,te(e),i);if(-1===ze){if(Pe(r))return!1;v=!0;continue}if(""!==me){let dt;dt=ze>l?"":s[ze+1].toLowerCase();const bt=8&r?dt:null;if(bt&&-1!==_n(bt,me,0)||2&r&&me!==dt){if(Pe(r))return!1;v=!0}}}}else{if(!v&&!Pe(r)&&!Pe(X))return!1;if(v&&Pe(X))continue;v=!1,r=X|1&r}}return Pe(r)||v}function Pe(e){return 0==(1&e)}function Ke(e,t,i,r){if(null===t)return-1;let s=0;if(r||!i){let l=!1;for(;s<t.length;){const v=t[s];if(v===e)return s;if(3===v||6===v)l=!0;else{if(1===v||2===v){let O=t[++s];for(;"string"==typeof O;)O=t[++s];continue}if(4===v)break;if(0===v){s+=4;continue}}s+=l?1:2}return-1}return function lt(e,t){let i=e.indexOf(4);if(i>-1)for(i++;i<e.length;){const r=e[i];if("number"==typeof r)return-1;if(r===t)return i;i++}return-1}(t,e)}function Se(e,t,i=!1){for(let r=0;r<t.length;r++)if(Ie(e,t[r],i))return!0;return!1}function pt(e,t){e:for(let i=0;i<t.length;i++){const r=t[i];if(e.length===r.length){for(let s=0;s<e.length;s++)if(e[s]!==r[s])continue e;return!0}}return!1}function kt(e,t){return e?":not("+t.trim()+")":t}function Kt(e){let t=e[0],i=1,r=2,s="",l=!1;for(;i<e.length;){let v=e[i];if("string"==typeof v)if(2&r){const O=e[++i];s+="["+v+(O.length>0?'="'+O+'"':"")+"]"}else 8&r?s+="."+v:4&r&&(s+=" "+v);else""!==s&&!Pe(v)&&(t+=kt(l,s),s=""),r=v,l=l||!Pe(r);i++}return""!==s&&(t+=kt(l,s)),t}function ke(e){return Ot(()=>{const t=vr(e),i={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Xt.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||jt.Emulated,styles:e.styles||qt,_:null,schemas:e.schemas||null,tView:null,id:""};rr(i);const r=e.dependencies;return i.directiveDefs=Hr(r,!1),i.pipeDefs=Hr(r,!0),i.id=function zr(e){let t=0;const i=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const s of i)t=Math.imul(31,t)+s.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(i),i})}function Ze(e,t,i){const r=e.\u0275cmp;r.directiveDefs=Hr(t,!1),r.pipeDefs=Hr(i,!0)}function Ct(e){return fn(e)||Hn(e)}function Vt(e){return null!==e}function nn(e){return Ot(()=>({type:e.type,bootstrap:e.bootstrap||qt,declarations:e.declarations||qt,imports:e.imports||qt,exports:e.exports||qt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function pi(e,t){if(null==e)return Sn;const i={};for(const r in e)if(e.hasOwnProperty(r)){let s=e[r],l=s;Array.isArray(s)&&(l=s[1],s=s[0]),i[s]=r,t&&(t[s]=l)}return i}function ai(e){return Ot(()=>{const t=vr(e);return rr(t),t})}function _i(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function fn(e){return e[Un]||null}function Hn(e){return e[ti]||null}function Ti(e){return e[qn]||null}function Rr(e){const t=fn(e)||Hn(e)||Ti(e);return null!==t&&t.standalone}function Ii(e,t){const i=e[jn]||null;if(!i&&!0===t)throw new Error(`Type ${z(e)} does not have '\u0275mod' property.`);return i}function vr(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Sn,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||qt,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:pi(e.inputs,t),outputs:pi(e.outputs)}}function rr(e){e.features?.forEach(t=>t(e))}function Hr(e,t){if(!e)return null;const i=t?Ti:Ct;return()=>("function"==typeof e?e():e).map(r=>i(r)).filter(Vt)}const gi=0,tn=1,En=2,li=3,Pi=4,ji=5,Oi=6,yr=7,bi=8,Ri=9,wr=10,yn=11,sr=12,Wr=13,pr=14,Wn=15,Tr=16,er=17,or=18,_r=19,Ss=20,Pr=21,ar=22,Ai=23,tr=24,Tn=25,kr=1,Ni=2,Hi=7,lr=9,Bi=11;function ki(e){return Array.isArray(e)&&"object"==typeof e[kr]}function $i(e){return Array.isArray(e)&&!0===e[kr]}function zi(e){return 0!=(4&e.flags)}function cr(e){return e.componentOffset>-1}function Fr(e){return 1==(1&e.flags)}function Cr(e){return!!e.template}function ws(e){return 0!=(512&e[En])}function Br(e,t){return e.hasOwnProperty(xn)?e[xn]:null}let Fi=null,_s=!1;function Er(e){const t=Fi;return Fi=e,t}const eo={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function hs(e){if(!Ps(e)||e.dirty){if(!e.producerMustRecompute(e)&&!ia(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function po(e){e.dirty=!0,function Ts(e){if(void 0===e.liveConsumerNode)return;const t=_s;_s=!0;try{for(const i of e.liveConsumerNode)i.dirty||po(i)}finally{_s=t}}(e),e.consumerMarkedDirty?.(e)}function to(e){return e&&(e.nextProducerIndex=0),Er(e)}function go(e,t){if(Er(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(Ps(e))for(let i=e.nextProducerIndex;i<e.producerNode.length;i++)ro(e.producerNode[i],e.producerIndexOfThis[i]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function ia(e){Cs(e);for(let t=0;t<e.producerNode.length;t++){const i=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==i.version||(hs(i),r!==i.version))return!0}return!1}function no(e){if(Cs(e),Ps(e))for(let t=0;t<e.producerNode.length;t++)ro(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function ro(e,t){if(function Bs(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}(e),Cs(e),1===e.liveConsumerNode.length)for(let r=0;r<e.producerNode.length;r++)ro(e.producerNode[r],e.producerIndexOfThis[r]);const i=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[i],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[i],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){const r=e.liveConsumerIndexOfThis[t],s=e.liveConsumerNode[t];Cs(s),s.producerIndexOfThis[r]=t}}function Ps(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function Cs(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let xo=null;function Tt(e){const t=Er(null);try{return e()}finally{Er(t)}}const on=()=>{},mi=(()=>({...eo,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:on}))();class ni{constructor(t,i,r){this.previousValue=t,this.currentValue=i,this.firstChange=r}isFirstChange(){return this.firstChange}}function zn(){return Li}function Li(e){return e.type.prototype.ngOnChanges&&(e.setInput=Wi),ui}function ui(){const e=Ki(this),t=e?.current;if(t){const i=e.previous;if(i===Sn)e.previous=t;else for(let r in t)i[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Wi(e,t,i,r){const s=this.declaredInputs[i],l=Ki(e)||function ps(e,t){return e[Gr]=t}(e,{previous:Sn,current:null}),v=l.current||(l.current={}),O=l.previous,X=O[s];v[s]=new ni(X&&X.currentValue,t,O===Sn),e[r]=t}zn.ngInherit=!0;const Gr="__ngSimpleChanges__";function Ki(e){return e[Gr]||null}const Xi=function(e,t,i){},Gi="svg";function Mi(e){for(;Array.isArray(e);)e=e[gi];return e}function bs(e,t){return Mi(t[e])}function Mr(e,t){return Mi(t[e.index])}function Vs(e,t){return e.data[t]}function js(e,t){return e[t]}function Ur(e,t){const i=t[e];return ki(i)?i:i[gi]}function Ms(e,t){return null==t?null:e[t]}function No(e){e[er]=0}function gs(e){1024&e[En]||(e[En]|=1024,la(e,1))}function aa(e){1024&e[En]&&(e[En]&=-1025,la(e,-1))}function la(e,t){let i=e[li];if(null===i)return;i[ji]+=t;let r=i;for(i=i[li];null!==i&&(1===t&&1===r[ji]||-1===t&&0===r[ji]);)i[ji]+=t,r=i,i=i[li]}const On={lFrame:ts(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Bo(){return On.bindingsEnabled}function $s(){return null!==On.skipHydrationRootTNode}function Ht(){return On.lFrame.lView}function di(){return On.lFrame.tView}function Uo(e){return On.lFrame.contextLView=e,e[bi]}function Vo(e){return On.lFrame.contextLView=null,e}function Qi(){let e=jo();for(;null!==e&&64===e.type;)e=e.parent;return e}function jo(){return On.lFrame.currentTNode}function Kr(e,t){const i=On.lFrame;i.currentTNode=e,i.isParent=t}function bo(){return On.lFrame.isParent}function Xr(){On.lFrame.isParent=!1}function Zi(){const e=On.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Yr(){return On.lFrame.bindingIndex}function Hs(){return On.lFrame.bindingIndex++}function B(e){const t=On.lFrame,i=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,i}function J(e,t){const i=On.lFrame;i.bindingIndex=i.bindingRootIndex=e,Oe(t)}function Oe(e){On.lFrame.currentDirectiveIndex=e}function Dt(){return On.lFrame.currentQueryIndex}function St(e){On.lFrame.currentQueryIndex=e}function an(e){const t=e[tn];return 2===t.type?t.declTNode:1===t.type?e[Oi]:null}function Vn(e,t,i){if(i&Ut.SkipSelf){let s=t,l=e;for(;!(s=s.parent,null!==s||i&Ut.Host||(s=an(l),null===s||(l=l[pr],10&s.type))););if(null===s)return!1;t=s,e=l}const r=On.lFrame=ci();return r.currentTNode=t,r.lView=e,!0}function Ei(e){const t=ci(),i=e[tn];On.lFrame=t,t.currentTNode=i.firstChild,t.lView=e,t.tView=i,t.contextLView=e,t.bindingIndex=i.bindingStartIndex,t.inI18n=!1}function ci(){const e=On.lFrame,t=null===e?null:e.child;return null===t?ts(e):t}function ts(e){const t={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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Os(){const e=On.lFrame;return On.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const zs=Os;function so(){const e=Os();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function mr(){return On.lFrame.selectedIndex}function Ws(e){On.lFrame.selectedIndex=e}function Ui(){const e=On.lFrame;return Vs(e.tView,e.selectedIndex)}function dl(){On.lFrame.currentNamespace=Gi}function hl(){!function ec(){On.lFrame.currentNamespace=null}()}let da=!0;function ha(){return da}function Gs(e){da=e}function fa(e,t){for(let i=t.directiveStart,r=t.directiveEnd;i<r;i++){const l=e.data[i].type.prototype,{ngAfterContentInit:v,ngAfterContentChecked:O,ngAfterViewInit:X,ngAfterViewChecked:me,ngOnDestroy:xe}=l;v&&(e.contentHooks??=[]).push(-i,v),O&&((e.contentHooks??=[]).push(i,O),(e.contentCheckHooks??=[]).push(i,O)),X&&(e.viewHooks??=[]).push(-i,X),me&&((e.viewHooks??=[]).push(i,me),(e.viewCheckHooks??=[]).push(i,me)),null!=xe&&(e.destroyHooks??=[]).push(i,xe)}}function pa(e,t,i){_(e,t,3,i)}function fl(e,t,i,r){(3&e[En])===i&&_(e,t,i,r)}function V(e,t){let i=e[En];(3&i)===t&&(i&=8191,i+=1,e[En]=i)}function _(e,t,i,r){const l=r??-1,v=t.length-1;let O=0;for(let X=void 0!==r?65535&e[er]:0;X<v;X++)if("number"==typeof t[X+1]){if(O=t[X],null!=r&&O>=r)break}else t[X]<0&&(e[er]+=65536),(O<l||-1==l)&&(j(e,i,t,X),e[er]=(4294901760&e[er])+X+2),X++}function c(e,t){Xi(4,e,t);const i=Er(null);try{t.call(e)}finally{Er(i),Xi(5,e,t)}}function j(e,t,i,r){const s=i[r]<0,l=i[r+1],O=e[s?-i[r]:i[r]];s?e[En]>>13<e[er]>>16&&(3&e[En])===t&&(e[En]+=8192,c(O,l)):c(O,l)}const oe=-1;class Ce{constructor(t,i,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=r}}function vn(e){return e!==oe}function Pn(e){return 32767&e}function wi(e,t){let i=function Si(e){return e>>16}(e),r=t;for(;i>0;)r=r[pr],i--;return r}let Ji=!0;function dr(e){const t=Ji;return Ji=e,t}const Ks=255,is=5;let Ir=0;const hr={};function Qr(e,t){const i=oo(e,t);if(-1!==i)return i;const r=t[tn];r.firstCreatePass&&(e.injectorIndex=t.length,$o(r.data,e),$o(t,null),$o(r.blueprint,null));const s=ms(e,t),l=e.injectorIndex;if(vn(s)){const v=Pn(s),O=wi(s,t),X=O[tn].data;for(let me=0;me<8;me++)t[l+me]=O[v+me]|X[v+me]}return t[l+8]=s,l}function $o(e,t){e.push(0,0,0,0,0,0,0,0,t)}function oo(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function ms(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let i=0,r=null,s=t;for(;null!==s;){if(r=Nh(s),null===r)return oe;if(i++,s=s[pr],-1!==r.injectorIndex)return r.injectorIndex|i<<16}return oe}function Ho(e,t,i){!function Es(e,t,i){let r;"string"==typeof i?r=i.charCodeAt(0)||0:i.hasOwnProperty(Qn)&&(r=i[Qn]),null==r&&(r=i[Qn]=Ir++);const s=r&Ks;t.data[e+(s>>is)]|=1<<s}(e,t,i)}function mn(e,t,i){if(i&Ut.Optional||void 0!==e)return e;ue()}function Dn(e,t,i,r){if(i&Ut.Optional&&void 0===r&&(r=null),!(i&(Ut.Self|Ut.Host))){const s=e[Ri],l=Bt(void 0);try{return s?s.get(t,r,i&Ut.Optional):rt(t,r,i&Ut.Optional)}finally{Bt(l)}}return mn(r,0,i)}function Rn(e,t,i,r=Ut.Default,s){if(null!==e){if(2048&t[En]&&!(r&Ut.Self)){const v=function wy(e,t,i,r,s){let l=e,v=t;for(;null!==l&&null!==v&&2048&v[En]&&!(512&v[En]);){const O=hi(l,v,i,r|Ut.Self,hr);if(O!==hr)return O;let X=l.parent;if(!X){const me=v[Ss];if(me){const xe=me.get(i,hr,r);if(xe!==hr)return xe}X=Nh(v),v=v[pr]}l=X}return s}(e,t,i,r,hr);if(v!==hr)return v}const l=hi(e,t,i,r,hr);if(l!==hr)return l}return Dn(t,i,r,s)}function hi(e,t,i,r,s){const l=function Rs(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Qn)?e[Qn]:void 0;return"number"==typeof t?t>=0?t&Ks:rs:t}(i);if("function"==typeof l){if(!Vn(t,e,r))return r&Ut.Host?mn(s,0,r):Dn(t,i,r,s);try{let v;if(v=l(r),null!=v||r&Ut.Optional)return v;ue()}finally{zs()}}else if("number"==typeof l){let v=null,O=oo(e,t),X=oe,me=r&Ut.Host?t[Wn][Oi]:null;for((-1===O||r&Ut.SkipSelf)&&(X=-1===O?ms(e,t):t[O+8],X!==oe&&gl(r,!1)?(v=t[tn],O=Pn(X),t=wi(X,t)):O=-1);-1!==O;){const xe=t[tn];if(Vi(l,O,xe.data)){const ze=fr(O,t,i,v,r,me);if(ze!==hr)return ze}X=t[O+8],X!==oe&&gl(r,t[tn].data[O+8]===me)&&Vi(l,O,t)?(v=xe,O=Pn(X),t=wi(X,t)):O=-1}}return s}function fr(e,t,i,r,s,l){const v=t[tn],O=v.data[e+8],xe=Vr(O,v,i,null==r?cr(O)&&Ji:r!=v&&0!=(3&O.type),s&Ut.Host&&l===O);return null!==xe?ir(t,v,xe,O):hr}function Vr(e,t,i,r,s){const l=e.providerIndexes,v=t.data,O=1048575&l,X=e.directiveStart,xe=l>>20,dt=s?O+xe:e.directiveEnd;for(let bt=r?O:O+xe;bt<dt;bt++){const Ft=v[bt];if(bt<X&&i===Ft||bt>=X&&Ft.type===i)return bt}if(s){const bt=v[X];if(bt&&Cr(bt)&&bt.type===i)return X}return null}function ir(e,t,i,r){let s=e[i];const l=t.data;if(function $e(e){return e instanceof Ce}(s)){const v=s;v.resolving&&function re(e,t){const i=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new m(-200,`Circular dependency in DI detected for ${e}${i}`)}(function K(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():W(e)}(l[i]));const O=dr(v.canSeeViewProviders);v.resolving=!0;const me=v.injectImpl?Bt(v.injectImpl):null;Vn(e,r,Ut.Default);try{s=e[i]=v.factory(void 0,l,e,r),t.firstCreatePass&&i>=r.directiveStart&&function gu(e,t,i){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:l}=t.type.prototype;if(r){const v=Li(t);(i.preOrderHooks??=[]).push(e,v),(i.preOrderCheckHooks??=[]).push(e,v)}s&&(i.preOrderHooks??=[]).push(0-e,s),l&&((i.preOrderHooks??=[]).push(e,l),(i.preOrderCheckHooks??=[]).push(e,l))}(i,l[i],t)}finally{null!==me&&Bt(me),dr(O),v.resolving=!1,zs()}}return s}function Vi(e,t,i){return!!(i[t+(e>>is)]&1<<e)}function gl(e,t){return!(e&Ut.Self||e&Ut.Host&&t)}class qi{constructor(t,i){this._tNode=t,this._lView=i}get(t,i,r){return Rn(this._tNode,this._lView,t,ri(r),i)}}function rs(){return new qi(Qi(),Ht())}function Wo(e){return Ot(()=>{const t=e.prototype.constructor,i=t[xn]||Go(t),r=Object.prototype;let s=Object.getPrototypeOf(e.prototype).constructor;for(;s&&s!==r;){const l=s[xn]||Go(s);if(l&&l!==i)return l;s=Object.getPrototypeOf(s)}return l=>new l})}function Go(e){return $(e)?()=>{const t=Go(k(e));return t&&t()}:Br(e)}function Nh(e){const t=e[tn],i=t.type;return 2===i?t.declTNode:1===i?e[Oi]:null}function mu(e){return function pl(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const i=e.attrs;if(i){const r=i.length;let s=0;for(;s<r;){const l=i[s];if(fi(l))break;if(0===l)s+=2;else if("number"==typeof l)for(s++;s<r&&"string"==typeof i[s];)s++;else{if(l===t)return i[s+1];s+=2}}}return null}(Qi(),e)}const ma="__parameters__";function ya(e,t,i){return Ot(()=>{const r=function vu(e){return function(...i){if(e){const r=e(...i);for(const s in r)this[s]=r[s]}}}(t);function s(...l){if(this instanceof s)return r.apply(this,l),this;const v=new s(...l);return O.annotation=v,O;function O(X,me,xe){const ze=X.hasOwnProperty(ma)?X[ma]:Object.defineProperty(X,ma,{value:[]})[ma];for(;ze.length<=xe;)ze.push(null);return(ze[xe]=ze[xe]||[]).push(v),X}}return i&&(s.prototype=Object.create(i.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}function Ca(e,t){e.forEach(i=>Array.isArray(i)?Ca(i,t):t(i))}function Uh(e,t,i){t>=e.length?e.push(i):e.splice(t,0,i)}function nc(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function vl(e,t){const i=[];for(let r=0;r<e;r++)i.push(t);return i}function vs(e,t,i){let r=ba(e,t);return r>=0?e[1|r]=i:(r=~r,function Ry(e,t,i,r){let s=e.length;if(s==t)e.push(i,r);else if(1===s)e.push(r,e[0]),e[0]=i;else{for(s--,e.push(e[s-1],e[s]);s>t;)e[s]=e[s-2],s--;e[t]=i,e[t+1]=r}}(e,r,t,i)),r}function yu(e,t){const i=ba(e,t);if(i>=0)return e[1|i]}function ba(e,t){return function Vh(e,t,i){let r=0,s=e.length>>i;for(;s!==r;){const l=r+(s-r>>1),v=e[l<<i];if(t===v)return l<<i;v>t?s=l:r=l+1}return~(s<<i)}(e,t,1)}const rc=gt(ya("Optional"),8),sc=gt(ya("SkipSelf"),4);function uc(e){return 128==(128&e.flags)}var hc=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(hc||{});const e_=/^>|^->|<!--|-->|--!>|<!-$/g,t_=/(<|>)/g,n_="\u200b$1\u200b";const Au=new Map;let i_=0;const Su="__ngContext__";function jr(e,t){ki(t)?(e[Su]=t[_r],function s_(e){Au.set(e[_r],e)}(t)):e[Su]=t}let wu;function Tu(e,t){return wu(e,t)}function Cl(e){const t=e[li];return $i(t)?t[li]:t}function lf(e){return uf(e[sr])}function cf(e){return uf(e[Pi])}function uf(e){for(;null!==e&&!$i(e);)e=e[Pi];return e}function Da(e,t,i,r,s){if(null!=r){let l,v=!1;$i(r)?l=r:ki(r)&&(v=!0,r=r[gi]);const O=Mi(r);0===e&&null!==i?null==s?pf(t,i,O):Ko(t,i,O,s||null,!0):1===e&&null!==i?Ko(t,i,O,s||null,!0):2===e?function yc(e,t,i){const r=mc(e,t);r&&function D_(e,t,i,r){e.removeChild(t,i,r)}(e,r,t,i)}(t,O,v):3===e&&t.destroyNode(O),null!=l&&function T_(e,t,i,r,s){const l=i[Hi];l!==Mi(i)&&Da(t,e,r,l,s);for(let O=Bi;O<i.length;O++){const X=i[O];El(X[tn],X,e,t,r,l)}}(t,e,l,i,s)}}function Pu(e,t){return e.createComment(function Jh(e){return e.replace(e_,t=>t.replace(t_,n_))}(t))}function pc(e,t,i){return e.createElement(t,i)}function hf(e,t){const i=e[lr],r=i.indexOf(t);aa(t),i.splice(r,1)}function gc(e,t){if(e.length<=Bi)return;const i=Bi+t,r=e[i];if(r){const s=r[Tr];null!==s&&s!==e&&hf(s,r),t>0&&(e[i-1][Pi]=r[Pi]);const l=nc(e,Bi+t);!function m_(e,t){El(e,t,t[yn],2,null,null),t[gi]=null,t[Oi]=null}(r[tn],r);const v=l[or];null!==v&&v.detachView(l[tn]),r[li]=null,r[Pi]=null,r[En]&=-129}return r}function Mu(e,t){if(!(256&t[En])){const i=t[yn];t[Ai]&&no(t[Ai]),t[tr]&&no(t[tr]),i.destroyNode&&El(e,t,i,3,null,null),function __(e){let t=e[sr];if(!t)return Iu(e[tn],e);for(;t;){let i=null;if(ki(t))i=t[sr];else{const r=t[Bi];r&&(i=r)}if(!i){for(;t&&!t[Pi]&&t!==e;)ki(t)&&Iu(t[tn],t),t=t[li];null===t&&(t=e),ki(t)&&Iu(t[tn],t),i=t&&t[Pi]}t=i}}(t)}}function Iu(e,t){if(!(256&t[En])){t[En]&=-129,t[En]|=256,function A_(e,t){let i;if(null!=e&&null!=(i=e.destroyHooks))for(let r=0;r<i.length;r+=2){const s=t[i[r]];if(!(s instanceof Ce)){const l=i[r+1];if(Array.isArray(l))for(let v=0;v<l.length;v+=2){const O=s[l[v]],X=l[v+1];Xi(4,O,X);try{X.call(O)}finally{Xi(5,O,X)}}else{Xi(4,s,l);try{l.call(s)}finally{Xi(5,s,l)}}}}}(e,t),function E_(e,t){const i=e.cleanup,r=t[yr];if(null!==i)for(let l=0;l<i.length-1;l+=2)if("string"==typeof i[l]){const v=i[l+3];v>=0?r[v]():r[-v].unsubscribe(),l+=2}else i[l].call(r[i[l+1]]);null!==r&&(t[yr]=null);const s=t[Pr];if(null!==s){t[Pr]=null;for(let l=0;l<s.length;l++)(0,s[l])()}}(e,t),1===t[tn].type&&t[yn].destroy();const i=t[Tr];if(null!==i&&$i(t[li])){i!==t[li]&&hf(i,t);const r=t[or];null!==r&&r.detachView(e)}!function o_(e){Au.delete(e[_r])}(t)}}function xu(e,t,i){return function ff(e,t,i){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return i[gi];{const{componentOffset:s}=r;if(s>-1){const{encapsulation:l}=e.data[r.directiveStart+s];if(l===jt.None||l===jt.Emulated)return null}return Mr(r,i)}}(e,t.parent,i)}function Ko(e,t,i,r,s){e.insertBefore(t,i,r,s)}function pf(e,t,i){e.appendChild(t,i)}function gf(e,t,i,r,s){null!==r?Ko(e,t,i,r,s):pf(e,t,i)}function mc(e,t){return e.parentNode(t)}function mf(e,t,i){return yf(e,t,i)}let Ou,_c,Fu,Cc,yf=function vf(e,t,i){return 40&e.type?Mr(e,i):null};function vc(e,t,i,r){const s=xu(e,r,t),l=t[yn],O=mf(r.parent||t[Oi],r,t);if(null!=s)if(Array.isArray(i))for(let X=0;X<i.length;X++)gf(l,s,i[X],O,!1);else gf(l,s,i,O,!1);void 0!==Ou&&Ou(l,r,t,i,s)}function bl(e,t){if(null!==t){const i=t.type;if(3&i)return Mr(t,e);if(4&i)return Ru(-1,e[t.index]);if(8&i){const r=t.child;if(null!==r)return bl(e,r);{const s=e[t.index];return $i(s)?Ru(-1,s):Mi(s)}}if(32&i)return Tu(t,e)()||Mi(e[t.index]);{const r=Cf(e,t);return null!==r?Array.isArray(r)?r[0]:bl(Cl(e[Wn]),r):bl(e,t.next)}}return null}function Cf(e,t){return null!==t?e[Wn][Oi].projection[t.projection]:null}function Ru(e,t){const i=Bi+e+1;if(i<t.length){const r=t[i],s=r[tn].firstChild;if(null!==s)return bl(r,s)}return t[Hi]}function Lu(e,t,i,r,s,l,v){for(;null!=i;){const O=r[i.index],X=i.type;if(v&&0===t&&(O&&jr(Mi(O),r),i.flags|=2),32!=(32&i.flags))if(8&X)Lu(e,t,i.child,r,s,l,!1),Da(t,e,s,O,l);else if(32&X){const me=Tu(i,r);let xe;for(;xe=me();)Da(t,e,s,xe,l);Da(t,e,s,O,l)}else 16&X?Ef(e,t,r,i,s,l):Da(t,e,s,O,l);i=v?i.projectionNext:i.next}}function El(e,t,i,r,s,l){Lu(i,r,e.firstChild,t,s,l,!1)}function Ef(e,t,i,r,s,l){const v=i[Wn],X=v[Oi].projection[r.projection];if(Array.isArray(X))for(let me=0;me<X.length;me++)Da(t,e,s,X[me],l);else{let me=X;const xe=v[li];uc(r)&&(me.flags|=128),Lu(e,t,me,xe,s,l,!0)}}function Af(e,t,i){""===i?e.removeAttribute(t,"class"):e.setAttribute(t,"class",i)}function Df(e,t,i){const{mergedAttrs:r,classes:s,styles:l}=i;null!==r&&Ci(e,t,r),null!==s&&Af(e,t,s),null!==l&&function M_(e,t,i){e.setAttribute(t,"style",i)}(e,t,l)}function Sa(e){return function ku(){if(void 0===_c&&(_c=null,vt.trustedTypes))try{_c=vt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return _c}()?.createHTML(e)||e}function R_(e){Fu=e}function wa(){if(void 0!==Fu)return Fu;if(typeof document<"u")return document;throw new m(210,!1)}function Nu(){if(void 0===Cc&&(Cc=null,vt.trustedTypes))try{Cc=vt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Cc}function Sf(e){return Nu()?.createHTML(e)||e}function Tf(e){return Nu()?.createScriptURL(e)||e}class Xo{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${f})`}}class L_ extends Xo{getTypeName(){return"HTML"}}class k_ extends Xo{getTypeName(){return"Style"}}class F_ extends Xo{getTypeName(){return"Script"}}class N_ extends Xo{getTypeName(){return"URL"}}class B_ extends Xo{getTypeName(){return"ResourceURL"}}function ao(e){return e instanceof Xo?e.changingThisBreaksApplicationSecurity:e}function Ta(e,t){const i=function U_(e){return e instanceof Xo&&e.getTypeName()||null}(e);if(null!=i&&i!==t){if("ResourceURL"===i&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${i} (see ${f})`)}return i===t}function V_(e){return new L_(e)}function j_(e){return new k_(e)}function $_(e){return new F_(e)}function H_(e){return new N_(e)}function z_(e){return new B_(e)}class W_{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const i=(new window.DOMParser).parseFromString(Sa(t),"text/html").body;return null===i?this.inertDocumentHelper.getInertBodyElement(t):(i.removeChild(i.firstChild),i)}catch{return null}}}class G_{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const i=this.inertDocument.createElement("template");return i.innerHTML=Sa(t),i}}const X_=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function bc(e){return(e=String(e)).match(X_)?e:"unsafe:"+e}function lo(e){const t={};for(const i of e.split(","))t[i]=!0;return t}function Al(...e){const t={};for(const i of e)for(const r in i)i.hasOwnProperty(r)&&(t[r]=!0);return t}const Mf=lo("area,br,col,hr,img,wbr"),If=lo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),xf=lo("rp,rt"),Bu=Al(Mf,Al(If,lo("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")),Al(xf,lo("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")),Al(xf,If)),Uu=lo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Of=Al(Uu,lo("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"),lo("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")),Y_=lo("script,style,template");class Q_{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let i=t.firstChild,r=!0;for(;i;)if(i.nodeType===Node.ELEMENT_NODE?r=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,r&&i.firstChild)i=i.firstChild;else for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let s=this.checkClobberedElement(i,i.nextSibling);if(s){i=s;break}i=this.checkClobberedElement(i,i.parentNode)}return this.buf.join("")}startElement(t){const i=t.nodeName.toLowerCase();if(!Bu.hasOwnProperty(i))return this.sanitizedSomething=!0,!Y_.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);const r=t.attributes;for(let s=0;s<r.length;s++){const l=r.item(s),v=l.name,O=v.toLowerCase();if(!Of.hasOwnProperty(O)){this.sanitizedSomething=!0;continue}let X=l.value;Uu[O]&&(X=bc(X)),this.buf.push(" ",v,'="',Rf(X),'"')}return this.buf.push(">"),!0}endElement(t){const i=t.nodeName.toLowerCase();Bu.hasOwnProperty(i)&&!Mf.hasOwnProperty(i)&&(this.buf.push("</"),this.buf.push(i),this.buf.push(">"))}chars(t){this.buf.push(Rf(t))}checkClobberedElement(t,i){if(i&&(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return i}}const Z_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,J_=/([^\#-~ |!])/g;function Rf(e){return e.replace(/&/g,"&").replace(Z_,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(J_,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Ec;function Lf(e,t){let i=null;try{Ec=Ec||function Pf(e){const t=new G_(e);return function K_(){try{return!!(new window.DOMParser).parseFromString(Sa(""),"text/html")}catch{return!1}}()?new W_(t):t}(e);let r=t?String(t):"";i=Ec.getInertBodyElement(r);let s=5,l=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=l,l=i.innerHTML,i=Ec.getInertBodyElement(r)}while(r!==l);return Sa((new Q_).sanitizeChildren(Vu(i)||i))}finally{if(i){const r=Vu(i)||i;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Vu(e){return"content"in e&&function q_(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Yo=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Yo||{});function kf(e){const t=Dl();return t?Sf(t.sanitize(Yo.HTML,e)||""):Ta(e,"HTML")?Sf(ao(e)):Lf(wa(),W(e))}function ju(e){const t=Dl();return t?t.sanitize(Yo.URL,e)||"":Ta(e,"URL")?ao(e):bc(W(e))}function $u(e){const t=Dl();if(t)return Tf(t.sanitize(Yo.RESOURCE_URL,e)||"");if(Ta(e,"ResourceURL"))return Tf(ao(e));throw new m(904,!1)}function Ff(e,t,i){return function s0(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?$u:ju}(t,i)(e)}function Dl(){const e=Ht();return e&&e[wr].sanitizer}const Sl=new Be("ENVIRONMENT_INITIALIZER"),Nf=new Be("INJECTOR",-1),Bf=new Be("INJECTOR_DEF_TYPES");class Hu{get(t,i=Jn){if(i===Jn){const r=new Error(`NullInjectorError: No provider for ${z(t)}!`);throw r.name="NullInjectorError",r}return i}}function zu(e){return{\u0275providers:e}}function o0(...e){return{\u0275providers:Uf(0,e),\u0275fromNgModule:!0}}function Uf(e,...t){const i=[],r=new Set;let s;const l=v=>{i.push(v)};return Ca(t,v=>{const O=v;Ac(O,l,[],r)&&(s||=[],s.push(O))}),void 0!==s&&Vf(s,l),i}function Vf(e,t){for(let i=0;i<e.length;i++){const{ngModule:r,providers:s}=e[i];Wu(s,l=>{t(l,r)})}}function Ac(e,t,i,r){if(!(e=k(e)))return!1;let s=null,l=Ge(e);const v=!l&&fn(e);if(l||v){if(v&&!v.standalone)return!1;s=e}else{const X=e.ngModule;if(l=Ge(X),!l)return!1;s=X}const O=r.has(s);if(v){if(O)return!1;if(r.add(s),v.dependencies){const X="function"==typeof v.dependencies?v.dependencies():v.dependencies;for(const me of X)Ac(me,t,i,r)}}else{if(!l)return!1;{if(null!=l.imports&&!O){let me;r.add(s);try{Ca(l.imports,xe=>{Ac(xe,t,i,r)&&(me||=[],me.push(xe))})}finally{}void 0!==me&&Vf(me,t)}if(!O){const me=Br(s)||(()=>new s);t({provide:s,useFactory:me,deps:qt},s),t({provide:Bf,useValue:s,multi:!0},s),t({provide:Sl,useValue:()=>un(s),multi:!0},s)}const X=l.providers;if(null!=X&&!O){const me=e;Wu(X,xe=>{t(xe,me)})}}}return s!==e&&void 0!==e.providers}function Wu(e,t){for(let i of e)I(i)&&(i=i.\u0275providers),Array.isArray(i)?Wu(i,t):t(i)}const a0=x({provide:String,useValue:x});function Gu(e){return null!==e&&"object"==typeof e&&a0 in e}function Qo(e){return"function"==typeof e}const Ku=new Be("Set Injector scope."),Dc={},c0={};let Xu;function Sc(){return void 0===Xu&&(Xu=new Hu),Xu}class Xs{}class Pa extends Xs{get destroyed(){return this._destroyed}constructor(t,i,r,s){super(),this.parent=i,this.source=r,this.scopes=s,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Qu(t,v=>this.processProvider(v)),this.records.set(Nf,Ma(void 0,this)),s.has("environment")&&this.records.set(Xs,Ma(void 0,this));const l=this.records.get(Ku);null!=l&&"string"==typeof l.value&&this.scopes.add(l.value),this.injectorDefTypes=new Set(this.get(Bf.multi,qt,Ut.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of t)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const i=zt(this),r=Bt(void 0);try{return t()}finally{zt(i),Bt(r)}}get(t,i=Jn,r=Ut.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(bn))return t[bn](this);r=ri(r);const l=zt(this),v=Bt(void 0);try{if(!(r&Ut.SkipSelf)){let X=this.records.get(t);if(void 0===X){const me=function p0(e){return"function"==typeof e||"object"==typeof e&&e instanceof Be}(t)&&ft(t);X=me&&this.injectableDefInScope(me)?Ma(Yu(t),Dc):null,this.records.set(t,X)}if(null!=X)return this.hydrate(t,X)}return(r&Ut.Self?Sc():this.parent).get(t,i=r&Ut.Optional&&i===Jn?null:i)}catch(O){if("NullInjectorError"===O.name){if((O[ii]=O[ii]||[]).unshift(z(t)),l)throw O;return function ut(e,t,i,r){const s=e[ii];throw t[We]&&s.unshift(t[We]),e.message=function Lt(e,t,i,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let s=z(t);if(Array.isArray(t))s=t.map(z).join(" -> ");else if("object"==typeof t){let l=[];for(let v in t)if(t.hasOwnProperty(v)){let O=t[v];l.push(v+":"+("string"==typeof O?JSON.stringify(O):z(O)))}s=`{${l.join(", ")}}`}return`${i}${r?"("+r+")":""}[${s}]: ${e.replace(mt,"\n ")}`}("\n"+e.message,s,i,r),e.ngTokenPath=s,e[ii]=null,e}(O,t,"R3InjectorError",this.source)}throw O}finally{Bt(v),zt(l)}}resolveInjectorInitializers(){const t=zt(this),i=Bt(void 0);try{const s=this.get(Sl.multi,qt,Ut.Self);for(const l of s)l()}finally{zt(t),Bt(i)}}toString(){const t=[],i=this.records;for(const r of i.keys())t.push(z(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new m(205,!1)}processProvider(t){let i=Qo(t=k(t))?t:k(t&&t.provide);const r=function d0(e){return Gu(e)?Ma(void 0,e.useValue):Ma(Hf(e),Dc)}(t);if(Qo(t)||!0!==t.multi)this.records.get(i);else{let s=this.records.get(i);s||(s=Ma(void 0,Dc,!0),s.factory=()=>si(s.multi),this.records.set(i,s)),i=t,s.multi.push(t)}this.records.set(i,r)}hydrate(t,i){return i.value===Dc&&(i.value=c0,i.value=i.factory()),"object"==typeof i.value&&i.value&&function f0(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}injectableDefInScope(t){if(!t.providedIn)return!1;const i=k(t.providedIn);return"string"==typeof i?"any"===i||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(t){const i=this._onDestroyHooks.indexOf(t);-1!==i&&this._onDestroyHooks.splice(i,1)}}function Yu(e){const t=ft(e),i=null!==t?t.factory:Br(e);if(null!==i)return i;if(e instanceof Be)throw new m(204,!1);if(e instanceof Function)return function u0(e){const t=e.length;if(t>0)throw vl(t,"?"),new m(204,!1);const i=function _t(e){return e&&(e[ht]||e[Rt])||null}(e);return null!==i?()=>i.factory(e):()=>new e}(e);throw new m(204,!1)}function Hf(e,t,i){let r;if(Qo(e)){const s=k(e);return Br(s)||Yu(s)}if(Gu(e))r=()=>k(e.useValue);else if(function $f(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...si(e.deps||[]));else if(function jf(e){return!(!e||!e.useExisting)}(e))r=()=>un(k(e.useExisting));else{const s=k(e&&(e.useClass||e.provide));if(!function h0(e){return!!e.deps}(e))return Br(s)||Yu(s);r=()=>new s(...si(e.deps))}return r}function Ma(e,t,i=!1){return{factory:e,value:t,multi:i?[]:void 0}}function Qu(e,t){for(const i of e)Array.isArray(i)?Qu(i,t):i&&I(i)?Qu(i.\u0275providers,t):t(i)}const zf=new Be("AppId",{providedIn:"root",factory:()=>g0}),g0="ng",Wf=new Be("Platform Initializer"),Zu=new Be("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),m0=new Be("AnimationModuleType"),v0=new Be("CSP nonce",{providedIn:"root",factory:()=>wa().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Gf=(e,t,i)=>null;function sd(e,t,i=!1){return Gf(e,t,i)}class T0{}class Yf{}class M0{resolveComponentFactory(t){throw function P0(e){const t=Error(`No component factory found for ${z(e)}.`);return t.ngComponent=e,t}(t)}}let Pl=(()=>{class e{static#e=this.NULL=new M0}return e})();function I0(){return Oa(Qi(),Ht())}function Oa(e,t){return new Ml(Mr(e,t))}let Ml=(()=>{class e{constructor(i){this.nativeElement=i}static#e=this.__NG_ELEMENT_ID__=I0}return e})();function x0(e){return e instanceof Ml?e.nativeElement:e}class Zf{}let O0=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function R0(){const e=Ht(),i=Ur(Qi().index,e);return(ki(i)?i:e)[yn]}()}return e})(),L0=(()=>{class e{static#e=this.\u0275prov=Re({token:e,providedIn:"root",factory:()=>null})}return e})();class Jf{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const k0=new Jf("16.2.12"),ld={};function np(e,t=null,i=null,r){const s=ip(e,t,i,r);return s.resolveInjectorInitializers(),s}function ip(e,t=null,i=null,r,s=new Set){const l=[i||qt,o0(e)];return r=r||("object"==typeof e?void 0:z(e)),new Pa(l,t||Sc(),r||null,s)}let Ls=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=Jn;static#t=this.NULL=new Hu;static create(i,r){if(Array.isArray(i))return np({name:""},r,i,"");{const s=i.name??"";return np({name:s},i.parent,i.providers,s)}}static#n=this.\u0275prov=Re({token:e,providedIn:"any",factory:()=>un(Nf)});static#r=this.__NG_ELEMENT_ID__=-1}return e})();function ud(e){return e.ngOriginalError}class Eo{constructor(){this._console=console}handleError(t){const i=this._findOriginalError(t);this._console.error("ERROR",t),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(t){let i=t&&ud(t);for(;i&&ud(i);)i=ud(i);return i||null}}function dd(e){return t=>{setTimeout(e,void 0,t)}}const Ys=class H0 extends n.B{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,i,r){let s=t,l=i||(()=>null),v=r;if(t&&"object"==typeof t){const X=t;s=X.next?.bind(X),l=X.error?.bind(X),v=X.complete?.bind(X)}this.__isAsync&&(l=dd(l),s&&(s=dd(s)),v&&(v=dd(v)));const O=super.subscribe({next:s,error:l,complete:v});return t instanceof y.yU&&t.add(O),O}};function sp(...e){}class Or{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ys(!1),this.onMicrotaskEmpty=new Ys(!1),this.onStable=new Ys(!1),this.onError=new Ys(!1),typeof Zone>"u")throw new m(908,!1);Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!r&&i,s.shouldCoalesceRunChangeDetection=r,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function z0(){const e="function"==typeof vt.requestAnimationFrame;let t=vt[e?"requestAnimationFrame":"setTimeout"],i=vt[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&i){const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);const s=i[Zone.__symbol__("OriginalDelegate")];s&&(i=s)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function K0(e){const t=()=>{!function G0(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(vt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,fd(e),e.isCheckStableRunning=!0,hd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),fd(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,r,s,l,v,O)=>{if(function Y0(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(O))return i.invokeTask(s,l,v,O);try{return op(e),i.invokeTask(s,l,v,O)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===l.type||e.shouldCoalesceRunChangeDetection)&&t(),ap(e)}},onInvoke:(i,r,s,l,v,O,X)=>{try{return op(e),i.invoke(s,l,v,O,X)}finally{e.shouldCoalesceRunChangeDetection&&t(),ap(e)}},onHasTask:(i,r,s,l)=>{i.hasTask(s,l),r===s&&("microTask"==l.change?(e._hasPendingMicrotasks=l.microTask,fd(e),hd(e)):"macroTask"==l.change&&(e.hasPendingMacrotasks=l.macroTask))},onHandleError:(i,r,s,l)=>(i.handleError(s,l),e.runOutsideAngular(()=>e.onError.emit(l)),!1)})}(s)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Or.isInAngularZone())throw new m(909,!1)}static assertNotInAngularZone(){if(Or.isInAngularZone())throw new m(909,!1)}run(t,i,r){return this._inner.run(t,i,r)}runTask(t,i,r,s){const l=this._inner,v=l.scheduleEventTask("NgZoneEvent: "+s,t,W0,sp,sp);try{return l.runTask(v,i,r)}finally{l.cancelTask(v)}}runGuarded(t,i,r){return this._inner.runGuarded(t,i,r)}runOutsideAngular(t){return this._outer.run(t)}}const W0={};function hd(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function fd(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function op(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ap(e){e._nesting--,hd(e)}class X0{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ys,this.onMicrotaskEmpty=new Ys,this.onStable=new Ys,this.onError=new Ys}run(t,i,r){return t.apply(i,r)}runGuarded(t,i,r){return t.apply(i,r)}runOutsideAngular(t){return t()}runTask(t,i,r,s){return t.apply(i,r)}}const lp=new Be("",{providedIn:"root",factory:cp});function cp(){const e=dn(Or);let t=!0;const i=new a.c(s=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{s.next(t),s.complete()})}),r=new a.c(s=>{let l;e.runOutsideAngular(()=>{l=e.onStable.subscribe(()=>{Or.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,s.next(!0))})})});const v=e.onUnstable.subscribe(()=>{Or.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{s.next(!1)}))});return()=>{l.unsubscribe(),v.unsubscribe()}});return(0,Q.h)(i,r.pipe((0,h.u)()))}function co(e){return e instanceof Function?e():e}let pd=(()=>{class e{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=Re({token:e,providedIn:"root",factory:()=>new e})}return e})();function Il(e){for(;e;){e[En]|=64;const t=Cl(e);if(ws(e)&&!t)return e;e=t}return null}const pp=new Be("",{providedIn:"root",factory:()=>!1});let Rc=null;function yp(e,t){return e[t]??bp()}function _p(e,t){const i=bp();i.producerNode?.length&&(e[t]=Rc,i.lView=e,Rc=Cp())}const sC={...eo,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{Il(e.lView)},lView:null};function Cp(){return Object.create(sC)}function bp(){return Rc??=Cp(),Rc}const Gn={};function Ep(e){Ap(di(),Ht(),mr()+e,!1)}function Ap(e,t,i,r){if(!r)if(3==(3&t[En])){const l=e.preOrderCheckHooks;null!==l&&pa(t,l,i)}else{const l=e.preOrderHooks;null!==l&&fl(t,l,0,i)}Ws(i)}function ka(e,t=Ut.Default){const i=Ht();return null===i?un(e,t):Rn(Qi(),i,k(e),t)}function Dp(){throw new Error("invalid")}function Lc(e,t,i,r,s,l,v,O,X,me,xe){const ze=t.blueprint.slice();return ze[gi]=s,ze[En]=140|r,(null!==me||e&&2048&e[En])&&(ze[En]|=2048),No(ze),ze[li]=ze[pr]=e,ze[bi]=i,ze[wr]=v||e&&e[wr],ze[yn]=O||e&&e[yn],ze[Ri]=X||e&&e[Ri]||null,ze[Oi]=l,ze[_r]=function r_(){return i_++}(),ze[ar]=xe,ze[Ss]=me,ze[Wn]=2==t.type?e[Wn]:ze,ze}function Fa(e,t,i,r,s){let l=e.data[t];if(null===l)l=function gd(e,t,i,r,s){const l=jo(),v=bo(),X=e.data[t]=function fC(e,t,i,r,s,l){let v=t?t.injectorIndex:-1,O=0;return $s()&&(O|=128),{type:i,index:r,insertBeforeIndex:null,injectorIndex:v,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:O,providerIndexes:0,value:s,attrs:l,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,v?l:l&&l.parent,i,t,r,s);return null===e.firstChild&&(e.firstChild=X),null!==l&&(v?null==l.child&&null!==X.parent&&(l.child=X):null===l.next&&(l.next=X,X.prev=l)),X}(e,t,i,r,s),function ee(){return On.lFrame.inI18n}()&&(l.flags|=32);else if(64&l.type){l.type=i,l.value=r,l.attrs=s;const v=function Is(){const e=On.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();l.injectorIndex=null===v?-1:v.injectorIndex}return Kr(l,!0),l}function xl(e,t,i,r){if(0===i)return-1;const s=t.length;for(let l=0;l<i;l++)t.push(r),e.blueprint.push(r),e.data.push(null);return s}function Sp(e,t,i,r,s){const l=yp(t,Ai),v=mr(),O=2&r;try{Ws(-1),O&&t.length>Tn&&Ap(e,t,Tn,!1),Xi(O?2:0,s);const me=O?l:null,xe=to(me);try{null!==me&&(me.dirty=!1),i(r,s)}finally{go(me,xe)}}finally{O&&null===t[Ai]&&_p(t,Ai),Ws(v),Xi(O?3:1,s)}}function md(e,t,i){if(zi(t)){const r=Er(null);try{const l=t.directiveEnd;for(let v=t.directiveStart;v<l;v++){const O=e.data[v];O.contentQueries&&O.contentQueries(1,i[v],v)}}finally{Er(r)}}}function vd(e,t,i){Bo()&&(function CC(e,t,i,r){const s=i.directiveStart,l=i.directiveEnd;cr(i)&&function TC(e,t,i){const r=Mr(t,e),s=wp(i);let v=16;i.signals?v=4096:i.onPush&&(v=64);const O=kc(e,Lc(e,s,null,v,r,t,null,e[wr].rendererFactory.createRenderer(r,i),null,null,null));e[t.index]=O}(t,i,e.data[s+i.componentOffset]),e.firstCreatePass||Qr(i,t),jr(r,t);const v=i.initialInputs;for(let O=s;O<l;O++){const X=e.data[O],me=ir(t,e,O,i);jr(me,t),null!==v&&PC(0,O-s,me,X,0,v),Cr(X)&&(Ur(i.index,t)[bi]=ir(t,e,O,i))}}(e,t,i,Mr(i,t)),64==(64&i.flags)&&xp(e,t,i))}function yd(e,t,i=Mr){const r=t.localNames;if(null!==r){let s=t.index+1;for(let l=0;l<r.length;l+=2){const v=r[l+1],O=-1===v?i(t,e):e[v];e[s++]=O}}}function wp(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=_d(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function _d(e,t,i,r,s,l,v,O,X,me,xe){const ze=Tn+r,dt=ze+s,bt=function aC(e,t){const i=[];for(let r=0;r<t;r++)i.push(r<e?null:Gn);return i}(ze,dt),Ft="function"==typeof me?me():me;return bt[tn]={type:e,blueprint:bt,template:i,queries:null,viewQuery:O,declTNode:t,data:bt.slice().fill(null,ze),bindingStartIndex:ze,expandoStartIndex:dt,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof l?l():l,pipeRegistry:"function"==typeof v?v():v,firstChild:null,schemas:X,consts:Ft,incompleteFirstPass:!1,ssrId:xe}}let Tp=e=>null;function Pp(e,t,i,r){for(let s in e)if(e.hasOwnProperty(s)){i=null===i?{}:i;const l=e[s];null===r?Mp(i,t,s,l):r.hasOwnProperty(s)&&Mp(i,t,r[s],l)}return i}function Mp(e,t,i,r){e.hasOwnProperty(i)?e[i].push(t,r):e[i]=[t,r]}function ys(e,t,i,r,s,l,v,O){const X=Mr(t,i);let xe,me=t.inputs;!O&&null!=me&&(xe=me[r])?(Dd(e,i,xe,r,s),cr(t)&&function mC(e,t){const i=Ur(t,e);16&i[En]||(i[En]|=64)}(i,t.index)):3&t.type&&(r=function gC(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),s=null!=v?v(s,t.value||"",r):s,l.setProperty(X,r,s))}function Cd(e,t,i,r){if(Bo()){const s=null===r?null:{"":-1},l=function EC(e,t){const i=e.directiveRegistry;let r=null,s=null;if(i)for(let l=0;l<i.length;l++){const v=i[l];if(Se(t,v.selectors,!1))if(r||(r=[]),Cr(v))if(null!==v.findHostDirectiveDefs){const O=[];s=s||new Map,v.findHostDirectiveDefs(v,O,s),r.unshift(...O,v),bd(e,t,O.length)}else r.unshift(v),bd(e,t,0);else s=s||new Map,v.findHostDirectiveDefs?.(v,r,s),r.push(v)}return null===r?null:[r,s]}(e,i);let v,O;null===l?v=O=null:[v,O]=l,null!==v&&Ip(e,t,i,v,s,O),s&&function AC(e,t,i){if(t){const r=e.localNames=[];for(let s=0;s<t.length;s+=2){const l=i[t[s+1]];if(null==l)throw new m(-301,!1);r.push(t[s],l)}}}(i,r,s)}i.mergedAttrs=Xn(i.mergedAttrs,i.attrs)}function Ip(e,t,i,r,s,l){for(let me=0;me<r.length;me++)Ho(Qr(i,t),e,r[me].type);!function SC(e,t,i){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+i,e.providerIndexes=t}(i,e.data.length,r.length);for(let me=0;me<r.length;me++){const xe=r[me];xe.providersResolver&&xe.providersResolver(xe)}let v=!1,O=!1,X=xl(e,t,r.length,null);for(let me=0;me<r.length;me++){const xe=r[me];i.mergedAttrs=Xn(i.mergedAttrs,xe.hostAttrs),wC(e,i,t,X,xe),DC(X,xe,s),null!==xe.contentQueries&&(i.flags|=4),(null!==xe.hostBindings||null!==xe.hostAttrs||0!==xe.hostVars)&&(i.flags|=64);const ze=xe.type.prototype;!v&&(ze.ngOnChanges||ze.ngOnInit||ze.ngDoCheck)&&((e.preOrderHooks??=[]).push(i.index),v=!0),!O&&(ze.ngOnChanges||ze.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(i.index),O=!0),X++}!function pC(e,t,i){const s=t.directiveEnd,l=e.data,v=t.attrs,O=[];let X=null,me=null;for(let xe=t.directiveStart;xe<s;xe++){const ze=l[xe],dt=i?i.get(ze):null,Ft=dt?dt.outputs:null;X=Pp(ze.inputs,xe,X,dt?dt.inputs:null),me=Pp(ze.outputs,xe,me,Ft);const Qt=null===X||null===v||te(t)?null:MC(X,xe,v);O.push(Qt)}null!==X&&(X.hasOwnProperty("class")&&(t.flags|=8),X.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=O,t.inputs=X,t.outputs=me}(e,i,l)}function xp(e,t,i){const r=i.directiveStart,s=i.directiveEnd,l=i.index,v=function ye(){return On.lFrame.currentDirectiveIndex}();try{Ws(l);for(let O=r;O<s;O++){const X=e.data[O],me=t[O];Oe(O),(null!==X.hostBindings||0!==X.hostVars||null!==X.hostAttrs)&&bC(X,me)}}finally{Ws(-1),Oe(v)}}function bC(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function bd(e,t,i){t.componentOffset=i,(e.components??=[]).push(t.index)}function DC(e,t,i){if(i){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)i[t.exportAs[r]]=e;Cr(t)&&(i[""]=e)}}function wC(e,t,i,r,s){e.data[r]=s;const l=s.factory||(s.factory=Br(s.type)),v=new Ce(l,Cr(s),ka);e.blueprint[r]=v,i[r]=v,function yC(e,t,i,r,s){const l=s.hostBindings;if(l){let v=e.hostBindingOpCodes;null===v&&(v=e.hostBindingOpCodes=[]);const O=~t.index;(function _C(e){let t=e.length;for(;t>0;){const i=e[--t];if("number"==typeof i&&i<0)return i}return 0})(v)!=O&&v.push(O),v.push(i,r,l)}}(e,t,r,xl(e,i,s.hostVars,Gn),s)}function Qs(e,t,i,r,s,l){const v=Mr(e,t);!function Ed(e,t,i,r,s,l,v){if(null==l)e.removeAttribute(t,s,i);else{const O=null==v?W(l):v(l,r||"",s);e.setAttribute(t,s,O,i)}}(t[yn],v,l,e.value,i,r,s)}function PC(e,t,i,r,s,l){const v=l[t];if(null!==v)for(let O=0;O<v.length;)Op(r,i,v[O++],v[O++],v[O++])}function Op(e,t,i,r,s){const l=Er(null);try{const v=e.inputTransforms;null!==v&&v.hasOwnProperty(r)&&(s=v[r].call(t,s)),null!==e.setInput?e.setInput(t,s,i,r):t[r]=s}finally{Er(l)}}function MC(e,t,i){let r=null,s=0;for(;s<i.length;){const l=i[s];if(0!==l)if(5!==l){if("number"==typeof l)break;if(e.hasOwnProperty(l)){null===r&&(r=[]);const v=e[l];for(let O=0;O<v.length;O+=2)if(v[O]===t){r.push(l,v[O+1],i[s+1]);break}}s+=2}else s+=2;else s+=4}return r}function Rp(e,t,i,r){return[e,!0,!1,t,null,0,r,i,null,null,null]}function Lp(e,t){const i=e.contentQueries;if(null!==i)for(let r=0;r<i.length;r+=2){const l=i[r+1];if(-1!==l){const v=e.data[l];St(i[r]),v.contentQueries(2,t[l],l)}}}function kc(e,t){return e[sr]?e[Wr][Pi]=t:e[sr]=t,e[Wr]=t,t}function Ad(e,t,i){St(0);const r=Er(null);try{t(e,i)}finally{Er(r)}}function kp(e){return e[yr]||(e[yr]=[])}function Fp(e){return e.cleanup||(e.cleanup=[])}function Bp(e,t){const i=e[Ri],r=i?i.get(Eo,null):null;r&&r.handleError(t)}function Dd(e,t,i,r,s){for(let l=0;l<i.length;){const v=i[l++],O=i[l++];Op(e.data[v],t[v],r,O,s)}}function uo(e,t,i){const r=bs(t,e);!function df(e,t,i){e.setValue(t,i)}(e[yn],r,i)}function IC(e,t){const i=Ur(t,e),r=i[tn];!function xC(e,t){for(let i=t.length;i<e.blueprint.length;i++)t.push(e.blueprint[i])}(r,i);const s=i[gi];null!==s&&null===i[ar]&&(i[ar]=sd(s,i[Ri])),Sd(r,i,i[bi])}function Sd(e,t,i){Ei(t);try{const r=e.viewQuery;null!==r&&Ad(1,r,i);const s=e.template;null!==s&&Sp(e,t,s,1,i),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Lp(e,t),e.staticViewQueries&&Ad(2,e.viewQuery,i);const l=e.components;null!==l&&function OC(e,t){for(let i=0;i<t.length;i++)IC(e,t[i])}(t,l)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[En]&=-5,so()}}let Up=(()=>{class e{constructor(){this.all=new Set,this.queue=new Map}create(i,r,s){const l=typeof Zone>"u"?null:Zone.current,v=function Nt(e,t,i){const r=Object.create(mi);i&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;const s=v=>{r.cleanupFn=v};return r.ref={notify:()=>po(r),run:()=>{if(r.dirty=!1,r.hasRun&&!ia(r))return;r.hasRun=!0;const v=to(r);try{r.cleanupFn(),r.cleanupFn=on,r.fn(s)}finally{go(r,v)}},cleanup:()=>r.cleanupFn()},r.ref}(i,me=>{this.all.has(me)&&this.queue.set(me,l)},s);let O;this.all.add(v),v.notify();const X=()=>{v.cleanup(),O?.(),this.all.delete(v),this.queue.delete(v)};return O=r?.onDestroy(X),{destroy:X}}flush(){if(0!==this.queue.size)for(const[i,r]of this.queue)this.queue.delete(i),r?r.run(()=>i.run()):i.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=Re({token:e,providedIn:"root",factory:()=>new e})}return e})();function Fc(e,t,i){let r=i?e.styles:null,s=i?e.classes:null,l=0;if(null!==t)for(let v=0;v<t.length;v++){const O=t[v];"number"==typeof O?l=O:1==l?s=d(s,O):2==l&&(r=d(r,O+": "+t[++v]+";"))}i?e.styles=r:e.stylesWithoutHost=r,i?e.classes=s:e.classesWithoutHost=s}function Ol(e,t,i,r,s=!1){for(;null!==i;){const l=t[i.index];null!==l&&r.push(Mi(l)),$i(l)&&Vp(l,r);const v=i.type;if(8&v)Ol(e,t,i.child,r);else if(32&v){const O=Tu(i,t);let X;for(;X=O();)r.push(X)}else if(16&v){const O=Cf(t,i);if(Array.isArray(O))r.push(...O);else{const X=Cl(t[Wn]);Ol(X[tn],X,O,r,!0)}}i=s?i.projectionNext:i.next}return r}function Vp(e,t){for(let i=Bi;i<e.length;i++){const r=e[i],s=r[tn].firstChild;null!==s&&Ol(r[tn],r,s,t)}e[Hi]!==e[gi]&&t.push(e[Hi])}function Nc(e,t,i,r=!0){const s=t[wr],l=s.rendererFactory,v=s.afterRenderEventManager;l.begin?.(),v?.begin();try{jp(e,t,e.template,i)}catch(X){throw r&&Bp(t,X),X}finally{l.end?.(),s.effectManager?.flush(),v?.end()}}function jp(e,t,i,r){const s=t[En];if(256!=(256&s)){t[wr].effectManager?.flush(),Ei(t);try{No(t),function cl(e){return On.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==i&&Sp(e,t,i,2,r);const v=3==(3&s);if(v){const me=e.preOrderCheckHooks;null!==me&&pa(t,me,null)}else{const me=e.preOrderHooks;null!==me&&fl(t,me,0,null),V(t,0)}if(function kC(e){for(let t=lf(e);null!==t;t=cf(t)){if(!t[Ni])continue;const i=t[lr];for(let r=0;r<i.length;r++){gs(i[r])}}}(t),$p(t,2),null!==e.contentQueries&&Lp(e,t),v){const me=e.contentCheckHooks;null!==me&&pa(t,me)}else{const me=e.contentHooks;null!==me&&fl(t,me,1),V(t,1)}!function oC(e,t){const i=e.hostBindingOpCodes;if(null===i)return;const r=yp(t,tr);try{for(let s=0;s<i.length;s++){const l=i[s];if(l<0)Ws(~l);else{const v=l,O=i[++s],X=i[++s];J(O,v),r.dirty=!1;const me=to(r);try{X(2,t[v])}finally{go(r,me)}}}}finally{null===t[tr]&&_p(t,tr),Ws(-1)}}(e,t);const O=e.components;null!==O&&zp(t,O,0);const X=e.viewQuery;if(null!==X&&Ad(2,X,r),v){const me=e.viewCheckHooks;null!==me&&pa(t,me)}else{const me=e.viewHooks;null!==me&&fl(t,me,2),V(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[En]&=-73,aa(t)}finally{so()}}}function $p(e,t){for(let i=lf(e);null!==i;i=cf(i))for(let r=Bi;r<i.length;r++)Hp(i[r],t)}function FC(e,t,i){Hp(Ur(t,e),i)}function Hp(e,t){if(!function ko(e){return 128==(128&e[En])}(e))return;const i=e[tn],r=e[En];if(80&r&&0===t||1024&r||2===t)jp(i,e,i.template,e[bi]);else if(e[ji]>0){$p(e,1);const s=i.components;null!==s&&zp(e,s,1)}}function zp(e,t,i){for(let r=0;r<t.length;r++)FC(e,t[r],i)}class Rl{get rootNodes(){const t=this._lView,i=t[tn];return Ol(i,t,i.firstChild,[])}constructor(t,i){this._lView=t,this._cdRefInjectingView=i,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[bi]}set context(t){this._lView[bi]=t}get destroyed(){return 256==(256&this._lView[En])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[li];if($i(t)){const i=t[8],r=i?i.indexOf(this):-1;r>-1&&(gc(t,r),nc(i,r))}this._attachedToViewContainer=!1}Mu(this._lView[tn],this._lView)}onDestroy(t){!function _o(e,t){if(256==(256&e[En]))throw new m(911,!1);null===e[Pr]&&(e[Pr]=[]),e[Pr].push(t)}(this._lView,t)}markForCheck(){Il(this._cdRefInjectingView||this._lView)}detach(){this._lView[En]&=-129}reattach(){this._lView[En]|=128}detectChanges(){Nc(this._lView[tn],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new m(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function y_(e,t){El(e,t,t[yn],2,null,null)}(this._lView[tn],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new m(902,!1);this._appRef=t}}class NC extends Rl{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Nc(t[tn],t,t[bi],!1)}checkNoChanges(){}get context(){return null}}class Wp extends Pl{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const i=fn(t);return new Ll(i,this.ngModule)}}function Gp(e){const t=[];for(let i in e)e.hasOwnProperty(i)&&t.push({propName:e[i],templateName:i});return t}class UC{constructor(t,i){this.injector=t,this.parentInjector=i}get(t,i,r){r=ri(r);const s=this.injector.get(t,ld,r);return s!==ld||i===ld?s:this.parentInjector.get(t,i,r)}}class Ll extends Yf{get inputs(){const t=this.componentDef,i=t.inputTransforms,r=Gp(t.inputs);if(null!==i)for(const s of r)i.hasOwnProperty(s.propName)&&(s.transform=i[s.propName]);return r}get outputs(){return Gp(this.componentDef.outputs)}constructor(t,i){super(),this.componentDef=t,this.ngModule=i,this.componentType=t.type,this.selector=function Zt(e){return e.map(Kt).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!i}create(t,i,r,s){let l=(s=s||this.ngModule)instanceof Xs?s:s?.injector;l&&null!==this.componentDef.getStandaloneInjector&&(l=this.componentDef.getStandaloneInjector(l)||l);const v=l?new UC(t,l):t,O=v.get(Zf,null);if(null===O)throw new m(407,!1);const ze={rendererFactory:O,sanitizer:v.get(L0,null),effectManager:v.get(Up,null),afterRenderEventManager:v.get(pd,null)},dt=O.createRenderer(null,this.componentDef),bt=this.componentDef.selectors[0][0]||"div",Ft=r?function lC(e,t,i,r){const l=r.get(pp,!1)||i===jt.ShadowDom,v=e.selectRootElement(t,l);return function cC(e){Tp(e)}(v),v}(dt,r,this.componentDef.encapsulation,v):pc(dt,bt,function BC(e){const t=e.toLowerCase();return"svg"===t?Gi:"math"===t?"math":null}(bt)),Cn=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let Gt=null;null!==Ft&&(Gt=sd(Ft,v,!0));const $n=_d(0,null,null,1,0,null,null,null,null,null,null),ei=Lc(null,$n,null,Cn,null,null,ze,dt,v,null,Gt);let xi,ls;Ei(ei);try{const ho=this.componentDef;let qa,Fh=null;ho.findHostDirectiveDefs?(qa=[],Fh=new Map,ho.findHostDirectiveDefs(ho,qa,Fh),qa.push(ho)):qa=[ho];const HS=function jC(e,t){const i=e[tn],r=Tn;return e[r]=t,Fa(i,r,2,"#host",null)}(ei,Ft),zS=function $C(e,t,i,r,s,l,v){const O=s[tn];!function HC(e,t,i,r){for(const s of e)t.mergedAttrs=Xn(t.mergedAttrs,s.hostAttrs);null!==t.mergedAttrs&&(Fc(t,t.mergedAttrs,!0),null!==i&&Df(r,i,t))}(r,e,t,v);let X=null;null!==t&&(X=sd(t,s[Ri]));const me=l.rendererFactory.createRenderer(t,i);let xe=16;i.signals?xe=4096:i.onPush&&(xe=64);const ze=Lc(s,wp(i),null,xe,s[e.index],e,l,me,null,null,X);return O.firstCreatePass&&bd(O,e,r.length-1),kc(s,ze),s[e.index]=ze}(HS,Ft,ho,qa,ei,ze,dt);ls=Vs($n,Tn),Ft&&function WC(e,t,i,r){if(r)Ci(e,i,["ng-version",k0.full]);else{const{attrs:s,classes:l}=function we(e){const t=[],i=[];let r=1,s=2;for(;r<e.length;){let l=e[r];if("string"==typeof l)2===s?""!==l&&t.push(l,e[++r]):8===s&&i.push(l);else{if(!Pe(s))break;s=l}r++}return{attrs:t,classes:i}}(t.selectors[0]);s&&Ci(e,i,s),l&&l.length>0&&Af(e,i,l.join(" "))}}(dt,ho,Ft,r),void 0!==i&&function GC(e,t,i){const r=e.projection=[];for(let s=0;s<t.length;s++){const l=i[s];r.push(null!=l?Array.from(l):null)}}(ls,this.ngContentSelectors,i),xi=function zC(e,t,i,r,s,l){const v=Qi(),O=s[tn],X=Mr(v,s);Ip(O,s,v,i,null,r);for(let xe=0;xe<i.length;xe++)jr(ir(s,O,v.directiveStart+xe,v),s);xp(O,s,v),X&&jr(X,s);const me=ir(s,O,v.directiveStart+v.componentOffset,v);if(e[bi]=s[bi]=me,null!==l)for(const xe of l)xe(me,t);return md(O,v,e),me}(zS,ho,qa,Fh,ei,[KC]),Sd($n,ei,null)}finally{so()}return new VC(this.componentType,xi,Oa(ls,ei),ei,ls)}}class VC extends T0{constructor(t,i,r,s,l){super(),this.location=r,this._rootLView=s,this._tNode=l,this.previousInputValues=null,this.instance=i,this.hostView=this.changeDetectorRef=new NC(s),this.componentType=t}setInput(t,i){const r=this._tNode.inputs;let s;if(null!==r&&(s=r[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),i))return;const l=this._rootLView;Dd(l[tn],l,s,t,i),this.previousInputValues.set(t,i),Il(Ur(this._tNode.index,l))}}get injector(){return new qi(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function KC(){const e=Qi();fa(Ht()[tn],e)}function wd(e){let t=function Kp(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),i=!0;const r=[e];for(;t;){let s;if(Cr(e))s=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new m(903,!1);s=t.\u0275dir}if(s){if(i){r.push(s);const v=e;v.inputs=Bc(e.inputs),v.inputTransforms=Bc(e.inputTransforms),v.declaredInputs=Bc(e.declaredInputs),v.outputs=Bc(e.outputs);const O=s.hostBindings;O&&ZC(e,O);const X=s.viewQuery,me=s.contentQueries;if(X&&YC(e,X),me&&QC(e,me),E(e.inputs,s.inputs),E(e.declaredInputs,s.declaredInputs),E(e.outputs,s.outputs),null!==s.inputTransforms&&(null===v.inputTransforms&&(v.inputTransforms={}),E(v.inputTransforms,s.inputTransforms)),Cr(s)&&s.data.animation){const xe=e.data;xe.animation=(xe.animation||[]).concat(s.data.animation)}}const l=s.features;if(l)for(let v=0;v<l.length;v++){const O=l[v];O&&O.ngInherit&&O(e),O===wd&&(i=!1)}}t=Object.getPrototypeOf(t)}!function XC(e){let t=0,i=null;for(let r=e.length-1;r>=0;r--){const s=e[r];s.hostVars=t+=s.hostVars,s.hostAttrs=Xn(s.hostAttrs,i=Xn(i,s.hostAttrs))}}(r)}function Bc(e){return e===Sn?{}:e===qt?[]:e}function YC(e,t){const i=e.viewQuery;e.viewQuery=i?(r,s)=>{t(r,s),i(r,s)}:t}function QC(e,t){const i=e.contentQueries;e.contentQueries=i?(r,s,l)=>{t(r,s,l),i(r,s,l)}:t}function ZC(e,t){const i=e.hostBindings;e.hostBindings=i?(r,s)=>{t(r,s),i(r,s)}:t}function Zp(e){const t=e.inputConfig,i={};for(const r in t)if(t.hasOwnProperty(r)){const s=t[r];Array.isArray(s)&&s[2]&&(i[r]=s[2])}e.inputTransforms=i}function Uc(e){return!!Td(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Td(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Zs(e,t,i){return e[t]=i}function $r(e,t,i){return!Object.is(e[t],i)&&(e[t]=i,!0)}function Zo(e,t,i,r){const s=$r(e,t,i);return $r(e,t+1,r)||s}function Vc(e,t,i,r,s){const l=Zo(e,t,i,r);return $r(e,t+2,s)||l}function Pd(e,t,i,r){const s=Ht();return $r(s,Hs(),t)&&(di(),Qs(Ui(),s,e,t,i,r)),Pd}function Ba(e,t,i,r){return $r(e,Hs(),i)?t+W(i)+r:Gn}function Ua(e,t,i,r,s,l){const O=Zo(e,Yr(),i,s);return B(2),O?t+W(i)+r+W(s)+l:Gn}function Va(e,t,i,r,s,l,v,O){const me=Vc(e,Yr(),i,s,v);return B(3),me?t+W(i)+r+W(s)+l+W(v)+O:Gn}function ja(e,t,i,r,s,l,v,O,X,me){const ze=function Ds(e,t,i,r,s,l){const v=Zo(e,t,i,r);return Zo(e,t+2,s,l)||v}(e,Yr(),i,s,v,X);return B(4),ze?t+W(i)+r+W(s)+l+W(v)+O+W(X)+me:Gn}function Md(e,t,i,r,s,l,v,O){const X=Ht(),me=Ua(X,t,i,r,s,l);return me!==Gn&&Qs(Ui(),X,e,me,v,O),Md}function cg(e,t,i,r,s,l,v,O){const X=Ht(),me=di(),xe=e+Tn,ze=me.firstCreatePass?function Eb(e,t,i,r,s,l,v,O,X){const me=t.consts,xe=Fa(t,e,4,v||null,Ms(me,O));Cd(t,i,xe,Ms(me,X)),fa(t,xe);const ze=xe.tView=_d(2,xe,r,s,l,t.directiveRegistry,t.pipeRegistry,null,t.schemas,me,null);return null!==t.queries&&(t.queries.template(t,xe),ze.queries=t.queries.embeddedTView(xe)),xe}(xe,me,X,t,i,r,s,l,v):me.data[xe];Kr(ze,!1);const dt=ug(me,X,ze,e);ha()&&vc(me,X,dt,ze),jr(dt,X),kc(X,X[xe]=Rp(dt,X,dt,ze)),Fr(ze)&&vd(me,X,ze),null!=v&&yd(X,ze,O)}let ug=function dg(e,t,i,r){return Gs(!0),t[yn].createComment("")};function hg(e){return js(function Jl(){return On.lFrame.contextLView}(),Tn+e)}function kd(e,t,i){const r=Ht();return $r(r,Hs(),t)&&ys(di(),Ui(),r,e,t,r[yn],i,!1),kd}function Fd(e,t,i,r,s){const v=s?"class":"style";Dd(e,i,t.inputs[v],v,r)}function zc(e,t,i,r){const s=Ht(),l=di(),v=Tn+e,O=s[yn],X=l.firstCreatePass?function wb(e,t,i,r,s,l){const v=t.consts,X=Fa(t,e,2,r,Ms(v,s));return Cd(t,i,X,Ms(v,l)),null!==X.attrs&&Fc(X,X.attrs,!1),null!==X.mergedAttrs&&Fc(X,X.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,X),X}(v,l,s,t,i,r):l.data[v],me=fg(l,s,X,O,t,e);s[v]=me;const xe=Fr(X);return Kr(X,!0),Df(O,me,X),32!=(32&X.flags)&&ha()&&vc(l,s,me,X),0===function rl(){return On.lFrame.elementDepthCount}()&&jr(me,s),function sl(){On.lFrame.elementDepthCount++}(),xe&&(vd(l,s,X),md(l,X,s)),null!==r&&yd(s,X),zc}function Wc(){let e=Qi();bo()?Xr():(e=e.parent,Kr(e,!1));const t=e;(function ol(e){return On.skipHydrationRootTNode===e})(t)&&function fu(){On.skipHydrationRootTNode=null}(),function Zl(){On.lFrame.elementDepthCount--}();const i=di();return i.firstCreatePass&&(fa(i,e),zi(e)&&i.queries.elementEnd(e)),null!=t.classesWithoutHost&&function en(e){return 0!=(8&e.flags)}(t)&&Fd(i,t,Ht(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function rn(e){return 0!=(16&e.flags)}(t)&&Fd(i,t,Ht(),t.stylesWithoutHost,!1),Wc}function Nd(e,t,i,r){return zc(e,t,i,r),Wc(),Nd}let fg=(e,t,i,r,s,l)=>(Gs(!0),pc(r,s,function tc(){return On.lFrame.currentNamespace}()));function Gc(e,t,i){const r=Ht(),s=di(),l=e+Tn,v=s.firstCreatePass?function Mb(e,t,i,r,s){const l=t.consts,v=Ms(l,r),O=Fa(t,e,8,"ng-container",v);return null!==v&&Fc(O,v,!0),Cd(t,i,O,Ms(l,s)),null!==t.queries&&t.queries.elementStart(t,O),O}(l,s,r,t,i):s.data[l];Kr(v,!0);const O=pg(s,r,v,e);return r[l]=O,ha()&&vc(s,r,O,v),jr(O,r),Fr(v)&&(vd(s,r,v),md(s,v,r)),null!=i&&yd(r,v),Gc}function Kc(){let e=Qi();const t=di();return bo()?Xr():(e=e.parent,Kr(e,!1)),t.firstCreatePass&&(fa(t,e),zi(e)&&t.queries.elementEnd(e)),Kc}function Bd(e,t,i){return Gc(e,t,i),Kc(),Bd}let pg=(e,t,i,r)=>(Gs(!0),Pu(t[yn],""));function gg(){return Ht()}function Ud(e){return!!e&&"function"==typeof e.then}function mg(e){return!!e&&"function"==typeof e.subscribe}function Vd(e,t,i,r){const s=Ht(),l=di(),v=Qi();return function yg(e,t,i,r,s,l,v){const O=Fr(r),me=e.firstCreatePass&&Fp(e),xe=t[bi],ze=kp(t);let dt=!0;if(3&r.type||v){const Qt=Mr(r,t),cn=v?v(Qt):Qt,Cn=ze.length,Gt=v?ei=>v(Mi(ei[r.index])):r.index;let $n=null;if(!v&&O&&($n=function Ob(e,t,i,r){const s=e.cleanup;if(null!=s)for(let l=0;l<s.length-1;l+=2){const v=s[l];if(v===i&&s[l+1]===r){const O=t[yr],X=s[l+2];return O.length>X?O[X]:null}"string"==typeof v&&(l+=2)}return null}(e,t,s,r.index)),null!==$n)($n.__ngLastListenerFn__||$n).__ngNextListenerFn__=l,$n.__ngLastListenerFn__=l,dt=!1;else{l=Cg(r,t,xe,l,!1);const ei=i.listen(cn,s,l);ze.push(l,ei),me&&me.push(s,Gt,Cn,Cn+1)}}else l=Cg(r,t,xe,l,!1);const bt=r.outputs;let Ft;if(dt&&null!==bt&&(Ft=bt[s])){const Qt=Ft.length;if(Qt)for(let cn=0;cn<Qt;cn+=2){const xi=t[Ft[cn]][Ft[cn+1]].subscribe(l),ls=ze.length;ze.push(l,xi),me&&me.push(s,r.index,ls,-(ls+1))}}}(l,s,s[yn],v,e,t,r),Vd}function _g(e,t,i,r){try{return Xi(6,t,i),!1!==i(r)}catch(s){return Bp(e,s),!1}finally{Xi(7,t,i)}}function Cg(e,t,i,r,s){return function l(v){if(v===Function)return r;Il(e.componentOffset>-1?Ur(e.index,t):t);let X=_g(t,i,r,v),me=l.__ngNextListenerFn__;for(;me;)X=_g(t,i,me,v)&&X,me=me.__ngNextListenerFn__;return s&&!1===X&&v.preventDefault(),X}}function bg(e=1){return function ns(e){return(On.lFrame.contextLView=function ul(e,t){for(;e>0;)t=t[pr],e--;return t}(e,On.lFrame.contextLView))[bi]}(e)}function Rb(e,t){let i=null;const r=function Ue(e){const t=e.attrs;if(null!=t){const i=t.indexOf(5);if(!(1&i))return t[i+1]}return null}(e);for(let s=0;s<t.length;s++){const l=t[s];if("*"!==l){if(null===r?Se(e,l,!0):pt(r,l))return s}else i=s}return i}function Eg(e){const t=Ht()[Wn][Oi];if(!t.projection){const r=t.projection=vl(e?e.length:1,null),s=r.slice();let l=t.child;for(;null!==l;){const v=e?Rb(l,e):0;null!==v&&(s[v]?s[v].projectionNext=l:r[v]=l,s[v]=l),l=l.next}}}function Ag(e,t=0,i){const r=Ht(),s=di(),l=Fa(s,Tn+e,16,null,i||null);null===l.projection&&(l.projection=t),Xr(),(!r[ar]||$s())&&32!=(32&l.flags)&&function w_(e,t,i){Ef(t[yn],0,t,i,xu(e,i,t),mf(i.parent||t[Oi],i,t))}(s,r,l)}function jd(e,t,i){return Xc(e,"",t,"",i),jd}function Xc(e,t,i,r,s){const l=Ht(),v=Ba(l,t,i,r);return v!==Gn&&ys(di(),Ui(),l,e,v,l[yn],s,!1),Xc}function $d(e,t,i,r,s,l,v){const O=Ht(),X=Ua(O,t,i,r,s,l);return X!==Gn&&ys(di(),Ui(),O,e,X,O[yn],v,!1),$d}function Hd(e,t,i,r,s,l,v,O,X){const me=Ht(),xe=Va(me,t,i,r,s,l,v,O);return xe!==Gn&&ys(di(),Ui(),me,e,xe,me[yn],X,!1),Hd}function Yc(e,t){return e<<17|t<<2}function Ao(e){return e>>17&32767}function zd(e){return 2|e}function Jo(e){return(131068&e)>>2}function Wd(e,t){return-131069&e|t<<2}function Gd(e){return 1|e}function Ig(e,t,i,r,s){const l=e[i+1],v=null===t;let O=r?Ao(l):Jo(l),X=!1;for(;0!==O&&(!1===X||v);){const xe=e[O+1];Ub(e[O],t)&&(X=!0,e[O+1]=r?Gd(xe):zd(xe)),O=r?Ao(xe):Jo(xe)}X&&(e[i+1]=r?zd(l):Gd(l))}function Ub(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&ba(e,t)>=0}const Sr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function xg(e){return e.substring(Sr.key,Sr.keyEnd)}function Vb(e){return e.substring(Sr.value,Sr.valueEnd)}function Og(e,t){const i=Sr.textEnd;return i===t?-1:(t=Sr.keyEnd=function Hb(e,t,i){for(;t<i&&e.charCodeAt(t)>32;)t++;return t}(e,Sr.key=t,i),Ga(e,t,i))}function Rg(e,t){const i=Sr.textEnd;let r=Sr.key=Ga(e,t,i);return i===r?-1:(r=Sr.keyEnd=function zb(e,t,i){let r;for(;t<i&&(45===(r=e.charCodeAt(t))||95===r||(-33&r)>=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,i),r=kg(e,r,i),r=Sr.value=Ga(e,r,i),r=Sr.valueEnd=function Wb(e,t,i){let r=-1,s=-1,l=-1,v=t,O=v;for(;v<i;){const X=e.charCodeAt(v++);if(59===X)return O;34===X||39===X?O=v=Fg(e,X,v,i):t===v-4&&85===l&&82===s&&76===r&&40===X?O=v=Fg(e,41,v,i):X>32&&(O=v),l=s,s=r,r=-33&X}return O}(e,r,i),kg(e,r,i))}function Lg(e){Sr.key=0,Sr.keyEnd=0,Sr.value=0,Sr.valueEnd=0,Sr.textEnd=e.length}function Ga(e,t,i){for(;t<i&&e.charCodeAt(t)<=32;)t++;return t}function kg(e,t,i,r){return(t=Ga(e,t,i))<i&&t++,t}function Fg(e,t,i,r){let s=-1,l=i;for(;l<r;){const v=e.charCodeAt(l++);if(v==t&&92!==s)return l;s=92==v&&92===s?0:v}throw new Error}function Kd(e,t,i){return ks(e,t,i,!1),Kd}function Xd(e,t){return ks(e,t,null,!0),Xd}function Gb(e,t){for(let i=function $b(e){return Lg(e),Rg(e,Ga(e,0,Sr.textEnd))}(t);i>=0;i=Rg(t,i))Vg(e,xg(t),Vb(t))}function Ng(e){Fs(Jb,qs,e,!0)}function qs(e,t){for(let i=function jb(e){return Lg(e),Og(e,Ga(e,0,Sr.textEnd))}(t);i>=0;i=Og(t,i))vs(e,xg(t),!0)}function ks(e,t,i,r){const s=Ht(),l=di(),v=B(2);l.firstUpdatePass&&Ug(l,e,v,r),t!==Gn&&$r(s,v,t)&&jg(l,l.data[mr()],s,s[yn],e,s[v+1]=function eE(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=z(ao(e)))),e}(t,i),r,v)}function Fs(e,t,i,r){const s=di(),l=B(2);s.firstUpdatePass&&Ug(s,null,l,r);const v=Ht();if(i!==Gn&&$r(v,l,i)){const O=s.data[mr()];if(Hg(O,r)&&!Bg(s,l)){let X=r?O.classesWithoutHost:O.stylesWithoutHost;null!==X&&(i=d(X,i||"")),Fd(s,O,v,i,r)}else!function qb(e,t,i,r,s,l,v,O){s===Gn&&(s=qt);let X=0,me=0,xe=0<s.length?s[0]:null,ze=0<l.length?l[0]:null;for(;null!==xe||null!==ze;){const dt=X<s.length?s[X+1]:void 0,bt=me<l.length?l[me+1]:void 0;let Qt,Ft=null;xe===ze?(X+=2,me+=2,dt!==bt&&(Ft=ze,Qt=bt)):null===ze||null!==xe&&xe<ze?(X+=2,Ft=xe):(me+=2,Ft=ze,Qt=bt),null!==Ft&&jg(e,t,i,r,Ft,Qt,v,O),xe=X<s.length?s[X]:null,ze=me<l.length?l[me]:null}}(s,O,v,v[yn],v[l+1],v[l+1]=function Zb(e,t,i){if(null==i||""===i)return qt;const r=[],s=ao(i);if(Array.isArray(s))for(let l=0;l<s.length;l++)e(r,s[l],!0);else if("object"==typeof s)for(const l in s)s.hasOwnProperty(l)&&e(r,l,s[l]);else"string"==typeof s&&t(r,s);return r}(e,t,i),r,l)}}function Bg(e,t){return t>=e.expandoStartIndex}function Ug(e,t,i,r){const s=e.data;if(null===s[i+1]){const l=s[mr()],v=Bg(e,i);Hg(l,r)&&null===t&&!v&&(t=!1),t=function Kb(e,t,i,r){const s=function Ye(e){const t=On.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let l=r?t.residualClasses:t.residualStyles;if(null===s)0===(r?t.classBindings:t.styleBindings)&&(i=Ul(i=Yd(null,e,t,i,r),t.attrs,r),l=null);else{const v=t.directiveStylingLast;if(-1===v||e[v]!==s)if(i=Yd(s,e,t,i,r),null===l){let X=function Xb(e,t,i){const r=i?t.classBindings:t.styleBindings;if(0!==Jo(r))return e[Ao(r)]}(e,t,r);void 0!==X&&Array.isArray(X)&&(X=Yd(null,e,t,X[1],r),X=Ul(X,t.attrs,r),function Yb(e,t,i,r){e[Ao(i?t.classBindings:t.styleBindings)]=r}(e,t,r,X))}else l=function Qb(e,t,i){let r;const s=t.directiveEnd;for(let l=1+t.directiveStylingLast;l<s;l++)r=Ul(r,e[l].hostAttrs,i);return Ul(r,t.attrs,i)}(e,t,r)}return void 0!==l&&(r?t.residualClasses=l:t.residualStyles=l),i}(s,l,t,r),function Nb(e,t,i,r,s,l){let v=l?t.classBindings:t.styleBindings,O=Ao(v),X=Jo(v);e[r]=i;let xe,me=!1;if(Array.isArray(i)?(xe=i[1],(null===xe||ba(i,xe)>0)&&(me=!0)):xe=i,s)if(0!==X){const dt=Ao(e[O+1]);e[r+1]=Yc(dt,O),0!==dt&&(e[dt+1]=Wd(e[dt+1],r)),e[O+1]=function kb(e,t){return 131071&e|t<<17}(e[O+1],r)}else e[r+1]=Yc(O,0),0!==O&&(e[O+1]=Wd(e[O+1],r)),O=r;else e[r+1]=Yc(X,0),0===O?O=r:e[X+1]=Wd(e[X+1],r),X=r;me&&(e[r+1]=zd(e[r+1])),Ig(e,xe,r,!0),Ig(e,xe,r,!1),function Bb(e,t,i,r,s){const l=s?e.residualClasses:e.residualStyles;null!=l&&"string"==typeof t&&ba(l,t)>=0&&(i[r+1]=Gd(i[r+1]))}(t,xe,e,r,l),v=Yc(O,X),l?t.classBindings=v:t.styleBindings=v}(s,l,t,i,v,r)}}function Yd(e,t,i,r,s){let l=null;const v=i.directiveEnd;let O=i.directiveStylingLast;for(-1===O?O=i.directiveStart:O++;O<v&&(l=t[O],r=Ul(r,l.hostAttrs,s),l!==e);)O++;return null!==e&&(i.directiveStylingLast=O),r}function Ul(e,t,i){const r=i?1:2;let s=-1;if(null!==t)for(let l=0;l<t.length;l++){const v=t[l];"number"==typeof v?s=v:s===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),vs(e,v,!!i||t[++l]))}return void 0===e?null:e}function Vg(e,t,i){vs(e,t,ao(i))}function Jb(e,t,i){const r=String(t);""!==r&&!r.includes(" ")&&vs(e,r,i)}function jg(e,t,i,r,s,l,v,O){if(!(3&t.type))return;const X=e.data,me=X[O+1],xe=function Fb(e){return 1==(1&e)}(me)?$g(X,t,i,s,Jo(me),v):void 0;Qc(xe)||(Qc(l)||function Lb(e){return 2==(2&e)}(me)&&(l=$g(X,null,i,s,O,v)),function P_(e,t,i,r,s){if(t)s?e.addClass(i,r):e.removeClass(i,r);else{let l=-1===r.indexOf("-")?void 0:hc.DashCase;null==s?e.removeStyle(i,r,l):("string"==typeof s&&s.endsWith("!important")&&(s=s.slice(0,-10),l|=hc.Important),e.setStyle(i,r,s,l))}}(r,v,bs(mr(),i),s,l))}function $g(e,t,i,r,s,l){const v=null===t;let O;for(;s>0;){const X=e[s],me=Array.isArray(X),xe=me?X[1]:X,ze=null===xe;let dt=i[s+1];dt===Gn&&(dt=ze?qt:void 0);let bt=ze?yu(dt,r):xe===r?dt:void 0;if(me&&!Qc(bt)&&(bt=yu(X,r)),Qc(bt)&&(O=bt,v))return O;const Ft=e[s+1];s=v?Ao(Ft):Jo(Ft)}if(null!==t){let X=l?t.residualClasses:t.residualStyles;null!=X&&(O=yu(X,r))}return O}function Qc(e){return void 0!==e}function Hg(e,t){return 0!=(e.flags&(t?8:16))}function zg(e,t=""){const i=Ht(),r=di(),s=e+Tn,l=r.firstCreatePass?Fa(r,s,1,t,null):r.data[s],v=Wg(r,i,l,t,e);i[s]=v,ha()&&vc(r,i,v,l),Kr(l,!1)}let Wg=(e,t,i,r,s)=>(Gs(!0),function fc(e,t){return e.createText(t)}(t[yn],r));function Qd(e){return Zc("",e,""),Qd}function Zc(e,t,i){const r=Ht(),s=Ba(r,e,t,i);return s!==Gn&&uo(r,mr(),s),Zc}function Zd(e,t,i,r,s){const l=Ht(),v=Ua(l,e,t,i,r,s);return v!==Gn&&uo(l,mr(),v),Zd}function Jd(e,t,i,r,s,l,v){const O=Ht(),X=Va(O,e,t,i,r,s,l,v);return X!==Gn&&uo(O,mr(),X),Jd}function qd(e,t,i,r,s,l,v,O,X){const me=Ht(),xe=ja(me,e,t,i,r,s,l,v,O,X);return xe!==Gn&&uo(me,mr(),xe),qd}function Zg(e,t,i){Fs(vs,qs,Ba(Ht(),e,t,i),!0)}function Jg(e,t,i){!function Js(e){Fs(Vg,Gb,e,!1)}(Ba(Ht(),e,t,i))}function eh(e,t,i){const r=Ht();return $r(r,Hs(),t)&&ys(di(),Ui(),r,e,t,r[yn],i,!0),eh}const qo=void 0;var CE=["en",[["a","p"],["AM","PM"],qo],[["AM","PM"],qo,qo],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],qo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],qo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",qo,"{1} 'at' {0}",qo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function _E(e){const i=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===i&&0===r?1:5}];let Ka={};function th(e){const t=function bE(e){return e.toLowerCase().replace(/_/g,"-")}(e);let i=um(t);if(i)return i;const r=t.split("-")[0];if(i=um(r),i)return i;if("en"===r)return CE;throw new m(701,!1)}function cm(e){return th(e)[Xa.PluralCase]}function um(e){return e in Ka||(Ka[e]=vt.ng&&vt.ng.common&&vt.ng.common.locales&&vt.ng.common.locales[e]),Ka[e]}var Xa=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Xa||{});const Ya="en-US";let dm=Ya;function rh(e,t,i,r,s){if(e=k(e),Array.isArray(e))for(let l=0;l<e.length;l++)rh(e[l],t,i,r,s);else{const l=di(),v=Ht(),O=Qi();let X=Qo(e)?e:k(e.provide);const me=Hf(e),xe=1048575&O.providerIndexes,ze=O.directiveStart,dt=O.providerIndexes>>20;if(Qo(e)||!e.multi){const bt=new Ce(me,s,ka),Ft=oh(X,t,s?xe:xe+dt,ze);-1===Ft?(Ho(Qr(O,v),l,X),sh(l,e,t.length),t.push(X),O.directiveStart++,O.directiveEnd++,s&&(O.providerIndexes+=1048576),i.push(bt),v.push(bt)):(i[Ft]=bt,v[Ft]=bt)}else{const bt=oh(X,t,xe+dt,ze),Ft=oh(X,t,xe,xe+dt),cn=Ft>=0&&i[Ft];if(s&&!cn||!s&&!(bt>=0&&i[bt])){Ho(Qr(O,v),l,X);const Cn=function _A(e,t,i,r,s){const l=new Ce(e,i,ka);return l.multi=[],l.index=t,l.componentProviders=0,Fm(l,s,r&&!i),l}(s?yA:vA,i.length,s,r,me);!s&&cn&&(i[Ft].providerFactory=Cn),sh(l,e,t.length,0),t.push(X),O.directiveStart++,O.directiveEnd++,s&&(O.providerIndexes+=1048576),i.push(Cn),v.push(Cn)}else sh(l,e,bt>-1?bt:Ft,Fm(i[s?Ft:bt],me,!s&&r));!s&&r&&cn&&i[Ft].componentProviders++}}}function sh(e,t,i,r){const s=Qo(t),l=function l0(e){return!!e.useClass}(t);if(s||l){const X=(l?k(t.useClass):t).prototype.ngOnDestroy;if(X){const me=e.destroyHooks||(e.destroyHooks=[]);if(!s&&t.multi){const xe=me.indexOf(i);-1===xe?me.push(i,[r,X]):me[xe+1].push(r,X)}else me.push(i,X)}}}function Fm(e,t,i){return i&&e.componentProviders++,e.multi.push(t)-1}function oh(e,t,i,r){for(let s=i;s<r;s++)if(t[s]===e)return s;return-1}function vA(e,t,i,r){return ah(this.multi,[])}function yA(e,t,i,r){const s=this.multi;let l;if(this.providerFactory){const v=this.providerFactory.componentProviders,O=ir(i,i[tn],this.providerFactory.index,r);l=O.slice(0,v),ah(s,l);for(let X=v;X<O.length;X++)l.push(O[X])}else l=[],ah(s,l);return l}function ah(e,t){for(let i=0;i<e.length;i++)t.push((0,e[i])());return t}function Nm(e,t=[]){return i=>{i.providersResolver=(r,s)=>function mA(e,t,i){const r=di();if(r.firstCreatePass){const s=Cr(e);rh(i,r.data,r.blueprint,s,!0),rh(t,r.data,r.blueprint,s,!1)}}(r,s?s(e):e,t)}}class ea{}class Bm{}function CA(e,t){return new lh(e,t??null,[])}class lh extends ea{constructor(t,i,r){super(),this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Wp(this);const s=Ii(t);this._bootstrapComponents=co(s.bootstrap),this._r3Injector=ip(t,i,[{provide:ea,useValue:this},{provide:Pl,useValue:this.componentFactoryResolver},...r],z(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(i=>i()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class ch extends Bm{constructor(t){super(),this.moduleType=t}create(t){return new lh(this.moduleType,t,[])}}class Um extends ea{constructor(t){super(),this.componentFactoryResolver=new Wp(this),this.instance=null;const i=new Pa([...t.providers,{provide:ea,useValue:this},{provide:Pl,useValue:this.componentFactoryResolver}],t.parent||Sc(),t.debugName,new Set(["environment"]));this.injector=i,t.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Vm(e,t,i=null){return new Um({providers:e,parent:t,debugName:i,runEnvironmentInitializers:!0}).injector}let EA=(()=>{class e{constructor(i){this._injector=i,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(i){if(!i.standalone)return null;if(!this.cachedInjectors.has(i)){const r=Uf(0,i.type),s=r.length>0?Vm([r],this._injector,`Standalone[${i.type.name}]`):null;this.cachedInjectors.set(i,s)}return this.cachedInjectors.get(i)}ngOnDestroy(){try{for(const i of this.cachedInjectors.values())null!==i&&i.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=Re({token:e,providedIn:"environment",factory:()=>new e(un(Xs))})}return e})();function jm(e){e.getStandaloneInjector=t=>t.get(EA).getOrCreateStandaloneInjector(e)}function Xm(e,t,i){const r=Zi()+e,s=Ht();return s[r]===Gn?Zs(s,r,i?t.call(i):t()):function kl(e,t){return e[t]}(s,r)}function Ym(e,t,i,r){return Zm(Ht(),Zi(),e,t,i,r)}function Qm(e,t,i,r,s){return Jm(Ht(),Zi(),e,t,i,r,s)}function Wl(e,t){const i=e[t];return i===Gn?void 0:i}function Zm(e,t,i,r,s,l){const v=t+i;return $r(e,v,s)?Zs(e,v+1,l?r.call(l,s):r(s)):Wl(e,v+1)}function Jm(e,t,i,r,s,l,v){const O=t+i;return Zo(e,O,s,l)?Zs(e,O+2,v?r.call(v,s,l):r(s,l)):Wl(e,O+2)}function nv(e,t){const i=di();let r;const s=e+Tn;i.firstCreatePass?(r=function BA(e,t){if(t)for(let i=t.length-1;i>=0;i--){const r=t[i];if(e===r.name)return r}}(t,i.pipeRegistry),i.data[s]=r,r.onDestroy&&(i.destroyHooks??=[]).push(s,r.onDestroy)):r=i.data[s];const l=r.factory||(r.factory=Br(r.type)),O=Bt(ka);try{const X=dr(!1),me=l();return dr(X),function Sb(e,t,i,r){i>=e.data.length&&(e.data[i]=null,e.blueprint[i]=null),t[i]=r}(i,Ht(),s,me),me}finally{Bt(O)}}function iv(e,t,i){const r=e+Tn,s=Ht(),l=js(s,r);return Gl(s,r)?Zm(s,Zi(),t,l.transform,i,l):l.transform(i)}function rv(e,t,i,r){const s=e+Tn,l=Ht(),v=js(l,s);return Gl(l,s)?Jm(l,Zi(),t,v.transform,i,r,v):v.transform(i,r)}function sv(e,t,i,r,s){const l=e+Tn,v=Ht(),O=js(v,l);return Gl(v,l)?function qm(e,t,i,r,s,l,v,O){const X=t+i;return Vc(e,X,s,l,v)?Zs(e,X+3,O?r.call(O,s,l,v):r(s,l,v)):Wl(e,X+3)}(v,Zi(),t,O.transform,i,r,s,O):O.transform(i,r,s)}function Gl(e,t){return e[tn].data[t].pure}function jA(){return this._results[Symbol.iterator]()}class nu{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new Ys)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const i=nu.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=jA)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,i){return this._results.reduce(t,i)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,i){const r=this;r.dirty=!1;const s=function As(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function xy(e,t,i){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let s=e[r],l=t[r];if(i&&(s=i(s),l=i(l)),l!==s)return!1}return!0}(r._results,s,i))&&(r._results=s,r.length=s.length,r.last=s[this.length-1],r.first=s[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}function HA(e,t,i,r=!0){const s=t[tn];if(function C_(e,t,i,r){const s=Bi+r,l=i.length;r>0&&(i[s-1][Pi]=t),r<l-Bi?(t[Pi]=i[s],Uh(i,Bi+r,t)):(i.push(t),t[Pi]=null),t[li]=i;const v=t[Tr];null!==v&&i!==v&&function b_(e,t){const i=e[lr];t[Wn]!==t[li][li][Wn]&&(e[Ni]=!0),null===i?e[lr]=[t]:i.push(t)}(v,t);const O=t[or];null!==O&&O.insertView(e),t[En]|=128}(s,t,e,i),r){const l=Ru(i,e),v=t[yn],O=mc(v,e[Hi]);null!==O&&function v_(e,t,i,r,s,l){r[gi]=s,r[Oi]=t,El(e,r,i,1,s,l)}(s,e[Oi],v,t,O,l)}}let Kl=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=GA}return e})();const zA=Kl,WA=class extends zA{constructor(t,i,r){super(),this._declarationLView=t,this._declarationTContainer=i,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,i){return this.createEmbeddedViewImpl(t,i)}createEmbeddedViewImpl(t,i,r){const s=function $A(e,t,i,r){const s=t.tView,O=Lc(e,s,i,4096&e[En]?4096:16,null,t,null,null,null,r?.injector??null,r?.hydrationInfo??null);O[Tr]=e[t.index];const me=e[or];return null!==me&&(O[or]=me.createEmbeddedView(s)),Sd(s,O,i),O}(this._declarationLView,this._declarationTContainer,t,{injector:i,hydrationInfo:r});return new Rl(s)}};function GA(){return iu(Qi(),Ht())}function iu(e,t){return 4&e.type?new WA(t,e,Oa(e,t)):null}let su=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=JA}return e})();function JA(){return hv(Qi(),Ht())}const qA=su,uv=class extends qA{constructor(t,i,r){super(),this._lContainer=t,this._hostTNode=i,this._hostLView=r}get element(){return Oa(this._hostTNode,this._hostLView)}get injector(){return new qi(this._hostTNode,this._hostLView)}get parentInjector(){const t=ms(this._hostTNode,this._hostLView);if(vn(t)){const i=wi(t,this._hostLView),r=Pn(t);return new qi(i[tn].data[r+8],i)}return new qi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const i=dv(this._lContainer);return null!==i&&i[t]||null}get length(){return this._lContainer.length-Bi}createEmbeddedView(t,i,r){let s,l;"number"==typeof r?s=r:null!=r&&(s=r.index,l=r.injector);const O=t.createEmbeddedViewImpl(i||{},l,null);return this.insertImpl(O,s,false),O}createComponent(t,i,r,s,l){const v=t&&!function ml(e){return"function"==typeof e}(t);let O;if(v)O=i;else{const Qt=i||{};O=Qt.index,r=Qt.injector,s=Qt.projectableNodes,l=Qt.environmentInjector||Qt.ngModuleRef}const X=v?t:new Ll(fn(t)),me=r||this.parentInjector;if(!l&&null==X.ngModule){const cn=(v?me:this.parentInjector).get(Xs,null);cn&&(l=cn)}fn(X.componentType??{});const bt=X.create(me,s,null,l);return this.insertImpl(bt.hostView,O,false),bt}insert(t,i){return this.insertImpl(t,i,!1)}insertImpl(t,i,r){const s=t._lView;if(function Fo(e){return $i(e[li])}(s)){const X=this.indexOf(t);if(-1!==X)this.detach(X);else{const me=s[li],xe=new uv(me,me[Oi],me[li]);xe.detach(xe.indexOf(t))}}const v=this._adjustIndex(i),O=this._lContainer;return HA(O,s,v,!r),t.attachToViewContainerRef(),Uh(dh(O),v,t),t}move(t,i){return this.insert(t,i)}indexOf(t){const i=dv(this._lContainer);return null!==i?i.indexOf(t):-1}remove(t){const i=this._adjustIndex(t,-1),r=gc(this._lContainer,i);r&&(nc(dh(this._lContainer),i),Mu(r[tn],r))}detach(t){const i=this._adjustIndex(t,-1),r=gc(this._lContainer,i);return r&&null!=nc(dh(this._lContainer),i)?new Rl(r):null}_adjustIndex(t,i=0){return t??this.length+i}};function dv(e){return e[8]}function dh(e){return e[8]||(e[8]=[])}function hv(e,t){let i;const r=t[e.index];return $i(r)?i=r:(i=Rp(r,t,null,e),t[e.index]=i,kc(t,i)),fv(i,t,e,r),new uv(i,e,t)}let fv=function pv(e,t,i,r){if(e[Hi])return;let s;s=8&i.type?Mi(r):function eD(e,t){const i=e[yn],r=i.createComment(""),s=Mr(t,e);return Ko(i,mc(i,s),r,function S_(e,t){return e.nextSibling(t)}(i,s),!1),r}(t,i),e[Hi]=s};class hh{constructor(t){this.queryList=t,this.matches=null}clone(){return new hh(this.queryList)}setDirty(){this.queryList.setDirty()}}class fh{constructor(t=[]){this.queries=t}createEmbeddedView(t){const i=t.queries;if(null!==i){const r=null!==t.contentQueries?t.contentQueries[0]:i.length,s=[];for(let l=0;l<r;l++){const v=i.getByIndex(l);s.push(this.queries[v.indexInDeclarationView].clone())}return new fh(s)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let i=0;i<this.queries.length;i++)null!==Av(t,i).matches&&this.queries[i].setDirty()}}class gv{constructor(t,i,r=null){this.predicate=t,this.flags=i,this.read=r}}class ph{constructor(t=[]){this.queries=t}elementStart(t,i){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,i)}elementEnd(t){for(let i=0;i<this.queries.length;i++)this.queries[i].elementEnd(t)}embeddedTView(t){let i=null;for(let r=0;r<this.length;r++){const s=null!==i?i.length:0,l=this.getByIndex(r).embeddedTView(t,s);l&&(l.indexInDeclarationView=r,null!==i?i.push(l):i=[l])}return null!==i?new ph(i):null}template(t,i){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,i)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class gh{constructor(t,i=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=i}elementStart(t,i){this.isApplyingToNode(i)&&this.matchTNode(t,i)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,i){this.elementStart(t,i)}embeddedTView(t,i){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,i),new gh(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const i=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==i;)r=r.parent;return i===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,i){const r=this.metadata.predicate;if(Array.isArray(r))for(let s=0;s<r.length;s++){const l=r[s];this.matchTNodeWithReadOption(t,i,iD(i,l)),this.matchTNodeWithReadOption(t,i,Vr(i,t,l,!1,!1))}else r===Kl?4&i.type&&this.matchTNodeWithReadOption(t,i,-1):this.matchTNodeWithReadOption(t,i,Vr(i,t,r,!1,!1))}matchTNodeWithReadOption(t,i,r){if(null!==r){const s=this.metadata.read;if(null!==s)if(s===Ml||s===su||s===Kl&&4&i.type)this.addMatch(i.index,-2);else{const l=Vr(i,t,s,!1,!1);null!==l&&this.addMatch(i.index,l)}else this.addMatch(i.index,r)}}addMatch(t,i){null===this.matches?this.matches=[t,i]:this.matches.push(t,i)}}function iD(e,t){const i=e.localNames;if(null!==i)for(let r=0;r<i.length;r+=2)if(i[r]===t)return i[r+1];return null}function sD(e,t,i,r){return-1===i?function rD(e,t){return 11&e.type?Oa(e,t):4&e.type?iu(e,t):null}(t,e):-2===i?function oD(e,t,i){return i===Ml?Oa(t,e):i===Kl?iu(t,e):i===su?hv(t,e):void 0}(e,t,r):ir(e,e[tn],i,t)}function mv(e,t,i,r){const s=t[or].queries[r];if(null===s.matches){const l=e.data,v=i.matches,O=[];for(let X=0;X<v.length;X+=2){const me=v[X];O.push(me<0?null:sD(t,l[me],v[X+1],i.metadata.read))}s.matches=O}return s.matches}function mh(e,t,i,r){const s=e.queries.getByIndex(i),l=s.matches;if(null!==l){const v=mv(e,t,s,i);for(let O=0;O<l.length;O+=2){const X=l[O];if(X>0)r.push(v[O/2]);else{const me=l[O+1],xe=t[-X];for(let ze=Bi;ze<xe.length;ze++){const dt=xe[ze];dt[Tr]===dt[li]&&mh(dt[tn],dt,me,r)}if(null!==xe[lr]){const ze=xe[lr];for(let dt=0;dt<ze.length;dt++){const bt=ze[dt];mh(bt[tn],bt,me,r)}}}}}return r}function vv(e){const t=Ht(),i=di(),r=Dt();St(r+1);const s=Av(i,r);if(e.dirty&&function Lo(e){return 4==(4&e[En])}(t)===(2==(2&s.metadata.flags))){if(null===s.matches)e.reset([]);else{const l=s.crossesNgTemplate?mh(i,t,r,[]):mv(i,t,s,r);e.reset(l,x0),e.notifyOnChanges()}return!0}return!1}function yv(e,t,i){const r=di();r.firstCreatePass&&(Ev(r,new gv(e,t,i),-1),2==(2&t)&&(r.staticViewQueries=!0)),bv(r,Ht(),t)}function _v(e,t,i,r){const s=di();if(s.firstCreatePass){const l=Qi();Ev(s,new gv(t,i,r),l.index),function lD(e,t){const i=e.contentQueries||(e.contentQueries=[]);t!==(i.length?i[i.length-1]:-1)&&i.push(e.queries.length-1,t)}(s,e),2==(2&i)&&(s.staticContentQueries=!0)}bv(s,Ht(),i)}function Cv(){return function aD(e,t){return e[or].queries[t].queryList}(Ht(),Dt())}function bv(e,t,i){const r=new nu(4==(4&i));(function hC(e,t,i,r){const s=kp(t);s.push(i),e.firstCreatePass&&Fp(e).push(r,s.length-1)})(e,t,r,r.destroy),null===t[or]&&(t[or]=new fh),t[or].queries.push(new hh(r))}function Ev(e,t,i){null===e.queries&&(e.queries=new ph),e.queries.track(new gh(t,i))}function Av(e,t){return e.queries.getByIndex(t)}function Dv(e,t){return iu(e,t)}function vh(e){return!!Ii(e)}const jv=new Be("Application Initializer");let Eh=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r}),this.appInits=dn(jv,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const i=[];for(const s of this.appInits){const l=s();if(Ud(l))i.push(l);else if(mg(l)){const v=new Promise((O,X)=>{l.subscribe({complete:O,error:X})});i.push(v)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(i).then(()=>{r()}).catch(s=>{this.reject(s)}),0===i.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),$v=(()=>{class e{log(i){console.log(i)}warn(i){console.warn(i)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const au=new Be("LocaleId",{providedIn:"root",factory:()=>dn(au,Ut.Optional|Ut.SkipSelf)||function MD(){return typeof $localize<"u"&&$localize.locale||Ya}()}),ID=new Be("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});let Hv=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ie.t(!1)}add(){this.hasPendingTasks.next(!0);const i=this.taskId++;return this.pendingTasks.add(i),i}remove(i){this.pendingTasks.delete(i),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class OD{constructor(t,i){this.ngModuleFactory=t,this.componentFactories=i}}let RD=(()=>{class e{compileModuleSync(i){return new ch(i)}compileModuleAsync(i){return Promise.resolve(this.compileModuleSync(i))}compileModuleAndAllComponentsSync(i){const r=this.compileModuleSync(i),l=co(Ii(i).declarations).reduce((v,O)=>{const X=fn(O);return X&&v.push(new Ll(X)),v},[]);return new OD(r,l)}compileModuleAndAllComponentsAsync(i){return Promise.resolve(this.compileModuleAndAllComponentsSync(i))}clearCache(){}clearCacheFor(i){}getModuleId(i){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Kv=new Be(""),Xv=new Be("");let Sh,tS=(()=>{class e{constructor(i,r,s){this._ngZone=i,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Sh||(function nS(e){Sh=e}(s),s.addToWindow(r)),this._watchAngularEvents(),i.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Or.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,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 i=this._callbacks.pop();clearTimeout(i.timeoutId),i.doneCb(this._didWork)}this._didWork=!1});else{let i=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(i)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(i=>({source:i.source,creationLocation:i.creationLocation,data:i.data})):[]}addCallback(i,r,s){let l=-1;r&&r>0&&(l=setTimeout(()=>{this._callbacks=this._callbacks.filter(v=>v.timeoutId!==l),i(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:i,timeoutId:l,updateCb:s})}whenStable(i,r,s){if(s&&!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(i,r,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(i){this.registry.registerApplication(i,this)}unregisterApplication(i){this.registry.unregisterApplication(i)}findProviders(i,r,s){return[]}static#e=this.\u0275fac=function(r){return new(r||e)(un(Or),un(Yv),un(Xv))};static#t=this.\u0275prov=Re({token:e,factory:e.\u0275fac})}return e})(),Yv=(()=>{class e{constructor(){this._applications=new Map}registerApplication(i,r){this._applications.set(i,r)}unregisterApplication(i){this._applications.delete(i)}unregisterAllApplications(){this._applications.clear()}getTestability(i){return this._applications.get(i)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(i,r=!0){return Sh?.findTestabilityInTree(this,i,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),Do=null;const Qv=new Be("AllowMultipleToken"),wh=new Be("PlatformDestroyListeners"),Th=new Be("appBootstrapListener");class sS{constructor(t,i){this.name=t,this.token=i}}function qv(e,t,i=[]){const r=`Platform: ${t}`,s=new Be(r);return(l=[])=>{let v=Ph();if(!v||v.injector.get(Qv,!1)){const O=[...i,...l,{provide:s,useValue:!0}];e?e(O):function oS(e){if(Do&&!Do.get(Qv,!1))throw new m(400,!1);(function Zv(){!function Oo(e){xo=e}(()=>{throw new m(600,!1)})})(),Do=e;const t=e.get(ty);(function Jv(e){e.get(Wf,null)?.forEach(i=>i())})(e)}(function ey(e=[],t){return Ls.create({name:t,providers:[{provide:Ku,useValue:"platform"},{provide:wh,useValue:new Set([()=>Do=null])},...e]})}(O,r))}return function lS(e){const t=Ph();if(!t)throw new m(401,!1);return t}()}}function Ph(){return Do?.get(ty)??null}let ty=(()=>{class e{constructor(i){this._injector=i,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(i,r){const s=function cS(e="zone.js",t){return"noop"===e?new X0:"zone.js"===e?new Or(t):e}(r?.ngZone,function ny(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return s.run(()=>{const l=function bA(e,t,i){return new lh(e,t,i)}(i.moduleType,this.injector,function ay(e){return[{provide:Or,useFactory:e},{provide:Sl,multi:!0,useFactory:()=>{const t=dn(dS,{optional:!0});return()=>t.initialize()}},{provide:oy,useFactory:uS},{provide:lp,useFactory:cp}]}(()=>s)),v=l.injector.get(Eo,null);return s.runOutsideAngular(()=>{const O=s.onError.subscribe({next:X=>{v.handleError(X)}});l.onDestroy(()=>{cu(this._modules,l),O.unsubscribe()})}),function iy(e,t,i){try{const r=i();return Ud(r)?r.catch(s=>{throw t.runOutsideAngular(()=>e.handleError(s)),s}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(v,s,()=>{const O=l.injector.get(Eh);return O.runInitializers(),O.donePromise.then(()=>(function hm(e){ne(e,"Expected localeId to be defined"),"string"==typeof e&&(dm=e.toLowerCase().replace(/_/g,"-"))}(l.injector.get(au,Ya)||Ya),this._moduleDoBootstrap(l),l))})})}bootstrapModule(i,r=[]){const s=ry({},r);return function iS(e,t,i){const r=new ch(i);return Promise.resolve(r)}(0,0,i).then(l=>this.bootstrapModuleFactory(l,s))}_moduleDoBootstrap(i){const r=i.injector.get(Ja);if(i._bootstrapComponents.length>0)i._bootstrapComponents.forEach(s=>r.bootstrap(s));else{if(!i.instance.ngDoBootstrap)throw new m(-403,!1);i.instance.ngDoBootstrap(r)}this._modules.push(i)}onDestroy(i){this._destroyListeners.push(i)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new m(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const i=this._injector.get(wh,null);i&&(i.forEach(r=>r()),i.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(r){return new(r||e)(un(Ls))};static#t=this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function ry(e,t){return Array.isArray(t)?t.reduce(ry,e):{...e,...t}}let Ja=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=dn(oy),this.zoneIsStable=dn(lp),this.componentTypes=[],this.components=[],this.isStable=dn(Hv).hasPendingTasks.pipe((0,w.n)(i=>i?(0,Z.of)(!1):this.zoneIsStable),(0,D.F)(),(0,h.u)()),this._injector=dn(Xs)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(i,r){const s=i instanceof Yf;if(!this._injector.get(Eh).done)throw!s&&Rr(i),new m(405,!1);let v;v=s?i:this._injector.get(Pl).resolveComponentFactory(i),this.componentTypes.push(v.componentType);const O=function rS(e){return e.isBoundToModule}(v)?void 0:this._injector.get(ea),me=v.create(Ls.NULL,[],r||v.selector,O),xe=me.location.nativeElement,ze=me.injector.get(Kv,null);return ze?.registerApplication(xe),me.onDestroy(()=>{this.detachView(me.hostView),cu(this.components,me),ze?.unregisterApplication(xe)}),this._loadComponent(me),me}tick(){if(this._runningTick)throw new m(101,!1);try{this._runningTick=!0;for(let i of this._views)i.detectChanges()}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1}}attachView(i){const r=i;this._views.push(r),r.attachToAppRef(this)}detachView(i){const r=i;cu(this._views,r),r.detachFromAppRef()}_loadComponent(i){this.attachView(i.hostView),this.tick(),this.components.push(i);const r=this._injector.get(Th,[]);r.push(...this._bootstrapListeners),r.forEach(s=>s(i))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(i=>i()),this._views.slice().forEach(i=>i.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(i){return this._destroyListeners.push(i),()=>cu(this._destroyListeners,i)}destroy(){if(this._destroyed)throw new m(406,!1);const i=this._injector;i.destroy&&!i.destroyed&&i.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function cu(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}const oy=new Be("",{providedIn:"root",factory:()=>dn(Eo).handleError.bind(void 0)});function uS(){const e=dn(Or),t=dn(Eo);return i=>e.runOutsideAngular(()=>t.handleError(i))}let dS=(()=>{class e{constructor(){this.zone=dn(Or),this.applicationRef=dn(Ja)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function fS(){}let pS=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=gS}return e})();function gS(e){return function mS(e,t,i){if(cr(e)&&!i){const r=Ur(e.index,t);return new Rl(r,r)}return 47&e.type?new Rl(t[Wn],t):null}(Qi(),Ht(),16==(16&e))}class hy{constructor(){}supports(t){return Uc(t)}create(t){return new bS(t)}}const CS=(e,t)=>t;class bS{constructor(t){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=t||CS}forEachItem(t){let i;for(i=this._itHead;null!==i;i=i._next)t(i)}forEachOperation(t){let i=this._itHead,r=this._removalsHead,s=0,l=null;for(;i||r;){const v=!r||i&&i.currentIndex<py(r,s,l)?i:r,O=py(v,s,l),X=v.currentIndex;if(v===r)s--,r=r._nextRemoved;else if(i=i._next,null==v.previousIndex)s++;else{l||(l=[]);const me=O-s,xe=X-s;if(me!=xe){for(let dt=0;dt<me;dt++){const bt=dt<l.length?l[dt]:l[dt]=0,Ft=bt+dt;xe<=Ft&&Ft<me&&(l[dt]=bt+1)}l[v.previousIndex]=xe-me}}O!==X&&t(v,O,X)}}forEachPreviousItem(t){let i;for(i=this._previousItHead;null!==i;i=i._nextPrevious)t(i)}forEachAddedItem(t){let i;for(i=this._additionsHead;null!==i;i=i._nextAdded)t(i)}forEachMovedItem(t){let i;for(i=this._movesHead;null!==i;i=i._nextMoved)t(i)}forEachRemovedItem(t){let i;for(i=this._removalsHead;null!==i;i=i._nextRemoved)t(i)}forEachIdentityChange(t){let i;for(i=this._identityChangesHead;null!==i;i=i._nextIdentityChange)t(i)}diff(t){if(null==t&&(t=[]),!Uc(t))throw new m(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let s,l,v,i=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let O=0;O<this.length;O++)l=t[O],v=this._trackByFn(O,l),null!==i&&Object.is(i.trackById,v)?(r&&(i=this._verifyReinsertion(i,l,v,O)),Object.is(i.item,l)||this._addIdentityChange(i,l)):(i=this._mismatch(i,l,v,O),r=!0),i=i._next}else s=0,function rb(e,t){if(Array.isArray(e))for(let i=0;i<e.length;i++)t(e[i]);else{const i=e[Symbol.iterator]();let r;for(;!(r=i.next()).done;)t(r.value)}}(t,O=>{v=this._trackByFn(s,O),null!==i&&Object.is(i.trackById,v)?(r&&(i=this._verifyReinsertion(i,O,v,s)),Object.is(i.item,O)||this._addIdentityChange(i,O)):(i=this._mismatch(i,O,v,s),r=!0),i=i._next,s++}),this.length=s;return this._truncate(i),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,i,r,s){let l;return null===t?l=this._itTail:(l=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,i)||this._addIdentityChange(t,i),this._reinsertAfter(t,l,s)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,s))?(Object.is(t.item,i)||this._addIdentityChange(t,i),this._moveAfter(t,l,s)):t=this._addAfter(new ES(i,r),l,s),t}_verifyReinsertion(t,i,r,s){let l=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==l?t=this._reinsertAfter(l,t._prev,s):t.currentIndex!=s&&(t.currentIndex=s,this._addToMoves(t,s)),t}_truncate(t){for(;null!==t;){const i=t._next;this._addToRemovals(this._unlink(t)),t=i}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(t,i,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const s=t._prevRemoved,l=t._nextRemoved;return null===s?this._removalsHead=l:s._nextRemoved=l,null===l?this._removalsTail=s:l._prevRemoved=s,this._insertAfter(t,i,r),this._addToMoves(t,r),t}_moveAfter(t,i,r){return this._unlink(t),this._insertAfter(t,i,r),this._addToMoves(t,r),t}_addAfter(t,i,r){return this._insertAfter(t,i,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,i,r){const s=null===i?this._itHead:i._next;return t._next=s,t._prev=i,null===s?this._itTail=t:s._prev=t,null===i?this._itHead=t:i._next=t,null===this._linkedRecords&&(this._linkedRecords=new fy),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const i=t._prev,r=t._next;return null===i?this._itHead=r:i._next=r,null===r?this._itTail=i:r._prev=i,t}_addToMoves(t,i){return t.previousIndex===i||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new fy),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,i){return t.item=i,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class ES{constructor(t,i){this.item=t,this.trackById=i,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 AS{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,i){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===i||i<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const i=t._prevDup,r=t._nextDup;return null===i?this._head=r:i._nextDup=r,null===r?this._tail=i:r._prevDup=i,null===this._head}}class fy{constructor(){this.map=new Map}put(t){const i=t.trackById;let r=this.map.get(i);r||(r=new AS,this.map.set(i,r)),r.add(t)}get(t,i){const s=this.map.get(t);return s?s.get(t,i):null}remove(t){const i=t.trackById;return this.map.get(i).remove(t)&&this.map.delete(i),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function py(e,t,i){const r=e.previousIndex;if(null===r)return r;let s=0;return i&&r<i.length&&(s=i[r]),r+t+s}class gy{constructor(){}supports(t){return t instanceof Map||Td(t)}create(){return new DS}}class DS{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let i;for(i=this._mapHead;null!==i;i=i._next)t(i)}forEachPreviousItem(t){let i;for(i=this._previousMapHead;null!==i;i=i._nextPrevious)t(i)}forEachChangedItem(t){let i;for(i=this._changesHead;null!==i;i=i._nextChanged)t(i)}forEachAddedItem(t){let i;for(i=this._additionsHead;null!==i;i=i._nextAdded)t(i)}forEachRemovedItem(t){let i;for(i=this._removalsHead;null!==i;i=i._nextRemoved)t(i)}diff(t){if(t){if(!(t instanceof Map||Td(t)))throw new m(900,!1)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let i=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,s)=>{if(i&&i.key===s)this._maybeAddToChanges(i,r),this._appendAfter=i,i=i._next;else{const l=this._getOrCreateRecordForKey(s,r);i=this._insertBeforeOrAppend(i,l)}}),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(let r=i;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,i){if(t){const r=t._prev;return i._next=t,i._prev=r,t._prev=i,r&&(r._next=i),t===this._mapHead&&(this._mapHead=i),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=i,i._prev=this._appendAfter):this._mapHead=i,this._appendAfter=i,null}_getOrCreateRecordForKey(t,i){if(this._records.has(t)){const s=this._records.get(t);this._maybeAddToChanges(s,i);const l=s._prev,v=s._next;return l&&(l._next=v),v&&(v._prev=l),s._next=null,s._prev=null,s}const r=new SS(t);return this._records.set(t,r),r.currentValue=i,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,i){Object.is(i,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=i,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,i){t instanceof Map?t.forEach(i):Object.keys(t).forEach(r=>i(t[r],r))}}class SS{constructor(t){this.key=t,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 my(){return new Rh([new hy])}let Rh=(()=>{class e{static#e=this.\u0275prov=Re({token:e,providedIn:"root",factory:my});constructor(i){this.factories=i}static create(i,r){if(null!=r){const s=r.factories.slice();i=i.concat(s)}return new e(i)}static extend(i){return{provide:e,useFactory:r=>e.create(i,r||my()),deps:[[e,new sc,new rc]]}}find(i){const r=this.factories.find(s=>s.supports(i));if(null!=r)return r;throw new m(901,!1)}}return e})();function vy(){return new Lh([new gy])}let Lh=(()=>{class e{static#e=this.\u0275prov=Re({token:e,providedIn:"root",factory:vy});constructor(i){this.factories=i}static create(i,r){if(r){const s=r.factories.slice();i=i.concat(s)}return new e(i)}static extend(i){return{provide:e,useFactory:r=>e.create(i,r||vy()),deps:[[e,new sc,new rc]]}}find(i){const r=this.factories.find(s=>s.supports(i));if(r)return r;throw new m(901,!1)}}return e})();const PS=qv(null,"core",[]);let MS=(()=>{class e{constructor(i){}static#e=this.\u0275fac=function(r){return new(r||e)(un(Ja))};static#t=this.\u0275mod=nn({type:e});static#n=this.\u0275inj=at({})}return e})();function VS(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function $S(e){const t=fn(e);if(!t)return null;const i=new Ll(t);return{get selector(){return i.selector},get type(){return i.componentType},get inputs(){return i.inputs},get outputs(){return i.outputs},get ngContentSelectors(){return i.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},37222:(He,L,o)=>{"use strict";o.d(L,{BC:()=>_t,JD:()=>tn,MJ:()=>te,R_:()=>lr,X1:()=>ce,YN:()=>A,YS:()=>ar,cV:()=>oi,cb:()=>Ge,cz:()=>$,hs:()=>be,j4:()=>Ii,k0:()=>f,kq:()=>w,l_:()=>Ti,me:()=>C,qT:()=>we,tU:()=>Hi,vO:()=>at,vS:()=>Zt,xh:()=>kr,xq:()=>Ai,ze:()=>b});var n=o(2978),y=o(56610),a=o(38399),Q=o(18361),ie=o(93527);let Z=(()=>{class F{constructor(Y,De){this._renderer=Y,this._elementRef=De,this.onChange=Ve=>{},this.onTouched=()=>{}}setProperty(Y,De){this._renderer.setProperty(this._elementRef.nativeElement,Y,De)}registerOnTouched(Y){this.onTouched=Y}registerOnChange(Y){this.onChange=Y}setDisabledState(Y){this.setProperty("disabled",Y)}static#e=this.\u0275fac=function(De){return new(De||F)(n.rXU(n.sFG),n.rXU(n.aKT))};static#t=this.\u0275dir=n.FsC({type:F})}return F})(),h=(()=>{class F extends Z{static#e=this.\u0275fac=function(){let Y;return function(Ve){return(Y||(Y=n.xGo(F)))(Ve||F)}}();static#t=this.\u0275dir=n.FsC({type:F,features:[n.Vt3]})}return F})();const w=new n.nKC("NgValueAccessor"),E={provide:w,useExisting:(0,n.Rfq)(()=>C),multi:!0},d=new n.nKC("CompositionEventMode");let C=(()=>{class F extends Z{constructor(Y,De,Ve){super(Y,De),this._compositionMode=Ve,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function z(){const F=(0,y.QT)()?(0,y.QT)().getUserAgent():"";return/android (\d+)/.test(F.toLowerCase())}())}writeValue(Y){this.setProperty("value",Y??"")}_handleInput(Y){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Y)}_compositionStart(){this._composing=!0}_compositionEnd(Y){this._composing=!1,this._compositionMode&&this.onChange(Y)}static#e=this.\u0275fac=function(De){return new(De||F)(n.rXU(n.sFG),n.rXU(n.aKT),n.rXU(d,8))};static#t=this.\u0275dir=n.FsC({type:F,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(De,Ve){1&De&&n.bIt("input",function(gn){return Ve._handleInput(gn.target.value)})("blur",function(){return Ve.onTouched()})("compositionstart",function(){return Ve._compositionStart()})("compositionend",function(gn){return Ve._compositionEnd(gn.target.value)})},features:[n.Jv_([E]),n.Vt3]})}return F})();function P(F){return null==F||("string"==typeof F||Array.isArray(F))&&0===F.length}function k(F){return null!=F&&"number"==typeof F.length}const $=new n.nKC("NgValidators"),I=new n.nKC("NgAsyncValidators"),g=/^(?=.{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 f{static min(ae){return function m(F){return ae=>{if(P(ae.value)||P(F))return null;const Y=parseFloat(ae.value);return!isNaN(Y)&&Y<F?{min:{min:F,actual:ae.value}}:null}}(ae)}static max(ae){return function T(F){return ae=>{if(P(ae.value)||P(F))return null;const Y=parseFloat(ae.value);return!isNaN(Y)&&Y>F?{max:{max:F,actual:ae.value}}:null}}(ae)}static required(ae){return W(ae)}static requiredTrue(ae){return K(ae)}static email(ae){return function re(F){return P(F.value)||g.test(F.value)?null:{email:!0}}(ae)}static minLength(ae){return U(ae)}static maxLength(ae){return fe(ae)}static pattern(ae){return ue(ae)}static nullValidator(ae){return null}static compose(ae){return q(ae)}static composeAsync(ae){return p(ae)}}function W(F){return P(F.value)?{required:!0}:null}function K(F){return!0===F.value?null:{required:!0}}function U(F){return ae=>P(ae.value)||!k(ae.value)?null:ae.value.length<F?{minlength:{requiredLength:F,actualLength:ae.value.length}}:null}function fe(F){return ae=>k(ae.value)&&ae.value.length>F?{maxlength:{requiredLength:F,actualLength:ae.value.length}}:null}function ue(F){if(!F)return pe;let ae,Y;return"string"==typeof F?(Y="","^"!==F.charAt(0)&&(Y+="^"),Y+=F,"$"!==F.charAt(F.length-1)&&(Y+="$"),ae=new RegExp(Y)):(Y=F.toString(),ae=F),De=>{if(P(De.value))return null;const Ve=De.value;return ae.test(Ve)?null:{pattern:{requiredPattern:Y,actualValue:Ve}}}}function pe(F){return null}function he(F){return null!=F}function de(F){return(0,n.jNT)(F)?(0,a.H)(F):F}function _e(F){let ae={};return F.forEach(Y=>{ae=null!=Y?{...ae,...Y}:ae}),0===Object.keys(ae).length?null:ae}function Ee(F,ae){return ae.map(Y=>Y(F))}function ge(F){return F.map(ae=>function Ne(F){return!F.validate}(ae)?ae:Y=>ae.validate(Y))}function q(F){if(!F)return null;const ae=F.filter(he);return 0==ae.length?null:function(Y){return _e(Ee(Y,ae))}}function u(F){return null!=F?q(ge(F)):null}function p(F){if(!F)return null;const ae=F.filter(he);return 0==ae.length?null:function(Y){const De=Ee(Y,ae).map(de);return(0,Q.p)(De).pipe((0,ie.T)(_e))}}function N(F){return null!=F?p(ge(F)):null}function G(F,ae){return null===F?[ae]:Array.isArray(F)?[...F,ae]:[F,ae]}function R(F){return F._rawValidators}function ne(F){return F._rawAsyncValidators}function S(F){return F?Array.isArray(F)?F:[F]:[]}function se(F,ae){return Array.isArray(F)?F.includes(ae):F===ae}function Me(F,ae){const Y=S(ae);return S(F).forEach(Ve=>{se(Y,Ve)||Y.push(Ve)}),Y}function Fe(F,ae){return S(ae).filter(Y=>!se(F,Y))}class Re{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(ae){this._rawValidators=ae||[],this._composedValidatorFn=u(this._rawValidators)}_setAsyncValidators(ae){this._rawAsyncValidators=ae||[],this._composedAsyncValidatorFn=N(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(ae){this._onDestroyCallbacks.push(ae)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(ae=>ae()),this._onDestroyCallbacks=[]}reset(ae=void 0){this.control&&this.control.reset(ae)}hasError(ae,Y){return!!this.control&&this.control.hasError(ae,Y)}getError(ae,Y){return this.control?this.control.getError(ae,Y):null}}class je extends Re{get formDirective(){return null}get path(){return null}}class at extends Re{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class ft{constructor(ae){this._cd=ae}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 _t=(()=>{class F extends ft{constructor(Y){super(Y)}static#e=this.\u0275fac=function(De){return new(De||F)(n.rXU(at,2))};static#t=this.\u0275dir=n.FsC({type:F,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(De,Ve){2&De&&n.AVh("ng-untouched",Ve.isUntouched)("ng-touched",Ve.isTouched)("ng-pristine",Ve.isPristine)("ng-dirty",Ve.isDirty)("ng-valid",Ve.isValid)("ng-invalid",Ve.isInvalid)("ng-pending",Ve.isPending)},features:[n.Vt3]})}return F})(),Ge=(()=>{class F extends ft{constructor(Y){super(Y)}static#e=this.\u0275fac=function(De){return new(De||F)(n.rXU(je,10))};static#t=this.\u0275dir=n.FsC({type:F,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(De,Ve){2&De&&n.AVh("ng-untouched",Ve.isUntouched)("ng-touched",Ve.isTouched)("ng-pristine",Ve.isPristine)("ng-dirty",Ve.isDirty)("ng-valid",Ve.isValid)("ng-invalid",Ve.isInvalid)("ng-pending",Ve.isPending)("ng-submitted",Ve.isSubmitted)},features:[n.Vt3]})}return F})();const ln="VALID",pn="INVALID",kn="PENDING",Mn="DISABLED";function wn(F){return(Jn(F)?F.validators:F)||null}function Zn(F,ae){return(Jn(ae)?ae.asyncValidators:F)||null}function Jn(F){return null!=F&&!Array.isArray(F)&&"object"==typeof F}function In(F,ae,Y){const De=F.controls;if(!(ae?Object.keys(De):De).length)throw new n.wOt(1e3,"");if(!De[Y])throw new n.wOt(1001,"")}function ii(F,ae,Y){F._forEachChild((De,Ve)=>{if(void 0===Y[Ve])throw new n.wOt(1002,"")})}class yi{constructor(ae,Y){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(ae),this._assignAsyncValidators(Y)}get validator(){return this._composedValidatorFn}set validator(ae){this._rawValidators=this._composedValidatorFn=ae}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(ae){this._rawAsyncValidators=this._composedAsyncValidatorFn=ae}get parent(){return this._parent}get valid(){return this.status===ln}get invalid(){return this.status===pn}get pending(){return this.status==kn}get disabled(){return this.status===Mn}get enabled(){return this.status!==Mn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(ae){this._assignValidators(ae)}setAsyncValidators(ae){this._assignAsyncValidators(ae)}addValidators(ae){this.setValidators(Me(ae,this._rawValidators))}addAsyncValidators(ae){this.setAsyncValidators(Me(ae,this._rawAsyncValidators))}removeValidators(ae){this.setValidators(Fe(ae,this._rawValidators))}removeAsyncValidators(ae){this.setAsyncValidators(Fe(ae,this._rawAsyncValidators))}hasValidator(ae){return se(this._rawValidators,ae)}hasAsyncValidator(ae){return se(this._rawAsyncValidators,ae)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(ae={}){this.touched=!0,this._parent&&!ae.onlySelf&&this._parent.markAsTouched(ae)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(ae=>ae.markAllAsTouched())}markAsUntouched(ae={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Y=>{Y.markAsUntouched({onlySelf:!0})}),this._parent&&!ae.onlySelf&&this._parent._updateTouched(ae)}markAsDirty(ae={}){this.pristine=!1,this._parent&&!ae.onlySelf&&this._parent.markAsDirty(ae)}markAsPristine(ae={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Y=>{Y.markAsPristine({onlySelf:!0})}),this._parent&&!ae.onlySelf&&this._parent._updatePristine(ae)}markAsPending(ae={}){this.status=kn,!1!==ae.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!ae.onlySelf&&this._parent.markAsPending(ae)}disable(ae={}){const Y=this._parentMarkedDirty(ae.onlySelf);this.status=Mn,this.errors=null,this._forEachChild(De=>{De.disable({...ae,onlySelf:!0})}),this._updateValue(),!1!==ae.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...ae,skipPristineCheck:Y}),this._onDisabledChange.forEach(De=>De(!0))}enable(ae={}){const Y=this._parentMarkedDirty(ae.onlySelf);this.status=ln,this._forEachChild(De=>{De.enable({...ae,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:ae.emitEvent}),this._updateAncestors({...ae,skipPristineCheck:Y}),this._onDisabledChange.forEach(De=>De(!1))}_updateAncestors(ae){this._parent&&!ae.onlySelf&&(this._parent.updateValueAndValidity(ae),ae.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(ae){this._parent=ae}getRawValue(){return this.value}updateValueAndValidity(ae={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ln||this.status===kn)&&this._runAsyncValidator(ae.emitEvent)),!1!==ae.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!ae.onlySelf&&this._parent.updateValueAndValidity(ae)}_updateTreeValidity(ae={emitEvent:!0}){this._forEachChild(Y=>Y._updateTreeValidity(ae)),this.updateValueAndValidity({onlySelf:!0,emitEvent:ae.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Mn:ln}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(ae){if(this.asyncValidator){this.status=kn,this._hasOwnPendingAsyncValidator=!0;const Y=de(this.asyncValidator(this));this._asyncValidationSubscription=Y.subscribe(De=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(De,{emitEvent:ae})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(ae,Y={}){this.errors=ae,this._updateControlsErrors(!1!==Y.emitEvent)}get(ae){let Y=ae;return null==Y||(Array.isArray(Y)||(Y=Y.split(".")),0===Y.length)?null:Y.reduce((De,Ve)=>De&&De._find(Ve),this)}getError(ae,Y){const De=Y?this.get(Y):this;return De&&De.errors?De.errors[ae]:null}hasError(ae,Y){return!!this.getError(ae,Y)}get root(){let ae=this;for(;ae._parent;)ae=ae._parent;return ae}_updateControlsErrors(ae){this.status=this._calculateStatus(),ae&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(ae)}_initObservables(){this.valueChanges=new n.bkB,this.statusChanges=new n.bkB}_calculateStatus(){return this._allControlsDisabled()?Mn:this.errors?pn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(kn)?kn:this._anyControlsHaveStatus(pn)?pn:ln}_anyControlsHaveStatus(ae){return this._anyControls(Y=>Y.status===ae)}_anyControlsDirty(){return this._anyControls(ae=>ae.dirty)}_anyControlsTouched(){return this._anyControls(ae=>ae.touched)}_updatePristine(ae={}){this.pristine=!this._anyControlsDirty(),this._parent&&!ae.onlySelf&&this._parent._updatePristine(ae)}_updateTouched(ae={}){this.touched=this._anyControlsTouched(),this._parent&&!ae.onlySelf&&this._parent._updateTouched(ae)}_registerOnCollectionChange(ae){this._onCollectionChange=ae}_setUpdateStrategy(ae){Jn(ae)&&null!=ae.updateOn&&(this._updateOn=ae.updateOn)}_parentMarkedDirty(ae){return!ae&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(ae){return null}_assignValidators(ae){this._rawValidators=Array.isArray(ae)?ae.slice():ae,this._composedValidatorFn=function Bn(F){return Array.isArray(F)?u(F):F||null}(this._rawValidators)}_assignAsyncValidators(ae){this._rawAsyncValidators=Array.isArray(ae)?ae.slice():ae,this._composedAsyncValidatorFn=function Yn(F){return Array.isArray(F)?N(F):F||null}(this._rawAsyncValidators)}}class mt extends yi{constructor(ae,Y,De){super(wn(Y),Zn(De,Y)),this.controls=ae,this._initObservables(),this._setUpdateStrategy(Y),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(ae,Y){return this.controls[ae]?this.controls[ae]:(this.controls[ae]=Y,Y.setParent(this),Y._registerOnCollectionChange(this._onCollectionChange),Y)}addControl(ae,Y,De={}){this.registerControl(ae,Y),this.updateValueAndValidity({emitEvent:De.emitEvent}),this._onCollectionChange()}removeControl(ae,Y={}){this.controls[ae]&&this.controls[ae]._registerOnCollectionChange(()=>{}),delete this.controls[ae],this.updateValueAndValidity({emitEvent:Y.emitEvent}),this._onCollectionChange()}setControl(ae,Y,De={}){this.controls[ae]&&this.controls[ae]._registerOnCollectionChange(()=>{}),delete this.controls[ae],Y&&this.registerControl(ae,Y),this.updateValueAndValidity({emitEvent:De.emitEvent}),this._onCollectionChange()}contains(ae){return this.controls.hasOwnProperty(ae)&&this.controls[ae].enabled}setValue(ae,Y={}){ii(this,0,ae),Object.keys(ae).forEach(De=>{In(this,!0,De),this.controls[De].setValue(ae[De],{onlySelf:!0,emitEvent:Y.emitEvent})}),this.updateValueAndValidity(Y)}patchValue(ae,Y={}){null!=ae&&(Object.keys(ae).forEach(De=>{const Ve=this.controls[De];Ve&&Ve.patchValue(ae[De],{onlySelf:!0,emitEvent:Y.emitEvent})}),this.updateValueAndValidity(Y))}reset(ae={},Y={}){this._forEachChild((De,Ve)=>{De.reset(ae?ae[Ve]:null,{onlySelf:!0,emitEvent:Y.emitEvent})}),this._updatePristine(Y),this._updateTouched(Y),this.updateValueAndValidity(Y)}getRawValue(){return this._reduceChildren({},(ae,Y,De)=>(ae[De]=Y.getRawValue(),ae))}_syncPendingControls(){let ae=this._reduceChildren(!1,(Y,De)=>!!De._syncPendingControls()||Y);return ae&&this.updateValueAndValidity({onlySelf:!0}),ae}_forEachChild(ae){Object.keys(this.controls).forEach(Y=>{const De=this.controls[Y];De&&ae(De,Y)})}_setUpControls(){this._forEachChild(ae=>{ae.setParent(this),ae._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(ae){for(const[Y,De]of Object.entries(this.controls))if(this.contains(Y)&&ae(De))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Y,De,Ve)=>((De.enabled||this.disabled)&&(Y[Ve]=De.value),Y))}_reduceChildren(ae,Y){let De=ae;return this._forEachChild((Ve,Yt)=>{De=Y(De,Ve,Yt)}),De}_allControlsDisabled(){for(const ae of Object.keys(this.controls))if(this.controls[ae].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(ae){return this.controls.hasOwnProperty(ae)?this.controls[ae]:null}}class et extends mt{}const zt=new n.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>sn}),sn="always";function un(F,ae){return[...ae.path,F]}function An(F,ae,Y=sn){gt(F,ae),ae.valueAccessor.writeValue(F.value),(F.disabled||"always"===Y)&&ae.valueAccessor.setDisabledState?.(F.disabled),function ut(F,ae){ae.valueAccessor.registerOnChange(Y=>{F._pendingValue=Y,F._pendingChange=!0,F._pendingDirty=!0,"change"===F.updateOn&&Ot(F,ae)})}(F,ae),function Xt(F,ae){const Y=(De,Ve)=>{ae.valueAccessor.writeValue(De),Ve&&ae.viewToModelUpdate(De)};F.registerOnChange(Y),ae._registerOnDestroy(()=>{F._unregisterOnChange(Y)})}(F,ae),function Lt(F,ae){ae.valueAccessor.registerOnTouched(()=>{F._pendingTouched=!0,"blur"===F.updateOn&&F._pendingChange&&Ot(F,ae),"submit"!==F.updateOn&&F.markAsTouched()})}(F,ae),function si(F,ae){if(ae.valueAccessor.setDisabledState){const Y=De=>{ae.valueAccessor.setDisabledState(De)};F.registerOnDisabledChange(Y),ae._registerOnDestroy(()=>{F._unregisterOnDisabledChange(Y)})}}(F,ae)}function dn(F,ae,Y=!0){const De=()=>{};ae.valueAccessor&&(ae.valueAccessor.registerOnChange(De),ae.valueAccessor.registerOnTouched(De)),ot(F,ae),F&&(ae._invokeOnDestroyCallbacks(),F._registerOnCollectionChange(()=>{}))}function ri(F,ae){F.forEach(Y=>{Y.registerOnValidatorChange&&Y.registerOnValidatorChange(ae)})}function gt(F,ae){const Y=R(F);null!==ae.validator?F.setValidators(G(Y,ae.validator)):"function"==typeof Y&&F.setValidators([Y]);const De=ne(F);null!==ae.asyncValidator?F.setAsyncValidators(G(De,ae.asyncValidator)):"function"==typeof De&&F.setAsyncValidators([De]);const Ve=()=>F.updateValueAndValidity();ri(ae._rawValidators,Ve),ri(ae._rawAsyncValidators,Ve)}function ot(F,ae){let Y=!1;if(null!==F){if(null!==ae.validator){const Ve=R(F);if(Array.isArray(Ve)&&Ve.length>0){const Yt=Ve.filter(gn=>gn!==ae.validator);Yt.length!==Ve.length&&(Y=!0,F.setValidators(Yt))}}if(null!==ae.asyncValidator){const Ve=ne(F);if(Array.isArray(Ve)&&Ve.length>0){const Yt=Ve.filter(gn=>gn!==ae.asyncValidator);Yt.length!==Ve.length&&(Y=!0,F.setAsyncValidators(Yt))}}}const De=()=>{};return ri(ae._rawValidators,De),ri(ae._rawAsyncValidators,De),Y}function Ot(F,ae){F._pendingDirty&&F.markAsDirty(),F.setValue(F._pendingValue,{emitModelToViewChange:!1}),ae.viewToModelUpdate(F._pendingValue),F._pendingChange=!1}function jt(F,ae){gt(F,ae)}function xn(F,ae){if(!F.hasOwnProperty("model"))return!1;const Y=F.model;return!!Y.isFirstChange()||!Object.is(ae,Y.currentValue)}function bn(F,ae){F._syncPendingControls(),ae.forEach(Y=>{const De=Y.control;"submit"===De.updateOn&&De._pendingChange&&(Y.viewToModelUpdate(De._pendingValue),De._pendingChange=!1)})}function _n(F,ae){if(!ae)return null;let Y,De,Ve;return Array.isArray(ae),ae.forEach(Yt=>{Yt.constructor===C?Y=Yt:function Qn(F){return Object.getPrototypeOf(F.constructor)===h}(Yt)?De=Yt:Ve=Yt}),Ve||De||Y||null}const Ln={provide:je,useExisting:(0,n.Rfq)(()=>oi)},Xn=(()=>Promise.resolve())();let oi=(()=>{class F extends je{constructor(Y,De,Ve){super(),this.callSetDisabledState=Ve,this.submitted=!1,this._directives=new Set,this.ngSubmit=new n.bkB,this.form=new mt({},u(Y),N(De))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Y){Xn.then(()=>{const De=this._findContainer(Y.path);Y.control=De.registerControl(Y.name,Y.control),An(Y.control,Y,this.callSetDisabledState),Y.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Y)})}getControl(Y){return this.form.get(Y.path)}removeControl(Y){Xn.then(()=>{const De=this._findContainer(Y.path);De&&De.removeControl(Y.name),this._directives.delete(Y)})}addFormGroup(Y){Xn.then(()=>{const De=this._findContainer(Y.path),Ve=new mt({});jt(Ve,Y),De.registerControl(Y.name,Ve),Ve.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Y){Xn.then(()=>{const De=this._findContainer(Y.path);De&&De.removeControl(Y.name)})}getFormGroup(Y){return this.form.get(Y.path)}updateModel(Y,De){Xn.then(()=>{this.form.get(Y.path).setValue(De)})}setValue(Y){this.control.setValue(Y)}onSubmit(Y){return this.submitted=!0,bn(this.form,this._directives),this.ngSubmit.emit(Y),"dialog"===Y?.target?.method}onReset(){this.resetForm()}resetForm(Y=void 0){this.form.reset(Y),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Y){return Y.pop(),Y.length?this.form.get(Y):this.form}static#e=this.\u0275fac=function(De){return new(De||F)(n.rXU($,10),n.rXU(I,10),n.rXU(zt,8))};static#t=this.\u0275dir=n.FsC({type:F,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(De,Ve){1&De&&n.bIt("submit",function(gn){return Ve.onSubmit(gn)})("reset",function(){return Ve.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.Jv_([Ln]),n.Vt3]})}return F})();function Le(F,ae){const Y=F.indexOf(ae);Y>-1&&F.splice(Y,1)}function tt(F){return"object"==typeof F&&null!==F&&2===Object.keys(F).length&&"value"in F&&"disabled"in F}const te=class extends yi{constructor(ae=null,Y,De){super(wn(Y),Zn(De,Y)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(ae),this._setUpdateStrategy(Y),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Jn(Y)&&(Y.nonNullable||Y.initialValueIsDefault)&&(this.defaultValue=tt(ae)?ae.value:ae)}setValue(ae,Y={}){this.value=this._pendingValue=ae,this._onChange.length&&!1!==Y.emitModelToViewChange&&this._onChange.forEach(De=>De(this.value,!1!==Y.emitViewToModelChange)),this.updateValueAndValidity(Y)}patchValue(ae,Y={}){this.setValue(ae,Y)}reset(ae=this.defaultValue,Y={}){this._applyFormState(ae),this.markAsPristine(Y),this.markAsUntouched(Y),this.setValue(this.value,Y),this._pendingChange=!1}_updateValue(){}_anyControls(ae){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(ae){this._onChange.push(ae)}_unregisterOnChange(ae){Le(this._onChange,ae)}registerOnDisabledChange(ae){this._onDisabledChange.push(ae)}_unregisterOnDisabledChange(ae){Le(this._onDisabledChange,ae)}_forEachChild(ae){}_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(ae){tt(ae)?(this.value=this._pendingValue=ae.value,ae.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=ae}},be=te,kt={provide:at,useExisting:(0,n.Rfq)(()=>Zt)},Kt=(()=>Promise.resolve())();let Zt=(()=>{class F extends at{constructor(Y,De,Ve,Yt,gn,Kn){super(),this._changeDetectorRef=gn,this.callSetDisabledState=Kn,this.control=new te,this._registered=!1,this.name="",this.update=new n.bkB,this._parent=Y,this._setValidators(De),this._setAsyncValidators(Ve),this.valueAccessor=_n(0,Yt)}ngOnChanges(Y){if(this._checkForErrors(),!this._registered||"name"in Y){if(this._registered&&(this._checkName(),this.formDirective)){const De=Y.name.previousValue;this.formDirective.removeControl({name:De,path:this._getPath(De)})}this._setUpControl()}"isDisabled"in Y&&this._updateDisabled(Y),xn(Y,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(Y){this.viewModel=Y,this.update.emit(Y)}_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(){An(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(Y){Kt.then(()=>{this.control.setValue(Y,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Y){const De=Y.isDisabled.currentValue,Ve=0!==De&&(0,n.L39)(De);Kt.then(()=>{Ve&&!this.control.disabled?this.control.disable():!Ve&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Y){return this._parent?un(Y,this._parent):[Y]}static#e=this.\u0275fac=function(De){return new(De||F)(n.rXU(je,9),n.rXU($,10),n.rXU(I,10),n.rXU(w,10),n.rXU(n.gRc,8),n.rXU(zt,8))};static#t=this.\u0275dir=n.FsC({type:F,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n.Jv_([kt]),n.Vt3,n.OA$]})}return F})(),we=(()=>{class F{static#e=this.\u0275fac=function(De){return new(De||F)};static#t=this.\u0275dir=n.FsC({type:F,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return F})(),nn=(()=>{class F{static#e=this.\u0275fac=function(De){return new(De||F)};static#t=this.\u0275mod=n.$C({type:F});static#n=this.\u0275inj=n.G2t({})}return F})();const fn=new n.nKC("NgModelWithFormControlWarning"),Hn={provide:at,useExisting:(0,n.Rfq)(()=>Ti)};let Ti=(()=>{class F extends at{set isDisabled(Y){}static#e=this._ngModelWarningSentOnce=!1;constructor(Y,De,Ve,Yt,gn){super(),this._ngModelWarningConfig=Yt,this.callSetDisabledState=gn,this.update=new n.bkB,this._ngModelWarningSent=!1,this._setValidators(Y),this._setAsyncValidators(De),this.valueAccessor=_n(0,Ve)}ngOnChanges(Y){if(this._isControlChanged(Y)){const De=Y.form.previousValue;De&&dn(De,this,!1),An(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}xn(Y,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&dn(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Y){this.viewModel=Y,this.update.emit(Y)}_isControlChanged(Y){return Y.hasOwnProperty("form")}static#t=this.\u0275fac=function(De){return new(De||F)(n.rXU($,10),n.rXU(I,10),n.rXU(w,10),n.rXU(fn,8),n.rXU(zt,8))};static#n=this.\u0275dir=n.FsC({type:F,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[n.Jv_([Hn]),n.Vt3,n.OA$]})}return F})();const Rr={provide:je,useExisting:(0,n.Rfq)(()=>Ii)};let Ii=(()=>{class F extends je{constructor(Y,De,Ve){super(),this.callSetDisabledState=Ve,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new n.bkB,this._setValidators(Y),this._setAsyncValidators(De)}ngOnChanges(Y){this._checkFormPresent(),Y.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ot(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Y){const De=this.form.get(Y.path);return An(De,Y,this.callSetDisabledState),De.updateValueAndValidity({emitEvent:!1}),this.directives.push(Y),De}getControl(Y){return this.form.get(Y.path)}removeControl(Y){dn(Y.control||null,Y,!1),function Ci(F,ae){const Y=F.indexOf(ae);Y>-1&&F.splice(Y,1)}(this.directives,Y)}addFormGroup(Y){this._setUpFormContainer(Y)}removeFormGroup(Y){this._cleanUpFormContainer(Y)}getFormGroup(Y){return this.form.get(Y.path)}addFormArray(Y){this._setUpFormContainer(Y)}removeFormArray(Y){this._cleanUpFormContainer(Y)}getFormArray(Y){return this.form.get(Y.path)}updateModel(Y,De){this.form.get(Y.path).setValue(De)}onSubmit(Y){return this.submitted=!0,bn(this.form,this.directives),this.ngSubmit.emit(Y),"dialog"===Y?.target?.method}onReset(){this.resetForm()}resetForm(Y=void 0){this.form.reset(Y),this.submitted=!1}_updateDomValue(){this.directives.forEach(Y=>{const De=Y.control,Ve=this.form.get(Y.path);De!==Ve&&(dn(De||null,Y),(F=>F instanceof te)(Ve)&&(An(Ve,Y,this.callSetDisabledState),Y.control=Ve))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Y){const De=this.form.get(Y.path);jt(De,Y),De.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Y){if(this.form){const De=this.form.get(Y.path);De&&function Sn(F,ae){return ot(F,ae)}(De,Y)&&De.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){gt(this.form,this),this._oldForm&&ot(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(De){return new(De||F)(n.rXU($,10),n.rXU(I,10),n.rXU(zt,8))};static#t=this.\u0275dir=n.FsC({type:F,selectors:[["","formGroup",""]],hostBindings:function(De,Ve){1&De&&n.bIt("submit",function(gn){return Ve.onSubmit(gn)})("reset",function(){return Ve.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.Jv_([Rr]),n.Vt3,n.OA$]})}return F})();const gi={provide:at,useExisting:(0,n.Rfq)(()=>tn)};let tn=(()=>{class F extends at{set isDisabled(Y){}static#e=this._ngModelWarningSentOnce=!1;constructor(Y,De,Ve,Yt,gn){super(),this._ngModelWarningConfig=gn,this._added=!1,this.name=null,this.update=new n.bkB,this._ngModelWarningSent=!1,this._parent=Y,this._setValidators(De),this._setAsyncValidators(Ve),this.valueAccessor=_n(0,Yt)}ngOnChanges(Y){this._added||this._setUpControl(),xn(Y,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Y){this.viewModel=Y,this.update.emit(Y)}get path(){return un(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(De){return new(De||F)(n.rXU(je,13),n.rXU($,10),n.rXU(I,10),n.rXU(w,10),n.rXU(fn,8))};static#n=this.\u0275dir=n.FsC({type:F,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n.Jv_([gi]),n.Vt3,n.OA$]})}return F})();function Wr(F){return"number"==typeof F?F:parseInt(F,10)}let Wn=(()=>{class F{constructor(){this._validator=pe}ngOnChanges(Y){if(this.inputName in Y){const De=this.normalizeInput(Y[this.inputName].currentValue);this._enabled=this.enabled(De),this._validator=this._enabled?this.createValidator(De):pe,this._onChange&&this._onChange()}}validate(Y){return this._validator(Y)}registerOnValidatorChange(Y){this._onChange=Y}enabled(Y){return null!=Y}static#e=this.\u0275fac=function(De){return new(De||F)};static#t=this.\u0275dir=n.FsC({type:F,features:[n.OA$]})}return F})();const Ss={provide:$,useExisting:(0,n.Rfq)(()=>ar),multi:!0},Pr={provide:$,useExisting:(0,n.Rfq)(()=>Ai),multi:!0};let ar=(()=>{class F extends Wn{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=n.L39,this.createValidator=Y=>W}enabled(Y){return Y}static#e=this.\u0275fac=function(){let Y;return function(Ve){return(Y||(Y=n.xGo(F)))(Ve||F)}}();static#t=this.\u0275dir=n.FsC({type:F,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(De,Ve){2&De&&n.BMQ("required",Ve._enabled?"":null)},inputs:{required:"required"},features:[n.Jv_([Ss]),n.Vt3]})}return F})(),Ai=(()=>{class F extends ar{constructor(){super(...arguments),this.createValidator=Y=>K}static#e=this.\u0275fac=function(){let Y;return function(Ve){return(Y||(Y=n.xGo(F)))(Ve||F)}}();static#t=this.\u0275dir=n.FsC({type:F,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(De,Ve){2&De&&n.BMQ("required",Ve._enabled?"":null)},features:[n.Jv_([Pr]),n.Vt3]})}return F})();const Jr={provide:$,useExisting:(0,n.Rfq)(()=>kr),multi:!0};let kr=(()=>{class F extends Wn{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=Y=>Wr(Y),this.createValidator=Y=>U(Y)}static#e=this.\u0275fac=function(){let Y;return function(Ve){return(Y||(Y=n.xGo(F)))(Ve||F)}}();static#t=this.\u0275dir=n.FsC({type:F,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(De,Ve){2&De&&n.BMQ("minlength",Ve._enabled?Ve.minlength:null)},inputs:{minlength:"minlength"},features:[n.Jv_([Jr]),n.Vt3]})}return F})();const Ni={provide:$,useExisting:(0,n.Rfq)(()=>Hi),multi:!0};let Hi=(()=>{class F extends Wn{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=Y=>Wr(Y),this.createValidator=Y=>fe(Y)}static#e=this.\u0275fac=function(){let Y;return function(Ve){return(Y||(Y=n.xGo(F)))(Ve||F)}}();static#t=this.\u0275dir=n.FsC({type:F,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(De,Ve){2&De&&n.BMQ("maxlength",Ve._enabled?Ve.maxlength:null)},inputs:{maxlength:"maxlength"},features:[n.Jv_([Ni]),n.Vt3]})}return F})();const nr={provide:$,useExisting:(0,n.Rfq)(()=>lr),multi:!0};let lr=(()=>{class F extends Wn{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=Y=>Y,this.createValidator=Y=>ue(Y)}static#e=this.\u0275fac=function(){let Y;return function(Ve){return(Y||(Y=n.xGo(F)))(Ve||F)}}();static#t=this.\u0275dir=n.FsC({type:F,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(De,Ve){2&De&&n.BMQ("pattern",Ve._enabled?Ve.pattern:null)},inputs:{pattern:"pattern"},features:[n.Jv_([nr]),n.Vt3]})}return F})(),ki=(()=>{class F{static#e=this.\u0275fac=function(De){return new(De||F)};static#t=this.\u0275mod=n.$C({type:F});static#n=this.\u0275inj=n.G2t({imports:[nn]})}return F})();class $i extends yi{constructor(ae,Y,De){super(wn(Y),Zn(De,Y)),this.controls=ae,this._initObservables(),this._setUpdateStrategy(Y),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(ae){return this.controls[this._adjustIndex(ae)]}push(ae,Y={}){this.controls.push(ae),this._registerControl(ae),this.updateValueAndValidity({emitEvent:Y.emitEvent}),this._onCollectionChange()}insert(ae,Y,De={}){this.controls.splice(ae,0,Y),this._registerControl(Y),this.updateValueAndValidity({emitEvent:De.emitEvent})}removeAt(ae,Y={}){let De=this._adjustIndex(ae);De<0&&(De=0),this.controls[De]&&this.controls[De]._registerOnCollectionChange(()=>{}),this.controls.splice(De,1),this.updateValueAndValidity({emitEvent:Y.emitEvent})}setControl(ae,Y,De={}){let Ve=this._adjustIndex(ae);Ve<0&&(Ve=0),this.controls[Ve]&&this.controls[Ve]._registerOnCollectionChange(()=>{}),this.controls.splice(Ve,1),Y&&(this.controls.splice(Ve,0,Y),this._registerControl(Y)),this.updateValueAndValidity({emitEvent:De.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(ae,Y={}){ii(this,0,ae),ae.forEach((De,Ve)=>{In(this,!1,Ve),this.at(Ve).setValue(De,{onlySelf:!0,emitEvent:Y.emitEvent})}),this.updateValueAndValidity(Y)}patchValue(ae,Y={}){null!=ae&&(ae.forEach((De,Ve)=>{this.at(Ve)&&this.at(Ve).patchValue(De,{onlySelf:!0,emitEvent:Y.emitEvent})}),this.updateValueAndValidity(Y))}reset(ae=[],Y={}){this._forEachChild((De,Ve)=>{De.reset(ae[Ve],{onlySelf:!0,emitEvent:Y.emitEvent})}),this._updatePristine(Y),this._updateTouched(Y),this.updateValueAndValidity(Y)}getRawValue(){return this.controls.map(ae=>ae.getRawValue())}clear(ae={}){this.controls.length<1||(this._forEachChild(Y=>Y._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:ae.emitEvent}))}_adjustIndex(ae){return ae<0?ae+this.length:ae}_syncPendingControls(){let ae=this.controls.reduce((Y,De)=>!!De._syncPendingControls()||Y,!1);return ae&&this.updateValueAndValidity({onlySelf:!0}),ae}_forEachChild(ae){this.controls.forEach((Y,De)=>{ae(Y,De)})}_updateValue(){this.value=this.controls.filter(ae=>ae.enabled||this.disabled).map(ae=>ae.value)}_anyControls(ae){return this.controls.some(Y=>Y.enabled&&ae(Y))}_setUpControls(){this._forEachChild(ae=>this._registerControl(ae))}_allControlsDisabled(){for(const ae of this.controls)if(ae.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(ae){ae.setParent(this),ae._registerOnCollectionChange(this._onCollectionChange)}_find(ae){return this.at(ae)??null}}function Fr(F){return!!F&&(void 0!==F.asyncValidators||void 0!==F.validators||void 0!==F.updateOn)}let Cr=(()=>{class F{constructor(){this.useNonNullable=!1}get nonNullable(){const Y=new F;return Y.useNonNullable=!0,Y}group(Y,De=null){const Ve=this._reduceControls(Y);let Yt={};return Fr(De)?Yt=De:null!==De&&(Yt.validators=De.validator,Yt.asyncValidators=De.asyncValidator),new mt(Ve,Yt)}record(Y,De=null){const Ve=this._reduceControls(Y);return new et(Ve,De)}control(Y,De,Ve){let Yt={};return this.useNonNullable?(Fr(De)?Yt=De:(Yt.validators=De,Yt.asyncValidators=Ve),new te(Y,{...Yt,nonNullable:!0})):new te(Y,De,Ve)}array(Y,De,Ve){const Yt=Y.map(gn=>this._createControl(gn));return new $i(Yt,De,Ve)}_reduceControls(Y){const De={};return Object.keys(Y).forEach(Ve=>{De[Ve]=this._createControl(Y[Ve])}),De}_createControl(Y){return Y instanceof te||Y instanceof yi?Y:Array.isArray(Y)?this.control(Y[0],Y.length>1?Y[1]:null,Y.length>2?Y[2]:null):this.control(Y)}static#e=this.\u0275fac=function(De){return new(De||F)};static#t=this.\u0275prov=n.jDH({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})(),b=(()=>{class F extends Cr{group(Y,De=null){return super.group(Y,De)}control(Y,De,Ve){return super.control(Y,De,Ve)}array(Y,De,Ve){return super.array(Y,De,Ve)}static#e=this.\u0275fac=function(){let Y;return function(Ve){return(Y||(Y=n.xGo(F)))(Ve||F)}}();static#t=this.\u0275prov=n.jDH({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})(),A=(()=>{class F{static withConfig(Y){return{ngModule:F,providers:[{provide:zt,useValue:Y.callSetDisabledState??sn}]}}static#e=this.\u0275fac=function(De){return new(De||F)};static#t=this.\u0275mod=n.$C({type:F});static#n=this.\u0275inj=n.G2t({imports:[ki]})}return F})(),ce=(()=>{class F{static withConfig(Y){return{ngModule:F,providers:[{provide:fn,useValue:Y.warnOnNgModelWithFormControl??"always"},{provide:zt,useValue:Y.callSetDisabledState??sn}]}}static#e=this.\u0275fac=function(De){return new(De||F)};static#t=this.\u0275mod=n.$C({type:F});static#n=this.\u0275inj=n.G2t({imports:[ki]})}return F})()},36594:(He,L,o)=>{"use strict";o.d(L,{fU:()=>fe,rJ:()=>p,u6:()=>k});var n=o(2978),y=o(56610),a=o(95981),Q=o(99406),h=(o(16104),o(199),o(72831));o(38486),o(93527),o(76340);const E=["*"];class z{_clearListeners(){for(const ne of this._listeners)ne.remove();this._listeners=[]}constructor(ne){this._ngZone=ne,this._pending=[],this._listeners=[],this._targetStream=new a.t(void 0)}getLazyEmitter(ne){return this._targetStream.pipe((0,h.n)(S=>{const se=new Q.c(Me=>{if(!S)return void this._pending.push({observable:se,observer:Me});const Fe=S.addListener(ne,Re=>{this._ngZone.run(()=>Me.next(Re))});if(Fe)return this._listeners.push(Fe),()=>Fe.remove();Me.complete()});return se}))}setTarget(ne){const S=this._targetStream.value;ne!==S&&(S&&(this._clearListeners(),this._pending=[]),this._targetStream.next(ne),this._pending.forEach(se=>se.observable.subscribe(se.observer)),this._pending=[])}destroy(){this._clearListeners(),this._pending=[],this._targetStream.complete()}}const d={center:{lat:37.421995,lng:-122.084092},zoom:17,mapTypeId:"roadmap"},C="500px",P="500px";let k=(()=>{class R{set center(S){this._center=S}set zoom(S){this._zoom=S}set options(S){this._options=S||d}constructor(S,se,Me){if(this._elementRef=S,this._ngZone=se,this._eventManager=new z((0,n.WQX)(n.SKi)),this.height=C,this.width=P,this._options=d,this.mapInitialized=new n.bkB,this.authFailure=new n.bkB,this.boundsChanged=this._eventManager.getLazyEmitter("bounds_changed"),this.centerChanged=this._eventManager.getLazyEmitter("center_changed"),this.mapClick=this._eventManager.getLazyEmitter("click"),this.mapDblclick=this._eventManager.getLazyEmitter("dblclick"),this.mapDrag=this._eventManager.getLazyEmitter("drag"),this.mapDragend=this._eventManager.getLazyEmitter("dragend"),this.mapDragstart=this._eventManager.getLazyEmitter("dragstart"),this.headingChanged=this._eventManager.getLazyEmitter("heading_changed"),this.idle=this._eventManager.getLazyEmitter("idle"),this.maptypeidChanged=this._eventManager.getLazyEmitter("maptypeid_changed"),this.mapMousemove=this._eventManager.getLazyEmitter("mousemove"),this.mapMouseout=this._eventManager.getLazyEmitter("mouseout"),this.mapMouseover=this._eventManager.getLazyEmitter("mouseover"),this.projectionChanged=this._eventManager.getLazyEmitter("projection_changed"),this.mapRightclick=this._eventManager.getLazyEmitter("rightclick"),this.tilesloaded=this._eventManager.getLazyEmitter("tilesloaded"),this.tiltChanged=this._eventManager.getLazyEmitter("tilt_changed"),this.zoomChanged=this._eventManager.getLazyEmitter("zoom_changed"),this._isBrowser=(0,y.UE)(Me),this._isBrowser){const Fe=window;this._existingAuthFailureCallback=Fe.gm_authFailure,Fe.gm_authFailure=()=>{this._existingAuthFailureCallback&&this._existingAuthFailureCallback(),this.authFailure.emit()}}}ngOnChanges(S){(S.height||S.width)&&this._setSize();const se=this.googleMap;se&&(S.options&&se.setOptions(this._combineOptions()),S.center&&this._center&&se.setCenter(this._center),S.zoom&&null!=this._zoom&&se.setZoom(this._zoom),S.mapTypeId&&this.mapTypeId&&se.setMapTypeId(this.mapTypeId))}ngOnInit(){this._isBrowser&&(this._mapEl=this._elementRef.nativeElement.querySelector(".map-container"),this._setSize(),this._ngZone.runOutsideAngular(()=>{this.googleMap=new google.maps.Map(this._mapEl,this._combineOptions())}),this._eventManager.setTarget(this.googleMap),this.mapInitialized.emit(this.googleMap))}ngOnDestroy(){this._eventManager.destroy(),this._isBrowser&&(window.gm_authFailure=this._existingAuthFailureCallback)}fitBounds(S,se){this._assertInitialized(),this.googleMap.fitBounds(S,se)}panBy(S,se){this._assertInitialized(),this.googleMap.panBy(S,se)}panTo(S){this._assertInitialized(),this.googleMap.panTo(S)}panToBounds(S,se){this._assertInitialized(),this.googleMap.panToBounds(S,se)}getBounds(){return this._assertInitialized(),this.googleMap.getBounds()||null}getCenter(){return this._assertInitialized(),this.googleMap.getCenter()}getClickableIcons(){return this._assertInitialized(),this.googleMap.getClickableIcons()}getHeading(){return this._assertInitialized(),this.googleMap.getHeading()}getMapTypeId(){return this._assertInitialized(),this.googleMap.getMapTypeId()}getProjection(){return this._assertInitialized(),this.googleMap.getProjection()||null}getStreetView(){return this._assertInitialized(),this.googleMap.getStreetView()}getTilt(){return this._assertInitialized(),this.googleMap.getTilt()}getZoom(){return this._assertInitialized(),this.googleMap.getZoom()}get controls(){return this._assertInitialized(),this.googleMap.controls}get data(){return this._assertInitialized(),this.googleMap.data}get mapTypes(){return this._assertInitialized(),this.googleMap.mapTypes}get overlayMapTypes(){return this._assertInitialized(),this.googleMap.overlayMapTypes}_setSize(){if(this._mapEl){const S=this._mapEl.style;S.height=null===this.height?"":I(this.height)||C,S.width=null===this.width?"":I(this.width)||P}}_combineOptions(){const S=this._options||{};return{...S,center:this._center||S.center||d.center,zoom:this._zoom??S.zoom??d.zoom,mapTypeId:this.mapTypeId||S.mapTypeId||d.mapTypeId}}_assertInitialized(){}static#e=this.\u0275fac=function(se){return new(se||R)(n.rXU(n.aKT),n.rXU(n.SKi),n.rXU(n.Agw))};static#t=this.\u0275cmp=n.VBU({type:R,selectors:[["google-map"]],inputs:{height:"height",width:"width",mapTypeId:"mapTypeId",center:"center",zoom:"zoom",options:"options"},outputs:{mapInitialized:"mapInitialized",authFailure:"authFailure",boundsChanged:"boundsChanged",centerChanged:"centerChanged",mapClick:"mapClick",mapDblclick:"mapDblclick",mapDrag:"mapDrag",mapDragend:"mapDragend",mapDragstart:"mapDragstart",headingChanged:"headingChanged",idle:"idle",maptypeidChanged:"maptypeidChanged",mapMousemove:"mapMousemove",mapMouseout:"mapMouseout",mapMouseover:"mapMouseover",projectionChanged:"projectionChanged",mapRightclick:"mapRightclick",tilesloaded:"tilesloaded",tiltChanged:"tiltChanged",zoomChanged:"zoomChanged"},exportAs:["googleMap"],features:[n.OA$],ngContentSelectors:E,decls:2,vars:0,consts:[[1,"map-container"]],template:function(se,Me){1&se&&(n.NAR(),n.nrm(0,"div",0),n.SdG(1))},encapsulation:2,changeDetection:0})}return R})();const $=/([A-Za-z%]+)$/;function I(R){return null==R?"":$.test(R)?R:`${R}px`}const U={position:{lat:37.421995,lng:-122.084092}};let fe=(()=>{class R{set title(S){this._title=S}set position(S){this._position=S}set label(S){this._label=S}set clickable(S){this._clickable=S}set options(S){this._options=S}set icon(S){this._icon=S}set visible(S){this._visible=S}constructor(S,se){this._googleMap=S,this._ngZone=se,this._eventManager=new z((0,n.WQX)(n.SKi)),this.animationChanged=this._eventManager.getLazyEmitter("animation_changed"),this.mapClick=this._eventManager.getLazyEmitter("click"),this.clickableChanged=this._eventManager.getLazyEmitter("clickable_changed"),this.cursorChanged=this._eventManager.getLazyEmitter("cursor_changed"),this.mapDblclick=this._eventManager.getLazyEmitter("dblclick"),this.mapDrag=this._eventManager.getLazyEmitter("drag"),this.mapDragend=this._eventManager.getLazyEmitter("dragend"),this.draggableChanged=this._eventManager.getLazyEmitter("draggable_changed"),this.mapDragstart=this._eventManager.getLazyEmitter("dragstart"),this.flatChanged=this._eventManager.getLazyEmitter("flat_changed"),this.iconChanged=this._eventManager.getLazyEmitter("icon_changed"),this.mapMousedown=this._eventManager.getLazyEmitter("mousedown"),this.mapMouseout=this._eventManager.getLazyEmitter("mouseout"),this.mapMouseover=this._eventManager.getLazyEmitter("mouseover"),this.mapMouseup=this._eventManager.getLazyEmitter("mouseup"),this.positionChanged=this._eventManager.getLazyEmitter("position_changed"),this.mapRightclick=this._eventManager.getLazyEmitter("rightclick"),this.shapeChanged=this._eventManager.getLazyEmitter("shape_changed"),this.titleChanged=this._eventManager.getLazyEmitter("title_changed"),this.visibleChanged=this._eventManager.getLazyEmitter("visible_changed"),this.zindexChanged=this._eventManager.getLazyEmitter("zindex_changed")}ngOnInit(){this._googleMap._isBrowser&&(this._ngZone.runOutsideAngular(()=>{this.marker=new google.maps.Marker(this._combineOptions())}),this._assertInitialized(),this.marker.setMap(this._googleMap.googleMap),this._eventManager.setTarget(this.marker))}ngOnChanges(S){const{marker:se,_title:Me,_position:Fe,_label:Re,_clickable:je,_icon:at,_visible:ft}=this;se&&(S.options&&se.setOptions(this._combineOptions()),S.title&&void 0!==Me&&se.setTitle(Me),S.position&&Fe&&se.setPosition(Fe),S.label&&void 0!==Re&&se.setLabel(Re),S.clickable&&void 0!==je&&se.setClickable(je),S.icon&&at&&se.setIcon(at),S.visible&&void 0!==ft&&se.setVisible(ft))}ngOnDestroy(){this._eventManager.destroy(),this.marker&&this.marker.setMap(null)}getAnimation(){return this._assertInitialized(),this.marker.getAnimation()||null}getClickable(){return this._assertInitialized(),this.marker.getClickable()}getCursor(){return this._assertInitialized(),this.marker.getCursor()||null}getDraggable(){return this._assertInitialized(),!!this.marker.getDraggable()}getIcon(){return this._assertInitialized(),this.marker.getIcon()||null}getLabel(){return this._assertInitialized(),this.marker.getLabel()||null}getOpacity(){return this._assertInitialized(),this.marker.getOpacity()||null}getPosition(){return this._assertInitialized(),this.marker.getPosition()||null}getShape(){return this._assertInitialized(),this.marker.getShape()||null}getTitle(){return this._assertInitialized(),this.marker.getTitle()||null}getVisible(){return this._assertInitialized(),this.marker.getVisible()}getZIndex(){return this._assertInitialized(),this.marker.getZIndex()||null}getAnchor(){return this._assertInitialized(),this.marker}_combineOptions(){const S=this._options||U;return{...S,title:this._title||S.title,position:this._position||S.position,label:this._label||S.label,clickable:this._clickable??S.clickable,map:this._googleMap.googleMap,icon:this._icon||S.icon,visible:this._visible??S.visible}}_assertInitialized(){}static#e=this.\u0275fac=function(se){return new(se||R)(n.rXU(k),n.rXU(n.SKi))};static#t=this.\u0275dir=n.FsC({type:R,selectors:[["map-marker"]],inputs:{title:"title",position:"position",label:"label",clickable:"clickable",options:"options",icon:"icon",visible:"visible"},outputs:{animationChanged:"animationChanged",mapClick:"mapClick",clickableChanged:"clickableChanged",cursorChanged:"cursorChanged",mapDblclick:"mapDblclick",mapDrag:"mapDrag",mapDragend:"mapDragend",draggableChanged:"draggableChanged",mapDragstart:"mapDragstart",flatChanged:"flatChanged",iconChanged:"iconChanged",mapMousedown:"mapMousedown",mapMouseout:"mapMouseout",mapMouseover:"mapMouseover",mapMouseup:"mapMouseup",positionChanged:"positionChanged",mapRightclick:"mapRightclick",shapeChanged:"shapeChanged",titleChanged:"titleChanged",visibleChanged:"visibleChanged",zindexChanged:"zindexChanged"},exportAs:["mapMarker"],features:[n.OA$]})}return R})(),p=(()=>{class R{static#e=this.\u0275fac=function(se){return new(se||R)};static#t=this.\u0275mod=n.$C({type:R});static#n=this.\u0275inj=n.G2t({})}return R})()},76098:(He,L,o)=>{"use strict";o.d(L,{B7:()=>U,Bb:()=>Qe,fM:()=>ln,hE:()=>It,sG:()=>Re,up:()=>pn});var n=o(2978),y=o(56610);class a extends y.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Q extends a{static makeCurrent(){(0,y.ZD)(new Q)}onAndCancel(yt,We,et){return yt.addEventListener(We,et),()=>{yt.removeEventListener(We,et)}}dispatchEvent(yt,We){yt.dispatchEvent(We)}remove(yt){yt.parentNode&&yt.parentNode.removeChild(yt)}createElement(yt,We){return(We=We||this.getDefaultDocument()).createElement(yt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(yt){return yt.nodeType===Node.ELEMENT_NODE}isShadowRoot(yt){return yt instanceof DocumentFragment}getGlobalEventTarget(yt,We){return"window"===We?window:"document"===We?yt:"body"===We?yt.body:null}getBaseHref(yt){const We=function Z(){return ie=ie||document.querySelector("base"),ie?ie.getAttribute("href"):null}();return null==We?null:function w(mt){h=h||document.createElement("a"),h.setAttribute("href",mt);const yt=h.pathname;return"/"===yt.charAt(0)?yt:`/${yt}`}(We)}resetBaseElement(){ie=null}getUserAgent(){return window.navigator.userAgent}getCookie(yt){return(0,y._b)(document.cookie,yt)}}let h,ie=null,x=(()=>{class mt{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(et){return new(et||mt)};static#t=this.\u0275prov=n.jDH({token:mt,factory:mt.\u0275fac})}return mt})();const E=new n.nKC("EventManagerPlugins");let z=(()=>{class mt{constructor(We,et){this._zone=et,this._eventNameToPlugin=new Map,We.forEach(Mt=>{Mt.manager=this}),this._plugins=We.slice().reverse()}addEventListener(We,et,Mt){return this._findPluginFor(et).addEventListener(We,et,Mt)}getZone(){return this._zone}_findPluginFor(We){let et=this._eventNameToPlugin.get(We);if(et)return et;if(et=this._plugins.find(zt=>zt.supports(We)),!et)throw new n.wOt(5101,!1);return this._eventNameToPlugin.set(We,et),et}static#e=this.\u0275fac=function(et){return new(et||mt)(n.KVO(E),n.KVO(n.SKi))};static#t=this.\u0275prov=n.jDH({token:mt,factory:mt.\u0275fac})}return mt})();class d{constructor(yt){this._doc=yt}}const C="ng-app-id";let P=(()=>{class mt{constructor(We,et,Mt,zt={}){this.doc=We,this.appId=et,this.nonce=Mt,this.platformId=zt,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,y.Vy)(zt),this.resetHostNodes()}addStyles(We){for(const et of We)1===this.changeUsageCount(et,1)&&this.onStyleAdded(et)}removeStyles(We){for(const et of We)this.changeUsageCount(et,-1)<=0&&this.onStyleRemoved(et)}ngOnDestroy(){const We=this.styleNodesInDOM;We&&(We.forEach(et=>et.remove()),We.clear());for(const et of this.getAllStyles())this.onStyleRemoved(et);this.resetHostNodes()}addHost(We){this.hostNodes.add(We);for(const et of this.getAllStyles())this.addStyleToHost(We,et)}removeHost(We){this.hostNodes.delete(We)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(We){for(const et of this.hostNodes)this.addStyleToHost(et,We)}onStyleRemoved(We){const et=this.styleRef;et.get(We)?.elements?.forEach(Mt=>Mt.remove()),et.delete(We)}collectServerRenderedStyles(){const We=this.doc.head?.querySelectorAll(`style[${C}="${this.appId}"]`);if(We?.length){const et=new Map;return We.forEach(Mt=>{null!=Mt.textContent&&et.set(Mt.textContent,Mt)}),et}return null}changeUsageCount(We,et){const Mt=this.styleRef;if(Mt.has(We)){const zt=Mt.get(We);return zt.usage+=et,zt.usage}return Mt.set(We,{usage:et,elements:[]}),et}getStyleElement(We,et){const Mt=this.styleNodesInDOM,zt=Mt?.get(et);if(zt?.parentNode===We)return Mt.delete(et),zt.removeAttribute(C),zt;{const sn=this.doc.createElement("style");return this.nonce&&sn.setAttribute("nonce",this.nonce),sn.textContent=et,this.platformIsServer&&sn.setAttribute(C,this.appId),sn}}addStyleToHost(We,et){const Mt=this.getStyleElement(We,et);We.appendChild(Mt);const zt=this.styleRef,sn=zt.get(et)?.elements;sn?sn.push(Mt):zt.set(et,{elements:[Mt],usage:1})}resetHostNodes(){const We=this.hostNodes;We.clear(),We.add(this.doc.head)}static#e=this.\u0275fac=function(et){return new(et||mt)(n.KVO(y.qQ),n.KVO(n.sZ2),n.KVO(n.BIS,8),n.KVO(n.Agw))};static#t=this.\u0275prov=n.jDH({token:mt,factory:mt.\u0275fac})}return mt})();const k={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/"},$=/%COMP%/g,I="%COMP%",g=`_nghost-${I}`,f=`_ngcontent-${I}`,T=new n.nKC("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function re(mt,yt){return yt.map(We=>We.replace($,mt))}let U=(()=>{class mt{constructor(We,et,Mt,zt,sn,un,An,dn=null){this.eventManager=We,this.sharedStylesHost=et,this.appId=Mt,this.removeStylesOnCompDestroy=zt,this.doc=sn,this.platformId=un,this.ngZone=An,this.nonce=dn,this.rendererByCompId=new Map,this.platformIsServer=(0,y.Vy)(un),this.defaultRenderer=new fe(We,sn,An,this.platformIsServer)}createRenderer(We,et){if(!We||!et)return this.defaultRenderer;this.platformIsServer&&et.encapsulation===n.gXe.ShadowDom&&(et={...et,encapsulation:n.gXe.Emulated});const Mt=this.getOrCreateRenderer(We,et);return Mt instanceof Ee?Mt.applyToHost(We):Mt instanceof _e&&Mt.applyStyles(),Mt}getOrCreateRenderer(We,et){const Mt=this.rendererByCompId;let zt=Mt.get(et.id);if(!zt){const sn=this.doc,un=this.ngZone,An=this.eventManager,dn=this.sharedStylesHost,ri=this.removeStylesOnCompDestroy,si=this.platformIsServer;switch(et.encapsulation){case n.gXe.Emulated:zt=new Ee(An,dn,et,this.appId,ri,sn,un,si);break;case n.gXe.ShadowDom:return new de(An,dn,We,et,sn,un,this.nonce,si);default:zt=new _e(An,dn,et,ri,sn,un,si)}Mt.set(et.id,zt)}return zt}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(et){return new(et||mt)(n.KVO(z),n.KVO(P),n.KVO(n.sZ2),n.KVO(T),n.KVO(y.qQ),n.KVO(n.Agw),n.KVO(n.SKi),n.KVO(n.BIS))};static#t=this.\u0275prov=n.jDH({token:mt,factory:mt.\u0275fac})}return mt})();class fe{constructor(yt,We,et,Mt){this.eventManager=yt,this.doc=We,this.ngZone=et,this.platformIsServer=Mt,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(yt,We){return We?this.doc.createElementNS(k[We]||We,yt):this.doc.createElement(yt)}createComment(yt){return this.doc.createComment(yt)}createText(yt){return this.doc.createTextNode(yt)}appendChild(yt,We){(he(yt)?yt.content:yt).appendChild(We)}insertBefore(yt,We,et){yt&&(he(yt)?yt.content:yt).insertBefore(We,et)}removeChild(yt,We){yt&&yt.removeChild(We)}selectRootElement(yt,We){let et="string"==typeof yt?this.doc.querySelector(yt):yt;if(!et)throw new n.wOt(-5104,!1);return We||(et.textContent=""),et}parentNode(yt){return yt.parentNode}nextSibling(yt){return yt.nextSibling}setAttribute(yt,We,et,Mt){if(Mt){We=Mt+":"+We;const zt=k[Mt];zt?yt.setAttributeNS(zt,We,et):yt.setAttribute(We,et)}else yt.setAttribute(We,et)}removeAttribute(yt,We,et){if(et){const Mt=k[et];Mt?yt.removeAttributeNS(Mt,We):yt.removeAttribute(`${et}:${We}`)}else yt.removeAttribute(We)}addClass(yt,We){yt.classList.add(We)}removeClass(yt,We){yt.classList.remove(We)}setStyle(yt,We,et,Mt){Mt&(n.czy.DashCase|n.czy.Important)?yt.style.setProperty(We,et,Mt&n.czy.Important?"important":""):yt.style[We]=et}removeStyle(yt,We,et){et&n.czy.DashCase?yt.style.removeProperty(We):yt.style[We]=""}setProperty(yt,We,et){yt[We]=et}setValue(yt,We){yt.nodeValue=We}listen(yt,We,et){if("string"==typeof yt&&!(yt=(0,y.QT)().getGlobalEventTarget(this.doc,yt)))throw new Error(`Unsupported event target ${yt} for event ${We}`);return this.eventManager.addEventListener(yt,We,this.decoratePreventDefault(et))}decoratePreventDefault(yt){return We=>{if("__ngUnwrap__"===We)return yt;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>yt(We)):yt(We))&&We.preventDefault()}}}function he(mt){return"TEMPLATE"===mt.tagName&&void 0!==mt.content}class de extends fe{constructor(yt,We,et,Mt,zt,sn,un,An){super(yt,zt,sn,An),this.sharedStylesHost=We,this.hostEl=et,this.shadowRoot=et.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const dn=re(Mt.id,Mt.styles);for(const ri of dn){const si=document.createElement("style");un&&si.setAttribute("nonce",un),si.textContent=ri,this.shadowRoot.appendChild(si)}}nodeOrShadowRoot(yt){return yt===this.hostEl?this.shadowRoot:yt}appendChild(yt,We){return super.appendChild(this.nodeOrShadowRoot(yt),We)}insertBefore(yt,We,et){return super.insertBefore(this.nodeOrShadowRoot(yt),We,et)}removeChild(yt,We){return super.removeChild(this.nodeOrShadowRoot(yt),We)}parentNode(yt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(yt)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class _e extends fe{constructor(yt,We,et,Mt,zt,sn,un,An){super(yt,zt,sn,un),this.sharedStylesHost=We,this.removeStylesOnCompDestroy=Mt,this.styles=An?re(An,et.styles):et.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Ee extends _e{constructor(yt,We,et,Mt,zt,sn,un,An){const dn=Mt+"-"+et.id;super(yt,We,et,zt,sn,un,An,dn),this.contentAttr=function W(mt){return f.replace($,mt)}(dn),this.hostAttr=function K(mt){return g.replace($,mt)}(dn)}applyToHost(yt){this.applyStyles(),this.setAttribute(yt,this.hostAttr,"")}createElement(yt,We){const et=super.createElement(yt,We);return super.setAttribute(et,this.contentAttr,""),et}}let Ne=(()=>{class mt extends d{constructor(We){super(We)}supports(We){return!0}addEventListener(We,et,Mt){return We.addEventListener(et,Mt,!1),()=>this.removeEventListener(We,et,Mt)}removeEventListener(We,et,Mt){return We.removeEventListener(et,Mt)}static#e=this.\u0275fac=function(et){return new(et||mt)(n.KVO(y.qQ))};static#t=this.\u0275prov=n.jDH({token:mt,factory:mt.\u0275fac})}return mt})();const ge=["alt","control","meta","shift"],q={"\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"},u={alt:mt=>mt.altKey,control:mt=>mt.ctrlKey,meta:mt=>mt.metaKey,shift:mt=>mt.shiftKey};let p=(()=>{class mt extends d{constructor(We){super(We)}supports(We){return null!=mt.parseEventName(We)}addEventListener(We,et,Mt){const zt=mt.parseEventName(et),sn=mt.eventCallback(zt.fullKey,Mt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,y.QT)().onAndCancel(We,zt.domEventName,sn))}static parseEventName(We){const et=We.toLowerCase().split("."),Mt=et.shift();if(0===et.length||"keydown"!==Mt&&"keyup"!==Mt)return null;const zt=mt._normalizeKey(et.pop());let sn="",un=et.indexOf("code");if(un>-1&&(et.splice(un,1),sn="code."),ge.forEach(dn=>{const ri=et.indexOf(dn);ri>-1&&(et.splice(ri,1),sn+=dn+".")}),sn+=zt,0!=et.length||0===zt.length)return null;const An={};return An.domEventName=Mt,An.fullKey=sn,An}static matchEventFullKeyCode(We,et){let Mt=q[We.key]||We.key,zt="";return et.indexOf("code.")>-1&&(Mt=We.code,zt="code."),!(null==Mt||!Mt)&&(Mt=Mt.toLowerCase()," "===Mt?Mt="space":"."===Mt&&(Mt="dot"),ge.forEach(sn=>{sn!==Mt&&(0,u[sn])(We)&&(zt+=sn+".")}),zt+=Mt,zt===et)}static eventCallback(We,et,Mt){return zt=>{mt.matchEventFullKeyCode(zt,We)&&Mt.runGuarded(()=>et(zt))}}static _normalizeKey(We){return"esc"===We?"escape":We}static#e=this.\u0275fac=function(et){return new(et||mt)(n.KVO(y.qQ))};static#t=this.\u0275prov=n.jDH({token:mt,factory:mt.\u0275fac})}return mt})();const Re=(0,n.oH4)(n.fpN,"browser",[{provide:n.Agw,useValue:y.AJ},{provide:n.PLl,useValue:function S(){Q.makeCurrent()},multi:!0},{provide:y.qQ,useFactory:function Me(){return(0,n.TL$)(document),document},deps:[]}]),je=new n.nKC(""),at=[{provide:n.e01,useClass:class D{addToWindow(yt){n.JZv.getAngularTestability=(et,Mt=!0)=>{const zt=yt.findTestabilityInTree(et,Mt);if(null==zt)throw new n.wOt(5103,!1);return zt},n.JZv.getAllAngularTestabilities=()=>yt.getAllTestabilities(),n.JZv.getAllAngularRootElements=()=>yt.getAllRootElements(),n.JZv.frameworkStabilizers||(n.JZv.frameworkStabilizers=[]),n.JZv.frameworkStabilizers.push(et=>{const Mt=n.JZv.getAllAngularTestabilities();let zt=Mt.length,sn=!1;const un=function(An){sn=sn||An,zt--,0==zt&&et(sn)};Mt.forEach(An=>{An.whenStable(un)})})}findTestabilityInTree(yt,We,et){return null==We?null:yt.getTestability(We)??(et?(0,y.QT)().isShadowRoot(We)?this.findTestabilityInTree(yt,We.host,!0):this.findTestabilityInTree(yt,We.parentElement,!0):null)}},deps:[]},{provide:n.WHO,useClass:n.NYb,deps:[n.SKi,n.giA,n.e01]},{provide:n.NYb,useClass:n.NYb,deps:[n.SKi,n.giA,n.e01]}],ft=[{provide:n.H8p,useValue:"root"},{provide:n.zcH,useFactory:function se(){return new n.zcH},deps:[]},{provide:E,useClass:Ne,multi:!0,deps:[y.qQ,n.SKi,n.Agw]},{provide:E,useClass:p,multi:!0,deps:[y.qQ]},U,P,z,{provide:n._9s,useExisting:U},{provide:y.N0,useClass:x,deps:[]},[]];let Qe=(()=>{class mt{constructor(We){}static withServerTransition(We){return{ngModule:mt,providers:[{provide:n.sZ2,useValue:We.appId}]}}static#e=this.\u0275fac=function(et){return new(et||mt)(n.KVO(je,12))};static#t=this.\u0275mod=n.$C({type:mt});static#n=this.\u0275inj=n.G2t({providers:[...ft,...at],imports:[y.MD,n.Hbi]})}return mt})(),It=(()=>{class mt{constructor(We){this._doc=We}getTitle(){return this._doc.title}setTitle(We){this._doc.title=We||""}static#e=this.\u0275fac=function(et){return new(et||mt)(n.KVO(y.qQ))};static#t=this.\u0275prov=n.jDH({token:mt,factory:function(et){let Mt=null;return Mt=et?new et:function ht(){return new It((0,n.KVO)(y.qQ))}(),Mt},providedIn:"root"})}return mt})();typeof window<"u"&&window;const ct={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},Be=new n.nKC("HammerGestureConfig"),Je=new n.nKC("HammerLoader");let wt=(()=>{class mt{constructor(){this.events=[],this.overrides={}}buildHammer(We){const et=new Hammer(We,this.options);et.get("pinch").set({enable:!0}),et.get("rotate").set({enable:!0});for(const Mt in this.overrides)et.get(Mt).set(this.overrides[Mt]);return et}static#e=this.\u0275fac=function(et){return new(et||mt)};static#t=this.\u0275prov=n.jDH({token:mt,factory:mt.\u0275fac})}return mt})(),Jt=(()=>{class mt extends d{constructor(We,et,Mt,zt){super(We),this._config=et,this.console=Mt,this.loader=zt,this._loaderPromise=null}supports(We){return!(!ct.hasOwnProperty(We.toLowerCase())&&!this.isCustomEvent(We)||!window.Hammer&&!this.loader)}addEventListener(We,et,Mt){const zt=this.manager.getZone();if(et=et.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||zt.runOutsideAngular(()=>this.loader());let sn=!1,un=()=>{sn=!0};return zt.runOutsideAngular(()=>this._loaderPromise.then(()=>{window.Hammer?sn||(un=this.addEventListener(We,et,Mt)):un=()=>{}}).catch(()=>{un=()=>{}})),()=>{un()}}return zt.runOutsideAngular(()=>{const sn=this._config.buildHammer(We),un=function(An){zt.runGuarded(function(){Mt(An)})};return sn.on(et,un),()=>{sn.off(et,un),"function"==typeof sn.destroy&&sn.destroy()}})}isCustomEvent(We){return this._config.events.indexOf(We)>-1}static#e=this.\u0275fac=function(et){return new(et||mt)(n.KVO(y.qQ),n.KVO(Be),n.KVO(n.H3F),n.KVO(Je,8))};static#t=this.\u0275prov=n.jDH({token:mt,factory:mt.\u0275fac})}return mt})(),ln=(()=>{class mt{static#e=this.\u0275fac=function(et){return new(et||mt)};static#t=this.\u0275mod=n.$C({type:mt});static#n=this.\u0275inj=n.G2t({providers:[{provide:E,useClass:Jt,multi:!0,deps:[y.qQ,Be,n.H3F,[new n.Xx1,Je]]},{provide:Be,useClass:wt,deps:[]}]})}return mt})(),pn=(()=>{class mt{static#e=this.\u0275fac=function(et){return new(et||mt)};static#t=this.\u0275prov=n.jDH({token:mt,factory:function(et){let Mt=null;return Mt=et?new(et||mt):n.KVO(Mn),Mt},providedIn:"root"})}return mt})(),Mn=(()=>{class mt extends pn{constructor(We){super(),this._doc=We}sanitize(We,et){if(null==et)return null;switch(We){case n.WPN.NONE:return et;case n.WPN.HTML:return(0,n.ZF7)(et,"HTML")?(0,n.rcV)(et):(0,n.h9k)(this._doc,String(et)).toString();case n.WPN.STYLE:return(0,n.ZF7)(et,"Style")?(0,n.rcV)(et):et;case n.WPN.SCRIPT:if((0,n.ZF7)(et,"Script"))return(0,n.rcV)(et);throw new n.wOt(5200,!1);case n.WPN.URL:return(0,n.ZF7)(et,"URL")?(0,n.rcV)(et):(0,n.$MX)(String(et));case n.WPN.RESOURCE_URL:if((0,n.ZF7)(et,"ResourceURL"))return(0,n.rcV)(et);throw new n.wOt(5201,!1);default:throw new n.wOt(5202,!1)}}bypassSecurityTrustHtml(We){return(0,n.Kcf)(We)}bypassSecurityTrustStyle(We){return(0,n.cWb)(We)}bypassSecurityTrustScript(We){return(0,n.UyX)(We)}bypassSecurityTrustUrl(We){return(0,n.osQ)(We)}bypassSecurityTrustResourceUrl(We){return(0,n.e5t)(We)}static#e=this.\u0275fac=function(et){return new(et||mt)(n.KVO(y.qQ))};static#t=this.\u0275prov=n.jDH({token:mt,factory:function(et){let Mt=null;return Mt=et?new et:function kn(mt){return new Mn(mt.get(y.qQ))}(n.KVO(n.zZn)),Mt},providedIn:"root"})}return mt})()},36075:(He,L,o)=>{"use strict";o.d(L,{nX:()=>vr,Zp:()=>hn,wF:()=>tt,Z:()=>Le,Xk:()=>se,Kp:()=>js,b:()=>ni,Ix:()=>Yi,Wk:()=>bs,iI:()=>Vo,Sd:()=>Je});var n=o(2978),y=o(92319),a=o(38399),Q=o(20756),ie=o(95981),Z=o(199);const w=(0,o(4520).L)(B=>function(){B(this),this.name="EmptyError",this.message="no elements in sequence"});var D=o(47267),x=o(68001),E=o(46106),z=o(48823),d=o(28448),C=o(29086),P=o(16104),k=o(42029),$=o(56610),I=o(93527),g=o(72831),f=o(38486),m=o(20965),T=o(38503),W=o(93422),K=o(9867),re=o(96111);function U(B){return(0,K.N)((ee,M)=>{let J=!1;ee.subscribe((0,re._)(M,ye=>{J=!0,M.next(ye)},()=>{J||M.next(B),M.complete()}))})}function fe(B=ue){return(0,K.N)((ee,M)=>{let J=!1;ee.subscribe((0,re._)(M,ye=>{J=!0,M.next(ye)},()=>J?M.complete():M.error(B())))})}function ue(){return new w}var pe=o(19656);function he(B,ee){const M=arguments.length>=2;return J=>J.pipe(B?(0,T.p)((ye,Oe)=>B(ye,Oe,J)):pe.D,(0,f.s)(1),M?U(ee):fe(()=>new w))}var de=o(54807),_e=o(37236),Ee=o(34526);function q(B){return B<=0?()=>d.w:(0,K.N)((ee,M)=>{let J=[];ee.subscribe((0,re._)(M,ye=>{J.push(ye),B<J.length&&J.shift()},()=>{for(const ye of J)M.next(ye);M.complete()},void 0,()=>{J=null}))})}var p=o(3770),N=o(46347),G=o(79841),R=o(76340),ne=o(83806),S=o(76098);const se="primary",Me=Symbol("RouteTitle");class Fe{constructor(ee){this.params=ee||{}}has(ee){return Object.prototype.hasOwnProperty.call(this.params,ee)}get(ee){if(this.has(ee)){const M=this.params[ee];return Array.isArray(M)?M[0]:M}return null}getAll(ee){if(this.has(ee)){const M=this.params[ee];return Array.isArray(M)?M:[M]}return[]}get keys(){return Object.keys(this.params)}}function Re(B){return new Fe(B)}function je(B,ee,M){const J=M.path.split("/");if(J.length>B.length||"full"===M.pathMatch&&(ee.hasChildren()||J.length<B.length))return null;const ye={};for(let Oe=0;Oe<J.length;Oe++){const Ye=J[Oe],Dt=B[Oe];if(Ye.startsWith(":"))ye[Ye.substring(1)]=Dt;else if(Ye!==Dt.path)return null}return{consumed:B.slice(0,J.length),posParams:ye}}function ft(B,ee){const M=B?Object.keys(B):void 0,J=ee?Object.keys(ee):void 0;if(!M||!J||M.length!=J.length)return!1;let ye;for(let Oe=0;Oe<M.length;Oe++)if(ye=M[Oe],!Qe(B[ye],ee[ye]))return!1;return!0}function Qe(B,ee){if(Array.isArray(B)&&Array.isArray(ee)){if(B.length!==ee.length)return!1;const M=[...B].sort(),J=[...ee].sort();return M.every((ye,Oe)=>J[Oe]===ye)}return B===ee}function nt(B){return B.length>0?B[B.length-1]:null}function _t(B){return(0,y.A)(B)?B:(0,n.jNT)(B)?(0,a.H)(Promise.resolve(B)):(0,Q.of)(B)}const Ge={exact:function At(B,ee,M){if(!ct(B.segments,ee.segments)||!Bt(B.segments,ee.segments,M)||B.numberOfChildren!==ee.numberOfChildren)return!1;for(const J in ee.children)if(!B.children[J]||!At(B.children[J],ee.children[J],M))return!1;return!0},subset:Wt},ht={exact:function Rt(B,ee){return ft(B,ee)},subset:function Ut(B,ee){return Object.keys(ee).length<=Object.keys(B).length&&Object.keys(ee).every(M=>Qe(B[M],ee[M]))},ignored:()=>!0};function It(B,ee,M){return Ge[M.paths](B.root,ee.root,M.matrixParams)&&ht[M.queryParams](B.queryParams,ee.queryParams)&&!("exact"===M.fragment&&B.fragment!==ee.fragment)}function Wt(B,ee,M){return it(B,ee,ee.segments,M)}function it(B,ee,M,J){if(B.segments.length>M.length){const ye=B.segments.slice(0,M.length);return!(!ct(ye,M)||ee.hasChildren()||!Bt(ye,M,J))}if(B.segments.length===M.length){if(!ct(B.segments,M)||!Bt(B.segments,M,J))return!1;for(const ye in ee.children)if(!B.children[ye]||!Wt(B.children[ye],ee.children[ye],J))return!1;return!0}{const ye=M.slice(0,B.segments.length),Oe=M.slice(B.segments.length);return!!(ct(B.segments,ye)&&Bt(B.segments,ye,J)&&B.children[se])&&it(B.children[se],ee,Oe,J)}}function Bt(B,ee,M){return ee.every((J,ye)=>ht[M](B[ye].parameters,J.parameters))}class rt{constructor(ee=new Pt([],{}),M={},J=null){this.root=ee,this.queryParams=M,this.fragment=J}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Re(this.queryParams)),this._queryParamMap}toString(){return Jt.serialize(this)}}class Pt{constructor(ee,M){this.segments=ee,this.children=M,this.parent=null,Object.values(M).forEach(J=>J.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ln(this)}}class vt{constructor(ee,M){this.path=ee,this.parameters=M}get parameterMap(){return this._parameterMap||(this._parameterMap=Re(this.parameters)),this._parameterMap}toString(){return Jn(this)}}function ct(B,ee){return B.length===ee.length&&B.every((M,J)=>M.path===ee[J].path)}let Je=(()=>{class B{static#e=this.\u0275fac=function(J){return new(J||B)};static#t=this.\u0275prov=n.jDH({token:B,factory:function(){return new wt},providedIn:"root"})}return B})();class wt{parse(ee){const M=new un(ee);return new rt(M.parseRootSegment(),M.parseQueryParams(),M.parseFragment())}serialize(ee){const M=`/${pn(ee.root,!0)}`,J=function ii(B){const ee=Object.keys(B).map(M=>{const J=B[M];return Array.isArray(J)?J.map(ye=>`${Mn(M)}=${Mn(ye)}`).join("&"):`${Mn(M)}=${Mn(J)}`}).filter(M=>!!M);return ee.length?`?${ee.join("&")}`:""}(ee.queryParams);return`${M}${J}${"string"==typeof ee.fragment?`#${function wn(B){return encodeURI(B)}(ee.fragment)}`:""}`}}const Jt=new wt;function ln(B){return B.segments.map(ee=>Jn(ee)).join("/")}function pn(B,ee){if(!B.hasChildren())return ln(B);if(ee){const M=B.children[se]?pn(B.children[se],!1):"",J=[];return Object.entries(B.children).forEach(([ye,Oe])=>{ye!==se&&J.push(`${ye}:${pn(Oe,!1)}`)}),J.length>0?`${M}(${J.join("//")})`:M}{const M=function Be(B,ee){let M=[];return Object.entries(B.children).forEach(([J,ye])=>{J===se&&(M=M.concat(ee(ye,J)))}),Object.entries(B.children).forEach(([J,ye])=>{J!==se&&(M=M.concat(ee(ye,J)))}),M}(B,(J,ye)=>ye===se?[pn(B.children[se],!1)]:[`${ye}:${pn(J,!1)}`]);return 1===Object.keys(B.children).length&&null!=B.children[se]?`${ln(B)}/${M[0]}`:`${ln(B)}/(${M.join("//")})`}}function kn(B){return encodeURIComponent(B).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Mn(B){return kn(B).replace(/%3B/gi,";")}function Bn(B){return kn(B).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Zn(B){return decodeURIComponent(B)}function Yn(B){return Zn(B.replace(/\+/g,"%20"))}function Jn(B){return`${Bn(B.path)}${function In(B){return Object.keys(B).map(ee=>`;${Bn(ee)}=${Bn(B[ee])}`).join("")}(B.parameters)}`}const yi=/^[^\/()?;#]+/;function mt(B){const ee=B.match(yi);return ee?ee[0]:""}const yt=/^[^\/()?;=#]+/,et=/^[^=?&#]+/,zt=/^[^&#]+/;class un{constructor(ee){this.url=ee,this.remaining=ee}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Pt([],{}):new Pt([],this.parseChildren())}parseQueryParams(){const ee={};if(this.consumeOptional("?"))do{this.parseQueryParam(ee)}while(this.consumeOptional("&"));return ee}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const ee=[];for(this.peekStartsWith("(")||ee.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),ee.push(this.parseSegment());let M={};this.peekStartsWith("/(")&&(this.capture("/"),M=this.parseParens(!0));let J={};return this.peekStartsWith("(")&&(J=this.parseParens(!1)),(ee.length>0||Object.keys(M).length>0)&&(J[se]=new Pt(ee,M)),J}parseSegment(){const ee=mt(this.remaining);if(""===ee&&this.peekStartsWith(";"))throw new n.wOt(4009,!1);return this.capture(ee),new vt(Zn(ee),this.parseMatrixParams())}parseMatrixParams(){const ee={};for(;this.consumeOptional(";");)this.parseParam(ee);return ee}parseParam(ee){const M=function We(B){const ee=B.match(yt);return ee?ee[0]:""}(this.remaining);if(!M)return;this.capture(M);let J="";if(this.consumeOptional("=")){const ye=mt(this.remaining);ye&&(J=ye,this.capture(J))}ee[Zn(M)]=Zn(J)}parseQueryParam(ee){const M=function Mt(B){const ee=B.match(et);return ee?ee[0]:""}(this.remaining);if(!M)return;this.capture(M);let J="";if(this.consumeOptional("=")){const Ye=function sn(B){const ee=B.match(zt);return ee?ee[0]:""}(this.remaining);Ye&&(J=Ye,this.capture(J))}const ye=Yn(M),Oe=Yn(J);if(ee.hasOwnProperty(ye)){let Ye=ee[ye];Array.isArray(Ye)||(Ye=[Ye],ee[ye]=Ye),Ye.push(Oe)}else ee[ye]=Oe}parseParens(ee){const M={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const J=mt(this.remaining),ye=this.remaining[J.length];if("/"!==ye&&")"!==ye&&";"!==ye)throw new n.wOt(4010,!1);let Oe;J.indexOf(":")>-1?(Oe=J.slice(0,J.indexOf(":")),this.capture(Oe),this.capture(":")):ee&&(Oe=se);const Ye=this.parseChildren();M[Oe]=1===Object.keys(Ye).length?Ye[se]:new Pt([],Ye),this.consumeOptional("//")}return M}peekStartsWith(ee){return this.remaining.startsWith(ee)}consumeOptional(ee){return!!this.peekStartsWith(ee)&&(this.remaining=this.remaining.substring(ee.length),!0)}capture(ee){if(!this.consumeOptional(ee))throw new n.wOt(4011,!1)}}function An(B){return B.segments.length>0?new Pt([],{[se]:B}):B}function dn(B){const ee={};for(const J of Object.keys(B.children)){const Oe=dn(B.children[J]);if(J===se&&0===Oe.segments.length&&Oe.hasChildren())for(const[Ye,Dt]of Object.entries(Oe.children))ee[Ye]=Dt;else(Oe.segments.length>0||Oe.hasChildren())&&(ee[J]=Oe)}return function ri(B){if(1===B.numberOfChildren&&B.children[se]){const ee=B.children[se];return new Pt(B.segments.concat(ee.segments),ee.children)}return B}(new Pt(B.segments,ee))}function si(B){return B instanceof rt}function ot(B){let ee;const ye=An(function M(Oe){const Ye={};for(const St of Oe.children){const an=M(St);Ye[St.outlet]=an}const Dt=new Pt(Oe.url,Ye);return Oe===B&&(ee=Dt),Dt}(B.root));return ee??ye}function ut(B,ee,M,J){let ye=B;for(;ye.parent;)ye=ye.parent;if(0===ee.length)return Xt(ye,ye,ye,M,J);const Oe=function qt(B){if("string"==typeof B[0]&&1===B.length&&"/"===B[0])return new Sn(!0,0,B);let ee=0,M=!1;const J=B.reduce((ye,Oe,Ye)=>{if("object"==typeof Oe&&null!=Oe){if(Oe.outlets){const Dt={};return Object.entries(Oe.outlets).forEach(([St,an])=>{Dt[St]="string"==typeof an?an.split("/"):an}),[...ye,{outlets:Dt}]}if(Oe.segmentPath)return[...ye,Oe.segmentPath]}return"string"!=typeof Oe?[...ye,Oe]:0===Ye?(Oe.split("/").forEach((Dt,St)=>{0==St&&"."===Dt||(0==St&&""===Dt?M=!0:".."===Dt?ee++:""!=Dt&&ye.push(Dt))}),ye):[...ye,Oe]},[]);return new Sn(M,ee,J)}(ee);if(Oe.toRoot())return Xt(ye,ye,new Pt([],{}),M,J);const Ye=function ti(B,ee,M){if(B.isAbsolute)return new Un(ee,!0,0);if(!M)return new Un(ee,!1,NaN);if(null===M.parent)return new Un(M,!0,0);const J=Lt(B.commands[0])?0:1;return function qn(B,ee,M){let J=B,ye=ee,Oe=M;for(;Oe>ye;){if(Oe-=ye,J=J.parent,!J)throw new n.wOt(4005,!1);ye=J.segments.length}return new Un(J,!1,ye-Oe)}(M,M.segments.length-1+J,B.numberOfDoubleDots)}(Oe,ye,B),Dt=Ye.processChildren?Qn(Ye.segmentGroup,Ye.index,Oe.commands):xn(Ye.segmentGroup,Ye.index,Oe.commands);return Xt(ye,Ye.segmentGroup,Dt,M,J)}function Lt(B){return"object"==typeof B&&null!=B&&!B.outlets&&!B.segmentPath}function Ot(B){return"object"==typeof B&&null!=B&&B.outlets}function Xt(B,ee,M,J,ye){let Ye,Oe={};J&&Object.entries(J).forEach(([St,an])=>{Oe[St]=Array.isArray(an)?an.map(Vn=>`${Vn}`):`${an}`}),Ye=B===ee?M:jt(B,ee,M);const Dt=An(dn(Ye));return new rt(Dt,Oe,ye)}function jt(B,ee,M){const J={};return Object.entries(B.children).forEach(([ye,Oe])=>{J[ye]=Oe===ee?M:jt(Oe,ee,M)}),new Pt(B.segments,J)}class Sn{constructor(ee,M,J){if(this.isAbsolute=ee,this.numberOfDoubleDots=M,this.commands=J,ee&&J.length>0&&Lt(J[0]))throw new n.wOt(4003,!1);const ye=J.find(Ot);if(ye&&ye!==nt(J))throw new n.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Un{constructor(ee,M,J){this.segmentGroup=ee,this.processChildren=M,this.index=J}}function xn(B,ee,M){if(B||(B=new Pt([],{})),0===B.segments.length&&B.hasChildren())return Qn(B,ee,M);const J=function bn(B,ee,M){let J=0,ye=ee;const Oe={match:!1,pathIndex:0,commandIndex:0};for(;ye<B.segments.length;){if(J>=M.length)return Oe;const Ye=B.segments[ye],Dt=M[J];if(Ot(Dt))break;const St=`${Dt}`,an=J<M.length-1?M[J+1]:null;if(ye>0&&void 0===St)break;if(St&&an&&"object"==typeof an&&void 0===an.outlets){if(!Ln(St,an,Ye))return Oe;J+=2}else{if(!Ln(St,{},Ye))return Oe;J++}ye++}return{match:!0,pathIndex:ye,commandIndex:J}}(B,ee,M),ye=M.slice(J.commandIndex);if(J.match&&J.pathIndex<B.segments.length){const Oe=new Pt(B.segments.slice(0,J.pathIndex),{});return Oe.children[se]=new Pt(B.segments.slice(J.pathIndex),B.children),Qn(Oe,0,ye)}return J.match&&0===ye.length?new Pt(B.segments,{}):J.match&&!B.hasChildren()?_n(B,ee,M):J.match?Qn(B,0,ye):_n(B,ee,M)}function Qn(B,ee,M){if(0===M.length)return new Pt(B.segments,{});{const J=function jn(B){return Ot(B[0])?B[0].outlets:{[se]:B}}(M),ye={};if(Object.keys(J).some(Oe=>Oe!==se)&&B.children[se]&&1===B.numberOfChildren&&0===B.children[se].segments.length){const Oe=Qn(B.children[se],ee,M);return new Pt(B.segments,Oe.children)}return Object.entries(J).forEach(([Oe,Ye])=>{"string"==typeof Ye&&(Ye=[Ye]),null!==Ye&&(ye[Oe]=xn(B.children[Oe],ee,Ye))}),Object.entries(B.children).forEach(([Oe,Ye])=>{void 0===J[Oe]&&(ye[Oe]=Ye)}),new Pt(B.segments,ye)}}function _n(B,ee,M){const J=B.segments.slice(0,ee);let ye=0;for(;ye<M.length;){const Oe=M[ye];if(Ot(Oe)){const St=Ci(Oe.outlets);return new Pt(J,St)}if(0===ye&&Lt(M[0])){J.push(new vt(B.segments[ee].path,fi(M[0]))),ye++;continue}const Ye=Ot(Oe)?Oe.outlets[se]:`${Oe}`,Dt=ye<M.length-1?M[ye+1]:null;Ye&&Dt&&Lt(Dt)?(J.push(new vt(Ye,fi(Dt))),ye+=2):(J.push(new vt(Ye,{})),ye++)}return new Pt(J,{})}function Ci(B){const ee={};return Object.entries(B).forEach(([M,J])=>{"string"==typeof J&&(J=[J]),null!==J&&(ee[M]=_n(new Pt([],{}),0,J))}),ee}function fi(B){const ee={};return Object.entries(B).forEach(([M,J])=>ee[M]=`${J}`),ee}function Ln(B,ee,M){return B==M.path&&ft(ee,M.parameters)}const Xn="imperative";class oi{constructor(ee,M){this.id=ee,this.url=M}}class Le extends oi{constructor(ee,M,J="imperative",ye=null){super(ee,M),this.type=0,this.navigationTrigger=J,this.restoredState=ye}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class tt extends oi{constructor(ee,M,J){super(ee,M),this.urlAfterRedirects=J,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class te extends oi{constructor(ee,M,J,ye){super(ee,M),this.reason=J,this.code=ye,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class be extends oi{constructor(ee,M,J,ye){super(ee,M),this.reason=J,this.code=ye,this.type=16}}class Ie extends oi{constructor(ee,M,J,ye){super(ee,M),this.error=J,this.target=ye,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Pe extends oi{constructor(ee,M,J,ye){super(ee,M),this.urlAfterRedirects=J,this.state=ye,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ke extends oi{constructor(ee,M,J,ye){super(ee,M),this.urlAfterRedirects=J,this.state=ye,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Se extends oi{constructor(ee,M,J,ye,Oe){super(ee,M),this.urlAfterRedirects=J,this.state=ye,this.shouldActivate=Oe,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ue extends oi{constructor(ee,M,J,ye){super(ee,M),this.urlAfterRedirects=J,this.state=ye,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Xe extends oi{constructor(ee,M,J,ye){super(ee,M),this.urlAfterRedirects=J,this.state=ye,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class lt{constructor(ee){this.route=ee,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class pt{constructor(ee){this.route=ee,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class kt{constructor(ee){this.snapshot=ee,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Kt{constructor(ee){this.snapshot=ee,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Zt{constructor(ee){this.snapshot=ee,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class we{constructor(ee){this.snapshot=ee,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ke{constructor(ee,M,J){this.routerEvent=ee,this.position=M,this.anchor=J,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Ze{}class Ct{constructor(ee){this.url=ee}}class nn{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new hn,this.attachRef=null}}let hn=(()=>{class B{constructor(){this.contexts=new Map}onChildOutletCreated(M,J){const ye=this.getOrCreateContext(M);ye.outlet=J,this.contexts.set(M,ye)}onChildOutletDestroyed(M){const J=this.getContext(M);J&&(J.outlet=null,J.attachRef=null)}onOutletDeactivated(){const M=this.contexts;return this.contexts=new Map,M}onOutletReAttached(M){this.contexts=M}getOrCreateContext(M){let J=this.getContext(M);return J||(J=new nn,this.contexts.set(M,J)),J}getContext(M){return this.contexts.get(M)||null}static#e=this.\u0275fac=function(J){return new(J||B)};static#t=this.\u0275prov=n.jDH({token:B,factory:B.\u0275fac,providedIn:"root"})}return B})();class pi{constructor(ee){this._root=ee}get root(){return this._root.value}parent(ee){const M=this.pathFromRoot(ee);return M.length>1?M[M.length-2]:null}children(ee){const M=ai(ee,this._root);return M?M.children.map(J=>J.value):[]}firstChild(ee){const M=ai(ee,this._root);return M&&M.children.length>0?M.children[0].value:null}siblings(ee){const M=_i(ee,this._root);return M.length<2?[]:M[M.length-2].children.map(ye=>ye.value).filter(ye=>ye!==ee)}pathFromRoot(ee){return _i(ee,this._root).map(M=>M.value)}}function ai(B,ee){if(B===ee.value)return ee;for(const M of ee.children){const J=ai(B,M);if(J)return J}return null}function _i(B,ee){if(B===ee.value)return[ee];for(const M of ee.children){const J=_i(B,M);if(J.length)return J.unshift(ee),J}return[]}class fn{constructor(ee,M){this.value=ee,this.children=M}toString(){return`TreeNode(${this.value})`}}function Hn(B){const ee={};return B&&B.children.forEach(M=>ee[M.value.outlet]=M),ee}class Ti extends pi{constructor(ee,M){super(ee),this.snapshot=M,gi(this,ee)}toString(){return this.snapshot.toString()}}function Rr(B,ee){const M=function Ii(B,ee){const Ye=new Lr([],{},{},"",{},se,ee,null,{});return new zr("",new fn(Ye,[]))}(0,ee),J=new ie.t([new vt("",{})]),ye=new ie.t({}),Oe=new ie.t({}),Ye=new ie.t({}),Dt=new ie.t(""),St=new vr(J,ye,Ye,Dt,Oe,se,ee,M.root);return St.snapshot=M.root,new Ti(new fn(St,[]),M)}class vr{constructor(ee,M,J,ye,Oe,Ye,Dt,St){this.urlSubject=ee,this.paramsSubject=M,this.queryParamsSubject=J,this.fragmentSubject=ye,this.dataSubject=Oe,this.outlet=Ye,this.component=Dt,this._futureSnapshot=St,this.title=this.dataSubject?.pipe((0,I.T)(an=>an[Me]))??(0,Q.of)(void 0),this.url=ee,this.params=M,this.queryParams=J,this.fragment=ye,this.data=Oe}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._paramMap=this.params.pipe((0,I.T)(ee=>Re(ee)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,I.T)(ee=>Re(ee)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function rr(B,ee="emptyOnly"){const M=B.pathFromRoot;let J=0;if("always"!==ee)for(J=M.length-1;J>=1;){const ye=M[J],Oe=M[J-1];if(ye.routeConfig&&""===ye.routeConfig.path)J--;else{if(Oe.component)break;J--}}return function Hr(B){return B.reduce((ee,M)=>({params:{...ee.params,...M.params},data:{...ee.data,...M.data},resolve:{...M.data,...ee.resolve,...M.routeConfig?.data,...M._resolvedData}}),{params:{},data:{},resolve:{}})}(M.slice(J))}class Lr{get title(){return this.data?.[Me]}constructor(ee,M,J,ye,Oe,Ye,Dt,St,an){this.url=ee,this.params=M,this.queryParams=J,this.fragment=ye,this.data=Oe,this.outlet=Ye,this.component=Dt,this.routeConfig=St,this._resolve=an}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._paramMap=Re(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Re(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(J=>J.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class zr extends pi{constructor(ee,M){super(M),this.url=ee,gi(this,M)}toString(){return tn(this._root)}}function gi(B,ee){ee.value._routerState=B,ee.children.forEach(M=>gi(B,M))}function tn(B){const ee=B.children.length>0?` { ${B.children.map(tn).join(", ")} } `:"";return`${B.value}${ee}`}function En(B){if(B.snapshot){const ee=B.snapshot,M=B._futureSnapshot;B.snapshot=M,ft(ee.queryParams,M.queryParams)||B.queryParamsSubject.next(M.queryParams),ee.fragment!==M.fragment&&B.fragmentSubject.next(M.fragment),ft(ee.params,M.params)||B.paramsSubject.next(M.params),function at(B,ee){if(B.length!==ee.length)return!1;for(let M=0;M<B.length;++M)if(!ft(B[M],ee[M]))return!1;return!0}(ee.url,M.url)||B.urlSubject.next(M.url),ft(ee.data,M.data)||B.dataSubject.next(M.data)}else B.snapshot=B._futureSnapshot,B.dataSubject.next(B._futureSnapshot.data)}function li(B,ee){const M=ft(B.params,ee.params)&&function $t(B,ee){return ct(B,ee)&&B.every((M,J)=>ft(M.parameters,ee[J].parameters))}(B.url,ee.url);return M&&!(!B.parent!=!ee.parent)&&(!B.parent||li(B.parent,ee.parent))}let Pi=(()=>{class B{constructor(){this.activated=null,this._activatedRoute=null,this.name=se,this.activateEvents=new n.bkB,this.deactivateEvents=new n.bkB,this.attachEvents=new n.bkB,this.detachEvents=new n.bkB,this.parentContexts=(0,n.WQX)(hn),this.location=(0,n.WQX)(n.c1b),this.changeDetector=(0,n.WQX)(n.gRc),this.environmentInjector=(0,n.WQX)(n.uvJ),this.inputBinder=(0,n.WQX)(Oi,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(M){if(M.name){const{firstChange:J,previousValue:ye}=M.name;if(J)return;this.isTrackedInParentContexts(ye)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(ye)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(M){return this.parentContexts.getContext(M)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const M=this.parentContexts.getContext(this.name);M?.route&&(M.attachRef?this.attach(M.attachRef,M.route):this.activateWith(M.route,M.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new n.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new n.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new n.wOt(4012,!1);this.location.detach();const M=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(M.instance),M}attach(M,J){this.activated=M,this._activatedRoute=J,this.location.insert(M.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(M.instance)}deactivate(){if(this.activated){const M=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(M)}}activateWith(M,J){if(this.isActivated)throw new n.wOt(4013,!1);this._activatedRoute=M;const ye=this.location,Ye=M.snapshot.component,Dt=this.parentContexts.getOrCreateContext(this.name).children,St=new ji(M,Dt,ye.injector);this.activated=ye.createComponent(Ye,{index:ye.length,injector:St,environmentInjector:J??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(J){return new(J||B)};static#t=this.\u0275dir=n.FsC({type:B,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[n.OA$]})}return B})();class ji{constructor(ee,M,J){this.route=ee,this.childContexts=M,this.parent=J}get(ee,M){return ee===vr?this.route:ee===hn?this.childContexts:this.parent.get(ee,M)}}const Oi=new n.nKC("");let yr=(()=>{class B{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(M){this.unsubscribeFromRouteData(M),this.subscribeToRouteData(M)}unsubscribeFromRouteData(M){this.outletDataSubscriptions.get(M)?.unsubscribe(),this.outletDataSubscriptions.delete(M)}subscribeToRouteData(M){const{activatedRoute:J}=M,ye=(0,Z.z)([J.queryParams,J.params,J.data]).pipe((0,g.n)(([Oe,Ye,Dt],St)=>(Dt={...Oe,...Ye,...Dt},0===St?(0,Q.of)(Dt):Promise.resolve(Dt)))).subscribe(Oe=>{if(!M.isActivated||!M.activatedComponentRef||M.activatedRoute!==J||null===J.component)return void this.unsubscribeFromRouteData(M);const Ye=(0,n.HJs)(J.component);if(Ye)for(const{templateName:Dt}of Ye.inputs)M.activatedComponentRef.setInput(Dt,Oe[Dt]);else this.unsubscribeFromRouteData(M)});this.outletDataSubscriptions.set(M,ye)}static#e=this.\u0275fac=function(J){return new(J||B)};static#t=this.\u0275prov=n.jDH({token:B,factory:B.\u0275fac})}return B})();function Ri(B,ee,M){if(M&&B.shouldReuseRoute(ee.value,M.value.snapshot)){const J=M.value;J._futureSnapshot=ee.value;const ye=function wr(B,ee,M){return ee.children.map(J=>{for(const ye of M.children)if(B.shouldReuseRoute(J.value,ye.value.snapshot))return Ri(B,J,ye);return Ri(B,J)})}(B,ee,M);return new fn(J,ye)}{if(B.shouldAttach(ee.value)){const Oe=B.retrieve(ee.value);if(null!==Oe){const Ye=Oe.route;return Ye.value._futureSnapshot=ee.value,Ye.children=ee.children.map(Dt=>Ri(B,Dt)),Ye}}const J=function yn(B){return new vr(new ie.t(B.url),new ie.t(B.params),new ie.t(B.queryParams),new ie.t(B.fragment),new ie.t(B.data),B.outlet,B.component,B)}(ee.value),ye=ee.children.map(Oe=>Ri(B,Oe));return new fn(J,ye)}}const sr="ngNavigationCancelingError";function Wr(B,ee){const{redirectTo:M,navigationBehaviorOptions:J}=si(ee)?{redirectTo:ee,navigationBehaviorOptions:void 0}:ee,ye=pr(!1,0,ee);return ye.url=M,ye.navigationBehaviorOptions=J,ye}function pr(B,ee,M){const J=new Error("NavigationCancelingError: "+(B||""));return J[sr]=!0,J.cancellationCode=ee,M&&(J.url=M),J}function Tr(B){return B&&B[sr]}let er=(()=>{class B{static#e=this.\u0275fac=function(J){return new(J||B)};static#t=this.\u0275cmp=n.VBU({type:B,selectors:[["ng-component"]],standalone:!0,features:[n.aNF],decls:1,vars:0,template:function(J,ye){1&J&&n.nrm(0,"router-outlet")},dependencies:[Pi],encapsulation:2})}return B})();function kr(B){const ee=B.children&&B.children.map(kr),M=ee?{...B,children:ee}:{...B};return!M.component&&!M.loadComponent&&(ee||M.loadChildren)&&M.outlet&&M.outlet!==se&&(M.component=er),M}function Ni(B){return B.outlet||se}function nr(B){if(!B)return null;if(B.routeConfig?._injector)return B.routeConfig._injector;for(let ee=B.parent;ee;ee=ee.parent){const M=ee.routeConfig;if(M?._loadedInjector)return M._loadedInjector;if(M?._injector)return M._injector}return null}class Bi{constructor(ee,M,J,ye,Oe){this.routeReuseStrategy=ee,this.futureState=M,this.currState=J,this.forwardEvent=ye,this.inputBindingEnabled=Oe}activate(ee){const M=this.futureState._root,J=this.currState?this.currState._root:null;this.deactivateChildRoutes(M,J,ee),En(this.futureState.root),this.activateChildRoutes(M,J,ee)}deactivateChildRoutes(ee,M,J){const ye=Hn(M);ee.children.forEach(Oe=>{const Ye=Oe.value.outlet;this.deactivateRoutes(Oe,ye[Ye],J),delete ye[Ye]}),Object.values(ye).forEach(Oe=>{this.deactivateRouteAndItsChildren(Oe,J)})}deactivateRoutes(ee,M,J){const ye=ee.value,Oe=M?M.value:null;if(ye===Oe)if(ye.component){const Ye=J.getContext(ye.outlet);Ye&&this.deactivateChildRoutes(ee,M,Ye.children)}else this.deactivateChildRoutes(ee,M,J);else Oe&&this.deactivateRouteAndItsChildren(M,J)}deactivateRouteAndItsChildren(ee,M){ee.value.component&&this.routeReuseStrategy.shouldDetach(ee.value.snapshot)?this.detachAndStoreRouteSubtree(ee,M):this.deactivateRouteAndOutlet(ee,M)}detachAndStoreRouteSubtree(ee,M){const J=M.getContext(ee.value.outlet),ye=J&&ee.value.component?J.children:M,Oe=Hn(ee);for(const Ye of Object.keys(Oe))this.deactivateRouteAndItsChildren(Oe[Ye],ye);if(J&&J.outlet){const Ye=J.outlet.detach(),Dt=J.children.onOutletDeactivated();this.routeReuseStrategy.store(ee.value.snapshot,{componentRef:Ye,route:ee,contexts:Dt})}}deactivateRouteAndOutlet(ee,M){const J=M.getContext(ee.value.outlet),ye=J&&ee.value.component?J.children:M,Oe=Hn(ee);for(const Ye of Object.keys(Oe))this.deactivateRouteAndItsChildren(Oe[Ye],ye);J&&(J.outlet&&(J.outlet.deactivate(),J.children.onOutletDeactivated()),J.attachRef=null,J.route=null)}activateChildRoutes(ee,M,J){const ye=Hn(M);ee.children.forEach(Oe=>{this.activateRoutes(Oe,ye[Oe.value.outlet],J),this.forwardEvent(new we(Oe.value.snapshot))}),ee.children.length&&this.forwardEvent(new Kt(ee.value.snapshot))}activateRoutes(ee,M,J){const ye=ee.value,Oe=M?M.value:null;if(En(ye),ye===Oe)if(ye.component){const Ye=J.getOrCreateContext(ye.outlet);this.activateChildRoutes(ee,M,Ye.children)}else this.activateChildRoutes(ee,M,J);else if(ye.component){const Ye=J.getOrCreateContext(ye.outlet);if(this.routeReuseStrategy.shouldAttach(ye.snapshot)){const Dt=this.routeReuseStrategy.retrieve(ye.snapshot);this.routeReuseStrategy.store(ye.snapshot,null),Ye.children.onOutletReAttached(Dt.contexts),Ye.attachRef=Dt.componentRef,Ye.route=Dt.route.value,Ye.outlet&&Ye.outlet.attach(Dt.componentRef,Dt.route.value),En(Dt.route.value),this.activateChildRoutes(ee,null,Ye.children)}else{const Dt=nr(ye.snapshot);Ye.attachRef=null,Ye.route=ye,Ye.injector=Dt,Ye.outlet&&Ye.outlet.activateWith(ye,Ye.injector),this.activateChildRoutes(ee,null,Ye.children)}}else this.activateChildRoutes(ee,null,J)}}class So{constructor(ee){this.path=ee,this.route=this.path[this.path.length-1]}}class ki{constructor(ee,M){this.component=ee,this.route=M}}function $i(B,ee,M){const J=B._root;return Fr(J,ee?ee._root:null,M,[J.value])}function cr(B,ee){const M=Symbol(),J=ee.get(B,M);return J===M?"function"!=typeof B||(0,n.LfX)(B)?ee.get(B):B:J}function Fr(B,ee,M,J,ye={canDeactivateChecks:[],canActivateChecks:[]}){const Oe=Hn(ee);return B.children.forEach(Ye=>{(function Cr(B,ee,M,J,ye={canDeactivateChecks:[],canActivateChecks:[]}){const Oe=B.value,Ye=ee?ee.value:null,Dt=M?M.getContext(B.value.outlet):null;if(Ye&&Oe.routeConfig===Ye.routeConfig){const St=function ws(B,ee,M){if("function"==typeof M)return M(B,ee);switch(M){case"pathParamsChange":return!ct(B.url,ee.url);case"pathParamsOrQueryParamsChange":return!ct(B.url,ee.url)||!ft(B.queryParams,ee.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!li(B,ee)||!ft(B.queryParams,ee.queryParams);default:return!li(B,ee)}}(Ye,Oe,Oe.routeConfig.runGuardsAndResolvers);St?ye.canActivateChecks.push(new So(J)):(Oe.data=Ye.data,Oe._resolvedData=Ye._resolvedData),Fr(B,ee,Oe.component?Dt?Dt.children:null:M,J,ye),St&&Dt&&Dt.outlet&&Dt.outlet.isActivated&&ye.canDeactivateChecks.push(new ki(Dt.outlet.component,Ye))}else Ye&&b(ee,Dt,ye),ye.canActivateChecks.push(new So(J)),Fr(B,null,Oe.component?Dt?Dt.children:null:M,J,ye)})(Ye,Oe[Ye.value.outlet],M,J.concat([Ye.value]),ye),delete Oe[Ye.value.outlet]}),Object.entries(Oe).forEach(([Ye,Dt])=>b(Dt,M.getContext(Ye),ye)),ye}function b(B,ee,M){const J=Hn(B),ye=B.value;Object.entries(J).forEach(([Oe,Ye])=>{b(Ye,ye.component?ee?ee.children.getContext(Oe):null:ee,M)}),M.canDeactivateChecks.push(new ki(ye.component&&ee&&ee.outlet&&ee.outlet.isActivated?ee.outlet.component:null,ye))}function ve(B){return"function"==typeof B}function gn(B){return B instanceof w||"EmptyError"===B?.name}const Kn=Symbol("INITIAL_VALUE");function Di(){return(0,g.n)(B=>(0,Z.z)(B.map(ee=>ee.pipe((0,f.s)(1),(0,m.Z)(Kn)))).pipe((0,I.T)(ee=>{for(const M of ee)if(!0!==M){if(M===Kn)return Kn;if(!1===M||M instanceof rt)return M}return!0}),(0,T.p)(ee=>ee!==Kn),(0,f.s)(1)))}function Br(B){return(0,E.F)((0,_e.M)(ee=>{if(si(ee))throw Wr(0,ee)}),(0,I.T)(ee=>!0===ee))}class ds{constructor(ee){this.segmentGroup=ee||null}}class na{constructor(ee){this.urlTree=ee}}function Fi(B){return(0,z.$)(new ds(B))}function _s(B){return(0,z.$)(new na(B))}class Po{constructor(ee,M){this.urlSerializer=ee,this.urlTree=M}noMatchError(ee){return new n.wOt(4002,!1)}lineralizeSegments(ee,M){let J=[],ye=M.root;for(;;){if(J=J.concat(ye.segments),0===ye.numberOfChildren)return(0,Q.of)(J);if(ye.numberOfChildren>1||!ye.children[se])return(0,z.$)(new n.wOt(4e3,!1));ye=ye.children[se]}}applyRedirectCommands(ee,M,J){return this.applyRedirectCreateUrlTree(M,this.urlSerializer.parse(M),ee,J)}applyRedirectCreateUrlTree(ee,M,J,ye){const Oe=this.createSegmentGroup(ee,M.root,J,ye);return new rt(Oe,this.createQueryParams(M.queryParams,this.urlTree.queryParams),M.fragment)}createQueryParams(ee,M){const J={};return Object.entries(ee).forEach(([ye,Oe])=>{if("string"==typeof Oe&&Oe.startsWith(":")){const Dt=Oe.substring(1);J[ye]=M[Dt]}else J[ye]=Oe}),J}createSegmentGroup(ee,M,J,ye){const Oe=this.createSegments(ee,M.segments,J,ye);let Ye={};return Object.entries(M.children).forEach(([Dt,St])=>{Ye[Dt]=this.createSegmentGroup(ee,St,J,ye)}),new Pt(Oe,Ye)}createSegments(ee,M,J,ye){return M.map(Oe=>Oe.path.startsWith(":")?this.findPosParam(ee,Oe,ye):this.findOrReturn(Oe,J))}findPosParam(ee,M,J){const ye=J[M.path.substring(1)];if(!ye)throw new n.wOt(4001,!1);return ye}findOrReturn(ee,M){let J=0;for(const ye of M){if(ye.path===ee.path)return M.splice(J),ye;J++}return ee}}const hs={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ts(B,ee,M,J,ye){const Oe=fs(B,ee,M);return Oe.matched?(J=function or(B,ee){return B.providers&&!B._injector&&(B._injector=(0,n.Ol2)(B.providers,ee,`Route: ${B.path}`)),B._injector??ee}(ee,J),function br(B,ee,M,J){const ye=ee.canMatch;if(!ye||0===ye.length)return(0,Q.of)(!0);const Oe=ye.map(Ye=>{const Dt=cr(Ye,B);return _t(function De(B){return B&&ve(B.canMatch)}(Dt)?Dt.canMatch(ee,M):B.runInContext(()=>Dt(ee,M)))});return(0,Q.of)(Oe).pipe(Di(),Br())}(J,ee,M).pipe((0,I.T)(Ye=>!0===Ye?Oe:{...hs}))):(0,Q.of)(Oe)}function fs(B,ee,M){if(""===ee.path)return"full"===ee.pathMatch&&(B.hasChildren()||M.length>0)?{...hs}:{matched:!0,consumedSegments:[],remainingSegments:M,parameters:{},positionalParamSegments:{}};const ye=(ee.matcher||je)(M,B,ee);if(!ye)return{...hs};const Oe={};Object.entries(ye.posParams??{}).forEach(([Dt,St])=>{Oe[Dt]=St.path});const Ye=ye.consumed.length>0?{...Oe,...ye.consumed[ye.consumed.length-1].parameters}:Oe;return{matched:!0,consumedSegments:ye.consumed,remainingSegments:M.slice(ye.consumed.length),parameters:Ye,positionalParamSegments:ye.posParams??{}}}function po(B,ee,M,J){return M.length>0&&function ia(B,ee,M){return M.some(J=>io(B,ee,J)&&Ni(J)!==se)}(B,M,J)?{segmentGroup:new Pt(ee,go(J,new Pt(M,B.children))),slicedSegments:[]}:0===M.length&&function no(B,ee,M){return M.some(J=>io(B,ee,J))}(B,M,J)?{segmentGroup:new Pt(B.segments,to(B,0,M,J,B.children)),slicedSegments:M}:{segmentGroup:new Pt(B.segments,B.children),slicedSegments:M}}function to(B,ee,M,J,ye){const Oe={};for(const Ye of J)if(io(B,M,Ye)&&!ye[Ni(Ye)]){const Dt=new Pt([],{});Oe[Ni(Ye)]=Dt}return{...ye,...Oe}}function go(B,ee){const M={};M[se]=ee;for(const J of B)if(""===J.path&&Ni(J)!==se){const ye=new Pt([],{});M[Ni(J)]=ye}return M}function io(B,ee,M){return(!(B.hasChildren()||ee.length>0)||"full"!==M.pathMatch)&&""===M.path}class Bs{constructor(ee,M,J,ye,Oe,Ye,Dt){this.injector=ee,this.configLoader=M,this.rootComponentType=J,this.config=ye,this.urlTree=Oe,this.paramsInheritanceStrategy=Ye,this.urlSerializer=Dt,this.allowRedirects=!0,this.applyRedirects=new Po(this.urlSerializer,this.urlTree)}noMatchError(ee){return new n.wOt(4002,!1)}recognize(){const ee=po(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,ee,se).pipe((0,Ee.W)(M=>{if(M instanceof na)return this.allowRedirects=!1,this.urlTree=M.urlTree,this.match(M.urlTree);throw M instanceof ds?this.noMatchError(M):M}),(0,I.T)(M=>{const J=new Lr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},se,this.rootComponentType,null,{}),ye=new fn(J,M),Oe=new zr("",ye),Ye=function gt(B,ee,M=null,J=null){return ut(ot(B),ee,M,J)}(J,[],this.urlTree.queryParams,this.urlTree.fragment);return Ye.queryParams=this.urlTree.queryParams,Oe.url=this.urlSerializer.serialize(Ye),this.inheritParamsAndData(Oe._root),{state:Oe,tree:Ye}}))}match(ee){return this.processSegmentGroup(this.injector,this.config,ee.root,se).pipe((0,Ee.W)(J=>{throw J instanceof ds?this.noMatchError(J):J}))}inheritParamsAndData(ee){const M=ee.value,J=rr(M,this.paramsInheritanceStrategy);M.params=Object.freeze(J.params),M.data=Object.freeze(J.data),ee.children.forEach(ye=>this.inheritParamsAndData(ye))}processSegmentGroup(ee,M,J,ye){return 0===J.segments.length&&J.hasChildren()?this.processChildren(ee,M,J):this.processSegment(ee,M,J,J.segments,ye,!0)}processChildren(ee,M,J){const ye=[];for(const Oe of Object.keys(J.children))"primary"===Oe?ye.unshift(Oe):ye.push(Oe);return(0,a.H)(ye).pipe((0,de.H)(Oe=>{const Ye=J.children[Oe],Dt=function Hi(B,ee){const M=B.filter(J=>Ni(J)===ee);return M.push(...B.filter(J=>Ni(J)!==ee)),M}(M,Oe);return this.processSegmentGroup(ee,Dt,Ye,Oe)}),function ge(B,ee){return(0,K.N)(function Ne(B,ee,M,J,ye){return(Oe,Ye)=>{let Dt=M,St=ee,an=0;Oe.subscribe((0,re._)(Ye,Vn=>{const Ei=an++;St=Dt?B(St,Vn,Ei):(Dt=!0,Vn),J&&Ye.next(St)},ye&&(()=>{Dt&&Ye.next(St),Ye.complete()})))}}(B,ee,arguments.length>=2,!0))}((Oe,Ye)=>(Oe.push(...Ye),Oe)),U(null),function u(B,ee){const M=arguments.length>=2;return J=>J.pipe(B?(0,T.p)((ye,Oe)=>B(ye,Oe,J)):pe.D,q(1),M?U(ee):fe(()=>new w))}(),(0,W.Z)(Oe=>{if(null===Oe)return Fi(J);const Ye=ra(Oe);return function Mo(B){B.sort((ee,M)=>ee.value.outlet===se?-1:M.value.outlet===se?1:ee.value.outlet.localeCompare(M.value.outlet))}(Ye),(0,Q.of)(Ye)}))}processSegment(ee,M,J,ye,Oe,Ye){return(0,a.H)(M).pipe((0,de.H)(Dt=>this.processSegmentAgainstRoute(Dt._injector??ee,M,Dt,J,ye,Oe,Ye).pipe((0,Ee.W)(St=>{if(St instanceof ds)return(0,Q.of)(null);throw St}))),he(Dt=>!!Dt),(0,Ee.W)(Dt=>{if(gn(Dt))return function Ps(B,ee,M){return 0===ee.length&&!B.children[M]}(J,ye,Oe)?(0,Q.of)([]):Fi(J);throw Dt}))}processSegmentAgainstRoute(ee,M,J,ye,Oe,Ye,Dt){return function ro(B,ee,M,J){return!!(Ni(B)===J||J!==se&&io(ee,M,B))&&("**"===B.path||fs(ee,B,M).matched)}(J,ye,Oe,Ye)?void 0===J.redirectTo?this.matchSegmentAgainstRoute(ee,ye,J,Oe,Ye,Dt):Dt&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(ee,ye,M,J,Oe,Ye):Fi(ye):Fi(ye)}expandSegmentAgainstRouteUsingRedirect(ee,M,J,ye,Oe,Ye){return"**"===ye.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(ee,J,ye,Ye):this.expandRegularSegmentAgainstRouteUsingRedirect(ee,M,J,ye,Oe,Ye)}expandWildCardWithParamsAgainstRouteUsingRedirect(ee,M,J,ye){const Oe=this.applyRedirects.applyRedirectCommands([],J.redirectTo,{});return J.redirectTo.startsWith("/")?_s(Oe):this.applyRedirects.lineralizeSegments(J,Oe).pipe((0,W.Z)(Ye=>{const Dt=new Pt(Ye,{});return this.processSegment(ee,M,Dt,Ye,ye,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(ee,M,J,ye,Oe,Ye){const{matched:Dt,consumedSegments:St,remainingSegments:an,positionalParamSegments:Vn}=fs(M,ye,Oe);if(!Dt)return Fi(M);const Ei=this.applyRedirects.applyRedirectCommands(St,ye.redirectTo,Vn);return ye.redirectTo.startsWith("/")?_s(Ei):this.applyRedirects.lineralizeSegments(ye,Ei).pipe((0,W.Z)(ci=>this.processSegment(ee,J,M,ci.concat(an),Ye,!1)))}matchSegmentAgainstRoute(ee,M,J,ye,Oe,Ye){let Dt;if("**"===J.path){const St=ye.length>0?nt(ye).parameters:{},an=new Lr(ye,St,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Io(J),Ni(J),J.component??J._loadedComponent??null,J,sa(J));Dt=(0,Q.of)({snapshot:an,consumedSegments:[],remainingSegments:[]}),M.children={}}else Dt=Ts(M,J,ye,ee).pipe((0,I.T)(({matched:St,consumedSegments:an,remainingSegments:Vn,parameters:Ei})=>St?{snapshot:new Lr(an,Ei,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Io(J),Ni(J),J.component??J._loadedComponent??null,J,sa(J)),consumedSegments:an,remainingSegments:Vn}:null));return Dt.pipe((0,g.n)(St=>null===St?Fi(M):this.getChildConfig(ee=J._injector??ee,J,ye).pipe((0,g.n)(({routes:an})=>{const Vn=J._loadedInjector??ee,{snapshot:Ei,consumedSegments:ci,remainingSegments:ts}=St,{segmentGroup:Os,slicedSegments:zs}=po(M,ci,ts,an);if(0===zs.length&&Os.hasChildren())return this.processChildren(Vn,an,Os).pipe((0,I.T)(ns=>null===ns?null:[new fn(Ei,ns)]));if(0===an.length&&0===zs.length)return(0,Q.of)([new fn(Ei,[])]);const so=Ni(J)===Oe;return this.processSegment(Vn,an,Os,zs,so?se:Oe,!0).pipe((0,I.T)(ns=>[new fn(Ei,ns)]))}))))}getChildConfig(ee,M,J){return M.children?(0,Q.of)({routes:M.children,injector:ee}):M.loadChildren?void 0!==M._loadedRoutes?(0,Q.of)({routes:M._loadedRoutes,injector:M._loadedInjector}):function fo(B,ee,M,J){const ye=ee.canLoad;if(void 0===ye||0===ye.length)return(0,Q.of)(!0);const Oe=ye.map(Ye=>{const Dt=cr(Ye,B);return _t(function ce(B){return B&&ve(B.canLoad)}(Dt)?Dt.canLoad(ee,M):B.runInContext(()=>Dt(ee,M)))});return(0,Q.of)(Oe).pipe(Di(),Br())}(ee,M,J).pipe((0,W.Z)(ye=>ye?this.configLoader.loadChildren(ee,M).pipe((0,_e.M)(Oe=>{M._loadedRoutes=Oe.routes,M._loadedInjector=Oe.injector})):function eo(B){return(0,z.$)(pr(!1,3))}())):(0,Q.of)({routes:[],injector:ee})}}function Ql(B){const ee=B.value.routeConfig;return ee&&""===ee.path}function ra(B){const ee=[],M=new Set;for(const J of B){if(!Ql(J)){ee.push(J);continue}const ye=ee.find(Oe=>J.value.routeConfig===Oe.value.routeConfig);void 0!==ye?(ye.children.push(...J.children),M.add(ye)):ee.push(J)}for(const J of M){const ye=ra(J.children);ee.push(new fn(J.value,ye))}return ee.filter(J=>!M.has(J))}function Io(B){return B.data||{}}function sa(B){return B.resolve||{}}function Ro(B){return"string"==typeof B.title||null===B.title}function H(B){return(0,g.n)(ee=>{const M=B(ee);return M?(0,a.H)(M).pipe((0,I.T)(()=>ee)):(0,Q.of)(ee)})}const Te=new n.nKC("ROUTES");let le=(()=>{class B{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,n.WQX)(n.Ql9)}loadComponent(M){if(this.componentLoaders.get(M))return this.componentLoaders.get(M);if(M._loadedComponent)return(0,Q.of)(M._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(M);const J=_t(M.loadComponent()).pipe((0,I.T)(Tt),(0,_e.M)(Oe=>{this.onLoadEndListener&&this.onLoadEndListener(M),M._loadedComponent=Oe}),(0,N.j)(()=>{this.componentLoaders.delete(M)})),ye=new C.G(J,()=>new P.B).pipe((0,G.B)());return this.componentLoaders.set(M,ye),ye}loadChildren(M,J){if(this.childrenLoaders.get(J))return this.childrenLoaders.get(J);if(J._loadedRoutes)return(0,Q.of)({routes:J._loadedRoutes,injector:J._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(J);const Oe=function Ae(B,ee,M,J){return _t(B.loadChildren()).pipe((0,I.T)(Tt),(0,W.Z)(ye=>ye instanceof n.Co$||Array.isArray(ye)?(0,Q.of)(ye):(0,a.H)(ee.compileModuleAsync(ye))),(0,I.T)(ye=>{J&&J(B);let Oe,Ye,Dt=!1;return Array.isArray(ye)?(Ye=ye,!0):(Oe=ye.create(M).injector,Ye=Oe.get(Te,[],{optional:!0,self:!0}).flat()),{routes:Ye.map(kr),injector:Oe}}))}(J,this.compiler,M,this.onLoadEndListener).pipe((0,N.j)(()=>{this.childrenLoaders.delete(J)})),Ye=new C.G(Oe,()=>new P.B).pipe((0,G.B)());return this.childrenLoaders.set(J,Ye),Ye}static#e=this.\u0275fac=function(J){return new(J||B)};static#t=this.\u0275prov=n.jDH({token:B,factory:B.\u0275fac,providedIn:"root"})}return B})();function Tt(B){return function qe(B){return B&&"object"==typeof B&&"default"in B}(B)?B.default:B}let Nt=(()=>{class B{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new P.B,this.transitionAbortSubject=new P.B,this.configLoader=(0,n.WQX)(le),this.environmentInjector=(0,n.WQX)(n.uvJ),this.urlSerializer=(0,n.WQX)(Je),this.rootContexts=(0,n.WQX)(hn),this.inputBindingEnabled=null!==(0,n.WQX)(Oi,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,Q.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=ye=>this.events.next(new pt(ye)),this.configLoader.onLoadStartListener=ye=>this.events.next(new lt(ye))}complete(){this.transitions?.complete()}handleNavigationRequest(M){const J=++this.navigationId;this.transitions?.next({...this.transitions.value,...M,id:J})}setupNavigations(M,J,ye){return this.transitions=new ie.t({id:0,currentUrlTree:J,currentRawUrl:J,currentBrowserUrl:J,extractedUrl:M.urlHandlingStrategy.extract(J),urlAfterRedirects:M.urlHandlingStrategy.extract(J),rawUrl:J,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Xn,restoredState:null,currentSnapshot:ye.snapshot,targetSnapshot:null,currentRouterState:ye,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,T.p)(Oe=>0!==Oe.id),(0,I.T)(Oe=>({...Oe,extractedUrl:M.urlHandlingStrategy.extract(Oe.rawUrl)})),(0,g.n)(Oe=>{this.currentTransition=Oe;let Ye=!1,Dt=!1;return(0,Q.of)(Oe).pipe((0,_e.M)(St=>{this.currentNavigation={id:St.id,initialUrl:St.rawUrl,extractedUrl:St.extractedUrl,trigger:St.source,extras:St.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,g.n)(St=>{const an=St.currentBrowserUrl.toString(),Vn=!M.navigated||St.extractedUrl.toString()!==an||an!==St.currentUrlTree.toString();if(!Vn&&"reload"!==(St.extras.onSameUrlNavigation??M.onSameUrlNavigation)){const ci="";return this.events.next(new be(St.id,this.urlSerializer.serialize(St.rawUrl),ci,0)),St.resolve(null),d.w}if(M.urlHandlingStrategy.shouldProcessUrl(St.rawUrl))return(0,Q.of)(St).pipe((0,g.n)(ci=>{const ts=this.transitions?.getValue();return this.events.next(new Le(ci.id,this.urlSerializer.serialize(ci.extractedUrl),ci.source,ci.restoredState)),ts!==this.transitions?.getValue()?d.w:Promise.resolve(ci)}),function xo(B,ee,M,J,ye,Oe){return(0,W.Z)(Ye=>function Cs(B,ee,M,J,ye,Oe,Ye="emptyOnly"){return new Bs(B,ee,M,J,ye,Ye,Oe).recognize()}(B,ee,M,J,Ye.extractedUrl,ye,Oe).pipe((0,I.T)(({state:Dt,tree:St})=>({...Ye,targetSnapshot:Dt,urlAfterRedirects:St}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,M.config,this.urlSerializer,M.paramsInheritanceStrategy),(0,_e.M)(ci=>{Oe.targetSnapshot=ci.targetSnapshot,Oe.urlAfterRedirects=ci.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:ci.urlAfterRedirects};const ts=new Pe(ci.id,this.urlSerializer.serialize(ci.extractedUrl),this.urlSerializer.serialize(ci.urlAfterRedirects),ci.targetSnapshot);this.events.next(ts)}));if(Vn&&M.urlHandlingStrategy.shouldProcessUrl(St.currentRawUrl)){const{id:ci,extractedUrl:ts,source:Os,restoredState:zs,extras:so}=St,ns=new Le(ci,this.urlSerializer.serialize(ts),Os,zs);this.events.next(ns);const ul=Rr(0,this.rootComponentType).snapshot;return this.currentTransition=Oe={...St,targetSnapshot:ul,urlAfterRedirects:ts,extras:{...so,skipLocationChange:!1,replaceUrl:!1}},(0,Q.of)(Oe)}{const ci="";return this.events.next(new be(St.id,this.urlSerializer.serialize(St.extractedUrl),ci,1)),St.resolve(null),d.w}}),(0,_e.M)(St=>{const an=new Ke(St.id,this.urlSerializer.serialize(St.extractedUrl),this.urlSerializer.serialize(St.urlAfterRedirects),St.targetSnapshot);this.events.next(an)}),(0,I.T)(St=>(this.currentTransition=Oe={...St,guards:$i(St.targetSnapshot,St.currentSnapshot,this.rootContexts)},Oe)),function ur(B,ee){return(0,W.Z)(M=>{const{targetSnapshot:J,currentSnapshot:ye,guards:{canActivateChecks:Oe,canDeactivateChecks:Ye}}=M;return 0===Ye.length&&0===Oe.length?(0,Q.of)({...M,guardsResult:!0}):function Nr(B,ee,M,J){return(0,a.H)(B).pipe((0,W.Z)(ye=>function us(B,ee,M,J,ye){const Oe=ee&&ee.routeConfig?ee.routeConfig.canDeactivate:null;if(!Oe||0===Oe.length)return(0,Q.of)(!0);const Ye=Oe.map(Dt=>{const St=nr(ee)??ye,an=cr(Dt,St);return _t(function Y(B){return B&&ve(B.canDeactivate)}(an)?an.canDeactivate(B,ee,M,J):St.runInContext(()=>an(B,ee,M,J))).pipe(he())});return(0,Q.of)(Ye).pipe(Di())}(ye.component,ye.route,M,ee,J)),he(ye=>!0!==ye,!0))}(Ye,J,ye,B).pipe((0,W.Z)(Dt=>Dt&&function A(B){return"boolean"==typeof B}(Dt)?function Ns(B,ee,M,J){return(0,a.H)(ee).pipe((0,de.H)(ye=>(0,D.x)(function wo(B,ee){return null!==B&&ee&&ee(new kt(B)),(0,Q.of)(!0)}(ye.route.parent,J),function cs(B,ee){return null!==B&&ee&&ee(new Zt(B)),(0,Q.of)(!0)}(ye.route,J),function el(B,ee,M){const J=ee[ee.length-1],Oe=ee.slice(0,ee.length-1).reverse().map(Ye=>function zi(B){const ee=B.routeConfig?B.routeConfig.canActivateChild:null;return ee&&0!==ee.length?{node:B,guards:ee}:null}(Ye)).filter(Ye=>null!==Ye).map(Ye=>(0,x.v)(()=>{const Dt=Ye.guards.map(St=>{const an=nr(Ye.node)??M,Vn=cr(St,an);return _t(function ae(B){return B&&ve(B.canActivateChild)}(Vn)?Vn.canActivateChild(J,B):an.runInContext(()=>Vn(J,B))).pipe(he())});return(0,Q.of)(Dt).pipe(Di())}));return(0,Q.of)(Oe).pipe(Di())}(B,ye.path,M),function To(B,ee,M){const J=ee.routeConfig?ee.routeConfig.canActivate:null;if(!J||0===J.length)return(0,Q.of)(!0);const ye=J.map(Oe=>(0,x.v)(()=>{const Ye=nr(ee)??M,Dt=cr(Oe,Ye);return _t(function F(B){return B&&ve(B.canActivate)}(Dt)?Dt.canActivate(ee,B):Ye.runInContext(()=>Dt(ee,B))).pipe(he())}));return(0,Q.of)(ye).pipe(Di())}(B,ye.route,M))),he(ye=>!0!==ye,!0))}(J,Oe,B,ee):(0,Q.of)(Dt)),(0,I.T)(Dt=>({...M,guardsResult:Dt})))})}(this.environmentInjector,St=>this.events.next(St)),(0,_e.M)(St=>{if(Oe.guardsResult=St.guardsResult,si(St.guardsResult))throw Wr(0,St.guardsResult);const an=new Se(St.id,this.urlSerializer.serialize(St.extractedUrl),this.urlSerializer.serialize(St.urlAfterRedirects),St.targetSnapshot,!!St.guardsResult);this.events.next(an)}),(0,T.p)(St=>!!St.guardsResult||(this.cancelNavigationTransition(St,"",3),!1)),H(St=>{if(St.guards.canActivateChecks.length)return(0,Q.of)(St).pipe((0,_e.M)(an=>{const Vn=new Ue(an.id,this.urlSerializer.serialize(an.extractedUrl),this.urlSerializer.serialize(an.urlAfterRedirects),an.targetSnapshot);this.events.next(Vn)}),(0,g.n)(an=>{let Vn=!1;return(0,Q.of)(an).pipe(function mo(B,ee){return(0,W.Z)(M=>{const{targetSnapshot:J,guards:{canActivateChecks:ye}}=M;if(!ye.length)return(0,Q.of)(M);let Oe=0;return(0,a.H)(ye).pipe((0,de.H)(Ye=>function Oo(B,ee,M,J){const ye=B.routeConfig,Oe=B._resolve;return void 0!==ye?.title&&!Ro(ye)&&(Oe[Me]=ye.title),function vo(B,ee,M,J){const ye=function nl(B){return[...Object.keys(B),...Object.getOwnPropertySymbols(B)]}(B);if(0===ye.length)return(0,Q.of)({});const Oe={};return(0,a.H)(ye).pipe((0,W.Z)(Ye=>function Us(B,ee,M,J){const ye=nr(ee)??J,Oe=cr(B,ye);return _t(Oe.resolve?Oe.resolve(ee,M):ye.runInContext(()=>Oe(ee,M)))}(B[Ye],ee,M,J).pipe(he(),(0,_e.M)(Dt=>{Oe[Ye]=Dt}))),q(1),(0,p.u)(Oe),(0,Ee.W)(Ye=>gn(Ye)?d.w:(0,z.$)(Ye)))}(Oe,B,ee,J).pipe((0,I.T)(Ye=>(B._resolvedData=Ye,B.data=rr(B,M).resolve,ye&&Ro(ye)&&(B.data[Me]=ye.title),null)))}(Ye.route,J,B,ee)),(0,_e.M)(()=>Oe++),q(1),(0,W.Z)(Ye=>Oe===ye.length?(0,Q.of)(M):d.w))})}(M.paramsInheritanceStrategy,this.environmentInjector),(0,_e.M)({next:()=>Vn=!0,complete:()=>{Vn||this.cancelNavigationTransition(an,"",2)}}))}),(0,_e.M)(an=>{const Vn=new Xe(an.id,this.urlSerializer.serialize(an.extractedUrl),this.urlSerializer.serialize(an.urlAfterRedirects),an.targetSnapshot);this.events.next(Vn)}))}),H(St=>{const an=Vn=>{const Ei=[];Vn.routeConfig?.loadComponent&&!Vn.routeConfig._loadedComponent&&Ei.push(this.configLoader.loadComponent(Vn.routeConfig).pipe((0,_e.M)(ci=>{Vn.component=ci}),(0,I.T)(()=>{})));for(const ci of Vn.children)Ei.push(...an(ci));return Ei};return(0,Z.z)(an(St.targetSnapshot.root)).pipe(U(),(0,f.s)(1))}),H(()=>this.afterPreactivation()),(0,I.T)(St=>{const an=function bi(B,ee,M){const J=Ri(B,ee._root,M?M._root:void 0);return new Ti(J,ee)}(M.routeReuseStrategy,St.targetSnapshot,St.currentRouterState);return this.currentTransition=Oe={...St,targetRouterState:an},Oe}),(0,_e.M)(()=>{this.events.next(new Ze)}),((B,ee,M,J)=>(0,I.T)(ye=>(new Bi(ee,ye.targetRouterState,ye.currentRouterState,M,J).activate(B),ye)))(this.rootContexts,M.routeReuseStrategy,St=>this.events.next(St),this.inputBindingEnabled),(0,f.s)(1),(0,_e.M)({next:St=>{Ye=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new tt(St.id,this.urlSerializer.serialize(St.extractedUrl),this.urlSerializer.serialize(St.urlAfterRedirects))),M.titleStrategy?.updateTitle(St.targetRouterState.snapshot),St.resolve(!0)},complete:()=>{Ye=!0}}),(0,R.Q)(this.transitionAbortSubject.pipe((0,_e.M)(St=>{throw St}))),(0,N.j)(()=>{Ye||Dt||this.cancelNavigationTransition(Oe,"",1),this.currentNavigation?.id===Oe.id&&(this.currentNavigation=null)}),(0,Ee.W)(St=>{if(Dt=!0,Tr(St))this.events.next(new te(Oe.id,this.urlSerializer.serialize(Oe.extractedUrl),St.message,St.cancellationCode)),function Wn(B){return Tr(B)&&si(B.url)}(St)?this.events.next(new Ct(St.url)):Oe.resolve(!1);else{this.events.next(new Ie(Oe.id,this.urlSerializer.serialize(Oe.extractedUrl),St,Oe.targetSnapshot??void 0));try{Oe.resolve(M.errorHandler(St))}catch(an){Oe.reject(an)}}return d.w}))}))}cancelNavigationTransition(M,J,ye){const Oe=new te(M.id,this.urlSerializer.serialize(M.extractedUrl),J,ye);this.events.next(Oe),M.resolve(!1)}static#e=this.\u0275fac=function(J){return new(J||B)};static#t=this.\u0275prov=n.jDH({token:B,factory:B.\u0275fac,providedIn:"root"})}return B})();function on(B){return B!==Xn}let mi=(()=>{class B{buildTitle(M){let J,ye=M.root;for(;void 0!==ye;)J=this.getResolvedTitleForRoute(ye)??J,ye=ye.children.find(Oe=>Oe.outlet===se);return J}getResolvedTitleForRoute(M){return M.data[Me]}static#e=this.\u0275fac=function(J){return new(J||B)};static#t=this.\u0275prov=n.jDH({token:B,factory:function(){return(0,n.WQX)(vi)},providedIn:"root"})}return B})(),vi=(()=>{class B extends mi{constructor(M){super(),this.title=M}updateTitle(M){const J=this.buildTitle(M);void 0!==J&&this.title.setTitle(J)}static#e=this.\u0275fac=function(J){return new(J||B)(n.KVO(S.hE))};static#t=this.\u0275prov=n.jDH({token:B,factory:B.\u0275fac,providedIn:"root"})}return B})(),ni=(()=>{class B{static#e=this.\u0275fac=function(J){return new(J||B)};static#t=this.\u0275prov=n.jDH({token:B,factory:function(){return(0,n.WQX)(Li)},providedIn:"root"})}return B})();class zn{shouldDetach(ee){return!1}store(ee,M){}shouldAttach(ee){return!1}retrieve(ee){return null}shouldReuseRoute(ee,M){return ee.routeConfig===M.routeConfig}}let Li=(()=>{class B extends zn{static#e=this.\u0275fac=function(){let M;return function(ye){return(M||(M=n.xGo(B)))(ye||B)}}();static#t=this.\u0275prov=n.jDH({token:B,factory:B.\u0275fac,providedIn:"root"})}return B})();const ui=new n.nKC("",{providedIn:"root",factory:()=>({})});let Wi=(()=>{class B{static#e=this.\u0275fac=function(J){return new(J||B)};static#t=this.\u0275prov=n.jDH({token:B,factory:function(){return(0,n.WQX)(Gr)},providedIn:"root"})}return B})(),Gr=(()=>{class B{shouldProcessUrl(M){return!0}extract(M){return M}merge(M,J){return M}static#e=this.\u0275fac=function(J){return new(J||B)};static#t=this.\u0275prov=n.jDH({token:B,factory:B.\u0275fac,providedIn:"root"})}return B})();var Ki=function(B){return B[B.COMPLETE=0]="COMPLETE",B[B.FAILED=1]="FAILED",B[B.REDIRECTING=2]="REDIRECTING",B}(Ki||{});function ps(B,ee){B.events.pipe((0,T.p)(M=>M instanceof tt||M instanceof te||M instanceof Ie||M instanceof be),(0,I.T)(M=>M instanceof tt||M instanceof be?Ki.COMPLETE:M instanceof te&&(0===M.code||1===M.code)?Ki.REDIRECTING:Ki.FAILED),(0,T.p)(M=>M!==Ki.REDIRECTING),(0,f.s)(1)).subscribe(()=>{ee()})}function gr(B){throw B}function es(B,ee,M){return ee.parse("/")}const Xi={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Gi={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Yi=(()=>{class B{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,n.WQX)(n.H3F),this.isNgZoneEnabled=!1,this._events=new P.B,this.options=(0,n.WQX)(ui,{optional:!0})||{},this.pendingTasks=(0,n.WQX)(n.$K3),this.errorHandler=this.options.errorHandler||gr,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||es,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,n.WQX)(Wi),this.routeReuseStrategy=(0,n.WQX)(ni),this.titleStrategy=(0,n.WQX)(mi),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=(0,n.WQX)(Te,{optional:!0})?.flat()??[],this.navigationTransitions=(0,n.WQX)(Nt),this.urlSerializer=(0,n.WQX)(Je),this.location=(0,n.WQX)($.aZ),this.componentInputBindingEnabled=!!(0,n.WQX)(Oi,{optional:!0}),this.eventsSubscription=new k.yU,this.isNgZoneEnabled=(0,n.WQX)(n.SKi)instanceof n.SKi&&n.SKi.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new rt,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Rr(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(M=>{this.lastSuccessfulId=M.id,this.currentPageId=this.browserPageId},M=>{this.console.warn(`Unhandled Navigation Error: ${M}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const M=this.navigationTransitions.events.subscribe(J=>{try{const{currentTransition:ye}=this.navigationTransitions;if(null===ye)return void(yo(J)&&this._events.next(J));if(J instanceof Le)on(ye.source)&&(this.browserUrlTree=ye.extractedUrl);else if(J instanceof be)this.rawUrlTree=ye.rawUrl;else if(J instanceof Pe){if("eager"===this.urlUpdateStrategy){if(!ye.extras.skipLocationChange){const Oe=this.urlHandlingStrategy.merge(ye.urlAfterRedirects,ye.rawUrl);this.setBrowserUrl(Oe,ye)}this.browserUrlTree=ye.urlAfterRedirects}}else if(J instanceof Ze)this.currentUrlTree=ye.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(ye.urlAfterRedirects,ye.rawUrl),this.routerState=ye.targetRouterState,"deferred"===this.urlUpdateStrategy&&(ye.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,ye),this.browserUrlTree=ye.urlAfterRedirects);else if(J instanceof te)0!==J.code&&1!==J.code&&(this.navigated=!0),(3===J.code||2===J.code)&&this.restoreHistory(ye);else if(J instanceof Ct){const Oe=this.urlHandlingStrategy.merge(J.url,ye.currentRawUrl),Ye={skipLocationChange:ye.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||on(ye.source)};this.scheduleNavigation(Oe,Xn,null,Ye,{resolve:ye.resolve,reject:ye.reject,promise:ye.promise})}J instanceof Ie&&this.restoreHistory(ye,!0),J instanceof tt&&(this.navigated=!0),yo(J)&&this._events.next(J)}catch(ye){this.navigationTransitions.transitionAbortSubject.next(ye)}});this.eventsSubscription.add(M)}resetRootComponentType(M){this.routerState.root.component=M,this.navigationTransitions.rootComponentType=M}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const M=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Xn,M)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(M=>{const J="popstate"===M.type?"popstate":"hashchange";"popstate"===J&&setTimeout(()=>{this.navigateToSyncWithBrowser(M.url,J,M.state)},0)}))}navigateToSyncWithBrowser(M,J,ye){const Oe={replaceUrl:!0},Ye=ye?.navigationId?ye:null;if(ye){const St={...ye};delete St.navigationId,delete St.\u0275routerPageId,0!==Object.keys(St).length&&(Oe.state=St)}const Dt=this.parseUrl(M);this.scheduleNavigation(Dt,J,Ye,Oe)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(M){this.config=M.map(kr),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(M,J={}){const{relativeTo:ye,queryParams:Oe,fragment:Ye,queryParamsHandling:Dt,preserveFragment:St}=J,an=St?this.currentUrlTree.fragment:Ye;let Ei,Vn=null;switch(Dt){case"merge":Vn={...this.currentUrlTree.queryParams,...Oe};break;case"preserve":Vn=this.currentUrlTree.queryParams;break;default:Vn=Oe||null}null!==Vn&&(Vn=this.removeEmptyProps(Vn));try{Ei=ot(ye?ye.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof M[0]||!M[0].startsWith("/"))&&(M=[]),Ei=this.currentUrlTree.root}return ut(Ei,M,Vn,an??null)}navigateByUrl(M,J={skipLocationChange:!1}){const ye=si(M)?M:this.parseUrl(M),Oe=this.urlHandlingStrategy.merge(ye,this.rawUrlTree);return this.scheduleNavigation(Oe,Xn,null,J)}navigate(M,J={skipLocationChange:!1}){return function Mi(B){for(let ee=0;ee<B.length;ee++)if(null==B[ee])throw new n.wOt(4008,!1)}(M),this.navigateByUrl(this.createUrlTree(M,J),J)}serializeUrl(M){return this.urlSerializer.serialize(M)}parseUrl(M){let J;try{J=this.urlSerializer.parse(M)}catch(ye){J=this.malformedUriErrorHandler(ye,this.urlSerializer,M)}return J}isActive(M,J){let ye;if(ye=!0===J?{...Xi}:!1===J?{...Gi}:J,si(M))return It(this.currentUrlTree,M,ye);const Oe=this.parseUrl(M);return It(this.currentUrlTree,Oe,ye)}removeEmptyProps(M){return Object.keys(M).reduce((J,ye)=>{const Oe=M[ye];return null!=Oe&&(J[ye]=Oe),J},{})}scheduleNavigation(M,J,ye,Oe,Ye){if(this.disposed)return Promise.resolve(!1);let Dt,St,an;Ye?(Dt=Ye.resolve,St=Ye.reject,an=Ye.promise):an=new Promise((Ei,ci)=>{Dt=Ei,St=ci});const Vn=this.pendingTasks.add();return ps(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Vn))}),this.navigationTransitions.handleNavigationRequest({source:J,restoredState:ye,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:M,extras:Oe,resolve:Dt,reject:St,promise:an,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),an.catch(Ei=>Promise.reject(Ei))}setBrowserUrl(M,J){const ye=this.urlSerializer.serialize(M);if(this.location.isCurrentPathEqualTo(ye)||J.extras.replaceUrl){const Ye={...J.extras.state,...this.generateNgRouterState(J.id,this.browserPageId)};this.location.replaceState(ye,"",Ye)}else{const Oe={...J.extras.state,...this.generateNgRouterState(J.id,this.browserPageId+1)};this.location.go(ye,"",Oe)}}restoreHistory(M,J=!1){if("computed"===this.canceledNavigationResolution){const Oe=this.currentPageId-this.browserPageId;0!==Oe?this.location.historyGo(Oe):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===Oe&&(this.resetState(M),this.browserUrlTree=M.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(J&&this.resetState(M),this.resetUrlToCurrentUrlTree())}resetState(M){this.routerState=M.currentRouterState,this.currentUrlTree=M.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,M.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(M,J){return"computed"===this.canceledNavigationResolution?{navigationId:M,\u0275routerPageId:J}:{navigationId:M}}static#e=this.\u0275fac=function(J){return new(J||B)};static#t=this.\u0275prov=n.jDH({token:B,factory:B.\u0275fac,providedIn:"root"})}return B})();function yo(B){return!(B instanceof Ze||B instanceof Ct)}let bs=(()=>{class B{constructor(M,J,ye,Oe,Ye,Dt){this.router=M,this.route=J,this.tabIndexAttribute=ye,this.renderer=Oe,this.el=Ye,this.locationStrategy=Dt,this.href=null,this.commands=null,this.onChanges=new P.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const St=Ye.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===St||"area"===St,this.isAnchorElement?this.subscription=M.events.subscribe(an=>{an instanceof tt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(M){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",M)}ngOnChanges(M){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(M){null!=M?(this.commands=Array.isArray(M)?M:[M],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(M,J,ye,Oe,Ye){return!!(null===this.urlTree||this.isAnchorElement&&(0!==M||J||ye||Oe||Ye||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const M=null===this.href?null:(0,n.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",M)}applyAttributeValue(M,J){const ye=this.renderer,Oe=this.el.nativeElement;null!==J?ye.setAttribute(Oe,M,J):ye.removeAttribute(Oe,M)}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#e=this.\u0275fac=function(J){return new(J||B)(n.rXU(Yi),n.rXU(vr),n.kS0("tabindex"),n.rXU(n.sFG),n.rXU(n.aKT),n.rXU($.hb))};static#t=this.\u0275dir=n.FsC({type:B,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(J,ye){1&J&&n.bIt("click",function(Ye){return ye.onClick(Ye.button,Ye.ctrlKey,Ye.shiftKey,Ye.altKey,Ye.metaKey)}),2&J&&n.BMQ("target",ye.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",n.L39],skipLocationChange:["skipLocationChange","skipLocationChange",n.L39],replaceUrl:["replaceUrl","replaceUrl",n.L39],routerLink:"routerLink"},standalone:!0,features:[n.GFd,n.OA$]})}return B})();class Vs{}let js=(()=>{class B{preload(M,J){return J().pipe((0,Ee.W)(()=>(0,Q.of)(null)))}static#e=this.\u0275fac=function(J){return new(J||B)};static#t=this.\u0275prov=n.jDH({token:B,factory:B.\u0275fac,providedIn:"root"})}return B})(),Lo=(()=>{class B{constructor(M,J,ye,Oe,Ye){this.router=M,this.injector=ye,this.preloadingStrategy=Oe,this.loader=Ye}setUpPreloading(){this.subscription=this.router.events.pipe((0,T.p)(M=>M instanceof tt),(0,de.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(M,J){const ye=[];for(const Oe of J){Oe.providers&&!Oe._injector&&(Oe._injector=(0,n.Ol2)(Oe.providers,M,`Route: ${Oe.path}`));const Ye=Oe._injector??M,Dt=Oe._loadedInjector??Ye;(Oe.loadChildren&&!Oe._loadedRoutes&&void 0===Oe.canLoad||Oe.loadComponent&&!Oe._loadedComponent)&&ye.push(this.preloadConfig(Ye,Oe)),(Oe.children||Oe._loadedRoutes)&&ye.push(this.processRoutes(Dt,Oe.children??Oe._loadedRoutes))}return(0,a.H)(ye).pipe((0,ne.U)())}preloadConfig(M,J){return this.preloadingStrategy.preload(J,()=>{let ye;ye=J.loadChildren&&void 0===J.canLoad?this.loader.loadChildren(M,J):(0,Q.of)(null);const Oe=ye.pipe((0,W.Z)(Ye=>null===Ye?(0,Q.of)(void 0):(J._loadedRoutes=Ye.routes,J._loadedInjector=Ye.injector,this.processRoutes(Ye.injector??M,Ye.routes))));if(J.loadComponent&&!J._loadedComponent){const Ye=this.loader.loadComponent(J);return(0,a.H)([Oe,Ye]).pipe((0,ne.U)())}return Oe})}static#e=this.\u0275fac=function(J){return new(J||B)(n.KVO(Yi),n.KVO(n.Ql9),n.KVO(n.uvJ),n.KVO(Vs),n.KVO(le))};static#t=this.\u0275prov=n.jDH({token:B,factory:B.\u0275fac,providedIn:"root"})}return B})();const ko=new n.nKC("");let Fo=(()=>{class B{constructor(M,J,ye,Oe,Ye={}){this.urlSerializer=M,this.transitions=J,this.viewportScroller=ye,this.zone=Oe,this.options=Ye,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Ye.scrollPositionRestoration=Ye.scrollPositionRestoration||"disabled",Ye.anchorScrolling=Ye.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(M=>{M instanceof Le?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=M.navigationTrigger,this.restoredId=M.restoredState?M.restoredState.navigationId:0):M instanceof tt?(this.lastId=M.id,this.scheduleScrollEvent(M,this.urlSerializer.parse(M.urlAfterRedirects).fragment)):M instanceof be&&0===M.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(M,this.urlSerializer.parse(M.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(M=>{M instanceof ke&&(M.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(M.position):M.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(M.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(M,J){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new ke(M,"popstate"===this.lastSource?this.store[this.restoredId]:null,J))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(J){n.QTQ()};static#t=this.\u0275prov=n.jDH({token:B,factory:B.\u0275fac})}return B})();function gs(B,ee){return{\u0275kind:B,\u0275providers:ee}}function On(){const B=(0,n.WQX)(n.zZn);return ee=>{const M=B.get(n.o8S);if(ee!==M.components[0])return;const J=B.get(Yi),ye=B.get(Co);1===B.get(ca)&&J.initialNavigation(),B.get(Bo,null,n.$GK.Optional)?.setUpPreloading(),B.get(ko,null,n.$GK.Optional)?.init(),J.resetRootComponentType(M.componentTypes[0]),ye.closed||(ye.next(),ye.complete(),ye.unsubscribe())}}const Co=new n.nKC("",{factory:()=>new P.B}),ca=new n.nKC("",{providedIn:"root",factory:()=>1}),Bo=new n.nKC("");function $s(B){return gs(0,[{provide:Bo,useExisting:Lo},{provide:Vs,useExisting:B}])}const Ht=new n.nKC("ROUTER_FORROOT_GUARD"),di=[$.aZ,{provide:Je,useClass:wt},Yi,hn,{provide:vr,useFactory:function No(B){return B.routerState.root},deps:[Yi]},le,[]];function Uo(){return new n.NEm("Router",Yi)}let Vo=(()=>{class B{constructor(M){}static forRoot(M,J){return{ngModule:B,providers:[di,[],{provide:Te,multi:!0,useValue:M},{provide:Ht,useFactory:Kr,deps:[[Yi,new n.Xx1,new n.kdw]]},{provide:ui,useValue:J||{}},J?.useHash?{provide:$.hb,useClass:$.fw}:{provide:$.hb,useClass:$.Sm},{provide:ko,useFactory:()=>{const B=(0,n.WQX)($.Xr),ee=(0,n.WQX)(n.SKi),M=(0,n.WQX)(ui),J=(0,n.WQX)(Nt),ye=(0,n.WQX)(Je);return M.scrollOffset&&B.setOffset(M.scrollOffset),new Fo(ye,J,B,ee,M)}},J?.preloadingStrategy?$s(J.preloadingStrategy).\u0275providers:[],{provide:n.NEm,multi:!0,useFactory:Uo},J?.initialNavigation?bo(J):[],J?.bindToComponentInputs?gs(8,[yr,{provide:Oi,useExisting:yr}]).\u0275providers:[],[{provide:Xr,useFactory:On},{provide:n.iLQ,multi:!0,useExisting:Xr}]]}}static forChild(M){return{ngModule:B,providers:[{provide:Te,multi:!0,useValue:M}]}}static#e=this.\u0275fac=function(J){return new(J||B)(n.KVO(Ht,8))};static#t=this.\u0275mod=n.$C({type:B});static#n=this.\u0275inj=n.G2t({})}return B})();function Kr(B){return"guarded"}function bo(B){return["disabled"===B.initialNavigation?gs(3,[{provide:n.hnV,multi:!0,useFactory:()=>{const ee=(0,n.WQX)(Yi);return()=>{ee.setUpLocationChangeListener()}}},{provide:ca,useValue:2}]).\u0275providers:[],"enabledBlocking"===B.initialNavigation?gs(2,[{provide:ca,useValue:0},{provide:n.hnV,multi:!0,deps:[n.zZn],useFactory:ee=>{const M=ee.get($.hj,Promise.resolve());return()=>M.then(()=>new Promise(J=>{const ye=ee.get(Yi),Oe=ee.get(Co);ps(ye,()=>{J(!0)}),ee.get(Nt).afterPreactivation=()=>(J(!0),Oe.closed?(0,Q.of)(void 0):Oe),ye.initialNavigation()}))}}]).\u0275providers:[]]}const Xr=new n.nKC("")},22882:(He,L,o)=>{"use strict";o.d(L,{D9:()=>de,Wr:()=>z,c$:()=>pe,h:()=>_e});var n=o(2978),y=o(20756),a=o(92319),Q=o(18361),ie=o(47267),Z=o(68001),h=o(38486),w=o(858),D=o(93527),x=o(54807),E=o(72831);class z{}let d=(()=>{class Ee extends z{getTranslation(ge){return(0,y.of)({})}static \u0275fac=function(){let ge;return function(u){return(ge||(ge=n.xGo(Ee)))(u||Ee)}}();static \u0275prov=n.jDH({token:Ee,factory:Ee.\u0275fac})}return Ee})();class C{}let P=(()=>{class Ee{handle(ge){return ge.key}static \u0275fac=function(q){return new(q||Ee)};static \u0275prov=n.jDH({token:Ee,factory:Ee.\u0275fac})}return Ee})();function k(Ee,Ne){if(Ee===Ne)return!0;if(null===Ee||null===Ne)return!1;if(Ee!=Ee&&Ne!=Ne)return!0;let u,p,N,ge=typeof Ee;if(ge==typeof Ne&&"object"==ge){if(!Array.isArray(Ee)){if(Array.isArray(Ne))return!1;for(p in N=Object.create(null),Ee){if(!k(Ee[p],Ne[p]))return!1;N[p]=!0}for(p in Ne)if(!(p in N)&&typeof Ne[p]<"u")return!1;return!0}if(!Array.isArray(Ne))return!1;if((u=Ee.length)==Ne.length){for(p=0;p<u;p++)if(!k(Ee[p],Ne[p]))return!1;return!0}}return!1}function $(Ee){return typeof Ee<"u"&&null!==Ee}function I(Ee){return Ee&&"object"==typeof Ee&&!Array.isArray(Ee)}function g(Ee,Ne){let ge=Object.assign({},Ee);return I(Ee)&&I(Ne)&&Object.keys(Ne).forEach(q=>{I(Ne[q])?q in Ee?ge[q]=g(Ee[q],Ne[q]):Object.assign(ge,{[q]:Ne[q]}):Object.assign(ge,{[q]:Ne[q]})}),ge}class f{}let m=(()=>{class Ee extends f{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(ge,q){let u;return u="string"==typeof ge?this.interpolateString(ge,q):"function"==typeof ge?this.interpolateFunction(ge,q):ge,u}getValue(ge,q){let u="string"==typeof q?q.split("."):[q];q="";do{q+=u.shift(),!$(ge)||!$(ge[q])||"object"!=typeof ge[q]&&u.length?u.length?q+=".":ge=void 0:(ge=ge[q],q="")}while(u.length);return ge}interpolateFunction(ge,q){return ge(q)}interpolateString(ge,q){return q?ge.replace(this.templateMatcher,(u,p)=>{let N=this.getValue(q,p);return $(N)?N:u}):ge}static \u0275fac=function(){let ge;return function(u){return(ge||(ge=n.xGo(Ee)))(u||Ee)}}();static \u0275prov=n.jDH({token:Ee,factory:Ee.\u0275fac})}return Ee})();class T{}let W=(()=>{class Ee extends T{compile(ge,q){return ge}compileTranslations(ge,q){return ge}static \u0275fac=function(){let ge;return function(u){return(ge||(ge=n.xGo(Ee)))(u||Ee)}}();static \u0275prov=n.jDH({token:Ee,factory:Ee.\u0275fac})}return Ee})();class K{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new n.bkB;onLangChange=new n.bkB;onDefaultLangChange=new n.bkB}const re=new n.nKC("USE_STORE"),U=new n.nKC("USE_DEFAULT_LANG"),fe=new n.nKC("DEFAULT_LANGUAGE"),ue=new n.nKC("USE_EXTEND");let pe=(()=>{class Ee{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new n.bkB;_onLangChange=new n.bkB;_onDefaultLangChange=new n.bkB;_defaultLang;_currentLang;_langs=[];_translations={};_translationRequests={};get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(ge){this.isolate?this._defaultLang=ge:this.store.defaultLang=ge}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(ge){this.isolate?this._currentLang=ge:this.store.currentLang=ge}get langs(){return this.isolate?this._langs:this.store.langs}set langs(ge){this.isolate?this._langs=ge:this.store.langs=ge}get translations(){return this.isolate?this._translations:this.store.translations}set translations(ge){this.isolate?this._translations=ge:this.store.translations=ge}constructor(ge,q,u,p,N,G=!0,R=!1,ne=!1,S){this.store=ge,this.currentLoader=q,this.compiler=u,this.parser=p,this.missingTranslationHandler=N,this.useDefaultLang=G,this.isolate=R,this.extend=ne,S&&this.setDefaultLang(S)}setDefaultLang(ge){if(ge===this.defaultLang)return;let q=this.retrieveTranslations(ge);typeof q<"u"?(null==this.defaultLang&&(this.defaultLang=ge),q.pipe((0,h.s)(1)).subscribe(u=>{this.changeDefaultLang(ge)})):this.changeDefaultLang(ge)}getDefaultLang(){return this.defaultLang}use(ge){if(ge===this.currentLang)return(0,y.of)(this.translations[ge]);let q=this.retrieveTranslations(ge);return typeof q<"u"?(this.currentLang||(this.currentLang=ge),q.pipe((0,h.s)(1)).subscribe(u=>{this.changeLang(ge)}),q):(this.changeLang(ge),(0,y.of)(this.translations[ge]))}retrieveTranslations(ge){let q;return(typeof this.translations[ge]>"u"||this.extend)&&(this._translationRequests[ge]=this._translationRequests[ge]||this.getTranslation(ge),q=this._translationRequests[ge]),q}getTranslation(ge){this.pending=!0;const q=this.currentLoader.getTranslation(ge).pipe((0,w.t)(1),(0,h.s)(1));return this.loadingTranslations=q.pipe((0,D.T)(u=>this.compiler.compileTranslations(u,ge)),(0,w.t)(1),(0,h.s)(1)),this.loadingTranslations.subscribe({next:u=>{this.translations[ge]=this.extend&&this.translations[ge]?{...u,...this.translations[ge]}:u,this.updateLangs(),this.pending=!1},error:u=>{this.pending=!1}}),q}setTranslation(ge,q,u=!1){q=this.compiler.compileTranslations(q,ge),this.translations[ge]=(u||this.extend)&&this.translations[ge]?g(this.translations[ge],q):q,this.updateLangs(),this.onTranslationChange.emit({lang:ge,translations:this.translations[ge]})}getLangs(){return this.langs}addLangs(ge){ge.forEach(q=>{-1===this.langs.indexOf(q)&&this.langs.push(q)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(ge,q,u){let p;if(q instanceof Array){let N={},G=!1;for(let R of q)N[R]=this.getParsedResult(ge,R,u),(0,a.A)(N[R])&&(G=!0);if(G){const R=q.map(ne=>(0,a.A)(N[ne])?N[ne]:(0,y.of)(N[ne]));return(0,Q.p)(R).pipe((0,D.T)(ne=>{let S={};return ne.forEach((se,Me)=>{S[q[Me]]=se}),S}))}return N}if(ge&&(p=this.parser.interpolate(this.parser.getValue(ge,q),u)),typeof p>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(p=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],q),u)),typeof p>"u"){let N={key:q,translateService:this};typeof u<"u"&&(N.interpolateParams=u),p=this.missingTranslationHandler.handle(N)}return typeof p<"u"?p:q}get(ge,q){if(!$(ge)||!ge.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,x.H)(u=>(u=this.getParsedResult(u,ge,q),(0,a.A)(u)?u:(0,y.of)(u))));{let u=this.getParsedResult(this.translations[this.currentLang],ge,q);return(0,a.A)(u)?u:(0,y.of)(u)}}getStreamOnTranslationChange(ge,q){if(!$(ge)||!ge.length)throw new Error('Parameter "key" required');return(0,ie.x)((0,Z.v)(()=>this.get(ge,q)),this.onTranslationChange.pipe((0,E.n)(u=>{const p=this.getParsedResult(u.translations,ge,q);return"function"==typeof p.subscribe?p:(0,y.of)(p)})))}stream(ge,q){if(!$(ge)||!ge.length)throw new Error('Parameter "key" required');return(0,ie.x)((0,Z.v)(()=>this.get(ge,q)),this.onLangChange.pipe((0,E.n)(u=>{const p=this.getParsedResult(u.translations,ge,q);return(0,a.A)(p)?p:(0,y.of)(p)})))}instant(ge,q){if(!$(ge)||!ge.length)throw new Error('Parameter "key" required');let u=this.getParsedResult(this.translations[this.currentLang],ge,q);if((0,a.A)(u)){if(ge instanceof Array){let p={};return ge.forEach((N,G)=>{p[ge[G]]=ge[G]}),p}return ge}return u}set(ge,q,u=this.currentLang){this.translations[u][ge]=this.compiler.compile(q,u),this.updateLangs(),this.onTranslationChange.emit({lang:u,translations:this.translations[u]})}changeLang(ge){this.currentLang=ge,this.onLangChange.emit({lang:ge,translations:this.translations[ge]}),null==this.defaultLang&&this.changeDefaultLang(ge)}changeDefaultLang(ge){this.defaultLang=ge,this.onDefaultLangChange.emit({lang:ge,translations:this.translations[ge]})}reloadLang(ge){return this.resetLang(ge),this.getTranslation(ge)}resetLang(ge){this._translationRequests[ge]=void 0,this.translations[ge]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let ge=window.navigator.languages?window.navigator.languages[0]:null;return ge=ge||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof ge>"u"?void 0:(-1!==ge.indexOf("-")&&(ge=ge.split("-")[0]),-1!==ge.indexOf("_")&&(ge=ge.split("_")[0]),ge)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let ge=window.navigator.languages?window.navigator.languages[0]:null;return ge=ge||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,ge}static \u0275fac=function(q){return new(q||Ee)(n.KVO(K),n.KVO(z),n.KVO(T),n.KVO(f),n.KVO(C),n.KVO(U),n.KVO(re),n.KVO(ue),n.KVO(fe))};static \u0275prov=n.jDH({token:Ee,factory:Ee.\u0275fac})}return Ee})(),de=(()=>{class Ee{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(ge,q){this.translate=ge,this._ref=q}updateValue(ge,q,u){let p=N=>{this.value=void 0!==N?N:ge,this.lastKey=ge,this._ref.markForCheck()};if(u){let N=this.translate.getParsedResult(u,ge,q);(0,a.A)(N.subscribe)?N.subscribe(p):p(N)}this.translate.get(ge,q).subscribe(p)}transform(ge,...q){if(!ge||!ge.length)return ge;if(k(ge,this.lastKey)&&k(q,this.lastParams))return this.value;let u;if($(q[0])&&q.length)if("string"==typeof q[0]&&q[0].length){let p=q[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{u=JSON.parse(p)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${q[0]}`)}}else"object"==typeof q[0]&&!Array.isArray(q[0])&&(u=q[0]);return this.lastKey=ge,this.lastParams=q,this.updateValue(ge,u),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(p=>{this.lastKey&&p.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(ge,u,p.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(p=>{this.lastKey&&(this.lastKey=null,this.updateValue(ge,u,p.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(ge,u))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(q){return new(q||Ee)(n.rXU(pe,16),n.rXU(n.gRc,16))};static \u0275pipe=n.EJ8({name:"translate",type:Ee,pure:!1});static \u0275prov=n.jDH({token:Ee,factory:Ee.\u0275fac})}return Ee})(),_e=(()=>{class Ee{static forRoot(ge={}){return{ngModule:Ee,providers:[ge.loader||{provide:z,useClass:d},ge.compiler||{provide:T,useClass:W},ge.parser||{provide:f,useClass:m},ge.missingTranslationHandler||{provide:C,useClass:P},K,{provide:re,useValue:ge.isolate},{provide:U,useValue:ge.useDefaultLang},{provide:ue,useValue:ge.extend},{provide:fe,useValue:ge.defaultLanguage},pe]}}static forChild(ge={}){return{ngModule:Ee,providers:[ge.loader||{provide:z,useClass:d},ge.compiler||{provide:T,useClass:W},ge.parser||{provide:f,useClass:m},ge.missingTranslationHandler||{provide:C,useClass:P},{provide:re,useValue:ge.isolate},{provide:U,useValue:ge.useDefaultLang},{provide:ue,useValue:ge.extend},{provide:fe,useValue:ge.defaultLanguage},pe]}}static \u0275fac=function(q){return new(q||Ee)};static \u0275mod=n.$C({type:Ee});static \u0275inj=n.G2t({})}return Ee})()},30537:(He,L,o)=>{"use strict";var n,y;o.d(L,{Lk:()=>g,c6:()=>I});var a=o(2978),Q=o(98129),ie=o(16104),Z=o(38399),h=o(76340),w=o(68887),D=o(38503),x=o(45481),E=o(91528);const z=["pdfViewerContainer"];function P(f,m,T){f[m]=T}function k(){return typeof window>"u"}k()||P(n||(n=o.t(x,2)),"verbosity",x.VerbosityLevel.INFOS);var $=function(f){return f[f.DISABLED=0]="DISABLED",f[f.ENABLED=1]="ENABLED",f[f.ENHANCED=2]="ENHANCED",f}($||{});let I=(()=>{class f{constructor(T,W){if(this.element=T,this.ngZone=W,this.isVisible=!1,this._cMapsUrl=typeof(n||(n=o.t(x,2)))<"u"?`https://unpkg.com/pdfjs-dist@${x.version}/cmaps/`:null,this._imageResourcesPath=typeof(n||(n=o.t(x,2)))<"u"?`https://unpkg.com/pdfjs-dist@${x.version}/web/images/`:null,this._renderText=!0,this._renderTextMode=$.ENABLED,this._stickToPage=!1,this._originalSize=!0,this._page=1,this._zoom=1,this._zoomScale="page-width",this._rotation=0,this._showAll=!0,this._canAutoResize=!0,this._fitToPage=!1,this._externalLinkTarget="blank",this._showBorders=!1,this.resizeTimeout=null,this.pageScrollTimeout=null,this.isInitialized=!1,this.destroy$=new ie.B,this.afterLoadComplete=new a.bkB,this.pageRendered=new a.bkB,this.pageInitialized=new a.bkB,this.textLayerRendered=new a.bkB,this.onError=new a.bkB,this.onProgress=new a.bkB,this.pageChange=new a.bkB(!0),k())return;let K;const re=x.version;K=window[`pdfWorkerSrc${re}`]||(window.hasOwnProperty("pdfWorkerSrc")&&"string"==typeof window.pdfWorkerSrc&&window.pdfWorkerSrc?window.pdfWorkerSrc:`https://cdn.jsdelivr.net/npm/pdfjs-dist@${re}/legacy/build/pdf.worker.min.js`),P(x.GlobalWorkerOptions,"workerSrc",K)}set cMapsUrl(T){this._cMapsUrl=T}set page(T){const W=T=parseInt(T,10)||1;this._pdf&&(T=this.getValidPageNumber(T)),this._page=T,W!==T&&this.pageChange.emit(T)}set renderText(T){this._renderText=T}set renderTextMode(T){this._renderTextMode=T}set originalSize(T){this._originalSize=T}set showAll(T){this._showAll=T}set stickToPage(T){this._stickToPage=T}set zoom(T){T<=0||(this._zoom=T)}get zoom(){return this._zoom}set zoomScale(T){this._zoomScale=T}get zoomScale(){return this._zoomScale}set rotation(T){"number"==typeof T&&T%90==0?this._rotation=T:console.warn("Invalid pages rotation angle.")}set externalLinkTarget(T){this._externalLinkTarget=T}set autoresize(T){this._canAutoResize=!!T}set fitToPage(T){this._fitToPage=!!T}set showBorders(T){this._showBorders=!!T}static getLinkTarget(T){switch(T){case"blank":return E.LinkTarget.BLANK;case"none":return E.LinkTarget.NONE;case"self":return E.LinkTarget.SELF;case"parent":return E.LinkTarget.PARENT;case"top":return E.LinkTarget.TOP}return null}ngAfterViewChecked(){if(this.isInitialized)return;const T=this.pdfViewerContainer.nativeElement.offsetParent;!0!==this.isVisible||null!=T?!1===this.isVisible&&null!=T&&(this.isVisible=!0,setTimeout(()=>{this.initialize(),this.ngOnChanges({src:this.src})})):this.isVisible=!1}ngOnInit(){this.initialize(),this.setupResizeListener()}ngOnDestroy(){this.clear(),this.destroy$.next(),this.loadingTask=null}ngOnChanges(T){if(!k()&&this.isVisible)if("src"in T)this.loadPDF();else if(this._pdf){if("renderText"in T?(this.pdfViewer.textLayerMode=this._renderText?this._renderTextMode:$.DISABLED,this.resetPdfDocument()):"showAll"in T&&(this.setupViewer(),this.resetPdfDocument()),"page"in T){const{page:W}=T;if(W.currentValue===this._latestScrolledPage)return;this.pdfViewer.scrollPageIntoView({pageNumber:this._page})}this.update()}}updateSize(){(0,Z.H)(this._pdf.getPage(this.pdfViewer.currentPageNumber)).pipe((0,h.Q)(this.destroy$)).subscribe({next:T=>{const W=this._rotation+T.rotate,K=T.getViewport({scale:this._zoom,rotation:W}).width*f.CSS_UNITS;let re=this._zoom,U=!0;if(!this._originalSize||this._fitToPage&&K>this.pdfViewerContainer.nativeElement.clientWidth){const fe=T.getViewport({scale:1,rotation:W});re=this.getScale(fe.width,fe.height),U=!this._stickToPage}this.pdfViewer._setScale(re,U)}})}clear(){this.loadingTask&&!this.loadingTask.destroyed&&this.loadingTask.destroy(),this._pdf&&(this._latestScrolledPage=0,this._pdf.destroy(),this._pdf=null,this.pdfViewer.setDocument(null),this.pdfLinkService.setDocument(null,null),this.pdfFindController.setDocument(null))}getPDFLinkServiceConfig(){const T=f.getLinkTarget(this._externalLinkTarget);return T?{externalLinkTarget:T}:{}}initEventBus(){this.eventBus=function d(f,m){const T=new f.EventBus;return function C(f,m){(0,Q.R)(f,"documentload").pipe((0,h.Q)(m)).subscribe(()=>{const T=document.createEvent("CustomEvent");T.initCustomEvent("documentload",!0,!0,{}),window.dispatchEvent(T)}),(0,Q.R)(f,"pagerendered").pipe((0,h.Q)(m)).subscribe(({pageNumber:T,cssTransform:W,source:K})=>{const re=document.createEvent("CustomEvent");re.initCustomEvent("pagerendered",!0,!0,{pageNumber:T,cssTransform:W}),K.div.dispatchEvent(re)}),(0,Q.R)(f,"textlayerrendered").pipe((0,h.Q)(m)).subscribe(({pageNumber:T,source:W})=>{const K=document.createEvent("CustomEvent");K.initCustomEvent("textlayerrendered",!0,!0,{pageNumber:T}),W.textLayerDiv.dispatchEvent(K)}),(0,Q.R)(f,"pagechanging").pipe((0,h.Q)(m)).subscribe(({pageNumber:T,source:W})=>{const K=document.createEvent("UIEvents");K.initEvent("pagechanging",!0,!0),K.pageNumber=T,W.container.dispatchEvent(K)}),(0,Q.R)(f,"pagesinit").pipe((0,h.Q)(m)).subscribe(({source:T})=>{const W=document.createEvent("CustomEvent");W.initCustomEvent("pagesinit",!0,!0,null),T.container.dispatchEvent(W)}),(0,Q.R)(f,"pagesloaded").pipe((0,h.Q)(m)).subscribe(({pagesCount:T,source:W})=>{const K=document.createEvent("CustomEvent");K.initCustomEvent("pagesloaded",!0,!0,{pagesCount:T}),W.container.dispatchEvent(K)}),(0,Q.R)(f,"scalechange").pipe((0,h.Q)(m)).subscribe(({scale:T,presetValue:W,source:K})=>{const re=document.createEvent("UIEvents");re.initEvent("scalechange",!0,!0),re.scale=T,re.presetValue=W,K.container.dispatchEvent(re)}),(0,Q.R)(f,"updateviewarea").pipe((0,h.Q)(m)).subscribe(({location:T,source:W})=>{const K=document.createEvent("UIEvents");K.initEvent("updateviewarea",!0,!0),K.location=T,W.container.dispatchEvent(K)}),(0,Q.R)(f,"find").pipe((0,h.Q)(m)).subscribe(({source:T,type:W,query:K,phraseSearch:re,caseSensitive:U,highlightAll:fe,findPrevious:ue})=>{if(T===window)return;const pe=document.createEvent("CustomEvent");pe.initCustomEvent("find"+W,!0,!0,{query:K,phraseSearch:re,caseSensitive:U,highlightAll:fe,findPrevious:ue}),window.dispatchEvent(pe)}),(0,Q.R)(f,"attachmentsloaded").pipe((0,h.Q)(m)).subscribe(({attachmentsCount:T,source:W})=>{const K=document.createEvent("CustomEvent");K.initCustomEvent("attachmentsloaded",!0,!0,{attachmentsCount:T}),W.container.dispatchEvent(K)}),(0,Q.R)(f,"sidebarviewchanged").pipe((0,h.Q)(m)).subscribe(({view:T,source:W})=>{const K=document.createEvent("CustomEvent");K.initCustomEvent("sidebarviewchanged",!0,!0,{view:T}),W.outerContainer.dispatchEvent(K)}),(0,Q.R)(f,"pagemode").pipe((0,h.Q)(m)).subscribe(({mode:T,source:W})=>{const K=document.createEvent("CustomEvent");K.initCustomEvent("pagemode",!0,!0,{mode:T}),W.pdfViewer.container.dispatchEvent(K)}),(0,Q.R)(f,"namedaction").pipe((0,h.Q)(m)).subscribe(({action:T,source:W})=>{const K=document.createEvent("CustomEvent");K.initCustomEvent("namedaction",!0,!0,{action:T}),W.pdfViewer.container.dispatchEvent(K)}),(0,Q.R)(f,"presentationmodechanged").pipe((0,h.Q)(m)).subscribe(({active:T,switchInProgress:W})=>{const K=document.createEvent("CustomEvent");K.initCustomEvent("presentationmodechanged",!0,!0,{active:T,switchInProgress:W}),window.dispatchEvent(K)}),(0,Q.R)(f,"outlineloaded").pipe((0,h.Q)(m)).subscribe(({outlineCount:T,source:W})=>{const K=document.createEvent("CustomEvent");K.initCustomEvent("outlineloaded",!0,!0,{outlineCount:T}),W.container.dispatchEvent(K)})}(T,m),T}(y||(y=o.t(E,2)),this.destroy$),(0,Q.R)(this.eventBus,"pagerendered").pipe((0,h.Q)(this.destroy$)).subscribe(T=>{this.pageRendered.emit(T)}),(0,Q.R)(this.eventBus,"pagesinit").pipe((0,h.Q)(this.destroy$)).subscribe(T=>{this.pageInitialized.emit(T)}),(0,Q.R)(this.eventBus,"pagechanging").pipe((0,h.Q)(this.destroy$)).subscribe(({pageNumber:T})=>{this.pageScrollTimeout&&clearTimeout(this.pageScrollTimeout),this.pageScrollTimeout=window.setTimeout(()=>{this._latestScrolledPage=T,this.pageChange.emit(T)},100)}),(0,Q.R)(this.eventBus,"textlayerrendered").pipe((0,h.Q)(this.destroy$)).subscribe(T=>{this.textLayerRendered.emit(T)})}initPDFServices(){this.pdfLinkService=new E.PDFLinkService({eventBus:this.eventBus,...this.getPDFLinkServiceConfig()}),this.pdfFindController=new E.PDFFindController({eventBus:this.eventBus,linkService:this.pdfLinkService})}getPDFOptions(){return{eventBus:this.eventBus,container:this.element.nativeElement.querySelector("div"),removePageBorders:!this._showBorders,linkService:this.pdfLinkService,textLayerMode:this._renderText?this._renderTextMode:$.DISABLED,findController:this.pdfFindController,renderer:"canvas",l10n:void 0,imageResourcesPath:this._imageResourcesPath}}setupViewer(){P(n||(n=o.t(x,2)),"disableTextLayer",!this._renderText),this.initPDFServices(),this.pdfViewer=this._showAll?new E.PDFViewer(this.getPDFOptions()):new E.PDFSinglePageViewer(this.getPDFOptions()),this.pdfLinkService.setViewer(this.pdfViewer),this.pdfViewer._currentPageNumber=this._page}getValidPageNumber(T){return T<1?1:T>this._pdf.numPages?this._pdf.numPages:T}getDocumentParams(){const T=typeof this.src;if(!this._cMapsUrl)return this.src;const W={cMapUrl:this._cMapsUrl,cMapPacked:!0,enableXfa:!0};return"string"===T?W.url=this.src:"object"===T&&(void 0!==this.src.byteLength?W.data=this.src:Object.assign(W,this.src)),W}loadPDF(){if(!this.src)return;if(this.lastLoaded===this.src)return void this.update();this.clear(),this.setupViewer(),this.loadingTask=x.getDocument(this.getDocumentParams()),this.loadingTask.onProgress=W=>{this.onProgress.emit(W)};const T=this.src;(0,Z.H)(this.loadingTask.promise).pipe((0,h.Q)(this.destroy$)).subscribe({next:W=>{this._pdf=W,this.lastLoaded=T,this.afterLoadComplete.emit(W),this.resetPdfDocument(),this.update()},error:W=>{this.lastLoaded=null,this.onError.emit(W)}})}update(){this.page=this._page,this.render()}render(){this._page=this.getValidPageNumber(this._page),(0!==this._rotation||this.pdfViewer.pagesRotation!==this._rotation)&&setTimeout(()=>{this.pdfViewer.pagesRotation=this._rotation}),this._stickToPage&&setTimeout(()=>{this.pdfViewer.currentPageNumber=this._page}),this.updateSize()}getScale(T,W){const K=this._showBorders?2*f.BORDER_WIDTH:0,re=this.pdfViewerContainer.nativeElement.clientWidth-K,U=this.pdfViewerContainer.nativeElement.clientHeight-K;if(0===U||0===W||0===re||0===T)return 1;let fe=1;switch(this._zoomScale){case"page-fit":fe=Math.min(U/W,re/T);break;case"page-height":fe=U/W;break;default:fe=re/T}return this._zoom*fe/f.CSS_UNITS}resetPdfDocument(){this.pdfLinkService.setDocument(this._pdf,null),this.pdfFindController.setDocument(this._pdf),this.pdfViewer.setDocument(this._pdf)}initialize(){k()||!this.isVisible||(this.isInitialized=!0,this.initEventBus(),this.setupViewer())}setupResizeListener(){k()||this.ngZone.runOutsideAngular(()=>{(0,Q.R)(window,"resize").pipe((0,w.B)(100),(0,D.p)(()=>this._canAutoResize&&!!this._pdf),(0,h.Q)(this.destroy$)).subscribe(()=>{this.updateSize()})})}}return f.CSS_UNITS=96/72,f.BORDER_WIDTH=9,f.\u0275fac=function(T){return new(T||f)(a.rXU(a.aKT),a.rXU(a.SKi))},f.\u0275cmp=a.VBU({type:f,selectors:[["pdf-viewer"]],viewQuery:function(T,W){if(1&T&&a.GBs(z,5),2&T){let K;a.mGM(K=a.lsd())&&(W.pdfViewerContainer=K.first)}},inputs:{src:"src",cMapsUrl:["c-maps-url","cMapsUrl"],page:"page",renderText:["render-text","renderText"],renderTextMode:["render-text-mode","renderTextMode"],originalSize:["original-size","originalSize"],showAll:["show-all","showAll"],stickToPage:["stick-to-page","stickToPage"],zoom:"zoom",zoomScale:["zoom-scale","zoomScale"],rotation:"rotation",externalLinkTarget:["external-link-target","externalLinkTarget"],autoresize:"autoresize",fitToPage:["fit-to-page","fitToPage"],showBorders:["show-borders","showBorders"]},outputs:{afterLoadComplete:"after-load-complete",pageRendered:"page-rendered",pageInitialized:"pages-initialized",textLayerRendered:"text-layer-rendered",onError:"error",onProgress:"on-progress",pageChange:"pageChange"},features:[a.OA$],decls:3,vars:0,consts:[[1,"ng2-pdf-viewer-container"],["pdfViewerContainer",""],[1,"pdfViewer"]],template:function(T,W){1&T&&(a.j41(0,"div",0,1),a.nrm(2,"div",2),a.k0s())},styles:[".ng2-pdf-viewer-container[_ngcontent-%COMP%]{overflow-x:auto;position:absolute;height:100%;width:100%;-webkit-overflow-scrolling:touch}[_nghost-%COMP%]{display:block;position:relative}[_nghost-%COMP%] {--pdfViewer-padding-bottom: 0;--page-margin: 1px auto -8px;--page-border: 9px solid transparent;--spreadHorizontalWrapped-margin-LR: -3.5px;--zoom-factor: 1;--viewport-scale-factor: 1;--shadow: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAA1ElEQVQ4jbWUWw6EIAxFy2NFs/8NzR4UJhpqLsdi5mOmSSMUOfYWqv3S0gMr4XlYH/64gZa/gN3ANYA7KAXALt4ktoQ5MI9YxqaG8bWmsIysMuT6piSQCa4whZThCu8CM4zP9YJaKci9jicPq3NcBWYoPMGUlhG7ivtkB+gVyFY75wXghOvh8t5mto1Mdim6e+MBqH6XsY+YAwjpq3vGF7weTWQptLEDVCZvPTMl5JZZsdh47FHW6qFMyvLYqjcnmdFfY9Xk/KDOlzCusX2mi/ofM7MPkzBcSp4Q1/wAAAAASUVORK5CYII=);--viewer-container-height: 0;--annotation-unfocused-field-background: url(\"data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>\");--xfa-unfocused-field-background: url(\"data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>\")}@media screen and (forced-colors: active){[_nghost-%COMP%] {--pdfViewer-padding-bottom: 9px;--page-margin: 9px auto 0;--page-border: none;--spreadHorizontalWrapped-margin-LR: 4.5px}}[_nghost-%COMP%] .textLayer{position:absolute;text-align:initial;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1;-webkit-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none}[_nghost-%COMP%] .textLayer span, [_nghost-%COMP%] .textLayer br{color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0% 0%}[_nghost-%COMP%] .textLayer span.markedContent{top:0;height:0}[_nghost-%COMP%] .textLayer .highlight{margin:-1px;padding:1px;background-color:#b400aa;border-radius:4px}[_nghost-%COMP%] .textLayer .highlight.appended{position:initial}[_nghost-%COMP%] .textLayer .highlight.begin{border-radius:4px 0 0 4px}[_nghost-%COMP%] .textLayer .highlight.end{border-radius:0 4px 4px 0}[_nghost-%COMP%] .textLayer .highlight.middle{border-radius:0}[_nghost-%COMP%] .textLayer .highlight.selected{background-color:#006400}[_nghost-%COMP%] .textLayer ::selection{background:blue}[_nghost-%COMP%] .textLayer br::selection{background:transparent}[_nghost-%COMP%] .textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .textLayer .endOfContent.active{top:0}[_nghost-%COMP%] .annotationLayer section{position:absolute;text-align:initial}[_nghost-%COMP%] .annotationLayer .linkAnnotation>a, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.pushButton>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.pushButton>canvas{position:relative;top:0;left:0;z-index:-1}[_nghost-%COMP%] .annotationLayer .linkAnnotation>a:hover, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.pushButton>a:hover{opacity:.2;background:yellow;box-shadow:0 2px 10px #ff0}[_nghost-%COMP%] .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input{background-image:var(--annotation-unfocused-field-background);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}[_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select option{padding:0}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input[disabled], [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea[disabled], [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select[disabled], [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled], [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled]{background:none;border:1px solid transparent;cursor:not-allowed}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input:hover, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea:hover, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select:hover, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:hover, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input:hover{border:1px solid black}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input:focus, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea:focus, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select:focus{background:none;border:1px solid transparent}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input :focus, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea :focus, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select :focus, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox :focus, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton :focus{background-image:none;background-color:transparent;outline:auto}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#000;content:\"\";display:block;position:absolute}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{height:80%;left:45%;width:1px}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}[_nghost-%COMP%] .annotationLayer .popupWrapper{position:absolute;width:20em}[_nghost-%COMP%] .annotationLayer .popup{position:absolute;z-index:200;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #888;border-radius:2px;padding:6px;margin-left:5px;cursor:pointer;font:message-box;font-size:9px;white-space:normal;word-wrap:break-word}[_nghost-%COMP%] .annotationLayer .popup>*{font-size:9px}[_nghost-%COMP%] .annotationLayer .popup h1{display:inline-block}[_nghost-%COMP%] .annotationLayer .popupDate{display:inline-block;margin-left:5px}[_nghost-%COMP%] .annotationLayer .popupContent{border-top:1px solid #333333;margin-top:2px;padding-top:2px}[_nghost-%COMP%] .annotationLayer .richText>*{white-space:pre-wrap}[_nghost-%COMP%] .annotationLayer .highlightAnnotation, [_nghost-%COMP%] .annotationLayer .underlineAnnotation, [_nghost-%COMP%] .annotationLayer .squigglyAnnotation, [_nghost-%COMP%] .annotationLayer .strikeoutAnnotation, [_nghost-%COMP%] .annotationLayer .freeTextAnnotation, [_nghost-%COMP%] .annotationLayer .lineAnnotation svg line, [_nghost-%COMP%] .annotationLayer .squareAnnotation svg rect, [_nghost-%COMP%] .annotationLayer .circleAnnotation svg ellipse, [_nghost-%COMP%] .annotationLayer .polylineAnnotation svg polyline, [_nghost-%COMP%] .annotationLayer .polygonAnnotation svg polygon, [_nghost-%COMP%] .annotationLayer .caretAnnotation, [_nghost-%COMP%] .annotationLayer .inkAnnotation svg polyline, [_nghost-%COMP%] .annotationLayer .stampAnnotation, [_nghost-%COMP%] .annotationLayer .fileAttachmentAnnotation{cursor:pointer}[_nghost-%COMP%] .xfaLayer .highlight{margin:-1px;padding:1px;background-color:#efcbed;border-radius:4px}[_nghost-%COMP%] .xfaLayer .highlight.appended{position:initial}[_nghost-%COMP%] .xfaLayer .highlight.begin{border-radius:4px 0 0 4px}[_nghost-%COMP%] .xfaLayer .highlight.end{border-radius:0 4px 4px 0}[_nghost-%COMP%] .xfaLayer .highlight.middle{border-radius:0}[_nghost-%COMP%] .xfaLayer .highlight.selected{background-color:#cbdfcb}[_nghost-%COMP%] .xfaLayer ::selection{background:blue}[_nghost-%COMP%] .xfaPage{overflow:hidden;position:relative}[_nghost-%COMP%] .xfaContentarea{position:absolute}[_nghost-%COMP%] .xfaPrintOnly{display:none}[_nghost-%COMP%] .xfaLayer{position:absolute;text-align:initial;top:0;left:0;transform-origin:0 0;line-height:1.2}[_nghost-%COMP%] .xfaLayer *{color:inherit;font:inherit;font-style:inherit;font-weight:inherit;font-feature-settings:inherit;font-kerning:inherit;letter-spacing:-.01px;text-align:inherit;text-decoration:inherit;box-sizing:border-box;background-color:transparent;padding:0;margin:0;pointer-events:auto;line-height:inherit}[_nghost-%COMP%] .xfaLayer div{pointer-events:none}[_nghost-%COMP%] .xfaLayer svg{pointer-events:none}[_nghost-%COMP%] .xfaLayer svg *{pointer-events:none}[_nghost-%COMP%] .xfaLayer a{color:#00f}[_nghost-%COMP%] .xfaRich li{margin-left:3em}[_nghost-%COMP%] .xfaFont{color:#000;font-weight:400;font-feature-settings:\"kern\" off;font-kerning:none;font-size:10px;font-style:normal;letter-spacing:0;text-decoration:none;vertical-align:0}[_nghost-%COMP%] .xfaCaption{overflow:hidden;flex:0 0 auto}[_nghost-%COMP%] .xfaCaptionForCheckButton{overflow:hidden;flex:1 1 auto}[_nghost-%COMP%] .xfaLabel{height:100%;width:100%}[_nghost-%COMP%] .xfaLeft{display:flex;flex-direction:row;align-items:center}[_nghost-%COMP%] .xfaRight{display:flex;flex-direction:row-reverse;align-items:center}[_nghost-%COMP%] .xfaLeft>.xfaCaption, [_nghost-%COMP%] .xfaLeft>.xfaCaptionForCheckButton, [_nghost-%COMP%] .xfaRight>.xfaCaption, [_nghost-%COMP%] .xfaRight>.xfaCaptionForCheckButton{max-height:100%}[_nghost-%COMP%] .xfaTop{display:flex;flex-direction:column;align-items:flex-start}[_nghost-%COMP%] .xfaBottom{display:flex;flex-direction:column-reverse;align-items:flex-start}[_nghost-%COMP%] .xfaTop>.xfaCaption, [_nghost-%COMP%] .xfaTop>.xfaCaptionForCheckButton, [_nghost-%COMP%] .xfaBottom>.xfaCaption, [_nghost-%COMP%] .xfaBottom>.xfaCaptionForCheckButton{width:100%}[_nghost-%COMP%] .xfaBorder{background-color:transparent;position:absolute;pointer-events:none}[_nghost-%COMP%] .xfaWrapped{width:100%;height:100%}[_nghost-%COMP%] .xfaTextfield:focus, [_nghost-%COMP%] .xfaSelect:focus{background-image:none;background-color:transparent;outline:auto;outline-offset:-1px}[_nghost-%COMP%] .xfaCheckbox:focus, [_nghost-%COMP%] .xfaRadio:focus{outline:auto}[_nghost-%COMP%] .xfaTextfield, [_nghost-%COMP%] .xfaSelect{height:100%;width:100%;flex:1 1 auto;border:none;resize:none;background-image:var(--xfa-unfocused-field-background)}[_nghost-%COMP%] .xfaTop>.xfaTextfield, [_nghost-%COMP%] .xfaTop>.xfaSelect, [_nghost-%COMP%] .xfaBottom>.xfaTextfield, [_nghost-%COMP%] .xfaBottom>.xfaSelect{flex:0 1 auto}[_nghost-%COMP%] .xfaButton{cursor:pointer;width:100%;height:100%;border:none;text-align:center}[_nghost-%COMP%] .xfaLink{width:100%;height:100%;position:absolute;top:0;left:0}[_nghost-%COMP%] .xfaCheckbox, [_nghost-%COMP%] .xfaRadio{width:100%;height:100%;flex:0 0 auto;border:none}[_nghost-%COMP%] .xfaRich{white-space:pre-wrap;width:100%;height:100%}[_nghost-%COMP%] .xfaImage{object-position:left top;object-fit:contain;width:100%;height:100%}[_nghost-%COMP%] .xfaLrTb, [_nghost-%COMP%] .xfaRlTb, [_nghost-%COMP%] .xfaTb{display:flex;flex-direction:column;align-items:stretch}[_nghost-%COMP%] .xfaLr{display:flex;flex-direction:row;align-items:stretch}[_nghost-%COMP%] .xfaRl{display:flex;flex-direction:row-reverse;align-items:stretch}[_nghost-%COMP%] .xfaTb>div{justify-content:left}[_nghost-%COMP%] .xfaPosition{position:relative}[_nghost-%COMP%] .xfaArea{position:relative}[_nghost-%COMP%] .xfaValignMiddle{display:flex;align-items:center}[_nghost-%COMP%] .xfaTable{display:flex;flex-direction:column;align-items:stretch}[_nghost-%COMP%] .xfaTable .xfaRow{display:flex;flex-direction:row;align-items:stretch}[_nghost-%COMP%] .xfaTable .xfaRlRow{display:flex;flex-direction:row-reverse;align-items:stretch;flex:1}[_nghost-%COMP%] .xfaTable .xfaRlRow>div{flex:1}[_nghost-%COMP%] .xfaNonInteractive input, [_nghost-%COMP%] .xfaNonInteractive textarea, [_nghost-%COMP%] .xfaDisabled input, [_nghost-%COMP%] .xfaDisabled textarea, [_nghost-%COMP%] .xfaReadOnly input, [_nghost-%COMP%] .xfaReadOnly textarea{background:initial}@media print{[_nghost-%COMP%] .xfaTextfield, [_nghost-%COMP%] .xfaSelect{background:transparent}[_nghost-%COMP%] .xfaSelect{-webkit-appearance:none;-moz-appearance:none;appearance:none;text-indent:1px;text-overflow:\"\"}}[_nghost-%COMP%] .pdfViewer{padding-bottom:var(--pdfViewer-padding-bottom)}[_nghost-%COMP%] .pdfViewer .canvasWrapper{overflow:hidden}[_nghost-%COMP%] .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:var(--page-margin);position:relative;overflow:visible;border:var(--page-border);background-clip:content-box;border-image:var(--shadow) 9 9 repeat;background-color:#fff}[_nghost-%COMP%] .pdfViewer .dummyPage{position:relative;width:0;height:var(--viewer-container-height)}[_nghost-%COMP%] .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}[_nghost-%COMP%] .pdfViewer.singlePageView{display:inline-block}[_nghost-%COMP%] .pdfViewer.singlePageView .page{margin:0;border:none}[_nghost-%COMP%] .pdfViewer.scrollHorizontal, [_nghost-%COMP%] .pdfViewer.scrollWrapped, [_nghost-%COMP%] .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}[_nghost-%COMP%] .pdfViewer.scrollHorizontal, [_nghost-%COMP%] .spread{white-space:nowrap}[_nghost-%COMP%] .pdfViewer.removePageBorders, [_nghost-%COMP%] .pdfViewer.scrollHorizontal .spread, [_nghost-%COMP%] .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}[_nghost-%COMP%] .spread .page, [_nghost-%COMP%] .spread .dummyPage, [_nghost-%COMP%] .pdfViewer.scrollHorizontal .page, [_nghost-%COMP%] .pdfViewer.scrollWrapped .page, [_nghost-%COMP%] .pdfViewer.scrollHorizontal .spread, [_nghost-%COMP%] .pdfViewer.scrollWrapped .spread{display:inline-block;vertical-align:middle}[_nghost-%COMP%] .spread .page, [_nghost-%COMP%] .pdfViewer.scrollHorizontal .page, [_nghost-%COMP%] .pdfViewer.scrollWrapped .page{margin-left:var(--spreadHorizontalWrapped-margin-LR);margin-right:var(--spreadHorizontalWrapped-margin-LR)}[_nghost-%COMP%] .pdfViewer.removePageBorders .spread .page, [_nghost-%COMP%] .pdfViewer.removePageBorders.scrollHorizontal .page, [_nghost-%COMP%] .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}[_nghost-%COMP%] .pdfViewer .page canvas{margin:0;display:block}[_nghost-%COMP%] .pdfViewer .page canvas[hidden]{display:none}[_nghost-%COMP%] .pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url(data:image/gif;base64,R0lGODlhGAAYAPQQAM7Ozvr6+uDg4LCwsOjo6I6OjsjIyJycnNjY2KioqMDAwPLy8nZ2doaGhri4uGhoaP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/ilPcHRpbWl6ZWQgd2l0aCBodHRwczovL2V6Z2lmLmNvbS9vcHRpbWl6ZQAh+QQJBwAQACwAAAAAGAAYAAAFmiAkjiTkOGVaBgjZNGSgkgKjjM8zLoI8iy+BKCdiCX8iBeMAhEEIPRXLxViYUE9CbCQoFAzFhHY3zkaT3oPvBz1zE4UBsr1eWZH4vAowOBwGAHk8AoQLfH6Agm0Ed3qOAXWOIgQKiWyFJQgDgJEpdG+WEACNEFNFmKVlVzJQk6qdkwqBoi1mebJ3ALNGeIZHtGSwNDS1RZKueCEAIfkECQcAEAAsAAAAABgAGAAABZcgJI4kpChlWgYCWRQkEKgjURgjw4zOg9CjVwuiEyEeO6CxkBC9nA+HiuUqLEyoBZI0Mx4SAFFgQCDZuguBoGv6Dtg0gvpqdhxQQDkBzuUr/4A1JwMKP39pc2mDhYCIc4GQYn6QCwCMeY91l0p6dBAEJ0OfcFRimZ91Mwt0alxxAIZyRmuAsKxDLKKvZbM1tJxmvGKRpn8hACH5BAkHABAALAAAAAAYABgAAAWhICSOJGQYZVoGAnkcJBKoI3EAY1GMCtPSosSBINKJBIwGkHdwBGGQA0OhYpEGQxNqkYzNIITBACEKKBaxxNfBeOCO4vMy0Hg8nDHFeCktkKtfNAtoS4UqAicKBj9zBAKPC4iKi4aRkISGmWWBmjUIAIyHkCUEAKCVo2WmREecVqoCgZhgP4NHrGWCj7e3szSpuxAsoVWxnp6cVV4kyZW+KSEAIfkECQcAEAAsAAAAABgAGAAABZkgJI4kBABlWgYEOQykEKgjMSDjcYxG0dKi108nEhQKQN4rCIMkCgbawjWYnSCLY2yGVSgEooBhWqsGGwxc0RtNBgoMhmJ1QgETjANYFeBKyUmBKQQIdT9JDmgPDQ6EhoKJD4sOgpWWgiwChyqEBH5hmptSoSOZgJ4kLKWkYTF7C2SaqaM/hEWygay4mYG8t6uffFuzl1iANCEAIfkECQcAEAAsAAAAABgAGAAABZ0gJI4khCBlmhKkopBCoI6LIozDMAIHO4uuBVBnOiR+I4FrCDwAZsKdQnaCLIwwmRUA8JmioprWUCjcwlwUMnAoG0qL03k2KCS8cC0UjOzDCQKBfHQFDAwFU4CCfgqFhy9+kZJWgzSKSAcPZn+BfQENDw8OljGWJAFeDoZPYTBnC1GdSXqnsoBolSulX2GyP6hgvnG0KrS3NJNhuSQhACH5BAkHABAALAAAAAAYABgAAAWaICSOJCQIZZoupGGQRKCOC0CMijIiwz2LABtQZxoMfjQhxAXszWQ7gOwECRhh0MCJJRJARTUoIHFAgbfI6uBwAJS01J/i4PClVYHvfV8lbLlIBmwFbQt+aGmChG18jXeGT4dICQxlb4g/AQUMDER9XjR6BAdiDQwINDBmkAsPDVh4cX4imw53iLKuaVqAcUsPqEiidkt6j4AzIQAh+QQJBwAQACwAAAAAGAAYAAAFmSAkjiREEGWaBiSCtCoZCMsIAKOg1LEo0KKbaKFQ9EYLoOkFuQlirNxzCQkUW9GZ0hQd4nyDAWr4G/esYSbyZFYZwu3jqiuvr8u8I2BwOAwASXh1e31/doeHC3klWnElfAlTd46MfQUGk2stCVEGBQWSdCciDg5VDAVYKoEiDQ0iBwxGcj9RDw8+qHIzebc2DJJQJK6qiKVyIQAh+QQJBwAQACwAAAAAGAAYAAAFmSAkjiS0LGWaBiRBtCoZCKgoCCMB1DF0sz6cCQDo5W62l28XAyZFpyECBv3lnCbhUqHMIo0Qg4Jbmn1jRCa4iV27TzfXGjEecOFWMN1OdvvfPGUuXSoKBw6EXokrAwcHRVU0UAeEBANAAAmUI1gNDyhjJgUHLW0iDg8FIqOnBQZrDA9TELE2rEYIDw4jta2LMpCrqld/YQpgIQAh+QQJBwAQACwAAAAAGAAYAAAFmyAkjiS0LGWaBiRBkKw6BgIqCsJcyyMe4yJajhcEml5H26o1PN2QQd3uFiv2AADlAgflIbDdZLgkABOJgep5LfWty4p4zeU+w+XsvJWXliEKDwdEBgMKYQ4PDw1qK3EDCCMAiQ5BCV0LCj+FSDQkgCgGBiYHAy2MIgoMghAHqw4HAGsNDEMFBTekdgwKI7aRB2MwkL2rVHoQoWchACH5BAkHABAALAAAAAAYABgAAAWWICSOJLQsZZoGJEGQrDoGAioKwlzLIx7jIlqOFwSaXkfbqjU83ZBB3e4WK0qrCxyU55peid0qcUwuixyNx6PhILsAcAJazXYj4lvz2MkLiFsHDAlEcABKZwwMBX8pBgoKQxAIigpBA1sLBj+PSDQkB4uSACYDlTMyBgWDEKVnl2QFBUigN61gBQYjtLV5JZ4jtlR6omMhACH5BAkHABAALAAAAAAYABgAAAWaICSOJLQsZZoGJEGQrDoGAioKwlzLIx7jIlqOFwSaXkdbidYanm7I4AjwYDh6saJuJ3JUG1mZi9srPA7EcRimJLrfJYWZUVC8TziXnEG3u/E+cIJaPAFrPQl1aQAIbRAGBZGHJQiMUQKRBkEKbQsAPZaEXQcslSYKmjMyAAdXj34ACkNEiUgDA5t+PAQHn6Ogjkuzry2DNwhuIQAh+QQFBwAQACwAAAAAGAAYAAAFnCAkjiS0LGVaBgBJEGSguo8zCsK4CPIsMg+ECCcKEH0ix6MwhJl4KiOp8UCdmrEbo6EoHpxF8A6aBBZ6vhf5dmAkkGr0CoWs21WGQ2FvsI9xC3l7B311fy93iWGKJQQOhHCAJQB6A3IqcWwJLU90i2FkUiMKlhBELEI6MwgDXRAGhQgAYD6tTqRFAJxpA6mvrqazSKJJhUWMpjlIIQA7) center no-repeat}[_nghost-%COMP%] .pdfViewer .page .loadingIcon.notVisible{background:none}[_nghost-%COMP%] .pdfViewer.enablePermissions .textLayer span{-webkit-user-select:none!important;user-select:none!important;cursor:not-allowed}[_nghost-%COMP%] .pdfPresentationMode .pdfViewer{padding-bottom:0}[_nghost-%COMP%] .pdfPresentationMode .spread{margin:0}[_nghost-%COMP%] .pdfPresentationMode .pdfViewer .page{margin:0 auto;border:2px solid transparent}"]}),f})(),g=(()=>{class f{}return f.\u0275fac=function(T){return new(T||f)},f.\u0275mod=a.$C({type:f}),f.\u0275inj=a.G2t({}),f})()},73308:(He,L,o)=>{"use strict";function n(a,Q,ie,Z,h,w,D){try{var x=a[w](D),E=x.value}catch(z){return void ie(z)}x.done?Q(E):Promise.resolve(E).then(Z,h)}function y(a){return function(){var Q=this,ie=arguments;return new Promise(function(Z,h){var w=a.apply(Q,ie);function D(E){n(w,Z,h,D,x,"next",E)}function x(E){n(w,Z,h,D,x,"throw",E)}D(void 0)})}}o.d(L,{A:()=>y})},97270:(He,L,o)=>{"use strict";function ie(p,N,G,R){var se,ne=arguments.length,S=ne<3?N:null===R?R=Object.getOwnPropertyDescriptor(N,G):R;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(p,N,G,R);else for(var Me=p.length-1;Me>=0;Me--)(se=p[Me])&&(S=(ne<3?se(S):ne>3?se(N,G,S):se(N,G))||S);return ne>3&&S&&Object.defineProperty(N,G,S),S}function z(p,N,G,R){return new(G||(G=Promise))(function(S,se){function Me(je){try{Re(R.next(je))}catch(at){se(at)}}function Fe(je){try{Re(R.throw(je))}catch(at){se(at)}}function Re(je){je.done?S(je.value):function ne(S){return S instanceof G?S:new G(function(se){se(S)})}(je.value).then(Me,Fe)}Re((R=R.apply(p,N||[])).next())})}function m(p){return this instanceof m?(this.v=p,this):new m(p)}function T(p,N,G){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ne,R=G.apply(p,N||[]),S=[];return ne=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),Me("next"),Me("throw"),Me("return",function se(Qe){return function(nt){return Promise.resolve(nt).then(Qe,at)}}),ne[Symbol.asyncIterator]=function(){return this},ne;function Me(Qe,nt){R[Qe]&&(ne[Qe]=function(_t){return new Promise(function(Ge,ht){S.push([Qe,_t,Ge,ht])>1||Fe(Qe,_t)})},nt&&(ne[Qe]=nt(ne[Qe])))}function Fe(Qe,nt){try{!function Re(Qe){Qe.value instanceof m?Promise.resolve(Qe.value.v).then(je,at):ft(S[0][2],Qe)}(R[Qe](nt))}catch(_t){ft(S[0][3],_t)}}function je(Qe){Fe("next",Qe)}function at(Qe){Fe("throw",Qe)}function ft(Qe,nt){Qe(nt),S.shift(),S.length&&Fe(S[0][0],S[0][1])}}function K(p){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var G,N=p[Symbol.asyncIterator];return N?N.call(p):(p=function k(p){var N="function"==typeof Symbol&&Symbol.iterator,G=N&&p[N],R=0;if(G)return G.call(p);if(p&&"number"==typeof p.length)return{next:function(){return p&&R>=p.length&&(p=void 0),{value:p&&p[R++],done:!p}}};throw new TypeError(N?"Object is not iterable.":"Symbol.iterator is not defined.")}(p),G={},R("next"),R("throw"),R("return"),G[Symbol.asyncIterator]=function(){return this},G);function R(S){G[S]=p[S]&&function(se){return new Promise(function(Me,Fe){!function ne(S,se,Me,Fe){Promise.resolve(Fe).then(function(Re){S({value:Re,done:Me})},se)}(Me,Fe,(se=p[S](se)).done,se.value)})}}}o.d(L,{AQ:()=>T,Cg:()=>ie,N3:()=>m,sH:()=>z,xN:()=>K}),"function"==typeof SuppressedError&&SuppressedError}},He=>{He(He.s=91120)}]);