dealposbarcode 26.46.2 → 26.46.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{chunk-B46yqpy5.js → chunk-B4SypU5x.js} +1 -1
- package/{chunk-B--DyovV.js → chunk-Bx9fCbls.js} +1 -1
- package/{chunk-FNF6mOAI.js → chunk-CzCMpdYW.js} +1 -1
- package/{chunk-Bt9WVrBi.js → chunk-D_drFZ9B.js} +1 -1
- package/{chunk-CAUSMNuw.js → chunk-Dga3bjBb.js} +1 -1
- package/{chunk-Dq15Py-v.js → chunk-MQHp7r9K.js} +1 -1
- package/{chunk-BsffhtbA.js → chunk-No-kkB47.js} +1 -1
- package/{chunk-BTkPXAJR.js → chunk-d9TVeeRY.js} +1 -1
- package/{chunk-ANgQsrxT.js → chunk-gvoWbvLX.js} +1 -1
- package/chunk-jYvhl2Yc.js +1 -0
- package/{chunk-It5b_NT1.js → chunk-yJ9bUdiC.js} +1 -1
- package/index.html +2 -2
- package/{main-Q45KL3O3.js → main-4PMU2GQ6.js} +3 -3
- package/ngsw.json +131 -131
- package/package.json +1 -1
- package/chunk-k8c-L_w_.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as ua$3,A as _r$1,C as Ud,D as Xi$3,E as Vl,F as fh,H as lc$1,I as fn$3,J as rs$3,M as as$3,P as dh$1,R as hh,T as Va$3,Y as sc$1,Z as te$2,_ as Ps$2,a as Fs$2,at as xh,d as Ke$4,f as La$3,g as Pa$2,l as Ht$3,m as Mi$3,n as Ec$1,ot as xs$1,q as pr$1,r as Er$1,rt as xa$3,t as Ah$1,v as Rs$2,x as Te$3,y as Si$3}from"./chunk-CtdBLXrI.js";import{$ as Jw,$r as st$4,$t as Vn$3,A as Eu,Ai as L$4,An as dr$2,Ar as mv,At as Qm,Bn as fd$1,Br as pl,Bt as Sm,C as Dm,Ci as zu,Cn as by,Cr as lm,Ct as Pm,D as Eh,Di as I$1,Dn as cm,Dr as ml,Dt as Q1,E as E$2,En as cl,Et as Q$1,F as Fr$2,Fn as ee$2,Fr as od$1,Ft as Rh,G as He$3,Gn as fs$1,Gr as qe$1,Gt as Tm,H as Gu,Hn as fl,Hr as q$1,Ht as Te$4,I as Fw,In as ei$3,Ir as oi$3,It as Rm,J as Ih,Jt as Ty,K as Ho$2,Kn as fw,Kr as qh,L as G$2,Ln as en$3,Lr as ov,M as Fb,Mn as eD,Mr as nE,Mt as Qr$3,Nn as eE,Nr as nu,Nt as R1,Oi as J$2,On as cv,Or as mp,P as Fm,Pn as eb,Pr as oE,Q as Jn$2,Qr as sm,R as G1,Rn as ep,Rr as ow,Rt as Sf,S as Db,Si as zn$3,St as Pi$3,Ti as G$1,Tn as cg,Tr as me$2,Tt as Pw,U as H1,Un as fm,Ur as q1,Ut as Tg,V as Gh,Vr as pm,Vt as Tb,W as Hb,Wn as fn$4,Wt as Th,X as Jh,Xn as gs$1,Xr as rm,Xt as Vg,Y as Im,Yt as U1,Z as Ji$3,Zn as gv,Zr as ru$1,Zt as Vh$1,_ as Cb,_i as yb,_n as b$3,_r as kh,_t as Ow,a as $h,ai as ue$2,an as Xh,ar as hw,at as Mh,bi as zh$1,br as kw,bt as Pb,c as Ah$2,cr as it$3,d as B1,di as vw,ei as ti$3,en as Vw,er as hd$1,et as Kn$2,f as BD,fn as Zr$3,fr as jw,ft as O1,g as Br$3,gi as x$3,gn as _h,gr as ke$1,gt as Om,h as Bo$2,ht as Oh$1,i as $e$1,ii as ub,in as Wh$1,j as F1,ji as M$1,jn as ds$3,jr as mw,jt as Qn$2,k as Et$3,ki as K$1,kr as ms$2,li as vs$2,lr as j1,m as Bh,mi as wm,mn as _$1,mt as Ob,n as $D,nn as W1,nr as hl,o as Ab,or as iI,ot as Mm,p as Be$2,pi as wi$3,pr as k1,pt as Oa$3,q as Ie$2,qn as gb,qr as ql,qt as Tw,r as $b,ri as tu$1,rn as WD,rr as hs$1,rt as Lm,s as Ae$3,si as um,sn as Xn$2,sr as im,st as Mo$2,tn as Vy,tr as hg,tt as L1,u as Aw,ui as vt$3,un as Ze$1,ur as jD,ut as Nm,v as Cg,vi as yw,vn as bb,vr as km,vt as P1,w as Du,wi as F$3,wn as cc$1,wr as mb,wt as Pr$1,x as Cy,xr as le$1,xt as Ph,yi as z1,yn as be$3,yt as PD,z as GD,zn as er$3,zt as Sh$1}from"./chunk-LD3k3Loy.js";import{$ as gl,C as Nu,Dt as yi$3,I as Wl,J as dl,L as Xi$4,M as To$2,Mt as zr$2,N as Ul,O as Su,Ot as yl,Q as gd$1,R as Yi$3,U as ad$1,X as fe$1,Y as el$1,Z as fl$1,_t as so$1,b as Kr$3,ct as ml$1,d as Do$2,dt as qa$3,et as hd$2,ft as qu,g as Fs$3,gt as sl,h as Fo$2,k as Tc$1,l as Bo$3,mt as rp,nt as it$4,o as Ao$2,p as Eo$2,q as ct$5,r as Ac$1,rt as ja$3,s as At$4,st as md$1,tt as hl$1,v as Il,vt as tu$2,w as Ol,wt as vu,xt as vc$1,yt as ui$3,z as Ze$2}from"./chunk-CZtkF-WL.js";import{a as et$1,c as nt$3,i as ct$6,l as ot$3,n as O$1,o as it$5,r as at$4,s as k,t as C$2}from"./chunk-DAfeU1o0.js";var r$1=(function(s){return s[s.State=0]=`State`,s[s.Transition=1]=`Transition`,s[s.Sequence=2]=`Sequence`,s[s.Group=3]=`Group`,s[s.Animate=4]=`Animate`,s[s.Keyframes=5]=`Keyframes`,s[s.Style=6]=`Style`,s[s.Trigger=7]=`Trigger`,s[s.Reference=8]=`Reference`,s[s.AnimateChild=9]=`AnimateChild`,s[s.AnimateRef=10]=`AnimateRef`,s[s.Query=11]=`Query`,s[s.Stagger=12]=`Stagger`,s})(r$1||{});function a(s,t){return{type:r$1.Trigger,name:s,definitions:t,options:{}}}function c$1(s,t=null){return{type:r$1.Animate,styles:t,timings:s}}function y$2(s,t=null){return{type:r$1.Sequence,steps:s,options:t}}function F$2(s){return{type:r$1.Style,styles:s,offset:null}}function S$2(s,t,e){return{type:r$1.State,name:s,styles:t,options:e}}function g$2(s){return{type:r$1.Keyframes,steps:s}}function D$2(s,t,e=null){return{type:r$1.Transition,expr:s,animation:t,options:e}}var l=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(t=0,e=0){this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let e=t==`start`?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}};var u$1=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(t){this.players=t;let e=0,n=0,o=0,h=this.players.length;h==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(i=>{i.onDone(()=>{++e==h&&this._onFinish()}),i.onDestroy(()=>{++n==h&&this._onDestroy()}),i.onStart(()=>{++o==h&&this._onStart()})}),this.totalTime=this.players.reduce((i,f)=>Math.max(i,f.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let e=t*this.totalTime;this.players.forEach(n=>{let o=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(o)})}getPosition(){let t=this.players.reduce((e,n)=>e===null||n.totalTime>e.totalTime?n:e,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let e=t==`start`?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}};var e={production:!0,firebaseConfig:{apiKey:`AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw`,authDomain:`auth.dealpos.com`,projectId:`devops-signin`,storageBucket:`devops-signin.appspot.com`,messagingSenderId:`412465165194`,appId:`1:412465165194:web:03d806f6b6ab6f8b460e73`,measurementId:`G-MNDBRJ5XZD`},version:`26.46.2`,PRIMEUI_LICENSE_KEY:`eyJpZCI6IjgxNTc1ZWZhLWI4ZjAtNDIwYi1hNzdkLTMxYmY5MWY0OGQzYyIsInByb2R1Y3QiOiJwcmltZXVpIiwidGllciI6ImNvbW11bml0eSIsInR5cGUiOiJkZXYiLCJpYXQiOjE3OTA4MjI3NjcsImV4cCI6MTgyMjM1ODc2N30.SJhoTx2geJUwkCMOZUrMn75YMe6bxSRZ4Yy9DwhzeZu4_yaEc0U4BFlP2w23E1HDjUpeo-Zuoqaxi8zO-6bTAg`};var g$1=`primary`;var rt$2=Symbol(`RouteTitle`);var Cn$2=class{params;constructor(n){this.params=n||{}}has(n){return Object.hasOwn(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function ye$3(t){return new Cn$2(t)}function mn$3(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===`:`)e[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function Yr$2(t,n,e){let r=e.path.split(`/`),i=r.indexOf(`**`);if(i===-1){if(r.length>t.length||e.pathMatch===`full`&&(n.hasChildren()||r.length<t.length))return null;let s={},u=t.slice(0,r.length);return mn$3(r,u,s)?{consumed:u,posParams:s}:null}if(i!==r.lastIndexOf(`**`))return null;let o=r.slice(0,i),a=r.slice(i+1);if(o.length+a.length>t.length||e.pathMatch===`full`&&n.hasChildren()&&e.path!==`**`)return null;let c={};return!mn$3(o,t.slice(0,o.length),c)||!mn$3(a,t.slice(t.length-a.length),c)?null:{consumed:t,posParams:c}}function Et$2(t){return new Promise((n,e)=>{t.pipe(nu()).subscribe({next:r=>n(r),error:r=>e(r)})})}function co$1(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!J$1(t[e],n[e]))return!1;return!0}function J$1(t,n){let e=t?bn$2(t):void 0,r=n?bn$2(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!Jr$2(t[i],n[i]))return!1;return!0}function bn$2(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Jr$2(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function uo$1(t){return t.length>0?t[t.length-1]:null}function it$2(t){return um(t)?t:cl(t)?Ae$3(Promise.resolve(t)):ds$3(t)}function Xr$3(t){return um(t)?Et$2(t):Promise.resolve(t)}var lo$1={exact:ei$2,subset:ti$2};var Zr$2={exact:ho$1,subset:fo$1,ignored:()=>!0};var $n$1={paths:`exact`,fragment:`ignored`,matrixParams:`ignored`,queryParams:`exact`};var Ae$2={paths:`subset`,fragment:`ignored`,matrixParams:`ignored`,queryParams:`subset`};function Fn$2(t,n,e){let r=t instanceof _?t:n.parseUrl(t);return Hb(()=>Dt$2(n.lastSuccessfulNavigation()?.finalUrl??new _,r,e))}function Dt$2(t,n,e){let r=F$3(F$3({},Ae$2),e||{});return lo$1[r.paths](t.root,n.root,r.matrixParams)&&Zr$2[r.queryParams](t.queryParams,n.queryParams)&&!(r.fragment===`exact`&&t.fragment!==n.fragment)}function ho$1(t,n){return J$1(t,n)}function ei$2(t,n,e){if(!me$1(t.segments,n.segments)||!bt$2(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!ei$2(t.children[r],n.children[r],e))return!1;return!0}function fo$1(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Jr$2(t[e],n[e]))}function ti$2(t,n,e){return ni$2(t,n,n.segments,e)}function ni$2(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!me$1(i,e)||n.hasChildren()||!bt$2(i,e,r))}else if(t.segments.length===e.length){if(!me$1(t.segments,e)||!bt$2(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!ti$2(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!me$1(t.segments,i)||!bt$2(t.segments,i,r)||!t.children[g$1]?!1:ni$2(t.children[g$1],n,o,r)}}function bt$2(t,n,e){return n.every((r,i)=>Zr$2[e](t[i].parameters,r.parameters))}var _=class{root;queryParams;fragment;_queryParamMap;constructor(n=new y$1([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=ye$3(this.queryParams),this._queryParamMap}toString(){return mo$1.serialize(this)}};var y$1=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return It$2(this)}};var ae$1=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=ye$3(this.parameters),this._parameterMap}toString(){return ii$2(this)}};function po$1(t,n){return me$1(t,n)&&t.every((e,r)=>J$1(e.parameters,n[r].parameters))}function me$1(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function go$1(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===g$1&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==g$1&&(e=e.concat(n(i,r)))}),e}var de$1=(()=>{class t{static ɵfac=function(r){return new(r||t)};static ɵprov=en$3({token:t,factory:()=>new ne$3})}return t})();var ne$3=class{parse(n){let e=new Mn$2(n);return new _(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${be$2(n.root,!0)}`;vo$1(e)&&(e=`/`);let r=wo(n.queryParams),i=typeof n.fragment==`string`?`#${So$1(n.fragment)}`:``;return`${e}${r}${i}`}};var Hr$2=`http://fake`;function vo$1(t){try{let n=new URL(t,Hr$2);return n.origin!==Hr$2||n.pathname.startsWith(`//`)}catch(n){return!0}}var mo$1=new ne$3;function It$2(t){return t.segments.map(n=>ii$2(n)).join(`/`)}function be$2(t,n){if(!t.hasChildren())return It$2(t);if(n){let e=t.children[g$1]?be$2(t.children[g$1],!1):``,r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==g$1&&r.push(`${i}:${be$2(o,!1)}`)}),r.length>0?`${e}(${r.join(`//`)})`:e}else{if(Object.keys(t.children).length===1&&t.children[g$1]!=null)return`${It$2(t)}/${be$2(t.children[g$1],!1)}`;let e=go$1(t,(r,i)=>i===g$1?[yo$1(be$2(t.children[g$1],!1))]:[`${i}:${be$2(r,!1)}`]);return`${It$2(t)}/(${e.join(`//`)})`}}function yo$1(t){return t.replace(oi$2,n=>n.replace(/:/g,`%3A`))}function ri$2(t){return encodeURIComponent(t).replace(/%40/g,`@`).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`)}function wt$3(t){return ri$2(t).replace(/%3B/gi,`;`)}function So$1(t){return encodeURI(t)}function In$3(t){return ri$2(t).replace(/\(/g,`%28`).replace(/\)/g,`%29`).replace(/%26/gi,`&`)}function Mt$2(t){return decodeURIComponent(t)}function Br$2(t){return Mt$2(t.replace(/\+/g,`%20`))}function ii$2(t){return`${In$3(t.path)}${Ro$1(t.parameters)}`}function Ro$1(t){return Object.entries(t).map(([n,e])=>`;${In$3(n)}=${In$3(e)}`).join(``)}function wo(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${wt$3(e)}=${wt$3(i)}`).join(`&`):`${wt$3(e)}=${wt$3(r)}`).filter(e=>e);return n.length?`?${n.join(`&`)}`:``}var yn$2=1073741824;function At$3(t,n,e){Number(n)>=32&&!Object.hasOwn(t,yn$2)&&(t[yn$2]=e,delete t[yn$2]),t[n]=e}var oi$2=/^[^\/()?;#]+/;function Sn$2(t){let n=t.match(oi$2);return n?n[0]:``}var Co=/^[^\/()?;=#]+/;function bo$1(t){let n=t.match(Co);return n?n[0]:``}var Io$1=/^[^=?&#]+/;function Mo$1(t){let n=t.match(Io$1);return n?n[0]:``}var Eo$1=/^[^&#]+/;function Do$1(t){let n=t.match(Eo$1);return n?n[0]:``}var Mn$2=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){for(;this.consumeOptional(`/`););return this.remaining===``||this.peekStartsWith(`?`)||this.peekStartsWith(`#`)?new y$1([],{}):new y$1([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional(`?`))do this.parseQueryParam(n);while(this.consumeOptional(`&`));return n}parseFragment(){return this.consumeOptional(`#`)?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new _$1(4010,!1);if(this.remaining===``)return{};this.consumeOptional(`/`);let e=[];for(this.peekStartsWith(`(`)||e.push(this.parseSegment());this.peekStartsWith(`/`)&&!this.peekStartsWith(`//`)&&!this.peekStartsWith(`/(`);)this.capture(`/`),e.push(this.parseSegment());let r={};this.peekStartsWith(`/(`)&&(this.capture(`/`),r=this.parseParens(!0,n));let i={};return this.peekStartsWith(`(`)&&(i=this.parseParens(!1,n)),(e.length>0||Object.keys(r).length>0)&&(i[g$1]=new y$1(e,r)),i}parseSegment(){let n=Sn$2(this.remaining);if(n===``&&this.peekStartsWith(`;`))throw new _$1(4009,!1);return this.capture(n),new ae$1(Mt$2(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(`;`);)this.parseParam(n);return n}parseParam(n){let e=bo$1(this.remaining);if(!e)return;this.capture(e);let r=``;if(this.consumeOptional(`=`)){let i=Sn$2(this.remaining);i&&(r=i,this.capture(r))}At$3(n,Mt$2(e),Mt$2(r))}parseQueryParam(n){let e=Mo$1(this.remaining);if(!e)return;this.capture(e);let r=``;if(this.consumeOptional(`=`)){let a=Do$1(this.remaining);a&&(r=a,this.capture(r))}let i=Br$2(e),o=Br$2(r);if(Object.hasOwn(n,i)){let a=n[i];Array.isArray(a)||(a=[a],n[i]=a),a.push(o)}else n[i]=o}parseParens(n,e){let r=Object.create(null);for(this.capture(`(`);!this.consumeOptional(`)`)&&this.remaining.length>0;){let i=Sn$2(this.remaining),o=this.remaining[i.length];if(o!==`/`&&o!==`)`&&o!==`;`)throw new _$1(4010,!1);let a;i.indexOf(`:`)>-1?(a=i.slice(0,i.indexOf(`:`)),this.capture(a),this.capture(`:`)):n&&(a=g$1);let c=this.parseChildren(e+1),s=Object.keys(c).length===1&&c[g$1]?c[g$1]:new y$1([],c);At$3(r,a??g$1,s),this.consumeOptional(`//`)}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new _$1(4011,!1)}};function ai$2(t){return t.segments.length>0?new y$1([],{[g$1]:t}):t}function si$2(t){let n=Object.create(null);for(let[r,i]of Object.entries(t.children)){let o=si$2(i);if(r===g$1&&o.segments.length===0&&o.hasChildren())for(let[a,c]of Object.entries(o.children))At$3(n,a,c);else(o.segments.length>0||o.hasChildren())&&At$3(n,r,o)}return Ao$1(new y$1(t.segments,n))}function Ao$1(t){if(t.numberOfChildren===1&&t.children[g$1]){let n=t.children[g$1];return new y$1(t.segments.concat(n.segments),n.children)}return t}function se$1(t){return t instanceof _}function ci$2(t,n,e=null,r=null,i=new ne$3){return li$2(ui$2(t),n,e,r,i)}function ui$2(t){let n;function e(o){let a={};for(let s of o.children){let u=e(s);a[s.outlet]=u}let c=new y$1(o.url,a);return o===t&&(n=c),c}let i=ai$2(e(t.root));return n??i}function li$2(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return Rn$2(o,o,o,e,r,i);let a=To$1(n);if(a.toRoot())return Rn$2(o,o,new y$1([],{}),e,r,i);let c=Po$1(a,o,t),s=c.processChildren?We$1(c.segmentGroup,c.index,a.commands):hi$2(c.segmentGroup,c.index,a.commands);return Rn$2(o,c.segmentGroup,s,e,r,i)}function Tt$2(t){return typeof t==`object`&&t!=null&&!t.outlets&&!t.segmentPath}function Ye(t){return typeof t==`object`&&t!=null&&t.outlets}function Kr$2(t,n,e){t||=`ɵ`;let r=new _;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function Rn$2(t,n,e,r,i,o){let a={};for(let[u,d]of Object.entries(r??{}))d!=null&&(a[u]=Array.isArray(d)?d.map(p=>Kr$2(u,p,o)):Kr$2(u,d,o));let c;t===n?c=e:c=di$2(t,n,e);return new _(ai$2(si$2(c)),a,i)}function di$2(t,n,e){let r=Object.create(null);return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=di$2(o,n,e)}),new y$1(t.segments,r)}var Pt$2=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&Tt$2(r[0]))throw new _$1(4003,!1);let i=r.find(Ye);if(i&&i!==uo$1(r))throw new _$1(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]==`/`}};function To$1(t){if(typeof t[0]==`string`&&t.length===1&&t[0]===`/`)return new Pt$2(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,a)=>{if(typeof o==`object`&&o!=null){if(o.outlets){let c={};return Object.entries(o.outlets).forEach(([s,u])=>{c[s]=typeof u==`string`?u.split(`/`):u}),[...i,{outlets:c}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!=`string`?[...i,o]:a===0?(o.split(`/`).forEach((c,s)=>{s==0&&c===`.`||(s==0&&c===``?e=!0:c===`..`?n++:c!=``&&i.push(c))}),i):[...i,o]},[]);return new Pt$2(e,n,r)}var Me$1=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function Po$1(t,n,e){if(t.isAbsolute)return new Me$1(n,!0,0);if(!e)return new Me$1(n,!1,NaN);if(e.parent===null)return new Me$1(e,!0,0);let r=Tt$2(t.commands[0])?0:1;return No(e,e.segments.length-1+r,t.numberOfDoubleDots)}function No(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new _$1(4005,!1);i=r.segments.length}return new Me$1(r,!1,i-o)}function _o$1(t){return Ye(t[0])?t[0].outlets:{[g$1]:t}}function hi$2(t,n,e){if(t??=new y$1([],{}),t.segments.length===0&&t.hasChildren())return We$1(t,n,e);let r=Uo$1(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new y$1(t.segments.slice(0,r.pathIndex),{});return o.children[g$1]=new y$1(t.segments.slice(r.pathIndex),t.children),We$1(o,0,i)}else return r.match&&i.length===0?new y$1(t.segments,{}):r.match&&!t.hasChildren()?En$2(t,n,e):r.match?We$1(t,0,i):En$2(t,n,e)}function We$1(t,n,e){if(e.length===0)return new y$1(t.segments,{});{let r=_o$1(e),i=Object.create(null);if(Object.keys(r).some(o=>o!==g$1)&&t.children[g$1]&&t.numberOfChildren===1&&t.children[g$1].segments.length===0){let o=We$1(t.children[g$1],n,e);return new y$1(t.segments,o.children)}return Object.entries(r).forEach(([o,a])=>{typeof a==`string`&&(a=[a]),a!==null&&(i[o]=hi$2(t.children[o],n,a))}),Object.entries(t.children).forEach(([o,a])=>{r[o]===void 0&&(i[o]=a)}),new y$1(t.segments,i)}}function Uo$1(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let a=t.segments[i],c=e[r];if(Ye(c))break;let s=`${c}`,u=r<e.length-1?e[r+1]:null;if(i>0&&s===void 0)break;if(s&&u&&typeof u==`object`&&u.outlets===void 0){if(!Wr$2(s,u,a))return o;r+=2}else{if(!Wr$2(s,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function En$2(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(Ye(o))return new y$1(r,Oo(o.outlets));if(i===0&&Tt$2(e[0])){let s=t.segments[n];r.push(new ae$1(s.path,Vr$2(e[0]))),i++;continue}let a=Ye(o)?o.outlets[g$1]:`${o}`,c=i<e.length-1?e[i+1]:null;a&&c&&Tt$2(c)?(r.push(new ae$1(a,Vr$2(c))),i+=2):(r.push(new ae$1(a,{})),i++)}return new y$1(r,{})}function Oo(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r==`string`&&(r=[r]),r!==null&&(n[e]=En$2(new y$1([],{}),0,r))}),n}function Vr$2(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function Wr$2(t,n,e){return t==e.path&&J$1(n,e.parameters)}var Nt$3=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new ce$2(this.rootInjector)}resetChildren(){this.children=new ce$2(this.rootInjector)}};var ce$2=(()=>{class t{rootInjector;contexts=/* @__PURE__ */ new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=/* @__PURE__ */ new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Nt$3(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static ɵfac=function(r){return new(r||t)(ke$1(me$2))};static ɵprov=ue$2({token:t,factory:t.ɵfac,providedIn:`root`})}return t})();var _t$2=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=Dn$3(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Dn$3(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=An$2(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return An$2(n,this._root).map(e=>e.value)}};function Dn$3(t,n){if(t===n.value)return n;for(let e of n.children){let r=Dn$3(t,e);if(r)return r}return null}function An$2(t,n){if(t===n.value)return[n];for(let e of n.children){let r=An$2(t,e);if(r.length)return r.unshift(n),r}return[]}var N$1=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function Ie$1(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var Je=class extends _t$2{snapshot;constructor(n,e){super(n),this.snapshot=e,qn$1(this,n)}toString(){return this.snapshot.toString()}};function fi$2(t,n){let e=xo$1(t,n),r=new Kn$2([new ae$1(``,{})]),i=new Kn$2({}),o=new Kn$2({}),s=new Z$1(r,i,new Kn$2({}),new Kn$2(``),o,g$1,t,e.root);return s.snapshot=e.root,new Je(new N$1(s,[]),e)}function xo$1(t,n){return new Xe$1(``,new N$1(new Te$2([],{},{},``,{},g$1,t,null,{},n),[]))}var Z$1=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;resources;_localInjector;pending;paramsSignal;queryParamsSignal;paramMapSignal;queryParamMapSignal;fragmentSignal;dataSignal;constructor(n,e,r,i,o,a,c,s){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=a,this.component=c,this._futureSnapshot=s,this.title=this.dataSubject?.pipe(it$3(u=>u[rt$2]))??ds$3(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(it$3(n=>ye$3(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(it$3(n=>ye$3(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}_setPending(n){this._futureSnapshot=n,this.pending?.set(!0)}};var jo$1=`always`;function zn$2(t,n,e){let r,{routeConfig:i}=t;return n!==null&&(e===`always`||i?.path===``||!n.component&&!n.routeConfig?.loadComponent)?r={params:Object.keys(t.params).length===0?n.params:Object.freeze(F$3(F$3({},n.params),t.params)),data:Object.freeze(F$3(F$3({},n.data),t.data)),resolve:F$3(F$3(F$3(F$3({},t.data),n.data),i?.data),t._resolvedData)}:r={params:Object.freeze(F$3({},t.params)),data:Object.freeze(F$3({},t.data)),resolve:F$3(F$3({},t.data),t._resolvedData??{})},i&&gi$2(i)&&(r.resolve[rt$2]=i.title),r}var Te$2=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;resources;get title(){return this.data?.[rt$2]}constructor(n,e,r,i,o,a,c,s,u,d){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=c,this.routeConfig=s,this._resolve=u,this._environmentInjector=d}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??=ye$3(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ye$3(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join(`/`)}', path:'${this.routeConfig?this.routeConfig.path:``}')`}};var Xe$1=class extends _t$2{url;constructor(n,e){super(e),this.url=n,qn$1(this,e)}toString(){return pi$2(this._root)}};function qn$1(t,n){n.value._routerState=t,n.children.forEach(e=>qn$1(t,e))}function pi$2(t){let n=t.children.length>0?` { ${t.children.map(pi$2).join(`, `)} } `:``;return`${t.value}${n}`}function wn$2(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,J$1(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),J$1(n.params,e.params)||t.paramsSubject.next(e.params),co$1(n.url,e.url)||t.urlSubject.next(e.url),J$1(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Tn$2(t,n){let e=J$1(t.params,n.params)&&po$1(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||Tn$2(t.parent,n.parent))}function gi$2(t){return typeof t.title==`string`||t.title===null}var vi$2=new x$3(``);var Hn$1=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=g$1;activateEvents=new qe$1;deactivateEvents=new qe$1;attachEvents=new qe$1;detachEvents=new qe$1;routerOutletData=k1();parentContexts=E$2(ce$2);location=E$2(Ji$3);changeDetector=E$2(H1);inputBinder=E$2(ot$2,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new _$1(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new _$1(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new _$1(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this,this.location.injector),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.inputBinder?.unsubscribeFromRouteData(this),this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new _$1(4013,!1);this._activatedRoute=e;let i=this.location,a=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,s=new Pn$2(e,c,i.injector,this.routerOutletData);this.activated=i.createComponent(a,{index:i.length,injector:s,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this,this.location.injector),this.activateEvents.emit(this.activated.instance)}static ɵfac=function(r){return new(r||t)};static ɵdir=BD({type:t,selectors:[[`router-outlet`]],inputs:{name:`name`,routerOutletData:[1,`routerOutletData`]},outputs:{activateEvents:`activate`,deactivateEvents:`deactivate`,attachEvents:`attach`,detachEvents:`detach`},exportAs:[`outlet`],features:[Vy]})}return t})();var Pn$2=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===Z$1?this.route:n===ce$2?this.childContexts:n===vi$2?this.outletData:this.parent.get(n,e)}};var ot$2=new x$3(``);var mi$2=(()=>{class t{options;feature;outletDataSubscriptions=/* @__PURE__ */ new Map;outletSeenKeys=/* @__PURE__ */ new Map;outletEffects=/* @__PURE__ */ new Map;constructor(e,r=null){this.options=e,this.feature=r,this.options.queryParams??=!0}bindActivatedRouteToOutletComponent(e,r){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e,r)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e),this.outletSeenKeys.delete(e),this.outletEffects.get(e)?.forEach(r=>r.destroy()),this.outletEffects.delete(e)}subscribeToRouteData(e,r){let{activatedRoute:i}=e,o=[],a=[];if(this.feature?.createResourceOutletBindingEffects&&e.activatedComponentRef){let{handledKeys:s,createdEffects:u}=this.feature.createResourceOutletBindingEffects(e.activatedComponentRef,i);o.push(...u),a=s}o.length>0&&this.outletEffects.set(e,o);let c=rm([this.options.queryParams?i.queryParams:ds$3({}),i.params,i.data]).pipe(Pm(([s,u,d],p)=>(d=F$3(F$3(F$3(F$3({},s),u),d),i.resources),p===0?ds$3(d):Promise.resolve(d)))).subscribe(s=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let u=z1(i.component);if(!u){this.unsubscribeFromRouteData(e);return}let d=this.outletSeenKeys.get(e);d||(d=/* @__PURE__ */ new Set,this.outletSeenKeys.set(e,d));for(let f of Object.keys(s))d.add(f);let p=this.options.unmatchedInputBehavior??`alwaysUndefined`;for(let{templateName:f}of u.inputs){if(a.includes(f))continue;let R=s[f];(R!==void 0||p===`alwaysUndefined`||d.has(f))&&e.activatedComponentRef.setInput(f,R)}});this.outletDataSubscriptions.set(e,c)}static ɵfac=function(r){eD()};static ɵprov=ue$2({token:t,factory:t.ɵfac})}return t})();var Bn$2=(()=>{class t{static ɵfac=function(r){return new(r||t)};static ɵcmp=PD({type:t,selectors:[[`ng-component`]],exportAs:[`emptyRouterOutlet`],decls:1,vars:0,template:function(r,i){r&1&&Oh$1(0,`router-outlet`)},dependencies:[Hn$1],encapsulation:2,changeDetection:1})}return t})();function Kn$1(t){let n=t.children&&t.children.map(Kn$1),e=n?G$1(F$3({},t),{children:n}):F$3({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==g$1&&(e.component=Bn$2),e}var Ee$1=`imperative`;var b$2=(function(t){return t[t.NavigationStart=0]=`NavigationStart`,t[t.NavigationEnd=1]=`NavigationEnd`,t[t.NavigationCancel=2]=`NavigationCancel`,t[t.NavigationError=3]=`NavigationError`,t[t.RoutesRecognized=4]=`RoutesRecognized`,t[t.ResolveStart=5]=`ResolveStart`,t[t.ResolveEnd=6]=`ResolveEnd`,t[t.GuardsCheckStart=7]=`GuardsCheckStart`,t[t.GuardsCheckEnd=8]=`GuardsCheckEnd`,t[t.RouteConfigLoadStart=9]=`RouteConfigLoadStart`,t[t.RouteConfigLoadEnd=10]=`RouteConfigLoadEnd`,t[t.ChildActivationStart=11]=`ChildActivationStart`,t[t.ChildActivationEnd=12]=`ChildActivationEnd`,t[t.ActivationStart=13]=`ActivationStart`,t[t.ActivationEnd=14]=`ActivationEnd`,t[t.Scroll=15]=`Scroll`,t[t.NavigationSkipped=16]=`NavigationSkipped`,t})(b$2||{});var L$3=class{id;url;constructor(n,e){this.id=n,this.url=e}};var ue$1=class extends L$3{type=b$2.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r=`imperative`,i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}};var $$1=class extends L$3{urlAfterRedirects;type=b$2.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}};var E$1=(function(t){return t[t.Redirect=0]=`Redirect`,t[t.SupersededByNewNavigation=1]=`SupersededByNewNavigation`,t[t.NoDataFromResolver=2]=`NoDataFromResolver`,t[t.GuardRejected=3]=`GuardRejected`,t[t.Aborted=4]=`Aborted`,t})(E$1||{});var Pe$3=(function(t){return t[t.IgnoredSameUrlNavigation=0]=`IgnoredSameUrlNavigation`,t[t.IgnoredByUrlHandlingStrategy=1]=`IgnoredByUrlHandlingStrategy`,t})(Pe$3||{});var B=class extends L$3{reason;code;type=b$2.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function yi$2(t){return t instanceof B&&(t.code===E$1.Redirect||t.code===E$1.SupersededByNewNavigation)}var ee$1=class extends L$3{reason;code;type=b$2.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}};var Se$1=class extends L$3{error;target;type=b$2.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}};var Ze=class extends L$3{urlAfterRedirects;state;type=b$2.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}};var Ut$2=class extends L$3{urlAfterRedirects;state;type=b$2.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}};var Ot$2=class extends L$3{urlAfterRedirects;state;shouldActivate;type=b$2.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}};var xt$3=class extends L$3{urlAfterRedirects;state;type=b$2.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}};var jt$2=class extends L$3{urlAfterRedirects;state;type=b$2.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}};var kt$1=class{route;type=b$2.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}};var Lt$1=class{route;type=b$2.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}};var $t$2=class{snapshot;type=b$2.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}};var Ft$3=class{snapshot;type=b$2.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}};var zt$2=class{snapshot;type=b$2.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}};var qt$2=class{snapshot;type=b$2.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}};var Ne$2=class{routerEvent;position;anchor;scrollBehavior;type=b$2.Scroll;constructor(n,e,r,i){this.routerEvent=n,this.position=e,this.anchor=r,this.scrollBehavior=i}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}};var _e$1=class{};var et=class{};var Ue$3=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function ko$1(t){return!(t instanceof _e$1)&&!(t instanceof Ue$3)&&!(t instanceof et)}function Lo$1(t,n,e){let r=/* @__PURE__ */ new Set;return{newlyCreatedRoutes:r,state:new Je(tt$2(t,n._root,e?e._root:void 0,r),n)}}function tt$2(t,n,e,r){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._setPending(n.value);return new N$1(i,$o$1(t,n,e,r))}else{if(t.shouldAttach(n.value)){let a=t.retrieve(n.value);if(a!==null){let c=a.route;return c.value._setPending(n.value),c.children=n.children.map(s=>tt$2(t,s,void 0,r)),c}}let i=Fo$1(n.value);i._setPending(n.value),r.add(i);return new N$1(i,n.children.map(a=>tt$2(t,a,void 0,r)))}}function $o$1(t,n,e,r){return n.children.map(i=>{for(let o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return tt$2(t,i,o,r);return tt$2(t,i,void 0,r)})}function Fo$1(t){return new Z$1(new Kn$2(t.url),new Kn$2(t.params),new Kn$2(t.queryParams),new Kn$2(t.fragment),new Kn$2(t.data),t.outlet,t.component,t)}var le=class t extends Error{redirectTo;navigationBehaviorOptions;constructor(n,e){super(),this.redirectTo=n,this.navigationBehaviorOptions=e,Object.setPrototypeOf(this,t.prototype)}};var Si$2=`ngNavigationCancelingError`;function Ge(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=se$1(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Ri$2(!1,E$1.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Ri$2(t,n){let e=/* @__PURE__ */ new Error(`NavigationCancelingError: ${t||``}`);return e[Si$2]=!0,e.cancellationCode=n,e}function zo$1(t){return wi$2(t)&&se$1(t.url)}function wi$2(t){return!!t&&t[Si$2]}var Nn$1=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),wn$2(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=Ie$1(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,i[a],r),delete i[a]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let a=r.getContext(i.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=Ie$1(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);if(r&&r.outlet){let a=r.outlet.detach(),c=r.children.contexts;r.resetChildren(),this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:c})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=Ie$1(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null),n.value._localInjector?.destroy()}activateChildRoutes(n,e,r){let i=Ie$1(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new qt$2(o.value.snapshot))}),n.children.length&&this.forwardEvent(new Ft$3(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(wn$2(i),i===o)if(i.component){let a=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let a=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let c=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(c.contexts),a.attachRef=c.componentRef,a.route=c.route.value,a.outlet&&a.outlet.attach(c.componentRef,c.route.value),wn$2(c.route.value),this.activateChildRoutes(n,null,a.children)}else a.attachRef=null,a.route=i,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(n,null,a.children)}else this.activateChildRoutes(n,null,r)}};var Ht$2=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}};var De$2=class{component;route;constructor(n,e){this.component=n,this.route=e}};function qo(t,n,e){let r=t._root;return Ve$2(r,n?n._root:null,e,[r.value])}function Ho$1(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function xe$4(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t==`function`&&!Qm(t)?t:n.get(t):r}function Ve$2(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Ie$1(n);return t.children.forEach(a=>{Bo$1(a,o[a.value.outlet],e,r.concat([a.value]),i),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,c])=>Qe(c,e.getContext(a),e,i)),i}function Bo$1(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,c=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let s=Ko$1(a,o,o.routeConfig.runGuardsAndResolvers);s?i.canActivateChecks.push(new Ht$2(r)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Ve$2(t,n,c?c.children:null,r,i):Ve$2(t,n,e,r,i),s&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new De$2(c.outlet.component,a))}else a&&Qe(n,c,e,i),i.canActivateChecks.push(new Ht$2(r)),o.component?Ve$2(t,null,c?c.children:null,r,i):Ve$2(t,null,e,r,i);return i}function Ko$1(t,n,e){if(typeof e==`function`)return Bo$2(n._environmentInjector,()=>e(t,n));switch(e){case`pathParamsChange`:return!me$1(t.url,n.url);case`pathParamsOrQueryParamsChange`:return!me$1(t.url,n.url)||!J$1(t.queryParams,n.queryParams);case`always`:return!0;case`paramsOrQueryParamsChange`:return!Tn$2(t,n)||!J$1(t.queryParams,n.queryParams);default:return!Tn$2(t,n)}}function Qe(t,n,e,r){let i=Ie$1(t),o=t.value;Object.entries(i).forEach(([a,c])=>{o.component?n?Qe(c,n.children.getContext(a),n.children,r):Qe(c,null,null,r):Qe(c,e?e.getContext(a):null,e,r)}),o.component?n&&n.outlet&&n.outlet.isActivated?r.canDeactivateChecks.push(new De$2(n.outlet.component,o)):r.canDeactivateChecks.push(new De$2(null,o)):r.canDeactivateChecks.push(new De$2(null,o))}function at$3(t){return typeof t==`function`}function Vo$1(t){return typeof t==`boolean`}function Wo$1(t){return t&&at$3(t.canLoad)}function Go$1(t){return t&&at$3(t.canActivate)}function Qo$1(t){return t&&at$3(t.canActivateChild)}function Yo$1(t){return t&&at$3(t.canDeactivate)}function Jo$1(t){return t&&at$3(t.canMatch)}function Ci$2(t){return t instanceof Xn$2||t?.name===`EmptyError`}var Ct$3=Symbol(`INITIAL_VALUE`);function Oe$1(){return Pm(t=>rm(t.map(n=>n.pipe(ms$2(1),fs$1(e=>{if(e instanceof le)return ds$3(e);throw e}),Lm(Ct$3)))).pipe(it$3(n=>{for(let e of n)if(e!==!0){if(e===Ct$3)return Ct$3;if(e===!1||Xo$1(e))return e}return!0}),$e$1(n=>n!==Ct$3),ms$2(1)))}function Xo$1(t){return se$1(t)||t instanceof le}function bi$2(t){return new b$3(n=>{if(t.aborted){n.next(),n.complete();return}let e=()=>{n.next(),n.complete()};return t.addEventListener(`abort`,e),()=>t.removeEventListener(`abort`,e)})}function Ii$2(t){return Fm(bi$2(t))}function Zo$1(t){return Be$2(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?ds$3(G$1(F$3({},n),{guardsResult:!0})):ea$1(o,e,r).pipe(Be$2(a=>a&&Vo$1(a)?ta$1(e,i,t):ds$3(a)),it$3(a=>G$1(F$3({},n),{guardsResult:a})))})}function ea$1(t,n,e){return Ae$3(t).pipe(Be$2(r=>aa$1(r.component,r.route,e,n)),nu(r=>r!==!0,!0))}function ta$1(t,n,e){return Ae$3(n).pipe(Nm(r=>fn$4(ra$1(r.route.parent,e),na$1(r.route,e),oa$1(t,r.path),ia$1(t,r.route))),nu(r=>r!==!0,!0))}function na$1(t,n){return t!==null&&n&&n(new zt$2(t)),ds$3(!0)}function ra$1(t,n){return t!==null&&n&&n(new $t$2(t)),ds$3(!0)}function ia$1(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return ds$3(!0);let r=e.map(i=>fm(()=>{let o=n._environmentInjector,a=xe$4(i,o);return it$2(Go$1(a)?a.canActivate(n,t):Bo$2(o,()=>a(n,t))).pipe(nu())}));return ds$3(r).pipe(Oe$1())}function oa$1(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>Ho$1(o)).filter(o=>o!==null).map(o=>fm(()=>{let a=o.guards.map(c=>{let s=o.node._environmentInjector,u=xe$4(c,s);return it$2(Qo$1(u)?u.canActivateChild(e,t):Bo$2(s,()=>u(e,t))).pipe(nu())});return ds$3(a).pipe(Oe$1())}));return ds$3(i).pipe(Oe$1())}function aa$1(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return ds$3(!0);let o=i.map(a=>{let c=n._environmentInjector,s=xe$4(a,c);return Vn$2(()=>Yo$1(s)?s.canDeactivate(t,n,e,r):Bo$2(c,()=>s(t,n,e,r))).pipe(nu())});return ds$3(o).pipe(Oe$1())}function sa$1(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return ds$3(!0);let a=o.map(c=>{let s=xe$4(c,t),u=Vn$2(()=>Wo$1(s)?s.canLoad(n,e):Bo$2(t,()=>s(n,e)));return i?u.pipe(Ii$2(i)):u});return ds$3(a).pipe(Oe$1(),Mi$2(r))}function Vn$2(t){try{return it$2(t())}catch(n){return new b$3(e=>e.error(n))}}function Mi$2(t){return Vg(ql(n=>{if(typeof n!=`boolean`)throw Ge(t,n)}),it$3(n=>n===!0))}function ca$1(t,n,e,r,i,o){let a=n.canMatch;if(!a||a.length===0)return ds$3(!0);let c=a.map(s=>{let u=xe$4(s,t);return Vn$2(()=>Jo$1(u)?u.canMatch(n,e,i):Bo$2(t,()=>u(n,e,i))).pipe(Ii$2(o))});return ds$3(c).pipe(Oe$1(),Mi$2(r))}var Y=class t extends Error{name=`NoMatch`;segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype)}};var nt$2=class t extends Error{urlTree;name=`AbsoluteRedirect`;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype)}};function ua$2(t){throw new _$1(4e3,!1)}function la$1(t){throw Ri$2(!1,E$1.GuardRejected)}var _n$2=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){return M$1(this,null,function*(){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[g$1])throw ua$2(`${n.redirectTo}`);i=i.children[g$1]}})}applyRedirectCommands(n,e,r,i,o){return M$1(this,null,function*(){let a=yield da$1(e,i,o);if(a instanceof _)throw new nt$2(a);let c=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,r);if(a[0]===`/`)throw new nt$2(c);return c})}applyRedirectCreateUrlTree(n,e,r,i){return new _(this.createSegmentGroup(n,e.root,r,i),this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o==`string`&&o[0]===`:`){let c=o.substring(1);r[i]=e[c]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),a=Object.create(null);return Object.entries(e.children).forEach(([c,s])=>{a[c]=this.createSegmentGroup(n,s,r,i)}),new y$1(o,a)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===`:`?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new _$1(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}};function da$1(t,n,e){if(typeof t==`string`)return Promise.resolve(t);let r=t;return Et$2(it$2(Bo$2(e,()=>r(n))))}function ha$2(t,n){return t.providers&&!t._injector&&(t._injector=Ih(t.providers,n,`Route: ${t.path}`)),t._injector??n}function X(t){return t.outlet||g$1}function fa$2(t,n){let e=t.filter(r=>X(r)===n);return e.push(...t.filter(r=>X(r)!==n)),e}var Un$1={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ei$2(t){return{routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function pa$2(t,n,e,r,i,o,a){let c=Di$2(t,n,e);if(!c.matched)return ds$3(c);let s=Ei$2(o(c));return r=ha$2(n,r),ca$1(r,n,e,i,s,a).pipe(it$3(u=>u===!0?c:F$3({},Un$1)))}function Di$2(t,n,e){if(n.path===``)return n.pathMatch===`full`&&(t.hasChildren()||e.length>0)?F$3({},Un$1):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||Yr$2)(e,t,n);if(!i)return F$3({},Un$1);let o={};Object.entries(i.posParams??{}).forEach(([c,s])=>{o[c]=s.path});let a=i.consumed.length>0?F$3(F$3({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function Gr$2(t,n,e,r){return e.length>0&&ma$1(t,e,r)?{segmentGroup:new y$1(n,va$2(r,new y$1(e,t.children))),slicedSegments:[]}:e.length===0&&ya$1(t,e,r)?{segmentGroup:new y$1(t.segments,ga$2(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new y$1(t.segments,t.children),slicedSegments:e}}function ga$2(t,n,e,r){let i={};for(let o of e)if(Kt$1(t,n,o)&&!r[X(o)]){let a=new y$1([],{});i[X(o)]=a}return F$3(F$3({},r),i)}function va$2(t,n){let e={};e[g$1]=n;for(let r of t)if(r.path===``&&X(r)!==g$1){let i=new y$1([],{});e[X(r)]=i}return e}function ma$1(t,n,e){return e.some(r=>Kt$1(t,n,r)&&X(r)!==g$1)}function ya$1(t,n,e){return e.some(r=>Kt$1(t,n,r))}function Kt$1(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch===`full`?!1:e.path===``}function Sa$2(t,n,e){return n.length===0&&!t.hasChildren()}var On$2=class{};function Ra$2(t,n,e,r,i,o,a,c){return M$1(this,null,function*(){return new xn$2(t,n,e,r,i,a,o,c).recognize()})}var wa$2=31;var xn$2=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;queryParams;constructor(n,e,r,i,o,a,c,s){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=c,this.abortSignal=s,this.applyRedirects=new _n$2(this.urlSerializer,this.urlTree),this.queryParams=Object.freeze(F$3({},this.urlTree.queryParams))}noMatchError(n){return new _$1(4002,`'${n.segmentGroup}'`)}recognize(){return M$1(this,null,function*(){let n=Gr$2(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=yield this.match(n),o=new Xe$1(``,new N$1(r,e)),a=ci$2(r,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}})}match(n){return M$1(this,null,function*(){let e=new Te$2([],Object.freeze({}),this.queryParams,this.urlTree.fragment,Object.freeze({}),g$1,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,n,g$1,e),rootSnapshot:e}}catch(r){if(r instanceof nt$2)return this.absoluteRedirectCount++,this.absoluteRedirectCount>wa$2&&(this.allowRedirects=!1),this.urlTree=r.urlTree,this.queryParams=Object.freeze(F$3({},this.urlTree.queryParams)),this.match(r.urlTree.root);throw r instanceof Y?this.noMatchError(r):r}})}processSegmentGroup(n,e,r,i,o){return M$1(this,null,function*(){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let a=yield this.processSegment(n,e,r,r.segments,i,!0,o);return a instanceof N$1?[a]:[]})}processChildren(n,e,r,i){return M$1(this,null,function*(){let o=[];for(let s of Object.keys(r.children))s===`primary`?o.unshift(s):o.push(s);let a=[];for(let s of o){let u=r.children[s],d=fa$2(e,s),p=yield this.processSegment(n,d,u,u.segments,s,!0,i);p instanceof N$1&&a.push(p)}let c=Ai$2(a);return Ca$2(c),c})}processSegment(n,e,r,i,o,a,c){return M$1(this,null,function*(){for(let s of e)try{return yield this.processSegmentAgainstRoute(s._injector??n,e,s,r,i,o,a,c)}catch(u){if(u instanceof Y||Ci$2(u))continue;throw u}if(Sa$2(r,i))return new On$2;throw new Y(r)})}processSegmentAgainstRoute(n,e,r,i,o,a,c,s){return M$1(this,null,function*(){if(X(r)!==a&&(a===g$1||!Kt$1(i,o,r)||!r.children?.length&&!r.loadChildren||o.length===0&&!i.hasChildren()))throw new Y(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,a,s);if(this.allowRedirects&&c)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,a,s);throw new Y(i)})}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,a,c){return M$1(this,null,function*(){let{matched:s,parameters:u,consumedSegments:d,positionalParamSegments:p,remainingSegments:f}=Di$2(e,i,o);if(!s)throw new Y(e);let R=this.createSnapshot(n,i,o,u,c);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let O=yield this.applyRedirects.applyRedirectCommands(d,i.redirectTo,p,Ei$2(R),n),x=yield this.applyRedirects.lineralizeSegments(i,O);return this.processSegment(n,r,e,x.concat(f),a,!1,c)})}createSnapshot(n,e,r,i,o){let a=new Te$2(r,i,this.queryParams,this.urlTree.fragment,Ma$2(e),X(e),e.component??e._loadedComponent??null,e,Ea$2(e),n),c=zn$2(a,o,this.paramsInheritanceStrategy);return a.params=c.params,a.data=c.data,a}matchSegmentAgainstRoute(n,e,r,i,o,a){return M$1(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let c=pe=>this.createSnapshot(n,r,pe.consumedSegments,pe.parameters,a),s=yield Et$2(pa$2(e,r,i,n,this.urlSerializer,c,this.abortSignal));if(r.path===`**`&&(e.children={}),!s?.matched)throw new Y(e);n=r._injector??n;let{routes:u}=yield this.getChildConfig(n,r,i),d=r._loadedInjector??n,{parameters:p,consumedSegments:f,remainingSegments:R}=s,O=this.createSnapshot(n,r,f,p,a),x=X(r)===o,{segmentGroup:fe,slicedSegments:je}=x?Gr$2(e,f,R,u):{segmentGroup:e,slicedSegments:R};if(x&&je.length===0&&fe.hasChildren())return new N$1(O,yield this.processChildren(d,u,fe,O));if(x&&u.length===0&&je.length===0)return new N$1(O,[]);let ke=yield this.processSegment(d,u,fe,je,x?g$1:o,!0,O);if(!x&&!(ke instanceof N$1))throw new Y(e);return new N$1(O,ke instanceof N$1?[ke]:[])})}getChildConfig(n,e,r){return M$1(this,null,function*(){if(e.children)return{routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield Et$2(sa$1(n,e,r,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw la$1(e)}return{routes:[],injector:n}})}};function Ca$2(t){t.sort((n,e)=>n.value.outlet===g$1?-1:e.value.outlet===g$1?1:n.value.outlet.localeCompare(e.value.outlet))}function ba$2(t){let n=t.value.routeConfig;return n&&n.path===``}function Ai$2(t){let n=[],e=/* @__PURE__ */ new Set;for(let i of t){if(!ba$2(i)){n.push(i);continue}let o=n.find(a=>i.value.routeConfig===a.value.routeConfig);o!==void 0?(o.children.push(...i.children),e.add(o)):n.push(i)}for(let i of e){let o=Ai$2(i.children);n.push(new N$1(i.value,o))}let r=n.filter(i=>!e.has(i));return Ia$2(r),r}function Ia$2(t){let n=Object.create(null);t.forEach(e=>{let r=n[e.value.outlet];if(r){r.url.map(a=>a.toString()).join(`/`);e.value.url.map(a=>a.toString()).join(`/`);throw new _$1(4006,!1)}n[e.value.outlet]=e.value})}function Ma$2(t){return t.data||{}}function Ea$2(t){return t.resolve||{}}function Da$1(t,n,e,r,i,o,a){return Be$2(c=>M$1(null,null,function*(){let{state:s,tree:u}=yield Ra$2(t,n,e,r,c.extractedUrl,i,o,a);return G$1(F$3({},c),{targetSnapshot:s,urlAfterRedirects:u})}))}function Aa$2(t){return Be$2(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return ds$3(n);let i=new Set(r.map(c=>c.route)),o=/* @__PURE__ */ new Set;for(let c of i)if(!o.has(c))for(let s of Ti$2(c))o.add(s);let a=0;return Ae$3(o).pipe(Nm(c=>i.has(c)?Ta$2(c,e,t):(c.data=zn$2(c,c.parent,t).resolve,ds$3(void 0))),ql(()=>a++),Rm(1),Be$2(c=>a===o.size?ds$3(n):He$3))})}function Ti$2(t){return[t,...t.children.map(e=>Ti$2(e)).flat()]}function Ta$2(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!gi$2(r)&&(i[rt$2]=r.title),fm(()=>(t.data=zn$2(t,t.parent,e).resolve,Pa$1(i,t,n).pipe(it$3(o=>(t._resolvedData=o,t.data=F$3(F$3({},t.data),o),null)))))}function Pa$1(t,n,e){let r=bn$2(t);if(r.length===0)return ds$3({});let i={};return Ae$3(r).pipe(Be$2(o=>Na$2(t[o],n,e).pipe(nu(),ql(a=>{if(a instanceof le)throw Ge(new ne$3,a);i[o]=a}))),Rm(1),it$3(()=>i),fs$1(o=>Ci$2(o)?He$3:lm(o)))}function Na$2(t,n,e){let r=n._environmentInjector,i=xe$4(t,r);return it$2(i.resolve?i.resolve(n,e):Bo$2(r,()=>i(n,e)))}var Wn$1=new x$3(``);function jn$1(t){return Pm(n=>{let e=t(n);return e?Ae$3(e).pipe(it$3(()=>n)):ds$3(n)})}var Gn$1=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===g$1);return r}getResolvedTitleForRoute(e){return e.data[rt$2]}static ɵfac=function(r){return new(r||t)};static ɵprov=en$3({token:t,factory:()=>E$2(Pi$2)})}return t})();var Pi$2=(()=>{class t extends Gn$1{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static ɵfac=function(r){return new(r||t)(ke$1(Ud))};static ɵprov=ue$2({token:t,factory:t.ɵfac,providedIn:`root`})}return t})();var he$1=new x$3(``,{factory:()=>({})});var Re$2=new x$3(``);var Vt$1=(()=>{class t{componentLoaders=/* @__PURE__ */ new WeakMap;childrenLoaders=/* @__PURE__ */ new WeakMap;onLoadStartListener;onLoadEndListener;compiler=E$2(Fb);loadComponent(e,r){return M$1(this,null,function*(){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=M$1(this,null,function*(){try{let o=yield Xr$3(Bo$2(e,()=>r.loadComponent())),a=yield _i$2(R1(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=a,a}finally{this.componentLoaders.delete(r)}});return this.componentLoaders.set(r,i),i})}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=M$1(this,null,function*(){try{let o=yield Ni$2(r,this.compiler,e,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r)}});return this.childrenLoaders.set(r,i),i}static ɵfac=function(r){return new(r||t)};static ɵprov=en$3({token:t,factory:t.ɵfac})}return t})();function Ni$2(t,n,e,r){return M$1(this,null,function*(){let i=yield Xr$3(Bo$2(e,()=>t.loadChildren())),o=yield _i$2(R1(i)),a;o instanceof Eh||Array.isArray(o)?a=o:a=yield n.compileModuleAsync(o),r&&r(t);let c,s,d;return Array.isArray(a)?s=a:(c=a.create(e).injector,d=a,s=c.get(Re$2,[],{optional:!0,self:!0}).flat()),{routes:s.map(Kn$1),injector:c,factory:d}})}function _i$2(t){return M$1(this,null,function*(){return t})}var Wt$3=(()=>{class t{static ɵfac=function(r){return new(r||t)};static ɵprov=en$3({token:t,factory:()=>E$2(_a$2)})}return t})();var _a$2=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static ɵfac=function(r){return new(r||t)};static ɵprov=en$3({token:t,factory:t.ɵfac})}return t})();var Qn$1=new x$3(``);var Yn$1=new x$3(``);function Ui$2(t,n,e,r){let i=t.get(Yn$1),o=t.get(ei$3);if(r){i.skipNextTransition=!1;return}if(!o.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(d=>setTimeout(d));let a,c=new Promise(d=>{a=d}),s=o.startViewTransition(()=>(a(),Ua$2(t)));s.updateCallbackDone.catch(d=>{}),s.ready.catch(d=>{}),s.finished.catch(d=>{});let{onViewTransitionCreated:u}=i;return u&&Bo$2(t,()=>u({transition:s,from:n,to:e})),c}function Ua$2(t){return new Promise(n=>{mp({read:()=>setTimeout(n)},{injector:t})})}var Oa$2=()=>{};var Jn$1=new x$3(``);var Gt$1=(()=>{class t{currentNavigation=ti$3(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=ti$3(null);events=new ee$2;transitionAbortWithErrorSubject=new ee$2;configLoader=E$2(Vt$1);environmentInjector=E$2(me$2);destroyRef=E$2(be$3);urlSerializer=E$2(de$1);rootContexts=E$2(ce$2);location=E$2(Mi$3);inputBindingEnabled=E$2(ot$2,{optional:!0})!==null;titleStrategy=E$2(Gn$1);options=E$2(he$1,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||jo$1;urlHandlingStrategy=E$2(Wt$3);createViewTransition=E$2(Qn$1,{optional:!0});navigationErrorHandler=E$2(Jn$1,{optional:!0});routerResourcesFeature=E$2(Wn$1,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>ds$3(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new kt$1(i)),r=i=>this.events.next(new Lt$1(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;Tg(()=>{this.transitions?.next(G$1(F$3({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(e){return this.transitions=new Kn$2(null),this.transitions.pipe($e$1(r=>r!==null),Pm(r=>{let i=!0,o=!1,a=new AbortController,c=()=>!o&&this.currentTransition?.id===r.id;return ds$3(r).pipe(Pm(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,``,E$1.SupersededByNewNavigation),He$3;this.currentTransition=r;let u=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl==`string`?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:u?G$1(F$3({},u),{previousNavigation:null}):null,abort:()=>a.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let d=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),p=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!d&&p!==`reload`)return this.events.next(new ee$1(s.id,this.urlSerializer.serialize(s.rawUrl),``,Pe$3.IgnoredSameUrlNavigation)),s.resolve(!1),He$3;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return ds$3(s).pipe(Pm(f=>(this.events.next(new ue$1(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),f.id!==this.navigationId?He$3:Promise.resolve(f))),Da$1(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,a.signal),ql(f=>{r.targetSnapshot=f.targetSnapshot,r.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation.update(R=>(R.finalUrl=f.urlAfterRedirects,R)),this.events.next(new et)}),Pm(f=>Ae$3(r.routesRecognizeHandler.deferredHandle??ds$3(void 0)).pipe(it$3(()=>f))),ql(()=>{let f=new Ze(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(f)}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:f,extractedUrl:R,source:O,restoredState:x,extras:fe}=s,je=new ue$1(f,this.urlSerializer.serialize(R),O,x);this.events.next(je);let ke=fi$2(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=G$1(F$3({},s),{targetSnapshot:ke,urlAfterRedirects:R,extras:G$1(F$3({},fe),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(pe=>(pe.finalUrl=R,pe)),ds$3(r)}else return this.events.next(new ee$1(s.id,this.urlSerializer.serialize(s.extractedUrl),``,Pe$3.IgnoredByUrlHandlingStrategy)),s.resolve(!1),He$3}),it$3(s=>{let u=new Ut$2(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(u),this.currentTransition=r=G$1(F$3({},s),{guards:qo(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r}),Zo$1(s=>this.events.next(s)),Pm(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!=`boolean`)throw Ge(this.urlSerializer,s.guardsResult);let u=new Ot$2(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(u),!c())return He$3;if(!s.guardsResult)return this.cancelNavigationTransition(s,``,E$1.GuardRejected),He$3;if(s.guards.canActivateChecks.length===0)return ds$3(s);let d=new xt$3(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(d),!c())return He$3;let p=!1;return ds$3(s).pipe(Aa$2(this.paramsInheritanceStrategy),ql({next:()=>{p=!0;let f=new jt$2(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(f)},complete:()=>{p||this.cancelNavigationTransition(s,``,E$1.NoDataFromResolver)}}))}),jn$1(s=>{let u=p=>{let f=[];if(p.routeConfig?._loadedComponent)p.component=p.routeConfig?._loadedComponent;else if(p.routeConfig?.loadComponent){let R=p._environmentInjector;f.push(this.configLoader.loadComponent(R,p.routeConfig).then(O=>{p.component=O}))}for(let R of p.children)f.push(...u(R));return f},d=u(s.targetSnapshot.root);return d.length===0?ds$3(s):Ae$3(Promise.all(d).then(()=>s))}),Pm(s=>{let{newlyCreatedRoutes:u,state:d}=Lo$1(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=r=s=G$1(F$3({},s),{targetRouterState:d,newlyCreatedRoutes:u}),this.currentNavigation.update(p=>(p.targetRouterState=d,p)),ds$3(s)}),this.routerResourcesFeature?.setupAndRunResources(a.signal)??(s=>s),jn$1(()=>this.afterPreactivation()),Pm(()=>{let{currentSnapshot:s,targetSnapshot:u}=r,d=this.createViewTransition?.(this.environmentInjector,s.root,u.root,r.hasUAVisualTransition);return d?Ae$3(d).pipe(it$3(()=>r)):ds$3(r)}),ms$2(1),Pm(s=>{i=!1,this.events.next(new _e$1);let u=r.beforeActivateHandler.deferredHandle;return u?Ae$3(u.then(()=>s)):ds$3(s)}),ql(s=>{new Nn$1(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),s.newlyCreatedRoutes?.clear(),c()&&(Oi$2(s.targetRouterState),o=!0,this.currentNavigation.update(u=>(u.abort=Oa$2,u)),this.lastSuccessfulNavigation.set(Tg(this.currentNavigation)),this.events.next(new $$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0))}),Fm(bi$2(a.signal).pipe($e$1(()=>!o&&i),ql(()=>{this.cancelNavigationTransition(r,a.signal.reason+``,E$1.Aborted)}))),ql({complete:()=>{o=!0}}),Fm(this.transitionAbortWithErrorSubject.pipe(ql(s=>{throw s}))),tu$1(()=>{a.abort(),o||this.cancelNavigationTransition(r,``,E$1.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),fs$1(s=>{if(o=!0,Qr$2(r),this.destroyed)return r.resolve(!1),He$3;if(s instanceof le&&(s=Ge(this.urlSerializer,s)),wi$2(s))this.events.next(new B(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),zo$1(s)?this.events.next(new Ue$3(s.url,s.navigationBehaviorOptions)):r.resolve(!1);else{let u=new Se$1(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let d=Bo$2(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(d instanceof le){let{message:p,cancellationCode:f}=Ge(this.urlSerializer,d);this.events.next(new B(r.id,this.urlSerializer.serialize(r.extractedUrl),p,f)),this.events.next(new Ue$3(d.redirectTo,d.navigationBehaviorOptions))}else throw this.events.next(u),s}catch(d){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(d)}}return He$3}))}))}cancelNavigationTransition(e,r,i){Qr$2(e);let o=new B(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=Tg(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static ɵfac=function(r){return new(r||t)};static ɵprov=en$3({token:t,factory:t.ɵfac})}return t})();function xa$2(t){return t!==Ee$1}function Qr$2(t){for(let n of t.newlyCreatedRoutes??[])n._localInjector?.destroy(),n._localInjector=void 0;Oi$2(t.targetRouterState)}function Oi$2(t){if(!t)return;let n=e=>{e.value.pending?.set(!1),e.children.forEach(n)};n(t._root)}var xi$2=new x$3(``);var ji$2=(()=>{class t{static ɵfac=function(r){return new(r||t)};static ɵprov=en$3({token:t,factory:()=>E$2(ja$2)})}return t})();var Bt$1=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return!0}};var ja$2=(()=>{class t extends Bt$1{static ɵfac=function(r){return new(r||t)};static ɵprov=en$3({token:t,factory:t.ɵfac})}return t})();var Qt$2=(()=>{class t{urlSerializer=E$2(de$1);options=E$2(he$1,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||`replace`;location=E$2(Mi$3);urlHandlingStrategy=E$2(Wt$3);urlUpdateStrategy=this.options.urlUpdateStrategy||`deferred`;currentUrlTree=new _;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,a=i??o;return a instanceof _?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{ɵrouterUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i}routerState=fi$2(null,E$2(me$2));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static ɵfac=function(r){return new(r||t)};static ɵprov=en$3({token:t,factory:()=>E$2(ka$2)})}return t})();var ka$2=(()=>{class t extends Qt$2{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!==`computed`?this.currentPageId:this.restoredState()?.ɵrouterPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type===`popstate`&&setTimeout(()=>{e(r.url,r.state,`popstate`,{replaceUrl:!0},r.hasUAVisualTransition)})})}handleRouterEvent(e,r){e instanceof ue$1?this.updateStateMemento():e instanceof ee$1?this.commitTransition(r):e instanceof Ze?this.urlUpdateStrategy===`eager`&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof _e$1?(this.commitTransition(r),this.urlUpdateStrategy===`deferred`&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof B?yi$2(e)?e.code===E$1.Redirect&&this.routerState===r.targetRouterState&&this.resetInternalState(r):this.restoreHistory(r):e instanceof Se$1?this.restoreHistory(r,!0):e instanceof $$1&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,r){let{extras:i,id:o}=r,{replaceUrl:a,state:c}=i;if(this.location.isCurrentPathEqualTo(e)||a){let s=this.browserPageId,u=F$3(F$3({},c),this.generateNgRouterState(o,s,r));this.location.replaceState(e,``,u)}else{let s=F$3(F$3({},c),this.generateNgRouterState(o,this.browserPageId+1,r));this.location.go(e,``,s)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution===`computed`){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution===`replace`&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),``,this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r,i){return this.canceledNavigationResolution===`computed`?F$3({navigationId:e,ɵrouterPageId:r},this.routerUrlState(i)):F$3({navigationId:e},this.routerUrlState(i))}static ɵfac=function(r){return new(r||t)};static ɵprov=en$3({token:t,factory:t.ɵfac})}return t})();function Yt$1(t,n){t.events.pipe($e$1(e=>e instanceof $$1||e instanceof B||e instanceof Se$1||e instanceof ee$1),it$3(e=>e instanceof $$1||e instanceof ee$1?0:(e instanceof B?e.code===E$1.Redirect||e.code===E$1.SupersededByNewNavigation:!1)?2:1),$e$1(e=>e!==2),ms$2(1)).subscribe(()=>{n()})}var W$1=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=E$2(ow);stateManager=E$2(Qt$2);options=E$2(he$1,{optional:!0})||{};pendingTasks=E$2(vt$3);urlUpdateStrategy=this.options.urlUpdateStrategy||`deferred`;navigationTransitions=E$2(Gt$1);urlSerializer=E$2(de$1);location=E$2(Mi$3);urlHandlingStrategy=E$2(Wt$3);injector=E$2(me$2);_events=new ee$2;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=E$2(ji$2);injectorCleanup=E$2(xi$2,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||`ignore`;config=E$2(Re$2,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!E$2(ot$2,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new q$1;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=Tg(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof B&&r.code!==E$1.Redirect&&r.code!==E$1.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof $$1)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof Ue$3){let a=r.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),s=F$3({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy===`eager`||xa$2(i.source)},a);this.scheduleNavigation(c,Ee$1,null,s,i.hasUAVisualTransition,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}ko$1(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ee$1,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i,o,a)=>{this.navigateToSyncWithBrowser(e,i,r,o,a)})}navigateToSyncWithBrowser(e,r,i,o,a){let c=i?.navigationId?i:null,s=i?.ɵrouterUrl??e;if(i?.ɵrouterUrl&&(o=G$1(F$3({},o),{browserUrl:e})),i){let d=F$3({},i);delete d.navigationId,delete d.ɵrouterPageId,delete d.ɵrouterUrl,Object.keys(d).length!==0&&(o.state=d)}let u=this.parseUrl(s);this.scheduleNavigation(u,r,c,o,a).catch(d=>{this.disposed||this.injector.get(Et$3)(d)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Tg(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Kn$1),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:s}=r,u=s?this.currentUrlTree.fragment:a,d=null;switch(c??this.options.defaultQueryParamsHandling){case`merge`:d=F$3(F$3({},this.currentUrlTree.queryParams),o);break;case`preserve`:d=this.currentUrlTree.queryParams;break;default:d=o||null}let p;try{p=ui$2(i?i.snapshot:this.routerState.snapshot.root)}catch(f){(typeof e[0]!=`string`||e[0][0]!==`/`)&&(e=[]),p=this.currentUrlTree.root}return li$2(p,e,d,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:!1}){let i=se$1(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Ee$1,null,r)}navigate(e,r={skipLocationChange:!1}){return La$2(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(r){return this.console.warn(dr$2(4018,!1)),this.urlSerializer.parse(`/`)}}isActive(e,r){let i;if(r===!0?i=F$3({},$n$1):r===!1?i=F$3({},Ae$2):i=F$3(F$3({},Ae$2),r),se$1(e))return Dt$2(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Dt$2(this.currentUrlTree,o,i)}scheduleNavigation(e,r,i,o,a,c){if(this.disposed)return Promise.resolve(!1);let s,u,d;c?(s=c.resolve,u=c.reject,d=c.promise):d=new Promise((f,R)=>{s=f,u=R});let p=this.pendingTasks.add();return Yt$1(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,hasUAVisualTransition:a,resolve:s,reject:u,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(Promise.reject.bind(Promise))}static ɵfac=function(r){return new(r||t)};static ɵprov=en$3({token:t,factory:t.ɵfac})}return t})();function La$2(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new _$1(4008,!1)}var $a$2=(()=>{class t{router=E$2(W$1);stateManager=E$2(Qt$2);fragment=ti$3(``);queryParams=ti$3({});path=ti$3(``);serializer=E$2(de$1);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof $$1&&this.updateState()})}updateState(){let{fragment:e,root:r,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(i),this.path.set(this.serializer.serialize(new _(r)))}static ɵfac=function(r){return new(r||t)};static ɵprov=en$3({token:t,factory:t.ɵfac})}return t})();var Jt$1=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=E$2(new Cg(`href`),{optional:!0});reactiveHref=$b(()=>{if(!this.isAnchorElement)return this.hrefAttributeValue;this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=r=>r===`preserve`||r===`merge`;return(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams(),this.computeHref(this.createUrlTree())});get href(){return Tg(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}set target(e){this._target.set(e)}get target(){return Tg(this._target)}_target=ti$3(void 0);set queryParams(e){this._queryParams.set(e)}get queryParams(){return Tg(this._queryParams)}_queryParams=ti$3(void 0,{equal:()=>!1});set fragment(e){this._fragment.set(e)}get fragment(){return Tg(this._fragment)}_fragment=ti$3(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e)}get queryParamsHandling(){return Tg(this._queryParamsHandling)}_queryParamsHandling=ti$3(void 0);set state(e){this._state.set(e)}get state(){return Tg(this._state)}_state=ti$3(void 0,{equal:()=>!1});set info(e){this._info.set(e)}get info(){return Tg(this._info)}_info=ti$3(void 0,{equal:()=>!1});set relativeTo(e){this._relativeTo.set(e)}get relativeTo(){return Tg(this._relativeTo)}_relativeTo=ti$3(void 0);set preserveFragment(e){this._preserveFragment.set(e)}get preserveFragment(){return Tg(this._preserveFragment)}_preserveFragment=ti$3(!1);set skipLocationChange(e){this._skipLocationChange.set(e)}get skipLocationChange(){return Tg(this._skipLocationChange)}_skipLocationChange=ti$3(!1);set replaceUrl(e){this._replaceUrl.set(e)}get replaceUrl(){return Tg(this._replaceUrl)}_replaceUrl=ti$3(!1);browserUrl=k1(void 0);isAnchorElement;onChanges=new ee$2;applicationErrorHandler=E$2(Et$3);options=E$2(he$1,{optional:!0});reactiveRouterState=E$2($a$2);constructor(e,r,i,o,a,c){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this.locationStrategy=c;let s=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=s===`a`||s===`area`||!!(typeof customElements==`object`&&customElements.get(s)?.observedAttributes?.includes?.(`href`))}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue(`tabindex`,e)}ngOnChanges(e){this.onChanges.next(this)}routerLinkInput=ti$3(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(se$1(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl(`0`))}onClick(e,r,i,o,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(e!==0||r||i||o||a||typeof this.target==`string`&&this.target!=`_self`))return!0;let s=this.browserUrl(),u=F$3({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},s!==void 0&&{browserUrl:s});return this.router.navigateByUrl(c,u)?.catch(d=>{this.applicationErrorHandler(d)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e)}createUrlTree(){let e=this.routerLinkInput();return e===null||!this.router.createUrlTree?null:se$1(e)?e:this.router.createUrlTree(e,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})}get urlTree(){return Tg(()=>this.createUrlTree())}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??``:null}static ɵfac=function(r){return new(r||t)(Qr$3(W$1),Qr$3(Z$1),Sf(`tabindex`),Qr$3(cc$1),Qr$3(Br$3),Qr$3(Ke$4))};static ɵdir=BD({type:t,selectors:[[``,`routerLink`,``]],hostVars:2,hostBindings:function(r,i){r&1&&Bh(`click`,function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&Ah$2(`href`,i.reactiveHref(),nE)(`target`,i._target())},inputs:{target:`target`,queryParams:`queryParams`,fragment:`fragment`,queryParamsHandling:`queryParamsHandling`,state:`state`,info:`info`,relativeTo:`relativeTo`,preserveFragment:[2,`preserveFragment`,`preserveFragment`,U1],skipLocationChange:[2,`skipLocationChange`,`skipLocationChange`,U1],replaceUrl:[2,`replaceUrl`,`replaceUrl`,U1],browserUrl:[1,`browserUrl`],routerLink:`routerLink`},features:[Vy]})}return t})();var Fa$2=(()=>{class t{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new qe$1;link=E$2(Jt$1,{optional:!0});constructor(e,r,i,o){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof $$1&&this.update()})}ngAfterContentInit(){ds$3(this.links.changes,ds$3(null)).pipe(er$3()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=Ae$3(e).pipe(er$3()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){let r=e==null?[]:(Array.isArray(e)?e:e.split(` `)).filter(i=>!!i);for(let i of this.classes)r.includes(i)||this.renderer.removeClass(this.element.nativeElement,i);this.classes=r}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||this.routerLinkActiveOptions===null&&!this._isActive||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,`aria-current`,this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,`aria-current`),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let r=this.routerLinkActiveOptions;if(r===null)return()=>!1;let i;return r===void 0?i=F$3({},Ae$2):za$2(r)?i=r:r.exact??!1?i=F$3({},$n$1):i=F$3({},Ae$2),o=>{let a=o.urlTree;return a?Tg(Fn$2(a,e,i)):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static ɵfac=function(r){return new(r||t)(Qr$3(W$1),Qr$3(Br$3),Qr$3(cc$1),Qr$3(H1))};static ɵdir=BD({type:t,selectors:[[``,`routerLinkActive`,``]],contentQueries:function(r,i,o){if(r&1&&Wh$1(o,Jt$1,5),r&2){let a;Pw(a=Fw())&&(i.links=a)}},inputs:{routerLinkActiveOptions:`routerLinkActiveOptions`,ariaCurrentWhenActive:`ariaCurrentWhenActive`,routerLinkActive:`routerLinkActive`},outputs:{isActiveChange:`isActiveChange`},exportAs:[`routerLinkActive`],features:[Vy]})}return t})();function za$2(t){let n=t;return!!(n.paths||n.matrixParams||n.queryParams||n.fragment)}var st$3=class{};var ki$2=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe($e$1(e=>e instanceof $$1),Nm(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Ih(o.providers,e,``));let a=o._injector??e;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(a).injector);let c=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(c,o.children??o._loadedRoutes))}return Ae$3(i).pipe(er$3())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return ds$3(null);let i;r.loadChildren&&r.canLoad===void 0?i=Ae$3(this.loader.loadChildren(e,r)):i=ds$3(null);let o=i.pipe(Be$2(a=>a===null?ds$3(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,r._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??e,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(e,r);return Ae$3([o,a]).pipe(er$3())}else return o})}static ɵfac=function(r){return new(r||t)(ke$1(W$1),ke$1(me$2),ke$1(st$3),ke$1(Vt$1))};static ɵprov=ue$2({token:t,factory:t.ɵfac,providedIn:`root`})}return t})();var Li$2=new x$3(``);var qa$2=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Ee$1;restoredId=0;store={};isHydrating=E$2(gv,{optional:!0})??!1;urlSerializer=E$2(de$1);zone=E$2(Q$1);viewportScroller=E$2(lc$1);transitions=E$2(Gt$1);constructor(e){this.options=e,this.options.scrollPositionRestoration||=`disabled`,this.options.anchorScrolling||=`disabled`,this.isHydrating&&E$2(Zr$3).whenStable().then(()=>{this.isHydrating=!1})}init(){this.options.scrollPositionRestoration!==`disabled`&&this.viewportScroller.setHistoryScrollRestoration(`manual`),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof ue$1?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof $$1?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof ee$1&&e.code===Pe$3.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof Ne$2)||e.scrollBehavior===`manual`)return;let r={behavior:`instant`};e.position?this.options.scrollPositionRestoration===`top`?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration===`enabled`&&this.viewportScroller.scrollToPosition(e.position,r):e.anchor&&this.options.anchorScrolling===`enabled`?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!==`disabled`&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,r){if(this.isHydrating)return;let i=Tg(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>M$1(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<`u`&&requestAnimationFrame(o)}),this.zone.run(()=>{this.transitions.events.next(new Ne$2(e,this.lastSource===`popstate`?this.store[this.restoredId]:null,r,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static ɵfac=function(r){eD()};static ɵprov=ue$2({token:t,factory:t.ɵfac})}return t})();function Ha$2(t,...n){return Ho$2([{provide:Re$2,multi:!0,useValue:t},{provide:Z$1,useFactory:$i$2},{provide:Sh$1,multi:!0,useFactory:Fi$2},n.map(e=>e.ɵproviders)])}function $i$2(){return E$2(W$1).routerState.root}function ct$4(t,n){return{ɵkind:t,ɵproviders:n}}function Fi$2(){let t=E$2(le$1);return n=>{let e=t.get(Zr$3);if(n!==e.components[0])return;let r=t.get(W$1),i=t.get(zi$2);t.get(Zn$1)===1&&r.initialNavigation(),t.get(Bi$2,null,{optional:!0})?.setUpPreloading(),t.get(Li$2,null,{optional:!0})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var zi$2=new x$3(``,{factory:()=>new ee$2});var Zn$1=new x$3(``,{factory:()=>1});function qi$2(){return ct$4(2,[{provide:mv,useValue:!0},{provide:Zn$1,useValue:0},WD(()=>{let n=E$2(le$1);return n.get(rs$3,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(W$1),o=n.get(zi$2);Yt$1(i,()=>{r(!0)}),n.get(Gt$1).afterPreactivation=()=>(r(!0),o.closed?ds$3(void 0):o),i.initialNavigation()}))})])}function Hi$2(){return ct$4(3,[WD(()=>{E$2(W$1).setUpLocationChangeListener()}),{provide:Zn$1,useValue:2}])}var Bi$2=new x$3(``);function Ki$2(t){return ct$4(0,[{provide:Bi$2,useExisting:ki$2},{provide:st$3,useExisting:t}])}function Vi$2(t={}){return ct$4(8,[{provide:ot$2,useFactory:()=>new mi$2(t,E$2(Wn$1,{optional:!0}))}])}function Wi$3(t){Ie$2(`NgRouterViewTransitions`);return ct$4(9,[{provide:Qn$1,useValue:Ui$2},{provide:Yn$1,useValue:F$3({skipNextTransition:!!t?.skipInitialTransition},t)}])}var Gi$2=[Mi$3,{provide:de$1,useClass:ne$3},W$1,ce$2,{provide:Z$1,useFactory:$i$2},Vt$1];var Ba$1=(()=>{class t{constructor(){}static forRoot(e,r){return{ngModule:t,providers:[Gi$2,[],{provide:Re$2,multi:!0,useValue:e},[],r?.errorHandler?{provide:Jn$1,useValue:r.errorHandler}:[],{provide:he$1,useValue:r||{}},r?.useHash?Va$2():Wa$2(),Ka$1(),r?.preloadingStrategy?Ki$2(r.preloadingStrategy).ɵproviders:[],r?.initialNavigation?Ga$2(r):[],r?.bindToComponentInputs?Vi$2(typeof r.bindToComponentInputs==`object`?r.bindToComponentInputs:{}).ɵproviders:[],r?.enableViewTransitions?Wi$3().ɵproviders:[],Qa$2()]}}static forChild(e){return{ngModule:t,providers:[{provide:Re$2,multi:!0,useValue:e}]}}static ɵfac=function(r){return new(r||t)};static ɵmod=jD({type:t});static ɵinj=Du({})}return t})();function Ka$1(){return{provide:Li$2,useFactory:()=>{let t=E$2(lc$1),n=E$2(he$1);return n.scrollOffset&&t.setOffset(n.scrollOffset),new qa$2(n)}}}function Va$2(){return{provide:Ke$4,useClass:as$3}}function Wa$2(){return{provide:Ke$4,useClass:Si$3}}function Ga$2(t){return[t.initialNavigation===`disabled`?Hi$2().ɵproviders:[],t.initialNavigation===`enabledBlocking`?qi$2().ɵproviders:[]]}var Xn$1=new x$3(``);function Qa$2(){return[{provide:Xn$1,useFactory:Fi$2},{provide:Sh$1,multi:!0,useExisting:Xn$1}]}var Xt$1;(function(t){t.PosAccessToken=`Vzle`,t.BarcodeAccessToken=`uWwO`,t.TokenExpire=`nTmh`,t.TokenType=`GSFk`,t.Host=`tynU`,t.Username=`PNQf`,t.Brand=`gMse`,t.Roles=`XfGR`,t.PrintMode=`JPZP`,t.SelectedProfileTemplate=`gTeU`,t.Outlets=`ehLw`,t.UserRole=`kYqR`})(Xt$1||(Xt$1={}));var Ya$2=`00000000-0000-0000-0000-000000000000`;var D$1=[];for(let t=0;t<256;++t)D$1.push((t+256).toString(16).slice(1));function Qi$2(t,n=0){return(D$1[t[n+0]]+D$1[t[n+1]]+D$1[t[n+2]]+D$1[t[n+3]]+`-`+D$1[t[n+4]]+D$1[t[n+5]]+`-`+D$1[t[n+6]]+D$1[t[n+7]]+`-`+D$1[t[n+8]]+D$1[t[n+9]]+`-`+D$1[t[n+10]]+D$1[t[n+11]]+D$1[t[n+12]]+D$1[t[n+13]]+D$1[t[n+14]]+D$1[t[n+15]]).toLowerCase()}var Ja$2=/* @__PURE__ */ new Uint8Array(16);function er$2(){return crypto.getRandomValues(Ja$2)}function Xa$2(t,n,e){return!n&&!t&&crypto.randomUUID?crypto.randomUUID():Za$2(t,n,e)}function Za$2(t,n,e){t=t||{};let r=t.random??t.rng?.()??er$2();if(r.length<16)throw new Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,n){if(e=e||0,e<0||e+16>n.length)throw new RangeError(`UUID byte range ${e}:${e+15} is out of buffer bounds`);for(let i=0;i<16;++i)n[e+i]=r[i];return n}return Qi$2(r)}var tr$2=Xa$2;var Yi$2=Symbol(``);function Ji$2(t){return new Proxy(t,{has(n,e){return!!this.get(n,e,void 0)},get(n,e){let r=Tg(n);return!ts$2(r)||!(e in r)?(oi$3(n[e])&&n[e][Yi$2]&&delete n[e],n[e]):(oi$3(n[e])||(Object.defineProperty(n,e,{value:Hb(()=>n()[e]),configurable:!0}),n[e][Yi$2]=!0),Ji$2(n[e]))}})}var es$2=[WeakSet,WeakMap,Promise,Date,Error,RegExp,ArrayBuffer,DataView,Function];function ts$2(t){if(t===null||typeof t!=`object`||ns$2(t))return!1;let n=Object.getPrototypeOf(t);if(n===Object.prototype)return!0;for(;n&&n!==Object.prototype;){if(es$2.includes(n.constructor))return!1;n=Object.getPrototypeOf(n)}return n===Object.prototype}function ns$2(t){return typeof t?.[Symbol.iterator]==`function`}var rs$2=/* @__PURE__ */ new WeakMap;var U$2=Symbol(``);function T$4(t,...n){let e=Tg(()=>Zt$2(t)),r=n.reduce((a,c)=>F$3(F$3({},a),typeof c==`function`?c(a):c),e),i=t[U$2],o=Reflect.ownKeys(t[U$2]);for(let a of Reflect.ownKeys(r))if(o.includes(a)){let c=a;e[c]!==r[c]&&i[c].set(r[c])}os$2(t)}function Zt$2(t){let n=t[U$2];return Reflect.ownKeys(t[U$2]).reduce((e,r)=>{let i=n[r]();return G$1(F$3({},e),{[r]:i})},{})}function is$2(t){return rs$2.get(t[U$2])||[]}function os$2(t){let n=is$2(t);for(let e of n)as$2(t,e)}function as$2(t,n){Tg(()=>{n(Zt$2(t))})}function Xi$2(...t){let n=[...t],e=typeof n[0]==`function`?{}:n.shift(),r=n;return(()=>{class o{constructor(){let c=r.reduce((x,fe)=>fe(x),ss$2()),{stateSignals:s,props:u,methods:d,hooks:p}=c,f=F$3(F$3(F$3({},s),u),d);this[U$2]=c[U$2];for(let x of Reflect.ownKeys(f))this[x]=f[x];let{onInit:R,onDestroy:O}=p;R&&R(),O&&E$2(be$3).onDestroy(O)}static ɵfac=function(s){return new(s||o)};static ɵprov=ue$2({token:o,factory:o.ɵfac,providedIn:e.providedIn||null})}return o})()}function ss$2(){return{[U$2]:{},stateSignals:{},props:{},methods:{},hooks:{}}}function nr$2(...t){let n=typeof t[0]==`function`?t:t.slice(1);return e=>n.reduce((r,i)=>i(r),e)}function rr$2(t){return n=>{let e=t(F$3(F$3(F$3({[U$2]:n[U$2]},n.stateSignals),n.props),n.methods));return G$1(F$3({},n),{props:F$3(F$3({},n.props),e)})}}function ir$2(t){return rr$2(n=>{let e=t(n);return Reflect.ownKeys(e).reduce((i,o)=>{let a=e[o];return G$1(F$3({},i),{[o]:oi$3(a)?a:Hb(a)})},{})})}function Zi$2(t){return n=>{let e=F$3(F$3(F$3({[U$2]:n[U$2]},n.stateSignals),n.props),n.methods),r=typeof t==`function`?t(e):t,i=(o,a)=>a?()=>{o&&o(),a(e)}:o;return G$1(F$3({},n),{hooks:{onInit:i(n.hooks.onInit,r.onInit),onDestroy:i(n.hooks.onDestroy,r.onDestroy)}})}}function en$2(t){return n=>{let e=t(F$3(F$3(F$3({[U$2]:n[U$2]},n.stateSignals),n.props),n.methods));return G$1(F$3({},n),{methods:F$3(F$3({},n.methods),e)})}}function tn$2(t){return n=>{let e=typeof t==`function`?t():t,r=Reflect.ownKeys(e),i=n[U$2],o={};for(let a of r)i[a]=ti$3(e[a]),o[a]=Ji$2(i[a]);return G$1(F$3({},n),{stateSignals:F$3(F$3({},n.stateSignals),o)})}}var cs$2=new x$3(`ReduxDevtoolsConfig`);var us$2=(()=>{class t{#e=ti$3({});get stores(){return this.#e()}#n;#r=hd$1(()=>{if(this.#n===void 0)throw new Error(`no callback function defined`);let e=this.#e(),r=Object.entries(e).reduce((i,[o,a])=>G$1(F$3({},i),{[o]:Zt$2(a)}),{});this.#n(r)});track(e,r){this.#e.update(i=>G$1(F$3({},i),{[e]:r}))}onChange(e){this.#n=e}removeStore(e){this.#e.update(r=>Object.entries(r).reduce((i,[o,a])=>(o!==e&&(i[o]=a),i),{}))}notifyRenamedStore(e){this.#e()[e]&&this.#e.update(r=>F$3({},r))}static{this.ɵfac=function(r){return new(r||t)}}static{this.ɵprov=ue$2({token:t,factory:t.ɵfac,providedIn:`root`})}}return t})();var or$3=/* @__PURE__ */ new Set;var eo$1={send:()=>{}};function ls$2(t){if(!t.length)return{type:`Store Update`};let n=t.filter(r=>typeof r==`object`),e=[...new Set(t.map(r=>typeof r==`string`?r:r.type))].join(`, `);return n.length?G$1(F$3({},n[0]),{type:e}):{type:e}}var to$1=(()=>{class t{#e={};#n=sc$1(E$2(by));#r=[];#i=F$3({name:`NgRx SignalStore`},E$2(cs$2,{optional:!0}));#t={};#o=1;#a=E$2(Q$1).runOutsideAngular(()=>this.#n&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__.connect(this.#i):eo$1);constructor(){this.#n}ngOnDestroy(){or$3.clear()}syncToDevTools(e){let r=Object.entries(e).reduce((a,[c,s])=>{let{options:u,name:d}=this.#e[c];return a[d]=u.map(s),a},{});this.#t=F$3(F$3({},this.#t),r);let o=ls$2(Array.from(or$3));or$3.clear(),this.#a.send(o,this.#t)}getNextId(){return String(this.#o++)}addStore(e,r,i,o){let a=r,c=Object.values(this.#e).map(u=>u.name);if(c.includes(a)&&!o.indexNames)throw new Error(`An instance of the store ${a} already exists. Enable automatic indexing via withDevTools('${a}', { indexNames: true }), or rename it upon instantiation.`);for(let u=1;c.includes(a);u++)a=`${r}-${u}`;this.#e[e]={name:a,options:o};let s=o.tracker;this.#r.includes(s)||this.#r.push(s),s.onChange(u=>this.syncToDevTools(u)),s.track(e,i)}removeStore(e){let r=this.#e[e].name;this.#e=Object.entries(this.#e).reduce((i,[o,a])=>(o!==e&&(i[o]=a),i),{}),this.#t=Object.entries(this.#t).reduce((i,[o,a])=>(o!==r&&(i[o]=a),i),{});for(let i of this.#r)i.removeStore(e)}renameStore(e,r){let i=this.#e[e];if(!i)return;let o=i.name;if(o===r)return;if(Object.entries(this.#e).filter(([c])=>c!==e).map(([,c])=>c.name).includes(r))throw new Error(`NgRx Toolkit/DevTools: cannot rename from ${o} to ${r}. ${r} is already assigned to another SignalStore instance.`);this.#e=Object.entries(this.#e).reduce((c,[s,u])=>(s===e?c[s]=G$1(F$3({},u),{name:r}):c[s]=u,c),{}),this.#t=Object.entries(this.#t).reduce((c,[s,u])=>(s!==o&&(c[s]=u),c),{}),this.#r.forEach(c=>c.notifyRenamedStore(e))}static{this.ɵfac=function(r){return new(r||t)}}static{this.ɵprov=ue$2({token:t,factory:t.ɵfac,providedIn:`root`})}}return t})();var ds$2=`___renameDevtoolsName`;var no$1=`___uniqueDevtoolsId`;var hs=Symbol(`DEVTOOL_PROP`);function ro$1(t,...n){return nr$2(en$2(()=>{let e=E$2(to$1),r=e.getNextId();return{[ds$2]:i=>{e.renameStore(r,i)},[no$1]:()=>r}}),rr$2(()=>({[hs]:n.filter(Boolean).map(e=>e.name)})),Zi$2(e=>{let r=E$2(to$1),i=String(e[no$1]());return{onInit(){let o={indexNames:!n.some(a=>a.indexNames===!1),map:n.find(a=>a.map)?.map??(a=>a),tracker:E$2(n.find(a=>a.tracker)?.tracker||us$2)};r.addStore(i,t,e,o)},onDestroy(){r.removeStore(i)}}}))}nr$2(tn$2({}));var io$1={layoutOptions:{theme:`light`,dir:`ltr`,layout:`vertical`,sidebartype:`full`,sidebarpos:`fixed`,headerpos:`fixed`,boxed:`full`,navbarbg:`skin6`,sidebarbg:`skin6`,logobg:`skin6`,active:1,tabStatus:`justify`,isCollapsed:!1,innerWidth:window.innerWidth,defaultSidebar:`full`,showSettings:!1,showMobileMenu:!1,expandLogo:!1},profileTemplate:null,priceLabelTemplate:null,outlets:null,outletPriceSelected:null,taxs:null,currentStep:1,product:null,cartItemsMap:/* @__PURE__ */ new Map,userRole:null};function oo$1(t){return t.unitPrice!=null?t.unitPrice:t.promotion?t.product.UnitPrice:t.outletPrice?.Price!=null?t.outletPrice.Price:t.product.UnitPrice}function ao$1(t,n){let e=n;return t.promotion?.Discount!=null&&(e=e*(1-t.promotion.Discount/100)),t.outletPrice?.PriceDiscount!=null&&(e=e*(1-t.outletPrice.PriceDiscount/100)),e}var eu$1=Xi$2({providedIn:`root`},ro$1(`appStore`),tn$2(io$1),ir$2(t=>{return{cartItems:Hb(()=>Array.from(t.cartItemsMap().values()).map(i=>{let o=oo$1(i),c=ao$1(i,i.promotion?.UnitPrice||i.outletPrice?.Price||i.unitPrice||i.product.UnitPrice);return G$1(F$3({},i),{baseUnitPrice:o,effectiveUnitPrice:c})})),flattenedCartUnits:Hb(()=>Array.from(t.cartItemsMap().values()).flatMap(i=>{let o=oo$1(i),c=ao$1(i,i.promotion?.UnitPrice||i.outletPrice?.Price||i.unitPrice||i.product.UnitPrice),s=t.profileTemplate()?.ConfigObject,u=s?.TaxType?.ID!=null&&t.taxs()?t.taxs().find(p=>p.ID===s.TaxType.ID)?.Rate:void 0;s?.PriceWithTax&&u!=null&&(c+=c*u/100);let d=Math.max(0,i.quantity??0);return Array.from({length:d},()=>({id:tr$2(),product:i.product,promotion:i.promotion,outletPrice:i.outletPrice,baseUnitPrice:o,effectiveUnitPrice:c}))})),userRole:Hb(()=>t.userRole()??localStorage.getItem(Xt$1.UserRole))}}),en$2(t=>({updateLayoutOptions(n){T$4(t,e=>G$1(F$3({},e),{layoutOptions:n}))},updateProfileTemplate(n){T$4(t,e=>G$1(F$3({},e),{profileTemplate:n}))},updatePriceLabelTemplate(n){T$4(t,e=>G$1(F$3({},e),{priceLabelTemplate:n}))},updateOutlets(n){T$4(t,e=>G$1(F$3({},e),{outlets:n}))},updateTaxes(n){T$4(t,e=>G$1(F$3({},e),{taxs:n}))},updateCurrentStep(n){T$4(t,e=>G$1(F$3({},e),{currentStep:n}))},updateProduct(n){T$4(t,e=>G$1(F$3({},e),{product:n}))},addProductToCart(n,e,r,i=1,o){T$4(t,a=>{let c=n.ID,u=(a.cartItemsMap.get(c)?.quantity??0)+i;if(u<=0){let p=new Map(a.cartItemsMap);return p.delete(c),G$1(F$3({},a),{cartItemsMap:p})}let d=new Map(a.cartItemsMap);return d.set(c,{product:n,promotion:e,outletPrice:r,quantity:u,unitPrice:o,baseUnitPrice:0,effectiveUnitPrice:0}),G$1(F$3({},a),{cartItemsMap:d})})},updateCartItemQuantity(n,e,r,i,o){T$4(t,a=>{if(e<=0){let u=new Map(a.cartItemsMap);return u.delete(n),G$1(F$3({},a),{cartItemsMap:u})}let c=a.cartItemsMap.get(n);if(!c)return a;let s=new Map(a.cartItemsMap);return s.set(n,F$3(F$3(F$3(G$1(F$3({},c),{quantity:e}),r!==void 0&&{promotion:r}),i!==void 0&&{outletPrice:i}),o!==void 0&&{unitPrice:o})),G$1(F$3({},a),{cartItemsMap:s})})},removeProductFromCart(n){T$4(t,e=>{if(!e.cartItemsMap.has(n))return e;let r=new Map(e.cartItemsMap);return r.delete(n),G$1(F$3({},e),{cartItemsMap:r})})},clearCartItems(){T$4(t,n=>G$1(F$3({},n),{cartItemsMap:/* @__PURE__ */ new Map}))},clearAll(){T$4(t,()=>F$3({},io$1))},updateUserRole(n){T$4(t,e=>G$1(F$3({},e),{userRole:n}))},updateOutletPriceSelected(n){T$4(t,e=>G$1(F$3({},e),{outletPriceSelected:n}))}})));function U$1(t){t||(t=E$2(be$3));let e=new b$3(n=>{if(t.destroyed){n.next();return}return t.onDestroy(n.next.bind(n))});return n=>n.pipe(Fm(e))}function T$3(t,e){let n=e?.injector??E$2(le$1),r=new Jn$2(1),u=hd$1(()=>{let o;try{o=t()}catch(i){Tg(()=>r.error(i));return}Tg(()=>r.next(o))},{injector:n,manualCleanup:!0});return n.get(be$3).onDestroy(()=>{u.destroy(),r.complete()}),r.asObservable()}function F$1(t,e){let r=!e?.manualCleanup?e?.injector?.get(be$3)??E$2(be$3):null,u=x$2(e?.equal),o;e?.requireSync?o=ti$3({kind:0},{equal:u}):o=ti$3({kind:1,value:e?.initialValue},{equal:u});let i,c=t.subscribe({next:s=>o.set({kind:1,value:s}),error:s=>{o.set({kind:2,error:s}),i?.()},complete:()=>{i?.()}});if(e?.requireSync&&o().kind===0)throw new _$1(601,!1);return i=r?.onDestroy(c.unsubscribe.bind(c)),Hb(()=>{let s=o();switch(s.kind){case 1:return s.value;case 2:throw s.error;case 0:throw new _$1(601,!1)}},{equal:e?.equal})}function x$2(t=Object.is){return(e,n)=>e.kind===1&&n.kind===1&&t(e.value,n.value)}function L$2(t){t===void 0&&(t=E$2(le$1));let e=t.get(Oa$3);return n=>new b$3(r=>{let u=e.add(),o=!1;function i(){o||(u(),o=!0)}let c=n.subscribe({next:s=>{r.next(s),i()},complete:()=>{r.complete(),i()},error:s=>{r.error(s),i()}});return c.add(()=>{r.unsubscribe(),i()}),c})}var Or$1=function(n){let e=[],t=0;for(let r=0;r<n.length;r++){let i=n.charCodeAt(r);i<128?e[t++]=i:i<2048?(e[t++]=i>>6|192,e[t++]=i&63|128):(i&64512)===55296&&r+1<n.length&&(n.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(n.charCodeAt(++r)&1023),e[t++]=i>>18|240,e[t++]=i>>12&63|128,e[t++]=i>>6&63|128,e[t++]=i&63|128):(e[t++]=i>>12|224,e[t++]=i>>6&63|128,e[t++]=i&63|128)}return e};var Ts$1=function(n){let e=[],t=0,r=0;for(;t<n.length;){let i=n[t++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){let s=n[t++];e[r++]=String.fromCharCode((i&31)<<6|s&63)}else if(i>239&&i<365){let s=n[t++],o=n[t++],c=n[t++],u=((i&7)<<18|(s&63)<<12|(o&63)<<6|c&63)-65536;e[r++]=String.fromCharCode(55296+(u>>10)),e[r++]=String.fromCharCode(56320+(u&1023))}else{let s=n[t++],o=n[t++];e[r++]=String.fromCharCode((i&15)<<12|(s&63)<<6|o&63)}}return e.join(``)};var tt$1={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`,get ENCODED_VALS(){return this.ENCODED_VALS_BASE+`+/=`},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+`-_.`},HAS_NATIVE_SUPPORT:typeof atob==`function`,encodeByteArray(n,e){if(!Array.isArray(n))throw Error(`encodeByteArray takes an array as a parameter`);this.init_();let t=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<n.length;i+=3){let s=n[i],o=i+1<n.length,c=o?n[i+1]:0,u=i+2<n.length,l=u?n[i+2]:0,d=s>>2,f=(s&3)<<4|c>>4,m=(c&15)<<2|l>>6,_=l&63;u||(_=64,o||(m=64)),r.push(t[d],t[f],t[m],t[_])}return r.join(``)},encodeString(n,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(n):this.encodeByteArray(Or$1(n),e)},decodeString(n,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(n):Ts$1(this.decodeStringToByteArray(n,e))},decodeStringToByteArray(n,e){this.init_();let t=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<n.length;){let s=t[n.charAt(i++)],c=i<n.length?t[n.charAt(i)]:0;++i;let l=i<n.length?t[n.charAt(i)]:64;++i;let f=i<n.length?t[n.charAt(i)]:64;if(++i,s==null||c==null||l==null||f==null)throw new Qt$1;let m=s<<2|c>>4;if(r.push(m),l!==64){let _=c<<4&240|l>>2;if(r.push(_),f!==64){let J=l<<6&192|f;r.push(J)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let n=0;n<this.ENCODED_VALS.length;n++)this.byteToCharMap_[n]=this.ENCODED_VALS.charAt(n),this.charToByteMap_[this.byteToCharMap_[n]]=n,this.byteToCharMapWebSafe_[n]=this.ENCODED_VALS_WEBSAFE.charAt(n),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[n]]=n,n>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(n)]=n,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(n)]=n)}}};var Qt$1=class extends Error{constructor(){super(...arguments),this.name=`DecodeBase64StringError`}};var ws$1=function(n){let e=Or$1(n);return tt$1.encodeByteArray(e,!0)};var tn$1=function(n){return ws$1(n).replace(/\./g,``)};var nt$1=function(n){try{return tt$1.decodeString(n,!0)}catch(e){console.error(`base64Decode failed: `,e)}return null};function Dr$1(){if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(typeof global<`u`)return global;throw new Error(`Unable to locate global object.`)}var ys$1=()=>Dr$1().__FIREBASE_DEFAULTS__;var As$1=()=>{if(typeof process>`u`||typeof process.env>`u`)return;let n=process.env.__FIREBASE_DEFAULTS__;if(n)return JSON.parse(n)};var vs$1=()=>{if(typeof document>`u`)return;let n;try{n=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(t){return}let e=n&&nt$1(n[1]);return e&&JSON.parse(e)};var nn$1=()=>{try{return ys$1()||As$1()||vs$1()}catch(n){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${n}`);return}};var Lr$1=n=>nn$1()?.emulatorHosts?.[n];var rn$1=()=>nn$1()?.config;var sn$1=n=>nn$1()?.[`_${n}`];var M=class{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,r)=>{t?this.reject(t):this.resolve(r),typeof e==`function`&&(this.promise.catch(()=>{}),e.length===1?e(t):e(t,r))}}};function w(){return typeof navigator<`u`&&typeof navigator.userAgent==`string`?navigator.userAgent:``}function Mr$1(){return typeof window<`u`&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(w())}function Ur$1(){return typeof navigator<`u`&&navigator.userAgent===`Cloudflare-Workers`}function Fr$1(){let n=typeof chrome==`object`?chrome.runtime:typeof browser==`object`?browser.runtime:void 0;return typeof n==`object`&&n.id!==void 0}function xr$1(){return typeof navigator==`object`&&navigator.product===`ReactNative`}function Vr$1(){let n=w();return n.indexOf(`MSIE `)>=0||n.indexOf(`Trident/`)>=0}function rt$1(){try{return typeof indexedDB==`object`}catch(n){return!1}}function $r$1(){return new Promise((n,e)=>{try{let t=!0,r=`validate-browser-context-for-indexeddb-analytics-module`,i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),t||self.indexedDB.deleteDatabase(r),n(!0)},i.onupgradeneeded=()=>{t=!1},i.onerror=()=>{e(i.error?.message||``)}}catch(t){e(t)}})}var bs=`FirebaseError`;var S$1=class n extends Error{constructor(e,t,r){super(t),this.code=e,this.customData=r,this.name=bs,Object.setPrototypeOf(this,n.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,R$1.prototype.create)}};var R$1=class{constructor(e,t,r){this.service=e,this.serviceName=t,this.errors=r}create(e,...t){let r=t[0]||{},i=`${this.service}/${e}`,s=this.errors[e],o=s?ks(s,r):`Error`;return new S$1(i,`${this.serviceName}: ${o} (${i}).`,r)}};function ks(n,e){try{let t=0,r=``;for(;t<n.length;){let i=n.indexOf(`{$`,t);if(i===-1){r+=n.substring(t);break}let s=n.indexOf(`}`,i+2);if(s===-1){r+=n.substring(t);break}let o=n.substring(i+2,s),c=e[o];r+=n.substring(t,i)+(c!=null?String(c):`<${o}?>`),t=s+1}return r}catch(t){return n}}function Wr$1(n){for(let e in n)if(Object.prototype.hasOwnProperty.call(n,e))return!1;return!0}function z(n,e){if(n===e)return!0;let t=Object.keys(n),r=Object.keys(e);for(let i of t){if(!r.includes(i))return!1;let s=n[i],o=e[i];if(Nr$1(s)&&Nr$1(o)){if(!z(s,o))return!1}else if(s!==o)return!1}for(let i of r)if(!t.includes(i))return!1;return!0}function Nr$1(n){return n!==null&&typeof n==`object`}function de(n){let e=[];for(let[t,r]of Object.entries(n))Array.isArray(r)?r.forEach(i=>{e.push(encodeURIComponent(t)+`=`+encodeURIComponent(i))}):e.push(encodeURIComponent(t)+`=`+encodeURIComponent(r));return e.length?`&`+e.join(`&`):``}function he(n){let e={};return n.replace(/^\?/,``).split(`&`).forEach(r=>{if(r){let[i,s]=r.split(`=`);e[decodeURIComponent(i)]=decodeURIComponent(s)}}),e}function fe(n){let e=n.indexOf(`?`);if(!e)return``;let t=n.indexOf(`#`,e);return n.substring(e,t>0?t:void 0)}function Hr$1(n,e){let t=new en$1(n,e);return t.subscribe.bind(t)}var en$1=class{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(()=>{e(this)}).catch(r=>{this.error(r)})}next(e){this.forEachObserver(t=>{t.next(e)})}error(e){this.forEachObserver(t=>{t.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,t,r){let i;if(e===void 0&&t===void 0&&r===void 0)throw new Error(`Missing Observer.`);Ss(e,[`next`,`error`,`complete`])?i=e:i={next:e,error:t,complete:r},i.next===void 0&&(i.next=Zt$1),i.error===void 0&&(i.error=Zt$1),i.complete===void 0&&(i.complete=Zt$1);let s=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?i.error(this.finalError):i.complete()}catch(o){}}),this.observers.push(i),s}unsubscribeOne(e){this.observers===void 0||this.observers[e]===void 0||(delete this.observers[e],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then(()=>{if(this.observers!==void 0&&this.observers[e]!==void 0)try{t(this.observers[e])}catch(r){typeof console<`u`&&console.error&&console.error(r)}})}close(e){this.finalized||(this.finalized=!0,e!==void 0&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}};function Ss(n,e){if(typeof n!=`object`||n===null)return!1;for(let t of e)if(t in n&&typeof n[t]==`function`)return!0;return!1}function Zt$1(){}function U(n){return n&&n._delegate?n._delegate:n}function it$1(n){try{return(n.startsWith(`http://`)||n.startsWith(`https://`)?new URL(n).hostname:n).endsWith(`.cloudworkstations.dev`)}catch(e){return!1}}function Br$1(n){return M$1(this,null,function*(){return(yield fetch(n,{credentials:`include`})).ok})}var v=class{constructor(e,t,r){this.name=e,this.instanceFactory=t,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode=`LAZY`,this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}};var Z=`[DEFAULT]`;var on$1=class{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=/* @__PURE__ */ new Map,this.instancesDeferred=/* @__PURE__ */ new Map,this.instancesOptions=/* @__PURE__ */ new Map,this.onInitCallbacks=/* @__PURE__ */ new Map}get(e){let t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){let r=new M;if(this.instancesDeferred.set(t,r),this.isInitialized(t)||this.shouldAutoInitialize())try{let i=this.getOrInitializeService({instanceIdentifier:t});i&&r.resolve(i)}catch(i){}}return this.instancesDeferred.get(t).promise}getImmediate(e){let t=this.normalizeInstanceIdentifier(e?.identifier),r=e?.optional??!1;if(this.isInitialized(t)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:t})}catch(i){if(r)return null;throw i}else{if(r)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(Ps$1(e))try{this.getOrInitializeService({instanceIdentifier:Z})}catch(t){}for(let[t,r]of this.instancesDeferred.entries()){let i=this.normalizeInstanceIdentifier(t);try{let s=this.getOrInitializeService({instanceIdentifier:i});r.resolve(s)}catch(s){}}}}clearInstance(e=Z){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}delete(){return M$1(this,null,function*(){let e=Array.from(this.instances.values());yield Promise.all([...e.filter(t=>`INTERNAL`in t).map(t=>t.INTERNAL.delete()),...e.filter(t=>`_delete`in t).map(t=>t._delete())])})}isComponentSet(){return this.component!=null}isInitialized(e=Z){return this.instances.has(e)}getOptions(e=Z){return this.instancesOptions.get(e)||{}}initialize(e={}){let{options:t={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let i=this.getOrInitializeService({instanceIdentifier:r,options:t});for(let[s,o]of this.instancesDeferred.entries())r===this.normalizeInstanceIdentifier(s)&&o.resolve(i);return i}onInit(e,t){let r=this.normalizeInstanceIdentifier(t),i=this.onInitCallbacks.get(r)??/* @__PURE__ */ new Set;i.add(e),this.onInitCallbacks.set(r,i);let s=this.instances.get(r);return s&&e(s,r),()=>{i.delete(e)}}invokeOnInitCallbacks(e,t){let r=this.onInitCallbacks.get(t);if(r)for(let i of r)try{i(e,t)}catch(s){}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:Rs$1(e),options:t}),this.instances.set(e,r),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch(i){}return r||null}normalizeInstanceIdentifier(e=Z){return this.component?this.component.multipleInstances?e:Z:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!==`EXPLICIT`}};function Rs$1(n){return n===Z?void 0:n}function Ps$1(n){return n.instantiationMode===`EAGER`}var st$2=class{constructor(e){this.name=e,this.providers=/* @__PURE__ */ new Map}addComponent(e){let t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);let t=new on$1(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}};var Cs$1=[];var g;(function(n){n[n.DEBUG=0]=`DEBUG`,n[n.VERBOSE=1]=`VERBOSE`,n[n.INFO=2]=`INFO`,n[n.WARN=3]=`WARN`,n[n.ERROR=4]=`ERROR`,n[n.SILENT=5]=`SILENT`})(g||(g={}));var Ns$1={debug:g.DEBUG,verbose:g.VERBOSE,info:g.INFO,warn:g.WARN,error:g.ERROR,silent:g.SILENT};var Os$1=g.INFO;var Ds$1={[g.DEBUG]:`log`,[g.VERBOSE]:`log`,[g.INFO]:`info`,[g.WARN]:`warn`,[g.ERROR]:`error`};var Ls$1=(n,e,...t)=>{if(e<n.logLevel)return;let r=(/* @__PURE__ */ new Date()).toISOString(),i=Ds$1[e];if(i)console[i](`[${r}] ${n.name}:`,...t);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)};var j=class{constructor(e){this.name=e,this._logLevel=Os$1,this._logHandler=Ls$1,this._userLogHandler=null,Cs$1.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in g))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e==`string`?Ns$1[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if(typeof e!=`function`)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,g.DEBUG,...e),this._logHandler(this,g.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,g.VERBOSE,...e),this._logHandler(this,g.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,g.INFO,...e),this._logHandler(this,g.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,g.WARN,...e),this._logHandler(this,g.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,g.ERROR,...e),this._logHandler(this,g.ERROR,...e)}};var Ms$1=(n,e)=>e.some(t=>n instanceof t);var zr$1;var jr$1;function Us$1(){return zr$1||(zr$1=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Fs$1(){return jr$1||(jr$1=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var qr$1=/* @__PURE__ */ new WeakMap;var cn$1=/* @__PURE__ */ new WeakMap;var Kr$1=/* @__PURE__ */ new WeakMap;var an$1=/* @__PURE__ */ new WeakMap;var ln$1=/* @__PURE__ */ new WeakMap;function xs(n){let e=new Promise((t,r)=>{let i=()=>{n.removeEventListener(`success`,s),n.removeEventListener(`error`,o)},s=()=>{t(O(n.result)),i()},o=()=>{r(n.error),i()};n.addEventListener(`success`,s),n.addEventListener(`error`,o)});return e.then(t=>{t instanceof IDBCursor&&qr$1.set(t,n)}).catch(()=>{}),ln$1.set(e,n),e}function Vs$1(n){if(cn$1.has(n))return;let e=new Promise((t,r)=>{let i=()=>{n.removeEventListener(`complete`,s),n.removeEventListener(`error`,o),n.removeEventListener(`abort`,o)},s=()=>{t(),i()},o=()=>{r(n.error||new DOMException(`AbortError`,`AbortError`)),i()};n.addEventListener(`complete`,s),n.addEventListener(`error`,o),n.addEventListener(`abort`,o)});cn$1.set(n,e)}var un$2={get(n,e,t){if(n instanceof IDBTransaction){if(e===`done`)return cn$1.get(n);if(e===`objectStoreNames`)return n.objectStoreNames||Kr$1.get(n);if(e===`store`)return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return O(n[e])},set(n,e,t){return n[e]=t,!0},has(n,e){return n instanceof IDBTransaction&&(e===`done`||e===`store`)?!0:e in n}};function Gr$1(n){un$2=n(un$2)}function $s$1(n){return n===IDBDatabase.prototype.transaction&&!(`objectStoreNames`in IDBTransaction.prototype)?function(e,...t){let r=n.call(ot$1(this),e,...t);return Kr$1.set(r,e.sort?e.sort():[e]),O(r)}:Fs$1().includes(n)?function(...e){return n.apply(ot$1(this),e),O(qr$1.get(this))}:function(...e){return O(n.apply(ot$1(this),e))}}function Ws(n){return typeof n==`function`?$s$1(n):(n instanceof IDBTransaction&&Vs$1(n),Ms$1(n,Us$1())?new Proxy(n,un$2):n)}function O(n){if(n instanceof IDBRequest)return xs(n);if(an$1.has(n))return an$1.get(n);let e=Ws(n);return e!==n&&(an$1.set(n,e),ln$1.set(e,n)),e}var ot$1=n=>ln$1.get(n);function Yr$1(n,e,{blocked:t,upgrade:r,blocking:i,terminated:s}={}){let o=indexedDB.open(n,e),c=O(o);return r&&o.addEventListener(`upgradeneeded`,u=>{r(O(o.result),u.oldVersion,u.newVersion,O(o.transaction),u)}),t&&o.addEventListener(`blocked`,u=>t(u.oldVersion,u.newVersion,u)),c.then(u=>{s&&u.addEventListener(`close`,()=>s()),i&&u.addEventListener(`versionchange`,l=>i(l.oldVersion,l.newVersion,l))}).catch(()=>{}),c}var Hs=[`get`,`getKey`,`getAll`,`getAllKeys`,`count`];var Bs$1=[`put`,`add`,`delete`,`clear`];var dn$2=/* @__PURE__ */ new Map;function Jr$1(n,e){if(!(n instanceof IDBDatabase&&!(e in n)&&typeof e==`string`))return;if(dn$2.get(e))return dn$2.get(e);let t=e.replace(/FromIndex$/,``),r=e!==t,i=Bs$1.includes(t);if(!(t in(r?IDBIndex:IDBObjectStore).prototype)||!(i||Hs.includes(t)))return;let s=function(o,...c){return M$1(this,null,function*(){let u=this.transaction(o,i?`readwrite`:`readonly`),l=u.store;return r&&(l=l.index(c.shift())),(yield Promise.all([l[t](...c),i&&u.done]))[0]})};return dn$2.set(e,s),s}Gr$1(n=>G$1(F$3({},n),{get:(e,t,r)=>Jr$1(e,t)||n.get(e,t,r),has:(e,t)=>!!Jr$1(e,t)||n.has(e,t)}));var fn$2=class{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(t=>{if(zs(t)){let r=t.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(t=>t).join(` `)}};function zs(n){return n.getComponent()?.type===`VERSION`}var pn$1=`@firebase/app`;var Xr$2=`0.16.2`;var x$1=new j(`@firebase/app`);var js=`@firebase/app-compat`;var qs=`@firebase/analytics-compat`;var Ks$1=`@firebase/analytics`;var Gs$1=`@firebase/app-check-compat`;var Js$1=`@firebase/app-check`;var Ys$1=`@firebase/auth`;var Xs$1=`@firebase/auth-compat`;var Zs$1=`@firebase/database`;var Qs$1=`@firebase/data-connect`;var eo=`@firebase/database-compat`;var to=`@firebase/functions`;var no=`@firebase/functions-compat`;var ro=`@firebase/installations`;var io=`@firebase/installations-compat`;var so=`@firebase/messaging`;var oo=`@firebase/messaging-compat`;var ao=`@firebase/performance`;var co=`@firebase/performance-compat`;var uo=`@firebase/remote-config`;var lo=`@firebase/remote-config-compat`;var ho=`@firebase/storage`;var fo=`@firebase/storage-compat`;var po=`@firebase/firestore`;var mo=`@firebase/ai`;var go=`@firebase/firestore-compat`;var Io=`firebase`;var _o=`12.19.0`;var mn$2=`[DEFAULT]`;var Eo={[pn$1]:`fire-core`,[js]:`fire-core-compat`,[Ks$1]:`fire-analytics`,[qs]:`fire-analytics-compat`,[Js$1]:`fire-app-check`,[Gs$1]:`fire-app-check-compat`,[Ys$1]:`fire-auth`,[Xs$1]:`fire-auth-compat`,[Zs$1]:`fire-rtdb`,[Qs$1]:`fire-data-connect`,[eo]:`fire-rtdb-compat`,[to]:`fire-fn`,[no]:`fire-fn-compat`,[ro]:`fire-iid`,[io]:`fire-iid-compat`,[so]:`fire-fcm`,[oo]:`fire-fcm-compat`,[ao]:`fire-perf`,[co]:`fire-perf-compat`,[uo]:`fire-rc`,[lo]:`fire-rc-compat`,[ho]:`fire-gcs`,[fo]:`fire-gcs-compat`,[po]:`fire-fst`,[go]:`fire-fst-compat`,[mo]:`fire-vertex`,"fire-js":`fire-js`,[Io]:`fire-js-all`};var we=/* @__PURE__ */ new Map;var To=/* @__PURE__ */ new Map;var gn$1=/* @__PURE__ */ new Map;function Zr$1(n,e){try{n.container.addComponent(e)}catch(t){x$1.debug(`Component ${e.name} failed to register with FirebaseApp ${n.name}`,t)}}function V(n){let e=n.name;if(gn$1.has(e))return x$1.debug(`There were multiple attempts to register component ${e}.`),!1;gn$1.set(e,n);for(let t of we.values())Zr$1(t,n);for(let t of To.values())Zr$1(t,n);return!0}function at$2(n,e){let t=n.container.getProvider(`heartbeat`).getImmediate({optional:!0});return t&&t.triggerHeartbeat(),n.container.getProvider(e)}function P$1(n){return n==null?!1:n.settings!==void 0}var F=new R$1(`app`,`Firebase`,{"no-app":`No Firebase App '{$appName}' has been created - call initializeApp() first`,"bad-app-name":`Illegal App name: '{$appName}'`,"duplicate-app":`Firebase App named '{$appName}' already exists with different {$mismatchedParam}. Existing: '{$oldValue}'. New: '{$newValue}'.`,"app-deleted":`Firebase App named '{$appName}' already deleted`,"server-app-deleted":`Firebase Server App has been deleted`,"no-options":`Need to provide options, when not being deployed to hosting via source.`,"invalid-app-argument":`firebase.{$appName}() takes either no argument or a Firebase App instance.`,"invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":`Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.`,"idb-get":`Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.`,"idb-set":`Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.`,"idb-delete":`Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.`,"finalization-registry-not-supported":`FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.`,"invalid-server-app-environment":`FirebaseServerApp is not for use in browser environments.`});var In$2=class{constructor(e,t,r){this._isDeleted=!1,this._options=F$3({},e),this._config=F$3({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new v(`app`,()=>this,`PUBLIC`))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw F.create(`app-deleted`,{appName:this._name})}};var pe$1=_o;function Tn$1(n,e={}){let t=n;typeof e!=`object`&&(e={name:e});let r=F$3({name:mn$2,automaticDataCollectionEnabled:!0},e),i=r.name;if(typeof i!=`string`||!i)throw F.create(`bad-app-name`,{appName:String(i)});if(t||(t=rn$1()),!t)throw F.create(`no-options`);let s=we.get(i);if(s)if(z(t,s.options)){if(z(r,s.config))return s;throw F.create(`duplicate-app`,{appName:i,mismatchedParam:`config`,oldValue:JSON.stringify(s.config),newValue:JSON.stringify(r)})}else throw F.create(`duplicate-app`,{appName:i,mismatchedParam:`options`,oldValue:JSON.stringify(s.options),newValue:JSON.stringify(t)});let o=new st$2(i);for(let u of gn$1.values())o.addComponent(u);let c=new In$2(t,r,o);return we.set(i,c),c}function Ae$1(n=mn$2){let e=we.get(n);if(!e&&n===mn$2&&rn$1())return Tn$1();if(!e)throw F.create(`no-app`,{appName:n});return e}function ct$3(){return Array.from(we.values())}function T$2(n,e,t){let r=Eo[n]??n;t&&(r+=`-${t}`);let i=r.match(/\s|\//),s=e.match(/\s|\//);if(i||s){let o=[`Unable to register library "${r}" with version "${e}":`];i&&o.push(`library name "${r}" contains illegal characters (whitespace or "/")`),i&&s&&o.push(`and`),s&&o.push(`version name "${e}" contains illegal characters (whitespace or "/")`),x$1.warn(o.join(` `));return}V(new v(`${r}-version`,()=>({library:r,version:e}),`VERSION`))}var yo=`firebase-heartbeat-database`;var Ao=1;var ye$2=`firebase-heartbeat-store`;var hn$1=null;function ni$1(){return hn$1||(hn$1=Yr$1(yo,Ao,{upgrade:(n,e)=>{switch(e){case 0:try{n.createObjectStore(ye$2)}catch(t){console.warn(t)}}}}).catch(n=>{throw F.create(`idb-open`,{originalErrorMessage:n.message})})),hn$1}function vo(n){return M$1(this,null,function*(){try{let t=(yield ni$1()).transaction(ye$2),r=yield t.objectStore(ye$2).get(ri$1(n));return yield t.done,r}catch(e){if(e instanceof S$1)x$1.warn(e.message);else{let t=F.create(`idb-get`,{originalErrorMessage:e?.message});x$1.warn(t.message)}}})}function Qr$1(n,e){return M$1(this,null,function*(){try{let r=(yield ni$1()).transaction(ye$2,`readwrite`);yield r.objectStore(ye$2).put(e,ri$1(n)),yield r.done}catch(t){if(t instanceof S$1)x$1.warn(t.message);else{let r=F.create(`idb-set`,{originalErrorMessage:t?.message});x$1.warn(r.message)}}})}function ri$1(n){return`${n.name}!${n.options.appId}`}var bo=1024;var ko=30;var _n$1=class{constructor(e){this.container=e,this._heartbeatsCache=null;let t=this.container.getProvider(`app`).getImmediate();this._storage=new En$1(t),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}triggerHeartbeat(){return M$1(this,null,function*(){try{let t=this.container.getProvider(`platform-logger`).getImmediate().getPlatformInfoString(),r=ei$1();if(this._heartbeatsCache?.heartbeats==null&&(this._heartbeatsCache=yield this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null)||this._heartbeatsCache.lastSentHeartbeatDate===r||this._heartbeatsCache.heartbeats.some(i=>i.date===r))return;if(this._heartbeatsCache.heartbeats.push({date:r,agent:t}),this._heartbeatsCache.heartbeats.length>ko){let i=Ro(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(i,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(e){x$1.warn(e)}})}getHeartbeatsHeader(){return M$1(this,null,function*(){try{if(this._heartbeatsCache===null&&(yield this._heartbeatsCachePromise),this._heartbeatsCache?.heartbeats==null||this._heartbeatsCache.heartbeats.length===0)return``;let e=ei$1(),{heartbeatsToSend:t,unsentEntries:r}=So(this._heartbeatsCache.heartbeats),i=tn$1(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,r.length>0?(this._heartbeatsCache.heartbeats=r,yield this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}catch(e){return x$1.warn(e),``}})}};function ei$1(){return(/* @__PURE__ */ new Date()).toISOString().substring(0,10)}function So(n,e=bo){let t=[],r=n.slice();for(let i of n){let s=t.find(o=>o.agent===i.agent);if(s){if(s.dates.push(i.date),ti$1(t)>e){s.dates.pop();break}}else if(t.push({agent:i.agent,dates:[i.date]}),ti$1(t)>e){t.pop();break}r=r.slice(1)}return{heartbeatsToSend:t,unsentEntries:r}}var En$1=class{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return M$1(this,null,function*(){return rt$1()?$r$1().then(()=>!0).catch(()=>!1):!1})}read(){return M$1(this,null,function*(){if(yield this._canUseIndexedDBPromise){let t=yield vo(this.app);return t?.heartbeats?t:{heartbeats:[]}}else return{heartbeats:[]}})}overwrite(e){return M$1(this,null,function*(){if(yield this._canUseIndexedDBPromise){let r=yield this.read();return Qr$1(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??r.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return})}add(e){return M$1(this,null,function*(){if(yield this._canUseIndexedDBPromise){let r=yield this.read();return Qr$1(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??r.lastSentHeartbeatDate,heartbeats:[...r.heartbeats,...e.heartbeats]})}else return})}};function ti$1(n){return tn$1(JSON.stringify({version:2,heartbeats:n})).length}function Ro(n){if(n.length===0)return-1;let e=0,t=n[0].date;for(let r=1;r<n.length;r++)n[r].date<t&&(t=n[r].date,e=r);return e}function Po(n){V(new v(`platform-logger`,e=>new fn$2(e),`PRIVATE`)),V(new v(`heartbeat`,e=>new _n$1(e),`PRIVATE`)),T$2(pn$1,Xr$2,n),T$2(pn$1,Xr$2,`esm2020`),T$2(`fire-js`,``)}Po(``);T$2(`firebase`,`12.19.0`,`app`);var ge=new Mo$2(`ANGULARFIRE2_VERSION`);function wn$1(n,e,t){if(e){if(e.length===1)return e[0];let r=e.filter(i=>i.app===t);if(r.length===1)return r[0]}return t.container.getProvider(n).getImmediate({optional:!0})}var lt$2=(n,e)=>{let t=e?[e]:ct$3(),r=[];return t.forEach(i=>{i.container.getProvider(n).instances.forEach(s=>{r.includes(s)||r.push(s)})}),r};var me=(function(n){return n[n.SILENT=0]=`SILENT`,n[n.WARN=1]=`WARN`,n[n.VERBOSE=2]=`VERBOSE`,n})(me||{});var ii$1=Q1()&&typeof Zone<`u`?me.WARN:me.SILENT;var si$1=class{zone;delegate;constructor(n,e=cm){this.zone=n,this.delegate=e}now(){return this.delegate.now()}schedule(n,e,t){let r=this.zone,i=function(s){r?r.runGuarded(()=>{n.apply(this,[s])}):n.apply(this,[s])};return this.delegate.schedule(i,e,t)}};var Ie=class ut{outsideAngular;insideAngular;constructor(){let t=E$2(Q$1);this.outsideAngular=t.runOutsideAngular(()=>new si$1(typeof Zone>`u`?void 0:Zone.current)),this.insideAngular=t.run(()=>new si$1(typeof Zone>`u`?void 0:Zone.current,st$4))}static ɵfac=function(r){return new(r||ut)};static ɵprov=ue$2({token:ut,factory:ut.ɵfac,providedIn:`root`})};var oi$1=!1;function Do(n,e){!oi$1&&(ii$1>me.SILENT||Q1())&&(oi$1=!0,console.warn(`Calling Firebase APIs outside of an Injection context may destabilize your application leading to subtle change-detection and hydration bugs. Find more at https://github.com/angular/angularfire/blob/main/docs/zones.md`)),ii$1>=e&&console.warn(`Firebase API called outside injection context: ${n.name}`)}function Lo(n){let e=E$2(Q$1,{optional:!0});return e?e.runOutsideAngular(()=>n()):n()}function Q(n){let e=E$2(Q$1,{optional:!0});return e?e.run(()=>n()):n()}var Mo=(n,e,t)=>(...r)=>(e&&setTimeout(e,0),Bo$2(t,()=>Q(()=>n.apply(void 0,r))));var ee=(n,e,t)=>(t||=e?me.WARN:me.VERBOSE,function(){let r,i=arguments,s,o,c;try{s=E$2(Ie),o=E$2(Oa$3),c=E$2(me$2)}catch(l){return Do(n,t),n.apply(this,i)}for(let l=0;l<arguments.length;l++)typeof i[l]==`function`&&(e&&(r||=Q(()=>o.add())),i[l]=Mo(i[l],r,c));let u=Lo(()=>n.apply(this,i));return e?u instanceof b$3?u.pipe(Qn$2(s.outsideAngular),zn$3(s.insideAngular),L$2(c)):u instanceof Promise?Q(()=>{let l=o.add();return new Promise((d,f)=>{u.then(m=>Bo$2(c,()=>Q(()=>d(m))),m=>Bo$2(c,()=>Q(()=>f(m)))).finally(l)})}):typeof u==`function`&&r?function(){return setTimeout(r,0),u.apply(this,arguments)}:Q(()=>u):u instanceof b$3?u.pipe(Qn$2(s.outsideAngular),zn$3(s.insideAngular)):Q(()=>u)});var ve$1=class{constructor(n){return n}};var yn$1=class{constructor(){return ct$3()}};function Uo(n){return n?.length===1?n[0]:new ve$1(Ae$1())}var An$1=new x$3(`angularfire2._apps`);var Fo={provide:ve$1,useFactory:Uo,deps:[[new cv,An$1]]};var xo={provide:yn$1,deps:[[new cv,An$1]]};function Vo(n){return(e,t)=>{let r=t.get(by);return T$2(`angularfire`,ge.full,`core`),T$2(`angularfire`,ge.full,`app`),T$2(`angular`,Eu.full,r.toString()),new ve$1(e.runOutsideAngular(()=>n(t)))}}function Gl(n,...e){return Ho$2([Fo,xo,{provide:An$1,useFactory:Vo(n),multi:!0,deps:[Q$1,le$1,Ie,...e]}])}var Jl=ee(Tn$1,!0);var $o=/* @__PURE__ */ new Map;var Wo={activated:!1,tokenObservers:[]};var Ho={initialized:!1,enabled:!1};function C$1(n){return $o.get(n)||F$3({},Wo)}function li$1(){return Ho}var Bo=`https://content-firebaseappcheck.googleapis.com/v1`;var zo=`exchangeDebugToken`;var ai$1={RETRIAL_MIN_WAIT:3e4,RETRIAL_MAX_WAIT:96e4};var kn=class{constructor(e,t,r,i,s){if(this.operation=e,this.retryPolicy=t,this.getWaitDuration=r,this.lowerBound=i,this.upperBound=s,this.pending=null,this.nextErrorWaitInterval=i,i>s)throw new Error(`Proactive refresh lower bound greater than upper bound!`)}start(){this.nextErrorWaitInterval=this.lowerBound,this.process(!0).catch(()=>{})}stop(){this.pending&&(this.pending.reject(`cancelled`),this.pending=null)}isRunning(){return!!this.pending}process(e){return M$1(this,null,function*(){this.stop();try{this.pending=new M,this.pending.promise.catch(t=>{}),yield jo(this.getNextRun(e)),this.pending.resolve(),yield this.pending.promise,this.pending=new M,this.pending.promise.catch(t=>{}),yield this.operation(),this.pending.resolve(),yield this.pending.promise,this.process(!0).catch(()=>{})}catch(t){this.retryPolicy(t)?this.process(!1).catch(()=>{}):this.stop()}})}getNextRun(e){if(e)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{let t=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),t}}};function jo(n){return new Promise(e=>{setTimeout(e,n)})}var q=new R$1(`appCheck`,`AppCheck`,{"already-initialized":`You have already called initializeAppCheck() for FirebaseApp {$appName} with different options. To avoid this error, call initializeAppCheck() with the same options as when it was originally called. This will return the already initialized instance.`,"use-before-activation":`App Check is being used before initializeAppCheck() is called for FirebaseApp {$appName}. Call initializeAppCheck() before instantiating other Firebase services.`,"fetch-network-error":`Fetch failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.`,"fetch-parse-error":`Fetch client could not parse response. Original error: {$originalErrorMessage}.`,"fetch-status-error":`Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.`,"storage-open":`Error thrown when opening storage. Original error: {$originalErrorMessage}.`,"storage-get":`Error thrown when reading from storage. Original error: {$originalErrorMessage}.`,"storage-set":`Error thrown when writing to storage. Original error: {$originalErrorMessage}.`,"recaptcha-error":`ReCAPTCHA error.`,"initial-throttle":`{$httpStatus} error. Attempts allowed again after {$time}`,throttled:`Requests throttled due to previous {$httpStatus} error. Attempts allowed again after {$time}`});function di$1(n){if(!C$1(n).activated)throw q.create(`use-before-activation`,{appName:n.name})}function hi$1(r,i){return M$1(this,arguments,function*({url:n,body:e},t){let s={"Content-Type":`application/json`},o=t.getImmediate({optional:!0});if(o){let _=yield o.getHeartbeatsHeader();_&&(s[`X-Firebase-Client`]=_)}let c={method:`POST`,body:JSON.stringify(e),headers:s},u;try{u=yield fetch(n,c)}catch(_){throw q.create(`fetch-network-error`,{originalErrorMessage:_?.message})}if(u.status!==200)throw q.create(`fetch-status-error`,{httpStatus:u.status});let l;try{l=yield u.json()}catch(_){throw q.create(`fetch-parse-error`,{originalErrorMessage:_?.message})}let d=l.ttl.match(/^([\d.]+)(s)$/);if(!d||!d[2]||isNaN(Number(d[1])))throw q.create(`fetch-parse-error`,{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${l.ttl}`});let f=Number(d[1])*1e3,m=Date.now();return{token:l.token,expireTimeMillis:m+f,issuedAtTimeMillis:m}})}function fi$1(n,e){let{projectId:t,appId:r,apiKey:i}=n.options;return{url:`${Bo}/projects/${t}/apps/${r}:${zo}?key=${i}`,body:{debug_token:e}}}var Ko=`firebase-app-check-database`;var Go=1;var Sn$1=`firebase-app-check-store`;var dt$2=null;function Jo(){return dt$2||(dt$2=new Promise((n,e)=>{try{let t=indexedDB.open(Ko,Go);t.onsuccess=r=>{n(r.target.result)},t.onerror=r=>{e(q.create(`storage-open`,{originalErrorMessage:r.target.error?.message}))},t.onupgradeneeded=r=>{let i=r.target.result;r.oldVersion===0&&i.createObjectStore(Sn$1,{keyPath:`compositeKey`})}}catch(t){e(q.create(`storage-open`,{originalErrorMessage:t?.message}))}}),dt$2)}function Yo(n,e){return Xo(Zo(n),e)}function Xo(n,e){return M$1(this,null,function*(){let r=(yield Jo()).transaction(Sn$1,`readwrite`),s=r.objectStore(Sn$1).put({compositeKey:n,value:e});return new Promise((o,c)=>{s.onsuccess=u=>{o()},r.onerror=u=>{c(q.create(`storage-set`,{originalErrorMessage:u.target.error?.message}))}})})}function Zo(n){return`${n.options.appId}-${n.name}`}var be$1=new j(`@firebase/app-check`);function vn$1(n,e){return rt$1()?Yo(n,e).catch(t=>{be$1.warn(`Failed to write token to IndexedDB. Error: ${t}`)}):Promise.resolve()}function pi$1(){return li$1().enabled}function mi$1(){return M$1(this,null,function*(){let n=li$1();if(n.enabled&&n.token)return n.token.promise;throw Error(`
|
|
1
|
+
import{$ as ua$3,A as _r$1,C as Ud,D as Xi$3,E as Vl,F as fh,H as lc$1,I as fn$3,J as rs$3,M as as$3,P as dh$1,R as hh,T as Va$3,Y as sc$1,Z as te$2,_ as Ps$2,a as Fs$2,at as xh,d as Ke$4,f as La$3,g as Pa$2,l as Ht$3,m as Mi$3,n as Ec$1,ot as xs$1,q as pr$1,r as Er$1,rt as xa$3,t as Ah$1,v as Rs$2,x as Te$3,y as Si$3}from"./chunk-CtdBLXrI.js";import{$ as Jw,$r as st$4,$t as Vn$3,A as Eu,Ai as L$4,An as dr$2,Ar as mv,At as Qm,Bn as fd$1,Br as pl,Bt as Sm,C as Dm,Ci as zu,Cn as by,Cr as lm,Ct as Pm,D as Eh,Di as I$1,Dn as cm,Dr as ml,Dt as Q1,E as E$2,En as cl,Et as Q$1,F as Fr$2,Fn as ee$2,Fr as od$1,Ft as Rh,G as He$3,Gn as fs$1,Gr as qe$1,Gt as Tm,H as Gu,Hn as fl,Hr as q$1,Ht as Te$4,I as Fw,In as ei$3,Ir as oi$3,It as Rm,J as Ih,Jt as Ty,K as Ho$2,Kn as fw,Kr as qh,L as G$2,Ln as en$3,Lr as ov,M as Fb,Mn as eD,Mr as nE,Mt as Qr$3,Nn as eE,Nr as nu,Nt as R1,Oi as J$2,On as cv,Or as mp,P as Fm,Pn as eb,Pr as oE,Q as Jn$2,Qr as sm,R as G1,Rn as ep,Rr as ow,Rt as Sf,S as Db,Si as zn$3,St as Pi$3,Ti as G$1,Tn as cg,Tr as me$2,Tt as Pw,U as H1,Un as fm,Ur as q1,Ut as Tg,V as Gh,Vr as pm,Vt as Tb,W as Hb,Wn as fn$4,Wt as Th,X as Jh,Xn as gs$1,Xr as rm,Xt as Vg,Y as Im,Yt as U1,Z as Ji$3,Zn as gv,Zr as ru$1,Zt as Vh$1,_ as Cb,_i as yb,_n as b$3,_r as kh,_t as Ow,a as $h,ai as ue$2,an as Xh,ar as hw,at as Mh,bi as zh$1,br as kw,bt as Pb,c as Ah$2,cr as it$3,d as B1,di as vw,ei as ti$3,en as Vw,er as hd$1,et as Kn$2,f as BD,fn as Zr$3,fr as jw,ft as O1,g as Br$3,gi as x$3,gn as _h,gr as ke$1,gt as Om,h as Bo$2,ht as Oh$1,i as $e$1,ii as ub,in as Wh$1,j as F1,ji as M$1,jn as ds$3,jr as mw,jt as Qn$2,k as Et$3,ki as K$1,kr as ms$2,li as vs$2,lr as j1,m as Bh,mi as wm,mn as _$1,mt as Ob,n as $D,nn as W1,nr as hl,o as Ab,or as iI,ot as Mm,p as Be$2,pi as wi$3,pr as k1,pt as Oa$3,q as Ie$2,qn as gb,qr as ql,qt as Tw,r as $b,ri as tu$1,rn as WD,rr as hs$1,rt as Lm,s as Ae$3,si as um,sn as Xn$2,sr as im,st as Mo$2,tn as Vy,tr as hg,tt as L1,u as Aw,ui as vt$3,un as Ze$1,ur as jD,ut as Nm,v as Cg,vi as yw,vn as bb,vr as km,vt as P1,w as Du,wi as F$3,wn as cc$1,wr as mb,wt as Pr$1,x as Cy,xr as le$1,xt as Ph,yi as z1,yn as be$3,yt as PD,z as GD,zn as er$3,zt as Sh$1}from"./chunk-LD3k3Loy.js";import{$ as gl,C as Nu,Dt as yi$3,I as Wl,J as dl,L as Xi$4,M as To$2,Mt as zr$2,N as Ul,O as Su,Ot as yl,Q as gd$1,R as Yi$3,U as ad$1,X as fe$1,Y as el$1,Z as fl$1,_t as so$1,b as Kr$3,ct as ml$1,d as Do$2,dt as qa$3,et as hd$2,ft as qu,g as Fs$3,gt as sl,h as Fo$2,k as Tc$1,l as Bo$3,mt as rp,nt as it$4,o as Ao$2,p as Eo$2,q as ct$5,r as Ac$1,rt as ja$3,s as At$4,st as md$1,tt as hl$1,v as Il,vt as tu$2,w as Ol,wt as vu,xt as vc$1,yt as ui$3,z as Ze$2}from"./chunk-CZtkF-WL.js";import{a as et$1,c as nt$3,i as ct$6,l as ot$3,n as O$1,o as it$5,r as at$4,s as k,t as C$2}from"./chunk-DAfeU1o0.js";var r$1=(function(s){return s[s.State=0]=`State`,s[s.Transition=1]=`Transition`,s[s.Sequence=2]=`Sequence`,s[s.Group=3]=`Group`,s[s.Animate=4]=`Animate`,s[s.Keyframes=5]=`Keyframes`,s[s.Style=6]=`Style`,s[s.Trigger=7]=`Trigger`,s[s.Reference=8]=`Reference`,s[s.AnimateChild=9]=`AnimateChild`,s[s.AnimateRef=10]=`AnimateRef`,s[s.Query=11]=`Query`,s[s.Stagger=12]=`Stagger`,s})(r$1||{});function a(s,t){return{type:r$1.Trigger,name:s,definitions:t,options:{}}}function c$1(s,t=null){return{type:r$1.Animate,styles:t,timings:s}}function y$2(s,t=null){return{type:r$1.Sequence,steps:s,options:t}}function F$2(s){return{type:r$1.Style,styles:s,offset:null}}function S$2(s,t,e){return{type:r$1.State,name:s,styles:t,options:e}}function g$2(s){return{type:r$1.Keyframes,steps:s}}function D$2(s,t,e=null){return{type:r$1.Transition,expr:s,animation:t,options:e}}var l=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(t=0,e=0){this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let e=t==`start`?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}};var u$1=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(t){this.players=t;let e=0,n=0,o=0,h=this.players.length;h==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(i=>{i.onDone(()=>{++e==h&&this._onFinish()}),i.onDestroy(()=>{++n==h&&this._onDestroy()}),i.onStart(()=>{++o==h&&this._onStart()})}),this.totalTime=this.players.reduce((i,f)=>Math.max(i,f.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let e=t*this.totalTime;this.players.forEach(n=>{let o=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(o)})}getPosition(){let t=this.players.reduce((e,n)=>e===null||n.totalTime>e.totalTime?n:e,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let e=t==`start`?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}};var e={production:!0,firebaseConfig:{apiKey:`AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw`,authDomain:`auth.dealpos.com`,projectId:`devops-signin`,storageBucket:`devops-signin.appspot.com`,messagingSenderId:`412465165194`,appId:`1:412465165194:web:03d806f6b6ab6f8b460e73`,measurementId:`G-MNDBRJ5XZD`},version:`26.46.3`,PRIMEUI_LICENSE_KEY:`eyJpZCI6IjgxNTc1ZWZhLWI4ZjAtNDIwYi1hNzdkLTMxYmY5MWY0OGQzYyIsInByb2R1Y3QiOiJwcmltZXVpIiwidGllciI6ImNvbW11bml0eSIsInR5cGUiOiJkZXYiLCJpYXQiOjE3OTA4MjI3NjcsImV4cCI6MTgyMjM1ODc2N30.SJhoTx2geJUwkCMOZUrMn75YMe6bxSRZ4Yy9DwhzeZu4_yaEc0U4BFlP2w23E1HDjUpeo-Zuoqaxi8zO-6bTAg`};var g$1=`primary`;var rt$2=Symbol(`RouteTitle`);var Cn$2=class{params;constructor(n){this.params=n||{}}has(n){return Object.hasOwn(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function ye$3(t){return new Cn$2(t)}function mn$3(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===`:`)e[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function Yr$2(t,n,e){let r=e.path.split(`/`),i=r.indexOf(`**`);if(i===-1){if(r.length>t.length||e.pathMatch===`full`&&(n.hasChildren()||r.length<t.length))return null;let s={},u=t.slice(0,r.length);return mn$3(r,u,s)?{consumed:u,posParams:s}:null}if(i!==r.lastIndexOf(`**`))return null;let o=r.slice(0,i),a=r.slice(i+1);if(o.length+a.length>t.length||e.pathMatch===`full`&&n.hasChildren()&&e.path!==`**`)return null;let c={};return!mn$3(o,t.slice(0,o.length),c)||!mn$3(a,t.slice(t.length-a.length),c)?null:{consumed:t,posParams:c}}function Et$2(t){return new Promise((n,e)=>{t.pipe(nu()).subscribe({next:r=>n(r),error:r=>e(r)})})}function co$1(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!J$1(t[e],n[e]))return!1;return!0}function J$1(t,n){let e=t?bn$2(t):void 0,r=n?bn$2(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!Jr$2(t[i],n[i]))return!1;return!0}function bn$2(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Jr$2(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function uo$1(t){return t.length>0?t[t.length-1]:null}function it$2(t){return um(t)?t:cl(t)?Ae$3(Promise.resolve(t)):ds$3(t)}function Xr$3(t){return um(t)?Et$2(t):Promise.resolve(t)}var lo$1={exact:ei$2,subset:ti$2};var Zr$2={exact:ho$1,subset:fo$1,ignored:()=>!0};var $n$1={paths:`exact`,fragment:`ignored`,matrixParams:`ignored`,queryParams:`exact`};var Ae$2={paths:`subset`,fragment:`ignored`,matrixParams:`ignored`,queryParams:`subset`};function Fn$2(t,n,e){let r=t instanceof _?t:n.parseUrl(t);return Hb(()=>Dt$2(n.lastSuccessfulNavigation()?.finalUrl??new _,r,e))}function Dt$2(t,n,e){let r=F$3(F$3({},Ae$2),e||{});return lo$1[r.paths](t.root,n.root,r.matrixParams)&&Zr$2[r.queryParams](t.queryParams,n.queryParams)&&!(r.fragment===`exact`&&t.fragment!==n.fragment)}function ho$1(t,n){return J$1(t,n)}function ei$2(t,n,e){if(!me$1(t.segments,n.segments)||!bt$2(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!ei$2(t.children[r],n.children[r],e))return!1;return!0}function fo$1(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Jr$2(t[e],n[e]))}function ti$2(t,n,e){return ni$2(t,n,n.segments,e)}function ni$2(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!me$1(i,e)||n.hasChildren()||!bt$2(i,e,r))}else if(t.segments.length===e.length){if(!me$1(t.segments,e)||!bt$2(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!ti$2(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!me$1(t.segments,i)||!bt$2(t.segments,i,r)||!t.children[g$1]?!1:ni$2(t.children[g$1],n,o,r)}}function bt$2(t,n,e){return n.every((r,i)=>Zr$2[e](t[i].parameters,r.parameters))}var _=class{root;queryParams;fragment;_queryParamMap;constructor(n=new y$1([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=ye$3(this.queryParams),this._queryParamMap}toString(){return mo$1.serialize(this)}};var y$1=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return It$2(this)}};var ae$1=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=ye$3(this.parameters),this._parameterMap}toString(){return ii$2(this)}};function po$1(t,n){return me$1(t,n)&&t.every((e,r)=>J$1(e.parameters,n[r].parameters))}function me$1(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function go$1(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===g$1&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==g$1&&(e=e.concat(n(i,r)))}),e}var de$1=(()=>{class t{static ɵfac=function(r){return new(r||t)};static ɵprov=en$3({token:t,factory:()=>new ne$3})}return t})();var ne$3=class{parse(n){let e=new Mn$2(n);return new _(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${be$2(n.root,!0)}`;vo$1(e)&&(e=`/`);let r=wo(n.queryParams),i=typeof n.fragment==`string`?`#${So$1(n.fragment)}`:``;return`${e}${r}${i}`}};var Hr$2=`http://fake`;function vo$1(t){try{let n=new URL(t,Hr$2);return n.origin!==Hr$2||n.pathname.startsWith(`//`)}catch(n){return!0}}var mo$1=new ne$3;function It$2(t){return t.segments.map(n=>ii$2(n)).join(`/`)}function be$2(t,n){if(!t.hasChildren())return It$2(t);if(n){let e=t.children[g$1]?be$2(t.children[g$1],!1):``,r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==g$1&&r.push(`${i}:${be$2(o,!1)}`)}),r.length>0?`${e}(${r.join(`//`)})`:e}else{if(Object.keys(t.children).length===1&&t.children[g$1]!=null)return`${It$2(t)}/${be$2(t.children[g$1],!1)}`;let e=go$1(t,(r,i)=>i===g$1?[yo$1(be$2(t.children[g$1],!1))]:[`${i}:${be$2(r,!1)}`]);return`${It$2(t)}/(${e.join(`//`)})`}}function yo$1(t){return t.replace(oi$2,n=>n.replace(/:/g,`%3A`))}function ri$2(t){return encodeURIComponent(t).replace(/%40/g,`@`).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`)}function wt$3(t){return ri$2(t).replace(/%3B/gi,`;`)}function So$1(t){return encodeURI(t)}function In$3(t){return ri$2(t).replace(/\(/g,`%28`).replace(/\)/g,`%29`).replace(/%26/gi,`&`)}function Mt$2(t){return decodeURIComponent(t)}function Br$2(t){return Mt$2(t.replace(/\+/g,`%20`))}function ii$2(t){return`${In$3(t.path)}${Ro$1(t.parameters)}`}function Ro$1(t){return Object.entries(t).map(([n,e])=>`;${In$3(n)}=${In$3(e)}`).join(``)}function wo(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${wt$3(e)}=${wt$3(i)}`).join(`&`):`${wt$3(e)}=${wt$3(r)}`).filter(e=>e);return n.length?`?${n.join(`&`)}`:``}var yn$2=1073741824;function At$3(t,n,e){Number(n)>=32&&!Object.hasOwn(t,yn$2)&&(t[yn$2]=e,delete t[yn$2]),t[n]=e}var oi$2=/^[^\/()?;#]+/;function Sn$2(t){let n=t.match(oi$2);return n?n[0]:``}var Co=/^[^\/()?;=#]+/;function bo$1(t){let n=t.match(Co);return n?n[0]:``}var Io$1=/^[^=?&#]+/;function Mo$1(t){let n=t.match(Io$1);return n?n[0]:``}var Eo$1=/^[^&#]+/;function Do$1(t){let n=t.match(Eo$1);return n?n[0]:``}var Mn$2=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){for(;this.consumeOptional(`/`););return this.remaining===``||this.peekStartsWith(`?`)||this.peekStartsWith(`#`)?new y$1([],{}):new y$1([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional(`?`))do this.parseQueryParam(n);while(this.consumeOptional(`&`));return n}parseFragment(){return this.consumeOptional(`#`)?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new _$1(4010,!1);if(this.remaining===``)return{};this.consumeOptional(`/`);let e=[];for(this.peekStartsWith(`(`)||e.push(this.parseSegment());this.peekStartsWith(`/`)&&!this.peekStartsWith(`//`)&&!this.peekStartsWith(`/(`);)this.capture(`/`),e.push(this.parseSegment());let r={};this.peekStartsWith(`/(`)&&(this.capture(`/`),r=this.parseParens(!0,n));let i={};return this.peekStartsWith(`(`)&&(i=this.parseParens(!1,n)),(e.length>0||Object.keys(r).length>0)&&(i[g$1]=new y$1(e,r)),i}parseSegment(){let n=Sn$2(this.remaining);if(n===``&&this.peekStartsWith(`;`))throw new _$1(4009,!1);return this.capture(n),new ae$1(Mt$2(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(`;`);)this.parseParam(n);return n}parseParam(n){let e=bo$1(this.remaining);if(!e)return;this.capture(e);let r=``;if(this.consumeOptional(`=`)){let i=Sn$2(this.remaining);i&&(r=i,this.capture(r))}At$3(n,Mt$2(e),Mt$2(r))}parseQueryParam(n){let e=Mo$1(this.remaining);if(!e)return;this.capture(e);let r=``;if(this.consumeOptional(`=`)){let a=Do$1(this.remaining);a&&(r=a,this.capture(r))}let i=Br$2(e),o=Br$2(r);if(Object.hasOwn(n,i)){let a=n[i];Array.isArray(a)||(a=[a],n[i]=a),a.push(o)}else n[i]=o}parseParens(n,e){let r=Object.create(null);for(this.capture(`(`);!this.consumeOptional(`)`)&&this.remaining.length>0;){let i=Sn$2(this.remaining),o=this.remaining[i.length];if(o!==`/`&&o!==`)`&&o!==`;`)throw new _$1(4010,!1);let a;i.indexOf(`:`)>-1?(a=i.slice(0,i.indexOf(`:`)),this.capture(a),this.capture(`:`)):n&&(a=g$1);let c=this.parseChildren(e+1),s=Object.keys(c).length===1&&c[g$1]?c[g$1]:new y$1([],c);At$3(r,a??g$1,s),this.consumeOptional(`//`)}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new _$1(4011,!1)}};function ai$2(t){return t.segments.length>0?new y$1([],{[g$1]:t}):t}function si$2(t){let n=Object.create(null);for(let[r,i]of Object.entries(t.children)){let o=si$2(i);if(r===g$1&&o.segments.length===0&&o.hasChildren())for(let[a,c]of Object.entries(o.children))At$3(n,a,c);else(o.segments.length>0||o.hasChildren())&&At$3(n,r,o)}return Ao$1(new y$1(t.segments,n))}function Ao$1(t){if(t.numberOfChildren===1&&t.children[g$1]){let n=t.children[g$1];return new y$1(t.segments.concat(n.segments),n.children)}return t}function se$1(t){return t instanceof _}function ci$2(t,n,e=null,r=null,i=new ne$3){return li$2(ui$2(t),n,e,r,i)}function ui$2(t){let n;function e(o){let a={};for(let s of o.children){let u=e(s);a[s.outlet]=u}let c=new y$1(o.url,a);return o===t&&(n=c),c}let i=ai$2(e(t.root));return n??i}function li$2(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return Rn$2(o,o,o,e,r,i);let a=To$1(n);if(a.toRoot())return Rn$2(o,o,new y$1([],{}),e,r,i);let c=Po$1(a,o,t),s=c.processChildren?We$1(c.segmentGroup,c.index,a.commands):hi$2(c.segmentGroup,c.index,a.commands);return Rn$2(o,c.segmentGroup,s,e,r,i)}function Tt$2(t){return typeof t==`object`&&t!=null&&!t.outlets&&!t.segmentPath}function Ye(t){return typeof t==`object`&&t!=null&&t.outlets}function Kr$2(t,n,e){t||=`ɵ`;let r=new _;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function Rn$2(t,n,e,r,i,o){let a={};for(let[u,d]of Object.entries(r??{}))d!=null&&(a[u]=Array.isArray(d)?d.map(p=>Kr$2(u,p,o)):Kr$2(u,d,o));let c;t===n?c=e:c=di$2(t,n,e);return new _(ai$2(si$2(c)),a,i)}function di$2(t,n,e){let r=Object.create(null);return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=di$2(o,n,e)}),new y$1(t.segments,r)}var Pt$2=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&Tt$2(r[0]))throw new _$1(4003,!1);let i=r.find(Ye);if(i&&i!==uo$1(r))throw new _$1(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]==`/`}};function To$1(t){if(typeof t[0]==`string`&&t.length===1&&t[0]===`/`)return new Pt$2(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,a)=>{if(typeof o==`object`&&o!=null){if(o.outlets){let c={};return Object.entries(o.outlets).forEach(([s,u])=>{c[s]=typeof u==`string`?u.split(`/`):u}),[...i,{outlets:c}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!=`string`?[...i,o]:a===0?(o.split(`/`).forEach((c,s)=>{s==0&&c===`.`||(s==0&&c===``?e=!0:c===`..`?n++:c!=``&&i.push(c))}),i):[...i,o]},[]);return new Pt$2(e,n,r)}var Me$1=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function Po$1(t,n,e){if(t.isAbsolute)return new Me$1(n,!0,0);if(!e)return new Me$1(n,!1,NaN);if(e.parent===null)return new Me$1(e,!0,0);let r=Tt$2(t.commands[0])?0:1;return No(e,e.segments.length-1+r,t.numberOfDoubleDots)}function No(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new _$1(4005,!1);i=r.segments.length}return new Me$1(r,!1,i-o)}function _o$1(t){return Ye(t[0])?t[0].outlets:{[g$1]:t}}function hi$2(t,n,e){if(t??=new y$1([],{}),t.segments.length===0&&t.hasChildren())return We$1(t,n,e);let r=Uo$1(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new y$1(t.segments.slice(0,r.pathIndex),{});return o.children[g$1]=new y$1(t.segments.slice(r.pathIndex),t.children),We$1(o,0,i)}else return r.match&&i.length===0?new y$1(t.segments,{}):r.match&&!t.hasChildren()?En$2(t,n,e):r.match?We$1(t,0,i):En$2(t,n,e)}function We$1(t,n,e){if(e.length===0)return new y$1(t.segments,{});{let r=_o$1(e),i=Object.create(null);if(Object.keys(r).some(o=>o!==g$1)&&t.children[g$1]&&t.numberOfChildren===1&&t.children[g$1].segments.length===0){let o=We$1(t.children[g$1],n,e);return new y$1(t.segments,o.children)}return Object.entries(r).forEach(([o,a])=>{typeof a==`string`&&(a=[a]),a!==null&&(i[o]=hi$2(t.children[o],n,a))}),Object.entries(t.children).forEach(([o,a])=>{r[o]===void 0&&(i[o]=a)}),new y$1(t.segments,i)}}function Uo$1(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let a=t.segments[i],c=e[r];if(Ye(c))break;let s=`${c}`,u=r<e.length-1?e[r+1]:null;if(i>0&&s===void 0)break;if(s&&u&&typeof u==`object`&&u.outlets===void 0){if(!Wr$2(s,u,a))return o;r+=2}else{if(!Wr$2(s,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function En$2(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(Ye(o))return new y$1(r,Oo(o.outlets));if(i===0&&Tt$2(e[0])){let s=t.segments[n];r.push(new ae$1(s.path,Vr$2(e[0]))),i++;continue}let a=Ye(o)?o.outlets[g$1]:`${o}`,c=i<e.length-1?e[i+1]:null;a&&c&&Tt$2(c)?(r.push(new ae$1(a,Vr$2(c))),i+=2):(r.push(new ae$1(a,{})),i++)}return new y$1(r,{})}function Oo(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r==`string`&&(r=[r]),r!==null&&(n[e]=En$2(new y$1([],{}),0,r))}),n}function Vr$2(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function Wr$2(t,n,e){return t==e.path&&J$1(n,e.parameters)}var Nt$3=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new ce$2(this.rootInjector)}resetChildren(){this.children=new ce$2(this.rootInjector)}};var ce$2=(()=>{class t{rootInjector;contexts=/* @__PURE__ */ new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=/* @__PURE__ */ new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Nt$3(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static ɵfac=function(r){return new(r||t)(ke$1(me$2))};static ɵprov=ue$2({token:t,factory:t.ɵfac,providedIn:`root`})}return t})();var _t$2=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=Dn$3(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Dn$3(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=An$2(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return An$2(n,this._root).map(e=>e.value)}};function Dn$3(t,n){if(t===n.value)return n;for(let e of n.children){let r=Dn$3(t,e);if(r)return r}return null}function An$2(t,n){if(t===n.value)return[n];for(let e of n.children){let r=An$2(t,e);if(r.length)return r.unshift(n),r}return[]}var N$1=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function Ie$1(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var Je=class extends _t$2{snapshot;constructor(n,e){super(n),this.snapshot=e,qn$1(this,n)}toString(){return this.snapshot.toString()}};function fi$2(t,n){let e=xo$1(t,n),r=new Kn$2([new ae$1(``,{})]),i=new Kn$2({}),o=new Kn$2({}),s=new Z$1(r,i,new Kn$2({}),new Kn$2(``),o,g$1,t,e.root);return s.snapshot=e.root,new Je(new N$1(s,[]),e)}function xo$1(t,n){return new Xe$1(``,new N$1(new Te$2([],{},{},``,{},g$1,t,null,{},n),[]))}var Z$1=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;resources;_localInjector;pending;paramsSignal;queryParamsSignal;paramMapSignal;queryParamMapSignal;fragmentSignal;dataSignal;constructor(n,e,r,i,o,a,c,s){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=a,this.component=c,this._futureSnapshot=s,this.title=this.dataSubject?.pipe(it$3(u=>u[rt$2]))??ds$3(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(it$3(n=>ye$3(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(it$3(n=>ye$3(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}_setPending(n){this._futureSnapshot=n,this.pending?.set(!0)}};var jo$1=`always`;function zn$2(t,n,e){let r,{routeConfig:i}=t;return n!==null&&(e===`always`||i?.path===``||!n.component&&!n.routeConfig?.loadComponent)?r={params:Object.keys(t.params).length===0?n.params:Object.freeze(F$3(F$3({},n.params),t.params)),data:Object.freeze(F$3(F$3({},n.data),t.data)),resolve:F$3(F$3(F$3(F$3({},t.data),n.data),i?.data),t._resolvedData)}:r={params:Object.freeze(F$3({},t.params)),data:Object.freeze(F$3({},t.data)),resolve:F$3(F$3({},t.data),t._resolvedData??{})},i&&gi$2(i)&&(r.resolve[rt$2]=i.title),r}var Te$2=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;resources;get title(){return this.data?.[rt$2]}constructor(n,e,r,i,o,a,c,s,u,d){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=c,this.routeConfig=s,this._resolve=u,this._environmentInjector=d}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??=ye$3(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ye$3(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join(`/`)}', path:'${this.routeConfig?this.routeConfig.path:``}')`}};var Xe$1=class extends _t$2{url;constructor(n,e){super(e),this.url=n,qn$1(this,e)}toString(){return pi$2(this._root)}};function qn$1(t,n){n.value._routerState=t,n.children.forEach(e=>qn$1(t,e))}function pi$2(t){let n=t.children.length>0?` { ${t.children.map(pi$2).join(`, `)} } `:``;return`${t.value}${n}`}function wn$2(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,J$1(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),J$1(n.params,e.params)||t.paramsSubject.next(e.params),co$1(n.url,e.url)||t.urlSubject.next(e.url),J$1(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Tn$2(t,n){let e=J$1(t.params,n.params)&&po$1(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||Tn$2(t.parent,n.parent))}function gi$2(t){return typeof t.title==`string`||t.title===null}var vi$2=new x$3(``);var Hn$1=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=g$1;activateEvents=new qe$1;deactivateEvents=new qe$1;attachEvents=new qe$1;detachEvents=new qe$1;routerOutletData=k1();parentContexts=E$2(ce$2);location=E$2(Ji$3);changeDetector=E$2(H1);inputBinder=E$2(ot$2,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new _$1(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new _$1(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new _$1(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this,this.location.injector),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.inputBinder?.unsubscribeFromRouteData(this),this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new _$1(4013,!1);this._activatedRoute=e;let i=this.location,a=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,s=new Pn$2(e,c,i.injector,this.routerOutletData);this.activated=i.createComponent(a,{index:i.length,injector:s,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this,this.location.injector),this.activateEvents.emit(this.activated.instance)}static ɵfac=function(r){return new(r||t)};static ɵdir=BD({type:t,selectors:[[`router-outlet`]],inputs:{name:`name`,routerOutletData:[1,`routerOutletData`]},outputs:{activateEvents:`activate`,deactivateEvents:`deactivate`,attachEvents:`attach`,detachEvents:`detach`},exportAs:[`outlet`],features:[Vy]})}return t})();var Pn$2=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===Z$1?this.route:n===ce$2?this.childContexts:n===vi$2?this.outletData:this.parent.get(n,e)}};var ot$2=new x$3(``);var mi$2=(()=>{class t{options;feature;outletDataSubscriptions=/* @__PURE__ */ new Map;outletSeenKeys=/* @__PURE__ */ new Map;outletEffects=/* @__PURE__ */ new Map;constructor(e,r=null){this.options=e,this.feature=r,this.options.queryParams??=!0}bindActivatedRouteToOutletComponent(e,r){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e,r)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e),this.outletSeenKeys.delete(e),this.outletEffects.get(e)?.forEach(r=>r.destroy()),this.outletEffects.delete(e)}subscribeToRouteData(e,r){let{activatedRoute:i}=e,o=[],a=[];if(this.feature?.createResourceOutletBindingEffects&&e.activatedComponentRef){let{handledKeys:s,createdEffects:u}=this.feature.createResourceOutletBindingEffects(e.activatedComponentRef,i);o.push(...u),a=s}o.length>0&&this.outletEffects.set(e,o);let c=rm([this.options.queryParams?i.queryParams:ds$3({}),i.params,i.data]).pipe(Pm(([s,u,d],p)=>(d=F$3(F$3(F$3(F$3({},s),u),d),i.resources),p===0?ds$3(d):Promise.resolve(d)))).subscribe(s=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let u=z1(i.component);if(!u){this.unsubscribeFromRouteData(e);return}let d=this.outletSeenKeys.get(e);d||(d=/* @__PURE__ */ new Set,this.outletSeenKeys.set(e,d));for(let f of Object.keys(s))d.add(f);let p=this.options.unmatchedInputBehavior??`alwaysUndefined`;for(let{templateName:f}of u.inputs){if(a.includes(f))continue;let R=s[f];(R!==void 0||p===`alwaysUndefined`||d.has(f))&&e.activatedComponentRef.setInput(f,R)}});this.outletDataSubscriptions.set(e,c)}static ɵfac=function(r){eD()};static ɵprov=ue$2({token:t,factory:t.ɵfac})}return t})();var Bn$2=(()=>{class t{static ɵfac=function(r){return new(r||t)};static ɵcmp=PD({type:t,selectors:[[`ng-component`]],exportAs:[`emptyRouterOutlet`],decls:1,vars:0,template:function(r,i){r&1&&Oh$1(0,`router-outlet`)},dependencies:[Hn$1],encapsulation:2,changeDetection:1})}return t})();function Kn$1(t){let n=t.children&&t.children.map(Kn$1),e=n?G$1(F$3({},t),{children:n}):F$3({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==g$1&&(e.component=Bn$2),e}var Ee$1=`imperative`;var b$2=(function(t){return t[t.NavigationStart=0]=`NavigationStart`,t[t.NavigationEnd=1]=`NavigationEnd`,t[t.NavigationCancel=2]=`NavigationCancel`,t[t.NavigationError=3]=`NavigationError`,t[t.RoutesRecognized=4]=`RoutesRecognized`,t[t.ResolveStart=5]=`ResolveStart`,t[t.ResolveEnd=6]=`ResolveEnd`,t[t.GuardsCheckStart=7]=`GuardsCheckStart`,t[t.GuardsCheckEnd=8]=`GuardsCheckEnd`,t[t.RouteConfigLoadStart=9]=`RouteConfigLoadStart`,t[t.RouteConfigLoadEnd=10]=`RouteConfigLoadEnd`,t[t.ChildActivationStart=11]=`ChildActivationStart`,t[t.ChildActivationEnd=12]=`ChildActivationEnd`,t[t.ActivationStart=13]=`ActivationStart`,t[t.ActivationEnd=14]=`ActivationEnd`,t[t.Scroll=15]=`Scroll`,t[t.NavigationSkipped=16]=`NavigationSkipped`,t})(b$2||{});var L$3=class{id;url;constructor(n,e){this.id=n,this.url=e}};var ue$1=class extends L$3{type=b$2.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r=`imperative`,i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}};var $$1=class extends L$3{urlAfterRedirects;type=b$2.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}};var E$1=(function(t){return t[t.Redirect=0]=`Redirect`,t[t.SupersededByNewNavigation=1]=`SupersededByNewNavigation`,t[t.NoDataFromResolver=2]=`NoDataFromResolver`,t[t.GuardRejected=3]=`GuardRejected`,t[t.Aborted=4]=`Aborted`,t})(E$1||{});var Pe$3=(function(t){return t[t.IgnoredSameUrlNavigation=0]=`IgnoredSameUrlNavigation`,t[t.IgnoredByUrlHandlingStrategy=1]=`IgnoredByUrlHandlingStrategy`,t})(Pe$3||{});var B=class extends L$3{reason;code;type=b$2.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function yi$2(t){return t instanceof B&&(t.code===E$1.Redirect||t.code===E$1.SupersededByNewNavigation)}var ee$1=class extends L$3{reason;code;type=b$2.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}};var Se$1=class extends L$3{error;target;type=b$2.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}};var Ze=class extends L$3{urlAfterRedirects;state;type=b$2.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}};var Ut$2=class extends L$3{urlAfterRedirects;state;type=b$2.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}};var Ot$2=class extends L$3{urlAfterRedirects;state;shouldActivate;type=b$2.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}};var xt$3=class extends L$3{urlAfterRedirects;state;type=b$2.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}};var jt$2=class extends L$3{urlAfterRedirects;state;type=b$2.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}};var kt$1=class{route;type=b$2.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}};var Lt$1=class{route;type=b$2.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}};var $t$2=class{snapshot;type=b$2.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}};var Ft$3=class{snapshot;type=b$2.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}};var zt$2=class{snapshot;type=b$2.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}};var qt$2=class{snapshot;type=b$2.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}};var Ne$2=class{routerEvent;position;anchor;scrollBehavior;type=b$2.Scroll;constructor(n,e,r,i){this.routerEvent=n,this.position=e,this.anchor=r,this.scrollBehavior=i}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}};var _e$1=class{};var et=class{};var Ue$3=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function ko$1(t){return!(t instanceof _e$1)&&!(t instanceof Ue$3)&&!(t instanceof et)}function Lo$1(t,n,e){let r=/* @__PURE__ */ new Set;return{newlyCreatedRoutes:r,state:new Je(tt$2(t,n._root,e?e._root:void 0,r),n)}}function tt$2(t,n,e,r){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._setPending(n.value);return new N$1(i,$o$1(t,n,e,r))}else{if(t.shouldAttach(n.value)){let a=t.retrieve(n.value);if(a!==null){let c=a.route;return c.value._setPending(n.value),c.children=n.children.map(s=>tt$2(t,s,void 0,r)),c}}let i=Fo$1(n.value);i._setPending(n.value),r.add(i);return new N$1(i,n.children.map(a=>tt$2(t,a,void 0,r)))}}function $o$1(t,n,e,r){return n.children.map(i=>{for(let o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return tt$2(t,i,o,r);return tt$2(t,i,void 0,r)})}function Fo$1(t){return new Z$1(new Kn$2(t.url),new Kn$2(t.params),new Kn$2(t.queryParams),new Kn$2(t.fragment),new Kn$2(t.data),t.outlet,t.component,t)}var le=class t extends Error{redirectTo;navigationBehaviorOptions;constructor(n,e){super(),this.redirectTo=n,this.navigationBehaviorOptions=e,Object.setPrototypeOf(this,t.prototype)}};var Si$2=`ngNavigationCancelingError`;function Ge(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=se$1(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Ri$2(!1,E$1.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Ri$2(t,n){let e=/* @__PURE__ */ new Error(`NavigationCancelingError: ${t||``}`);return e[Si$2]=!0,e.cancellationCode=n,e}function zo$1(t){return wi$2(t)&&se$1(t.url)}function wi$2(t){return!!t&&t[Si$2]}var Nn$1=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),wn$2(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=Ie$1(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,i[a],r),delete i[a]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let a=r.getContext(i.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=Ie$1(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);if(r&&r.outlet){let a=r.outlet.detach(),c=r.children.contexts;r.resetChildren(),this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:c})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=Ie$1(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null),n.value._localInjector?.destroy()}activateChildRoutes(n,e,r){let i=Ie$1(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new qt$2(o.value.snapshot))}),n.children.length&&this.forwardEvent(new Ft$3(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(wn$2(i),i===o)if(i.component){let a=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let a=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let c=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(c.contexts),a.attachRef=c.componentRef,a.route=c.route.value,a.outlet&&a.outlet.attach(c.componentRef,c.route.value),wn$2(c.route.value),this.activateChildRoutes(n,null,a.children)}else a.attachRef=null,a.route=i,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(n,null,a.children)}else this.activateChildRoutes(n,null,r)}};var Ht$2=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}};var De$2=class{component;route;constructor(n,e){this.component=n,this.route=e}};function qo(t,n,e){let r=t._root;return Ve$2(r,n?n._root:null,e,[r.value])}function Ho$1(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function xe$4(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t==`function`&&!Qm(t)?t:n.get(t):r}function Ve$2(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Ie$1(n);return t.children.forEach(a=>{Bo$1(a,o[a.value.outlet],e,r.concat([a.value]),i),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,c])=>Qe(c,e.getContext(a),e,i)),i}function Bo$1(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,c=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let s=Ko$1(a,o,o.routeConfig.runGuardsAndResolvers);s?i.canActivateChecks.push(new Ht$2(r)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Ve$2(t,n,c?c.children:null,r,i):Ve$2(t,n,e,r,i),s&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new De$2(c.outlet.component,a))}else a&&Qe(n,c,e,i),i.canActivateChecks.push(new Ht$2(r)),o.component?Ve$2(t,null,c?c.children:null,r,i):Ve$2(t,null,e,r,i);return i}function Ko$1(t,n,e){if(typeof e==`function`)return Bo$2(n._environmentInjector,()=>e(t,n));switch(e){case`pathParamsChange`:return!me$1(t.url,n.url);case`pathParamsOrQueryParamsChange`:return!me$1(t.url,n.url)||!J$1(t.queryParams,n.queryParams);case`always`:return!0;case`paramsOrQueryParamsChange`:return!Tn$2(t,n)||!J$1(t.queryParams,n.queryParams);default:return!Tn$2(t,n)}}function Qe(t,n,e,r){let i=Ie$1(t),o=t.value;Object.entries(i).forEach(([a,c])=>{o.component?n?Qe(c,n.children.getContext(a),n.children,r):Qe(c,null,null,r):Qe(c,e?e.getContext(a):null,e,r)}),o.component?n&&n.outlet&&n.outlet.isActivated?r.canDeactivateChecks.push(new De$2(n.outlet.component,o)):r.canDeactivateChecks.push(new De$2(null,o)):r.canDeactivateChecks.push(new De$2(null,o))}function at$3(t){return typeof t==`function`}function Vo$1(t){return typeof t==`boolean`}function Wo$1(t){return t&&at$3(t.canLoad)}function Go$1(t){return t&&at$3(t.canActivate)}function Qo$1(t){return t&&at$3(t.canActivateChild)}function Yo$1(t){return t&&at$3(t.canDeactivate)}function Jo$1(t){return t&&at$3(t.canMatch)}function Ci$2(t){return t instanceof Xn$2||t?.name===`EmptyError`}var Ct$3=Symbol(`INITIAL_VALUE`);function Oe$1(){return Pm(t=>rm(t.map(n=>n.pipe(ms$2(1),fs$1(e=>{if(e instanceof le)return ds$3(e);throw e}),Lm(Ct$3)))).pipe(it$3(n=>{for(let e of n)if(e!==!0){if(e===Ct$3)return Ct$3;if(e===!1||Xo$1(e))return e}return!0}),$e$1(n=>n!==Ct$3),ms$2(1)))}function Xo$1(t){return se$1(t)||t instanceof le}function bi$2(t){return new b$3(n=>{if(t.aborted){n.next(),n.complete();return}let e=()=>{n.next(),n.complete()};return t.addEventListener(`abort`,e),()=>t.removeEventListener(`abort`,e)})}function Ii$2(t){return Fm(bi$2(t))}function Zo$1(t){return Be$2(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?ds$3(G$1(F$3({},n),{guardsResult:!0})):ea$1(o,e,r).pipe(Be$2(a=>a&&Vo$1(a)?ta$1(e,i,t):ds$3(a)),it$3(a=>G$1(F$3({},n),{guardsResult:a})))})}function ea$1(t,n,e){return Ae$3(t).pipe(Be$2(r=>aa$1(r.component,r.route,e,n)),nu(r=>r!==!0,!0))}function ta$1(t,n,e){return Ae$3(n).pipe(Nm(r=>fn$4(ra$1(r.route.parent,e),na$1(r.route,e),oa$1(t,r.path),ia$1(t,r.route))),nu(r=>r!==!0,!0))}function na$1(t,n){return t!==null&&n&&n(new zt$2(t)),ds$3(!0)}function ra$1(t,n){return t!==null&&n&&n(new $t$2(t)),ds$3(!0)}function ia$1(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return ds$3(!0);let r=e.map(i=>fm(()=>{let o=n._environmentInjector,a=xe$4(i,o);return it$2(Go$1(a)?a.canActivate(n,t):Bo$2(o,()=>a(n,t))).pipe(nu())}));return ds$3(r).pipe(Oe$1())}function oa$1(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>Ho$1(o)).filter(o=>o!==null).map(o=>fm(()=>{let a=o.guards.map(c=>{let s=o.node._environmentInjector,u=xe$4(c,s);return it$2(Qo$1(u)?u.canActivateChild(e,t):Bo$2(s,()=>u(e,t))).pipe(nu())});return ds$3(a).pipe(Oe$1())}));return ds$3(i).pipe(Oe$1())}function aa$1(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return ds$3(!0);let o=i.map(a=>{let c=n._environmentInjector,s=xe$4(a,c);return Vn$2(()=>Yo$1(s)?s.canDeactivate(t,n,e,r):Bo$2(c,()=>s(t,n,e,r))).pipe(nu())});return ds$3(o).pipe(Oe$1())}function sa$1(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return ds$3(!0);let a=o.map(c=>{let s=xe$4(c,t),u=Vn$2(()=>Wo$1(s)?s.canLoad(n,e):Bo$2(t,()=>s(n,e)));return i?u.pipe(Ii$2(i)):u});return ds$3(a).pipe(Oe$1(),Mi$2(r))}function Vn$2(t){try{return it$2(t())}catch(n){return new b$3(e=>e.error(n))}}function Mi$2(t){return Vg(ql(n=>{if(typeof n!=`boolean`)throw Ge(t,n)}),it$3(n=>n===!0))}function ca$1(t,n,e,r,i,o){let a=n.canMatch;if(!a||a.length===0)return ds$3(!0);let c=a.map(s=>{let u=xe$4(s,t);return Vn$2(()=>Jo$1(u)?u.canMatch(n,e,i):Bo$2(t,()=>u(n,e,i))).pipe(Ii$2(o))});return ds$3(c).pipe(Oe$1(),Mi$2(r))}var Y=class t extends Error{name=`NoMatch`;segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype)}};var nt$2=class t extends Error{urlTree;name=`AbsoluteRedirect`;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype)}};function ua$2(t){throw new _$1(4e3,!1)}function la$1(t){throw Ri$2(!1,E$1.GuardRejected)}var _n$2=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){return M$1(this,null,function*(){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[g$1])throw ua$2(`${n.redirectTo}`);i=i.children[g$1]}})}applyRedirectCommands(n,e,r,i,o){return M$1(this,null,function*(){let a=yield da$1(e,i,o);if(a instanceof _)throw new nt$2(a);let c=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,r);if(a[0]===`/`)throw new nt$2(c);return c})}applyRedirectCreateUrlTree(n,e,r,i){return new _(this.createSegmentGroup(n,e.root,r,i),this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o==`string`&&o[0]===`:`){let c=o.substring(1);r[i]=e[c]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),a=Object.create(null);return Object.entries(e.children).forEach(([c,s])=>{a[c]=this.createSegmentGroup(n,s,r,i)}),new y$1(o,a)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===`:`?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new _$1(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}};function da$1(t,n,e){if(typeof t==`string`)return Promise.resolve(t);let r=t;return Et$2(it$2(Bo$2(e,()=>r(n))))}function ha$2(t,n){return t.providers&&!t._injector&&(t._injector=Ih(t.providers,n,`Route: ${t.path}`)),t._injector??n}function X(t){return t.outlet||g$1}function fa$2(t,n){let e=t.filter(r=>X(r)===n);return e.push(...t.filter(r=>X(r)!==n)),e}var Un$1={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ei$2(t){return{routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function pa$2(t,n,e,r,i,o,a){let c=Di$2(t,n,e);if(!c.matched)return ds$3(c);let s=Ei$2(o(c));return r=ha$2(n,r),ca$1(r,n,e,i,s,a).pipe(it$3(u=>u===!0?c:F$3({},Un$1)))}function Di$2(t,n,e){if(n.path===``)return n.pathMatch===`full`&&(t.hasChildren()||e.length>0)?F$3({},Un$1):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||Yr$2)(e,t,n);if(!i)return F$3({},Un$1);let o={};Object.entries(i.posParams??{}).forEach(([c,s])=>{o[c]=s.path});let a=i.consumed.length>0?F$3(F$3({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function Gr$2(t,n,e,r){return e.length>0&&ma$1(t,e,r)?{segmentGroup:new y$1(n,va$2(r,new y$1(e,t.children))),slicedSegments:[]}:e.length===0&&ya$1(t,e,r)?{segmentGroup:new y$1(t.segments,ga$2(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new y$1(t.segments,t.children),slicedSegments:e}}function ga$2(t,n,e,r){let i={};for(let o of e)if(Kt$1(t,n,o)&&!r[X(o)]){let a=new y$1([],{});i[X(o)]=a}return F$3(F$3({},r),i)}function va$2(t,n){let e={};e[g$1]=n;for(let r of t)if(r.path===``&&X(r)!==g$1){let i=new y$1([],{});e[X(r)]=i}return e}function ma$1(t,n,e){return e.some(r=>Kt$1(t,n,r)&&X(r)!==g$1)}function ya$1(t,n,e){return e.some(r=>Kt$1(t,n,r))}function Kt$1(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch===`full`?!1:e.path===``}function Sa$2(t,n,e){return n.length===0&&!t.hasChildren()}var On$2=class{};function Ra$2(t,n,e,r,i,o,a,c){return M$1(this,null,function*(){return new xn$2(t,n,e,r,i,a,o,c).recognize()})}var wa$2=31;var xn$2=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;queryParams;constructor(n,e,r,i,o,a,c,s){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=c,this.abortSignal=s,this.applyRedirects=new _n$2(this.urlSerializer,this.urlTree),this.queryParams=Object.freeze(F$3({},this.urlTree.queryParams))}noMatchError(n){return new _$1(4002,`'${n.segmentGroup}'`)}recognize(){return M$1(this,null,function*(){let n=Gr$2(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=yield this.match(n),o=new Xe$1(``,new N$1(r,e)),a=ci$2(r,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}})}match(n){return M$1(this,null,function*(){let e=new Te$2([],Object.freeze({}),this.queryParams,this.urlTree.fragment,Object.freeze({}),g$1,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,n,g$1,e),rootSnapshot:e}}catch(r){if(r instanceof nt$2)return this.absoluteRedirectCount++,this.absoluteRedirectCount>wa$2&&(this.allowRedirects=!1),this.urlTree=r.urlTree,this.queryParams=Object.freeze(F$3({},this.urlTree.queryParams)),this.match(r.urlTree.root);throw r instanceof Y?this.noMatchError(r):r}})}processSegmentGroup(n,e,r,i,o){return M$1(this,null,function*(){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let a=yield this.processSegment(n,e,r,r.segments,i,!0,o);return a instanceof N$1?[a]:[]})}processChildren(n,e,r,i){return M$1(this,null,function*(){let o=[];for(let s of Object.keys(r.children))s===`primary`?o.unshift(s):o.push(s);let a=[];for(let s of o){let u=r.children[s],d=fa$2(e,s),p=yield this.processSegment(n,d,u,u.segments,s,!0,i);p instanceof N$1&&a.push(p)}let c=Ai$2(a);return Ca$2(c),c})}processSegment(n,e,r,i,o,a,c){return M$1(this,null,function*(){for(let s of e)try{return yield this.processSegmentAgainstRoute(s._injector??n,e,s,r,i,o,a,c)}catch(u){if(u instanceof Y||Ci$2(u))continue;throw u}if(Sa$2(r,i))return new On$2;throw new Y(r)})}processSegmentAgainstRoute(n,e,r,i,o,a,c,s){return M$1(this,null,function*(){if(X(r)!==a&&(a===g$1||!Kt$1(i,o,r)||!r.children?.length&&!r.loadChildren||o.length===0&&!i.hasChildren()))throw new Y(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,a,s);if(this.allowRedirects&&c)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,a,s);throw new Y(i)})}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,a,c){return M$1(this,null,function*(){let{matched:s,parameters:u,consumedSegments:d,positionalParamSegments:p,remainingSegments:f}=Di$2(e,i,o);if(!s)throw new Y(e);let R=this.createSnapshot(n,i,o,u,c);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let O=yield this.applyRedirects.applyRedirectCommands(d,i.redirectTo,p,Ei$2(R),n),x=yield this.applyRedirects.lineralizeSegments(i,O);return this.processSegment(n,r,e,x.concat(f),a,!1,c)})}createSnapshot(n,e,r,i,o){let a=new Te$2(r,i,this.queryParams,this.urlTree.fragment,Ma$2(e),X(e),e.component??e._loadedComponent??null,e,Ea$2(e),n),c=zn$2(a,o,this.paramsInheritanceStrategy);return a.params=c.params,a.data=c.data,a}matchSegmentAgainstRoute(n,e,r,i,o,a){return M$1(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let c=pe=>this.createSnapshot(n,r,pe.consumedSegments,pe.parameters,a),s=yield Et$2(pa$2(e,r,i,n,this.urlSerializer,c,this.abortSignal));if(r.path===`**`&&(e.children={}),!s?.matched)throw new Y(e);n=r._injector??n;let{routes:u}=yield this.getChildConfig(n,r,i),d=r._loadedInjector??n,{parameters:p,consumedSegments:f,remainingSegments:R}=s,O=this.createSnapshot(n,r,f,p,a),x=X(r)===o,{segmentGroup:fe,slicedSegments:je}=x?Gr$2(e,f,R,u):{segmentGroup:e,slicedSegments:R};if(x&&je.length===0&&fe.hasChildren())return new N$1(O,yield this.processChildren(d,u,fe,O));if(x&&u.length===0&&je.length===0)return new N$1(O,[]);let ke=yield this.processSegment(d,u,fe,je,x?g$1:o,!0,O);if(!x&&!(ke instanceof N$1))throw new Y(e);return new N$1(O,ke instanceof N$1?[ke]:[])})}getChildConfig(n,e,r){return M$1(this,null,function*(){if(e.children)return{routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield Et$2(sa$1(n,e,r,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw la$1(e)}return{routes:[],injector:n}})}};function Ca$2(t){t.sort((n,e)=>n.value.outlet===g$1?-1:e.value.outlet===g$1?1:n.value.outlet.localeCompare(e.value.outlet))}function ba$2(t){let n=t.value.routeConfig;return n&&n.path===``}function Ai$2(t){let n=[],e=/* @__PURE__ */ new Set;for(let i of t){if(!ba$2(i)){n.push(i);continue}let o=n.find(a=>i.value.routeConfig===a.value.routeConfig);o!==void 0?(o.children.push(...i.children),e.add(o)):n.push(i)}for(let i of e){let o=Ai$2(i.children);n.push(new N$1(i.value,o))}let r=n.filter(i=>!e.has(i));return Ia$2(r),r}function Ia$2(t){let n=Object.create(null);t.forEach(e=>{let r=n[e.value.outlet];if(r){r.url.map(a=>a.toString()).join(`/`);e.value.url.map(a=>a.toString()).join(`/`);throw new _$1(4006,!1)}n[e.value.outlet]=e.value})}function Ma$2(t){return t.data||{}}function Ea$2(t){return t.resolve||{}}function Da$1(t,n,e,r,i,o,a){return Be$2(c=>M$1(null,null,function*(){let{state:s,tree:u}=yield Ra$2(t,n,e,r,c.extractedUrl,i,o,a);return G$1(F$3({},c),{targetSnapshot:s,urlAfterRedirects:u})}))}function Aa$2(t){return Be$2(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return ds$3(n);let i=new Set(r.map(c=>c.route)),o=/* @__PURE__ */ new Set;for(let c of i)if(!o.has(c))for(let s of Ti$2(c))o.add(s);let a=0;return Ae$3(o).pipe(Nm(c=>i.has(c)?Ta$2(c,e,t):(c.data=zn$2(c,c.parent,t).resolve,ds$3(void 0))),ql(()=>a++),Rm(1),Be$2(c=>a===o.size?ds$3(n):He$3))})}function Ti$2(t){return[t,...t.children.map(e=>Ti$2(e)).flat()]}function Ta$2(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!gi$2(r)&&(i[rt$2]=r.title),fm(()=>(t.data=zn$2(t,t.parent,e).resolve,Pa$1(i,t,n).pipe(it$3(o=>(t._resolvedData=o,t.data=F$3(F$3({},t.data),o),null)))))}function Pa$1(t,n,e){let r=bn$2(t);if(r.length===0)return ds$3({});let i={};return Ae$3(r).pipe(Be$2(o=>Na$2(t[o],n,e).pipe(nu(),ql(a=>{if(a instanceof le)throw Ge(new ne$3,a);i[o]=a}))),Rm(1),it$3(()=>i),fs$1(o=>Ci$2(o)?He$3:lm(o)))}function Na$2(t,n,e){let r=n._environmentInjector,i=xe$4(t,r);return it$2(i.resolve?i.resolve(n,e):Bo$2(r,()=>i(n,e)))}var Wn$1=new x$3(``);function jn$1(t){return Pm(n=>{let e=t(n);return e?Ae$3(e).pipe(it$3(()=>n)):ds$3(n)})}var Gn$1=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===g$1);return r}getResolvedTitleForRoute(e){return e.data[rt$2]}static ɵfac=function(r){return new(r||t)};static ɵprov=en$3({token:t,factory:()=>E$2(Pi$2)})}return t})();var Pi$2=(()=>{class t extends Gn$1{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static ɵfac=function(r){return new(r||t)(ke$1(Ud))};static ɵprov=ue$2({token:t,factory:t.ɵfac,providedIn:`root`})}return t})();var he$1=new x$3(``,{factory:()=>({})});var Re$2=new x$3(``);var Vt$1=(()=>{class t{componentLoaders=/* @__PURE__ */ new WeakMap;childrenLoaders=/* @__PURE__ */ new WeakMap;onLoadStartListener;onLoadEndListener;compiler=E$2(Fb);loadComponent(e,r){return M$1(this,null,function*(){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=M$1(this,null,function*(){try{let o=yield Xr$3(Bo$2(e,()=>r.loadComponent())),a=yield _i$2(R1(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=a,a}finally{this.componentLoaders.delete(r)}});return this.componentLoaders.set(r,i),i})}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=M$1(this,null,function*(){try{let o=yield Ni$2(r,this.compiler,e,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r)}});return this.childrenLoaders.set(r,i),i}static ɵfac=function(r){return new(r||t)};static ɵprov=en$3({token:t,factory:t.ɵfac})}return t})();function Ni$2(t,n,e,r){return M$1(this,null,function*(){let i=yield Xr$3(Bo$2(e,()=>t.loadChildren())),o=yield _i$2(R1(i)),a;o instanceof Eh||Array.isArray(o)?a=o:a=yield n.compileModuleAsync(o),r&&r(t);let c,s,d;return Array.isArray(a)?s=a:(c=a.create(e).injector,d=a,s=c.get(Re$2,[],{optional:!0,self:!0}).flat()),{routes:s.map(Kn$1),injector:c,factory:d}})}function _i$2(t){return M$1(this,null,function*(){return t})}var Wt$3=(()=>{class t{static ɵfac=function(r){return new(r||t)};static ɵprov=en$3({token:t,factory:()=>E$2(_a$2)})}return t})();var _a$2=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static ɵfac=function(r){return new(r||t)};static ɵprov=en$3({token:t,factory:t.ɵfac})}return t})();var Qn$1=new x$3(``);var Yn$1=new x$3(``);function Ui$2(t,n,e,r){let i=t.get(Yn$1),o=t.get(ei$3);if(r){i.skipNextTransition=!1;return}if(!o.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(d=>setTimeout(d));let a,c=new Promise(d=>{a=d}),s=o.startViewTransition(()=>(a(),Ua$2(t)));s.updateCallbackDone.catch(d=>{}),s.ready.catch(d=>{}),s.finished.catch(d=>{});let{onViewTransitionCreated:u}=i;return u&&Bo$2(t,()=>u({transition:s,from:n,to:e})),c}function Ua$2(t){return new Promise(n=>{mp({read:()=>setTimeout(n)},{injector:t})})}var Oa$2=()=>{};var Jn$1=new x$3(``);var Gt$1=(()=>{class t{currentNavigation=ti$3(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=ti$3(null);events=new ee$2;transitionAbortWithErrorSubject=new ee$2;configLoader=E$2(Vt$1);environmentInjector=E$2(me$2);destroyRef=E$2(be$3);urlSerializer=E$2(de$1);rootContexts=E$2(ce$2);location=E$2(Mi$3);inputBindingEnabled=E$2(ot$2,{optional:!0})!==null;titleStrategy=E$2(Gn$1);options=E$2(he$1,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||jo$1;urlHandlingStrategy=E$2(Wt$3);createViewTransition=E$2(Qn$1,{optional:!0});navigationErrorHandler=E$2(Jn$1,{optional:!0});routerResourcesFeature=E$2(Wn$1,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>ds$3(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new kt$1(i)),r=i=>this.events.next(new Lt$1(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;Tg(()=>{this.transitions?.next(G$1(F$3({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(e){return this.transitions=new Kn$2(null),this.transitions.pipe($e$1(r=>r!==null),Pm(r=>{let i=!0,o=!1,a=new AbortController,c=()=>!o&&this.currentTransition?.id===r.id;return ds$3(r).pipe(Pm(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,``,E$1.SupersededByNewNavigation),He$3;this.currentTransition=r;let u=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl==`string`?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:u?G$1(F$3({},u),{previousNavigation:null}):null,abort:()=>a.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let d=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),p=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!d&&p!==`reload`)return this.events.next(new ee$1(s.id,this.urlSerializer.serialize(s.rawUrl),``,Pe$3.IgnoredSameUrlNavigation)),s.resolve(!1),He$3;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return ds$3(s).pipe(Pm(f=>(this.events.next(new ue$1(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),f.id!==this.navigationId?He$3:Promise.resolve(f))),Da$1(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,a.signal),ql(f=>{r.targetSnapshot=f.targetSnapshot,r.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation.update(R=>(R.finalUrl=f.urlAfterRedirects,R)),this.events.next(new et)}),Pm(f=>Ae$3(r.routesRecognizeHandler.deferredHandle??ds$3(void 0)).pipe(it$3(()=>f))),ql(()=>{let f=new Ze(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(f)}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:f,extractedUrl:R,source:O,restoredState:x,extras:fe}=s,je=new ue$1(f,this.urlSerializer.serialize(R),O,x);this.events.next(je);let ke=fi$2(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=G$1(F$3({},s),{targetSnapshot:ke,urlAfterRedirects:R,extras:G$1(F$3({},fe),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(pe=>(pe.finalUrl=R,pe)),ds$3(r)}else return this.events.next(new ee$1(s.id,this.urlSerializer.serialize(s.extractedUrl),``,Pe$3.IgnoredByUrlHandlingStrategy)),s.resolve(!1),He$3}),it$3(s=>{let u=new Ut$2(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(u),this.currentTransition=r=G$1(F$3({},s),{guards:qo(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r}),Zo$1(s=>this.events.next(s)),Pm(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!=`boolean`)throw Ge(this.urlSerializer,s.guardsResult);let u=new Ot$2(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(u),!c())return He$3;if(!s.guardsResult)return this.cancelNavigationTransition(s,``,E$1.GuardRejected),He$3;if(s.guards.canActivateChecks.length===0)return ds$3(s);let d=new xt$3(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(d),!c())return He$3;let p=!1;return ds$3(s).pipe(Aa$2(this.paramsInheritanceStrategy),ql({next:()=>{p=!0;let f=new jt$2(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(f)},complete:()=>{p||this.cancelNavigationTransition(s,``,E$1.NoDataFromResolver)}}))}),jn$1(s=>{let u=p=>{let f=[];if(p.routeConfig?._loadedComponent)p.component=p.routeConfig?._loadedComponent;else if(p.routeConfig?.loadComponent){let R=p._environmentInjector;f.push(this.configLoader.loadComponent(R,p.routeConfig).then(O=>{p.component=O}))}for(let R of p.children)f.push(...u(R));return f},d=u(s.targetSnapshot.root);return d.length===0?ds$3(s):Ae$3(Promise.all(d).then(()=>s))}),Pm(s=>{let{newlyCreatedRoutes:u,state:d}=Lo$1(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=r=s=G$1(F$3({},s),{targetRouterState:d,newlyCreatedRoutes:u}),this.currentNavigation.update(p=>(p.targetRouterState=d,p)),ds$3(s)}),this.routerResourcesFeature?.setupAndRunResources(a.signal)??(s=>s),jn$1(()=>this.afterPreactivation()),Pm(()=>{let{currentSnapshot:s,targetSnapshot:u}=r,d=this.createViewTransition?.(this.environmentInjector,s.root,u.root,r.hasUAVisualTransition);return d?Ae$3(d).pipe(it$3(()=>r)):ds$3(r)}),ms$2(1),Pm(s=>{i=!1,this.events.next(new _e$1);let u=r.beforeActivateHandler.deferredHandle;return u?Ae$3(u.then(()=>s)):ds$3(s)}),ql(s=>{new Nn$1(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),s.newlyCreatedRoutes?.clear(),c()&&(Oi$2(s.targetRouterState),o=!0,this.currentNavigation.update(u=>(u.abort=Oa$2,u)),this.lastSuccessfulNavigation.set(Tg(this.currentNavigation)),this.events.next(new $$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0))}),Fm(bi$2(a.signal).pipe($e$1(()=>!o&&i),ql(()=>{this.cancelNavigationTransition(r,a.signal.reason+``,E$1.Aborted)}))),ql({complete:()=>{o=!0}}),Fm(this.transitionAbortWithErrorSubject.pipe(ql(s=>{throw s}))),tu$1(()=>{a.abort(),o||this.cancelNavigationTransition(r,``,E$1.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),fs$1(s=>{if(o=!0,Qr$2(r),this.destroyed)return r.resolve(!1),He$3;if(s instanceof le&&(s=Ge(this.urlSerializer,s)),wi$2(s))this.events.next(new B(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),zo$1(s)?this.events.next(new Ue$3(s.url,s.navigationBehaviorOptions)):r.resolve(!1);else{let u=new Se$1(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let d=Bo$2(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(d instanceof le){let{message:p,cancellationCode:f}=Ge(this.urlSerializer,d);this.events.next(new B(r.id,this.urlSerializer.serialize(r.extractedUrl),p,f)),this.events.next(new Ue$3(d.redirectTo,d.navigationBehaviorOptions))}else throw this.events.next(u),s}catch(d){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(d)}}return He$3}))}))}cancelNavigationTransition(e,r,i){Qr$2(e);let o=new B(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=Tg(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static ɵfac=function(r){return new(r||t)};static ɵprov=en$3({token:t,factory:t.ɵfac})}return t})();function xa$2(t){return t!==Ee$1}function Qr$2(t){for(let n of t.newlyCreatedRoutes??[])n._localInjector?.destroy(),n._localInjector=void 0;Oi$2(t.targetRouterState)}function Oi$2(t){if(!t)return;let n=e=>{e.value.pending?.set(!1),e.children.forEach(n)};n(t._root)}var xi$2=new x$3(``);var ji$2=(()=>{class t{static ɵfac=function(r){return new(r||t)};static ɵprov=en$3({token:t,factory:()=>E$2(ja$2)})}return t})();var Bt$1=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return!0}};var ja$2=(()=>{class t extends Bt$1{static ɵfac=function(r){return new(r||t)};static ɵprov=en$3({token:t,factory:t.ɵfac})}return t})();var Qt$2=(()=>{class t{urlSerializer=E$2(de$1);options=E$2(he$1,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||`replace`;location=E$2(Mi$3);urlHandlingStrategy=E$2(Wt$3);urlUpdateStrategy=this.options.urlUpdateStrategy||`deferred`;currentUrlTree=new _;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,a=i??o;return a instanceof _?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{ɵrouterUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i}routerState=fi$2(null,E$2(me$2));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static ɵfac=function(r){return new(r||t)};static ɵprov=en$3({token:t,factory:()=>E$2(ka$2)})}return t})();var ka$2=(()=>{class t extends Qt$2{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!==`computed`?this.currentPageId:this.restoredState()?.ɵrouterPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type===`popstate`&&setTimeout(()=>{e(r.url,r.state,`popstate`,{replaceUrl:!0},r.hasUAVisualTransition)})})}handleRouterEvent(e,r){e instanceof ue$1?this.updateStateMemento():e instanceof ee$1?this.commitTransition(r):e instanceof Ze?this.urlUpdateStrategy===`eager`&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof _e$1?(this.commitTransition(r),this.urlUpdateStrategy===`deferred`&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof B?yi$2(e)?e.code===E$1.Redirect&&this.routerState===r.targetRouterState&&this.resetInternalState(r):this.restoreHistory(r):e instanceof Se$1?this.restoreHistory(r,!0):e instanceof $$1&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,r){let{extras:i,id:o}=r,{replaceUrl:a,state:c}=i;if(this.location.isCurrentPathEqualTo(e)||a){let s=this.browserPageId,u=F$3(F$3({},c),this.generateNgRouterState(o,s,r));this.location.replaceState(e,``,u)}else{let s=F$3(F$3({},c),this.generateNgRouterState(o,this.browserPageId+1,r));this.location.go(e,``,s)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution===`computed`){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution===`replace`&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),``,this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r,i){return this.canceledNavigationResolution===`computed`?F$3({navigationId:e,ɵrouterPageId:r},this.routerUrlState(i)):F$3({navigationId:e},this.routerUrlState(i))}static ɵfac=function(r){return new(r||t)};static ɵprov=en$3({token:t,factory:t.ɵfac})}return t})();function Yt$1(t,n){t.events.pipe($e$1(e=>e instanceof $$1||e instanceof B||e instanceof Se$1||e instanceof ee$1),it$3(e=>e instanceof $$1||e instanceof ee$1?0:(e instanceof B?e.code===E$1.Redirect||e.code===E$1.SupersededByNewNavigation:!1)?2:1),$e$1(e=>e!==2),ms$2(1)).subscribe(()=>{n()})}var W$1=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=E$2(ow);stateManager=E$2(Qt$2);options=E$2(he$1,{optional:!0})||{};pendingTasks=E$2(vt$3);urlUpdateStrategy=this.options.urlUpdateStrategy||`deferred`;navigationTransitions=E$2(Gt$1);urlSerializer=E$2(de$1);location=E$2(Mi$3);urlHandlingStrategy=E$2(Wt$3);injector=E$2(me$2);_events=new ee$2;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=E$2(ji$2);injectorCleanup=E$2(xi$2,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||`ignore`;config=E$2(Re$2,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!E$2(ot$2,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new q$1;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=Tg(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof B&&r.code!==E$1.Redirect&&r.code!==E$1.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof $$1)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof Ue$3){let a=r.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),s=F$3({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy===`eager`||xa$2(i.source)},a);this.scheduleNavigation(c,Ee$1,null,s,i.hasUAVisualTransition,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}ko$1(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ee$1,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i,o,a)=>{this.navigateToSyncWithBrowser(e,i,r,o,a)})}navigateToSyncWithBrowser(e,r,i,o,a){let c=i?.navigationId?i:null,s=i?.ɵrouterUrl??e;if(i?.ɵrouterUrl&&(o=G$1(F$3({},o),{browserUrl:e})),i){let d=F$3({},i);delete d.navigationId,delete d.ɵrouterPageId,delete d.ɵrouterUrl,Object.keys(d).length!==0&&(o.state=d)}let u=this.parseUrl(s);this.scheduleNavigation(u,r,c,o,a).catch(d=>{this.disposed||this.injector.get(Et$3)(d)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Tg(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Kn$1),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:s}=r,u=s?this.currentUrlTree.fragment:a,d=null;switch(c??this.options.defaultQueryParamsHandling){case`merge`:d=F$3(F$3({},this.currentUrlTree.queryParams),o);break;case`preserve`:d=this.currentUrlTree.queryParams;break;default:d=o||null}let p;try{p=ui$2(i?i.snapshot:this.routerState.snapshot.root)}catch(f){(typeof e[0]!=`string`||e[0][0]!==`/`)&&(e=[]),p=this.currentUrlTree.root}return li$2(p,e,d,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:!1}){let i=se$1(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Ee$1,null,r)}navigate(e,r={skipLocationChange:!1}){return La$2(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(r){return this.console.warn(dr$2(4018,!1)),this.urlSerializer.parse(`/`)}}isActive(e,r){let i;if(r===!0?i=F$3({},$n$1):r===!1?i=F$3({},Ae$2):i=F$3(F$3({},Ae$2),r),se$1(e))return Dt$2(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Dt$2(this.currentUrlTree,o,i)}scheduleNavigation(e,r,i,o,a,c){if(this.disposed)return Promise.resolve(!1);let s,u,d;c?(s=c.resolve,u=c.reject,d=c.promise):d=new Promise((f,R)=>{s=f,u=R});let p=this.pendingTasks.add();return Yt$1(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,hasUAVisualTransition:a,resolve:s,reject:u,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(Promise.reject.bind(Promise))}static ɵfac=function(r){return new(r||t)};static ɵprov=en$3({token:t,factory:t.ɵfac})}return t})();function La$2(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new _$1(4008,!1)}var $a$2=(()=>{class t{router=E$2(W$1);stateManager=E$2(Qt$2);fragment=ti$3(``);queryParams=ti$3({});path=ti$3(``);serializer=E$2(de$1);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof $$1&&this.updateState()})}updateState(){let{fragment:e,root:r,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(i),this.path.set(this.serializer.serialize(new _(r)))}static ɵfac=function(r){return new(r||t)};static ɵprov=en$3({token:t,factory:t.ɵfac})}return t})();var Jt$1=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=E$2(new Cg(`href`),{optional:!0});reactiveHref=$b(()=>{if(!this.isAnchorElement)return this.hrefAttributeValue;this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=r=>r===`preserve`||r===`merge`;return(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams(),this.computeHref(this.createUrlTree())});get href(){return Tg(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}set target(e){this._target.set(e)}get target(){return Tg(this._target)}_target=ti$3(void 0);set queryParams(e){this._queryParams.set(e)}get queryParams(){return Tg(this._queryParams)}_queryParams=ti$3(void 0,{equal:()=>!1});set fragment(e){this._fragment.set(e)}get fragment(){return Tg(this._fragment)}_fragment=ti$3(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e)}get queryParamsHandling(){return Tg(this._queryParamsHandling)}_queryParamsHandling=ti$3(void 0);set state(e){this._state.set(e)}get state(){return Tg(this._state)}_state=ti$3(void 0,{equal:()=>!1});set info(e){this._info.set(e)}get info(){return Tg(this._info)}_info=ti$3(void 0,{equal:()=>!1});set relativeTo(e){this._relativeTo.set(e)}get relativeTo(){return Tg(this._relativeTo)}_relativeTo=ti$3(void 0);set preserveFragment(e){this._preserveFragment.set(e)}get preserveFragment(){return Tg(this._preserveFragment)}_preserveFragment=ti$3(!1);set skipLocationChange(e){this._skipLocationChange.set(e)}get skipLocationChange(){return Tg(this._skipLocationChange)}_skipLocationChange=ti$3(!1);set replaceUrl(e){this._replaceUrl.set(e)}get replaceUrl(){return Tg(this._replaceUrl)}_replaceUrl=ti$3(!1);browserUrl=k1(void 0);isAnchorElement;onChanges=new ee$2;applicationErrorHandler=E$2(Et$3);options=E$2(he$1,{optional:!0});reactiveRouterState=E$2($a$2);constructor(e,r,i,o,a,c){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this.locationStrategy=c;let s=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=s===`a`||s===`area`||!!(typeof customElements==`object`&&customElements.get(s)?.observedAttributes?.includes?.(`href`))}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue(`tabindex`,e)}ngOnChanges(e){this.onChanges.next(this)}routerLinkInput=ti$3(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(se$1(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl(`0`))}onClick(e,r,i,o,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(e!==0||r||i||o||a||typeof this.target==`string`&&this.target!=`_self`))return!0;let s=this.browserUrl(),u=F$3({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},s!==void 0&&{browserUrl:s});return this.router.navigateByUrl(c,u)?.catch(d=>{this.applicationErrorHandler(d)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e)}createUrlTree(){let e=this.routerLinkInput();return e===null||!this.router.createUrlTree?null:se$1(e)?e:this.router.createUrlTree(e,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})}get urlTree(){return Tg(()=>this.createUrlTree())}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??``:null}static ɵfac=function(r){return new(r||t)(Qr$3(W$1),Qr$3(Z$1),Sf(`tabindex`),Qr$3(cc$1),Qr$3(Br$3),Qr$3(Ke$4))};static ɵdir=BD({type:t,selectors:[[``,`routerLink`,``]],hostVars:2,hostBindings:function(r,i){r&1&&Bh(`click`,function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&Ah$2(`href`,i.reactiveHref(),nE)(`target`,i._target())},inputs:{target:`target`,queryParams:`queryParams`,fragment:`fragment`,queryParamsHandling:`queryParamsHandling`,state:`state`,info:`info`,relativeTo:`relativeTo`,preserveFragment:[2,`preserveFragment`,`preserveFragment`,U1],skipLocationChange:[2,`skipLocationChange`,`skipLocationChange`,U1],replaceUrl:[2,`replaceUrl`,`replaceUrl`,U1],browserUrl:[1,`browserUrl`],routerLink:`routerLink`},features:[Vy]})}return t})();var Fa$2=(()=>{class t{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new qe$1;link=E$2(Jt$1,{optional:!0});constructor(e,r,i,o){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof $$1&&this.update()})}ngAfterContentInit(){ds$3(this.links.changes,ds$3(null)).pipe(er$3()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=Ae$3(e).pipe(er$3()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){let r=e==null?[]:(Array.isArray(e)?e:e.split(` `)).filter(i=>!!i);for(let i of this.classes)r.includes(i)||this.renderer.removeClass(this.element.nativeElement,i);this.classes=r}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||this.routerLinkActiveOptions===null&&!this._isActive||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,`aria-current`,this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,`aria-current`),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let r=this.routerLinkActiveOptions;if(r===null)return()=>!1;let i;return r===void 0?i=F$3({},Ae$2):za$2(r)?i=r:r.exact??!1?i=F$3({},$n$1):i=F$3({},Ae$2),o=>{let a=o.urlTree;return a?Tg(Fn$2(a,e,i)):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static ɵfac=function(r){return new(r||t)(Qr$3(W$1),Qr$3(Br$3),Qr$3(cc$1),Qr$3(H1))};static ɵdir=BD({type:t,selectors:[[``,`routerLinkActive`,``]],contentQueries:function(r,i,o){if(r&1&&Wh$1(o,Jt$1,5),r&2){let a;Pw(a=Fw())&&(i.links=a)}},inputs:{routerLinkActiveOptions:`routerLinkActiveOptions`,ariaCurrentWhenActive:`ariaCurrentWhenActive`,routerLinkActive:`routerLinkActive`},outputs:{isActiveChange:`isActiveChange`},exportAs:[`routerLinkActive`],features:[Vy]})}return t})();function za$2(t){let n=t;return!!(n.paths||n.matrixParams||n.queryParams||n.fragment)}var st$3=class{};var ki$2=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe($e$1(e=>e instanceof $$1),Nm(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Ih(o.providers,e,``));let a=o._injector??e;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(a).injector);let c=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(c,o.children??o._loadedRoutes))}return Ae$3(i).pipe(er$3())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return ds$3(null);let i;r.loadChildren&&r.canLoad===void 0?i=Ae$3(this.loader.loadChildren(e,r)):i=ds$3(null);let o=i.pipe(Be$2(a=>a===null?ds$3(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,r._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??e,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(e,r);return Ae$3([o,a]).pipe(er$3())}else return o})}static ɵfac=function(r){return new(r||t)(ke$1(W$1),ke$1(me$2),ke$1(st$3),ke$1(Vt$1))};static ɵprov=ue$2({token:t,factory:t.ɵfac,providedIn:`root`})}return t})();var Li$2=new x$3(``);var qa$2=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Ee$1;restoredId=0;store={};isHydrating=E$2(gv,{optional:!0})??!1;urlSerializer=E$2(de$1);zone=E$2(Q$1);viewportScroller=E$2(lc$1);transitions=E$2(Gt$1);constructor(e){this.options=e,this.options.scrollPositionRestoration||=`disabled`,this.options.anchorScrolling||=`disabled`,this.isHydrating&&E$2(Zr$3).whenStable().then(()=>{this.isHydrating=!1})}init(){this.options.scrollPositionRestoration!==`disabled`&&this.viewportScroller.setHistoryScrollRestoration(`manual`),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof ue$1?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof $$1?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof ee$1&&e.code===Pe$3.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof Ne$2)||e.scrollBehavior===`manual`)return;let r={behavior:`instant`};e.position?this.options.scrollPositionRestoration===`top`?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration===`enabled`&&this.viewportScroller.scrollToPosition(e.position,r):e.anchor&&this.options.anchorScrolling===`enabled`?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!==`disabled`&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,r){if(this.isHydrating)return;let i=Tg(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>M$1(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<`u`&&requestAnimationFrame(o)}),this.zone.run(()=>{this.transitions.events.next(new Ne$2(e,this.lastSource===`popstate`?this.store[this.restoredId]:null,r,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static ɵfac=function(r){eD()};static ɵprov=ue$2({token:t,factory:t.ɵfac})}return t})();function Ha$2(t,...n){return Ho$2([{provide:Re$2,multi:!0,useValue:t},{provide:Z$1,useFactory:$i$2},{provide:Sh$1,multi:!0,useFactory:Fi$2},n.map(e=>e.ɵproviders)])}function $i$2(){return E$2(W$1).routerState.root}function ct$4(t,n){return{ɵkind:t,ɵproviders:n}}function Fi$2(){let t=E$2(le$1);return n=>{let e=t.get(Zr$3);if(n!==e.components[0])return;let r=t.get(W$1),i=t.get(zi$2);t.get(Zn$1)===1&&r.initialNavigation(),t.get(Bi$2,null,{optional:!0})?.setUpPreloading(),t.get(Li$2,null,{optional:!0})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var zi$2=new x$3(``,{factory:()=>new ee$2});var Zn$1=new x$3(``,{factory:()=>1});function qi$2(){return ct$4(2,[{provide:mv,useValue:!0},{provide:Zn$1,useValue:0},WD(()=>{let n=E$2(le$1);return n.get(rs$3,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(W$1),o=n.get(zi$2);Yt$1(i,()=>{r(!0)}),n.get(Gt$1).afterPreactivation=()=>(r(!0),o.closed?ds$3(void 0):o),i.initialNavigation()}))})])}function Hi$2(){return ct$4(3,[WD(()=>{E$2(W$1).setUpLocationChangeListener()}),{provide:Zn$1,useValue:2}])}var Bi$2=new x$3(``);function Ki$2(t){return ct$4(0,[{provide:Bi$2,useExisting:ki$2},{provide:st$3,useExisting:t}])}function Vi$2(t={}){return ct$4(8,[{provide:ot$2,useFactory:()=>new mi$2(t,E$2(Wn$1,{optional:!0}))}])}function Wi$3(t){Ie$2(`NgRouterViewTransitions`);return ct$4(9,[{provide:Qn$1,useValue:Ui$2},{provide:Yn$1,useValue:F$3({skipNextTransition:!!t?.skipInitialTransition},t)}])}var Gi$2=[Mi$3,{provide:de$1,useClass:ne$3},W$1,ce$2,{provide:Z$1,useFactory:$i$2},Vt$1];var Ba$1=(()=>{class t{constructor(){}static forRoot(e,r){return{ngModule:t,providers:[Gi$2,[],{provide:Re$2,multi:!0,useValue:e},[],r?.errorHandler?{provide:Jn$1,useValue:r.errorHandler}:[],{provide:he$1,useValue:r||{}},r?.useHash?Va$2():Wa$2(),Ka$1(),r?.preloadingStrategy?Ki$2(r.preloadingStrategy).ɵproviders:[],r?.initialNavigation?Ga$2(r):[],r?.bindToComponentInputs?Vi$2(typeof r.bindToComponentInputs==`object`?r.bindToComponentInputs:{}).ɵproviders:[],r?.enableViewTransitions?Wi$3().ɵproviders:[],Qa$2()]}}static forChild(e){return{ngModule:t,providers:[{provide:Re$2,multi:!0,useValue:e}]}}static ɵfac=function(r){return new(r||t)};static ɵmod=jD({type:t});static ɵinj=Du({})}return t})();function Ka$1(){return{provide:Li$2,useFactory:()=>{let t=E$2(lc$1),n=E$2(he$1);return n.scrollOffset&&t.setOffset(n.scrollOffset),new qa$2(n)}}}function Va$2(){return{provide:Ke$4,useClass:as$3}}function Wa$2(){return{provide:Ke$4,useClass:Si$3}}function Ga$2(t){return[t.initialNavigation===`disabled`?Hi$2().ɵproviders:[],t.initialNavigation===`enabledBlocking`?qi$2().ɵproviders:[]]}var Xn$1=new x$3(``);function Qa$2(){return[{provide:Xn$1,useFactory:Fi$2},{provide:Sh$1,multi:!0,useExisting:Xn$1}]}var Xt$1;(function(t){t.PosAccessToken=`Vzle`,t.BarcodeAccessToken=`uWwO`,t.TokenExpire=`nTmh`,t.TokenType=`GSFk`,t.Host=`tynU`,t.Username=`PNQf`,t.Brand=`gMse`,t.Roles=`XfGR`,t.PrintMode=`JPZP`,t.SelectedProfileTemplate=`gTeU`,t.Outlets=`ehLw`,t.UserRole=`kYqR`})(Xt$1||(Xt$1={}));var Ya$2=`00000000-0000-0000-0000-000000000000`;var D$1=[];for(let t=0;t<256;++t)D$1.push((t+256).toString(16).slice(1));function Qi$2(t,n=0){return(D$1[t[n+0]]+D$1[t[n+1]]+D$1[t[n+2]]+D$1[t[n+3]]+`-`+D$1[t[n+4]]+D$1[t[n+5]]+`-`+D$1[t[n+6]]+D$1[t[n+7]]+`-`+D$1[t[n+8]]+D$1[t[n+9]]+`-`+D$1[t[n+10]]+D$1[t[n+11]]+D$1[t[n+12]]+D$1[t[n+13]]+D$1[t[n+14]]+D$1[t[n+15]]).toLowerCase()}var Ja$2=/* @__PURE__ */ new Uint8Array(16);function er$2(){return crypto.getRandomValues(Ja$2)}function Xa$2(t,n,e){return!n&&!t&&crypto.randomUUID?crypto.randomUUID():Za$2(t,n,e)}function Za$2(t,n,e){t=t||{};let r=t.random??t.rng?.()??er$2();if(r.length<16)throw new Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,n){if(e=e||0,e<0||e+16>n.length)throw new RangeError(`UUID byte range ${e}:${e+15} is out of buffer bounds`);for(let i=0;i<16;++i)n[e+i]=r[i];return n}return Qi$2(r)}var tr$2=Xa$2;var Yi$2=Symbol(``);function Ji$2(t){return new Proxy(t,{has(n,e){return!!this.get(n,e,void 0)},get(n,e){let r=Tg(n);return!ts$2(r)||!(e in r)?(oi$3(n[e])&&n[e][Yi$2]&&delete n[e],n[e]):(oi$3(n[e])||(Object.defineProperty(n,e,{value:Hb(()=>n()[e]),configurable:!0}),n[e][Yi$2]=!0),Ji$2(n[e]))}})}var es$2=[WeakSet,WeakMap,Promise,Date,Error,RegExp,ArrayBuffer,DataView,Function];function ts$2(t){if(t===null||typeof t!=`object`||ns$2(t))return!1;let n=Object.getPrototypeOf(t);if(n===Object.prototype)return!0;for(;n&&n!==Object.prototype;){if(es$2.includes(n.constructor))return!1;n=Object.getPrototypeOf(n)}return n===Object.prototype}function ns$2(t){return typeof t?.[Symbol.iterator]==`function`}var rs$2=/* @__PURE__ */ new WeakMap;var U$2=Symbol(``);function T$4(t,...n){let e=Tg(()=>Zt$2(t)),r=n.reduce((a,c)=>F$3(F$3({},a),typeof c==`function`?c(a):c),e),i=t[U$2],o=Reflect.ownKeys(t[U$2]);for(let a of Reflect.ownKeys(r))if(o.includes(a)){let c=a;e[c]!==r[c]&&i[c].set(r[c])}os$2(t)}function Zt$2(t){let n=t[U$2];return Reflect.ownKeys(t[U$2]).reduce((e,r)=>{let i=n[r]();return G$1(F$3({},e),{[r]:i})},{})}function is$2(t){return rs$2.get(t[U$2])||[]}function os$2(t){let n=is$2(t);for(let e of n)as$2(t,e)}function as$2(t,n){Tg(()=>{n(Zt$2(t))})}function Xi$2(...t){let n=[...t],e=typeof n[0]==`function`?{}:n.shift(),r=n;return(()=>{class o{constructor(){let c=r.reduce((x,fe)=>fe(x),ss$2()),{stateSignals:s,props:u,methods:d,hooks:p}=c,f=F$3(F$3(F$3({},s),u),d);this[U$2]=c[U$2];for(let x of Reflect.ownKeys(f))this[x]=f[x];let{onInit:R,onDestroy:O}=p;R&&R(),O&&E$2(be$3).onDestroy(O)}static ɵfac=function(s){return new(s||o)};static ɵprov=ue$2({token:o,factory:o.ɵfac,providedIn:e.providedIn||null})}return o})()}function ss$2(){return{[U$2]:{},stateSignals:{},props:{},methods:{},hooks:{}}}function nr$2(...t){let n=typeof t[0]==`function`?t:t.slice(1);return e=>n.reduce((r,i)=>i(r),e)}function rr$2(t){return n=>{let e=t(F$3(F$3(F$3({[U$2]:n[U$2]},n.stateSignals),n.props),n.methods));return G$1(F$3({},n),{props:F$3(F$3({},n.props),e)})}}function ir$2(t){return rr$2(n=>{let e=t(n);return Reflect.ownKeys(e).reduce((i,o)=>{let a=e[o];return G$1(F$3({},i),{[o]:oi$3(a)?a:Hb(a)})},{})})}function Zi$2(t){return n=>{let e=F$3(F$3(F$3({[U$2]:n[U$2]},n.stateSignals),n.props),n.methods),r=typeof t==`function`?t(e):t,i=(o,a)=>a?()=>{o&&o(),a(e)}:o;return G$1(F$3({},n),{hooks:{onInit:i(n.hooks.onInit,r.onInit),onDestroy:i(n.hooks.onDestroy,r.onDestroy)}})}}function en$2(t){return n=>{let e=t(F$3(F$3(F$3({[U$2]:n[U$2]},n.stateSignals),n.props),n.methods));return G$1(F$3({},n),{methods:F$3(F$3({},n.methods),e)})}}function tn$2(t){return n=>{let e=typeof t==`function`?t():t,r=Reflect.ownKeys(e),i=n[U$2],o={};for(let a of r)i[a]=ti$3(e[a]),o[a]=Ji$2(i[a]);return G$1(F$3({},n),{stateSignals:F$3(F$3({},n.stateSignals),o)})}}var cs$2=new x$3(`ReduxDevtoolsConfig`);var us$2=(()=>{class t{#e=ti$3({});get stores(){return this.#e()}#n;#r=hd$1(()=>{if(this.#n===void 0)throw new Error(`no callback function defined`);let e=this.#e(),r=Object.entries(e).reduce((i,[o,a])=>G$1(F$3({},i),{[o]:Zt$2(a)}),{});this.#n(r)});track(e,r){this.#e.update(i=>G$1(F$3({},i),{[e]:r}))}onChange(e){this.#n=e}removeStore(e){this.#e.update(r=>Object.entries(r).reduce((i,[o,a])=>(o!==e&&(i[o]=a),i),{}))}notifyRenamedStore(e){this.#e()[e]&&this.#e.update(r=>F$3({},r))}static{this.ɵfac=function(r){return new(r||t)}}static{this.ɵprov=ue$2({token:t,factory:t.ɵfac,providedIn:`root`})}}return t})();var or$3=/* @__PURE__ */ new Set;var eo$1={send:()=>{}};function ls$2(t){if(!t.length)return{type:`Store Update`};let n=t.filter(r=>typeof r==`object`),e=[...new Set(t.map(r=>typeof r==`string`?r:r.type))].join(`, `);return n.length?G$1(F$3({},n[0]),{type:e}):{type:e}}var to$1=(()=>{class t{#e={};#n=sc$1(E$2(by));#r=[];#i=F$3({name:`NgRx SignalStore`},E$2(cs$2,{optional:!0}));#t={};#o=1;#a=E$2(Q$1).runOutsideAngular(()=>this.#n&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__.connect(this.#i):eo$1);constructor(){this.#n}ngOnDestroy(){or$3.clear()}syncToDevTools(e){let r=Object.entries(e).reduce((a,[c,s])=>{let{options:u,name:d}=this.#e[c];return a[d]=u.map(s),a},{});this.#t=F$3(F$3({},this.#t),r);let o=ls$2(Array.from(or$3));or$3.clear(),this.#a.send(o,this.#t)}getNextId(){return String(this.#o++)}addStore(e,r,i,o){let a=r,c=Object.values(this.#e).map(u=>u.name);if(c.includes(a)&&!o.indexNames)throw new Error(`An instance of the store ${a} already exists. Enable automatic indexing via withDevTools('${a}', { indexNames: true }), or rename it upon instantiation.`);for(let u=1;c.includes(a);u++)a=`${r}-${u}`;this.#e[e]={name:a,options:o};let s=o.tracker;this.#r.includes(s)||this.#r.push(s),s.onChange(u=>this.syncToDevTools(u)),s.track(e,i)}removeStore(e){let r=this.#e[e].name;this.#e=Object.entries(this.#e).reduce((i,[o,a])=>(o!==e&&(i[o]=a),i),{}),this.#t=Object.entries(this.#t).reduce((i,[o,a])=>(o!==r&&(i[o]=a),i),{});for(let i of this.#r)i.removeStore(e)}renameStore(e,r){let i=this.#e[e];if(!i)return;let o=i.name;if(o===r)return;if(Object.entries(this.#e).filter(([c])=>c!==e).map(([,c])=>c.name).includes(r))throw new Error(`NgRx Toolkit/DevTools: cannot rename from ${o} to ${r}. ${r} is already assigned to another SignalStore instance.`);this.#e=Object.entries(this.#e).reduce((c,[s,u])=>(s===e?c[s]=G$1(F$3({},u),{name:r}):c[s]=u,c),{}),this.#t=Object.entries(this.#t).reduce((c,[s,u])=>(s!==o&&(c[s]=u),c),{}),this.#r.forEach(c=>c.notifyRenamedStore(e))}static{this.ɵfac=function(r){return new(r||t)}}static{this.ɵprov=ue$2({token:t,factory:t.ɵfac,providedIn:`root`})}}return t})();var ds$2=`___renameDevtoolsName`;var no$1=`___uniqueDevtoolsId`;var hs=Symbol(`DEVTOOL_PROP`);function ro$1(t,...n){return nr$2(en$2(()=>{let e=E$2(to$1),r=e.getNextId();return{[ds$2]:i=>{e.renameStore(r,i)},[no$1]:()=>r}}),rr$2(()=>({[hs]:n.filter(Boolean).map(e=>e.name)})),Zi$2(e=>{let r=E$2(to$1),i=String(e[no$1]());return{onInit(){let o={indexNames:!n.some(a=>a.indexNames===!1),map:n.find(a=>a.map)?.map??(a=>a),tracker:E$2(n.find(a=>a.tracker)?.tracker||us$2)};r.addStore(i,t,e,o)},onDestroy(){r.removeStore(i)}}}))}nr$2(tn$2({}));var io$1={layoutOptions:{theme:`light`,dir:`ltr`,layout:`vertical`,sidebartype:`full`,sidebarpos:`fixed`,headerpos:`fixed`,boxed:`full`,navbarbg:`skin6`,sidebarbg:`skin6`,logobg:`skin6`,active:1,tabStatus:`justify`,isCollapsed:!1,innerWidth:window.innerWidth,defaultSidebar:`full`,showSettings:!1,showMobileMenu:!1,expandLogo:!1},profileTemplate:null,priceLabelTemplate:null,outlets:null,outletPriceSelected:null,taxs:null,currentStep:1,product:null,cartItemsMap:/* @__PURE__ */ new Map,userRole:null};function oo$1(t){return t.unitPrice!=null?t.unitPrice:t.promotion?t.product.UnitPrice:t.outletPrice?.Price!=null?t.outletPrice.Price:t.product.UnitPrice}function ao$1(t,n){let e=n;return t.promotion?.Discount!=null&&(e=e*(1-t.promotion.Discount/100)),t.outletPrice?.PriceDiscount!=null&&(e=e*(1-t.outletPrice.PriceDiscount/100)),e}var eu$1=Xi$2({providedIn:`root`},ro$1(`appStore`),tn$2(io$1),ir$2(t=>{return{cartItems:Hb(()=>Array.from(t.cartItemsMap().values()).map(i=>{let o=oo$1(i),c=ao$1(i,i.promotion?.UnitPrice||i.outletPrice?.Price||i.unitPrice||i.product.UnitPrice);return G$1(F$3({},i),{baseUnitPrice:o,effectiveUnitPrice:c})})),flattenedCartUnits:Hb(()=>Array.from(t.cartItemsMap().values()).flatMap(i=>{let o=oo$1(i),c=ao$1(i,i.promotion?.UnitPrice||i.outletPrice?.Price||i.unitPrice||i.product.UnitPrice),s=t.profileTemplate()?.ConfigObject,u=s?.TaxType?.ID!=null&&t.taxs()?t.taxs().find(p=>p.ID===s.TaxType.ID)?.Rate:void 0;s?.PriceWithTax&&u!=null&&(c+=c*u/100);let d=Math.max(0,i.quantity??0);return Array.from({length:d},()=>({id:tr$2(),product:i.product,promotion:i.promotion,outletPrice:i.outletPrice,baseUnitPrice:o,effectiveUnitPrice:c}))})),userRole:Hb(()=>t.userRole()??localStorage.getItem(Xt$1.UserRole))}}),en$2(t=>({updateLayoutOptions(n){T$4(t,e=>G$1(F$3({},e),{layoutOptions:n}))},updateProfileTemplate(n){T$4(t,e=>G$1(F$3({},e),{profileTemplate:n}))},updatePriceLabelTemplate(n){T$4(t,e=>G$1(F$3({},e),{priceLabelTemplate:n}))},updateOutlets(n){T$4(t,e=>G$1(F$3({},e),{outlets:n}))},updateTaxes(n){T$4(t,e=>G$1(F$3({},e),{taxs:n}))},updateCurrentStep(n){T$4(t,e=>G$1(F$3({},e),{currentStep:n}))},updateProduct(n){T$4(t,e=>G$1(F$3({},e),{product:n}))},addProductToCart(n,e,r,i=1,o){T$4(t,a=>{let c=n.ID,u=(a.cartItemsMap.get(c)?.quantity??0)+i;if(u<=0){let p=new Map(a.cartItemsMap);return p.delete(c),G$1(F$3({},a),{cartItemsMap:p})}let d=new Map(a.cartItemsMap);return d.set(c,{product:n,promotion:e,outletPrice:r,quantity:u,unitPrice:o,baseUnitPrice:0,effectiveUnitPrice:0}),G$1(F$3({},a),{cartItemsMap:d})})},updateCartItemQuantity(n,e,r,i,o){T$4(t,a=>{if(e<=0){let u=new Map(a.cartItemsMap);return u.delete(n),G$1(F$3({},a),{cartItemsMap:u})}let c=a.cartItemsMap.get(n);if(!c)return a;let s=new Map(a.cartItemsMap);return s.set(n,F$3(F$3(F$3(G$1(F$3({},c),{quantity:e}),r!==void 0&&{promotion:r}),i!==void 0&&{outletPrice:i}),o!==void 0&&{unitPrice:o})),G$1(F$3({},a),{cartItemsMap:s})})},removeProductFromCart(n){T$4(t,e=>{if(!e.cartItemsMap.has(n))return e;let r=new Map(e.cartItemsMap);return r.delete(n),G$1(F$3({},e),{cartItemsMap:r})})},clearCartItems(){T$4(t,n=>G$1(F$3({},n),{cartItemsMap:/* @__PURE__ */ new Map}))},clearAll(){T$4(t,()=>F$3({},io$1))},updateUserRole(n){T$4(t,e=>G$1(F$3({},e),{userRole:n}))},updateOutletPriceSelected(n){T$4(t,e=>G$1(F$3({},e),{outletPriceSelected:n}))}})));function U$1(t){t||(t=E$2(be$3));let e=new b$3(n=>{if(t.destroyed){n.next();return}return t.onDestroy(n.next.bind(n))});return n=>n.pipe(Fm(e))}function T$3(t,e){let n=e?.injector??E$2(le$1),r=new Jn$2(1),u=hd$1(()=>{let o;try{o=t()}catch(i){Tg(()=>r.error(i));return}Tg(()=>r.next(o))},{injector:n,manualCleanup:!0});return n.get(be$3).onDestroy(()=>{u.destroy(),r.complete()}),r.asObservable()}function F$1(t,e){let r=!e?.manualCleanup?e?.injector?.get(be$3)??E$2(be$3):null,u=x$2(e?.equal),o;e?.requireSync?o=ti$3({kind:0},{equal:u}):o=ti$3({kind:1,value:e?.initialValue},{equal:u});let i,c=t.subscribe({next:s=>o.set({kind:1,value:s}),error:s=>{o.set({kind:2,error:s}),i?.()},complete:()=>{i?.()}});if(e?.requireSync&&o().kind===0)throw new _$1(601,!1);return i=r?.onDestroy(c.unsubscribe.bind(c)),Hb(()=>{let s=o();switch(s.kind){case 1:return s.value;case 2:throw s.error;case 0:throw new _$1(601,!1)}},{equal:e?.equal})}function x$2(t=Object.is){return(e,n)=>e.kind===1&&n.kind===1&&t(e.value,n.value)}function L$2(t){t===void 0&&(t=E$2(le$1));let e=t.get(Oa$3);return n=>new b$3(r=>{let u=e.add(),o=!1;function i(){o||(u(),o=!0)}let c=n.subscribe({next:s=>{r.next(s),i()},complete:()=>{r.complete(),i()},error:s=>{r.error(s),i()}});return c.add(()=>{r.unsubscribe(),i()}),c})}var Or$1=function(n){let e=[],t=0;for(let r=0;r<n.length;r++){let i=n.charCodeAt(r);i<128?e[t++]=i:i<2048?(e[t++]=i>>6|192,e[t++]=i&63|128):(i&64512)===55296&&r+1<n.length&&(n.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(n.charCodeAt(++r)&1023),e[t++]=i>>18|240,e[t++]=i>>12&63|128,e[t++]=i>>6&63|128,e[t++]=i&63|128):(e[t++]=i>>12|224,e[t++]=i>>6&63|128,e[t++]=i&63|128)}return e};var Ts$1=function(n){let e=[],t=0,r=0;for(;t<n.length;){let i=n[t++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){let s=n[t++];e[r++]=String.fromCharCode((i&31)<<6|s&63)}else if(i>239&&i<365){let s=n[t++],o=n[t++],c=n[t++],u=((i&7)<<18|(s&63)<<12|(o&63)<<6|c&63)-65536;e[r++]=String.fromCharCode(55296+(u>>10)),e[r++]=String.fromCharCode(56320+(u&1023))}else{let s=n[t++],o=n[t++];e[r++]=String.fromCharCode((i&15)<<12|(s&63)<<6|o&63)}}return e.join(``)};var tt$1={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`,get ENCODED_VALS(){return this.ENCODED_VALS_BASE+`+/=`},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+`-_.`},HAS_NATIVE_SUPPORT:typeof atob==`function`,encodeByteArray(n,e){if(!Array.isArray(n))throw Error(`encodeByteArray takes an array as a parameter`);this.init_();let t=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<n.length;i+=3){let s=n[i],o=i+1<n.length,c=o?n[i+1]:0,u=i+2<n.length,l=u?n[i+2]:0,d=s>>2,f=(s&3)<<4|c>>4,m=(c&15)<<2|l>>6,_=l&63;u||(_=64,o||(m=64)),r.push(t[d],t[f],t[m],t[_])}return r.join(``)},encodeString(n,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(n):this.encodeByteArray(Or$1(n),e)},decodeString(n,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(n):Ts$1(this.decodeStringToByteArray(n,e))},decodeStringToByteArray(n,e){this.init_();let t=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<n.length;){let s=t[n.charAt(i++)],c=i<n.length?t[n.charAt(i)]:0;++i;let l=i<n.length?t[n.charAt(i)]:64;++i;let f=i<n.length?t[n.charAt(i)]:64;if(++i,s==null||c==null||l==null||f==null)throw new Qt$1;let m=s<<2|c>>4;if(r.push(m),l!==64){let _=c<<4&240|l>>2;if(r.push(_),f!==64){let J=l<<6&192|f;r.push(J)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let n=0;n<this.ENCODED_VALS.length;n++)this.byteToCharMap_[n]=this.ENCODED_VALS.charAt(n),this.charToByteMap_[this.byteToCharMap_[n]]=n,this.byteToCharMapWebSafe_[n]=this.ENCODED_VALS_WEBSAFE.charAt(n),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[n]]=n,n>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(n)]=n,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(n)]=n)}}};var Qt$1=class extends Error{constructor(){super(...arguments),this.name=`DecodeBase64StringError`}};var ws$1=function(n){let e=Or$1(n);return tt$1.encodeByteArray(e,!0)};var tn$1=function(n){return ws$1(n).replace(/\./g,``)};var nt$1=function(n){try{return tt$1.decodeString(n,!0)}catch(e){console.error(`base64Decode failed: `,e)}return null};function Dr$1(){if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(typeof global<`u`)return global;throw new Error(`Unable to locate global object.`)}var ys$1=()=>Dr$1().__FIREBASE_DEFAULTS__;var As$1=()=>{if(typeof process>`u`||typeof process.env>`u`)return;let n=process.env.__FIREBASE_DEFAULTS__;if(n)return JSON.parse(n)};var vs$1=()=>{if(typeof document>`u`)return;let n;try{n=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(t){return}let e=n&&nt$1(n[1]);return e&&JSON.parse(e)};var nn$1=()=>{try{return ys$1()||As$1()||vs$1()}catch(n){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${n}`);return}};var Lr$1=n=>nn$1()?.emulatorHosts?.[n];var rn$1=()=>nn$1()?.config;var sn$1=n=>nn$1()?.[`_${n}`];var M=class{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,r)=>{t?this.reject(t):this.resolve(r),typeof e==`function`&&(this.promise.catch(()=>{}),e.length===1?e(t):e(t,r))}}};function w(){return typeof navigator<`u`&&typeof navigator.userAgent==`string`?navigator.userAgent:``}function Mr$1(){return typeof window<`u`&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(w())}function Ur$1(){return typeof navigator<`u`&&navigator.userAgent===`Cloudflare-Workers`}function Fr$1(){let n=typeof chrome==`object`?chrome.runtime:typeof browser==`object`?browser.runtime:void 0;return typeof n==`object`&&n.id!==void 0}function xr$1(){return typeof navigator==`object`&&navigator.product===`ReactNative`}function Vr$1(){let n=w();return n.indexOf(`MSIE `)>=0||n.indexOf(`Trident/`)>=0}function rt$1(){try{return typeof indexedDB==`object`}catch(n){return!1}}function $r$1(){return new Promise((n,e)=>{try{let t=!0,r=`validate-browser-context-for-indexeddb-analytics-module`,i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),t||self.indexedDB.deleteDatabase(r),n(!0)},i.onupgradeneeded=()=>{t=!1},i.onerror=()=>{e(i.error?.message||``)}}catch(t){e(t)}})}var bs=`FirebaseError`;var S$1=class n extends Error{constructor(e,t,r){super(t),this.code=e,this.customData=r,this.name=bs,Object.setPrototypeOf(this,n.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,R$1.prototype.create)}};var R$1=class{constructor(e,t,r){this.service=e,this.serviceName=t,this.errors=r}create(e,...t){let r=t[0]||{},i=`${this.service}/${e}`,s=this.errors[e],o=s?ks(s,r):`Error`;return new S$1(i,`${this.serviceName}: ${o} (${i}).`,r)}};function ks(n,e){try{let t=0,r=``;for(;t<n.length;){let i=n.indexOf(`{$`,t);if(i===-1){r+=n.substring(t);break}let s=n.indexOf(`}`,i+2);if(s===-1){r+=n.substring(t);break}let o=n.substring(i+2,s),c=e[o];r+=n.substring(t,i)+(c!=null?String(c):`<${o}?>`),t=s+1}return r}catch(t){return n}}function Wr$1(n){for(let e in n)if(Object.prototype.hasOwnProperty.call(n,e))return!1;return!0}function z(n,e){if(n===e)return!0;let t=Object.keys(n),r=Object.keys(e);for(let i of t){if(!r.includes(i))return!1;let s=n[i],o=e[i];if(Nr$1(s)&&Nr$1(o)){if(!z(s,o))return!1}else if(s!==o)return!1}for(let i of r)if(!t.includes(i))return!1;return!0}function Nr$1(n){return n!==null&&typeof n==`object`}function de(n){let e=[];for(let[t,r]of Object.entries(n))Array.isArray(r)?r.forEach(i=>{e.push(encodeURIComponent(t)+`=`+encodeURIComponent(i))}):e.push(encodeURIComponent(t)+`=`+encodeURIComponent(r));return e.length?`&`+e.join(`&`):``}function he(n){let e={};return n.replace(/^\?/,``).split(`&`).forEach(r=>{if(r){let[i,s]=r.split(`=`);e[decodeURIComponent(i)]=decodeURIComponent(s)}}),e}function fe(n){let e=n.indexOf(`?`);if(!e)return``;let t=n.indexOf(`#`,e);return n.substring(e,t>0?t:void 0)}function Hr$1(n,e){let t=new en$1(n,e);return t.subscribe.bind(t)}var en$1=class{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(()=>{e(this)}).catch(r=>{this.error(r)})}next(e){this.forEachObserver(t=>{t.next(e)})}error(e){this.forEachObserver(t=>{t.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,t,r){let i;if(e===void 0&&t===void 0&&r===void 0)throw new Error(`Missing Observer.`);Ss(e,[`next`,`error`,`complete`])?i=e:i={next:e,error:t,complete:r},i.next===void 0&&(i.next=Zt$1),i.error===void 0&&(i.error=Zt$1),i.complete===void 0&&(i.complete=Zt$1);let s=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?i.error(this.finalError):i.complete()}catch(o){}}),this.observers.push(i),s}unsubscribeOne(e){this.observers===void 0||this.observers[e]===void 0||(delete this.observers[e],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then(()=>{if(this.observers!==void 0&&this.observers[e]!==void 0)try{t(this.observers[e])}catch(r){typeof console<`u`&&console.error&&console.error(r)}})}close(e){this.finalized||(this.finalized=!0,e!==void 0&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}};function Ss(n,e){if(typeof n!=`object`||n===null)return!1;for(let t of e)if(t in n&&typeof n[t]==`function`)return!0;return!1}function Zt$1(){}function U(n){return n&&n._delegate?n._delegate:n}function it$1(n){try{return(n.startsWith(`http://`)||n.startsWith(`https://`)?new URL(n).hostname:n).endsWith(`.cloudworkstations.dev`)}catch(e){return!1}}function Br$1(n){return M$1(this,null,function*(){return(yield fetch(n,{credentials:`include`})).ok})}var v=class{constructor(e,t,r){this.name=e,this.instanceFactory=t,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode=`LAZY`,this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}};var Z=`[DEFAULT]`;var on$1=class{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=/* @__PURE__ */ new Map,this.instancesDeferred=/* @__PURE__ */ new Map,this.instancesOptions=/* @__PURE__ */ new Map,this.onInitCallbacks=/* @__PURE__ */ new Map}get(e){let t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){let r=new M;if(this.instancesDeferred.set(t,r),this.isInitialized(t)||this.shouldAutoInitialize())try{let i=this.getOrInitializeService({instanceIdentifier:t});i&&r.resolve(i)}catch(i){}}return this.instancesDeferred.get(t).promise}getImmediate(e){let t=this.normalizeInstanceIdentifier(e?.identifier),r=e?.optional??!1;if(this.isInitialized(t)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:t})}catch(i){if(r)return null;throw i}else{if(r)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(Ps$1(e))try{this.getOrInitializeService({instanceIdentifier:Z})}catch(t){}for(let[t,r]of this.instancesDeferred.entries()){let i=this.normalizeInstanceIdentifier(t);try{let s=this.getOrInitializeService({instanceIdentifier:i});r.resolve(s)}catch(s){}}}}clearInstance(e=Z){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}delete(){return M$1(this,null,function*(){let e=Array.from(this.instances.values());yield Promise.all([...e.filter(t=>`INTERNAL`in t).map(t=>t.INTERNAL.delete()),...e.filter(t=>`_delete`in t).map(t=>t._delete())])})}isComponentSet(){return this.component!=null}isInitialized(e=Z){return this.instances.has(e)}getOptions(e=Z){return this.instancesOptions.get(e)||{}}initialize(e={}){let{options:t={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let i=this.getOrInitializeService({instanceIdentifier:r,options:t});for(let[s,o]of this.instancesDeferred.entries())r===this.normalizeInstanceIdentifier(s)&&o.resolve(i);return i}onInit(e,t){let r=this.normalizeInstanceIdentifier(t),i=this.onInitCallbacks.get(r)??/* @__PURE__ */ new Set;i.add(e),this.onInitCallbacks.set(r,i);let s=this.instances.get(r);return s&&e(s,r),()=>{i.delete(e)}}invokeOnInitCallbacks(e,t){let r=this.onInitCallbacks.get(t);if(r)for(let i of r)try{i(e,t)}catch(s){}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:Rs$1(e),options:t}),this.instances.set(e,r),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch(i){}return r||null}normalizeInstanceIdentifier(e=Z){return this.component?this.component.multipleInstances?e:Z:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!==`EXPLICIT`}};function Rs$1(n){return n===Z?void 0:n}function Ps$1(n){return n.instantiationMode===`EAGER`}var st$2=class{constructor(e){this.name=e,this.providers=/* @__PURE__ */ new Map}addComponent(e){let t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);let t=new on$1(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}};var Cs$1=[];var g;(function(n){n[n.DEBUG=0]=`DEBUG`,n[n.VERBOSE=1]=`VERBOSE`,n[n.INFO=2]=`INFO`,n[n.WARN=3]=`WARN`,n[n.ERROR=4]=`ERROR`,n[n.SILENT=5]=`SILENT`})(g||(g={}));var Ns$1={debug:g.DEBUG,verbose:g.VERBOSE,info:g.INFO,warn:g.WARN,error:g.ERROR,silent:g.SILENT};var Os$1=g.INFO;var Ds$1={[g.DEBUG]:`log`,[g.VERBOSE]:`log`,[g.INFO]:`info`,[g.WARN]:`warn`,[g.ERROR]:`error`};var Ls$1=(n,e,...t)=>{if(e<n.logLevel)return;let r=(/* @__PURE__ */ new Date()).toISOString(),i=Ds$1[e];if(i)console[i](`[${r}] ${n.name}:`,...t);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)};var j=class{constructor(e){this.name=e,this._logLevel=Os$1,this._logHandler=Ls$1,this._userLogHandler=null,Cs$1.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in g))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e==`string`?Ns$1[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if(typeof e!=`function`)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,g.DEBUG,...e),this._logHandler(this,g.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,g.VERBOSE,...e),this._logHandler(this,g.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,g.INFO,...e),this._logHandler(this,g.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,g.WARN,...e),this._logHandler(this,g.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,g.ERROR,...e),this._logHandler(this,g.ERROR,...e)}};var Ms$1=(n,e)=>e.some(t=>n instanceof t);var zr$1;var jr$1;function Us$1(){return zr$1||(zr$1=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Fs$1(){return jr$1||(jr$1=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var qr$1=/* @__PURE__ */ new WeakMap;var cn$1=/* @__PURE__ */ new WeakMap;var Kr$1=/* @__PURE__ */ new WeakMap;var an$1=/* @__PURE__ */ new WeakMap;var ln$1=/* @__PURE__ */ new WeakMap;function xs(n){let e=new Promise((t,r)=>{let i=()=>{n.removeEventListener(`success`,s),n.removeEventListener(`error`,o)},s=()=>{t(O(n.result)),i()},o=()=>{r(n.error),i()};n.addEventListener(`success`,s),n.addEventListener(`error`,o)});return e.then(t=>{t instanceof IDBCursor&&qr$1.set(t,n)}).catch(()=>{}),ln$1.set(e,n),e}function Vs$1(n){if(cn$1.has(n))return;let e=new Promise((t,r)=>{let i=()=>{n.removeEventListener(`complete`,s),n.removeEventListener(`error`,o),n.removeEventListener(`abort`,o)},s=()=>{t(),i()},o=()=>{r(n.error||new DOMException(`AbortError`,`AbortError`)),i()};n.addEventListener(`complete`,s),n.addEventListener(`error`,o),n.addEventListener(`abort`,o)});cn$1.set(n,e)}var un$2={get(n,e,t){if(n instanceof IDBTransaction){if(e===`done`)return cn$1.get(n);if(e===`objectStoreNames`)return n.objectStoreNames||Kr$1.get(n);if(e===`store`)return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return O(n[e])},set(n,e,t){return n[e]=t,!0},has(n,e){return n instanceof IDBTransaction&&(e===`done`||e===`store`)?!0:e in n}};function Gr$1(n){un$2=n(un$2)}function $s$1(n){return n===IDBDatabase.prototype.transaction&&!(`objectStoreNames`in IDBTransaction.prototype)?function(e,...t){let r=n.call(ot$1(this),e,...t);return Kr$1.set(r,e.sort?e.sort():[e]),O(r)}:Fs$1().includes(n)?function(...e){return n.apply(ot$1(this),e),O(qr$1.get(this))}:function(...e){return O(n.apply(ot$1(this),e))}}function Ws(n){return typeof n==`function`?$s$1(n):(n instanceof IDBTransaction&&Vs$1(n),Ms$1(n,Us$1())?new Proxy(n,un$2):n)}function O(n){if(n instanceof IDBRequest)return xs(n);if(an$1.has(n))return an$1.get(n);let e=Ws(n);return e!==n&&(an$1.set(n,e),ln$1.set(e,n)),e}var ot$1=n=>ln$1.get(n);function Yr$1(n,e,{blocked:t,upgrade:r,blocking:i,terminated:s}={}){let o=indexedDB.open(n,e),c=O(o);return r&&o.addEventListener(`upgradeneeded`,u=>{r(O(o.result),u.oldVersion,u.newVersion,O(o.transaction),u)}),t&&o.addEventListener(`blocked`,u=>t(u.oldVersion,u.newVersion,u)),c.then(u=>{s&&u.addEventListener(`close`,()=>s()),i&&u.addEventListener(`versionchange`,l=>i(l.oldVersion,l.newVersion,l))}).catch(()=>{}),c}var Hs=[`get`,`getKey`,`getAll`,`getAllKeys`,`count`];var Bs$1=[`put`,`add`,`delete`,`clear`];var dn$2=/* @__PURE__ */ new Map;function Jr$1(n,e){if(!(n instanceof IDBDatabase&&!(e in n)&&typeof e==`string`))return;if(dn$2.get(e))return dn$2.get(e);let t=e.replace(/FromIndex$/,``),r=e!==t,i=Bs$1.includes(t);if(!(t in(r?IDBIndex:IDBObjectStore).prototype)||!(i||Hs.includes(t)))return;let s=function(o,...c){return M$1(this,null,function*(){let u=this.transaction(o,i?`readwrite`:`readonly`),l=u.store;return r&&(l=l.index(c.shift())),(yield Promise.all([l[t](...c),i&&u.done]))[0]})};return dn$2.set(e,s),s}Gr$1(n=>G$1(F$3({},n),{get:(e,t,r)=>Jr$1(e,t)||n.get(e,t,r),has:(e,t)=>!!Jr$1(e,t)||n.has(e,t)}));var fn$2=class{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(t=>{if(zs(t)){let r=t.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(t=>t).join(` `)}};function zs(n){return n.getComponent()?.type===`VERSION`}var pn$1=`@firebase/app`;var Xr$2=`0.16.2`;var x$1=new j(`@firebase/app`);var js=`@firebase/app-compat`;var qs=`@firebase/analytics-compat`;var Ks$1=`@firebase/analytics`;var Gs$1=`@firebase/app-check-compat`;var Js$1=`@firebase/app-check`;var Ys$1=`@firebase/auth`;var Xs$1=`@firebase/auth-compat`;var Zs$1=`@firebase/database`;var Qs$1=`@firebase/data-connect`;var eo=`@firebase/database-compat`;var to=`@firebase/functions`;var no=`@firebase/functions-compat`;var ro=`@firebase/installations`;var io=`@firebase/installations-compat`;var so=`@firebase/messaging`;var oo=`@firebase/messaging-compat`;var ao=`@firebase/performance`;var co=`@firebase/performance-compat`;var uo=`@firebase/remote-config`;var lo=`@firebase/remote-config-compat`;var ho=`@firebase/storage`;var fo=`@firebase/storage-compat`;var po=`@firebase/firestore`;var mo=`@firebase/ai`;var go=`@firebase/firestore-compat`;var Io=`firebase`;var _o=`12.19.0`;var mn$2=`[DEFAULT]`;var Eo={[pn$1]:`fire-core`,[js]:`fire-core-compat`,[Ks$1]:`fire-analytics`,[qs]:`fire-analytics-compat`,[Js$1]:`fire-app-check`,[Gs$1]:`fire-app-check-compat`,[Ys$1]:`fire-auth`,[Xs$1]:`fire-auth-compat`,[Zs$1]:`fire-rtdb`,[Qs$1]:`fire-data-connect`,[eo]:`fire-rtdb-compat`,[to]:`fire-fn`,[no]:`fire-fn-compat`,[ro]:`fire-iid`,[io]:`fire-iid-compat`,[so]:`fire-fcm`,[oo]:`fire-fcm-compat`,[ao]:`fire-perf`,[co]:`fire-perf-compat`,[uo]:`fire-rc`,[lo]:`fire-rc-compat`,[ho]:`fire-gcs`,[fo]:`fire-gcs-compat`,[po]:`fire-fst`,[go]:`fire-fst-compat`,[mo]:`fire-vertex`,"fire-js":`fire-js`,[Io]:`fire-js-all`};var we=/* @__PURE__ */ new Map;var To=/* @__PURE__ */ new Map;var gn$1=/* @__PURE__ */ new Map;function Zr$1(n,e){try{n.container.addComponent(e)}catch(t){x$1.debug(`Component ${e.name} failed to register with FirebaseApp ${n.name}`,t)}}function V(n){let e=n.name;if(gn$1.has(e))return x$1.debug(`There were multiple attempts to register component ${e}.`),!1;gn$1.set(e,n);for(let t of we.values())Zr$1(t,n);for(let t of To.values())Zr$1(t,n);return!0}function at$2(n,e){let t=n.container.getProvider(`heartbeat`).getImmediate({optional:!0});return t&&t.triggerHeartbeat(),n.container.getProvider(e)}function P$1(n){return n==null?!1:n.settings!==void 0}var F=new R$1(`app`,`Firebase`,{"no-app":`No Firebase App '{$appName}' has been created - call initializeApp() first`,"bad-app-name":`Illegal App name: '{$appName}'`,"duplicate-app":`Firebase App named '{$appName}' already exists with different {$mismatchedParam}. Existing: '{$oldValue}'. New: '{$newValue}'.`,"app-deleted":`Firebase App named '{$appName}' already deleted`,"server-app-deleted":`Firebase Server App has been deleted`,"no-options":`Need to provide options, when not being deployed to hosting via source.`,"invalid-app-argument":`firebase.{$appName}() takes either no argument or a Firebase App instance.`,"invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":`Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.`,"idb-get":`Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.`,"idb-set":`Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.`,"idb-delete":`Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.`,"finalization-registry-not-supported":`FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.`,"invalid-server-app-environment":`FirebaseServerApp is not for use in browser environments.`});var In$2=class{constructor(e,t,r){this._isDeleted=!1,this._options=F$3({},e),this._config=F$3({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new v(`app`,()=>this,`PUBLIC`))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw F.create(`app-deleted`,{appName:this._name})}};var pe$1=_o;function Tn$1(n,e={}){let t=n;typeof e!=`object`&&(e={name:e});let r=F$3({name:mn$2,automaticDataCollectionEnabled:!0},e),i=r.name;if(typeof i!=`string`||!i)throw F.create(`bad-app-name`,{appName:String(i)});if(t||(t=rn$1()),!t)throw F.create(`no-options`);let s=we.get(i);if(s)if(z(t,s.options)){if(z(r,s.config))return s;throw F.create(`duplicate-app`,{appName:i,mismatchedParam:`config`,oldValue:JSON.stringify(s.config),newValue:JSON.stringify(r)})}else throw F.create(`duplicate-app`,{appName:i,mismatchedParam:`options`,oldValue:JSON.stringify(s.options),newValue:JSON.stringify(t)});let o=new st$2(i);for(let u of gn$1.values())o.addComponent(u);let c=new In$2(t,r,o);return we.set(i,c),c}function Ae$1(n=mn$2){let e=we.get(n);if(!e&&n===mn$2&&rn$1())return Tn$1();if(!e)throw F.create(`no-app`,{appName:n});return e}function ct$3(){return Array.from(we.values())}function T$2(n,e,t){let r=Eo[n]??n;t&&(r+=`-${t}`);let i=r.match(/\s|\//),s=e.match(/\s|\//);if(i||s){let o=[`Unable to register library "${r}" with version "${e}":`];i&&o.push(`library name "${r}" contains illegal characters (whitespace or "/")`),i&&s&&o.push(`and`),s&&o.push(`version name "${e}" contains illegal characters (whitespace or "/")`),x$1.warn(o.join(` `));return}V(new v(`${r}-version`,()=>({library:r,version:e}),`VERSION`))}var yo=`firebase-heartbeat-database`;var Ao=1;var ye$2=`firebase-heartbeat-store`;var hn$1=null;function ni$1(){return hn$1||(hn$1=Yr$1(yo,Ao,{upgrade:(n,e)=>{switch(e){case 0:try{n.createObjectStore(ye$2)}catch(t){console.warn(t)}}}}).catch(n=>{throw F.create(`idb-open`,{originalErrorMessage:n.message})})),hn$1}function vo(n){return M$1(this,null,function*(){try{let t=(yield ni$1()).transaction(ye$2),r=yield t.objectStore(ye$2).get(ri$1(n));return yield t.done,r}catch(e){if(e instanceof S$1)x$1.warn(e.message);else{let t=F.create(`idb-get`,{originalErrorMessage:e?.message});x$1.warn(t.message)}}})}function Qr$1(n,e){return M$1(this,null,function*(){try{let r=(yield ni$1()).transaction(ye$2,`readwrite`);yield r.objectStore(ye$2).put(e,ri$1(n)),yield r.done}catch(t){if(t instanceof S$1)x$1.warn(t.message);else{let r=F.create(`idb-set`,{originalErrorMessage:t?.message});x$1.warn(r.message)}}})}function ri$1(n){return`${n.name}!${n.options.appId}`}var bo=1024;var ko=30;var _n$1=class{constructor(e){this.container=e,this._heartbeatsCache=null;let t=this.container.getProvider(`app`).getImmediate();this._storage=new En$1(t),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}triggerHeartbeat(){return M$1(this,null,function*(){try{let t=this.container.getProvider(`platform-logger`).getImmediate().getPlatformInfoString(),r=ei$1();if(this._heartbeatsCache?.heartbeats==null&&(this._heartbeatsCache=yield this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null)||this._heartbeatsCache.lastSentHeartbeatDate===r||this._heartbeatsCache.heartbeats.some(i=>i.date===r))return;if(this._heartbeatsCache.heartbeats.push({date:r,agent:t}),this._heartbeatsCache.heartbeats.length>ko){let i=Ro(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(i,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(e){x$1.warn(e)}})}getHeartbeatsHeader(){return M$1(this,null,function*(){try{if(this._heartbeatsCache===null&&(yield this._heartbeatsCachePromise),this._heartbeatsCache?.heartbeats==null||this._heartbeatsCache.heartbeats.length===0)return``;let e=ei$1(),{heartbeatsToSend:t,unsentEntries:r}=So(this._heartbeatsCache.heartbeats),i=tn$1(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,r.length>0?(this._heartbeatsCache.heartbeats=r,yield this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}catch(e){return x$1.warn(e),``}})}};function ei$1(){return(/* @__PURE__ */ new Date()).toISOString().substring(0,10)}function So(n,e=bo){let t=[],r=n.slice();for(let i of n){let s=t.find(o=>o.agent===i.agent);if(s){if(s.dates.push(i.date),ti$1(t)>e){s.dates.pop();break}}else if(t.push({agent:i.agent,dates:[i.date]}),ti$1(t)>e){t.pop();break}r=r.slice(1)}return{heartbeatsToSend:t,unsentEntries:r}}var En$1=class{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return M$1(this,null,function*(){return rt$1()?$r$1().then(()=>!0).catch(()=>!1):!1})}read(){return M$1(this,null,function*(){if(yield this._canUseIndexedDBPromise){let t=yield vo(this.app);return t?.heartbeats?t:{heartbeats:[]}}else return{heartbeats:[]}})}overwrite(e){return M$1(this,null,function*(){if(yield this._canUseIndexedDBPromise){let r=yield this.read();return Qr$1(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??r.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return})}add(e){return M$1(this,null,function*(){if(yield this._canUseIndexedDBPromise){let r=yield this.read();return Qr$1(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??r.lastSentHeartbeatDate,heartbeats:[...r.heartbeats,...e.heartbeats]})}else return})}};function ti$1(n){return tn$1(JSON.stringify({version:2,heartbeats:n})).length}function Ro(n){if(n.length===0)return-1;let e=0,t=n[0].date;for(let r=1;r<n.length;r++)n[r].date<t&&(t=n[r].date,e=r);return e}function Po(n){V(new v(`platform-logger`,e=>new fn$2(e),`PRIVATE`)),V(new v(`heartbeat`,e=>new _n$1(e),`PRIVATE`)),T$2(pn$1,Xr$2,n),T$2(pn$1,Xr$2,`esm2020`),T$2(`fire-js`,``)}Po(``);T$2(`firebase`,`12.19.0`,`app`);var ge=new Mo$2(`ANGULARFIRE2_VERSION`);function wn$1(n,e,t){if(e){if(e.length===1)return e[0];let r=e.filter(i=>i.app===t);if(r.length===1)return r[0]}return t.container.getProvider(n).getImmediate({optional:!0})}var lt$2=(n,e)=>{let t=e?[e]:ct$3(),r=[];return t.forEach(i=>{i.container.getProvider(n).instances.forEach(s=>{r.includes(s)||r.push(s)})}),r};var me=(function(n){return n[n.SILENT=0]=`SILENT`,n[n.WARN=1]=`WARN`,n[n.VERBOSE=2]=`VERBOSE`,n})(me||{});var ii$1=Q1()&&typeof Zone<`u`?me.WARN:me.SILENT;var si$1=class{zone;delegate;constructor(n,e=cm){this.zone=n,this.delegate=e}now(){return this.delegate.now()}schedule(n,e,t){let r=this.zone,i=function(s){r?r.runGuarded(()=>{n.apply(this,[s])}):n.apply(this,[s])};return this.delegate.schedule(i,e,t)}};var Ie=class ut{outsideAngular;insideAngular;constructor(){let t=E$2(Q$1);this.outsideAngular=t.runOutsideAngular(()=>new si$1(typeof Zone>`u`?void 0:Zone.current)),this.insideAngular=t.run(()=>new si$1(typeof Zone>`u`?void 0:Zone.current,st$4))}static ɵfac=function(r){return new(r||ut)};static ɵprov=ue$2({token:ut,factory:ut.ɵfac,providedIn:`root`})};var oi$1=!1;function Do(n,e){!oi$1&&(ii$1>me.SILENT||Q1())&&(oi$1=!0,console.warn(`Calling Firebase APIs outside of an Injection context may destabilize your application leading to subtle change-detection and hydration bugs. Find more at https://github.com/angular/angularfire/blob/main/docs/zones.md`)),ii$1>=e&&console.warn(`Firebase API called outside injection context: ${n.name}`)}function Lo(n){let e=E$2(Q$1,{optional:!0});return e?e.runOutsideAngular(()=>n()):n()}function Q(n){let e=E$2(Q$1,{optional:!0});return e?e.run(()=>n()):n()}var Mo=(n,e,t)=>(...r)=>(e&&setTimeout(e,0),Bo$2(t,()=>Q(()=>n.apply(void 0,r))));var ee=(n,e,t)=>(t||=e?me.WARN:me.VERBOSE,function(){let r,i=arguments,s,o,c;try{s=E$2(Ie),o=E$2(Oa$3),c=E$2(me$2)}catch(l){return Do(n,t),n.apply(this,i)}for(let l=0;l<arguments.length;l++)typeof i[l]==`function`&&(e&&(r||=Q(()=>o.add())),i[l]=Mo(i[l],r,c));let u=Lo(()=>n.apply(this,i));return e?u instanceof b$3?u.pipe(Qn$2(s.outsideAngular),zn$3(s.insideAngular),L$2(c)):u instanceof Promise?Q(()=>{let l=o.add();return new Promise((d,f)=>{u.then(m=>Bo$2(c,()=>Q(()=>d(m))),m=>Bo$2(c,()=>Q(()=>f(m)))).finally(l)})}):typeof u==`function`&&r?function(){return setTimeout(r,0),u.apply(this,arguments)}:Q(()=>u):u instanceof b$3?u.pipe(Qn$2(s.outsideAngular),zn$3(s.insideAngular)):Q(()=>u)});var ve$1=class{constructor(n){return n}};var yn$1=class{constructor(){return ct$3()}};function Uo(n){return n?.length===1?n[0]:new ve$1(Ae$1())}var An$1=new x$3(`angularfire2._apps`);var Fo={provide:ve$1,useFactory:Uo,deps:[[new cv,An$1]]};var xo={provide:yn$1,deps:[[new cv,An$1]]};function Vo(n){return(e,t)=>{let r=t.get(by);return T$2(`angularfire`,ge.full,`core`),T$2(`angularfire`,ge.full,`app`),T$2(`angular`,Eu.full,r.toString()),new ve$1(e.runOutsideAngular(()=>n(t)))}}function Gl(n,...e){return Ho$2([Fo,xo,{provide:An$1,useFactory:Vo(n),multi:!0,deps:[Q$1,le$1,Ie,...e]}])}var Jl=ee(Tn$1,!0);var $o=/* @__PURE__ */ new Map;var Wo={activated:!1,tokenObservers:[]};var Ho={initialized:!1,enabled:!1};function C$1(n){return $o.get(n)||F$3({},Wo)}function li$1(){return Ho}var Bo=`https://content-firebaseappcheck.googleapis.com/v1`;var zo=`exchangeDebugToken`;var ai$1={RETRIAL_MIN_WAIT:3e4,RETRIAL_MAX_WAIT:96e4};var kn=class{constructor(e,t,r,i,s){if(this.operation=e,this.retryPolicy=t,this.getWaitDuration=r,this.lowerBound=i,this.upperBound=s,this.pending=null,this.nextErrorWaitInterval=i,i>s)throw new Error(`Proactive refresh lower bound greater than upper bound!`)}start(){this.nextErrorWaitInterval=this.lowerBound,this.process(!0).catch(()=>{})}stop(){this.pending&&(this.pending.reject(`cancelled`),this.pending=null)}isRunning(){return!!this.pending}process(e){return M$1(this,null,function*(){this.stop();try{this.pending=new M,this.pending.promise.catch(t=>{}),yield jo(this.getNextRun(e)),this.pending.resolve(),yield this.pending.promise,this.pending=new M,this.pending.promise.catch(t=>{}),yield this.operation(),this.pending.resolve(),yield this.pending.promise,this.process(!0).catch(()=>{})}catch(t){this.retryPolicy(t)?this.process(!1).catch(()=>{}):this.stop()}})}getNextRun(e){if(e)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{let t=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),t}}};function jo(n){return new Promise(e=>{setTimeout(e,n)})}var q=new R$1(`appCheck`,`AppCheck`,{"already-initialized":`You have already called initializeAppCheck() for FirebaseApp {$appName} with different options. To avoid this error, call initializeAppCheck() with the same options as when it was originally called. This will return the already initialized instance.`,"use-before-activation":`App Check is being used before initializeAppCheck() is called for FirebaseApp {$appName}. Call initializeAppCheck() before instantiating other Firebase services.`,"fetch-network-error":`Fetch failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.`,"fetch-parse-error":`Fetch client could not parse response. Original error: {$originalErrorMessage}.`,"fetch-status-error":`Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.`,"storage-open":`Error thrown when opening storage. Original error: {$originalErrorMessage}.`,"storage-get":`Error thrown when reading from storage. Original error: {$originalErrorMessage}.`,"storage-set":`Error thrown when writing to storage. Original error: {$originalErrorMessage}.`,"recaptcha-error":`ReCAPTCHA error.`,"initial-throttle":`{$httpStatus} error. Attempts allowed again after {$time}`,throttled:`Requests throttled due to previous {$httpStatus} error. Attempts allowed again after {$time}`});function di$1(n){if(!C$1(n).activated)throw q.create(`use-before-activation`,{appName:n.name})}function hi$1(r,i){return M$1(this,arguments,function*({url:n,body:e},t){let s={"Content-Type":`application/json`},o=t.getImmediate({optional:!0});if(o){let _=yield o.getHeartbeatsHeader();_&&(s[`X-Firebase-Client`]=_)}let c={method:`POST`,body:JSON.stringify(e),headers:s},u;try{u=yield fetch(n,c)}catch(_){throw q.create(`fetch-network-error`,{originalErrorMessage:_?.message})}if(u.status!==200)throw q.create(`fetch-status-error`,{httpStatus:u.status});let l;try{l=yield u.json()}catch(_){throw q.create(`fetch-parse-error`,{originalErrorMessage:_?.message})}let d=l.ttl.match(/^([\d.]+)(s)$/);if(!d||!d[2]||isNaN(Number(d[1])))throw q.create(`fetch-parse-error`,{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${l.ttl}`});let f=Number(d[1])*1e3,m=Date.now();return{token:l.token,expireTimeMillis:m+f,issuedAtTimeMillis:m}})}function fi$1(n,e){let{projectId:t,appId:r,apiKey:i}=n.options;return{url:`${Bo}/projects/${t}/apps/${r}:${zo}?key=${i}`,body:{debug_token:e}}}var Ko=`firebase-app-check-database`;var Go=1;var Sn$1=`firebase-app-check-store`;var dt$2=null;function Jo(){return dt$2||(dt$2=new Promise((n,e)=>{try{let t=indexedDB.open(Ko,Go);t.onsuccess=r=>{n(r.target.result)},t.onerror=r=>{e(q.create(`storage-open`,{originalErrorMessage:r.target.error?.message}))},t.onupgradeneeded=r=>{let i=r.target.result;r.oldVersion===0&&i.createObjectStore(Sn$1,{keyPath:`compositeKey`})}}catch(t){e(q.create(`storage-open`,{originalErrorMessage:t?.message}))}}),dt$2)}function Yo(n,e){return Xo(Zo(n),e)}function Xo(n,e){return M$1(this,null,function*(){let r=(yield Jo()).transaction(Sn$1,`readwrite`),s=r.objectStore(Sn$1).put({compositeKey:n,value:e});return new Promise((o,c)=>{s.onsuccess=u=>{o()},r.onerror=u=>{c(q.create(`storage-set`,{originalErrorMessage:u.target.error?.message}))}})})}function Zo(n){return`${n.options.appId}-${n.name}`}var be$1=new j(`@firebase/app-check`);function vn$1(n,e){return rt$1()?Yo(n,e).catch(t=>{be$1.warn(`Failed to write token to IndexedDB. Error: ${t}`)}):Promise.resolve()}function pi$1(){return li$1().enabled}function mi$1(){return M$1(this,null,function*(){let n=li$1();if(n.enabled&&n.token)return n.token.promise;throw Error(`
|
|
2
2
|
Can't get debug token in production mode.
|
|
3
3
|
`)})}var Qo={error:`UNKNOWN_ERROR`};function ea(n){return tt$1.encodeString(JSON.stringify(n),!1)}function Rn$1(n,e=!1,t=!1){return M$1(this,null,function*(){let r=n.app;di$1(r);let i=C$1(r),s=i.token,o;if(s&&!ke(s)&&(i.token=void 0,s=void 0),!s){let l=yield i.cachedTokenPromise;l&&(ke(l)?s=l:yield vn$1(r,void 0))}if(!e&&s&&ke(s))return{token:s.token};let c=!1;if(pi$1())try{let l=yield mi$1();i.exchangeTokenPromise||(i.exchangeTokenPromise=hi$1(fi$1(r,l),n.heartbeatServiceProvider).finally(()=>{i.exchangeTokenPromise=void 0}),c=!0);let d=yield i.exchangeTokenPromise;return yield vn$1(r,d),i.token=d,{token:d.token}}catch(l){return l.code===`appCheck/throttled`||l.code===`appCheck/initial-throttle`?be$1.warn(l.message):t&&be$1.error(l),bn$1(l)}try{i.exchangeTokenPromise||(i.exchangeTokenPromise=i.provider.getToken().finally(()=>{i.exchangeTokenPromise=void 0}),c=!0),s=yield C$1(r).exchangeTokenPromise}catch(l){l.code===`appCheck/throttled`||l.code===`appCheck/initial-throttle`?be$1.warn(l.message):t&&be$1.error(l),o=l}let u;return s?o?ke(s)?u={token:s.token,internalError:o}:u=bn$1(o):(u={token:s.token},i.token=s,yield vn$1(r,s)):u=bn$1(o),c&&ia(r,u),u})}function ta(n){return M$1(this,null,function*(){let e=n.app;di$1(e);let{provider:t}=C$1(e);if(pi$1()){let i=fi$1(e,yield mi$1());i.body.limited_use=!0;let{token:s}=yield hi$1(i,n.heartbeatServiceProvider);return{token:s}}else{let{token:r}=yield t.getToken(!0);return{token:r}}})}function na(n,e,t,r){let{app:i}=n,s=C$1(i),o={next:t,error:r,type:e};if(s.tokenObservers=[...s.tokenObservers,o],s.token&&ke(s.token)){let c=s.token;Promise.resolve().then(()=>{t({token:c.token}),ci$1(n)}).catch(()=>{})}s.cachedTokenPromise.then(()=>ci$1(n))}function gi$1(n,e){let t=C$1(n),r=t.tokenObservers.filter(i=>i.next!==e);r.length===0&&t.tokenRefresher&&t.tokenRefresher.isRunning()&&t.tokenRefresher.stop(),t.tokenObservers=r}function ci$1(n){let{app:e}=n,t=C$1(e),r=t.tokenRefresher;r||(r=ra(n),t.tokenRefresher=r),!r.isRunning()&&t.isTokenAutoRefreshEnabled&&r.start()}function ra(n){let{app:e}=n;return new kn(()=>M$1(null,null,function*(){let t=C$1(e),r;if(t.token?r=yield Rn$1(n,!0):r=yield Rn$1(n),r.error)throw r.error;if(r.internalError)throw r.internalError}),()=>!0,()=>{let t=C$1(e);if(t.token){let r=t.token.issuedAtTimeMillis+(t.token.expireTimeMillis-t.token.issuedAtTimeMillis)*.5+3e5,i=t.token.expireTimeMillis-3e5;return r=Math.min(r,i),Math.max(0,r-Date.now())}else return 0},ai$1.RETRIAL_MIN_WAIT,ai$1.RETRIAL_MAX_WAIT)}function ia(n,e){let t=C$1(n).tokenObservers;for(let r of t)try{r.type===`EXTERNAL`&&e.error!=null?r.error(e.error):r.next(e)}catch(i){}}function ke(n){return n.expireTimeMillis-Date.now()>0}function bn$1(n){return{token:ea(Qo),error:n}}var Pn$1=class{constructor(e,t){this.app=e,this.heartbeatServiceProvider=t}_delete(){let{tokenObservers:e}=C$1(this.app);for(let t of e)gi$1(this.app,t.next);return Promise.resolve()}};function sa(n,e){return new Pn$1(n,e)}function oa(n){return{getToken:e=>Rn$1(n,e),getLimitedUseToken:()=>ta(n),addTokenListener:e=>na(n,`INTERNAL`,e),removeTokenListener:e=>gi$1(n.app,e)}}var aa=`@firebase/app-check`;var ca=`0.13.1`;var ua$1=`app-check`;var ui$1=`app-check-internal`;function la(){V(new v(ua$1,n=>{return sa(n.getProvider(`app`).getImmediate(),n.getProvider(`heartbeat`))},`PUBLIC`).setInstantiationMode(`EXPLICIT`).setInstanceCreatedCallback((n,e,t)=>{n.getProvider(ui$1).initialize()})),V(new v(ui$1,n=>{return oa(n.getProvider(`app-check`).getImmediate())},`PUBLIC`).setInstantiationMode(`EXPLICIT`)),T$2(aa,ca)}la();var da=`app-check`;var Ii$1=class{constructor(){return lt$2(da)}};typeof window<`u`&&[`localhost`,`0.0.0.0`,`127.0.0.1`].includes(window.location.hostname);function Fi$1(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}var xi$1=Fi$1;var Vi$1=new R$1(`auth`,`Firebase`,Fi$1());var Et$1=new j(`@firebase/auth`);function ft$2(n,...e){Et$1.logLevel<=g.WARN&&Et$1.warn(`Auth (${pe$1}): ${n}`,...e)}function pt$3(n,...e){Et$1.logLevel<=g.ERROR&&Et$1.error(`Auth (${pe$1}): ${n}`,...e)}function b$1(n,...e){throw Zn(n,...e)}function N(n,...e){return Zn(n,...e)}function Ht$1(n,e,t){return new R$1(`auth`,`Firebase`,G$1(F$3({},xi$1()),{[e]:t})).create(e,{appName:n.name})}function te$1(n){return Ht$1(n,`operation-not-supported-in-this-environment`,`Operations that alter the current user are not supported in conjunction with FirebaseServerApp`)}function ha$1(n,e,t){let r=t;if(!(e instanceof r))throw r.name!==e.constructor.name&&b$1(n,`argument-error`),Ht$1(n,`argument-error`,`Type of ${e.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function Zn(n,...e){if(typeof n!=`string`){let t=e[0],r=[...e.slice(1)];return r[0]&&(r[0].appName=n.name),n._errorFactory.create(t,...r)}return Vi$1.create(n,...e)}function h$1(n,e,...t){if(!n)throw Zn(e,...t)}function D(n){let e=`INTERNAL ASSERTION FAILED: `+n;throw pt$3(e),new Error(e)}function W(n,e){n||D(e)}function Mn$1(){return typeof self<`u`&&self.location?.href||``}function fa$1(){return _i$1()===`http:`||_i$1()===`https:`}function _i$1(){return typeof self<`u`&&self.location?.protocol||null}function pa$1(){return typeof navigator<`u`&&navigator&&`onLine`in navigator&&typeof navigator.onLine==`boolean`&&(fa$1()||Fr$1()||`connection`in navigator)?navigator.onLine:!0}function ma(){if(typeof navigator>`u`)return null;let n=navigator;return n.languages&&n.languages[0]||n.language||null}var ne$2=class{constructor(e,t){this.shortDelay=e,this.longDelay=t,W(t>e,`Short delay should be less than long delay!`),this.isMobile=Mr$1()||xr$1()}get(){return pa$1()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}};function Qn(n,e){W(n.emulator,`Emulator should always be set here`);let{url:t}=n.emulator;return e?`${t}${e.startsWith(`/`)?e.slice(1):e}`:t}var Tt$1=class{static initialize(e,t,r){this.fetchImpl=e,t&&(this.headersImpl=t),r&&(this.responseImpl=r)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<`u`&&`fetch`in self)return self.fetch;if(typeof globalThis<`u`&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<`u`)return fetch;D(`Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill`)}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<`u`&&`Headers`in self)return self.Headers;if(typeof globalThis<`u`&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<`u`)return Headers;D(`Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill`)}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<`u`&&`Response`in self)return self.Response;if(typeof globalThis<`u`&&globalThis.Response)return globalThis.Response;if(typeof Response<`u`)return Response;D(`Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill`)}};var ga$1={CREDENTIAL_MISMATCH:`custom-token-mismatch`,MISSING_CUSTOM_TOKEN:`internal-error`,INVALID_IDENTIFIER:`invalid-email`,MISSING_CONTINUE_URI:`internal-error`,INVALID_PASSWORD:`wrong-password`,MISSING_PASSWORD:`missing-password`,INVALID_LOGIN_CREDENTIALS:`invalid-credential`,EMAIL_EXISTS:`email-already-in-use`,PASSWORD_LOGIN_DISABLED:`operation-not-allowed`,INVALID_IDP_RESPONSE:`invalid-credential`,INVALID_PENDING_TOKEN:`invalid-credential`,FEDERATED_USER_ID_ALREADY_LINKED:`credential-already-in-use`,MISSING_REQ_TYPE:`internal-error`,EMAIL_NOT_FOUND:`user-not-found`,RESET_PASSWORD_EXCEED_LIMIT:`too-many-requests`,EXPIRED_OOB_CODE:`expired-action-code`,INVALID_OOB_CODE:`invalid-action-code`,MISSING_OOB_CODE:`internal-error`,CREDENTIAL_TOO_OLD_LOGIN_AGAIN:`requires-recent-login`,INVALID_ID_TOKEN:`invalid-user-token`,TOKEN_EXPIRED:`user-token-expired`,USER_NOT_FOUND:`user-token-expired`,TOO_MANY_ATTEMPTS_TRY_LATER:`too-many-requests`,PASSWORD_DOES_NOT_MEET_REQUIREMENTS:`password-does-not-meet-requirements`,INVALID_CODE:`invalid-verification-code`,INVALID_SESSION_INFO:`invalid-verification-id`,INVALID_TEMPORARY_PROOF:`invalid-credential`,MISSING_SESSION_INFO:`missing-verification-id`,SESSION_EXPIRED:`code-expired`,MISSING_ANDROID_PACKAGE_NAME:`missing-android-pkg-name`,UNAUTHORIZED_DOMAIN:`unauthorized-continue-uri`,INVALID_OAUTH_CLIENT_ID:`invalid-oauth-client-id`,ADMIN_ONLY_OPERATION:`admin-restricted-operation`,INVALID_MFA_PENDING_CREDENTIAL:`invalid-multi-factor-session`,MFA_ENROLLMENT_NOT_FOUND:`multi-factor-info-not-found`,MISSING_MFA_ENROLLMENT_ID:`missing-multi-factor-info`,MISSING_MFA_PENDING_CREDENTIAL:`missing-multi-factor-session`,SECOND_FACTOR_EXISTS:`second-factor-already-in-use`,SECOND_FACTOR_LIMIT_EXCEEDED:`maximum-second-factor-count-exceeded`,BLOCKING_FUNCTION_ERROR_RESPONSE:`internal-error`,RECAPTCHA_NOT_ENABLED:`recaptcha-not-enabled`,MISSING_RECAPTCHA_TOKEN:`missing-recaptcha-token`,INVALID_RECAPTCHA_TOKEN:`invalid-recaptcha-token`,INVALID_RECAPTCHA_ACTION:`invalid-recaptcha-action`,MISSING_CLIENT_TYPE:`missing-client-type`,MISSING_RECAPTCHA_VERSION:`missing-recaptcha-version`,INVALID_RECAPTCHA_VERSION:`invalid-recaptcha-version`,INVALID_REQ_TYPE:`invalid-req-type`};var Ia$1=[`/v1/accounts:signInWithCustomToken`,`/v1/accounts:signInWithEmailLink`,`/v1/accounts:signInWithIdp`,`/v1/accounts:signInWithPassword`,`/v1/accounts:signInWithPhoneNumber`,`/v1/token`];var _a$1=new ne$2(3e4,6e4);function E(n,e){return n.tenantId&&!e.tenantId?G$1(F$3({},e),{tenantId:n.tenantId}):e}function y(s,o,c,u){return M$1(this,arguments,function*(n,e,t,r,i={}){return $i$1(n,i,()=>M$1(null,null,function*(){let l={},d={};r&&(e===`GET`?d=r:l={body:JSON.stringify(r)});let f=de(G$1(F$3({},d),{key:n.config.apiKey})).slice(1),m=yield n._getAdditionalHeaders();m[`Content-Type`]=`application/json`,n.languageCode&&(m[`X-Firebase-Locale`]=n.languageCode);let _=F$3({method:e,headers:m},l);return Ur$1()||(_.referrerPolicy=`strict-origin-when-cross-origin`),n.emulatorConfig&&it$1(n.emulatorConfig.host)&&(_.credentials=`include`),Tt$1.fetch()(yield Wi$2(n,n.config.apiHost,t,f),_)}))})}function $i$1(n,e,t){return M$1(this,null,function*(){n._canInitEmulator=!1;let r=F$3(F$3({},ga$1),e);try{let i=new Un(n),s=yield Promise.race([t(),i.promise]);i.clearNetworkTimeout();let o=yield s.json();if(`needConfirmation`in o)throw Re$1(n,`account-exists-with-different-credential`,o);if(s.ok&&!(`errorMessage`in o))return o;{let[u,l]=(s.ok?o.errorMessage:o.error.message).split(` : `);if(u===`FEDERATED_USER_ID_ALREADY_LINKED`)throw Re$1(n,`credential-already-in-use`,o);if(u===`EMAIL_EXISTS`)throw Re$1(n,`email-already-in-use`,o);if(u===`USER_DISABLED`)throw Re$1(n,`user-disabled`,o);let d=r[u]||u.toLowerCase().replace(/[_\s]+/g,`-`);if(l)throw Ht$1(n,d,l);b$1(n,d)}}catch(i){if(i instanceof S$1)throw i;b$1(n,`network-request-failed`,{message:String(i)})}})}function ae(s,o,c,u){return M$1(this,arguments,function*(n,e,t,r,i={}){let l=yield y(n,e,t,r,i);return`mfaPendingCredential`in l&&b$1(n,`multi-factor-auth-required`,{_serverResponse:l}),l})}function Wi$2(n,e,t,r){return M$1(this,null,function*(){let i=`${e}${t}?${r}`,s=n,o=s.config.emulator?Qn(n.config,i):`${n.config.apiScheme}://${i}`;return Ia$1.includes(t)&&(yield s._persistenceManagerAvailable,s._getPersistenceType()===`COOKIE`)?s._getPersistence()._getFinalTarget(o).toString():o})}function Ea$1(n){switch(n){case`ENFORCE`:return`ENFORCE`;case`AUDIT`:return`AUDIT`;case`OFF`:return`OFF`;default:return`ENFORCEMENT_STATE_UNSPECIFIED`}}var Un=class{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((t,r)=>{this.timer=setTimeout(()=>r(N(this.auth,`network-request-failed`)),_a$1.get())})}};function Re$1(n,e,t){let r={appName:n.name};t.email&&(r.email=t.email),t.phoneNumber&&(r.phoneNumber=t.phoneNumber);let i=N(n,e,r);return i.customData._tokenResponse=t,i}function Ei$1(n){return n!==void 0&&n.enterprise!==void 0}var wt$2=class{constructor(e){if(this.siteKey=``,this.recaptchaEnforcementState=[],e.recaptchaKey===void 0)throw new Error(`recaptchaKey undefined`);this.siteKey=e.recaptchaKey.split(`/`)[3],this.recaptchaEnforcementState=e.recaptchaEnforcementState}getProviderEnforcementState(e){if(!this.recaptchaEnforcementState||this.recaptchaEnforcementState.length===0)return null;for(let t of this.recaptchaEnforcementState)if(t.provider&&t.provider===e)return Ea$1(t.enforcementState);return null}isProviderEnabled(e){return this.getProviderEnforcementState(e)===`ENFORCE`||this.getProviderEnforcementState(e)===`AUDIT`}isAnyProviderEnabled(){return this.isProviderEnabled(`EMAIL_PASSWORD_PROVIDER`)||this.isProviderEnabled(`PHONE_PROVIDER`)}};function Hi$1(n,e){return M$1(this,null,function*(){return y(n,`GET`,`/v2/recaptchaConfig`,E(n,e))})}function Ta$1(n,e){return M$1(this,null,function*(){return y(n,`POST`,`/v1/accounts:delete`,e)})}function yt$2(n,e){return M$1(this,null,function*(){return y(n,`POST`,`/v1/accounts:lookup`,e)})}function Pe$2(n){if(n)try{let e=new Date(Number(n));if(!isNaN(e.getTime()))return e.toUTCString()}catch(e){}}function er$1(n,e=!1){return M$1(this,null,function*(){let t=U(n),r=yield t.getIdToken(e),i=tr$1(r);h$1(i&&i.exp&&i.auth_time&&i.iat,t.auth,`internal-error`);let s=typeof i.firebase==`object`?i.firebase:void 0,o=s?.sign_in_provider;return{claims:i,token:r,authTime:Pe$2(Cn$1(i.auth_time)),issuedAtTime:Pe$2(Cn$1(i.iat)),expirationTime:Pe$2(Cn$1(i.exp)),signInProvider:o||null,signInSecondFactor:s?.sign_in_second_factor||null}})}function Cn$1(n){return Number(n)*1e3}function tr$1(n){let[e,t,r]=n.split(`.`);if(e===void 0||t===void 0||r===void 0)return pt$3(`JWT malformed, contained fewer than 3 sections`),null;try{let i=nt$1(t);return i?JSON.parse(i):(pt$3(`Failed to decode base64 JWT payload`),null)}catch(i){return pt$3(`Caught error parsing JWT payload as JSON`,i?.toString()),null}}function Ti$1(n){let e=tr$1(n);return h$1(e,`internal-error`),h$1(typeof e.exp<`u`,`internal-error`),h$1(typeof e.iat<`u`,`internal-error`),Number(e.exp)-Number(e.iat)}function Le$2(n,e,t=!1){return M$1(this,null,function*(){if(t)return e;try{return yield e}catch(r){throw r instanceof S$1&&wa$1(r)&&n.auth.currentUser===n&&(yield n.auth.signOut()),r}})}function wa$1({code:n}){return n===`auth/user-disabled`||n===`auth/user-token-expired`}var Fn$1=class{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(e){if(e){let t=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),t}else{this.errorBackoff=3e4;let r=(this.user.stsTokenManager.expirationTime??0)-Date.now()-3e5;return Math.max(0,r)}}schedule(e=!1){if(!this.isRunning)return;let t=this.getInterval(e);this.timerId=setTimeout(()=>M$1(this,null,function*(){yield this.iteration()}),t)}iteration(){return M$1(this,null,function*(){try{yield this.user.getIdToken(!0)}catch(e){e?.code===`auth/network-request-failed`&&this.schedule(!0);return}this.schedule()})}};var Me=class{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=Pe$2(this.lastLoginAt),this.creationTime=Pe$2(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}};function At$2(n){return M$1(this,null,function*(){let e=n.auth,r=yield Le$2(n,yt$2(e,{idToken:yield n.getIdToken()}));h$1(r?.users.length,e,`internal-error`);let i=r.users[0];n._notifyReloadListener(i);let s=i.providerUserInfo?.length?Bi$1(i.providerUserInfo):[],o=ya(n.providerData,s),c=n.isAnonymous,u=!(n.email&&i.passwordHash)&&!o?.length,l=c?u:!1,d={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:o,metadata:new Me(i.createdAt,i.lastLoginAt),isAnonymous:l};Object.assign(n,d)})}function nr$1(n){return M$1(this,null,function*(){let e=U(n);yield At$2(e),yield e.auth._persistUserIfCurrent(e),e.auth._notifyListenersIfCurrent(e)})}function ya(n,e){return[...n.filter(r=>!e.some(i=>i.providerId===r.providerId)),...e]}function Bi$1(n){return n.map(r=>{var i=r,{providerId:e}=i,t=I$1(i,[`providerId`]);return{providerId:e,uid:t.rawId||``,displayName:t.displayName||null,email:t.email||null,phoneNumber:t.phoneNumber||null,photoURL:t.photoUrl||null}})}function Aa$1(n,e){return M$1(this,null,function*(){let t=yield $i$1(n,{},()=>M$1(null,null,function*(){let r=de({grant_type:`refresh_token`,refresh_token:e}).slice(1),{tokenApiHost:i,apiKey:s}=n.config,o=yield Wi$2(n,i,`/v1/token`,`key=${s}`),c=yield n._getAdditionalHeaders();c[`Content-Type`]=`application/x-www-form-urlencoded`;let u={method:`POST`,headers:c,body:r};return n.emulatorConfig&&it$1(n.emulatorConfig.host)&&(u.credentials=`include`),Tt$1.fetch()(o,u)}));return{accessToken:t.access_token,expiresIn:t.expires_in,refreshToken:t.refresh_token}})}function va$1(n,e){return M$1(this,null,function*(){return y(n,`POST`,`/v2/accounts:revokeToken`,E(n,e))})}var Ce$1=class n{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){h$1(e.idToken,`internal-error`),h$1(typeof e.idToken<`u`,`internal-error`),h$1(typeof e.refreshToken<`u`,`internal-error`);let t=`expiresIn`in e&&typeof e.expiresIn<`u`?Number(e.expiresIn):Ti$1(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}updateFromIdToken(e){h$1(e.length!==0,`internal-error`);let t=Ti$1(e);this.updateTokensAndExpiration(e,null,t)}getToken(e,t=!1){return M$1(this,null,function*(){return!t&&this.accessToken&&!this.isExpired?this.accessToken:(h$1(this.refreshToken,e,`user-token-expired`),this.refreshToken?(yield this.refresh(e,this.refreshToken),this.accessToken):null)})}clearRefreshToken(){this.refreshToken=null}refresh(e,t){return M$1(this,null,function*(){let{accessToken:r,refreshToken:i,expiresIn:s}=yield Aa$1(e,t);this.updateTokensAndExpiration(r,i,Number(s))})}updateTokensAndExpiration(e,t,r){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+r*1e3}static fromJSON(e,t){let{refreshToken:r,accessToken:i,expirationTime:s}=t,o=new n;return r&&(h$1(typeof r==`string`,`internal-error`,{appName:e}),o.refreshToken=r),i&&(h$1(typeof i==`string`,`internal-error`,{appName:e}),o.accessToken=i),s&&(h$1(typeof s==`number`,`internal-error`,{appName:e}),o.expirationTime=s),o}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new n,this.toJSON())}_performRefresh(){return D(`not implemented`)}};function K(n,e){h$1(typeof n==`string`||typeof n>`u`,`internal-error`,{appName:e})}var G=class n{constructor(s){var o=s,{uid:e,auth:t,stsTokenManager:r}=o,i=I$1(o,[`uid`,`auth`,`stsTokenManager`]);this.providerId=`firebase`,this.proactiveRefresh=new Fn$1(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=e,this.auth=t,this.stsTokenManager=r,this.accessToken=r.accessToken,this.displayName=i.displayName||null,this.email=i.email||null,this.emailVerified=i.emailVerified||!1,this.phoneNumber=i.phoneNumber||null,this.photoURL=i.photoURL||null,this.isAnonymous=i.isAnonymous||!1,this.tenantId=i.tenantId||null,this.providerData=i.providerData?[...i.providerData]:[],this.metadata=new Me(i.createdAt||void 0,i.lastLoginAt||void 0)}getIdToken(e){return M$1(this,null,function*(){let t=yield Le$2(this,this.stsTokenManager.getToken(this.auth,e));return h$1(t,this.auth,`internal-error`),this.accessToken!==t&&(this.accessToken=t,yield this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t})}getIdTokenResult(e){return er$1(this,e)}reload(){return nr$1(this)}_assign(e){this!==e&&(h$1(this.uid===e.uid,this.auth,`internal-error`),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(t=>F$3({},t)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){let t=new n(G$1(F$3({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return t.metadata._copy(this.metadata),t}_onReload(e){h$1(!this.reloadListener,this.auth,`internal-error`),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(e,t=!1){return M$1(this,null,function*(){let r=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),r=!0),t&&(yield At$2(this)),yield this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)})}delete(){return M$1(this,null,function*(){if(P$1(this.auth.app))return Promise.reject(te$1(this.auth));let e=yield this.getIdToken();return yield Le$2(this,Ta$1(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()})}toJSON(){return G$1(F$3({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>F$3({},e)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||``}static _fromJSON(e,t){let r=t.displayName??void 0,i=t.email??void 0,s=t.phoneNumber??void 0,o=t.photoURL??void 0,c=t.tenantId??void 0,u=t._redirectEventId??void 0,l=t.createdAt??void 0,d=t.lastLoginAt??void 0,{uid:f,emailVerified:m,isAnonymous:_,providerData:J,stsTokenManager:hr}=t;h$1(f&&hr,e,`internal-error`);let _s=Ce$1.fromJSON(this.name,hr);h$1(typeof f==`string`,e,`internal-error`),K(r,e.name),K(i,e.name),h$1(typeof m==`boolean`,e,`internal-error`),h$1(typeof _==`boolean`,e,`internal-error`),K(s,e.name),K(o,e.name),K(c,e.name),K(u,e.name),K(l,e.name),K(d,e.name);let qt=new n({uid:f,auth:e,email:i,emailVerified:m,displayName:r,isAnonymous:_,photoURL:o,phoneNumber:s,tenantId:c,stsTokenManager:_s,createdAt:l,lastLoginAt:d});return J&&Array.isArray(J)&&(qt.providerData=J.map(Es=>F$3({},Es))),u&&(qt._redirectEventId=u),qt}static _fromIdTokenResponse(e,t,r=!1){return M$1(this,null,function*(){let i=new Ce$1;i.updateFromServerResponse(t);let s=new n({uid:t.localId,auth:e,stsTokenManager:i,isAnonymous:r});return yield At$2(s),s})}static _fromGetAccountInfoResponse(e,t,r){return M$1(this,null,function*(){let i=t.users[0];h$1(i.localId!==void 0,`internal-error`);let s=i.providerUserInfo!==void 0?Bi$1(i.providerUserInfo):[],o=!(i.email&&i.passwordHash)&&!s?.length,c=new Ce$1;c.updateFromIdToken(r);let u=new n({uid:i.localId,auth:e,stsTokenManager:c,isAnonymous:o}),l={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:s,metadata:new Me(i.createdAt,i.lastLoginAt),isAnonymous:!(i.email&&i.passwordHash)&&!s?.length};return Object.assign(u,l),u})}};var wi$1=/* @__PURE__ */ new Map;function $(n){W(n instanceof Function,`Expected a class definition`);let e=wi$1.get(n);return e?(W(e instanceof n,`Instance stored in cache mismatched with class`),e):(e=new n,wi$1.set(n,e),e)}var vt$2=class{constructor(){this.type=`NONE`,this.storage={}}_isAvailable(){return M$1(this,null,function*(){return!0})}_set(e,t){return M$1(this,null,function*(){this.storage[e]=t})}_get(e){return M$1(this,null,function*(){let t=this.storage[e];return t===void 0?null:t})}_remove(e){return M$1(this,null,function*(){delete this.storage[e]})}_addListener(e,t){}_removeListener(e,t){}};vt$2.type=`NONE`;var xn$1=vt$2;function mt$2(n,e,t){return`firebase:${n}:${e}:${t}`}var Ne$1=class n{constructor(e,t,r){this.persistence=e,this.auth=t,this.userKey=r;let{config:i,name:s}=this.auth;this.fullUserKey=mt$2(this.userKey,i.apiKey,s),this.fullPersistenceKey=mt$2(`persistence`,i.apiKey,s),this.boundEventHandler=t._onStorageEvent.bind(t);try{this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}catch(o){}}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}getCurrentUser(){return M$1(this,null,function*(){let e=yield this.persistence._get(this.fullUserKey);if(!e)return null;if(typeof e==`string`){let t=yield yt$2(this.auth,{idToken:e}).catch(()=>{});return t?G._fromGetAccountInfoResponse(this.auth,t,e):null}return G._fromJSON(this.auth,e)})}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(e){return M$1(this,null,function*(){if(this.persistence===e)return;let t=yield this.getCurrentUser();if(yield this.removeCurrentUser(),this.persistence=e,t)return this.setCurrentUser(t)})}delete(){try{this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}catch(e){}}static create(e,t,r=`authUser`){return M$1(this,null,function*(){if(!t.length)return new n($(xn$1),e,r);let i=(yield Promise.all(t.map(l=>M$1(null,null,function*(){try{if(yield l._isAvailable())return l}catch(d){return}})))).filter(l=>l),s=i[0]||$(xn$1),o=mt$2(r,e.config.apiKey,e.name),c=null;for(let l of t)try{let d=yield l._get(o);if(d){let f;if(typeof d==`string`){let m=yield yt$2(e,{idToken:d}).catch(()=>{});if(!m)break;f=yield G._fromGetAccountInfoResponse(e,m,d)}else f=G._fromJSON(e,d);l!==s&&(c=f),s=l;break}}catch(d){}let u=i.filter(l=>l._shouldAllowMigration);return!s._shouldAllowMigration||!u.length?new n(s,e,r):(s=u[0],c&&(yield s._set(o,c.toJSON())),yield Promise.all(t.map(l=>M$1(null,null,function*(){if(l!==s)try{yield l._remove(o)}catch(d){}}))),new n(s,e,r))})}};function yi$1(n){let e=n.toLowerCase();if(e.includes(`opera/`)||e.includes(`opr/`)||e.includes(`opios/`))return`Opera`;if(Ki$1(e))return`IEMobile`;if(e.includes(`msie`)||e.includes(`trident/`))return`IE`;if(e.includes(`edge/`))return`Edge`;if(zi$1(e))return`Firefox`;if(e.includes(`silk/`))return`Silk`;if(Ji$1(e))return`Blackberry`;if(Yi$1(e))return`Webos`;if(ji$1(e))return`Safari`;if((e.includes(`chrome/`)||qi$1(e))&&!e.includes(`edge/`))return`Chrome`;if(Gi$1(e))return`Android`;{let r=n.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(r?.length===2)return r[1]}return`Other`}function zi$1(n=w()){return/firefox\//i.test(n)}function ji$1(n=w()){let e=n.toLowerCase();return e.includes(`safari/`)&&!e.includes(`chrome/`)&&!e.includes(`crios/`)&&!e.includes(`android`)}function qi$1(n=w()){return/crios\//i.test(n)}function Ki$1(n=w()){return/iemobile/i.test(n)}function Gi$1(n=w()){return/android/i.test(n)}function Ji$1(n=w()){return/blackberry/i.test(n)}function Yi$1(n=w()){return/webos/i.test(n)}function rr$1(n=w()){return/iphone|ipad|ipod/i.test(n)||/macintosh/i.test(n)&&/mobile/i.test(n)}function ba$1(n=w()){return rr$1(n)&&!!window.navigator?.standalone}function ka$1(){return Vr$1()&&document.documentMode===10}function Xi$1(n=w()){return rr$1(n)||Gi$1(n)||Yi$1(n)||Ji$1(n)||/windows phone/i.test(n)||Ki$1(n)}function Zi$1(n,e=[]){let t;switch(n){case`Browser`:t=yi$1(w());break;case`Worker`:t=`${yi$1(w())}-${n}`;break;default:t=n}let r=e.length?e.join(`,`):`FirebaseCore-web`;return`${t}/JsCore/${pe$1}/${r}`}var Vn$1=class{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){let r=s=>new Promise((o,c)=>{try{o(e(s))}catch(u){c(u)}});r.onAbort=t,this.queue.push(r);let i=this.queue.length-1;return()=>{this.queue[i]=()=>Promise.resolve()}}runMiddleware(e){return M$1(this,null,function*(){if(this.auth.currentUser===e)return;let t=[];try{for(let r of this.queue)yield r(e),r.onAbort&&t.push(r.onAbort)}catch(r){t.reverse();for(let i of t)try{i()}catch(s){}throw this.auth._errorFactory.create(`login-blocked`,{originalMessage:r?.message})}})}};function Sa$1(t){return M$1(this,arguments,function*(n,e={}){return y(n,`GET`,`/v2/passwordPolicy`,E(n,e))})}var Ra$1=6;var $n=class{constructor(e){let t=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=t.minPasswordLength??Ra$1,t.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=t.maxPasswordLength),t.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=t.containsLowercaseCharacter),t.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=t.containsUppercaseCharacter),t.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=t.containsNumericCharacter),t.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=t.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,this.enforcementState===`ENFORCEMENT_STATE_UNSPECIFIED`&&(this.enforcementState=`OFF`),this.allowedNonAlphanumericCharacters=e.allowedNonAlphanumericCharacters?.join(``)??``,this.forceUpgradeOnSignin=e.forceUpgradeOnSignin??!1,this.schemaVersion=e.schemaVersion}validatePassword(e){let t={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,t),this.validatePasswordCharacterOptions(e,t),t.isValid&&(t.isValid=t.meetsMinPasswordLength??!0),t.isValid&&(t.isValid=t.meetsMaxPasswordLength??!0),t.isValid&&(t.isValid=t.containsLowercaseLetter??!0),t.isValid&&(t.isValid=t.containsUppercaseLetter??!0),t.isValid&&(t.isValid=t.containsNumericCharacter??!0),t.isValid&&(t.isValid=t.containsNonAlphanumericCharacter??!0),t}validatePasswordLengthOptions(e,t){let r=this.customStrengthOptions.minPasswordLength,i=this.customStrengthOptions.maxPasswordLength;r&&(t.meetsMinPasswordLength=e.length>=r),i&&(t.meetsMaxPasswordLength=e.length<=i)}validatePasswordCharacterOptions(e,t){this.updatePasswordCharacterOptionsStatuses(t,!1,!1,!1,!1);let r;for(let i=0;i<e.length;i++)r=e.charAt(i),this.updatePasswordCharacterOptionsStatuses(t,r>=`a`&&r<=`z`,r>=`A`&&r<=`Z`,r>=`0`&&r<=`9`,this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(e,t,r,i,s){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=t)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=i)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=s))}};var Wn=class{constructor(e,t,r,i){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=r,this.config=i,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new bt$1(this),this.idTokenSubscription=new bt$1(this),this.beforeStateQueue=new Vn$1(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=Vi$1,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=i.sdkClientVersion,this._persistenceManagerAvailable=new Promise(s=>this._resolvePersistenceManagerAvailable=s)}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=$(t)),this._initializationPromise=this.queue(()=>M$1(this,null,function*(){if(!this._deleted){try{this.persistenceManager=yield Ne$1.create(this,e)}catch(r){ft$2(`Failed to initialize persistence: ${r}`),this.persistenceManager=yield Ne$1.create(this,[])}finally{this._resolvePersistenceManagerAvailable?.()}if(!this._deleted){if(this._popupRedirectResolver?._shouldInitProactively)try{yield this._popupRedirectResolver._initialize(this)}catch(r){}try{yield this.initializeCurrentUser(t)}catch(r){ft$2(`Failed to initialize current user: ${r}`),yield this.directlySetCurrentUser(null).catch(()=>{})}this.lastNotifiedUid=this.currentUser?.uid||null,!this._deleted&&(this._isInitialized=!0)}}})),this._initializationPromise}_onStorageEvent(){return M$1(this,null,function*(){if(this._deleted)return;let e=yield this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!e)){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),yield this.currentUser.getIdToken();return}yield this._updateCurrentUser(e,!0)}})}initializeCurrentUserFromIdToken(e){return M$1(this,null,function*(){try{let t=yield yt$2(this,{idToken:e}),r=yield G._fromGetAccountInfoResponse(this,t,e);yield this.directlySetCurrentUser(r)}catch(t){console.warn(`FirebaseServerApp could not login user with provided authIdToken: `,t),yield this.directlySetCurrentUser(null)}})}initializeCurrentUser(e){return M$1(this,null,function*(){if(P$1(this.app)){let s=this.app.settings.authIdToken;return s?new Promise(o=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(s).then(o,o))}):this.directlySetCurrentUser(null)}let t=yield this.assertedPersistence.getCurrentUser(),r=t,i=!1;if(e&&this.config.authDomain){yield this.getOrInitRedirectPersistenceManager();let s=this.redirectUser?._redirectEventId,o=r?._redirectEventId,c=yield this.tryRedirectSignIn(e);(!s||s===o)&&c?.user&&(r=c.user,i=!0)}if(!r)return this.directlySetCurrentUser(null);if(!r._redirectEventId){if(i)try{yield this.beforeStateQueue.runMiddleware(r)}catch(s){r=t,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(s))}return r?this.reloadAndSetCurrentUserOrClear(r):this.directlySetCurrentUser(null)}return h$1(this._popupRedirectResolver,this,`argument-error`),yield this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===r._redirectEventId?this.directlySetCurrentUser(r):this.reloadAndSetCurrentUserOrClear(r)})}tryRedirectSignIn(e){return M$1(this,null,function*(){let t=null;try{t=yield this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch(r){yield this._setRedirectUser(null)}return t})}reloadAndSetCurrentUserOrClear(e){return M$1(this,null,function*(){try{yield At$2(e)}catch(t){if(t?.code!==`auth/network-request-failed`)return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)})}useDeviceLanguage(){this.languageCode=ma()}_delete(){return M$1(this,null,function*(){this._deleted=!0})}updateCurrentUser(e){return M$1(this,null,function*(){if(P$1(this.app))return Promise.reject(te$1(this));let t=e?U(e):null;return t&&h$1(t.auth.config.apiKey===this.config.apiKey,this,`invalid-user-token`),this._updateCurrentUser(t&&t._clone(this))})}_updateCurrentUser(e,t=!1){return M$1(this,null,function*(){if(!this._deleted)return e&&h$1(this.tenantId===e.tenantId,this,`tenant-id-mismatch`),t||(yield this.beforeStateQueue.runMiddleware(e)),this.queue(()=>M$1(this,null,function*(){yield this.directlySetCurrentUser(e),this.notifyAuthListeners()}))})}signOut(){return M$1(this,null,function*(){return P$1(this.app)?Promise.reject(te$1(this)):(yield this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&(yield this._setRedirectUser(null)),this._updateCurrentUser(null,!0))})}setPersistence(e){return P$1(this.app)?Promise.reject(te$1(this)):this.queue(()=>M$1(this,null,function*(){yield this.assertedPersistence.setPersistence($(e))}))}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}validatePassword(e){return M$1(this,null,function*(){this._getPasswordPolicyInternal()||(yield this._updatePasswordPolicy());let t=this._getPasswordPolicyInternal();return t.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create(`unsupported-password-policy-schema-version`,{})):t.validatePassword(e)})}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}_updatePasswordPolicy(){return M$1(this,null,function*(){let t=new $n(yield Sa$1(this));this.tenantId===null?this._projectPasswordPolicy=t:this._tenantPasswordPolicies[this.tenantId]=t})}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(e){this._errorFactory=new R$1(`auth`,`Firebase`,e())}onAuthStateChanged(e,t,r){return this.registerStateListener(this.authStateSubscription,e,t,r)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,r){return this.registerStateListener(this.idTokenSubscription,e,t,r)}authStateReady(){return new Promise((e,t)=>{if(this.currentUser)e();else{let r=this.onAuthStateChanged(()=>{r(),e()},t)}})}revokeAccessToken(e){return M$1(this,null,function*(){if(this.currentUser){let r={providerId:`apple.com`,tokenType:`ACCESS_TOKEN`,token:e,idToken:yield this.currentUser.getIdToken()};this.tenantId!=null&&(r.tenantId=this.tenantId),yield va$1(this,r)}})}toJSON(){return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:this._currentUser?.toJSON()}}_setRedirectUser(e,t){return M$1(this,null,function*(){let r=yield this.getOrInitRedirectPersistenceManager(t);return e===null?r.removeCurrentUser():r.setCurrentUser(e)})}getOrInitRedirectPersistenceManager(e){return M$1(this,null,function*(){if(!this.redirectPersistenceManager){let t=e&&$(e)||this._popupRedirectResolver;h$1(t,this,`argument-error`),this.redirectPersistenceManager=yield Ne$1.create(this,[$(t._redirectPersistence)],`redirectUser`),this.redirectUser=yield this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager})}_redirectUserForId(e){return M$1(this,null,function*(){return this._isInitialized&&(yield this.queue(()=>M$1(this,null,function*(){}))),this._currentUser?._redirectEventId===e?this._currentUser:this.redirectUser?._redirectEventId===e?this.redirectUser:null})}_persistUserIfCurrent(e){return M$1(this,null,function*(){if(e===this.currentUser)return this.queue(()=>M$1(this,null,function*(){return this.directlySetCurrentUser(e)}))})}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);let e=this.currentUser?.uid??null;this.lastNotifiedUid!==e&&(this.lastNotifiedUid=e,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,r,i){if(this._deleted)return()=>{};let s=typeof t==`function`?t:t.next.bind(t),o=!1,c=this._isInitialized?Promise.resolve():this._initializationPromise;if(h$1(c,this,`internal-error`),c.then(()=>{o||s(this.currentUser)}).catch(u=>{if(!o)if(typeof t!=`function`&&t.error)t.error(u);else if(r)r(u);else throw u}),typeof t==`function`){let u=e.addObserver(t,r,i);return()=>{o=!0,u()}}else{let u=e.addObserver(t);return()=>{o=!0,u()}}}directlySetCurrentUser(e){return M$1(this,null,function*(){if(this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,this.persistenceManager)try{e?yield this.persistenceManager.setCurrentUser(e):yield this.persistenceManager.removeCurrentUser()}catch(t){let r=t?.message||String(t),i=Ht$1(this,`internal-error`,`An internal AuthError has occurred: ${r}`);throw i.customData={originalError:t},i}})}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return h$1(this.persistenceManager,this,`internal-error`),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=Zi$1(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){return M$1(this,null,function*(){let e={"X-Client-Version":this.clientVersion};this.app.options.appId&&(e[`X-Firebase-gmpid`]=this.app.options.appId);let t=yield this.heartbeatServiceProvider.getImmediate({optional:!0})?.getHeartbeatsHeader();t&&(e[`X-Firebase-Client`]=t);let r=yield this._getAppCheckToken();return r&&(e[`X-Firebase-AppCheck`]=r),e})}_getAppCheckToken(){return M$1(this,null,function*(){if(P$1(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;let e=yield this.appCheckServiceProvider.getImmediate({optional:!0})?.getToken();return e?.error&&ft$2(`Error while retrieving App Check token: ${e.error}`),e?.token})}};function ce$1(n){return U(n)}var bt$1=class{constructor(e){this.auth=e,this.observer=null,this.addObserver=Hr$1(t=>this.observer=t)}get next(){return h$1(this.observer,this.auth,`internal-error`),this.observer.next.bind(this.observer)}};var Bt={loadJS(){return M$1(this,null,function*(){throw new Error(`Unable to load external scripts`)})},recaptchaV2Script:``,recaptchaEnterpriseScript:``,gapiScript:``};function Pa(n){Bt=n}function Qi$1(n){return Bt.loadJS(n)}function Ca$1(){return Bt.recaptchaEnterpriseScript}function Na$1(){return Bt.gapiScript}function es$1(n){return`__${n}${Math.floor(Math.random()*1e6)}`}var Hn=class{constructor(){this.enterprise=new Bn$1}ready(e){e()}execute(e,t){return Promise.resolve(`token`)}render(e,t){return``}};var Bn$1=class{ready(e){e()}execute(e,t){return Promise.resolve(`token`)}render(e,t){return``}};var Oa$1=`recaptcha-enterprise`;var Oe=`NO_RECAPTCHA`;var Ai$1=`onFirebaseAuthREInstanceReady`;var Ue$2=class n{constructor(e){this.type=Oa$1,this.auth=ce$1(e)}verify(e=`verify`,t=!1){return M$1(this,null,function*(){function r(s){return M$1(this,null,function*(){if(!t){if(s.tenantId==null&&s._agentRecaptchaConfig!=null)return s._agentRecaptchaConfig.siteKey;if(s.tenantId!=null&&s._tenantRecaptchaConfigs[s.tenantId]!==void 0)return s._tenantRecaptchaConfigs[s.tenantId].siteKey}return new Promise((o,c)=>M$1(null,null,function*(){Hi$1(s,{clientType:`CLIENT_TYPE_WEB`,version:`RECAPTCHA_ENTERPRISE`}).then(u=>{if(u.recaptchaKey===void 0)c(/* @__PURE__ */ new Error(`recaptcha Enterprise site key undefined`));else{let l=new wt$2(u);return s.tenantId==null?s._agentRecaptchaConfig=l:s._tenantRecaptchaConfigs[s.tenantId]=l,o(l.siteKey)}}).catch(u=>{c(u)})}))})}function i(s,o,c){let u=window.grecaptcha;Ei$1(u)?u.enterprise.ready(()=>{u.enterprise.execute(s,{action:e}).then(l=>{o(l)}).catch(()=>{o(Oe)})}):c(Error(`No reCAPTCHA enterprise script loaded.`))}return this.auth.settings.appVerificationDisabledForTesting?new Hn().execute(`siteKey`,{action:`verify`}):new Promise((s,o)=>{r(this.auth).then(c=>M$1(this,null,function*(){if(!t&&Ei$1(window.grecaptcha)&&n.scriptInjectionDeferred)yield n.scriptInjectionDeferred.promise,i(c,s,o);else{if(typeof window>`u`){o(/* @__PURE__ */ new Error(`RecaptchaVerifier is only supported in browser`));return}let u=Ca$1();u.length!==0&&(u+=c+`&onload=${Ai$1}`),n.scriptInjectionDeferred=new M,window[Ai$1]=()=>{n.scriptInjectionDeferred?.resolve()},Qi$1(u).then(()=>n.scriptInjectionDeferred?.promise).then(()=>{i(c,s,o)}).catch(l=>{o(l)})}})).catch(c=>{o(c)})})})}};Ue$2.scriptInjectionDeferred=null;function Se(n,e,t,r=!1,i=!1){return M$1(this,null,function*(){let s=new Ue$2(n),o;if(i)o=Oe;else try{o=yield s.verify(t)}catch(u){o=yield s.verify(t,!0)}let c=F$3({},e);if(t===`mfaSmsEnrollment`||t===`mfaSmsSignIn`){if(`phoneEnrollmentInfo`in c){let u=c.phoneEnrollmentInfo.phoneNumber,l=c.phoneEnrollmentInfo.recaptchaToken;Object.assign(c,{phoneEnrollmentInfo:{phoneNumber:u,recaptchaToken:l,captchaResponse:o,clientType:`CLIENT_TYPE_WEB`,recaptchaVersion:`RECAPTCHA_ENTERPRISE`}})}else if(`phoneSignInInfo`in c){let u=c.phoneSignInInfo.recaptchaToken;Object.assign(c,{phoneSignInInfo:{recaptchaToken:u,captchaResponse:o,clientType:`CLIENT_TYPE_WEB`,recaptchaVersion:`RECAPTCHA_ENTERPRISE`}})}return c}return r?Object.assign(c,{captchaResp:o}):Object.assign(c,{captchaResponse:o}),Object.assign(c,{clientType:`CLIENT_TYPE_WEB`}),Object.assign(c,{recaptchaVersion:`RECAPTCHA_ENTERPRISE`}),c})}function De$1(n,e,t,r,i){return M$1(this,null,function*(){if(i===`EMAIL_PASSWORD_PROVIDER`)if(n._getRecaptchaConfig()?.isProviderEnabled(`EMAIL_PASSWORD_PROVIDER`))return r(n,yield Se(n,e,t,t===`getOobCode`));else return r(n,e).catch(s=>M$1(null,null,function*(){if(s.code===`auth/missing-recaptcha-token`){console.log(`${t} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);return r(n,yield Se(n,e,t,t===`getOobCode`))}else return Promise.reject(s)}));else if(i===`PHONE_PROVIDER`)if(n._getRecaptchaConfig()?.isProviderEnabled(`PHONE_PROVIDER`))return r(n,yield Se(n,e,t)).catch(o=>M$1(null,null,function*(){if(n._getRecaptchaConfig()?.getProviderEnforcementState(`PHONE_PROVIDER`)===`AUDIT`&&(o.code===`auth/missing-recaptcha-token`||o.code===`auth/invalid-app-credential`)){console.log(`Failed to verify with reCAPTCHA Enterprise. Automatically triggering the reCAPTCHA v2 flow to complete the ${t} flow.`);return r(n,yield Se(n,e,t,!1,!0))}return Promise.reject(o)}));else return r(n,yield Se(n,e,t,!1,!0));else return Promise.reject(i+` provider is not supported.`)})}function Da(n){return M$1(this,null,function*(){let e=ce$1(n),r=new wt$2(yield Hi$1(e,{clientType:`CLIENT_TYPE_WEB`,version:`RECAPTCHA_ENTERPRISE`}));e.tenantId==null?e._agentRecaptchaConfig=r:e._tenantRecaptchaConfigs[e.tenantId]=r,r.isAnyProviderEnabled()&&new Ue$2(e).verify()})}function ir$1(n,e){let t=at$2(n,`auth`);if(t.isInitialized()){let i=t.getImmediate();if(z(t.getOptions(),e??{}))return i;b$1(i,`already-initialized`)}return t.initialize({options:e})}function La$1(n,e){let t=e?.persistence||[],r=(Array.isArray(t)?t:[t]).map($);e?.errorMap&&n._updateErrorMap(e.errorMap),n._initializeWithPersistence(r,e?.popupRedirectResolver)}function sr$1(n,e,t){let r=ce$1(n);h$1(/^https?:\/\//.test(e),r,`invalid-emulator-scheme`);let i=!!t?.disableWarnings,s=ts$1(e),{host:o,port:c}=Ma$1(e),u=c===null?``:`:${c}`,l={url:`${s}//${o}${u}/`},d=Object.freeze({host:o,port:c,protocol:s.replace(`:`,``),options:Object.freeze({disableWarnings:i})});if(!r._canInitEmulator){h$1(r.config.emulator&&r.emulatorConfig,r,`emulator-config-failed`),h$1(z(l,r.config.emulator)&&z(d,r.emulatorConfig),r,`emulator-config-failed`);return}r.config.emulator=l,r.emulatorConfig=d,r.settings.appVerificationDisabledForTesting=!0,it$1(o)?Br$1(`${s}//${o}${u}`):i||Ua$1()}function ts$1(n){let e=n.indexOf(`:`);return e<0?``:n.substr(0,e+1)}function Ma$1(n){let e=ts$1(n),t=/(\/\/)?([^?#/]+)/.exec(n.substr(e.length));if(!t)return{host:``,port:null};let r=t[2].split(`@`).pop()||``,i=/^(\[[^\]]+\])(:|$)/.exec(r);if(i){let s=i[1];return{host:s,port:vi$1(r.substr(s.length+1))}}else{let[s,o]=r.split(`:`);return{host:s,port:vi$1(o)}}}function vi$1(n){if(!n)return null;let e=Number(n);return isNaN(e)?null:e}function Ua$1(){function n(){let e=document.createElement(`p`),t=e.style;e.innerText=`Running in emulator mode. Do not use with production credentials.`,t.position=`fixed`,t.width=`100%`,t.backgroundColor=`#ffffff`,t.border=`.1em solid #000000`,t.color=`#b50000`,t.bottom=`0px`,t.left=`0px`,t.margin=`0px`,t.zIndex=`10000`,t.textAlign=`center`,e.classList.add(`firebase-emulator-warning`),document.body.appendChild(e)}typeof console<`u`&&typeof console.info==`function`&&console.info(`WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials.`),typeof window<`u`&&typeof document<`u`&&(document.readyState===`loading`?window.addEventListener(`DOMContentLoaded`,n):n())}var re=class{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return D(`not implemented`)}_getIdTokenResponse(e){return D(`not implemented`)}_linkToIdToken(e,t){return D(`not implemented`)}_getReauthenticationResolver(e){return D(`not implemented`)}};function Fa$1(n,e){return M$1(this,null,function*(){return y(n,`POST`,`/v1/accounts:signUp`,e)})}function xa$1(n,e){return M$1(this,null,function*(){return ae(n,`POST`,`/v1/accounts:signInWithPassword`,E(n,e))})}function Va$1(n,e){return M$1(this,null,function*(){return ae(n,`POST`,`/v1/accounts:signInWithEmailLink`,E(n,e))})}function $a$1(n,e){return M$1(this,null,function*(){return ae(n,`POST`,`/v1/accounts:signInWithEmailLink`,E(n,e))})}var Fe$2=class n extends re{constructor(e,t,r,i=null){super(`password`,r),this._email=e,this._password=t,this._tenantId=i}static _fromEmailAndPassword(e,t){return new n(e,t,`password`)}static _fromEmailAndCode(e,t,r=null){return new n(e,t,`emailLink`,r)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){let t=typeof e==`string`?JSON.parse(e):e;if(t?.email&&t?.password){if(t.signInMethod===`password`)return this._fromEmailAndPassword(t.email,t.password);if(t.signInMethod===`emailLink`)return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}_getIdTokenResponse(e){return M$1(this,null,function*(){switch(this.signInMethod){case`password`:return De$1(e,{returnSecureToken:!0,email:this._email,password:this._password,clientType:`CLIENT_TYPE_WEB`},`signInWithPassword`,xa$1,`EMAIL_PASSWORD_PROVIDER`);case`emailLink`:return Va$1(e,{email:this._email,oobCode:this._password});default:b$1(e,`internal-error`)}})}_linkToIdToken(e,t){return M$1(this,null,function*(){switch(this.signInMethod){case`password`:return De$1(e,{idToken:t,returnSecureToken:!0,email:this._email,password:this._password,clientType:`CLIENT_TYPE_WEB`},`signUpPassword`,Fa$1,`EMAIL_PASSWORD_PROVIDER`);case`emailLink`:return $a$1(e,{idToken:t,email:this._email,oobCode:this._password});default:b$1(e,`internal-error`)}})}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}};function _e(n,e){return M$1(this,null,function*(){return ae(n,`POST`,`/v1/accounts:signInWithIdp`,E(n,e))})}var Wa$1=`http://localhost`;var ie=class n extends re{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){let t=new n(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):b$1(`argument-error`),t}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){let c=typeof e==`string`?JSON.parse(e):e,{providerId:r,signInMethod:i}=c,s=I$1(c,[`providerId`,`signInMethod`]);if(!r||!i)return null;let o=new n(r,i);return o.idToken=s.idToken||void 0,o.accessToken=s.accessToken||void 0,o.secret=s.secret,o.nonce=s.nonce,o.pendingToken=s.pendingToken||null,o}_getIdTokenResponse(e){return _e(e,this.buildRequest())}_linkToIdToken(e,t){let r=this.buildRequest();return r.idToken=t,_e(e,r)}_getReauthenticationResolver(e){let t=this.buildRequest();return t.autoCreate=!1,_e(e,t)}buildRequest(){let e={requestUri:Wa$1,returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{let t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=de(t)}return e}};function bi$1(n,e){return M$1(this,null,function*(){return y(n,`POST`,`/v1/accounts:sendVerificationCode`,E(n,e))})}function Ha$1(n,e){return M$1(this,null,function*(){return ae(n,`POST`,`/v1/accounts:signInWithPhoneNumber`,E(n,e))})}function Ba(n,e){return M$1(this,null,function*(){let t=yield ae(n,`POST`,`/v1/accounts:signInWithPhoneNumber`,E(n,e));if(t.temporaryProof)throw Re$1(n,`account-exists-with-different-credential`,t);return t})}var za$1={USER_NOT_FOUND:`user-not-found`};function ja$1(n,e){return M$1(this,null,function*(){return ae(n,`POST`,`/v1/accounts:signInWithPhoneNumber`,E(n,G$1(F$3({},e),{operation:`REAUTH`})),za$1)})}var xe$3=class n extends re{constructor(e){super(`phone`,`phone`),this.params=e}static _fromVerification(e,t){return new n({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new n({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return Ha$1(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return Ba(e,F$3({idToken:t},this._makeVerificationRequest()))}_getReauthenticationResolver(e){return ja$1(e,this._makeVerificationRequest())}_makeVerificationRequest(){let{temporaryProof:e,phoneNumber:t,verificationId:r,verificationCode:i}=this.params;return e&&t?{temporaryProof:e,phoneNumber:t}:{sessionInfo:r,code:i}}toJSON(){let e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}static fromJSON(e){typeof e==`string`&&(e=JSON.parse(e));let{verificationId:t,verificationCode:r,phoneNumber:i,temporaryProof:s}=e;return!r&&!t&&!i&&!s?null:new n({verificationId:t,verificationCode:r,phoneNumber:i,temporaryProof:s})}};function qa$1(n){switch(n){case`recoverEmail`:return`RECOVER_EMAIL`;case`resetPassword`:return`PASSWORD_RESET`;case`signIn`:return`EMAIL_SIGNIN`;case`verifyEmail`:return`VERIFY_EMAIL`;case`verifyAndChangeEmail`:return`VERIFY_AND_CHANGE_EMAIL`;case`revertSecondFactorAddition`:return`REVERT_SECOND_FACTOR_ADDITION`;default:return null}}function Ka(n){let e=he(fe(n)).link,t=e?he(fe(e)).deep_link_id:null,r=he(fe(n)).deep_link_id;return(r?he(fe(r)).link:null)||r||t||e||n}var kt=class n{constructor(e){let t=he(fe(e)),r=t.apiKey??null,i=t.oobCode??null,s=qa$1(t.mode??null);h$1(r&&i&&s,`argument-error`),this.apiKey=r,this.operation=s,this.code=i,this.continueUrl=t.continueUrl??null,this.languageCode=t.lang??null,this.tenantId=t.tenantId??null}static parseLink(e){let t=Ka(e);try{return new n(t)}catch(r){return null}}};var Ee=class n{constructor(){this.providerId=n.PROVIDER_ID}static credential(e,t){return Fe$2._fromEmailAndPassword(e,t)}static credentialWithLink(e,t){let r=kt.parseLink(t);return h$1(r,`argument-error`),Fe$2._fromEmailAndCode(e,r.code,r.tenantId)}};Ee.PROVIDER_ID=`password`;Ee.EMAIL_PASSWORD_SIGN_IN_METHOD=`password`;Ee.EMAIL_LINK_SIGN_IN_METHOD=`emailLink`;var Ve$1=class{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}};var se=class extends Ve$1{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}};var $e=class n extends se{constructor(){super(`facebook.com`)}static credential(e){return ie._fromParams({providerId:n.PROVIDER_ID,signInMethod:n.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return n.credentialFromTaggedObject(e)}static credentialFromError(e){return n.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!(`oauthAccessToken`in e)||!e.oauthAccessToken)return null;try{return n.credential(e.oauthAccessToken)}catch(t){return null}}};$e.FACEBOOK_SIGN_IN_METHOD=`facebook.com`;$e.PROVIDER_ID=`facebook.com`;var H=class n extends se{constructor(){super(`google.com`),this.addScope(`profile`)}static credential(e,t){return ie._fromParams({providerId:n.PROVIDER_ID,signInMethod:n.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}static credentialFromResult(e){return n.credentialFromTaggedObject(e)}static credentialFromError(e){return n.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{oauthIdToken:t,oauthAccessToken:r}=e;if(!t&&!r)return null;try{return n.credential(t,r)}catch(i){return null}}};H.GOOGLE_SIGN_IN_METHOD=`google.com`;H.PROVIDER_ID=`google.com`;var We=class n extends se{constructor(){super(`github.com`)}static credential(e){return ie._fromParams({providerId:n.PROVIDER_ID,signInMethod:n.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return n.credentialFromTaggedObject(e)}static credentialFromError(e){return n.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!(`oauthAccessToken`in e)||!e.oauthAccessToken)return null;try{return n.credential(e.oauthAccessToken)}catch(t){return null}}};We.GITHUB_SIGN_IN_METHOD=`github.com`;We.PROVIDER_ID=`github.com`;var He$2=class n extends se{constructor(){super(`twitter.com`)}static credential(e,t){return ie._fromParams({providerId:n.PROVIDER_ID,signInMethod:n.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}static credentialFromResult(e){return n.credentialFromTaggedObject(e)}static credentialFromError(e){return n.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{oauthAccessToken:t,oauthTokenSecret:r}=e;if(!t||!r)return null;try{return n.credential(t,r)}catch(i){return null}}};He$2.TWITTER_SIGN_IN_METHOD=`twitter.com`;He$2.PROVIDER_ID=`twitter.com`;var Be$1=class n{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static _fromIdTokenResponse(e,t,r,i=!1){return M$1(this,null,function*(){let s=yield G._fromIdTokenResponse(e,r,i),o=ki$1(r);return new n({user:s,providerId:o,_tokenResponse:r,operationType:t})})}static _forOperation(e,t,r){return M$1(this,null,function*(){yield e._updateTokensIfNecessary(r,!0);let i=ki$1(r);return new n({user:e,providerId:i,_tokenResponse:r,operationType:t})})}};function ki$1(n){return n.providerId?n.providerId:`phoneNumber`in n?`phone`:null}var zn$1=class n extends S$1{constructor(e,t,r,i){super(t.code,t.message),this.operationType=r,this.user=i,Object.setPrototypeOf(this,n.prototype),this.customData={appName:e.name,tenantId:e.tenantId??void 0,_serverResponse:t.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(e,t,r,i){return new n(e,t,r,i)}};function ns$1(n,e,t,r){return(e===`reauthenticate`?t._getReauthenticationResolver(n):t._getIdTokenResponse(n)).catch(s=>{throw s.code===`auth/multi-factor-auth-required`?zn$1._fromErrorAndOperation(n,s,e,r):s})}function Ga$1(n,e,t=!1){return M$1(this,null,function*(){let r=yield Le$2(n,e._linkToIdToken(n.auth,yield n.getIdToken()),t);return Be$1._forOperation(n,`link`,r)})}function Ja$1(n,e,t=!1){return M$1(this,null,function*(){let{auth:r}=n;if(P$1(r.app))return Promise.reject(te$1(r));let i=`reauthenticate`;try{let s=yield Le$2(n,ns$1(r,i,e,n),t);h$1(s.idToken,r,`internal-error`);let o=tr$1(s.idToken);h$1(o,r,`internal-error`);let{sub:c}=o;return h$1(n.uid===c,r,`user-mismatch`),Be$1._forOperation(n,i,s)}catch(s){throw s?.code===`auth/user-not-found`&&b$1(r,`user-mismatch`),s}})}function Ya$1(n,e,t=!1){return M$1(this,null,function*(){if(P$1(n.app))return Promise.reject(te$1(n));let r=`signIn`,i=yield ns$1(n,r,e),s=yield Be$1._fromIdTokenResponse(n,r,i);return t||(yield n._updateCurrentUser(s.user)),s})}function qe(n,e,t,r){return U(n).onIdTokenChanged(e,t,r)}function or$2(n,e,t){return U(n).beforeAuthStateChanged(e,t)}function Si$1(n,e){return y(n,`POST`,`/v2/accounts/mfaEnrollment:start`,E(n,e))}function Xa$1(n,e){return y(n,`POST`,`/v2/accounts/mfaEnrollment:finalize`,E(n,e))}function Za$1(n,e){return y(n,`POST`,`/v2/accounts/mfaEnrollment:start`,E(n,e))}function Qa$1(n,e){return y(n,`POST`,`/v2/accounts/mfaEnrollment:finalize`,E(n,e))}var St$2=`__sak`;var Rt$2=class{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{return this.storage?(this.storage.setItem(St$2,`1`),this.storage.removeItem(St$2),Promise.resolve(!0)):Promise.resolve(!1)}catch(e){return Promise.resolve(!1)}}_set(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}_get(e){let t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}};var ec=1e3;var tc=10;var Pt$1=class n extends Rt$2{constructor(){super(()=>window.localStorage,`LOCAL`),this.boundEventHandler=(e,t)=>this.onStorageEvent(e,t),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=Xi$1(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(let t of Object.keys(this.listeners)){let r=this.storage.getItem(t),i=this.localCache[t];r!==i&&e(t,i,r)}}onStorageEvent(e,t=!1){if(!e.key){this.forAllChangedKeys((o,c,u)=>{this.notifyListeners(o,u)});return}let r=e.key;t?this.detachListener():this.stopPolling();let i=()=>{let o=this.storage.getItem(r);!t&&this.localCache[r]===o||this.notifyListeners(r,o)},s=this.storage.getItem(r);ka$1()&&s!==e.newValue&&e.newValue!==e.oldValue?setTimeout(i,tc):i()}notifyListeners(e,t){this.localCache[e]=t;let r=this.listeners[e];if(r)for(let i of Array.from(r))i(t&&JSON.parse(t))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,t,r)=>{this.onStorageEvent(new StorageEvent(`storage`,{key:e,oldValue:t,newValue:r}),!0)})},ec)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener(`storage`,this.boundEventHandler)}detachListener(){window.removeEventListener(`storage`,this.boundEventHandler)}_addListener(e,t){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=/* @__PURE__ */ new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),this.listeners[e].size===0&&delete this.listeners[e]),Object.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}_set(e,t){return M$1(this,null,function*(){yield L$4(n.prototype,this,`_set`).call(this,e,t),this.localCache[e]=JSON.stringify(t)})}_get(e){return M$1(this,null,function*(){let t=yield L$4(n.prototype,this,`_get`).call(this,e);return this.localCache[e]=JSON.stringify(t),t})}_remove(e){return M$1(this,null,function*(){yield L$4(n.prototype,this,`_remove`).call(this,e),delete this.localCache[e]})}};Pt$1.type=`LOCAL`;var rs$1=Pt$1;var nc=1e3;function Nn(n){let e=n.replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`),t=RegExp(`${e}=([^;]+)`);return document.cookie.match(t)?.[1]??null}function On$1(n){return`${window.location.protocol===`http:`?`__dev_`:`__HOST-`}FIREBASE_${n.split(`:`)[3]}`}var jn=class{constructor(){this.type=`COOKIE`,this.listenerUnsubscribes=/* @__PURE__ */ new Map}_getFinalTarget(e){let t=new URL(`${window.location.origin}/__cookies__`);return t.searchParams.set(`finalTarget`,e),t}_isAvailable(){return M$1(this,null,function*(){return typeof isSecureContext==`boolean`&&!isSecureContext||typeof navigator>`u`||typeof document>`u`?!1:navigator.cookieEnabled??!0})}_set(e,t){return M$1(this,null,function*(){})}_get(e){return M$1(this,null,function*(){if(!this._isAvailable())return null;let t=On$1(e);return window.cookieStore?(yield window.cookieStore.get(t))?.value:Nn(t)})}_remove(e){return M$1(this,null,function*(){if(!this._isAvailable()||!(yield this._get(e)))return;let r=On$1(e);document.cookie=`${r}=;Max-Age=34560000;Partitioned;Secure;SameSite=Strict;Path=/;Priority=High`,yield fetch(`/__cookies__`,{method:`DELETE`}).catch(()=>{})})}_addListener(e,t){if(!this._isAvailable())return;let r=On$1(e);if(window.cookieStore){let c=(l=>{let d=l.changed.find(m=>m.name===r);d&&t(d.value),l.deleted.find(m=>m.name===r)&&t(null)}),u=()=>window.cookieStore.removeEventListener(`change`,c);return this.listenerUnsubscribes.set(t,u),window.cookieStore.addEventListener(`change`,c)}let i=Nn(r),s=setInterval(()=>{let c=Nn(r);c!==i&&(t(c),i=c)},nc),o=()=>clearInterval(s);this.listenerUnsubscribes.set(t,o)}_removeListener(e,t){let r=this.listenerUnsubscribes.get(t);r&&(r(),this.listenerUnsubscribes.delete(t))}};jn.type=`COOKIE`;var Ct$2=class extends Rt$2{constructor(){super(()=>window.sessionStorage,`SESSION`)}_addListener(e,t){}_removeListener(e,t){}};Ct$2.type=`SESSION`;var ar$1=Ct$2;function rc(n){return Promise.all(n.map(e=>M$1(null,null,function*(){try{return{fulfilled:!0,value:yield e}}catch(t){return{fulfilled:!1,reason:t}}})))}var Nt$2=class n{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){let t=this.receivers.find(i=>i.isListeningto(e));if(t)return t;let r=new n(e);return this.receivers.push(r),r}isListeningto(e){return this.eventTarget===e}handleEvent(e){return M$1(this,null,function*(){let t=e,{eventId:r,eventType:i,data:s}=t.data,o=this.handlersMap[i];if(!o?.size)return;t.ports[0].postMessage({status:`ack`,eventId:r,eventType:i});let u=yield rc(Array.from(o).map(l=>M$1(this,null,function*(){return l(t.origin,s)})));t.ports[0].postMessage({status:`done`,eventId:r,eventType:i,response:u})})}_subscribe(e,t){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener(`message`,this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=/* @__PURE__ */ new Set),this.handlersMap[e].add(t)}_unsubscribe(e,t){this.handlersMap[e]&&t&&this.handlersMap[e].delete(t),(!t||this.handlersMap[e].size===0)&&delete this.handlersMap[e],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener(`message`,this.boundEventHandler)}};Nt$2.receivers=[];function cr$1(n=``,e=10){let t=``;for(let r=0;r<e;r++)t+=Math.floor(Math.random()*10);return n+t}var qn=class{constructor(e){this.target=e,this.handlers=/* @__PURE__ */ new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener(`message`,e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}_send(e,t,r=50){return M$1(this,null,function*(){let i=typeof MessageChannel<`u`?new MessageChannel:null;if(!i)throw new Error(`connection_unavailable`);let s,o;return new Promise((c,u)=>{let l=cr$1(``,20);i.port1.start();let d=setTimeout(()=>{u(/* @__PURE__ */ new Error(`unsupported_event`))},r);o={messageChannel:i,onMessage(f){let m=f;if(m.data.eventId===l)switch(m.data.status){case`ack`:clearTimeout(d),s=setTimeout(()=>{u(/* @__PURE__ */ new Error(`timeout`))},3e3);break;case`done`:clearTimeout(s),c(m.data.response);break;default:clearTimeout(d),clearTimeout(s),u(/* @__PURE__ */ new Error(`invalid_response`))}}},this.handlers.add(o),i.port1.addEventListener(`message`,o.onMessage),this.target.postMessage({eventType:e,eventId:l,data:t},[i.port2])}).finally(()=>{o&&this.removeMessageHandler(o)})})}};function L$1(){return window}function ic(n){L$1().location.href=n}function is$1(){return typeof L$1().WorkerGlobalScope<`u`&&typeof L$1().importScripts==`function`}function sc(){return M$1(this,null,function*(){if(!navigator?.serviceWorker)return null;try{return(yield navigator.serviceWorker.ready).active}catch(n){return null}})}function oc(){return navigator?.serviceWorker?.controller||null}function ac(){return is$1()?self:null}var ss$1=`firebaseLocalStorageDb`;var cc=1;var Ot$1=`firebaseLocalStorage`;var os$1=`fbase_key`;var oe=class{constructor(e){this.request=e}toPromise(){return new Promise((e,t)=>{this.request.addEventListener(`success`,()=>{e(this.request.result)}),this.request.addEventListener(`error`,()=>{t(this.request.error)})})}};function zt$1(n,e){return n.transaction([Ot$1],e?`readwrite`:`readonly`).objectStore(Ot$1)}function uc(){return new oe(indexedDB.deleteDatabase(ss$1)).toPromise()}function as$1(){let n=indexedDB.open(ss$1,cc);return new Promise((e,t)=>{n.addEventListener(`error`,()=>{t(n.error)}),n.addEventListener(`upgradeneeded`,()=>{let r=n.result;try{r.createObjectStore(Ot$1,{keyPath:os$1})}catch(i){t(i)}}),n.addEventListener(`success`,()=>M$1(null,null,function*(){let r=n.result;r.objectStoreNames.contains(Ot$1)?e(r):(r.close(),yield uc(),e(yield as$1()))}))})}function Ri$1(n,e,t){return M$1(this,null,function*(){return new oe(zt$1(n,!0).put({[os$1]:e,value:t})).toPromise()})}function lc(n,e){return M$1(this,null,function*(){let r=yield new oe(zt$1(n,!1).get(e)).toPromise();return r===void 0?null:r.value})}function Pi$1(n,e){return new oe(zt$1(n,!0).delete(e)).toPromise()}var dc=800;var hc=3;var Dt$1=class{registerLifecycleListeners(){typeof window<`u`&&typeof window.addEventListener==`function`&&(window.addEventListener(`pagehide`,this.onPageHide),window.addEventListener(`pageshow`,this.onPageShow))}unregisterLifecycleListeners(){typeof window<`u`&&typeof window.removeEventListener==`function`&&(window.removeEventListener(`pagehide`,this.onPageHide),window.removeEventListener(`pageshow`,this.onPageShow))}constructor(){this.type=`LOCAL`,this.dbPromise=null,this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.isClosing=!1,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this.onPageHide=()=>{this.isClosing=!0,this.stopPolling(),this.dbPromise&&(this.dbPromise.then(e=>e.close()).catch(()=>{}),this.dbPromise=null)},this.onPageShow=()=>{this.isClosing&&(this.isClosing=!1,Object.keys(this.listeners).length>0&&this.startPolling())},this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}_openDb(){return M$1(this,null,function*(){return this.dbPromise?this.dbPromise:(this.dbPromise=as$1(),this.dbPromise.catch(()=>{this.dbPromise=null}),this.dbPromise)})}_withRetries(e){return M$1(this,null,function*(){let t=0;for(;;)try{return yield e(yield this._openDb())}catch(r){if(t++>hc)throw r;if(this.dbPromise){let i=this.dbPromise;this.dbPromise=null;try{(yield i).close()}catch(s){}}}})}initializeServiceWorkerMessaging(){return M$1(this,null,function*(){return is$1()?this.initializeReceiver():this.initializeSender()})}initializeReceiver(){return M$1(this,null,function*(){this.receiver=Nt$2._getInstance(ac()),this.receiver._subscribe(`keyChanged`,(e,t)=>M$1(this,null,function*(){return{keyProcessed:(yield this._poll()).includes(t.key)}})),this.receiver._subscribe(`ping`,(e,t)=>M$1(this,null,function*(){return[`keyChanged`]}))})}initializeSender(){return M$1(this,null,function*(){if(this.activeServiceWorker=yield sc(),!this.activeServiceWorker)return;this.sender=new qn(this.activeServiceWorker);let e=yield this.sender._send(`ping`,{},800);e&&e[0]?.fulfilled&&e[0]?.value.includes(`keyChanged`)&&(this.serviceWorkerReceiverAvailable=!0)})}notifyServiceWorker(e){return M$1(this,null,function*(){if(!(!this.sender||!this.activeServiceWorker||oc()!==this.activeServiceWorker))try{yield this.sender._send(`keyChanged`,{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch(t){}})}_isAvailable(){return M$1(this,null,function*(){try{return indexedDB?(yield this._withRetries(e=>M$1(this,null,function*(){yield Ri$1(e,St$2,`1`),yield Pi$1(e,St$2)})),!0):!1}catch(e){}return!1})}_withPendingWrite(e){return M$1(this,null,function*(){this.pendingWrites++;try{yield e()}finally{this.pendingWrites--}})}_set(e,t){return M$1(this,null,function*(){return this._withPendingWrite(()=>M$1(this,null,function*(){return yield this._withRetries(r=>Ri$1(r,e,t)),this.localCache[e]=t,this.notifyServiceWorker(e)}))})}_get(e){return M$1(this,null,function*(){let t=yield this._withRetries(r=>lc(r,e));return this.localCache[e]=t,t})}_remove(e){return M$1(this,null,function*(){return this._withPendingWrite(()=>M$1(this,null,function*(){return yield this._withRetries(t=>Pi$1(t,e)),delete this.localCache[e],this.notifyServiceWorker(e)}))})}_poll(){return M$1(this,null,function*(){if(this.isClosing)return[];try{let e=yield this._withRetries(i=>{return new oe(zt$1(i,!1).getAll()).toPromise()});if(this.isClosing)return[];if(!e)return[];if(this.pendingWrites!==0)return[];let t=[],r=/* @__PURE__ */ new Set;if(e.length!==0)for(let{fbase_key:i,value:s}of e)r.add(i),JSON.stringify(this.localCache[i])!==JSON.stringify(s)&&(this.notifyListeners(i,s),t.push(i));for(let i of Object.keys(this.localCache))this.localCache[i]&&!r.has(i)&&(this.notifyListeners(i,null),t.push(i));return t}catch(e){return this.isClosing||ft$2(`Firebase Auth cross-tab polling failed with error: ${e}`),[]}})}notifyListeners(e,t){this.localCache[e]=t;let r=this.listeners[e];if(r)for(let i of Array.from(r))i(t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>M$1(this,null,function*(){return this._poll()}),dc)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,t){Object.keys(this.listeners).length===0&&(this.startPolling(),this.registerLifecycleListeners()),this.listeners[e]||(this.listeners[e]=/* @__PURE__ */ new Set,this._get(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),this.listeners[e].size===0&&delete this.listeners[e]),Object.keys(this.listeners).length===0&&(this.stopPolling(),this.unregisterLifecycleListeners())}};Dt$1.type=`LOCAL`;var cs$1=Dt$1;function Ci$1(n,e){return y(n,`POST`,`/v2/accounts/mfaSignIn:start`,E(n,e))}function fc(n,e){return y(n,`POST`,`/v2/accounts/mfaSignIn:finalize`,E(n,e))}function pc(n,e){return y(n,`POST`,`/v2/accounts/mfaSignIn:finalize`,E(n,e))}es$1(`rcb`);new ne$2(3e4,6e4);var gt$2=`recaptcha`;function mc(n,e,t){return M$1(this,null,function*(){if(!n._getRecaptchaConfig())try{yield Da(n)}catch(r){console.log(`Failed to initialize reCAPTCHA Enterprise config. Triggering the reCAPTCHA v2 verification.`)}try{let r;if(typeof e==`string`?r={phoneNumber:e}:r=e,`session`in r){let i=r.session;if(`phoneNumber`in r){h$1(i.type===`enroll`,n,`internal-error`);return(yield De$1(n,{idToken:i.credential,phoneEnrollmentInfo:{phoneNumber:r.phoneNumber,clientType:`CLIENT_TYPE_WEB`}},`mfaSmsEnrollment`,(l,d)=>M$1(null,null,function*(){if(d.phoneEnrollmentInfo.captchaResponse===Oe){h$1(t?.type===gt$2,l,`argument-error`);return Si$1(l,yield Dn$2(l,d,t))}return Si$1(l,d)}),`PHONE_PROVIDER`).catch(l=>Promise.reject(l))).phoneSessionInfo.sessionInfo}else{h$1(i.type===`signin`,n,`internal-error`);let s=r.multiFactorHint?.uid||r.multiFactorUid;h$1(s,n,`missing-multi-factor-info`);return(yield De$1(n,{mfaPendingCredential:i.credential,mfaEnrollmentId:s,phoneSignInInfo:{clientType:`CLIENT_TYPE_WEB`}},`mfaSmsSignIn`,(d,f)=>M$1(null,null,function*(){if(f.phoneSignInInfo.captchaResponse===Oe){h$1(t?.type===gt$2,d,`argument-error`);return Ci$1(d,yield Dn$2(d,f,t))}return Ci$1(d,f)}),`PHONE_PROVIDER`).catch(d=>Promise.reject(d))).phoneResponseInfo.sessionInfo}}else return(yield De$1(n,{phoneNumber:r.phoneNumber,clientType:`CLIENT_TYPE_WEB`},`sendVerificationCode`,(u,l)=>M$1(null,null,function*(){if(l.captchaResponse===Oe){h$1(t?.type===gt$2,u,`argument-error`);return bi$1(u,yield Dn$2(u,l,t))}return bi$1(u,l)}),`PHONE_PROVIDER`).catch(u=>Promise.reject(u))).sessionInfo}finally{t?._reset()}})}function Dn$2(n,e,t){return M$1(this,null,function*(){h$1(t.type===gt$2,n,`argument-error`);let r=yield t.verify();h$1(typeof r==`string`,n,`argument-error`);let i=F$3({},e);if(`phoneEnrollmentInfo`in i){let s=i.phoneEnrollmentInfo.phoneNumber,o=i.phoneEnrollmentInfo.captchaResponse,c=i.phoneEnrollmentInfo.clientType,u=i.phoneEnrollmentInfo.recaptchaVersion;return Object.assign(i,{phoneEnrollmentInfo:{phoneNumber:s,recaptchaToken:r,captchaResponse:o,clientType:c,recaptchaVersion:u}}),i}else if(`phoneSignInInfo`in i){let s=i.phoneSignInInfo.captchaResponse,o=i.phoneSignInInfo.clientType,c=i.phoneSignInInfo.recaptchaVersion;return Object.assign(i,{phoneSignInInfo:{recaptchaToken:r,captchaResponse:s,clientType:o,recaptchaVersion:c}}),i}else return Object.assign(i,{recaptchaToken:r}),i})}var ze$2=class n{constructor(e){this.providerId=n.PROVIDER_ID,this.auth=ce$1(e)}verifyPhoneNumber(e,t){return mc(this.auth,e,U(t))}static credential(e,t){return xe$3._fromVerification(e,t)}static credentialFromResult(e){let t=e;return n.credentialFromTaggedObject(t)}static credentialFromError(e){return n.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{phoneNumber:t,temporaryProof:r}=e;return t&&r?xe$3._fromTokenResponse(t,r):null}};ze$2.PROVIDER_ID=`phone`;ze$2.PHONE_SIGN_IN_METHOD=`phone`;function us$1(n,e){return e?$(e):(h$1(n._popupRedirectResolver,n,`argument-error`),n._popupRedirectResolver)}var je$1=class extends re{constructor(e){super(`custom`,`custom`),this.params=e}_getIdTokenResponse(e){return _e(e,this._buildIdpRequest())}_linkToIdToken(e,t){return _e(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return _e(e,this._buildIdpRequest())}_buildIdpRequest(e){let t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(t.idToken=e),t}};function gc(n){return Ya$1(n.auth,new je$1(n),n.bypassAuthState)}function Ic(n){let{auth:e,user:t}=n;return h$1(t,e,`internal-error`),Ja$1(t,new je$1(n),n.bypassAuthState)}function _c(n){return M$1(this,null,function*(){let{auth:e,user:t}=n;return h$1(t,e,`internal-error`),Ga$1(t,new je$1(n),n.bypassAuthState)})}var Lt=class{constructor(e,t,r,i,s=!1){this.auth=e,this.resolver=r,this.user=i,this.bypassAuthState=s,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(t)?t:[t]}execute(){return new Promise((e,t)=>M$1(this,null,function*(){this.pendingPromise={resolve:e,reject:t};try{this.eventManager=yield this.resolver._initialize(this.auth),yield this.onExecution(),this.eventManager.registerConsumer(this)}catch(r){this.reject(r)}}))}onAuthEvent(e){return M$1(this,null,function*(){let{urlResponse:t,sessionId:r,postBody:i,tenantId:s,error:o,type:c}=e;if(o){this.reject(o);return}let u={auth:this.auth,requestUri:t,sessionId:r,tenantId:s||void 0,postBody:i||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(yield this.getIdpTask(c)(u))}catch(l){this.reject(l)}})}onError(e){this.reject(e)}getIdpTask(e){switch(e){case`signInViaPopup`:case`signInViaRedirect`:return gc;case`linkViaPopup`:case`linkViaRedirect`:return _c;case`reauthViaPopup`:case`reauthViaRedirect`:return Ic;default:b$1(this.auth,`internal-error`)}}resolve(e){W(this.pendingPromise,`Pending promise was never set`),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){W(this.pendingPromise,`Pending promise was never set`),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}};var Ec=new ne$2(2e3,1e4);function ur$1(n,e,t){return M$1(this,null,function*(){if(P$1(n.app))return Promise.reject(N(n,`operation-not-supported-in-this-environment`));let r=ce$1(n);ha$1(n,e,Ve$1);return new Mt$1(r,`signInViaPopup`,e,us$1(r,t)).executeNotNull()})}var Mt$1=class n extends Lt{constructor(e,t,r,i,s){super(e,t,i,s),this.provider=r,this.authWindow=null,this.pollId=null,n.currentPopupAction&&n.currentPopupAction.cancel(),n.currentPopupAction=this}executeNotNull(){return M$1(this,null,function*(){let e=yield this.execute();return h$1(e,this.auth,`internal-error`),e})}onExecution(){return M$1(this,null,function*(){W(this.filter.length===1,`Popup operations only handle one event`);let e=cr$1();this.authWindow=yield this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch(t=>{this.reject(t)}),this.resolver._isIframeWebStorageSupported(this.auth,t=>{t||this.reject(N(this.auth,`web-storage-unsupported`))}),this.pollUserCancellation()})}get eventId(){return this.authWindow?.associatedEvent||null}cancel(){this.reject(N(this.auth,`cancelled-popup-request`))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,n.currentPopupAction=null}pollUserCancellation(){let e=()=>{if(this.authWindow?.window?.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(N(this.auth,`popup-closed-by-user`))},8e3);return}this.pollId=window.setTimeout(e,Ec.get())};e()}};Mt$1.currentPopupAction=null;var Tc=`pendingRedirect`;var It$1=/* @__PURE__ */ new Map;var Kn=class n extends Lt{constructor(e,t,r=!1){super(e,[`signInViaRedirect`,`linkViaRedirect`,`reauthViaRedirect`,`unknown`],t,void 0,r),this.eventId=null}execute(){return M$1(this,null,function*(){let e=It$1.get(this.auth._key());if(!e){try{let r=(yield wc(this.resolver,this.auth))?yield L$4(n.prototype,this,`execute`).call(this):null;e=()=>Promise.resolve(r)}catch(t){e=()=>Promise.reject(t)}It$1.set(this.auth._key(),e)}return this.bypassAuthState||It$1.set(this.auth._key(),()=>Promise.resolve(null)),e()})}onAuthEvent(e){return M$1(this,null,function*(){if(e.type===`signInViaRedirect`)return L$4(n.prototype,this,`onAuthEvent`).call(this,e);if(e.type===`unknown`){this.resolve(null);return}if(e.eventId){let t=yield this.auth._redirectUserForId(e.eventId);if(t)return this.user=t,L$4(n.prototype,this,`onAuthEvent`).call(this,e);this.resolve(null)}})}onExecution(){return M$1(this,null,function*(){})}cleanUp(){}};function wc(n,e){return M$1(this,null,function*(){let t=vc(e),r=Ac(n);if(!(yield r._isAvailable()))return!1;let i=(yield r._get(t))===`true`;return yield r._remove(t),i})}function yc(n,e){It$1.set(n._key(),e)}function Ac(n){return $(n._redirectPersistence)}function vc(n){return mt$2(Tc,n.config.apiKey,n.name)}function bc(n,e,t=!1){return M$1(this,null,function*(){if(P$1(n.app))return Promise.reject(te$1(n));let r=ce$1(n),o=yield new Kn(r,us$1(r,e),t).execute();return o&&!t&&(delete o.user._redirectEventId,yield r._persistUserIfCurrent(o.user),yield r._setRedirectUser(null,e)),o})}var kc=6e5;var Gn=class{constructor(e){this.auth=e,this.cachedEventUids=/* @__PURE__ */ new Set,this.consumers=/* @__PURE__ */ new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let t=!1;return this.consumers.forEach(r=>{this.isEventForConsumer(e,r)&&(t=!0,this.sendToConsumer(e,r),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!Sc(e)||(this.hasHandledPotentialRedirect=!0,t||(this.queuedRedirectEvent=e,t=!0)),t}sendToConsumer(e,t){if(e.error&&!ls$1(e)){let r=e.error.code?.split(`auth/`)[1]||`internal-error`;t.onError(N(this.auth,r))}else t.onAuthEvent(e)}isEventForConsumer(e,t){let r=t.eventId===null||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&r}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=kc&&this.cachedEventUids.clear(),this.cachedEventUids.has(Ni$1(e))}saveEventToCache(e){this.cachedEventUids.add(Ni$1(e)),this.lastProcessedEventTime=Date.now()}};function Ni$1(n){return[n.type,n.eventId,n.sessionId,n.tenantId].filter(e=>e).join(`-`)}function ls$1({type:n,error:e}){return n===`unknown`&&e?.code===`auth/no-auth-event`}function Sc(n){switch(n.type){case`signInViaRedirect`:case`linkViaRedirect`:case`reauthViaRedirect`:return!0;case`unknown`:return ls$1(n);default:return!1}}function Rc(t){return M$1(this,arguments,function*(n,e={}){return y(n,`GET`,`/v1/projects`,e)})}var Pc=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;var Cc=/^https?/;function Nc(n){return M$1(this,null,function*(){if(n.config.emulator)return;let{authorizedDomains:e}=yield Rc(n);for(let t of e)try{if(Oc(t))return}catch(r){}b$1(n,`unauthorized-domain`)})}function Oc(n){let e=Mn$1(),{protocol:t,hostname:r}=new URL(e);if(n.startsWith(`chrome-extension://`)){let o=new URL(n);return o.hostname===``&&r===``?t===`chrome-extension:`&&n.replace(`chrome-extension://`,``)===e.replace(`chrome-extension://`,``):t===`chrome-extension:`&&o.hostname===r}if(!Cc.test(t))return!1;if(Pc.test(n))return r===n;let i=n.replace(/\./g,`\\.`);return new RegExp(`^(.+\\.`+i+`|`+i+`)$`,`i`).test(r)}var Dc=new ne$2(3e4,6e4);function Oi$1(){let n=L$1().___jsl;if(n?.H){for(let e of Object.keys(n.H))if(n.H[e].r=n.H[e].r||[],n.H[e].L=n.H[e].L||[],n.H[e].r=[...n.H[e].L],n.CP)for(let t=0;t<n.CP.length;t++)n.CP[t]=null}}function Lc(n){return new Promise((e,t)=>{function r(){Oi$1(),gapi.load(`gapi.iframes`,{callback:()=>{e(gapi.iframes.getContext())},ontimeout:()=>{Oi$1(),t(N(n,`network-request-failed`))},timeout:Dc.get()})}if(L$1().gapi?.iframes?.Iframe)e(gapi.iframes.getContext());else if(L$1().gapi?.load)r();else{let i=es$1(`iframefcb`);return L$1()[i]=()=>{gapi.load?r():t(N(n,`network-request-failed`))},Qi$1(`${Na$1()}?onload=${i}`).catch(s=>t(s))}}).catch(e=>{throw _t$1=null,e})}var _t$1=null;function Mc(n){return _t$1=_t$1||Lc(n),_t$1}var Uc=new ne$2(5e3,15e3);var Fc=`__/auth/iframe`;var xc=`emulator/auth/iframe`;var Vc={style:{position:`absolute`,top:`-100px`,width:`1px`,height:`1px`},"aria-hidden":`true`,tabindex:`-1`};var $c=/* @__PURE__ */ new Map([[`identitytoolkit.googleapis.com`,`p`],[`staging-identitytoolkit.sandbox.googleapis.com`,`s`],[`test-identitytoolkit.sandbox.googleapis.com`,`t`]]);function Wc(n){let e=n.config;h$1(e.authDomain,n,`auth-domain-config-required`);let t=e.emulator?Qn(e,xc):`https://${n.config.authDomain}/${Fc}`,r={apiKey:e.apiKey,appName:n.name,v:pe$1},i=$c.get(n.config.apiHost);i&&(r.eid=i);let s=n._getFrameworks();return s.length&&(r.fw=s.join(`,`)),`${t}?${de(r).slice(1)}`}function Hc(n){return M$1(this,null,function*(){let e=yield Mc(n),t=L$1().gapi;return h$1(t,n,`internal-error`),e.open({where:document.body,url:Wc(n),messageHandlersFilter:t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:Vc,dontclear:!0},r=>new Promise((i,s)=>M$1(null,null,function*(){yield r.restyle({setHideOnLeave:!1});let o=N(n,`network-request-failed`),c=L$1().setTimeout(()=>{s(o)},Uc.get());function u(){L$1().clearTimeout(c),i(r)}r.ping(u).then(u,()=>{s(o)})})))})}var Bc={location:`yes`,resizable:`yes`,statusbar:`yes`,toolbar:`no`};var zc=500;var jc=600;var qc=`_blank`;var Kc=`http://localhost`;var Ut$1=class{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(e){}}};function Gc(n,e,t,r=zc,i=jc){let s=Math.max((window.screen.availHeight-i)/2,0).toString(),o=Math.max((window.screen.availWidth-r)/2,0).toString(),c=``,u=G$1(F$3({},Bc),{width:r.toString(),height:i.toString(),top:s,left:o}),l=w().toLowerCase();t&&(c=qi$1(l)?qc:t),zi$1(l)&&(e=e||Kc,u.scrollbars=`yes`);let d=Object.entries(u).reduce((m,[_,J])=>`${m}${_}=${J},`,``);if(ba$1(l)&&c!==`_self`)return Jc(e||``,c),new Ut$1(null);let f=window.open(e||``,c,d);h$1(f,n,`popup-blocked`);try{f.focus()}catch(m){}return new Ut$1(f)}function Jc(n,e){let t=document.createElement(`a`);t.href=n,t.target=e;let r=document.createEvent(`MouseEvent`);r.initMouseEvent(`click`,!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),t.dispatchEvent(r)}var Yc=`__/auth/handler`;var Xc=`emulator/auth/handler`;var Zc=encodeURIComponent(`fac`);function Di$1(n,e,t,r,i,s){return M$1(this,null,function*(){h$1(n.config.authDomain,n,`auth-domain-config-required`),h$1(n.config.apiKey,n,`invalid-api-key`);let o={apiKey:n.config.apiKey,appName:n.name,authType:t,redirectUrl:r,v:pe$1,eventId:i};if(e instanceof Ve$1){e.setDefaultLanguage(n.languageCode),o.providerId=e.providerId||``,Wr$1(e.getCustomParameters())||(o.customParameters=JSON.stringify(e.getCustomParameters()));for(let[d,f]of Object.entries(s||{}))o[d]=f}if(e instanceof se){let d=e.getScopes().filter(f=>f!==``);d.length>0&&(o.scopes=d.join(`,`))}n.tenantId&&(o.tid=n.tenantId);let c=o;for(let d of Object.keys(c))c[d]===void 0&&delete c[d];let u=yield n._getAppCheckToken(),l=u?`#${Zc}=${encodeURIComponent(u)}`:``;return`${Qc(n)}?${de(c).slice(1)}${l}`})}function Qc({config:n}){return n.emulator?Qn(n,Xc):`https://${n.authDomain}/${Yc}`}var Ln$1=`webStorageSupport`;var Jn=class{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=ar$1,this._completeRedirectFn=bc,this._overrideRedirectResult=yc}_openPopup(e,t,r,i){return M$1(this,null,function*(){W(this.eventManagers[e._key()]?.manager,`_initialize() not called before _openPopup()`);return Gc(e,yield Di$1(e,t,r,Mn$1(),i),cr$1())})}_openRedirect(e,t,r,i){return M$1(this,null,function*(){yield this._originValidation(e);return ic(yield Di$1(e,t,r,Mn$1(),i)),new Promise(()=>{})})}_initialize(e){let t=e._key();if(this.eventManagers[t]){let{manager:i,promise:s}=this.eventManagers[t];return i?Promise.resolve(i):(W(s,`If manager is not set, promise should be`),s)}let r=this.initAndGetManager(e);return this.eventManagers[t]={promise:r},r.catch(()=>{delete this.eventManagers[t]}),r}initAndGetManager(e){return M$1(this,null,function*(){let t=yield Hc(e),r=new Gn(e);return t.register(`authEvent`,i=>(h$1(i?.authEvent,e,`invalid-auth-event`),{status:r.onEvent(i.authEvent)?`ACK`:`ERROR`}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:r},this.iframes[e._key()]=t,r})}_isIframeWebStorageSupported(e,t){this.iframes[e._key()].send(Ln$1,{type:Ln$1},i=>{let s=i?.[0]?.[Ln$1];s!==void 0&&t(!!s),b$1(e,`internal-error`)},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){let t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=Nc(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return Xi$1()||ji$1()||rr$1()}};var ds$1=Jn;var Ft$2=class{constructor(e){this.factorId=e}_process(e,t,r){switch(t.type){case`enroll`:return this._finalizeEnroll(e,t.credential,r);case`signin`:return this._finalizeSignIn(e,t.credential);default:return D(`unexpected MultiFactorSessionType`)}}};var Yn=class n extends Ft$2{constructor(e){super(`phone`),this.credential=e}static _fromCredential(e){return new n(e)}_finalizeEnroll(e,t,r){return Xa$1(e,{idToken:t,displayName:r,phoneVerificationInfo:this.credential._makeVerificationRequest()})}_finalizeSignIn(e,t){return fc(e,{mfaPendingCredential:t,phoneVerificationInfo:this.credential._makeVerificationRequest()})}};var xt$2=class{constructor(){}static assertion(e){return Yn._fromCredential(e)}};xt$2.FACTOR_ID=`phone`;var Vt=class{static assertionForEnrollment(e,t){return $t$1._fromSecret(e,t)}static assertionForSignIn(e,t){return $t$1._fromEnrollmentId(e,t)}static generateSecret(e){return M$1(this,null,function*(){let t=e;h$1(typeof t.user?.auth<`u`,`internal-error`);let r=yield Za$1(t.user.auth,{idToken:t.credential,totpEnrollmentInfo:{}});return Wt$2._fromStartTotpMfaEnrollmentResponse(r,t.user.auth)})}};Vt.FACTOR_ID=`totp`;var $t$1=class n extends Ft$2{constructor(e,t,r){super(`totp`),this.otp=e,this.enrollmentId=t,this.secret=r}static _fromSecret(e,t){return new n(t,void 0,e)}static _fromEnrollmentId(e,t){return new n(t,e)}_finalizeEnroll(e,t,r){return M$1(this,null,function*(){return h$1(typeof this.secret<`u`,e,`argument-error`),Qa$1(e,{idToken:t,displayName:r,totpVerificationInfo:this.secret._makeTotpVerificationInfo(this.otp)})})}_finalizeSignIn(e,t){return M$1(this,null,function*(){h$1(this.enrollmentId!==void 0&&this.otp!==void 0,e,`argument-error`);let r={verificationCode:this.otp};return pc(e,{mfaPendingCredential:t,mfaEnrollmentId:this.enrollmentId,totpVerificationInfo:r})})}};var Wt$2=class n{constructor(e,t,r,i,s,o,c){this.sessionInfo=o,this.auth=c,this.secretKey=e,this.hashingAlgorithm=t,this.codeLength=r,this.codeIntervalSeconds=i,this.enrollmentCompletionDeadline=s}static _fromStartTotpMfaEnrollmentResponse(e,t){return new n(e.totpSessionInfo.sharedSecretKey,e.totpSessionInfo.hashingAlgorithm,e.totpSessionInfo.verificationCodeLength,e.totpSessionInfo.periodSec,new Date(e.totpSessionInfo.finalizeEnrollmentTime).toUTCString(),e.totpSessionInfo.sessionInfo,t)}_makeTotpVerificationInfo(e){return{sessionInfo:this.sessionInfo,verificationCode:e}}generateQrCodeUrl(e,t){let r=!1;return(ht$2(e)||ht$2(t))&&(r=!0),r&&(ht$2(e)&&(e=this.auth.currentUser?.email||`unknownuser`),ht$2(t)&&(t=this.auth.name)),`otpauth://totp/${t}:${e}?secret=${this.secretKey}&issuer=${t}&algorithm=${this.hashingAlgorithm}&digits=${this.codeLength}`}};function ht$2(n){return typeof n>`u`||n?.length===0}var Li$1=`@firebase/auth`;var Mi$1=`1.13.6`;var Xn=class{constructor(e){this.auth=e,this.internalListeners=/* @__PURE__ */ new Map}getUid(){return this.assertAuthConfigured(),this.auth.currentUser?.uid||null}getToken(e){return M$1(this,null,function*(){return this.assertAuthConfigured(),yield this.auth._initializationPromise,this.auth.currentUser?{accessToken:yield this.auth.currentUser.getIdToken(e)}:null})}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;let t=this.auth.onIdTokenChanged(r=>{e(r?.stsTokenManager.accessToken||null)});this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();let t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){h$1(this.auth._initializationPromise,`dependent-sdk-initialized-before-auth`)}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}};function eu(n){switch(n){case`Node`:return`node`;case`ReactNative`:return`rn`;case`Worker`:return`webworker`;case`Cordova`:return`cordova`;case`WebExtension`:return`web-extension`;default:return}}function tu(n){V(new v(`auth`,(e,{options:t})=>{let r=e.getProvider(`app`).getImmediate(),i=e.getProvider(`heartbeat`),s=e.getProvider(`app-check-internal`),{apiKey:o,authDomain:c}=r.options;h$1(o&&!o.includes(`:`),`invalid-api-key`,{appName:r.name});let l=new Wn(r,i,s,{apiKey:o,authDomain:c,clientPlatform:n,apiHost:`identitytoolkit.googleapis.com`,tokenApiHost:`securetoken.googleapis.com`,apiScheme:`https`,sdkClientVersion:Zi$1(n)});return La$1(l,t),l},`PUBLIC`).setInstantiationMode(`EXPLICIT`).setInstanceCreatedCallback((e,t,r)=>{e.getProvider(`auth-internal`).initialize()})),V(new v(`auth-internal`,e=>{return(r=>new Xn(r))(ce$1(e.getProvider(`auth`).getImmediate()))},`PRIVATE`).setInstantiationMode(`EXPLICIT`)),T$2(Li$1,Mi$1,eu(n)),T$2(Li$1,Mi$1,`esm2020`)}var ru=sn$1(`authIdTokenMaxAge`)||300;var Ui$1=null;var iu=n=>e=>M$1(null,null,function*(){let t=e&&(yield e.getIdTokenResult()),r=t&&((/* @__PURE__ */ new Date()).getTime()-Date.parse(t.issuedAtTime))/1e3;if(r&&r>ru)return;let i=t?.token;Ui$1!==i&&(Ui$1=i,yield fetch(n,{method:i?`POST`:`DELETE`,headers:i?{Authorization:`Bearer ${i}`}:{}}))});function lr$1(n=Ae$1()){let e=at$2(n,`auth`);if(e.isInitialized())return e.getImmediate();let t=ir$1(n,{popupRedirectResolver:ds$1,persistence:[cs$1,rs$1,ar$1]}),r=sn$1(`authTokenSyncURL`);if(r&&typeof isSecureContext==`boolean`&&isSecureContext){let s=new URL(r,location.origin);if(location.origin===s.origin){let o=iu(s.toString());or$2(t,o,()=>o(t.currentUser)),qe(t,c=>o(c))}}let i=Lr$1(`auth`);return i&&sr$1(t,`http://${i}`),t}function su(){return document.getElementsByTagName(`head`)?.[0]??document}Pa({loadJS(n){return new Promise((e,t)=>{let r=document.createElement(`script`);r.setAttribute(`src`,n),r.onload=e,r.onerror=i=>{let s=N(`internal-error`);s.customData=i,t(s)},r.type=`text/javascript`,r.charset=`UTF-8`,su().appendChild(r)})},gapiScript:`https://apis.google.com/js/api.js`,recaptchaV2Script:`https://www.google.com/recaptcha/api.js`,recaptchaEnterpriseScript:`https://www.google.com/recaptcha/enterprise.js?render=`});tu(`Browser`);function ps(n){return new b$3(function(e){return{unsubscribe:qe(n,e.next.bind(e),e.error.bind(e),e.complete.bind(e))}})}var ms$1=`auth`;var Ke$3=class{constructor(n){return n}};var Ju=class{constructor(){return lt$2(ms$1)}};var dr$1=new x$3(`angularfire2.auth-instances`);function Yu(n,e){let t=wn$1(ms$1,n,e);return t&&new Ke$3(t)}function Xu(n){return(e,t)=>new Ke$3(e.runOutsideAngular(()=>n(t)))}var Zu={provide:Ju,deps:[[new cv,dr$1]]};var Qu={provide:Ke$3,useFactory:Yu,deps:[[new cv,dr$1],ve$1]};function lh(n,...e){return T$2(`angularfire`,ge.full,`auth`),Ho$2([Qu,Zu,{provide:dr$1,useFactory:Xu(n),multi:!0,deps:[Q$1,le$1,Ie,yn$1,[new cv,Ii$1],...e]}])}var gs=ee(ps,!0);var dh=ee(lr$1,!0);var Is$1=ee(ur$1,!0,2);var ue=class extends Error{};ue.prototype.name=`InvalidTokenError`;function el(n){return decodeURIComponent(atob(n).replace(/(.)/g,(e,t)=>{let r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r=`0`+r),`%`+r}))}function tl(n){let e=n.replace(/-/g,`+`).replace(/_/g,`/`);switch(e.length%4){case 0:break;case 2:e+=`==`;break;case 3:e+=`=`;break;default:throw new Error(`base64 string is not of the correct length`)}try{return el(e)}catch(t){return atob(e)}}function jt$1(n,e){if(typeof n!=`string`)throw new ue(`Invalid token specified: must be a string`);e||(e={});let t=e.header===!0?0:1,r=n.split(`.`)[t];if(typeof r!=`string`)throw new ue(`Invalid token specified: missing part #${t+1}`);let i;try{i=tl(r)}catch(s){throw new ue(`Invalid token specified: invalid base64 for part #${t+1} (${s.message})`)}try{return JSON.parse(i)}catch(s){throw new ue(`Invalid token specified: invalid json for part #${t+1} (${s.message})`)}}var Sh=(()=>{class n{constructor(){this.httpService=E$2(xh),this._roles=new Kn$2([]),this.route=E$2(Z$1),this.router=E$2(W$1),this.auth=E$2(Ke$3),this.provider=new H,this.user$=gs(this.auth),this.destroy=new ee$2,this.appStore=E$2(eu$1),this.keys=[Xt$1.TokenExpire,Xt$1.BarcodeAccessToken,Xt$1.PosAccessToken,Xt$1.TokenType,Xt$1.Roles,Xt$1.Brand,Xt$1.Host,Xt$1.Username,Xt$1.PrintMode,Xt$1.SelectedProfileTemplate,Xt$1.Outlets]}login(t){return this.httpService.post(`api/Token/Login`,t).pipe(ql(r=>this.storeLoginResponse(r)),ql(r=>this.decodeRoles(r.token_pos)),ql(()=>this.storeFormLogin(t)),ru$1(1))}storeLoginResponse(t){localStorage.setItem(Xt$1.PosAccessToken,t.token_pos.access_token),localStorage.setItem(Xt$1.BarcodeAccessToken,t.token_barcode.access_token),localStorage.setItem(Xt$1.TokenExpire,t.token_pos.expiredAt),localStorage.setItem(Xt$1.TokenType,t.token_pos.token_type),jt$1(t.token_barcode.access_token).GID===`1f0d57dd-3d49-6cc0-b995-a05c371cd5bd`?(localStorage.setItem(Xt$1.UserRole,`user`),this.appStore.updateUserRole(`user`)):(localStorage.setItem(Xt$1.UserRole,`admin`),this.appStore.updateUserRole(`admin`))}storeFormLogin(t){localStorage.setItem(Xt$1.Host,t.Host),localStorage.setItem(Xt$1.Username,t.Username)}decodeRoles(t){let r=jt$1(t.access_token);localStorage.setItem(Xt$1.Brand,r.Brand);let i=r[`http://schemas.microsoft.com/ws/2008/06/identity/claims/role`];return this._roles.next(i),this.storeRoles(),i}storeRoles(){localStorage.setItem(Xt$1.Roles,JSON.stringify(this._roles.value))}isTokenExpired(){let t=localStorage.getItem(Xt$1.BarcodeAccessToken);try{let r=jt$1(t),i=Math.floor(Date.now()/1e3);return r.exp?r.exp<i:!1}catch(r){return!0}}isAuthenticated(){return localStorage.getItem(Xt$1.BarcodeAccessToken)!==null&&!this.isTokenExpired()}getAuthToken(){return localStorage.getItem(Xt$1.BarcodeAccessToken)??``}getAuthTokenType(){return localStorage.getItem(Xt$1.TokenType)??``}redirectUrl(){return this.router.navigate([`/pages/shelf/barcode`])}automateLogon(){return M$1(this,null,function*(){return this.isAuthenticated()?yield this.router.navigate([``]):yield this.router.navigate([``])})}getDomain(){return localStorage.getItem(Xt$1.Host)!==null?localStorage.getItem(Xt$1.Host):``}logout(){return M$1(this,null,function*(){let t=[Xt$1.BarcodeAccessToken,Xt$1.PosAccessToken];for(let r of t)localStorage.removeItem(r);yield this.router.navigate([``])})}signInWithPopup(t){return Ae$3(Is$1(this.auth,new H)).pipe(Pm(r=>{let s={Host:t,IDToken:H.credentialFromResult(r)?.idToken};return this.httpService.post(`api/token/LoginWithSocialProvider`,s).pipe(it$3(o=>o),ql(o=>this.storeLoginResponse(o)),ql(o=>this.decodeRoles(o.token_pos)),fs$1(o=>ds$3(null)))}),fs$1(r=>ds$3(null)))}ngOnDestroy(){this.destroy.next(),this.destroy.complete()}checkAuthKeysExists(){return[Xt$1.BarcodeAccessToken,Xt$1.PosAccessToken,Xt$1.TokenExpire,Xt$1.TokenType,Xt$1.UserRole].every(r=>!!localStorage.getItem(r))}static{this.ɵfac=function(r){return new(r||n)}}static{this.ɵprov=ue$2({token:n,factory:n.ɵfac,providedIn:`root`})}}return n})();var ct$2={name:`check`,meta:{tags:[`check`,`done`,`complete`,`ok`,`approve`]},svg:{xmlns:`http://www.w3.org/2000/svg`,width:20,height:20,viewBox:`0 0 20 20`,fill:`none`},nodes:[[`path`,{d:`M17.4697 3.96973C17.7626 3.67684 18.2373 3.67684 18.5302 3.96973C18.8231 4.26262 18.8231 4.73738 18.5302 5.03028L7.53022 16.0303C7.23732 16.3232 6.76256 16.3232 6.46967 16.0303L1.46967 11.0303C1.17678 10.7374 1.17678 10.2626 1.46967 9.96973C1.76256 9.67684 2.23732 9.67684 2.53022 9.96973L6.99994 14.4395L17.4697 3.96973Z`,fill:`currentColor`,key:`9v7b3r`}]]};var xt$1=(()=>{class h extends Kr$3{constructor(){super(),this._icon=ct$2}static ɵfac=function(o){return new(o||h)};static ɵcmp=(function(){let e=(i,s)=>s[1].key||i;function o(i,s){if(i&1&&(od$1(),kh(0,`path`)),i&2){let t=Aw().$implicit;Ah$2(`d`,t[1].d)(`fill`,t[1].fill)(`fill-opacity`,t[1].fillOpacity)(`fill-rule`,t[1].fillRule)(`clip-rule`,t[1].clipRule)(`stroke`,t[1].stroke)(`stroke-width`,t[1].strokeWidth)(`stroke-opacity`,t[1].strokeOpacity)(`opacity`,t[1].opacity)}}function n(i,s){if(i&1&&(od$1(),kh(0,`circle`)),i&2){let t=Aw().$implicit;Ah$2(`cx`,t[1].cx)(`cy`,t[1].cy)(`r`,t[1].r)(`fill`,t[1].fill)(`fill-opacity`,t[1].fillOpacity)(`opacity`,t[1].opacity)}}function r(i,s){if(i&1&&(od$1(),kh(0,`rect`)),i&2){let t=Aw().$implicit;Ah$2(`x`,t[1].x)(`y`,t[1].y)(`width`,t[1].width)(`height`,t[1].height)(`rx`,t[1].rx)(`ry`,t[1].ry)(`fill`,t[1].fill)(`fill-opacity`,t[1].fillOpacity)(`opacity`,t[1].opacity)}}function u(i,s){if(i&1&&(od$1(),kh(0,`line`)),i&2){let t=Aw().$implicit;Ah$2(`x1`,t[1].x1)(`y1`,t[1].y1)(`x2`,t[1].x2)(`y2`,t[1].y2)(`stroke`,t[1].stroke)(`stroke-opacity`,t[1].strokeOpacity)(`opacity`,t[1].opacity)}}function f(i,s){if(i&1&&(od$1(),kh(0,`polyline`)),i&2){let t=Aw().$implicit;Ah$2(`points`,t[1].points)(`fill`,t[1].fill)(`fill-opacity`,t[1].fillOpacity)(`opacity`,t[1].opacity)}}function P(i,s){if(i&1&&(od$1(),kh(0,`polygon`)),i&2){let t=Aw().$implicit;Ah$2(`points`,t[1].points)(`fill`,t[1].fill)(`fill-opacity`,t[1].fillOpacity)(`opacity`,t[1].opacity)}}function A(i,s){if(i&1&&(od$1(),kh(0,`ellipse`)),i&2){let t=Aw().$implicit;Ah$2(`cx`,t[1].cx)(`cy`,t[1].cy)(`rx`,t[1].rx)(`ry`,t[1].ry)(`fill`,t[1].fill)(`fill-opacity`,t[1].fillOpacity)(`opacity`,t[1].opacity)}}function F(i,s){if(i&1&&fw(0,o,1,9,`path`)(1,n,1,6,`circle`)(2,r,1,9,`rect`)(3,u,1,7,`line`)(4,f,1,4,`polyline`)(5,P,1,4,`polygon`)(6,A,1,7,`ellipse`),i&2){let t,R=s.$implicit;hw((t=R[0])===`path`?0:t===`circle`?1:t===`rect`?2:t===`line`?3:t===`polyline`?4:t===`polygon`?5:t===`ellipse`?6:-1)}}return PD({type:h,selectors:[[`svg`,`data-p-icon`,`check`]],features:[Th],decls:2,vars:0,template:function(s,t){s&1&&yw(0,F,7,1,null,null,e),s&2&&vw(t.iconNodes())},encapsulation:2,changeDetection:1})})()}return h})();var ut$1=`
|
|
4
4
|
.p-tooltip {
|
|
@@ -2242,7 +2242,7 @@ select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) optio
|
|
|
2242
2242
|
display: grid;
|
|
2243
2243
|
grid-template-rows: 1fr;
|
|
2244
2244
|
}
|
|
2245
|
-
`;var od={root:({instance:o})=>[`p-stepper p-component`,{"p-readonly":o.linear()}],separator:`p-stepper-separator`};var un=class Ot extends fe$1{name=`stepper`;style=nd;classes=od;static ɵfac=(()=>{let e;return function(n){return(e||(e=ov(Ot)))(n||Ot)}})();static ɵprov=ue$2({token:Ot,factory:Ot.ɵfac})};var Ut=new x$3(`STEPPER_INSTANCE`);var Ga=new x$3(`STEPLIST_INSTANCE`);var Ya=new x$3(`STEPITEM_INSTANCE`);var Xa=new x$3(`STEP_INSTANCE`);var Za=new x$3(`STEPPANEL_INSTANCE`);var Qa=new x$3(`STEPPERSEPARATOR_INSTANCE`);var ar=class yt extends ct$5{$pcStepperSeparator=E$2(Qa,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=E$2(Ze$2,{self:!0});componentName=`StepperSeparator`;_componentStyle=E$2(un);onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms([`host`,`root`]))}static ɵfac=(()=>{let e;return function(n){return(e||(e=ov(yt)))(n||yt)}})();static ɵcmp=(function(){return PD({type:yt,selectors:[[`p-stepper-separator`]],hostVars:2,hostBindings:function(n,r){n&2&&eb(r.cx(`separator`))},features:[Db([un,{provide:Qa,useExisting:yt},{provide:At$4,useExisting:yt}]),GD([Ze$2]),Th],ngContentSelectors:[`*`],decls:1,vars:0,template:function(n,r){n&1&&(Ow(),kw(0))},dependencies:[zr$2],encapsulation:2})})()};var ad={root:({instance:o})=>[`p-step`,{"p-step-active":o.active(),"p-disabled":o.isStepDisabled()}],header:`p-step-header`,number:`p-step-number`,title:`p-step-title`};var Ja=class Lt extends fe$1{name=`step`;classes=ad;static ɵfac=(()=>{let e;return function(n){return(e||(e=ov(Lt)))(n||Lt)}})();static ɵprov=ue$2({token:Lt,factory:Lt.ɵfac})};var Ne=class xt extends ct$5{$pcStep=E$2(Xa,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=E$2(Ze$2,{self:!0});componentName=`Step`;pcStepper=E$2(Ut);value=L1();disabled=k1(!1,{transform:e=>Tc$1(e)});active=Hb(()=>this.pcStepper.isStepActive(this.value()));isStepDisabled=Hb(()=>!this.active()&&(this.pcStepper.linear()||this.disabled()));stepTabindex=Hb(()=>this.isStepDisabled()?-1:void 0);ariaCurrent=Hb(()=>this.active()?`step`:void 0);id=Hb(()=>`${this.pcStepper.id()}_step_${this.value()}`);ariaControls=Hb(()=>`${this.pcStepper.id()}_steppanel_${this.value()}`);isSeparatorVisible=Hb(()=>{let e=this.pcStepper.stepList();if(e){let t=e.steps();return t.indexOf(this)!==t.length-1}else return!1});content=F1(`content`,{descendants:!1});_componentStyle=E$2(Ja);onStepClickCallback=this.onStepClick.bind(this);contentContext=Hb(()=>({activateCallback:this.onStepClickCallback,value:this.value(),active:this.active()}));onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms([`host`,`root`]))}onStepClick(){this.pcStepper.updateValue(this.value())}static ɵfac=(()=>{let e;return function(n){return(e||(e=ov(xt)))(n||xt)}})();static ɵcmp=(function(){let e=[`content`],t=[`*`];function n(p,C){p&1&&Oh$1(0,`p-stepper-separator`)}function r(p,C){if(p&1){let c=Tw();Pi$3(0,`button`,0),Bh(`click`,function(){Gu(c);let s=Aw();return zu(s.onStepClick())}),Pi$3(1,`span`,1),ub(2),fl(),Pi$3(3,`span`,1),kw(4),fl()(),fw(5,n,1,0,`p-stepper-separator`)}if(p&2){let c=Aw();eb(c.cx(`header`)),Rh(`pBind`,c.ptm(`header`))(`tabindex`,c.stepTabindex())(`disabled`,c.isStepDisabled()),Ah$2(`id`,c.id())(`role`,`tab`)(`aria-controls`,c.ariaControls()),iI(),eb(c.cx(`number`)),Rh(`pBind`,c.ptm(`number`)),iI(),cg(c.value()),iI(),eb(c.cx(`title`)),Rh(`pBind`,c.ptm(`title`)),iI(2),hw(c.isSeparatorVisible()?5:-1)}}function i(p,C){p&1&&Ph(0)}function u(p,C){p&1&&Oh$1(0,`p-stepper-separator`)}function _(p,C){if(p&1&&(_h(0,i,1,0,`ng-container`,2),fw(1,u,1,0,`p-stepper-separator`)),p&2){let c=Aw();Rh(`ngTemplateOutlet`,c.content())(`ngTemplateOutletContext`,c.contentContext()),iI(),hw(c.isSeparatorVisible()?1:-1)}}return PD({type:xt,selectors:[[`p-step`]],contentQueries:function(C,c,E){C&1&&Gh(E,c.content,e,4),C&2&&jw()},hostVars:6,hostBindings:function(C,c){C&2&&(Ah$2(`aria-current`,c.ariaCurrent())(`role`,`presentation`)(`data-p-active`,c.active())(`data-p-disabled`,c.isStepDisabled()),eb(c.cx(`root`)))},inputs:{value:[1,`value`],disabled:[1,`disabled`]},outputs:{value:`valueChange`},features:[Db([Ja,{provide:Xa,useExisting:xt},{provide:At$4,useExisting:xt}]),GD([Ze$2]),Th],ngContentSelectors:t,decls:2,vars:1,consts:[[`type`,`button`,3,`click`,`pBind`,`tabindex`,`disabled`],[3,`pBind`],[4,`ngTemplateOutlet`,`ngTemplateOutletContext`]],template:function(C,c){C&1&&(Ow(),fw(0,r,6,16)(1,_,2,3)),C&2&&hw(c.content()?1:0)},dependencies:[xs$1,ar,yi$3,zr$2,Ze$2],encapsulation:2})})()};var rd={root:({instance:o})=>[`p-steppanel`,{"p-steppanel-active":o.isVertical()&&o.active()}],contentWrapper:`p-steppanel-content-wrapper`,content:`p-steppanel-content`};var er=class Vt extends fe$1{name=`steppanel`;classes=rd;static ɵfac=(()=>{let e;return function(n){return(e||(e=ov(Vt)))(n||Vt)}})();static ɵprov=ue$2({token:Vt,factory:Vt.ɵfac})};var wt=class _t extends ct$5{$pcStepPanel=E$2(Za,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=E$2(Ze$2,{self:!0});componentName=`StepPanel`;pcStepper=E$2(Ut);value=L1();active=Hb(()=>this.pcStepper.value()===this.value());ariaControls=Hb(()=>`${this.pcStepper.id()}_step_${this.value()}`);id=Hb(()=>`${this.pcStepper.id()}_steppanel_${this.value()}`);isVertical=Hb(()=>this.pcStepper.stepItems().length>0);isSeparatorVisible=Hb(()=>{if(this.pcStepper.stepItems()){let e=this.pcStepper.stepItems().length,t=Fo$2(this.pcStepper.el.nativeElement,`[data-pc-name="steppanel"]`);return sl(this.el.nativeElement,t)!==e-1}});computedMotionOptions=Hb(()=>F$3(F$3({},this.ptm(`motion`)),this.pcStepper.computedMotionOptions()));contentTemplate=F1(`content`,{descendants:!1});_componentStyle=E$2(er);updateValueCallback=this.updateValue.bind(this);contentContext=Hb(()=>({activateCallback:this.updateValueCallback,value:this.value(),active:this.active()}));onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms([`host`,`root`]))}updateValue(e){this.pcStepper.updateValue(e)}static ɵfac=(()=>{let e;return function(n){return(e||(e=ov(_t)))(n||_t)}})();static ɵcmp=(function(){let e=[`content`];function t(r,i){r&1&&Oh$1(0,`p-stepper-separator`)}function n(r,i){r&1&&Ph(0)}return PD({type:_t,selectors:[[`p-step-panel`]],contentQueries:function(i,u,_){i&1&&Gh(_,u.contentTemplate,e,4),i&2&&jw()},hostVars:7,hostBindings:function(i,u){i&2&&(Ah$2(`role`,`tabpanel`)(`aria-controls`,u.ariaControls())(`id`,u.id())(`data-p-active`,u.active())(`data-pc-name`,`steppanel`),eb(u.cx(`root`)))},inputs:{value:[1,`value`]},outputs:{value:`valueChange`},features:[Db([er,{provide:Za,useExisting:_t},{provide:At$4,useExisting:_t}]),GD([Ze$2]),Th],decls:5,vars:13,consts:[[3,`visible`,`name`,`disabled`,`options`],[3,`pBind`],[4,`ngTemplateOutlet`,`ngTemplateOutletContext`]],template:function(i,u){i&1&&(Pi$3(0,`p-motion`,0)(1,`div`,1),fw(2,t,1,0,`p-stepper-separator`),Pi$3(3,`div`,1),_h(4,n,1,0,`ng-container`,2),fl()()()),i&2&&(Rh(`visible`,u.active())(`name`,u.pcn(`p-collapsible`))(`disabled`,!u.isVertical())(`options`,u.computedMotionOptions()),iI(),eb(u.cx(`contentWrapper`)),Rh(`pBind`,u.ptm(`contentWrapper`)),iI(),hw(u.isSeparatorVisible()?2:-1),iI(),eb(u.cx(`content`)),Rh(`pBind`,u.ptm(`content`)),iI(),Rh(`ngTemplateOutlet`,u.contentTemplate())(`ngTemplateOutletContext`,u.contentContext()))},dependencies:[xs$1,ar,yi$3,zr$2,Ze$2,Su,ja$3],encapsulation:2})})()};var id={root:({instance:o})=>[`p-stepitem`,{"p-stepitem-active":o.isActive()}]};var tr=class Ht extends fe$1{name=`stepitem`;classes=id;static ɵfac=(()=>{let e;return function(n){return(e||(e=ov(Ht)))(n||Ht)}})();static ɵprov=ue$2({token:Ht,factory:Ht.ɵfac})};var Ct=class jt extends ct$5{$pcStepItem=E$2(Ya,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=E$2(Ze$2,{self:!0});componentName=`StepItem`;_componentStyle=E$2(tr);pcStepper=E$2(Ut);value=L1();isActive=Hb(()=>this.pcStepper.value()===this.value());step=F1(Ne,{descendants:!1});stepPanel=F1(wt,{descendants:!1});constructor(){super(),hd$1(()=>{this.step()?.value.set(this.value())}),hd$1(()=>{this.stepPanel()?.value.set(this.value())})}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms([`host`,`root`]))}static ɵfac=function(t){return new(t||jt)};static ɵcmp=(function(){return PD({type:jt,selectors:[[`p-step-item`]],contentQueries:function(n,r,i){n&1&&Gh(i,r.step,Ne,4)(i,r.stepPanel,wt,4),n&2&&jw(2)},hostVars:4,hostBindings:function(n,r){n&2&&(Ah$2(`role`,`presentation`)(`data-p-active`,r.isActive()),eb(r.cx(`root`)))},inputs:{value:[1,`value`]},outputs:{value:`valueChange`},features:[Db([tr,{provide:Ya,useExisting:jt},{provide:At$4,useExisting:jt}]),GD([Ze$2]),Th],ngContentSelectors:[`*`],decls:1,vars:0,template:function(n,r){n&1&&(Ow(),kw(0))},dependencies:[zr$2],encapsulation:2})})()};var sd={root:`p-steplist`};var nr=class Wt extends fe$1{name=`steplist`;classes=sd;static ɵfac=(()=>{let e;return function(n){return(e||(e=ov(Wt)))(n||Wt)}})();static ɵprov=ue$2({token:Wt,factory:Wt.ɵfac})};var or=class kt extends ct$5{$pcStepList=E$2(Ga,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=E$2(Ze$2,{self:!0});componentName=`StepList`;steps=j1(Ne);_componentStyle=E$2(nr);onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms([`host`,`root`]))}static ɵfac=(()=>{let e;return function(n){return(e||(e=ov(kt)))(n||kt)}})();static ɵcmp=(function(){return PD({type:kt,selectors:[[`p-step-list`]],contentQueries:function(n,r,i){n&1&&Gh(i,r.steps,Ne,4),n&2&&jw()},hostVars:3,hostBindings:function(n,r){n&2&&(Ah$2(`role`,`presentation`),eb(r.cx(`root`)))},features:[Db([nr,{provide:Ga,useExisting:kt},{provide:At$4,useExisting:kt}]),GD([Ze$2]),Th],ngContentSelectors:[`*`],decls:1,vars:0,template:function(n,r){n&1&&(Ow(),kw(0))},dependencies:[zr$2],encapsulation:2})})()};var fn=class St extends ct$5{componentName=`Stepper`;$pcStepper=E$2(Ut,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=E$2(Ze$2,{self:!0});_componentStyle=E$2(un);value=L1();linear=k1(!1,{transform:e=>Tc$1(e)});motionOptions=k1(void 0);computedMotionOptions=Hb(()=>F$3(F$3({},this.ptm(`motion`)),this.motionOptions()));id=ti$3(this.$useId.next(`pn_id_`));stepItems=j1(Ct);steps=j1(Ne);stepList=F1(or,{descendants:!1});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms([`host`,`root`]))}updateValue(e){this.value.set(e)}isStepActive(e){return this.value()===e}static ɵfac=(()=>{let e;return function(n){return(e||(e=ov(St)))(n||St)}})();static ɵcmp=(function(){return PD({type:St,selectors:[[`p-stepper`]],contentQueries:function(n,r,i){n&1&&Gh(i,r.stepItems,Ct,4)(i,r.steps,Ne,4)(i,r.stepList,or,4),n&2&&jw(3)},hostVars:4,hostBindings:function(n,r){n&2&&(Ah$2(`role`,`tablist`)(`id`,r.id()),eb(r.cx(`root`)))},inputs:{value:[1,`value`],linear:[1,`linear`],motionOptions:[1,`motionOptions`]},outputs:{value:`valueChange`},features:[Db([un,{provide:Ut,useExisting:St},{provide:At$4,useExisting:St}]),GD([Ze$2]),Th],ngContentSelectors:[`*`],decls:1,vars:0,template:function(n,r){n&1&&(Ow(),kw(0))},dependencies:[yi$3,zr$2],encapsulation:2})})()};var pn=o=>({"justify-content-center":o});function dd(o,a){o&1&&(Pi$3(0,`span`),ub(1,`Choose Template`),fl())}function ld(o,a){o&1&&(Pi$3(0,`div`,4)(1,`span`,5),ub(2,`Select the template you want to use for printing`),fl()())}function cd(o,a){o&1&&(Pi$3(0,`p-step-panel`),_h(1,ld,3,0,`ng-template`,null,0,Pb),fl())}function md(o,a){o&1&&(Pi$3(0,`span`),ub(1,`Choose Product`),fl())}function ud(o,a){o&1&&(Pi$3(0,`div`,4)(1,`span`),ub(2,`Select the product that you want to print`),fl()())}function fd(o,a){o&1&&(Pi$3(0,`p-step-panel`),_h(1,ud,3,0,`ng-template`,null,0,Pb),fl())}function pd(o,a){o&1&&(Pi$3(0,`span`),ub(1,`Customize Label`),fl())}function bd(o,a){o&1&&(Pi$3(0,`div`,4)(1,`span`),ub(2,`Configure sticker label layout and visibility`),fl()())}function gd(o,a){o&1&&(Pi$3(0,`p-step-panel`),_h(1,bd,3,0,`ng-template`,null,0,Pb),fl())}function hd(o,a){o&1&&(Pi$3(0,`span`),ub(1,`Print Preview`),fl())}function vd(o,a){o&1&&(Pi$3(0,`div`,4)(1,`span`),ub(2,` Select the paper type, then configure adjust the position and margins to ensure accurate sticker placement `),fl()())}function yd(o,a){o&1&&(Pi$3(0,`p-step-panel`),_h(1,vd,3,0,`ng-template`,null,0,Pb),fl())}var rr=(()=>{class o{constructor(){this.appStore=E$2(eu$1)}get layoutOptions(){return this.appStore.layoutOptions()}get currentStep(){return this.appStore.currentStep()}stepperChange(e){this.appStore.updateCurrentStep(e)}static{this.ɵfac=function(t){return new(t||o)}}static{this.ɵcmp=PD({type:o,selectors:[[`app-stepper-barcode`]],decls:17,vars:26,consts:[[`content`,``],[3,`valueChange`,`unstyled`,`value`],[3,`value`],[1,`fs-3`,3,`ngClass`],[1,`fw-normal`,`fs-2`],[1,``]],template:function(t,n){t&1&&(Pi$3(0,`p-stepper`,1),Bh(`valueChange`,function(i){return n.stepperChange(i)}),Pi$3(1,`p-step-item`,2)(2,`p-step`,3),fw(3,dd,2,0,`span`),fl(),fw(4,cd,3,0,`p-step-panel`),fl(),Pi$3(5,`p-step-item`,2)(6,`p-step`,3),fw(7,md,2,0,`span`),fl(),fw(8,fd,3,0,`p-step-panel`),fl(),Pi$3(9,`p-step-item`,2)(10,`p-step`,3),fw(11,pd,2,0,`span`),fl(),fw(12,gd,3,0,`p-step-panel`),fl(),Pi$3(13,`p-step-item`,2)(14,`p-step`,3),fw(15,hd,2,0,`span`),fl(),fw(16,yd,3,0,`p-step-panel`),fl()()),t&2&&(Rh(`unstyled`,!1)(`value`,n.currentStep),iI(),Rh(`value`,1),iI(),Rh(`ngClass`,bb(18,pn,n.layoutOptions.sidebartype===`mini-sidebar`)),iI(),hw(n.layoutOptions.sidebartype===`full`?3:-1),iI(),hw(n.layoutOptions.sidebartype===`full`?4:-1),iI(),Rh(`value`,2),iI(),Rh(`ngClass`,bb(20,pn,n.layoutOptions.sidebartype===`mini-sidebar`)),iI(),hw(n.layoutOptions.sidebartype===`full`?7:-1),iI(),hw(n.layoutOptions.sidebartype===`full`?8:-1),iI(),Rh(`value`,3),iI(),Rh(`ngClass`,bb(22,pn,n.layoutOptions.sidebartype===`mini-sidebar`)),iI(),hw(n.layoutOptions.sidebartype===`full`?11:-1),iI(),hw(n.layoutOptions.sidebartype===`full`?12:-1),iI(),Rh(`value`,4),iI(),Rh(`ngClass`,bb(24,pn,n.layoutOptions.sidebartype===`mini-sidebar`)),iI(),hw(n.layoutOptions.sidebartype===`full`?15:-1),iI(),hw(n.layoutOptions.sidebartype===`full`?16:-1))},dependencies:[Ne,Ct,wt,fn,Fs$2],styles:[`.p-stepper .p-step:hover{background-color:#eae9ed} .p-stepper .p-stepitem.p-stepitem-active .p-step-number{color:var(--%NS%p-blue-500);border-color:var(--%NS%p-blue-500)} .p-stepper .p-stepitem.p-stepitem-active .p-step-title{color:var(--%NS%p-secondary-color)}`],changeDetection:1})}}return o})();var ir=o=>({"justify-content-center":o});function xd(o,a){o&1&&(Pi$3(0,`span`),ub(1,`Choose Product`),fl())}function _d(o,a){o&1&&(Pi$3(0,`div`,4)(1,`span`),ub(2,`Select the product that you want to print`),fl()())}function kd(o,a){o&1&&(Pi$3(0,`p-step-panel`),_h(1,_d,3,0,`ng-template`,null,0,Pb),fl())}function Sd(o,a){o&1&&(Pi$3(0,`span`),ub(1,`Print Preview`),fl())}function wd(o,a){o&1&&(Pi$3(0,`div`,4)(1,`span`),ub(2,` Select the paper type, then configure adjust the position and margins to ensure accurate sticker placement `),fl()())}function Cd(o,a){o&1&&(Pi$3(0,`p-step-panel`),_h(1,wd,3,0,`ng-template`,null,0,Pb),fl())}var sr=(()=>{class o{constructor(){this.appStore=E$2(eu$1)}get layoutOptions(){return this.appStore.layoutOptions()}get currentStep(){return this.appStore.currentStep()}stepperChange(e){this.appStore.updateCurrentStep(e)}static{this.ɵfac=function(t){return new(t||o)}}static{this.ɵcmp=PD({type:o,selectors:[[`app-stepper-price-label`]],decls:9,vars:14,consts:[[`content`,``],[1,``,3,`valueChange`,`unstyled`,`value`],[3,`value`],[1,`fs-3`,3,`ngClass`],[1,`fw-normal`,`fs-2`]],template:function(t,n){t&1&&(Pi$3(0,`p-stepper`,1),Bh(`valueChange`,function(i){return n.stepperChange(i)}),Pi$3(1,`p-step-item`,2)(2,`p-step`,3),fw(3,xd,2,0,`span`),fl(),fw(4,kd,3,0,`p-step-panel`),fl(),Pi$3(5,`p-step-item`,2)(6,`p-step`,3),fw(7,Sd,2,0,`span`),fl(),fw(8,Cd,3,0,`p-step-panel`),fl()()),t&2&&(Rh(`unstyled`,!1)(`value`,n.currentStep),iI(),Rh(`value`,1),iI(),Rh(`ngClass`,bb(10,ir,n.layoutOptions.sidebartype===`mini-sidebar`)),iI(),hw(n.layoutOptions.sidebartype===`full`?3:-1),iI(),hw(n.layoutOptions.sidebartype===`full`?4:-1),iI(),Rh(`value`,2),iI(),Rh(`ngClass`,bb(12,ir,n.layoutOptions.sidebartype===`mini-sidebar`)),iI(),hw(n.layoutOptions.sidebartype===`full`?7:-1),iI(),hw(n.layoutOptions.sidebartype===`full`?8:-1))},dependencies:[Ne,Ct,wt,fn,Fs$2],styles:[`.p-stepper .p-step:hover{background-color:#eae9ed} .p-stepper .p-stepitem.p-stepitem-active .p-step-number{color:var(--%NS%p-blue-500);border-color:var(--%NS%p-blue-500)} .p-stepper .p-stepitem.p-stepitem-active .p-step-title{color:var(--%NS%p-secondary-color)}`],changeDetection:1})}}return o})();var dr=(()=>{class o{static{this.ɵfac=function(t){return new(t||o)}}static{this.ɵcmp=PD({type:o,selectors:[[`app-navigation-users`]],decls:13,vars:0,consts:[[1,`nav`,`nav-pills`,`flex-column`,`mb-auto`,`mx-3`],[1,`nav-item`],[`routerLink`,`setup/users`,`routerLinkActive`,`active`,1,`nav-link`,`link-dark`],[1,`fa-solid`,`fa-user`],[`routerLink`,`setup/groups`,`routerLinkActive`,`active`,1,`nav-link`,`link-dark`],[`routerLink`,`setup/credential`,`routerLinkActive`,`active`,1,`nav-link`,`link-dark`],[1,`fa-solid`,`fa-key`]],template:function(t,n){t&1&&(Pi$3(0,`ul`,0)(1,`li`,1)(2,`a`,2),Oh$1(3,`i`,3),ub(4,` Users `),fl()(),Pi$3(5,`li`)(6,`a`,4),Oh$1(7,`i`,3),ub(8,` Group `),fl()(),Pi$3(9,`li`)(10,`a`,5),Oh$1(11,`i`,6),ub(12,` Credential `),fl()()())},dependencies:[Jt$1,Fa$2],styles:[`.nav-link.active[_ngcontent-%COMP%]{color:#fff!important}`],changeDetection:1})}}return o})();var lr=[{path:``,title:`Choose Product`,icon:`fas fa-shopping-cart`,class:``,label:``,labelClass:`side-badge badge bg-success`,extralink:!1,submenu:[]},{path:``,title:`Customize Label`,icon:`fas fa-tag`,class:``,label:``,labelClass:``,extralink:!1,submenu:[]},{path:``,title:`Print Preview`,icon:`fas fa-print`,class:``,label:``,labelClass:``,extralink:!1,submenu:[]}];var cr=(()=>{class o{constructor(){this.collapseSidebar=!1,this.fullScreen=!1,this.MENUITEMS=lr,this.items=new Kn$2(this.MENUITEMS)}static{this.ɵfac=function(t){return new(t||o)}}static{this.ɵprov=ue$2({token:o,factory:o.ɵfac,providedIn:`root`})}}return o})();var Md=[`stepper`];function Ed(o,a){if(o&1){let e=Tw();Pi$3(0,`div`,2)(1,`button`,8),Bh(`click`,function(n){Gu(e);let r=Vw(5);return zu(r.toggle(n))}),ub(2),Oh$1(3,`i`,9),fl(),Oh$1(4,`p-menu`,10,0),fl()}if(o&2){let e=Aw();iI(2),ml(` `,e.sidebarTitle(),` `),iI(2),Rh(`model`,e.items())(`popup`,!0)}}function Id(o,a){o&1&&(Pi$3(0,`div`,3)(1,`span`,11),ub(2,`BA`),fl()())}function Td(o,a){o&1&&Oh$1(0,`app-stepper-barcode`)}function Dd(o,a){o&1&&Oh$1(0,`app-stepper-price-label`)}function Rd(o,a){o&1&&Oh$1(0,`app-navigation-users`)}var mr=(()=>{class o{handleNotify(){this.notify.emit(!this.showClass)}constructor(e,t){this.menuServise=e,this.router=t,this.appStore=E$2(eu$1),this._formBuilder=E$2(dh$1),this.step=ti$3(0),this.printMode=ti$3(1),this.sidebarTitle=ti$3(``),this.firstFormGroup=this._formBuilder.group({firstCtrl:[``,Er$1.required]}),this.secondFormGroup=this._formBuilder.group({secondCtrl:[``,Er$1.required]}),this.items=ti$3(null),this.showMenu=``,this.showSubMenu=``,this.sidebarnavItems=[],this.path=``,this.authService=E$2(Sh),this.username=``,this.domain=ti$3(``),this.brand=ti$3(``),this.showClass=!1,this.notify=new qe$1,this.cdr=E$2(H1),this.storeService=E$2(el$1),this.route=E$2(Z$1),this.stepperRef=null,this.injector=E$2(le$1),this.storeSevice=E$2(el$1),this.menuServise.items.subscribe(n=>{this.sidebarnavItems=n,this.sidebarnavItems.filter(r=>r.submenu.filter(i=>{i.path===this.router.url&&(this.path=r.title)})),this.addExpandClass(this.path)})}addExpandClass(e){e===this.showMenu?this.showMenu=`0`:this.showMenu=e}ngOnInit(){this.items.set([{label:localStorage.getItem(Xt$1.Host),labelClass:`text-body-secondary small`,styleClass:`border-bottom`,command(e){let t=document.createElement(`a`);t.href=`https://${localStorage.getItem(Xt$1.Host)}`,t.target=`_blank`,t.style.display=`none`,document.body.appendChild(t),t.click(),document.body.removeChild(t)}},{label:localStorage.getItem(Xt$1.Username),labelClass:`text-body-secondary small`,icon:`fa-solid fa-user`,command:e=>M$1(this,null,function*(){})},{label:`Switch Mode`,labelClass:`text-body-secondary small`,icon:`fa-solid fa-history`,command:e=>M$1(this,null,function*(){this.router.navigate([`/print-mode`]),setTimeout(()=>{document.querySelector(`.p-menu-overlay`)?.remove()},100)})},{label:`Logout`,labelClass:`text-body-secondary small`,icon:`fas fa-sign-out-alt`,command:e=>M$1(this,null,function*(){yield this.authService.logout(),setTimeout(()=>{document.querySelector(`.p-menu-overlay`)?.remove()},100)})}]),T$3(this.storeService.productItems,{injector:this.injector}).pipe($e$1(e=>e.length<=0),ql(()=>this.stepperRef?.steps.forEach(e=>e.completed=!1))).subscribe(),this.route.queryParamMap.pipe($e$1(e=>e.has(`step`)),it$3(e=>+e.get(`step`)),ql(e=>this.step.set(e))).subscribe(),T$3(this.storeService.stepper$,{injector:this.injector}).pipe(ql(e=>{this.stepperRef&&(this.stepperRef.steps.forEach((t,n)=>{t.completed=n<=e.state}),this.stepperRef.selectedIndex=e.state)}))}addActiveClass(e){e===this.showSubMenu?this.showSubMenu=`0`:this.showSubMenu=e,window.scroll({top:0,left:0,behavior:`smooth`})}ngAfterViewInit(){this.username=localStorage.getItem(Xt$1.Username),this.brand.set(localStorage.getItem(Xt$1.Brand)),this.domain.set(localStorage.getItem(Xt$1.Host));let e=localStorage.getItem(Xt$1.PrintMode)||`barcode`;e===`barcode`?(this.printMode.set(1),this.sidebarTitle.set(this.brand())):e===`priceLabel`?(this.printMode.set(2),this.sidebarTitle.set(this.brand())):(this.printMode.set(3),this.sidebarTitle.set(this.brand())),T$3(this.storeService.stepper$,{injector:this.injector}).pipe(ql(t=>{this.stepperRef&&(this.stepperRef.steps.forEach((n,r)=>{n.completed=r<=t.state}),this.stepperRef.selectedIndex=t.state)})).subscribe(),this.cdr.detectChanges()}onGotoStepper(e){this.storeSevice.onGotoStepper(e)}onStepperSelectionChange(e){let t=this.stepperRef?.selectedIndex??0;if(Math.abs(e-t)>1)return;this.storeService.onGotoStepper(e);let n=this.storeService.stepper$().state;this.stepperRef&&(this.stepperRef.steps.forEach((r,i)=>{r.completed=i<=n}),this.stepperRef.selectedIndex=n)}onSwitchMode(){this.router.navigate([`/print-mode`]),localStorage.removeItem(Xt$1.PrintMode)}toggleSidebar(){let e=this.appStore.layoutOptions(),t=window.innerWidth,n=e.sidebartype;e.sidebartype===`full`||e.sidebartype===`iconbar`?n=`mini-sidebar`:e.sidebartype===`overlay`?t<767?n=`mini-sidebar`:n=e.defaultSidebar:n=e.defaultSidebar||n,this.appStore.updateLayoutOptions(G$1(F$3({},e),{innerWidth:t,sidebartype:n}))}get layoutOptions(){return this.appStore.layoutOptions()}static{this.ɵfac=function(t){return new(t||o)(Qr$3(cr),Qr$3(W$1))}}static{this.ɵcmp=PD({type:o,selectors:[[`app-vertical-sidebar`]],viewQuery:function(t,n){if(t&1&&qh(Md,5),t&2){let r;Pw(r=Fw())&&(n.stepperRef=r.first)}},inputs:{showClass:`showClass`},outputs:{notify:`notify`},decls:11,vars:2,consts:[[`menu`,``],[1,`d-flex`,`flex-column`,`h-100`,`position-relative`],[1,`d-flex`,`align-items-center`,`cursor-pointer`,2,`height`,`61px`,`border-bottom`,`1px solid #ddd`,`padding`,`0 2rem`],[1,`d-flex`,`align-items-center`,`justify-content-center`,2,`height`,`61px`,`border-bottom`,`1px solid #ddd`],[1,`sidebar-nav`,`flex-grow-1`],[`id`,`sidebarnav`],[1,`collapse__icon`,`z-1`,3,`click`],[1,`fas`,`fa-caret-left`],[`type`,`button`,1,`btn`,`px-0`,`btn-link`,`link-offset-2`,`link-underline`,`link-underline-opacity-0`,`text-dark`,`text-uppercase`,3,`click`],[1,`fa-solid`,`fa-caret-down`],[`appendTo`,`body`,3,`model`,`popup`],[1,`fs-6`,`fw-normal`,`text-capitalize`]],template:function(t,n){if(t&1&&(Pi$3(0,`div`,1),fw(1,Ed,6,3,`div`,2)(2,Id,3,0,`div`,3),Pi$3(3,`nav`,4)(4,`ul`,5),Oh$1(5,`br`),fw(6,Td,1,0,`app-stepper-barcode`)(7,Dd,1,0,`app-stepper-price-label`)(8,Rd,1,0,`app-navigation-users`),fl()(),Pi$3(9,`div`,6),Bh(`click`,function(){return n.toggleSidebar()}),Oh$1(10,`i`,7),fl()()),t&2){let r;iI(),hw((r=n.layoutOptions.sidebartype)===`full`?1:r===`mini-sidebar`?2:-1),iI(5),hw(n.printMode()===1?6:n.printMode()===2?7:8)}},dependencies:[Ba$1,qa,Xr$1,hh,fh,At,$a,rr,sr,In$1,dr],styles:[`.collapse__icon[_ngcontent-%COMP%]{border:1px solid black;border-radius:50%;padding:.5rem;transition:all .5s ease-in-out;position:absolute;top:17px;right:-10px;opacity:0;display:flex;justify-content:center;align-items:center;width:25px;height:25px}.collapse__icon[_ngcontent-%COMP%]:hover{opacity:1}.sidebar-item[_ngcontent-%COMP%]{margin:0 1rem}.sidebar-item.active[_ngcontent-%COMP%]{background:#2075d0;border-radius:4px}.sidebar-item[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]{padding:.5rem;font-weight:400}.sidebar-item[_ngcontent-%COMP%], .sidebar-link.active[_ngcontent-%COMP%], .sidebar-link.active[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff!important}.sidebar-item[_ngcontent-%COMP%] .user-profile[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]{margin-left:.5rem}.sidebar-item[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]:hover:not(.active), .sidebar-item[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]:hover:not(.active) i[_ngcontent-%COMP%]{background:#ebf3f5;color:#000!important}.sidebar-item[_ngcontent-%COMP%] .sidebar-link.active[_ngcontent-%COMP%], .sidebar-item[_ngcontent-%COMP%] .sidebar-link.active[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{background:initial;color:initial} .mat-stepper-vertical .mat-step-header{padding:15px 32px} .mat-stepper-vertical .mat-vertical-content{padding:0 24px} .mat-stepper-vertical .mat-vertical-content-container{margin-left:44px}`],changeDetection:1})}}return o})();var ur=(()=>{class o{constructor(e){this.router=e,this.appStore=E$2(eu$1)}Logo(){this.appStore.updateLayoutOptions(G$1(F$3({},this.appStore.layoutOptions()),{expandLogo:!this.appStore.layoutOptions().expandLogo}))}ngOnInit(){this.appStore.updateLayoutOptions(G$1(F$3({},this.appStore.layoutOptions()),{defaultSidebar:this.appStore.layoutOptions().sidebartype})),this.handleSidebar()}handleSidebar(){switch(this.appStore.updateLayoutOptions(G$1(F$3({},this.appStore.layoutOptions()),{innerWidth:window.innerWidth})),this.appStore.layoutOptions().sidebartype){case`full`:case`iconbar`:this.appStore.layoutOptions().innerWidth<1170?this.appStore.updateLayoutOptions(G$1(F$3({},this.appStore.layoutOptions()),{sidebartype:`mini-sidebar`})):this.appStore.updateLayoutOptions(G$1(F$3({},this.appStore.layoutOptions()),{sidebartype:this.appStore.layoutOptions().defaultSidebar}));break;case`overlay`:this.appStore.layoutOptions().innerWidth<767?this.appStore.updateLayoutOptions(G$1(F$3({},this.appStore.layoutOptions()),{sidebartype:`mini-sidebar`})):this.appStore.updateLayoutOptions(G$1(F$3({},this.appStore.layoutOptions()),{sidebartype:this.appStore.layoutOptions().defaultSidebar}))}}handleClick(e){this.appStore.updateLayoutOptions(G$1(F$3({},this.appStore.layoutOptions()),{showMobileMenu:e}))}get showSidebar(){return{"show-sidebar":this.appStore.layoutOptions().showMobileMenu}}get layoutOptions(){return this.appStore.layoutOptions()}static{this.ɵfac=function(t){return new(t||o)(Qr$3(W$1))}}static{this.ɵcmp=PD({type:o,selectors:[[`app-full-layout`]],decls:5,vars:10,consts:[[`id`,`main-wrapper`,3,`ngClass`,`dir`],[1,`left-sidebar`,`pt-0`,3,`mouseover`,`mouseout`],[3,`notify`,`showClass`],[1,`page-wrapper`,`flex-grow-1`,`pt-0`,`z-0`]],template:function(t,n){t&1&&(Pi$3(0,`div`,0)(1,`aside`,1),Bh(`mouseover`,function(){return n.Logo()})(`mouseout`,function(){return n.Logo()}),Pi$3(2,`app-vertical-sidebar`,2),Bh(`notify`,function(i){return n.handleClick(i)}),fl()(),Pi$3(3,`div`,3),Oh$1(4,`router-outlet`),fl()()),t&2&&(Rh(`ngClass`,n.showSidebar)(`dir`,n.layoutOptions.dir),Ah$2(`data-theme`,n.layoutOptions.theme)(`data-layout`,n.layoutOptions.layout)(`data-sidebartype`,n.layoutOptions.sidebartype)(`data-sidebar-position`,n.layoutOptions.sidebarpos)(`data-header-position`,n.layoutOptions.headerpos)(`data-boxed-layout`,n.layoutOptions.boxed),iI(),Ah$2(`data-sidebarbg`,n.layoutOptions.sidebarbg),iI(),Rh(`showClass`,n.layoutOptions.showMobileMenu))},dependencies:[Ba$1,Hn$1,mr,or$1,ka,hh,fh,Xi$3,Fs$2,Nu],styles:[`#main-wrapper[_ngcontent-%COMP%]{height:100%;display:flex}`],changeDetection:1})}}return o})();var fr=(o,a)=>{let e=E$2(Sh),t=E$2(W$1);return(!e.isAuthenticated()||e.isTokenExpired())&&!e.checkAuthKeysExists()?t.createUrlTree([`/`],{queryParams:{returnUrl:a.url}}):!0};var pr=[{path:``,pathMatch:`full`,component:Pn,loadChildren:()=>import(`./chunk-It5b_NT1.js`).then(o=>o.AUTH_ROUTES)},{path:`print-mode`,component:Pn,children:[{path:``,loadComponent:()=>import(`./chunk-B46yqpy5.js`).then(o=>o.PrintModeSelectorComponent)}]},{path:`pages`,component:ur,loadChildren:()=>import(`./chunk-k8c-L_w_.js`).then(o=>o.dashboardRoutes),canActivateChild:[fr]},{path:`**`,redirectTo:``}];function br(o,a){let e=E$2(W$1),t=E$2(Q$1),n=E$2(Sh),r=o.method===`GET`,i=typeof FormData<`u`&&o.body instanceof FormData,u=localStorage.getItem(Xt$1.Host)??``,_=u&&o.url.includes(u),p={};return _?(p.Authorization=`Bearer ${localStorage.getItem(Xt$1.PosAccessToken)}`,p[`X-ClientId`]=`dealpos-app`):p.Authorization=`Bearer ${localStorage.getItem(Xt$1.BarcodeAccessToken)}`,r||i?o=o.clone({setHeaders:p,headers:o.headers.delete(`Content-Type`)}):o=o.clone({setHeaders:G$1(F$3({},p),{"Content-Type":o.headers.get(`Content-Type`)??`application/json`})}),a(o).pipe(fs$1(C=>(C instanceof te$2&&C.status===401&&(n.logout(),t.run(()=>e.navigate([``]))),lm(()=>C))))}function Bd(o,a){if(o&1&&(pl(0,`div`),ub(1),hl()),o&2){let e=Aw();eb(e.options().titleClass),Ah$2(`aria-label`,e.title()),iI(),ml(` `,e.title(),` `)}}function Fd(o,a){if(o&1&&kh(0,`div`,7),o&2){let e=Aw();eb(e.options().messageClass),Vh$1(`innerHTML`,e.message(),eE)}}function Pd(o,a){if(o&1&&(pl(0,`div`,8),ub(1),hl()),o&2){let e=Aw();eb(e.options().messageClass),Ah$2(`aria-label`,e.message()),iI(),ml(` `,e.message(),` `)}}function zd(o,a){if(o&1&&(pl(0,`div`),kh(1,`div`,9),hl()),o&2){let e=Aw();iI(),Jh(`width`,e.width()+`%`)}}var gr=(()=>{class o extends Vl{constructor(){super(...arguments),this.undoString=`undo`}action(e){return e.stopPropagation(),this.undoString=`undid`,this.toastPackage.triggerAction(),!1}static{this.ɵfac=(()=>{let e;return function(n){return(e||(e=ov(o)))(n||o)}})()}static{this.ɵcmp=PD({type:o,selectors:[[`app-custom-toast`]],features:[Th],decls:9,vars:6,consts:[[1,`d-flex`],[1,`flex-grow-1`],[1,`d-flex`,`justify-content-between`,`align-items-center`],[3,`class`],[1,`far`,`fa-times-circle`],[`role`,`alert`,3,`class`,`innerHTML`],[`role`,`alert`,3,`class`],[`role`,`alert`,3,`innerHTML`],[`role`,`alert`],[1,`toast-progress`]],template:function(t,n){t&1&&(pl(0,`div`,0)(1,`div`,1)(2,`div`,2),fw(3,Bd,2,4,`div`,3),kh(4,`i`,4),hl(),kh(5,`hr`),fw(6,Fd,1,3,`div`,5),fw(7,Pd,2,4,`div`,6),hl()(),fw(8,zd,2,2,`div`)),t&2&&(Jh(`display`,n.state()===`inactive`?`none`:``),iI(3),hw(n.title()?3:-1),iI(3),hw(n.message()&&n.options().enableHtml?6:-1),iI(),hw(n.message()&&!n.options().enableHtml?7:-1),iI(),hw(n.options().progressBar?8:-1))},encapsulation:2,data:{animation:[a(`flyInOut`,[S$2(`inactive`,F$2({opacity:0})),D$2(`inactive => active`,c$1(`400ms ease-out`,g$2([F$2({transform:`translate3d(100%, 0, 0) skewX(-30deg)`,opacity:0}),F$2({transform:`skewX(20deg)`,opacity:1}),F$2({transform:`skewX(-5deg)`,opacity:1}),F$2({transform:`none`,opacity:1})]))),D$2(`active => removed`,c$1(`400ms ease-out`,g$2([F$2({opacity:1}),F$2({transform:`translate3d(100%, 0, 0) skewX(30deg)`,opacity:0})])))])]},changeDetection:1})}}return o})();var hr={root:{transitionDuration:`{transition.duration}`},panel:{borderWidth:`0 0 1px 0`,borderColor:`{content.border.color}`},header:{color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{text.color}`,activeHoverColor:`{text.color}`,padding:`1.125rem`,fontWeight:`600`,borderRadius:`0`,borderWidth:`0`,borderColor:`{content.border.color}`,background:`{content.background}`,hoverBackground:`{content.background}`,activeBackground:`{content.background}`,activeHoverBackground:`{content.background}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`-1px`,shadow:`{focus.ring.shadow}`},toggleIcon:{color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{text.color}`,activeHoverColor:`{text.color}`},first:{topBorderRadius:`{content.border.radius}`,borderWidth:`0`},last:{bottomBorderRadius:`{content.border.radius}`,activeBottomBorderRadius:`0`},fontSize:`{typography.font.size}`},content:{borderWidth:`0`,borderColor:`{content.border.color}`,background:`{content.background}`,color:`{text.color}`,padding:`0 1.125rem 1.125rem 1.125rem`}};var vr={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`},overlay:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`},list:{padding:`{list.padding}`,gap:`{list.gap}`},option:{focusBackground:`{list.option.focus.background}`,selectedBackground:`{list.option.selected.background}`,selectedFocusBackground:`{list.option.selected.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,selectedColor:`{list.option.selected.color}`,selectedFocusColor:`{list.option.selected.focus.color}`,padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`,fontWeight:`{list.option.font.weight}`,fontSize:`{list.option.font.size}`},optionGroup:{background:`{list.option.group.background}`,color:`{list.option.group.color}`,fontWeight:`{list.option.group.font.weight}`,padding:`{list.option.group.padding}`,fontSize:`{list.option.group.font.size}`},dropdown:{width:`2.5rem`,sm:{width:`2rem`},lg:{width:`3rem`},borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.border.color}`,activeBorderColor:`{form.field.border.color}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},background:`light-dark({surface.100}, {surface.800})`,hoverBackground:`light-dark({surface.200}, {surface.700})`,activeBackground:`light-dark({surface.300}, {surface.600})`,color:`light-dark({surface.600}, {surface.300})`,hoverColor:`light-dark({surface.700}, {surface.200})`,activeColor:`light-dark({surface.800}, {surface.100})`},chip:{borderRadius:`{border.radius.sm}`,focusBackground:`light-dark({surface.200}, {surface.700})`,focusColor:`light-dark({surface.800}, {surface.0})`},emptyMessage:{padding:`{list.option.padding}`}};var yr={root:{width:`2rem`,height:`2rem`,fontSize:`1rem`,background:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`,fontWeight:`{typography.font.weight}`},icon:{size:`1rem`},group:{borderColor:`{content.background}`,offset:`-0.75rem`},lg:{width:`3rem`,height:`3rem`,fontSize:`1.5rem`,icon:{size:`1.5rem`},group:{offset:`-1rem`}},xl:{width:`4rem`,height:`4rem`,fontSize:`2rem`,icon:{size:`2rem`},group:{offset:`-1.5rem`}}};var xr={root:{borderRadius:`{border.radius.md}`,padding:`0 0.5rem`,fontSize:`0.75rem`,fontWeight:`700`,minWidth:`1.5rem`,height:`1.5rem`},dot:{size:`0.5rem`},sm:{fontSize:`0.625rem`,minWidth:`1.25rem`,height:`1.25rem`},lg:{fontSize:`0.875rem`,minWidth:`1.75rem`,height:`1.75rem`},xl:{fontSize:`1rem`,minWidth:`2rem`,height:`2rem`},primary:{background:`{primary.color}`,color:`{primary.contrast.color}`},secondary:{background:`light-dark({surface.100}, {surface.800})`,color:`light-dark({surface.600}, {surface.300})`},success:{background:`light-dark({green.500}, {green.400})`,color:`light-dark({surface.0}, {green.950})`},info:{background:`light-dark({sky.500}, {sky.400})`,color:`light-dark({surface.0}, {sky.950})`},warn:{background:`light-dark({orange.500}, {orange.400})`,color:`light-dark({surface.0}, {orange.950})`},danger:{background:`light-dark({red.500}, {red.400})`,color:`light-dark({surface.0}, {red.950})`},contrast:{background:`light-dark({surface.950}, {surface.0})`,color:`light-dark({surface.0}, {surface.950})`}};var _r={primitive:{borderRadius:{none:`0`,xs:`2px`,sm:`4px`,md:`6px`,lg:`8px`,xl:`12px`},emerald:{50:`#ecfdf5`,100:`#d1fae5`,200:`#a7f3d0`,300:`#6ee7b7`,400:`#34d399`,500:`#10b981`,600:`#059669`,700:`#047857`,800:`#065f46`,900:`#064e3b`,950:`#022c22`},green:{50:`#f0fdf4`,100:`#dcfce7`,200:`#bbf7d0`,300:`#86efac`,400:`#4ade80`,500:`#22c55e`,600:`#16a34a`,700:`#15803d`,800:`#166534`,900:`#14532d`,950:`#052e16`},lime:{50:`#f7fee7`,100:`#ecfccb`,200:`#d9f99d`,300:`#bef264`,400:`#a3e635`,500:`#84cc16`,600:`#65a30d`,700:`#4d7c0f`,800:`#3f6212`,900:`#365314`,950:`#1a2e05`},red:{50:`#fef2f2`,100:`#fee2e2`,200:`#fecaca`,300:`#fca5a5`,400:`#f87171`,500:`#ef4444`,600:`#dc2626`,700:`#b91c1c`,800:`#991b1b`,900:`#7f1d1d`,950:`#450a0a`},orange:{50:`#fff7ed`,100:`#ffedd5`,200:`#fed7aa`,300:`#fdba74`,400:`#fb923c`,500:`#f97316`,600:`#ea580c`,700:`#c2410c`,800:`#9a3412`,900:`#7c2d12`,950:`#431407`},amber:{50:`#fffbeb`,100:`#fef3c7`,200:`#fde68a`,300:`#fcd34d`,400:`#fbbf24`,500:`#f59e0b`,600:`#d97706`,700:`#b45309`,800:`#92400e`,900:`#78350f`,950:`#451a03`},yellow:{50:`#fefce8`,100:`#fef9c3`,200:`#fef08a`,300:`#fde047`,400:`#facc15`,500:`#eab308`,600:`#ca8a04`,700:`#a16207`,800:`#854d0e`,900:`#713f12`,950:`#422006`},teal:{50:`#f0fdfa`,100:`#ccfbf1`,200:`#99f6e4`,300:`#5eead4`,400:`#2dd4bf`,500:`#14b8a6`,600:`#0d9488`,700:`#0f766e`,800:`#115e59`,900:`#134e4a`,950:`#042f2e`},cyan:{50:`#ecfeff`,100:`#cffafe`,200:`#a5f3fc`,300:`#67e8f9`,400:`#22d3ee`,500:`#06b6d4`,600:`#0891b2`,700:`#0e7490`,800:`#155e75`,900:`#164e63`,950:`#083344`},sky:{50:`#f0f9ff`,100:`#e0f2fe`,200:`#bae6fd`,300:`#7dd3fc`,400:`#38bdf8`,500:`#0ea5e9`,600:`#0284c7`,700:`#0369a1`,800:`#075985`,900:`#0c4a6e`,950:`#082f49`},blue:{50:`#eff6ff`,100:`#dbeafe`,200:`#bfdbfe`,300:`#93c5fd`,400:`#60a5fa`,500:`#3b82f6`,600:`#2563eb`,700:`#1d4ed8`,800:`#1e40af`,900:`#1e3a8a`,950:`#172554`},indigo:{50:`#eef2ff`,100:`#e0e7ff`,200:`#c7d2fe`,300:`#a5b4fc`,400:`#818cf8`,500:`#6366f1`,600:`#4f46e5`,700:`#4338ca`,800:`#3730a3`,900:`#312e81`,950:`#1e1b4b`},violet:{50:`#f5f3ff`,100:`#ede9fe`,200:`#ddd6fe`,300:`#c4b5fd`,400:`#a78bfa`,500:`#8b5cf6`,600:`#7c3aed`,700:`#6d28d9`,800:`#5b21b6`,900:`#4c1d95`,950:`#2e1065`},purple:{50:`#faf5ff`,100:`#f3e8ff`,200:`#e9d5ff`,300:`#d8b4fe`,400:`#c084fc`,500:`#a855f7`,600:`#9333ea`,700:`#7e22ce`,800:`#6b21a8`,900:`#581c87`,950:`#3b0764`},fuchsia:{50:`#fdf4ff`,100:`#fae8ff`,200:`#f5d0fe`,300:`#f0abfc`,400:`#e879f9`,500:`#d946ef`,600:`#c026d3`,700:`#a21caf`,800:`#86198f`,900:`#701a75`,950:`#4a044e`},pink:{50:`#fdf2f8`,100:`#fce7f3`,200:`#fbcfe8`,300:`#f9a8d4`,400:`#f472b6`,500:`#ec4899`,600:`#db2777`,700:`#be185d`,800:`#9d174d`,900:`#831843`,950:`#500724`},rose:{50:`#fff1f2`,100:`#ffe4e6`,200:`#fecdd3`,300:`#fda4af`,400:`#fb7185`,500:`#f43f5e`,600:`#e11d48`,700:`#be123c`,800:`#9f1239`,900:`#881337`,950:`#4c0519`},slate:{50:`#f8fafc`,100:`#f1f5f9`,200:`#e2e8f0`,300:`#cbd5e1`,400:`#94a3b8`,500:`#64748b`,600:`#475569`,700:`#334155`,800:`#1e293b`,900:`#0f172a`,950:`#020617`},gray:{50:`#f9fafb`,100:`#f3f4f6`,200:`#e5e7eb`,300:`#d1d5db`,400:`#9ca3af`,500:`#6b7280`,600:`#4b5563`,700:`#374151`,800:`#1f2937`,900:`#111827`,950:`#030712`},zinc:{50:`#fafafa`,100:`#f4f4f5`,200:`#e4e4e7`,300:`#d4d4d8`,400:`#a1a1aa`,500:`#71717a`,600:`#52525b`,700:`#3f3f46`,800:`#27272a`,900:`#18181b`,950:`#09090b`},neutral:{50:`#fafafa`,100:`#f5f5f5`,200:`#e5e5e5`,300:`#d4d4d4`,400:`#a3a3a3`,500:`#737373`,600:`#525252`,700:`#404040`,800:`#262626`,900:`#171717`,950:`#0a0a0a`},stone:{50:`#fafaf9`,100:`#f5f5f4`,200:`#e7e5e4`,300:`#d6d3d1`,400:`#a8a29e`,500:`#78716c`,600:`#57534e`,700:`#44403c`,800:`#292524`,900:`#1c1917`,950:`#0c0a09`}},semantic:{transitionDuration:`0.2s`,focusRing:{width:`1px`,style:`solid`,color:`{primary.color}`,offset:`2px`,shadow:`none`},disabledOpacity:`0.6`,iconSize:`1rem`,anchorGutter:`2px`,primary:{50:`{emerald.50}`,100:`{emerald.100}`,200:`{emerald.200}`,300:`{emerald.300}`,400:`{emerald.400}`,500:`{emerald.500}`,600:`{emerald.600}`,700:`{emerald.700}`,800:`{emerald.800}`,900:`{emerald.900}`,950:`{emerald.950}`,color:`light-dark({primary.500}, {primary.400})`,contrastColor:`light-dark(#ffffff, {surface.900})`,hoverColor:`light-dark({primary.600}, {primary.300})`,activeColor:`light-dark({primary.700}, {primary.200})`},formField:{paddingX:`0.75rem`,paddingY:`0.5rem`,sm:{fontSize:`0.875rem`,paddingX:`0.625rem`,paddingY:`0.375rem`},lg:{fontSize:`1.125rem`,paddingX:`0.875rem`,paddingY:`0.625rem`},borderRadius:`{border.radius.md}`,focusRing:{width:`0`,style:`none`,color:`transparent`,offset:`0`,shadow:`none`},transitionDuration:`{transition.duration}`,background:`light-dark({surface.0}, {surface.950})`,disabledBackground:`light-dark({surface.200}, {surface.700})`,filledBackground:`light-dark({surface.50}, {surface.800})`,filledHoverBackground:`light-dark({surface.50}, {surface.800})`,filledFocusBackground:`light-dark({surface.50}, {surface.800})`,borderColor:`light-dark({surface.300}, {surface.600})`,hoverBorderColor:`light-dark({surface.400}, {surface.500})`,focusBorderColor:`{primary.color}`,invalidBorderColor:`light-dark({red.400}, {red.300})`,color:`light-dark({surface.700}, {surface.0})`,disabledColor:`light-dark({surface.500}, {surface.400})`,placeholderColor:`light-dark({surface.500}, {surface.400})`,invalidPlaceholderColor:`light-dark({red.600}, {red.400})`,floatLabelColor:`light-dark({surface.500}, {surface.400})`,floatLabelFocusColor:`light-dark({primary.600}, {primary.color})`,floatLabelActiveColor:`light-dark({surface.500}, {surface.400})`,floatLabelInvalidColor:`{form.field.invalid.placeholder.color}`,iconColor:`{surface.400}`,shadow:`0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)`,fontWeight:`{typography.font.weight}`,fontSize:`{typography.font.size}`},list:{padding:`0.25rem 0.25rem`,gap:`2px`,header:{padding:`0.5rem 1rem 0.25rem 1rem`},option:{padding:`0.5rem 0.75rem`,borderRadius:`{border.radius.sm}`,focusBackground:`light-dark({surface.100}, {surface.800})`,selectedBackground:`{highlight.background}`,selectedFocusBackground:`{highlight.focus.background}`,color:`{text.color}`,focusColor:`{text.hover.color}`,selectedColor:`{highlight.color}`,selectedFocusColor:`{highlight.focus.color}`,icon:{color:`light-dark({surface.400}, {surface.500})`,focusColor:`light-dark({surface.500}, {surface.400})`},fontWeight:`{typography.font.weight}`,fontSize:`{typography.font.size}`,transitionDuration:`0s`,selectedFontWeight:`{typography.font.weight}`},optionGroup:{padding:`0.5rem 0.75rem`,fontWeight:`600`,background:`transparent`,color:`{text.muted.color}`,fontSize:`{typography.font.size}`}},content:{borderRadius:`{border.radius.md}`,background:`light-dark({surface.0}, {surface.900})`,hoverBackground:`light-dark({surface.100}, {surface.800})`,borderColor:`light-dark({surface.200}, {surface.700})`,color:`{text.color}`,hoverColor:`{text.hover.color}`},mask:{transitionDuration:`0.3s`,background:`light-dark(rgba(0,0,0,0.4), rgba(0,0,0,0.6))`,color:`{surface.200}`},navigation:{list:{padding:`0.25rem 0.25rem`,gap:`2px`},item:{padding:`0.5rem 0.75rem`,borderRadius:`{border.radius.sm}`,gap:`0.5rem`,focusBackground:`light-dark({surface.100}, {surface.800})`,activeBackground:`light-dark({surface.100}, {surface.800})`,color:`{text.color}`,focusColor:`{text.hover.color}`,activeColor:`{text.hover.color}`,icon:{color:`light-dark({surface.400}, {surface.500})`,focusColor:`light-dark({surface.500}, {surface.400})`,activeColor:`light-dark({surface.500}, {surface.400})`,size:`{icon.size}`},label:{fontWeight:`{typography.font.weight}`,fontSize:`{typography.font.size}`},transitionDuration:`0s`},submenuLabel:{padding:`0.5rem 0.75rem`,fontWeight:`600`,background:`transparent`,color:`{text.muted.color}`,fontSize:`{typography.font.size}`},submenuIcon:{size:`0.875rem`,color:`light-dark({surface.400}, {surface.500})`,focusColor:`light-dark({surface.500}, {surface.400})`,activeColor:`light-dark({surface.500}, {surface.400})`}},overlay:{select:{borderRadius:`{border.radius.md}`,shadow:`0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)`,background:`light-dark({surface.0}, {surface.900})`,borderColor:`light-dark({surface.200}, {surface.700})`,color:`{text.color}`},popover:{borderRadius:`{border.radius.md}`,padding:`0.75rem`,shadow:`0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)`,background:`light-dark({surface.0}, {surface.900})`,borderColor:`light-dark({surface.200}, {surface.700})`,color:`{text.color}`},modal:{borderRadius:`{border.radius.xl}`,padding:`1.25rem`,shadow:`0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)`,background:`light-dark({surface.0}, {surface.900})`,borderColor:`light-dark({surface.200}, {surface.700})`,color:`{text.color}`},navigation:{shadow:`0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)`}},surface:{0:`#ffffff`,50:`light-dark({slate.50}, {zinc.50})`,100:`light-dark({slate.100}, {zinc.100})`,200:`light-dark({slate.200}, {zinc.200})`,300:`light-dark({slate.300}, {zinc.300})`,400:`light-dark({slate.400}, {zinc.400})`,500:`light-dark({slate.500}, {zinc.500})`,600:`light-dark({slate.600}, {zinc.600})`,700:`light-dark({slate.700}, {zinc.700})`,800:`light-dark({slate.800}, {zinc.800})`,900:`light-dark({slate.900}, {zinc.900})`,950:`light-dark({slate.950}, {zinc.950})`},highlight:{background:`light-dark({primary.50}, color-mix(in srgb, {primary.400}, transparent 84%))`,focusBackground:`light-dark({primary.100}, color-mix(in srgb, {primary.400}, transparent 76%))`,color:`light-dark({primary.700}, rgba(255,255,255,.87))`,focusColor:`light-dark({primary.800}, rgba(255,255,255,.87))`},text:{color:`light-dark({surface.700}, {surface.0})`,hoverColor:`light-dark({surface.800}, {surface.0})`,mutedColor:`light-dark({surface.500}, {surface.400})`,hoverMutedColor:`light-dark({surface.600}, {surface.300})`},typography:{lineHeight:`normal`,fontFamily:`inherit`,fontWeight:`normal`,fontSize:`1rem`}}};var kr={root:{borderRadius:`{content.border.radius}`}};var Sr={root:{padding:`1rem`,background:`{content.background}`,gap:`0.5rem`,transitionDuration:`{transition.duration}`},item:{color:`{text.muted.color}`,hoverColor:`{text.color}`,borderRadius:`{content.border.radius}`,gap:`{navigation.item.gap}`,icon:{color:`{navigation.item.icon.color}`,hoverColor:`{navigation.item.icon.focus.color}`,size:`{navigation.item.icon.size}`},focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},label:{fontWeight:`{navigation.item.label.font.weight}`,fontSize:`{navigation.item.label.font.size}`}},separator:{color:`{navigation.item.icon.color}`}};var wr={root:{borderRadius:`{form.field.border.radius}`,roundedBorderRadius:`2rem`,gap:`0.5rem`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,iconOnlyWidth:`2.5rem`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`,iconOnlyWidth:`2rem`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`,iconOnlyWidth:`3rem`},label:{fontWeight:`500`},raisedShadow:`0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,offset:`{focus.ring.offset}`},badgeSize:`1rem`,transitionDuration:`{form.field.transition.duration}`,primary:{background:`{primary.color}`,hoverBackground:`{primary.hover.color}`,activeBackground:`{primary.active.color}`,borderColor:`{primary.color}`,hoverBorderColor:`{primary.hover.color}`,activeBorderColor:`{primary.active.color}`,color:`{primary.contrast.color}`,hoverColor:`{primary.contrast.color}`,activeColor:`{primary.contrast.color}`,focusRing:{color:`{primary.color}`,shadow:`none`}},secondary:{background:`light-dark({surface.100}, {surface.800})`,hoverBackground:`light-dark({surface.200}, {surface.700})`,activeBackground:`light-dark({surface.300}, {surface.600})`,borderColor:`light-dark({surface.100}, {surface.800})`,hoverBorderColor:`light-dark({surface.200}, {surface.700})`,activeBorderColor:`light-dark({surface.300}, {surface.600})`,color:`light-dark({surface.600}, {surface.300})`,hoverColor:`light-dark({surface.700}, {surface.200})`,activeColor:`light-dark({surface.800}, {surface.100})`,focusRing:{color:`light-dark({surface.600}, {surface.300})`,shadow:`none`}},info:{background:`light-dark({sky.500}, {sky.400})`,hoverBackground:`light-dark({sky.600}, {sky.300})`,activeBackground:`light-dark({sky.700}, {sky.200})`,borderColor:`light-dark({sky.500}, {sky.400})`,hoverBorderColor:`light-dark({sky.600}, {sky.300})`,activeBorderColor:`light-dark({sky.700}, {sky.200})`,color:`light-dark(#ffffff, {sky.950})`,hoverColor:`light-dark(#ffffff, {sky.950})`,activeColor:`light-dark(#ffffff, {sky.950})`,focusRing:{color:`light-dark({sky.500}, {sky.400})`,shadow:`none`}},success:{background:`light-dark({green.500}, {green.400})`,hoverBackground:`light-dark({green.600}, {green.300})`,activeBackground:`light-dark({green.700}, {green.200})`,borderColor:`light-dark({green.500}, {green.400})`,hoverBorderColor:`light-dark({green.600}, {green.300})`,activeBorderColor:`light-dark({green.700}, {green.200})`,color:`light-dark(#ffffff, {green.950})`,hoverColor:`light-dark(#ffffff, {green.950})`,activeColor:`light-dark(#ffffff, {green.950})`,focusRing:{color:`light-dark({green.500}, {green.400})`,shadow:`none`}},warn:{background:`light-dark({orange.500}, {orange.400})`,hoverBackground:`light-dark({orange.600}, {orange.300})`,activeBackground:`light-dark({orange.700}, {orange.200})`,borderColor:`light-dark({orange.500}, {orange.400})`,hoverBorderColor:`light-dark({orange.600}, {orange.300})`,activeBorderColor:`light-dark({orange.700}, {orange.200})`,color:`light-dark(#ffffff, {orange.950})`,hoverColor:`light-dark(#ffffff, {orange.950})`,activeColor:`light-dark(#ffffff, {orange.950})`,focusRing:{color:`light-dark({orange.500}, {orange.400})`,shadow:`none`}},help:{background:`light-dark({purple.500}, {purple.400})`,hoverBackground:`light-dark({purple.600}, {purple.300})`,activeBackground:`light-dark({purple.700}, {purple.200})`,borderColor:`light-dark({purple.500}, {purple.400})`,hoverBorderColor:`light-dark({purple.600}, {purple.300})`,activeBorderColor:`light-dark({purple.700}, {purple.200})`,color:`light-dark(#ffffff, {purple.950})`,hoverColor:`light-dark(#ffffff, {purple.950})`,activeColor:`light-dark(#ffffff, {purple.950})`,focusRing:{color:`light-dark({purple.500}, {purple.400})`,shadow:`none`}},danger:{background:`light-dark({red.500}, {red.400})`,hoverBackground:`light-dark({red.600}, {red.300})`,activeBackground:`light-dark({red.700}, {red.200})`,borderColor:`light-dark({red.500}, {red.400})`,hoverBorderColor:`light-dark({red.600}, {red.300})`,activeBorderColor:`light-dark({red.700}, {red.200})`,color:`light-dark(#ffffff, {red.950})`,hoverColor:`light-dark(#ffffff, {red.950})`,activeColor:`light-dark(#ffffff, {red.950})`,focusRing:{color:`light-dark({red.500}, {red.400})`,shadow:`none`}},contrast:{background:`light-dark({surface.950}, {surface.0})`,hoverBackground:`light-dark({surface.900}, {surface.100})`,activeBackground:`light-dark({surface.800}, {surface.200})`,borderColor:`light-dark({surface.950}, {surface.0})`,hoverBorderColor:`light-dark({surface.900}, {surface.100})`,activeBorderColor:`light-dark({surface.800}, {surface.200})`,color:`light-dark({surface.0}, {surface.950})`,hoverColor:`light-dark({surface.0}, {surface.950})`,activeColor:`light-dark({surface.0}, {surface.950})`,focusRing:{color:`light-dark({surface.950}, {surface.0})`,shadow:`none`}},fontSize:`{form.field.font.size}`},outlined:{primary:{hoverBackground:`light-dark({primary.50}, color-mix(in srgb, {primary.color}, transparent 96%))`,activeBackground:`light-dark({primary.100}, color-mix(in srgb, {primary.color}, transparent 84%))`,borderColor:`light-dark({primary.200}, {primary.700})`,color:`{primary.color}`},secondary:{hoverBackground:`light-dark({surface.50}, rgba(255,255,255,0.04))`,activeBackground:`light-dark({surface.100}, rgba(255,255,255,0.16))`,borderColor:`light-dark({surface.200}, {surface.700})`,color:`light-dark({surface.500}, {surface.400})`},success:{hoverBackground:`light-dark({green.50}, color-mix(in srgb, {green.400}, transparent 96%))`,activeBackground:`light-dark({green.100}, color-mix(in srgb, {green.400}, transparent 84%))`,borderColor:`light-dark({green.200}, {green.700})`,color:`light-dark({green.500}, {green.400})`},info:{hoverBackground:`light-dark({sky.50}, color-mix(in srgb, {sky.400}, transparent 96%))`,activeBackground:`light-dark({sky.100}, color-mix(in srgb, {sky.400}, transparent 84%))`,borderColor:`light-dark({sky.200}, {sky.700})`,color:`light-dark({sky.500}, {sky.400})`},warn:{hoverBackground:`light-dark({orange.50}, color-mix(in srgb, {orange.400}, transparent 96%))`,activeBackground:`light-dark({orange.100}, color-mix(in srgb, {orange.400}, transparent 84%))`,borderColor:`light-dark({orange.200}, {orange.700})`,color:`light-dark({orange.500}, {orange.400})`},help:{hoverBackground:`light-dark({purple.50}, color-mix(in srgb, {purple.400}, transparent 96%))`,activeBackground:`light-dark({purple.100}, color-mix(in srgb, {purple.400}, transparent 84%))`,borderColor:`light-dark({purple.200}, {purple.700})`,color:`light-dark({purple.500}, {purple.400})`},danger:{hoverBackground:`light-dark({red.50}, color-mix(in srgb, {red.400}, transparent 96%))`,activeBackground:`light-dark({red.100}, color-mix(in srgb, {red.400}, transparent 84%))`,borderColor:`light-dark({red.200}, {red.700})`,color:`light-dark({red.500}, {red.400})`},contrast:{hoverBackground:`light-dark({surface.50}, {surface.800})`,activeBackground:`light-dark({surface.100}, {surface.700})`,borderColor:`light-dark({surface.700}, {surface.500})`,color:`light-dark({surface.950}, {surface.0})`},plain:{hoverBackground:`light-dark({surface.50}, {surface.800})`,activeBackground:`light-dark({surface.100}, {surface.700})`,borderColor:`light-dark({surface.200}, {surface.600})`,color:`light-dark({surface.700}, {surface.0})`}},text:{primary:{hoverBackground:`light-dark({primary.50}, color-mix(in srgb, {primary.color}, transparent 96%))`,activeBackground:`light-dark({primary.100}, color-mix(in srgb, {primary.color}, transparent 84%))`,color:`{primary.color}`},secondary:{hoverBackground:`light-dark({surface.50}, {surface.800})`,activeBackground:`light-dark({surface.100}, {surface.700})`,color:`light-dark({surface.500}, {surface.400})`},success:{hoverBackground:`light-dark({green.50}, color-mix(in srgb, {green.400}, transparent 96%))`,activeBackground:`light-dark({green.100}, color-mix(in srgb, {green.400}, transparent 84%))`,color:`light-dark({green.500}, {green.400})`},info:{hoverBackground:`light-dark({sky.50}, color-mix(in srgb, {sky.400}, transparent 96%))`,activeBackground:`light-dark({sky.100}, color-mix(in srgb, {sky.400}, transparent 84%))`,color:`light-dark({sky.500}, {sky.400})`},warn:{hoverBackground:`light-dark({orange.50}, color-mix(in srgb, {orange.400}, transparent 96%))`,activeBackground:`light-dark({orange.100}, color-mix(in srgb, {orange.400}, transparent 84%))`,color:`light-dark({orange.500}, {orange.400})`},help:{hoverBackground:`light-dark({purple.50}, color-mix(in srgb, {purple.400}, transparent 96%))`,activeBackground:`light-dark({purple.100}, color-mix(in srgb, {purple.400}, transparent 84%))`,color:`light-dark({purple.500}, {purple.400})`},danger:{hoverBackground:`light-dark({red.50}, color-mix(in srgb, {red.400}, transparent 96%))`,activeBackground:`light-dark({red.100}, color-mix(in srgb, {red.400}, transparent 84%))`,color:`light-dark({red.500}, {red.400})`},contrast:{hoverBackground:`light-dark({surface.50}, {surface.800})`,activeBackground:`light-dark({surface.100}, {surface.700})`,color:`light-dark({surface.950}, {surface.0})`},plain:{hoverBackground:`light-dark({surface.50}, {surface.800})`,activeBackground:`light-dark({surface.100}, {surface.700})`,color:`light-dark({surface.700}, {surface.0})`}},link:{color:`{primary.color}`,hoverColor:`{primary.color}`,activeColor:`{primary.color}`}};var Cr={root:{background:`{content.background}`,borderRadius:`{border.radius.xl}`,color:`{content.color}`,shadow:`0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)`},body:{padding:`1.25rem`,gap:`0.5rem`},caption:{gap:`0.5rem`},title:{fontSize:`1.25rem`,fontWeight:`500`},subtitle:{color:`{text.muted.color}`,fontSize:`1.125rem`,fontWeight:`{typography.font.weight}`}};var Nr={root:{transitionDuration:`{transition.duration}`},content:{gap:`0.25rem`},indicatorList:{padding:`1rem`,gap:`0.5rem`},indicator:{width:`2rem`,height:`0.5rem`,borderRadius:`{content.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},background:`light-dark({surface.200}, {surface.700})`,hoverBackground:`light-dark({surface.300}, {surface.600})`,activeBackground:`{primary.color}`}};var Mr={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`},fontWeight:`{form.field.font.weight}`,fontSize:`{form.field.font.size}`},dropdown:{width:`2.5rem`,color:`{form.field.icon.color}`},overlay:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`},list:{padding:`{list.padding}`,gap:`{list.gap}`,mobileIndent:`1rem`},option:{focusBackground:`{list.option.focus.background}`,selectedBackground:`{list.option.selected.background}`,selectedFocusBackground:`{list.option.selected.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,selectedColor:`{list.option.selected.color}`,selectedFocusColor:`{list.option.selected.focus.color}`,padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`,icon:{color:`{list.option.icon.color}`,focusColor:`{list.option.icon.focus.color}`,size:`0.875rem`},selectedFontWeight:`{list.option.selected.font.weight}`,fontWeight:`{list.option.font.weight}`,fontSize:`{list.option.font.size}`},clearIcon:{color:`{form.field.icon.color}`}};var Er={root:{borderRadius:`{border.radius.sm}`,width:`1.25rem`,height:`1.25rem`,background:`{form.field.background}`,checkedBackground:`{primary.color}`,checkedHoverBackground:`{primary.hover.color}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.border.color}`,checkedBorderColor:`{primary.color}`,checkedHoverBorderColor:`{primary.hover.color}`,checkedFocusBorderColor:`{primary.color}`,checkedDisabledBorderColor:`{form.field.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,shadow:`{form.field.shadow}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{width:`1rem`,height:`1rem`},lg:{width:`1.5rem`,height:`1.5rem`}},icon:{size:`0.875rem`,color:`{form.field.color}`,checkedColor:`{primary.contrast.color}`,checkedHoverColor:`{primary.contrast.color}`,disabledColor:`{form.field.disabled.color}`,sm:{size:`0.75rem`},lg:{size:`1rem`}}};var Ir={root:{borderRadius:`16px`,paddingX:`0.75rem`,paddingY:`0.5rem`,gap:`0.5rem`,transitionDuration:`{transition.duration}`,background:`light-dark({surface.100}, {surface.800})`,color:`light-dark({surface.800}, {surface.0})`,focusBackground:`light-dark({surface.200}, {surface.700})`},image:{width:`2rem`,height:`2rem`},icon:{size:`1rem`,color:`light-dark({surface.800}, {surface.0})`},removeIcon:{size:`1rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},color:`light-dark({surface.800}, {surface.0})`},label:{fontWeight:`{typography.font.weight}`,fontSize:`0.875rem`}};var Tr={root:{transitionDuration:`{transition.duration}`},preview:{width:`1.5rem`,height:`1.5rem`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},panel:{shadow:`{overlay.popover.shadow}`,borderRadius:`{overlay.popover.borderRadius}`,background:`light-dark({surface.800}, {surface.900})`,borderColor:`light-dark({surface.900}, {surface.700})`},handle:{color:`{surface.0}`}};var Dr={root:{background:`{content.background}`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`,height:`28.625rem`},header:{padding:`0.375rem 1.25rem`,background:`{content.background}`,borderColor:`{content.border.color}`},input:{padding:`0.375rem 0`,fontSize:`1.125rem`,fontWeight:`{typography.font.weight}`,color:`{form.field.color}`,placeholderColor:`{form.field.placeholder.color}`},list:{padding:`0.375rem`},empty:{padding:`2.25rem 0`,color:`{content.color}`},footer:{padding:`0.75rem 1.25rem`,background:`{content.background}`,borderColor:`{content.border.color}`}};var Rr={root:{borderRadius:`{content.border.radius}`},handle:{background:`{content.background}`,size:`1px`},indicator:{size:`1.75rem`,background:`{content.background}`,borderRadius:`{content.border.radius}`,focusRing:{width:`2px`,style:`solid`,color:`{content.background}`,offset:`2px`},icon:{color:`{text.muted.color}`,size:`{icon.size}`}}};var Br={icon:{size:`2rem`,color:`{overlay.modal.color}`},content:{gap:`1rem`},message:{color:`{content.color}`,fontWeight:`{typography.font.weight}`,fontSize:`{typography.font.size}`}};var Fr={root:{background:`{overlay.popover.background}`,borderColor:`{overlay.popover.border.color}`,color:`{overlay.popover.color}`,borderRadius:`{overlay.popover.border.radius}`,shadow:`{overlay.popover.shadow}`,gutter:`10px`,arrowOffset:`1.25rem`},content:{padding:`{overlay.popover.padding}`,gap:`1rem`},icon:{size:`1.5rem`,color:`{overlay.popover.color}`},footer:{gap:`0.5rem`,padding:`0 {overlay.popover.padding} {overlay.popover.padding} {overlay.popover.padding}`},message:{color:`{content.color}`,fontWeight:`{typography.font.weight}`,fontSize:`{typography.font.size}`}};var Pr={root:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`,shadow:`{overlay.navigation.shadow}`,transitionDuration:`{transition.duration}`},list:{padding:`{navigation.list.padding}`,gap:`{navigation.list.gap}`},item:{focusBackground:`{navigation.item.focus.background}`,activeBackground:`{navigation.item.active.background}`,color:`{navigation.item.color}`,focusColor:`{navigation.item.focus.color}`,activeColor:`{navigation.item.active.color}`,padding:`{navigation.item.padding}`,borderRadius:`{navigation.item.border.radius}`,gap:`{navigation.item.gap}`,icon:{color:`{navigation.item.icon.color}`,focusColor:`{navigation.item.icon.focus.color}`,activeColor:`{navigation.item.icon.active.color}`,size:`{navigation.item.icon.size}`},label:{fontWeight:`{navigation.item.label.font.weight}`,fontSize:`{navigation.item.label.font.size}`}},submenu:{mobileIndent:`1rem`},submenuIcon:{size:`{navigation.submenu.icon.size}`,color:`{navigation.submenu.icon.color}`,focusColor:`{navigation.submenu.icon.focus.color}`,activeColor:`{navigation.submenu.icon.active.color}`},separator:{borderColor:`{content.border.color}`},submenuLabel:{padding:`{navigation.submenu.label.padding}`,fontWeight:`{navigation.submenu.label.font.weight}`,fontSize:`{navigation.submenu.label.font.size}`,background:`{navigation.submenu.label.background}`,color:`{navigation.submenu.label.color}`}};var zr=`
|
|
2245
|
+
`;var od={root:({instance:o})=>[`p-stepper p-component`,{"p-readonly":o.linear()}],separator:`p-stepper-separator`};var un=class Ot extends fe$1{name=`stepper`;style=nd;classes=od;static ɵfac=(()=>{let e;return function(n){return(e||(e=ov(Ot)))(n||Ot)}})();static ɵprov=ue$2({token:Ot,factory:Ot.ɵfac})};var Ut=new x$3(`STEPPER_INSTANCE`);var Ga=new x$3(`STEPLIST_INSTANCE`);var Ya=new x$3(`STEPITEM_INSTANCE`);var Xa=new x$3(`STEP_INSTANCE`);var Za=new x$3(`STEPPANEL_INSTANCE`);var Qa=new x$3(`STEPPERSEPARATOR_INSTANCE`);var ar=class yt extends ct$5{$pcStepperSeparator=E$2(Qa,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=E$2(Ze$2,{self:!0});componentName=`StepperSeparator`;_componentStyle=E$2(un);onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms([`host`,`root`]))}static ɵfac=(()=>{let e;return function(n){return(e||(e=ov(yt)))(n||yt)}})();static ɵcmp=(function(){return PD({type:yt,selectors:[[`p-stepper-separator`]],hostVars:2,hostBindings:function(n,r){n&2&&eb(r.cx(`separator`))},features:[Db([un,{provide:Qa,useExisting:yt},{provide:At$4,useExisting:yt}]),GD([Ze$2]),Th],ngContentSelectors:[`*`],decls:1,vars:0,template:function(n,r){n&1&&(Ow(),kw(0))},dependencies:[zr$2],encapsulation:2})})()};var ad={root:({instance:o})=>[`p-step`,{"p-step-active":o.active(),"p-disabled":o.isStepDisabled()}],header:`p-step-header`,number:`p-step-number`,title:`p-step-title`};var Ja=class Lt extends fe$1{name=`step`;classes=ad;static ɵfac=(()=>{let e;return function(n){return(e||(e=ov(Lt)))(n||Lt)}})();static ɵprov=ue$2({token:Lt,factory:Lt.ɵfac})};var Ne=class xt extends ct$5{$pcStep=E$2(Xa,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=E$2(Ze$2,{self:!0});componentName=`Step`;pcStepper=E$2(Ut);value=L1();disabled=k1(!1,{transform:e=>Tc$1(e)});active=Hb(()=>this.pcStepper.isStepActive(this.value()));isStepDisabled=Hb(()=>!this.active()&&(this.pcStepper.linear()||this.disabled()));stepTabindex=Hb(()=>this.isStepDisabled()?-1:void 0);ariaCurrent=Hb(()=>this.active()?`step`:void 0);id=Hb(()=>`${this.pcStepper.id()}_step_${this.value()}`);ariaControls=Hb(()=>`${this.pcStepper.id()}_steppanel_${this.value()}`);isSeparatorVisible=Hb(()=>{let e=this.pcStepper.stepList();if(e){let t=e.steps();return t.indexOf(this)!==t.length-1}else return!1});content=F1(`content`,{descendants:!1});_componentStyle=E$2(Ja);onStepClickCallback=this.onStepClick.bind(this);contentContext=Hb(()=>({activateCallback:this.onStepClickCallback,value:this.value(),active:this.active()}));onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms([`host`,`root`]))}onStepClick(){this.pcStepper.updateValue(this.value())}static ɵfac=(()=>{let e;return function(n){return(e||(e=ov(xt)))(n||xt)}})();static ɵcmp=(function(){let e=[`content`],t=[`*`];function n(p,C){p&1&&Oh$1(0,`p-stepper-separator`)}function r(p,C){if(p&1){let c=Tw();Pi$3(0,`button`,0),Bh(`click`,function(){Gu(c);let s=Aw();return zu(s.onStepClick())}),Pi$3(1,`span`,1),ub(2),fl(),Pi$3(3,`span`,1),kw(4),fl()(),fw(5,n,1,0,`p-stepper-separator`)}if(p&2){let c=Aw();eb(c.cx(`header`)),Rh(`pBind`,c.ptm(`header`))(`tabindex`,c.stepTabindex())(`disabled`,c.isStepDisabled()),Ah$2(`id`,c.id())(`role`,`tab`)(`aria-controls`,c.ariaControls()),iI(),eb(c.cx(`number`)),Rh(`pBind`,c.ptm(`number`)),iI(),cg(c.value()),iI(),eb(c.cx(`title`)),Rh(`pBind`,c.ptm(`title`)),iI(2),hw(c.isSeparatorVisible()?5:-1)}}function i(p,C){p&1&&Ph(0)}function u(p,C){p&1&&Oh$1(0,`p-stepper-separator`)}function _(p,C){if(p&1&&(_h(0,i,1,0,`ng-container`,2),fw(1,u,1,0,`p-stepper-separator`)),p&2){let c=Aw();Rh(`ngTemplateOutlet`,c.content())(`ngTemplateOutletContext`,c.contentContext()),iI(),hw(c.isSeparatorVisible()?1:-1)}}return PD({type:xt,selectors:[[`p-step`]],contentQueries:function(C,c,E){C&1&&Gh(E,c.content,e,4),C&2&&jw()},hostVars:6,hostBindings:function(C,c){C&2&&(Ah$2(`aria-current`,c.ariaCurrent())(`role`,`presentation`)(`data-p-active`,c.active())(`data-p-disabled`,c.isStepDisabled()),eb(c.cx(`root`)))},inputs:{value:[1,`value`],disabled:[1,`disabled`]},outputs:{value:`valueChange`},features:[Db([Ja,{provide:Xa,useExisting:xt},{provide:At$4,useExisting:xt}]),GD([Ze$2]),Th],ngContentSelectors:t,decls:2,vars:1,consts:[[`type`,`button`,3,`click`,`pBind`,`tabindex`,`disabled`],[3,`pBind`],[4,`ngTemplateOutlet`,`ngTemplateOutletContext`]],template:function(C,c){C&1&&(Ow(),fw(0,r,6,16)(1,_,2,3)),C&2&&hw(c.content()?1:0)},dependencies:[xs$1,ar,yi$3,zr$2,Ze$2],encapsulation:2})})()};var rd={root:({instance:o})=>[`p-steppanel`,{"p-steppanel-active":o.isVertical()&&o.active()}],contentWrapper:`p-steppanel-content-wrapper`,content:`p-steppanel-content`};var er=class Vt extends fe$1{name=`steppanel`;classes=rd;static ɵfac=(()=>{let e;return function(n){return(e||(e=ov(Vt)))(n||Vt)}})();static ɵprov=ue$2({token:Vt,factory:Vt.ɵfac})};var wt=class _t extends ct$5{$pcStepPanel=E$2(Za,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=E$2(Ze$2,{self:!0});componentName=`StepPanel`;pcStepper=E$2(Ut);value=L1();active=Hb(()=>this.pcStepper.value()===this.value());ariaControls=Hb(()=>`${this.pcStepper.id()}_step_${this.value()}`);id=Hb(()=>`${this.pcStepper.id()}_steppanel_${this.value()}`);isVertical=Hb(()=>this.pcStepper.stepItems().length>0);isSeparatorVisible=Hb(()=>{if(this.pcStepper.stepItems()){let e=this.pcStepper.stepItems().length,t=Fo$2(this.pcStepper.el.nativeElement,`[data-pc-name="steppanel"]`);return sl(this.el.nativeElement,t)!==e-1}});computedMotionOptions=Hb(()=>F$3(F$3({},this.ptm(`motion`)),this.pcStepper.computedMotionOptions()));contentTemplate=F1(`content`,{descendants:!1});_componentStyle=E$2(er);updateValueCallback=this.updateValue.bind(this);contentContext=Hb(()=>({activateCallback:this.updateValueCallback,value:this.value(),active:this.active()}));onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms([`host`,`root`]))}updateValue(e){this.pcStepper.updateValue(e)}static ɵfac=(()=>{let e;return function(n){return(e||(e=ov(_t)))(n||_t)}})();static ɵcmp=(function(){let e=[`content`];function t(r,i){r&1&&Oh$1(0,`p-stepper-separator`)}function n(r,i){r&1&&Ph(0)}return PD({type:_t,selectors:[[`p-step-panel`]],contentQueries:function(i,u,_){i&1&&Gh(_,u.contentTemplate,e,4),i&2&&jw()},hostVars:7,hostBindings:function(i,u){i&2&&(Ah$2(`role`,`tabpanel`)(`aria-controls`,u.ariaControls())(`id`,u.id())(`data-p-active`,u.active())(`data-pc-name`,`steppanel`),eb(u.cx(`root`)))},inputs:{value:[1,`value`]},outputs:{value:`valueChange`},features:[Db([er,{provide:Za,useExisting:_t},{provide:At$4,useExisting:_t}]),GD([Ze$2]),Th],decls:5,vars:13,consts:[[3,`visible`,`name`,`disabled`,`options`],[3,`pBind`],[4,`ngTemplateOutlet`,`ngTemplateOutletContext`]],template:function(i,u){i&1&&(Pi$3(0,`p-motion`,0)(1,`div`,1),fw(2,t,1,0,`p-stepper-separator`),Pi$3(3,`div`,1),_h(4,n,1,0,`ng-container`,2),fl()()()),i&2&&(Rh(`visible`,u.active())(`name`,u.pcn(`p-collapsible`))(`disabled`,!u.isVertical())(`options`,u.computedMotionOptions()),iI(),eb(u.cx(`contentWrapper`)),Rh(`pBind`,u.ptm(`contentWrapper`)),iI(),hw(u.isSeparatorVisible()?2:-1),iI(),eb(u.cx(`content`)),Rh(`pBind`,u.ptm(`content`)),iI(),Rh(`ngTemplateOutlet`,u.contentTemplate())(`ngTemplateOutletContext`,u.contentContext()))},dependencies:[xs$1,ar,yi$3,zr$2,Ze$2,Su,ja$3],encapsulation:2})})()};var id={root:({instance:o})=>[`p-stepitem`,{"p-stepitem-active":o.isActive()}]};var tr=class Ht extends fe$1{name=`stepitem`;classes=id;static ɵfac=(()=>{let e;return function(n){return(e||(e=ov(Ht)))(n||Ht)}})();static ɵprov=ue$2({token:Ht,factory:Ht.ɵfac})};var Ct=class jt extends ct$5{$pcStepItem=E$2(Ya,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=E$2(Ze$2,{self:!0});componentName=`StepItem`;_componentStyle=E$2(tr);pcStepper=E$2(Ut);value=L1();isActive=Hb(()=>this.pcStepper.value()===this.value());step=F1(Ne,{descendants:!1});stepPanel=F1(wt,{descendants:!1});constructor(){super(),hd$1(()=>{this.step()?.value.set(this.value())}),hd$1(()=>{this.stepPanel()?.value.set(this.value())})}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms([`host`,`root`]))}static ɵfac=function(t){return new(t||jt)};static ɵcmp=(function(){return PD({type:jt,selectors:[[`p-step-item`]],contentQueries:function(n,r,i){n&1&&Gh(i,r.step,Ne,4)(i,r.stepPanel,wt,4),n&2&&jw(2)},hostVars:4,hostBindings:function(n,r){n&2&&(Ah$2(`role`,`presentation`)(`data-p-active`,r.isActive()),eb(r.cx(`root`)))},inputs:{value:[1,`value`]},outputs:{value:`valueChange`},features:[Db([tr,{provide:Ya,useExisting:jt},{provide:At$4,useExisting:jt}]),GD([Ze$2]),Th],ngContentSelectors:[`*`],decls:1,vars:0,template:function(n,r){n&1&&(Ow(),kw(0))},dependencies:[zr$2],encapsulation:2})})()};var sd={root:`p-steplist`};var nr=class Wt extends fe$1{name=`steplist`;classes=sd;static ɵfac=(()=>{let e;return function(n){return(e||(e=ov(Wt)))(n||Wt)}})();static ɵprov=ue$2({token:Wt,factory:Wt.ɵfac})};var or=class kt extends ct$5{$pcStepList=E$2(Ga,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=E$2(Ze$2,{self:!0});componentName=`StepList`;steps=j1(Ne);_componentStyle=E$2(nr);onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms([`host`,`root`]))}static ɵfac=(()=>{let e;return function(n){return(e||(e=ov(kt)))(n||kt)}})();static ɵcmp=(function(){return PD({type:kt,selectors:[[`p-step-list`]],contentQueries:function(n,r,i){n&1&&Gh(i,r.steps,Ne,4),n&2&&jw()},hostVars:3,hostBindings:function(n,r){n&2&&(Ah$2(`role`,`presentation`),eb(r.cx(`root`)))},features:[Db([nr,{provide:Ga,useExisting:kt},{provide:At$4,useExisting:kt}]),GD([Ze$2]),Th],ngContentSelectors:[`*`],decls:1,vars:0,template:function(n,r){n&1&&(Ow(),kw(0))},dependencies:[zr$2],encapsulation:2})})()};var fn=class St extends ct$5{componentName=`Stepper`;$pcStepper=E$2(Ut,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=E$2(Ze$2,{self:!0});_componentStyle=E$2(un);value=L1();linear=k1(!1,{transform:e=>Tc$1(e)});motionOptions=k1(void 0);computedMotionOptions=Hb(()=>F$3(F$3({},this.ptm(`motion`)),this.motionOptions()));id=ti$3(this.$useId.next(`pn_id_`));stepItems=j1(Ct);steps=j1(Ne);stepList=F1(or,{descendants:!1});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms([`host`,`root`]))}updateValue(e){this.value.set(e)}isStepActive(e){return this.value()===e}static ɵfac=(()=>{let e;return function(n){return(e||(e=ov(St)))(n||St)}})();static ɵcmp=(function(){return PD({type:St,selectors:[[`p-stepper`]],contentQueries:function(n,r,i){n&1&&Gh(i,r.stepItems,Ct,4)(i,r.steps,Ne,4)(i,r.stepList,or,4),n&2&&jw(3)},hostVars:4,hostBindings:function(n,r){n&2&&(Ah$2(`role`,`tablist`)(`id`,r.id()),eb(r.cx(`root`)))},inputs:{value:[1,`value`],linear:[1,`linear`],motionOptions:[1,`motionOptions`]},outputs:{value:`valueChange`},features:[Db([un,{provide:Ut,useExisting:St},{provide:At$4,useExisting:St}]),GD([Ze$2]),Th],ngContentSelectors:[`*`],decls:1,vars:0,template:function(n,r){n&1&&(Ow(),kw(0))},dependencies:[yi$3,zr$2],encapsulation:2})})()};var pn=o=>({"justify-content-center":o});function dd(o,a){o&1&&(Pi$3(0,`span`),ub(1,`Choose Template`),fl())}function ld(o,a){o&1&&(Pi$3(0,`div`,4)(1,`span`,5),ub(2,`Select the template you want to use for printing`),fl()())}function cd(o,a){o&1&&(Pi$3(0,`p-step-panel`),_h(1,ld,3,0,`ng-template`,null,0,Pb),fl())}function md(o,a){o&1&&(Pi$3(0,`span`),ub(1,`Choose Product`),fl())}function ud(o,a){o&1&&(Pi$3(0,`div`,4)(1,`span`),ub(2,`Select the product that you want to print`),fl()())}function fd(o,a){o&1&&(Pi$3(0,`p-step-panel`),_h(1,ud,3,0,`ng-template`,null,0,Pb),fl())}function pd(o,a){o&1&&(Pi$3(0,`span`),ub(1,`Customize Label`),fl())}function bd(o,a){o&1&&(Pi$3(0,`div`,4)(1,`span`),ub(2,`Configure sticker label layout and visibility`),fl()())}function gd(o,a){o&1&&(Pi$3(0,`p-step-panel`),_h(1,bd,3,0,`ng-template`,null,0,Pb),fl())}function hd(o,a){o&1&&(Pi$3(0,`span`),ub(1,`Print Preview`),fl())}function vd(o,a){o&1&&(Pi$3(0,`div`,4)(1,`span`),ub(2,` Select the paper type, then configure adjust the position and margins to ensure accurate sticker placement `),fl()())}function yd(o,a){o&1&&(Pi$3(0,`p-step-panel`),_h(1,vd,3,0,`ng-template`,null,0,Pb),fl())}var rr=(()=>{class o{constructor(){this.appStore=E$2(eu$1)}get layoutOptions(){return this.appStore.layoutOptions()}get currentStep(){return this.appStore.currentStep()}stepperChange(e){this.appStore.updateCurrentStep(e)}static{this.ɵfac=function(t){return new(t||o)}}static{this.ɵcmp=PD({type:o,selectors:[[`app-stepper-barcode`]],decls:17,vars:26,consts:[[`content`,``],[3,`valueChange`,`unstyled`,`value`],[3,`value`],[1,`fs-3`,3,`ngClass`],[1,`fw-normal`,`fs-2`],[1,``]],template:function(t,n){t&1&&(Pi$3(0,`p-stepper`,1),Bh(`valueChange`,function(i){return n.stepperChange(i)}),Pi$3(1,`p-step-item`,2)(2,`p-step`,3),fw(3,dd,2,0,`span`),fl(),fw(4,cd,3,0,`p-step-panel`),fl(),Pi$3(5,`p-step-item`,2)(6,`p-step`,3),fw(7,md,2,0,`span`),fl(),fw(8,fd,3,0,`p-step-panel`),fl(),Pi$3(9,`p-step-item`,2)(10,`p-step`,3),fw(11,pd,2,0,`span`),fl(),fw(12,gd,3,0,`p-step-panel`),fl(),Pi$3(13,`p-step-item`,2)(14,`p-step`,3),fw(15,hd,2,0,`span`),fl(),fw(16,yd,3,0,`p-step-panel`),fl()()),t&2&&(Rh(`unstyled`,!1)(`value`,n.currentStep),iI(),Rh(`value`,1),iI(),Rh(`ngClass`,bb(18,pn,n.layoutOptions.sidebartype===`mini-sidebar`)),iI(),hw(n.layoutOptions.sidebartype===`full`?3:-1),iI(),hw(n.layoutOptions.sidebartype===`full`?4:-1),iI(),Rh(`value`,2),iI(),Rh(`ngClass`,bb(20,pn,n.layoutOptions.sidebartype===`mini-sidebar`)),iI(),hw(n.layoutOptions.sidebartype===`full`?7:-1),iI(),hw(n.layoutOptions.sidebartype===`full`?8:-1),iI(),Rh(`value`,3),iI(),Rh(`ngClass`,bb(22,pn,n.layoutOptions.sidebartype===`mini-sidebar`)),iI(),hw(n.layoutOptions.sidebartype===`full`?11:-1),iI(),hw(n.layoutOptions.sidebartype===`full`?12:-1),iI(),Rh(`value`,4),iI(),Rh(`ngClass`,bb(24,pn,n.layoutOptions.sidebartype===`mini-sidebar`)),iI(),hw(n.layoutOptions.sidebartype===`full`?15:-1),iI(),hw(n.layoutOptions.sidebartype===`full`?16:-1))},dependencies:[Ne,Ct,wt,fn,Fs$2],styles:[`.p-stepper .p-step:hover{background-color:#eae9ed} .p-stepper .p-stepitem.p-stepitem-active .p-step-number{color:var(--%NS%p-blue-500);border-color:var(--%NS%p-blue-500)} .p-stepper .p-stepitem.p-stepitem-active .p-step-title{color:var(--%NS%p-secondary-color)}`],changeDetection:1})}}return o})();var ir=o=>({"justify-content-center":o});function xd(o,a){o&1&&(Pi$3(0,`span`),ub(1,`Choose Product`),fl())}function _d(o,a){o&1&&(Pi$3(0,`div`,4)(1,`span`),ub(2,`Select the product that you want to print`),fl()())}function kd(o,a){o&1&&(Pi$3(0,`p-step-panel`),_h(1,_d,3,0,`ng-template`,null,0,Pb),fl())}function Sd(o,a){o&1&&(Pi$3(0,`span`),ub(1,`Print Preview`),fl())}function wd(o,a){o&1&&(Pi$3(0,`div`,4)(1,`span`),ub(2,` Select the paper type, then configure adjust the position and margins to ensure accurate sticker placement `),fl()())}function Cd(o,a){o&1&&(Pi$3(0,`p-step-panel`),_h(1,wd,3,0,`ng-template`,null,0,Pb),fl())}var sr=(()=>{class o{constructor(){this.appStore=E$2(eu$1)}get layoutOptions(){return this.appStore.layoutOptions()}get currentStep(){return this.appStore.currentStep()}stepperChange(e){this.appStore.updateCurrentStep(e)}static{this.ɵfac=function(t){return new(t||o)}}static{this.ɵcmp=PD({type:o,selectors:[[`app-stepper-price-label`]],decls:9,vars:14,consts:[[`content`,``],[1,``,3,`valueChange`,`unstyled`,`value`],[3,`value`],[1,`fs-3`,3,`ngClass`],[1,`fw-normal`,`fs-2`]],template:function(t,n){t&1&&(Pi$3(0,`p-stepper`,1),Bh(`valueChange`,function(i){return n.stepperChange(i)}),Pi$3(1,`p-step-item`,2)(2,`p-step`,3),fw(3,xd,2,0,`span`),fl(),fw(4,kd,3,0,`p-step-panel`),fl(),Pi$3(5,`p-step-item`,2)(6,`p-step`,3),fw(7,Sd,2,0,`span`),fl(),fw(8,Cd,3,0,`p-step-panel`),fl()()),t&2&&(Rh(`unstyled`,!1)(`value`,n.currentStep),iI(),Rh(`value`,1),iI(),Rh(`ngClass`,bb(10,ir,n.layoutOptions.sidebartype===`mini-sidebar`)),iI(),hw(n.layoutOptions.sidebartype===`full`?3:-1),iI(),hw(n.layoutOptions.sidebartype===`full`?4:-1),iI(),Rh(`value`,2),iI(),Rh(`ngClass`,bb(12,ir,n.layoutOptions.sidebartype===`mini-sidebar`)),iI(),hw(n.layoutOptions.sidebartype===`full`?7:-1),iI(),hw(n.layoutOptions.sidebartype===`full`?8:-1))},dependencies:[Ne,Ct,wt,fn,Fs$2],styles:[`.p-stepper .p-step:hover{background-color:#eae9ed} .p-stepper .p-stepitem.p-stepitem-active .p-step-number{color:var(--%NS%p-blue-500);border-color:var(--%NS%p-blue-500)} .p-stepper .p-stepitem.p-stepitem-active .p-step-title{color:var(--%NS%p-secondary-color)}`],changeDetection:1})}}return o})();var dr=(()=>{class o{static{this.ɵfac=function(t){return new(t||o)}}static{this.ɵcmp=PD({type:o,selectors:[[`app-navigation-users`]],decls:13,vars:0,consts:[[1,`nav`,`nav-pills`,`flex-column`,`mb-auto`,`mx-3`],[1,`nav-item`],[`routerLink`,`setup/users`,`routerLinkActive`,`active`,1,`nav-link`,`link-dark`],[1,`fa-solid`,`fa-user`],[`routerLink`,`setup/groups`,`routerLinkActive`,`active`,1,`nav-link`,`link-dark`],[`routerLink`,`setup/credential`,`routerLinkActive`,`active`,1,`nav-link`,`link-dark`],[1,`fa-solid`,`fa-key`]],template:function(t,n){t&1&&(Pi$3(0,`ul`,0)(1,`li`,1)(2,`a`,2),Oh$1(3,`i`,3),ub(4,` Users `),fl()(),Pi$3(5,`li`)(6,`a`,4),Oh$1(7,`i`,3),ub(8,` Group `),fl()(),Pi$3(9,`li`)(10,`a`,5),Oh$1(11,`i`,6),ub(12,` Credential `),fl()()())},dependencies:[Jt$1,Fa$2],styles:[`.nav-link.active[_ngcontent-%COMP%]{color:#fff!important}`],changeDetection:1})}}return o})();var lr=[{path:``,title:`Choose Product`,icon:`fas fa-shopping-cart`,class:``,label:``,labelClass:`side-badge badge bg-success`,extralink:!1,submenu:[]},{path:``,title:`Customize Label`,icon:`fas fa-tag`,class:``,label:``,labelClass:``,extralink:!1,submenu:[]},{path:``,title:`Print Preview`,icon:`fas fa-print`,class:``,label:``,labelClass:``,extralink:!1,submenu:[]}];var cr=(()=>{class o{constructor(){this.collapseSidebar=!1,this.fullScreen=!1,this.MENUITEMS=lr,this.items=new Kn$2(this.MENUITEMS)}static{this.ɵfac=function(t){return new(t||o)}}static{this.ɵprov=ue$2({token:o,factory:o.ɵfac,providedIn:`root`})}}return o})();var Md=[`stepper`];function Ed(o,a){if(o&1){let e=Tw();Pi$3(0,`div`,2)(1,`button`,8),Bh(`click`,function(n){Gu(e);let r=Vw(5);return zu(r.toggle(n))}),ub(2),Oh$1(3,`i`,9),fl(),Oh$1(4,`p-menu`,10,0),fl()}if(o&2){let e=Aw();iI(2),ml(` `,e.sidebarTitle(),` `),iI(2),Rh(`model`,e.items())(`popup`,!0)}}function Id(o,a){o&1&&(Pi$3(0,`div`,3)(1,`span`,11),ub(2,`BA`),fl()())}function Td(o,a){o&1&&Oh$1(0,`app-stepper-barcode`)}function Dd(o,a){o&1&&Oh$1(0,`app-stepper-price-label`)}function Rd(o,a){o&1&&Oh$1(0,`app-navigation-users`)}var mr=(()=>{class o{handleNotify(){this.notify.emit(!this.showClass)}constructor(e,t){this.menuServise=e,this.router=t,this.appStore=E$2(eu$1),this._formBuilder=E$2(dh$1),this.step=ti$3(0),this.printMode=ti$3(1),this.sidebarTitle=ti$3(``),this.firstFormGroup=this._formBuilder.group({firstCtrl:[``,Er$1.required]}),this.secondFormGroup=this._formBuilder.group({secondCtrl:[``,Er$1.required]}),this.items=ti$3(null),this.showMenu=``,this.showSubMenu=``,this.sidebarnavItems=[],this.path=``,this.authService=E$2(Sh),this.username=``,this.domain=ti$3(``),this.brand=ti$3(``),this.showClass=!1,this.notify=new qe$1,this.cdr=E$2(H1),this.storeService=E$2(el$1),this.route=E$2(Z$1),this.stepperRef=null,this.injector=E$2(le$1),this.storeSevice=E$2(el$1),this.menuServise.items.subscribe(n=>{this.sidebarnavItems=n,this.sidebarnavItems.filter(r=>r.submenu.filter(i=>{i.path===this.router.url&&(this.path=r.title)})),this.addExpandClass(this.path)})}addExpandClass(e){e===this.showMenu?this.showMenu=`0`:this.showMenu=e}ngOnInit(){this.items.set([{label:localStorage.getItem(Xt$1.Host),labelClass:`text-body-secondary small`,styleClass:`border-bottom`,command(e){let t=document.createElement(`a`);t.href=`https://${localStorage.getItem(Xt$1.Host)}`,t.target=`_blank`,t.style.display=`none`,document.body.appendChild(t),t.click(),document.body.removeChild(t)}},{label:localStorage.getItem(Xt$1.Username),labelClass:`text-body-secondary small`,icon:`fa-solid fa-user`,command:e=>M$1(this,null,function*(){})},{label:`Switch Mode`,labelClass:`text-body-secondary small`,icon:`fa-solid fa-history`,command:e=>M$1(this,null,function*(){this.router.navigate([`/print-mode`]),setTimeout(()=>{document.querySelector(`.p-menu-overlay`)?.remove()},100)})},{label:`Logout`,labelClass:`text-body-secondary small`,icon:`fas fa-sign-out-alt`,command:e=>M$1(this,null,function*(){yield this.authService.logout(),setTimeout(()=>{document.querySelector(`.p-menu-overlay`)?.remove()},100)})}]),T$3(this.storeService.productItems,{injector:this.injector}).pipe($e$1(e=>e.length<=0),ql(()=>this.stepperRef?.steps.forEach(e=>e.completed=!1))).subscribe(),this.route.queryParamMap.pipe($e$1(e=>e.has(`step`)),it$3(e=>+e.get(`step`)),ql(e=>this.step.set(e))).subscribe(),T$3(this.storeService.stepper$,{injector:this.injector}).pipe(ql(e=>{this.stepperRef&&(this.stepperRef.steps.forEach((t,n)=>{t.completed=n<=e.state}),this.stepperRef.selectedIndex=e.state)}))}addActiveClass(e){e===this.showSubMenu?this.showSubMenu=`0`:this.showSubMenu=e,window.scroll({top:0,left:0,behavior:`smooth`})}ngAfterViewInit(){this.username=localStorage.getItem(Xt$1.Username),this.brand.set(localStorage.getItem(Xt$1.Brand)),this.domain.set(localStorage.getItem(Xt$1.Host));let e=localStorage.getItem(Xt$1.PrintMode)||`barcode`;e===`barcode`?(this.printMode.set(1),this.sidebarTitle.set(this.brand())):e===`priceLabel`?(this.printMode.set(2),this.sidebarTitle.set(this.brand())):(this.printMode.set(3),this.sidebarTitle.set(this.brand())),T$3(this.storeService.stepper$,{injector:this.injector}).pipe(ql(t=>{this.stepperRef&&(this.stepperRef.steps.forEach((n,r)=>{n.completed=r<=t.state}),this.stepperRef.selectedIndex=t.state)})).subscribe(),this.cdr.detectChanges()}onGotoStepper(e){this.storeSevice.onGotoStepper(e)}onStepperSelectionChange(e){let t=this.stepperRef?.selectedIndex??0;if(Math.abs(e-t)>1)return;this.storeService.onGotoStepper(e);let n=this.storeService.stepper$().state;this.stepperRef&&(this.stepperRef.steps.forEach((r,i)=>{r.completed=i<=n}),this.stepperRef.selectedIndex=n)}onSwitchMode(){this.router.navigate([`/print-mode`]),localStorage.removeItem(Xt$1.PrintMode)}toggleSidebar(){let e=this.appStore.layoutOptions(),t=window.innerWidth,n=e.sidebartype;e.sidebartype===`full`||e.sidebartype===`iconbar`?n=`mini-sidebar`:e.sidebartype===`overlay`?t<767?n=`mini-sidebar`:n=e.defaultSidebar:n=e.defaultSidebar||n,this.appStore.updateLayoutOptions(G$1(F$3({},e),{innerWidth:t,sidebartype:n}))}get layoutOptions(){return this.appStore.layoutOptions()}static{this.ɵfac=function(t){return new(t||o)(Qr$3(cr),Qr$3(W$1))}}static{this.ɵcmp=PD({type:o,selectors:[[`app-vertical-sidebar`]],viewQuery:function(t,n){if(t&1&&qh(Md,5),t&2){let r;Pw(r=Fw())&&(n.stepperRef=r.first)}},inputs:{showClass:`showClass`},outputs:{notify:`notify`},decls:11,vars:2,consts:[[`menu`,``],[1,`d-flex`,`flex-column`,`h-100`,`position-relative`],[1,`d-flex`,`align-items-center`,`cursor-pointer`,2,`height`,`61px`,`border-bottom`,`1px solid #ddd`,`padding`,`0 2rem`],[1,`d-flex`,`align-items-center`,`justify-content-center`,2,`height`,`61px`,`border-bottom`,`1px solid #ddd`],[1,`sidebar-nav`,`flex-grow-1`],[`id`,`sidebarnav`],[1,`collapse__icon`,`z-1`,3,`click`],[1,`fas`,`fa-caret-left`],[`type`,`button`,1,`btn`,`px-0`,`btn-link`,`link-offset-2`,`link-underline`,`link-underline-opacity-0`,`text-dark`,`text-uppercase`,3,`click`],[1,`fa-solid`,`fa-caret-down`],[`appendTo`,`body`,3,`model`,`popup`],[1,`fs-6`,`fw-normal`,`text-capitalize`]],template:function(t,n){if(t&1&&(Pi$3(0,`div`,1),fw(1,Ed,6,3,`div`,2)(2,Id,3,0,`div`,3),Pi$3(3,`nav`,4)(4,`ul`,5),Oh$1(5,`br`),fw(6,Td,1,0,`app-stepper-barcode`)(7,Dd,1,0,`app-stepper-price-label`)(8,Rd,1,0,`app-navigation-users`),fl()(),Pi$3(9,`div`,6),Bh(`click`,function(){return n.toggleSidebar()}),Oh$1(10,`i`,7),fl()()),t&2){let r;iI(),hw((r=n.layoutOptions.sidebartype)===`full`?1:r===`mini-sidebar`?2:-1),iI(5),hw(n.printMode()===1?6:n.printMode()===2?7:8)}},dependencies:[Ba$1,qa,Xr$1,hh,fh,At,$a,rr,sr,In$1,dr],styles:[`.collapse__icon[_ngcontent-%COMP%]{border:1px solid black;border-radius:50%;padding:.5rem;transition:all .5s ease-in-out;position:absolute;top:17px;right:-10px;opacity:0;display:flex;justify-content:center;align-items:center;width:25px;height:25px}.collapse__icon[_ngcontent-%COMP%]:hover{opacity:1}.sidebar-item[_ngcontent-%COMP%]{margin:0 1rem}.sidebar-item.active[_ngcontent-%COMP%]{background:#2075d0;border-radius:4px}.sidebar-item[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]{padding:.5rem;font-weight:400}.sidebar-item[_ngcontent-%COMP%], .sidebar-link.active[_ngcontent-%COMP%], .sidebar-link.active[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff!important}.sidebar-item[_ngcontent-%COMP%] .user-profile[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]{margin-left:.5rem}.sidebar-item[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]:hover:not(.active), .sidebar-item[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]:hover:not(.active) i[_ngcontent-%COMP%]{background:#ebf3f5;color:#000!important}.sidebar-item[_ngcontent-%COMP%] .sidebar-link.active[_ngcontent-%COMP%], .sidebar-item[_ngcontent-%COMP%] .sidebar-link.active[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{background:initial;color:initial} .mat-stepper-vertical .mat-step-header{padding:15px 32px} .mat-stepper-vertical .mat-vertical-content{padding:0 24px} .mat-stepper-vertical .mat-vertical-content-container{margin-left:44px}`],changeDetection:1})}}return o})();var ur=(()=>{class o{constructor(e){this.router=e,this.appStore=E$2(eu$1)}Logo(){this.appStore.updateLayoutOptions(G$1(F$3({},this.appStore.layoutOptions()),{expandLogo:!this.appStore.layoutOptions().expandLogo}))}ngOnInit(){this.appStore.updateLayoutOptions(G$1(F$3({},this.appStore.layoutOptions()),{defaultSidebar:this.appStore.layoutOptions().sidebartype})),this.handleSidebar()}handleSidebar(){switch(this.appStore.updateLayoutOptions(G$1(F$3({},this.appStore.layoutOptions()),{innerWidth:window.innerWidth})),this.appStore.layoutOptions().sidebartype){case`full`:case`iconbar`:this.appStore.layoutOptions().innerWidth<1170?this.appStore.updateLayoutOptions(G$1(F$3({},this.appStore.layoutOptions()),{sidebartype:`mini-sidebar`})):this.appStore.updateLayoutOptions(G$1(F$3({},this.appStore.layoutOptions()),{sidebartype:this.appStore.layoutOptions().defaultSidebar}));break;case`overlay`:this.appStore.layoutOptions().innerWidth<767?this.appStore.updateLayoutOptions(G$1(F$3({},this.appStore.layoutOptions()),{sidebartype:`mini-sidebar`})):this.appStore.updateLayoutOptions(G$1(F$3({},this.appStore.layoutOptions()),{sidebartype:this.appStore.layoutOptions().defaultSidebar}))}}handleClick(e){this.appStore.updateLayoutOptions(G$1(F$3({},this.appStore.layoutOptions()),{showMobileMenu:e}))}get showSidebar(){return{"show-sidebar":this.appStore.layoutOptions().showMobileMenu}}get layoutOptions(){return this.appStore.layoutOptions()}static{this.ɵfac=function(t){return new(t||o)(Qr$3(W$1))}}static{this.ɵcmp=PD({type:o,selectors:[[`app-full-layout`]],decls:5,vars:10,consts:[[`id`,`main-wrapper`,3,`ngClass`,`dir`],[1,`left-sidebar`,`pt-0`,3,`mouseover`,`mouseout`],[3,`notify`,`showClass`],[1,`page-wrapper`,`flex-grow-1`,`pt-0`,`z-0`]],template:function(t,n){t&1&&(Pi$3(0,`div`,0)(1,`aside`,1),Bh(`mouseover`,function(){return n.Logo()})(`mouseout`,function(){return n.Logo()}),Pi$3(2,`app-vertical-sidebar`,2),Bh(`notify`,function(i){return n.handleClick(i)}),fl()(),Pi$3(3,`div`,3),Oh$1(4,`router-outlet`),fl()()),t&2&&(Rh(`ngClass`,n.showSidebar)(`dir`,n.layoutOptions.dir),Ah$2(`data-theme`,n.layoutOptions.theme)(`data-layout`,n.layoutOptions.layout)(`data-sidebartype`,n.layoutOptions.sidebartype)(`data-sidebar-position`,n.layoutOptions.sidebarpos)(`data-header-position`,n.layoutOptions.headerpos)(`data-boxed-layout`,n.layoutOptions.boxed),iI(),Ah$2(`data-sidebarbg`,n.layoutOptions.sidebarbg),iI(),Rh(`showClass`,n.layoutOptions.showMobileMenu))},dependencies:[Ba$1,Hn$1,mr,or$1,ka,hh,fh,Xi$3,Fs$2,Nu],styles:[`#main-wrapper[_ngcontent-%COMP%]{height:100%;display:flex}`],changeDetection:1})}}return o})();var fr=(o,a)=>{let e=E$2(Sh),t=E$2(W$1);return(!e.isAuthenticated()||e.isTokenExpired())&&!e.checkAuthKeysExists()?t.createUrlTree([`/`],{queryParams:{returnUrl:a.url}}):!0};var pr=[{path:``,pathMatch:`full`,component:Pn,loadChildren:()=>import(`./chunk-yJ9bUdiC.js`).then(o=>o.AUTH_ROUTES)},{path:`print-mode`,component:Pn,children:[{path:``,loadComponent:()=>import(`./chunk-B4SypU5x.js`).then(o=>o.PrintModeSelectorComponent)}]},{path:`pages`,component:ur,loadChildren:()=>import(`./chunk-jYvhl2Yc.js`).then(o=>o.dashboardRoutes),canActivateChild:[fr]},{path:`**`,redirectTo:``}];function br(o,a){let e=E$2(W$1),t=E$2(Q$1),n=E$2(Sh),r=o.method===`GET`,i=typeof FormData<`u`&&o.body instanceof FormData,u=localStorage.getItem(Xt$1.Host)??``,_=u&&o.url.includes(u),p={};return _?(p.Authorization=`Bearer ${localStorage.getItem(Xt$1.PosAccessToken)}`,p[`X-ClientId`]=`dealpos-app`):p.Authorization=`Bearer ${localStorage.getItem(Xt$1.BarcodeAccessToken)}`,r||i?o=o.clone({setHeaders:p,headers:o.headers.delete(`Content-Type`)}):o=o.clone({setHeaders:G$1(F$3({},p),{"Content-Type":o.headers.get(`Content-Type`)??`application/json`})}),a(o).pipe(fs$1(C=>(C instanceof te$2&&C.status===401&&(n.logout(),t.run(()=>e.navigate([``]))),lm(()=>C))))}function Bd(o,a){if(o&1&&(pl(0,`div`),ub(1),hl()),o&2){let e=Aw();eb(e.options().titleClass),Ah$2(`aria-label`,e.title()),iI(),ml(` `,e.title(),` `)}}function Fd(o,a){if(o&1&&kh(0,`div`,7),o&2){let e=Aw();eb(e.options().messageClass),Vh$1(`innerHTML`,e.message(),eE)}}function Pd(o,a){if(o&1&&(pl(0,`div`,8),ub(1),hl()),o&2){let e=Aw();eb(e.options().messageClass),Ah$2(`aria-label`,e.message()),iI(),ml(` `,e.message(),` `)}}function zd(o,a){if(o&1&&(pl(0,`div`),kh(1,`div`,9),hl()),o&2){let e=Aw();iI(),Jh(`width`,e.width()+`%`)}}var gr=(()=>{class o extends Vl{constructor(){super(...arguments),this.undoString=`undo`}action(e){return e.stopPropagation(),this.undoString=`undid`,this.toastPackage.triggerAction(),!1}static{this.ɵfac=(()=>{let e;return function(n){return(e||(e=ov(o)))(n||o)}})()}static{this.ɵcmp=PD({type:o,selectors:[[`app-custom-toast`]],features:[Th],decls:9,vars:6,consts:[[1,`d-flex`],[1,`flex-grow-1`],[1,`d-flex`,`justify-content-between`,`align-items-center`],[3,`class`],[1,`far`,`fa-times-circle`],[`role`,`alert`,3,`class`,`innerHTML`],[`role`,`alert`,3,`class`],[`role`,`alert`,3,`innerHTML`],[`role`,`alert`],[1,`toast-progress`]],template:function(t,n){t&1&&(pl(0,`div`,0)(1,`div`,1)(2,`div`,2),fw(3,Bd,2,4,`div`,3),kh(4,`i`,4),hl(),kh(5,`hr`),fw(6,Fd,1,3,`div`,5),fw(7,Pd,2,4,`div`,6),hl()(),fw(8,zd,2,2,`div`)),t&2&&(Jh(`display`,n.state()===`inactive`?`none`:``),iI(3),hw(n.title()?3:-1),iI(3),hw(n.message()&&n.options().enableHtml?6:-1),iI(),hw(n.message()&&!n.options().enableHtml?7:-1),iI(),hw(n.options().progressBar?8:-1))},encapsulation:2,data:{animation:[a(`flyInOut`,[S$2(`inactive`,F$2({opacity:0})),D$2(`inactive => active`,c$1(`400ms ease-out`,g$2([F$2({transform:`translate3d(100%, 0, 0) skewX(-30deg)`,opacity:0}),F$2({transform:`skewX(20deg)`,opacity:1}),F$2({transform:`skewX(-5deg)`,opacity:1}),F$2({transform:`none`,opacity:1})]))),D$2(`active => removed`,c$1(`400ms ease-out`,g$2([F$2({opacity:1}),F$2({transform:`translate3d(100%, 0, 0) skewX(30deg)`,opacity:0})])))])]},changeDetection:1})}}return o})();var hr={root:{transitionDuration:`{transition.duration}`},panel:{borderWidth:`0 0 1px 0`,borderColor:`{content.border.color}`},header:{color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{text.color}`,activeHoverColor:`{text.color}`,padding:`1.125rem`,fontWeight:`600`,borderRadius:`0`,borderWidth:`0`,borderColor:`{content.border.color}`,background:`{content.background}`,hoverBackground:`{content.background}`,activeBackground:`{content.background}`,activeHoverBackground:`{content.background}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`-1px`,shadow:`{focus.ring.shadow}`},toggleIcon:{color:`{text.muted.color}`,hoverColor:`{text.color}`,activeColor:`{text.color}`,activeHoverColor:`{text.color}`},first:{topBorderRadius:`{content.border.radius}`,borderWidth:`0`},last:{bottomBorderRadius:`{content.border.radius}`,activeBottomBorderRadius:`0`},fontSize:`{typography.font.size}`},content:{borderWidth:`0`,borderColor:`{content.border.color}`,background:`{content.background}`,color:`{text.color}`,padding:`0 1.125rem 1.125rem 1.125rem`}};var vr={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`},overlay:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`},list:{padding:`{list.padding}`,gap:`{list.gap}`},option:{focusBackground:`{list.option.focus.background}`,selectedBackground:`{list.option.selected.background}`,selectedFocusBackground:`{list.option.selected.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,selectedColor:`{list.option.selected.color}`,selectedFocusColor:`{list.option.selected.focus.color}`,padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`,fontWeight:`{list.option.font.weight}`,fontSize:`{list.option.font.size}`},optionGroup:{background:`{list.option.group.background}`,color:`{list.option.group.color}`,fontWeight:`{list.option.group.font.weight}`,padding:`{list.option.group.padding}`,fontSize:`{list.option.group.font.size}`},dropdown:{width:`2.5rem`,sm:{width:`2rem`},lg:{width:`3rem`},borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.border.color}`,activeBorderColor:`{form.field.border.color}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},background:`light-dark({surface.100}, {surface.800})`,hoverBackground:`light-dark({surface.200}, {surface.700})`,activeBackground:`light-dark({surface.300}, {surface.600})`,color:`light-dark({surface.600}, {surface.300})`,hoverColor:`light-dark({surface.700}, {surface.200})`,activeColor:`light-dark({surface.800}, {surface.100})`},chip:{borderRadius:`{border.radius.sm}`,focusBackground:`light-dark({surface.200}, {surface.700})`,focusColor:`light-dark({surface.800}, {surface.0})`},emptyMessage:{padding:`{list.option.padding}`}};var yr={root:{width:`2rem`,height:`2rem`,fontSize:`1rem`,background:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`,fontWeight:`{typography.font.weight}`},icon:{size:`1rem`},group:{borderColor:`{content.background}`,offset:`-0.75rem`},lg:{width:`3rem`,height:`3rem`,fontSize:`1.5rem`,icon:{size:`1.5rem`},group:{offset:`-1rem`}},xl:{width:`4rem`,height:`4rem`,fontSize:`2rem`,icon:{size:`2rem`},group:{offset:`-1.5rem`}}};var xr={root:{borderRadius:`{border.radius.md}`,padding:`0 0.5rem`,fontSize:`0.75rem`,fontWeight:`700`,minWidth:`1.5rem`,height:`1.5rem`},dot:{size:`0.5rem`},sm:{fontSize:`0.625rem`,minWidth:`1.25rem`,height:`1.25rem`},lg:{fontSize:`0.875rem`,minWidth:`1.75rem`,height:`1.75rem`},xl:{fontSize:`1rem`,minWidth:`2rem`,height:`2rem`},primary:{background:`{primary.color}`,color:`{primary.contrast.color}`},secondary:{background:`light-dark({surface.100}, {surface.800})`,color:`light-dark({surface.600}, {surface.300})`},success:{background:`light-dark({green.500}, {green.400})`,color:`light-dark({surface.0}, {green.950})`},info:{background:`light-dark({sky.500}, {sky.400})`,color:`light-dark({surface.0}, {sky.950})`},warn:{background:`light-dark({orange.500}, {orange.400})`,color:`light-dark({surface.0}, {orange.950})`},danger:{background:`light-dark({red.500}, {red.400})`,color:`light-dark({surface.0}, {red.950})`},contrast:{background:`light-dark({surface.950}, {surface.0})`,color:`light-dark({surface.0}, {surface.950})`}};var _r={primitive:{borderRadius:{none:`0`,xs:`2px`,sm:`4px`,md:`6px`,lg:`8px`,xl:`12px`},emerald:{50:`#ecfdf5`,100:`#d1fae5`,200:`#a7f3d0`,300:`#6ee7b7`,400:`#34d399`,500:`#10b981`,600:`#059669`,700:`#047857`,800:`#065f46`,900:`#064e3b`,950:`#022c22`},green:{50:`#f0fdf4`,100:`#dcfce7`,200:`#bbf7d0`,300:`#86efac`,400:`#4ade80`,500:`#22c55e`,600:`#16a34a`,700:`#15803d`,800:`#166534`,900:`#14532d`,950:`#052e16`},lime:{50:`#f7fee7`,100:`#ecfccb`,200:`#d9f99d`,300:`#bef264`,400:`#a3e635`,500:`#84cc16`,600:`#65a30d`,700:`#4d7c0f`,800:`#3f6212`,900:`#365314`,950:`#1a2e05`},red:{50:`#fef2f2`,100:`#fee2e2`,200:`#fecaca`,300:`#fca5a5`,400:`#f87171`,500:`#ef4444`,600:`#dc2626`,700:`#b91c1c`,800:`#991b1b`,900:`#7f1d1d`,950:`#450a0a`},orange:{50:`#fff7ed`,100:`#ffedd5`,200:`#fed7aa`,300:`#fdba74`,400:`#fb923c`,500:`#f97316`,600:`#ea580c`,700:`#c2410c`,800:`#9a3412`,900:`#7c2d12`,950:`#431407`},amber:{50:`#fffbeb`,100:`#fef3c7`,200:`#fde68a`,300:`#fcd34d`,400:`#fbbf24`,500:`#f59e0b`,600:`#d97706`,700:`#b45309`,800:`#92400e`,900:`#78350f`,950:`#451a03`},yellow:{50:`#fefce8`,100:`#fef9c3`,200:`#fef08a`,300:`#fde047`,400:`#facc15`,500:`#eab308`,600:`#ca8a04`,700:`#a16207`,800:`#854d0e`,900:`#713f12`,950:`#422006`},teal:{50:`#f0fdfa`,100:`#ccfbf1`,200:`#99f6e4`,300:`#5eead4`,400:`#2dd4bf`,500:`#14b8a6`,600:`#0d9488`,700:`#0f766e`,800:`#115e59`,900:`#134e4a`,950:`#042f2e`},cyan:{50:`#ecfeff`,100:`#cffafe`,200:`#a5f3fc`,300:`#67e8f9`,400:`#22d3ee`,500:`#06b6d4`,600:`#0891b2`,700:`#0e7490`,800:`#155e75`,900:`#164e63`,950:`#083344`},sky:{50:`#f0f9ff`,100:`#e0f2fe`,200:`#bae6fd`,300:`#7dd3fc`,400:`#38bdf8`,500:`#0ea5e9`,600:`#0284c7`,700:`#0369a1`,800:`#075985`,900:`#0c4a6e`,950:`#082f49`},blue:{50:`#eff6ff`,100:`#dbeafe`,200:`#bfdbfe`,300:`#93c5fd`,400:`#60a5fa`,500:`#3b82f6`,600:`#2563eb`,700:`#1d4ed8`,800:`#1e40af`,900:`#1e3a8a`,950:`#172554`},indigo:{50:`#eef2ff`,100:`#e0e7ff`,200:`#c7d2fe`,300:`#a5b4fc`,400:`#818cf8`,500:`#6366f1`,600:`#4f46e5`,700:`#4338ca`,800:`#3730a3`,900:`#312e81`,950:`#1e1b4b`},violet:{50:`#f5f3ff`,100:`#ede9fe`,200:`#ddd6fe`,300:`#c4b5fd`,400:`#a78bfa`,500:`#8b5cf6`,600:`#7c3aed`,700:`#6d28d9`,800:`#5b21b6`,900:`#4c1d95`,950:`#2e1065`},purple:{50:`#faf5ff`,100:`#f3e8ff`,200:`#e9d5ff`,300:`#d8b4fe`,400:`#c084fc`,500:`#a855f7`,600:`#9333ea`,700:`#7e22ce`,800:`#6b21a8`,900:`#581c87`,950:`#3b0764`},fuchsia:{50:`#fdf4ff`,100:`#fae8ff`,200:`#f5d0fe`,300:`#f0abfc`,400:`#e879f9`,500:`#d946ef`,600:`#c026d3`,700:`#a21caf`,800:`#86198f`,900:`#701a75`,950:`#4a044e`},pink:{50:`#fdf2f8`,100:`#fce7f3`,200:`#fbcfe8`,300:`#f9a8d4`,400:`#f472b6`,500:`#ec4899`,600:`#db2777`,700:`#be185d`,800:`#9d174d`,900:`#831843`,950:`#500724`},rose:{50:`#fff1f2`,100:`#ffe4e6`,200:`#fecdd3`,300:`#fda4af`,400:`#fb7185`,500:`#f43f5e`,600:`#e11d48`,700:`#be123c`,800:`#9f1239`,900:`#881337`,950:`#4c0519`},slate:{50:`#f8fafc`,100:`#f1f5f9`,200:`#e2e8f0`,300:`#cbd5e1`,400:`#94a3b8`,500:`#64748b`,600:`#475569`,700:`#334155`,800:`#1e293b`,900:`#0f172a`,950:`#020617`},gray:{50:`#f9fafb`,100:`#f3f4f6`,200:`#e5e7eb`,300:`#d1d5db`,400:`#9ca3af`,500:`#6b7280`,600:`#4b5563`,700:`#374151`,800:`#1f2937`,900:`#111827`,950:`#030712`},zinc:{50:`#fafafa`,100:`#f4f4f5`,200:`#e4e4e7`,300:`#d4d4d8`,400:`#a1a1aa`,500:`#71717a`,600:`#52525b`,700:`#3f3f46`,800:`#27272a`,900:`#18181b`,950:`#09090b`},neutral:{50:`#fafafa`,100:`#f5f5f5`,200:`#e5e5e5`,300:`#d4d4d4`,400:`#a3a3a3`,500:`#737373`,600:`#525252`,700:`#404040`,800:`#262626`,900:`#171717`,950:`#0a0a0a`},stone:{50:`#fafaf9`,100:`#f5f5f4`,200:`#e7e5e4`,300:`#d6d3d1`,400:`#a8a29e`,500:`#78716c`,600:`#57534e`,700:`#44403c`,800:`#292524`,900:`#1c1917`,950:`#0c0a09`}},semantic:{transitionDuration:`0.2s`,focusRing:{width:`1px`,style:`solid`,color:`{primary.color}`,offset:`2px`,shadow:`none`},disabledOpacity:`0.6`,iconSize:`1rem`,anchorGutter:`2px`,primary:{50:`{emerald.50}`,100:`{emerald.100}`,200:`{emerald.200}`,300:`{emerald.300}`,400:`{emerald.400}`,500:`{emerald.500}`,600:`{emerald.600}`,700:`{emerald.700}`,800:`{emerald.800}`,900:`{emerald.900}`,950:`{emerald.950}`,color:`light-dark({primary.500}, {primary.400})`,contrastColor:`light-dark(#ffffff, {surface.900})`,hoverColor:`light-dark({primary.600}, {primary.300})`,activeColor:`light-dark({primary.700}, {primary.200})`},formField:{paddingX:`0.75rem`,paddingY:`0.5rem`,sm:{fontSize:`0.875rem`,paddingX:`0.625rem`,paddingY:`0.375rem`},lg:{fontSize:`1.125rem`,paddingX:`0.875rem`,paddingY:`0.625rem`},borderRadius:`{border.radius.md}`,focusRing:{width:`0`,style:`none`,color:`transparent`,offset:`0`,shadow:`none`},transitionDuration:`{transition.duration}`,background:`light-dark({surface.0}, {surface.950})`,disabledBackground:`light-dark({surface.200}, {surface.700})`,filledBackground:`light-dark({surface.50}, {surface.800})`,filledHoverBackground:`light-dark({surface.50}, {surface.800})`,filledFocusBackground:`light-dark({surface.50}, {surface.800})`,borderColor:`light-dark({surface.300}, {surface.600})`,hoverBorderColor:`light-dark({surface.400}, {surface.500})`,focusBorderColor:`{primary.color}`,invalidBorderColor:`light-dark({red.400}, {red.300})`,color:`light-dark({surface.700}, {surface.0})`,disabledColor:`light-dark({surface.500}, {surface.400})`,placeholderColor:`light-dark({surface.500}, {surface.400})`,invalidPlaceholderColor:`light-dark({red.600}, {red.400})`,floatLabelColor:`light-dark({surface.500}, {surface.400})`,floatLabelFocusColor:`light-dark({primary.600}, {primary.color})`,floatLabelActiveColor:`light-dark({surface.500}, {surface.400})`,floatLabelInvalidColor:`{form.field.invalid.placeholder.color}`,iconColor:`{surface.400}`,shadow:`0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)`,fontWeight:`{typography.font.weight}`,fontSize:`{typography.font.size}`},list:{padding:`0.25rem 0.25rem`,gap:`2px`,header:{padding:`0.5rem 1rem 0.25rem 1rem`},option:{padding:`0.5rem 0.75rem`,borderRadius:`{border.radius.sm}`,focusBackground:`light-dark({surface.100}, {surface.800})`,selectedBackground:`{highlight.background}`,selectedFocusBackground:`{highlight.focus.background}`,color:`{text.color}`,focusColor:`{text.hover.color}`,selectedColor:`{highlight.color}`,selectedFocusColor:`{highlight.focus.color}`,icon:{color:`light-dark({surface.400}, {surface.500})`,focusColor:`light-dark({surface.500}, {surface.400})`},fontWeight:`{typography.font.weight}`,fontSize:`{typography.font.size}`,transitionDuration:`0s`,selectedFontWeight:`{typography.font.weight}`},optionGroup:{padding:`0.5rem 0.75rem`,fontWeight:`600`,background:`transparent`,color:`{text.muted.color}`,fontSize:`{typography.font.size}`}},content:{borderRadius:`{border.radius.md}`,background:`light-dark({surface.0}, {surface.900})`,hoverBackground:`light-dark({surface.100}, {surface.800})`,borderColor:`light-dark({surface.200}, {surface.700})`,color:`{text.color}`,hoverColor:`{text.hover.color}`},mask:{transitionDuration:`0.3s`,background:`light-dark(rgba(0,0,0,0.4), rgba(0,0,0,0.6))`,color:`{surface.200}`},navigation:{list:{padding:`0.25rem 0.25rem`,gap:`2px`},item:{padding:`0.5rem 0.75rem`,borderRadius:`{border.radius.sm}`,gap:`0.5rem`,focusBackground:`light-dark({surface.100}, {surface.800})`,activeBackground:`light-dark({surface.100}, {surface.800})`,color:`{text.color}`,focusColor:`{text.hover.color}`,activeColor:`{text.hover.color}`,icon:{color:`light-dark({surface.400}, {surface.500})`,focusColor:`light-dark({surface.500}, {surface.400})`,activeColor:`light-dark({surface.500}, {surface.400})`,size:`{icon.size}`},label:{fontWeight:`{typography.font.weight}`,fontSize:`{typography.font.size}`},transitionDuration:`0s`},submenuLabel:{padding:`0.5rem 0.75rem`,fontWeight:`600`,background:`transparent`,color:`{text.muted.color}`,fontSize:`{typography.font.size}`},submenuIcon:{size:`0.875rem`,color:`light-dark({surface.400}, {surface.500})`,focusColor:`light-dark({surface.500}, {surface.400})`,activeColor:`light-dark({surface.500}, {surface.400})`}},overlay:{select:{borderRadius:`{border.radius.md}`,shadow:`0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)`,background:`light-dark({surface.0}, {surface.900})`,borderColor:`light-dark({surface.200}, {surface.700})`,color:`{text.color}`},popover:{borderRadius:`{border.radius.md}`,padding:`0.75rem`,shadow:`0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)`,background:`light-dark({surface.0}, {surface.900})`,borderColor:`light-dark({surface.200}, {surface.700})`,color:`{text.color}`},modal:{borderRadius:`{border.radius.xl}`,padding:`1.25rem`,shadow:`0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)`,background:`light-dark({surface.0}, {surface.900})`,borderColor:`light-dark({surface.200}, {surface.700})`,color:`{text.color}`},navigation:{shadow:`0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)`}},surface:{0:`#ffffff`,50:`light-dark({slate.50}, {zinc.50})`,100:`light-dark({slate.100}, {zinc.100})`,200:`light-dark({slate.200}, {zinc.200})`,300:`light-dark({slate.300}, {zinc.300})`,400:`light-dark({slate.400}, {zinc.400})`,500:`light-dark({slate.500}, {zinc.500})`,600:`light-dark({slate.600}, {zinc.600})`,700:`light-dark({slate.700}, {zinc.700})`,800:`light-dark({slate.800}, {zinc.800})`,900:`light-dark({slate.900}, {zinc.900})`,950:`light-dark({slate.950}, {zinc.950})`},highlight:{background:`light-dark({primary.50}, color-mix(in srgb, {primary.400}, transparent 84%))`,focusBackground:`light-dark({primary.100}, color-mix(in srgb, {primary.400}, transparent 76%))`,color:`light-dark({primary.700}, rgba(255,255,255,.87))`,focusColor:`light-dark({primary.800}, rgba(255,255,255,.87))`},text:{color:`light-dark({surface.700}, {surface.0})`,hoverColor:`light-dark({surface.800}, {surface.0})`,mutedColor:`light-dark({surface.500}, {surface.400})`,hoverMutedColor:`light-dark({surface.600}, {surface.300})`},typography:{lineHeight:`normal`,fontFamily:`inherit`,fontWeight:`normal`,fontSize:`1rem`}}};var kr={root:{borderRadius:`{content.border.radius}`}};var Sr={root:{padding:`1rem`,background:`{content.background}`,gap:`0.5rem`,transitionDuration:`{transition.duration}`},item:{color:`{text.muted.color}`,hoverColor:`{text.color}`,borderRadius:`{content.border.radius}`,gap:`{navigation.item.gap}`,icon:{color:`{navigation.item.icon.color}`,hoverColor:`{navigation.item.icon.focus.color}`,size:`{navigation.item.icon.size}`},focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},label:{fontWeight:`{navigation.item.label.font.weight}`,fontSize:`{navigation.item.label.font.size}`}},separator:{color:`{navigation.item.icon.color}`}};var wr={root:{borderRadius:`{form.field.border.radius}`,roundedBorderRadius:`2rem`,gap:`0.5rem`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,iconOnlyWidth:`2.5rem`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`,iconOnlyWidth:`2rem`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`,iconOnlyWidth:`3rem`},label:{fontWeight:`500`},raisedShadow:`0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,offset:`{focus.ring.offset}`},badgeSize:`1rem`,transitionDuration:`{form.field.transition.duration}`,primary:{background:`{primary.color}`,hoverBackground:`{primary.hover.color}`,activeBackground:`{primary.active.color}`,borderColor:`{primary.color}`,hoverBorderColor:`{primary.hover.color}`,activeBorderColor:`{primary.active.color}`,color:`{primary.contrast.color}`,hoverColor:`{primary.contrast.color}`,activeColor:`{primary.contrast.color}`,focusRing:{color:`{primary.color}`,shadow:`none`}},secondary:{background:`light-dark({surface.100}, {surface.800})`,hoverBackground:`light-dark({surface.200}, {surface.700})`,activeBackground:`light-dark({surface.300}, {surface.600})`,borderColor:`light-dark({surface.100}, {surface.800})`,hoverBorderColor:`light-dark({surface.200}, {surface.700})`,activeBorderColor:`light-dark({surface.300}, {surface.600})`,color:`light-dark({surface.600}, {surface.300})`,hoverColor:`light-dark({surface.700}, {surface.200})`,activeColor:`light-dark({surface.800}, {surface.100})`,focusRing:{color:`light-dark({surface.600}, {surface.300})`,shadow:`none`}},info:{background:`light-dark({sky.500}, {sky.400})`,hoverBackground:`light-dark({sky.600}, {sky.300})`,activeBackground:`light-dark({sky.700}, {sky.200})`,borderColor:`light-dark({sky.500}, {sky.400})`,hoverBorderColor:`light-dark({sky.600}, {sky.300})`,activeBorderColor:`light-dark({sky.700}, {sky.200})`,color:`light-dark(#ffffff, {sky.950})`,hoverColor:`light-dark(#ffffff, {sky.950})`,activeColor:`light-dark(#ffffff, {sky.950})`,focusRing:{color:`light-dark({sky.500}, {sky.400})`,shadow:`none`}},success:{background:`light-dark({green.500}, {green.400})`,hoverBackground:`light-dark({green.600}, {green.300})`,activeBackground:`light-dark({green.700}, {green.200})`,borderColor:`light-dark({green.500}, {green.400})`,hoverBorderColor:`light-dark({green.600}, {green.300})`,activeBorderColor:`light-dark({green.700}, {green.200})`,color:`light-dark(#ffffff, {green.950})`,hoverColor:`light-dark(#ffffff, {green.950})`,activeColor:`light-dark(#ffffff, {green.950})`,focusRing:{color:`light-dark({green.500}, {green.400})`,shadow:`none`}},warn:{background:`light-dark({orange.500}, {orange.400})`,hoverBackground:`light-dark({orange.600}, {orange.300})`,activeBackground:`light-dark({orange.700}, {orange.200})`,borderColor:`light-dark({orange.500}, {orange.400})`,hoverBorderColor:`light-dark({orange.600}, {orange.300})`,activeBorderColor:`light-dark({orange.700}, {orange.200})`,color:`light-dark(#ffffff, {orange.950})`,hoverColor:`light-dark(#ffffff, {orange.950})`,activeColor:`light-dark(#ffffff, {orange.950})`,focusRing:{color:`light-dark({orange.500}, {orange.400})`,shadow:`none`}},help:{background:`light-dark({purple.500}, {purple.400})`,hoverBackground:`light-dark({purple.600}, {purple.300})`,activeBackground:`light-dark({purple.700}, {purple.200})`,borderColor:`light-dark({purple.500}, {purple.400})`,hoverBorderColor:`light-dark({purple.600}, {purple.300})`,activeBorderColor:`light-dark({purple.700}, {purple.200})`,color:`light-dark(#ffffff, {purple.950})`,hoverColor:`light-dark(#ffffff, {purple.950})`,activeColor:`light-dark(#ffffff, {purple.950})`,focusRing:{color:`light-dark({purple.500}, {purple.400})`,shadow:`none`}},danger:{background:`light-dark({red.500}, {red.400})`,hoverBackground:`light-dark({red.600}, {red.300})`,activeBackground:`light-dark({red.700}, {red.200})`,borderColor:`light-dark({red.500}, {red.400})`,hoverBorderColor:`light-dark({red.600}, {red.300})`,activeBorderColor:`light-dark({red.700}, {red.200})`,color:`light-dark(#ffffff, {red.950})`,hoverColor:`light-dark(#ffffff, {red.950})`,activeColor:`light-dark(#ffffff, {red.950})`,focusRing:{color:`light-dark({red.500}, {red.400})`,shadow:`none`}},contrast:{background:`light-dark({surface.950}, {surface.0})`,hoverBackground:`light-dark({surface.900}, {surface.100})`,activeBackground:`light-dark({surface.800}, {surface.200})`,borderColor:`light-dark({surface.950}, {surface.0})`,hoverBorderColor:`light-dark({surface.900}, {surface.100})`,activeBorderColor:`light-dark({surface.800}, {surface.200})`,color:`light-dark({surface.0}, {surface.950})`,hoverColor:`light-dark({surface.0}, {surface.950})`,activeColor:`light-dark({surface.0}, {surface.950})`,focusRing:{color:`light-dark({surface.950}, {surface.0})`,shadow:`none`}},fontSize:`{form.field.font.size}`},outlined:{primary:{hoverBackground:`light-dark({primary.50}, color-mix(in srgb, {primary.color}, transparent 96%))`,activeBackground:`light-dark({primary.100}, color-mix(in srgb, {primary.color}, transparent 84%))`,borderColor:`light-dark({primary.200}, {primary.700})`,color:`{primary.color}`},secondary:{hoverBackground:`light-dark({surface.50}, rgba(255,255,255,0.04))`,activeBackground:`light-dark({surface.100}, rgba(255,255,255,0.16))`,borderColor:`light-dark({surface.200}, {surface.700})`,color:`light-dark({surface.500}, {surface.400})`},success:{hoverBackground:`light-dark({green.50}, color-mix(in srgb, {green.400}, transparent 96%))`,activeBackground:`light-dark({green.100}, color-mix(in srgb, {green.400}, transparent 84%))`,borderColor:`light-dark({green.200}, {green.700})`,color:`light-dark({green.500}, {green.400})`},info:{hoverBackground:`light-dark({sky.50}, color-mix(in srgb, {sky.400}, transparent 96%))`,activeBackground:`light-dark({sky.100}, color-mix(in srgb, {sky.400}, transparent 84%))`,borderColor:`light-dark({sky.200}, {sky.700})`,color:`light-dark({sky.500}, {sky.400})`},warn:{hoverBackground:`light-dark({orange.50}, color-mix(in srgb, {orange.400}, transparent 96%))`,activeBackground:`light-dark({orange.100}, color-mix(in srgb, {orange.400}, transparent 84%))`,borderColor:`light-dark({orange.200}, {orange.700})`,color:`light-dark({orange.500}, {orange.400})`},help:{hoverBackground:`light-dark({purple.50}, color-mix(in srgb, {purple.400}, transparent 96%))`,activeBackground:`light-dark({purple.100}, color-mix(in srgb, {purple.400}, transparent 84%))`,borderColor:`light-dark({purple.200}, {purple.700})`,color:`light-dark({purple.500}, {purple.400})`},danger:{hoverBackground:`light-dark({red.50}, color-mix(in srgb, {red.400}, transparent 96%))`,activeBackground:`light-dark({red.100}, color-mix(in srgb, {red.400}, transparent 84%))`,borderColor:`light-dark({red.200}, {red.700})`,color:`light-dark({red.500}, {red.400})`},contrast:{hoverBackground:`light-dark({surface.50}, {surface.800})`,activeBackground:`light-dark({surface.100}, {surface.700})`,borderColor:`light-dark({surface.700}, {surface.500})`,color:`light-dark({surface.950}, {surface.0})`},plain:{hoverBackground:`light-dark({surface.50}, {surface.800})`,activeBackground:`light-dark({surface.100}, {surface.700})`,borderColor:`light-dark({surface.200}, {surface.600})`,color:`light-dark({surface.700}, {surface.0})`}},text:{primary:{hoverBackground:`light-dark({primary.50}, color-mix(in srgb, {primary.color}, transparent 96%))`,activeBackground:`light-dark({primary.100}, color-mix(in srgb, {primary.color}, transparent 84%))`,color:`{primary.color}`},secondary:{hoverBackground:`light-dark({surface.50}, {surface.800})`,activeBackground:`light-dark({surface.100}, {surface.700})`,color:`light-dark({surface.500}, {surface.400})`},success:{hoverBackground:`light-dark({green.50}, color-mix(in srgb, {green.400}, transparent 96%))`,activeBackground:`light-dark({green.100}, color-mix(in srgb, {green.400}, transparent 84%))`,color:`light-dark({green.500}, {green.400})`},info:{hoverBackground:`light-dark({sky.50}, color-mix(in srgb, {sky.400}, transparent 96%))`,activeBackground:`light-dark({sky.100}, color-mix(in srgb, {sky.400}, transparent 84%))`,color:`light-dark({sky.500}, {sky.400})`},warn:{hoverBackground:`light-dark({orange.50}, color-mix(in srgb, {orange.400}, transparent 96%))`,activeBackground:`light-dark({orange.100}, color-mix(in srgb, {orange.400}, transparent 84%))`,color:`light-dark({orange.500}, {orange.400})`},help:{hoverBackground:`light-dark({purple.50}, color-mix(in srgb, {purple.400}, transparent 96%))`,activeBackground:`light-dark({purple.100}, color-mix(in srgb, {purple.400}, transparent 84%))`,color:`light-dark({purple.500}, {purple.400})`},danger:{hoverBackground:`light-dark({red.50}, color-mix(in srgb, {red.400}, transparent 96%))`,activeBackground:`light-dark({red.100}, color-mix(in srgb, {red.400}, transparent 84%))`,color:`light-dark({red.500}, {red.400})`},contrast:{hoverBackground:`light-dark({surface.50}, {surface.800})`,activeBackground:`light-dark({surface.100}, {surface.700})`,color:`light-dark({surface.950}, {surface.0})`},plain:{hoverBackground:`light-dark({surface.50}, {surface.800})`,activeBackground:`light-dark({surface.100}, {surface.700})`,color:`light-dark({surface.700}, {surface.0})`}},link:{color:`{primary.color}`,hoverColor:`{primary.color}`,activeColor:`{primary.color}`}};var Cr={root:{background:`{content.background}`,borderRadius:`{border.radius.xl}`,color:`{content.color}`,shadow:`0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)`},body:{padding:`1.25rem`,gap:`0.5rem`},caption:{gap:`0.5rem`},title:{fontSize:`1.25rem`,fontWeight:`500`},subtitle:{color:`{text.muted.color}`,fontSize:`1.125rem`,fontWeight:`{typography.font.weight}`}};var Nr={root:{transitionDuration:`{transition.duration}`},content:{gap:`0.25rem`},indicatorList:{padding:`1rem`,gap:`0.5rem`},indicator:{width:`2rem`,height:`0.5rem`,borderRadius:`{content.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},background:`light-dark({surface.200}, {surface.700})`,hoverBackground:`light-dark({surface.300}, {surface.600})`,activeBackground:`{primary.color}`}};var Mr={root:{background:`{form.field.background}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,filledHoverBackground:`{form.field.filled.hover.background}`,filledFocusBackground:`{form.field.filled.focus.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.focus.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,color:`{form.field.color}`,disabledColor:`{form.field.disabled.color}`,placeholderColor:`{form.field.placeholder.color}`,invalidPlaceholderColor:`{form.field.invalid.placeholder.color}`,shadow:`{form.field.shadow}`,paddingX:`{form.field.padding.x}`,paddingY:`{form.field.padding.y}`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{form.field.focus.ring.width}`,style:`{form.field.focus.ring.style}`,color:`{form.field.focus.ring.color}`,offset:`{form.field.focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{fontSize:`{form.field.sm.font.size}`,paddingX:`{form.field.sm.padding.x}`,paddingY:`{form.field.sm.padding.y}`},lg:{fontSize:`{form.field.lg.font.size}`,paddingX:`{form.field.lg.padding.x}`,paddingY:`{form.field.lg.padding.y}`},fontWeight:`{form.field.font.weight}`,fontSize:`{form.field.font.size}`},dropdown:{width:`2.5rem`,color:`{form.field.icon.color}`},overlay:{background:`{overlay.select.background}`,borderColor:`{overlay.select.border.color}`,borderRadius:`{overlay.select.border.radius}`,color:`{overlay.select.color}`,shadow:`{overlay.select.shadow}`},list:{padding:`{list.padding}`,gap:`{list.gap}`,mobileIndent:`1rem`},option:{focusBackground:`{list.option.focus.background}`,selectedBackground:`{list.option.selected.background}`,selectedFocusBackground:`{list.option.selected.focus.background}`,color:`{list.option.color}`,focusColor:`{list.option.focus.color}`,selectedColor:`{list.option.selected.color}`,selectedFocusColor:`{list.option.selected.focus.color}`,padding:`{list.option.padding}`,borderRadius:`{list.option.border.radius}`,icon:{color:`{list.option.icon.color}`,focusColor:`{list.option.icon.focus.color}`,size:`0.875rem`},selectedFontWeight:`{list.option.selected.font.weight}`,fontWeight:`{list.option.font.weight}`,fontSize:`{list.option.font.size}`},clearIcon:{color:`{form.field.icon.color}`}};var Er={root:{borderRadius:`{border.radius.sm}`,width:`1.25rem`,height:`1.25rem`,background:`{form.field.background}`,checkedBackground:`{primary.color}`,checkedHoverBackground:`{primary.hover.color}`,disabledBackground:`{form.field.disabled.background}`,filledBackground:`{form.field.filled.background}`,borderColor:`{form.field.border.color}`,hoverBorderColor:`{form.field.hover.border.color}`,focusBorderColor:`{form.field.border.color}`,checkedBorderColor:`{primary.color}`,checkedHoverBorderColor:`{primary.hover.color}`,checkedFocusBorderColor:`{primary.color}`,checkedDisabledBorderColor:`{form.field.border.color}`,invalidBorderColor:`{form.field.invalid.border.color}`,shadow:`{form.field.shadow}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`},transitionDuration:`{form.field.transition.duration}`,sm:{width:`1rem`,height:`1rem`},lg:{width:`1.5rem`,height:`1.5rem`}},icon:{size:`0.875rem`,color:`{form.field.color}`,checkedColor:`{primary.contrast.color}`,checkedHoverColor:`{primary.contrast.color}`,disabledColor:`{form.field.disabled.color}`,sm:{size:`0.75rem`},lg:{size:`1rem`}}};var Ir={root:{borderRadius:`16px`,paddingX:`0.75rem`,paddingY:`0.5rem`,gap:`0.5rem`,transitionDuration:`{transition.duration}`,background:`light-dark({surface.100}, {surface.800})`,color:`light-dark({surface.800}, {surface.0})`,focusBackground:`light-dark({surface.200}, {surface.700})`},image:{width:`2rem`,height:`2rem`},icon:{size:`1rem`,color:`light-dark({surface.800}, {surface.0})`},removeIcon:{size:`1rem`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{form.field.focus.ring.shadow}`},color:`light-dark({surface.800}, {surface.0})`},label:{fontWeight:`{typography.font.weight}`,fontSize:`0.875rem`}};var Tr={root:{transitionDuration:`{transition.duration}`},preview:{width:`1.5rem`,height:`1.5rem`,borderRadius:`{form.field.border.radius}`,focusRing:{width:`{focus.ring.width}`,style:`{focus.ring.style}`,color:`{focus.ring.color}`,offset:`{focus.ring.offset}`,shadow:`{focus.ring.shadow}`}},panel:{shadow:`{overlay.popover.shadow}`,borderRadius:`{overlay.popover.borderRadius}`,background:`light-dark({surface.800}, {surface.900})`,borderColor:`light-dark({surface.900}, {surface.700})`},handle:{color:`{surface.0}`}};var Dr={root:{background:`{content.background}`,borderColor:`{content.border.color}`,borderRadius:`{content.border.radius}`,height:`28.625rem`},header:{padding:`0.375rem 1.25rem`,background:`{content.background}`,borderColor:`{content.border.color}`},input:{padding:`0.375rem 0`,fontSize:`1.125rem`,fontWeight:`{typography.font.weight}`,color:`{form.field.color}`,placeholderColor:`{form.field.placeholder.color}`},list:{padding:`0.375rem`},empty:{padding:`2.25rem 0`,color:`{content.color}`},footer:{padding:`0.75rem 1.25rem`,background:`{content.background}`,borderColor:`{content.border.color}`}};var Rr={root:{borderRadius:`{content.border.radius}`},handle:{background:`{content.background}`,size:`1px`},indicator:{size:`1.75rem`,background:`{content.background}`,borderRadius:`{content.border.radius}`,focusRing:{width:`2px`,style:`solid`,color:`{content.background}`,offset:`2px`},icon:{color:`{text.muted.color}`,size:`{icon.size}`}}};var Br={icon:{size:`2rem`,color:`{overlay.modal.color}`},content:{gap:`1rem`},message:{color:`{content.color}`,fontWeight:`{typography.font.weight}`,fontSize:`{typography.font.size}`}};var Fr={root:{background:`{overlay.popover.background}`,borderColor:`{overlay.popover.border.color}`,color:`{overlay.popover.color}`,borderRadius:`{overlay.popover.border.radius}`,shadow:`{overlay.popover.shadow}`,gutter:`10px`,arrowOffset:`1.25rem`},content:{padding:`{overlay.popover.padding}`,gap:`1rem`},icon:{size:`1.5rem`,color:`{overlay.popover.color}`},footer:{gap:`0.5rem`,padding:`0 {overlay.popover.padding} {overlay.popover.padding} {overlay.popover.padding}`},message:{color:`{content.color}`,fontWeight:`{typography.font.weight}`,fontSize:`{typography.font.size}`}};var Pr={root:{background:`{content.background}`,borderColor:`{content.border.color}`,color:`{content.color}`,borderRadius:`{content.border.radius}`,shadow:`{overlay.navigation.shadow}`,transitionDuration:`{transition.duration}`},list:{padding:`{navigation.list.padding}`,gap:`{navigation.list.gap}`},item:{focusBackground:`{navigation.item.focus.background}`,activeBackground:`{navigation.item.active.background}`,color:`{navigation.item.color}`,focusColor:`{navigation.item.focus.color}`,activeColor:`{navigation.item.active.color}`,padding:`{navigation.item.padding}`,borderRadius:`{navigation.item.border.radius}`,gap:`{navigation.item.gap}`,icon:{color:`{navigation.item.icon.color}`,focusColor:`{navigation.item.icon.focus.color}`,activeColor:`{navigation.item.icon.active.color}`,size:`{navigation.item.icon.size}`},label:{fontWeight:`{navigation.item.label.font.weight}`,fontSize:`{navigation.item.label.font.size}`}},submenu:{mobileIndent:`1rem`},submenuIcon:{size:`{navigation.submenu.icon.size}`,color:`{navigation.submenu.icon.color}`,focusColor:`{navigation.submenu.icon.focus.color}`,activeColor:`{navigation.submenu.icon.active.color}`},separator:{borderColor:`{content.border.color}`},submenuLabel:{padding:`{navigation.submenu.label.padding}`,fontWeight:`{navigation.submenu.label.font.weight}`,fontSize:`{navigation.submenu.label.font.size}`,background:`{navigation.submenu.label.background}`,color:`{navigation.submenu.label.color}`}};var zr=`
|
|
2246
2246
|
li.p-autocomplete-option,
|
|
2247
2247
|
div.p-cascadeselect-option-content,
|
|
2248
2248
|
li.p-listbox-option,
|
|
@@ -2278,4 +2278,4 @@ select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) optio
|
|
|
2278
2278
|
.p-treetable-mask.p-overlay-mask {
|
|
2279
2279
|
--px-mask-background: light-dark(rgba(255,255,255,0.5),rgba(0,0,0,0.3));
|
|
2280
2280
|
}
|
|
2281
|
-
`};var ss={loader:{mask:{background:`{content.background}`,color:`{text.muted.color}`},icon:{size:`2rem`}}};var zh=Object.defineProperty;var Ah=Object.defineProperties;var Oh=Object.getOwnPropertyDescriptors;var ds=Object.getOwnPropertySymbols;var Lh=Object.prototype.hasOwnProperty;var Vh=Object.prototype.propertyIsEnumerable;var ls=(o,a,e)=>a in o?zh(o,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[a]=e;var cs;var ms=(cs=((o,a)=>{for(var e in a||(a={}))Lh.call(a,e)&&ls(o,e,a[e]);if(ds)for(var e of ds(a))Vh.call(a,e)&&ls(o,e,a[e]);return o})({},_r),Ah(cs,Oh({components:{accordion:hr,autocomplete:vr,avatar:yr,badge:xr,blockui:kr,breadcrumb:Sr,button:wr,card:Cr,carousel:Nr,cascadeselect:Mr,checkbox:Er,chip:Ir,colorpicker:Tr,commandmenu:Dr,compare:Rr,confirmdialog:Br,confirmpopup:Fr,contextmenu:Pr,datatable:Ar,dataview:Or,datepicker:Lr,dialog:Vr,divider:Hr,dock:jr,drawer:Wr,editor:Ur,fieldset:$r,fileupload:qr,floatlabel:Kr,galleria:Gr,gallery:Yr,iconfield:Xr,iftalabel:Zr,image:Qr,imagecompare:Jr,inlinemessage:ei,inplace:ti,inputchips:ni,inputcolor:oi,inputgroup:ai,inputnumber:ri,inputotp:ii,inputtags:si,inputtext:di,knob:li,label:ci,listbox:mi,megamenu:ui,menu:fi,menubar:pi,message:bi,metergroup:gi,multiselect:hi,navigationmenu:vi,orderlist:yi,organizationchart:xi,overlaybadge:_i,paginator:ki,panel:Si,panelmenu:wi,password:Ci,picklist:Ni,popover:Mi,progressbar:Ei,progressspinner:Ii,radiobutton:Ti,rating:Di,ripple:Ri,scrollarea:Bi,scrollpanel:Fi,select:Pi,selectbutton:zi,sidebar:Ai,skeleton:Oi,slider:Li,speeddial:Vi,splitbutton:Hi,splitter:ji,stepper:Wi,steps:Ui,tabmenu:$i,tabs:qi,tabview:Ki,tag:Gi,terminal:Yi,textarea:Xi,tieredmenu:Zi,timeline:Qi,toast:Ji,togglebutton:es,toggleswitch:ts,toolbar:ns,tooltip:os,tree:as,treeselect:rs,treetable:is,virtualscroller:ss},css:zr})));var us=(o,...a)=>vc$1(o,...a);var Hh=`@`;var jh=(()=>{class o{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;scheduler=null;injector=E$2(le$1);loadingSchedulerFn=E$2(Wh,{optional:!0});_engine;constructor(e,t,n,r,i){this.doc=e,this.delegate=t,this.zone=n,this.animationType=r,this.moduleImpl=i}ngOnDestroy(){this._engine?.flush()}loadImpl(){let e=()=>this.moduleImpl??import(`./chunk-
|
|
2281
|
+
`};var ss={loader:{mask:{background:`{content.background}`,color:`{text.muted.color}`},icon:{size:`2rem`}}};var zh=Object.defineProperty;var Ah=Object.defineProperties;var Oh=Object.getOwnPropertyDescriptors;var ds=Object.getOwnPropertySymbols;var Lh=Object.prototype.hasOwnProperty;var Vh=Object.prototype.propertyIsEnumerable;var ls=(o,a,e)=>a in o?zh(o,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[a]=e;var cs;var ms=(cs=((o,a)=>{for(var e in a||(a={}))Lh.call(a,e)&&ls(o,e,a[e]);if(ds)for(var e of ds(a))Vh.call(a,e)&&ls(o,e,a[e]);return o})({},_r),Ah(cs,Oh({components:{accordion:hr,autocomplete:vr,avatar:yr,badge:xr,blockui:kr,breadcrumb:Sr,button:wr,card:Cr,carousel:Nr,cascadeselect:Mr,checkbox:Er,chip:Ir,colorpicker:Tr,commandmenu:Dr,compare:Rr,confirmdialog:Br,confirmpopup:Fr,contextmenu:Pr,datatable:Ar,dataview:Or,datepicker:Lr,dialog:Vr,divider:Hr,dock:jr,drawer:Wr,editor:Ur,fieldset:$r,fileupload:qr,floatlabel:Kr,galleria:Gr,gallery:Yr,iconfield:Xr,iftalabel:Zr,image:Qr,imagecompare:Jr,inlinemessage:ei,inplace:ti,inputchips:ni,inputcolor:oi,inputgroup:ai,inputnumber:ri,inputotp:ii,inputtags:si,inputtext:di,knob:li,label:ci,listbox:mi,megamenu:ui,menu:fi,menubar:pi,message:bi,metergroup:gi,multiselect:hi,navigationmenu:vi,orderlist:yi,organizationchart:xi,overlaybadge:_i,paginator:ki,panel:Si,panelmenu:wi,password:Ci,picklist:Ni,popover:Mi,progressbar:Ei,progressspinner:Ii,radiobutton:Ti,rating:Di,ripple:Ri,scrollarea:Bi,scrollpanel:Fi,select:Pi,selectbutton:zi,sidebar:Ai,skeleton:Oi,slider:Li,speeddial:Vi,splitbutton:Hi,splitter:ji,stepper:Wi,steps:Ui,tabmenu:$i,tabs:qi,tabview:Ki,tag:Gi,terminal:Yi,textarea:Xi,tieredmenu:Zi,timeline:Qi,toast:Ji,togglebutton:es,toggleswitch:ts,toolbar:ns,tooltip:os,tree:as,treeselect:rs,treetable:is,virtualscroller:ss},css:zr})));var us=(o,...a)=>vc$1(o,...a);var Hh=`@`;var jh=(()=>{class o{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;scheduler=null;injector=E$2(le$1);loadingSchedulerFn=E$2(Wh,{optional:!0});_engine;constructor(e,t,n,r,i){this.doc=e,this.delegate=t,this.zone=n,this.animationType=r,this.moduleImpl=i}ngOnDestroy(){this._engine?.flush()}loadImpl(){let e=()=>this.moduleImpl??import(`./chunk-CzCMpdYW.js`).then(n=>n),t;return this.loadingSchedulerFn?t=this.loadingSchedulerFn(e):t=e(),t.catch(n=>{throw new _$1(5300,!1)}).then(({ɵcreateEngine:n,ɵAnimationRendererFactory:r})=>{this._engine=n(this.animationType,this.doc);let i=new r(this.delegate,this._engine,this.zone);return this.delegate=i,i})}createRenderer(e,t){let n=this.delegate.createRenderer(e,t);if(n.ɵtype===0)return n;Ec$1(n);let r=new Ln(n);return t?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(i=>{let u=i.createRenderer(e,t);r.use(u),this.scheduler??=this.injector.get(Te$4,null,{optional:!0}),this.scheduler?.notify(10)}).catch(i=>{r.use(n)}),r}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}componentReplaced(e){this._engine?.flush(),this.delegate.componentReplaced?.(e)}static ɵfac=function(t){eD()};static ɵprov=ue$2({token:o,factory:o.ɵfac})}return o})();var Ln=class{delegate;replay=[];ɵtype=1;constructor(a){this.delegate=a}use(a){if(this.delegate=a,this.replay!==null){for(let e of this.replay)e(a);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(a,e){return this.delegate.createElement(a,e)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}get destroyNode(){return this.delegate.destroyNode}appendChild(a,e){this.delegate.appendChild(a,e)}insertBefore(a,e,t,n){this.delegate.insertBefore(a,e,t,n)}removeChild(a,e,t,n){this.delegate.removeChild(a,e,t,n)}selectRootElement(a,e){return this.delegate.selectRootElement(a,e)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,e,t,n){this.delegate.setAttribute(a,e,t,n)}removeAttribute(a,e,t){this.delegate.removeAttribute(a,e,t)}addClass(a,e){this.delegate.addClass(a,e)}removeClass(a,e){this.delegate.removeClass(a,e)}setStyle(a,e,t,n){this.delegate.setStyle(a,e,t,n)}removeStyle(a,e,t){this.delegate.removeStyle(a,e,t)}setProperty(a,e,t){this.shouldReplay(e)&&this.replay.push(n=>n.setProperty(a,e,t)),this.delegate.setProperty(a,e,t)}setValue(a,e){this.delegate.setValue(a,e)}listen(a,e,t,n){return this.shouldReplay(e)&&this.replay.push(r=>r.listen(a,e,t,n)),this.delegate.listen(a,e,t,n)}shouldReplay(a){return this.replay!==null&&a.startsWith(Hh)}};var Wh=new x$3(``);function fs(o=`animations`){return Ie$2(`NgAsyncAnimations`),Ho$2([{provide:Fr$2,useFactory:()=>new jh(E$2(ei$3),E$2(pr$1),E$2(Q$1),o)},{provide:Ty,useValue:o===`noop`?`NoopAnimations`:`BrowserAnimations`}])}var Uh=us(ms,{semantic:{typography:{lineHeight:`1.5`}},components:{panel:{colorScheme:{light:{root:{borderRadius:`0`},header:{padding:`.5rem`}}}},dialog:{content:{padding:`{overlay.modal.padding}`},title:{fontSize:`1.15rem`}},button:{colorScheme:{light:{root:{secondary:{background:`#dfeffc`,hoverBackground:`#dfeffc`,borderColor:`#dfeffc`,activeBackground:`#dfeffc`,activeBorderColor:`#dfeffc`,hoverBorderColor:`#dfeffc`,color:`#367cb8`,hoverColor:`#367cb8`},primary:{background:`#89b03e`,hoverBackground:`#89b03e`,borderColor:`#89b03e`,activeBackground:`#89b03e`,activeBorderColor:`#89b03e`,hoverBorderColor:`#89b03e`},info:{background:`#005cbb`,hoverBackground:`#005cbb`,borderColor:`#005cbb`,activeBackground:`#005cbb`,activeBorderColor:`#005cbb`,hoverBorderColor:`#005cbb`}}}}},card:{root:{borderRadius:`4px`}},stepper:{stepTitle:{fontSize:`0.875rem`}},menu:{item:{label:{fontSize:`0.875rem`,fontWeight:`300`}}}}});var Vn={providers:[fs(),Ha$2(pr),Pa$2(La$3(),Va$3(),xa$3([pt$1,br])),Ah$1({positionClass:`toast-bottom-right`,preventDuplicates:!0,toastComponent:gr}),Gl(()=>Jl(e.firebaseConfig)),lh(()=>dh()),Ma(`/ngsw-worker.js`,{enabled:!Q1(),updateViaCache:`none`,registrationStrategy:`registerWhenStable:30000`}),ad$1({theme:{preset:Uh,options:{darkModeSelector:`none`}},license:e.PRIMEUI_LICENSE_KEY}),Ul,{provide:Ht$3,useValue:`/`}]};ua$3(Ta,G$1(F$3({},Vn),{providers:[B1(),...Vn.providers]})).catch(o=>console.error(o));export{F$2 as C,y$2 as D,u$1 as E,e as S,r$1 as T,W$1 as _,In$1 as a,Z$1 as b,qt$1 as c,F$1 as d,T$3 as f,Jt$1 as g,Fa$2 as h,Te$1 as i,xt$1 as l,Ba$1 as m,ht as n,Rt$1 as o,U$1 as p,or$1 as r,Wt$1 as s,Le$1 as t,Sh as u,Xt$1 as v,l as w,eu$1 as x,Ya$2 as y};
|