1var MT=Object.defineProperty,TT=Object.defineProperties,DT=Object.getOwnPropertyDescriptors,Yw=Object.getOwnPropertySymbols,ET=Object.prototype.hasOwnProperty,CT=Object.prototype.propertyIsEnumerable,Bw=(_t,Ue,b)=>Ue in _t?MT(_t,Ue,{enumerable:!0,configurable:!0,writable:!0,value:b}):_t[Ue]=b,Qy=(_t,Ue)=>{for(var b in Ue||(Ue={}))ET.call(Ue,b)&&Bw(_t,b,Ue[b]);if(Yw)for(var b of Yw(Ue))CT.call(Ue,b)&&Bw(_t,b,Ue[b]);return _t},Jy=(_t,Ue)=>TT(_t,DT(Ue));(self.webpackChunkngPorchFest=self.webpackChunkngPorchFest||[]).push([[179],{2313:(_t,Ue,b)=>{"use strict";b.d(Ue,{nm:()=>_r});var h=b(4976),v=(b(5e3),b(3692),b(259),b(5861)),C=b(6881),q=b(4859),te=b(2090),_e=b(1877);const re=new Map,we={activated:!1,tokenObservers:[]},be={initialized:!1,enabled:!1};function ke(Nt){return re.get(Nt)||Object.assign({},we)}function Ye(){return be}class ze{constructor(Ft,$t,cn,Un,Mi){if(this.operation=Ft,this.retryPolicy=$t,this.getWaitDuration=cn,this.lowerBound=Un,this.upperBound=Mi,this.pending=null,this.nextErrorWaitInterval=Un,Un>Mi)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(Ft){var $t=this;return(0,v.Z)(function*(){$t.stop();try{$t.pending=new te.BH,yield function Re(Nt){return new Promise(Ft=>{setTimeout(Ft,Nt)})}($t.getNextRun(Ft)),$t.pending.resolve(),yield $t.pending.promise,$t.pending=new te.BH,yield $t.operation(),$t.pending.resolve(),yield $t.pending.promise,$t.process(!0).catch(()=>{})}catch(cn){$t.retryPolicy(cn)?$t.process(!1).catch(()=>{}):$t.stop()}})()}getNextRun(Ft){if(Ft)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{const $t=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),$t}}}const Fe=new te.LL("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.",throttled:"Requests throttled due to {$httpStatus} error. Attempts allowed again after {$time}"});function gt(Nt){if(!ke(Nt).activated)throw Fe.create("use-before-activation",{appName:Nt.name})}function mn(Nt,Ft){return jn.apply(this,arguments)}function jn(){return(jn=(0,v.Z)(function*({url:Nt,body:Ft},$t){const cn={"Content-Type":"application/json"},Un=$t.getImmediate({optional:!0});if(Un){const Ar=yield Un.getHeartbeatsHeader();Ar&&(cn["X-Firebase-Client"]=Ar)}const Mi={method:"POST",body:JSON.stringify(Ft),headers:cn};let Fi,oi;try{Fi=yield fetch(Nt,Mi)}catch(Ar){throw Fe.create("fetch-network-error",{originalErrorMessage:null==Ar?void 0:Ar.message})}if(200!==Fi.status)throw Fe.create("fetch-status-error",{httpStatus:Fi.status});try{oi=yield Fi.json()}catch(Ar){throw Fe.create("fetch-parse-error",{originalErrorMessage:null==Ar?void 0:Ar.message})}const Gi=oi.ttl.match(/^([\d.]+)(s)$/);if(!Gi||!Gi[2]||isNaN(Number(Gi[1])))throw Fe.create("fetch-parse-error",{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${oi.ttl}`});const Jr=1e3*Number(Gi[1]),io=Date.now();return{token:oi.token,expireTimeMillis:io+Jr,issuedAtTimeMillis:io}})).apply(this,arguments)}function Mn(Nt,Ft){const{projectId:$t,appId:cn,apiKey:Un}=Nt.options;return{url:`https://content-firebaseappcheck.googleapis.com/v1/projects/${$t}/apps/${cn}
1:exchangeDebugToken?key=${Un}`,body:{debug_token:Ft}}}const vn="firebase-app-check-store";let Mt=null;function it(){return Mt||(Mt=new Promise((Nt,Ft)=>{try{const $t=indexedDB.open("firebase-app-check-database",1);$t.onsuccess=cn=>{Nt(cn.target.result)},$t.onerror=cn=>{var Un;Ft(Fe.create("storage-open",{originalErrorMessage:null===(Un=cn.target.error)||void 0===Un?void 0:Un.message}))},$t.onupgradeneeded=cn=>{0===cn.oldVersion&&cn.target.result.createObjectStore(vn,{keyPath:"compositeKey"})}}catch($t){Ft(Fe.create("storage-open",{originalErrorMessage:null==$t?void 0:$t.message}))}}),Mt)}function Ut(){return(Ut=(0,v.Z)(function*(Nt,Ft){const cn=(yield it()).transaction(vn,"readwrite"),Mi=cn.objectStore(vn).put({compositeKey:Nt,value:Ft});return new Promise((Fi,oi)=>{Mi.onsuccess=Gi=>{Fi()},cn.onerror=Gi=>{var Jr;oi(Fe.create("storage-set",{originalErrorMessage:null===(Jr=Gi.target.error)||void 0===Jr?void 0:Jr.message}))}})})).apply(this,arguments)}const pi=new _e.Yd("@firebase/app-check");function Vn(Nt,Ft){return(0,te.hl)()?function ct(Nt,Ft){return function ft(Nt,Ft){return Ut.apply(this,arguments)}(function bn(Nt){return`${Nt.options.appId}-${Nt.name}`}(Nt),Ft)}(Nt,Ft).catch($t=>{pi.warn(`Failed to write token to IndexedDB. Error: ${$t}`)}):Promise.resolve()}function Pt(){return Ye().enabled}function $(){return ue.apply(this,arguments)}function ue(){return(ue=(0,v.Z)(function*(){const Nt=Ye();if(Nt.enabled&&Nt.token)return Nt.token.promise;throw Error("\n Can't get debug token in production mode.\n ")})).apply(this,arguments)}const ae={error:"UNKNOWN_ERROR"};function Me(Nt){return te.US.encodeString(JSON.stringify(Nt),!1)}function nt(Nt){return Tt.apply(this,arguments)}function Tt(){return(Tt=(0,v.Z)(function*(Nt,Ft=!1){const $t=Nt.app;gt($t);const cn=ke($t);let Mi,Un=cn.token;if(Un&&!Qn(Un)&&(cn.token=void 0,Un=void 0),!Un){const Gi=yield cn.cachedTokenPromise;Gi&&(Qn(Gi)?Un=Gi:yield Vn($t,void 0))}if(!Ft&&Un&&Qn(Un))return{token:Un.token};let oi,Fi=!1;if(Pt()){cn.exchangeTokenPromise||(cn.exchangeTokenPromise=mn(Mn($t,yield $()),Nt.heartbeatServiceProvider).finally(()=>{cn.exchangeTokenPromise=void 0}),Fi=!0);const Gi=yield cn.exchangeTokenPromise;return yield Vn($t,Gi),cn.token=Gi,{token:Gi.token}}try{cn.exchangeTokenPromise||(cn.exchangeTokenPromise=cn.provider.getToken().finally(()=>{cn.exchangeTokenPromise=void 0}),Fi=!0),Un=yield ke($t).exchangeTokenPromise}catch(Gi){"appCheck/throttled"===Gi.code?pi.warn(Gi.message):pi.error(Gi),Mi=Gi}return Un?Mi?oi=Qn(Un)?{token:Un.token,internalError:Mi}:lt(Mi):(oi={token:Un.token},cn.token=Un,yield Vn($t,Un)):oi=lt(Mi),Fi&&ni($t,oi),oi})).apply(this,arguments)}function Yt(){return(Yt=(0,v.Z)(function*(Nt){const Ft=Nt.app;gt(Ft);const{provider:$t}=ke(Ft);if(Pt()){const cn=yield $(),{token:Un}=yield mn(Mn(Ft,cn),Nt.heartbeatServiceProvider);return{token:Un}}{const{token:cn}=yield $t.getToken();return{token:cn}}})).apply(this,arguments)}function Cn(Nt,Ft){const $t=ke(Nt),cn=$t.tokenObservers.filter(Un=>Un.next!==Ft);0===cn.length&&$t.tokenRefresher&&$t.tokenRefresher.isRunning()&&$t.tokenRefresher.stop(),$t.tokenObservers=cn}function Nn(Nt){const{app:Ft}=Nt,$t=ke(Ft);let cn=$t.tokenRefresher;cn||(cn=function Si(Nt){const{app:Ft}=Nt;return new ze((0,v.Z)(function*(){let cn;if(cn=ke(Ft).token?yield nt(Nt,!0):yield nt(Nt),cn.error)throw cn.error;if(cn.internalError)throw cn.internalError}),()=>!0,()=>{const $t=ke(Ft);if($t.token){let cn=$t.token.issuedAtTimeMillis+.5*($t.token.expireTimeMillis-$t.token.issuedAtTimeMillis)+3e5;return cn=Math.min(cn,$t.token.expireTimeMillis-3e5),Math.max(0,cn-Date.now())}return 0},3e4,96e4)}(Nt),$t.tokenRefresher=cn),!cn.isRunning()&&$t.isTokenAutoRefreshEnabled&&cn.start()}function ni(Nt,Ft){const $t=ke(Nt).tokenObservers;for(const cn of $t)try{"EXTERNAL"===cn.type&&null!=Ft.error?cn.error(Ft.error):cn.next(Ft)}catch(Un){}}function Qn(Nt){return Nt.expireTimeMillis-Date.now()>0}function lt(Nt){return{token:Me(ae),error:Nt}}class Qt{constructor(Ft,$t){this.app=Ft,this.heartbeatServiceProvider=$t}_delete(){const{tokenObservers:Ft}=ke(this.app);for(const $t of Ft)Cn(this.app,$t.next);return Promise.resolve()}}const fn="app-check-internal";!function zn(){(0,C._registerComponent)(new q.wA("app-check",Nt=>function Se(Nt,Ft){return new Qt(Nt,Ft)}(Nt.getProvider("app").getImmediate(),Nt.getProvider("heartbeat")),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((Nt,Ft,$t)=>{Nt.getProvider(fn).initialize()})),(0,C._registerComponent)(new q.wA(fn,Nt=>function Ke(Nt){return{getToken:Ft=>nt(Nt,Ft),getLimitedUseToken:()=>function Zt(Nt){return Yt.apply(this,arguments)}(Nt),addTokenListener:Ft=>function Pn(Nt,Ft,$t,cn){const{app:Un}=Nt,Mi=ke(Un);if(Mi.tokenObservers=[...Mi.tokenObservers,{next:$t,error:cn,type:Ft}],Mi.token&&Qn(Mi.token)){const oi=Mi.token;Promise.resolve().then(()=>{$t({token:oi.token}),Nn(Nt)}
1).catch(()=>{})}Mi.cachedTokenPromise.then(()=>Nn(Nt))}(Nt,"INTERNAL",Ft),removeTokenListener:Ft=>Cn(Nt.app,Ft)}}(Nt.getProvider("app-check").getImmediate()),"PUBLIC").setInstantiationMode("EXPLICIT")),(0,C.registerVersion)("@firebase/app-check","0.8.0")}();class _r{constructor(){return(0,h.vb)("app-check")}}"undefined"!=typeof window&&window},3692:(_t,Ue,b)=>{"use strict";b.d(Ue,{Ot:()=>k,ZF:()=>Te,hX:()=>ke,z6:()=>v});var h=b(259),s=b(5e3),m=b(4976);class k{constructor(ze){return ze}}class v{constructor(){return(0,h.C6)()}}const te=new s.OlP("angularfire2._apps"),_e={provide:k,useFactory:function q(ut){return ut&&1===ut.length?ut[0]:new k((0,h.Mq)())},deps:[[new s.FiY,te]]},re={provide:v,deps:[[new s.FiY,te]]};function we(ut){return(ze,Re)=>{const tt=ze.runOutsideAngular(()=>ut(Re));return new k(tt)}}let be=(()=>{class ut{constructor(Re){(0,h.KN)("angularfire",m.q4.full,"core"),(0,h.KN)("angularfire",m.q4.full,"app"),(0,h.KN)("angular",s.q4F.full,Re.toString())}}return ut.\u0275fac=function(Re){return new(Re||ut)(s.LFG(s.Lbi))},ut.\u0275mod=s.oAB({type:ut}),ut.\u0275inj=s.cJS({providers:[_e,re]}),ut})();function ke(ut,...ze){return{ngModule:be,providers:[{provide:te,useFactory:we(ut),multi:!0,deps:[s.R0b,s.zs3,m.HU,...ze]}]}}const Te=(0,m.u3)(h.ZF,!0)}
1,751:(_t,Ue,b)=>{"use strict";b.d(Ue,{gx:()=>$e,fD:()=>me,Xb:()=>Mn,v0:()=>Dt,AR:()=>Fe,w$:()=>ue,LS:()=>K,e5:()=>Yt,w7:()=>ni});var h=b(4976),s=b(5e3),m=b(3692),k=b(259),v=b(2313),C=b(1389),we=(b(2090),b(6881),b(1877),b(4859),b(8306));function be(mt){return new we.y(function(yn){return{unsubscribe:(0,C.x)(mt,yn.next.bind(yn),yn.error.bind(yn),yn.complete.bind(yn))}})}class $e{constructor(yn){return yn}}const je=new s.OlP("angularfire2.auth-instances");function ut(mt){return(yn,ei)=>{const ht=yn.runOutsideAngular(()=>mt(ei));return new $e(ht)}}const ze={provide:class Te{constructor(){return(0,h.vb)("auth")}},deps:[[new s.FiY,je]]},Re={provide:$e,useFactory:function zt(mt,yn){const ei=(0,h.JM)("auth",mt,yn);return ei&&new $e(ei)},deps:[[new s.FiY,je],m.Ot]};let tt=(()=>{class mt{constructor(){(0,k.KN)("angularfire",h.q4.full,"auth")}}return mt.\u0275fac=function(ei){return new(ei||mt)},mt.\u0275mod=s.oAB({type:mt}),mt.\u0275inj=s.cJS({providers:[Re,ze]}),mt})();function Fe(mt,...yn){return{ngModule:tt,providers:[{provide:je,useFactory:ut(mt),multi:!0,deps:[s.R0b,s.zs3,h.HU,m.z6,[new s.FiY,v.nm],...yn]}]}}const me=(0,h.u3)(be,!0),Mn=(0,h.u3)(C.a8,!0),Dt=(0,h.u3)(C.o,!0),ue=(0,h.u3)(C.ae,!0),K=(0,h.u3)(C.a3,!0),Yt=(0,h.u3)(C.a9,!0),ni=(0,h.u3)(C.B,!0)},1205:(_t,Ue,b)=>{"use strict";b.d(Ue,{zQ:()=>en,ww:()=>Wn,rT:()=>Bt,f7:()=>mn,L6:()=>me,_Q:()=>gt,lh:()=>pn,Qv:()=>Fe,nw:()=>jn});var h=b(5e3),s=b(7579),m=b(9646),k=b(8306),v=b(8996),C=b(6451),q=b(5363),te=b(3900),_e=b(4004),re=b(6063);class we extends s.x{constructor(Bn=1/0,Dn=1/0,vn=re.l){super(),this._bufferSize=Bn,this._windowTime=Dn,this._timestampProvider=vn,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=Dn===1/0,this._bufferSize=Math.max(1,Bn),this._windowTime=Math.max(1,Dn)}next(Bn){const{isStopped:Dn,_buffer:vn,_infiniteTimeWindow:Dt,_timestampProvider:Mt,_windowTime:it}=this;Dn||(vn.push(Bn),!Dt&&vn.push(Mt.now()+it)),this._trimBuffer(),super.next(Bn)}_subscribe(Bn){this._throwIfClosed(),this._trimBuffer();const Dn=this._innerSubscribe(Bn),{_infiniteTimeWindow:vn,_buffer:Dt}=this,Mt=Dt.slice();for(let it=0;it<Mt.length&&!Bn.closed;it+=vn?1:2)Bn.next(Mt[it]);return this._checkFinalizedStatuses(Bn),Dn}_trimBuffer(){const{_bufferSize:Bn,_timestampProvider:Dn,_buffer:vn,_infiniteTimeWindow:Dt}=this,Mt=(Dt?1:2)*Bn;if(Bn<1/0&&Mt<vn.length&&vn.splice(0,vn.length-Mt),!Dt){const it=Dn.now();let At=0;for(let ct=1;ct<vn.length&&vn[ct]<=it;ct+=2)At=ct;At&&vn.splice(0,At+1)}}}var be=b(3099);function ke(Mn,Bn,Dn){let vn,Dt=!1;return Mn&&"object"==typeof Mn?({bufferSize:vn=1/0,windowTime:Bn=1/0,refCount:Dt=!1,scheduler:Dn}=Mn):vn=null!=Mn?Mn:1/0,(0,be.B)({connector:()=>new we(vn,Bn,Dn),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:Dt})}var Ze=b(590),Ye=b(576);function $e(Mn,Bn){return(0,Ye.m)(Bn)?(0,te.w)(()=>Mn,Bn):(0,te.w)(()=>Mn)}var Te=b(9468),rt=b(9300),je=b(4976),zt=b(2011),ut=b(9808),ze=b(2313),Re=b(9260);const Fe=new h.OlP("angularfire2.auth.use-emulator"),me=new h.OlP("angularfire2.auth.settings"),gt=new h.OlP("angularfire2.auth.tenant-id"),Bt=new h.OlP("angularfire2.auth.langugage-code"),pn=new h.OlP("angularfire2.auth.use-device-language"),mn=new h.OlP("angularfire.auth.persistence"),jn=(Mn,Bn,Dn,vn,Dt,Mt,it,At)=>(0,zt.cc)(`${Mn.name}.auth`,"AngularFireAuth",Mn.name,()=>{const ct=Bn.runOutsideAngular(()=>Mn.auth());if(Dn&&ct.useEmulator(...Dn),vn&&(ct.tenantId=vn),ct.languageCode=Dt,Mt&&ct.useDeviceLanguage(),it)for(const[st,vt]of Object.entries(it))ct.settings[st]=vt;return At&&ct.setPersistence(At),ct},[Dn,vn,Dt,Mt,it,At]);let en=(()=>{class Mn{constructor(Dn,vn,Dt,Mt,it,At,ct,st,vt,ft,Ut,tn){const _n=new s.x,bn=(0,m.of)(void 0).pipe((0,q.Q)(it.outsideAngular),(0,te.w)(()=>Mt.runOutsideAngular(()=>Promise.resolve().then(b.bind(b,9568)))),(0,_e.U)(()=>(0,zt.on)(Dn,Mt,vn)),(0,_e.U)(pi=>jn(pi,Mt,At,st,vt,ft,ct,Ut)),ke({bufferSize:1,refCount:!1}));if((0,ut.PM)(Dt))this.authState=this.user=this.idToken=this.idTokenResult=this.credential=(0,m.of)(null);else{bn.pipe((0,Ze.P)()).subscribe();const si=bn.pipe((0,te.w)(Rn=>Rn.getRedirectResult().then(Ve=>Ve,()=>null)),je.iC,ke({bufferSize:1,refCount:!1})),vi=bn.pipe((0,te.w)(Rn=>new k.y(Ve=>({unsubscribe:Mt.runOutsideAngular(()=>Rn.onAuthStateChanged(Pt=>Ve.next(Pt),Pt=>Ve.error(Pt),()=>Ve.complete()))})))),Vn=bn.pipe((0,te.w)(Rn=>new k.y(Ve=>({unsubscribe:Mt.runOutsideAngular(()=>Rn.onIdTokenChanged(Pt=>Ve.next(Pt),Pt=>Ve.error(Pt),()=>Ve.complete()))}))));this.authState=si.pipe($e(vi),(0,Te.R)(it.outsideAngular),(0,q.Q)(it.insideAngular)),this.user=si.pipe($e(Vn),(0,Te.R)(it.outsideAngular),(0,q.Q)(it.insideAngular)),this.idToken=this.user.pipe((0,te.w)(Rn=>Rn?(0,v.D)(Rn.getIdToken()):(0,m.of)(null))),this.idTokenResult=this.user.pipe((0,te.w)(Rn=>Rn?(0,v.D)(Rn.getIdTokenResult()):(0,m.of)(null))),this.credential=(0,C.T)(si,_n,this.authState.pipe((0,rt.h)(Rn=>!Rn))).pipe((0,_e.U)(Rn=>(null==Rn?void 0:Rn.user)?Rn:null),(0,Te.R)(it.outsideAngular),(0,q.Q)(it.insideAngular))}return(0,zt.pX)(this,bn,Mt,{spy:{apply:(pi,si,vi)=>{(pi.startsWith("signIn")||pi.startsWith("createUser"))&&vi.then(Vn=>_n.next(Vn))}}})}}return Mn.\u0275fac=function(Dn){return new(Dn||Mn)(h.LFG(zt.Dh),h.LFG(zt.xv,8),h.LFG(h.Lbi),h.LFG(h.R0b),h.LFG(je.HU),h.LFG(Fe,8),h.LFG(me,8),h.LFG(gt,8),h.LFG(Bt,8),h.LFG(pn,8),h.LFG(mn,8),h.LFG(ze.nm,8))},Mn.\u0275prov=h.Yz7({token:Mn,factory:Mn.\u0275fac,providedIn:"any"}),Mn})(),Wn=(()=>{class Mn{constructor(){Re.Z.registerVersion("angularfire",je.q4.full,"auth-compat")}}return Mn.\u0275fac=function(Dn){return new(Dn||Mn)},Mn.\u0275mod=h.oAB({type:Mn}),Mn.\u0275inj=h.cJS({providers:[en]}),Mn})()},1762:(_t,Ue,b)=>{"use strict";b.d(Ue,{ST:()=>jy,yb:()=>E0});var h=b(5e3),s=b(4986),m=b(8306),k=b(8996),v=b(9646),C=b(4976),q=b(8675),te=b(4482),_e=b(5403);function re(){return(0,te.e)((i,e)=>{let t,o=!1;i.subscribe((0,_e.x)(e,u=>{const g=t;t=u,o&&e.next([g,u]),o=!0}))})}var me,we=b(4004),be=b(5026),ke=b(1884),Ze=b(9300),Ye=b(2011),$e=b(9808),rt=(b(9568),b(3942)),je=b(5861),zt=b(6881),ut=b(4859),ze=b(1877
1),Re=b(2090),tt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Fe={},gt=gt||{},Bt=tt||self;function pn(i){var e=typeof i;return"array"==(e="object"!=e?e:i?Array.isArray(i)?"array":e:"null")||"object"==e&&"number"==typeof i.length}function mn(i){var e=typeof i;return"object"==e&&null!=i||"function"==e}var en="closure_uid_"+(1e9*Math.random()>>>0),Wn=0;function Mn(i,e,t){return i.call.apply(i.bind,arguments)}function Bn(i,e,t){if(!i)throw Error();if(2<arguments.length){var o=Array.prototype.slice.call(arguments,2);return function(){var u=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(u,o),i.apply(e,u)}}return function(){return i.apply(e,arguments)}}function Dn(i,e,t){return(Dn=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?Mn:Bn).apply(null,arguments)}function vn(i,e){var t=Array.prototype.slice.call(arguments,1);return function(){var o=t.slice();return o.push.apply(o,arguments),i.apply(this,o)}}function Dt(i,e){function t(){}t.prototype=e.prototype,i.$=e.prototype,i.prototype=new t,i.prototype.constructor=i,i.ac=function(o,u,g){for(var E=Array(arguments.length-2),W=2;W<arguments.length;W++)E[W-2]=arguments[W];return e.prototype[u].apply(o,E)}}function Mt(){this.s=this.s,this.o=this.o}Mt.prototype.s=!1,Mt.prototype.sa=function(){!this.s&&(this.s=!0,this.N(),0)&&function jn(i){Object.prototype.hasOwnProperty.call(i,en)&&i[en]||(i[en]=++Wn)}(this)},Mt.prototype.N=function(){if(this.o)for(;this.o.length;)this.o.shift()()};const At=Array.prototype.indexOf?function(i,e){return Array.prototype.indexOf.call(i,e,void 0)}:function(i,e){if("string"==typeof i)return"string"!=typeof e||1!=e.length?-1:i.indexOf(e,0);for(let t=0;t<i.length;t++)if(t in i&&i[t]===e)return t;return-1};function ct(i){const e=i.length;if(0<e){const t=Array(e);for(let o=0;o<e;o++)t[o]=i[o];return t}return[]}function st(i,e){for(let t=1;t<arguments.length;t++){const o=arguments[t];if(pn(o)){const u=i.length||0,g=o.length||0;i.length=u+g;for(let E=0;E<g;E++)i[u+E]=o[E]}else i.push(o)}}function vt(i,e){this.type=i,this.g=this.target=e,this.defaultPrevented=!1}vt.prototype.h=function(){this.defaultPrevented=!0};var ft=function(){if(!Bt.addEventListener||!Object.defineProperty)return!1;var i=!1,e=Object.defineProperty({},"passive",{get:function(){i=!0}});try{Bt.addEventListener("test",()=>{},e),Bt.removeEventListener("test",()=>{},e)}catch(t){}return i}();function Ut(i){return/^[\s\xa0]*$/.test(i)}function tn(){var i=Bt.navigator;return i&&(i=i.userAgent)?i:""}function _n(i){return-1!=tn().indexOf(i)}function bn(i){return bn[" "](i),i}bn[" "]=function(){};var ue,i,si=_n("Opera"),vi=_n("Trident")||_n("MSIE"),Vn=_n("Edge"),Rn=Vn||vi,Ve=_n("Gecko")&&!(-1!=tn().toLowerCase().indexOf("webkit")&&!_n("Edge"))&&!(_n("Trident")||_n("MSIE"))&&!_n("Edge"),Pt=-1!=tn().toLowerCase().indexOf("webkit")&&!_n("Edge");function $(){var i=Bt.document;return i?i.documentMode:void 0}e:{var K="",ae=(i=tn(),Ve?/rv:([^\);]+)(\)|;)/.exec(i):Vn?/Edge\/([\d\.]+)/.exec(i):vi?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(i):Pt?/WebKit\/(\S+)/.exec(i):si?/(?:Version)[ \/]?(\S+)/.exec(i):void 0);if(ae&&(K=ae?ae[1]:""),vi){var Me=$();if(null!=Me&&Me>parseFloat(K)){ue=String(Me);break e}}ue=K}var Zt=Bt.document&&vi&&($()||parseInt(ue,10))||void 0;function Yt(i,e){if(vt.call(this,i?i.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,i){var t=this.type=i.type,o=i.changedTouches&&i.changedTouches.length?i.changedTouches[0]:null;if(this.target=i.target||i.srcElement,this.g=e,e=i.relatedTarget){if(Ve){e:{try{bn(e.nodeName);var u=!0;break e}catch(g){}u=!1}u||(e=null)}}else"mouseover"==t?e=i.fromElement:"mouseout"==t&&(e=i.toElement);this.relatedTarget=e,o?(this.clientX=void 0!==o.clientX?o.clientX:o.pageX,this.clientY=void 0!==o.clientY?o.clientY:o.pageY,this.screenX=o.screenX||0,this.screenY=o.screenY||0):(this.clientX=void 0!==i.clientX?i.clientX:i.pageX,this.clientY=void 0!==i.clientY?i.clientY:i.pageY,this.screenX=i.screenX||0,this.screenY=i.screenY||0),this.button=i.button,this.key=i.key||"",this.ctrlKey=i.ctrlKey,this.altKey=i.altKey,this.shiftKey=i.shiftKey,this.metaKey=i.metaKey,this.pointerId=i.pointerId||0,this.pointerType="string"==typeof i.pointerType?i.pointerType:Pn[i.pointerType]||"",this.state=i.state,this.i=i,i.defaultPrevented&&Yt.$.h.call(this)}}Dt(Yt,vt);var Pn={2:"touch",3:"pen",4:"mouse"};Yt.prototype.h=function(){Yt.$.h.call(this);var i=this.i;i.preventDefault?i.preventDefault():i.returnValue=!1};var Cn="closure_listenable_"+(1e6*Math.random()|0),Nn=0;function Si(i,e,t,o,u){this.listener=i,this.proxy=null,this.src=e,this.type=t,this.capture=!!o,this.la=u,this.key=++Nn,this.fa=this.ia=!1}function ni(i){i.fa=!0,i.listener=null,i.proxy=null,i.src=null,i.la=null}function Qn(i,e,t){for(const o in i)e.call(t,i[o],o,i)}function Qt(i){const e={};for(const t in i)e[t]=i[t];return e}const Se="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleStr
1ing toString valueOf".split(" ");function Ke(i,e){let t,o;for(let u=1;u<arguments.length;u++){for(t in o=arguments[u],o)i[t]=o[t];for(let g=0;g<Se.length;g++)t=Se[g],Object.prototype.hasOwnProperty.call(o,t)&&(i[t]=o[t])}}function Ee(i){this.src=i,this.g={},this.h=0}function Be(i,e){var t=e.type;if(t in i.g){var g,o=i.g[t],u=At(o,e);(g=0<=u)&&Array.prototype.splice.call(o,u,1),g&&(ni(e),0==i.g[t].length&&(delete i.g[t],i.h--))}}function at(i,e,t,o){for(var u=0;u<i.length;++u){var g=i[u];if(!g.fa&&g.listener==e&&g.capture==!!t&&g.la==o)return u}return-1}Ee.prototype.add=function(i,e,t,o,u){var g=i.toString();(i=this.g[g])||(i=this.g[g]=[],this.h++);var E=at(i,e,o,u);return-1<E?(e=i[E],t||(e.ia=!1)):((e=new Si(e,this.src,g,!!o,u)).ia=t,i.push(e)),e};var Ot="closure_lm_"+(1e6*Math.random()|0),mt={};function yn(i,e,t,o,u){if(o&&o.once)return Oe(i,e,t,o,u);if(Array.isArray(e)){for(var g=0;g<e.length;g++)yn(i,e[g],t,o,u);return null}return t=Je(t),i&&i[Cn]?i.O(e,t,mn(o)?!!o.capture:!!o,u):ei(i,e,t,!1,o,u)}function ei(i,e,t,o,u,g){if(!e)throw Error("Invalid event type");var E=mn(u)?!!u.capture:!!u,W=j(i);if(W||(i[Ot]=W=new Ee(i)),(t=W.add(e,t,o,E,g)).proxy)return t;if(o=function ht(){const e=x;return function i(t){return e.call(i.src,i.listener,t)}}(),t.proxy=o,o.src=i,o.listener=t,i.addEventListener)ft||(u=E),void 0===u&&(u=!1),i.addEventListener(e.toString(),o,u);else if(i.attachEvent)i.attachEvent(N(e.toString()),o);else{if(!i.addListener||!i.removeListener)throw Error("addEventListener and attachEvent are unavailable.");i.addListener(o)}return t}function Oe(i,e,t,o,u){if(Array.isArray(e)){for(var g=0;g<e.length;g++)Oe(i,e[g],t,o,u);return null}return t=Je(t),i&&i[Cn]?i.P(e,t,mn(o)?!!o.capture:!!o,u):ei(i,e,t,!0,o,u)}function De(i,e,t,o,u){if(Array.isArray(e))for(var g=0;g<e.length;g++)De(i,e[g],t,o,u);else o=mn(o)?!!o.capture:!!o,t=Je(t),i&&i[Cn]?(i=i.i,(e=String(e).toString())in i.g&&-1<(t=at(g=i.g[e],t,o,u))&&(ni(g[t]),Array.prototype.splice.call(g,t,1),0==g.length&&(delete i.g[e],i.h--))):i&&(i=j(i))&&(e=i.g[e.toString()],i=-1,e&&(i=at(e,t,o,u)),(t=-1<i?e[i]:null)&&U(t))}function U(i){if("number"!=typeof i&&i&&!i.fa){var e=i.src;if(e&&e[Cn])Be(e.i,i);else{var t=i.type,o=i.proxy;e.removeEventListener?e.removeEventListener(t,o,i.capture):e.detachEvent?e.detachEvent(N(t),o):e.addListener&&e.removeListener&&e.removeListener(o),(t=j(e))?(Be(t,i),0==t.h&&(t.src=null,e[Ot]=null)):ni(i)}}}function N(i){return i in mt?mt[i]:mt[i]="on"+i}function x(i,e){if(i.fa)i=!0;else{e=new Yt(e,this);var t=i.listener,o=i.la||i.src;i.ia&&U(i),i=t.call(o,e)}return i}function j(i){return(i=i[Ot])instanceof Ee?i:null}var de="__closure_events_fn_"+(1e9*Math.random()>>>0);function Je(i){return"function"==typeof i?i:(i[de]||(i[de]=function(e){return i.handleEvent(e)}),i[de])}function St(){Mt.call(this),this.i=new Ee(this),this.S=this,this.J=null}function Ht(i,e){var t,o=i.J;if(o)for(t=[];o;o=o.J)t.push(o);if(i=i.S,o=e.type||e,"string"==typeof e)e=new vt(e,i);else if(e instanceof vt)e.target=e.target||i;else{var u=e;Ke(e=new vt(o,i),u)}if(u=!0,t)for(var g=t.length-1;0<=g;g--){var E=e.g=t[g];u=kn(E,o,!0,e)&&u}if(u=kn(E=e.g=i,o,!0,e)&&u,u=kn(E,o,!1,e)&&u,t)for(g=0;g<t.length;g++)u=kn(E=e.g=t[g],o,!1,e)&&u}function kn(i,e,t,o){if(!(e=i.i.g[String(e)]))return!0;e=e.concat();for(var u=!0,g=0;g<e.length;++g){var E=e[g];if(E&&!E.fa&&E.capture==t){var W=E.listener,pe=E.la||E.src;E.ia&&Be(i.i,E),u=!1!==W.call(pe,o)&&u}}return u&&!o.defaultPrevented}Dt(St,Mt),St.prototype[Cn]=!0,St.prototype.removeEventListener=function(i,e,t,o){De(this,i,e,t,o)},St.prototype.N=function(){if(St.$.N.call(this),this.i){var e,i=this.i;for(e in i.g){for(var t=i.g[e],o=0;o<t.length;o++)ni(t[o]);delete i.g[e],i.h--}}this.J=null},St.prototype.O=function(i,e,t,o){return this.i.add(String(i),e,!1,t,o)},St.prototype.P=function(i,e,t,o){return this.i.add(String(i),e,!0,t,o)};var Jn=Bt.JSON.stringify;function Ii(){var i=Hi;let e=null;return i.g&&(e=i.g,i.g=i.g.next,i.g||(i.h=null),e.next=null),e}var rn=new class ii{constructor(e,t){this.i=e,this.j=t,this.h=0,this.g=null}get(){let e;return 0<this.h?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e}}(()=>new qt,i=>i.reset());class qt{constructor(){this.next=this.g=this.h=null}set(e,t){this.h=e,this.g=t,this.next=null}reset(){this.next=this.g=this.h=null}}function xn(i){var e=1;i=i.split(":");const t=[];for(;0<e&&i.length;)t.push(i.shift()),e--;return i.length&&t.push(i.join(":")),t}function fn(i){Bt.setTimeout(()=>{throw i},0)}let zn,ai=!1,Hi=new class Cr{constructor(){this.h=this.g=null}add(e,t){const o=rn.get();o.set(e,t),this.h?this.h.next=o:this.g=o,this.h=o}},_r=()=>{const i=Bt.Promise.resolve(void 0);zn=()=>{i.then(Ji)}};var Ji=()=>{for(var i;i=Ii();){try{i.h.call(i.g)}catch(t){fn(t)}var e=rn;e.j(i),100>e.h&&(e.h++,i.next=e.g,e.g=i)}ai=!1};function Pr(i,e){St.call(this),this.h=i||1,this.g=e||Bt,this.j=Dn(this.qb,this),this.l=Date.now()}function ki(i){i.ga=!1,i.T&&(i.g.clearTimeout(i.T),i.T=null)}function Ur(i,e,t){if("function"==typeof i)t&&(i=Dn(i,t));else{if(!i||"function"!=typeof i.handleEvent)throw Error("Invalid listener argument");i=Dn(i.handleEvent,i)}return 2147483647<Number(e)?-1:Bt.setTimeout(i,e||0)}function ms(i){i.g=Ur(()=>{i.g=null,i.i&&(i.i=!1,ms(i))},i.j);const e=i.h;i.h=null,i.m.apply(null,e)}Dt(Pr,St),(me=Pr.prototype).ga=!1,me.T=null,me.qb=function(){if(this.ga){var i=Date.now()-this.l;0<i&&i<.8*this.h?this.T=this.g.setTimeout(this.j,this.h-i):(this.T&&(this.g.clearTimeout(this.T),this.T=null),Ht(this,"tick"),this.ga&&(ki(this),this.start()))}},me.start=function(){this.ga=!0,this.T||(this.T=this.g.setTimeout(this.j,this.h),this.l=Date.now())},me.N=function(){Pr.$.N.call(this),ki(this),delete this.g};class Ni extends Mt{constructor(e,t){super(),this.m=e,this.j=t,this.h=null,this.i=!1,this.g=null}l(e){this.h=arguments,this.g?this.i=!0:ms(this)}N(){super.N(),this.g&&(Bt.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function Gr(i){Mt.call(this),this.h=i,this.g={}}Dt(Gr,Mt);var jr=[];function or(i,e,t,o){Array.isArray(t)||(t&&(jr[0]=t.toString()),t=jr);for(var u=0;u<t.length;u++){var g=yn(e,t[u],o||i.handleEvent,!1,i.h||i);if(!g)break;
1i.g[g.key]=g}}function ar(i){Qn(i.g,function(e,t){this.g.hasOwnProperty(t)&&U(e)},i),i.g={}}function Wi(){this.g=!0}function Qr(i,e,t,o){i.info(function(){return"XMLHTTP TEXT ("+e+"): "+function Nt(i,e){if(!i.g)return e;if(!e)return null;try{var t=JSON.parse(e);if(t)for(i=0;i<t.length;i++)if(Array.isArray(t[i])){var o=t[i];if(!(2>o.length)){var u=o[1];if(Array.isArray(u)&&!(1>u.length)){var g=u[0];if("noop"!=g&&"stop"!=g&&"close"!=g)for(var E=1;E<u.length;E++)u[E]=""}}}return Jn(t)}catch(W){return e}}(i,t)+(o?" "+o:"")})}Gr.prototype.N=function(){Gr.$.N.call(this),ar(this)},Gr.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},Wi.prototype.Ea=function(){this.g=!1},Wi.prototype.info=function(){};var Ft={},$t=null;function cn(){return $t=$t||new St}function Un(i){vt.call(this,Ft.Ta,i)}function Mi(i){const e=cn();Ht(e,new Un(e))}function Fi(i,e){vt.call(this,Ft.STAT_EVENT,i),this.stat=e}function oi(i){const e=cn();Ht(e,new Fi(e,i))}function Gi(i,e){vt.call(this,Ft.Ua,i),this.size=e}function Jr(i,e){if("function"!=typeof i)throw Error("Fn must not be null and must be a function");return Bt.setTimeout(function(){i()},e)}Ft.Ta="serverreachability",Dt(Un,vt),Ft.STAT_EVENT="statevent",Dt(Fi,vt),Ft.Ua="timingevent",Dt(Gi,vt);var io={NO_ERROR:0,rb:1,Eb:2,Db:3,yb:4,Cb:5,Fb:6,Qa:7,TIMEOUT:8,Ib:9},Ar={wb:"complete",Sb:"success",Ra:"error",Qa:"abort",Kb:"ready",Lb:"readystatechange",TIMEOUT:"timeout",Gb:"incrementaldata",Jb:"progress",zb:"downloadprogress",$b:"uploadprogress"};function ns(){}function Oo(){}ns.prototype.h=null;var ws,oo={OPEN:"a",vb:"b",Ra:"c",Hb:"d"};function ho(){vt.call(this,"d")}function go(){vt.call(this,"c")}function Ro(){}function Ks(i,e,t,o){this.l=i,this.j=e,this.m=t,this.W=o||1,this.U=new Gr(this),this.P=Ui,this.V=new Pr(i=Rn?125:void 0),this.I=null,this.i=!1,this.s=this.A=this.v=this.L=this.G=this.Y=this.B=null,this.F=[],this.g=null,this.C=0,this.o=this.u=null,this.ca=-1,this.J=!1,this.O=0,this.M=null,this.ba=this.K=this.aa=this.S=!1,this.h=new ma}function ma(){this.i=null,this.g="",this.h=!1}Dt(ho,vt),Dt(go,vt),Dt(Ro,ns),Ro.prototype.g=function(){return new XMLHttpRequest},Ro.prototype.i=function(){return{}},ws=new Ro;var Ui=45e3,Ys={},dr={};function aa(i,e,t){i.L=1,i.v=xi(gr(e)),i.s=t,i.S=!0,yo(i,null)}function yo(i,e){i.G=Date.now(),Jo(i),i.A=gr(i.v);var t=i.A,o=i.W;Array.isArray(o)||(o=[String(o)]),li(t.i,"t",o),i.C=0,t=i.l.J,i.h=new ma,i.g=ea(i.l,t?e:null,!i.s),0<i.O&&(i.M=new Ni(Dn(i.Pa,i,i.g),i.O)),or(i.U,i.g,"readystatechange",i.nb),e=i.I?Qt(i.I):{},i.s?(i.u||(i.u="POST"),e["Content-Type"]="application/x-www-form-urlencoded",i.g.ha(i.A,i.u,i.s,e)):(i.u="GET",i.g.ha(i.A,i.u,null,e)),Mi(),function Ps(i,e,t,o,u,g){i.info(function(){if(i.g)if(g)for(var E="",W=g.split("&"),pe=0;pe<W.length;pe++){var Ce=W[pe].split("=");if(1<Ce.length){var et=Ce[0];Ce=Ce[1];var It=et.split("_");E=2<=It.length&&"type"==It[1]?E+(et+"=")+Ce+"&":E+(et+"=redacted&")}}else E=null;else E=g;return"XMLHTTP REQ ("+o+") [attempt "+u+"]: "+e+"\n"+t+"\n"+E})}(i.j,i.u,i.A,i.m,i.W,i.s)}function Ms(i){return!!i.g&&"GET"==i.u&&2!=i.L&&i.l.Ha}function vo(i,e,t){let u,o=!0;for(;!i.J&&i.C<t.length;){if(u=_s(i,t),u==dr){4==e&&(i.o=4,oi(14),o=!1),Qr(i.j,i.m,null,"[Incomplete Response]");break}if(u==Ys){i.o=4,oi(15),Qr(i.j,i.m,t,"[Invalid Chunk]"),o=!1;break}Qr(i.j,i.m,u,null),fo(i,u)}Ms(i)&&u!=dr&&u!=Ys&&(i.h.g="",i.C=0),4!=e||0!=t.length||i.h.h||(i.o=1,oi(16),o=!1),i.i=i.i&&o,o?0<t.length&&!i.ba&&(i.ba=!0,(e=i.l).g==i&&e.ca&&!e.M&&(e.l.info("Great, no buffering proxy detected. Bytes received: "+t.length),Kr(e),e.M=!0,oi(11))):(Qr(i.j,i.m,t,"[Invalid Chunked Response]"),Os(i),Es(i))}function _s(i,e){var t=i.C,o=e.indexOf("\n",t);return-1==o?dr:(t=Number(e.substring(t,o)),isNaN(t)?Ys:(o+=1)+t>e.length?dr:(e=e.slice(o,o+t),i.C=o+t,e))}function Jo(i){i.Y=Date.now()+i.P,is(i,i.P)}function is(i,e){if(null!=i.B)throw Error("WatchDog timer not null");i.B=Jr(Dn(i.lb,i),e)}function gs(i){i.B&&(Bt.clearTimeout(i.B),i.B=null)}function Es(i){0==i.l.H||i.J||rs(i.l,i)}function Os(i){gs(i);var e=i.M;e&&"function"==typeof e.sa&&e.sa(),i.M=null,ki(i.V),ar(i.U),i.g&&(e=i.g,i.g=null,e.abort(),e.sa())}function fo(i,e){try{var t=i.l;if(0!=t.H&&(t.g==i||ge(t.i,i)))if(!i.K&&ge(t.i,i)&&3==t.H){try{var o=t.Ja.g.parse(e)}catch(Ce){o=null}if(Array.isArray(o)&&3==o.length){var u=o;if(0==u[0])e:if(t.u)t.Fa=u[1],0<t.Fa-t.V&&37500>u[2]&&t.G&&0==t.A&&!t.v&&(t.v=Jr(Dn(t.ib,t),6e3));else{if(t.g){if(!(t.g.G+3e3<i.G))break e;us(t),Kt(t)}vr(t),oi(18)}if(1>=as(t.i)&&t.oa){try{t.oa()}catch(Ce){}t.oa=void 0}}else Zr(t,11)}else if((i.K||t.g==i)&&us(t),!Ut(e))for(u=t.Ja.g.parse(e),e=0;e<u.length;e++){let Ce=u[e];if(t.V=Ce[0],Ce=Ce[1],2==t.H)if("c"==Ce[0]){t.K=Ce[1],t.pa=Ce[2];const et=Ce[3];null!=et&&(t.ra=et,t.l.info("VER="+t.ra));const It=Ce[4];null!=It&&(t.Ga=It,t.l.info("SVER="+t.Ga));const on=Ce[5];null!=on&&"number"==typeof on&&0<on&&(t.L=o=1.5*on,t.l.info("backChannelRequestTimeoutMs_="+o)),o=t;const An=i.g;if(An){const di=An.g?An.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(di){var g=o.i;g.g||-1==di.indexOf("spdy")&&-1==di.indexOf("quic")&&-1==di.indexOf("h2")||(g.j=g.l,g.g=new Set,g.h&&(oe(g,g.h),g.h=null))}if(o.F){const Ai=An.g?An.g.getResponseHeader("X-HTTP-Session-Id"):null;Ai&&(o.Da=Ai,ri(o.I,o.F,Ai))}}t.H=3,t.h&&t.h.Ba(),t.ca&&(t.S=Date.now()-i.G,t.l.info("Handshake RTT: "+t.S+"ms"));var E=i;if((o=t).wa=Or(o,o.J?o.pa:null,o.Y),E.K){J(o.i,E);var W=E,pe=o.L;pe&&W.setTimeout(pe),W.B&&(gs(W),Jo(W)),o.g=E}else Qi(o);0<t.j.length&&In(t)}else"stop"!=Ce[0]&&"close"!=Ce[0]||Zr(t,7);else 3==t.H&&("stop"==Ce[0]||"close"==Ce[0]?"stop"==Ce[0]?Zr(t,7):kt(t):"noop"!=Ce[0]&&t.h&&t.h.Aa(Ce),t.A=0)}Mi()}catch(Ce){}}
1function bo(i,e){if(i.forEach&&"function"==typeof i.forEach)i.forEach(e,void 0);else if(pn(i)||"string"==typeof i)Array.prototype.forEach.call(i,e,void 0);else for(var t=function qs(i){if(i.ta&&"function"==typeof i.ta)return i.ta();if(!i.Z||"function"!=typeof i.Z){if("undefined"!=typeof Map&&i instanceof Map)return Array.from(i.keys());if(!("undefined"!=typeof Set&&i instanceof Set)){if(pn(i)||"string"==typeof i){var e=[];i=i.length;for(var t=0;t<i;t++)e.push(t);return e}e=[],t=0;for(const o in i)e[t++]=o;return e}}}(i),o=function _a(i){if(i.Z&&"function"==typeof i.Z)return i.Z();if("undefined"!=typeof Map&&i instanceof Map||"undefined"!=typeof Set&&i instanceof Set)return Array.from(i.values());if("string"==typeof i)return i.split("");if(pn(i)){for(var e=[],t=i.length,o=0;o<t;o++)e.push(i[o]);return e}for(o in e=[],t=0,i)e[t++]=i[o];return e}(i),u=o.length,g=0;g<u;g++)e.call(void 0,o[g],t&&t[g],i)}(me=Ks.prototype).setTimeout=function(i){this.P=i},me.nb=function(i){i=i.target;const e=this.M;e&&3==Pe(i)?e.l():this.Pa(i)},me.Pa=function(i){try{if(i==this.g)e:{const et=Pe(this.g);var e=this.g.Ia();if(this.g.da(),!(3>et)&&(3!=et||Rn||this.g&&(this.h.h||this.g.ja()||P(this.g)))){this.J||4!=et||7==e||Mi(),gs(this);var t=this.g.da();this.ca=t;t:if(Ms(this)){var o=P(this.g);i="";var u=o.length,g=4==Pe(this.g);if(!this.h.i){if("undefined"==typeof TextDecoder){Os(this),Es(this);var E="";break t}this.h.i=new Bt.TextDecoder}for(e=0;e<u;e++)this.h.h=!0,i+=this.h.i.decode(o[e],{stream:g&&e==u-1});o.splice(0,u),this.h.g+=i,this.C=0,E=this.h.g}else E=this.g.ja();if(this.i=200==t,function Ds(i,e,t,o,u,g,E){i.info(function(){return"XMLHTTP RESP ("+o+") [ attempt "+u+"]: "+e+"\n"+t+"\n"+g+" "+E})}
1(this.j,this.u,this.A,this.m,this.W,et,t),this.i){if(this.aa&&!this.K){t:{if(this.g){var W,pe=this.g;if((W=pe.g?pe.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!Ut(W)){var Ce=W;break t}}Ce=null}if(!(t=Ce)){this.i=!1,this.o=3,oi(12),Os(this),Es(this);break e}Qr(this.j,this.m,t,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,fo(this,t)}this.S?(vo(this,et,E),Rn&&this.i&&3==et&&(or(this.U,this.V,"tick",this.mb),this.V.start())):(Qr(this.j,this.m,E,null),fo(this,E)),4==et&&Os(this),this.i&&!this.J&&(4==et?rs(this.l,this):(this.i=!1,Jo(this)))}else(function F(i){const e={};i=(i.g&&2<=Pe(i)&&i.g.getAllResponseHeaders()||"").split("\r\n");for(let o=0;o<i.length;o++){if(Ut(i[o]))continue;var t=xn(i[o]);const u=t[0];if("string"!=typeof(t=t[1]))continue;t=t.trim();const g=e[u]||[];e[u]=g,g.push(t)}!function lt(i,e){for(const t in i)e.call(void 0,i[t],t,i)}(e,function(o){return o.join(", ")})})(this.g),400==t&&0<E.indexOf("Unknown SID")?(this.o=3,oi(12)):(this.o=0,oi(13)),Os(this),Es(this)}}}catch(et){}},me.mb=function(){if(this.g){var i=Pe(this.g),e=this.g.ja();this.C<e.length&&(gs(this),vo(this,i,e),this.i&&4!=i&&Jo(this))}},me.cancel=function(){this.J=!0,Os(this)},me.lb=function(){this.B=null;const i=Date.now();0<=i-this.Y?(function _i(i,e){i.info(function(){return"TIMEOUT: "+e})}(this.j,this.A),2!=this.L&&(Mi(),oi(17)),Os(this),this.o=2,Es(this)):is(this,this.Y-i)};var ia=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Yi(i){if(this.g=this.s=this.j="",this.m=null,this.o=this.l="",this.h=!1,i instanceof Yi){this.h=i.h,Cs(this,i.j),this.s=i.s,this.g=i.g,Vs(this,i.m),this.l=i.l;var e=i.i,t=new qe;t.i=e.i,e.g&&(t.g=new Map(e.g),t.h=e.h),Ri(this,t),this.o=i.o}else i&&(e=String(i).match(ia))?(this.h=!1,Cs(this,e[1]||"",!0),this.s=Yr(e[2]||""),this.g=Yr(e[3]||"",!0),Vs(this,e[4]),this.l=Yr(e[5]||"",!0),Ri(this,e[6]||"",!0),this.o=Yr(e[7]||"")):(this.h=!1,this.i=new qe(null,this.h))}function gr(i){return new Yi(i)}function Cs(i,e,t){i.j=t?Yr(e,!0):e,i.j&&(i.j=i.j.replace(/:$/,""))}function Vs(i,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);i.m=e}else i.m=null}function Ri(i,e,t){e instanceof qe?(i.i=e,function Dr(i,e){e&&!i.j&&(Ct(i),i.i=null,i.g.forEach(function(t,o){var u=o.toLowerCase();o!=u&&(dn(this,o),li(this,u,t))},i)),i.j=e}(i.i,i.h)):(t||(e=rr(e,Ne)),i.i=new qe(e,i.h))}function ri(i,e,t){i.i.set(e,t)}function xi(i){return ri(i,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),i}function Yr(i,e){return i?e?decodeURI(i.replace(/%25/g,"%2525")):decodeURIComponent(i):""}function rr(i,e,t){return"string"==typeof i?(i=encodeURI(i).replace(e,wo),t&&(i=i.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),i):null}function wo(i){return"%"+((i=i.charCodeAt(0))>>4&15).toString(16)+(15&i).toString(16)}Yi.prototype.toString=function(){var i=[],e=this.j;e&&i.push(rr(e,Ma,!0),":");var t=this.g;return(t||"file"==e)&&(i.push("//"),(e=this.s)&&i.push(rr(e,Ma,!0),"@"),i.push(encodeURIComponent(String(t)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(t=this.m)&&i.push(":",String(t))),(t=this.l)&&(this.g&&"/"!=t.charAt(0)&&i.push("/"),i.push(rr(t,"/"==t.charAt(0)?fe:Ir,!0))),(t=this.i.toString())&&i.push("?",t),(t=this.o)&&i.push("#",rr(t,le)),i.join("")};var Ma=/[#\/\?@]/g,Ir=/[#\?:]/g,fe=/[#\?]/g,Ne=/[#\?@]/g,le=/#/g;function qe(i,e){this.h=this.g=null,this.i=i||null,this.j=!!e}function Ct(i){i.g||(i.g=new Map,i.h=0,i.i&&function Do(i,e){if(i){i=i.split("&");for(var t=0;t<i.length;t++){var o=i[t].indexOf("="),u=null;if(0<=o){var g=i[t].substring(0,o);u=i[t].substring(o+1)}else g=i[t];e(g,u?decodeURIComponent(u.replace(/\+/g," ")):"")}}}(i.i,function(e,t){i.add(decodeURIComponent(e.replace(/\+/g," ")),t)}))}function dn(i,e){Ct(i),e=Tr(i,e),i.g.has(e)&&(i.i=null,i.h-=i.g.get(e).length,i.g.delete(e))}function hn(i,e){return Ct(i),e=Tr(i,e),i.g.has(e)}function li(i,e,t){dn(i,e),0<t.length&&(i.i=null,i.g.set(Tr(i,e),ct(t)),i.h+=t.length)}function Tr(i,e){return e=String(e),i.j&&(e=e.toLowerCase()),e}function $i(i){this.l=i||Xr,i=Bt.PerformanceNavigationTiming?0<(i=Bt.performance.getEntriesByType("navigation")).length&&("hq"==i[0].nextHopProtocol||"h2"==i[0].nextHopProtocol):!!(Bt.g&&Bt.g.Ka&&Bt.g.Ka()&&Bt.g.Ka().ec),this.j=i?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}(me=qe.prototype).add=function(i,e){Ct(this),this.i=null,i=Tr(this,i);var t=this.g.get(i);return t||this.g.set(i,t=[]),t.push(e),this.h+=1,this},me.forEach=function(i,e){Ct(this),this.g.forEach(function(t,o){t.forEach(function(u){i.call(e,u,o,this)},this)},this)},me.ta=function(){Ct(this);const i=Array.from(this.g.values()),e=Array.from(this.g.keys()),t=[];for(let o=0;o<e.length;o++){const u=i[o];for(let g=0;g<u.length;g++)t.push(e[o])}return t},me.Z=function(i){Ct(this);let e=[];
1if("string"==typeof i)hn(this,i)&&(e=e.concat(this.g.get(Tr(this,i))));else{i=Array.from(this.g.values());for(let t=0;t<i.length;t++)e=e.concat(i[t])}return e},me.set=function(i,e){return Ct(this),this.i=null,hn(this,i=Tr(this,i))&&(this.h-=this.g.get(i).length),this.g.set(i,[e]),this.h+=1,this},me.get=function(i,e){return i&&0<(i=this.Z(i)).length?String(i[0]):e},me.toString=function(){if(this.i)return this.i;if(!this.g)return"";const i=[],e=Array.from(this.g.keys());for(var t=0;t<e.length;t++){var o=e[t];const g=encodeURIComponent(String(o)),E=this.Z(o);for(o=0;o<E.length;o++){var u=g;""!==E[o]&&(u+="="+encodeURIComponent(String(E[o]))),i.push(u)}}return this.i=i.join("&")};var Xr=10;function hr(i){return!!i.h||!!i.g&&i.g.size>=i.j}function as(i){return i.h?1:i.g?i.g.size:0}function ge(i,e){return i.h?i.h==e:!!i.g&&i.g.has(e)}function oe(i,e){i.g?i.g.add(e):i.h=e}function J(i,e){i.h&&i.h==e?i.h=null:i.g&&i.g.has(e)&&i.g.delete(e)}function We(i){if(null!=i.h)return i.i.concat(i.h.F);if(null!=i.g&&0!==i.g.size){let e=i.i;for(const t of i.g.values())e=e.concat(t.F);return e}return ct(i.i)}function mi(){this.g=new class{stringify(i){return Bt.JSON.stringify(i,void 0)}parse(i){return Bt.JSON.parse(i,void 0)}}}function hi(i,e,t){const o=t||"";try{bo(i,function(u,g){let E=u;mn(u)&&(E=Jn(u)),e.push(o+g+"="+encodeURIComponent(E))})}catch(u){throw e.push(o+"type="+encodeURIComponent("_badmap")),u}}function Ss(i,e,t,o,u){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,u(o)}catch(g){}}function Qs(i){this.l=i.fc||null,this.j=i.ob||!1}function ks(i,e){St.call(this),this.F=i,this.u=e,this.m=void 0,this.readyState=Fn,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.v=new Headers,this.h=null,this.C="GET",this.B="",this.g=!1,this.A=this.j=this.l=null}$i.prototype.cancel=function(){if(this.i=We(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(const i of this.g.values())i.cancel();this.g.clear()}},Dt(Qs,ns),Qs.prototype.g=function(){return new ks(this.l,this.j)},Qs.prototype.i=function(i){return function(){return i}}({}),Dt(ks,St);var Fn=0;function qi(i){i.j.read().then(i.Xa.bind(i)).catch(i.ka.bind(i))}function ra(i){i.readyState=4,i.l=null,i.j=null,i.A=null,yr(i)}function yr(i){i.onreadystatechange&&i.onreadystatechange.call(i)}(me=ks.prototype).open=function(i,e){if(this.readyState!=Fn)throw this.abort(),Error("Error reopening a connection");this.C=i,this.B=e,this.readyState=1,yr(this)},me.send=function(i){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;const e={headers:this.v,method:this.C,credentials:this.m,cache:void 0};i&&(e.body=i),(this.F||Bt).fetch(new Request(this.B,e)).then(this.$a.bind(this),this.ka.bind(this))},me.abort=function(){this.response=this.responseText="",this.v=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,ra(this)),this.readyState=Fn},me.$a=function(i){if(this.g&&(this.l=i,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=i.headers,this.readyState=2,yr(this)),this.g&&(this.readyState=3,yr(this),this.g)))if("arraybuffer"===this.responseType)i.arrayBuffer().then(this.Ya.bind(this),this.ka.bind(this));else if(void 0!==Bt.ReadableStream&&"body"in i){if(this.j=i.body.getReader(),this.u){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.A=new TextDecoder;qi(this)}else i.text().then(this.Za.bind(this),this.ka.bind(this))},me.Xa=function(i){if(this.g){if(this.u&&i.value)this.response.push(i.value);else if(!this.u){var e=i.value?i.value:new Uint8Array(0);(e=this.A.decode(e,{stream:!i.done}))&&(this.response=this.responseText+=e)}i.done?ra(this):yr(this),3==this.readyState&&qi(this)}},me.Za=function(i){this.g&&(this.response=this.responseText=i,ra(this))},me.Ya=function(i){this.g&&(this.response=i,ra(this))},me.ka=function(){this.g&&ra(this)},me.setRequestHeader=function(i,e){this.v.append(i,e)},me.getResponseHeader=function(i){return this.h&&this.h.get(i.toLowerCase())||""},me.getAllResponseHeaders=function(){if(!this.h)return"";const i=[],e=this.h.entries();for(var t=e.next();!t.done;)i.push((t=t.value)[0]+": "+t[1]),t=e.next();return i.join("\r\n")},Object.defineProperty(ks.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(i){this.m=i?"include":"same-origin"}});var sl=Bt.JSON.parse;function fr(i){St.call(this),this.headers=new Map,this.u=i||null,this.h=!1,this.C=this.g=null,this.I="",this.m=0,this.j="",this.l=this.G=this.v=this.F=!1,this.B=0,this.A=null,this.K=Js,this.L=this.M=!1}Dt(fr,St);var Js="",Xo=/^https?$/i,ls=["POST","PUT"];function Eo(i,e){i.h=!1,i.g&&(i.l=!0,i.g.abort(),i.l=!1),i.j=e,i.m=5,No(i),Is(i)}function No(i){i.F||(i.F=!0,Ht(i,"complete"),Ht(i,"error"))}function Fo(i){if(i.h&&void 0!==gt&&(!i.C[1]||4!=Pe(i)||2!=i.da()))if(i.v&&4==Pe(i))Ur(i.La,0,i);else if(Ht(i,"readystatechange"),4==Pe(i)){i.h=!1;try{const E=i.da();e:switch(E){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var e=!0;break e;default:e=!1}var t;if(!(t=e)){var o;if(o=0===E){var u=String(i.I).match(ia)[1]||null;!u&&Bt.self&&Bt.self.location&&(u=Bt.self.location.protocol.slice(0,-1)),o=!Xo.test(u?u.toLowerCase():"")}t=o}if(t)Ht(i,"complete"),Ht(i,"success");else{i.m=6;try{var g=2<Pe(i)?i.g.statusText:""}catch(W){g=""}
1i.j=g+" ["+i.da()+"]",No(i)}}finally{Is(i)}}}function Is(i,e){if(i.g){po(i);const t=i.g,o=i.C[0]?()=>{}:null;i.g=null,i.C=null,e||Ht(i,"ready");try{t.onreadystatechange=o}catch(u){}}}function po(i){i.g&&i.L&&(i.g.ontimeout=null),i.A&&(Bt.clearTimeout(i.A),i.A=null)}function Pe(i){return i.g?i.g.readyState:0}function P(i){try{if(!i.g)return null;if("response"in i.g)return i.g.response;switch(i.K){case Js:case"text":return i.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in i.g)return i.g.mozResponseArrayBuffer}return null}catch(e){return null}}function ce(i){let e="";return Qn(i,function(t,o){e+=o,e+=":",e+=t,e+="\r\n"}),e}function He(i,e,t){e:{for(o in t){var o=!1;break e}o=!0}o||(t=ce(t),"string"==typeof i?null!=t&&encodeURIComponent(String(t)):ri(i,e,t))}function dt(i,e,t){return t&&t.internalChannelParams&&t.internalChannelParams[i]||e}function Et(i){this.Ga=0,this.j=[],this.l=new Wi,this.pa=this.wa=this.I=this.Y=this.g=this.Da=this.F=this.na=this.o=this.U=this.s=null,this.fb=this.W=0,this.cb=dt("failFast",!1,i),this.G=this.v=this.u=this.m=this.h=null,this.aa=!0,this.Fa=this.V=-1,this.ba=this.A=this.C=0,this.ab=dt("baseRetryDelayMs",5e3,i),this.hb=dt("retryDelaySeedMs",1e4,i),this.eb=dt("forwardChannelMaxRetries",2,i),this.xa=dt("forwardChannelRequestTimeoutMs",2e4,i),this.va=i&&i.xmlHttpFactory||void 0,this.Ha=i&&i.dc||!1,this.L=void 0,this.J=i&&i.supportsCrossDomainXhr||!1,this.K="",this.i=new $i(i&&i.concurrentRequestLimit),this.Ja=new mi,this.P=i&&i.fastHandshake||!1,this.O=i&&i.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.bb=i&&i.bc||!1,i&&i.Ea&&this.l.Ea(),i&&i.forceLongPolling&&(this.aa=!1),this.ca=!this.P&&this.aa&&i&&i.detectBufferingProxy||!1,this.qa=void 0,i&&i.longPollingTimeout&&0<i.longPollingTimeout&&(this.qa=i.longPollingTimeout),this.oa=void 0,this.S=0,this.M=!1,this.ma=this.B=null}function kt(i){if(En(i),3==i.H){var e=i.W++,t=gr(i.I);if(ri(t,"SID",i.K),ri(t,"RID",e),ri(t,"TYPE","terminate"),er(i,t),(e=new Ks(i,i.l,e)).L=2,e.v=xi(gr(t)),t=!1,Bt.navigator&&Bt.navigator.sendBeacon)try{t=Bt.navigator.sendBeacon(e.v.toString(),"")}catch(o){}!t&&Bt.Image&&((new Image).src=e.v,t=!0),t||(e.g=ea(e.l,null),e.g.ha(e.v)),e.G=Date.now(),Jo(e)}ur(i)}function Kt(i){i.g&&(Kr(i),i.g.cancel(),i.g=null)}function En(i){Kt(i),i.u&&(Bt.clearTimeout(i.u),i.u=null),us(i),i.i.cancel(),i.m&&("number"==typeof i.m&&Bt.clearTimeout(i.m),i.m=null)}function In(i){if(!hr(i.i)&&!i.m){i.m=!0;var e=i.Na;zn||_r(),ai||(zn(),ai=!0),Hi.add(e,i),i.C=0}}function ji(i,e){var t;t=e?e.m:i.W++;const o=gr(i.I);ri(o,"SID",i.K),ri(o,"RID",t),ri(o,"AID",i.V),er(i,o),i.o&&i.s&&He(o,i.o,i.s),t=new Ks(i,i.l,t,i.C+1),null===i.o&&(t.I=i.s),e&&(i.j=e.F.concat(i.j)),e=Gn(i,t,1e3),t.setTimeout(Math.round(.5*i.xa)+Math.round(.5*i.xa*Math.random())),oe(i.i,t),aa(t,o,e)}function er(i,e){i.na&&Qn(i.na,function(t,o){ri(e,o,t)}),i.h&&bo({},function(t,o){ri(e,o,t)})}function Gn(i,e,t){t=Math.min(i.j.length,t);var o=i.h?Dn(i.h.Va,i.h,i):null;e:{var u=i.j;let g=-1;for(;;){const E=["count="+t];-1==g?0<t?(g=u[0].g,E.push("ofs="+g)):g=0:E.push("ofs="+g);let W=!0;for(let pe=0;pe<t;pe++){let Ce=u[pe].g;const et=u[pe].map;if(Ce-=g,0>Ce)g=Math.max(0,u[pe].g-100),W=!1;else try{hi(et,E,"req"+Ce+"_")}catch(It){o&&o(et)}}if(W){o=E.join("&");break e}}}return i=i.j.splice(0,t),e.F=i,o}function Qi(i){if(!i.g&&!i.u){i.ba=1;var e=i.Ma;zn||_r(),ai||(zn(),ai=!0),Hi.add(e,i),i.A=0}}function vr(i){return!(i.g||i.u||3<=i.A||(i.ba++,i.u=Jr(Dn(i.Ma,i),es(i,i.A)),i.A++,0))}function Kr(i){null!=i.B&&(Bt.clearTimeout(i.B),i.B=null)}function Wr(i){i.g=new Ks(i,i.l,"rpc",i.ba),null===i.o&&(i.g.I=i.s),i.g.O=0;var e=gr(i.wa);ri(e,"RID","rpc"),ri(e,"SID",i.K),ri(e,"AID",i.V),ri(e,"CI",i.G?"0":"1"),!i.G&&i.qa&&ri(e,"TO",i.qa),ri(e,"TYPE","xmlhttp"),er(i,e),i.o&&i.s&&He(e,i.o,i.s),i.L&&i.g.setTimeout(i.L);var t=i.g;i=i.pa,t.L=1,t.v=xi(gr(e)),t.s=null,t.S=!0,yo(t,i)}function us(i){null!=i.v&&(Bt.clearTimeout(i.v),i.v=null)}function rs(i,e){var t=null;if(i.g==e){us(i),Kr(i),i.g=null;var o=2}else{if(!ge(i.i,e))return;t=e.F,J(i.i,e),o=1}if(0!=i.H)if(e.i)if(1==o){t=e.s?e.s.length:0,e=Date.now()-e.G;var u=i.C;Ht(o=cn(),new Gi(o,t)),In(i)}else Qi(i);else if(3==(u=e.o)||0==u&&0<e.ca||!(1==o&&function Di(i,e){return!(as(i.i)>=i.i.j-(i.m?1:0)||(i.m?(i.j=e.F.concat(i.j),0):1==i.H||2==i.H||i.C>=(i.cb?0:i.eb)||(i.m=Jr(Dn(i.Na,i,e),es(i,i.C)),i.C++,0)))}(i,e)||2==o&&vr(i)))switch(t&&0<t.length&&(e=i.i,e.i=e.i.concat(t)),u){case 1:Zr(i,5);break;case 4:Zr(i,10);break;case 3:Zr(i,6);break;default:Zr(i,2)}}function es(i,e){let t=i.ab+Math.floor(Math.random()*i.hb);return i.isActive()||(t*=2),t*e}function Zr(i,e){if(i.l.info("Error code "+e),2==e){var t=null;i.h&&(t=null);var o=Dn(i.pb,i);t||(t=new Yi("//www.google.com/images/cleardot.gif"),Bt.location&&"http"==Bt.location.protocol||Cs(t,"https"),xi(t)),function zs(i,e){const t=new Wi;if(Bt.Image){const o=new Image;o.onload=vn(Ss,t,o,"TestLoadImage: loaded",!0,e),o.onerror=vn(Ss,t,o,"TestLoadImage: error",!1,e),o.onabort=vn(Ss,t,o,"TestLoadImage: abort",!1,e),o.ontimeout=vn(Ss,t,o,"TestLoadImage: timeout",!1,e),Bt.setTimeout(function(){o.ontimeout&&o.ontimeout()},1e4),o.src=i}else e(!1)}(t.toString(),o)}else oi(2);i.H=0,i.h&&i.h.za(e),ur(i),En(i)}function ur(i){if(i.H=0,i.ma=[],i.h){const e=We(i.i);(0!=e.length||0!=i.j.length)&&(st(i.ma,e),st(i.ma,i.j),i.i.i.length=0,ct(i.j),i.j.length=0),i.h.ya()}}function Or(i,e,t){var o=t instanceof Yi?gr(t):new Yi(t);if(""!=o.g)e&&(o.g=e+"."+o.g),Vs(o,o.m);else{var u=Bt.location;o=u.protocol,e=e?e+"."+u.hostname:u.hostname,u=+u.port;var g=new Yi(null);o&&Cs(g,o),e&&(g.g=e),u&&Vs(g,u),t&&(g.l=t),o=g}return e=i.Da,(t=i.F)&&e&&ri(o,t,e),ri(o,"VER",i.ra),er(i,o),o}function ea(i,e,t){if(e&&!i.J)throw Error("Can't create secondary domain capable XhrIo object.");return(e=new fr(t&&i.Ha&&!i.va?new Qs({ob:!0}):i.va)).Oa(i.J),e}function Xs(){}function Bs(){if(vi&&!(10<=Number(Zt)))throw Error("Environmental error: no available transport.")}function Sr(i,e){St.call(this),this.g=new Et(e),this.l=i,this.h=e&&e.messageUrlParams||null,i=e&&e.messageHeaders||null,e&&e.clientProtocolHeaderRequired&&(i?i["X-Client-Protocol"]="webchannel":i={"X-Client-Protocol":"webchannel"}),this.g.s=i,i=e&&e.initMessageHeaders||null,e&&e.messageContentType&&(i?i["X-WebChannel-Content-Type"]=e.messageContentType:i={"X-WebChannel-Content-Type":e.messageContentType}),e&&e.Ca&&(i?i["X-WebChannel-Client-Profile"]=e.Ca:i={"X-WebChannel-Client-Profile":e.Ca}),this.g.U=i,(i=e&&e.cc)&&!Ut(i)&&(this.g.o=i),this.A=e&&e.supportsCrossDomainXhr||!1,this.v=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!Ut(e)&&(this.g.F=e,null!==(i=this.h)&&e in i&&e in(i=this.h)&&delete i[e]),this.j=new ao(this)}function Hs(i){ho.call(this),i.__headers__&&(this.headers=i.__headers__,this.statusCode=i.__status__,delete i.__headers__,delete i.__status__);var e=i.__sm__;if(e){e:{for(const t in e){i=t;break e}i=void 0}(this.i=i)&&(i=this.i,e=null!==e&&i in e?e[i]:void 0),this.data=e}else this.data=i}function Wo(){go.call(this),this.status=1}function ao(i){this.g=i}function Ei(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.m=Array(this.blockSize),this.i=this.h=0,this.reset()}function Vi(i,e,t){t||(t=0);var o=Array(16);if("string"==typeof e)for(var u=0;16>u;++u)o[u]=e.charCodeAt(t++)|e.charCodeAt(t++)<<8|e.charCodeAt(t++)<<16|e.charCodeAt(t++)<<24;else for(u=0;16>u;++u)o[u]=e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24;var g=i.g[3],E=(e=i.g[0])+(g^(t=i.g[1])&((u=i.g[2])^g))+o[0]+3614090360&4294967295;E=(t=(u=(g=(e=(t=(u=(g=(e=(t=(u=(g=(e=(t=(u=(g=(e=(t=(u=(g=(e=(t=(u=(g=(e=(t=(u=(g=(e=(t=(u=(g=(e=(t=(u=(g=(e=(t=(u=(g=(e=(t=(u=(g=(e=(t=(u=(g=(e=(t=(u=(g=(e=(t=(u=(g=(e=(t=(u=(g=(e=t+(E<<7&4294967295|E>>>25))+((E=g+(u^e&(t^u))+o[1]+3905402710&4294967295)<<12&4294967295|E>>>20))+((E=u+(t^g&(e^t))+o[2]+606105819&4294967295)<<17&4294967295|E>>>15))+((E=t+(e^u&(g^e))+o[3]+3250441966&4294967295)<<22&4294967295|E>>>10))+((E=e+(g^t&(u^g))+o[4]+4118548399&4294967295)<<7&4294967295|E>>>25))+((E=g+(u^e&(t^u))+o[5]+1200080426&4294967295)<<12&4294967295|E>>>
120))+((E=u+(t^g&(e^t))+o[6]+2821735955&4294967295)<<17&4294967295|E>>>15))+((E=t+(e^u&(g^e))+o[7]+4249261313&4294967295)<<22&4294967295|E>>>10))+((E=e+(g^t&(u^g))+o[8]+1770035416&4294967295)<<7&4294967295|E>>>25))+((E=g+(u^e&(t^u))+o[9]+2336552879&4294967295)<<12&4294967295|E>>>20))+((E=u+(t^g&(e^t))+o[10]+4294925233&4294967295)<<17&4294967295|E>>>15))+((E=t+(e^u&(g^e))+o[11]+2304563134&4294967295)<<22&4294967295|E>>>10))+((E=e+(g^t&(u^g))+o[12]+1804603682&4294967295)<<7&4294967295|E>>>25))+((E=g+(u^e&(t^u))+o[13]+4254626195&4294967295)<<12&4294967295|E>>>20))+((E=u+(t^g&(e^t))+o[14]+2792965006&4294967295)<<17&4294967295|E>>>15))+((E=t+(e^u&(g^e))+o[15]+1236535329&4294967295)<<22&4294967295|E>>>10))+((E=e+(u^g&(t^u))+o[1]+4129170786&4294967295)<<5&4294967295|E>>>27))+((E=g+(t^u&(e^t))+o[6]+3225465664&4294967295)<<9&4294967295|E>>>23))+((E=u+(e^t&(g^e))+o[11]+643717713&4294967295)<<14&4294967295|E>>>18))+((E=t+(g^e&(u^g))+o[0]+3921069994&4294967295)<<20&4294967295|E>>>12))+((E=e+(u^g&(t^u))+o[5]+3593408605&4294967295)<<5&4294967295|E>>>27))+((E=g+(t^u&(e^t))+o[10]+38016083&4294967295)<<9&4294967295|E>>>23))+((E=u+(e^t&(g^e))+o[15]+3634488961&4294967295)<<14&4294967295|E>>>18))+((E=t+(g^e&(u^g))+o[4]+3889429448&4294967295)<<20&4294967295|E>>>12))+((E=e+(u^g&(t^u))+o[9]+568446438&4294967295)<<5&4294967295|E>>>27))+((E=g+(t^u&(e^t))+o[14]+3275163606&4294967295)<<9&4294967295|E>>>23))+((E=u+(e^t&(g^e))+o[3]+4107603335&4294967295)<<14&4294967295|E>>>18))+((E=t+(g^e&(u^g))+o[8]+1163531501&4294967295)<<20&4294967295|E>>>12))+((E=e+(u^g&(t^u))+o[13]+2850285829&4294967295)<<5&4294967295|E>>>27))+((E=g+(t^u&(e^t))+o[2]+4243563512&4294967295)<<9&4294967295|E>>>23))+((E=u+(e^t&(g^e))+o[7]+1735328473&4294967295)<<14&4294967295|E>>>18))+((E=t+(g^e&(u^g))+o[12]+2368359562&4294967295)<<20&4294967295|E>>>12))+((E=e+(t^u^g)+o[5]+4294588738&4294967295)<<4&4294967295|E>>>28))+((E=g+(e^t^u)+o[8]+2272392833&4294967295)<<11&4294967295|E>>>21))+((E=u+(g^e^t)+o[11]+1839030562&4294967295)<<16&4294967295|E>>>16))+((E=t+(u^g^e)+o[14]+4259657740&4294967295)<<23&4294967295|E>>>9))+((E=e+(t^u^g)+o[1]+2763975236&4294967295)<<4&4294967295|E>>>28))+((E=g+(e^t^u)+o[4]+1272893353&4294967295)<<11&4294967295|E>>>21))+((E=u+(g^e^t)+o[7]+4139469664&4294967295)<<16&4294967295|E>>>16))+((E=t+(u^g^e)+o[10]+3200236656&4294967295)<<23&4294967295|E>>>9))+((E=e+(t^u^g)+o[13]+681279174&4294967295)<<4&4294967295|E>>>28))+((E=g+(e^t^u)+o[0]+3936430074&4294967295)<<11&4294967295|E>>>21))+((E=u+(g^e^t)+o[3]+3572445317&4294967295)<<16&4294967295|E>>>16))+((E=t+(u^g^e)+o[6]+76029189&4294967295)<<23&4294967295|E>>>9))+((E=e+(t^u^g)+o[9]+3654602809&4294967295)<<4&4294967295|E>>>28))+((E=g+(e^t^u)+o[12]+3873151461&4294967295)<<11&4294967295|E>>>21))+((E=u+(g^e^t)+o[15]+530742520&4294967295)<<16&4294967295|E>>>16))+((E=t+(u^g^e)+o[2]+3299628645&4294967295)<<23&4294967295|E>>>9))+((E=e+(u^(t|~g))+o[0]+4096336452&4294967295)<<6&4294967295|E>>>26))+((E=g+(t^(e|~u))+o[7]+1126891415&4294967295)<<10&4294967295|E>>>22))+((E=u+(e^(g|~t))+o[14]+2878612391&4294967295)<<15&4294967295|E>>>17))+((E=t+(g^(u|~e))+o[5]+4237533241&4294967295)<<21&4294967295|E>>>11))+((E=e+(u^(t|~g))+o[12]+1700485571&4294967295)<<6&4294967295|E>>>26))+((E=g+(t^(e|~u))+o[3]+2399980690&4294967295)<<10&4294967295|E>>>22))+((E=u+(e^(g|~t))+o[10]+4293915773&4294967295)<<15&4294967295|E>>>17))+((E=t+(g^(u|~e))+o[1]+2240044497&4294967295)<<21&4294967295|E>>>11))+((E=e+(u^(t|~g))+o[8]+1873313359&4294967295)<<6&4294967295|E>>>26))+((E=g+(t^(e|~u))+o[15]+4264355552&4294967295)<<10&4294967295|E>>>22))+((E=u+(e^(g|~t))+o[6]+2734768916&4294967295)<<15&4294967295|E>>>17))+((E=t+(g^(u|~e))+o[13]+1309151649&4294967295)<<21&4294967295|E>>>11))+((g=(e=t+((E=e+(u^(t|~g))+o[4]+4149444226&4294967295)<<6&4294967295|E>>>26))+((E=g+(t^(e|~u))+o[11]+3174756917&4294967295)<<10&4294967295|E>>>22))^((u=g+((E=u+(e^(g|~t))+o[2]+718787259&4294967295)<<15&4294967295|E>>>17))|~e))+o[9]+3951481745&4294967295,i.g[0]=i.g[0]+e&4294967295,i.g[1]=i.g[1]+(u+(E<<21&4294967295|E>>>11))&4294967295,i.g[2]=i.g[2]+u&4294967295,i.g[3]=i.g[3]+g&4294967295}function Ti(i,e){this.h=e;for(var t=[],o=!0,u=i.length-1;0<=u;u--){var g=0|i[u];o&&g==e||(t[u]=g,o=!1)}this.g=t}(me=fr.prototype).Oa=function(i){this.M=i},me.ha=function(i,e,t,o){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.I+"; newUri="+i);e=e?e.toUpperCase():"GET",this.I=i,this.j="",this.m=0,this.F=!1,this.h=!0,this.g=this.u?this.u.g():ws.g(),this.C=function co(i){return i.h||(i.h=i.i())}(this.u?this.u:ws),this.g.onreadystatechange=Dn(this.La,this);try{this.G=!0,this.g.open(e,String(i),!0),this.G=!1}catch(g){return void Eo(this,g)}
1if(i=t||"",t=new Map(this.headers),o)if(Object.getPrototypeOf(o)===Object.prototype)for(var u in o)t.set(u,o[u]);else{if("function"!=typeof o.keys||"function"!=typeof o.get)throw Error("Unknown input type for opt_headers: "+String(o));for(const g of o.keys())t.set(g,o.get(g))}o=Array.from(t.keys()).find(g=>"content-type"==g.toLowerCase()),u=Bt.FormData&&i instanceof Bt.FormData,!(0<=At(ls,e))||o||u||t.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[g,E]of t)this.g.setRequestHeader(g,E);this.K&&(this.g.responseType=this.K),"withCredentials"in this.g&&this.g.withCredentials!==this.M&&(this.g.withCredentials=this.M);try{po(this),0<this.B&&((this.L=function $r(i){return vi&&"number"==typeof i.timeout&&void 0!==i.ontimeout}(this.g))?(this.g.timeout=this.B,this.g.ontimeout=Dn(this.ua,this)):this.A=Ur(this.ua,this.B,this)),this.v=!0,this.g.send(i),this.v=!1}catch(g){Eo(this,g)}},me.ua=function(){void 0!==gt&&this.g&&(this.j="Timed out after "+this.B+"ms, aborting",this.m=8,Ht(this,"timeout"),this.abort(8))},me.abort=function(i){this.g&&this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1,this.m=i||7,Ht(this,"complete"),Ht(this,"abort"),Is(this))},me.N=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),Is(this,!0)),fr.$.N.call(this)},me.La=function(){this.s||(this.G||this.v||this.l?Fo(this):this.kb())},me.kb=function(){Fo(this)},me.isActive=function(){return!!this.g},me.da=function(){try{return 2<Pe(this)?this.g.status:-1}catch(i){return-1}},me.ja=function(){try{return this.g?this.g.responseText:""}catch(i){return""}},me.Wa=function(i){if(this.g){var e=this.g.responseText;return i&&0==e.indexOf(i)&&(e=e.substring(i.length)),sl(e)}},me.Ia=function(){return this.m},me.Sa=function(){return"string"==typeof this.j?this.j:String(this.j)},(me=Et.prototype).ra=8,me.H=1,me.Na=function(i){if(this.m)if(this.m=null,1==this.H){if(!i){this.W=Math.floor(1e5*Math.random()),i=this.W++;const u=new Ks(this,this.l,i);let g=this.s;if(this.U&&(g?(g=Qt(g),Ke(g,this.U)):g=this.U),null!==this.o||this.O||(u.I=g,g=null),this.P)e:{for(var e=0,t=0;t<this.j.length;t++){var o=this.j[t];if(void 0===(o="__data__"in o.map&&"string"==typeof(o=o.map.__data__)?o.length:void 0))break;if(4096<(e+=o)){e=t;break e}if(4096===e||t===this.j.length-1){e=t+1;break e}}e=1e3}else e=1e3;e=Gn(this,u,e),ri(t=gr(this.I),"RID",i),ri(t,"CVER",22),this.F&&ri(t,"X-HTTP-Session-Id",this.F),er(this,t),g&&(this.O?e="headers="+encodeURIComponent(String(ce(g)))+"&"+e:this.o&&He(t,this.o,g)),oe(this.i,u),this.bb&&ri(t,"TYPE","init"),this.P?(ri(t,"$req",e),ri(t,"SID","null"),u.aa=!0,aa(u,t,null)):aa(u,t,e),this.H=2}}else 3==this.H&&(i?ji(this,i):0==this.j.length||hr(this.i)||ji(this))},me.Ma=function(){if(this.u=null,Wr(this),this.ca&&!(this.M||null==this.g||0>=this.S)){var i=2*this.S;this.l.info("BP detection timer enabled: "+i),this.B=Jr(Dn(this.jb,this),i)}},me.jb=function(){this.B&&(this.B=null,this.l.info("BP detection timeout reached."),this.l.info("Buffering proxy detected and switch to long-polling!"),this.G=!1,this.M=!0,oi(10),Kt(this),Wr(this))},me.ib=function(){null!=this.v&&(this.v=null,Kt(this),vr(this),oi(19))},me.pb=function(i){i?(this.l.info("Successfully pinged google.com"),oi(2)):(this.l.info("Failed to ping google.com"),oi(1))},me.isActive=function(){return!!this.h&&this.h.isActive(this)},(me=Xs.prototype).Ba=function(){},me.Aa=function(){},me.za=function(){},me.ya=function(){},me.isActive=function(){return!0},me.Va=function(){},Bs.prototype.g=function(i,e){return new Sr(i,e)},Dt(Sr,St),Sr.prototype.m=function(){this.g.h=this.j,this.A&&(this.g.J=!0);var i=this.g,e=this.l,t=this.h||void 0;oi(0),i.Y=e,i.na=t||{},i.G=i.aa,i.I=Or(i,null,i.Y),In(i)},Sr.prototype.close=function(){kt(this.g)},Sr.prototype.u=function(i){var e=this.g;if("string"==typeof i){var t={};t.__data__=i,i=t}else this.v&&((t={}).__data__=Jn(i),i=t);e.j.push(new class{constructor(i,e){this.g=i,this.map=e}}(e.fb++,i)),3==e.H&&In(e)},Sr.prototype.N=function(){this.g.h=null,delete this.j,kt(this.g),delete this.g,Sr.$.N.call(this)},Dt(Hs,ho),Dt(Wo,go),Dt(ao,Xs),ao.prototype.Ba=function(){Ht(this.g,"a")},ao.prototype.Aa=function(i){Ht(this.g,new Hs(i))},ao.prototype.za=function(i){Ht(this.g,new Wo)},ao.prototype.ya=function(){Ht(this.g,"b")},Dt(Ei,function bi(){this.blockSize=-1}),Ei.prototype.reset=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.i=this.h=0},Ei.prototype.j=function(i,e){void 0===e&&(e=i.length);for(var t=e-this.blockSize,o=this.m,u=this.h,g=0;g<e;){if(0==u)for(;g<=t;)Vi(this,i,g),g+=this.blockSize;if("string"==typeof i){for(;g<e;)if(o[u++]=i.charCodeAt(g++),u==this.blockSize){Vi(this,o),u=0;break}}else for(;g<e;)if(o[u++]=i[g++],u==this.blockSize){Vi(this,o),u=0;break}}this.h=u,this.i+=e},Ei.prototype.l=function(){var i=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);i[0]=128;for(var e=1;e<i.length-8;++e)i[e]=0;var t=8*this.i;for(e=i.length-8;e<i.length;++e)i[e]=255&t,t/=256;for(this.j(i),i=Array(16),e=t=0;4>e;++e)for(var o=0;32>o;o+=8)i[t++]=this.g[e]>>>o&255;return i};var ts={};function bs(i){return-128<=i&&128>i?function pi(i,e){var t=ts;return Object.prototype.hasOwnProperty.call(t,i)?t[i]:t[i]=e(i)}(i,function(e){return new Ti([0|e],0>e?-1:0)}):new Ti([0|i],0>i?-1:0)}
1function qr(i){if(isNaN(i)||!isFinite(i))return Ws;if(0>i)return Vr(qr(-i));for(var e=[],t=1,o=0;i>=t;o++)e[o]=i/t|0,t*=Rr;return new Ti(e,0)}var Rr=4294967296,Ws=bs(0),ga=bs(1),ro=bs(16777216);function Zs(i){if(0!=i.h)return!1;for(var e=0;e<i.g.length;e++)if(0!=i.g[e])return!1;return!0}function eo(i){return-1==i.h}function Vr(i){for(var e=i.g.length,t=[],o=0;o<e;o++)t[o]=~i.g[o];return new Ti(t,~i.h).add(ga)}function Yo(i,e){return i.add(Vr(e))}function ya(i,e){for(;(65535&i[e])!=i[e];)i[e+1]+=i[e]>>>16,i[e]&=65535,e++}function cs(i,e){this.g=i,this.h=e}function Bo(i,e){if(Zs(e))throw Error("division by zero");if(Zs(i))return new cs(Ws,Ws);if(eo(i))return e=Bo(Vr(i),e),new cs(Vr(e.g),Vr(e.h));if(eo(e))return e=Bo(i,Vr(e)),new cs(Vr(e.g),e.h);if(30<i.g.length){if(eo(i)||eo(e))throw Error("slowDivide_ only works with positive integers.");for(var t=ga,o=e;0>=o.X(i);)t=Ta(t),o=Ta(o);var u=So(t,1),g=So(o,1);for(o=So(o,2),t=So(t,2);!Zs(o);){var E=g.add(o);0>=E.X(i)&&(u=u.add(t),g=E),o=So(o,1),t=So(t,1)}return e=Yo(i,u.R(e)),new cs(u,e)}for(u=Ws;0<=i.X(e);){for(t=Math.max(1,Math.floor(i.ea()/e.ea())),o=48>=(o=Math.ceil(Math.log(t)/Math.LN2))?1:Math.pow(2,o-48),E=(g=qr(t)).R(e);eo(E)||0<E.X(i);)E=(g=qr(t-=o)).R(e);Zs(g)&&(g=ga),u=u.add(g),i=Yo(i,E)}return new cs(u,i)}function Ta(i){for(var e=i.g.length+1,t=[],o=0;o<e;o++)t[o]=i.D(o)<<1|i.D(o-1)>>>31;return new Ti(t,i.h)}function So(i,e){var t=e>>5;e%=32;for(var o=i.g.length-t,u=[],g=0;g<o;g++)u[g]=0<e?i.D(g+t)>>>e|i.D(g+t+1)<<32-e:i.D(g+t);return new Ti(u,i.h)}(me=Ti.prototype).ea=function(){if(eo(this))return-Vr(this).ea();for(var i=0,e=1,t=0;t<this.g.length;t++){var o=this.D(t);i+=(0<=o?o:Rr+o)*e,e*=Rr}return i},me.toString=function(i){if(2>(i=i||10)||36<i)throw Error("radix out of range: "+i);if(Zs(this))return"0";if(eo(this))return"-"+Vr(this).toString(i);for(var e=qr(Math.pow(i,6)),t=this,o="";;){var u=Bo(t,e).g,g=((0<(t=Yo(t,u.R(e))).g.length?t.g[0]:t.h)>>>0).toString(i);if(Zs(t=u))return g+o;for(;6>g.length;)g="0"+g;o=g+o}},me.D=function(i){return 0>i?0:i<this.g.length?this.g[i]:this.h},me.X=function(i){return eo(i=Yo(this,i))?-1:Zs(i)?0:1},me.abs=function(){return eo(this)?Vr(this):this},me.add=function(i){for(var e=Math.max(this.g.length,i.g.length),t=[],o=0,u=0;u<=e;u++){var g=o+(65535&this.D(u))+(65535&i.D(u)),E=(g>>>16)+(this.D(u)>>>16)+(i.D(u)>>>16);o=E>>>16,t[u]=(E&=65535)<<16|(g&=65535)}return new Ti(t,-2147483648&t[t.length-1]?-1:0)},me.R=function(i){if(Zs(this)||Zs(i))return Ws;if(eo(this))return eo(i)?Vr(this).R(Vr(i)):Vr(Vr(this).R(i));if(eo(i))return Vr(this.R(Vr(i)));if(0>this.X(ro)&&0>i.X(ro))return qr(this.ea()*i.ea());for(var e=this.g.length+i.g.length,t=[],o=0;o<2*e;o++)t[o]=0;for(o=0;o<this.g.length;o++)for(var u=0;u<i.g.length;u++){var g=this.D(o)>>>16,E=65535&this.D(o),W=i.D(u)>>>16,pe=65535&i.D(u);t[2*o+2*u]+=E*pe,ya(t,2*o+2*u),t[2*o+2*u+1]+=g*pe,ya(t,2*o+2*u+1),t[2*o+2*u+1]+=E*W,ya(t,2*o+2*u+1),t[2*o+2*u+2]+=g*W,ya(t,2*o+2*u+2)}for(o=0;o<e;o++)t[o]=t[2*o+1]<<16|t[2*o];for(o=e;o<2*e;o++)t[o]=0;return new Ti(t,0)},me.gb=function(i){return Bo(this,i).h},me.and=function(i){for(var e=Math.max(this.g.length,i.g.length),t=[],o=0;o<e;o++)t[o]=this.D(o)&i.D(o);return new Ti(t,this.h&i.h)},me.or=function(i){for(var e=Math.max(this.g.length,i.g.length),t=[],o=0;o<e;o++)t[o]=this.D(o)|i.D(o);return new Ti(t,this.h|i.h)},me.xor=function(i){for(var e=Math.max(this.g.length,i.g.length),t=[],o=0;o<e;o++)t[o]=this.D(o)^i.D(o);return new Ti(t,this.h^i.h)},Bs.prototype.createWebChannel=Bs.prototype.g,Sr.prototype.send=Sr.prototype.u,Sr.prototype.open=Sr.prototype.m,Sr.prototype.close=Sr.prototype.close,io.NO_ERROR=0,io.TIMEOUT=8,io.HTTP_ERROR=6,Ar.COMPLETE="complete",Oo.EventType=oo,oo.OPEN="a",oo.CLOSE="b",oo.ERROR="c",oo.MESSAGE="d",St.prototype.listen=St.prototype.O,fr.prototype.listenOnce=fr.prototype.P,fr.prototype.getLastError=fr.prototype.Sa,fr.prototype.getLastErrorCode=fr.prototype.Ia,fr.prototype.getStatus=fr.prototype.da,fr.prototype.getResponseJson=fr.prototype.Wa,fr.prototype.getResponseText=fr.prototype.ja,fr.prototype.send=fr.prototype.ha,fr.prototype.setWithCredentials=fr.prototype.Oa,Ei.prototype.digest=Ei.prototype.l,Ei.prototype.reset=Ei.prototype.reset,Ei.prototype.update=Ei.prototype.j,Ti.prototype.add=Ti.prototype.add,Ti.prototype.multiply=Ti.prototype.R,Ti.prototype.modulo=Ti.prototype.gb,Ti.prototype.compare=Ti.prototype.X,Ti.prototype.toNumber=Ti.prototype.ea,Ti.prototype.toString=Ti.prototype.toString,Ti.prototype.getBits=Ti.prototype.D,Ti.fromNumber=qr,Ti.fromString=function Co(i,e){if(0==i.length)throw Error("number format error: empty string");if(2>(e=e||10)||36<e)throw Error("radix out of range: "+e);if("-"==i.charAt(0))return Vr(Co(i.substring(1),e));if(0<=i.indexOf("-"))throw Error('number format error: interior "-" character');for(var t=qr(Math.pow(e,8)),o=Ws,u=0;u<i.length;u+=8){var g=Math.min(8,i.length-u),E=parseInt(i.substring(u,u+g),e);8>g?(g=qr(Math.pow(e,g)),o=o.R(g).add(qr(E))):o=(o=o.R(t)).add(qr(E))}return o};var Da=Fe.createWebChannelTransport=function(){return new Bs},la=Fe.getStatEventTarget=function(){return cn()},Zo=Fe.ErrorCode=io,ee=Fe.EventType=Ar,z=Fe.Event=Ft,H=Fe.Stat={xb:0,Ab:1,Bb:2,Ub:3,Zb:4,Wb:5,Xb:6,Vb:7,Tb:8,Yb:9,PROXY:10,NOPROXY:11,Rb:12,Nb:13,Ob:14,Mb:15,Pb:16,Qb:17,tb:18,sb:19,ub:20},he=Fe.FetchXmlHttpFactory=Qs,a=Fe.WebChannel=Oo,d=Fe.XhrIo=fr,w=Fe.Md5=Ei,A=Fe.Integer=Ti;const Q="@firebase/firestore";class xe{constructor(e){this.uid=e}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(e){return e.uid===this.uid}}xe.UNAUTHENTICATED=new xe(null),xe.GOOGLE_CREDENTIALS=new xe("google-credentials-uid"),xe.FIRST_PARTY=new xe("first-party-uid"),xe.MOCK_USER=new xe("mock-user");let bt="9.23.0";const xt=new ze.Yd("@firebase/firestore");function Jt(){return xt.logLevel}function Wt(i,...e){if(xt.logLevel<=ze.in.DEBUG){const t=e.map(kr);xt.debug(`Firestore (${bt}): ${i}`,...t)}}function ti(i,...e){if(xt.logLevel<=ze.in.ERROR){const t=e.map(kr);xt.error(`Firestore (${bt}): ${i}`,...t)}}function Zi(i,...e){if(xt.logLevel<=ze.in.WARN){const t=e.map(kr);xt.warn(`Firestore (${bt}): ${i}`,...t)}}function kr(i){if("string"==typeof i)return i;try{return JSON.stringify(i)}catch(t){return i}}function qn(i="Unexpected state"){const e=`FIRESTORE (${bt}) INTERNAL ASSERTION FAILED: `+i;throw ti(e),new Error(e)}function yi(i,e){i||qn()}function ci(i,e){return i}const un={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENT
1ED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class On extends Re.ZR{constructor(e,t){super(e,t),this.code=e,this.message=t,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class br{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}class ol{constructor(e,t){this.user=t,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}}class Gs{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,t){e.enqueueRetryable(()=>t(xe.UNAUTHENTICATED))}shutdown(){}}class Fa{constructor(e){this.token=e,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(e,t){this.changeListener=t,e.enqueueRetryable(()=>t(this.token.user))}shutdown(){this.changeListener=null}}class ds{constructor(e){this.t=e,this.currentUser=xe.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,t){var o=this;let u=this.i;const g=Ce=>this.i!==u?(u=this.i,t(Ce)):Promise.resolve();let E=new br;this.o=()=>{this.i++,this.currentUser=this.u(),E.resolve(),E=new br,e.enqueueRetryable(()=>g(this.currentUser))};const W=()=>{const Ce=E;e.enqueueRetryable((0,je.Z)(function*(){yield Ce.promise,yield g(o.currentUser)}))},pe=Ce=>{Wt("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=Ce,this.auth.addAuthTokenListener(this.o),W()};this.t.onInit(Ce=>pe(Ce)),setTimeout(()=>{if(!this.auth){const Ce=this.t.getImmediate({optional:!0});Ce?pe(Ce):(Wt("FirebaseAuthCredentialsProvider","Auth not yet detected"),E.resolve(),E=new br)}},0),W()}getToken(){const e=this.i,t=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(t).then(o=>this.i!==e?(Wt("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):o?(yi("string"==typeof o.accessToken),new ol(o.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.auth.removeAuthTokenListener(this.o)}u(){const e=this.auth&&this.auth.getUid();return yi(null===e||"string"==typeof e),new xe(e)}}class ua{constructor(e,t,o){this.h=e,this.l=t,this.m=o,this.type="FirstParty",this.user=xe.FIRST_PARTY,this.g=new Map}p(){return this.m?this.m():null}get headers(){this.g.set("X-Goog-AuthUser",this.h);const e=this.p();return e&&this.g.set("Authorization",e),this.l&&this.g.set("X-Goog-Iam-Authorization-Token",this.l),this.g}}class ou{constructor(e,t,o){this.h=e,this.l=t,this.m=o}getToken(){return Promise.resolve(new ua(this.h,this.l,this.m))}start(e,t){e.enqueueRetryable(()=>t(xe.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class al{constructor(e){this.value=e,this.type="AppCheck",this.headers=new Map,e&&e.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class Ka{constructor(e){this.I=e,this.forceRefresh=!1,this.appCheck=null,this.T=null}start(e,t){const o=g=>{null!=g.error&&Wt("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${g.error.message}`);const E=g.token!==this.T;return this.T=g.token,Wt("FirebaseAppCheckTokenProvider",`Received ${E?"new":"existing"} token.`),E?t(g.token):Promise.resolve()};this.o=g=>{e.enqueueRetryable(()=>o(g))};const u=g=>{Wt("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=g,this.appCheck.addTokenListener(this.o)};this.I.onInit(g=>u(g)),setTimeout(()=>{if(!this.appCheck){const g=this.I.getImmediate({optional:!0});g?u(g):Wt("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then(t=>t?(yi("string"==typeof t.token),this.T=t.token,new al(t.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function zl(i){const e="undefined"!=typeof self&&(self.crypto||self.msCrypto),t=new Uint8Array(i);if(e&&"function"==typeof e.getRandomValues)e.getRandomValues(t);else for(let o=0;o<i;o++)t[o]=Math.floor(256*Math.random());return t}class hs{static A(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=Math.floor(256/e.length)*e.length;let o="";for(;o.length<20;){const u=zl(40);for(let g=0;g<u.length;++g)o.length<20&&u[g]<t&&(o+=e.charAt(u[g]%e.length))}return o}}function cr(i,e){return i<e?-1:i>e?1:0}function Wl(i,e,t){return i.length===e.length&&i.every((o,u)=>t(o,e[u]))}function fc(i){return i+"\0"}class to{constructor(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new On(un.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new On(un.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<-62135596800)throw new On(un.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new On(un.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}static now(){return to.fromMillis(Date.now())}static fromDate(e){return to.fromMillis(e.getTime())}static fromMillis(e){const t=Math.floor(e/1e3),o=Math.floor(1e6*(e-1e3*t));return new to(t,o)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(e){return this.seconds===e.seconds?cr(this.nanoseconds,e.nanoseconds):cr(this.seconds,e.seconds)}isEqual(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){return String(this.seconds- -62135596800).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}
1}class Bi{constructor(e){this.timestamp=e}static fromTimestamp(e){return new Bi(e)}static min(){return new Bi(new to(0,0))}static max(){return new Bi(new to(253402300799,999999999))}compareTo(e){return this.timestamp._compareTo(e.timestamp)}isEqual(e){return this.timestamp.isEqual(e.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}class au{constructor(e,t,o){void 0===t?t=0:t>e.length&&qn(),void 0===o?o=e.length-t:o>e.length-t&&qn(),this.segments=e,this.offset=t,this.len=o}get length(){return this.len}isEqual(e){return 0===au.comparator(this,e)}child(e){const t=this.segments.slice(this.offset,this.limit());return e instanceof au?e.forEach(o=>{t.push(o)}):t.push(e),this.construct(t)}limit(){return this.offset+this.length}popFirst(e){return this.construct(this.segments,this.offset+(e=void 0===e?1:e),this.length-e)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(e){return this.segments[this.offset+e]}isEmpty(){return 0===this.length}isPrefixOf(e){if(e.length<this.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}isImmediateParentOf(e){if(this.length+1!==e.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}forEach(e){for(let t=this.offset,o=this.limit();t<o;t++)e(this.segments[t])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,t){const o=Math.min(e.length,t.length);for(let u=0;u<o;u++){const g=e.get(u),E=t.get(u);if(g<E)return-1;if(g>E)return 1}return e.length<t.length?-1:e.length>t.length?1:0}}class zr extends au{construct(e,t,o){return new zr(e,t,o)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}static fromString(...e){const t=[];for(const o of e){if(o.indexOf("//")>=0)throw new On(un.INVALID_ARGUMENT,`Invalid segment (${o}). Paths must not contain // in them.`);t.push(...o.split("/").filter(u=>u.length>0))}return new zr(t)}static emptyPath(){return new zr([])}}const vl=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class uo extends au{construct(e,t,o){return new uo(e,t,o)}static isValidIdentifier(e){return vl.test(e)}canonicalString(){return this.toArray().map(e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),uo.isValidIdentifier(e)||(e="`"+e+"`"),e)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new uo(["__name__"])}static fromServerFormat(e){const t=[];let o="",u=0;const g=()=>{if(0===o.length)throw new On(un.INVALID_ARGUMENT,`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);t.push(o),o=""};let E=!1;for(;u<e.length;){const W=e[u];if("\\"===W){if(u+1===e.length)throw new On(un.INVALID_ARGUMENT,"Path has trailing escape character: "+e);const pe=e[u+1];if("\\"!==pe&&"."!==pe&&"`"!==pe)throw new On(un.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);o+=pe,u+=2}else"`"===W?(E=!E,u++):"."!==W||E?(o+=W,u++):(g(),u++)}if(g(),E)throw new On(un.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new uo(t)}static emptyPath(){return new uo([])}}class $n{constructor(e){this.path=e}static fromPath(e){return new $n(zr.fromString(e))}static fromName(e){return new $n(zr.fromString(e).popFirst(5))}static empty(){return new $n(zr.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return null!==e&&0===zr.comparator(this.path,e.path)}toString(){return this.path.toString()}static comparator(e,t){return zr.comparator(e.path,t.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new $n(new zr(e.slice()))}}class qa{constructor(e,t,o,u){this.indexId=e,this.collectionGroup=t,this.fields=o,this.indexState=u}}function Ea(i){return i.fields.find(e=>2===e.kind)}function ll(i){return i.fields.filter(e=>2!==e.kind)}qa.UNKNOWN_ID=-1;class Ho{constructor(e,t){this.fieldPath=e,this.kind=t}}class bl{constructor(e,t){this.sequenceNumber=e,this.offset=t}static empty(){return new bl(0,Go.min())}}
1function Qa(i,e){const t=i.toTimestamp().seconds,o=i.toTimestamp().nanoseconds+1,u=Bi.fromTimestamp(1e9===o?new to(t+1,0):new to(t,o));return new Go(u,$n.empty(),e)}function va(i){return new Go(i.readTime,i.key,-1)}class Go{constructor(e,t,o){this.readTime=e,this.documentKey=t,this.largestBatchId=o}static min(){return new Go(Bi.min(),$n.empty(),-1)}static max(){return new Go(Bi.max(),$n.empty(),-1)}}function uu(i,e){let t=i.readTime.compareTo(e.readTime);return 0!==t?t:(t=$n.comparator(i.documentKey,e.documentKey),0!==t?t:cr(i.largestBatchId,e.largestBatchId))}const cu="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class Hu{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(e=>e())}}function Zn(i){return ul.apply(this,arguments)}function ul(){return ul=(0,je.Z)(function*(i){if(i.code!==un.FAILED_PRECONDITION||i.message!==cu)throw i;Wt("LocalStore","Unexpectedly lost primary lease")}),ul.apply(this,arguments)}class nn{constructor(e){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e(t=>{this.isDone=!0,this.result=t,this.nextCallback&&this.nextCallback(t)},t=>{this.isDone=!0,this.error=t,this.catchCallback&&this.catchCallback(t)})}catch(e){return this.next(void 0,e)}next(e,t){return this.callbackAttached&&qn(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(t,this.error):this.wrapSuccess(e,this.result):new nn((o,u)=>{this.nextCallback=g=>{this.wrapSuccess(e,g).next(o,u)},this.catchCallback=g=>{this.wrapFailure(t,g).next(o,u)}})}toPromise(){return new Promise((e,t)=>{this.next(e,t)})}wrapUserFunction(e){try{const t=e();return t instanceof nn?t:nn.resolve(t)}catch(t){return nn.reject(t)}}wrapSuccess(e,t){return e?this.wrapUserFunction(()=>e(t)):nn.resolve(t)}wrapFailure(e,t){return e?this.wrapUserFunction(()=>e(t)):nn.reject(t)}static resolve(e){return new nn((t,o)=>{t(e)})}static reject(e){return new nn((t,o)=>{o(e)})}static waitFor(e){return new nn((t,o)=>{let u=0,g=0,E=!1;e.forEach(W=>{++u,W.next(()=>{++g,E&&g===u&&t()},pe=>o(pe))}),E=!0,g===u&&t()})}static or(e){let t=nn.resolve(!1);for(const o of e)t=t.next(u=>u?nn.resolve(u):o());return t}static forEach(e,t){const o=[];return e.forEach((u,g)=>{o.push(t.call(this,u,g))}),this.waitFor(o)}static mapArray(e,t){return new nn((o,u)=>{const g=e.length,E=new Array(g);let W=0;for(let pe=0;pe<g;pe++){const Ce=pe;t(e[Ce]).next(et=>
1{E[Ce]=et,++W,W===g&&o(E)},et=>u(et))}})}static doWhile(e,t){return new nn((o,u)=>{const g=()=>{!0===e()?t().next(()=>{g()},u):o()};g()})}}class Ja{constructor(e,t){this.action=e,this.transaction=t,this.aborted=!1,this.v=new br,this.transaction.oncomplete=()=>{this.v.resolve()},this.transaction.onabort=()=>{t.error?this.v.reject(new Xa(e,t.error)):this.v.resolve()},this.transaction.onerror=o=>{const u=Ml(o.target.error);this.v.reject(new Xa(e,u))}}static open(e,t,o,u){try{return new Ja(t,e.transaction(u,o))}catch(g){throw new Xa(t,g)}}get R(){return this.v.promise}abort(e){e&&this.v.reject(e),this.aborted||(Wt("SimpleDb","Aborting transaction:",e?e.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())}P(){const e=this.transaction;this.aborted||"function"!=typeof e.commit||e.commit()}store(e){const t=this.transaction.objectStore(e);return new Zl(t)}}class lr{constructor(e,t,o){this.name=e,this.version=t,this.V=o,12.2===lr.S((0,Re.z$)())&&ti("Firestore persistence suffers from a bug in iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}static delete(e){return Wt("SimpleDb","Removing database:",e),Ba(window.indexedDB.deleteDatabase(e)).toPromise()}static D(){if(!(0,Re.hl)())return!1;if(lr.C())return!0;const e=(0,Re.z$)(),t=lr.S(e),o=0<t&&t<10,u=lr.N(e),g=0<u&&u<4.5;return!(e.indexOf("MSIE ")>0||e.indexOf("Trident/")>0||e.indexOf("Edge/")>0||o||g)}static C(){var e;return"undefined"!=typeof process&&"YES"===(null===(e=process.env)||void 0===e?void 0:e.k)}static M(e,t){return e.store(t)}static S(e){const t=e.match(/i(?:phone|pad|pod) os ([\d_]+)/i),o=t?t[1].split("_").slice(0,2).join("."):"-1";return Number(o)}static N(e){const t=e.match(/Android ([\d.]+)/i),o=t?t[1].split(".").slice(0,2).join("."):"-1";return Number(o)}$(e){var t=this;return(0,je.Z)(function*(){return t.db||(Wt("SimpleDb","Opening database:",t.name),t.db=yield new Promise((o,u)=>{const g=indexedDB.open(t.name,t.version);g.onsuccess=E=>{o(E.target.result)},g.onblocked=()=>{u(new Xa(e,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},g.onerror=E=>{const W=E.target.error;u("VersionError"===W.name?new On(un.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh."):"InvalidStateError"===W.name?new On(un.FAILED_PRECONDITION,"Unable to open an IndexedDB connection. This could be due to running in a private browsing session on a browser whose private browsing sessions do not support IndexedDB: "+W):new Xa(e,W))},g.onupgradeneeded=E=>{Wt("SimpleDb",'Database "'+t.name+'" requires upgrade from version:',E.oldVersion),t.V.O(E.target.result,g.transaction,E.oldVersion,t.version).next(()=>{Wt("SimpleDb","Database upgrade to version "+t.version+" complete")})}})),t.F&&(t.db.onversionchange=o=>t.F(o)),t.db})()}B(e){this.F=e,this.db&&(this.db.onversionchange=t=>e(t))}runTransaction(e,t,o,u){var g=this;return(0,je.Z)(function*(){const E="readonly"===t;let W=0;for(;;){++W;try{g.db=yield g.$(e);const pe=Ja.open(g.db,e,E?"readonly":"readwrite",o),Ce=u(pe).next(et=>(pe.P(),et)).catch(et=>(pe.abort(et),nn.reject(et))).toPromise();return Ce.catch(()=>{}),yield pe.R,Ce}catch(pe){const Ce=pe,et="FirebaseError"!==Ce.name&&W<3;if(Wt("SimpleDb","Transaction failed with error:",Ce.message,"Retrying:",et),g.close(),!et)return Promise.reject(Ce)}}})()}close(){this.db&&this.db.close(),this.db=void 0}}class wl{constructor(e){this.L=e,this.q=!1,this.U=null}get isDone(){return this.q}get K(){return this.U}set cursor(e){this.L=e}done(){this.q=!0}G(e){this.U=e}delete(){return Ba(this.L.delete())}}class Xa extends On{constructor(e,t){super(un.UNAVAILABLE,`IndexedDB transaction '${e}' failed: ${t}`),this.name="IndexedDbTransactionError"}}function ca(i){return"IndexedDbTransactionError"===i.name}class Zl{constructor(e){this.store=e}put(e,t){let o;return void 0!==t?(Wt("SimpleDb","PUT",this.store.name,e,t),o=this.store.put(t,e)):(Wt("SimpleDb","PUT",this.store.name,"<auto-key>",e),o=this.store.put(e)),Ba(o)}add(e){return Wt("SimpleDb","ADD",this.store.name,e,e),Ba(this.store.add(e))}get(e){return Ba(this.store.get(e)).next(t=>(void 0===t&&(t=null),Wt("SimpleDb","GET",this.store.name,e,t),t))}delete(e){return Wt("SimpleDb","DELETE",this.store.name,e),Ba(this.store.delete(e))}count(){return Wt("SimpleDb","COUNT",this.store.name),Ba(this.store.count())}j(e,t){const o=this.options(e,t);if(o.index||"function"!=typeof this.store.getAll){const u=this.cursor(o),g=[];return this.W(u,(E,W)=>{g.push(W)}).next(()=>g)}{const u=this.store.getAll(o.range);return new nn((g,E)=>{u.onerror=W=>{E(W.target.error)},u.onsuccess=W=>{g(W.target.result)}})}}H(e,t){const o=this.store.getAll(e,null===t?void 0:t);return new nn((u,g)=>{o.onerror=E=>{g(E.target.error)},o.onsuccess=E=>{u(E.target.result)}})}J(e,t){Wt("SimpleDb","DELETE ALL",this.store.name);const o=this.options(e,t);o.Y=!1;const u=this.cursor(o);return this.W(u,(g,E,W)=>W.delete())}X(e,t){let o;t?o=e:(o={},t=e);const u=this.cursor(o);return this.W(u,t)}Z(e){const t=this.cursor({});return new nn((o,u)=>{t.onerror=g=>{const E=Ml(g.target.error);u(E)},t.onsuccess=g=>{const E=g.target.result;E?e(E.primaryKey,E.value).next(W=>{W?E.continue():o()}):o()}})}W(e,t){const o=[];return new nn((u,g)=>{e.onerror=E=>{g(E.target.error)},e.onsuccess=E=>{const W=E.target.result;if(!W)return void u();const pe=new wl(W),Ce=t(W.primaryKey,W.value,pe);if(Ce instanceof nn){const et=Ce.catch(It=>(pe.done(),nn.reject(It)));o.push(et)}pe.isDone?u():null===pe.K?W.continue():W.continue(pe.K)}}).next(()=>nn.waitFor(o))}options(e,t){let o;return void 0!==e&&("string"==typeof e?o=e:t=e),{index:o,range:t}}cursor(e){let t="next";if(e.reverse&&(t="prev"),e.index){const o=this.store.index(e.index);return e.Y?o.openKeyCursor(e.range,t):o.openCursor(e.range,t)}return this.store.openCursor(e.range,t)}}function Ba(i){return new nn((e,t)=>{i.onsuccess=o=>{e(o.target.result)},i.onerror=o=>{const u=Ml(o.target.error);t(u)}})}let Uu=!1;function Ml(i){const e=lr.S((0,Re.z$)());if(e>=12.2&&e<13){const t="An internal error was encountered in the Indexed Database server";if(i.message.indexOf(t)>=0){const o=new On("internal",`IOS_INDEXEDDB_BUG1: IndexedDb has thrown '${t}'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.`);
1return Uu||(Uu=!0,setTimeout(()=>{throw o},0)),o}}return i}class ju{constructor(e,t){this.asyncQueue=e,this.tt=t,this.task=null}start(){this.et(15e3)}stop(){this.task&&(this.task.cancel(),this.task=null)}get started(){return null!==this.task}et(e){var t=this;Wt("IndexBackiller",`Scheduled in ${e}ms`),this.task=this.asyncQueue.enqueueAfterDelay("index_backfill",e,(0,je.Z)(function*(){t.task=null;try{Wt("IndexBackiller",`Documents written: ${yield t.tt.nt()}`)}catch(o){ca(o)?Wt("IndexBackiller","Ignoring IndexedDB error during index backfill: ",o):yield Zn(o)}yield t.et(6e4)}))}}class Mo{constructor(e,t){this.localStore=e,this.persistence=t}nt(){var e=this;return(0,je.Z)(function*(t=50){return e.persistence.runTransaction("Backfill Indexes","readwrite-primary",o=>e.st(o,t))}).apply(this,arguments)}st(e,t){const o=new Set;let u=t,g=!0;return nn.doWhile(()=>!0===g&&u>0,()=>this.localStore.indexManager.getNextCollectionGroupToUpdate(e).next(E=>{if(null!==E&&!o.has(E))return Wt("IndexBackiller",`Processing collection: ${E}`),this.it(e,E,u).next(W=>{u-=W,o.add(E)});g=!1})).next(()=>t-u)}it(e,t,o){return this.localStore.indexManager.getMinOffsetFromCollectionGroup(e,t).next(u=>this.localStore.localDocuments.getNextDocuments(e,t,u,o).next(g=>{const E=g.changes;return this.localStore.indexManager.updateIndexEntries(e,E).next(()=>this.rt(u,g)).next(W=>(Wt("IndexBackiller",`Updating offset: ${W}`),this.localStore.indexManager.updateCollectionGroup(e,t,W))).next(()=>E.size)}))}rt(e,t){let o=e;
1return t.changes.forEach((u,g)=>{const E=va(g);uu(E,o)>0&&(o=E)}),new Go(o.readTime,o.documentKey,Math.max(t.batchId,e.largestBatchId))}}let Uo=(()=>{class i{constructor(t,o){this.previousValue=t,o&&(o.sequenceNumberHandler=u=>this.ot(u),this.ut=u=>o.writeSequenceNumber(u))}ot(t){return this.previousValue=Math.max(t,this.previousValue),this.previousValue}next(){const t=++this.previousValue;return this.ut&&this.ut(t),t}}return i.ct=-1,i})();function sa(i){return null==i}function La(i){return 0===i&&1/i==-1/0}function Gl(i){return"number"==typeof i&&Number.isInteger(i)&&!La(i)&&i<=Number.MAX_SAFE_INTEGER&&i>=Number.MIN_SAFE_INTEGER}function Us(i){let e="";for(let t=0;t<i.length;t++)e.length>0&&(e=$l(e)),e=Pl(i.get(t),e);return $l(e)}function Pl(i,e){let t=e;const o=i.length;for(let u=0;u<o;u++){const g=i.charAt(u);switch(g){case"\0":t+="\x01\x10";break;case"\x01":t+="\x01\x11";break;default:t+=g}}return t}function $l(i){return i+"\x01\x01"}function mo(i){const e=i.length;if(yi(e>=2),2===e)return yi("\x01"===i.charAt(0)&&"\x01"===i.charAt(1)),zr.emptyPath();const t=e-2,o=[];let u="";for(let g=0;g<e;){const E=i.indexOf("\x01",g);switch((E<0||E>t)&&qn(),i.charAt(E+1)){case"\x01":const W=i.substring(g,E);let pe;0===u.length?pe=W:(u+=W,pe=u,u=""),o.push(pe);break;case"\x10":u+=i.substring(g,E),u+="\0";break;case"\x11":u+=i.substring(g,E+1);break;default:qn()}g=E+2}return new zr(o)}const Tl=["userId","batchId"];function Aa(i,e){return[i,Us(e)]}function Pa(i,e,t){return[i,Us(e),t]}const Du={},Vu=["prefixPath","collectionGroup","readTime","documentId"],ko=["prefixPath","collectionGroup","documentId"],Eu=["collectionGroup","readTime","prefixPath","documentId"],oa=["canonicalId","targetId"],Cu=["targetId","path"],Kl=["path","targetId"],Ca=["collectionId","parent"],ql=["indexId","uid"],Ql=["uid","sequenceNumber"],Su=["indexId","uid","arrayValue","directionalValue","orderedDocumentKey","documentKey"],Oa=["indexId","uid","orderedDocumentKey"],ku=["userId","collectionPath","documentId"],Ol=["userId","collectionPath","largestBatchId"],du=["userId","collectionGroup","largestBatchId"],hu=["mutationQueues","mutations","documentMutations","remoteDocuments","targets","owner","targetGlobal","targetDocuments","clientMetadata","remoteDocumentGlobal","collectionParents","bundles","namedQueries"],Sa=[...hu,"documentOverlays"],el=["mutationQueues","mutations","documentMutations","remoteDocumentsV14","targets","owner","targetGlobal","targetDocuments","clientMetadata","remoteDocumentGlobal","collectionParents","bundles","namedQueries","documentOverlays"],Iu=el,xu=[...Iu,"indexConfiguration","indexState","indexEntries"];class Ra extends Hu{constructor(e,t){super(),this.ht=e,this.currentSequenceNumber=t}}function ys(i,e){const t=ci(i);return lr.M(t.ht,e)}function cl(i){let e=0;for(const t in i)Object.prototype.hasOwnProperty.call(i,t)&&e++;return e}function dl(i,e){for(const t in i)Object.prototype.hasOwnProperty.call(i,t)&&e(t,i[t])}function Rl(i){for(const e in i)if(Object.prototype.hasOwnProperty.call(i,e))return!1;return!0}class fs{constructor(e,t){this.comparator=e,this.root=t||$s.EMPTY}insert(e,t){return new fs(this.comparator,this.root.insert(e,t,this.comparator).copy(null,null,$s.BLACK,null,null))}remove(e){return new fs(this.comparator,this.root.remove(e,this.comparator).copy(null,null,$s.BLACK,null,null))}get(e){let t=this.root;for(;!t.isEmpty();){const o=this.comparator(e,t.key);if(0===o)return t.value;o<0?t=t.left:o>0&&(t=t.right)}return null}indexOf(e){let t=0,o=this.root;for(;!o.isEmpty();){const u=this.comparator(e,o.key);if(0===u)return t+o.left.size;u<0?o=o.left:(t+=o.left.size+1,o=o.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(e){return this.root.inorderTraversal(e)}forEach(e){this.inorderTraversal((t,o)=>(e(t,o),!1))}toString(){const e=[];return this.inorderTraversal((t,o)=>(e.push(`${t}:${o}`),!1)),`{${e.join(", ")}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new Dl(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new Dl(this.root,e,this.comparator,!1)}getReverseIterator(){return new Dl(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new Dl(this.root,e,this.comparator,!0)}}class Dl{constructor(e,t,o,u){this.isReverse=u,this.nodeStack=[];let g=1;for(;!e.isEmpty();)if(g=t?o(e.key,t):1,t&&u&&(g*=-1),g<0)e=this.isReverse?e.left:e.right;else{if(0===g){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}getNext(){let e=this.nodeStack.pop();const t={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return t}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;const e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}}class $s{constructor(e,t,o,u,g){this.key=e,this.value=t,this.color=null!=o?o:$s.RED,this.left=null!=u?u:$s.EMPTY,this.right=null!=g?g:$s.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,t,o,u,g){return new $s(null!=e?e:this.key,null!=t?t:this.value,
vendor: 2,453 bytes, line 1
1null!=o?o:this.color,null!=u?u:this.left,null!=g?g:this.right)}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,t,o){let u=this;const g=o(e,u.key);return u=g<0?u.copy(null,null,null,u.left.insert(e,t,o),null):0===g?u.copy(null,t,null,null,null):u.copy(null,null,null,null,u.right.insert(e,t,o)),u.fixUp()}removeMin(){if(this.left.isEmpty())return $s.EMPTY;let e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),e=e.copy(null,null,null,e.left.removeMin(),null),e.fixUp()}remove(e,t){let o,u=this;if(t(e,u.key)<0)u.left.isEmpty()||u.left.isRed()||u.left.left.isRed()||(u=u.moveRedLeft()),u=u.copy(null,null,null,u.left.remove(e,t),null);else{if(u.left.isRed()&&(u=u.rotateRight()),u.right.isEmpty()||u.right.isRed()||u.right.left.isRed()||(u=u.moveRedRight()),0===t(e,u.key)){if(u.right.isEmpty())return $s.EMPTY;o=u.right.min(),u=u.copy(o.key,o.value,null,null,u.right.removeMin())}u=u.copy(null,null,null,null,u.right.remove(e,t))}return u.fixUp()}isRed(){return this.color}fixUp(){let e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}moveRedLeft(){let e=this.colorFlip();return e.right.left.isRed()&&(e=e.copy(null,null,null,null,e.right.rotateRight()),e=e.rotateLeft(),e=e.colorFlip()),e}moveRedRight(){let e=this.colorFlip();return e.left.left.isRed()&&(e=e.rotateRight(),e=e.colorFlip()),e}rotateLeft(){const e=this.copy(null,null,$s.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,$s.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip(){const e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)}checkMaxDepth(){const e=this.check();return Math.pow(2,e)<=this.size+1}check(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw qn();const e=this.left.check();if(e!==this.right.check())throw qn();return e+(this.isRed()?0:1)}}
1$s.EMPTY=null,$s.RED=!0,$s.BLACK=!1,$s.EMPTY=new class{constructor(){this.size=0}get key(){throw qn()}get value(){throw qn()}get color(){throw qn()}get left(){throw qn()}get right(){throw qn()}copy(i,e,t,o,u){return this}insert(i,e,t){return new $s(i,e)}remove(i,e){return this}isEmpty(){return!0}inorderTraversal(i){return!1}reverseTraversal(i){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class ss{constructor(e){this.comparator=e,this.data=new fs(this.comparator)}has(e){return null!==this.data.get(e)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(e){return this.data.indexOf(e)}forEach(e){this.data.inorderTraversal((t,o)=>(e(t),!1))}forEachInRange(e,t){const o=this.data.getIteratorFrom(e[0]);for(;o.hasNext();){const u=o.getNext();if(this.comparator(u.key,e[1])>=0)return;t(u.key)}}forEachWhile(e,t){let o;for(o=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();o.hasNext();)if(!e(o.getNext().key))return}firstAfterOrEqual(e){const t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null}getIterator(){return new hl(this.data.getIterator())}getIteratorFrom(e){return new hl(this.data.getIteratorFrom(e))}add(e){return this.copy(this.data.remove(e).insert(e,!0))}delete(e){return this.has(e)?this.copy(this.data.remove(e)):this}isEmpty(){return this.data.isEmpty()}unionWith(e){let t=this;return t.size<e.size&&(t=e,e=this),e.forEach(o=>{t=t.add(o)}),t}isEqual(e){if(!(e instanceof ss)||this.size!==e.size)return!1;const t=this.data.getIterator(),o=e.data.getIterator();for(;t.hasNext();){const u=t.getNext().key,g=o.getNext().key;if(0!==this.comparator(u,g))return!1}return!0}toArray(){const e=[];return this.forEach(t=>{e.push(t)}),e}toString(){const e=[];return this.forEach(t=>e.push(t)),"SortedSet("+e.toString()+")"}copy(e){const t=new ss(this.comparator);return t.data=e,t}}class hl{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}function Er(i){return i.hasNext()?i.getNext():void 0}class T{constructor(e){this.fields=e,e.sort(uo.comparator)}static empty(){return new T([])}unionWith(e){let t=new ss(uo.comparator);for(const o of this.fields)t=t.add(o);for(const o of e)t=t.add(o);return new T(t.toArray())}covers(e){for(const t of this.fields)if(t.isPrefixOf(e))return!0;return!1}isEqual(e){return Wl(this.fields,e.fields,(t,o)=>t.isEqual(o))}}class Y extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class ve{constructor(e){this.binaryString=e}static fromBase64String(e){const t=function(o){try{return atob(o)}catch(u){throw"undefined"!=typeof DOMException&&u instanceof DOMException?new Y("Invalid base64 string: "+u):u}}(e);return new ve(t)}static fromUint8Array(e){const t=function(o){let u="";for(let g=0;g<o.length;++g)u+=String.fromCharCode(o[g]);return u}(e);return new ve(t)}[Symbol.iterator](){let e=0;return{next:()=>e<this.binaryString.length?{value:this.binaryString.charCodeAt(e++),done:!1}:{value:void 0,done:!0}}}toBase64(){return btoa(this.binaryString)}toUint8Array(){return function(e){const t=new Uint8Array(e.length);for(let o=0;o<e.length;o++)t[o]=e.charCodeAt(o);return t}(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return cr(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}ve.EMPTY_BYTE_STRING=new ve("");const Xe=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Rt(i){if(yi(!!i),"string"==typeof i){let e=0;const t=Xe.exec(i);if(yi(!!t),t[1]){let u=t[1];u=(u+"000000000").substr(0,9),e=Number(u)}const o=new Date(i);return{seconds:Math.floor(o.getTime()/1e3),nanos:e}}return{seconds:ln(i.seconds),nanos:ln(i.nanos)}}function ln(i){return"number"==typeof i?i:"string"==typeof i?Number(i):0}function ui(i){return"string"==typeof i?ve.fromBase64String(i):ve.fromUint8Array(i)}function ir(i){var e,t;return"server_timestamp"===(null===(t=((null===(e=null==i?void 0:i.mapValue)||void 0===e?void 0:e.fields)||{}).__type__)||void 0===t?void 0:t.stringValue)}function Nr(i){const e=i.mapValue.fields.__previous_value__;return ir(e)?Nr(e):e}function Rs(i){const e=Rt(i.mapValue.fields.__local_write_time__.timestampValue);return new to(e.seconds,e.nanos)}class xs{constructor(e,t,o,u,g,E,W,pe,Ce){this.databaseId=e,this.appId=t,this.persistenceKey=o,this.host=u,this.ssl=g,this.forceLongPolling=E,this.autoDetectLongPolling=W,this.longPollingOptions=pe,this.useFetchStreams=Ce}}class Io{constructor(e,t){this.projectId=e,this.database=t||"(default)"}static empty(){return new Io("","")}get isDefaultDatabase(){return"(default)"===this.database}isEqual(e){return e instanceof Io&&e.projectId===this.projectId&&e.database===this.database}}const ka={mapValue:{fields:{__type__:{stringValue:"__max__"}}}},fl={nullValue:"NULL_VALUE"};function Nl(i){return"nullValue"in i?0:"booleanValue"in i?1:"integerValue"in i||"doubleValue"in i?2:"timestampValue"in i?3:"stringValue"in i?5:"bytesValue"in i?6:"referenceValue"in i?7:"geoPointValue"in i?8:"arrayValue"in i?9:"mapValue"in i?ir(i)?4:gi(i)?9007199254740991:10:qn()}function ta(i,e){if(i===e)return!0;const t=Nl(i);if(t!==Nl(e))return!1;switch(t){case 0:case 9007199254740991:return!0;case 1:return i.booleanValue===e.booleanValue;case 4:return Rs(i).isEqual(Rs(e));case 3:return function(o,u){if("string"==typeof o.timestampValue&&"string"==typeof u.timestampValue&&o.timestampValue.length===u.timestampValue.length)return o.timestampValue===u.timestampValue;const g=Rt(o.timestampValue),E=Rt(u.timestampValue);return g.seconds===E.seconds&&g.nanos===E.nanos}(i,e);case 5:return i.stringValue===e.stringValue;case 6:return u=e,ui(i.bytesValue).isEqual(ui(u.bytesValue));case 7:return i.referenceValue===e.referenceValue;case 8:return function(o,u){return ln(o.geoPointValue.latitude)===ln(u.geoPointValue.latitude)&&ln(o.geoPointValue.longitude)===ln(u.geoPointValue.longitude)}(i,e);case 2:return function(o,u){if("integerValue"in o&&"integerValue"in u)return ln(o.integerValue)===ln(u.integerValue);if("doubleValue"in o&&"doubleValue"in u){const g=ln(o.doubleValue),E=ln(u.doubleValue);return g===E?La(g)===La(E):isNaN(g)&&isNaN(E)}return!1}(i,e);case 9:return Wl(i.arrayValue.values||[],e.arrayValue.values||[],ta);case 10:return function(o,u){const g=o.mapValue.fields||{},E=u.mapValue.fields||{};if(cl(g)!==cl(E))return!1;for(const W in g)if(g.hasOwnProperty(W)&&(void 0===E[W]||!ta(g[W],E[W])))return!1;return!0}(i,e);default:return qn()}var u}function fu(i,e){return void 0!==(i.values||[]).find(t=>ta(t,e))}function pl(i,e){if(i===e)return 0;const t=Nl(i),o=Nl(e);if(t!==o)return cr(t,o);switch(t){case 0:case 9007199254740991:return 0;case 1:return cr(i.booleanValue,e.booleanValue);case 2:return function(u,g){const E=ln(u.integerValue||u.doubleValue),W=ln(g.integerValue||g.doubleValue);return E<W?-1:E>W?1:E===W?0:isNaN(E)?isNaN(W)?0:-1:1}(i,e);case 3:return Lu(i.timestampValue,e.timestampValue);case 4:return Lu(Rs(i),Rs(e));case 5:return cr(i.stringValue,e.stringValue);case 6:return function(u,g){const E=ui(u),W=ui(g);return E.compareTo(W)}(i.bytesValue,e.bytesValue);case 7:return function(u,g){const E=u.split("/"),W=g.split("/");for(let pe=0;pe<E.length&&pe<W.length;pe++){const Ce=cr(E[pe],W[pe]);if(0!==Ce)return Ce}return cr(E.length,W.length)}(i.referenceValue,e.referenceValue);case 8:return function(u,g){const E=cr(ln(u.latitude),ln(g.latitude));return 0!==E?E:cr(ln(u.longitude),ln(g.longitude))}(i.geoPointValue,e.geoPointValue);case 9:return function(u,g){const E=u.values||[],W=g.values||[];for(let pe=0;pe<E.length&&pe<W.length;++pe){const Ce=pl(E[pe],W[pe]);if(Ce)return Ce}return cr(E.length,W.length)}(i.arrayValue,e.arrayValue);case 10:return function(u,g){if(u===ka.mapValue&&g===ka.mapValue)return 0;if(u===ka.mapValue)return 1;if(g===ka.mapValue)return-1;const E=u.fields||{},W=Object.keys(E),pe=g.fields||{},Ce=Object.keys(pe);W.sort(),Ce.sort();for(let et=0;et<W.length&&et<Ce.length;++et){const It=cr(W[et],Ce[et]);if(0!==It)return It;const on=pl(E[W[et]],pe[Ce[et]]);if(0!==on)return on}return cr(W.length,Ce.length)}(i.mapValue,e.mapValue);default:throw qn()}}function Lu(i,e){if("string"==typeof i&&"string"==typeof e&&i.length===e.length)return cr(i,e);const t=Rt(i),o=Rt(e),u=cr(t.seconds,o.seconds);return 0!==u?u:cr(t.nanos,o.nanos)}function ml(i){return El(i)}function El(i){return"nullValue"in i?"null":"booleanValue"in i?""+i.booleanValue:"integerValue"in i?""+i.integerValue:"doubleValue"in i?""+i.doubleValue:"timestampValue"in i?function(o){const u=Rt(o);return`time(${u.seconds},${u.nanos})`}(i.timestampValue):"stringValue"in i?i.stringValue:"bytesValue"in i?ui(i.bytesValue).toBase64():"referenceValue"in i?$n.fromName(i.referenceValue).toString():"geoPointValue"in i?`geo(${(e=i.geoPointValue).latitude},${e.longitude})`:"arrayValue"in i?function(o){let u="[",g=!0;for(const E of o.values||[])g?g=!1:u+=",",u+=El(E);return u+"]"}(i.arrayValue):"mapValue"in i?function(o){const u=Object.keys(o.fields||{}).sort();let g="{",E=!0;for(const W of u)E?E=!1:g+=",",g+=`${W}:${El(o.fields[W])}`;return g+"}"}(i.mapValue):qn();var e}function V(i,e){return{referenceValue:`projects/${i.projectId}/databases/${i.database}/documents/${e.path.canonicalString()}`}}function ne(i){return!!i&&"integerValue"in i}function Ie(i){return!!i&&"arrayValue"in i}function pt(i){return!!i&&"nullValue"in i}function jt(i){return!!i&&"doubleValue"in i&&isNaN(Number(i.doubleValue))}function Xt(i){return!!i&&"mapValue"in i}function wn(i){if(i.geoPointValue)return{geoPointValue:Object.assign({},i.geoPointValue)};if(i.timestampValue&&"object"==typeof i.timestampValue)return{timestampValue:Object.assign({},i.timestampValue)};if(i.mapValue){const e={mapValue:{fields:{}}};return dl(i.mapValue.fields,(t,o)=>e.mapValue.fields[t]=wn(o)),e}if(i.arrayValue){const e={arrayValue:{values:[]}};for(let t=0;t<(i.arrayValue.values||[]).length;++t)e.arrayValue.values[t]=wn(i.arrayValue.values[t]);return e}return Object.assign({},i)}function gi(i){return"__max__"===(((i.mapValue||{}).fields||{}).__type__||{}).stringValue}function fi(i){return"nullValue"in i?fl:"booleanValue"in i?{booleanValue:!1}:"integerValue"in i||"doubleValue"in i?{doubleValue:NaN}:"timestampValue"in i?{timestampValue:{seconds:Number.MIN_SAFE_INTEGER}}:"stringValue"in i?{stringValue:""}
vendor: 4,249 bytes, line 1
1:"bytesValue"in i?{bytesValue:""}:"referenceValue"in i?V(Io.empty(),$n.empty()):"geoPointValue"in i?{geoPointValue:{latitude:-90,longitude:-180}}:"arrayValue"in i?{arrayValue:{}}:"mapValue"in i?{mapValue:{}}:qn()}function zi(i){return"nullValue"in i?{booleanValue:!1}:"booleanValue"in i?{doubleValue:NaN}:"integerValue"in i||"doubleValue"in i?{timestampValue:{seconds:Number.MIN_SAFE_INTEGER}}:"timestampValue"in i?{stringValue:""}:"stringValue"in i?{bytesValue:""}:"bytesValue"in i?V(Io.empty(),$n.empty()):"referenceValue"in i?{geoPointValue:{latitude:-90,longitude:-180}}:"geoPointValue"in i?{arrayValue:{}}:"arrayValue"in i?{mapValue:{}}:"mapValue"in i?ka:qn()}function pr(i,e){const t=pl(i.value,e.value);return 0!==t?t:i.inclusive&&!e.inclusive?-1:!i.inclusive&&e.inclusive?1:0}function tr(i,e){const t=pl(i.value,e.value);return 0!==t?t:i.inclusive&&!e.inclusive?1:!i.inclusive&&e.inclusive?-1:0}class vs{constructor(e){this.value=e}static empty(){return new vs({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let t=this.value;for(let o=0;o<e.length-1;++o)if(t=(t.mapValue.fields||{})[e.get(o)],!Xt(t))return null;return t=(t.mapValue.fields||{})[e.lastSegment()],t||null}}set(e,t){this.getFieldsMap(e.popLast())[e.lastSegment()]=wn(t)}setAll(e){let t=uo.emptyPath(),o={},u=[];e.forEach((E,W)=>{if(!t.isImmediateParentOf(W)){const pe=this.getFieldsMap(t);this.applyChanges(pe,o,u),o={},u=[],t=W.popLast()}E?o[W.lastSegment()]=wn(E):u.push(W.lastSegment())});const g=this.getFieldsMap(t);this.applyChanges(g,o,u)}delete(e){const t=this.field(e.popLast());Xt(t)&&t.mapValue.fields&&delete t.mapValue.fields[e.lastSegment()]}isEqual(e){return ta(this.value,e.value)}getFieldsMap(e){let t=this.value;t.mapValue.fields||(t.mapValue={fields:{}});for(let o=0;o<e.length;++o){let u=t.mapValue.fields[e.get(o)];Xt(u)&&u.mapValue.fields||(u={mapValue:{fields:{}}},t.mapValue.fields[e.get(o)]=u),t=u}return t.mapValue.fields}applyChanges(e,t,o){dl(t,(u,g)=>e[u]=g);for(const u of o)delete e[u]}clone(){return new vs(wn(this.value))}}function $o(i){const e=[];return dl(i.fields,(t,o)=>{const u=new uo([t]);if(Xt(o)){const g=$o(o.mapValue).fields;if(0===g.length)e.push(u);else for(const E of g)e.push(u.child(E))}else e.push(u)}),new T(e)}class ps{constructor(e,t,o,u,g,E,W){this.key=e,this.documentType=t,this.version=o,this.readTime=u,this.createTime=g,this.data=E,this.documentState=W}static newInvalidDocument(e){return new ps(e,0,Bi.min(),Bi.min(),Bi.min(),vs.empty(),0)}static newFoundDocument(e,t,o,u){return new ps(e,1,t,Bi.min(),o,u,0)}static newNoDocument(e,t){return new ps(e,2,t,Bi.min(),Bi.min(),vs.empty(),0)}static newUnknownDocument(e,t){return new ps(e,3,t,Bi.min(),Bi.min(),vs.empty(),2)}convertToFoundDocument(e,t){return!this.createTime.isEqual(Bi.min())||2!==this.documentType&&0!==this.documentType||(this.createTime=e),this.version=e,this.documentType=1,this.data=t,this.documentState=0,this}convertToNoDocument(e){return this.version=e,this.documentType=2,this.data=vs.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=vs.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=Bi.min(),this}setReadTime(e){return this.readTime=e,this}get hasLocalMutations(){return 1===this.documentState}get hasCommittedMutations(){return 2===this.documentState}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return 0!==this.documentType}isFoundDocument(){return 1===this.documentType}isNoDocument(){return 2===this.documentType}isUnknownDocument(){return 3===this.documentType}isEqual(e){return e instanceof ps&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.documentType===e.documentType&&this.documentState===e.documentState&&this.data.isEqual(e.data)}mutableCopy(){return new ps(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}
1class xo{constructor(e,t){this.position=e,this.inclusive=t}}function tl(i,e,t){let o=0;for(let u=0;u<i.position.length;u++){const g=e[u],E=i.position[u];if(o=g.field.isKeyField()?$n.comparator($n.fromName(E.referenceValue),t.key):pl(E,t.data.field(g.field)),"desc"===g.dir&&(o*=-1),0!==o)break}return o}function Ha(i,e){if(null===i)return null===e;if(null===e||i.inclusive!==e.inclusive||i.position.length!==e.position.length)return!1;for(let t=0;t<i.position.length;t++)if(!ta(i.position[t],e.position[t]))return!1;return!0}class da{constructor(e,t="asc"){this.field=e,this.dir=t}}function zu(i,e){return i.dir===e.dir&&i.field.isEqual(e.field)}class pc{}class Br extends pc{constructor(e,t,o){super(),this.field=e,this.op=t,this.value=o}static create(e,t,o){return e.isKeyField()?"in"===t||"not-in"===t?this.createKeyFieldInFilter(e,t,o):new Fc(e,t,o):"array-contains"===t?new D(e,o):"in"===t?new I(e,o):"not-in"===t?new Z(e,o):"array-contains-any"===t?new Ae(e,o):new Br(e,t,o)}static createKeyFieldInFilter(e,t,o){return"in"===t?new Hd(e,o):new Sh(e,o)}matches(e){const t=e.data.field(this.field);return"!="===this.op?null!==t&&this.matchesComparison(pl(t,this.value)):null!==t&&Nl(this.value)===Nl(t)&&this.matchesComparison(pl(t,this.value))}matchesComparison(e){switch(this.op){case"<":return e<0;case"<=":return e<=0;case"==":return 0===e;case"!=":return 0!==e;case">":return e>0;case">=":return e>=0;default:return qn()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}getFirstInequalityField(){return this.isInequality()?this.field:null}}class Ns extends pc{constructor(e,t){super(),this.filters=e,this.op=t,this.lt=null}static create(e,t){return new Ns(e,t)}matches(e){return jo(this)?void 0===this.filters.find(t=>!t.matches(e)):void 0!==this.filters.find(t=>t.matches(e))}getFlattenedFilters(){return null!==this.lt||(this.lt=this.filters.reduce((e,t)=>e.concat(t.getFlattenedFilters()),[])),this.lt}getFilters(){return Object.assign([],this.filters)}getFirstInequalityField(){const e=this.ft(t=>t.isInequality());return null!==e?e.field:null}ft(e){for(const t of this.getFlattenedFilters())if(e(t))return t;return null}}function jo(i){return"and"===i.op}function Wu(i){return"or"===i.op}function Zu(i){return mc(i)&&jo(i)}function mc(i){for(const e of i.filters)if(e instanceof Ns)return!1;return!0}function Rc(i){if(i instanceof Br)return i.field.canonicalString()+i.op.toString()+ml(i.value);if(Zu(i))return i.filters.map(e=>Rc(e)).join(",");{const e=i.filters.map(t=>Rc(t)).join(",");return`${i.op}(${e})`}}function Na(i,e){return i instanceof Br?(t=i,(o=e)instanceof Br&&t.op===o.op&&t.field.isEqual(o.field)&&ta(t.value,o.value)):i instanceof Ns?function(t,o){return o instanceof Ns&&t.op===o.op&&t.filters.length===o.filters.length&&t.filters.reduce((u,g,E)=>u&&Na(g,o.filters[E]),!0)}(i,e):void qn();var t,o}function Nc(i,e){const t=i.filters.concat(e);return Ns.create(t,i.op)}function pu(i){return i instanceof Br?`${(e=i).field.canonicalString()} ${e.op} ${ml(e.value)}`:i instanceof Ns?function(e){return e.op.toString()+" {"+e.getFilters().map(pu).join(" ,")+"}"}(i):"Filter";var e}class Fc extends Br{constructor(e,t,o){super(e,t,o),this.key=$n.fromName(o.referenceValue)}matches(e){const t=$n.comparator(e.key,this.key);return this.matchesComparison(t)}}class Hd extends Br{constructor(e,t){super(e,"in",t),this.keys=B(0,t)}matches(e){return this.keys.some(t=>t.isEqual(e.key))}}class Sh extends Br{constructor(e,t){super(e,"not-in",t),this.keys=B(0,t)}matches(e){return!this.keys.some(t=>t.isEqual(e.key))}}function B(i,e){var t;return((null===(t=e.arrayValue)||void 0===t?void 0:t.values)||[]).map(o=>$n.fromName(o.referenceValue))}class D extends Br{constructor(e,t){super(e,"array-contains",t)}matches(e){const t=e.data.field(this.field);return Ie(t)&&fu(t.arrayValue,this.value)}}class I extends Br{constructor(e,t){super(e,"in",t)}matches(e){const t=e.data.field(this.field);return null!==t&&fu(this.value.arrayValue,t)}}class Z extends Br{constructor(e,t){super(e,"not-in",t)}matches(e){if(fu(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const t=e.data.field(this.field);return null!==t&&!fu(this.value.arrayValue,t)}}class Ae extends Br{constructor(e,t){super(e,"array-contains-any",t)}matches(e){const t=e.data.field(this.field);return!(!Ie(t)||!t.arrayValue.values)&&t.arrayValue.values.some(o=>fu(this.value.arrayValue,o))}}
1class ot{constructor(e,t=null,o=[],u=[],g=null,E=null,W=null){this.path=e,this.collectionGroup=t,this.orderBy=o,this.filters=u,this.limit=g,this.startAt=E,this.endAt=W,this.dt=null}}function Gt(i,e=null,t=[],o=[],u=null,g=null,E=null){return new ot(i,e,t,o,u,g,E)}function an(i){const e=ci(i);if(null===e.dt){let t=e.path.canonicalString();null!==e.collectionGroup&&(t+="|cg:"+e.collectionGroup),t+="|f:",t+=e.filters.map(o=>Rc(o)).join(","),t+="|ob:",t+=e.orderBy.map(o=>{return(u=o).field.canonicalString()+u.dir;var u}).join(","),sa(e.limit)||(t+="|l:",t+=e.limit),e.startAt&&(t+="|lb:",t+=e.startAt.inclusive?"b:":"a:",t+=e.startAt.position.map(o=>ml(o)).join(",")),e.endAt&&(t+="|ub:",t+=e.endAt.inclusive?"a:":"b:",t+=e.endAt.position.map(o=>ml(o)).join(",")),e.dt=t}return e.dt}function Xn(i,e){if(i.limit!==e.limit||i.orderBy.length!==e.orderBy.length)return!1;for(let t=0;t<i.orderBy.length;t++)if(!zu(i.orderBy[t],e.orderBy[t]))return!1;if(i.filters.length!==e.filters.length)return!1;for(let t=0;t<i.filters.length;t++)if(!Na(i.filters[t],e.filters[t]))return!1;return i.collectionGroup===e.collectionGroup&&!!i.path.isEqual(e.path)&&!!Ha(i.startAt,e.startAt)&&Ha(i.endAt,e.endAt)}function Ci(i){return $n.isDocumentKey(i.path)&&null===i.collectionGroup&&0===i.filters.length}function sr(i,e){return i.filters.filter(t=>t instanceof Br&&t.field.isEqual(e))}function mr(i,e,t){let o=fl,u=!0;for(const g of sr(i,e)){let E=fl,W=!0;switch(g.op){case"<":case"<=":E=fi(g.value);break;case"==":case"in":case">=":E=g.value;break;case">":E=g.value,W=!1;break;case"!=":case"not-in":E=fl}pr({value:o,inclusive:u},{value:E,inclusive:W})<0&&(o=E,u=W)}if(null!==t)for(let g=0;g<i.orderBy.length;++g)if(i.orderBy[g].field.isEqual(e)){const E=t.position[g];pr({value:o,inclusive:u},{value:E,inclusive:t.inclusive})<0&&(o=E,u=t.inclusive);break}return{value:o,inclusive:u}}
1function js(i,e,t){let o=ka,u=!0;for(const g of sr(i,e)){let E=ka,W=!0;switch(g.op){case">=":case">":E=zi(g.value),W=!1;break;case"==":case"in":case"<=":E=g.value;break;case"<":E=g.value,W=!1;break;case"!=":case"not-in":E=ka}tr({value:o,inclusive:u},{value:E,inclusive:W})>0&&(o=E,u=W)}if(null!==t)for(let g=0;g<i.orderBy.length;++g)if(i.orderBy[g].field.isEqual(e)){const E=t.position[g];tr({value:o,inclusive:u},{value:E,inclusive:t.inclusive})>0&&(o=E,u=t.inclusive);break}return{value:o,inclusive:u}}class Lo{constructor(e,t=null,o=[],u=[],g=null,E="F",W=null,pe=null){this.path=e,this.collectionGroup=t,this.explicitOrderBy=o,this.filters=u,this.limit=g,this.limitType=E,this.startAt=W,this.endAt=pe,this.wt=null,this._t=null}}function Au(i,e,t,o,u,g,E,W){return new Lo(i,e,t,o,u,g,E,W)}function _l(i){return new Lo(i)}function Yc(i){return 0===i.filters.length&&null===i.limit&&null==i.startAt&&null==i.endAt&&(0===i.explicitOrderBy.length||1===i.explicitOrderBy.length&&i.explicitOrderBy[0].field.isKeyField())}function Gu(i){return i.explicitOrderBy.length>0?i.explicitOrderBy[0].field:null}function Pu(i){for(const e of i.filters){const t=e.getFirstInequalityField();if(null!==t)return t}return null}function Ou(i){return null!==i.collectionGroup}function Ia(i){const e=ci(i);if(null===e.wt){e.wt=[];const t=Pu(e),o=Gu(e);if(null!==t&&null===o)t.isKeyField()||e.wt.push(new da(t)),e.wt.push(new da(uo.keyField(),"asc"));else{let u=!1;for(const g of e.explicitOrderBy)e.wt.push(g),g.field.isKeyField()&&(u=!0);if(!u){const g=e.explicitOrderBy.length>0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";e.wt.push(new da(uo.keyField(),g))}}}return e.wt}function _o(i){const e=ci(i);if(!e._t)if("F"===e.limitType)e._t=Gt(e.path,e.collectionGroup,Ia(e),e.filters,e.limit,e.startAt,e.endAt);else{const t=[];for(const g of Ia(e))t.push(new da(g.field,"desc"===g.dir?"asc":"desc"));const o=e.endAt?new xo(e.endAt.position,e.endAt.inclusive):null,u=e.startAt?new xo(e.startAt.position,e.startAt.inclusive):null;e._t=Gt(e.path,e.collectionGroup,t,e.filters,e.limit,o,u)}return e._t}function Cl(i,e){e.getFirstInequalityField(),Pu(i);const t=i.filters.concat([e]);return new Lo(i.path,i.collectionGroup,i.explicitOrderBy.slice(),t,i.limit,i.limitType,i.startAt,i.endAt)}function Ru(i,e,t){return new Lo(i.path,i.collectionGroup,i.explicitOrderBy.slice(),i.filters.slice(),e,t,i.startAt,i.endAt)}function mu(i,e){return Xn(_o(i),_o(e))&&i.limitType===e.limitType}function rd(i){return`${an(_o(i))}|lt:${i.limitType}`}function _u(i){return`Query(target=${function(e){let t=e.path.canonicalString();return null!==e.collectionGroup&&(t+=" collectionGroup="+e.collectionGroup),e.filters.length>0&&(t+=`, filters: [${e.filters.map(o=>pu(o)).join(", ")}]`),sa(e.limit)||(t+=", limit: "+e.limit),e.orderBy.length>0&&(t+=`, orderBy: [${e.orderBy.map(o=>{return`${(u=o).field.canonicalString()} (${u.dir})`;var u}).join(", ")}]`),e.startAt&&(t+=", startAt: ",t+=e.startAt.inclusive?"b:":"a:",t+=e.startAt.position.map(o=>ml(o)).join(",")),e.endAt&&(t+=", endAt: ",t+=e.endAt.inclusive?"a:":"b:",t+=e.endAt.position.map(o=>ml(o)).join(",")),`Target(${t})`}(_o(i))}; limitType=${i.limitType})`}function $u(i,e){return e.isFoundDocument()&&function(t,o){const u=o.key.path;return null!==t.collectionGroup?o.key.hasCollectionId(t.collectionGroup)&&t.path.isPrefixOf(u):$n.isDocumentKey(t.path)?t.path.isEqual(u):t.path.isImmediateParentOf(u)}(i,e)&&function(t,o){for(const u of Ia(t))if(!u.field.isKeyField()&&null===o.data.field(u.field))return!1;return!0}(i,e)&&function(t,o){for(const u of t.filters)if(!u.matches(o))return!1;return!0}(i,e)&&(o=e,!((t=i).startAt&&!function(u,g,E){const W=tl(u,g,E);return u.inclusive?W<=0:W<0}(t.startAt,Ia(t),o)||t.endAt&&!function(u,g,E){const W=tl(u,g,E);return u.inclusive?W>=0:W>0}(t.endAt,Ia(t),o)));var t,o}function sd(i){return i.collectionGroup||(i.path.length%2==1?i.path.lastSegment():i.path.get(i.path.length-2))}function Ud(i){return(e,t)=>{let o=!1;for(const u of Ia(i)){const g=kh(u,e,t);if(0!==g)return g;o=o||u.field.isKeyField()}return 0}}function kh(i,e,t){const o=i.field.isKeyField()?$n.comparator(e.key,t.key):function(u,g,E){const W=g.data.field(u),pe=E.data.field(u);return null!==W&&null!==pe?pl(W,pe):qn()}(i.field,e,t);switch(i.dir){case"asc":return o;
1case"desc":return-1*o;default:return qn()}}class Sl{constructor(e,t){this.mapKeyFn=e,this.equalsFn=t,this.inner={},this.innerSize=0}get(e){const t=this.mapKeyFn(e),o=this.inner[t];if(void 0!==o)for(const[u,g]of o)if(this.equalsFn(u,e))return g}has(e){return void 0!==this.get(e)}set(e,t){const o=this.mapKeyFn(e),u=this.inner[o];if(void 0===u)return this.inner[o]=[[e,t]],void this.innerSize++;for(let g=0;g<u.length;g++)if(this.equalsFn(u[g][0],e))return void(u[g]=[e,t]);u.push([e,t]),this.innerSize++}delete(e){const t=this.mapKeyFn(e),o=this.inner[t];if(void 0===o)return!1;for(let u=0;u<o.length;u++)if(this.equalsFn(o[u][0],e))return 1===o.length?delete this.inner[t]:o.splice(u,1),this.innerSize--,!0;return!1}forEach(e){dl(this.inner,(t,o)=>{for(const[u,g]of o)e(u,g)})}isEmpty(){return Rl(this.inner)}size(){return this.innerSize}}const Nu=new fs($n.comparator);function Ua(){return Nu}const zf=new fs($n.comparator);function od(...i){let e=zf;for(const t of i)e=e.insert(t.key,t);return e}function jd(i){let e=zf;return i.forEach((t,o)=>e=e.insert(t,o.overlayedDocument)),e}function gu(){return yu()}function Jl(){return yu()}function yu(){return new Sl(i=>i.toString(),(i,e)=>i.isEqual(e))}const Ih=new fs($n.comparator),Wf=new ss($n.comparator);function Hr(...i){let e=Wf;for(const t of i)e=e.add(t);return e}const Zf=new ss(cr);function ja(){return Zf}function ad(i,e){if(i.useProto3Json){if(isNaN(e))return{doubleValue:"NaN"};if(e===1/0)return{doubleValue:"Infinity"};if(e===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:La(e)?"-0":e}}function vu(i){return{integerValue:""+i}}function ld(i,e){return Gl(e)?vu(e):ad(i,e)}class nl{constructor(){this._=void 0}}function _c(i,e,t){return i instanceof Yl?function(o,u){const g={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:o.seconds,nanos:o.nanoseconds}}}};return u&&ir(u)&&(u=Nr(u)),u&&(g.fields.__previous_value__=u),{mapValue:g}}(t,e):i instanceof bu?xh(i,e):i instanceof Va?Ku(i,e):function(o,u){const g=$f(o,u),E=Lh(g)+Lh(o.gt);return ne(g)&&ne(o.gt)?vu(E):ad(o.serializer,E)}(i,e)}function Gf(i,e,t){return i instanceof bu?xh(i,e):i instanceof Va?Ku(i,e):t}function $f(i,e){return i instanceof gc?ne(t=e)||(o=t)&&"doubleValue"in o?e:{integerValue:0}:null;var o,t}class Yl extends nl{}class bu extends nl{constructor(e){super(),this.elements=e}}function xh(i,e){const t=Ah(e);for(const o of i.elements)t.some(u=>ta(u,o))||t.push(o);return{arrayValue:{values:t}}}class Va extends nl{constructor(e){super(),this.elements=e}}function Ku(i,e){let t=Ah(e);for(const o of i.elements)t=t.filter(u=>!ta(u,o));return{arrayValue:{values:t}}}class gc extends nl{constructor(e,t){super(),this.serializer=e,this.gt=t}}function Lh(i){return ln(i.integerValue||i.doubleValue)}function Ah(i){return Ie(i)&&i.arrayValue.values?i.arrayValue.values.slice():[]}class Vd{constructor(e,t){this.field=e,this.transform=t}}class Ph{constructor(e,t){this.version=e,this.transformResults=t}}class no{constructor(e,t){this.updateTime=e,this.exists=t}static none(){return new no}static exists(e){return new no(void 0,e)}static updateTime(e){return new no(e)}get isNone(){return void 0===this.updateTime&&void 0===this.exists}isEqual(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)}}function qu(i,e){return void 0!==i.updateTime?e.isFoundDocument()&&e.version.isEqual(i.updateTime):void 0===i.exists||i.exists===e.isFoundDocument()}class yc{}function Kf(i,e){if(!i.hasLocalMutations||e&&0===e.fields.length)return null;if(null===e)return i.isNoDocument()?new Qu(i.key,no.none()):new bc(i.key,i.data,no.none());{const t=i.data,o=vs.empty();let u=new ss(uo.comparator);for(let g of e.fields)if(!u.has(g)){let E=t.field(g);null===E&&g.length>1&&(g=g.popLast(),E=t.field(g)),null===E?o.delete(g):o.set(g,E),u=u.add(g)}return new Fu(i.key,o,new T(u.toArray()),no.none())}}function bm(i,e,t){i instanceof bc?function(o,u,g){const E=o.value.clone(),W=ud(o.fieldTransforms,u,g.transformResults);E.setAll(W),u.convertToFoundDocument(g.version,E).setHasCommittedMutations()}(i,e,t):i instanceof Fu?function(o,u,g){if(!qu(o.precondition,u))return void u.convertToUnknownDocument(g.version);const E=ud(o.fieldTransforms,u,g.transformResults),W=u.data;W.setAll(Oh(o)),W.setAll(E),u.convertToFoundDocument(g.version,W).setHasCommittedMutations()}(i,e,t):e.convertToNoDocument(t.version).setHasCommittedMutations()}function vc(i,e,t,o){return i instanceof bc?function(u,g,E,W){if(!qu(u.precondition,g))return E;const pe=u.value.clone(),Ce=Wd(u.fieldTransforms,W,g);return pe.setAll(Ce),g.convertToFoundDocument(g.version,pe).setHasLocalMutations(),null}(i,e,t,o):i instanceof Fu?function(u,g,E,W){if(!qu(u.precondition,g))return E;const pe=Wd(u.fieldTransforms,W,g),Ce=g.data;return Ce.setAll(Oh(u)),Ce.setAll(pe),g.convertToFoundDocument(g.version,Ce).setHasLocalMutations(),null===E?null:E.unionWith(u.fieldMask.fields).unionWith(u.fieldTransforms.map(et=>et.field))}(i,e,t,o):(E=t,qu(i.precondition,g=e)?(g.convertToNoDocument(g.version).setHasLocalMutations(),null):E);var g,E}function qf(i,e){let t=null;for(const o of i.fieldTransforms){const u=e.data.field(o.field),g=$f(o.transform,u||null);null!=g&&(null===t&&(t=vs.empty()),t.set(o.field,g))}return t||null}function Bl(i,e){return i.type===e.type&&!!i.key.isEqual(e.key)&&!!i.prec
1ondition.isEqual(e.precondition)&&(o=e.fieldTransforms,!!(void 0===(t=i.fieldTransforms)&&void 0===o||t&&o&&Wl(t,o,(u,g)=>function zd(i,e){return i.field.isEqual(e.field)&&(o=e.transform,(t=i.transform)instanceof bu&&o instanceof bu||t instanceof Va&&o instanceof Va?Wl(t.elements,o.elements,ta):t instanceof gc&&o instanceof gc?ta(t.gt,o.gt):t instanceof Yl&&o instanceof Yl);var t,o}(u,g))))&&(0===i.type?i.value.isEqual(e.value):1!==i.type||i.data.isEqual(e.data)&&i.fieldMask.isEqual(e.fieldMask));var t,o}class bc extends yc{constructor(e,t,o,u=[]){super(),this.key=e,this.value=t,this.precondition=o,this.fieldTransforms=u,this.type=0}getFieldMask(){return null}}class Fu extends yc{constructor(e,t,o,u,g=[]){super(),this.key=e,this.data=t,this.fieldMask=o,this.precondition=u,this.fieldTransforms=g,this.type=1}getFieldMask(){return this.fieldMask}}function Oh(i){const e=new Map;return i.fieldMask.fields.forEach(t=>{if(!t.isEmpty()){const o=i.data.field(t);e.set(t,o)}}),e}function ud(i,e,t){const o=new Map;yi(i.length===t.length);for(let u=0;u<t.length;u++){const g=i[u],E=g.transform,W=e.data.field(g.field);o.set(g.field,Gf(E,W,t[u]))}return o}function Wd(i,e,t){const o=new Map;for(const u of i){const g=u.transform,E=t.data.field(u.field);o.set(u.field,_c(g,E,e))}return o}class Qu extends yc{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class Rh extends yc{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}class Ko{constructor(e,t,o,u){this.batchId=e,this.localWriteTime=t,this.baseMutations=o,this.mutations=u}applyToRemoteDocument(e,t){const o=t.mutationResults;for(let u=0;u<this.mutations.length;u++){const g=this.mutations[u];g.key.isEqual(e.key)&&bm(g,e,o[u])}}applyToLocalView(e,t){for(const o of this.baseMutations)o.key.isEqual(e.key)&&(t=vc(o,e,t,this.localWriteTime));for(const o of this.mutations)o.key.isEqual(e.key)&&(t=vc(o,e,t,this.localWriteTime));return t}applyToLocalDocumentSet(e,t){const o=Jl();return this.mutations.forEach(u=>{const g=e.get(u.key),E=g.overlayedDocument;let W=this.applyToLocalView(E,g.mutatedFields);W=t.has(u.key)?null:W;const pe=Kf(E,W);null!==pe&&o.set(u.key,pe),E.isValidDocument()||E.convertToNoDocument(Bi.min())}),o}keys(){return this.mutations.reduce((e,t)=>e.add(t.key),Hr())}isEqual(e){return this.batchId===e.batchId&&Wl(this.mutations,e.mutations,(t,o)=>Bl(t,o))&&Wl(this.baseMutations,e.baseMutations,(t,o)=>Bl(t,o))}}class Zd{constructor(e,t,o,u){this.batch=e,this.commitVersion=t,this.mutationResults=o,this.docVersions=u}static from(e,t,o){yi(e.mutations.length===o.length);let u=Ih;const g=e.mutations;for(let E=0;E<g.length;E++)u=u.insert(g[E].key,o[E].version);return new Zd(e,t,o,u)}}class Nh{constructor(e,t){this.largestBatchId=e,this.mutation=t}getKey(){return this.mutation.key}isEqual(e){return null!==e&&this.mutation===e.mutation}toString(){return`Overlay{\n largestBatchId: ${this.largestBatchId},\n mutation: ${this.mutation.toString()}\n }`}}class Qf{constructor(e,t){this.count=e,this.unchangedNames=t}}var ha,Ls;function Jf(i){switch(i){default:return qn();case un.CANCELLED:case un.UNKNOWN:case un.DEADLINE_EXCEEDED:case un.RESOURCE_EXHAUSTED:case un.INTERNAL:case un.UNAVAILABLE:case un.UNAUTHENTICATED:return!1;case un.INVALID_ARGUMENT:case un.NOT_FOUND:case un.ALREADY_EXISTS:case un.PERMISSION_DENIED:case un.FAILED_PRECONDITION:case un.ABORTED:case un.OUT_OF_RANGE:case un.UNIMPLEMENTED:case un.DATA_LOSS:return!0}}function Xf(i){if(void 0===i)return ti("GRPC error has no .code"),un.UNKNOWN;switch(i){case ha.OK:return un.OK;case ha.CANCELLED:return un.CANCELLED;case ha.UNKNOWN:return un.UNKNOWN;case ha.DEADLINE_EXCEEDED:return un.DEADLINE_EXCEEDED;case ha.RESOURCE_EXHAUSTED:return un.RESOURCE_EXHAUSTED;case ha.INTERNAL:return un.INTERNAL;case ha.UNAVAILABLE:return un.UNAVAILABLE;case ha.UNAUTHENTICATED:return un.UNAUTHENTICATED;case ha.INVALID_ARGUMENT:return un.INVALID_ARGUMENT;case ha.NOT_FOUND:return un.NOT_FOUND;case ha.ALREADY_EXISTS:return un.ALREADY_EXISTS;case ha.PERMISSION_DENIED:return un.PERMISSION_DENIED;case ha.FAILED_PRECONDITION:return un.FAILED_PRECONDITION;case ha.ABORTED:return un.ABORTED;case ha.OUT_OF_RANGE:return un.OUT_OF_RANGE;
1case ha.UNIMPLEMENTED:return un.UNIMPLEMENTED;case ha.DATA_LOSS:return un.DATA_LOSS;default:return qn()}}(Ls=ha||(ha={}))[Ls.OK=0]="OK",Ls[Ls.CANCELLED=1]="CANCELLED",Ls[Ls.UNKNOWN=2]="UNKNOWN",Ls[Ls.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",Ls[Ls.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",Ls[Ls.NOT_FOUND=5]="NOT_FOUND",Ls[Ls.ALREADY_EXISTS=6]="ALREADY_EXISTS",Ls[Ls.PERMISSION_DENIED=7]="PERMISSION_DENIED",Ls[Ls.UNAUTHENTICATED=16]="UNAUTHENTICATED",Ls[Ls.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",Ls[Ls.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",Ls[Ls.ABORTED=10]="ABORTED",Ls[Ls.OUT_OF_RANGE=11]="OUT_OF_RANGE",Ls[Ls.UNIMPLEMENTED=12]="UNIMPLEMENTED",Ls[Ls.INTERNAL=13]="INTERNAL",Ls[Ls.UNAVAILABLE=14]="UNAVAILABLE",Ls[Ls.DATA_LOSS=15]="DATA_LOSS";class Yh{constructor(){this.onExistenceFilterMismatchCallbacks=new Map}static get instance(){return Bh}static getOrCreateInstance(){return null===Bh&&(Bh=new Yh),Bh}onExistenceFilterMismatch(e){const t=Symbol();return this.onExistenceFilterMismatchCallbacks.set(t,e),()=>this.onExistenceFilterMismatchCallbacks.delete(t)}notifyOnExistenceFilterMismatch(e){this.onExistenceFilterMismatchCallbacks.forEach(t=>t(e))}}let Bh=null;function wm(){return new TextEncoder}const cd=new A([4294967295,4294967295],0);function Gd(i){const e=wm().encode(i),t=new w;return t.update(e),new Uint8Array(t.digest())}function ep(i){const e=new DataView(i.buffer),t=e.getUint32(0,!0),o=e.getUint32(4,!0),u=e.getUint32(8,!0),g=e.getUint32(12,!0);return[new A([t,o],0),new A([u,g],0)]}class kl{constructor(e,t,o){if(this.bitmap=e,this.padding=t,this.hashCount=o,t<0||t>=8)throw new wc(`Invalid padding: ${t}`);if(o<0)throw new wc(`Invalid hash count: ${o}`);if(e.length>0&&0===this.hashCount)throw new wc(`Invalid hash count: ${o}`);if(0===e.length&&0!==t)throw new wc(`Invalid padding when bitmap length is 0: ${t}`);this.It=8*e.length-t,this.Tt=A.fromNumber(this.It)}Et(e,t,o){let u=e.add(t.multiply(A.fromNumber(o)));return 1===u.compare(cd)&&(u=new A([u.getBits(0),u.getBits(1)],0)),u.modulo(this.Tt).toNumber()}At(e){return 0!=(this.bitmap[Math.floor(e/8)]&1<<e%8)}vt(e){if(0===this.It)return!1;const t=Gd(e),[o,u]=ep(t);for(let g=0;g<this.hashCount;g++){const E=this.Et(o,u,g);if(!this.At(E))return!1}return!0}static create(e,t,o){const u=e%8==0?0:8-e%8,g=new Uint8Array(Math.ceil(e/8)),E=new kl(g,u,t);return o.forEach(W=>E.insert(W)),E}insert(e){if(0===this.It)return;const t=Gd(e),[o,u]=ep(t);for(let g=0;g<this.hashCount;g++){const E=this.Et(o,u,g);this.Rt(E)}}Rt(e){const t=Math.floor(e/8);this.bitmap[t]|=1<<e%8}}class wc extends Error{constructor(){super(...arguments),this.name="BloomFilterError"}}class Mc{constructor(e,t,o,u,g){this.snapshotVersion=e,this.targetChanges=t,this.targetMismatches=o,this.documentUpdates=u,this.resolvedLimboDocuments=g}static createSynthesizedRemoteEventForCurrentChange(e,t,o){const u=new Map;return u.set(e,Bc.createSynthesizedTargetChangeForCurrentChange(e,t,o)),new Mc(Bi.min(),u,new fs(cr),Ua(),Hr())}}class Bc{constructor(e,t,o,u,g){this.resumeToken=e,this.current=t,this.addedDocuments=o,this.modifiedDocuments=u,this.removedDocuments=g}static createSynthesizedTargetChangeForCurrentChange(e,t,o){return new Bc(o,t,Hr(),Hr(),Hr())}}class Tc{constructor(e,t,o,u){this.Pt=e,this.removedTargetIds=t,this.key=o,this.bt=u}}class Hh{constructor(e,t){this.targetId=e,this.Vt=t}}class tp{constructor(e,t,o=ve.EMPTY_BYTE_STRING,u=null){this.state=e,this.targetIds=t,this.resumeToken=o,this.cause=u}}class np{constructor(){this.St=0,this.Dt=Uh(),this.Ct=ve.EMPTY_BYTE_STRING,this.xt=!1,this.Nt=!0}get current(){return this.xt}get resumeToken(){return this.Ct}get kt(){return 0!==this.St}get Mt(){return this.Nt}$t(e){e.approximateByteSize()>0&&(this.Nt=!0,this.Ct=e)}Ot(){let e=Hr(),t=Hr(),o=Hr();return this.Dt.forEach((u,g)=>{switch(g){case 0:e=e.add(u);break;case 2:t=t.add(u);break;case 1:o=o.add(u);break;default:qn()}}),new Bc(this.Ct,this.xt,e,t,o)}Ft(){this.Nt=!1,this.Dt=Uh()}Bt(e,t){this.Nt=!0,this.Dt=this.Dt.insert(e,t)}Lt(e){this.Nt=!0,this.Dt=this.Dt.remove(e)}qt(){this.St+=1}Ut(){this.St-=1}Kt(){this.Nt=!0,this.xt=!0}}
1class Mm{constructor(e){this.Gt=e,this.Qt=new Map,this.jt=Ua(),this.zt=ip(),this.Wt=new fs(cr)}Ht(e){for(const t of e.Pt)e.bt&&e.bt.isFoundDocument()?this.Jt(t,e.bt):this.Yt(t,e.key,e.bt);for(const t of e.removedTargetIds)this.Yt(t,e.key,e.bt)}Xt(e){this.forEachTarget(e,t=>{const o=this.Zt(t);switch(e.state){case 0:this.te(t)&&o.$t(e.resumeToken);break;case 1:o.Ut(),o.kt||o.Ft(),o.$t(e.resumeToken);break;case 2:o.Ut(),o.kt||this.removeTarget(t);break;case 3:this.te(t)&&(o.Kt(),o.$t(e.resumeToken));break;case 4:this.te(t)&&(this.ee(t),o.$t(e.resumeToken));break;default:qn()}})}forEachTarget(e,t){e.targetIds.length>0?e.targetIds.forEach(t):this.Qt.forEach((o,u)=>{this.te(u)&&t(u)})}ne(e){var t;const o=e.targetId,u=e.Vt.count,g=this.se(o);if(g){const E=g.target;if(Ci(E))if(0===u){const W=new $n(E.path);this.Yt(o,W,ps.newNoDocument(W,Bi.min()))}else yi(1===u);else{const W=this.ie(o);if(W!==u){const pe=this.re(e,W);0!==pe&&(this.ee(o),this.Wt=this.Wt.insert(o,2===pe?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch")),null===(t=Yh.instance)||void 0===t||t.notifyOnExistenceFilterMismatch(function(Ce,et,It){var on,An,di,Ai,Oi,xr;const As={localCacheCount:et,existenceFilterCount:It.count},Lr=It.unchangedNames;return Lr&&(As.bloomFilter={applied:0===Ce,hashCount:null!==(on=null==Lr?void 0:Lr.hashCount)&&void 0!==on?on:0,bitmapLength:null!==(Ai=null===(di=null===(An=null==Lr?void 0:Lr.bits)||void 0===An?void 0:An.bitmap)||void 0===di?void 0:di.length)&&void 0!==Ai?Ai:0,padding:null!==(xr=null===(Oi=null==Lr?void 0:Lr.bits)||void 0===Oi?void 0:Oi.padding)&&void 0!==xr?xr:0}),As}(pe,W,e.Vt))}}}}re(e,t){const{unchangedNames:o,count:u}=e.Vt;if(!o||!o.bits)return 1;const{bits:{bitmap:g="",padding:E=0},hashCount:W=0}=o;let pe,Ce;try{pe=ui(g).toUint8Array()}catch(et){if(et instanceof Y)return Zi("Decoding the base64 bloom filter in existence filter failed ("+et.message+"); ignoring the bloom filter and falling back to full re-query."),1;throw et}try{Ce=new kl(pe,E,W)}catch(et){return Zi(et instanceof wc?"BloomFilter error: ":"Applying bloom filter failed: ",et),1}return 0===Ce.It?1:u!==t-this.oe(e.targetId,Ce)?2:0}oe(e,t){const o=this.Gt.getRemoteKeysForTarget(e);let u=0;return o.forEach(g=>{const E=this.Gt.ue(),W=`projects/${E.projectId}/databases/${E.database}/documents/${g.path.canonicalString()}`;t.vt(W)||(this.Yt(e,g,null),u++)}),u}ce(e){const t=new Map;this.Qt.forEach((g,E)=>{const W=this.se(E);if(W){if(g.current&&Ci(W.target)){const pe=new $n(W.target.path);null!==this.jt.get(pe)||this.ae(E,pe)||this.Yt(E,pe,ps.newNoDocument(pe,e))}g.Mt&&(t.set(E,g.Ot()),g.Ft())}});let o=Hr();this.zt.forEach((g,E)=>{let W=!0;E.forEachWhile(pe=>{const Ce=this.se(pe);return!Ce||"TargetPurposeLimboResolution"===Ce.purpose||(W=!1,!1)}),W&&(o=o.add(g))}),this.jt.forEach((g,E)=>E.setReadTime(e));const u=new Mc(e,t,this.Wt,this.jt,o);return this.jt=Ua(),this.zt=ip(),this.Wt=new fs(cr),u}Jt(e,t){if(!this.te(e))return;const o=this.ae(e,t.key)?2:0;this.Zt(e).Bt(t.key,o),this.jt=this.jt.insert(t.key,t),this.zt=this.zt.insert(t.key,this.he(t.key).add(e))}Yt(e,t,o){if(!this.te(e))return;const u=this.Zt(e);this.ae(e,t)?u.Bt(t,1):u.Lt(t),this.zt=this.zt.insert(t,this.he(t).delete(e)),o&&(this.jt=this.jt.insert(t,o))}removeTarget(e){this.Qt.delete(e)}ie(e){const t=this.Zt(e).Ot();return this.Gt.getRemoteKeysForTarget(e).size+t.addedDocuments.size-t.removedDocuments.size}qt(e){this.Zt(e).qt()}Zt(e){let t=this.Qt.get(e);return t||(t=new np,this.Qt.set(e,t)),t}he(e){let t=this.zt.get(e);return t||(t=new ss(cr),this.zt=this.zt.insert(e,t)),t}te(e){const t=null!==this.se(e);return t||Wt("WatchChangeAggregator","Detected inactive target",e),t}se(e){const t=this.Qt.get(e);return t&&t.kt?null:this.Gt.le(e)}ee(e){this.Qt.set(e,new np),this.Gt.getRemoteKeysForTarget(e).forEach(t=>{this.Yt(e,t,null)})}ae(e,t){return this.Gt.getRemoteKeysForTarget(e).has(t)}}function ip(){return new fs($n.comparator)}function Uh(){return new fs($n.comparator)}const Tm={asc:"ASCENDING",desc:"DESCENDING"},rp={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},Dm={and:"AND",or:"OR"};class sp{constructor(e,t){this.databaseId=e,this.useProto3Json=t}}function Ju(i,e){return i.useProto3Json||sa(e)?e:{value:e}}function il(i,e){return i.useProto3Json?`${new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+e.nanoseconds).slice(-9)}Z`:{seconds:""+e.seconds,nanos:e.nanoseconds}}function Em(i,e){return i.useProto3Json?e.toBase64():e.toUint8Array()}function j_(i,e){return il(i,e.toTimestamp())}function na(i){return yi(!!i),Bi.fromTimestamp(function(e){const t=Rt(e);return new to(t.seconds,t.nanos)}(i))}function op(i,e){return(t=i,new zr(["projects",t.projectId,"databases",t.database])).child("documents").child(e).canonicalString();var t}function jh(i){const e=zr.fromString(i);return yi(fd(e)),e}function $d(i,e){return op(i.databaseId,e.path)}function Xl(i,e){const t=jh(e);if(t.get(1)!==i.databaseId.projectId)throw new On(un.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+t.get(1)+" vs "+i.databaseId.projectId);if(t.get(3)!==i.databaseId.database)throw new On(un.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+t.get(3)+" vs "+i.databaseId.database);return new $n(up(t))}function ap(i,e){return op(i.databaseId,e)}function lp(i){const e=jh(i);return 4===e.length?zr.emptyPath():up(e)}function dd(i){return new zr(["projects",i.databaseId.projectId,"databases",i.databaseId.database]).canonicalString()}function up(i){return yi(i.length>4&&"documents"===i.get(4)),i.popFirst(5)}function Hl(i,e,t){return{name:$d(i,e),fields:t.value.mapValue.fields}}function Vh(i,e,t){const o=Xl(i,e.name),u=na(e.updateTime),g=e.createTime?na(e.createTime):Bi.min(),E=new vs({mapValue:{fields:e.fields}}),W=ps.newFoundDocument(o,u,g,E);return t&&W.setHasCommittedMutations(),t?W.setHasCommittedMutations():W}function hd(i,e){let t;if(e instanceof bc)t={update:Hl(i,e.key,e.value)};else if(e instanceof Qu)t={delete:$d(i,e.key)};else if(e instanceof Fu)t={update:Hl(i,e.key,e.data),updateMask:pp(e.fieldMask)};else{if(!(e instanceof Rh))return qn();t={verify:$d(i,e.key)}}return e.fieldTransforms.length>0&&(t.updateTransforms=e.fieldTransforms.map(o=>function(u,g){const E=g.transform;if(E instanceof Yl)return{fieldPath:g.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(E instanceof bu)return{fieldPath:g.field.canonicalString(),appendMissingElements:{values:E.elements}};if(E instanceof Va)return{fieldPath:g.field.canonicalString(),removeAllFromArray:{values:E.elements}};if(E instanceof gc)return{fieldPath:g.field.canonicalString(),increment:E.gt};throw qn()}(0,o))),e.precondition.isNone||(t.currentDocument=void 0!==(u=e.precondition).updateTime?{updateTime:j_(i,u.updateTime)}:void 0!==u.exists?{exists:u.exists}:qn()),t;var u}function zh(i,e){const t=e.currentDocument?void 0!==(u=e.currentDocument).updateTime?no.updateTime(na(u.updateTime)):void 0!==u.exists?no.exists(u.exists):no.none():no.none(),o=e.updateTransforms?e.updateTransforms.map(u=>function(g,E){let W=null;"setToServerValue"in E?(yi("REQUEST_TIME"===E.setToServerValue),W=new Yl):"appendMissingElements"in E?W=new bu(E.appendMissingElements.values||[]):"removeAllFromArray"in E?W=new Va(E.removeAllFromArray.values||[]):"increment"in E?W=new gc(g,E.increment):qn();const pe=uo.fromServerFormat(E.fieldPath);return new Vd(pe,W)}(i,u)):[];var u;if(e.update){const u=Xl(i,e.update.name),g=new vs({mapValue:{fields:e.update.fields}});if(e.updateMask){const E=new T((e.updateMask.fieldPaths||[]).map(Ce=>uo.fromServerFormat(Ce)));return new Fu(u,g,E,t,o)}return new bc(u,g,t,o)}if(e.delete){const u=Xl(i,e.delete);return new Qu(u,t)}if(e.verify){const u=Xl(i,e.verify);return new Rh(u,t)}return qn()}function ba(i,e){return{documents:[ap(i,e.path)]}}function rl(i,e){const t={structuredQuery:{}},o=e.path;null!==e.collectionGroup?(t.parent=ap(i,o),t.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(t.parent=ap(i,o.popLast()),t.structuredQuery.from=[{collectionId:o.lastSegment()}]);const u=function(pe){if(0!==pe.length)return Wh(Ns.create(pe,"and"))}(e.filters);u&&(t.structuredQuery.where=u);const g=function(pe){if(0!==pe.length)return pe.map(Ce=>{return{field:eu((et=Ce).field),direction:dp(et.dir)};var et})}(e.orderBy);g&&(t.structuredQuery.orderBy=g);const E=Ju(i,e.limit);var W,pe;return null!==E&&(t.structuredQuery.limit=E),e.startAt&&(t.structuredQuery.startAt={before:(W=e.startAt).inclusive,values:W.position}),e.endAt&&(t.structuredQuery.endAt={before:!(pe=e.endAt).inclusive,values:pe.position}),t}function Hc(i){let e=lp(i.parent);const t=i.structuredQuery,o=t.from?t.from.length:0;let u=null;if(o>0){yi(1===o);const et=t.from[0];et.allDescendants?u=et.collectionId:e=e.child(et.collectionId)}let g=[];t.where&&(g=function(et){const It=Fr(et);return It instanceof Ns&&Zu(It)?It.getFilters():[It]}(t.where));let E=[];t.orderBy&&(E=t.orderBy.map(et=>{return new da(za((It=et).field),function(on){switch(on){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(It.direction));var It}));let W=null;t.limit&&(W=function(et){let It;return It="object"==typeof et?et.value:et,sa(It)?null:It}(t.limit));let pe=null;var et;t.startAt&&(pe=new xo((et=t.startAt).values||[],!!et.before));let Ce=null;return t.endAt&&(Ce=function(et){return new xo(et.values||[],!et.before)}(t.endAt)),Au(e,u,E,g,W,"F",pe,Ce)}function Fr(i){return void 0!==i.unaryFilter?function(e){switch(e.unaryFilter.op){case"IS_NAN":const t=za(e.unaryFilter.field);return Br.create(t,"==",{doubleValue:NaN});case"IS_NULL":const o=za(e.unaryFilter.field);return Br.create(o,"==",{nullValue:"NULL_VALUE"});
1case"IS_NOT_NAN":const u=za(e.unaryFilter.field);return Br.create(u,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const g=za(e.unaryFilter.field);return Br.create(g,"!=",{nullValue:"NULL_VALUE"});default:return qn()}}(i):void 0!==i.fieldFilter?Br.create(za((e=i).fieldFilter.field),function(t){switch(t){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return qn()}}(e.fieldFilter.op),e.fieldFilter.value):void 0!==i.compositeFilter?function(e){return Ns.create(e.compositeFilter.filters.map(t=>Fr(t)),function(t){switch(t){case"AND":return"and";case"OR":return"or";default:return qn()}}(e.compositeFilter.op))}(i):qn();var e}function dp(i){return Tm[i]}function hp(i){return rp[i]}function fp(i){return Dm[i]}function eu(i){return{fieldPath:i.canonicalString()}}function za(i){return uo.fromServerFormat(i.fieldPath)}function Wh(i){return i instanceof Br?function(e){if("=="===e.op){if(jt(e.value))return{unaryFilter:{field:eu(e.field),op:"IS_NAN"}};if(pt(e.value))return{unaryFilter:{field:eu(e.field),op:"IS_NULL"}}}else if("!="===e.op){if(jt(e.value))return{unaryFilter:{field:eu(e.field),op:"IS_NOT_NAN"}};if(pt(e.value))return{unaryFilter:{field:eu(e.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:eu(e.field),op:hp(e.op),value:e.value}}}(i):i instanceof Ns?function(e){const t=e.getFilters().map(o=>Wh(o));return 1===t.length?t[0]:{compositeFilter:{op:fp(e.op),filters:t}}}(i):qn()}function pp(i){const e=[];return i.fields.forEach(t=>e.push(t.canonicalString())),{fieldPaths:e}}function fd(i){return i.length>=4&&"projects"===i.get(0)&&"databases"===i.get(2)}class xa{constructor(e,t,o,u,g=Bi.min(),E=Bi.min(),W=ve.EMPTY_BYTE_STRING,pe=null){this.target=e,this.targetId=t,this.purpose=o,this.sequenceNumber=u,this.snapshotVersion=g,this.lastLimboFreeSnapshotVersion=E,this.resumeToken=W,this.expectedCount=pe}withSequenceNumber(e){return new xa(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(e,t){return new xa(this.target,this.targetId,this.purpose,this.sequenceNumber,t,this.lastLimboFreeSnapshotVersion,e,null)}withExpectedCount(e){return new xa(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,e)}withLastLimboFreeSnapshotVersion(e){return new xa(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken,this.expectedCount)}}class pd{constructor(e){this.fe=e}}function Kd(i,e){const t=e.key,o={prefixPath:t.getCollectionPath().popLast().toArray(),collectionGroup:t.collectionGroup,documentId:t.path.lastSegment(),readTime:qd(e.readTime),hasCommittedMutations:e.hasCommittedMutations};if(e.isFoundDocument())o.document={name:$d(u=i.fe,(g=e).key),fields:g.data.value.mapValue.fields,updateTime:il(u,g.version.toTimestamp()),createTime:il(u,g.createTime.toTimestamp())};else if(e.isNoDocument())o.noDocument={path:t.path.toArray(),readTime:ec(e.version)};else{if(!e.isUnknownDocument())return qn();o.unknownDocument={path:t.path.toArray(),version:ec(e.version)}}var u,g;return o}function qd(i){const e=i.toTimestamp();return[e.seconds,e.nanoseconds]}function ec(i){const e=i.toTimestamp();return{seconds:e.seconds,nanoseconds:e.nanoseconds}}function jc(i){const e=new to(i.seconds,i.nanoseconds);return Bi.fromTimestamp(e)}function tu(i,e){const t=(e.baseMutations||[]).map(g=>zh(i.fe,g));for(let g=0;g<e.mutations.length-1;++g){const E=e.mutations[g];g+1<e.mutations.length&&void 0!==e.mutations[g+1].transform&&(E.updateTransforms=e.mutations[g+1].transform.fieldTransforms,e.mutations.splice(g+1,1),++g)}const o=e.mutations.map(g=>zh(i.fe,g)),u=to.fromMillis(e.localWriteTimeMs);return new Ko(e.batchId,u,t,o)}function Yu(i){const e=jc(i.readTime),t=void 0!==i.lastLimboFreeSnapshotVersion?jc(i.lastLimboFreeSnapshotVersion):Bi.min();let o;var u;return void 0!==i.query.documents?(yi(1===(u=i.query).documents.length),o=_o(_l(lp(u.documents[0])))):o=_o(Hc(i.query)),new xa(o,i.targetId,"TargetPurposeListen",i.lastListenSequenceNumber,e,t,ve.fromBase64String(i.resumeToken))}function md(i,e){const t=ec(e.snapshotVersion),o=ec(e.lastLimboFreeSnapshotVersion);let u;u=Ci(e.target)?ba(i.fe,e.target):rl(i.fe,e.target);const g=e.resumeToken.toBase64();return{targetId:e.targetId,canonicalId:an(e.target),readTime:t,resumeToken:g,lastListenSequenceNumber:e.sequenceNumber,lastLimboFreeSnapshotVersion:o,query:u}}function _d(i){const e=Hc({parent:i.parent,structuredQuery:i.structuredQuery});return"LAST"===i.limitType?Ru(e,e.limit,"L"):e}function gd(i,e){return new Nh(e.largestBatchId,zh(i.fe,e.overlayMutation))}function km(i,e){const t=e.path.lastSegment();return[i,Us(e.path.popLast()),t]}function Zh(i,e,t,o){return{indexId:i,uid:e.uid||"",sequenceNumber:t,readTime:ec(o.readTime),documentKey:Us(o.documentKey.path),largestBatchId:o.largestBatchId}}class Im{getBundleMetadata(e,t){return mp(e).get(t).next(o=>{if(o)return{id:(u=o).bundleId,createTime:jc(u.createTime),version:u.version};var u})}saveBundleMetadata(e,t){return mp(e).put({bundleId:(o=t).id,createTime:ec(na(o.createTime)),version:o.version});var o}getNamedQuery(e,t){return Gh(e).get(t).next(o=>{if(o)return{name:(u=o).name,query:_d(u.bundledQuery),readTime:jc(u.readTime)};var u})}saveNamedQuery(e,t){return Gh(e).put({name:(o=t).name,readTime:ec(na(o.readTime)),bundledQuery:o.bundledQuery});var o}}function mp(i){return ys(i,"bundles")}function Gh(i){return ys(i,"namedQueries")}
1class yd{constructor(e,t){this.serializer=e,this.userId=t}static de(e,t){return new yd(e,t.uid||"")}getOverlay(e,t){return Qd(e).get(km(this.userId,t)).next(o=>o?gd(this.serializer,o):null)}getOverlays(e,t){const o=gu();return nn.forEach(t,u=>this.getOverlay(e,u).next(g=>{null!==g&&o.set(u,g)})).next(()=>o)}saveOverlays(e,t,o){const u=[];return o.forEach((g,E)=>{const W=new Nh(t,E);u.push(this.we(e,W))}),nn.waitFor(u)}removeOverlaysForBatchId(e,t,o){const u=new Set;t.forEach(E=>u.add(Us(E.getCollectionPath())));const g=[];return u.forEach(E=>{const W=IDBKeyRange.bound([this.userId,E,o],[this.userId,E,o+1],!1,!0);g.push(Qd(e).J("collectionPathOverlayIndex",W))}),nn.waitFor(g)}getOverlaysForCollection(e,t,o){const u=gu(),g=Us(t),E=IDBKeyRange.bound([this.userId,g,o],[this.userId,g,Number.POSITIVE_INFINITY],!0);return Qd(e).j("collectionPathOverlayIndex",E).next(W=>{for(const pe of W){const Ce=gd(this.serializer,pe);u.set(Ce.getKey(),Ce)}return u})}getOverlaysForCollectionGroup(e,t,o,u){const g=gu();let E;const W=IDBKeyRange.bound([this.userId,t,o],[this.userId,t,Number.POSITIVE_INFINITY],!0);return Qd(e).X({index:"collectionGroupOverlayIndex",range:W},(pe,Ce,et)=>{const It=gd(this.serializer,Ce);g.size()<u||It.largestBatchId===E?(g.set(It.getKey(),It),E=It.largestBatchId):et.done()}).next(()=>g)}we(e,t){return Qd(e).put(function(o,u,g){const[E,W,pe]=km(u,g.mutation.key);return{userId:u,collectionPath:W,documentId:pe,collectionGroup:g.mutation.key.getCollectionGroup(),largestBatchId:g.largestBatchId,overlayMutation:hd(o.fe,g.mutation)}}(this.serializer,this.userId,t))}}function Qd(i){return ys(i,"documentOverlays")}class Dc{constructor(){}_e(e,t){this.me(e,t),t.ge()}me(e,t){if("nullValue"in e)this.ye(t,5);else if("booleanValue"in e)this.ye(t,10),t.pe(e.booleanValue?1:0);else if("integerValue"in e)this.ye(t,15),t.pe(ln(e.integerValue));else if("doubleValue"in e){const o=ln(e.doubleValue);isNaN(o)?this.ye(t,13):(this.ye(t,15),La(o)?t.pe(0):t.pe(o))}else if("timestampValue"in e){const o=e.timestampValue;this.ye(t,20),"string"==typeof o?t.Ie(o):(t.Ie(`${o.seconds||""}`),t.pe(o.nanos||0))}else if("stringValue"in e)this.Te(e.stringValue,t),this.Ee(t);else if("bytesValue"in e)this.ye(t,30),t.Ae(ui(e.bytesValue)),this.Ee(t);else if("referenceValue"in e)this.ve(e.referenceValue,t);else if("geoPointValue"in e){const o=e.geoPointValue;this.ye(t,45),t.pe(o.latitude||0),t.pe(o.longitude||0)}else"mapValue"in e?gi(e)?this.ye(t,Number.MAX_SAFE_INTEGER):(this.Re(e.mapValue,t),this.Ee(t)):"arrayValue"in e?(this.Pe(e.arrayValue,t),this.Ee(t)):qn()}Te(e,t){this.ye(t,25),this.be(e,t)}be(e,t){t.Ie(e)}Re(e,t){const o=e.fields||{};this.ye(t,55);for(const u of Object.keys(o))this.Te(u,t),this.me(o[u],t)}Pe(e,t){const o=e.values||[];this.ye(t,50);for(const u of o)this.me(u,t)}ve(e,t){this.ye(t,37),$n.fromName(e).path.forEach(o=>{this.ye(t,60),this.be(o,t)})}ye(e,t){e.pe(t)}Ee(e){e.pe(2)}}function V_(i){if(0===i)return 8;let e=0;return i>>4==0&&(e+=4,i<<=4),i>>6==0&&(e+=2,i<<=2),i>>7==0&&(e+=1),e}function $h(i){const e=64-function(t){let o=0;for(let u=0;u<8;++u){const g=V_(255&t[u]);if(o+=g,8!==g)break}return o}(i);return Math.ceil(e/8)}Dc.Ve=new Dc;class _p{constructor(){this.buffer=new Uint8Array(1024),this.position=0}Se(e){const t=e[Symbol.iterator]();let o=t.next();for(;!o.done;)this.De(o.value),o=t.next();this.Ce()}xe(e){const t=e[Symbol.iterator]();let o=t.next();for(;!o.done;)this.Ne(o.value),o=t.next();this.ke()}Me(e){for(const t of e){const o=t.charCodeAt(0);if(o<128)this.De(o);else if(o<2048)this.De(960|o>>>6),this.De(128|63&o);else if(t<"\ud800"||"\udbff"<t)this.De(480|o>>>12),this.De(128|63&o>>>6),this.De(128|63&o);else{const u=t.codePointAt(0);this.De(240|u>>>18),this.De(128|63&u>>>12),this.De(128|63&u>>>6),this.De(128|63&u)}}this.Ce()}$e(e){for(const t of e){const o=t.charCodeAt(0);if(o<128)this.Ne(o);else if(o<2048)this.Ne(960|o>>>6),this.Ne(128|63&o);else if(t<"\ud800"||"\udbff"<t)this.Ne(480|o>>>12),this.Ne(128|63&o>>>6),this.Ne(128|63&o);else{const u=t.codePointAt(0);this.Ne(240|u>>>18),this.Ne(128|63&u>>>12),this.Ne(128|63&u>>>6),this.Ne(128|63&u)}}this.ke()}Oe(e){const t=this.Fe(e),o=$h(t);this.Be(1+o),this.buffer[this.position++]=255&o;for(let u=t.length-o;u<t.length;++u)this.buffer[this.position++]=255&t[u]}Le(e){const t=this.Fe(e),o=$h(t);this.Be(1+o),this.buffer[this.position++]=~(255&o);for(let u=t.length-o;u<t.length;++u)this.buffer[this.position++]=~(255&t[u])}qe(){this.Ue(255),this.Ue(255)}Ke(){this.Ge(255),this.Ge(255)}reset(){this.position=0}seed(e){this.Be(e.length),this.buffer.set(e,this.position),this.position+=e.length}Qe(){return this.buffer.slice(0,this.position)}Fe(e){const t=function(u){const g=new DataView(new ArrayBuffer(8));return g.setFloat64(0,u,!1),new Uint8Array(g.buffer)}(e),o=0!=(128&t[0]);t[0]^=o?255:128;for(let u=1;u<t.length;++u)t[u]^=o?255:0;return t}De(e){const t=255&e;0===t?(this.Ue(0),this.Ue(255)):255===t?(this.Ue(255),this.Ue(0)):this.Ue(t)}Ne(e){const t=255&e;0===t?(this.Ge(0),this.Ge(255)):255===t?(this.Ge(255),this.Ge(0)):this.Ge(e)}Ce(){this.Ue(0),this.Ue(1)}ke(){this.Ge(0),this.Ge(1)}Ue(e){this.Be(1),this.buffer[this.position++]=e}Ge(e){this.Be(1),this.buffer[this.position++]=~e}Be(e){const t=e+this.position;if(t<=this.buffer.length)return;let o=2*this.buffer.length;o<t&&(o=t);const u=new Uint8Array(o);u.set(this.buffer),this.buffer=u}}class gp{constructor(e){this.je=e}Ae(e){this.je.Se(e)}Ie(e){this.je.Me(e)}pe(e){this.je.Oe(e)}ge(){this.je.qe()}}class Jd{constructor(e){this.je=e}Ae(e){this.je.xe(e)}Ie(e){this.je.$e(e)}pe(e){this.je.Le(e)}ge(){this.je.Ke()}}class Xd{constructor(){this.je=new _p,this.ze=new gp(this.je),this.We=new Jd(this.je)}seed(e){this.je.seed(e)}He(e){return 0===e?this.ze:this.We}Qe(){return this.je.Qe()}reset(){this.je.reset()}}class Vc{constructor(e,t,o,u){this.indexId=e,this.documentKey=t,this.arrayValue=o,this.directionalValue=u}
1Je(){const e=this.directionalValue.length,t=0===e||255===this.directionalValue[e-1]?e+1:e,o=new Uint8Array(t);return o.set(this.directionalValue,0),t!==e?o.set([0],this.directionalValue.length):++o[o.length-1],new Vc(this.indexId,this.documentKey,this.arrayValue,o)}}function Ec(i,e){let t=i.indexId-e.indexId;return 0!==t?t:(t=xm(i.arrayValue,e.arrayValue),0!==t?t:(t=xm(i.directionalValue,e.directionalValue),0!==t?t:$n.comparator(i.documentKey,e.documentKey)))}function xm(i,e){for(let t=0;t<i.length&&t<e.length;++t){const o=i[t]-e[t];if(0!==o)return o}return i.length-e.length}class z_{constructor(e){this.collectionId=null!=e.collectionGroup?e.collectionGroup:e.path.lastSegment(),this.Ye=e.orderBy,this.Xe=[];for(const t of e.filters){const o=t;o.isInequality()?this.Ze=o:this.Xe.push(o)}}tn(e){yi(e.collectionGroup===this.collectionId);const t=Ea(e);if(void 0!==t&&!this.en(t))return!1;const o=ll(e);let u=new Set,g=0,E=0;for(;g<o.length&&this.en(o[g]);++g)u=u.add(o[g].fieldPath.canonicalString());if(g===o.length)return!0;if(void 0!==this.Ze){if(!u.has(this.Ze.field.canonicalString())){const W=o[g];if(!this.nn(this.Ze,W)||!this.sn(this.Ye[E++],W))return!1}++g}for(;g<o.length;++g){const W=o[g];if(E>=this.Ye.length||!this.sn(this.Ye[E++],W))return!1}return!0}en(e){for(const t of this.Xe)if(this.nn(t,e))return!0;return!1}nn(e,t){return!(void 0===e||!e.field.isEqual(t.fieldPath))&&2===t.kind==("array-contains"===e.op||"array-contains-any"===e.op)}sn(e,t){return!!e.field.isEqual(t.fieldPath)&&(0===t.kind&&"asc"===e.dir||1===t.kind&&"desc"===e.dir)}}function Lm(i){var e,t;if(yi(i instanceof Br||i instanceof Ns),i instanceof Br){if(i instanceof I){const u=(null===(t=null===(e=i.value.arrayValue)||void 0===e?void 0:e.values)||void 0===t?void 0:t.map(g=>Br.create(i.field,"==",g)))||[];return Ns.create(u,"or")}return i}const o=i.filters.map(u=>Lm(u));return Ns.create(o,i.op)}function _(i){if(0===i.getFilters().length)return[];const e=O(Lm(i));return yi(M(e)),p(e)||f(e)?[e]:e.getFilters()}function p(i){return i instanceof Br}function f(i){return i instanceof Ns&&Zu(i)}function M(i){return p(i)||f(i)||function(e){if(e instanceof Ns&&Wu(e)){for(const t of e.getFilters())if(!p(t)&&!f(t))return!1;return!0}return!1}(i)}function O(i){if(yi(i instanceof Br||i instanceof Ns),i instanceof Br)return i;if(1===i.filters.length)return O(i.filters[0]);const e=i.filters.map(o=>O(o));let t=Ns.create(e,i.op);return t=Qe(t),M(t)?t:(yi(t instanceof Ns),yi(jo(t)),yi(t.filters.length>1),t.filters.reduce((o,u)=>X(o,u)))}function X(i,e){let t;return yi(i instanceof Br||i instanceof Ns),yi(e instanceof Br||e instanceof Ns),t=i instanceof Br?e instanceof Br?Ns.create([i,e],"and"):ye(i,e):e instanceof Br?ye(e,i):function(o,u){if(yi(o.filters.length>0&&u.filters.length>0),jo(o)&&jo(u))return Nc(o,u.getFilters());const g=Wu(o)?o:u,E=Wu(o)?u:o,W=g.filters.map(pe=>X(pe,E));return Ns.create(W,"or")}(i,e),Qe(t)}function ye(i,e){if(jo(e))return Nc(e,i.getFilters());{const t=e.filters.map(o=>X(i,o));return Ns.create(t,"or")}}function Qe(i){if(yi(i instanceof Br||i instanceof Ns),i instanceof Br)return i;const e=i.getFilters();if(1===e.length)return Qe(e[0]);if(mc(i))return i;const t=e.map(u=>Qe(u)),o=[];return t.forEach(u=>{u instanceof Br?o.push(u):u instanceof Ns&&(u.op===i.op?o.push(...u.filters):o.push(u))}),1===o.length?o[0]:Ns.create(o,i.op)}class yt{constructor(){this.rn=new Lt}addToCollectionParentIndex(e,t){return this.rn.add(t),nn.resolve()}getCollectionParents(e,t){return nn.resolve(this.rn.getEntries(t))}addFieldIndex(e,t){return nn.resolve()}deleteFieldIndex(e,t){return nn.resolve()}getDocumentsMatchingTarget(e,t){return nn.resolve(null)}getIndexType(e,t){return nn.resolve(0)}getFieldIndexes(e,t){return nn.resolve([])}getNextCollectionGroupToUpdate(e){return nn.resolve(null)}getMinOffset(e,t){return nn.resolve(Go.min())}getMinOffsetFromCollectionGroup(e,t){return nn.resolve(Go.min())}updateCollectionGroup(e,t,o){return nn.resolve()}updateIndexEntries(e,t){return nn.resolve()}}class Lt{constructor(){this.index={}}add(e){const t=e.lastSegment(),o=e.popLast(),u=this.index[t]||new ss(zr.comparator),g=!u.has(o);return this.index[t]=u.add(o),g}has(e){const t=e.lastSegment(),o=e.popLast(),u=this.index[t];return u&&u.has(o)}getEntries(e){return(this.index[e]||new ss(zr.comparator)).toArray()}}const Tn=new Uint8Array(0);class Ln{constructor(e,t){this.user=e,this.databaseId=t,this.on=new Lt,this.un=new Sl(o=>
1an(o),(o,u)=>Xn(o,u)),this.uid=e.uid||""}addToCollectionParentIndex(e,t){if(!this.on.has(t)){const o=t.lastSegment(),u=t.popLast();e.addOnCommittedListener(()=>{this.on.add(t)});const g={collectionId:o,parent:Us(u)};return Yn(e).put(g)}return nn.resolve()}getCollectionParents(e,t){const o=[],u=IDBKeyRange.bound([t,""],[fc(t),""],!1,!0);return Yn(e).j(u).next(g=>{for(const E of g){if(E.collectionId!==t)break;o.push(mo(E.parent))}return o})}addFieldIndex(e,t){const o=nr(e),u={indexId:(E=t).indexId,collectionGroup:E.collectionGroup,fields:E.fields.map(W=>[W.fieldPath.canonicalString(),W.kind])};var E;delete u.indexId;const g=o.add(u);if(t.indexState){const E=os(e);return g.next(W=>{E.put(Zh(W,this.user,t.indexState.sequenceNumber,t.indexState.offset))})}return g.next()}deleteFieldIndex(e,t){const o=nr(e),u=os(e),g=Li(e);return o.delete(t.indexId).next(()=>u.delete(IDBKeyRange.bound([t.indexId],[t.indexId+1],!1,!0))).next(()=>g.delete(IDBKeyRange.bound([t.indexId],[t.indexId+1],!1,!0)))}getDocumentsMatchingTarget(e,t){const o=Li(e);let u=!0;const g=new Map;return nn.forEach(this.cn(t),E=>this.an(e,E).next(W=>{u&&(u=!!W),g.set(E,W)})).next(()=>{if(u){let E=Hr();const W=[];return nn.forEach(g,(pe,Ce)=>{var et;Wt("IndexedDbIndexManager",`Using index ${et=pe,`id=${et.indexId}|cg=${et.collectionGroup}|f=${et.fields.map(Lr=>`${Lr.fieldPath}:${Lr.kind}`).join(",")}`} to execute ${an(t)}`);const It=function(Lr,pa){const Ao=Ea(pa);if(void 0===Ao)return null;for(const Po of sr(Lr,Ao.fieldPath))switch(Po.op){case"array-contains-any":return Po.value.arrayValue.values||[];case"array-contains":return[Po.value]}return null}(Ce,pe),on=function(Lr,pa){const Ao=new Map;for(const Po of ll(pa))for(const Al of sr(Lr,Po.fieldPath))switch(Al.op){case"==":case"in":Ao.set(Po.fieldPath.canonicalString(),Al.value);break;case"not-in":case"!=":return Ao.set(Po.fieldPath.canonicalString(),Al.value),Array.from(Ao.values())}return null}(Ce,pe),An=function(Lr,pa){const Ao=[];let Po=!0;for(const Al of ll(pa)){const nd=0===Al.kind?mr(Lr,Al.fieldPath,Lr.startAt):js(Lr,Al.fieldPath,Lr.startAt);Ao.push(nd.value),Po&&(Po=nd.inclusive)}return new xo(Ao,Po)}(Ce,pe),di=function(Lr,pa){const Ao=[];let Po=!0;for(const Al of ll(pa)){const nd=0===Al.kind?js(Lr,Al.fieldPath,Lr.endAt):mr(Lr,Al.fieldPath,Lr.endAt);Ao.push(nd.value),Po&&(Po=nd.inclusive)}return new xo(Ao,Po)}(Ce,pe),Ai=this.hn(pe,Ce,An),Oi=this.hn(pe,Ce,di),xr=this.ln(pe,Ce,on),As=this.fn(pe.indexId,It,Ai,An.inclusive,Oi,di.inclusive,xr);return nn.forEach(As,Lr=>o.H(Lr,t.limit).next(pa=>{pa.forEach(Ao=>{const Po=$n.fromSegments(Ao.documentKey);E.has(Po)||(E=E.add(Po),W.push(Po))})}))}).next(()=>W)}return nn.resolve(null)})}cn(e){let t=this.un.get(e);return t||(t=0===e.filters.length?[e]:_(Ns.create(e.filters,"and")).map(o=>Gt(e.path,e.collectionGroup,e.orderBy,o.getFilters(),e.limit,e.startAt,e.endAt)),this.un.set(e,t),t)}fn(e,t,o,u,g,E,W){const pe=(null!=t?t.length:1)*Math.max(o.length,g.length),Ce=pe/(null!=t?t.length:1),et=[];for(let It=0;It<pe;++It){const on=t?this.dn(t[It/Ce]):Tn,An=this.wn(e,on,o[It%Ce],u),di=this._n(e,on,g[It%Ce],E),Ai=W.map(Oi=>this.wn(e,on,Oi,!0));et.push(...this.createRange(An,di,Ai))}return et}wn(e,t,o,u){const g=new Vc(e,$n.empty(),t,o);
1return u?g:g.Je()}_n(e,t,o,u){const g=new Vc(e,$n.empty(),t,o);return u?g.Je():g}an(e,t){const o=new z_(t),u=null!=t.collectionGroup?t.collectionGroup:t.path.lastSegment();return this.getFieldIndexes(e,u).next(g=>{let E=null;for(const W of g)o.tn(W)&&(!E||W.fields.length>E.fields.length)&&(E=W);return E})}getIndexType(e,t){let o=2;const u=this.cn(t);return nn.forEach(u,g=>this.an(e,g).next(E=>{E?0!==o&&E.fields.length<function(W){let pe=new ss(uo.comparator),Ce=!1;for(const et of W.filters)for(const It of et.getFlattenedFilters())It.field.isKeyField()||("array-contains"===It.op||"array-contains-any"===It.op?Ce=!0:pe=pe.add(It.field));for(const et of W.orderBy)et.field.isKeyField()||(pe=pe.add(et.field));return pe.size+(Ce?1:0)}(g)&&(o=1):o=0})).next(()=>null!==t.limit&&u.length>1&&2===o?1:o)}mn(e,t){const o=new Xd;for(const u of ll(e)){const g=t.data.field(u.fieldPath);if(null==g)return null;const E=o.He(u.kind);Dc.Ve._e(g,E)}return o.Qe()}dn(e){const t=new Xd;return Dc.Ve._e(e,t.He(0)),t.Qe()}gn(e,t){const o=new Xd;return Dc.Ve._e(V(this.databaseId,t),o.He(function(u){const g=ll(u);return 0===g.length?0:g[g.length-1].kind}(e))),o.Qe()}ln(e,t,o){if(null===o)return[];let u=[];u.push(new Xd);let g=0;for(const E of ll(e)){const W=o[g++];for(const pe of u)if(this.yn(t,E.fieldPath)&&Ie(W))u=this.pn(u,E,W);else{const Ce=pe.He(E.kind);Dc.Ve._e(W,Ce)}}return this.In(u)}hn(e,t,o){return this.ln(e,t,o.position)}In(e){const t=[];for(let o=0;o<e.length;++o)t[o]=e[o].Qe();return t}pn(e,t,o){const u=[...e],g=[];for(const E of o.arrayValue.values||[])for(const W of u){const pe=new Xd;pe.seed(W.Qe()),Dc.Ve._e(E,pe.He(t.kind)),g.push(pe)}return g}yn(e,t){return!!e.filters.find(o=>o instanceof Br&&o.field.isEqual(t)&&("in"===o.op||"not-in"===o.op))}getFieldIndexes(e,t){const o=nr(e),u=os(e);return(t?o.j("collectionGroupIndex",IDBKeyRange.bound(t,t)):o.j()).next(g=>{const E=[];return nn.forEach(g,W=>u.get([W.indexId,this.uid]).next(pe=>{E.push(function(Ce,et){const It=et?new bl(et.sequenceNumber,new Go(jc(et.readTime),new $n(mo(et.documentKey)),et.largestBatchId)):bl.empty(),on=Ce.fields.map(([An,di])=>new Ho(uo.fromServerFormat(An),di));return new qa(Ce.indexId,Ce.collectionGroup,on,It)}(W,pe))})).next(()=>E)})}getNextCollectionGroupToUpdate(e){return this.getFieldIndexes(e).next(t=>0===t.length?null:(t.sort((o,u)=>{const g=o.indexState.sequenceNumber-u.indexState.sequenceNumber;return 0!==g?g:cr(o.collectionGroup,u.collectionGroup)}),t[0].collectionGroup))}updateCollectionGroup(e,t,o){const u=nr(e),g=os(e);return this.Tn(e).next(E=>u.j("collectionGroupIndex",IDBKeyRange.bound(t,t)).next(W=>nn.forEach(W,pe=>g.put(Zh(pe.indexId,this.user,E,o)))))}updateIndexEntries(e,t){const o=new Map;return nn.forEach(t,(u,g)=>{const E=o.get(u.collectionGroup);return(E?nn.resolve(E):this.getFieldIndexes(e,u.collectionGroup)).next(W=>(o.set(u.collectionGroup,W),nn.forEach(W,pe=>this.En(e,u,pe).next(Ce=>{const et=this.An(g,pe);return Ce.isEqual(et)?nn.resolve():this.vn(e,g,pe,Ce,et)}))))})}Rn(e,t,o,u){return Li(e).put({indexId:u.indexId,uid:this.uid,arrayValue:u.arrayValue,directionalValue:u.directionalValue,orderedDocumentKey:this.gn(o,t.key),documentKey:t.key.path.toArray()})}Pn(e,t,o,u){return Li(e).delete([u.indexId,this.uid,u.arrayValue,u.directionalValue,this.gn(o,t.key),t.key.path.toArray()])}En(e,t,o){const u=Li(e);let g=new ss(Ec);return u.X({index:"documentKeyIndex",range:IDBKeyRange.only([o.indexId,this.uid,this.gn(o,t)])},(E,W)=>{g=g.add(new Vc(o.indexId,t,W.arrayValue,W.directionalValue))}).next(()=>g)}An(e,t){let o=new ss(Ec);const u=this.mn(t,e);if(null==u)return o;const g=Ea(t);if(null!=g){const E=e.data.field(g.fieldPath);if(Ie(E))for(const W of E.arrayValue.values||[])o=o.add(new Vc(t.indexId,e.key,this.dn(W),u))}else o=o.add(new Vc(t.indexId,e.key,Tn,u));return o}vn(e,t,o,u,g){Wt("IndexedDbIndexManager","Updating index entries for document '%s'",t.key);const E=[];return function(W,pe,Ce,et,It){const on=W.getIterator(),An=pe.getIterator();let di=Er(on),Ai=Er(An);for(;di||Ai;){let Oi=!1,xr=!1;if(di&&Ai){const As=Ce(di,Ai);As<0?xr=!0:As>0&&(Oi=!0)}else null!=di?xr=!0:Oi=!0;Oi?(et(Ai),Ai=Er(An)):xr?(It(di),di=Er(on)):(di=Er(on),Ai=Er(An))}}(u,g,Ec,W=>{E.push(this.Rn(e,t,o,W))},W=>{E.push(this.Pn(e,t,o,W))}),nn.waitFor(E)}Tn(e){let t=1;return os(e).X({index:"sequenceNumberIndex",reverse:!0,range:IDBKeyRange.upperBound([this.uid,Number.MAX_SAFE_INTEGER])},(o,u,g)=>{g.done(),t=u.sequenceNumber+1}
1).next(()=>t)}createRange(e,t,o){o=o.sort((E,W)=>Ec(E,W)).filter((E,W,pe)=>!W||0!==Ec(E,pe[W-1]));const u=[];u.push(e);for(const E of o){const W=Ec(E,e),pe=Ec(E,t);if(0===W)u[0]=e.Je();else if(W>0&&pe<0)u.push(E),u.push(E.Je());else if(pe>0)break}u.push(t);const g=[];for(let E=0;E<u.length;E+=2){if(this.bn(u[E],u[E+1]))return[];g.push(IDBKeyRange.bound([u[E].indexId,this.uid,u[E].arrayValue,u[E].directionalValue,Tn,[]],[u[E+1].indexId,this.uid,u[E+1].arrayValue,u[E+1].directionalValue,Tn,[]]))}return g}bn(e,t){return Ec(e,t)>0}getMinOffsetFromCollectionGroup(e,t){return this.getFieldIndexes(e,t).next(wa)}getMinOffset(e,t){return nn.mapArray(this.cn(t),o=>this.an(e,o).next(u=>u||qn())).next(wa)}}function Yn(i){return ys(i,"collectionParents")}function Li(i){return ys(i,"indexEntries")}function nr(i){return ys(i,"indexConfiguration")}function os(i){return ys(i,"indexState")}function wa(i){yi(0!==i.length);let e=i[0].indexState.offset,t=e.largestBatchId;for(let o=1;o<i.length;o++){const u=i[o].indexState.offset;uu(u,e)<0&&(e=u),t<u.largestBatchId&&(t=u.largestBatchId)}return new Go(e.readTime,e.documentKey,t)}const Ul={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0};class Vo{constructor(e,t,o){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=t,this.maximumSequenceNumbersToCollect=o}static withCacheSize(e){return new Vo(e,Vo.DEFAULT_COLLECTION_PERCENTILE,Vo.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}function Cc(i,e,t){const o=i.store("mutations"),u=i.store("documentMutations"),g=[],E=IDBKeyRange.only(t.batchId);let W=0;const pe=o.X({range:E},(et,It,on)=>(W++,on.delete()));g.push(pe.next(()=>{yi(1===W)}));const Ce=[];for(const et of t.mutations){const It=Pa(e,et.key.path,t.batchId);g.push(u.delete(It)),Ce.push(et.key)}return nn.waitFor(g).next(()=>Ce)}function tc(i){if(!i)return 0;let e;if(i.document)e=i.document;else if(i.unknownDocument)e=i.unknownDocument;else{if(!i.noDocument)throw qn();e=i.noDocument}return JSON.stringify(e).length}Vo.DEFAULT_COLLECTION_PERCENTILE=10,Vo.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Vo.DEFAULT=new Vo(41943040,Vo.DEFAULT_COLLECTION_PERCENTILE,Vo.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Vo.DISABLED=new Vo(-1,0,0);class Sc{constructor(e,t,o,u){this.userId=e,this.serializer=t,this.indexManager=o,this.referenceDelegate=u,this.Vn={}}static de(e,t,o,u){yi(""!==e.uid);const g=e.isAuthenticated()?e.uid:"";return new Sc(g,t,o,u)}checkEmpty(e){let t=!0;const o=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return nu(e).X({index:"userMutationsIndex",range:o},(u,g,E)=>{t=!1,E.done()}).next(()=>t)}addMutationBatch(e,t,o,u){const g=nc(e),E=nu(e);return E.add({}).next(W=>{yi("number"==typeof W);const pe=new Ko(W,t,o,u),Ce=function(on,An,di){const Ai=di.baseMutations.map(xr=>hd(on.fe,xr)),Oi=di.mutations.map(xr=>hd(on.fe,xr));return{userId:An,batchId:di.batchId,localWriteTimeMs:di.localWriteTime.toMillis(),baseMutations:Ai,mutations:Oi}}(this.serializer,this.userId,pe),et=[];let It=new ss((on,An)=>cr(on.canonicalString(),An.canonicalString()));for(const on of u){const An=Pa(this.userId,on.key.path,W);It=It.add(on.key.path.popLast()),et.push(E.put(Ce)),et.push(g.put(An,Du))}return It.forEach(on=>{et.push(this.indexManager.addToCollectionParentIndex(e,on))}),e.addOnCommittedListener(()=>{this.Vn[W]=pe.keys()}),nn.waitFor(et).next(()=>pe)})}lookupMutationBatch(e,t){return nu(e).get(t).next(o=>o?(yi(o.userId===this.userId),tu(this.serializer,o)):null)}Sn(e,t){return this.Vn[t]?nn.resolve(this.Vn[t]):this.lookupMutationBatch(e,t).next(o=>{if(o){const u=o.keys();return this.Vn[t]=u,u}return null})}getNextMutationBatchAfterBatchId(e,t){const o=t+1,u=IDBKeyRange.lowerBound([this.userId,o]);let g=null;return nu(e).X({index:"userMutationsIndex",range:u},(E,W,pe)=>{W.userId===this.userId&&(yi(W.batchId>=o),g=tu(this.serializer,W)),pe.done()}).next(()=>g)}getHighestUnacknowledgedBatchId(e){const t=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]);let o=-1;return nu(e).X({index:"userMutationsIndex",range:t,reverse:!0},(u,g,E)=>{o=g.batchId,E.done()}).next(()=>o)}getAllMutationBatches(e){const t=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return nu(e).j("userMutationsIndex",t).next(o=>o.map(u=>tu(this.serializer,u)))}getAllMutationBatchesAffectingDocumentKey(e,t){const o=Aa(this.userId,t.path),u=IDBKeyRange.lowerBound(o),g=[];return nc(e).X({range:u},(E,W,pe)=>{const[Ce,et,It]=E,on=mo(et);if(Ce===this.userId&&t.path.isEqual(on))return nu(e).get(It).next(An=>{if(!An)throw qn();
1yi(An.userId===this.userId),g.push(tu(this.serializer,An))});pe.done()}).next(()=>g)}getAllMutationBatchesAffectingDocumentKeys(e,t){let o=new ss(cr);const u=[];return t.forEach(g=>{const E=Aa(this.userId,g.path),W=IDBKeyRange.lowerBound(E),pe=nc(e).X({range:W},(Ce,et,It)=>{const[on,An,di]=Ce,Ai=mo(An);on===this.userId&&g.path.isEqual(Ai)?o=o.add(di):It.done()});u.push(pe)}),nn.waitFor(u).next(()=>this.Dn(e,o))}getAllMutationBatchesAffectingQuery(e,t){const o=t.path,u=o.length+1,g=Aa(this.userId,o),E=IDBKeyRange.lowerBound(g);let W=new ss(cr);return nc(e).X({range:E},(pe,Ce,et)=>{const[It,on,An]=pe,di=mo(on);It===this.userId&&o.isPrefixOf(di)?di.length===u&&(W=W.add(An)):et.done()}).next(()=>this.Dn(e,W))}Dn(e,t){const o=[],u=[];return t.forEach(g=>{u.push(nu(e).get(g).next(E=>{if(null===E)throw qn();yi(E.userId===this.userId),o.push(tu(this.serializer,E))}))}),nn.waitFor(u).next(()=>o)}removeMutationBatch(e,t){return Cc(e.ht,this.userId,t).next(o=>(e.addOnCommittedListener(()=>{this.Cn(t.batchId)}),nn.forEach(o,u=>this.referenceDelegate.markPotentiallyOrphaned(e,u))))}Cn(e){delete this.Vn[e]}performConsistencyCheck(e){return this.checkEmpty(e).next(t=>{if(!t)return nn.resolve();const o=IDBKeyRange.lowerBound([this.userId]),u=[];return nc(e).X({range:o},(g,E,W)=>{if(g[0]===this.userId){const pe=mo(g[1]);u.push(pe)}else W.done()}).next(()=>{yi(0===u.length)})})}containsKey(e,t){return yp(e,this.userId,t)}xn(e){return vd(e).get(this.userId).next(t=>t||{userId:this.userId,lastAcknowledgedBatchId:-1,lastStreamToken:""})}}function yp(i,e,t){const o=Aa(e,t.path),u=o[1],g=IDBKeyRange.lowerBound(o);let E=!1;return nc(i).X({range:g,Y:!0},(W,pe,Ce)=>{const[et,It,on]=W;et===e&&It===u&&(E=!0),Ce.done()}).next(()=>E)}function nu(i){return ys(i,"mutations")}function nc(i){return ys(i,"documentMutations")}function vd(i){return ys(i,"mutationQueues")}class bd{constructor(e){this.Nn=e}next(){return this.Nn+=2,this.Nn}static kn(){return new bd(0)}static Mn(){return new bd(-1)}}class W_{constructor(e,t){this.referenceDelegate=e,this.serializer=t}allocateTargetId(e){return this.$n(e).next(t=>{const o=new bd(t.highestTargetId);return t.highestTargetId=o.next(),this.On(e,t).next(()=>t.highestTargetId)})}getLastRemoteSnapshotVersion(e){return this.$n(e).next(t=>Bi.fromTimestamp(new to(t.lastRemoteSnapshotVersion.seconds,t.lastRemoteSnapshotVersion.nanoseconds)))}getHighestSequenceNumber(e){return this.$n(e).next(t=>t.highestListenSequenceNumber)}setTargetsMetadata(e,t,o){return this.$n(e).next(u=>(u.highestListenSequenceNumber=t,o&&(u.lastRemoteSnapshotVersion=o.toTimestamp()),t>u.highestListenSequenceNumber&&(u.highestListenSequenceNumber=t),this.On(e,u)))}addTargetData(e,t){return this.Fn(e,t).next(()=>this.$n(e).next(o=>(o.targetCount+=1,this.Bn(t,o),this.On(e,o))))}updateTargetData(e,t){return this.Fn(e,t)}removeTargetData(e,t){return this.removeMatchingKeysForTargetId(e,t.targetId).next(()=>wd(e).delete(t.targetId)).next(()=>this.$n(e)).next(o=>(yi(o.targetCount>0),o.targetCount-=1,this.On(e,o)))}removeTargets(e,t,o){let u=0;const g=[];return wd(e).X((E,W)=>{const pe=Yu(W);pe.sequenceNumber<=t&&null===o.get(pe.targetId)&&(u++,g.push(this.removeTargetData(e,pe)))}).next(()=>nn.waitFor(g)).next(()=>u)}forEachTarget(e,t){return wd(e).X((o,u)=>{const g=Yu(u);t(g)})}$n(e){return vp(e).get("targetGlobalKey").next(t=>(yi(null!==t),t))}On(e,t){return vp(e).put("targetGlobalKey",t)}Fn(e,t){return wd(e).put(md(this.serializer,t))}Bn(e,t){let o=!1;return e.targetId>t.highestTargetId&&(t.highestTargetId=e.targetId,o=!0),e.sequenceNumber>t.highestListenSequenceNumber&&(t.highestListenSequenceNumber=e.sequenceNumber,o=!0),o}getTargetCount(e){return this.$n(e).next(t=>t.targetCount)}getTargetData(e,t){const o=an(t),u=IDBKeyRange.bound([o,Number.NEGATIVE_INFINITY],[o,Number.POSITIVE_INFINITY]);let g=null;return wd(e).X({range:u,index:"queryTargetsIndex"},(E,W,pe)=>{const Ce=Yu(W);Xn(t,Ce.target)&&(g=Ce,pe.done())}).next(()=>g)}addMatchingKeys(e,t,o){const u=[],g=ic(e);return t.forEach(E=>{const W=Us(E.path);u.push(g.put({targetId:o,path:W})),u.push(this.referenceDelegate.addReference(e,o,E))}),nn.waitFor(u)}removeMatchingKeys(e,t,o){const u=ic(e);return nn.forEach(t,g=>{const E=Us(g.path);return nn.waitFor([u.delete([o,E]),this.referenceDelegate.removeReference(e,o,g)])})}removeMatchingKeysForTargetId(e,t){const o=ic(e),u=IDBKeyRange.bound([t],[t+1],!1,!0);return o.delete(u)}getMatchingKeysForTargetId(e,t){const o=IDBKeyRange.bound([t],[t+1],!1,!0),u=ic(e);let g=Hr();return u.X({range:o,Y:!0},(E,W,pe)=>{const Ce=mo(E[1]),et=new $n(Ce);
1g=g.add(et)}).next(()=>g)}containsKey(e,t){const o=Us(t.path),u=IDBKeyRange.bound([o],[fc(o)],!1,!0);let g=0;return ic(e).X({index:"documentTargetsIndex",Y:!0,range:u},([E,W],pe,Ce)=>{0!==E&&(g++,Ce.done())}).next(()=>g>0)}le(e,t){return wd(e).get(t).next(o=>o?Yu(o):null)}}function wd(i){return ys(i,"targets")}function vp(i){return ys(i,"targetGlobal")}function ic(i){return ys(i,"targetDocuments")}function Am([i,e],[t,o]){const u=cr(i,t);return 0===u?cr(e,o):u}class bp{constructor(e){this.Ln=e,this.buffer=new ss(Am),this.qn=0}Un(){return++this.qn}Kn(e){const t=[e,this.Un()];if(this.buffer.size<this.Ln)this.buffer=this.buffer.add(t);else{const o=this.buffer.last();Am(t,o)<0&&(this.buffer=this.buffer.delete(o).add(t))}}get maxValue(){return this.buffer.last()[0]}}class Z_{constructor(e,t,o){this.garbageCollector=e,this.asyncQueue=t,this.localStore=o,this.Gn=null}start(){-1!==this.garbageCollector.params.cacheSizeCollectionThreshold&&this.Qn(6e4)}stop(){this.Gn&&(this.Gn.cancel(),this.Gn=null)}get started(){return null!==this.Gn}Qn(e){var t=this;Wt("LruGarbageCollector",`Garbage collection scheduled in ${e}ms`),this.Gn=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",e,(0,je.Z)(function*(){t.Gn=null;try{yield t.localStore.collectGarbage(t.garbageCollector)}catch(o){ca(o)?Wt("LruGarbageCollector","Ignoring IndexedDB error during garbage collection: ",o):yield Zn(o)}yield t.Qn(3e5)}))}}class G_{constructor(e,t){this.jn=e,this.params=t}calculateTargetCount(e,t){return this.jn.zn(e).next(o=>Math.floor(t/100*o))}nthSequenceNumber(e,t){if(0===t)return nn.resolve(Uo.ct);const o=new bp(t);return this.jn.forEachTarget(e,u=>o.Kn(u.sequenceNumber)).next(()=>this.jn.Wn(e,u=>o.Kn(u))).next(()=>o.maxValue)}removeTargets(e,t,o){return this.jn.removeTargets(e,t,o)}removeOrphanedDocuments(e,t){return this.jn.removeOrphanedDocuments(e,t)}collect(e,t){return-1===this.params.cacheSizeCollectionThreshold?(Wt("LruGarbageCollector","Garbage collection skipped; disabled"),nn.resolve(Ul)):this.getCacheSize(e).next(o=>o<this.params.cacheSizeCollectionThreshold?(Wt("LruGarbageCollector",`Garbage collection skipped; Cache size ${o} is lower than threshold ${this.params.cacheSizeCollectionThreshold}`),Ul):this.Hn(e,t))}getCacheSize(e){return this.jn.getCacheSize(e)}Hn(e,t){let o,u,g,E,W,pe,Ce;const et=Date.now();return this.calculateTargetCount(e,this.params.percentileToCollect).next(It=>(It>this.params.maximumSequenceNumbersToCollect?(Wt("LruGarbageCollector",`Capping sequence numbers to collect down to the maximum of ${this.params.maximumSequenceNumbersToCollect} from ${It}`),u=this.params.maximumSequenceNumbersToCollect):u=It,E=Date.now(),this.nthSequenceNumber(e,u))).next(It=>(o=It,W=Date.now(),this.removeTargets(e,o,t))).next(It=>(g=It,pe=Date.now(),this.removeOrphanedDocuments(e,o))).next(It=>(Ce=Date.now(),Jt()<=ze.in.DEBUG&&Wt("LruGarbageCollector",`LRU Garbage Collection\n\tCounted targets in ${E-et}ms\n\tDetermined least recently used ${u} in `+(W-E)+`ms\n\tRemoved ${g} targets in `+(pe-W)+`ms\n\tRemoved ${It} documents in `+(Ce-pe)+`ms\nTotal Duration: ${Ce-et}ms`),nn.resolve({didRun:!0,sequenceNumbersCollected:u,targetsRemoved:g,documentsRemoved:It})))}}class $_{constructor(e,t){this.db=e,this.garbageCollector=function Xy(i,e){return new G_(i,e)}(this,t)}zn(e){const t=this.Jn(e);return this.db.getTargetCache().getTargetCount(e).next(o=>t.next(u=>o+u))}Jn(e){let t=0;return this.Wn(e,o=>{t++}).next(()=>t)}forEachTarget(e,t){return this.db.getTargetCache().forEachTarget(e,t)}Wn(e,t){return this.Yn(e,(o,u)=>t(u))}addReference(e,t,o){return Kh(e,o)}removeReference(e,t,o){return Kh(e,o)}removeTargets(e,t,o){return this.db.getTargetCache().removeTargets(e,t,o)}markPotentiallyOrphaned(e,t){return Kh(e,t)}Xn(e,t){return function(o,u){let g=!1;return vd(o).Z(E=>yp(o,E,u).next(W=>(W&&(g=!0),nn.resolve(!W)))).next(()=>g)}(e,t)}removeOrphanedDocuments(e,t){const o=this.db.getRemoteDocumentCache().newChangeBuffer(),u=[];let g=0;return this.Yn(e,(E,W)=>{if(W<=t){const pe=this.Xn(e,E).next(Ce=>{if(!Ce)return g++,o.getEntry(e,E).next(()=>(o.removeEntry(E,Bi.min()),ic(e).delete([0,Us(E.path)])))});u.push(pe)}}).next(()=>nn.waitFor(u)).next(()=>o.apply(e)).next(()=>g)}removeTarget(e,t){const o=t.withSequenceNumber(e.currentSequenceNumber);return this.db.getTargetCache().updateTargetData(e,o)}updateLimboDocument(e,t){return Kh(e,t)}Yn(e,t){const o=ic(e);let u,g=Uo.ct;return o.X({index:"documentTargetsIndex"},([E,W],{path:pe,sequenceNumber:Ce})=>{0===E?(g!==Uo.ct&&t(new $n(mo(u)),g),g=Ce,u=pe):g=Uo.ct}).next(()=>{g!==Uo.ct&&t(new $n(mo(u)),g)})}getCacheSize(e){return this.db.getRemoteDocumentCache().getSize(e)}}function Kh(i,e){return ic(i).put((o=i.currentSequenceNumber,{targetId:0,path:Us(e.path),sequenceNumber:o}));var o}
1class K_{constructor(){this.changes=new Sl(e=>e.toString(),(e,t)=>e.isEqual(t)),this.changesApplied=!1}addEntry(e){this.assertNotApplied(),this.changes.set(e.key,e)}removeEntry(e,t){this.assertNotApplied(),this.changes.set(e,ps.newInvalidDocument(e).setReadTime(t))}getEntry(e,t){this.assertNotApplied();const o=this.changes.get(t);return void 0!==o?nn.resolve(o):this.getFromCache(e,t)}getEntries(e,t){return this.getAllFromCache(e,t)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}assertNotApplied(){}}class q_{constructor(e){this.serializer=e}setIndexManager(e){this.indexManager=e}addEntry(e,t,o){return Md(e).put(o)}removeEntry(e,t,o){return Md(e).delete(function(u,g){const E=u.path.toArray();return[E.slice(0,E.length-2),E[E.length-2],qd(g),E[E.length-1]]}(t,o))}updateMetadata(e,t){return this.getMetadata(e).next(o=>(o.byteSize+=t,this.Zn(e,o)))}getEntry(e,t){let o=ps.newInvalidDocument(t);return Md(e).X({index:"documentKeyIndex",range:IDBKeyRange.only(qh(t))},(u,g)=>{o=this.ts(t,g)}).next(()=>o)}es(e,t){let o={size:0,document:ps.newInvalidDocument(t)};return Md(e).X({index:"documentKeyIndex",range:IDBKeyRange.only(qh(t))},(u,g)=>{o={document:this.ts(t,g),size:tc(g)}}).next(()=>o)}getEntries(e,t){let o=Ua();return this.ns(e,t,(u,g)=>{const E=this.ts(u,g);o=o.insert(u,E)}).next(()=>o)}ss(e,t){let o=Ua(),u=new fs($n.comparator);return this.ns(e,t,(g,E)=>{const W=this.ts(g,E);o=o.insert(g,W),u=u.insert(g,tc(E))}).next(()=>({documents:o,rs:u}))}ns(e,t,o){if(t.isEmpty())return nn.resolve();let u=new ss(nv);t.forEach(pe=>u=u.add(pe));const g=IDBKeyRange.bound(qh(u.first()),qh(u.last())),E=u.getIterator();let W=E.getNext();return Md(e).X({index:"documentKeyIndex",range:g},(pe,Ce,et)=>{const It=$n.fromSegments([...Ce.prefixPath,Ce.collectionGroup,Ce.documentId]);for(;W&&nv(W,It)<0;)o(W,null),W=E.getNext();W&&W.isEqual(It)&&(o(W,Ce),W=E.hasNext()?E.getNext():null),W?et.G(qh(W)):et.done()}).next(()=>{for(;W;)o(W,null),W=E.hasNext()?E.getNext():null})}getDocumentsMatchingQuery(e,t,o,u){const g=t.path,E=[g.popLast().toArray(),g.lastSegment(),qd(o.readTime),o.documentKey.path.isEmpty()?"":o.documentKey.path.lastSegment()],W=[g.popLast().toArray(),g.lastSegment(),[Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],""];return Md(e).j(IDBKeyRange.bound(E,W,!0)).next(pe=>{let Ce=Ua();for(const et of pe){const It=this.ts($n.fromSegments(et.prefixPath.concat(et.collectionGroup,et.documentId)),et);It.isFoundDocument()&&($u(t,It)||u.has(It.key))&&(Ce=Ce.insert(It.key,It))}return Ce})}getAllFromCollectionGroup(e,t,o,u){let g=Ua();const E=tv(t,o),W=tv(t,Go.max());return Md(e).X({index:"collectionGroupIndex",range:IDBKeyRange.bound(E,W,!0)},(pe,Ce,et)=>{const It=this.ts($n.fromSegments(Ce.prefixPath.concat(Ce.collectionGroup,Ce.documentId)),Ce);g=g.insert(It.key,It),g.size===u&&et.done()}).next(()=>g)}newChangeBuffer(e){return new ev(this,!!e&&e.trackRemovals)}getSize(e){return this.getMetadata(e).next(t=>t.byteSize)}getMetadata(e){return jl(e).get("remoteDocumentGlobalKey").next(t=>(yi(!!t),t))}Zn(e,t){return jl(e).put("remoteDocumentGlobalKey",t)}ts(e,t){if(t){const o=function Uc(i,e){let t;if(e.document)t=Vh(i.fe,e.document,!!e.hasCommittedMutations);else if(e.noDocument){const o=$n.fromSegments(e.noDocument.path),u=jc(e.noDocument.readTime);t=ps.newNoDocument(o,u),e.hasCommittedMutations&&t.setHasCommittedMutations()}else{if(!e.unknownDocument)return qn();{const o=$n.fromSegments(e.unknownDocument.path),u=jc(e.unknownDocument.version);t=ps.newUnknownDocument(o,u)}}return e.readTime&&t.setReadTime(function(o){const u=new to(o[0],o[1]);return Bi.fromTimestamp(u)}(e.readTime)),t}(this.serializer,t);if(!o.isNoDocument()||!o.version.isEqual(Bi.min()))return o}return ps.newInvalidDocument(e)}}function Q_(i){return new q_(i)}class ev extends K_{constructor(e,t){super(),this.os=e,this.trackRemovals=t,this.us=new Sl(o=>o.toString(),(o,u)=>o.isEqual(u))}applyChanges(e){const t=[];let o=0,u=new ss((g,E)=>cr(g.canonicalString(),E.canonicalString()));
1return this.changes.forEach((g,E)=>{const W=this.us.get(g);if(t.push(this.os.removeEntry(e,g,W.readTime)),E.isValidDocument()){const pe=Kd(this.os.serializer,E);u=u.add(g.path.popLast()),o+=tc(pe)-W.size,t.push(this.os.addEntry(e,g,pe))}else if(o-=W.size,this.trackRemovals){const pe=Kd(this.os.serializer,E.convertToNoDocument(Bi.min()));t.push(this.os.addEntry(e,g,pe))}}),u.forEach(g=>{t.push(this.os.indexManager.addToCollectionParentIndex(e,g))}),t.push(this.os.updateMetadata(e,o)),nn.waitFor(t)}getFromCache(e,t){return this.os.es(e,t).next(o=>(this.us.set(t,{size:o.size,readTime:o.document.readTime}),o.document))}getAllFromCache(e,t){return this.os.ss(e,t).next(({documents:o,rs:u})=>(u.forEach((g,E)=>{this.us.set(g,{size:E,readTime:o.get(g).readTime})}),o))}}function jl(i){return ys(i,"remoteDocumentGlobal")}function Md(i){return ys(i,"remoteDocumentsV14")}function qh(i){const e=i.path.toArray();return[e.slice(0,e.length-2),e[e.length-2],e[e.length-1]]}function tv(i,e){const t=e.documentKey.path.toArray();return[i,qd(e.readTime),t.slice(0,t.length-2),t.length>0?t[t.length-1]:""]}function nv(i,e){const t=i.path.toArray(),o=e.path.toArray();let u=0;for(let g=0;g<t.length-2&&g<o.length-2;++g)if(u=cr(t[g],o[g]),u)return u;return u=cr(t.length,o.length),u||(u=cr(t[t.length-2],o[o.length-2]),u||cr(t[t.length-1],o[o.length-1]))}class J_{constructor(e,t){this.overlayedDocument=e,this.mutatedFields=t}}class iv{constructor(e,t,o,u){this.remoteDocumentCache=e,this.mutationQueue=t,this.documentOverlayCache=o,this.indexManager=u}getDocument(e,t){let o=null;return this.documentOverlayCache.getOverlay(e,t).next(u=>(o=u,this.remoteDocumentCache.getEntry(e,t))).next(u=>(null!==o&&vc(o.mutation,u,T.empty(),to.now()),u))}getDocuments(e,t){return this.remoteDocumentCache.getEntries(e,t).next(o=>this.getLocalViewOfDocuments(e,o,Hr()).next(()=>o))}getLocalViewOfDocuments(e,t,o=Hr()){const u=gu();return this.populateOverlays(e,u,t).next(()=>this.computeViews(e,t,u,o).next(g=>{let E=od();return g.forEach((W,pe)=>{E=E.insert(W,pe.overlayedDocument)}),E}))}getOverlayedDocuments(e,t){const o=gu();return this.populateOverlays(e,o,t).next(()=>this.computeViews(e,t,o,Hr()))}populateOverlays(e,t,o){const u=[];return o.forEach(g=>{t.has(g)||u.push(g)}),this.documentOverlayCache.getOverlays(e,u).next(g=>{g.forEach((E,W)=>{t.set(E,W)})})}computeViews(e,t,o,u){let g=Ua();const E=yu(),W=yu();return t.forEach((pe,Ce)=>{const et=o.get(Ce.key);u.has(Ce.key)&&(void 0===et||et.mutation instanceof Fu)?g=g.insert(Ce.key,Ce):void 0!==et?(E.set(Ce.key,et.mutation.getFieldMask()),vc(et.mutation,Ce,et.mutation.getFieldMask(),to.now())):E.set(Ce.key,T.empty())}),this.recalculateAndSaveOverlays(e,g).next(pe=>(pe.forEach((Ce,et)=>E.set(Ce,et)),t.forEach((Ce,et)=>{var It;return W.set(Ce,new J_(et,null!==(It=E.get(Ce))&&void 0!==It?It:null))}),W))}recalculateAndSaveOverlays(e,t){const o=yu();let u=new fs((E,W)=>E-W),g=Hr();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,t).next(E=>{for(const W of E)W.keys().forEach(pe=>{const Ce=t.get(pe);if(null===Ce)return;let et=o.get(pe)||T.empty();et=W.applyToLocalView(Ce,et),o.set(pe,et);const It=(u.get(W.batchId)||Hr()).add(pe);u=u.insert(W.batchId,It)})}).next(()=>{const E=[],W=u.getReverseIterator();for(;W.hasNext();){const pe=W.getNext(),Ce=pe.key,et=pe.value,It=Jl();et.forEach(on=>{if(!g.has(on)){const An=Kf(t.get(on),o.get(on));null!==An&&It.set(on,An),g=g.add(on)}}),E.push(this.documentOverlayCache.saveOverlays(e,Ce,It))}return nn.waitFor(E)}).next(()=>o)}recalculateAndSaveOverlaysForDocumentKeys(e,t){return this.remoteDocumentCache.getEntries(e,t).next(o=>this.recalculateAndSaveOverlays(e,o))}getDocumentsMatchingQuery(e,t,o){return $n.isDocumentKey((u=t).path)&&null===u.collectionGroup&&0===u.filters.length?this.getDocumentsMatchingDocumentQuery(e,t.path):Ou(t)?this.getDocumentsMatchingCollectionGroupQuery(e,t,o):this.getDocumentsMatchingCollectionQuery(e,t,o);var u}getNextDocuments(e,t,o,u){return this.remoteDocumentCache.getAllFromCollectionGroup(e,t,o,u).next(g=>{const E=u-g.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,t,o.largestBatchId,u-g.size):nn.resolve(gu());let W=-1,pe=g;return E.next(Ce=>nn.forEach(Ce,(et,It)=>(W<It.largestBatchId&&(W=It.largestBatchId),g.get(et)?nn.resolve():this.remoteDocumentCache.getEntry(e,et).next(on=>{pe=pe.insert(et,on)}))).next(()=>this.populateOverlays(e,Ce,g)).next(()=>this.computeViews(e,pe,Ce,Hr())).next(et=>({batchId:W,changes:jd(et)})))})}getDocumentsMatchingDocumentQuery(e,t){return this.getDocument(e,new $n(t)).next(o=>{let u=od();
1return o.isFoundDocument()&&(u=u.insert(o.key,o)),u})}getDocumentsMatchingCollectionGroupQuery(e,t,o){const u=t.collectionGroup;let g=od();return this.indexManager.getCollectionParents(e,u).next(E=>nn.forEach(E,W=>{const pe=(Ce=t,et=W.child(u),new Lo(et,null,Ce.explicitOrderBy.slice(),Ce.filters.slice(),Ce.limit,Ce.limitType,Ce.startAt,Ce.endAt));var Ce,et;return this.getDocumentsMatchingCollectionQuery(e,pe,o).next(Ce=>{Ce.forEach((et,It)=>{g=g.insert(et,It)})})}).next(()=>g))}getDocumentsMatchingCollectionQuery(e,t,o){let u;return this.documentOverlayCache.getOverlaysForCollection(e,t.path,o.largestBatchId).next(g=>(u=g,this.remoteDocumentCache.getDocumentsMatchingQuery(e,t,o,u))).next(g=>{u.forEach((W,pe)=>{const Ce=pe.getKey();null===g.get(Ce)&&(g=g.insert(Ce,ps.newInvalidDocument(Ce)))});let E=od();return g.forEach((W,pe)=>{const Ce=u.get(W);void 0!==Ce&&vc(Ce.mutation,pe,T.empty(),to.now()),$u(t,pe)&&(E=E.insert(W,pe))}),E})}}class rv{constructor(e){this.serializer=e,this.cs=new Map,this.hs=new Map}getBundleMetadata(e,t){return nn.resolve(this.cs.get(t))}saveBundleMetadata(e,t){var o;return this.cs.set(t.id,{id:(o=t).id,version:o.version,createTime:na(o.createTime)}),nn.resolve()}getNamedQuery(e,t){return nn.resolve(this.hs.get(t))}saveNamedQuery(e,t){return this.hs.set(t.name,{name:(o=t).name,query:_d(o.bundledQuery),readTime:na(o.readTime)}),nn.resolve();var o}}class Pm{constructor(){this.overlays=new fs($n.comparator),this.ls=new Map}getOverlay(e,t){return nn.resolve(this.overlays.get(t))}getOverlays(e,t){const o=gu();return nn.forEach(t,u=>this.getOverlay(e,u).next(g=>{null!==g&&o.set(u,g)})).next(()=>o)}saveOverlays(e,t,o){return o.forEach((u,g)=>{this.we(e,t,g)}),nn.resolve()}removeOverlaysForBatchId(e,t,o){const u=this.ls.get(o);return void 0!==u&&(u.forEach(g=>this.overlays=this.overlays.remove(g)),this.ls.delete(o)),nn.resolve()}getOverlaysForCollection(e,t,o){const u=gu(),g=t.length+1,E=new $n(t.child("")),W=this.overlays.getIteratorFrom(E);for(;W.hasNext();){const pe=W.getNext().value,Ce=pe.getKey();if(!t.isPrefixOf(Ce.path))break;Ce.path.length===g&&pe.largestBatchId>o&&u.set(pe.getKey(),pe)}return nn.resolve(u)}getOverlaysForCollectionGroup(e,t,o,u){let g=new fs((Ce,et)=>Ce-et);const E=this.overlays.getIterator();for(;E.hasNext();){const Ce=E.getNext().value;if(Ce.getKey().getCollectionGroup()===t&&Ce.largestBatchId>o){let et=g.get(Ce.largestBatchId);null===et&&(et=gu(),g=g.insert(Ce.largestBatchId,et)),et.set(Ce.getKey(),Ce)}}const W=gu(),pe=g.getIterator();for(;pe.hasNext()&&(pe.getNext().value.forEach((Ce,et)=>W.set(Ce,et)),!(W.size()>=u)););return nn.resolve(W)}we(e,t,o){const u=this.overlays.get(o.key);if(null!==u){const E=this.ls.get(u.largestBatchId).delete(o.key);this.ls.set(u.largestBatchId,E)}this.overlays=this.overlays.insert(o.key,new Nh(t,o));let g=this.ls.get(t);void 0===g&&(g=Hr(),this.ls.set(t,g)),this.ls.set(t,g.add(o.key))}}class wp{constructor(){this.fs=new ss(Wa.ds),this.ws=new ss(Wa._s)}isEmpty(){return this.fs.isEmpty()}addReference(e,t){const o=new Wa(e,t);this.fs=this.fs.add(o),this.ws=this.ws.add(o)}gs(e,t){e.forEach(o=>this.addReference(o,t))}removeReference(e,t){this.ys(new Wa(e,t))}ps(e,t){e.forEach(o=>this.removeReference(o,t))}Is(e){const t=new $n(new zr([])),o=new Wa(t,e),u=new Wa(t,e+1),g=[];return this.ws.forEachInRange([o,u],E=>{this.ys(E),g.push(E.key)}),g}Ts(){this.fs.forEach(e=>this.ys(e))}ys(e){this.fs=this.fs.delete(e),this.ws=this.ws.delete(e)}Es(e){const t=new $n(new zr([])),o=new Wa(t,e),u=new Wa(t,e+1);let g=Hr();return this.ws.forEachInRange([o,u],E=>{g=g.add(E.key)}),g}containsKey(e){const t=new Wa(e,0),o=this.fs.firstAfterOrEqual(t);return null!==o&&e.isEqual(o.key)}}class Wa{constructor(e,t){this.key=e,this.As=t}static ds(e,t){return $n.comparator(e.key,t.key)||cr(e.As,t.As)}static _s(e,t){return cr(e.As,t.As)||$n.comparator(e.key,t.key)}}class sv{constructor(e,t){this.indexManager=e,this.referenceDelegate=t,this.mutationQueue=[],this.vs=1,this.Rs=new ss(Wa.ds)}checkEmpty(e){return nn.resolve(0===this.mutationQueue.length)}addMutationBatch(e,t,o,u){const g=this.vs;this.vs++;const E=new Ko(g,t,o,u);
1this.mutationQueue.push(E);for(const W of u)this.Rs=this.Rs.add(new Wa(W.key,g)),this.indexManager.addToCollectionParentIndex(e,W.key.path.popLast());return nn.resolve(E)}lookupMutationBatch(e,t){return nn.resolve(this.Ps(t))}getNextMutationBatchAfterBatchId(e,t){const u=this.bs(t+1),g=u<0?0:u;return nn.resolve(this.mutationQueue.length>g?this.mutationQueue[g]:null)}getHighestUnacknowledgedBatchId(){return nn.resolve(0===this.mutationQueue.length?-1:this.vs-1)}getAllMutationBatches(e){return nn.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,t){const o=new Wa(t,0),u=new Wa(t,Number.POSITIVE_INFINITY),g=[];return this.Rs.forEachInRange([o,u],E=>{const W=this.Ps(E.As);g.push(W)}),nn.resolve(g)}getAllMutationBatchesAffectingDocumentKeys(e,t){let o=new ss(cr);return t.forEach(u=>{const g=new Wa(u,0),E=new Wa(u,Number.POSITIVE_INFINITY);this.Rs.forEachInRange([g,E],W=>{o=o.add(W.As)})}),nn.resolve(this.Vs(o))}getAllMutationBatchesAffectingQuery(e,t){const o=t.path,u=o.length+1;let g=o;$n.isDocumentKey(g)||(g=g.child(""));const E=new Wa(new $n(g),0);let W=new ss(cr);return this.Rs.forEachWhile(pe=>{const Ce=pe.key.path;return!!o.isPrefixOf(Ce)&&(Ce.length===u&&(W=W.add(pe.As)),!0)},E),nn.resolve(this.Vs(W))}Vs(e){const t=[];return e.forEach(o=>{const u=this.Ps(o);null!==u&&t.push(u)}),t}removeMutationBatch(e,t){yi(0===this.Ss(t.batchId,"removed")),this.mutationQueue.shift();let o=this.Rs;return nn.forEach(t.mutations,u=>{const g=new Wa(u.key,t.batchId);return o=o.delete(g),this.referenceDelegate.markPotentiallyOrphaned(e,u.key)}).next(()=>{this.Rs=o})}Cn(e){}containsKey(e,t){const o=new Wa(t,0),u=this.Rs.firstAfterOrEqual(o);return nn.resolve(t.isEqual(u&&u.key))}performConsistencyCheck(e){return nn.resolve()}Ss(e,t){return this.bs(e)}bs(e){return 0===this.mutationQueue.length?0:e-this.mutationQueue[0].batchId}Ps(e){const t=this.bs(e);return t<0||t>=this.mutationQueue.length?null:this.mutationQueue[t]}}class ov{constructor(e){this.Ds=e,this.docs=new fs($n.comparator),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,t){const o=t.key,u=this.docs.get(o),g=u?u.size:0,E=this.Ds(t);return this.docs=this.docs.insert(o,{document:t.mutableCopy(),size:E}),this.size+=E-g,this.indexManager.addToCollectionParentIndex(e,o.path.popLast())}removeEntry(e){const t=this.docs.get(e);t&&(this.docs=this.docs.remove(e),this.size-=t.size)}getEntry(e,t){const o=this.docs.get(t);return nn.resolve(o?o.document.mutableCopy():ps.newInvalidDocument(t))}getEntries(e,t){let o=Ua();return t.forEach(u=>{const g=this.docs.get(u);o=o.insert(u,g?g.document.mutableCopy():ps.newInvalidDocument(u))}),nn.resolve(o)}getDocumentsMatchingQuery(e,t,o,u){let g=Ua();const E=t.path,W=new $n(E.child("")),pe=this.docs.getIteratorFrom(W);for(;pe.hasNext();){const{key:Ce,value:{document:et}}=pe.getNext();if(!E.isPrefixOf(Ce.path))break;Ce.path.length>E.length+1||uu(va(et),o)<=0||(u.has(et.key)||$u(t,et))&&(g=g.insert(et.key,et.mutableCopy()))}return nn.resolve(g)}getAllFromCollectionGroup(e,t,o,u){qn()}Cs(e,t){return nn.forEach(this.docs,o=>t(o))}newChangeBuffer(e){return new X_(this)}getSize(e){return nn.resolve(this.size)}}class X_ extends K_{constructor(e){super(),this.os=e}applyChanges(e){const t=[];
vendor: 4,442 bytes, line 1
1return this.changes.forEach((o,u)=>{u.isValidDocument()?t.push(this.os.addEntry(e,u)):this.os.removeEntry(o)}),nn.waitFor(t)}getFromCache(e,t){return this.os.getEntry(e,t)}getAllFromCache(e,t){return this.os.getEntries(e,t)}}class av{constructor(e){this.persistence=e,this.xs=new Sl(t=>an(t),Xn),this.lastRemoteSnapshotVersion=Bi.min(),this.highestTargetId=0,this.Ns=0,this.ks=new wp,this.targetCount=0,this.Ms=bd.kn()}forEachTarget(e,t){return this.xs.forEach((o,u)=>t(u)),nn.resolve()}getLastRemoteSnapshotVersion(e){return nn.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return nn.resolve(this.Ns)}allocateTargetId(e){return this.highestTargetId=this.Ms.next(),nn.resolve(this.highestTargetId)}setTargetsMetadata(e,t,o){return o&&(this.lastRemoteSnapshotVersion=o),t>this.Ns&&(this.Ns=t),nn.resolve()}Fn(e){this.xs.set(e.target,e);const t=e.targetId;t>this.highestTargetId&&(this.Ms=new bd(t),this.highestTargetId=t),e.sequenceNumber>this.Ns&&(this.Ns=e.sequenceNumber)}addTargetData(e,t){return this.Fn(t),this.targetCount+=1,nn.resolve()}updateTargetData(e,t){return this.Fn(t),nn.resolve()}removeTargetData(e,t){return this.xs.delete(t.target),this.ks.Is(t.targetId),this.targetCount-=1,nn.resolve()}removeTargets(e,t,o){let u=0;const g=[];return this.xs.forEach((E,W)=>{W.sequenceNumber<=t&&null===o.get(W.targetId)&&(this.xs.delete(E),g.push(this.removeMatchingKeysForTargetId(e,W.targetId)),u++)}),nn.waitFor(g).next(()=>u)}getTargetCount(e){return nn.resolve(this.targetCount)}getTargetData(e,t){const o=this.xs.get(t)||null;return nn.resolve(o)}addMatchingKeys(e,t,o){return this.ks.gs(t,o),nn.resolve()}removeMatchingKeys(e,t,o){this.ks.ps(t,o);const u=this.persistence.referenceDelegate,g=[];return u&&t.forEach(E=>{g.push(u.markPotentiallyOrphaned(e,E))}),nn.waitFor(g)}removeMatchingKeysForTargetId(e,t){return this.ks.Is(t),nn.resolve()}getMatchingKeysForTargetId(e,t){const o=this.ks.Es(t);return nn.resolve(o)}containsKey(e,t){return nn.resolve(this.ks.containsKey(t))}}class Mp{constructor(e,t){this.$s={},this.overlays={},this.Os=new Uo(0),this.Fs=!1,this.Fs=!0,this.referenceDelegate=e(this),this.Bs=new av(this),this.indexManager=new yt,this.remoteDocumentCache=new ov(o=>this.referenceDelegate.Ls(o)),this.serializer=new pd(t),this.qs=new rv(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.Fs=!1,Promise.resolve()}get started(){return this.Fs}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let t=this.overlays[e.toKey()];return t||(t=new Pm,this.overlays[e.toKey()]=t),t}getMutationQueue(e,t){let o=this.$s[e.toKey()];return o||(o=new sv(t,this.referenceDelegate),this.$s[e.toKey()]=o),o}getTargetCache(){return this.Bs}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.qs}runTransaction(e,t,o){Wt("MemoryPersistence","Starting transaction:",e);const u=new lv(this.Os.next());return this.referenceDelegate.Us(),o(u).next(g=>this.referenceDelegate.Ks(u).next(()=>g)).toPromise().then(g=>(u.raiseOnCommittedEvent(),g))}Gs(e,t){return nn.or(Object.values(this.$s).map(o=>()=>o.containsKey(e,t)))}}class lv extends Hu{constructor(e){super(),this.currentSequenceNumber=e}}class Tp{constructor(e){this.persistence=e,this.Qs=new wp,this.js=null}static zs(e){return new Tp(e)}get Ws(){if(this.js)return this.js;throw qn()}addReference(e,t,o){return this.Qs.addReference(o,t),this.Ws.delete(o.toString()),nn.resolve()}removeReference(e,t,o){return this.Qs.removeReference(o,t),this.Ws.add(o.toString()),nn.resolve()}markPotentiallyOrphaned(e,t){return this.Ws.add(t.toString()),nn.resolve()}removeTarget(e,t){this.Qs.Is(t.targetId).forEach(u=>this.Ws.add(u.toString()));const o=this.persistence.getTargetCache();return o.getMatchingKeysForTargetId(e,t.targetId).next(u=>{u.forEach(g=>this.Ws.add(g.toString()))}).next(()=>o.removeTargetData(e,t))}Us(){this.js=new Set}Ks(e){const t=this.persistence.getRemoteDocumentCache().newChangeBuffer();return nn.forEach(this.Ws,o=>{const u=$n.fromPath(o);return this.Hs(e,u).next(g=>{g||t.removeEntry(u,Bi.min())})}).next(()=>(this.js=null,t.apply(e)))}updateLimboDocument(e,t){return this.Hs(e,t).next(o=>{o?this.Ws.delete(t.toString()):this.Ws.add(t.toString())})}Ls(e){return 0}Hs(e,t){return nn.or([()=>nn.resolve(this.Qs.containsKey(t)),()=>this.persistence.getTargetCache().containsKey(e,t),()=>this.persistence.Gs(e,t)])}}
1class eg{constructor(e){this.serializer=e}O(e,t,o,u){const g=new Ja("createOrUpgrade",t);var W;o<1&&u>=1&&(e.createObjectStore("owner"),(W=e).createObjectStore("mutationQueues",{keyPath:"userId"}),W.createObjectStore("mutations",{keyPath:"batchId",autoIncrement:!0}).createIndex("userMutationsIndex",Tl,{unique:!0}),W.createObjectStore("documentMutations"),tg(e),function(W){W.createObjectStore("remoteDocuments")}(e));let E=nn.resolve();return o<3&&u>=3&&(0!==o&&(function(W){W.deleteObjectStore("targetDocuments"),W.deleteObjectStore("targets"),W.deleteObjectStore("targetGlobal")}(e),tg(e)),E=E.next(()=>function(W){const pe=W.store("targetGlobal"),Ce={highestTargetId:0,highestListenSequenceNumber:0,lastRemoteSnapshotVersion:Bi.min().toTimestamp(),targetCount:0};return pe.put("targetGlobalKey",Ce)}(g))),o<4&&u>=4&&(0!==o&&(E=E.next(()=>function(W,pe){return pe.store("mutations").j().next(Ce=>{W.deleteObjectStore("mutations"),W.createObjectStore("mutations",{keyPath:"batchId",autoIncrement:!0}).createIndex("userMutationsIndex",Tl,{unique:!0});const et=pe.store("mutations"),It=Ce.map(on=>et.put(on));return nn.waitFor(It)})}(e,g))),E=E.next(()=>{!function(W){W.createObjectStore("clientMetadata",{keyPath:"clientId"})}(e)})),o<5&&u>=5&&(E=E.next(()=>this.Ys(g))),o<6&&u>=6&&(E=E.next(()=>(function(W){W.createObjectStore("remoteDocumentGlobal")}(e),this.Xs(g)))),o<7&&u>=7&&(E=E.next(()=>this.Zs(g))),o<8&&u>=8&&(E=E.next(()=>this.ti(e,g))),o<9&&u>=9&&(E=E.next(()=>{!function(W){W.objectStoreNames.contains("remoteDocumentChanges")&&W.deleteObjectStore("remoteDocumentChanges")}(e)})),o<10&&u>=10&&(E=E.next(()=>this.ei(g))),o<11&&u>=11&&(E=E.next(()=>{(function(W){W.createObjectStore("bundles",{keyPath:"bundleId"})})(e),function(W){W.createObjectStore("namedQueries",{keyPath:"name"})}(e)})),o<12&&u>=12&&(E=E.next(()=>{!function(W){const pe=W.createObjectStore("documentOverlays",{keyPath:ku});pe.createIndex("collectionPathOverlayIndex",Ol,{unique:!1}),pe.createIndex("collectionGroupOverlayIndex",du,{unique:!1})}(e)})),o<13&&u>=13&&(E=E.next(()=>function(W){const pe=W.createObjectStore("remoteDocumentsV14",{keyPath:Vu});pe.createIndex("documentKeyIndex",ko),pe.createIndex("collectionGroupIndex",Eu)}(e)).next(()=>this.ni(e,g)).next(()=>e.deleteObjectStore("remoteDocuments"))),o<14&&u>=14&&(E=E.next(()=>this.si(e,g))),o<15&&u>=15&&(E=E.next(()=>function(W){W.createObjectStore("indexConfiguration",{keyPath:"indexId",autoIncrement:!0}).createIndex("collectionGroupIndex","collectionGroup",{unique:!1}),W.createObjectStore("indexState",{keyPath:ql}).createIndex("sequenceNumberIndex",Ql,{unique:!1}),W.createObjectStore("indexEntries",{keyPath:Su}).createIndex("documentKeyIndex",Oa,{unique:!1})}(e))),E}Xs(e){let t=0;return e.store("remoteDocuments").X((o,u)=>{t+=tc(u)}).next(()=>{const o={byteSize:t};return e.store("remoteDocumentGlobal").put("remoteDocumentGlobalKey",o)})}Ys(e){const t=e.store("mutationQueues"),o=e.store("mutations");return t.j().next(u=>nn.forEach(u,g=>{const E=IDBKeyRange.bound([g.userId,-1],[g.userId,g.lastAcknowledgedBatchId]);return o.j("userMutationsIndex",E).next(W=>nn.forEach(W,pe=>{yi(pe.userId===g.userId);const Ce=tu(this.serializer,pe);return Cc(e,g.userId,Ce).next(()=>{})}))}))}Zs(e){const t=e.store("targetDocuments"),o=e.store("remoteDocuments");return e.store("targetGlobal").get("targetGlobalKey").next(u=>{const g=[];return o.X((E,W)=>{const pe=new zr(E),Ce=[0,Us(pe)];g.push(t.get(Ce).next(et=>et?nn.resolve():t.put({targetId:0,path:Us(pe),sequenceNumber:u.highestListenSequenceNumber})))}).next(()=>nn.waitFor(g))})}ti(e,t){e.createObjectStore("collectionParents",{keyPath:Ca});const o=t.store("collectionParents"),u=new Lt,g=E=>{if(u.add(E)){const W=E.lastSegment(),pe=E.popLast();return o.put({collectionId:W,parent:Us(pe)})}};return t.store("remoteDocuments").X({Y:!0},(E,W)=>{const pe=new zr(E);return g(pe.popLast())}).next(()=>t.store("documentMutations").X({Y:!0},([E,W,pe],Ce)=>{const et=mo(W);return g(et.popLast())}))}ei(e){const t=e.store("targets");return t.X((o,u)=>{const g=Yu(u),E=md(this.serializer,g);return t.put(E)})}ni(e,t){const o=t.store("remoteDocuments"),u=[];return o.X((g,E)=>{const W=t.store("remoteDocumentsV14"),pe=(Ce=E,Ce.document?new $n(zr.fromString(Ce.document.name).popFirst(5)):Ce.noDocument?$n.fromSegments(Ce.noDocument.path):Ce.unknownDocument?$n.fromSegments(Ce.unknownDocument.path):qn()).path.toArray();var Ce;const et={prefixPath:pe.slice(0,pe.length-2),collectionGroup:pe[pe.length-2],documentId:pe[pe.length-1],readTime:E.readTime||[0,0],unknownDocument:E.unknownDocument,noDocument:E.noDocument,document:E.document,hasCommittedMutations:!!E.hasCommittedMutations};u.push(W.put(et))}).next(()=>nn.waitFor(u))}si(e,t){const o=t.store("mutations"),u=Q_(this.serializer),g=new Mp(Tp.zs,this.serializer.fe);return o.j().next(E=>{const W=new Map;
1return E.forEach(pe=>{var Ce;let et=null!==(Ce=W.get(pe.userId))&&void 0!==Ce?Ce:Hr();tu(this.serializer,pe).keys().forEach(It=>et=et.add(It)),W.set(pe.userId,et)}),nn.forEach(W,(pe,Ce)=>{const et=new xe(Ce),It=yd.de(this.serializer,et),on=g.getIndexManager(et),An=Sc.de(et,this.serializer,on,g.referenceDelegate);return new iv(u,An,It,on).recalculateAndSaveOverlaysForDocumentKeys(new Ra(t,Uo.ct),pe).next()})})}}function tg(i){i.createObjectStore("targetDocuments",{keyPath:Cu}).createIndex("documentTargetsIndex",Kl,{unique:!0}),i.createObjectStore("targets",{keyPath:"targetId"}).createIndex("queryTargetsIndex",oa,{unique:!0}),i.createObjectStore("targetGlobal")}const wu="Failed to obtain exclusive access to the persistence layer. To allow shared access, multi-tab synchronization has to be enabled in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.";class Jh{constructor(e,t,o,u,g,E,W,pe,Ce,et,It=15){if(this.allowTabSynchronization=e,this.persistenceKey=t,this.clientId=o,this.ii=g,this.window=E,this.document=W,this.ri=Ce,this.oi=et,this.ui=It,this.Os=null,this.Fs=!1,this.isPrimary=!1,this.networkEnabled=!0,this.ci=null,this.inForeground=!1,this.ai=null,this.hi=null,this.li=Number.NEGATIVE_INFINITY,this.fi=on=>Promise.resolve(),!Jh.D())throw new On(un.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.referenceDelegate=new $_(this,u),this.di=t+"main",this.serializer=new pd(pe),this.wi=new lr(this.di,this.ui,new eg(this.serializer)),this.Bs=new W_(this.referenceDelegate,this.serializer),this.remoteDocumentCache=Q_(this.serializer),this.qs=new Im,this.window&&this.window.localStorage?this._i=this.window.localStorage:(this._i=null,!1===et&&ti("IndexedDbPersistence","LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))}start(){return this.mi().then(()=>{if(!this.isPrimary&&!this.allowTabSynchronization)throw new On(un.FAILED_PRECONDITION,wu);return this.gi(),this.yi(),this.pi(),this.runTransaction("getHighestListenSequenceNumber","readonly",e=>this.Bs.getHighestSequenceNumber(e))}).then(e=>{this.Os=new Uo(e,this.ri)}).then(()=>{this.Fs=!0}).catch(e=>(this.wi&&this.wi.close(),Promise.reject(e)))}Ii(e){var t=this;return this.fi=function(){var o=(0,je.Z)(function*(u){if(t.started)return e(u)});return function(u){return o.apply(this,arguments)}}(),e(this.isPrimary)}setDatabaseDeletedListener(e){this.wi.B(function(){var t=(0,je.Z)(function*(o){null===o.newVersion&&(yield e())});return function(o){return t.apply(this,arguments)}}())}setNetworkEnabled(e){var t=this;this.networkEnabled!==e&&(this.networkEnabled=e,this.ii.enqueueAndForget((0,je.Z)(function*(){t.started&&(yield t.mi())})))}mi(){return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",e=>Dp(e).put({clientId:this.clientId,updateTimeMs:Date.now(),networkEnabled:this.networkEnabled,inForeground:this.inForeground}).next(()=>{if(this.isPrimary)return this.Ti(e).next(t=>{t||(this.isPrimary=!1,this.ii.enqueueRetryable(()=>this.fi(!1)))})}).next(()=>this.Ei(e)).next(t=>this.isPrimary&&!t?this.Ai(e).next(()=>!1):!!t&&this.vi(e).next(()=>!0))).catch(e=>{if(ca(e))return Wt("IndexedDbPersistence","Failed to extend owner lease: ",e),this.isPrimary;if(!this.allowTabSynchronization)throw e;return Wt("IndexedDbPersistence","Releasing owner lease after error during lease refresh",e),!1}).then(e=>{this.isPrimary!==e&&this.ii.enqueueRetryable(()=>this.fi(e)),this.isPrimary=e})}Ti(e){return Xh(e).get("owner").next(t=>nn.resolve(this.Ri(t)))}Pi(e){return Dp(e).delete(this.clientId)}bi(){var e=this;return(0,je.Z)(function*(){if(e.isPrimary&&!e.Vi(e.li,18e5)){e.li=Date.now();const t=yield e.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",o=>{const u=ys(o,"clientMetadata");return u.j().next(g=>{const E=e.Si(g,18e5),W=g.filter(pe=>-1===E.indexOf(pe));return nn.forEach(W,pe=>u.delete(pe.clientId)).next(()=>W)})}).catch(()=>[]);if(e._i)for(const o of t)e._i.removeItem(e.Di(o.clientId))}})()}pi(){this.hi=this.ii.enqueueAfterDelay("client_metadata_refresh",4e3,()=>this.mi().then(()=>this.bi()).then(()=>this.pi()))}Ri(e){return!!e&&e.ownerId===this.clientId}Ei(e){return this.oi?nn.resolve(!0):Xh(e).get("owner").next(t=>
1{if(null!==t&&this.Vi(t.leaseTimestampMs,5e3)&&!this.Ci(t.ownerId)){if(this.Ri(t)&&this.networkEnabled)return!0;if(!this.Ri(t)){if(!t.allowTabSynchronization)throw new On(un.FAILED_PRECONDITION,wu);return!1}}return!(!this.networkEnabled||!this.inForeground)||Dp(e).j().next(o=>void 0===this.Si(o,5e3).find(u=>{if(this.clientId!==u.clientId){const E=!this.inForeground&&u.inForeground,W=this.networkEnabled===u.networkEnabled;if(!this.networkEnabled&&u.networkEnabled||E&&W)return!0}return!1}))}).next(t=>(this.isPrimary!==t&&Wt("IndexedDbPersistence",`Client ${t?"is":"is not"} eligible for a primary lease.`),t))}shutdown(){var e=this;return(0,je.Z)(function*(){e.Fs=!1,e.xi(),e.hi&&(e.hi.cancel(),e.hi=null),e.Ni(),e.ki(),yield e.wi.runTransaction("shutdown","readwrite",["owner","clientMetadata"],t=>{const o=new Ra(t,Uo.ct);return e.Ai(o).next(()=>e.Pi(o))}),e.wi.close(),e.Mi()})()}Si(e,t){return e.filter(o=>this.Vi(o.updateTimeMs,t)&&!this.Ci(o.clientId))}$i(){return this.runTransaction("getActiveClients","readonly",e=>Dp(e).j().next(t=>this.Si(t,18e5).map(o=>o.clientId)))}get started(){return this.Fs}getMutationQueue(e,t){return Sc.de(e,this.serializer,t,this.referenceDelegate)}getTargetCache(){return this.Bs}getRemoteDocumentCache(){return this.remoteDocumentCache}getIndexManager(e){return new Ln(e,this.serializer.fe.databaseId)}getDocumentOverlayCache(e){return yd.de(this.serializer,e)}getBundleCache(){return this.qs}runTransaction(e,t,o){Wt("IndexedDbPersistence","Starting transaction:",e);const u="readonly"===t?"readonly":"readwrite",g=15===(E=this.ui)?xu:14===E?Iu:13===E?el:12===E?Sa:11===E?hu:void qn();var E;let W;return this.wi.runTransaction(e,u,g,pe=>(W=new Ra(pe,this.Os?this.Os.next():Uo.ct),"readwrite-primary"===t?this.Ti(W).next(Ce=>!!Ce||this.Ei(W)).next(Ce=>{if(!Ce)throw ti(`Failed to obtain primary lease for action '${e}'.`),this.isPrimary=!1,this.ii.enqueueRetryable(()=>this.fi(!1)),new On(un.FAILED_PRECONDITION,cu);return o(W)}).next(Ce=>this.vi(W).next(()=>Ce)):this.Oi(W).next(()=>o(W)))).then(pe=>(W.raiseOnCommittedEvent(),pe))}Oi(e){return Xh(e).get("owner").next(t=>{if(null!==t&&this.Vi(t.leaseTimestampMs,5e3)&&!this.Ci(t.ownerId)&&!this.Ri(t)&&!(this.oi||this.allowTabSynchronization&&t.allowTabSynchronization))throw new On(un.FAILED_PRECONDITION,wu)})}vi(e){const t={ownerId:this.clientId,allowTabSynchronization:this.allowTabSynchronization,leaseTimestampMs:Date.now()};return Xh(e).put("owner",t)}static D(){return lr.D()}Ai(e){const t=Xh(e);return t.get("owner").next(o=>this.Ri(o)?(Wt("IndexedDbPersistence","Releasing primary lease."),t.delete("owner")):nn.resolve())}Vi(e,t){const o=Date.now();return!(e<o-t||e>o&&(ti(`Detected an update time that is in the future: ${e} > ${o}`),1))}gi(){null!==this.document&&"function"==typeof this.document.addEventListener&&(this.ai=()=>{this.ii.enqueueAndForget(()=>(this.inForeground="visible"===this.document.visibilityState,this.mi()))},this.document.addEventListener("visibilitychange",this.ai),this.inForeground="visible"===this.document.visibilityState)}Ni(){this.ai&&(this.document.removeEventListener("visibilitychange",this.ai),this.ai=null)}yi(){var e;"function"==typeof(null===(e=this.window)||void 0===e?void 0:e.addEventListener)&&(this.ci=()=>{this.xi();const t=/(?:Version|Mobile)\/1[456]/;(0,Re.G6)()&&(navigator.appVersion.match(t)||navigator.userAgent.match(t))&&this.ii.enterRestrictedMode(!0),this.ii.enqueueAndForget(()=>this.shutdown())},this.window.addEventListener("pagehide",this.ci))}ki(){this.ci&&(this.window.removeEventListener("pagehide",this.ci),this.ci=null)}Ci(e){var t;try{const o=null!==(null===(t=this._i)||void 0===t?void 0:t.getItem(this.Di(e)));return Wt("IndexedDbPersistence",`Client '${e}' ${o?"is":"is not"} zombied in LocalStorage`),o}catch(o){return ti("IndexedDbPersistence","Failed to get zombied client id.",o),!1}}xi(){if(this._i)try{this._i.setItem(this.Di(this.clientId),String(Date.now()))}catch(e){ti("Failed to set zombie client id.",e)}}Mi(){if(this._i)try{this._i.removeItem(this.Di(this.clientId))}catch(e){}}Di(e){return`firestore_zombie_${this.persistenceKey}_${e}`}}function Xh(i){return ys(i,"owner")}function Dp(i){return ys(i,"clientMetadata")}function ng(i,e){let t=i.projectId;return i.isDefaultDatabase||(t+="."+i.database),"firestore/"+e+"/"+t+"/"}class Ep{constructor(e,t,o,u){this.targetId=e,this.fromCache=t,this.Fi=o,this.Bi=u}
1static Li(e,t){let o=Hr(),u=Hr();for(const g of t.docChanges)switch(g.type){case 0:o=o.add(g.doc.key);break;case 1:u=u.add(g.doc.key)}return new Ep(e,t.fromCache,o,u)}}class ig{constructor(){this.qi=!1}initialize(e,t){this.Ui=e,this.indexManager=t,this.qi=!0}getDocumentsMatchingQuery(e,t,o,u){return this.Ki(e,t).next(g=>g||this.Gi(e,t,u,o)).next(g=>g||this.Qi(e,t))}Ki(e,t){if(Yc(t))return nn.resolve(null);let o=_o(t);return this.indexManager.getIndexType(e,o).next(u=>0===u?null:(null!==t.limit&&1===u&&(t=Ru(t,null,"F"),o=_o(t)),this.indexManager.getDocumentsMatchingTarget(e,o).next(g=>{const E=Hr(...g);return this.Ui.getDocuments(e,E).next(W=>this.indexManager.getMinOffset(e,o).next(pe=>{const Ce=this.ji(t,W);return this.zi(t,Ce,E,pe.readTime)?this.Ki(e,Ru(t,null,"F")):this.Wi(e,Ce,t,pe)}))})))}Gi(e,t,o,u){return Yc(t)||u.isEqual(Bi.min())?this.Qi(e,t):this.Ui.getDocuments(e,o).next(g=>{const E=this.ji(t,g);return this.zi(t,E,o,u)?this.Qi(e,t):(Jt()<=ze.in.DEBUG&&Wt("QueryEngine","Re-using previous result from %s to execute query: %s",u.toString(),_u(t)),this.Wi(e,E,t,Qa(u,-1)))})}ji(e,t){let o=new ss(Ud(e));return t.forEach((u,g)=>{$u(e,g)&&(o=o.add(g))}),o}zi(e,t,o,u){if(null===e.limit)return!1;if(o.size!==t.size)return!0;const g="F"===e.limitType?t.last():t.first();return!!g&&(g.hasPendingWrites||g.version.compareTo(u)>0)}Qi(e,t){return Jt()<=ze.in.DEBUG&&Wt("QueryEngine","Using full collection scan to execute query:",_u(t)),this.Ui.getDocumentsMatchingQuery(e,t,Go.min())}Wi(e,t,o,u){return this.Ui.getDocumentsMatchingQuery(e,o,u).next(g=>(t.forEach(E=>{g=g.insert(E.key,E)}),g))}}class uv{constructor(e,t,o,u){this.persistence=e,this.Hi=t,this.serializer=u,this.Ji=new fs(cr),this.Yi=new Sl(g=>an(g),Xn),this.Xi=new Map,this.Zi=e.getRemoteDocumentCache(),this.Bs=e.getTargetCache(),this.qs=e.getBundleCache(),this.tr(o)}tr(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new iv(this.Zi,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.Zi.setIndexManager(this.indexManager),this.Hi.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",t=>e.collect(t,this.Ji))}}function rg(i,e,t,o){return new uv(i,e,t,o)}function Cp(i,e){return Om.apply(this,arguments)}function Om(){return Om=(0,je.Z)(function*(i,e){const t=ci(i);return yield t.persistence.runTransaction("Handle user change","readonly",o=>{let u;return t.mutationQueue.getAllMutationBatches(o).next(g=>(u=g,t.tr(e),t.mutationQueue.getAllMutationBatches(o))).next(g=>{const E=[],W=[];let pe=Hr();for(const Ce of u){E.push(Ce.batchId);for(const et of Ce.mutations)pe=pe.add(et.key)}for(const Ce of g){W.push(Ce.batchId);for(const et of Ce.mutations)pe=pe.add(et.key)}return t.localDocuments.getDocuments(o,pe).next(Ce=>({er:Ce,removedBatchIds:E,addedBatchIds:W}))})})}),Om.apply(this,arguments)}function cv(i,e){const t=ci(i);return t.persistence.runTransaction("Acknowledge batch","readwrite-primary",o=>{const u=e.batch.keys(),g=t.Zi.newChangeBuffer({trackRemovals:!0});return function(E,W,pe,Ce){const et=pe.batch,It=et.keys();let on=nn.resolve();return It.forEach(An=>{on=on.next(()=>Ce.getEntry(W,An)).next(di=>{const Ai=pe.docVersions.get(An);yi(null!==Ai),di.version.compareTo(Ai)<0&&(et.applyToRemoteDocument(di,pe),di.isValidDocument()&&(di.setReadTime(pe.commitVersion),Ce.addEntry(di)))})}),on.next(()=>E.mutationQueue.removeMutationBatch(W,et))}(t,o,e,g).next(()=>g.apply(o)).next(()=>t.mutationQueue.performConsistencyCheck(o)).next(()=>t.documentOverlayCache.removeOverlaysForBatchId(o,u,e.batch.batchId)).next(()=>t.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(o,function(E){let W=Hr();for(let pe=0;pe<E.mutationResults.length;++pe)E.mutationResults[pe].transformResults.length>0&&(W=W.add(E.batch.mutations[pe].key));return W}(e))).next(()=>t.localDocuments.getDocuments(o,u))})}function ef(i){const e=ci(i);return e.persistence.runTransaction("Get last remote snapshot version","readonly",t=>e.Bs.getLastRemoteSnapshotVersion(t))}function Rm(i,e){const t=ci(i),o=e.snapshotVersion;let u=t.Ji;return t.persistence.runTransaction("Apply remote event","readwrite-primary",g=>{const E=t.Zi.newChangeBuffer({trackRemovals:!0});u=t.Ji;const W=[];
1e.targetChanges.forEach((et,It)=>{const on=u.get(It);if(!on)return;W.push(t.Bs.removeMatchingKeys(g,et.removedDocuments,It).next(()=>t.Bs.addMatchingKeys(g,et.addedDocuments,It)));let An=on.withSequenceNumber(g.currentSequenceNumber);var di,Ai,Oi;null!==e.targetMismatches.get(It)?An=An.withResumeToken(ve.EMPTY_BYTE_STRING,Bi.min()).withLastLimboFreeSnapshotVersion(Bi.min()):et.resumeToken.approximateByteSize()>0&&(An=An.withResumeToken(et.resumeToken,o)),u=u.insert(It,An),Ai=An,Oi=et,(0===(di=on).resumeToken.approximateByteSize()||Ai.snapshotVersion.toMicroseconds()-di.snapshotVersion.toMicroseconds()>=3e8||Oi.addedDocuments.size+Oi.modifiedDocuments.size+Oi.removedDocuments.size>0)&&W.push(t.Bs.updateTargetData(g,An))});let pe=Ua(),Ce=Hr();if(e.documentUpdates.forEach(et=>{e.resolvedLimboDocuments.has(et)&&W.push(t.persistence.referenceDelegate.updateLimboDocument(g,et))}),W.push(sg(g,E,e.documentUpdates).next(et=>{pe=et.nr,Ce=et.sr})),!o.isEqual(Bi.min())){const et=t.Bs.getLastRemoteSnapshotVersion(g).next(It=>t.Bs.setTargetsMetadata(g,g.currentSequenceNumber,o));W.push(et)}return nn.waitFor(W).next(()=>E.apply(g)).next(()=>t.localDocuments.getLocalViewOfDocuments(g,pe,Ce)).next(()=>pe)}).then(g=>(t.Ji=u,g))}function sg(i,e,t){let o=Hr(),u=Hr();return t.forEach(g=>o=o.add(g)),e.getEntries(i,o).next(g=>{let E=Ua();return t.forEach((W,pe)=>{const Ce=g.get(W);pe.isFoundDocument()!==Ce.isFoundDocument()&&(u=u.add(W)),pe.isNoDocument()&&pe.version.isEqual(Bi.min())?(e.removeEntry(W,pe.readTime),E=E.insert(W,pe)):!Ce.isValidDocument()||pe.version.compareTo(Ce.version)>0||0===pe.version.compareTo(Ce.version)&&Ce.hasPendingWrites?(e.addEntry(pe),E=E.insert(W,pe)):Wt("LocalStore","Ignoring outdated watch update for ",W,". Current version:",Ce.version," Watch version:",pe.version)}),{nr:E,sr:u}})}function Nm(i,e){const t=ci(i);return t.persistence.runTransaction("Get next mutation batch","readonly",o=>(void 0===e&&(e=-1),t.mutationQueue.getNextMutationBatchAfterBatchId(o,e)))}function zc(i,e){const t=ci(i);return t.persistence.runTransaction("Allocate target","readwrite",o=>{let u;return t.Bs.getTargetData(o,e).next(g=>g?(u=g,nn.resolve(u)):t.Bs.allocateTargetId(o).next(E=>(u=new xa(e,E,"TargetPurposeListen",o.currentSequenceNumber),t.Bs.addTargetData(o,u).next(()=>u))))}).then(o=>{const u=t.Ji.get(o.targetId);return(null===u||o.snapshotVersion.compareTo(u.snapshotVersion)>0)&&(t.Ji=t.Ji.insert(o.targetId,o),t.Yi.set(e,o.targetId)),o})}function Td(i,e,t){return og.apply(this,arguments)}function og(){return og=(0,je.Z)(function*(i,e,t){const o=ci(i),u=o.Ji.get(e),g=t?"readwrite":"readwrite-primary";try{t||(yield o.persistence.runTransaction("Release target",g,E=>o.persistence.referenceDelegate.removeTarget(E,u)))}catch(E){if(!ca(E))throw E;Wt("LocalStore",`Failed to update sequence numbers for target ${e}: ${E}`)}o.Ji=o.Ji.remove(e),o.Yi.delete(u.target)}),og.apply(this,arguments)}function Fm(i,e,t){const o=ci(i);let u=Bi.min(),g=Hr();return o.persistence.runTransaction("Execute query","readonly",E=>function(W,pe,Ce){const et=ci(W),It=et.Yi.get(Ce);return void 0!==It?nn.resolve(et.Ji.get(It)):et.Bs.getTargetData(pe,Ce)}(o,E,_o(e)).next(W=>{if(W)return u=W.lastLimboFreeSnapshotVersion,o.Bs.getMatchingKeysForTargetId(E,W.targetId).next(pe=>{g=pe})}).next(()=>o.Hi.getDocumentsMatchingQuery(E,e,t?u:Bi.min(),t?g:Hr())).next(W=>(ag(o,sd(e),W),{documents:W,ir:g})))}function Sp(i,e){const t=ci(i),o=ci(t.Bs),u=t.Ji.get(e);return u?Promise.resolve(u.target):t.persistence.runTransaction("Get target data","readonly",g=>o.le(g,e).next(E=>E?E.target:null))}function dv(i,e){const t=ci(i),o=t.Xi.get(e)||Bi.min();return t.persistence.runTransaction("Get new document changes","readonly",u=>t.Zi.getAllFromCollectionGroup(u,e,Qa(o,-1),Number.MAX_SAFE_INTEGER)).then(u=>(ag(t,e,u),u))}function ag(i,e,t){let o=i.Xi.get(e)||Bi.min();t.forEach((u,g)=>{g.readTime.compareTo(o)>0&&(o=g.readTime)}),i.Xi.set(e,o)}function kp(){return kp=(0,je.Z)(function*(i,e,t,o){const u=ci(i);let g=Hr(),E=Ua();for(const Ce of t){const et=e.rr(Ce.metadata.name);Ce.document&&(g=g.add(et));const It=e.ur(Ce);It.setReadTime(e.cr(Ce.metadata.readTime)),E=E.insert(et,It)}const W=u.Zi.newChangeBuffer({trackRemovals:!0}),pe=yield zc(u,(Ce=o,_o(_l(zr.fromString(`__bundle__/docs/${Ce}`)))));var Ce;return u.persistence.runTransaction("Apply bundle documents","readwrite",Ce=>sg(Ce,W,E).next(et=>(W.apply(Ce),et)).next(et=>u.Bs.removeMatchingKeysForTargetId(Ce,pe.targetId).next(()=>u.Bs.addMatchingKeys(Ce,g,pe.targetId)).next(()=>u.localDocuments.getLocalViewOfDocuments(Ce,et.nr,et.sr)).next(()=>et.nr)))}),kp.apply(this,arguments)}function ug(i,e){return Ip.apply(this,arguments)}function Ip(){return Ip=(0,je.Z)(function*(i,e,t=Hr()){const o=yield zc(i,_o(_d(e.bundledQuery))),u=ci(i);return u.persistence.runTransaction("Save named query","readwrite",g=>{const E=na(e.readTime);if(o.snapshotVersion.compareTo(E)>=0)return u.qs.saveNamedQuery(g,e);const W=o.withResumeToken(ve.EMPTY_BYTE_STRING,E);return u.Ji=u.Ji.insert(W.targetId,W),u.Bs.updateTargetData(g,W).next(()=>u.Bs.removeMatchingKeysForTargetId(g,o.targetId)).next(()=>u.Bs.addMatchingKeys(g,t,o.targetId)).next(()=>u.qs.saveNamedQuery(g,e))})}),Ip.apply(this,arguments)}function Ym(i,e){return`firestore_clients_${i}_${e}`}function rc(i,e,t){let o=`firestore_mutations_${i}_${t}`;return e.isAuthenticated()&&(o+=`_${e.uid}`),o}function eh(i,e){return`firestore_targets_${i}_${e}`}class xp{constructor(e,t,o,u){this.user=e,this.batchId=t,this.state=o,this.error=u}static ar(e,t,o){const u=JSON.parse(o);let g,E="object"==typeof u&&-1!==["pending","acknowledged","rejected"].indexOf(u.state)&&(void 0===u.error||"object"==typeof u.error);return E&&u.error&&(E="string"==typeof u.error.message&&"string"==typeof u.error.code,E&&(g=new On(u.error.code,u.error.message))),E?new xp(e,t,u.state,g):(ti("SharedCl
1ientState",`Failed to parse mutation state for ID '${t}': ${o}`),null)}hr(){const e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)}}class tf{constructor(e,t,o){this.targetId=e,this.state=t,this.error=o}static ar(e,t){const o=JSON.parse(t);let u,g="object"==typeof o&&-1!==["not-current","current","rejected"].indexOf(o.state)&&(void 0===o.error||"object"==typeof o.error);return g&&o.error&&(g="string"==typeof o.error.message&&"string"==typeof o.error.code,g&&(u=new On(o.error.code,o.error.message))),g?new tf(e,o.state,u):(ti("SharedClientState",`Failed to parse target state for ID '${e}': ${t}`),null)}hr(){const e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)}}class Bm{constructor(e,t){this.clientId=e,this.activeTargetIds=t}static ar(e,t){const o=JSON.parse(t);let u="object"==typeof o&&o.activeTargetIds instanceof Array,g=ja();for(let E=0;u&&E<o.activeTargetIds.length;++E)u=Gl(o.activeTargetIds[E]),g=g.add(o.activeTargetIds[E]);return u?new Bm(e,g):(ti("SharedClientState",`Failed to parse client data for instance '${e}': ${t}`),null)}}class nf{constructor(e,t){this.clientId=e,this.onlineState=t}static ar(e){const t=JSON.parse(e);return"object"==typeof t&&-1!==["Unknown","Online","Offline"].indexOf(t.onlineState)&&"string"==typeof t.clientId?new nf(t.clientId,t.onlineState):(ti("SharedClientState",`Failed to parse online state: ${e}`),null)}}class Lp{constructor(){this.activeTargetIds=ja()}lr(e){this.activeTargetIds=this.activeTargetIds.add(e)}dr(e){this.activeTargetIds=this.activeTargetIds.delete(e)}hr(){const e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class rf{constructor(e,t,o,u,g){this.window=e,this.ii=t,this.persistenceKey=o,this.wr=u,this.syncEngine=null,this.onlineStateHandler=null,this.sequenceNumberHandler=null,this._r=this.mr.bind(this),this.gr=new fs(cr),this.started=!1,this.yr=[];const E=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.window.localStorage,this.currentUser=g,this.pr=Ym(this.persistenceKey,this.wr),this.Ir=`firestore_sequence_number_${this.persistenceKey}`,this.gr=this.gr.insert(this.wr,new Lp),this.Tr=new RegExp(`^firestore_clients_${E}_([^_]*)$`),this.Er=new RegExp(`^firestore_mutations_${E}_(\\d+)(?:_(.*))?$`),this.Ar=new RegExp(`^firestore_targets_${E}_(\\d+)$`),this.vr=`firestore_online_state_${this.persistenceKey}`,this.Rr=function(W){return`firestore_bundle_loaded_v2_${W}`}(this.persistenceKey),this.window.addEventListener("storage",this._r)}static D(e){return!(!e||!e.localStorage)}start(){var e=this;return(0,je.Z)(function*(){const t=yield e.syncEngine.$i();for(const u of t){if(u===e.wr)continue;const g=e.getItem(Ym(e.persistenceKey,u));if(g){const E=Bm.ar(u,g);E&&(e.gr=e.gr.insert(E.clientId,E))}}e.Pr();const o=e.storage.getItem(e.vr);if(o){const u=e.br(o);u&&e.Vr(u)}for(const u of e.yr)e.mr(u);e.yr=[],e.window.addEventListener("pagehide",()=>e.shutdown()),e.started=!0})()}writeSequenceNumber(e){this.setItem(this.Ir,JSON.stringify(e))}getAllActiveQueryTargets(){return this.Sr(this.gr)}isActiveQueryTarget(e){let t=!1;return this.gr.forEach((o,u)=>{u.activeTargetIds.has(e)&&(t=!0)}),t}addPendingMutation(e){this.Dr(e,"pending")}updateMutationState(e,t,o){this.Dr(e,t,o),this.Cr(e)}addLocalQueryTarget(e){let t="not-current";if(this.isActiveQueryTarget(e)){const o=this.storage.getItem(eh(this.persistenceKey,e));if(o){const u=tf.ar(e,o);u&&(t=u.state)}}return this.Nr.lr(e),this.Pr(),t}removeLocalQueryTarget(e){this.Nr.dr(e),this.Pr()}isLocalQueryTarget(e){return this.Nr.activeTargetIds.has(e)}clearQueryState(e){this.removeItem(eh(this.persistenceKey,e))}updateQueryState(e,t,o){this.kr(e,t,o)}handleUserChange(e,t,o){t.forEach(u=>{this.Cr(u)}),this.currentUser=e,o.forEach(u=>{this.addPendingMutation(u)})}setOnlineState(e){this.Mr(e)}notifyBundleLoaded(e){this.$r(e)}shutdown(){this.started&&(this.window.removeEventListener("storage",this._r),this.removeItem(this.pr),this.started=!1)}getItem(e){const t=this.storage.getItem(e);
1return Wt("SharedClientState","READ",e,t),t}setItem(e,t){Wt("SharedClientState","SET",e,t),this.storage.setItem(e,t)}removeItem(e){Wt("SharedClientState","REMOVE",e),this.storage.removeItem(e)}mr(e){var t=this;const o=e;if(o.storageArea===this.storage){if(Wt("SharedClientState","EVENT",o.key,o.newValue),o.key===this.pr)return void ti("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.ii.enqueueRetryable((0,je.Z)(function*(){if(t.started){if(null!==o.key)if(t.Tr.test(o.key)){if(null==o.newValue){const u=t.Or(o.key);return t.Fr(u,null)}{const u=t.Br(o.key,o.newValue);if(u)return t.Fr(u.clientId,u)}}else if(t.Er.test(o.key)){if(null!==o.newValue){const u=t.Lr(o.key,o.newValue);if(u)return t.qr(u)}}else if(t.Ar.test(o.key)){if(null!==o.newValue){const u=t.Ur(o.key,o.newValue);if(u)return t.Kr(u)}}else if(o.key===t.vr){if(null!==o.newValue){const u=t.br(o.newValue);if(u)return t.Vr(u)}}else if(o.key===t.Ir){const u=function(g){let E=Uo.ct;if(null!=g)try{const W=JSON.parse(g);yi("number"==typeof W),E=W}catch(W){ti("SharedClientState","Failed to read sequence number from WebStorage",W)}return E}(o.newValue);u!==Uo.ct&&t.sequenceNumberHandler(u)}else if(o.key===t.Rr){const u=t.Gr(o.newValue);yield Promise.all(u.map(g=>t.syncEngine.Qr(g)))}}else t.yr.push(o)}))}}get Nr(){return this.gr.get(this.wr)}Pr(){this.setItem(this.pr,this.Nr.hr())}Dr(e,t,o){const u=new xp(this.currentUser,e,t,o),g=rc(this.persistenceKey,this.currentUser,e);this.setItem(g,u.hr())}Cr(e){const t=rc(this.persistenceKey,this.currentUser,e);this.removeItem(t)}Mr(e){this.storage.setItem(this.vr,JSON.stringify({clientId:this.wr,onlineState:e}))}kr(e,t,o){const u=eh(this.persistenceKey,e),g=new tf(e,t,o);this.setItem(u,g.hr())}$r(e){const t=JSON.stringify(Array.from(e));this.setItem(this.Rr,t)}Or(e){const t=this.Tr.exec(e);return t?t[1]:null}Br(e,t){const o=this.Or(e);return Bm.ar(o,t)}Lr(e,t){const o=this.Er.exec(e),u=Number(o[1]);return xp.ar(new xe(void 0!==o[2]?o[2]:null),u,t)}Ur(e,t){const o=this.Ar.exec(e),u=Number(o[1]);return tf.ar(u,t)}br(e){return nf.ar(e)}Gr(e){return JSON.parse(e)}qr(e){var t=this;return(0,je.Z)(function*(){if(e.user.uid===t.currentUser.uid)return t.syncEngine.jr(e.batchId,e.state,e.error);Wt("SharedClientState",`Ignoring mutation for non-active user ${e.user.uid}`)})()}Kr(e){return this.syncEngine.zr(e.targetId,e.state,e.error)}Fr(e,t){const o=t?this.gr.insert(e,t):this.gr.remove(e),u=this.Sr(this.gr),g=this.Sr(o),E=[],W=[];return g.forEach(pe=>{u.has(pe)||E.push(pe)}),u.forEach(pe=>{g.has(pe)||W.push(pe)}),this.syncEngine.Wr(E,W).then(()=>{this.gr=o})}Vr(e){this.gr.get(e.clientId)&&this.onlineStateHandler(e.onlineState)}Sr(e){let t=ja();return e.forEach((o,u)=>{t=t.unionWith(u.activeTargetIds)}),t}}class th{constructor(){this.Hr=new Lp,this.Jr={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,t,o){}addLocalQueryTarget(e){return this.Hr.lr(e),this.Jr[e]||"not-current"}updateQueryState(e,t,o){this.Jr[e]=t}removeLocalQueryTarget(e){this.Hr.dr(e)}isLocalQueryTarget(e){return this.Hr.activeTargetIds.has(e)}clearQueryState(e){delete this.Jr[e]}getAllActiveQueryTargets(){return this.Hr.activeTargetIds}isActiveQueryTarget(e){return this.Hr.activeTargetIds.has(e)}start(){return this.Hr=new Lp,Promise.resolve()}handleUserChange(e,t,o){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}class hv{Yr(e){}shutdown(){}}class Ap{constructor(){this.Xr=()=>this.Zr(),this.eo=()=>this.no(),this.so=[],this.io()}Yr(e){this.so.push(e)}shutdown(){window.removeEventListener("online",this.Xr),window.removeEventListener("offline",this.eo)}io(){window.addEventListener("online",this.Xr),window.addEventListener("offline",this.eo)}Zr(){Wt("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const e of this.so)e(0)}no(){Wt("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const e of this.so)e(1)}static D(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}let sf=null;function Pp(){return null===sf?sf=268435456+Math.round(2147483648*Math.random()):sf++,"0x"+sf.toString(16)}const cg={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregation
1Query:"runAggregationQuery"};class fv{constructor(e){this.ro=e.ro,this.oo=e.oo}uo(e){this.co=e}ao(e){this.ho=e}onMessage(e){this.lo=e}close(){this.oo()}send(e){this.ro(e)}fo(){this.co()}wo(e){this.ho(e)}_o(e){this.lo(e)}}const Za="WebChannelConnection";class pv extends class{constructor(e){this.databaseInfo=e,this.databaseId=e.databaseId,this.mo=(e.ssl?"https":"http")+"://"+e.host,this.yo="projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database+"/documents"}get po(){return!1}Io(e,t,o,u,g){const E=Pp(),W=this.To(e,t);Wt("RestConnection",`Sending RPC '${e}' ${E}:`,W,o);const pe={};return this.Eo(pe,u,g),this.Ao(e,W,pe,o).then(Ce=>(Wt("RestConnection",`Received RPC '${e}' ${E}: `,Ce),Ce),Ce=>{throw Zi("RestConnection",`RPC '${e}' ${E} failed with error: `,Ce,"url: ",W,"request:",o),Ce})}vo(e,t,o,u,g,E){return this.Io(e,t,o,u,g)}Eo(e,t,o){e["X-Goog-Api-Client"]="gl-js/ fire/"+bt,e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),t&&t.headers.forEach((u,g)=>e[g]=u),o&&o.headers.forEach((u,g)=>e[g]=u)}To(e,t){return`${this.mo}/v1/${t}:${cg[e]}`}}{constructor(e){super(e),this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}Ao(e,t,o,u){const g=Pp();return new Promise((E,W)=>{const pe=new d;pe.setWithCredentials(!0),pe.listenOnce(ee.COMPLETE,()=>{try{switch(pe.getLastErrorCode()){case Zo.NO_ERROR:const et=pe.getResponseJson();Wt(Za,`XHR for RPC '${e}' ${g} received:`,JSON.stringify(et)),E(et);break;case Zo.TIMEOUT:Wt(Za,`RPC '${e}' ${g} timed out`),W(new On(un.DEADLINE_EXCEEDED,"Request time out"));break;case Zo.HTTP_ERROR:const It=pe.getStatus();if(Wt(Za,`RPC '${e}' ${g} failed with status:`,It,"response text:",pe.getResponseText()),It>0){let on=pe.getResponseJson();Array.isArray(on)&&(on=on[0]);const An=null==on?void 0:on.error;if(An&&An.status&&An.message){const di=function(Ai){const Oi=Ai.toLowerCase().replace(/_/g,"-");return Object.values(un).indexOf(Oi)>=0?Oi:un.UNKNOWN}(An.status);W(new On(di,An.message))}else W(new On(un.UNKNOWN,"Server responded with status "+pe.getStatus()))}else W(new On(un.UNAVAILABLE,"Connection failed."));break;default:qn()}}finally{Wt(Za,`RPC '${e}' ${g} completed.`)}});const Ce=JSON.stringify(u);Wt(Za,`RPC '${e}' ${g} sending request:`,u),pe.send(t,"POST",Ce,o,15)})}Ro(e,t,o){const u=Pp(),g=[this.mo,"/","google.firestore.v1.Firestore","/",e,"/channel"],E=Da(),W=la(),pe={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},Ce=this.longPollingOptions.timeoutSeconds;void 0!==Ce&&(pe.longPollingTimeout=Math.round(1e3*Ce)),this.useFetchStreams&&(pe.xmlHttpFactory=new he({})),this.Eo(pe.initMessageHeaders,t,o),pe.encodeInitMessageHeaders=!0;const et=g.join("");Wt(Za,`Creating RPC '${e}' stream ${u}: ${et}`,pe);const It=E.createWebChannel(et,pe);let on=!1,An=!1;const di=new fv({ro:Oi=>{An?Wt(Za,`Not sending because RPC '${e}' stream ${u} is closed:`,Oi):(on||(Wt(Za,`Opening RPC '${e}' stream ${u} transport.`),It.open(),on=!0),Wt(Za,`RPC '${e}' stream ${u} sending:`,Oi),It.send(Oi))},oo:()=>It.close()}),Ai=(Oi,xr,As)=>{Oi.listen(xr,Lr=>{try{As(Lr)}catch(pa){setTimeout(()=>{throw pa},0)}})};return Ai(It,a.EventType.OPEN,()=>{An||Wt(Za,`RPC '${e}' stream ${u} transport opened.`)}),Ai(It,a.EventType.CLOSE,()=>{An||(An=!0,Wt(Za,`RPC '${e}' stream ${u} transport closed`),di.wo())}),Ai(It,a.EventType.ERROR,Oi=>{An||(An=!0,Zi(Za,`RPC '${e}' stream ${u} transport errored:`,Oi),di.wo(new On(un.UNAVAILABLE,"The operation could not be completed")))}),Ai(It,a.EventType.MESSAGE,Oi=>{var xr;if(!An){const As=Oi.data[0];yi(!!As);const Lr=As,pa=Lr.error||(null===(xr=Lr[0])||void 0===xr?void 0:xr.error);if(pa){Wt(Za,`RPC '${e}' stream ${u} received error:`,pa);const Ao=pa.status;let Po=function(nd){const C0=ha[nd];if(void 0!==C0)return Xf(C0)}(Ao),Al=pa.message;void 0===Po&&(Po=un.INTERNAL,Al="Unknown error status: "+Ao+" with message "+pa.message),An=!0,di.wo(new On(Po,Al)),It.close()}else Wt(Za,`RPC '${e}' stream ${u} received:`,As),di._o(As)}}),Ai(W,z.STAT_EVENT,Oi=>{Oi.stat===H.PROXY?Wt(Za,`RPC '${e}' stream ${u} detected buffering proxy`):Oi.stat===H.NOPROXY&&Wt(Za,`RPC '${e}' stream ${u} detected no buffering proxy`)}),setTimeout(()=>{di.fo()},0),di}}function dg(){return"undefined"!=typeof window?window:null}function af(){return"undefined"!=typeof document?document:null}function sc(i){return new sp(i,!0)}class Op{constructor(e,t,o=1e3,u=1.5,g=6e4){this.ii=e,this.timerId=t,this.Po=o,this.bo=u,this.Vo=g,this.So=0,this.Do=null,this.Co=Date.now(),this.reset()}reset(){this.So=0}xo(){this.So=this.Vo}No(e){this.cancel();const t=Math.floor(this.So+this.ko()),o=Math.max(0,Date.now()-this.Co),u=Math.max(0,t-o);u>0&&Wt("ExponentialBackoff",`Backing off for ${u} ms (base delay: ${this.So}
1 ms, delay with jitter: ${t} ms, last attempt: ${o} ms ago)`),this.Do=this.ii.enqueueAfterDelay(this.timerId,u,()=>(this.Co=Date.now(),e())),this.So*=this.bo,this.So<this.Po&&(this.So=this.Po),this.So>this.Vo&&(this.So=this.Vo)}Mo(){null!==this.Do&&(this.Do.skipDelay(),this.Do=null)}cancel(){null!==this.Do&&(this.Do.cancel(),this.Do=null)}ko(){return(Math.random()-.5)*this.So}}class hg{constructor(e,t,o,u,g,E,W,pe){this.ii=e,this.$o=o,this.Oo=u,this.connection=g,this.authCredentialsProvider=E,this.appCheckCredentialsProvider=W,this.listener=pe,this.state=0,this.Fo=0,this.Bo=null,this.Lo=null,this.stream=null,this.qo=new Op(e,t)}Uo(){return 1===this.state||5===this.state||this.Ko()}Ko(){return 2===this.state||3===this.state}start(){4!==this.state?this.auth():this.Go()}stop(){var e=this;return(0,je.Z)(function*(){e.Uo()&&(yield e.close(0))})()}Qo(){this.state=0,this.qo.reset()}jo(){this.Ko()&&null===this.Bo&&(this.Bo=this.ii.enqueueAfterDelay(this.$o,6e4,()=>this.zo()))}Wo(e){this.Ho(),this.stream.send(e)}zo(){var e=this;return(0,je.Z)(function*(){if(e.Ko())return e.close(0)})()}Ho(){this.Bo&&(this.Bo.cancel(),this.Bo=null)}Jo(){this.Lo&&(this.Lo.cancel(),this.Lo=null)}close(e,t){var o=this;return(0,je.Z)(function*(){o.Ho(),o.Jo(),o.qo.cancel(),o.Fo++,4!==e?o.qo.reset():t&&t.code===un.RESOURCE_EXHAUSTED?(ti(t.toString()),ti("Using maximum backoff delay to prevent overloading the backend."),o.qo.xo()):t&&t.code===un.UNAUTHENTICATED&&3!==o.state&&(o.authCredentialsProvider.invalidateToken(),o.appCheckCredentialsProvider.invalidateToken()),null!==o.stream&&(o.Yo(),o.stream.close(),o.stream=null),o.state=e,yield o.listener.ao(t)})()}Yo(){}auth(){this.state=1;const e=this.Xo(this.Fo),t=this.Fo;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([o,u])=>{this.Fo===t&&this.Zo(o,u)},o=>{e(()=>{const u=new On(un.UNKNOWN,"Fetching auth token failed: "+o.message);return this.tu(u)})})}Zo(e,t){const o=this.Xo(this.Fo);this.stream=this.eu(e,t),this.stream.uo(()=>{o(()=>(this.state=2,this.Lo=this.ii.enqueueAfterDelay(this.Oo,1e4,()=>(this.Ko()&&(this.state=3),Promise.resolve())),this.listener.uo()))}),this.stream.ao(u=>{o(()=>this.tu(u))}),this.stream.onMessage(u=>{o(()=>this.onMessage(u))})}Go(){var e=this;this.state=5,this.qo.No((0,je.Z)(function*(){e.state=0,e.start()}))}tu(e){return Wt("PersistentStream",`close with error: ${e}`),this.stream=null,this.close(4,e)}Xo(e){return t=>{this.ii.enqueueAndForget(()=>this.Fo===e?t():(Wt("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class mv extends hg{constructor(e,t,o,u,g,E){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",t,o,u,E),this.serializer=g}eu(e,t){return this.connection.Ro("Listen",e,t)}onMessage(e){this.qo.reset();const t=function Cm(i,e){let t;if("targetChange"in e){const o="NO_CHANGE"===(pe=e.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===pe?1:"REMOVE"===pe?2:"CURRENT"===pe?3:"RESET"===pe?4:qn(),u=e.targetChange.targetIds||[],g=function(pe,Ce){return pe.useProto3Json?(yi(void 0===Ce||"string"==typeof Ce),ve.fromBase64String(Ce||"")):(yi(void 0===Ce||Ce instanceof Uint8Array),ve.fromUint8Array(Ce||new Uint8Array))}(i,e.targetChange.resumeToken),E=e.targetChange.cause,W=E&&function(pe){const Ce=void 0===pe.code?un.UNKNOWN:Xf(pe.code);return new On(Ce,pe.message||"")}(E);t=new tp(o,u,g,W||null)}else if("documentChange"in e){const o=e.documentChange,u=Xl(i,o.document.name),g=na(o.document.updateTime),E=o.document.createTime?na(o.document.createTime):Bi.min(),W=new vs({mapValue:{fields:o.document.fields}}),pe=ps.newFoundDocument(u,g,E,W);t=new Tc(o.targetIds||[],o.removedTargetIds||[],pe.key,pe)}else if("documentDelete"in e){const o=e.documentDelete,u=Xl(i,o.document),g=o.readTime?na(o.readTime):Bi.min(),E=ps.newNoDocument(u,g);t=new Tc([],o.removedTargetIds||[],E.key,E)}else if("documentRemove"in e){const o=e.documentRemove,u=Xl(i,o.document);t=new Tc([],o.removedTargetIds||[],u,null)}else{if(!("filter"in e))return qn();{const o=e.filter,{count:u=0,unchangedNames:g}=o,E=new Qf(u,g);t=new Hh(o.targetId,E)}}var pe;return t}(this.serializer,e),o=function(u){if(!("targetChange"in u))return Bi.min();const g=u.targetChange;return g.targetIds&&g.targetIds.length?Bi.min():g.readTime?na(g.readTime):Bi.min()}(e);return this.listener.nu(t,o)}su(e){const t={};t.database=dd(this.serializer),t.addTarget=function(u,g){let E;const W=g.target;if(E=Ci(W)?{documents:ba(u,W)}:{query:rl(u,W)},E.targetId=g.targetId,g.resumeToken.approximateByteSize()>0){E.resumeToken=Em(u,g.resumeToken);const pe=Ju(u,g.expectedCount);null!==pe&&(E.expectedCount=pe)}else if(g.snapshotVersion.compareTo(Bi.min())>0){E.readTime=il(u,g.snapshotVersion.toTimestamp());const pe=Ju(u,g.expectedCount);null!==pe&&(E.expectedCount=pe)}return E}(this.serializer,e);const o=function Sm(i,e){const t=function(o){switch(o){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return qn()}}(e.purpose);return null==t?null:{"goog-listen-tags":t}}(0,e);o&&(t.labels=o),this.Wo(t)}iu(e){const t={};t.database=dd(this.serializer),t.removeTarget=e,this.Wo(t)}}class nh extends hg{constructor(e,t,o,u,g,E){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",t,o,u,E),this.serializer
1=g,this.ru=!1}get ou(){return this.ru}start(){this.ru=!1,this.lastStreamToken=void 0,super.start()}Yo(){this.ru&&this.uu([])}eu(e,t){return this.connection.Ro("Write",e,t)}onMessage(e){if(yi(!!e.streamToken),this.lastStreamToken=e.streamToken,this.ru){this.qo.reset();const t=function Xu(i,e){return i&&i.length>0?(yi(void 0!==e),i.map(t=>function(o,u){let g=na(o.updateTime?o.updateTime:u);return g.isEqual(Bi.min())&&(g=na(u)),new Ph(g,o.transformResults||[])}(t,e))):[]}(e.writeResults,e.commitTime),o=na(e.commitTime);return this.listener.cu(o,t)}return yi(!e.writeResults||0===e.writeResults.length),this.ru=!0,this.listener.au()}hu(){const e={};e.database=dd(this.serializer),this.Wo(e)}uu(e){const t={streamToken:this.lastStreamToken,writes:e.map(o=>hd(this.serializer,o))};this.Wo(t)}}class _v extends class{}{constructor(e,t,o,u){super(),this.authCredentials=e,this.appCheckCredentials=t,this.connection=o,this.serializer=u,this.lu=!1}fu(){if(this.lu)throw new On(un.FAILED_PRECONDITION,"The client has already been terminated.")}Io(e,t,o){return this.fu(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([u,g])=>this.connection.Io(e,t,o,u,g)).catch(u=>{throw"FirebaseError"===u.name?(u.code===un.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),u):new On(un.UNKNOWN,u.toString())})}vo(e,t,o,u){return this.fu(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([g,E])=>this.connection.vo(e,t,o,g,E,u)).catch(g=>{throw"FirebaseError"===g.name?(g.code===un.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),g):new On(un.UNKNOWN,g.toString())})}terminate(){this.lu=!0}}class yv{constructor(e,t){this.asyncQueue=e,this.onlineStateHandler=t,this.state="Unknown",this.wu=0,this._u=null,this.mu=!0}gu(){0===this.wu&&(this.yu("Unknown"),this._u=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this._u=null,this.pu("Backend didn't respond within 10 seconds."),this.yu("Offline"),Promise.resolve())))}Iu(e){"Online"===this.state?this.yu("Unknown"):(this.wu++,this.wu>=1&&(this.Tu(),this.pu(`Connection failed 1 times. Most recent error: ${e.toString()}`),this.yu("Offline")))}set(e){this.Tu(),this.wu=0,"Online"===e&&(this.mu=!1),this.yu(e)}yu(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}pu(e){const t=`Could not reach Cloud Firestore backend. ${e}\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;this.mu?(ti(t),this.mu=!1):Wt("OnlineStateTracker",t)}Tu(){null!==this._u&&(this._u.cancel(),this._u=null)}}class oc{constructor(e,t,o,u,g){var E=this;this.localStore=e,this.datastore=t,this.asyncQueue=o,this.remoteSyncer={},this.Eu=[],this.Au=new Map,this.vu=new Set,this.Ru=[],this.Pu=g,this.Pu.Yr(W=>{o.enqueueAndForget((0,je.Z)(function*(){var pe;Cd(E)&&(Wt("RemoteStore","Restarting streams for network reachability change."),yield(pe=(0,je.Z)(function*(Ce){const et=ci(Ce);et.vu.add(4),yield Ed(et),et.bu.set("Unknown"),et.vu.delete(4),yield Dd(et)}),function(Ce){return pe.apply(this,arguments)})(E))}))}),this.bu=new yv(o,u)}}function Dd(i){return Rp.apply(this,arguments)}function Rp(){return Rp=(0,je.Z)(function*(i){if(Cd(i))for(const e of i.Ru)yield e(!0)}),Rp.apply(this,arguments)}function Ed(i){return Np.apply(this,arguments)}function Np(){return Np=(0,je.Z)(function*(i){for(const e of i.Ru)yield e(!1)}),Np.apply(this,arguments)}function lf(i,e){const t=ci(i);t.Au.has(e.targetId)||(t.Au.set(e.targetId,e),Fp(t)?jm(t):kc(t).Ko()&&Um(t,e))}function uf(i,e){const t=ci(i),o=kc(t);t.Au.delete(e),o.Ko()&&fg(t,e),0===t.Au.size&&(o.Ko()?o.jo():Cd(t)&&t.bu.set("Unknown"))}function Um(i,e){if(i.Vu.qt(e.targetId),e.resumeToken.approximateByteSize()>0||e.snapshotVersion.compareTo(Bi.min())>0){const t=i.remoteSyncer.getRemoteKeysForTarget(e.targetId).size;e=e.withExpectedCount(t)}kc(i).su(e)}function fg(i,e){i.Vu.qt(e),kc(i).iu(e)}function jm(i){i.Vu=new Mm({getRemoteKeysForTarget:e=>i.remoteSyncer.getRemoteKeysForTarget(e),le:e=>i.Au.get(e)||null,ue:()=>i.datastore.serializer.databaseId}),kc(i).start(),i.bu.gu()}function Fp(i){return Cd(i)&&!kc(i).Uo()&&i.Au.size>0}function Cd(i){return 0===ci(i).vu.size}function Vm(i){i.Vu=void 0}function vv(i){return zm.apply(this,arguments)}
1function zm(){return zm=(0,je.Z)(function*(i){i.Au.forEach((e,t)=>{Um(i,e)})}),zm.apply(this,arguments)}function db(i,e){return pg.apply(this,arguments)}function pg(){return pg=(0,je.Z)(function*(i,e){Vm(i),Fp(i)?(i.bu.Iu(e),jm(i)):i.bu.set("Unknown")}),pg.apply(this,arguments)}function Wm(i,e,t){return Zm.apply(this,arguments)}function Zm(){return Zm=(0,je.Z)(function*(i,e,t){if(i.bu.set("Online"),e instanceof tp&&2===e.state&&e.cause)try{yield(o=(0,je.Z)(function*(u,g){const E=g.cause;for(const W of g.targetIds)u.Au.has(W)&&(yield u.remoteSyncer.rejectListen(W,E),u.Au.delete(W),u.Vu.removeTarget(W))}),function(u,g){return o.apply(this,arguments)})(i,e)}catch(o){Wt("RemoteStore","Failed to remove targets %s: %s ",e.targetIds.join(","),o),yield cf(i,o)}else if(e instanceof Tc?i.Vu.Ht(e):e instanceof Hh?i.Vu.ne(e):i.Vu.Xt(e),!t.isEqual(Bi.min()))try{const o=yield ef(i.localStore);t.compareTo(o)>=0&&(yield function(u,g){const E=u.Vu.ce(g);return E.targetChanges.forEach((W,pe)=>{if(W.resumeToken.approximateByteSize()>0){const Ce=u.Au.get(pe);Ce&&u.Au.set(pe,Ce.withResumeToken(W.resumeToken,g))}}),E.targetMismatches.forEach((W,pe)=>{const Ce=u.Au.get(W);if(!Ce)return;u.Au.set(W,Ce.withResumeToken(ve.EMPTY_BYTE_STRING,Ce.snapshotVersion)),fg(u,W);const et=new xa(Ce.target,W,pe,Ce.sequenceNumber);Um(u,et)}),u.remoteSyncer.applyRemoteEvent(E)}(i,t))}catch(o){Wt("RemoteStore","Failed to raise snapshot:",o),yield cf(i,o)}var o}),Zm.apply(this,arguments)}function cf(i,e,t){return Yp.apply(this,arguments)}function Yp(){return Yp=(0,je.Z)(function*(i,e,t){if(!ca(e))throw e;i.vu.add(1),yield Ed(i),i.bu.set("Offline"),t||(t=()=>ef(i.localStore)),i.asyncQueue.enqueueRetryable((0,je.Z)(function*(){Wt("RemoteStore","Retrying IndexedDB access"),yield t(),i.vu.delete(1),yield Dd(i)}))}),Yp.apply(this,arguments)}function bv(i,e){return e().catch(t=>cf(i,t,e))}function gl(i){return mg.apply(this,arguments)}function mg(){return mg=(0,je.Z)(function*(i){const e=ci(i),t=iu(e);let o=e.Eu.length>0?e.Eu[e.Eu.length-1].batchId:-1;for(;hb(e);)try{const u=yield Nm(e.localStore,o);if(null===u){0===e.Eu.length&&t.jo();break}o=u.batchId,_g(e,u)}catch(u){yield cf(e,u)}Gm(e)&&$m(e)}),mg.apply(this,arguments)}function hb(i){return Cd(i)&&i.Eu.length<10}function _g(i,e){i.Eu.push(e);const t=iu(i);t.Ko()&&t.ou&&t.uu(e.mutations)}function Gm(i){return Cd(i)&&!iu(i).Uo()&&i.Eu.length>0}function $m(i){iu(i).start()}function wv(i){return gg.apply(this,arguments)}function gg(){return gg=(0,je.Z)(function*(i){iu(i).hu()}),gg.apply(this,arguments)}function yg(i){return df.apply(this,arguments)}function df(){return df=(0,je.Z)(function*(i){const e=iu(i);for(const t of i.Eu)e.uu(t.mutations)}),df.apply(this,arguments)}function Mv(i,e,t){return hf.apply(this,arguments)}function hf(){return hf=(0,je.Z)(function*(i,e,t){const o=i.Eu.shift(),u=Zd.from(o,e,t);yield bv(i,()=>i.remoteSyncer.applySuccessfulWrite(u)),yield gl(i)}),hf.apply(this,arguments)}function Tv(i,e){return Km.apply(this,arguments)}function Km(){return Km=(0,je.Z)(function*(i,e){var t;e&&iu(i).ou&&(yield(t=(0,je.Z)(function*(o,u){if(Jf(g=u.code)&&g!==un.ABORTED){const E=o.Eu.shift();iu(o).Qo(),yield bv(o,()=>o.remoteSyncer.rejectFailedWrite(E.batchId,u)),yield gl(o)}var g}),function(o,u){return t.apply(this,arguments)})(i,e)),Gm(i)&&$m(i)}),Km.apply(this,arguments)}function vg(i,e){return qm.apply(this,arguments)}function qm(){return qm=(0,je.Z)(function*(i,e){const t=ci(i);t.asyncQueue.verifyOperationInProgress(),Wt("RemoteStore","RemoteStore received new credentials");const o=Cd(t);t.vu.add(3),yield Ed(t),o&&t.bu.set("Unknown"),yield t.remoteSyncer.handleCredentialChange(e),t.vu.delete(3),yield Dd(t)}),qm.apply(this,arguments)}function Qm(i,e){return Jm.apply(this,arguments)}function Jm(){return Jm=(0,je.Z)(function*(i,e){const t=ci(i);e?(t.vu.delete(2),yield Dd(t)):e||(t.vu.add(2),yield Ed(t),t.bu.set("Unknown"))}),Jm.apply(this,arguments)}function kc(i){return i.Su||(i.Su=function(e,t,o){const u=ci(e);return u.fu(),new mv(t,u.connection,u.authCredentials,u.appCheckCredentials,u.serializer,o)}(i.datastore,i.asyncQueue,{uo:vv.bind(null,i),ao:db.bind(null,i),nu:Wm.bind(null,i)}),i.Ru.push(function(){var e=(0,je.Z)(function*(t){t?(i.Su.Qo(),Fp(i)?jm(i):i.bu.set("Unknown")):(yield i.Su.stop(),Vm(i))});return function(t){return e.apply(this,arguments)}}())),i.Su}function iu(i){return i.Du||(i.Du=function(e,t,o){const u=ci(e);
1return u.fu(),new nh(t,u.connection,u.authCredentials,u.appCheckCredentials,u.serializer,o)}(i.datastore,i.asyncQueue,{uo:wv.bind(null,i),ao:Tv.bind(null,i),au:yg.bind(null,i),cu:Mv.bind(null,i)}),i.Ru.push(function(){var e=(0,je.Z)(function*(t){t?(i.Du.Qo(),yield gl(i)):(yield i.Du.stop(),i.Eu.length>0&&(Wt("RemoteStore",`Stopping write stream with ${i.Eu.length} pending writes`),i.Eu=[]))});return function(t){return e.apply(this,arguments)}}())),i.Du}class Xm{constructor(e,t,o,u,g){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=o,this.op=u,this.removalCallback=g,this.deferred=new br,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(E=>{})}static createAndSchedule(e,t,o,u,g){const E=Date.now()+o,W=new Xm(e,t,E,u,g);return W.start(o),W}start(e){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new On(un.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then(e=>this.deferred.resolve(e))):Promise.resolve())}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function ac(i,e){if(ti("AsyncQueue",`${e}: ${i}`),ca(i))return new On(un.UNAVAILABLE,`${e}: ${i}`);throw i}class ih{constructor(e){this.comparator=e?(t,o)=>e(t,o)||$n.comparator(t.key,o.key):(t,o)=>$n.comparator(t.key,o.key),this.keyedMap=od(),this.sortedSet=new fs(this.comparator)}static emptySet(e){return new ih(e.comparator)}has(e){return null!=this.keyedMap.get(e)}get(e){return this.keyedMap.get(e)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(e){const t=this.keyedMap.get(e);return t?this.sortedSet.indexOf(t):-1}get size(){return this.sortedSet.size}forEach(e){this.sortedSet.inorderTraversal((t,o)=>(e(t),!1))}add(e){const t=this.delete(e.key);return t.copy(t.keyedMap.insert(e.key,e),t.sortedSet.insert(e,null))}delete(e){const t=this.get(e);return t?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(t)):this}isEqual(e){if(!(e instanceof ih)||this.size!==e.size)return!1;const t=this.sortedSet.getIterator(),o=e.sortedSet.getIterator();for(;t.hasNext();){const u=t.getNext().key,g=o.getNext().key;if(!u.isEqual(g))return!1}return!0}toString(){const e=[];return this.forEach(t=>{e.push(t.toString())}),0===e.length?"DocumentSet ()":"DocumentSet (\n "+e.join(" \n")+"\n)"}copy(e,t){const o=new ih;return o.comparator=this.comparator,o.keyedMap=e,o.sortedSet=t,o}}class bg{constructor(){this.Cu=new fs($n.comparator)}track(e){const t=e.doc.key,o=this.Cu.get(t);o?0!==e.type&&3===o.type?this.Cu=this.Cu.insert(t,e):3===e.type&&1!==o.type?this.Cu=this.Cu.insert(t,{type:o.type,doc:e.doc}):2===e.type&&2===o.type?this.Cu=this.Cu.insert(t,{type:2,doc:e.doc}):2===e.type&&0===o.type?this.Cu=this.Cu.insert(t,{type:0,doc:e.doc}):1===e.type&&0===o.type?this.Cu=this.Cu.remove(t):1===e.type&&2===o.type?this.Cu=this.Cu.insert(t,{type:1,doc:o.doc}):0===e.type&&1===o.type?this.Cu=this.Cu.insert(t,{type:2,doc:e.doc}):qn():this.Cu=this.Cu.insert(t,e)}xu(){const e=[];return this.Cu.inorderTraversal((t,o)=>{e.push(o)}),e}}class Wc{constructor(e,t,o,u,g,E,W,pe,Ce){this.query=e,this.docs=t,this.oldDocs=o,this.docChanges=u,this.mutatedKeys=g,this.fromCache=E,this.syncStateChanged=W,this.excludesMetadataChanges=pe,this.hasCachedResults=Ce}static fromInitialDocuments(e,t,o,u,g){const E=[];return t.forEach(W=>{E.push({type:0,doc:W})}),new Wc(e,t,ih.emptySet(t),E,o,u,!0,!1,g)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(e){if(!(this.fromCache===e.fromCache&&this.hasCachedResults===e.hasCachedResults&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&mu(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;const t=this.docChanges,o=e.docChanges;if(t.length!==o.length)return!1;for(let u=0;u<t.length;u++)if(t[u].type!==o[u].type||!t[u].doc.isEqual(o[u].doc))return!1;return!0}}class lc{constructor(){this.Nu=void 0,this.listeners=[]}}class ff{constructor(){this.queries=new Sl(e=>rd(e),mu),this.onlineState="Unknown",this.ku=new Set}}function Ga(i,e){return Ic.apply(this,arguments)}function Ic(){return Ic=(0,je.Z)(function*(i,e){const t=ci(i),o=e.query;let u=!1,g=t.queries.get(o);if(g||(u=!0,g=new lc),u)try{g.Nu=yield t.onListen(o)}catch(E){const W=ac(E,`Initialization of query '${_u(e.query)}' failed`);return void e.onError(W)}t.queries.set(o,g),g.listeners.push(e),e.Mu(t.onlineState),g.Nu&&e.$u(g.Nu)&&Zc(t)}),Ic.apply(this,arguments)}function rh(i,e){return Vl.apply(this,arguments)}function Vl(){return Vl=(0,je.Z)(function*(i,e){const t=ci(i),o=e.query;let u=!1;const g=t.queries.get(o);if(g){const E=g.listeners.indexOf(e);E>=0&&(g.listeners.splice(E,1),u=0===g.listeners.length)}if(u)return t.queries.delete(o),t.onUnlisten(o)}),Vl.apply(this,arguments)}function e_(i,e){const t=ci(i);let o=!1;for(const u of e){const E=t.queries.get(u.query);if(E){for(const W of E.listeners)W.$u(u)&&(o=!0);E.Nu=u}}o&&Zc(t)}function sh(i,e,t){const o=ci(i),u=o.queries.get(e);if(u)for(const g of u.listeners)g.onError(t);o.queries.delete(e)}
1function Zc(i){i.ku.forEach(e=>{e.next()})}class Gc{constructor(e,t,o){this.query=e,this.Ou=t,this.Fu=!1,this.Bu=null,this.onlineState="Unknown",this.options=o||{}}$u(e){if(!this.options.includeMetadataChanges){const o=[];for(const u of e.docChanges)3!==u.type&&o.push(u);e=new Wc(e.query,e.docs,e.oldDocs,o,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let t=!1;return this.Fu?this.Lu(e)&&(this.Ou.next(e),t=!0):this.qu(e,this.onlineState)&&(this.Uu(e),t=!0),this.Bu=e,t}onError(e){this.Ou.error(e)}Mu(e){this.onlineState=e;let t=!1;return this.Bu&&!this.Fu&&this.qu(this.Bu,e)&&(this.Uu(this.Bu),t=!0),t}qu(e,t){return!e.fromCache||(!this.options.Ku||!("Offline"!==t))&&(!e.docs.isEmpty()||e.hasCachedResults||"Offline"===t)}Lu(e){return e.docChanges.length>0||!!(e.syncStateChanged||this.Bu&&this.Bu.hasPendingWrites!==e.hasPendingWrites)&&!0===this.options.includeMetadataChanges}Uu(e){e=Wc.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.Fu=!0,this.Ou.next(e)}}class oh{constructor(e,t){this.Gu=e,this.byteLength=t}Qu(){return"metadata"in this.Gu}}class Sd{constructor(e){this.serializer=e}rr(e){return Xl(this.serializer,e)}ur(e){return e.metadata.exists?Vh(this.serializer,e.document,!1):ps.newNoDocument(this.rr(e.metadata.name),this.cr(e.metadata.readTime))}cr(e){return na(e)}}class ah{constructor(e,t,o){this.ju=e,this.localStore=t,this.serializer=o,this.queries=[],this.documents=[],this.collectionGroups=new Set,this.progress=kd(e)}zu(e){this.progress.bytesLoaded+=e.byteLength;let t=this.progress.documentsLoaded;if(e.Gu.namedQuery)this.queries.push(e.Gu.namedQuery);else if(e.Gu.documentMetadata){this.documents.push({metadata:e.Gu.documentMetadata}),e.Gu.documentMetadata.exists||++t;const o=zr.fromString(e.Gu.documentMetadata.name);this.collectionGroups.add(o.get(o.length-2))}else e.Gu.document&&(this.documents[this.documents.length-1].document=e.Gu.document,++t);return t!==this.progress.documentsLoaded?(this.progress.documentsLoaded=t,Object.assign({},this.progress)):null}Wu(e){const t=new Map,o=new Sd(this.serializer);for(const u of e)if(u.metadata.queries){const g=o.rr(u.metadata.name);for(const E of u.metadata.queries){const W=(t.get(E)||Hr()).add(g);t.set(E,W)}}return t}complete(){var e=this;return(0,je.Z)(function*(){const t=yield function lg(i,e,t,o){return kp.apply(this,arguments)}(e.localStore,new Sd(e.serializer),e.documents,e.ju.id),o=e.Wu(e.documents);for(const u of e.queries)yield ug(e.localStore,u,o.get(u.name));return e.progress.taskState="Success",{progress:e.progress,Hu:e.collectionGroups,Ju:t}})()}}function kd(i){return{taskState:"Running",documentsLoaded:0,bytesLoaded:0,totalDocuments:i.totalDocuments,totalBytes:i.totalBytes}}class Id{constructor(e){this.key=e}}class xd{constructor(e){this.key=e}}class t_{constructor(e,t){this.query=e,this.Yu=t,this.Xu=null,this.hasCachedResults=!1,this.current=!1,this.Zu=Hr(),this.mutatedKeys=Hr(),this.tc=Ud(e),this.ec=new ih(this.tc)}get nc(){return this.Yu}sc(e,t){const o=t?t.ic:new bg,u=t?t.ec:this.ec;let g=t?t.mutatedKeys:this.mutatedKeys,E=u,W=!1;const pe="F"===this.query.limitType&&u.size===this.query.limit?u.last():null,Ce="L"===this.query.limitType&&u.size===this.query.limit?u.first():null;if(e.inorderTraversal((et,It)=>{const on=u.get(et),An=$u(this.query,It)?It:null,di=!!on&&this.mutatedKeys.has(on.key),Ai=!!An&&(An.hasLocalMutations||this.mutatedKeys.has(An.key)&&An.hasCommittedMutations);let Oi=!1;on&&An?on.data.isEqual(An.data)?di!==Ai&&(o.track({type:3,doc:An}),Oi=!0):this.rc(on,An)||(o.track({type:2,doc:An}),Oi=!0,(pe&&this.tc(An,pe)>0||Ce&&this.tc(An,Ce)<0)&&(W=!0)):!on&&An?(o.track({type:0,doc:An}),Oi=!0):on&&!An&&(o.track({type:1,doc:on}),Oi=!0,(pe||Ce)&&(W=!0)),Oi&&(An?(E=E.add(An),g=Ai?g.add(et):g.delete(et)):(E=E.delete(et),g=g.delete(et)))}),null!==this.query.limit)for(;E.size>this.query.limit;){const et="F"===this.query.limitType?E.last():E.first();E=E.delete(et.key),g=g.delete(et.key),o.track({type:1,doc:et})}return{ec:E,ic:o,zi:W,mutatedKeys:g}}rc(e,t){return e.hasLocalMutations&&t.hasCommittedMutations&&!t.hasLocalMutations}
1applyChanges(e,t,o){const u=this.ec;this.ec=e.ec,this.mutatedKeys=e.mutatedKeys;const g=e.ic.xu();g.sort((Ce,et)=>function(It,on){const An=di=>{switch(di){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return qn()}};return An(It)-An(on)}(Ce.type,et.type)||this.tc(Ce.doc,et.doc)),this.oc(o);const E=t?this.uc():[],W=0===this.Zu.size&&this.current?1:0,pe=W!==this.Xu;return this.Xu=W,0!==g.length||pe?{snapshot:new Wc(this.query,e.ec,u,g,e.mutatedKeys,0===W,pe,!1,!!o&&o.resumeToken.approximateByteSize()>0),cc:E}:{cc:E}}Mu(e){return this.current&&"Offline"===e?(this.current=!1,this.applyChanges({ec:this.ec,ic:new bg,mutatedKeys:this.mutatedKeys,zi:!1},!1)):{cc:[]}}ac(e){return!this.Yu.has(e)&&!!this.ec.has(e)&&!this.ec.get(e).hasLocalMutations}oc(e){e&&(e.addedDocuments.forEach(t=>this.Yu=this.Yu.add(t)),e.modifiedDocuments.forEach(t=>{}),e.removedDocuments.forEach(t=>this.Yu=this.Yu.delete(t)),this.current=e.current)}uc(){if(!this.current)return[];const e=this.Zu;this.Zu=Hr(),this.ec.forEach(o=>{this.ac(o.key)&&(this.Zu=this.Zu.add(o.key))});const t=[];return e.forEach(o=>{this.Zu.has(o)||t.push(new xd(o))}),this.Zu.forEach(o=>{e.has(o)||t.push(new Id(o))}),t}hc(e){this.Yu=e.ir,this.Zu=Hr();const t=this.sc(e.documents);return this.applyChanges(t,!0)}lc(){return Wc.fromInitialDocuments(this.query,this.ec,this.mutatedKeys,0===this.Xu,this.hasCachedResults)}}class wg{constructor(e,t,o){this.query=e,this.targetId=t,this.view=o}}class Mg{constructor(e){this.key=e,this.fc=!1}}class Tg{constructor(e,t,o,u,g,E){this.localStore=e,this.remoteStore=t,this.eventManager=o,this.sharedClientState=u,this.currentUser=g,this.maxConcurrentLimboResolutions=E,this.dc={},this.wc=new Sl(W=>rd(W),mu),this._c=new Map,this.mc=new Set,this.gc=new fs($n.comparator),this.yc=new Map,this.Ic=new wp,this.Tc={},this.Ec=new Map,this.Ac=bd.Mn(),this.onlineState="Unknown",this.vc=void 0}get isPrimaryClient(){return!0===this.vc}}function Dg(i,e){return Bp.apply(this,arguments)}function Bp(){return Bp=(0,je.Z)(function*(i,e){const t=Ng(i);let o,u;const g=t.wc.get(e);if(g)o=g.targetId,t.sharedClientState.addLocalQueryTarget(o),u=g.view.lc();else{const E=yield zc(t.localStore,_o(e)),W=t.sharedClientState.addLocalQueryTarget(E.targetId);o=E.targetId,u=yield Hp(t,e,o,"current"===W,E.resumeToken),t.isPrimaryClient&&lf(t.remoteStore,E)}return u}),Bp.apply(this,arguments)}function Hp(i,e,t,o,u){return Up.apply(this,arguments)}function Up(){return Up=(0,je.Z)(function*(i,e,t,o,u){i.Rc=(It,on,An)=>{return(di=(0,je.Z)(function*(Ai,Oi,xr,As){let Lr=Oi.view.sc(xr);Lr.zi&&(Lr=yield Fm(Ai.localStore,Oi.query,!1).then(({documents:Po})=>Oi.view.sc(Po,Lr)));const pa=As&&As.targetChanges.get(Oi.targetId),Ao=Oi.view.applyChanges(Lr,Ai.isPrimaryClient,pa);return kg(Ai,Oi.targetId,Ao.cc),Ao.snapshot}),function(Ai,Oi,xr,As){return di.apply(this,arguments)})(i,It,on,An);var di};const g=yield Fm(i.localStore,e,!0),E=new t_(e,g.ir),W=E.sc(g.documents),pe=Bc.createSynthesizedTargetChangeForCurrentChange(t,o&&"Offline"!==i.onlineState,u),Ce=E.applyChanges(W,i.isPrimaryClient,pe);kg(i,t,Ce.cc);const et=new wg(e,t,E);return i.wc.set(e,et),i._c.has(t)?i._c.get(t).push(e):i._c.set(t,[e]),Ce.snapshot}),Up.apply(this,arguments)}function Eg(i,e){return n_.apply(this,arguments)}function n_(){return n_=(0,je.Z)(function*(i,e){const t=ci(i),o=t.wc.get(e),u=t._c.get(o.targetId);if(u.length>1)return t._c.set(o.targetId,u.filter(g=>!mu(g,e))),void t.wc.delete(e);t.isPrimaryClient?(t.sharedClientState.removeLocalQueryTarget(o.targetId),t.sharedClientState.isActiveQueryTarget(o.targetId)||(yield Td(t.localStore,o.targetId,!1).then(()=>{t.sharedClientState.clearQueryState(o.targetId),uf(t.remoteStore,o.targetId),lh(t,o.targetId)}).catch(Zn))):(lh(t,o.targetId),yield Td(t.localStore,o.targetId,!0))}),n_.apply(this,arguments)}function i_(){return i_=(0,je.Z)(function*(i,e,t){const o=gf(i);try{const u=yield function(g,E){const W=ci(g),pe=to.now(),Ce=E.reduce((on,An)=>on.add(An.key),Hr());let et,It;return W.persistence.runTransaction("Locally write mutations","readwrite",on=>{let An=Ua(),di=Hr();return W.Zi.getEntries(on,Ce).next(Ai=>
1{An=Ai,An.forEach((Oi,xr)=>{xr.isValidDocument()||(di=di.add(Oi))})}).next(()=>W.localDocuments.getOverlayedDocuments(on,An)).next(Ai=>{et=Ai;const Oi=[];for(const xr of E){const As=qf(xr,et.get(xr.key).overlayedDocument);null!=As&&Oi.push(new Fu(xr.key,As,$o(As.value.mapValue),no.exists(!0)))}return W.mutationQueue.addMutationBatch(on,pe,Oi,E)}).next(Ai=>{It=Ai;const Oi=Ai.applyToLocalDocumentSet(et,di);return W.documentOverlayCache.saveOverlays(on,Ai.batchId,Oi)})}).then(()=>({batchId:It.batchId,changes:jd(et)}))}(o.localStore,e);o.sharedClientState.addPendingMutation(u.batchId),function(g,E,W){let pe=g.Tc[g.currentUser.toKey()];pe||(pe=new fs(cr)),pe=pe.insert(E,W),g.Tc[g.currentUser.toKey()]=pe}(o,u.batchId,t),yield uc(o,u.changes),yield gl(o.remoteStore)}catch(u){const g=ac(u,"Failed to persist write");t.reject(g)}}),i_.apply(this,arguments)}function r_(i,e){return jp.apply(this,arguments)}function jp(){return jp=(0,je.Z)(function*(i,e){const t=ci(i);try{const o=yield Rm(t.localStore,e);e.targetChanges.forEach((u,g)=>{const E=t.yc.get(g);E&&(yi(u.addedDocuments.size+u.modifiedDocuments.size+u.removedDocuments.size<=1),u.addedDocuments.size>0?E.fc=!0:u.modifiedDocuments.size>0?yi(E.fc):u.removedDocuments.size>0&&(yi(E.fc),E.fc=!1))}),yield uc(t,o,e)}catch(o){yield Zn(o)}}),jp.apply(this,arguments)}function Sg(i,e,t){const o=ci(i);if(o.isPrimaryClient&&0===t||!o.isPrimaryClient&&1===t){const u=[];o.wc.forEach((g,E)=>{const W=E.view.Mu(e);W.snapshot&&u.push(W.snapshot)}),function(g,E){const W=ci(g);W.onlineState=E;let pe=!1;W.queries.forEach((Ce,et)=>{for(const It of et.listeners)It.Mu(E)&&(pe=!0)}),pe&&Zc(W)}(o.eventManager,e),u.length&&o.dc.nu(u),o.onlineState=e,o.isPrimaryClient&&o.sharedClientState.setOnlineState(e)}}function Dv(i,e,t){return Vp.apply(this,arguments)}function Vp(){return Vp=(0,je.Z)(function*(i,e,t){const o=ci(i);o.sharedClientState.updateQueryState(e,"rejected",t);const u=o.yc.get(e),g=u&&u.key;if(g){let E=new fs($n.comparator);E=E.insert(g,ps.newNoDocument(g,Bi.min()));const W=Hr().add(g),pe=new Mc(Bi.min(),new Map,new fs(cr),E,W);yield r_(o,pe),o.gc=o.gc.remove(g),o.yc.delete(e),a_(o)}else yield Td(o.localStore,e,!1).then(()=>lh(o,e,t)).catch(Zn)}),Vp.apply(this,arguments)}function Ev(i,e){return zp.apply(this,arguments)}function zp(){return zp=(0,je.Z)(function*(i,e){const t=ci(i),o=e.batch.batchId;try{const u=yield cv(t.localStore,e);mf(t,o,null),pf(t,o),t.sharedClientState.updateMutationState(o,"acknowledged"),yield uc(t,u)}catch(u){yield Zn(u)}}),zp.apply(this,arguments)}function Cv(i,e,t){return s_.apply(this,arguments)}function s_(){return s_=(0,je.Z)(function*(i,e,t){const o=ci(i);try{const u=yield function(g,E){const W=ci(g);return W.persistence.runTransaction("Reject batch","readwrite-primary",pe=>{let Ce;return W.mutationQueue.lookupMutationBatch(pe,E).next(et=>(yi(null!==et),Ce=et.keys(),W.mutationQueue.removeMutationBatch(pe,et))).next(()=>W.mutationQueue.performConsistencyCheck(pe)).next(()=>W.documentOverlayCache.removeOverlaysForBatchId(pe,Ce,E)).next(()=>W.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(pe,Ce)).next(()=>W.localDocuments.getDocuments(pe,Ce))})}(o.localStore,e);mf(o,e,t),pf(o,e),o.sharedClientState.updateMutationState(e,"rejected",t),yield uc(o,u)}catch(u){yield Zn(u)}}),s_.apply(this,arguments)}function o_(){return o_=(0,je.Z)(function*(i,e){const t=ci(i);Cd(t.remoteStore)||Wt("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled.");try{const o=yield function(g){const E=ci(g);return E.persistence.runTransaction("Get highest unacknowledged batch id","readonly",W=>E.mutationQueue.getHighestUnacknowledgedBatchId(W))}(t.localStore);if(-1===o)return void e.resolve();const u=t.Ec.get(o)||[];u.push(e),t.Ec.set(o,u)}catch(o){const u=ac(o,"Initialization of waitForPendingWrites() operation failed");e.reject(u)}}),o_.apply(this,arguments)}function pf(i,e){(i.Ec.get(e)||[]).forEach(t=>{t.resolve()}),i.Ec.delete(e)}function mf(i,e,t){const o=ci(i);let u=o.Tc[o.currentUser.toKey()];if(u){const g=u.get(e);g&&(t?g.reject(t):g.resolve(),u=u.remove(e)),o.Tc[o.currentUser.toKey()]=u}}
1function lh(i,e,t=null){i.sharedClientState.removeLocalQueryTarget(e);for(const o of i._c.get(e))i.wc.delete(o),t&&i.dc.Pc(o,t);i._c.delete(e),i.isPrimaryClient&&i.Ic.Is(e).forEach(o=>{i.Ic.containsKey(o)||Sv(i,o)})}function Sv(i,e){i.mc.delete(e.path.canonicalString());const t=i.gc.get(e);null!==t&&(uf(i.remoteStore,t),i.gc=i.gc.remove(e),i.yc.delete(t),a_(i))}function kg(i,e,t){for(const o of t)o instanceof Id?(i.Ic.addReference(o.key,e),pb(i,o)):o instanceof xd?(Wt("SyncEngine","Document no longer in limbo: "+o.key),i.Ic.removeReference(o.key,e),i.Ic.containsKey(o.key)||Sv(i,o.key)):qn()}function pb(i,e){const t=e.key,o=t.path.canonicalString();i.gc.get(t)||i.mc.has(o)||(Wt("SyncEngine","New document in limbo: "+t),i.mc.add(o),a_(i))}function a_(i){for(;i.mc.size>0&&i.gc.size<i.maxConcurrentLimboResolutions;){const e=i.mc.values().next().value;i.mc.delete(e);const t=new $n(zr.fromString(e)),o=i.Ac.next();i.yc.set(o,new Mg(t)),i.gc=i.gc.insert(t,o),lf(i.remoteStore,new xa(_o(_l(t.path)),o,"TargetPurposeLimboResolution",Uo.ct))}}function uc(i,e,t){return Ig.apply(this,arguments)}function Ig(){return Ig=(0,je.Z)(function*(i,e,t){const o=ci(i),u=[],g=[],E=[];var W;o.wc.isEmpty()||(o.wc.forEach((W,pe)=>{E.push(o.Rc(pe,e,t).then(Ce=>{if((Ce||t)&&o.isPrimaryClient&&o.sharedClientState.updateQueryState(pe.targetId,(null==Ce?void 0:Ce.fromCache)?"not-current":"current"),Ce){u.push(Ce);const et=Ep.Li(pe.targetId,Ce);g.push(et)}}))}),yield Promise.all(E),o.dc.nu(u),yield(W=(0,je.Z)(function*(pe,Ce){const et=ci(pe);try{yield et.persistence.runTransaction("notifyLocalViewChanges","readwrite",It=>nn.forEach(Ce,on=>nn.forEach(on.Fi,An=>et.persistence.referenceDelegate.addReference(It,on.targetId,An)).next(()=>nn.forEach(on.Bi,An=>et.persistence.referenceDelegate.removeReference(It,on.targetId,An)))))}catch(It){if(!ca(It))throw It;Wt("LocalStore","Failed to update sequence numbers: "+It)}for(const It of Ce){const on=It.targetId;if(!It.fromCache){const An=et.Ji.get(on),Ai=An.withLastLimboFreeSnapshotVersion(An.snapshotVersion);et.Ji=et.Ji.insert(on,Ai)}}}),function(pe,Ce){return W.apply(this,arguments)})(o.localStore,g))}),Ig.apply(this,arguments)}function kv(i,e){return $c.apply(this,arguments)}function $c(){return $c=(0,je.Z)(function*(i,e){const t=ci(i);if(!t.currentUser.isEqual(e)){Wt("SyncEngine","User change. New user:",e.toKey());const o=yield Cp(t.localStore,e);t.currentUser=e,(u=t).Ec.forEach(E=>{E.forEach(W=>{W.reject(new On(un.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),u.Ec.clear(),t.sharedClientState.handleUserChange(e,o.removedBatchIds,o.addedBatchIds),yield uc(t,o.er)}var u}),$c.apply(this,arguments)}function Iv(i,e){const t=ci(i),o=t.yc.get(e);if(o&&o.fc)return Hr().add(o.key);{let u=Hr();const g=t._c.get(e);if(!g)return u;for(const E of g){const W=t.wc.get(E);u=u.unionWith(W.view.nc)}return u}}function xg(i,e){return l_.apply(this,arguments)}function l_(){return l_=(0,je.Z)(function*(i,e){const t=ci(i),o=yield Fm(t.localStore,e.query,!0),u=e.view.hc(o);return t.isPrimaryClient&&kg(t,e.targetId,u.cc),u}),l_.apply(this,arguments)}function Lg(i,e){return uh.apply(this,arguments)}function uh(){return uh=(0,je.Z)(function*(i,e){const t=ci(i);return dv(t.localStore,e).then(o=>uc(t,o))}),uh.apply(this,arguments)}function xv(i,e,t,o){return Wp.apply(this,arguments)}function Wp(){return Wp=(0,je.Z)(function*(i,e,t,o){const u=ci(i),g=yield function(E,W){const pe=ci(E),Ce=ci(pe.mutationQueue);return pe.persistence.runTransaction("Lookup mutation documents","readonly",et=>Ce.Sn(et,W).next(It=>It?pe.localDocuments.getDocuments(et,It):nn.resolve(null)))}(u.localStore,e);var W;null!==g?("pending"===t?yield gl(u.remoteStore):"acknowledged"===t||"rejected"===t?(mf(u,e,o||null),pf(u,e),W=e,ci(ci(u.localStore).mutationQueue).Cn(W)):qn(),yield uc(u,g)):Wt("SyncEngine","Cannot apply mutation batch with id: "+e)}),Wp.apply(this,arguments)}function u_(){return u_=(0,je.Z)(function*(i,e){const t=ci(i);if(Ng(t),gf(t),!0===e&&!0!==t.vc){const o=t.sharedClientState.getAllActiveQueryTargets(),u=yield Ag(t,o.toArray());t.vc=!0,yield Qm(t.remoteStore,!0);for(const g of u)lf(t.remoteStore,g)}else if(!1===e&&!1!==t.vc){const o=[];let u=Promise.resolve();
1t._c.forEach((g,E)=>{t.sharedClientState.isLocalQueryTarget(E)?o.push(E):u=u.then(()=>(lh(t,E),Td(t.localStore,E,!0))),uf(t.remoteStore,E)}),yield u,yield Ag(t,o),function(g){const E=ci(g);E.yc.forEach((W,pe)=>{uf(E.remoteStore,pe)}),E.Ic.Ts(),E.yc=new Map,E.gc=new fs($n.comparator)}(t),t.vc=!1,yield Qm(t.remoteStore,!1)}}),u_.apply(this,arguments)}function Ag(i,e,t){return c_.apply(this,arguments)}function c_(){return c_=(0,je.Z)(function*(i,e,t){const o=ci(i),u=[],g=[];for(const E of e){let W;const pe=o._c.get(E);if(pe&&0!==pe.length){W=yield zc(o.localStore,_o(pe[0]));for(const Ce of pe){const et=o.wc.get(Ce),It=yield xg(o,et);It.snapshot&&g.push(It.snapshot)}}else{const Ce=yield Sp(o.localStore,E);W=yield zc(o.localStore,Ce),yield Hp(o,Pg(Ce),E,!1,W.resumeToken)}u.push(W)}return o.dc.nu(g),u}),c_.apply(this,arguments)}function Pg(i){return Au(i.path,i.collectionGroup,i.orderBy,i.filters,i.limit,"F",i.startAt,i.endAt)}function Og(i){const e=ci(i);return ci(ci(e.localStore).persistence).$i()}function Av(i,e,t,o){return Zp.apply(this,arguments)}function Zp(){return Zp=(0,je.Z)(function*(i,e,t,o){const u=ci(i);if(u.vc)return void Wt("SyncEngine","Ignoring unexpected query state notification.");const g=u._c.get(e);if(g&&g.length>0)switch(t){case"current":case"not-current":{const E=yield dv(u.localStore,sd(g[0])),W=Mc.createSynthesizedRemoteEventForCurrentChange(e,"current"===t,ve.EMPTY_BYTE_STRING);yield uc(u,E,W);break}case"rejected":yield Td(u.localStore,e,!0),lh(u,e,o);break;default:qn()}}),Zp.apply(this,arguments)}function Rg(i,e,t){return _f.apply(this,arguments)}function _f(){return _f=(0,je.Z)(function*(i,e,t){const o=Ng(i);if(o.vc){for(const u of e){if(o._c.has(u)){Wt("SyncEngine","Adding an already active target "+u);continue}const g=yield Sp(o.localStore,u),E=yield zc(o.localStore,g);yield Hp(o,Pg(g),E.targetId,!1,E.resumeToken),lf(o.remoteStore,E)}for(const u of t)o._c.has(u)&&(yield Td(o.localStore,u,!1).then(()=>{uf(o.remoteStore,u),lh(o,u)}).catch(Zn))}}),_f.apply(this,arguments)}function Ng(i){const e=ci(i);return e.remoteStore.remoteSyncer.applyRemoteEvent=r_.bind(null,e),e.remoteStore.remoteSyncer.getRemoteKeysForTarget=Iv.bind(null,e),e.remoteStore.remoteSyncer.rejectListen=Dv.bind(null,e),e.dc.nu=e_.bind(null,e.eventManager),e.dc.Pc=sh.bind(null,e.eventManager),e}function gf(i){const e=ci(i);return e.remoteStore.remoteSyncer.applySuccessfulWrite=Ev.bind(null,e),e.remoteStore.remoteSyncer.rejectFailedWrite=Cv.bind(null,e),e}class Gp{constructor(){this.synchronizeTabs=!1}initialize(e){var t=this;return(0,je.Z)(function*(){t.serializer=sc(e.databaseInfo.databaseId),t.sharedClientState=t.createSharedClientState(e),t.persistence=t.createPersistence(e),yield t.persistence.start(),t.localStore=t.createLocalStore(e),t.gcScheduler=t.createGarbageCollectionScheduler(e,t.localStore),t.indexBackfillerScheduler=t.createIndexBackfillerScheduler(e,t.localStore)})()}createGarbageCollectionScheduler(e,t){return null}createIndexBackfillerScheduler(e,t){return null}createLocalStore(e){return rg(this.persistence,new ig,e.initialUser,this.serializer)}createPersistence(e){return new Mp(Tp.zs,this.serializer)}createSharedClientState(e){return new th}terminate(){var e=this;return(0,je.Z)(function*(){e.gcScheduler&&e.gcScheduler.stop(),yield e.sharedClientState.shutdown(),yield e.persistence.shutdown()})()}}class $p extends Gp{constructor(e,t,o){super(),this.Vc=e,this.cacheSizeBytes=t,this.forceOwnership=o,this.synchronizeTabs=!1}initialize(e){var t=()=>super.initialize,o=this;return(0,je.Z)(function*(){yield t().call(o,e),yield o.Vc.initialize(o,e),yield gf(o.Vc.syncEngine),yield gl(o.Vc.remoteStore),yield o.persistence.Ii(()=>(o.gcScheduler&&!o.gcScheduler.started&&o.gcScheduler.start(),o.indexBackfillerScheduler&&!o.indexBackfillerScheduler.started&&o.indexBackfillerScheduler.start(),Promise.resolve()))})()}createLocalStore(e){return rg(this.persistence,new ig,e.initialUser,this.serializer)}createGarbageCollectionScheduler(e,t){return new Z_(this.persistence.referenceDelegate.garbageCollector,e.asyncQueue,t)}createIndexBackfillerScheduler(e,t){const o=new Mo(t,this.persistence);return new ju(e.asyncQueue,o)}createPersistence(e){const t=ng(e.databaseInfo.databaseId,e.databaseInfo.persistenceKey),o=void 0!==this.cacheSizeBytes?Vo.withCacheSize(this.cacheSizeBytes):Vo.DEFAULT;return new Jh(this.synchronizeTabs,t,e.clientId,o,e.asyncQueue,dg(),af(),this.serializer,this.sharedCl
1ientState,!!this.forceOwnership)}createSharedClientState(e){return new th}}class Kp extends $p{constructor(e,t){super(e,t,!1),this.Vc=e,this.cacheSizeBytes=t,this.synchronizeTabs=!0}initialize(e){var t=()=>super.initialize,o=this;return(0,je.Z)(function*(){yield t().call(o,e);const u=o.Vc.syncEngine;o.sharedClientState instanceof rf&&(o.sharedClientState.syncEngine={jr:xv.bind(null,u),zr:Av.bind(null,u),Wr:Rg.bind(null,u),$i:Og.bind(null,u),Qr:Lg.bind(null,u)},yield o.sharedClientState.start()),yield o.persistence.Ii(function(){var g=(0,je.Z)(function*(E){yield function Lv(i,e){return u_.apply(this,arguments)}(o.Vc.syncEngine,E),o.gcScheduler&&(E&&!o.gcScheduler.started?o.gcScheduler.start():E||o.gcScheduler.stop()),o.indexBackfillerScheduler&&(E&&!o.indexBackfillerScheduler.started?o.indexBackfillerScheduler.start():E||o.indexBackfillerScheduler.stop())});return function(E){return g.apply(this,arguments)}}())})()}createSharedClientState(e){const t=dg();if(!rf.D(t))throw new On(un.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");const o=ng(e.databaseInfo.databaseId,e.databaseInfo.persistenceKey);return new rf(t,e.asyncQueue,o,e.clientId,e.initialUser)}}class Kc{initialize(e,t){var o=this;return(0,je.Z)(function*(){o.localStore||(o.localStore=e.localStore,o.sharedClientState=e.sharedClientState,o.datastore=o.createDatastore(t),o.remoteStore=o.createRemoteStore(t),o.eventManager=o.createEventManager(t),o.syncEngine=o.createSyncEngine(t,!e.synchronizeTabs),o.sharedClientState.onlineStateHandler=u=>Sg(o.syncEngine,u,1),o.remoteStore.remoteSyncer.handleCredentialChange=kv.bind(null,o.syncEngine),yield Qm(o.remoteStore,o.syncEngine.isPrimaryClient))})()}createEventManager(e){return new ff}createDatastore(e){const t=sc(e.databaseInfo.databaseId),o=new pv(e.databaseInfo);return new _v(e.authCredentials,e.appCheckCredentials,o,t)}createRemoteStore(e){return t=this.localStore,o=this.datastore,u=e.asyncQueue,g=W=>Sg(this.syncEngine,W,0),E=Ap.D()?new Ap:new hv,new oc(t,o,u,g,E);var t,o,u,g,E}createSyncEngine(e,t){return function(o,u,g,E,W,pe,Ce){const et=new Tg(o,u,g,E,W,pe);return Ce&&(et.vc=!0),et}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,t)}terminate(){return(e=(0,je.Z)(function*(t){const o=ci(t);Wt("RemoteStore","RemoteStore shutting down."),o.vu.add(5),yield Ed(o),o.Pu.shutdown(),o.bu.set("Unknown")}),function(t){return e.apply(this,arguments)})(this.remoteStore);var e}}function Fg(i,e=10240){let t=0;return{read:()=>(0,je.Z)(function*(){if(t<i.byteLength){const o={value:i.slice(t,t+e),done:!1};return t+=e,o}return{done:!0}})(),cancel:()=>(0,je.Z)(function*(){})(),releaseLock(){},closed:Promise.resolve()}}class Ld{constructor(e){this.observer=e,this.muted=!1}next(e){this.observer.next&&this.Sc(this.observer.next,e)}error(e){this.observer.error?this.Sc(this.observer.error,e):ti("Uncaught Error in snapshot listener:",e.toString())}Dc(){this.muted=!0}Sc(e,t){this.muted||setTimeout(()=>{this.muted||e(t)},0)}}class qp{constructor(e,t){this.Cc=e,this.serializer=t,this.metadata=new br,this.buffer=new Uint8Array,this.xc=new TextDecoder("utf-8"),this.Nc().then(o=>{o&&o.Qu()?this.metadata.resolve(o.Gu.metadata):this.metadata.reject(new Error(`The first element of the bundle is not a metadata, it is\n ${JSON.stringify(null==o?void 0:o.Gu)}`))},o=>this.metadata.reject(o))}close(){return this.Cc.cancel()}getMetadata(){var e=this;return(0,je.Z)(function*(){return e.metadata.promise})()}bc(){var e=this;return(0,je.Z)(function*(){return yield e.getMetadata(),e.Nc()})()}Nc(){var e=this;return(0,je.Z)(function*(){const t=yield e.kc();if(null===t)return null;const o=e.xc.decode(t),u=Number(o);isNaN(u)&&e.Mc(`length string (${o}) is not valid number`);const g=yield e.$c(u);return new oh(JSON.parse(g),t.length+u)})()}Oc(){return this.buffer.findIndex(e=>e==="{".charCodeAt(0))}kc(){var e=this;return(0,je.Z)(function*(){for(;e.Oc()<0&&!(yield e.Fc()););if(0===e.buffer.length)return null;const t=e.Oc();t<0&&e.Mc("Reached the end of bundle when a length string is expected.");const o=e.buffer.slice(0,t);return e.buffer=e.buffer.slice(t),o})()}$c(e){var t=this;return(0,je.Z)(function*(){for(;t.buffer.length<e;)(yield t.Fc())&&t.Mc("Reached the end of bundle when more is expected.");const o=t.xc.decode(t.buffer.slice(0,e));return t.buffer=t.buffer.slice(e),o})()}Mc(e){throw this.Cc.cancel(),new Error(`Invalid bundle format: ${e}`)}Fc(){var e=this;return(0,je.Z)(function*(){const t=yield e.Cc.read();if(!t.done){const o=new Uint8Array(e.buffer.length+t.value.length);o.set(e.buffer),o.set(t.value,e.buffer.length),e.buffer=o}return t.done})()}}class d_{constructor(e){this.datastore=e,this.readVersions=new Map,this.mutations=[],this.committed=!1,this.lastWriteError=null,this.writtenDocs=new Set}lookup(e){var t=this;return(0,je.Z)(function*(){if(t.ensureCommitNotCalled(),t.mutations.length>0)throw new On(un.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");const o=yield(u=(0,je.Z)(function*(g,E){const W=ci(g),pe=dd(W.serializer)+"/documents",Ce={documents:E.map(An=>$d(W.serializer,An))},et=yield W.vo("BatchGetDocuments",pe,Ce,E.length),It=new Map;et.forEach(An=>{const di=function cp(i,e){return"found"in e?function(t,o){yi(!!o.found);const u=Xl(t,o.found.name),g=na(o.found.updateTime),E=o.found.createTime?na(o.found.createTime):Bi.min(),W=new vs({mapValue:{fields:o.found.fields}});return ps.newFoundDocument(u,g,E,W)}(i,e):"missing"in e?function(t,o){yi(!!o.missing),yi(!!o.readTime);const u=Xl(t,o.missing),g=na(o.readTime);return ps.newNoDocument(u,g)}(i,e):qn()}(W.serializer,An);It.set(di.key.toString(),di)});const on=[];
1return E.forEach(An=>{const di=It.get(An.toString());yi(!!di),on.push(di)}),on}),function(g,E){return u.apply(this,arguments)})(t.datastore,e);var u;return o.forEach(u=>t.recordVersion(u)),o})()}set(e,t){this.write(t.toMutation(e,this.precondition(e))),this.writtenDocs.add(e.toString())}update(e,t){try{this.write(t.toMutation(e,this.preconditionForUpdate(e)))}catch(o){this.lastWriteError=o}this.writtenDocs.add(e.toString())}delete(e){this.write(new Qu(e,this.precondition(e))),this.writtenDocs.add(e.toString())}commit(){var e=this;return(0,je.Z)(function*(){if(e.ensureCommitNotCalled(),e.lastWriteError)throw e.lastWriteError;const t=e.readVersions;var o;e.mutations.forEach(o=>{t.delete(o.key.toString())}),t.forEach((o,u)=>{const g=$n.fromPath(u);e.mutations.push(new Rh(g,e.precondition(g)))}),yield(o=(0,je.Z)(function*(u,g){const E=ci(u),W=dd(E.serializer)+"/documents",pe={writes:g.map(Ce=>hd(E.serializer,Ce))};yield E.Io("Commit",W,pe)}),function(u,g){return o.apply(this,arguments)})(e.datastore,e.mutations),e.committed=!0})()}recordVersion(e){let t;if(e.isFoundDocument())t=e.version;else{if(!e.isNoDocument())throw qn();t=Bi.min()}const o=this.readVersions.get(e.key.toString());if(o){if(!t.isEqual(o))throw new On(un.ABORTED,"Document version changed between two reads.")}else this.readVersions.set(e.key.toString(),t)}precondition(e){const t=this.readVersions.get(e.toString());return!this.writtenDocs.has(e.toString())&&t?t.isEqual(Bi.min())?no.exists(!1):no.updateTime(t):no.none()}preconditionForUpdate(e){const t=this.readVersions.get(e.toString());if(!this.writtenDocs.has(e.toString())&&t){if(t.isEqual(Bi.min()))throw new On(un.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return no.updateTime(t)}return no.exists(!0)}write(e){this.ensureCommitNotCalled(),this.mutations.push(e)}ensureCommitNotCalled(){}}class mb{constructor(e,t,o,u,g){this.asyncQueue=e,this.datastore=t,this.options=o,this.updateFunction=u,this.deferred=g,this.Bc=o.maxAttempts,this.qo=new Op(this.asyncQueue,"transaction_retry")}run(){this.Bc-=1,this.Lc()}Lc(){var e=this;this.qo.No((0,je.Z)(function*(){const t=new d_(e.datastore),o=e.qc(t);o&&o.then(u=>{e.asyncQueue.enqueueAndForget(()=>t.commit().then(()=>{e.deferred.resolve(u)}).catch(g=>{e.Uc(g)}))}).catch(u=>{e.Uc(u)})}))}qc(e){try{const t=this.updateFunction(e);return!sa(t)&&t.catch&&t.then?t:(this.deferred.reject(Error("Transaction callback must return a Promise")),null)}catch(t){return this.deferred.reject(t),null}}Uc(e){this.Bc>0&&this.Kc(e)?(this.Bc-=1,this.asyncQueue.enqueueAndForget(()=>(this.Lc(),Promise.resolve()))):this.deferred.reject(e)}Kc(e){if("FirebaseError"===e.name){const t=e.code;return"aborted"===t||"failed-precondition"===t||"already-exists"===t||!Jf(t)}return!1}}class Ov{constructor(e,t,o,u){var g=this;this.authCredentials=e,this.appCheckCredentials=t,this.asyncQueue=o,this.databaseInfo=u,this.user=xe.UNAUTHENTICATED,this.clientId=hs.A(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(o,function(){var E=(0,je.Z)(function*(W){Wt("FirestoreClient","Received user=",W.uid),yield g.authCredentialListener(W),g.user=W});return function(W){return E.apply(this,arguments)}}()),this.appCheckCredentials.start(o,E=>(Wt("FirestoreClient","Received new app check token=",E),this.appCheckCredentialListener(E,this.user)))}getConfiguration(){var e=this;return(0,je.Z)(function*(){return{asyncQueue:e.asyncQueue,databaseInfo:e.databaseInfo,clientId:e.clientId,authCredentials:e.authCredentials,appCheckCredentials:e.appCheckCredentials,initialUser:e.user,maxConcurrentLimboResolutions:100}})()}setCredentialChangeListener(e){this.authCredentialListener=e}setAppCheckTokenChangeListener(e){this.appCheckCredentialListener=e}verifyNotTerminated(){if(this.asyncQueue.isShuttingDown)throw new On(un.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){var e=this;this.asyncQueue.enterRestrictedMode();const t=new br;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((0,je.Z)(function*(){try{e._onlineComponents&&(yield e._onlineComponents.terminate()),e._offlineComponents&&(yield e._offlineComponents.terminate()),e.authCredentials.shutdown(),e.appCheckCredentials.shutdown(),t.resolve()}catch(o){const u=ac(o,"Failed to shutdown persistence");t.reject(u)}})),t.promise}}function Ad(i,e){return ch.apply(this,arguments)}function ch(){return ch=(0,je.Z)(function*(i,e){i.asyncQueue.verifyOperationInProgress(),Wt("FirestoreClient","Initializing OfflineComponentProvider");const t=yield i.getConfiguration();yield e.initialize(t);let o=t.initialUser;i.setCredentialChangeListener(function(){var u=(0,je.Z)(function*(g){o.isEqual(g)||(yield Cp(e.localStore,g),o=g)});return function(g){return u.apply(this,arguments)}}()),e.persistence.setDatabaseDeletedListener(()=>i.terminate()),i._offlineComponents=e}),ch.apply(this,arguments)}function vf(i,e){return Qp.apply(this,arguments)}function Qp(){return Qp=(0,je.Z)(function*(i,e){i.asyncQueue.verifyOperationInProgress();const t=yield Xp(i);Wt("FirestoreClient","Initializing OnlineComponentProvider");const o=yield i.getConfiguration();yield e.initialize(t,o),i.setCredentialChangeListener(u=>vg(e.remoteStore,u)),i.setAppCheckTokenChangeListener((u,g)=>vg(e.remoteStore,g)),i._onlineComponents=e}),Qp.apply(this,arguments)}function Jp(i){return"FirebaseError"===i.name?i.code===un.FAILED_PRECONDITION||i.code===un.UNIMPLEMENT
1ED:!("undefined"!=typeof DOMException&&i instanceof DOMException)||22===i.code||20===i.code||11===i.code}function Xp(i){return em.apply(this,arguments)}function em(){return em=(0,je.Z)(function*(i){if(!i._offlineComponents)if(i._uninitializedComponentsProvider){Wt("FirestoreClient","Using user provided OfflineComponentProvider");try{yield Ad(i,i._uninitializedComponentsProvider._offline)}catch(e){const t=e;if(!Jp(t))throw t;Zi("Error using user provided cache. Falling back to memory cache: "+t),yield Ad(i,new Gp)}}else Wt("FirestoreClient","Using default OfflineComponentProvider"),yield Ad(i,new Gp);return i._offlineComponents}),em.apply(this,arguments)}function dh(i){return bf.apply(this,arguments)}function bf(){return bf=(0,je.Z)(function*(i){return i._onlineComponents||(i._uninitializedComponentsProvider?(Wt("FirestoreClient","Using user provided OnlineComponentProvider"),yield vf(i,i._uninitializedComponentsProvider._online)):(Wt("FirestoreClient","Using default OnlineComponentProvider"),yield vf(i,new Kc))),i._onlineComponents}),bf.apply(this,arguments)}function Yg(i){return Xp(i).then(e=>e.persistence)}function wf(i){return Xp(i).then(e=>e.localStore)}function h_(i){return dh(i).then(e=>e.remoteStore)}function Mf(i){return dh(i).then(e=>e.syncEngine)}function hh(i){return tm.apply(this,arguments)}function tm(){return tm=(0,je.Z)(function*(i){const e=yield dh(i),t=e.eventManager;return t.onListen=Dg.bind(null,e.syncEngine),t.onUnlisten=Eg.bind(null,e.syncEngine),t}),tm.apply(this,arguments)}function m_(i,e,t={}){const o=new br;return i.asyncQueue.enqueueAndForget((0,je.Z)(function*(){return function(u,g,E,W,pe){const Ce=new Ld({next:It=>{g.enqueueAndForget(()=>rh(u,et));const on=It.docs.has(E);!on&&It.fromCache?pe.reject(new On(un.UNAVAILABLE,"Failed to get document because the client is offline.")):on&&It.fromCache&&W&&"server"===W.source?pe.reject(new On(un.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):pe.resolve(It)},error:It=>pe.reject(It)}),et=new Gc(_l(E.path),Ce,{includeMetadataChanges:!0,Ku:!0});return Ga(u,et)}(yield hh(i),i.asyncQueue,e,t,o)})),o.promise}function __(i,e,t={}){const o=new br;return i.asyncQueue.enqueueAndForget((0,je.Z)(function*(){return function(u,g,E,W,pe){const Ce=new Ld({next:It=>{g.enqueueAndForget(()=>rh(u,et)),It.fromCache&&"server"===W.source?pe.reject(new On(un.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):pe.resolve(It)},error:It=>pe.reject(It)}),et=new Gc(E,Ce,{includeMetadataChanges:!0,Ku:!0});return Ga(u,et)}(yield hh(i),i.asyncQueue,e,t,o)})),o.promise}function g_(i){const e={};return void 0!==i.timeoutSeconds&&(e.timeoutSeconds=i.timeoutSeconds),e}const Rv=new Map;function y_(i,e,t){if(!t)throw new On(un.INVALID_ARGUMENT,`Function ${i}() cannot be called with an empty ${e}.`)}function Zg(i,e,t,o){if(!0===e&&!0===o)throw new On(un.INVALID_ARGUMENT,`${i} and ${t} cannot be used together.`)}function v_(i){if(!$n.isDocumentKey(i))throw new On(un.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${i} has ${i.length}.`)}function Gg(i){if($n.isDocumentKey(i))throw new On(un.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${i} has ${i.length}.`)}function fa(i){if(void 0===i)return"undefined";if(null===i)return"null";if("string"==typeof i)return i.length>20&&(i=`${i.substring(0,20)}...`),JSON.stringify(i);if("number"==typeof i||"boolean"==typeof i)return""+i;if("object"==typeof i){if(i instanceof Array)return"an array";{const e=(t=i).constructor?t.constructor.name:null;return e?`a custom ${e} object`:"an object"}}var t;return"function"==typeof i?"a function":qn()}function Ts(i,e){if("_delegate"in i&&(i=i._delegate),!(i instanceof e)){if(e.name===i.constructor.name)throw new On(un.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const t=fa(i);throw new On(un.INVALID_ARGUMENT,`Expected type '${e.name}', but it was: ${t}`)}}return i}function $g(i,e){if(e<=0)throw new On(un.INVALID_ARGUMENT,`Function ${i}() requires a positive number, but it was: ${e}.`)}class Kg{constructor(e){var t,o;if(void 0===e.host){if(void 0!==e.ssl)throw new On(un.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=e.host,this.ssl=null===(t=e.ssl)||void 0===t||t;if(this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.cache=e.localCache,void 0===e.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==e.cacheSizeBytes&&e.cacheSizeBytes<1048576)throw new On(un.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}Zg("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!(this.experimentalForceLongPolling||void 0!==e.experimentalAutoDetectLongPolling&&!e.experimentalAutoDetectLongPolling),this.experimentalLongPollingOptions=g_(null!==(o=e.experimentalLongPollingOptions)&&void 0!==o?o:{}),function(u){if(void 0!==u.timeoutSeconds){if(isNaN(u.timeoutSeconds))throw new On(un.INVALID_ARGUMENT,`invalid long polling timeout: ${u.timeoutSeconds} (must not be NaN)`);if(u.timeoutSeconds<5)throw new On(un.INVALID_ARGUMENT,`invalid long polling timeout: ${u.timeoutSeconds} (minimum allowed value is 5)`);if(u.timeoutSeconds>30)throw new On(un.INVALID_ARGUMENT,`invalid long polling timeout: ${u.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!e.useFetchStreams}isEqual(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&this.experimentalLongPollingOptions.timeoutSeconds===e.experimentalLongPollingOptions.timeoutSeconds&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}class fh{constructor(e,t,o,u){this._authCredentials=e,this._appCheckCredentials=t,this._databaseId=o,this._app=u,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Kg({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new On(un.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return void 0!==this._terminateTask}_setSettings(e){if(this._settingsFrozen)throw new On(un.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new Kg(e),void 0!==e.credentials&&(this._authCredentials=function(t){if(!t)return new Gs;switch(t.type){case"firstParty":return new ou(t.sessionIndex||"0",t.i
1amToken||null,t.authTokenFactory||null);case"provider":return t.client;default:throw new On(un.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(e.credentials))}_getSettings(){return this._settings}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(e){const t=Rv.get(e);t&&(Wt("ComponentProvider","Removing Datastore"),Rv.delete(e),t.terminate())}(this),Promise.resolve()}}class zo{constructor(e,t,o){this.converter=t,this._key=o,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new Il(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new zo(this.firestore,e,this._key)}}class $a{constructor(e,t,o){this.converter=t,this._query=o,this.type="query",this.firestore=e}withConverter(e){return new $a(this.firestore,e,this._query)}}class Il extends $a{constructor(e,t,o){super(e,t,_l(o)),this._path=o,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const e=this._path.popLast();return e.isEmpty()?null:new zo(this.firestore,null,new $n(e))}withConverter(e){return new Il(this.firestore,e,this._path)}}function Qg(i,e,...t){if(i=(0,Re.m9)(i),y_("collection","path",e),i instanceof fh){const o=zr.fromString(e,...t);return Gg(o),new Il(i,null,o)}{if(!(i instanceof zo||i instanceof Il))throw new On(un.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const o=i._path.child(zr.fromString(e,...t));return Gg(o),new Il(i.firestore,null,o)}}function Tf(i,e,...t){if(i=(0,Re.m9)(i),1===arguments.length&&(e=hs.A()),y_("doc","path",e),i instanceof fh){const o=zr.fromString(e,...t);return v_(o),new zo(i,null,new $n(o))}{if(!(i instanceof zo||i instanceof Il))throw new On(un.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const o=i._path.child(zr.fromString(e,...t));return v_(o),new zo(i.firestore,i instanceof Il?i.converter:null,new $n(o))}}function Jg(i,e){return i=(0,Re.m9)(i),e=(0,Re.m9)(e),(i instanceof zo||i instanceof Il)&&(e instanceof zo||e instanceof Il)&&i.firestore===e.firestore&&i.path===e.path&&i.converter===e.converter}function nm(i,e){return i=(0,Re.m9)(i),e=(0,Re.m9)(e),i instanceof $a&&e instanceof $a&&i.firestore===e.firestore&&mu(i._query,e._query)&&i.converter===e.converter}class _b{constructor(){this.Gc=Promise.resolve(),this.Qc=[],this.jc=!1,this.zc=[],this.Wc=null,this.Hc=!1,this.Jc=!1,this.Yc=[],this.qo=new Op(this,"async_queue_retry"),this.Xc=()=>{const t=af();t&&Wt("AsyncQueue","Visibility state changed to "+t.visibilityState),this.qo.Mo()};const e=af();e&&"function"==typeof e.addEventListener&&e.addEventListener("visibilitychange",this.Xc)}get isShuttingDown(){return this.jc}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.Zc(),this.ta(e)}enterRestrictedMode(e){if(!this.jc){this.jc=!0,this.Jc=e||!1;const t=af();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.Xc)}}enqueue(e){if(this.Zc(),this.jc)return new Promise(()=>{});const t=new br;return this.ta(()=>this.jc&&this.Jc?Promise.resolve():(e().then(t.resolve,t.reject),t.promise)).then(()=>t.promise)}enqueueRetryable(e){this.enqueueAndForget(()=>(this.Qc.push(e),this.ea()))}ea(){var e=this;return(0,je.Z)(function*(){if(0!==e.Qc.length){try{yield e.Qc[0](),e.Qc.shift(),e.qo.reset()}catch(t){if(!ca(t))throw t;Wt("AsyncQueue","Operation failed with retryable error: "+t)}e.Qc.length>0&&e.qo.No(()=>e.ea())}})()}ta(e){const t=this.Gc.then(()=>(this.Hc=!0,e().catch(o=>{throw this.Wc=o,this.Hc=!1,ti("INTERNAL UNHANDLED ERROR: ",function(g){let E=g.message||"";return g.stack&&(E=g.stack.includes(g.message)?g.stack:g.message+"\n"+g.stack),E}
1(o)),o}).then(o=>(this.Hc=!1,o))));return this.Gc=t,t}enqueueAfterDelay(e,t,o){this.Zc(),this.Yc.indexOf(e)>-1&&(t=0);const u=Xm.createAndSchedule(this,e,t,o,g=>this.na(g));return this.zc.push(u),u}Zc(){this.Wc&&qn()}verifyOperationInProgress(){}sa(){var e=this;return(0,je.Z)(function*(){let t;do{t=e.Gc,yield t}while(t!==e.Gc)})()}ia(e){for(const t of this.zc)if(t.timerId===e)return!0;return!1}ra(e){return this.sa().then(()=>{this.zc.sort((t,o)=>t.targetTimeMs-o.targetTimeMs);for(const t of this.zc)if(t.skipDelay(),"all"!==e&&t.timerId===e)break;return this.sa()})}oa(e){this.Yc.push(e)}na(e){const t=this.zc.indexOf(e);this.zc.splice(t,1)}}function Df(i){return function(e,t){if("object"!=typeof e||null===e)return!1;const o=e;for(const u of["next","error","complete"])if(u in o&&"function"==typeof o[u])return!0;return!1}(i)}class b_{constructor(){this._progressObserver={},this._taskCompletionResolver=new br,this._lastProgress={taskState:"Running",totalBytes:0,totalDocuments:0,bytesLoaded:0,documentsLoaded:0}}onProgress(e,t,o){this._progressObserver={next:e,error:t,complete:o}}catch(e){return this._taskCompletionResolver.promise.catch(e)}then(e,t){return this._taskCompletionResolver.promise.then(e,t)}_completeWith(e){this._updateProgress(e),this._progressObserver.complete&&this._progressObserver.complete(),this._taskCompletionResolver.resolve(e)}_failWith(e){this._lastProgress.taskState="Error",this._progressObserver.next&&this._progressObserver.next(this._lastProgress),this._progressObserver.error&&this._progressObserver.error(e),this._taskCompletionResolver.reject(e)}_updateProgress(e){this._lastProgress=e,this._progressObserver.next&&this._progressObserver.next(e)}}class qo extends fh{constructor(e,t,o,u){super(e,t,o,u),this.type="firestore",this._queue=new _b,this._persistenceKey=(null==u?void 0:u.name)||"[DEFAULT]"}_terminate(){return this._firestoreClient||Mu(this),this._firestoreClient.terminate()}}function so(i){return i._firestoreClient||Mu(i),i._firestoreClient.verifyNotTerminated(),i._firestoreClient}function Mu(i){var e,t,o;const u=i._freezeSettings(),g=(W=(null===(e=i._app)||void 0===e?void 0:e.options.appId)||"",new xs(i._databaseId,W,i._persistenceKey,(Ce=u).host,Ce.ssl,Ce.experimentalForceLongPolling,Ce.experimentalAutoDetectLongPolling,g_(Ce.experimentalLongPollingOptions),Ce.useFetchStreams));var W,Ce;i._firestoreClient=new Ov(i._authCredentials,i._appCheckCredentials,i._queue,g),(null===(t=u.cache)||void 0===t?void 0:t._offlineComponentProvider)&&(null===(o=u.cache)||void 0===o?void 0:o._onlineComponentProvider)&&(i._firestoreClient._uninitializedComponentsProvider={_offlineKind:u.cache.kind,_offline:u.cache._offlineComponentProvider,_online:u.cache._onlineComponentProvider})}function ty(i,e,t){const o=new br;return i.asyncQueue.enqueue((0,je.Z)(function*(){try{yield Ad(i,t),yield vf(i,e),o.resolve()}catch(u){const g=u;if(!Jp(g))throw g;Zi("Error enabling indexeddb cache. Falling back to memory cache: "+g),o.reject(g)}})).then(()=>o.promise)}function iy(i){if(i._initialized||i._terminated)throw new On(un.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only enable persistence before calling any other methods on a Firestore object.")}class ru{constructor(e){this._byteString=e}static fromBase64String(e){try{return new ru(ve.fromBase64String(e))}catch(t){throw new On(un.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+t)}}static fromUint8Array(e){return new ru(ve.fromUint8Array(e))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(e){return this._byteString.isEqual(e._byteString)}}class Lc{constructor(...e){for(let t=0;t<e.length;++t)if(0===e[t].length)throw new On(un.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new uo(e)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}class qc{constructor(e){this._methodName=e}}class mh{constructor(e,t){if(!isFinite(e)||e<-90||e>90)throw new On(un.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new On(un.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+t);this._lat=e,this._long=t}get latitude(){return this._lat}get longitude(){return this._long}isEqual(e){return this._lat===e._lat&&this._long===e._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(e){return cr(this._lat,e._lat)||cr(this._long,e._long)}}const rm=/^__.*__$/;class M_{constructor(e,t,o){this.data=e,this.fieldMask=t,this.fieldTransforms=o}toMutation(e,t){return null!==this.fieldMask?new Fu(e,this.data,this.fieldMask,t,this.fieldTransforms):new bc(e,this.data,t,this.fieldTransforms)}}class sm{constructor(e,t,o){this.data=e,this.fieldMask=t,this.fieldTransforms=o}toMutation(e,t){return new Fu(e,this.data,this.fieldMask,t,this.fieldTransforms)}}function T_(i){switch(i){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw qn()}}class Ef{constructor(e,t,o,u,g,E){this.settings=e,this.databaseId=t,this.serializer
1=o,this.ignoreUndefinedProperties=u,void 0===g&&this.ua(),this.fieldTransforms=g||[],this.fieldMask=E||[]}get path(){return this.settings.path}get ca(){return this.settings.ca}aa(e){return new Ef(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}ha(e){var t;const o=null===(t=this.path)||void 0===t?void 0:t.child(e),u=this.aa({path:o,la:!1});return u.fa(e),u}da(e){var t;const o=null===(t=this.path)||void 0===t?void 0:t.child(e),u=this.aa({path:o,la:!1});return u.ua(),u}wa(e){return this.aa({path:void 0,la:!0})}_a(e){return am(e,this.settings.methodName,this.settings.ma||!1,this.path,this.settings.ga)}contains(e){return void 0!==this.fieldMask.find(t=>e.isPrefixOf(t))||void 0!==this.fieldTransforms.find(t=>e.isPrefixOf(t.field))}ua(){if(this.path)for(let e=0;e<this.path.length;e++)this.fa(this.path.get(e))}fa(e){if(0===e.length)throw this._a("Document fields must not be empty");if(T_(this.ca)&&rm.test(e))throw this._a('Document fields cannot begin and end with "__"')}}class sy{constructor(e,t,o){this.databaseId=e,this.ignoreUndefinedProperties=t,this.serializer=o||sc(e)}ya(e,t,o,u=!1){return new Ef({ca:e,methodName:t,ga:o,path:uo.emptyPath(),la:!1,ma:u},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}}function Qc(i){const e=i._freezeSettings(),t=sc(i._databaseId);return new sy(i._databaseId,!!e.ignoreUndefinedProperties,t)}function Cf(i,e,t,o,u,g={}){const E=i.ya(g.merge||g.mergeFields?2:0,e,t,u);k_("Data must be an object, but it was:",E,o);const W=ay(o,E);let pe,Ce;if(g.merge)pe=new T(E.fieldMask),Ce=E.fieldTransforms;else if(g.mergeFields){const et=[];for(const It of g.mergeFields){const on=Sf(e,It,t);if(!E.contains(on))throw new On(un.INVALID_ARGUMENT,`Field '${on}' is specified in your field mask but missing from your input data.`);uy(et,on)||et.push(on)}pe=new T(et),Ce=E.fieldTransforms.filter(It=>pe.covers(It.field))}else pe=null,Ce=E.fieldTransforms;return new M_(new vs(W),pe,Ce)}class _h extends qc{_toFieldTransform(e){if(2!==e.ca)throw e._a(1===e.ca?`${this._methodName}() can only appear at the top level of your update data`:`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);return e.fieldMask.push(e.path),null}isEqual(e){return e instanceof _h}}function D_(i,e,t){return new Ef({ca:3,ga:e.settings.ga,methodName:i._methodName,la:t},e.databaseId,e.serializer,e.ignoreUndefinedProperties)}class E_ extends qc{_toFieldTransform(e){return new Vd(e.path,new Yl)}isEqual(e){return e instanceof E_}}class jv extends qc{constructor(e,t){super(e),this.pa=t}_toFieldTransform(e){const t=D_(this,e,!0),o=this.pa.map(g=>Pd(g,t)),u=new bu(o);return new Vd(e.path,u)}isEqual(e){return this===e}}class Vv extends qc{constructor(e,t){super(e),this.pa=t}_toFieldTransform(e){const t=D_(this,e,!0),o=this.pa.map(g=>Pd(g,t)),u=new Va(o);return new Vd(e.path,u)}isEqual(e){return this===e}}class zv extends qc{constructor(e,t){super(e),this.Ia=t}_toFieldTransform(e){const t=new gc(e.serializer,ld(e.serializer,this.Ia));return new Vd(e.path,t)}isEqual(e){return this===e}}function C_(i,e,t,o){const u=i.ya(1,e,t);k_("Data must be an object, but it was:",u,o);const g=[],E=vs.empty();dl(o,(pe,Ce)=>{const et=om(e,pe,t);Ce=(0,Re.m9)(Ce);const It=u.da(et);if(Ce instanceof _h)g.push(et);else{const on=Pd(Ce,It);null!=on&&(g.push(et),E.set(et,on))}});const W=new T(g);return new sm(E,W,u.fieldTransforms)}function S_(i,e,t,o,u,g){const E=i.ya(1,e,t),W=[Sf(e,o,t)],pe=[u];if(g.length%2!=0)throw new On(un.INVALID_ARGUMENT,`Function ${e}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let on=0;on<g.length;on+=2)W.push(Sf(e,g[on])),pe.push(g[on+1]);const Ce=[],et=vs.empty();for(let on=W.length-1;on>=0;--on)if(!uy(Ce,W[on])){const An=W[on];let di=pe[on];di=(0,Re.m9)(di);const Ai=E.da(An);if(di instanceof _h)Ce.push(An);else{const Oi=Pd(di,Ai);null!=Oi&&(Ce.push(An),et.set(An,Oi))}}const It=new T(Ce);return new sm(et,It,E.fieldTransforms)}function oy(i,e,t,o=!1){return Pd(t,i.ya(o?4:3,e))}function Pd(i,e){if(ly(i=(0,Re.m9)(i)))return k_("Unsupported field value:",e,i),ay(i,e);if(i instanceof qc)return function(t,o){if(!T_(o.ca))throw o._a(`${t._methodName}
1() can only be used with update() and set()`);if(!o.path)throw o._a(`${t._methodName}() is not currently supported inside arrays`);const u=t._toFieldTransform(o);u&&o.fieldTransforms.push(u)}(i,e),null;if(void 0===i&&e.ignoreUndefinedProperties)return null;if(e.path&&e.fieldMask.push(e.path),i instanceof Array){if(e.settings.la&&4!==e.ca)throw e._a("Nested arrays are not supported");return function(t,o){const u=[];let g=0;for(const E of t){let W=Pd(E,o.wa(g));null==W&&(W={nullValue:"NULL_VALUE"}),u.push(W),g++}return{arrayValue:{values:u}}}(i,e)}return function(t,o){if(null===(t=(0,Re.m9)(t)))return{nullValue:"NULL_VALUE"};if("number"==typeof t)return ld(o.serializer,t);if("boolean"==typeof t)return{booleanValue:t};if("string"==typeof t)return{stringValue:t};if(t instanceof Date){const u=to.fromDate(t);return{timestampValue:il(o.serializer,u)}}if(t instanceof to){const u=new to(t.seconds,1e3*Math.floor(t.nanoseconds/1e3));return{timestampValue:il(o.serializer,u)}}if(t instanceof mh)return{geoPointValue:{latitude:t.latitude,longitude:t.longitude}};if(t instanceof ru)return{bytesValue:Em(o.serializer,t._byteString)};if(t instanceof zo){const u=o.databaseId,g=t.firestore._databaseId;if(!g.isEqual(u))throw o._a(`Document reference is for database ${g.projectId}/${g.database} but should be for database ${u.projectId}/${u.database}`);return{referenceValue:op(t.firestore._databaseId||o.databaseId,t._key.path)}}throw o._a(`Unsupported field value: ${fa(t)}`)}(i,e)}function ay(i,e){const t={};return Rl(i)?e.path&&e.path.length>0&&e.fieldMask.push(e.path):dl(i,(o,u)=>{const g=Pd(u,e.ha(o));null!=g&&(t[o]=g)}),{mapValue:{fields:t}}}function ly(i){return!("object"!=typeof i||null===i||i instanceof Array||i instanceof Date||i instanceof to||i instanceof mh||i instanceof ru||i instanceof zo||i instanceof qc)}function k_(i,e,t){if(!ly(t)||"object"!=typeof(o=t)||null===o||Object.getPrototypeOf(o)!==Object.prototype&&null!==Object.getPrototypeOf(o)){const o=fa(t);throw e._a("an object"===o?i+" a custom object":i+" "+o)}var o}function Sf(i,e,t){if((e=(0,Re.m9)(e))instanceof Lc)return e._internalPath;if("string"==typeof e)return om(i,e);throw am("Field path arguments must be of type string or ",i,!1,void 0,t)}const Wv=new RegExp("[~\\*/\\[\\]]");function om(i,e,t){if(e.search(Wv)>=0)throw am(`Invalid field path (${e}). Paths must not contain '~', '*', '/', '[', or ']'`,i,!1,void 0,t);try{return new Lc(...e.split("."))._internalPath}catch(o){throw am(`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,i,!1,void 0,t)}}function am(i,e,t,o,u){const g=o&&!o.isEmpty(),E=void 0!==u;let W=`Function ${e}() called with invalid data`;t&&(W+=" (via `toFirestore()`)"),W+=". ";let pe="";return(g||E)&&(pe+=" (found",g&&(pe+=` in field ${o}`),E&&(pe+=` in document ${u}`),pe+=")"),new On(un.INVALID_ARGUMENT,W+i+pe)}function uy(i,e){return i.some(t=>t.isEqual(e))}class kf{constructor(e,t,o,u,g){this._firestore=e,this._userDataWriter=t,this._key=o,this._document=u,this._converter=g}get id(){return this._key.path.lastSegment()}get ref(){return new zo(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const e=new cy(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}get(e){if(this._document){const t=this._document.data.field(If("DocumentSnapshot.get",e));if(null!==t)return this._userDataWriter.convertValue(t)}}}class cy extends kf{data(){return super.data()}}function If(i,e){return"string"==typeof e?om(i,e):e instanceof Lc?e._internalPath:e._delegate._internalPath}function I_(i){if("L"===i.limitType&&0===i.explicitOrderBy.length)throw new On(un.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}class lm{}class gh extends lm{}function Ac(i,e,...t){let o=[];e instanceof lm&&o.push(e),o=o.concat(t),function(u){const g=u.filter(W=>W instanceof Od).length,E=u.filter(W=>W instanceof yh).length;if(g>1||g>0&&E>0)throw new On(un.INVALID_ARGUMENT,"InvalidQuery. When using composite filters, you cannot use more than one filter at the top level. Consider nesting the multiple filters within an `and(...)` statement. For example: change `query(query, where(...), or(...))` to `query(query, and(where(...), or(...)))`.")}(o);for(const u of o)i=u._apply(i);return i}class yh extends gh{constructor(e,t,o){super(),this._field=e,this._op=t,this._value=o,this.type="where"}static _create(e,t,o){return new yh(e,t,o)}_apply(e){const t=this._parse(e);return Lf(e._query,t),new $a(e.firestore,e.converter,Cl(e._query,t))}_parse(e){const t=Qc(e.firestore);return function(u,g,E,W,pe,Ce,et){let It;
1if(pe.isKeyField()){if("array-contains"===Ce||"array-contains-any"===Ce)throw new On(un.INVALID_ARGUMENT,`Invalid Query. You can't perform '${Ce}' queries on documentId().`);if("in"===Ce||"not-in"===Ce){gy(et,Ce);const on=[];for(const An of et)on.push(_y(W,u,An));It={arrayValue:{values:on}}}else It=_y(W,u,et)}else"in"!==Ce&&"not-in"!==Ce&&"array-contains-any"!==Ce||gy(et,Ce),It=oy(E,"where",et,"in"===Ce||"not-in"===Ce);return Br.create(pe,Ce,It)}(e._query,0,t,e.firestore._databaseId,this._field,this._op,this._value)}}class Od extends lm{constructor(e,t){super(),this.type=e,this._queryConstraints=t}static _create(e,t){return new Od(e,t)}_parse(e){const t=this._queryConstraints.map(o=>o._parse(e)).filter(o=>o.getFilters().length>0);return 1===t.length?t[0]:Ns.create(t,this._getOperator())}_apply(e){const t=this._parse(e);return 0===t.getFilters().length?e:(function(o,u){let g=o;const E=u.getFlattenedFilters();for(const W of E)Lf(g,W),g=Cl(g,W)}(e._query,t),new $a(e.firestore,e.converter,Cl(e._query,t)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return"and"===this.type?"and":"or"}}class Pc extends gh{constructor(e,t){super(),this._field=e,this._direction=t,this.type="orderBy"}static _create(e,t){return new Pc(e,t)}_apply(e){const t=function(o,u,g){if(null!==o.startAt)throw new On(un.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==o.endAt)throw new On(un.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");const E=new da(u,g);return function(W,pe){if(null===Gu(W)){const Ce=Pu(W);null!==Ce&&yy(0,Ce,pe.field)}}(o,E),E}(e._query,this._field,this._direction);return new $a(e.firestore,e.converter,function(o,u){const g=o.explicitOrderBy.concat([u]);return new Lo(o.path,o.collectionGroup,g,o.filters.slice(),o.limit,o.limitType,o.startAt,o.endAt)}(e._query,t))}}class um extends gh{constructor(e,t,o){super(),this.type=e,this._limit=t,this._limitType=o}static _create(e,t,o){return new um(e,t,o)}_apply(e){return new $a(e.firestore,e.converter,Ru(e._query,this._limit,this._limitType))}}class bh extends gh{constructor(e,t,o){super(),this.type=e,this._docOrFields=t,this._inclusive=o}static _create(e,t,o){return new bh(e,t,o)}_apply(e){const t=my(e,this.type,this._docOrFields,this._inclusive);return new $a(e.firestore,e.converter,(u=t,new Lo((o=e._query).path,o.collectionGroup,o.explicitOrderBy.slice(),o.filters.slice(),o.limit,o.limitType,u,o.endAt)));var o,u}}class xf extends gh{constructor(e,t,o){super(),this.type=e,this._docOrFields=t,this._inclusive=o}static _create(e,t,o){return new xf(e,t,o)}_apply(e){const t=my(e,this.type,this._docOrFields,this._inclusive);return new $a(e.firestore,e.converter,(u=t,new Lo((o=e._query).path,o.collectionGroup,o.explicitOrderBy.slice(),o.filters.slice(),o.limit,o.limitType,o.startAt,u)));var o,u}}function my(i,e,t,o){if(t[0]=(0,Re.m9)(t[0]),t[0]instanceof kf)return function(u,g,E,W,pe){if(!W)throw new On(un.NOT_FOUND,`Can't use a DocumentSnapshot that doesn't exist for ${E}().`);const Ce=[];for(const et of Ia(u))if(et.field.isKeyField())Ce.push(V(g,W.key));else{const It=W.data.field(et.field);if(ir(It))throw new On(un.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+et.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===It){const on=et.field.canonicalString();throw new On(un.INVALID_ARGUMENT,`Invalid query. You are trying to start or end a query using a document for which the field '${on}' (used as the orderBy) does not exist.`)}Ce.push(It)}return new xo(Ce,pe)}(i._query,i.firestore._databaseId,e,t[0]._document,o);{const u=Qc(i.firestore);return function(g,E,W,pe,Ce,et){const It=g.explicitOrderBy;if(Ce.length>It.length)throw new On(un.INVALID_ARGUMENT,`Too many arguments provided to ${pe}(). The number of arguments must be less than or equal to the number of orderBy() clauses`);const on=[];for(let An=0;An<Ce.length;An++){const di=Ce[An];
1if(It[An].field.isKeyField()){if("string"!=typeof di)throw new On(un.INVALID_ARGUMENT,`Invalid query. Expected a string for document ID in ${pe}(), but got a ${typeof di}`);if(!Ou(g)&&-1!==di.indexOf("/"))throw new On(un.INVALID_ARGUMENT,`Invalid query. When querying a collection and ordering by documentId(), the value passed to ${pe}() must be a plain document ID, but '${di}' contains a slash.`);const Ai=g.path.child(zr.fromString(di));if(!$n.isDocumentKey(Ai))throw new On(un.INVALID_ARGUMENT,`Invalid query. When querying a collection group and ordering by documentId(), the value passed to ${pe}() must result in a valid document path, but '${Ai}' is not because it contains an odd number of segments.`);const Oi=new $n(Ai);on.push(V(E,Oi))}else{const Ai=oy(W,pe,di);on.push(Ai)}}return new xo(on,et)}(i._query,i.firestore._databaseId,u,e,t,o)}}function _y(i,e,t){if("string"==typeof(t=(0,Re.m9)(t))){if(""===t)throw new On(un.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!Ou(e)&&-1!==t.indexOf("/"))throw new On(un.INVALID_ARGUMENT,`Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '${t}' contains a '/' character.`);const o=e.path.child(zr.fromString(t));if(!$n.isDocumentKey(o))throw new On(un.INVALID_ARGUMENT,`Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '${o}' is not because it has an odd number of segments (${o.length}).`);return V(i,new $n(o))}if(t instanceof zo)return V(i,t._key);throw new On(un.INVALID_ARGUMENT,`Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ${fa(t)}.`)}function gy(i,e){if(!Array.isArray(i)||0===i.length)throw new On(un.INVALID_ARGUMENT,`Invalid Query. A non-empty array is required for '${e.toString()}' filters.`)}function Lf(i,e){if(e.isInequality()){const o=Pu(i),u=e.field;if(null!==o&&!o.isEqual(u))throw new On(un.INVALID_ARGUMENT,`Invalid query. All where filters with an inequality (<, <=, !=, not-in, >, or >=) must be on the same field. But you have inequality filters on '${o.toString()}' and '${u.toString()}'`);const g=Gu(i);null!==g&&yy(0,u,g)}const t=function(o,u){for(const g of o)for(const E of g.getFlattenedFilters())if(u.indexOf(E.op)>=0)return E.op;return null}(i.filters,function(o){switch(o){case"!=":return["!=","not-in"];case"array-contains-any":case"in":return["not-in"];case"not-in":return["array-contains-any","in","not-in","!="];default:return[]}}(e.op));if(null!==t)throw new On(un.INVALID_ARGUMENT,t===e.op?`Invalid query. You cannot use more than one '${e.op.toString()}' filter.`:`Invalid query. You cannot use '${e.op.toString()}' filters with '${t.toString()}' filters.`)}function yy(i,e,t){if(!t.isEqual(e))throw new On(un.INVALID_ARGUMENT,`Invalid query. You have a where filter with an inequality (<, <=, !=, not-in, >, or >=) on field '${e.toString()}' and so you must also use '${e.toString()}' as your first argument to orderBy(), but your first orderBy() is on field '${t.toString()}' instead.`)}class wh{convertValue(e,t="none"){switch(Nl(e)){case 0:return null;case 1:return e.booleanValue;case 2:return ln(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,t);case 5:return e.stringValue;case 6:return this.convertBytes(ui(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,t);case 10:return this.convertObject(e.mapValue,t);default:throw qn()}}convertObject(e,t){return this.convertObjectMap(e.fields,t)}convertObjectMap(e,t="none"){const o={};return dl(e,(u,g)=>{o[u]=this.convertValue(g,t)}),o}convertGeoPoint(e){return new mh(ln(e.latitude),ln(e.longitude))}convertArray(e,t){return(e.values||[]).map(o=>this.convertValue(o,t))}convertServerTimestamp(e,t){switch(t){case"previous":const o=Nr(e);return null==o?null:this.convertValue(o,t);case"estimate":return this.convertTimestamp(Rs(e));default:return null}}convertTimestamp(e){const t=Rt(e);return new to(t.seconds,t.nanos)}convertDocumentKey(e,t){const o=zr.fromString(e);yi(fd(o));const u=new Io(o.get(1),o.get(3)),g=new $n(o.popFirst(5));return u.isEqual(t)||ti(`Document ${g} contains a document reference within a different database (${u.projectId}/${u.database}) which is not supported. It will be treated as a reference in the current database (${t.projectId}/${t.database}) instead.`),g}}function Qo(i,e,t){let o;return o=i?t&&(t.merge||t.mergeFields)?i.toFirestore(e,t):i.toFirestore(e):e,o}class wb extends wh{constructor(e){super(),this.firestore=e}convertBytes(e){return new ru(e)}convertReference(e){const t=this.convertDocumentKey(e,this.firestore._databaseId);
1return new zo(this.firestore,null,t)}}class Jc{constructor(e,t){this.hasPendingWrites=e,this.fromCache=t}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class dc extends kf{constructor(e,t,o,u,g,E){super(e,t,o,u,E),this._firestore=e,this._firestoreImpl=e,this.metadata=g}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){const t=new Pf(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(t,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e,t={}){if(this._document){const o=this._document.data.field(If("DocumentSnapshot.get",e));if(null!==o)return this._userDataWriter.convertValue(o,t.serverTimestamps)}}}class Pf extends dc{data(e={}){return super.data(e)}}class Xc{constructor(e,t,o,u){this._firestore=e,this._userDataWriter=t,this._snapshot=u,this.metadata=new Jc(u.hasPendingWrites,u.fromCache),this.query=o}get docs(){const e=[];return this.forEach(t=>e.push(t)),e}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(e,t){this._snapshot.docs.forEach(o=>{e.call(t,new Pf(this._firestore,this._userDataWriter,o.key,o,new Jc(this._snapshot.mutatedKeys.has(o.key),this._snapshot.fromCache),this.query.converter))})}docChanges(e={}){const t=!!e.includeMetadataChanges;if(t&&this._snapshot.excludesMetadataChanges)throw new On(un.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===t||(this._cachedChanges=function(o,u){if(o._snapshot.oldDocs.isEmpty()){let g=0;return o._snapshot.docChanges.map(E=>({type:"added",doc:new Pf(o._firestore,o._userDataWriter,E.doc.key,E.doc,new Jc(o._snapshot.mutatedKeys.has(E.doc.key),o._snapshot.fromCache),o.query.converter),oldIndex:-1,newIndex:g++}))}{let g=o._snapshot.oldDocs;return o._snapshot.docChanges.filter(E=>u||3!==E.type).map(E=>{const W=new Pf(o._firestore,o._userDataWriter,E.doc.key,E.doc,new Jc(o._snapshot.mutatedKeys.has(E.doc.key),o._snapshot.fromCache),o.query.converter);let pe=-1,Ce=-1;return 0!==E.type&&(pe=g.indexOf(E.doc.key),g=g.delete(E.doc.key)),1!==E.type&&(g=g.add(E.doc),Ce=g.indexOf(E.doc.key)),{type:Qv(E.type),doc:W,oldIndex:pe,newIndex:Ce}})}}(this,t),this._cachedChangesIncludeMetadataChanges=t),this._cachedChanges}}function Qv(i){switch(i){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return qn()}}function Mh(i,e){return i instanceof dc&&e instanceof dc?i._firestore===e._firestore&&i._key.isEqual(e._key)&&(null===i._document?null===e._document:i._document.isEqual(e._document))&&i._converter===e._converter:i instanceof Xc&&e instanceof Xc&&i._firestore===e._firestore&&nm(i.query,e.query)&&i.metadata.isEqual(e.metadata)&&i._snapshot.isEqual(e._snapshot)}class ed extends wh{constructor(e){super(),this.firestore=e}convertBytes(e){return new ru(e)}convertReference(e){const t=this.convertDocumentKey(e,this.firestore._databaseId);return new zo(this.firestore,null,t)}}function My(i,e,t){i=Ts(i,zo);const o=Ts(i.firestore,qo),u=Qo(i.converter,e,t);return Rd(o,[Cf(Qc(o),"setDoc",i._key,u,null!==i.converter,t).toMutation(i._key,no.none())])}function Th(i,e,t,...o){i=Ts(i,zo);const u=Ts(i.firestore,qo),g=Qc(u);let E;return E="string"==typeof(e=(0,Re.m9)(e))||e instanceof Lc?S_(g,"updateDoc",i._key,e,t,o):C_(g,"updateDoc",i._key,e),Rd(u,[E.toMutation(i._key,no.exists(!0))])}function Ty(i,...e){var t,o,u;i=(0,Re.m9)(i);let g={includeMetadataChanges:!1},E=0;
1"object"!=typeof e[E]||Df(e[E])||(g=e[E],E++);const W={includeMetadataChanges:g.includeMetadataChanges};if(Df(e[E])){const It=e[E];e[E]=null===(t=It.next)||void 0===t?void 0:t.bind(It),e[E+1]=null===(o=It.error)||void 0===o?void 0:o.bind(It),e[E+2]=null===(u=It.complete)||void 0===u?void 0:u.bind(It)}let pe,Ce,et;if(i instanceof zo)Ce=Ts(i.firestore,qo),et=_l(i._key.path),pe={next:It=>{e[E]&&e[E](dm(Ce,i,It))},error:e[E+1],complete:e[E+2]};else{const It=Ts(i,$a);Ce=Ts(It.firestore,qo),et=It._query;const on=new ed(Ce);pe={next:An=>{e[E]&&e[E](new Xc(Ce,on,It,An))},error:e[E+1],complete:e[E+2]},I_(i._query)}return function(It,on,An,di){const Ai=new Ld(di),Oi=new Gc(on,Ai,An);return It.asyncQueue.enqueueAndForget((0,je.Z)(function*(){return Ga(yield hh(It),Oi)})),()=>{Ai.Dc(),It.asyncQueue.enqueueAndForget((0,je.Z)(function*(){return rh(yield hh(It),Oi)}))}}(so(Ce),et,W,pe)}function Rd(i,e){return function(t,o){const u=new br;return t.asyncQueue.enqueueAndForget((0,je.Z)(function*(){return function Cg(i,e,t){return i_.apply(this,arguments)}(yield Mf(t),o,u)})),u.promise}(so(i),e)}function dm(i,e,t){const o=t.docs.get(e._key),u=new ed(i);return new dc(i,u,e._key,o,new Jc(t.hasPendingWrites,t.fromCache),e.converter)}const Rf={maxAttempts:5};class Ey{constructor(e,t){this._firestore=e,this._commitHandler=t,this._mutations=[],this._committed=!1,this._dataReader=Qc(e)}set(e,t,o){this._verifyNotCommitted();const u=td(e,this._firestore),g=Qo(u.converter,t,o),E=Cf(this._dataReader,"WriteBatch.set",u._key,g,null!==u.converter,o);return this._mutations.push(E.toMutation(u._key,no.none())),this}update(e,t,o,...u){this._verifyNotCommitted();const g=td(e,this._firestore);let E;return E="string"==typeof(t=(0,Re.m9)(t))||t instanceof Lc?S_(this._dataReader,"WriteBatch.update",g._key,t,o,u):C_(this._dataReader,"WriteBatch.update",g._key,t),this._mutations.push(E.toMutation(g._key,no.exists(!0))),this}delete(e){this._verifyNotCommitted();const t=td(e,this._firestore);return this._mutations=this._mutations.concat(new Qu(t._key,no.none())),this}commit(){return this._verifyNotCommitted(),this._committed=!0,this._mutations.length>0?this._commitHandler(this._mutations):Promise.resolve()}_verifyNotCommitted(){if(this._committed)throw new On(un.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")}}function td(i,e){if((i=(0,Re.m9)(i)).firestore!==e)throw new On(un.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return i}class d0 extends class{constructor(e,t){this._firestore=e,this._transaction=t,this._dataReader=Qc(e)}get(e){const t=td(e,this._firestore),o=new wb(this._firestore);return this._transaction.lookup([t._key]).then(u=>{if(!u||1!==u.length)return qn();const g=u[0];if(g.isFoundDocument())return new kf(this._firestore,o,g.key,g,t.converter);if(g.isNoDocument())return new kf(this._firestore,o,t._key,null,t.converter);throw qn()})}set(e,t,o){const u=td(e,this._firestore),g=Qo(u.converter,t,o),E=Cf(this._dataReader,"Transaction.set",u._key,g,null!==u.converter,o);return this._transaction.set(u._key,E),this}update(e,t,o,...u){const g=td(e,this._firestore);let E;return E="string"==typeof(t=(0,Re.m9)(t))||t instanceof Lc?S_(this._dataReader,"Transaction.update",g._key,t,o,u):C_(this._dataReader,"Transaction.update",g._key,t),this._transaction.update(g._key,E),this}delete(e){const t=td(e,this._firestore);return this._transaction.delete(t._key),this}}{constructor(e,t){super(e,t),this._firestore=e}get(e){const t=td(e,this._firestore),o=new ed(this._firestore);return super.get(e).then(u=>new dc(this._firestore,o,t._key,u._document,new Jc(!1,!1),t.converter))}}function fm(i,e){if(void 0===e)return{merge:!1};if(void 0!==e.mergeFields&&void 0!==e.merge)throw new On("invalid-argument",`Invalid options passed to function ${i}(): You cannot specify both "merge" and "mergeFields".`);return e}function Iy(){if("undefined"==typeof Uint8Array)throw new On("unimplemented","Uint8Arrays are not available in this environment.")}function pm(){if(!function se(){return"undefined"!=typeof atob}())throw new On("unimplemented","Blobs are unavailable in Firestore in this environment.")}!function(i,e=!0){bt=zt.SDK_VERSION,(0,zt._registerComponent)(new ut.wA("firestore",(t,{instanceIdentifier:o,options:u})=>{const g=t.getProvider("app").getImmediate(),E=new qo(new ds(t.getProvider("auth-internal")),new Ka(t.getProvider("app-check-internal")),function(W,pe){if(!Object.prototype.hasOwnProperty.apply(W.options,["projectId"]))throw new On(un.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new Io(W.options.projectId,pe)}(g,o),g);return u=Object.assign({useFetchStreams:e},u),E._setSettings(u),E},"PUBLIC").setMultipleInstances(!0)),(0,zt.registerVersion)(Q,"3.13.0",i),(0,zt.registerVersion)(Q,"3.13.0","esm2017")}();class Nf{constructor(e){this._delegate=e}static fromBase64String(e){return pm(),new Nf(ru.fromBase64String(e))}static fromUint8Array(e){return Iy(),new Nf(ru.fromUint8Array(e))}toBase64(){return pm(),this._delegate.toBase64()}toUint8Array(){return Iy(),this._delegate.toUint8Array()}isEqual(e){return this._delegate.isEqual(e._delegate)}toString(){return"Blob(base64: "+this.toBase64()+")"}}function mm(i){return function xy(i,e){if("object"!=typeof i||null===i)return!1;const t=i;for(const o of e)if(o in t&&"function"==typeof t[o])return!0;return!1}(i,["next","error","complete"])}class y0{enableIndexedDbPersistence(e,t){return function Xg(i,e){iy(i=Ts(i,qo));const t=so(i);if(t._uninitializedComponentsProvider)throw new On(un.FAILED_PRECONDITION,"SDK cache is already specified.");
1Zi("enableIndexedDbPersistence() will be deprecated in the future, you can use `FirestoreSettings.cache` instead.");const o=i._freezeSettings(),u=new Kc;return ty(t,u,new $p(u,o.cacheSizeBytes,null==e?void 0:e.forceOwnership))}(e._delegate,{forceOwnership:t})}enableMultiTabIndexedDbPersistence(e){return function ey(i){iy(i=Ts(i,qo));const e=so(i);if(e._uninitializedComponentsProvider)throw new On(un.FAILED_PRECONDITION,"SDK cache is already specified.");Zi("enableMultiTabIndexedDbPersistence() will be deprecated in the future, you can use `FirestoreSettings.cache` instead.");const t=i._freezeSettings(),o=new Kc;return ty(e,o,new Kp(o,t.cacheSizeBytes))}(e._delegate)}clearIndexedDbPersistence(e){return function Fv(i){if(i._initialized&&!i._terminated)throw new On(un.FAILED_PRECONDITION,"Persistence can only be cleared before a Firestore instance is initialized or after it is terminated.");const e=new br;return i._queue.enqueueAndForgetEvenWhileRestricted((0,je.Z)(function*(){try{yield(t=(0,je.Z)(function*(o){if(!lr.D())return Promise.resolve();const u=o+"main";yield lr.delete(u)}),function(o){return t.apply(this,arguments)})(ng(i._databaseId,i._persistenceKey)),e.resolve()}catch(t){e.reject(t)}var t})),e.promise}(e._delegate)}}class Ly{constructor(e,t,o){this._delegate=t,this._persistenceProvider=o,this.INTERNAL={delete:()=>this.terminate()},e instanceof Io||(this._appCompat=e)}get _databaseId(){return this._delegate._databaseId}settings(e){const t=this._delegate._getSettings();!e.merge&&t.host!==e.host&&Zi("You are overriding the original host. If you did not intend to override your settings, use {merge: true}."),e.merge&&delete(e=Object.assign(Object.assign({},t),e)).merge,this._delegate._setSettings(e)}useEmulator(e,t,o={}){!function qg(i,e,t,o={}){var u;const g=(i=Ts(i,fh))._getSettings(),E=`${e}:${t}`;if("firestore.googleapis.com"!==g.host&&g.host!==E&&Zi("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),i._setSettings(Object.assign(Object.assign({},g),{host:E,ssl:!1})),o.mockUserToken){let W,pe;if("string"==typeof o.mockUserToken)W=o.mockUserToken,pe=xe.MOCK_USER;else{W=(0,Re.Sg)(o.mockUserToken,null===(u=i._app)||void 0===u?void 0:u.options.projectId);const Ce=o.mockUserToken.sub||o.mockUserToken.user_id;if(!Ce)throw new On(un.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");pe=new xe(Ce)}i._authCredentials=new Fa(new ol(W,pe))}}(this._delegate,e,t,o)}enableNetwork(){return function Bv(i){return function Bg(i){return i.asyncQueue.enqueue((0,je.Z)(function*(){const e=yield Yg(i),t=yield h_(i);return e.setNetworkEnabled(!0),function(o){const u=ci(o);return u.vu.delete(0),Dd(u)}(t)}))}(so(i=Ts(i,qo)))}(this._delegate)}disableNetwork(){return function w_(i){return function Hg(i){return i.asyncQueue.enqueue((0,je.Z)(function*(){const e=yield Yg(i),t=yield h_(i);return e.setNetworkEnabled(!1),(o=(0,je.Z)(function*(u){const g=ci(u);g.vu.add(0),yield Ed(g),g.bu.set("Offline")}),function(u){return o.apply(this,arguments)})(t);var o}))}(so(i=Ts(i,qo)))}(this._delegate)}enablePersistence(e){let t=!1,o=!1;return e&&(t=!!e.synchronizeTabs,o=!!e.experimentalForceOwningTab,Zg("synchronizeTabs",t,"experimentalForceOwningTab",o)),t?this._persistenceProvider.enableMultiTabIndexedDbPersistence(this):this._persistenceProvider.enableIndexedDbPersistence(this,o)}clearPersistence(){return this._persistenceProvider.clearIndexedDbPersistence(this)}terminate(){return this._appCompat&&(this._appCompat._removeServiceInstance("firestore-compat"),this._appCompat._removeServiceInstance("firestore")),this._delegate._delete()}waitForPendingWrites(){return function Yv(i){return function(e){const t=new br;return e.asyncQueue.enqueueAndForget((0,je.Z)(function*(){return function fb(i,e){return o_.apply(this,arguments)}(yield Mf(e),t)})),t.promise}(so(i=Ts(i,qo)))}(this._delegate)}onSnapshotsInSync(e){return function t0(i,e){return function jg(i,e){const t=new Ld(e);return i.asyncQueue.enqueueAndForget((0,je.Z)(function*(){return o=yield hh(i),u=t,ci(o).ku.add(u),void u.next();var o,u})),()=>{t.Dc(),i.asyncQueue.enqueueAndForget((0,je.Z)(function*(){return o=yield hh(i),u=t,void ci(o).
1ku.delete(u);var o,u}))}}(so(i=Ts(i,qo)),Df(e)?e:{next:e})}(this._delegate,e)}get app(){if(!this._appCompat)throw new On("failed-precondition","Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._appCompat}collection(e){try{return new Eh(this,Qg(this._delegate,e))}catch(t){throw xl(t,"collection()","Firestore.collection()")}}doc(e){try{return new Tu(this,Tf(this._delegate,e))}catch(t){throw xl(t,"doc()","Firestore.doc()")}}collectionGroup(e){try{return new Ll(this,function Nv(i,e){if(i=Ts(i,fh),y_("collectionGroup","collection id",e),e.indexOf("/")>=0)throw new On(un.INVALID_ARGUMENT,`Invalid collection ID '${e}' passed to function collectionGroup(). Collection IDs must not contain '/'.`);return new $a(i,null,(t=e,new Lo(zr.emptyPath(),t)));var t}(this._delegate,e))}catch(t){throw xl(t,"collectionGroup()","Firestore.collectionGroup()")}}runTransaction(e){return function h0(i,e,t){i=Ts(i,qo);const o=Object.assign(Object.assign({},Rf),t);return function(u){if(u.maxAttempts<1)throw new On(un.INVALID_ARGUMENT,"Max attempts must be at least 1")}(o),function(u,g,E){const W=new br;return u.asyncQueue.enqueueAndForget((0,je.Z)(function*(){const pe=yield function f_(i){return dh(i).then(e=>e.datastore)}(u);new mb(u.asyncQueue,pe,E,g,W).run()})),W.promise}(so(i),u=>e(new d0(i,u)),o)}(this._delegate,t=>e(new Ay(this,t)))}batch(){return so(this._delegate),new L_(new Ey(this._delegate,e=>Rd(this._delegate,e)))}loadBundle(e){return function Hv(i,e){const t=so(i=Ts(i,qo)),o=new b_;return function Vg(i,e,t,o){const u=function(g,E){let W;return W="string"==typeof g?wm().encode(g):g,pe=function(pe,Ce){if(pe instanceof Uint8Array)return Fg(pe,void 0);if(pe instanceof ArrayBuffer)return Fg(new Uint8Array(pe),void 0);if(pe instanceof ReadableStream)return pe.getReader();throw new Error("Source of `toByteStreamReader` has to be a ArrayBuffer or ReadableStream")}(W),new qp(pe,E);var pe}(t,sc(e));i.asyncQueue.enqueueAndForget((0,je.Z)(function*(){!function Pv(i,e,t){const o=ci(i);var u;(u=(0,je.Z)(function*(g,E,W){try{const pe=yield E.getMetadata();if(yield function(on,An){const di=ci(on),Ai=na(An.createTime);return di.persistence.runTransaction("hasNewerBundle","readonly",Oi=>di.qs.getBundleMetadata(Oi,An.id)).then(Oi=>!!Oi&&Oi.createTime.compareTo(Ai)>=0)}(g.localStore,pe))return yield E.close(),W._completeWith({taskState:"Success",documentsLoaded:(on=pe).totalDocuments,bytesLoaded:on.totalBytes,totalDocuments:on.totalDocuments,totalBytes:on.totalBytes}),Promise.resolve(new Set);W._updateProgress(kd(pe));const Ce=new ah(pe,g.localStore,E.serializer);let et=yield E.bc();for(;et;){const on=yield Ce.zu(et);on&&W._updateProgress(on),et=yield E.bc()}const It=yield Ce.complete();return yield uc(g,It.Ju,void 0),yield function(on,An){const di=ci(on);return di.persistence.runTransaction("Save bundle","readwrite",Ai=>di.qs.saveBundleMetadata(Ai,An))}(g.localStore,pe),W._completeWith(It.progress),Promise.resolve(It.Hu)}catch(pe){return Zi("SyncEngine",`Loading bundle failed with ${pe}`),W._failWith(pe),Promise.resolve(new Set)}var on}),function(g,E,W){return u.apply(this,arguments)})(o,e,t).then(u=>{o.sharedClientState.notifyBundleLoaded(u)})}(yield Mf(i),u,o)}))}(t,i._databaseId,e,o),o}(this._delegate,e)}namedQuery(e){return function ny(i,e){return function zg(i,e){return i.asyncQueue.enqueue((0,je.Z)(function*(){return function(t,o){const u=ci(t);return u.persistence.runTransaction("Get named query","readonly",g=>u.qs.getNamedQuery(g,o))}(yield wf(i),e)}))}(so(i=Ts(i,qo)),e).then(t=>t?new $a(i,null,t.query):null)}(this._delegate,e).then(t=>t?new Ll(this,t):null)}}class _m extends wh{constructor(e){super(),this.firestore=e}convertBytes(e){return new Nf(new ru(e))}convertReference(e){const t=this.convertDocumentKey(e,this.firestore._databaseId);return Tu.forKey(t,this.firestore,null)}}class Ay{constructor(e,t){this._firestore=e,this._delegate=t,this._userDataWriter=new _m(e)}get(e){const t=Fd(e);return this._delegate.get(t).then(o=>new Ff(this._firestore,new dc(this._firestore._delegate,this._userDataWriter,o._key,o._document,o.metadata,t.converter)))}set(e,t,o){const u=Fd(e);return o?(fm("Transaction.set",o),this._delegate.set(u,t,o)):this._delegate.set(u,t),this}update(e,t,o,...u){const g=Fd(e);return 2===arguments.length?this._delegate.update(g,t):this._delegate.update(g,t,o,...u),this}delete(e){const t=Fd(e);return this._delegate.delete(t),this}}class L_{constructor(e){this._delegate=e}set(e,t,o){const u=Fd(e);return o?(fm("WriteBatch.set",o),this._delegate.set(u,t,o)):this._delegate.set(u,t),this}update(e,t,o,...u){const g=Fd(e);return 2===arguments.length?this._delegate.update(g,t):this._delegate.update(g,t,o,...u),this}delete(e){const t=Fd(e);return this._delegate.delete(t),this}commit(){return this._delegate.commit()}}class Nd{constructor(e,t,o){this._firestore=e,this._userDataWriter=t,this._delegate=o}fromFirestore(e,t){const o=new Pf(this._firestore._delegate,this._userDataWriter,e._key,e._document,e.metadata,null);return this._delegate.fromFirestore(new Yf(this._firestore,o),null!=t?t:{})}toFirestore(e,t){return t?this._delegate.toFirestore(e,t):this._delegate.toFirestore(e)}static getInstance(e,t){const o=Nd.INSTANCES;let u=o.get(e);u||(u=new WeakMap,o.set(e,u));let g=u.get(t);
1return g||(g=new Nd(e,new _m(e),t),u.set(t,g)),g}}Nd.INSTANCES=new WeakMap;class Tu{constructor(e,t){this.firestore=e,this._delegate=t,this._userDataWriter=new _m(e)}static forPath(e,t,o){if(e.length%2!=0)throw new On("invalid-argument",`Invalid document reference. Document references must have an even number of segments, but ${e.canonicalString()} has ${e.length}`);return new Tu(t,new zo(t._delegate,o,new $n(e)))}static forKey(e,t,o){return new Tu(t,new zo(t._delegate,o,e))}get id(){return this._delegate.id}get parent(){return new Eh(this.firestore,this._delegate.parent)}get path(){return this._delegate.path}collection(e){try{return new Eh(this.firestore,Qg(this._delegate,e))}catch(t){throw xl(t,"collection()","DocumentReference.collection()")}}isEqual(e){return(e=(0,Re.m9)(e))instanceof zo&&Jg(this._delegate,e)}set(e,t){t=fm("DocumentReference.set",t);try{return t?My(this._delegate,e,t):My(this._delegate,e)}catch(o){throw xl(o,"setDoc()","DocumentReference.set()")}}update(e,t,...o){try{return 1===arguments.length?Th(this._delegate,e):Th(this._delegate,e,t,...o)}catch(u){throw xl(u,"updateDoc()","DocumentReference.update()")}}delete(){return function Of(i){return Rd(Ts(i.firestore,qo),[new Qu(i._key,no.none())])}(this._delegate)}onSnapshot(...e){const t=Py(e),o=Oy(e,u=>new Ff(this.firestore,new dc(this.firestore._delegate,this._userDataWriter,u._key,u._document,u.metadata,this._delegate.converter)));return Ty(this._delegate,t,o)}get(e){let t;return t="cache"===(null==e?void 0:e.source)?function Xv(i){i=Ts(i,zo);const e=Ts(i.firestore,qo),t=so(e),o=new ed(e);return function p_(i,e){const t=new br;return i.asyncQueue.enqueueAndForget((0,je.Z)(function*(){return(o=(0,je.Z)(function*(u,g,E){try{const W=yield function(pe,Ce){const et=ci(pe);return et.persistence.runTransaction("read document","readonly",It=>et.localDocuments.getDocument(It,Ce))}(u,g);W.isFoundDocument()?E.resolve(W):W.isNoDocument()?E.resolve(null):E.reject(new On(un.UNAVAILABLE,"Failed to get document from cache. (However, this document may exist on the server. Run again without setting 'source' in the GetOptions to attempt to retrieve the document from the server.)"))}catch(W){const pe=ac(W,`Failed to get document '${g} from cache`);E.reject(pe)}}),function(u,g,E){return o.apply(this,arguments)})(yield wf(i),e,t);var o})),t.promise}(t,i._key).then(u=>new dc(e,o,i._key,u,new Jc(null!==u&&u.hasLocalMutations,!0),i.converter))}(this._delegate):"server"===(null==e?void 0:e.source)?function cm(i){i=Ts(i,zo);const e=Ts(i.firestore,qo);return m_(so(e),i._key,{source:"server"}).then(t=>dm(e,i,t))}(this._delegate):function Jv(i){i=Ts(i,zo);const e=Ts(i.firestore,qo);return m_(so(e),i._key).then(t=>dm(e,i,t))}(this._delegate),t.then(o=>new Ff(this.firestore,new dc(this.firestore._delegate,this._userDataWriter,o._key,o._document,o.metadata,this._delegate.converter)))}withConverter(e){return new Tu(this.firestore,this._delegate.withConverter(e?Nd.getInstance(this.firestore,e):null))}}function xl(i,e,t){return i.message=i.message.replace(e,t),i}function Py(i){for(const e of i)if("object"==typeof e&&!mm(e))return e;return{}}function Oy(i,e){var t,o;let u;return u=mm(i[0])?i[0]:mm(i[1])?i[1]:"function"==typeof i[0]?{next:i[0],error:i[1],complete:i[2]}:{next:i[1],error:i[2],complete:i[3]},{next:g=>{u.next&&u.next(e(g))},error:null===(t=u.error)||void 0===t?void 0:t.bind(u),complete:null===(o=u.complete)||void 0===o?void 0:o.bind(u)}}class Ff{constructor(e,t){this._firestore=e,this._delegate=t}get ref(){return new Tu(this._firestore,this._delegate.ref)}get id(){return this._delegate.id}get metadata(){return this._delegate.metadata}get exists(){return this._delegate.exists()}data(e){return this._delegate.data(e)}get(e,t){return this._delegate.get(e,t)}isEqual(e){return Mh(this._delegate,e._delegate)}}class Yf extends Ff{data(e){const t=this._delegate.data(e);return function lo(i,e){i||qn()}(void 0!==t),t}}class Ll{constructor(e,t){this.firestore=e,this._delegate=t,this._userDataWriter=new _m(e)}where(e,t,o){try{return new Ll(this.firestore,Ac(this._delegate,function dy(i,e,t){const o=e,u=If("where",i);return yh._create(u,o,t)}(e,t,o)))}catch(u){throw xl(u,/(orderBy|where)\(\)/,"Query.$1()")}}orderBy(e,t){try{return new Ll(this.firestore,Ac(this._delegate,function Zv(i,e="asc"){const t=e,o=If("orderBy",i);return Pc._create(o,t)}(e,t)))}catch(o){throw xl(o,/(orderBy|where)\(\)/,"Query.$1()")}}limit(e){try{return new Ll(this.firestore,Ac(this._delegate,function vh(i){return $g("limit",i),um._create("limit",i,"F")}(e)))}catch(t){throw xl(t,"limit()","Query.limit()")}}limitToLast(e){try{return new Ll(this.firestore,Ac(this._delegate,function yb(i){return $g("limitToLast",i),um._create("limitToLast",i,"L")}(e)))}catch(t){throw xl(t,"limitToLast()","Query.limitToLast()")}}startAt(...e){try{return new Ll(this.firestore,Ac(this._delegate,function vb(...i){return bh._create("startAt",i,!0)}(...e)))}catch(t){throw xl(t,"startAt()","Query.startAt()")}}startAfter(...e){try{return new Ll(this.firestore,Ac(this._delegate,function py(...i){return bh._create("startAfter",i,!1)}(...e)))}catch(t){throw xl(t,"startAfter()","Query.startAfter()")}}endBefore(...e){try{return new Ll(this.firestore,Ac(this._delegate,function bb(...i){return xf._create("endBefore",i,!1)}(...e)))}catch(t){throw xl(t,"endBefore()","Query.endBefore()")}}endAt(...e){try{return new Ll(this.firestore,Ac(this._delegate,function Mr(...i){return xf._create("endAt",i,!0)}(...e)))}catch(t){throw xl(t,"endAt()","Query.endAt()")}}isEqual(e){return nm(this._delegate,e._delegate)}get(e){let t;return t="cache"===(null==e?void 0:e.source)?function by(i){i=Ts(i,$a);const e=Ts(i.firestore,qo),t=so(e),o=new ed(e);return function Ug(i,e){const t=new br;return i.asyncQueue.enqueueAndForget((0,je.Z)(function*(){return(o=(0,je.Z)(function*(u,g,E){try{const W=yield Fm(u,g,!0),pe=new t_(g,W.ir),Ce=pe.sc(W.documents),et=pe.applyChanges(Ce,!1);E.resolve(et.snapshot)}catch(W){const pe=ac(W,`Failed to execute query '${g} against cache`);E.reject(pe)}}),function(u,g,E){return o.apply(this,arguments)})(yield wf(i),e,t);var o})),t.promise}
1(t,i._query).then(u=>new Xc(e,o,i,u))}(this._delegate):"server"===(null==e?void 0:e.source)?function wy(i){i=Ts(i,$a);const e=Ts(i.firestore,qo),t=so(e),o=new ed(e);return __(t,i._query,{source:"server"}).then(u=>new Xc(e,o,i,u))}(this._delegate):function vy(i){i=Ts(i,$a);const e=Ts(i.firestore,qo),t=so(e),o=new ed(e);return I_(i._query),__(t,i._query).then(u=>new Xc(e,o,i,u))}(this._delegate),t.then(o=>new gm(this.firestore,new Xc(this.firestore._delegate,this._userDataWriter,this._delegate,o._snapshot)))}onSnapshot(...e){const t=Py(e),o=Oy(e,u=>new gm(this.firestore,new Xc(this.firestore._delegate,this._userDataWriter,this._delegate,u._snapshot)));return Ty(this._delegate,t,o)}withConverter(e){return new Ll(this.firestore,this._delegate.withConverter(e?Nd.getInstance(this.firestore,e):null))}}class Ry{constructor(e,t){this._firestore=e,this._delegate=t}get type(){return this._delegate.type}get doc(){return new Yf(this._firestore,this._delegate.doc)}get oldIndex(){return this._delegate.oldIndex}get newIndex(){return this._delegate.newIndex}}class gm{constructor(e,t){this._firestore=e,this._delegate=t}get query(){return new Ll(this._firestore,this._delegate.query)}get metadata(){return this._delegate.metadata}get size(){return this._delegate.size}get empty(){return this._delegate.empty}get docs(){return this._delegate.docs.map(e=>new Yf(this._firestore,e))}docChanges(e){return this._delegate.docChanges(e).map(t=>new Ry(this._firestore,t))}forEach(e,t){this._delegate.forEach(o=>{e.call(t,new Yf(this._firestore,o))})}isEqual(e){return Mh(this._delegate,e._delegate)}}class Eh extends Ll{constructor(e,t){super(e,t),this.firestore=e,this._delegate=t}get id(){return this._delegate.id}get path(){return this._delegate.path}get parent(){const e=this._delegate.parent;return e?new Tu(this.firestore,e):null}doc(e){try{return new Tu(this.firestore,void 0===e?Tf(this._delegate):Tf(this._delegate,e))}catch(t){throw xl(t,"doc()","CollectionReference.doc()")}}add(e){return function e0(i,e){const t=Ts(i.firestore,qo),o=Tf(i),u=Qo(i.converter,e);return Rd(t,[Cf(Qc(i.firestore),"addDoc",o._key,u,null!==i.converter,{}).toMutation(o._key,no.exists(!1))]).then(()=>o)}(this._delegate,e).then(t=>new Tu(this.firestore,t))}isEqual(e){return Jg(this._delegate,e._delegate)}withConverter(e){return new Eh(this.firestore,this._delegate.withConverter(e?Nd.getInstance(this.firestore,e):null))}}function Fd(i){return Ts(i,zo)}class ym{constructor(...e){this._delegate=new Lc(...e)}static documentId(){return new ym(uo.keyField().canonicalString())}isEqual(e){return(e=(0,Re.m9)(e))instanceof Lc&&this._delegate._internalPath.isEqual(e._internalPath)}}class Yd{constructor(e){this._delegate=e}static serverTimestamp(){const e=function Cy(){return new E_("serverTimestamp")}();return e._methodName="FieldValue.serverTimestamp",new Yd(e)}static delete(){const e=function f0(){return new _h("deleteField")}();return e._methodName="FieldValue.delete",new Yd(e)}static arrayUnion(...e){const t=function p0(...i){return new jv("arrayUnion",i)}(...e);return t._methodName="FieldValue.arrayUnion",new Yd(t)}static arrayRemove(...e){const t=function m0(...i){return new Vv("arrayRemove",i)}(...e);return t._methodName="FieldValue.arrayRemove",new Yd(t)}static increment(e){const t=function Dh(i){return new zv("increment",i)}(e);return t._methodName="FieldValue.increment",new Yd(t)}isEqual(e){return this._delegate.isEqual(e._delegate)}}const v0={Firestore:Ly,GeoPoint:mh,Timestamp:to,Blob:Nf,Transaction:Ay,WriteBatch:L_,DocumentReference:Tu,DocumentSnapshot:Ff,Query:Ll,QueryDocumentSnapshot:Yf,QuerySnapshot:gm,CollectionReference:Eh,FieldPath:ym,FieldValue:Yd,setLogLevel:function x_(i){!function Sn(i){xt.setLogLevel(i)}(i)},CACHE_SIZE_UNLIMITED:-1};!function A_(i){(function b0(i,e){i.INTERNAL.registerComponent(new ut.wA("firestore-compat",t=>{const o=t.getProvider("app-compat").getImmediate(),u=t.getProvider("firestore").getImmediate();return e(o,u)},"PUBLIC").setServiceProps(Object.assign({},v0)))})(i,(e,t)=>new Ly(e,t,new y0)),i.registerVersion("@firebase/firestore-compat","0.3.12")}(rt.Z);var hc=b(1205),Ny=b(2313),P_=b(9260);function Fy(i,e){return function w0(i,e=s.z){return new m.y(t=>{let o;return null!=e?e.schedule(()=>{o=i.onSnapshot({includeMetadataChanges:!0},t)}):o=i.onSnapshot({includeMetadataChanges:!0},t),()=>{null!=o&&o()}})}(i,e)}function R_(i,e){return Fy(i,e).pipe((0,we.U)(t=>({payload:t,type:"query"})))}function Bf(i,e){return R_(i,e).pipe((0,q.O)(void 0),re(),(0,we.U)(([t,o])=>{const u=o.payload.docChanges(),g=u.map(E=>
1({type:E.type,payload:E}));return t&&JSON.stringify(t.payload.metadata)!==JSON.stringify(o.payload.metadata)&&o.payload.docs.forEach((E,W)=>{const pe=u.find(et=>et.doc.ref.isEqual(E.ref)),Ce=null==t?void 0:t.payload.docs.find(et=>et.ref.isEqual(E.ref));pe&&JSON.stringify(pe.doc.metadata)===JSON.stringify(E.metadata)||!pe&&Ce&&JSON.stringify(Ce.metadata)===JSON.stringify(E.metadata)||g.push({type:"modified",payload:{oldIndex:W,newIndex:W,type:"modified",doc:E}})}),g}))}function Yy(i,e,t){return Bf(i,t).pipe((0,be.R)((o,u)=>function By(i,e,t){return e.forEach(o=>{t.indexOf(o.type)>-1&&(i=function Hy(i,e){switch(e.type){case"added":if(!i[e.newIndex]||!i[e.newIndex].doc.ref.isEqual(e.doc.ref))return N_(i,e.newIndex,0,e);break;case"modified":if(null==i[e.oldIndex]||i[e.oldIndex].doc.ref.isEqual(e.doc.ref)){if(e.oldIndex!==e.newIndex){const t=i.slice();return t.splice(e.oldIndex,1),t.splice(e.newIndex,0,e),t}return N_(i,e.newIndex,1,e)}break;case"removed":if(i[e.oldIndex]&&i[e.oldIndex].doc.ref.isEqual(e.doc.ref))return N_(i,e.oldIndex,1)}return i}(i,o))}),i}(o,u.map(g=>g.payload),e),[]),(0,ke.x)(),(0,we.U)(o=>o.map(u=>({type:u.type,payload:u}))))}function N_(i,e,t,...o){const u=i.slice();return u.splice(e,t,...o),u}function M0(i){return(!i||0===i.length)&&(i=["added","removed","modified"]),i}class Uy{constructor(e,t,o){this.ref=e,this.query=t,this.afs=o}stateChanges(e){let t=Bf(this.query,this.afs.schedulers.outsideAngular);return e&&e.length>0&&(t=t.pipe((0,we.U)(o=>o.filter(u=>e.indexOf(u.type)>-1)))),t.pipe((0,q.O)(void 0),re(),(0,Ze.h)(([o,u])=>u.length>0||!o),(0,we.U)(([o,u])=>u),C.iC)}auditTrail(e){return this.stateChanges(e).pipe((0,be.R)((t,o)=>[...t,...o],[]))}snapshotChanges(e){const t=M0(e);return Yy(this.query,t,this.afs.schedulers.outsideAngular).pipe(C.iC)}valueChanges(e={}){return R_(this.query,this.afs.schedulers.outsideAngular).pipe((0,we.U)(t=>t.payload.docs.map(o=>e.idField?Object.assign(Object.assign({},o.data()),{[e.idField]:o.id}):o.data())),C.iC)}get(e){return(0,k.D)(this.query.get(e)).pipe(C.iC)}add(e){return this.ref.add(e)}doc(e){return new Hf(this.ref.doc(e),this.afs)}}class Hf{constructor(e,t){this.ref=e,this.afs=t}set(e,t){return this.ref.set(e,t)}update(e){return this.ref.update(e)}delete(){return this.ref.delete()}collection(e,t){const o=this.ref.collection(e),{ref:u,query:g}=F_(o,t);return new Uy(u,g,this.afs)}snapshotChanges(){return function O_(i,e){return Fy(i,e).pipe((0,q.O)(void 0),re(),(0,we.U)(([t,o])=>o.exists?(null==t?void 0:t.exists)?{payload:o,type:"modified"}:{payload:o,type:"added"}:{payload:o,type:"removed"}))}(this.ref,this.afs.schedulers.outsideAngular).pipe(C.iC)}valueChanges(e={}){return this.snapshotChanges().pipe((0,we.U)(({payload:t})=>e.idField?Object.assign(Object.assign({},t.data()),{[e.idField]:t.id}):t.data()))}get(e){return(0,k.D)(this.ref.get(e)).pipe(C.iC)}}class T0{constructor(e,t){this.query=e,this.afs=t}stateChanges(e){return e&&0!==e.length?Bf(this.query,this.afs.schedulers.outsideAngular).pipe((0,we.U)(t=>t.filter(o=>e.indexOf(o.type)>-1)),(0,Ze.h)(t=>t.length>0),C.iC):Bf(this.query,this.afs.schedulers.outsideAngular).pipe(C.iC)}auditTrail(e){return this.stateChanges(e).pipe((0,be.R)((t,o)=>[...t,...o],[]))}snapshotChanges(e){const t=M0(e);return Yy(this.query,t,this.afs.schedulers.outsideAngular).pipe(C.iC)}valueChanges(e={}){return R_(this.query,this.afs.schedulers.outsideAngular).pipe((0,we.U)(o=>o.payload.docs.map(u=>e.idField?Object.assign({[e.idField]:u.id},u.data()):u.data())),C.iC)}get(e){return(0,k.D)(this.query.get(e)).pipe(C.iC)}}const Bd=new h.OlP("angularfire2.enableFirestorePersistence"),Ch=new h.OlP("angularfire2.firestore.persistenceSettings"),D0=new h.OlP("angularfire2.firestore.settings"),Eb=new h.OlP("angularfire2.firestore.use-emulator");function F_(i,e=(t=>t)){return{query:e(i),ref:i}}let jy=(()=>{class i{constructor(t,o,u,g,E,W,pe,Ce,et,It,on,An,di,Ai,Oi,xr,As){this.schedulers=pe;const Lr=(0,Ye.on)(t,W,o),pa=et;It&&(0,hc.nw)(Lr,W,on,di,Ai,Oi,An,xr),[this.firestore,this.persistenceEnabled$]=(0,Ye.cc)(`${Lr.name}.firestore`,"AngularFirestore",Lr.name,()=>{const Ao=W.runOutsideAngular(()=>Lr.firestore());if(g&&Ao.settings(g),pa&&Ao.useEmulator(...pa),u&&!(0,$e.PM)(E)){const Po=()=>{try{return(0,k.D)(Ao.enablePersistence(Ce||void 0).then(()=>!0,()=>!1))}catch(Al){return"undefined"!=typeof console&&console.warn(Al),(0,v.of)(!1)}};return[Ao,W.runOutsideAngular(Po)]}return[Ao,(0,v.of)(!1)]},[g,pa,u])}collection(t,o){let u;u="string"==typeof t?this.firestore.collection(t):t;const{ref:g,query:E}=F_(u,o),W=this.schedulers.ngZone.run(()=>g);return new Uy(W,E,this)}collectionGroup(t,o){const u=o||(E=>E),g=this.firestore.collectionGroup(t);return new T0(u(g),this)}doc(t){let o;o="string"==typeof t?this.firestore.doc(t):t;const u=this.schedulers.ngZone.run(()=>o);return new Hf(u,this)}createId(){return this.firestore.collection("_").doc().id}}return i.\u0275fac=function(t){return new(t||i)(h.LFG(Ye.Dh),h.LFG(Ye.xv,8),h.LFG(Bd,8),h.LFG(D0,8),h.LFG(h.Lbi),h.LFG(h.R0b),h.LFG(C.HU),h.LFG(Ch,8),h.LFG(Eb,8),h.LFG(hc.zQ,8),h.LFG(hc.Qv,8),h.LFG(hc.L6,8),h.LFG(hc._Q,8),h.LFG(hc.rT,8),h.LFG(hc.lh,8),h.LFG(hc.f7,8),h.LFG(Ny.nm,8))},i.\u0275prov=h.Yz7({token:i,factory:i.\u0275fac,providedIn:"any"}),i})(),E0=(()=>{class i{constructor(){P_.Z.registerVersion("angularfire",C.q4.full,"fst-compat")}static enablePersistence(t){return{ngModule:i,providers:[{provide:Bd,useValue:!0},{provide:Ch,useValue:t}]}}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=h.oAB({type:i}),i.\u0275inj=h.cJS({providers:[jy]}),i})()},2011:(_t,Ue,b)=>{"use strict";b.d(Ue,{Dh:()=>te,GT:()=>C,cc:()=>Ze,hO:()=>ke,on:()=>re,pX:()=>v,xv:()=>_e});var h=b(5e3),s=b(9260),m=b(4976);_t=b.hmd(_t);const k=["ngOnDestroy"],v=(rt,je,zt,ut={})=>new Proxy(rt,{get:(ze,Re)=>zt.runOutsideAngular(()=>{var tt;if(rt[Re])return(null===(tt=null==ut?void 0:ut.spy)||void 0===tt?void 0:tt.get)&&ut.spy.get(Re,rt[Re]),rt[Re];if(k.indexOf(Re)>-1)return()=>{};const Fe=je.toPromise().then(me=>{const gt=me&&me[Re];return"function"==typeof gt?gt.bind(me):gt&>.then?gt.then(Bt=>zt.run(()=>Bt)):zt.run(()=>gt)});return new Proxy(()=>{},{get:(me,gt)=>Fe[gt],apply:(me,gt,Bt)=>Fe.then(pn=>{var mn;const jn=pn&&pn(...Bt);return(null===(mn=null==ut?void 0:ut.spy)||void 0===mn?void 0:mn.apply)&&ut.spy.apply(Re,Bt,jn),jn})})})}),C=(rt,je)=>{je.forEach(zt=>{Object.getOwnPropertyNames(zt.prototype||zt).forEach(ut=>{Object.defineProperty(rt.prototype,ut,Object.getOwnPropertyDescriptor(zt.prototype||zt,ut))})})};class q{constructor(je){return je}}const te=new h.OlP("angularfire2.app.options"),_e=new h.OlP("angularfire2.app.name");function re(rt,je,zt){const ze="object"==typeof zt&&zt||{};ze.name=ze.name||"string"==typeof zt&&zt||"[DEFAULT]";const tt=s.Z.apps.filter(Fe=>Fe&&Fe.name===ze.name)[0]||je.runOutsideAngular(()=>s.Z.initializeApp(rt,ze));try{JSON.stringify(rt)!==JSON.stringify(tt.options)&&we("error",`${tt.name} Firebase App already initialized with different options${_t.hot?", you may
1need to reload as Firebase is not HMR aware.":"."}`)}catch(Fe){}return new q(tt)}const we=(rt,...je)=>{(0,h.X6Q)()&&"undefined"!=typeof console&&console[rt](...je)},be={provide:q,useFactory:re,deps:[te,h.R0b,[new h.FiY,_e]]};let ke=(()=>{class rt{constructor(zt){s.Z.registerVersion("angularfire",m.q4.full,"core"),s.Z.registerVersion("angularfire",m.q4.full,"app-compat"),s.Z.registerVersion("angular",h.q4F.full,zt.toString())}static initializeApp(zt,ut){return{ngModule:rt,providers:[{provide:te,useValue:zt},{provide:_e,useValue:ut}]}}}return rt.\u0275fac=function(zt){return new(zt||rt)(h.LFG(h.Lbi))},rt.\u0275mod=h.oAB({type:rt}),rt.\u0275inj=h.cJS({providers:[be]}),rt})();function Ze(rt,je,zt,ut,ze){const[,Re,tt]=globalThis.\u0275AngularfireInstanceCache.find(Fe=>Fe[0]===rt)||[];if(Re)return function Ye(rt,je){try{return rt.toString()===je.toString()}catch(zt){return rt===je}}(ze,tt)||(Te("error",`${je} was already initialized on the ${zt} Firebase App with different settings.${$e?" You may need to reload as Firebase is not HMR aware.":""}`),Te("warn",{is:ze,was:tt})),Re;{const Fe=ut();return globalThis.\u0275AngularfireInstanceCache.push([rt,Fe,ze]),Fe}}const $e=!!_t.hot,Te=(rt,...je)=>{(0,h.X6Q)()&&"undefined"!=typeof console&&console[rt](...je)};globalThis.\u0275AngularfireInstanceCache||(globalThis.\u0275AngularfireInstanceCache=[])},4976:(_t,Ue,b)=>{"use strict";b.d(Ue,{q4:()=>ss,iC:()=>Lu,HU:()=>ka,vb:()=>Nr,JM:()=>ir,u3:()=>Fl});var h=b(5e3),s=b(259),m=b(5861),k=b(6881),v=b(2090),C=b(4859),q=b(1877);let _e,re;const ke=new WeakMap,Ze=new WeakMap,Ye=new WeakMap,$e=new WeakMap,Te=new WeakMap;let zt={get(V,ne,Ie){if(V instanceof IDBTransaction){if("done"===ne)return Ze.get(V);if("objectStoreNames"===ne)return V.objectStoreNames||Ye.get(V);if("store"===ne)return Ie.objectStoreNames[1]?void 0:Ie.objectStore(Ie.objectStoreNames[0])}return tt(V[ne])},set:(V,ne,Ie)=>(V[ne]=Ie,!0),has:(V,ne)=>V instanceof IDBTransaction&&("done"===ne||"store"===ne)||ne in V};function Re(V){return"function"==typeof V?function ze(V){return V!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function be(){return re||(re=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(V)?function(...ne){return V.apply(Fe(this),ne),tt(ke.get(this))}:function(...ne){return tt(V.apply(Fe(this),ne))}:function(ne,...Ie){const pt=V.call(Fe(this),ne,...Ie);return Ye.set(pt,ne.sort?ne.sort():[ne]),tt(pt)}}(V):(V instanceof IDBTransaction&&function je(V){if(Ze.has(V))return;const ne=new Promise((Ie,pt)=>{const jt=()=>{V.removeEventListener("complete",Xt),V.removeEventListener("error",wn),V.removeEventListener("abort",wn)},Xt=()=>{Ie(),jt()},wn=()=>{pt(V.error||new DOMException("AbortError","AbortError")),jt()};V.addEventListener("complete",Xt),V.addEventListener("error",wn),V.addEventListener("abort",wn)});Ze.set(V,ne)}(V),((V,ne)=>ne.some(Ie=>V instanceof Ie))(V,function we(){return _e||(_e=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(V,zt):V)}function tt(V){if(V instanceof IDBRequest)return function rt(V){const ne=new Promise((Ie,pt)=>{const jt=()=>{V.removeEventListener("success",Xt),V.removeEventListener("error",wn)},Xt=()=>{Ie(tt(V.result)),jt()},wn=()=>{pt(V.error),jt()};V.addEventListener("success",Xt),V.addEventListener("error",wn)});return ne.then(Ie=>{Ie instanceof IDBCursor&&ke.set(Ie,V)}).catch(()=>{}),Te.set(ne,V),ne}(V);if($e.has(V))return $e.get(V);const ne=Re(V);return ne!==V&&($e.set(V,ne),Te.set(ne,V)),ne}const Fe=V=>Te.get(V),Bt=["get","getKey","getAll","getAllKeys","count"],pn=["put","add","delete","clear"],mn=new Map;function jn(V,ne){if(!(V instanceof IDBDatabase)||ne in V||"string"!=typeof ne)return;if(mn.get(ne))return mn.get(ne);const Ie=ne.replace(/FromIndex$/,""),pt=ne!==Ie,jt=pn.includes(Ie);if(!(Ie in(pt?IDBIndex:IDBObjectStore).prototype)||!jt&&!Bt.includes(Ie))return;const Xt=function(){var wn=(0,m.Z)(function*(gi,...fi){const zi=this.transaction(gi,jt?"readwrite":"readonly");let pr=zi.store;return pt&&(pr=pr.index(fi.shift())),(yield Promise.all([pr[Ie](...fi),jt&&zi.done]))[0]});return function(fi){return wn.apply(this,arguments)}}();return mn.set(ne,Xt),Xt}!function ut(V){zt=V(zt)}(V=>Jy(Qy({},V),{get:(ne,Ie,pt)=>jn(ne,Ie)||V.get(ne,Ie,pt),has:(ne,Ie)=>!!jn(ne,Ie)||V.has(ne,Ie)}));const en="@firebase/installations",Bn="w:0.6.4",Dn="FIS_v2",ct=ne
1w v.LL("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function st(V){return V instanceof v.ZR&&V.code.includes("request-failed")}function vt({projectId:V}){return`https://firebaseinstallations.googleapis.com/v1/projects/${V}/installations`}function ft(V){return{token:V.token,requestStatus:2,expiresIn:vi(V.expiresIn),creationTime:Date.now()}}function Ut(V,ne){return tn.apply(this,arguments)}function tn(){return(tn=(0,m.Z)(function*(V,ne){const pt=(yield ne.json()).error;return ct.create("request-failed",{requestName:V,serverCode:pt.code,serverMessage:pt.message,serverStatus:pt.status})})).apply(this,arguments)}function _n({apiKey:V}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":V})}function bn(V,{refreshToken:ne}){const Ie=_n(V);return Ie.append("Authorization",function Vn(V){return`${Dn} ${V}`}(ne)),Ie}function pi(V){return si.apply(this,arguments)}function si(){return(si=(0,m.Z)(function*(V){const ne=yield V();return ne.status>=500&&ne.status<600?V():ne})).apply(this,arguments)}function vi(V){return Number(V.replace("s","000"))}function Rn(V,ne){return Ve.apply(this,arguments)}function Ve(){return(Ve=(0,m.Z)(function*({appConfig:V,heartbeatServiceProvider:ne},{fid:Ie}){const pt=vt(V),jt=_n(V),Xt=ne.getImmediate({optional:!0});if(Xt){const zi=yield Xt.getHeartbeatsHeader();zi&&jt.append("x-firebase-client",zi)}const gi={method:"POST",headers:jt,body:JSON.stringify({fid:Ie,authVersion:Dn,appId:V.appId,sdkVersion:Bn})},fi=yield pi(()=>fetch(pt,gi));if(fi.ok){const zi=yield fi.json();return{fid:zi.fid||Ie,registrationStatus:2,refreshToken:zi.refreshToken,authToken:ft(zi.authToken)}}throw yield Ut("Create Installation",fi)})).apply(this,arguments)}function Pt(V){return new Promise(ne=>{setTimeout(ne,V)})}const ue=/^[cdef][\w-]{21}$/;function ae(){try{const V=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(V),V[0]=112+V[0]%16;const Ie=function Me(V){return function $(V){return btoa(String.fromCharCode(...V)).replace(/\+/g,"-").replace(/\//g,"_")}(V).substr(0,22)}(V);return ue.test(Ie)?Ie:""}catch(V){return""}}function nt(V){return`${V.appName}!${V.appId}`}const Tt=new Map;function Zt(V,ne){const Ie=nt(V);Cn(Ie,ne),function Nn(V,ne){const Ie=function ni(){return!Si&&"BroadcastChannel"in self&&(Si=new BroadcastChannel("[Firebase] FID Change"),Si.onmessage=V=>{Cn(V.data.key,V.data.fid)}),Si}();Ie&&Ie.postMessage({key:V,fid:ne}),function Qn(){0===Tt.size&&Si&&(Si.close(),Si=null)}()}(Ie,ne)}function Cn(V,ne){const Ie=Tt.get(V);if(Ie)for(const pt of Ie)pt(ne)}let Si=null;const Se="firebase-installations-store";let Ke=null;function Ee(){return Ke||(Ke=function me(V,ne,{blocked:Ie,upgrade:pt,blocking:jt,terminated:Xt}={}){const wn=indexedDB.open(V,ne),gi=tt(wn);return pt&&wn.addEventListener("upgradeneeded",fi=>{pt(tt(wn.result),fi.oldVersion,fi.newVersion,tt(wn.transaction))}),Ie&&wn.addEventListener("blocked",()=>Ie()),gi.then(fi=>{Xt&&fi.addEventListener("close",()=>Xt()),jt&&fi.addEventListener("versionchange",()=>jt())}).catch(()=>{}),gi}("firebase-installations-database",1,{upgrade:(V,ne)=>{0===ne&&V.createObjectStore(Se)}})),Ke}
1function Be(V,ne){return at.apply(this,arguments)}function at(){return(at=(0,m.Z)(function*(V,ne){const Ie=nt(V),jt=(yield Ee()).transaction(Se,"readwrite"),Xt=jt.objectStore(Se),wn=yield Xt.get(Ie);return yield Xt.put(ne,Ie),yield jt.done,(!wn||wn.fid!==ne.fid)&&Zt(V,ne.fid),ne})).apply(this,arguments)}function Ot(V){return mt.apply(this,arguments)}function mt(){return(mt=(0,m.Z)(function*(V){const ne=nt(V),pt=(yield Ee()).transaction(Se,"readwrite");yield pt.objectStore(Se).delete(ne),yield pt.done})).apply(this,arguments)}function yn(V,ne){return ei.apply(this,arguments)}function ei(){return(ei=(0,m.Z)(function*(V,ne){const Ie=nt(V),jt=(yield Ee()).transaction(Se,"readwrite"),Xt=jt.objectStore(Se),wn=yield Xt.get(Ie),gi=ne(wn);return void 0===gi?yield Xt.delete(Ie):yield Xt.put(gi,Ie),yield jt.done,gi&&(!wn||wn.fid!==gi.fid)&&Zt(V,gi.fid),gi})).apply(this,arguments)}function ht(V){return Oe.apply(this,arguments)}function Oe(){return(Oe=(0,m.Z)(function*(V){let ne;const Ie=yield yn(V.appConfig,pt=>{const jt=De(pt),Xt=U(V,jt);return ne=Xt.registrationPromise,Xt.installationEntry});return""===Ie.fid?{installationEntry:yield ne}:{installationEntry:Ie,registrationPromise:ne}})).apply(this,arguments)}function De(V){return St(V||{fid:ae(),registrationStatus:0})}function U(V,ne){if(0===ne.registrationStatus){if(!navigator.onLine)return{installationEntry:ne,registrationPromise:Promise.reject(ct.create("app-offline"))};const Ie={fid:ne.fid,registrationStatus:1,registrationTime:Date.now()},pt=function N(V,ne){return x.apply(this,arguments)}(V,Ie);return{installationEntry:Ie,registrationPromise:pt}}return 1===ne.registrationStatus?{installationEntry:ne,registrationPromise:j(V)}:{installationEntry:ne}}function x(){return(x=(0,m.Z)(function*(V,ne){try{const Ie=yield Rn(V,ne);return Be(V.appConfig,Ie)}catch(Ie){throw st(Ie)&&409===Ie.customData.serverCode?yield Ot(V.appConfig):yield Be(V.appConfig,{fid:ne.fid,registrationStatus:0}),Ie}})).apply(this,arguments)}function j(V){return de.apply(this,arguments)}function de(){return(de=(0,m.Z)(function*(V){let ne=yield Je(V.appConfig);for(;1===ne.registrationStatus;)yield Pt(100),ne=yield Je(V.appConfig);if(0===ne.registrationStatus){const{installationEntry:Ie,registrationPromise:pt}=yield ht(V);return pt||Ie}return ne})).apply(this,arguments)}function Je(V){return yn(V,ne=>{if(!ne)throw ct.create("installation-not-found");return St(ne)})}function St(V){return function Ht(V){return 1===V.registrationStatus&&V.registrationTime+1e4<Date.now()}(V)?{fid:V.fid,registrationStatus:0}:V}function kn(V,ne){return Jn.apply(this,arguments)}function Jn(){return(Jn=(0,m.Z)(function*({appConfig:V,heartbeatServiceProvider:ne},Ie){const pt=ii(V,Ie),jt=bn(V,Ie),Xt=ne.getImmediate({optional:!0});if(Xt){const zi=yield Xt.getHeartbeatsHeader();zi&&jt.append("x-firebase-client",zi)}const gi={method:"POST",headers:jt,body:JSON.stringify({installation:{sdkVersion:Bn,appId:V.appId}})},fi=yield pi(()=>fetch(pt,gi));if(fi.ok)return ft(yield fi.json());throw yield Ut("Generate Auth Token",fi)})).apply(this,arguments)}function ii(V,{fid:ne}){return`${vt(V)}/${ne}/authTokens:generate`}function Ii(V){return Cr.apply(this,arguments)}function Cr(){return(Cr=(0,m.Z)(function*(V,ne=!1){let Ie;const pt=yield yn(V.appConfig,Xt=>{if(!ai(Xt))throw ct.create("not-registered");const wn=Xt.authToken;if(!ne&&Hi(wn))return Xt;if(1===wn.requestStatus)return Ie=rn(V,ne),Xt;{if(!navigator.onLine)throw ct.create("app-offline");const gi=Ji(Xt);return Ie=fn(V,gi),gi}});return Ie?yield Ie:pt.authToken})).apply(this,arguments)}function rn(V,ne){return qt.apply(this,arguments)}function qt(){return(qt=(0,m.Z)(function*(V,ne){let Ie=yield xn(V.appConfig);for(;1===Ie.authToken.requestStatus;)yield Pt(100),Ie=yield xn(V.appConfig);const pt=Ie.authToken;return 0===pt.requestStatus?Ii(V,ne):pt})).apply(this,arguments)}function xn(V){return yn(V,ne=>{if(!ai(ne))throw ct.create("not-registered");return function Pr(V){return 1===V.requestStatus&&V.requestTime+1e4<Date.now()}(ne.authToken)?Object.assign(Object.assign({},ne),{authToken:{requestStatus:0}}):ne})}function fn(V,ne){return zn.apply(this,arguments)}function zn(){return(zn=(0,m.Z)(function*(V,ne){try{const Ie=yield kn(V,ne),pt=Object.assign(Object.assign({},ne),{authToken:Ie});return yield Be(V.appConfig,pt),Ie}catch(Ie){if(!st(Ie)||401!==Ie.customData.serverCode&&404!==Ie.customData.serverCode){const pt=Object.assign(Object.assign({},ne),{authToken:{requestStatus:0}});yield Be(V.appConfig,pt)}else yield Ot(V.appConfig);throw Ie}})).apply(this,arguments)}function ai(V){return void 0!==V&&2===V.registrationStatus}function Hi(V){return 2===V.requestStatus&&!function _r(V){const ne=Date.now();return ne<V.creationTime||V.creationTime+V.expiresIn<ne+36e5}(V)}function Ji(V){const ne={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},V),{authToken:ne})}function Ur(){return(Ur=(0,m.Z)(function*(V){const ne=V,{installationEntry:Ie,registrationPromise:pt}=yield ht(ne);return pt?pt.catch(console.error):Ii(ne).catch(console.error),Ie.fid})).apply(this,arguments)}function Ni(){return(Ni=(0,m.Z)(function*(V,ne=!1){const Ie=V;return yield Gr(Ie),(yield Ii(Ie,ne)).token}
1)).apply(this,arguments)}function Gr(V){return jr.apply(this,arguments)}function jr(){return(jr=(0,m.Z)(function*(V){const{registrationPromise:ne}=yield ht(V);ne&&(yield ne)})).apply(this,arguments)}function Ft(V){return ct.create("missing-app-config-values",{valueName:V})}const $t="installations",Un=V=>{const ne=V.getProvider("app").getImmediate(),Ie=function Nt(V){if(!V||!V.options)throw Ft("App Configuration");if(!V.name)throw Ft("App Name");const ne=["projectId","apiKey","appId"];for(const Ie of ne)if(!V.options[Ie])throw Ft(Ie);return{appName:V.name,projectId:V.options.projectId,apiKey:V.options.apiKey,appId:V.options.appId}}(ne);return{app:ne,appConfig:Ie,heartbeatServiceProvider:(0,k._getProvider)(ne,"heartbeat"),_delete:()=>Promise.resolve()}},Mi=V=>{const ne=V.getProvider("app").getImmediate(),Ie=(0,k._getProvider)(ne,$t).getImmediate();return{getId:()=>function ki(V){return Ur.apply(this,arguments)}(Ie),getToken:jt=>function ms(V){return Ni.apply(this,arguments)}(Ie,jt)}};(function Fi(){(0,k._registerComponent)(new C.wA($t,Un,"PUBLIC")),(0,k._registerComponent)(new C.wA("installations-internal",Mi,"PRIVATE"))})(),(0,k.registerVersion)(en,"0.6.4"),(0,k.registerVersion)(en,"0.6.4","esm2017");const oi="@firebase/remote-config",ns=new v.LL("remoteconfig","Remote Config",{"registration-window":"Undefined window object. This SDK only supports usage in a browser environment.","registration-project-id":"Undefined project identifier. Check Firebase app initialization.","registration-api-key":"Undefined API key. Check Firebase app initialization.","registration-app-id":"Undefined app identifier. Check Firebase app initialization.","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}.","storage-delete":"Error thrown when deleting from storage. Original error: {$originalErrorMessage}.","fetch-client-network":"Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-timeout":'The config fetch request timed out. Configure timeout using "fetchTimeoutMillis" SDK setting.',"fetch-throttle":'The config fetch request timed out while in an exponential backoff state. Configure timeout using "fetchTimeoutMillis" SDK setting. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.',"fetch-client-parse":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","indexed-db-unavailable":"Indexed DB is not supported by current browser"});class gs{constructor(ne,Ie,pt,jt){this.client=ne,this.storage=Ie,this.storageCache=pt,this.logger=jt}isCachedDataFresh(ne,Ie){if(!Ie)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;const pt=Date.now()-Ie,jt=pt<=ne;return this.logger.debug(`Config fetch cache check. Cache age millis: ${pt}. Cache max age millis (minimumFetchIntervalMillis setting): ${ne}. Is cache hit: ${jt}.`),jt}fetch(ne){var Ie=this;return(0,m.Z)(function*(){const[pt,jt]=yield Promise.all([Ie.storage.getLastSuccessfulFetchTimestampMillis(),Ie.storage.getLastSuccessfulFetchResponse()]);if(jt&&Ie.isCachedDataFresh(ne.cacheMaxAgeMillis,pt))return jt;ne.eTag=jt&&jt.eTag;const Xt=yield Ie.client.fetch(ne),wn=[Ie.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())];return 200===Xt.status&&wn.push(Ie.storage.setLastSuccessfulFetchResponse(Xt)),yield Promise.all(wn),Xt})()}}function Es(V=navigator){return V.languages&&V.languages[0]||V.language}class Os{constructor(ne,Ie,pt,jt,Xt,wn){this.firebaseInstallations=ne,this.sdkVersion=Ie,this.namespace=pt,this.projectId=jt,this.apiKey=Xt,this.appId=wn}fetch(ne){var Ie=this;return(0,m.Z)(function*(){const[pt,jt]=yield Promise.all([Ie.firebaseInstallations.getId(),Ie.firebaseInstallations.getToken()]),wn=`${window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com"}/v1/projects/${Ie.projectId}/namespaces/${Ie.namespace}
1:fetch?key=${Ie.apiKey}`,gi={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":ne.eTag||"*"},fi={sdk_version:Ie.sdkVersion,app_instance_id:pt,app_instance_id_token:jt,app_id:Ie.appId,language_code:Es()},zi={method:"POST",headers:gi,body:JSON.stringify(fi)},pr=fetch(wn,zi),tr=new Promise((Ha,da)=>{ne.signal.addEventListener(()=>{const zu=new Error("The operation was aborted.");zu.name="AbortError",da(zu)})});let vs;try{yield Promise.race([pr,tr]),vs=yield pr}catch(Ha){let da="fetch-client-network";throw"AbortError"===(null==Ha?void 0:Ha.name)&&(da="fetch-timeout"),ns.create(da,{originalErrorMessage:null==Ha?void 0:Ha.message})}let $o=vs.status;const ps=vs.headers.get("ETag")||void 0;let xo,tl;if(200===vs.status){let Ha;try{Ha=yield vs.json()}catch(da){throw ns.create("fetch-client-parse",{originalErrorMessage:null==da?void 0:da.message})}xo=Ha.entries,tl=Ha.state}if("INSTANCE_STATE_UNSPECIFIED"===tl?$o=500:"NO_CHANGE"===tl?$o=304:("NO_TEMPLATE"===tl||"EMPTY_CONFIG"===tl)&&(xo={}),304!==$o&&200!==$o)throw ns.create("fetch-status",{httpStatus:$o});return{status:$o,eTag:ps,config:xo}})()}}class qs{constructor(ne,Ie){this.client=ne,this.storage=Ie}fetch(ne){var Ie=this;return(0,m.Z)(function*(){const pt=(yield Ie.storage.getThrottleMetadata())||{backoffCount:0,throttleEndTimeMillis:Date.now()};return Ie.attemptFetch(ne,pt)})()}attemptFetch(ne,Ie){var pt=this;return(0,m.Z)(function*(jt,{throttleEndTimeMillis:Xt,backoffCount:wn}){yield function fo(V,ne){return new Promise((Ie,pt)=>{const jt=Math.max(ne-Date.now(),0),Xt=setTimeout(Ie,jt);V.addEventListener(()=>{clearTimeout(Xt),pt(ns.create("fetch-throttle",{throttleEndTimeMillis:ne}))})})}(jt.signal,Xt);try{const gi=yield pt.client.fetch(jt);return yield pt.storage.deleteThrottleMetadata(),gi}catch(gi){if(!function _a(V){if(!(V instanceof v.ZR&&V.customData))return!1;const ne=Number(V.customData.httpStatus);return 429===ne||500===ne||503===ne||504===ne}(gi))throw gi;const fi={throttleEndTimeMillis:Date.now()+(0,v.$s)(wn),backoffCount:wn+1};return yield pt.storage.setThrottleMetadata(fi),pt.attemptFetch(jt,fi)}}).apply(this,arguments)}}class Do{constructor(ne,Ie,pt,jt,Xt){this.app=ne,this._client=Ie,this._storageCache=pt,this._storage=jt,this._logger=Xt,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:6e4,minimumFetchIntervalMillis:432e5},this.defaultConfig={}}get fetchTimeMillis(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1}get lastFetchStatus(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"}}function Yi(V,ne){const Ie=V.target.error||void 0;return ns.create(ne,{originalErrorMessage:Ie&&(null==Ie?void 0:Ie.message)})}const gr="app_namespace_store";class ri{constructor(ne,Ie,pt,jt=function Ri(){return new Promise((V,ne)=>{try{const Ie=indexedDB.open("firebase_remote_config",1);Ie.onerror=pt=>{ne(Yi(pt,"storage-open"))},Ie.onsuccess=pt=>{V(pt.target.result)},Ie.onupgradeneeded=pt=>{0===pt.oldVersion&&pt.target.result.createObjectStore(gr,{keyPath:"compositeKey"})}}catch(Ie){ne(ns.create("storage-open",{originalErrorMessage:null==Ie?void 0:Ie.message}))}})}()){this.appId=ne,this.appName=Ie,this.namespace=pt,this.openDbPromise=jt}getLastFetchStatus(){return this.get("last_fetch_status")}setLastFetchStatus(ne){return this.set("last_fetch_status",ne)}getLastSuccessfulFetchTimestampMillis(){return this.get("last_successful_fetch_timestamp_millis")}setLastSuccessfulFetchTimestampMillis(ne){return this.set("last_successful_fetch_timestamp_millis",ne)}getLastSuccessfulFetchResponse(){return this.get("last_successful_fetch_response")}setLastSuccessfulFetchResponse(ne){return this.set("last_successful_fetch_response",ne)}getActiveConfig(){return this.get("active_config")}setActiveConfig(ne){return this.set("active_config",ne)}getActiveConfigEtag(){return this.get("active_config_etag")}setActiveConfigEtag(ne){return this.set("active_config_etag",ne)}getThrottleMetadata(){return this.get("throttle_metadata")}setThrottleMetadata(ne){return this.set("throttle_metadata",ne)}deleteThrottleMetadata(){return this.delete("throttle_metadata")}get(ne){var Ie=this;return(0,m.Z)(function*(){const pt=yield Ie.openDbPromise;return new Promise((jt,Xt)=>{const gi=pt.transaction([gr],"readonly").objectStore(gr),fi=Ie.createCompositeKey(ne);try{const zi=gi.get(fi);zi.onerror=pr=>
1{Xt(Yi(pr,"storage-get"))},zi.onsuccess=pr=>{const tr=pr.target.result;jt(tr?tr.value:void 0)}}catch(zi){Xt(ns.create("storage-get",{originalErrorMessage:null==zi?void 0:zi.message}))}})})()}set(ne,Ie){var pt=this;return(0,m.Z)(function*(){const jt=yield pt.openDbPromise;return new Promise((Xt,wn)=>{const fi=jt.transaction([gr],"readwrite").objectStore(gr),zi=pt.createCompositeKey(ne);try{const pr=fi.put({compositeKey:zi,value:Ie});pr.onerror=tr=>{wn(Yi(tr,"storage-set"))},pr.onsuccess=()=>{Xt()}}catch(pr){wn(ns.create("storage-set",{originalErrorMessage:null==pr?void 0:pr.message}))}})})()}delete(ne){var Ie=this;return(0,m.Z)(function*(){const pt=yield Ie.openDbPromise;return new Promise((jt,Xt)=>{const gi=pt.transaction([gr],"readwrite").objectStore(gr),fi=Ie.createCompositeKey(ne);try{const zi=gi.delete(fi);zi.onerror=pr=>{Xt(Yi(pr,"storage-delete"))},zi.onsuccess=()=>{jt()}}catch(zi){Xt(ns.create("storage-delete",{originalErrorMessage:null==zi?void 0:zi.message}))}})})()}createCompositeKey(ne){return[this.appId,this.appName,this.namespace,ne].join()}}class xi{constructor(ne){this.storage=ne}getLastFetchStatus(){return this.lastFetchStatus}getLastSuccessfulFetchTimestampMillis(){return this.lastSuccessfulFetchTimestampMillis}getActiveConfig(){return this.activeConfig}loadFromStorage(){var ne=this;return(0,m.Z)(function*(){const Ie=ne.storage.getLastFetchStatus(),pt=ne.storage.getLastSuccessfulFetchTimestampMillis(),jt=ne.storage.getActiveConfig(),Xt=yield Ie;Xt&&(ne.lastFetchStatus=Xt);const wn=yield pt;wn&&(ne.lastSuccessfulFetchTimestampMillis=wn);const gi=yield jt;gi&&(ne.activeConfig=gi)})()}setLastFetchStatus(ne){return this.lastFetchStatus=ne,this.storage.setLastFetchStatus(ne)}setLastSuccessfulFetchTimestampMillis(ne){return this.lastSuccessfulFetchTimestampMillis=ne,this.storage.setLastSuccessfulFetchTimestampMillis(ne)}setActiveConfig(ne){return this.activeConfig=ne,this.storage.setActiveConfig(ne)}}function Ma(){return Ir.apply(this,arguments)}function Ir(){return(Ir=(0,m.Z)(function*(){if(!(0,v.hl)())return!1;try{return yield(0,v.eu)()}catch(V){return!1}})).apply(this,arguments)}let Ne,le;!function Yr(){(0,k._registerComponent)(new C.wA("remote-config",function V(ne,{instanceIdentifier:Ie}){const pt=ne.getProvider("app").getImmediate(),jt=ne.getProvider("installations-internal").getImmediate();if("undefined"==typeof window)throw ns.create("registration-window");if(!(0,v.hl)())throw ns.create("indexed-db-unavailable");const{projectId:Xt,apiKey:wn,appId:gi}=pt.options;if(!Xt)throw ns.create("registration-project-id");if(!wn)throw ns.create("registration-api-key");if(!gi)throw ns.create("registration-app-id");const fi=new ri(gi,pt.name,Ie=Ie||"firebase"),zi=new xi(fi),pr=new q.Yd(oi);pr.logLevel=q.in.ERROR;const tr=new Os(jt,k.SDK_VERSION,Ie,Xt,wn,gi),vs=new qs(tr,fi),$o=new gs(vs,fi,zi,pr),ps=new Do(pt,$o,zi,fi,pr);return function Ui(V){const ne=(0,v.m9)(V);ne._initializePromise||(ne._initializePromise=ne._storageCache.loadFromStorage().then(()=>{ne._isInitializationComplete=!0}))}(ps),ps},"PUBLIC").setMultipleInstances(!0)),(0,k.registerVersion)(oi,"0.4.4"),(0,k.registerVersion)(oi,"0.4.4","esm2017")}();const dn=new WeakMap,hn=new WeakMap,li=new WeakMap,Tr=new WeakMap,Dr=new WeakMap;let Xr={get(V,ne,Ie){if(V instanceof IDBTransaction){if("done"===ne)return hn.get(V);if("objectStoreNames"===ne)return V.objectStoreNames||li.get(V);if("store"===ne)return Ie.objectStoreNames[1]?void 0:Ie.objectStore(Ie.objectStoreNames[0])}return oe(V[ne])},set:(V,ne,Ie)=>(V[ne]=Ie,!0),has:(V,ne)=>V instanceof IDBTransaction&&("done"===ne||"store"===ne)||ne in V};function ge(V){return"function"==typeof V?function as(V){return V!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function Ct(){return le||(le=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(V)?function(...ne){return V.apply(J(this),ne),oe(dn.get(this))}:function(...ne){return oe(V.apply(J(this),ne))}:function(ne,...Ie){const pt=V.call(J(this),ne,...Ie);return li.set(pt,ne.sort?ne.sort():[ne]),oe(pt)}}(V):(V instanceof IDBTransaction&&function $i(V){if(hn.has(V))return;const ne=new Promise((Ie,pt)=>{const jt=()=>{V.removeEventListener("complete",Xt),V.removeEventListener("error",wn),V.removeEventListener("abort",wn)},Xt=()=>{Ie(),jt()},wn=()=>
1{pt(V.error||new DOMException("AbortError","AbortError")),jt()};V.addEventListener("complete",Xt),V.addEventListener("error",wn),V.addEventListener("abort",wn)});hn.set(V,ne)}(V),((V,ne)=>ne.some(Ie=>V instanceof Ie))(V,function qe(){return Ne||(Ne=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(V,Xr):V)}function oe(V){if(V instanceof IDBRequest)return function Xi(V){const ne=new Promise((Ie,pt)=>{const jt=()=>{V.removeEventListener("success",Xt),V.removeEventListener("error",wn)},Xt=()=>{Ie(oe(V.result)),jt()},wn=()=>{pt(V.error),jt()};V.addEventListener("success",Xt),V.addEventListener("error",wn)});return ne.then(Ie=>{Ie instanceof IDBCursor&&dn.set(Ie,V)}).catch(()=>{}),Dr.set(ne,V),ne}(V);if(Tr.has(V))return Tr.get(V);const ne=ge(V);return ne!==V&&(Tr.set(V,ne),Dr.set(ne,V)),ne}const J=V=>Dr.get(V);function We(V,ne,{blocked:Ie,upgrade:pt,blocking:jt,terminated:Xt}={}){const wn=indexedDB.open(V,ne),gi=oe(wn);return pt&&wn.addEventListener("upgradeneeded",fi=>{pt(oe(wn.result),fi.oldVersion,fi.newVersion,oe(wn.transaction))}),Ie&&wn.addEventListener("blocked",()=>Ie()),gi.then(fi=>{Xt&&fi.addEventListener("close",()=>Xt()),jt&&fi.addEventListener("versionchange",()=>jt())}).catch(()=>{}),gi}function gn(V,{blocked:ne}={}){const Ie=indexedDB.deleteDatabase(V);return ne&&Ie.addEventListener("blocked",()=>ne()),oe(Ie).then(()=>{})}const mi=["get","getKey","getAll","getAllKeys","count"],hi=["put","add","delete","clear"],zs=new Map;function Ss(V,ne){if(!(V instanceof IDBDatabase)||ne in V||"string"!=typeof ne)return;if(zs.get(ne))return zs.get(ne);const Ie=ne.replace(/FromIndex$/,""),pt=ne!==Ie,jt=hi.includes(Ie);if(!(Ie in(pt?IDBIndex:IDBObjectStore).prototype)||!jt&&!mi.includes(Ie))return;const Xt=function(){var wn=(0,m.Z)(function*(gi,...fi){const zi=this.transaction(gi,jt?"readwrite":"readonly");let pr=zi.store;return pt&&(pr=pr.index(fi.shift())),(yield Promise.all([pr[Ie](...fi),jt&&zi.done]))[0]});return function(fi){return wn.apply(this,arguments)}}();return zs.set(ne,Xt),Xt}!function hr(V){Xr=V(Xr)}(V=>Jy(Qy({},V),{get:(ne,Ie,pt)=>Ss(ne,Ie)||V.get(ne,Ie,pt),has:(ne,Ie)=>!!Ss(ne,Ie)||V.has(ne,Ie)}));const Qs="/firebase-messaging-sw.js",ks="/firebase-cloud-messaging-push-scope",Fn="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",ra="google.c.a.c_id",yr="google.c.a.c_l",sl="google.c.a.ts",fr="google.c.a.e";var Xo=(()=>{return(V=Xo||(Xo={})).PUSH_RECEIVED="push-received",V.NOTIFICATION_CLICKED="notification-clicked",Xo;var V})();function ls(V){const ne=new Uint8Array(V);return btoa(String.fromCharCode(...ne)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function $r(V){const Ie=(V+"=".repeat((4-V.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),pt=atob(Ie),jt=new Uint8Array(pt.length);for(let Xt=0;Xt<pt.length;++Xt)jt[Xt]=pt.charCodeAt(Xt);return jt}const Eo="fcm_token_details_db",Fo="fcm_token_object_Store";function Is(V){return po.apply(this,arguments)}function po(){return po=(0,m.Z)(function*(V){if("databases"in indexedDB&&!(yield indexedDB.databases()).map(Xt=>Xt.name).includes(Eo))return null;let ne=null;return(yield We(Eo,5,{upgrade:(pt=(0,m.Z)(function*(jt,Xt,wn,gi){var fi;if(Xt<2||!jt.objectStoreNames.contains(Fo))return;const zi=gi.objectStore(Fo),pr=yield zi.index("fcmSenderId").get(V);if(yield zi.clear(),pr)if(2===Xt){const tr=pr;if(!tr.auth||!tr.p256dh||!tr.endpoint)return;ne={token:tr.fcmToken,createTime:null!==(fi=tr.createTime)&&void 0!==fi?fi:Date.now(),subscriptionOptions:{auth:tr.auth,p256dh:tr.p256dh,endpoint:tr.endpoint,swScope:tr.swScope,vapidKey:"string"==typeof tr.vapidKey?tr.vapidKey:ls(tr.vapidKey)}}}else if(3===Xt){const tr=pr;ne={token:tr.fcmToken,createTime:tr.createTime,subscriptionOptions:{auth:ls(tr.auth),p256dh:ls(tr.p256dh),endpoint:tr.endpoint,swScope:tr.swScope,vapidKey:ls(tr.vapidKey)}}}else if(4===Xt){const tr=pr;ne={token:tr.fcmToken,createTime:tr.createTime,subscriptionOptions:{auth:ls(tr.auth),p256dh:ls(tr.p256dh),endpoint:tr.endpoint,swScope:tr.swScope,vapidKey:ls(tr.vapidKey)}}}}
1),function(Xt,wn,gi,fi){return pt.apply(this,arguments)})})).close(),yield gn(Eo),yield gn("fcm_vapid_details_db"),yield gn("undefined"),Pe(ne)?ne:null;var pt}),po.apply(this,arguments)}function Pe(V){if(!V||!V.subscriptionOptions)return!1;const{subscriptionOptions:ne}=V;return"number"==typeof V.createTime&&V.createTime>0&&"string"==typeof V.token&&V.token.length>0&&"string"==typeof ne.auth&&ne.auth.length>0&&"string"==typeof ne.p256dh&&ne.p256dh.length>0&&"string"==typeof ne.endpoint&&ne.endpoint.length>0&&"string"==typeof ne.swScope&&ne.swScope.length>0&&"string"==typeof ne.vapidKey&&ne.vapidKey.length>0}const ce="firebase-messaging-store";let He=null;function dt(){return He||(He=We("firebase-messaging-database",1,{upgrade:(V,ne)=>{0===ne&&V.createObjectStore(ce)}})),He}function Et(V){return kt.apply(this,arguments)}function kt(){return(kt=(0,m.Z)(function*(V){const ne=ji(V),pt=yield(yield dt()).transaction(ce).objectStore(ce).get(ne);if(pt)return pt;{const jt=yield Is(V.appConfig.senderId);if(jt)return yield Kt(V,jt),jt}})).apply(this,arguments)}function Kt(V,ne){return En.apply(this,arguments)}function En(){return(En=(0,m.Z)(function*(V,ne){const Ie=ji(V),jt=(yield dt()).transaction(ce,"readwrite");return yield jt.objectStore(ce).put(ne,Ie),yield jt.done,ne})).apply(this,arguments)}function In(V){return Di.apply(this,arguments)}function Di(){return(Di=(0,m.Z)(function*(V){const ne=ji(V),pt=(yield dt()).transaction(ce,"readwrite");yield pt.objectStore(ce).delete(ne),yield pt.done})).apply(this,arguments)}function ji({appConfig:V}){return V.appId}const Gn=new v.LL("messaging","Messaging",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."});function Qi(V,ne){return vr.apply(this,arguments)}function vr(){return(vr=(0,m.Z)(function*(V,ne){const Ie=yield Zr(V),pt=Or(ne),jt={method:"POST",headers:Ie,body:JSON.stringify(pt)};let Xt;try{Xt=yield(yield fetch(es(V.appConfig),jt)).json()}catch(wn){throw Gn.create("token-subscribe-failed",{errorInfo:null==wn?void 0:wn.toString()})}if(Xt.error)throw Gn.create("token-subscribe-failed",{errorInfo:Xt.error.message});if(!Xt.token)throw Gn.create("token-subscribe-no-token");return Xt.token})).apply(this,arguments)}function Kr(V,ne){return Wr.apply(this,arguments)}function Wr(){return(Wr=(0,m.Z)(function*(V,ne){const Ie=yield Zr(V),pt=Or(ne.subscriptionOptions),jt={method:"PATCH",headers:Ie,body:JSON.stringify(pt)};let Xt;try{Xt=yield(yield fetch(`${es(V.appConfig)}
1/${ne.token}`,jt)).json()}catch(wn){throw Gn.create("token-update-failed",{errorInfo:null==wn?void 0:wn.toString()})}if(Xt.error)throw Gn.create("token-update-failed",{errorInfo:Xt.error.message});if(!Xt.token)throw Gn.create("token-update-no-token");return Xt.token})).apply(this,arguments)}function us(V,ne){return rs.apply(this,arguments)}function rs(){return(rs=(0,m.Z)(function*(V,ne){const pt={method:"DELETE",headers:yield Zr(V)};try{const Xt=yield(yield fetch(`${es(V.appConfig)}/${ne}`,pt)).json();if(Xt.error)throw Gn.create("token-unsubscribe-failed",{errorInfo:Xt.error.message})}catch(jt){throw Gn.create("token-unsubscribe-failed",{errorInfo:null==jt?void 0:jt.toString()})}})).apply(this,arguments)}function es({projectId:V}){return`https://fcmregistrations.googleapis.com/v1/projects/${V}/registrations`}function Zr(V){return ur.apply(this,arguments)}function ur(){return(ur=(0,m.Z)(function*({appConfig:V,installations:ne}){const Ie=yield ne.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":V.apiKey,"x-goog-firebase-installations-auth":`FIS ${Ie}`})})).apply(this,arguments)}function Or({p256dh:V,auth:ne,endpoint:Ie,vapidKey:pt}){const jt={web:{endpoint:Ie,auth:ne,p256dh:V}};return pt!==Fn&&(jt.web.applicationPubKey=pt),jt}const ea=6048e5;function Xs(V){return Bs.apply(this,arguments)}function Bs(){return(Bs=(0,m.Z)(function*(V){const ne=yield Vi(V.swRegistration,V.vapidKey),Ie={vapidKey:V.vapidKey,swScope:V.swRegistration.scope,endpoint:ne.endpoint,auth:ls(ne.getKey("auth")),p256dh:ls(ne.getKey("p256dh"))},pt=yield Et(V.firebaseDependencies);if(pt){if(ts(pt.subscriptionOptions,Ie))return Date.now()>=pt.createTime+ea?Wo(V,{token:pt.token,createTime:Date.now(),subscriptionOptions:Ie}):pt.token;try{yield us(V.firebaseDependencies,pt.token)}catch(jt){console.warn(jt)}return bi(V.firebaseDependencies,Ie)}return bi(V.firebaseDependencies,Ie)})).apply(this,arguments)}function Sr(V){return Hs.apply(this,arguments)}function Hs(){return(Hs=(0,m.Z)(function*(V){const ne=yield Et(V.firebaseDependencies);ne&&(yield us(V.firebaseDependencies,ne.token),yield In(V.firebaseDependencies));const Ie=yield V.swRegistration.pushManager.getSubscription();return!Ie||Ie.unsubscribe()})).apply(this,arguments)}function Wo(V,ne){return ao.apply(this,arguments)}function ao(){return(ao=(0,m.Z)(function*(V,ne){try{const Ie=yield Kr(V.firebaseDependencies,ne),pt=Object.assign(Object.assign({},ne),{token:Ie,createTime:Date.now()});return yield Kt(V.firebaseDependencies,pt),Ie}catch(Ie){throw yield Sr(V),Ie}})).apply(this,arguments)}function bi(V,ne){return Ei.apply(this,arguments)}function Ei(){return(Ei=(0,m.Z)(function*(V,ne){const pt={token:yield Qi(V,ne),createTime:Date.now(),subscriptionOptions:ne};return yield Kt(V,pt),pt.token})).apply(this,arguments)}function Vi(V,ne){return Ti.apply(this,arguments)}function Ti(){return(Ti=(0,m.Z)(function*(V,ne){return(yield V.pushManager.getSubscription())||V.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:$r(ne)})})).apply(this,arguments)}function ts(V,ne){return ne.vapidKey===V.vapidKey&&ne.endpoint===V.endpoint&&ne.auth===V.auth&&ne.p256dh===V.p256dh}function bs(V){const ne={from:V.from,collapseKey:V.collapse_key,messageId:V.fcmMessageId};return function qr(V,ne){if(!ne.notification)return;V.notification={};const Ie=ne.notification.title;Ie&&(V.notification.title=Ie);const pt=ne.notification.body;pt&&(V.notification.body=pt);const jt=ne.notification.image;jt&&(V.notification.image=jt);const Xt=ne.notification.icon;Xt&&(V.notification.icon=Xt)}(ne,V),function Co(V,ne){!ne.data||(V.data=ne.data)}(ne,V),function Rr(V,ne){var Ie,pt,jt,Xt,wn;if(!ne.fcmOptions&&!(null===(Ie=ne.notification)||void 0===Ie?void 0:Ie.click_action))return;V.fcmOptions={};const gi=null!==(jt=null===(pt=ne.fcmOptions)||void 0===pt?void 0:pt.link)&&void 0!==jt?jt:null===(Xt=ne.notification)||void 0===Xt?void 0:Xt.click_action;gi&&(V.fcmOptions.link=gi);const fi=null===(wn=ne.fcmOptions)||void 0===wn?void 0:wn.analytics_label;fi&&(V.fcmOptions.analyticsLabel=fi)}(ne,V),ne}function Ws(V){return"object"==typeof V&&!!V&&ra in V}function ga(V,ne){const Ie=[];for(let pt=0;pt<V.length;pt++)Ie.push(V.charAt(pt)),pt<ne.length&&Ie.push(ne.charAt(pt));return Ie.join("")}function Zs(V){return Gn.create("missing-app-config-values",{valueName:V})}ga("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),ga("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");class eo{constructor(ne,Ie,pt){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroun
1dMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const jt=function ro(V){if(!V||!V.options)throw Zs("App Configuration Object");if(!V.name)throw Zs("App Name");const ne=["projectId","apiKey","appId","messagingSenderId"],{options:Ie}=V;for(const pt of ne)if(!Ie[pt])throw Zs(pt);return{appName:V.name,projectId:Ie.projectId,apiKey:Ie.apiKey,appId:Ie.appId,senderId:Ie.messagingSenderId}}(ne);this.firebaseDependencies={app:ne,appConfig:jt,installations:Ie,analyticsProvider:pt}}_delete(){return Promise.resolve()}}function Vr(V){return Yo.apply(this,arguments)}function Yo(){return(Yo=(0,m.Z)(function*(V){try{V.swRegistration=yield navigator.serviceWorker.register(Qs,{scope:ks}),V.swRegistration.update().catch(()=>{})}catch(ne){throw Gn.create("failed-service-worker-registration",{browserErrorMessage:null==ne?void 0:ne.message})}})).apply(this,arguments)}function ya(V,ne){return cs.apply(this,arguments)}function cs(){return(cs=(0,m.Z)(function*(V,ne){if(!ne&&!V.swRegistration&&(yield Vr(V)),ne||!V.swRegistration){if(!(ne instanceof ServiceWorkerRegistration))throw Gn.create("invalid-sw-registration");V.swRegistration=ne}})).apply(this,arguments)}function Bo(V,ne){return Ta.apply(this,arguments)}function Ta(){return(Ta=(0,m.Z)(function*(V,ne){ne?V.vapidKey=ne:V.vapidKey||(V.vapidKey=Fn)})).apply(this,arguments)}function Da(){return(Da=(0,m.Z)(function*(V,ne){if(!navigator)throw Gn.create("only-available-in-window");if("default"===Notification.permission&&(yield Notification.requestPermission()),"granted"!==Notification.permission)throw Gn.create("permission-blocked");return yield Bo(V,null==ne?void 0:ne.vapidKey),yield ya(V,null==ne?void 0:ne.serviceWorkerRegistration),Xs(V)})).apply(this,arguments)}function la(V,ne,Ie){return Zo.apply(this,arguments)}function Zo(){return(Zo=(0,m.Z)(function*(V,ne,Ie){const pt=ee(ne);(yield V.firebaseDependencies.analyticsProvider.get()).logEvent(pt,{message_id:Ie[ra],message_name:Ie[yr],message_time:Ie[sl],message_device_time:Math.floor(Date.now()/1e3)})})).apply(this,arguments)}function ee(V){switch(V){case Xo.NOTIFICATION_CLICKED:return"notification_open";case Xo.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}function H(){return(H=(0,m.Z)(function*(V,ne){const Ie=ne.data;if(!Ie.isFirebaseMessaging)return;V.onMessageHandler&&Ie.messageType===Xo.PUSH_RECEIVED&&("function"==typeof V.onMessageHandler?V.onMessageHandler(bs(Ie)):V.onMessageHandler.next(bs(Ie)));const pt=Ie.data;Ws(pt)&&"1"===pt[fr]&&(yield la(V,Ie.messageType,pt))})).apply(this,arguments)}const he="@firebase/messaging",a="0.12.4",d=V=>{const ne=new eo(V.getProvider("app").getImmediate(),V.getProvider("installations-internal").getImmediate(),V.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",Ie=>function z(V,ne){return H.apply(this,arguments)}(ne,Ie)),ne},w=V=>{const ne=V.getProvider("messaging").getImmediate();return{getToken:pt=>function So(V,ne){return Da.apply(this,arguments)}(ne,pt)}};function Q(){return xe.apply(this,arguments)}function xe(){return(xe=(0,m.Z)(function*(){try{yield(0,v.eu)()}catch(V){return!1}return"undefined"!=typeof window&&(0,v.hl)()&&(0,v.zI)()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")})).apply(this,arguments)}!function A(){(0,k._registerComponent)(new C.wA("messaging",d,"PUBLIC")),(0,k._registerComponent)(new C.wA("messaging-internal",w,"PRIVATE")),(0,k.registerVersion)(he,a),(0,k.registerVersion)(he,a,"esm2017")}();const qn="analytics",yi="firebase_id",un="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",On="https://www.googletagmanager.com/gtag/js",br=new q.Yd("@firebase/analytics"),Gs=new v.LL("analytics","Analytics",{"already-exists":"A Firebase Analytics instance with the appId {$id} already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-intialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}
1","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invalid-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."});function Fa(V){if(!V.startsWith(On)){const ne=Gs.create("invalid-gtag-resource",{gtagURL:V});return br.warn(ne.message),""}return V}function ds(V){return Promise.all(V.map(ne=>ne.catch(Ie=>Ie)))}function ou(V,ne){const Ie=function ua(V,ne){let Ie;return window.trustedTypes&&(Ie=window.trustedTypes.createPolicy(V,ne)),Ie}("firebase-js-sdk-policy",{createScriptURL:Fa}),pt=document.createElement("script"),jt=`${On}?l=${V}&id=${ne}`;pt.src=Ie?null==Ie?void 0:Ie.createScriptURL(jt):jt,pt.async=!0,document.head.appendChild(pt)}function Ka(V,ne,Ie,pt,jt,Xt){return yl.apply(this,arguments)}function yl(){return(yl=(0,m.Z)(function*(V,ne,Ie,pt,jt,Xt){const wn=pt[jt];try{if(wn)yield ne[wn];else{const fi=(yield ds(Ie)).find(zi=>zi.measurementId===jt);fi&&(yield ne[fi.appId])}}catch(gi){br.error(gi)}V("config",jt,Xt)})).apply(this,arguments)}function zl(V,ne,Ie,pt,jt){return hs.apply(this,arguments)}function hs(){return(hs=(0,m.Z)(function*(V,ne,Ie,pt,jt){try{let Xt=[];if(jt&&jt.send_to){let wn=jt.send_to;Array.isArray(wn)||(wn=[wn]);const gi=yield ds(Ie);for(const fi of wn){const zi=gi.find(tr=>tr.measurementId===fi),pr=zi&&ne[zi.appId];if(!pr){Xt=[];break}Xt.push(pr)}}0===Xt.length&&(Xt=Object.values(ne)),yield Promise.all(Xt),V("event",pt,jt||{})}catch(Xt){br.error(Xt)}})).apply(this,arguments)}function fc(V){const ne=window.document.getElementsByTagName("script");for(const Ie of Object.values(ne))if(Ie.src&&Ie.src.includes(On)&&Ie.src.includes(V))return Ie;return null}const zr=new class au{constructor(ne={},Ie=1e3){this.throttleMetadata=ne,this.intervalMillis=Ie}getThrottleMetadata(ne){return this.throttleMetadata[ne]}setThrottleMetadata(ne,Ie){this.throttleMetadata[ne]=Ie}deleteThrottleMetadata(ne){delete this.throttleMetadata[ne]}};function vl(V){return new Headers({Accept:"application/json","x-goog-api-key":V})}function uo(V){return $n.apply(this,arguments)}function $n(){return($n=(0,m.Z)(function*(V){var ne;const{appId:Ie,apiKey:pt}=V,jt={method:"GET",headers:vl(pt)},Xt=un.replace("{app-id}",Ie),wn=yield fetch(Xt,jt);if(200!==wn.status&&304!==wn.status){let gi="";try{const fi=yield wn.json();(null===(ne=fi.error)||void 0===ne?void 0:ne.message)&&(gi=fi.error.message)}catch(fi){}throw Gs.create("config-fetch-failed",{httpStatus:wn.status,responseMessage:gi})}return wn.json()})).apply(this,arguments)}function qa(V){return Ea.apply(this,arguments)}function Ea(){return(Ea=(0,m.Z)(function*(V,ne=zr,Ie){const{appId:pt,apiKey:jt,measurementId:Xt}=V.options;if(!pt)throw Gs.create("no-app-id");if(!jt){if(Xt)return{measurementId:Xt,appId:pt};throw Gs.create("no-api-key")}const wn=ne.getThrottleMetadata(pt)||{backoffCount:0,throttleEndTimeMillis:Date.now()},gi=new bl;return setTimeout((0,m.Z)(function*(){gi.abort()}),void 0!==Ie?Ie:6e4),ll({appId:pt,apiKey:jt,measurementId:Xt},wn,gi,ne)})).apply(this,arguments)}function ll(V,ne,Ie){return lu.apply(this,arguments)}function lu(){return(lu=(0,m.Z)(function*(V,{throttleEndTimeMillis:ne,backoffCount:Ie},pt,jt=zr){var Xt;const{appId:wn,measurementId:gi}=V;try{yield Ho(pt,ne)}catch(fi){if(gi)return br.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${gi} provided in the "measurementId" field in the local Firebase config. [${null==fi?void 0:fi.message}
1]`),{appId:wn,measurementId:gi};throw fi}try{const fi=yield uo(V);return jt.deleteThrottleMetadata(wn),fi}catch(fi){const zi=fi;if(!Ya(zi)){if(jt.deleteThrottleMetadata(wn),gi)return br.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${gi} provided in the "measurementId" field in the local Firebase config. [${null==zi?void 0:zi.message}]`),{appId:wn,measurementId:gi};throw fi}const pr=503===Number(null===(Xt=null==zi?void 0:zi.customData)||void 0===Xt?void 0:Xt.httpStatus)?(0,v.$s)(Ie,jt.intervalMillis,30):(0,v.$s)(Ie,jt.intervalMillis),tr={throttleEndTimeMillis:Date.now()+pr,backoffCount:Ie+1};return jt.setThrottleMetadata(wn,tr),br.debug(`Calling attemptFetch again in ${pr} millis`),ll(V,tr,pt,jt)}})).apply(this,arguments)}function Ho(V,ne){return new Promise((Ie,pt)=>{const jt=Math.max(ne-Date.now(),0),Xt=setTimeout(Ie,jt);V.addEventListener(()=>{clearTimeout(Xt),pt(Gs.create("fetch-throttle",{throttleEndTimeMillis:ne}))})})}function Ya(V){if(!(V instanceof v.ZR&&V.customData))return!1;const ne=Number(V.customData.httpStatus);return 429===ne||500===ne||503===ne||504===ne}class bl{constructor(){this.listeners=[]}addEventListener(ne){this.listeners.push(ne)}abort(){this.listeners.forEach(ne=>ne())}}let Qa,ca;function Go(){return(Go=(0,m.Z)(function*(V,ne,Ie,pt,jt){if(jt&&jt.global)V("event",Ie,pt);else{const Xt=yield ne;V("event",Ie,Object.assign(Object.assign({},pt),{send_to:Xt}))}})).apply(this,arguments)}function Zl(V){ca=V}function Ba(V){Qa=V}function Uu(){return Ml.apply(this,arguments)}function Ml(){return(Ml=(0,m.Z)(function*(){if(!(0,v.hl)())return br.warn(Gs.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{yield(0,v.eu)()}catch(V){return br.warn(Gs.create("indexeddb-unavailable",{errorInfo:null==V?void 0:V.toString()}).message),!1}return!0})).apply(this,arguments)}function Mo(){return(Mo=(0,m.Z)(function*(V,ne,Ie,pt,jt,Xt,wn){var gi;const fi=qa(V);fi.then($o=>{Ie[$o.measurementId]=$o.appId,V.options.measurementId&&$o.measurementId!==V.options.measurementId&&br.warn(`The measurement ID in the local Firebase config (${V.options.measurementId}) does not match the measurement ID fetched from the server (${$o.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch($o=>br.error($o)),ne.push(fi);const zi=Uu().then($o=>{if($o)return pt.getId()}),[pr,tr]=yield Promise.all([fi,zi]);fc(Xt)||ou(Xt,pr.measurementId),ca&&(jt("consent","default",ca),Zl(void 0)),jt("js",new Date);const vs=null!==(gi=null==wn?void 0:wn.config)&&void 0!==gi?gi:{};return vs.origin="firebase",vs.update=!0,null!=tr&&(vs[yi]=tr),jt("config",pr.measurementId,vs),Qa&&(jt("set",Qa),Ba(void 0)),pr.measurementId})).apply(this,arguments)}class Uo{constructor(ne){this.app=ne}_delete(){return delete sa[this.app.options.appId],Promise.resolve()}}let sa={},La=[];const Gl={};let $l,mo,Us="dataLayer",Tl=!1;function Du(V,ne,Ie){!function Pa(){const V=[];if((0,v.ru)()&&V.push("This is a browser extension environment."),(0,v.zI)()||V.push("Cookies are not available."),V.length>0){const ne=V.map((pt,jt)=>`(${jt+1}) ${pt}`).join(" "),Ie=Gs.create("invalid-analytics-context",{errorInfo:ne});br.warn(Ie.message)}}();const pt=V.options.appId;if(!pt)throw Gs.create("no-app-id");if(!V.options.apiKey){if(!V.options.measurementId)throw Gs.create("no-api-key");br.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${V.options.measurementId} provided in the "measurementId" field in the local Firebase config.`)}if(null!=sa[pt])throw Gs.create("already-exists",{id:pt});if(!Tl){!function al(V){let ne=[];Array.isArray(window[V])?ne=window[V]:window[V]=ne}(Us);const{wrappedGtag:Xt,gtagCore:wn}=function Wl(V,ne,Ie,pt,jt){let Xt=function(...wn){window[pt].push(arguments)};return window[jt]&&"function"==typeof window[jt]&&(Xt=window[jt]),window[jt]=function cr(V,ne,Ie,pt){function Xt(){return(Xt=(0,m.Z)(function*(wn,...gi){try{if("event"===wn){const[fi,zi]=gi;yield zl(V,ne,Ie,fi,zi)}else if("config"===wn){const[fi,zi]=gi;yield Ka(V,ne,Ie,pt,fi,zi)}else if("consent"===wn){const[fi]=gi;V("consent","update",fi)}else if("get"===wn){const[fi,zi,pr]=gi;V("get",fi,zi,pr)}else if("set"===wn){const[fi]=gi;V("set",fi)}else V(wn,...gi)}catch(fi){br.error(fi)}})).apply(this,arguments)}return function jt(wn){return Xt.apply(this,arguments)}}(Xt,V,ne,Ie),{gtagCore:Xt,wrappedGtag:window[jt]}}(sa,La,Gl,Us,"gtag");mo=Xt,$l=wn,Tl=!0}return sa[pt]=function ju(V,ne,Ie,pt,jt,Xt,wn){return Mo.apply(this,arguments)}(V,La,Gl,ne,$l,Us,Ie),new Uo(V)}function Eu(){return oa.apply(this,arguments)}function oa(){return(oa=(0,m.Z)(function*(){if((0,v.ru)()||!(0,v.zI)()||!(0,v.hl)())return!1;try{return yield(0,v.eu)()}catch(V){return!1}}
1)).apply(this,arguments)}const du="@firebase/analytics";!function Sa(){(0,k._registerComponent)(new C.wA(qn,(ne,{options:Ie})=>Du(ne.getProvider("app").getImmediate(),ne.getProvider("installations-internal").getImmediate(),Ie),"PUBLIC")),(0,k._registerComponent)(new C.wA("analytics-internal",function V(ne){try{const Ie=ne.getProvider(qn).getImmediate();return{logEvent:(pt,jt,Xt)=>function ku(V,ne,Ie,pt){V=(0,v.m9)(V),function va(V,ne,Ie,pt,jt){return Go.apply(this,arguments)}(mo,sa[V.app.options.appId],ne,Ie,pt).catch(jt=>br.error(jt))}(Ie,pt,jt,Xt)}}catch(Ie){throw Gs.create("interop-component-reg-failed",{reason:Ie})}},"PRIVATE")),(0,k.registerVersion)(du,"0.10.0"),(0,k.registerVersion)(du,"0.10.0","esm2017")}();var el=b(4408),xu=b(7565);const ys=new class Ra extends xu.v{}(class Iu extends el.o{constructor(ne,Ie){super(ne,Ie),this.scheduler=ne,this.work=Ie}schedule(ne,Ie=0){return Ie>0?super.schedule(ne,Ie):(this.delay=Ie,this.state=ne,this.scheduler.flush(this),this)}execute(ne,Ie){return Ie>0||this.closed?super.execute(ne,Ie):this._execute(ne,Ie)}requestAsyncId(ne,Ie,pt=0){return null!=pt&&pt>0||null==pt&&this.delay>0?super.requestAsyncId(ne,Ie,pt):(ne.flush(this),0)}});var dl=b(4986),Rl=b(8306),fs=b(8505),Dl=b(9468),$s=b(5363);const ss=new h.GfV("7.6.1"),hl="__angularfire_symbol__analyticsIsSupportedValue",Er="__angularfire_symbol__analyticsIsSupported",T="__angularfire_symbol__remoteConfigIsSupportedValue",Y="__angularfire_symbol__remoteConfigIsSupported",se="__angularfire_symbol__messagingIsSupportedValue",ve="__angularfire_symbol__messagingIsSupported";function ir(V,ne,Ie){if(ne){if(1===ne.length)return ne[0];const Xt=ne.filter(wn=>wn.app===Ie);if(1===Xt.length)return Xt[0]}return Ie.container.getProvider(V).getImmediate({optional:!0})}globalThis[Er]||(globalThis[Er]=Eu().then(V=>globalThis[hl]=V).catch(()=>globalThis[hl]=!1)),globalThis[ve]||(globalThis[ve]=Q().then(V=>globalThis[se]=V).catch(()=>globalThis[se]=!1)),globalThis[Y]||(globalThis[Y]=Ma().then(V=>globalThis[T]=V).catch(()=>globalThis[T]=!1));const Nr=(V,ne)=>{const Ie=ne?[ne]:(0,s.C6)(),pt=[];return Ie.forEach(jt=>{jt.container.getProvider(V).instances.forEach(wn=>{pt.includes(wn)||pt.push(wn)})}),pt};function Rs(){}class xs{constructor(ne,Ie=ys){this.zone=ne,this.delegate=Ie}now(){return this.delegate.now()}schedule(ne,Ie,pt){const jt=this.zone;return this.delegate.schedule(function(wn){jt.runGuarded(()=>{ne.apply(this,[wn])})},Ie,pt)}}class Io{constructor(ne){this.zone=ne,this.task=null}call(ne,Ie){const pt=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",Rs,{},Rs,Rs)),Ie.pipe((0,fs.b)({next:pt,complete:pt,error:pt})).subscribe(ne).add(pt)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let ka=(()=>{class V{constructor(Ie){this.ngZone=Ie,this.outsideAngular=Ie.runOutsideAngular(()=>new xs(Zone.current)),this.insideAngular=Ie.run(()=>new xs(Zone.current,dl.z)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return V.\u0275fac=function(Ie){return new(Ie||V)(h.LFG(h.R0b))},V.\u0275prov=h.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();function fl(){const V=globalThis.\u0275AngularFireScheduler;if(!V)throw new Error("Either AngularFireModule has not been provided in your Ap
1pModule (this can be done manually or implictly using\nprovideFirebaseApp) or you're calling an AngularFire method outside of an NgModule (which is not supported).");return V}function Nl(V){return fl().ngZone.runOutsideAngular(()=>V())}function ta(V){return fl().ngZone.run(()=>V())}function Lu(V){return fl(),function ml(V){return function(Ie){return(Ie=Ie.lift(new Io(V.ngZone))).pipe((0,Dl.R)(V.outsideAngular),(0,$s.Q)(V.insideAngular))}}(fl())(V)}const El=(V,ne)=>function(){const pt=arguments;return ne&&setTimeout(()=>{"scheduled"===ne.state&&ne.invoke()},10),ta(()=>V.apply(void 0,pt))},Fl=(V,ne)=>function(){let Ie;const pt=arguments;for(let Xt=0;Xt<arguments.length;Xt++)"function"==typeof pt[Xt]&&(ne&&(Ie||(Ie=ta(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",Rs,{},Rs,Rs)))),pt[Xt]=El(pt[Xt],Ie));const jt=Nl(()=>V.apply(this,pt));if(!ne){if(jt instanceof Rl.y){const Xt=fl();return jt.pipe((0,Dl.R)(Xt.outsideAngular),(0,$s.Q)(Xt.insideAngular))}return ta(()=>jt)}return jt instanceof Rl.y?jt.pipe(Lu):jt instanceof Promise?ta(()=>new Promise((Xt,wn)=>jt.then(gi=>ta(()=>Xt(gi)),gi=>ta(()=>wn(gi))))):"function"==typeof jt&&Ie?function(){return setTimeout(()=>{Ie&&"scheduled"===Ie.state&&Ie.invoke()},10),jt.apply(this,arguments)}:ta(()=>jt)}},1389:(_t,Ue,b)=>{"use strict";b.d(Ue,{$:()=>Qs,A:()=>we,B:()=>Vr,D:()=>Ze,I:()=>_i,J:()=>Un,L:()=>is,N:()=>yn,P:()=>ju,Q:()=>ri,R:()=>Hu,U:()=>wo,V:()=>Ma,W:()=>Ir,X:()=>rr,Y:()=>qe,Z:()=>Ct,_:()=>Dr,a:()=>Jt,a0:()=>Fn,a1:()=>ra,a2:()=>Js,a3:()=>Fo,a4:()=>po,a5:()=>P,a6:()=>ce,a7:()=>dt,a8:()=>kt,a9:()=>En,aA:()=>me,aB:()=>Er,aC:()=>Ot,aD:()=>ei,aE:()=>fs,aF:()=>Oa,aG:()=>Su,aH:()=>Wi,aL:()=>ti,aO:()=>Ne,aa:()=>In,ab:()=>ji,ac:()=>er,ad:()=>Kr,ae:()=>us,af:()=>es,ai:()=>ea,aj:()=>Bs,ak:()=>Sr,an:()=>as,ao:()=>qr,aq:()=>Ta,ar:()=>he,as:()=>Bt,at:()=>St,au:()=>j,av:()=>ut,aw:()=>tr,ax:()=>ve,ay:()=>Ht,az:()=>ze,b:()=>bt,c:()=>mo,d:()=>Du,e:()=>Aa,f:()=>du,g:()=>Ra,h:()=>el,i:()=>Bi,j:()=>dl,k:()=>tl,l:()=>lr,m:()=>zu,o:()=>Sh,p:()=>te,r:()=>Xa,s:()=>nn,u:()=>Uu,x:()=>ro});var h=b(5861),s=b(2090),m=b(6881),k=b(7582),v=b(1877),C=b(4859);const te={FACEBOOK:"facebook.com",GITHUB:"github.com",GOOGLE:"google.com",PASSWORD:"password",PHONE:"phone",TWITTER:"twitter.com"},we={EMAIL_SIGNIN:"EMAIL_SIGNIN",PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:"REVERT_SECOND_FACTOR_ADDITION",VERIFY_AND_CHANGE_EMAIL:"VERIFY_AND_CHANGE_EMAIL",VERIFY_EMAIL:"VERIFY_EMAIL"};const Ze=function be(){return{"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","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.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":"Multi-factor users must al
1ways have a verified email.","email-already-in-use":"The email address is already in use by another account.","emulator-config-failed":'Auth instance has already been used to make a network call. Auth can no longer be configured to use the emulator. Try calling "connectAuthEmulator()" sooner.',"expired-action-code":"The action code has expired.","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal AuthError has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal AuthError has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure to use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-emulator-scheme":"Emulator URL must start with a valid scheme (http:// or https://).","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is
vendor: 7,825 bytes, line 1
1 malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":"The request does not contain a valid proof of first factor successful sign-in.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invalid-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","login-blocked":"Login blocked by user-provided method: {$originalMessage}","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal AuthError has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-password":"A non-empty password must be provided","missing-multi-factor-info":"No second factor identifier is provided.","missing-multi-factor-session":"The request is missing proof of first factor successful sign-in.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","multi-factor-info-not-found":"The user does not have a second factor matching the identifier provided.","multi-factor-auth-required":"Proof of ownership of a second factor is required to complete sign-in.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network AuthError (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal AuthError has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","second-factor-already-in-use":"The second factor is already enrolled on this account.","maximum-second-factor-count-exceeded":"The maximum allowed number of second factors on a user has been exceeded.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted. Please whitelist the domain in the Firebase console.","unsupported-first-factor":"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.","unverified-email":"The operation requires a verified email.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled.","already-initialized":"initializeAuth() has already been called with different options. To avoid this error, call initializeAuth() with the same options as when it was originally called, or call getAuth() to return the already initialized instance.","missing-recaptcha-token":"The reCAPTCHA token is missing when sending request to the backend.","invalid-recaptcha-token":"The reCAPTCHA token is invalid when sending request to the backend.","invalid-recaptcha-action":"The reCAPTCHA action is invalid when sending request to the backend.","recaptcha-not-enabled":"reCAPTCHA Enterprise integration is not enabled for this project.","missing-client-type":"The reCAPTCHA client type is missing when sending request to the backend.","missing-recaptcha-version":"The reCAPTCHA version is missing when sending request to the backend.","invalid-req-type":"Invalid request parameters.","invalid-recaptcha-version":"The reCAPTCHA version is invalid when sending request to the backend."
1}},Ye=function ke(){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."}},$e=new s.LL("auth","Firebase",{"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."}),rt=new v.Yd("@firebase/auth");function zt(B,...D){rt.logLevel<=v.in.ERROR&&rt.error(`Auth (${m.SDK_VERSION}): ${B}`,...D)}function ut(B,...D){throw Fe(B,...D)}function ze(B,...D){return Fe(B,...D)}function Re(B,D,I){const Z=Object.assign(Object.assign({},Ye()),{[D]:I});return new s.LL("auth","Firebase",Z).create(D,{appName:B.name})}function tt(B,D,I){if(!(D instanceof I))throw I.name!==D.constructor.name&&ut(B,"argument-error"),Re(B,"argument-error",`Type of ${D.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function Fe(B,...D){if("string"!=typeof B){const I=D[0],Z=[...D.slice(1)];return Z[0]&&(Z[0].appName=B.name),B._errorFactory.create(I,...Z)}return $e.create(B,...D)}function me(B,D,...I){if(!B)throw Fe(D,...I)}function gt(B){const D="INTERNAL ASSERTION FAILED: "+B;throw zt(D),new Error(D)}function Bt(B,D){B||gt(D)}function pn(){var B;return"undefined"!=typeof self&&(null===(B=self.location)||void 0===B?void 0:B.href)||""}function mn(){return"http:"===jn()||"https:"===jn()}function jn(){var B;return"undefined"!=typeof self&&(null===(B=self.location)||void 0===B?void 0:B.protocol)||null}class Mn{constructor(D,I){this.shortDelay=D,this.longDelay=I,Bt(I>D,"Short delay should be less than long delay!"),this.isMobile=(0,s.uI)()||(0,s.b$)()}get(){return function en(){return!("undefined"!=typeof navigator&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(mn()||(0,s.ru)()||"connection"in navigator))||navigator.onLine}()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function Bn(B,D){Bt(B.emulator,"Emulator should always be set here");const{url:I}=B.emulator;return D?`${I}${D.startsWith("/")?D.slice(1):D}`:I}class Dn{static initialize(D,I,Z){this.fetchImpl=D,I&&(this.headersImpl=I),Z&&(this.responseImpl=Z)}static fetch(){return this.fetchImpl?this.fetchImpl:"undefined"!=typeof self&&"fetch"in self?self.fetch:void gt("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:"undefined"!=typeof self&&"Headers"in self?self.Headers:void gt("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:"undefined"!=typeof self&&"Response"in self?self.Response:void gt("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const vn={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",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",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-rec
1aptcha-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"},Dt=new Mn(3e4,6e4);function Mt(B,D){return B.tenantId&&!D.tenantId?Object.assign(Object.assign({},D),{tenantId:B.tenantId}):D}function it(B,D,I,Z){return At.apply(this,arguments)}function At(){return(At=(0,h.Z)(function*(B,D,I,Z,Ae={}){return ct(B,Ae,(0,h.Z)(function*(){let ot={},Gt={};Z&&("GET"===D?Gt=Z:ot={body:JSON.stringify(Z)});const an=(0,s.xO)(Object.assign({key:B.config.apiKey},Gt)).slice(1),Xn=yield B._getAdditionalHeaders();return Xn["Content-Type"]="application/json",B.languageCode&&(Xn["X-Firebase-Locale"]=B.languageCode),Dn.fetch()(Ut(B,B.config.apiHost,I,an),Object.assign({method:D,headers:Xn,referrerPolicy:"no-referrer"},ot))}))})).apply(this,arguments)}function ct(B,D,I){return st.apply(this,arguments)}function st(){return(st=(0,h.Z)(function*(B,D,I){B._canInitEmulator=!1;const Z=Object.assign(Object.assign({},vn),D);try{const Ae=new tn(B),ot=yield Promise.race([I(),Ae.promise]);Ae.clearNetworkTimeout();const Gt=yield ot.json();if("needConfirmation"in Gt)throw _n(B,"account-exists-with-different-credential",Gt);if(ot.ok&&!("errorMessage"in Gt))return Gt;{const an=ot.ok?Gt.errorMessage:Gt.error.message,[Xn,Ci]=an.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===Xn)throw _n(B,"credential-already-in-use",Gt);if("EMAIL_EXISTS"===Xn)throw _n(B,"email-already-in-use",Gt);if("USER_DISABLED"===Xn)throw _n(B,"user-disabled",Gt);const sr=Z[Xn]||Xn.toLowerCase().replace(/[_\s]+/g,"-");if(Ci)throw Re(B,sr,Ci);ut(B,sr)}}catch(Ae){if(Ae instanceof s.ZR)throw Ae;ut(B,"network-request-failed",{message:String(Ae)})}})).apply(this,arguments)}function vt(B,D,I,Z){return ft.apply(this,arguments)}function ft(){return(ft=(0,h.Z)(function*(B,D,I,Z,Ae={}){const ot=yield it(B,D,I,Z,Ae);return"mfaPendingCredential"in ot&&ut(B,"multi-factor-auth-required",{_serverResponse:ot}),ot})).apply(this,arguments)}function Ut(B,D,I,Z){const Ae=`${D}${I}?${Z}`;return B.config.emulator?Bn(B.config,Ae):`${B.config.apiScheme}://${Ae}`}class tn{constructor(D){this.auth=D,this.timer=null,this.promise=new Promise((I,Z)=>{this.timer=setTimeout(()=>Z(ze(this.auth,"network-request-failed")),Dt.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function _n(B,D,I){const Z={appName:B.name};I.email&&(Z.email=I.email),I.phoneNumber&&(Z.phoneNumber=I.phoneNumber);const Ae=ze(B,D,Z);return Ae.customData._tokenResponse=I,Ae}function pi(){return(pi=(0,h.Z)(function*(B,D){return it(B,"POST","/v1/accounts:delete",D)})).apply(this,arguments)}function si(B,D){return vi.apply(this,arguments)}function vi(){return(vi=(0,h.Z)(function*(B,D){return it(B,"POST","/v1/accounts:update",D)})).apply(this,arguments)}function Vn(B,D){return Rn.apply(this,arguments)}function Rn(){return(Rn=(0,h.Z)(function*(B,D){return it(B,"POST","/v1/accounts:lookup",D)})).apply(this,arguments)}function Ve(B){if(B)try{const D=new Date(Number(B));if(!isNaN(D.getTime()))return D.toUTCString()}catch(D){}}function ue(){return(ue=(0,h.Z)(function*(B,D=!1){const I=(0,s.m9)(B),Z=yield I.getIdToken(D),Ae=ae(Z);me(Ae&&Ae.exp&&Ae.auth_time&&Ae.iat,I.auth,"internal-error");const ot="object"==typeof Ae.firebase?Ae.firebase:void 0,Gt=null==ot?void 0:ot.sign_in_provider;return{claims:Ae,token:Z,authTime:Ve(K(Ae.auth_time)),issuedAtTime:Ve(K(Ae.iat)),expirationTime:Ve(K(Ae.exp)),signInProvider:Gt||null,signInSecondFactor:(null==ot?void 0:ot.sign_in_second_factor)||null}})).apply(this,arguments)}function K(B){return 1e3*Number(B)}function ae(B){const[D,I,Z]=B.split(".");if(void 0===D||void 0===I||void 0===Z)return zt("JWT malformed, contained fewer than 3 sections"),null;try{const Ae=(0,s.tV)(I);return Ae?JSON.parse(Ae):(zt("Failed to decode base64 JWT payload"),null)}catch(Ae){return zt("Caught error parsing JWT payload as JSON",null==Ae?void 0:Ae.toString()),null}}function nt(B,D){return Tt.apply(this,arguments)}function Tt(){return(Tt=(0,h.Z)(function*(B,D,I=!1){if(I)return D;try{return yield D}catch(Z){throw Z instanceof s.ZR&&Zt(Z)&&B.auth.currentUser===B&&(yield B.auth.signOut()),Z}})).apply(this,arguments)}function Zt({code:B}){return"auth/user-disabled"===B||"auth/user-token-expired"===B}
1class Yt{constructor(D){this.user=D,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){!this.isRunning||(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(D){var I;if(D){const Z=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),Z}{this.errorBackoff=3e4;const Ae=(null!==(I=this.user.stsTokenManager.expirationTime)&&void 0!==I?I:0)-Date.now()-3e5;return Math.max(0,Ae)}}schedule(D=!1){var I=this;if(!this.isRunning)return;const Z=this.getInterval(D);this.timerId=setTimeout((0,h.Z)(function*(){yield I.iteration()}),Z)}iteration(){var D=this;return(0,h.Z)(function*(){try{yield D.user.getIdToken(!0)}catch(I){return void("auth/network-request-failed"===(null==I?void 0:I.code)&&D.schedule(!0))}D.schedule()})()}}class Pn{constructor(D,I){this.createdAt=D,this.lastLoginAt=I,this._initializeTime()}_initializeTime(){this.lastSignInTime=Ve(this.lastLoginAt),this.creationTime=Ve(this.createdAt)}_copy(D){this.createdAt=D.createdAt,this.lastLoginAt=D.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function Cn(B){return Nn.apply(this,arguments)}function Nn(){return(Nn=(0,h.Z)(function*(B){var D;const I=B.auth,Z=yield B.getIdToken(),Ae=yield nt(B,Vn(I,{idToken:Z}));me(null==Ae?void 0:Ae.users.length,I,"internal-error");const ot=Ae.users[0];B._notifyReloadListener(ot);const Gt=(null===(D=ot.providerUserInfo)||void 0===D?void 0:D.length)?lt(ot.providerUserInfo):[],an=Qn(B.providerData,Gt),sr=!!B.isAnonymous&&!(B.email&&ot.passwordHash||(null==an?void 0:an.length)),mr={uid:ot.localId,displayName:ot.displayName||null,photoURL:ot.photoUrl||null,email:ot.email||null,emailVerified:ot.emailVerified||!1,phoneNumber:ot.phoneNumber||null,tenantId:ot.tenantId||null,providerData:an,metadata:new Pn(ot.createdAt,ot.lastLoginAt),isAnonymous:sr};Object.assign(B,mr)})).apply(this,arguments)}function ni(){return(ni=(0,h.Z)(function*(B){const D=(0,s.m9)(B);yield Cn(D),yield D.auth._persistUserIfCurrent(D),D.auth._notifyListenersIfCurrent(D)})).apply(this,arguments)}function Qn(B,D){return[...B.filter(Z=>!D.some(Ae=>Ae.providerId===Z.providerId)),...D]}function lt(B){return B.map(D=>{var{providerId:I}=D,Z=(0,k._T)(D,["providerId"]);return{providerId:I,uid:Z.rawId||"",displayName:Z.displayName||null,email:Z.email||null,phoneNumber:Z.phoneNumber||null,photoURL:Z.photoUrl||null}})}function Se(){return(Se=(0,h.Z)(function*(B,D){const I=yield ct(B,{},(0,h.Z)(function*(){const Z=(0,s.xO)({grant_type:"refresh_token",refresh_token:D}).slice(1),{tokenApiHost:Ae,apiKey:ot}=B.config,Gt=Ut(B,Ae,"/v1/token",`key=${ot}`),an=yield B._getAdditionalHeaders();return an["Content-Type"]="application/x-www-form-urlencoded",Dn.fetch()(Gt,{method:"POST",headers:an,body:Z})}));return{accessToken:I.access_token,expiresIn:I.expires_in,refreshToken:I.refresh_token}})).apply(this,arguments)}class Ke{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(D){me(D.idToken,"internal-error"),me(void 0!==D.idToken,"internal-error"),me(void 0!==D.refreshToken,"internal-error");const I="expiresIn"in D&&void 0!==D.expiresIn?Number(D.expiresIn):function Me(B){const D=ae(B);return me(D,"internal-error"),me(void 0!==D.exp,"internal-error"),me(void 0!==D.iat,"internal-error"),Number(D.exp)-Number(D.iat)}(D.idToken);this.updateTokensAndExpiration(D.idToken,D.refreshToken,I)}getToken(D){var I=this;return(0,h.Z)(function*(Z,Ae=!1){return me(!I.accessToken||I.refreshToken,Z,"user-token-expired"),Ae||!I.accessToken||I.isExpired?I.refreshToken?(yield I.refresh(Z,I.refreshToken),I.accessToken):null:I.accessToken}).apply(this,arguments)}clearRefreshToken(){this.refreshToken=null}refresh(D,I){var Z=this;return(0,h.Z)(function*(){const{accessToken:Ae,refreshToken:ot,expiresIn:Gt}=yield function Qt(B,D){return Se.apply(this,arguments)}(D,I);Z.updateTokensAndExpiration(Ae,ot,Number(Gt))})()}updateTokensAndExpiration(D,I,Z){this.refreshToken=I||null,this.accessToken=D||null,this.expirationTime=Date.now()+1e3*Z}static fromJSON(D,I){const{refreshToken:Z,accessToken:Ae,expirationTime:ot}=I,Gt=new Ke;return Z&&(me("string"==typeof Z,"internal-error",{appName:D}),Gt.refreshToken=Z),Ae&&(me("string"==typeof Ae,"internal-error",{appName:D}),Gt.accessToken=Ae),ot&&(me("number"==typeof ot,"internal-error",{appName:D}),Gt.expirationTime=ot),Gt}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(D){this.accessToken=D.accessToken,this.refreshToken=D.refreshToken,this.expirationTime=D.expirationTime}_clone(){return Object.assign(new Ke,this.toJSON())}_performRefresh(){return gt("not implemented")}}function Ee(B,D){me("string"==typeof B||void 0===B,"internal-error",{appName:D})}class Be{constructor(D){var{uid:I,auth:Z,stsTokenManager:Ae}=D,ot=(0,k._T)(D,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new Yt(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=I,this.auth=Z,this.stsTokenManager=Ae,this.accessToken=Ae.accessToken,this.displayName=ot.displayName||null,this.email=ot.email||null,this.emailVerified=ot.emailVerified||!1,this.phoneNumber=ot.phoneNumber||null,this.photoURL=ot.photoURL||null,this.isAnonymous=ot.isAnonymous||!1,this.tenantId=ot.tenantId||null,this.providerData=ot.providerData?[...ot.providerData]:[],this.metadata=new Pn(ot.createdAt||void 0,ot.lastLoginAt||void 0)}getIdToken(D){var I=this;return(0,h.Z)(function*(){const Z=yield nt(I,I.stsTokenManager.getToken(I.auth,D));return me(Z,I.auth,"internal-error"),I.accessToken!==Z&&(I.accessToken=Z,yield I.auth._persistUserIfCurrent(I),I.auth._notifyListenersIfCurrent(I)),Z})()}getIdTokenResult(D){return function $(B){return ue.apply(this,arguments)}(this,D)}reload(){return function Si(B){return ni.apply(this,arguments)}(this)}_assign(D){this!==D&&(me(this.uid===D.uid,this.auth,"internal-error"),this.displayName=D.displayName,this.photoURL=D.photoURL,this.email=D.email,this.emailVerified=D.emailVerified,this.phoneNumber=D.phoneNumber,this.isAnonymous=D.isAnonymous,this.tenantId=D.tenantId,this.providerData=D.providerData.map(I=>Object.assign({},I)),this.metadata._copy(D.metadata),this.stsTokenManager._assign(D.stsTokenManager))}_clone(D){const I=new Be(Object.assign(Object.assign({},this),{auth:D,stsTokenManager:this.stsTokenManager._clone()}));return I.metadata._copy(this.metadata),I}_onReload(D){me(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=D,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}
1_notifyReloadListener(D){this.reloadListener?this.reloadListener(D):this.reloadUserInfo=D}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(D){var I=this;return(0,h.Z)(function*(Z,Ae=!1){let ot=!1;Z.idToken&&Z.idToken!==I.stsTokenManager.accessToken&&(I.stsTokenManager.updateFromServerResponse(Z),ot=!0),Ae&&(yield Cn(I)),yield I.auth._persistUserIfCurrent(I),ot&&I.auth._notifyListenersIfCurrent(I)}).apply(this,arguments)}delete(){var D=this;return(0,h.Z)(function*(){const I=yield D.getIdToken();return yield nt(D,function bn(B,D){return pi.apply(this,arguments)}(D.auth,{idToken:I})),D.stsTokenManager.clearRefreshToken(),D.auth.signOut()})()}toJSON(){return Object.assign(Object.assign({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(D=>Object.assign({},D)),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(D,I){var Z,Ae,ot,Gt,an,Xn,Ci,sr;const mr=null!==(Z=I.displayName)&&void 0!==Z?Z:void 0,js=null!==(Ae=I.email)&&void 0!==Ae?Ae:void 0,Lo=null!==(ot=I.phoneNumber)&&void 0!==ot?ot:void 0,Au=null!==(Gt=I.photoURL)&&void 0!==Gt?Gt:void 0,_l=null!==(an=I.tenantId)&&void 0!==an?an:void 0,Yc=null!==(Xn=I._redirectEventId)&&void 0!==Xn?Xn:void 0,Gu=null!==(Ci=I.createdAt)&&void 0!==Ci?Ci:void 0,Pu=null!==(sr=I.lastLoginAt)&&void 0!==sr?sr:void 0,{uid:Ou,emailVerified:Ia,isAnonymous:_o,providerData:Cl,stsTokenManager:Ru}=I;me(Ou&&Ru,D,"internal-error");const mu=Ke.fromJSON(this.name,Ru);me("string"==typeof Ou,D,"internal-error"),Ee(mr,D.name),Ee(js,D.name),me("boolean"==typeof Ia,D,"internal-error"),me("boolean"==typeof _o,D,"internal-error"),Ee(Lo,D.name),Ee(Au,D.name),Ee(_l,D.name),Ee(Yc,D.name),Ee(Gu,D.name),Ee(Pu,D.name);const rd=new Be({uid:Ou,auth:D,email:js,emailVerified:Ia,displayName:mr,isAnonymous:_o,photoURL:Au,phoneNumber:Lo,tenantId:_l,stsTokenManager:mu,createdAt:Gu,lastLoginAt:Pu});return Cl&&Array.isArray(Cl)&&(rd.providerData=Cl.map(_u=>Object.assign({},_u))),Yc&&(rd._redirectEventId=Yc),rd}static _fromIdTokenResponse(D,I){return(0,h.Z)(function*(Z,Ae,ot=!1){const Gt=new Ke;Gt.updateFromServerResponse(Ae);const an=new Be({uid:Ae.localId,auth:Z,stsTokenManager:Gt,isAnonymous:ot});return yield Cn(an),an}).apply(this,arguments)}}const at=new Map;function Ot(B){Bt(B instanceof Function,"Expected a class definition");let D=at.get(B);return D?(Bt(D instanceof B,"Instance stored in cache mismatched with class"),D):(D=new B,at.set(B,D),D)}const yn=(()=>{class B{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return(0,h.Z)(function*(){return!0})()}_set(I,Z){var Ae=this;return(0,h.Z)(function*(){Ae.storage[I]=Z})()}_get(I){var Z=this;return(0,h.Z)(function*(){const Ae=Z.storage[I];return void 0===Ae?null:Ae})()}_remove(I){var Z=this;return(0,h.Z)(function*(){delete Z.storage[I]})()}_addListener(I,Z){}_removeListener(I,Z){}}return B.type="NONE",B})();function ei(B,D,I){return`firebase:${B}:${D}:${I}`}class ht{constructor(D,I,Z){this.persistence=D,this.auth=I,this.userKey=Z;const{config:Ae,name:ot}=this.auth;this.fullUserKey=ei(this.userKey,Ae.apiKey,ot),this.fullPersistenceKey=ei("persistence",Ae.apiKey,ot),this.boundEventHandler=I._onStorageEvent.bind(I),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(D){return this.persistence._set(this.fullUserKey,D.toJSON())}getCurrentUser(){var D=this;return(0,h.Z)(function*(){const I=yield D.persistence._get(D.fullUserKey);return I?Be._fromJSON(D.auth,I):null})()}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(D){var I=this;return(0,h.Z)(function*(){if(I.persistence===D)return;const Z=yield I.getCurrentUser();return yield I.removeCurrentUser(),I.persistence=D,Z?I.setCurrentUser(Z):void 0})()}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(D,I){return(0,h.Z)(function*(Z,Ae,ot="authUser"){if(!Ae.length)return new ht(Ot(yn),Z,ot);const Gt=(yield Promise.all(Ae.map(function(){var mr=(0,h.Z)(function*(js){if(yield js._isAvailable())return js});return function(js){return mr.apply(this,arguments)}}()))).filter(mr=>mr);let an=Gt[0]||Ot(yn);const Xn=ei(ot,Z.config.apiKey,Z.name);let Ci=null;for(const mr of Ae)try{const js=yield mr._get(Xn);if(js){const Lo=Be._fromJSON(Z,js);mr!==an&&(Ci=Lo),an=mr;break}}catch(js){}const sr=Gt.filter(mr=>mr._shouldAllowMigration);return an._shouldAllowMigration&&sr.length?(an=sr[0],Ci&&(yield an._set(Xn,Ci.toJSON())),yield Promise.all(Ae.map(function(){var mr=(0,h.Z)(function*(js){if(js!==an)try{yield js._remove(Xn)}catch(Lo){}});return function(js){return mr.apply(this,arguments)}}())),new ht(an,Z,ot)):new ht(an,Z,ot)}).apply(this,arguments)}}function Oe(B){const D=B.toLowerCase();if(D.includes("opera/")||D.includes("opr/")||D.includes("opios/"))return"Opera";if(x(D))return"IEMobile";if(D.includes("msie")||D.includes("trident/"))return"IE";if(D.includes("edge/"))return"Edge";if(De(D))return"Firefox";if(D.includes("silk/"))return"Silk";if(de(D))return"Blackberry";if(Je(D))return"Webos";if(U(D))return"Safari";if((D.includes("chrome/")||N(D))&&!D.includes("edge/"))return"Chrome";
1if(j(D))return"Android";{const Z=B.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(2===(null==Z?void 0:Z.length))return Z[1]}return"Other"}function De(B=(0,s.z$)()){return/firefox\//i.test(B)}function U(B=(0,s.z$)()){const D=B.toLowerCase();return D.includes("safari/")&&!D.includes("chrome/")&&!D.includes("crios/")&&!D.includes("android")}function N(B=(0,s.z$)()){return/crios\//i.test(B)}function x(B=(0,s.z$)()){return/iemobile/i.test(B)}function j(B=(0,s.z$)()){return/android/i.test(B)}function de(B=(0,s.z$)()){return/blackberry/i.test(B)}function Je(B=(0,s.z$)()){return/webos/i.test(B)}function St(B=(0,s.z$)()){return/iphone|ipad|ipod/i.test(B)||/macintosh/i.test(B)&&/mobile/i.test(B)}function Ht(B=(0,s.z$)()){return/(iPad|iPhone|iPod).*OS 7_\d/i.test(B)||/(iPad|iPhone|iPod).*OS 8_\d/i.test(B)}function ii(B=(0,s.z$)()){return St(B)||j(B)||Je(B)||de(B)||/windows phone/i.test(B)||x(B)}function Cr(B,D=[]){let I;switch(B){case"Browser":I=Oe((0,s.z$)());break;case"Worker":I=`${Oe((0,s.z$)())}-${B}`;break;default:I=B}const Z=D.length?D.join(","):"FirebaseCore-web";return`${I}/JsCore/${m.SDK_VERSION}/${Z}`}function qt(){return(qt=(0,h.Z)(function*(B){return(yield it(B,"GET","/v1/recaptchaParams")).recaptchaSiteKey||""})).apply(this,arguments)}function xn(B,D){return fn.apply(this,arguments)}function fn(){return(fn=(0,h.Z)(function*(B,D){return it(B,"GET","/v2/recaptchaConfig",Mt(B,D))})).apply(this,arguments)}function zn(B){return void 0!==B&&void 0!==B.getResponse}function ai(B){return void 0!==B&&void 0!==B.enterprise}class Hi{constructor(D){if(this.siteKey="",this.emailPasswordEnabled=!1,void 0===D.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=D.recaptchaKey.split("/")[3],this.emailPasswordEnabled=D.recaptchaEnforcementState.some(I=>"EMAIL_PASSWORD_PROVIDER"===I.provider&&"OFF"!==I.enforcementState)}}function Ji(B){return new Promise((D,I)=>{const Z=document.createElement("script");Z.setAttribute("src",B),Z.onload=D,Z.onerror=Ae=>{const ot=ze("internal-error");ot.customData=Ae,I(ot)},Z.type="text/javascript",Z.charset="UTF-8",function _r(){var B,D;return null!==(D=null===(B=document.getElementsByTagName("head"))||void 0===B?void 0:B[0])&&void 0!==D?D:document}().appendChild(Z)})}function Pr(B){return`__${B}${Math.floor(1e6*Math.random())}`}class Ni{constructor(D){this.type="recaptcha-enterprise",this.auth=Wi(D)}verify(){var D=this;return(0,h.Z)(function*(I="verify",Z=!1){function ot(){return ot=(0,h.Z)(function*(an){if(!Z){if(null==an.tenantId&&null!=an._agentRecaptchaConfig)return an._agentRecaptchaConfig.siteKey;if(null!=an.tenantId&&void 0!==an._tenantRecaptchaConfigs[an.tenantId])return an._tenantRecaptchaConfigs[an.tenantId].siteKey}return new Promise(function(){var Xn=(0,h.Z)(function*(Ci,sr){xn(an,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(mr=>{if(void 0!==mr.recaptchaKey){const js=new Hi(mr);return null==an.tenantId?an._agentRecaptchaConfig=js:an._tenantRecaptchaConfigs[an.tenantId]=js,Ci(js.siteKey)}sr(new Error("recaptcha Enterprise site key undefined"))}).catch(mr=>{sr(mr)})});return function(Ci,sr){return Xn.apply(this,arguments)}}())}),ot.apply(this,arguments)}function Gt(an,Xn,Ci){const sr=window.grecaptcha;ai(sr)?sr.enterprise.ready(()=>{sr.enterprise.execute(an,{action:I}).then(mr=>{Xn(mr)}).catch(()=>{Xn("NO_RECAPTCHA")})}):Ci(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((an,Xn)=>{(function Ae(an){return ot.apply(this,arguments)})(D.auth).then(Ci=>
1{if(!Z&&ai(window.grecaptcha))Gt(Ci,an,Xn);else{if("undefined"==typeof window)return void Xn(new Error("RecaptchaVerifier is only supported in browser"));Ji("https://www.google.com/recaptcha/enterprise.js?render="+Ci).then(()=>{Gt(Ci,an,Xn)}).catch(sr=>{Xn(sr)})}}).catch(Ci=>{Xn(Ci)})})}).apply(this,arguments)}}function Gr(B,D,I){return jr.apply(this,arguments)}function jr(){return(jr=(0,h.Z)(function*(B,D,I,Z=!1){const Ae=new Ni(B);let ot;try{ot=yield Ae.verify(I)}catch(an){ot=yield Ae.verify(I,!0)}const Gt=Object.assign({},D);return Object.assign(Gt,Z?{captchaResp:ot}:{captchaResponse:ot}),Object.assign(Gt,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(Gt,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),Gt})).apply(this,arguments)}class or{constructor(D){this.auth=D,this.queue=[]}pushCallback(D,I){const Z=ot=>new Promise((Gt,an)=>{try{Gt(D(ot))}catch(Xn){an(Xn)}});Z.onAbort=I,this.queue.push(Z);const Ae=this.queue.length-1;return()=>{this.queue[Ae]=()=>Promise.resolve()}}runMiddleware(D){var I=this;return(0,h.Z)(function*(){if(I.auth.currentUser===D)return;const Z=[];try{for(const Ae of I.queue)yield Ae(D),Ae.onAbort&&Z.push(Ae.onAbort)}catch(Ae){Z.reverse();for(const ot of Z)try{ot()}catch(Gt){}throw I.auth._errorFactory.create("login-blocked",{originalMessage:null==Ae?void 0:Ae.message})}})()}}class ar{constructor(D,I,Z,Ae){this.app=D,this.heartbeatServiceProvider=I,this.appCheckServiceProvider=Z,this.config=Ae,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Ps(this),this.idTokenSubscription=new Ps(this),this.beforeStateQueue=new or(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=$e,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=D.name,this.clientVersion=Ae.sdkClientVersion}_initializeWithPersistence(D,I){var Z=this;return I&&(this._popupRedirectResolver=Ot(I)),this._initializationPromise=this.queue((0,h.Z)(function*(){var Ae,ot;if(!Z._deleted&&(Z.persistenceManager=yield ht.create(Z,D),!Z._deleted)){if(null===(Ae=Z._popupRedirectResolver)||void 0===Ae?void 0:Ae._shouldInitProactively)try{yield Z._popupRedirectResolver._initialize(Z)}catch(Gt){}yield Z.initializeCurrentUser(I),Z.lastNotifiedUid=(null===(ot=Z.currentUser)||void 0===ot?void 0:ot.uid)||null,!Z._deleted&&(Z._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var D=this;return(0,h.Z)(function*(){if(D._deleted)return;const I=yield D.assertedPersistence.getCurrentUser();if(D.currentUser||I){if(D.currentUser&&I&&D.currentUser.uid===I.uid)return D._currentUser._assign(I),void(yield D.currentUser.getIdToken());yield D._updateCurrentUser(I,!0)}})()}initializeCurrentUser(D){var I=this;return(0,h.Z)(function*(){var Z;const Ae=yield I.assertedPersistence.getCurrentUser();let ot=Ae,Gt=!1;if(D&&I.config.authDomain){yield I.getOrInitRedirectPersistenceManager();const an=null===(Z=I.redirectUser)||void 0===Z?void 0:Z._redirectEventId,Xn=null==ot?void 0:ot._redirectEventId,Ci=yield I.tryRedirectSignIn(D);(!an||an===Xn)&&(null==Ci?void 0:Ci.user)&&(ot=Ci.user,Gt=!0)}if(!ot)return I.directlySetCurrentUser(null);if(!ot._redirectEventId){if(Gt)try{yield I.beforeStateQueue.runMiddleware(ot)}catch(an){ot=Ae,I._popupRedirectResolver._overrideRedirectResult(I,()=>Promise.reject(an))}return ot?I.reloadAndSetCurrentUserOrClear(ot):I.directlySetCurrentUser(null)}return me(I._popupRedirectResolver,I,"argument-error"),yield I.getOrInitRedirectPersistenceManager(),I.redirectUser&&I.redirectUser._redirectEventId===ot._redirectEventId?I.directlySetCurrentUser(ot):I.reloadAndSetCurrentUserOrClear(ot)})()}tryRedirectSignIn(D){var I=this;return(0,h.Z)(function*(){let Z=null;try{Z=yield I._popupRedirectResolver._completeRedirectFn(I,D,!0)}catch(Ae){yield I._setRedirectUser(null)}return Z})()}reloadAndSetCurrentUserOrClear(D){var I=this;return(0,h.Z)(function*(){try{yield Cn(D)}catch(Z){if("auth/network-request-failed"!==(null==Z?void 0:Z.code))return I.directlySetCurrentUser(null)}return I.directlySetCurrentUser(D)})()}useDeviceLanguage(){this.languageCode=function Wn(){if("undefined"==typeof navigator)return null;const B=navigator;return B.languages&&B.languages[0]||B.language||null}()}_delete(){var D=this;return(0,h.Z)(function*(){D._deleted=!0}
1)()}updateCurrentUser(D){var I=this;return(0,h.Z)(function*(){const Z=D?(0,s.m9)(D):null;return Z&&me(Z.auth.config.apiKey===I.config.apiKey,I,"invalid-user-token"),I._updateCurrentUser(Z&&Z._clone(I))})()}_updateCurrentUser(D){var I=this;return(0,h.Z)(function*(Z,Ae=!1){if(!I._deleted)return Z&&me(I.tenantId===Z.tenantId,I,"tenant-id-mismatch"),Ae||(yield I.beforeStateQueue.runMiddleware(Z)),I.queue((0,h.Z)(function*(){yield I.directlySetCurrentUser(Z),I.notifyAuthListeners()}))}).apply(this,arguments)}signOut(){var D=this;return(0,h.Z)(function*(){return yield D.beforeStateQueue.runMiddleware(null),(D.redirectPersistenceManager||D._popupRedirectResolver)&&(yield D._setRedirectUser(null)),D._updateCurrentUser(null,!0)})()}setPersistence(D){var I=this;return this.queue((0,h.Z)(function*(){yield I.assertedPersistence.setPersistence(Ot(D))}))}initializeRecaptchaConfig(){var D=this;return(0,h.Z)(function*(){const I=yield xn(D,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}),Z=new Hi(I);null==D.tenantId?D._agentRecaptchaConfig=Z:D._tenantRecaptchaConfigs[D.tenantId]=Z,Z.emailPasswordEnabled&&new Ni(D).verify()})()}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(D){this._errorFactory=new s.LL("auth","Firebase",D())}onAuthStateChanged(D,I,Z){return this.registerStateListener(this.authStateSubscription,D,I,Z)}beforeAuthStateChanged(D,I){return this.beforeStateQueue.pushCallback(D,I)}onIdTokenChanged(D,I,Z){return this.registerStateListener(this.idTokenSubscription,D,I,Z)}toJSON(){var D;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(D=this._currentUser)||void 0===D?void 0:D.toJSON()}}_setRedirectUser(D,I){var Z=this;return(0,h.Z)(function*(){const Ae=yield Z.getOrInitRedirectPersistenceManager(I);return null===D?Ae.removeCurrentUser():Ae.setCurrentUser(D)})()}getOrInitRedirectPersistenceManager(D){var I=this;return(0,h.Z)(function*(){if(!I.redirectPersistenceManager){const Z=D&&Ot(D)||I._popupRedirectResolver;me(Z,I,"argument-error"),I.redirectPersistenceManager=yield ht.create(I,[Ot(Z._redirectPersistence)],"redirectUser"),I.redirectUser=yield I.redirectPersistenceManager.getCurrentUser()}return I.redirectPersistenceManager})()}_redirectUserForId(D){var I=this;return(0,h.Z)(function*(){var Z,Ae;return I._isInitialized&&(yield I.queue((0,h.Z)(function*(){}))),(null===(Z=I._currentUser)||void 0===Z?void 0:Z._redirectEventId)===D?I._currentUser:(null===(Ae=I.redirectUser)||void 0===Ae?void 0:Ae._redirectEventId)===D?I.redirectUser:null})()}_persistUserIfCurrent(D){var I=this;return(0,h.Z)(function*(){if(D===I.currentUser)return I.queue((0,h.Z)(function*(){return I.directlySetCurrentUser(D)}))})()}_notifyListenersIfCurrent(D){D===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(){var D,I;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const Z=null!==(I=null===(D=this.currentUser)||void 0===D?void 0:D.uid)&&void 0!==I?I:null;this.lastNotifiedUid!==Z&&(this.lastNotifiedUid=Z,this.authStateSubscription.next(this.currentUser))}registerStateListener(D,I,Z,Ae){if(this._deleted)return()=>{};const ot="function"==typeof I?I:I.next.bind(I),Gt=this._isInitialized?Promise.resolve():this._initializationPromise;return me(Gt,this,"internal-error"),Gt.then(()=>ot(this.currentUser)),"function"==typeof I?D.addObserver(I,Z,Ae):D.addObserver(I)}directlySetCurrentUser(D){var I=this;return(0,h.Z)(function*(){I.currentUser&&I.currentUser!==D&&I._currentUser._stopProactiveRefresh(),D&&I.isProactiveRefreshEnabled&&D._startProactiveRefresh(),I.currentUser=D,D?yield I.assertedPersistence.setCurrentUser(D):yield I.assertedPersistence.removeCurrentUser()})()}queue(D){return this.operations=this.operations.then(D,D),this.operations}get assertedPersistence(){return me(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(D){!D||this.frameworks.includes(D)||(this.frameworks.push(D),this.frameworks.sort(),this.clientVersion=Cr(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var D=this;return(0,h.Z)(function*(){var I;const Z={"X-Client-Version":D.clientVersion};D.app.options.appId&&(Z["X-Firebase-gmpid"]=D.app.options.appId);const Ae=yield null===(I=D.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===I?void 0:I.getHeartbeatsHeader();Ae&&(Z["X-Firebase-Client"]=Ae);const ot=yield D._getAppCheckToken();return ot&&(Z["X-Firebase-AppCheck"]=ot),Z})()}_getAppCheckToken(){var D=this;return(0,h.Z)(function*(){var I;const Z=yield null===(I=D.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===I?void 0:I.getToken();return(null==Z?void 0:Z.error)&&function je(B,...D){rt.logLevel<=v.in.WARN&&rt.warn(`Auth (${m.SDK_VERSION}): ${B}`,...D)}(`Error while retrieving App Check token: ${Z.error}`),null==Z?void 0:Z.token})()}}function Wi(B){return(0,s.m9)(B)}class Ps{constructor(D){this.auth=D,this.observer=null,this.addObserver=(0,s.ne)(I=>this.observer=I)}get next(){return me(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}function _i(B,D,I){const Z=Wi(B);me(Z._canInitEmulator,Z,"emulator-config-failed"),me(/^https?:\/\//.test(D),Z,"invalid-emulator-scheme");const Ae=!!(null==I?void 0:I.disableWarnings),ot=Nt(D),{host:Gt,port:an}=function Ft(B){const D=Nt(B),I=/(\/\/)?([^?#/]+)/.exec(B.substr(D.length));if(!I)return{host:"",port:null};const Z=I[2].split("@").pop()||"",Ae=/^(\[[^\]]+\])(:|$)/.exec(Z);if(Ae){const ot=Ae[1];return{host:ot,port:$t(Z.substr(ot.length+1))}}{const[ot,Gt]=Z.split(":");return{host:ot,port:$t(Gt)}}}(D);Z.config.emulator={url:`${ot}//${Gt}${null===an?"":`:${an}`}/`},Z.settings.appVerificationDisabledForTesting=!0,Z.emulatorConfig=Object.freeze({host:Gt,port:an,protocol:ot.replace(":",""),options:Object.freeze({disableWarnings:Ae})}),Ae||function cn(){function B(){const D=document.createElement("p"),I=D.style;D.innerText="Running in emulator mode. Do not use with production credentials.",I.position="fixed",I.width="100%",I.backgroundColor="#ffffff",I.border=".1em solid #000000",I.color="#b50000",I.bottom="0px",I.left="0px",I.margin="0px",I.zIndex="10000",I.textAlign="center",D.classList.add("firebase-emulator-warning"),document.body.appendChild(D)}"undefined"!=typeof console&&"function"==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),"undefined"!=typeof window&&"undefined"!=typeof document&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",B):B())}()}function Nt(B){const D=B.indexOf(":");return D<0?"":B.substr(0,D+1)}function $t(B){if(!B)return null;const D=Number(B);return isNaN(D)?null:D}class Un{constructor(D,I){this.providerId=D,this.signInMethod=I}toJSON(){return gt("not implemented")}_getIdTokenResponse(D){return gt("not implemented")}_linkToIdToken(D,I){return gt("not implemented")}_getReauthenticationResolver(D){return gt("not implemented")}}function Mi(B,D){return Fi.apply(this,arguments)}function Fi(){return(Fi=(0,h.Z)(function*(B,D){return it(B,"POST","/v1/accounts:resetPassword",Mt(B,D))})).apply(this,arguments)}function oi(B,D){return Gi.apply(this,arguments)}function Gi(){return(Gi=(0,h.Z)(function*(B,D){return it(B,"POST","/v1/accounts:update",D)})).apply(this,arguments)}function Jr(B,D){return io.apply(this,arguments)}function io(){return(io=(0,h.Z)(function*(B,D){return it(B,"POST","/v1/accounts:update",Mt(B,D))})).apply(this,arguments)}function Ar(B,D){return ns.apply(this,arguments)}function ns(){return(ns=(0,h.Z)(function*(B,D){return vt(B,"POST","/v1/accounts:signInWithPassword",Mt(B,D))})).apply(this,arguments)}function co(B,D){return Oo.apply(this,arguments)}function Oo(){return(Oo=(0,h.Z)(function*(B,D){return it(B,"POST","/v1/accounts:sendOobCode",Mt(B,D))})).apply(this,arguments)}function oo(B,D){return ho.apply(this,arguments)}
1function ho(){return(ho=(0,h.Z)(function*(B,D){return co(B,D)})).apply(this,arguments)}function go(B,D){return ws.apply(this,arguments)}function ws(){return(ws=(0,h.Z)(function*(B,D){return co(B,D)})).apply(this,arguments)}function Ro(B,D){return Ks.apply(this,arguments)}function Ks(){return(Ks=(0,h.Z)(function*(B,D){return co(B,D)})).apply(this,arguments)}function ma(B,D){return Ui.apply(this,arguments)}function Ui(){return(Ui=(0,h.Z)(function*(B,D){return co(B,D)})).apply(this,arguments)}function dr(){return(dr=(0,h.Z)(function*(B,D){return vt(B,"POST","/v1/accounts:signInWithEmailLink",Mt(B,D))})).apply(this,arguments)}function yo(){return(yo=(0,h.Z)(function*(B,D){return vt(B,"POST","/v1/accounts:signInWithEmailLink",Mt(B,D))})).apply(this,arguments)}class Ms extends Un{constructor(D,I,Z,Ae=null){super("password",Z),this._email=D,this._password=I,this._tenantId=Ae}static _fromEmailAndPassword(D,I){return new Ms(D,I,"password")}static _fromEmailAndCode(D,I,Z=null){return new Ms(D,I,"emailLink",Z)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(D){const I="string"==typeof D?JSON.parse(D):D;if((null==I?void 0:I.email)&&(null==I?void 0:I.password)){if("password"===I.signInMethod)return this._fromEmailAndPassword(I.email,I.password);if("emailLink"===I.signInMethod)return this._fromEmailAndCode(I.email,I.password,I.tenantId)}return null}_getIdTokenResponse(D){var I=this;return(0,h.Z)(function*(){var Z;switch(I.signInMethod){case"password":const Ae={returnSecureToken:!0,email:I._email,password:I._password,clientType:"CLIENT_TYPE_WEB"};if(null===(Z=D._getRecaptchaConfig())||void 0===Z?void 0:Z.emailPasswordEnabled){const ot=yield Gr(D,Ae,"signInWithPassword");return Ar(D,ot)}return Ar(D,Ae).catch(function(){var ot=(0,h.Z)(function*(Gt){if("auth/missing-recaptcha-token"===Gt.code){console.log("Sign-in with email address and password is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-in flow.");const an=yield Gr(D,Ae,"signInWithPassword");return Ar(D,an)}return Promise.reject(Gt)});return function(Gt){return ot.apply(this,arguments)}}());case"emailLink":return function Ys(B,D){return dr.apply(this,arguments)}(D,{email:I._email,oobCode:I._password});default:ut(D,"internal-error")}})()}_linkToIdToken(D,I){var Z=this;return(0,h.Z)(function*(){switch(Z.signInMethod){case"password":return oi(D,{idToken:I,returnSecureToken:!0,email:Z._email,password:Z._password});case"emailLink":return function aa(B,D){return yo.apply(this,arguments)}(D,{idToken:I,email:Z._email,oobCode:Z._password});default:ut(D,"internal-error")}})()}_getReauthenticationResolver(D){return this._getIdTokenResponse(D)}}function vo(B,D){return _s.apply(this,arguments)}function _s(){return(_s=(0,h.Z)(function*(B,D){return vt(B,"POST","/v1/accounts:signInWithIdp",Mt(B,D))})).apply(this,arguments)}class is extends Un{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(D){const I=new is(D.providerId,D.signInMethod);return D.idToken||D.accessToken?(D.idToken&&(I.idToken=D.idToken),D.accessToken&&(I.accessToken=D.accessToken),D.nonce&&!D.pendingToken&&(I.nonce=D.nonce),D.pendingToken&&(I.pendingToken=D.pendingToken)):D.oauthToken&&D.oauthTokenSecret?(I.accessToken=D.oauthToken,I.secret=D.oauthTokenSecret):ut("argument-error"),I}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
1once:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(D){const I="string"==typeof D?JSON.parse(D):D,{providerId:Z,signInMethod:Ae}=I,ot=(0,k._T)(I,["providerId","signInMethod"]);if(!Z||!Ae)return null;const Gt=new is(Z,Ae);return Gt.idToken=ot.idToken||void 0,Gt.accessToken=ot.accessToken||void 0,Gt.secret=ot.secret,Gt.nonce=ot.nonce,Gt.pendingToken=ot.pendingToken||null,Gt}_getIdTokenResponse(D){return vo(D,this.buildRequest())}_linkToIdToken(D,I){const Z=this.buildRequest();return Z.idToken=I,vo(D,Z)}_getReauthenticationResolver(D){const I=this.buildRequest();return I.autoCreate=!1,vo(D,I)}buildRequest(){const D={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)D.pendingToken=this.pendingToken;else{const I={};this.idToken&&(I.id_token=this.idToken),this.accessToken&&(I.access_token=this.accessToken),this.secret&&(I.oauth_token_secret=this.secret),I.providerId=this.providerId,this.nonce&&!this.pendingToken&&(I.nonce=this.nonce),D.postBody=(0,s.xO)(I)}return D}}function gs(B,D){return Es.apply(this,arguments)}function Es(){return(Es=(0,h.Z)(function*(B,D){return it(B,"POST","/v1/accounts:sendVerificationCode",Mt(B,D))})).apply(this,arguments)}function fo(){return(fo=(0,h.Z)(function*(B,D){return vt(B,"POST","/v1/accounts:signInWithPhoneNumber",Mt(B,D))})).apply(this,arguments)}function qs(){return(qs=(0,h.Z)(function*(B,D){const I=yield vt(B,"POST","/v1/accounts:signInWithPhoneNumber",Mt(B,D));if(I.temporaryProof)throw _n(B,"account-exists-with-different-credential",I);return I})).apply(this,arguments)}const bo={USER_NOT_FOUND:"user-not-found"};function Do(){return(Do=(0,h.Z)(function*(B,D){return vt(B,"POST","/v1/accounts:signInWithPhoneNumber",Mt(B,Object.assign(Object.assign({},D),{operation:"REAUTH"})),bo)})).apply(this,arguments)}class Yi extends Un{constructor(D){super("phone","phone"),this.params=D}static _fromVerification(D,I){return new Yi({verificationId:D,verificationCode:I})}static _fromTokenResponse(D,I){return new Yi({phoneNumber:D,temporaryProof:I})}_getIdTokenResponse(D){return function Os(B,D){return fo.apply(this,arguments)}(D,this._makeVerificationRequest())}_linkToIdToken(D,I){return function _a(B,D){return qs.apply(this,arguments)}(D,Object.assign({idToken:I},this._makeVerificationRequest()))}_getReauthenticationResolver(D){return function ia(B,D){return Do.apply(this,arguments)}(D,this._makeVerificationRequest())}_makeVerificationRequest(){const{temporaryProof:D,phoneNumber:I,verificationId:Z,verificationCode:Ae}=this.params;return D&&I?{temporaryProof:D,phoneNumber:I}:{sessionInfo:Z,code:Ae}}toJSON(){const D={providerId:this.providerId};return this.params.phoneNumber&&(D.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(D.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(D.verificationCode=this.params.verificationCode),this.params.verificationId&&(D.verificationId=this.params.verificationId),D}static fromJSON(D){"string"==typeof D&&(D=JSON.parse(D));const{verificationId:I,verificationCode:Z,phoneNumber:Ae,temporaryProof:ot}=D;return Z||I||Ae||ot?new Yi({verificationId:I,verificationCode:Z,phoneNumber:Ae,temporaryProof:ot}):null}}class Vs{constructor(D){var I,Z,Ae,ot,Gt,an;const Xn=(0,s.zd)((0,s.pd)(D)),Ci=null!==(I=Xn.apiKey)&&void 0!==I?I:null,sr=null!==(Z=Xn.oobCode)&&void 0!==Z?Z:null,mr=function gr(B){switch(B){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}}(null!==(Ae=Xn.mode)&&void 0!==Ae?Ae:null);me(Ci&&sr&&mr,"argument-error"),this.apiKey=Ci,this.operation=mr,this.code=sr,this.continueUrl=null!==(ot=Xn.continueUrl)&&void 0!==ot?ot:null,this.languageCode=null!==(Gt=Xn.languageCode)&&void 0!==Gt?Gt:null,this.tenantId=null!==(an=Xn.tenantId)&&void 0!==an?an:null}static parseLink(D){const I=function Cs(B){const D=(0,s.zd)((0,s.pd)(B)).link,I=D?(0,s.zd)((0,s.pd)(D)).deep_link_id:null,Z=(0,s.zd)((0,s.pd)(B)).deep_link_id;return(Z?(0,s.zd)((0,s.pd)(Z)).link:null)||Z||I||D||B}(D);try{return new Vs(I)}catch(Z){return null}}}let ri=(()=>{class B{constructor(){this.providerId=B.PROVIDER_ID}static credential(I,Z){return Ms._fromEmailAndPassword(I,Z)}static credentialWithLink(I,Z){const Ae=Vs.parseLink(Z);return me(Ae,"argument-error"),Ms._fromEmailAndCode(I,Ae.code,Ae.tenantId)}}return B.PROVIDER_ID="password",B.EMAIL_PASSWORD_SIGN_IN_METHOD="password",B.EMAIL_LINK_SIGN_IN_METHOD="emailLink",B})();class xi{constructor(D){this.providerId=D,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(D){this.defaultLanguageCode=D}setCustomParameters(D){return this.customParameters=D,this}getCustomParameters(){return this.customParameters}}class Yr extends xi{constructor(){super(...arguments),this.scopes=[]}addScope(D){return this.scopes.includes(D)||this.scopes.push(D),this}getScopes(){return[...this.scopes]}}class rr extends Yr{static credentialFromJSON(D){const I="string"==typeof D?JSON.parse(D):D;return me("providerId"in I&&"signInMethod"in I,"argument-error"),is._fromParams(I)}credential(D){return this._credential(Object.assign(Object.assign({},D),{nonce:D.rawNonce}))}_credential(D){return me(D.idToken||D.accessToken,"argument-error"),is._fromParams(Object.assign(Object.assign({}
1,D),{providerId:this.providerId,signInMethod:this.providerId}))}static credentialFromResult(D){return rr.oauthCredentialFromTaggedObject(D)}static credentialFromError(D){return rr.oauthCredentialFromTaggedObject(D.customData||{})}static oauthCredentialFromTaggedObject({_tokenResponse:D}){if(!D)return null;const{oauthIdToken:I,oauthAccessToken:Z,oauthTokenSecret:Ae,pendingToken:ot,nonce:Gt,providerId:an}=D;if(!Z&&!Ae&&!I&&!ot||!an)return null;try{return new rr(an)._credential({idToken:I,accessToken:Z,nonce:Gt,pendingToken:ot})}catch(Xn){return null}}}let wo=(()=>{class B extends Yr{constructor(){super("facebook.com")}static credential(I){return is._fromParams({providerId:B.PROVIDER_ID,signInMethod:B.FACEBOOK_SIGN_IN_METHOD,accessToken:I})}static credentialFromResult(I){return B.credentialFromTaggedObject(I)}static credentialFromError(I){return B.credentialFromTaggedObject(I.customData||{})}static credentialFromTaggedObject({_tokenResponse:I}){if(!I||!("oauthAccessToken"in I)||!I.oauthAccessToken)return null;try{return B.credential(I.oauthAccessToken)}catch(Z){return null}}}return B.FACEBOOK_SIGN_IN_METHOD="facebook.com",B.PROVIDER_ID="facebook.com",B})(),Ma=(()=>{class B extends Yr{constructor(){super("google.com"),this.addScope("profile")}static credential(I,Z){return is._fromParams({providerId:B.PROVIDER_ID,signInMethod:B.GOOGLE_SIGN_IN_METHOD,idToken:I,accessToken:Z})}static credentialFromResult(I){return B.credentialFromTaggedObject(I)}static credentialFromError(I){return B.credentialFromTaggedObject(I.customData||{})}static credentialFromTaggedObject({_tokenResponse:I}){if(!I)return null;const{oauthIdToken:Z,oauthAccessToken:Ae}=I;if(!Z&&!Ae)return null;try{return B.credential(Z,Ae)}catch(ot){return null}}}return B.GOOGLE_SIGN_IN_METHOD="google.com",B.PROVIDER_ID="google.com",B})(),Ir=(()=>{class B extends Yr{constructor(){super("github.com")}static credential(I){return is._fromParams({providerId:B.PROVIDER_ID,signInMethod:B.GITHUB_SIGN_IN_METHOD,accessToken:I})}static credentialFromResult(I){return B.credentialFromTaggedObject(I)}static credentialFromError(I){return B.credentialFromTaggedObject(I.customData||{})}static credentialFromTaggedObject({_tokenResponse:I}){if(!I||!("oauthAccessToken"in I)||!I.oauthAccessToken)return null;try{return B.credential(I.oauthAccessToken)}catch(Z){return null}}}return B.GITHUB_SIGN_IN_METHOD="github.com",B.PROVIDER_ID="github.com",B})();class Ne extends Un{constructor(D,I){super(D,D),this.pendingToken=I}_getIdTokenResponse(D){return vo(D,this.buildRequest())}_linkToIdToken(D,I){const Z=this.buildRequest();return Z.idToken=I,vo(D,Z)}_getReauthenticationResolver(D){const I=this.buildRequest();return I.autoCreate=!1,vo(D,I)}toJSON(){return{signInMethod:this.signInMethod,providerId:this.providerId,pendingToken:this.pendingToken}}static fromJSON(D){const I="string"==typeof D?JSON.parse(D):D,{providerId:Z,signInMethod:Ae,pendingToken:ot}=I;return Z&&Ae&&ot&&Z===Ae?new Ne(Z,ot):null}static _create(D,I){return new Ne(D,I)}buildRequest(){return{requestUri:"http://localhost",returnSecureToken:!0,pendingToken:this.pendingToken}}}class qe extends xi{constructor(D){me(D.startsWith("saml."),"argument-error"),super(D)}static credentialFromResult(D){return qe.samlCredentialFromTaggedObject(D)}static credentialFromError(D){return qe.samlCredentialFromTaggedObject(D.customData||{})}static credentialFromJSON(D){const I=Ne.fromJSON(D);return me(I,"argument-error"),I}static samlCredentialFromTaggedObject({_tokenResponse:D}){if(!D)return null;const{pendingToken:I,providerId:Z}=D;if(!I||!Z)return null;try{return Ne._create(Z,I)}catch(Ae){return null}}}let Ct=(()=>{class B extends Yr{constructor(){super("twitter.com")}static credential(I,Z){return is._fromParams({providerId:B.PROVIDER_ID,signInMethod:B.TWITTER_SIGN_IN_METHOD,oauthToken:I,oauthTokenSecret:Z})}static credentialFromResult(I){return B.credentialFromTaggedObject(I)}static credentialFromError(I){return B.credentialFromTaggedObject(I.customData||{})}static credentialFromTaggedObject({_tokenResponse:I}){if(!I)return null;const{oauthAccessToken:Z,oauthTokenSecret:Ae}=I;if(!Z||!Ae)return null;try{return B.credential(Z,Ae)}catch(ot){return null}}}return B.TWITTER_SIGN_IN_METHOD="twitter.com",B.PROVIDER_ID="twitter.com",B})();function dn(B,D){return hn.apply(this,arguments)}
1function hn(){return(hn=(0,h.Z)(function*(B,D){return vt(B,"POST","/v1/accounts:signUp",Mt(B,D))})).apply(this,arguments)}class li{constructor(D){this.user=D.user,this.providerId=D.providerId,this._tokenResponse=D._tokenResponse,this.operationType=D.operationType}static _fromIdTokenResponse(D,I,Z){return(0,h.Z)(function*(Ae,ot,Gt,an=!1){const Xn=yield Be._fromIdTokenResponse(Ae,Gt,an),Ci=Tr(Gt);return new li({user:Xn,providerId:Ci,_tokenResponse:Gt,operationType:ot})}).apply(this,arguments)}static _forOperation(D,I,Z){return(0,h.Z)(function*(){yield D._updateTokensIfNecessary(Z,!0);const Ae=Tr(Z);return new li({user:D,providerId:Ae,_tokenResponse:Z,operationType:I})})()}}function Tr(B){return B.providerId?B.providerId:"phoneNumber"in B?"phone":null}function Dr(B){return Xi.apply(this,arguments)}function Xi(){return(Xi=(0,h.Z)(function*(B){var D;const I=Wi(B);if(yield I._initializationPromise,null===(D=I.currentUser)||void 0===D?void 0:D.isAnonymous)return new li({user:I.currentUser,providerId:null,operationType:"signIn"});const Z=yield dn(I,{returnSecureToken:!0}),Ae=yield li._fromIdTokenResponse(I,"signIn",Z,!0);return yield I._updateCurrentUser(Ae.user),Ae})).apply(this,arguments)}class $i extends s.ZR{constructor(D,I,Z,Ae){var ot;super(I.code,I.message),this.operationType=Z,this.user=Ae,Object.setPrototypeOf(this,$i.prototype),this.customData={appName:D.name,tenantId:null!==(ot=D.tenantId)&&void 0!==ot?ot:void 0,_serverResponse:I.customData._serverResponse,operationType:Z}}static _fromErrorAndOperation(D,I,Z,Ae){return new $i(D,I,Z,Ae)}}function Xr(B,D,I,Z){return("reauthenticate"===D?I._getReauthenticationResolver(B):I._getIdTokenResponse(B)).catch(ot=>{throw"auth/multi-factor-auth-required"===ot.code?$i._fromErrorAndOperation(B,ot,D,Z):ot})}function hr(B){return new Set(B.map(({providerId:D})=>D).filter(D=>!!D))}function as(B,D){return ge.apply(this,arguments)}function ge(){return(ge=(0,h.Z)(function*(B,D){const I=(0,s.m9)(B);yield We(!0,I,D);const{providerUserInfo:Z}=yield si(I.auth,{idToken:yield I.getIdToken(),deleteProvider:[D]}),Ae=hr(Z||[]);return I.providerData=I.providerData.filter(ot=>Ae.has(ot.providerId)),Ae.has("phone")||(I.phoneNumber=null),yield I.auth._persistUserIfCurrent(I),I})).apply(this,arguments)}function oe(B,D){return J.apply(this,arguments)}function J(){return(J=(0,h.Z)(function*(B,D,I=!1){const Z=yield nt(B,D._linkToIdToken(B.auth,yield B.getIdToken()),I);return li._forOperation(B,"link",Z)})).apply(this,arguments)}function We(B,D,I){return gn.apply(this,arguments)}function gn(){return(gn=(0,h.Z)(function*(B,D,I){yield Cn(D);const Ae=!1===B?"provider-already-linked":"no-such-provider";me(hr(D.providerData).has(I)===B,D.auth,Ae)})).apply(this,arguments)}function mi(B,D){return hi.apply(this,arguments)}function hi(){return(hi=(0,h.Z)(function*(B,D,I=!1){const{auth:Z}=B,Ae="reauthenticate";try{const ot=yield nt(B,Xr(Z,Ae,D,B),I);me(ot.idToken,Z,"internal-error");const Gt=ae(ot.idToken);me(Gt,Z,"internal-error");const{sub:an}=Gt;return me(B.uid===an,Z,"user-mismatch"),li._forOperation(B,Ae,ot)}catch(ot){throw"auth/user-not-found"===(null==ot?void 0:ot.code)&&ut(Z,"user-mismatch"),ot}})).apply(this,arguments)}function zs(B,D){return Ss.apply(this,arguments)}function Ss(){return(Ss=(0,h.Z)(function*(B,D,I=!1){const Z="signIn",Ae=yield Xr(B,Z,D),ot=yield li._fromIdTokenResponse(B,Z,Ae);return I||(yield B._updateCurrentUser(ot.user)),ot})).apply(this,arguments)}function Qs(B,D){return ks.apply(this,arguments)}function ks(){return(ks=(0,h.Z)(function*(B,D){return zs(Wi(B),D)})).apply(this,arguments)}function Fn(B,D){return qi.apply(this,arguments)}function qi(){return(qi=(0,h.Z)(function*(B,D){const I=(0,s.m9)(B);return yield We(!1,I,D.providerId),oe(I,D)})).apply(this,arguments)}function ra(B,D){return yr.apply(this,arguments)}function yr(){return(yr=(0,h.Z)(function*(B,D){return mi((0,s.m9)(B),D)})).apply(this,arguments)}function sl(B,D){return fr.apply(this,arguments)}function fr(){return(fr=(0,h.Z)(function*(B,D){return vt(B,"POST","/v1/accounts:signInWithCustomToken",Mt(B,D))})).apply(this,arguments)}function Js(B,D){return Xo.apply(this,arguments)}function Xo(){return(Xo=(0,h.Z)(function*(B,D){const I=Wi(B),Z=yield sl(I,{token:D,returnSecureToken:!0}),Ae=yield li._fromIdTokenResponse(I,"signIn",Z);return yield I._updateCurrentUser(Ae.user),Ae})).apply(this,arguments)}class ls{constructor(D,I){this.factorId=D,this.uid=I.mfaEnrollmentId,this.enrollmentTime=new Date(I.enrolledAt).toUTCString(),this.displayName=I.displayName}static _fromServerResponse(D,I){return"phoneInfo"in I?$r._fromServerResponse(D,I):"totpInfo"in I?Eo._fromServerResponse(D,I):ut(D,"internal-error")}}class $r extends ls{constructor(D){super("phone",D),this.phoneNumber=D.phoneInfo}static _fromServerResponse(D,I){return new $r(I)}}class Eo extends ls{constructor(D){super("totp",D)}static _fromServerResponse(D,I){return new Eo(I)}}function No(B,D,I){var Z;me((null===(Z=I.url)||void 0===Z?void 0:Z.length)>0,B,"invalid-continue-uri"),me(void 0===I.dynamicLinkDomain||I.dynamicLinkDomain.length>0,B,"invalid-dynamic-link-domain"),D.continueUrl=I.url,D.dynamicLinkDomain=I.dynamicLinkDomain,D.canHandleCodeInApp=I.handleCodeInApp,I.iOS&&(me(I.iOS.bundleId.length>0,B,"missing-ios-bundle-id"),D.iOSBundleId=I.iOS.bundleId),I.android&&(me(I.android.packageName.length>0,B,"missing-android-pkg-name"),D.androidInstallApp=I.android.installApp,D.androidMinimumVersionCode=I.android.minimumVersion,D.androidPackageName=I.android.packageName)}function Fo(B,D,I){return Is.apply(this,arguments)}function Is(){return Is=(0,h.Z)(function*(B,D,I){var Z;const Ae=Wi(B),ot={requestType:"PASSWORD_RESET",email:D,clientType:"CLIENT_TYPE_WEB"};if(null===(Z=Ae._getRecaptchaConfig())||void 0===Z?void 0:Z.emailPasswordEnabled){const Gt=yield Gr(Ae,ot,"getOobCode",!0);I&&No(Ae,Gt,I),yield go(Ae,Gt)}
1else I&&No(Ae,ot,I),yield go(Ae,ot).catch(function(){var Gt=(0,h.Z)(function*(an){if("auth/missing-recaptcha-token"!==an.code)return Promise.reject(an);{console.log("Password resets are protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the password reset flow.");const Xn=yield Gr(Ae,ot,"getOobCode",!0);I&&No(Ae,Xn,I),yield go(Ae,Xn)}});return function(an){return Gt.apply(this,arguments)}}())}),Is.apply(this,arguments)}function po(B,D,I){return Pe.apply(this,arguments)}function Pe(){return(Pe=(0,h.Z)(function*(B,D,I){yield Mi((0,s.m9)(B),{oobCode:D,newPassword:I})})).apply(this,arguments)}function P(B,D){return F.apply(this,arguments)}function F(){return(F=(0,h.Z)(function*(B,D){yield Jr((0,s.m9)(B),{oobCode:D})})).apply(this,arguments)}function ce(B,D){return He.apply(this,arguments)}function He(){return(He=(0,h.Z)(function*(B,D){const I=(0,s.m9)(B),Z=yield Mi(I,{oobCode:D}),Ae=Z.requestType;switch(me(Ae,I,"internal-error"),Ae){case"EMAIL_SIGNIN":break;case"VERIFY_AND_CHANGE_EMAIL":me(Z.newEmail,I,"internal-error");break;case"REVERT_SECOND_FACTOR_ADDITION":me(Z.mfaInfo,I,"internal-error");default:me(Z.email,I,"internal-error")}let ot=null;return Z.mfaInfo&&(ot=ls._fromServerResponse(Wi(I),Z.mfaInfo)),{data:{email:("VERIFY_AND_CHANGE_EMAIL"===Z.requestType?Z.newEmail:Z.email)||null,previousEmail:("VERIFY_AND_CHANGE_EMAIL"===Z.requestType?Z.email:Z.newEmail)||null,multiFactorInfo:ot},operation:Ae}})).apply(this,arguments)}function dt(B,D){return Et.apply(this,arguments)}function Et(){return(Et=(0,h.Z)(function*(B,D){const{data:I}=yield ce((0,s.m9)(B),D);return I.email})).apply(this,arguments)}function kt(B,D,I){return Kt.apply(this,arguments)}function Kt(){return Kt=(0,h.Z)(function*(B,D,I){var Z;const Ae=Wi(B),ot={returnSecureToken:!0,email:D,password:I,clientType:"CLIENT_TYPE_WEB"};let Gt;if(null===(Z=Ae._getRecaptchaConfig())||void 0===Z?void 0:Z.emailPasswordEnabled){const Ci=yield Gr(Ae,ot,"signUpPassword");Gt=dn(Ae,Ci)}else Gt=dn(Ae,ot).catch(function(){var Ci=(0,h.Z)(function*(sr){if("auth/missing-recaptcha-token"===sr.code){console.log("Sign-up is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-up flow.");const mr=yield Gr(Ae,ot,"signUpPassword");return dn(Ae,mr)}return Promise.reject(sr)}
1);return function(sr){return Ci.apply(this,arguments)}}());const an=yield Gt.catch(Ci=>Promise.reject(Ci)),Xn=yield li._fromIdTokenResponse(Ae,"signIn",an);return yield Ae._updateCurrentUser(Xn.user),Xn}),Kt.apply(this,arguments)}function En(B,D,I){return Qs((0,s.m9)(B),ri.credential(D,I))}function In(B,D,I){return Di.apply(this,arguments)}function Di(){return Di=(0,h.Z)(function*(B,D,I){var Z;const Ae=Wi(B),ot={requestType:"EMAIL_SIGNIN",email:D,clientType:"CLIENT_TYPE_WEB"};function Gt(an,Xn){me(Xn.handleCodeInApp,Ae,"argument-error"),Xn&&No(Ae,an,Xn)}if(null===(Z=Ae._getRecaptchaConfig())||void 0===Z?void 0:Z.emailPasswordEnabled){const an=yield Gr(Ae,ot,"getOobCode",!0);Gt(an,I),yield Ro(Ae,an)}else Gt(ot,I),yield Ro(Ae,ot).catch(function(){var an=(0,h.Z)(function*(Xn){if("auth/missing-recaptcha-token"!==Xn.code)return Promise.reject(Xn);{console.log("Email link sign-in is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-in flow.");const Ci=yield Gr(Ae,ot,"getOobCode",!0);Gt(Ci,I),yield Ro(Ae,Ci)}});return function(Xn){return an.apply(this,arguments)}}())}),Di.apply(this,arguments)}function ji(B,D){const I=Vs.parseLink(D);return"EMAIL_SIGNIN"===(null==I?void 0:I.operation)}function er(B,D,I){return Gn.apply(this,arguments)}function Gn(){return(Gn=(0,h.Z)(function*(B,D,I){const Z=(0,s.m9)(B),Ae=ri.credentialWithLink(D,I||pn());return me(Ae._tenantId===(Z.tenantId||null),Z,"tenant-id-mismatch"),Qs(Z,Ae)})).apply(this,arguments)}function Qi(B,D){return vr.apply(this,arguments)}function vr(){return(vr=(0,h.Z)(function*(B,D){return it(B,"POST","/v1/accounts:createAuthUri",Mt(B,D))})).apply(this,arguments)}function Kr(B,D){return Wr.apply(this,arguments)}function Wr(){return(Wr=(0,h.Z)(function*(B,D){const Z={identifier:D,continueUri:mn()?pn():"http://localhost"},{signinMethods:Ae}=yield Qi((0,s.m9)(B),Z);return Ae||[]})).apply(this,arguments)}function us(B,D){return rs.apply(this,arguments)}function rs(){return(rs=(0,h.Z)(function*(B,D){const I=(0,s.m9)(B),Ae={requestType:"VERIFY_EMAIL",idToken:yield B.getIdToken()};D&&No(I.auth,Ae,D);const{email:ot}=yield oo(I.auth,Ae);ot!==B.email&&(yield B.reload())})).apply(this,arguments)}function es(B,D,I){return Zr.apply(this,arguments)}function Zr(){return(Zr=(0,h.Z)(function*(B,D,I){const Z=(0,s.m9)(B),ot={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:yield B.getIdToken(),newEmail:D};I&&No(Z.auth,ot,I);const{email:Gt}=yield ma(Z.auth,ot);Gt!==B.email&&(yield B.reload())})).apply(this,arguments)}function ur(B,D){return Or.apply(this,arguments)}function Or(){return(Or=(0,h.Z)(function*(B,D){return it(B,"POST","/v1/accounts:update",D)})).apply(this,arguments)}function ea(B,D){return Xs.apply(this,arguments)}function Xs(){return(Xs=(0,h.Z)(function*(B,{displayName:D,photoURL:I}){if(void 0===D&&void 0===I)return;const Z=(0,s.m9)(B),ot={idToken:yield Z.getIdToken(),displayName:D,photoUrl:I,returnSecureToken:!0},Gt=yield nt(Z,ur(Z.auth,ot));Z.displayName=Gt.displayName||null,Z.photoURL=Gt.photoUrl||null;const an=Z.providerData.find(({providerId:Xn})=>"password"===Xn);an&&(an.displayName=Z.displayName,an.photoURL=Z.photoURL),yield Z._updateTokensIfNecessary(Gt)})).apply(this,arguments)}function Bs(B,D){return Hs((0,s.m9)(B),D,null)}function Sr(B,D){return Hs((0,s.m9)(B),null,D)}function Hs(B,D,I){return Wo.apply(this,arguments)}function Wo(){return(Wo=(0,h.Z)(function*(B,D,I){const{auth:Z}=B,ot={idToken:yield B.getIdToken(),returnSecureToken:!0};D&&(ot.email=D),I&&(ot.password=I);const Gt=yield nt(B,oi(Z,ot));yield B._updateTokensIfNecessary(Gt,!0)})).apply(this,arguments)}class bi{constructor(D,I,Z={}){this.isNewUser=D,this.providerId=I,this.profile=Z}}class Ei extends bi{constructor(D,I,Z,Ae){super(D,I,Z),this.username=Ae}}class Vi extends bi{constructor(D,I){super(D,"facebook.com",I)}}class Ti extends Ei{constructor(D,I){super(D,"github.com",I,"string"==typeof(null==I?void 0:I.login)?null==I?void 0:I.login:null)}}class ts extends bi{constructor(D,I){super(D,"google.com",I)}}class bs extends Ei{constructor(D,I,Z){super(D,"twitter.com",I,Z)}}function qr(B){const{user:D,_tokenResponse:I}=B;return D.isAnonymous&&!I?{providerId:null,isNewUser:!1,profile:null}:function ao(B){var D,I;if(!B)return null;const{providerId:Z}=B,Ae=B.rawUserInfo?JSON.parse(B.rawUserInfo):{},ot=B.isNewUser||"identitytoolkit#SignupNewUserResponse"===B.kind;if(!Z&&(null==B?void 0:B.idToken)){const Gt=null===(I=null===(D=ae(B.idToken))||void 0===D?void 0:D.firebase)||void 0===I?void 0:I.sign_in_provider;if(Gt)return new bi(ot,"anonymous"!==Gt&&"custom"!==Gt?Gt:null)}if(!Z)return null;switch(Z){case"facebook.com":return new Vi(ot,Ae);case"github.com":return new Ti(ot,Ae);case"google.com":return new ts(ot,Ae);case"twitter.com":return new bs(ot,Ae,B.screenName||null);
1case"custom":case"anonymous":return new bi(ot,null);default:return new bi(ot,Z,Ae)}}(I)}function ro(B,D,I,Z){return(0,s.m9)(B).onAuthStateChanged(D,I,Z)}function Vr(B){return(0,s.m9)(B).signOut()}class cs{constructor(D,I,Z){this.type=D,this.credential=I,this.auth=Z}static _fromIdtoken(D,I){return new cs("enroll",D,I)}static _fromMfaPendingCredential(D){return new cs("signin",D)}toJSON(){return{multiFactorSession:{["enroll"===this.type?"idToken":"pendingCredential"]:this.credential}}}static fromJSON(D){var I,Z;if(null==D?void 0:D.multiFactorSession){if(null===(I=D.multiFactorSession)||void 0===I?void 0:I.pendingCredential)return cs._fromMfaPendingCredential(D.multiFactorSession.pendingCredential);if(null===(Z=D.multiFactorSession)||void 0===Z?void 0:Z.idToken)return cs._fromIdtoken(D.multiFactorSession.idToken)}return null}}class Bo{constructor(D,I,Z){this.session=D,this.hints=I,this.signInResolver=Z}static _fromError(D,I){const Z=Wi(D),Ae=I.customData._serverResponse,ot=(Ae.mfaInfo||[]).map(an=>ls._fromServerResponse(Z,an));me(Ae.mfaPendingCredential,Z,"internal-error");const Gt=cs._fromMfaPendingCredential(Ae.mfaPendingCredential);return new Bo(Gt,ot,function(){var an=(0,h.Z)(function*(Xn){const Ci=yield Xn._process(Z,Gt);delete Ae.mfaInfo,delete Ae.mfaPendingCredential;const sr=Object.assign(Object.assign({},Ae),{idToken:Ci.idToken,refreshToken:Ci.refreshToken});switch(I.operationType){case"signIn":const mr=yield li._fromIdTokenResponse(Z,I.operationType,sr);return yield Z._updateCurrentUser(mr.user),mr;case"reauthenticate":return me(I.user,Z,"internal-error"),li._forOperation(I.user,I.operationType,sr);default:ut(Z,"internal-error")}});return function(Xn){return an.apply(this,arguments)}}())}resolveSignIn(D){var I=this;return(0,h.Z)(function*(){return I.signInResolver(D)})()}}function Ta(B,D){var I;const Z=(0,s.m9)(B),Ae=D;return me(D.customData.operationType,Z,"argument-error"),me(null===(I=Ae.customData._serverResponse)||void 0===I?void 0:I.mfaPendingCredential,Z,"argument-error"),Bo._fromError(Z,Ae)}function So(B,D){return it(B,"POST","/v2/accounts/mfaEnrollment:start",Mt(B,D))}class z{constructor(D){this.user=D,this.enrolledFactors=[],D._onReload(I=>{I.mfaInfo&&(this.enrolledFactors=I.mfaInfo.map(Z=>ls._fromServerResponse(D.auth,Z)))})}static _fromUser(D){return new z(D)}getSession(){var D=this;return(0,h.Z)(function*(){return cs._fromIdtoken(yield D.user.getIdToken(),D.user.auth)})()}enroll(D,I){var Z=this;return(0,h.Z)(function*(){const Ae=D,ot=yield Z.getSession(),Gt=yield nt(Z.user,Ae._process(Z.user.auth,ot,I));return yield Z.user._updateTokensIfNecessary(Gt),Z.user.reload()})()}unenroll(D){var I=this;return(0,h.Z)(function*(){const Z="string"==typeof D?D:D.uid,Ae=yield I.user.getIdToken();try{const ot=yield nt(I.user,function ee(B,D){return it(B,"POST","/v2/accounts/mfaEnrollment:withdraw",Mt(B,D))}(I.user.auth,{idToken:Ae,mfaEnrollmentId:Z}));I.enrolledFactors=I.enrolledFactors.filter(({uid:Gt})=>Gt!==Z),yield I.user._updateTokensIfNecessary(ot),yield I.user.reload()}catch(ot){throw ot}})()}}const H=new WeakMap;function he(B){const D=(0,s.m9)(B);return H.has(D)||H.set(D,z._fromUser(D)),H.get(D)}const a="__sak";class d{constructor(D,I){this.storageRetriever=D,this.type=I}_isAvailable(){try{return this.storage?(this.storage.setItem(a,"1"),this.storage.removeItem(a),Promise.resolve(!0)):Promise.resolve(!1)}catch(D){return Promise.resolve(!1)}}_set(D,I){return this.storage.setItem(D,JSON.stringify(I)),Promise.resolve()}_get(D){const I=this.storage.getItem(D);return Promise.resolve(I?JSON.parse(I):null)}_remove(D){return this.storage.removeItem(D),Promise.resolve()}get storage(){return this.storageRetriever()}}const bt=(()=>{class B extends d{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(I,Z)=>this.onStorageEvent(I,Z),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function w(){const B=(0,s.z$)();return U(B)||St(B)}()&&function Ii(){try{return!(!window||window===window.top)}catch(B){return!1}}(),this.fallbackToPolling=ii(),this._shouldAllowMigration=!0}forAllChangedKeys(I){for(const Z of Object.keys(this.listeners)){const Ae=this.storage.getItem(Z),ot=this.localCache[Z];Ae!==ot&&I(Z,ot,Ae)}}onStorageEvent(I,Z=!1){if(!I.key)return void this.forAllChangedKeys((an,Xn,Ci)=>{this.notifyListeners(an,Ci)});const Ae=I.key;if(Z?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const an=this.storage.getItem(Ae);if(I.newValue!==an)null!==I.newValue?this.storage.setItem(Ae,I.newValue):this.storage.removeItem(Ae);else if(this.localCache[Ae]===I.newValue&&!Z)return}const ot=()=>{const an=this.storage.getItem(Ae);!Z&&this.localCache[Ae]===an||this.notifyListeners(Ae,an)},Gt=this.storage.getItem(Ae);!function Jn(){return(0,s.w1)()&&10===document.documentMode}()||Gt===I.newValue||I.newValue===I.oldValue?ot():setTimeout(ot,10)}notifyListeners(I,Z){this.localCache[I]=Z;const Ae=this.listeners[I];if(Ae)for(const ot of Array.from(Ae))ot(Z&&JSON.parse(Z))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((I,Z,Ae)=>{this.onStorageEvent(new StorageEvent("storage",{key:I,oldValue:Z,newValue:Ae}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(I,Z){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[I]||(this.listeners[I]=new Set,this.localCache[I]=this.storage.getItem(I)),this.listeners[I].add(Z)}_removeListener(I,Z){this.listeners[I]&&(this.listeners[I].delete(Z),0===this.listeners[I].size&&delete this.listeners[I]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}_set(I,Z){var Ae=()=>super._set,ot=this;return(0,h.Z)(function*(){yield Ae().call(ot,I,Z),ot.localCache[I]=JSON.stringify(Z)})()}_get(I){var Z=()=>super._get,Ae=this;return(0,h.Z)(function*(){const ot=yield Z().call(Ae,I);return Ae.localCache[I]=JSON.stringify(ot),ot})()}_remove(I){var Z=()=>super._remove,Ae=this;return(0,h.Z)(function*(){yield Z().call(Ae,I),delete Ae.localCache[I]})()}}return B.type="LOCAL",B})(),Jt=(()=>{class B extends d{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(I,Z){}_removeListener(I,Z){}}return B.type="SESSION",B})();let Wt=(()=>{class B{constructor(I){this.eventTarget=I,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(I){const Z=this.receivers.find(ot=>ot.isListeningto(I));if(Z)return Z;const Ae=new B(I);return this.receivers.push(Ae),Ae}isListeningto(I){return this.eventTarget===I}handleEvent(I){var Z=this;return(0,h.Z)(function*(){const Ae=I,{eventId:ot,eventType:Gt,data:an}=Ae.data,Xn=Z.handlersMap[Gt];if(!(null==Xn?void 0:Xn.size))return;Ae.ports[0].postMessage({status:"ack",eventId:ot,eventType:Gt});const Ci=Array.from(Xn).map(function(){var mr=(0,h.Z)(function*(js){return js(Ae.origin,an)});return function(js){return mr.apply(this,arguments)}}()),sr=yield function Sn(B){return Promise.all(B.map(function(){var D=(0,h.Z)(function*(I){try{return{fulfilled:!0,value:yield I}}catch(Z){return{fulfilled:!1,reason:Z}}});return function(I){return D.apply(this,arguments)}}()))}(Ci);Ae.ports[0].postMessage({status:"done",eventId:ot,eventType:Gt,response:sr})})()}_subscribe(I,Z){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[I]||(this.handlersMap[I]=new Set),this.handlersMap[I].add(Z)}_unsubscribe(I,Z){this.handlersMap[I]&&Z&&this.handlersMap[I].delete(Z),(!Z||0===this.handlersMap[I].size)&&delete this.handlersMap[I],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}return B.receivers=[],B})();function ti(B="",D=10){let I="";for(let Z=0;Z<D;Z++)I+=Math.floor(10*Math.random());return B+I}class Zi{constructor(D){this.target=D,this.handlers=new Set}removeMessageHandler(D){D.messageChannel&&(D.messageChannel.port1.removeEventListener("message",D.onMessage),D.messageChannel.port1.close()),this.handlers.delete(D)}_send(D,I){var Z=this;return(0,h.Z)(function*(Ae,ot,Gt=50){const an="undefined"!=typeof MessageChannel?new MessageChannel:null;if(!an)throw new Error("connection_unavailable");let Xn,Ci;return new Promise((sr,mr)=>{const js=ti("",20);an.port1.start();const Lo=setTimeout(()=>{mr(new Error("unsupported_event"))},Gt);Ci={messageChannel:an,onMessage(Au){const _l=Au;if(_l.data.eventId===js)switch(_l.data.status){case"ack":clearTimeout(Lo),Xn=setTimeout(()=>{mr(new Error("timeout"))},3e3);break;case"done":clearTimeout(Xn),sr(_l.data.response);break;default:clearTimeout(Lo),clearTimeout(Xn),mr(new Error("invalid_response"))}}},Z.handlers.add(Ci),an.port1.addEventListener("message",Ci.onMessage),Z.target.postMessage({eventType:Ae,eventId:js,data:ot},[an.port2])}).finally(()=>{Ci&&Z.removeMessageHandler(Ci)})}).apply(this,arguments)}}function kr(){return window}
1function yi(){return void 0!==kr().WorkerGlobalScope&&"function"==typeof kr().importScripts}function ci(){return(ci=(0,h.Z)(function*(){if(!(null==navigator?void 0:navigator.serviceWorker))return null;try{return(yield navigator.serviceWorker.ready).active}catch(B){return null}})).apply(this,arguments)}const br="firebaseLocalStorageDb",Gs="firebaseLocalStorage",Fa="fbase_key";class ds{constructor(D){this.request=D}toPromise(){return new Promise((D,I)=>{this.request.addEventListener("success",()=>{D(this.request.result)}),this.request.addEventListener("error",()=>{I(this.request.error)})})}}function ua(B,D){return B.transaction([Gs],D?"readwrite":"readonly").objectStore(Gs)}function al(){const B=indexedDB.open(br,1);return new Promise((D,I)=>{B.addEventListener("error",()=>{I(B.error)}),B.addEventListener("upgradeneeded",()=>{const Z=B.result;try{Z.createObjectStore(Gs,{keyPath:Fa})}catch(Ae){I(Ae)}}),B.addEventListener("success",(0,h.Z)(function*(){const Z=B.result;Z.objectStoreNames.contains(Gs)?D(Z):(Z.close(),yield function ou(){const B=indexedDB.deleteDatabase(br);return new ds(B).toPromise()}(),D(yield al()))}))})}function Ka(B,D,I){return yl.apply(this,arguments)}function yl(){return(yl=(0,h.Z)(function*(B,D,I){const Z=ua(B,!0).put({[Fa]:D,value:I});return new ds(Z).toPromise()})).apply(this,arguments)}function hs(){return(hs=(0,h.Z)(function*(B,D){const I=ua(B,!1).get(D),Z=yield new ds(I).toPromise();return void 0===Z?null:Z.value})).apply(this,arguments)}function cr(B,D){const I=ua(B,!0).delete(D);return new ds(I).toPromise()}const Bi=(()=>{class B{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}_openDb(){var I=this;return(0,h.Z)(function*(){return I.db||(I.db=yield al()),I.db})()}_withRetries(I){var Z=this;return(0,h.Z)(function*(){let Ae=0;for(;;)try{const ot=yield Z._openDb();return yield I(ot)}catch(ot){if(Ae++>3)throw ot;Z.db&&(Z.db.close(),Z.db=void 0)}})()}initializeServiceWorkerMessaging(){var I=this;return(0,h.Z)(function*(){return yi()?I.initializeReceiver():I.initializeSender()})()}initializeReceiver(){var I=this;return(0,h.Z)(function*(){I.receiver=Wt._getInstance(function On(){return yi()?self:null}()),I.receiver._subscribe("keyChanged",function(){var Z=(0,h.Z)(function*(Ae,ot){return{keyProcessed:(yield I._poll()).includes(ot.key)}});return function(Ae,ot){return Z.apply(this,arguments)}}()),I.receiver._subscribe("ping",function(){var Z=(0,h.Z)(function*(Ae,ot){return["keyChanged"]});return function(Ae,ot){return Z.apply(this,arguments)}}())})()}initializeSender(){var I=this;return(0,h.Z)(function*(){var Z,Ae;if(I.activeServiceWorker=yield function lo(){return ci.apply(this,arguments)}(),!I.activeServiceWorker)return;I.sender=new Zi(I.activeServiceWorker);const ot=yield I.sender._send("ping",{},800);!ot||(null===(Z=ot[0])||void 0===Z?void 0:Z.fulfilled)&&(null===(Ae=ot[0])||void 0===Ae?void 0:Ae.value.includes("keyChanged"))&&(I.serviceWorkerReceiverAvailable=!0)})()}notifyServiceWorker(I){var Z=this;return(0,h.Z)(function*(){if(Z.sender&&Z.activeServiceWorker&&function un(){var B;return(null===(B=null==navigator?void 0:navigator.serviceWorker)||void 0===B?void 0:B.controller)||null}()===Z.activeServiceWorker)try{yield Z.sender._send("keyChanged",{key:I},Z.serviceWorkerReceiverAvailable?800:50)}catch(Ae){}})()}_isAvailable(){return(0,h.Z)(function*(){try{if(!indexedDB)return!1;const I=yield al();return yield Ka(I,a,"1"),yield cr(I,a),!0}catch(I){}return!1})()}_withPendingWrite(I){var Z=this;return(0,h.Z)(function*(){Z.pendingWrites++;try{yield I()}finally{Z.pendingWrites--}})()}_set(I,Z){var Ae=this;return(0,h.Z)(function*(){return Ae._withPendingWrite((0,h.Z)(function*(){return yield Ae._withRetries(ot=>Ka(ot,I,Z)),Ae.localCache[I]=Z,Ae.notifyServiceWorker(I)}))})()}_get(I){var Z=this;return(0,h.Z)(function*(){const Ae=yield Z._withRetries(ot=>function zl(B,D){return hs.apply(this,arguments)}(ot,I));return Z.localCache[I]=Ae,Ae})()}_remove(I){var Z=this;return(0,h.Z)(function*(){return Z._withPendingWrite((0,h.Z)(function*(){return yield Z._withRetries(Ae=>cr(Ae,I)),delete Z.localCache[I],Z.notifyServiceWorker(I)}))})()}_poll(){var I=this;return(0,h.Z)(function*(){const Z=yield I._withRetries(Gt=>{const an=ua(Gt,!1).getAll();return new ds(an).toPromise()});if(!Z)return[];if(0!==I.pendingWrites)return[];const Ae=[],ot=new Set;for(const{fbase_key:Gt,value:an}of Z)ot.add(Gt),JSON.stringify(I.localCache[Gt])!==JSON.stringify(an)&&(I.notifyListeners(Gt,an),Ae.push(Gt));for(const Gt of Object.keys(I.localCache))I.localCache[Gt]&&!ot.has(Gt)&&(I.notifyListeners(Gt,null),Ae.push(Gt));return Ae})()}notifyListeners(I,Z){this.localCache[I]=Z;const Ae=this.listeners[I];if(Ae)for(const ot of Array.from(Ae))ot(Z)}startPolling(){var I=this;this.stopPolling(),this.pollTimer=setInterval((0,h.Z)(function*(){return I._poll()}),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(I,Z){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[I]||(this.listeners[I]=new Set,this._get(I)),this.listeners[I].add(Z)}_removeListener(I,Z){this.listeners[I]&&(this.listeners[I].delete(Z),0===this.listeners[I].size&&delete this.listeners[I]),0===Object.keys(this.listeners).length&&this.stopPolling()}}return B.type="LOCAL",B})();function au(B,D){return it(B,"POST","/v2/accounts/mfaSignIn:start",Mt(B,D))}const qa=1e12;class Ea{constructor(D){this.auth=D,this.counter=qa,this._widgets=new Map}render(D,I){const Z=this.counter;return this._widgets.set(Z,new ll(D,this.auth.name,I||{})),this.counter++,Z}reset(D){var I;const Z=D||qa;null===(I=this._widgets.get(Z))||void 0===I||I.delete(),this._widgets.delete(Z)}getResponse(D){var I;return(null===(I=this._widgets.get(D||qa))||void 0===I?void 0:I.getResponse())||""}execute(D){var I=this;return(0,h.Z)(function*(){var Z;return null===(Z=I._widgets.get(D||qa))||void 0===Z||Z.execute(),""})()}}class ll{constructor(D,I,Z){this.params=Z,this.timerId=null,this.deleted=!1,this.responseToken=null,this.clickHandler=()=>{this.execute()};const Ae="string"==typeof D?document.getElementById(D):D;me(Ae,"argument-error",{appName:I}),this.container=Ae,this.isVisible="invisible"!==this.params.size,this.isVisible?this.execute():this.container.addEventListener("click",this.clickHandler)}getResponse(){return this.checkIfDeleted(),this.responseToken}delete(){this.checkIfDeleted(),this.deleted=!0,this.timerId&&(clearTimeout(this.timerId),this.timerId=null),this.container.removeEventListener("click",this.clickHandler)}execute(){this.checkIfDeleted(),!this.timerId&&(this.timerId=window.setTimeout(()=>{this.responseToken=function lu(B){const D=[],I="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let Z=0;Z<B;Z++)D.push(I.charAt(Math.floor(Math.random()*I.length)));return D.join("")}(50);const{callback:D,"expired-callback":I}=this.params;if(D)try{D(this.responseToken)}catch(Z){}this.timerId=window.setTimeout(()=>{if(this.timerId=null,this.responseToken=null,I)try{I()}catch(Z){}this.isVisible&&this.execute()},6e4)},500))}checkIfDeleted(){if(this.deleted)throw new Error("reCAPTCHA mock was already deleted!")}}const Ho=Pr("rcb"),Ya=new Mn(3e4,6e4);class Qa{constructor(){var D;this.hostLanguage="",this.counter=0,this.librarySeparatelyLoaded=!!(null===(D=kr().grecaptcha)||void 0===D?void 0:D.render)}load(D,I=""){return me(function va(B){return B.length<=6&&/^\s*[a-zA-Z0-9\-]*\s*$/.test(B
1)}(I),D,"argument-error"),this.shouldResolveImmediately(I)&&zn(kr().grecaptcha)?Promise.resolve(kr().grecaptcha):new Promise((Z,Ae)=>{const ot=kr().setTimeout(()=>{Ae(ze(D,"network-request-failed"))},Ya.get());kr()[Ho]=()=>{kr().clearTimeout(ot),delete kr()[Ho];const an=kr().grecaptcha;if(!an||!zn(an))return void Ae(ze(D,"internal-error"));const Xn=an.render;an.render=(Ci,sr)=>{const mr=Xn(Ci,sr);return this.counter++,mr},this.hostLanguage=I,Z(an)},Ji(`https://www.google.com/recaptcha/api.js??${(0,s.xO)({onload:Ho,render:"explicit",hl:I})}`).catch(()=>{clearTimeout(ot),Ae(ze(D,"internal-error"))})})}clearedOneInstance(){this.counter--}shouldResolveImmediately(D){var I;return!!(null===(I=kr().grecaptcha)||void 0===I?void 0:I.render)&&(D===this.hostLanguage||this.counter>0||this.librarySeparatelyLoaded)}}class Go{load(D){return(0,h.Z)(function*(){return new Ea(D)})()}clearedOneInstance(){}}const uu="recaptcha",cu={theme:"light",type:"image"};class Hu{constructor(D,I=Object.assign({},cu),Z){this.parameters=I,this.type=uu,this.destroyed=!1,this.widgetId=null,this.tokenChangeListeners=new Set,this.renderPromise=null,this.recaptcha=null,this.auth=Wi(Z),this.isInvisible="invisible"===this.parameters.size,me("undefined"!=typeof document,this.auth,"operation-not-supported-in-this-environment");const Ae="string"==typeof D?document.getElementById(D):D;me(Ae,this.auth,"argument-error"),this.container=Ae,this.parameters.callback=this.makeTokenCallback(this.parameters.callback),this._recaptchaLoader=this.auth.settings.appVerificationDisabledForTesting?new Go:new Qa,this.validateStartingState()}verify(){var D=this;return(0,h.Z)(function*(){D.assertNotDestroyed();const I=yield D.render(),Z=D.getAssertedRecaptcha();return Z.getResponse(I)||new Promise(ot=>{const Gt=an=>{!an||(D.tokenChangeListeners.delete(Gt),ot(an))};D.tokenChangeListeners.add(Gt),D.isInvisible&&Z.execute(I)})})()}render(){try{this.assertNotDestroyed()}catch(D){return Promise.reject(D)}return this.renderPromise||(this.renderPromise=this.makeRenderPromise().catch(D=>{throw this.renderPromise=null,D})),this.renderPromise}_reset(){this.assertNotDestroyed(),null!==this.widgetId&&this.getAssertedRecaptcha().reset(this.widgetId)}clear(){this.assertNotDestroyed(),this.destroyed=!0,this._recaptchaLoader.clearedOneInstance(),this.isInvisible||this.container.childNodes.forEach(D=>{this.container.removeChild(D)})}validateStartingState(){me(!this.parameters.sitekey,this.auth,"argument-error"),me(this.isInvisible||!this.container.hasChildNodes(),this.auth,"argument-error"),me("undefined"!=typeof document,this.auth,"operation-not-supported-in-this-environment")}makeTokenCallback(D){return I=>{if(this.tokenChangeListeners.forEach(Z=>Z(I)),"function"==typeof D)D(I);else if("string"==typeof D){const Z=kr()[D];"function"==typeof Z&&Z(I)}}}
1assertNotDestroyed(){me(!this.destroyed,this.auth,"internal-error")}makeRenderPromise(){var D=this;return(0,h.Z)(function*(){if(yield D.init(),!D.widgetId){let I=D.container;if(!D.isInvisible){const Z=document.createElement("div");I.appendChild(Z),I=Z}D.widgetId=D.getAssertedRecaptcha().render(I,D.parameters)}return D.widgetId})()}init(){var D=this;return(0,h.Z)(function*(){me(mn()&&!yi(),D.auth,"internal-error"),yield function Zn(){let B=null;return new Promise(D=>{"complete"!==document.readyState?(B=()=>D(),window.addEventListener("load",B)):D()}).catch(D=>{throw B&&window.removeEventListener("load",B),D})}(),D.recaptcha=yield D._recaptchaLoader.load(D.auth,D.auth.languageCode||void 0);const I=yield function rn(B){return qt.apply(this,arguments)}(D.auth);me(I,D.auth,"internal-error"),D.parameters.sitekey=I})()}getAssertedRecaptcha(){return me(this.recaptcha,this.auth,"internal-error"),this.recaptcha}}class ul{constructor(D,I){this.verificationId=D,this.onConfirmation=I}confirm(D){const I=Yi._fromVerification(this.verificationId,D);return this.onConfirmation(I)}}function nn(B,D,I){return Ja.apply(this,arguments)}function Ja(){return(Ja=(0,h.Z)(function*(B,D,I){const Z=Wi(B),Ae=yield Zl(Z,D,(0,s.m9)(I));return new ul(Ae,ot=>Qs(Z,ot))})).apply(this,arguments)}function lr(B,D,I){return wl.apply(this,arguments)}function wl(){return(wl=(0,h.Z)(function*(B,D,I){const Z=(0,s.m9)(B);yield We(!1,Z,"phone");const Ae=yield Zl(Z.auth,D,(0,s.m9)(I));return new ul(Ae,ot=>Fn(Z,ot))})).apply(this,arguments)}function Xa(B,D,I){return ca.apply(this,arguments)}function ca(){return(ca=(0,h.Z)(function*(B,D,I){const Z=(0,s.m9)(B),Ae=yield Zl(Z.auth,D,(0,s.m9)(I));return new ul(Ae,ot=>ra(Z,ot))})).apply(this,arguments)}function Zl(B,D,I){return Ba.apply(this,arguments)}function Ba(){return(Ba=(0,h.Z)(function*(B,D,I){var Z;const Ae=yield I.verify();try{let ot;if(me("string"==typeof Ae,B,"argument-error"),me(I.type===uu,B,"argument-error"),ot="string"==typeof D?{phoneNumber:D}:D,"session"in ot){const Gt=ot.session;if("phoneNumber"in ot)return me("enroll"===Gt.type,B,"internal-error"),(yield So(B,{idToken:Gt.credential,phoneEnrollmentInfo:{phoneNumber:ot.phoneNumber,recaptchaToken:Ae}})).phoneSessionInfo.sessionInfo;{me("signin"===Gt.type,B,"internal-error");const an=(null===(Z=ot.multiFactorHint)||void 0===Z?void 0:Z.uid)||ot.multiFactorUid;return me(an,B,"missing-multi-factor-info"),(yield au(B,{mfaPendingCredential:Gt.credential,mfaEnrollmentId:an,phoneSignInInfo:{recaptchaToken:Ae}})).phoneResponseInfo.sessionInfo}}{const{sessionInfo:Gt}=yield gs(B,{phoneNumber:ot.phoneNumber,recaptchaToken:Ae});return Gt}}finally{I._reset()}})).apply(this,arguments)}function Uu(B,D){return Ml.apply(this,arguments)}function Ml(){return(Ml=(0,h.Z)(function*(B,D){yield oe((0,s.m9)(B),D)})).apply(this,arguments)}let ju=(()=>{class B{constructor(I){this.providerId=B.PROVIDER_ID,this.auth=Wi(I)}verifyPhoneNumber(I,Z){return Zl(this.auth,I,(0,s.m9)(Z))}static credential(I,Z){return Yi._fromVerification(I,Z)}static credentialFromResult(I){return B.credentialFromTaggedObject(I)}static credentialFromError(I){return B.credentialFromTaggedObject(I.customData||{})}static credentialFromTaggedObject({_tokenResponse:I}){if(!I)return null;const{phoneNumber:Z,temporaryProof:Ae}=I;return Z&&Ae?Yi._fromTokenResponse(Z,Ae):null}}return B.PROVIDER_ID="phone",B.PHONE_SIGN_IN_METHOD="phone",B})();function Mo(B,D){return D?Ot(D):(me(B._popupRedirectResolver,B,"argument-error"),B._popupRedirectResolver)}class Uo extends Un{constructor(D){super("custom","custom"),this.params=D}_getIdTokenResponse(D){return vo(D,this._buildIdpRequest())}_linkToIdToken(D,I){return vo(D,this._buildIdpRequest(I))}_getReauthenticationResolver(D){return vo(D,this._buildIdpRequest())}_buildIdpRequest(D){const I={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 D&&(I.idToken=D),I}}function sa(B){return zs(B.auth,new Uo(B),B.bypassAuthState)}function La(B){const{auth:D,user:I}=B;return me(I,D,"internal-error"),mi(I,new Uo(B),B.bypassAuthState)}function Gl(B){return Us.apply(this,arguments)}function Us(){return(Us=(0,h.Z)(function*(B){const{auth:D,user:I}=B;return me(I,D,"internal-error"),oe(I,new Uo(B),B.bypassAuthState)})).apply(this,arguments)}class Pl{constructor(D,I,Z,Ae,ot=!1){this.auth=D,this.resolver=Z,this.user=Ae,this.bypassAuthState=ot,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(I)?I:[I]}execute(){var D=this;return new Promise(function(){var I=(0,h.Z)(function*(Z,Ae){D.pendingPromise={resolve:Z,reject:Ae};try{D.eventManager=yield D.resolver._initialize(D.auth),yield D.onExecution(),D.eventManager.registerConsumer(D)}catch(ot){D.reject(ot)}});return function(Z,Ae){return I.apply(this,arguments)}}())}onAuthEvent(D){var I=this;return(0,h.Z)(function*(){const{urlResponse:Z,sessionId:Ae,postBody:ot,tenantId:Gt,error:an,type:Xn}=D;if(an)return void I.reject(an);const Ci={auth:I.auth,requestUri:Z,sessionId:Ae,tenantId:Gt||void 0,postBody:ot||void 0,user:I.user,bypassAuthState:I.bypassAuthState};try{I.resolve(yield I.getIdpTask(Xn)(Ci))}catch(sr){I.reject(sr)}
1})()}onError(D){this.reject(D)}getIdpTask(D){switch(D){case"signInViaPopup":case"signInViaRedirect":return sa;case"linkViaPopup":case"linkViaRedirect":return Gl;case"reauthViaPopup":case"reauthViaRedirect":return La;default:ut(this.auth,"internal-error")}}resolve(D){Bt(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(D),this.unregisterAndCleanUp()}reject(D){Bt(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(D),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}const $l=new Mn(2e3,1e4);function mo(B,D,I){return Tl.apply(this,arguments)}function Tl(){return(Tl=(0,h.Z)(function*(B,D,I){const Z=Wi(B);tt(B,D,xi);const Ae=Mo(Z,I);return new ko(Z,"signInViaPopup",D,Ae).executeNotNull()})).apply(this,arguments)}function Aa(B,D,I){return Pa.apply(this,arguments)}function Pa(){return(Pa=(0,h.Z)(function*(B,D,I){const Z=(0,s.m9)(B);tt(Z.auth,D,xi);const Ae=Mo(Z.auth,I);return new ko(Z.auth,"reauthViaPopup",D,Ae,Z).executeNotNull()})).apply(this,arguments)}function Du(B,D,I){return Vu.apply(this,arguments)}function Vu(){return(Vu=(0,h.Z)(function*(B,D,I){const Z=(0,s.m9)(B);tt(Z.auth,D,xi);const Ae=Mo(Z.auth,I);return new ko(Z.auth,"linkViaPopup",D,Ae,Z).executeNotNull()})).apply(this,arguments)}let ko=(()=>{class B extends Pl{constructor(I,Z,Ae,ot,Gt){super(I,Z,ot,Gt),this.provider=Ae,this.authWindow=null,this.pollId=null,B.currentPopupAction&&B.currentPopupAction.cancel(),B.currentPopupAction=this}executeNotNull(){var I=this;return(0,h.Z)(function*(){const Z=yield I.execute();return me(Z,I.auth,"internal-error"),Z})()}onExecution(){var I=this;return(0,h.Z)(function*(){Bt(1===I.filter.length,"Popup operations only handle one event");const Z=ti();I.authWindow=yield I.resolver._openPopup(I.auth,I.provider,I.filter[0],Z),I.authWindow.associatedEvent=Z,I.resolver._originValidation(I.auth).catch(Ae=>{I.reject(Ae)}),I.resolver._isIframeWebStorageSupported(I.auth,Ae=>{Ae||I.reject(ze(I.auth,"web-storage-unsupported"))}),I.pollUserCancellation()})()}get eventId(){var I;return(null===(I=this.authWindow)||void 0===I?void 0:I.associatedEvent)||null}cancel(){this.reject(ze(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,B.currentPopupAction=null}pollUserCancellation(){const I=()=>{var Z,Ae;this.pollId=(null===(Ae=null===(Z=this.authWindow)||void 0===Z?void 0:Z.window)||void 0===Ae?void 0:Ae.closed)?window.setTimeout(()=>{this.pollId=null,this.reject(ze(this.auth,"popup-closed-by-user"))},8e3):window.setTimeout(I,$l.get())};I()}}return B.currentPopupAction=null,B})();const oa=new Map;class Cu extends Pl{constructor(D,I,Z=!1){super(D,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],I,void 0,Z),this.eventId=null}execute(){var D=()=>super.execute,I=this;return(0,h.Z)(function*(){let Z=oa.get(I.auth._key());if(!Z){try{const ot=(yield function Kl(B,D){return Ca.apply(this,arguments)}(I.resolver,I.auth))?yield D().call(I):null;Z=()=>Promise.resolve(ot)}catch(Ae){Z=()=>Promise.reject(Ae)}oa.set(I.auth._key(),Z)}return I.bypassAuthState||oa.set(I.auth._key(),()=>Promise.resolve(null)),Z()})()}onAuthEvent(D){var I=()=>super.onAuthEvent,Z=this;return(0,h.Z)(function*(){if("signInViaRedirect"===D.type)return I().call(Z,D);if("unknown"!==D.type){if(D.eventId){const Ae=yield Z.auth._redirectUserForId(D.eventId);if(Ae)return Z.user=Ae,I().call(Z,D);Z.resolve(null)}}else Z.resolve(null)})()}onExecution(){return(0,h.Z)(function*(){})()}cleanUp(){}}function Ca(){return(Ca=(0,h.Z)(function*(B,D){const I=Ol(D),Z=ku(B);if(!(yield Z._isAvailable()))return!1;const Ae="true"===(yield Z._get(I));return yield Z._remove(I),Ae})).apply(this,arguments)}function ql(B,D){return Ql.apply(this,arguments)}function Ql(){return(Ql=(0,h.Z)(function*(B,D){return ku(B)._set(Ol(D),"true")})).apply(this,arguments)}function Su(){oa.clear()}function Oa(B,D){oa.set(B._key(),D)}function ku(B){return Ot(B._redirectPersistence)}function Ol(B){return ei("pendingRedirect",B.config.apiKey,B.name)}function du(B,D,I){return function hu(B,D,I){return Sa.apply(this,arguments)}(B,D,I)}function Sa(){return(Sa=(0,h.Z)(function*(B,D,I){const Z=Wi(B);tt(B,D,xi),yield Z._initializationPromise;const Ae=Mo(Z,I);return yield ql(Ae,Z),Ae._openRedirect(Z,D,"signInViaRedirect")})).apply(this,arguments)}function el(B,D,I){return function Iu(B,D,I){return xu.apply(this,arguments)}(B,D,I)}function xu(){return(xu=(0,h.Z)(function*(B,D,I){const Z=(0,s.m9)(B);tt(Z.auth,D,xi),yield Z.auth._initializationPromise;const Ae=Mo(Z.auth,I);yield ql(Ae,Z.auth);const ot=yield $s(Z);return Ae._openRedirect(Z.auth,D,"reauthViaRedirect",ot)})).apply(this,arguments)}function Ra(B,D,I){return function ys(B,D,I){return cl.apply(this,arguments)}(B,D,I)}function cl(){return(cl=(0,h.Z)(function*(B,D,I){const Z=(0,s.m9)(B);tt(Z.auth,D,xi),yield Z.auth._initializationPromise;const Ae=Mo(Z.auth,I);yield We(!1,Z,D.providerId),yield ql(Ae,Z.auth);const ot=yield $s(Z);return Ae._openRedirect(Z.auth,D,"linkViaRedirect",ot)})).apply(this,arguments)}function dl(B,D){return Rl.apply(this,arguments)}function Rl(){return(Rl=(0,h.Z)(function*(B,D){return yield Wi(B)._initializationPromise,fs(B,D,!1)})).apply(this,arguments)}function fs(B,D){return Dl.apply(this,arguments)}function Dl(){return(Dl=(0,h.Z)(function*(B,D,I=!1){const Z=Wi(B),Ae=Mo(Z,D),Gt=yield new Cu(Z,Ae,I).execute();return Gt&&!I&&(delete Gt.user._redirectEventId,yield Z._persistUserIfCurrent(Gt.user),yield Z._setRedirectUser(null,D)),Gt})).apply(this,arguments)}function $s(B){return ss.apply(this,arguments)}function ss(){return(ss=(0,h.Z)(function*(B){const D=ti(`${B.uid}:::`);return B._redirectEventId=D,yield B.auth._setRedirectUser(B),yield B.auth._persistUserIfCurrent(B
1),D})).apply(this,arguments)}class Er{constructor(D){this.auth=D,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(D){this.consumers.add(D),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,D)&&(this.sendToConsumer(this.queuedRedirectEvent,D),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(D){this.consumers.delete(D)}onEvent(D){if(this.hasEventBeenHandled(D))return!1;let I=!1;return this.consumers.forEach(Z=>{this.isEventForConsumer(D,Z)&&(I=!0,this.sendToConsumer(D,Z),this.saveEventToCache(D))}),this.hasHandledPotentialRedirect||!function se(B){switch(B.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return Y(B);default:return!1}}(D)||(this.hasHandledPotentialRedirect=!0,I||(this.queuedRedirectEvent=D,I=!0)),I}sendToConsumer(D,I){var Z;if(D.error&&!Y(D)){const Ae=(null===(Z=D.error.code)||void 0===Z?void 0:Z.split("auth/")[1])||"internal-error";I.onError(ze(this.auth,Ae))}else I.onAuthEvent(D)}isEventForConsumer(D,I){const Z=null===I.eventId||!!D.eventId&&D.eventId===I.eventId;return I.filter.includes(D.type)&&Z}hasEventBeenHandled(D){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(T(D))}saveEventToCache(D){this.cachedEventUids.add(T(D)),this.lastProcessedEventTime=Date.now()}}function T(B){return[B.type,B.eventId,B.sessionId,B.tenantId].filter(D=>D).join("-")}function Y({type:B,error:D}){return"unknown"===B&&"auth/no-auth-event"===(null==D?void 0:D.code)}function ve(B){return Xe.apply(this,arguments)}function Xe(){return(Xe=(0,h.Z)(function*(B,D={}){return it(B,"GET","/v1/projects",D)})).apply(this,arguments)}const Rt=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,ln=/^https?/;function ir(){return(ir=(0,h.Z)(function*(B){if(B.config.emulator)return;const{authorizedDomains:D}=yield ve(B);for(const I of D)try{if(Nr(I))return}catch(Z){}ut(B,"unauthorized-domain")})).apply(this,arguments)}function Nr(B){const D=pn(),{protocol:I,hostname:Z}=new URL(D);if(B.startsWith("chrome-extension://")){const Gt=new URL(B);return""===Gt.hostname&&""===Z?"chrome-extension:"===I&&B.replace("chrome-extension://","")===D.replace("chrome-extension://",""):"chrome-extension:"===I&&Gt.hostname===Z}
1if(!ln.test(I))return!1;if(Rt.test(B))return Z===B;const Ae=B.replace(/\./g,"\\.");return new RegExp("^(.+\\."+Ae+"|"+Ae+")$","i").test(Z)}const Rs=new Mn(3e4,6e4);function xs(){const B=kr().___jsl;if(null==B?void 0:B.H)for(const D of Object.keys(B.H))if(B.H[D].r=B.H[D].r||[],B.H[D].L=B.H[D].L||[],B.H[D].r=[...B.H[D].L],B.CP)for(let I=0;I<B.CP.length;I++)B.CP[I]=null}let ka=null;function fl(B){return ka=ka||function Io(B){return new Promise((D,I)=>{var Z,Ae,ot;function Gt(){xs(),gapi.load("gapi.iframes",{callback:()=>{D(gapi.iframes.getContext())},ontimeout:()=>{xs(),I(ze(B,"network-request-failed"))},timeout:Rs.get()})}if(null===(Ae=null===(Z=kr().gapi)||void 0===Z?void 0:Z.iframes)||void 0===Ae?void 0:Ae.Iframe)D(gapi.iframes.getContext());else{if(!(null===(ot=kr().gapi)||void 0===ot?void 0:ot.load)){const an=Pr("iframefcb");return kr()[an]=()=>{gapi.load?Gt():I(ze(B,"network-request-failed"))},Ji(`https://apis.google.com/js/api.js?onload=${an}`).catch(Xn=>I(Xn))}Gt()}}).catch(D=>{throw ka=null,D})}(B),ka}const Nl=new Mn(5e3,15e3),pl={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},Lu=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function ml(B){const D=B.config;me(D.authDomain,B,"auth-domain-config-required");const I=D.emulator?Bn(D,"emulator/auth/iframe"):`https://${B.config.authDomain}/__/auth/iframe`,Z={apiKey:D.apiKey,appName:B.name,v:m.SDK_VERSION},Ae=Lu.get(B.config.apiHost);Ae&&(Z.eid=Ae);const ot=B._getFrameworks();return ot.length&&(Z.fw=ot.join(",")),`${I}?${(0,s.xO)(Z).slice(1)}`}function Fl(){return Fl=(0,h.Z)(function*(B){const D=yield fl(B),I=kr().gapi;return me(I,B,"internal-error"),D.open({where:document.body,url:ml(B),messageHandlersFilter:I.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:pl,dontclear:!0},Z=>new Promise(function(){var Ae=(0,h.Z)(function*(ot,Gt){yield Z.restyle({setHideOnLeave:!1});const an=ze(B,"network-request-failed"),Xn=kr().setTimeout(()=>{Gt(an)},Nl.get());function Ci(){kr().clearTimeout(Xn),ot(Z)}Z.ping(Ci).then(Ci,()=>{Gt(an)})});return function(ot,Gt){return Ae.apply(this,arguments)}}()))}),Fl.apply(this,arguments)}const V={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class Xt{constructor(D){this.window=D,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(D){}}}const pr=encodeURIComponent("fac");function tr(B,D,I,Z,Ae,ot){return vs.apply(this,arguments)}function vs(){return(vs=(0,h.Z)(function*(B,D,I,Z,Ae,ot){me(B.config.authDomain,B,"auth-domain-config-required"),me(B.config.apiKey,B,"invalid-api-key");const Gt={apiKey:B.config.apiKey,appName:B.name,authType:I,redirectUrl:Z,v:m.SDK_VERSION,eventId:Ae};if(D instanceof xi){D.setDefaultLanguage(B.languageCode),Gt.providerId=D.providerId||"",(0,s.xb)(D.getCustomParameters())||(Gt.customParameters=JSON.stringify(D.getCustomParameters()));for(const[sr,mr]of Object.entries(ot||{}))Gt[sr]=mr}if(D instanceof Yr){const sr=D.getScopes().filter(mr=>""!==mr);sr.length>0&&(Gt.scopes=sr.join(","))}B.tenantId&&(Gt.tid=B.tenantId);const an=Gt;for(const sr of Object.keys(an))void 0===an[sr]&&delete an[sr];const Xn=yield B._getAppCheckToken(),Ci=Xn?`#${pr}=${encodeURIComponent(Xn)}`:"";return`${$o(B)}?${(0,s.xO)(an).slice(1)}${Ci}`})).apply(this,arguments)}function $o({config:B}){return B.emulator?Bn(B,"emulator/auth/handler"):`https://${B.authDomain}/__/auth/handler`}const ps="webStorageSupport",tl=class xo{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=Jt,this._completeRedirectFn=fs,this._overrideRedirectResult=Oa}_openPopup(D,I,Z,Ae){var ot=this;return(0,h.Z)(function*(){var Gt;Bt(null===(Gt=ot.eventManagers[D._key()])||void 0===Gt?void 0:Gt.manager,"_initialize() not called before _openPopup()");const an=yield tr(D,I,Z,pn(),Ae);return function wn(B,D,I,Z=500,Ae=600){const ot=Math.max((window.screen.availHeight-Ae)/2,0).toString(),Gt=Math.max((window.screen.availWidth-Z)/2,0).toString();let an="";const Xn=Object.assign(Object.assign({},V),{width:Z.toString(),height:Ae.toString(),top:ot,left:Gt}),Ci=(0,s.z$)().toLowerCase();I&&(an=N(Ci)?"_blank":I),De(Ci)&&(D=D||"http://localhost",Xn.scrollbars="yes");
1const sr=Object.entries(Xn).reduce((js,[Lo,Au])=>`${js}${Lo}=${Au},`,"");if(function kn(B=(0,s.z$)()){var D;return St(B)&&!!(null===(D=window.navigator)||void 0===D?void 0:D.standalone)}(Ci)&&"_self"!==an)return function gi(B,D){const I=document.createElement("a");I.href=B,I.target=D;const Z=document.createEvent("MouseEvent");Z.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),I.dispatchEvent(Z)}(D||"",an),new Xt(null);const mr=window.open(D||"",an,sr);me(mr,B,"popup-blocked");try{mr.focus()}catch(js){}return new Xt(mr)}(D,an,ti())})()}_openRedirect(D,I,Z,Ae){var ot=this;return(0,h.Z)(function*(){return yield ot._originValidation(D),function qn(B){kr().location.href=B}(yield tr(D,I,Z,pn(),Ae)),new Promise(()=>{})})()}_initialize(D){const I=D._key();if(this.eventManagers[I]){const{manager:Ae,promise:ot}=this.eventManagers[I];return Ae?Promise.resolve(Ae):(Bt(ot,"If manager is not set, promise should be"),ot)}const Z=this.initAndGetManager(D);return this.eventManagers[I]={promise:Z},Z.catch(()=>{delete this.eventManagers[I]}),Z}initAndGetManager(D){var I=this;return(0,h.Z)(function*(){const Z=yield function El(B){return Fl.apply(this,arguments)}(D),Ae=new Er(D);return Z.register("authEvent",ot=>(me(null==ot?void 0:ot.authEvent,D,"invalid-auth-event"),{status:Ae.onEvent(ot.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),I.eventManagers[D._key()]={manager:Ae},I.iframes[D._key()]=Z,Ae})()}_isIframeWebStorageSupported(D,I){this.iframes[D._key()].send(ps,{type:ps},Ae=>{var ot;const Gt=null===(ot=null==Ae?void 0:Ae[0])||void 0===ot?void 0:ot[ps];void 0!==Gt&&I(!!Gt),ut(D,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(D){const I=D._key();return this.originValidationPromises[I]||(this.originValidationPromises[I]=function ui(B){return ir.apply(this,arguments)}(D)),this.originValidationPromises[I]}get _shouldInitProactively(){return ii()||U()||St()}};class da extends class Ha{constructor(D){this.factorId=D}_process(D,I,Z){switch(I.type){case"enroll":return this._finalizeEnroll(D,I.credential,Z);case"signin":return this._finalizeSignIn(D,I.credential);default:return gt("unexpected MultiFactorSessionType")}}}{constructor(D){super("phone"),this.credential=D}static _fromCredential(D){return new da(D)}_finalizeEnroll(D,I,Z){return function Da(B,D){return it(B,"POST","/v2/accounts/mfaEnrollment:finalize",Mt(B,D))}(D,{idToken:I,displayName:Z,phoneVerificationInfo:this.credential._makeVerificationRequest()})}_finalizeSignIn(D,I){return function zr(B,D){return it(B,"POST","/v2/accounts/mfaSignIn:finalize",Mt(B,D))}(D,{mfaPendingCredential:I,phoneVerificationInfo:this.credential._makeVerificationRequest()})}}let zu=(()=>{class B{constructor(){}static assertion(I){return da._fromCredential(I)}}return B.FACTOR_ID="phone",B})();var Wu="@firebase/auth";class mc{constructor(D){this.auth=D,this.internalListeners=new Map}getUid(){var D;return this.assertAuthConfigured(),(null===(D=this.auth.currentUser)||void 0===D?void 0:D.uid)||null}getToken(D){var I=this;return(0,h.Z)(function*(){return I.assertAuthConfigured(),yield I.auth._initializationPromise,I.auth.currentUser?{accessToken:yield I.auth.currentUser.getIdToken(D)}:null})()}addAuthTokenListener(D){if(this.assertAuthConfigured(),this.internalListeners.has(D))return;const I=this.auth.onIdTokenChanged(Z=>{D((null==Z?void 0:Z.stsTokenManager.accessToken)||null)});this.internalListeners.set(D,I),this.updateProactiveRefresh()}removeAuthTokenListener(D){this.assertAuthConfigured();const I=this.internalListeners.get(D);!I||(this.internalListeners.delete(D),I(),this.updateProactiveRefresh())}assertAuthConfigured(){me(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}const pu=(0,s.Pz)("authIdTokenMaxAge")||300;let Fc=null;const Hd=B=>function(){var D=(0,h.Z)(function*(I){const Z=I&&(yield I.getIdTokenResult()),Ae=Z&&((new Date).getTime()-Date.parse(Z.issuedAtTime))/1e3;if(Ae&&Ae>pu)return;const ot=null==Z?void 0:Z.token;Fc!==ot&&(Fc=ot,yield fetch(B,{method:ot?"POST":"DELETE",headers:ot?{Authorization:`Bearer ${ot}`}:{}}))});return function(I){return D.apply(this,arguments)}}();function Sh(B=(0,m.getApp)()){const D=(0,m._getProvider)(B,"auth");if(D.isInitialized())return D.getImmediate();const I=function Ds(B,D){const I=(0,m._getProvider)(B,"auth");if(I.isInitialized()){const Ae=I.getImmediate(),ot=I.getOptions();if((0,s.vZ)(ot,null!=D?D:{}))return Ae;ut(Ae,"already-initialized")}return I.initialize({options:D})}(B,{popupRedirectResolver:tl,persistence:[Bi,bt,Jt]}),Z=(0,s.Pz)("authTokenSyncURL");if(Z){const ot=Hd(Z);(function ga(B,D,I){(0,s.m9)(B).beforeAuthStateChanged(D,I)})(I,ot,()=>ot(I.currentUser)),function Ws(B,D,I,Z){(0,s.m9)(B).onIdTokenChanged(D,I,Z)}(I,Gt=>ot(Gt))}const Ae=(0,s.q4)("auth");return Ae&&_i(I,`http://${Ae}`),I}!function Na(B){(0,m._registerComponent)(new C.wA("auth",(D,{options:I})=>{const Z=D.getProvider("app").getImmediate(),Ae=D.getProvider("heartbeat"),ot=D.getProvider("app-check-internal"),{apiKey:Gt,authDomain:an}=Z.options;me(Gt&&!Gt.includes(":"),"invalid-api-key",{appName:Z.name});
1const Xn={apiKey:Gt,authDomain:an,clientPlatform:B,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:Cr(B)},Ci=new ar(Z,Ae,ot,Xn);return function Qr(B,D){const I=(null==D?void 0:D.persistence)||[],Z=(Array.isArray(I)?I:[I]).map(Ot);(null==D?void 0:D.errorMap)&&B._updateErrorMap(D.errorMap),B._initializeWithPersistence(Z,null==D?void 0:D.popupRedirectResolver)}(Ci,I),Ci},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((D,I,Z)=>{D.getProvider("auth-internal").initialize()})),(0,m._registerComponent)(new C.wA("auth-internal",D=>{const I=Wi(D.getProvider("auth").getImmediate());return new mc(I)},"PRIVATE").setInstantiationMode("EXPLICIT")),(0,m.registerVersion)(Wu,"0.23.2",function Rc(B){switch(B){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}(B)),(0,m.registerVersion)(Wu,"0.23.2","esm2017")}("Browser")},2090:(_t,Ue,b)=>{"use strict";b.d(Ue,{$s:()=>Ot,BH:()=>Re,DV:()=>vi,Dv:()=>Cn,G6:()=>Bn,GJ:()=>pi,L:()=>_e,LL:()=>At,Pz:()=>ze,Sg:()=>tt,UG:()=>gt,UI:()=>Rn,US:()=>C,Wj:()=>ni,Wl:()=>ft,Yr:()=>Mn,ZB:()=>be,ZR:()=>it,aH:()=>ut,b$:()=>mn,cI:()=>vt,dS:()=>lt,eu:()=>vn,g5:()=>m,gK:()=>Nn,gQ:()=>Me,h$:()=>te,hl:()=>Dn,hu:()=>s,jU:()=>Bt,lb:()=>Qn,m9:()=>ei,ne:()=>nt,p$:()=>we,pd:()=>ae,q4:()=>je,r3:()=>si,ru:()=>pn,tV:()=>re,uI:()=>me,ug:()=>Qt,vZ:()=>Ve,w1:()=>en,w9:()=>bn,xO:()=>ue,xb:()=>Vn,z$:()=>Fe,zI:()=>Dt,zd:()=>K});const s=function(ht,Oe){if(!ht)throw m(Oe)},m=function(ht){return new Error("Firebase Database (${JSCORE_VERSION}) INTERNAL ASSERT FAILED: "+ht)},k=function(ht){const Oe=[];let De=0;for(let U=0;U<ht.length;U++){let N=ht.charCodeAt(U);N<128?Oe[De++]=N:N<2048?(Oe[De++]=N>>6|192,Oe[De++]=63&N|128):55296==(64512&N)&&U+1<ht.length&&56320==(64512&ht.charCodeAt(U+1))?(N=65536+((1023&N)<<10)+(1023&ht.charCodeAt(++U)),Oe[De++]=N>>18|240,Oe[De++]=N>>12&63|128,Oe[De++]=N>>6&63|128,Oe[De++]=63&N|128):(Oe[De++]=N>>12|224,Oe[De++]=N>>6&63|128,Oe[De++]=63&N|128)}return Oe},C={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:"function"==typeof atob,encodeByteArray(ht,Oe){if(!Array.isArray(ht))throw Error("encodeByteArray takes an array as a parameter");this.init_();const De=Oe?this.byteToCharMapWebSafe_:this.byteToCharMap_,U=[];for(let N=0;N<ht.length;N+=3){const x=ht[N],j=N+1<ht.length,de=j?ht[N+1]:0,Je=N+2<ht.length,St=Je?ht[N+2]:0;let Jn=(15&de)<<2|St>>6,ii=63&St;Je||(ii=64,j||(Jn=64)),U.push(De[x>>2],De[(3&x)<<4|de>>4],De[Jn],De[ii])}return U.join("")},encodeString(ht,Oe){return this.HAS_NATIVE_SUPPORT&&!Oe?btoa(ht):this.encodeByteArray(k(ht),Oe)},decodeString(ht,Oe){return this.HAS_NATIVE_SUPPORT&&!Oe?atob(ht):function(ht){const Oe=[];let De=0,U=0;for(;De<ht.length;){const N=ht[De++];if(N<128)Oe[U++]=String.fromCharCode(N);else if(N>191&&N<224){const x=ht[De++];Oe[U++]=String.fromCharCode((31&N)<<6|63&x)}else if(N>239&&N<365){const Je=((7&N)<<18|(63&ht[De++])<<12|(63&ht[De++])<<6|63&ht[De++])-65536;Oe[U++]=String.fromCharCode(55296+(Je>>10)),Oe[U++]=String.fromCharCode(56320+(1023&Je))}else{const x=ht[De++],j=ht[De++];Oe[U++]=String.fromCharCode((15&N)<<12|(63&x)<<6|63&j)}}return Oe.join("")}(this.decodeStringToByteArray(ht,Oe))},decodeStringToByteArray(ht,Oe){this.init_();const De=Oe?this.charToByteMapWebSafe_:this.charToByteMap_,U=[];for(let N=0;N<ht.length;){const x=De[ht.charAt(N++)],de=N<ht.length?De[ht.charAt(N)]:0;++N;const St=N<ht.length?De[ht.charAt(N)]:64;++N;const kn=N<ht.length?De[ht.charAt(N)]:64;if(++N,null==x||null==de||null==St||null==kn)throw new q;U.push(x<<2|de>>4),64!==St&&(U.push(de<<4&240|St>>2),64!==kn&&U.push(St<<6&192|kn))}return U},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let ht=0;ht<this.ENCODED_VALS.length;ht++)this.byteToCharMap_[ht]=this.ENCODED_VALS.charAt(ht),this.charToByteMap_[this.byteToCharMap_[ht]]=ht,this.byteToCharMapWebSafe_[ht]=this.ENCODED_VALS_WEBSAFE.charAt(ht),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[ht]]=ht,ht>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(ht)]=ht,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(ht)]=ht)}}};
1class q extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const te=function(ht){const Oe=k(ht);return C.encodeByteArray(Oe,!0)},_e=function(ht){return te(ht).replace(/\./g,"")},re=function(ht){try{return C.decodeString(ht,!0)}catch(Oe){console.error("base64Decode failed: ",Oe)}return null};function we(ht){return be(void 0,ht)}function be(ht,Oe){if(!(Oe instanceof Object))return Oe;switch(Oe.constructor){case Date:return new Date(Oe.getTime());case Object:void 0===ht&&(ht={});break;case Array:ht=[];break;default:return Oe}for(const De in Oe)!Oe.hasOwnProperty(De)||!ke(De)||(ht[De]=be(ht[De],Oe[De]));return ht}function ke(ht){return"__proto__"!==ht}const rt=()=>{try{return function Ze(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if("undefined"==typeof process||void 0===process.env)return;const ht=process.env.__FIREBASE_DEFAULTS__;return ht?JSON.parse(ht):void 0})()||(()=>{if("undefined"==typeof document)return;let ht;try{ht=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(De){return}const Oe=ht&&re(ht[1]);return Oe&&JSON.parse(Oe)})()}catch(ht){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${ht}`)}},je=ht=>{var Oe,De;return null===(De=null===(Oe=rt())||void 0===Oe?void 0:Oe.emulatorHosts)||void 0===De?void 0:De[ht]},ut=()=>{var ht;return null===(ht=rt())||void 0===ht?void 0:ht.config},ze=ht=>{var Oe;return null===(Oe=rt())||void 0===Oe?void 0:Oe[`_${ht}`]};class Re{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((Oe,De)=>{this.resolve=Oe,this.reject=De})}wrapCallback(Oe){return(De,U)=>{De?this.reject(De):this.resolve(U),"function"==typeof Oe&&(this.promise.catch(()=>{}),1===Oe.length?Oe(De):Oe(De,U))}}}function tt(ht,Oe){if(ht.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const U=Oe||"demo-project",N=ht.iat||0,x=ht.sub||ht.user_id;if(!x)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const j=Object.assign({iss:`https://securetoken.google.com/${U}`,aud:U,iat:N,exp:N+3600,auth_time:N,sub:x,user_id:x,firebase:{sign_in_provider:"custom",identities:{}}},ht);return[_e(JSON.stringify({alg:"none",type:"JWT"})),_e(JSON.stringify(j)),""].join(".")}function Fe(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function me(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Fe())}function gt(){var ht;const Oe=null===(ht=rt())||void 0===ht?void 0:ht.forceEnvironment;if("node"===Oe)return!0;if("browser"===Oe)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(De){return!1}}function Bt(){return"object"==typeof self&&self.self===self}function pn(){const ht="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof ht&&void 0!==ht.id}function mn(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function en(){const ht=Fe();return ht.indexOf("MSIE ")>=0||ht.indexOf("Trident/")>=0}function Mn(){return!1}function Bn(){return!gt()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function Dn(){try{return"object"==typeof indexedDB}catch(ht){return!1}}function vn(){return new Promise((ht,Oe)=>{try{let De=!0;const U="validate-browser-context-for-indexeddb-analytics-module",N=self.indexedDB.open(U);N.onsuccess=()=>{N.result.close(),De||self.indexedDB.deleteDatabase(U),ht(!0)},N.onupgradeneeded=()=>{De=!1},N.onerror=()=>{var x;Oe((null===(x=N.error)||void 0===x?void 0:x.message)||"")}}catch(De){Oe(De)}})}function Dt(){return!("undefined"==typeof navigator||!navigator.cookieEnabled)}class it extends Error{constructor(Oe,De,U){super(De),this.code=Oe,this.customData=U,this.name="FirebaseError",Object.setPrototypeOf(this,it.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,At.prototype.create)}}class At{constructor(Oe,De,U){this.service=Oe,this.serviceName=De,this.errors=U}create(Oe,...De){const U=De[0]||{},N=`${this.service}/${Oe}`,x=this.errors[Oe],j=x?function ct(ht,Oe){return ht.replace(st,(De,U)=>{const N=Oe[U];return null!=N?String(N):`<${U}?>`})}(x,U):"Error";return new it(N,`${this.serviceName}: ${j} (${N}).`,U)}}const st=/\{\$([^}]+)}/g;function vt(ht){return JSON.parse(ht)}function ft(ht){return JSON.stringify(ht)}const Ut=function(ht){let Oe={},De={},U={},N="";try{const x=ht.split(".");Oe=vt(re(x[0])||""),De=vt(re(x[1])||""),N=x[2],U=De.d||{},delete De.d}catch(x){}return{header:Oe,claims:De,data:U,signature:N}},bn=function(ht){const De=Ut(ht).claims;return!!De&&"object"==typeof De&&De.hasOwnProperty("iat")},pi=function(ht){const Oe=Ut(ht).claims;return"object"==typeof Oe&&!0===Oe.admin};function si(ht,Oe){return Object.prototype.hasOwnProperty.call(ht,Oe)}function vi(ht,Oe){if(Object.prototype.hasOwnProperty.call(ht,Oe))return ht[Oe]}function Vn(ht){for(const Oe in ht)if(Object.prototype.hasOwnProperty.call(ht,Oe))return!1;return!0}function Rn(ht,Oe,De){const U={};for(const N in ht)Object.prototype.hasOwnProperty.call(ht,N)&&(U[N]=Oe.call(De,ht[N],N,ht));return U}function Ve(ht,Oe){if(ht===Oe)return!0;const De=Object.keys(ht),U=Object.keys(Oe);for(const N of De){if(!U.includes(N))return!1;const x=ht[N],j=Oe[N];if(Pt(x)&&Pt(j)){if(!Ve(x,j))return!1}else if(x!==j)return!1}for(const N of U)if(!De.includes(N))return!1;return!0}function Pt(ht){return null!==ht&&"object"==typeof ht}function ue(ht){const Oe=[];
1for(const[De,U]of Object.entries(ht))Array.isArray(U)?U.forEach(N=>{Oe.push(encodeURIComponent(De)+"="+encodeURIComponent(N))}):Oe.push(encodeURIComponent(De)+"="+encodeURIComponent(U));return Oe.length?"&"+Oe.join("&"):""}function K(ht){const Oe={};return ht.replace(/^\?/,"").split("&").forEach(U=>{if(U){const[N,x]=U.split("=");Oe[decodeURIComponent(N)]=decodeURIComponent(x)}}),Oe}function ae(ht){const Oe=ht.indexOf("?");if(!Oe)return"";const De=ht.indexOf("#",Oe);return ht.substring(Oe,De>0?De:void 0)}class Me{constructor(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(let Oe=1;Oe<this.blockSize;++Oe)this.pad_[Oe]=0;this.reset()}reset(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0}compress_(Oe,De){De||(De=0);const U=this.W_;if("string"==typeof Oe)for(let kn=0;kn<16;kn++)U[kn]=Oe.charCodeAt(De)<<24|Oe.charCodeAt(De+1)<<16|Oe.charCodeAt(De+2)<<8|Oe.charCodeAt(De+3),De+=4;else for(let kn=0;kn<16;kn++)U[kn]=Oe[De]<<24|Oe[De+1]<<16|Oe[De+2]<<8|Oe[De+3],De+=4;for(let kn=16;kn<80;kn++){const Jn=U[kn-3]^U[kn-8]^U[kn-14]^U[kn-16];U[kn]=4294967295&(Jn<<1|Jn>>>31)}let St,Ht,N=this.chain_[0],x=this.chain_[1],j=this.chain_[2],de=this.chain_[3],Je=this.chain_[4];for(let kn=0;kn<80;kn++){kn<40?kn<20?(St=de^x&(j^de),Ht=1518500249):(St=x^j^de,Ht=1859775393):kn<60?(St=x&j|de&(x|j),Ht=2400959708):(St=x^j^de,Ht=3395469782);const Jn=(N<<5|N>>>27)+St+Je+Ht+U[kn]&4294967295;Je=de,de=j,j=4294967295&(x<<30|x>>>2),x=N,N=Jn}this.chain_[0]=this.chain_[0]+N&4294967295,this.chain_[1]=this.chain_[1]+x&4294967295,this.chain_[2]=this.chain_[2]+j&4294967295,this.chain_[3]=this.chain_[3]+de&4294967295,this.chain_[4]=this.chain_[4]+Je&4294967295}update(Oe,De){if(null==Oe)return;void 0===De&&(De=Oe.length);const U=De-this.blockSize;let N=0;const x=this.buf_;let j=this.inbuf_;for(;N<De;){if(0===j)for(;N<=U;)this.compress_(Oe,N),N+=this.blockSize;if("string"==typeof Oe){for(;N<De;)if(x[j]=Oe.charCodeAt(N),++j,++N,j===this.blockSize){this.compress_(x),j=0;break}}else for(;N<De;)if(x[j]=Oe[N],++j,++N,j===this.blockSize){this.compress_(x),j=0;break}}this.inbuf_=j,this.total_+=De}digest(){const Oe=[];let De=8*this.total_;this.update(this.pad_,this.inbuf_<56?56-this.inbuf_:this.blockSize-(this.inbuf_-56));for(let N=this.blockSize-1;N>=56;N--)this.buf_[N]=255&De,De/=256;this.compress_(this.buf_);let U=0;for(let N=0;N<5;N++)for(let x=24;x>=0;x-=8)Oe[U]=this.chain_[N]>>x&255,++U;return Oe}}function nt(ht,Oe){const De=new Tt(ht,Oe);return De.subscribe.bind(De)}class Tt{constructor(Oe,De){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=De,this.task.then(()=>{Oe(this)}).catch(U=>{this.error(U)})}next(Oe){this.forEachObserver(De=>{De.next(Oe)})}error(Oe){this.forEachObserver(De=>{De.error(Oe)}),this.close(Oe)}complete(){this.forEachObserver(Oe=>{Oe.complete()}),this.close()}subscribe(Oe,De,U){let N;if(void 0===Oe&&void 0===De&&void 0===U)throw new Error("Missing Observer.");N=function Yt(ht,Oe){if("object"!=typeof ht||null===ht)return!1;for(const De of Oe)if(De in ht&&"function"==typeof ht[De])return!0;return!1}(Oe,["next","error","complete"])?Oe:{next:Oe,error:De,complete:U},void 0===N.next&&(N.next=Pn),void 0===N.error&&(N.error=Pn),void 0===N.complete&&(N.complete=Pn);const x=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?N.error(this.finalError):N.complete()}catch(j){}}),this.observers.push(N),x}unsubscribeOne(Oe){void 0===this.observers||void 0===this.observers[Oe]||(delete this.observers[Oe],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(Oe){if(!this.finalized)for(let De=0;De<this.observers.length;De++)this.sendOne(De,Oe)}sendOne(Oe,De){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[Oe])try{De(this.observers[Oe])}catch(U){"undefined"!=typeof console&&console.error&&console.error(U)}})}close(Oe){this.finalized||(this.finalized=!0,void 0!==Oe&&(this.finalError=Oe),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Pn(){}const Cn=function(ht,Oe,De,U){let N;if(U<Oe?N="at least "+Oe:U>De&&(N=0===De?"none":"no more than "+De),N)throw new Error(ht+" failed: Was called with "+U+(1===U?" argument.":" arguments.")+" Expects "+N+".")};function Nn(ht,Oe){return`${ht} failed: ${Oe} argument `}function ni(ht,Oe,De,U){if((!U||De)&&"function"!=typeof De)throw new Error(Nn(ht,Oe)+"must be a valid function.")}function Qn(ht,Oe,De,U){if((!U||De)&&("object"!=typeof De||null===De))throw new Error(Nn(ht,Oe)+"must be a valid context object.")}const lt=function(ht){const Oe=[];let De=0;for(let U=0;U<ht.length;U++){let N=ht.charCodeAt(U);if(N>=55296&&N<=56319){const x=N-55296;U++,s(U<ht.length,"Surrogate pair missing trail surrogate."),N=65536+(x<<10)+(ht.charCodeAt(U)-56320)}N<128?Oe[De++]=N:N<2048?(Oe[De++]=N>>6|192,Oe[De++]=63&N|128):N<65536?(Oe[De++]=N>>12|224,Oe[De++]=N>>6&63|128,Oe[De++]=63&N|128):(Oe[De++]=N>>18|240,Oe[De++]=N>>12&63|128,Oe[De++]=N>>6&63|128,Oe[De++]=63&N|128)}return Oe},Qt=function(ht){let Oe=0;for(let De=0;De<ht.length;De++){const U=ht.charCodeAt(De);U<128?Oe++:U<2048?Oe+=2:U>=55296&&U<=56319?(Oe+=4,De++):Oe+=3}return Oe};function Ot(ht,Oe=1e3,De=2){const U=Oe*Math.pow(De,ht),N=Math.round(.5*U*(Math.random()-.5)*2);return Math.min(144e5,U+N)}function ei(ht){return ht&&ht._delegate?ht._delegate:ht}},8305:(_t,Ue,b)=>{"use strict";b.d(Ue,{c:()=>m});var h=b(5e3),s=b(678);let m=(()=>{class k{constructor(C){this.shared=C}canDeactivate(C,q,te,_e){return this.shared.allowRoute}}return k.\u0275fac=function(C){return new(C||k)(h.LFG(s.F))},k.\u0275prov=h.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})()},4980:(_t,Ue,b)=>{"use strict";b.d(Ue,{M:()=>De});var h=b(1564),s=b(5e3),m=b(678);let k=(()=>{class U{constructor(x,j){this.router=x,this.shared=j}ngOnInit(){}archNav(x){const j=this.router.serializeUrl(this.router.createUrlTree(["/shows"]))+`?archYear=${x}`;window.open(j,"_blank")}}return U.\u0275fac=function(x){return new(x||U)(s.Y36(h.F0),s.Y36(m.F))},U.\u0275cmp=s.Xpm({type:U,selectors:[["app-about"]],decls:60,vars:0,consts:[["id","about-content-wrapper"],["id","mission-wrapper"],["id","mission-content"],["href","https://porchfest.org","target","_blank"],["href","https://somervillearts.org/porchfest","target","_blank"],["href","https://archive.westphillyporchfest.com/archive/2016","target","_blank"],["href","https://archive.westphillyporchfest.com/archive/2017","target","_blank"],["href","https://archive.westphillyporchfest.com/archive/2018","target","_blank"],["href","https://archive.westphillyporchfest.com/archive/2019","target","_blank"],["href","https://archive.westphillyporchfest.com/archive/2021","target","_blank"],["href","https://archive.westphillyporchfest.com/","target","_blank"],[3,"click"],["id","mission-photos"],["src","https://ik.imagekit.io/ingenui/WPPorchfest/2022/fest_photos/513C045E-98B7-413B-A76D-963E114FF2BC_1_105_c_xYxw9Ihhx.jpeg?updatedAt=1679443128095",1,"grid-photo"],["src","https://ik.imagekit.io/ingenui/WPPorchfest/2022/fest_photos/002_C6K5ABRgT.jpeg?updatedAt=1679443129211",1,"grid-photo"],["src","https://ik.imagekit.io/ingenui/WPPorchfest/2022/fest_photos/006_q9AANX275i.JPG?updatedAt=1679443125691",1,"grid-photo"],["src","https://ik.imagekit.io/ingenui/WPPorchfest/2022/fest_photos/004_mpEXSD-rje.jpeg?updatedAt=1679443127041",1,"grid-photo"]],template:function(x,j){1&x&&(s.TgZ(0,"div",0)(1,"h1"),s._uU(2,"About"),s.qZA(),s.TgZ(3,"p"),s._uU(4," West Philly Porchfest is an annual do-it-yourself music festival, featuring musicians of all kinds playing free shows on porches throughout the neighborhood. Created by and for West Philadelphia residents, the festival seeks to represent and celebrate the community\u2019s broad musical and cultural diversity. "),s.qZA(),s.TgZ(5,"h3"),s._uU(6,"Mission"),s.qZA(),s.TgZ(7,"div",1)(8,"div",2)(9,"p"),s._uU(10," To build, deepen and celebrate connections within our culturally diverse community by creating a platform for sharing the joys of live music. "),s.qZA(),s.TgZ(11,"p"),s._uU(12," The "),s.TgZ(13,"a",3),s._uU(14,"first Porchfest"),s.qZA(),s._uU(15," was held in Ithaca, NY in 2007. Since then, Porchfests have sprung up in over 100 other US and Canadian cities, including San Francisco, Cleveland, Tucson, Montr\xe9al and Ottawa. "),s.qZA(),s.TgZ(16,"p"),s._uU(17," West Philly Porchfest was started in 2016 by five neighborhood residents. Most of them had recently participated in the "),s.TgZ(18,"a",4),s._uU(19,"Somerville, MA Porchfest"),s.qZA(),s._uU(20," and thought it seemed like the perfect fit for West Philly (we have better porches for sure!). "),s.qZA(),s.TgZ(21,"p"),s._uU(22," The first annual West Philly Porchfest took place on June 4, 2016 with 75 acts playing shows at over 30 porches. The event more than doubled in size in 2017, and 2019\u2019s Porchfest featured more than 175 acts performing on nearly 100 different porches. "),s.qZA(),s.TgZ(23,"p"),s._uU(24," You can check out the map and schedule of past performances from the archives: "),s.qZA(),s.TgZ(25,"ul")(26,"li")(27,"a",5),s._uU(28,"2016"),s.qZA()(),s.TgZ(29,"li")(30,"a",6),s._uU(31,"2017"),s.qZA()(),s.TgZ(32,"li")(33,"a",7),s._uU(34,"2018"),s.qZA()(),s.TgZ(35,"li")(36,"a",8),s._uU(37,"2019"),s.qZA()(),s.TgZ(38,"li")(39,"a",9),s._uU(40,"2021"),s.qZA()(),s.TgZ(41,"li")(42,"a",10),s._uU(43,"2022"),s.qZA()(),s.TgZ(44,"li")(45,"a",11),s.NdJ("
1click",function(){return j.archNav("2023")}),s._uU(46,"2023"),s.qZA()(),s.TgZ(47,"li")(48,"a",11),s.NdJ("click",function(){return j.archNav("2024")}),s._uU(49,"2024"),s.qZA()(),s.TgZ(50,"li")(51,"a",11),s.NdJ("click",function(){return j.archNav("2025")}),s._uU(52,"2025"),s.qZA()()(),s.TgZ(53,"p"),s._uU(54," (Note: Show data from years 2016 to 2019 is missing, but the site design is still present. We are working on recovering the missing data.) "),s.qZA()(),s.TgZ(55,"div",12),s._UZ(56,"img",13)(57,"img",14)(58,"img",15)(59,"img",16),s.qZA()()())},styles:["[_nghost-%COMP%]{display:block;width:100%}@media screen and (max-width: 599px){#mission-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column}#mission-content[_ngcontent-%COMP%], #mission-photos[_ngcontent-%COMP%]{width:100%}}@media screen and (min-width: 600px){#mission-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row}#mission-content[_ngcontent-%COMP%]{width:60%}#mission-photos[_ngcontent-%COMP%]{width:40%}}#about-content-wrapper[_ngcontent-%COMP%]{width:80%;margin:28px auto 0;display:flex;flex-direction:column}#mission-photos[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;grid-column-gap:8px;column-gap:8px;grid-row-gap:4px;row-gap:4px;margin-left:32px;align-content:start}.grid-photo[_ngcontent-%COMP%]{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}"]}),U})();var v=b(5861),C=b(3075),q=b(196),te=b(7423),_e=b(3489),re=b(7531),we=b(4107),be=b(508);let ke=(()=>{class U{constructor(x,j,de){this.fb=x,this.db=j,this.shared=de,this.contactForm=this.fb.group({name:this.fb.control("",[C.kI.required]),email:this.fb.control("",[C.kI.required,C.kI.email]),role:this.fb.control("",[C.kI.required]),subject:this.fb.control("",[C.kI.required]),message:this.fb.control("",[C.kI.required,C.kI.maxLength(255)])})}ngOnInit(){}submit(){var x=this;return(0,v.Z)(function*(){var j;x.contactForm.disable(),yield x.db.addDoc(`fests/${x.shared.festYear}/messages`,x.contactForm.value).catch(de=>console.error("Could not send message: ",de.message)),x.contactForm.reset(),null===(j=x.contactForm.get(["name","email","role","subject","message"]))||void 0===j||j.markAsPristine(),x.contactForm.enable()})()}}return U.\u0275fac=function(x){return new(x||U)(s.Y36(C.qu),s.Y36(q.k),s.Y36(m.F))},U.\u0275cmp=s.Xpm({type:U,selectors:[["app-contact"]],decls:44,vars:2,consts:[["id","contact-content-wrapper"],["id","link-buttons-container",1,"pink-box"],["id","social-container"],["href","https://www.facebook.com/westphillyporchfest/","target","_blank",1,"social-link"],["src","../../../assets/img/facebook-logo.png",1,"social-icon"],["href","https://www.instagram.com/westphillyporchfest/","target","_blank",1,"social-link"],["src","../../../assets/img/insta-logo.png",1,"social-icon"],["href","https://twitter.com/hashtag/westphillyporchfest","target","_blank",1,"social-link"],["src","../../../assets/img/twitter-logo.png",1,"social-icon"],["href","https://groups.google.com/g/west-philly-porchfest","target","_blank",1,"contact-link"],["type","button","mat-raised-button","","color","accent",1,"link-button"],["href","https://www.facebook.com/groups/1609331765986927/","target","_blank",1,"contact-link"],[3,"formGroup","submit"],[1,"contact-field"],["id","contact-name","matInput","","placeholder","Your Name","formControlName","name"],["id","contact-email","matInput","","placeholder","Your Email","formControlName","email"],["id","contact-role","formControlName","role"],["value","host"],["value","volunteer"],["value","artist"],["value","attendee"],["value","other"],["id","contact-subject","matInput","","placeholder","Subject Line","formControlName","subject"],["id","contact-message","matInput","","placeholder","Your Message (max 255 chars)","formControlName","message"],["type","submit","mat-raised-button","","color","primary",3,"disabled"]],template:function(x,j){1&x&&(s.TgZ(0,"div",0)(1,"h1"),s._uU(2,"Reach Out"),s.qZA(),s.TgZ(3,"div",1)(4,"div",2)(5,"a",3),s._UZ(6,"img",4),s.qZA(),s.TgZ(7,"a",5),s._UZ(8,"img",6),s.qZA(),s.TgZ(9,"a",7),s._UZ(10,"img",8),s.qZA()(),s.TgZ(11,"a",9)(12,"button",10),s._uU(13,"Sign Up for Email Updates"),s.qZA()(),s.TgZ(14,"a",11)(15,"button",10),s._uU(16,"Musician/Porch Connector on Facebook"),s.qZA()()(),s.TgZ(17,"form",12),s.NdJ("submit",function(){return j.submit()}),s.TgZ(18,"h3"),s._uU(19,"Email Us!"),s.qZA(),s.TgZ(20,"mat-form-field",13),s._UZ(21,"input",14),s.qZA(),s.TgZ(22,"mat-form-field",13),s._UZ(23,"input",15),s.qZA(),s.TgZ(24,"mat-form-field",13)(25,"mat-label"),s._uU(26,"How are you participating?"),s.qZA(),s.TgZ(27,"mat-select",16)(28,"mat-option",17),s._uU(29,"Host"),s.qZA(),s.TgZ(30,"mat-option",18),s._uU(31,"Volunteer"),s.qZA(),s.TgZ(32,"mat-option",19),s._uU(33,"Artist"),s.qZA(),s.TgZ(34,"mat-option",20),s._uU(35,"Attendee"),s.qZA(),s.TgZ(36,"mat-option",21),s._uU(37,"Other"),s.qZA()()(),s.TgZ(38,"mat-form-field",13),s._UZ(39,"input",22),s.qZA(),s.TgZ(40,"mat-form-field",13),s._UZ(41,"textarea",23),s.qZA(),s.TgZ(42,"button",24),s._uU(43,"Submit
1!"),s.qZA()()()),2&x&&(s.xp6(17),s.Q6J("formGroup",j.contactForm),s.xp6(25),s.Q6J("disabled",j.contactForm.invalid))},directives:[te.lW,C._Y,C.JL,C.sg,_e.KE,re.Nt,C.Fj,C.JJ,C.u,_e.hX,we.gD,be.ey],styles:["[_nghost-%COMP%]{display:block;width:100%}button[_ngcontent-%COMP%]:disabled{color:#000000bf;background-color:#0000008c}#contact-content-wrapper[_ngcontent-%COMP%]{width:80%;margin:28px auto 0;display:flex;flex-direction:column}.contact-field[_ngcontent-%COMP%]{width:100%}#link-buttons-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:20px;margin-bottom:24px;flex-wrap:wrap;align-self:flex-start;width:fit-content}#social-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:20px;flex-shrink:0}.social-link[_ngcontent-%COMP%]{display:inline-flex;align-items:center}.social-icon[_ngcontent-%COMP%]{width:36px;height:36px;object-fit:contain}.contact-link[_ngcontent-%COMP%]{flex-shrink:0}.link-button[_ngcontent-%COMP%]{width:fit-content}"]}),U})(),Ze=(()=>{class U{constructor(){}ngOnInit(){}ngAfterViewInit(){let x=document.getElementById("paypal-button");x&&(x.innerHTML='<form action="https://www.paypal.com/cgi-bin/webscr" target="_blank" method="post">\n <input type="hidden" name="cmd" value="_s-xclick">\n <input type="hidden" name="hosted_button_id" value="P9LBB9MVSYQGN">\n <button type="submit" style="background:#e91e63;color:#fff;border:none;border-radius:14px;font-family:\'Poppins\',sans-serif;font-weight:500;font-size:0.9rem;padding:8px 24px;cursor:pointer;letter-spacing:0;">Donate</button>\n <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">\n </form>')}}return U.\u0275fac=function(x){return new(x||U)},U.\u0275cmp=s.Xpm({type:U,selectors:[["app-donate"]],decls:6,vars:0,consts:[["id","donate-content-wrapper"],["id","paypal-button"]],template:function(x,j){1&x&&(s.TgZ(0,"div",0)(1,"h1"),s._uU(2,"Donate"),s.qZA(),s.TgZ(3,"p"),s._uU(4," West Philly Porchfest is an all-volunteer operation of dedicated local music lovers. We\u2019ve kept our operating budget as low as possible \u2013 mostly printing costs and a few incidentals \u2013 which means that even small donations make a significant difference. Any amount is truly appreciated, and will help keep Porchfest running on into the future. "),s.qZA(),s._UZ(5,"div",1),s.qZA())},styles:["#donate-content-wrapper[_ngcontent-%COMP%]{width:80%;margin:28px auto 0;display:flex;flex-direction:column}"]}),U})(),Ye=(()=>{class U{constructor(x){this.shared=x}ngOnInit(){}}return U.\u0275fac=function(x){return new(x||U)(s.Y36(m.F))},U.\u0275cmp=s.Xpm({type:U,selectors:[["app-faq"]],decls:75,vars:2,consts:[["id","faq-content-wrapper"],["href","https://www.facebook.com/groups/1609331765986927/","target","_blank"]],template:function(x,j){1&x&&(s.TgZ(0,"div",0)(1,"h1"),s._uU(2,"Frequently Asked Questions"),s.qZA(),s.TgZ(3,"h4"),s._uU(4,"What is West Philly Porchfest?"),s.qZA(),s.TgZ(5,"p"),s._uU(6," West Philly Porchfest is an annual do-it-yourself community music festival. It is organized by (and for) West Philly residents and features musical acts from all genres and all walks of life playing free shows on porches throughout the neighborhood. "),s.qZA(),s.TgZ(7,"h4"),s._uU(8,"When is it?"),s.qZA(),s.TgZ(9,"p"),s._uU(10),s.qZA(),s.TgZ(11,"h4"),s._uU(12,"Is there a rain date?"),s.qZA(),s.TgZ(13,"p"),s._uU(14," Nope! Porchfest is a rain or shine event that is entirely out of doors. Please plan accordingly with protective layers, umbrellas, sunscreen, sufficient water etc. "),s.qZA(),s.TgZ(15,"h4"),s._uU(16,"Where is it, exactly? What do you mean by \u201cWest Philly\u201d?"),s.qZA(),s.TgZ(17,"p"),s._uU(18," Porchfest is big, but West Philly is bigger! The only official boundaries of the event are the Schuylkill river and the city line, but most past Porchfest shows were on porches within a mile of the intersection of 48th st and Baltimore Ave, in the residential neighborhoods of Cedar Park, Spruce Hill, Squirrel Hill and Walnut Hill. Porch hosts who are outside of that range are welcome to sign up, but may
1not get the full benefit of the shared Porchfest audience. Getting people to attend shows in less concentrated areas might require porch hosts to do more personal promotion, or to recruit neighbors from nearby blocks and expand the map! To see all currently registered shows for this year\u2019s event look at the interactive map on our home page. "),s.qZA(),s.TgZ(19,"h4"),s._uU(20,"How can I participate in West Philly Porchfest?"),s.qZA(),s.TgZ(21,"p"),s._uU(22," There are lots of ways to be part of Porchfest! You can perform, host a show, volunteer, or just come out and appreciate all the amazing musical talent on display. "),s.qZA(),s.TgZ(23,"h4"),s._uU(24,"Who are the musicians? Can I play?"),s.qZA(),s.TgZ(25,"p"),s._uU(26," Yes, you can play! All you need is a porch. The musicians of West Philly Porchfest represent every genre and every level of experience. Within blocks of each other, you might find brass bands, emcees, bluegrass fiddlers, and jazz trios. Some musicians are professionals, others might have put together a new band, just for the occasion. Even if you\u2019ve never performed publicly, Porchfest is a great way to try playing out in a fun, friendly, informal setting. "),s.qZA(),s.TgZ(27,"h4"),s._uU(28,"Who books the performers for West Philly Porchfest? How do I get to perform?"),s.qZA(),s.TgZ(29,"p"),s._uU(30," All booking for Porchfest is done by porch hosts (typically, the residents of the house attached to a porch), not the West Philly Porchfest Organizing Committee. If you\u2019re a musician interested in playing at Porchfest we recommend talking to potential hosts (see below) in the neighborhood or posting on our "),s.TgZ(31,"a",1),s._uU(32,"Porch/Musician Connector Group on Facebook"),s.qZA(),s._uU(33,". And, of course, if you live in the neighborhood, you can always play on your own porch. "),s.qZA(),s.TgZ(34,"h4"),s._uU(35,"Who are the porch hosts? Can I host?"),s.qZA(),s.TgZ(36,"p"),s._uU(37," Anyone can host, if you have the rights/permission to use a porch in the neighborhood. If you need help finding artists to perform on your porch you can post on the "),s.TgZ(38,"a",1),s._uU(39,"Porch/Musician Connector Group"),s.qZA(),s._uU(40,". "),s.qZA(),s.TgZ(41,"h4"),s._uU(42,"What are the responsibilities of hosting?"),s.qZA(),s.TgZ(43,"p"),s._uU(44," The porch hosts play an absolutely essential role in Porchfest. Porchfest is, in fact, not one event, but a collection of individually produced shows, and porch hosts are entirely responsible for the show they\u2019re hosting. This includes booking the artists that will play on the porch, registering the event with the Organizing Committee, notifying the neighbors on their block, and managing their show on the day of the event. This means that porch hosts should be comfortable with the legal liability of hosting a show on their porch and the responsibility of being a good neighbor to their immediate community. "),s.qZA(),s.TgZ(45,"h4"),s._uU(46,"What does West Philly Porchfest provide to porch hosts?"),s.qZA(),s.TgZ(47,"p"),s._uU(48," Once you register your porch show via the sign-up form on our website, we\u2019ll add it to our online map and include it the physical maps for the day of the event. We\u2019ll keep you up to date with news and information, offer some tips/suggestions for making your show a success and possibly even invite you to a special gathering just for hosts and performers. We\u2019ll also provide you with a poster (or two) to put up on your porch so that everyone will know you\u2019re hosting a show! "),s.qZA(),s.TgZ(49,"h4"),s._uU(50,"What\u2019s the deal with the different zones/time slots?"),s.qZA(),s.TgZ(51,"p"),s._uU(52," Porchfest runs from 12-6 pm, but that time is broken up into three 2 hour slots grouped by location. 12-2 pm is for porches south of Baltimore Ave. 2-4 pm is for porches north of Baltimore ave and east of 48th st. 4-6 pm is for porches north of Baltimore Ave and west of 48th st. These zones are designed to keep Porchfest walkable and accessible. We strongly recommend porches schedule their shows during the time slot that corresponds with their location to insure that the performers get the benefit of the entire Porchfest audience. "),s.qZA(),s.TgZ(53,"h4"),s._uU(54,"Where can I find a map / lineup?"),s.qZA(),s.TgZ(55,"p"),s._uU(56," You can find an online interactive version of the map on our home page. You can find paper printouts of the map and lineup at our local business partners on the day of the event. "),s.qZA(),s.TgZ(57,"h4"),s._uU(58,"Does this cost money to host/play/attend?"),s.qZA(),s.TgZ(59,"p"),s._uU(60,"No!"),s.qZA(),s.TgZ(61,"p"),s._uU(62," We do not charge any ticket price for audience members. We do not charge any registration fees for porch hosts. We certainly do not charge artists for the chance to perform! Some porch hosts may pay their artists. Some porches may provide a way to tip the artists performing. Each of these is at the discretion of the host. Because Porchfest is free for everyone, we are grateful for any donations you can afford. The money you donate is not tax-deductible, but it does all go directly to making this community event possible. "),s.qZA(),s.TgZ(63,"h4"),s._uU(64,"Who puts on this event?"),s.qZA(),s.TgZ(65,"p"),s._uU(66," Porchfest is put on by the West Philly Porchfest Organizing Committee, an all-volunteer group of neighborhood residents who came together to create the first West Philly Porchfest in 2016. "),s.qZA(),s.TgZ(67,"h4"),s._uU(68,"How do I get involved if I want to be part of making West Philly Porchfest happen?"),s.qZA(),s.TgZ(69,"p"),s._uU(70," Porchfest is an all-volunteer effort and we would love to have your help! Flyering, organizational outreach, and design work are done by volunteers. If you would like to learn more about ways in which you can donate your time to Porchfest, send an email with your interests and general availability to [email protected] (Talk about Organizing Committee level engagement?) "),s.qZA(),s.TgZ(71,"h4"),s._uU(72,"Who should I make checks payable to, if I want to supp
1ort West Philly Porchfest financially?"),s.qZA(),s.TgZ(73,"p"),s._uU(74," Thanks for asking. Porchfest runs entirely on donations, so we very much appreciate your support! The easiest way to contribute is to send us a donation via PayPal. If you would like to write a physical check or make a cash donation please email [email protected] to make arrangements. "),s.qZA()()),2&x&&(s.xp6(10),s.AsE(" Porchfest takes place on the first Saturday in June. In ",j.shared.festYear," it will take place on ",j.shared.displayDate," between noon and 6 pm. "))},styles:["[_nghost-%COMP%]{display:block;width:100%}#faq-content-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:80%;margin:28px auto 0}"]}),U})();var $e=b(4004),Te=b(262),rt=b(9646),je=b(5698),zt=b(2340),ut=b(5439),ze=b(520),Re=b(1494),tt=b(9808),Fe=b(2081),me=b(7446);const gt=["searchAddress"];function Bt(U,N){1&U&&(s.TgZ(0,"mat-error"),s._uU(1," Address must be in Philadelphia, PA. "),s.qZA())}function pn(U,N){1&U&&(s.TgZ(0,"div",67),s._uU(1,"\u2713"),s.qZA())}function mn(U,N){1&U&&(s.TgZ(0,"div",67),s._uU(1,"\u2713"),s.qZA())}function jn(U,N){1&U&&(s.TgZ(0,"div",67),s._uU(1,"\u2713"),s.qZA())}function en(U,N){1&U&&(s.TgZ(0,"mat-checkbox",68),s._uU(1," I am aware that my show falls outside of suggested time constraints for my zone. "),s.qZA())}function Wn(U,N){if(1&U){const x=s.EpF();s.TgZ(0,"button",97),s.NdJ("click",function(){s.CHM(x);const de=s.oxw().index;return s.oxw(2).removeArtist(de)}),s._uU(1,"Remove this artist"),s.qZA()}}function Mn(U,N){1&U&&(s.TgZ(0,"mat-option",42),s._uU(1,"12"),s.qZA())}function Bn(U,N){1&U&&(s.TgZ(0,"mat-option",43),s._uU(1,"1"),s.qZA())}function Dn(U,N){1&U&&(s.TgZ(0,"mat-option",44),s._uU(1,"2"),s.qZA())}function vn(U,N){1&U&&(s.TgZ(0,"mat-option",45),s._uU(1,"3"),s.qZA())}function Dt(U,N){1&U&&(s.TgZ(0,"mat-option",46),s._uU(1,"4"),s.qZA())}function Mt(U,N){1&U&&(s.TgZ(0,"mat-option",47),s._uU(1,"5"),s.qZA())}function it(U,N){1&U&&(s.TgZ(0,"mat-option",50),s._uU(1,"00"),s.qZA())}function At(U,N){1&U&&(s.TgZ(0,"mat-option",51),s._uU(1,"15"),s.qZA())}function ct(U,N){1&U&&(s.TgZ(0,"mat-option",52),s._uU(1,"30"),s.qZA())}function st(U,N){1&U&&(s.TgZ(0,"mat-option",53),s._uU(1,"45"),s.qZA())}function vt(U,N){1&U&&(s.TgZ(0,"mat-error"),s._uU(1," Enter a full URL starting with https:// or http:// "),s.qZA())}function ft(U,N){if(1&U){const x=s.EpF();s.TgZ(0,"button",98),s.NdJ("click",function(){const de=s.CHM(x),Je=de.$implicit,St=de.index,Ht=s.oxw(),kn=Ht.$implicit,Jn=Ht.index;return s.oxw(2).toggleGenre(kn,Je,Jn,St)}),s._uU(1),s.qZA()}if(2&U){const x=N.$implicit,j=N.index,de=s.oxw().index,Je=s.oxw(2);s.Q6J("ngClass",Je.genreButtonClass[de][j]),s.xp6(1),s.Oqu(x)}}function Ut(U,N){if(1&U){const x=s.EpF();s.TgZ(0,"button",98),s.NdJ("click",function(){const de=s.CHM(x),Je=de.$implicit,St=de.index,Ht=s.oxw(),kn=Ht.$implicit,Jn=Ht.index;return s.oxw(2).toggleDescription(kn,Je,Jn,St)}),s._uU(1),s.qZA()}if(2&U){const x=N.$implicit,j=N.index,de=s.oxw().index,Je=s.oxw(2);s.Q6J("ngClass",Je.descButtonClass[de][j]),s.xp6(1),s.Oqu(x)}}function tn(U,N){if(1&U){const x=s.EpF();s.TgZ(0,"div",69)(1,"div",70)(2,"div",71)(3,"div",72),s._uU(4),s.qZA(),s.TgZ(5,"span",73),s._uU(6),s.qZA()(),s.YNc(7,Wn,2,0,"button",74),s.qZA(),s.TgZ(8,"div",75)(9,"div",12)(10,"label",13),s._uU(11,"Artist Name "),s.TgZ(12,"span",14),s._uU(13,"*"),s.qZA()(),s.TgZ(14,"mat-form-field",15),s._UZ(15,"input",76),s.qZA()(),s.TgZ(16,"div",11)(17,"div",12)(18,"label",13),s._uU(19,"Short Description "),s.TgZ(20,"span",14),s._uU(21,"*"),s.qZA()(),s.TgZ(22,"mat-form-field",15),s._UZ(23,"input",77),s.qZA()(),s.TgZ(24,"div",12)(25,"label",13),s._uU(26,"Set Time "),s.TgZ(27,"span",14),s._uU(28,"*"),s.qZA()(),s.TgZ(29,"div",39)(30,"mat-form-field",40)(31,"mat-select",78),s.NdJ("selectionChange",function(de){const St=s.CHM(x).$implicit;return s.oxw(2).changeArtistTime(St,0,de)}),s.YNc(32,Mn,2,0,"mat-option",79),s.YNc(33,Bn,2,0,"mat-option",80),s.YNc(34,Dn,2,0,"mat-option",81),s.YNc(35,vn,2,0,"mat-option",82),s.YNc(36,Dt,2,0,"mat-option",83),s.YNc(37,Mt,2,0,"mat-option",84),s.qZA(),s.TgZ(38,"mat-error"),s._uU(39,"Required"),s.qZA()(),s.TgZ(40,"span",48),s._uU(41,":"),s.qZA(),s.TgZ(42,"mat-form-field",40)(43,"mat-select",85),s.NdJ("selectionChange",function(de){const St=s.CHM(x).$implicit;return s.oxw(2).changeArtistTime(St,1,de)}),s.YNc(44,it,2,0,"mat-option",86),s.YNc(45,At,2,0,"mat-option",87),s.YNc(46,ct,2,0,"mat-option",88),s.YNc(47,st,2,0,"mat-option",89),s.qZA(),s.TgZ(48,"mat-error"),s._uU(49,"Required"),s.qZA()()()()(),s.TgZ(50,"div",12)(51,"label",13),s._uU(52,"Long Description "),s.TgZ(53,"span",21),s._uU(54,"(optional)"),s.qZA()(),s.TgZ(55,"mat-form-field",15),s._UZ(56,"textarea",90),s.qZA()(),s.TgZ(57,"div",12)(58,"label",13),s._uU(59,"Artist Website "),s.TgZ(60,"span",21),s._uU(61,"(optional)"),s.qZA()(),s.TgZ(62,"mat-form-field",15),s._UZ(63,"input",91),s.YNc(64,vt,2,0,"mat-error",20),s.qZA()(),s.TgZ(65,"div",12)(66,"label",13),s._uU(67,"Amplified? "),s.TgZ(68,"span",14),s._uU(69,"*"),s.qZA()(),s.TgZ(70,"div",92)(71,"button",93),s.NdJ("
1click",function(){const Je=s.CHM(x).$implicit;return s.oxw(2).toggleAmplified({value:"true"},Je)}),s._uU(72,"Yes"),s.qZA(),s.TgZ(73,"button",93),s.NdJ("click",function(){const Je=s.CHM(x).$implicit;return s.oxw(2).toggleAmplified({value:"false"},Je)}),s._uU(74,"No"),s.qZA()()(),s.TgZ(75,"div",12)(76,"label",13),s._uU(77,"Genres "),s.TgZ(78,"span",21),s._uU(79,"(choose up to 3)"),s.qZA()(),s.TgZ(80,"div",94),s.YNc(81,ft,2,2,"button",95),s.qZA()(),s.TgZ(82,"div",96)(83,"label",13),s._uU(84,"Descriptors "),s.TgZ(85,"span",21),s._uU(86,"(optional)"),s.qZA()(),s.TgZ(87,"div",94),s.YNc(88,Ut,2,2,"button",95),s.qZA()()()()}if(2&U){const x=N.$implicit,j=N.index,de=s.oxw(2);let Je,St,Ht;s.Q6J("formGroupName",j),s.xp6(4),s.Oqu(j+1),s.xp6(2),s.hij("Artist ",j+1,""),s.xp6(1),s.Q6J("ngIf",de.artists().length>1),s.xp6(25),s.Q6J("ngIf",de.checkTimeBounds("start","hour",12,"lte",x)&&de.checkTimeBounds("end","hour",12,"gte",x)),s.xp6(1),s.Q6J("ngIf",de.checkTimeBounds("start","hour",1,"lte",x)&&de.checkTimeBounds("end","hour",1,"gte",x)),s.xp6(1),s.Q6J("ngIf",de.checkTimeBounds("start","hour",2,"lte",x)&&de.checkTimeBounds("end","hour",2,"gte",x)),s.xp6(1),s.Q6J("ngIf",de.checkTimeBounds("start","hour",3,"lte",x)&&de.checkTimeBounds("end","hour",3,"gte",x)),s.xp6(1),s.Q6J("ngIf",de.checkTimeBounds("start","hour",4,"lte",x)&&de.checkTimeBounds("end","hour",4,"gte",x)),s.xp6(1),s.Q6J("ngIf",de.checkTimeBounds("start","hour",5,"lte",x)&&de.checkTimeBounds("end","hour",5,"gte",x)),s.xp6(7),s.Q6J("ngIf",de.checkTimeBounds("start","minute",0,"lte",x)&&de.checkTimeBounds("end","minute",0,"gte",x)),s.xp6(1),s.Q6J("ngIf",de.checkTimeBounds("start","minute",15,"lte",x)&&de.checkTimeBounds("end","minute",15,"gte",x)),s.xp6(1),s.Q6J("ngIf",de.checkTimeBounds("start","minute",30,"lte",x)&&de.checkTimeBounds("end","minute",30,"gte",x)),s.xp6(1),s.Q6J("ngIf",de.checkTimeBounds("start","minute",45,"lte",x)&&de.checkTimeBounds("end","minute",45,"gte",x)),s.xp6(17),s.Q6J("ngIf",null==(Je=x.get("artistUrl"))?null:Je.hasError("invalidUrl")),s.xp6(7),s.ekj("toggle-active","true"===(null==(St=x.get("amplified"))?null:St.value)),s.xp6(2),s.ekj("toggle-active","false"===(null==(Ht=x.get("amplified"))?null:Ht.value)),s.xp6(8),s.Q6J("ngForOf",de.GENRES),s.xp6(7),s.Q6J("ngForOf",de.DESCRIPTORS)}}function _n(U,N){if(1&U){const x=s.EpF();s.TgZ(0,"div",1)(1,"h1"),s._uU(2,"Host a Show"),s.qZA(),s.TgZ(3,"mat-horizontal-stepper",2,3)(5,"mat-step")(6,"h3"),s._uU(7,"Ready to host a show?"),s.qZA(),s.TgZ(8,"p"),s._uU(9),s.qZA(),s.TgZ(10,"h4"),s._uU(11,"Keep it in the Zone..."),s.qZA(),s.TgZ(12,"div",4)(13,"div",5)(14,"p"),s._uU(15," We are strongly encouraging Porchfest hosts this year to plan their shows within the designated two-hour time slot corresponding to their location in the neighborhood. That is: 12-2pm for houses south of Baltimore; 2-4pm for those north of Baltimore and east of 48th street, and 4-6pm for houses west of 48th. "),s.qZA(),s.TgZ(16,"p"),s._uU(17," The more closely porch shows adhere to this policy, the easier it should be for attendees to navigate the fest and check out multiple performances in the same area \u2014 which also means more audience members for each show! We also hope that this approach will help to distribute the ambient-noise and foot-traffic brunt of the event more evenly across the neighborhood, over the course of the day, as well as simplifying the official show maps (printed and online), making them easier to follow and interpret. "),s.qZA(),s.TgZ(18,"button",6),s.NdJ("click",function(){return s.CHM(x),s.oxw().initMaps()}),s._uU(19,"Let's add my show!"),s.qZA()(),s.TgZ(20,"div",7)(21,"p"),s._uU(22," If you have already registered a show and wish to edit the details of your show, you may create an account with us to do so. In order to edit your show, you "),s.TgZ(23,"b"),s._uU(24,"must"),s.qZA(),s._uU(25," register your account with the same email address you used to register the show in order to edit the show. Follow this link to register or log in to your account and edit show details. If you are having trouble, please contact us at [email protected]. "),s.qZA(),s.TgZ(26,"button",8),s.NdJ("
1click",function(){return s.CHM(x),s.oxw().goToLogin()}),s._uU(27,"Edit Your Show"),s.qZA()()(),s.TgZ(28,"h3"),s._uU(29,"Hosting FAQs"),s.qZA(),s.TgZ(30,"h4"),s._uU(31,'"I have my show booked already!"'),s.qZA(),s.TgZ(32,"p"),s._uU(33," That's awesome! Once you have all the details hammered out, fill out the Porchfest Registration Form to let us know the address, time, and acts that are playing so that your show will be listed on the web and printed maps! You're good to go! AND if anything changes you can also log into your gmail to change your submission (or email us at [email protected] if that doesn't work). "),s.qZA(),s.TgZ(34,"h4"),s._uU(35,'"I want to host a show but I don\'t have a porch"'),s.qZA(),s.TgZ(36,"p"),s._uU(37," That's okay! Even if you don't have a porch we can figure something out! Do you have a stoop? How about a tiny lawn or walkway leading up to your front yard? We can call those honorary porches for this one day. If you're still struggling to figure out where the show can take place, you may have to call up your West Philly friends to see if you can host a show on their porch. If you're still coming up short, check out the Porchfest Musician/Porch Connector on Facebook to meet people with porches that want to have shows on them! Team up to book the porch show of your dreams! "),s.qZA(),s.TgZ(38,"h4"),s._uU(39,'"I want to host but I need to find musicians to play"'),s.qZA(),s.TgZ(40,"p"),s._uU(41," We've got you covered. We created the Porchfest Musician/Porch Connector Facebook Group for just this scenario. There you will find many excited musicians who would love to be asked to play a show on your porch. You can even post that you have a porch and let the musicians come to you! "),s.qZA(),s.TgZ(42,"h4"),s._uU(43,'"What else should I know?"'),s.qZA(),s.TgZ(44,"p"),s._uU(45," Once your show is booked and registered, you should think through all aspects of your porch show. Make sure to communicate with all of your performers so that they are clear on what is expected of them and so that you know what their needs are. Some things to consider: "),s.qZA(),s.TgZ(46,"ul")(47,"li"),s._uU(48,"Do any of the performers need electricity or extension cords?"),s.qZA(),s.TgZ(49,"li"),s._uU(50,"Are the acts going to have drums or a lot of gear? Try to see if acts can share gear to help save space and expedite transitions."),s.qZA(),s.TgZ(51,"li"),s._uU(52,"Where is the audience going to stand and do you have extra chairs or a place for some people to sit?"),s.qZA(),s.TgZ(53,"li"),s._uU(54,"Last year some people had water or other drinks for the audience, which was a lifesaver since the day did get hot!"),s.qZA(),s.TgZ(55,"li"),s._uU(56,"Have you told the neighbors? Make sure everyone on your block knows about Porchfest, specifically that there will be music and a crowd at your house (make sure they know if the music is going to be amplified or loud). Maybe it'll even inspire one of your neighbors to host a show on their porch!"),s.qZA(),s.TgZ(57,"li"),s._uU(58,"All Porchfest shows are free but your acts can sell merch or make a soft ask for donations if people enjoyed the music. We do ask that you don't physically pass a donation vessel or make a harder ask than just having a jar available if people feel moved to donate."),s.qZA()()(),s.TgZ(59,"mat-step",9)(60,"form",10)(61,"div",11)(62,"div",12)(63,"label",13),s._uU(64,"Your Name "),s.TgZ(65,"span",14),s._uU(66,"*"),s.qZA()(),s.TgZ(67,"mat-form-field",15),s._UZ(68,"input",16),s.qZA()(),s.TgZ(69,"div",12)(70,"label",13),s._uU(71,"Email "),s.TgZ(72,"span",14),s._uU(73,"*"),s.qZA()(),s.TgZ(74,"mat-form-field",15),s._UZ(75,"input",17),s.qZA()()(),s.TgZ(76,"div",12)(77,"label",13),s._uU(78,"Address "),s.TgZ(79,"span",14),s._uU(80,"*"),s.qZA()(),s.TgZ(81,"mat-form-field",15),s._UZ(82,"input",18,19),s.TgZ(84,"mat-hint"),s._uU(85,"Must be chosen from autocomplete."),s.qZA(),s.YNc(86,Bt,2,0,"mat-error",20),s.qZA()(),s.TgZ(87,"div",12)(88,"label",13),s._uU(89,"House Name "),s.TgZ(90,"span",21),s._uU(91,"(optional)"),s.qZA()(),s.TgZ(92,"mat-form-field",15),s._UZ(93,"input",22),s.qZA()()(),s.TgZ(94,"div",23)(95,"button",24),s._uU(96,"\u2190 Back"),s.qZA(),s.TgZ(97,"button",25),s._uU(98,"Next \u2192"),s.qZA()()(),s.TgZ(99,"mat-step",9)(100,"h4"),s._uU(101,"Time Zones"),s.qZA(),s.TgZ(102,"p"),s._uU(103,' West Philly Porchfest performances are divided into three location-based "time zones." We highly recommend that you stick to the suggested time frame for your location \u2013 give or take a block, and give or take half an hour or so \u2013 to ensure the maximum number of people can enjoy your event. Use the map to determine which time zone your porch is located in. '),s.qZA(),s.TgZ(104,"p"),s._uU(105," Please submit the Start and End Times for your ENTIRE porch event, not the Start and End Times for individual performers. You may choose to use the whole 2 hour window or some other span of time \u2013 ideally, within the suggested limits. "),s.qZA(),s.TgZ(106,"p"),s._uU(107," Please contact [email protected] if you have any questions. If there's a reason why planning your show within these suggested parameters is not workable, let us know and we can sort out the best way to proceed. "),s.qZA(),s.TgZ(108,"form",10)(109,"div",26)(110,"div",27),s._UZ(111,"img",28),s.qZA(),s.TgZ(112,"div",29)(113,"p"),s._uU(114," Zone 1 \u2013 South of Baltimore Ave: 12-2 PM"),s._UZ(115,"br"),s._uU(116," Zone 2 \u2013 North of Baltimore Ave and East of 48th St: 2-4 PM"),s._UZ(117,"br"),s._uU(118," Zone 3 \u2013 North of Baltimore Ave and West of 48th St: 4-6 PM "),s.qZA()()(),s.TgZ(119,"h4"),s._uU(120,"Please select from the following options:"),s.qZA(),s.TgZ(121,"div",30)(122,"div",31),s.NdJ("
1click",function(){return s.CHM(x),s.oxw().selectZone("south")}),s.YNc(123,pn,2,0,"div",32),s.TgZ(124,"div",33),s._uU(125,"1"),s.qZA(),s.TgZ(126,"div",34),s._uU(127,"Zone 1"),s.qZA(),s.TgZ(128,"div",35),s._uU(129,"My porch is located South of Baltimore Ave (or within a block to the North) and my show will be between "),s.TgZ(130,"strong"),s._uU(131,"noon and 2 pm!"),s.qZA()()(),s.TgZ(132,"div",36),s.NdJ("click",function(){return s.CHM(x),s.oxw().selectZone("east")}),s.YNc(133,mn,2,0,"div",32),s.TgZ(134,"div",33),s._uU(135,"2"),s.qZA(),s.TgZ(136,"div",34),s._uU(137,"Zone 2"),s.qZA(),s.TgZ(138,"div",35),s._uU(139,"My porch is located North of Baltimore Ave and East of 48th St (or within a block to the West or South) and my show will be between "),s.TgZ(140,"strong"),s._uU(141,"2 and 4 pm!"),s.qZA()()(),s.TgZ(142,"div",37),s.NdJ("click",function(){return s.CHM(x),s.oxw().selectZone("west")}),s.YNc(143,jn,2,0,"div",32),s.TgZ(144,"div",33),s._uU(145,"3"),s.qZA(),s.TgZ(146,"div",34),s._uU(147,"Zone 3"),s.qZA(),s.TgZ(148,"div",35),s._uU(149,"My porch is located North of Baltimore Ave and West of 48th St (or within a block to the East or South) and my show will be between "),s.TgZ(150,"strong"),s._uU(151,"4 and 6 pm."),s.qZA()()()(),s.TgZ(152,"div",38)(153,"div",12)(154,"label",13),s._uU(155,"Start Time "),s.TgZ(156,"span",14),s._uU(157,"*"),s.qZA()(),s.TgZ(158,"div",39)(159,"mat-form-field",40)(160,"mat-select",41),s.NdJ("selectionChange",function(){return s.CHM(x),s.oxw().changeTime()}),s.TgZ(161,"mat-option",42),s._uU(162,"12"),s.qZA(),s.TgZ(163,"mat-option",43),s._uU(164,"1"),s.qZA(),s.TgZ(165,"mat-option",44),s._uU(166,"2"),s.qZA(),s.TgZ(167,"mat-option",45),s._uU(168,"3"),s.qZA(),s.TgZ(169,"mat-option",46),s._uU(170,"4"),s.qZA(),s.TgZ(171,"mat-option",47),s._uU(172,"5"),s.qZA()()(),s.TgZ(173,"span",48),s._uU(174,":"),s.qZA(),s.TgZ(175,"mat-form-field",40)(176,"mat-select",49),s.NdJ("selectionChange",function(){return s.CHM(x),s.oxw().changeTime()}),s.TgZ(177,"mat-option",50),s._uU(178,"00"),s.qZA(),s.TgZ(179,"mat-option",51),s._uU(180,"15"),s.qZA(),s.TgZ(181,"mat-option",52),s._uU(182,"30"),s.qZA(),s.TgZ(183,"mat-option",53),s._uU(184,"45"),s.qZA()()()()(),s.TgZ(185,"div",12)(186,"label",13),s._uU(187,"End Time "),s.TgZ(188,"span",14),s._uU(189,"*"),s.qZA()(),s.TgZ(190,"div",39)(191,"mat-form-field",40)(192,"mat-select",54),s.NdJ("selectionChange",function(){return s.CHM(x),s.oxw().changeTime()}),s.TgZ(193,"mat-option",42),s._uU(194,"12"),s.qZA(),s.TgZ(195,"mat-option",43),s._uU(196,"1"),s.qZA(),s.TgZ(197,"mat-option",44),s._uU(198,"2"),s.qZA(),s.TgZ(199,"mat-option",45),s._uU(200,"3"),s.qZA(),s.TgZ(201,"mat-option",46),s._uU(202,"4"),s.qZA(),s.TgZ(203,"mat-option",47),s._uU(204,"5"),s.qZA(),s.TgZ(205,"mat-option",55),s._uU(206,"6"),s.qZA()()(),s.TgZ(207,"span",48),s._uU(208,":"),s.qZA(),s.TgZ(209,"mat-form-field",40)(210,"mat-select",56),s.NdJ("selectionChange",function(){return s.CHM(x),s.oxw().changeTime()}),s.TgZ(211,"mat-option",50),s._uU(212,"00"),s.qZA(),s.TgZ(213,"mat-option",51),s._uU(214,"15"),s.qZA(),s.TgZ(215,"mat-option",52),s._uU(216,"30"),s.qZA(),s.TgZ(217,"mat-option",53),s._uU(218,"45"),s.qZA()()()()()(),s.YNc(219,en,2,0,"mat-checkbox",57),s.qZA(),s.TgZ(220,"div",23)(221,"button",24),s._uU(222,"\u2190 Back"),s.qZA(),s.TgZ(223,"button",58),s.NdJ("click",function(){return s.CHM(x),s.oxw().checkTimeValidator()}),s._uU(224,"Next \u2192"),s.qZA()()(),s.TgZ(225,"mat-step",9)(226,"p"),s._uU(227," Please add your artists. You must have at least one artist to proceed. You may add as many artists as you like, but please remove any unnecessary or blank artist entries. Blank artist name and short description fields will prevent you from proceeding. "),s.qZA(),s.TgZ(228,"form",10)(229,"div",59),s.YNc(230,tn,89,21,"div",60),s.qZA(),s.TgZ(231,"button",61),s.NdJ("click",function(){return s.CHM(x),s.oxw().addArtist()}),s._uU(232," \uff0b Add another artist "),s.qZA()(),s.TgZ(233,"div",23)(234,"button",24),s._uU(235,"\u2190 Back"),s.qZA(),s.TgZ(236,"button",25),s._uU(237,"Next \u2192"),s.qZA()()(),s.TgZ(238,"mat-step",9)(239,"form",10)(240,"div",62)(241,"p",63),s._uU(242," I either rent or own the house at the above address or have permission from that house's renter/owner to hold a show on its porch. I agree to speak (or already have spoken) to my neighbors about my involvement in Porchfest. This includes, but is not limited to: giving them advance notice about my porch show, inviting them to the show, setting clear expectations around volume, making sure they're ok with having a group of people around their house while enjoying my show. I understand that ultimately I am responsible for my own porch show. "),s.qZA(),s.TgZ(243,"mat-checkbox",64),s._uU(244," I certify that I rent or own the home at this address and have permission to participate. "),s.qZA()(),s.TgZ(245,"div",62)(246,"mat-checkbox",65),s._uU(247," I agree to be a good neighbor. "),s.qZA()(),s.TgZ(248,"div",62)(249,"p",63),s._uU(250," By participating as a host in West Philadelphia Porchfest, you are registering your own private event, held on your own private property. As with any private event, you are responsible for managing volume levels, relationships with your neighbors, crowd control/audience conduct and any legal issues that may arise. "),s.qZA(),s.TgZ(251,"p",63),s._uU(252," The organizers of West Philadelphia Porchfest agree to share the information for your porch's private event (location, start/end times and performer information) on our website, and to provide promotion and publicity for the West Philadelphia Porchfest event as a whole. The organizers of West Philadelphia Porchfest hold no responsibility or liability for anything that occurs at your show. "),s.qZA(),s.TgZ(253,"mat-checkbox",66),s._uU(254," I agree to the terms and conditions laid out above. "),s.qZA()()(),s.TgZ(255,"div",23)(256,"button",24),s._uU(257,"\u2190 Back"),s.qZA(),s.TgZ(258,"button",58),s.NdJ("
1click",function(){return s.CHM(x),s.oxw().submit()}),s._uU(259,"Submit \u2192"),s.qZA()()()()()}if(2&U){const x=s.oxw();let j,de,Je,St,Ht,kn,Jn;s.xp6(9),s.hij(" We heard you want to host a show at the ",x.festYear," West Philly Porchfest. Awesome! Once you have all the deets, sorted out for your show \u2013 including set times and descriptions for each performer \u2013 click below to fill out the PORCHFEST REGISTRATION FORM. If you did this last year, the questions will look mostly familiar, but we have a new form, with some additional fields that will support some exciting new functionality for our online map! "),s.xp6(50),s.Q6J("stepControl",x.hostDeets),s.xp6(1),s.Q6J("formGroup",x.hostDeets),s.xp6(26),s.Q6J("ngIf",null==(j=x.hostDeets.get("address"))?null:j.hasError("notInPhiladelphia")),s.xp6(11),s.Q6J("disabled",x.hostDeets.invalid),s.xp6(2),s.Q6J("stepControl",x.timeDeets),s.xp6(9),s.Q6J("formGroup",x.timeDeets),s.xp6(14),s.ekj("zone-card-selected","south"===(null==(de=x.timeDeets.get("timeZone"))?null:de.value)),s.xp6(1),s.Q6J("ngIf","south"===(null==(Je=x.timeDeets.get("timeZone"))?null:Je.value)),s.xp6(9),s.ekj("zone-card-selected","east"===(null==(St=x.timeDeets.get("timeZone"))?null:St.value)),s.xp6(1),s.Q6J("ngIf","east"===(null==(Ht=x.timeDeets.get("timeZone"))?null:Ht.value)),s.xp6(9),s.ekj("zone-card-selected","west"===(null==(kn=x.timeDeets.get("timeZone"))?null:kn.value)),s.xp6(1),s.Q6J("ngIf","west"===(null==(Jn=x.timeDeets.get("timeZone"))?null:Jn.value)),s.xp6(76),s.Q6J("ngIf",!x.checkZoneBounds()),s.xp6(4),s.Q6J("disabled",x.timeDeets.invalid),s.xp6(2),s.Q6J("stepControl",x.artistDeets),s.xp6(3),s.Q6J("formGroup",x.artistDeets),s.xp6(2),s.Q6J("ngForOf",x.artists().controls),s.xp6(6),s.Q6J("disabled",x.artistDeets.invalid),s.xp6(2),s.Q6J("stepControl",x.termDeets),s.xp6(1),s.Q6J("formGroup",x.termDeets),s.xp6(19),s.Q6J("disabled",x.termDeets.invalid)}}function bn(U){const N=(U.value||"").trim();return N?/^https?:\/\/.+\.[a-zA-Z]{2,}/.test(N)?null:{invalidUrl:!0}:null}let pi=(()=>{class U{constructor(x,j,de,Je,St,Ht,kn){this.fb=x,this.db=j,this.http=de,this.dialog=Je,this.router=St,this.shared=Ht,this.ngZone=kn,this.GENRES=["Singer/Songwriter","Folk/Country/Roots","Soul/R&B/Funk","Classical","Rock","Metal","Pop","Hip-Hop","Punk","Latin","Poetry/Spoken Word","DJ","Electronic","Improv","Experimental","House/Techno/etc","Psych","Jazz","Disco","European","Asian","Carribean","African","Shoegaze"],this.genreButtonClass=[],this.DESCRIPTORS=["Great for Kids","Great for Dancing","West Philly Local","Original Music","Covers","DJ"],this.descButtonClass=[],this.mapKey=zt.N.firebase.mapKey,this.placesUrl=`https://maps.googleapis.com/maps/api/js?key=${this.mapKey}&libraries=places&callback=initMap`,this.hostDeets=this.fb.group({hostName:this.fb.control("",C.kI.required),houseName:this.fb.control(""),address:this.fb.control("",C.kI.required),coords:this.fb.control("",C.kI.required),email:this.fb.control("",[C.kI.required,C.kI.email])}),this.timeDeets=this.fb.group({timeZone:this.fb.control("",[C.kI.required]),startTimeHour:this.fb.control("",[C.kI.required]),startTimeMin:this.fb.control("",[C.kI.required]),endTimeHour:this.fb.control("",[C.kI.required]),endTimeMin:this.fb.control("",[C.kI.required]),outsideTime:this.fb.control(!1,[C.kI.required])}),this.artistDeets=this.fb.group({artists:this.fb.array([],[C.kI.required,C.kI.minLength(1)])}),this.termDeets=this.fb.group({myHouse:this.fb.control(!1,[C.kI.required,C.kI.requiredTrue]),goodNeighbor:this.fb.control(!1,[C.kI.required,C.kI.requiredTrue]),tnc:this.fb.control(!1,[C.kI.required,C.kI.requiredTrue])}),this.zoneTimes={start:"",end:""},this.startTime="",this.endTime="",this.festYear=this.shared.festYear,this.isOutside=!1,this.mapsInitialized=!1,this.clickHandler=Jn=>{this.isOutside=!!document.getElementById("time-disclaimer")},this.mapApiLoaded=this.http.jsonp(this.placesUrl,"callback").pipe((0,$e.U)(()=>!0),(0,Te.K)(()=>(0,rt.of)(!1)))}ngOnInit(){}ngAfterViewInit(){this.addArtist(),document.addEventListener("click",this.clickHandler)}ngOnDestroy(){document.removeEventListener("click",this.clickHandler)}goToLogin(){this.router.navigate(["pages","login"])}initMaps(){if(this.mapsInitialized)return;this.mapsInitialized=!0;const x=new google.maps.LatLngBounds(new google.maps.LatLng(39.867,-75.28),new google.maps.LatLng(40.138,-75.04)),j=new google.maps.places.Autocomplete(this.searchAddressRef.nativeElement,{bounds:x,str
1ictBounds:!0,fields:["address_components","geometry","formatted_address"],types:["address"]});this.searchAddressRef.nativeElement.addEventListener("input",()=>{this.ngZone.run(()=>{var de;null===(de=this.hostDeets.get("coords"))||void 0===de||de.setValue("")})}),j.addListener("place_changed",()=>{const de=j.getPlace();if(!de.geometry)return;const Je=de.address_components||[],St=Je.find(Jn=>Jn.types.includes("administrative_area_level_1")),Ht=Je.find(Jn=>Jn.types.includes("locality")),kn="PA"===(null==St?void 0:St.short_name)&&"Philadelphia"===(null==Ht?void 0:Ht.long_name);this.ngZone.run(()=>{var Jn,ii,Ii,Cr,rn,qt,xn;if(!kn)return null===(Jn=this.hostDeets.get("address"))||void 0===Jn||Jn.setValue(""),null===(ii=this.hostDeets.get("coords"))||void 0===ii||ii.setValue(""),void(null===(Ii=this.hostDeets.get("address"))||void 0===Ii||Ii.setErrors({notInPhiladelphia:!0}));null===(Cr=this.hostDeets.get("address"))||void 0===Cr||Cr.setValue(null===(rn=de.formatted_address)||void 0===rn?void 0:rn.split(",")[0]),null===(qt=this.hostDeets.get("coords"))||void 0===qt||qt.setValue(null===(xn=de.geometry.location)||void 0===xn?void 0:xn.toString())})})}artists(){return this.artistDeets.get("artists")}get extras(){return this.artistDeets.controls.extraPerformers.value}whatZone(){}checkTimeValidator(){var x,j;this.isOutside||1!=(null===(x=this.timeDeets.get("outsideTime"))||void 0===x?void 0:x.value)?this.isOutside&&0==(null===(j=this.timeDeets.get("outsideTime"))||void 0===j?void 0:j.value)&&this.timeDeets.controls.outsideTime.setValue(!0):this.timeDeets.controls.outsideTime.setValue(!1)}newArtist(){const x=this.shared.generateUid(8);return this.fb.group({artistName:this.fb.control("",[C.kI.required]),artistTime:this.fb.control("0:00"),artistSetTimeHour:this.fb.control("",[C.kI.required]),artistSetTimeMin:this.fb.control("",[C.kI.required]),artistShort:this.fb.control("",[C.kI.required,C.kI.maxLength(45)]),artistLong:this.fb.control("",[C.kI.maxLength(220)]),artistUrl:this.fb.control("",bn),amplified:this.fb.control(null,[C.kI.required]),artistGenres:this.fb.control([]),artistDesc:this.fb.control([]),artistId:x})}addArtist(){return this.addButtonClass(),this.artists().push(this.newArtist())}addButtonClass(){this.genreButtonClass.push([]),this.descButtonClass.push([]),this.GENRES.forEach(()=>{this.genreButtonClass[this.genreButtonClass.length-1].push("unselected-genre")}),this.DESCRIPTORS.forEach(()=>{this.descButtonClass[this.descButtonClass.length-1].push("unselected-genre")})}removeArtist(x){this.artists().removeAt(x),this.genreButtonClass.splice(x,1),this.descButtonClass.splice(x,1)}toggleAmplified(x,j){j.controls.amplified.setValue(x.value)}toggleGenre(x,j,de,Je){var St;let Ht=null===(St=x.get("artistGenres"))||void 0===St?void 0:St.value;if("unselected-genre"==this.genreButtonClass[de][Je]){if(Ht.length>=3)return;this.genreButtonClass[de][Je]="selected-genre",Ht.push(j)}else"selected-genre"==this.genreButtonClass[de][Je]&&(this.genreButtonClass[de][Je]="unselected-genre",Ht.splice(Ht.indexOf(j),1));x.controls.artistGenres.setValue(Ht)}toggleDescription(x,j,de,Je){var St;let Ht=null===(St=x.get("artistDesc"))||void 0===St?void 0:St.value;"unselected-genre"==this.descButtonClass[de][Je]?(this.descButtonClass[de][Je]="selected-genre",Ht.push(j)):"selected-genre"==this.descButtonClass[de][Je]&&(this.descButtonClass[de][Je]="unselected-genre",Ht.splice(Ht.indexOf(j),1)),x.controls.artistDesc.setValue(Ht)}changeTime(){var x,j,de,Je;this.startTime=(null===(x=this.timeDeets.get("startTimeHour"))||void 0===x?void 0:x.value)+":"+(null===(j=this.timeDeets.get("startTimeMin"))||void 0===j?void 0:j.value),this.endTime=(null===(de=this.timeDeets.get("endTimeHour"))||void 0===de?void 0:de.value)+":"+(null===(Je=this.timeDeets.get("endTimeMin"))||void 0===Je?void 0:Je.value)}selectZone(x){var j;null===(j=this.timeDeets.get("timeZone"))||void 0===j||j.setValue(x),this.setZoneTimes({value:x})}setZoneTimes(x){const j=x.value;if("south"==j)this.zoneTimes={start:"12:00",end:"2:30"};else if("east"==j)this.zoneTimes={start:"1:30",end:"4:30"};else if("west"==j)this.zoneTimes={start:"3:30",end:"6:00"};else{if("super"!=j)return;this.zoneTimes={start:"12",end:"6"}}}getZoneTime(x){return this.zoneTimes[x]}checkTimeBounds(x,j,de,Je,St){12==de&&(de=0);let Ht=this.getShowTime();return"hour"==j&&12==Ht.start.hour&&(Ht.start.hour=0),"hour"==j&&12==Ht.end.hour&&(Ht.end.hour=0),!!(St&&"minute"==j&&"lte"==Je&&Ht.start.hour!=St.controls.artistTime.value.split(":")[0]||St&&"minute"==j&&"gte"==Je&&Ht.end.hour!=St.controls.artistTime.value.split(":")[0])||("gt"==Je?+Ht[x][j]>de:"lt"==Je?+Ht[x][j]<de:"gte"==Je?+Ht[x][j]>=de:"lte"==Je?+Ht[x][j]<=de:void 0)}checkZoneBounds(){let x=this.getShowTime(),j="May 31, 2026",Je=`${j} ${x.end.hour}:${x.end.minute} PM`;return ut(`${j} ${x.start.hour}:${x.start.minute} PM`,"LLL").isSameOrAfter(ut(`${j} ${this.zoneTimes.start} PM`,"LLL"))&&ut(Je,"LLL").isSameOrBefore(ut(`${j} ${this.zoneTimes.end} PM`,"LLL"))}getShowTime(){var x,j,de,Je;return{start:{hour:null===(x=this.timeDeets.get("startTimeHour"))||void 0===x?void 0:x.value,minute:null===(j=this.timeDeets.get("startTimeMin"))||void 0===j?void 0:j.value},end:{hour:null===(de=this.timeDeets.get("endTimeHour"))||void 0===de?void 0:de.value,minute:null===(Je=this.timeDeets.get("endTimeMin"))||void 0===Je?void 0:Je.value}}}changeArtistTime(x,j,de){let Je=x.controls.artistTime.value.split(":");Je[j]=de.value,x.controls.artistTime.setValue(Je.join(":"))}submit(){var x=this;return(0,v.Z)(function*(){let j=Object.assign(x.hostDeets.value,x.timeDeets.value,x.artistDeets.value,x.termDeets.value);j.startTime=x.startTime,j.endTime=x.endTime,j.approved=1!=j.outsideTime,yield x.db.addDoc(`fests/${x.shared.festYear}/hosts`,j).catch(Je=>console.error("Could not add host documet: ",Je.message)),x.dialog.createPopup("Your show has been added!").afterClosed().pipe((0,je.q)(1)).subscribe({next:()=>x.router.navigateByUrl("shows")})})()}}return U.\u0275fac=function(x){return new(x||U)(s.Y36(C.qu),s.Y36(q.k),s.Y36(ze.eN),s.Y36(Re.x),s.Y36(h.F0),s.Y36(m.F),s.Y36(s.R0b))},U.\u0275cmp=s.Xpm({type:U,selectors:[["app-host"]],viewQuery:function(x,j){if(1&x&&s.Gf(gt,5),2&x){let de;s.iGM(de=s.CRH())&&(j.searchAddressRef=de.first)}},decls:2,vars:3,consts:[["id","host-form-container",4,"ngIf"],["id","host-form-container"],["linear","true","id","form-stepper"],["stepper",""],[1,"step1-layout"],[1,"step1-main"],["type","button","mat-raised-button","","matStepperNext","","color","primary",1,"get-started-btn",3,"click"],[1,"step1-edit-box"],["type","button","mat-raised-button","","color","accent",3,"click"],[3,"stepControl"],[3,"formGroup"],[1,"row-2"],[1,"field-group"],[1,"field-label"],[1,"req"],[1,"form-field"],["matInput","","formControlName","hostName"],["type","email","matInput","","formControlName","email"],["matInput","","formControlName","address","autocomplete","new-password"],["searchAddress",""],[4,"ngIf"],[1,"optional"],["matInput","","formControlName","houseName"],[1,"btn-row"],["type","button","mat-button","","matStepperPrevious",""],["type","button","mat-raised-button","","color","accent","matStepperNext","",1,"next-btn",3,"disabled"],[1,"zone-layout"],[1,"zone-right"],["id","time-zone-img","src","../../../assets/img/time_zones.jpg","alt","Map showing suggested show times based on location."],[1,"zone-left"],[1,"zone-cards"],[1,"zone-card","z1",3,"click"],["class","zone-check",4,"ngIf"],[1,"zone-dot"],[1,"zone-name"],[1,"zone-desc"],[1,"zone-card","z2",3,"click"],[1,"zone-card","z3",3,"click"],[1,"time-fields-row"],[1,"time-pair"],[1,"input-field-time"],["formControlName","startTimeHour",3,"selectionChange"],["value","12"],["value","1"],["value","2"],["value","3"],["value","4"],["value","5"],[1,"time-sep"],["formControlName","startTimeMin",3,"selectionChange"],["value","00"],["value","15"],["value","30"],["value","45"],["formControlName","endTimeHour",3,"selectionChange"],["value","6"],["formControlName","endTimeMin",3,"selectionChange"],["id","time-disclaimer","formControlName","outsideTime",4,"ngIf"],["type","button","mat-raised-button","","color","accent","matStepperNext","",1,"next-btn",3,"disabled","click"],["formArrayName","artists"],["class","artist-card",3,"formGroupName",4,"ngFor","ngForOf"],["type","button","mat-stroked-button","",1,"add-artist-btn",3,"click"],[1,"term-card"],[1,"term-text"],["id","my-house","formControlName","myHouse"],["id","good-neighbor","formControlName","goodNeighbor"],["id","tnc","formControlName","tnc"],[1,"zone-check"],["
1id","time-disclaimer","formControlName","outsideTime"],[1,"artist-card",3,"formGroupName"],[1,"artist-card-header"],[1,"artist-header-left"],[1,"artist-num-badge"],[1,"artist-card-title"],["type","button","class","remove-artist-btn","mat-stroked-button","",3,"click",4,"ngIf"],[1,"artist-body"],["type","text","matInput","","formControlName","artistName"],["matInput","","placeholder","max 45 chars","formControlName","artistShort"],["formControlName","artistSetTimeHour",3,"selectionChange"],["value","12",4,"ngIf"],["value","1",4,"ngIf"],["value","2",4,"ngIf"],["value","3",4,"ngIf"],["value","4",4,"ngIf"],["value","5",4,"ngIf"],["formControlName","artistSetTimeMin",3,"selectionChange"],["value","00",4,"ngIf"],["value","15",4,"ngIf"],["value","30",4,"ngIf"],["value","45",4,"ngIf"],["matInput","","formControlName","artistLong"],["type","url","matInput","","formControlName","artistUrl","placeholder","https://yoursite.com"],[1,"toggle-group"],["type","button",1,"toggle-btn",3,"click"],[1,"chip-group"],["type","button",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"field-group","field-group-descriptors"],["type","button","mat-stroked-button","",1,"remove-artist-btn",3,"click"],["type","button",3,"ngClass","click"]],template:function(x,j){1&x&&(s.YNc(0,_n,260,25,"div",0),s.ALo(1,"async")),2&x&&s.Q6J("ngIf",s.lcZ(1,1,j.mapApiLoaded))},directives:[tt.O5,Fe.Vq,Fe.C0,te.lW,Fe.Ic,C._Y,C.JL,C.sg,_e.KE,re.Nt,C.Fj,C.JJ,C.u,_e.bx,_e.TO,Fe.fd,we.gD,be.ey,me.oG,C.CE,tt.sg,C.x0,tt.mk],pipes:[tt.Ov],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block;width:100%}#host-form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:80%;margin:28px auto 0}#form-stepper[_ngcontent-%COMP%]{background-color:#fff0}.step1-layout[_ngcontent-%COMP%]{display:flex;gap:28px;align-items:flex-start;margin-bottom:8px}.step1-main[_ngcontent-%COMP%]{flex:1;min-width:0}.step1-edit-box[_ngcontent-%COMP%]{flex:0 0 280px;border:1px solid #e91e63;background:rgba(233,30,99,.05);border-radius:8px;padding:16px 20px}.step1-edit-box[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.95rem;color:#555;line-height:1.5}@media (max-width: 768px){.step1-layout[_ngcontent-%COMP%]{flex-direction:column}.step1-edit-box[_ngcontent-%COMP%]{flex:none;width:100%;box-sizing:border-box}}.get-started-btn[_ngcontent-%COMP%]{font-size:1.1rem!important;padding:8px 28px!important;height:auto!important}.field-group[_ngcontent-%COMP%]{margin-bottom:20px}.field-label[_ngcontent-%COMP%]{display:block;font-size:.85rem;font-weight:600;color:#444;margin-bottom:4px}.req[_ngcontent-%COMP%]{color:#e91e63;margin-left:2px}.optional[_ngcontent-%COMP%]{font-weight:400;color:#999;font-size:.78rem}.form-field[_ngcontent-%COMP%]{width:100%}.row-2[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;grid-gap:0 24px;gap:0 24px;align-items:start}@media (max-width: 640px){.row-2[_ngcontent-%COMP%]{grid-template-columns:1fr;gap:0}}.time-fields-row[_ngcontent-%COMP%]{display:flex;gap:32px;align-items:start}.time-pair[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px}.input-field-time[_ngcontent-%COMP%]{width:72px;flex-shrink:0}.time-sep[_ngcontent-%COMP%]{font-size:1.1rem;color:#aaa;flex-shrink:0;margin-bottom:20px}.btn-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-top:32px;padding-top:20px;border-top:1px solid #eee}.next-btn[_ngcontent-%COMP%]:not([disabled]){background-color:#e91e63!important;color:#fff!important;box-shadow:0 2px 8px #e91e6359!important;transition:box-shadow .2s,background-color .2s}.next-btn[disabled][_ngcontent-%COMP%]{background-color:#e0e0e0!important;color:#aaa!important;box-shadow:none!important;cursor:not-allowed}.zone-layout[_ngcontent-%COMP%]{display:flex;gap:32px;align-items:center;margin-bottom:16px}.zone-left[_ngcontent-%COMP%]{flex:1;min-width:0}.zone-right[_ngcontent-%COMP%]{flex:0 0 auto}#time-zone-img[_ngcontent-%COMP%]{width:280px;display:block}@media (max-width: 768px){.zone-layout[_ngcontent-%COMP%]{flex-direction:column}#time-zone-img[_ngcontent-%COMP%]{width:100%}}.zone-cards[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:12px;gap:12px;margin-bottom:24px}@media (max-width: 640px){.zone-cards[_ngcontent-%COMP%]{grid-template-columns:1fr}}.zone-card[_ngcontent-%COMP%]{border:2px solid #ddd;border-radius:10px;padding:16px 14px 14px;cursor:pointer;text-align:center;transition:border-color .15s,background .15s;position:relative;-webkit-user-select:none;user-select:none}.zone-card[_ngcontent-%COMP%]:hover{border-color:#e91e63;background:#fdf5f8}.zone-card-selected[_ngcontent-%COMP%]{border-color:#e91e63!important;background:#fff0f5!important}
1.zone-check[_ngcontent-%COMP%]{position:absolute;top:8px;right:10px;width:18px;height:18px;background:#e91e63;border-radius:50%;color:#fff;font-size:10px;display:flex;align-items:center;justify-content:center;font-weight:700}.zone-dot[_ngcontent-%COMP%]{width:34px;height:34px;border-radius:50%;margin:0 auto 8px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px;color:#fff}.z1[_ngcontent-%COMP%] .zone-dot[_ngcontent-%COMP%]{background:#e91e8c}.z2[_ngcontent-%COMP%] .zone-dot[_ngcontent-%COMP%]{background:#cc8800}.z3[_ngcontent-%COMP%] .zone-dot[_ngcontent-%COMP%]{background:#43a047}.zone-name[_ngcontent-%COMP%]{font-size:.85rem;font-weight:700;color:#333;margin-bottom:6px}.zone-card-selected[_ngcontent-%COMP%] .zone-name[_ngcontent-%COMP%]{color:#e91e63}.zone-desc[_ngcontent-%COMP%]{font-size:.78rem;color:#666;line-height:1.45}.artist-card[_ngcontent-%COMP%]{border:1px solid #e0e0e0;border-radius:10px;margin-bottom:16px;overflow:hidden}.artist-card-header[_ngcontent-%COMP%]{background:#fafafa;border-bottom:1px solid #eee;padding:12px 16px;display:flex;align-items:center;justify-content:space-between}.artist-header-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.artist-num-badge[_ngcontent-%COMP%]{width:26px;height:26px;border-radius:50%;background:#e91e63;color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}.artist-card-title[_ngcontent-%COMP%]{font-size:.9rem;font-weight:700;color:#333}.remove-artist-btn[_ngcontent-%COMP%]{background-color:#fff!important;color:#e91e63!important;border-color:#e91e63!important;font-size:.8rem!important}.artist-body[_ngcontent-%COMP%]{padding:20px 20px 16px}.toggle-group[_ngcontent-%COMP%]{display:inline-flex;border:1.5px solid #ccc;border-radius:6px;overflow:hidden;margin-top:2px}.toggle-btn[_ngcontent-%COMP%]{padding:8px 24px;font-size:.85rem;font-weight:600;cursor:pointer;border:none;background:#fff;color:#666;font-family:inherit;transition:background .1s,color .1s;line-height:1}.toggle-btn[_ngcontent-%COMP%]:first-child{border-right:1.5px solid #ccc}.toggle-btn.toggle-active[_ngcontent-%COMP%]{background:#e91e63;color:#fff}.chip-group[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}.unselected-genre[_ngcontent-%COMP%]{padding:6px 14px;border-radius:20px;font-size:.78rem;font-weight:500;border:1.5px solid #ddd;background:#fff;color:#555;cursor:pointer;transition:border-color .1s,color .1s;line-height:1;box-shadow:none!important;min-width:0!important;height:auto!important}.unselected-genre[_ngcontent-%COMP%]:hover{border-color:#e91e63;color:#e91e63}.selected-genre[_ngcontent-%COMP%]{padding:6px 14px;border-radius:20px;font-size:.78rem;font-weight:600;border:1.5px solid #e91e63;background:#fff0f5;color:#e91e63;cursor:pointer;box-shadow:none!important;min-width:0!important;height:auto!important;line-height:1}.field-group-descriptors[_ngcontent-%COMP%]{margin-top:8px;margin-bottom:8px;padding-bottom:4px}.add-artist-btn[_ngcontent-%COMP%]{width:100%;padding:13px;border:2px dashed #e91e63!important;border-radius:10px!important;background:#fff!important;color:#e91e63!important;font-size:.95rem!important;font-weight:600!important;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px;margin-bottom:4px;height:auto!important;box-shadow:none!important;transition:background .15s}.add-artist-btn[_ngcontent-%COMP%]:hover{background:#fff0f5!important}.term-card[_ngcontent-%COMP%]{border:1px solid #e0e0e0;border-radius:8px;padding:18px 20px;margin-bottom:14px}[_nghost-%COMP%] mat-checkbox .mat-mdc-checkbox-label, [_nghost-%COMP%] mat-checkbox label{white-space:normal;word-break:break-word}[_nghost-%COMP%] mat-checkbox .mdc-form-field{align-items:flex-start;white-space:normal}.term-text[_ngcontent-%COMP%]{font-size:.85rem;color:#555;line-height:1.6;margin-bottom:12px;display:block}']}),U})();var si=b(6240),vi=b(9224),Vn=b(3251),Rn=b(5245);function Ve(U,N){if(1&U){const x=s.EpF();s.TgZ(0,"mat-card",3)(1,"mat-tab-group")(2,"mat-tab",4),s._UZ(3,"br"),s.TgZ(4,"mat-form-field",5)(5,"mat-label"),s._uU(6,"Email"),s.qZA(),s.TgZ(7,"input",6),s.NdJ("ngModelChange",function(de){return s.CHM(x),s.oxw().email=de}),s.qZA()(),s.TgZ(8,"mat-form-field",5)(9,"mat-label"),s._uU(10,"Password"),s.qZA(),s.TgZ(11,"input",7),s.NdJ("ngModelChange",function(de){return s.CHM(x),s.oxw().password=de}
1),s.qZA(),s.TgZ(12,"mat-icon",8),s.NdJ("click",function(){s.CHM(x);const de=s.oxw();return de.hidePassword=!de.hidePassword}),s._uU(13),s.qZA()(),s.TgZ(14,"button",9),s.NdJ("click",function(){return s.CHM(x),s.oxw().login()}),s._uU(15,"LOG IN"),s.qZA()(),s.TgZ(16,"mat-tab",10),s._UZ(17,"br"),s.TgZ(18,"mat-form-field",5)(19,"mat-label"),s._uU(20,"Email"),s.qZA(),s.TgZ(21,"input",6),s.NdJ("ngModelChange",function(de){return s.CHM(x),s.oxw().email=de}),s.qZA(),s.TgZ(22,"mat-hint"),s._uU(23," Please register with the same email you used to list your show. "),s.qZA()(),s.TgZ(24,"mat-form-field",5)(25,"mat-label"),s._uU(26,"Password"),s.qZA(),s.TgZ(27,"input",11),s.NdJ("ngModelChange",function(de){return s.CHM(x),s.oxw().password=de})("input",function(){return s.CHM(x),s.oxw().checkPassword()}),s.qZA(),s.TgZ(28,"mat-icon",8),s.NdJ("click",function(){s.CHM(x);const de=s.oxw();return de.hidePassword=!de.hidePassword}),s._uU(29),s.qZA(),s.TgZ(30,"mat-hint"),s._uU(31,"Password must contain: "),s.TgZ(32,"ul")(33,"li"),s._uU(34,"between 8 and 30 characters"),s.qZA(),s.TgZ(35,"li"),s._uU(36,"at least one number"),s.qZA(),s.TgZ(37,"li"),s._uU(38,"at least one uppercase letter"),s.qZA(),s.TgZ(39,"li"),s._uU(40,"at least one lowercase letter"),s.qZA(),s.TgZ(41,"li"),s._uU(42,"at least one special character"),s.qZA()()()(),s.TgZ(43,"button",9),s.NdJ("click",function(){return s.CHM(x),s.oxw().register()}),s._uU(44,"REGISTER"),s.qZA()(),s.TgZ(45,"mat-tab",12),s._UZ(46,"br"),s.TgZ(47,"mat-form-field",5)(48,"mat-label"),s._uU(49,"Email"),s.qZA(),s.TgZ(50,"input",6),s.NdJ("ngModelChange",function(de){return s.CHM(x),s.oxw().email=de}),s.qZA()(),s.TgZ(51,"button",9),s.NdJ("click",function(){return s.CHM(x),s.oxw().resetPassword()}),s._uU(52,"RESET PASSWORD"),s.qZA()()()()}if(2&U){const x=s.oxw();s.xp6(7),s.Q6J("ngModel",x.email),s.xp6(4),s.Q6J("type",x.hidePassword?"password":"text")("ngModel",x.password),s.xp6(2),s.Oqu(x.hidePassword?"visibility_off":"visibility"),s.xp6(1),s.Q6J("disabled",!x.email||x.email.length<1||!x.email.includes("@")||!x.password||x.password.length<1),s.xp6(7),s.Q6J("ngModel",x.email),s.xp6(6),s.Q6J("type",x.hidePassword?"password":"text")("ngModel",x.password),s.xp6(2),s.Oqu(x.hidePassword?"visibility_off":"visibility"),s.xp6(14),s.Q6J("disabled",!x.pwIsValid||!x.email||x.email.length<1||!x.email.includes("@")),s.xp6(7),s.Q6J("ngModel",x.email),s.xp6(1),s.Q6J("disabled",!x.email||x.email.length<1||!x.email.includes("@"))}}function Pt(U,N){if(1&U){const x=s.EpF();s.TgZ(0,"mat-card",13)(1,"p"),s._uU(2),s.qZA(),s.TgZ(3,"p")(4,"button",14),s.NdJ("click",function(){return s.CHM(x),s.oxw().resetForm()}),s._uU(5,"OK"),s.qZA()()()}if(2&U){const x=s.oxw();s.xp6(2),s.Oqu(x.errorMessage)}}let $=(()=>{class U{constructor(x,j,de){this.fbAuth=x,this.router=j,this.dialog=de,this.email="",this.password="",this.hidePassword=!0,this.pwIsValid=!1,this.isError=!1,this.errorMessage=""}ngOnInit(){this.fbAuth.uid&&this.router.navigate(["pages","show-mgmt"])}checkPassword(){this.pwIsValid=!!this.password.match(/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[\\\.\+\*\?\[\]\^\$\(\)\{\}\=\!\<\>\|\:\-_%#@&,/`"\'~;]).{8,30}$/)}login(){this.fbAuth.login(this.email,this.password).then(x=>{this.router.navigate(["pages","show-mgmt"])}).catch(x=>{this.errorMessage=x.message.includes("user-not-found")?"User not found! Please register for access.":x.message.includes("wrong-password")||x.message.includes("invalid-credential")?"Invalid password!":"Unknown error. Please contact administrator.",this.dialog.createPopup(`Could not log in:\n\n${this.errorMessage}`).afterClosed().pipe((0,je.q)(1)).subscribe({next:()=>{this.email="",this.password=""}})})}resetPassword(){this.fbAuth.resetPassword(this.email).then(()=>this.resetForm()).catch(x=>{this.dialog.createPopup("Could not reset password. Please contact the site administrator.")})}register(){this.fbAuth.register(this.email,this.password).then(x=>{this.router.navigate(["pages","show-mgmt"])}).catch(x=>{this.errorMessage=x.message.includes("email-already-in-use")?"Email already exists! Please log in with existing credentials or reset your password if needed.":"Unknown error. Please contact the site adminstrator.",this.dialog.createPopup(`Could not register: ${this.errorMessage}`).afterClosed().pipe((0,je.q)(1)).subscribe({next:()=>{this.email="",this.password=""}})})}resetForm(){this.email="",this.password="",this.hidePassword=!0,this.pwIsValid=!1,this.isError=!1,this.errorMessage=""}}return U.\u0275fac=function(x){return new(x||U)(s.Y36(si.e),s.Y36(h.F0),s.Y36(Re.x))},U.\u0275cmp=s.Xpm({type:U,selectors:[["app-host-login"]],decls:5,vars:2,consts:[["id","host-login-container"],["id","account-card",4,"ngIf"],["id","error-card",4,"ngIf"],["id","account-card"],["label","LOGIN",1,"login-tab"],["appearance","fill",1,"login-input"],["name","email","type","email","matInput","","placeholder","[email protected]",3,"ngModel","ngModelChange"],["name","password","maxlength","30","matInput","",3,"type","ngModel","ngModelChange"],["matSuffix","",3,"click"],["type","button","mat-raised-button","","color","primary",1,"login-button",3,"disabled","click"],["label","REGIST
1ER",1,"login-tab"],["name","password","maxlength","30","matInput","",3,"type","ngModel","ngModelChange","input"],["label","PASSWORD RESET",1,"login-tab"],["id","error-card"],["type","button","mat-raised-button","","color","primary",3,"click"]],template:function(x,j){1&x&&(s.TgZ(0,"div",0)(1,"h2"),s._uU(2,"Manage Your Show"),s.qZA(),s.YNc(3,Ve,53,12,"mat-card",1),s.YNc(4,Pt,6,1,"mat-card",2),s.qZA()),2&x&&(s.xp6(3),s.Q6J("ngIf",!j.isError),s.xp6(1),s.Q6J("ngIf",j.isError))},directives:[tt.O5,vi.a8,Vn.SP,Vn.uX,_e.KE,_e.hX,re.Nt,C.Fj,C.JJ,C.On,C.nD,Rn.Hw,_e.R9,te.lW,_e.bx],styles:["[_nghost-%COMP%]{display:block;width:100%}#host-login-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:80%;margin:28px auto 0}#account-card[_ngcontent-%COMP%], #error-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;align-self:center;justify-content:center;width:fit-content}.login-tab[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}.login-input[_ngcontent-%COMP%]{width:96%;margin:2%;display:block}.login-button[_ngcontent-%COMP%]{float:right;margin:2%}"]}),U})();var ue=b(727),K=b(1135),ae=b(5),Me=b(9814);const nt=["searchAddress"];function Tt(U,N){if(1&U){const x=s.EpF();s.TgZ(0,"button",3),s.NdJ("click",function(){return s.CHM(x),s.oxw().createCsv()}),s._uU(1,"Download Spreadsheet"),s.qZA()}if(2&U){const x=s.oxw();s.Q6J("disabled",!x.showList)}}function Zt(U,N){if(1&U&&(s.TgZ(0,"mat-option",38),s._uU(1),s.qZA()),2&U){const x=N.$implicit;s.Q6J("value",x),s.xp6(1),s.Oqu(x.address)}}function Yt(U,N){if(1&U){const x=s.EpF();s.TgZ(0,"mat-form-field",8)(1,"mat-label"),s._uU(2,"Choose a Show:"),s.qZA(),s.TgZ(3,"mat-select",36),s.NdJ("ngModelChange",function(de){return s.CHM(x),s.oxw().selectedShow=de})("selectionChange",function(){s.CHM(x);const de=s.oxw();return de.addShowInfo(de.selectedShow)}),s.YNc(4,Zt,2,2,"mat-option",37),s.qZA()()}if(2&U){const x=s.oxw();s.xp6(3),s.Q6J("ngModel",x.selectedShow),s.xp6(1),s.Q6J("ngForOf",x.showList)}}function Pn(U,N){1&U&&s._UZ(0,"hr")}function Cn(U,N){if(1&U){const x=s.EpF();s.TgZ(0,"button",62),s.NdJ("click",function(){s.CHM(x);const de=s.oxw().index;return s.oxw().removeArtist(de)}),s._uU(1,"Remove"),s.qZA()}}function Nn(U,N){1&U&&(s.TgZ(0,"mat-option",16),s._uU(1,"12"),s.qZA())}function Si(U,N){1&U&&(s.TgZ(0,"mat-option",17),s._uU(1,"1"),s.qZA())}function ni(U,N){1&U&&(s.TgZ(0,"mat-option",18),s._uU(1,"2"),s.qZA())}function Qn(U,N){1&U&&(s.TgZ(0,"mat-option",19),s._uU(1,"3"),s.qZA())}function lt(U,N){1&U&&(s.TgZ(0,"mat-option",20),s._uU(1,"4"),s.qZA())}function Qt(U,N){1&U&&(s.TgZ(0,"mat-option",21),s._uU(1,"5"),s.qZA())}function Se(U,N){1&U&&(s.TgZ(0,"mat-option",23),s._uU(1,"00"),s.qZA())}function Ke(U,N){1&U&&(s.TgZ(0,"mat-option",24),s._uU(1,"15"),s.qZA())}function Ee(U,N){1&U&&(s.TgZ(0,"mat-option",25),s._uU(1,"30"),s.qZA())}function Be(U,N){1&U&&(s.TgZ(0,"mat-option",26),s._uU(1,"45"),s.qZA())}function at(U,N){if(1&U){const x=s.EpF();
1s.TgZ(0,"button",63),s.NdJ("click",function(){const de=s.CHM(x),Je=de.$implicit,St=de.index,Ht=s.oxw(),kn=Ht.$implicit,Jn=Ht.index;return s.oxw().toggleGenre(kn,Je,Jn,St)}),s._uU(1),s.qZA()}if(2&U){const x=N.$implicit,j=N.index,de=s.oxw().index,Je=s.oxw();s.Q6J("ngClass",Je.genreButtonClass[de][j]),s.xp6(1),s.Oqu(x)}}function Ot(U,N){if(1&U){const x=s.EpF();s.TgZ(0,"button",63),s.NdJ("click",function(){const de=s.CHM(x),Je=de.$implicit,St=de.index,Ht=s.oxw(),kn=Ht.$implicit,Jn=Ht.index;return s.oxw().toggleDescription(kn,Je,Jn,St)}),s._uU(1),s.qZA()}if(2&U){const x=N.$implicit,j=N.index,de=s.oxw().index,Je=s.oxw();s.Q6J("ngClass",Je.descButtonClass[de][j]),s.xp6(1),s.Oqu(x)}}function mt(U,N){if(1&U){const x=s.EpF();s.TgZ(0,"div")(1,"div",39)(2,"mat-form-field",40),s._UZ(3,"input",41),s.qZA(),s.TgZ(4,"mat-form-field",40),s._UZ(5,"input",42),s.qZA(),s.YNc(6,Cn,2,0,"button",43),s.TgZ(7,"mat-form-field",40),s._UZ(8,"textarea",44),s.qZA(),s.TgZ(9,"mat-form-field",40),s._UZ(10,"textarea",45),s.qZA(),s.TgZ(11,"mat-form-field",14)(12,"mat-label"),s._uU(13,"Set time"),s.qZA(),s.TgZ(14,"mat-select",46),s.NdJ("selectionChange",function(de){const St=s.CHM(x).$implicit;return s.oxw().changeArtistTime(St,0,de)}),s.YNc(15,Nn,2,0,"mat-option",47),s.YNc(16,Si,2,0,"mat-option",48),s.YNc(17,ni,2,0,"mat-option",49),s.YNc(18,Qn,2,0,"mat-option",50),s.YNc(19,lt,2,0,"mat-option",51),s.YNc(20,Qt,2,0,"mat-option",52),s.qZA()(),s._uU(21," : "),s.TgZ(22,"mat-form-field",14)(23,"mat-select",53),s.NdJ("selectionChange",function(de){const St=s.CHM(x).$implicit;return s.oxw().changeArtistTime(St,1,de)}),s.YNc(24,Se,2,0,"mat-option",54),s.YNc(25,Ke,2,0,"mat-option",55),s.YNc(26,Ee,2,0,"mat-option",56),s.YNc(27,Be,2,0,"mat-option",57),s.qZA()(),s._UZ(28,"br"),s.TgZ(29,"p"),s._uU(30,"Amplified?"),s.qZA(),s.TgZ(31,"mat-radio-group",58),s.NdJ("change",function(de){const St=s.CHM(x).$implicit;return s.oxw().toggleAmplified(de,St)}),s.TgZ(32,"mat-radio-button",59),s._uU(33,"Yes"),s.qZA(),s._UZ(34,"br"),s.TgZ(35,"mat-radio-button",60),s._uU(36,"No"),s.qZA()(),s.TgZ(37,"p"),s._uU(38,"Genres (choose up to three)"),s.qZA(),s.YNc(39,at,2,2,"button",61),s.TgZ(40,"p"),s._uU(41,"Descriptors"),s.qZA(),s.YNc(42,Ot,2,2,"button",61),s.qZA(),s._UZ(43,"hr"),s.qZA()}if(2&U){const x=N.$implicit,j=N.index,de=s.oxw();s.xp6(1),s.Q6J("formGroupName",j),s.xp6(5),s.Q6J("ngIf",de.artists().length>1),s.xp6(8),s.Q6J("value",de.getArtistTime(x,0)),s.xp6(1),s.Q6J("ngIf",de.checkTimeBounds("start","hour",12,"lte",x)&&de.checkTimeBounds("end","hour",12,"gte",x)),s.xp6(1),s.Q6J("ngIf",de.checkTimeBounds("start","hour",1,"lte",x)&&de.checkTimeBounds("end","hour",1,"gte",x)),s.xp6(1),s.Q6J("ngIf",de.checkTimeBounds("start","hour",2,"lte",x)&&de.checkTimeBounds("end","hour",2,"gte",x)),s.xp6(1),s.Q6J("ngIf",de.checkTimeBounds("start","hour",3,"lte",x)&&de.checkTimeBounds("end","hour",3,"gte",x)),s.xp6(1),s.Q6J("ngIf",de.checkTimeBounds("start","hour",4,"lte",x)&&de.checkTimeBounds("end","hour",4,"gte",x)),s.xp6(1),s.Q6J("ngIf",de.checkTimeBounds("start","hour",5,"lte",x)&&de.checkTimeBounds("end","hour",5,"gte",x)),s.xp6(3),s.Q6J("value",de.getArtistTime(x,1)),s.xp6(1),s.Q6J("ngIf",de.checkTimeBounds("start","minute",0,"lte",x)&&de.checkTimeBounds("end","minute",0,"gte",x)),s.xp6(1),s.Q6J("ngIf",de.checkTimeBounds("start","minute",15,"lte",x)&&de.checkTimeBounds("end","minute",15,"gte",x)),s.xp6(1),s.Q6J("ngIf",de.checkTimeBounds("start","minute",30,"lte",x)&&de.checkTimeBounds("end","minute",30,"gte",x)),s.xp6(1),s.Q6J("ngIf",de.checkTimeBounds("start","minute",45,"lte",x)&&de.checkTimeBounds("end","minute",45,"gte",x)),s.xp6(12),s.Q6J("ngForOf",de.GENRES),s.xp6(3),s.Q6J("ngForOf",de.DESCRIPTORS)}}let yn=(()=>{class U{constructor(x,j,de,Je,St,Ht,kn,Jn,ii){this.fb=x,this.db=j,this.auth=de,this.router=Je,this.route=St,this.dialog=Ht,this.http=kn,this.fileService=Jn,this.shared=ii,this.GENRES=["Singer/Songwriter","Folk/Country/Roots","Soul/R&B/Funk","Classical","Rock","Metal","Pop","Hip-Hop","Punk","Latin","Poetry/Spoken Word","DJ","Electronic","Improv","Experimental","House/Techno/etc","Psych","Jazz","Disco","European","Asian","Carribean","African","Shoegaze"],this.genreButtonClass=[],this.DESCRIPTORS=["Great for Kids","Great for Dancing","West Philly Local","Original Music","Covers","DJ"],this.descButtonClass=[],this.mapKey=zt.N.firebase.mapKey,this.placesUrl=`https://maps.googleapis.com/ma
1ps/api/js?key=${this.mapKey}&libraries=places&callback=initMap`,this.mapSub=new ue.w0,this.deets=this.fb.group({hostName:this.fb.control("",C.kI.required),houseName:this.fb.control(""),address:this.fb.control("",C.kI.required),coords:this.fb.control("",C.kI.required),email:this.fb.control("",[C.kI.required,C.kI.email]),startTimeHour:this.fb.control("",[C.kI.required]),startTimeMin:this.fb.control("",[C.kI.required]),endTimeHour:this.fb.control("",[C.kI.required]),endTimeMin:this.fb.control("",[C.kI.required]),artists:this.fb.array([],[C.kI.required,C.kI.minLength(1)]),myHouse:this.fb.control(!1,[C.kI.required,C.kI.requiredTrue]),goodNeighbor:this.fb.control(!1,[C.kI.required,C.kI.requiredTrue]),tnc:this.fb.control(!1,[C.kI.required,C.kI.requiredTrue])}),this.zoneTimes={start:"",end:""},this.startTime="",this.endTime="",this.isOutside=!1,this.adminUser=new K.X(!1),this.adminSub=new ue.w0,this.mapApiLoaded=this.http.jsonp(this.placesUrl,"callback").pipe((0,$e.U)(()=>!0),(0,Te.K)(()=>(0,rt.of)(!1))),this.mapSub=this.mapApiLoaded.subscribe({next:Ii=>{Ii&&this.initMaps()}})}ngOnInit(){this.db.getCollection("auth").pipe((0,je.q)(1)).subscribe({next:x=>{x.map(de=>de.email).includes(this.auth.usrEmail)?(this.adminUser.next(!0),this.db.getCollection(`fests/${this.shared.festYear}/hosts`).pipe((0,je.q)(1)).subscribe({next:de=>{this.showList=de;const Je=this.route.snapshot.queryParamMap.get("showId");if(Je){const St=de.find(Ht=>Ht.key===Je);St&&(this.selectedShow=St,this.addShowInfo(St))}}})):this.db.getCollection(`fests/${this.shared.festYear}/hosts`,de=>de.where("email","==",this.auth.usrEmail)).pipe((0,je.q)(1)).subscribe({next:de=>{de.length>0?(this.selectedShow=de[0],this.addShowInfo(de[0])):this.dialog.createPopup("You have not created a show using this email address. Please return to the host page and register a show.").afterClosed().pipe((0,je.q)(1)).subscribe({next:()=>this.logout()})}})}})}ngOnDestroy(){this.mapSub.unsubscribe()}initMaps(){let x=new google.maps.places.Autocomplete(this.searchAddressRef.nativeElement,{componentRestrictions:{country:["us"]},fields:["address_components","geometry","formatted_address"],types:["address"]});x.addListener("place_changed",()=>{var j,de,Je,St;let Ht=x.getPlace();null==Ht.geometry||(null===(j=this.deets.get("address"))||void 0===j||j.setValue(null===(de=Ht.formatted_address)||void 0===de?void 0:de.split(",")[0]),null===(Je=this.deets.get("coords"))||void 0===Je||Je.setValue(null===(St=Ht.geometry.location)||void 0===St?void 0:St.toString()))})}createCsv(){let x=[],j=[],de=[],Je=[];this.showList.forEach((Ht,kn)=>{let Jn={};Object.keys(Ht).forEach(ii=>{Jn[ii]=Ht[ii],de.includes(ii)||de.push(ii)}
1),delete Jn.artists,x[kn]=Jn,Ht.artists.forEach((ii,Ii)=>{Object.entries(ii).forEach(([Cr,rn])=>{let qt=Cr.concat(Ii.toString());x[kn][qt]=rn,Je.includes(qt)||Je.push(qt)})})}),j=de.concat(Je);let St=ut().format("YYYY[-]MM[-]DD");this.fileService.exportToCsv(x,`host_list_${St}`,j)}artists(){return this.deets.get("artists")}get extras(){return this.deets.controls.extraPerformers.value}newArtist(){const x=this.shared.generateUid(8);return this.fb.group({artistName:this.fb.control("",[C.kI.required]),artistTime:this.fb.control("0:00"),artistShort:this.fb.control("",[C.kI.required,C.kI.maxLength(45)]),artistLong:this.fb.control("",[C.kI.maxLength(220)]),artistUrl:this.fb.control(""),amplified:this.fb.control(null,[C.kI.required]),artistGenres:this.fb.control([]),artistDesc:this.fb.control([]),artistId:x})}addArtist(){return this.addButtonClass(),this.artists().push(this.newArtist())}addButtonClass(){this.genreButtonClass.push([]),this.descButtonClass.push([]),this.GENRES.forEach(()=>{this.genreButtonClass[this.genreButtonClass.length-1].push("unselected-genre")}),this.DESCRIPTORS.forEach(()=>{this.descButtonClass[this.descButtonClass.length-1].push("unselected-genre")})}toggleAmplified(x,j){j.controls.amplified.setValue(x.value)}toggleGenre(x,j,de,Je){var St;let Ht=null===(St=x.get("artistGenres"))||void 0===St?void 0:St.value;if("unselected-genre"==this.genreButtonClass[de][Je]){if(Ht.length>=3)return;this.genreButtonClass[de][Je]="selected-genre",Ht.push(j)}else"selected-genre"==this.genreButtonClass[de][Je]&&(this.genreButtonClass[de][Je]="unselected-genre",Ht.splice(Ht.indexOf(j),1));x.controls.artistGenres.setValue(Ht)}toggleDescription(x,j,de,Je){var St;let Ht=null===(St=x.get("artistDesc"))||void 0===St?void 0:St.value;"unselected-genre"==this.descButtonClass[de][Je]?(this.descButtonClass[de][Je]="selected-genre",Ht.push(j)):"selected-genre"==this.descButtonClass[de][Je]&&(this.descButtonClass[de][Je]="unselected-genre",Ht.splice(Ht.indexOf(j),1)),x.controls.artistDesc.setValue(Ht)}removeArtist(x){this.artists().removeAt(x),this.genreButtonClass.splice(x,1),this.descButtonClass.splice(x,1)}setZoneTimes(x){const j=x.value;if("south"==j)this.zoneTimes={start:"12:00",end:"2:30"};else if("east"==j)this.zoneTimes={start:"1:30",end:"4:30"};else if("west"==j)this.zoneTimes={start:"3:30",end:"6:00"};else{if("super"!=j)return;this.zoneTimes={start:"12",end:"6"}}}getZoneTime(x){return this.zoneTimes[x]}checkTimeBounds(x,j,de,Je,St){12==de&&(de=0);let Ht=this.getShowTime();return"hour"==j&&12==Ht.start.hour&&(Ht.start.hour=0),"hour"==j&&12==Ht.end.hour&&(Ht.end.hour=0),!!(St&&"minute"==j&&"lte"==Je&&Ht.start.hour!=St.controls.artistTime.value.split(":")[0]||St&&"minute"==j&&"gte"==Je&&Ht.end.hour!=St.controls.artistTime.value.split(":")[0])||("gt"==Je?+Ht[x][j]>de:"lt"==Je?+Ht[x][j]<de:"gte"==Je?+Ht[x][j]>=de:"lte"==Je?+Ht[x][j]<=de:void 0)}checkZoneBounds(){let x=this.getShowTime(),j="May 31, 2026",Je=`${j} ${x.end.hour}:${x.end.minute} PM`;return ut(`${j} ${x.start.hour}:${x.start.minute} PM`,"LLL").isSameOrAfter(ut(`${j} ${this.zoneTimes.start} PM`,"LLL"))&&ut(Je,"LLL").isSameOrBefore(ut(`${j} ${this.zoneTimes.end} PM`,"LLL"))}getShowTime(){var x,j,de,Je;return{start:{hour:null===(x=this.deets.get("startTimeHour"))||void 0===x?void 0:x.value,minute:null===(j=this.deets.get("startTimeMin"))||void 0===j?void 0:j.value},end:{hour:null===(de=this.deets.get("endTimeHour"))||void 0===de?void 0:de.value,minute:null===(Je=this.deets.get("endTimeMin"))||void 0===Je?void 0:Je.value}}}changeTime(){var x,j,de,Je;this.startTime=(null===(x=this.deets.get("startTimeHour"))||void 0===x?void 0:x.value)+":"+(null===(j=this.deets.get("startTimeMin"))||void 0===j?void 0:j.value),this.endTime=(null===(de=this.deets.get("endTimeHour"))||void 0===de?void 0:de.value)+":"+(null===(Je=this.deets.get("endTimeMin"))||void 0===Je?void 0:Je.value)}changeArtistTime(x,j,de){x.controls.artistTime||x.addControl("artistTime",this.fb.control("0:00"));let Je=x.controls.artistTime.value.split(":");Je[j]=de.value,x.controls.artistTime.setValue(Je.join(":"))}
1getArtistTime(x,j){return x.controls.artistTime||x.addControl("artistTime",this.fb.control("0:00")),x.controls.artistTime.value.split(":")[j]}addShowInfo(x){this.artists().clear(),this.genreButtonClass=[],this.descButtonClass=[],Object.keys(this.deets.controls).forEach(j=>{var de;"artists"===j?x.artists.forEach((Je,St)=>{this.artists().push(this.fb.group({artistName:this.fb.control(Je.artistName,[C.kI.required]),artistTime:this.fb.control(Je.artistTime),artistShort:this.fb.control(Je.artistShort,[C.kI.required,C.kI.maxLength(45)]),artistLong:this.fb.control(Je.artistLong,[C.kI.maxLength(220)]),artistUrl:this.fb.control(Je.artistUrl),amplified:this.fb.control(Je.amplified,[C.kI.required]),artistGenres:this.fb.control(Je.artistGenres),artistDesc:this.fb.control(Je.artistDesc),artistId:this.fb.control(Je.artistId,[C.kI.required])})),this.addButtonClass(),this.DESCRIPTORS.forEach((Ht,kn)=>{this.descButtonClass[St][kn]=Je.artistDesc.includes(Ht)?"selected-genre":"unselected-genre"}),this.GENRES.forEach((Ht,kn)=>{this.genreButtonClass[St][kn]=Je.artistGenres.includes(Ht)?"selected-genre":"unselected-genre"})}):null===(de=this.deets.get(j))||void 0===de||de.setValue(x[j])}),this.startTime=x.startTime,this.endTime=x.endTime,this.showID=x.key}logout(){var x=this;return(0,v.Z)(function*(){x.dialog.createPopup("You have been logged out.").afterClosed().pipe((0,je.q)(1)).subscribe({next:()=>{x.router.navigateByUrl("pages/host").then(()=>x.auth.logout())}})})()}deleteShow(){var x=this;return(0,v.Z)(function*(){var de;x.dialog.createConfirm("Are you sure you want to delete this show? This cannot be undone.").afterClosed().pipe((0,je.q)(1)).subscribe({next:(de=(0,v.Z)(function*(Je){Je&&(yield x.db.deleteDoc(`fests/${x.shared.festYear}/hosts/${x.selectedShow.key}`).catch(Ht=>console.error("Could not delete show: ",Ht.message)),x.dialog.createPopup("Your show has been deleted.").afterClosed().pipe((0,je.q)(1)).subscribe({next:()=>{(!x.showList||x.showList.length<1)&&x.logout()}}))}),function(St){return de.apply(this,arguments)})})})()}submitEdits(){var x=this;return(0,v.Z)(function*(){let j=Object.assign(x.deets.value);j.startTime=x.startTime,j.endTime=x.endTime,yield x.db.updateDoc(`fests/${x.shared.festYear}/hosts/${x.showID}`,j).catch(de=>console.error("Could not add host documet: ",de.message)),x.dialog.createPopup("Your show has been updated!")})()}}return U.\u0275fac=function(x){return new(x||U)(s.Y36(C.qu),s.Y36(q.k),s.Y36(si.e),s.Y36(h.F0),s.Y36(h.gz),s.Y36(Re.x),s.Y36(ze.eN),s.Y36(ae.I),s.Y36(m.F))},U.\u0275cmp=s.Xpm({type:U,selectors:[["app-show-mgmt"]],viewQuery:function(x,j){if(1&x&&s.Gf(nt,5),2&x){let de;s.iGM(de=s.CRH())&&(j.searchAddressRef=de.first)}},decls:93,vars:7,consts:[["id","show-mgmt-container"],["id","user-action-header"],["type","button","mat-raised-button","","color","primary",1,"header-button",3,"click"],["type","button","mat-raised-button","","color","accent",1,"header-button",3,"disabled","click"],["class","header-button","type","button","mat-raised-button","","color","accent",3,"disabled","click",4,"ngIf"],["id","editable-forms-container"],["class","input-field",4,"ngIf"],["id","show-details-form",3,"formGroup"],[1,"input-field"],["type","text","id","host-name","matInput","","placeholder","Your Name","value","","formControlName","hostName"],["type","text","id","house-name","matInput","","placeholder","House Name (Optional)","value","","formControlName","houseName"],["type","text","id","address","matInput","","placeholder","Address","value","","formControlName","address"],["searchAddress",""],["type","email","id","email","matInput","","placeholder","Email","value","","formControlName","email"],[1,"input-field-time"],["id","start-time-hour","selected","12","formControlName","startTimeHour",3,"selectionChange"],["value","12"],["value","1"],["value","2"],["value","3"],["value","4"],["value","5"],["id","start-time-min","selected","00","formControlName","startTimeMin",3,"selectionChange"],["value","00"],["value","15"],["value","30"],["value","45"],["id","end-time-hour","matInput","","selected","12","formControlName","endTimeHour",3,"selectionChange"],["value","6"],["id","end-time-min","selected","00","formControlName","endTimeMin",3,"selectionChange"],["formArrayName","artists"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","button","mat-raised-button","","color","primary",3,"click"],["id","submit-button-container"],["type","button","color","primary","mat-raised-button","",3,"disabled","click"],["id","show-select",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[3,"formGroupName"],[1,"input-field-inline"],["type","text","id","artist-name","matInput","","placeholder","Artist Name","value","","formControlName","artistName"],["type","url","id","artist-url","matInput","","placeholder","Artist Website","value","","formControlName","artistUrl"],["type","button","class","right","mat-raised-button","","color","accent",3,"click",4,"ngIf"],["id","artist-short","matInput","","maxlength","45","placeholder","Short Description (max 45 char)","value","","formControlName","artistShort"],["id","artist-long","matInput","","maxlength","255","placeholder","Long Description","value","","formControlName","artistLong"],[1,"artist-time-hour",3,"value","selectionChange"],["value","12",4,"ngIf"],["value","1",4,"ngIf"],["value","2",4,"ngIf"],["value","3",4,"ngIf"],["value","4",4,"ngIf"],["value","5",4,"ngIf"],[1,"artist-time-min",3,"value","selectionChange"],["value","00",4,"ngIf"],["value","15",4,"ngIf"],["value","30",4,"ngIf"],["value","45",4,"ngIf"],["formControlName","amplified",1,"amplified-select",3,"change"],["value","true",1,"amplified-selector"],["value","false",1,"amplified-selector"],["mat-raised-button","",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button","mat-raised-button","","color","accent",1,"right",3,"click"],["mat-raised-button","",3,"ngClass","click"]],template:function(x,j){1&x&&(s.TgZ(0,"div",0)(1,"h1"),s._uU(2,"Manage Your Show"),s.qZA(),s.TgZ(3,"span",1)(4,"button",2),s.NdJ("
1click",function(){return j.logout()}),s._uU(5,"Log Out"),s.qZA(),s.TgZ(6,"button",3),s.NdJ("click",function(){return j.deleteShow()}),s._uU(7,"Delete Show"),s.qZA(),s.YNc(8,Tt,2,1,"button",4),s.qZA(),s.TgZ(9,"div",5),s.YNc(10,Yt,5,2,"mat-form-field",6),s.TgZ(11,"form",7)(12,"h4"),s._uU(13,"Host Details"),s.qZA(),s.TgZ(14,"mat-form-field",8),s._UZ(15,"input",9),s.qZA(),s.TgZ(16,"mat-form-field",8),s._UZ(17,"input",10),s.qZA(),s.TgZ(18,"mat-form-field",8),s._UZ(19,"input",11,12),s.qZA(),s.TgZ(21,"mat-form-field",8),s._UZ(22,"input",13),s.qZA(),s.TgZ(23,"h4"),s._uU(24,"Show Time"),s.qZA(),s.TgZ(25,"mat-form-field",14)(26,"mat-label"),s._uU(27,"Start Time"),s.qZA(),s.TgZ(28,"mat-select",15),s.NdJ("selectionChange",function(){return j.changeTime()}),s.TgZ(29,"mat-option",16),s._uU(30,"12"),s.qZA(),s.TgZ(31,"mat-option",17),s._uU(32,"1"),s.qZA(),s.TgZ(33,"mat-option",18),s._uU(34,"2"),s.qZA(),s.TgZ(35,"mat-option",19),s._uU(36,"3"),s.qZA(),s.TgZ(37,"mat-option",20),s._uU(38,"4"),s.qZA(),s.TgZ(39,"mat-option",21),s._uU(40,"5"),s.qZA()()(),s._uU(41," : "),s.TgZ(42,"mat-form-field",14)(43,"mat-select",22),s.NdJ("selectionChange",function(){return j.changeTime()}),s.TgZ(44,"mat-option",23),s._uU(45,"00"),s.qZA(),s.TgZ(46,"mat-option",24),s._uU(47,"15"),s.qZA(),s.TgZ(48,"mat-option",25),s._uU(49,"30"),s.qZA(),s.TgZ(50,"mat-option",26),s._uU(51,"45"),s.qZA()()(),s._UZ(52,"br"),s.TgZ(53,"mat-form-field",14)(54,"mat-label"),s._uU(55,"End Time"),s.qZA(),s.TgZ(56,"mat-select",27),s.NdJ("selectionChange",function(){return j.changeTime()}),s.TgZ(57,"mat-option",16),s._uU(58,"12"),s.qZA(),s.TgZ(59,"mat-option",17),s._uU(60,"1"),s.qZA(),s.TgZ(61,"mat-option",18),s._uU(62,"2"),s.qZA(),s.TgZ(63,"mat-option",19),s._uU(64,"3"),s.qZA(),s.TgZ(65,"mat-option",20),s._uU(66,"4"),s.qZA(),s.TgZ(67,"mat-option",21),s._uU(68,"5"),s.qZA(),s.TgZ(69,"mat-option",28),s._uU(70,"6"),s.qZA()()(),s._uU(71," : "),s.TgZ(72,"mat-form-field",14)(73,"mat-select",29),s.NdJ("selectionChange",function(){return j.changeTime()}),s.TgZ(74,"mat-option",23),s._uU(75,"00"),s.qZA(),s.TgZ(76,"mat-option",24),s._uU(77,"15"),s.qZA(),s.TgZ(78,"mat-option",25),s._uU(79,"30"),s.qZA(),s.TgZ(80,"mat-option",26),s._uU(81,"45"),s.qZA()()(),s.TgZ(82,"h4"),s._uU(83,"Artist Details"),s.qZA(),s.TgZ(84,"div",30),s.YNc(85,Pn,1,0,"hr",31),s.YNc(86,mt,44,16,"div",32),s.qZA(),s.TgZ(87,"button",33),s.NdJ("click",function(){return j.addArtist()}),s._uU(88," Add Artist "),s.qZA()(),s._UZ(89,"br"),s.TgZ(90,"div",34)(91,"button",35),s.NdJ("click",function(){return j.submitEdits()}),s._uU(92,"Submit Edits"),s.qZA()()()()),2&x&&(s.xp6(6),s.Q6J("disabled",!j.selectedShow),s.xp6(2),s.Q6J("ngIf",j.adminUser.getValue()),s.xp6(2),s.Q6J("ngIf",j.adminUser.getValue()),s.xp6(1),s.Q6J("formGroup",j.deets),s.xp6(74),s.Q6J("ngIf",j.artists().length>0),s.xp6(1),s.Q6J("ngForOf",j.artists().controls),s.xp6(5),s.Q6J("disabled","INVALID"===j.deets.status))},directives:[te.lW,tt.O5,_e.KE,_e.hX,we.gD,C.JJ,C.On,tt.sg,be.ey,C._Y,C.JL,C.sg,re.Nt,C.Fj,C.u,C.CE,C.x0,C.nD,Me.VQ,Me.U0,tt.mk],styles:["[_nghost-%COMP%]{display:block;width:100%}#show-mgmt-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:80%;margin:28px auto 0}.header-button[_ngcontent-%COMP%]{width:fit-content;margin-right:5%}.input-field-inline[_ngcontent-%COMP%]{width:40%;margin:1% 4% 1% 1%;display:inline-block}.input-field-time[_ngcontent-%COMP%]{width:10%;margin:1%;display:inline-block}.unselected-genre[_ngcontent-%COMP%], .selected-genre[_ngcontent-%COMP%]{margin:1%}.unselected-genre[_ngcontent-%COMP%]{background-color:#fff;color:#ff3686}.selected-genre[_ngcontent-%COMP%]{background-color:#ff3686;color:#fff}"]}),U})(),ei=(()=>{class U{constructor(x,j,de){this.auth=x,this.dialog=j,this.router=de,this.authSub=new ue.w0}canActivate(x,j){return new Promise((de,Je)=>{this.authSub=this.auth.currentUser().subscribe({next:St=>{de(!!St||this.router.createUrlTree(["pages","login"]))},error:St=>{console.error("Could not get current user: ",St.message),de(!1)}})})}canActivateChild(x,j){return!0}ngOnDestroy(){this.authSub.unsubscribe()}}return U.\u0275fac=function(x){return new(x||U)(s.LFG(si.e),s.LFG(Re.x),s.LFG(h.F0))},U.\u0275prov=s.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})();var ht=b(8305);let Oe=[{path:"",redirectTo:"/shows",pathMatch:"full"},{path:"about",component:k,canDeactivate:[ht.c],data:{title:"About \xb7 West Philly Porchfest"}},{path:"host",component:pi,canDeactivate:[ht.c],data:{title:"Host a Show \xb7 West Philly Porchfest"}},{path:"donate",component:Ze,canDeactivate:[ht.c],data:{title:"Donate \xb7 West Philly Porchfest"}},{path:"contact",component:ke,canDeactivate:[ht.c],data:{title:"Contact \xb7 West Philly Porchfest"}},{path:"faq",component:Ye,canDeactivate:[ht.c],data:{title:"FAQ \xb7 West Philly Porchfest"}},{path:"login",component:$,canDeactivate:[ht.c],data:{title:"Manage Your Show \xb7 West Philly Porchfest"}},{path:"show-mgmt",component:yn,canActivate:[ei],canDeactivate:[ht.c],data:{title:"Manage Your Show \xb7 West Philly Porchfest"}},{path:"dedup",redirectTo:"/admin/duplicates"}],De=(()=>{class U{}return U.\u0275fac=function(x){return new(x||U)},U.\u0275mod=s.oAB({type:U}),U.\u0275inj=s.cJS({imports:[[h.Bz.forChild(Oe)],h.Bz]}),U})()},4298:(_t,Ue,b)=>{"use strict";b.d(Ue,{X:()=>Ye});var h=b(520),s=b(1135),m=b(5e3),k=b(678);function v($e){return Array.isArray($e)?$e.filter(Te=>"string"==typeof Te&&Te.trim()):"string"==typeof $e&&$e.trim()?[$e]:[]}function C($e){return"boolean"==typeof $e?$e:"string"==typeof $e&&"true"===$e.toLowerCase()}function _e($e){if(!$e)return null;if("stringValue"in $e)return $e.stringValue;if("booleanValue"in $e)return $e.booleanValue;if("integerValue"in $e)return Number($e.integerValue);if("doubleValue"in $e)return $e.doubleValue;if("nullValue"in $e)return null;if("arrayValue"in $e)return($e.arrayValue.values||[]).map(_e);if("mapValue"in $e){const Te={};for(const[rt,je]of Object.entries($e.mapValue.fields||{}))Te[rt]=_e(je);return Te}return null}const re=[[-75.24518,39.94408],[-75.23501,39.94702],[-75.22498,39.94778],[-75.215,39.94885],[-75.20796,39.94977],[-75.20002,39.94957],[-75.19959,39.94931]];function ke($e,Te,rt=""){return`${$e}-${(Te||"unknown").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)}-${rt.replace(":","")||"0000"}`}function Ze($e){const Te={};for(const[Fe,me]of Object.entries($e.fields||{}))Te[Fe]=_e(me);if(!Te.approved)return null;const rt=$e.name.split("/").pop()||"";let je=0,zt=0;const ze=(Te.coords||"").match(/\(?([-\d.]+),\s*([-\d.]+)\)?/);ze&&(je=parseFloat(ze[1]),zt=parseFloat(ze[2]));const Re=function be($e,Te,rt=""){const je=rt.match(/^(\d+)\s+Baltimore\s+Ave(?:nue)?\b/i);return je&&parseInt(je[1],10)%2==1||$e<function we($e){const Te=re;if($e<=Te[0][0])return Te[0][1];if($e>=Te[Te.length-1][0])return Te[Te.length-1][1];for(let rt=0;rt<Te.length-1;rt++){const[je,zt]=Te[rt],[ut,ze]=Te[rt+1];if($e>=je&&$e<=ut)return zt+($e-je)/(ut-je)*(ze-zt)}return Te[Te.length-1][1]}(Te)?1:Te>-75.2185?2:3}(je,zt,Te.address||""),tt=(Te.artists||[]).map(Fe=>
1{const me="number"==typeof Fe.noise_level?Fe.noise_level:2;return{id:Fe.artistId||ke(rt,Fe.artistName||"",Fe.artistTime||Te.startTime||""),name:Fe.artistName||"Unknown Artist",setTime:Fe.artistTime||Te.startTime||"12:00",short_description:Fe.artistShort||"",long_description:Fe.artistLong||"",website_url:Fe.artistUrl||"",genres:v(Fe.artistGenres),desc:v(Fe.artistDesc),noise_level:me,amplified:C(Fe.amplified),kid_oriented:!0===Fe.kidOriented||!0===Fe.kid_oriented}});return{id:rt,hostId:rt,hostName:Te.hostName||"",houseName:Te.houseName||"",address:Te.address||"",latitude:je,longitude:zt,startTime:Te.startTime||"12:00",endTime:Te.endTime||"5:00",zone:Re,approved:!0,artists:tt}}let Ye=(()=>{class $e{constructor(rt,je){this.http=rt,this.shared=je,this.shows$=new s.X([]),this.loadShows()}loadShows(){const rt=this.shared.festYear;if(!rt)return void console.error("PorchfestDataService: festYear is not set; skipping shows load.");const je=`https://firestore.googleapis.com/v1/projects/porchfest-aaebd/databases/(default)/documents/fests/${rt}/hosts`,zt=(new h.LE).set("pageSize","300").set("key","AIzaSyBxTp1I-IrHDy8xpHqn1o4Ei1O1RNX__Yc");this.http.get(je,{params:zt}).subscribe({next:ut=>{const Re=(ut.documents||[]).map(Ze).filter(tt=>null!==tt);this.shows$.next(Re)},error:ut=>{console.error("Failed to load shows from Firestore:",ut)}})}getShows(){return this.shows$.asObservable()}getShowById(rt){return this.shows$.value.find(je=>je.id===rt)}getShowsByIds(rt){return this.shows$.value.filter(je=>rt.includes(je.id))}getAllShows(){return this.shows$.value}}return $e.\u0275fac=function(rt){return new(rt||$e)(m.LFG(h.eN),m.LFG(k.F))},$e.\u0275prov=m.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})()},921:(_t,Ue,b)=>{"use strict";b.d(Ue,{o:()=>_e});var h=b(1135),s=b(9841),m=b(9300),k=b(5698),v=b(4004),C=b(5e3),q=b(4298);const te="porchfest_schedule_2026";let _e=(()=>{class re{constructor(be){this.dataService=be,this.bookmarkedKeys$=new h.X(new Set),this.toastMessage$=new h.X(null),this.loadFromStorage(),this.dataService.getShows().pipe((0,m.h)(ke=>ke.length>0),(0,k.q)(1)).subscribe(ke=>this.migrateAndPruneKeys(ke))}makeKey(be,ke){return`${be}::${ke}`}parseKey(be){const[ke,Ze]=be.split("::");return{showId:ke,artistId:Ze}}isArtistBookmarked(be,ke){return this.bookmarkedKeys$.value.has(this.makeKey(be,ke))}isArtistBookmarked$(be,ke){return this.bookmarkedKeys$.pipe((0,v.U)(Ze=>Ze.has(this.makeKey(be,ke))))}isShowFullyBookmarked(be){const ke=this.dataService.getShowById(be);return!(!ke||0===ke.artists.length)&&ke.artists.every(Ze=>this.bookmarkedKeys$.value.has(this.makeKey(be,Ze.id)))}isShowPartiallyBookmarked(be){const ke=this.dataService.getShowById(be);return!!ke&&ke.artists.some(Ze=>this.bookmarkedKeys$.value.has(this.makeKey(be,Ze.id)))}toggleArtist(be,ke){const Ze=new Set(this.bookmarkedKeys$.value),Ye=this.makeKey(be,ke),$e=this.dataService.getShowById(be),Te=null==$e?void 0:$e.artists.find(rt=>rt.id===ke);Ze.has(Ye)?(Ze.delete(Ye),this.showToast(Te?`${Te.name} removed from schedule`:"Removed from schedule")):(Ze.add(Ye),this.showToast(Te?`${Te.name} added to schedule`:"Added to schedule")),this.bookmarkedKeys$.next(Ze),this.saveToStorage(Ze)}addEntireShow(be){const ke=this.dataService.getShowById(be);if(!ke)return;const Ze=new Set(this.bookmarkedKeys$.value);for(const Ye of ke.artists)Ze.add(this.makeKey(be,Ye.id));this.bookmarkedKeys$.next(Ze),this.saveToStorage(Ze),this.showToast(`All performers at ${ke.address} added`)}getScheduleEntries(){return(0,s.a)([this.bookmarkedKeys$,this.dataService.getShows()]).pipe((0,v.U)(([be,ke])=>{const Ze=new Map(ke.map($e=>[$e.id,$e])),Ye=[];for(const $e of be){const{showId:Te,artistId:rt}=this.parseKey($e),je=Ze.get(Te);if(!je)continue;const zt=je.artists.find(ut=>ut.id===rt);!zt||Ye.push({show:je,artist:zt})}return Ye.sort(($e,Te)=>{const rt=this.timeToMinutes($e.artist.setTime)-this.timeToMinutes(Te.artist.setTime);return 0!==rt?rt:$e.artist.name.localeCompare(Te.artist.name)})}))}getBookmarkedCount(){return this.getScheduleEntries().pipe((0,v.U)(be=>be.length))}getBookmarksChanged(){return this.bookmarkedKeys$.pipe((0,v.U)(()=>{}))}getBookmarkedKeys(){return Array.from(this.bookmarkedKeys$.value)}
1getTimeConflicts(){return this.getScheduleEntries().pipe((0,v.U)(be=>{const ke=[];for(let Ze=0;Ze<be.length;Ze++)for(let Ye=Ze+1;Ye<be.length;Ye++)be[Ze].show.address!==be[Ye].show.address&&this.artistTimesOverlap(be[Ze],be[Ye])&&ke.push({entry1:be[Ze],entry2:be[Ye]});return ke}))}getTimeSpan(){return this.getScheduleEntries().pipe((0,v.U)(be=>{if(0===be.length)return"";const ke=be.map($e=>this.timeToMinutes($e.artist.setTime)),Ze=Math.min(...ke),Ye=Math.max(...ke);return`${this.formatTime12(this.minutesToTime(Ze))} \u2013 ${this.formatTime12(this.minutesToTime(Ye+30))}`}))}getPrintTimeSpan(){return this.getScheduleEntries().pipe((0,v.U)(be=>{if(0===be.length)return"";const ke=be.map($e=>this.timeToMinutes($e.artist.setTime)),Ze=Math.min(...ke),Ye=Math.max(...ke);return`${this.formatTime12(this.minutesToTime(Ze))} \u2013 ${this.formatTime12(this.minutesToTime(Ye+30))}`}))}getShareUrl(){const be=Array.from(this.bookmarkedKeys$.value);return 0===be.length?"":`${"undefined"!=typeof window?window.location.origin:""}/schedule?keys=${encodeURIComponent(be.join(","))}`}resolveKeysToEntries(be){return this.dataService.getShows().pipe((0,m.h)(ke=>ke.length>0),(0,k.q)(1),(0,v.U)(ke=>{const Ze=new Map(ke.map($e=>[$e.id,$e])),Ye=[];for(const $e of be){const{showId:Te,artistId:rt}=this.parseKey($e),je=Ze.get(Te);if(!je)continue;const zt=je.artists.find(ut=>ut.id===rt);!zt||Ye.push({show:je,artist:zt})}return Ye.sort(($e,Te)=>{const rt=this.timeToMinutes($e.artist.setTime)-this.timeToMinutes(Te.artist.setTime);return 0!==rt?rt:$e.artist.name.localeCompare(Te.artist.name)})}))}importFromKeys(be){this.dataService.getShows().pipe((0,m.h)(ke=>ke.length>0),(0,k.q)(1)).subscribe(ke=>{const Ze=new Map(ke.map($e=>[$e.id,$e])),Ye=be.filter($e=>{const{showId:Te,artistId:rt}=this.parseKey($e),je=Ze.get(Te);return je&&je.artists.some(zt=>zt.id===rt)});if(Ye.length>0){const $e=new Set(this.bookmarkedKeys$.value);Ye.forEach(Te=>$e.add(Te)),this.bookmarkedKeys$.next($e),this.saveToStorage($e),this.showToast(`${Ye.length} performer${1!==Ye.length?"s":""} added to schedule`)}})}getToast(){return this.toastMessage$.asObservable()}formatTime12(be){const[ke,Ze]=be.split(":").map(Number),Ye=ke>=12?"PM":"AM",$e=ke%12||12;return Ze?`${$e}:${Ze.toString().padStart(2,"0")} ${Ye}`:`${$e}:00 ${Ye}`}migrateAndPruneKeys(be){const ke=this.bookmarkedKeys$.value;if(0===ke.size)return;const Ze=new Map(be.map(Te=>[Te.id,Te])),Ye=new Set;for(const Te of ke){const{showId:rt,artistId:je}=this.parseKey(Te),zt=Ze.get(rt);if(!zt)continue;if(zt.artists.some(ze=>ze.id===je)){Ye.add(Te);continue}const ut=je.match(/^(.+)-artist-(\d+)$/);if(ut&&ut[1]===rt){const ze=parseInt(ut[2],10);ze<zt.artists.length&&Ye.add(this.makeKey(rt,zt.artists[ze].id))}}(Ye.size!==ke.size||[...Ye].some(Te=>!ke.has(Te)))&&(this.bookmarkedKeys$.next(Ye),this.saveToStorage(Ye))}showToast(be){this.toastMessage$.next(be),setTimeout(()=>this.toastMessage$.next(null),3e3)}artistTimesOverlap(be,ke){const Ze=this.timeToMinutes(be.artist.setTime),Ye=this.timeToMinutes(ke.artist.setTime);return Math.abs(Ze-Ye)<30}timeToMinutes(be){let[ke,Ze]=be.split(":").map(Number);return ke>=1&&ke<=11&&(ke+=12),60*ke+(Ze||0)}minutesToTime(be){return`${Math.floor(be/60)}:${(be%60).toString().padStart(2,"0")}`}loadFromStorage(){try{const be=localStorage.getItem(te);if(be){const ke=JSON.parse(be);this.bookmarkedKeys$.next(new Set(ke))}}catch(be){}}saveToStorage(be){try{localStorage.setItem(te,JSON.stringify(Array.from(be)))}catch(ke){}}}return re.\u0275fac=function(be){return new(be||re)(C.LFG(q.X))},re.\u0275prov=C.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})()},6240:(_t,Ue,b)=>{"use strict";b.d(Ue,{e:()=>k});var h=b(751),s=b(727),m=b(5e3);let k=(()=>{class v{constructor(q){this.auth=q,this.authSub=new s.w0,this.uid=null,this.usrEmail=null}initializeUser(){this.authSub=this.currentUser().subscribe({next:q=>{this.uid=null==q?void 0:q.uid,this.usrEmail=null==q?void 0:q.email},error:q=>console.error(q)})}login(q,te){return(0,h.e5)(this.auth,q,te)}register(q,te){return(0,h.Xb)(this.auth,q,te)}logout(){return(0,h.w7)(this.auth)}verifyEmail(q){return(0,h.w$)(q)}resetPassword(q){return(0,h.LS)(this.auth,q)}currentUser(){return(0,h.fD)(this.auth)}ngOnDestroy(){this.authSub.unsubscribe()}}return v.\u0275fac=function(q){return new(q||v)(m.LFG(h.gx))},v.\u0275prov=m.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})()},196:(_t,Ue,b)=>{"use strict";b.d(Ue,{k:()=>te});var h=b(5861),s=b(5439),k=b(5698),v=b(4004),C=b(5e3),q=b(1762);let te=(()=>{class _e{constructor(we){this.afService=we}addDoc(we,be,ke){var Ze=this;return(0,h.Z)(function*(){return we.split("/").reverse().length%2==0?{error:"Path should be a collection reference!"}:(be.createdAt=s().toISOString(),ke?Ze.afService.collection(we).doc(ke).set(be):Ze.afService.collection(we).add(be))})()}updateDoc(we,be){var ke=this;return(0,h.Z)(function*(){return we.split("/").length%2!=0?{error:"Path should be a document reference!"}:(be.updatedAt=s().toISOString(),ke.afService.doc(we).update(be))})()}getDoc(we){var be=this;return(0,h.Z)(function*(){return yield new Promise((ke,Ze)=>{be.afService.doc(we).valueChanges().pipe((0,k.q)(1)).subscribe({next:Ye=>ke(Ye),error:Ye=>Ze(Ye)})}).catch(ke=>console.error("Could not get document: ",ke))})()}deleteDoc(we){var be=this;return(0,h.Z)(function*(){return yield be.afService.doc(we).delete().catch(ke=>console.error("Could not delete document: ",ke.message))})()}getCollection(we,be){return this.afService.collection(we,be).snapshotChanges().pipe((0,v.U)(ke=>ke.map(Ze=>{const Ye=Ze.payload.doc.id,$e=Ze.payload.doc.data();return Object.assign({key:Ye},$e)})))}}return _e.\u0275fac=function(we){return new(we||_e)(C.LFG(q.ST))},_e.\u0275prov=C.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"}),_e})()},1494:(_t,Ue,b)=>{"use strict";b.d(Ue,{x:()=>_e});var h=b(8966),s=b(5e3),m=b(9808),k=b(7423);function v(re,we){1&re&&(s.ynx(0),s.TgZ(1,"button",3),s._uU(2,"Cancel"),s.qZA(),s.TgZ(3,"button",4),s._uU(4,"Delete"),s.qZA(),s.BQk()),2&re&&(s.xp6(1),s.Q6J("mat-dialog-close",!1),s.xp6(2),s.Q6J("mat-dialog-close",!0))}function C(re,we){1&re&&(s.TgZ(0,"button",5),s._uU(1,"Okay!"),s.qZA())}let q=(()=>{class re{constructor(be){this.data=be}ngOnInit(){}}return re.\u0275fac=function(be){return new(be||re)(s.Y36(h.WI))},re.\u0275cmp=s.Xpm({type:re,selectors:[["app-success-dialog"]],decls:6,vars:3,consts:[["align","center"],[4,"ngIf","ngIfElse"],["okayBtn",""],["mat-raised-button","",3,"mat-dialog-close"],["mat-raised-button","","color","warn",3,"mat-dialog-close"],["mat-raised-button","","mat-dialog-close",""]],template:function(be,ke){if(1&be&&(s.TgZ(0,"p"),s._uU(1),s.qZA(),s.TgZ(2,"mat-dialog-actions",0),s.YNc(3,v,5,2,"ng-container",1),s.YNc(4,C,2,0,"ng-template",null,2,s.W1O),s.qZA()),2&be){const Ze=s.MA
1s(5);s.xp6(1),s.Oqu(ke.data.message),s.xp6(2),s.Q6J("ngIf",ke.data.confirm)("ngIfElse",Ze)}},directives:[h.H8,m.O5,k.lW,h.ZT],styles:[""]}),re})();var te=b(1564);let _e=(()=>{class re{constructor(be,ke){this.dialog=be,this.router=ke}createPopup(be){return this.dialog.open(q,{data:{message:be}})}createConfirm(be){return this.dialog.open(q,{data:{message:be,confirm:!0}})}}return re.\u0275fac=function(be){return new(be||re)(s.LFG(h.uw),s.LFG(te.F0))},re.\u0275prov=s.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})()},5:(_t,Ue,b)=>{"use strict";b.d(Ue,{I:()=>k});var h=b(4327),m=b(5e3);let k=(()=>{class v{constructor(){}saveAsFile(q,te,_e){const re=new Blob([q],{type:_e});h.saveAs(re,te)}exportToCsv(q,te,_e){if(!q||!q.length)return;const we=(null==_e?void 0:_e.length)?_e:Object.keys(q[0]),be=we.join(",")+"\n"+q.map(ke=>we.map(Ze=>{let Ye=null==ke[Ze]?"":ke[Ze];return Ye=Ye instanceof Date?Ye.toLocaleString():Ye.toString().replace(/"/g,'""'),Ye.search(/("|,|\n)/g)>=0&&(Ye=`"${Ye}"`),Ye}).join(",")).join("\n");this.saveAsFile(be,`${te}.csv`,"text/csv")}}return v.\u0275fac=function(q){return new(q||v)},v.\u0275prov=m.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})()},678:(_t,Ue,b)=>{"use strict";b.d(Ue,{F:()=>q});var h=b(5861),s=b(5698),m=b(5439),v=b(5e3),C=b(196);let q=(()=>{class te{constructor(re){this.db=re,this.festYear="",this.festInfo=null,this.styles={},this.displayDate="",this.allowRoute=!0}initializeYear(){var re=this;return(0,h.Z)(function*(){const we=new URLSearchParams(window.location.search),be=Object.fromEntries(we.entries());be.archYear?(re.festYear=be.archYear,re.allowRoute=!1):(re.allowRoute=!0,re.festYear=yield re.getYearFromDB()),yield re.changeYear(re.festYear)})()}getYearFromDB(){var re=this;return(0,h.Z)(function*(){return new Promise((we,be)=>{re.db.getCollection("fests/").pipe((0,s.q)(1)).subscribe({next:ke=>{we(ke[ke.length-1].key)},error:ke=>be(ke.message)})}).catch(we=>console.error(`Could not load festival year: ${we.message}`))})()}changeYear(re){var we=this;return(0,h.Z)(function*(){we.festYear=re,we.styles=yield new Promise((be,ke)=>{we.db.getCollection(`fests/${we.festYear}/styles/`).pipe((0,s.q)(1)).subscribe({next:Ze=>be(Ze),error:Ze=>ke(Ze)})}).catch(be=>console.error(`Could not load styles: ${be.message}`)),we.festInfo=yield we.db.getDoc(`fests/${we.festYear}`).catch(be=>console.error(`Could not get festival info: ${be.message}`)),we.displayDate=m(we.festInfo.date,"MM[/]DD[/]YYYY").format("MMMM D[,] YYYY")})()}generateUid(re){const we=new Uint8Array(re);return crypto.getRandomValues(we),Array.from(we,be=>be.toString(16).padStart(2,"0")).join("")}}return te.\u0275fac=function(re){return new(re||te)(v.LFG(C.k))},te.\u0275prov=v.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})()},2340:(_t,Ue,b)=>{"use strict";b.d(Ue,{N:()=>h});const h={firebase:{projectId:"porchfest-aaebd",appId:"1:130382498410:web:251ffe31777b374f649813",databaseURL:"https://porchfest-aaebd-default-rtdb.firebaseio.com",storageBucket:"porchfest-aaebd.appspot.com",locationId:"us-east1",apiKey:"AIzaSyBxTp1I-IrHDy8xpHqn1o4Ei1O1RNX__Yc",authDomain:"porchfest-aaebd.firebaseapp.com",messagingSenderId:"130382498410",measurementId:"G-30HTZQ9X3N",mapKey:"AIzaSyCD1cGoDRh8lLh6Lix7Qgq-F8prv14i4w8",functionsURL:"https://us-central1-porchfest-aaebd.cloudfunctions.net/"},maptiler:{apiKey:"TMorvyOgeRcF32aS0bvd"},mapbox:{apiKey:"pk.eyJ1IjoibHVjaWZlcmlhbnJvYm90IiwiYSI6ImNsM2k1NzB0MDAwYWszbWxlOWFheGFuYzAifQ.dI5wKA5XBaiqTqT0D4gQxA"},production:!0}},4735:(_t,Ue,b)=>{"use strict";var h=b(6097),s=b(5e3),m=b(6360),k=b(1564),v=b(8305),C=b(5698),q=b(6240),te=b(196);const re=[{path:"shows",loadChildren:()=>Promise.all([b.e(570),b.e(266)]).then(b.bind(b,7266)).then(_=>_.PorchfestHomeModule),canDeactivate:[v.c],data:{title:"West Philly Porchfest"}},{path:"schedule",loadChildren:()=>Promise.all([b.e(570),b.e(736)]).then(b.bind(b,7736)).then(_=>_.PorchfestScheduleModule),canDeactivate:[v.c],data:{title:"My Schedule \xb7 West Philly Porchfest"}},{path:"admin",loadChildren:()=>b.e(963).then(b.bind(b,1963)).then(_=>_.AdminModule),canActivate:[(()=>{class _{constructor(f,M,O){this.auth=f,this.db=M,this.router=O}canActivate(){return new Promise(f=>{this.auth.currentUser().pipe((0,C.q)(1)).subscribe({next:M=>{M?this.db.getCollection("auth").pipe((0,C.q)(1)).subscribe({next:O=>{O.map(ye=>ye.email).includes(M.email)?f(!0):f(this.router.createUrlTree(["pages","show-mgmt"]))},error:()=>f(this.router.createUrlTree(["pages","login"]))}):f(this.router.createUrlTree(["pages","login"]))},error:()=>f(this.router.createUrlTree(["pages","login"]))})})}}return _.\u0275fac=function(f){return new(f||_)(s.LFG(q.e),s.LFG(te.k),s.LFG(k.F0))},_.\u0275prov=s.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})()]},{path:"conflict",redirectTo:"/admin/conflicts"},{path:"pages",loadChildren:()=>b.e(232).then(b.bind(b,4232)).then(_=>_.PagesModule)},{path:"",redirectTo:"/shows",pathMatch:"full"},{path:"**",redirectTo:"/shows"}];let we=(()=>{class _{}return _.\u0275fac=function(f){return new(f||_)},_.\u0275mod=s.oAB({type:_}),_.\u0275inj=s.cJS({imports:[[k.Bz.forRoot(re,{scrollPositionRestoration:"top"})],k.Bz]}),_})();var be=b(9300),ke=b(678),Ze=b(921),Ye=b(9808);function $e(_,p){if(1&_&&(s.TgZ(0,"span",12),s._uU(1),s.qZA()),2&_){const f=s.oxw(2);s.xp6(1),s.Oqu(f.bookmarkCount)}}const Te=function(){return["/shows"]},rt=function(){return{exact:!1}},je=function(){return["/pages/about"]},zt=function(){return["/pages/host"]},ut=function(){return["/pages/donate"]},ze=function(){return["/pages/contact"]},Re=function(){return["/pages/faq"]},tt=function(){return["/schedule"]};function Fe(_,p){if(1&_){const f=s.EpF();
1s.TgZ(0,"nav",1)(1,"div",2)(2,"div",3),s.NdJ("click",function(){return s.CHM(f),s.oxw().closeMenu()}),s._uU(3,"West Philly Porchfest"),s.qZA(),s.TgZ(4,"div",4)(5,"button",5),s.NdJ("click",function(){return s.CHM(f),s.oxw().toggleMenu()}),s._UZ(6,"span",6)(7,"span",6)(8,"span",6),s.qZA(),s.TgZ(9,"div",7)(10,"a",8),s.NdJ("click",function(){return s.CHM(f),s.oxw().closeMenu()}),s._uU(11,"Home"),s.qZA(),s.TgZ(12,"a",9),s.NdJ("click",function(){return s.CHM(f),s.oxw().closeMenu()}),s._uU(13,"About"),s.qZA(),s.TgZ(14,"a",9),s.NdJ("click",function(){return s.CHM(f),s.oxw().closeMenu()}),s._uU(15,"Host"),s.qZA(),s.TgZ(16,"a",9),s.NdJ("click",function(){return s.CHM(f),s.oxw().closeMenu()}),s._uU(17,"Donate"),s.qZA(),s.TgZ(18,"a",9),s.NdJ("click",function(){return s.CHM(f),s.oxw().closeMenu()}),s._uU(19,"Contact"),s.qZA(),s.TgZ(20,"a",9),s.NdJ("click",function(){return s.CHM(f),s.oxw().closeMenu()}),s._uU(21,"FAQs"),s.qZA()(),s.TgZ(22,"a",10),s._uU(23," My Schedule "),s.YNc(24,$e,2,1,"span",11),s.qZA()()()()}if(2&_){const f=s.oxw();s.xp6(2),s.Q6J("routerLink",s.DdM(12,Te)),s.xp6(7),s.ekj("open",f.menuOpen),s.xp6(1),s.Q6J("routerLink",s.DdM(13,Te))("routerLinkActiveOptions",s.DdM(14,rt)),s.xp6(2),s.Q6J("routerLink",s.DdM(15,je)),s.xp6(2),s.Q6J("routerLink",s.DdM(16,zt)),s.xp6(2),s.Q6J("routerLink",s.DdM(17,ut)),s.xp6(2),s.Q6J("routerLink",s.DdM(18,ze)),s.xp6(2),s.Q6J("routerLink",s.DdM(19,Re)),s.xp6(2),s.Q6J("routerLink",s.DdM(20,tt)),s.xp6(2),s.Q6J("ngIf",f.bookmarkCount>0)}}let me=(()=>{class _{constructor(f,M){this.scheduleService=f,this.shared=M,this.bookmarkCount=0,this.menuOpen=!1,this.subs=[]}ngOnInit(){this.subs.push(this.scheduleService.getScheduleEntries().subscribe(f=>{this.bookmarkCount=f.length}))}ngOnDestroy(){this.subs.forEach(f=>f.unsubscribe())}toggleMenu(){this.menuOpen=!this.menuOpen}closeMenu(){this.menuOpen=!1}}return _.\u0275fac=function(f){return new(f||_)(s.Y36(Ze.o),s.Y36(ke.F))},_.\u0275cmp=s.Xpm({type:_,selectors:[["app-pf-header"]],decls:1,vars:1,consts:[["class","nav-bar",4,"ngIf"],[1,"nav-bar"],[1,"nav-inner"],[1,"site-title",3,"routerLink","click"],[1,"nav-right"],["aria-label","Toggle menu",1,"hamburger-btn",3,"click"],[1,"hamburger-bar"],[1,"nav-links"],["routerLinkActive","active",3,"routerLink","routerLinkActiveOptions","click"],["routerLinkActive","active",3,"routerLink","click"],["routerLinkActive","active",1,"schedule-link",3,"routerLink"],["class","schedule-count",4,"ngIf"],[1,"schedule-count"]],template:function(f,M){1&f&&s.YNc(0,Fe,25,21,"nav",0),2&f&&s.Q6J("ngIf",M.shared.allowRoute)},directives:[Ye.O5,k.rH,k.yS,k.Od],styles:["[_nghost-%COMP%]{display:block}.nav-bar[_ngcontent-%COMP%]{background:#fff;border-bottom:1px solid #eee;position:fixed;top:0;left:0;right:0;z-index:200}.nav-inner[_ngcontent-%COMP%]{width:80%;margin:0 auto;display:flex;align-items:center;justify-content:space-between;height:44px}.site-title[_ngcontent-%COMP%]{font-family:Poppins,sans-serif;font-size:1.1rem;font-weight:700;color:#000;cursor:pointer;white-space:nowrap;transition:color .15s}.site-title[_ngcontent-%COMP%]:hover{color:#e91e63}.nav-right[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px}.hamburger-btn[_ngcontent-%COMP%]{display:none;background:none;border:none;cursor:pointer;padding:6px;flex-direction:column;gap:5px}.hamburger-bar[_ngcontent-%COMP%]{display:block;width:22px;height:2px;background:#333;border-radius:2px}.nav-links[_ngcontent-%COMP%]{display:flex;gap:0;align-self:stretch;align-items:stretch}.nav-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-family:Poppins,sans-serif;font-size:.82rem;font-weight:400;color:#333;cursor:pointer;padding:0 12px;text-decoration:none;display:inline-flex;align-items:center;gap:4px;white-space:nowrap;border-bottom:3px solid transparent;box-sizing:border-box;transition:border-color .15s}.nav-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:not(.schedule-link):hover{border-bottom-color:#e91e6399}.nav-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:not(.schedule-link).active{font-weight:600;color:#000;border-bottom-color:#e91e63}.schedule-link[_ngcontent-%COMP%]{font-family:Poppins,sans-serif;font-size:.82rem;font-weight:500;color:#e91e63;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:4px;white-space:nowrap;align-self:center;border:1.5px solid #e91e63;border-radius:18px;padding:4px 14px;margin-left:4px}.schedule-link[_ngcontent-%COMP%]:hover{background:#fce4ec}.schedule-link.active[_ngcontent-%COMP%]{background:#e91e63;color:#fff}.schedule-count[_ngcontent-%COMP%]{background:#e91e63;color:#fff;border-radius:50%;min-width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;font-size:.65rem;font-weight:600;padding:0 3px}.schedule-link.active[_ngcontent-%COMP%] .schedule-count[_ngcontent-%COMP%]{background:#fff;color:#e91e63}@media (max-width: 768px){.nav-inner[_ngcontent-%COMP%]{width:95%;height:44px}.site-title[_ngcontent-%COMP%]{font-size:1rem}.hamburger-btn[_ngcontent-%COMP%]{display:flex}.nav-links[_ngcontent-%COMP%]{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;border-bottom:1px solid #eee;box-shadow:0 4px 12px #00000014;flex-direction:column;padding:8px 0;align-items:stretch}.nav-links.open[_ngcontent-%COMP%]{display:flex}.nav-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:1rem;padding:12px 20px;border-bottom:none;border-left:3px solid transparent;justify-content:flex-start}.nav-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:not(.schedule-link).active{border-bottom:none;border-left-color:#e91e63}}"]}),_})(),gt=(()=>{class _{constructor(f,M,O,X){this.shared=f,this.router=M,this.activatedRoute=O,this.titleService=X,this.title=`West Philly PorchFest ${this.shared.festYear}`}ngOnInit(){this.router.events.pipe((0,be.h)(f=>f instanceof k.m2)).subscribe(()=>{let f=this.activatedRoute;for(;
1f.firstChild;)f=f.firstChild;this.titleService.setTitle(f.snapshot.data.title||"West Philly Porchfest")})}}return _.\u0275fac=function(f){return new(f||_)(s.Y36(ke.F),s.Y36(k.F0),s.Y36(k.gz),s.Y36(h.Dx))},_.\u0275cmp=s.Xpm({type:_,selectors:[["app-root"]],decls:3,vars:0,consts:[["id","page-container"]],template:function(f,M){1&f&&(s.TgZ(0,"div",0),s._UZ(1,"app-pf-header")(2,"router-outlet"),s.qZA())},directives:[me,k.lC],styles:["[_nghost-%COMP%]{display:block}#page-container[_ngcontent-%COMP%]{min-height:100vh;background:#fff;padding-top:44px;box-sizing:border-box}"]}),_})();var Bt=b(2340),pn=b(2011),mn=b(1205),jn=b(1762),en=b(4986),Wn=b(8306),Mn=b(9646),Bn=b(6451),Dn=b(4004),vn=b(3099),Dt=b(3900),Mt=b(5026),it=b(1884),At=b(4482),ct=b(5403),st=b(8421),vt=b(4671),ft=b(5032),Ut=b(3269),bn=b(4976),si=(b(9568),b(3942)),vi=b(4859),Vn=b(5861),Rn=b(6881),Ve=b(2090),Pt=b(1877);const $="@firebase/database";let K="";function ae(_){K=_}class Me{constructor(p){this.domStorage_=p,this.prefix_="firebase:"}set(p,f){null==f?this.domStorage_.removeItem(this.prefixedName_(p)):this.domStorage_.setItem(this.prefixedName_(p),(0,Ve.Wl)(f))}get(p){const f=this.domStorage_.getItem(this.prefixedName_(p));return null==f?null:(0,Ve.cI)(f)}remove(p){this.domStorage_.removeItem(this.prefixedName_(p))}prefixedName_(p){return this.prefix_+p}toString(){return this.domStorage_.toString()}}class nt{constructor(){this.cache_={},this.isInMemoryStorage=!0}set(p,f){null==f?delete this.cache_[p]:this.cache_[p]=f}get(p){return(0,Ve.r3)(this.cache_,p)?this.cache_[p]:null}remove(p){delete this.cache_[p]}}const Tt=function(_){try{if("undefined"!=typeof window&&void 0!==window[_]){const p=window[_];return p.setItem("firebase:sentinel","cache"),p.removeItem("firebase:sentinel"),new Me(p)}}catch(p){}return new nt},Zt=Tt("localStorage"),Yt=Tt("sessionStorage"),Pn=new Pt.Yd("@firebase/database"),Cn=function(){let _=1;return function(){return _++}}(),Nn=function(_){const p=(0,Ve.dS)(_),f=new Ve.gQ;f.update(p);const M=f.digest();return Ve.US.encodeByteArray(M)},Si=function(..._){let p="";for(let f=0;f<_.length;f++){const M=_[f];Array.isArray(M)||M&&"object"==typeof M&&"number"==typeof M.length?p+=Si.apply(null,M):p+="object"==typeof M?(0,Ve.Wl)(M):M,p+=" "}return p};let ni=null,Qn=!0;const lt=function(_,p){(0,Ve.hu)(!p||!0===_||!1===_,"Can't turn on custom loggers persistently."),!0===_?(Pn.logLevel=Pt.in.VERBOSE,ni=Pn.log.bind(Pn),p&&Yt.set("logging_enabled",!0)):"function"==typeof _?ni=_:(ni=null,Yt.remove("logging_enabled"))},Qt=function(..._){if(!0===Qn&&(Qn=!1,null===ni&&!0===Yt.get("logging_enabled")&<(!0)),ni){const p=Si.apply(null,_);ni(p)}},Se=function(_){return function(...p){Qt(_,...p)}},Ke=function(..._){const p="FIREBASE INTERNAL ERROR: "+Si(..._);Pn.error(p)},Ee=function(..._){const p=`FIREBASE FATAL ERROR: ${Si(..._)}`;throw Pn.error(p),new Error(p)},Be=function(..._){const p="FIREBASE WARNING: "+Si(..._);Pn.warn(p)},Ot=function(_){return"number"==typeof _&&(_!=_||_===Number.POSITIVE_INFINITY||_===Number.NEGATIVE_INFINITY)},yn="[MIN_NAME]",ei="[MAX_NAME]",ht=function(_,p){if(_===p)return 0;if(_===yn||p===ei)return-1;if(p===yn||_===ei)return 1;{const f=ii(_),M=ii(p);return null!==f?null!==M?f-M==0?_.length-p.length:f-M:-1:null!==M?1:_<p?-1:1}},Oe=function(_,p){return _===p?0:_<p?-1:1},De=function(_,p){if(p&&_ in p)return p[_];throw new Error("Missing required key ("+_+") in object: "+(0,Ve.Wl)(p))},U=function(_){if("object"!=typeof _||null===_)return(0,Ve.Wl)(_);const p=[];for(const M in _)p.push(M);p.sort();let f="{";for(let M=0;M<p.length;M++)0!==M&&(f+=","),f+=(0,Ve.Wl)(p[M]),f+=":",f+=U(_[p[M]]);return f+="}",f},N=function(_,p){const f=_.length;if(f<=p)return[_];const M=[];for(let O=0;O<f;O+=p)M.push(_.substring(O,O+p>f?f:O+p));return M};function x(_,p){for(const f in _)_.hasOwnProperty(f)&&p(f,_[f])}const j=function(_){(0,Ve.hu)(!Ot(_),"Invalid JSON number");const M=1023;let O,X,ye,Qe,yt;0===_?(X=0,ye=0,O=1/_==-1/0?1:0):(O=_<0,(_=Math.abs(_))>=Math.pow(2,1-M)?(Qe=Math.min(Math.floor(Math.log(_)/Math.LN2),M),X=Qe+M,ye=Math.round(_*Math.pow(2,52-Qe)-Math.pow(2,52))):(X=0,ye=Math.round(_/Math.pow(2,-1074))));const Lt=[];for(yt=52;yt;yt-=1)Lt.push(ye%2?1:0),ye=Math.floor(ye/2);for(yt=11;yt;yt-=1)Lt.push(X%2?1:0),X=Math.floor(X/2);Lt.push(O?1:0),Lt.reverse();const Tn=Lt.join("");let Ln="";for(yt=0;yt<64;yt+=8){let Yn=parseInt(Tn.substr(yt,8),2).toString(16);1===Yn.length&&(Yn="0"+Yn),Ln+=Yn}return Ln.toLowerCase()},Ht=new RegExp("^-?(0*)\\d{1,10}$"),ii=function(_){if(Ht.test(_)){const p=Number(_);if(p>=-2147483648&&p<=2147483647)return p}return null}
1,Ii=function(_){try{_()}catch(p){setTimeout(()=>{throw Be("Exception was thrown by user callback.",p.stack||""),p},Math.floor(0))}},rn=function(_,p){const f=setTimeout(_,p);return"number"==typeof f&&"undefined"!=typeof Deno&&Deno.unrefTimer?Deno.unrefTimer(f):"object"==typeof f&&f.unref&&f.unref(),f};class qt{constructor(p,f){this.appName_=p,this.appCheckProvider=f,this.appCheck=null==f?void 0:f.getImmediate({optional:!0}),this.appCheck||null==f||f.get().then(M=>this.appCheck=M)}getToken(p){return this.appCheck?this.appCheck.getToken(p):new Promise((f,M)=>{setTimeout(()=>{this.appCheck?this.getToken(p).then(f,M):f(null)},0)})}addTokenChangeListener(p){var f;null===(f=this.appCheckProvider)||void 0===f||f.get().then(M=>M.addTokenListener(p))}notifyForInvalidToken(){Be(`Provided AppCheck credentials for the app named "${this.appName_}" are invalid. This usually indicates your app was not initialized correctly.`)}}class xn{constructor(p,f,M){this.appName_=p,this.firebaseOptions_=f,this.authProvider_=M,this.auth_=null,this.auth_=M.getImmediate({optional:!0}),this.auth_||M.onInit(O=>this.auth_=O)}getToken(p){return this.auth_?this.auth_.getToken(p).catch(f=>f&&"auth/token-not-initialized"===f.code?(Qt("Got auth/token-not-initialized error. Treating as null token."),null):Promise.reject(f)):new Promise((f,M)=>{setTimeout(()=>{this.auth_?this.getToken(p).then(f,M):f(null)},0)})}addTokenChangeListener(p){this.auth_?this.auth_.addAuthTokenListener(p):this.authProvider_.get().then(f=>f.addAuthTokenListener(p))}removeTokenChangeListener(p){this.authProvider_.get().then(f=>f.removeAuthTokenListener(p))}notifyForInvalidToken(){let p='Provided authentication credentials for the app named "'+this.appName_+'" are invalid. This usually indicates your app was not initialized correctly. ';p+="credential"in this.firebaseOptions_?'Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.firebaseOptions_?'Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':'Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.',Be(p)}}let fn=(()=>{class _{constructor(f){this.accessToken=f}getToken(f){return Promise.resolve({accessToken:this.accessToken})}addTokenChangeListener(f){f(this.accessToken)}removeTokenChangeListener(f){}notifyForInvalidToken(){}}return _.OWNER="owner",_})();const Pr=/(console\.firebase|firebase-console-\w+\.corp|firebase\.corp)\.google\.com/,Ni="websocket",Gr="long_polling";class jr{constructor(p,f,M,O,X=!1,ye="",Qe=!1,yt=!1){this.secure=f,this.namespace=M,this.webSocketOnly=O,this.nodeAdmin=X,this.persistenceKey=ye,this.includeNamespaceInQueryParams=Qe,this.isUsingEmulator=yt,this._host=p.toLowerCase(),this._domain=this._host.substr(this._host.indexOf(".")+1),this.internalHost=Zt.get("host:"+p)||this._host}isCacheableHost(){return"s-"===this.internalHost.substr(0,2)}isCustomHost(){return"firebaseio.com"!==this._domain&&"firebaseio-demo.com"!==this._domain}get host(){return this._host}set host(p){p!==this.internalHost&&(this.internalHost=p,this.isCacheableHost()&&Zt.set("host:"+this._host,this.internalHost))}toString(){let p=this.toURLString();return this.persistenceKey&&(p+="<"+this.persistenceKey+">"),p}toURLString(){return`${this.secure?"https://":"http://"}${this.host}/${this.includeNamespaceInQueryParams?`?ns=${this.namespace}`:""}`}}function ar(_,p,f){let M;if((0,Ve.hu)("string"==typeof p,"typeof type must == string"),(0,Ve.hu)("object"==typeof f,"typeof params must == object"),p===Ni)M=(_.secure?"wss://":"ws://")+_.internalHost+"/.ws?";else{if(p!==Gr)throw new Error("Unknown connection type: "+p);M=(_.secure?"https://":"http://")+_.internalHost+"/.lp?"}(function or(_){return _.host!==_.internalHost||_.isCustomHost()||_.includeNamespaceInQueryParams})(_)&&(f.ns=_.namespace);const O=[];return x(f,(X,ye)=>{O.push(X+"="+ye)}),M+O.join("&")}class Wi{constructor(){this.counters_={}}incrementCounter(p,f=1){(0,Ve.r3)(this.counters_,p)||(this.counters_[p]=0),this.counters_[p]+=f}get(){return(0,Ve.p$)(this.counters_)}}const Ps={},Ds={};function Qr(_){const p=_.toString();return Ps[p]||(Ps[p]=new Wi),Ps[p]}class Nt{constructor(p){this.onMessage_=p,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}closeAfter(p,f){this.closeAfterResponse=p,this.onClose=f,this.closeAfterResponse<this.currentResponseNum&&(this.onClose(),this.onClose=null)}handleResponse(p,f){for(this.pendingResponses[p]=f;this.pendingResponses[this.currentResponseNum];){const M=this.pendingResponses[this.currentResponseNum];delete this.pendingResponses[this.currentResponseNum];for(let O=0;O<M.length;++O)M[O]&&Ii(()=>{this.onMessage_(M[O])});if(this.currentResponseNum===this.closeAfterResponse){this.onClose&&(this.onClose(),this.onClose=null);break}this.currentResponseNum++}}}class ws{constructor(p,f,M,O,X,ye,Qe){this.connId=p,this.repoInfo=f,this.applicationId=M,this.appCheckToken=O,this.authToken=X,this.transportSessionId=ye,this.lastSessionId=Qe,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=Se(p),this.stats_=Qr(f),this.urlFn=yt=>(this.appCheckToken&&(yt.ac=this.appCheckToken),ar(f,Gr,yt))}open(p,f){this.curSegmentNum=0,this.onDisconnect_=f,this.myPacketOrderer=new Nt(p),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout(()=>{this.log_("Timed out trying to connect."),this.onClosed_(),this.connectTimeoutTimer_=null},Math.floor(3e4)),function(_){if((0,Ve.Yr)()||"complete"===document.readyState)_();else{let p=!1;const f=function(){document.body?p||(p=!0,_()):setTimeout(f,Math.floor(10))};document.addEventListener?(document.addEventListener("DOMContentLoaded",f,!1),window.addEventListener("load",f,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",()=>{"complete"===document.readyState&&f()}),window.attachEvent("onload",f))}}(()=>
1{if(this.isClosed_)return;this.scriptTagHolder=new Ro((...X)=>{const[ye,Qe,yt,Lt,Tn]=X;if(this.incrementIncomingBytes_(X),this.scriptTagHolder)if(this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null),this.everConnected_=!0,"start"===ye)this.id=Qe,this.password=yt;else{if("close"!==ye)throw new Error("Unrecognized command received: "+ye);Qe?(this.scriptTagHolder.sendNewPolls=!1,this.myPacketOrderer.closeAfter(Qe,()=>{this.onClosed_()})):this.onClosed_()}},(...X)=>{const[ye,Qe]=X;this.incrementIncomingBytes_(X),this.myPacketOrderer.handleResponse(ye,Qe)},()=>{this.onClosed_()},this.urlFn);const M={start:"t"};M.ser=Math.floor(1e8*Math.random()),this.scriptTagHolder.uniqueCallbackIdentifier&&(M.cb=this.scriptTagHolder.uniqueCallbackIdentifier),M.v="5",this.transportSessionId&&(M.s=this.transportSessionId),this.lastSessionId&&(M.ls=this.lastSessionId),this.applicationId&&(M.p=this.applicationId),this.appCheckToken&&(M.ac=this.appCheckToken),"undefined"!=typeof location&&location.hostname&&Pr.test(location.hostname)&&(M.r="f");const O=this.urlFn(M);this.log_("Connecting via long-poll to "+O),this.scriptTagHolder.addTag(O,()=>{})})}start(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)}static forceAllow(){ws.forceAllow_=!0}static forceDisallow(){ws.forceDisallow_=!0}static isAvailable(){return!((0,Ve.Yr)()||!ws.forceAllow_&&(ws.forceDisallow_||"undefined"==typeof document||null==document.createElement||"object"==typeof window&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href)||"object"==typeof Windows&&"object"==typeof Windows.UI))}markConnectionHealthy(){}shutdown_(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)}onClosed_(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))}close(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())}send(p){const f=(0,Ve.Wl)(p);this.bytesSent+=f.length,this.stats_.incrementCounter("bytes_sent",f.length);const M=(0,Ve.h$)(f),O=N(M,1840);for(let X=0;X<O.length;X++)this.scriptTagHolder.enqueueSegment(this.curSegmentNum,O.length,O[X]),this.curSegmentNum++}addDisconnectPingFrame(p,f){if((0,Ve.Yr)())return;this.myDisconnFrame=document.createElement("iframe");const M={dframe:"t"};M.id=p,M.pw=f,this.myDisconnFrame.src=this.urlFn(M),this.myDisconnFrame.style.display="none",document.body.appendChild(this.myDisconnFrame)}incrementIncomingBytes_(p){const f=(0,Ve.Wl)(p).length;this.bytesReceived+=f,this.stats_.incrementCounter("bytes_received",f)}}class Ro{constructor(p,f,M,O){if(this.onDisconnect=M,this.urlFn=O,this.outstandingRequests=new Set,this.pendingSegs=[],this.currentSerial=Math.floor(1e8*Math.random()),this.sendNewPolls=!0,(0,Ve.Yr)())this.commandCB=p,this.onMessageCB=f;else{this.uniqueCallbackIdentifier=Cn(),window["pLPCommand"+this.uniqueCallbackIdentifier]=p,window["pRTLPCB"+this.uniqueCallbackIdentifier]=f,this.myIFrame=Ro.createIFrame_();let X="";this.myIFrame.src&&"javascript:"===this.myIFrame.src.substr(0,11)&&(X='<script>document.domain="'+document.domain+'";<\/script>');const ye="<html><body>"+X+"</body></html>";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(ye),this.myIFrame.doc.close()}catch(Qe){Qt("frame writing exception"),Qe.stack&&Qt(Qe.stack),Qt(Qe)}}}static createIFrame_(){const p=document.createElement("iframe");if(p.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(p);try{p.contentWindow.document||Qt("No IE domain setting required")}catch(f){const M=document.domain;p.src="javascript:void((function(){document.open();document.domain='"+M+"';document.close();})())"}return p.contentDocument?p.doc=p.contentDocument:p.contentWindow?p.doc=p.contentWindow.document:p.document&&(p.doc=p.document),p}close(){this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.textContent="",setTimeout(()=>{null!==this.myIFrame&&(document.body.removeChild(this.myIFrame),this.myIFrame=null)},Math.floor(0)));const p=this.onDisconnect;p&&(this.onDisconnect=null,p())}
1startLongPoll(p,f){for(this.myID=p,this.myPW=f,this.alive=!0;this.newRequest_(););}newRequest_(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;const p={};p.id=this.myID,p.pw=this.myPW,p.ser=this.currentSerial;let f=this.urlFn(p),M="",O=0;for(;this.pendingSegs.length>0&&this.pendingSegs[0].d.length+30+M.length<=1870;){const ye=this.pendingSegs.shift();M=M+"&seg"+O+"="+ye.seg+"&ts"+O+"="+ye.ts+"&d"+O+"="+ye.d,O++}return f+=M,this.addLongPollTag_(f,this.currentSerial),!0}return!1}enqueueSegment(p,f,M){this.pendingSegs.push({seg:p,ts:f,d:M}),this.alive&&this.newRequest_()}addLongPollTag_(p,f){this.outstandingRequests.add(f);const M=()=>{this.outstandingRequests.delete(f),this.newRequest_()},O=setTimeout(M,Math.floor(25e3));this.addTag(p,()=>{clearTimeout(O),M()})}addTag(p,f){(0,Ve.Yr)()?this.doNodeLongPoll(p,f):setTimeout(()=>{try{if(!this.sendNewPolls)return;const M=this.myIFrame.doc.createElement("script");M.type="text/javascript",M.async=!0,M.src=p,M.onload=M.onreadystatechange=function(){const O=M.readyState;(!O||"loaded"===O||"complete"===O)&&(M.onload=M.onreadystatechange=null,M.parentNode&&M.parentNode.removeChild(M),f())},M.onerror=()=>{Qt("Long-poll script failed to load: "+p),this.sendNewPolls=!1,this.close()},this.myIFrame.doc.body.appendChild(M)}catch(M){}},Math.floor(1))}}let Ui=null;"undefined"!=typeof MozWebSocket?Ui=MozWebSocket:"undefined"!=typeof WebSocket&&(Ui=WebSocket);let Ys=(()=>{class _{constructor(f,M,O,X,ye,Qe,yt){this.connId=f,this.applicationId=O,this.appCheckToken=X,this.authToken=ye,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=Se(this.connId),this.stats_=Qr(M),this.connURL=_.connectionURL_(M,Qe,yt,X,O),this.nodeAdmin=M.nodeAdmin}static connectionURL_(f,M,O,X,ye){const Qe={v:"5"};return!(0,Ve.Yr)()&&"undefined"!=typeof location&&location.hostname&&Pr.test(location.hostname)&&(Qe.r="f"),M&&(Qe.s=M),O&&(Qe.ls=O),X&&(Qe.ac=X),ye&&(Qe.p=ye),ar(f,Ni,Qe)}open(f,M){this.onDisconnect=M,this.onMessage=f,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,Zt.set("previous_websocket_failure",!0);try{let O;if((0,Ve.Yr)()){O={headers:{"User-Agent":`Firebase/5/${K}/${process.platform}/${this.nodeAdmin?"AdminNode":"Node"}`,"X-Firebase-GMPID":this.applicationId||""}},this.authToken&&(O.headers.Authorization=`Bearer ${this.authToken}`),this.appCheckToken&&(O.headers["X-Firebase-AppCheck"]=this.appCheckToken);const ye=process.env,Qe=0===this.connURL.indexOf("wss://")?ye.HTTPS_PROXY||ye.https_proxy:ye.HTTP_PROXY||ye.http_proxy;Qe&&(O.proxy={origin:Qe})}this.mySock=new Ui(this.connURL,[],O)}catch(O){this.log_("Error instantiating WebSocket.");const X=O.message||O.data;return X&&this.log_(X),void this.onClosed_()}this.mySock.onopen=()=>{this.log_("Websocket connected."),this.everConnected_=!0},this.mySock.onclose=()=>{this.log_("Websocket connection was disconnected."),this.mySock=null,this.onClosed_()},this.mySock.onmessage=O=>{this.handleIncomingFrame(O)},this.mySock.onerror=O=>{this.log_("WebSocket error. Closing connection.");const X=O.message||O.data;X&&this.log_(X),this.onClosed_()}}start(){}static forceDisallow(){_.forceDisallow_=!0}static isAvailable(){let f=!1;if("undefined"!=typeof navigator&&navigator.userAgent){const O=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);O&&O.length>1&&parseFloat(O[1])<4.4&&(f=!0)}return!f&&null!==Ui&&!_.forceDisallow_}static previouslyFailed(){return Zt.isInMemoryStorage||!0===Zt.get("previous_websocket_failure")}markConnectionHealthy(){Zt.remove("previous_websocket_failure")}appendFrame_(f){if(this.frames.push(f),this.frames.length===this.totalFrames){const M=this.frames.join("");this.frames=null;const O=(0,Ve.cI)(M);this.onMessage(O)}}handleNewFrameCount_(f){this.totalFrames=f,this.frames=[]}extractFrameCount_(f){if((0,Ve.hu)(null===this.frames,"We already have a frame buffer"),f.length<=6){const M=Number(f);if(!isNaN(M))return this.handleNewFrameCount_(M),null}return this.handleNewFrameCount_(1),f}handleIncomingFrame(f){if(null===this.mySock)return;const M=f.data;if(this.bytesReceived+=M.length,this.stats_.incrementCounter("bytes_received",M.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(M);else{const O=this.extractFrameCount_(M);null!==O&&this.appendFrame_(O)}}send(f){this.resetKeepAlive();const M=(0,Ve.Wl)(f);this.bytesSent+=M.length,this.stats_.incrementCounter("bytes_sent",M.length);const O=N(M,16384);O.length>1&&this.sendString_(String(O.length));for(let X=0;X<O.length;X++)this.sendString_(O[X])}shutdown_(){this.isClosed_=!0,this.keepaliveTimer&&(clearInterval(this.keepaliveTimer),this.keepaliveTimer=null),this.mySock&&(this.mySock.close(),this.mySock=null)}onClosed_(){this.isClosed_||(this.log_("WebSocket is closing itself"),this.shutdown_(),this.onDisconnect&&(this.onDisconnect(this.everConnected_),this.onDisconnect=null))}close(){this.isClosed_||(this.log_("WebSocket is being closed"),this.shutdown_())}resetKeepAlive(){clearInterval(this.keepaliveTimer),this.keepaliveTimer=setInterval(()=>{this.mySock&&this.sendString_("0"),this.resetKeepAlive()},Math.floor(45e3))}sendString_(f){try{this.mySock.send(f)}catch(M){this.log_("Exception thrown from WebSocket.send():",M.message||M.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}}}return _.responsesRequiredToBeHealthy=2,_.healthyTimeout=3e4,_})(),dr=(()=>{class _{constructor(f){this.initTransports_(f)}static get ALL_TRANSPORTS(){return[ws,Ys]}static get IS_TRANSPORT_INITIALIZED(){return this.globalTransportInitialized_}initTransports_(f){const M=Ys&&Ys.isAvailable();let O=M&&!Ys.previouslyFailed();if(f.webSocketOnly&&(M||Be("wss:// URL used, but browser isn't known to support websockets. Trying anyway."),O=!0),O)this.transports_=[Ys];else{const X=this.transports_=[];for(const ye of _.ALL_TRANSPORTS)ye&&ye.isAvailable()&&X.push(ye);_.globalTransportInitialized_=!0}}initialTransport(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")}upgradeTransport(){return this.transports_.length>1?this.transports_[1]:null}}return _.globalTransportInitialized_=!1,_})();class ia{constructor(p,f,M,O,X,ye,Qe,yt,Lt,Tn){this.id=p,this.repoInfo_=f,this.applicationId_=M,this.appCheckToken_=O,this.authToken_=X,this.onMessage_=ye,this.onReady_=Qe,this.onDisconnect_=yt,this.onKill_=Lt,this.lastSessionId=Tn,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=Se("c:"+this.id+":"),this.transportManager_=new dr(f),this.log_("Connection created"),this.start_()}start_(){const p=this.transportManager_.initialTransport();this.conn_=new p(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,null,this.lastSessionId),this.primaryResponsesRequired_=p.responsesRequiredToBeHealthy||0;const f=this.connReceiver_(this.conn_),M=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout(()=>{this.conn_&&this.conn_.open(f,M)},Math.floor(0));const O=p.healthyTimeout||0;O>0&&(this.healthyTimeout_=rn(()=>{this.healthyTimeout_=null,this.isHealthy_||(this.conn_&&this.conn_.bytesReceived>102400?(this.log_("Connection exceeded healthy timeout but has received "+this.conn_.bytesReceived+" bytes. Marking connection healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()):this.conn_&&this.conn_.bytesSent>10240?this.log_("Connection exceeded healthy timeout but has sent "+this.conn_.bytesSent+" bytes. Leaving connection alive."):(this.log_("Closing unhealthy connection after timeout."),this.close()))},Math.floor(O)))}nextTransportId_(){return"c:"+this.id+":"+this.connectionCount++}disconnReceiver_(p){return f=>{p===this.conn_?this.onConnectionLost_(f):p===this.secondaryConn_?(this.log_("Secondary connection lost."),this.onSecondaryConnectionLost_()):this.log_("closing an old connection")}}connReceiver_(p){return f=>{2!==this.state_&&(p===this.rx_?this.onPrimaryMessageReceived_(f):p===this.secondaryConn_?this.onSecondaryMessageReceived_(f):this.log_("message on old connection"))}}sendRequest(p){this.sendData_({t:"d",d:p})}tryCleanupConnection(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)}onSecondaryControl_(p){if("t"in p){const f=p.t;"a"===f?this.upgradeIfSecondaryHealthy_():"r"===f?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),(this.tx_===this.secondaryConn_||this.rx_===this.secondaryConn_)&&this.close()):"o"===f&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}}onSecondaryMessageReceived_(p){const f=De("t",p),M=De("d",p);if("c"===f)this.onSecondaryControl_(M);else{if("d"!==f)throw new Error("Unknown protocol layer: "+f);this.pendingDataMessages.push(M)}}upgradeIfSecondaryHealthy_(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t
1:"c",d:{t:"p",d:{}}}))}proceedWithUpgrade_(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:"a",d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:"n",d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()}onPrimaryMessageReceived_(p){const f=De("t",p),M=De("d",p);"c"===f?this.onControl_(M):"d"===f&&this.onDataMessage_(M)}onDataMessage_(p){this.onPrimaryResponse_(),this.onMessage_(p)}onPrimaryResponse_(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))}onControl_(p){const f=De("t",p);if("d"in p){const M=p.d;if("h"===f){const O=Object.assign({},M);this.repoInfo_.isUsingEmulator&&(O.h=this.repoInfo_.host),this.onHandshake_(O)}else if("n"===f){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(let O=0;O<this.pendingDataMessages.length;++O)this.onDataMessage_(this.pendingDataMessages[O]);this.pendingDataMessages=[],this.tryCleanupConnection()}else"s"===f?this.onConnectionShutdown_(M):"r"===f?this.onReset_(M):"e"===f?Ke("Server Error: "+M):"o"===f?(this.log_("got pong on primary."),this.onPrimaryResponse_(),this.sendPingOnPrimaryIfNecessary_()):Ke("Unknown control packet command: "+f)}}onHandshake_(p){const f=p.ts,M=p.v,O=p.h;this.sessionId=p.s,this.repoInfo_.host=O,0===this.state_&&(this.conn_.start(),this.onConnectionEstablished_(this.conn_,f),"5"!==M&&Be("Protocol version mismatch detected"),this.tryStartUpgrade_())}tryStartUpgrade_(){const p=this.transportManager_.upgradeTransport();p&&this.startUpgrade_(p)}startUpgrade_(p){this.secondaryConn_=new p(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,this.sessionId),this.secondaryResponsesRequired_=p.responsesRequiredToBeHealthy||0;const f=this.connReceiver_(this.secondaryConn_),M=this.disconnReceiver_(this.secondaryConn_);this.secondaryConn_.open(f,M),rn(()=>{this.secondaryConn_&&(this.log_("Timed out trying to upgrade."),this.secondaryConn_.close())},Math.floor(6e4))}onReset_(p){this.log_("Reset packet received. New host: "+p),this.repoInfo_.host=p,1===this.state_?this.close():(this.closeConnections_(),this.start_())}onConnectionEstablished_(p,f){this.log_("Realtime connection established."),this.conn_=p,this.state_=1,this.onReady_&&(this.onReady_(f,this.sessionId),this.onReady_=null),0===this.primaryResponsesRequired_?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):rn(()=>{this.sendPingOnPrimaryIfNecessary_()},Math.floor(5e3))}sendPingOnPrimaryIfNecessary_(){!this.isHealthy_&&1===this.state_&&(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:"p",d:{}}}))}onSecondaryConnectionLost_(){const p=this.secondaryConn_;this.secondaryConn_=null,(this.tx_===p||this.rx_===p)&&this.close()}onConnectionLost_(p){this.conn_=null,p||0!==this.state_?1===this.state_&&this.log_("Realtime connection lost."):(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(Zt.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)),this.close()}onConnectionShutdown_(p){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(p),this.onKill_=null),this.onDisconnect_=null,this.close()}sendData_(p){if(1!==this.state_)throw"Connection is not connected";this.tx_.send(p)}close(){2!==this.state_&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))}closeConnections_(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)}}class Do{put(p,f,M,O){}merge(p,f,M,O){}refreshAuthToken(p){}refreshAppCheckToken(p){}onDisconnectPut(p,f,M){}onDisconnectMerge(p,f,M){}onDisconnectCancel(p,f){}reportStats(p){}}class Yi{constructor(p){this.allowedEvents_=p,this.listeners_={},(0,Ve.hu)(Array.isArray(p)&&p.length>0,"Requires a non-empty array")}trigger(p,...f){if(Array.isArray(this.listeners_[p])){const M=[...this.listeners_[p]];for(let O=0;O<M.length;O++)M[O].callback.apply(M[O].context,f)}}on(p,f,M){this.validateEventType_(p),this.listeners_[p]=this.listeners_[p]||[],this.listeners_[p].push({callback:f,context:M});const O=this.getInitialEvent(p);O&&f.apply(M,O)}off(p,f,M){this.validateEventType_(p);const O=this.listeners_[p]||[];for(let X=0;X<O.length;X++)if(O[X].callback===f&&(!M||M===O[X].context))return void O.splice(X,1)}validateEventType_(p){(0,Ve.hu)(this.allowedEvents_.find(f=>f===p),"Unknown event: "+p)}}class gr extends Yi{constructor(){super(["online"]),this.online_=!0,"undefined"!=typeof window&&void 0!==window.addEventListener&&!(0,Ve.uI)()&&(window.addEventListener("online",()=>{this.online_||(this.online_=!0,this.trigger("online",!0))},!1),window.addEventListener("offline",()=>{this.online_&&(this.online_=!1,this.trigger("online",!1))},!1))}static getInstance(){return new gr}getInitialEvent(p){return(0,Ve.hu)("online"===p,"Unknown event type: "+p),[this.online_]}currentlyOnline(){return this.online_}}class Ri{constructor(p,f){if(void 0===f){this.pieces_=p.split("/");let M=0;for(let O=0;O<this.pieces_.length;O++)this.pieces_[O].length>0&&(this.pieces_[M]=this.pieces_[O],M++);this.pieces_.length=M,this.pieceNum_=0}else this.pieces_=p,this.pieceNum_=f}toString(){let p="";for(let f=this.pieceNum_;f<this.pieces_.length;f++)""!==this.pieces_[f]&&(p+="/"+this.pieces_[f]);return p||"/"}}function ri(){return new Ri("")}function xi(_){return _.pieceNum_>=_.pieces_.length?null:_.pieces_[_.pieceNum_]}function Yr(_){return _.pieces_.length-_.pieceNum_}function rr(_){let p=_.pieceNum_;return p<_.pieces_.length&&p++,new Ri(_.pieces_,p)}function wo(_){return _.pieceNum_<_.pieces_.length?_.pieces_[_.pieces_.length-1]:null}function Ir(_,p=0){return _.pieces_.slice(_.pieceNum_+p)}function fe(_){if(_.pieceNum_>=_.pieces_.length)return null;const p=[];for(let f=_.pieceNum_;f<_.pieces_.length-1;f++)p.push(_.pieces_[f]);return new Ri(p,0)}function Ne(_,p){const f=[];for(let M=_.pieceNum_;M<_.pieces_.length;M++)f.push(_.pieces_[M]);if(p instanceof Ri)for(let M=p.pieceNum_;M<p.pieces_.length;M++)f.push(p.pieces_[M]);else{const M=p.split("/");for(let O=0;O<M.length;O++)M[O].length>0&&f.push(M[O])}return new Ri(f,0)}function le(_){return _.pieceNum_>=_.pieces_.length}function qe(_,p){const f=xi(_),M=xi(p);if(null===f)return p;if(f===M)return qe(rr(_),rr(p));
1throw new Error("INTERNAL ERROR: innerPath ("+p+") is not within outerPath ("+_+")")}function Ct(_,p){const f=Ir(_,0),M=Ir(p,0);for(let O=0;O<f.length&&O<M.length;O++){const X=ht(f[O],M[O]);if(0!==X)return X}return f.length===M.length?0:f.length<M.length?-1:1}function dn(_,p){if(Yr(_)!==Yr(p))return!1;for(let f=_.pieceNum_,M=p.pieceNum_;f<=_.pieces_.length;f++,M++)if(_.pieces_[f]!==p.pieces_[M])return!1;return!0}function hn(_,p){let f=_.pieceNum_,M=p.pieceNum_;if(Yr(_)>Yr(p))return!1;for(;f<_.pieces_.length;){if(_.pieces_[f]!==p.pieces_[M])return!1;++f,++M}return!0}class li{constructor(p,f){this.errorPrefix_=f,this.parts_=Ir(p,0),this.byteLength_=Math.max(1,this.parts_.length);for(let M=0;M<this.parts_.length;M++)this.byteLength_+=(0,Ve.ug)(this.parts_[M]);Xi(this)}}function Xi(_){if(_.byteLength_>768)throw new Error(_.errorPrefix_+"has a key path longer than 768 bytes ("+_.byteLength_+").");if(_.parts_.length>32)throw new Error(_.errorPrefix_+"path specified exceeds the maximum depth that can be written (32) or object contains a cycle "+$i(_))}function $i(_){return 0===_.parts_.length?"":"in property '"+_.parts_.join(".")+"'"}class Xr extends Yi{constructor(){let p,f;super(["visible"]),"undefined"!=typeof document&&void 0!==document.addEventListener&&(void 0!==document.hidden?(f="visibilitychange",p="hidden"):void 0!==document.mozHidden?(f="mozvisibilitychange",p="mozHidden"):void 0!==document.msHidden?(f="msvisibilitychange",p="msHidden"):void 0!==document.webkitHidden&&(f="webkitvisibilitychange",p="webkitHidden")),this.visible_=!0,f&&document.addEventListener(f,()=>{const M=!document[p];M!==this.visible_&&(this.visible_=M,this.trigger("visible",M))},!1)}static getInstance(){return new Xr}getInitialEvent(p){return(0,Ve.hu)("visible"===p,"Unknown event type: "+p),[this.visible_]}}const hr=1e3;let Ss,mi=(()=>{class _ extends Do{constructor(f,M,O,X,ye,Qe,yt,Lt){if(super(),this.repoInfo_=f,this.applicationId_=M,this.onDataUpdate_=O,this.onConnectStatus_=X,this.onServerInfoUpdate_=ye,this.authTokenProvider_=Qe,this.appCheckTokenProvider_=yt,this.authOverride_=Lt,this.id=_.nextPersistentConnectionId_++,this.log_=Se("p:"+this.id+":"),this.interruptReasons_={},this.listens=new Map,this.outstandingPuts_=[],this.outstandingGets_=[],this.outstandingPutCount_=0,this.outstandingGetCount_=0,this.onDisconnectRequestQueue_=[],this.connected_=!1,this.reconnectDelay_=hr,this.maxReconnectDelay_=3e5,this.securityDebugCallback_=null,this.lastSessionId=null,this.establishConnectionTimer_=null,this.visible_=!1,this.requestCBHash_={},this.requestNumber_=0,this.realtime_=null,this.authToken_=null,this.appCheckToken_=null,this.forceTokenRefresh_=!1,this.invalidAuthTokenCount_=0,this.invalidAppCheckTokenCount_=0,this.firstConnection_=!0,this.lastConnectionAttemptTime_=null,this.lastConnectionEstablishedTime_=null,Lt&&!(0,Ve.Yr)())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");Xr.getInstance().on("visible",this.onVisible_,this),-1===f.host.indexOf("fblocal")&&gr.getInstance().on("online",this.onOnline_,this)}sendRequest(f,M,O){const X=++this.requestNumber_,ye={r:X,a:f,b:M};this.log_((0,Ve.Wl)(ye)),(0,Ve.hu)(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(ye),O&&(this.requestCBHash_[X]=O)}get(f){this.initConnection_();const M=new Ve.BH,O={p:f._path.toString(),q:f._queryObject};return this.outstandingGets_.push({action:"g",request:O,onComplete:Qe=>{const yt=Qe.d;"ok"===Qe.s?M.resolve(yt):M.reject(yt)}}),this.outstandingGetCount_++,this.connected_&&this.sendGet_(this.outstandingGets_.length-1),M.promise}listen(f,M,O,X){this.initConnection_();const ye=f._queryIdentifier,Qe=f._path.toString();this.log_("Listen called for "+Qe+" "+ye),this.listens.has(Qe)||this.listens.set(Qe,new Map),(0,Ve.hu)(f._queryParams.isDefault()||!f._queryParams.loadsAllData(),"listen() called for non-default but complete query"),(0,Ve.hu)(!this.listens.get(Qe).has(ye),"listen() called twice for same path/queryId.");const yt={onComplete:X,hashFn:M,query:f,tag:O};this.listens.get(Qe).set(ye,yt),this.connected_&&this.sendListen_(yt)}
1sendGet_(f){const M=this.outstandingGets_[f];this.sendRequest("g",M.request,O=>{delete this.outstandingGets_[f],this.outstandingGetCount_--,0===this.outstandingGetCount_&&(this.outstandingGets_=[]),M.onComplete&&M.onComplete(O)})}sendListen_(f){const M=f.query,O=M._path.toString(),X=M._queryIdentifier;this.log_("Listen on "+O+" for "+X);const ye={p:O};f.tag&&(ye.q=M._queryObject,ye.t=f.tag),ye.h=f.hashFn(),this.sendRequest("q",ye,yt=>{const Lt=yt.d,Tn=yt.s;_.warnOnListenWarnings_(Lt,M),(this.listens.get(O)&&this.listens.get(O).get(X))===f&&(this.log_("listen response",yt),"ok"!==Tn&&this.removeListen_(O,X),f.onComplete&&f.onComplete(Tn,Lt))})}static warnOnListenWarnings_(f,M){if(f&&"object"==typeof f&&(0,Ve.r3)(f,"w")){const O=(0,Ve.DV)(f,"w");if(Array.isArray(O)&&~O.indexOf("no_index")){const X='".indexOn": "'+M._queryParams.getIndex().toString()+'"',ye=M._path.toString();Be(`Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding ${X} at ${ye} to your security rules for better performance.`)}}}refreshAuthToken(f){this.authToken_=f,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},()=>{}),this.reduceReconnectDelayIfAdminCredential_(f)}reduceReconnectDelayIfAdminCredential_(f){(f&&40===f.length||(0,Ve.GJ)(f))&&(this.log_("Admin auth credential detected. Reducing max reconnect time."),this.maxReconnectDelay_=3e4)}refreshAppCheckToken(f){this.appCheckToken_=f,this.log_("App check token refreshed"),this.appCheckToken_?this.tryAppCheck():this.connected_&&this.sendRequest("unappeck",{},()=>{})}tryAuth(){if(this.connected_&&this.authToken_){const f=this.authToken_,M=(0,Ve.w9)(f)?"auth":"gauth",O={cred:f};null===this.authOverride_?O.noauth=!0:"object"==typeof this.authOverride_&&(O.authvar=this.authOverride_),this.sendRequest(M,O,X=>{const ye=X.s,Qe=X.d||"error";this.authToken_===f&&("ok"===ye?this.invalidAuthTokenCount_=0:this.onAuthRevoked_(ye,Qe))})}}tryAppCheck(){this.connected_&&this.appCheckToken_&&this.sendRequest("appcheck",{token:this.appCheckToken_},f=>{const M=f.s,O=f.d||"error";"ok"===M?this.invalidAppCheckTokenCount_=0:this.onAppCheckRevoked_(M,O)})}unlisten(f,M){const O=f._path.toString(),X=f._queryIdentifier;this.log_("Unlisten called for "+O+" "+X),(0,Ve.hu)(f._queryParams.isDefault()||!f._queryParams.loadsAllData(),"unlisten() called for non-default but complete query"),this.removeListen_(O,X)&&this.connected_&&this.sendUnlisten_(O,X,f._queryObject,M)}sendUnlisten_(f,M,O,X){this.log_("Unlisten on "+f+" for "+M);const ye={p:f};X&&(ye.q=O,ye.t=X),this.sendRequest("n",ye)}onDisconnectPut(f,M,O){this.initConnection_(),this.connected_?this.sendOnDisconnect_("o",f,M,O):this.onDisconnectRequestQueue_.push({pathString:f,action:"o",data:M,onComplete:O})}onDisconnectMerge(f,M,O){this.initConnection_(),this.connected_?this.sendOnDisconnect_("om",f,M,O):this.onDisconnectRequestQueue_.push({pathString:f,action:"om",data:M,onComplete:O})}onDisconnectCancel(f,M){this.initConnection_(),this.connected_?this.sendOnDisconnect_("oc",f,null,M):this.onDisconnectRequestQueue_.push({pathString:f,action:"oc",data:null,onComplete:M})}sendOnDisconnect_(f,M,O,X){const ye={p:M,d:O};this.log_("onDisconnect "+f,ye),this.sendRequest(f,ye,Qe=>{X&&setTimeout(()=>{X(Qe.s,Qe.d)},Math.floor(0))})}put(f,M,O,X){this.putInternal("p",f,M,O,X)}merge(f,M,O,X){this.putInternal("m",f,M,O,X)}putInternal(f,M,O,X,ye){this.initConnection_();const Qe={p:M,d:O};void 0!==ye&&(Qe.h=ye),this.outstandingPuts_.push({action:f,request:Qe,onComplete:X}),this.outstandingPutCount_++,this.connected_?this.sendPut_(this.outstandingPuts_.length-1):this.log_("Buffering put: "+M)}sendPut_(f){const M=this.outstandingPuts_[f].action,O=this.outstandingPuts_[f].request,X=this.outstandingPuts_[f].onComplete;this.outstandingPuts_[f].queued=this.connected_,this.sendRequest(M,O,ye=>{this.log_(M+" response",ye),delete this.outstandingPuts_[f],this.outstandingPutCount_--,0===this.outstandingPutCount_&&(this.outstandingPuts_=[]),X&&X(ye.s,ye.d)})}reportStats(f){if(this.connected_){const M={c:f};this.log_("reportStats",M),this.sendRequest("s",M,O=>{"ok"!==O.s&&this.log_("reportStats","Error sending stats: "+O.d)})}}onDataMessage_(f){if("r"in f){this.log_("from server: "+(0,Ve.Wl)(f));const M=f.r,O=this.requestCBHash_[M];O&&(delete this.requestCBHash_[M],O(f.b))}else{if("error"in f)throw"A server-side error has occurred: "+f.error;"a"in f&&this.onDataPush_(f.a,f.b)}}onDataPush_(f,M){this.log_("handleServerMessage",f,M),"d"===f?this.onDataUpdate_(M.p,M.d,!1,M.t):"m"===f?this.onDataUpdate_(M.p,M.d,!0,M.t):"c"===f?this.onListenRevoked_(M.p,M.q):"ac"===f?this.onAuthRevoked_(M.s,M.d):"apc"===f?this.onAppCheckRevoked_(M.s,M.d):"sd"===f?this.onSecurityDebugPacket_(M):Ke("Unrecognized action received from server: "+(0,Ve.Wl)(f)+"\
1nAre you using the latest client?")}onReady_(f,M){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=(new Date).getTime(),this.handleTimestamp_(f),this.lastSessionId=M,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)}scheduleConnect_(f){(0,Ve.hu)(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout(()=>{this.establishConnectionTimer_=null,this.establishConnection_()},Math.floor(f))}initConnection_(){!this.realtime_&&this.firstConnection_&&this.scheduleConnect_(0)}onVisible_(f){f&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible. Reducing delay."),this.reconnectDelay_=hr,this.realtime_||this.scheduleConnect_(0)),this.visible_=f}onOnline_(f){f?(this.log_("Browser went online."),this.reconnectDelay_=hr,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline. Killing connection."),this.realtime_&&this.realtime_.close())}onRealtimeDisconnect_(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){this.visible_?this.lastConnectionEstablishedTime_&&((new Date).getTime()-this.lastConnectionEstablishedTime_>3e4&&(this.reconnectDelay_=hr),this.lastConnectionEstablishedTime_=null):(this.log_("Window isn't visible. Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime());const f=(new Date).getTime()-this.lastConnectionAttemptTime_;let M=Math.max(0,this.reconnectDelay_-f);M=Math.random()*M,this.log_("Trying to reconnect in "+M+"ms"),this.scheduleConnect_(M),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,1.3*this.reconnectDelay_)}this.onConnectStatus_(!1)}establishConnection_(){var f=this;return(0,Vn.Z)(function*(){if(f.shouldReconnect_()){f.log_("Making a connection attempt"),f.lastConnectionAttemptTime_=(new Date).getTime(),f.lastConnectionEstablishedTime_=null;const M=f.onDataMessage_.bind(f),O=f.onReady_.bind(f),X=f.onRealtimeDisconnect_.bind(f),ye=f.id+":"+_.nextConnectionId_++,Qe=f.lastSessionId;let yt=!1,Lt=null;const Tn=function(){Lt?Lt.close():(yt=!0,X())};f.realtime_={close:Tn,sendRequest:function(Li){(0,Ve.hu)(Lt,"sendRequest call when we're not connected not allowed."),Lt.sendRequest(Li)}};const Yn=f.forceTokenRefresh_;f.forceTokenRefresh_=!1;try{const[Li,nr]=yield Promise.all([f.authTokenProvider_.getToken(Yn),f.appCheckTokenProvider_.getToken(Yn)]);yt?Qt("getToken() completed but was canceled"):(Qt("getToken() completed. Creating connection."),f.authToken_=Li&&Li.accessToken,f.appCheckToken_=nr&&nr.token,Lt=new ia(ye,f.repoInfo_,f.applicationId_,f.appCheckToken_,f.authToken_,M,O,X,os=>{Be(os+" ("+f.repoInfo_.toString()+")"),f.interrupt("server_kill")},Qe))}catch(Li){f.log_("Failed to get token: "+Li),yt||(f.repoInfo_.nodeAdmin&&Be(Li),Tn())}}})()}interrupt(f){Qt("Interrupting connection for reason: "+f),this.interruptReasons_[f]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())}resume(f){Qt("Resuming connection for reason: "+f),delete this.interruptReasons_[f],(0,Ve.xb)(this.interruptReasons_)&&(this.reconnectDelay_=hr,this.realtime_||this.scheduleConnect_(0))}handleTimestamp_(f){const M=f-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:M})}cancelSentTransactions_(){for(let f=0;f<this.outstandingPuts_.length;f++){const M=this.outstandingPuts_[f];M&&"h"in M.request&&M.queued&&(M.onComplete&&M.onComplete("disconnect"),delete this.outstandingPuts_[f],this.outstandingPutCount_--)}0===this.outstandingPutCount_&&(this.outstandingPuts_=[])}onListenRevoked_(f,M){let O;O=M?M.map(ye=>U(ye)).join("$"):"default";const X=this.removeListen_(f,O);X&&X.onComplete&&X.onComplete("permission_denied")}removeListen_(f,M){const O=new Ri(f).toString();let X;if(this.listens.has(O)){const ye=this.listens.get(O);X=ye.get(M),ye.delete(M),0===ye.size&&this.listens.delete(O)}else X=void 0;return X}onAuthRevoked_(f,M){Qt("Auth token revoked: "+f+"/"+M),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),("invalid_token"===f||"permission_denied"===f)&&(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=3&&(this.reconnectDelay_=3e4,this.authTokenProvider_.notifyForInvalidToken()))}onAppCheckRevoked_(f,M){Qt("App check token revoked: "+f+"/"+M),this.appCheckToken_=null,this.forceTokenRefresh_=!0,("invalid_token"===f||"permission_denied"===f)&&(this.invalidAppCheckTokenCount_++,this.invalidAppCheckTokenCount_>=3&&this.appCheckTokenProvider_.notifyForInvalidToken())}onSecurityDebugPacket_(f){this.securityDebugCallback_?this.securityDebugCallback_(f):"msg"in f&&console.log("FIREBASE: "+f.msg.replace("\n","\nFIREBASE: "))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const f of this.listens.values())for(const M of f.values())this.sendListen_(M);for(let f=0;f<this.outstandingPuts_.length;f++)this.outstandingPuts_[f]&&this.sendPut_(f);for(;this.onDisconnectRequestQueue_.length;){const f=this.onDisconnectRequestQueue_.shift();this.sendOnDisconnect_(f.action,f.pathString,f.data,f.onComplete)}for(let f=0;f<this.outstandingGets_.length;f++)this.outstandingGets_[f]&&this.sendGet_(f)}sendConnectStats_(){const f={};let M="js";(0,Ve.Yr)()&&(M=this.repoInfo_.nodeAdmin?"admin_node":"node"),f["sdk."+M+"."+K.replace(/\./g,"-")]=1,(0,Ve.uI)()?f["framework.cordova"]=1:(0,Ve.b$)()&&(f["framework.reactnative"]=1),this.reportStats(f)}shouldReconnect_(){const f=gr.getInstance().currentlyOnline();return(0,Ve.xb)(this.interruptReasons_)&&f}}return _.nextPersistentConnectionId_=0,_.nextConnectionId_=0,_})();class hi{constructor(p,f){this.name=p,this.node=f}static Wrap(p,f){return new hi(p,f)}}class zs{getCompare(){return this.compare.bind(this)}indexedValueChanged(p,f){const M=new hi(yn,p),O=new hi(yn,f);return 0!==this.compare(M,O)}
1minPost(){return hi.MIN}}class Qs extends zs{static get __EMPTY_NODE(){return Ss}static set __EMPTY_NODE(p){Ss=p}compare(p,f){return ht(p.name,f.name)}isDefinedOn(p){throw(0,Ve.g5)("KeyIndex.isDefinedOn not expected to be called.")}indexedValueChanged(p,f){return!1}minPost(){return hi.MIN}maxPost(){return new hi(ei,Ss)}makePost(p,f){return(0,Ve.hu)("string"==typeof p,"KeyIndex indexValue must always be a string."),new hi(p,Ss)}toString(){return".key"}}const ks=new Qs;class Fn{constructor(p,f,M,O,X=null){this.isReverse_=O,this.resultGenerator_=X,this.nodeStack_=[];let ye=1;for(;!p.isEmpty();)if(ye=f?M(p.key,f):1,O&&(ye*=-1),ye<0)p=this.isReverse_?p.left:p.right;else{if(0===ye){this.nodeStack_.push(p);break}this.nodeStack_.push(p),p=this.isReverse_?p.right:p.left}}getNext(){if(0===this.nodeStack_.length)return null;let f,p=this.nodeStack_.pop();if(f=this.resultGenerator_?this.resultGenerator_(p.key,p.value):{key:p.key,value:p.value},this.isReverse_)for(p=p.left;!p.isEmpty();)this.nodeStack_.push(p),p=p.right;else for(p=p.right;!p.isEmpty();)this.nodeStack_.push(p),p=p.left;return f}hasNext(){return this.nodeStack_.length>0}peek(){if(0===this.nodeStack_.length)return null;const p=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(p.key,p.value):{key:p.key,value:p.value}}}let Js,qi=(()=>{class _{constructor(f,M,O,X,ye){this.key=f,this.value=M,this.color=null!=O?O:_.RED,this.left=null!=X?X:yr.EMPTY_NODE,this.right=null!=ye?ye:yr.EMPTY_NODE}copy(f,M,O,X,ye){return new _(null!=f?f:this.key,null!=M?M:this.value,null!=O?O:this.color,null!=X?X:this.left,null!=ye?ye:this.right)}count(){return this.left.count()+1+this.right.count()}isEmpty(){return!1}inorderTraversal(f){return this.left.inorderTraversal(f)||!!f(this.key,this.value)||this.right.inorderTraversal(f)}reverseTraversal(f){return this.right.reverseTraversal(f)||f(this.key,this.value)||this.left.reverseTraversal(f)}min_(){return this.left.isEmpty()?this:this.left.min_()}minKey(){return this.min_().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(f,M,O){let X=this;const ye=O(f,X.key);return X=ye<0?X.copy(null,null,null,X.left.insert(f,M,O),null):0===ye?X.copy(null,M,null,null,null):X.copy(null,null,null,null,X.right.insert(f,M,O)),X.fixUp_()}removeMin_(){if(this.left.isEmpty())return yr.EMPTY_NODE;let f=this;return!f.left.isRed_()&&!f.left.left.isRed_()&&(f=f.moveRedLeft_()),f=f.copy(null,null,null,f.left.removeMin_(),null),f.fixUp_()}remove(f,M){let O,X;if(O=this,M(f,O.key)<0)!O.left.isEmpty()&&!O.left.isRed_()&&!O.left.left.isRed_()&&(O=O.moveRedLeft_()),O=O.copy(null,null,null,O.left.remove(f,M),null);else{if(O.left.isRed_()&&(O=O.rotateRight_()),!O.right.isEmpty()&&!O.right.isRed_()&&!O.right.left.isRed_()&&(O=O.moveRedRight_()),0===M(f,O.key)){if(O.right.isEmpty())return yr.EMPTY_NODE;X=O.right.min_(),O=O.copy(X.key,X.value,null,null,O.right.removeMin_())}O=O.copy(null,null,null,null,O.right.remove(f,M))}return O.fixUp_()}isRed_(){return this.color}fixUp_(){let f=this;return f.right.isRed_()&&!f.left.isRed_()&&(f=f.rotateLeft_()),f.left.isRed_()&&f.left.left.isRed_()&&(f=f.rotateRight_()),f.left.isRed_()&&f.right.isRed_()&&(f=f.colorFlip_()),f}moveRedLeft_(){let f=this.colorFlip_();return f.right.left.isRed_()&&(f=f.copy(null,null,null,null,f.right.rotateRight_()),f=f.rotateLeft_(),f=f.colorFlip_()),f}moveRedRight_(){let f=this.colorFlip_();return f.left.left.isRed_()&&(f=f.rotateRight_(),f=f.colorFlip_()),f}rotateLeft_(){const f=this.copy(null,null,_.RED,null,this.right.left);return this.right.copy(null,null,this.color,f,null)}rotateRight_(){const f=this.copy(null,null,_.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,f)}colorFlip_(){const f=this.left.copy(null,null,!this.left.color,null,null),M=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,f,M)}checkMaxDepth_(){const f=this.check_();return Math.pow(2,f)<=this.count()+1}check_(){if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");
1if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");const f=this.left.check_();if(f!==this.right.check_())throw new Error("Black depths differ");return f+(this.isRed_()?0:1)}}return _.RED=!0,_.BLACK=!1,_})();class yr{constructor(p,f=yr.EMPTY_NODE){this.comparator_=p,this.root_=f}insert(p,f){return new yr(this.comparator_,this.root_.insert(p,f,this.comparator_).copy(null,null,qi.BLACK,null,null))}remove(p){return new yr(this.comparator_,this.root_.remove(p,this.comparator_).copy(null,null,qi.BLACK,null,null))}get(p){let f,M=this.root_;for(;!M.isEmpty();){if(f=this.comparator_(p,M.key),0===f)return M.value;f<0?M=M.left:f>0&&(M=M.right)}return null}getPredecessorKey(p){let f,M=this.root_,O=null;for(;!M.isEmpty();){if(f=this.comparator_(p,M.key),0===f){if(M.left.isEmpty())return O?O.key:null;for(M=M.left;!M.right.isEmpty();)M=M.right;return M.key}f<0?M=M.left:f>0&&(O=M,M=M.right)}throw new Error("Attempted to find predecessor key for a nonexistent key. What gives?")}isEmpty(){return this.root_.isEmpty()}count(){return this.root_.count()}minKey(){return this.root_.minKey()}maxKey(){return this.root_.maxKey()}inorderTraversal(p){return this.root_.inorderTraversal(p)}reverseTraversal(p){return this.root_.reverseTraversal(p)}getIterator(p){return new Fn(this.root_,null,this.comparator_,!1,p)}getIteratorFrom(p,f){return new Fn(this.root_,p,this.comparator_,!1,f)}getReverseIteratorFrom(p,f){return new Fn(this.root_,p,this.comparator_,!0,f)}getReverseIterator(p){return new Fn(this.root_,null,this.comparator_,!0,p)}}function sl(_,p){return ht(_.name,p.name)}function fr(_,p){return ht(_,p)}yr.EMPTY_NODE=new class ra{copy(p,f,M,O,X){return this}insert(p,f,M){return new qi(p,f,null)}remove(p,f){return this}count(){return 0}isEmpty(){return!0}inorderTraversal(p){return!1}reverseTraversal(p){return!1}minKey(){return null}maxKey(){return null}check_(){return 0}isRed_(){return!1}};const ls=function(_){return"number"==typeof _?"number:"+j(_):"string:"+_},$r=function(_){if(_.isLeafNode()){const p=_.val();(0,Ve.hu)("string"==typeof p||"number"==typeof p||"object"==typeof p&&(0,Ve.r3)(p,".sv"),"Priority must be a string or number.")}else(0,Ve.hu)(_===Js||_.isEmpty(),"priority of unexpected type.");(0,Ve.hu)(_===Js||_.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")};let Eo,Fo,Is,No=(()=>{class _{constructor(f,M=_.__childrenNodeConstructor.EMPTY_NODE){this.value_=f,this.priorityNode_=M,this.lazyHash_=null,(0,Ve.hu)(null!=this.value_,"LeafNode shouldn't be created with null/undefined value."),$r(this.priorityNode_)}static set __childrenNodeConstructor(f){Eo=f}static get __childrenNodeConstructor(){return Eo}isLeafNode(){return!0}getPriority(){return this.priorityNode_}updatePriority(f){return new _(this.value_,f)}getImmediateChild(f){return".priority"===f?this.priorityNode_:_.__childrenNodeConstructor.EMPTY_NODE}getChild(f){return le(f)?this:".priority"===xi(f)?this.priorityNode_:_.__childrenNodeConstructor.EMPTY_NODE}hasChild(){return!1}getPredecessorChildName(f,M){return null}updateImmediateChild(f,M){return".priority"===f?this.updatePriority(M):M.isEmpty()&&".priority"!==f?this:_.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(f,M).updatePriority(this.priorityNode_)}updateChild(f,M){const O=xi(f);return null===O?M:M.isEmpty()&&".priority"!==O?this:((0,Ve.hu)(".priority"!==O||1===Yr(f),".priority must be the last token in a path"),this.updateImmediateChild(O,_.__childrenNodeConstructor.EMPTY_NODE.updateChild(rr(f),M)))}isEmpty(){return!1}numChildren(){return 0}forEachChild(f,M){return!1}val(f){return f&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()}hash(){if(null===this.lazyHash_){let f="";this.priorityNode_.isEmpty()||(f+="priority:"+ls(this.priorityNode_.val())+":");const M=typeof this.value_;f+=M+":",f+="number"===M?j(this.value_):this.value_,this.lazyHash_=Nn(f)}return this.lazyHash_}getValue(){return this.value_}compareTo(f){return f===_.__childrenNodeConstructor.EMPTY_NODE?1:f instanceof _.__childrenNodeConstructor?-1:((0,Ve.hu)(f.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(f))}compareToLeafNode_(f){const M=typeof f.value_,O=typeof this.value_,X=_.VALUE_TYPE_ORDER.indexOf(M),ye=_.VALUE_TYPE_ORDER.indexOf(O);return(0,Ve.hu)(X>=0,"Unknown leaf type: "+M),(0,Ve.hu)(ye>=0,"Unknown leaf type: "+O),X===ye?"object"===O?0:this.value_<f.value_?-1:this.value_===f.value_?0:1:ye-X}withIndex(){return this}isIndexed(){return!0}equals(f){if(f===this)return!0;
1if(f.isLeafNode()){const M=f;return this.value_===M.value_&&this.priorityNode_.equals(M.priorityNode_)}return!1}}return _.VALUE_TYPE_ORDER=["object","boolean","number","string"],_})();const F=new class P extends zs{compare(p,f){const M=p.node.getPriority(),O=f.node.getPriority(),X=M.compareTo(O);return 0===X?ht(p.name,f.name):X}isDefinedOn(p){return!p.getPriority().isEmpty()}indexedValueChanged(p,f){return!p.getPriority().equals(f.getPriority())}minPost(){return hi.MIN}maxPost(){return new hi(ei,new No("[PRIORITY-POST]",Is))}makePost(p,f){const M=Fo(p);return new hi(f,new No("[PRIORITY-POST]",M))}toString(){return".priority"}},ce=Math.log(2);class He{constructor(p){this.count=parseInt(Math.log(p+1)/ce,10),this.current_=this.count-1;const O=(X=>parseInt(Array(this.count+1).join("1"),2))();this.bits_=p+1&O}nextBitIsOne(){const p=!(this.bits_&1<<this.current_);return this.current_--,p}}const dt=function(_,p,f,M){_.sort(p);const O=function(yt,Lt){const Tn=Lt-yt;let Ln,Yn;if(0===Tn)return null;if(1===Tn)return Ln=_[yt],Yn=f?f(Ln):Ln,new qi(Yn,Ln.node,qi.BLACK,null,null);{const Li=parseInt(Tn/2,10)+yt,nr=O(yt,Li),os=O(Li+1,Lt);return Ln=_[Li],Yn=f?f(Ln):Ln,new qi(Yn,Ln.node,qi.BLACK,nr,os)}},Qe=function(yt){let Lt=null,Tn=null,Ln=_.length;const Yn=function(nr,os){const wa=Ln-nr,Ul=Ln;Ln-=nr;const Vo=O(wa+1,Ul),Cc=_[wa],tc=f?f(Cc):Cc;Li(new qi(tc,Cc.node,os,null,Vo))},Li=function(nr){Lt?(Lt.left=nr,Lt=nr):(Tn=nr,Lt=nr)};for(let nr=0;nr<yt.count;++nr){const os=yt.nextBitIsOne(),wa=Math.pow(2,yt.count-(nr+1));os?Yn(wa,qi.BLACK):(Yn(wa,qi.BLACK),Yn(wa,qi.RED))}return Tn}(new He(_.length));return new yr(M||p,Qe)};let Et;const kt={};class Kt{constructor(p,f){this.indexes_=p,this.indexSet_=f}static get Default(){return(0,Ve.hu)(kt&&F,"ChildrenNode.ts has not been loaded"),Et=Et||new Kt({".priority":kt},{".priority":F}),Et}get(p){const f=(0,Ve.DV)(this.indexes_,p);if(!f)throw new Error("No index defined for "+p);return f instanceof yr?f:null}hasIndex(p){return(0,Ve.r3)(this.indexSet_,p.toString())}addIndex(p,f){(0,Ve.hu)(p!==ks,"KeyIndex always exists and isn't meant to be added to the IndexMap.");const M=[];let O=!1;const X=f.getIterator(hi.Wrap);let Qe,ye=X.getNext();for(;ye;)O=O||p.isDefinedOn(ye.node),M.push(ye),ye=X.getNext();Qe=O?dt(M,p.getCompare()):kt;const yt=p.toString(),Lt=Object.assign({},this.indexSet_);Lt[yt]=p;const Tn=Object.assign({},this.indexes_);return Tn[yt]=Qe,new Kt(Tn,Lt)}addToIndexes(p,f){const M=(0,Ve.UI)(this.indexes_,(O,X)=>{const ye=(0,Ve.DV)(this.indexSet_,X);if((0,Ve.hu)(ye,"Missing index implementation for "+X),O===kt){if(ye.isDefinedOn(p.node)){const Qe=[],yt=f.getIterator(hi.Wrap);let Lt=yt.getNext();for(;Lt;)Lt.name!==p.name&&Qe.push(Lt),Lt=yt.getNext();return Qe.push(p),dt(Qe,ye.getCompare())}return kt}{const Qe=f.get(p.name);let yt=O;return Qe&&(yt=yt.remove(new hi(p.name,Qe))),yt.insert(p,p.node)}});return new Kt(M,this.indexSet_)}removeFromIndexes(p,f){const M=(0,Ve.UI)(this.indexes_,O=>{if(O===kt)return O;{const X=f.get(p.name);return X?O.remove(new hi(p.name,X)):O}});return new Kt(M,this.indexSet_)}}let En,In=(()=>{class _{constructor(f,M,O){this.children_=f,this.priorityNode_=M,this.indexMap_=O,this.lazyHash_=null,this.priorityNode_&&$r(this.priorityNode_),this.children_.isEmpty()&&(0,Ve.hu)(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}static get EMPTY_NODE(){return En||(En=new _(new yr(fr),null,Kt.Default))}isLeafNode(){return!1}getPriority(){return this.priorityNode_||En}updatePriority(f){return this.children_.isEmpty()?this:new _(this.children_,f,this.indexMap_)}getImmediateChild(f){if(".priority"===f)return this.getPriority();{const M=this.children_.get(f);return null===M?En:M}}getChild(f){const M=xi(f);return null===M?this:this.getImmediateChild(M).getChild(rr(f))}hasChild(f){return null!==this.children_.get(f)}updateImmediateChild(f,M){if((0,Ve.hu)(M,"We should always be passing snapshot nodes"),".priority"===f)return this.updatePriority(M);{const O=new hi(f,M);let X,ye;M.isEmpty()?(X=this.children_.remove(f),ye=this.indexMap_.removeFromIndexe
1s(O,this.children_)):(X=this.children_.insert(f,M),ye=this.indexMap_.addToIndexes(O,this.children_));const Qe=X.isEmpty()?En:this.priorityNode_;return new _(X,Qe,ye)}}updateChild(f,M){const O=xi(f);if(null===O)return M;{(0,Ve.hu)(".priority"!==xi(f)||1===Yr(f),".priority must be the last token in a path");const X=this.getImmediateChild(O).updateChild(rr(f),M);return this.updateImmediateChild(O,X)}}isEmpty(){return this.children_.isEmpty()}numChildren(){return this.children_.count()}val(f){if(this.isEmpty())return null;const M={};let O=0,X=0,ye=!0;if(this.forEachChild(F,(Qe,yt)=>{M[Qe]=yt.val(f),O++,ye&&_.INTEGER_REGEXP_.test(Qe)?X=Math.max(X,Number(Qe)):ye=!1}),!f&&ye&&X<2*O){const Qe=[];for(const yt in M)Qe[yt]=M[yt];return Qe}return f&&!this.getPriority().isEmpty()&&(M[".priority"]=this.getPriority().val()),M}hash(){if(null===this.lazyHash_){let f="";this.getPriority().isEmpty()||(f+="priority:"+ls(this.getPriority().val())+":"),this.forEachChild(F,(M,O)=>{const X=O.hash();""!==X&&(f+=":"+M+":"+X)}),this.lazyHash_=""===f?"":Nn(f)}return this.lazyHash_}getPredecessorChildName(f,M,O){const X=this.resolveIndex_(O);if(X){const ye=X.getPredecessorKey(new hi(f,M));return ye?ye.name:null}return this.children_.getPredecessorKey(f)}getFirstChildName(f){const M=this.resolveIndex_(f);if(M){const O=M.minKey();return O&&O.name}return this.children_.minKey()}getFirstChild(f){const M=this.getFirstChildName(f);return M?new hi(M,this.children_.get(M)):null}getLastChildName(f){const M=this.resolveIndex_(f);if(M){const O=M.maxKey();return O&&O.name}return this.children_.maxKey()}getLastChild(f){const M=this.getLastChildName(f);return M?new hi(M,this.children_.get(M)):null}forEachChild(f,M){const O=this.resolveIndex_(f);return O?O.inorderTraversal(X=>M(X.name,X.node)):this.children_.inorderTraversal(M)}getIterator(f){return this.getIteratorFrom(f.minPost(),f)}getIteratorFrom(f,M){const O=this.resolveIndex_(M);if(O)return O.getIteratorFrom(f,X=>X);{const X=this.children_.getIteratorFrom(f.name,hi.Wrap);let ye=X.peek();for(;null!=ye&&M.compare(ye,f)<0;)X.getNext(),ye=X.peek();return X}}getReverseIterator(f){return this.getReverseIteratorFrom(f.maxPost(),f)}getReverseIteratorFrom(f,M){const O=this.resolveIndex_(M);if(O)return O.getReverseIteratorFrom(f,X=>X);{const X=this.children_.getReverseIteratorFrom(f.name,hi.Wrap);let ye=X.peek();for(;null!=ye&&M.compare(ye,f)>0;)X.getNext(),ye=X.peek();return X}}compareTo(f){return this.isEmpty()?f.isEmpty()?0:-1:f.isLeafNode()||f.isEmpty()?1:f===ji?-1:0}withIndex(f){if(f===ks||this.indexMap_.hasIndex(f))return this;{const M=this.indexMap_.addIndex(f,this.children_);return new _(this.children_,this.priorityNode_,M)}}isIndexed(f){return f===ks||this.indexMap_.hasIndex(f)}equals(f){if(f===this)return!0;if(f.isLeafNode())return!1;{const M=f;if(this.getPriority().equals(M.getPriority())){if(this.children_.count()===M.children_.count()){const O=this.getIterator(F),X=M.getIterator(F);let ye=O.getNext(),Qe=X.getNext();for(;ye&&Qe;){if(ye.name!==Qe.name||!ye.node.equals(Qe.node))return!1;ye=O.getNext(),Qe=X.getNext()}return null===ye&&null===Qe}return!1}return!1}}resolveIndex_(f){return f===ks?null:this.indexMap_.get(f.toString())}}return _.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/,_})();const ji=new class Di extends In{constructor(){super(new yr(fr),In.EMPTY_NODE,Kt.Default)}compareTo(p){return p===this?0:1}equals(p){return p===this}getPriority(){return this}getImmediateChild(p){return In.EMPTY_NODE}isEmpty(){return!1}};function Gn(_,p=null){if(null===_)return In.EMPTY_NODE;if("object"==typeof _&&".priority"in _&&(p=_[".priority"]),(0,Ve.hu)(null===p||"string"==typeof p||"number"==typeof p||"object"==typeof p&&".sv"in p,"Invalid priority type found: "+typeof p),"object"==typeof _&&".value"in _&&null!==_[".value"]&&(_=_[".value"]),"object"!=typeof _||".sv"in _)return new No(_,Gn(p));if(_ instanceof Array){let f=In.EMPTY_NODE;return x(_,(M,O)=>{if((0,Ve.r3)(_,M)&&"."!==M.substring(0,1)){const X=Gn(O);(X.isLeafNode()||!X.isEmpty())&&(f=f.updateImmediateChild(M,X))}}),f.updatePriority(Gn(p))}{const f=[];let M=!1;if(x(_,(ye,Qe)=>{if("."!==ye.substring(0,1)){const yt=Gn(Qe);yt.isEmpty()||(M=M||!yt.getPriority().isEmpty(),f.push(new hi(ye,yt)))}}),0===f.length)return In.EMPTY_NODE;const X=dt(f,sl,ye=>ye.name,fr);if(M){const ye=dt(f,F.getCompare());return new In(X,Gn(p),new Kt({".priority":ye},{".priority":F}))}return new In(X,Gn(p),Kt.Default)}}Object.defineProperties(hi,{MIN:{value:new hi(yn,In.EMPTY_NODE)},MAX:{value:new hi(ei,ji)}}),Qs.__EMPTY_NODE=In.EMPTY_NODE,No.__childrenNodeConstructor=In,function Xo(_){Js=_}(ji),function Pe(_){Is=_}(ji),function po(_){Fo=_}(Gn);class Qi extends zs{constructor(p){super(),this.indexPath_=p,(0,Ve.hu)(!le(p)&&".priority"!==xi(p),"Can't
1create PathIndex with empty path or .priority key")}extractChild(p){return p.getChild(this.indexPath_)}isDefinedOn(p){return!p.getChild(this.indexPath_).isEmpty()}compare(p,f){const M=this.extractChild(p.node),O=this.extractChild(f.node),X=M.compareTo(O);return 0===X?ht(p.name,f.name):X}makePost(p,f){const M=Gn(p),O=In.EMPTY_NODE.updateChild(this.indexPath_,M);return new hi(f,O)}maxPost(){const p=In.EMPTY_NODE.updateChild(this.indexPath_,ji);return new hi(ei,p)}toString(){return Ir(this.indexPath_,0).join("/")}}const Kr=new class vr extends zs{compare(p,f){const M=p.node.compareTo(f.node);return 0===M?ht(p.name,f.name):M}isDefinedOn(p){return!0}indexedValueChanged(p,f){return!p.equals(f)}minPost(){return hi.MIN}maxPost(){return hi.MAX}makePost(p,f){const M=Gn(p);return new hi(f,M)}toString(){return".value"}};function Wr(_){return{type:"value",snapshotNode:_}}function us(_,p){return{type:"child_added",snapshotNode:p,childName:_}}function rs(_,p){return{type:"child_removed",snapshotNode:p,childName:_}}function es(_,p,f){return{type:"child_changed",snapshotNode:p,childName:_,oldSnap:f}}class ur{constructor(p){this.index_=p}updateChild(p,f,M,O,X,ye){(0,Ve.hu)(p.isIndexed(this.index_),"A node must be indexed if only a child is updated");const Qe=p.getImmediateChild(f);return Qe.getChild(O).equals(M.getChild(O))&&Qe.isEmpty()===M.isEmpty()||(null!=ye&&(M.isEmpty()?p.hasChild(f)?ye.trackChildChange(rs(f,Qe)):(0,Ve.hu)(p.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):Qe.isEmpty()?ye.trackChildChange(us(f,M)):ye.trackChildChange(es(f,M,Qe))),p.isLeafNode()&&M.isEmpty())?p:p.updateImmediateChild(f,M).withIndex(this.index_)}updateFullNode(p,f,M){return null!=M&&(p.isLeafNode()||p.forEachChild(F,(O,X)=>{f.hasChild(O)||M.trackChildChange(rs(O,X))}),f.isLeafNode()||f.forEachChild(F,(O,X)=>{if(p.hasChild(O)){const ye=p.getImmediateChild(O);ye.equals(X)||M.trackChildChange(es(O,X,ye))}else M.trackChildChange(us(O,X))})),f.withIndex(this.index_)}updatePriority(p,f){return p.isEmpty()?In.EMPTY_NODE:p.updatePriority(f)}filtersNodes(){return!1}getIndexedFilter(){return this}getIndex(){return this.index_}}class Or{constructor(p){this.indexedFilter_=new ur(p.getIndex()),this.index_=p.getIndex(),this.startPost_=Or.getStartPost_(p),this.endPost_=Or.getEndPost_(p),this.startIsInclusive_=!p.startAfterSet_,this.endIsInclusive_=!p.endBeforeSet_}getStartPost(){return this.startPost_}getEndPost(){return this.endPost_}matches(p){const f=this.startIsInclusive_?this.index_.compare(this.getStartPost(),p)<=0:this.index_.compare(this.getStartPost(),p)<0,M=this.endIsInclusive_?this.index_.compare(p,this.getEndPost())<=0:this.index_.compare(p,this.getEndPost())<0;return f&&M}updateChild(p,f,M,O,X,ye){return this.matches(new hi(f,M))||(M=In.EMPTY_NODE),this.indexedFilter_.updateChild(p,f,M,O,X,ye)}updateFullNode(p,f,M){f.isLeafNode()&&(f=In.EMPTY_NODE);let O=f.withIndex(this.index_);O=O.updatePriority(In.EMPTY_NODE);const X=this;return f.forEachChild(F,(ye,Qe)=>{X.matches(new hi(ye,Qe))||(O=O.updateImmediateChild(ye,In.EMPTY_NODE))}),this.indexedFilter_.updateFullNode(p,O,M)}updatePriority(p,f){return p}filtersNodes(){return!0}getIndexedFilter(){return this.indexedFilter_}getIndex(){return this.index_}static getStartPost_(p){if(p.hasStart()){const f=p.getIndexStartName();return p.getIndex().makePost(p.getIndexStartValue(),f)}return p.getIndex().minPost()}static getEndPost_(p){if(p.hasEnd()){const f=p.getIndexEndName();return p.getIndex().makePost(p.getIndexEndValue(),f)}return p.getIndex().maxPost()}}class ea{constructor(p){this.withinDirectionalStart=f=>this.reverse_?this.withinEndPost(f):this.withinStartPost(f),this.withinDirectionalEnd=f=>this.reverse_?this.withinStartPost(f):this.withinEndPost(f),this.withinStartPost=f=>{const M=this.index_.compare(this.rangedFilter_.getStartPost(),f);return this.startIsInclusive_?M<=0:M<0},this.withinEndPost=f=>{const M=this.index_.compare(f,this.rangedFilter_.getEndPost());return this.endIsInclusive_?M<=0:M<0},this.rangedFilter_=new Or(p),this.index_=p.getIndex(),this.limit_=p.getLimit(),this.reverse_=!p.isViewFromLeft(),this.startIsInclusive_=!p.startAfterSet_,this.endIsInclusive_=!p.endBeforeSet_}updateChild(p,f,M,O,X,ye){return this.rangedFilter_.matches(new hi(f,M))||(M=In.EMPTY_NODE),p.getImmediateChild(f).equals(M)?p:p.numChildren()<this.limit_?this.rangedFilter_.getIndexedFilter().updateChild(p,f,M,O,X,ye):this.fullLimitUpdate
vendor: 4,352 bytes, line 1
1Child_(p,f,M,X,ye)}updateFullNode(p,f,M){let O;if(f.isLeafNode()||f.isEmpty())O=In.EMPTY_NODE.withIndex(this.index_);else if(2*this.limit_<f.numChildren()&&f.isIndexed(this.index_)){let X;O=In.EMPTY_NODE.withIndex(this.index_),X=this.reverse_?f.getReverseIteratorFrom(this.rangedFilter_.getEndPost(),this.index_):f.getIteratorFrom(this.rangedFilter_.getStartPost(),this.index_);let ye=0;for(;X.hasNext()&&ye<this.limit_;){const Qe=X.getNext();if(this.withinDirectionalStart(Qe)){if(!this.withinDirectionalEnd(Qe))break;O=O.updateImmediateChild(Qe.name,Qe.node),ye++}}}else{let X;O=f.withIndex(this.index_),O=O.updatePriority(In.EMPTY_NODE),X=this.reverse_?O.getReverseIterator(this.index_):O.getIterator(this.index_);let ye=0;for(;X.hasNext();){const Qe=X.getNext();ye<this.limit_&&this.withinDirectionalStart(Qe)&&this.withinDirectionalEnd(Qe)?ye++:O=O.updateImmediateChild(Qe.name,In.EMPTY_NODE)}}return this.rangedFilter_.getIndexedFilter().updateFullNode(p,O,M)}updatePriority(p,f){return p}filtersNodes(){return!0}getIndexedFilter(){return this.rangedFilter_.getIndexedFilter()}getIndex(){return this.index_}fullLimitUpdateChild_(p,f,M,O,X){let ye;if(this.reverse_){const Ln=this.index_.getCompare();ye=(Yn,Li)=>Ln(Li,Yn)}else ye=this.index_.getCompare();const Qe=p;(0,Ve.hu)(Qe.numChildren()===this.limit_,"");const yt=new hi(f,M),Lt=this.reverse_?Qe.getFirstChild(this.index_):Qe.getLastChild(this.index_),Tn=this.rangedFilter_.matches(yt);if(Qe.hasChild(f)){const Ln=Qe.getImmediateChild(f);let Yn=O.getChildAfterChild(this.index_,Lt,this.reverse_);for(;null!=Yn&&(Yn.name===f||Qe.hasChild(Yn.name));)Yn=O.getChildAfterChild(this.index_,Yn,this.reverse_);const Li=null==Yn?1:ye(Yn,yt);if(Tn&&!M.isEmpty()&&Li>=0)return null!=X&&X.trackChildChange(es(f,M,Ln)),Qe.updateImmediateChild(f,M);{null!=X&&X.trackChildChange(rs(f,Ln));const os=Qe.updateImmediateChild(f,In.EMPTY_NODE);return null!=Yn&&this.rangedFilter_.matches(Yn)?(null!=X&&X.trackChildChange(us(Yn.name,Yn.node)),os.updateImmediateChild(Yn.name,Yn.node)):os}}return M.isEmpty()?p:Tn&&ye(Lt,yt)>=0?(null!=X&&(X.trackChildChange(rs(Lt.name,Lt.node)),X.trackChildChange(us(f,M))),Qe.updateImmediateChild(f,M).updateImmediateChild(Lt.name,In.EMPTY_NODE)):p}}class Xs{constructor(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.startAfterSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.endBeforeSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=F}hasStart(){return this.startSet_}isViewFromLeft(){return""===this.viewFrom_?this.startSet_:"l"===this.viewFrom_}getIndexStartValue(){return(0,Ve.hu)(this.startSet_,"Only valid if start has been set"),this.indexStartValue_}getIndexStartName(){return(0,Ve.hu)(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:yn}hasEnd(){return this.endSet_}getIndexEndValue(){return(0,Ve.hu)(this.endSet_,"Only valid if end has been set"),this.indexEndValue_}getIndexEndName(){return(0,Ve.hu)(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:ei}hasLimit(){return this.limitSet_}hasAnchoredLimit(){return this.limitSet_&&""!==this.viewFrom_}getLimit(){return(0,Ve.hu)(this.limitSet_,"Only valid if limit has been set"),this.limit_}getIndex(){return this.index_}loadsAllData(){return!(this.startSet_||this.endSet_||this.limitSet_)}isDefault(){return this.loadsAllData()&&this.index_===F}copy(){const p=new Xs;return p.limitSet_=this.limitSet_,p.limit_=this.limit_,p.startSet_=this.startSet_,p.startAfterSet_=this.startAfterSet_,p.indexStartValue_=this.indexStartValue_,p.startNameSet_=this.startNameSet_,p.indexStartName_=this.indexStartName_,p.endSet_=this.endSet_,p.endBeforeSet_=this.endBeforeSet_,p.indexEndValue_=this.indexEndValue_,p.endNameSet_=this.endNameSet_,p.indexEndName_=this.indexEndName_,p.index_=this.index_,p.viewFrom_=this.viewFrom_,p}}function Wo(_,p,f){const M=_.copy();return M.startSet_=!0,void 0===p&&(p=null),M.indexStartValue_=p,null!=f?(M.startNameSet_=!0,M.indexStartName_=f):(M.startNameSet_=!1,M.indexStartName_=""),M}function bi(_,p,f){const M=_.copy();return M.endSet_=!0,void 0===p&&(p=null),M.indexEndValue_=p,void 0!==f?(M.endNameSet_=!0,M.indexEndName_=f):(M.endNameSet_=!1,M.indexEndName_=""),M}function Vi(_,p){const f=_.copy();
1return f.index_=p,f}function Ti(_){const p={};if(_.isDefault())return p;let f;if(_.index_===F?f="$priority":_.index_===Kr?f="$value":_.index_===ks?f="$key":((0,Ve.hu)(_.index_ instanceof Qi,"Unrecognized index type!"),f=_.index_.toString()),p.orderBy=(0,Ve.Wl)(f),_.startSet_){const M=_.startAfterSet_?"startAfter":"startAt";p[M]=(0,Ve.Wl)(_.indexStartValue_),_.startNameSet_&&(p[M]+=","+(0,Ve.Wl)(_.indexStartName_))}if(_.endSet_){const M=_.endBeforeSet_?"endBefore":"endAt";p[M]=(0,Ve.Wl)(_.indexEndValue_),_.endNameSet_&&(p[M]+=","+(0,Ve.Wl)(_.indexEndName_))}return _.limitSet_&&(_.isViewFromLeft()?p.limitToFirst=_.limit_:p.limitToLast=_.limit_),p}function ts(_){const p={};if(_.startSet_&&(p.sp=_.indexStartValue_,_.startNameSet_&&(p.sn=_.indexStartName_),p.sin=!_.startAfterSet_),_.endSet_&&(p.ep=_.indexEndValue_,_.endNameSet_&&(p.en=_.indexEndName_),p.ein=!_.endBeforeSet_),_.limitSet_){p.l=_.limit_;let f=_.viewFrom_;""===f&&(f=_.isViewFromLeft()?"l":"r"),p.vf=f}return _.index_!==F&&(p.i=_.index_.toString()),p}class bs extends Do{constructor(p,f,M,O){super(),this.repoInfo_=p,this.onDataUpdate_=f,this.authTokenProvider_=M,this.appCheckTokenProvider_=O,this.log_=Se("p:rest:"),this.listens_={}}reportStats(p){throw new Error("Method not implemented.")}static getListenId_(p,f){return void 0!==f?"tag$"+f:((0,Ve.hu)(p._queryParams.isDefault(),"should have a tag if it's not a default query."),p._path.toString())}listen(p,f,M,O){const X=p._path.toString();this.log_("Listen called for "+X+" "+p._queryIdentifier);const ye=bs.getListenId_(p,M),Qe={};this.listens_[ye]=Qe;const yt=Ti(p._queryParams);this.restRequest_(X+".json",yt,(Lt,Tn)=>{let Ln=Tn;if(404===Lt&&(Ln=null,Lt=null),null===Lt&&this.onDataUpdate_(X,Ln,!1,M),(0,Ve.DV)(this.listens_,ye)===Qe){let Yn;Yn=Lt?401===Lt?"permission_denied":"rest_error:"+Lt:"ok",O(Yn,null)}})}unlisten(p,f){const M=bs.getListenId_(p,f);delete this.listens_[M]}get(p){const f=Ti(p._queryParams),M=p._path.toString(),O=new Ve.BH;return this.restRequest_(M+".json",f,(X,ye)=>{let Qe=ye;404===X&&(Qe=null,X=null),null===X?(this.onDataUpdate_(M,Qe,!1,null),O.resolve(Qe)):O.reject(new Error(Qe))}),O.promise}refreshAuthToken(p){}restRequest_(p,f={},M){return f.format="export",Promise.all([this.authTokenProvider_.getToken(!1),this.appCheckTokenProvider_.getToken(!1)]).then(([O,X])=>{O&&O.accessToken&&(f.auth=O.accessToken),X&&X.token&&(f.ac=X.token);const ye=(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host+p+"?ns="+this.repoInfo_.namespace+(0,Ve.xO)(f);this.log_("Sending REST request for "+ye);const Qe=new XMLHttpRequest;Qe.onreadystatechange=()=>{if(M&&4===Qe.readyState){this.log_("REST Response for "+ye+" received. status:",Qe.status,"response:",Qe.responseText);let yt=null;if(Qe.status>=200&&Qe.status<300){try{yt=(0,Ve.cI)(Qe.responseText)}catch(Lt){Be("Failed to parse JSON response for "+ye+": "+Qe.responseText)}M(null,yt)}else 401!==Qe.status&&404!==Qe.status&&Be("Got unsuccessful REST response for "+ye+" Status: "+Qe.status),M(Qe.status);M=null}},Qe.open("GET",ye,!0),Qe.send()})}}class qr{constructor(){this.rootNode_=In.EMPTY_NODE}getNode(p){return this.rootNode_.getChild(p)}updateSnapshot(p,f){this.rootNode_=this.rootNode_.updateChild(p,f)}}function Co(){return{value:null,children:new Map}}function Rr(_,p,f){if(le(p))_.value=f,_.children.clear();else if(null!==_.value)_.value=_.value.updateChild(p,f);else{const M=xi(p);_.children.has(M)||_.children.set(M,Co()),Rr(_.children.get(M),p=rr(p),f)}}function Ws(_,p){if(le(p))return _.value=null,_.children.clear(),!0;if(null!==_.value){if(_.value.isLeafNode())return!1;{const f=_.value;return _.value=null,f.forEachChild(F,(M,O)=>{Rr(_,new Ri(M),O)}),Ws(_,p)}}if(_.children.size>0){const f=xi(p);return p=rr(p),_.children.has(f)&&Ws(_.children.get(f),p)&&_.children.delete(f),0===_.children.size}return!0}function ga(_,p,f){null!==_.value?f(p,_.value):function ro(_,p){_.children.forEach((f,M)=>{p(M,f)})}(_,(M,O)=>{ga(O,new Ri(p.toString()+"/"+M),f)})}class Zs{constructor(p){this.collection_=p,this.last_=null}get(){const p=this.collection_.get(),f=Object.assign({},p);return this.last_&&x(this.last_,(M,O)=>
1{f[M]=f[M]-O}),this.last_=p,f}}class ya{constructor(p,f){this.server_=f,this.statsToReport_={},this.statsListener_=new Zs(p);const M=1e4+2e4*Math.random();rn(this.reportStats_.bind(this),Math.floor(M))}reportStats_(){const p=this.statsListener_.get(),f={};let M=!1;x(p,(O,X)=>{X>0&&(0,Ve.r3)(this.statsToReport_,O)&&(f[O]=X,M=!0)}),M&&this.server_.reportStats(f),rn(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))}}var cs=(()=>{return(_=cs||(cs={}))[_.OVERWRITE=0]="OVERWRITE",_[_.MERGE=1]="MERGE",_[_.ACK_USER_WRITE=2]="ACK_USER_WRITE",_[_.LISTEN_COMPLETE=3]="LISTEN_COMPLETE",cs;var _})();function So(_){return{fromUser:!1,fromServer:!0,queryId:_,tagged:!0}}class Da{constructor(p,f,M){this.path=p,this.affectedTree=f,this.revert=M,this.type=cs.ACK_USER_WRITE,this.source={fromUser:!0,fromServer:!1,queryId:null,tagged:!1}}operationForChild(p){if(le(this.path)){if(null!=this.affectedTree.value)return(0,Ve.hu)(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;{const f=this.affectedTree.subtree(new Ri(p));return new Da(ri(),f,this.revert)}}return(0,Ve.hu)(xi(this.path)===p,"operationForChild called for unrelated child."),new Da(rr(this.path),this.affectedTree,this.revert)}}class la{constructor(p,f){this.source=p,this.path=f,this.type=cs.LISTEN_COMPLETE}operationForChild(p){return le(this.path)?new la(this.source,ri()):new la(this.source,rr(this.path))}}class Zo{constructor(p,f,M){this.source=p,this.path=f,this.snap=M,this.type=cs.OVERWRITE}operationForChild(p){return le(this.path)?new Zo(this.source,ri(),this.snap.getImmediateChild(p)):new Zo(this.source,rr(this.path),this.snap)}}class ee{constructor(p,f,M){this.source=p,this.path=f,this.children=M,this.type=cs.MERGE}operationForChild(p){if(le(this.path)){const f=this.children.subtree(new Ri(p));return f.isEmpty()?null:f.value?new Zo(this.source,ri(),f.value):new ee(this.source,ri(),f)}return(0,Ve.hu)(xi(this.path)===p,"Can't get a merge for a child not on the path of the operation"),new ee(this.source,rr(this.path),this.children)}toString(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"}}class z{constructor(p,f,M){this.node_=p,this.fullyInitialized_=f,this.filtered_=M}isFullyInitialized(){return this.fullyInitialized_}isFiltered(){return this.filtered_}isCompleteForPath(p){if(le(p))return this.isFullyInitialized()&&!this.filtered_;const f=xi(p);return this.isCompleteForChild(f)}isCompleteForChild(p){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(p)}getNode(){return this.node_}}class H{constructor(p){this.query_=p,this.index_=this.query_._queryParams.getIndex()}}function a(_,p,f,M,O,X){const ye=M.filter(Qe=>Qe.type===f);ye.sort((Qe,yt)=>function w(_,p,f){if(null==p.childName||null==f.childName)throw(0,Ve.g5)("Should only compare child_ events.");const M=new hi(p.childName,p.snapshotNode),O=new hi(f.childName,f.snapshotNode);return _.index_.compare(M,O)}(_,Qe,yt)),ye.forEach(Qe=>{const yt=function d(_,p,f){return"value"===p.type||"child_removed"===p.type||(p.prevName=f.getPredecessorChildName(p.childName,p.snapshotNode,_.index_)),p}(_,Qe,X);O.forEach(Lt=>{Lt.respondsTo(Qe.type)&&p.push(Lt.createEvent(yt,_.query_))})})}function A(_,p){return{eventCache:_,serverCache:p}}function Q(_,p,f,M){return A(new z(p,f,M),_.serverCache)}function xe(_,p,f,M){return A(_.eventCache,new z(p,f,M))}function bt(_){return _.eventCache.isFullyInitialized()?_.eventCache.getNode():null}function xt(_){return _.serverCache.isFullyInitialized()?_.serverCache.getNode():null}let Jt;class Wt{constructor(p,f=(()=>(Jt||(Jt=new yr(Oe)),Jt))()){this.value=p,this.children=f}static fromObject(p){let f=new Wt(null);return x(p,(M,O)=>{f=f.set(new Ri(M),O)}),f}isEmpty(){return null===this.value&&this.children.isEmpty()}findRootMostMatchingPathAndValue(p,f){if(null!=this.value&&f(this.value))return{path:ri(),value:this.value};if(le(p))return null;{const M=xi(p),O=this.children.get(M);if(null!==O){const X=O.findRootMostMatchingPathAndValue(rr(p),f);return null!=X?{path:Ne(new Ri(M),X.path),value:X.value}:null}return null}}findRootMostValueAndPath(p){return this.findRootMostMatchingPathAndValue(p,()=>!0)}
1subtree(p){if(le(p))return this;{const f=xi(p),M=this.children.get(f);return null!==M?M.subtree(rr(p)):new Wt(null)}}set(p,f){if(le(p))return new Wt(f,this.children);{const M=xi(p),X=(this.children.get(M)||new Wt(null)).set(rr(p),f),ye=this.children.insert(M,X);return new Wt(this.value,ye)}}remove(p){if(le(p))return this.children.isEmpty()?new Wt(null):new Wt(null,this.children);{const f=xi(p),M=this.children.get(f);if(M){const O=M.remove(rr(p));let X;return X=O.isEmpty()?this.children.remove(f):this.children.insert(f,O),null===this.value&&X.isEmpty()?new Wt(null):new Wt(this.value,X)}return this}}get(p){if(le(p))return this.value;{const f=xi(p),M=this.children.get(f);return M?M.get(rr(p)):null}}setTree(p,f){if(le(p))return f;{const M=xi(p),X=(this.children.get(M)||new Wt(null)).setTree(rr(p),f);let ye;return ye=X.isEmpty()?this.children.remove(M):this.children.insert(M,X),new Wt(this.value,ye)}}fold(p){return this.fold_(ri(),p)}fold_(p,f){const M={};return this.children.inorderTraversal((O,X)=>{M[O]=X.fold_(Ne(p,O),f)}),f(p,this.value,M)}findOnPath(p,f){return this.findOnPath_(p,ri(),f)}findOnPath_(p,f,M){const O=!!this.value&&M(f,this.value);if(O)return O;if(le(p))return null;{const X=xi(p),ye=this.children.get(X);return ye?ye.findOnPath_(rr(p),Ne(f,X),M):null}}foreachOnPath(p,f){return this.foreachOnPath_(p,ri(),f)}foreachOnPath_(p,f,M){if(le(p))return this;{this.value&&M(f,this.value);const O=xi(p),X=this.children.get(O);return X?X.foreachOnPath_(rr(p),Ne(f,O),M):new Wt(null)}}foreach(p){this.foreach_(ri(),p)}foreach_(p,f){this.children.inorderTraversal((M,O)=>{O.foreach_(Ne(p,M),f)}),this.value&&f(p,this.value)}foreachChild(p){this.children.inorderTraversal((f,M)=>{M.value&&p(f,M.value)})}}class ti{constructor(p){this.writeTree_=p}static empty(){return new ti(new Wt(null))}}function Zi(_,p,f){if(le(p))return new ti(new Wt(f));{const M=_.writeTree_.findRootMostValueAndPath(p);if(null!=M){const O=M.path;let X=M.value;const ye=qe(O,p);return X=X.updateChild(ye,f),new ti(_.writeTree_.set(O,X))}{const O=new Wt(f),X=_.writeTree_.setTree(p,O);return new ti(X)}}}function kr(_,p,f){let M=_;return x(f,(O,X)=>{M=Zi(M,Ne(p,O),X)}),M}function qn(_,p){if(le(p))return ti.empty();{const f=_.writeTree_.setTree(p,new Wt(null));return new ti(f)}}function yi(_,p){return null!=lo(_,p)}function lo(_,p){const f=_.writeTree_.findRootMostValueAndPath(p);return null!=f?_.writeTree_.get(f.path).getChild(qe(f.path,p)):null}function ci(_){const p=[],f=_.writeTree_.value;return null!=f?f.isLeafNode()||f.forEachChild(F,(M,O)=>{p.push(new hi(M,O))}):_.writeTree_.children.inorderTraversal((M,O)=>{null!=O.value&&p.push(new hi(M,O.value))}),p}function un(_,p){if(le(p))return _;{const f=lo(_,p);return new ti(null!=f?new Wt(f):_.writeTree_.subtree(p))}}function On(_){return _.writeTree_.isEmpty()}function br(_,p){return ol(ri(),_.writeTree_,p)}function ol(_,p,f){if(null!=p.value)return f.updateChild(_,p.value);{let M=null;return p.children.inorderTraversal((O,X)=>{".priority"===O?((0,Ve.hu)(null!==X.value,"Priority writes must always be leaf nodes"),M=X.value):f=ol(Ne(_,O),X,f)}),!f.getChild(_).isEmpty()&&null!==M&&(f=f.updateChild(Ne(_,".priority"),M)),f}}function Gs(_,p){return lu(p,_)}function al(_,p){if(_.snap)return hn(_.path,p);for(const f in _.children)if(_.children.hasOwnProperty(f)&&hn(Ne(_.path,f),p))return!0;return!1}function yl(_){return _.visible}function zl(_,p,f){let M=ti.empty();for(let O=0;O<_.length;++O){const X=_[O];if(p(X)){const ye=X.path;let Qe;if(X.snap)hn(f,ye)?(Qe=qe(f,ye),M=Zi(M,Qe,X.snap)):hn(ye,f)&&(Qe=qe(ye,f),M=Zi(M,ri(),X.snap.getChild(Qe)));else{if(!X.children)throw(0,Ve.g5)("WriteRecord should have .snap or .children");if(hn(f,ye))Qe=qe(f,ye),M=kr(M,Qe,X.children);else if(hn(ye,f))if(Qe=qe(ye,f),le(Qe))M=kr(M,ri(),X.children);else{const yt=(0,Ve.DV)(X.children,xi(Qe));if(yt){const Lt=yt.getChild(rr(Qe));M=Zi(M,ri(),Lt)}}}}}return M}function hs(_,p,f,M,O){if(M||O){const X=un(_.visibleWrites,p);return!O&&On(X)?f:O||null!=f||yi(X,ri())?br(zl(_.allWrites,function(Lt){return(Lt.visible||O)&&(!M||!~M.indexOf(Lt.writeId))&&(hn(Lt.path,p)||hn(p,Lt.path))},p),f||In.EMPTY_NODE):null}{const X=lo(_.visibleWrites,p);if(null!=X)return X;{const ye=un(_.visibleWrites,p);return On(ye)?f:null!=f||yi(ye,ri())?br(ye,f||In.EMPTY_NODE):null}}}function zr(_,p,f,M){return hs(_.writeTree,_.treePath,p,f,M)}function vl(_,p){return function cr(_,p,f){let M=In.EMPTY_NODE;const O=lo(_.visibleWrites,p);if(O)return O.isLeafNode()||O.forEachChild(F,(X,ye)=>{M=M.updateImmediateChild(X,ye)}),M;if(f){const X=un(_.visibleWrites,p);return f.forEachChild(F,(ye,Qe)=>{const yt=br(un(X,new Ri(ye)),Qe);M=M.updateImmediateChild(ye,yt)}
1),ci(X).forEach(ye=>{M=M.updateImmediateChild(ye.name,ye.node)}),M}return ci(un(_.visibleWrites,p)).forEach(ye=>{M=M.updateImmediateChild(ye.name,ye.node)}),M}(_.writeTree,_.treePath,p)}function uo(_,p,f,M){return function Wl(_,p,f,M,O){(0,Ve.hu)(M||O,"Either existingEventSnap or existingServerSnap must exist");const X=Ne(p,f);if(yi(_.visibleWrites,X))return null;{const ye=un(_.visibleWrites,X);return On(ye)?O.getChild(f):br(ye,O.getChild(f))}}(_.writeTree,_.treePath,p,f,M)}function $n(_,p){return function to(_,p){return lo(_.visibleWrites,p)}(_.writeTree,Ne(_.treePath,p))}function Ea(_,p,f){return function fc(_,p,f,M){const O=Ne(p,f),X=lo(_.visibleWrites,O);return null!=X?X:M.isCompleteForChild(f)?br(un(_.visibleWrites,O),M.getNode().getImmediateChild(f)):null}(_.writeTree,_.treePath,p,f)}function ll(_,p){return lu(Ne(_.treePath,p),_.writeTree)}function lu(_,p){return{treePath:_,writeTree:p}}class Ho{constructor(){this.changeMap=new Map}trackChildChange(p){const f=p.type,M=p.childName;(0,Ve.hu)("child_added"===f||"child_changed"===f||"child_removed"===f,"Only child changes supported for tracking"),(0,Ve.hu)(".priority"!==M,"Only non-priority child changes can be tracked.");const O=this.changeMap.get(M);if(O){const X=O.type;if("child_added"===f&&"child_removed"===X)this.changeMap.set(M,es(M,p.snapshotNode,O.snapshotNode));else if("child_removed"===f&&"child_added"===X)this.changeMap.delete(M);else if("child_removed"===f&&"child_changed"===X)this.changeMap.set(M,rs(M,O.oldSnap));else if("child_changed"===f&&"child_added"===X)this.changeMap.set(M,us(M,p.snapshotNode));else{if("child_changed"!==f||"child_changed"!==X)throw(0,Ve.g5)("Illegal combination of changes: "+p+" occurred after "+O);this.changeMap.set(M,es(M,p.snapshotNode,O.oldSnap))}}else this.changeMap.set(M,p)}getChanges(){return Array.from(this.changeMap.values())}}const bl=new class Ya{getCompleteChild(p){return null}getChildAfterChild(p,f,M){return null}};class Qa{constructor(p,f,M=null){this.writes_=p,this.viewCache_=f,this.optCompleteServerCache_=M}getCompleteChild(p){const f=this.viewCache_.eventCache;if(f.isCompleteForChild(p))return f.getNode().getImmediateChild(p);{const M=null!=this.optCompleteServerCache_?new z(this.optCompleteServerCache_,!0,!1):this.viewCache_.serverCache;return Ea(this.writes_,p,M)}}getChildAfterChild(p,f,M){const O=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:xt(this.viewCache_),X=function qa(_,p,f,M,O,X){return function Bi(_,p,f,M,O,X,ye){let Qe;const yt=un(_.visibleWrites,p),Lt=lo(yt,ri());if(null!=Lt)Qe=Lt;else{if(null==f)return[];Qe=br(yt,f)}if(Qe=Qe.withIndex(ye),Qe.isEmpty()||Qe.isLeafNode())return[];{const Tn=[],Ln=ye.getCompare(),Yn=X?Qe.getReverseIteratorFrom(M,ye):Qe.getIteratorFrom(M,ye);let Li=Yn.getNext();for(;Li&&Tn.length<O;)0!==Ln(Li,M)&&Tn.push(Li),Li=Yn.getNext();return Tn}}(_.writeTree,_.treePath,p,f,M,O,X)}(this.writes_,O,f,1,M,p);return 0===X.length?null:X[0]}}function Hu(_,p,f,M,O,X){const ye=p.eventCache;if(null!=$n(M,f))return p;{let Qe,yt;if(le(f))if((0,Ve.hu)(p.serverCache.isFullyInitialized(),"If change path is empty, we must have complete server data"),p.serverCache.isFiltered()){const Lt=xt(p),Ln=vl(M,Lt instanceof In?Lt:In.EMPTY_NODE);Qe=_.filter.updateFullNode(p.eventCache.getNode(),Ln,X)}else{const Lt=zr(M,xt(p));Qe=_.filter.updateFullNode(p.eventCache.getNode(),Lt,X)}else{const Lt=xi(f);if(".priority"===Lt){(0,Ve.hu)(1===Yr(f),"Can't have a priority with additional path components");const Tn=ye.getNode();yt=p.serverCache.getNode();const Ln=uo(M,f,Tn,yt);Qe=null!=Ln?_.filter.updatePriority(Tn,Ln):ye.getNode()}else{const Tn=rr(f);let Ln;if(ye.isCompleteForChild(Lt)){yt=p.serverCache.getNode();const Yn=uo(M,f,ye.getNode(),yt);Ln=null!=Yn?ye.getNode().getImmediateChild(Lt).updateChild(Tn,Yn):ye.getNode().getImmediateChild(Lt)}else Ln=Ea(M,Lt,p.serverCache);Qe=null!=Ln?_.filter.updateChild(ye.getNode(),Lt,Ln,Tn,O,X):ye.getNode()}}return Q(p,Qe,ye.isFullyInitialized()||le(f),_.filter.filtersNodes())}}function Zn(_,p,f,M,O,X,ye,Qe){const yt=p.serverCache;let Lt;const Tn=ye?_.filter:_.filter.getIndexedFilter();if(le(f))Lt=Tn.updateFullNode(yt.getNode(),M,null);else if(Tn.filtersNodes()&&!yt.isFiltered()){const Li=yt.getNode().updateChild(f,M);Lt=Tn.updateFullNode(yt.getNode(),Li,null)}else{const Li=xi(f);if(!yt.isCompleteForPath(f)&&Yr(f)>1)return p;const nr=rr(f),wa=yt.getNode().getImmediateChild(Li).updateChild(nr,M);Lt=".priority"===Li?Tn.updatePriority(yt.getNode(),wa):Tn.updateChild(yt.getNode(),Li,wa,nr,bl,null)}const Ln=xe(p,Lt,yt.isFullyInitialized()||le(f),Tn.filtersNodes());return Hu(_,Ln,f,O,new Qa(O,Ln,X),Qe)}function ul(_,p,f,M,O,X,ye){const Qe=p.eventCache;let yt,Lt;const Tn=new Qa(O,p,X);if(le(f))Lt=_.filter.updateFullNode(p.eventCache.getNode(),M,ye),yt=Q(p,Lt,!0,_.filter.filtersNodes());else{const Ln=xi(f);if(".priority"===Ln)Lt=_.filter.updatePriority(p.eventCache.getNode(),M),yt=Q(p,Lt,Qe.isFullyInitialized(),Qe.isFiltered());else{const Yn=rr(f),Li=Qe.getNode().getImmediateChild(Ln);let nr;if(le(Yn))nr=M;else{const os=Tn.getCompleteChild(Ln);nr=null!=os?".priority"===wo(Yn)&&os.getChild(fe(Yn)).isEmpty()?os:os.updateChild(Yn,M):In.EMPTY_NODE}yt=Li.equals(nr)?p:Q(p,_.filter.updateChild(Qe.getNode(),Ln,nr,Yn,Tn,ye),Qe.isFullyInitialized(),_.filter.filtersNodes())}}return yt}function nn(_,p){return _.eventCache.isCompleteForChild(p)}function lr(_,p,f){return f.foreach((M,O)=>{p=p.updateChild(M,O)}),p}function wl(_,p,f,M,O,X,ye,Qe){if(p.serverCache.getNode().isEmpty()&&!p.serverCache.isFullyInitialized())return p;let Lt,yt=p;Lt=le(f)?M:new Wt(null).setTree(f,M);const Tn=p.serverCache.getNode();return Lt.children.inorderTraversal((Ln,Yn)=>{if(Tn.hasChild(Ln)){const nr=lr(0,p.serverCache.getNode().getImmediateChild(Ln),Yn);yt=Zn(_,yt,new Ri(Ln),nr,O,X,ye,Qe)}}),Lt.children.inorderTraversal((Ln,Yn)=>{const Li=!p.serverCache.isCompleteForChild(Ln)&&null===Yn.value;if(!Tn.hasChild(Ln)&&!Li){const os=lr(0,p.serverCache.getNode().getImmediateChild(Ln),Yn);yt=Zn(_,yt,new Ri(Ln),os,O,X,ye,Qe)}}),yt}class Ba{constructor(p,f){this.query_=p,this.eventRegistrations_=[];const M=this.query_._queryParams,O=new ur(M.getIndex()),X=function Bs(_){return _.loadsAllData()?new ur(_.getIndex()):_.hasLimit()?new ea(_):new Or(_)}(M);this.processor_=function va(_){return{filter:_}}(X);const ye=f.serverCache,Qe=f.eventCache,yt=O.updateFullNode(In.EMPTY_NODE,ye.getNode(),null),Lt=X.updateFullNode(In.EMPTY_NODE,Qe.getNode(),null),Tn=new z(yt,ye.isFullyInitialized(),O.filtersNodes()),Ln=new z(Lt,Qe.isFullyInitialized(),X.filtersNodes());this.viewCache_=A(Ln,Tn),this.eventGenerator_=new H(this.query_)}get query(){return this.query_}}function ju(_,p){const f=xt(_.viewCache_);return f&&(_.query._queryParams.loadsAllData()||!le(p)&&!f.getImmediateChild(xi(p)).isEmpty())?f.getChild(p):null}function Mo(_){return 0===_.eventRegistrations_.length}function sa(_,p,f){const M=[];if(f){(0,Ve.hu)(null==p,"A cancel should cancel all event registrations.");const O=_.query._path;_.eventRegistrations_.forEach(X=>{const ye=X.createCancelEvent(f,O);ye&&M.push(ye)})}if(p){let O=[];for(let X=0;X<_.eventRegistrations_.length;++X){const ye=_.eventRegistrations_[X];if(ye.matches(p)){if(p.hasAnyCallback()){O=O.concat(_.eventRegistrations_.slice(X+1));break}}else O.push(ye)}_.eventRegistrations_=O}else _.eventRegistrations_=[];return M}function La(_,p,f,M){p.type===cs.MERGE&&null!==p.source.queryId&&((0,Ve.hu)(xt(_.viewCache_),"We should always have a full c
1ache before handling merges"),(0,Ve.hu)(bt(_.viewCache_),"Missing event cache, even though we have a server cache"));const O=_.viewCache_,X=function uu(_,p,f,M,O){const X=new Ho;let ye,Qe;if(f.type===cs.OVERWRITE){const Lt=f;Lt.source.fromUser?ye=ul(_,p,Lt.path,Lt.snap,M,O,X):((0,Ve.hu)(Lt.source.fromServer,"Unknown source."),Qe=Lt.source.tagged||p.serverCache.isFiltered()&&!le(Lt.path),ye=Zn(_,p,Lt.path,Lt.snap,M,O,Qe,X))}else if(f.type===cs.MERGE){const Lt=f;Lt.source.fromUser?ye=function Ja(_,p,f,M,O,X,ye){let Qe=p;return M.foreach((yt,Lt)=>{const Tn=Ne(f,yt);nn(p,xi(Tn))&&(Qe=ul(_,Qe,Tn,Lt,O,X,ye))}),M.foreach((yt,Lt)=>{const Tn=Ne(f,yt);nn(p,xi(Tn))||(Qe=ul(_,Qe,Tn,Lt,O,X,ye))}),Qe}(_,p,Lt.path,Lt.children,M,O,X):((0,Ve.hu)(Lt.source.fromServer,"Unknown source."),Qe=Lt.source.tagged||p.serverCache.isFiltered(),ye=wl(_,p,Lt.path,Lt.children,M,O,Qe,X))}else if(f.type===cs.ACK_USER_WRITE){const Lt=f;ye=Lt.revert?function Zl(_,p,f,M,O,X){let ye;if(null!=$n(M,f))return p;{const Qe=new Qa(M,p,O),yt=p.eventCache.getNode();let Lt;if(le(f)||".priority"===xi(f)){let Tn;if(p.serverCache.isFullyInitialized())Tn=zr(M,xt(p));else{const Ln=p.serverCache.getNode();(0,Ve.hu)(Ln instanceof In,"serverChildren would be complete if leaf node"),Tn=vl(M,Ln)}Lt=_.filter.updateFullNode(yt,Tn,X)}else{const Tn=xi(f);let Ln=Ea(M,Tn,p.serverCache);null==Ln&&p.serverCache.isCompleteForChild(Tn)&&(Ln=yt.getImmediateChild(Tn)),Lt=null!=Ln?_.filter.updateChild(yt,Tn,Ln,rr(f),Qe,X):p.eventCache.getNode().hasChild(Tn)?_.filter.updateChild(yt,Tn,In.EMPTY_NODE,rr(f),Qe,X):yt,Lt.isEmpty()&&p.serverCache.isFullyInitialized()&&(ye=zr(M,xt(p)),ye.isLeafNode()&&(Lt=_.filter.updateFullNode(Lt,ye,X)))}return ye=p.serverCache.isFullyInitialized()||null!=$n(M,ri()),Q(p,Lt,ye,_.filter.filtersNodes())}}(_,p,Lt.path,M,O,X):function Xa(_,p,f,M,O,X,ye){if(null!=$n(O,f))return p;const Qe=p.serverCache.isFiltered(),yt=p.serverCache;if(null!=M.value){if(le(f)&&yt.isFullyInitialized()||yt.isCompleteForPath(f))return Zn(_,p,f,yt.getNode().getChild(f),O,X,Qe,ye);if(le(f)){let Lt=new Wt(null);return yt.getNode().forEachChild(ks,(Tn,Ln)=>{Lt=Lt.set(new Ri(Tn),Ln)}),wl(_,p,f,Lt,O,X,Qe,ye)}return p}{let Lt=new Wt(null);return M.foreach((Tn,Ln)=>{const Yn=Ne(f,Tn);yt.isCompleteForPath(Yn)&&(Lt=Lt.set(Tn,yt.getNode().getChild(Yn)))}),wl(_,p,f,Lt,O,X,Qe,ye)}}(_,p,Lt.path,Lt.affectedTree,M,O,X)}else{if(f.type!==cs.LISTEN_COMPLETE)throw(0,Ve.g5)("Unknown operation type: "+f.type);ye=function ca(_,p,f,M,O){const X=p.serverCache;return Hu(_,xe(p,X.getNode(),X.isFullyInitialized()||le(f),X.isFiltered()),f,M,bl,O)}(_,p,f.path,M,X)}const yt=X.getChanges();return function cu(_,p,f){const M=p.eventCache;if(M.isFullyInitialized()){const O=M.getNode().isLeafNode()||M.getNode().isEmpty(),X=bt(_);(f.length>0||!_.eventCache.isFullyInitialized()||O&&!M.getNode().equals(X)||!M.getNode().getPriority().equals(X.getPriority()))&&f.push(Wr(bt(p)))}}(p,ye,yt),{viewCache:ye,changes:yt}}(_.processor_,O,p,f,M);return function Go(_,p){(0,Ve.hu)(p.eventCache.getNode().isIndexed(_.filter.getIndex()),"Event snap not indexed"),(0,Ve.hu)(p.serverCache.getNode().isIndexed(_.filter.getIndex()),"Server snap not indexed")}(_.processor_,X.viewCache),(0,Ve.hu)(X.viewCache.serverCache.isFullyInitialized()||!O.serverCache.isFullyInitialized(),"Once a server snap is complete, it should never go back"),_.viewCache_=X.viewCache,Us(_,X.changes,X.viewCache.eventCache.getNode(),null)}function Us(_,p,f,M){return function he(_,p,f,M){const O=[],X=[];return p.forEach(ye=>{"child_changed"===ye.type&&_.index_.indexedValueChanged(ye.oldSnap,ye.snapshotNode)&&X.push(function Zr(_,p){return{type:"child_moved",snapshotNode:p,childName:_}}(ye.childName,ye.snapshotNode))}),a(_,O,"child_removed",p,M,f),a(_,O,"child_added",p,M,f),a(_,O,"child_moved",X,M,f),a(_,O,"child_changed",p,M,f),a(_,O,"value",p,M,f),O}(_.eventGenerator_,p,f,M?[M]:_.eventRegistrations_)}let Pl,Ql;class $l{constructor(){this.views=new Map}}function Pa(_,p,f,M){const O=p.source.queryId;if(null!==O){const X=_.views.get(O);
1return(0,Ve.hu)(null!=X,"SyncTree gave us an op for an invalid query."),La(X,p,f,M)}{let X=[];for(const ye of _.views.values())X=X.concat(La(ye,p,f,M));return X}}function Du(_,p,f,M,O){const ye=_.views.get(p._queryIdentifier);if(!ye){let Qe=zr(f,O?M:null),yt=!1;Qe?yt=!0:M instanceof In?(Qe=vl(f,M),yt=!1):(Qe=In.EMPTY_NODE,yt=!1);const Lt=A(new z(Qe,yt,!1),new z(M,O,!1));return new Ba(p,Lt)}return ye}function Eu(_){const p=[];for(const f of _.views.values())f.query._queryParams.loadsAllData()||p.push(f);return p}function oa(_,p){let f=null;for(const M of _.views.values())f=f||ju(M,p);return f}function Cu(_,p){return p._queryParams.loadsAllData()?ql(_):_.views.get(p._queryIdentifier)}function Kl(_,p){return null!=Cu(_,p)}function Ca(_){return null!=ql(_)}function ql(_){for(const p of _.views.values())if(p.query._queryParams.loadsAllData())return p;return null}let ku=1;class Ol{constructor(p){this.listenProvider_=p,this.syncPointTree_=new Wt(null),this.pendingWriteTree_=function au(){return{visibleWrites:ti.empty(),allWrites:[],lastWriteId:-1}}(),this.tagToQueryMap=new Map,this.queryToTagMap=new Map}}function du(_,p,f,M,O){return function Fa(_,p,f,M,O){(0,Ve.hu)(M>_.lastWriteId,"Stacking an older write on top of newer ones"),void 0===O&&(O=!0),_.allWrites.push({path:p,snap:f,writeId:M,visible:O}),O&&(_.visibleWrites=Zi(_.visibleWrites,p,f)),_.lastWriteId=M}(_.pendingWriteTree_,p,f,M,O),O?$s(_,new Zo({fromUser:!0,fromServer:!1,queryId:null,tagged:!1},p,f)):[]}function Sa(_,p,f=!1){const M=function ua(_,p){for(let f=0;f<_.allWrites.length;f++){const M=_.allWrites[f];if(M.writeId===p)return M}return null}(_.pendingWriteTree_,p);if(function ou(_,p){const f=_.allWrites.findIndex(Qe=>Qe.writeId===p);(0,Ve.hu)(f>=0,"removeWrite called with nonexistent writeId.");const M=_.allWrites[f];_.allWrites.splice(f,1);let O=M.visible,X=!1,ye=_.allWrites.length-1;for(;O&&ye>=0;){const Qe=_.allWrites[ye];Qe.visible&&(ye>=f&&al(Qe,M.path)?O=!1:hn(M.path,Qe.path)&&(X=!0)),ye--}return!!O&&(X?(function Ka(_){_.visibleWrites=zl(_.allWrites,yl,ri()),_.lastWriteId=_.allWrites.length>0?_.allWrites[_.allWrites.length-1].writeId:-1}(_),!0):(M.snap?_.visibleWrites=qn(_.visibleWrites,M.path):x(M.children,yt=>{_.visibleWrites=qn(_.visibleWrites,Ne(M.path,yt))}),!0))}(_.pendingWriteTree_,p)){let X=new Wt(null);return null!=M.snap?X=X.set(ri(),!0):x(M.children,ye=>{X=X.set(new Ri(ye),!0)}),$s(_,new Da(M.path,X,f))}return[]}function el(_,p,f){return $s(_,new Zo({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},p,f))}function ys(_,p,f,M,O=!1){const X=p._path,ye=_.syncPointTree_.get(X);let Qe=[];if(ye&&("default"===p._queryIdentifier||Kl(ye,p))){const yt=function ko(_,p,f,M){const O=p._queryIdentifier,X=[];let ye=[];const Qe=Ca(_);if("default"===O)for(const[yt,Lt]of _.views.entries())ye=ye.concat(sa(Lt,f,M)),Mo(Lt)&&(_.views.delete(yt),Lt.query._queryParams.loadsAllData()||X.push(Lt.query));else{const yt=_.views.get(O);yt&&(ye=ye.concat(sa(yt,f,M)),Mo(yt)&&(_.views.delete(O),yt.query._queryParams.loadsAllData()||X.push(yt.query)))}return Qe&&!Ca(_)&&X.push(new(function Tl(){return(0,Ve.hu)(Pl,"Reference.ts has not been loaded"),Pl}())(p._repo,p._path)),{removed:X,events:ye}}(ye,p,f,M);(function Aa(_){return 0===_.views.size})(ye)&&(_.syncPointTree_=_.syncPointTree_.remove(X));const Lt=yt.removed;if(Qe=yt.events,!O){const Tn=-1!==Lt.findIndex(Yn=>Yn._queryParams.loadsAllData()),Ln=_.syncPointTree_.findOnPath(X,(Yn,Li)=>Ca(Li));if(Tn&&!Ln){const Yn=_.syncPointTree_.subtree(X);if(!Yn.isEmpty()){const Li=function Rt(_){return _.fold((p,f,M)=>{if(f&&Ca(f))return[ql(f)];{let O=[];return f&&(O=Eu(f)),x(M,(X,ye)=>{O=O.concat(ye)}),O}})}(Yn);for(let nr=0;nr<Li.length;++nr){const os=Li[nr],wa=os.query,Ul=Er(_,os);_.listenProvider_.startListening(ln(wa),T(_,wa),Ul.hashFn,Ul.onComplete)}}}!Ln&&Lt.length>0&&!M&&(Tn?_.listenProvider_.stopListening(ln(p),null):Lt.forEach(Yn=>{const Li=_.queryToTagMap.get(Y(Yn));_.listenProvider_.stopListening(ln(Yn),Li)}))}!function ui(_,p){for(let f=0;f<p.length;++f){const M=p[f];if(!M._queryParams.loadsAllData()){const O=Y(M),X=_.queryToTagMap.get(O);_.queryToTagMap.delete(O),_.tagToQueryMap.delete(X)}}}(_,Lt)}return Qe}function cl(_,p,f,M){const O=se(_,M);if(null!=O){const X=ve(O),ye=X.path,Qe=X.queryId,yt=qe(ye,p);return Xe(_,ye,new Zo(So(Qe),yt,f))}return[]}function Rl(_,p,f,M=!1){const O=p._path;let X=null,ye=!1;_.syncPointTree_.foreachOnPath(O,(Yn,Li)=>{const nr=qe(Yn,O);X=X||oa(Li,nr),ye=ye||Ca(Li)});let yt,Qe=_.syncPointTree_.get(O);
1Qe?(ye=ye||Ca(Qe),X=X||oa(Qe,ri())):(Qe=new $l,_.syncPointTree_=_.syncPointTree_.set(O,Qe)),null!=X?yt=!0:(yt=!1,X=In.EMPTY_NODE,_.syncPointTree_.subtree(O).foreachChild((Li,nr)=>{const os=oa(nr,ri());os&&(X=X.updateImmediateChild(Li,os))}));const Lt=Kl(Qe,p);if(!Lt&&!p._queryParams.loadsAllData()){const Yn=Y(p);(0,Ve.hu)(!_.queryToTagMap.has(Yn),"View does not exist, but we have a tag");const Li=function ir(){return ku++}();_.queryToTagMap.set(Yn,Li),_.tagToQueryMap.set(Li,Yn)}let Ln=function Vu(_,p,f,M,O,X){const ye=Du(_,p,M,O,X);return _.views.has(p._queryIdentifier)||_.views.set(p._queryIdentifier,ye),function Uo(_,p){_.eventRegistrations_.push(p)}(ye,f),function Gl(_,p){const f=_.viewCache_.eventCache,M=[];return f.getNode().isLeafNode()||f.getNode().forEachChild(F,(X,ye)=>{M.push(us(X,ye))}),f.isFullyInitialized()&&M.push(Wr(f.getNode())),Us(_,M,f.getNode(),p)}(ye,f)}(Qe,p,f,Gs(_.pendingWriteTree_,O),X,yt);if(!Lt&&!ye&&!M){const Yn=Cu(Qe,p);Ln=Ln.concat(function Nr(_,p,f){const M=p._path,O=T(_,p),X=Er(_,f),ye=_.listenProvider_.startListening(ln(p),O,X.hashFn,X.onComplete),Qe=_.syncPointTree_.subtree(M);if(O)(0,Ve.hu)(!Ca(Qe.value),"If we're adding a query, it shouldn't be shadowed");else{const yt=Qe.fold((Lt,Tn,Ln)=>{if(!le(Lt)&&Tn&&Ca(Tn))return[ql(Tn).query];{let Yn=[];return Tn&&(Yn=Yn.concat(Eu(Tn).map(Li=>Li.query))),x(Ln,(Li,nr)=>{Yn=Yn.concat(nr)}),Yn}});for(let Lt=0;Lt<yt.length;++Lt){const Tn=yt[Lt];_.listenProvider_.stopListening(ln(Tn),T(_,Tn))}}return ye}(_,p,Yn))}return Ln}function fs(_,p,f){const O=_.pendingWriteTree_,X=_.syncPointTree_.findOnPath(p,(ye,Qe)=>{const Lt=oa(Qe,qe(ye,p));if(Lt)return Lt});return hs(O,p,X,f,!0)}function $s(_,p){return ss(p,_.syncPointTree_,null,Gs(_.pendingWriteTree_,ri()))}function ss(_,p,f,M){if(le(_.path))return hl(_,p,f,M);{const O=p.get(ri());null==f&&null!=O&&(f=oa(O,ri()));let X=[];const ye=xi(_.path),Qe=_.operationForChild(ye),yt=p.children.get(ye);if(yt&&Qe){const Lt=f?f.getImmediateChild(ye):null,Tn=ll(M,ye);X=X.concat(ss(Qe,yt,Lt,Tn))}return O&&(X=X.concat(Pa(O,_,M,f))),X}}function hl(_,p,f,M){const O=p.get(ri());null==f&&null!=O&&(f=oa(O,ri()));let X=[];return p.children.inorderTraversal((ye,Qe)=>{const yt=f?f.getImmediateChild(ye):null,Lt=ll(M,ye),Tn=_.operationForChild(ye);Tn&&(X=X.concat(hl(Tn,Qe,yt,Lt)))}),O&&(X=X.concat(Pa(O,_,M,f))),X}function Er(_,p){const f=p.query,M=T(_,f);return{hashFn:()=>(function Uu(_){return _.viewCache_.serverCache.getNode()}(p)||In.EMPTY_NODE).hash(),onComplete:O=>{if("ok"===O)return M?function Ra(_,p,f){const M=se(_,f);if(M){const O=ve(M),X=O.path,ye=O.queryId,Qe=qe(X,p);return Xe(_,X,new la(So(ye),Qe))}return[]}(_,f._path,M):function xu(_,p){return $s(_,new la({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},p))}(_,f._path);{const X=function St(_,p){let f="Unknown Error";"too_big"===_?f="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"===_?f="Client doesn't have permission to access the desired data.":"unavailable"===_&&(f="The service is unavailable");const M=new Error(_+" at "+p._path.toString()+": "+f);return M.code=_.toUpperCase(),M}(O,f);return ys(_,f,null,X)}}}}function T(_,p){const f=Y(p);return _.queryToTagMap.get(f)}function Y(_){return _._path.toString()+"$"+_._queryIdentifier}function se(_,p){return _.tagToQueryMap.get(p)}function ve(_){const p=_.indexOf("$");return(0,Ve.hu)(-1!==p&&p<_.length-1,"Bad queryKey."),{queryId:_.substr(p+1),path:new Ri(_.substr(0,p))}}function Xe(_,p,f){const M=_.syncPointTree_.get(p);return(0,Ve.hu)(M,"Missing sync point for query tag that we're tracking"),Pa(M,f,Gs(_.pendingWriteTree_,p),null)}
1function ln(_){return _._queryParams.loadsAllData()&&!_._queryParams.isDefault()?new(function Oa(){return(0,Ve.hu)(Ql,"Reference.ts has not been loaded"),Ql}())(_._repo,_._path):_}class Rs{constructor(p){this.node_=p}getImmediateChild(p){const f=this.node_.getImmediateChild(p);return new Rs(f)}node(){return this.node_}}class xs{constructor(p,f){this.syncTree_=p,this.path_=f}getImmediateChild(p){const f=Ne(this.path_,p);return new xs(this.syncTree_,f)}node(){return fs(this.syncTree_,this.path_)}}const ka=function(_,p,f){return _&&"object"==typeof _?((0,Ve.hu)(".sv"in _,"Unexpected leaf node or priority contents"),"string"==typeof _[".sv"]?fl(_[".sv"],p,f):"object"==typeof _[".sv"]?Nl(_[".sv"],p):void(0,Ve.hu)(!1,"Unexpected server value: "+JSON.stringify(_,null,2))):_},fl=function(_,p,f){if("timestamp"===_)return f.timestamp;(0,Ve.hu)(!1,"Unexpected server value: "+_)},Nl=function(_,p,f){_.hasOwnProperty("increment")||(0,Ve.hu)(!1,"Unexpected server value: "+JSON.stringify(_,null,2));const M=_.increment;"number"!=typeof M&&(0,Ve.hu)(!1,"Unexpected increment value: "+M);const O=p.node();if((0,Ve.hu)(null!=O,"Expected ChildrenNode.EMPTY_NODE for nulls"),!O.isLeafNode())return M;const ye=O.getValue();return"number"!=typeof ye?M:ye+M},ta=function(_,p,f,M){return pl(p,new xs(f,_),M)},fu=function(_,p,f){return pl(_,new Rs(p),f)};function pl(_,p,f){const M=_.getPriority().val(),O=ka(M,p.getImmediateChild(".priority"),f);let X;if(_.isLeafNode()){const ye=_,Qe=ka(ye.getValue(),p,f);return Qe!==ye.getValue()||O!==ye.getPriority().val()?new No(Qe,Gn(O)):_}{const ye=_;return X=ye,O!==ye.getPriority().val()&&(X=X.updatePriority(new No(O))),ye.forEachChild(F,(Qe,yt)=>{const Lt=pl(yt,p.getImmediateChild(Qe),f);Lt!==yt&&(X=X.updateImmediateChild(Qe,Lt))}),X}}class Lu{constructor(p="",f=null,M={children:{},childCount:0}){this.name=p,this.parent=f,this.node=M}}function ml(_,p){let f=p instanceof Ri?p:new Ri(p),M=_,O=xi(f);for(;null!==O;){const X=(0,Ve.DV)(M.node.children,O)||{children:{},childCount:0};M=new Lu(O,M,X),f=rr(f),O=xi(f)}return M}function El(_){return _.node.value}function Fl(_,p){_.node.value=p,wn(_)}function V(_){return _.node.childCount>0}function Ie(_,p){x(_.node.children,(f,M)=>{p(new Lu(f,_,M))})}function pt(_,p,f,M){f&&!M&&p(_),Ie(_,O=>{pt(O,p,!0,M)}),f&&M&&p(_)}function Xt(_){return new Ri(null===_.parent?_.name:Xt(_.parent)+"/"+_.name)}function wn(_){null!==_.parent&&function gi(_,p,f){const M=function ne(_){return void 0===El(_)&&!V(_)}(f),O=(0,Ve.r3)(_.node.children,p);M&&O?(delete _.node.children[p],_.node.childCount--,wn(_)):!M&&!O&&(_.node.children[p]=f.node,_.node.childCount++,wn(_))}(_.parent,_.name,_)}const fi=/[\[\].#$\/\u0000-\u001F\u007F]/,zi=/[\[\].#$\u0000-\u001F\u007F]/,pr=10485760,tr=function(_){return"string"==typeof _&&0!==_.length&&!fi.test(_)},vs=function(_){return"string"==typeof _&&0!==_.length&&!zi.test(_)},ps=function(_){return null===_||"string"==typeof _||"number"==typeof _&&!Ot(_)||_&&"object"==typeof _&&(0,Ve.r3)(_,".sv")},xo=function(_,p,f,M){M&&void 0===p||tl((0,Ve.gK)(_,"value"),p,f)},tl=function(_,p,f){const M=f instanceof Ri?new li(f,_):f;if(void 0===p)throw new Error(_+"contains undefined "+$i(M));if("function"==typeof p)throw new Error(_+"contains a function "+$i(M)+" with contents = "+p.toString());if(Ot(p))throw new Error(_+"contains "+p.toString()+" "+$i(M));if("string"==typeof p&&p.length>pr/3&&(0,Ve.ug)(p)>pr)throw new Error(_+"contains a string greater than "+pr+" utf8 bytes "+$i(M)+" ('"+p.substring(0,50)+"...')");if(p&&"object"==typeof p){let O=!1,X=!1;if(x(p,(ye,Qe)=>{if(".value"===ye)O=!0;else if(".priority"!==ye&&".sv"!==ye&&(X=!0,!tr(ye)))throw new Error(_+" contains an invalid key ("+ye+") "+$i(M)+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');(function Tr(_,p){_.parts_.length>0&&(_.byteLength_+=1),_.parts_.push(p),_.byteLength_+=(0,Ve.ug)(p),Xi(_)})(M,ye),tl(_,Qe,M),function Dr(_){const p=_.parts_.pop();_.byteLength_-=(0,Ve.ug)(p),_.parts_.length>0&&(_.byteLength_-=1)}(M)}),O&&X)throw new Error(_+' contains ".value" child '+$i(M)+" in addition to actual children.")}},da=function(_,p,f,M){if(M&&void 0===p)return;const O=(0,Ve.gK)(_,"values");if(!p||"object"!=typeof p||Array.isArray(p))throw new Error(O+" must be an object c
1ontaining the children to replace.");const X=[];x(p,(ye,Qe)=>{const yt=new Ri(ye);if(tl(O,Qe,Ne(f,yt)),".priority"===wo(yt)&&!ps(Qe))throw new Error(O+"contains an invalid value for '"+yt.toString()+"', which must be a valid Firebase priority (a string, finite number, server value, or null).");X.push(yt)}),function(_,p){let f,M;for(f=0;f<p.length;f++){M=p[f];const X=Ir(M);for(let ye=0;ye<X.length;ye++)if((".priority"!==X[ye]||ye!==X.length-1)&&!tr(X[ye]))throw new Error(_+"contains an invalid key ("+X[ye]+") in path "+M.toString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"')}p.sort(Ct);let O=null;for(f=0;f<p.length;f++){if(M=p[f],null!==O&&hn(O,M))throw new Error(_+"contains a path "+O.toString()+" that is ancestor of another path "+M.toString());O=M}}(O,X)},zu=function(_,p,f){if(!f||void 0!==p){if(Ot(p))throw new Error((0,Ve.gK)(_,"priority")+"is "+p.toString()+", but must be a valid Firebase priority (a string, finite number, server value, or null).");if(!ps(p))throw new Error((0,Ve.gK)(_,"priority")+"must be a valid Firebase priority (a string, finite number, server value, or null).")}},pc=function(_,p,f,M){if(!(M&&void 0===f||tr(f)))throw new Error((0,Ve.gK)(_,p)+'was an invalid key = "'+f+'". Firebase keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]").')},Br=function(_,p,f,M){if(!(M&&void 0===f||vs(f)))throw new Error((0,Ve.gK)(_,p)+'was an invalid path = "'+f+'". Paths must be non-empty strings and can\'t contain ".", "#", "$", "[", or "]"')},jo=function(_,p){if(".info"===xi(p))throw new Error(_+" failed = Can't modify data under /.info/")},Wu=function(_,p){const f=p.path.toString();if("string"!=typeof p.repoInfo.host||0===p.repoInfo.host.length||!tr(p.repoInfo.namespace)&&"localhost"!==p.repoInfo.host.split(":")[0]||0!==f.length&&!function(_){return _&&(_=_.replace(/^\/*\.info(\/|$)/,"/")),vs(_)}(f))throw new Error((0,Ve.gK)(_,"url")+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".')};class Zu{constructor(){this.eventLists_=[],this.recursionDepth_=0}}function mc(_,p){let f=null;for(let M=0;M<p.length;M++){const O=p[M],X=O.getPath();null!==f&&!dn(X,f.path)&&(_.eventLists_.push(f),f=null),null===f&&(f={events:[],path:X}),f.events.push(O)}f&&_.eventLists_.push(f)}function Rc(_,p,f){mc(_,f),Nc(_,M=>dn(M,p))}function Na(_,p,f){mc(_,f),Nc(_,M=>hn(M,p)||hn(p,M))}function Nc(_,p){_.recursionDepth_++;let f=!0;for(let M=0;M<_.eventLists_.length;M++){const O=_.eventLists_[M];O&&(p(O.path)?(pu(_.eventLists_[M]),_.eventLists_[M]=null):f=!1)}f&&(_.eventLists_=[]),_.recursionDepth_--}function pu(_){for(let p=0;p<_.events.length;p++){const f=_.events[p];if(null!==f){_.events[p]=null;const M=f.getEventRunner();ni&&Qt("event: "+f.toString()),Ii(M)}}}const Fc="repo_interrupt";class Sh{constructor(p,f,M,O){this.repoInfo_=p,this.forceRestClient_=f,this.authTokenProvider_=M,this.appCheckProvider_=O,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new Zu,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=Co(),this.transactionQueueTree_=new Lu,this.persistentConnection_=null,this.key=this.repoInfo_.toURLString()}toString(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host}}function D(_){const f=_.infoData_.getNode(new Ri(".info/serverTimeOffset")).val()||0;return(new Date).getTime()+f}function I(_){return function(_){return(_=_||{}).timestamp=_.timestamp||(new Date).getTime(),_}({timestamp:D(_)})}function Z(_,p,f,M,O){_.dataUpdateCount++;const X=new Ri(p);f=_.interceptServerDataCallback_?_.interceptServerDataCallback_(p,f):f;let ye=[];if(O)if(M){const yt=(0,Ve.UI)(f,Lt=>Gn(Lt));ye=function dl(_,p,f,M){const O=se(_,M);if(O){const X=ve(O),ye=X.path,Qe=X.queryId,yt=qe(ye,p),Lt=Wt.fromObject(f);return Xe(_,ye,new ee(So(Qe),yt,Lt))}return[]}(_.serverSyncTree_,X,yt,O)}else{const yt=Gn(f);ye=cl(_.serverSyncTree_,X,yt,O)}else if(M){const yt=(0,Ve.UI)(f,Lt=>Gn(Lt));ye=function Iu(_,p,f){const M=Wt.fromObject(f);return $s(_,new ee({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},p,M))}(_.serverSyncTree_,X,yt)}else{const yt=Gn(f);ye=el(_.serverSyncTree_,X,yt)}let Qe=X;ye.length>0&&(Qe=_u(_,X)),Na(_.eventQueue_,Qe,ye)}function Ae(_,p){Gt(_,"connected",p),!1===p&&function mr(_){Ia(_,"onDisconnectEvents");const p=I(_),f=Co();ga(_.onDisconnect_,ri(),(O,X)=>{const ye=ta(O,X,_.serverSyncTree_,p);Rr(f,O,ye)});let M=[];ga(f,ri(),(O,X)=>{M=M.concat(el(_.serverSyncTree_,O,X));const ye=Nu(_,O);_u(_,ye)}),_.onDisconnect_=Co(),Na(_.eventQueue_,ri(),M)}(_)}function Gt(_,p,f){const M=new Ri("/.info/"+p),O=Gn(f);_.infoData_.updateSnapshot(M,O);const X=el(_.infoSyncTree_,M,O);Na(_.eventQueue_,M,X)}function an(_){return _.nextWriteId_++}function Ci(_,p,f,M,O){Ia(_,"set",{path:p.toString(),value:f,priority:M});const X=I(_),ye=Gn(f,M),Qe=fs(_.serverSyncTree_,p),yt=fu(ye,Qe,X),Lt=an(_),Tn=du(_.serverSyncTree_,p,yt,Lt,!0);mc(_.eventQueue_,Tn),_.server_.put(p.toString(),ye.val(!0),(Yn,Li)=>{const nr="ok"===Yn;nr||Be("set at "+p+" failed: "+Yn);const os=Sa(_.serverSyncTree_,Lt,!nr);
1Na(_.eventQueue_,p,os),_o(0,O,Yn,Li)});const Ln=Nu(_,p);_u(_,Ln),Na(_.eventQueue_,Ln,[])}function js(_,p,f){_.server_.onDisconnectCancel(p.toString(),(M,O)=>{"ok"===M&&Ws(_.onDisconnect_,p),_o(0,f,M,O)})}function Lo(_,p,f,M){const O=Gn(f);_.server_.onDisconnectPut(p.toString(),O.val(!0),(X,ye)=>{"ok"===X&&Rr(_.onDisconnect_,p,O),_o(0,M,X,ye)})}function Gu(_,p,f){let M;M=".info"===xi(p._path)?ys(_.infoSyncTree_,p,f):ys(_.serverSyncTree_,p,f),Rc(_.eventQueue_,p._path,M)}function Pu(_){_.persistentConnection_&&_.persistentConnection_.interrupt(Fc)}function Ia(_,...p){let f="";_.persistentConnection_&&(f=_.persistentConnection_.id+":"),Qt(f,...p)}function _o(_,p,f,M){p&&Ii(()=>{if("ok"===f)p(null);else{const O=(f||"error").toUpperCase();let X=O;M&&(X+=": "+M);const ye=new Error(X);ye.code=O,p(ye)}})}function Ru(_,p,f){return fs(_.serverSyncTree_,p,f)||In.EMPTY_NODE}function mu(_,p=_.transactionQueueTree_){if(p||Sl(_,p),El(p)){const f=Ud(_,p);(0,Ve.hu)(f.length>0,"Sending zero length transaction queue"),f.every(O=>0===O.status)&&function rd(_,p,f){const M=f.map(Lt=>Lt.currentWriteId),O=Ru(_,p,M);let X=O;const ye=O.hash();for(let Lt=0;Lt<f.length;Lt++){const Tn=f[Lt];(0,Ve.hu)(0===Tn.status,"tryToSendTransactionQueue_: items in queue should all be run."),Tn.status=1,Tn.retryCount++;const Ln=qe(p,Tn.path);X=X.updateChild(Ln,Tn.currentOutputSnapshotRaw)}const Qe=X.val(!0),yt=p;_.server_.put(yt.toString(),Qe,Lt=>{Ia(_,"transaction put response",{path:yt.toString(),status:Lt});let Tn=[];if("ok"===Lt){const Ln=[];for(let Yn=0;Yn<f.length;Yn++)f[Yn].status=2,Tn=Tn.concat(Sa(_.serverSyncTree_,f[Yn].currentWriteId)),f[Yn].onComplete&&Ln.push(()=>f[Yn].onComplete(null,!0,f[Yn].currentOutputSnapshotResolved)),f[Yn].unwatcher();Sl(_,ml(_.transactionQueueTree_,p)),mu(_,_.transactionQueueTree_),Na(_.eventQueue_,p,Tn);for(let Yn=0;Yn<Ln.length;Yn++)Ii(Ln[Yn])}else{if("datastale"===Lt)for(let Ln=0;Ln<f.length;Ln++)f[Ln].status=3===f[Ln].status?4:0;else{Be("transaction at "+yt.toString()+" failed: "+Lt);for(let Ln=0;Ln<f.length;Ln++)f[Ln].status=4,f[Ln].abortReason=Lt}_u(_,p)}},ye)}(_,Xt(p),f)}else V(p)&&Ie(p,f=>{mu(_,f)})}function _u(_,p){const f=sd(_,p),M=Xt(f);return function $u(_,p,f){if(0===p.length)return;const M=[];let O=[];const ye=p.filter(Qe=>0===Qe.status).map(Qe=>Qe.currentWriteId);for(let Qe=0;Qe<p.length;Qe++){const yt=p[Qe],Lt=qe(f,yt.path);let Ln,Tn=!1;if((0,Ve.hu)(null!==Lt,"rerunTransactionsUnderNode_: relativePath should not be null."),4===yt.status)Tn=!0,Ln=yt.abortReason,O=O.concat(Sa(_.serverSyncTree_,yt.currentWriteId,!0));else if(0===yt.status)if(yt.retryCount>=25)Tn=!0,Ln="maxretry",O=O.concat(Sa(_.serverSyncTree_,yt.currentWriteId,!0));else{const Yn=Ru(_,yt.path,ye);yt.currentInputSnapshot=Yn;const Li=p[Qe].update(Yn.val());if(void 0!==Li){tl("transaction failed: Data returned ",Li,yt.path);let nr=Gn(Li);"object"==typeof Li&&null!=Li&&(0,Ve.r3)(Li,".priority")||(nr=nr.updatePriority(Yn.getPriority()));const wa=yt.currentWriteId,Ul=I(_),Vo=fu(nr,Yn,Ul);yt.currentOutputSnapshotRaw=nr,yt.currentOutputSnapshotResolved=Vo,yt.currentWriteId=an(_),ye.splice(ye.indexOf(wa),1),O=O.concat(du(_.serverSyncTree_,yt.path,Vo,yt.currentWriteId,yt.applyLocally)),O=O.concat(Sa(_.serverSyncTree_,wa,!0))}else Tn=!0,Ln="nodata",O=O.concat(Sa(_.serverSyncTree_,yt.currentWriteId,!0))}Na(_.eventQueue_,f,O),O=[],Tn&&(p[Qe].status=2,setTimeout(p[Qe].unwatcher,Math.floor(0)),p[Qe].onComplete&&M.push("nodata"===Ln?()=>p[Qe].onComplete(null,!1,p[Qe].currentInputSnapshot):()=>p[Qe].onComplete(new Error(Ln),!1,null)))}Sl(_,_.transactionQueueTree_);for(let Qe=0;Qe<M.length;Qe++)Ii(M[Qe]);mu(_,_.transactionQueueTree_)}(_,Ud(_,f),M),M}function sd(_,p){let f,M=_.transactionQueueTree_;for(f=xi(p);null!==f&&void 0===El(M);)M=ml(M,f),f=xi(p=rr(p));return M}function Ud(_,p){const f=[];return kh(_,p,f),f.sort((M,O)=>M.order-O.order),f}function kh(_,p,f){const M=El(p);if(M)for(let O=0;O<M.length;O++)f.push(M[O]);Ie(p,O=>{kh(_,O,f)})}function Sl(_,p){const f=El(p);if(f){let M=0;for(let O=0;O<f.length;O++)2!==f[O].status&&(f[M]=f[O],M++);f.length=M,Fl(p,f.length>0?f:void 0)}Ie(p,M=>{Sl(_,M)})}function Nu(_,p){const f=Xt(sd(_,p)),M=ml(_.transactionQueueTree_,p);return function jt(_,p,f){let M=f?_:_.parent;for(;null!==M;){if(p(M))return!0;M=M.parent}}(M,O=>{Ua(_,O)}),Ua(_,M),pt(M,O=>{Ua(_,O)}),f}function Ua(_,p){const f=El(p);if(f){const M=[];let O=[],X=-1;for(let ye=0;ye<f.length;ye++)3===f[ye].status||(1===f[ye].status?((0,Ve.hu)(X===ye-1,"All SENT items should be at beginning of queue."),X=ye,f[ye].status=3,f[ye].abortReason="set"):((0,Ve.hu)(0===f[ye].status,"Unexpected transaction status in abort"),f[ye].unwatcher(),O=O.concat(Sa(_.serverSyncTree_,f[ye].currentWriteId,!0)),f[ye].onComplete&&M.push(f[ye].onComplete.bind(null,new Error("set"),!1,null))));-1===X?Fl(p,void 0):f.length=X+1,Na(_.eventQueue_,Xt(p),O);for(let ye=0;ye<M.length;ye++)Ii(M[ye])}}const jd=function(_,p){const f=gu(_),M=f.namespace;return"firebase.com"===f.domain&&Ee(f.host+" is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead"),(!M||"undefined"===M)&&"localhost"!==f.domain&&Ee("Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com"),f.secure||"undefined"!=typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&Be("Insecure Firebase access from a secure page. Please use https in calls to new Firebase()."),{repoInfo:new jr(f.host,f.secure,M,"ws"===f.scheme||"wss"===f.scheme,p,"",M!==f.subdomain),path:new Ri(f.pathString)}},gu=function(_){let p="",f="",M="",O="",X="",ye=!0,Qe="https",yt=443;if("string"==typeof _){let Lt=_.indexOf("//");Lt>=0&&(Qe=_.substring(0,Lt-1),_=_.substring(Lt+2));let Tn=_.indexOf("/");-1===Tn&&(Tn=_.length);let Ln=_.indexOf("?");-1===Ln&&(Ln=_.length),p=_.substring(0,Math.min(Tn,Ln)),Tn<Ln&&(O=function zf(_){let p="";const f=_.split("/");for(let M=0;M<f.length;M++)if(f[M].length>0){let O=f[M];try{O=decodeURIComponent(O.replace(/\+/g," "))}catch(X){}p+="/"+O}return p}(_.substring(Tn,Ln)));const Yn=function od(_){const p={};"?"===_.charAt(0)&&(_=_.substring(1));for(const f of _.split("&")){if(0===f.length)continue;const M=f.split("=");2===M.length?p[decodeURIComponent(M[0])]=decodeURIComponent(M[1]):Be(`Invalid query segment '${f}' in query '${_}'`)}return p}(_.substring(Math.min(_.length,Ln)));Lt=p.indexOf(":"),Lt>=0?(ye="https"===Qe||"wss"===Qe,yt=parseInt(p.substring(Lt+1),10)):Lt=p.length;const Li=p.slice(0,Lt);if("localhost"===Li.toLowerCase())f="localhost";else if(Li.split(".").length<=2)f=Li;else{const nr=p.indexOf(".");M=p.substring(0,nr).toLowerCase(),f=p.substring(nr+1),X=M}"ns"in Yn&&(X=Yn.ns)}return{host:p,port:yt,domain:f,subdomain:M,secure:ye,scheme:Qe,pathString:O,namespace:X}},Jl="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",yu=function(){let _=0;const p=[];return function(f){const M=f===_;let O;_=f;const X=new Array(8);for(O=7;O>=0;O--)X[O]=Jl.charAt(f%64),f=Math.floor(f/64);(0,Ve.hu)(0===f,"Cannot push at time == 0");let ye=X.join("");if(M){for(O=11;O>=0&&63===p[O];
1O--)p[O]=0;p[O]++}else for(O=0;O<12;O++)p[O]=Math.floor(64*Math.random());for(O=0;O<12;O++)ye+=Jl.charAt(p[O]);return(0,Ve.hu)(20===ye.length,"nextPushId: Length should be 20."),ye}}();class Ih{constructor(p,f,M,O){this.eventType=p,this.eventRegistration=f,this.snapshot=M,this.prevName=O}getPath(){const p=this.snapshot.ref;return"value"===this.eventType?p._path:p.parent._path}getEventType(){return this.eventType}getEventRunner(){return this.eventRegistration.getEventRunner(this)}toString(){return this.getPath().toString()+":"+this.eventType+":"+(0,Ve.Wl)(this.snapshot.exportVal())}}class Wf{constructor(p,f,M){this.eventRegistration=p,this.error=f,this.path=M}getPath(){return this.path}getEventType(){return"cancel"}getEventRunner(){return this.eventRegistration.getEventRunner(this)}toString(){return this.path.toString()+":cancel"}}class Hr{constructor(p,f){this.snapshotCallback=p,this.cancelCallback=f}onValue(p,f){this.snapshotCallback.call(null,p,f)}onCancel(p){return(0,Ve.hu)(this.hasCancelCallback,"Raising a cancel event on a listener with no cancel callback"),this.cancelCallback.call(null,p)}get hasCancelCallback(){return!!this.cancelCallback}matches(p){return this.snapshotCallback===p.snapshotCallback||void 0!==this.snapshotCallback.userCallback&&this.snapshotCallback.userCallback===p.snapshotCallback.userCallback&&this.snapshotCallback.context===p.snapshotCallback.context}}class Zf{constructor(p,f){this._repo=p,this._path=f}cancel(){const p=new Ve.BH;return js(this._repo,this._path,p.wrapCallback(()=>{})),p.promise}remove(){jo("OnDisconnect.remove",this._path);const p=new Ve.BH;return Lo(this._repo,this._path,null,p.wrapCallback(()=>{})),p.promise}set(p){jo("OnDisconnect.set",this._path),xo("OnDisconnect.set",p,this._path,!1);const f=new Ve.BH;return Lo(this._repo,this._path,p,f.wrapCallback(()=>{})),f.promise}setWithPriority(p,f){jo("OnDisconnect.setWithPriority",this._path),xo("OnDisconnect.setWithPriority",p,this._path,!1),zu("OnDisconnect.setWithPriority",f,!1);const M=new Ve.BH;return function Au(_,p,f,M,O){const X=Gn(f,M);_.server_.onDisconnectPut(p.toString(),X.val(!0),(ye,Qe)=>{"ok"===ye&&Rr(_.onDisconnect_,p,X),_o(0,O,ye,Qe)})}(this._repo,this._path,p,f,M.wrapCallback(()=>{})),M.promise}update(p){jo("OnDisconnect.update",this._path),da("OnDisconnect.update",p,this._path,!1);const f=new Ve.BH;return function _l(_,p,f,M){if((0,Ve.xb)(f))return Qt("onDisconnect().update() called with empty data. Don't do anything."),void _o(0,M,"ok",void 0);_.server_.onDisconnectMerge(p.toString(),f,(O,X)=>{"ok"===O&&x(f,(ye,Qe)=>{const yt=Gn(Qe);Rr(_.onDisconnect_,Ne(p,ye),yt)}),_o(0,M,O,X)})}(this._repo,this._path,p,f.wrapCallback(()=>{})),f.promise}}class ja{constructor(p,f,M,O){this._repo=p,this._path=f,this._queryParams=M,this._orderByCalled=O}get key(){return le(this._path)?null:wo(this._path)}get ref(){return new nl(this._repo,this._path)}get _queryIdentifier(){const p=ts(this._queryParams),f=U(p);return"{}"===f?"default":f}get _queryObject(){return ts(this._queryParams)}isEqual(p){if(!((p=(0,Ve.m9)(p))instanceof ja))return!1;const f=this._repo===p._repo,M=dn(this._path,p._path);return f&&M&&this._queryIdentifier===p._queryIdentifier}toJSON(){return this.toString()}toString(){return this._repo.toString()+function Ma(_){let p="";for(let f=_.pieceNum_;f<_.pieces_.length;f++)""!==_.pieces_[f]&&(p+="/"+encodeURIComponent(String(_.pieces_[f])));return p||"/"}(this._path)}}function ad(_,p){if(!0===_._orderByCalled)throw new Error(p+": You can't combine multiple orderBy calls.")}function vu(_){let p=null,f=null;if(_.hasStart()&&(p=_.getIndexStartValue()),_.hasEnd()&&(f=_.getIndexEndValue()),_.getIndex()===ks){const M="Query: When ordering by key, you may only pass one argument to startAt(), endAt(), or equalTo().",O="Query: When ordering by key, the argument passed to startAt(), startAfter(), endAt(), endBefore(), or equalTo() must be a string.";if(_.hasStart()){if(_.getIndexStartName()!==yn)throw new Error(M);if("string"!=typeof p)throw new Error(O)}if(_.hasEnd()){if(_.getIndexEndName()!==ei)throw new Error(M);if("string"!=typeof f)throw new Error(O)}}else if(_.getIndex()===F){if(null!=p&&!ps(p)||null!=f&&!ps(f))throw new Error("Query: When ordering by priority, the first argument passed to startAt(), startAfter() endAt(), endBefore(), or equalTo() must be a valid priority value (null, a number, or a string).")}else if((0,Ve.hu)(_.getIndex()instanceof Qi||_.getIndex()===Kr,"unknown index type."),null!=p&&"object"==typeof p||null!=f&&"object"==typeof f)throw new Error("Query: First argument passed to startAt(), startAfter(), endAt(), endBefore(), or equalTo() cannot be an object.")}function ld(_){if(_.hasStart()&&_.hasEnd()&&_.hasLimit()&&!_.hasAnchoredLimit())throw new Error("Query: Can't combine startAt(), startAfter(), endAt(), endBefore(), and limit(). Use limitToFirst() or limitToLast() instead.")}class nl extends ja{constructor(p,f){super(p,f,new Xs,!1)}get parent(){const p=fe(this._path);return null===p?null:new nl(this._repo,p)}get root(){let p=this;for(;null!==p.parent;)p=p.parent;return p}}class _c{constructor(p,f,M){this._node=p,this.ref=f,this._index=M}get priority(){return this._node.getPriority().val()}get key(){return this.ref.key}get size(){return this._node.numChildren()}child(p){const f=new Ri(p),M=Yl(this.ref,p);return new _c(this._node.getChild(f),M,F)}exists(){return!this._node.isEmpty()}exportVal(){return this._node.val(!0)}forEach(p){return!this._node.isLeafNode()&&!!this._node.forEachChild(this._index,(M,O)=>
1p(new _c(O,Yl(this.ref,M),F)))}hasChild(p){const f=new Ri(p);return!this._node.getChild(f).isEmpty()}hasChildren(){return!this._node.isLeafNode()&&!this._node.isEmpty()}toJSON(){return this.exportVal()}val(){return this._node.val()}}function Gf(_,p){return(_=(0,Ve.m9)(_))._checkNotDeleted("ref"),void 0!==p?Yl(_._root,p):_._root}function $f(_,p){(_=(0,Ve.m9)(_))._checkNotDeleted("refFromURL");const f=jd(p,_._repo.repoInfo_.nodeAdmin);Wu("refFromURL",f);const M=f.repoInfo;return!_._repo.repoInfo_.isCustomHost()&&M.host!==_._repo.repoInfo_.host&&Ee("refFromURL: Host name does not match the current database: (found "+M.host+" but expected "+_._repo.repoInfo_.host+")"),Gf(_,f.path.toString())}function Yl(_,p){return null===xi((_=(0,Ve.m9)(_))._path)?(f=p,f&&(f=f.replace(/^\/*\.info(\/|$)/,"/")),Br("child","path",f,!1)):Br("child","path",p,!1),new nl(_._repo,Ne(_._path,p));var f}function Ku(_,p){_=(0,Ve.m9)(_),jo("set",_._path),xo("set",p,_._path,!1);const f=new Ve.BH;return Ci(_._repo,_._path,p,null,f.wrapCallback(()=>{})),f.promise}function Ah(_,p){da("update",p,_._path,!1);const f=new Ve.BH;return function sr(_,p,f,M){Ia(_,"update",{path:p.toString(),value:f});let O=!0;const X=I(_),ye={};if(x(f,(Qe,yt)=>{O=!1,ye[Qe]=ta(Ne(p,Qe),Gn(yt),_.serverSyncTree_,X)}),O)Qt("update() called with empty data. Don't do anything."),_o(0,M,"ok",void 0);else{const Qe=an(_),yt=function hu(_,p,f,M){!function ds(_,p,f,M){(0,Ve.hu)(M>_.lastWriteId,"Stacking an older merge on top of newer ones"),_.allWrites.push({path:p,children:f,writeId:M,visible:!0}),_.visibleWrites=kr(_.visibleWrites,p,f),_.lastWriteId=M}(_.pendingWriteTree_,p,f,M);const O=Wt.fromObject(f);return $s(_,new ee({fromUser:!0,fromServer:!1,queryId:null,tagged:!1},p,O))}(_.serverSyncTree_,p,ye,Qe);mc(_.eventQueue_,yt),_.server_.merge(p.toString(),f,(Lt,Tn)=>{const Ln="ok"===Lt;Ln||Be("update at "+p+" failed: "+Lt);const Yn=Sa(_.serverSyncTree_,Qe,!Ln),Li=Yn.length>0?_u(_,p):p;Na(_.eventQueue_,Li,Yn),_o(0,M,Lt,Tn)}),x(f,Lt=>{const Tn=Nu(_,Ne(p,Lt));_u(_,Tn)}),Na(_.eventQueue_,p,[])}}(_._repo,_._path,p,f.wrapCallback(()=>{})),f.promise}function Vd(_){_=(0,Ve.m9)(_);const p=new Hr(()=>{}),f=new zd(p);return function Xn(_,p,f){const M=function Dl(_,p){const f=p._path;let M=null;_.syncPointTree_.foreachOnPath(f,(Lt,Tn)=>{const Ln=qe(Lt,f);M=M||oa(Tn,Ln)});let O=_.syncPointTree_.get(f);O?M=M||oa(O,ri()):(O=new $l,_.syncPointTree_=_.syncPointTree_.set(f,O));const X=null!=M,ye=X?new z(M,!0,!1):null;return function Ml(_){return bt(_.viewCache_)}(Du(O,p,Gs(_.pendingWriteTree_,p._path),X?ye.getNode():In.EMPTY_NODE,X))}(_.serverSyncTree_,p);return null!=M?Promise.resolve(M):_.server_.get(p).then(O=>{const X=Gn(O).withIndex(p._queryParams.getIndex());let ye;if(Rl(_.serverSyncTree_,p,f,!0),p._queryParams.loadsAllData())ye=el(_.serverSyncTree_,p._path,X);else{const Qe=T(_.serverSyncTree_,p);ye=cl(_.serverSyncTree_,p._path,X,Qe)}return Na(_.eventQueue_,p._path,ye),ys(_.serverSyncTree_,p,f,null,!0),X},O=>(Ia(_,"get for query "+(0,Ve.Wl)(p)+" failed: "+O),Promise.reject(new Error(O))))}(_._repo,_,f).then(M=>new _c(M,new nl(_._repo,_._path),_._queryParams.getIndex()))}class zd{constructor(p){this.callbackContext=p}respondsTo(p){return"value"===p}createEvent(p,f){const M=f._queryParams.getIndex();return new Ih("value",this,new _c(p.snapshotNode,new nl(f._repo,f._path),M))}getEventRunner(p){return"cancel"===p.getEventType()?()=>this.callbackContext.onCancel(p.error):()=>this.callbackContext.onValue(p.snapshot,null)}createCancelEvent(p,f){return this.callbackContext.hasCancelCallback?new Wf(this,p,f):null}matches(p){return p instanceof zd&&(!p.callbackContext||!this.callbackContext||p.callbackContext.matches(this.callbackContext))}hasAnyCallback(){return null!==this.callbackContext}}class Ph{constructor(p,f){this.eventType=p,this.callbackContext=f}respondsTo(p){let f="children_added"===p?"child_added":p;return f="children_removed"===f?"child_removed":f,this.eventType===f}createCancelEvent(p,f){return this.callbackContext.hasCancelCallback?new Wf(this,p,f):null}createEvent(p,f){(0,Ve.hu)(null!=p.childName,"Child events should have a childName.");const M=Yl(new nl(f._repo,f._path),p.childName),O=f._queryParams.getIndex();return new Ih(p.type,this,new _c(p.snapshotNode,M,O),p.prevName)}getEventRunner(p){return"cancel"===p.getEventType()?()=>this.callbackContext.onCancel(p.error):()=>this.callbackContext.onValue(p.snapshot,p.prevName)}
1matches(p){return p instanceof Ph&&this.eventType===p.eventType&&(!this.callbackContext||!p.callbackContext||this.callbackContext.matches(p.callbackContext))}hasAnyCallback(){return!!this.callbackContext}}function no(_,p,f,M,O){let X;if("object"==typeof M&&(X=void 0,O=M),"function"==typeof M&&(X=M),O&&O.onlyOnce){const yt=f,Lt=(Tn,Ln)=>{Gu(_._repo,_,Qe),yt(Tn,Ln)};Lt.userCallback=f.userCallback,Lt.context=f.context,f=Lt}const ye=new Hr(f,X||void 0),Qe="value"===p?new zd(ye):new Ph(p,ye);return function Yc(_,p,f){let M;M=".info"===xi(p._path)?Rl(_.infoSyncTree_,p,f):Rl(_.serverSyncTree_,p,f),Rc(_.eventQueue_,p._path,M)}(_._repo,_,Qe),()=>Gu(_._repo,_,Qe)}function qu(_,p,f,M){return no(_,"value",p,f,M)}function yc(_,p,f,M){return no(_,"child_added",p,f,M)}function Kf(_,p,f,M){return no(_,"child_changed",p,f,M)}function bm(_,p,f,M){return no(_,"child_moved",p,f,M)}function vc(_,p,f,M){return no(_,"child_removed",p,f,M)}function qf(_,p,f){let M=null;const O=f?new Hr(f):null;"value"===p?M=new zd(O):p&&(M=new Ph(p,O)),Gu(_._repo,_,M)}class Bl{}class bc extends Bl{constructor(p,f){super(),this._value=p,this._key=f}_apply(p){xo("endAt",this._value,p._path,!0);const f=bi(p._queryParams,this._value,this._key);if(ld(f),vu(f),p._queryParams.hasEnd())throw new Error("endAt: Starting point was already set (by another call to endAt, endBefore or equalTo).");return new ja(p._repo,p._path,f,p._orderByCalled)}}class Oh extends Bl{constructor(p,f){super(),this._value=p,this._key=f}_apply(p){xo("endBefore",this._value,p._path,!1);const f=function Ei(_,p,f){let M;return M=bi(_,p,_.index_===ks||f?f:yn),M.endBeforeSet_=!0,M}(p._queryParams,this._value,this._key);if(ld(f),vu(f),p._queryParams.hasEnd())throw new Error("endBefore: Starting point was already set (by another call to endAt, endBefore or equalTo).");return new ja(p._repo,p._path,f,p._orderByCalled)}}class Wd extends Bl{constructor(p,f){super(),this._value=p,this._key=f}_apply(p){xo("startAt",this._value,p._path,!0);const f=Wo(p._queryParams,this._value,this._key);if(ld(f),vu(f),p._queryParams.hasStart())throw new Error("startAt: Starting point was already set (by another call to startAt, startBefore or equalTo).");return new ja(p._repo,p._path,f,p._orderByCalled)}}class Rh extends Bl{constructor(p,f){super(),this._value=p,this._key=f}_apply(p){xo("startAfter",this._value,p._path,!1);const f=function ao(_,p,f){let M;return M=Wo(_,p,_.index_===ks||f?f:ei),M.startAfterSet_=!0,M}(p._queryParams,this._value,this._key);if(ld(f),vu(f),p._queryParams.hasStart())throw new Error("startAfter: Starting point was already set (by another call to startAt, startAfter, or equalTo).");return new ja(p._repo,p._path,f,p._orderByCalled)}}class Zd extends Bl{constructor(p){super(),this._limit=p}_apply(p){if(p._queryParams.hasLimit())throw new Error("limitToFirst: Limit was already set (by another call to limitToFirst or limitToLast).");return new ja(p._repo,p._path,function Sr(_,p){const f=_.copy();return f.limitSet_=!0,f.limit_=p,f.viewFrom_="l",f}(p._queryParams,this._limit),p._orderByCalled)}}class Fh extends Bl{constructor(p){super(),this._limit=p}_apply(p){if(p._queryParams.hasLimit())throw new Error("limitToLast: Limit was already set (by another call to limitToFirst or limitToLast).");return new ja(p._repo,p._path,function Hs(_,p){const f=_.copy();return f.limitSet_=!0,f.limit_=p,f.viewFrom_="r",f}(p._queryParams,this._limit),p._orderByCalled)}}class ha extends Bl{constructor(p){super(),this._path=p}_apply(p){ad(p,"orderByChild");const f=new Ri(this._path);if(le(f))throw new Error("orderByChild: cannot pass in empty path. Use orderByValue() instead.");const M=new Qi(f),O=Vi(p._queryParams,M);return vu(O),new ja(p._repo,p._path,O,!0)}}
1class Jf extends Bl{_apply(p){ad(p,"orderByKey");const f=Vi(p._queryParams,ks);return vu(f),new ja(p._repo,p._path,f,!0)}}class Yh extends Bl{_apply(p){ad(p,"orderByPriority");const f=Vi(p._queryParams,F);return vu(f),new ja(p._repo,p._path,f,!0)}}class wm extends Bl{_apply(p){ad(p,"orderByValue");const f=Vi(p._queryParams,Kr);return vu(f),new ja(p._repo,p._path,f,!0)}}class Gd extends Bl{constructor(p,f){super(),this._value=p,this._key=f}_apply(p){if(xo("equalTo",this._value,p._path,!1),p._queryParams.hasStart())throw new Error("equalTo: Starting point was already set (by another call to startAt/startAfter or equalTo).");if(p._queryParams.hasEnd())throw new Error("equalTo: Ending point was already set (by another call to endAt/endBefore or equalTo).");return new bc(this._value,this._key)._apply(new Wd(this._value,this._key)._apply(p))}}function kl(_,...p){let f=(0,Ve.m9)(_);for(const M of p)f=M._apply(f);return f}(function mo(_){(0,Ve.hu)(!Pl,"__referenceConstructor has already been defined"),Pl=_})(nl),function Su(_){(0,Ve.hu)(!Ql,"__referenceConstructor has already been defined"),Ql=_}(nl);const Mc={};function Hh(_,p,f,M,O){let X=M||_.options.databaseURL;void 0===X&&(_.options.projectId||Ee("Can't determine Firebase Database URL. Be sure to include a Project ID when calling firebase.initializeApp()."),Qt("Using default host for project ",_.options.projectId),X=`${_.options.projectId}-default-rtdb.firebaseio.com`);let yt,Lt,ye=jd(X,O),Qe=ye.repoInfo;"undefined"!=typeof process&&process.env&&(Lt=process.env.FIREBASE_DATABASE_EMULATOR_HOST),Lt?(yt=!0,X=`http://${Lt}?ns=${Qe.namespace}`,ye=jd(X,O),Qe=ye.repoInfo):yt=!ye.repoInfo.secure;const Tn=O&&yt?new fn(fn.OWNER):new xn(_.name,_.options,p);Wu("Invalid Firebase Database URL",ye),le(ye.path)||Ee("Database URL must point to the root of a Firebase Database (not including a child path).");const Ln=function np(_,p,f,M){let O=Mc[p.name];O||(O={},Mc[p.name]=O);let X=O[_.toURLString()];return X&&Ee("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call."),X=new Sh(_,false,f,M),O[_.toURLString()]=X,X}(Qe,_,Tn,new qt(_.name,f));return new ip(Ln,_)}class ip{constructor(p,f){this._repoInternal=p,this.app=f,this.type="database",this._instanceStarted=!1}get _repo(){return this._instanceStarted||(function B(_,p,f){if(_.stats_=Qr(_.repoInfo_),_.forceRestClient_||("object"==typeof window&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0)_.server_=new bs(_.repoInfo_,(M,O,X,ye)=>{Z(_,M,O,X,ye)},_.authTokenProvider_,_.appCheckProvider_),setTimeout(()=>Ae(_,!0),0);else{if(null!=f){if("object"!=typeof f)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{(0,Ve.Wl)(f)}catch(M){throw new Error("Invalid authOverride provided: "+M)}}_.persistentConnection_=new mi(_.repoInfo_,p,(M,O,X,ye)=>{Z(_,M,O,X,ye)},M=>{Ae(_,M)},M=>{!function ot(_,p){x(p,(f,M)=>{Gt(_,f,M)})}(_,M)},_.authTokenProvider_,_.appCheckProvider_,f),_.server_=_.persistentConnection_}_.authTokenProvider_.addTokenChangeListener(M=>{_.server_.refreshAuthToken(M)}),_.appCheckProvider_.addTokenChangeListener(M=>{_.server_.refreshAppCheckToken(M.token)}),_.statsReporter_=function _i(_,p){const f=_.toString();return Ds[f]||(Ds[f]=p()),Ds[f]}(_.repoInfo_,()=>new ya(_.stats_,_.server_)),_.infoData_=new qr,_.infoSyncTree_=new Ol({startListening:(M,O,X,ye)=>{let Qe=[];const yt=_.infoData_.getNode(M._path);return yt.isEmpty()||(Qe=el(_.infoSyncTree_,M._path,yt),setTimeout(()=>{ye("ok")},0)),Qe},stopListening:()=>{}}),Gt(_,"connected",!1),_.serverSyncTree_=new Ol({startListening:(M,O,X,ye)=>(_.server_.listen(M,X,O,(Qe,yt)=>{const Lt=ye(Qe,yt);Na(_.eventQueue_,M._path,Lt)}),[]),stopListening:(M,O)=>{_.server_.unlisten(M,O)}})}(this._repoInternal,this.app.options.appId,this.app.options.databaseAuthVariableOverride),this._instanceStarted=!0),this._repoInternal}get _root(){return this._rootInternal||(this._rootInternal=new nl(this._repo,ri())),this._rootInternal}_delete(){return null!==this._rootInternal&&(function tp(_,p){const f=Mc[p];(!f||f[_.key]!==_)&&Ee(`Database ${p}(${_.repoInfo_}) has already been deleted.`),Pu(_),delete f[_.key]}(this._repo,this.app.name),this._repoInternal=null,this._rootInternal=null),Promise.resolve()}
1_checkNotDeleted(p){null===this._rootInternal&&Ee("Cannot call "+p+" on a deleted database.")}}function Uh(){dr.IS_TRANSPORT_INITIALIZED&&Be("Transport has already been initialized. Please call this function before calling ref or setting up a listener")}function Tm(){Uh(),ws.forceDisallow()}function rp(){Uh(),Ys.forceDisallow(),ws.forceAllow()}function Em(_,p){lt(_,p)}const na={".sv":"timestamp"};class $d{constructor(p,f){this.committed=p,this.snapshot=f}toJSON(){return{committed:this.committed,snapshot:this.snapshot.toJSON()}}}mi.prototype.simpleListen=function(_,p){this.sendRequest("q",{p:_},p)},mi.prototype.echo=function(_,p){this.sendRequest("echo",{d:_},p)},function j_(_){ae(Rn.SDK_VERSION),(0,Rn._registerComponent)(new vi.wA("database",(p,{instanceIdentifier:f})=>Hh(p.getProvider("app").getImmediate(),p.getProvider("auth-internal"),p.getProvider("app-check-internal"),f),"PUBLIC").setMultipleInstances(!0)),(0,Rn.registerVersion)($,"0.14.4",_),(0,Rn.registerVersion)($,"0.14.4","esm2017")}();const Hl=new Pt.Yd("@firebase/database-compat"),Vh=function(_){Hl.warn("FIREBASE WARNING: "+_)};class hd{constructor(p){this._delegate=p}cancel(p){(0,Ve.Dv)("OnDisconnect.cancel",0,1,arguments.length),(0,Ve.Wj)("OnDisconnect.cancel","onComplete",p,!0);const f=this._delegate.cancel();return p&&f.then(()=>p(null),M=>p(M)),f}remove(p){(0,Ve.Dv)("OnDisconnect.remove",0,1,arguments.length),(0,Ve.Wj)("OnDisconnect.remove","onComplete",p,!0);const f=this._delegate.remove();return p&&f.then(()=>p(null),M=>p(M)),f}set(p,f){(0,Ve.Dv)("OnDisconnect.set",1,2,arguments.length),(0,Ve.Wj)("OnDisconnect.set","onComplete",f,!0);const M=this._delegate.set(p);return f&&M.then(()=>f(null),O=>f(O)),M}setWithPriority(p,f,M){(0,Ve.Dv)("OnDisconnect.setWithPriority",2,3,arguments.length),(0,Ve.Wj)("OnDisconnect.setWithPriority","onComplete",M,!0);const O=this._delegate.setWithPriority(p,f);return M&&O.then(()=>M(null),X=>M(X)),O}update(p,f){if((0,Ve.Dv)("OnDisconnect.update",1,2,arguments.length),Array.isArray(p)){const O={};for(let X=0;X<p.length;++X)O[""+X]=p[X];p=O,Vh("Passing an Array to firebase.database.onDisconnect().update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}(0,Ve.Wj)("OnDisconnect.update","onComplete",f,!0);const M=this._delegate.update(p);return f&&M.then(()=>f(null),O=>f(O)),M}}class zh{constructor(p,f){this.committed=p,this.snapshot=f}toJSON(){return(0,Ve.Dv)("TransactionResult.toJSON",0,1,arguments.length),{committed:this.committed,snapshot:this.snapshot.toJSON()}}}class Xu{constructor(p,f){this._database=p,this._delegate=f}val(){return(0,Ve.Dv)("DataSnapshot.val",0,0,arguments.length),this._delegate.val()}exportVal(){return(0,Ve.Dv)("DataSnapshot.exportVal",0,0,arguments.length),this._delegate.exportVal()}toJSON(){return(0,Ve.Dv)("DataSnapshot.toJSON",0,1,arguments.length),this._delegate.toJSON()}exists(){return(0,Ve.Dv)("DataSnapshot.exists",0,0,arguments.length),this._delegate.exists()}child(p){return(0,Ve.Dv)("DataSnapshot.child",0,1,arguments.length),p=String(p),Br("DataSnapshot.child","path",p,!1),new Xu(this._database,this._delegate.child(p))}hasChild(p){return(0,Ve.Dv)("DataSnapshot.hasChild",1,1,arguments.length),Br("DataSnapshot.hasChild","path",p,!1),this._delegate.hasChild(p)}getPriority(){return(0,Ve.Dv)("DataSnapshot.getPriority",0,0,arguments.length),this._delegate.priority}forEach(p){return(0,Ve.Dv)("DataSnapshot.forEach",1,1,arguments.length),(0,Ve.Wj)("DataSnapshot.forEach","action",p,!1),this._delegate.forEach(f=>p(new Xu(this._database,f)))}hasChildren(){return(0,Ve.Dv)("DataSnapshot.hasChildren",0,0,arguments.length),this._delegate.hasChildren()}get key(){return this._delegate.key}numChildren(){return(0,Ve.Dv)("DataSnapshot.numChildren",0,0,arguments.length),this._delegate.size}getRef(){return(0,Ve.Dv)("DataSnapshot.ref",0,0,arguments.length),new rl(this._database,this._delegate.ref)}get ref(){return this.getRef()}}class ba{constructor(p,f){this.database=p,this._delegate=f}on(p,f,M,O){var X;(0,Ve.Dv)("Query.on",2,4,arguments.length),(0,Ve.Wj)("Query.on","callback",f,!1);const ye=ba.getCancelAndContextArgs_("Query.on",M,O),Qe=(Lt,Tn)=>{f.call(ye.context,new Xu(this.database,Lt),Tn)};Qe.userCallback=f,Qe.context=ye.context;const yt=null===(X=ye.cancel)||void 0===X?void 0:X.bind(ye.context);switch(p){case"value":return qu(this._delegate,Qe,yt),f;case"child_added":return yc(this._delegate,Qe,yt),f;case"child_removed":return vc(this._delegate,Qe,yt),f;case"child_changed":return Kf(this._delegate,Qe,yt),f;case"child_moved":return bm(this._delegate,Qe,yt),f;default:throw new Error((0,Ve.gK)("Query.on","eventType")+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}}off(p,f,M){if((0,Ve.Dv)("Query.off",0,3,arguments.length),function(_,p,f){if(void 0!==p)switch(p){case"value":case"child_added":case"child_removed":case"child_changed":case"child_moved":break;default:throw new Error((0,Ve.gK)("Query.off","eventType")+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}}(0,p),(0,Ve.Wj)("Query.off","callback",f,!0),(0,Ve.lb)("Query.off","context",M,!0),f){const O=()=>{};O.userCallback=f,O.context=M,qf(this._delegate,p,O)}else qf(this._delegate,p)}get(){return Vd(this._delegate).then(p=>new Xu(this.database,p))}once(p,f,M,O){(0,Ve.Dv)("Query.once",1,4,arguments.length),(0,Ve.Wj)("Query.once","callback",f,!0);const X=ba.getCancelAndContextArgs_("Query.once",M,O),ye=new Ve.BH,Qe=(Lt,Tn)=>{const Ln=new Xu(this.database,Lt);f&&f.call(X.context,Ln,Tn),ye.resolve(Ln)};
1Qe.userCallback=f,Qe.context=X.context;const yt=Lt=>{X.cancel&&X.cancel.call(X.context,Lt),ye.reject(Lt)};switch(p){case"value":qu(this._delegate,Qe,yt,{onlyOnce:!0});break;case"child_added":yc(this._delegate,Qe,yt,{onlyOnce:!0});break;case"child_removed":vc(this._delegate,Qe,yt,{onlyOnce:!0});break;case"child_changed":Kf(this._delegate,Qe,yt,{onlyOnce:!0});break;case"child_moved":bm(this._delegate,Qe,yt,{onlyOnce:!0});break;default:throw new Error((0,Ve.gK)("Query.once","eventType")+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}return ye.promise}limitToFirst(p){return(0,Ve.Dv)("Query.limitToFirst",1,1,arguments.length),new ba(this.database,kl(this._delegate,function Nh(_){if("number"!=typeof _||Math.floor(_)!==_||_<=0)throw new Error("limitToFirst: First argument must be a positive integer.");return new Zd(_)}(p)))}limitToLast(p){return(0,Ve.Dv)("Query.limitToLast",1,1,arguments.length),new ba(this.database,kl(this._delegate,function Qf(_){if("number"!=typeof _||Math.floor(_)!==_||_<=0)throw new Error("limitToLast: First argument must be a positive integer.");return new Fh(_)}(p)))}orderByChild(p){return(0,Ve.Dv)("Query.orderByChild",1,1,arguments.length),new ba(this.database,kl(this._delegate,function Ls(_){if("$key"===_)throw new Error('orderByChild: "$key" is invalid. Use orderByKey() instead.');if("$priority"===_)throw new Error('orderByChild: "$priority" is invalid. Use orderByPriority() instead.');if("$value"===_)throw new Error('orderByChild: "$value" is invalid. Use orderByValue() instead.');return Br("orderByChild","path",_,!1),new ha(_)}(p)))}orderByKey(){return(0,Ve.Dv)("Query.orderByKey",0,0,arguments.length),new ba(this.database,kl(this._delegate,function Xf(){return new Jf}()))}orderByPriority(){return(0,Ve.Dv)("Query.orderByPriority",0,0,arguments.length),new ba(this.database,kl(this._delegate,function Bh(){return new Yh}()))}orderByValue(){return(0,Ve.Dv)("Query.orderByValue",0,0,arguments.length),new ba(this.database,kl(this._delegate,function cd(){return new wm}()))}startAt(p=null,f){return(0,Ve.Dv)("Query.startAt",0,2,arguments.length),new ba(this.database,kl(this._delegate,function Qu(_=null,p){return pc("startAt","key",p,!0),new Wd(_,p)}(p,f)))}startAfter(p=null,f){return(0,Ve.Dv)("Query.startAfter",0,2,arguments.length),new ba(this.database,kl(this._delegate,function Ko(_,p){return pc("startAfter","key",p,!0),new Rh(_,p)}(p,f)))}endAt(p=null,f){return(0,Ve.Dv)("Query.endAt",0,2,arguments.length),new ba(this.database,kl(this._delegate,function Fu(_,p){return pc("endAt","key",p,!0),new bc(_,p)}(p,f)))}endBefore(p=null,f){return(0,Ve.Dv)("Query.endBefore",0,2,arguments.length),new ba(this.database,kl(this._delegate,function ud(_,p){return pc("endBefore","key",p,!0),new Oh(_,p)}(p,f)))}equalTo(p,f){return(0,Ve.Dv)("Query.equalTo",1,2,arguments.length),new ba(this.database,kl(this._delegate,function ep(_,p){return pc("equalTo","key",p,!0),new Gd(_,p)}(p,f)))}toString(){return(0,Ve.Dv)("Query.toString",0,0,arguments.length),this._delegate.toString()}toJSON(){return(0,Ve.Dv)("Query.toJSON",0,1,arguments.length),this._delegate.toJSON()}isEqual(p){if((0,Ve.Dv)("Query.isEqual",1,1,arguments.length),!(p instanceof ba))throw new Error("Query.isEqual failed: First argument must be an instance of firebase.database.Query.");return this._delegate.isEqual(p._delegate)}static getCancelAndContextArgs_(p,f,M){const O={cancel:void 0,context:void 0};if(f&&M)O.cancel=f,(0,Ve.Wj)(p,"cancel",O.cancel,!0),O.context=M,(0,Ve.lb)(p,"context",O.context,!0);else if(f)if("object"==typeof f&&null!==f)O.context=f;else{if("function"!=typeof f)throw new Error((0,Ve.gK)(p,"cancelOrContext")+" must either be a cancel callback or a context object.");O.cancel=f}return O}get ref(){return new rl(this.database,new nl(this._delegate._repo,this._delegate._path))}}class rl extends ba{constructor(p,f){super(p,new ja(f._repo,f._path,new Xs,!1)),this.database=p,this._delegate=f}getKey(){return(0,Ve.Dv)("Reference.key",0,0,arguments.length),this._delegate.key}child(p){return(0,Ve.Dv)("Reference.child",1,1,arguments.length),"number"==typeof p&&(p=String(p)),new rl(this.database,Yl(this._delegate,p))}getParent(){(0,Ve.Dv)("Reference.parent",0,0,arguments.length);const p=this._delegate.parent;return p?new rl(this.database,p):null}getRoot(){return(0,Ve.Dv)("Reference.root",0,0,arguments.length),new rl(this.database,this._delegate.root)}set(p,f){(0,Ve.Dv)("Reference.set",1,2,arguments.length),(0,Ve.Wj)("Reference.set","onComplete",f,!0);const M=Ku(this._delegate,p);return f&&M.then(()=>f(null),O=>f(O)),M}update(p,f){if((0,Ve.Dv)("Reference.update",1,2,arguments.length),Array.isArray(p)){const O={};for(let X=0;X<p.length;++X)O[""+X]=p[X];
1p=O,Vh("Passing an Array to Firebase.update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}jo("Reference.update",this._delegate._path),(0,Ve.Wj)("Reference.update","onComplete",f,!0);const M=Ah(this._delegate,p);return f&&M.then(()=>f(null),O=>f(O)),M}setWithPriority(p,f,M){(0,Ve.Dv)("Reference.setWithPriority",2,3,arguments.length),(0,Ve.Wj)("Reference.setWithPriority","onComplete",M,!0);const O=function Lh(_,p,f){if(jo("setWithPriority",_._path),xo("setWithPriority",p,_._path,!1),zu("setWithPriority",f,!1),".length"===_.key||".keys"===_.key)throw"setWithPriority failed: "+_.key+" is a read-only object.";const M=new Ve.BH;return Ci(_._repo,_._path,p,f,M.wrapCallback(()=>{})),M.promise}(this._delegate,p,f);return M&&O.then(()=>M(null),X=>M(X)),O}remove(p){(0,Ve.Dv)("Reference.remove",0,1,arguments.length),(0,Ve.Wj)("Reference.remove","onComplete",p,!0);const f=function Va(_){return jo("remove",_._path),Ku(_,null)}(this._delegate);return p&&f.then(()=>p(null),M=>p(M)),f}transaction(p,f,M){(0,Ve.Dv)("Reference.transaction",1,3,arguments.length),(0,Ve.Wj)("Reference.transaction","transactionUpdate",p,!1),(0,Ve.Wj)("Reference.transaction","onComplete",f,!0),function(_,p,f,M){if(void 0!==f&&"boolean"!=typeof f)throw new Error((0,Ve.gK)("Reference.transaction","applyLocally")+"must be a boolean.")}(0,0,M);const O=function Xl(_,p,f){var M;if(_=(0,Ve.m9)(_),jo("Reference.transaction",_._path),".length"===_.key||".keys"===_.key)throw"Reference.transaction failed: "+_.key+" is a read-only object.";const O=null===(M=null==f?void 0:f.applyLocally)||void 0===M||M,X=new Ve.BH,Qe=qu(_,()=>{});return function Cl(_,p,f,M,O,X){Ia(_,"transaction on "+p);const ye={path:p,update:f,onComplete:M,status:null,order:Cn(),applyLocally:X,retryCount:0,unwatcher:O,abortReason:null,currentWriteId:null,currentInputSnapshot:null,currentOutputSnapshotRaw:null,currentOutputSnapshotResolved:null},Qe=Ru(_,p,void 0);ye.currentInputSnapshot=Qe;const yt=ye.update(Qe.val());if(void 0===yt)ye.unwatcher(),ye.currentOutputSnapshotRaw=null,ye.currentOutputSnapshotResolved=null,ye.onComplete&&ye.onComplete(null,!1,ye.currentInputSnapshot);else{tl("transaction failed: Data returned ",yt,ye.path),ye.status=0;const Lt=ml(_.transactionQueueTree_,p),Tn=El(Lt)||[];let Ln;Tn.push(ye),Fl(Lt,Tn),"object"==typeof yt&&null!==yt&&(0,Ve.r3)(yt,".priority")?(Ln=(0,Ve.DV)(yt,".priority"),(0,Ve.hu)(ps(Ln),"Invalid priority returned by transaction. Priority must be a valid string, finite number, server value, or null.")):Ln=(fs(_.serverSyncTree_,p)||In.EMPTY_NODE).getPriority().val();const Yn=I(_),Li=Gn(yt,Ln),nr=fu(Li,Qe,Yn);ye.currentOutputSnapshotRaw=Li,ye.currentOutputSnapshotResolved=nr,ye.currentWriteId=an(_);const os=du(_.serverSyncTree_,p,nr,ye.currentWriteId,ye.applyLocally);Na(_.eventQueue_,p,os),mu(_,_.transactionQueueTree_)}}(_._repo,_._path,p,(yt,Lt,Tn)=>{let Ln=null;yt?X.reject(yt):(Ln=new _c(Tn,new nl(_._repo,_._path),F),X.resolve(new $d(Lt,Ln)))},Qe,O),X.promise}(this._delegate,p,{applyLocally:M}).then(X=>new zh(X.committed,new Xu(this.database,X.snapshot)));return f&&O.then(X=>f(null,X.committed,X.snapshot),X=>f(X,!1,null)),O}setPriority(p,f){(0,Ve.Dv)("Reference.setPriority",1,2,arguments.length),(0,Ve.Wj)("Reference.setPriority","onComplete",f,!0);const M=function gc(_,p){_=(0,Ve.m9)(_),jo("setPriority",_._path),zu("setPriority",p,!1);const f=new Ve.BH;return Ci(_._repo,Ne(_._path,".priority"),p,null,f.wrapCallback(()=>{})),f.promise}(this._delegate,p);return f&&M.then(()=>f(null),O=>f(O)),M}push(p,f){(0,Ve.Dv)("Reference.push",0,2,arguments.length),(0,Ve.Wj)("Reference.push","onComplete",f,!0);const M=function xh(_,p){_=(0,Ve.m9)(_),jo("push",_._path),xo("push",p,_._path,!0);const f=D(_._repo),M=yu(f),O=Yl(_,M),X=Yl(_,M);let ye;return ye=null!=p?Ku(X,p).then(()=>X):Promise.resolve(X),O.then=ye.then.bind(ye),O.catch=ye.then.bind(ye,void 0),O}(this._delegate,p),O=M.then(ye=>new rl(this.database,ye));f&&O.then(()=>f(null),ye=>f(ye));const X=new rl(this.database,M);return X.then=O.then.bind(O),X.catch=O.catch.bind(O,void 0),X}onDisconnect(){return jo("Reference.onDisconnect",this._delegate._path),new hd(new Zf(this._delegate._repo,this._delegate._path))}get key(){return this.getKey()}get parent(){return this.getParent()}get root(){return this.getRoot()}}class Hc{constructor(p,f){this._delegate=p,this.app=f,this.INTERNAL={delete:()=>this._delegate._delete(),forceWebSockets:Tm,forceLongPolling:rp}}useEmulator(p,f,M={}){!function sp(_,p,f,M={}){(_=(0,Ve.m9)(_))._checkNotDeleted("useEmulator"),_._instanceStarted&&Ee("Cannot call useEmulator() after instance has already been initialized.");const O=_._repoInternal;let X;if(O.repoInfo_.nodeAdmin)M.mockUserToken&&Ee('mockUserToken is not supported by the Admin SDK. For client access with mock users, please use the "firebase" package instead of "firebase-admin".'),X=new fn(fn.OWNER);else if(M.mockUserToken){const ye="string"==typeof M.mockUserToken?M.mockUserToken:(0,Ve.Sg)(M.mockUserToken,_.app.options.projectId);X=new fn(ye)}!function Tc(_,p,f,M){_.repoInfo_=new jr(`${p}:${f}`,!1,_.repoInfo_.namespace,_.repoInfo_.webSocketOnly,_.repoInfo_.nodeAdmin,_.repoInfo_.persistenceKey,_.repoInfo_.includeNamespaceInQueryParams,!0),M&&(_.authTokenProvider_=M)}(O,p,f,X)}(this._delegate,p,f,M)}ref(p){if((0,Ve.Dv)("database.ref",0,1,arguments.length),p instanceof rl){const f=$f(this._delegate,p.toString());return new rl(this,f)}{const f=Gf(this._delegate,p);return new rl(this,f)}}refFromURL(p){(0,Ve.Dv)("database.refFromURL",1,1,arguments.length);const M=$f(this._delegate,p);return new rl(this,M)}goOffline(){return(0,Ve.Dv)("database.goOffline",0,0,arguments.length),function Ju(_){(_=(0,Ve.m9)(_))._checkNotDeleted("goOffline"),Pu(_._repo)}(this._delegate)}goOnline(){return(0,Ve.Dv)("database.goOnline",0,0,arguments.length),function il(_){(_=(0,Ve.m9)(_))._checkNotDeleted("goOnline"),function Ou(_){_.persistentConnection_&&_.persistentConnection_.resume(Fc)}(_._repo)}(this._delegate)}}Hc.ServerValue={TIMESTAMP:function op(){return na}(),increment:_=>function jh(_){return{".sv":{increment:_}}}(_)};var Fr=Object.freeze({__proto__:null,initStandalone:function Sm({a
1pp:_,url:p,version:f,customAuthImpl:M,namespace:O,nodeAdmin:X=!1}){ae(f);const ye=new vi.zt("auth-internal",new vi.H0("database-standalone"));return ye.setComponent(new vi.wA("auth-internal",()=>M,"PRIVATE")),{instance:new Hc(Hh(_,ye,void 0,p,X),_),namespace:O}}});const dp=Hc.ServerValue;!function hp(_){_.INTERNAL.registerComponent(new vi.wA("database-compat",(p,{instanceIdentifier:f})=>{const M=p.getProvider("app-compat").getImmediate(),O=p.getProvider("database").getImmediate({identifier:f});return new Hc(O,M)},"PUBLIC").setServiceProps({Reference:rl,Query:ba,Database:Hc,DataSnapshot:Xu,enableLogging:Em,INTERNAL:Fr,ServerValue:dp}).setMultipleInstances(!0)),_.registerVersion("@firebase/database-compat","0.3.4")}(si.Z);var fp=b(2313),eu=b(9260);function pp(_){return null==_}function fd(_){return"function"==typeof _.set}function xa(_,p){return fd(p)?p:_.ref(p)}function pd(_,p){if(function za(_){return"string"==typeof _}(_))return p.stringCase();if(fd(_))return p.firebaseCase();if(function Wh(_){return"function"==typeof _.exportVal}(_))return p.snapshotCase();throw new Error("Expects a string, snapshot, or reference. Got: "+typeof _)}function Uc(_,p,f="on",M=en.z){return new Wn.y(O=>{let X=null;return X=_[f](p,(ye,Qe)=>{M.schedule(()=>{O.next({snapshot:ye,prevKey:Qe})}),"once"===f&&M.schedule(()=>O.complete())},ye=>{M.schedule(()=>O.error(ye))}),"on"===f?{unsubscribe(){null!=X&&_.off(p,X)}}:{unsubscribe(){}}}).pipe((0,Dn.U)(O=>{const{snapshot:X,prevKey:ye}=O;let Qe=null;return X.exists()&&(Qe=X.key),{type:p,payload:X,prevKey:ye,key:Qe}}),(0,vn.B)())}function qd(_,p){const f=_.length;for(let M=0;M<f;M++)if(_[M].payload.key===p)return M;return-1}function jc(_,p){const{payload:f,prevKey:M,key:O}=p,X=qd(_,O),ye=function ec(_,p){if(pp(p))return 0;{const f=qd(_,p);return-1===f?_.length:f+1}}(_,M);switch(p.type){case"value":if(p.payload&&p.payload.exists()){let Qe=null;p.payload.forEach(yt=>{const Lt={payload:yt,type:"value",prevKey:Qe,key:yt.key};return Qe=yt.key,_=[..._,Lt],!1})}return _;case"child_added":if(X>-1){const Qe=_[X-1];(Qe&&Qe.key||null)!==M&&(_=_.filter(yt=>yt.payload.key!==f.key)).splice(ye,0,p)}else{if(null==M)return[p,..._];(_=_.slice()).splice(ye,0,p)}return _;case"child_removed":return _.filter(Qe=>Qe.payload.key!==f.key);case"child_changed":return _.map(Qe=>Qe.payload.key===O?p:Qe);case"child_moved":if(X>-1){const Qe=_.splice(X,1)[0];return(_=_.slice()).splice(ye,0,Qe),_}return _;default:return _}}function tu(_){return(pp(_)||0===_.length)&&(_=["child_added","child_removed","child_changed","child_moved"]),_}function Yu(_,p,f){return function Kd(_,p,f){return Uc(_,"value","once",f).pipe((0,Dt.w)(M=>{const O=[(0,Mn.of)(M)];return p.forEach(X=>O.push(Uc(_,X,"on",f))),(0,Bn.T)(...O).pipe((0,Mt.R)(jc,[]))}),(0,it.x)())}(_,p=tu(p),f)}function md(_,p,f){const M=(p=tu(p)).map(O=>Uc(_,O,"on",f));return(0,Bn.T)(...M)}function Zh(_,p){return function(M,O){return pd(M,{stringCase:()=>_.child(M)[p](O),firebaseCase:()=>M[p](O),snapshotCase:()=>M.ref[p](O)})}}function Im(_){return function(f){return f?pd(f,{stringCase:()=>_.child(f).remove(),firebaseCase:()=>f.remove(),snapshotCase:()=>f.ref.remove()}):_.remove()}}function Gh(_,p){return function(){return Uc(_,"value","on",p)}}const Qd=new s.OlP("angularfire2.realtimeDatabaseURL"),Dc=new s.OlP("angularfire2.database.use-emulator");let V_=(()=>{class _{constructor(f,M,O,X,ye,Qe,yt,Lt,Tn,Ln,Yn,Li,nr,os,wa){this.schedulers=Qe;const Ul=yt,Vo=(0,pn.on)(f,ye,M);Lt&&(0,mn.nw)(Vo,ye,Tn,Yn,Li,nr,Ln,os),this.database=(0,pn.cc)(`${Vo.name}.database.${O}`,"AngularFireDatabase",Vo.name,()=>{const Cc=ye.runOutsideAngular(()=>Vo.database(O||void 0));return Ul&&Cc.useEmulator(...Ul),Cc},[Ul])}list(f,M){const O=this.schedulers.ngZone.runOutsideAngular(()=>xa(this.database,f));let X=O;return M&&(X=M(O)),function mp(_,p){const f=p.schedulers.outsideAngular,M=p.schedulers.ngZone.run(()=>_.ref);return{query:_,update:Zh(M,"update"),set:Zh(M,"set"),push:O=>M.push(O),remove:Im(M),snapshotChanges:O=>Yu(_,O,f).pipe(bn.iC),stateChanges:O=>md(_,O,f).pipe(bn.iC),auditTrail:O=>function _d(_,p,f){return function km(_,p,f){return function gd(_,p){return Uc(_,"value","on",p).pipe((0,Dn.U)(f=>{let M;
1return f.payload.forEach(O=>(M=O.key,!1)),{data:f,lastKeyToLoad:M}}))}(_,f).pipe(function tn(..._){const p=(0,Ut.jO)(_);return(0,At.e)((f,M)=>{const O=_.length,X=new Array(O);let ye=_.map(()=>!1),Qe=!1;for(let yt=0;yt<O;yt++)(0,st.Xf)(_[yt]).subscribe((0,ct.x)(M,Lt=>{X[yt]=Lt,!Qe&&!ye[yt]&&(ye[yt]=!0,(Qe=ye.every(vt.y))&&(ye=null))},ft.Z));f.subscribe((0,ct.x)(M,yt=>{if(Qe){const Lt=[yt,...X];M.next(p?p(...Lt):Lt)}}))})}(p),(0,Dn.U)(([O,X])=>{const ye=O.lastKeyToLoad,Qe=X.map(yt=>yt.key);return{actions:X,lastKeyToLoad:ye,loadedKeys:Qe}}),function _n(_){return(0,At.e)((p,f)=>{let M=!1,O=0;p.subscribe((0,ct.x)(f,X=>(M||(M=!_(X,O++)))&&f.next(X)))})}(O=>-1===O.loadedKeys.indexOf(O.lastKeyToLoad)),(0,Dn.U)(O=>O.actions))}(_,md(_,p).pipe((0,Mt.R)((O,X)=>[...O,X],[])),f)}(_,O,f).pipe(bn.iC),valueChanges:(O,X)=>Yu(_,O,f).pipe((0,Dn.U)(Qe=>Qe.map(yt=>X&&X.idField?Object.assign(Object.assign({},yt.payload.val()),{[X.idField]:yt.key}):yt.payload.val())),bn.iC)}}(X,this)}object(f){return function yd(_,p){return{query:_,snapshotChanges:()=>Gh(_,p.schedulers.outsideAngular)().pipe(bn.iC),update:f=>_.ref.update(f),set:f=>_.ref.set(f),remove:()=>_.ref.remove(),valueChanges:()=>Gh(_,p.schedulers.outsideAngular)().pipe(bn.iC,(0,Dn.U)(M=>M.payload.exists()?M.payload.val():null))}}(this.schedulers.ngZone.runOutsideAngular(()=>xa(this.database,f)),this)}createPushId(){return this.schedulers.ngZone.runOutsideAngular(()=>this.database.ref()).push().key}}return _.\u0275fac=function(f){return new(f||_)(s.LFG(pn.Dh),s.LFG(pn.xv,8),s.LFG(Qd,8),s.LFG(s.Lbi),s.LFG(s.R0b),s.LFG(bn.HU),s.LFG(Dc,8),s.LFG(mn.zQ,8),s.LFG(mn.Qv,8),s.LFG(mn.L6,8),s.LFG(mn._Q,8),s.LFG(mn.rT,8),s.LFG(mn.lh,8),s.LFG(mn.f7,8),s.LFG(fp.nm,8))},_.\u0275prov=s.Yz7({token:_,factory:_.\u0275fac,providedIn:"any"}),_})(),$h=(()=>{class _{constructor(){eu.Z.registerVersion("angularfire",bn.q4.full,"rtdb-compat")}}return _.\u0275fac=function(f){return new(f||_)},_.\u0275mod=s.oAB({type:_}),_.\u0275inj=s.cJS({providers:[V_]}),_})();var _p=b(7249),gp=b(3692),Jd=b(751),Xd=b(8966),Vc=b(520),Ec=b(4980);function xm(_){return()=>_.initializeUser()}function z_(_){return()=>_.initializeYear()}let Lm=(()=>{class _{}return _.\u0275fac=function(f){return new(f||_)},_.\u0275mod=s.oAB({type:_,bootstrap:[gt]}),_.\u0275inj=s.cJS({providers:[{provide:s.ip1,useFactory:xm,deps:[q.e],multi:!0},{provide:s.ip1,useFactory:z_,deps:[ke.F],multi:!0},Ec.M],imports:[[_p.UO,h.b2,m.PW,we,k.Bz,Ye.ez,pn.hO.initializeApp(Bt.N.firebase),mn.ww,jn.yb,$h,(0,gp.hX)(()=>(0,gp.ZF)(Bt.N.firebase)),(0,Jd.AR)(()=>(0,Jd.v0)()),Xd.Is,Vc.JF]]}),_})();Bt.N.production&&(0,s.G48)(),h.q6().bootstrapModule(Lm).catch(_=>console.error(_))},4327:function(_t,Ue){var s;void 0!==(s=function(){"use strict";function k(re,we,be){var ke=new XMLHttpRequest;ke.open("GET",re),ke.responseType="blob",ke.onload=function(){_e(ke.response,we,be)},ke.onerror=function(){console.error("could not download file")},ke.send()}function v(re){var we=new XMLHttpRequest;we.open("HEAD",re,!1);try{we.send()}catch(be){}return 200<=we.status&&299>=we.status}function C(re){try{re.dispatchEvent(new MouseEvent("click"))}catch(be){var we=document.createEvent("MouseEvents");
1we.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),re.dispatchEvent(we)}}var q="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,te=q.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),_e=q.saveAs||("object"!=typeof window||window!==q?function(){}:"download"in HTMLAnchorElement.prototype&&!te?function(re,we,be){var ke=q.URL||q.webkitURL,Ze=document.createElement("a");Ze.download=we=we||re.name||"download",Ze.rel="noopener","string"==typeof re?(Ze.href=re,Ze.origin===location.origin?C(Ze):v(Ze.href)?k(re,we,be):C(Ze,Ze.target="_blank")):(Ze.href=ke.createObjectURL(re),setTimeout(function(){ke.revokeObjectURL(Ze.href)},4e4),setTimeout(function(){C(Ze)},0))}:"msSaveOrOpenBlob"in navigator?function(re,we,be){if(we=we||re.name||"download","string"!=typeof re)navigator.msSaveOrOpenBlob(function m(re,we){return void 0===we?we={autoBom:!1}:"object"!=typeof we&&(console.warn("Deprecated: Expected third argument to be a object"),we={autoBom:!we}),we.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(re.type)?new Blob(["\ufeff",re],{type:re.type}):re}(re,be),we);else if(v(re))k(re,we,be);else{var ke=document.createElement("a");ke.href=re,ke.target="_blank",setTimeout(function(){C(ke)})}}:function(re,we,be,ke){if((ke=ke||open("","_blank"))&&(ke.document.title=ke.document.body.innerText="downloading..."),"string"==typeof re)return k(re,we,be);var Ze="application/octet-stream"===re.type,Ye=/constructor/i.test(q.HTMLElement)||q.safari,$e=/CriOS\/[\d]+/.test(navigator.userAgent);if(($e||Ze&&Ye||te)&&"undefined"!=typeof FileReader){var Te=new FileReader;Te.onloadend=function(){var zt=Te.result;zt=$e?zt:zt.replace(/^data:[^;]*;/,"data:attachment/file;"),ke?ke.location.href=zt:location=zt,ke=null},Te.readAsDataURL(re)}else{var rt=q.URL||q.webkitURL,je=rt.createObjectURL(re);ke?ke.location=je:location.href=je,ke=null,setTimeout(function(){rt.revokeObjectURL(je)},4e4)}});q.saveAs=_e.saveAs=_e,_t.exports=_e}.apply(Ue,[]))&&(_t.exports=s)},8407:function(_t,Ue){!function(b){"use strict";function s(a){var d,w,A,Q;for(w=1,A=arguments.length;w<A;w++)for(d in Q=arguments[w])a[d]=Q[d];return a}var m=Object.create||function(){function a(){}return function(d){return a.prototype=d,new a}}();function k(a,d){var w=Array.prototype.slice;if(a.bind)return a.bind.apply(a,w.call(arguments,1));var A=w.call(arguments,2);return function(){return a.apply(d,A.length?A.concat(w.call(arguments)):arguments)}}var v=0;function C(a){return"_leaflet_id"in a||(a._leaflet_id=++v),a._leaflet_id}function q(a,d,w){var A,Q,xe,bt;return bt=function(){A=!1,Q&&(xe.apply(w,Q),Q=!1)},xe=function(){A?Q=arguments:(a.apply(w,arguments),setTimeout(bt,d),A=!0)},xe}function te(a,d,w){var A=d[1],Q=d[0],xe=A-Q;return a===A&&w?a:((a-Q)%xe+xe)%xe+Q}function _e(){return!1}function re(a,d){if(!1===d)return a;var w=Math.pow(10,void 0===d?6:d);return Math.round(a*w)/w}function we(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}function be(a){return we(a).split(/\s+/)}function ke(a,d){for(var w in Object.prototype.hasOwnProperty.call(a,"options")||(a.options=a.options?m(a.options):{}),d)a.options[w]=d[w];return a.options}function Ze(a,d,w){var A=[];for(var Q in a)A.push(encodeURIComponent(w?Q.toUpperCase():Q)+"="+encodeURIComponent(a[Q]));return(d&&-1!==d.indexOf("?")?"&":"?")+A.join("&")}var Ye=/\{ *([\w_ -]+) *\}/g;function $e(a,d){return a.replace(Ye,function(w,A){var Q=d[A];if(void 0===Q)throw new Error("No value provided for variable "+w);return"function"==typeof Q&&(Q=Q(d)),Q})}var Te=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)};function rt(a,d){for(var w=0;w<a.length;w++)if(a[w]===d)return w;return-1}var je="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function zt(a){return window["webkit"+a]||window["moz"+a]||window["ms"+a]}var ut=0;function ze(a){var d=+new Date,w=Math.max(0,16-(d-ut));return ut=d+w,window.setTimeout(a,w)}var Re=window.requestAnimationFrame||zt("RequestAnimationFrame")||ze,tt=window.cancelAnimationFrame||zt("CancelAnimationFrame")||zt("CancelRequestAnimationFrame")||function(a){window.clearTimeout(a)};function Fe(a,d,w){if(!w||Re!==ze)return Re.call(window,k(a,d));a.call(d)}
vendor: 25,943 bytes, line 1
1function me(a){a&&tt.call(window,a)}var gt={__proto__:null,extend:s,create:m,bind:k,get lastId(){return v},stamp:C,throttle:q,wrapNum:te,falseFn:_e,formatNum:re,trim:we,splitWords:be,setOptions:ke,getParamString:Ze,template:$e,isArray:Te,indexOf:rt,emptyImageUrl:je,requestFn:Re,cancelFn:tt,requestAnimFrame:Fe,cancelAnimFrame:me};function Bt(){}Bt.extend=function(a){var d=function(){ke(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},w=d.__super__=this.prototype,A=m(w);for(var Q in A.constructor=d,d.prototype=A,this)Object.prototype.hasOwnProperty.call(this,Q)&&"prototype"!==Q&&"__super__"!==Q&&(d[Q]=this[Q]);return a.statics&&s(d,a.statics),a.includes&&(function pn(a){if("undefined"!=typeof L&&L&&L.Mixin){a=Te(a)?a:[a];for(var d=0;d<a.length;d++)a[d]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}(a.includes),s.apply(null,[A].concat(a.includes))),s(A,a),delete A.statics,delete A.includes,A.options&&(A.options=w.options?m(w.options):{},s(A.options,a.options)),A._initHooks=[],A.callInitHooks=function(){if(!this._initHooksCalled){w.callInitHooks&&w.callInitHooks.call(this),this._initHooksCalled=!0;for(var xe=0,bt=A._initHooks.length;xe<bt;xe++)A._initHooks[xe].call(this)}},d},Bt.include=function(a){var d=this.prototype.options;return s(this.prototype,a),a.options&&(this.prototype.options=d,this.mergeOptions(a.options)),this},Bt.mergeOptions=function(a){return s(this.prototype.options,a),this},Bt.addInitHook=function(a){var d=Array.prototype.slice.call(arguments,1),w="function"==typeof a?a:function(){this[a].apply(this,d)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(w),this};var mn={on:function(a,d,w){if("object"==typeof a)for(var A in a)this._on(A,a[A],d);else for(var Q=0,xe=(a=be(a)).length;Q<xe;Q++)this._on(a[Q],d,w);return this},off:function(a,d,w){if(arguments.length)if("object"==typeof a)for(var A in a)this._off(A,a[A],d);else{a=be(a);for(var Q=1===arguments.length,xe=0,bt=a.length;xe<bt;xe++)Q?this._off(a[xe]):this._off(a[xe],d,w)}else delete this._events;return this},_on:function(a,d,w,A){if("function"==typeof d){if(!1===this._listens(a,d,w)){w===this&&(w=void 0);var Q={fn:d,ctx:w};A&&(Q.once=!0),this._events=this._events||{},this._events[a]=this._events[a]||[],this._events[a].push(Q)}}else console.warn("wrong listener type: "+typeof d)},_off:function(a,d,w){var A,Q,xe;if(this._events&&(A=this._events[a])){if(1===arguments.length){if(this._firingCount)for(Q=0,xe=A.length;Q<xe;Q++)A[Q].fn=_e;return void delete this._events[a]}if("function"!=typeof d)return void console.warn("wrong listener type: "+typeof d);var bt=this._listens(a,d,w);!1!==bt&&(this._firingCount&&(A[bt].fn=_e,this._events[a]=A=A.slice()),A.splice(bt,1))}},fire:function(a,d,w){if(!this.listens(a,w))return this;var A=s({},d,{type:a,target:this,sourceTarget:d&&d.sourceTarget||this});if(this._events){var Q=this._events[a];if(Q){this._firingCount=this._firingCount+1||1;for(var xe=0,bt=Q.length;xe<bt;xe++){var xt=Q[xe],Jt=xt.fn;xt.once&&this.off(a,Jt,xt.ctx),Jt.call(xt.ctx||this,A)}this._firingCount--}}return w&&this._propagateEvent(A),this},listens:function(a,d,w,A){"string"!=typeof a&&console.warn('"string" type argument expected');var Q=d;"function"!=typeof d&&(A=!!d,Q=void 0,w=void 0);var xe=this._events&&this._events[a];if(xe&&xe.length&&!1!==this._listens(a,Q,w))return!0;if(A)for(var bt in this._eventParents)if(this._eventParents[bt].listens(a,d,w,A))return!0;return!1},_listens:function(a,d,w){if(!this._events)return!1;var A=this._events[a]||[];if(!d)return!!A.length;w===this&&(w=void 0);for(var Q=0,xe=A.length;Q<xe;Q++)if(A[Q].fn===d&&A[Q].ctx===w)return Q;return!1},once:function(a,d,w){if("object"==typeof a)for(var A in a)this._on(A,a[A],d,!0);else for(var Q=0,xe=(a=be(a)).length;Q<xe;Q++)this._on(a[Q],d,w,!0);return this},addEventParent:function(a){return this._eventParents=this._eventParents||{},this._eventParents[C(a)]=a,this},removeEventParent:function(a){return this._eventParents&&delete this._eventParents[C(a)],this},_propagateEvent:function(a){for(var d in this._eventParents)this._eventParents[d].fire(a.type,s({layer:a.target,propagatedFrom:a.target},a),!0)}};mn.addEventListener=mn.on,mn.removeEventListener=mn.clearAllEventListeners=mn.off,mn.addOneTimeEventListener=mn.once,mn.fireEvent=mn.fire,mn.hasEventListeners=mn.listens;var jn=Bt.extend(mn);function en(a,d,w){this.x=w?Math.round(a):a,this.y=w?Math.round(d):d}var Wn=Math.trunc||function(a){return a>0?Math.floor(a):Math.ceil(a)};function Mn(a,d,w){return a instanceof en?a:Te(a)?new en(a[0],a[1]):null==a?a:"object"==typeof a&&"x"in a&&"y"in a?new en(a.x,a.y):new en(a,d,w)}function Bn(a,d){if(a)for(var w=d?[a,d]:a,A=0,Q=w.length;A<Q;A++)this.extend(w[A])}function Dn(a,d){return!a||a instanceof Bn?a:new Bn(a,d)}function vn(a,d){if(a)for(var w=d?[a,d]:a,A=0,Q=w.length;A<Q;A++)this.extend(w[A])}function Dt(a,d){return a instanceof vn?a:new vn(a,d)}function Mt(a,d,w){if(isNaN(a)||isNaN(d))throw new Error("Invalid LatLng object: ("+a+", "+d+")");this.lat=+a,this.lng=+d,void 0!==w&&(this.alt=+w)}function it(a,d,w){return a instanceof Mt?a:Te(a)&&"object"!=typeof a[0]?3===a.length?new Mt(a[0],a[1],a[2]):2===a.length?new Mt(a[0],a[1]):null:null==a?a:"object"==typeof a&&"lat"in a?new Mt(a.lat,"lng"in a?a.lng:a.lon,a.alt):void 0===d?null:new Mt(a,d,w)}en.prototype={clone:function(){return new en(this.x,this.y)},add:function(a){return this.clone()._add(Mn(a))},_add:function(a){return this.x+=a.x,this.y+=a.y,this},subtract:function(a){return this.clone()._subtract(Mn(a))},_subtract:function(a){return this.x-=a.x,this.y-=a.y,this},divideBy:function(a){return this.clone()._divideBy(a)},_divideBy:function(a){return this.x/=a,this.y/=a,this},multiplyBy:function(a){return this.clone()._multiplyBy(a)},_multiplyBy:function(a){return this.x*=a,this.y*=a,this},scaleBy:function(a){return new en(this.x*a.x,this.y*a.y)},unscaleBy:function(a){return new en(this.x/a.x,this.y/a.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=Wn(this.x),this.y=Wn(this.y),this},distanceTo:function(a){var d=(a=Mn(a)).x-this.x,w=a.y-this.y;return Math.sqrt(d*d+w*w)},equals:function(a){return(a=Mn(a)).x===this.x&&a.y===this.y},contains:function(a){return a=Mn(a),Math.abs(a.x)<=Math.abs(this.x)&&Math.abs(a.y)<=Math.abs(this.y)},toString:function(){return"Point("+re(this.x)+", "+re(this.y)+")"}},Bn.prototype={extend:function(a){var d,w;if(!a)return this;if(a instanceof en||"number"==typeof a[0]||"x"in a)d=w=Mn(a);else if(w=(a=Dn(a)).max,!(d=a.min)||!w)return this;return this.min||this.max?(this.min.x=Math.min(d.x,this.min.x),this.max.x=Math.max(w.x,this.max.x),this.min.y=Math.min(d.y,this.min.y),this.max.y=Math.max(w.y,this.max.y)):(this.min=d.clone(),this.max=w.clone()),this},getCenter:function(a){return Mn((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,a)},getBottomLeft:function(){return Mn(this.min.x,this.max.y)},getTopRight:function(){return Mn(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(a){var d,w;return(a="number"==typeof a[0]||a instanceof en?Mn(a):Dn(a))instanceof Bn?(d=a.min,w=a.max):d=w=a,d.x>=this.min.x&&w.x<=this.max.x&&d.y>=this.min.y&&w.y<=this.max.y},intersects:function(a){a=Dn(a);var d=this.min,w=this.max,A=a.min,Q=a.max;return Q.x>=d.x&&A.x<=w.x&&Q.y>=d.y&&A.y<=w.y},overlaps:function(a){a=Dn(a);var d=this.min,w=this.max,A=a.min,Q=a.max;return Q.x>d.x&&A.x<w.x&&Q.y>d.y&&A.y<w.y},isValid:function(){return!(!this.min||!this.max)},pad:function(a){var d=this.min,w=this.max,A=Math.abs(d.x-w.x)*a,Q=Math.abs(d.y-w.y)*a;return Dn(Mn(d.x-A,d.y-Q),Mn(w.x+A,w.y+Q))},equals:function(a){return!!a&&(a=Dn(a),this.min.equals(a.getTopLeft())&&this.max.equals(a.getBottomRight()))}},vn.prototype={extend:function(a){var A,Q,d=this._southWest,w=this._northEast;if(a instanceof Mt)A=a,Q=a;else{if(!(a instanceof vn))return a?this.extend(it(a)||Dt(a)):this;if(Q=a._northEast,!(A=a._southWest)||!Q)return this}return d||w?(d.lat=Math.min(A.lat,d.lat),d.lng=Math.min(A.lng,d.lng),w.lat=Math.max(Q.lat,w.lat),w.lng=Math.max(Q.lng,w.lng)):(this._southWest=new Mt(A.lat,A.lng),this._northEast=new Mt(Q.lat,Q.lng)),this},pad:function(a){var d=this._southWest,w=this._northEast,A=Math.abs(d.lat-w.lat)*a,Q=Math.abs(d.lng-w.lng)*a;return new vn(new Mt(d.lat-A,d.lng-Q),new Mt(w.lat+A,w.lng+Q))},getCenter:function(){return new Mt((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new Mt(this.getNorth(),this.getWest())},getSouthEast:function(){return new Mt(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(a){a="number"==typeof a[0]||a instanceof Mt||"lat"in a?it(a):Dt(a);var A,Q,d=this._southWest,w=this._northEast;return a instanceof vn?(A=a.getSouthWest(),Q=a.getNorthEast()):A=Q=a,A.lat>=d.lat&&Q.lat<=w.lat&&A.lng>=d.lng&&Q.lng<=w.lng},intersects:function(a){a=Dt(a);var d=this._southWest,w=this._northEast,A=a.getSouthWest(),Q=a.getNorthEast();return Q.lat>=d.lat&&A.lat<=w.lat&&Q.lng>=d.lng&&A.lng<=w.lng},overlaps:function(a){a=Dt(a);var d=this._southWest,w=this._northEast,A=a.getSouthWest(),Q=a.getNorthEast();return Q.lat>d.lat&&A.lat<w.lat&&Q.lng>d.lng&&A.lng<w.lng},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(a,d){return!!a&&(a=Dt(a),this._southWest.equals(a.getSouthWest(),d)&&this._northEast.equals(a.getNorthEast(),d))},isValid:function(){return!(!this._southWest||!this._northEast)}},Mt.prototype={equals:function(a,d){return!!a&&(a=it(a),Math.max(Math.abs(this.lat-a.lat),Math.abs(this.lng-a.lng))<=(void 0===d?1e-9:d))},toString:function(a){return"LatLng("+re(this.lat,a)+", "+re(this.lng,a)+")"},distanceTo:function(a){return ct.distance(this,it(a))},wrap:function(){return ct.wrapLatLng(this)},toBounds:function(a){var d=180*a/40075017,w=d/Math.cos(Math.PI/180*this.lat);return Dt([this.lat-d,this.lng-w],[this.lat+d,this.lng+w])},clone:function(){return new Mt(this.lat,this.lng,this.alt)}};var a,At={latLngToPoint:function(a,d){var w=this.projection.project(a),A=this.scale(d);return this.transformation._transform(w,A)},pointToLatLng:function(a,d){var w=this.scale(d),A=this.transformation.untransform(a,w);return this.projection.unproject(A)},project:function(a){return this.projection.project(a)},unproject:function(a){return this.projection.unproject(a)},scale:function(a){return 256*Math.pow(2,a)},zoom:function(a){return Math.log(a/256)/Math.LN2},getProjectedBounds:function(a){if(this.infinite)return null;var d=this.projection.bounds,w=this.scale(a);return new Bn(this.transformation.transform(d.min,w),this.transformation.transform(d.max,w))},infinite:!1,wrapLatLng:function(a){var d=this.wrapLng?te(a.lng,this.wrapLng,!0):a.lng;return new Mt(this.wrapLat?te(a.lat,this.wrapLat,!0):a.lat,d,a.alt)},wrapLatLngBounds:function(a){var d=a.getCenter(),w=this.wrapLatLng(d),A=d.lat-w.lat,Q=d.lng-w.lng;if(0===A&&0===Q)return a;var xe=a.getSouthWest(),bt=a.getNorthEast();return new vn(new Mt(xe.lat-A,xe.lng-Q),new Mt(bt.lat-A,bt.lng-Q))}},ct=s({},At,{wrapLng:[-180,180],R:6371e3,distance:function(a,d){var w=Math.PI/180,A=a.lat*w,Q=d.lat*w,xe=Math.sin((d.lat-a.lat)*w/2),bt=Math.sin((d.lng-a.lng)*w/2),xt=xe*xe+Math.cos(A)*Math.cos(Q)*bt*bt,Jt=2*Math.atan2(Math.sqrt(xt),Math.sqrt(1-xt));return this.R*Jt}}),vt={R:6378137,MAX_LATITUDE:85.0511287798,project:function(a){var d=Math.PI/180,w=this.MAX_LATITUDE,A=Math.max(Math.min(w,a.lat),-w),Q=Math.sin(A*d);return new en(this.R*a.lng*d,this.R*Math.log((1+Q)/(1-Q))/2)},unproject:function(a){var d=180/Math.PI;return new Mt((2*Math.atan(Math.exp(a.y/this.R))-Math.PI/2)*d,a.x*d/this.R)},bounds:(a=6378137*Math.PI,new Bn([-a,-a],[a,a]))};function ft(a,d,w,A){if(Te(a))return this._a=a[0],this._b=a[1],this._c=a[2],void(this._d=a[3]);this._a=a,this._b=d,this._c=w,this._d=A}function Ut(a,d,w,A){return new ft(a,d,w,A)}ft.prototype={transform:function(a,d){return this._transform(a.clone(),d)},_transform:function(a,d){return a.x=(d=d||1)*(this._a*a.x+this._b),a.y=d*(this._c*a.y+this._d),a},untransform:function(a,d){return new en((a.x/(d=d||1)-this._b)/this._a,(a.y/d-this._d)/this._c)}};var tn=s({},ct,{code:"EPSG:3857",projection:vt,transformation:function(){var a=.5/(Math.PI*vt.R);return Ut(a,.5,-a,.5)}()}),_n=s({},tn,{code:"EPSG:900913"});function bn(a){return document.createElementNS("http://www.w3.org/2000/svg",a)}function pi(a,d){var A,Q,xe,bt,xt,Jt,w="";for(A=0,xe=a.length;A<xe;A++){for(Q=0,bt=(xt=a[A]).length;Q<bt;Q++)w+=(Q?"L":"M")+(Jt=xt[Q]).x+" "+Jt.y;w+=d?j.svg?"z":"x":""}return w||"M0 0"}var si=document.documentElement.style,vi="ActiveXObject"in window,Vn=vi&&!document.addEventListener,Rn="msLaunchUri"in navigator&&!("documentMode"in document),Ve=x("webkit"),Pt=x("android"),$=x("android 2")||x("android 3"),ue=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),K=Pt&&x("Google")&&ue<537&&!("AudioNode"in window),ae=!!window.opera,Me=!Rn&&x("chrome"),nt=x("gecko")&&!Ve&&!ae&&!vi,Tt=!Me&&x("safari"),Zt=x("phantom"),Yt="OTransition"in si,Pn=0===navigator.platform.indexOf("Win"),Cn=vi&&"transition"in si,Nn="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!$,Si="MozPerspective"in si,ni=!window.L_DISABLE_3D&&(Cn||Nn||Si)&&!Yt&&!Zt,Qn="undefined"!=typeof orientation||x("mobile"),lt=Qn&&Ve,Qt=Qn&&Nn,Se=!window.PointerEvent&&window.MSPointerEvent,Ke=!(!window.PointerEvent&&!Se),Ee="ontouchstart"in window||!!window.TouchEvent,Be=!window.L_NO_TOUCH&&(Ee||Ke),at=Qn&&ae,Ot=Qn&&nt,mt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,yn=function(){var a=!1;try{var d=Object.defineProperty({},"passive",{get:function(){a=!0}});window.addEventListener("testPassiveEventSupport",_e,d),window.removeEventListener("testPassiveEventSupport",_e,d)}catch(w){}return a}(),ei=!!document.createElement("canvas").getContext,ht=!(!document.createElementNS||!bn("svg").createSVGRect),Oe=!!ht&&function(){var a=document.createElement("div");return a.innerHTML="<svg/>","http://www.w3.org/2000/svg"===(a.firstChild&&a.firstChild.namespaceURI)}(),De=!ht&&function(){try{var a=document.createElement("div");a.innerHTML='<v:shape adj="1"/>';var d=a.firstChild;return d.style.behavior="url(#default#VML)",d&&"object"==typeof d.adj}catch(w){return!1}}();function x(a){return navigator.userAgent.toLowerCase().indexOf(a)>=0}var j={ie:vi,ielt9:Vn,edge:Rn,webkit:Ve,android:Pt,android23:$,androidStock:K,opera:ae,chrome:Me,gecko:nt,safari:Tt,phantom:Zt,opera12:Yt,win:Pn,ie3d:Cn,webkit3d:Nn,gecko3d:Si,any3d:ni,mobile:Qn,mobileWebkit:lt,mobileWebkit3d:Qt,msPointer:Se,pointer:Ke,touch:Be,touchNative:Ee,mobileOpera:at,mobileGecko:Ot,retina:mt,passiveEvents:yn,canvas:ei,svg:ht,vml:De,inlineSvg:Oe,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},de=j.msPointer?"MSPointerDown":"pointerdown",Je=j.msPointer?"MSPointerMove":"pointermove",St=j.msPointer?"MSPointerUp":"pointerup",Ht=j.msPointer?"MSPointerCancel":"pointercancel",kn={touchstart:de,touchmove:Je,touchend:St,touchcancel:Ht},Jn={touchstart:function Hi(a,d){d.MSPOINTER_TYPE_TOUCH&&d.pointerType===d.MSPOINTER_TYPE_TOUCH&&gs(d),ai(a,d)},touchmove:ai,touchend:ai,touchcancel:ai},ii={},Ii=!1;function Cr(a,d,w){return"touchstart"===d&&function zn(){Ii||(document.addEventListener(de,qt,!0),document.addEventListener(Je,xn,!0),document.addEventListener(St,fn,!0),document.addEventListener(Ht,fn,!0),Ii=!0)}(),Jn[d]?(w=Jn[d].bind(this,w),a.addEventListener(kn[d],w,!1),w):(console.warn("wrong event specified:",d),_e)}function qt(a){ii[a.pointerId]=a}function xn(a){ii[a.pointerId]&&(ii[a.pointerId]=a)}function fn(a){delete ii[a.pointerId]}function ai(a,d){if(d.pointerType!==(d.MSPOINTER_TYPE_MOUSE||"mouse")){for(var w in d.touches=[],ii)d.touches.push(ii[w]);d.changedTouches=[d],a(d)}}var Jr,io,Ar,oo,ho,Ur=Mi(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ms=Mi(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Ni="webkitTransition"===ms||"OTransition"===ms?ms+"End":"transitionend";function Gr(a){return"string"==typeof a?document.getElementById(a):a}function jr(a,d){var w=a.style[d]||a.currentStyle&&a.currentStyle[d];if((!w||"auto"===w)&&document.defaultView){var A=document.defaultView.getComputedStyle(a,null);w=A?A[d]:null}return"auto"===w?null:w}function or(a,d,w){var A=document.createElement(a);return A.className=d||"",w&&w.appendChild(A),A}function ar(a){var d=a.parentNode;d&&d.removeChild(a)}function Wi(a){for(;a.firstChild;)a.removeChild(a.firstChild)}function Ps(a){var d=a.parentNode;d&&d.lastChild!==a&&d.appendChild(a)}function Ds(a){var d=a.parentNode;d&&d.firstChild!==a&&d.insertBefore(a,d.firstChild)}function Qr(a,d){if(void 0!==a.classList)return a.classList.contains(d);var w=$t(a);return w.length>0&&new RegExp("(^|\\s)"+d+"(\\s|$)").test(w)}function _i(a,d){if(void 0!==a.classList)for(var w=be(d),A=0,Q=w.length;A<Q;A++)a.classList.add(w[A]);else if(!Qr(a,d)){var xe=$t(a);Ft(a,(xe?xe+" ":"")+d)}}function Nt(a,d){void 0!==a.classList?a.classList.remove(d):Ft(a,we((" "+$t(a)+" ").replace(" "+d+" "," ")))}function Ft(a,d){void 0===a.className.baseVal?a.className=d:a.className.baseVal=d}function $t(a){return a.correspondingElement&&(a=a.correspondingElement),void 0===a.className.baseVal?a.className:a.className.baseVal}function cn(a,d){"opacity"in a.style?a.style.opacity=d:"filter"in a.style&&function Un(a,d){var w=!1,A="DXImageTransform.Microsoft.Alpha";try{w=a.filters.item(A)}catch(Q){if(1===d)return}d=Math.round(100*d),w?(w.Enabled=100!==d,w.Opacity=d):a.style.filter+=" progid:"+A+"(opacity="+d+")"}(a,d)}function Mi(a){for(var d=document.documentElement.style,w=0;w<a.length;w++)if(a[w]in d)return a[w];return!1}function Fi(a,d,w){var A=d||new en(0,0);a.style[Ur]=(j.ie3d?"translate("+A.x+"px,"+A.y+"px)":"translate3d("+A.x+"px,"+A.y+"px,0)")+(w?" scale("+w+")":"")}function oi(a,d){a._leaflet_pos=d,j.any3d?Fi(a,d):(a.style.left=d.x+"px",a.style.top=d.y+"px")}function Gi(a){return a._leaflet_pos||new en(0,0)}if("onselectstart"in document)Jr=function(){Ui(window,"selectstart",gs)},io=function(){dr(window,"selectstart",gs)};else{var ns=Mi(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Jr=function(){if(ns){var a=document.documentElement.style;Ar=a[ns],a[ns]="none"}},io=function(){ns&&(document.documentElement.style[ns]=Ar,Ar=void 0)}}function co(){Ui(window,"dragstart",gs)}function Oo(){dr(window,"dragstart",gs)}function go(a){for(;-1===a.tabIndex;)a=a.parentNode;!a.style||(ws(),oo=a,ho=a.style.outlineStyle,a.style.outlineStyle="none",Ui(window,"keydown",ws))}function ws(){!oo||(oo.style.outlineStyle=ho,oo=void 0,ho=void 0,dr(window,"keydown",ws))}function Ro(a){do{a=a.parentNode}while(!(a.offsetWidth&&a.offsetHeight||a===document.body));return a}function Ks(a){var d=a.getBoundingClientRect();return{x:d.width/a.offsetWidth||1,y:d.height/a.offsetHeight||1,boundingClientRect:d}}var ma={__proto__:null,TRANSFORM:Ur,TRANSITION:ms,TRANSITION_END:Ni,get:Gr,getStyle:jr,create:or,remove:ar,empty:Wi,toFront:Ps,toBack:Ds,hasClass:Qr,addClass:_i,removeClass:Nt,setClass:Ft,getClass:$t,setOpacity:cn,testProp:Mi,setTransform:Fi,setPosition:oi,getPosition:Gi,get disableTextSelection(){return Jr},get enableTextSelection(){return io},disableImageDrag:co,enableImageDrag:Oo,preventOutline:go,restoreOutline:ws,getSizedParentNode:Ro,getScale:Ks};function Ui(a,d,w,A){if(d&&"object"==typeof d)for(var Q in d)Ms(a,Q,d[Q],w);else for(var xe=0,bt=(d=be(d)).length;xe<bt;xe++)Ms(a,d[xe],w,A);return this}var Ys="_leaflet_events";function dr(a,d,w,A){if(1===arguments.length)aa(a),delete a[Ys];else if(d&&"object"==typeof d)for(var Q in d)vo(a,Q,d[Q],w);else if(d=be(d),2===arguments.length)aa(a,function(xt){return-1!==rt(d,xt)});else for(var xe=0,bt=d.length;xe<bt;xe++)vo(a,d[xe],w,A);return this}function aa(a,d){for(var w in a[Ys]){var A=w.split(/\d/)[0];(!d||d(A))&&vo(a,A,null,null,w)}}var yo={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Ms(a,d,w,A){var Q=d+C(w)+(A?"_"+C(A):"");if(a[Ys]&&a[Ys][Q])return this;var xe=function(xt){return w.call(A||a,xt||window.event)},bt=xe;!j.touchNative&&j.pointer&&0===d.indexOf("touch")?xe=Cr(a,d,xe):j.touch&&"dblclick"===d?xe=function Pr(a,d){a.addEventListener("dblclick",d);var A,w=0;function Q(xe){if(1===xe.detail){if("mouse"!==xe.pointerType&&(!xe.sourceCapabilities||xe.sourceCapabilities.firesTouchEvents)){var bt=Os(xe);if(!bt.some(function(Jt){return Jt instanceof HTMLLabelElement&&Jt.attributes.for})||bt.some(function(Jt){return Jt instanceof HTMLInputElement||Jt instanceof HTMLSelectElement})){var xt=Date.now();xt-w<=200?2==++A&&d(function _r(a){var w,A,d={};for(A in a)d[A]=(w=a[A])&&w.bind?w.bind(a):w;return a=d,d.type="dblclick",d.detail=2,d.isTrusted=!1,d._simulated=!0,d}(xe)):A=1,w=xt}}}else A=xe.detail}return a.addEventListener("click",Q),{dblclick:d,simDblclick:Q}}(a,xe):"addEventListener"in a?"touchstart"===d||"touchmove"===d||"wheel"===d||"mousewheel"===d?a.addEventListener(yo[d]||d,xe,!!j.passiveEvents&&{passive:!1}):"mouseenter"===d||"mouseleave"===d?a.addEventListener(yo[d],xe=function(xt){xt=xt||window.event,bo(a,xt)&&bt(xt)},!1):a.addEventListener(d,bt,!1):a.attachEvent("on"+d,xe),a[Ys]=a[Ys]||{},a[Ys][Q]=xe}function vo(a,d,w,A,Q){Q=Q||d+C(w)+(A?"_"+C(A):"");var xe=a[Ys]&&a[Ys][Q];if(!xe)return this;!j.touchNative&&j.pointer&&0===d.indexOf("touch")?function rn(a,d,w){kn[d]?a.removeEventListener(kn[d],w,!1):console.warn("wrong event specified:",d)}(a,d,xe):j.touch&&"dblclick"===d?function ki(a,d){a.removeEventListener("dblclick",d.dblclick),a.removeEventListener("click",d.simDblclick)}(a,xe):"removeEventListener"in a?a.removeEventListener(yo[d]||d,xe,!1):a.detachEvent("on"+d,xe),a[Ys][Q]=null}function _s(a){return a.stopPropagation?a.stopPropagation():a.originalEvent?a.originalEvent._stopped=!0:a.cancelBubble=!0,this}function Jo(a){return Ms(a,"wheel",_s),this}function is(a){return Ui(a,"mousedown touchstart dblclick contextmenu",_s),a._leaflet_disable_click=!0,this}function gs(a){return a.preventDefault?a.preventDefault():a.returnValue=!1,this}function Es(a){return gs(a),_s(a),this}function Os(a){if(a.composedPath)return a.composedPath();for(var d=[],w=a.target;w;)d.push(w),w=w.parentNode;return d}function fo(a,d){if(!d)return new en(a.clientX,a.clientY);var w=Ks(d),A=w.boundingClientRect;return new en((a.clientX-A.left)/w.x-d.clientLeft,(a.clientY-A.top)/w.y-d.clientTop)}var _a=j.linux&&j.chrome?window.devicePixelRatio:j.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function qs(a){return j.edge?a.wheelDeltaY/2:a.deltaY&&0===a.deltaMode?-a.deltaY/_a:a.deltaY&&1===a.deltaMode?20*-a.deltaY:a.deltaY&&2===a.deltaMode?60*-a.deltaY:a.deltaX||a.deltaZ?0:a.wheelDelta?(a.wheelDeltaY||a.wheelDelta)/2:a.detail&&Math.abs(a.detail)<32765?20*-a.detail:a.detail?a.detail/-32765*60:0}function bo(a,d){var w=d.relatedTarget;if(!w)return!0;try{for(;w&&w!==a;)w=w.parentNode}catch(A){return!1}return w!==a}var ia={__proto__:null,on:Ui,off:dr,stopPropagation:_s,disableScrollPropagation:Jo,disableClickPropagation:is,preventDefault:gs,stop:Es,getPropagationPath:Os,getMousePosition:fo,getWheelDelta:qs,isExternalTarget:bo,addListener:Ui,removeListener:dr},Do=jn.extend({run:function(a,d,w,A){this.stop(),this._el=a,this._inProgress=!0,this._duration=w||.25,this._easeOutPower=1/Math.max(A||.5,.2),this._startPos=Gi(a),this._offset=d.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){!this._inProgress||(this._step(!0),this._complete())},_animate:function(){this._animId=Fe(this._animate,this),this._step()},_step:function(a){var d=+new Date-this._startTime,w=1e3*this._duration;d<w?this._runFrame(this._easeOut(d/w),a):(this._runFrame(1),this._complete())},_runFrame:function(a,d){var w=this._startPos.add(this._offset.multiplyBy(a));d&&w._round(),oi(this._el,w),this.fire("step")},_complete:function(){me(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(a){return 1-Math.pow(1-a,this._easeOutPower)}}),Yi=jn.extend({options:{crs:tn,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(a,d){d=ke(this,d),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(a),this._initLayout(),this._onResize=k(this._onResize,this),this._initEvents(),d.maxBounds&&this.setMaxBounds(d.maxBounds),void 0!==d.zoom&&(this._zoom=this._limitZoom(d.zoom)),d.center&&void 0!==d.zoom&&this.setView(it(d.center),d.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ms&&j.any3d&&!j.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Ui(this._proxy,Ni,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
1,setView:function(a,d,w){return d=void 0===d?this._zoom:this._limitZoom(d),a=this._limitCenter(it(a),d,this.options.maxBounds),w=w||{},this._stop(),this._loaded&&!w.reset&&!0!==w&&(void 0!==w.animate&&(w.zoom=s({animate:w.animate},w.zoom),w.pan=s({animate:w.animate,duration:w.duration},w.pan)),this._zoom!==d?this._tryAnimatedZoom&&this._tryAnimatedZoom(a,d,w.zoom):this._tryAnimatedPan(a,w.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(a,d,w.pan&&w.pan.noMoveStart),this)},setZoom:function(a,d){return this._loaded?this.setView(this.getCenter(),a,{zoom:d}):(this._zoom=a,this)},zoomIn:function(a,d){return this.setZoom(this._zoom+(a=a||(j.any3d?this.options.zoomDelta:1)),d)},zoomOut:function(a,d){return this.setZoom(this._zoom-(a=a||(j.any3d?this.options.zoomDelta:1)),d)},setZoomAround:function(a,d,w){var A=this.getZoomScale(d),Q=this.getSize().divideBy(2),bt=(a instanceof en?a:this.latLngToContainerPoint(a)).subtract(Q).multiplyBy(1-1/A),xt=this.containerPointToLatLng(Q.add(bt));return this.setView(xt,d,{zoom:w})},_getBoundsCenterZoom:function(a,d){d=d||{},a=a.getBounds?a.getBounds():Dt(a);var w=Mn(d.paddingTopLeft||d.padding||[0,0]),A=Mn(d.paddingBottomRight||d.padding||[0,0]),Q=this.getBoundsZoom(a,!1,w.add(A));if((Q="number"==typeof d.maxZoom?Math.min(d.maxZoom,Q):Q)===1/0)return{center:a.getCenter(),zoom:Q};
vendor: 4,332 bytes, line 1
1var xe=A.subtract(w).divideBy(2),bt=this.project(a.getSouthWest(),Q),xt=this.project(a.getNorthEast(),Q);return{center:this.unproject(bt.add(xt).divideBy(2).add(xe),Q),zoom:Q}},fitBounds:function(a,d){if(!(a=Dt(a)).isValid())throw new Error("Bounds are not valid.");var w=this._getBoundsCenterZoom(a,d);return this.setView(w.center,w.zoom,d)},fitWorld:function(a){return this.fitBounds([[-90,-180],[90,180]],a)},panTo:function(a,d){return this.setView(a,this._zoom,{pan:d})},panBy:function(a,d){if(d=d||{},!(a=Mn(a).round()).x&&!a.y)return this.fire("moveend");if(!0!==d.animate&&!this.getSize().contains(a))return this._resetView(this.unproject(this.project(this.getCenter()).add(a)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Do,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),d.noMoveStart||this.fire("movestart"),!1!==d.animate){_i(this._mapPane,"leaflet-pan-anim");var w=this._getMapPanePos().subtract(a).round();this._panAnim.run(this._mapPane,w,d.duration||.25,d.easeLinearity)}else this._rawPanBy(a),this.fire("move").fire("moveend");return this},flyTo:function(a,d,w){if(!1===(w=w||{}).animate||!j.any3d)return this.setView(a,d,w);this._stop();var A=this.project(this.getCenter()),Q=this.project(a),xe=this.getSize(),bt=this._zoom;a=it(a),d=void 0===d?bt:d;var xt=Math.max(xe.x,xe.y),Jt=xt*this.getZoomScale(bt,d),Sn=Q.distanceTo(A)||1,Wt=1.42,ti=Wt*Wt;function Zi(ds){var yl=(Jt*Jt-xt*xt+(ds?-1:1)*ti*ti*Sn*Sn)/(2*(ds?Jt:xt)*ti*Sn),zl=Math.sqrt(yl*yl+1)-yl;return zl<1e-9?-18:Math.log(zl)}function kr(ds){return(Math.exp(ds)-Math.exp(-ds))/2}function qn(ds){return(Math.exp(ds)+Math.exp(-ds))/2}var lo=Zi(0);function un(ds){return xt*(qn(lo)*function yi(ds){return kr(ds)/qn(ds)}(lo+Wt*ds)-kr(lo))/ti}var br=Date.now(),ol=(Zi(1)-lo)/Wt,Gs=w.duration?1e3*w.duration:1e3*ol*.8;return this._moveStart(!0,w.noMoveStart),function Fa(){var ds=(Date.now()-br)/Gs,ua=function On(ds){return 1-Math.pow(1-ds,1.5)}(ds)*ol;ds<=1?(this._flyToFrame=Fe(Fa,this),this._move(this.unproject(A.add(Q.subtract(A).multiplyBy(un(ua)/Sn)),bt),this.getScaleZoom(xt/function ci(ds){return xt*(qn(lo)/qn(lo+Wt*ds))}(ua),bt),{flyTo:!0})):this._move(a,d)._moveEnd(!0)}.call(this),this},flyToBounds:function(a,d){var w=this._getBoundsCenterZoom(a,d);return this.flyTo(w.center,w.zoom,d)},setMaxBounds:function(a){return a=Dt(a),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),a.isValid()?(this.options.maxBounds=a,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(a){var d=this.options.minZoom;return this.options.minZoom=a,this._loaded&&d!==a&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(a):this},setMaxZoom:function(a){var d=this.options.maxZoom;return this.options.maxZoom=a,this._loaded&&d!==a&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(a):this},panInsideBounds:function(a,d){this._enforcingBounds=!0;var w=this.getCenter(),A=this._limitCenter(w,this._zoom,Dt(a));return w.equals(A)||this.panTo(A,d),this._enforcingBounds=!1,this},panInside:function(a,d){var w=Mn((d=d||{}).paddingTopLeft||d.padding||[0,0]),A=Mn(d.paddingBottomRight||d.padding||[0,0]),Q=this.project(this.getCenter()),xe=this.project(a),bt=this.getPixelBounds(),xt=Dn([bt.min.add(w),bt.max.subtract(A)]),Jt=xt.getSize();if(!xt.contains(xe)){this._enforcingBounds=!0;var Sn=xe.subtract(xt.getCenter()),Wt=xt.extend(xe).getSize().subtract(Jt);Q.x+=Sn.x<0?-Wt.x:Wt.x,Q.y+=Sn.y<0?-Wt.y:Wt.y,this.panTo(this.unproject(Q),d),this._enforcingBounds=!1}return this},invalidateSize:function(a){if(!this._loaded)return this;a=s({animate:!1,pan:!0},!0===a?{animate:!0}:a);var d=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var w=this.getSize(),A=d.divideBy(2).round(),Q=w.divideBy(2).round(),xe=A.subtract(Q);return xe.x||xe.y?(a.animate&&a.pan?this.panBy(xe):(a.pan&&this._rawPanBy(xe),this.fire("move"),a.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(k(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:d,newSize:w})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()}
vendor: 9,229 bytes, line 1
1,locate:function(a){if(a=this._locateOptions=s({timeout:1e4,watch:!1},a),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var d=k(this._handleGeolocationResponse,this),w=k(this._handleGeolocationError,this);return a.watch?this._locationWatchId=navigator.geolocation.watchPosition(d,w,a):navigator.geolocation.getCurrentPosition(d,w,a),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(a){if(this._container._leaflet_id){var d=a.code,w=a.message||(1===d?"permission denied":2===d?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:d,message:"Geolocation error: "+w+"."})}},_handleGeolocationResponse:function(a){if(this._container._leaflet_id){var A=new Mt(a.coords.latitude,a.coords.longitude),Q=A.toBounds(2*a.coords.accuracy),xe=this._locateOptions;if(xe.setView){var bt=this.getBoundsZoom(Q);this.setView(A,xe.maxZoom?Math.min(bt,xe.maxZoom):bt)}var xt={latlng:A,bounds:Q,timestamp:a.timestamp};for(var Jt in a.coords)"number"==typeof a.coords[Jt]&&(xt[Jt]=a.coords[Jt]);this.fire("locationfound",xt)}},addHandler:function(a,d){if(!d)return this;var w=this[a]=new d(this);return this._handlers.push(w),this.options[a]&&w.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(d){this._container._leaflet_id=void 0,this._containerId=void 0}var a;for(a in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ar(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(me(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[a].remove();for(a in this._panes)ar(this._panes[a]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(a,d){var A=or("div","leaflet-pane"+(a?" leaflet-"+a.replace("Pane","")+"-pane":""),d||this._mapPane);return a&&(this._panes[a]=A),A},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var a=this.getPixelBounds();return new vn(this.unproject(a.getBottomLeft()),this.unproject(a.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(a,d,w){a=Dt(a),w=Mn(w||[0,0]);var A=this.getZoom()||0,Q=this.getMinZoom(),xe=this.getMaxZoom(),bt=a.getNorthWest(),xt=a.getSouthEast(),Jt=this.getSize().subtract(w),Sn=Dn(this.project(xt,A),this.project(bt,A)).getSize(),Wt=j.any3d?this.options.zoomSnap:1,ti=Jt.x/Sn.x,Zi=Jt.y/Sn.y,kr=d?Math.max(ti,Zi):Math.min(ti,Zi);return A=this.getScaleZoom(kr,A),Wt&&(A=Math.round(A/(Wt/100))*(Wt/100),A=d?Math.ceil(A/Wt)*Wt:Math.floor(A/Wt)*Wt),Math.max(Q,Math.min(xe,A))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new en(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(a,d){var w=this._getTopLeftPoint(a,d);return new Bn(w,w.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(a){return this.options.crs.getProjectedBounds(void 0===a?this.getZoom():a)},getPane:function(a){return"string"==typeof a?this._panes[a]:a},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(a,d){var w=this.options.crs;return d=void 0===d?this._zoom:d,w.scale(a)/w.scale(d)},getScaleZoom:function(a,d){var w=this.options.crs,A=w.zoom(a*w.scale(d=void 0===d?this._zoom:d));return isNaN(A)?1/0:A},project:function(a,d){return d=void 0===d?this._zoom:d,this.options.crs.latLngToPoint(it(a),d)},unproject:function(a,d){return d=void 0===d?this._zoom:d,this.options.crs.pointToLatLng(Mn(a),d)},layerPointToLatLng:function(a){var d=Mn(a).add(this.getPixelOrigin());return this.unproject(d)},latLngToLayerPoint:function(a){return this.project(it(a))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(a){return this.options.crs.wrapLatLng(it(a))},wrapLatLngBounds:function(a){return this.options.crs.wrapLatLngBounds(Dt(a))},distance:function(a,d){return this.options.crs.distance(it(a),it(d))},containerPointToLayerPoint:function(a){return Mn(a).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(a){return Mn(a).add(this._getMapPanePos())},containerPointToLatLng:function(a){var d=this.containerPointToLayerPoint(Mn(a));return this.layerPointToLatLng(d)},latLngToContainerPoint:function(a){return this.layerPointToContainerPoint(this.latLngToLayerPoint(it(a)))},mouseEventToContainerPoint:function(a){return fo(a,this._container)},mouseEventToLayerPoint:function(a){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(a))},mouseEventToLatLng:function(a){return this.layerPointToLatLng(this.mouseEventToLayerPoint(a))},_initContainer:function(a){var d=this._container=Gr(a);if(!d)throw new Error("Map container not found.");if(d._leaflet_id)throw new Error("Map container is already initialized.");Ui(d,"scroll",this._onScroll,this),this._containerId=C(d)},_initLayout:function(){var a=this._container;this._fadeAnimated=this.options.fadeAnimation&&j.any3d,_i(a,"leaflet-container"+(j.touch?" leaflet-touch":"")+(j.retina?" leaflet-retina":"")+(j.ielt9?" leaflet-oldie":"")+(j.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var d=jr(a,"position");"absolute"!==d&&"relative"!==d&&"fixed"!==d&&"sticky"!==d&&(a.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var a=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),oi(this._mapPane,new en(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(_i(a.markerPane,"leaflet-zoom-hide"),_i(a.shadowPane,"leaflet-zoom-hide"))},_resetView:function(a,d,w){oi(this._mapPane,new en(0,0));var A=!this._loaded;this._loaded=!0,d=this._limitZoom(d),this.fire("viewprereset");var Q=this._zoom!==d;this._moveStart(Q,w)._move(a,d)._moveEnd(Q),this.fire("viewreset"),A&&this.fire("load")},_moveStart:function(a,d){return a&&this.fire("zoomstart"),d||this.fire("movestart"),this},_move:function(a,d,w,A){void 0===d&&(d=this._zoom);var Q=this._zoom!==d;return this._zoom=d,this._lastCenter=a,this._pixelOrigin=this._getNewPixelOrigin(a),A?w&&w.pinch&&this.fire("zoom",w):((Q||w&&w.pinch)&&this.fire("zoom",w),this.fire("move",w)),this},_moveEnd:function(a){return a&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return me(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(a){oi(this._mapPane,this._getMapPanePos().subtract(a))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(a){this._targets={},this._targets[C(this._container)]=this;var d=a?dr:Ui;d(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&d(window,"resize",this._onResize,this),j.any3d&&this.options.transform3DLimit&&(a?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){me(this._resizeRequest),this._resizeRequest=Fe(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var a=this._getMapPanePos();Math.max(Math.abs(a.x),Math.abs(a.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(a,d){for(var A,w=[],Q="mouseout"===d||"mouseover"===d,xe=a.target||a.srcElement,bt=!1;xe;){if((A=this._targets[C(xe)])&&("click"===d||"preclick"===d)&&this._draggableMoved(A)){bt=!0;break}if(A&&A.listens(d,!0)&&(Q&&!bo(xe,a)||(w.push(A),Q))||xe===this._container)break;xe=xe.parentNode}return!w.length&&!bt&&!Q&&this.listens(d,!0)&&(w=[this]),w},_isClickDisabled:function(a){for(;a&&a!==this._container;){if(a._leaflet_disable_click)return!0;a=a.parentNode}},_handleDOMEvent:function(a){var d=a.target||a.srcElement;if(!(!this._loaded||d._leaflet_disable_events||"click"===a.type&&this._isCl
vendor: 1,917 bytes, line 1
1ickDisabled(d))){var w=a.type;"mousedown"===w&&go(d),this._fireDOMEvent(a,w)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(a,d,w){if("click"===a.type){var A=s({},a);A.type="preclick",this._fireDOMEvent(A,A.type,w)}var Q=this._findEventTargets(a,d);if(w){for(var xe=[],bt=0;bt<w.length;bt++)w[bt].listens(d,!0)&&xe.push(w[bt]);Q=xe.concat(Q)}if(Q.length){"contextmenu"===d&&gs(a);var xt=Q[0],Jt={originalEvent:a};if("keypress"!==a.type&&"keydown"!==a.type&&"keyup"!==a.type){var Sn=xt.getLatLng&&(!xt._radius||xt._radius<=10);Jt.containerPoint=Sn?this.latLngToContainerPoint(xt.getLatLng()):this.mouseEventToContainerPoint(a),Jt.layerPoint=this.containerPointToLayerPoint(Jt.containerPoint),Jt.latlng=Sn?xt.getLatLng():this.layerPointToLatLng(Jt.layerPoint)}for(bt=0;bt<Q.length;bt++)if(Q[bt].fire(d,Jt,!0),Jt.originalEvent._stopped||!1===Q[bt].options.bubblingMouseEvents&&-1!==rt(this._mouseEvents,d))return}},_draggableMoved:function(a){return(a=a.dragging&&a.dragging.enabled()?a:this).dragging&&a.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var a=0,d=this._handlers.length;a<d;a++)this._handlers[a].disable()},whenReady:function(a,d){return this._loaded?a.call(d||this,{target:this}):this.on("load",a,d),this},_getMapPanePos:function(){return Gi(this._mapPane)||new en(0,0)},_moved:function(){var a=this._getMapPanePos();return a&&!a.equals([0,0])},_getTopLeftPoint:function(a,d){return(a&&void 0!==d?this._getNewPixelOrigin(a,d):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(a,d){var w=this.getSize()._divideBy(2);return this.project(a,d)._subtract(w)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(a,d,w){var A=this._getNewPixelOrigin(w,d);return this.project(a,d)._subtract(A)},_latLngBoundsToNewLayerBounds:function(a,d,w){var A=this._getNewPixelOrigin(w,d);
vendor: 13,833 bytes, line 1
1return Dn([this.project(a.getSouthWest(),d)._subtract(A),this.project(a.getNorthWest(),d)._subtract(A),this.project(a.getSouthEast(),d)._subtract(A),this.project(a.getNorthEast(),d)._subtract(A)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(a){return this.latLngToLayerPoint(a).subtract(this._getCenterLayerPoint())},_limitCenter:function(a,d,w){if(!w)return a;var A=this.project(a,d),Q=this.getSize().divideBy(2),xe=new Bn(A.subtract(Q),A.add(Q)),bt=this._getBoundsOffset(xe,w,d);return Math.abs(bt.x)<=1&&Math.abs(bt.y)<=1?a:this.unproject(A.add(bt),d)},_limitOffset:function(a,d){if(!d)return a;var w=this.getPixelBounds(),A=new Bn(w.min.add(a),w.max.add(a));return a.add(this._getBoundsOffset(A,d))},_getBoundsOffset:function(a,d,w){var A=Dn(this.project(d.getNorthEast(),w),this.project(d.getSouthWest(),w)),Q=A.min.subtract(a.min),xe=A.max.subtract(a.max);return new en(this._rebound(Q.x,-xe.x),this._rebound(Q.y,-xe.y))},_rebound:function(a,d){return a+d>0?Math.round(a-d)/2:Math.max(0,Math.ceil(a))-Math.max(0,Math.floor(d))},_limitZoom:function(a){var d=this.getMinZoom(),w=this.getMaxZoom(),A=j.any3d?this.options.zoomSnap:1;return A&&(a=Math.round(a/A)*A),Math.max(d,Math.min(w,a))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Nt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(a,d){var w=this._getCenterOffset(a)._trunc();return!(!0!==(d&&d.animate)&&!this.getSize().contains(w)||(this.panBy(w,d),0))},_createAnimProxy:function(){var a=this._proxy=or("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(a),this.on("zoomanim",function(d){var w=Ur,A=this._proxy.style[w];Fi(this._proxy,this.project(d.center,d.zoom),this.getZoomScale(d.zoom,1)),A===this._proxy.style[w]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ar(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var a=this.getCenter(),d=this.getZoom();Fi(this._proxy,this.project(a,d),this.getZoomScale(d,1))},_catchTransitionEnd:function(a){this._animatingZoom&&a.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(a,d,w){if(this._animatingZoom)return!0;if(w=w||{},!this._zoomAnimated||!1===w.animate||this._nothingToAnimate()||Math.abs(d-this._zoom)>this.options.zoomAnimationThreshold)return!1;var A=this.getZoomScale(d),Q=this._getCenterOffset(a)._divideBy(1-1/A);return!(!0!==w.animate&&!this.getSize().contains(Q)||(Fe(function(){this._moveStart(!0,w.noMoveStart||!1)._animateZoom(a,d,!0)},this),0))},_animateZoom:function(a,d,w,A){!this._mapPane||(w&&(this._animatingZoom=!0,this._animateToCenter=a,this._animateToZoom=d,_i(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:a,zoom:d,noUpdate:A}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(k(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){!this._animatingZoom||(this._mapPane&&Nt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});var Cs=Bt.extend({options:{position:"topright"},initialize:function(a){ke(this,a)},getPosition:function(){return this.options.position},setPosition:function(a){var d=this._map;return d&&d.removeControl(this),this.options.position=a,d&&d.addControl(this),this},getContainer:function(){return this._container},addTo:function(a){this.remove(),this._map=a;var d=this._container=this.onAdd(a),w=this.getPosition(),A=a._controlCorners[w];return _i(d,"leaflet-control"),-1!==w.indexOf("bottom")?A.insertBefore(d,A.firstChild):A.appendChild(d),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ar(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(a){this._map&&a&&a.screenX>0&&a.screenY>0&&this._map.getContainer().focus()}}),Vs=function(a){return new Cs(a)};Yi.include({addControl:function(a){return a.addTo(this),this},removeControl:function(a){return a.remove(),this},_initControlPos:function(){var a=this._controlCorners={},d="leaflet-",w=this._controlContainer=or("div",d+"control-container",this._container);function A(Q,xe){a[Q+xe]=or("div",d+Q+" "+d+xe,w)}A("top","left"),A("top","right"),A("bottom","left"),A("bottom","right")},_clearControlPos:function(){for(var a in this._controlCorners)ar(this._controlCorners[a]);ar(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Ri=Cs.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(a,d,w,A){return w<A?-1:A<w?1:0}},initialize:function(a,d,w){for(var A in ke(this,w),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,a)this._addLayer(a[A],A);for(A in d)this._addLayer(d[A],A,!0)},onAdd:function(a){this._initLayout(),this._update(),this._map=a,a.on("zoomend",this._checkDisabledLayers,this);for(var d=0;d<this._layers.length;d++)this._layers[d].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(a){return Cs.prototype.addTo.call(this,a),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var a=0;a<this._layers.length;a++)this._layers[a].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(a,d){return this._addLayer(a,d),this._map?this._update():this},addOverlay:function(a,d){return this._addLayer(a,d,!0),this._map?this._update():this},removeLayer:function(a){a.off("add remove",this._onLayerChange,this);var d=this._getLayer(C(a));return d&&this._layers.splice(this._layers.indexOf(d),1),this._map?this._update():this},expand:function(){_i(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var a=this._map.getSize().y-(this._container.offsetTop+50);return a<this._section.clientHeight?(_i(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=a+"px"):Nt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Nt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var a="leaflet-control-layers",d=this._container=or("div",a),w=this.options.collapsed;d.setAttribute("aria-haspopup",!0),is(d),Jo(d);var A=this._section=or("section",a+"-list");w&&(this._map.on("click",this.collapse,this),Ui(d,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var Q=this._layersLink=or("a",a+"-toggle",d);Q.href="#",Q.title="Layers",Q.setAttribute("role","button"),Ui(Q,{keydown:function(xe){13===xe.keyCode&&this._expandSafely()},click:function(xe){gs(xe),this._expandSafely()}},this),w||this.expand(),this._baseLayersList=or("div",a+"-base",A),this._separator=or("div",a+"-separator",A),this._overlaysList=or("div",a+"-overlays",A),d.appendChild(A)},_getLayer:function(a){for(var d=0;d<this._layers.length;d++)if(this._layers[d]&&C(this._layers[d].layer)===a)return this._layers[d]},_addLayer:function(a,d,w){this._map&&a.on("add remove",this._onLayerChange,this),this._layers.push({layer:a,name:d,overlay:w}),this.options.sortLayers&&this._layers.sort(k(function(A,Q){return this.options.sortFunction(A.layer,Q.layer,A.name,Q.name)},this)),this.options.autoZIndex&&a.setZIndex&&(this._lastZIndex++,a.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Wi(this._baseLayersList),Wi(this._overlaysList),this._layerControlInputs=[];var a,d,w,A,Q=0;for(w=0;w<this._layers.length;w++)this._addItem(A=this._layers[w]),d=d||A.overlay,a=a||!A.overlay,Q+=A.overlay?0:1;return this.options.hideSingleBase&&(this._baseLayersList.style.display=(a=a&&Q>1)?"":"none"),this._separator.style.display=d&&a?"":"none",this},_onLayerChange:function(a){this._handlingClick||this._update();var d=this._getLayer(C(a.target)),w=d.overlay?"add"===a.type?"overlayadd":"overlayremove":"add"===a.type?"baselayerchange":null;w&&this._map.fire(w,d)},_createRadioElement:function(a,d){var w='<input type="radio" class="leaflet-control-layers-selector" name="'+a+'"'+(d?' checked="checked"':"")+"/>",A=document.createElement("div");return A.innerHTML=w,A.firstChild},_addItem:function(a){var A,d=document.createElement("label"),w=this._map.hasLayer(a.layer);a.overlay?((A=document.createElement("input")).type="checkbox",A.className="leaflet-control-layers-selector",A.defaultChecked=w):A=this._createRadioElement("leaflet-base-layers_"+C(this),w),this._layerControlInputs.push(A),A.layerId=C(a.layer),Ui(A,"click",this._onInputClick,this);var Q=document.createElement("span");Q.innerHTML=" "+a.name;var xe=document.createElement("span");return d.appendChild(xe),xe.appendChild(A),xe.appendChild(Q),(a.overlay?this._overlaysList:this._baseLayersList).appendChild(d),this._checkDisabledLayers(),d},_onInputClick:function(){if(!this._preventClick){var d,w,a=this._layerControlInputs,A=[],Q=[];this._handlingClick=!0;for(var xe=a.length-1;xe>=0;xe--)w=this._getLayer((d=a[xe]).layerId).layer,d.checked?A.push(w):d.checked||Q.push(w);for(xe=0;xe<Q.length;xe++)this._map.hasLayer(Q[xe])&&this._map.removeLayer(Q[xe]);for(xe=0;xe<A.length;xe++)this._map.hasLayer(A[xe])||this._map.addLayer(A[xe]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var d,w,a=this._layerControlInputs,A=this._map.getZoom(),Q=a.length-1;Q>=0;Q--)w=this._getLayer((d=a[Q]).layerId).layer,d.disabled=void 0!==w.options.minZoom&&A<w.options.minZoom||void 0!==w.options.maxZoom&&A>w.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var a=this._section;this._preventClick=!0,Ui(a,"click",gs),this.expand();var d=this;setTimeout(function(){dr(a,"click",gs),d._preventClick=!1})}}),xi=Cs.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(a){var d="leaflet-control-zoom",w=or("div",d+" leaflet-bar"),A=this.options;return this._zoomInButton=this._createButton(A.zoomInText,A.zoomInTitle,d+"-in",w,this._zoomIn),this._zoomOutButton=this._createButton(A.zoomOutText,A.zoomOutTitle,d+"-out",w,this._zoomOut),this._updateDisabled(),a.on("zoomend zoomlevelschange",this._updateDisabled,this),w},onRemove:function(a){a.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(a){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(a.shiftKey?3:1))},_zoomOut:function(a){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(a.shiftKey?3:1))},_createButton:function(a,d,w,A,Q){var xe=or("a",w,A);return xe.innerHTML=a,xe.href="#",xe.title=d,xe.setAttribute("role","button"),xe.setAttribute("aria-label",d),is(xe),Ui(xe,"click",Es),Ui(xe,"click",Q,this),Ui(xe,"click",this._refocusOnMap,this),xe},_updateDisabled:function(){var a=this._map,d="leaflet-disabled";Nt(this._zoomInButton,d),Nt(this._zoomOutButton,d),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||a._zoom===a.getMinZoom())&&(_i(this._zoomOutButton,d),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||a._zoom===a.getMaxZoom())&&(_i(this._zoomInButton,d),this._zoomInButton.setAttribute("aria-disabled","true"))}});Yi.mergeOptions({zoomControl:!0}),Yi.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new xi,this.addControl(this.zoomControl))});var rr=Cs.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(a){var d="leaflet-control-scale",w=or("div",d),A=this.options;return this._addScales(A,d+"-line",w),a.on(A.updateWhenIdle?"moveend":"move",this._update,this),a.whenReady(this._update,this),w},onRemove:function(a){a.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(a,d,w){a.metric&&(this._mScale=or("div",d,w)),a.imperial&&(this._iScale=or("div",d,w))},_update:function(){var a=this._map,d=a.getSize().y/2,w=a.distance(a.containerPointToLatLng([0,d]),a.containerPointToLatLng([this.options.maxWidth,d]));this._updateScales(w)},_updateScales:function(a){this.options.metric&&a&&this._updateMetric(a),this.options.imperial&&a&&this._updateImperial(a)},_updateMetric:function(a){var d=this._getRoundNum(a);this._updateScale(this._mScale,d<1e3?d+" m":d/1e3+" km",d/a)},_updateImperial:function(a){var w,A,Q,d=3.2808399*a;d>5280?(A=this._getRoundNum(w=d/5280),this._updateScale(this._iScale,A+" mi",A/w)):(Q=this._getRoundNum(d),this._updateScale(this._iScale,Q+" ft",Q/d))},_updateScale:function(a,d,w){a.style.width=Math.round(this.options.maxWidth*w)+"px",a.innerHTML=d},_getRoundNum:function(a){var d=Math.pow(10,(Math.floor(a)+"").length-1),w=a/d;return d*(w>=10?10:w>=5?5:w>=3?3:w>=2?2:1)}}),Ir=Cs.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">
1'+(j.inlineSvg?'<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg> ':"")+"Leaflet</a>"},initialize:function(a){ke(this,a),this._attributions={}},onAdd:function(a){for(var d in a.attributionControl=this,this._container=or("div","leaflet-control-attribution"),is(this._container),a._layers)a._layers[d].getAttribution&&this.addAttribution(a._layers[d].getAttribution());return this._update(),a.on("layeradd",this._addAttribution,this),this._container},onRemove:function(a){a.off("layeradd",this._addAttribution,this)},_addAttribution:function(a){a.layer.getAttribution&&(this.addAttribution(a.layer.getAttribution()),a.layer.once("remove",function(){this.removeAttribution(a.layer.getAttribution())},this))},setPrefix:function(a){return this.options.prefix=a,this._update(),this},addAttribution:function(a){return a?(this._attributions[a]||(this._attributions[a]=0),this._attributions[a]++,this._update(),this):this},removeAttribution:function(a){return a?(this._attributions[a]&&(this._attributions[a]--,this._update()),this):this},_update:function(){if(this._map){var a=[];for(var d in this._attributions)this._attributions[d]&&a.push(d);var w=[];this.options.prefix&&w.push(this.options.prefix),a.length&&w.push(a.join(", ")),this._container.innerHTML=w.join(' <span aria-hidden="true">|</span> ')}}});Yi.mergeOptions({attributionControl:!0}),Yi.addInitHook(function(){this.options.attributionControl&&(new Ir).addTo(this)});Cs.Layers=Ri,Cs.Zoom=xi,Cs.Scale=rr,Cs.Attribution=Ir,Vs.layers=function(a,d,w){return new Ri(a,d,w)},Vs.zoom=function(a){return new xi(a)},Vs.scale=function(a){return new rr(a)},Vs.attribution=function(a){return new Ir(a)};var Ne=Bt.extend({initialize:function(a){this._map=a},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Ne.addTo=function(a,d){return a.addHandler(d,this),this};var le={Events:mn},qe=j.touch?"touchstart mousedown":"mousedown",Ct=jn.extend({options:{clickTolerance:3},initialize:function(a,d,w,A){ke(this,A),this._element=a,this._dragStartTarget=d||a,this._preventOutline=w},enable:function(){this._enabled||(Ui(this._dragStartTarget,qe,this._onDown,this),this._enabled=!0)},disable:function(){!this._enabled||(Ct._dragging===this&&this.finishDrag(!0),dr(this._dragStartTarget,qe,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(a){if(this._enabled&&(this._moved=!1,!Qr(this._element,"leaflet-zoom-anim"))){if(a.touches&&1!==a.touches.length)return void(Ct._dragging===this&&this.finishDrag());if(!(Ct._dragging||a.shiftKey||1!==a.which&&1!==a.button&&!a.touches||(Ct._dragging=this,this._preventOutline&&go(this._element),co(),Jr(),this._moving))){this.fire("down");var d=a.touches?a.touches[0]:a,w=Ro(this._element);this._startPoint=new en(d.clientX,d.clientY),this._startPos=Gi(this._element),this._parentScale=Ks(w);var A="mousedown"===a.type;Ui(document,A?"mousemove":"touchmove",this._onMove,this),Ui(document,A?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(a){if(this._enabled){if(a.touches&&a.touches.length>1)return void(this._moved=!0);var d=a.touches&&1===a.touches.length?a.touches[0]:a,w=new en(d.clientX,d.clientY)._subtract(this._startPoint);!w.x&&!w.y||Math.abs(w.x)+Math.abs(w.y)<this.options.clickTolerance||(w.x/=this._parentScale.x,w.y/=this._parentScale.y,gs(a),this._moved||(this.fire("dragstart"),this._moved=!0,_i(document.body,"leaflet-dragging"),this._lastTarget=a.target||a.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),_i(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(w),this._moving=!0,this._lastEvent=a,this._updatePosition())}},_updatePosition:function(){var a={originalEvent:this._lastEvent};this.fire("predrag",a),oi(this._element,this._newPos),this.fire("drag",a)},_onUp:function(){!this._enabled||this.finishDrag()},finishDrag:function(a){Nt(document.body,"leaflet-dragging"),this._lastTarget&&(Nt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),dr(document,"mousemove touchmove",this._onMove,this),dr(
1document,"mouseup touchend touchcancel",this._onUp,this),Oo(),io();var d=this._moved&&this._moving;this._moving=!1,Ct._dragging=!1,d&&this.fire("dragend",{noInertia:a,distance:this._newPos.distanceTo(this._startPos)})}});function dn(a,d,w){var A,xe,bt,xt,Jt,Sn,Wt,ti,Zi,Q=[1,4,2,8];for(xe=0,Wt=a.length;xe<Wt;xe++)a[xe]._code=We(a[xe],d);for(xt=0;xt<4;xt++){for(ti=Q[xt],A=[],xe=0,bt=(Wt=a.length)-1;xe<Wt;bt=xe++)Sn=a[bt],(Jt=a[xe])._code&ti?Sn._code&ti||((Zi=J(Sn,Jt,ti,d,w))._code=We(Zi,d),A.push(Zi)):(Sn._code&ti&&((Zi=J(Sn,Jt,ti,d,w))._code=We(Zi,d),A.push(Zi)),A.push(Jt));a=A}return a}function hn(a,d){var w,A,Q,xe,bt,xt,Jt,Sn;if(!a||0===a.length)throw new Error("latlngs not passed");hi(a)||(console.warn("latlngs are not flat! Only the first ring will be used"),a=a[0]);var ti=it([0,0]),Zi=Dt(a);Zi.getNorthWest().distanceTo(Zi.getSouthWest())*Zi.getNorthEast().distanceTo(Zi.getNorthWest())<1700&&(ti=li(a));var qn=a.length,yi=[];for(w=0;w<qn;w++){var lo=it(a[w]);yi.push(d.project(it([lo.lat-ti.lat,lo.lng-ti.lng])))}for(xt=Jt=Sn=0,w=0,A=qn-1;w<qn;A=w++)Jt+=((Q=yi[w]).x+(xe=yi[A]).x)*(bt=Q.y*xe.x-xe.y*Q.x),Sn+=(Q.y+xe.y)*bt,xt+=3*bt;var ci=d.unproject(Mn(0===xt?yi[0]:[Jt/xt,Sn/xt]));return it([ci.lat+ti.lat,ci.lng+ti.lng])}function li(a){for(var d=0,w=0,A=0,Q=0;Q<a.length;Q++){var xe=it(a[Q]);d+=xe.lat,w+=xe.lng,A++}return it([d/A,w/A])}var ge,Tr={__proto__:null,clipPolygon:dn,polygonCenter:hn,centroid:li};function Dr(a,d){if(!d||!a.length)return a.slice();var w=d*d;return function Xr(a,d){var w=a.length,Q=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(w);Q[0]=Q[w-1]=1,hr(a,Q,d,0,w-1);var xe,bt=[];for(xe=0;xe<w;xe++)Q[xe]&&bt.push(a[xe]);return bt}(a=function as(a,d){for(var w=[a[0]],A=1,Q=0,xe=a.length;A<xe;A++)gn(a[A],a[Q])>d&&(w.push(a[A]),Q=A);return Q<xe-1&&w.push(a[xe-1]),w}(a,w),w)}function Xi(a,d,w){return Math.sqrt(mi(a,d,w,!0))}function hr(a,d,w,A,Q){var bt,xt,Jt,xe=0;for(xt=A+1;xt<=Q-1;xt++)(Jt=mi(a[xt],a[A],a[Q],!0))>xe&&(bt=xt,xe=Jt);xe>w&&(d[bt]=1,hr(a,d,w,A,bt),hr(a,d,w,bt,Q))}function oe(a,d,w,A,Q){var xt,Jt,Sn,xe=A?ge:We(a,w),bt=We(d,w);for(ge=bt;;){if(!(xe|bt))return[a,d];if(xe&bt)return!1;Sn=We(Jt=J(a,d,xt=xe||bt,w,Q),w),xt===xe?(a=Jt,xe=Sn):(d=Jt,bt=Sn)}}function J(a,d,w,A,Q){var Sn,Wt,xe=d.x-a.x,bt=d.y-a.y,xt=A.min,Jt=A.max;return 8&w?(Sn=a.x+xe*(Jt.y-a.y)/bt,Wt=Jt.y):4&w?(Sn=a.x+xe*(xt.y-a.y)/bt,Wt=xt.y):2&w?(Sn=Jt.x,Wt=a.y+bt*(Jt.x-a.x)/xe):1&w&&(Sn=xt.x,Wt=a.y+bt*(xt.x-a.x)/xe),new en(Sn,Wt,Q)}function We(a,d){var w=0;return a.x<d.min.x?w|=1:a.x>d.max.x&&(w|=2),a.y<d.min.y?w|=4:a.y>d.max.y&&(w|=8),w}function gn(a,d){var w=d.x-a.x,A=d.y-a.y;return w*w+A*A}function mi(a,d,w,A){var Sn,Q=d.x,xe=d.y,bt=w.x-Q,xt=w.y-xe,Jt=bt*bt+xt*xt;return Jt>0&&((Sn=((a.x-Q)*bt+(a.y-xe)*xt)/Jt)>1?(Q=w.x,xe=w.y):Sn>0&&(Q+=bt*Sn,xe+=xt*Sn)),bt=a.x-Q,xt=a.y-xe,A?bt*bt+xt*xt:new en(Q,xe)}function hi(a){return!Te(a[0])||"object"!=typeof a[0][0]&&void 0!==a[0][0]}function zs(a){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),hi(a)}function Ss(a,d){var w,A,Q,xe,bt,xt,Jt,Sn;if(!a||0===a.length)throw new Error("latlngs not passed");hi(a)||(console.warn("latlngs are not flat! Only the first ring will be used"),a=a[0]);var Wt=it([0,0]),ti=Dt(a);
vendor: 4,148 bytes, line 1
1ti.getNorthWest().distanceTo(ti.getSouthWest())*ti.getNorthEast().distanceTo(ti.getNorthWest())<1700&&(Wt=li(a));var kr=a.length,qn=[];for(w=0;w<kr;w++){var yi=it(a[w]);qn.push(d.project(it([yi.lat-Wt.lat,yi.lng-Wt.lng])))}for(w=0,A=0;w<kr-1;w++)A+=qn[w].distanceTo(qn[w+1])/2;if(0===A)Sn=qn[0];else for(w=0,xe=0;w<kr-1;w++)if((xe+=Q=(bt=qn[w]).distanceTo(xt=qn[w+1]))>A){Sn=[xt.x-(Jt=(xe-A)/Q)*(xt.x-bt.x),xt.y-Jt*(xt.y-bt.y)];break}var lo=d.unproject(Mn(Sn));return it([lo.lat+Wt.lat,lo.lng+Wt.lng])}var Qs={__proto__:null,simplify:Dr,pointToSegmentDistance:Xi,closestPointOnSegment:function $i(a,d,w){return mi(a,d,w)},clipSegment:oe,_getEdgeIntersection:J,_getBitCode:We,_sqClosestPointOnSegment:mi,isFlat:hi,_flat:zs,polylineCenter:Ss},ks={project:function(a){return new en(a.lng,a.lat)},unproject:function(a){return new Mt(a.y,a.x)},bounds:new Bn([-180,-90],[180,90])},Fn={R:6378137,R_MINOR:6356752.314245179,bounds:new Bn([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(a){var d=Math.PI/180,w=this.R,A=a.lat*d,Q=this.R_MINOR/w,xe=Math.sqrt(1-Q*Q),bt=xe*Math.sin(A),xt=Math.tan(Math.PI/4-A/2)/Math.pow((1-bt)/(1+bt),xe/2);return A=-w*Math.log(Math.max(xt,1e-10)),new en(a.lng*d*w,A)},unproject:function(a){for(var Sn,d=180/Math.PI,w=this.R,A=this.R_MINOR/w,Q=Math.sqrt(1-A*A),xe=Math.exp(-a.y/w),bt=Math.PI/2-2*Math.atan(xe),xt=0,Jt=.1;xt<15&&Math.abs(Jt)>1e-7;xt++)Sn=Q*Math.sin(bt),Sn=Math.pow((1-Sn)/(1+Sn),Q/2),bt+=Jt=Math.PI/2-2*Math.atan(xe*Sn)-bt;return new Mt(bt*d,a.x*d/w)}},qi={__proto__:null,LonLat:ks,Mercator:Fn,SphericalMercator:vt},ra=s({},ct,{code:"EPSG:3395",projection:Fn,transformation:function(){var a=.5/(Math.PI*Fn.R);return Ut(a,.5,-a,.5)}()}),yr=s({},ct,{code:"EPSG:4326",projection:ks,transformation:Ut(1/180,1,-1/180,.5)}),sl=s({},At,{projection:ks,transformation:Ut(1,0,-1,0),scale:function(a){return Math.pow(2,a)},zoom:function(a){return Math.log(a)/Math.LN2},distance:function(a,d){var w=d.lng-a.lng,A=d.lat-a.lat;return Math.sqrt(w*w+A*A)},infinite:!0});At.Earth=ct,At.EPSG3395=ra,At.EPSG3857=tn,At.EPSG900913=_n,At.EPSG4326=yr,At.Simple=sl;var fr=jn.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(a){return a.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(a){return a&&a.removeLayer(this),this},getPane:function(a){return this._map.getPane(a?this.options[a]||a:this.options.pane)},addInteractiveTarget:function(a){return this._map._targets[C(a)]=this,this},removeInteractiveTarget:function(a){return delete this._map._targets[C(a)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(a){var d=a.target;if(d.hasLayer(this)){if(this._map=d,this._zoomAnimated=d._zoomAnimated,this.getEvents){var w=this.getEvents();d.on(w,this),this.once("remove",function(){d.off(w,this)},this)}this.onAdd(d),this.fire("add"),d.fire("layeradd",{layer:this})}}});Yi.include({addLayer:function(a){if(!a._layerAdd)throw new Error("The provided object is not a Layer.");var d=C(a);return this._layers[d]||(this._layers[d]=a,a._mapToAdd=this,a.beforeAdd&&a.beforeAdd(this),this.whenReady(a._layerAdd,a)),this},removeLayer:function(a){var d=C(a);return this._layers[d]?(this._loaded&&a.onRemove(this),delete this._layers[d],this._loaded&&(this.fire("layerremove",{layer:a}),a.fire("remove")),a._map=a._mapToAdd=null,this):this},hasLayer:function(a){return C(a)in this._layers},eachLayer:function(a,d){for(var w in this._layers)a.call(d,this._layers[w]);return this},_addLayers:function(a){for(var d=0,w=(a=a?Te(a)?a:[a]:[]).length;d<w;d++)this.addLayer(a[d])},_addZoomLimit:function(a){(!isNaN(a.options.maxZoom)||!isNaN(a.options.minZoom))&&(this._zoomBoundLayers[C(a)]=a,this._updateZoomLevels())},_removeZoomLimit:function(a){var d=C(a);this._zoomBoundLayers[d]&&(delete this._zoomBoundLayers[d],this._updateZoomLevels())},_updateZoomLevels:function(){var a=1/0,d=-1/0,w=this._getZoomSpan();for(var A in this._zoomBoundLayers){var Q=this._zoomBoundLayers[A].options;a=void 0===Q.minZoom?a:Math.min(a,Q.minZoom),d=void 0===Q.maxZoom?d:Math.max(d,Q.maxZoom)}
vendor: 13,795 bytes, line 1
1this._layersMaxZoom=d===-1/0?void 0:d,this._layersMinZoom=a===1/0?void 0:a,w!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Js=fr.extend({initialize:function(a,d){var w,A;if(ke(this,d),this._layers={},a)for(w=0,A=a.length;w<A;w++)this.addLayer(a[w])},addLayer:function(a){var d=this.getLayerId(a);return this._layers[d]=a,this._map&&this._map.addLayer(a),this},removeLayer:function(a){var d=a in this._layers?a:this.getLayerId(a);return this._map&&this._layers[d]&&this._map.removeLayer(this._layers[d]),delete this._layers[d],this},hasLayer:function(a){return("number"==typeof a?a:this.getLayerId(a))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(a){var w,A,d=Array.prototype.slice.call(arguments,1);for(w in this._layers)(A=this._layers[w])[a]&&A[a].apply(A,d);return this},onAdd:function(a){this.eachLayer(a.addLayer,a)},onRemove:function(a){this.eachLayer(a.removeLayer,a)},eachLayer:function(a,d){for(var w in this._layers)a.call(d,this._layers[w]);return this},getLayer:function(a){return this._layers[a]},getLayers:function(){var a=[];return this.eachLayer(a.push,a),a},setZIndex:function(a){return this.invoke("setZIndex",a)},getLayerId:function(a){return C(a)}}),ls=Js.extend({addLayer:function(a){return this.hasLayer(a)?this:(a.addEventParent(this),Js.prototype.addLayer.call(this,a),this.fire("layeradd",{layer:a}))},removeLayer:function(a){return this.hasLayer(a)?(a in this._layers&&(a=this._layers[a]),a.removeEventParent(this),Js.prototype.removeLayer.call(this,a),this.fire("layerremove",{layer:a})):this},setStyle:function(a){return this.invoke("setStyle",a)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var a=new vn;for(var d in this._layers){var w=this._layers[d];a.extend(w.getBounds?w.getBounds():w.getLatLng())}return a}}),Eo=Bt.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(a){ke(this,a)},createIcon:function(a){return this._createIcon("icon",a)},createShadow:function(a){return this._createIcon("shadow",a)},_createIcon:function(a,d){var w=this._getIconUrl(a);if(!w){if("icon"===a)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var A=this._createImg(w,d&&"IMG"===d.tagName?d:null);return this._setIconStyles(A,a),(this.options.crossOrigin||""===this.options.crossOrigin)&&(A.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),A},_setIconStyles:function(a,d){var w=this.options,A=w[d+"Size"];"number"==typeof A&&(A=[A,A]);var Q=Mn(A),xe=Mn("shadow"===d&&w.shadowAnchor||w.iconAnchor||Q&&Q.divideBy(2,!0));a.className="leaflet-marker-"+d+" "+(w.className||""),xe&&(a.style.marginLeft=-xe.x+"px",a.style.marginTop=-xe.y+"px"),Q&&(a.style.width=Q.x+"px",a.style.height=Q.y+"px")},_createImg:function(a,d){return(d=d||document.createElement("img")).src=a,d},_getIconUrl:function(a){return j.retina&&this.options[a+"RetinaUrl"]||this.options[a+"Url"]}});var Fo=Eo.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(a){return"string"!=typeof Fo.imagePath&&(Fo.imagePath=this._detectIconPath()),(this.options.imagePath||Fo.imagePath)+Eo.prototype._getIconUrl.call(this,a)},_stripUrl:function(a){var d=function(w,A,Q){var xe=A.exec(w);return xe&&xe[Q]};return(a=d(a,/^url\((['"])?(.+)\1\)$/,2))&&d(a,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var a=or("div","leaflet-default-icon-path",document.body),d=jr(a,"background-image")||jr(a,"backgroundImage");if(document.body.removeChild(a),d=this._stripUrl(d))return d;var w=document.querySelector('link[href$="leaflet.css"]');return w?w.href.substring(0,w.href.length-11-1):""}}),Is=Ne.extend({initialize:function(a){this._marker=a},addHooks:function(){var a=this._marker._icon;this._draggable||(this._draggable=new Ct(a,a,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),_i(a,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Nt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(a){var d=this._marker,w=d._map,A=this._marker.options.autoPanSpeed,Q=this._marker.options.autoPanPadding,xe=Gi(d._icon),bt=w.getPixelBounds(),xt=w.getPixelOrigin(),Jt=Dn(bt.min._subtract(xt).add(Q),bt.max._subtract(xt).subtract(Q));if(!Jt.contains(xe)){var Sn=Mn((Math.max(Jt.max.x,xe.x)-Jt.max.x)/(bt.max.x-Jt.max.x)-(Math.min(Jt.min.x,xe.x)-Jt.min.x)/(bt.min.x-Jt.min.x),(Math.max(Jt.max.y,xe.y)-Jt.max.y)/(bt.max.y-Jt.max.y)-(Math.min(Jt.min.y,xe.y)-Jt.min.y)/(bt.min.y-Jt.min.y)).multiplyBy(A);w.panBy(Sn,{animate:!1}),this._draggable._newPos._add(Sn),this._draggable._startPos._add(Sn),oi(d._icon,this._draggable._newPos),this._onDrag(a),this._panRequest=Fe(this._adjustPan.bind(this,a))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(a){this._marker.options.autoPan&&(me(this._panRequest),this._panRequest=Fe(this._adjustPan.bind(this,a)))},_onDrag:function(a){var d=this._marker,w=d._shadow,A=Gi(d._icon),Q=d._map.layerPointToLatLng(A);w&&oi(w,A),d._latlng=Q,a.latlng=Q,a.oldLatLng=this._oldLatLng,d.fire("move",a).fire("drag",a)},_onDragEnd:function(a){me(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",a)}}),po=fr.extend({options:{icon:new Fo,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(a,d){ke(this,d),this._latlng=it(a)},onAdd:function(a){this._zoomAnimated=this._zoomAnimated&&a.options.markerZoomAnimation,this._zoomAnimated&&a.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(a){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&a.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(a){var d=this._latlng;return this._latlng=it(a),this.update(),this.fire("move",{oldLatLng:d,latlng:this._latlng})},setZIndexOffset:function(a){return this.options.zIndexOffset=a,this.update()},getIcon:function(){return this.options.icon},setIcon:function(a){return this.options.icon=a,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var a=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(a)}return this},_initIcon:function(){var a=this.options,d="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),w=a.icon.createIcon(this._icon),A=!1;w!==this._icon&&(this._icon&&this._removeIcon(),A=!0,a.title&&(w.title=a.title),"IMG"===w.tagName&&(w.alt=a.alt||"")),_i(w,d),a.keyboard&&(w.tabIndex="0",w.setAttribute("role","button")),this._icon=w,a.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ui(w,"focus",this._panOnFocus,this);var Q=a.icon.createShadow(this._shadow),xe=!1;Q!==this._shadow&&(this._removeShadow(),xe=!0),Q&&(_i(Q,d),Q.alt=""),this._shadow=Q,a.opacity<1&&this._updateOpacity(),A&&this.getPane().appendChild(this._icon),this._initInteraction(),Q&&xe&&this.getPane(a.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&dr(this._icon,"focus",this._panOnFocus,this),ar(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ar(this._shadow),this._shadow=null},_setPos:function(a){this._icon&&oi(this._icon,a),this._shadow&&oi(this._shadow,a),this._zIndex=a.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(a){this._icon&&(this._icon.style.zIndex=this._zIndex+a)},_animateZoom:function(a){var d=this._map._latLngToNewLayerPoint(this._latlng,a.zoom,a.center).round();this._setPos(d)},_initInteraction:function(){if(this.options.interactive&&(_i(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Is)){var a=this.options.draggable;this.dragging&&(a=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Is(this),a&&this.dragging.enable()}},setOpacity:function(a){return this.options.opacity=a,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var a=this.options.opacity;this._icon&&cn(this._icon,a),this._shadow&&cn(this._shadow,a)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var a=this._map;if(a){var d=this.options.icon.options,w=d.iconSize?Mn(d.iconSize):Mn(0,0),A=d.iconAnchor?Mn(d.iconAnchor):Mn(0,0);a.panInside(this._latlng,{paddingTopLeft:A,paddingBottomRight:w.subtract(A)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});var P=fr.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(a){this._renderer=a.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(a){return ke(this,a),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&a&&Object.prototype.hasOwnProperty.call(a,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),F=P.extend({options:{fill:!0,radius:10},initialize:function(a,d){ke(this,d),this._latlng=it(a),this._radius=this.options.radius},setLatLng:function(a){var d=this._latlng;return this._latlng=it(a),this.redraw(),this.fire("move",{oldLatLng:d,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(a){return this.options.radius=this._radius=a,this.redraw()},getRadius:function(){return this._radius},setStyle:function(a){var d=a&&a.radius||this._radius;return P.prototype.setStyle.call(this,a),this.setRadius(d),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var a=this._radius,d=this._radiusY||a,w=this._clickTolerance(),A=[a+w,d+w];this._pxBounds=new Bn(this._point.subtract(A),this._point.add(A))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(a){return a.distanceTo(this._point)<=this._radius+this._clickTolerance()}});var He=F.extend({initialize:function(a,d,w){if("number"==typeof d&&(d=s({},w,{radius:d})),ke(this,d),this._latlng=it(a),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(a){return this._mRadius=a,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var a=[this._radius,this._radiusY||this._radius];return new vn(this._map.layerPointToLatLng(this._point.subtract(a)),this._map.layerPointToLatLng(this._point.add(a)))},setStyle:P.prototype.setStyle,_project:function(){var a=this._latlng.lng,d=this._latlng.lat,w=this._map,A=w.options.crs;if(A.distance===ct.distance){var Q=Math.PI/180,xe=this._mRadius/ct.R/Q,bt=w.project([d+xe,a]),xt=w.project([d-xe,a]),Jt=bt.add(xt).divideBy(2),Sn=w.unproject(Jt).lat,Wt=Math.acos((Math.cos(xe*Q)-Math.sin(d*Q)*Math.sin(Sn*Q))/(Math.cos(d*Q)*Math.cos(Sn*Q)))/Q;(isNaN(Wt)||0===Wt)&&(Wt=xe/Math.cos(Math.PI/180*d)),this._point=Jt.subtract(w.getPixelOrigin()),this._radius=isNaN(Wt)?0:Jt.x-w.project([Sn,a-Wt]).x,this._radiusY=Jt.y-bt.y}else{var ti=A.unproject(A.project(this._latlng).subtract([this._mRadius,0]));this._point=w.latLngToLayerPoint(this._latlng),this._radius=this._point.x-w.latLngToLayerPoint(ti).x}this._updateBounds()}});var Et=P.extend({options:{smoothFactor:1,noClip:!1},initialize:function(a,d){ke(this,d),this._setLatLngs(a)},getLatLngs:function(){return this._latlngs},setLatLngs:function(a){return this._setLatLngs(a),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(a){for(var Q,xe,d=1/0,w=null,A=mi,bt=0,xt=this._parts.length;
1bt<xt;bt++)for(var Jt=this._parts[bt],Sn=1,Wt=Jt.length;Sn<Wt;Sn++){var ti=A(a,Q=Jt[Sn-1],xe=Jt[Sn],!0);ti<d&&(d=ti,w=A(a,Q,xe))}return w&&(w.distance=Math.sqrt(d)),w},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Ss(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(a,d){return d=d||this._defaultShape(),a=it(a),d.push(a),this._bounds.extend(a),this.redraw()},_setLatLngs:function(a){this._bounds=new vn,this._latlngs=this._convertLatLngs(a)},_defaultShape:function(){return hi(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(a){for(var d=[],w=hi(a),A=0,Q=a.length;A<Q;A++)w?(d[A]=it(a[A]),this._bounds.extend(d[A])):d[A]=this._convertLatLngs(a[A]);return d},_project:function(){var a=new Bn;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,a),this._bounds.isValid()&&a.isValid()&&(this._rawPxBounds=a,this._updateBounds())},_updateBounds:function(){var a=this._clickTolerance(),d=new en(a,a);!this._rawPxBounds||(this._pxBounds=new Bn([this._rawPxBounds.min.subtract(d),this._rawPxBounds.max.add(d)]))},_projectLatlngs:function(a,d,w){var xe,bt,Q=a.length;if(a[0]instanceof Mt){for(bt=[],xe=0;xe<Q;xe++)bt[xe]=this._map.latLngToLayerPoint(a[xe]),w.extend(bt[xe]);d.push(bt)}else for(xe=0;xe<Q;xe++)this._projectLatlngs(a[xe],d,w)},_clipPoints:function(){var a=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(a)){if(this.options.noClip)return void(this._parts=this._rings);var w,A,Q,xe,bt,xt,Jt,d=this._parts;for(w=0,Q=0,xe=this._rings.length;w<xe;w++)for(A=0,bt=(Jt=this._rings[w]).length;A<bt-1;A++)(xt=oe(Jt[A],Jt[A+1],a,A,!0))&&(d[Q]=d[Q]||[],d[Q].push(xt[0]),(xt[1]!==Jt[A+1]||A===bt-2)&&(d[Q].push(xt[1]),Q++))}},_simplifyPoints:function(){for(var a=this._parts,d=this.options.smoothFactor,w=0,A=a.length;w<A;w++)a[w]=Dr(a[w],d)},_update:function(){!this._map||(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(a,d){var w,A,Q,xe,bt,xt,Jt=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(a))return!1;for(w=0,xe=this._parts.length;w<xe;w++)for(A=0,Q=(bt=(xt=this._parts[w]).length)-1;A<bt;Q=A++)if((d||0!==A)&&Xi(a,xt[Q],xt[A])<=Jt)return!0;return!1}});Et._flat=zs;var Kt=Et.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
vendor: 13,155 bytes, line 1
1,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return hn(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(a){var d=Et.prototype._convertLatLngs.call(this,a),w=d.length;return w>=2&&d[0]instanceof Mt&&d[0].equals(d[w-1])&&d.pop(),d},_setLatLngs:function(a){Et.prototype._setLatLngs.call(this,a),hi(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return hi(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var a=this._renderer._bounds,d=this.options.weight,w=new en(d,d);if(a=new Bn(a.min.subtract(w),a.max.add(w)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(a)){if(this.options.noClip)return void(this._parts=this._rings);for(var xe,A=0,Q=this._rings.length;A<Q;A++)(xe=dn(this._rings[A],a,!0)).length&&this._parts.push(xe)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(a){var w,A,Q,xe,bt,xt,Jt,Sn,d=!1;if(!this._pxBounds||!this._pxBounds.contains(a))return!1;for(xe=0,Jt=this._parts.length;xe<Jt;xe++)for(bt=0,xt=(Sn=(w=this._parts[xe]).length)-1;bt<Sn;xt=bt++)(A=w[bt]).y>a.y!=(Q=w[xt]).y>a.y&&a.x<(Q.x-A.x)*(a.y-A.y)/(Q.y-A.y)+A.x&&(d=!d);return d||Et.prototype._containsPoint.call(this,a,!0)}});var In=ls.extend({initialize:function(a,d){ke(this,d),this._layers={},a&&this.addData(a)},addData:function(a){var w,A,Q,d=Te(a)?a:a.features;if(d){for(w=0,A=d.length;w<A;w++)((Q=d[w]).geometries||Q.geometry||Q.features||Q.coordinates)&&this.addData(Q);return this}var xe=this.options;if(xe.filter&&!xe.filter(a))return this;var bt=Di(a,xe);return bt?(bt.feature=Wr(a),bt.defaultOptions=bt.options,this.resetStyle(bt),xe.onEachFeature&&xe.onEachFeature(a,bt),this.addLayer(bt)):this},resetStyle:function(a){return void 0===a?this.eachLayer(this.resetStyle,this):(a.options=s({},a.defaultOptions),this._setLayerStyle(a,this.options.style),this)},setStyle:function(a){return this.eachLayer(function(d){this._setLayerStyle(d,a)},this)},_setLayerStyle:function(a,d){a.setStyle&&("function"==typeof d&&(d=d(a.feature)),a.setStyle(d))}});function Di(a,d){var xt,Jt,Sn,Wt,w="Feature"===a.type?a.geometry:a,A=w?w.coordinates:null,Q=[],xe=d&&d.pointToLayer,bt=d&&d.coordsToLatLng||er;if(!A&&!w)return null;switch(w.type){case"Point":return ji(xe,a,xt=bt(A),d);case"MultiPoint":for(Sn=0,Wt=A.length;Sn<Wt;Sn++)xt=bt(A[Sn]),Q.push(ji(xe,a,xt,d));return new ls(Q);case"LineString":case"MultiLineString":return Jt=Gn(A,"LineString"===w.type?0:1,bt),new Et(Jt,d);case"Polygon":case"MultiPolygon":return Jt=Gn(A,"Polygon"===w.type?1:2,bt),new Kt(Jt,d);case"GeometryCollection":for(Sn=0,Wt=w.geometries.length;Sn<Wt;Sn++){var ti=Di({geometry:w.geometries[Sn],type:"Feature",properties:a.properties},d);ti&&Q.push(ti)}return new ls(Q);case"FeatureCollection":for(Sn=0,Wt=w.features.length;Sn<Wt;Sn++){var Zi=Di(w.features[Sn],d);Zi&&Q.push(Zi)}return new ls(Q);default:throw new Error("Invalid GeoJSON object.")}}function ji(a,d,w,A){return a?a(d,w):new po(w,A&&A.markersInheritOptions&&A)}function er(a){return new Mt(a[1],a[0],a[2])}function Gn(a,d,w){for(var bt,A=[],Q=0,xe=a.length;Q<xe;Q++)bt=d?Gn(a[Q],d-1,w):(w||er)(a[Q]),A.push(bt);return A}function Qi(a,d){return void 0!==(a=it(a)).alt?[re(a.lng,d),re(a.lat,d),re(a.alt,d)]:[re(a.lng,d),re(a.lat,d)]}function vr(a,d,w,A){for(var Q=[],xe=0,bt=a.length;xe<bt;xe++)Q.push(d?vr(a[xe],hi(a[xe])?0:d-1,w,A):Qi(a[xe],A));return!d&&w&&Q.length>0&&Q.push(Q[0].slice()),Q}function Kr(a,d){return a.feature?s({},a.feature,{geometry:d}):Wr(d)}function Wr(a){return"Feature"===a.type||"FeatureCollection"===a.type?a:{type:"Feature",properties:{},geometry:a}}var us={toGeoJSON:function(a){return Kr(this,{type:"Point",coordinates:Qi(this.getLatLng(),a)})}};function rs(a,d){return new In(a,d)}po.include(us),He.include(us),F.include(us),Et.include({toGeoJSON:function(a){var d=!hi(this._latlngs);return Kr(this,{type:(d?"Multi":"")+"LineString",coordinates:vr(this._latlngs,d?1:0,!1,a)})}}),Kt.include({toGeoJSON:function(a){var d=!hi(this._latlngs),w=d&&!hi(this._latlngs[0]),A=vr(this._latlngs,w?2:d?1:0,!0,a);return d||(A=[A]),Kr(this,{type:(w?"Multi":"")+"Polygon",coordinates:A})}}),Js.include({toMultiPoint:function(a){var d=[];return this.eachLayer(function(w){d.push(w.toGeoJSON(a).geometry.coordinates)}),Kr(this,{type:"MultiPoint",coordinates:d})},toGeoJSON:function(a){var d=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===d)return this.toMultiPoint(a);var w="GeometryCollection"===d,A=[];return this.eachLayer(function(Q){if(Q.toGeoJSON){var xe=Q.toGeoJSON(a);if(w)A.push(xe.geometry);else{var bt=Wr(xe);"FeatureCollection"===bt.type?A.push.apply(A,bt.features):A.push(bt)}}}),w?Kr(this,{geometries:A,type:"GeometryCollection"}):{type:"FeatureCollection",features:A}}});var es=rs,Zr=fr.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(a,d,w){this._url=a,this._bounds=Dt(d),ke(this,w)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(_i(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ar(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(a){return this.options.opacity=a,this._image&&this._updateOpacity(),this},setStyle:function(a){return a.opacity&&this.setOpacity(a.opacity),this},bringToFront:function(){return this._map&&Ps(this._image),this},bringToBack:function(){return this._map&&Ds(this._image),this},setUrl:function(a){return this._url=a,this._image&&(this._image.src=a),this},setBounds:function(a){return this._bounds=Dt(a),this._map&&this._reset(),this},getEvents:function(){var a={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(a.zoomanim=this._animateZoom),a},setZIndex:function(a){return this.options.zIndex=a,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var a="IMG"===this._url.tagName,d=this._image=a?this._url:or("img");_i(d,"leaflet-image-layer"),this._zoomAnimated&&_i(d,"leaflet-zoom-animated"),this.options.className&&_i(d,this.options.className),d.onselectstart=_e,d.onmousemove=_e,d.onload=k(this.fire,this,"load"),d.onerror=k(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(d.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),a?this._url=d.src:(d.src=this._url,d.alt=this.options.alt)},_animateZoom:function(a){var d=this._map.getZoomScale(a.zoom),w=this._map._latLngBoundsToNewLayerBounds(this._bounds,a.zoom,a.center).min;Fi(this._image,w,d)},_reset:function(){var a=this._image,d=new Bn(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),w=d.getSize();oi(a,d.min),a.style.width=w.x+"px",a.style.height=w.y+"px"},_updateOpacity:function(){cn(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&null!=this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var a=this.options.errorOverlayUrl;a&&this._url!==a&&(this._url=a,this._image.src=a)},getCenter:function(){return this._bounds.getCenter()}}),Or=Zr.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var a="VIDEO"===this._url.tagName,d=this._image=a?this._url:or("video");if(_i(d,"leaflet-image-layer"),this._zoomAnimated&&_i(d,"leaflet-zoom-animated"),this.options.className&&_i(d,this.options.className),d.onselectstart=_e,d.onmousemove=_e,d.onloadeddata=k(this.fire,this,"load"),a){for(var w=d.getElementsByTagName("source"),A=[],Q=0;Q<w.length;Q++)A.push(w[Q].src);this._url=w.length>0?A:[d.src]}else{Te(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(d.style,"objectFit")&&(d.style.objectFit="fill"),d.autoplay=!!this.options.autoplay,d.loop=!!this.options.loop,d.muted=!!this.options.muted,d.playsInline=!!this.options.playsInline;for(var xe=0;xe<this._url.length;xe++){var bt=or("source");bt.src=this._url[xe],d.appendChild(bt)}}}});var Xs=Zr.extend({_initImage:function(){var a=this._image=this._url;_i(a,"leaflet-image-layer"),this._zoomAnimated&&_i(a,"leaflet-zoom-animated"),this.options.className&&_i(a,this.options.className),a.onselectstart=_e,a.onmousemove=_e}});var Sr=fr.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(a,d){a&&(a instanceof Mt||Te(a))?(this._latlng=it(a),ke(this,d)):(ke(this,a),this._source=d),this.options.content&&(this._content=this.options.content)},openOn:function(a){return(a=arguments.length?a:this._source._map).hasLayer(this)||a.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(a){return this._map?this.close():(arguments.length?this._source=a:a=this._source,this._prepareOpen(),this.openOn(a._map)),this},onAdd:function(a){this._zoomAnimated=a._zoomAnimated,this._container||this._initLayout(),a._fadeAnimated&&cn(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),a._fadeAnimated&&cn(this._container,1),this.bringToFront(),this.options.interactive&&(_i(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(a){a._fadeAnimated?(cn(this._container,0),this._removeTimeout=setTimeout(k(ar,void 0,this._container),200)):ar(this._container),this.options.interactive&&(Nt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(a){return this._latlng=it(a),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(a){return this._content=a,this.update(),this},getElement:function(){return this._container},update:function(){!this._map||(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var a={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(a.zoomanim=this._animateZoom),a},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Ps(this._container),this},bringToBack:function(){return this._map&&Ds(this._container),this},_prepareOpen:function(a){var d=this._source;if(!d._map)return!1;if(d instanceof ls){d=null;var w=this._source._layers;for(var A in w)if(w[A]._map){d=w[A];break}if(!d)return!1;this._source=d}if(!a)if(d.getCenter)a=d.getCenter();else if(d.getLatLng)a=d.getLatLng();else{if(!d.getBounds)throw new Error("Unable to get source layer LatLng.");a=d.getBounds().getCenter()}return this.setLatLng(a),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var a=this._contentNode,d="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof d)a.innerHTML=d;else{for(;a.hasChildNodes();)a.removeChild(a.firstChild);a.appendChild(d)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var a=this._map.latLngToLayerPoint(this._latlng),d=Mn(this.options.offset),w=this._getAnchor();this._zoomAnimated?oi(this._container,a.add(w)):d=d.add(a).add(w);var A=this._containerBottom=-d.y,Q=this._containerLeft=-Math.round(this._containerWidth/2)+d.x;this._container.style.bottom=A+"px",this._container.style.left=Q+"px"}},_getAnchor:function(){return[0,0]}});Yi.include({_initOverlay:function(a,d,w,A){var Q=d;return Q instanceof a||(Q=new a(A).setContent(d)),w&&Q.setLatLng(w),Q}}),fr.include({_initOverlay:function(a,d,w,A){var Q=w;return Q instanceof a?(ke(Q,A),Q._source=this):(Q=d&&!A?d:new a(A,this)).setContent(w),Q}});var Hs=Sr.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(a){return!(a=arguments.length?a:this._source._map).hasLayer(this)&&a._popup&&a._popup.options.autoClose&&a.removeLayer(a._popup),a._popup=this,Sr.prototype.openOn.call(this,a)},onAdd:function(a){Sr.prototype.onAdd.call(this,a),a.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof P||this._source.on("preclick",_s))},onRemove:function(a){Sr.prototype.onRemove.call(this,a),a.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof P||this._source.off("preclick",_s))},getEvents:function(){var a=Sr.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(a.preclick=this.close),this.options.keepInView&&
1(a.moveend=this._adjustPan),a},_initLayout:function(){var a="leaflet-popup",d=this._container=or("div",a+" "+(this.options.className||"")+" leaflet-zoom-animated"),w=this._wrapper=or("div",a+"-content-wrapper",d);if(this._contentNode=or("div",a+"-content",w),is(d),Jo(this._contentNode),Ui(d,"contextmenu",_s),this._tipContainer=or("div",a+"-tip-container",d),this._tip=or("div",a+"-tip",this._tipContainer),this.options.closeButton){var A=this._closeButton=or("a",a+"-close-button",d);A.setAttribute("role","button"),A.setAttribute("aria-label","Close popup"),A.href="#close",A.innerHTML='<span aria-hidden="true">×</span>',Ui(A,"click",function(Q){gs(Q),this.close()},this)}},_updateLayout:function(){var a=this._contentNode,d=a.style;d.width="",d.whiteSpace="nowrap";var w=a.offsetWidth;w=Math.min(w,this.options.maxWidth),w=Math.max(w,this.options.minWidth),d.width=w+1+"px",d.whiteSpace="",d.height="";var Q=this.options.maxHeight,xe="leaflet-popup-scrolled";Q&&a.offsetHeight>Q?(d.height=Q+"px",_i(a,xe)):Nt(a,xe),this._containerWidth=this._container.offsetWidth},_animateZoom:function(a){var d=this._map._latLngToNewLayerPoint(this._latlng,a.zoom,a.center),w=this._getAnchor();oi(this._container,d.add(w))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)return void(this._autopanning=!1);var a=this._map,d=parseInt(jr(this._container,"marginBottom"),10)||0,w=this._container.offsetHeight+d,A=this._containerWidth,Q=new en(this._containerLeft,-w-this._containerBottom);Q._add(Gi(this._container));var xe=a.layerPointToContainerPoint(Q),bt=Mn(this.options.autoPanPadding),xt=Mn(this.options.autoPanPaddingTopLeft||bt),Jt=Mn(this.options.autoPanPaddingBottomRight||bt),Sn=a.getSize(),Wt=0,ti=0;xe.x+A+Jt.x>Sn.x&&(Wt=xe.x+A-Sn.x+Jt.x),xe.x-Wt-xt.x<0&&(Wt=xe.x-xt.x),xe.y+w+Jt.y>Sn.y&&(ti=xe.y+w-Sn.y+Jt.y),xe.y-ti-xt.y<0&&(ti=xe.y-xt.y),(Wt||ti)&&(this.options.keepInView&&(this._autopanning=!0),a.fire("autopanstart").panBy([Wt,ti]))}},_getAnchor:function(){return Mn(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Yi.mergeOptions({closePopupOnClick:!0}),Yi.include({openPopup:function(a,d,w){return this._initOverlay(Hs,a,d,w).openOn(this),this},closePopup:function(a){return(a=arguments.length?a:this._popup)&&a.close(),this}}),fr.include({bindPopup:function(a,d){return this._popup=this._initOverlay(Hs,this._popup,a,d),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(a){return this._popup&&(this instanceof ls||(this._popup._source=this),this._popup._prepareOpen(a||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(a){return this._popup&&this._popup.setContent(a),this},getPopup:function(){return this._popup},_openPopup:function(a){if(this._popup&&this._map){Es(a);var d=a.layer||a.target;if(this._popup._source===d&&!(d instanceof P))return void(this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(a.latlng));this._popup._source=d,this.openPopup(a.latlng)}},_movePopup:function(a){this._popup.setLatLng(a.latlng)},_onKeyPress:function(a){13===a.originalEvent.keyCode&&this._openPopup(a)}});var ao=Sr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(a){Sr.prototype.onAdd.call(this,a),this.setOpacity(this.options.opacity),a.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(a){Sr.prototype.onRemove.call(this,a),a.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var a=Sr.prototype.getEvents.call(this);return this.options.permanent||(a.preclick=this.close),a},_initLayout:function(){this._contentNode=this._container=or("div","leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide")),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+C(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(a){var d,w,A=this._map,Q=this._container,xe=A.latLngToContainerPoint(A.getCenter()),bt=A.layerPointToContainerPoint(a),xt=this.options.direction,Jt=Q.offsetWidth,Sn=Q.offsetHeight,Wt=Mn(this.options.offset),ti=this._getAnchor();
vendor: 21,454 bytes, line 1
1"top"===xt?(d=Jt/2,w=Sn):"bottom"===xt?(d=Jt/2,w=0):"center"===xt?(d=Jt/2,w=Sn/2):"right"===xt?(d=0,w=Sn/2):"left"===xt?(d=Jt,w=Sn/2):bt.x<xe.x?(xt="right",d=0,w=Sn/2):(xt="left",d=Jt+2*(Wt.x+ti.x),w=Sn/2),a=a.subtract(Mn(d,w,!0)).add(Wt).add(ti),Nt(Q,"leaflet-tooltip-right"),Nt(Q,"leaflet-tooltip-left"),Nt(Q,"leaflet-tooltip-top"),Nt(Q,"leaflet-tooltip-bottom"),_i(Q,"leaflet-tooltip-"+xt),oi(Q,a)},_updatePosition:function(){var a=this._map.latLngToLayerPoint(this._latlng);this._setPosition(a)},setOpacity:function(a){this.options.opacity=a,this._container&&cn(this._container,a)},_animateZoom:function(a){var d=this._map._latLngToNewLayerPoint(this._latlng,a.zoom,a.center);this._setPosition(d)},_getAnchor:function(){return Mn(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});Yi.include({openTooltip:function(a,d,w){return this._initOverlay(ao,a,d,w).openOn(this),this},closeTooltip:function(a){return a.close(),this}}),fr.include({bindTooltip:function(a,d){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(ao,this._tooltip,a,d),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(a){if(a||!this._tooltipHandlersAdded){var d=a?"off":"on",w={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?w.add=this._openTooltip:(w.mouseover=this._openTooltip,w.mouseout=this.closeTooltip,w.click=this._openTooltip,this._map?this._addFocusListeners():w.add=this._addFocusListeners),this._tooltip.options.sticky&&(w.mousemove=this._moveTooltip),this[d](w),this._tooltipHandlersAdded=!a}},openTooltip:function(a){return this._tooltip&&(this instanceof ls||(this._tooltip._source=this),this._tooltip._prepareOpen(a)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(a){return this._tooltip&&this._tooltip.setContent(a),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(a){var d="function"==typeof a.getElement&&a.getElement();d&&(Ui(d,"focus",function(){this._tooltip._source=a,this.openTooltip()},this),Ui(d,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(a){var d="function"==typeof a.getElement&&a.getElement();d&&d.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(a){if(this._tooltip&&this._map){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var d=this;return void this._map.once("moveend",function(){d._openOnceFlag=!1,d._openTooltip(a)})}this._tooltip._source=a.layer||a.target,this.openTooltip(this._tooltip.options.sticky?a.latlng:void 0)}},_moveTooltip:function(a){var w,A,d=a.latlng;this._tooltip.options.sticky&&a.originalEvent&&(w=this._map.mouseEventToContainerPoint(a.originalEvent),A=this._map.containerPointToLayerPoint(w),d=this._map.layerPointToLatLng(A)),this._tooltip.setLatLng(d)}});var Ei=Eo.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(a){var d=a&&"DIV"===a.tagName?a:document.createElement("div"),w=this.options;if(w.html instanceof Element?(Wi(d),d.appendChild(w.html)):d.innerHTML=!1!==w.html?w.html:"",w.bgPos){var A=Mn(w.bgPos);d.style.backgroundPosition=-A.x+"px "+-A.y+"px"}return this._setIconStyles(d,"icon"),d},createShadow:function(){return null}});Eo.Default=Fo;var Ti=fr.extend({options:{tileSize:256,opacity:1,updateWhenIdle:j.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(a){ke(this,a)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(a){a._addZoomLimit(this)},onRemove:function(a){this._removeAllTiles(),ar(this._container),a._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Ps(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Ds(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(a){return this.options.opacity=a,this._updateOpacity(),this},setZIndex:function(a){return this.options.zIndex=a,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var a=this._clampZoom(this._map.getZoom());a!==this._tileZoom&&(this._tileZoom=a,this._updateLevels()),this._update()}return this},getEvents:function(){var a={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=q(this._onMoveEnd,this.options.updateInterval,this)),a.move=this._onMove),this._zoomAnimated&&(a.zoomanim=this._animateZoom),a},createTile:function(){return document.createElement("div")},getTileSize:function(){var a=this.options.tileSize;return a instanceof en?a:new en(a,a)},_updateZIndex:function(){this._container&&null!=this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(a){for(var xe,d=this.getPane().children,w=-a(-1/0,1/0),A=0,Q=d.length;A<Q;A++)xe=d[A].style.zIndex,d[A]!==this._container&&xe&&(w=a(w,+xe));isFinite(w)&&(this.options.zIndex=w+a(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!j.ielt9){cn(this._container,this.options.opacity);var a=+new Date,d=!1,w=!1;for(var A in this._tiles){var Q=this._tiles[A];if(Q.current&&Q.loaded){var xe=Math.min(1,(a-Q.loaded)/200);cn(Q.el,xe),xe<1?d=!0:(Q.active?w=!0:this._onOpaqueTile(Q),Q.active=!0)}}w&&!this._noPrune&&this._pruneTiles(),d&&(me(this._fadeFrame),this._fadeFrame=Fe(this._updateOpacity,this))}},_onOpaqueTile:_e,_initContainer:function(){this._container||(this._container=or("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var a=this._tileZoom,d=this.options.maxZoom;if(void 0!==a){for(var w in this._levels)w=Number(w),this._levels[w].el.children.length||w===a?(this._levels[w].el.style.zIndex=d-Math.abs(a-w),this._onUpdateLevel(w)):(ar(this._levels[w].el),this._removeTilesAtZoom(w),this._onRemoveLevel(w),delete this._levels[w]);var A=this._levels[a],Q=this._map;return A||((A=this._levels[a]={}).el=or("div","leaflet-tile-container leaflet-zoom-animated",this._container),A.el.style.zIndex=d,A.origin=Q.project(Q.unproject(Q.getPixelOrigin()),a).round(),A.zoom=a,this._setZoomTransform(A,Q.getCenter(),Q.getZoom()),this._onCreateLevel(A)),this._level=A,A}},_onUpdateLevel:_e,_onRemoveLevel:_e,_onCreateLevel:_e,_pruneTiles:function(){if(this._map){var a,d,w=this._map.getZoom();if(w>this.options.maxZoom||w<this.options.minZoom)return void this._removeAllTiles();for(a in this._tiles)(d=this._tiles[a]).retain=d.current;for(a in this._tiles)if((d=this._tiles[a]).current&&!d.active){var A=d.coords;this._retainParent(A.x,A.y,A.z,A.z-5)||this._retainChildren(A.x,A.y,A.z,A.z+2)}for(a in this._tiles)this._tiles[a].retain||this._removeTile(a)}},_removeTilesAtZoom:function(a){for(var d in this._tiles)this._tiles[d].coords.z===a&&this._removeTile(d)},_removeAllTiles:function(){for(var a in this._tiles)this._removeTile(a)},_invalidateAll:function(){for(var a in this._levels)ar(this._levels[a].el),this._onRemoveLevel(Number(a)),delete this._levels[a];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(a,d,w,A){var Q=Math.floor(a/2),xe=Math.floor(d/2),bt=w-1,xt=new en(+Q,+xe);xt.z=+bt;var Jt=this._tileCoordsToKey(xt),Sn=this._tiles[Jt];return Sn&&Sn.active?(Sn.retain=!0,!0):(Sn&&Sn.loaded&&(Sn.retain=!0),bt>A&&this._retainParent(Q,xe,bt,A))},_retainChildren:function(a,d,w,A){for(var Q=2*a;Q<2*a+2;Q++)for(var xe=2*d;xe<2*d+2;xe++){var bt=new en(Q,xe);bt.z=w+1;var xt=this._tileCoordsToKey(bt),Jt=this._tiles[xt];Jt&&Jt.active?Jt.retain=!0:(Jt&&Jt.loaded&&(Jt.retain=!0),w+1<A&&this._retainChildren(Q,xe,w+1,A))}},_resetView:function(a){var d=a&&(a.pinch||a.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),d,d)},_animateZoom:function(a){this._setView(a.center,a.zoom,!0,a.noUpdate)},_clampZoom:function(a){var d=this.options;return void 0!==d.minNativeZoom&&a<d.minNativeZoom?d.minNativeZoom:void 0!==d.maxNativeZoom&&d.maxNativeZoom<a?d.maxNativeZoom:a},_setView:function(a,d,w,A){var Q=Math.round(d);Q=void 0!==this.options.maxZoom&&Q>this.options.maxZoom||void 0!==this.options.minZoom&&Q<this.options.minZoom?void 0:this._clampZoom(Q),(!A||this.options.updateWhenZooming&&Q!==this._tileZoom)&&(this._tileZoom=Q,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==Q&&this._update(a),w||this._pruneTiles(),this._noPrune=!!w),this._setZoomTransforms(a,d)},_setZoomTransforms:function(a,d){for(var w in this._levels)this._setZoomTransform(this._levels[w],a,d)},_setZoomTransform:function(a,d,w){var A=this._map.getZoomScale(w,a.zoom),Q=a.origin.multiplyBy(A).subtract(this._map._getNewPixelOrigin(d,w)).round();j.any3d?Fi(a.el,Q,A):oi(a.el,Q)},_resetGrid:function(){var a=this._map,d=a.options.crs,w=this._tileSize=this.getTileSize(),A=this._tileZoom,Q=this._map.getPixelWorldBounds(this._tileZoom);Q&&(this._globalTileRange=this._pxBoundsToTileRange(Q)),this._wrapX=d.wrapLng&&!this.options.noWrap&&[Math.floor(a.project([0,d.wrapLng[0]],A).x/w.x),Math.ceil(a.project([0,d.wrapLng[1]],A).x/w.y)],this._wrapY=d.wrapLat&&!this.options.noWrap&&[Math.floor(a.project([d.wrapLat[0],0],A).y/w.x),Math.ceil(a.project([d.wrapLat[1],0],A).y/w.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(a){var d=this._map,w=d._animatingZoom?Math.max(d._animateToZoom,d.getZoom()):d.getZoom(),A=d.getZoomScale(w,this._tileZoom),Q=d.project(a,this._tileZoom).floor(),xe=d.getSize().divideBy(2*A);return new Bn(Q.subtract(xe),Q.add(xe))},_update:function(a){var d=this._map;if(d){var w=this._clampZoom(d.getZoom());if(void 0===a&&(a=d.getCenter()),void 0!==this._tileZoom){var A=this._getTiledPixelBounds(a),Q=this._pxBoundsToTileRange(A),xe=Q.getCenter(),bt=[],xt=this.options.keepBuffer,Jt=new Bn(Q.getBottomLeft().subtract([xt,-xt]),Q.getTopRight().add([xt,-xt]));if(!(isFinite(Q.min.x)&&isFinite(Q.min.y)&&isFinite(Q.max.x)&&isFinite(Q.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var Sn in this._tiles){var Wt=this._tiles[Sn].coords;(Wt.z!==this._tileZoom||!Jt.contains(new en(Wt.x,Wt.y)))&&(this._tiles[Sn].current=!1)}if(Math.abs(w-this._tileZoom)>1)return void this._setView(a,w);for(var ti=Q.min.y;ti<=Q.max.y;ti++)for(var Zi=Q.min.x;Zi<=Q.max.x;Zi++){var kr=new en(Zi,ti);if(kr.z=this._tileZoom,this._isValidTile(kr)){var qn=this._tiles[this._tileCoordsToKey(kr)];qn?qn.current=!0:bt.push(kr)}}if(bt.sort(function(lo,ci){return lo.distanceTo(xe)-ci.distanceTo(xe)}),0!==bt.length){this._loading||(this._loading=!0,this.fire("loading"));var yi=document.createDocumentFragment();for(Zi=0;Zi<bt.length;Zi++)this._addTile(bt[Zi],yi);this._level.el.appendChild(yi)}}}},_isValidTile:function(a){var d=this._map.options.crs;if(!d.infinite){var w=this._globalTileRange;if(!d.wrapLng&&(a.x<w.min.x||a.x>w.max.x)||!d.wrapLat&&(a.y<w.min.y||a.y>w.max.y))return!1}if(!this.options.bounds)return!0;var A=this._tileCoordsToBounds(a);return Dt(this.options.bounds).overlaps(A)},_keyToBounds:function(a){return this._tileCoordsToBounds(this._keyToTileCoords(a))},_tileCoordsToNwSe:function(a){var d=this._map,w=this.getTileSize(),A=a.scaleBy(w),Q=A.add(w);return[d.unproject(A,a.z),d.unproject(Q,a.z)]},_tileCoordsToBounds:function(a){var d=this._tileCoordsToNwSe(a),w=new vn(d[0],d[1]);return this.options.noWrap||(w=this._map.wrapLatLngBounds(w)),w},_tileCoordsToKey:function(a){return a.x+":"+a.y+":"+a.z},_keyToTileCoords:function(a){var d=a.split(":"),w=new en(+d[0],+d[1]);return w.z=+d[2],w},_removeTile:function(a){var d=this._tiles[a];!d||(ar(d.el),delete this._tiles[a],this.fire("tileunload",{tile:d.el,coords:this._keyToTileCoords(a)}))},_initTile:function(a){_i(a,"leaflet-tile");var d=this.getTileSize();a.style.width=d.x+"px",a.style.height=d.y+"px",a.onselectstart=_e,a.onmousemove=_e,j.ielt9&&this.options.opacity<1&&cn(a,this.options.opacity)},_addTile:function(a,d){var w=this._getTilePos(a),A=this._tileCoordsToKey(a),Q=this.createTile(this._wrapCoords(a),k(this._tileReady,this,a));this._initTile(Q),this.createTile.length<2&&Fe(k(this._tileReady,this,a,null,Q)),oi(Q,w),this._tiles[A]={el:Q,coords:a,current:!0},d.appendChild(Q),this.fire("tileloadstart",{tile:Q,coords:a})},_tileReady:function(a,d,w){d&&this.fire("tileerror",{error:d,tile:w,coords:a});var A=this._tileCoordsToKey(a);(w=this._tiles[A])&&(w.loaded=+new Date,this._map._fadeAnimated?(cn(w.el,0),me(this._fadeFrame),this._fadeFrame=Fe(this._updateOpacity,this)):(w.active=!0,this._pruneTiles()),d||(_i(w.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:w.el,coords:a})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),j.ielt9||!this._map._fadeAnimated?Fe(this._pruneTiles,this):setTimeout(k(this._pruneTiles,this),250)))},_getTilePos:function(a){return a.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(a){var d=new en(this._wrapX?te(a.x,this._wrapX):a.x,this._wrapY?te(a.y,this._wrapY):a.y);return d.z=a.z,d},_pxBoundsToTileRange:function(a){var d=this.getTileSize();return new Bn(a.min.unscaleBy(d).floor(),a.max.unscaleBy(d).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var a in this._tiles)if(!this._tiles[a].loaded)return!1;return!0}});var bs=Ti.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(a,d){this._url=a,(d=ke(this,d)).detectRetina&&j.retina&&d.maxZoom>0?(d.tileSize=Math.floor(d.tileSize/2),d.zoomReverse?(d.zoomOffset--,d.minZoom=Math.min(d.maxZoom,d.minZoom+1)):(d.zoomOffset++,d.maxZoom=Math.max(d.minZoom,d.maxZoom-1)),d.minZoom=Math.max(0,d.minZoom)):d.zoomReverse?d.minZoom=Math.min(d.maxZoom,d.minZoom):d.maxZoom=Math.max(d.minZoom,d.maxZoom),"string"==typeof d.subdomains&&(d.subdomains=d.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(a,d){return this._url===a&&void 0===d&&(d=!0),this._url=a,d||this.redraw(),this},createTile:function(a,d){var w=document.createElement("img");return Ui(w,"load",k(this._tileOnLoad,this,d,w)),Ui(w,"error",k(this._tileOnError,this,d,w)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(w.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(w.referrerPolicy=this.options.referrerPolicy),w.alt="",w.src=this.getTileUrl(a),w},getTileUrl:function(a){var d={r:j.retina?"@2x":"",s:this._getSubdomain(a),x:a.x,y:a.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var w=this._globalTileRange.max.y-a.y;this.options.tms&&(d.y=w),d["-y"]=w}return $e(this._url,s(d,this.options))},_tileOnLoad:function(a,d){j.ielt9?setTimeout(k(a,this,null,d),0):a(null,d)},_tileOnError:function(a,d,w){var A=this.options.errorTileUrl;A&&d.getAttribute("src")!==A&&(d.src=A),a(w,d)},_onTileRemove:function(a){a.tile.onload=null},_getZoomForUrl:function(){var a=this._tileZoom;return this.options.zoomReverse&&(a=this.options.maxZoom-a),a+this.options.zoomOffset},_getSubdomain:function(a){var d=Math.abs(a.x+a.y)%this.options.subdomains.length;return this.options.subdomains[d]},_abortLoading:function(){var a,d;for(a in this._tiles)if(this._tiles[a].coords.z!==this._tileZoom&&((d=this._tiles[a].el).onload=_e,d.onerror=_e,!d.complete)){d.src=je;var w=this._tiles[a].coords;ar(d),delete this._tiles[a],this.fire("tileabort",{tile:d,coords:w})}},_removeTile:function(a){var d=this._tiles[a];if(d)return d.el.setAttribute("src",je),Ti.prototype._removeTile.call(this,a)},_tileReady:function(a,d,w){if(this._map&&(!w||w.getAttribute("src")!==je))return Ti.prototype._tileReady.call(this,a,d,w)}});function qr(a,d){return new bs(a,d)}var Co=bs.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(a,d){this._url=a;var w=s({},this.defaultWmsParams);for(var A in d)A in this.options||(w[A]=d[A]);var Q=(d=ke(this,d)).detectRetina&&j.retina?2:1,xe=this.getTileSize();w.width=xe.x*Q,w.height=xe.y*Q,this.wmsParams=w},onAdd:function(a){this._crs=this.options.crs||a.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version),this.wmsParams[this._wmsVersion>=1.3?"crs":"srs"]=this._crs.code,bs.prototype.onAdd.call(this,a)},getTileUrl:function(a){var d=this._tileCoordsToNwSe(a),w=this._crs,A=Dn(w.project(d[0]),w.project(d[1])),Q=A.min,xe=A.max,bt=(this._wmsVersion>=1.3&&this._crs===yr?[Q.y,Q.x,xe.y,xe.x]:[Q.x,Q.y,xe.x,xe.y]).join(","),xt=bs.prototype.getTileUrl.call(this,a);return xt+Ze(this.wmsParams,xt,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+bt},setParams:function(a,d){return s(this.wmsParams,a),d||this.redraw(),this}});bs.WMS=Co,qr.wms=function Rr(a,d){return new Co(a,d)};var Ws=fr.extend({options:{padding:.1},initialize:function(a){ke(this,a),C(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),_i(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var a={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(a.zoomanim=this._onAnimZoom),a},_onAnimZoom:function(a){this._updateTransform(a.center,a.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(a,d){var w=this._map.getZoomScale(d,this._zoom),A=this._map.getSize().multiplyBy(.5+this.options.padding),Q=this._map.project(this._center,d),xe=A.multiplyBy(-w).add(Q).subtract(this._map._getNewPixelOrigin(a,d));j.any3d?Fi(this._container,xe,w):oi(this._container,xe)},_reset:function(){for(var a in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[a]._reset()},_onZoomEnd:function(){for(var a in this._layers)this._layers[a]._project()},_updatePaths:function(){for(var a in this._layers)this._layers[a]._update()},_update:function(){var a=this.options.padding,d=this._map.getSize(),w=this._map.containerPointToLayerPoint(d.multiplyBy(-a)).round();this._bounds=new Bn(w,w.add(d.multiplyBy(1+2*a)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),ga=Ws.extend({options:{tolerance:0},getEvents:function(){var a=Ws.prototype.getEvents.call(this);return a.viewprereset=this._onViewPreReset,a},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Ws.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var a=this._container=document.createElement("canvas");Ui(a,"mousemove",this._onMouseMove,this),Ui(a,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Ui(a,"mouseout",this._handleMouseOut,this),a._leaflet_disable_events=!0,this._ctx=a.getContext("2d")},_destroyContainer:function(){me(this._redrawRequest),delete this._ctx,ar(this._container),dr(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var d in this._redrawBounds=null,this._layers)this._layers[d]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Ws.prototype._update.call(this);var a=this._bounds,d=this._container,w=a.getSize(),A=j.retina?2:1;oi(d,a.min),d.width=A*w.x,d.height=A*w.y,d.style.width=w.x+"px",d.style.height=w.y+"px",j.retina&&this._ctx.scale(2,2),this._ctx.translate(-a.min.x,-a.min.y),this.fire("update")}},_reset:function(){Ws.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(a){this._updateDashArray(a),this._layers[C(a)]=a;var d=a._order={layer:a,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=d),this._drawLast=d,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(a){this._requestRedraw(a)},_removePath:function(a){var d=a._order,w=d.next,A=d.prev;w?w.prev=A:this._drawLast=A,A?A.next=w:this._drawFirst=w,delete a._order,delete this._layers[C(a)],this._requestRedraw(a)},_updatePath:function(a){this._extendRedrawBounds(a),a._project(),a._update(),this._requestRedraw(a)},_updateStyle:function(a){this._updateDashArray(a),this._requestRedraw(a)}
vendor: 8,311 bytes, line 1
1,_updateDashArray:function(a){if("string"==typeof a.options.dashArray){var A,Q,d=a.options.dashArray.split(/[, ]+/),w=[];for(Q=0;Q<d.length;Q++){if(A=Number(d[Q]),isNaN(A))return;w.push(A)}a.options._dashArray=w}else a.options._dashArray=a.options.dashArray},_requestRedraw:function(a){!this._map||(this._extendRedrawBounds(a),this._redrawRequest=this._redrawRequest||Fe(this._redraw,this))},_extendRedrawBounds:function(a){if(a._pxBounds){var d=(a.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new Bn,this._redrawBounds.extend(a._pxBounds.min.subtract([d,d])),this._redrawBounds.extend(a._pxBounds.max.add([d,d]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var a=this._redrawBounds;if(a){var d=a.getSize();this._ctx.clearRect(a.min.x,a.min.y,d.x,d.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var a,d=this._redrawBounds;if(this._ctx.save(),d){var w=d.getSize();this._ctx.beginPath(),this._ctx.rect(d.min.x,d.min.y,w.x,w.y),this._ctx.clip()}this._drawing=!0;for(var A=this._drawFirst;A;A=A.next)a=A.layer,(!d||a._pxBounds&&a._pxBounds.intersects(d))&&a._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(a,d){if(this._drawing){var w,A,Q,xe,bt=a._parts,xt=bt.length,Jt=this._ctx;if(xt){for(Jt.beginPath(),w=0;w<xt;w++){for(A=0,Q=bt[w].length;A<Q;A++)Jt[A?"lineTo":"moveTo"]((xe=bt[w][A]).x,xe.y);d&&Jt.closePath()}this._fillStroke(Jt,a)}}},_updateCircle:function(a){if(this._drawing&&!a._empty()){var d=a._point,w=this._ctx,A=Math.max(Math.round(a._radius),1),Q=(Math.max(Math.round(a._radiusY),1)||A)/A;1!==Q&&(w.save(),w.scale(1,Q)),w.beginPath(),w.arc(d.x,d.y/Q,A,0,2*Math.PI,!1),1!==Q&&w.restore(),this._fillStroke(w,a)}},_fillStroke:function(a,d){var w=d.options;w.fill&&(a.globalAlpha=w.fillOpacity,a.fillStyle=w.fillColor||w.color,a.fill(w.fillRule||"evenodd")),w.stroke&&0!==w.weight&&(a.setLineDash&&a.setLineDash(d.options&&d.options._dashArray||[]),a.globalAlpha=w.opacity,a.lineWidth=w.weight,a.strokeStyle=w.color,a.lineCap=w.lineCap,a.lineJoin=w.lineJoin,a.stroke())},_onClick:function(a){for(var w,A,d=this._map.mouseEventToLayerPoint(a),Q=this._drawFirst;Q;Q=Q.next)(w=Q.layer).options.interactive&&w._containsPoint(d)&&("click"!==a.type&&"preclick"!==a.type||!this._map._draggableMoved(w))&&(A=w);this._fireEvent(!!A&&[A],a)},_onMouseMove:function(a){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var d=this._map.mouseEventToLayerPoint(a);this._handleMouseHover(a,d)}},_handleMouseOut:function(a){var d=this._hoveredLayer;d&&(Nt(this._container,"leaflet-interactive"),this._fireEvent([d],a,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(a,d){if(!this._mouseHoverThrottled){for(var w,A,Q=this._drawFirst;Q;Q=Q.next)(w=Q.layer).options.interactive&&w._containsPoint(d)&&(A=w);A!==this._hoveredLayer&&(this._handleMouseOut(a),A&&(_i(this._container,"leaflet-interactive"),this._fireEvent([A],a,"mouseover"),this._hoveredLayer=A)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],a),this._mouseHoverThrottled=!0,setTimeout(k(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(a,d,w){this._map._fireDOMEvent(d,w||d.type,a)},_bringToFront:function(a){var d=a._order;if(d){var w=d.next,A=d.prev;if(!w)return;w.prev=A,A?A.next=w:w&&(this._drawFirst=w),d.prev=this._drawLast,this._drawLast.next=d,d.next=null,this._drawLast=d,this._requestRedraw(a)}},_bringToBack:function(a){var d=a._order;if(d){var w=d.next,A=d.prev;if(!A)return;A.next=w,w?w.prev=A:A&&(this._drawLast=A),d.prev=null,d.next=this._drawFirst,this._drawFirst.prev=d,this._drawFirst=d,this._requestRedraw(a)}}});function ro(a){return j.canvas?new ga(a):null}var Zs=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(a){return document.createElement("<lvml:"+a+' class="lvml">')}}catch(a){}return function(a){return document.createElement("<"+a+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),eo={_initContainer:function(){this._container=or("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Ws.prototype._update.call(this),this.fire("update"))},_initPath:function(a){var d=a._container=Zs("shape");_i(d,"leaflet-vml-shape "+(this.options.className||"")),d.coordsize="1 1",a._path=Zs("path"),d.appendChild(a._path),this._updateStyle(a),this._layers[C(a)]=a},_addPath:function(a){var d=a._container;this._container.appendChild(d),a.options.interactive&&a.addInteractiveTarget(d)},_removePath:function(a){var d=a._container;ar(d),a.removeInteractiveTarget(d),delete this._layers[C(a)]},_updateStyle:function(a){var d=a._stroke,w=a._fill,A=a.options,Q=a._container;Q.stroked=!!A.stroke,Q.filled=!!A.fill,A.stroke?(d||(d=a._stroke=Zs("stroke")),Q.appendChild(d),d.weight=A.weight+"px",d.color=A.color,d.opacity=A.opacity,d.dashStyle=A.dashArray?Te(A.dashArray)?A.dashArray.join(" "):A.dashArray.replace(/( *, *)/g," "):"",d.endcap=A.lineCap.replace("butt","flat"),d.joinstyle=A.lineJoin):d&&(Q.removeChild(d),a._stroke=null),A.fill?(w||(w=a._fill=Zs("fill")),Q.appendChild(w),w.color=A.fillColor||A.color,w.opacity=A.fillOpacity):w&&(Q.removeChild(w),a._fill=null)},_updateCircle:function(a){var d=a._point.round(),w=Math.round(a._radius),A=Math.round(a._radiusY||w);this._setPath(a,a._empty()?"M0 0":"AL "+d.x+","+d.y+" "+w+","+A+" 0,23592600")},_setPath:function(a,d){a._path.v=d},_bringToFront:function(a){Ps(a._container)},_bringToBack:function(a){Ds(a._container)}},Vr=j.vml?Zs:bn,Yo=Ws.extend({_initContainer:function(){this._container=Vr("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Vr("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ar(this._container),dr(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Ws.prototype._update.call(this);var a=this._bounds,d=a.getSize(),w=this._container;(!this._svgSize||!this._svgSize.equals(d))&&(this._svgSize=d,w.setAttribute("width",d.x),w.setAttribute("height",d.y)),oi(w,a.min),w.setAttribute("viewBox",[a.min.x,a.min.y,d.x,d.y].join(" ")),this.fire("update")}},_initPath:function(a){var d=a._path=Vr("path");a.options.className&&_i(d,a.options.className),a.options.interactive&&_i(d,"leaflet-interactive"),this._updateStyle(a),this._layers[C(a)]=a},_addPath:function(a){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(a._path),a.addInteractiveTarget(a._path)},_removePath:function(a){ar(a._path),a.removeInteractiveTarget(a._path),delete this._layers[C(a)]},_updatePath:function(a){a._project(),a._update()},_updateStyle:function(a){var d=a._path,w=a.options;!d||(w.stroke?(d.setAttribute("stroke",w.color),d.setAttribute("stroke-opacity",w.opacity),d.setAttribute("stroke-width",w.weight),d.setAttribute("stroke-linecap",w.lineCap),d.setAttribute("stroke-linejoin",w.lineJoin),w.dashArray?d.setAttribute("stroke-dasharray",w.dashArray):d.removeAttribute("stroke-dasharray"),w.dashOffset?d.setAttribute("stroke-dashoffset",w.dashOffset):d.removeAttribute("stroke-dashoffset")):d.setAttribute("stroke","none"),w.fill?(d.setAttribute("fill",w.fillColor||w.color),d.setAttribute("fill-opacity",w.fillOpacity),d.setAttribute("fill-rule",w.fillRule||"evenodd")):d.setAttribute("fill","none"))},_updatePoly:function(a,d){this._setPath(a,pi(a._parts,d))},_updateCircle:function(a){var d=a._point,w=Math.max(Math.round(a._radius),1),Q="a"+w+","+(Math.max(Math.round(a._radiusY),1)||w)+" 0 1,0 ",xe=a._empty()?"M0 0":"M"+(d.x-w)+","+d.y+Q+2*w+",0 "+Q+2*-w+",0 ";this._setPath(a,xe)},_setPath:function(a,d){a._path.setAttribute("d",d)},_bringToFront:function(a){Ps(a._path)},_bringToBack:function(a){Ds(a._path)}});function ya(a){return j.svg||j.vml?new Yo(a):null}j.vml&&Yo.include(eo),Yi.include({getRenderer:function(a){var d=a.options.renderer||this._getPaneRenderer(a.options.pane)||this.options.renderer||this._renderer;return d||(d=this._renderer=this._createRenderer()),this.hasLayer(d)||this.addLayer(d),d}
vendor: 8,340 bytes, line 1
1,_getPaneRenderer:function(a){if("overlayPane"===a||void 0===a)return!1;var d=this._paneRenderers[a];return void 0===d&&(d=this._createRenderer({pane:a}),this._paneRenderers[a]=d),d},_createRenderer:function(a){return this.options.preferCanvas&&ro(a)||ya(a)}});var cs=Kt.extend({initialize:function(a,d){Kt.prototype.initialize.call(this,this._boundsToLatLngs(a),d)},setBounds:function(a){return this.setLatLngs(this._boundsToLatLngs(a))},_boundsToLatLngs:function(a){return[(a=Dt(a)).getSouthWest(),a.getNorthWest(),a.getNorthEast(),a.getSouthEast()]}});Yo.create=Vr,Yo.pointsToPath=pi,In.geometryToLayer=Di,In.coordsToLatLng=er,In.coordsToLatLngs=Gn,In.latLngToCoords=Qi,In.latLngsToCoords=vr,In.getFeature=Kr,In.asFeature=Wr,Yi.mergeOptions({boxZoom:!0});var Ta=Ne.extend({initialize:function(a){this._map=a,this._container=a._container,this._pane=a._panes.overlayPane,this._resetStateTimeout=0,a.on("unload",this._destroy,this)},addHooks:function(){Ui(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){dr(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ar(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(a){if(!a.shiftKey||1!==a.which&&1!==a.button)return!1;this._clearDeferredResetState(),this._resetState(),Jr(),co(),this._startPoint=this._map.mouseEventToContainerPoint(a),Ui(document,{contextmenu:Es,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(a){this._moved||(this._moved=!0,this._box=or("div","leaflet-zoom-box",this._container),_i(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(a);var d=new Bn(this._point,this._startPoint),w=d.getSize();oi(this._box,d.min),this._box.style.width=w.x+"px",this._box.style.height=w.y+"px"},_finish:function(){this._moved&&(ar(this._box),Nt(this._container,"leaflet-crosshair")),io(),Oo(),dr(document,{contextmenu:Es,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(a){if((1===a.which||1===a.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(k(this._resetState,this),0);var d=new vn(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(d).fire("boxzoomend",{boxZoomBounds:d})}},_onKeyDown:function(a){27===a.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Yi.addInitHook("addHandler","boxZoom",Ta),Yi.mergeOptions({doubleClickZoom:!0});var So=Ne.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(a){var d=this._map,w=d.getZoom(),A=d.options.zoomDelta,Q=a.originalEvent.shiftKey?w-A:w+A;"center"===d.options.doubleClickZoom?d.setZoom(Q):d.setZoomAround(a.containerPoint,Q)}});Yi.addInitHook("addHandler","doubleClickZoom",So),Yi.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Da=Ne.extend({addHooks:function(){if(!this._draggable){var a=this._map;this._draggable=new Ct(a._mapPane,a._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),a.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),a.on("zoomend",this._onZoomEnd,this),a.whenReady(this._onZoomEnd,this))}_i(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Nt(this._map._container,"leaflet-grab"),Nt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var a=this._map;if(a._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var d=Dt(this._map.options.maxBounds);this._offsetLimit=Dn(this._map.latLngToContainerPoint(d.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(d.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;a.fire("movestart").fire("dragstart"),a.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(a){if(this._map.options.inertia){var d=this._lastTime=+new Date,w=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(w),this._times.push(d),this._prunePositions(d)}this._map.fire("move",a).fire("drag",a)},_prunePositions:function(a){for(;this._positions.length>1&&a-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var a=this._map.getSize().divideBy(2),d=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=d.subtract(a).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(a,d){return a-(a-d)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var a=this._draggable._newPos.subtract(this._draggable._startPos),d=this._offsetLimit;a.x<d.min.x&&(a.x=this._viscousLimit(a.x,d.min.x)),a.y<d.min.y&&(a.y=this._viscousLimit(a.y,d.min.y)),a.x>d.max.x&&(a.x=this._viscousLimit(a.x,d.max.x)),a.y>d.max.y&&(a.y=this._viscousLimit(a.y,d.max.y)),this._draggable._newPos=this._draggable._startPos.add(a)}},_onPreDragWrap:function(){var a=this._worldWidth,d=Math.round(a/2),w=this._initialWorldOffset,A=this._draggable._newPos.x,Q=(A-d+w)%a+d-w,xe=(A+d+w)%a-d-w,bt=Math.abs(Q+w)<Math.abs(xe+w)?Q:xe;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=bt},_onDragEnd:function(a){var d=this._map,w=d.options,A=!w.inertia||a.noInertia||this._times.length<2;if(d.fire("dragend",a),A)d.fire("moveend");else{this._prunePositions(+new Date);var Q=this._lastPos.subtract(this._positions[0]),bt=w.easeLinearity,xt=Q.multiplyBy(bt/((this._lastTime-this._times[0])/1e3)),Jt=xt.distanceTo([0,0]),Sn=Math.min(w.inertiaMaxSpeed,Jt),Wt=xt.multiplyBy(Sn/Jt),ti=Sn/(w.inertiaDeceleration*bt),Zi=Wt.multiplyBy(-ti/2).round();Zi.x||Zi.y?(Zi=d._limitOffset(Zi,d.options.maxBounds),Fe(function(){d.panBy(Zi,{duration:ti,easeLinearity:bt,noMoveStart:!0,animate:!0})})):d.fire("moveend")}}});Yi.addInitHook("addHandler","dragging",Da),Yi.mergeOptions({keyboard:!0,keyboardPanDelta:80});var la=Ne.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(a){this._map=a,this._setPanDelta(a.options.keyboardPanDelta),this._setZoomDelta(a.options.zoomDelta)},addHooks:function(){var a=this._map._container;a.tabIndex<=0&&(a.tabIndex="0"),Ui(a,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),dr(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var a=document.body,d=document.documentElement,w=a.scrollTop||d.scrollTop,A=a.scrollLeft||d.scrollLeft;this._map._container.focus(),window.scrollTo(A,w)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(a){var A,Q,d=this._panKeys={},w=this.keyCodes;for(A=0,Q=w.left.length;A<Q;A++)d[w.left[A]]=[-1*a,0];for(A=0,Q=w.right.length;A<Q;A++)d[w.right[A]]=[a,0];for(A=0,Q=w.down.length;A<Q;A++)d[w.down[A]]=[0,a];for(A=0,Q=w.up.length;A<Q;A++)d[w.up[A]]=[0,-1*a]},_setZoomDelta:function(a){var A,Q,d=this._zoomKeys={},w=this.keyCodes;for(A=0,Q=w.zoomIn.length;A<Q;A++)d[w.zoomIn[A]]=a;for(A=0,Q=w.zoomOut.length;A<Q;A++)d[w.zoomOut[A]]=-a},_addHooks:function(){Ui(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){dr(document,"keydown",this._onKeyDown,this)}
vendor: 1,420 bytes, line 1
1,_onKeyDown:function(a){if(!(a.altKey||a.ctrlKey||a.metaKey)){var A,d=a.keyCode,w=this._map;if(d in this._panKeys){if(!w._panAnim||!w._panAnim._inProgress)if(A=this._panKeys[d],a.shiftKey&&(A=Mn(A).multiplyBy(3)),w.options.maxBounds&&(A=w._limitOffset(Mn(A),w.options.maxBounds)),w.options.worldCopyJump){var Q=w.wrapLatLng(w.unproject(w.project(w.getCenter()).add(A)));w.panTo(Q)}else w.panBy(A)}else if(d in this._zoomKeys)w.setZoom(w.getZoom()+(a.shiftKey?3:1)*this._zoomKeys[d]);else{if(27!==d||!w._popup||!w._popup.options.closeOnEscapeKey)return;w.closePopup()}Es(a)}}});Yi.addInitHook("addHandler","keyboard",la),Yi.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Zo=Ne.extend({addHooks:function(){Ui(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){dr(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(a){var d=qs(a),w=this._map.options.wheelDebounceTime;this._delta+=d,this._lastMousePos=this._map.mouseEventToContainerPoint(a),this._startTime||(this._startTime=+new Date);var A=Math.max(w-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(k(this._performZoom,this),A),Es(a)},_performZoom:function(){var a=this._map,d=a.getZoom(),w=this._map.options.zoomSnap||0;a._stop();var Q=4*Math.log(2/(1+Math.exp(-Math.abs(this._delta/(4*this._map.options.wheelPxPerZoomLevel)))))/M
vendor: 4,733 bytes, line 1
1ath.LN2,xe=w?Math.ceil(Q/w)*w:Q,bt=a._limitZoom(d+(this._delta>0?xe:-xe))-d;this._delta=0,this._startTime=null,bt&&("center"===a.options.scrollWheelZoom?a.setZoom(d+bt):a.setZoomAround(this._lastMousePos,d+bt))}});Yi.addInitHook("addHandler","scrollWheelZoom",Zo);Yi.mergeOptions({tapHold:j.touchNative&&j.safari&&j.mobile,tapTolerance:15});var z=Ne.extend({addHooks:function(){Ui(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){dr(this._map._container,"touchstart",this._onDown,this)},_onDown:function(a){if(clearTimeout(this._holdTimeout),1===a.touches.length){var d=a.touches[0];this._startPos=this._newPos=new en(d.clientX,d.clientY),this._holdTimeout=setTimeout(k(function(){this._cancel(),this._isTapValid()&&(Ui(document,"touchend",gs),Ui(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",d))},this),600),Ui(document,"touchend touchcancel contextmenu",this._cancel,this),Ui(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function a(){dr(document,"touchend",gs),dr(document,"touchend touchcancel",a)},_cancel:function(){clearTimeout(this._holdTimeout),dr(document,"touchend touchcancel contextmenu",this._cancel,this),dr(document,"touchmove",this._onMove,this)},_onMove:function(a){var d=a.touches[0];this._newPos=new en(d.clientX,d.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(a,d){var w=new MouseEvent(a,{bubbles:!0,cancelable:!0,view:window,screenX:d.screenX,screenY:d.screenY,clientX:d.clientX,clientY:d.clientY});w._simulated=!0,d.target.dispatchEvent(w)}});Yi.addInitHook("addHandler","tapHold",z),Yi.mergeOptions({touchZoom:j.touch,bounceAtZoomLimits:!0});var H=Ne.extend({addHooks:function(){_i(this._map._container,"leaflet-touch-zoom"),Ui(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Nt(this._map._container,"leaflet-touch-zoom"),dr(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(a){var d=this._map;if(a.touches&&2===a.touches.length&&!d._animatingZoom&&!this._zooming){var w=d.mouseEventToContainerPoint(a.touches[0]),A=d.mouseEventToContainerPoint(a.touches[1]);this._centerPoint=d.getSize()._divideBy(2),this._startLatLng=d.containerPointToLatLng(this._centerPoint),"center"!==d.options.touchZoom&&(this._pinchStartLatLng=d.containerPointToLatLng(w.add(A)._divideBy(2))),this._startDist=w.distanceTo(A),this._startZoom=d.getZoom(),this._moved=!1,this._zooming=!0,d._stop(),Ui(document,"touchmove",this._onTouchMove,this),Ui(document,"touchend touchcancel",this._onTouchEnd,this),gs(a)}},_onTouchMove:function(a){if(a.touches&&2===a.touches.length&&this._zooming){var d=this._map,w=d.mouseEventToContainerPoint(a.touches[0]),A=d.mouseEventToContainerPoint(a.touches[1]),Q=w.distanceTo(A)/this._startDist;if(this._zoom=d.getScaleZoom(Q,this._startZoom),!d.options.bounceAtZoomLimits&&(this._zoom<d.getMinZoom()&&Q<1||this._zoom>d.getMaxZoom()&&Q>1)&&(this._zoom=d._limitZoom(this._zoom)),"center"===d.options.touchZoom){if(this._center=this._startLatLng,1===Q)return}else{var xe=w._add(A)._divideBy(2)._subtract(this._centerPoint);if(1===Q&&0===xe.x&&0===xe.y)return;this._center=d.unproject(d.project(this._pinchStartLatLng,this._zoom).subtract(xe),this._zoom)}this._moved||(d._moveStart(!0,!1),this._moved=!0),me(this._animRequest);var bt=k(d._move,d,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Fe(bt,this,!0),gs(a)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,me(this._animRequest),dr(document,"touchmove",this._onTouchMove,this),dr(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});Yi.addInitHook("addHandler","touchZoom",H),Yi.BoxZoom=Ta,Yi.DoubleClickZoom=So,Yi.Drag=Da,Yi.Keyboard=la,Yi.ScrollWheelZoom=Zo,Yi.TapHold=z,Yi.TouchZoom=H,b.Bounds=Bn,b.Browser=j,b.CRS=At,b.Canvas=ga,b.Circle=He,b.CircleMarker=F,b.Class=Bt,b.Control=Cs,b.DivIcon=Ei,b.DivOverlay=Sr,b.DomEvent=ia,b.DomUtil=ma,b.Draggable=Ct,b.Evented=jn,b.FeatureGroup=ls,b.GeoJSON=In,b.GridLayer=Ti,b.Handler=Ne,b.Icon=Eo,b.ImageOverlay=Zr,b.LatLng=Mt,b.LatLngBounds=vn,b.Layer=fr,b.LayerGroup=Js,b.LineUtil=Qs,b.Map=Yi,b.Marker=po,b.Mixin=le,b.Path=P,b.Point=en,b.PolyUtil=Tr,b.Polygon=Kt,b.Polyline=Et,b.Popup=Hs,b.PosAnimation=Do,b.Projection=qi,b.Rectangle=cs,b.Renderer=Ws,b.SVG=Yo,b.SVGOverlay=Xs,b.TileLayer=bs,b.Tooltip=ao,b.Transformation=ft,b.Util=gt,b.VideoOverlay=Or,b.bind=k,b.bounds=Dn,b.canvas=ro,b.cir
1cle=function dt(a,d,w){return new He(a,d,w)},b.circleMarker=function ce(a,d){return new F(a,d)},b.control=Vs,b.divIcon=function Vi(a){return new Ei(a)},b.extend=s,b.featureGroup=function(a,d){return new ls(a,d)},b.geoJSON=rs,b.geoJson=es,b.gridLayer=function ts(a){return new Ti(a)},b.icon=function No(a){return new Eo(a)},b.imageOverlay=function(a,d,w){return new Zr(a,d,w)},b.latLng=it,b.latLngBounds=Dt,b.layerGroup=function(a,d){return new Js(a,d)},b.map=function gr(a,d){return new Yi(a,d)},b.marker=function Pe(a,d){return new po(a,d)},b.point=Mn,b.polygon=function En(a,d){return new Kt(a,d)},b.polyline=function kt(a,d){return new Et(a,d)},b.popup=function(a,d){return new Hs(a,d)},b.rectangle=function Bo(a,d){return new cs(a,d)},b.setOptions=ke,b.stamp=C,b.svg=ya,b.svgOverlay=function Bs(a,d,w){return new Xs(a,d,w)},b.tileLayer=qr,b.tooltip=function(a,d){return new ao(a,d)},b.transformation=Ut,b.version="1.9.4",b.videoOverlay=function ea(a,d,w){return new Or(a,d,w)};var he=window.L;b.noConflict=function(){return window.L=he,this},window.L=b}(Ue)},7088:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(m){return/^nm$/i.test(m)},meridiem:function(m,k,v){return m<12?v?"vm":"VM":v?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(m){return m+(1===m||8===m||m>=20?"ste":"de")},week:{dow:1,doy:4}})}(b(5439))},2502:function(_t,Ue,b){!function(h){"use strict";var s=function(q){return 0===q?0:1===q?1:2===q?2:q%100>=3&&q%100<=10?3:q%100>=11?4:5},m={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},k=function(q){return function(te,_e,re,we){var be=s(te),ke=m[q][s(te)];return 2===be&&(ke=ke[_e?0:1]),ke.replace(/%d/i,te)}}
vendor: 16,384 bytes, line 1
1,v=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];h.defineLocale("ar-dz",{months:v,monthsShort:v,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(q){return"\u0645"===q},meridiem:function(q,te,_e){return q<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:k("s"),ss:k("s"),m:k("m"),mm:k("m"),h:k("h"),hh:k("h"),d:k("d"),dd:k("d"),M:k("M"),MM:k("M"),y:k("y"),yy:k("y")},postformat:function(q){return q.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(b(5439))},128:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(b(5439))},4519:function(_t,Ue,b){!function(h){"use strict";var s={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},m=function(te){return 0===te?0:1===te?1:2===te?2:te%100>=3&&te%100<=10?3:te%100>=11?4:5},k={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},v=function(te){return function(_e,re,we,be){var ke=m(_e),Ze=k[te][m(_e)];return 2===ke&&(Ze=Ze[re?0:1]),Ze.replace(/%d/i,_e)}},C=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];h.defineLocale("ar-ly",{months:C,monthsShort:C,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(te){return"\u0645"===te},meridiem:function(te,_e,re){return te<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:v("s"),ss:v("s"),m:v("m"),mm:v("m"),h:v("h"),hh:v("h"),d:v("d"),dd:v("d"),M:v("M"),MM:v("M"),y:v("y"),yy:v("y")},preparse:function(te){return te.replace(/\u060c/g,",")},postformat:function(te){return te.replace(/\d/g,function(_e){return s[_e]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(b(5439))},5443:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(b(5439))},4523:function(_t,Ue,b){!function(h){"use strict";var s={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},m={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};h.defineLocale("ar-ps",{months:"\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0651\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0651\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0634\u0631\u064a \u0627\u0644\u0623\u0648\u0651\u0644_\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u0623\u0648\u0651\u0644".split("_"),monthsShort:"\u0643\u0662_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0651\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0651\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0661_\u062a\u0662_\u0643\u0661".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(v){return"\u0645"===v},meridiem:function(v,C,q){return v<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(v){return v.replace(/[\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(C){return m[C]}).split("").reverse().join("").replace(/[\u0661\u0662](?![\u062a\u0643])/g,function(C){return m[C]}).split("").reverse().join("").replace(/\u060c/g,",")},postformat:function(v){return v.replace(/\d/g,function(C){return s[C]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(b(5439))},7642:function(_t,Ue,b){!function(h){"use strict";var s={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},m={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};h.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\
1u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(v){return"\u0645"===v},meridiem:function(v,C,q){return v<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(v){return v.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(C){return m[C]}).replace(/\u060c/g,",")},postformat:function(v){return v.replace(/\d/g,function(C){return s[C]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(b(5439))},8592:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(b(5439))},7038:function(_t,Ue,b){!function(h){"use strict";var s={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},m={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},k=function(_e){return 0===_e?0:1===_e?1:2===_e?2:_e%100>=3&&_e%100<=10?3:_e%100>=11?4:5},v={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},C=function(_e){return function(re,we,be,ke){var Ze=k(re),Ye=v[_e][k(re)];return 2===Ze&&(Ye=Ye[we?0:1]),Ye.replace(/%d/i,re)}},q=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];h.defineLocale("ar",{months:q,monthsShort:q,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(_e){return"\u0645"===_e},meridiem:function(_e,re,we){return _e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:C("s"),ss:C("s"),m:C("m"),mm:C("m"),h:C("h"),hh:C("h"),d:C("d"),dd:C("d"),M:C("M"),MM:C("M"),y:C("y"),yy:C("y")},preparse:function(_e){return _e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(re){return m[re]}).replace(/\u060c/g,",")},postformat:function(_e){return _e.replace(/\d/g,function(re){return s[re]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(b(5439))},1213:function(_t,Ue,b){!function(h){"use strict";var s={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};h.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u
10259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(k){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(k)},meridiem:function(k,v,C){return k<4?"gec\u0259":k<12?"s\u0259h\u0259r":k<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(k){if(0===k)return k+"-\u0131nc\u0131";var v=k%10;return k+(s[v]||s[k%100-v]||s[k>=100?100:null])},week:{dow:1,doy:7}})}(b(5439))},9191:function(_t,Ue,b){!function(h){"use strict";function m(v,C,q){return"m"===q?C?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===q?C?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":v+" "+function s(v,C){var q=v.split("_");return C%10==1&&C%100!=11?q[0]:C%10>=2&&C%10<=4&&(C%100<10||C%100>=20)?q[1]:q[2]}({ss:C?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:C?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:C?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[q],+v)}h.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".
vendor: 7,432 bytes, line 1
1split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m,mm:m,h:m,hh:m,d:"\u0434\u0437\u0435\u043d\u044c",dd:m,M:"\u043c\u0435\u0441\u044f\u0446",MM:m,y:"\u0433\u043e\u0434",yy:m},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(v){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(v)},meridiem:function(v,C,q){return v<4?"\u043d\u043e\u0447\u044b":v<12?"\u0440\u0430\u043d\u0456\u0446\u044b":v<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(v,C){switch(C){case"M":case"d":case"DDD":case"w":case"W":return v%10!=2&&v%10!=3||v%100==12||v%100==13?v+"-\u044b":v+"-\u0456";case"D":return v+"-\u0433\u0430";default:return v}},week:{dow:1,doy:7}})}(b(5439))},322:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(m){var k=m%10,v=m%100;return 0===m?m+"-\u0435\u0432":0===v?m+"-\u0435\u043d":v>10&&v<20?m+"-\u0442\u0438":1===k?m+"-\u0432\u0438":2===k?m+"-\u0440\u0438":7===k||8===k?m+"-\u043c\u0438":m+"-\u0442\u0438"},week:{dow:1,doy:7}})}(b(5439))},8042:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(b(5439))},5903:function(_t,Ue,b){!function(h){"use strict";var s={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},m={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};h.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u
109ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(v){return v.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(C){return m[C]})},postformat:function(v){return v.replace(/\d/g,function(C){return s[C]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(v,C){return 12===v&&(v=0),"\u09b0\u09be\u09a4"===C?v<4?v:v+12:"\u09ad\u09cb\u09b0"===C||"\u09b8\u0995\u09be\u09b2"===C?v:"\u09a6\u09c1\u09aa\u09c1\u09b0"===C?v>=3?v:v+12:"\u09ac\u09bf\u0995\u09be\u09b2"===C||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===C?v+12:void 0},meridiem:function(v,C,q){return v<4?"\u09b0\u09be\u09a4":v<6?"\u09ad\u09cb\u09b0":v<12?"\u09b8\u0995\u09be\u09b2":v<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":v<18?"\u09ac\u09bf\u0995\u09be\u09b2":v<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(b(5439))},9620:function(_t,Ue,b){!function(h){"use strict";var s={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},m={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};h.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u
109ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(v){return v.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(C){return m[C]})},postformat:function(v){return v.replace(/\d/g,function(C){return s[C]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(v,C){return 12===v&&(v=0),"\u09b0\u09be\u09a4"===C&&v>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===C&&v<5||"\u09ac\u09bf\u0995\u09be\u09b2"===C?v+12:v},meridiem:function(v,C,q){return v<4?"\u09b0\u09be\u09a4":v<10?"\u09b8\u0995\u09be\u09b2":v<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":v<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(b(5439))},9645:function(_t,Ue,b){!function(h){"use strict";var s={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},m={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};h.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u
10f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(v){return v.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(C){return m[C]})},postformat:function(v){return v.replace(/\d/g,function(C){return s[C]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(v,C){return 12===v&&(v=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===C&&v>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===C&&v<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===C?v+12:v},meridiem:function(v,C,q){return v<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":v<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":v<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":v<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(b(5439))},5020:function(_t,Ue,b){!function(h){"use strict";function s(Ye,$e,Te){return Ye+" "+function v(Ye,$e){return 2===$e?function C(Ye){var $e={m:"v",b:"v",d:"z"};return void 0===$e[Ye.charAt(0)]?Ye:$e[Ye.charAt(0)]+Ye.substring(1)}(Ye):Ye}({mm:"munutenn",MM:"miz",dd:"devezh"}[Te],Ye)}function k(Ye){return Ye>9?k(Ye%10):Ye}var q=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],te=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,ke=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];h.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:ke,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:ke,monthsRegex:te,monthsShortRegex:te,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:q,longMonthsParse:q,shortMonthsParse:q,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:s,h:"un eur",hh:"%d eur",d:"un devezh",dd:s,M:"ur miz",MM:s,y:"ur bloaz",yy:function m(Ye){switch(k(Ye)){case 1:case 3:case 4:case 5:case 9:return Ye+" bloaz";default:return Ye+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(Ye){return Ye+(1===Ye?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(Ye){return"g.m."===Ye},meridiem:function(Ye,$e,Te){return Ye<12?"a.m.":"g.m."}})}(b(5439))},4792:function(_t,Ue,b){!function(h){"use strict";function m(v,C,q){var te=v+" ";switch(q){case"ss":return te+(1===v?"sekunda":2===v||3===v||4===v?"sekunde":"sekundi");case"mm":return te+(1===v?"minuta":2===v||3===v||4===v?"minute":"minuta");case"h":return"jedan sat";case"hh":return te+(1===v?"sat":2===v||3===v||4===v?"sata":"sati");case"dd":return te+(1===v?"dan":"dana");case"MM":return te+(1===v?"mjesec":2===v||3===v||4===v?"mjeseca":"mjeseci");case"yy":return te+(1===v?"godina":2===v||3===v||4===v?"godine":"godina")}}h.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:m,m:function s(v,C,q,te){if("m"===q)return C?"jedna minuta":te?"jednu minutu":"jedne minute"},mm:m,h:m,hh:m,d:"dan",dd:m,M:"mjesec",MM:m,y:"godinu",yy:m},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(b(5439))},7980:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%
1d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(m,k){var v=1===m?"r":2===m?"n":3===m?"r":4===m?"t":"\xe8";return("w"===k||"W"===k)&&(v="a"),m+v},week:{dow:1,doy:4}})}(b(5439))},7322:function(_t,Ue,b){!function(h){"use strict";var s={standalone:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),format:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},m="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),k=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],v=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function C(_e){return _e>1&&_e<5&&1!=~~(_e/10)}function q(_e,re,we,be){var ke=_e+" ";switch(we){case"s":return re||be?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return re||be?ke+(C(_e)?"sekundy":"sekund"):ke+"sekundami";case"m":return re?"minuta":be?"minutu":"minutou";case"mm":return re||be?ke+(C(_e)?"minuty":"minut"):ke+"minutami";case"h":return re?"hodina":be?"hodinu":"hodinou";case"hh":return re||be?ke+(C(_e)?"hodiny":"hodin"):ke+"hodinami";case"d":return re||be?"den":"dnem";case"dd":return re||be?ke+(C(_e)?"dny":"dn\xed"):ke+"dny";case"M":return re||be?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return re||be?ke+(C(_e)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):ke+"m\u011bs\xedci";case"y":return re||be?"rok":"rokem";case"yy":return re||be?ke+(C(_e)?"roky":"let"):ke+"lety"}}h.defineLocale("cs",{months:s,monthsShort:m,monthsRegex:v,monthsShortRegex:v,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:k,longMonthsParse:k,shortMonthsParse:k,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:q,ss:q,m:q,mm:q,h:q,hh:q,d:q,dd:q,M:q,MM:q,y:q,yy:q},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(5439))},365:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(m){return m+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(m)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(m)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(b(5439))},2092:function(_t,Ue,b){!function(h){"use strict";
vendor: 9,170 bytes, line 1
1h.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(m){var v="";return m>20?v=40===m||50===m||60===m||80===m||100===m?"fed":"ain":m>0&&(v=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][m]),m+v},week:{dow:1,doy:4}})}(b(5439))},7387:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(5439))},9459:function(_t,Ue,b){!function(h){"use strict";function s(k,v,C,q){var te={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[k+" Tage",k+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[k+" Monate",k+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[k+" Jahre",k+" Jahren"]};return v?te[C][0]:te[C][1]}h.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:s,mm:"%d Minuten",h:s,hh:"%d Stunden",d:s,dd:s,w:s,ww:"%d Wochen",M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(5439))},3694:function(_t,Ue,b){!function(h){"use strict";function s(k,v,C,q){var te={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[k+" Tage",k+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[k+" Monate",k+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[k+" Jahre",k+" Jahren"]};return v?te[C][0]:te[C][1]}h.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:s,mm:"%d Minuten",h:s,hh:"%d Stunden",d:s,dd:s,w:s,ww:"%d Wochen",M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(5439))},4307:function(_t,Ue,b){!function(h){"use strict";function s(k,v,C,q){var te={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[k+" Tage",k+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[k+" Monate",k+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[k+" Jahre",k+" Jahren"]};return v?te[C][0]:te[C][1]}h.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:s,mm:"%d Minuten",h:s,hh:"%d Stunden",d:s,dd:s,w:s,ww:"%d Wochen",M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(5439))},9659:function(_t,Ue,b){!function(h){"use strict";var s=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],m=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];h.defineLocale("dv",{months:s,monthsShort:s,weekdays:m,weekdaysShort:m,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(v){return"\u0789\u078a"===v},meridiem:function(v,C,q){return v<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(v){return v.replace(/\u060c/g,",")},postformat:function(v){return v.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(b(5439))},3460:function(_t,Ue,b){!function(h){"use strict";
vendor: 4,738 bytes, line 1
1h.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(k,v){return k?"string"==typeof v&&/D/.test(v.substring(0,v.indexOf("MMMM")))?this._monthsGenitiveEl[k.month()]:this._monthsNominativeEl[k.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(k,v,C){return k>11?C?"\u03bc\u03bc":"\u039c\u039c":C?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(k){return"\u03bc"===(k+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(k,v){var C=this._calendarEl[k],q=v&&v.hours();return function s(k){return"undefined"!=typeof Function&&k instanceof Function||"[object Function]"===Object.prototype.toString.call(k)}(C)&&(C=C.apply(v)),C.replace("{}",q%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(b(5439))},4369:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LT
vendor: 23,503 bytes, line 1
1S:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(m){var k=m%10;return m+(1==~~(m%100/10)?"th":1===k?"st":2===k?"nd":3===k?"rd":"th")},week:{dow:0,doy:4}})}(b(5439))},530:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(m){var k=m%10;return m+(1==~~(m%100/10)?"th":1===k?"st":2===k?"nd":3===k?"rd":"th")}})}(b(5439))},9998:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(m){var k=m%10;return m+(1==~~(m%100/10)?"th":1===k?"st":2===k?"nd":3===k?"rd":"th")},week:{dow:1,doy:4}})}(b(5439))},3391:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(m){var k=m%10;return m+(1==~~(m%100/10)?"th":1===k?"st":2===k?"nd":3===k?"rd":"th")},week:{dow:1,doy:4}})}(b(5439))},5414:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(m){var k=m%10;return m+(1==~~(m%100/10)?"th":1===k?"st":2===k?"nd":3===k?"rd":"th")}})}(b(5439))},9615:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(m){var k=m%10;return m+(1==~~(m%100/10)?"th":1===k?"st":2===k?"nd":3===k?"rd":"th")},week:{dow:0,doy:6}})}(b(5439))},1248:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(m){var k=m%10;return m+(1==~~(m%100/10)?"th":1===k?"st":2===k?"nd":3===k?"rd":"th")},week:{dow:1,doy:4}})}(b(5439))},3767:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(m){var k=m%10;return m+(1==~~(m%100/10)?"th":1===k?"st":2===k?"nd":3===k?"rd":"th")},week:{dow:1,doy:4}})}(b(5439))},4530:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(m){return"p"===m.charAt(0).toLowerCase()},meridiem:function(m,k,v){return m>11?v?"p.t.m.":"P.T.M.":v?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(b(5439))},8944:function(_t,Ue,b){!function(h){"use strict";var s="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),m="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),k=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],v=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;h.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(q,te){return q?/-MMM-/.test(te)?m[q.month()]:s[q.month()]:s},monthsRegex:v,monthsShortRegex:v,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:k,longMonthsParse:k,shortMonthsParse:k,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(b(5439))},9116:function(_t,Ue,b){!function(h){"use strict";var s="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),m="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),k=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],v=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;h.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(q,te){return q?/-MMM-/.test(te)?m[q.month()]:s[q.month()]:s},monthsRegex:v,monthsShortRegex:v,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:k,longMonthsParse:k,shortMonthsParse:k,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(b(5439))},3609:function(_t,Ue,b){!function(h){"use strict";var s="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),m="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),k=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],v=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;h.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(q,te){return q?/-MMM-/.test(te)?m[q.month()]:s[q.month()]:s},monthsRegex:v,monthsShortRegex:v,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:k,longMonthsParse:k,shortMonthsParse:k,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(b(5439))},6866:function(_t,Ue,b){!function(h){"use strict";var s="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),m="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),k=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],v=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;h.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(q,te){return q?/-MMM-/.test(te)?m[q.month()]:s[q.month()]:s},monthsRegex:v,monthsShortRegex:v,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:k,longMonthsParse:k,shortMonthsParse:k,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(b(5439))},6725:function(_t,Ue,b){!function(h){"use strict";function s(k,v,C,q){var te={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[k+"sekundi",k+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[k+" minuti",k+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[k+" tunni",k+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[k+" kuu",k+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[k+" aasta",k+" aastat"]};return v?te[C][2]?te[C][2]:te[C][1]:q?te[C][0]:te[C][1]}h.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:"%d p\xe4eva",M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(5439))},7931:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(b(5439))},6417:function(_t,Ue,b){!function(h){"use strict";var s={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},m={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};h.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(v){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(v)},meridiem:function(v,C,q){return v<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"}
vendor: 13,541 bytes, line 1
1,relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(v){return v.replace(/[\u06f0-\u06f9]/g,function(C){return m[C]}).replace(/\u060c/g,",")},postformat:function(v){return v.replace(/\d/g,function(C){return s[C]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(b(5439))},944:function(_t,Ue,b){!function(h){"use strict";var s="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),m=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",s[7],s[8],s[9]];function k(q,te,_e,re){var we="";switch(_e){case"s":return re?"muutaman sekunnin":"muutama sekunti";case"ss":we=re?"sekunnin":"sekuntia";break;case"m":return re?"minuutin":"minuutti";case"mm":we=re?"minuutin":"minuuttia";break;case"h":return re?"tunnin":"tunti";case"hh":we=re?"tunnin":"tuntia";break;case"d":return re?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":we=re?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return re?"kuukauden":"kuukausi";case"MM":we=re?"kuukauden":"kuukautta";break;case"y":return re?"vuoden":"vuosi";case"yy":we=re?"vuoden":"vuotta"}return function v(q,te){return q<10?te?m[q]:s[q]:q}(q,re)+" "+we}h.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:k,ss:k,m:k,mm:k,h:k,hh:k,d:k,dd:k,M:k,MM:k,y:k,yy:k},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(5439))},1766:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(m){return m},week:{dow:1,doy:4}})}(b(5439))},5867:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(5439))},6848:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(m,k){switch(k){default:case"M":case"Q":case"D":case"DDD":case"d":return m+(1===m?"er":"e");case"w":case"W":return m+(1===m?"re":"e")}}})}(b(5439))},7773:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(m,k){switch(k){default:case"M":case"Q":case"D":case"DDD":case"d":return m+(1===m?"er":"e");case"w":case"W":return m+(1===m?"re":"e")}},week:{dow:1,doy:4}})}(b(5439))},1636:function(_t,Ue,b){!function(h){"use strict";var k=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,v=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];h.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:k,monthsShortRegex:k,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:v,longMonthsParse:v,shortMonthsParse:v,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(q,te){switch(te){case"D":return q+(1===q?"er":"");default:case"M":case"Q":case"DDD":case"d":return q+(1===q?"er":"e");case"w":case"W":return q+(1===q?"re":"e")}},week:{dow:1,doy:4}})}(b(5439))},4940:function(_t,Ue,b){!function(h){"use strict";var s="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),m="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");h.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(v,C){return v?/-MMM-/.test(C)?m[v.month()]:s[v.month()]:s},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(v){return v+(1===v||8===v||v>=20?"ste":"de")},week:{dow:1,doy:4}})}(b(5439))},1402:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(te){return te+(1===te?"d":te%10==2?"na":"mh")},week:{dow:1,doy:4}})}(b(5439))},6924:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(te){return te+(1===te?"d":te%10==2?"na":"mh")},week:{dow:1,doy:4}})}(b(5439))},6398:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".
vendor: 10,822 bytes, line 1
1split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(m){return 0===m.indexOf("un")?"n"+m:"en "+m},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(b(5439))},2457:function(_t,Ue,b){!function(h){"use strict";function s(k,v,C,q){var te={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[k+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",k+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[k+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",k+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[k+" \u0935\u0930\u093e\u0902\u0928\u0940",k+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[k+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",k+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[k+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",k+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[k+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",k+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return q?te[C][0]:te[C][1]}h.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(k,v){return"D"===v?k+"\u0935\u0947\u0930":k},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(k,v){return 12===k&&(k=0),"\u0930\u093e\u0924\u0940"===v?k<4?k:k+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===v?k:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===v?k>12?k:k+12:"\u0938\u093e\u0902\u091c\u0947"===v?k+12:void 0},meridiem:function(k,v,C){return k<4?"\u0930\u093e\u0924\u0940":k<12?"\u0938\u0915\u093e\u0933\u0940\u0902":k<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":k<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(b(5439))},2545:function(_t,Ue,b){!function(h){"use strict";function s(k,v,C,q){var te={s:["thoddea sekondamni","thodde sekond"],ss:[k+" sekondamni",k+" sekond"],m:["eka mintan","ek minut"],mm:[k+" mintamni",k+" mintam"],h:["eka voran","ek vor"],hh:[k+" voramni",k+" voram"],d:["eka disan","ek dis"],dd:[k+" disamni",k+" dis"],M:["eka mhoinean","ek mhoino"],MM:[k+" mhoineamni",k+" mhoine"],y:["eka vorsan","ek voros"],yy:[k+" vorsamni",k+" vorsam"]};return q?te[C][0]:te[C][1]}h.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(k,v){return"D"===v?k+"er":k},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(k,v){return 12===k&&(k=0),"rati"===v?k<4?k:k+12:"sokallim"===v?k:"donparam"===v?k>12?k:k+12:"sanje"===v?k+12:void 0},meridiem:function(k,v,C){return k<4?"rati":k<12?"sokallim":k<16?"donparam":k<20?"sanje":"rati"}})}(b(5439))},2641:function(_t,Ue,b){!function(h){"use strict";var s={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},m={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};h.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%
1d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(v){return v.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(C){return m[C]})},postformat:function(v){return v.replace(/\d/g,function(C){return s[C]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(v,C){return 12===v&&(v=0),"\u0ab0\u0abe\u0aa4"===C?v<4?v:v+12:"\u0ab8\u0ab5\u0abe\u0ab0"===C?v:"\u0aac\u0aaa\u0acb\u0ab0"===C?v>=10?v:v+12:"\u0ab8\u0abe\u0a82\u0a9c"===C?v+12:void 0},meridiem:function(v,C,q){return v<4?"\u0ab0\u0abe\u0aa4":v<10?"\u0ab8\u0ab5\u0abe\u0ab0":v<17?"\u0aac\u0aaa\u0acb\u0ab0":v<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(b(5439))},7536:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u
105d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(m){return 2===m?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":m+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(m){return 2===m?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":m+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(m){return 2===m?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":m+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(m){return 2===m?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":m%10==0&&10!==m?m+" \u05e9\u05e0\u05d4":m+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(m){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(m)},meridiem:function(m,k,v){return m<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":m<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":m<12?v?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":m<18?v?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(b(5439))},6335:function(_t,Ue,b){!function(h){"use strict";var s={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},m={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},k=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];h.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u
10932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:k,longMonthsParse:k,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(q){return q.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(te){return m[te]}
vendor: 14,367 bytes, line 1
1)},postformat:function(q){return q.replace(/\d/g,function(te){return s[te]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(q,te){return 12===q&&(q=0),"\u0930\u093e\u0924"===te?q<4?q:q+12:"\u0938\u0941\u092c\u0939"===te?q:"\u0926\u094b\u092a\u0939\u0930"===te?q>=10?q:q+12:"\u0936\u093e\u092e"===te?q+12:void 0},meridiem:function(q,te,_e){return q<4?"\u0930\u093e\u0924":q<10?"\u0938\u0941\u092c\u0939":q<17?"\u0926\u094b\u092a\u0939\u0930":q<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(b(5439))},7458:function(_t,Ue,b){!function(h){"use strict";function s(k,v,C){var q=k+" ";switch(C){case"ss":return q+(1===k?"sekunda":2===k||3===k||4===k?"sekunde":"sekundi");case"m":return v?"jedna minuta":"jedne minute";case"mm":return q+(1===k?"minuta":2===k||3===k||4===k?"minute":"minuta");case"h":return v?"jedan sat":"jednog sata";case"hh":return q+(1===k?"sat":2===k||3===k||4===k?"sata":"sati");case"dd":return q+(1===k?"dan":"dana");case"MM":return q+(1===k?"mjesec":2===k||3===k||4===k?"mjeseca":"mjeseci");case"yy":return q+(1===k?"godina":2===k||3===k||4===k?"godine":"godina")}}h.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:s,m:s,mm:s,h:s,hh:s,d:"dan",dd:s,M:"mjesec",MM:s,y:"godinu",yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(b(5439))},6540:function(_t,Ue,b){!function(h){"use strict";var s="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function m(C,q,te,_e){var re=C;switch(te){case"s":return _e||q?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return re+(_e||q)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(_e||q?" perc":" perce");case"mm":return re+(_e||q?" perc":" perce");case"h":return"egy"+(_e||q?" \xf3ra":" \xf3r\xe1ja");case"hh":return re+(_e||q?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(_e||q?" nap":" napja");case"dd":return re+(_e||q?" nap":" napja");case"M":return"egy"+(_e||q?" h\xf3nap":" h\xf3napja");case"MM":return re+(_e||q?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(_e||q?" \xe9v":" \xe9ve");case"yy":return re+(_e||q?" \xe9v":" \xe9ve")}return""}function k(C){return(C?"":"[m\xfalt] ")+"["+s[this.day()]+"] LT[-kor]"}h.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(C){return"u"===C.charAt(1).toLowerCase()},meridiem:function(C,q,te){return C<12?!0===te?"de":"DE":!0===te?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return k.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return k.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:m,ss:m,m,mm:m,h:m,hh:m,d:m,dd:m,M:m,MM:m,y:m,yy:m},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(5439))},5283:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(m){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(m)},meridiem:function(m){return m<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":m<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":m<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(m,k){switch(k){case"DDD":case"w":case"W":case"DDDo":return 1===m?m+"-\u056b\u0576":m+"-\u0580\u0564";default:return m}},week:{dow:1,doy:7}})}(b(5439))},8780:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(m,k){return 12===m&&(m=0),"pagi"===k?m:"siang"===k?m>=11?m:m+12:"sore"===k||"malam"===k?m+12:void 0},meridiem:function(m,k,v){return m<11?"pagi":m<15?"siang":m<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(b(5439))},4205:function(_t,Ue,b){!function(h){"use strict";function s(v){return v%100==11||v%10!=1}function m(v,C,q,te){var _e=v+" ";switch(q){case"s":return C||te?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return s(v)?_e+(C||te?"sek\xfandur":"sek\xfandum"):_e+"sek\xfanda";case"m":return C?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return s(v)?_e+(C||te?"m\xedn\xfatur":"m\xedn\xfatum"):C?_e+"m\xedn\xfata":_e+"m\xedn\xfatu";case"hh":return s(v)?_e+(C||te?"klukkustundir":"klukkustundum"):_e+"klukkustund";case"d":return C?"dagur":te?"dag":"degi";case"dd":return s(v)?C?_e+"dagar":_e+(te?"daga":"d\xf6gum"):C?_e+"dagur":_e+(te?"dag":"degi");case"M":return C?"m\xe1nu\xf0ur":te?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return s(v)?C?_e+"m\xe1nu\xf0ir":_e+(te?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):C?_e+"m\xe1nu\xf0ur":_e+(te?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return C||te?"\xe1r":"\xe1ri";case"yy":return s(v)?_e+(C||te?"\xe1r":"\xe1rum"):_e+(C||te?"\xe1r":"\xe1ri")}}h.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:m,ss:m,m,mm:m,h:"klukkustund",hh:m,d:m,dd:m,M:m,MM:m,y:m,yy:m},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(5439))},9985:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(m){return(/^[0-9].+$/.test(m)?"tra":"in")+" "+m},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(b(5439))},4211:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%
1d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(b(5439))},1003:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(m,k){return"\u5143"===k[1]?1:parseInt(k[1]||m,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(m){return"\u5348\u5f8c"===m},meridiem:function(m,k,v){return m<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(m){return m.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(m){return this.week()!==m.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(m,k){switch(k){case"y":return 1===m?"\u5143\u5e74":m+"\u5e74";case"d":case"D":case"DDD":return m+"\u65e5";default:return m}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(b(5439))},420:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(m,k){return 12===m&&(m=0),"enjing"===k?m:"siyang"===k?m>=11?m:m+12:"sonten"===k||"ndalu"===k?m+12:void 0},meridiem:function(m,k,v){return m<11?"enjing":m<15?"siyang":m<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(b(5439))},851:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u
110d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(m){return m.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(k,v,C){return"\u10d8"===C?v+"\u10e8\u10d8":v+C+"\u10e8\u10d8"})},past:function(m){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(m)?m.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(m)?m.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):m},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(m){return 0===m?m:1===m?m+"-\u10da\u10d8":m<20||m<=100&&m%20==0||m%100==0?"\u10db\u10d4-"+m:m+"-\u10d4"},week:{dow:1,doy:7}})}(b(5439))},6074:function(_t,Ue,b){!function(h){"use strict";var s={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};h.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(k){return k+(s[k]||s[k%10]||s[k>=100?100:null])},week:{dow:1,doy:7}})}(b(5439))},3343:function(_t,Ue,b){!function(h){"use strict";var s={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},m={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};h.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u
117a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(v){return"\u179b\u17d2\u1784\u17b6\u1785"===v},meridiem:function(v,C,q){return v<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(v){return v.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(C){return m[C]})},postformat:function(v){return v.replace(/\d/g,function(C){return s[C]})},week:{dow:1,doy:4}})}(b(5439))},4799:function(_t,Ue,b){!function(h){"use strict";var s={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},m={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};h.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%
1d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(v){return v.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(C){return m[C]})},postformat:function(v){return v.replace(/\d/g,function(C){return s[C]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(v,C){return 12===v&&(v=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===C?v<4?v:v+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===C?v:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===C?v>=10?v:v+12:"\u0cb8\u0c82\u0c9c\u0cc6"===C?v+12:void 0},meridiem:function(v,C,q){return v<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":v<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":v<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":v<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(v){return v+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(b(5439))},3549:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(m,k){switch(k){case"d":case"D":case"DDD":return m+"\uc77c";case"M":return m+"\uc6d4";case"w":case"W":return m+"\uc8fc";default:return m}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(m){return"\uc624\ud6c4"===m},meridiem:function(m,k,v){return m<12?"\uc624\uc804":"\uc624\ud6c4"}})}(b(5439))},3775:function(_t,Ue,b){!function(h){"use strict";function s(v,C,q,te){var _e={s:["\xe7end san\xeeye","\xe7end san\xeeyeyan"],ss:[v+" san\xeeye",v+" san\xeeyeyan"],m:["deq\xeeqeyek","deq\xeeqeyek\xea"],mm:[v+" deq\xeeqe",v+" deq\xeeqeyan"],h:["saetek","saetek\xea"],hh:[v+" saet",v+" saetan"],d:["rojek","rojek\xea"],dd:[v+" roj",v+" rojan"],w:["hefteyek","hefteyek\xea"],ww:[v+" hefte",v+" hefteyan"],M:["mehek","mehek\xea"],MM:[v+" meh",v+" mehan"],y:["salek","salek\xea"],yy:[v+" sal",v+" salan"]};return C?_e[q][0]:_e[q][1]}h.defineLocale("ku-kmr",{months:"R\xeabendan_Sibat_Adar_N\xeesan_Gulan_Hez\xeeran_T\xeermeh_Tebax_\xcelon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"R\xeab_Sib_Ada_N\xees_Gul_Hez_T\xeer_Teb_\xcelo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yek\u015fem_Du\u015fem_S\xea\u015fem_\xc7ar\u015fem_P\xeanc\u015fem_\xcen_\u015eem\xee".split("_"),weekdaysShort:"Yek_Du_S\xea_\xc7ar_P\xean_\xcen_\u015eem".split("_"),weekdaysMin:"Ye_Du_S\xea_\xc7a_P\xea_\xcen_\u015ee".split("_"),meridiem:function(v,C,q){return v<12?q?"bn":"BN":q?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[\xcero di saet] LT [de]",nextDay:"[Sib\xea di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a bor\xee di saet] LT [de]",sameElse:"L"}
vendor: 7,479 bytes, line 1
1,relativeTime:{future:"di %s de",past:"ber\xee %s",s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,w:s,ww:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}(?:y\xea|\xea|\.)/,ordinal:function(v,C){var q=C.toLowerCase();return q.includes("w")||q.includes("m")?v+".":v+function m(v){var C=(v=""+v).substring(v.length-1),q=v.length>1?v.substring(v.length-2):"";return 12==q||13==q||"2"!=C&&"3"!=C&&"50"!=q&&"70"!=C&&"80"!=C?"\xea":"y\xea"}(v)},week:{dow:1,doy:4}})}(b(5439))},1037:function(_t,Ue,b){!function(h){"use strict";var s={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},m={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},k=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];h.defineLocale("ku",{months:k,monthsShort:k,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(C){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(C)},meridiem:function(C,q,te){return C<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(C){return C.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(q){return m[q]}).replace(/\u060c/g,",")},postformat:function(C){return C.replace(/\d/g,function(q){return s[q]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(b(5439))},3125:function(_t,Ue,b){!function(h){"use strict";var s={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};h.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(k){return k+(s[k]||s[k%10]||s[k>=100?100:null])},week:{dow:1,doy:7}})}(b(5439))},9586:function(_t,Ue,b){!function(h){"use strict";function s(q,te,_e,re){var we={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return te?we[_e][0]:we[_e][1]}function v(q){if(q=parseInt(q,10),isNaN(q))return!1;if(q<0)return!0;
vendor: 4,674 bytes, line 1
1if(q<10)return 4<=q&&q<=7;if(q<100){var te=q%10;return v(0===te?q/10:te)}if(q<1e4){for(;q>=10;)q/=10;return v(q)}return v(q/=1e3)}h.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function m(q){return v(q.substr(0,q.indexOf(" ")))?"a "+q:"an "+q},past:function k(q){return v(q.substr(0,q.indexOf(" ")))?"viru "+q:"virun "+q},s:"e puer Sekonnen",ss:"%d Sekonnen",m:s,mm:"%d Minutten",h:s,hh:"%d Stonnen",d:s,dd:"%d Deeg",M:s,MM:"%d M\xe9int",y:s,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(5439))},2349:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(m){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===m},meridiem:function(m,k,v){return m<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(m){return"\u0e97\u0eb5\u0ec8"+m}})}(b(5439))},2400:function(_t,Ue,b){!function(h){"use strict";var s={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_die
1n\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function k(_e,re,we,be){return re?C(we)[0]:be?C(we)[1]:C(we)[2]}function v(_e){return _e%10==0||_e>10&&_e<20}function C(_e){return s[_e].split("_")}function q(_e,re,we,be){var ke=_e+" ";return 1===_e?ke+k(0,re,we[0],be):re?ke+(v(_e)?C(we)[1]:C(we)[0]):be?ke+C(we)[1]:ke+(v(_e)?C(we)[1]:C(we)[2])}h.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function m(_e,re,we,be){return re?"kelios sekund\u0117s":be?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:q,m:k,mm:q,h:k,hh:q,d:k,dd:q,M:k,MM:q,y:k,yy:q},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(_e){return _e+"-oji"},week:{dow:1,doy:4}})}(b(5439))},9991:function(_t,Ue,b){!function(h){"use strict";var s={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function m(te,_e,re){return re?_e%10==1&&_e%100!=11?te[2]:te[3]:_e%10==1&&_e%100!=11?te[0]:te[1]}function k(te,_e,re){return te+" "+m(s[re],te,_e)}function v(te,_e,re){return m(s[re],te,_e)}h.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function C(te,_e){return _e?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:k,m:v,mm:k,h:v,hh:k,d:v,dd:k,M:v,MM:k,y:v,yy:k},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(5439))},8477:function(_t,Ue,b){!function(h){"use strict";var s={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(k,v){return 1===k?v[0]:k>=2&&k<=4?v[1]:v[2]},translate:function(k,v,C){var q=s.words[C];return 1===C.length?v?q[0]:q[1]:k+" "+s.correctGrammaticalCase(k,q)}};h.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:s.translate,m:s.translate,mm:s.translate,h:s.translate,hh:s.translate,d:"dan",dd:s.translate,M:"mjesec",MM:s.translate,y:"godinu",yy:s.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(b(5439))},5118:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%
1d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(b(5439))},5943:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(m){var k=m%10,v=m%100;return 0===m?m+"-\u0435\u0432":0===v?m+"-\u0435\u043d":v>10&&v<20?m+"-\u0442\u0438":1===k?m+"-\u0432\u0438":2===k?m+"-\u0440\u0438":7===k||8===k?m+"-\u043c\u0438":m+"-\u0442\u0438"},week:{dow:1,doy:7}})}(b(5439))},3849:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%
1d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(m,k){return 12===m&&(m=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===k&&m>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===k||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===k?m+12:m},meridiem:function(m,k,v){return m<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":m<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":m<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":m<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(b(5439))},1977:function(_t,Ue,b){!function(h){"use strict";function s(k,v,C,q){switch(C){case"s":return v?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return k+(v?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return k+(v?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return k+(v?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return k+(v?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return k+(v?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return k+(v?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return k}}h.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(k){return"\u04ae\u0425"===k}
vendor: 23,278 bytes, line 1
1,meridiem:function(k,v,C){return k<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(k,v){switch(v){case"d":case"D":case"DDD":return k+" \u04e9\u0434\u04e9\u0440";default:return k}}})}(b(5439))},6184:function(_t,Ue,b){!function(h){"use strict";var s={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},m={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function k(C,q,te,_e){var re="";if(q)switch(te){case"s":re="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":re="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":re="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":re="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":re="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":re="%d \u0924\u093e\u0938";break;case"d":re="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":re="%d \u0926\u093f\u0935\u0938";break;case"M":re="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":re="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":re="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":re="%d \u0935\u0930\u094d\u0937\u0947"}else switch(te){case"s":re="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":re="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":re="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":re="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":re="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":re="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":re="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":re="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":re="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":re="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":re="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":re="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return re.replace(/%d/i,C)}h.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:k,ss:k,m:k,mm:k,h:k,hh:k,d:k,dd:k,M:k,MM:k,y:k,yy:k},preparse:function(C){return C.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(q){return m[q]})},postformat:function(C){return C.replace(/\d/g,function(q){return s[q]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(C,q){return 12===C&&(C=0),"\u092a\u0939\u093e\u091f\u0947"===q||"\u0938\u0915\u093e\u0933\u0940"===q?C:"\u0926\u0941\u092a\u093e\u0930\u0940"===q||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===q||"\u0930\u093e\u0924\u094d\u0930\u0940"===q?C>=12?C:C+12:void 0},meridiem:function(C,q,te){return C>=0&&C<6?"\u092a\u0939\u093e\u091f\u0947":C<12?"\u0938\u0915\u093e\u0933\u0940":C<17?"\u0926\u0941\u092a\u093e\u0930\u0940":C<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(b(5439))},4524:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(m,k){return 12===m&&(m=0),"pagi"===k?m:"tengahari"===k?m>=11?m:m+12:"petang"===k||"malam"===k?m+12:void 0},meridiem:function(m,k,v){return m<11?"pagi":m<15?"tengahari":m<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(b(5439))},485:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(m,k){return 12===m&&(m=0),"pagi"===k?m:"tengahari"===k?m>=11?m:m+12:"petang"===k||"malam"===k?m+12:void 0},meridiem:function(m,k,v){return m<11?"pagi":m<15?"tengahari":m<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(b(5439))},6681:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(b(5439))},2024:function(_t,Ue,b){!function(h){"use strict";var s={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},m={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};h.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(v){return v.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(C){return m[C]})},postformat:function(v){return v.replace(/\d/g,function(C){return s[C]})},week:{dow:1,doy:4}})}(b(5439))},2688:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"\xe9n time",hh:"%d timer",d:"\xe9n dag",dd:"%d dager",w:"\xe9n uke",ww:"%d uker",M:"\xe9n m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(5439))},8914:function(_t,Ue,b){!function(h){"use strict";var s={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},m={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};h.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(v){return v.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(C){return m[C]})},postformat:function(v){return v.replace(/\d/g,function(C){return s[C]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(v,C){return 12===v&&(v=0),"\u0930\u093e\u0924\u093f"===C?v<4?v:v+12:"\u092c\u093f\u0939\u093e\u0928"===C?v:"\u0926\u093f\u0909\u0901\u0938\u094b"===C?v>=10?v:v+12:"\u0938\u093e\u0901\u091d"===C?v+12:void 0},meridiem:function(v,C,q){return v<3?"\u0930\u093e\u0924\u093f":v<12?"\u092c\u093f\u0939\u093e\u0928":v<16?"\u0926\u093f\u0909\u0901\u0938\u094b":v<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(b(5439))},2272:function(_t,Ue,b){!function(h){"use strict";var s="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),m="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),k=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],v=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;h.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(q,te){return q?/-MMM-/.test(te)?m[q.month()]:s[q.month()]:s},monthsRegex:v,monthsShortRegex:v,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:k,longMonthsParse:k,shortMonthsParse:k,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(q){return q+(1===q||8===q||q>=20?"ste":"de")},week:{dow:1,doy:4}})}(b(5439))},1758:function(_t,Ue,b){!function(h){"use strict";var s="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),m="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),k=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],v=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;h.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(q,te){return q?/-MMM-/.test(te)?m[q.month()]:s[q.month()]:s},monthsRegex:v,monthsShortRegex:v,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:k,longMonthsParse:k,shortMonthsParse:k,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(q){return q+(1===q||8===q||q>=20?"ste":"de")},week:{dow:1,doy:4}})}(b(5439))},1510:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(5439))},2797:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%
1d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(m,k){var v=1===m?"r":2===m?"n":3===m?"r":4===m?"t":"\xe8";return("w"===k||"W"===k)&&(v="a"),m+v},week:{dow:1,doy:4}})}(b(5439))},7944:function(_t,Ue,b){!function(h){"use strict";var s={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},m={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};h.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(v){return v.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(C){return m[C]})},postformat:function(v){return v.replace(/\d/g,function(C){return s[C]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(v,C){return 12===v&&(v=0),"\u0a30\u0a3e\u0a24"===C?v<4?v:v+12:"\u0a38\u0a35\u0a47\u0a30"===C?v:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===C?v>=10?v:v+12:"\u0a38\u0a3c\u0a3e\u0a2e"===C?v+12:void 0}
vendor: 4,106 bytes, line 1
1,meridiem:function(v,C,q){return v<4?"\u0a30\u0a3e\u0a24":v<10?"\u0a38\u0a35\u0a47\u0a30":v<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":v<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(b(5439))},1605:function(_t,Ue,b){!function(h){"use strict";var s="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),m="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),k=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function v(te){return te%10<5&&te%10>1&&~~(te/10)%10!=1}function C(te,_e,re){var we=te+" ";switch(re){case"ss":return we+(v(te)?"sekundy":"sekund");case"m":return _e?"minuta":"minut\u0119";case"mm":return we+(v(te)?"minuty":"minut");case"h":return _e?"godzina":"godzin\u0119";case"hh":return we+(v(te)?"godziny":"godzin");case"ww":return we+(v(te)?"tygodnie":"tygodni");case"MM":return we+(v(te)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return we+(v(te)?"lata":"lat")}}h.defineLocale("pl",{months:function(te,_e){return te?/D MMMM/.test(_e)?m[te.month()]:s[te.month()]:s},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:k,longMonthsParse:k,shortMonthsParse:k,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:C,m:C,mm:C,h:C,hh:C,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:C,M:"miesi\u0105c",MM:C,y:"rok",yy:C},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(5439))},3840:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(b(5439))},4225:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".
vendor: 8,520 bytes, line 1
1split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(b(5439))},5128:function(_t,Ue,b){!function(h){"use strict";function s(k,v,C){var te=" ";return(k%100>=20||k>=100&&k%100==0)&&(te=" de "),k+te+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[C]}h.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:s,m:"un minut",mm:s,h:"o or\u0103",hh:s,d:"o zi",dd:s,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:s,M:"o lun\u0103",MM:s,y:"un an",yy:s},week:{dow:1,doy:7}})}(b(5439))},5127:function(_t,Ue,b){!function(h){"use strict";function m(C,q,te){return"m"===te?q?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":C+" "+function s(C,q){var te=C.split("_");return q%10==1&&q%100!=11?te[0]:q%10>=2&&q%10<=4&&(q%100<10||q%100>=20)?te[1]:te[2]}({ss:q?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:q?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[te],+C)}var k=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];h.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:k,longMonthsParse:k,shortMonthsParse:k,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u
1043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(C){if(C.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(C){if(C.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:m,m,mm:m,h:"\u0447\u0430\u0441",hh:m,d:"\u0434\u0435\u043d\u044c",dd:m,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:m,M:"\u043c\u0435\u0441\u044f\u0446",MM:m,y:"\u0433\u043e\u0434",yy:m},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(C){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(C)},meridiem:function(C,q,te){return C<4?"\u043d\u043e\u0447\u0438":C<12?"\u0443\u0442\u0440\u0430":C<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(C,q){switch(q){case"M":case"d":case"DDD":return C+"-\u0439";case"D":return C+"-\u0433\u043e";case"w":case"W":return C+"-\u044f";default:return C}},week:{dow:1,doy:4}})}(b(5439))},2525:function(_t,Ue,b){!function(h){"use strict";var s=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],m=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];h.defineLocale("sd",{months:s,monthsShort:s,weekdays:m,weekdaysShort:m,weekdaysMin:m,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(v){return"\u0634\u0627\u0645"===v},meridiem:function(v,C,q){return v<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(v){return v.replace(/\u060c/g,",")},postformat:function(v){return v.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(b(5439))},9893:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(5439))},3123:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(m){return m+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(m){return"\u0db4.\u0dc0."===m||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===m},meridiem:function(m,k,v){return m>
vendor: 13,469 bytes, line 1
111?v?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":v?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(b(5439))},9635:function(_t,Ue,b){!function(h){"use strict";var s="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),m="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function k(q){return q>1&&q<5}function v(q,te,_e,re){var we=q+" ";switch(_e){case"s":return te||re?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return te||re?we+(k(q)?"sekundy":"sek\xfand"):we+"sekundami";case"m":return te?"min\xfata":re?"min\xfatu":"min\xfatou";case"mm":return te||re?we+(k(q)?"min\xfaty":"min\xfat"):we+"min\xfatami";case"h":return te?"hodina":re?"hodinu":"hodinou";case"hh":return te||re?we+(k(q)?"hodiny":"hod\xedn"):we+"hodinami";case"d":return te||re?"de\u0148":"d\u0148om";case"dd":return te||re?we+(k(q)?"dni":"dn\xed"):we+"d\u0148ami";case"M":return te||re?"mesiac":"mesiacom";case"MM":return te||re?we+(k(q)?"mesiace":"mesiacov"):we+"mesiacmi";case"y":return te||re?"rok":"rokom";case"yy":return te||re?we+(k(q)?"roky":"rokov"):we+"rokmi"}}h.defineLocale("sk",{months:s,monthsShort:m,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:v,ss:v,m:v,mm:v,h:v,hh:v,d:v,dd:v,M:v,MM:v,y:v,yy:v},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(5439))},8106:function(_t,Ue,b){!function(h){"use strict";function s(k,v,C,q){var te=k+" ";switch(C){case"s":return v||q?"nekaj sekund":"nekaj sekundami";case"ss":return te+(1===k?v?"sekundo":"sekundi":2===k?v||q?"sekundi":"sekundah":k<5?v||q?"sekunde":"sekundah":"sekund");case"m":return v?"ena minuta":"eno minuto";case"mm":return te+(1===k?v?"minuta":"minuto":2===k?v||q?"minuti":"minutama":k<5?v||q?"minute":"minutami":v||q?"minut":"minutami");case"h":return v?"ena ura":"eno uro";case"hh":return te+(1===k?v?"ura":"uro":2===k?v||q?"uri":"urama":k<5?v||q?"ure":"urami":v||q?"ur":"urami");case"d":return v||q?"en dan":"enim dnem";case"dd":return te+(1===k?v||q?"dan":"dnem":2===k?v||q?"dni":"dnevoma":v||q?"dni":"dnevi");case"M":return v||q?"en mesec":"enim mesecem";case"MM":return te+(1===k?v||q?"mesec":"mesecem":2===k?v||q?"meseca":"mesecema":k<5?v||q?"mesece":"meseci":v||q?"mesecev":"meseci");case"y":return v||q?"eno leto":"enim letom";case"yy":return te+(1===k?v||q?"leto":"letom":2===k?v||q?"leti":"letoma":k<5?v||q?"leta":"leti":v||q?"let":"leti")}}h.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(b(5439))},8799:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(m){return"M"===m.charAt(0)},meridiem:function(m,k,v){return m<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(5439))},2872:function(_t,Ue,b){!function(h){"use strict";var s={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(k,v){return k%10>=1&&k%10<=4&&(k%100<10||k%100>=20)?k%10==1?v[0]:v[1]:v[2]},translate:function(k,v,C,q){var _e,te=s.words[C];return 1===C.length?"y"===C&&v?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":q||v?te[0]:te[1]:(_e=s.correctGrammaticalCase(k,te),"yy"===C&&v&&"\u0433\u043e\u0434\u0438\u043d\u0443"===_e?k+" \u0433\u043e\u0434\u0438\u043d\u0430":k+" "+_e)}};h.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:s.translate,m:s.translate,mm:s.translate,h:s.translate,hh:s.translate,d:s.translate,dd:s.translate,M:s.translate,MM:s.translate,y:s.translate,yy:s.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(b(5439))},7949:function(_t,Ue,b){!function(h){"use strict";var s={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(k,v){return k%10>=1&&k%10<=4&&(k%100<10||k%100>=20)?k%10==1?v[0]:v[1]:v[2]},translate:function(k,v,C,q){var _e,te=s.words[C];return 1===C.length?"y"===C&&v?"jedna godina":q||v?te[0]:te[1]:(_e=s.correctGrammaticalCase(k,te),"yy"===C&&v&&"godinu"===_e?k+" godina":k+" "+_e)}};h.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:s.translate,m:s.translate,mm:s.translate,h:s.translate,hh:s.translate,d:s.translate,dd:s.translate,M:s.translate,MM:s.translate,y:s.translate,yy:s.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(b(5439))},6167:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LT
vendor: 6,568 bytes, line 1
1S:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(m,k,v){return m<11?"ekuseni":m<15?"emini":m<19?"entsambama":"ebusuku"},meridiemHour:function(m,k){return 12===m&&(m=0),"ekuseni"===k?m:"emini"===k?m>=11?m:m+12:"entsambama"===k||"ebusuku"===k?0===m?0:m+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(b(5439))},9713:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(m){var k=m%10;return m+(1==~~(m%100/10)?":e":1===k||2===k?":a":":e")},week:{dow:1,doy:4}})}(b(5439))},1982:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(b(5439))},2732:function(_t,Ue,b){!function(h){"use strict";var s={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},m={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};h.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}
vendor: 19,775 bytes, line 1
1\u0bb5\u0ba4\u0bc1/,ordinal:function(v){return v+"\u0bb5\u0ba4\u0bc1"},preparse:function(v){return v.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(C){return m[C]})},postformat:function(v){return v.replace(/\d/g,function(C){return s[C]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(v,C,q){return v<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":v<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":v<10?" \u0b95\u0bbe\u0bb2\u0bc8":v<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":v<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":v<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(v,C){return 12===v&&(v=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===C?v<2?v:v+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===C||"\u0b95\u0bbe\u0bb2\u0bc8"===C||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===C&&v>=10?v:v+12},week:{dow:0,doy:6}})}(b(5439))},3636:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(m,k){return 12===m&&(m=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===k?m<4?m:m+12:"\u0c09\u0c26\u0c2f\u0c02"===k?m:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===k?m>=10?m:m+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===k?m+12:void 0},meridiem:function(m,k,v){return m<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":m<10?"\u0c09\u0c26\u0c2f\u0c02":m<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":m<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(b(5439))},2115:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(m){var k=m%10;return m+(1==~~(m%100/10)?"th":1===k?"st":2===k?"nd":3===k?"rd":"th")},week:{dow:1,doy:4}})}(b(5439))},9801:function(_t,Ue,b){!function(h){"use strict";var s={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};h.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(k,v){return 12===k&&(k=0),"\u0448\u0430\u0431"===v?k<4?k:k+12:"\u0441\u0443\u0431\u04b3"===v?k:"\u0440\u04ef\u0437"===v?k>=11?k:k+12:"\u0431\u0435\u0433\u043e\u04b3"===v?k+12:void 0},meridiem:function(k,v,C){return k<4?"\u0448\u0430\u0431":k<11?"\u0441\u0443\u0431\u04b3":k<16?"\u0440\u04ef\u0437":k<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(k){return k+(s[k]||s[k%10]||s[k>=100?100:null])},week:{dow:1,doy:7}})}(b(5439))},2868:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(m){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===m},meridiem:function(m,k,v){return m<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(b(5439))},1310:function(_t,Ue,b){!function(h){"use strict";var s={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};h.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(k,v){switch(v){case"d":case"D":case"Do":case"DD":return k;default:if(0===k)return k+"'unjy";var C=k%10;return k+(s[C]||s[k%100-C]||s[k>=100?100:null])}},week:{dow:1,doy:7}})}(b(5439))},2360:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(m){return m},week:{dow:1,doy:4}})}(b(5439))},6645:function(_t,Ue,b){!function(h){"use strict";var s="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function v(te,_e,re,we){var be=function C(te){var _e=Math.floor(te%1e3/100),re=Math.floor(te%100/10),we=te%10,be="";return _e>0&&(be+=s[_e]+"vatlh"),re>0&&(be+=(""!==be?" ":"")+s[re]+"maH"),we>0&&(be+=(""!==be?" ":"")+s[we]),""===be?"pagh":be}(te);switch(re){case"ss":return be+" lup";case"mm":return be+" tup";case"hh":return be+" rep";case"dd":return be+" jaj";case"MM":return be+" jar";case"yy":return be+" DIS"}}h.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function m(te){var _e=te;return-1!==te.indexOf("jaj")?_e.slice(0,-3)+"leS":-1!==te.indexOf("jar")?_e.slice(0,-3)+"waQ":-1!==te.indexOf("DIS")?_e.slice(0,-3)+"nem":_e+" pIq"},past:function k(te){var _e=te;return-1!==te.indexOf("jaj")?_e.slice(0,-3)+"Hu\u2019":-1!==te.indexOf("jar")?_e.slice(0,-3)+"wen":-1!==te.indexOf("DIS")?_e.slice(0,-3)+"ben":_e+" ret"},s:"puS lup",ss:v,m:"wa\u2019 tup",mm:v,h:"wa\u2019 rep",hh:v,d:"wa\u2019 jaj",dd:v,M:"wa\u2019 jar",MM:v,y:"wa\u2019 DIS",yy:v},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(5439))},8374:function(_t,Ue,b){!function(h){"use strict";var s={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};h.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(k,v,C){return k<12?C?"\xf6\xf6":"\xd6\xd6":C?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(k){return"\xf6s"===k||"\xd6S"===k},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(k,v){switch(v){case"d":case"D":case"Do":case"DD":return k;default:if(0===k)return k+"'\u0131nc\u0131";var C=k%10;return k+(s[C]||s[k%100-C]||s[k>=100?100:null])}},week:{dow:1,doy:7}})}(b(5439))},256:function(_t,Ue,b){!function(h){"use strict";function m(k,v,C,q){var te={s:["viensas secunds","'iensas secunds"],ss:[k+" secunds",k+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[k+" m\xeduts",k+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[k+" \xfeoras",k+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[k+" ziuas",k+" ziuas"],M:["'n mes","'iens mes"],MM:[k+" mesen",k+" mesen"],y:["'n ar","'iens ar"],yy:[k+" ars",k+" ars"]};return q||v?te[C][0]:te[C][1]}h.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4t
1s_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(k){return"d'o"===k.toLowerCase()},meridiem:function(k,v,C){return k>11?C?"d'o":"D'O":C?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:m,ss:m,m,mm:m,h:m,hh:m,d:m,dd:m,M:m,MM:m,y:m,yy:m},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(5439))},1631:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4
1wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(b(5439))},1595:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(b(5439))},6050:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(m,k){return 12===m&&(m=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===k||"\u0633\u06d5\u06be\u06d5\u0631"===k||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===k?m:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===k||"\u0643\u06d5\u0686"===k?m+12:m>=11?m:m+12},meridiem:function(m,k,v){var C=100*m+k;return C<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":C<900?"\u0633\u06d5\u06be\u06d5\u0631":C<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":C<1230?"\u0686\u06c8\u0634":C<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%
1d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(m,k){switch(k){case"d":case"D":case"DDD":return m+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return m+"-\u06be\u06d5\u067e\u062a\u06d5";default:return m}},preparse:function(m){return m.replace(/\u060c/g,",")},postformat:function(m){return m.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(b(5439))},5610:function(_t,Ue,b){!function(h){"use strict";function m(q,te,_e){return"m"===_e?te?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===_e?te?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":q+" "+function s(q,te){var _e=q.split("_");return te%10==1&&te%100!=11?_e[0]:te%10>=2&&te%10<=4&&(te%100<10||te%100>=20)?_e[1]:_e[2]}({ss:te?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:te?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:te?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[_e],+q)}function v(q){return function(){return q+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}h.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function k(q,te){var _e={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===q?_e.nominative.slice(1,7).concat(_e.nominative.slice(0,1)):q?_e[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(te)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(te)?"genitive":"nominative"][q.day()]:_e.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:v("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:v("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:v("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:v("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case
vendor: 10,945 bytes, line 1
16:return v("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return v("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:m,m,mm:m,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:m,d:"\u0434\u0435\u043d\u044c",dd:m,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:m,y:"\u0440\u0456\u043a",yy:m},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(q){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(q)},meridiem:function(q,te,_e){return q<4?"\u043d\u043e\u0447\u0456":q<12?"\u0440\u0430\u043d\u043a\u0443":q<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(q,te){switch(te){case"M":case"d":case"DDD":case"w":case"W":return q+"-\u0439";case"D":return q+"-\u0433\u043e";default:return q}},week:{dow:1,doy:7}})}(b(5439))},6077:function(_t,Ue,b){!function(h){"use strict";var s=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],m=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];h.defineLocale("ur",{months:s,monthsShort:s,weekdays:m,weekdaysShort:m,weekdaysMin:m,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(v){return"\u0634\u0627\u0645"===v},meridiem:function(v,C,q){return v<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(v){return v.replace(/\u060c/g,",")},postformat:function(v){return v.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(b(5439))},2207:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(b(5439))},2862:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(b(5439))},8093:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(m){return/^ch$/i.test(m)},meridiem:function(m,k,v){return m<12?v?"sa":"SA":v?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(m){return m},week:{dow:1,doy:4}})}(b(5439))},5590:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(m){var k=m%10;return m+(1==~~(m%100/10)?"th":1===k?"st":2===k?"nd":3===k?"rd":"th")},week:{dow:1,doy:4}})}(b(5439))},9058:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u
11eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(b(5439))},7908:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(m,k){return 12===m&&(m=0),"\u51cc\u6668"===k||"\u65e9\u4e0a"===k||"\u4e0a\u5348"===k?m:"\u4e0b\u5348"===k||"\u665a\u4e0a"===k?m+12:m>=11?m:m+12},meridiem:function(m,k,v){var C=100*m+k;return C<600?"\u51cc\u6668":C<900?"\u65e9\u4e0a":C<1130?"\u4e0a\u5348":C<1230?"\u4e2d\u5348":C<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(m){return m.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(m){return this.week()!==m.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(m,k){switch(k){case"d":case"D":case"DDD":return m+"\u65e5";case"M":return m+"\u6708";case"w":case"W":return m+"\u5468";default:return m}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(b(5439))},8867:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(m,k){return 12===m&&(m=0),"\u51cc\u6668"===k||"\u65e9\u4e0a"===k||"\u4e0a\u5348"===k?m:"\u4e2d\u5348"===k?m>=11?m:m+12:"\u4e0b\u5348"===k||"\u665a\u4e0a"===k?m+12:void 0},meridiem:function(m,k,v){var C=100*m+k;return C<600?"\u51cc\u6668":C<900?"\u65e9\u4e0a":C<1200?"\u4e0a\u5348":1200===C?"\u4e2d\u5348":C<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(m,k){switch(k){case"d":case"D":case"DDD":return m+"\u65e5";case"M":return m+"\u6708";case"w":case"W":return m+"\u9031";default:return m}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(b(5439))},1133:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(m,k){return 12===m&&(m=0),"\u51cc\u6668"===k||"\u65e9\u4e0a"===k||"\u4e0a\u5348"===k?m:"\u4e2d\u5348"===k?m>=11?m:m+12:"\u4e0b\u5348"===k||"\u665a\u4e0a"===k?m+12:void 0},meridiem:function(m,k,v){var C=100*m+k;return C<600?"\u51cc\u6668":C<900?"\u65e9\u4e0a":C<1130?"\u4e0a\u5348":C<1230?"\u4e2d\u5348":C<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(m,k){switch(k){case"d":case"D":case"DDD":return m+"\u65e5";case"M":return m+"\u6708";case"w":case"W":return m+"\u9031";default:return m}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(b(5439))},3291:function(_t,Ue,b){!function(h){"use strict";h.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(m,k){return 12===m&&(m=0),"\u51cc\u6668"===k||"\u65e9\u4e0a"===k||"\u4e0a\u5348"===k?m:"\u4e2d\u5348"===k?m>=11?m:m+12:"\u4e0b\u5348"===k||"\u665a\u4e0a"===k?m+12:void 0},meridiem:function(m,k,v){var C=100*m+k;return C<600?"\u51cc\u6668":C<900?"\u65e9\u4e0a":C<1130?"\u4e0a\u5348":C<1230?"\u4e2d\u5348":C<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(m,k){switch(k){case"d":case"D":case"DDD":return m+"\u65e5";case"M":return m+"\u6708";case"w":case"W":return m+"\u9031";default:return m}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(b(5439))},5439:function(_t,Ue,b){(_t=b.nmd(_t)).exports=function(){"use strict";var h,$e;function s(){return h.apply(null,arguments)}function k(T){return T instanceof Array||"[object Array]"===Object.prototype.toString.call(T)}function v(T){return null!=T&&"[object Object]"===Object.prototype.toString.call(T)}function C(T,Y){return Object.prototype.hasOwnProperty.call(T,Y)}function q(T){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(T).length;var Y;for(Y in T)if(C(T,Y))return!1;return!0}function te(T){return void 0===T}function _e(T){return"number"==typeof T||"[object Number]"===Object.prototype.toString.call(T)}function re(T){return T instanceof Date||"[object Date]"===Object.prototype.toString.call(T)}function we(T,Y){var ve,se=[],Xe=T.length;for(ve=0;ve<Xe;++ve)se.push(Y(T[ve],ve));return se}
vendor: 17,462 bytes, line 1
1function be(T,Y){for(var se in Y)C(Y,se)&&(T[se]=Y[se]);return C(Y,"toString")&&(T.toString=Y.toString),C(Y,"valueOf")&&(T.valueOf=Y.valueOf),T}function ke(T,Y,se,ve){return ls(T,Y,se,ve,!0).utc()}function Ye(T){return null==T._pf&&(T._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),T._pf}function Te(T){var Y=null,se=!1,ve=T._d&&!isNaN(T._d.getTime());return ve&&(Y=Ye(T),se=$e.call(Y.parsedDateParts,function(Xe){return null!=Xe}),ve=Y.overflow<0&&!Y.empty&&!Y.invalidEra&&!Y.invalidMonth&&!Y.invalidWeekday&&!Y.weekdayMismatch&&!Y.nullInput&&!Y.invalidFormat&&!Y.userInvalidated&&(!Y.meridiem||Y.meridiem&&se),T._strict&&(ve=ve&&0===Y.charsLeftOver&&0===Y.unusedTokens.length&&void 0===Y.bigHour)),null!=Object.isFrozen&&Object.isFrozen(T)?ve:(T._isValid=ve,T._isValid)}function rt(T){var Y=ke(NaN);return null!=T?be(Ye(Y),T):Ye(Y).userInvalidated=!0,Y}$e=Array.prototype.some?Array.prototype.some:function(T){var ve,Y=Object(this),se=Y.length>>>0;for(ve=0;ve<se;ve++)if(ve in Y&&T.call(this,Y[ve],ve,Y))return!0;return!1};var je=s.momentProperties=[],zt=!1;function ut(T,Y){var se,ve,Xe,Rt=je.length;if(te(Y._isAMomentObject)||(T._isAMomentObject=Y._isAMomentObject),te(Y._i)||(T._i=Y._i),te(Y._f)||(T._f=Y._f),te(Y._l)||(T._l=Y._l),te(Y._strict)||(T._strict=Y._strict),te(Y._tzm)||(T._tzm=Y._tzm),te(Y._isUTC)||(T._isUTC=Y._isUTC),te(Y._offset)||(T._offset=Y._offset),te(Y._pf)||(T._pf=Ye(Y)),te(Y._locale)||(T._locale=Y._locale),Rt>0)for(se=0;se<Rt;se++)te(Xe=Y[ve=je[se]])||(T[ve]=Xe);return T}function ze(T){ut(this,T),this._d=new Date(null!=T._d?T._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===zt&&(zt=!0,s.updateOffset(this),zt=!1)}function Re(T){return T instanceof ze||null!=T&&null!=T._isAMomentObject}function tt(T){!1===s.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+T)}function Fe(T,Y){var se=!0;return be(function(){if(null!=s.deprecationHandler&&s.deprecationHandler(null,T),se){var Xe,Rt,ln,ve=[],ui=arguments.length;for(Rt=0;Rt<ui;Rt++){if(Xe="","object"==typeof arguments[Rt]){for(ln in Xe+="\n["+Rt+"] ",arguments[0])C(arguments[0],ln)&&(Xe+=ln+": "+arguments[0][ln]+", ");Xe=Xe.slice(0,-2)}else Xe=arguments[Rt];ve.push(Xe)}tt(T+"\nArguments: "+Array.prototype.slice.call(ve).join("")+"\n"+(new Error).stack),se=!1}return Y.apply(this,arguments)},Y)}var en,me={};function gt(T,Y){null!=s.deprecationHandler&&s.deprecationHandler(T,Y),me[T]||(tt(Y),me[T]=!0)}function Bt(T){return"undefined"!=typeof Function&&T instanceof Function||"[object Function]"===Object.prototype.toString.call(T)}function mn(T,Y){var ve,se=be({},T);for(ve in Y)C(Y,ve)&&(v(T[ve])&&v(Y[ve])?(se[ve]={},be(se[ve],T[ve]),be(se[ve],Y[ve])):null!=Y[ve]?se[ve]=Y[ve]:delete se[ve]);for(ve in T)C(T,ve)&&!C(Y,ve)&&v(T[ve])&&(se[ve]=be({},se[ve]));return se}function jn(T){null!=T&&this.set(T)}s.suppressDeprecationWarnings=!1,s.deprecationHandler=null,en=Object.keys?Object.keys:function(T){var Y,se=[];for(Y in T)C(T,Y)&&se.push(Y);return se};function Bn(T,Y,se){var ve=""+Math.abs(T);return(T>=0?se?"+":"":"-")+Math.pow(10,Math.max(0,Y-ve.length)).toString().substr(1)+ve}var Dn=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,vn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Dt={},Mt={};function it(T,Y,se,ve){var Xe=ve;"string"==typeof ve&&(Xe=function(){return this[ve]()}),T&&(Mt[T]=Xe),Y&&(Mt[Y[0]]=function(){return Bn(Xe.apply(this,arguments),Y[1],Y[2])}),se&&(Mt[se]=function(){return this.localeData().ordinal(Xe.apply(this,arguments),T)})}function At(T){return T.match(/\[[\s\S]/)?T.replace(/^\[|\]$/g,""):T.replace(/\\/g,"")}function st(T,Y){return T.isValid()?(Y=vt(Y,T.localeData()),Dt[Y]=Dt[Y]||function ct(T){var se,ve,Y=T.match(Dn);for(se=0,ve=Y.length;se<ve;se++)Y[se]=Mt[Y[se]]?Mt[Y[se]]:At(Y[se]);return function(Xe){var ln,Rt="";for(ln=0;ln<ve;ln++)Rt+=Bt(Y[ln])?Y[ln].call(Xe,T):Y[ln];return Rt}}(Y),Dt[Y](T)):T.localeData().invalidDate()}function vt(T,Y){var se=5;function ve(Xe){return Y.longDateFormat(Xe)||Xe}for(vn.lastIndex=0;se>=0&&vn.test(T);)T=T.replace(vn,ve),vn.lastIndex=0,se-=1;return T}var Ve={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Pt(T){return"string"==typeof T?Ve[T]||Ve[T.toLowerCase()]:void 0}function $(T){var se,ve,Y={};for(ve in T)C(T,ve)&&(se=Pt(ve))&&(Y[se]=T[ve]);return Y}var ue={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var Ot,ae=/\d/,Me=/\d\d/,nt=/\d{3}/,Tt=/\d{4}/,Zt=/[+-]?\d{6}/,Yt=/\d\d?/,Pn=/\d\d\d\d?/,Cn=/\d\d\d\d\d\d?/,Nn=/\d{1,3}/,Si=/\d{1,4}/,ni=/[+-]?\d{1,6}/,Qn=/\d+/,lt=/[+-]?\d+/,Qt=/Z|[+-]\d\d:?\d\d/gi,Se=/Z|[+-]\d\d(?::?\d\d)?/gi,Ee=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Be=/^[1-9]\d?/,at=/^([1-9]\d|\d)/;function mt(T,Y,se){Ot[T]=Bt(Y)?Y:function(ve,Xe){return ve&&se?se:Y}}function yn(T,Y){return C(Ot,T)?Ot[T](Y._strict,Y._locale):new RegExp(function ei(T){return ht(T.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(Y,se,ve,Xe,Rt){return se||ve||Xe||Rt}))}(T))}function ht(T){return T.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Oe(T){return T<0?Math.ceil(T)||0:Math.floor(T)}function De(T){var Y=+T,se=0;return 0!==Y&&isFinite(Y)&&(se=Oe(Y)),se}Ot={};var U={};function N(T,Y){var se,Xe,ve=Y;for("string"==typeof T&&(T=[T]),_e(Y)&&(ve=function(Rt,ln){ln[Y]=De(Rt)}),Xe=T.length,se=0;se<Xe;se++)U[T[se]]=ve}function x(T,Y){N(T,function(se,ve,Xe,Rt){Xe._w=Xe._w||{},Y(se,Xe._w,Xe,Rt)})}function j(T,Y,se){null!=Y&&C(U,T)&&U[T](Y,se._a,se,T)}function de(T){return T%4==0&&T%100!=0||T%400==0}function qt(T){return de(T)?366:365}it("Y",0,0,function(){var T=this.year();return T<=9999?Bn(T,4):"+"+T}),it(0,["YY",2],0,function(){return this.year()%100}),it(0,["YYYY",4],0,"year"),it(0,["YYYYY",5],0,"year"),it(0,["YYYYYY",6,!0],0,"year"),mt("Y",lt),mt("YY",Yt,Me),mt("YYYY",Si,Tt),mt("YYYYY",ni,Zt),mt("YYYYYY",ni,Zt),N(["YYYYY","YYYYYY"],0),N("YYYY",function(T,Y){Y[0]=2===T.length?s.parseTwoDigitYear(T):De(T)}),N("YY",function(T,Y){Y[0]=s.parseTwoDigitYear(T)}),N("Y",function(T,Y){Y[0]=parseInt(T,10)}),s.parseTwoDigitYear=function(T){return De(T)+(De(T)>68?1900:2e3)};var ki,xn=zn("FullYear",!0);function zn(T,Y){return function(se){return null!=se?(Hi(this,T,se),s.updateOffset(this,Y),this):ai(this,T)}}function ai(T,Y){if(!T.isValid())return NaN;var se=T._d,ve=T._isUTC;switch(Y){case"Milliseconds":return ve?se.getUTCMilliseconds():se.getMilliseconds();case"Seconds":return ve?se.getUTCSeconds():se.getSeconds();case"Minutes":return ve?se.getUTCMinutes():se.getMinutes();case"Hours":return ve?se.getUTCHours():se.getHours();case"Date":return ve?se.getUTCDate():se.getDate();case"Day":return ve?se.getUTCDay():se.getDay();case"Month":return ve?se.getUTCMonth():se.getMonth();case"FullYear":return ve?se.getUTCFullYear():se.getFullYear();default:return NaN}}function Hi(T,Y,se){var ve,Xe,Rt,ln,ui;if(T.isValid()&&!isNaN(se)){switch(ve=T._d,Xe=T._isUTC,Y){case"Milliseconds":return void(Xe?ve.setUTCMilliseconds(se):ve.setMilliseconds(se));case"Seconds":return void(Xe?ve.setUTCSeconds(se):ve.setSeconds(se));case"Minutes":return void(Xe?ve.setUTCMinutes(se):ve.setMinutes(se));case"Hours":return void(Xe?ve.setUTCHours(se):ve.setHours(se));case"Date":return void(Xe?ve.setUTCDate(se):ve.setDate(se));case"FullYear":break;default:return}Rt=se,ln=T.month(),ui=29!==(ui=T.date())||1!==ln||de(Rt)?ui:28,Xe?ve.setUTCFullYear(Rt,ln,ui):ve.setFullYear(Rt,ln,ui)}}function Ur(T,Y){if(isNaN(T)||isNaN(Y))return NaN;var se=function Pr(T,Y){return(T%Y+Y)%Y}(Y,12);return T+=(Y-se)/12,1===se?de(T)?29:28:31-se%7%2}ki=Array.prototype.indexOf?Array.prototype.indexOf:function(T){var Y;for(Y=0;Y<this.length;++Y)if(this[Y]===T)return Y;return-1},it("M",["MM",2],"Mo",function(){return this.month()+1}),it("MMM",0,0,function(T){return this.localeData().monthsShort(this,T)}),it("MMMM",0,0,function(T){return this.localeData().months(this,T)}),mt("M",Yt,Be),mt("MM",Yt,Me),mt("MMM",function(T,Y){return Y.monthsShortRegex(T)}),mt("MMMM",function(T,Y){return Y.monthsRegex(T)}),N(["M","MM"],function(T,Y){Y[1]=De(T)-1}),N(["MMM","MMMM"],function(T,Y,se,ve){var Xe=se._locale.monthsParse(T,ve,se._strict);null!=Xe?Y[1]=Xe:Ye(se).invalidMonth=T});var ms="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ni="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Gr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,jr=Ee,or=Ee;function Ps(T,Y,se){var ve,Xe,Rt,ln=T.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],ve=0;ve<12;++ve)Rt=ke([2e3,ve]),this._shortMonthsParse[ve]=this.monthsShort(Rt,"").toLocaleLowerCase(),this._longMonthsParse[ve]=this.months(Rt,"").toLocaleLowerCase();return se?"MMM"===Y?-1!==(Xe=ki.call(this._shortMonthsParse,ln))?Xe:null:-1!==(Xe=ki.call(this._longMonthsParse,ln))?Xe:null:"MMM"===Y?-1!==(Xe=ki.call(this._shortMonthsParse,ln))||-1!==(Xe=ki.call(this._longMonthsParse,ln))?Xe:null:-1!==(Xe=ki.call(this._longMonthsParse,ln))||-1!==(Xe=ki.call(this._shortMonthsParse,ln))?Xe:null}function Qr(T,Y){if(!T.isValid())return T;if("string"==typeof Y)if(/^\d+$/.test(Y))Y=De(Y);else if(!_e(Y=T.localeData().monthsParse(Y)))return T;var se=Y,ve=T.date();return ve=ve<29?ve:Math.min(ve,Ur(T.year(),se)),T._isUTC?T._d.setUTCMonth(se,ve):T._d.setMonth(se,ve),T}function _i(T){return null!=T?(Qr(this,T),s.updateOffset(this,!0),this):ai(this,"Month")}function cn(){function T(ir,Nr){return Nr.length-ir.length}var Xe,Rt,ln,ui,Y=[],se=[],ve=[];for(Xe=0;Xe<12;Xe++)Rt=ke([2e3,Xe]),ln=ht(this.monthsShort(Rt,"")),ui=ht(this.months(Rt,"")),Y.push(ln),se.push(ui),ve.push(ui),ve.push(ln);Y.sort(T),se.sort(T),ve.sort(T),this._monthsRegex=new RegExp("^("+ve.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+se.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+Y.join("|")+")","i")}function Un(T,Y,se,ve,Xe,Rt,ln){var ui;return T<100&&T>=0?(ui=new Date(T+400,Y,se,ve,Xe,Rt,ln),isFinite(ui.getFullYear())&&ui.setFullYear(T)):ui=new Date(T,Y,se,ve,Xe,Rt,ln),ui}function Mi(T){var Y,se;return T<100&&T>=0?((se=Array.prototype.slice.call(arguments))[0]=T+400,Y=new Date(Date.UTC.apply(null,se)),isFinite(Y.getUTCFullYear())&&Y.setUTCFullYear(T)):Y=new Date(Date.UTC.apply(null,arguments)),Y}function Fi(T,Y,se){var ve=7+Y-se;return-(7+Mi(T,0,ve).getUTCDay()-Y)%7+ve-1}function oi(T,Y,se,ve,Xe){var ir,Nr,ui=1+7*(Y-1)+(7+se-ve)%7+Fi(T,ve,Xe);return ui<=0?Nr=qt(ir=T-1)+ui:ui>qt(T)?(ir=T+1,Nr=ui-qt(T)):(ir=T,Nr=ui),{year:ir,dayOfYear:Nr}}function Gi(T,Y,se){var Rt,ln,ve=Fi(T.year(),Y,se),Xe=Math.floor((T.dayOfYear()-ve-1)/7)+1;return Xe<1?Rt=Xe+Jr(ln=T.year()-1,Y,se):Xe>Jr(T.year(),Y,se)?(Rt=Xe-Jr(T.year(),Y,se),ln=T.year()+1):(ln=T.year(),Rt=Xe),{week:Rt,year:ln}}function Jr(T,Y,se){var ve=Fi(T,Y,se),Xe=Fi(T+1,Y,se);return(qt(T)-ve+Xe)/7}it("w",["ww",2],"wo","week"),it("W",["WW",2],"Wo","isoWeek"),mt("w",Yt,Be),mt("ww",Yt,Me),mt("W",Yt,Be),mt("WW",Yt,Me),x(["w","ww","W","WW"],function(T,Y,se,ve){Y[ve.substr(0,1)]=De(T)});function ws(T,Y){return T.slice(Y,7).concat(T.slice(0,Y))}it("d",0,"do","day"),it("dd",0,0,function(T){return this.localeData().weekdaysMin(this,T)}),it("ddd",0,0,function(T){return this.localeData().weekdaysShort(this,T)}),it("dddd",0,0,function(T){return this.localeData().weekdays(this,T)}),it("e",0,0,"weekday"),it("E",0,0,"isoWeekday"),mt("d",Yt),mt("e",Yt),mt("E",Yt),mt("dd",function(T,Y){return Y.weekdaysMinRegex(T)}),mt("ddd",function(T,Y){return Y.weekdaysShortRegex(T)}),mt("dddd",function(T,Y){return Y.weekdaysRegex(T)}),x(["dd","ddd","dddd"],function(T,Y,se,ve){var Xe=se._locale.weekdaysParse(T,ve,se._strict);null!=Xe?Y.d=Xe:Ye(se).invalidWeekday=T}),x(["d","e","E"],function(T,Y,se,ve){Y[ve]=De(T)});var Ro="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ks="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ma="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ui=Ee,Ys=Ee,dr=Ee;function vo(T,Y,se){var ve,Xe,Rt,ln=T.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],ve=0;ve<7;++ve)Rt=ke([2e3,1]).day(ve),this._minWeekdaysParse[ve]=this.weekdaysMin(Rt,"").toLocaleLowerCase(),this._shortWeekdaysParse[ve]=this.weekdaysShort(Rt,"").toLocaleLowerCase(),this._weekdaysParse[ve]=this.weekdays(Rt,"").toLocaleLowerCase();return se?"dddd"===Y?-1!==(Xe=ki.call(this._weekdaysParse,ln))?Xe:null:"ddd"===Y?-1!==(Xe=ki.call(this._shortWeekdaysParse,ln))?Xe:null:-1!==(Xe=ki.call(this._minWeekdaysParse,ln))?Xe:null:"dddd"===Y?-1!==(Xe=ki.call(this._weekdaysParse,ln))||-1!==(Xe=ki.call(this._shortWeekdaysParse,ln))||-1!==(Xe=ki.call(this._minWeekdaysParse,ln))?Xe:null:"ddd"===Y?-1!==(Xe=ki.call(this._shortWeekdaysParse,ln))||-1!==(Xe=ki.call(this._weekdaysParse,ln))||-1!==(Xe=ki.call(this._minWeekdaysParse,ln))?Xe:null:-1!==(Xe=ki.call(this._minWeekdaysParse,ln))||-1!==(Xe=ki.call(this._weekdaysParse,ln))||-1!==(Xe=ki.call(this._shortWeekdaysParse,ln))?Xe:null}function _a(){function T(Rs,xs){return xs.length-Rs.length}var Rt,ln,ui,ir,Nr,Y=[],se=[],ve=[],Xe=[];for(Rt=0;Rt<7;Rt++)ln=ke([2e3,1]).day(Rt),ui=ht(this.weekdaysMin(ln,"")),ir=ht(this.weekdaysShort(ln,"")),Nr=ht(this.weekdays(ln,"")),Y.push(ui),se.push(ir),ve.push(Nr),Xe.push(ui),Xe.push(ir),Xe.push(Nr);Y.sort(T),se.sort(T),ve.sort(T),Xe.sort(T),this._weekdaysRegex=new RegExp("^("+Xe.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+ve.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+se.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+Y.join("|")+")","i")}function qs(){return this.hours()%12||12}function ia(T,Y){it(T,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),Y)})}function Do(T,Y){return Y._meridiemParse}it("H",["HH",2],0,"hour"),it("h",["hh",2],0,qs),it("k",["kk",2],0,function bo(){return this.hours()||24}),it("hmm",0,0,function(){return""+qs.apply(this)+Bn(this.minutes(),2)}),it("hmmss",0,0,function(){return""+qs.apply(this)+Bn(this.minutes(),2)+Bn(this.seconds(),2)}),it("Hmm",0,0,function(){return""+this.hours()+Bn(this.minutes(),2)}),it("Hmmss",0,0,function(){return""+this.hours()+Bn(this.minutes(),2)+Bn(this.seconds(),2)}),ia("a",!0),ia("A",!1),mt("a",Do),mt("A",Do),mt("H",Yt,at),mt("h",Yt,Be),mt("k",Yt,Be),mt("HH",Yt,Me),mt("hh",Yt,Me),mt("kk",Yt,Me),mt("hmm",Pn),mt("hmmss",Cn),mt("Hmm",Pn),mt("Hmmss",Cn),N(["H","HH"],3),N(["k","kk"],function(T,Y,se){var ve=De(T);Y[3]=24===ve?0:ve}),N(["a","A"],function(T,Y,se){se._isPm=se._locale.isPM(T),se._meridiem=T}),N(["h","hh"],function(T,Y,se){Y[3]=De(T),Ye(se).bigHour=!0}),N("hmm",function(T,Y,se){var ve=T.length-2;Y[3]=De(T.substr(0,ve)),Y[4]=De(T.substr(ve)),Ye(se).bigHour=!0}),N("hmmss",function(T,Y,se){var ve=T.length-4,Xe=T.length-2;Y[3]=De(T.substr(0,ve)),Y[4]=De(T.substr(ve,2)),Y[5]=De(T.substr(Xe)),Ye(se).bigHour=!0}),N("Hmm",function(T,Y,se){var ve=T.length-2;Y[3]=De(T.substr(0,ve)),Y[4]=De(T.substr(ve))}),N("Hmmss",function(T,Y,se){var ve=T.length-4,Xe=T.length-2;Y[3]=De(T.substr(0,ve)),Y[4]=De(T.substr(ve,2)),Y[5]=De(T.substr(Xe))});var Cs=zn("Hours",!0);var Yr,Ri={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:ms,monthsShort:Ni,week:{dow:0,doy:6},weekdays:Ro,weekdaysMin:ma,weekdaysShort:Ks,meridiemParse:/[ap]\.?m?\.?/i},ri={},xi={};function rr(T,Y){var se,ve=Math.min(T.length,Y.length);for(se=0;se<ve;se+=1)if(T[se]!==Y[se])return se;return ve}function wo(T){return T&&T.toLowerCase().replace("_","-")}function fe(T){var Y=null;if(void 0===ri[T]&&_t&&_t.exports&&function Ir(T){return!(!T||!T.match("^[^/\\\\]*$"))}
vendor: 4,429 bytes, line 1
1(T))try{Y=Yr._abbr,b(6700)("./"+T),Ne(Y)}catch(ve){ri[T]=null}return ri[T]}function Ne(T,Y){var se;return T&&((se=te(Y)?Ct(T):le(T,Y))?Yr=se:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+T+" not found. Did you forget to load it?")),Yr._abbr}function le(T,Y){if(null!==Y){var se,ve=Ri;if(Y.abbr=T,null!=ri[T])gt("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),ve=ri[T]._config;else if(null!=Y.parentLocale)if(null!=ri[Y.parentLocale])ve=ri[Y.parentLocale]._config;else{if(null==(se=fe(Y.parentLocale)))return xi[Y.parentLocale]||(xi[Y.parentLocale]=[]),xi[Y.parentLocale].push({name:T,config:Y}),null;ve=se._config}return ri[T]=new jn(mn(ve,Y)),xi[T]&&xi[T].forEach(function(Xe){le(Xe.name,Xe.config)}),Ne(T),ri[T]}return delete ri[T],null}function Ct(T){var Y;if(T&&T._locale&&T._locale._abbr&&(T=T._locale._abbr),!T)return Yr;if(!k(T)){if(Y=fe(T))return Y;T=[T]}return function Ma(T){for(var se,ve,Xe,Rt,Y=0;Y<T.length;){for(se=(Rt=wo(T[Y]).split("-")).length,ve=(ve=wo(T[Y+1]))?ve.split("-"):null;se>0;){if(Xe=fe(Rt.slice(0,se).join("-")))return Xe;if(ve&&ve.length>=se&&rr(Rt,ve)>=se-1)break;se--}Y++}return Yr}(T)}function hn(T){var Y,se=T._a;return se&&-2===Ye(T).overflow&&(Y=se[1]<0||se[1]>11?1:se[2]<1||se[2]>Ur(se[0],se[1])?2:se[3]<0||se[3]>24||24===se[3]&&(0!==se[4]||0!==se[5]||0!==se[6])?3:se[4]<0||se[4]>59?4:se[5]<0||se[5]>59?5:se[6]<0||se[6]>999?6:-1,Ye(T)._overflowDayOfYear&&(Y<0||Y>2)&&(Y=2),Ye(T)._overflowWeeks&&-1===Y&&(Y=7),Ye(T)._overflowWeekday&&-1===Y&&(Y=8),Ye(T).overflow=Y),T}var li=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Tr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Dr=/Z|[+-]\d\d(?::?\d\d)?/,Xi=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],$i=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Xr=/^\/?Date\((-?\d+)/i,hr=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,as={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ge(T){var Y,se,Rt,ln,ui,ir,ve=T._i,Xe=li.exec(ve)||Tr.exec(ve),Nr=Xi.length,Rs=$i.length;if(Xe){for(Ye(T).iso=!0,Y=0,se=Nr;Y<se;Y++)if(Xi[Y][1].exec(Xe[1])){ln=Xi[Y][0],Rt=!1!==Xi[Y][2];break}if(null==ln)return void(T._isValid=!1);if(Xe[3]){for(Y=0,se=Rs;Y<se;Y++)if($i[Y][1].exec(Xe[3])){ui=(Xe[2]||" ")+$i[Y][0];break}if(null==ui)return void(T._isValid=!1)}if(!Rt&&null!=ui)return void(T._isValid=!1);if(Xe[4]){if(!Dr.exec(Xe[4]))return void(T._isValid=!1);ir="Z"}T._f=ln+(ui||"")+(ir||""),qi(T)}else T._isValid=!1}function J(T){var Y=parseInt(T,10);return Y<=49?2e3+Y:Y<=999?1900+Y:Y}function hi(T){var se,Y=hr.exec(function We(T){return T.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(T._i));if(Y){if(se=function oe(T,Y,se,ve,Xe,Rt){var ln=[J(T),Ni.indexOf(Y),parseInt(se,10),parseInt(ve,10),parseInt(Xe,10)];return Rt&&ln.push(parseInt(Rt,10)),ln}(Y[4],Y[3],Y[2],Y[5],Y[6],Y[7]),!function gn(T,Y,se){return!T||Ks.indexOf(T)===new Date(Y[0],Y[1],Y[2]).getDay()||(Ye(se).weekdayMismatch=!0,se._isValid=!1,!1)}(Y[1],se,T))return;T._a=se,T._tzm=function mi(T,Y,se){if(T)return as[T];if(Y)return 0;var ve=parseInt(se,10),Xe=ve%100;return(ve-Xe)/100*60+Xe}(Y[8],Y[9],Y[10]),T._d=Mi.apply(null,T._a),T._d.setUTCMinutes(T._d.getUTCMinutes()-T._tzm),Ye(T).rfc2822=!0}else T._isValid=!1}function Ss(T,Y,se){return null!=T?T:null!=Y?Y:se}function ks(T){var Y,se,Xe,Rt,ln,ve=[];
vendor: 8,660 bytes, line 1
1if(!T._d){for(Xe=function Qs(T){var Y=new Date(s.now());return T._useUTC?[Y.getUTCFullYear(),Y.getUTCMonth(),Y.getUTCDate()]:[Y.getFullYear(),Y.getMonth(),Y.getDate()]}(T),T._w&&null==T._a[2]&&null==T._a[1]&&function Fn(T){var Y,se,ve,Xe,Rt,ln,ui,ir,Nr;null!=(Y=T._w).GG||null!=Y.W||null!=Y.E?(Rt=1,ln=4,se=Ss(Y.GG,T._a[0],Gi($r(),1,4).year),ve=Ss(Y.W,1),((Xe=Ss(Y.E,1))<1||Xe>7)&&(ir=!0)):(Rt=T._locale._week.dow,ln=T._locale._week.doy,Nr=Gi($r(),Rt,ln),se=Ss(Y.gg,T._a[0],Nr.year),ve=Ss(Y.w,Nr.week),null!=Y.d?((Xe=Y.d)<0||Xe>6)&&(ir=!0):null!=Y.e?(Xe=Y.e+Rt,(Y.e<0||Y.e>6)&&(ir=!0)):Xe=Rt),ve<1||ve>Jr(se,Rt,ln)?Ye(T)._overflowWeeks=!0:null!=ir?Ye(T)._overflowWeekday=!0:(ui=oi(se,ve,Xe,Rt,ln),T._a[0]=ui.year,T._dayOfYear=ui.dayOfYear)}(T),null!=T._dayOfYear&&(ln=Ss(T._a[0],Xe[0]),(T._dayOfYear>qt(ln)||0===T._dayOfYear)&&(Ye(T)._overflowDayOfYear=!0),se=Mi(ln,0,T._dayOfYear),T._a[1]=se.getUTCMonth(),T._a[2]=se.getUTCDate()),Y=0;Y<3&&null==T._a[Y];++Y)T._a[Y]=ve[Y]=Xe[Y];for(;Y<7;Y++)T._a[Y]=ve[Y]=null==T._a[Y]?2===Y?1:0:T._a[Y];24===T._a[3]&&0===T._a[4]&&0===T._a[5]&&0===T._a[6]&&(T._nextDay=!0,T._a[3]=0),T._d=(T._useUTC?Mi:Un).apply(null,ve),Rt=T._useUTC?T._d.getUTCDay():T._d.getDay(),null!=T._tzm&&T._d.setUTCMinutes(T._d.getUTCMinutes()-T._tzm),T._nextDay&&(T._a[3]=24),T._w&&void 0!==T._w.d&&T._w.d!==Rt&&(Ye(T).weekdayMismatch=!0)}}function qi(T){if(T._f!==s.ISO_8601)if(T._f!==s.RFC_2822){T._a=[],Ye(T).empty=!0;var se,ve,Xe,Rt,ln,Nr,Rs,Y=""+T._i,ui=Y.length,ir=0;for(Rs=(Xe=vt(T._f,T._locale).match(Dn)||[]).length,se=0;se<Rs;se++)(ve=(Y.match(yn(Rt=Xe[se],T))||[])[0])&&((ln=Y.substr(0,Y.indexOf(ve))).length>0&&Ye(T).unusedInput.push(ln),Y=Y.slice(Y.indexOf(ve)+ve.length),ir+=ve.length),Mt[Rt]?(ve?Ye(T).empty=!1:Ye(T).unusedTokens.push(Rt),j(Rt,ve,T)):T._strict&&!ve&&Ye(T).unusedTokens.push(Rt);Ye(T).charsLeftOver=ui-ir,Y.length>0&&Ye(T).unusedInput.push(Y),T._a[3]<=12&&!0===Ye(T).bigHour&&T._a[3]>0&&(Ye(T).bigHour=void 0),Ye(T).parsedDateParts=T._a.slice(0),Ye(T).meridiem=T._meridiem,T._a[3]=function ra(T,Y,se){var ve;return null==se?Y:null!=T.meridiemHour?T.meridiemHour(Y,se):(null!=T.isPM&&((ve=T.isPM(se))&&Y<12&&(Y+=12),!ve&&12===Y&&(Y=0)),Y)}(T._locale,T._a[3],T._meridiem),null!==(Nr=Ye(T).era)&&(T._a[0]=T._locale.erasConvertYear(Nr,T._a[0])),ks(T),hn(T)}else hi(T);else ge(T)}function Js(T){var Y=T._i,se=T._f;return T._locale=T._locale||Ct(T._l),null===Y||void 0===se&&""===Y?rt({nullInput:!0}):("string"==typeof Y&&(T._i=Y=T._locale.preparse(Y)),Re(Y)?new ze(hn(Y)):(re(Y)?T._d=Y:k(se)?function yr(T){var Y,se,ve,Xe,Rt,ln,ui=!1,ir=T._f.length;if(0===ir)return Ye(T).invalidFormat=!0,void(T._d=new Date(NaN));for(Xe=0;Xe<ir;Xe++)Rt=0,ln=!1,Y=ut({},T),null!=T._useUTC&&(Y._useUTC=T._useUTC),Y._f=T._f[Xe],qi(Y),Te(Y)&&(ln=!0),Rt+=Ye(Y).charsLeftOver,Rt+=10*Ye(Y).unusedTokens.length,Ye(Y).score=Rt,ui?Rt<ve&&(ve=Rt,se=Y):(null==ve||Rt<ve||ln)&&(ve=Rt,se=Y,ln&&(ui=!0));be(T,se||Y)}(T):se?qi(T):function Xo(T){var Y=T._i;te(Y)?T._d=new Date(s.now()):re(Y)?T._d=new Date(Y.valueOf()):"string"==typeof Y?function zs(T){var Y=Xr.exec(T._i);null===Y?(ge(T),!1===T._isValid&&(delete T._isValid,hi(T),!1===T._isValid&&(delete T._isValid,T._strict?T._isValid=!1:s.createFromInputFallback(T)))):T._d=new Date(+Y[1])}(T):k(Y)?(T._a=we(Y.slice(0),function(se){return parseInt(se,10)}),ks(T)):v(Y)?function sl(T){if(!T._d){var Y=$(T._i);T._a=we([Y.year,Y.month,void 0===Y.day?Y.date:Y.day,Y.hour,Y.minute,Y.second,Y.millisecond],function(ve){return ve&&parseInt(ve,10)}),ks(T)}}(T):_e(Y)?T._d=new Date(Y):s.createFromInputFallback(T)}(T),Te(T)||(T._d=null),T))}function ls(T,Y,se,ve,Xe){var Rt={};return(!0===Y||!1===Y)&&(ve=Y,Y=void 0),(!0===se||!1===se)&&(ve=se,se=void 0),(v(T)&&q(T)||k(T)&&0===T.length)&&(T=void 0),Rt._isAMomentObject=!0,Rt._useUTC=Rt._isUTC=Xe,Rt._l=se,Rt._i=T,Rt._f=Y,Rt._strict=ve,function fr(T){var Y=new ze(hn(Js(T)));return Y._nextDay&&(Y.add(1,"d"),Y._nextDay=void 0),Y}(Rt)}function $r(T,Y,se,ve){return ls(T,Y,se,ve,!1)}s.createFromInputFallback=Fe("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(T){T._d=new Date(T._i+(T._useUTC?" UTC":""))}),s.ISO_8601=function(){},s.RFC_2822=function(){};var Eo=Fe("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var T=$r.apply(null,arguments);return this.isValid()&&T.isValid()?T<this?this:T:rt()}),No=Fe("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var T=$r.apply(null,arguments);return this.isValid()&&T.isValid()?T>this?this:T:rt()});function Fo(T,Y){var se,ve;if(1===Y.length&&k(Y[0])&&(Y=Y[0]),!Y.length)return $r();for(se=Y[0],ve=1;ve<Y.length;++ve)(!Y[ve].isValid()||Y[ve][T](se))&&(se=Y[ve]);return se}var P=["year","quarter","month","week","day","hour","minute","second","millisecond"];function dt(T){var Y=$(T),se=Y.year||0,ve=Y.quarter||0,Xe=Y.month||0,Rt=Y.week||Y.isoWeek||0,ln=Y.day||0,ui=Y.hour||0,ir=Y.minute||0,Nr=Y.second||0,Rs=Y.millisecond||0;this._isValid=function F(T){var Y,ve,se=!1,Xe=P.length;for(Y in T)if(C(T,Y)&&(-1===ki.call(P,Y)||null!=T[Y]&&isNaN(T[Y])))return!1;for(ve=0;ve<Xe;++ve)if(T[P[ve]]){if(se)return!1;parseFloat(T[P[ve]])!==De(T[P[ve]])&&(se=!0)}return!0}(Y),this._milliseconds=+Rs+1e3*Nr+6e4*ir+1e3*ui*60*60,this._days=+ln+7*Rt,this._months=+Xe+3*ve+12*se,this._data={},this._locale=Ct(),this._bubble()}function Et(T){return T instanceof dt}function kt(T){return T<0?-1*Math.round(-1*T):Math.round(T)}function En(T,Y){it(T,0,0,function(){var se=this.utcOffset(),ve="+";return se<0&&(se=-se,ve="-"),ve+Bn(~~(se/60),2)+Y+Bn(~~se%60,2)})}En("Z",":"),En("ZZ",""),mt("Z",Se),mt("ZZ",Se),N(["Z","ZZ"],function(T,Y,se){se._useUTC=!0,se._tzm=Di(Se,T)});var In=/([\+\-]|\d\d)/gi;function Di(T,Y){var Xe,Rt,se=(Y||"").match(T);return null===se?null:0===(Rt=60*(Xe=((se[se.length-1]||[])+"").match(In)||["-",0,0])[1]+De(Xe[2]))?0:"+"===Xe[0]?Rt:-Rt}function ji(T,Y){var se,ve;return Y._isUTC?(se=Y.clone(),ve=(Re(T)||re(T)?T.valueOf():$r(T).valueOf())-se.valueOf(),se._d.setTime(se._d.valueOf()+ve),s.updateOffset(se,!1),se):$r(T).local()}function er(T){return-Math.round(T._d.getTimezoneOffset())}function Or(){return!!this.isValid()&&this._isUTC&&0===this._offset}s.updateOffset=function(){};var ea=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Xs=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Bs(T,Y){var Xe,Rt,ln,se=T,ve=null;return Et(T)?se={ms:T._milliseconds,d:T._days,M:T._months}:_e(T)||!isNaN(+T)?(se={},Y?se[Y]=+T:se.milliseconds=+T):(ve=ea.exec(T))?(Xe="-"===ve[1]?-1:1,se={y:0,d:De(ve[2])*Xe,h:De(ve[3])*Xe,m:De(ve[4])*Xe,s:De(ve[5])*Xe,ms:De(kt(1e3*ve[6]))*Xe}):(ve=Xs.exec(T))?se={y:Sr(ve[2],Xe="-"===ve[1]?-1:1),M:Sr(ve[3],Xe),w:Sr(ve[4],Xe),d:Sr(ve[5],Xe),h:Sr(ve[6],Xe),m:Sr(ve[7],Xe),s:Sr(ve[8],Xe)}:null==se?se={}:"object"==typeof se&&("from"in se||"to"in se)&&(ln=function Wo(T,Y){var se;return T.isValid()&&Y.isValid()?(Y=ji(Y,T),T.isBefore(Y)?se=Hs(T,Y):((se=Hs(Y,T)).milliseconds=-se.milliseconds,se.months=-se.months),se):{milliseconds:0,months:0}}($r(se.from),$r(se.to)),(se={}).ms=ln.milliseconds,se.M=ln.months),Rt=new dt(se),Et(T)&&C(T,"_locale")&&(Rt._locale=T._locale),Et(T)&&C(T,"_isValid")&&(Rt._isValid=T._isValid),Rt}function Sr(T,Y){var se=T&&parseFloat(T.replace(",","."));return(isNaN(se)?0:se)*Y}function Hs(T,Y){var se={};return se.months=Y.month()-T.month()+12*(Y.year()-T.year()),T.clone().add(se.months,"M").isAfter(Y)&&--se.months,se.milliseconds=+Y-+T.clone().add(se.months,"M"),se}function ao(T,Y){return function(se,ve){var Rt;return null!==ve&&!isNaN(+ve)&&(gt(Y,"moment()."+Y+"(period, number) is deprecated. Please use moment()."+Y+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),Rt=se,se=ve,ve=Rt),bi(this,Bs(se,ve),T),this}}function bi(T,Y,se,ve){var Xe=Y._milliseconds,Rt=kt(Y._days),ln=kt(Y._months);!T.isValid()||(ve=null==ve||ve,ln&&Qr(T,ai(T,"Month")+ln*se),Rt&&Hi(T,"Date",ai(T,"Date")+Rt*se),Xe&&T._d.setTime(T._d.valueOf()+Xe*se),ve&&s.updateOffset(T,Rt||ln))}Bs.fn=dt.prototype,Bs.invalid=function He(){return Bs(NaN)};var Ei=ao(1,"add"),Vi=ao(-1,"subtract");function Ti(T){return"string"==typeof T||T instanceof String}function ts(T){return Re(T)||re(T)||Ti(T)||_e(T)||function qr(T){var Y=k(T),se=!1;
vendor: 10,745 bytes, line 1
1return Y&&(se=0===T.filter(function(ve){return!_e(ve)&&Ti(T)}).length),Y&&se}(T)||function bs(T){var Xe,Y=v(T)&&!q(T),se=!1,ve=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],ln=ve.length;for(Xe=0;Xe<ln;Xe+=1)se=se||C(T,ve[Xe]);return Y&&se}(T)||null==T}function Co(T){var Xe,Y=v(T)&&!q(T),se=!1,ve=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(Xe=0;Xe<ve.length;Xe+=1)se=se||C(T,ve[Xe]);return Y&&se}function Bo(T,Y){if(T.date()<Y.date())return-Bo(Y,T);var se=12*(Y.year()-T.year())+(Y.month()-T.month()),ve=T.clone().add(se,"months");return-(se+(Y-ve<0?(Y-ve)/(ve-T.clone().add(se-1,"months")):(Y-ve)/(T.clone().add(se+1,"months")-ve)))||0}function he(T){var Y;return void 0===T?this._locale._abbr:(null!=(Y=Ct(T))&&(this._locale=Y),this)}s.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",s.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var a=Fe("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(T){return void 0===T?this.localeData():this.locale(T)});function d(){return this._locale}var w=1e3,A=60*w,Q=60*A,xe=3506328*Q;function bt(T,Y){return(T%Y+Y)%Y}function xt(T,Y,se){return T<100&&T>=0?new Date(T+400,Y,se)-xe:new Date(T,Y,se).valueOf()}function Jt(T,Y,se){return T<100&&T>=0?Date.UTC(T+400,Y,se)-xe:Date.UTC(T,Y,se)}function hs(T,Y){return Y.erasAbbrRegex(T)}function to(){var Xe,Rt,ln,ui,ir,T=[],Y=[],se=[],ve=[],Nr=this.eras();for(Xe=0,Rt=Nr.length;Xe<Rt;++Xe)ln=ht(Nr[Xe].name),ui=ht(Nr[Xe].abbr),ir=ht(Nr[Xe].narrow),Y.push(ln),T.push(ui),se.push(ir),ve.push(ln),ve.push(ui),ve.push(ir);this._erasRegex=new RegExp("^("+ve.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+Y.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+T.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+se.join("|")+")","i")}function Bi(T,Y){it(0,[T,T.length],0,Y)}function Ea(T,Y,se,ve,Xe){var Rt;return null==T?Gi(this,ve,Xe).year:(Y>(Rt=Jr(T,ve,Xe))&&(Y=Rt),ll.call(this,T,Y,se,ve,Xe))}function ll(T,Y,se,ve,Xe){var Rt=oi(T,Y,se,ve,Xe),ln=Mi(Rt.year,0,Rt.dayOfYear);return this.year(ln.getUTCFullYear()),this.month(ln.getUTCMonth()),this.date(ln.getUTCDate()),this}it("N",0,0,"eraAbbr"),it("NN",0,0,"eraAbbr"),it("NNN",0,0,"eraAbbr"),it("NNNN",0,0,"eraName"),it("NNNNN",0,0,"eraNarrow"),it("y",["y",1],"yo","eraYear"),it("y",["yy",2],0,"eraYear"),it("y",["yyy",3],0,"eraYear"),it("y",["yyyy",4],0,"eraYear"),mt("N",hs),mt("NN",hs),mt("NNN",hs),mt("NNNN",function cr(T,Y){return Y.erasNameRegex(T)}),mt("NNNNN",function Wl(T,Y){return Y.erasNarrowRegex(T)}),N(["N","NN","NNN","NNNN","NNNNN"],function(T,Y,se,ve){var Xe=se._locale.erasParse(T,ve,se._strict);Xe?Ye(se).era=Xe:Ye(se).invalidEra=T}),mt("y",Qn),mt("yy",Qn),mt("yyy",Qn),mt("yyyy",Qn),mt("yo",function fc(T,Y){return Y._eraYearOrdinalRegex||Qn}),N(["y","yy","yyy","yyyy"],0),N(["yo"],function(T,Y,se,ve){var Xe;se._locale._eraYearOrdinalRegex&&(Xe=T.match(se._locale._eraYearOrdinalRegex)),Y[0]=se._locale.eraYearOrdinalParse?se._locale.eraYearOrdinalParse(T,Xe):parseInt(T,10)}),it(0,["gg",2],0,function(){return this.weekYear()%100}),it(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Bi("gggg","weekYear"),Bi("ggggg","weekYear"),Bi("GGGG","isoWeekYear"),Bi("GGGGG","isoWeekYear"),mt("G",lt),mt("g",lt),mt("GG",Yt,Me),mt("gg",Yt,Me),mt("GGGG",Si,Tt),mt("gggg",Si,Tt),mt("GGGGG",ni,Zt),mt("ggggg",ni,Zt),x(["gggg","ggggg","GGGG","GGGGG"],function(T,Y,se,ve){Y[ve.substr(0,2)]=De(T)}),x(["gg","GG"],function(T,Y,se,ve){Y[ve]=s.parseTwoDigitYear(T)}),it("Q",0,"Qo","quarter"),mt("Q",ae),N("Q",function(T,Y){Y[1]=3*(De(T)-1)}),it("D",["DD",2],"Do","date"),mt("D",Yt,Be),mt("DD",Yt,Me),mt("Do",function(T,Y){return T?Y._dayOfMonthOrdinalParse||Y._ordinalParse:Y._dayOfMonthOrdinalParseLenient}),N(["D","DD"],2),N("Do",function(T,Y){Y[2]=De(T.match(Yt)[0])});var Ho=zn("Date",!0);it("DDD",["DDDD",3],"DDDo","dayOfYear"),mt("DDD",Nn),mt("DDDD",nt),N(["DDD","DDDD"],function(T,Y,se){se._dayOfYear=De(T)}),it("m",["mm",2],0,"minute"),mt("m",Yt,at),mt("mm",Yt,Me),N(["m","mm"],4);var bl=zn("Minutes",!1);it("s",["ss",2],0,"second"),mt("s",Yt,at),mt("ss",Yt,Me),N(["s","ss"],5);var va,Go,Qa=zn("Seconds",!1);for(it("S",0,0,function(){return~~(this.millisecond()/100)}),it(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),it(0,["SSS",3],0,"millisecond"),it(0,["SSSS",4],0,function(){return 10*this.millisecond()}),it(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),it(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),it(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),it(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),it(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),mt("S",Nn,ae),mt("SS",Nn,Me),mt("SSS",Nn,nt),va="SSSS";va.length<=9;va+="S")mt(va,Qn);function uu(T,Y){Y[6]=De(1e3*("0."+T))}for(va="S";va.length<=9;va+="S")N(va,uu);Go=zn("Milliseconds",!1),it("z",0,0,"zoneAbbr"),it("zz",0,0,"zoneName");var Zn=ze.prototype;function Ja(T){return T}Zn.add=Ei,Zn.calendar=function Ws(T,Y){1===arguments.length&&(arguments[0]?ts(arguments[0])?(T=arguments[0],Y=void 0):Co(arguments[0])&&(Y=arguments[0],T=void 0):(T=void 0,Y=void 0));var se=T||$r(),ve=ji(se,this).startOf("day"),Xe=s.calendarFormat(this,ve)||"sameElse",Rt=Y&&(Bt(Y[Xe])?Y[Xe].call(this,se):Y[Xe]);return this.format(Rt||this.localeData().calendar(Xe,this,$r(se)))},Zn.clone=function ga(){return new ze(this)},Zn.diff=function cs(T,Y,se){var ve,Xe,Rt;if(!this.isValid())return NaN;if(!(ve=ji(T,this)).isValid())return NaN;switch(Xe=6e4*(ve.utcOffset()-this.utcOffset()),Y=Pt(Y)){case"year":Rt=Bo(this,ve)/12;break;case"month":Rt=Bo(this,ve);break;case"quarter":Rt=Bo(this,ve)/3;break;case"second":Rt=(this-ve)/1e3;break;case"minute":Rt=(this-ve)/6e4;break;case"hour":Rt=(this-ve)/36e5;break;case"day":Rt=(this-ve-Xe)/864e5;break;case"week":Rt=(this-ve-Xe)/6048e5;break;default:Rt=this-ve}return se?Rt:Oe(Rt)},Zn.endOf=function Wt(T){var Y,se;if(void 0===(T=Pt(T))||"millisecond"===T||!this.isValid())return this;switch(se=this._isUTC?Jt:xt,T){case"year":Y=se(this.year()+1,0,1)-1;break;case"quarter":Y=se(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":Y=se(this.year(),this.month()+1,1)-1;break;case"week":Y=se(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":Y=se(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":Y=se(this.year(),this.month(),this.date()+1)-1;break;case"hour":Y=this._d.valueOf(),Y+=Q-bt(Y+(this._isUTC?0:this.utcOffset()*A),Q)-1;break;case"minute":Y=this._d.valueOf(),Y+=A-bt(Y,A)-1;break;case"second":Y=this._d.valueOf(),Y+=w-bt(Y,w)-1}return this._d.setTime(Y),s.updateOffset(this,!0),this},Zn.format=function la(T){T||(T=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var Y=st(this,T);return this.localeData().postformat(Y)},Zn.from=function Zo(T,Y){return this.isValid()&&(Re(T)&&T.isValid()||$r(T).isValid())?Bs({to:this,from:T}).locale(this.locale()).humanize(!Y):this.localeData().invalidDate()},Zn.fromNow=function ee(T){return this.from($r(),T)},Zn.to=function z(T,Y){return this.isValid()&&(Re(T)&&T.isValid()||$r(T).isValid())?Bs({from:this,to:T}).locale(this.locale()).humanize(!Y):this.localeData().invalidDate()},Zn.toNow=function H(T){return this.to($r(),T)},Zn.get=function _r(T){return Bt(this[T=Pt(T)])?this[T]():this},Zn.invalidAt=function On(){return Ye(this).overflow},Zn.isAfter=function ro(T,Y){var se=Re(T)?T:$r(T);return!(!this.isValid()||!se.isValid())&&("millisecond"===(Y=Pt(Y)||"millisecond")?this.valueOf()>se.valueOf():se.valueOf()<this.clone().startOf(Y).valueOf())},Zn.isBefore=function Zs(T,Y){var se=Re(T)?T:$r(T);return!(!this.isValid()||!se.isValid())&&("millisecond"===(Y=Pt(Y)||"millisecond")?this.valueOf()<se.valueOf():this.clone().endOf(Y).valueOf()<se.valueOf())},Zn.isBetween=function eo(T,Y,se,ve){var Xe=Re(T)?T:$r(T),Rt=Re(Y)?Y:$r(Y);return!!(this.isValid()&&Xe.isValid()&&Rt.isValid())&&("("===(ve=ve||"()")[0]?this.isAfter(Xe,se):!this.isBefore(Xe,se))&&(")"===ve[1]?this.isBefore(Rt,se):!this.isAfter(Rt,se))},Zn.isSame=function Vr(T,Y){var ve,se=Re(T)?T:$r(T);return!(!this.isValid()||!se.isValid())&&("millisecond"===(Y=Pt(Y)||"millisecond")?this.valueOf()===se.valueOf():(ve=se.valueOf(),this.clone().startOf(Y).valueOf()<=ve&&ve<=this.clone().endOf(Y).valueOf()))},Zn.isSameOrAfter=function Yo(T,Y){return this.isSame(T,Y)||this.isAfter(T,Y)},Zn.isSameOrBefore=function ya(T,Y){return this.isSame(T,Y)||this.isBefore(T,Y)},Zn.isValid=function ci(){return Te(this)},Zn.lang=a,Zn.locale=he,Zn.localeData=d,Zn.max=No,Zn.min=Eo,Zn.parsingFlags=function un(){return be({},Ye(this))},Zn.set=function Ji(T,Y){if("object"==typeof T){var ve,se=function K(T){var se,Y=[];for(se in T)C(T,se)&&Y.push({unit:se,priority:ue[se]});return Y.sort(function(ve,Xe){return ve.priority-Xe.priority}),Y}(T=$(T)),Xe=se.length;for(ve=0;ve<Xe;ve++)this[se[ve].unit](T[se[ve].unit])}else if(Bt(this[T=Pt(T)]))return this[T](Y);return this},Zn.startOf=function Sn(T){var Y,se;if(void 0===(T=Pt(T))||"millisecond"===T||!this.isValid())return this;switch(se=this._isUTC?Jt:xt,T){case"year":Y=se(this.year(),0,1);break;case"quarter":Y=se(this.year(),this.month()-this.month()%3,1);break;case"month":Y=se(this.year(),this.month(),1);break;case"week":Y=se(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":Y=se(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":Y=se(this.year(),this.month(),this.date());break;case"hour":Y=this._d.valueOf(),Y-=bt(Y+(this._isUTC?0:this.utcOffset()*A),Q);break;case"minute":Y=this._d.valueOf(),Y-=bt(Y,A);break;case"second":Y=this._d.valueOf(),Y-=bt(Y,w)}return this._d.setTime(Y),s.updateOffset(this,!0),this},Zn.subtract=Vi,Zn.toArray=function qn(){var T=this;return[T.year(),T.month(),T.date(),T.hour(),T.minute(),T.second(),T.millisecond()]},Zn.toObject=function yi(){var T=this;return{years:T.year(),months:T.month(),date:T.date(),hours:T.hours(),minutes:T.minutes(),seconds:T.seconds(),milliseconds:T.milliseconds()}},Zn.toDate=function kr(){return new Date(this.valueOf())},Zn.toISOString=function So(T){if(!this.isValid())return null;var Y=!0!==T,se=Y?this.clone().utc():this;return se.year()<0||se.year()>9999?st(se,Y?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Bt(Date.prototype.toISOString)?Y?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",st(se,"Z")):st(se,Y?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Zn.inspect=function Da(){if(!this.isValid())return"moment.invali
1d(/* "+this._i+" */)";var se,ve,T="moment",Y="";return this.isLocal()||(T=0===this.utcOffset()?"moment.utc":"moment.parseZone",Y="Z"),se="["+T+'("]',ve=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(se+ve+"-MM-DD[T]HH:mm:ss.SSS"+Y+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Zn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Zn.toJSON=function lo(){return this.isValid()?this.toISOString():null},Zn.toString=function Ta(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Zn.unix=function Zi(){return Math.floor(this.valueOf()/1e3)},Zn.valueOf=function ti(){return this._d.valueOf()-6e4*(this._offset||0)},Zn.creationData=function br(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Zn.eraName=function ds(){var T,Y,se,ve=this.localeData().eras();for(T=0,Y=ve.length;T<Y;++T)if(se=this.clone().startOf("day").valueOf(),ve[T].since<=se&&se<=ve[T].until||ve[T].until<=se&&se<=ve[T].since)return ve[T].name;return""},Zn.eraNarrow=function ua(){var T,Y,se,ve=this.localeData().eras();for(T=0,Y=ve.length;T<Y;++T)if(se=this.clone().startOf("day").valueOf(),ve[T].since<=se&&se<=ve[T].until||ve[T].until<=se&&se<=ve[T].since)return ve[T].narrow;return""},Zn.eraAbbr=function ou(){var T,Y,se,ve=this.localeData().eras();for(T=0,Y=ve.length;T<Y;++T)if(se=this.clone().startOf("day").valueOf(),ve[T].since<=se&&se<=ve[T].until||ve[T].until<=se&&se<=ve[T].since)return ve[T].abbr;return""},Zn.eraYear=function al(){var T,Y,se,ve,Xe=this.localeData().eras();for(T=0,Y=Xe.length;T<Y;++T)if(se=Xe[T].since<=Xe[T].until?1:-1,ve=this.clone().startOf("day").valueOf(),Xe[T].since<=ve&&ve<=Xe[T].until||Xe[T].until<=ve&&ve<=Xe[T].since)return(this.year()-s(Xe[T].since).year())*se+Xe[T].offset;return this.year()},Zn.year=xn,Zn.isLeapYear=function fn(){return de(this.year())},Zn.weekYear=function au(T){return Ea.call(this,T,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},Zn.isoWeekYear=function zr(T){return Ea.call(this,T,this.isoWeek(),this.isoWeekday(),1,4)},Zn.quarter=Zn.quarters=function lu(T){return null==T?Math.ceil((this.month()+1)/3):this.month(3*(T-1)+this.month()%3)},Zn.month=_i,Zn.daysInMonth=function Nt(){return Ur(this.year(),this.month())},Zn.week=Zn.weeks=function Oo(T){var Y=this.localeData().week(this);return null==T?Y:this.add(7*(T-Y),"d")},Zn.isoWeek=Zn.isoWeeks=function oo(T){var Y=Gi(this,1,4).week;return null==T?Y:this.add(7*(T-Y),"d")},Zn.weeksInYear=function $n(){var T=this.localeData()._week;return Jr(this.year(),T.dow,T.doy)},Zn.weeksInWeekYear=function qa(){var T=this.localeData()._week;return Jr(this.weekYear(),T.dow,T.doy)},Zn.isoWeeksInYear=function vl(){return Jr(this.year(),1,4)},Zn.isoWeeksInISOWeekYear=function uo(){return Jr(this.isoWeekYear(),1,4)},Zn.date=Ho,Zn.day=Zn.days=function Jo(T){if(!this.isValid())return null!=T?this:NaN;var Y=ai(this,"Day");return null!=T?(T=function ho(T,Y){return"string"!=typeof T?T:isNaN(T)?"number"==typeof(T=Y.weekdaysParse(T))?T:null:parseInt(T,10)}(T,this.localeData()),this.add(T-Y,"d")):Y},Zn.weekday=function is(T){if(!this.isValid())return null!=T?this:NaN;var Y=(this.day()+7-this.localeData()._week.dow)%7;return null==T?Y:this.add(T-Y,"d")},Zn.isoWeekday=function gs(T){if(!this.isValid())return null!=T?this:NaN;if(null!=T){var Y=function go(T,Y){return"string"==typeof T?Y.weekdaysParse(T)%7||7:isNaN(T)?null:T}(T,this.localeData());return this.day(this.day()%7?Y:Y-7)}return this.day()||7},Zn.dayOfYear=function Ya(T){var Y=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==T?Y:this.add(T-Y,"d")},Zn.hour=Zn.hours=Cs,Zn.minute=Zn.minutes=bl,Zn.second=Zn.seconds=Qa,Zn.millisecond=Zn.milliseconds=Go,Zn.utcOffset=function Gn(T,Y,se){var Xe,ve=this._offset||0;if(!this.isValid())return null!=T?this:NaN;if(null!=T){if("string"==typeof T){if(null===(T=Di(Se,T)))return this}else Math.abs(T)<16&&!se&&(T*=60);return!this._isUTC&&Y&&(Xe=er(this)),this._offset=T,this._isUTC=!0,null!=Xe&&this.add(Xe,"m"),ve!==T&&(!Y||this._changeInProgress?bi(this,Bs(T-ve,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,s.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?ve:er(this)},Zn.utc=function vr(T){return this.utcOffset(0,T)},Zn.local=function Kr(T){return this._isUTC&&(this.utcOffset(0,T),this._isUTC=!1,T&&this.subtract(er(this),"m")),this},Zn.parseZone=function Wr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var T=Di(Qt,this._i);null!=T?this.utcOffset(T):this.utcOffset(0,!0)}return this},Zn.hasAlignedHourOffset=function us(T){return!!this.isValid()&&(T=T?$r(T).utcOffset():0,(this.utcOffset()-T)%60==0)},Zn.isDST=function rs(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Zn.isLocal=function Zr(){return!!this.isValid()&&!this._isUTC},Zn.isUtcOffset=function ur(){return!!this.isValid()&&this._isUTC},Zn.isUtc=Or,Zn.isUTC=Or,Zn.zoneAbbr=function cu(){return this._isUTC?"UTC":""},Zn.zoneName=function Hu(){return this._isUTC?"Coordinated Universal Time":""},Zn.dates=Fe("dates accessor is deprecated. Use date instead.",Ho),Zn.months=Fe("months accessor is deprecated. Use month instead",_i),Zn.years=Fe("years accessor is deprecated. Use year instead",xn),Zn.zone=Fe("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function Qi(T,Y){return null!=T?("string"!=typeof T&&(T=-T),this.utcOffset(T,Y),this):-this.utcOffset()}),Zn.isDSTShifted=Fe("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function es(){if(!te(this._isDSTShifted))return this._isDSTShifted;var Y,T={};return ut(T,this),(T=Js(T))._a?(Y=T._isUTC?ke(T._a):$r(T._a),this._isDSTShifted=this.isValid()&&function Kt(T,Y,se){var ln,ve=Math.min(T.length,Y.length),Xe=Math.abs(T.length-Y.length),Rt=0;for(ln=0;ln<ve;ln++)(se&&T[ln]!==Y[ln]||!se&&De(T[ln])!==De(Y[ln]))&&Rt++;return Rt+Xe}(T._a,Y.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var lr=jn.prototype;function wl(T,Y,se,ve){var Xe=Ct(),Rt=ke().set(ve,Y);return Xe[se](Rt,T)}function Xa(T,Y,se){if(_e(T)&&(Y=T,T=void 0),T=T||"",null!=Y)return wl(T,Y,se,"month");var ve,Xe=[];for(ve=0;ve<12;ve++)Xe[ve]=wl(T,ve,se,"month");return Xe}function ca(T,Y,se,ve){"boolean"==typeof T?(_e(Y)&&(se=Y,Y=void 0),Y=Y||""):(se=Y=T,T=!1,_e(Y)&&(se=Y,Y=void 0),Y=Y||"");var ln,Xe=Ct(),Rt=T?Xe._week.dow:0,ui=[];if(null!=se)return wl(Y,(se+Rt)%7,ve,"day");for(ln=0;ln<7;ln++)ui[ln]=wl(Y,(ln+Rt)%7,ve,"day");return ui}lr.calendar=function Mn(T,Y,se){var ve=this._calendar[T]||this._calendar.sameElse;return Bt(ve)?ve.call(Y,se):ve},lr.longDateFormat=function Ut(T){var Y=this._longDateFormat[T],se=this._longDateFormat[T.toUpperCase()];return Y||!se?Y:(this._longDateFormat[T]=se.match(Dn).map(function(ve){return"MMMM"===ve||"MM"===ve||"DD"===ve||"dddd"===ve?ve.slice(1):ve}).join(""),this._longDateFormat[T])},lr.invalidDate=function _n(){return this._invalidDate},lr.ordinal=function si(T){return this._ordinal.replace("%d",T)},lr.preparse=Ja,lr.postformat=Ja,lr.relativeTime=function Vn(T,Y,se,ve){var Xe=this._relativeTime[se];return Bt(Xe)?Xe(T,Y,se,ve):Xe.replace(/%d/i,T)},lr.pastFuture=function Rn(T,Y){var se=this._relativeTime[T>0?"future":"past"];return Bt(se)?se(Y):se.replace(/%s/i,Y)},lr.set=function pn(T){var Y,se;for(se in T)C(T,se)&&(Bt(Y=T[se])?this[se]=Y:this["_"+se]=Y);this._config=T,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},lr.eras=function ol(T,Y){var se,ve,Xe,Rt=this._eras||Ct("en")._eras;for(se=0,ve=Rt.length;se<ve;++se)switch("string"==typeof Rt[se].since&&(Xe=s(Rt[se].since).startOf("day"),Rt[se].since=Xe.valueOf()),typeof Rt[se].until){case"undefined":Rt[se].until=1/0;break;case"string":Xe=s(Rt[se].until).startOf("day").valueOf(),Rt[se].until=Xe.valueOf()}return Rt},lr.erasParse=function Gs(T,Y,se){var ve,Xe,ln,ui,ir,Rt=this.eras();for(T=T.toUpperCase(),ve=0,Xe=Rt.length;ve<Xe;++ve)if(ln=Rt[ve].name.toUpperCase(),ui=Rt[ve].abbr.toUpperCase(),ir=Rt[ve].narrow.toUpperCase(),se)switch(Y){case"N":case"NN":case"NNN":if(ui===T)return Rt[ve];break;case"NNNN":if(ln===T)return Rt[ve];break;case"NNNNN":if(ir===T)return Rt[ve]}else if([ln,ui,ir].indexOf(T)>=0)return Rt[ve]},lr.erasConvertYear=function Fa(T,Y){var se=T.since<=T.until?1:-1;return void 0===Y?s(T.since).year():s(T.since).year()+(Y-T.offset)*se},lr.erasAbbrRegex=function yl(T){return C(this,"_erasAbbrRegex")||to.call(this),T?this._erasAbbrRegex:this._erasRegex},lr.erasNameRegex=function Ka(T){return C(this,"_erasNameRegex")||to.call(this),T?this._erasNameRegex:this._erasRegex},lr.erasNarrowRegex=function zl(T){return C(this,"_erasNarrowRegex")||to.call(this),T?this._erasNarrowRegex:this._erasRegex},lr.months=function ar(T,Y){return T?k(this._months)?this._months[T.month()]:this._months[(this._months.isFormat||Gr).test(Y)?"format":"standalone"][T.month()]:k(this._months)?this._months:this._months.standalone},lr.monthsShort=function Wi(T,Y){return T?k(this._monthsShort)?this._monthsShort[T.month()]:this._monthsShort[Gr.test(Y)?"format":"standalone"][T.month()]:k(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},lr.monthsParse=function Ds(T,Y,se){var ve,Xe,Rt;if(this._monthsParseExact)return Ps.call(this,T,Y,se);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),ve=0;ve<12;ve++){if(Xe=ke([2e3,ve]),se&&!this._longMonthsParse[ve]&&(this._longMonthsParse[ve]=new RegExp("^"+this.months(Xe,"").replace(".","")+"$","i"),this._shortMonthsParse[ve]=new RegExp("^"+this.monthsShort(Xe,"").replace(".","")+"$","i")),!se&&!this._monthsParse[ve]&&(Rt="^"+this.months(Xe,"")+"|^"+this.monthsShort(Xe,""),this._monthsParse[ve]=new RegExp(Rt.replace(".",""),"i")),se&&"MMMM"===Y&&this._longMonthsParse[ve].test(T))return ve;if(se&&"MMM"===Y&&this._shortMonthsParse[ve].test(T))return ve;if(!se&&this._monthsParse[ve].test(T))return ve}},lr.monthsRegex=function $t(T){return this._monthsParseExact?(C(this,"_monthsRegex")||cn.call(this),T?this._monthsStrictRegex:this._monthsRegex):(C(this,"_monthsRegex")||(this._monthsRegex=or),this._monthsStrictRegex&&T?this._monthsStrictRegex:this._monthsRegex)},lr.monthsShortRegex=function Ft(T){return this._monthsParseExact?(C(this,"_monthsRegex")||cn.call(this),T?this._monthsShortStrictRegex:this._monthsShortRegex):(C(this,"_monthsShortRegex")||(this._monthsShortRegex=jr),this._monthsShortStrictRegex&&T?this._monthsShortStrictRegex:this._monthsShortRegex)},lr.week=function io(T){return Gi(T,this._week.dow,this._week.doy).week},lr.firstDayOfYear=function co(){return this._week.doy},lr.firstDayOfWeek=function ns(){return this._week.dow},lr.weekdays=function aa(T,Y){var se=k(this._weekdays)?this._weekdays:this._weekdays[T&&!0!==T&&this._weekdays.isFormat.test(Y)?"format":"standalone"];return!0===T?ws(se,this._week.dow):T?se[T.day()]:se},lr.weekdaysMin=function Ms(T){return!0===T?ws(this._weekdaysMin,this._week.dow):T?this._weekdaysMin[T.day()]:this._weekdaysMin},lr.weekdaysShort=function yo(T){return!0===T?ws(this._weekdaysShort,this._week.dow):T?this._weekdaysShort[T.day()]:this._weekdaysShort},lr.weekdaysParse=function _s(T,Y,se){var ve,Xe,Rt;if(this._weekdaysParseExact)return vo.call(this,T,Y,se);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),ve=0;ve<7;ve++){if(Xe=ke([2e3,1]).day(ve),se&&!this._fullWeekdaysParse[ve]&&(this._fullWeekdaysParse[ve]=new RegExp("^"+this.weekdays(Xe,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[ve]=new RegExp("^"+this.weekdaysShort(Xe,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[ve]=new RegExp("^"+this.weekdaysMin(Xe,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[ve]||(Rt="^"+this.weekdays(Xe,"")+"|^"+this.weekdaysShort(Xe,"")+"|^"+this.weekdaysMin(Xe,""),this._weekdaysParse[ve]=new RegExp(Rt.replace(".",""),"i")),se&&"dddd"===Y&&this._fullWeekdaysParse[ve].test(T))return ve;if(se&&"ddd"===Y&&this._shortWeekdaysParse[ve].test(T))return ve;if(se&&"dd"===Y&&this._minWeekdaysParse[ve].test(T))return ve;if(!se&&this._weekdaysParse[ve].test(T))return ve}},lr.weekdaysRegex=function Es(T){return this._weekdaysParseExact?(C(this,"_weekdaysRegex")||_a.call(this),T?this._weekdaysStrictRegex:this._weekdaysRegex):(C(this,"_weekdaysRegex")||(this._weekdaysRegex=Ui),this._weekdaysStrictRegex&&T?this._weekdaysStrictRegex:this._weekdaysRegex)},lr.weekdaysShortRegex=function Os(T){return this._weekdaysParseExact?(C(this,"_weekdaysRegex")||_a.call(this),T?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(C(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ys),this._weekdaysShortStrictRegex&&T?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},lr.weekdaysMinRegex=function fo(T){return this._weekdaysParseExact?(C(this,"_weekdaysRegex")||_a.call(this),T?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(C(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=dr),this._weekdaysMinStrictRegex&&T?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},lr.isPM=function Yi(T){return"p"===(T+"").toLowerCase().charAt(0)},lr.meridiem=function Vs(T,Y,se){return T>11?se?"pm":"PM":se?"am":"AM"},Ne("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(T){var Y=T%10;return T+(1===De(T%100/10)?"th":1===Y?"st":2===Y?"nd":3===Y?"rd":"th")}}),s.lang=Fe("moment.lang is deprecated. Use moment.locale instead.",Ne),s.langData=Fe("moment.langData is deprecated. Use moment.localeData instead.",Ct);var Mo=Math.abs;function sa(T,Y,se,ve){var Xe=Bs(Y,se);return T._milliseconds+=ve*Xe._milliseconds,T._days+=ve*Xe._days,T._months+=ve*Xe._months,T._bubble()}function Us(T){return T<0?Math.floor(T):Math.ceil(T)}function $l(T){return 4800*T/146097}function mo(T){return 146097*T/4800}function Aa(T){return function(){return this.as(T)}}var Pa=Aa("ms"),Du=Aa("s"),Vu=Aa("m"),ko=Aa("h"),Eu=Aa("d"),oa=Aa("w"),Cu=Aa("M"),Kl=Aa("Q"),Ca=Aa("y"),ql=Pa;function Oa(T){return function(){return this.isValid()?this._data[T]:NaN}}var ku=Oa("milliseconds"),Ol=Oa("seconds"),du=Oa("minutes"),hu=Oa("hours"),Sa=Oa("days"),el=Oa("months"),Iu=Oa("years");var Ra=Math.round,ys={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function cl(T,Y,se,ve,Xe){return Xe.relativeTime(Y||1,!!se,T,ve)}var $s=Math.abs;function ss(T){return(T>0)-(T<0)||+T}function hl(){if(!this.isValid())return this.localeData().invalidDate();var ve,Xe,Rt,ln,ir,Nr,Rs,xs,T=$s(this._milliseconds)/1e3,Y=$s(this._days),se=$s(this._months),ui=this.asSeconds();return ui?(ve=Oe(T/60),Xe=Oe(ve/60),T%=60,ve%=60,Rt=Oe(se/12),se%=12,ln=T?T.toFixed(3).replace(/\.?0+$/,""):"",ir=ui<0?"-":"",Nr=ss(this._months)!==ss(ui)?"-":"",Rs=ss(this._days)!==ss(ui)?"-":"",xs=ss(this._milliseconds)!==ss(ui)?"-":"",ir+"P"+(Rt?Nr+Rt+"Y":"")+(se?Nr+se+"M":"")+(Y?Rs+Y+"D":"")+(Xe||ve||T?"T":"")+(Xe?xs+Xe+"H":"")+(ve?xs+ve+"M":"")+(T?xs+ln+"S":"")):"P0D"}var Er=dt.prototype;return Er.isValid=function ce(){return this._isValid},Er.abs=function Uo(){var T=this._data;return this._milliseconds=Mo(this._milliseconds),this._days=Mo(this._days),this._months=Mo(this._months),T.milliseconds=Mo(T.milliseconds),T.seconds=Mo(T.seconds),T.minutes=Mo(T.minutes),T.hours=Mo(T.hours),T.months=Mo(T.months),T.years=Mo(T.years),this},Er.add=function La(T,Y){return sa(this,T,Y,1)},Er.subtract=function Gl(T,Y){return sa(this,T,Y,-1)},Er.as=function Tl(T){if(!this.isValid())return NaN;var Y,se,ve=this._milliseconds;if("month"===(T=Pt(T))||"quarter"===T||"year"===T)switch(Y=this._days+ve/864e5,se=this._months+$l(Y),T){case"month":return se;case"quarter":return se/3;case"year":return se/12}else switch(Y=this._days+Math.round(mo(this._months)),T){case"week":return Y/7+ve/6048e5;case"day":return Y+ve/864e5;case"hour":return 24*Y+ve/36e5;case"minute":return 1440*Y+ve/6e4;case"second":return 86400*Y+ve/1e3;case"millisecond":return Math.floor(864e5*Y)+ve;default:throw new Error("Unknown unit "+T)}},Er
vendor: 4,273 bytes, line 1
1.asMilliseconds=Pa,Er.asSeconds=Du,Er.asMinutes=Vu,Er.asHours=ko,Er.asDays=Eu,Er.asWeeks=oa,Er.asMonths=Cu,Er.asQuarters=Kl,Er.asYears=Ca,Er.valueOf=ql,Er._bubble=function Pl(){var Xe,Rt,ln,ui,ir,T=this._milliseconds,Y=this._days,se=this._months,ve=this._data;return T>=0&&Y>=0&&se>=0||T<=0&&Y<=0&&se<=0||(T+=864e5*Us(mo(se)+Y),Y=0,se=0),ve.milliseconds=T%1e3,Xe=Oe(T/1e3),ve.seconds=Xe%60,Rt=Oe(Xe/60),ve.minutes=Rt%60,ln=Oe(Rt/60),ve.hours=ln%24,Y+=Oe(ln/24),se+=ir=Oe($l(Y)),Y-=Us(mo(ir)),ui=Oe(se/12),se%=12,ve.days=Y,ve.months=se,ve.years=ui,this},Er.clone=function Ql(){return Bs(this)},Er.get=function Su(T){return T=Pt(T),this.isValid()?this[T+"s"]():NaN},Er.milliseconds=ku,Er.seconds=Ol,Er.minutes=du,Er.hours=hu,Er.days=Sa,Er.weeks=function xu(){return Oe(this.days()/7)},Er.months=el,Er.years=Iu,Er.humanize=function Dl(T,Y){if(!this.isValid())return this.localeData().invalidDate();var Xe,Rt,se=!1,ve=ys;return"object"==typeof T&&(Y=T,T=!1),"boolean"==typeof T&&(se=T),"object"==typeof Y&&(ve=Object.assign({},ys,Y),null!=Y.s&&null==Y.ss&&(ve.ss=Y.s-1)),Rt=function dl(T,Y,se,ve){var Xe=Bs(T).abs(),Rt=Ra(Xe.as("s")),ln=Ra(Xe.as("m")),ui=Ra(Xe.as("h")),ir=Ra(Xe.as("d")),Nr=Ra(Xe.as("M")),Rs=Ra(Xe.as("w")),xs=Ra(Xe.as("y")),Io=Rt<=se.ss&&["s",Rt]||Rt<se.s&&["ss",Rt]||ln<=1&&["m"]||ln<se.m&&["mm",ln]||ui<=1&&["h"]||ui<se.h&&["hh",ui]||ir<=1&&["d"]||ir<se.d&&["dd",ir];return null!=se.w&&(Io=Io||Rs<=1&&["w"]||Rs<se.w&&["ww",Rs]),(Io=Io||Nr<=1&&["M"]||Nr<se.M&&["MM",Nr]||xs<=1&&["y"]||["yy",xs])[2]=Y,Io[3]=+T>0,Io[4]=ve,cl.apply(null,Io)}(this,!se,ve,Xe=this.localeData()),se&&(Rt=Xe.pastFuture(+this,Rt)),Xe.postformat(Rt)},Er.toISOString=hl,Er.toString=hl,Er.toJSON=hl,Er.locale=he,Er.localeData=d,Er.toIsoString=Fe("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",hl),Er.lang=a,it("X",0,0,"unix"),it("x",0,0,"valueOf"),mt("x",lt),mt("X",/[+-]?\d+(\.\d{1,3})?/),N("X",function(T,Y,se){se._d=new Date(1e3*parseFloat(T))}),N("x",function(T,Y,se){se._d=new Date(De(T))}),s.version="2.30.1",function m(T){h=T}($r),s.fn=Zn,s.min=function Is(){return Fo("isBefore",[].slice.call(arguments,0))},s.max=function po(){return Fo("isAfter",[].slice.call(arguments,0))},s.now=function(){return Date.now?Date.now():+new Date},s.utc=ke,s.unix=function ul(T){return $r(1e3*T)},s.months=function Zl(T,Y){return Xa(T,Y,"months")},s.isDate=re,s.locale=Ne,s.invalid=rt,s.duration=Bs,s.isMoment=Re,s.weekdays=function Uu(T,Y,se){return ca(T,Y,se,"weekdays")},s.parseZone=function nn(){return $r.apply(null,arguments).parseZone()},s.localeData=Ct,s.isDuration=Et,s.monthsShort=function Ba(T,Y){return Xa(T,Y,"monthsShort")},s.weekdaysMin=function ju(T,Y,se){return ca(T,Y,se,"weekdaysMin")},s.defineLocale=le,s.updateLocale=function qe(T,Y){if(null!=Y){var se,ve,Xe=Ri;null!=ri[T]&&null!=ri[T].parentLocale?ri[T].set(mn(ri[T]._config,Y)):(null!=(ve=fe(T))&&(Xe=ve._config),Y=mn(Xe,Y),null==ve&&(Y.abbr=T),(se=new jn(Y)).parentLocale=ri[T],ri[T]=se),Ne(T)}else null!=ri[T]&&(null!=ri[T].parentLocale?(ri[T]=ri[T].parentLocale,T===Ne()&&Ne(T)):null!=ri[T]&&delete ri[T]);return ri[T]},s.locales=function dn(){return en(ri)},s.weekdaysShort=function Ml(T,Y,se){return ca(T,Y,se,"weekdaysShort")},s.normalizeUnits=Pt,s.relativeTimeRounding=function Rl(T){return void 0===T?Ra:"function"==typeof T&&(Ra=T,!0)},s.relativeTimeThreshold=function fs(T,Y){return void 0!==ys[T]&&(void 0===Y?ys[T]:(ys[T]=Y,"s"===T&&(ys.ss=Y-1),!0))},s.calendarFormat=function Rr(T,Y){var se=T.diff(Y,"days",!0);return se<-6?"sameElse":se<-1?"lastWeek":se<0?"lastDay":se<1?"sameDay":se<2?"nextDay":se<7?"nextWeek":"sameElse"},s.prototype=Zn,s.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},s}()},1135:(_t,Ue,b)=>{"use strict";b.d(Ue,{X:()=>s});var h=b(7579);class s extends h.x{constructor(k){super(),this._value=k}get value(){return this.getValue()}_subscribe(k){const v=super._subscribe(k);return!v.closed&&k.next(this._value),v}getValue(){const{hasError:k,thrownError:v,_value:C}=this;if(k)throw v;return this._throwIfClosed(),C}next(k){super.next(this._value=k)}}}
vendor: 5,166 bytes, line 1
1,8306:(_t,Ue,b)=>{"use strict";b.d(Ue,{y:()=>re});var h=b(930),s=b(727),m=b(8822),k=b(4671);var q=b(2416),te=b(576),_e=b(2806);let re=(()=>{class Ze{constructor($e){$e&&(this._subscribe=$e)}lift($e){const Te=new Ze;return Te.source=this,Te.operator=$e,Te}subscribe($e,Te,rt){const je=function ke(Ze){return Ze&&Ze instanceof h.Lv||function be(Ze){return Ze&&(0,te.m)(Ze.next)&&(0,te.m)(Ze.error)&&(0,te.m)(Ze.complete)}(Ze)&&(0,s.Nn)(Ze)}($e)?$e:new h.Hp($e,Te,rt);return(0,_e.x)(()=>{const{operator:zt,source:ut}=this;je.add(zt?zt.call(je,ut):ut?this._subscribe(je):this._trySubscribe(je))}),je}_trySubscribe($e){try{return this._subscribe($e)}catch(Te){$e.error(Te)}}forEach($e,Te){return new(Te=we(Te))((rt,je)=>{const zt=new h.Hp({next:ut=>{try{$e(ut)}catch(ze){je(ze),zt.unsubscribe()}},error:je,complete:rt});this.subscribe(zt)})}_subscribe($e){var Te;return null===(Te=this.source)||void 0===Te?void 0:Te.subscribe($e)}[m.L](){return this}pipe(...$e){return function C(Ze){return 0===Ze.length?k.y:1===Ze.length?Ze[0]:function($e){return Ze.reduce((Te,rt)=>rt(Te),$e)}}($e)(this)}toPromise($e){return new($e=we($e))((Te,rt)=>{let je;this.subscribe(zt=>je=zt,zt=>rt(zt),()=>Te(je))})}}return Ze.create=Ye=>new Ze(Ye),Ze})();function we(Ze){var Ye;return null!==(Ye=null!=Ze?Ze:q.v.Promise)&&void 0!==Ye?Ye:Promise}},7579:(_t,Ue,b)=>{"use strict";b.d(Ue,{x:()=>q});var h=b(8306),s=b(727);const k=(0,b(3888).d)(_e=>function(){_e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var v=b(8737),C=b(2806);let q=(()=>{class _e extends h.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(we){const be=new te(this,this);return be.operator=we,be}_throwIfClosed(){if(this.closed)throw new k}next(we){(0,C.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const be of this.currentObservers)be.next(we)}})}error(we){(0,C.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=we;const{observers:be}=this;for(;be.length;)be.shift().error(we)}})}complete(){(0,C.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:we}=this;for(;we.length;)we.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var we;return(null===(we=this.observers)||void 0===we?void 0:we.length)>0}_trySubscribe(we){return this._throwIfClosed(),super._trySubscribe(we)}_subscribe(we){return this._throwIfClosed(),this._checkFinalizedStatuses(we),this._innerSubscribe(we)}_innerSubscribe(we){const{hasError:be,isStopped:ke,observers:Ze}=this;return be||ke?s.Lc:(this.currentObservers=null,Ze.push(we),new s.w0(()=>{this.currentObservers=null,(0,v.P)(Ze,we)}))}_checkFinalizedStatuses(we){const{hasError:be,thrownError:ke,isStopped:Ze}=this;be?we.error(ke):Ze&&we.complete()}asObservable(){const we=new h.y;return we.source=this,we}}return _e.create=(re,we)=>new te(re,we),_e})();class te extends q{constructor(re,we){super(),this.destination=re,this.source=we}next(re){var we,be;null===(be=null===(we=this.destination)||void 0===we?void 0:we.next)||void 0===be||be.call(we,re)}error(re){var we,be;null===(be=null===(we=this.destination)||void 0===we?void 0:we.error)||void 0===be||be.call(we,re)}complete(){var re,we;null===(we=null===(re=this.destination)||void 0===re?void 0:re.complete)||void 0===we||we.call(re)}_subscribe(re){var we,be;return null!==(be=null===(we=this.source)||void 0===we?void 0:we.subscribe(re))&&void 0!==be?be:s.Lc}}},930:(_t,Ue,b)=>{"use strict";b.d(Ue,{Hp:()=>$e,Lv:()=>be});var h=b(576),s=b(727),m=b(2416),k=b(7849),v=b(5032);const C=_e("C",void 0,void 0);function _e(ut,ze,Re){return{kind:ut,value:ze,error:Re}}var re=b(3410),we=b(2806);class be extends s.w0{constructor(ze){super(),this.isStopped=!1,ze?(this.destination=ze,(0,s.Nn)(ze)&&ze.add(this)):this.destination=zt}static create(ze,Re,tt){return new $e(ze,Re,tt)}next(ze){this.isStopped?je(function te(ut){return _e("N",ut,void 0)}(ze),this):this._next(ze)}error(ze){this.isStopped?je(function q(ut){return _e("E",void 0,ut)}(ze),this):(this.isStopped=!0,this._error(ze))}complete(){this.isStopped?je(C,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(ze){this.destination.next(ze)}_error(ze){try{this.destination.error(ze)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ke=Function.prototype.bind;function Ze(ut,ze){return ke.call(ut,ze)}class Ye{constructor(ze){this.partialObserver=ze}next(ze){const{partialObserver:Re}=this;if(Re.next)try{Re.next(ze)}catch(tt){Te(tt)}}error(ze){const{partialObserver:Re}=this;if(Re.error)try{Re.error(ze)}catch(tt){Te(tt)}else Te(ze)}complete(){const{partialObserver:ze}=this;if(ze.complete)try{ze.complete()}catch(Re){Te(Re)}}}class $e extends be{constructor(ze,Re,tt){let Fe;if(super(),(0,h.m)(ze)||!ze)Fe={next:null!=ze?ze:void 0,error:null!=Re?Re:void 0,complete:null!=tt?tt
1:void 0};else{let me;this&&m.v.useDeprecatedNextContext?(me=Object.create(ze),me.unsubscribe=()=>this.unsubscribe(),Fe={next:ze.next&&Ze(ze.next,me),error:ze.error&&Ze(ze.error,me),complete:ze.complete&&Ze(ze.complete,me)}):Fe=ze}this.destination=new Ye(Fe)}}function Te(ut){m.v.useDeprecatedSynchronousErrorHandling?(0,we.O)(ut):(0,k.h)(ut)}function je(ut,ze){const{onStoppedNotification:Re}=m.v;Re&&re.z.setTimeout(()=>Re(ut,ze))}const zt={closed:!0,next:v.Z,error:function rt(ut){throw ut},complete:v.Z}},727:(_t,Ue,b)=>{"use strict";b.d(Ue,{Lc:()=>C,w0:()=>v,Nn:()=>q});var h=b(576);const m=(0,b(3888).d)(_e=>function(we){_e(this),this.message=we?`${we.length} errors occurred during unsubscription:\n${we.map((be,ke)=>`${ke+1}) ${be.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=we});var k=b(8737);class v{constructor(re){this.initialTeardown=re,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let re;if(!this.closed){this.closed=!0;const{_parentage:we}=this;if(we)if(this._parentage=null,Array.isArray(we))for(const Ze of we)Ze.remove(this);else we.remove(this);const{initialTeardown:be}=this;if((0,h.m)(be))try{be()}catch(Ze){re=Ze instanceof m?Ze.errors:[Ze]}const{_finalizers:ke}=this;if(ke){this._finalizers=null;for(const Ze of ke)try{te(Ze)}catch(Ye){re=null!=re?re:[],Ye instanceof m?re=[...re,...Ye.errors]:re.push(Ye)}}if(re)throw new m(re)}}add(re){var we;if(re&&re!==this)if(this.closed)te(re);else{if(re instanceof v){if(re.closed||re._hasParent(this))return;re._addParent(this)}(this._finalizers=null!==(we=this._finalizers)&&void 0!==we?we:[]).push(re)}}_hasParent(re){const{_parentage:we}=this;return we===re||Array.isArray(we)&&we.includes(re)}_addParent(re){const{_parentage:we}=this;this._parentage=Array.isArray(we)?(we.push(re),we):we?[we,re]:re}_removeParent(re){const{_parentage:we}=this;we===re?this._parentage=null:Array.isArray(we)&&(0,k.P)(we,re)}remove(re){const{_finalizers:we}=this;we&&(0,k.P)(we,re),re instanceof v&&re._removeParent(this)}}v.EMPTY=(()=>{const _e=new v;return _e.closed=!0,_e})();const C=v.EMPTY;function q(_e){return _e instanceof v||_e&&"closed"in _e&&(0,h.m)(_e.remove)&&(0,h.m)(_e.add)&&(0,h.m)(_e.unsubscribe)}function te(_e){(0,h.m)(_e)?_e():_e.unsubscribe()}},2416:(_t,Ue,b)=>{"use strict";b.d(Ue,{v:()=>h});const h={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(_t,Ue,b)=>{"use strict";b.d(Ue,{a:()=>re});var h=b(8306),s=b(4742),m=b(8996),k=b(4671),v=b(3268),C=b(3269),q=b(1810),te=b(5403),_e=b(9672);function re(...ke){const Ze=(0,C.yG)(ke),Ye=(0,C.jO)(ke),{args:$e,keys:Te}=(0,s.D)(ke);if(0===$e.length)return(0,m.D)([],Ze);const rt=new h.y(function we(ke,Ze,Ye=k.y){return $e=>{be(Ze,()=>{const{length:Te}=ke,rt=new Array(Te);let je=Te,zt=Te;for(let ut=0;ut<Te;ut++)be(Ze,()=>{const ze=(0,m.D)(ke[ut],Ze);let Re=!1;ze.subscribe((0,te.x)($e,tt=>{rt[ut]=tt,Re||(Re=!0,zt--),zt||$e.next(Ye(rt.slice()))},()=>{--je||$e.complete()}))},$e)},$e)}}($e,Ze,Te?je=>(0,q.n)(Te,je):k.y));return Ye?rt.pipe((0,v.Z)(Ye)):rt}function be(ke,Ze,Ye){ke?(0,_e.f)(Ye,ke,Ze):Ze()}},7272:(_t,Ue,b)=>{"use strict";b.d(Ue,{z:()=>v});var h=b(8189),m=b(3269),k=b(8996);function v(...C){return function s(){return(0,h.J)(1)}()((0,k.D)(C,(0,m.yG)(C)))}},9770:(_t,Ue,b)=>{"use strict";b.d(Ue,{P:()=>m});var h=b(8306),s=b(8421);function m(k){return new h.y(v=>{(0,s.Xf)(k()).subscribe(v)})}},515:(_t,Ue,b)=>{"use strict";b.d(Ue,{E:()=>s});const s=new(b(8306).y)(v=>v.complete())},4128:(_t,Ue,b)=>{"use strict";b.d(Ue,{D:()=>te});var h=b(8306),s=b(4742),m=b(8421),k=b(3269),v=b(5403),C=b(3268),q=b(1810);function te(..._e){const re=(0,k.jO)(_e),{args:we,keys:be}=(0,s.D)(_e),ke=new h.y(Ze=>{const{length:Ye}=we;if(!Ye)return void Ze.complete();const $e=new Array(Ye);let Te=Ye,rt=Ye;for(let je=0;je<Ye;je++){let zt=!1;(0,m.Xf)(we[je]).subscribe((0,v.x)(Ze,ut=>{zt||(zt=!0,rt--),$e[je]=ut},()=>Te--,void 0,()=>{(!Te||!zt)&&(rt||Ze.next(be?(0,q.n)(be,$e):$e),Ze.complete())}))}});return re?ke.pipe((0,C.Z)(re)):ke}},8996:(_t,Ue,b)=>{"use strict";b.d(Ue,{D:()=>ze});var h=b(8421),s=b(5363),m=b(9468),C=b(8306),te=b(2202),_e=b(576),re=b(9672);function be(Re,tt){if(!Re)throw new Error("Iterable cannot be null");return new C.y(Fe=>{(0,re.f)(Fe,tt,()=>{const me=Re[Symbol.asyncIterator]();(0,re.f)(Fe,tt,()=>{me.next().then(gt=>{gt.done?Fe.complete():Fe.next(gt.value)})},0,!0)})})}var ke=b(3670),Ze=b(8239),Ye=b(1144),$e=b(6495),Te=b(2206),rt=b(4532),je=b(3260);function ze(Re,tt){return tt?function ut(Re,tt){if(null!=Re){if((0,ke.c)(Re))return function k(Re,tt){return(0,h.Xf)(Re).pipe((0,m.R)(tt),(0,s.Q)(tt))}(Re,tt);if((0,Ye.z)(Re))return function q(Re,tt){return new C.y(Fe=>{let me=0;return tt.schedule(function(){me===Re.length?Fe.complete():(Fe.next(Re[me++]),Fe.closed||this.schedule())})})}(Re,tt);if((0,Ze.t)(Re))return function v(Re,tt){return(0,h.Xf)(Re).pipe((0,m.R)(tt),(0,s.Q)(tt))}(Re,tt);if((0,Te.D)(Re))return be(Re,tt);if((0,$e.T)(Re))return function we(Re,tt){return new C.y(Fe=>{let me;return(0,re.f)(Fe,tt,()=>{me=Re[te.h](),(0,re.f)(Fe,tt,()=>{let gt,Bt;try{({value:gt,done:Bt}=me.next())}catch(pn){return void Fe.error(pn)}Bt?Fe.complete():Fe.next(gt)},0,!0)}),()=>(0,_e.m)(null==me?void 0:me.return)&&me.return()})}(Re,tt);if((0,je.L)(Re))return function zt(Re,tt){return be((0,je.Q)(Re),tt)}(Re,tt)}throw(0,rt.z)(Re)}(Re,tt):(0,h.Xf)(Re)}},4968:(_t,Ue,b)=>{"use strict";b.d(Ue,{R:()=>re});var h=b(8421),s=b(8306),m=b(5577),k=b(1144),v=b(576),C=b(3268);const q=["addListener","removeListener"],te=["addEventListener","removeEventListener"],_e=["on","off"];function re(Ye,$e,Te,rt){if((0,v.m)(Te)&&(rt=Te,Te=void 0),rt)return re(Ye,$e,Te).pipe((0,C.Z)(rt));const[je,zt]=function Ze(Ye){return(0,v.m)(Ye.addEventListener)&&(0,v.m)(Ye.removeEventListener)}(Ye)?te.map(ut=>ze=>Ye[ut]($e,ze,Te)):function be(Ye){return(0,v.m)(Ye.addListener)&&(0,v.m)(Ye.removeListener)}(Ye)?q.map(we(Ye,$e)):function ke(Ye){return(0,v.m)(Ye.on)&&(0,v.m)(Ye.off)}(Ye)?_e.map(we(Ye,$e)):[];if(!je&&(0,k.z)(Ye))return(0,m.z)(ut=>re(ut,$e,Te))((0,h.Xf)(Ye));if(!je)throw new TypeError("Invalid event target");return new s.y(ut=>{const ze=(...Re)=>
1ut.next(1<Re.length?Re:Re[0]);return je(ze),()=>zt(ze)})}function we(Ye,$e){return Te=>rt=>Ye[Te]($e,rt)}},8421:(_t,Ue,b)=>{"use strict";b.d(Ue,{Xf:()=>ke});var h=b(7582),s=b(1144),m=b(8239),k=b(8306),v=b(3670),C=b(2206),q=b(4532),te=b(6495),_e=b(3260),re=b(576),we=b(7849),be=b(8822);function ke(ut){if(ut instanceof k.y)return ut;if(null!=ut){if((0,v.c)(ut))return function Ze(ut){return new k.y(ze=>{const Re=ut[be.L]();if((0,re.m)(Re.subscribe))return Re.subscribe(ze);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ut);if((0,s.z)(ut))return function Ye(ut){return new k.y(ze=>{for(let Re=0;Re<ut.length&&!ze.closed;Re++)ze.next(ut[Re]);ze.complete()})}(ut);if((0,m.t)(ut))return function $e(ut){return new k.y(ze=>{ut.then(Re=>{ze.closed||(ze.next(Re),ze.complete())},Re=>ze.error(Re)).then(null,we.h)})}(ut);if((0,C.D)(ut))return rt(ut);if((0,te.T)(ut))return function Te(ut){return new k.y(ze=>{for(const Re of ut)if(ze.next(Re),ze.closed)return;ze.complete()})}(ut);if((0,_e.L)(ut))return function je(ut){return rt((0,_e.Q)(ut))}(ut)}throw(0,q.z)(ut)}function rt(ut){return new k.y(ze=>{(function zt(ut,ze){var Re,tt,Fe,me;return(0,h.mG)(this,void 0,void 0,function*(){try{for(Re=(0,h.KL)(ut);!(tt=yield Re.next()).done;)if(ze.next(tt.value),ze.closed)return}catch(gt){Fe={error:gt}}finally{try{tt&&!tt.done&&(me=Re.return)&&(yield me.call(Re))}finally{if(Fe)throw Fe.error}}ze.complete()})})(ut,ze).catch(Re=>ze.error(Re))})}},6451:(_t,Ue,b)=>{"use strict";b.d(Ue,{T:()=>C});var h=b(8189),s=b(8421),m=b(515),k=b(3269),v=b(8996);function C(...q){const te=(0,k.yG)(q),_e=(0,k._6)(q,1/0),re=q;return re.length?1===re.length?(0,s.Xf)(re[0]):(0,h.J)(_e)((0,v.D)(re,te)):m.E}},9646:(_t,Ue,b)=>{"use strict";b.d(Ue,{of:()=>m});var h=b(3269),s=b(8996);function m(...k){const v=(0,h.yG)(k);return(0,s.D)(k,v)}},2843:(_t,Ue,b)=>{"use strict";b.d(Ue,{_:()=>m});var h=b(8306),s=b(576);function m(k,v){const C=(0,s.m)(k)?k:()=>k,q=te=>te.error(C());return new h.y(v?te=>v.schedule(q,0,te):q)}},5963:(_t,Ue,b)=>{"use strict";b.d(Ue,{H:()=>v});var h=b(8306),s=b(4986),m=b(3532);function v(C=0,q,te=s.P){let _e=-1;return null!=q&&((0,m.K)(q)?te=q:_e=q),new h.y(re=>{let we=function k(C){return C instanceof Date&&!isNaN(C)}(C)?+C-te.now():C;we<0&&(we=0);let be=0;return te.schedule(function(){re.closed||(re.next(be++),0<=_e?this.schedule(void 0,_e):re.complete())},we)})}},5403:(_t,Ue,b)=>{"use strict";b.d(Ue,{x:()=>s});var h=b(930);function s(k,v,C,q,te){return new m(k,v,C,q,te)}class m extends h.Lv{constructor(v,C,q,te,_e,re){super(v),this.onFinalize=_e,this.shouldUnsubscribe=re,this._next=C?function(we){try{C(we)}catch(be){v.error(be)}}:super._next,this._error=te?function(we){try{te(we)}catch(be){v.error(be)}finally{this.unsubscribe()}}:super._error,this._complete=q?function(){try{q()}catch(we){v.error(we)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var v;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:C}=this;super.unsubscribe(),!C&&(null===(v=this.onFinalize)||void 0===v||v.call(this))}}}},262:(_t,Ue,b)=>{"use strict";b.d(Ue,{K:()=>k});var h=b(8421),s=b(5403),m=b(4482);function k(v){return(0,m.e)((C,q)=>{let re,te=null,_e=!1;te=C.subscribe((0,s.x)(q,void 0,void 0,we=>{re=(0,h.Xf)(v(we,k(v)(C))),te?(te.unsubscribe(),te=null,re.subscribe(q)):_e=!0})),_e&&(te.unsubscribe(),te=null,re.subscribe(q))})}},4351:(_t,Ue,b)=>{"use strict";b.d(Ue,{b:()=>m});var h=b(5577),s=b(576);function m(k,v){return(0,s.m)(v)?(0,h.z)(k,v,1):(0,h.z)(k,1)}},8372:(_t,Ue,b)=>{"use strict";b.d(Ue,{b:()=>k});var h=b(4986),s=b(4482),m=b(5403);function k(v,C=h.z){return(0,s.e)((q,te)=>{let _e=null,re=null,we=null;const be=()=>{if(_e){_e.unsubscribe(),_e=null;const Ze=re;re=null,te.next(Ze)}};function ke(){const Ze=we+v,Ye=C.now();if(Ye<Ze)return _e=this.schedule(void 0,Ze-Ye),void te.add(_e);be()}q.subscribe((0,m.x)(te,Ze=>{re=Ze,we=C.now(),_e||(_e=C.schedule(ke,v),te.add(_e))},()=>{be(),te.complete()},void 0,()=>{re=_e=null}))})}},6590:(_t,Ue,b)=>{"use strict";b.d(Ue,{d:()=>m});var h=b(4482),s=b(5403);function m(k){return(0,h.e)((v,C)=>{let q=!1;v.subscribe((0,s.x)(C,te=>{q=!0,C.next(te)},()=>{q||C.next(k),C.complete()}
1))})}},1884:(_t,Ue,b)=>{"use strict";b.d(Ue,{x:()=>k});var h=b(4671),s=b(4482),m=b(5403);function k(C,q=h.y){return C=null!=C?C:v,(0,s.e)((te,_e)=>{let re,we=!0;te.subscribe((0,m.x)(_e,be=>{const ke=q(be);(we||!C(re,ke))&&(we=!1,re=ke,_e.next(be))}))})}function v(C,q){return C===q}},9300:(_t,Ue,b)=>{"use strict";b.d(Ue,{h:()=>m});var h=b(4482),s=b(5403);function m(k,v){return(0,h.e)((C,q)=>{let te=0;C.subscribe((0,s.x)(q,_e=>k.call(v,_e,te++)&&q.next(_e)))})}},8746:(_t,Ue,b)=>{"use strict";b.d(Ue,{x:()=>s});var h=b(4482);function s(m){return(0,h.e)((k,v)=>{try{k.subscribe(v)}finally{v.add(m)}})}},590:(_t,Ue,b)=>{"use strict";b.d(Ue,{P:()=>q});var h=b(6805),s=b(9300),m=b(5698),k=b(6590),v=b(8068),C=b(4671);function q(te,_e){const re=arguments.length>=2;return we=>we.pipe(te?(0,s.h)((be,ke)=>te(be,ke,we)):C.y,(0,m.q)(1),re?(0,k.d)(_e):(0,v.T)(()=>new h.K))}},4004:(_t,Ue,b)=>{"use strict";b.d(Ue,{U:()=>m});var h=b(4482),s=b(5403);function m(k,v){return(0,h.e)((C,q)=>{let te=0;C.subscribe((0,s.x)(q,_e=>{q.next(k.call(v,_e,te++))}))})}},8189:(_t,Ue,b)=>{"use strict";b.d(Ue,{J:()=>m});var h=b(5577),s=b(4671);function m(k=1/0){return(0,h.z)(s.y,k)}},5577:(_t,Ue,b)=>{"use strict";b.d(Ue,{z:()=>te});var h=b(4004),s=b(8421),m=b(4482),k=b(9672),v=b(5403),q=b(576);function te(_e,re,we=1/0){return(0,q.m)(re)?te((be,ke)=>(0,h.U)((Ze,Ye)=>re(be,Ze,ke,Ye))((0,s.Xf)(_e(be,ke))),we):("number"==typeof re&&(we=re),(0,m.e)((be,ke)=>function C(_e,re,we,be,ke,Ze,Ye,$e){const Te=[];let rt=0,je=0,zt=!1;const ut=()=>{zt&&!Te.length&&!rt&&re.complete()},ze=tt=>rt<be?Re(tt):Te.push(tt),Re=tt=>{Ze&&re.next(tt),rt++;let Fe=!1;(0,s.Xf)(we(tt,je++)).subscribe((0,v.x)(re,me=>{null==ke||ke(me),Ze?ze(me):re.next(me)},()=>{Fe=!0},void 0,()=>{if(Fe)try{for(rt--;Te.length&&rt<be;){const me=Te.shift();Ye?(0,k.f)(re,Ye,()=>Re(me)):Re(me)}ut()}catch(me){re.error(me)}}))};return _e.subscribe((0,v.x)(re,ze,()=>{zt=!0,ut()})),()=>{null==$e||$e()}}(be,ke,_e,we)))}},5363:(_t,Ue,b)=>{"use strict";b.d(Ue,{Q:()=>k});var h=b(9672),s=b(4482),m=b(5403);function k(v,C=0){return(0,s.e)((q,te)=>{q.subscribe((0,m.x)(te,_e=>(0,h.f)(te,v,()=>te.next(_e),C),()=>(0,h.f)(te,v,()=>te.complete(),C),_e=>(0,h.f)(te,v,()=>te.error(_e),C)))})}},5026:(_t,Ue,b)=>{"use strict";b.d(Ue,{R:()=>k});var h=b(4482),s=b(5403);function m(v,C,q,te,_e){return(re,we)=>{let be=q,ke=C,Ze=0;re.subscribe((0,s.x)(we,Ye=>{const $e=Ze++;ke=be?v(ke,Ye,$e):(be=!0,Ye),te&&we.next(ke)},_e&&(()=>{be&&we.next(ke),we.complete()})))}}function k(v,C){return(0,h.e)(m(v,C,arguments.length>=2,!0))}},3099:(_t,Ue,b)=>{"use strict";b.d(Ue,{B:()=>v});var h=b(8421),s=b(7579),m=b(930),k=b(4482);function v(q={}){const{connector:te=(()=>new s.x),resetOnError:_e=!0,resetOnComplete:re=!0,resetOnRefCountZero:we=!0}=q;return be=>{let ke,Ze,Ye,$e=0,Te=!1,rt=!1;const je=()=>{null==Ze||Ze.unsubscribe(),Ze=void 0},zt=()=>{je(),ke=Ye=void 0,Te=rt=!1},ut=()=>{const ze=ke;zt(),null==ze||ze.unsubscribe()};return(0,k.e)((ze,Re)=>{$e++,!rt&&!Te&&je();const tt=Ye=null!=Ye?Ye:te();Re.add(()=>{$e--,0===$e&&!rt&&!Te&&(Ze=C(ut,we))}),tt.subscribe(Re),!ke&&$e>0&&(ke=new m.Hp({next:Fe=>tt.next(Fe),error:Fe=>{rt=!0,je(),Ze=C(zt,_e,Fe),tt.error(Fe)},complete:()=>{Te=!0,je(),Ze=C(zt,re),tt.complete()}}),(0,h.Xf)(ze).subscribe(ke))})(be)}}function C(q,te,..._e){if(!0===te)return void q();if(!1===te)return;const re=new m.Hp({next:()=>{re.unsubscribe(),q()}});return te(..._e).subscribe(re)}},5684:(_t,Ue,b)=>{"use strict";b.d(Ue,{T:()=>s});var h=b(9300);function s(m){return(0,h.h)((k,v)=>m<=v)}},8675:(_t,Ue,b)=>{"use strict";b.d(Ue,{O:()=>k});var h=b(7272),s=b(3269),m=b(4482);function k(...v){const C=(0,s.yG)(v);return(0,m.e)((q,te)=>{(C?(0,h.z)(v,q,C):(0,h.z)(v,q)).subscribe(te)})}},9468:(_t,Ue,b)=>{"use strict";b.d(Ue,{R:()=>s});var h=b(4482);function s(m,k=0){return(0,h.e)((v,C)=>{C.add(m.schedule(()=>v.subscribe(C),k))})}},3900:(_t,Ue,b)=>{"use strict";b.d(Ue,{w:()=>k});var h=b(8421),s=b(4482),m=b(5403);function k(v,C){return(0,s.e)((q,te)=>{let _e=null,re=0,we=!1;const be=()=>we&&!_e&&te.complete();q.subscribe((0,m.x)(te,ke=>{null==_e||_e.unsubscribe();let Ze=0;const Ye=re++;(0,h.Xf)(v(ke,Ye)).subscribe(_e=(0,m.x)(te,$e=>te.next(C?C(ke,$e,Ye,Ze++):$e),()=>
1{_e=null,be()}))},()=>{we=!0,be()}))})}},5698:(_t,Ue,b)=>{"use strict";b.d(Ue,{q:()=>k});var h=b(515),s=b(4482),m=b(5403);function k(v){return v<=0?()=>h.E:(0,s.e)((C,q)=>{let te=0;C.subscribe((0,m.x)(q,_e=>{++te<=v&&(q.next(_e),v<=te&&q.complete())}))})}},2722:(_t,Ue,b)=>{"use strict";b.d(Ue,{R:()=>v});var h=b(4482),s=b(5403),m=b(8421),k=b(5032);function v(C){return(0,h.e)((q,te)=>{(0,m.Xf)(C).subscribe((0,s.x)(te,()=>te.complete(),k.Z)),!te.closed&&q.subscribe(te)})}},8505:(_t,Ue,b)=>{"use strict";b.d(Ue,{b:()=>v});var h=b(576),s=b(4482),m=b(5403),k=b(4671);function v(C,q,te){const _e=(0,h.m)(C)||q||te?{next:C,error:q,complete:te}:C;return _e?(0,s.e)((re,we)=>{var be;null===(be=_e.subscribe)||void 0===be||be.call(_e);let ke=!0;re.subscribe((0,m.x)(we,Ze=>{var Ye;null===(Ye=_e.next)||void 0===Ye||Ye.call(_e,Ze),we.next(Ze)},()=>{var Ze;ke=!1,null===(Ze=_e.complete)||void 0===Ze||Ze.call(_e),we.complete()},Ze=>{var Ye;ke=!1,null===(Ye=_e.error)||void 0===Ye||Ye.call(_e,Ze),we.error(Ze)},()=>{var Ze,Ye;ke&&(null===(Ze=_e.unsubscribe)||void 0===Ze||Ze.call(_e)),null===(Ye=_e.finalize)||void 0===Ye||Ye.call(_e)}))}):k.y}},8068:(_t,Ue,b)=>{"use strict";b.d(Ue,{T:()=>k});var h=b(6805),s=b(4482),m=b(5403);function k(C=v){return(0,s.e)((q,te)=>{let _e=!1;q.subscribe((0,m.x)(te,re=>{_e=!0,te.next(re)},()=>_e?te.complete():te.error(C())))})}function v(){return new h.K}},4408:(_t,Ue,b)=>{"use strict";b.d(Ue,{o:()=>v});var h=b(727);class s extends h.w0{constructor(q,te){super()}schedule(q,te=0){return this}}const m={setInterval(C,q,...te){const{delegate:_e}=m;return(null==_e?void 0:_e.setInterval)?_e.setInterval(C,q,...te):setInterval(C,q,...te)},clearInterval(C){const{delegate:q}=m;return((null==q?void 0:q.clearInterval)||clearInterval)(C)},delegate:void 0};var k=b(8737);class v extends s{constructor(q,te){super(q,te),this.scheduler=q,this.work=te,this.pending=!1}schedule(q,te=0){var _e;if(this.closed)return this;this.state=q;const re=this.id,we=this.scheduler;return null!=re&&(this.id=this.recycleAsyncId(we,re,te)),this.pending=!0,this.delay=te,this.id=null!==(_e=this.id)&&void 0!==_e?_e:this.requestAsyncId(we,this.id,te),this}requestAsyncId(q,te,_e=0){return m.setInterval(q.flush.bind(q,this),_e)}recycleAsyncId(q,te,_e=0){if(null!=_e&&this.delay===_e&&!1===this.pending)return te;null!=te&&m.clearInterval(te)}execute(q,te){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const _e=this._execute(q,te);if(_e)return _e;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(q,te){let re,_e=!1;try{this.work(q)}catch(we){_e=!0,re=we||new Error("Scheduled action threw falsy error")}if(_e)return this.unsubscribe(),re}unsubscribe(){if(!this.closed){const{id:q,scheduler:te}=this,{actions:_e}=te;this.work=this.state=this.scheduler=null,this.pending=!1,(0,k.P)(_e,this),null!=q&&(this.id=this.recycleAsyncId(te,q,null)),this.delay=null,super.unsubscribe()}}}},7565:(_t,Ue,b)=>{"use strict";b.d(Ue,{v:()=>m});var h=b(6063);class s{constructor(v,C=s.now){this.schedulerActionCtor=v,this.now=C}schedule(v,C=0,q){return new this.schedulerActionCtor(this,v).schedule(q,C)}}s.now=h.l.now;class m extends s{constructor(v,C=s.now){super(v,C),this.actions=[],this._active=!1}flush(v){const{actions:C}=this;if(this._active)return void C.push(v);let q;this._active=!0;do{if(q=v.execute(v.state,v.delay))break}while(v=C.shift());if(this._active=!1,q){for(;v=C.shift();)v.unsubscribe();throw q}}}},4986:(_t,Ue,b)=>{"use strict";b.d(Ue,{P:()=>k,z:()=>m});var h=b(4408);const m=new(b(7565).v)(h.o),k=m},6063:(_t,Ue,b)=>{"use strict";b.d(Ue,{l:()=>h});const h={now:()=>(h.delegate||Date).now(),delegate:void 0}},3410:(_t,Ue,b)=>{"use strict";b.d(Ue,{z:()=>h});const h={setTimeout(s,m,...k){const{delegate:v}=h;return(null==v?void 0:v.setTimeout)?v.setTimeout(s,m,...k):setTimeout(s,m,...k)},clearTimeout(s){const{delegate:m}=h;return((null==m?void 0:m.clearTimeout)||clearTimeout)(s)},delegate:void 0}},2202:(_t,Ue,b)=>{"use strict";b.d(Ue,{h:()=>s});const s=function h(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(_t,Ue,b)=>{"use strict";b.d(Ue,{L:()=>h});const h="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(_t,Ue,b)=>{"use strict";b.d(Ue,{K:()=>s});const s=(0,b(3888).d)(m=>function(){m(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(_t,Ue,b)=>{"use strict";b.d(Ue,{_6:()=>C,jO:()=>k,yG:()=>v});var h=b(576),s=b(3532);function m(q){return q[q.length-1]}function k(q){return(0,h.m)(m(q))?q.pop():void 0}function v(q){return(0,s.K)(m(q))?q.pop():void 0}function C(q,te){return"number"==typeof m(q)?q.pop():te}},4742:(_t,Ue,b)=>{"use strict";b.d(Ue,{D:()=>v});const{isArray:h}=Array,{getPrototypeOf:s,prototype:m,keys:k}=Object;function v(q){if(1===q.length){const te=q[0];if(h(te))return{args:te,keys:null};if(function C(q){return q&&"object"==typeof q&&s(q)===m}(te)){const _e=k(te);return{args:_e.map(re=>te[re]),keys:_e}}}return{args:q,keys:null}}},8737:(_t,Ue,b)=>{"use strict";function h(s,m){if(s){const k=s.indexOf(m);0<=k&&s.splice(k,1)}}b.d(Ue,{P:()=>h})},3888:(_t,Ue,b)=>{"use strict";function h(s){const k=s(v=>{Error.call(v),v.stack=(new Error).stack});return k.prototype=Object.create(Error.prototype),k.prototype.constructor=k,k}b.d(Ue,{d:()=>h})},1810:(_t,Ue,b)=>{"use strict";function h(s,m){return s.reduce((k,v,C)=>(k[v]=m[C],k),{})}b.d(Ue,{n:()=>h})}
1,2806:(_t,Ue,b)=>{"use strict";b.d(Ue,{O:()=>k,x:()=>m});var h=b(2416);let s=null;function m(v){if(h.v.useDeprecatedSynchronousErrorHandling){const C=!s;if(C&&(s={errorThrown:!1,error:null}),v(),C){const{errorThrown:q,error:te}=s;if(s=null,q)throw te}}else v()}function k(v){h.v.useDeprecatedSynchronousErrorHandling&&s&&(s.errorThrown=!0,s.error=v)}},9672:(_t,Ue,b)=>{"use strict";function h(s,m,k,v=0,C=!1){const q=m.schedule(function(){k(),C?s.add(this.schedule(null,v)):this.unsubscribe()},v);if(s.add(q),!C)return q}b.d(Ue,{f:()=>h})},4671:(_t,Ue,b)=>{"use strict";function h(s){return s}b.d(Ue,{y:()=>h})},1144:(_t,Ue,b)=>{"use strict";b.d(Ue,{z:()=>h});const h=s=>s&&"number"==typeof s.length&&"function"!=typeof s},2206:(_t,Ue,b)=>{"use strict";b.d(Ue,{D:()=>s});var h=b(576);function s(m){return Symbol.asyncIterator&&(0,h.m)(null==m?void 0:m[Symbol.asyncIterator])}},576:(_t,Ue,b)=>{"use strict";function h(s){return"function"==typeof s}b.d(Ue,{m:()=>h})},3670:(_t,Ue,b)=>{"use strict";b.d(Ue,{c:()=>m});var h=b(8822),s=b(576);function m(k){return(0,s.m)(k[h.L])}},6495:(_t,Ue,b)=>{"use strict";b.d(Ue,{T:()=>m});var h=b(2202),s=b(576);function m(k){return(0,s.m)(null==k?void 0:k[h.h])}},8239:(_t,Ue,b)=>{"use strict";b.d(Ue,{t:()=>s});var h=b(576);function s(m){return(0,h.m)(null==m?void 0:m.then)}},3260:(_t,Ue,b)=>{"use strict";b.d(Ue,{L:()=>k,Q:()=>m});var h=b(7582),s=b(576);function m(v){return(0,h.FC)(this,arguments,function*(){const q=v.getReader();try{for(;;){const{value:te,done:_e}=yield(0,h.qq)(q.read());if(_e)return yield(0,h.qq)(void 0);yield yield(0,h.qq)(te)}}finally{q.releaseLock()}})}function k(v){return(0,s.m)(null==v?void 0:v.getReader)}},3532:(_t,Ue,b)=>{"use strict";b.d(Ue,{K:()=>s});var h=b(576);function s(m){return m&&(0,h.m)(m.schedule)}},4482:(_t,Ue,b)=>{"use strict";b.d(Ue,{A:()=>s,e:()=>m});var h=b(576);function s(k){return(0,h.m)(null==k?void 0:k.lift)}function m(k){return v=>{if(s(v))return v.lift(function(C){try{return k(C,this)}catch(q){this.error(q)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(_t,Ue,b)=>{"use strict";b.d(Ue,{Z:()=>k});var h=b(4004);const{isArray:s}=Array;function k(v){return(0,h.U)(C=>function m(v,C){return s(C)?v(...C):v(C)}(v,C))}},5032:(_t,Ue,b)=>{"use strict";function h(){}b.d(Ue,{Z:()=>h})},7849:(_t,Ue,b)=>{"use strict";b.d(Ue,{h:()=>m});var h=b(2416),s=b(3410);function m(k){s.z.setTimeout(()=>{const{onUnhandledError:v}=h.v;if(!v)throw k;v(k)})}},4532:(_t,Ue,b)=>{"use strict";function h(s){return new TypeError(`You provided ${null!==s&&"object"==typeof s?"an invalid object":`'${s}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}b.d(Ue,{z:()=>h})},6700:(_t,Ue,b)=>{var h={"./af":7088,"./af.js":7088,"./ar":7038,"./ar-dz":2502,"./ar-dz.js":2502,"./ar-kw":128,"./ar-kw.js":128,"./ar-ly":4519,"./ar-ly.js":4519,"./ar-ma":5443,"./ar-ma.js":5443,"./ar-ps":4523,"./ar-ps.js":4523,"./ar-sa":7642,"./ar-sa.js":7642,"./ar-tn":8592,"./ar-tn.js":8592,"./ar.js":7038,"./az":1213,"./az.js":1213,"./be":9191,"./be.js":9191,"./bg":322,"./bg.js":322,"./bm":8042,"./bm.js":8042,"./bn":9620,"./bn-bd":5903,"./bn-bd.js":5903,"./bn.js":9620,"./bo":9645,"./bo.js":9645,"./br":5020,"./br.js":5020,"./bs":4792,"./bs.js":4792,"./ca":7980,"./ca.js":7980,"./cs":7322,"./cs.js":7322,"./cv":365,"./cv.js":365,"./cy":2092,"./cy.js":2092,"./da":7387,"./da.js":7387,"./de":4307,"./de-at":9459,"./de-at.js":9459,"./de-ch":3694,"./de-ch.js":3694,"./de.js":4307,"./dv":9659,"./dv.js":9659,"./el":3460,"./el.js":3460,"./en-au":4369,"./en-au.js":4369,"./en-ca":530,"./en-ca.js":530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":3391,"./en-ie.js":3391,"./en-il":5414,"./en-il.js":5414,"./en-in":9615,"./en-in.js":9615,"./en-nz":1248,"./en-nz.js":1248,"./en-sg":3767,"./en-sg.js":3767,"./eo":4530,"./eo.js":4530,"./es":6866,"./es-do":8944,"./es-do.js":8944,"./es-mx":9116,"./es-mx.js":9116,"./es-us":3609,"./es-us.js":3609,"./es.js":6866,"./et":6725,"./et.js":6725,"./eu":7931,"./eu.js":7931,"./fa":6417,"./fa.js":6417,"./fi":944,"./fi.js":944,"./fil":1766,"./fil.js":1766,"./fo":5867,"./fo.js":5867,"./fr":1636,"./fr-ca":6848,"./fr-ca.js":6848,"./fr-ch":7773,"./fr-ch.js":7773,"./fr.js":1636,"./fy":4940,"./fy.js":4940,"./ga":1402,"./ga.js":1402,"./gd":6924,"./gd.js":6924,"./gl":6398,"./gl.js":6398,"./gom-deva":2457,"./gom-deva.js":2457,"./gom-latn":2545,"./gom-latn.js":2545,"./gu":2641,"./gu.js":2641,"./he":7536,"./he.js":7536,"./hi":6335,"./hi.js":6335,"./hr":7458,"./hr.js":7458,"./hu":6540,"./hu.js":6540,"./hy-am":5283,"./hy-am.js":5283,"./id":8780,"./id.js":8780,"./is":4205,"./is.js":4205,"./it":4211,"./it-ch":9985,"./it-ch.js":9985,"./it.js":4211,"./ja":1003,"./ja.js":1003,"./jv":420,"./jv.js":420,"./ka":851,"./ka.js":851,"./kk":6074,"./kk.js":6074,"./km":3343,"./km.js":3343,"./kn":4799,"./kn.js":4799,"./ko":3549,"./ko.js":3549,"./ku":1037,"./ku-kmr":3775,"./ku-kmr.js":3775,"./ku.js":1037,"./ky":3125,"./ky.js":3125,"./lb":9586,"./lb.js":9586,"./lo":2349,"./lo.js":2349,"./lt":2400,"./lt.js":2400,"./lv":9991,"./lv.js":9991,"./me":8477,"./me.js":8477,"./mi":5118,"./mi.js":5118,"./mk":5943,"./mk.js":5943,"./ml":3849,"./ml.js":3849,"./mn":1977,"./mn.js":1977,"./mr":6184,"./mr.js":6184,"./ms":485,"./ms-my":4524,"./ms-my.js":4524,"./ms.js":485,"./mt":6681,"./mt.js":6681,"./my":2024,"./my.js":2024,"./nb":2688,"./nb.js":2688,"./ne":8914,"./ne.js":8914,"./nl":1758,"./nl-be":2272,"./nl-be.js":2272,"./nl.js":1758,"./nn":1510,"./nn.js":1510,"./oc-lnc":2797,"./oc-lnc.js":2797,"./pa-in":7944,"./pa-in.js":7944,"./pl":1605,"./pl.js":1605,"./pt":4225,"./pt-br":3840,"./pt-br.js":3840,"./pt.js":4225,"./ro":5128,"./ro.js":5128,"./ru":5127,"./ru.js":5127,"./sd":2525,"./sd.js":2525,"./se"
vendor: 4,168 bytes, line 1
1:9893,"./se.js":9893,"./si":3123,"./si.js":3123,"./sk":9635,"./sk.js":9635,"./sl":8106,"./sl.js":8106,"./sq":8799,"./sq.js":8799,"./sr":7949,"./sr-cyrl":2872,"./sr-cyrl.js":2872,"./sr.js":7949,"./ss":6167,"./ss.js":6167,"./sv":9713,"./sv.js":9713,"./sw":1982,"./sw.js":1982,"./ta":2732,"./ta.js":2732,"./te":3636,"./te.js":3636,"./tet":2115,"./tet.js":2115,"./tg":9801,"./tg.js":9801,"./th":2868,"./th.js":2868,"./tk":1310,"./tk.js":1310,"./tl-ph":2360,"./tl-ph.js":2360,"./tlh":6645,"./tlh.js":6645,"./tr":8374,"./tr.js":8374,"./tzl":256,"./tzl.js":256,"./tzm":1595,"./tzm-latn":1631,"./tzm-latn.js":1631,"./tzm.js":1595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":5610,"./uk.js":5610,"./ur":6077,"./ur.js":6077,"./uz":2862,"./uz-latn":2207,"./uz-latn.js":2207,"./uz.js":2862,"./vi":8093,"./vi.js":8093,"./x-pseudo":5590,"./x-pseudo.js":5590,"./yo":9058,"./yo.js":9058,"./zh-cn":7908,"./zh-cn.js":7908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":1133,"./zh-mo.js":1133,"./zh-tw":3291,"./zh-tw.js":3291};function s(k){var v=m(k);return b(v)}function m(k){if(!b.o(h,k)){var v=new Error("Cannot find module '"+k+"'");throw v.code="MODULE_NOT_FOUND",v}return h[k]}s.keys=function(){return Object.keys(h)},s.resolve=m,_t.exports=s,s.id=6700},1777:(_t,Ue,b)=>{"use strict";b.d(Ue,{IO:()=>Ye,LC:()=>s,SB:()=>_e,X$:()=>k,ZE:()=>je,ZN:()=>rt,_j:()=>h,eR:()=>we,jt:()=>v,k1:()=>zt,l3:()=>m,oB:()=>te,pV:()=>ke,ru:()=>C,vP:()=>q});class h{}class s{}const m="*";function k(ut,ze){return{type:7,name:ut,definitions:ze,options:{}}}function v(ut,ze=null){return{type:4,styles:ze,timings:ut}}function C(ut,ze=null){return{type:3,steps:ut,options:ze}}function q(ut,ze=null){return{type:2,steps:ut,options:ze}}function te(ut){return{type:6,styles:ut,offset:null}}function _e(ut,ze,Re){return{type:0,name:ut,styles:ze,options:Re}}function we(ut,ze,Re=null){return{type:1,expr:ut,animation:ze,options:Re}}function ke(ut=null){return{type:9,options:ut}}function Ye(ut,ze,Re=null){return{type:11,selector:ut,animation:ze,options:Re}}function Te(ut){Promise.resolve(null).then(ut)}class rt{constructor(ze=0,Re=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=ze+Re}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ze=>ze()),this._onDoneFns=[])}onStart(ze){this._onStartFns.push(ze)}onDone(ze){this._onDoneFns.push(ze)}onDestroy(ze){this._onDestroyFns.push(ze)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Te(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(ze=>ze()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(ze=>ze()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(ze){this._position=this.totalTime?ze*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(ze){const Re="start"==ze?this._onStartFns:this._onDoneFns;Re.forEach(tt=>tt()),Re.length=0}}class je{constructor(ze){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=ze;let Re=0,tt=0,Fe=0;const me=this.players.length;0==me?Te(()=>this._onFinish()):this.players.forEach(gt=>{gt.onDone(()=>{++Re==me&&this._onFinish()}),gt.onDestroy(()=>{++tt==me&&this._onDestroy()}),gt.onStart(()=>{++Fe==me&&this._onStart()})}),this.totalTime=this.players.reduce((gt,Bt)=>Math.max(gt,Bt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ze=>ze()),this._onDoneFns=[])}init(){this.players.forEach(ze=>ze.init())}onStart(ze){this._onStartFns.push(ze)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(ze=>ze()),this._onStartFns=[])}onDone(ze){this._onDoneFns.push(ze)}onDestroy(ze){this._onDestroyFns.push(ze)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEac
1h(ze=>ze.play())}pause(){this.players.forEach(ze=>ze.pause())}restart(){this.players.forEach(ze=>ze.restart())}finish(){this._onFinish(),this.players.forEach(ze=>ze.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(ze=>ze.destroy()),this._onDestroyFns.forEach(ze=>ze()),this._onDestroyFns=[])}reset(){this.players.forEach(ze=>ze.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(ze){const Re=ze*this.totalTime;this.players.forEach(tt=>{const Fe=tt.totalTime?Math.min(1,Re/tt.totalTime):1;tt.setPosition(Fe)})}getPosition(){const ze=this.players.reduce((Re,tt)=>null===Re||tt.totalTime>Re.totalTime?tt:Re,null);return null!=ze?ze.getPosition():0}beforeDestroy(){this.players.forEach(ze=>{ze.beforeDestroy&&ze.beforeDestroy()})}triggerCallback(ze){const Re="start"==ze?this._onStartFns:this._onDoneFns;Re.forEach(tt=>tt()),Re.length=0}}const zt="!"},5664:(_t,Ue,b)=>{"use strict";b.d(Ue,{Em:()=>en,Kd:()=>Yt,X6:()=>Ve,ic:()=>Mn,kH:()=>ni,qV:()=>_n,qm:()=>Se,rt:()=>Ke,s1:()=>jn,tE:()=>Si,yG:()=>Pt});var h=b(9808),s=b(5e3),m=b(925),k=b(7579),v=b(727),C=b(1135),q=b(9646),te=b(1159),_e=b(8505),re=b(8372),we=b(9300),be=b(4004),ke=b(5698),Ze=b(5684),Ye=b(1884),$e=b(2722),Te=b(3191),rt=b(7144);class mn{constructor(Be){this._items=Be,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new k.x,this._typeaheadSubscription=v.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=at=>at.disabled,this._pressedLetters=[],this.tabOut=new k.x,this.change=new k.x,Be instanceof s.n_E&&Be.changes.subscribe(at=>{if(this._activeItem){const mt=at.toArray().indexOf(this._activeItem);mt>-1&&mt!==this._activeItemIndex&&(this._activeItemIndex=mt)}})}skipPredicate(Be){return this._skipPredicateFn=Be,this}withWrap(Be=!0){return this._wrap=Be,this}withVerticalOrientation(Be=!0){return this._vertical=Be,this}withHorizontalOrientation(Be){return this._horizontal=Be,this}withAllowedModifierKeys(Be){return this._allowedModifierKeys=Be,this}withTypeAhead(Be=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,_e.b)(at=>this._pressedLetters.push(at)),(0,re.b)(Be),(0,we.h)(()=>this._pressedLetters.length>0),(0,be.U)(()=>this._pressedLetters.join(""))).subscribe(at=>{const Ot=this._getItemsArray();for(let mt=1;mt<Ot.length+1;mt++){const yn=(this._activeItemIndex+mt)%Ot.length,ei=Ot[yn];if(!this._skipPredicateFn(ei)&&0===ei.getLabel().toUpperCase().trim().indexOf(at)){this.setActiveItem(yn);break}}this._pressedLetters=[]}),this}withHomeAndEnd(Be=!0){return this._homeAndEnd=Be,this}setActiveItem(Be){const at=this._activeItem;this.updateActiveItem(Be),this._activeItem!==at&&this.change.next(this._activeItemIndex)}onKeydown(Be){const at=Be.keyCode,mt=["altKey","ctrlKey","metaKey","shiftKey"].every(yn=>!Be[yn]||this._allowedModifierKeys.indexOf(yn)>-1);switch(at){case te.Mf:return void this.tabOut.next();case te.JH:if(this._vertical&&mt){this.setNextItemActive();break}return;case te.LH:if(this._vertical&&mt){this.setPreviousItemActive();break}return;case te.SV:if(this._horizontal&&mt){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case te.oh:if(this._horizontal&&mt){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case te.Sd:if(this._homeAndEnd&&mt){this.setFirstItemActive();break}return;case te.uR:if(this._homeAndEnd&&mt){this.setLastItemActive();break}return;default:return void((mt||(0,te.Vb)(Be,"shiftKey"))&&(Be.key&&1===Be.key.length?this._letterKeyStream.next(Be.key.toLocaleUpperCase()):(at>=te.A&&at<=te.Z||at>=te.xE&&at<=te.aO)&&this._letterKeyStream.next(String.fromCharCode(at))))}this._pressedLetters=[],Be.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(Be){const at=this._getItemsArray(),Ot="number"==typeof Be?Be:at.indexOf(Be),mt=at[Ot];this._activeItem=null==mt?null:mt,this._activeItemIndex=Ot}_setActiveItemByDelta(Be){this._wrap?this._setActiveInWrapMode(Be):this._setActiveInDefaultMode(Be)}_setActiveInWrapMode(Be){const at=this._getItemsArray();for(let Ot=1;Ot<=at.length;Ot++){const mt=(this._activeItemIndex+Be*Ot+at.length)%at.length;if(!this._skipPredicateFn(at[mt]))return void this.setActiveItem(mt)}}_setActiveInDefaultMode(Be){this._setActiveItemByIndex(this._activeItemIndex+Be,Be)}_setActiveItemByIndex(Be,at){const Ot=this._getItemsArray();if(Ot[Be]){for(;this._skipPredicateFn(Ot[Be]);)if(!Ot[Be+=at])return;this.setActiveItem(Be)}}_getItemsArray(){return this._items instanceof s.n_E?this._items.toArray():this._items}}class jn extends mn{setActiveItem(Be){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Be),this.activeItem&&this.activeItem.setActiveStyles()}}class en extends mn{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Be){return this._origin=Be,this}setActiveItem(Be){super.setActiveItem(Be),this.activeItem&&this.activeItem.focus(this._origin)}}let Mn=(()=>{class Ee{constructor(at){this._platform=at}isDisabled(at){return at.hasAttribute("disabled")}isVisible(at){return function Dn(Ee){return!!(Ee.offsetWidth||Ee.offsetHeight||"function"==typeof Ee.getClientRects&&Ee.getClientRects().length)}(at)&&"visible"===getComputedStyle(at).visibility}isTabbable(at){if(!this._platform.isBrowser)return!1;const Ot=function Bn(Ee){try{return Ee.frameElement}catch(Be){return null}}(function Ut(Ee){return Ee.ownerDocument&&Ee.ownerDocument.defaultView||window}(at));if(Ot&&(-1===st(Ot)||!this.isVisible(Ot)))return!1;
1let mt=at.nodeName.toLowerCase(),yn=st(at);return at.hasAttribute("contenteditable")?-1!==yn:!("iframe"===mt||"object"===mt||this._platform.WEBKIT&&this._platform.IOS&&!function vt(Ee){let Be=Ee.nodeName.toLowerCase(),at="input"===Be&&Ee.type;return"text"===at||"password"===at||"select"===Be||"textarea"===Be}(at))&&("audio"===mt?!!at.hasAttribute("controls")&&-1!==yn:"video"===mt?-1!==yn&&(null!==yn||this._platform.FIREFOX||at.hasAttribute("controls")):at.tabIndex>=0)}isFocusable(at,Ot){return function ft(Ee){return!function Dt(Ee){return function it(Ee){return"input"==Ee.nodeName.toLowerCase()}(Ee)&&"hidden"==Ee.type}(Ee)&&(function vn(Ee){let Be=Ee.nodeName.toLowerCase();return"input"===Be||"select"===Be||"button"===Be||"textarea"===Be}(Ee)||function Mt(Ee){return function At(Ee){return"a"==Ee.nodeName.toLowerCase()}(Ee)&&Ee.hasAttribute("href")}(Ee)||Ee.hasAttribute("contenteditable")||ct(Ee))}(at)&&!this.isDisabled(at)&&((null==Ot?void 0:Ot.ignoreVisibility)||this.isVisible(at))}}return Ee.\u0275fac=function(at){return new(at||Ee)(s.LFG(m.t4))},Ee.\u0275prov=s.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();function ct(Ee){if(!Ee.hasAttribute("tabindex")||void 0===Ee.tabIndex)return!1;let Be=Ee.getAttribute("tabindex");return!(!Be||isNaN(parseInt(Be,10)))}function st(Ee){if(!ct(Ee))return null;const Be=parseInt(Ee.getAttribute("tabindex")||"",10);return isNaN(Be)?-1:Be}class tn{constructor(Be,at,Ot,mt,yn=!1){this._element=Be,this._checker=at,this._ngZone=Ot,this._document=mt,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,yn||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Be){this._enabled=Be,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Be,this._startAnchor),this._toggleAnchorTabIndex(Be,this._endAnchor))}destroy(){const Be=this._startAnchor,at=this._endAnchor;Be&&(Be.removeEventListener("focus",this.startAnchorListener),Be.remove()),at&&(at.removeEventListener("focus",this.endAnchorListener),at.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(Be){return new Promise(at=>{this._executeOnStable(()=>at(this.focusInitialElement(Be)))})}focusFirstTabbableElementWhenReady(Be){return new Promise(at=>{this._executeOnStable(()=>at(this.focusFirstTabbableElement(Be)))})}focusLastTabbableElementWhenReady(Be){return new Promise(at=>{this._executeOnStable(()=>at(this.focusLastTabbableElement(Be)))})}_getRegionBoundary(Be){const at=this._element.querySelectorAll(`[cdk-focus-region-${Be}], [cdkFocusRegion${Be}], [cdk-focus-${Be}]`);return"start"==Be?at.length?at[0]:this._getFirstTabbableElement(this._element):at.length?at[at.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Be){const at=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(at){if(!this._checker.isFocusable(at)){const Ot=this._getFirstTabbableElement(at);return null==Ot||Ot.focus(Be),!!Ot}return at.focus(Be),!0}return this.focusFirstTabbableElement(Be)}focusFirstTabbableElement(Be){const at=this._getRegionBoundary("start");return at&&at.focus(Be),!!at}focusLastTabbableElement(Be){const at=this._getRegionBoundary("end");return at&&at.focus(Be),!!at}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Be){if(this._checker.isFocusable(Be)&&this._checker.isTabbable(Be))return Be;const at=Be.children;for(let Ot=0;Ot<at.length;Ot++){const mt=at[Ot].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(at[Ot]):null;if(mt)return mt}return null}_getLastTabbableElement(Be){if(this._checker.isFocusable(Be)&&this._checker.isTabbable(Be))return Be;const at=Be.children;for(let Ot=at.length-1;Ot>=0;Ot--){const mt=at[Ot].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(at[Ot]):null;if(mt)return mt}return null}_createAnchor(){const Be=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Be),Be.classList.add("cdk-visually-hidden"),Be.classList.add("cdk-focus-trap-anchor"),Be.setAttribute("aria-hidden","true"),Be}_toggleAnchorTabIndex(Be,at){Be?at.setAttribute("tabindex","0"):at.removeAttribute("tabindex")}toggleAnchors(Be){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Be,this._startAnchor),this._toggleAnchorTabIndex(Be,this._endAnchor))}_executeOnStable(Be){this._ngZone.isStable?Be():this._ngZone.onStable.pipe((0,ke.q)(1)).subscribe(Be)}}let _n=(()=>{class Ee{constructor(at,Ot,mt){this._checker=at,this._ngZone=Ot,this._document=mt}create(at,Ot=!1){return new tn(at,this._checker,this._ngZone,this._document,Ot)}}return Ee.\u0275fac=function(at){return new(at||Ee)(s.LFG(Mn),s.LFG(s.R0b),s.LFG(h.K0))},Ee.\u0275prov=s.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();function Ve(Ee){return 0===Ee.buttons||0===Ee.offsetX&&0===Ee.offsetY}function Pt(Ee){const Be=Ee.touches&&Ee.touches[0]||Ee.changedTouches&&Ee.changedTouches[0];
1return!(!Be||-1!==Be.identifier||null!=Be.radiusX&&1!==Be.radiusX||null!=Be.radiusY&&1!==Be.radiusY)}const $=new s.OlP("cdk-input-modality-detector-options"),ue={ignoreKeys:[te.zL,te.jx,te.b2,te.MW,te.JU]},ae=(0,m.i$)({passive:!0,capture:!0});let Me=(()=>{class Ee{constructor(at,Ot,mt,yn){this._platform=at,this._mostRecentTarget=null,this._modality=new C.X(null),this._lastTouchMs=0,this._onKeydown=ei=>{var ht,Oe;(null===(Oe=null===(ht=this._options)||void 0===ht?void 0:ht.ignoreKeys)||void 0===Oe?void 0:Oe.some(De=>De===ei.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,m.sA)(ei))},this._onMousedown=ei=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Ve(ei)?"keyboard":"mouse"),this._mostRecentTarget=(0,m.sA)(ei))},this._onTouchstart=ei=>{Pt(ei)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,m.sA)(ei))},this._options=Object.assign(Object.assign({},ue),yn),this.modalityDetected=this._modality.pipe((0,Ze.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,Ye.x)()),at.isBrowser&&Ot.runOutsideAngular(()=>{mt.addEventListener("keydown",this._onKeydown,ae),mt.addEventListener("mousedown",this._onMousedown,ae),mt.addEventListener("touchstart",this._onTouchstart,ae)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ae),document.removeEventListener("mousedown",this._onMousedown,ae),document.removeEventListener("touchstart",this._onTouchstart,ae))}}return Ee.\u0275fac=function(at){return new(at||Ee)(s.LFG(m.t4),s.LFG(s.R0b),s.LFG(h.K0),s.LFG($,8))},Ee.\u0275prov=s.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();const nt=new s.OlP("liveAnnouncerElement",{providedIn:"root",factory:function Tt(){return null}}),Zt=new s.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Yt=(()=>{class Ee{constructor(at,Ot,mt,yn){this._ngZone=Ot,this._defaultOptions=yn,this._document=mt,this._liveElement=at||this._createLiveElement()}announce(at,...Ot){const mt=this._defaultOptions;let yn,ei;return 1===Ot.length&&"number"==typeof Ot[0]?ei=Ot[0]:[yn,ei]=Ot,this.clear(),clearTimeout(this._previousTimeout),yn||(yn=mt&&mt.politeness?mt.politeness:"polite"),null==ei&&mt&&(ei=mt.duration),this._liveElement.setAttribute("aria-live",yn),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(ht=>this._currentResolve=ht)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=at,"number"==typeof ei&&(this._previousTimeout=setTimeout(()=>this.clear(),ei)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var at,Ot;clearTimeout(this._previousTimeout),null===(at=this._liveElement)||void 0===at||at.remove(),this._liveElement=null,null===(Ot=this._currentResolve)||void 0===Ot||Ot.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const at="cdk-live-announcer-element",Ot=this._document.getElementsByClassName(at),mt=this._document.createElement("div");for(let yn=0;yn<Ot.length;yn++)Ot[yn].remove();return mt.classList.add(at),mt.classList.add("cdk-visually-hidden"),mt.setAttribute("aria-atomic","true"),mt.setAttribute("aria-live","polite"),this._document.body.appendChild(mt),mt}}return Ee.\u0275fac=function(at){return new(at||Ee)(s.LFG(nt,8),s.LFG(s.R0b),s.LFG(h.K0),s.LFG(Zt,8))},Ee.\u0275prov=s.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();const Cn=new s.OlP("cdk-focus-monitor-default-options"),Nn=(0,m.i$)({passive:!0,capture:!0});let Si=(()=>{class Ee{constructor(at,Ot,mt,yn,ei){this._ngZone=at,this._platform=Ot,this._inputModalityDetector=mt,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new k.x,this._rootNodeFocusAndBlurListener=ht=>{const Oe=(0,m.sA)(ht),De="focus"===ht.type?this._onFocus:this._onBlur;for(let U=Oe;U;U=U.parentElement)De.call(this,ht,U)},this._document=yn,this._detectionMode=(null==ei?void 0:ei.detectionMode)||0}monitor(at,Ot=!1){const mt=(0,Te.fI)(at);if(!this._platform.isBrowser||1!==mt.nodeType)return(0,q.of)(null);const yn=(0,m.kV)(mt)||this._getDocument(),ei=this._elementInfo.get(mt);if(ei)return Ot&&(ei.checkChildren=!0),ei.subject;
1const ht={checkChildren:Ot,subject:new k.x,rootNode:yn};return this._elementInfo.set(mt,ht),this._registerGlobalListeners(ht),ht.subject}stopMonitoring(at){const Ot=(0,Te.fI)(at),mt=this._elementInfo.get(Ot);mt&&(mt.subject.complete(),this._setClasses(Ot),this._elementInfo.delete(Ot),this._removeGlobalListeners(mt))}focusVia(at,Ot,mt){const yn=(0,Te.fI)(at);yn===this._getDocument().activeElement?this._getClosestElementsInfo(yn).forEach(([ht,Oe])=>this._originChanged(ht,Ot,Oe)):(this._setOrigin(Ot),"function"==typeof yn.focus&&yn.focus(mt))}ngOnDestroy(){this._elementInfo.forEach((at,Ot)=>this.stopMonitoring(Ot))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(at){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(at)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(at){return 1===this._detectionMode||!!(null==at?void 0:at.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(at,Ot){at.classList.toggle("cdk-focused",!!Ot),at.classList.toggle("cdk-touch-focused","touch"===Ot),at.classList.toggle("cdk-keyboard-focused","keyboard"===Ot),at.classList.toggle("cdk-mouse-focused","mouse"===Ot),at.classList.toggle("cdk-program-focused","program"===Ot)}_setOrigin(at,Ot=!1){this._ngZone.runOutsideAngular(()=>{this._origin=at,this._originFromTouchInteraction="touch"===at&&Ot,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(at,Ot){const mt=this._elementInfo.get(Ot),yn=(0,m.sA)(at);!mt||!mt.checkChildren&&Ot!==yn||this._originChanged(Ot,this._getFocusOrigin(yn),mt)}_onBlur(at,Ot){const mt=this._elementInfo.get(Ot);!mt||mt.checkChildren&&at.relatedTarget instanceof Node&&Ot.contains(at.relatedTarget)||(this._setClasses(Ot),this._emitOrigin(mt.subject,null))}_emitOrigin(at,Ot){this._ngZone.run(()=>at.next(Ot))}_registerGlobalListeners(at){if(!this._platform.isBrowser)return;const Ot=at.rootNode,mt=this._rootNodeFocusListenerCount.get(Ot)||0;mt||this._ngZone.runOutsideAngular(()=>{Ot.addEventListener("focus",this._rootNodeFocusAndBlurListener,Nn),Ot.addEventListener("blur",this._rootNodeFocusAndBlurListener,Nn)}),this._rootNodeFocusListenerCount.set(Ot,mt+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,$e.R)(this._stopInputModalityDetector)).subscribe(yn=>{this._setOrigin(yn,!0)}))}_removeGlobalListeners(at){const Ot=at.rootNode;if(this._rootNodeFocusListenerCount.has(Ot)){const mt=this._rootNodeFocusListenerCount.get(Ot);mt>1?this._rootNodeFocusListenerCount.set(Ot,mt-1):(Ot.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Nn),Ot.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Nn),this._rootNodeFocusListenerCount.delete(Ot))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(at,Ot,mt){this._setClasses(at,Ot),this._emitOrigin(mt.subject,Ot),this._lastFocusOrigin=Ot}_getClosestElementsInfo(at){const Ot=[];return this._elementInfo.forEach((mt,yn)=>{(yn===at||mt.checkChildren&&yn.contains(at))&&Ot.push([yn,mt])}),Ot}}return Ee.\u0275fac=function(at){return new(at||Ee)(s.LFG(s.R0b),s.LFG(m.t4),s.LFG(Me),s.LFG(h.K0,8),s.LFG(Cn,8))},Ee.\u0275prov=s.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),ni=(()=>{class Ee{constructor(at,Ot){this._elementRef=at,this._focusMonitor=Ot,this.cdkFocusChange=new s.vpe}ngAfterViewInit(){const at=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(at,1===at.nodeType&&at.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Ot=>this.cdkFocusChange.emit(Ot))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Ee.\u0275fac=function(at){return new(at||Ee)(s.Y36(s.SBq),s.Y36(Si))},Ee.\u0275dir=s.lG2({type:Ee,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Ee})();const Qn="cdk-high-contrast-black-on-white",lt="cdk-high-contrast-white-on-black",Qt="cdk-high-contrast-active";let Se=(()=>{class Ee{constructor(at,Ot){this._platform=at,this._document=Ot}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const at=this._document.createElement("div");at.style.backgroundColor="rgb(1,2,3)",at.style.position="absolute",this._document.body.appendChild(at);const Ot=this._document.defaultView||window,mt=Ot&&Ot.getComputedStyle?Ot.getComputedStyle(at):null,yn=(mt&&mt.backgroundColor||"").replace(/ /g,"");switch(at.remove(),yn){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}
1_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const at=this._document.body.classList;at.remove(Qt),at.remove(Qn),at.remove(lt),this._hasCheckedHighContrastMode=!0;const Ot=this.getHighContrastMode();1===Ot?(at.add(Qt),at.add(Qn)):2===Ot&&(at.add(Qt),at.add(lt))}}}return Ee.\u0275fac=function(at){return new(at||Ee)(s.LFG(m.t4),s.LFG(h.K0))},Ee.\u0275prov=s.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),Ke=(()=>{class Ee{constructor(at){at._applyBodyHighContrastModeCssClasses()}}return Ee.\u0275fac=function(at){return new(at||Ee)(s.LFG(Se))},Ee.\u0275mod=s.oAB({type:Ee}),Ee.\u0275inj=s.cJS({imports:[[rt.Q8]]}),Ee})()},226:(_t,Ue,b)=>{"use strict";b.d(Ue,{Is:()=>q,vT:()=>_e});var h=b(5e3),s=b(9808);const m=new h.OlP("cdk-dir-doc",{providedIn:"root",factory:function k(){return(0,h.f3M)(s.K0)}}),v=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let q=(()=>{class re{constructor(be){if(this.value="ltr",this.change=new h.vpe,be){const Ze=be.documentElement?be.documentElement.dir:null;this.value=function C(re){const we=(null==re?void 0:re.toLowerCase())||"";return"auto"===we&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?v.test(navigator.language)?"rtl":"ltr":"rtl"===we?"rtl":"ltr"}((be.body?be.body.dir:null)||Ze||"ltr")}}ngOnDestroy(){this.change.complete()}}return re.\u0275fac=function(be){return new(be||re)(h.LFG(m,8))},re.\u0275prov=h.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})(),_e=(()=>{class re{}return re.\u0275fac=function(be){return new(be||re)},re.\u0275mod=h.oAB({type:re}),re.\u0275inj=h.cJS({}),re})()},3191:(_t,Ue,b)=>{"use strict";b.d(Ue,{Eq:()=>v,HM:()=>C,Ig:()=>s,fI:()=>q,su:()=>m});var h=b(5e3);function s(_e){return null!=_e&&"false"!=`${_e}`}function m(_e,re=0){return function k(_e){return!isNaN(parseFloat(_e))&&!isNaN(Number(_e))}(_e)?Number(_e):re}function v(_e){return Array.isArray(_e)?_e:[_e]}function C(_e){return null==_e?"":"string"==typeof _e?_e:`${_e}px`}function q(_e){return _e instanceof h.SBq?_e.nativeElement:_e}},449:(_t,Ue,b)=>{"use strict";b.d(Ue,{A8:()=>re,Ov:()=>te});var h=b(7579),s=b(5e3);class te{constructor(ke=!1,Ze,Ye=!0){this._multiple=ke,this._emitChanges=Ye,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new h.x,Ze&&Ze.length&&(ke?Ze.forEach($e=>this._markSelected($e)):this._markSelected(Ze[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...ke){this._verifyValueAssignment(ke),ke.forEach(Ze=>this._markSelected(Ze)),this._emitChangeEvent()}deselect(...ke){this._verifyValueAssignment(ke),ke.forEach(Ze=>this._unmarkSelected(Ze)),this._emitChangeEvent()}toggle(ke){this.isSelected(ke)?this.deselect(ke):this.select(ke)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(ke){return this._selection.has(ke)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(ke){this._multiple&&this.selected&&this._selected.sort(ke)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(ke){this.isSelected(ke)||(this._multiple||this._unmarkAll(),this._selection.add(ke),this._emitChanges&&this._selectedToEmit.push(ke))}_unmarkSelected(ke){this.isSelected(ke)&&(this._selection.delete(ke),this._emitChanges&&this._deselectedToEmit.push(ke))}_unmarkAll(){this.isEmpty()||this._selection.forEach(ke=>this._unmarkSelected(ke))}_verifyValueAssignment(ke){}}let re=(()=>{class be{constructor(){this._listeners=[]}notify(Ze,Ye){for(let $e of this._listeners)$e(Ze,Ye)}listen(Ze){return this._listeners.push(Ze),()=>{this._listeners=this._listeners.filter(Ye=>Ze!==Ye)}}ngOnDestroy(){this._listeners=[]}}return be.\u0275fac=function(Ze){return new(Ze||be)},be.\u0275prov=s.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})()},1159:(_t,Ue,b)=>{"use strict";b.d(Ue,{A:()=>Mt,JH:()=>zt,JU:()=>C,K5:()=>v,LH:()=>rt,L_:()=>be,MW:()=>Yt,Mf:()=>m,SV:()=>
1je,Sd:()=>$e,Vb:()=>Qr,Z:()=>Zt,aO:()=>Mn,b2:()=>Ds,hY:()=>we,jx:()=>q,oh:()=>Te,uR:()=>Ye,xE:()=>Fe,zL:()=>te});const m=9,v=13,C=16,q=17,te=18,we=27,be=32,Ye=35,$e=36,Te=37,rt=38,je=39,zt=40,Fe=48,Mn=57,Mt=65,Zt=90,Yt=91,Ds=224;function Qr(_i,...Nt){return Nt.length?Nt.some(Ft=>_i[Ft]):_i.altKey||_i.shiftKey||_i.ctrlKey||_i.metaKey}},7144:(_t,Ue,b)=>{"use strict";b.d(Ue,{Q8:()=>_e,wD:()=>te});var h=b(3191),s=b(5e3),m=b(8306),k=b(7579),v=b(8372);let C=(()=>{class re{create(be){return"undefined"==typeof MutationObserver?null:new MutationObserver(be)}}return re.\u0275fac=function(be){return new(be||re)},re.\u0275prov=s.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})(),q=(()=>{class re{constructor(be){this._mutationObserverFactory=be,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((be,ke)=>this._cleanupObserver(ke))}observe(be){const ke=(0,h.fI)(be);return new m.y(Ze=>{const $e=this._observeElement(ke).subscribe(Ze);return()=>{$e.unsubscribe(),this._unobserveElement(ke)}})}_observeElement(be){if(this._observedElements.has(be))this._observedElements.get(be).count++;
1else{const ke=new k.x,Ze=this._mutationObserverFactory.create(Ye=>ke.next(Ye));Ze&&Ze.observe(be,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(be,{observer:Ze,stream:ke,count:1})}return this._observedElements.get(be).stream}_unobserveElement(be){this._observedElements.has(be)&&(this._observedElements.get(be).count--,this._observedElements.get(be).count||this._cleanupObserver(be))}_cleanupObserver(be){if(this._observedElements.has(be)){const{observer:ke,stream:Ze}=this._observedElements.get(be);ke&&ke.disconnect(),Ze.complete(),this._observedElements.delete(be)}}}return re.\u0275fac=function(be){return new(be||re)(s.LFG(C))},re.\u0275prov=s.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})(),te=(()=>{class re{constructor(be,ke,Ze){this._contentObserver=be,this._elementRef=ke,this._ngZone=Ze,this.event=new s.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(be){this._disabled=(0,h.Ig)(be),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(be){this._debounce=(0,h.su)(be),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const be=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?be.pipe((0,v.b)(this.debounce)):be).subscribe(this.event)})}_unsubscribe(){var be;null===(be=this._currentSubscription)||void 0===be||be.unsubscribe()}}return re.\u0275fac=function(be){return new(be||re)(s.Y36(q),s.Y36(s.SBq),s.Y36(s.R0b))},re.\u0275dir=s.lG2({type:re,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),re})(),_e=(()=>{class re{}return re.\u0275fac=function(be){return new(be||re)},re.\u0275mod=s.oAB({type:re}),re.\u0275inj=s.cJS({providers:[C]}),re})()},9776:(_t,Ue,b)=>{"use strict";b.d(Ue,{pI:()=>si,xu:()=>pi,aV:()=>tn,X_:()=>me,Xj:()=>Wn,U8:()=>Rn});var h=b(8962),s=b(9808),m=b(5e3),k=b(3191),v=b(925),C=b(226),q=b(7429),te=b(7579),_e=b(727),re=b(6451),we=b(5698),be=b(2722),ke=b(4482),Ze=b(5403),$e=b(1159);const Te=(0,v.Mq)();class rt{constructor($,ue){this._viewportRuler=$,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=ue}attach(){}enable(){if(this._canBeEnabled()){const $=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=$.style.left||"",this._previousHTMLStyles.top=$.style.top||"",$.style.left=(0,k.HM)(-this._previousScrollPosition.left),$.style.top=(0,k.HM)(-this._previousScrollPosition.top),$.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const $=this._document.documentElement,K=$.style,ae=this._document.body.style,Me=K.scrollBehavior||"",nt=ae.scrollBehavior||"";this._isEnabled=!1,K.left=this._previousHTMLStyles.left,K.top=this._previousHTMLStyles.top,$.classList.remove("cdk-global-scrollblock"),Te&&(K.scrollBehavior=ae.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Te&&(K.scrollBehavior=Me,ae.scrollBehavior=nt)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const ue=this._document.body,K=this._viewportRuler.getViewportSize();return ue.scrollHeight>K.height||ue.scrollWidth>K.width}}class zt{constructor($,ue,K,ae){this._scrollDispatcher=$,this._ngZone=ue,this._viewportRuler=K,this._config=ae,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach($){this._overlayRef=$}enable(){if(this._scrollSubscription)return;const $=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=$.subscribe(()=>{const ue=this._viewportRuler.getViewportScrollPosition().top;Math.abs(ue-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=$.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ut{enable(){}disable(){}attach(){}}function ze(Pt,$){return $.some(ue=>Pt.bottom<ue.top||Pt.top>ue.bottom||Pt.right<ue.left||Pt.left>ue.right)}function Re(Pt,$){return $.some(ue=>Pt.top<ue.top||Pt.bottom>ue.bottom||Pt.left<ue.left||Pt.right>ue.right)}class tt{constructor($,ue,K,ae){this._scrollDispatcher=$,this._viewportRuler
1=ue,this._ngZone=K,this._config=ae,this._scrollSubscription=null}attach($){this._overlayRef=$}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const ue=this._overlayRef.overlayElement.getBoundingClientRect(),{width:K,height:ae}=this._viewportRuler.getViewportSize();ze(ue,[{width:K,height:ae,bottom:ae,right:K,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Fe=(()=>{class Pt{constructor(ue,K,ae,Me){this._scrollDispatcher=ue,this._viewportRuler=K,this._ngZone=ae,this.noop=()=>new ut,this.close=nt=>new zt(this._scrollDispatcher,this._ngZone,this._viewportRuler,nt),this.block=()=>new rt(this._viewportRuler,this._document),this.reposition=nt=>new tt(this._scrollDispatcher,this._viewportRuler,this._ngZone,nt),this._document=Me}}return Pt.\u0275fac=function(ue){return new(ue||Pt)(m.LFG(h.mF),m.LFG(h.rL),m.LFG(m.R0b),m.LFG(s.K0))},Pt.\u0275prov=m.Yz7({token:Pt,factory:Pt.\u0275fac,providedIn:"root"}),Pt})();class me{constructor($){if(this.scrollStrategy=new ut,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,$){const ue=Object.keys($);for(const K of ue)void 0!==$[K]&&(this[K]=$[K])}}}class pn{constructor($,ue){this.connectionPair=$,this.scrollableViewProperties=ue}}class en{constructor($,ue,K,ae,Me,nt,Tt,Zt,Yt){this._portalOutlet=$,this._host=ue,this._pane=K,this._config=ae,this._ngZone=Me,this._keyboardDispatcher=nt,this._document=Tt,this._location=Zt,this._outsideClickDispatcher=Yt,this._backdropElement=null,this._backdropClick=new te.x,this._attachments=new te.x,this._detachments=new te.x,this._locationChanges=_e.w0.EMPTY,this._backdropClickHandler=Pn=>this._backdropClick.next(Pn),this._backdropTransitionendHandler=Pn=>{this._disposeBackdrop(Pn.target)},this._keydownEvents=new te.x,this._outsidePointerEvents=new te.x,ae.scrollStrategy&&(this._scrollStrategy=ae.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=ae.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach($){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const ue=this._portalOutlet.attach($);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,we.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),ue}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const $=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),$}dispose(){var $;const ue=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===($=this._host)||void 0===$||$.remove(),this._previousHostParent=this._pane=this._host=null,ue&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}
1keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy($){$!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=$,this.hasAttached()&&($.attach(this),this.updatePosition()))}updateSize($){this._config=Object.assign(Object.assign({},this._config),$),this._updateElementSize()}setDirection($){this._config=Object.assign(Object.assign({},this._config),{direction:$}),this._updateElementDirection()}addPanelClass($){this._pane&&this._toggleClasses(this._pane,$,!0)}removePanelClass($){this._pane&&this._toggleClasses(this._pane,$,!1)}getDirection(){const $=this._config.direction;return $?"string"==typeof $?$:$.value:"ltr"}updateScrollStrategy($){$!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=$,this.hasAttached()&&($.attach(this),$.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const $=this._pane.style;$.width=(0,k.HM)(this._config.width),$.height=(0,k.HM)(this._config.height),$.minWidth=(0,k.HM)(this._config.minWidth),$.minHeight=(0,k.HM)(this._config.minHeight),$.maxWidth=(0,k.HM)(this._config.maxWidth),$.maxHeight=(0,k.HM)(this._config.maxHeight)}_togglePointerEvents($){this._pane.style.pointerEvents=$?"":"none"}_attachBackdrop(){const $="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add($)})}):this._backdropElement.classList.add($)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const $=this._backdropElement;!$||($.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{$.addEventListener("transitionend",this._backdropTransitionendHandler)}),$.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop($)},500)))}_toggleClasses($,ue,K){const ae=(0,k.Eq)(ue||[]).filter(Me=>!!Me);ae.length&&(K?$.classList.add(...ae):$.classList.remove(...ae))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const $=this._ngZone.onStable.pipe((0,be.R)((0,re.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),$.unsubscribe())})})}_disposeScrollStrategy(){const $=this._scrollStrategy;$&&($.disable(),$.detach&&$.detach())}_disposeBackdrop($){$&&($.removeEventListener("click",this._backdropClickHandler),$.removeEventListener("transitionend",this._backdropTransitionendHandler),$.remove(),this._backdropElement===$&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let Wn=(()=>{class Pt{constructor(ue,K){this._platform=K,this._document=ue}ngOnDestroy(){var ue;null===(ue=this._containerElement)||void 0===ue||ue.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const ue="cdk-overlay-container";if(this._platform.isBrowser||(0,v.Oy)()){const ae=this._document.querySelectorAll(`.${ue}[platform="server"], .${ue}[platform="test"]`);for(let Me=0;Me<ae.length;Me++)ae[Me].remove()}const K=this._document.createElement("div");K.classList.add(ue),(0,v.Oy)()?K.setAttribute("platform","test"):this._platform.isBrowser||K.setAttribute("platform","server"),this._document.body.appendChild(K),this._containerElement=K}}return Pt.\u0275fac=function(ue){return new(ue||Pt)(m.LFG(s.K0),m.LFG(v.t4))},Pt.\u0275prov=m.Yz7({token:Pt,factory:Pt.\u0275fac,providedIn:"root"}),Pt})();const Mn="cdk-overlay-connected-position-bounding-box",Bn=/([A-Za-z%]+)$/;
1class Dn{constructor($,ue,K,ae,Me){this._viewportRuler=ue,this._document=K,this._platform=ae,this._overlayContainer=Me,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new te.x,this._resizeSubscription=_e.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin($)}get positions(){return this._preferredPositions}attach($){this._validatePositions(),$.hostElement.classList.add(Mn),this._overlayRef=$,this._boundingBox=$.hostElement,this._pane=$.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const $=this._originRect,ue=this._overlayRect,K=this._viewportRect,ae=this._containerRect,Me=[];let nt;for(let Tt of this._preferredPositions){let Zt=this._getOriginPoint($,ae,Tt),Yt=this._getOverlayPoint(Zt,ue,Tt),Pn=this._getOverlayFit(Yt,ue,K,Tt);if(Pn.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Tt,Zt);this._canFitWithFlexibleDimensions(Pn,Yt,K)?Me.push({position:Tt,origin:Zt,overlayRect:ue,boundingBoxRect:this._calculateBoundingBoxRect(Zt,Tt)}):(!nt||nt.overlayFit.visibleArea<Pn.visibleArea)&&(nt={overlayFit:Pn,overlayPoint:Yt,originPoint:Zt,position:Tt,overlayRect:ue})}if(Me.length){let Tt=null,Zt=-1;for(const Yt of Me){const Pn=Yt.boundingBoxRect.width*Yt.boundingBoxRect.height*(Yt.position.weight||1);Pn>Zt&&(Zt=Pn,Tt=Yt)}return this._isPushed=!1,void this._applyPosition(Tt.position,Tt.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(nt.position,nt.originPoint);this._applyPosition(nt.position,nt.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&vn(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Mn),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const $=this._lastPosition;if($){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ue=this._getOriginPoint(this._originRect,this._containerRect,$);this._applyPosition($,ue)}else this.apply()}withScrollableContainers($){return this._scrollables=$,this}withPositions($){return this._preferredPositions=$,-1===$.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin($){return this._viewportMargin=$,this}withFlexibleDimensions($=!0){return this._hasFlexibleDimensions=$,this}withGrowAfterOpen($=!0){return this._growAfterOpen=$,this}withPush($=!0){return this._canPush=$,this}withLockedPosition($=!0){return this._positionLocked=$,this}setOrigin($){return this._origin=$,this}withDefaultOffsetX($){return this._offsetX=$,this}withDefaultOffsetY($){return this._offsetY=$,this}withTransformOriginOn($){return this._transformOriginSelector=$,this}_getOriginPoint($,ue,K){let ae,Me;if("center"==K.originX)ae=$.left+$.width/2;else{const nt=this._isRtl()?$.right:$.left,Tt=this._isRtl()?$.left:$.right;ae="start"==K.originX?nt:Tt}return ue.left<0&&(ae-=ue.left),Me="center"==K.originY?$.top+$.height/2:"top"==K.originY?$.top:$.bottom,ue.top<0&&(Me
1-=ue.top),{x:ae,y:Me}}_getOverlayPoint($,ue,K){let ae,Me;return ae="center"==K.overlayX?-ue.width/2:"start"===K.overlayX?this._isRtl()?-ue.width:0:this._isRtl()?0:-ue.width,Me="center"==K.overlayY?-ue.height/2:"top"==K.overlayY?0:-ue.height,{x:$.x+ae,y:$.y+Me}}_getOverlayFit($,ue,K,ae){const Me=Mt(ue);let{x:nt,y:Tt}=$,Zt=this._getOffset(ae,"x"),Yt=this._getOffset(ae,"y");Zt&&(nt+=Zt),Yt&&(Tt+=Yt);let Nn=0-Tt,Si=Tt+Me.height-K.height,ni=this._subtractOverflows(Me.width,0-nt,nt+Me.width-K.width),Qn=this._subtractOverflows(Me.height,Nn,Si),lt=ni*Qn;return{visibleArea:lt,isCompletelyWithinViewport:Me.width*Me.height===lt,fitsInViewportVertically:Qn===Me.height,fitsInViewportHorizontally:ni==Me.width}}_canFitWithFlexibleDimensions($,ue,K){if(this._hasFlexibleDimensions){const ae=K.bottom-ue.y,Me=K.right-ue.x,nt=Dt(this._overlayRef.getConfig().minHeight),Tt=Dt(this._overlayRef.getConfig().minWidth),Yt=$.fitsInViewportHorizontally||null!=Tt&&Tt<=Me;return($.fitsInViewportVertically||null!=nt&&nt<=ae)&&Yt}return!1}_pushOverlayOnScreen($,ue,K){if(this._previousPushAmount&&this._positionLocked)return{x:$.x+this._previousPushAmount.x,y:$.y+this._previousPushAmount.y};const ae=Mt(ue),Me=this._viewportRect,nt=Math.max($.x+ae.width-Me.width,0),Tt=Math.max($.y+ae.height-Me.height,0),Zt=Math.max(Me.top-K.top-$.y,0),Yt=Math.max(Me.left-K.left-$.x,0);let Pn=0,Cn=0;return Pn=ae.width<=Me.width?Yt||-nt:$.x<this._viewportMargin?Me.left-K.left-$.x:0,Cn=ae.height<=Me.height?Zt||-Tt:$.y<this._viewportMargin?Me.top-K.top-$.y:0,this._previousPushAmount={x:Pn,y:Cn},{x:$.x+Pn,y:$.y+Cn}}_applyPosition($,ue){if(this._setTransformOrigin($),this._setOverlayElementStyles(ue,$),this._setBoundingBoxStyles(ue,$),$.panelClass&&this._addPanelClasses($.panelClass),this._lastPosition=$,this._positionChanges.observers.length){const K=this._getScrollVisibility(),ae=new pn($,K);this._positionChanges.next(ae)}this._isInitialRender=!1}_setTransformOrigin($){if(!this._transformOriginSelector)return;const ue=this._boundingBox.querySelectorAll(this._transformOriginSelector);let K,ae=$.overlayY;K="center"===$.overlayX?"center":this._isRtl()?"start"===$.overlayX?"right":"left":"start"===$.overlayX?"left":"right";for(let Me=0;Me<ue.length;Me++)ue[Me].style.transformOrigin=`${K} ${ae}`}_calculateBoundingBoxRect($,ue){const K=this._viewportRect,ae=this._isRtl();let Me,nt,Tt,Pn,Cn,Nn;if("top"===ue.overlayY)nt=$.y,Me=K.height-nt+this._viewportMargin;else if("bottom"===ue.overlayY)Tt=K.height-$.y+2*this._viewportMargin,Me=K.height-Tt+this._viewportMargin;else{const Si=Math.min(K.bottom-$.y+K.top,$.y),ni=this._lastBoundingBoxSize.height;Me=2*Si,nt=$.y-Si,Me>ni&&!this._isInitialRender&&!this._growAfterOpen&&(nt=$.y-ni/2)}if("end"===ue.overlayX&&!ae||"start"===ue.overlayX&&ae)Nn=K.width-$.x+this._viewportMargin,Pn=$.x-this._viewportMargin;else if("start"===ue.overlayX&&!ae||"end"===ue.overlayX&&ae)Cn=$.x,Pn=K.right-$.x;else{const Si=Math.min(K.right-$.x+K.left,$.x),ni=this._lastBoundingBoxSize.width;Pn=2*Si,Cn=$.x-Si,Pn>ni&&!this._isInitialRender&&!this._growAfterOpen&&(Cn=$.x-ni/2)}return{top:nt,left:Cn,bottom:Tt,right:Nn,width:Pn,height:Me}}_setBoundingBoxStyles($,ue){const K=this._calculateBoundingBoxRect($,ue);!this._isInitialRender&&!this._growAfterOpen&&(K.height=Math.min(K.height,this._lastBoundingBoxSize.height),K.width=Math.min(K.width,this._lastBoundingBoxSize.width));const ae={};if(this._hasExactPosition())ae.top=ae.left="0",ae.bottom=ae.right=ae.maxHeight=ae.maxWidth="",ae.width=ae.height="100%";else{const Me=this._overlayRef.getConfig().maxHeight,nt=this._overlayRef.getConfig().maxWidth;ae.height=(0,k.HM)(K.height),ae.top=(0,k.HM)(K.top),ae.bottom=(0,k.HM)(K.bottom),ae.width=(0,k.HM)(K.width),ae.left=(0,k.HM)(K.left),ae.right=(0,k.HM)(K.right),ae.alignItems="center"===ue.overlayX?"center":"end"===ue.overlayX?"flex-end":"flex-start",ae.justifyContent="center"===ue.overlayY?"center":"bottom"===ue.overlayY?"flex-end":"flex-start",Me&&(ae.maxHeight=(0,k.HM)(Me)),nt&&(ae.maxWidth=(0,k.HM)(nt))}this._lastBoundingBoxSize=K,vn(this._boundingBox.style,ae)}_resetBoundingBoxStyles(){vn(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){vn(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles($,ue){const K={},ae=this._hasExactPosition(),Me=this._hasFlexibleDimensions,nt=this._overlayRef.getConfig();if(ae){const Pn=this._viewportRuler.getViewportScrollPosition();vn(K,this._getExactOverlayY(ue,$,Pn)),vn(K,this._getExactOverlayX(ue,$,P
1n))}else K.position="static";let Tt="",Zt=this._getOffset(ue,"x"),Yt=this._getOffset(ue,"y");Zt&&(Tt+=`translateX(${Zt}px) `),Yt&&(Tt+=`translateY(${Yt}px)`),K.transform=Tt.trim(),nt.maxHeight&&(ae?K.maxHeight=(0,k.HM)(nt.maxHeight):Me&&(K.maxHeight="")),nt.maxWidth&&(ae?K.maxWidth=(0,k.HM)(nt.maxWidth):Me&&(K.maxWidth="")),vn(this._pane.style,K)}_getExactOverlayY($,ue,K){let ae={top:"",bottom:""},Me=this._getOverlayPoint(ue,this._overlayRect,$);return this._isPushed&&(Me=this._pushOverlayOnScreen(Me,this._overlayRect,K)),"bottom"===$.overlayY?ae.bottom=this._document.documentElement.clientHeight-(Me.y+this._overlayRect.height)+"px":ae.top=(0,k.HM)(Me.y),ae}_getExactOverlayX($,ue,K){let nt,ae={left:"",right:""},Me=this._getOverlayPoint(ue,this._overlayRect,$);return this._isPushed&&(Me=this._pushOverlayOnScreen(Me,this._overlayRect,K)),nt=this._isRtl()?"end"===$.overlayX?"left":"right":"end"===$.overlayX?"right":"left","right"===nt?ae.right=this._document.documentElement.clientWidth-(Me.x+this._overlayRect.width)+"px":ae.left=(0,k.HM)(Me.x),ae}_getScrollVisibility(){const $=this._getOriginRect(),ue=this._pane.getBoundingClientRect(),K=this._scrollables.map(ae=>ae.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Re($,K),isOriginOutsideView:ze($,K),isOverlayClipped:Re(ue,K),isOverlayOutsideView:ze(ue,K)}}_subtractOverflows($,...ue){return ue.reduce((K,ae)=>K-Math.max(ae,0),$)}_getNarrowedViewportRect(){const $=this._document.documentElement.clientWidth,ue=this._document.documentElement.clientHeight,K=this._viewportRuler.getViewportScrollPosition();return{top:K.top+this._viewportMargin,left:K.left+this._viewportMargin,right:K.left+$-this._viewportMargin,bottom:K.top+ue-this._viewportMargin,width:$-2*this._viewportMargin,height:ue-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset($,ue){return"x"===ue?null==$.offsetX?this._offsetX:$.offsetX:null==$.offsetY?this._offsetY:$.offsetY}_validatePositions(){}_addPanelClasses($){this._pane&&(0,k.Eq)($).forEach(ue=>{""!==ue&&-1===this._appliedPanelClasses.indexOf(ue)&&(this._appliedPanelClasses.push(ue),this._pane.classList.add(ue))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach($=>{this._pane.classList.remove($)}),this._appliedPanelClasses=[])}_getOriginRect(){const $=this._origin;if($ instanceof m.SBq)return $.nativeElement.getBoundingClientRect();if($ instanceof Element)return $.getBoundingClientRect();const ue=$.width||0,K=$.height||0;return{top:$.y,bottom:$.y+K,left:$.x,right:$.x+ue,height:K,width:ue}}}function vn(Pt,$){for(let ue in $)$.hasOwnProperty(ue)&&(Pt[ue]=$[ue]);return Pt}function Dt(Pt){if("number"!=typeof Pt&&null!=Pt){const[$,ue]=Pt.split(Bn);return ue&&"px"!==ue?null:parseFloat($)}return Pt||null}function Mt(Pt){return{top:Math.floor(Pt.top),right:Math.floor(Pt.right),bottom:Math.floor(Pt.bottom),left:Math.floor(Pt.left),width:Math.floor(Pt.width),height:Math.floor(Pt.height)}}const it="cdk-global-overlay-wrapper";class At{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach($){const ue=$.getConfig();this._overlayRef=$,this._width&&!ue.width&&$.updateSize({width:this._width}),this._height&&!ue.height&&$.updateSize({height:this._height}),$.hostElement.classList.add(it),this._isDisposed=!1}top($=""){return this._bottomOffset="",this._topOffset=$,this._alignItems="flex-start",this}left($=""){return this._rightOffset="",this._leftOffset=$,this._justifyContent="flex-start",this}bottom($=""){return this._topOffset="",this._bottomOffset=$,this._alignItems="flex-end",this}right($=""){return this._leftOffset="",this._rightOffset=$,this._justifyContent="flex-end",this}width($=""){return this._overlayRef?this._overlayRef.updateSize({width:$}):this._width=$,this}height($=""){return this._overlayRef?this._overlayRef.updateSize({height:$}):this._height=$,this}centerHorizontally($=""){return this.left($),this._justifyContent="center",this}centerVertically($=""){return this.top($),this._alignItems="center",this}
1apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const $=this._overlayRef.overlayElement.style,ue=this._overlayRef.hostElement.style,K=this._overlayRef.getConfig(),{width:ae,height:Me,maxWidth:nt,maxHeight:Tt}=K,Zt=!("100%"!==ae&&"100vw"!==ae||nt&&"100%"!==nt&&"100vw"!==nt),Yt=!("100%"!==Me&&"100vh"!==Me||Tt&&"100%"!==Tt&&"100vh"!==Tt);$.position=this._cssPosition,$.marginLeft=Zt?"0":this._leftOffset,$.marginTop=Yt?"0":this._topOffset,$.marginBottom=this._bottomOffset,$.marginRight=this._rightOffset,Zt?ue.justifyContent="flex-start":"center"===this._justifyContent?ue.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?ue.justifyContent="flex-end":"flex-end"===this._justifyContent&&(ue.justifyContent="flex-start"):ue.justifyContent=this._justifyContent,ue.alignItems=Yt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const $=this._overlayRef.overlayElement.style,ue=this._overlayRef.hostElement,K=ue.style;ue.classList.remove(it),K.justifyContent=K.alignItems=$.marginTop=$.marginBottom=$.marginLeft=$.marginRight=$.position="",this._overlayRef=null,this._isDisposed=!0}}let ct=(()=>{class Pt{constructor(ue,K,ae,Me){this._viewportRuler=ue,this._document=K,this._platform=ae,this._overlayContainer=Me}global(){return new At}flexibleConnectedTo(ue){return new Dn(ue,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Pt.\u0275fac=function(ue){return new(ue||Pt)(m.LFG(h.rL),m.LFG(s.K0),m.LFG(v.t4),m.LFG(Wn))},Pt.\u0275prov=m.Yz7({token:Pt,factory:Pt.\u0275fac,providedIn:"root"}),Pt})(),st=(()=>{class Pt{constructor(ue){this._attachedOverlays=[],this._document=ue}ngOnDestroy(){this.detach()}add(ue){this.remove(ue),this._attachedOverlays.push(ue)}remove(ue){const K=this._attachedOverlays.indexOf(ue);K>-1&&this._attachedOverlays.splice(K,1),0===this._attachedOverlays.length&&this.detach()}}return Pt.\u0275fac=function(ue){return new(ue||Pt)(m.LFG(s.K0))},Pt.\u0275prov=m.Yz7({token:Pt,factory:Pt.\u0275fac,providedIn:"root"}),Pt})(),vt=(()=>{class Pt extends st{constructor(ue,K){super(ue),this._ngZone=K,this._key
1downListener=ae=>{const Me=this._attachedOverlays;for(let nt=Me.length-1;nt>-1;nt--)if(Me[nt]._keydownEvents.observers.length>0){const Tt=Me[nt]._keydownEvents;this._ngZone?this._ngZone.run(()=>Tt.next(ae)):Tt.next(ae);break}}}add(ue){super.add(ue),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return Pt.\u0275fac=function(ue){return new(ue||Pt)(m.LFG(s.K0),m.LFG(m.R0b,8))},Pt.\u0275prov=m.Yz7({token:Pt,factory:Pt.\u0275fac,providedIn:"root"}),Pt})(),ft=(()=>{class Pt extends st{constructor(ue,K,ae){super(ue),this._platform=K,this._ngZone=ae,this._cursorStyleIsSet=!1,this._pointerDownListener=Me=>{this._pointerDownEventTarget=(0,v.sA)(Me)},this._clickListener=Me=>{const nt=(0,v.sA)(Me),Tt="click"===Me.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:nt;this._pointerDownEventTarget=null;const Zt=this._attachedOverlays.slice();for(let Yt=Zt.length-1;Yt>-1;Yt--){const Pn=Zt[Yt];if(Pn._outsidePointerEvents.observers.length<1||!Pn.hasAttached())continue;if(Pn.overlayElement.contains(nt)||Pn.overlayElement.contains(Tt))break;const Cn=Pn._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Cn.next(Me)):Cn.next(Me)}}}add(ue){if(super.add(ue),!this._isAttached){const K=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(K)):this._addEventListeners(K),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=K.style.cursor,K.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const ue=this._document.body;ue.removeEventListener("pointerdown",this._pointerDownListener,!0),ue.removeEventListener("click",this._clickListener,!0),ue.removeEventListener("auxclick",this._clickListener,!0),ue.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(ue.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(ue){ue.addEventListener("pointerdown",this._pointerDownListener,!0),ue.addEventListener("click",this._clickListener,!0),ue.addEventListener("auxclick",this._clickListener,!0),ue.addEventListener("contextmenu",this._clickListener,!0)}}return Pt.\u0275fac=function(ue){return new(ue||Pt)(m.LFG(s.K0),m.LFG(v.t4),m.LFG(m.R0b,8))},Pt.\u0275prov=m.Yz7({token:Pt,factory:Pt.\u0275fac,providedIn:"root"}),Pt})(),Ut=0,tn=(()=>{class Pt{constructor(ue,K,ae,Me,nt,Tt,Zt,Yt,Pn,Cn,Nn){this.scrollStrategies=ue,this._overlayContainer=K,this._componentFactoryResolver=ae,this._positionBuilder=Me,this._keyboardDispatcher=nt,this._injector=Tt,this._ngZone=Zt,this._document=Yt,this._directionality=Pn,this._location=Cn,this._outsideClickDispatcher=Nn}create(ue){const K=this._createHostElement(),ae=this._createPaneElement(K),Me=this._createPortalOutlet(ae),nt=new me(ue);return nt.direction=nt.direction||this._directionality.value,new en(Me,K,ae,nt,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(ue){const K=this._document.createElement("div");return K.id="cdk-overlay-"+Ut++,K.classList.add("cdk-overlay-pane"),ue.appendChild(K),K}_createHostElement(){const ue=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(ue),ue}_createPortalOutlet(ue){return this._appRef||(this._appRef=this._injector.get(m.z2F)),new q.u0(ue,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Pt.\u0275fac=function(ue){return new(ue||Pt)(m.LFG(Fe),m.LFG(Wn),m.LFG(m._Vd),m.LFG(ct),m.LFG(vt),m.LFG(m.zs3),m.LFG(m.R0b),m.LFG(s.K0),m.LFG(C.Is),m.LFG(s.Ye),m.LFG(ft))},Pt.\u0275prov=m.Yz7({token:Pt,factory:Pt.\u0275fac}),Pt})();const _n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}
1],bn=new m.OlP("cdk-connected-overlay-scroll-strategy");let pi=(()=>{class Pt{constructor(ue){this.elementRef=ue}}return Pt.\u0275fac=function(ue){return new(ue||Pt)(m.Y36(m.SBq))},Pt.\u0275dir=m.lG2({type:Pt,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),Pt})(),si=(()=>{class Pt{constructor(ue,K,ae,Me,nt){this._overlay=ue,this._dir=nt,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=_e.w0.EMPTY,this._attachSubscription=_e.w0.EMPTY,this._detachSubscription=_e.w0.EMPTY,this._positionSubscription=_e.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new m.vpe,this.positionChange=new m.vpe,this.attach=new m.vpe,this.detach=new m.vpe,this.overlayKeydown=new m.vpe,this.overlayOutsideClick=new m.vpe,this._templatePortal=new q.UE(K,ae),this._scrollStrategyFactory=Me,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(ue){this._offsetX=ue,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(ue){this._offsetY=ue,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ue){this._hasBackdrop=(0,k.Ig)(ue)}get lockPosition(){return this._lockPosition}set lockPosition(ue){this._lockPosition=(0,k.Ig)(ue)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(ue){this._flexibleDimensions=(0,k.Ig)(ue)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(ue){this._growAfterOpen=(0,k.Ig)(ue)}get push(){return this._push}set push(ue){this._push=(0,k.Ig)(ue)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(ue){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),ue.origin&&this.open&&this._position.apply()),ue.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=_n);const ue=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=ue.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=ue.detachments().subscribe(()=>this.detach.emit()),ue.keydownEvents().subscribe(K=>{this.overlayKeydown.next(K),K.keyCode===$e.hY&&!this.disableClose&&!(0,$e.Vb)(K)&&(K.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(K=>{this.overlayOutsideClick.next(K)})}_buildConfig(){const ue=this._position=this.positionStrategy||this._createPositionStrategy(),K=new me({direction:this._dir,positionStrategy:ue,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(K.width=this.width),(this.height||0===this.height)&&(K.height=this.height),(this.minWidth||0===this.minWidth)&&(K.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(K.minHeight=this.minHeight),this.backdropClass&&(K.backdropClass=this.backdropClass),this.panelClass&&(K.panelClass=this.panelClass),K}_updatePositionStrategy(ue){const K=this.positions.map(ae=>({originX:ae.originX,originY:ae.originY,overlayX:ae.overlayX,overlayY:ae.overlayY,offsetX:ae.offsetX||this.offsetX,offsetY:ae.offsetY||this.offsetY,panelClass:ae.panelClass||void 0}));return ue.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(K).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const ue=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(ue),ue}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin
1instanceof pi?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(ue=>{this.backdropClick.emit(ue)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function Ye(Pt,$=!1){return(0,ke.e)((ue,K)=>{let ae=0;ue.subscribe((0,Ze.x)(K,Me=>{const nt=Pt(Me,ae++);(nt||$)&&K.next(Me),!nt&&K.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(ue=>{this.positionChange.emit(ue),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return Pt.\u0275fac=function(ue){return new(ue||Pt)(m.Y36(tn),m.Y36(m.Rgc),m.Y36(m.s_b),m.Y36(bn),m.Y36(C.Is,8))},Pt.\u0275dir=m.lG2({type:Pt,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[m.TTD]}),Pt})();const Vn={provide:bn,deps:[tn],useFactory:function vi(Pt){return()=>Pt.scrollStrategies.reposition()}};let Rn=(()=>{class Pt{}return Pt.\u0275fac=function(ue){return new(ue||Pt)},Pt.\u0275mod=m.oAB({type:Pt}),Pt.\u0275inj=m.cJS({providers:[tn,Vn],imports:[[C.vT,q.eL,h.Cl],h.Cl]}),Pt})()},925:(_t,Ue,b)=>{"use strict";b.d(Ue,{Mq:()=>Ze,Oy:()=>ut,ht:()=>je,i$:()=>we,kV:()=>rt,qK:()=>te,sA:()=>zt,t4:()=>k});var h=b(5e3),s=b(9808);let m;try{m="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(ze){m=!1}let C,k=(()=>{class ze{constructor(tt){this._platformId=tt,this.isBrowser=this._platformId?(0,s.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!m)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return ze.\u0275fac=function(tt){return new(tt||ze)(h.LFG(h.Lbi))},ze.\u0275prov=h.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})();const q=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","t
1ime","url","week"];function te(){if(C)return C;if("object"!=typeof document||!document)return C=new Set(q),C;let ze=document.createElement("input");return C=new Set(q.filter(Re=>(ze.setAttribute("type",Re),ze.type===Re))),C}let _e,ke,$e;function we(ze){return function re(){if(null==_e&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>_e=!0}))}finally{_e=_e||!1}return _e}()?ze:!!ze.capture}function Ze(){if(null==ke){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return ke=!1,ke;if("scrollBehavior"in document.documentElement.style)ke=!0;else{const ze=Element.prototype.scrollTo;ke=!!ze&&!/\{\s*\[native code\]\s*\}/.test(ze.toString())}}return ke}function rt(ze){if(function Te(){if(null==$e){const ze="undefined"!=typeof document?document.head:null;$e=!(!ze||!ze.createShadowRoot&&!ze.attachShadow)}return $e}()){const Re=ze.getRootNode?ze.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&Re instanceof ShadowRoot)return Re}return null}function je(){let ze="undefined"!=typeof document&&document?document.activeElement:null;for(;ze&&ze.shadowRoot;){const Re=ze.shadowRoot.activeElement;if(Re===ze)break;ze=Re}return ze}function zt(ze){return ze.composedPath?ze.composedPath()[0]:ze.target}function ut(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(_t,Ue,b)=>{"use strict";b.d(Ue,{C5:()=>re,Pl:()=>je,UE:()=>we,eL:()=>ut,en:()=>ke,u0:()=>Ye});var h=b(5e3),s=b(9808);class _e{attach(tt){return this._attachedHost=tt,tt.attach(this)}detach(){let tt=this._attachedHost;null!=tt&&(this._attachedHost=null,tt.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(tt){this._attachedHost=tt}}class re extends _e{constructor(tt,Fe,me,gt){super(),this.component=tt,this.viewContainerRef=Fe,this.injector=me,this.componentFactoryResolver=gt}}class we extends _e{constructor(tt,Fe,me){super(),this.templateRef=tt,this.viewContainerRef=Fe,this.context=me}get origin(){return this.templateRef.elementRef}attach(tt,Fe=this.context){return this.context=Fe,super.attach(tt)}detach(){return this.context=void 0,super.detach()}}class be extends _e{constructor(tt){super(),this.element=tt instanceof h.SBq?tt.nativeElement:tt}}class ke{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(tt){return tt instanceof re?(this._attachedPortal=tt,this.attachComponentPortal(tt)):tt instanceof we?(this._attachedPortal=tt,this.attachTemplatePortal(tt)):this.attachDomPortal&&tt instanceof be?(this._attachedPortal=tt,this.attachDomPortal(tt)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(tt){this._disposeFn=tt}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Ye extends ke{constructor(tt,Fe,me,gt,Bt){super(),this.outletElement=tt,this._componentFactoryResolver=Fe,this._appRef=me,this._defaultInjector=gt,this.attachDomPortal=pn=>{const mn=pn.element,jn=this._document.createComment("dom-portal");mn.parentNode.insertBefore(jn,mn),this.outletElement.appendChild(mn),this._attachedPortal=pn,super.setDisposeFn(()=>{jn.parentNode&&jn.parentNode.replaceChild(mn,jn)})},this._document=Bt}attachComponentPortal(tt){const me=(tt.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(tt.component);let gt;return tt.viewContainerRef?(gt=tt.viewContainerRef.createComponent(me,tt.viewContainerRef.length,tt.injector||tt.viewContainerRef.injector),this.setDisposeFn(()=>gt.destroy())):(gt=me.create(tt.injector||this._defaultInjector||h.zs3.NULL),this._appRef.attachView(gt.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(gt.hostView),gt.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(gt)),this._attachedPortal=tt,gt}attachTemplatePortal(tt){let Fe=tt.viewContainerRef,me=Fe.createEmbeddedView(tt.templateRef,tt.context);
1return me.rootNodes.forEach(gt=>this.outletElement.appendChild(gt)),me.detectChanges(),this.setDisposeFn(()=>{let gt=Fe.indexOf(me);-1!==gt&&Fe.remove(gt)}),this._attachedPortal=tt,me}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(tt){return tt.hostView.rootNodes[0]}}let je=(()=>{class Re extends ke{constructor(Fe,me,gt){super(),this._componentFactoryResolver=Fe,this._viewContainerRef=me,this._isInitialized=!1,this.attached=new h.vpe,this.attachDomPortal=Bt=>{const pn=Bt.element,mn=this._document.createComment("dom-portal");Bt.setAttachedHost(this),pn.parentNode.insertBefore(mn,pn),this._getRootNode().appendChild(pn),this._attachedPortal=Bt,super.setDisposeFn(()=>{mn.parentNode&&mn.parentNode.replaceChild(pn,mn)})},this._document=gt}get portal(){return this._attachedPortal}set portal(Fe){this.hasAttached()&&!Fe&&!this._isInitialized||(this.hasAttached()&&super.detach(),Fe&&super.attach(Fe),this._attachedPortal=Fe||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(Fe){Fe.setAttachedHost(this);const me=null!=Fe.viewContainerRef?Fe.viewContainerRef:this._viewContainerRef,Bt=(Fe.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Fe.component),pn=me.createComponent(Bt,me.length,Fe.injector||me.injector);return me!==this._viewContainerRef&&this._getRootNode().appendChild(pn.hostView.rootNodes[0]),super.setDisposeFn(()=>pn.destroy()),this._attachedPortal=Fe,this._attachedRef=pn,this.attached.emit(pn),pn}attachTemplatePortal(Fe){Fe.setAttachedHost(this);const me=this._viewContainerRef.createEmbeddedView(Fe.templateRef,Fe.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Fe,this._attachedRef=me,this.attached.emit(me),me}_getRootNode(){const Fe=this._viewContainerRef.element.nativeElement;return Fe.nodeType===Fe.ELEMENT_NODE?Fe:Fe.parentNode}}return Re.\u0275fac=function(Fe){return new(Fe||Re)(h.Y36(h._Vd),h.Y36(h.s_b),h.Y36(s.K0))},Re.\u0275dir=h.lG2({type:Re,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[h.qOj]}),Re})(),ut=(()=>{class Re{}return Re.\u0275fac=function(Fe){return new(Fe||Re)},Re.\u0275mod=h.oAB({type:Re}),Re.\u0275inj=h.cJS({}),Re})()},8962:(_t,Ue,b)=>{"use strict";b.d(Ue,{ZD:()=>Ve,mF:()=>Ut,Cl:()=>Pt,rL:()=>bn});var h=b(3191),s=b(5e3),m=b(7579),k=b(9646),v=b(8306),C=b(4968),q=b(4408),te=b(727);const _e={schedule($){let ue=requestAnimationFrame,K=cancelAnimationFrame;const{delegate:ae}=_e;ae&&(ue=ae.requestAnimationFrame,K=ae.cancelAnimationFrame);const Me=ue(nt=>{K=void 0,$(nt)});return new te.w0(()=>null==K?void 0:K(Me))},requestAnimationFrame(...$){const{delegate:ue}=_e;return((null==ue?void 0:ue.requestAnimationFrame)||requestAnimationFrame)(...$)},cancelAnimationFrame(...$){const{delegate:ue}=_e;return((null==ue?void 0:ue.cancelAnimationFrame)||cancelAnimationFrame)(...$)},delegate:void 0};var we=b(7565);new class be extends we.v{flush(ue){this._active=!0;const K=this._scheduled;this._scheduled=void 0;const{actions:ae}=this;let Me;ue=ue||ae.shift();do{if(Me=ue.execute(ue.state,ue.delay))break}while((ue=ae[0])&&ue.id===K&&ae.shift());if(this._active=!1,Me){for(;(ue=ae[0])&&ue.id===K&&ae.shift();)ue.unsubscribe();throw Me}}}(class re extends q.o{constructor(ue,K){super(ue,K),this.scheduler=ue,this.work=K}requestAsyncId(ue,K,ae=0){return null!==ae&&ae>0?super.requestAsyncId(ue,K,ae):(ue.actions.push(this),ue._scheduled||(ue._scheduled=_e.requestAnimationFrame(()=>ue.flush(void 0))))}recycleAsyncId(ue,K,ae=0){var Me;if(null!=ae?ae>0:this.delay>0)return super.recycleAsyncId(ue,K,ae);const{actions:nt}=ue;null!=K&&(null===(Me=nt[nt.length-1])||void 0===Me?void 0:Me.id)!==K&&(_e.cancelAnimationFrame(K),ue._scheduled=void 0)}});let $e,Ye=1;const Te={};function rt($){return $ in Te&&(delete Te[$],!0)}const je={setImmediate($){const ue=Ye++;return Te[ue]=!0,$e||($e=Promise.resolve()),$e.then(()=>rt(ue)&&$()),ue},clearImmediate($){rt($)}},{setImmediate:ut,clearImmediate:ze}=je,Re={setImmediate(...$){const{delegate:ue}=Re;return((null==ue?void 0:ue.setImmediate)||ut)(...$)},clearImmediate($){const{delegate:ue}=Re;return((null==ue?void 0:ue.clearImmediate)||ze)($)},delegate:void 0};new class Fe extends we.v{flush(ue){this._active=!0;const K=this._scheduled;this._scheduled=void 0;const{actions:ae}=this;let Me;ue=ue||ae.shift();do{if(Me=ue.execute(ue.state,ue.delay))break}while((ue=ae[0])&&ue.id===K&&ae.shift());if(this._active=!1,Me){for(;(ue=ae[0])&&ue.id===K&&ae.shift();)ue.unsubscribe();throw Me}}}(class tt extends q.o{constructor(ue,K){super(ue,K),this.scheduler
1=ue,this.work=K}requestAsyncId(ue,K,ae=0){return null!==ae&&ae>0?super.requestAsyncId(ue,K,ae):(ue.actions.push(this),ue._scheduled||(ue._scheduled=Re.setImmediate(ue.flush.bind(ue,void 0))))}recycleAsyncId(ue,K,ae=0){var Me;if(null!=ae?ae>0:this.delay>0)return super.recycleAsyncId(ue,K,ae);const{actions:nt}=ue;null!=K&&(null===(Me=nt[nt.length-1])||void 0===Me?void 0:Me.id)!==K&&(Re.clearImmediate(K),ue._scheduled=void 0)}});var Bt=b(4986),pn=b(4482),mn=b(8421),jn=b(5403),Wn=b(5963);function Mn($,ue=Bt.z){return function en($){return(0,pn.e)((ue,K)=>{let ae=!1,Me=null,nt=null,Tt=!1;const Zt=()=>{if(null==nt||nt.unsubscribe(),nt=null,ae){ae=!1;const Pn=Me;Me=null,K.next(Pn)}Tt&&K.complete()},Yt=()=>{nt=null,Tt&&K.complete()};ue.subscribe((0,jn.x)(K,Pn=>{ae=!0,Me=Pn,nt||(0,mn.Xf)($(Pn)).subscribe(nt=(0,jn.x)(K,Zt,Yt))},()=>{Tt=!0,(!ae||!nt||nt.closed)&&K.complete()}))})}(()=>(0,Wn.H)($,ue))}var Bn=b(9300),Dn=b(9808),vn=b(925),Dt=b(226);let Ut=(()=>{class ${constructor(K,ae,Me){this._ngZone=K,this._platform=ae,this._scrolled=new m.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Me}register(K){this.scrollContainers.has(K)||this.scrollContainers.set(K,K.elementScrolled().subscribe(()=>this._scrolled.next(K)))}deregister(K){const ae=this.scrollContainers.get(K);ae&&(ae.unsubscribe(),this.scrollContainers.delete(K))}scrolled(K=20){return this._platform.isBrowser?new v.y(ae=>{this._globalSubscription||this._addGlobalListener();const Me=K>0?this._scrolled.pipe(Mn(K)).subscribe(ae):this._scrolled.subscribe(ae);return this._scrolledCount++,()=>{Me.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,k.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((K,ae)=>this.deregister(ae)),this._scrolled.complete()}ancestorScrolled(K,ae){const Me=this.getAncestorScrollContainers(K);return this.scrolled(ae).pipe((0,Bn.h)(nt=>!nt||Me.indexOf(nt)>-1))}getAncestorScrollContainers(K){const ae=[];return this.scrollContainers.forEach((Me,nt)=>{this._scrollableContainsElement(nt,K)&&ae.push(nt)}),ae}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(K,ae){let Me=(0,h.fI)(ae),nt=K.getElementRef().nativeElement;do{if(Me==nt)return!0}while(Me=Me.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const K=this._getWindow();return(0,C.R)(K.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return $.\u0275fac=function(K){return new(K||$)(s.LFG(s.R0b),s.LFG(vn.t4),s.LFG(Dn.K0,8))},$.\u0275prov=s.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),bn=(()=>{class ${constructor(K,ae,Me){this._platform=K,this._change=new m.x,this._changeListener=nt=>{this._change.next(nt)},this._document=Me,ae.runOutsideAngular(()=>{if(K.isBrowser){const nt=this._getWindow();nt.addEventListener("resize",this._changeListener),nt.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const K=this._getWindow();K.removeEventListener("resize",this._changeListener),K.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const K={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),K}getViewportRect(){const K=this.getViewportScrollPosition(),{width:ae,height:Me}=this.getViewportSize();
1return{top:K.top,left:K.left,bottom:K.top+Me,right:K.left+ae,height:Me,width:ae}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const K=this._document,ae=this._getWindow(),Me=K.documentElement,nt=Me.getBoundingClientRect();return{top:-nt.top||K.body.scrollTop||ae.scrollY||Me.scrollTop||0,left:-nt.left||K.body.scrollLeft||ae.scrollX||Me.scrollLeft||0}}change(K=20){return K>0?this._change.pipe(Mn(K)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const K=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:K.innerWidth,height:K.innerHeight}:{width:0,height:0}}}return $.\u0275fac=function(K){return new(K||$)(s.LFG(vn.t4),s.LFG(s.R0b),s.LFG(Dn.K0,8))},$.\u0275prov=s.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),Ve=(()=>{class ${}return $.\u0275fac=function(K){return new(K||$)},$.\u0275mod=s.oAB({type:$}),$.\u0275inj=s.cJS({}),$})(),Pt=(()=>{class ${}return $.\u0275fac=function(K){return new(K||$)},$.\u0275mod=s.oAB({type:$}),$.\u0275inj=s.cJS({imports:[[Dt.vT,Ve],Dt.vT,Ve]}),$})()},9808:(_t,Ue,b)=>{"use strict";b.d(Ue,{Do:()=>ut,ED:()=>Un,EM:()=>xi,HT:()=>v,JF:()=>Ir,K0:()=>q,Mx:()=>Gr,NF:()=>gr,O5:()=>Qr,Ov:()=>ho,PM:()=>Cs,RF:()=>$t,S$:()=>Te,V_:()=>re,Ye:()=>ze,b0:()=>zt,bD:()=>bo,ez:()=>qs,lw:()=>te,mk:()=>jr,mr:()=>je,n9:()=>cn,q:()=>m,sg:()=>Wi,tP:()=>Jr,uU:()=>Ui,w_:()=>C});var h=b(5e3);let s=null;function m(){return s}function v(fe){s||(s=fe)}class C{}const q=new h.OlP("DocumentToken");let te=(()=>{class fe{historyGo(le){throw new Error("Not implemented")}}return fe.\u0275fac=function(le){return new(le||fe)},fe.\u0275prov=h.Yz7({token:fe,factory:function(){return function _e(){return(0,h.LFG)(we)}()},providedIn:"platform"}),fe})();const re=new h.OlP("Location Initialized");let we=(()=>{class fe extends te{constructor(le){super(),this._doc=le,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return m().getBaseHref(this._doc)}onPopState(le){const qe=m().getGlobalEventTarget(this._doc,"window");return qe.addEventListener("popstate",le,!1),()=>qe.removeEventListener("popstate",le)}onHashChange(le){const qe=m().getGlobalEventTarget(this._doc,"window");return qe.addEventListener("hashchange",le,!1),()=>qe.removeEventListener("hashchange",le)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(le){this.location.pathname=le}pushState(le,qe,Ct){be()?this._history.pushState(le,qe,Ct):this.location.hash=Ct}replaceState(le,qe,Ct){be()?this._history.replaceState(le,qe,Ct):this.location.hash=Ct}forward(){this._history.forward()}back(){this._history.back()}historyGo(le=0){this._history.go(le)}getState(){return this._history.state}}return fe.\u0275fac=function(le){return new(le||fe)(h.LFG(q))},fe.\u0275prov=h.Yz7({token:fe,factory:function(){return function ke(){return new we((0,h.LFG)(q))}()},providedIn:"platform"}),fe})();function be(){return!!window.history.pushState}function Ze(fe,Ne){if(0==fe.length)return Ne;if(0==Ne.length)return fe;let le=0;return fe.endsWith("/")&&le++,Ne.startsWith("/")&&le++,2==le?fe+Ne.substring(1):1==le?fe+Ne:fe+"/"+Ne}function Ye(fe){const Ne=fe.match(/#|\?|$/),le=Ne&&Ne.index||fe.length;return fe.slice(0,le-("/"===fe[le-1]?1:0))+fe.slice(le)}function $e(fe){return fe&&"?"!==fe[0]?"?"+fe:fe}let Te=(()=>{class fe{historyGo(le){throw new Error("Not implemented")}}return fe.\u0275fac=function(le){return new(le||fe)},fe.\u0275prov=h.Yz7({token:fe,factory:function(){return function rt(fe){const Ne=(0,h.LFG)(q).location;return new zt((0,h.LFG)(te),Ne&&Ne.origin||"")}()},providedIn:"root"}),fe})();const je=new h.OlP("appBaseHref");let zt=(()=>{class fe extends Te{constructor(le,qe){if(super(),this._platformLocation=le,this._removeListenerFns=[],null==qe&&(qe=this._platformLocation.getBaseHrefFromDOM()),null==qe)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=qe}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(le){this._removeListenerFns.push(this._platformLocation.onPopState(le),this._platformLocation.on
1HashChange(le))}getBaseHref(){return this._baseHref}prepareExternalUrl(le){return Ze(this._baseHref,le)}path(le=!1){const qe=this._platformLocation.pathname+$e(this._platformLocation.search),Ct=this._platformLocation.hash;return Ct&&le?`${qe}${Ct}`:qe}pushState(le,qe,Ct,dn){const hn=this.prepareExternalUrl(Ct+$e(dn));this._platformLocation.pushState(le,qe,hn)}replaceState(le,qe,Ct,dn){const hn=this.prepareExternalUrl(Ct+$e(dn));this._platformLocation.replaceState(le,qe,hn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(le=0){var qe,Ct;null===(Ct=(qe=this._platformLocation).historyGo)||void 0===Ct||Ct.call(qe,le)}}return fe.\u0275fac=function(le){return new(le||fe)(h.LFG(te),h.LFG(je,8))},fe.\u0275prov=h.Yz7({token:fe,factory:fe.\u0275fac}),fe})(),ut=(()=>{class fe extends Te{constructor(le,qe){super(),this._platformLocation=le,this._baseHref="",this._removeListenerFns=[],null!=qe&&(this._baseHref=qe)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(le){this._removeListenerFns.push(this._platformLocation.onPopState(le),this._platformLocation.onHashChange(le))}getBaseHref(){return this._baseHref}path(le=!1){let qe=this._platformLocation.hash;return null==qe&&(qe="#"),qe.length>0?qe.substring(1):qe}prepareExternalUrl(le){const qe=Ze(this._baseHref,le);return qe.length>0?"#"+qe:qe}pushState(le,qe,Ct,dn){let hn=this.prepareExternalUrl(Ct+$e(dn));0==hn.length&&(hn=this._platformLocation.pathname),this._platformLocation.pushState(le,qe,hn)}replaceState(le,qe,Ct,dn){let hn=this.prepareExternalUrl(Ct+$e(dn));0==hn.length&&(hn=this._platformLocation.pathname),this._platformLocation.replaceState(le,qe,hn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(le=0){var qe,Ct;null===(Ct=(qe=this._platformLocation).historyGo)||void 0===Ct||Ct.call(qe,le)}}return fe.\u0275fac=function(le){return new(le||fe)(h.LFG(te),h.LFG(je,8))},fe.\u0275prov=h.Yz7({token:fe,factory:fe.\u0275fac}),fe})(),ze=(()=>{class fe{constructor(le,qe){this._subject=new h.vpe,this._urlChangeListeners=[],this._platformStrategy=le;const Ct=this._platformStrategy.getBaseHref();this._platformLocation=qe,this._baseHref=Ye(Fe(Ct)),this._platformStrategy.onPopState(dn=>{this._subject.emit({url:this.path(!0),pop:!0,state:dn.state,type:dn.type})})}path(le=!1){return this.normalize(this._platformStrategy.path(le))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(le,qe=""){return this.path()==this.normalize(le+$e(qe))}normalize(le){return fe.stripTrailingSlash(function tt(fe,Ne){return fe&&Ne.startsWith(fe)?Ne.substring(fe.length):Ne}(this._baseHref,Fe(le)))}prepareExternalUrl(le){return le&&"/"!==le[0]&&(le="/"+le),this._platformStrategy.prepareExternalUrl(le)}go(le,qe="",Ct=null){this._platformStrategy.pushState(Ct,"",le,qe),this._notifyUrlChangeListeners(this.prepareExternalUrl(le+$e(qe)),Ct)}replaceState(le,qe="",Ct=null){this._platformStrategy.replaceState(Ct,"",le,qe),this._notifyUrlChangeListeners(this.prepareExternalUrl(le+$e(qe)),Ct)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(le=0){var qe,Ct;null===(Ct=(qe=this._platformStrategy).historyGo)||void 0===Ct||Ct.call(qe,le)}onUrlChange(le){this._urlChangeListeners.push(le),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(qe=>{this._notifyUrlChangeListeners(qe.url,qe.state)}))}_notifyUrlChangeListeners(le="",qe){this._urlChangeListeners.forEach(Ct=>Ct(le,qe))}subscribe(le,qe,Ct){return this._subject.subscribe({next:le,error:qe,complete:Ct})}}return fe.normalizeQueryParams=$e,fe.joinWithSlash=Ze,fe.stripTrailingSlash=Ye,fe.\u0275fac=function(le){return new(le||fe)(h.LFG(Te),h.LFG(te))},fe.\u0275prov=h.Yz7({token:fe,factory:function(){return function Re(){return new ze((0,h.LFG)(Te),(0,h.LFG)(te))}()},providedIn:"root"}),fe})();function Fe(fe){return fe.replace(/\/index.html$/,"")}var pn=(()=>((pn=pn||{})[pn.Format=0]="Format",pn[pn.Standalone=1]="Standalone",pn))(),mn=(()=>((mn=mn||{})[mn.Narrow=0]="Narrow",mn[mn.Abbreviated=1]="Abbreviated",mn[mn.Wide=2]="Wide",mn[mn.Short=3]="Short",mn))(),jn=(()=>((jn=jn||{})[jn.Short=0]="Short",jn[jn.Medium=1]="Medium",jn[jn.Long=2]="Long",jn[jn.Full=3]="Full",jn))(),en=(()=>((en=en||{})[en.Decimal=0]="Decimal",en[en.Group=1]="Group",en[en.List=2]="List",en[en.PercentSign=3]="PercentSign",en[en.PlusSign=4]="PlusSign",en[en.MinusSign=5]="MinusSign",en[en.Exponential=6]="Exponential",en[en.SuperscriptingExponent=7]="SuperscriptingExponent",en[en.PerMille=8]="PerMille",en[en.Infinity=9]="Infinity",en[en.NaN=10]="NaN",en[en.TimeSeparator=11]="TimeSeparator",en[en.CurrencyDecimal=12]="CurrencyDecimal",en[en.CurrencyGroup=13]="CurrencyGroup",en))();function At(fe,Ne){return Ve((0,h.cg1)(fe)[h.wAp.DateFormat],Ne)}function ct(fe,Ne){return Ve((0,h.cg1)(fe)[h.wAp.TimeFormat],Ne)}function st(fe,Ne){return Ve((0,h.cg1)(fe)[h.wAp.DateTimeFormat],Ne)}function vt(fe,Ne){const le=(0,h.cg1)(fe),qe=le[h.wAp.NumberSymbols][Ne];if(void 0===qe){if(Ne===en.CurrencyDecimal)return le[h.wAp.NumberSymbols][en.Decimal];if(Ne===en.CurrencyGroup)return le[h.wAp.NumberSymbols][en.Group]}return qe}function si(fe){if(!fe[h.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${fe[h.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ve(fe,Ne){for(let le=Ne;le>-1;le--)if(void 0!==fe[le])return fe[le];throw new Error("Locale data API: locale data undefined")}function Pt(fe){const[Ne,le]=fe.split(":");return{hours:+Ne,minutes:+le}}const ae=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Me={},nt=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Tt=(()=>((Tt=Tt||{})[Tt.Short=0]="Short",Tt[Tt.ShortGMT=1]="ShortGMT",Tt[Tt.Long=2]="Long",Tt[Tt.Extended=3]="Extended",Tt))(),Zt=(()=>((Zt=Zt||{})[Zt.FullYear=0]="FullYear",Zt[Zt.Month=1]="Month",Zt[Zt.Date=2]="Date",Zt[Zt.Hours=3]="Hours",Zt[Zt.Minutes=4]="Minutes",Zt[Zt.Seconds=5]="Seconds",Zt[Zt.FractionalSeconds=6]="FractionalSeconds",Zt[Zt.Day=7]="Day",Zt))(),Yt=(()=>((Yt=Yt||{})[Yt.DayPeriods=0]="DayPeriods",Yt[Yt.Days=1]="Days",Yt[Yt.Months=2]="Months",Yt[Yt.Eras=3]="Eras",Yt))();function Pn(fe,Ne,le,qe){let Ct=function x(fe){if(de(fe))return fe;if("number"==typeof fe&&!isNaN(fe))return new Date(fe);if("string"==typeof fe){if(fe=fe.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(fe)){const[Ct,dn=1,hn=1]=fe.split("-").map(li=>+li);return Cn(Ct,dn-1,hn)}const le=parseFloat(fe);if(!isNaN(fe-le))return new Date(le);let qe;if(qe=fe.match(ae))return function j(fe){const Ne=new Date(0);let le=0,qe=0;const Ct=fe[8]?Ne.setUTCFullYear:Ne.setFullYear,dn=fe[8]?Ne.setUTCHours:Ne.setHours;fe[9]&&(le=Number(fe[9]+fe[10]),qe=Number(fe[9]+fe[11])),Ct.call(Ne,Number(fe[1]),Number(fe[2])-1,Number(fe[3]));const hn=Number(fe[4]||0)-le,li=Number(fe[5]||0)-qe,Tr=Number(fe[6]||0),Dr=Math.floor(1e3*parseFloat("0."+(fe[7]||0)));return dn.call(Ne,hn,li,Tr,Dr),Ne}(qe)}const Ne=new Date(fe);if(!de(Ne))throw new Error(`Unable to convert "${fe}" into a date`);return Ne}(fe);Ne=Nn(le,Ne)||Ne;let li,hn=[];for(;Ne;){if(li=nt.exec(Ne),!li){hn.push(Ne);break}{hn=hn.concat(li.slice(1));const Xi=hn.pop();if(!Xi)break;Ne=Xi}}let Tr=Ct.getTimezoneOffset();qe&&(Tr=De(qe,Tr),Ct=function N(fe,Ne,le){const qe=le?-1:1,Ct=fe.getTimezoneOffset();return function U(fe,Ne){return(fe=new Date(fe.getTime())).setMinutes(fe.getMinutes()+Ne),fe}(fe,qe*(De(Ne,Ct)-Ct))}(Ct,qe,!0));let Dr="";return hn.forEach(Xi=>{const $i=function Oe(fe){if(ht[fe])return ht[fe];let Ne;switch(fe){case"G":case"GG":case"GGG":Ne=Se(Yt.Eras,mn.Abbreviated);break;case"GGGG":Ne=Se(Yt.Eras,mn.Wide);break;case"GGGGG":Ne=Se(Yt.Eras,mn.Narrow);break;case"y":Ne=lt(Zt.FullYear,1,0,!1,!0);break;case"yy":Ne=lt(Zt.FullYear,2,0,!0,!0);break;case"yyy":Ne=lt(Zt.FullYear,3,0,!1,!0);break;case"yyyy":Ne=lt(Zt.FullYear,4,0,!1,!0);break;case"Y":Ne=ei(1);break;case"YY":Ne=ei(2,!0);break;case"YYY":Ne=ei(3);break;case"YYYY":Ne=ei(4);break;case"M":case"L":Ne=lt(Zt.Month,1,1);break;case"MM":case"LL":Ne=lt(Zt.Month,2,1);break;case"MMM":Ne=Se(Yt.Months,mn.Abbreviated);break;case"MMMM":Ne=Se(Yt.Months,mn.Wide);break;case"MMMMM":Ne=Se(Yt.Months,mn.Narrow);break;case"LLL":Ne=Se(Yt.Months,mn.Abbreviated,pn.Standalone);break;case"LLLL":Ne=Se(Yt.Months,mn.Wide,pn.Standalone);break;case"LLLLL":Ne=Se(Yt.Months,mn.Narrow,pn.Standalone);break;case"w":Ne=yn(1);break;case"ww":Ne=yn(2);break;case"W":Ne=yn(1,!0);break;case"d":Ne=lt(Zt.Date,1);break;case"dd":Ne=lt(Zt.Date,2);break;case"c":case"cc":Ne=lt(Zt.Day,1);break;case"ccc":Ne=Se(Yt.Days,mn.Abbreviated,pn.Standalone);break;case"cccc":Ne=Se(Yt.Days,mn.Wide,pn.Standalone);break;case"ccccc":Ne=Se(Yt.Days,mn.Narrow,pn.Standalone);break;case"cccccc":Ne=Se(Yt.Days,mn.Short,pn.Standalone);break;case"E":case"EE":case"EEE":Ne=Se(Yt.Days,mn.Abbreviated);break;case"EEEE":Ne=Se(Yt.Days,mn.Wide);break;case"EEEEE":Ne=Se(Yt.Days,mn.Narrow);break;case"EEEEEE":Ne=Se(Yt.Days,mn.Short);break;case"a":case"aa":case"aaa":Ne=Se(Yt.DayPeriods,mn.Abbreviated);break;case"aaaa":Ne=Se(Yt.DayPeriods,mn.Wide);break;case"aaaaa":Ne=Se(Yt.DayPeriods,mn.Narrow);break;
1case"b":case"bb":case"bbb":Ne=Se(Yt.DayPeriods,mn.Abbreviated,pn.Standalone,!0);break;case"bbbb":Ne=Se(Yt.DayPeriods,mn.Wide,pn.Standalone,!0);break;case"bbbbb":Ne=Se(Yt.DayPeriods,mn.Narrow,pn.Standalone,!0);break;case"B":case"BB":case"BBB":Ne=Se(Yt.DayPeriods,mn.Abbreviated,pn.Format,!0);break;case"BBBB":Ne=Se(Yt.DayPeriods,mn.Wide,pn.Format,!0);break;case"BBBBB":Ne=Se(Yt.DayPeriods,mn.Narrow,pn.Format,!0);break;case"h":Ne=lt(Zt.Hours,1,-12);break;case"hh":Ne=lt(Zt.Hours,2,-12);break;case"H":Ne=lt(Zt.Hours,1);break;case"HH":Ne=lt(Zt.Hours,2);break;case"m":Ne=lt(Zt.Minutes,1);break;case"mm":Ne=lt(Zt.Minutes,2);break;case"s":Ne=lt(Zt.Seconds,1);break;case"ss":Ne=lt(Zt.Seconds,2);break;case"S":Ne=lt(Zt.FractionalSeconds,1);break;case"SS":Ne=lt(Zt.FractionalSeconds,2);break;case"SSS":Ne=lt(Zt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Ne=Ee(Tt.Short);break;case"ZZZZZ":Ne=Ee(Tt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Ne=Ee(Tt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Ne=Ee(Tt.Long);break;default:return null}return ht[fe]=Ne,Ne}(Xi);Dr+=$i?$i(Ct,le,Tr):"''"===Xi?"'":Xi.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Dr}function Cn(fe,Ne,le){const qe=new Date(0);return qe.setFullYear(fe,Ne,le),qe.setHours(0,0,0),qe}function Nn(fe,Ne){const le=function Mn(fe){return(0,h.cg1)(fe)[h.wAp.LocaleId]}(fe);if(Me[le]=Me[le]||{},Me[le][Ne])return Me[le][Ne];let qe="";switch(Ne){case"shortDate":qe=At(fe,jn.Short);break;case"mediumDate":qe=At(fe,jn.Medium);break;case"longDate":qe=At(fe,jn.Long);break;case"fullDate":qe=At(fe,jn.Full);break;case"shortTime":qe=ct(fe,jn.Short);break;case"mediumTime":qe=ct(fe,jn.Medium);break;case"longTime":qe=ct(fe,jn.Long);break;case"fullTime":qe=ct(fe,jn.Full);break;case"short":const Ct=Nn(fe,"shortTime"),dn=Nn(fe,"shortDate");qe=Si(st(fe,jn.Short),[Ct,dn]);break;case"medium":const hn=Nn(fe,"mediumTime"),li=Nn(fe,"mediumDate");qe=Si(st(fe,jn.Medium),[hn,li]);break;case"long":const Tr=Nn(fe,"longTime"),Dr=Nn(fe,"longDate");qe=Si(st(fe,jn.Long),[Tr,Dr]);break;case"full":const Xi=Nn(fe,"fullTime"),$i=Nn(fe,"fullDate");qe=Si(st(fe,jn.Full),[Xi,$i])}return qe&&(Me[le][Ne]=qe),qe}function Si(fe,Ne){return Ne&&(fe=fe.replace(/\{([^}]+)}/g,function(le,qe){return null!=Ne&&qe in Ne?Ne[qe]:le})),fe}function ni(fe,Ne,le="-",qe,Ct){let dn="";(fe<0||Ct&&fe<=0)&&(Ct?fe=1-fe:(fe=-fe,dn=le));let hn=String(fe);for(;hn.length<Ne;)hn="0"+hn;return qe&&(hn=hn.substr(hn.length-Ne)),dn+hn}function lt(fe,Ne,le=0,qe=!1,Ct=!1){return function(dn,hn){let li=function Qt(fe,Ne){switch(fe){case Zt.FullYear:return Ne.getFullYear();case Zt.Month:return Ne.getMonth();case Zt.Date:return Ne.getDate();case Zt.Hours:return Ne.getHours();case Zt.Minutes:return Ne.getMinutes();case Zt.Seconds:return Ne.getSeconds();case Zt.FractionalSeconds:return Ne.getMilliseconds();case Zt.Day:return Ne.getDay();default:throw new Error(`Unknown DateType value "${fe}".`)}}(fe,dn);if((le>0||li>-le)&&(li+=le),fe===Zt.Hours)0===li&&-12===le&&(li=12);else if(fe===Zt.FractionalSeconds)return function Qn(fe,Ne){return ni(fe,3).substr(0,Ne)}(li,Ne);const Tr=vt(hn,en.MinusSign);return ni(li,Ne,Tr,qe,Ct)}}function Se(fe,Ne,le=pn.Format,qe=!1){return function(Ct,dn){return function Ke(fe,Ne,le,qe,Ct,dn){switch(le){case Yt.Months:return function vn(fe,Ne,le){const qe=(0,h.cg1)(fe),dn=Ve([qe[h.wAp.MonthsFormat],qe[h.wAp.MonthsStandalone]],Ne);return Ve(dn,le)}(Ne,Ct,qe)[fe.getMonth()];case Yt.Days:return function Dn(fe,Ne,le){const qe=(0,h.cg1)(fe),dn=Ve([qe[h.wAp.DaysFormat],qe[h.wAp.DaysStandalone]],Ne);return Ve(dn,le)}(Ne,Ct,qe)[fe.getDay()];case Yt.DayPeriods:const hn=fe.getHours(),li=fe.getMinutes();if(dn){const Dr=function vi(fe){const Ne=(0,h.cg1)(fe);return si(Ne),(Ne[h.wAp.ExtraData][2]||[]).map(qe=>"string"==typeof qe?Pt(qe):[Pt(qe[0]),Pt(qe[1])])}(Ne),Xi=function Vn(fe,Ne,le){const qe=(0,h.cg1)(fe);si(qe);const dn=Ve([qe[h.wAp.ExtraData][0],qe[h.wAp.ExtraData][1]],Ne)||[];return Ve(dn,le)||[]}(Ne,Ct,qe),$i=Dr.findIndex(Xr=>{if(Array.isArray(Xr)){const[hr,as]=Xr,ge=hn>=hr.hours&&li>=hr.minutes,oe=hn<as.hours||hn===as.hours&&li<as.minutes;if(hr.hours<as.hours){if(ge&&oe)return!0}else if(ge||oe)return!0}else if(Xr.hours===hn&&Xr.minutes===li)return!0;return!1});if(-1!==$i)return Xi[$i]}return function Bn(fe,Ne,le){const qe=(0,h.cg1)(fe),dn=Ve([qe[h.wAp.DayPeriodsFormat],qe[h.wAp.DayPeriodsStandalone]],Ne);return Ve(dn,le)}(Ne,Ct,qe)[hn<12?0:1];case Yt.Eras:return function Dt(fe,Ne){return Ve((0,h.cg1)(fe)[h.wAp.Eras],Ne)}(Ne,qe)[fe.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${le}`)}}(Ct,dn,fe,Ne,le,qe)}}function Ee(fe){return function(Ne,le,qe){const Ct=-1*qe,dn=vt(le,en.MinusSign),hn=Ct>0?Math.floor(Ct/60):Math.ceil(Ct/60);switch(fe){case Tt.Short:return(Ct>=0?"+":"")+ni(hn,2,dn)+ni(Math.abs(Ct%60),2,dn);case Tt.ShortGMT:return"GMT"+(Ct>=0?"+":"")+ni(hn,1,dn);case Tt.Long:return"GMT"+(Ct>=0?"+":"")+ni(hn,2,dn)+":"+ni(Math.abs(Ct%60),2,dn);case Tt.Extended:return 0===qe?"Z":(Ct>=0?"+":"")+ni(hn,2,dn)+":"+ni(Math.abs(Ct%60),2,dn);default:throw new Error(`Unknown zone width "${fe}"`)}}}function mt(fe){return Cn(fe.getFullYear(),fe.getMonth(),fe.getDate()+(4-fe.getDay()))}function yn(fe,Ne=!1){return function(le,qe){let Ct;if(Ne){const dn=new Date(le.getFullYear(),le.getMonth(),1).getDay()-1,hn=le.getDate();Ct=1+Math.floor((hn+dn)/7)}else{const dn=mt(le),hn=function Ot(fe){const Ne=Cn(fe,0,1).getDay();return Cn(fe,0,1+(Ne<=4?4:11)-Ne)}(dn.getFullYear()),li=dn.getTime()-hn.getTime();Ct=1+Math.round(li/6048e5)}return ni(Ct,fe,vt(qe,en.MinusSign))}}function ei(fe,Ne=!1){return function(le,qe){return ni(mt(le).getFullYear(),fe,vt(qe,en.MinusSign),Ne)}}const ht={};function De(fe,Ne){fe=fe.replace(/:/g,"");const le=Date.parse("Jan 01, 1970 00:00:00 "+fe)/6e4;return isNaN(le)?Ne:le}function de(fe){return fe instanceof Date&&!isNaN(fe.valueOf())}function Gr(fe,Ne){Ne=encodeURIComponent(Ne);for(const le of fe.split(";")){const qe=le.indexOf("="),[Ct,dn]=-1==qe?[le,""]:[le.slice(0,qe),le.slice(qe+1)];if(Ct.trim()===Ne)return decodeURIComponent(dn)}return null}let jr=(()=>{class fe{constructor(le,qe,Ct,dn){this._iterableDiffers=le,this._keyValueDiffers=qe,this._ngEl=Ct,this._renderer=dn,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(le){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof le?le.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(le){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof le?le.split(/\s+/):le,this._rawClass&&((0,h.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const le=this._iterableDiffer.diff(this._rawClass);le&&this._applyIterableChanges(le)}else if(this._keyValueDiffer){const le=this._keyValueDiffer.diff(this._rawClass);le&&this._applyKeyValueChanges(le)}}_applyKeyValueChanges(le){le.forEachAddedItem(qe=>this._toggleClass(qe.key,qe.currentValue)),le.forEachChangedItem(qe=>this._toggleClass(qe.key,qe.currentValue)),le.forEachRemovedItem(qe=>{qe.previousValue&&this._toggleClass(qe.key,!1)})}_applyIterableChanges(le){le.forEachAddedItem(qe=>{if("string"!=typeof qe.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,h.AaK)(qe.item)}`);this._toggleClass(qe.item,!0)}),le.forEachRemovedItem(qe=>this._toggleClass(qe.item,!1))}_applyClasses(le){le&&(Array.isArray(le)||le instanceof Set?le.forEach(qe=>this._toggleClass(qe,!0)):Object.keys(le).forEach(qe=>this._toggleClass(qe,!!le[qe])))}_removeClasses(le){le&&(Array.isArray(le)||le instanceof Set?le.forEach(qe=>this._toggleClass(qe,!1)):Object.keys(le).forEach(qe=>this._toggleClass(qe,!1)))}_toggleClass(le,qe){(le=le.trim())&&le.split(/\s+/g).forEach(Ct=>{qe?this._renderer.addClass(this._ngEl.nativeElement,Ct):this._renderer.removeClass(this._ngEl.nativeElement,Ct)})}}return fe.\u0275fac=function(le){return new(le||fe)(h.Y36(h.ZZ4),h.Y36(h.aQg),h.Y36(h.SBq),h.Y36(h.Qsj))},fe.\u0275dir=h.lG2({type:fe,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),fe})();class ar{constructor(Ne,le,qe,Ct){this.$implicit=Ne,this.ngForOf=le,this.index=qe,this.count=Ct}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Wi=(()=>{class fe{constructor(le,qe,Ct){this._viewContainer=le,this._template=qe,this._differs=Ct,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(le){this._ngForOf=le,this._ngForOfDirty=!0}set ngForTrackBy(le){this._trackByFn=le}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(le){le&&(this._template=le)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const le=this._ngForOf;!this._differ&&le&&(this._differ=this._differs.find(le).create(this.ngForTrackBy))}if(this._differ){const le=this._differ.diff(this._ngForOf);le&&this._applyChanges(le)}}_applyChanges(le){const qe=this._viewContainer;le.forEachOperation((Ct,dn,hn)=>{if(null==Ct.previousIndex)qe.createEmbeddedView(this._template,new ar(Ct.item,this._ngForOf,-1,-1),null===hn?void 0:hn);else if(null==hn)qe.remove(null===dn?void 0:dn);else if(null!==dn){const li=qe.get(dn);
1qe.move(li,hn),Ps(li,Ct)}});for(let Ct=0,dn=qe.length;Ct<dn;Ct++){const li=qe.get(Ct).context;li.index=Ct,li.count=dn,li.ngForOf=this._ngForOf}le.forEachIdentityChange(Ct=>{Ps(qe.get(Ct.currentIndex),Ct)})}static ngTemplateContextGuard(le,qe){return!0}}return fe.\u0275fac=function(le){return new(le||fe)(h.Y36(h.s_b),h.Y36(h.Rgc),h.Y36(h.ZZ4))},fe.\u0275dir=h.lG2({type:fe,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),fe})();function Ps(fe,Ne){fe.context.$implicit=Ne.item}let Qr=(()=>{class fe{constructor(le,qe){this._viewContainer=le,this._context=new _i,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=qe}set ngIf(le){this._context.$implicit=this._context.ngIf=le,this._updateView()}set ngIfThen(le){Nt("ngIfThen",le),this._thenTemplateRef=le,this._thenViewRef=null,this._updateView()}set ngIfElse(le){Nt("ngIfElse",le),this._elseTemplateRef=le,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(le,qe){return!0}}return fe.\u0275fac=function(le){return new(le||fe)(h.Y36(h.s_b),h.Y36(h.Rgc))},fe.\u0275dir=h.lG2({type:fe,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),fe})();class _i{constructor(){this.$implicit=null,this.ngIf=null}}function Nt(fe,Ne){if(Ne&&!Ne.createEmbeddedView)throw new Error(`${fe} must be a TemplateRef, but received '${(0,h.AaK)(Ne)}'.`)}class Ft{constructor(Ne,le){this._viewContainerRef=Ne,this._templateRef=le,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Ne){Ne&&!this._created?this.create():!Ne&&this._created&&this.destroy()}}let $t=(()=>{class fe{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(le){this._ngSwitch=le,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(le){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(le)}_matchCase(le){const qe=le==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||qe,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),qe}_updateDefaultCases(le){if(this._defaultViews&&le!==this._defaultUsed){this._defaultUsed=le;for(let qe=0;qe<this._defaultViews.length;qe++)this._defaultViews[qe].enforceState(le)}}}return fe.\u0275fac=function(le){return new(le||fe)},fe.\u0275dir=h.lG2({type:fe,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),fe})(),cn=(()=>{class fe{constructor(le,qe,Ct){this.ngSwitch=Ct,Ct._addCase(),this._view=new Ft(le,qe)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return fe.\u0275fac=function(le){return new(le||fe)(h.Y36(h.s_b),h.Y36(h.Rgc),h.Y36($t,9))},fe.\u0275dir=h.lG2({type:fe,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),fe})(),Un=(()=>{class fe{constructor(le,qe,Ct){Ct._addDefault(new Ft(le,qe))}}return fe.\u0275fac=function(le){return new(le||fe)(h.Y36(h.s_b),h.Y36(h.Rgc),h.Y36($t,9))},fe.\u0275dir=h.lG2({type:fe,selectors:[["","ngSwitchDefault",""]]}),fe})(),Jr=(()=>{class fe{constructor(le){this._viewContainerRef=le,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(le){if(le.ngTemplateOutlet){const qe=this._viewContainerRef;this._viewRef&&qe.remove(qe.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?qe.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&le.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return fe.\u0275fac=function(le){return new(le||fe)(h.Y36(h.s_b))},fe.\u0275dir=h.lG2({type:fe,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[h.TTD]}),fe})();function Ar(fe,Ne){return new h.vHH(2100,"")}class ns{createSubscription(Ne,le){return Ne.subscribe({next:le,error:qe=>{throw qe}})}dispose(Ne){Ne.unsubscribe()}onDestroy(Ne){Ne.unsubscribe()}}class co{createSubscription(Ne,le){return Ne.then(le,qe=>{throw qe})}dispose(Ne){}onDestroy(Ne){}}const Oo=new co,oo=new ns;let ho=(()=>{class fe{constructor(le){this._ref=le,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(le){return this._obj?le!==this._obj?(this._dispose(),this.transform(le)):this._latestValue:(le&&this._subscribe(le),this._latestValue)}_subscribe(le){this._obj=le,this._strategy=this._selectStrategy(le),this._subscription=this._strategy.createSubscription(le,qe=>this._updateLatestValue(le,qe))}_selectStrategy(le){if((0,h.QGY)(le))return Oo;if((0,h.F4k)(le))return oo;throw Ar()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(le,qe){le===this._obj&&(this._latestValue=qe,this._ref.markForCheck())}}return fe.\u0275fac=function(le){return new(le||fe)(h.Y36(h.sBO,16))},fe.\u0275pipe=h.Yjl({name:"async",type:fe,pure:!1}),fe})();const ma=new h.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Ui=(()=>{class fe{constructor(le,qe){this.locale=le,this.defaultTimezone=qe}transform(le,qe="mediumDate",Ct,dn){var hn;if(null==le||""===le||le!=le)return null;try{return Pn(le,qe,dn||this.locale,null!==(hn=null!=Ct?Ct:this.defaultTimezone)&&void 0!==hn?hn:void 0)}catch(li){throw Ar()}}}return fe.\u0275fac=function(le){return new(le||fe)(h.Y36(h.soG,16),h.Y36(ma,24))},fe.\u0275pipe=h.Yjl({name:"date",type:fe,pure:!0}),fe})(),qs=(()=>{class fe{}return fe.\u0275fac=function(le){return new(le||fe)},fe.\u0275mod=h.oAB({type:fe}),fe.\u0275inj=h.cJS({}),fe})();const bo="browser";function gr(fe){return fe===bo}function Cs(fe){return"server"===fe}let xi=(()=>{class fe{}return fe.\u0275prov=(0,h.Yz7)({token:fe,providedIn:"root",factory:()=>new Yr((0,h.LFG)(q),window)}),fe})();class Yr{constructor(Ne,le){this.document=Ne,this.window=le,this.offset=()=>[0,0]}setOffset(Ne){this.offset=Array.isArray(Ne)?()=>Ne:Ne}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Ne){this.supportsScrolling()&&this.window.scrollTo(Ne[0],Ne[1])}scrollToAnchor(Ne){if(!this.supportsScrolling())return;const le=function wo(fe,Ne){const le=fe.getElementById(Ne)||fe.getElementsByName(Ne)[0];if(le)return le;if("function"==typeof fe.createTreeWalker&&fe.body&&(fe.body.createShadowRoot||fe.body.attachShadow)){const qe=fe.createTreeWalker(fe.body,NodeFilter.SHOW_ELEMENT);let Ct=qe.currentNode;for(;Ct;){const dn=Ct.shadowRoot;if(dn){const hn=dn.getElementById(Ne)||dn.querySelector(`[name="${Ne}"]`);if(hn)return hn}Ct=qe.nextNode()}}return null}(this.document,Ne);le&&(this.scrollToElement(le),le.focus())}setHistoryScrollRestoration(Ne){if(this.supportScrollRestoration()){const le=this.window.history;le&&le.scrollRestoration&&(le.scrollRestoration=Ne)}}scrollToElement(Ne){const le=Ne.getBoundingClientRect(),qe=le.left+this.window.pageXOffset,Ct=le.top+this.window.pageYOffset,dn=this.offset();this.window.scrollTo(qe-dn[0],Ct-dn[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Ne=rr(this.window.history)||rr(Object.getPrototypeOf(this.window.history));return!(!Ne||!Ne.writable&&!Ne.set)}catch(Ne){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(Ne){return!1}}}function rr(fe){return Object.getOwnPropertyDescriptor(fe,"scrollRestoration")}class Ir{}},520:(_t,Ue,b)=>{"use strict";b.d(Ue,{Ed:()=>$,JF:()=>Pt,LE:()=>Te,eN:()=>en});var h=b(9808),s=b(5e3),m=b(9646),k=b(8306),v=b(4351),C=b(9300),q=b(4004);class te{}class _e{}class re{constructor(ae){this.normalizedNames=new Map,this.lazyUpdate=null,ae?this.lazyInit="string"==typeof ae?()=>{this.headers=new Map,ae.split("\n").forEach(Me=>{const nt=Me.indexOf(":");if(nt>0){const Tt=Me.slice(0,nt),Zt=Tt.toLowerCase(),Yt=Me.slice(nt+1).trim();this.maybeSetNormalizedName(Tt,Zt),this.headers.has(Zt)?this.headers.get(Zt).push(Yt):this.headers.set(Zt,[Yt])}})}:()=>{this.headers=new Map,Object.keys(ae).forEach(Me=>{let nt=ae[Me];const Tt=Me.toLowerCase();"string"==typeof nt&&(nt=[nt]),nt.length>0&&(this.headers.set(Tt,nt),this.maybeSetNormalizedName(Me,Tt))})}:this.headers=new Map}has(ae){return this.init(),this.headers.has(ae.toLowerCase())}get(ae){this.init();const Me=this.headers.get(ae.toLowerCase());return Me&&Me.length>0?Me[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ae){return this.init(),this.headers.get(ae.toLowerCase())||null}append(ae,Me){return this.clone({name:ae,value:Me,op:"a"})}set(ae,Me){return this.clone({name:ae,value:Me,op:"s"})}delete(ae,Me){return this.clone({name:ae,value:Me,op:"d"})}maybeSetNormalizedName(ae,Me){this.normalizedNames.has(Me)||this.normalizedNames.set(Me,ae)}init(){this.lazyInit&&(this.lazyInit instanceof re?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ae=>
vendor: 6,539 bytes, line 1
1this.applyUpdate(ae)),this.lazyUpdate=null))}copyFrom(ae){ae.init(),Array.from(ae.headers.keys()).forEach(Me=>{this.headers.set(Me,ae.headers.get(Me)),this.normalizedNames.set(Me,ae.normalizedNames.get(Me))})}clone(ae){const Me=new re;return Me.lazyInit=this.lazyInit&&this.lazyInit instanceof re?this.lazyInit:this,Me.lazyUpdate=(this.lazyUpdate||[]).concat([ae]),Me}applyUpdate(ae){const Me=ae.name.toLowerCase();switch(ae.op){case"a":case"s":let nt=ae.value;if("string"==typeof nt&&(nt=[nt]),0===nt.length)return;this.maybeSetNormalizedName(ae.name,Me);const Tt=("a"===ae.op?this.headers.get(Me):void 0)||[];Tt.push(...nt),this.headers.set(Me,Tt);break;case"d":const Zt=ae.value;if(Zt){let Yt=this.headers.get(Me);if(!Yt)return;Yt=Yt.filter(Pn=>-1===Zt.indexOf(Pn)),0===Yt.length?(this.headers.delete(Me),this.normalizedNames.delete(Me)):this.headers.set(Me,Yt)}else this.headers.delete(Me),this.normalizedNames.delete(Me)}}forEach(ae){this.init(),Array.from(this.normalizedNames.keys()).forEach(Me=>ae(this.normalizedNames.get(Me),this.headers.get(Me)))}}class we{encodeKey(ae){return Ye(ae)}encodeValue(ae){return Ye(ae)}decodeKey(ae){return decodeURIComponent(ae)}decodeValue(ae){return decodeURIComponent(ae)}}const ke=/%(\d[a-f0-9])/gi,Ze={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Ye(K){return encodeURIComponent(K).replace(ke,(ae,Me)=>{var nt;return null!==(nt=Ze[Me])&&void 0!==nt?nt:ae})}function $e(K){return`${K}`}class Te{constructor(ae={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ae.encoder||new we,ae.fromString){if(ae.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function be(K,ae){const Me=new Map;return K.length>0&&K.replace(/^\?/,"").split("&").forEach(Tt=>{const Zt=Tt.indexOf("="),[Yt,Pn]=-1==Zt?[ae.decodeKey(Tt),""]:[ae.decodeKey(Tt.slice(0,Zt)),ae.decodeValue(Tt.slice(Zt+1))],Cn=Me.get(Yt)||[];Cn.push(Pn),Me.set(Yt,Cn)}),Me}(ae.fromString,this.encoder)}else ae.fromObject?(this.map=new Map,Object.keys(ae.fromObject).forEach(Me=>{const nt=ae.fromObject[Me];this.map.set(Me,Array.isArray(nt)?nt:[nt])})):this.map=null}has(ae){return this.init(),this.map.has(ae)}get(ae){this.init();const Me=this.map.get(ae);return Me?Me[0]:null}getAll(ae){return this.init(),this.map.get(ae)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ae,Me){return this.clone({param:ae,value:Me,op:"a"})}appendAll(ae){const Me=[];return Object.keys(ae).forEach(nt=>{const Tt=ae[nt];Array.isArray(Tt)?Tt.forEach(Zt=>{Me.push({param:nt,value:Zt,op:"a"})}):Me.push({param:nt,value:Tt,op:"a"})}),this.clone(Me)}set(ae,Me){return this.clone({param:ae,value:Me,op:"s"})}delete(ae,Me){return this.clone({param:ae,value:Me,op:"d"})}toString(){return this.init(),this.keys().map(ae=>{const Me=this.encoder.encodeKey(ae);return this.map.get(ae).map(nt=>Me+"="+this.encoder.encodeValue(nt)).join("&")}).filter(ae=>""!==ae).join("&")}clone(ae){const Me=new Te({encoder:this.encoder});return Me.cloneFrom=this.cloneFrom||this,Me.updates=(this.updates||[]).concat(ae),Me}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ae=>this.map.set(ae,this.cloneFrom.map.get(ae))),this.updates.forEach(ae=>{switch(ae.op){case"a":case"s":const Me=("a"===ae.op?this.map.get(ae.param):void 0)||[];Me.push($e(ae.value)),this.map.set(ae.param,Me);break;case"d":if(void 0===ae.value){this.map.delete(ae.param);break}{let nt=this.map.get(ae.param)||[];const Tt=nt.indexOf($e(ae.value));-1!==Tt&&nt.splice(Tt,1),nt.length>0?this.map.set(ae.param,nt):this.map.delete(ae.param)}}}),this.cloneFrom=this.updates=null)}}class je{constructor(){this.map=new Map}set(ae,Me){return this.map.set(ae,Me),this}get(ae){return this.map.has(ae)||this.map.set(ae,ae.defaultValue()),this.map.get(ae)}delete(ae){return this.map.delete(ae),this}has(ae){return this.map.has(ae)}keys(){return this.map.keys()}}function ut(K){return"undefined"!=typeof ArrayBuffer&&K instanceof ArrayBuffer}function ze(K){return"undefined"!=typeof Blob&&K instanceof Blob}function Re(K){return"undefined"!=typeof FormData&&K instanceof FormData}class Fe{constructor(ae,Me,nt,Tt){let Zt;if(this.url=Me,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ae.toUpperCase(),function zt(K){switch(K){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Tt?(this.body=void 0!==nt?nt:null,Zt=Tt):Zt=nt,Zt&&(this.reportProgress=!!Zt.reportProgress,this.withCredentials=!!Zt.withCredentials,Zt.responseType&&(this.responseType=Zt.responseType),Zt.headers&&(this.headers=Zt.headers),Zt.context&&(this.context=Zt.context),Zt.params&&(this.params=Zt.params)),this.headers||(this.headers=new re),this.context||(this.context=new je),this.params){const Yt=this.params.toString();if(0===Yt.length)this.urlWithParams=Me;else{const Pn=Me.indexOf("?");this.urlWithParams=Me+(-1===Pn?"?":Pn<Me.length-1?"&":"")+Yt}}else this.params=new Te,this.urlWithParams=Me}serializeBody(){return null===this.body?null:ut(this.body)||ze(this.body)||Re(this.body)||function tt(K){return"undefined"!=typeof URLSearchParams&&K instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Te?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Re(this.body)?null:ze(this.body)?this.body.type||null:ut(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Te?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(ae={}){var Me;const nt=ae.method||this.method,Tt=ae.url||this.url,Zt=ae.responseType||this.responseType,Yt=void 0!==ae.body?ae.body:this.body,Pn=void 0!==ae.withCredentials?ae.withCredentials:this.withCredentials,Cn=void 0!==ae.reportProgress?ae.reportProgress:this.reportProgress;let Nn=ae.headers||this.headers,Si=ae.params||this.params;const ni=null!==(Me=ae.context)&&void 0!==Me?Me:this.context;return void 0!==ae.setHeaders&&(Nn=Object.keys(ae.setHeaders).reduce((Qn,lt)=>Qn.set(lt,ae.setHeaders[lt]),Nn)),ae.setParams&&(Si=Object.keys(ae.setParams).reduce((Qn,lt)=>Qn.set(lt,ae.setParams[lt]),Si)),new Fe(nt,Tt,Yt,{params:Si,headers:Nn,context:ni,reportProgress:Cn,responseType:Zt,withCredentials:Pn})}}var me=(()=>((me=me||{}
1)[me.Sent=0]="Sent",me[me.UploadProgress=1]="UploadProgress",me[me.ResponseHeader=2]="ResponseHeader",me[me.DownloadProgress=3]="DownloadProgress",me[me.Response=4]="Response",me[me.User=5]="User",me))();class gt{constructor(ae,Me=200,nt="OK"){this.headers=ae.headers||new re,this.status=void 0!==ae.status?ae.status:Me,this.statusText=ae.statusText||nt,this.url=ae.url||null,this.ok=this.status>=200&&this.status<300}}class Bt extends gt{constructor(ae={}){super(ae),this.type=me.ResponseHeader}clone(ae={}){return new Bt({headers:ae.headers||this.headers,status:void 0!==ae.status?ae.status:this.status,statusText:ae.statusText||this.statusText,url:ae.url||this.url||void 0})}}class pn extends gt{constructor(ae={}){super(ae),this.type=me.Response,this.body=void 0!==ae.body?ae.body:null}clone(ae={}){return new pn({body:void 0!==ae.body?ae.body:this.body,headers:ae.headers||this.headers,status:void 0!==ae.status?ae.status:this.status,statusText:ae.statusText||this.statusText,url:ae.url||this.url||void 0})}}class mn extends gt{constructor(ae){super(ae,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ae.url||"(unknown url)"}`:`Http failure response for ${ae.url||"(unknown url)"}: ${ae.status} ${ae.statusText}`,this.error=ae.error||null}}function jn(K,ae){return{body:ae,headers:K.headers,context:K.context,observe:K.observe,params:K.params,reportProgress:K.reportProgress,responseType:K.responseType,withCredentials:K.withCredentials}}let en=(()=>{class K{constructor(Me){this.handler=Me}request(Me,nt,Tt={}){let Zt;if(Me instanceof Fe)Zt=Me;else{let Cn,Nn;Cn=Tt.headers instanceof re?Tt.headers:new re(Tt.headers),Tt.params&&(Nn=Tt.params instanceof Te?Tt.params:new Te({fromObject:Tt.params})),Zt=new Fe(Me,nt,void 0!==Tt.body?Tt.body:null,{headers:Cn,context:Tt.context,params:Nn,reportProgress:Tt.reportProgress,responseType:Tt.responseType||"json",withCredentials:Tt.withCredentials})}const Yt=(0,m.of)(Zt).pipe((0,v.b)(Cn=>this.handler.handle(Cn)));if(Me instanceof Fe||"events"===Tt.observe)return Yt;const Pn=Yt.pipe((0,C.h)(Cn=>Cn instanceof pn));switch(Tt.observe||"body"){case"body":switch(Zt.responseType){case"arraybuffer":return Pn.pipe((0,q.U)(Cn=>{if(null!==Cn.body&&!(Cn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Cn.body}));case"blob":return Pn.pipe((0,q.U)(Cn=>{if(null!==Cn.body&&!(Cn.body instanceof Blob))throw new Error("Response is not a Blob.");return Cn.body}));case"text":return Pn.pipe((0,q.U)(Cn=>{if(null!==Cn.body&&"string"!=typeof Cn.body)throw new Error("Response is not a string.");return Cn.body}));default:return Pn.pipe((0,q.U)(Cn=>Cn.body))}case"response":return Pn;default:throw new Error(`Unreachable: unhandled observe type ${Tt.observe}}`)}}delete(Me,nt={}){return this.request("DELETE",Me,nt)}get(Me,nt={}){return this.request("GET",Me,nt)}head(Me,nt={}){return this.request("HEAD",Me,nt)}jsonp(Me,nt){return this.request("JSONP",Me,{params:(new Te).append(nt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Me,nt={}){return this.request("OPTIONS",Me,nt)}patch(Me,nt,Tt={}){return this.request("PATCH",Me,jn(Tt,nt))}post(Me,nt,Tt={}){return this.request("POST",Me,jn(Tt,nt))}put(Me,nt,Tt={}){return this.request("PUT",Me,jn(Tt,nt))}}return K.\u0275fac=function(Me){return new(Me||K)(s.LFG(te))},K.\u0275prov=s.Yz7({token:K,factory:K.\u0275fac}),K})();class Wn{constructor(ae,Me){this.next=ae,this.interceptor=Me}handle(ae){return this.interceptor.intercept(ae,this.next)}}const Mn=new s.OlP("HTTP_INTERCEPTORS");let vn,Bn=(()=>{class K{intercept(Me,nt){return nt.handle(Me)}}return K.\u0275fac=function(Me){return new(Me||K)},K.\u0275prov=s.Yz7({token:K,factory:K.\u0275fac}),K})(),Dn=0;class At{}let ct=(()=>{class K{constructor(Me,nt){this.callbackMap=Me,this.document=nt,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+Dn++}handle(Me){if("JSONP"!==Me.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==Me.responseType)throw new Error("JSONP requests must use Json response type.");return new k.y(nt=>{const Tt=this.nextCallback(),Zt=Me.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${Tt}$1`),Yt=this.document.createElement("script");Yt.src=Zt;let Pn=null,Cn=!1;this.callbackMap[Tt]=Qn=>{delete this.callbackMap[Tt],Pn=Qn,Cn=!0};const Nn=()=>{Yt.parentNode&&Yt.parentNode.removeChild(Yt),delete this.callbackMap[Tt]};return Yt.addEventListener("load",Qn=>{this.resolvedPromise.then(()=>{Nn(),Cn?(nt.next(new pn({body:Pn,status:200,statusText:"OK",url:Zt})),nt.complete()):nt.error(new mn({url:Zt,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})}),Yt.addEventListener("error",Qn=>{Nn(),nt.error(new mn({error:Qn,status:0,statusText:"JSONP Error",url:Zt}))}),this.document.body.appendChild(Yt),nt.next({type:me.Sent}),()=>{Cn||this.removeListeners(Yt),Nn()}})}removeListeners(Me){vn||(vn=this.document.implementation.createHTMLDocument()),vn.adoptNode(Me)}}return K.\u0275fac=function(Me){return new(Me||K)(s.LFG(At),s.LFG(h.K0))},K.\u0275prov=s.Yz7({token:K,factory:K.\u0275fac}),K})(),st=(()=>{class K{constructor(Me){this.jsonp=Me}intercept(Me,nt){return"JSONP"===Me.method?this.jsonp.handle(Me):nt.handle(Me)}}return K.\u0275fac=function(Me){return new(Me||K)(s.LFG(ct))},K.\u0275prov=s.Yz7({token:K,factory:K.\u0275fac}),K})();const vt=/^\)\]\}',?\n/;let Ut=(()=>{class K{constructor(Me){this.xhrFactory=Me}handle(Me){if("JSONP"===Me.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new k.y(nt=>{const Tt=this.xhrFactory.build();if(Tt.open(Me.method,Me.urlWithParams),Me.withCredentials&&(Tt.withCredentials=!0),Me.headers.forEac
1h((lt,Qt)=>Tt.setRequestHeader(lt,Qt.join(","))),Me.headers.has("Accept")||Tt.setRequestHeader("Accept","application/json, text/plain, */*"),!Me.headers.has("Content-Type")){const lt=Me.detectContentTypeHeader();null!==lt&&Tt.setRequestHeader("Content-Type",lt)}if(Me.responseType){const lt=Me.responseType.toLowerCase();Tt.responseType="json"!==lt?lt:"text"}const Zt=Me.serializeBody();let Yt=null;const Pn=()=>{if(null!==Yt)return Yt;const lt=Tt.statusText||"OK",Qt=new re(Tt.getAllResponseHeaders()),Se=function ft(K){return"responseURL"in K&&K.responseURL?K.responseURL:/^X-Request-URL:/m.test(K.getAllResponseHeaders())?K.getResponseHeader("X-Request-URL"):null}(Tt)||Me.url;return Yt=new Bt({headers:Qt,status:Tt.status,statusText:lt,url:Se}),Yt},Cn=()=>{let{headers:lt,status:Qt,statusText:Se,url:Ke}=Pn(),Ee=null;204!==Qt&&(Ee=void 0===Tt.response?Tt.responseText:Tt.response),0===Qt&&(Qt=Ee?200:0);let Be=Qt>=200&&Qt<300;if("json"===Me.responseType&&"string"==typeof Ee){const at=Ee;Ee=Ee.replace(vt,"");try{Ee=""!==Ee?JSON.parse(Ee):null}catch(Ot){Ee=at,Be&&(Be=!1,Ee={error:Ot,text:Ee})}}Be?(nt.next(new pn({body:Ee,headers:lt,status:Qt,statusText:Se,url:Ke||void 0})),nt.complete()):nt.error(new mn({error:Ee,headers:lt,status:Qt,statusText:Se,url:Ke||void 0}))},Nn=lt=>{const{url:Qt}=Pn(),Se=new mn({error:lt,status:Tt.status||0,statusText:Tt.statusText||"Unknown Error",url:Qt||void 0});nt.error(Se)};let Si=!1;const ni=lt=>{Si||(nt.next(Pn()),Si=!0);let Qt={type:me.DownloadProgress,loaded:lt.loaded};lt.lengthComputable&&(Qt.total=lt.total),"text"===Me.responseType&&!!Tt.responseText&&(Qt.partialText=Tt.responseText),nt.next(Qt)},Qn=lt=>{let Qt={type:me.UploadProgress,loaded:lt.loaded};lt.lengthComputable&&(Qt.total=lt.total),nt.next(Qt)};return Tt.addEventListener("load",Cn),Tt.addEventListener("error",Nn),Tt.addEventListener("timeout",Nn),Tt.addEventListener("abort",Nn),Me.reportProgress&&(Tt.addEventListener("progress",ni),null!==Zt&&Tt.upload&&Tt.upload.addEventListener("progress",Qn)),Tt.send(Zt),nt.next({type:me.Sent}),()=>{Tt.removeEventListener("error",Nn),Tt.removeEventListener("abort",Nn),Tt.removeEventListener("load",Cn),Tt.removeEventListener("timeout",Nn),Me.reportProgress&&(Tt.removeEventListener("progress",ni),null!==Zt&&Tt.upload&&Tt.upload.removeEventListener("progress",Qn)),Tt.readyState!==Tt.DONE&&Tt.abort()}})}}return K.\u0275fac=function(Me){return new(Me||K)(s.LFG(h.JF))},K.\u0275prov=s.Yz7({token:K,factory:K.\u0275fac}),K})();const tn=new s.OlP("XSRF_COOKIE_NAME"),_n=new s.OlP("XSRF_HEADER_NAME");class bn{}let pi=(()=>{class K{constructor(Me,nt,Tt){this.doc=Me,this.platform=nt,this.cookieName=Tt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Me=this.doc.cookie||"";return Me!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,h.Mx)(Me,this.cookieName),this.lastCookieString=Me),this.lastToken}}return K.\u0275fac=function(Me){return new(Me||K)(s.LFG(h.K0),s.LFG(s.Lbi),s.LFG(tn))},K.\u0275prov=s.Yz7({token:K,factory:K.\u0275fac}),K})(),si=(()=>{class K{constructor(Me,nt){this.tokenService=Me,this.headerName=nt}intercept(Me,nt){const Tt=Me.url.toLowerCase();if("GET"===Me.method||"HEAD"===Me.method||Tt.startsWith("http://")||Tt.startsWith("https://"))return nt.handle(Me);const Zt=this.tokenService.getToken();return null!==Zt&&!Me.headers.has(this.headerName)&&(Me=Me.clone({headers:Me.headers.set(this.headerName,Zt)})),nt.handle(Me)}}return K.\u0275fac=function(Me){return new(Me||K)(s.LFG(bn),s.LFG(_n))},K.\u0275prov=s.Yz7({token:K,factory:K.\u0275fac}),K})(),vi=(()=>{class K{constructor(Me,nt){this.backend=Me,this.injector=nt,this.chain=null}handle(Me){if(null===this.chain){const nt=this.injector.get(Mn,[]);this.chain=nt.reduceRight((Tt,Zt)=>new Wn(Tt,Zt),this.backend)}return this.chain.handle(Me)}}return K.\u0275fac=function(Me){return new(Me||K)(s.LFG(_e),s.LFG(s.zs3))},K.\u0275prov=s.Yz7({token:K,factory:K.\u0275fac}),K})();function Rn(){return"object"==typeof window?window:{}}let Ve=(()=>{class K{static disable(){return{ngModule:K,providers:[{provide:si,useClass:Bn}]}}static withOptions(Me={}){return{ngModule:K,providers:[Me.cookieName?{provide:tn,useValue:Me.cookieName}:[],Me.headerName?{provide:_n,useValue:Me.headerName}:[]]}}}return K.\u0275fac=function(Me){return new(Me||K)},K.\u0275mod=s.oAB({type:K}),K.\u0275inj=s.cJS({providers:[si,{provide:Mn,useExisting:si,multi:!0}
1,{provide:bn,useClass:pi},{provide:tn,useValue:"XSRF-TOKEN"},{provide:_n,useValue:"X-XSRF-TOKEN"}]}),K})(),Pt=(()=>{class K{}return K.\u0275fac=function(Me){return new(Me||K)},K.\u0275mod=s.oAB({type:K}),K.\u0275inj=s.cJS({providers:[en,{provide:te,useClass:vi},Ut,{provide:_e,useExisting:Ut}],imports:[[Ve.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),K})(),$=(()=>{class K{}return K.\u0275fac=function(Me){return new(Me||K)},K.\u0275mod=s.oAB({type:K}),K.\u0275inj=s.cJS({providers:[ct,{provide:At,useFactory:Rn},{provide:Mn,useClass:st,multi:!0}]}),K})()},5e3:(_t,Ue,b)=>{"use strict";b.d(Ue,{$8M:()=>Gs,$Z:()=>$p,AFp:()=>pw,ALo:()=>Rb,AaK:()=>te,AsE:()=>M_,BQk:()=>ch,CHM:()=>ra,CRH:()=>Zb,CZH:()=>H0,CqO:()=>em,DdM:()=>Sb,EJc:()=>OM,EiD:()=>Wd,EpF:()=>Qp,F$t:()=>tm,F4k:()=>Xp,FYo:()=>F_,FiY:()=>Oa,G48:()=>iT,Gf:()=>zb,GfV:()=>t,GkF:()=>vf,Gpc:()=>we,Gre:()=>D_,Hsn:()=>Bg,Ikx:()=>hy,JOm:()=>se,JVY:()=>Wf,Jf7:()=>rp,L6k:()=>Hr,LAX:()=>ja,LFG:()=>ko,LSH:()=>Fh,Lbi:()=>LM,MAs:()=>r_,NdJ:()=>dh,O4$:()=>Or,OlP:()=>hs,Oqu:()=>mh,PXZ:()=>KM,Q6J:()=>Kp,QGY:()=>Jp,Qsj:()=>jy,R0b:()=>Oc,RDi:()=>rr,Rgc:()=>H_,SBq:()=>Ch,Sil:()=>NM,Suo:()=>Wb,TTD:()=>Es,TgZ:()=>Ld,Udp:()=>Df,VKq:()=>kb,VLi:()=>ZM,W1O:()=>qb,WFA:()=>bf,WLB:()=>Ib,X6Q:()=>nT,XFs:()=>Vn,Xpm:()=>mt,Y36:()=>yf,YKP:()=>As,YNc:()=>Cg,Yjl:()=>j,Yz7:()=>At,ZZ4:()=>eb,_Bn:()=>Bf,_UZ:()=>d_,_Vd:()=>Hf,_c5:()=>vT,_uU:()=>qc,aQg:()=>tb,c2e:()=>AM,cJS:()=>st,cg1:()=>bh,d8E:()=>fy,dDg:()=>bw,deG:()=>cr,dqk:()=>Nn,eBb:()=>Zf,eFA:()=>Tw,ekj:()=>b_,evT:()=>Dm,f3M:()=>oa,g9A:()=>_w,h0i:()=>xr,hGG:()=>bT,hij:()=>rm,iGM:()=>Vb,ifc:()=>Tt,ip1:()=>fw,kL8:()=>py,kcU:()=>Xs,lG2:()=>x,lcZ:()=>Nb,lnq:()=>sm,mCW:()=>bu,n5z:()=>br,n_E:()=>Vy,oAB:()=>De,oJD:()=>Zd,oxw:()=>f_,pB0:()=>ad,q3G:()=>Ko,q4F:()=>o,qLn:()=>Tc,qOj:()=>df,qZA:()=>qp,qzn:()=>yu,sBO:()=>rT,sIi:()=>ac,s_b:()=>Wy,soG:()=>j0,tBr:()=>Su,tb:()=>gw,tp0:()=>Ol,uIk:()=>e_,vHH:()=>Ye,vpe:()=>id,wAp:()=>Mr,xi3:()=>Fb,xp6:()=>dp,yhl:()=>Ih,ynx:()=>Ad,z2F:()=>$0,z3N:()=>Jl,zSh:()=>rf,zs3:()=>oc});var h=b(7579),s=b(727),m=b(8306),k=b(6451),v=b(3099);function C(n){for(let r in n)if(n[r]===C)return r;throw Error("Could not find renamed property on target object.")}function q(n,r){for(const l in r)r.hasOwnProperty(l)&&!n.hasOwnProperty(l)&&(n[l]=r[l])}function te(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(te).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const r=n.toString();if(null==r)return""+r;const l=r.indexOf("\n");return-1===l?r:r.substring(0,l)}function _e(n,r){return null==n||""===n?null===r?"":r:null==r||""===r?n:n+" "+r}const re=C({__forward_ref__:C});function we(n){return n.__forward_ref__=we,n.toString=function(){return te(this())},n}function be(n){return ke(n)?n():n}function ke(n){return"function"==typeof n&&n.hasOwnProperty(re)&&n.__forward_ref__===we}class Ye extends Error{constructor(r,l){super(function $e(n,r){return`NG0${Math.abs(n)}${r?": "+r:""}`}(r,l)),this.code=r}}function Te(n){return"string"==typeof n?n:null==n?"":String(n)}function rt(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():Te(n)}function ze(n,r){const l=r?` in ${r}`:"";throw new Ye(-201,`No provider for ${rt(n)} found${l}`)}function Dn(n,r){null==n&&function vn(n,r,l,c){throw new Error(`ASSERTION ERROR: ${n}`+(null==c?"":` [Expected=> ${l} ${c} ${r} <=Actual]`))}(r,n,null,"!=")}function At(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function st(n){return{providers:n.providers||[],imports:n.imports||[]}}function vt(n){return ft(n,bn)||ft(n,si)}function ft(n,r){return n.hasOwnProperty(r)?n[r]:null}function _n(n){return n&&(n.hasOwnProperty(pi)||n.hasOwnProperty(vi))?n[pi]:null}const bn=C({\u0275prov:C}),pi=C({\u0275inj:C}),si=C({ngInjectableDef:C}),vi=C({ngInjectorDef:C});var Vn=(()=>((Vn=Vn||{})[Vn.Default=0]="Default",Vn[Vn.Host=1]="Host",Vn[Vn.Self=2]="Self",Vn[Vn.SkipSelf=4]="SkipSelf",Vn[Vn.Optional=8]="Optional",Vn))();let Rn;function Pt(n){const r=Rn;return Rn=n,r}function $(n,r,l){const c=vt(n);return c&&"root"==c.providedIn?void 0===c.value?c.value=c.factory():c.value:l&Vn.Optional?null:void 0!==r?r:void ze(te(n),"Injector")}function K(n){return{toString:n}.toString()}var ae=(()=>((ae=ae||{})[ae.OnPush=0]="OnPush",ae[ae.Default=1]="Default",ae))(),Tt=(()=>{return(n=Tt||(Tt={}
1))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",Tt;var n})();const Zt="undefined"!=typeof globalThis&&globalThis,Yt="undefined"!=typeof window&&window,Pn="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Nn=Zt||"undefined"!=typeof global&&global||Yt||Pn,Qn={},lt=[],Qt=C({\u0275cmp:C}),Se=C({\u0275dir:C}),Ke=C({\u0275pipe:C}),Ee=C({\u0275mod:C}),Be=C({\u0275fac:C}),at=C({__NG_ELEMENT_ID__:C});let Ot=0;function mt(n){return K(()=>{const l={},c={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:l,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===ae.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||lt,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Tt.Emulated,id:"c",styles:n.styles||lt,_:null,setInput:null,schemas:n.schemas||null,tView:null},y=n.directives,S=n.features,R=n.pipes;return c.id+=Ot++,c.inputs=N(n.inputs,l),c.outputs=N(n.outputs),S&&S.forEach(G=>G(c)),c.directiveDefs=y?()=>("function"==typeof y?y():y).map(ei):null,c.pipeDefs=R?()=>("function"==typeof R?R():R).map(ht):null,c})}function ei(n){return de(n)||function Je(n){return n[Se]||null}(n)}function ht(n){return function St(n){return n[Ke]||null}(n)}const Oe={};function De(n){return K(()=>{const r={type:n.type,bootstrap:n.bootstrap||lt,declarations:n.declarations||lt,imports:n.imports||lt,exports:n.exports||lt,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(Oe[n.id]=n.type),r})}function N(n,r){if(null==n)return Qn;const l={};for(const c in n)if(n.hasOwnProperty(c)){let y=n[c],S=y;Array.isArray(y)&&(S=y[1],y=y[0]),l[y]=c,r&&(r[y]=S)}return l}const x=mt;function j(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function de(n){return n[Qt]||null}function Ht(n,r){const l=n[Ee]||null;if(!l&&!0===r)throw new Error(`Type ${te(n)} does not have '\u0275mod' property.`);return l}function $t(n){return Array.isArray(n)&&"object"==typeof n[1]}function cn(n){return Array.isArray(n)&&!0===n[1]}function Un(n){return 0!=(8&n.flags)}function Mi(n){return 2==(2&n.flags)}function Fi(n){return 1==(1&n.flags)}function oi(n){return null!==n.template}function Gi(n){return 0!=(512&n[2])}function is(n,r){return n.hasOwnProperty(Be)?n[Be]:null}class gs{constructor(r,l,c){this.previousValue=r,this.currentValue=l,this.firstChange=c}isFirstChange(){return this.firstChange}}function Es(){return Os}function Os(n){return n.type.prototype.ngOnChanges&&(n.setInput=_a),fo}function fo(){const n=bo(this),r=null==n?void 0:n.current;if(r){const l=n.previous;if(l===Qn)n.previous=r;else for(let c in r)l[c]=r[c];n.current=null,this.ngOnChanges(r)}}function _a(n,r,l,c){const y=bo(n)||function ia(n,r){return n[qs]=r}(n,{previous:Qn,current:null}),S=y.current||(y.current={}),R=y.previous,G=this.declaredInputs[l],ie=R[G];S[G]=new gs(ie&&ie.currentValue,r,R===Qn),n[c]=r}Es.ngInherit=!0;const qs="__ngSimpleChanges__";function bo(n){return n[qs]||null}let Yr;function rr(n){Yr=n}function wo(){return void 0!==Yr?Yr:"undefined"!=typeof document?document:void 0}function Ir(n){return!!n.listen}const fe={createRenderer:(n,r)=>wo()};function le(n){for(;Array.isArray(n);)n=n[0];return n}function dn(n,r){return le(r[n])}function hn(n,r){return le(r[n.index])}function Tr(n,r){return n.data[r]}function Dr(n,r){return n[r]}function Xi(n,r){const l=r[n];return $t(l)?l:l[0]}function $i(n){return 4==(4&n[2])}function Xr(n){return 128==(128&n[2])}function as(n,r){return null==r?null:n[r]}function ge(n){n[18]=0}function oe(n,r){n[5]+=r;let l=n,c=n[3];for(;null!==c&&(1===r&&1===l[5]||-1===r&&0===l[5]);)c[5]+=r,l=c,c=c[3]}const J={lFrame:Qi(null),bindingsEnabled:!0};function Ss(){return J.bindingsEnabled}function Fn(){return J.lFrame.lView}function qi(){return J.lFrame.tView}function ra(n){return J.lFrame.contextLView=n,n[8]}function yr(){let n=sl();for(;null!==n&&64===n.type;)n=n.parent;return n}function sl(){return J.lFrame.currentTNode}function Js(n,r){const l=J.lFrame;l.currentTNode=n,l.isParent=r}function Xo(){return J.lFrame.isParent}function ls(){J.lFrame.isParent=!1}function Is(){const n=J.lFrame;let r=n.bindingRootIndex;return-1===r&&(r=n.bindingRootIndex=n.tView.bindingStartIndex),r}function po(){return J.lFrame.bindingIndex}function P(){return J.lFrame.bindingIndex++}function F(n){const r=J.lFrame,l=r.bindingIndex;return r.bindingIndex=r.bindingIndex+n,l}function dt(n,r){const l=J.lFrame;l.bindingIndex=l.bindingRootIndex=n,kt(r)}function kt(n){J.lFrame.currentDirectiveIndex=n}function Kt(n){const r=J.lFrame.currentDirectiveIndex;return-1===r?null:n[r]}function En(){return J.lFrame.currentQueryIndex}function In(n){J.lFrame.currentQueryIndex=n}function Di(n){const r=n[1];return 2===r.type?r.declTNode:1===r.type?n[6]:null}function ji(n,r,l){if(l&Vn.SkipSelf){let y=r,S=n;for(;!(y=y.parent,null!==y||l&Vn.Host||(y=Di(S),null===y||(S=S[15],10&y.type))););if(null===y)return!1;r=y,n=S}const c=J.lFrame=Gn();return c.currentTNode=r,c.lView=n,!0}function er(n){const r=Gn(),l=n[1];J.lFrame=r,r.currentTNode=l.firstChild,r.lView=n,r.tView=l,r.contextLView=n,r.bindingIndex=l.bindingStartIndex,r.inI18n=!1}function Gn(){const n=J.lFrame,r=null===n?null:n.child;return null===r?Qi(n):r}function Qi(n){const r={currentTNode:null,isParent:!0,lView:null,tView:null,
vendor: 4,659 bytes, line 1
1selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=r),r}function vr(){const n=J.lFrame;return J.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Kr=vr;function Wr(){const n=vr();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function es(){return J.lFrame.selectedIndex}function Zr(n){J.lFrame.selectedIndex=n}function ur(){const n=J.lFrame;return Tr(n.tView,n.selectedIndex)}function Or(){J.lFrame.currentNamespace="svg"}function Xs(){!function Bs(){J.lFrame.currentNamespace=null}()}function Wo(n,r){for(let l=r.directiveStart,c=r.directiveEnd;l<c;l++){const S=n.data[l].type.prototype,{ngAfterContentInit:R,ngAfterContentChecked:G,ngAfterViewInit:ie,ngAfterViewChecked:Le,ngOnDestroy:Ge}=S;R&&(n.contentHooks||(n.contentHooks=[])).push(-l,R),G&&((n.contentHooks||(n.contentHooks=[])).push(l,G),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(l,G)),ie&&(n.viewHooks||(n.viewHooks=[])).push(-l,ie),Le&&((n.viewHooks||(n.viewHooks=[])).push(l,Le),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(l,Le)),null!=Ge&&(n.destroyHooks||(n.destroyHooks=[])).push(l,Ge)}}function ao(n,r,l){Vi(n,r,3,l)}function bi(n,r,l,c){(3&n[2])===l&&Vi(n,r,l,c)}function Ei(n,r){let l=n[2];(3&l)===r&&(l&=2047,l+=1,n[2]=l)}function Vi(n,r,l,c){const S=null!=c?c:-1,R=r.length-1;let G=0;for(let ie=void 0!==c?65535&n[18]:0;ie<R;ie++)if("number"==typeof r[ie+1]){if(G=r[ie],null!=c&&G>=c)break}else r[ie]<0&&(n[18]+=65536),(G<S||-1==S)&&(Ti(n,l,r,ie),n[18]=(4294901760&n[18])+ie+2),ie++}function Ti(n,r,l,c){const y=l[c]<0,S=l[c+1],G=n[y?-l[c]:l[c]];if(y){if(n[2]>>11<n[18]>>16&&(3&n[2])===r){n[2]+=2048;try{S.call(G)}finally{}}}else try{S.call(G)}finally{}}class bs{constructor(r,l,c){this.factory=r,this.resolving=!1,this.canSeeViewProviders=l,this.injectImpl=c}}function Vr(n,r,l){const c=Ir(n);let y=0;for(;y<l.length;){const S=l[y];if("number"==typeof S){if(0!==S)break;y++;const R=l[y++],G=l[y++],ie=l[y++];c?n.setAttribute(r,G,ie,R):r.setAttributeNS(R,G,ie)}else{const R=S,G=l[++y];ya(R)?c&&n.setProperty(r,R,G):c?n.setAttribute(r,R,G):r.setAttribute(R,G),y++}}return y}function Yo(n){return 3===n||4===n||6===n}function ya(n){return 64===n.charCodeAt(0)}function cs(n,r){if(null!==r&&0!==r.length)if(null===n||0===n.length)n=r.slice();else{let l=-1;for(let c=0;c<r.length;c++){const y=r[c];"number"==typeof y?l=y:0===l||Bo(n,l,y,null,-1===l||2===l?r[++c]:null)}}return n}function Bo(n,r,l,c,y){let S=0,R=n.length;if(-1===r)R=-1;else for(;S<n.length;){const G=n[S++];if("number"==typeof G){if(G===r){R=-1;break}if(G>r){R=S-1;break}}}for(;S<n.length;){const G=n[S];if("number"==typeof G)break;if(G===l){if(null===c)return void(null!==y&&(n[S+1]=y));if(c===n[S+1])return void(n[S+2]=y)}S++,null!==c&&S++,null!==y&&S++}-1!==R&&(n.splice(R,0,r),S=R+1),n.splice(S++,0,l),null!==c&&n.splice(S++,0,c),null!==y&&n.splice(S++,0,y)}function Ta(n){return-1!==n}function So(n){return 32767&n}function la(n,r){let l=function Da(n){return n>>16}(n),c=r;for(;l>0;)c=c[15],l--;return c}let Zo=!0;function ee(n){const r=Zo;return Zo=n,r}let a=0;function w(n,r){const l=Q(n,r);if(-1!==l)return l;const c=r[1];c.firstCreatePass&&(n.injectorIndex=r.length,A(c.data,n),A(r,null),A(c.blueprint,null));const y=xe(n,r),S=n.injectorIndex;if(Ta(y)){const R=So(y),G=la(y,r),ie=G[1].data;for(let Le=0;Le<8;Le++)r[S+Le]=G[R+Le]|ie[R+Le]}return r[S+8]=y,S}function A(n,r){n.push(0,0,0,0,0,0,0,0,r)}function Q(n,r){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===r[n.injectorIndex+8]?-1:n.injectorIndex}function xe(n,r){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let l=0,c=null,y=r;for(;null!==y;){const S=y[1],R=S.type;if(c=2===R?S.declTNode:1===R?y[6]:null,null===c)return-1;if(l++,y=y[15],-1!==c.injectorIndex)return c.injectorIndex|l<<16}return-1}function bt(n,r,l){!function d(n,r,l){let c;"string"==typeof l?c=l.charCodeAt(0)||0:l.hasOwnProperty(at)&&(c=l[at]),null==c&&(c=l[at]=a++);const y=255&c;r.data[n+(y>>5)]|=1<<y}(n,r,l)}function Jt(n,r,l){if(l&Vn.Optional)return n;ze(r,"NodeInjector")}function Sn(n,r,l,c){if(l&Vn.Optional&&void 0===c&&(c=null),0==(l&(Vn.Self|Vn.Host))){const y=n[9],S=Pt(void 0);try{return y?y.get(r,c,l&Vn.Optional):$(r,c,l&Vn.Optional)}finally{Pt(S)}}return Jt(c,r,l)}function Wt(n,r,l,c=Vn.Default,y){if(null!==n){const S=function lo(n){if("string"==typeof n)return n.charCo
1deAt(0)||0;const r=n.hasOwnProperty(at)?n[at]:void 0;return"number"==typeof r?r>=0?255&r:Zi:r}(l);if("function"==typeof S){if(!ji(r,n,c))return c&Vn.Host?Jt(y,l,c):Sn(r,l,c,y);try{const R=S(c);if(null!=R||c&Vn.Optional)return R;ze(l)}finally{Kr()}}else if("number"==typeof S){let R=null,G=Q(n,r),ie=-1,Le=c&Vn.Host?r[16][6]:null;for((-1===G||c&Vn.SkipSelf)&&(ie=-1===G?xe(n,r):r[G+8],-1!==ie&&un(c,!1)?(R=r[1],G=So(ie),r=la(ie,r)):G=-1);-1!==G;){const Ge=r[1];if(ci(S,G,Ge.data)){const wt=kr(G,r,l,R,c,Le);if(wt!==ti)return wt}ie=r[G+8],-1!==ie&&un(c,r[1].data[G+8]===Le)&&ci(S,G,r)?(R=Ge,G=So(ie),r=la(ie,r)):G=-1}}}return Sn(r,l,c,y)}const ti={};function Zi(){return new On(yr(),Fn())}function kr(n,r,l,c,y,S){const R=r[1],G=R.data[n+8],Ge=qn(G,R,l,null==c?Mi(G)&&Zo:c!=R&&0!=(3&G.type),y&Vn.Host&&S===G);return null!==Ge?yi(r,R,Ge,G):ti}function qn(n,r,l,c,y){const S=n.providerIndexes,R=r.data,G=1048575&S,ie=n.directiveStart,Ge=S>>20,Vt=y?G+Ge:n.directiveEnd;for(let sn=c?G:G+Ge;sn<Vt;sn++){const Hn=R[sn];if(sn<ie&&l===Hn||sn>=ie&&Hn.type===l)return sn}if(y){const sn=R[ie];if(sn&&oi(sn)&&sn.type===l)return ie}return null}function yi(n,r,l,c){let y=n[l];const S=r.data;if(function qr(n){return n instanceof bs}(y)){const R=y;R.resolving&&function je(n,r){const l=r?`. Dependency path: ${r.join(" > ")} > ${n}`:"";throw new Ye(-200,`Circular dependency in DI detected for ${n}${l}`)}(rt(S[l]));const G=ee(R.canSeeViewProviders);R.resolving=!0;const ie=R.injectImpl?Pt(R.injectImpl):null;ji(n,c,Vn.Default);try{y=n[l]=R.factory(void 0,S,n,c),r.firstCreatePass&&l>=c.directiveStart&&function Hs(n,r,l){const{ngOnChanges:c,ngOnInit:y,ngDoCheck:S}=r.type.prototype;if(c){const R=Os(r);(l.preOrderHooks||(l.preOrderHooks=[])).push(n,R),(l.preOrderCheckHooks||(l.preOrderCheckHooks=[])).push(n,R)}y&&(l.preOrderHooks||(l.preOrderHooks=[])).push(0-n,y),S&&((l.preOrderHooks||(l.preOrderHooks=[])).push(n,S),(l.preOrderCheckHooks||(l.preOrderCheckHooks=[])).push(n,S))}(l,S[l],r)}finally{null!==ie&&Pt(ie),ee(G),R.resolving=!1,Kr()}}return y}function ci(n,r,l){return!!(l[r+(n>>5)]&1<<n)}function un(n,r){return!(n&Vn.Self||n&Vn.Host&&r)}class On{constructor(r,l){this._tNode=r,this._lView=l}get(r,l,c){return Wt(this._tNode,this._lView,r,c,l)}}function br(n){return K(()=>{const r=n.prototype.constructor,l=r[Be]||ol(r),c=Object.prototype;let y=Object.getPrototypeOf(n.prototype).constructor;for(;y&&y!==c;){const S=y[Be]||ol(y);if(S&&S!==l)return S;y=Object.getPrototypeOf(y)}return S=>new S})}function ol(n){return ke(n)?()=>{const r=ol(be(n));return r&&r()}:is(n)}function Gs(n){return function xt(n,r){if("class"===r)return n.classes;if("style"===r)return n.styles;const l=n.attrs;if(l){const c=l.length;let y=0;for(;y<c;){const S=l[y];if(Yo(S))break;if(0===S)y+=2;else if("number"==typeof S)for(y++;y<c&&"string"==typeof l[y];)y++;else{if(S===r)return l[y+1];y+=2}}}return null}(yr(),n)}const ds="__parameters__";function Ka(n,r,l){return K(()=>{const c=function al(n){return function(...l){if(n){const c=n(...l);for(const y in c)this[y]=c[y]}}}(r);function y(...S){if(this instanceof y)return c.apply(this,S),this;const R=new y(...S);return G.annotation=R,G;function G(ie,Le,Ge){const wt=ie.hasOwnProperty(ds)?ie[ds]:Object.defineProperty(ie,ds,{value:[]})[ds];for(;wt.length<=Ge;)wt.push(null);return(wt[Ge]=wt[Ge]||[]).push(R),ie}}return l&&(y.prototype=Object.create(l.prototype)),y.prototype.ngMetadataName=n,y.annotationCls=y,y})}class hs{constructor(r,l){this._desc=r,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof l?this.__NG_ELEMENT_ID__=l:void 0!==l&&(this.\u0275prov=At({token:this,providedIn:l.providedIn||"root",factory:l.factory}))}toString(){return`InjectionToken ${this._desc}`}}const cr=new hs("AnalyzeForEntryComponents");function Ho(n,r){void 0===r&&(r=n);for(let l=0;l<n.length;l++){let c=n[l];Array.isArray(c)?(r===n&&(r=n.slice(0,l)),Ho(c,r)):r!==n&&r.push(c)}return r}function Ya(n,r){n.forEach(l=>Array.isArray(l)?Ya(l,r):r(l))}function bl(n,r,l){r>=n.length?n.push(l):n.splice(r,0,l)}function Qa(n,r){return r>=n.length-1?n.pop():n.splice(r,1)[0]}function va(n,r){const l=[];for(let c=0;c<n;
1c++)l.push(r);return l}function nn(n,r,l){let c=lr(n,r);return c>=0?n[1|c]=l:(c=~c,function cu(n,r,l,c){let y=n.length;if(y==r)n.push(l,c);else if(1===y)n.push(c,n[0]),n[0]=l;else{for(y--,n.push(n[y-1],n[y]);y>r;)n[y]=n[y-2],y--;n[r]=l,n[r+1]=c}}(n,c,r,l)),c}function Ja(n,r){const l=lr(n,r);if(l>=0)return n[1|l]}function lr(n,r){return function Xa(n,r,l){let c=0,y=n.length>>l;for(;y!==c;){const S=c+(y-c>>1),R=n[S<<l];if(r===R)return S<<l;R>r?y=S:c=S+1}return~(y<<l)}(n,r,1)}const La={},Gl="__NG_DI_FLAG__",Us="ngTempTokenPath",$l=/\n/gm,Tl="__source",Aa=C({provide:String,useValue:C});let Pa;function Du(n){const r=Pa;return Pa=n,r}function Vu(n,r=Vn.Default){if(void 0===Pa)throw new Ye(203,"");return null===Pa?$(n,void 0,r):Pa.get(n,r&Vn.Optional?null:void 0,r)}function ko(n,r=Vn.Default){return(function Ve(){return Rn}()||Vu)(be(n),r)}const oa=ko;function Cu(n){const r=[];for(let l=0;l<n.length;l++){const c=be(n[l]);if(Array.isArray(c)){if(0===c.length)throw new Ye(900,"");let y,S=Vn.Default;for(let R=0;R<c.length;R++){const G=c[R],ie=Ca(G);"number"==typeof ie?-1===ie?y=G.token:S|=ie:y=G}r.push(ko(y,S))}else r.push(ko(c))}return r}function Kl(n,r){return n[Gl]=r,n.prototype[Gl]=r,n}function Ca(n){return n[Gl]}const Su=Kl(Ka("Inject",n=>({token:n})),-1),Oa=Kl(Ka("Optional"),8),Ol=Kl(Ka("SkipSelf"),4);var se=(()=>((se=se||{})[se.Important=1]="Important",se[se.DashCase=2]="DashCase",se))();const Rs="__ngContext__";function xs(n,r){n[Rs]=r}function ka(n){const r=function Io(n){return n[Rs]||null}(n);return r?Array.isArray(r)?r:r.lView:null}function ne(n,r){return undefined(n,r)}function jt(n){const r=n[3];return cn(r)?r[3]:r}function gi(n){return zi(n[13])}function fi(n){return zi(n[4])}function zi(n){for(;null!==n&&!cn(n);)n=n[4];return n}function tr(n,r,l,c,y){if(null!=c){let S,R=!1;cn(c)?S=c:$t(c)&&(R=!0,c=c[0]);const G=le(c);0===n&&null!==l?null==y?Fc(r,l,G):pu(r,l,G,y||null,!0):1===n&&null!==l?pu(r,l,G,y||null,!0):2===n?function mr(n,r,l){const c=B(n,r);c&&function Sh(n,r,l,c){Ir(n)?n.removeChild(r,l,c):r.removeChild(l)}(n,c,r,l)}(r,G,R):3===n&&r.destroyNode(G),null!=S&&function Yc(n,r,l,c,y){const S=l[7];S!==le(l)&&tr(r,n,c,S,y);for(let G=10;G<l.length;G++){const ie=l[G];Lo(ie[1],ie,n,r,c,S)}}(r,n,S,l,y)}}function xo(n,r,l){if(Ir(n))return n.createElement(r,l);{const c=null!==l?function xi(n){const r=n.toLowerCase();return"svg"===r?"http://www.w3.org/2000/svg":"math"===r?"http://www.w3.org/1998/MathML/":null}(l):null;return null===c?n.createElement(r):n.createElementNS(c,r)}}function Ns(n,r){const l=n[9],c=l.indexOf(r),y=r[3];1024&r[2]&&(r[2]&=-1025,oe(y,-1)),l.splice(c,1)}function jo(n,r){if(n.length<=10)return;const l=10+r,c=n[l];if(c){const y=c[17];null!==y&&y!==n&&Ns(y,c),r>0&&(n[l-1][4]=c[4]);const S=Qa(n,10+r);!function tl(n,r){Lo(n,r,r[11],2,null,null),r[0]=null,r[6]=null}(c[1],c);const R=S[19];null!==R&&R.detachView(S[1]),c[3]=null,c[4]=null,c[2]&=-129}return c}function Wu(n,r){if(!(256&r[2])){const l=r[11];Ir(l)&&l.destroyNode&&Lo(n,r,l,3,null,null),function zu(n){let r=n[13];if(!r)return Zu(n[1],n);for(;r;){let l=null;if($t(r))l=r[13];else{const c=r[10];c&&(l=c)}if(!l){for(;r&&!r[4]&&r!==n;)$t(r)&&Zu(r[1],r),r=r[3];null===r&&(r=n),$t(r)&&Zu(r[1],r),l=r&&r[4]}r=l}}(r)}}function Zu(n,r){if(!(256&r[2])){r[2]&=-129,r[2]|=256,function Rc(n,r){let l;if(null!=n&&null!=(l=n.destroyHooks))for(let c=0;c<l.length;c+=2){const y=r[l[c]];if(!(y instanceof bs)){const S=l[c+1];if(Array.isArray(S))for(let R=0;R<S.length;R+=2){const G=y[S[R]],ie=S[R+1];try{ie.call(G)}finally{}}else try{S.call(y)}finally{}}}}(n,r),function mc(n,r){const l=n.cleanup,c=r[7];let y=-1;if(null!==l)for(let S=0;S<l.length-1;S+=2)if("string"==typeof l[S]){const R=l[S+1],G="function"==typeof R?R(r):le(r[R]),ie=c[y=l[S+2]],Le=l[S+3];"boolean"==typeof Le?G.removeEventListener(l[S],ie,Le):Le>=0?c[y=Le]():c[y=-Le].unsubscribe(),S+=2}else{const R=c[y=l[S+1]];l[S].call(R)}if(null!==c){for(let S=y+1;S<c.length;S++)c[S]();r[7]=null}}(n,r),1===r[1].type&&Ir(r[11])&&r[11].destroy();const l=r[17];if(null!==l&&cn(r[3])){l!==r[3]&&Ns(l,r);const c=r[19];null!==c&&c.detachView(n)}}}function Na(n,r,l){return function Nc(n,r,l){let c=r;for(;null!==c&&40&c.type;)c=(r=c).parent;if(null===c)return l[0];if(2&c.flags){const y=n.data[c.directiveStart].encapsulation;if(y===Tt.None||y===Tt.Emulated)return null}return hn(c,l)}(n,r.parent,l)}function pu(n,r,l,c,y){Ir(n)?n.insertBefore(r,l,c,y):r.insertBefore(l,c,y)}function Fc(n,r,l){Ir(n)?n.appendChild(r,l):r.appendChild(l)}function Hd(n,r,l,c,y){null!==c?pu(n,r,l,c,y):Fc(n,r,l)}function B(n,r){return Ir(n)?n.parentNode(r):r.parentNode}function I(n,r,l){return Ae(n,r,l)}let Ia,$u,Ae=function Z(n,r,l){return 40&n.type?hn(n,l):null};function an(n,r,l,c){const y=Na(n,c,r),S=r[11],G=I(c.parent||r[6],c,r);if(null!=y)if(Array.isArray(l))for(let ie=0;ie<l.length;ie++)Hd(S,y,l[ie],G,!1);else Hd(S,y,l,G,!1)}function Xn(n,r){if(null!==r){const l=r.type;if(3&l)return hn(r,n);if(4&l)return sr(-1,n[r.index]);if(8&l){const c=r.child;if(null!==c)return Xn(n,c);{const y=n[r.index];return cn(y)?sr(-1,y):le(y)}}if(32&l)return ne(r,n)()||le(n[r.index]);{const c=Ci(n,r);return null!==c?Array.isArray(c)?c[0]:Xn(jt(n[16]),c):Xn(n,r.next)}}return null}function Ci(n,r){return null!==r?n[16][6].projection[r.projection]:null}function sr(n,r){const l=10+n+1;if(l<r.length){const c=r[l],y=c[1].firstChild;if(null!==y)return Xn(c,y)}return r[7]}function js(n,r,l,c,y,S,R){for(;null!=l;
vendor: 4,501 bytes, line 1
1){const G=c[l.index],ie=l.type;if(R&&0===r&&(G&&xs(le(G),c),l.flags|=4),64!=(64&l.flags))if(8&ie)js(n,r,l.child,c,y,S,!1),tr(r,n,y,G,S);else if(32&ie){const Le=ne(l,c);let Ge;for(;Ge=Le();)tr(r,n,y,Ge,S);tr(r,n,y,G,S)}else 16&ie?_l(n,r,c,l,y,S):tr(r,n,y,G,S);l=R?l.projectionNext:l.next}}function Lo(n,r,l,c,y,S){js(l,c,n.firstChild,r,y,S,!1)}function _l(n,r,l,c,y,S){const R=l[16],ie=R[6].projection[c.projection];if(Array.isArray(ie))for(let Le=0;Le<ie.length;Le++)tr(r,n,y,ie[Le],S);else js(n,r,ie,R[3],y,S,!0)}function Pu(n,r,l){Ir(n)?n.setAttribute(r,"style",l):r.style.cssText=l}function Ou(n,r,l){Ir(n)?""===l?n.removeAttribute(r,"class"):n.setAttribute(r,"class",l):r.className=l}function Cl(n){var r;return(null===(r=function _o(){if(void 0===Ia&&(Ia=null,Nn.trustedTypes))try{Ia=Nn.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Ia}())||void 0===r?void 0:r.createHTML(n))||n}function Ud(n){var r;return(null===(r=function sd(){if(void 0===$u&&($u=null,Nn.trustedTypes))try{$u=Nn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return $u}())||void 0===r?void 0:r.createHTML(n))||n}class Nu{constructor(r){this.changingThisBreaksApplicationSecurity=r}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Ua extends Nu{getTypeName(){return"HTML"}}class zf extends Nu{getTypeName(){return"Style"}}class od extends Nu{getTypeName(){return"Script"}}class jd extends Nu{getTypeName(){return"URL"}}class gu extends Nu{getTypeName(){return"ResourceURL"}}function Jl(n){return n instanceof Nu?n.changingThisBreaksApplicationSecurity:n}function yu(n,r){const l=Ih(n);if(null!=l&&l!==r){if("ResourceURL"===l&&"URL"===r)return!0;throw new Error(`Required a safe ${r}, got a ${l} (see https://g.co/ng/security#xss)`)}return l===r}function Ih(n){return n instanceof Nu&&n.getTypeName()||null}function Wf(n){return new Ua(n)}function Hr(n){return new zf(n)}function Zf(n){return new od(n)}function ja(n){return new jd(n)}function ad(n){return new gu(n)}class ld{constructor(r){this.inertDocumentHelper=r}getInertBodyElement(r){r="<body><remove></remove>"+r;try{const l=(new window.DOMParser).parseFromString(Cl(r),"text/html").body;return null===l?this.inertDocumentHelper.getInertBodyElement(r):(l.removeChild(l.firstChild),l)}catch(l){return null}}}class nl{constructor(r){if(this.defaultDoc=r,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const l=this.inertDocument.createElement("html");this.inertDocument.appendChild(l);const c=this.inertDocument.createElement("body");l.appendChild(c)}}getInertBodyElement(r){const l=this.inertDocument.createElement("template");if("content"in l)return l.innerHTML=Cl(r),l;const c=this.inertDocument.createElement("body");return c.innerHTML=Cl(r),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(c),c}stripCustomNsAttrs(r){const l=r.attributes;for(let y=l.length-1;0<y;y--){const R=l.item(y).name;("xmlns:ns1"===R||0===R.indexOf("ns1:"))&&r.removeAttribute(R)}let c=r.firstChild;for(;c;)c.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(c),c=c.nextSibling}}const Gf=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Yl=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function bu(n){return(n=String(n)).match(Gf)||n.match(Yl)?n:"unsafe:"+n}function Va(n){const r={};for(const l of n.split(","))r[l]=!0;return r}function Ku(...n){const r={};for(const l of n)for(const c in l)l.hasOwnProperty(c)&&(r[c]=!0);return r}const gc=Va("area,br,col,hr,img,wbr"),Lh=Va("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ah=Va("rp,rt"),no=Ku(gc,Ku(Lh,Va("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ku(Ah,Va("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ku(Ah,Lh)),qu=Va("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),yc=Va("srcset"),vc=Ku(qu,yc,Va("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,c
1olspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Va("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),qf=Va("script,style,template");class Bl{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(r){let l=r.firstChild,c=!0;for(;l;)if(l.nodeType===Node.ELEMENT_NODE?c=this.startElement(l):l.nodeType===Node.TEXT_NODE?this.chars(l.nodeValue):this.sanitizedSomething=!0,c&&l.firstChild)l=l.firstChild;else for(;l;){l.nodeType===Node.ELEMENT_NODE&&this.endElement(l);let y=this.checkClobberedElement(l,l.nextSibling);if(y){l=y;break}l=this.checkClobberedElement(l,l.parentNode)}return this.buf.join("")}startElement(r){const l=r.nodeName.toLowerCase();if(!no.hasOwnProperty(l))return this.sanitizedSomething=!0,!qf.hasOwnProperty(l);this.buf.push("<"),this.buf.push(l);const c=r.attributes;for(let y=0;y<c.length;y++){const S=c.item(y),R=S.name,G=R.toLowerCase();if(!vc.hasOwnProperty(G)){this.sanitizedSomething=!0;continue}let ie=S.value;qu[G]&&(ie=bu(ie)),yc[G]&&(n=ie,ie=(n=String(n)).split(",").map(r=>bu(r.trim())).join(", ")),this.buf.push(" ",R,'="',Oh(ie),'"')}var n;return this.buf.push(">"),!0}endElement(r){const l=r.nodeName.toLowerCase();no.hasOwnProperty(l)&&!gc.hasOwnProperty(l)&&(this.buf.push("</"),this.buf.push(l),this.buf.push(">"))}chars(r){this.buf.push(Oh(r))}checkClobberedElement(r,l){if(l&&(r.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${r.outerHTML}`);return l}}const bc=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Fu=/([^\#-~ |!])/g;function Oh(n){return n.replace(/&/g,"&").replace(bc,function(r){return"&#"+(1024*(r.charCodeAt(0)-55296)+(r.charCodeAt(1)-56320)+65536)+";"}).replace(Fu,function(r){return"&#"+r.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let ud;function Wd(n,r){let l=null;try{ud=ud||function vu(n){const r=new nl(n);return function _c(){try{return!!(new window.DOMParser).parseFromString(Cl(""),"text/html")}catch(n){return!1}}()?new ld(r):r}(n);let c=r?String(r):"";l=ud.getInertBodyElement(c);let y=5,S=c;do{if(0===y)throw new Error("Failed to sanitize html because the input is unstable");y--,c=S,S=l.innerHTML,l=ud.getInertBodyElement(c)}while(c!==S);return Cl((new Bl).sanitizeChildren(Qu(l)||l))}finally{if(l){const c=Qu(l)||l;for(;c.firstChild;)c.removeChild(c.firstChild)}}}function Qu(n){return"content"in n&&function Rh(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var Ko=(()=>((Ko=Ko||{})[Ko.NONE=0]="NONE",Ko[Ko.HTML=1]="HTML",Ko[Ko.STYLE=2]="STYLE",Ko[Ko.SCRIPT=3]="SCRIPT",Ko[Ko.URL=4]="URL",Ko[Ko.RESOURCE_URL=5]="RESOURCE_URL",Ko))();function Zd(n){const r=cd();return r?Ud(r.sanitize(Ko.HTML,n)||""):yu(n,"HTML")?Ud(Jl(n)):Wd(wo(),Te(n))}function Fh(n){const r=cd();return r?r.sanitize(Ko.URL,n)||"":yu(n,"URL")?Jl(n):bu(Te(n))}function cd(){const n=Fn();return n&&n[12]}function wc(n){return n.ngOriginalError}function Bc(n,...r){n.error(...r)}class Tc{constructor(){this._console=console}handleError(r){const l=this._findOriginalError(r),c=function Mc(n){return n&&n.ngErrorLogger||Bc}(r);c(this._console,"ERROR",r),l&&c(this._console,"ORIGINAL ERROR",l)}_findOriginalError(r){let l=r&&wc(r);for(;l&&wc(l);)l=wc(l);return l||null}}const Tm=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Nn))();function rp(n){return n.ownerDocument.defaultView}function Dm(n){return n.ownerDocument}function il(n){return n instanceof Function?n():n}function jh(n,r,l){let c=n.length;for(;;){const y=n.indexOf(r,l);if(-1===y)return y;
1if(0===y||n.charCodeAt(y-1)<=32){const S=r.length;if(y+S===c||n.charCodeAt(y+S)<=32)return y}l=y+1}}const Xl="ng-template";function ap(n,r,l){let c=0;for(;c<n.length;){let y=n[c++];if(l&&"class"===y){if(y=n[c],-1!==jh(y.toLowerCase(),r,0))return!0}else if(1===y){for(;c<n.length&&"string"==typeof(y=n[c++]);)if(y.toLowerCase()===r)return!0;return!1}}return!1}function lp(n){return 4===n.type&&n.value!==Xl}function dd(n,r,l){return r===(4!==n.type||l?n.value:Xl)}function up(n,r,l){let c=4;const y=n.attrs||[],S=function hd(n){for(let r=0;r<n.length;r++)if(Yo(n[r]))return r;return n.length}(y);let R=!1;for(let G=0;G<r.length;G++){const ie=r[G];if("number"!=typeof ie){if(!R)if(4&c){if(c=2|1&c,""!==ie&&!dd(n,ie,l)||""===ie&&1===r.length){if(Hl(c))return!1;R=!0}}else{const Le=8&c?ie:r[++G];if(8&c&&null!==n.attrs){if(!ap(n.attrs,Le,l)){if(Hl(c))return!1;R=!0}continue}const wt=Vh(8&c?"class":ie,y,lp(n),l);if(-1===wt){if(Hl(c))return!1;R=!0;continue}if(""!==Le){let Vt;Vt=wt>S?"":y[wt+1].toLowerCase();const sn=8&c?Vt:null;if(sn&&-1!==jh(sn,Le,0)||2&c&&Le!==Vt){if(Hl(c))return!1;R=!0}}}}else{if(!R&&!Hl(c)&&!Hl(ie))return!1;if(R&&Hl(ie))continue;R=!1,c=ie|1&c}}return Hl(c)||R}function Hl(n){return 0==(1&n)}function Vh(n,r,l,c){if(null===r)return-1;let y=0;if(c||!l){let S=!1;for(;y<r.length;){const R=r[y];if(R===n)return y;if(3===R||6===R)S=!0;else{if(1===R||2===R){let G=r[++y];for(;"string"==typeof G;)G=r[++y];continue}if(4===R)break;if(0===R){y+=4;continue}}y+=S?1:2}return-1}return function zh(n,r){let l=n.indexOf(4);if(l>-1)for(l++;l<n.length;){const c=n[l];if("number"==typeof c)return-1;if(c===r)return l;l++}return-1}(r,n)}function cp(n,r,l=!1){for(let c=0;c<r.length;c++)if(up(n,r[c],l))return!0;return!1}function Xu(n,r){e:for(let l=0;l<r.length;l++){const c=r[l];if(n.length===c.length){for(let y=0;y<n.length;y++)if(n[y]!==c[y])continue e;return!0}}return!1}function ba(n,r){return n?":not("+r.trim()+")":r}function rl(n){let r=n[0],l=1,c=2,y="",S=!1;for(;l<n.length;){let R=n[l];if("string"==typeof R)if(2&c){const G=n[++l];y+="["+R+(G.length>0?'="'+G+'"':"")+"]"}else 8&c?y+="."+R:4&c&&(y+=" "+R);else""!==y&&!Hl(R)&&(r+=ba(S,y),y=""),c=R,S=S||!Hl(c);l++}return""!==y&&(r+=ba(S,y)),r}const Fr={};function dp(n){hp(qi(),Fn(),es()+n,!1)}function hp(n,r,l,c){if(!c)if(3==(3&r[2])){const S=n.preOrderCheckHooks;null!==S&&ao(r,S,l)}else{const S=n.preOrderHooks;null!==S&&bi(r,S,0,l)}Zr(l)}function eu(n,r){return n<<17|r<<2}function za(n){return n>>17&32767}function fd(n){return 2|n}function xa(n){return(131068&n)>>2}function pd(n,r){return-131069&n|r<<2}function Kd(n){return 1|n}function Ul(n,r){const l=n.contentQueries;if(null!==l)for(let c=0;c<l.length;c+=2){const y=l[c],S=l[c+1];if(-1!==S){const R=n.data[S];In(y),R.contentQueries(2,r[S],S)}}}function tc(n,r,l,c,y,S,R,G,ie,Le){const Ge=r.blueprint.slice();return Ge[0]=y,Ge[2]=140|c,ge(Ge),Ge[3]=Ge[15]=n,Ge[8]=l,Ge[10]=R||n&&n[10],Ge[11]=G||n&&n[11],Ge[12]=ie||n&&n[12]||null,Ge[9]=Le||n&&n[9]||null,Ge[6]=S,Ge[16]=2==r.type?n[16]:Ge,Ge}function Sc(n,r,l,c,y){let S=n.data[r];if(null===S)S=function yp(n,r,l,c,y){const S=sl(),R=Xo(),ie=n.data[r]=function K_(n,r,l,c,y,S){return{type:l,index:c,insertBeforeIndex:null,injectorIndex:r?r.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:y,attrs:S,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:r,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,R?S:S&&S.parent,l,r,c,y);return null===n.firstChild&&(n.firstChild=ie),null!==S&&(R?null==S.child&&null!==ie.parent&&(S.child=ie):null===S.next&&(S.next=ie)),ie}(n,r,l,c,y),function ce(){return J.lFrame.inI18n}()&&(S.flags|=64);else if(64&S.type){S.type=l,S.value=c,S.attrs=y;const R=function fr(){const n=J.lFrame,r=n.currentTNode;return n.isParent?r:r.parent}();S.injectorIndex=null===R?-1:R.injectorIndex}return Js(S,!0),S}function nu(n,r,l,c){if(0===l)return-1;const y=r.length;for(let S=0;S<l;S++)r.push(c),n.blueprint.push(c),n.data.push(null);return y}function nc(n,r,l){er(r);try{const c=n.viewQuery;null!==c&&Sp(1,c,l);const y=n.template;null!==y&&W_(n,r,y,1,l),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&Ul(n,r),n.staticViewQueries&&Sp(2,n.viewQuery,l);const S=n.components;null!==S&&function Cc(n,r){for(let l=0;l<r.length;l++)Om(n,r[l])}(r,S)}catch(c){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),c}finally{r[2]&=-5,Wr()}}function vd(n,r,l,c){const y=r[2];if(256!=(256&y)){er(r);try{ge(r),function Pe(n){return J.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==l&&W_(n,r,l,2,c);const R=3==(3&y);if(R){const Le=n.preOrderCheckHooks;null!==Le&&ao(r,Le,null)}else{const Le=n.preOrderHooks;null!==Le&&bi(r,Le,0,null),Ei(r,0)}if(function uv(n){for(let r=gi(n);null!==r;
1r=fi(r)){if(!r[2])continue;const l=r[9];for(let c=0;c<l.length;c++){const y=l[c],S=y[3];0==(1024&y[2])&&oe(S,1),y[2]|=1024}}}(r),function ig(n){for(let r=gi(n);null!==r;r=fi(r))for(let l=10;l<r.length;l++){const c=r[l],y=c[1];Xr(c)&&vd(y,c,y.template,c[8])}}(r),null!==n.contentQueries&&Ul(n,r),R){const Le=n.contentCheckHooks;null!==Le&&ao(r,Le)}else{const Le=n.contentHooks;null!==Le&&bi(r,Le,1),Ei(r,1)}!function wa(n,r){const l=n.hostBindingOpCodes;if(null!==l)try{for(let c=0;c<l.length;c++){const y=l[c];if(y<0)Zr(~y);else{const S=y,R=l[++c],G=l[++c];dt(R,S),G(2,r[S])}}}finally{Zr(-1)}}(n,r);const G=n.components;null!==G&&function Vo(n,r){for(let l=0;l<r.length;l++)rg(n,r[l])}(r,G);const ie=n.viewQuery;if(null!==ie&&Sp(2,ie,c),R){const Le=n.viewCheckHooks;null!==Le&&ao(r,Le)}else{const Le=n.viewHooks;null!==Le&&bi(r,Le,2),Ei(r,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),r[2]&=-73,1024&r[2]&&(r[2]&=-1025,oe(r[3],-1))}finally{Wr()}}}function bd(n,r,l,c){const y=r[10],R=$i(r);try{!R&&y.begin&&y.begin(),R&&nc(n,r,c),vd(n,r,l,c)}finally{!R&&y.end&&y.end()}}function W_(n,r,l,c,y){const S=es(),R=2&c;try{Zr(-1),R&&r.length>20&&hp(n,r,20,!1),l(c,y)}finally{Zr(S)}}function wd(n,r,l){if(Un(r)){const y=r.directiveEnd;for(let S=r.directiveStart;S<y;S++){const R=n.data[S];R.contentQueries&&R.contentQueries(1,l[S],S)}}}function vp(n,r,l){!Ss()||(function sv(n,r,l,c){const y=l.directiveStart,S=l.directiveEnd;n.firstCreatePass||w(l,r),xs(c,r);const R=l.initialInputs;for(let G=y;G<S;G++){const ie=n.data[G],Le=oi(ie);Le&&tg(r,l,ie);const Ge=yi(r,n,G,l);xs(Ge,r),null!==R&&Xh(0,G-y,Ge,ie,0,R),Le&&(Xi(l.index,r)[8]=Ge)}}(n,r,l,hn(l,r)),128==(128&l.flags)&&function ov(n,r,l){const c=l.directiveStart,y=l.directiveEnd,R=l.index,G=function Et(){return J.lFrame.currentDirectiveIndex}();try{Zr(R);for(let ie=c;ie<y;ie++){const Le=n.data[ie],Ge=r[ie];kt(ie),(null!==Le.hostBindings||0!==Le.hostVars||null!==Le.hostAttrs)&&X_(Le,Ge)}}finally{Zr(-1),kt(G)}}(n,r,l))}function ic(n,r,l=hn){const c=r.localNames;if(null!==c){let y=r.index+1;for(let S=0;S<c.length;S+=2){const R=c[S+1],G=-1===R?l(r,n):n[R];n[y++]=G}}}function Am(n){const r=n.tView;return null===r||r.incompleteFirstPass?n.tView=bp(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):r}function bp(n,r,l,c,y,S,R,G,ie,Le){const Ge=20+c,wt=Ge+y,Vt=function Z_(n,r){const l=[];for(let c=0;c<r;c++)l.push(c<n?null:Fr);return l}(Ge,wt),sn="function"==typeof Le?Le():Le;return Vt[1]={type:n,blueprint:Vt,template:l,queries:null,viewQuery:G,declTNode:r,data:Vt.slice().fill(null,Ge),bindingStartIndex:Ge,expandoStartIndex:wt,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof S?S():S,pipeRegistry:"function"==typeof R?R():R,firstChild:null,schemas:ie,consts:sn,incompleteFirstPass:!1}}function Kh(n,r,l,c){const y=lg(r);null===l?y.push(c):(y.push(l),n.firstCreatePass&&kp(n).push(c,y.length-1))}function q_(n,r,l){for(let c in n)if(n.hasOwnProperty(c)){const y=n[c];(l=null===l?{}:l).hasOwnProperty(c)?l[c].push(r,y):l[c]=[r,y]}return l}function jl(n,r,l,c,y,S,R,G){const ie=hn(r,l);let Ge,Le=r.inputs;!G&&null!=Le&&(Ge=Le[c])?(Ym(n,l,Ge,c,y),Mi(r)&&function Md(n,r){const l=Xi(r,n);16&l[2]||(l[2]|=64)}(l,r.index)):3&r.type&&(c=function ev(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(c),y=null!=R?R(y,r.value||"",c):y,Ir(S)?S.setProperty(ie,c,y):ya(c)||(ie.setProperty?ie.setProperty(c,y):ie[c]=y))}function Pm(n,r,l,c){let y=!1;if(Ss()){const S=function av(n,r,l){const c=n.directiveRegistry;let y=null;if(c)for(let S=0;S<c.length;S++){const R=c[S];cp(l,R.selectors,!1)&&(y||(y=[]),bt(w(l,r),n,R.type),oi(R)?(Mp(n,l),y.unshift(R)):y.push(R))}return y}(n,r,l),R=null===c?null:{"":-1};if(null!==S){y=!0,Qh(l,n.data.length,S.length);for(let Ge=0;Ge<S.length;Ge++){const wt=S[Ge];wt.providersResolver&&wt.providersResolver(wt)}let G=!1,ie=!1,Le=nu(n,r,S.length,null);for(let Ge=0;Ge<S.length;Ge++){const wt=S[Ge];l.mergedAttrs=cs(l.mergedAttrs,wt.hostAttrs),eg(n,l,r,Le,wt),Tp(Le,wt,R),null!==wt.contentQueries&&(l.flags|=8),(null!==wt.hostBindings||null!==wt.hostAttrs||0!==wt.hostVars)&&(l.flags|=128);const Vt=wt.type.prototype;!G&&(Vt.ngOnChanges||Vt.ngOnInit||Vt.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(l.index),G=!0),!ie&&(Vt.ngOnChanges||Vt.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(l.index),ie=!0),Le++}!function Q_(n,r){const c=r.directiveEnd,y=n.data,S=r.attrs,R=[];let G=null,ie=null;for(let Le=r.directiveStart;Le<c;Le++){const Ge=y[Le],wt=Ge.inputs,Vt=null===S||lp(r)?null:Dp(wt,S);R.push(Vt),G=q_(wt,Le,G),ie=q_(Ge.outputs,Le,ie)}null!==G&&(G.hasOwnProperty("class")&&(r.flags|=16),G.hasOwnProperty("style")&&(r.flags|=32)),r.initialInputs=R,r.inputs=G,r.outputs=ie}(n,l)}R&&function lv(n,r,l){if(r){const c=n.localNames=[];for(let y=0;y<r.length;y+=2){const S=l[r[y+1]];if(null==S)throw new Ye(-301,!1);c.push(r[y],S)}}}(l,c,R)}return l.mergedAttrs=cs(l.mergedAttrs,l.attrs),y}function wp(n,r,l,c,y,S){const R=S.hostBindings;if(R){let G=n.hostBindingOpCodes;null===G&&(G=n.hostBindingOpCodes=[]);const ie=~r.index;(function Wa(n){let r=n.length;for(;r>0;){const l=n[--r];if("number"==typeof l&&l<0)return l}return 0})(G)!=ie&&G.push(ie),G.push(c,y,R)}}function X_(n,r){null!==n.hostBindings&&n.hostBindings(1,r)}function Mp(n,r){r.flags|=2,(n.components||(n.components=[])).push(r.index)}function Tp(n,r,l){if(l){if(r.exportAs)for(let c=0;c<r.exportAs.length;c++)l[r.exportAs[c]]=n;oi(r)&&(l[""]=n)}}function Qh(n,r,l){n.flags|=1,n.directiveStart=r,n.directiveEnd=r+l,n.providerIndexes=r}function eg(n,r,l,c,y){n.data[c]=y;const S=y.factory||(y.factory=is(y.type)),R=new bs(S,oi(y),null);n.blueprint[c]=R,l[c]=R,wp(n,r,0,c,nu(n,l,y.hostVars,Fr),y)}function tg(n,r,l){const c=hn(r,n),y=Am(l),S=n[10],R=ef(n,tc(n,y,null,l.onPush?64:16,c,r,S,S.createRenderer(c,l),null,
1null));n[r.index]=R}function wu(n,r,l,c,y,S){const R=hn(n,r);!function Jh(n,r,l,c,y,S,R){if(null==S)Ir(n)?n.removeAttribute(r,y,l):r.removeAttribute(y);else{const G=null==R?Te(S):R(S,c||"",y);Ir(n)?n.setAttribute(r,y,G,l):l?r.setAttributeNS(l,y,G):r.setAttribute(y,G)}}(r[11],R,S,n.value,l,c,y)}function Xh(n,r,l,c,y,S){const R=S[r];if(null!==R){const G=c.setInput;for(let ie=0;ie<R.length;){const Le=R[ie++],Ge=R[ie++],wt=R[ie++];null!==G?c.setInput(l,wt,Le,Ge):l[Ge]=wt}}}function Dp(n,r){let l=null,c=0;for(;c<r.length;){const y=r[c];if(0!==y)if(5!==y){if("number"==typeof y)break;n.hasOwnProperty(y)&&(null===l&&(l=[]),l.push(y,n[y],r[c+1])),c+=2}else c+=2;else c+=4}return l}function Ep(n,r,l,c){return new Array(n,!0,!1,r,null,0,c,l,null,null)}function rg(n,r){const l=Xi(r,n);if(Xr(l)){const c=l[1];80&l[2]?vd(c,l,c.template,l[8]):l[5]>0&&Cp(l)}}function Cp(n){for(let c=gi(n);null!==c;c=fi(c))for(let y=10;y<c.length;y++){const S=c[y];if(1024&S[2]){const R=S[1];vd(R,S,R.template,S[8])}else S[5]>0&&Cp(S)}const l=n[1].components;if(null!==l)for(let c=0;c<l.length;c++){const y=Xi(l[c],n);Xr(y)&&y[5]>0&&Cp(y)}}function Om(n,r){const l=Xi(r,n),c=l[1];(function cv(n,r){for(let l=r.length;l<n.blueprint.length;l++)r.push(n.blueprint[l])})(c,l),nc(c,l,l[8])}function ef(n,r){return n[13]?n[14][4]=r:n[13]=r,n[14]=r,r}function Rm(n){for(;n;){n[2]|=64;const r=jt(n);if(Gi(n)&&!r)return n;n=r}return null}function Td(n){!function Nm(n){for(let r=0;r<n.components.length;r++){const l=n.components[r],c=ka(l),y=c[1];bd(y,c,y.template,l)}}(n[8])}function Sp(n,r,l){In(0),r(n,l)}const ag=(()=>Promise.resolve(null))();function lg(n){return n[7]||(n[7]=[])}function kp(n){return n.cleanup||(n.cleanup=[])}function ug(n,r,l){return(null===n||oi(n))&&(l=function qe(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(l[r.index])),l[11]}function Ip(n,r){const l=n[9],c=l?l.get(Tc,null):null;c&&c.handleError(r)}function Ym(n,r,l,c,y){for(let S=0;S<l.length;){const R=l[S++],G=l[S++],ie=r[R],Le=n.data[R];null!==Le.setInput?Le.setInput(ie,y,c,G):ie[G]=y}}function rc(n,r,l){const c=dn(r,n);!function $o(n,r,l){Ir(n)?n.setValue(r,l):r.textContent=l}(n[11],c,l)}function eh(n,r,l){let c=l?n.styles:null,y=l?n.classes:null,S=0;if(null!==r)for(let R=0;R<r.length;R++){const G=r[R];"number"==typeof G?S=G:1==S?y=_e(y,G):2==S&&(c=_e(c,G+": "+r[++R]+";"))}l?n.styles=c:n.stylesWithoutHost=c,l?n.classes=y:n.classesWithoutHost=y}const nf=new hs("INJECTOR",-1);class Lp{get(r,l=La){if(l===La){const c=new Error(`NullInjectorError: No provider for ${te(r)}!`);throw c.name="NullInjectorError",c}return l}}const rf=new hs("Set Injector scope."),th={},hv={};let Ap;function sf(){return void 0===Ap&&(Ap=new Lp),Ap}function Pp(n,r=null,l=null,c){const y=cg(n,r,l,c);return y._resolveInjectorDefTypes(),y}function cg(n,r=null,l=null,c){return new fv(n,l,r||sf(),c)}class fv{constructor(r,l,c,y=null){this.parent=c,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const S=[];l&&Ya(l,G=>this.processProvider(G,r,l)),Ya([r],G=>this.processInjectorType(G,[],S)),this.records.set(nf,sc(void 0,this));const R=this.records.get(rf);this.scope=null!=R?R.value:null,this.source=y||("object"==typeof r?null:te(r))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(r=>r.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(r,l=La,c=Vn.Default){this.assertNotDestroyed();const y=Du(this),S=Pt(void 0);try{if(!(c&Vn.SkipSelf)){let G=this.records.get(r);if(void 0===G){const ie=function yv(n){return"function"==typeof n||"object"==typeof n&&n instanceof hs}(r)&&vt(r);G=ie&&this.injectableDefInScope(ie)?sc(Za(r),th):null,this.records.set(r,G)}if(null!=G)return this.hydrate(r,G)}return(c&Vn.Self?sf():this.parent).get(r,l=c&Vn.Optional&&l===La?null:l)}catch(R){if("NullInjectorError"===R.name){if((R[Us]=R[Us]||[]).unshift(te(r)),y)throw R;return function ql(n,r,l,c){const y=n[Us];throw r[Tl]&&y.unshift(r[Tl]),n.message=function Ql(n,r,l,c=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let y=te(r);if(Array.isArray(r))y=r.map(te).join(" -> ");else if("object"==typeof r){let S=[];for(let R in r)if(r.hasOwnProperty(R)){let G=r[R];
1S.push(R+":"+("string"==typeof G?JSON.stringify(G):te(G)))}y=`{${S.join(", ")}}`}return`${l}${c?"("+c+")":""}[${y}]: ${n.replace($l,"\n ")}`}("\n"+n.message,y,l,c),n.ngTokenPath=y,n[Us]=null,n}(R,r,"R3InjectorError",this.source)}throw R}finally{Pt(S),Du(y)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(r=>this.get(r))}toString(){const r=[];return this.records.forEach((c,y)=>r.push(te(y))),`R3Injector[${r.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Ye(205,!1)}processInjectorType(r,l,c){if(!(r=be(r)))return!1;let y=_n(r);const S=null==y&&r.ngModule||void 0,R=void 0===S?r:S,G=-1!==c.indexOf(R);if(void 0!==S&&(y=_n(S)),null==y)return!1;if(null!=y.imports&&!G){let Ge;c.push(R);try{Ya(y.imports,wt=>{this.processInjectorType(wt,l,c)&&(void 0===Ge&&(Ge=[]),Ge.push(wt))})}finally{}if(void 0!==Ge)for(let wt=0;wt<Ge.length;wt++){const{ngModule:Vt,providers:sn}=Ge[wt];Ya(sn,Hn=>this.processProvider(Hn,Vt,sn||lt))}}this.injectorDefTypes.add(R);const ie=is(R)||(()=>new R);this.records.set(R,sc(ie,th));const Le=y.providers;if(null!=Le&&!G){const Ge=r;Ya(Le,wt=>this.processProvider(wt,Ge,Le))}return void 0!==S&&void 0!==r.providers}processProvider(r,l,c){let y=nh(r=be(r))?r:be(r&&r.provide);const S=function dg(n,r,l){return Op(n)?sc(void 0,n.useValue):sc(af(n),th)}(r);if(nh(r)||!0!==r.multi)this.records.get(y);else{let R=this.records.get(y);R||(R=sc(void 0,th,!0),R.factory=()=>Cu(R.multi),this.records.set(y,R)),y=r,R.multi.push(r)}this.records.set(y,S)}hydrate(r,l){return l.value===th&&(l.value=hv,l.value=l.factory()),"object"==typeof l.value&&l.value&&function Hm(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(l.value)&&this.onDestroy.add(l.value),l.value}injectableDefInScope(r){if(!r.providedIn)return!1;const l=be(r.providedIn);return"string"==typeof l?"any"===l||l===this.scope:this.injectorDefTypes.has(l)}}function Za(n){const r=vt(n),l=null!==r?r.factory:is(n);if(null!==l)return l;if(n instanceof hs)throw new Ye(204,!1);if(n instanceof Function)return function pv(n){const r=n.length;if(r>0)throw va(r,"?"),new Ye(204,!1);const l=function Ut(n){const r=n&&(n[bn]||n[si]);if(r){const l=function tn(n){if(n.hasOwnProperty("name"))return n.name;const r=(""+n).match(/^function\s*([^\s(]+)/);return null===r?"":r[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${l}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${l}" class.`),r}return null}(n);return null!==l?()=>l.factory(n):()=>new n}(n);throw new Ye(204,!1)}function af(n,r,l){let c;if(nh(n)){const y=be(n);return is(y)||Za(y)}if(Op(n))c=()=>be(n.useValue);else if(function mv(n){return!(!n||!n.useFactory)}(n))c=()=>n.useFactory(...Cu(n.deps||[]));else if(function hg(n){return!(!n||!n.useExisting)}(n))c=()=>ko(be(n.useExisting));else{const y=be(n&&(n.useClass||n.provide));if(!function gv(n){return!!n.deps}(n))return is(y)||Za(y);c=()=>new y(...Cu(n.deps))}return c}function sc(n,r,l=!1){return{factory:n,value:r,multi:l?[]:void 0}}function Op(n){return null!==n&&"object"==typeof n&&Aa in n}function nh(n){return"function"==typeof n}let oc=(()=>{class n{static create(l,c){var y;if(Array.isArray(l))return Pp({name:""},c,l,"");{const S=null!==(y=l.name)&&void 0!==y?y:"";return Pp({name:S},l.parent,l.providers,S)}}}return n.THROW_IF_NOT_FOUND=La,n.NULL=new Lp,n.\u0275prov=At({token:n,providedIn:"any",factory:()=>ko(nf)}),n.__NG_ELEMENT_ID__=-1,n})();function wv(n,r){Wo(ka(n)[1],yr())}function df(n){let r=function yg(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),l=!0;const c=[n];for(;r;){let y;if(oi(n))y=r.\u0275cmp||r.\u0275dir;else{if(r.\u0275cmp)throw new Ye(903,"");y=r.\u0275dir}if(y){if(l){c.push(y);const R=n;R.inputs=hf(n.inputs),R.declaredInputs=hf(n.declaredInputs),R.outputs=hf(n.outputs);const G=y.hostBindings;G&&vg(n,G);const ie=y.viewQuery,Le=y.contentQueries;if(ie&&Tv(n,ie),Le&&Km(n,Le),q(n.inputs,y.inputs),q(n.declaredInputs,y.declaredInputs),q(n.outputs,y.outputs),oi(y)&&y.data.animation){const Ge=n.data;Ge.animation=(Ge.animation||[]).concat(y.data.animation)}}const S=y.features;if(S)for(let R=0;R<S.length;R++){const G=S[R];G&&G.ngInherit&&G(n),G===df&&(l=!1)}}r=Object.getPrototypeOf(r)}!function Mv(n){let r=0,l=null;for(let c=n.length-1;c>=0;c--){const y=n[c];y.hostVars=r+=y.hostVars,y.hostAttrs=cs(y.hostAttrs,l=cs(l,y.hostAttrs))}}(c)}function hf(n){return n===Qn?{}:n===lt?[]:n}function Tv(n,r){const l=n.viewQuery;n.viewQuery=l?(c,y)=>{r(c,y),l(c,y)}:r}function Km(n,r){const l=n.contentQueries;n.contentQueries=l?(c,y,S)=>{r(c,y,S),l(c,y,S)}:r}function vg(n,r){const l=n.hostBindings;n.hostBindings=l?(c,y)=>{r(c,y),l(c,y)}:r}let kc=null;
1function iu(){if(!kc){const n=Nn.Symbol;if(n&&n.iterator)kc=n.iterator;else{const r=Object.getOwnPropertyNames(Map.prototype);for(let l=0;l<r.length;++l){const c=r[l];"entries"!==c&&"size"!==c&&Map.prototype[c]===Map.prototype.entries&&(kc=c)}}}return kc}function ac(n){return!!Wc(n)&&(Array.isArray(n)||!(n instanceof Map)&&iu()in n)}function Wc(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function lc(n,r,l){return n[r]=l}function Ga(n,r,l){return!Object.is(n[r],l)&&(n[r]=l,!0)}function Ic(n,r,l,c){const y=Ga(n,r,l);return Ga(n,r+1,c)||y}function e_(n,r,l,c){const y=Fn();return Ga(y,P(),r)&&(qi(),wu(ur(),y,n,r,l,c)),e_}function Zc(n,r,l,c){return Ga(n,P(),l)?r+Te(l)+c:Fr}function oh(n,r,l,c,y,S,R,G){const Le=function rh(n,r,l,c,y){const S=Ic(n,r,l,c);return Ga(n,r+2,y)||S}(n,po(),l,y,R);return F(3),Le?r+Te(l)+c+Te(y)+S+Te(R)+G:Fr}function Cg(n,r,l,c,y,S,R,G){const ie=Fn(),Le=qi(),Ge=n+20,wt=Le.firstCreatePass?function n_(n,r,l,c,y,S,R,G,ie){const Le=r.consts,Ge=Sc(r,n,4,R||null,as(Le,G));Pm(r,l,Ge,as(Le,ie)),Wo(r,Ge);const wt=Ge.tViews=bp(2,Ge,c,y,S,r.directiveRegistry,r.pipeRegistry,null,r.schemas,Le);return null!==r.queries&&(r.queries.template(r,Ge),wt.queries=r.queries.embeddedTView(Ge)),Ge}(Ge,Le,ie,r,l,c,y,S,R):Le.data[Ge];Js(wt,!1);const Vt=ie[11].createComment("");an(Le,ie,Vt,wt),xs(Vt,ie),ef(ie,ie[Ge]=Ep(Vt,ie,Vt,wt)),Fi(wt)&&vp(Le,ie,wt),null!=R&&ic(ie,wt,G)}function r_(n){return Dr(function Eo(){return J.lFrame.contextLView}(),20+n)}function yf(n,r=Vn.Default){const l=Fn();return null===l?ko(n,r):Wt(yr(),l,be(n),r)}function $p(){throw new Error("invalid")}function Kp(n,r,l){const c=Fn();return Ga(c,P(),r)&&jl(qi(),ur(),c,n,r,c[11],l,!1),Kp}function Kc(n,r,l,c,y){const R=y?"class":"style";Ym(n,l,r.inputs[R],R,c)}function Ld(n,r,l,c){const y=Fn(),S=qi(),R=20+n,G=y[11],ie=y[R]=xo(G,r,function Sr(){return J.lFrame.currentNamespace}()),Le=S.firstCreatePass?function Fg(n,r,l,c,y,S,R){const G=r.consts,Le=Sc(r,n,2,y,as(G,S));return Pm(r,l,Le,as(G,R)),null!==Le.attrs&&eh(Le,Le.attrs,!1),null!==Le.mergedAttrs&&eh(Le,Le.mergedAttrs,!0),null!==r.queries&&r.queries.elementStart(r,Le),Le}(R,S,y,0,r,l,c):S.data[R];Js(Le,!0);const Ge=Le.mergedAttrs;null!==Ge&&Vr(G,ie,Ge);const wt=Le.classes;null!==wt&&Ou(G,ie,wt);const Vt=Le.styles;return null!==Vt&&Pu(G,ie,Vt),64!=(64&Le.flags)&&an(S,y,ie,Le),0===function mi(){return J.lFrame.elementDepthCount}()&&xs(ie,y),function hi(){J.lFrame.elementDepthCount++}(),Fi(Le)&&(vp(S,y,Le),wd(S,Le,y)),null!==c&&ic(y,Le),Ld}function qp(){let n=yr();Xo()?ls():(n=n.parent,Js(n,!1));const r=n;!function zs(){J.lFrame.elementDepthCount--}();const l=qi();return l.firstCreatePass&&(Wo(l,n),Un(n)&&l.queries.elementEnd(n)),null!=r.classesWithoutHost&&function ga(n){return 0!=(16&n.flags)}(r)&&Kc(l,r,Fn(),r.classesWithoutHost,!0),null!=r.stylesWithoutHost&&function ro(n){return 0!=(32&n.flags)}(r)&&Kc(l,r,Fn(),r.stylesWithoutHost,!1),qp}function d_(n,r,l,c){return Ld(n,r,l,c),qp(),d_}function Ad(n,r,l){const c=Fn(),y=qi(),S=n+20,R=y.firstCreatePass?function Ov(n,r,l,c,y){const S=r.consts,R=as(S,c),G=Sc(r,n,8,"ng-container",R);return null!==R&&eh(G,R,!0),Pm(r,l,G,as(S,y)),null!==r.queries&&r.queries.elementStart(r,G),G}(S,y,c,r,l):y.data[S];Js(R,!0);const G=c[S]=c[11].createComment("");return an(y,c,G,R),xs(G,c),Fi(R)&&(vp(y,c,R),wd(y,R,c)),null!=l&&ic(c,R),Ad}function ch(){let n=yr();const r=qi();return Xo()?ls():(n=n.parent,Js(n,!1)),r.firstCreatePass&&(Wo(r,n),Un(n)&&r.queries.elementEnd(n)),ch}function vf(n,r,l){return Ad(n,r,l),ch(),vf}function Qp(){return Fn()}function Jp(n){return!!n&&"function"==typeof n.then}function Xp(n){return!!n&&"function"==typeof n.subscribe}const em=Xp;function dh(n,r,l,c){const y=Fn(),S=qi(),R=yr();return wf(S,y,y[11],R,n,r,!!l,c),dh}function bf(n,r){const l=yr(),c=Fn(),y=qi();return wf(y,c,ug(Kt(y.data),l,c),l,n,r,!1),bf}function wf(n,r,l,c,y,S,R,G){const ie=Fi(c),Ge=n.firstCreatePass&&kp(n),wt=r[8],Vt=lg(r);let sn=!0;if(3&c.type||G){const Pi=hn(c,r),Ki=G?G(Pi):Pi,Kn=Vt.length,wr=G?Fs=>G(le(Fs[c.index])):c.index;if(Ir(l)){let Fs=null;if(!G&&ie&&(Fs=function Yg(n,r,l,c){const y=n.cleanup;if(null!=y)for(let S=0;S<y.length-1;S+=2){const R=y[S];if(R===l&&y[S+1]===c){const G=r[7],ie=y[S+2];return G.length>ie?G[ie]:null}"string"==typeof R&&(S+=2)}return null}(n,r,y,c.index)),null!==Fs)(Fs.__ngLastListenerFn__||Fs).__ngNextListenerFn__=S,Fs.__ngLastListenerFn__=S,sn=!1;else{S=Mf(c,r,wt,S,!1);const To=l.listen(Ki,y,S);Vt.push(S,To),Ge&&Ge.push(y,wr,Kn,Kn+1)}}else S=Mf(c,r,wt,S,!0),Ki.addEventListener(y,S,R),Vt.push(S),Ge&&Ge.push(y,wr,Kn,R)}else S=Mf(c,r,wt,S,!1);const Hn=c.outputs;let wi;if(sn&&null!==Hn&&(wi=Hn[y])){const Pi=wi.length;if(Pi)for(let Ki=0;Ki<Pi;Ki+=2){const Bu=r[wi[Ki]][wi[Ki+1]].subscribe(S),Vf=Vt.length;Vt.push(S,Bu),Ge&&Ge.push(y,c.index,Vf,-(Vf+1))}}}function h_(n,r,l,c){try{return!1!==l(c)}catch(y){return Ip(n,y),!1}}function Mf(n,r,l,c,y){return function S(R){if(R===Function)return c;const G=2&n.flags?Xi(n.index,r):r;0==(32&r[2])&&Rm(G);let ie=h_(r,0,c,R),Le=S.__ngNextListenerFn__;for(;Le;)ie=h_(r,0,Le,R)&&ie,Le=Le.__ngNextListenerFn__;return y&&!1===ie&&(R.preventDefault(),R.returnValue=!1),ie}}function f_(n=1){return function us(n){return(J.lFrame.contextLView=function rs(n,r){for(;n>0;)r=r[15],n--;return r}(n,J.lFrame.contextLView))[8]}(n)}function hh(n,r){let l=null;const c=function Cm(n){const r=n.attrs;if(null!=r){const l=r.indexOf(5);if(0==(1&l))return r[l+1]}return null}(n);for(let y=0;y<r.length;y++){const S=r[y];if("*"!==S){if(null===c?cp(n,S,!0):Xu(c,S))return y}else l=y}return l}function tm(n){const r=Fn()[16][6];if(!r.projection){const c=r.projection=va(n?n.length:1,null),y=c.slice();let S=r.child;for(;null!==S;){const R=n?hh(S,n):0;null!==R&&(y[R]?y[R].projectionNext=S:c[R]=S,y[R]=S),S=S.next}}}function Bg(n,r=0,l){const c=Fn(),y=qi(),S=Sc(y,20+n,16,null,l||null);null===S.projection&&(S.projection=r),ls(),64!=(64&S.flags)&&function Au(n,r,l){_l(r[11],0,r,l,Na(n,l,r),I(l.parent||r[6],l,r))}(y,c,S)}function v_(n,r,l,c,y){const S=n[l+1],R=null===r;let G=c?za(S):xa(S),ie=!1;for(;0!==G&&(!1===ie||R);){const Ge=n[G+1];Gg(n[G],r)&&(ie=!0,n[G+1]=c?Kd(Ge):fd(Ge)),G=c?za(Ge):xa(Ge)}ie&&(n[l+1]=c?fd(S):Kd(S))}function Gg(n,r){return null===n||null==r||(Array.isArray(n)?n[1]:n)===r||!(!Array.isArray(n)||"string"!=typeof r)&&lr(n,r)>=0}const fa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0}
1;function Ts(n){return n.substring(fa.key,fa.keyEnd)}function fh(n,r){const l=fa.textEnd;return l===r?-1:(r=fa.keyEnd=function Qg(n,r,l){for(;r<l&&n.charCodeAt(r)>32;)r++;return r}(n,fa.key=r,l),Il(n,r,l))}function Il(n,r,l){for(;r<l&&n.charCodeAt(r)<=32;)r++;return r}function Df(n,r,l){return so(n,r,l,!1),Df}function b_(n,r){return so(n,r,null,!0),b_}function xc(n,r){for(let l=function Kg(n){return function $a(n){fa.key=0,fa.keyEnd=0,fa.value=0,fa.valueEnd=0,fa.textEnd=n.length}(n),fh(n,Il(n,0,fa.textEnd))}(r);l>=0;l=fh(r,l))nn(n,Ts(r),!0)}function so(n,r,l,c){const y=Fn(),S=qi(),R=F(2);S.firstUpdatePass&&ey(S,n,R,c),r!==Fr&&Ga(y,R,r)&&ph(S,S.data[es()],y,y[11],n,y[R+1]=function Lc(n,r){return null==n||("string"==typeof r?n+=r:"object"==typeof n&&(n=te(Jl(n)))),n}(r,l),c,R)}function Xg(n,r){return r>=n.expandoStartIndex}function ey(n,r,l,c){const y=n.data;if(null===y[l+1]){const S=y[es()],R=Xg(n,l);Uv(S,c)&&null===r&&!R&&(r=!1),r=function ty(n,r,l,c){const y=Kt(n);let S=c?r.residualClasses:r.residualStyles;if(null===y)0===(c?r.classBindings:r.styleBindings)&&(l=im(l=w_(null,n,r,l,c),r.attrs,c),S=null);else{const R=r.directiveStylingLast;if(-1===R||n[R]!==y)if(l=w_(y,n,r,l,c),null===S){let ie=function Fv(n,r,l){const c=l?r.classBindings:r.styleBindings;if(0!==xa(c))return n[za(c)]}(n,r,c);void 0!==ie&&Array.isArray(ie)&&(ie=w_(null,n,r,ie[1],c),ie=im(ie,r.attrs,c),function Yv(n,r,l,c){n[za(l?r.classBindings:r.styleBindings)]=c}(n,r,c,ie))}else S=function Bv(n,r,l){let c;const y=r.directiveEnd;for(let S=1+r.directiveStylingLast;S<y;S++)c=im(c,n[S].hostAttrs,l);return im(c,r.attrs,l)}(n,r,c)}return void 0!==S&&(c?r.residualClasses=S:r.residualStyles=S),l}(y,S,r,c),function y_(n,r,l,c,y,S){let R=S?r.classBindings:r.styleBindings,G=za(R),ie=xa(R);n[c]=l;let Ge,Le=!1;if(Array.isArray(l)){const wt=l;Ge=wt[1],(null===Ge||lr(wt,Ge)>0)&&(Le=!0)}else Ge=l;if(y)if(0!==ie){const Vt=za(n[G+1]);n[c+1]=eu(Vt,G),0!==Vt&&(n[Vt+1]=pd(n[Vt+1],c)),n[G+1]=function pp(n,r){return 131071&n|r<<17}(n[G+1],c)}else n[c+1]=eu(G,0),0!==G&&(n[G+1]=pd(n[G+1],c)),G=c;else n[c+1]=eu(ie,0),0===G?G=c:n[ie+1]=pd(n[ie+1],c),ie=c;Le&&(n[c+1]=fd(n[c+1])),v_(n,Ge,c,!0),v_(n,Ge,c,!1),function Zg(n,r,l,c,y){const S=y?n.residualClasses:n.residualStyles;null!=S&&"string"==typeof r&&lr(S,r)>=0&&(l[c+1]=Kd(l[c+1]))}(r,Ge,n,c,S),R=eu(G,ie),S?r.classBindings=R:r.styleBindings=R}(y,S,r,l,R,c)}}function w_(n,r,l,c,y){let S=null;const R=l.directiveEnd;let G=l.directiveStylingLast;for(-1===G?G=l.directiveStart:G++;G<R&&(S=r[G],c=im(c,S.hostAttrs,y),S!==n);)G++;return null!==n&&(l.directiveStylingLast=G),c}function im(n,r,l){const c=l?1:2;let y=-1;if(null!==r)for(let S=0;S<r.length;S++){const R=r[S];"number"==typeof R?y=R:y===c&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),nn(n,R,!!l||r[++S]))}return void 0===n?null:n}function ph(n,r,l,c,y,S,R,G){if(!(3&r.type))return;const ie=n.data,Le=ie[G+1];ru(function Uc(n){return 1==(1&n)}(Le)?ry(ie,r,l,y,xa(Le),R):void 0)||(ru(S)||function Wh(n){return 2==(2&n)}(Le)&&(S=ry(ie,null,l,y,G,R)),function Gu(n,r,l,c,y){const S=Ir(n);if(r)y?S?n.addClass(l,c):l.classList.add(c):S?n.removeClass(l,c):l.classList.remove(c);else{let R=-1===c.indexOf("-")?void 0:se.DashCase;if(null==y)S?n.removeStyle(l,c,R):l.style.removeProperty(c);else{const G="string"==typeof y&&y.endsWith("!important");G&&(y=y.slice(0,-10),R|=se.Important),S?n.setStyle(l,c,y,R):l.style.setProperty(c,y,G?"important":"")}}}(c,R,dn(es(),l),y,S))}function ry(n,r,l,c,y,S){const R=null===r;let G;for(;y>0;){const ie=n[y],Le=Array.isArray(ie),Ge=Le?ie[1]:ie,wt=null===Ge;let Vt=l[y+1];Vt===Fr&&(Vt=wt?lt:void 0);let sn=wt?Ja(Vt,c):Ge===c?Vt:void 0;if(Le&&!ru(sn)&&(sn=Ja(ie,c)),ru(sn)&&(G=sn,R))return G;const Hn=n[y+1];y=R?za(Hn):xa(Hn)}if(null!==r){let ie=S?r.residualClasses:r.residualStyles;null!=ie&&(G=Ja(ie,c))}return G}function ru(n){return void 0!==n}function Uv(n,r){return 0!=(n.flags&(r?16:32))}function qc(n,r=""){const l=Fn(),c=qi(),y=n+20,S=c.firstCreatePass?Sc(c,y,1,r,null):c.data[y],R=l[y]=function vs(n,r){return Ir(n)?n.createText(r):n.createTextNode(r)}(l[11],r);an(c,l,R,S),Js(S,!1)}function mh(n){return rm("",n,""),mh}function rm(n,r,l){const c=Fn(),y=Zc(c,n,r,l);return y!==Fr&&rc(c,es(),y),rm}function M_(n,r,l,c,y){const S=Fn(),R=function Gc(n,r,l,c,y,S){const G=Ic(n,po(),l,y);return F(2),G?r+Te(l)+c+Te(y)+S:Fr}(S,n,r,l,c,y);return R!==Fr&&rc(S,es(),R),M_}
1function sm(n,r,l,c,y,S,R){const G=Fn(),ie=oh(G,n,r,l,c,y,S,R);return ie!==Fr&&rc(G,es(),ie),sm}function D_(n,r,l){!function Mu(n,r,l,c){const y=qi(),S=F(2);y.firstUpdatePass&&ey(y,null,S,c);const R=Fn();if(l!==Fr&&Ga(R,S,l)){const G=y.data[es()];if(Uv(G,c)&&!Xg(y,S)){let ie=c?G.classesWithoutHost:G.stylesWithoutHost;null!==ie&&(l=_e(ie,l||"")),Kc(y,G,R,l,c)}else!function iy(n,r,l,c,y,S,R,G){y===Fr&&(y=lt);let ie=0,Le=0,Ge=0<y.length?y[0]:null,wt=0<S.length?S[0]:null;for(;null!==Ge||null!==wt;){const Vt=ie<y.length?y[ie+1]:void 0,sn=Le<S.length?S[Le+1]:void 0;let wi,Hn=null;Ge===wt?(ie+=2,Le+=2,Vt!==sn&&(Hn=wt,wi=sn)):null===wt||null!==Ge&&Ge<wt?(ie+=2,Hn=Ge):(Le+=2,Hn=wt,wi=sn),null!==Hn&&ph(n,r,l,c,Hn,wi,R,G),Ge=ie<y.length?y[ie]:null,wt=Le<S.length?S[Le]:null}}(y,G,R,R[11],R[S+1],R[S+1]=function Hv(n,r,l){if(null==l||""===l)return lt;const c=[],y=Jl(l);if(Array.isArray(y))for(let S=0;S<y.length;S++)n(c,y[S],!0);else if("object"==typeof y)for(const S in y)y.hasOwnProperty(S)&&n(c,S,y[S]);else"string"==typeof y&&r(c,y);return c}(n,r,l),c,S)}}(nn,xc,Zc(Fn(),n,r,l),!0)}function hy(n,r,l){const c=Fn();return Ga(c,P(),r)&&jl(qi(),ur(),c,n,r,c[11],l,!0),hy}function fy(n,r,l){const c=Fn();if(Ga(c,P(),r)){const S=qi(),R=ur();jl(S,R,c,n,r,ug(Kt(S.data),R,c),l,!0)}return fy}const Pc=void 0;var um=["en",[["a","p"],["AM","PM"],Pc],[["AM","PM"],Pc,Pc],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Pc,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Pc,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Pc,"{1} 'at' {0}",Pc],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Zv(n){const l=Math.floor(Math.abs(n)),c=n.toString().replace(/^[^.]*\.?/,"").length;return 1===l&&0===c?1:5}];let vh={};function bh(n){const r=function my(n){return n.toLowerCase().replace(/_/g,"-")}(n);let l=xf(r);if(l)return l;const c=r.split("-")[0];if(l=xf(c),l)return l;if("en"===c)return um;throw new Error(`Missing locale data for the locale "${n}".`)}function py(n){return bh(n)[Mr.PluralCase]}function xf(n){return n in vh||(vh[n]=Nn.ng&&Nn.ng.common&&Nn.ng.common.locales&&Nn.ng.common.locales[n]),vh[n]}var Mr=(()=>((Mr=Mr||{})[Mr.LocaleId=0]="LocaleId",Mr[Mr.DayPeriodsFormat=1]="DayPeriodsFormat",Mr[Mr.DayPeriodsStandalone=2]="DayPeriodsStandalone",Mr[Mr.DaysFormat=3]="DaysFormat",Mr[Mr.DaysStandalone=4]="DaysStandalone",Mr[Mr.MonthsFormat=5]="MonthsFormat",Mr[Mr.MonthsStandalone=6]="MonthsStandalone",Mr[Mr.Eras=7]="Eras",Mr[Mr.FirstDayOfWeek=8]="FirstDayOfWeek",Mr[Mr.WeekendRange=9]="WeekendRange",Mr[Mr.DateFormat=10]="DateFormat",Mr[Mr.TimeFormat=11]="TimeFormat",Mr[Mr.DateTimeFormat=12]="DateTimeFormat",Mr[Mr.NumberSymbols=13]="NumberSymbols",Mr[Mr.NumberFormats=14]="NumberFormats",Mr[Mr.CurrencyCode=15]="CurrencyCode",Mr[Mr.CurrencySymbol=16]="CurrencySymbol",Mr[Mr.CurrencyName=17]="CurrencyName",Mr[Mr.Currencies=18]="Currencies",Mr[Mr.Directionality=19]="Directionality",Mr[Mr.PluralCase=20]="PluralCase",Mr[Mr.ExtraData=21]="ExtraData",Mr))();const Lf="en-US";let Gv=Lf;function A_(n,r,l,c,y){if(n=be(n),Array.isArray(n))for(let S=0;S<n.length;S++)A_(n[S],r,l,c,y);else{const S=qi(),R=Fn();let G=nh(n)?n:be(n.provide),ie=af(n);const Le=yr(),Ge=1048575&Le.providerIndexes,wt=Le.directiveStart,Vt=Le.providerIndexes>>20;if(nh(n)||!n.multi){const sn=new bs(ie,y,yf),Hn=P_(G,r,y?Ge:Ge+Vt,wt);-1===Hn?(bt(w(Le,R),S,G),hc(S,n,r.length),r.push(G),Le.directiveStart++,Le.directiveEnd++,y&&(Le.providerIndexes+=1048576),l.push(sn),R.push(sn)):(l[Hn]=sn,R[Hn]=sn)}else{const sn=P_(G,r,Ge+Vt,wt),Hn=P_(G,r,Ge,Ge+Vt),wi=sn>=0&&l[sn],Pi=Hn>=0&&l[Hn];if(y&&!Pi||!y&&!wi){bt(w(Le,R),S,G);const Ki=function R_(n,r,l,c,y){const S=new bs(n,l,yf);return S.multi=[],S.index=r,S.componentProviders=0,Ny(S,y,c&&!l),S}(y?Fy:w0,l.length,y,c,ie);!y&&Pi&&(l[Hn].providerFactory=Ki),hc(S,n,r.length,0),r.push(G),Le.directiveStart++,Le.directiveEnd++,y&&(Le.providerIndexes+=1048576),l.push(Ki),R.push(Ki)}else hc(S,n,sn>-1?sn:Hn,Ny(l[y?Hn:sn],ie,!y&&c));!y&&c&&Pi&&l[Hn].componentProviders++}}}function hc(n,r,l,c){const y=nh(r),S=function _v(n){return!!n.useClass}(r);if(y||S){const ie=(S?be(r.useClass):r).prototype.ngOnDestroy;if(ie){const Le=n.destroyHooks||(n.destroyHooks=[]);if(!y&&r.multi){const Ge=Le.indexOf(l);-1===Ge?Le.push(l,[c,ie]):Le[Ge+1].push(c,ie)}else Le.push(l,ie)}}}function Ny(n,r,l){return l&&n.componentProviders++,n.multi.push(r)-1}function P_(n,r,l,c){for(let y=l;y<c;y++)if(r[y]===n)return y;return-1}function w0(n,r,l,c){return O_(this.multi,[])}function Fy(n,r,l,c){const y=this.multi;let S;if(this.providerFactory){const R=this.providerFactory.componentProviders,G=yi(l,l[1],this.providerFactory.index,c);S=G.slice(0,R),O_(y,S);for(let ie=R;ie<G.length;ie++)S.push(G[ie])}else S=[],O_(y,S);return S}function O_(n,r){for(let l=0;l<n.length;l++)r.push((0,n[l])());return r}function Bf(n,r=[]){return l=>{l.providersResolver=(c,y)=>function b0(n,r,l){const c=qi();if(c.firstCreatePass){const y=oi(n);A_(l,c.data,c.blueprint,y,!0),A_(r,c.data,c.blueprint,y,!1)}}(c,y?y(n):n,r)}}class By{}
1class Uy{resolveComponentFactory(r){throw function N_(n){const r=Error(`No component factory found for ${te(n)}. Did you add it to @NgModule.entryComponents?`);return r.ngComponent=n,r}(r)}}let Hf=(()=>{class n{}return n.NULL=new Uy,n})();function T0(){return Bd(yr(),Fn())}function Bd(n,r){return new Ch(hn(n,r))}let Ch=(()=>{class n{constructor(l){this.nativeElement=l}}return n.__NG_ELEMENT_ID__=T0,n})();function D0(n){return n instanceof Ch?n.nativeElement:n}class F_{}let jy=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function i(){const n=Fn(),l=Xi(yr().index,n);return function E0(n){return n[11]}($t(l)?l:n)}(),n})(),e=(()=>{class n{}return n.\u0275prov=At({token:n,providedIn:"root",factory:()=>null}),n})();class t{constructor(r){this.full=r,this.major=r.split(".")[0],this.minor=r.split(".")[1],this.patch=r.split(".").slice(2).join(".")}}const o=new t("13.3.12"),u={};function g(n,r,l,c,y=!1){for(;null!==l;){const S=r[l.index];if(null!==S&&c.push(le(S)),cn(S))for(let G=10;G<S.length;G++){const ie=S[G],Le=ie[1].firstChild;null!==Le&&g(ie[1],ie,Le,c)}const R=l.type;if(8&R)g(n,r,l.child,c);else if(32&R){const G=ne(l,r);let ie;for(;ie=G();)c.push(ie)}else if(16&R){const G=Ci(r,l);if(Array.isArray(G))c.push(...G);else{const ie=jt(r[16]);g(ie[1],ie,G,c,!0)}}l=y?l.projectionNext:l.next}return c}class E{constructor(r,l){this._lView=r,this._cdRefInjectingView=l,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const r=this._lView,l=r[1];return g(l,r,l.firstChild,[])}get context(){return this._lView[8]}set context(r){this._lView[8]=r}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const r=this._lView[3];if(cn(r)){const l=r[8],c=l?l.indexOf(this):-1;c>-1&&(jo(r,c),Qa(l,c))}this._attachedToViewContainer=!1}Wu(this._lView[1],this._lView)}onDestroy(r){Kh(this._lView[1],this._lView,null,r)}markForCheck(){Rm(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function zc(n,r,l){const c=r[10];c.begin&&c.begin();try{vd(n,r,n.template,l)}catch(y){throw Ip(r,y),y}finally{c.end&&c.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ye(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function da(n,r){Lo(n,r,r[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(r){if(this._attachedToViewContainer)throw new Ye(902,"");this._appRef=r}}class W extends E{constructor(r){super(r),this._view=r}detectChanges(){Td(this._view)}checkNoChanges(){}get context(){return null}}class pe extends Hf{constructor(r){super(),this.ngModule=r}resolveComponentFactory(r){const l=de(r);return new on(l,this.ngModule)}}function Ce(n){const r=[];for(let l in n)n.hasOwnProperty(l)&&r.push({propName:n[l],templateName:l});return r}class on extends By{constructor(r,l){super(),this.componentDef=r,this.ngModule=l,this.componentType=r.type,this.selector=function Hc(n){return n.map(rl).join(",")}(r.selectors),this.ngContentSelectors=r.ngContentSelectors?r.ngContentSelectors:[],this.isBoundToModule=!!l}get inputs(){return Ce(this.componentDef.inputs)}get outputs(){return Ce(this.componentDef.outputs)}create(r,l,c,y){const S=(y=y||this.ngModule)?function It(n,r){return{get:(l,c,y)=>{const S=n.get(l,u,y);return S!==u||c===u?S:r.get(l,c,y)}}}(r,y.injector):r,R=S.get(F_,fe),G=S.get(e,null),ie=R.createRenderer(null,this.componentDef),Le=this.componentDef.selectors[0][0]||"div",Ge=c?function $_(n,r,l){if(Ir(n))return n.selectRootElement(r,l===Tt.ShadowDom);let c="string"==typeof r?n.querySelector(r):r;return c.textContent="",c}(ie,c,this.componentDef.encapsulation):xo(R.createRenderer(null,this.componentDef),Le,function et(n){const r=n.toLowerCase();return"svg"===r?"svg":"math"===r?"math":null}(Le)),wt=this.componentDef.onPush?576:528,Vt=function $m(n,r){return{components:[],scheduler:n||Tm,clean:ag,playerHandler:r||null,flags:0}}(),sn=bp(0,null,null,1,0,null,null,null,null,null),Hn=tc(null,sn,Vt,wt,null,null,R,ie,G,S);let wi,Pi;er(Hn);try{const Ki=function _g(n,r,l,c,y,S){const R=l[1];l[20]=n;const ie=Sc(R,20,2,"#host",null),Le=ie.mergedAttrs=r.hostAttrs;null!==Le&&(eh(ie,Le,!0),null!==n&&(Vr(y,n,Le),null!==ie.classes&&Ou(y,n,ie.classes),null!==ie.styles&&Pu(y,n,ie.styles)));const Ge=c.createRenderer(n,r),wt=tc(l,Am(r),null,r.onPush?64:16,l[20],ie,c,Ge,S||null,null);
1return R.firstCreatePass&&(bt(w(ie,l),R,r.type),Mp(R,ie),Qh(ie,l.length,1)),ef(l,wt),l[20]=wt}(Ge,this.componentDef,Hn,R,ie);if(Ge)if(c)Vr(ie,Ge,["ng-version",o.full]);else{const{attrs:Kn,classes:wr}=function Sm(n){const r=[],l=[];let c=1,y=2;for(;c<n.length;){let S=n[c];if("string"==typeof S)2===y?""!==S&&r.push(S,n[++c]):8===y&&l.push(S);else{if(!Hl(y))break;y=S}c++}return{attrs:r,classes:l}}(this.componentDef.selectors[0]);Kn&&Vr(ie,Ge,Kn),wr&&wr.length>0&&Ou(ie,Ge,wr.join(" "))}if(Pi=Tr(sn,20),void 0!==l){const Kn=Pi.projection=[];for(let wr=0;wr<this.ngContentSelectors.length;wr++){const Fs=l[wr];Kn.push(null!=Fs?Array.from(Fs):null)}}wi=function Gm(n,r,l,c,y){const S=l[1],R=function rv(n,r,l){const c=yr();n.firstCreatePass&&(l.providersResolver&&l.providersResolver(l),eg(n,c,r,nu(n,r,1,null),l));const y=yi(r,n,c.directiveStart,c);xs(y,r);const S=hn(c,r);return S&&xs(S,r),y}(S,l,r);if(c.components.push(R),n[8]=R,y&&y.forEach(ie=>ie(R,r)),r.contentQueries){const ie=yr();r.contentQueries(1,R,ie.directiveStart)}const G=yr();return!S.firstCreatePass||null===r.hostBindings&&null===r.hostAttrs||(Zr(G.index),wp(l[1],G,0,G.directiveStart,G.directiveEnd,r),X_(r,R)),R}(Ki,this.componentDef,Hn,Vt,[wv]),nc(sn,Hn,null)}finally{Wr()}return new Ai(this.componentType,wi,Bd(Pi,Hn),Hn,Pi)}}class Ai extends class Yy{}{constructor(r,l,c,y,S){super(),this.location=c,this._rootLView=y,this._tNode=S,this.instance=l,this.hostView=this.changeDetectorRef=new W(y),this.componentType=r}get injector(){return new On(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(r){this.hostView.onDestroy(r)}}class xr{}class As{}const Lr=new Map;class Cb extends xr{constructor(r,l){super(),this._parent=l,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new pe(this);const c=Ht(r);this._bootstrapComponents=il(c.bootstrap),this._r3Injector=cg(r,l,[{provide:xr,useValue:this},{provide:Hf,useValue:this.componentFactoryResolver}],te(r)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(r)}get(r,l=oc.THROW_IF_NOT_FOUND,c=Vn.Default){return r===oc||r===xr||r===nf?this:this._r3Injector.get(r,l,c)}destroy(){const r=this._r3Injector;!r.destroyed&&r.destroy(),this.destroyCbs.forEach(l=>l()),this.destroyCbs=null}onDestroy(r){this.destroyCbs.push(r)}}class S0 extends As{constructor(r){super(),this.moduleType=r,null!==Ht(r)&&function Po(n){const r=new Set;!function l(c){const y=Ht(c,!0),S=y.id;null!==S&&(function Ao(n,r,l){if(r&&r!==l)throw new Error(`Duplicate module registered for ${n} - ${te(r)} vs ${te(r.name)}`)}
1(S,Lr.get(S),c),Lr.set(S,c));const R=il(y.imports);for(const G of R)r.has(G)||(r.add(G),l(G))}(n)}(r)}create(r){return new Cb(this.moduleType,r)}}function Sb(n,r,l){const c=Is()+n,y=Fn();return y[c]===Fr?lc(y,c,l?r.call(l):r()):function ff(n,r){return n[r]}(y,c)}function kb(n,r,l,c){return xb(Fn(),Is(),n,r,l,c)}function Ib(n,r,l,c,y){return Lb(Fn(),Is(),n,r,l,c,y)}function Y_(n,r){const l=n[r];return l===Fr?void 0:l}function xb(n,r,l,c,y,S){const R=r+l;return Ga(n,R,y)?lc(n,R+1,S?c.call(S,y):c(y)):Y_(n,R+1)}function Lb(n,r,l,c,y,S,R){const G=r+l;return Ic(n,G,y,S)?lc(n,G+2,R?c.call(R,y,S):c(y,S)):Y_(n,G+2)}function Rb(n,r){const l=qi();let c;const y=n+20;l.firstCreatePass?(c=function qw(n,r){if(r)for(let l=r.length-1;l>=0;l--){const c=r[l];if(n===c.name)return c}}(r,l.pipeRegistry),l.data[y]=c,c.onDestroy&&(l.destroyHooks||(l.destroyHooks=[])).push(y,c.onDestroy)):c=l.data[y];const S=c.factory||(c.factory=is(c.type)),R=Pt(yf);try{const G=ee(!1),ie=S();return ee(G),function i_(n,r,l,c){l>=n.data.length&&(n.data[l]=null,n.blueprint[l]=null),r[l]=c}(l,Fn(),y,ie),ie}finally{Pt(R)}}function Nb(n,r,l){const c=n+20,y=Fn(),S=Dr(y,c);return B_(y,c)?xb(y,Is(),r,S.transform,l,S):S.transform(l)}function Fb(n,r,l,c){const y=n+20,S=Fn(),R=Dr(S,y);return B_(S,y)?Lb(S,Is(),r,R.transform,l,c,R):R.transform(l,c)}function B_(n,r){return n[1].data[r].pure}function k0(n){return r=>{setTimeout(n,void 0,r)}}const id=class eM extends h.x{constructor(r=!1){super(),this.__isAsync=r}emit(r){super.next(r)}subscribe(r,l,c){var y,S,R;let G=r,ie=l||(()=>null),Le=c;if(r&&"object"==typeof r){const wt=r;G=null===(y=wt.next)||void 0===y?void 0:y.bind(wt),ie=null===(S=wt.error)||void 0===S?void 0:S.bind(wt),Le=null===(R=wt.complete)||void 0===R?void 0:R.bind(wt)}this.__isAsync&&(ie=k0(ie),G&&(G=k0(G)),Le&&(Le=k0(Le)));const Ge=super.subscribe({next:G,error:ie,complete:Le});return r instanceof s.w0&&r.add(Ge),Ge}};function tM(){return this._results[iu()]()}class Vy{constructor(r=!1){this._emitDistinctChangesOnly=r,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const l=iu(),c=Vy.prototype;c[l]||(c[l]=tM)}get changes(){return this._changes||(this._changes=new id)}get(r){return this._results[r]}map(r){return this._results.map(r)}filter(r){return this._results.filter(r)}find(r){return this._results.find(r)}reduce(r,l){return this._results.reduce(r,l)}forEach(r){this._results.forEach(r)}some(r){return this._results.some(r)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(r,l){const c=this;c.dirty=!1;const y=Ho(r);(this._changesDetected=!function lu(n,r,l){if(n.length!==r.length)return!1;for(let c=0;c<n.length;c++){let y=n[c],S=r[c];if(l&&(y=l(y),S=l(S)),S!==y)return!1}return!0}(c._results,y,l))&&(c._results=y,c.length=y.length,c.last=y[this.length-1],c.first=y[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let H_=(()=>{class n{}return n.__NG_ELEMENT_ID__=rM,n})();const nM=H_,iM=class extends nM{constructor(r,l,c){super(),this._declarationLView=r,this._declarationTContainer=l,this.elementRef=c}createEmbeddedView(r){const l=this._declarationTContainer.tViews,c=tc(this._declarationLView,l,r,16,null,l.declTNode,null,null,null,null);c[17]=this._declarationLView[this._declarationTContainer.index];const S=this._declarationLView[19];return null!==S&&(c[19]=S.createEmbeddedView(l)),nc(l,c,r),new E(c)}};function rM(){return zy(yr(),Fn())}function zy(n,r){return 4&n.type?new iM(r,n,Bd(n,r)):null}let Wy=(()=>{class n{}return n.__NG_ELEMENT_ID__=sM,n})();function sM(){return Hb(yr(),Fn())}const oM=Wy,Yb=class extends oM{constructor(r,l,c){super(),this._lContainer=r,this._hostTNode=l,this._hostLView=c}get element(){return Bd(this._hostTNode,this._hostLView)}get injector(){return new On(this._hostTNode,this._hostLView)}get parentInjector(){const r=xe(this._hostTNode,this._hostLView);if(Ta(r)){const l=la(r,this._hostLView),c=So(r);return new On(l[1].data[c+8],l)}return new On(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(r){const l=Bb(this._lContainer);return null!==l&&l[r]||null}get length(){return this._lContainer.length-10}createEmbeddedView(r,l,c){const y=r.createEmbeddedView(l||{});return this.insert(y,c),y}createComponent(r,l,c,y,S){const R=r&&!function Ea(n){return"function"==typeof n}(r);let G;if(R)G=l;else{const wt=l||{};G=wt.index,c=wt.injector,y=wt.projectableNodes,S=wt.ngModuleRef}const ie=R?r:new on(de(r)),Le=c||this.parentInjector;if(!S&&null==ie.ngModule){const Vt=(R?Le:this.parentInjector).get(xr,null);Vt&&(S=Vt)}const Ge=ie.create(Le,y,void 0,S);return this.insert(Ge.hostView,G),Ge}insert(r,l){const c=r._lView,y=c[1];if(function hr(n){return cn(n[3])}(c)){const Ge=this.indexOf(r);if(-1!==Ge)this.detach(Ge);else{const wt=c[3],Vt=new Yb(wt,wt[6],wt[3]);Vt.detach(Vt.indexOf(r))}}const S=this._adjustIndex(l),R=this._lContainer;!function pc(n,r,l,c){const y=10+c,S=l.length;c>0&&(l[y-1][4]=r),c<S-10?(r[4]=l[y],bl(l,10+c,r)):(l.push(r),r[4]=null),r[3]=l;const R=r[17];null!==R&&l!==R&&function Br(n,r){const l=n[9];
1r[16]!==r[3][3][16]&&(n[2]=!0),null===l?n[9]=[r]:l.push(r)}(R,r);const G=r[19];null!==G&&G.insertView(n),r[2]|=128}(y,c,R,S);const G=sr(S,R),ie=c[11],Le=B(ie,R[7]);return null!==Le&&function Ha(n,r,l,c,y,S){c[0]=y,c[6]=r,Lo(n,c,l,1,y,S)}(y,R[6],ie,c,Le,G),r.attachToViewContainerRef(),bl(I0(R),S,r),r}move(r,l){return this.insert(r,l)}indexOf(r){const l=Bb(this._lContainer);return null!==l?l.indexOf(r):-1}remove(r){const l=this._adjustIndex(r,-1),c=jo(this._lContainer,l);c&&(Qa(I0(this._lContainer),l),Wu(c[1],c))}detach(r){const l=this._adjustIndex(r,-1),c=jo(this._lContainer,l);return c&&null!=Qa(I0(this._lContainer),l)?new E(c):null}_adjustIndex(r,l=0){return null==r?this.length+l:r}};function Bb(n){return n[8]}function I0(n){return n[8]||(n[8]=[])}function Hb(n,r){let l;const c=r[n.index];if(cn(c))l=c;else{let y;if(8&n.type)y=le(c);else{const S=r[11];y=S.createComment("");const R=hn(n,r);pu(S,B(S,R),y,function D(n,r){return Ir(n)?n.nextSibling(r):r.nextSibling}(S,R),!1)}r[n.index]=l=Ep(c,r,y,n),ef(r,l)}return new Yb(l,n,r)}class x0{constructor(r){this.queryList=r,this.matches=null}clone(){return new x0(this.queryList)}setDirty(){this.queryList.setDirty()}}class L0{constructor(r=[]){this.queries=r}createEmbeddedView(r){const l=r.queries;if(null!==l){const c=null!==r.contentQueries?r.contentQueries[0]:l.length,y=[];for(let S=0;S<c;S++){const R=l.getByIndex(S);y.push(this.queries[R.indexInDeclarationView].clone())}return new L0(y)}return null}insertView(r){this.dirtyQueriesWithMatches(r)}detachView(r){this.dirtyQueriesWithMatches(r)}dirtyQueriesWithMatches(r){for(let l=0;l<this.queries.length;l++)null!==Kb(r,l).matches&&this.queries[l].setDirty()}}class Ub{constructor(r,l,c=null){this.predicate=r,this.flags=l,this.read=c}}class A0{constructor(r=[]){this.queries=r}elementStart(r,l){for(let c=0;c<this.queries.length;c++)this.queries[c].elementStart(r,l)}elementEnd(r){for(let l=0;l<this.queries.length;l++)this.queries[l].elementEnd(r)}embeddedTView(r){let l=null;for(let c=0;c<this.length;c++){const y=null!==l?l.length:0,S=this.getByIndex(c).embeddedTView(r,y);S&&(S.indexInDeclarationView=c,null!==l?l.push(S):l=[S])}return null!==l?new A0(l):null}template(r,l){for(let c=0;c<this.queries.length;c++)this.queries[c].template(r,l)}getByIndex(r){return this.queries[r]}get length(){return this.queries.length}track(r){this.queries.push(r)}}class P0{constructor(r,l=-1){this.metadata=r,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=l}elementStart(r,l){this.isApplyingToNode(l)&&this.matchTNode(r,l)}elementEnd(r){this._declarationNodeIndex===r.index&&(this._appliesToNextNode=!1)}template(r,l){this.elementStart(r,l)}embeddedTView(r,l){return this.isApplyingToNode(r)?(this.crossesNgTemplate=!0,this.addMatch(-r.index,l),new P0(this.metadata)):null}isApplyingToNode(r){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const l=this._declarationNodeIndex;let c=r.parent;for(;null!==c&&8&c.type&&c.index!==l;)c=c.parent;return l===(null!==c?c.index:-1)}return this._appliesToNextNode}matchTNode(r,l){const c=this.metadata.predicate;if(Array.isArray(c))for(let y=0;y<c.length;y++){const S=c[y];this.matchTNodeWithReadOption(r,l,uM(l,S)),this.matchTNodeWithReadOption(r,l,qn(l,r,S,!1,!1))}else c===H_?4&l.type&&this.matchTNodeWithReadOption(r,l,-1):this.matchTNodeWithReadOption(r,l,qn(l,r,c,!1,!1))}matchTNodeWithReadOption(r,l,c){if(null!==c){const y=this.metadata.read;if(null!==y)if(y===Ch||y===Wy||y===H_&&4&l.type)this.addMatch(l.index,-2);else{const S=qn(l,r,y,!1,!1);null!==S&&this.addMatch(l.index,S)}else this.addMatch(l.index,c)}}addMatch(r,l){null===this.matches?this.matches=[r,l]:this.matches.push(r,l)}}function uM(n,r){const l=n.localNames;if(null!==l)for(let c=0;c<l.length;c+=2)if(l[c]===r)return l[c+1];return null}function dM(n,r,l,c){return-1===l?function cM(n,r){return 11&n.type?Bd(n,r):4&n.type?zy(n,r):null}(r,n):-2===l?function hM(n,r,l){return l===Ch?Bd(r,n):l===H_?zy(r,n):l===Wy?Hb(r,n):void 0}(n,r,c):yi(n,n[1],l,r)}function jb(n,r,l,c){const y=r[19].queries[c];if(null===y.matches){const S=n.data,R=l.matches,G=[];for(let ie=0;ie<R.length;ie+=2){const Le=R[ie];G.push(Le<0?null:dM(r,S[Le],R[ie+1],l.metadata.read))}y.matches=G}return y.matches}function O0(n,r,l,c){const y=n.queries.getByIndex(l),S=y.matches;if(null!==S){const R=jb(n,r,y,l);for(let G=0;G<S.length;G+=2){const ie=S[G];if(ie>0)c.push(R[G/2]);else{const Le=S[G+1],Ge=r[-ie];for(let wt=10;wt<Ge.length;wt++){const Vt=Ge[wt];Vt[17]===Vt[3]&&O0(Vt[1],Vt,Le,c)}if(null!==Ge[9]){const wt=Ge[9];for(let Vt=0;Vt<wt.length;Vt++){const sn=wt[Vt];O0(sn[1],sn,Le,c)}}}}}return c}function Vb(n){const r=Fn(),l=qi(),c=En();In(c+1);const y=Kb(l,c);if(n.dirty&&$i(r)===(2==(2&y.metadata.flags))){if(null===y.matches)n.reset([]);else{const S=y.crossesNgTemplate?O0(l,r,c,[]):jb(l,r,y,c);n.reset(S,D0),n.notifyOnChanges()}return!0}return!1}function zb(n,r,l){const c=qi();c.firstCreatePass&&($b(c,new Ub(n,r,l),-1),2==(2&r)&&(c.staticViewQueries=!0)),Gb(c,Fn(),r)}function Wb(n,r,l,c){const y=qi();if(y.firstCreatePass){const S=yr();$b(y,new Ub(r,l,c),S.index),function pM(n,r){const l=n.contentQueries||(n.contentQueries=[]);r!==(l.length?l[l.length-1]:-1)&&l.push(n.queries.length-1,r)}(y,n),2==(2&l)&&(y.staticContentQueries=!0)}Gb(y,Fn(),l)}function Zb(){return function fM(n,r){return n[19].queries[r].queryList}(Fn(),En())}function Gb(n,r,l){const c=new Vy(4==(4&l));Kh(n,r,c,c.destroy),null===r[19]&&(r[19]=new L0),r[19].queries.push(new x0(c))}function $b(n,r,l){null===n.queries&&(n.queries=new A0),n.queries.track(new P0(r,l))}function Kb(n,r){return n.queries.getByIndex(r)}function qb(n,r){return zy(n,r)}function $y(...n){}const fw=new hs("Application Initializer");let H0=(()=>{class n{constructor(l){this.appInits=l,this.resolve=$y,this.reject=$y,this.initialized=!1,this.done=!1,this.donePromise=new Promise((c,y)=>{this.resolve=c,this.reject=y})}
1runInitializers(){if(this.initialized)return;const l=[],c=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let y=0;y<this.appInits.length;y++){const S=this.appInits[y]();if(Jp(S))l.push(S);else if(em(S)){const R=new Promise((G,ie)=>{S.subscribe({complete:G,error:ie})});l.push(R)}}Promise.all(l).then(()=>{c()}).catch(y=>{this.reject(y)}),0===l.length&&c(),this.initialized=!0}}return n.\u0275fac=function(l){return new(l||n)(ko(fw,8))},n.\u0275prov=At({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const pw=new hs("AppId",{providedIn:"root",factory:function mw(){return`${U0()}${U0()}${U0()}`}});function U0(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const _w=new hs("Platform Initializer"),LM=new hs("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),gw=new hs("appBootstrapListener");let AM=(()=>{class n{log(l){console.log(l)}warn(l){console.warn(l)}}return n.\u0275fac=function(l){return new(l||n)},n.\u0275prov=At({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const j0=new hs("LocaleId",{providedIn:"root",factory:()=>oa(j0,Vn.Optional|Vn.SkipSelf)||function PM(){return"undefined"!=typeof $localize&&$localize.locale||Lf}()}),OM=new hs("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class RM{constructor(r,l){this.ngModuleFactory=r,this.componentFactories=l}}let NM=(()=>{class n{compileModuleSync(l){return new S0(l)}compileModuleAsync(l){return Promise.resolve(this.compileModuleSync(l))}compileModuleAndAllComponentsSync(l){const c=this.compileModuleSync(l),S=il(Ht(l).declarations).reduce((R,G)=>{const ie=de(G);return ie&&R.push(new on(ie)),R},[]);return new RM(c,S)}compileModuleAndAllComponentsAsync(l){return Promise.resolve(this.compileModuleAndAllComponentsSync(l))}clearCache(){}clearCacheFor(l){}getModuleId(l){}}return n.\u0275fac=function(l){return new(l||n)},n.\u0275prov=At({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const YM=(()=>Promise.resolve(0))();function V0(n){"undefined"==typeof Zone?YM.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class Oc{constructor({enableLongStackTrace:r=!1,shouldCoalesceEventChangeDetection:l=!1,shouldCoalesceRunChangeDetection:c=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new id(!1),this.onMicrotaskEmpty=new id(!1),this.onStable=new id(!1),this.onError=new id(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const y=this;y._nesting=0,y._outer=y._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(y._inner=y._inner.fork(new Zone.TaskTrackingZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(y._inner=y._inner.fork(Zone.longStackTraceZoneSpec)),y.shouldCoalesceEventChangeDetection=!c&&l,y.shouldCoalesceRunChangeDetection=c,y.lastRequestAnimationFrameId=-1,y.nativeRequestAnimationFrame=function BM(){let n=Nn.requestAnimationFrame,r=Nn.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&r){const l=n[Zone.__symbol__("OriginalDelegate")];l&&(n=l);const c=r[Zone.__symbol__("OriginalDelegate")];c&&(r=c)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:r}}().nativeRequestAnimationFrame,function jM(n){const r=()=>{!function UM(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(Nn,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,W0(n),n.isCheckStableRunning=!0,z0(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),W0(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(l,c,y,S,R,G)=>{try{return yw(n),l.invokeTask(y,S,R,G)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===S.type||n.shouldCoalesceRunChangeDetection)&&r(),vw(n)}},onInvoke:(l,c,y,S,R,G,ie)=>{try{return yw(n),l.invoke(y,S,R,G,ie)}finally{n.shouldCoalesceRunChangeDetection&&r(),vw(n)}},onHasTask:(l,c,y,S)=>{l.hasTask(y,S),c===y&&("microTask"==S.change?(n._hasPendingMicrotasks=S.microTask,W0(n),z0(n)):"macroTask"==S.change&&(n.hasPendingMacrotasks=S.macroTask))},onHandleError:(l,c,y,S)=>(l.handleError(y,S),n.runOutsideAngular(()=>n.onError.emit(S)),!1)})}(y)}
1static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Oc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Oc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(r,l,c){return this._inner.run(r,l,c)}runTask(r,l,c,y){const S=this._inner,R=S.scheduleEventTask("NgZoneEvent: "+y,r,HM,$y,$y);try{return S.runTask(R,l,c)}finally{S.cancelTask(R)}}runGuarded(r,l,c){return this._inner.runGuarded(r,l,c)}runOutsideAngular(r){return this._outer.run(r)}}const HM={};function z0(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function W0(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function yw(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function vw(n){n._nesting--,z0(n)}class VM{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new id,this.onMicrotaskEmpty=new id,this.onStable=new id,this.onError=new id}run(r,l,c){return r.apply(l,c)}runGuarded(r,l,c){return r.apply(l,c)}runOutsideAngular(r){return r()}runTask(r,l,c,y){return r.apply(l,c)}}let bw=(()=>{class n{constructor(l){this._ngZone=l,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),l.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Oc.assertNotInAngularZone(),V0(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())V0(()=>{for(;0!==this._callbacks.length;){let l=this._callbacks.pop();clearTimeout(l.timeoutId),l.doneCb(this._didWork)}this._didWork=!1});else{let l=this.getPendingTasks();this._callbacks=this._callbacks.filter(c=>!c.updateCb||!c.updateCb(l)||(clearTimeout(c.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(l=>({source:l.source,creationLocation:l.creationLocation,data:l.data})):[]}addCallback(l,c,y){let S=-1;c&&c>0&&(S=setTimeout(()=>{this._callbacks=this._callbacks.filter(R=>R.timeoutId!==S),l(this._didWork,this.getPendingTasks())},c)),this._callbacks.push({doneCb:l,timeoutId:S,updateCb:y})}whenStable(l,c,y){if(y&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(l,c,y),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(l,c,y){return[]}}return n.\u0275fac=function(l){return new(l||n)(ko(Oc))},n.\u0275prov=At({token:n,factory:n.\u0275fac}),n})(),zM=(()=>{class n{constructor(){this._applications=new Map,Z0.addToWindow(this)}registerApplication(l,c){this._applications.set(l,c)}unregisterApplication(l){this._applications.delete(l)}unregisterAllApplications(){this._applications.clear()}getTestability(l){return this._applications.get(l)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(l,c=!0){return Z0.findTestabilityInTree(this,l,c)}}return n.\u0275fac=function(l){return new(l||n)},n.\u0275prov=At({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class WM{addToWindow(r){}findTestabilityInTree(r,l,c){return null}}function ZM(n){Z0=n}let Z0=new WM,Uf=null;const ww=new hs("AllowMultipleToken"),Mw=new hs("PlatformOnDestroy");class KM{constructor(r,l){this.name=r,this.token=l}}function Tw(n,r,l=[]){const c=`Platform: ${r}`,y=new hs(c);return(S=[])=>{let R=G0();if(!R||R.injector.get(ww,!1)){const G=[...l,...S,{provide:y,useValue:!0}];n?n(G):function qM(n){if(Uf&&!Uf.get(ww,!1))throw new Ye(400,"");Uf=n;const r=n.get(Dw),l=n.get(_w,null);l&&l.forEach(c=>c())}(function JM(n=[],r){return oc.create({name:r,providers:[{provide:rf,useValue:"platform"},{provide:Mw,useValue:()=>Uf=null},...n]})}(G,c))}return function QM(n){const r=G0();if(!r)throw new Ye(401,"");return r}()}}function G0(){var n;return null!==(n=null==Uf?void 0:Uf.get(Dw))&&void 0!==n?n:null}let Dw=(()=>{class n{constructor(l){this._injector=l,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(l,c){const G=function XM(n,r){let l;return l="noop"===n?new VM:("zone.js"===n?void 0:n)||new Oc({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==r?void 0:r.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==r?void 0:r.ngZoneRunCoalescing)}),l}(c?c.ngZone:void 0,{ngZoneEventCoalescing:c&&c.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:c&&c.ngZoneRunCoalescing||!1}),ie=[{provide:Oc,useValue:G}];return G.run(()=>{const Le=oc.create({providers:ie,parent:this.injector,name:l.moduleType.name}),Ge=l.create(Le),wt=Ge.injector.get(Tc,null);if(!wt)throw new Ye(402,"");return G.runOutsideAngular(()=>{const Vt=G.onError.subscribe({next:sn=>{wt.handleError(sn)}});Ge.onDestroy(()=>{K0(this._modules,Ge),Vt.unsubscribe()})}),function eT(n,r,l){try{const c=l();return Jp(c)?c.catch(y=>{throw r.runOutsideAngular(()=>n.handleError(y)),y}):c}catch(c){throw r.runOutsideAngular(()=>n.handleError(c)),c}}(wt,G,()=>{const Vt=Ge.injector.get(H0);
1return Vt.runInitializers(),Vt.donePromise.then(()=>(function Mb(n){Dn(n,"Expected localeId to be defined"),"string"==typeof n&&(Gv=n.toLowerCase().replace(/_/g,"-"))}(Ge.injector.get(j0,Lf)||Lf),this._moduleDoBootstrap(Ge),Ge))})})}bootstrapModule(l,c=[]){const y=Ew({},c);return function GM(n,r,l){const c=new S0(l);return Promise.resolve(c)}(0,0,l).then(S=>this.bootstrapModuleFactory(S,y))}_moduleDoBootstrap(l){const c=l.injector.get($0);if(l._bootstrapComponents.length>0)l._bootstrapComponents.forEach(y=>c.bootstrap(y));else{if(!l.instance.ngDoBootstrap)throw new Ye(403,"");l.instance.ngDoBootstrap(c)}this._modules.push(l)}onDestroy(l){this._destroyListeners.push(l)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ye(404,"");this._modules.slice().forEach(c=>c.destroy()),this._destroyListeners.forEach(c=>c());const l=this._injector.get(Mw,null);null==l||l(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(l){return new(l||n)(ko(oc))},n.\u0275prov=At({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function Ew(n,r){return Array.isArray(r)?r.reduce(Ew,n):Object.assign(Object.assign({},n),r)}let $0=(()=>{class n{constructor(l,c,y,S){this._zone=l,this._injector=c,this._exceptionHandler=y,this._initStatus=S,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const R=new m.y(ie=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{ie.next(this._stable),ie.complete()})}),G=new m.y(ie=>{let Le;this._zone.runOutsideAngular(()=>{Le=this._zone.onStable.subscribe(()=>{Oc.assertNotInAngularZone(),V0(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,ie.next(!0))})})});const Ge=this._zone.onUnstable.subscribe(()=>{Oc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{ie.next(!1)}))});return()=>{Le.unsubscribe(),Ge.unsubscribe()}});this.isStable=(0,k.T)(R,G.pipe((0,v.B)()))}bootstrap(l,c){if(!this._initStatus.done)throw new Ye(405,"");let y;y=l instanceof By?l:this._injector.get(Hf).resolveComponentFactory(l),this.componentTypes.push(y.componentType);const S=function $M(n){return n.isBoundToModule}(y)?void 0:this._injector.get(xr),G=y.create(oc.NULL,[],c||y.selector,S),ie=G.location.nativeElement,Le=G.injector.get(bw,null),Ge=Le&&G.injector.get(zM);return Le&&Ge&&Ge.registerApplication(ie,Le),G.onDestroy(()=>{this.detachView(G.hostView),K0(this.components,G),Ge&&Ge.unregisterApplication(ie)}),this._loadComponent(G),G}tick(){if(this._runningTick)throw new Ye(101,"");try{this._runningTick=!0;for(let l of this._views)l.detectChanges()}catch(l){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(l))}finally{this._runningTick=!1}}attachView(l){const c=l;this._views.push(c),c.attachToAppRef(this)}detachView(l){const c=l;K0(this._views,c),c.detachFromAppRef()}_loadComponent(l){this.attachView(l.hostView),this.tick(),this.components.push(l),this._injector.get(gw,[]).concat(this._bootstrapListeners).forEach(y=>y(l))}ngOnDestroy(){this._views.slice().forEach(l=>l.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(l){return new(l||n)(ko(Oc),ko(oc),ko(Tc),ko(H0))},n.\u0275prov=At({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function K0(n,r){const l=n.indexOf(r);l>-1&&n.splice(l,1)}let Sw=!0,kw=!1;function nT(){return kw=!0,Sw}function iT(){if(kw)throw new Error("Cannot enable prod mode after platform setup.");Sw=!1}let rT=(()=>{class n{}return n.__NG_ELEMENT_ID__=sT,n})();function sT(n){return function oT(n,r,l){if(Mi(n)&&!l){const c=Xi(n.index,r);return new E(c,c)}return 47&n.type?new E(r[16],r):null}(yr(),Fn(),16==(16&n))}class Aw{constructor(){}supports(r){return ac(r)}create(r){return new hT(r)}}const dT=(n,r)=>r;class hT{constructor(r){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=r||dT}forEachItem(r){let l;for(l=this._itHead;null!==l;l=l._next)r(l)}forEachOperation(r){let l=this._itHead,c=this._removalsHead,y=0,S=null;for(;l||c;){const R=!c||l&&l.currentIndex<Ow(c,y,S)?l:c,G=Ow(R,y,S),ie=R.currentIndex;if(R===c)y--,c=c._nextRemoved;else if(l=l._next,null==R.previousIndex)y++;else{S||(S=[]);const Le=G-y,Ge=ie-y;if(Le!=Ge){for(let Vt=0;Vt<Le;Vt++){const sn=Vt<S.length?S[Vt]:S[Vt]=0,Hn=sn+Vt;Ge<=Hn&&Hn<Le&&(S[Vt]=sn+1)}S[R.previousIndex]=Ge-Le}}G!==ie&&r(R,G,ie)}}forEachPreviousItem(r){let l;for(l=this._previousItHead;null!==l;l=l._nextPrevious)r(l)}forEachAddedItem(r){let l;for(l=this._additionsHead;null!==l;l=l._nextAdded)r(l)}forEachMovedItem(r){let l;for(l=this._movesHead;null!==l;l=l._nextMoved)r(l)}forEachRemovedItem(r){let l;for(l=this._removalsHead;null!==l;l=l._nextRemoved)r(l)}forEachIdentityChange(r){let l;for(l=this._identityChangesHead;null!==l;l=l._nextIdentityChange)r(l)}diff(r){if(null==r&&(r=[]),!ac(r))throw new Ye(900,"");return this.check(r)?this:null}onDestroy(){}check(r){this._reset();let y,S,R,l=this._itHead,c=!1;if(Array.isArray(r)){this.length=r.length;for(let G=0;G<this.length;G++)S=r[G],R=this._trackByFn(G,S),null!==l&&Object.is(l.trackById,R)?(c&&(l=this._verifyReinsertion(l,S,R,G)),Object.is(l.item,S)||this._addIdentityChange(l,S)):(l=this._mismatch(l,S,R,G),c=!0),l=l._next}else y=0,function bg(n,r){if(Array.isArray(n))for(let l=0;l<n.length;l++)r(n[l]);else{const l=n[iu()]();let c;for(;!(c=l.next()).done;)r(c.value)}}(r,G=>{R=this._trackByFn(y,G),null!==l&&Object.is(l.trackById,R)?(c&&(l=this._verifyReinsertion(l,G,R,y)),Object.is(l.item,G)||this._addIdentityChange(l,G)):(l=this._mismatch(l,G,R,y),c=!0),l=l._next,y++}),this.length=y;return this._truncate(l),this.collection=r,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let r;for(r=this._previousItHead=this._itHead;null!==r;
vendor: 5,398 bytes, line 1
1r=r._next)r._nextPrevious=r._next;for(r=this._additionsHead;null!==r;r=r._nextAdded)r.previousIndex=r.currentIndex;for(this._additionsHead=this._additionsTail=null,r=this._movesHead;null!==r;r=r._nextMoved)r.previousIndex=r.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(r,l,c,y){let S;return null===r?S=this._itTail:(S=r._prev,this._remove(r)),null!==(r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(c,null))?(Object.is(r.item,l)||this._addIdentityChange(r,l),this._reinsertAfter(r,S,y)):null!==(r=null===this._linkedRecords?null:this._linkedRecords.get(c,y))?(Object.is(r.item,l)||this._addIdentityChange(r,l),this._moveAfter(r,S,y)):r=this._addAfter(new fT(l,c),S,y),r}_verifyReinsertion(r,l,c,y){let S=null===this._unlinkedRecords?null:this._unlinkedRecords.get(c,null);return null!==S?r=this._reinsertAfter(S,r._prev,y):r.currentIndex!=y&&(r.currentIndex=y,this._addToMoves(r,y)),r}_truncate(r){for(;null!==r;){const l=r._next;this._addToRemovals(this._unlink(r)),r=l}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(r,l,c){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(r);const y=r._prevRemoved,S=r._nextRemoved;return null===y?this._removalsHead=S:y._nextRemoved=S,null===S?this._removalsTail=y:S._prevRemoved=y,this._insertAfter(r,l,c),this._addToMoves(r,c),r}_moveAfter(r,l,c){return this._unlink(r),this._insertAfter(r,l,c),this._addToMoves(r,c),r}_addAfter(r,l,c){return this._insertAfter(r,l,c),this._additionsTail=null===this._additionsTail?this._additionsHead=r:this._additionsTail._nextAdded=r,r}_insertAfter(r,l,c){const y=null===l?this._itHead:l._next;return r._next=y,r._prev=l,null===y?this._itTail=r:y._prev=r,null===l?this._itHead=r:l._next=r,null===this._linkedRecords&&(this._linkedRecords=new Pw),this._linkedRecords.put(r),r.currentIndex=c,r}_remove(r){return this._addToRemovals(this._unlink(r))}_unlink(r){null!==this._linkedRecords&&this._linkedRecords.remove(r);const l=r._prev,c=r._next;return null===l?this._itHead=c:l._next=c,null===c?this._itTail=l:c._prev=l,r}_addToMoves(r,l){return r.previousIndex===l||(this._movesTail=null===this._movesTail?this._movesHead=r:this._movesTail._nextMoved=r),r}_addToRemovals(r){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Pw),this._unlinkedRecords.put(r),r.currentIndex=null,r._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=r,r._prevRemoved=null):(r._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=r),r}_addIdentityChange(r,l){return r.item=l,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=r:this._identityChangesTail._nextIdentityChange=r,r}}class fT{constructor(r,l){this.item=r,this.trackById=l,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class pT{constructor(){this._head=null,this._tail=null}add(r){null===this._head?(this._head=this._tail=r,r._nextDup=null,r._prevDup=null):(this._tail._nextDup=r,r._prevDup=this._tail,r._nextDup=null,this._tail=r)}get(r,l){let c;for(c=this._head;null!==c;c=c._nextDup)if((null===l||l<=c.currentIndex)&&Object.is(c.trackById,r))return c;return null}remove(r){const l=r._prevDup,c=r._nextDup;return null===l?this._head=c:l._nextDup=c,null===c?this._tail=l:c._prevDup=l,null===this._head}}class Pw{constructor(){this.map=new Map}put(r){const l=r.trackById;let c=this.map.get(l);c||(c=new pT,this.map.set(l,c)),c.add(r)}get(r,l){const y=this.map.get(r);return y?y.get(r,l):null}remove(r){const l=r.trackById;return this.map.get(l).remove(r)&&this.map.delete(l),r}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ow(n,r,l){const c=n.previousIndex;if(null===c)return c;let y=0;return l&&c<l.length&&(y=l[c]),c+r+y}class Rw{constructor(){}supports(r){return r instanceof Map||Wc(r)}create(){return new mT}}class mT{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(r){let l;for(l=this._mapHead;null!==l;l=l._next)r(l)}forEachPreviousItem(r){let l;for(l=this._previousMapHead;null!==l;l=l._nextPrevious)r(l)}forEachChangedItem(r){let l;for(l=this._changesHead;null!==l;l=l._nextChanged)r(l)}forEachAddedItem(r){let l;for(l=this._additionsHead;null!==l;l=l._nextAdded)r(l)}forEachRemovedItem(r){let l;for(l=this._removalsHead;null!==l;l=l._nextRemoved)r(l)}diff(r){if(r){if(!(r instanceof Map||Wc(r)))throw new Ye(900,"")}else r=new Map;return this.check(r)?this:null}onDestroy(){}check(r){this._reset();let l=this._mapHead;
1if(this._appendAfter=null,this._forEach(r,(c,y)=>{if(l&&l.key===y)this._maybeAddToChanges(l,c),this._appendAfter=l,l=l._next;else{const S=this._getOrCreateRecordForKey(y,c);l=this._insertBeforeOrAppend(l,S)}}),l){l._prev&&(l._prev._next=null),this._removalsHead=l;for(let c=l;null!==c;c=c._nextRemoved)c===this._mapHead&&(this._mapHead=null),this._records.delete(c.key),c._nextRemoved=c._next,c.previousValue=c.currentValue,c.currentValue=null,c._prev=null,c._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(r,l){if(r){const c=r._prev;return l._next=r,l._prev=c,r._prev=l,c&&(c._next=l),r===this._mapHead&&(this._mapHead=l),this._appendAfter=r,r}return this._appendAfter?(this._appendAfter._next=l,l._prev=this._appendAfter):this._mapHead=l,this._appendAfter=l,null}_getOrCreateRecordForKey(r,l){if(this._records.has(r)){const y=this._records.get(r);this._maybeAddToChanges(y,l);const S=y._prev,R=y._next;return S&&(S._next=R),R&&(R._prev=S),y._next=null,y._prev=null,y}const c=new _T(r);return this._records.set(r,c),c.currentValue=l,this._addToAdditions(c),c}_reset(){if(this.isDirty){let r;for(this._previousMapHead=this._mapHead,r=this._previousMapHead;null!==r;r=r._next)r._nextPrevious=r._next;for(r=this._changesHead;null!==r;r=r._nextChanged)r.previousValue=r.currentValue;for(r=this._additionsHead;null!=r;r=r._nextAdded)r.previousValue=r.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(r,l){Object.is(l,r.currentValue)||(r.previousValue=r.currentValue,r.currentValue=l,this._addToChanges(r))}_addToAdditions(r){null===this._additionsHead?this._additionsHead=this._additionsTail=r:(this._additionsTail._nextAdded=r,this._additionsTail=r)}_addToChanges(r){null===this._changesHead?this._changesHead=this._changesTail=r:(this._changesTail._nextChanged=r,this._changesTail=r)}_forEach(r,l){r instanceof Map?r.forEach(l):Object.keys(r).forEach(c=>l(r[c],c))}}class _T{constructor(r){this.key=r,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Nw(){return new eb([new Aw])}let eb=(()=>{class n{constructor(l){this.factories=l}static create(l,c){if(null!=c){const y=c.factories.slice();l=l.concat(y)}return new n(l)}static extend(l){return{provide:n,useFactory:c=>n.create(l,c||Nw()),deps:[[n,new Ol,new Oa]]}}find(l){const c=this.factories.find(y=>y.supports(l));if(null!=c)return c;throw new Ye(901,"")}}return n.\u0275prov=At({token:n,providedIn:"root",factory:Nw}),n})();function Fw(){return new tb([new Rw])}let tb=(()=>{class n{constructor(l){this.factories=l}static create(l,c){if(c){const y=c.factories.slice();l=l.concat(y)}return new n(l)}static extend(l){return{provide:n,useFactory:c=>n.create(l,c||Fw()),deps:[[n,new Ol,new Oa]]}}find(l){const c=this.factories.find(S=>S.supports(l));if(c)return c;throw new Ye(901,"")}}return n.\u0275prov=At({token:n,providedIn:"root",factory:Fw}),n})();const vT=Tw(null,"core",[]);let bT=(()=>{class n{constructor(l){}}return n.\u0275fac=function(l){return new(l||n)(ko($0))},n.\u0275mod=De({type:n}),n.\u0275inj=st({}),n})()},3075:(_t,Ue,b)=>{"use strict";b.d(Ue,{CE:()=>dr,Cf:()=>Te,F:()=>Wi,Fj:()=>Ze,JJ:()=>Vn,JL:()=>Rn,JU:()=>te,On:()=>Mi,UX:()=>$i,Wl:()=>re,Zs:()=>wo,_Y:()=>Fi,a5:()=>_n,eT:()=>oo,kI:()=>zt,nD:()=>qe,qu:()=>hr,sg:()=>Ks,u:()=>Ms,u5:()=>Xi,x0:()=>Ui});var h=b(5e3),s=b(9808),m=b(8996),k=b(4128),v=b(4004);let C=(()=>{class ge{constructor(J,We){this._renderer=J,this._elementRef=We,this.onChange=gn=>{},this.onTouched=()=>{}}setProperty(J,We){this._renderer.setProperty(this._elementRef.nativeElement,J,We)}registerOnTouched(J){this.onTouched=J}registerOnChange(J){this.onChange=J}setDisabledState(J){this.setProperty("disabled",J)}}return ge.\u0275fac=function(J){return new(J||ge)(h.Y36(h.Qsj),h.Y36(h.SBq))},ge.\u0275dir=h.lG2({type:ge}),ge})(),q=(()=>{class ge extends C{}return ge.\u0275fac=function(){let oe;return function(We){return(oe||(oe=h.n5z(ge)))(We||ge)}}(),ge.\u0275dir=h.lG2({type:ge,features:[h.qOj]}),ge})();const te=new h.OlP("NgValueAccessor"),_e={provide:te,useExisting:(0,h.Gpc)(()=>re),multi:!0};let re=(()=>{class ge extends q{writeValue(J){this.setProperty("checked",J)}}return ge.\u0275fac=function(){let oe;return function(We){return(oe||(oe=h.n5z(ge)))(We||ge)}}(),ge.\u0275dir=h.lG2({type:ge,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(J,We){1&J&&h.NdJ("change",function(mi){return We.onChange(mi.target.checked)})("blur",function(){return We.onTouched()})},features:[h._Bn([_e]),h.qOj]}),ge})();const we={provide:te,useExisting:(0,h.Gpc)(()=>Ze),multi:!0},ke=new h.OlP("CompositionEventMode");let Ze=(()=>{class ge extends C{constructor(J,We,gn){super(J,We),this._compositionMode=gn,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function be(){const ge=(0,s.q)()?(0,s.q)().getUserAgent():"";return/android (\d+)/.test(ge.toLowerCase())}())}writeValue(J){this.setProperty("value",null==J?"":J)}_handleInput(J){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(J)}_compositionStart(){this._composing=!0}_compositionEnd(J){this._composing=!1,this._compositionMode&&this.onChange(J)}}return ge.\u0275fac=function(J){return new(J||ge)(h.Y36(h.Qsj),h.Y36(h.SBq),h.Y36(ke,8))},ge.\u0275dir=h.lG2({type:ge,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(J,We){1&J&&h.NdJ("input",function(mi){return We._handleInput(mi.target.value)})("blur",function(){return We.onTouched()})("compositionstart",function(){return We._compositionStart()})("compositionend",function(mi){return We._compositionEnd(mi.target.value)})},features:[h._Bn([we]),h.qOj]}),ge})();function Ye(ge){return null==ge||0===ge.length}function $e(ge){return null!=ge&&"number"==typeof ge.length}const Te=new h.OlP("NgValidators"),rt=new h.OlP("NgAsyncValidators"),je=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class zt{static min(oe){return function ut(ge){return oe=>{if(Ye(oe.value)||Ye(ge))return null;const J=parseFloat(oe.value);return!isNaN(J)&&J<ge?{min:{min:ge,actual:oe.value}}:null}}(oe)}static max(oe){return function ze(ge){return oe=>{if(Ye(oe.value)||Ye(ge))return null;const J=parseFloat(oe.value);return!isNaN(J)&&J>ge?{max:{max:ge,actual:oe.value}}:null}}(oe)}static required(oe){return Re(oe)}static requiredTrue(oe){return tt(oe)}static email(oe){return function Fe(ge){return Ye(ge.value)||je.test(ge.value)?null:{email:!0}}(oe)}static minLength(oe){return function me(ge){return oe=>Ye(oe.value)||!$e(oe.value)?null:oe.value.length<ge?{minlength:{requiredLength:ge,actualLength:oe.value.length}}:null}(oe)}static maxLength(oe){return gt(oe)}static pattern(oe){return function Bt(ge){if(!ge)return pn;let oe,J;return"string"==typeof ge?(J="","^"!==ge.charAt(0)&&(J+="^"),J+=ge,"$"!==ge.charAt(ge.length-1)&&(J+="$"),oe=new RegExp(J)):(J=ge.toString(),oe=ge),We=>{if(Ye(We.value))return null;const gn=We.value;return oe.test(gn)?null:{pattern:{requiredPattern:J,actualValue:gn}}}}(oe)}static nullValidator(oe){return null}static compose(oe){return Dn(oe)}static composeAsync(oe){return Dt(oe)}}function Re(ge){return Ye(ge.value)?{required:!0}:null}function tt(ge){return!0===ge.value?null:{required:!0}}function gt(ge){return oe=>$e(oe.value)&&oe.value.length>ge?{maxlength:{requiredLength:ge,actualLength:oe.value.length}}:null}function pn(ge){return null}function mn(ge){return null!=ge}function jn(ge){const oe=(0,h.QGY)(ge)?(0,m.D)(ge):ge;return(0,h.CqO)(oe),oe}function en(ge){let oe={};return ge.forEach(J=>{oe=null!=J?Object.assign(Object.assign({},oe),J):oe}),0===Object.keys(oe).length?null:oe}function Wn(ge,oe){return oe.map(J=>J(ge))}function Bn(ge){return ge.map(oe=>function Mn(ge){return!ge.validate}(oe)?oe:J=>oe.validate(J))}function Dn(ge){if(!ge)return null;const oe=ge.filter(mn);return 0==oe.length?null:function(J){return en(Wn(J,oe))}}function vn(ge){return null!=ge?Dn(Bn(ge)):null}function Dt(ge){if(!ge)return null;const oe=ge.filter(mn);return 0==oe.length?null:function(J){const We=Wn(J,oe).map(jn);return(0,k.D)(We).pipe((0,v.U)(en))}}function Mt(ge){return null!=ge?Dt(Bn(ge)):null}function it(ge,oe){return null===ge?[oe]:Array.isArray(ge)?[...ge,oe]:[ge,oe]}function At(ge){return ge._rawValidators}function ct(ge){return ge._rawAsyncValidators}function st(ge){return ge?Array.isArray(ge)?ge:[ge]:[]}function vt(ge,oe){return Array.isArray(ge)?ge.includes(oe):ge===oe}function ft(ge,oe){const J=st(oe);return st(ge).forEach(gn=>{vt(J,gn)||J.push(gn)}),J}function Ut(ge,oe){return st(oe).filter(J=>!vt(ge,J))}class tn{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(oe){this._rawValidators=oe||[],this._composedValidatorFn=vn(this._rawValidators)}_setAsyncValidators(oe){this._rawAsyncValidators=oe||[],this._composedAsyncValidatorFn=Mt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(oe){this._onDestroyCallbacks.push(oe)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(oe=>oe()),this._onDestroyCallbacks=[]}reset(oe){this.control&&this.control.reset(oe)}hasError(oe,J){return!!this.control&&this.control.hasError(oe,J)}getError(oe,J){return this.control?this.control.getError(oe,J):null}}class _n extends tn{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class bn extends tn{get formDirective(){return null}get path(){return null}}class pi{constructor(oe){this._cd=oe}is(oe){var J,We,gn;return"submitted"===oe?!!(null===(J=this._cd)||void 0===J?void 0:J.submitted):!!(null===(gn=null===(We=this._cd)||void 0===We?void 0:We.control)||void 0===gn?void 0:gn[oe])}}let Vn=(()=>{class ge extends pi{constructor(J){super(J)}}return ge.\u0275fac=function(J){return new(J||ge)(h.Y36(_n,2))},ge.\u0275dir=h.lG2({type:ge,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(J,We){2&J&&h.ekj("ng-untouched",We.is("untouched"))("ng-touched",We.is("touched"))("ng-pristine",We.is("pristine"))("ng-dirty",We.is("dirty"))("ng-valid",We.is("valid"))("ng-invalid",We.is("invalid"))("ng-pending",We.is("pending"))},features:[h.qOj]}),ge})(),Rn=(()=>{class ge extends pi{constructor(J){super(J)}}return ge.\u0275fac=function(J){return new(J||ge)(h.Y36(bn,10))},ge.\u0275dir=h.lG2({type:ge,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(J,We){2&J&&h.ekj("ng-untouched",We.is("untouched"))("ng-touched",We.is("touched"))("ng-pristine",We.is("pristine"))("ng-dirty",We.is("dirty"))("ng-valid",We.is("valid"))("ng-invalid",We.is("invalid"))("ng-pending",We.is("pending"))("ng-submitted",We.is("submitted"))},features:[h.qOj]}),ge})();function Qn(ge,oe){return[...oe.path,ge]}function lt(ge,oe){Ee(ge,oe),oe.valueAccessor.writeValue(ge.value),function at(ge,oe){oe.valueAccessor.registerOnChange(J=>{ge._pendingValue=J,ge._pendingChange=!0,ge._pendingDirty=!0,"change"===ge.updateOn&&mt(ge,oe)})}(ge,oe),function yn(ge,oe){const J=(We,gn)=>{oe.valueAccessor.writeValue(We),gn&&oe.viewToModelUpdate(We)};ge.registerOnChange(J),oe._registerOnDestroy(()=>{ge._unregisterOnChange(J)})}(ge,oe),function Ot(ge,oe){oe.valueAccessor.registerOnTouched(()=>{ge._pendingTouched=!0,"blur"===ge.updateOn&&ge._pendingChange&&mt(ge,oe),"submit"!==ge.updateOn&&ge.markAsTouched()})}(ge,oe),function Ke(ge,oe){if(oe.valueAccessor.setDisabledState){const J=We=>{oe.valueAccessor.setDisabledState(We)};ge.registerOnDisabledChange(J),oe._registerOnDestroy(()=>{ge._unregisterOnDisabledChange(J)})}}(ge,oe)}function Qt(ge,oe,J=!0){const We=()=>{};oe.valueAccessor&&(oe.valueAccessor.registerOnChange(We),oe.valueAccessor.registerOnTouched(We)),Be(ge,oe),ge&&(oe._invokeOnDestroyCallbacks(),ge._registerOnCollectionChange(()=>{}))}function Se(ge,oe){ge.forEach(J=>{J.registerOnValidatorChange&&J.registerOnValidatorChange(oe)})}function Ee(ge,oe){const J=At(ge);null!==oe.validator?ge.setValidators(it(J,oe.validator)):"function"==typeof J&&ge.setValidators([J]);const We=ct(ge);null!==oe.asyncValidator?ge.setAsyncValidators(it(We,oe.asyncValidator)):"function"==typeof We&&ge.setAsyncValidators([We]);const gn=()=>ge.updateValueAndValidity();Se(oe._rawValidators,gn),Se(oe._rawAsyncValidators,gn)}function Be(ge,oe){let J=!1;if(null!==ge){if(null!==oe.validator){const gn=At(ge);if(Array.isArray(gn)&&gn.length>0){const mi=gn.filter(hi=>hi!==oe.validator);mi.length!==gn.length&&(J=!0,ge.setValidators(mi))}}if(null!==oe.asyncValidator){const gn=ct(ge);if(Array.isArray(gn)&&gn.length>0){const mi=gn.filter(hi=>hi!==oe.asyncValidator);mi.length!==gn.length&&(J=!0,ge.setAsyncValidators(mi))}}}const We=()=>{};return Se(oe._rawValidators,We),Se(oe._rawAsyncValidators,We),J}function mt(ge,oe){ge._pendingDirty&&ge.markAsDirty(),ge.setValue(ge._pendingValue,{emitModelToViewChange:!1}),oe.viewToModelUpdate(ge._pendingValue),ge._pendingChange=!1}function ei(ge,oe){Ee(ge,oe)}function x(ge,oe){if(!ge.hasOwnProperty("model"))return!1;const J=ge.model;return!!J.isFirstChange()||!Object.is(oe,J.currentValue)}function de(ge,oe){ge._syncPendingControls(),oe.forEach(J=>{const We=J.control;"submit"===We.updateOn&&We._pendingChange&&(J.viewToModelUpdate(We._pendingValue),We._pendingChange=!1)})}function Je(ge,oe){if(!oe)return null;let J,We,gn;return Array.isArray(oe),oe.forEach(mi=>{mi.constructor===Ze?J=mi:function j(ge){return Object.getPrototypeOf(ge.constructor)===q}(mi)?We=mi:gn=mi}),gn||We||J||null}function St(ge,oe){const J=ge.indexOf(oe);J>-1&&ge.splice(J,1)}const Jn="VALID",ii="INVALID",Ii="PENDING",Cr="DISABLED";function qt(ge){return(ai(ge)?ge.validators:ge)||null}function xn(ge){return Array.isArray(ge)?vn(ge):ge||null}function fn(ge,oe){return(ai(oe)?oe.asyncValidators:ge)||null}function zn(ge){return Array.isArray(ge)?Mt(ge):ge||null}function ai(ge){return null!=ge&&!Array.isArray(ge)&&"object"==typeof ge}const Hi=ge=>ge instanceof Ni,_r=ge=>ge instanceof Gr,Ji=ge=>ge instanceof jr;function Pr(ge){return Hi(ge)?ge.value:ge.getRawValue()}function ki(ge,oe){const J=_r(ge),We=ge.controls;if(!(J?Object.keys(We):We).length)throw new h.vHH(1e3,"");if(!We[oe])throw new h.vHH(1001,"")}function Ur(ge,oe){_r(ge),ge._forEachChild((We,gn)=>{if(void 0===oe[gn])throw new h.vHH(1002,"")})}class ms{constructor(oe,J){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=oe,this._rawAsyncValidators=J,this._composedValidatorFn=xn(this._rawValidators),this._composedAsyncValidatorFn=zn(this._rawAsyncValidators)}get
1 validator(){return this._composedValidatorFn}set validator(oe){this._rawValidators=this._composedValidatorFn=oe}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(oe){this._rawAsyncValidators=this._composedAsyncValidatorFn=oe}get parent(){return this._parent}get valid(){return this.status===Jn}get invalid(){return this.status===ii}get pending(){return this.status==Ii}get disabled(){return this.status===Cr}get enabled(){return this.status!==Cr}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(oe){this._rawValidators=oe,this._composedValidatorFn=xn(oe)}setAsyncValidators(oe){this._rawAsyncValidators=oe,this._composedAsyncValidatorFn=zn(oe)}addValidators(oe){this.setValidators(ft(oe,this._rawValidators))}addAsyncValidators(oe){this.setAsyncValidators(ft(oe,this._rawAsyncValidators))}removeValidators(oe){this.setValidators(Ut(oe,this._rawValidators))}removeAsyncValidators(oe){this.setAsyncValidators(Ut(oe,this._rawAsyncValidators))}hasValidator(oe){return vt(this._rawValidators,oe)}hasAsyncValidator(oe){return vt(this._rawAsyncValidators,oe)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(oe={}){this.touched=!0,this._parent&&!oe.onlySelf&&this._parent.markAsTouched(oe)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(oe=>oe.markAllAsTouched())}markAsUntouched(oe={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(J=>{J.markAsUntouched({onlySelf:!0})}),this._parent&&!oe.onlySelf&&this._parent._updateTouched(oe)}markAsDirty(oe={}){this.pristine=!1,this._parent&&!oe.onlySelf&&this._parent.markAsDirty(oe)}markAsPristine(oe={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(J=>{J.markAsPristine({onlySelf:!0})}),this._parent&&!oe.onlySelf&&this._parent._updatePristine(oe)}markAsPending(oe={}){this.status=Ii,!1!==oe.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!oe.onlySelf&&this._parent.markAsPending(oe)}disable(oe={}){const J=this._parentMarkedDirty(oe.onlySelf);this.status=Cr,this.errors=null,this._forEachChild(We=>{We.disable(Object.assign(Object.assign({},oe),{onlySelf:!0}))}),this._updateValue(),!1!==oe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},oe),{skipPristineCheck:J})),this._onDisabledChange.forEach(We=>We(!0))}enable(oe={}){const J=this._parentMarkedDirty(oe.onlySelf);this.status=Jn,this._forEachChild(We=>{We.enable(Object.assign(Object.assign({},oe),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:oe.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},oe),{skipPristineCheck:J})),this._onDisabledChange.forEach(We=>We(!1))}_updateAncestors(oe){this._parent&&!oe.onlySelf&&(this._parent.updateValueAndValidity(oe),oe.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(oe){this._parent=oe}updateValueAndValidity(oe={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Jn||this.status===Ii)&&this._runAsyncValidator(oe.emitEvent)),!1!==oe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!oe.onlySelf&&this._parent.updateValueAndValidity(oe)}_updateTreeValidity(oe={emitEvent:!0}){this._forEachChild(J=>J._updateTreeValidity(oe)),this.updateValueAndValidity({onlySelf:!0,emitEvent:oe.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Cr:Jn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(oe){if(this.asyncValidator){this.status=Ii,this._hasOwnPendingAsyncValidator=!0;const J=jn(this.asyncValidator(this));this._asyncValidationSubscription=J.subscribe(We=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(We,{emitEvent:oe})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(oe,J={}){this.errors=oe,this._updateControlsErrors(!1!==J.emitEvent)}get(oe){return function rn(ge,oe,J){if(null==oe||(Array.isArray(oe)||(oe=oe.split(J)),Array.isArray(oe)&&0===oe.length))return null;let We=ge;return oe.forEach(gn=>{We=_r(We)?We.controls.hasOwnProperty(gn)?We.controls[gn]:null:Ji(We)&&We.at(gn)||null}),We}(this,oe,".")}getError(oe,J){const We=J?this.get(J):this;return We&&We.errors?We.errors[oe]:null}hasError(oe,J){return!!this.getError(oe,J)}get root(){let oe=this;for(;oe._parent;)oe=oe._parent;return oe}_updateControlsErrors(oe){this.status=this._calculateStatus(),oe&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(oe)}_initObservables(){this.valueChanges=new h.vpe,this.statusChanges=new h.vpe}_calculateStatus(){return this._allControlsDisabled()?Cr:this.errors?ii:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ii)?Ii:this._anyControlsHaveStatus(ii)?ii:Jn}_anyControlsHaveStatus(oe){return this._anyControls(J=>J.status===oe)}_anyControlsDirty(){return this._anyControls(oe=>oe.dirty)}_anyControlsTouched(){return this._anyControls(oe=>oe.touched)}_updatePristine(oe={}){this.pristine=!this._anyControlsDirty(),this._parent&&!oe.onlySelf&&this._parent._updatePristine(oe)}_updateTouched(oe={}){this.touched=this._anyControlsTouched(),this._parent&&!oe.onlySelf&&this._parent._updateTouched(oe)}_isBoxedValue(oe){return"object"==typeof oe&&null!==oe&&2===Object.keys(oe).length&&"value"in oe&&"disabled"in oe}_registerOnCollectionChange(oe){this._onCollectionChange=oe}_setUpdateStrategy(oe){ai(oe)&&null!=oe.updateOn&&(this._updateOn=oe.updateOn)}_parentMarkedDirty(oe){return!oe&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Ni extends ms{constructor(oe=null,J,We){super(qt(J),fn(We,J)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(oe),this._setUpdateStrategy(J),this._initOb
1servables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ai(J)&&J.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(oe)?oe.value:oe)}setValue(oe,J={}){this.value=this._pendingValue=oe,this._onChange.length&&!1!==J.emitModelToViewChange&&this._onChange.forEach(We=>We(this.value,!1!==J.emitViewToModelChange)),this.updateValueAndValidity(J)}patchValue(oe,J={}){this.setValue(oe,J)}reset(oe=this.defaultValue,J={}){this._applyFormState(oe),this.markAsPristine(J),this.markAsUntouched(J),this.setValue(this.value,J),this._pendingChange=!1}_updateValue(){}_anyControls(oe){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(oe){this._onChange.push(oe)}_unregisterOnChange(oe){St(this._onChange,oe)}registerOnDisabledChange(oe){this._onDisabledChange.push(oe)}_unregisterOnDisabledChange(oe){St(this._onDisabledChange,oe)}_forEachChild(oe){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(oe){this._isBoxedValue(oe)?(this.value=this._pendingValue=oe.value,oe.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=oe}}class Gr extends ms{constructor(oe,J,We){super(qt(J),fn(We,J)),this.controls=oe,this._initObservables(),this._setUpdateStrategy(J),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(oe,J){return this.controls[oe]?this.controls[oe]:(this.controls[oe]=J,J.setParent(this),J._registerOnCollectionChange(this._onCollectionChange),J)}addControl(oe,J,We={}){this.registerControl(oe,J),this.updateValueAndValidity({emitEvent:We.emitEvent}),this._onCollectionChange()}removeControl(oe,J={}){this.controls[oe]&&this.controls[oe]._registerOnCollectionChange(()=>{}),delete this.controls[oe],this.updateValueAndValidity({emitEvent:J.emitEvent}),this._onCollectionChange()}setControl(oe,J,We={}){this.controls[oe]&&this.controls[oe]._registerOnCollectionChange(()=>{}),delete this.controls[oe],J&&this.registerControl(oe,J),this.updateValueAndValidity({emitEvent:We.emitEvent}),this._onCollectionChange()}contains(oe){return this.controls.hasOwnProperty(oe)&&this.controls[oe].enabled}setValue(oe,J={}){Ur(this,oe),Object.keys(oe).forEach(We=>{ki(this,We),this.controls[We].setValue(oe[We],{onlySelf:!0,emitEvent:J.emitEvent})}),this.updateValueAndValidity(J)}patchValue(oe,J={}){null!=oe&&(Object.keys(oe).forEach(We=>{this.controls[We]&&this.controls[We].patchValue(oe[We],{onlySelf:!0,emitEvent:J.emitEvent})}),this.updateValueAndValidity(J))}reset(oe={},J={}){this._forEachChild((We,gn)=>{We.reset(oe[gn],{onlySelf:!0,emitEvent:J.emitEvent})}),this._updatePristine(J),this._updateTouched(J),this.updateValueAndValidity(J)}getRawValue(){return this._reduceChildren({},(oe,J,We)=>(oe[We]=Pr(J),oe))}_syncPendingControls(){let oe=this._reduceChildren(!1,(J,We)=>!!We._syncPendingControls()||J);return oe&&this.updateValueAndValidity({onlySelf:!0}),oe}_forEachChild(oe){Object.keys(this.controls).forEach(J=>{const We=this.controls[J];We&&oe(We,J)})}_setUpControls(){this._forEachChild(oe=>{oe.setParent(this),oe._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(oe){for(const J of Object.keys(this.controls)){const We=this.controls[J];if(this.contains(J)&&oe(We))return!0}return!1}_reduceValue(){return this._reduceChildren({},(oe,J,We)=>((J.enabled||this.disabled)&&(oe[We]=J.value),oe))}_reduceChildren(oe,J){let We=oe;return this._forEachChild((gn,mi)=>{We=J(We,gn,mi)}),We}_allControlsDisabled(){for(const oe of Object.keys(this.controls))if(this.controls[oe].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class jr extends ms{constructor(oe,J,We){super(qt(J),fn(We,J)),this.controls=oe,this._initObservables(),this._setUpdateStrategy(J),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(oe){return this.controls[oe]}
1push(oe,J={}){this.controls.push(oe),this._registerControl(oe),this.updateValueAndValidity({emitEvent:J.emitEvent}),this._onCollectionChange()}insert(oe,J,We={}){this.controls.splice(oe,0,J),this._registerControl(J),this.updateValueAndValidity({emitEvent:We.emitEvent})}removeAt(oe,J={}){this.controls[oe]&&this.controls[oe]._registerOnCollectionChange(()=>{}),this.controls.splice(oe,1),this.updateValueAndValidity({emitEvent:J.emitEvent})}setControl(oe,J,We={}){this.controls[oe]&&this.controls[oe]._registerOnCollectionChange(()=>{}),this.controls.splice(oe,1),J&&(this.controls.splice(oe,0,J),this._registerControl(J)),this.updateValueAndValidity({emitEvent:We.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(oe,J={}){Ur(this,oe),oe.forEach((We,gn)=>{ki(this,gn),this.at(gn).setValue(We,{onlySelf:!0,emitEvent:J.emitEvent})}),this.updateValueAndValidity(J)}patchValue(oe,J={}){null!=oe&&(oe.forEach((We,gn)=>{this.at(gn)&&this.at(gn).patchValue(We,{onlySelf:!0,emitEvent:J.emitEvent})}),this.updateValueAndValidity(J))}reset(oe=[],J={}){this._forEachChild((We,gn)=>{We.reset(oe[gn],{onlySelf:!0,emitEvent:J.emitEvent})}),this._updatePristine(J),this._updateTouched(J),this.updateValueAndValidity(J)}getRawValue(){return this.controls.map(oe=>Pr(oe))}clear(oe={}){this.controls.length<1||(this._forEachChild(J=>J._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:oe.emitEvent}))}_syncPendingControls(){let oe=this.controls.reduce((J,We)=>!!We._syncPendingControls()||J,!1);return oe&&this.updateValueAndValidity({onlySelf:!0}),oe}_forEachChild(oe){this.controls.forEach((J,We)=>{oe(J,We)})}_updateValue(){this.value=this.controls.filter(oe=>oe.enabled||this.disabled).map(oe=>oe.value)}_anyControls(oe){return this.controls.some(J=>J.enabled&&oe(J))}_setUpControls(){this._forEachChild(oe=>this._registerControl(oe))}_allControlsDisabled(){for(const oe of this.controls)if(oe.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(oe){oe.setParent(this),oe._registerOnCollectionChange(this._onCollectionChange)}}const or={provide:bn,useExisting:(0,h.Gpc)(()=>Wi)},ar=(()=>Promise.resolve(null))();let Wi=(()=>{class ge extends bn{constructor(J,We){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new h.vpe,this.form=new Gr({},vn(J),Mt(We))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(J){ar.then(()=>{const We=this._findContainer(J.path);J.control=We.registerControl(J.name,J.control),lt(J.control,J),J.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(J)})}getControl(J){return this.form.get(J.path)}
1removeControl(J){ar.then(()=>{const We=this._findContainer(J.path);We&&We.removeControl(J.name),this._directives.delete(J)})}addFormGroup(J){ar.then(()=>{const We=this._findContainer(J.path),gn=new Gr({});ei(gn,J),We.registerControl(J.name,gn),gn.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(J){ar.then(()=>{const We=this._findContainer(J.path);We&&We.removeControl(J.name)})}getFormGroup(J){return this.form.get(J.path)}updateModel(J,We){ar.then(()=>{this.form.get(J.path).setValue(We)})}setValue(J){this.control.setValue(J)}onSubmit(J){return this.submitted=!0,de(this.form,this._directives),this.ngSubmit.emit(J),!1}onReset(){this.resetForm()}resetForm(J){this.form.reset(J),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(J){return J.pop(),J.length?this.form.get(J):this.form}}return ge.\u0275fac=function(J){return new(J||ge)(h.Y36(Te,10),h.Y36(rt,10))},ge.\u0275dir=h.lG2({type:ge,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(J,We){1&J&&h.NdJ("submit",function(mi){return We.onSubmit(mi)})("reset",function(){return We.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[h._Bn([or]),h.qOj]}),ge})(),Ps=(()=>{class ge extends bn{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Qn(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return ge.\u0275fac=function(){let oe;return function(We){return(oe||(oe=h.n5z(ge)))(We||ge)}}(),ge.\u0275dir=h.lG2({type:ge,features:[h.qOj]}),ge})();const cn={provide:_n,useExisting:(0,h.Gpc)(()=>Mi)},Un=(()=>Promise.resolve(null))();let Mi=(()=>{class ge extends _n{constructor(J,We,gn,mi,hi){super(),this._changeDetectorRef=hi,this.control=new Ni,this._registered=!1,this.update=new h.vpe,this._parent=J,this._setValidators(We),this._setAsyncValidators(gn),this.valueAccessor=Je(0,mi)}ngOnChanges(J){if(this._checkForErrors(),!this._registered||"name"in J){if(this._registered&&(this._checkName(),this.formDirective)){const We=J.name.previousValue;this.formDirective.removeControl({name:We,path:this._getPath(We)})}this._setUpControl()}"isDisabled"in J&&this._updateDisabled(J),x(J,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(J){this.viewModel=J,this.update.emit(J)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){lt(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(J){Un.then(()=>{var We;this.control.setValue(J,{emitViewToModelChange:!1}),null===(We=this._changeDetectorRef)||void 0===We||We.markForCheck()})}_updateDisabled(J){const We=J.isDisabled.currentValue,gn=""===We||We&&"false"!==We;Un.then(()=>{var mi;gn&&!this.control.disabled?this.control.disable():!gn&&this.control.disabled&&this.control.enable(),null===(mi=this._changeDetectorRef)||void 0===mi||mi.markForCheck()})}_getPath(J){return this._parent?Qn(J,this._parent):[J]}}return ge.\u0275fac=function(J){return new(J||ge)(h.Y36(bn,9),h.Y36(Te,10),h.Y36(rt,10),h.Y36(te,10),h.Y36(h.sBO,8))},ge.\u0275dir=h.lG2({type:ge,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[h._Bn([cn]),h.qOj,h.TTD]}),ge})(),Fi=(()=>{class ge{}return ge.\u0275fac=function(J){return new(J||ge)},ge.\u0275dir=h.lG2({type:ge,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),ge})(),Ar=(()=>{class ge{}return ge.\u0275fac=function(J){return new(J||ge)},ge.\u0275mod=h.oAB({type:ge}),ge.\u0275inj=h.cJS({}),ge})();const Oo={provide:te,useExisting:(0,h.Gpc)(()=>oo),multi:!0};let oo=(()=>{class ge extends q{writeValue(J){this.setProperty("value",parseFloat(J))}registerOnChange(J){this.onChange=We=>{J(""==We?null:parseFloat(We))}}}return ge.\u0275fac=function(){let oe;return function(We){return(oe||(oe=h.n5z(ge)))(We||ge)}}(),ge.\u0275dir=h.lG2({type:ge,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(J,We){1&J&&h.NdJ("change",function(mi){return We.onChange(mi.target.value)})("input",function(mi){return We.onChange(mi.target.value)})("blur",function(){return We.onTouched()})},features:[h._Bn([Oo]),h.qOj]}),ge})();const ho=new h.OlP("NgModelWithFormControlWarning"),Ro={provide:bn,useExisting:(0,h.Gpc)(()=>Ks)};let Ks=(()=>{class ge extends bn{constructor(J,We){super(),this.validators=J,this.asyncValidators=We,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new h.vpe,this._setValidators(J),this._setAsyncValidators(We)}ngOnChanges(J){this._checkFormPresent(),J.hasOwnProperty("form")&&(this._updateV
1alidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Be(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(J){const We=this.form.get(J.path);return lt(We,J),We.updateValueAndValidity({emitEvent:!1}),this.directives.push(J),We}getControl(J){return this.form.get(J.path)}removeControl(J){Qt(J.control||null,J,!1),St(this.directives,J)}addFormGroup(J){this._setUpFormContainer(J)}removeFormGroup(J){this._cleanUpFormContainer(J)}getFormGroup(J){return this.form.get(J.path)}addFormArray(J){this._setUpFormContainer(J)}removeFormArray(J){this._cleanUpFormContainer(J)}getFormArray(J){return this.form.get(J.path)}updateModel(J,We){this.form.get(J.path).setValue(We)}onSubmit(J){return this.submitted=!0,de(this.form,this.directives),this.ngSubmit.emit(J),!1}onReset(){this.resetForm()}resetForm(J){this.form.reset(J),this.submitted=!1}_updateDomValue(){this.directives.forEach(J=>{const We=J.control,gn=this.form.get(J.path);We!==gn&&(Qt(We||null,J),Hi(gn)&&(lt(gn,J),J.control=gn))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(J){const We=this.form.get(J.path);ei(We,J),We.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(J){if(this.form){const We=this.form.get(J.path);We&&function ht(ge,oe){return Be(ge,oe)}(We,J)&&We.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ee(this.form,this),this._oldForm&&Be(this._oldForm,this)}_checkFormPresent(){}}return ge.\u0275fac=function(J){return new(J||ge)(h.Y36(Te,10),h.Y36(rt,10))},ge.\u0275dir=h.lG2({type:ge,selectors:[["","formGroup",""]],hostBindings:function(J,We){1&J&&h.NdJ("submit",function(mi){return We.onSubmit(mi)})("reset",function(){return We.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[h._Bn([Ro]),h.qOj,h.TTD]}),ge})();const ma={provide:bn,useExisting:(0,h.Gpc)(()=>Ui)};let Ui=(()=>{class ge extends Ps{constructor(J,We,gn){super(),this._parent=J,this._setValidators(We),this._setAsyncValidators(gn)}_checkParentType(){aa(this._parent)}}return ge.\u0275fac=function(J){return new(J||ge)(h.Y36(bn,13),h.Y36(Te,10),h.Y36(rt,10))},ge.\u0275dir=h.lG2({type:ge,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[h._Bn([ma]),h.qOj]}),ge})();const Ys={provide:bn,useExisting:(0,h.Gpc)(()=>dr)};let dr=(()=>{class ge extends bn{constructor(J,We,gn){super(),this._parent=J,this._setValidators(We),this._setAsyncValidators(gn)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Qn(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){aa(this._parent)}}return ge.\u0275fac=function(J){return new(J||ge)(h.Y36(bn,13),h.Y36(Te,10),h.Y36(rt,10))},ge.\u0275dir=h.lG2({type:ge,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[h._Bn([Ys]),h.qOj]}),ge})();function aa(ge){return!(ge instanceof Ui||ge instanceof Ks||ge instanceof dr)}const yo={provide:_n,useExisting:(0,h.Gpc)(()=>Ms)};let Ms=(()=>{class ge extends _n{constructor(J,We,gn,mi,hi){super(),this._ngModelWarningConfig=hi,this._added=!1,this.update=new h.vpe,this._ngModelWarningSent=!1,this._parent=J,this._setValidators(We),this._setAsyncValidators(gn),this.valueAccessor=Je(0,mi)}set isDisabled(J){}ngOnChanges(J){this._added||this._setUpControl(),x(J,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(J){this.viewModel=J,this.update.emit(J)}get path(){return Qn(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return ge._ngModelWarningSentOnce=!1,ge.\u0275fac=function(J){return new(J||ge)(h.Y36(bn,13),h.Y36(Te,10),h.Y36(rt,10),h.Y36(te,10),h.Y36(ho,8))},ge.\u0275dir=h.lG2({type:ge,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[h._Bn([yo]),h.qOj,h.TTD]}),ge})();let gr=(()=>
1{class ge{constructor(){this._validator=pn}ngOnChanges(J){if(this.inputName in J){const We=this.normalizeInput(J[this.inputName].currentValue);this._enabled=this.enabled(We),this._validator=this._enabled?this.createValidator(We):pn,this._onChange&&this._onChange()}}validate(J){return this._validator(J)}registerOnValidatorChange(J){this._onChange=J}enabled(J){return null!=J}}return ge.\u0275fac=function(J){return new(J||ge)},ge.\u0275dir=h.lG2({type:ge,features:[h.TTD]}),ge})();const xi={provide:Te,useExisting:(0,h.Gpc)(()=>rr),multi:!0},Yr={provide:Te,useExisting:(0,h.Gpc)(()=>wo),multi:!0};let rr=(()=>{class ge extends gr{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=J=>function Do(ge){return null!=ge&&!1!==ge&&"false"!=`${ge}`}(J),this.createValidator=J=>Re}enabled(J){return J}}return ge.\u0275fac=function(){let oe;return function(We){return(oe||(oe=h.n5z(ge)))(We||ge)}}(),ge.\u0275dir=h.lG2({type:ge,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(J,We){2&J&&h.uIk("required",We._enabled?"":null)},inputs:{required:"required"},features:[h._Bn([xi]),h.qOj]}),ge})(),wo=(()=>{class ge extends rr{constructor(){super(...arguments),this.createValidator=J=>tt}}return ge.\u0275fac=function(){let oe;return function(We){return(oe||(oe=h.n5z(ge)))(We||ge)}}(),ge.\u0275dir=h.lG2({type:ge,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(J,We){2&J&&h.uIk("required",We._enabled?"":null)},features:[h._Bn([Yr]),h.qOj]}),ge})();const le={provide:Te,useExisting:(0,h.Gpc)(()=>qe),multi:!0};let qe=(()=>{class ge extends gr{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=J=>function ia(ge){return"number"==typeof ge?ge:parseInt(ge,10)}(J),this.createValidator=J=>gt(J)}}return ge.\u0275fac=function(){let oe;return function(We){return(oe||(oe=h.n5z(ge)))(We||ge)}}(),ge.\u0275dir=h.lG2({type:ge,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(J,We){2&J&&h.uIk("maxlength",We._enabled?We.maxlength:null)},inputs:{maxlength:"maxlength"},features:[h._Bn([le]),h.qOj]}),ge})(),Dr=(()=>{class ge{}return ge.\u0275fac=function(J){return new(J||ge)},ge.\u0275mod=h.oAB({type:ge}),ge.\u0275inj=h.cJS({imports:[[Ar]]}),ge})(),Xi=(()=>{class ge{}return ge.\u0275fac=function(J){return new(J||ge)},ge.\u0275mod=h.oAB({type:ge}),ge.\u0275inj=h.cJS({imports:[Dr]}),ge})(),$i=(()=>{class ge{static withConfig(J){return{ngModule:ge,providers:[{provide:ho,useValue:J.warnOnNgModelWithFormControl}]}}}return ge.\u0275fac=function(J){return new(J||ge)},ge.\u0275mod=h.oAB({type:ge}),ge.\u0275inj=h.cJS({imports:[Dr]}),ge})(),hr=(()=>{class ge{group(J,We=null){const gn=this._reduceControls(J);let zs,mi=null,hi=null;return null!=We&&(function Xr(ge){return void 0!==ge.asyncValidators||void 0!==ge.validators||void 0!==ge.updateOn}(We)?(mi=null!=We.validators?We.validators:null,hi=null!=We.asyncValidators?We.asyncValidators:null,zs=null!=We.updateOn?We.updateOn:void 0):(mi=null!=We.validator?We.validator:null,hi=null!=We.asyncValidator?We.asyncValidator:null)),new Gr(gn,{asyncValidators:hi,updateOn:zs,validators:mi})}control(J,We,gn){return new Ni(J,We,gn)}array(J,We,gn){const mi=J.map(hi=>this._createControl(hi));return new jr(mi,We,gn)}_reduceControls(J){const We={};return Object.keys(J).forEach(gn=>{We[gn]=this._createControl(J[gn])}),We}_createControl(J){return Hi(J)||_r(J)||Ji(J)?J:Array.isArray(J)?this.control(J[0],J.length>1?J[1]:null,J.length>2?J[2]:null):this.control(J)}}return ge.\u0275fac=function(J){return new(J||ge)},ge.\u0275prov=h.Yz7({token:ge,factory:ge.\u0275fac,providedIn:$i}),ge})()},7423:(_t,Ue,b)=>{"use strict";b.d(Ue,{lW:()=>we,ot:()=>ke});var h=b(5e3),s=b(508),m=b(6360),k=b(5664);const v=["mat-button",""],C=["*"],_e=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],re=(0,s.pj)((0,s.Id)((0,s.Kr)(class{constructor(Ze){this._elementRef=Ze}})));let we=(()=>{class Ze extends re{constructor($e,Te,rt){super($e),this._focusMonitor=Te,this._animationMode=rt,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const je of _e)this._hasHostAttributes(je)&&this._getHostElement().classList.add(je);$e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus($e,Te){$e?this._focusMonitor.focusVia(this._getHostElement(),$e,Te):this._getHostElement().focus(Te)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...$e){return $e.some(Te=>this._getHostElement().hasAttribute(Te))}}return Ze.\u0275fac=function($e){return new($e||Ze)(h.Y36(h.SBq),h.Y36(k.tE),h.Y36(m.Qb,8))},Ze.\u0275cmp=h.Xpm({type:Ze,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function($e,Te){if(1&$e&&h.Gf(s.wG,5),2&$e){let rt;h.iGM(rt=h.CRH())&&(Te.ripple=rt.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function($e,Te){2&$e&&(h.uIk("disabled",Te.disabled||null),h.ekj("_mat-animation-noopable","NoopAnimations"===Te._animationMode)("mat-button-disabled",Te.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[h.qOj],attrs:v,ngContentSelectors:C,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function($e,Te){1&$e&&(h.F$t(),h.TgZ(0,"span",0),h.Hsn(1),h.qZA(),h._UZ(2,"span",1)(3,"span",2)),2&$e&&(h.xp6(2),h.ekj("mat-button-ripple-round",Te.isRoundButton||Te.isIconButton),h.Q6J("matRippleDisabled",Te._isRippleDisabled())("matRippleCentered",Te.isIconButton)("matRippleTrigger",Te._getHostElement()))},directives:[s.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}
1.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),Ze})(),ke=(()=>{class Ze{}return Ze.\u0275fac=function($e){return new($e||Ze)},Ze.\u0275mod=h.oAB({type:Ze}
1),Ze.\u0275inj=h.cJS({imports:[[s.si,s.BQ],s.BQ]}),Ze})()},9224:(_t,Ue,b)=>{"use strict";b.d(Ue,{$j:()=>be,QW:()=>tt,a8:()=>ut,dk:()=>ze,dn:()=>re,n5:()=>we});var h=b(5e3),s=b(6360),m=b(508);const k=["*",[["mat-card-footer"]]],v=["*","mat-card-footer"],C=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],q=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let re=(()=>{class Fe{}return Fe.\u0275fac=function(gt){return new(gt||Fe)},Fe.\u0275dir=h.lG2({type:Fe,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),Fe})(),we=(()=>{class Fe{}return Fe.\u0275fac=function(gt){return new(gt||Fe)},Fe.\u0275dir=h.lG2({type:Fe,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),Fe})(),be=(()=>{class Fe{}return Fe.\u0275fac=function(gt){return new(gt||Fe)},Fe.\u0275dir=h.lG2({type:Fe,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),Fe})(),ut=(()=>{class Fe{constructor(gt){this._animationMode=gt}}return Fe.\u0275fac=function(gt){return new(gt||Fe)(h.Y36(s.Qb,8))},Fe.\u0275cmp=h.Xpm({type:Fe,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(gt,Bt){2>&&h.ekj("_mat-animation-noopable","NoopAnimations"===Bt._animationMode)},exportAs:["matCard"],ngContentSelectors:v,decls:2,vars:0,template:function(gt,Bt){1>&&(h.F$t(k),h.Hsn(0),h.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}
1.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),Fe})(),ze=(()=>{class Fe{}return Fe.\u0275fac=function(gt){return new(gt||Fe)},Fe.\u0275cmp=h.Xpm({type:Fe,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:q,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(gt,Bt){1>&&(h.F$t(C),h.Hsn(0),h.TgZ(1,"div",0),h.Hsn(2,1),h.qZA(),h.Hsn(3,2))},encapsulation:2,changeDetection:0}),Fe})(),tt=(()=>{class Fe{}return Fe.\u0275fac=function(gt){return new(gt||Fe)},Fe.\u0275mod=h.oAB({type:Fe}),Fe.\u0275inj=h.cJS({imports:[[m.BQ],m.BQ]}),Fe})()},7446:(_t,Ue,b)=>{"use strict";b.d(Ue,{oG:()=>rt,p9:()=>ze});var h=b(3191),s=b(5e3),m=b(3075),k=b(508),v=b(6360),C=b(5664),q=b(7144);const te=["input"],_e=function(Re){return{enterDuration:Re}},re=["*"],we=new s.OlP("mat-checkbox-default-options",{providedIn:"root",factory:be});function be(){return{color:"accent",clickAction:"check-indeterminate"}}let ke=0;const Ze=be(),Ye={provide:m.JU,useExisting:(0,s.Gpc)(()=>rt),multi:!0};class $e{}const Te=(0,k.sb)((0,k.pj)((0,k.Kr)((0,k.Id)(class{constructor(Re){this._elementRef=Re}}))));let rt=(()=>{class Re extends Te{constructor(Fe,me,gt,Bt,pn,mn,jn){super(Fe),this._changeDetectorRef=me,this._focusMonitor=gt,this._ngZone=Bt,this._animationMode=mn,this._options=jn,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++ke,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new s.vpe,this.indeterminateChange=new s.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||Ze,this.color=this.defaultColor=this._options.color||Ze.color,this.tabIndex=parseInt(pn)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(Fe){this._required=(0,h.Ig)(Fe)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(Fe=>{Fe||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(Fe){const me=(0,h.Ig)(Fe);me!=this.checked&&(this._checked=me,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(Fe){const me=(0,h.Ig)(Fe);me!==this.disabled&&(this._disabled=me,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(Fe){const me=Fe!=this._indeterminate;this._indeterminate=(0,h.Ig)(Fe),me&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(Fe){this.checked=!!Fe}registerOnChange(Fe){this._controlValueAccessorChangeFn=Fe}registerOnTouched(Fe){this._onTouched=Fe}setDisabledState(Fe){this.disabled=Fe}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(Fe){let me=this._currentCheckState,gt=this._elementRef.nativeElement;if(me!==Fe&&(this._currentAnimationClass.length>0&>.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(me,Fe),this._currentCheckState=Fe,this._currentAnimationClass.length>0)){gt.classList.add(this._currentAnimationClass);const Bt=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{gt.classList.remove(Bt)},1e3)})}}_emitChangeEvent(){const Fe=new $e;Fe.source=this,Fe.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(Fe),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_onInputClick(Fe){var me;const gt=null===(me=this._options)||void 0===me?void 0:me.clickAction;Fe.stopPropagation(),this.disabled||"noop"===gt?!this.disabled&&"noop"===gt&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==gt&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(Fe,me){Fe?this._focusMonitor.focusVia(this._inputElement,Fe,me):this._inputElement.nativeElement.focus(me)}_onInteractionEvent(Fe){Fe.stopPropagation()}_getAnimationClassForCheckStateTransition(Fe,me){if("NoopAnimations"===this._animationMode)return"";let gt="";switch(Fe){case 0:if(1===me)gt="unchecked-checked";else{if(3!=me)return"";gt="unchecked-indeterminate"}break;case 2:gt=1===me?"unchecked-checked":"unchecked-indeterminate";break;case 1:gt=2===me?"checked-unchecked":"checked-indeterminate";break;case 3:gt=1===me?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${gt}`}_syncIndeterminate(Fe){const me=this._inputElement;me&&(me.nativeElement.indeterminate=Fe)}}return Re.\u0275fac=function(Fe){return new(Fe||Re)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(C.tE),s.Y36(s.R0b),s.$8M("tabindex"),s.Y36(v.Qb,8),s.Y36(we,8))},Re.\u0275cmp=s.Xpm({type:Re,selectors:[["mat-checkbox"]],viewQuery:function(Fe,me){if(1&Fe&&(s.Gf(te,5),s.Gf(k.wG,5)),2&Fe){let gt;s.iGM(gt=s.CRH())&&(me._inputElement=gt.first),s.iGM(gt=s.CRH())&&(me.ripple=gt.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(Fe,me){2&Fe&&(s.Ikx("id",me.id),s.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),s.ekj("mat-checkbox-indeterminate",me.indeterminate)("mat-checkbox-checked",me.checked)("mat-checkbox-disabled",me.disabled)("mat-checkbox-label-before","before"==me.labelPosition)("_mat-animation-noopable","NoopAnimations"===me._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[s._Bn([Ye]),s.qOj],ngContentSelectors:re,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(Fe,me){if(1&Fe&&(s.F$t(),s.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),s.NdJ("
1change",function(Bt){return me._onInteractionEvent(Bt)})("click",function(Bt){return me._onInputClick(Bt)}),s.qZA(),s.TgZ(5,"span",5),s._UZ(6,"span",6),s.qZA(),s._UZ(7,"span",7),s.TgZ(8,"span",8),s.O4$(),s.TgZ(9,"svg",9),s._UZ(10,"path",10),s.qZA(),s.kcU(),s._UZ(11,"span",11),s.qZA()(),s.TgZ(12,"span",12,13),s.NdJ("cdkObserveContent",function(){return me._onLabelTextChange()}),s.TgZ(14,"span",14),s._uU(15,"\xa0"),s.qZA(),s.Hsn(16),s.qZA()()),2&Fe){const gt=s.MAs(1),Bt=s.MAs(13);s.uIk("for",me.inputId),s.xp6(2),s.ekj("mat-checkbox-inner-container-no-side-margin",!Bt.textContent||!Bt.textContent.trim()),s.xp6(1),s.Q6J("id",me.inputId)("required",me.required)("checked",me.checked)("disabled",me.disabled)("tabIndex",me.tabIndex),s.uIk("value",me.value)("name",me.name)("aria-label",me.ariaLabel||null)("aria-labelledby",me.ariaLabelledby)("aria-checked",me._getAriaChecked())("aria-describedby",me.ariaDescribedby),s.xp6(2),s.Q6J("matRippleTrigger",gt)("matRippleDisabled",me._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",s.VKq(19,_e,"NoopAnimations"===me._animationMode?0:150))}},directives:[k.wG,q.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}
1@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),Re})(),ut=(()=>{class Re{}return Re.\u0275fac=function(Fe){return new(Fe||Re)},Re.\u0275mod=s.oAB({type:Re}),Re.\u0275inj=s.cJS({}),Re})(),ze=(()=>{class Re{}return Re.\u0275fac=function(Fe){return new(Fe||Re)},Re.\u0275mod=s.oAB({type:Re}),Re.\u0275inj=s.cJS({imports:[[k.si,k.BQ,q.Q8,ut],k.BQ,ut]}),Re})()},508:(_t,Ue,b)=>{"use strict";b.d(Ue,{_A:()=>Wn,rD:()=>ct,K7:()=>Yt,HF:()=>Me,Y2:()=>Pt,BQ:()=>ut,ey:()=>ni,Ng:()=>Qt,rN:()=>Nn,wG:()=>$,si:()=>ue,IR:()=>Vn,CB:()=>Qn,jH:()=>lt,pj:()=>me,Kr:()=>gt,Id:()=>Fe,FD:()=>pn,sb:()=>Bt});var h=b(5e3),s=b(226),k=b(9808),v=b(925),C=b(5664),q=b(3191),te=b(7579),_e=b(6360),re=b(1159);function ke(Se,Ke){if(1&Se&&h._UZ(0,"mat-pseudo-checkbox",4),2&Se){const Ee=h.oxw();h.Q6J("state",Ee.selected?"checked":"unchecked")("disabled",Ee.disabled)}}function Ze(Se,Ke){if(1&Se&&(h.TgZ(0,"span",5),h._uU(1),h.qZA()),2&Se){const Ee=h.oxw();h.xp6(1),h.hij("(",Ee.group.label,")")}}const Ye=["*"],zt=new h.OlP("mat-sanity-checks",{providedIn:"root",factory:function je(){return!0}});let ut=(()=>{class Se{constructor(Ee,Be,at){this._sanityChecks=Be,this._document=at,this._hasDoneGlobalChecks=!1,Ee._applyBodyHighContrastModeCssClasse
1s(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Ee){return!(0,v.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Ee])}}return Se.\u0275fac=function(Ee){return new(Ee||Se)(h.LFG(C.qm),h.LFG(zt,8),h.LFG(k.K0))},Se.\u0275mod=h.oAB({type:Se}),Se.\u0275inj=h.cJS({imports:[[s.vT],s.vT]}),Se})();function Fe(Se){return class extends Se{constructor(...Ke){super(...Ke),this._disabled=!1}get disabled(){return this._disabled}set disabled(Ke){this._disabled=(0,q.Ig)(Ke)}}}function me(Se,Ke){return class extends Se{constructor(...Ee){super(...Ee),this.defaultColor=Ke,this.color=Ke}get color(){return this._color}set color(Ee){const Be=Ee||this.defaultColor;Be!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),Be&&this._elementRef.nativeElement.classList.add(`mat-${Be}`),this._color=Be)}}}function gt(Se){return class extends Se{constructor(...Ke){super(...Ke),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Ke){this._disableRipple=(0,q.Ig)(Ke)}}}function Bt(Se,Ke=0){return class extends Se{constructor(...Ee){super(...Ee),this._tabIndex=Ke,this.defaultTabIndex=Ke}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Ee){this._tabIndex=null!=Ee?(0,q.su)(Ee):this.defaultTabIndex}}}function pn(Se){return class extends Se{constructor(...Ke){super(...Ke),this.stateChanges=new te.x,this.errorState=!1}updateErrorState(){const Ke=this.errorState,Ot=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Ot!==Ke&&(this.errorState=Ot,this.stateChanges.next())}}}class Wn{constructor(){this._localeChanges=new te.x,this.localeChanges=this._localeChanges}getValidDateOrNull(Ke){return this.isDateInstance(Ke)&&this.isValid(Ke)?Ke:null}deserialize(Ke){return null==Ke||this.isDateInstance(Ke)&&this.isValid(Ke)?Ke:this.invalid()}setLocale(Ke){this.locale=Ke,this._localeChanges.next()}compareDate(Ke,Ee){return this.getYear(Ke)-this.getYear(Ee)||this.getMonth(Ke)-this.getMonth(Ee)||this.getDate(Ke)-this.getDate(Ee)}sameDate(Ke,Ee){if(Ke&&Ee){let Be=this.isValid(Ke),at=this.isValid(Ee);return Be&&at?!this.compareDate(Ke,Ee):Be==at}return Ke==Ee}clampDate(Ke,Ee,Be){return Ee&&this.compareDate(Ke,Ee)<0?Ee:Be&&this.compareDate(Ke,Be)>0?Be:Ke}}let ct=(()=>{class Se{isErrorState(Ee,Be){return!!(Ee&&Ee.invalid&&(Ee.touched||Be&&Be.submitted))}}return Se.\u0275fac=function(Ee){return new(Ee||Se)},Se.\u0275prov=h.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})();class tn{constructor(Ke,Ee,Be){this._renderer=Ke,this.element=Ee,this.config=Be,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const _n={enterDuration:225,exitDuration:150},pi=(0,v.i$)({passive:!0}),si=["mousedown","touchstart"],vi=["mouseup","mouseleave","touchend","touchcancel"];class Vn{constructor(Ke,Ee,Be,at){this._target=Ke,this._ngZone=Ee,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,at.isBrowser&&(this._containerElement=(0,q.fI)(Be))}fadeInRipple(Ke,Ee,Be={}){const at=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Ot=Object.assign(Object.assign({},_n),Be.animation);Be.centered&&(Ke=at.left+at.width/2,Ee=at.top+at.height/2);const mt=Be.radius||function Ve(Se,Ke,Ee){const Be=Math.max(Math.abs(Se-Ee.left),Math.abs(Se-Ee.right)),at=Math.max(Math.abs(Ke-Ee.top),Math.abs(Ke-Ee.bottom));return Math.sqrt(Be*Be+at*at)}(Ke,Ee,at),yn=Ke-at.left,ei=Ee-at.top,ht=Ot.enterDuration,Oe=document.createElement("div");Oe.classList.add("mat-ripple-element"),Oe.style.left=yn-mt+"px",Oe.style.top=ei-mt+"px",Oe.style.height=2*mt+"px",Oe.style.width=2*mt+"px",null!=Be.color&&(Oe.style.backgroundColor=Be.color),Oe.style.transitionDuration=`${ht}ms`,this._containerElement.appendChild(Oe),function Rn(Se){window.getComputedStyle(Se).getPropertyValue("opacity")}(Oe),Oe.style.transform="scale(1)";const De=new tn(this,Oe,Be);return De.state=0,this._activeRipples.add(De),Be.persistent||(this._mostRecentTransientRipple=De),this._runTimeoutOutsideZone(()=>{const U=De===this._mostRecentTransientRipple;De.state=1,!Be.persistent&&(!U||!this._isPointerDown)&&De.fadeOut()},ht),De}fadeOutRipple(Ke){const Ee=this._activeRipples.delete(Ke);if(Ke===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!Ee)return;const Be=Ke.element,at=Object.assign(Object.assign({},_n),Ke.config.animation);Be.style.transitionDuration=`${at.exitDuration}ms`,Be.style.opacity="0",Ke.state=2,this._runTimeoutOutsideZone(()=>{Ke.state=3,Be.remove()},at.exitDuration)}
1fadeOutAll(){this._activeRipples.forEach(Ke=>Ke.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(Ke=>{Ke.config.persistent||Ke.fadeOut()})}setupTriggerEvents(Ke){const Ee=(0,q.fI)(Ke);!Ee||Ee===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Ee,this._registerEvents(si))}handleEvent(Ke){"mousedown"===Ke.type?this._onMousedown(Ke):"touchstart"===Ke.type?this._onTouchStart(Ke):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(vi),this._pointerUpEventsRegistered=!0)}_onMousedown(Ke){const Ee=(0,C.X6)(Ke),Be=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!Ee&&!Be&&(this._isPointerDown=!0,this.fadeInRipple(Ke.clientX,Ke.clientY,this._target.rippleConfig))}_onTouchStart(Ke){if(!this._target.rippleDisabled&&!(0,C.yG)(Ke)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const Ee=Ke.changedTouches;for(let Be=0;Be<Ee.length;Be++)this.fadeInRipple(Ee[Be].clientX,Ee[Be].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(Ke=>{!Ke.config.persistent&&(1===Ke.state||Ke.config.terminateOnPointerUp&&0===Ke.state)&&Ke.fadeOut()}))}_runTimeoutOutsideZone(Ke,Ee=0){this._ngZone.runOutsideAngular(()=>setTimeout(Ke,Ee))}_registerEvents(Ke){this._ngZone.runOutsideAngular(()=>{Ke.forEach(Ee=>{this._triggerElement.addEventListener(Ee,this,pi)})})}_removeTriggerEvents(){this._triggerElement&&(si.forEach(Ke=>{this._triggerElement.removeEventListener(Ke,this,pi)}),this._pointerUpEventsRegistered&&vi.forEach(Ke=>{this._triggerElement.removeEventListener(Ke,this,pi)}))}}const Pt=new h.OlP("mat-ripple-global-options");let $=(()=>{class Se{constructor(Ee,Be,at,Ot,mt){this._elementRef=Ee,this._animationMode=mt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Ot||{},this._rippleRenderer=new Vn(this,Be,Ee,at)}get disabled(){return this._disabled}set disabled(Ee){Ee&&this.fadeOutAllNonPersistent(),this._disabled=Ee,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Ee){this._trigger=Ee,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(Ee,Be=0,at){return"number"==typeof Ee?this._rippleRenderer.fadeInRipple(Ee,Be,Object.assign(Object.assign({},this.rippleConfig),at)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),Ee))}}return Se.\u0275fac=function(Ee){return new(Ee||Se)(h.Y36(h.SBq),h.Y36(h.R0b),h.Y36(v.t4),h.Y36(Pt,8),h.Y36(_e.Qb,8))},Se.\u0275dir=h.lG2({type:Se,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Ee,Be){2&Ee&&h.ekj("mat-ripple-unbounded",Be.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),Se})(),ue=(()=>{class Se{}return Se.\u0275fac=function(Ee){return new(Ee||Se)},Se.\u0275mod=h.oAB({type:Se}),Se.\u0275inj=h.cJS({imports:[[ut],ut]}),Se})(),K=(()=>{class Se{constructor(Ee){this._animationMode=Ee,this.state="unchecked",this.disabled=!1}}return Se.\u0275fac=function(Ee){return new(Ee||Se)(h.Y36(_e.Qb,8))},Se.\u0275cmp=h.Xpm({type:Se,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(Ee,Be){2&Ee&&h.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Be.state)("mat-pseudo-checkbox-checked","checked"===Be.state)("mat-pseudo-checkbox-disabled",Be.disabled)("_mat-animation-noopable","NoopAnimations"===Be._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(Ee,Be){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),Se})(),ae=(()=>{class Se{}return Se.\u0275fac=function(Ee){return new(Ee||Se)},Se.\u0275mod=h.oAB({type:Se}),Se.\u0275inj=h.cJS({imports:[[ut]]}),Se})();const Me=new h.OlP("MAT_OPTION_PARENT_COMPONENT"),Yt=new h.OlP("MatOptgroup");let Cn=0;class Nn{constructor(Ke,Ee=!1){this.source=Ke,this.isUserInput=Ee}}let Si=(()=>{class Se{constructor(Ee,Be,at,Ot){this._element=Ee,this._changeDetectorRef=Be,this._parent=at,this.group=Ot,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Cn++,this.onSelectionChange=new h.vpe,this._stateChanges=new te.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(Ee){this._disabled=(0,q.Ig)(Ee)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(Ee,Be){const at=this._getHostElement();"function"==typeof at.focus&&at.focus(Be)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(Ee){(Ee.keyCode===re.K5||Ee.keyCode===re.L_)&&!(0,re.Vb)(Ee)&&(this._selectViaInteraction(),Ee.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}
1_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const Ee=this.viewValue;Ee!==this._mostRecentViewValue&&(this._mostRecentViewValue=Ee,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Ee=!1){this.onSelectionChange.emit(new Nn(this,Ee))}}return Se.\u0275fac=function(Ee){h.$Z()},Se.\u0275dir=h.lG2({type:Se,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Se})(),ni=(()=>{class Se extends Si{constructor(Ee,Be,at,Ot){super(Ee,Be,at,Ot)}}return Se.\u0275fac=function(Ee){return new(Ee||Se)(h.Y36(h.SBq),h.Y36(h.sBO),h.Y36(Me,8),h.Y36(Yt,8))},Se.\u0275cmp=h.Xpm({type:Se,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(Ee,Be){1&Ee&&h.NdJ("click",function(){return Be._selectViaInteraction()})("keydown",function(Ot){return Be._handleKeydown(Ot)}),2&Ee&&(h.Ikx("id",Be.id),h.uIk("tabindex",Be._getTabIndex())("aria-selected",Be._getAriaSelected())("aria-disabled",Be.disabled.toString()),h.ekj("mat-selected",Be.selected)("mat-option-multiple",Be.multiple)("mat-active",Be.active)("mat-option-disabled",Be.disabled))},exportAs:["matOption"],features:[h.qOj],ngContentSelectors:Ye,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(Ee,Be){1&Ee&&(h.F$t(),h.YNc(0,ke,1,2,"mat-pseudo-checkbox",0),h.TgZ(1,"span",1),h.Hsn(2),h.qZA(),h.YNc(3,Ze,2,1,"span",2),h._UZ(4,"div",3)),2&Ee&&(h.Q6J("ngIf",Be.multiple),h.xp6(3),h.Q6J("ngIf",Be.group&&Be.group._inert),h.xp6(1),h.Q6J("matRippleTrigger",Be._getHostElement())("matRippleDisabled",Be.disabled||Be.disableRipple))},directives:[K,k.O5,$],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Se})();
1function Qn(Se,Ke,Ee){if(Ee.length){let Be=Ke.toArray(),at=Ee.toArray(),Ot=0;for(let mt=0;mt<Se+1;mt++)Be[mt].group&&Be[mt].group===at[Ot]&&Ot++;return Ot}return 0}function lt(Se,Ke,Ee,Be){return Se<Ee?Se:Se+Ke>Ee+Be?Math.max(0,Se-Be+Ke):Ee}let Qt=(()=>{class Se{}return Se.\u0275fac=function(Ee){return new(Ee||Se)},Se.\u0275mod=h.oAB({type:Se}),Se.\u0275inj=h.cJS({imports:[[ue,k.ez,ut,ae]]}),Se})()},8966:(_t,Ue,b)=>{"use strict";b.d(Ue,{H8:()=>it,Is:()=>ct,WI:()=>gt,ZT:()=>vn,uw:()=>Mn});var h=b(9776),s=b(7429),m=b(5e3),k=b(508),v=b(226),C=b(7579),q=b(9770),te=b(9646),_e=b(9300),re=b(5698),we=b(8675),be=b(925),ke=b(9808),Ze=b(1777),Ye=b(5664),$e=b(1159),Te=b(6360);function rt(st,vt){}class je{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const zt={dialogContainer:(0,Ze.X$)("dialogContainer",[(0,Ze.SB)("void, exit",(0,Ze.oB)({opacity:0,transform:"scale(0.7)"})),(0,Ze.SB)("enter",(0,Ze.oB)({transform:"none"})),(0,Ze.eR)("* => enter",(0,Ze.ru)([(0,Ze.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,Ze.oB)({transform:"none",opacity:1})),(0,Ze.IO)("@*",(0,Ze.pV)(),{optional:!0})])),(0,Ze.eR)("* => void, * => exit",(0,Ze.ru)([(0,Ze.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,Ze.oB)({opacity:0})),(0,Ze.IO)("@*",(0,Ze.pV)(),{optional:!0})]))])};let ze=(()=>{class st extends s.en{constructor(ft,Ut,tn,_n,bn,pi,si,vi){super(),this._elementRef=ft,this._focusTrapFactory=Ut,this._changeDetectorRef=tn,this._config=bn,this._interactivityChecker=pi,this._ngZone=si,this._focusMonitor=vi,this._animationStateChanged=new m.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=Vn=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(Vn)),this._ariaLabelledBy=bn.ariaLabelledBy||null,this._document=_n}_initializeWithAttachedContent(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,be.ht)())}attachComponentPortal(ft){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(ft)}attachTemplatePortal(ft){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(ft)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(ft,Ut){this._interactivityChecker.isFocusable(ft)||(ft.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const tn=()=>{ft.removeEventListener("blur",tn),ft.removeEventListener("mousedown",tn),ft.removeAttribute("tabindex")};ft.addEventListener("blur",tn),ft.addEventListener("mousedown",tn)})),ft.focus(Ut)}_focusByCssSelector(ft,Ut){let tn=this._elementRef.nativeElement.querySelector(ft);tn&&this._forceFocus(tn,Ut)}_trapFocus(){const ft=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||ft.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Ut=>{Ut||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const ft=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&ft&&"function"==typeof ft.focus){const Ut=(0,be.ht)(),tn=this._elementRef.nativeElement;(!Ut||Ut===this._document.body||Ut===tn||tn.contains(Ut))&&(this._focusMonitor?(this._focusMonitor.focusVia(ft,this._closeInteractionType),this._closeInteractionType=null):ft.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const ft=this._elementRef.nativeElement,Ut=(0,be.ht)();return ft===Ut||ft.contains(Ut)}}return st.\u0275fac=function(ft){return new(ft||st)(m.Y36(m.SBq),m.Y36(Ye.qV),m.Y36(m.sBO),m.Y36(ke.K0,8),m.Y36(je),m.Y36(Ye.ic),m.Y36(m.R0b),m.Y36(Ye.tE))},st.\u0275dir=m.lG2({type:st,viewQuery:function(ft,Ut){if(1&ft&&m.Gf(s.Pl,7),2&ft){let tn;m.iGM(tn=m.CRH())&&(Ut._portalOutlet=tn.first)}},features:[m.qOj]}),st})(),Re=(()=>{class st extends ze{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:ft,totalTime:Ut}){"enter"===ft?(this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Ut})):"exit"===ft&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:Ut}))}_onAnimationStart({toState:ft,totalTime:Ut}){"enter"===ft?this._animationStateChanged.next({state:"opening",totalTime:Ut}):("exit"===ft||"void"===ft)&&this._animationStateChanged.next({state:"closing",totalTime:Ut})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_initializeWithAttachedContent(){super._initializeWithAttachedContent(),this._config.delayFocusTrap||this._trapFocus()}}return st.\u0275fac=function(){let vt;return function(Ut){return(vt||(vt=m.n5z(st)))(Ut||st)}}(),st.\u0275cmp=m.Xpm({type:st,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(ft,Ut){1&ft&&m.WFA("@dialogContainer.start",function(_n){return Ut._onAnimationStart(_n)})("@dialogContainer.done",function(_n){return Ut._onAnimationDone(_n)}),2&ft&&(m.Ikx("id",Ut._id),m.uIk("role",Ut._config.role)("aria-labelledby",Ut._config.ariaLabel?null:Ut._ariaLabelledBy)("aria-label",Ut._config.ariaLabel)("aria-describedby",Ut._config.ariaDescribedBy||null),m.d8E("@dialogContainer",Ut._state))},features:[m.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(ft,Ut){1&ft&&m.YNc(0,rt,0,0,"ng-template",0)},directives:[s.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[zt.dialogContainer]}}),st})(),tt=0;class Fe{constructor(vt,ft,Ut="mat-dialog-"+tt++){this._overlayRef=vt,this._containerInstance=ft,this.id=Ut,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new C.x,this._afterClosed=new C.x,this._beforeClosed=new C.x,this._state=0,ft._id=Ut,ft._animationStateChanged.pipe((0,_e.h)(tn=>"opened"===tn.state),(0,re.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),ft._animationStateChanged.pipe((0,_e.h)(tn=>"closed"===tn.state),(0,re.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),vt.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),vt.keydownEvents().pipe((0,_e.h)(tn=>tn.keyCode===$e.hY&&!this.disableClose&&!(0,$e.Vb)(tn))).subscribe(tn=>{tn.preventDefault(),me(this,"keyboard")}),vt.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():me(this,"mouse")})}close(vt){this._result=vt,this._containerInstance._animationStateChanged.pipe((0,_e.h)(ft=>
1"closing"===ft.state),(0,re.q)(1)).subscribe(ft=>{this._beforeClosed.next(vt),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),ft.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(vt){let ft=this._getPositionStrategy();return vt&&(vt.left||vt.right)?vt.left?ft.left(vt.left):ft.right(vt.right):ft.centerHorizontally(),vt&&(vt.top||vt.bottom)?vt.top?ft.top(vt.top):ft.bottom(vt.bottom):ft.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(vt="",ft=""){return this._overlayRef.updateSize({width:vt,height:ft}),this._overlayRef.updatePosition(),this}addPanelClass(vt){return this._overlayRef.addPanelClass(vt),this}removePanelClass(vt){return this._overlayRef.removePanelClass(vt),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function me(st,vt,ft){return void 0!==st._containerInstance&&(st._containerInstance._closeInteractionType=vt),st.close(ft)}const gt=new m.OlP("MatDialogData"),Bt=new m.OlP("mat-dialog-default-options"),pn=new m.OlP("mat-dialog-scroll-strategy"),en={provide:pn,deps:[h.aV],useFactory:function jn(st){return()=>st.scrollStrategies.block()}};let Wn=(()=>{class st{constructor(ft,Ut,tn,_n,bn,pi,si,vi,Vn,Rn){this._overlay=ft,this._injector=Ut,this._defaultOptions=tn,this._parentDialog=_n,this._overlayContainer=bn,this._dialogRefConstructor=si,this._dialogContainerType=vi,this._dialogDataToken=Vn,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new C.x,this._afterOpenedAtThisLevel=new C.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,q.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,we.O)(void 0))),this._scrollStrategy=pi}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const ft=this._parentDialog;return ft?ft._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(ft,Ut){Ut=function Bn(st,vt){return Object.assign(Object.assign({},vt),st)}(Ut,this._defaultOptions||new je),Ut.id&&this.getDialogById(Ut.id);const tn=this._createOverlay(Ut),_n=this._attachDialogContainer(tn,Ut),bn=this._attachDialogContent(ft,_n,tn,Ut);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(bn),bn.afterClosed().subscribe(()=>this._removeOpenDialog(bn)),this.afterOpened.next(bn),_n._initializeWithAttachedContent(),bn}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(ft){return this.openDialogs.find(Ut=>Ut.id===ft)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(ft){const Ut=this._getOverlayConfig(ft);return this._overlay.create(Ut)}_getOverlayConfig(ft){const Ut=new h.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:ft.scrollStrategy||this._scrollStrategy(),panelClass:ft.panelClass,hasBackdrop:ft.hasBackdrop,direction:ft.direction,minWidth:ft.minWidth,minHeight:ft.minHeight,maxWidth:ft.maxWidth,maxHeight:ft.maxHeight,disposeOnNavigation:ft.closeOnNavigation});return ft.backdropClass&&(Ut.backdropClass=ft.backdropClass),Ut}_attachDialogContainer(ft,Ut){const _n=m.zs3.create({parent:Ut&&Ut.viewContainerRef&&Ut.viewContainerRef.injector||this._injector,providers:[{provide:je,useValue:Ut}]}),bn=new s.C5(this._dialogContainerType,Ut.viewContainerRef,_n,Ut.componentFactoryResolver);return ft.attach(bn).instance}_attachDialogContent(ft,Ut,tn,_n){const bn=new this._dialogRefConstructor(tn,Ut,_n.id);
1if(ft instanceof m.Rgc)Ut.attachTemplatePortal(new s.UE(ft,null,{$implicit:_n.data,dialogRef:bn}));else{const pi=this._createInjector(_n,bn,Ut),si=Ut.attachComponentPortal(new s.C5(ft,_n.viewContainerRef,pi,_n.componentFactoryResolver));bn.componentInstance=si.instance}return bn.updateSize(_n.width,_n.height).updatePosition(_n.position),bn}_createInjector(ft,Ut,tn){const _n=ft&&ft.viewContainerRef&&ft.viewContainerRef.injector,bn=[{provide:this._dialogContainerType,useValue:tn},{provide:this._dialogDataToken,useValue:ft.data},{provide:this._dialogRefConstructor,useValue:Ut}];return ft.direction&&(!_n||!_n.get(v.Is,null,m.XFs.Optional))&&bn.push({provide:v.Is,useValue:{value:ft.direction,change:(0,te.of)()}}),m.zs3.create({parent:_n||this._injector,providers:bn})}_removeOpenDialog(ft){const Ut=this.openDialogs.indexOf(ft);Ut>-1&&(this.openDialogs.splice(Ut,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((tn,_n)=>{tn?_n.setAttribute("aria-hidden",tn):_n.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const ft=this._overlayContainer.getContainerElement();if(ft.parentElement){const Ut=ft.parentElement.children;for(let tn=Ut.length-1;tn>-1;tn--){let _n=Ut[tn];_n!==ft&&"SCRIPT"!==_n.nodeName&&"STYLE"!==_n.nodeName&&!_n.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(_n,_n.getAttribute("aria-hidden")),_n.setAttribute("aria-hidden","true"))}}}_closeDialogs(ft){let Ut=ft.length;for(;Ut--;)ft[Ut].close()}}return st.\u0275fac=function(ft){m.$Z()},st.\u0275dir=m.lG2({type:st}),st})(),Mn=(()=>{class st extends Wn{constructor(ft,Ut,tn,_n,bn,pi,si,vi){super(ft,Ut,_n,pi,si,bn,Fe,Re,gt,vi)}}return st.\u0275fac=function(ft){return new(ft||st)(m.LFG(h.aV),m.LFG(m.zs3),m.LFG(ke.Ye,8),m.LFG(Bt,8),m.LFG(pn),m.LFG(st,12),m.LFG(h.Xj),m.LFG(Te.Qb,8))},st.\u0275prov=m.Yz7({token:st,factory:st.\u0275fac}),st})(),vn=(()=>{class st{constructor(ft,Ut,tn){this.dialogRef=ft,this._elementRef=Ut,this._dialog=tn,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=function At(st,vt){let ft=st.nativeElement.parentElement;for(;ft&&!ft.classList.contains("mat-dialog-container");)ft=ft.parentElement;return ft?vt.find(Ut=>Ut.id===ft.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(ft){const Ut=ft._matDialogClose||ft._matDialogCloseResult;Ut&&(this.dialogResult=Ut.currentValue)}_onButtonClick(ft){me(this.dialogRef,0===ft.screenX&&0===ft.screenY?"keyboard":"mouse",this.dialogResult)}}return st.\u0275fac=function(ft){return new(ft||st)(m.Y36(Fe,8),m.Y36(m.SBq),m.Y36(Mn))},st.\u0275dir=m.lG2({type:st,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(ft,Ut){1&ft&&m.NdJ("click",function(_n){return Ut._onButtonClick(_n)}),2&ft&&m.uIk("aria-label",Ut.ariaLabel||null)("type",Ut.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[m.TTD]}),st})(),it=(()=>{class st{}return st.\u0275fac=function(ft){return new(ft||st)},st.\u0275dir=m.lG2({type:st,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),st})(),ct=(()=>{class st{}return st.\u0275fac=function(ft){return new(ft||st)},st.\u0275mod=m.oAB({type:st}),st.\u0275inj=m.cJS({providers:[Mn,en],imports:[[h.U8,s.eL,k.BQ],k.BQ]}),st})()},3489:(_t,Ue,b)=>{"use strict";b.d(Ue,{Eo:()=>Dn,G_:()=>Rn,KE:()=>Ve,R9:()=>_n,TO:()=>Mn,bx:()=>ct,hX:()=>st,lN:()=>Pt});var h=b(7144),s=b(9808),m=b(5e3),k=b(508),v=b(3191),C=b(7579),q=b(6451),te=b(4968),_e=b(8675),re=b(2722),we=b(5698),be=b(1777),ke=b(6360),Ze=b(226),Ye=b(925);const $e=["connectionContainer"],Te=["inputContainer"],rt=["label"];function je($,ue){1&$&&(m.ynx(0),m.TgZ(1,"div",14),m._UZ(2,"div",15)(3,"div",16)(4,"div",17),m.qZA(),m.TgZ(5,"div",18),m._UZ(6,"div",15)(7,"div",16)(8,"div",17),m.qZA(),m.BQk())}function zt($,ue){if(1&$){const K=m.EpF();m.TgZ(0,"div",19),m.NdJ("cdkObserveContent",function(){return m.CHM(K),m.oxw().updateOutlineGap()}),m.Hsn(1,1),m.qZA()}if(2&$){const K=m.oxw();m.Q6J("cdkObserveContentDisabled","outline"!=K.appearance)}}function ut($,ue){if(1&$&&(m.ynx(0),m.Hsn(1,2),m.TgZ(2,"span"),m._uU(3),m.qZA(),m.BQk()),2&$){const K=m.oxw(2);m.xp6(3),m.Oqu(K._control.placeholder)}}function ze($,ue){1&$&&m.Hsn(0,3,["*ngSwitchCase","true"])}function Re($,ue){1&$&&(m.TgZ(0,"span",23),m._uU(1," *"),m.qZA())}function tt($,ue){if(1&$){const K=m.EpF();m.TgZ(0,"label",20,21),m.NdJ("cdkObserveContent",function(){return m.CHM(K),m.oxw().updateOutlineGap()}),m.YNc(2,ut,4,1,"ng-container",12),m.YNc(3,ze,1,0,"ng-content",12),m.YNc(4,Re,2,0,"span",22),m.qZA()}if(2&$){const K=m.oxw();
1m.ekj("mat-empty",K._control.empty&&!K._shouldAlwaysFloat())("mat-form-field-empty",K._control.empty&&!K._shouldAlwaysFloat())("mat-accent","accent"==K.color)("mat-warn","warn"==K.color),m.Q6J("cdkObserveContentDisabled","outline"!=K.appearance)("id",K._labelId)("ngSwitch",K._hasLabel()),m.uIk("for",K._control.id)("aria-owns",K._control.id),m.xp6(2),m.Q6J("ngSwitchCase",!1),m.xp6(1),m.Q6J("ngSwitchCase",!0),m.xp6(1),m.Q6J("ngIf",!K.hideRequiredMarker&&K._control.required&&!K._control.disabled)}}function Fe($,ue){1&$&&(m.TgZ(0,"div",24),m.Hsn(1,4),m.qZA())}function me($,ue){if(1&$&&(m.TgZ(0,"div",25),m._UZ(1,"span",26),m.qZA()),2&$){const K=m.oxw();m.xp6(1),m.ekj("mat-accent","accent"==K.color)("mat-warn","warn"==K.color)}}function gt($,ue){if(1&$&&(m.TgZ(0,"div"),m.Hsn(1,5),m.qZA()),2&$){const K=m.oxw();m.Q6J("@transitionMessages",K._subscriptAnimationState)}}function Bt($,ue){if(1&$&&(m.TgZ(0,"div",30),m._uU(1),m.qZA()),2&$){const K=m.oxw(2);m.Q6J("id",K._hintLabelId),m.xp6(1),m.Oqu(K.hintLabel)}}function pn($,ue){if(1&$&&(m.TgZ(0,"div",27),m.YNc(1,Bt,2,2,"div",28),m.Hsn(2,6),m._UZ(3,"div",29),m.Hsn(4,7),m.qZA()),2&$){const K=m.oxw();m.Q6J("@transitionMessages",K._subscriptAnimationState),m.xp6(1),m.Q6J("ngIf",K.hintLabel)}}const mn=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],jn=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let en=0;const Wn=new m.OlP("MatError");let Mn=(()=>{class ${constructor(K,ae){this.id="mat-error-"+en++,K||ae.nativeElement.setAttribute("aria-live","polite")}}return $.\u0275fac=function(K){return new(K||$)(m.$8M("aria-live"),m.Y36(m.SBq))},$.\u0275dir=m.lG2({type:$,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(K,ae){2&K&&m.uIk("id",ae.id)},inputs:{id:"id"},features:[m._Bn([{provide:Wn,useExisting:$}])]}),$})();const Bn={transitionMessages:(0,be.X$)("transitionMessages",[(0,be.SB)("enter",(0,be.oB)({opacity:1,transform:"translateY(0%)"})),(0,be.eR)("void => enter",[(0,be.oB)({opacity:0,transform:"translateY(-5px)"}),(0,be.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Dn=(()=>{class ${}return $.\u0275fac=function(K){return new(K||$)},$.\u0275dir=m.lG2({type:$}),$})(),it=0;const At=new m.OlP("MatHint");let ct=(()=>{class ${constructor(){this.align="start",this.id="mat-hint-"+it++}}return $.\u0275fac=function(K){return new(K||$)},$.\u0275dir=m.lG2({type:$,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(K,ae){2&K&&(m.uIk("id",ae.id)("align",null),m.ekj("mat-form-field-hint-end","end"===ae.align))},inputs:{align:"align",id:"id"},features:[m._Bn([{provide:At,useExisting:$}])]}),$})(),st=(()=>{class ${}return $.\u0275fac=function(K){return new(K||$)},$.\u0275dir=m.lG2({type:$,selectors:[["mat-label"]]}),$})(),vt=(()=>{class ${}return $.\u0275fac=function(K){return new(K||$)},$.\u0275dir=m.lG2({type:$,selectors:[["mat-placeholder"]]}),$})();
1const ft=new m.OlP("MatPrefix"),tn=new m.OlP("MatSuffix");let _n=(()=>{class ${}return $.\u0275fac=function(K){return new(K||$)},$.\u0275dir=m.lG2({type:$,selectors:[["","matSuffix",""]],features:[m._Bn([{provide:tn,useExisting:$}])]}),$})(),bn=0;const vi=(0,k.pj)(class{constructor($){this._elementRef=$}},"primary"),Vn=new m.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Rn=new m.OlP("MatFormField");let Ve=(()=>{class $ extends vi{constructor(K,ae,Me,nt,Tt,Zt,Yt){super(K),this._changeDetectorRef=ae,this._dir=Me,this._defaults=nt,this._platform=Tt,this._ngZone=Zt,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new C.x,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+bn++,this._labelId="mat-form-field-label-"+bn++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==Yt,this.appearance=nt&&nt.appearance?nt.appearance:"legacy",this._hideRequiredMarker=!(!nt||null==nt.hideRequiredMarker)&&nt.hideRequiredMarker}get appearance(){return this._appearance}set appearance(K){const ae=this._appearance;this._appearance=K||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&ae!==K&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(K){this._hideRequiredMarker=(0,v.Ig)(K)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(K){this._hintLabel=K,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(K){K!==this._floatLabel&&(this._floatLabel=K||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(K){this._explicitFormFieldControl=K}
1getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const K=this._control;K.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${K.controlType}`),K.stateChanges.pipe((0,_e.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),K.ngControl&&K.ngControl.valueChanges&&K.ngControl.valueChanges.pipe((0,re.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,re.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,q.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,_e.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,_e.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,re.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(K){const ae=this._control?this._control.ngControl:null;return ae&&ae[K]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,te.R)(this._label.nativeElement,"transitionend").pipe((0,we.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let K=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&K.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const ae=this._hintChildren?this._hintChildren.find(nt=>"start"===nt.align):null,Me=this._hintChildren?this._hintChildren.find(nt=>"end"===nt.align):null;ae?K.push(ae.id):this._hintLabel&&K.push(this._hintLabelId),Me&&K.push(Me.id)}else this._errorChildren&&K.push(...this._errorChildren.map(ae=>ae.id));this._control.setDescribedByIds(K)}}_validateControlChild(){}updateOutlineGap(){const K=this._label?this._label.nativeElement:null,ae=this._connectionContainerRef.nativeElement,Me=".mat-form-field-outline-start",nt=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!K||!K.children.length||!K.textContent.trim()){const Cn=ae.querySelectorAll(`${Me}, ${nt}`);for(let Nn=0;Nn<Cn.length;Nn++)Cn[Nn].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let Tt=0,Zt=0;const Yt=ae.querySelectorAll(Me),Pn=ae.querySelectorAll(nt);if(this._label&&this._label.nativeElement.children.length){const Cn=ae.getBoundingClientRect();if(0===Cn.width&&0===Cn.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const Nn=this._getStartEnd(Cn),Si=K.children,ni=this._getStartEnd(Si[0].getBoundingClientRect());let Qn=0;for(let lt=0;lt<Si.length;lt++)Qn+=Si[lt].offsetWidth;Tt=Math.abs(ni-Nn)-5,Zt=Qn>0?.75*Qn+10:0}for(let Cn=0;Cn<Yt.length;Cn++)Yt[Cn].style.width=`${Tt}px`;for(let Cn=0;Cn<Pn.length;Cn++)Pn[Cn].style.width=`${Zt}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(K){return this._dir&&"rtl"===this._dir.value?K.right:K.left}_isAttachedToDOM(){const K=this._elementRef.nativeElement;if(K.getRootNode){const ae=K.getRootNode();return ae&&ae!==K}return document.documentElement.contains(K)}}return $.\u0275fac=function(K){return new(K||$)(m.Y36(m.SBq),m.Y36(m.sBO),m.Y36(Ze.Is,8),m.Y36(Vn,8),m.Y36(Ye.t4),m.Y36(m.R0b),m.Y36(ke.Qb,8))},$.\u0275cmp=m.Xpm({type:$,selectors:[["mat-form-field"]],contentQueries:function(K,ae,Me){if(1&K&&(m.Suo(Me,Dn,5),m.Suo(Me,Dn,7),m.Suo(Me,st,5),m.Suo(Me,st,7),m.Suo(Me,vt,5),m.Suo(Me,Wn,5),m.Suo(Me,At,5),m.Suo(Me,ft,5),m.Suo(Me,t
1n,5)),2&K){let nt;m.iGM(nt=m.CRH())&&(ae._controlNonStatic=nt.first),m.iGM(nt=m.CRH())&&(ae._controlStatic=nt.first),m.iGM(nt=m.CRH())&&(ae._labelChildNonStatic=nt.first),m.iGM(nt=m.CRH())&&(ae._labelChildStatic=nt.first),m.iGM(nt=m.CRH())&&(ae._placeholderChild=nt.first),m.iGM(nt=m.CRH())&&(ae._errorChildren=nt),m.iGM(nt=m.CRH())&&(ae._hintChildren=nt),m.iGM(nt=m.CRH())&&(ae._prefixChildren=nt),m.iGM(nt=m.CRH())&&(ae._suffixChildren=nt)}},viewQuery:function(K,ae){if(1&K&&(m.Gf($e,7),m.Gf(Te,5),m.Gf(rt,5)),2&K){let Me;m.iGM(Me=m.CRH())&&(ae._connectionContainerRef=Me.first),m.iGM(Me=m.CRH())&&(ae._inputContainerRef=Me.first),m.iGM(Me=m.CRH())&&(ae._label=Me.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(K,ae){2&K&&m.ekj("mat-form-field-appearance-standard","standard"==ae.appearance)("mat-form-field-appearance-fill","fill"==ae.appearance)("mat-form-field-appearance-outline","outline"==ae.appearance)("mat-form-field-appearance-legacy","legacy"==ae.appearance)("mat-form-field-invalid",ae._control.errorState)("mat-form-field-can-float",ae._canLabelFloat())("mat-form-field-should-float",ae._shouldLabelFloat())("mat-form-field-has-label",ae._hasFloatingLabel())("mat-form-field-hide-placeholder",ae._hideControlPlaceholder())("mat-form-field-disabled",ae._control.disabled)("mat-form-field-autofilled",ae._control.autofilled)("mat-focused",ae._control.focused)("ng-untouched",ae._shouldForward("untouched"))("ng-touched",ae._shouldForward("touched"))("ng-pristine",ae._shouldForward("pristine"))("ng-dirty",ae._shouldForward("dirty"))("ng-valid",ae._shouldForward("valid"))("ng-invalid",ae._shouldForward("invalid"))("ng-pending",ae._shouldForward("pending"))("_mat-animation-noopable",!ae._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[m._Bn([{provide:Rn,useExisting:$}]),m.qOj],ngContentSelectors:jn,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(K,ae){1&K&&(m.F$t(mn),m.TgZ(0,"div",0)(1,"div",1,2),m.NdJ("click",function(nt){return ae._control.onContainerClick&&ae._control.onContainerClick(nt)}),m.YNc(3,je,9,0,"ng-container",3),m.YNc(4,zt,2,1,"div",4),m.TgZ(5,"div",5,6),m.Hsn(7),m.TgZ(8,"span",7),m.YNc(9,tt,5,16,"label",8),m.qZA()(),m.YNc(10,Fe,2,0,"div",9),m.qZA(),m.YNc(11,me,2,4,"div",10),m.TgZ(12,"div",11),m.YNc(13,gt,2,1,"div",12),m.YNc(14,pn,5,2,"div",13),m.qZA()()),2&K&&(m.xp6(3),m.Q6J("ngIf","outline"==ae.appearance),m.xp6(1),m.Q6J("ngIf",ae._prefixChildren.length),m.xp6(5),m.Q6J("ngIf",ae._hasFloatingLabel()),m.xp6(1),m.Q6J("ngIf",ae._suffixChildren.length),m.xp6(1),m.Q6J("ngIf","outline"!=ae.appearance),m.xp6(1),m.Q6J("ngSwitch",ae._getDisplayedMessages()),m.xp6(1),m.Q6J("ngSwitchCase","error"),m.xp6(1),m.Q6J("ngSwitchCase","hint"))}
1,directives:[s.O5,h.wD,s.RF,s.n9],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}
1.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}
1.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[Bn.transitionMessages]},changeDetection:0}),$})(),Pt=(()=>{class ${}return $.\u0275fac=function(K){return new(K||$)},$.\u0275mod=m.oAB({type:$}),$.\u0275inj=m.cJS({imports:[[s.ez,k.BQ,h.Q8],k.BQ]}),$})()},5245:(_t,Ue,b)=>{"use strict";b.d(Ue,{Hw:()=>Dt,Ps:()=>Mt});var h=b(5e3),s=b(508),m=b(3191),k=b(9808),v=b(9646),C=b(2843),q=b(4128),te=b(727),_e=b(8505),re=b(4004),we=b(262),be=b(8746),ke=b(3099),Ze=b(5698),Ye=b(520),$e=b(6097);const Te=["*"];let rt;function zt(it){var At;return(null===(At=function je(){if(void 0===rt&&(rt=null,"undefined"!=typeof window)){const it=window;void 0!==it.trustedTypes&&(rt=it.trustedTypes.createPolicy("angular#components",{createHTML:At=>At}))}return rt}())||void 0===At?void 0:At.createHTML(it))||it}function ut(it){return Error(`Unable to find icon with the name "${it}"`)}function Re(it){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${it}".`)}function tt(it){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${it}".`)}class Fe{constructor(At,ct,st){this.url=At,this.svgText=ct,this.options=st}}let me=(()=>{class it{constructor(ct,st,vt,ft){this._httpClient=ct,this._sanitizer=st,this._errorHandler=ft,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClasse
1sByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=vt}addSvgIcon(ct,st,vt){return this.addSvgIconInNamespace("",ct,st,vt)}addSvgIconLiteral(ct,st,vt){return this.addSvgIconLiteralInNamespace("",ct,st,vt)}addSvgIconInNamespace(ct,st,vt,ft){return this._addSvgIconConfig(ct,st,new Fe(vt,null,ft))}addSvgIconResolver(ct){return this._resolvers.push(ct),this}addSvgIconLiteralInNamespace(ct,st,vt,ft){const Ut=this._sanitizer.sanitize(h.q3G.HTML,vt);if(!Ut)throw tt(vt);const tn=zt(Ut);return this._addSvgIconConfig(ct,st,new Fe("",tn,ft))}addSvgIconSet(ct,st){return this.addSvgIconSetInNamespace("",ct,st)}addSvgIconSetLiteral(ct,st){return this.addSvgIconSetLiteralInNamespace("",ct,st)}addSvgIconSetInNamespace(ct,st,vt){return this._addSvgIconSetConfig(ct,new Fe(st,null,vt))}addSvgIconSetLiteralInNamespace(ct,st,vt){const ft=this._sanitizer.sanitize(h.q3G.HTML,st);if(!ft)throw tt(st);const Ut=zt(ft);return this._addSvgIconSetConfig(ct,new Fe("",Ut,vt))}registerFontClassAlias(ct,st=ct){return this._fontCssClassesByAlias.set(ct,st),this}classNameForFontAlias(ct){return this._fontCssClassesByAlias.get(ct)||ct}setDefaultFontSetClass(ct){return this._defaultFontSetClass=ct,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(ct){const st=this._sanitizer.sanitize(h.q3G.RESOURCE_URL,ct);if(!st)throw Re(ct);const vt=this._cachedIconsByUrl.get(st);return vt?(0,v.of)(pn(vt)):this._loadSvgIconFromConfig(new Fe(ct,null)).pipe((0,_e.b)(ft=>this._cachedIconsByUrl.set(st,ft)),(0,re.U)(ft=>pn(ft)))}getNamedSvgIcon(ct,st=""){const vt=mn(st,ct);let ft=this._svgIconConfigs.get(vt);if(ft)return this._getSvgFromConfig(ft);if(ft=this._getIconConfigFromResolvers(st,ct),ft)return this._svgIconConfigs.set(vt,ft),this._getSvgFromConfig(ft);const Ut=this._iconSetConfigs.get(st);return Ut?this._getSvgFromIconSetConfigs(ct,Ut):(0,C._)(ut(vt))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(ct){return ct.svgText?(0,v.of)(pn(this._svgElementFromConfig(ct))):this._loadSvgIconFromConfig(ct).pipe((0,re.U)(st=>pn(st)))}_getSvgFromIconSetConfigs(ct,st){const vt=this._extractIconWithNameFromAnySet(ct,st);if(vt)return(0,v.of)(vt);const ft=st.filter(Ut=>!Ut.svgText).map(Ut=>this._loadSvgIconSetFromConfig(Ut).pipe((0,we.K)(tn=>{const bn=`Loading icon set URL: ${this._sanitizer.sanitize(h.q3G.RESOURCE_URL,Ut.url)} failed: ${tn.message}`;return this._errorHandler.handleError(new Error(bn)),(0,v.of)(null)})));return(0,q.D)(ft).pipe((0,re.U)(()=>{const Ut=this._extractIconWithNameFromAnySet(ct,st);if(!Ut)throw ut(ct);return Ut}))}_extractIconWithNameFromAnySet(ct,st){for(let vt=st.length-1;vt>=0;vt--){const ft=st[vt];if(ft.svgText&&ft.svgText.toString().indexOf(ct)>-1){const Ut=this._svgElementFromConfig(ft),tn=this._extractSvgIconFromSet(Ut,ct,ft.options);if(tn)return tn}}return null}_loadSvgIconFromConfig(ct){return this._fetchIcon(ct).pipe((0,_e.b)(st=>ct.svgText=st),(0,re.U)(()=>this._svgElementFromConfig(ct)))}_loadSvgIconSetFromConfig(ct){return ct.svgText?(0,v.of)(null):this._fetchIcon(ct).pipe((0,_e.b)(st=>ct.svgText=st))}_extractSvgIconFromSet(ct,st,vt){const ft=ct.querySelector(`[id="${st}"]`);if(!ft)return null;const Ut=ft.cloneNode(!0);if(Ut.removeAttribute("id"),"svg"===Ut.nodeName.toLowerCase())return this._setSvgAttributes(Ut,vt);if("symbol"===Ut.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Ut),vt);const tn=this._svgElementFromString(zt("<svg></svg>"));return tn.appendChild(Ut),this._setSvgAttributes(tn,vt)}_svgElementFromString(ct){const st=this._document.createElement("DIV");st.innerHTML=ct;const vt=st.querySelector("svg");if(!vt)throw Error("<svg> tag not found");return vt}_toSvgElement(ct){const st=this._svgElementFromString(zt("<svg></svg>")),vt=ct.attributes;for(let ft=0;ft<vt.length;ft++){const{name:Ut,value:tn}=vt[ft];"id"!==Ut&&st.setAttribute(Ut,tn)}for(let ft=0;ft<ct.childNodes.length;ft++)ct.childNodes[ft].nodeType===this._document.ELEMENT_NODE&&st.appendChild(ct.childNodes[ft].cloneNode(!0));return st}_setSvgAttributes(ct,st){return ct.setAttribute("fit",""),ct.setAttribute("height","100%"),ct.setAttribute("width","100%"),ct.setAttribute("preserveAspectRatio","xMidYMid meet"),ct.setAttribute("focusable","false"),st&&st.viewBox&&ct.setAttribute("viewBox",st.viewBox),ct}_fetchIcon(ct){var st;const{url:vt,options:ft}=ct,Ut=null!==(st=null==ft?void 0:ft.withCredentials)&&void 0!==st&&st;if(!this._httpClient)throw function ze(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==vt)throw Error(`Cannot fetch icon from URL "${vt}".`);const tn=this._sanitizer.sanitize(h.q3G.RESOURCE_URL,vt);if(!tn)throw Re(vt);const _n=this._inProgressUrlFetches.get(tn);if(_n)return _n;const bn=this._httpClient.get(tn,{responseType:"text",withCredentials:Ut}
1).pipe((0,re.U)(pi=>zt(pi)),(0,be.x)(()=>this._inProgressUrlFetches.delete(tn)),(0,ke.B)());return this._inProgressUrlFetches.set(tn,bn),bn}_addSvgIconConfig(ct,st,vt){return this._svgIconConfigs.set(mn(ct,st),vt),this}_addSvgIconSetConfig(ct,st){const vt=this._iconSetConfigs.get(ct);return vt?vt.push(st):this._iconSetConfigs.set(ct,[st]),this}_svgElementFromConfig(ct){if(!ct.svgElement){const st=this._svgElementFromString(ct.svgText);this._setSvgAttributes(st,ct.options),ct.svgElement=st}return ct.svgElement}_getIconConfigFromResolvers(ct,st){for(let vt=0;vt<this._resolvers.length;vt++){const ft=this._resolvers[vt](st,ct);if(ft)return jn(ft)?new Fe(ft.url,null,ft.options):new Fe(ft,null)}}}return it.\u0275fac=function(ct){return new(ct||it)(h.LFG(Ye.eN,8),h.LFG($e.H7),h.LFG(k.K0,8),h.LFG(h.qLn))},it.\u0275prov=h.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})();function pn(it){return it.cloneNode(!0)}function mn(it,At){return it+":"+At}function jn(it){return!(!it.url||!it.options)}const en=(0,s.pj)(class{constructor(it){this._elementRef=it}}),Wn=new h.OlP("mat-icon-location",{providedIn:"root",factory:function Mn(){const it=(0,h.f3M)(k.K0),At=it?it.location:null;return{getPathname:()=>At?At.pathname+At.search:""}}}),Bn=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Dn=Bn.map(it=>`[${it}]`).join(", "),vn=/^url\(['"]?#(.*?)['"]?\)$/;let Dt=(()=>{class it extends en{constructor(ct,st,vt,ft,Ut){super(ct),this._iconRegistry=st,this._location=ft,this._errorHandler=Ut,this._inline=!1,this._currentIconFetch=te.w0.EMPTY,vt||ct.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(ct){this._inline=(0,m.Ig)(ct)}get svgIcon(){return this._svgIcon}set svgIcon(ct){ct!==this._svgIcon&&(ct?this._updateSvgIcon(ct):this._svgIcon&&this._clearSvgElement(),this._svgIcon=ct)}get fontSet(){return this._fontSet}set fontSet(ct){const st=this._cleanupFontValue(ct);st!==this._fontSet&&(this._fontSet=st,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(ct){const st=this._cleanupFontValue(ct);st!==this._fontIcon&&(this._fontIcon=st,this._updateFontIconClasses())}_splitIconName(ct){if(!ct)return["",""];const st=ct.split(":");switch(st.length){case 1:return["",st[0]];case 2:return st;default:throw Error(`Invalid icon name: "${ct}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const ct=this._elementsWithExternalReferences;if(ct&&ct.size){const st=this._location.getPathname();st!==this._previousPath&&(this._previousPath=st,this._prependPathToReferences(st))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(ct){this._clearSvgElement();const st=this._location.getPathname();this._previousPath=st,this._cacheChildrenWithExternalReferences(ct),this._prependPathToReferences(st),this._elementRef.nativeElement.appendChild(ct)}_clearSvgElement(){const ct=this._elementRef.nativeElement;let st=ct.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();st--;){const vt=ct.childNodes[st];(1!==vt.nodeType||"svg"===vt.nodeName.toLowerCase())&&vt.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const ct=this._elementRef.nativeElement,st=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();st!=this._previousFontSetClass&&(this._previousFontSetClass&&ct.classList.remove(this._previousFontSetClass),st&&ct.classList.add(st),this._previousFontSetClass=st),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&ct.classList.remove(this._previousFontIconClass),this.fontIcon&&ct.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(ct){return"string"==typeof ct?ct.trim().split(" ")[0]:ct}_prependPathToReferences(ct){const st=this._elementsWithExternalReferences;st&&st.forEach((vt,ft)=>{vt.forEach(Ut=>{ft.setAttribute(Ut.name,`url('${ct}#${Ut.value}')`)})})}_cacheChildrenWithExternalReferences(ct){const st=ct.querySelectorAll(Dn),vt=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let ft=0;ft<st.length;ft++)Bn.forEach(Ut=>{const tn=st[ft],_n=tn.getAttribute(Ut),bn=_n?_n.match(vn):null;if(bn){let pi=vt.get(tn);pi||(pi=[],vt.set(tn,pi)),pi.push({name:Ut,value:bn[1]})}})}_updateSvgIcon(ct){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),ct){const[st,vt]=this._splitIconName(ct);st&&(this._svgNamespace=st),vt&&(this._svgName=vt),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(vt,st).pipe((0,Ze.q)(1)).subscribe(ft=>this._setSvgElement(ft),ft=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${st}:${vt}! ${ft.message}`))})}}}return it.\u0275fac=function(ct){return new(ct||it)(h.Y36(h.SBq),h.Y36(me),h.$8M("aria-hidden"),h.Y36(Wn),h.Y36(h.qLn))},it.\u0275cmp=h.Xpm({type:it,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(ct,st){2&ct&&(h.uIk("data-mat-icon-type",st._usingFontIcon()?"font":"svg")("data-mat-icon-name",st._svgName||st.fontIcon)("data-mat-icon-namespace",st._svgNamespace||st.fontSet),h.ekj("mat-icon-inline",st.inline)("mat-icon-no-color","primary"!==st.color&&"accent"!==st.color&&"warn"!==st.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[h.qOj],ngContentSelectors:Te,decls:1,vars:0,template:function(ct,st){1&ct&&(h.F$t(),h.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),it})(),Mt=(()=>{class it{}return it.\u0275fac=function(ct){return new(ct||it)},it.\u0275mod=h.oAB({type:it}
1),it.\u0275inj=h.cJS({imports:[[s.BQ],s.BQ]}),it})()},7531:(_t,Ue,b)=>{"use strict";b.d(Ue,{Jk:()=>Ye,Nt:()=>je,c:()=>zt});var h=b(3191),s=b(925),m=b(5e3),k=b(3075),v=b(508),C=b(3489),q=b(7579),te=b(515);const _e=(0,s.i$)({passive:!0});let re=(()=>{class ut{constructor(Re,tt){this._platform=Re,this._ngZone=tt,this._monitoredElements=new Map}monitor(Re){if(!this._platform.isBrowser)return te.E;const tt=(0,h.fI)(Re),Fe=this._monitoredElements.get(tt);if(Fe)return Fe.subject;const me=new q.x,gt="cdk-text-field-autofilled",Bt=pn=>{"cdk-text-field-autofill-start"!==pn.animationName||tt.classList.contains(gt)?"cdk-text-field-autofill-end"===pn.animationName&&tt.classList.contains(gt)&&(tt.classList.remove(gt),this._ngZone.run(()=>me.next({target:pn.target,isAutofilled:!1}))):(tt.classList.add(gt),this._ngZone.run(()=>me.next({target:pn.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{tt.addEventListener("animationstart",Bt,_e),tt.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(tt,{subject:me,unlisten:()=>{tt.removeEventListener("animationstart",Bt,_e)}}),me}stopMonitoring(Re){const tt=(0,h.fI)(Re),Fe=this._monitoredElements.get(tt);Fe&&(Fe.unlisten(),Fe.subject.complete(),tt.classList.remove("cdk-text-field-autofill-monitored"),tt.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(tt))}ngOnDestroy(){this._monitoredElements.forEach((Re,tt)=>this.stopMonitoring(tt))}}return ut.\u0275fac=function(Re){return new(Re||ut)(m.LFG(s.t4),m.LFG(m.R0b))},ut.\u0275prov=m.Yz7({token:ut,factory:ut.\u0275fac,providedIn:"root"}),ut})(),ke=(()=>{class ut{}return ut.\u0275fac=function(Re){return new(Re||ut)},ut.\u0275mod=m.oAB({type:ut}),ut.\u0275inj=m.cJS({}),ut})();const Ye=new m.OlP("MAT_INPUT_VALUE_ACCESSOR"),$e=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Te=0;const rt=(0,v.FD)(class{constructor(ut,ze,Re,tt){this._defaultErrorStateMatcher=ut,this._parentForm=ze,this._parentFormGroup=Re,this.ngControl=tt}});let je=(()=>{class ut extends rt{constructor(Re,tt,Fe,me,gt,Bt,pn,mn,jn,en){super(Bt,me,gt,Fe),this._elementRef=Re,this._platform=tt,this._autofillMonitor=mn,this._formField=en,this._uid="mat-input-"+Te++,this.focused=!1,this.stateChanges=new q.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(
1Bn=>(0,s.qK)().has(Bn)),this._iOSKeyupListener=Bn=>{const Dn=Bn.target;!Dn.value&&0===Dn.selectionStart&&0===Dn.selectionEnd&&(Dn.setSelectionRange(1,1),Dn.setSelectionRange(0,0))};const Wn=this._elementRef.nativeElement,Mn=Wn.nodeName.toLowerCase();this._inputValueAccessor=pn||Wn,this._previousNativeValue=this.value,this.id=this.id,tt.IOS&&jn.runOutsideAngular(()=>{Re.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===Mn,this._isTextarea="textarea"===Mn,this._isInFormField=!!en,this._isNativeSelect&&(this.controlType=Wn.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(Re){this._disabled=(0,h.Ig)(Re),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(Re){this._id=Re||this._uid}get required(){var Re,tt,Fe,me;return null!==(me=null!==(Re=this._required)&&void 0!==Re?Re:null===(Fe=null===(tt=this.ngControl)||void 0===tt?void 0:tt.control)||void 0===Fe?void 0:Fe.hasValidator(k.kI.required))&&void 0!==me&&me}set required(Re){this._required=(0,h.Ig)(Re)}get type(){return this._type}set type(Re){this._type=Re||"text",this._validateType(),!this._isTextarea&&(0,s.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(Re){Re!==this.value&&(this._inputValueAccessor.value=Re,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(Re){this._readonly=(0,h.Ig)(Re)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(Re=>{this.autofilled=Re.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(Re){this._elementRef.nativeElement.focus(Re)}_focusChanged(Re){Re!==this.focused&&(this.focused=Re,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var Re,tt;const Fe=(null===(tt=null===(Re=this._formField)||void 0===Re?void 0:Re._hideControlPlaceholder)||void 0===tt?void 0:tt.call(Re))?null:this.placeholder;if(Fe!==this._previousPlaceholder){const me=this._elementRef.nativeElement;this._previousPlaceholder=Fe,Fe?me.setAttribute("placeholder",Fe):me.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const Re=this._elementRef.nativeElement.value;this._previousNativeValue!==Re&&(this._previousNativeValue=Re,this.stateChanges.next())}_validateType(){$e.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let Re=this._elementRef.nativeElement.validity;return Re&&Re.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const Re=this._elementRef.nativeElement,tt=Re.options[0];return this.focused||Re.multiple||!this.empty||!!(Re.selectedIndex>-1&&tt&&tt.label)}return this.focused||!this.empty}setDescribedByIds(Re){Re.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Re.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const Re=this._elementRef.nativeElement;return this._isNativeSelect&&(Re.multiple||Re.size>1)}}return ut.\u0275fac=function(Re){return new(Re||ut)(m.Y36(m.SBq),m.Y36(s.t4),m.Y36(k.a5,10),m.Y36(k.F,8),m.Y36(k.sg,8),m.Y36(v.rD),m.Y36(Ye,10),m.Y36(re),m.Y36(m.R0b),m.Y36(C.G_,8))},ut.\u0275dir=m.lG2({type:ut,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(Re,tt){1&Re&&m.NdJ("focus",function(){return tt._focusChanged(!0)})("blur",function(){return tt._focusChanged(!1)})("input",function(){return tt._onInput()}),2&Re&&(m.Ikx("disabled",tt.disabled)("required",tt.required),m.uIk("id",tt.id)("data-placeholder",tt.placeholder)("name",tt.name||null)("readonly",tt.readonly&&!tt._isNativeSelect||null)("aria-invalid",tt.empty&&tt.required?null:tt.errorState)("aria-required",tt.required),m.ekj("mat-input-server",tt._isServer)("mat-native-select-inline",tt._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[m._Bn([{provide:C.Eo,useExisting:ut}]),m.qOj,m.TTD]}),ut})(),zt=(()=>{class ut{}return ut.\u0275fac=function(Re){return new(Re||ut)},ut.\u0275mod=m.oAB({type:ut}),ut.\u0275inj=m.cJS({providers:[v.rD],imports:[[ke,C.lN,v.BQ],ke,C.lN]}),ut})()},9814:(_t,Ue,b)=>{"use strict";b.d(Ue,{Fk:()=>Re,U0:()=>ze,VQ:()=>rt});var h=b(5e3),s=b(508),m=b(3191),k=b(3075),v=b(6360),C=b(5664),q=b(449);const te=["input"],_e=function(tt){return{enterDuration:tt}},re=["*"],we=new h.OlP("mat-radio-default-options",{providedIn:"root",factory:function be(){return{color:"accent"}}});let ke=0;const Ze={provide:k.JU,useExisting:(0,h.Gpc)(()=>rt),multi:!0};class Ye{constructor(Fe,me){this.source=Fe,this.value=me}}const $e=new h.OlP("MatRadioGroup");let Te=(()=>{class tt{constructor(me){this._changeDetector=me,this._value=null,this._name="mat-radio-group-"+ke++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new h.vpe}get name(){return this._name}set name(me){this._name=me,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(me){this._labelPosition="before"===me?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(me){this._value!==me&&(this._value=me,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(me){this._selected=me,this.value=me?me.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(me){this._disabled=(0,m.Ig)(me),this._markRadiosForCheck()}get required(){return this._required}set required(me){this._required=(0,m.Ig)(me),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(me=>{me.name=this.name,me._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(gt=>{gt.checked=this.value===gt.value,gt.checked&&(this._selected=gt)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new Ye(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(me=>me._markForCheck())}writeValue(me){this.value=me,this._changeDetector.markForCheck()}registerOnChange(me){this._controlValueAccessorChangeFn=me}registerOnTouched(me){this.onTouched=me}setDisabledState(me){this.disabled=me,this._changeDetector.markForCheck()}}return tt.\u0275fac=function(me){return new(me||tt)(h.Y36(h.sBO))},tt.\u0275dir=h.lG2({type:tt,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),tt})(),rt=(()=>{class tt extends Te{}return tt.\u0275fac=function(){let Fe;return function(gt){return(Fe||(Fe=h.n5z(tt)))(gt||tt)}}(),tt.\u0275dir=h.lG2({type:tt,selectors:[["mat-radio-group"]],contentQueries:function(me,gt,Bt){if(1&me&&h.Suo(Bt,ze,5),2&me){let pn;h.iGM(pn=h.CRH())&&(gt._radios=pn)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[h._Bn([Ze,{provide:$e,useExisting:tt}]),h.qOj]}),tt})();
1class je{constructor(Fe){this._elementRef=Fe}}const zt=(0,s.Kr)((0,s.sb)(je));let ut=(()=>{class tt extends zt{constructor(me,gt,Bt,pn,mn,jn,en,Wn){super(gt),this._changeDetector=Bt,this._focusMonitor=pn,this._radioDispatcher=mn,this._providerOverride=en,this._uniqueId="mat-radio-"+ ++ke,this.id=this._uniqueId,this.change=new h.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=me,this._noopAnimations="NoopAnimations"===jn,Wn&&(this.tabIndex=(0,m.su)(Wn,0)),this._removeUniqueSelectionListener=mn.listen((Mn,Bn)=>{Mn!==this.id&&Bn===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(me){const gt=(0,m.Ig)(me);this._checked!==gt&&(this._checked=gt,gt&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!gt&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),gt&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(me){this._value!==me&&(this._value=me,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===me),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(me){this._labelPosition=me}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(me){this._setDisabled((0,m.Ig)(me))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(me){this._required=(0,m.Ig)(me)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(me){this._color=me}get inputId(){return`${this.id||this._uniqueId}-input`}focus(me,gt){gt?this._focusMonitor.focusVia(this._inputElement,gt,me):this._inputElement.nativeElement.focus(me)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(me=>{!me&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new Ye(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(me){me.stopPropagation()}_onInputInteraction(me){if(me.stopPropagation(),!this.checked&&!this.disabled){const gt=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),gt&&this.radioGroup._emitChangeEvent())}}_setDisabled(me){this._disabled!==me&&(this._disabled=me,this._changeDetector.markForCheck())}_updateTabIndex(){var me;const gt=this.radioGroup;let Bt;if(Bt=gt&>.selected&&!this.disabled?gt.selected===this?this.tabIndex:-1:this.tabIndex,Bt!==this._previousTabIndex){const pn=null===(me=this._inputElement)||void 0===me?void 0:me.nativeElement;pn&&(pn.setAttribute("tabindex",Bt+""),this._previousTabIndex=Bt)}}}return tt.\u0275fac=function(me){h.$Z()},tt.\u0275dir=h.lG2({type:tt,viewQuery:function(me,gt){if(1&me&&h.Gf(te,5),2&me){let Bt;h.iGM(Bt=h.CRH())&&(gt._inputElement=Bt.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[h.qOj]}),tt})(),ze=(()=>{class tt extends ut{constructor(me,gt,Bt,pn,mn,jn,en,Wn){super(me,gt,Bt,pn,mn,jn,en,Wn)}}return tt.\u0275fac=function(me){return new(me||tt)(h.Y36($e,8),h.Y36(h.SBq),h.Y36(h.sBO),h.Y36(C.tE),h.Y36(q.A8),h.Y36(v.Qb,8),h.Y36(we,8),h.$8M("tabindex"))},tt.\u0275cmp=h.Xpm({type:tt,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(me,gt){1&me&&h.NdJ("focus",function(){return gt._inputElement.nativeElement.focus()}),2&me&&(h.uIk("tabindex",null)("id",gt.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),h.ekj("mat-radio-checked",gt.checked)("mat-radio-disabled",gt.disabled)("_mat-animation-noopable",gt._noopAnimations)("mat-primary","primary"===gt.color)("mat-accent","accent"===gt.color)("mat-warn","warn"===gt.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[h.qOj],ngContentSelectors:re,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(me,gt){if(1&me&&(h.F$t(),h.TgZ(0,"label",0,1)(2,"span",2),h._UZ(3,"span",3)(4,"span",4),h.TgZ(5,"input",5,6),h.NdJ("change",function(pn){return gt._onInputInteraction(pn)})("click",function(pn){return gt._onInputClick(pn)}),h.qZA(),h.TgZ(7,"span",7),h._UZ(8,"span",8),h.qZA()(),h.TgZ(9,"span",9)(10,"span",10),h._uU(11,"\xa0"),h.qZA(),h.Hsn(12),h.qZA()()),2&me){const Bt=h.MAs(1);h.uIk("for",gt.inputId),h.xp6(5),h.Q6J("id",gt.inputId)("checked",gt.checked)("disabled",gt.disabled)("required",gt.required),h.uIk("name",gt.name)("value",gt.value)("aria-label",gt.ariaLabel)("aria-labelledby",gt.ariaLabelledby)("aria-describedby",gt.ariaDescribedby),h.xp6(2),h.Q6J("matRippleTrigger",Bt)("matRippleDisabled",gt._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",h.VKq(17,_e,gt._noopAnimations?0:150)),h.xp6(2),h.ekj("mat-radio-label-before","before"==gt.labelPosition)}},directives:[s.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;
1left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),tt})(),Re=(()=>{class tt{}return tt.\u0275fac=function(me){return new(me||tt)},tt.\u0275mod=h.oAB({type:tt}),tt.\u0275inj=h.cJS({imports:[[s.si,s.BQ],s.BQ]}),tt})()},4107:(_t,Ue,b)=>{"use strict";b.d(Ue,{LD:()=>Rn,gD:()=>Vn});var h=b(9776),s=b(9808),m=b(5e3),k=b(508),v=b(3489),C=b(8962),q=b(5664),te=b(3191),_e=b(449),re=b(1159),we=b(3075),be=b(7579),ke=b(9770),Ze=b(6451),Ye=b(8675),$e=b(3900),Te=b(5698),rt=b(9300),je=b(4004),zt=b(1884),ut=b(2722),ze=b(1777),Re=b(226);const tt=["trigger"],Fe=["panel"];function me(Ve,Pt){if(1&Ve&&(m.TgZ(0,"span",8),m._uU(1),m.qZA()),2&Ve){const $=m.oxw();m.xp6(1),m.Oqu($.placeholder)}}function gt(Ve,Pt){if(1&Ve&&(m.TgZ(0,"span",12),m._uU(1),m.qZA()),2&Ve){const $=m.oxw(2);m.xp6(1),m.Oqu($.triggerValue)}}function Bt(Ve,Pt){1&Ve&&m.Hsn(0,0,["*ngSwitchCase","true"])}function pn(Ve,Pt){if(1&Ve&&(m.TgZ(0,"span",9),m.YNc(1,gt,2,1,"span",10),m.YNc(2,Bt,1,0,"ng-content",11),m.qZA()),2&Ve){const $=m.oxw();m.Q6J("ngSwitch",!!$.customTrigger),m.xp6(2),m.Q6J("ngSwitchCase",!0)}}function mn(Ve,Pt){if(1&Ve){const $=m.EpF();m.TgZ(0,"div",13)(1,"div",14,15),m.NdJ("@transformPanel.done",function(K){return m.CHM($),m.oxw()._panelDoneAnimatingStream.next(K.toState)})("keydown",function(K){return m.CHM($),m.oxw()._handleKeydown(K)}),m.Hsn(3,1),m.qZA()()}if(2&Ve){const $=m.oxw();m.Q6J("@transformPanelWrap",void 0),m.xp6(1),m.Gre("mat-select-panel ",$._getPanelTheme(),""),m.Udp("transform-origin",$._transformOrigin)("font-size",$._triggerFontSize,"px"),m.Q6J("ngClass",$.panelClass)("@transformPanel",$.multiple?"showing-multiple":"showing"),m.uIk("id",$.id+"-panel")("aria-multiselectable",$.multiple)("aria-label",$.ariaLabel||null)("aria-labelledby",$._getPanelAriaLabelledby())}}const jn=[[["mat-select-trigger"]],"*"],en=["mat-select-trigger","*"],Wn={transformPanelWrap:(0,ze.X$)("transformPanelWrap",[(0,ze.eR)("* => void",(0,ze.IO)("@transformPanel",[(0,ze.pV)()],{optional:!0}))]),transformPanel:(0,ze.X$)("transformPanel",[(0,ze.SB)("void",(0,ze.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0}
1)),(0,ze.SB)("showing",(0,ze.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,ze.SB)("showing-multiple",(0,ze.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,ze.eR)("void => *",(0,ze.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,ze.eR)("* => void",(0,ze.jt)("100ms 25ms linear",(0,ze.oB)({opacity:0})))])};let vn=0;const vt=new m.OlP("mat-select-scroll-strategy"),Ut=new m.OlP("MAT_SELECT_CONFIG"),tn={provide:vt,deps:[h.aV],useFactory:function ft(Ve){return()=>Ve.scrollStrategies.reposition()}};class _n{constructor(Pt,$){this.source=Pt,this.value=$}}const bn=(0,k.Kr)((0,k.sb)((0,k.Id)((0,k.FD)(class{constructor(Ve,Pt,$,ue,K){this._elementRef=Ve,this._defaultErrorStateMatcher=Pt,this._parentForm=$,this._parentFormGroup=ue,this.ngControl=K}})))),pi=new m.OlP("MatSelectTrigger");let vi=(()=>{class Ve extends bn{constructor($,ue,K,ae,Me,nt,Tt,Zt,Yt,Pn,Cn,Nn,Si,ni){var Qn,lt,Qt;super(Me,ae,Tt,Zt,Pn),this._viewportRuler=$,this._changeDetectorRef=ue,this._ngZone=K,this._dir=nt,this._parentFormField=Yt,this._liveAnnouncer=Si,this._defaultOptions=ni,this._panelOpen=!1,this._compareWith=(Se,Ke)=>Se===Ke,this._uid="mat-select-"+vn++,this._triggerAriaLabelledBy=null,this._destroy=new be.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+vn++,this._panelDoneAnimatingStream=new be.x,this._overlayPanelClass=(null===(Qn=this._defaultOptions)||void 0===Qn?void 0:Qn.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(Qt=null===(lt=this._defaultOptions)||void 0===lt?void 0:lt.disableOptionCentering)&&void 0!==Qt&&Qt,this.ariaLabel="",this.optionSelectionChanges=(0,ke.P)(()=>{const Se=this.options;return Se?Se.changes.pipe((0,Ye.O)(Se),(0,$e.w)(()=>(0,Ze.T)(...Se.map(Ke=>Ke.onSelectionChange)))):this._ngZone.onStable.pipe((0,Te.q)(1),(0,$e.w)(()=>this.optionSelectionChanges))}),this.openedChange=new m.vpe,this._openedStream=this.openedChange.pipe((0,rt.h)(Se=>Se),(0,je.U)(()=>{}
1)),this._closedStream=this.openedChange.pipe((0,rt.h)(Se=>!Se),(0,je.U)(()=>{})),this.selectionChange=new m.vpe,this.valueChange=new m.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==ni?void 0:ni.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=ni.typeaheadDebounceInterval),this._scrollStrategyFactory=Nn,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Cn)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder($){this._placeholder=$,this.stateChanges.next()}get required(){var $,ue,K,ae;return null!==(ae=null!==($=this._required)&&void 0!==$?$:null===(K=null===(ue=this.ngControl)||void 0===ue?void 0:ue.control)||void 0===K?void 0:K.hasValidator(we.kI.required))&&void 0!==ae&&ae}set required($){this._required=(0,te.Ig)($),this.stateChanges.next()}get multiple(){return this._multiple}set multiple($){this._multiple=(0,te.Ig)($)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering($){this._disableOptionCentering=(0,te.Ig)($)}get compareWith(){return this._compareWith}set compareWith($){this._compareWith=$,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value($){this._assignValue($)&&this._onChange($)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval($){this._typeaheadDebounceInterval=(0,te.su)($)}get id(){return this._id}set id($){this._id=$||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new _e.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,zt.x)(),(0,ut.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,ut.R)(this._destroy)).subscribe($=>{$.added.forEach(ue=>ue.select()),$.removed.forEach(ue=>ue.deselect())}),this.options.changes.pipe((0,Ye.O)(null),(0,ut.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const $=this._getTriggerAriaLabelledby(),ue=this.ngControl;if($!==this._triggerAriaLabelledBy){const K=this._elementRef.nativeElement;this._triggerAriaLabelledBy=$,$?K.setAttribute("aria-labelledby",$):K.removeAttribute("aria-labelledby")}ue&&(this._previousControl!==ue.control&&(void 0!==this._previousControl&&null!==ue.disabled&&ue.disabled!==this.disabled&&(this.disabled=ue.disabled),this._previousControl=ue.control),this.updateErrorState())}ngOnChanges($){$.disabled&&this.stateChanges.next(),$.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue($){this._assignValue($)}registerOnChange($){this._onChange=$}registerOnTouched($){this._onTouched=$}setDisabledState($){this.disabled=$,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var $,ue;return this.multiple?(null===($=this._selectionModel)||void 0===$?void 0:$.selected)||[]:null===(ue=this._selectionModel)||void 0===ue?void 0:ue.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const $=this._selectionModel.selected.map(ue=>ue.viewValue);return this._isRtl()&&$.reverse(),$.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown($){this.disabled||(this.panelOpen?this._handleOpenKeydown($):this._handleClosedKeydown($))}_handleClosedKeydown($){const ue=$.keyCode,K=ue===re.JH||ue===re.LH||ue===re.oh||ue===re.SV,ae=ue===re.K5||ue===re.L_,Me=this._keyManager;if(!Me.isTyping()&&ae&&!(0,re.Vb)($)||(this.multiple||$.altKey)&&K)$.preventDefault(),this.open();else if(!this.multiple){const nt=this.selected;Me.onKeydown($);const Tt=this.selected;Tt&&nt!==Tt&&this._liveAnnouncer.announce(Tt.viewValue,1e4)}}_handleOpenKeydown($){const ue=this._keyManager,K=$.keyCode,ae=K===re.JH||K===re.LH,Me=ue.isTyping();if(ae&&$.altKey)$.preventDefault(),this.close();else if(Me||K!==re.K5&&K!==re.L_||!ue.activeItem||(0,re.Vb)($))if(!Me&&this._multiple&&K===re.A&&$.ctrlKey){$.preventDefault();const nt=this.options.some(Tt=>!Tt.disabled&&!Tt.selected);this.options.forEach(Tt=>{Tt.disabled||(nt?Tt.select():Tt.deselect())})}else{const nt=ue.activeItemIndex;ue.onKeydown($),this._multiple&&ae&&$.shiftKey&&ue.activeItem&&ue.activeItemIndex!==nt&&ue.activeItem._selectViaInteraction()}else $.preventDefault(),ue.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,Te.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}
1_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue($){if(this._selectionModel.selected.forEach(ue=>ue.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&$)Array.isArray($),$.forEach(ue=>this._selectOptionByValue(ue)),this._sortValues();else{const ue=this._selectOptionByValue($);ue?this._keyManager.updateActiveItem(ue):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue($){const ue=this.options.find(K=>{if(this._selectionModel.isSelected(K))return!1;try{return null!=K.value&&this._compareWith(K.value,$)}catch(ae){return!1}});return ue&&this._selectionModel.select(ue),ue}_assignValue($){return!!($!==this._value||this._multiple&&Array.isArray($))&&(this.options&&this._setSelectionByValue($),this._value=$,!0)}_initKeyManager(){this._keyManager=new q.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,ut.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,ut.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const $=(0,Ze.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,ut.R)($)).subscribe(ue=>{this._onSelect(ue.source,ue.isUserInput),ue.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,Ze.T)(...this.options.map(ue=>ue._stateChanges)).pipe((0,ut.R)($)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect($,ue){const K=this._selectionModel.isSelected($);null!=$.value||this._multiple?(K!==$.selected&&($.selected?this._selectionModel.select($):this._selectionModel.deselect($)),ue&&this._keyManager.setActiveItem($),this.multiple&&(this._sortValues(),ue&&this.focus())):($.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges($.value)),K!==this._selectionModel.isSelected($)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const $=this.options.toArray();this._selectionModel.sort((ue,K)=>this.sortComparator?this.sortComparator(ue,K,$):$.indexOf(ue)-$.indexOf(K)),this.stateChanges.next()}}_propagateChanges($){let ue=null;ue=this.multiple?this.selected.map(K=>K.value):this.selected?this.selected.value:$,this._value=ue,this.valueChange.emit(ue),this._onChange(ue),this.selectionChange.emit(this._getChangeEvent(ue)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var $;return!this._panelOpen&&!this.disabled&&(null===($=this.options)||void 0===$?void 0:$.length)>0}focus($){this._elementRef.nativeElement.focus($)}_getPanelAriaLabelledby(){var $;if(this.ariaLabel)return null;const ue=null===($=this._parentFormField)||void 0===$?void 0:$.getLabelId();return this.ariaLabelledby?(ue?ue+" ":"")+this.ariaLabelledby:ue}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var $;if(this.ariaLabel)return null;const ue=null===($=this._parentFormField)||void 0===$?void 0:$.getLabelId();let K=(ue?ue+" ":"")+this._valueId;return this.ariaLabelledby&&(K+=" "+this.ariaLabelledby),K}_panelDoneAnimating($){this.openedChange.emit($)}setDescribedByIds($){this._ariaDescribedby=$.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Ve.\u0275fac=function($){return new($||Ve)(m.Y36(C.rL),m.Y36(m.sBO),m.Y36(m.R0b),m.Y36(k.rD),m.Y36(m.SBq),m.Y36(Re.Is,8),m.Y36(we.F,8),m.Y36(we.sg,8),m.Y36(v.G_,8),m.Y36(we.a5,10),m.$8M("tabindex"),m.Y36(vt),m.Y36(q.Kd),m.Y36(Ut,8))},Ve.\u0275dir=m.lG2({type:Ve,viewQuery:function($,ue){if(1&$&&(m.Gf(tt,5),m.Gf(Fe,5),m.Gf(h.pI,5)),2&$){let K;m.iGM(K=m.CRH())&&(ue.trigger=K.first),m.iGM(K=m.CRH())&&(ue.panel=K.first),m.iGM(K=m.CRH())&&(ue._overlayDir=K.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[m.qOj,m.TTD]}),Ve})(),Vn=(()=>{class Ve extends vi{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll($,ue,K){const ae=this._getItemHeight();return Math.min(Math.max(0,ae*$-ue+ae/2),K)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,ut.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,Te.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView($){const ue=(0,k.CB)($,this.options,this.optionGroups),K=this._getItemHeight();this.panel.nativeElement.scrollTop=0===$&&1===ue?0:(0,k.jH)(($+ue)*K,K,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating($){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating($)}_getChangeEvent($){return new _n(this,$)}_calculateOverlayOffsetX(){const $=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),ue=this._viewportRuler.getViewportSize(),K=this._isRtl(),ae=this.multiple?56:32;let Me;if(this.multiple)Me=40;else if(this.disableOptionCentering)Me=16;else{let Zt=this._selectionModel.selected[0]||this.options.first;Me=Zt&&Zt.group?32:16}K||(Me*=-1);const nt=0-($.left+Me-(K?ae:0)),Tt=$.right+Me-ue.width+(K?0:ae);nt>0?Me+=nt+8:Tt>0&&(Me-=Tt+8),this._overlayDir.offsetX=Math.round(Me),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY($,ue,K){const ae=this._getItemHeight(),Me=(ae-this._triggerRect.height)/2,nt=Math.floor(256/ae);let Tt;return this.disableOptionCentering?0:(Tt=0===this._scrollTop?$*ae:this._scrollTop===K?($-(this._getItemCount()-nt))*ae+(ae-(this._getItemCount()*ae-256)%ae):ue-ae/2,Math.round(-1*Tt-Me))}_checkOverlayWithinViewport($){const ue=this._getItemHeight(),K=this._viewportRuler.getViewportSize(),ae=this._triggerRect.top-8,Me=K.height-this._triggerRect.bottom-8,nt=Math.abs(this._offsetY),Zt=Math.min(this._getItemCount()*ue,256)-nt-this._triggerRect.height;Zt>Me?this._adjustPanelUp(Zt,Me):nt>ae?this._adjustPanelDown(nt,ae,$):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp($,ue){const K=Math.round($-ue);this._scrollTop-=K,this._offsetY-=K,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown($,ue,K){const ae=Math.round($-ue);if(this._scrollTop+=ae,this._offsetY+=ae,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=K)return this._scrollTop=K,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const $=this._getItemHeight(),ue=this._getItemCount(),K=Math.min(ue*$,256),Me=ue*$-K;let nt;nt=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),nt+=(0,k.CB)(nt,this.options,this.optionGroups);const Tt=K/2;this._scrollTop=this._calculateOverlayScroll(nt,Tt,Me),this._offsetY=this._calculateOverlayOffsetY(nt,Tt,Me),this._checkOverlayWithinViewport(Me)}_getOriginBasedOnOption(){const $=this._getItemHeight(),ue=($-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-ue+$/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Ve.\u0275fac=function(){let Pt;return function(ue){return(Pt||(Pt=m.n5z(Ve)))(ue||Ve)}}(),Ve.\u0275cmp=m.Xpm({type:Ve,selectors:[["mat-select"]],contentQueries:function($,ue,K){if(1&$&&(m.Suo(K,pi,5),m.Suo(K,k.ey,5),m.Suo(K,k.K7,5)),2&$){let ae;m.iGM(ae=m.CRH())&&(ue.customTrigger=ae.first),m.iGM(ae=m.CRH())&&(ue.options=ae),m.iGM(ae=m.CRH())&&(ue.optionGroups=ae)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function($,ue){1&$&&m.NdJ("keydown",function(ae){return ue._handleKeydown(ae)})("focus",function(){return ue._onFocus()})("blur",function(){return ue._onBlur()}),2&$&&(m.uIk("id",ue.id)("tabindex",ue.tabIndex)("aria-controls",ue.panelOpen?ue.id+"-panel":null)("aria-expanded",ue.panelOpen)("aria-label",ue.ariaLabel||null)("aria-required",ue.required.toString())("aria-disabled",ue.disabled.toString())("aria-invalid",ue.errorState)("aria-describedby",ue._ariaDescribedby||null)("aria-activedescendant",ue._getAriaActiveDescendant()),m.ekj("mat-select-disabled",ue.disabled)("mat-select-invalid",ue.errorState)("mat-select-required",ue.required)("mat-select-empty",ue.empty)("mat-select-multiple",ue.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[m._Bn([{provide:v.Eo,useExisting:Ve},{provide:k.HF,useExisting:Ve}]),m.qOj],ngContentSelectors:en,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function($,ue){if(1&$&&(m.F$t(jn),m.TgZ(0,"div",0,1),m.NdJ("click",function(){return ue.toggle(
1)}),m.TgZ(3,"div",2),m.YNc(4,me,2,1,"span",3),m.YNc(5,pn,3,2,"span",4),m.qZA(),m.TgZ(6,"div",5),m._UZ(7,"div",6),m.qZA()(),m.YNc(8,mn,4,14,"ng-template",7),m.NdJ("backdropClick",function(){return ue.close()})("attach",function(){return ue._onAttached()})("detach",function(){return ue.close()})),2&$){const K=m.MAs(1);m.uIk("aria-owns",ue.panelOpen?ue.id+"-panel":null),m.xp6(3),m.Q6J("ngSwitch",ue.empty),m.uIk("id",ue._valueId),m.xp6(1),m.Q6J("ngSwitchCase",!0),m.xp6(1),m.Q6J("ngSwitchCase",!1),m.xp6(3),m.Q6J("cdkConnectedOverlayPanelClass",ue._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",ue._scrollStrategy)("cdkConnectedOverlayOrigin",K)("cdkConnectedOverlayOpen",ue.panelOpen)("cdkConnectedOverlayPositions",ue._positions)("cdkConnectedOverlayMinWidth",null==ue._triggerRect?null:ue._triggerRect.width)("cdkConnectedOverlayOffsetY",ue._offsetY)}},directives:[h.xu,s.RF,s.n9,s.ED,h.pI,s.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}\n'],encapsulation:2,data:{animation:[Wn.transformPanelWrap,Wn.transformPanel]},changeDetection:0}),Ve})(),Rn=(()=>{class Ve{}return Ve.\u0275fac=function($){return new($||Ve)},Ve.\u0275mod=m.oAB({type:Ve}),Ve.\u0275inj=m.cJS({providers:[tn],imports:[[s.ez,h.U8,k.Ng,k.BQ],C.ZD,v.lN,k.Ng,k.BQ]}),Ve})()},2081:(_t,Ue,b)=>{"use strict";b.d(Ue,{C0:()=>Zt,Vq:()=>Nn,T5:()=>Qn,Ic:()=>Si,fd:()=>ni});var h=b(7429),s=b(5664),m=b(3191),k=b(1159),v=b(9808),C=b(5e3),q=b(925),te=b(7579),_e=b(9646),re=b(8675),we=b(2722),be=b(226);function ke(lt,Qt){1<&&C.Hsn(0)}const Ze=["*"];let Ye=(()=>{class lt{constructor(Se){this._elementRef=Se}focus(){this._elementRef.nativeElement.focus()}}return lt.\u0275fac=function(Se){return new(Se||lt)(C.Y36(C.SBq))},lt.\u0275dir=C.lG2({type:lt,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),lt})(),$e=(()=>{class lt{constructor(Se){this.template=Se}}return lt.\u0275fac=function(Se){return new(Se||lt)(C.Y36(C.Rgc))},lt.\u0275dir=C.lG2({type:lt,selectors:[["","cdkStepLabel",""]]}),lt})(),Te=0;
1const zt=new C.OlP("STEPPER_GLOBAL_OPTIONS");let ut=(()=>{class lt{constructor(Se,Ke){this._stepper=Se,this.interacted=!1,this.interactedStream=new C.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=Ke||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(Se){this._editable=(0,m.Ig)(Se)}get optional(){return this._optional}set optional(Se){this._optional=(0,m.Ig)(Se)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(Se){this._completedOverride=(0,m.Ig)(Se)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(Se){this._customError=(0,m.Ig)(Se)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){var Se;return null!==(Se=this._stepperOptions.showError)&&void 0!==Se?Se:null!=this._customError}}return lt.\u0275fac=function(Se){return new(Se||lt)(C.Y36((0,C.Gpc)(()=>ze)),C.Y36(zt,8))},lt.\u0275cmp=C.Xpm({type:lt,selectors:[["cdk-step"]],contentQueries:function(Se,Ke,Ee){if(1&Se&&C.Suo(Ee,$e,5),2&Se){let Be;C.iGM(Be=C.CRH())&&(Ke.stepLabel=Be.first)}},viewQuery:function(Se,Ke){if(1&Se&&C.Gf(C.Rgc,7),2&Se){let Ee;C.iGM(Ee=C.CRH())&&(Ke.content=Ee.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[C.TTD],ngContentSelectors:Ze,decls:1,vars:0,template:function(Se,Ke){1&Se&&(C.F$t(),C.YNc(0,ke,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),lt})(),ze=(()=>{class lt{constructor(Se,Ke,Ee,Be){this._dir=Se,this._changeDetectorRef=Ke,this._elementRef=Ee,this._destroyed=new te.x,this.steps=new C.n_E,this._sortedHeaders=new C.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new C.vpe,this._orientation="horizontal",this._groupId=Te++}get linear(){return this._linear}set linear(Se){this._linear=(0,m.Ig)(Se)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Se){var Ke;const Ee=(0,m.su)(Se);this.steps&&this._steps?(this._isValidIndex(Ee),null===(Ke=this.selected)||void 0===Ke||Ke._markAsInteracted(),this._selectedIndex!==Ee&&!this._anyControlsInvalidOrPending(Ee)&&(Ee>=this._selectedIndex||this.steps.toArray()[Ee].editable)&&this._updateSelectedItemIndex(Ee)):this._selectedIndex=Ee}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(Se){this.selectedIndex=Se&&this.steps?this.steps.toArray().indexOf(Se):-1}get orientation(){return this._orientation}set orientation(Se){this._orientation=Se,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===Se)}ngAfterContentInit(){this._steps.changes.pipe((0,re.O)(this._steps),(0,we.R)(this._destroyed)).subscribe(Se=>{this.steps.reset(Se.filter(Ke=>Ke._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,re.O)(this._stepHeader),(0,we.R)(this._destroyed)).subscribe(Se=>{this._sortedHeaders.reset(Se.toArray().sort((Ke,Ee)=>Ke._elementRef.nativeElement.compareDocumentPosition(Ee._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new s.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,_e.of)()).pipe((0,re.O)(this._layoutDirection()),(0,we.R)(this._destroyed)).subscribe(Se=>this._keyManager.withHorizontalOrientation(Se)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(Se=>Se.reset()),this._stateChanged()}_getStepLabelId(Se){return`cdk-step-label-${this._groupId}-${Se}`}_getStepContentId(Se){return`cdk-step-content-${this._groupId}-${Se}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(Se){const Ke=Se-this._selectedIndex;return Ke<0?"rtl"===this._layoutDirection()?"next":"previous":Ke>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(Se,Ke="number"){const Ee=this.steps.toArray()[Se],Be=this._isCurrentStep(Se);return Ee._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(Ee,Be):this._getGuidelineLogic(Ee,Be,Ke)}
1_getDefaultIndicatorLogic(Se,Ke){return Se._showError()&&Se.hasError&&!Ke?"error":!Se.completed||Ke?"number":Se.editable?"edit":"done"}_getGuidelineLogic(Se,Ke,Ee="number"){return Se._showError()&&Se.hasError&&!Ke?"error":Se.completed&&!Ke?"done":Se.completed&&Ke?Ee:Se.editable&&Ke?"edit":Ee}_isCurrentStep(Se){return this._selectedIndex===Se}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(Se){const Ke=this.steps.toArray();this.selectionChange.emit({selectedIndex:Se,previouslySelectedIndex:this._selectedIndex,selectedStep:Ke[Se],previouslySelectedStep:Ke[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(Se):this._keyManager.updateActiveItem(Se),this._selectedIndex=Se,this._stateChanged()}_onKeydown(Se){const Ke=(0,k.Vb)(Se),Ee=Se.keyCode,Be=this._keyManager;null==Be.activeItemIndex||Ke||Ee!==k.L_&&Ee!==k.K5?Be.onKeydown(Se):(this.selectedIndex=Be.activeItemIndex,Se.preventDefault())}_anyControlsInvalidOrPending(Se){return!!(this._linear&&Se>=0)&&this.steps.toArray().slice(0,Se).some(Ke=>{const Ee=Ke.stepControl;return(Ee?Ee.invalid||Ee.pending||!Ke.interacted:!Ke.completed)&&!Ke.optional&&!Ke._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const Se=this._elementRef.nativeElement,Ke=(0,q.ht)();return Se===Ke||Se.contains(Ke)}_isValidIndex(Se){return Se>-1&&(!this.steps||Se<this.steps.length)}}return lt.\u0275fac=function(Se){return new(Se||lt)(C.Y36(be.Is,8),C.Y36(C.sBO),C.Y36(C.SBq),C.Y36(v.K0))},lt.\u0275dir=C.lG2({type:lt,selectors:[["","cdkStepper",""]],contentQueries:function(Se,Ke,Ee){if(1&Se&&(C.Suo(Ee,ut,5),C.Suo(Ee,Ye,5)),2&Se){let Be;C.iGM(Be=C.CRH())&&(Ke._steps=Be),C.iGM(Be=C.CRH())&&(Ke._stepHeader=Be)}},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),lt})(),Re=(()=>{class lt{constructor(Se){this._stepper=Se,this.type="submit"}}return lt.\u0275fac=function(Se){return new(Se||lt)(C.Y36(ze))},lt.\u0275dir=C.lG2({type:lt,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(Se,Ke){1&Se&&C.NdJ("click",function(){return Ke._stepper.next()}),2&Se&&C.Ikx("type",Ke.type)},inputs:{type:"type"}}),lt})(),tt=(()=>{class lt{constructor(Se){this._stepper=Se,this.type="button"}}return lt.\u0275fac=function(Se){return new(Se||lt)(C.Y36(ze))},lt.\u0275dir=C.lG2({type:lt,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(Se,Ke){1&Se&&C.NdJ("click",function(){return Ke._stepper.previous()}),2&Se&&C.Ikx("type",Ke.type)},inputs:{type:"type"}}),lt})(),Fe=(()=>{class lt{}return lt.\u0275fac=function(Se){return new(Se||lt)},lt.\u0275mod=C.oAB({type:lt}),lt.\u0275inj=C.cJS({imports:[[be.vT]]}),lt})();var me=b(7423),gt=b(508),Bt=b(5245),pn=b(727),mn=b(3900),jn=b(4004),en=b(1884),Wn=b(1777);function Mn(lt,Qt){if(1<&&C.GkF(0,8),2<){const Se=C.oxw();C.Q6J("ngTemplateOutlet",Se.iconOverrides[Se.state])("ngTemplateOutletContext",Se._getIconContext())}}function Bn(lt,Qt){if(1<&&(C.TgZ(0,"span",13),C._uU(1),C.qZA()),2<){const Se=C.oxw(2);C.xp6(1),C.Oqu(Se._getDefaultTextForState(Se.state))}}function Dn(lt,Qt){if(1<&&(C.TgZ(0,"span",14),C._uU(1),C.qZA()),2<){const Se=C.oxw(2);C.xp6(1),C.Oqu(Se._intl.completedLabel)}}function vn(lt,Qt){if(1<&&(C.TgZ(0,"span",14),C._uU(1),C.qZA()),2<){const Se=C.oxw(2);C.xp6(1),C.Oqu(Se._intl.editableLabel)}}function Dt(lt,Qt){if(1<&&(C.TgZ(0,"mat-icon",13),C._uU(1),C.qZA()),2<){const Se=C.oxw(2);C.xp6(1),C.Oqu(Se._getDefaultTextForState(Se.state))}}function Mt(lt,Qt){if(1<&&(C.ynx(0,9),C.YNc(1,Bn,2,1,"span",10),C.YNc(2,Dn,2,1,"span",11),C.YNc(3,vn,2,1,"span",11),C.YNc(4,Dt,2,1,"mat-icon",12),C.BQk()),2<){const Se=C.oxw();C.Q6J("ngSwitch",Se.state),C.xp6(1),C.Q6J("ngSwitchCase","number"),C.xp6(1),C.Q6J("ngIf","done"===Se.state),C.xp6(1),C.Q6J("ngIf","edit"===Se.state)}}function it(lt,Qt){if(1<&&(C.TgZ(0,"div",15),C.GkF(1,16),C.qZA()),2<){const Se=C.oxw();C.xp6(1),C.Q6J("ngTemplateOutlet",Se._templateLabel().template)}}function At(lt,Qt){if(1<&&(C.TgZ(0,"div",15),C._uU(1),C.qZA()),2<){const Se=C.oxw();C.xp6(1),C.Oqu(Se.label)}}function ct(lt,Qt){if(1<&&(C.TgZ(0,"div",17),C._uU(1),C.qZA()),2<){const Se=C.oxw();C.xp6(1),C.Oqu(Se._intl.optionalLabel)}}function st(lt,Qt){if(1<&&(C.TgZ(0,"div",18),C._uU(1),C.qZA()),2<){const Se=C.oxw();C.xp6(1),C.Oqu(Se.errorMessage)}}function vt(lt,Qt){}function ft(lt,Qt){if(1<&&(C.Hsn(0),C.YNc(1,vt,0,0,"ng-template",0)),2<){const Se=C.oxw();C.xp6(1),C.Q6J("cdkPortalOutlet",Se._portal)}}const Ut=["*"];function tn(lt,Qt){1<&&C._UZ(0,"div",9)}const _n=function(lt,Qt){return{step:lt,i:Qt}};function bn(lt,Qt){if(1<&&(C.ynx(0),C.GkF(1,7),C.YNc(2,tn,1,0,"div",8),C.BQk()),2<){const Se=Qt.$implicit,Ke=Qt.index,Ee=Qt.last;C.oxw(2);const Be=C.MAs(4);C.xp6(1),C.Q6J("ngTemplateOutlet",Be)("ngTemplateOutletContext",C.WLB(3,_n,Se,Ke)),C.xp6(1),C.Q6J("ngIf",!Ee)}}function pi(lt,Qt){if(1<){const Se=C.EpF();C.TgZ(0,"div",10),C.NdJ("@horizontalStepTransition.done",function(Ee){return C.CHM(Se),C.oxw(2)._animationDone.next(Ee)}),C.GkF(1,11),C.qZA()}if(2<){const Se=Qt.$implicit,Ke=Qt.index,Ee=C.oxw(2);C.Q6J("@horizontalStepTransition",Ee._getAnimationDirection(Ke))("id",Ee._getStepContentId(Ke)),C.uIk("aria-labelledby",Ee._getStepLabelId(Ke))("aria-expanded",Ee.selectedIndex===Ke),C.xp6(1),C.Q6J("ngTemplateOutlet",Se.content)}}function si(lt,Qt){if(1<&&(C.ynx(0),C.TgZ(1,"div",3),C.YNc(2,bn,3,6,"ng-container",4),C.qZA(),C.TgZ(3,"div",5),C.YNc(4,pi,2,5,"div",6),C.qZA(),C.BQk()),2<){const Se=C.oxw();C.xp6(2),C.Q6J("ngForOf",Se.steps),C.xp6(2),C.Q6J("ngForOf",Se.steps)}}function vi(lt,Qt){if(1<){const Se=C.EpF();C.TgZ(0,"div",13),C.GkF(1,7),C.TgZ(2,"div",14)(3,"div",15),C.NdJ("@verticalStepTransition.done",function(Ee){return C.CHM(Se),C.oxw(2)._animationDone.next(Ee)}),C.TgZ(4,"div",16),C.GkF(5,11),C.qZA()()()()}if(2<){const Se=Qt.$implicit,Ke=Qt.index,Ee=Qt.last,Be=C.oxw(2),at=C.MAs(4);C.xp6(1),C.Q6J("ngTemplateOutlet",at)("ngTemplateOutletContext",C.WLB(9,_n,Se,Ke)),C.xp6(1),C.ekj("mat-stepper-vertical-line",!Ee),C.xp6(1),C.Q6J("@verticalStepTransition",Be._getAnimationDirection(Ke))("id",Be._get
1StepContentId(Ke)),C.uIk("aria-labelledby",Be._getStepLabelId(Ke))("aria-expanded",Be.selectedIndex===Ke),C.xp6(2),C.Q6J("ngTemplateOutlet",Se.content)}}function Vn(lt,Qt){if(1<&&(C.ynx(0),C.YNc(1,vi,6,12,"div",12),C.BQk()),2<){const Se=C.oxw();C.xp6(1),C.Q6J("ngForOf",Se.steps)}}function Rn(lt,Qt){if(1<){const Se=C.EpF();C.TgZ(0,"mat-step-header",17),C.NdJ("click",function(){return C.CHM(Se).step.select()})("keydown",function(Ee){return C.CHM(Se),C.oxw()._onKeydown(Ee)}),C.qZA()}if(2<){const Se=Qt.step,Ke=Qt.i,Ee=C.oxw();C.ekj("mat-horizontal-stepper-header","horizontal"===Ee.orientation)("mat-vertical-stepper-header","vertical"===Ee.orientation),C.Q6J("tabIndex",Ee._getFocusIndex()===Ke?0:-1)("id",Ee._getStepLabelId(Ke))("index",Ke)("state",Ee._getIndicatorType(Ke,Se.state))("label",Se.stepLabel||Se.label)("selected",Ee.selectedIndex===Ke)("active",Ee._stepIsNavigable(Ke,Se))("optional",Se.optional)("errorMessage",Se.errorMessage)("iconOverrides",Ee._iconOverrides)("disableRipple",Ee.disableRipple||!Ee._stepIsNavigable(Ke,Se))("color",Se.color||Ee.color),C.uIk("aria-posinset",Ke+1)("aria-setsize",Ee.steps.length)("aria-controls",Ee._getStepContentId(Ke))("aria-selected",Ee.selectedIndex==Ke)("aria-label",Se.ariaLabel||null)("aria-labelledby",!Se.ariaLabel&&Se.ariaLabelledby?Se.ariaLabelledby:null)("aria-disabled",!Ee._stepIsNavigable(Ke,Se)||null)}}let Ve=(()=>{class lt extends $e{}return lt.\u0275fac=function(){let Qt;return function(Ke){return(Qt||(Qt=C.n5z(lt)))(Ke||lt)}}(),lt.\u0275dir=C.lG2({type:lt,selectors:[["","matStepLabel",""]],features:[C.qOj]}),lt})(),Pt=(()=>{class lt{constructor(){this.changes=new te.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return lt.\u0275fac=function(Se){return new(Se||lt)},lt.\u0275prov=C.Yz7({token:lt,factory:lt.\u0275fac,providedIn:"root"}),lt})();const ue={provide:Pt,deps:[[new C.FiY,new C.tp0,Pt]],useFactory:function $(lt){return lt||new Pt}},K=(0,gt.pj)(class extends Ye{constructor(Qt){super(Qt)}},"primary");let ae=(()=>{class lt extends K{constructor(Se,Ke,Ee,Be){super(Ee),this._intl=Se,this._focusMonitor=Ke,this._intlSubscription=Se.changes.subscribe(()=>Be.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(Se,Ke){Se?this._focusMonitor.focusVia(this._elementRef,Se,Ke):this._elementRef.nativeElement.focus(Ke)}_stringLabel(){return this.label instanceof Ve?null:this.label}_templateLabel(){return this.label instanceof Ve?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(Se){return"number"==Se?`${this.index+1}`:"edit"==Se?"create":"error"==Se?"warning":Se}}return lt.\u0275fac=function(Se){return new(Se||lt)(C.Y36(Pt),C.Y36(s.tE),C.Y36(C.SBq),C.Y36(C.sBO))},lt.\u0275cmp=C.Xpm({type:lt,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[C.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(Se,Ke){1&Se&&(C._UZ(0,"div",0),C.TgZ(1,"div")(2,"div",1),C.YNc(3,Mn,1,2,"ng-container",2),C.YNc(4,Mt,5,4,"ng-container",3),C.qZA()(),C.TgZ(5,"div",4),C.YNc(6,it,2,1,"div",5),C.YNc(7,At,2,1,"div",5),C.YNc(8,ct,2,1,"div",6),C.YNc(9,st,2,1,"div",7),C.qZA()),2&Se&&(C.Q6J("matRippleTrigger",Ke._getHostElement())("matRippleDisabled",Ke.disableRipple),C.xp6(1),C.Gre("mat-step-icon-state-",Ke.state," mat-step-icon"),C.ekj("mat-step-icon-selected",Ke.selected),C.xp6(1),C.Q6J("ngSwitch",!(!Ke.iconOverrides||!Ke.iconOverrides[Ke.state])),C.xp6(1),C.Q6J("ngSwitchCase",!0),C.xp6(2),C.ekj("mat-step-label-active",Ke.active)("mat-step-label-selected",Ke.selected)("mat-step-label-error","error"==Ke.state),C.xp6(1),C.Q6J("ngIf",Ke._templateLabel()),C.xp6(1),C.Q6J("ngIf",Ke._stringLabel()),C.xp6(1),C.Q6J("ngIf",Ke.optional&&"error"!=Ke.state),C.xp6(1),C.Q6J("ngIf","error"==Ke.state))},directives:[Bt.Hw,gt.wG,v.RF,v.n9,v.tP,v.ED,v.O5],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header.cdk-keyboard-focused,.cdk-high-contrast-active .mat-step-header.cdk-program-focused{outline:solid 3px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),lt})();const Me={horizontalStepTransition:(0,Wn.X$)("horizontalStepTransition",[(0,Wn.SB)("previous",(0,Wn.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,Wn.SB)("current",(0,Wn.oB)({transform:"none",visibility:"inherit"})),(0,Wn.SB)("next",(0,Wn.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,Wn.eR)("* => *",(0,Wn.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,Wn.X$)("verticalStepTransition",[(0,Wn.SB)("previous",(0,Wn.oB)({height:"0px",visibility:"hidden"})),(0,Wn.SB)("next",(0,Wn.oB)({height:"0px",visibility:"hidden"})),(0,Wn.SB)("current",(0,Wn.oB)({height:"*",visibility:"inherit"})),(0,Wn.eR)("* <=> current",(0,Wn.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let nt=(()=>{class lt{constructor(Se){this.templateRef=Se}}return lt.\u0275fac=function(Se){return new(Se||lt)(C.Y36(C.Rgc))},lt.\u0275dir=C.lG2({type:lt,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),lt})(),Tt=(()=>{class lt{constructor(Se){this._template=Se}}return lt.\u0275fac=function(Se){return new(Se||lt)(C.Y36(C.Rgc))},lt.\u0275dir=C.lG2({type:lt,selectors:[["ng-template","matStepContent",""]]}),lt})(),Zt=(()=>{class lt extends ut{constructor(Se,Ke,Ee,Be){super(Se,Be),this._errorStateMatcher=Ke,this._viewContainerRef
1=Ee,this._isSelected=pn.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,mn.w)(()=>this._stepper.selectionChange.pipe((0,jn.U)(Se=>Se.selectedStep===this),(0,re.O)(this._stepper.selected===this)))).subscribe(Se=>{Se&&this._lazyContent&&!this._portal&&(this._portal=new h.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(Se,Ke){return this._errorStateMatcher.isErrorState(Se,Ke)||!!(Se&&Se.invalid&&this.interacted)}}return lt.\u0275fac=function(Se){return new(Se||lt)(C.Y36((0,C.Gpc)(()=>Nn)),C.Y36(gt.rD,4),C.Y36(C.s_b),C.Y36(zt,8))},lt.\u0275cmp=C.Xpm({type:lt,selectors:[["mat-step"]],contentQueries:function(Se,Ke,Ee){if(1&Se&&(C.Suo(Ee,Ve,5),C.Suo(Ee,Tt,5)),2&Se){let Be;C.iGM(Be=C.CRH())&&(Ke.stepLabel=Be.first),C.iGM(Be=C.CRH())&&(Ke._lazyContent=Be.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[C._Bn([{provide:gt.rD,useExisting:lt},{provide:ut,useExisting:lt}]),C.qOj],ngContentSelectors:Ut,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(Se,Ke){1&Se&&(C.F$t(),C.YNc(0,ft,2,1,"ng-template"))},directives:[h.Pl],encapsulation:2,changeDetection:0}),lt})(),Yt=(()=>{class lt extends ze{}return lt.\u0275fac=function(){let Qt;return function(Ke){return(Qt||(Qt=C.n5z(lt)))(Ke||lt)}}(),lt.\u0275dir=C.lG2({type:lt,features:[C.qOj]}),lt})(),Pn=(()=>{class lt extends Yt{}return lt.\u0275fac=function(){let Qt;return function(Ke){return(Qt||(Qt=C.n5z(lt)))(Ke||lt)}}(),lt.\u0275dir=C.lG2({type:lt,selectors:[["mat-horizontal-stepper"]],features:[C.qOj]}),lt})(),Cn=(()=>{class lt extends Yt{}return lt.\u0275fac=function(){let Qt;return function(Ke){return(Qt||(Qt=C.n5z(lt)))(Ke||lt)}}(),lt.\u0275dir=C.lG2({type:lt,selectors:[["mat-vertical-stepper"]],features:[C.qOj]}),lt})(),Nn=(()=>{class lt extends ze{constructor(Se,Ke,Ee,Be){super(Se,Ke,Ee,Be),this.steps=new C.n_E,this.animationDone=new C.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new te.x;const at=Ee.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===at?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:Se,templateRef:Ke})=>this._iconOverrides[Se]=Ke),this.steps.changes.pipe((0,we.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,en.x)((Se,Ke)=>Se.fromState===Ke.fromState&&Se.toState===Ke.toState),(0,we.R)(this._destroyed)).subscribe(Se=>{"current"===Se.toState&&this.animationDone.emit()})}_stepIsNavigable(Se,Ke){return Ke.completed||this.selectedIndex===Se||!this.linear}}return lt.\u0275fac=function(Se){return new(Se||lt)(C.Y36(be.Is,8),C.Y36(C.sBO),C.Y36(C.SBq),C.Y36(v.K0))},lt.\u0275cmp=C.Xpm({type:lt,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(Se,Ke,Ee){if(1&Se&&(C.Suo(Ee,Zt,5),C.Suo(Ee,nt,5)),2&Se){let Be;C.iGM(Be=C.CRH())&&(Ke._steps=Be),C.iGM(Be=C.CRH())&&(Ke._icons=Be)}},viewQuery:function(Se,Ke){if(1&Se&&C.Gf(ae,5),2&Se){let Ee;C.iGM(Ee=C.CRH())&&(Ke._stepHeader=Ee)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(Se,Ke){2&Se&&(C.uIk("aria-orientation",Ke.orientation),C.ekj("mat-stepper-horizontal","horizontal"===Ke.orientation)("mat-stepper-vertical","vertical"===Ke.orientation)("mat-stepper-label-position-end","horizontal"===Ke.orientation&&"end"==Ke.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Ke.orientation&&"bottom"==Ke.labelPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[C._Bn([{provide:ze,useExisting:lt},{provide:Pn,useExisting:lt},{provide:Cn,useExisting:lt}]),C.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(Se,Ke){1&Se&&(C.ynx(0,0),C.YNc(1,si,5,2,"ng-container",1),C.YNc(2,Vn,2,1,"ng-container",1),C.BQk(),C.YNc(3,Rn,1,23,"ng-template",null,2,C.W1O)),2&Se&&(C.Q6J("ngSwitch",Ke.orientation),C.xp6(1),C.Q6J("ngSwitchCase","horizontal"),C.xp6(1),C.Q6J("ngSwitchCase","vertical"))},directives:[ae,v.RF,v.n9,v.sg,v.tP,v.O5],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;
1left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[Me.horizontalStepTransition,Me.verticalStepTransition]},changeDetection:0}),lt})(),Si=(()=>{class lt extends Re{}return lt.\u0275fac=function(){let Qt;return function(Ke){return(Qt||(Qt=C.n5z(lt)))(Ke||lt)}}(),lt.\u0275dir=C.lG2({type:lt,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(Se,Ke){2&Se&&C.Ikx("type",Ke.type)},inputs:{type:"type"},features:[C.qOj]}),lt})(),ni=(()=>{class lt extends tt{}return lt.\u0275fac=function(){let Qt;return function(Ke){return(Qt||(Qt=C.n5z(lt)))(Ke||lt)}}(),lt.\u0275dir=C.lG2({type:lt,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(Se,Ke){2&Se&&C.Ikx("type",Ke.type)},inputs:{type:"type"},features:[C.qOj]}),lt})(),Qn=(()=>{class lt{}return lt.\u0275fac=function(Se){return new(Se||lt)},lt.\u0275mod=C.oAB({type:lt}),lt.\u0275inj=C.cJS({providers:[ue,gt.rD],imports:[[gt.BQ,v.ez,h.eL,me.ot,Fe,Bt.Ps,gt.si],gt.BQ]}),lt})()},3251:(_t,Ue,b)=>{"use strict";b.d(Ue,{BU:()=>at,Nh:()=>ht,Nj:()=>yn,SP:()=>Ke,sW:()=>ei,uX:()=>Pt});var h=b(5664),s=b(7144),m=b(7429),k=b(9808),v=b(5e3),C=b(508),q=b(6360),te=b(5698),_e=b(8675),re=b(1884),we=b(2722),be=b(3900),ke=b(5684),Ze=b(7579),Ye=b(727),$e=b(4968),Te=b(9646),rt=b(6451),je=b(515),zt=b(8306),ut=b(5963),ze=b(1777),Re=b(226),tt=b(3191),Fe=b(1159),me=b(925),gt=b(8962);function Bt(Oe,De){1&Oe&&v.Hsn(0)}const pn=["*"];function mn(Oe,De){}const jn=function(Oe){return{animationDuration:Oe}},en=function(Oe,De){return{value:Oe,params:De}},Wn=["tabListContainer"],Mn=["tabList"],Bn=["tabListInner"],Dn=["nextPaginator"],vn=["previousPaginator"],Dt=["tabBodyWrapper"],Mt=["tabHeader"];function it(Oe,De){}function At(Oe,De){if(1&Oe&&v.YNc(0,it,0,0,"ng-template",10),2&Oe){const U=v.oxw().$implicit;v.Q6J("cdkPortalOutlet",U.templateLabel)}}function ct(Oe,De){if(1&Oe&&v._uU(0),2&Oe){const U=v.oxw().$implicit;v.Oqu(U.textLabel)}}function st(Oe,De){if(1&Oe){const U=v.EpF();v.TgZ(0,"div",6),v.NdJ("click",function(){const x=v.CHM(U),j=x.$implicit,de=x.index,Je=v.oxw(),St=v.MAs(1);return Je._handleClick(j,St,de)})("cdkFocusChange",function(x){const de=v.CHM(U).index;return v.oxw()._tabFocusChanged(x,de)}),v.TgZ(1,"div",7),v.YNc(2,At,1,1,"ng-template",8),v.YNc(3,ct,1,1,"ng-template",null,9,v.W1O),v.qZA()()}if(2&Oe){const U=De.$implicit,N=De.index,x=v.MAs(4),j=v.oxw();v.ekj("mat-tab-label-active",j.selectedIndex===N),v.Q6J("id",j._getTabLabelId(N))("ngClass",U.labelClass)("disabled",U.disabled)("matRippleDisabled",U.disabled||j.disableRipple),v.uIk("tabIndex",j._getTabIndex(U,N))("aria-posinset",N+1)("aria-setsize",j._tabs.length)("aria-controls",j._getTabContentId(N))("aria-selected",j.selectedIndex===N)("aria-label",U.ariaLabel||null)("aria-labelledby",!U.ariaLabel&&U.ariaLabelledby?U.ariaLabelledby:null),v.xp6(2),v.Q6J("ngIf",U.templateLabel)("ngIfElse",x)}}function vt(Oe,De){if(1&Oe){const U=v.EpF();v.TgZ(0,"mat-tab-body",11),v.NdJ("_onCentered",function(){return v.CHM(U),v.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(x){return v.CHM(U),v.oxw()._setTabBodyWrapperHeight(x)}),v.qZA()}if(2&Oe){const U=De.$implicit,N=De.index,x=v.oxw();v.ekj("mat-tab-body-active",x.selectedIndex===N),v.Q6J("id",x._getTabContentId(N))("ngClass",U.bodyClass)("content",U.content)("position",U.position)("origin",U.origin)("animationDuration",x.animationDuration),v.uIk("tabindex",null!=x.contentTabIndex&&x.selectedIndex===N?x.contentTabIndex:null)("aria-labelledby",x._getTabLabelId(N))}}const ft=["mat-tab-nav-bar",""],Ut=new v.OlP("MatInkBarPositioner",{providedIn:"root",factory:function tn(){return De=>({left:De?(De.offsetLeft||0)+"px":"0",width:De?(De.offsetWidth||0)+"px":"0"})}});let _n=(()=>{class Oe{constructor(U,N,x,j){this._elementRef=U,this._ngZone=N,this._inkBarPositioner=x,this._animationMode=j}alignToElement(U){this.show(),this._ngZone.onStable.pipe((0,te.q)(1)).subscribe(()=>{const N=this._inkBarPositioner(U),x=this._elementRef.nativeElement;x.style.left=N.left,x.style.width=N.width})}
1show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return Oe.\u0275fac=function(U){return new(U||Oe)(v.Y36(v.SBq),v.Y36(v.R0b),v.Y36(Ut),v.Y36(q.Qb,8))},Oe.\u0275dir=v.lG2({type:Oe,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(U,N){2&U&&v.ekj("_mat-animation-noopable","NoopAnimations"===N._animationMode)}}),Oe})();const bn=new v.OlP("MatTabContent"),si=new v.OlP("MatTabLabel"),vi=new v.OlP("MAT_TAB"),Rn=(0,C.Id)(class{}),Ve=new v.OlP("MAT_TAB_GROUP");let Pt=(()=>{class Oe extends Rn{constructor(U,N){super(),this._viewContainerRef=U,this._closestTabGroup=N,this.textLabel="",this._contentPortal=null,this._stateChanges=new Ze.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(U){this._setTemplateLabelInput(U)}get content(){return this._contentPortal}ngOnChanges(U){(U.hasOwnProperty("textLabel")||U.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new m.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(U){U&&U._closestTab===this&&(this._templateLabel=U)}}return Oe.\u0275fac=function(U){return new(U||Oe)(v.Y36(v.s_b),v.Y36(Ve,8))},Oe.\u0275cmp=v.Xpm({type:Oe,selectors:[["mat-tab"]],contentQueries:function(U,N,x){if(1&U&&(v.Suo(x,si,5),v.Suo(x,bn,7,v.Rgc)),2&U){let j;v.iGM(j=v.CRH())&&(N.templateLabel=j.first),v.iGM(j=v.CRH())&&(N._explicitContent=j.first)}},viewQuery:function(U,N){if(1&U&&v.Gf(v.Rgc,7),2&U){let x;v.iGM(x=v.CRH())&&(N._implicitContent=x.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[v._Bn([{provide:vi,useExisting:Oe}]),v.qOj,v.TTD],ngContentSelectors:pn,decls:1,vars:0,template:function(U,N){1&U&&(v.F$t(),v.YNc(0,Bt,1,0,"ng-template"))},encapsulation:2}),Oe})();const $={translateTab:(0,ze.X$)("translateTab",[(0,ze.SB)("center, void, left-origin-center, right-origin-center",(0,ze.oB)({transform:"none"})),(0,ze.SB)("left",(0,ze.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,ze.SB)("right",(0,ze.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,ze.eR)("* => left, * => right, left => center, right => center",(0,ze.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,ze.eR)("void => left-origin-center",[(0,ze.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,ze.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,ze.eR)("void => right-origin-center",[(0,ze.oB)({transform:"translate3d(100%, 0, 0)"}),(0,ze.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let ue=(()=>{class Oe extends m.Pl{constructor(U,N,x,j){super(U,N,j),this._host=x,this._centeringSub=Ye.w0.EMPTY,this._leavingSub=Ye.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,_e.O)(this._host._isCenterPosition(this._host._position))).subscribe(U=>{U&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return Oe.\u0275fac=function(U){return new(U||Oe)(v.Y36(v._Vd),v.Y36(v.s_b),v.Y36((0,v.Gpc)(()=>ae)),v.Y36(k.K0))},Oe.\u0275dir=v.lG2({type:Oe,selectors:[["","matTabBodyHost",""]],features:[v.qOj]}),Oe})(),K=(()=>{class Oe{constructor(U,N,x){this._elementRef=U,this._dir=N,this._dirChangeSubscription=Ye.w0.EMPTY,this._translateTabComplete=new Ze.x,this._onCentering=new v.vpe,this._beforeCentering=new v.vpe,this._afterLeavingCenter=new v.vpe,this._onCentered=new v.vpe(!0),this.animationDuration="500ms",N&&(this._dirChangeSubscription=N.change.subscribe(j=>{this._computePositionAnimationState(j),x.markForCheck()})),this._translateTabComplete.pipe((0,re.x)((j,de)=>j.fromState===de.fromState&&j.toState===de.toState)).subscribe(j=>{this._isCenterPosition(j.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(j.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(U){this._positionIndex=U,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(U){const N=this._isCenterPosition(U.toState);this._beforeCentering.emit(N),N&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(U){return"center"==U||"left-origin-center"==U||"right-origin-center"==U}_computePositionAnimationState(U=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==U?"left":"right":this._positionIndex>0?"ltr"==U?"right":"left":"center"}_computePositionFromOrigin(U){const N=this._getLayoutDirection();return"ltr"==N&&U<=0||"rtl"==N&&U>0?"left-origin-center":"right-origin-center"}}return Oe.\u0275fac=function(U){return new(U||Oe)(v.Y36(v.SBq),v.Y36(Re.Is,8),v.Y36(v.sBO))},Oe.\u0275dir=v.lG2({type:Oe,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Oe})(),ae=(()=>{class Oe extends K{constructor(U,N,x){super(U,N,x)}}return Oe.\u0275fac=function(U){return new(U||Oe)(v.Y36(v.SBq),v.Y36(Re.Is,8),v.Y36(v.sBO))},Oe.\u0275cmp=v.Xpm({type:Oe,selectors:[["mat-tab-body"]],viewQuery:function(U,N){if(1&U&&v.Gf(m.Pl,5),2&U){let x;v.iGM(x=v.CRH())&&(N._portalHost=x.first)}},hostAttrs:[1,"mat-tab-body"],features:[v.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(U,N){1&U&&(v.TgZ(0,"div",0,1),v.NdJ("@translateTab.start",function(j){return N._onTranslateTabStarted(j)})("@translateTab.done",function(j){return N._translateTabComplete.next(j)}),v.YNc(2,mn,0,0,"ng-template",2),v.qZA()),2&U&&v.Q6J("@translateTab",v.WLB(3,en,N._position,v.VKq(1,jn,N.animationDuration)))},directives:[ue],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}\n'],encapsulation:2,data:{animation:[$.translateTab]}}),Oe})();const Me=new v.OlP("MAT_TABS_CONFIG"),nt=(0,C.Id)(class{});let Tt=(()=>{class Oe extends nt{constructor(U){super(),this.elementRef=U}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Oe.\u0275fac=function(U){return new(U||Oe)(v.Y36(v.SBq))},Oe.\u0275dir=v.lG2({type:Oe,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(U,N){2&U&&(v.uIk("aria-disabled",!!N.disabled),v.ekj("mat-tab-disabled",N.disabled))},inputs:{disabled:"disabled"},features:[v.qOj]}),Oe})();const Zt=(0,me.i$)({passive:!0});let Nn=(()=>{class Oe{constructor(U,N,x,j,de,Je,St){this._elementRef=U,this._changeDetectorRef=N,this._viewportRuler
1=x,this._dir=j,this._ngZone=de,this._platform=Je,this._animationMode=St,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Ze.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Ze.x,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new v.vpe,this.indexFocused=new v.vpe,de.runOutsideAngular(()=>{(0,$e.R)(U.nativeElement,"mouseleave").pipe((0,we.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(U){U=(0,tt.su)(U),this._selectedIndex!=U&&(this._selectedIndexChanged=!0,this._selectedIndex=U,this._keyManager&&this._keyManager.updateActiveItem(U))}ngAfterViewInit(){(0,$e.R)(this._previousPaginator.nativeElement,"touchstart",Zt).pipe((0,we.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,$e.R)(this._nextPaginator.nativeElement,"touchstart",Zt).pipe((0,we.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const U=this._dir?this._dir.change:(0,Te.of)("ltr"),N=this._viewportRuler.change(150),x=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new h.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,te.q)(1)).subscribe(x),(0,rt.T)(U,N,this._items.changes,this._itemsResized()).pipe((0,we.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),x()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,we.R)(this._destroyed)).subscribe(j=>{this.indexFocused.emit(j),this._setTabFocus(j)})}_itemsResized(){return"function"!=typeof ResizeObserver?je.E:this._items.changes.pipe((0,_e.O)(this._items),(0,be.w)(U=>new zt.y(N=>this._ngZone.runOutsideAngular(()=>{const x=new ResizeObserver(()=>{N.next()});return U.forEach(j=>{x.observe(j.elementRef.nativeElement)}),()=>{x.disconnect()}}))),(0,ke.T)(1))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(U){if(!(0,Fe.Vb)(U))switch(U.keyCode){case Fe.K5:case Fe.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(U));break;default:this._keyManager.onKeydown(U)}}_onContentChanges(){const U=this._elementRef.nativeElement.textContent;U!==this._currentTextContent&&(this._currentTextContent=U||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(U){!this._isValidIndex(U)||this.focusIndex===U||!this._keyManager||this._keyManager.setActiveItem(U)}_isValidIndex(U){if(!this._items)return!0;const N=this._items?this._items.toArray()[U]:null;return!!N&&!N.disabled}_setTabFocus(U){if(this._showPaginationControls&&this._scrollToLabel(U),this._items&&this._items.length){this._items.toArray()[U].focus();const N=this._tabListContainer.nativeElement;N.scrollLeft="ltr"==this._getLayoutDirection()?0:N.scrollWidth-N.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const U=this.scrollDistance,N="ltr"===this._getLayoutDirection()?-U:U;this._tabList.nativeElement.style.transform=`translateX(${Math.round(N)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(U){this._scrollTo(U)}_scrollHeader(U){return this._scrollTo(this._scrollDistance+("before"==U?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(U){this._stopInterval(),this._scrollHeader(U)}_scrollToLabel(U){if(this.disablePagination)return;const N=this._items?this._items.toArray()[U]:null;if(!N)return;const x=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:j,offsetWidth:de}=N.elementRef.nativeElement;let Je,St;"ltr"==this._getLayoutDirection()?(Je=j,St=Je+de):(St=this._tabListInner.nativeElement.offsetWidth-j,Je=St-de);const Ht=this.scrollDistance,kn=this.scrollDistance+x;Je<Ht?this.scrollDistance-=Ht-Je+60:St>kn&&(this.scrollDistance+=St-kn+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const U=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;U||(this.scrollDistance=0),U!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=U}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const U=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,N=U?U.elementRef.nativeElement:null;N?this._inkBar.alignToElement(N):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(U,N){N&&null!=N.button&&0!==N.button||(this._stopInterval(),(0,ut.H)(650,100).pipe((0,we.R)((0,rt.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:x,distance:j}=this._scrollHeader(U);(0===j||j>=x)&&this._stopInterval()}))}_scrollTo(U){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const N=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(N,U)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:N,distance:this._scrollDistance}}}return Oe.\u0275fac=function(U){return new(U||Oe)(v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(gt.rL),v.Y36(Re.Is,8),v.Y36(v.R0b),v.Y36(me.t4),v.Y36(q.Qb,8))},Oe.\u0275dir=v.lG2({type:Oe,inputs:{disablePagination:"disablePagination"}}),Oe})(),Si=(()=>{class Oe extends Nn{constructor(U,N,x,j,de,Je,St){super(U,N,x,j,de,Je,St),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(U){this._disableRipple=(0,tt.Ig)(U)}_itemSelected(U){U.preventDefault()}}return Oe.\u0275fac=function(U){return new(U||Oe)(v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(gt.rL),v.Y36(Re.Is,8),v.Y36(v.R0b),v.Y36(me.t4),v.Y36(q.Qb,8))},Oe.\u0275dir=v.lG2({type:Oe,inputs:{disableRipple:"disableRipple"},features:[v.qOj]}),Oe})(),ni=(()=>{class Oe extends Si{constructor(U,N,x,j,de,Je,St){super(U,N,x,j,de,Je,St)}}return Oe.\u0275fac=function(U){return new(U||Oe)(v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(gt.rL),v.Y36(Re.Is,8),v.Y36(v.R0b),v.Y36(me.t4),v.Y36(q.Qb,8))},Oe.\u0275cmp=v.Xpm({type:Oe,selectors:[["mat-tab-header"]],contentQueries:function(U,N,x){if(1&U&&v.Suo(x,Tt,4),2&U){let j;v.iGM(j=v.CRH())&&(N._items=j)}},viewQuery:function(U,N){if(1&U&&(v.Gf(_n,7),v.Gf(Wn,7),v.Gf(Mn,7),v.Gf(Bn,7),v.Gf(Dn,5),v.Gf(vn,5)),2&U){let x;v.iGM(x=v.CRH())&&(N._inkBar=x.first),v.iGM(x=v.CRH())&&(N._tabListContainer=x.first),v.iGM(x=v.CRH())&&(N._tabList=x.first),v.iGM(x=v.CRH())&&(N._tabListInner=x.first),v.iGM(x=v.CRH())&&(N._nextPaginator=x.first),v.iGM(x=v.CRH())&&(N._previousPaginator=x.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(U,N){2&U&&v.ekj("mat-tab-header-pagination-controls-enabled",N._showPaginationControls)("mat-tab-header-rtl","rtl"==N._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[v.qOj],ngContentSelectors:pn,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(U,N){1&U&&(v.F$t(),v.TgZ(0,"button",0,1),v.NdJ("click",function(){return N._handlePaginatorClick("before")})("mousedown",function(j){return N._handlePaginatorPress("before",j)})("touchend",function(){return N._stopInterval()}),v._UZ(2,"div",2),v.qZA(),v.TgZ(3,"div",3,4),v.NdJ("keydown",function(j){return N._handleKeydown(j)}),v.TgZ(5,"div",5,6),v.NdJ("cdkObserveContent",function(){return N._onContentChanges()}),v.TgZ(7,"div",7,8),v.Hsn(9),v.qZA(),v._UZ(10,"mat-ink-bar"),v.qZA()(),v.TgZ(11,"button",9,10),v.NdJ("mousedown",function(j){return N._handlePaginatorPress("after",j)})("click",function(){return N._handlePaginatorClick("after")})("touchend",function(){return N._stopInterval()}),v._UZ(13,"div",2),v.qZA()),2&U&&(v.ekj("mat-tab-header-pagination-disabled",N._disableScrollBefore),v.Q6J("matRippleDisabled",N._disableScrollBefore||N.disableRipple)("disabled",N._disableScrollBefore||null),v.xp6(5),v.ekj("_mat-animation-noopable","NoopAnimations"===N._animationMode),v.xp6(6),v.ekj("mat-tab-header-pagination-disabled",N._disableScrollAfter),v.Q6J("matRippleDisabled",N._disableScrollAfter||N.disableRipple)("disabled",N._disableScrollAfter||null))},directives:[C.wG,s.wD,_n],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;
1cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;
1cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n"],encapsulation:2}),Oe})(),Qn=0;class lt{}const Qt=(0,C.pj)((0,C.Kr)(class{constructor(Oe){this._elementRef=Oe}}),"primary");let Se=(()=>{class Oe extends Qt{constructor(U,N,x,j){var de;super(U),this._changeDetectorRef=N,this._animationMode=j,this._tabs=new v.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=Ye.w0.EMPTY,this._tabLabelSubscription=Ye.w0.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new v.vpe,this.focusChange=new v.vpe,this.animationDone=new v.vpe,this.selectedTabChange=new v.vpe(!0),this._groupId=Qn++,this.animationDuration=x&&x.animationDuration?x.animationDuration:"500ms",this.disablePagination=!(!x||null==x.disablePagination)&&x.disablePagination,this.dynamicHeight=!(!x||null==x.dynamicHeight)&&x.dynamicHeight,this.contentTabIndex=null!==(de=null==x?void 0:x.contentTabIndex)&&void 0!==de?de:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(U){this._dynamicHeight=(0,tt.Ig)(U)}get selectedIndex(){return this._selectedIndex}set selectedIndex(U){this._indexToSelect=(0,tt.su)(U,null)}get animationDuration(){return this._animationDuration}set animationDuration(U){this._animationDuration=/^\d+$/.test(U+"")?U+"ms":U}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(U){this._contentTabIndex=(0,tt.su)(U,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(U){const N=this._elementRef.nativeElement;N.classList.remove(`mat-background-${this.backgroundColor}`),U&&N.classList.add(`mat-background-${U}`),this._backgroundColor=U}ngAfterContentChecked(){const U=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=U){const N=null==this._selectedIndex;if(!N){this.selectedTabChange.emit(this._createChangeEvent(U));const x=this._tabBodyWrapper.nativeElement;x.style.minHeight=x.clientHeight+"px"}Promise.resolve().then(()=>
1{this._tabs.forEach((x,j)=>x.isActive=j===U),N||(this.selectedIndexChange.emit(U),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((N,x)=>{N.position=x-U,null!=this._selectedIndex&&0==N.position&&!N.origin&&(N.origin=U-this._selectedIndex)}),this._selectedIndex!==U&&(this._selectedIndex=U,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const U=this._clampTabIndex(this._indexToSelect);if(U===this._selectedIndex){const N=this._tabs.toArray();let x;for(let j=0;j<N.length;j++)if(N[j].isActive){this._indexToSelect=this._selectedIndex=j,this._lastFocusedTabIndex=null,x=N[j];break}!x&&N[U]&&Promise.resolve().then(()=>{N[U].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(U))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,_e.O)(this._allTabs)).subscribe(U=>{this._tabs.reset(U.filter(N=>N._closestTabGroup===this||!N._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(U){const N=this._tabHeader;N&&(N.focusIndex=U)}_focusChanged(U){this._lastFocusedTabIndex=U,this.focusChange.emit(this._createChangeEvent(U))}_createChangeEvent(U){const N=new lt;return N.index=U,this._tabs&&this._tabs.length&&(N.tab=this._tabs.toArray()[U]),N}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,rt.T)(...this._tabs.map(U=>U._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(U){return Math.min(this._tabs.length-1,Math.max(U||0,0))}_getTabLabelId(U){return`mat-tab-label-${this._groupId}-${U}`}_getTabContentId(U){return`mat-tab-content-${this._groupId}-${U}`}_setTabBodyWrapperHeight(U){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const N=this._tabBodyWrapper.nativeElement;N.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(N.style.height=U+"px")}_removeTabBodyWrapperHeight(){const U=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=U.clientHeight,U.style.height="",this.animationDone.emit()}_handleClick(U,N,x){U.disabled||(this.selectedIndex=N.focusIndex=x)}_getTabIndex(U,N){var x;return U.disabled?null:N===(null!==(x=this._lastFocusedTabIndex)&&void 0!==x?x:this.selectedIndex)?0:-1}_tabFocusChanged(U,N){U&&"mouse"!==U&&"touch"!==U&&(this._tabHeader.focusIndex=N)}}return Oe.\u0275fac=function(U){return new(U||Oe)(v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(Me,8),v.Y36(q.Qb,8))},Oe.\u0275dir=v.lG2({type:Oe,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[v.qOj]}),Oe})(),Ke=(()=>{class Oe extends Se{constructor(U,N,x,j){super(U,N,x,j)}}return Oe.\u0275fac=function(U){return new(U||Oe)(v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(Me,8),v.Y36(q.Qb,8))},Oe.\u0275cmp=v.Xpm({type:Oe,selectors:[["mat-tab-group"]],contentQueries:function(U,N,x){if(1&U&&v.Suo(x,Pt,5),2&U){let j;v.iGM(j=v.CRH())&&(N._allTabs=j)}},viewQuery:function(U,N){if(1&U&&(v.Gf(Dt,5),v.Gf(Mt,5)),2&U){let x;v.iGM(x=v.CRH())&&(N._tabBodyWrapper=x.first),v.iGM(x=v.CRH())&&(N._tabHeader=x.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(U,N){2&U&&v.ekj("mat-tab-group-dynamic-height",N.dynamicHeight)("mat-tab-group-inverted-header","below"===N.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[v._Bn([{provide:Ve,useExisting:Oe}]),v.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(U,N){1&U&&(v.TgZ(0,"mat-tab-header",0,1),v.NdJ("indexFocused",function(j){return N._focusChanged(j)})("selectFocusedIndex",function(j){return N.selectedIndex=j}),v.YNc(2,st,5,15,"div",2),v.qZA(),v.TgZ(3,"div",3,4),v.YNc(5,vt,1,10,"mat-tab-body",5),v.qZA()),2&U&&(v.Q6J("selectedIndex",N.selectedIndex||0)("disableRipple",N.disableRipple)("disablePagination",N.disablePagination),v.xp6(2),v.Q6J("ngForOf",N._tabs),v.xp6(1),v.ekj("_mat-animation-noopable","NoopAnimations"===N._animationMode),v.xp6(2),v.Q6J("ngForOf",N._tabs))},directives:[ni,ae,k.sg,Tt,C.wG,h.kH,k.mk,k.O5,m.Pl],styles:[".mat-tab-group{dis
1play:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),Oe})(),Ee=0,Be=(()=>{class Oe extends Nn{constructor(U,N,x,j,de,Je,St){super(U,j,de,N,x,Je,St),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(U){const N=this._elementRef.nativeElement.classList;N.remove(`mat-background-${this.backgroundColor}`),U&&N.add(`mat-background-${U}`),this._backgroundColor=U}get disableRipple(){return this._disableRipple}set disableRipple(U){this._disableRipple=(0,tt.Ig)(U)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,_e.O)(null),(0,we.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const U=this._items.toArray();for(let N=0;N<U.length;N++)if(U[N].active)return this.selectedIndex=N,this._changeDetectorRef.markForCheck(),void(this.tabPanel&&(this.tabPanel._activeTabId=U[N].id));this.selectedIndex=-1,this._inkBar.hide()}_getRole(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")}}return Oe.\u0275fac=function(U){return new(U||Oe)(v.Y36(v.SBq),v.Y36(Re.Is,8),v.Y36(v.R0b),v.Y36(v.sBO),v.Y36(gt.rL),v.Y36(me.t4),v.Y36(q.Qb,8))},Oe.\u0275dir=v.lG2({type:Oe,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color",tabPanel:"tabPanel"},features:[v.qOj]}),Oe})(),at=(()=>{class Oe extends Be{constructor(U,N,x,j,de,Je,St){super(U,N,x,j,de,Je,St)}}return Oe.\u0275fac=function(U){return new(U||Oe)(v.Y36(v.SBq),v.Y36(Re.Is,8),v.Y36(v.R0b),v.Y36(v.sBO),v.Y36(gt.rL),v.Y36(me.t4),v.Y36(q.Qb,8))},Oe.\u0275cmp=v.Xpm({type:Oe,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(U,N,x){if(1&U&&v.Suo(x,yn,5),2&U){let j;v.iGM(j=v.CRH())&&(N._items=j)}},viewQuery:function(U,N){if(1&U&&(v.Gf(_n,7),v.Gf(Wn,7),v.Gf(Mn,7),v.Gf(Bn,7),v.Gf(Dn,5),v.Gf(vn,5)),2&U){let x;v.iGM(x=v.CRH())&&(N._inkBar=x.first),v.iGM(x=v.CRH())&&(N._tabListContainer=x.first),v.iGM(x=v.CRH())&&(N._tabList=x.first),v.iGM(x=v.CRH())&&(N._tabListInner=x.first),v.iGM(x=v.CRH())&&(N._nextPaginator=x.first),v.iGM(x=v.CRH())&&(N._previousPaginator=x.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(U,N){2&U&&(v.uIk("role",N._getRole()),v.ekj("mat-tab-header-pagination-controls-enabled",N._showPaginationControls)("mat-tab-header-rtl","rtl"==N._getLayoutDirection())("mat-primary","warn"!==N.color&&"accent"!==N.color)("mat-accent","accent"===N.color)("mat-warn","warn"===N.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[v.qOj],attrs:ft,ngContentSelectors:pn,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(U,N){1&U&&(v.F$t(),v.TgZ(0,"button",0,1),v.NdJ("click",function(){return N._handlePaginatorClick("before")})("mousedown",function(j){return N._handlePaginatorPress("before",j)})("touchend",function(){return N._stopInterval()}),v._UZ(2,"div",2),v.qZA(),v.TgZ(3,"div",3,4),v.NdJ("keydown",function(j){return N._handleKeydown(j)}),v.TgZ(5,"div",5,6),v.NdJ("cdkObserveContent",function(){return N._onContentChanges()}),v.TgZ(7,"div",7,8),v.Hsn(9),v.qZA(),v._UZ(10,"mat-ink-bar"),v.qZA()(),v.TgZ(11,"button",9,10),v.NdJ("mousedown",function(j){return N._handlePaginatorPress("after",j)})("click",function(){return N._handlePaginatorClick("after")})("touchend",function(){return N._stopInterval()}),v._UZ(13,"div",2),v.qZA()),2&U&&(v.ekj("mat-tab-header-pagination-disabled",N._disableScrollBefore),v.Q6J("matRippleDisabled",N._disableScrollBefore||N.disableRipple)("disabled",N._disableScrollBefore||null),v.xp6(5),v.ekj("_mat-animation-noopable","NoopAnimations"===N._animationMode),v.xp6(6),v.ekj("mat-tab-header-pagination-disabled",N._disableScrollAfter),v.Q6J("matRippleDisabled",N._disableScrollAfter||N.disableRipple)("disabled",N._disableScrollAfter||null))},directives:[C.wG,s.wD,_n],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;
1cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;
1cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n"],encapsulation:2}),Oe})();const Ot=(0,C.sb)((0,C.Kr)((0,C.Id)(class{})));let mt=(()=>{class Oe extends Ot{constructor(U,N,x,j,de,Je){super(),this._tabNavBar=U,this.elementRef=N,this._focusMonitor=de,this._isActive=!1,this.id="mat-tab-link-"+Ee++,this.rippleConfig=x||{},this.tabIndex=parseInt(j)||0,"NoopAnimations"===Je&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(U){const N=(0,tt.Ig)(U);N!==this._isActive&&(this._isActive=N,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(U){this._tabNavBar.tabPanel&&U.keyCode===Fe.L_&&this.elementRef.nativeElement.click()}_getAriaControls(){var U;return this._tabNavBar.tabPanel?null===(U=this._tabNavBar.tabPanel)||void 0===U?void 0:U.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive?0:-1:this.tabIndex}}return Oe.\u0275fac=function(U){return new(U||Oe)(v.Y36(Be),v.Y36(v.SBq),v.Y36(C.Y2,8),v.$8M("tabindex"),v.Y36(h.tE),v.Y36(q.Qb,8))},Oe.\u0275dir=v.lG2({type:Oe,inputs:{active:"active",id:"id"},features:[v.qOj]}),Oe})(),yn=(()=>{class Oe extends mt{constructor(U,N,x,j,de,Je,St,Ht){super(U,N,de,Je,St,Ht),this._tabLinkRipple=new C.IR(this,x,N,j),this._tabLinkRipple.setupTriggerEvents(N.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return Oe.\u0275fac=function(U){return new(U||Oe)(v.Y36(at),v.Y36(v.SBq),v.Y36(v.R0b),v.Y36(me.t4),v.Y36(C.Y2,8),v.$8M("tabindex"),v.Y36(h.tE),v.Y36(q.Qb,8))},Oe.\u0275dir=v.lG2({type:Oe,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(U,N){1&U&&v.NdJ("focus",function(){return N._handleFocus()})("keydown",function(j){return N._handleKeydown(j)}),2&U&&(v.uIk("aria-controls",N._getAriaControls())("aria-current",N._getAriaCurrent())("aria-disabled",N.disabled)("aria-selected",N._getAriaSelected())("id",N.id)("tabIndex",N._getTabIndex())("role",N._getRole()),v.ekj("mat-tab-disabled",N.disabled)("mat-tab-label-active",N.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[v.qOj]}),Oe})(),ei=(()=>{class Oe{constructor(){this.id="mat-tab-nav-panel-"+Ee++}}return Oe.\u0275fac=function(U){return new(U||Oe)},Oe.\u0275cmp=v.Xpm({type:Oe,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-tab-nav-panel"],hostVars:2,hostBindings:function(U,N){2&U&&v.uIk("aria-labelledby",N._activeTabId)("id",N.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:pn,decls:1,vars:0,template:function(U,N){1&U&&(v.F$t(),v.Hsn(0))},encapsulation:2,changeDetection:0}),Oe})(),ht=(()=>{class Oe{}return Oe.\u0275fac=function(U){return new(U||Oe)},Oe.\u0275mod=v.oAB({type:Oe}),Oe.\u0275inj=v.cJS({imports:[[k.ez,C.BQ,m.eL,C.si,s.Q8,h.rt],C.BQ]}),Oe})()},6360:(_t,Ue,b)=>{"use strict";b.d(Ue,{Qb:()=>$r,PW:()=>Is});var h=b(5e3),s=b(6097),m=b(1777);const k=!1;function C(Pe){return new h.vHH(3e3,k)}function ct(){return"undefined"!=typeof window&&void 0!==window.document}function st(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function vt(Pe){switch(Pe.length){case 0:return new m.ZN;case 1:return Pe[0];default:return new m.ZE(Pe)}}function ft(Pe,P,F,ce,He={},dt={}){const Et=[],kt=[];let Kt=-1,En=null;if(ce.forEach(In=>{const Di=In.offset,ji=Di==Kt,er=ji&&En||{};
1Object.keys(In).forEach(Gn=>{let Qi=Gn,vr=In[Gn];if("offset"!==Gn)switch(Qi=P.normalizePropertyName(Qi,Et),vr){case m.k1:vr=He[Gn];break;case m.l3:vr=dt[Gn];break;default:vr=P.normalizeStyleValue(Gn,Qi,vr,Et)}er[Qi]=vr}),ji||kt.push(er),En=er,Kt=Di}),Et.length)throw function mn(Pe){return new h.vHH(3502,k)}();return kt}function Ut(Pe,P,F,ce){switch(P){case"start":Pe.onStart(()=>ce(F&&tn(F,"start",Pe)));break;case"done":Pe.onDone(()=>ce(F&&tn(F,"done",Pe)));break;case"destroy":Pe.onDestroy(()=>ce(F&&tn(F,"destroy",Pe)))}}function tn(Pe,P,F){const ce=F.totalTime,dt=_n(Pe.element,Pe.triggerName,Pe.fromState,Pe.toState,P||Pe.phaseName,null==ce?Pe.totalTime:ce,!!F.disabled),Et=Pe._data;return null!=Et&&(dt._data=Et),dt}function _n(Pe,P,F,ce,He="",dt=0,Et){return{element:Pe,triggerName:P,fromState:F,toState:ce,phaseName:He,totalTime:dt,disabled:!!Et}}function bn(Pe,P,F){let ce;return Pe instanceof Map?(ce=Pe.get(P),ce||Pe.set(P,ce=F)):(ce=Pe[P],ce||(ce=Pe[P]=F)),ce}function pi(Pe){const P=Pe.indexOf(":");return[Pe.substring(1,P),Pe.substr(P+1)]}let si=(Pe,P)=>!1,vi=(Pe,P,F)=>[],Vn=null;function Rn(Pe){const P=Pe.parentNode||Pe.host;return P===Vn?null:P}(st()||"undefined"!=typeof Element)&&(ct()?(Vn=(()=>document.documentElement)(),si=(Pe,P)=>{for(;P;){if(P===Pe)return!0;P=Rn(P)}return!1}):si=(Pe,P)=>Pe.contains(P),vi=(Pe,P,F)=>{if(F)return Array.from(Pe.querySelectorAll(P));const ce=Pe.querySelector(P);return ce?[ce]:[]});let $=null,ue=!1;function K(Pe){$||($=function ae(){return"undefined"!=typeof document?document.body:null}()||{},ue=!!$.style&&"WebkitAppearance"in $.style);let P=!0;return $.style&&!function Pt(Pe){return"ebkit"==Pe.substring(1,6)}(Pe)&&(P=Pe in $.style,!P&&ue&&(P="Webkit"+Pe.charAt(0).toUpperCase()+Pe.substr(1)in $.style)),P}const Me=si,nt=vi;let Zt=(()=>{class Pe{validateStyleProperty(F){return K(F)}matchesElement(F,ce){return!1}containsElement(F,ce){return Me(F,ce)}getParentElement(F){return Rn(F)}query(F,ce,He){return nt(F,ce,He)}computeStyle(F,ce,He){return He||""}animate(F,ce,He,dt,Et,kt=[],Kt){return new m.ZN(He,dt)}}return Pe.\u0275fac=function(F){return new(F||Pe)},Pe.\u0275prov=h.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),Yt=(()=>{class Pe{}return Pe.NOOP=new Zt,Pe})();const Si="ng-enter",ni="ng-leave",Qn="ng-trigger",lt=".ng-trigger",Qt="ng-animating",Se=".ng-animating";function Ke(Pe){if("number"==typeof Pe)return Pe;const P=Pe.match(/^(-?[\.\d]+)(m?s)/);return!P||P.length<2?0:Ee(parseFloat(P[1]),P[2])}function Ee(Pe,P){return"s"===P?1e3*Pe:Pe}function Be(Pe,P,F){return Pe.hasOwnProperty("duration")?Pe:function at(Pe,P,F){let He,dt=0,Et="";if("string"==typeof Pe){const kt=Pe.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===kt)return P.push(C()),{duration:0,delay:0,easing:""};He=Ee(parseFloat(kt[1]),kt[2]);const Kt=kt[3];null!=Kt&&(dt=Ee(parseFloat(Kt),kt[4]));const En=kt[5];En&&(Et=En)}else He=Pe;if(!F){let kt=!1,Kt=P.length;He<0&&(P.push(function q(){return new h.vHH(3100,k)}()),kt=!0),dt<0&&(P.push(function te(){return new h.vHH(3101,k)}()),kt=!0),kt&&P.splice(Kt,0,C())}return{duration:He,delay:dt,easing:Et}}(Pe,P,F)}function Ot(Pe,P={}){return Object.keys(Pe).forEach(F=>{P[F]=Pe[F]}),P}function yn(Pe,P,F={}){if(P)for(let ce in Pe)F[ce]=Pe[ce];else Ot(Pe,F);return F}function ei(Pe,P,F){return F?P+":"+F+";":""}function ht(Pe){let P="";for(let F=0;F<Pe.style.length;F++){const ce=Pe.style.item(F);P+=ei(0,ce,Pe.style.getPropertyValue(ce))}for(const F in Pe.style)Pe.style.hasOwnProperty(F)&&!F.startsWith("_")&&(P+=ei(0,kn(F),Pe.style[F]));Pe.setAttribute("style",P)}function Oe(Pe,P,F){Pe.style&&(Object.keys(P).forEach(ce=>{const He=Ht(ce);F&&!F.hasOwnProperty(ce)&&(F[ce]=Pe.style[He]),Pe.style[He]=P[ce]}),st()&&ht(Pe))}function De(Pe,P){Pe.style&&(Object.keys(P).forEach(F=>{const ce=Ht(F);Pe.style[ce]=""}),st()&&ht(Pe))}function U(Pe){return Array.isArray(Pe)?1==Pe.length?Pe[0]:(0,m.vP)(Pe):Pe}const x=new RegExp("{{\\s*(.+?)\\s*}}","g");function j(Pe){let P=[];if("string"==typeof Pe){let F;for(;F=x.exec(Pe);)P.push(F[1]);x.lastIndex=0}return P}function de(Pe,P,F){const ce=Pe.toString(),He=ce.replace(x,(dt,Et)=>{let kt=P[Et];return P.hasOwnProperty(Et)||(F.push(function re(Pe){return new h.vHH(3003,k)}()),kt=""),kt.toString()});return He==ce?Pe:He}function Je(Pe){const P=[];let F=Pe.next();for(;!F.done;)P.push(F.value),F=Pe.next();return P}const St=/-+([a-z0-9])/g;function Ht(Pe){return Pe.replace(St,(...P)=>P[1].toUpperCase())}function kn(Pe){return Pe.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ii(Pe,P,F){switch(P.type){case 7:return Pe.visitTrigger(P,F);case 0:return Pe.visitState(P,F);case 1:return Pe.visitTransition(P,F);case 2:return Pe.visitSequence(P,F);case 3:return Pe.visitGroup(P,F);case 4:return Pe.visitAnimate(P,F);case 5:return Pe.visitKeyframes(P,F);case 6:return Pe.visitStyle(P,F);case 8:return Pe.visitReference(P,F);case 9:return Pe.visitAnimateChild(P,F);case 10:return Pe.visitAnimateRef(P,F);case 11:return Pe.visitQuery(P,F);case 12:return Pe.visitStagger(P,F);default:throw function we(Pe){return new h.vHH(3004,k)}()}}function Cr(Pe,P){return window.getComputedStyle(Pe)[P]}function Ji(Pe,P){const F=[];
1return"string"==typeof Pe?Pe.split(/\s*,\s*/).forEach(ce=>function Pr(Pe,P,F){if(":"==Pe[0]){const Kt=function ki(Pe,P){switch(Pe){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(F,ce)=>parseFloat(ce)>parseFloat(F);case":decrement":return(F,ce)=>parseFloat(ce)<parseFloat(F);default:return P.push(function me(Pe){return new h.vHH(3016,k)}()),"* => *"}}(Pe,F);if("function"==typeof Kt)return void P.push(Kt);Pe=Kt}const ce=Pe.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==ce||ce.length<4)return F.push(function Fe(Pe){return new h.vHH(3015,k)}()),P;const He=ce[1],dt=ce[2],Et=ce[3];P.push(Ni(He,Et));"<"==dt[0]&&!("*"==He&&"*"==Et)&&P.push(Ni(Et,He))}(ce,F,P)):F.push(Pe),F}const Ur=new Set(["true","1"]),ms=new Set(["false","0"]);function Ni(Pe,P){const F=Ur.has(Pe)||ms.has(Pe),ce=Ur.has(P)||ms.has(P);return(He,dt)=>{let Et="*"==Pe||Pe==He,kt="*"==P||P==dt;return!Et&&F&&"boolean"==typeof He&&(Et=He?Ur.has(Pe):ms.has(Pe)),!kt&&ce&&"boolean"==typeof dt&&(kt=dt?Ur.has(P):ms.has(P)),Et&&kt}}const jr=new RegExp("s*:selfs*,?","g");function or(Pe,P,F,ce){return new Wi(Pe).build(P,F,ce)}class Wi{constructor(P){this._driver=P}build(P,F,ce){const He=new Qr(F);this._resetContextStyleTimingState(He);const dt=Ii(this,U(P),He);return He.unsupportedCSSPropertiesFound.size&&He.unsupportedCSSPropertiesFound.keys(),dt}_resetContextStyleTimingState(P){P.currentQuerySelector="",P.collectedStyles={},P.collectedStyles[""]={},P.currentTime=0}visitTrigger(P,F){let ce=F.queryCount=0,He=F.depCount=0;const dt=[],Et=[];return"@"==P.name.charAt(0)&&F.errors.push(function ke(){return new h.vHH(3006,k)}()),P.definitions.forEach(kt=>{if(this._resetContextStyleTimingState(F),0==kt.type){const Kt=kt,En=Kt.name;En.toString().split(/\s*,\s*/).forEach(In=>{Kt.name=In,dt.push(this.visitState(Kt,F))}),Kt.name=En}else if(1==kt.type){const Kt=this.visitTransition(kt,F);ce+=Kt.queryCount,He+=Kt.depCount,Et.push(Kt)}else F.errors.push(function Ze(){return new h.vHH(3007,k)}())}),{type:7,name:P.name,states:dt,transitions:Et,queryCount:ce,depCount:He,options:null}}visitState(P,F){const ce=this.visitStyle(P.styles,F),He=P.options&&P.options.params||null;if(ce.containsDynamicStyles){const dt=new Set,Et=He||{};ce.styles.forEach(kt=>{if(Nt(kt)){const Kt=kt;Object.keys(Kt).forEach(En=>{j(Kt[En]).forEach(In=>{Et.hasOwnProperty(In)||dt.add(In)})})}}),dt.size&&(Je(dt.values()),F.errors.push(function Ye(Pe,P){return new h.vHH(3008,k)}()))}return{type:0,name:P.name,style:ce,options:He?{params:He}:null}}visitTransition(P,F){F.queryCount=0,F.depCount=0;const ce=Ii(this,U(P.animation),F);return{type:1,matchers:Ji(P.expr,F.errors),animation:ce,queryCount:F.queryCount,depCount:F.depCount,options:$t(P.options)}}visitSequence(P,F){return{type:2,steps:P.steps.map(ce=>Ii(this,ce,F)),options:$t(P.options)}}visitGroup(P,F){const ce=F.currentTime;let He=0;const dt=P.steps.map(Et=>{F.currentTime=ce;const kt=Ii(this,Et,F);return He=Math.max(He,F.currentTime),kt});return F.currentTime=He,{type:3,steps:dt,options:$t(P.options)}}visitAnimate(P,F){const ce=function Ft(Pe,P){if(Pe.hasOwnProperty("duration"))return Pe;if("number"==typeof Pe)return cn(Be(Pe,P).duration,0,"");const F=Pe;if(F.split(/\s+/).some(dt=>"{"==dt.charAt(0)&&"{"==dt.charAt(1))){const dt=cn(0,0,"");return dt.dynamic=!0,dt.strValue=F,dt}const He=Be(F,P);return cn(He.duration,He.delay,He.easing)}(P.timings,F.errors);F.currentAnimateTimings=ce;let He,dt=P.styles?P.styles:(0,m.oB)({});if(5==dt.type)He=this.visitKeyframes(dt,F);else{let Et=P.styles,kt=!1;if(!Et){kt=!0;const En={};ce.easing&&(En.easing=ce.easing),Et=(0,m.oB)(En)}F.currentTime+=ce.duration+ce.delay;const Kt=this.visitStyle(Et,F);Kt.isEmptyStep=kt,He=Kt}return F.currentAnimateTimings=null,{type:4,timings:ce,style:He,options:null}}visitStyle(P,F){const ce=this._makeStyleAst(P,F);return this._validateStyleAst(ce,F),ce}_makeStyleAst(P,F){const ce=[];Array.isArray(P.styles)?P.styles.forEach(Et=>{"string"==typeof Et?Et==m.l3?ce.push(Et):F.errors.push(function $e(Pe){return new h.vHH(3002,k)}()):ce.push(Et)}):ce.push(P.styles);let He=!1,dt=null;return ce.forEach(Et=>{if(Nt(Et)){const kt=Et,Kt=kt.easing;
1if(Kt&&(dt=Kt,delete kt.easing),!He)for(let En in kt)if(kt[En].toString().indexOf("{{")>=0){He=!0;break}}}),{type:6,styles:ce,easing:dt,offset:P.offset,containsDynamicStyles:He,options:null}}_validateStyleAst(P,F){const ce=F.currentAnimateTimings;let He=F.currentTime,dt=F.currentTime;ce&&dt>0&&(dt-=ce.duration+ce.delay),P.styles.forEach(Et=>{"string"!=typeof Et&&Object.keys(Et).forEach(kt=>{if(!this._driver.validateStyleProperty(kt))return delete Et[kt],void F.unsupportedCSSPropertiesFound.add(kt);const Kt=F.collectedStyles[F.currentQuerySelector],En=Kt[kt];let In=!0;En&&(dt!=He&&dt>=En.startTime&&He<=En.endTime&&(F.errors.push(function rt(Pe,P,F,ce,He){return new h.vHH(3010,k)}()),In=!1),dt=En.startTime),In&&(Kt[kt]={startTime:dt,endTime:He}),F.options&&function N(Pe,P,F){const ce=P.params||{},He=j(Pe);He.length&&He.forEach(dt=>{ce.hasOwnProperty(dt)||F.push(function _e(Pe){return new h.vHH(3001,k)}())})}(Et[kt],F.options,F.errors)})})}visitKeyframes(P,F){const ce={type:5,styles:[],options:null};if(!F.currentAnimateTimings)return F.errors.push(function je(){return new h.vHH(3011,k)}()),ce;let dt=0;const Et=[];let kt=!1,Kt=!1,En=0;const In=P.steps.map(Kr=>{const Wr=this._makeStyleAst(Kr,F);let us=null!=Wr.offset?Wr.offset:function _i(Pe){if("string"==typeof Pe)return null;let P=null;if(Array.isArray(Pe))Pe.forEach(F=>{if(Nt(F)&&F.hasOwnProperty("offset")){const ce=F;P=parseFloat(ce.offset),delete ce.offset}});else if(Nt(Pe)&&Pe.hasOwnProperty("offset")){const F=Pe;P=parseFloat(F.offset),delete F.offset}return P}(Wr.styles),rs=0;return null!=us&&(dt++,rs=Wr.offset=us),Kt=Kt||rs<0||rs>1,kt=kt||rs<En,En=rs,Et.push(rs),Wr});Kt&&F.errors.push(function zt(){return new h.vHH(3012,k)}()),kt&&F.errors.push(function ut(){return new h.vHH(3200,k)}());const Di=P.steps.length;let ji=0;dt>0&&dt<Di?F.errors.push(function ze(){return new h.vHH(3202,k)}()):0==dt&&(ji=1/(Di-1));const er=Di-1,Gn=F.currentTime,Qi=F.currentAnimateTimings,vr=Qi.duration;return In.forEach((Kr,Wr)=>{const us=ji>0?Wr==er?1:ji*Wr:Et[Wr],rs=us*vr;F.currentTime=Gn+Qi.delay+rs,Qi.duration=rs,this._validateStyleAst(Kr,F),Kr.offset=us,ce.styles.push(Kr)}),ce}visitReference(P,F){return{type:8,animation:Ii(this,U(P.animation),F),options:$t(P.options)}}visitAnimateChild(P,F){return F.depCount++,{type:9,options:$t(P.options)}}visitAnimateRef(P,F){return{type:10,animation:this.visitReference(P.animation,F),options:$t(P.options)}}visitQuery(P,F){const ce=F.currentQuerySelector,He=P.options||{};F.queryCount++,F.currentQuery=P;const[dt,Et]=function Ps(Pe){const P=!!Pe.split(/\s*,\s*/).find(F=>":self"==F);return P&&(Pe=Pe.replace(jr,"")),Pe=Pe.replace(/@\*/g,lt).replace(/@\w+/g,F=>lt+"-"+F.substr(1)).replace(/:animating/g,Se),[Pe,P]}(P.selector);F.currentQuerySelector=ce.length?ce+" "+dt:dt,bn(F.collectedStyles,F.currentQuerySelector,{});const kt=Ii(this,U(P.animation),F);return F.currentQuery=null,F.currentQuerySelector=ce,{type:11,selector:dt,limit:He.limit||0,optional:!!He.optional,includeSelf:Et,animation:kt,originalSelector:P.selector,options:$t(P.options)}}visitStagger(P,F){F.currentQuery||F.errors.push(function Re(){return new h.vHH(3013,k)}());const ce="full"===P.timings?{duration:0,delay:0,easing:"full"}:Be(P.timings,F.errors,!0);return{type:12,animation:Ii(this,U(P.animation),F),timings:ce,options:null}}}class Qr{constructor(P){this.errors=P,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Nt(Pe){return!Array.isArray(Pe)&&"object"==typeof Pe}function $t(Pe){return Pe?(Pe=Ot(Pe)).params&&(Pe.params=function Ds(Pe){return Pe?Ot(Pe):null}(Pe.params)):Pe={},Pe}function cn(Pe,P,F){return{duration:Pe,delay:P,easing:F}}function Un(Pe,P,F,ce,He,dt,Et=null,kt=!1){return{type:1,element:Pe,keyframes:P,preStyleProps:F,postStyleProps:ce,duration:He,delay:dt,totalTime:He+dt,easing:Et,subTimeline:kt}}class Mi{constructor(){this._map=new Map}get(P){return this._map.get(P)||[]}append(P,F){let ce=this._map.get(P);ce||this._map.set(P,ce=[]),ce.push(...F)}has(P){return this._map.has(P)}clear(){this._map.clear()}}const Gi=new RegExp(":enter","g"),io=new RegExp(":leave","g");function Ar(Pe,P,F,ce,He,dt={},Et={},kt,Kt,En=[]){return(new ns).buildKeyframes(Pe,P,F,ce,He,dt,Et,kt,Kt,En)}class ns{buildKeyframes(P,F,ce,He,dt,Et,kt,Kt,En,In=[]){En=En||new Mi;const Di=new Oo(P,F,En,He,dt,In,[]);Di.options=Kt,Di.currentTimeline.setStyles([Et],null,Di.errors,Kt),Ii(this,ce,Di);const ji=Di.timelines.filter(er=>er.containsAnimation());if(Object.keys(kt).length){let er;for(let Gn=ji.length-1;Gn>=0;Gn--){const Qi=ji[Gn];if(Qi.element===F){er=Qi;break}}er&&!er.allowOnlyTimelineStyles()&&er.setStyles([kt],null,Di.errors,Kt)}return ji.length?ji.map(er=>er.buildKeyframes()):[Un(F,[],[],[],0,0,"",!1)]}visitTrigger(P,F){}
vendor: 4,351 bytes, line 1
1visitState(P,F){}visitTransition(P,F){}visitAnimateChild(P,F){const ce=F.subInstructions.get(F.element);if(ce){const He=F.createSubContext(P.options),dt=F.currentTimeline.currentTime,Et=this._visitSubInstructions(ce,He,He.options);dt!=Et&&F.transformIntoNewTimeline(Et)}F.previousNode=P}visitAnimateRef(P,F){const ce=F.createSubContext(P.options);ce.transformIntoNewTimeline(),this.visitReference(P.animation,ce),F.transformIntoNewTimeline(ce.currentTimeline.currentTime),F.previousNode=P}_visitSubInstructions(P,F,ce){let dt=F.currentTimeline.currentTime;const Et=null!=ce.duration?Ke(ce.duration):null,kt=null!=ce.delay?Ke(ce.delay):null;return 0!==Et&&P.forEach(Kt=>{const En=F.appendInstructionToTimeline(Kt,Et,kt);dt=Math.max(dt,En.duration+En.delay)}),dt}visitReference(P,F){F.updateOptions(P.options,!0),Ii(this,P.animation,F),F.previousNode=P}visitSequence(P,F){const ce=F.subContextCount;let He=F;const dt=P.options;if(dt&&(dt.params||dt.delay)&&(He=F.createSubContext(dt),He.transformIntoNewTimeline(),null!=dt.delay)){6==He.previousNode.type&&(He.currentTimeline.snapshotCurrentStyles(),He.previousNode=co);const Et=Ke(dt.delay);He.delayNextStep(Et)}P.steps.length&&(P.steps.forEach(Et=>Ii(this,Et,He)),He.currentTimeline.applyStylesToKeyframe(),He.subContextCount>ce&&He.transformIntoNewTimeline()),F.previousNode=P}visitGroup(P,F){const ce=[];let He=F.currentTimeline.currentTime;const dt=P.options&&P.options.delay?Ke(P.options.delay):0;P.steps.forEach(Et=>{const kt=F.createSubContext(P.options);dt&&kt.delayNextStep(dt),Ii(this,Et,kt),He=Math.max(He,kt.currentTimeline.currentTime),ce.push(kt.currentTimeline)}),ce.forEach(Et=>F.currentTimeline.mergeTimelineCollectedStyles(Et)),F.transformIntoNewTimeline(He),F.previousNode=P}_visitTiming(P,F){if(P.dynamic){const ce=P.strValue;return Be(F.params?de(ce,F.params,F.errors):ce,F.errors)}return{duration:P.duration,delay:P.delay,easing:P.easing}}visitAnimate(P,F){const ce=F.currentAnimateTimings=this._visitTiming(P.timings,F),He=F.currentTimeline;ce.delay&&(F.incrementTime(ce.delay),He.snapshotCurrentStyles());const dt=P.style;5==dt.type?this.visitKeyframes(dt,F):(F.incrementTime(ce.duration),this.visitStyle(dt,F),He.applyStylesToKeyframe()),F.currentAnimateTimings=null,F.previousNode=P}visitStyle(P,F){const ce=F.currentTimeline,He=F.currentAnimateTimings;!He&&ce.getCurrentStyleProperties().length&&ce.forwardFrame();const dt=He&&He.easing||P.easing;P.isEmptyStep?ce.applyEmptyStep(dt):ce.setStyles(P.styles,dt,F.errors,F.options),F.previousNode=P}visitKeyframes(P,F){const ce=F.currentAnimateTimings,He=F.currentTimeline.duration,dt=ce.duration,kt=F.createSubContext().currentTimeline;kt.easing=ce.easing,P.styles.forEach(Kt=>{kt.forwardTime((Kt.offset||0)*dt),kt.setStyles(Kt.styles,Kt.easing,F.errors,F.options),kt.applyStylesToKeyframe()}),F.currentTimeline.mergeTimelineCollectedStyles(kt),F.transformIntoNewTimeline(He+dt),F.previousNode=P}visitQuery(P,F){const ce=F.currentTimeline.currentTime,He=P.options||{},dt=He.delay?Ke(He.delay):0;dt&&(6===F.previousNode.type||0==ce&&F.currentTimeline.getCurrentStyleProperties().length)&&(F.currentTimeline.snapshotCurrentStyles(),F.previousNode=co);let Et=ce;const kt=F.invokeQuery(P.selector,P.originalSelector,P.limit,P.includeSelf,!!He.optional,F.errors);F.currentQueryTotal=kt.length;let Kt=null;kt.forEach((En,In)=>{F.currentQueryIndex=In;const Di=F.createSubContext(P.options,En);dt&&Di.delayNextStep(dt),En===F.element&&(Kt=Di.currentTimeline),Ii(this,P.animation,Di),Di.currentTimeline.applyStylesToKeyframe(),Et=Math.max(Et,Di.currentTimeline.currentTime)}),F.currentQueryIndex=0,F.currentQueryTotal=0,F.transformIntoNewTimeline(Et),Kt&&(F.currentTimeline.mergeTimelineCollectedStyles(Kt),F.currentTimeline.snapshotCurrentStyles()),F.previousNode=P}visitStagger(P,F){const ce=F.parentContext,He=F.currentTimeline,dt=P.timings,Et=Math.abs(dt.duration),kt=Et*(F.currentQueryTotal-1);let Kt=Et*F.currentQueryIndex;switch(dt.duration<0?"reverse":dt.easing){case"reverse":Kt=kt-Kt;break;case"full":Kt=ce.currentStaggerTime}const In=F.currentTimeline;Kt&&In.delayNextStep(Kt);const Di=In.currentTime;Ii(this,P.animation,F),F.previousNode=P,ce.currentStaggerTime=He.currentTime-Di+(He.startTime-ce.currentTimeline.startTime)}}const co={};class Oo{constructor(P,F,ce,He,dt,Et,kt,Kt){this._driver=P,this.element=F,this.subInstru
1ctions=ce,this._enterClassName=He,this._leaveClassName=dt,this.errors=Et,this.timelines=kt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=co,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Kt||new oo(this._driver,F,0),kt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(P,F){if(!P)return;const ce=P;let He=this.options;null!=ce.duration&&(He.duration=Ke(ce.duration)),null!=ce.delay&&(He.delay=Ke(ce.delay));const dt=ce.params;if(dt){let Et=He.params;Et||(Et=this.options.params={}),Object.keys(dt).forEach(kt=>{(!F||!Et.hasOwnProperty(kt))&&(Et[kt]=de(dt[kt],Et,this.errors))})}}_copyOptions(){const P={};if(this.options){const F=this.options.params;if(F){const ce=P.params={};Object.keys(F).forEach(He=>{ce[He]=F[He]})}}return P}createSubContext(P=null,F,ce){const He=F||this.element,dt=new Oo(this._driver,He,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(He,ce||0));return dt.previousNode=this.previousNode,dt.currentAnimateTimings=this.currentAnimateTimings,dt.options=this._copyOptions(),dt.updateOptions(P),dt.currentQueryIndex=this.currentQueryIndex,dt.currentQueryTotal=this.currentQueryTotal,dt.parentContext=this,this.subContextCount++,dt}transformIntoNewTimeline(P){return this.previousNode=co,this.currentTimeline=this.currentTimeline.fork(this.element,P),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(P,F,ce){const He={duration:null!=F?F:P.duration,delay:this.currentTimeline.currentTime+(null!=ce?ce:0)+P.delay,easing:""},dt=new ho(this._driver,P.element,P.keyframes,P.preStyleProps,P.postStyleProps,He,P.stretchStartingKeyframe);return this.timelines.push(dt),He}incrementTime(P){this.currentTimeline.forwardTime(this.currentTimeline.duration+P)}delayNextStep(P){P>0&&this.currentTimeline.delayNextStep(P)}invokeQuery(P,F,ce,He,dt,Et){let kt=[];if(He&&kt.push(this.element),P.length>0){P=(P=P.replace(Gi,"."+this._enterClassName)).replace(io,"."+this._leaveClassName);let En=this._driver.query(this.element,P,1!=ce);0!==ce&&(En=ce<0?En.slice(En.length+ce,En.length):En.slice(0,ce)),kt.push(...En)}return!dt&&0==kt.length&&Et.push(function tt(Pe){return new h.vHH(3014,k)}()),kt}}class oo{constructor(P,F,ce,He){this._driver=P,this.element=F,this.startTime=ce,this._elementTimelineStylesLookup=He,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(F),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(F,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(P){const F=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||F?(this.forwardTime(this.currentTime+P),F&&this.snapshotCurrentStyles()):this.startTime+=P}fork(P,F){return this.applyStylesToKeyframe(),new oo(this._driver,P,F||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(P){this.applyStylesToKeyframe(),this.duration=P,this._loadKeyframe()}_updateStyle(P,F){this._localTimelineStyles[P]=F,this._globalTimelineStyles[P]=F,this._styleSummary[P]={time:this.currentTime,value:F}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(P){P&&(this._previousKeyframe.easing=P),Object.keys(this._globalTimelineStyles).forEac
1h(F=>{this._backFill[F]=this._globalTimelineStyles[F]||m.l3,this._currentKeyframe[F]=m.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(P,F,ce,He){F&&(this._previousKeyframe.easing=F);const dt=He&&He.params||{},Et=function ws(Pe,P){const F={};let ce;return Pe.forEach(He=>{"*"===He?(ce=ce||Object.keys(P),ce.forEach(dt=>{F[dt]=m.l3})):yn(He,!1,F)}),F}(P,this._globalTimelineStyles);Object.keys(Et).forEach(kt=>{const Kt=de(Et[kt],dt,ce);this._pendingStyles[kt]=Kt,this._localTimelineStyles.hasOwnProperty(kt)||(this._backFill[kt]=this._globalTimelineStyles.hasOwnProperty(kt)?this._globalTimelineStyles[kt]:m.l3),this._updateStyle(kt,Kt)})}applyStylesToKeyframe(){const P=this._pendingStyles,F=Object.keys(P);0!=F.length&&(this._pendingStyles={},F.forEach(ce=>{this._currentKeyframe[ce]=P[ce]}),Object.keys(this._localTimelineStyles).forEach(ce=>{this._currentKeyframe.hasOwnProperty(ce)||(this._currentKeyframe[ce]=this._localTimelineStyles[ce])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(P=>{const F=this._localTimelineStyles[P];this._pendingStyles[P]=F,this._updateStyle(P,F)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const P=[];for(let F in this._currentKeyframe)P.push(F);return P}mergeTimelineCollectedStyles(P){Object.keys(P._styleSummary).forEach(F=>{const ce=this._styleSummary[F],He=P._styleSummary[F];(!ce||He.time>ce.time)&&this._updateStyle(F,He.value)})}buildKeyframes(){this.applyStylesToKeyframe();const P=new Set,F=new Set,ce=1===this._keyframes.size&&0===this.duration;let He=[];this._keyframes.forEach((kt,Kt)=>{const En=yn(kt,!0);Object.keys(En).forEach(In=>{const Di=En[In];Di==m.k1?P.add(In):Di==m.l3&&F.add(In)}),ce||(En.offset=Kt/this.duration),He.push(En)});const dt=P.size?Je(P.values()):[],Et=F.size?Je(F.values()):[];if(ce){const kt=He[0],Kt=Ot(kt);kt.offset=0,Kt.offset=1,He=[kt,Kt]}return Un(this.element,He,dt,Et,this.duration,this.startTime,this.easing,!1)}}class ho extends oo{constructor(P,F,ce,He,dt,Et,kt=!1){super(P,F,Et.delay),this.keyframes=ce,this.preStyleProps=He,this.postStyleProps=dt,this._stretchStartingKeyframe=kt,this.timings={duration:Et.duration,delay:Et.delay,easing:Et.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let P=this.keyframes,{delay:F,duration:ce,easing:He}=this.timings;if(this._stretchStartingKeyframe&&F){const dt=[],Et=ce+F,kt=F/Et,Kt=yn(P[0],!1);Kt.offset=0,dt.push(Kt);const En=yn(P[0],!1);En.offset=go(kt),dt.push(En);const In=P.length-1;for(let Di=1;Di<=In;Di++){let ji=yn(P[Di],!1);ji.offset=go((F+ji.offset*ce)/Et),dt.push(ji)}ce=Et,F=0,He="",P=dt}return Un(this.element,P,this.preStyleProps,this.postStyleProps,ce,F,He,!0)}}function go(Pe,P=3){const F=Math.pow(10,P-1);return Math.round(Pe*F)/F}class Ks{}class Ui extends Ks{normalizePropertyName(P,F){return Ht(P)}normalizeStyleValue(P,F,ce,He){let dt="";const Et=ce.toString().trim();if(Ys[F]&&0!==ce&&"0"!==ce)if("number"==typeof ce)dt="px";else{const kt=ce.match(/^[+-]?[\d\.]+([a-z]*)$/);kt&&0==kt[1].length&&He.push(function be(Pe,P){return new h.vHH(3005,k)}())}return Et+dt}}const Ys=(()=>function dr(Pe){const P={};return Pe.forEach(F=>P[F]=!0),P}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function aa(Pe,P,F,ce,He,dt,Et,kt,Kt,En,In,Di,ji){return{type:0,element:Pe,triggerName:P,isRemovalTransition:He,fromState:F,fromStyles:dt,toState:ce,toStyles:Et,timelines:kt,queriedElements:Kt,preStyleProps:En,postStyleProps:In,totalTime:Di,errors:ji}}const yo={};class Ms{constructor(P,F,ce){this._triggerName=P,this.ast=F,this._stateStyles=ce}match(P,F,ce,He){return function vo(Pe,P,F,ce,He){return Pe.some(dt=>dt(P,F,ce,He))}(this.ast.matchers,P,F,ce,He)}buildStyles(P,F,ce){const He=this._stateStyles["*"],dt=this._stateStyles[P],Et=He?He.buildStyles(F,ce):{};return dt?dt.buildStyles(F,ce):Et}build(P,F,ce,He,dt,Et,kt,Kt,En,In){const Di=[],ji=this.ast.options&&this.ast.options.params||yo,Gn=this.buildStyles(ce,kt&&kt.params||yo,Di),Qi=Kt&&Kt.params||yo,vr=this.buildStyles(He,Qi,Di),Kr=new Set,Wr=new Map,us=new Map,rs="void"===He,es={params:Object.assign(Object.assign({},ji),Qi)},Zr=In?[]:Ar(P,F,this.ast.animation,dt,Et,Gn,vr,es,En,Di);let ur=0;if(Zr.forEach(ea=>{ur=Math.max(ea.duration+ea.delay,ur)}),Di.length)return aa(F,this._triggerName,ce,He,rs,Gn,vr,[],[],Wr,us,ur,Di);Zr.forEach(ea=>{const Xs=ea.element,Bs=bn(Wr,Xs,{});ea.preStyleProps.forEach(Hs=>Bs[Hs]=!0);const Sr=bn(us,Xs,{});ea.postStyleProps.forEach(Hs=>Sr[Hs]=!0),Xs!==F&&Kr.add(Xs)});const Or=Je(Kr.values());return aa(F,this._triggerName,ce,He,rs,Gn,vr,Zr,Or,Wr,us,ur)}}class _s{constructor(P,F,ce){this.styles=P,this.defaultParams=F,this.normalizer=ce}buildStyles(P,F){const ce={},He=Ot(this.defaultParams);return Object.keys(P).forEach(dt=>{const Et=P[dt];null!=Et&&(He[dt]=Et)}
1),this.styles.styles.forEach(dt=>{if("string"!=typeof dt){const Et=dt;Object.keys(Et).forEach(kt=>{let Kt=Et[kt];Kt.length>1&&(Kt=de(Kt,He,F));const En=this.normalizer.normalizePropertyName(kt,F);Kt=this.normalizer.normalizeStyleValue(kt,En,Kt,F),ce[En]=Kt})}}),ce}}class is{constructor(P,F,ce){this.name=P,this.ast=F,this._normalizer=ce,this.transitionFactories=[],this.states={},F.states.forEach(He=>{this.states[He.name]=new _s(He.style,He.options&&He.options.params||{},ce)}),Es(this.states,"true","1"),Es(this.states,"false","0"),F.transitions.forEach(He=>{this.transitionFactories.push(new Ms(P,He,this.states))}),this.fallbackTransition=function gs(Pe,P,F){return new Ms(Pe,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Et,kt)=>!0],options:null,queryCount:0,depCount:0},P)}(P,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(P,F,ce,He){return this.transitionFactories.find(Et=>Et.match(P,F,ce,He))||null}matchStyles(P,F,ce){return this.fallbackTransition.buildStyles(P,F,ce)}}function Es(Pe,P,F){Pe.hasOwnProperty(P)?Pe.hasOwnProperty(F)||(Pe[F]=Pe[P]):Pe.hasOwnProperty(F)&&(Pe[P]=Pe[F])}const Os=new Mi;class fo{constructor(P,F,ce){this.bodyNode=P,this._driver=F,this._normalizer=ce,this._animations={},this._playersById={},this.players=[]}register(P,F){const ce=[],dt=or(this._driver,F,ce,[]);if(ce.length)throw function jn(Pe){return new h.vHH(3503,k)}();this._animations[P]=dt}_buildPlayer(P,F,ce){const He=P.element,dt=ft(0,this._normalizer,0,P.keyframes,F,ce);return this._driver.animate(He,dt,P.duration,P.delay,P.easing,[],!0)}create(P,F,ce={}){const He=[],dt=this._animations[P];let Et;const kt=new Map;if(dt?(Et=Ar(this._driver,F,dt,Si,ni,{},{},ce,Os,He),Et.forEach(In=>{const Di=bn(kt,In.element,{});In.postStyleProps.forEach(ji=>Di[ji]=null)})):(He.push(function en(){return new h.vHH(3300,k)}()),Et=[]),He.length)throw function Wn(Pe){return new h.vHH(3504,k)}();kt.forEach((In,Di)=>{Object.keys(In).forEach(ji=>{In[ji]=this._driver.computeStyle(Di,ji,m.l3)})});const En=vt(Et.map(In=>{const Di=kt.get(In.element);return this._buildPlayer(In,{},Di)}));return this._playersById[P]=En,En.onDestroy(()=>this.destroy(P)),this.players.push(En),En}destroy(P){const F=this._getPlayer(P);F.destroy(),delete this._playersById[P];const ce=this.players.indexOf(F);ce>=0&&this.players.splice(ce,1)}_getPlayer(P){const F=this._playersById[P];if(!F)throw function Mn(Pe){return new h.vHH(3301,k)}();return F}listen(P,F,ce,He){const dt=_n(F,"","","");return Ut(this._getPlayer(P),ce,dt,He),()=>{}}command(P,F,ce,He){if("register"==ce)return void this.register(P,He[0]);if("create"==ce)return void this.create(P,F,He[0]||{});const dt=this._getPlayer(P);switch(ce){case"play":dt.play();break;case"pause":dt.pause();break;case"reset":dt.reset();break;case"restart":dt.restart();break;case"finish":dt.finish();break;case"init":dt.init();break;case"setPosition":dt.setPosition(parseFloat(He[0]));break;case"destroy":this.destroy(P)}}}const _a="ng-animate-queued",bo="ng-animate-disabled",gr=[],Cs={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Vs={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ri="__ng_removed";class ri{constructor(P,F=""){this.namespaceId=F;const ce=P&&P.hasOwnProperty("value");if(this.value=function fe(Pe){return null!=Pe?Pe:null}(ce?P.value:P),ce){const dt=Ot(P);delete dt.value,this.options=dt}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(P){const F=P.params;if(F){const ce=this.options.params;Object.keys(F).forEach(He=>{null==ce[He]&&(ce[He]=F[He])})}}}const xi="void",Yr=new ri(xi);class rr{constructor(P,F,ce){this.id=P,this.hostElement=F,this._engine=ce,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"
1+P,hn(F,this._hostClassName)}listen(P,F,ce,He){if(!this._triggers.hasOwnProperty(F))throw function Bn(Pe,P){return new h.vHH(3302,k)}();if(null==ce||0==ce.length)throw function Dn(Pe){return new h.vHH(3303,k)}();if(!function le(Pe){return"start"==Pe||"done"==Pe}(ce))throw function vn(Pe,P){return new h.vHH(3400,k)}();const dt=bn(this._elementListeners,P,[]),Et={name:F,phase:ce,callback:He};dt.push(Et);const kt=bn(this._engine.statesByElement,P,{});return kt.hasOwnProperty(F)||(hn(P,Qn),hn(P,Qn+"-"+F),kt[F]=Yr),()=>{this._engine.afterFlush(()=>{const Kt=dt.indexOf(Et);Kt>=0&&dt.splice(Kt,1),this._triggers[F]||delete kt[F]})}}register(P,F){return!this._triggers[P]&&(this._triggers[P]=F,!0)}_getTrigger(P){const F=this._triggers[P];if(!F)throw function Dt(Pe){return new h.vHH(3401,k)}();return F}trigger(P,F,ce,He=!0){const dt=this._getTrigger(F),Et=new Ma(this.id,F,P);let kt=this._engine.statesByElement.get(P);kt||(hn(P,Qn),hn(P,Qn+"-"+F),this._engine.statesByElement.set(P,kt={}));let Kt=kt[F];const En=new ri(ce,this.id);if(!(ce&&ce.hasOwnProperty("value"))&&Kt&&En.absorbOptions(Kt.options),kt[F]=En,Kt||(Kt=Yr),En.value!==xi&&Kt.value===En.value){if(!function $i(Pe,P){const F=Object.keys(Pe),ce=Object.keys(P);if(F.length!=ce.length)return!1;for(let He=0;He<F.length;He++){const dt=F[He];if(!P.hasOwnProperty(dt)||Pe[dt]!==P[dt])return!1}return!0}(Kt.params,En.params)){const Qi=[],vr=dt.matchStyles(Kt.value,Kt.params,Qi),Kr=dt.matchStyles(En.value,En.params,Qi);Qi.length?this._engine.reportError(Qi):this._engine.afterFlush(()=>{De(P,vr),Oe(P,Kr)})}return}const ji=bn(this._engine.playersByElement,P,[]);ji.forEach(Qi=>{Qi.namespaceId==this.id&&Qi.triggerName==F&&Qi.queued&&Qi.destroy()});let er=dt.matchTransition(Kt.value,En.value,P,En.params),Gn=!1;if(!er){if(!He)return;er=dt.fallbackTransition,Gn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:P,triggerName:F,transition:er,fromState:Kt,toState:En,player:Et,isFallbackTransition:Gn}),Gn||(hn(P,_a),Et.onStart(()=>{li(P,_a)})),Et.onDone(()=>{let Qi=this.players.indexOf(Et);Qi>=0&&this.players.splice(Qi,1);const vr=this._engine.playersByElement.get(P);if(vr){let Kr=vr.indexOf(Et);Kr>=0&&vr.splice(Kr,1)}}),this.players.push(Et),ji.push(Et),Et}deregister(P){delete this._triggers[P],this._engine.statesByElement.forEach((F,ce)=>{delete F[P]}),this._elementListeners.forEach((F,ce)=>{this._elementListeners.set(ce,F.filter(He=>He.name!=P))})}clearElementCache(P){this._engine.statesByElement.delete(P),this._elementListeners.delete(P);const F=this._engine.playersByElement.get(P);
1F&&(F.forEach(ce=>ce.destroy()),this._engine.playersByElement.delete(P))}_signalRemovalForInnerTriggers(P,F){const ce=this._engine.driver.query(P,lt,!0);ce.forEach(He=>{if(He[Ri])return;const dt=this._engine.fetchNamespacesByElement(He);dt.size?dt.forEach(Et=>Et.triggerLeaveAnimation(He,F,!1,!0)):this.clearElementCache(He)}),this._engine.afterFlushAnimationsDone(()=>ce.forEach(He=>this.clearElementCache(He)))}triggerLeaveAnimation(P,F,ce,He){const dt=this._engine.statesByElement.get(P),Et=new Map;if(dt){const kt=[];if(Object.keys(dt).forEach(Kt=>{if(Et.set(Kt,dt[Kt].value),this._triggers[Kt]){const En=this.trigger(P,Kt,xi,He);En&&kt.push(En)}}),kt.length)return this._engine.markElementAsRemoved(this.id,P,!0,F,Et),ce&&vt(kt).onDone(()=>this._engine.processLeaveNode(P)),!0}return!1}prepareLeaveAnimationListeners(P){const F=this._elementListeners.get(P),ce=this._engine.statesByElement.get(P);if(F&&ce){const He=new Set;F.forEach(dt=>{const Et=dt.name;if(He.has(Et))return;He.add(Et);const Kt=this._triggers[Et].fallbackTransition,En=ce[Et]||Yr,In=new ri(xi),Di=new Ma(this.id,Et,P);this._engine.totalQueuedPlayers++,this._queue.push({element:P,triggerName:Et,transition:Kt,fromState:En,toState:In,player:Di,isFallbackTransition:!0})})}}removeNode(P,F){const ce=this._engine;if(P.childElementCount&&this._signalRemovalForInnerTriggers(P,F),this.triggerLeaveAnimation(P,F,!0))return;let He=!1;if(ce.totalAnimations){const dt=ce.players.length?ce.playersByQueriedElement.get(P):[];if(dt&&dt.length)He=!0;else{let Et=P;for(;Et=Et.parentNode;)if(ce.statesByElement.get(Et)){He=!0;break}}}if(this.prepareLeaveAnimationListeners(P),He)ce.markElementAsRemoved(this.id,P,!1,F);else{const dt=P[Ri];(!dt||dt===Cs)&&(ce.afterFlush(()=>this.clearElementCache(P)),ce.destroyInnerAnimations(P),ce._onRemovalComplete(P,F))}}insertNode(P,F){hn(P,this._hostClassName)}drainQueuedTransitions(P){const F=[];return this._queue.forEach(ce=>{const He=ce.player;if(He.destroyed)return;const dt=ce.element,Et=this._elementListeners.get(dt);Et&&Et.forEach(kt=>{if(kt.name==ce.triggerName){const Kt=_n(dt,ce.triggerName,ce.fromState.value,ce.toState.value);Kt._data=P,Ut(ce.player,kt.phase,Kt,kt.callback)}}),He.markedForDestroy?this._engine.afterFlush(()=>{He.destroy()}):F.push(ce)}),this._queue=[],F.sort((ce,He)=>{const dt=ce.transition.ast.depCount,Et=He.transition.ast.depCount;return 0==dt||0==Et?dt-Et:this._engine.driver.containsElement(ce.element,He.element)?1:-1})}destroy(P){this.players.forEach(F=>F.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,P)}elementContainsData(P){let F=!1;return this._elementListeners.has(P)&&(F=!0),F=!!this._queue.find(ce=>ce.element===P)||F,F}}class wo{constructor(P,F,ce){this.bodyNode=P,this.driver=F,this._normalizer=ce,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(He,dt)=>{}}_onRemovalComplete(P,F){this.onRemovalComplete(P,F)}get queuedPlayers(){const P=[];return this._namespaceList.forEach(F=>{F.players.forEach(ce=>{ce.queued&&P.push(ce)})}),P}createNamespace(P,F){const ce=new rr(P,F,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,F)?this._balanceNamespaceList(ce,F):(this.newHostElements.set(F,ce),this.collectEnterElement(F)),this._namespaceLookup[P]=ce}_balanceNamespaceList(P,F){const ce=this._namespaceList,He=this.namespacesByHostElement,dt=ce.length-1;if(dt>=0){let Et=!1;if(void 0!==this.driver.getParentElement){let kt=this.driver.getParentElement(F);for(;kt;){const Kt=He.get(kt);if(Kt){const En=ce.indexOf(Kt);ce.splice(En+1,0,P),Et=!0;break}kt=this.driver.getParentElement(kt)}}else for(let kt=dt;kt>=0;kt--)if(this.driver.containsElement(ce[kt].hostElement,F)){ce.splice(kt+1,0,P),Et=!0;break}Et||ce.unshift(P)}else ce.push(P);return He.set(F,P),P}register(P,F){let ce=this._namespaceLookup[P];return ce||(ce=this.createNamespace(P,F)),ce}registerTrigger(P,F,ce){let He=this._namespaceLookup[P];He&&He.register(F,ce)&&this.totalAnimations++}destroy(P,F){if(!P)return;const ce=this._fetchNamespace(P);this.afterFlush(()=>{this.namespacesByHostElement.delete(ce.hostElement),delete this._namespaceLookup[P];const He=this._namespaceList.indexOf(ce);He>=0&&this._namespaceList.splice(He,1)}),this.afterFlushAnimationsDone(()=>ce.destroy(F))}_fetchNamespace(P){return this._namespaceLookup[P]}fetchNamespacesByElement(P){const F=new Set,ce=this.statesByElement.get(P);if(ce){const He=Object.keys(ce);for(let dt=0;dt<He.length;dt++){const Et=ce[He[dt]].namespaceId;if(Et){const kt=this._fetchNamespace(Et);kt&&F.add(kt)}}}return F}trigger(P,F,ce,He){if(Ne(F)){const dt=this._fetchNamespace(P);if(dt)return dt.trigger(F,ce,He),!0}return!1}insertNode(P,F,ce,He){if(!Ne(F))return;const dt=F[Ri];if(dt&&dt.setForRemoval){dt.setForRemoval=!1,dt.setForMove=!0;const Et=this.collectedLeaveElements.indexOf(F);Et>=0&&this.collectedLeaveElements.splice(Et,1)}if(P){const Et=this._fetchNamespace(P);
vendor: 4,119 bytes, line 1
1Et&&Et.insertNode(F,ce)}He&&this.collectEnterElement(F)}collectEnterElement(P){this.collectedEnterElements.push(P)}markElementAsDisabled(P,F){F?this.disabledNodes.has(P)||(this.disabledNodes.add(P),hn(P,bo)):this.disabledNodes.has(P)&&(this.disabledNodes.delete(P),li(P,bo))}removeNode(P,F,ce,He){if(Ne(F)){const dt=P?this._fetchNamespace(P):null;if(dt?dt.removeNode(F,He):this.markElementAsRemoved(P,F,!1,He),ce){const Et=this.namespacesByHostElement.get(F);Et&&Et.id!==P&&Et.removeNode(F,He)}}else this._onRemovalComplete(F,He)}markElementAsRemoved(P,F,ce,He,dt){this.collectedLeaveElements.push(F),F[Ri]={namespaceId:P,setForRemoval:He,hasAnimation:ce,removedBeforeQueried:!1,previousTriggersValues:dt}}listen(P,F,ce,He,dt){return Ne(F)?this._fetchNamespace(P).listen(F,ce,He,dt):()=>{}}_buildInstruction(P,F,ce,He,dt){return P.transition.build(this.driver,P.element,P.fromState.value,P.toState.value,ce,He,P.fromState.options,P.toState.options,F,dt)}destroyInnerAnimations(P){let F=this.driver.query(P,lt,!0);F.forEach(ce=>this.destroyActiveAnimationsForElement(ce)),0!=this.playersByQueriedElement.size&&(F=this.driver.query(P,Se,!0),F.forEach(ce=>this.finishActiveQueriedAnimationOnElement(ce)))}destroyActiveAnimationsForElement(P){const F=this.playersByElement.get(P);F&&F.forEach(ce=>{ce.queued?ce.markedForDestroy=!0:ce.destroy()})}finishActiveQueriedAnimationOnElement(P){const F=this.playersByQueriedElement.get(P);F&&F.forEach(ce=>ce.finish())}whenRenderingDone(){return new Promise(P=>{if(this.players.length)return vt(this.players).onDone(()=>P());P()})}processLeaveNode(P){var F;const ce=P[Ri];if(ce&&ce.setForRemoval){if(P[Ri]=Cs,ce.namespaceId){this.destroyInnerAnimations(P);const He=this._fetchNamespace(ce.namespaceId);He&&He.clearElementCache(P)}this._onRemovalComplete(P,ce.setForRemoval)}(null===(F=P.classList)||void 0===F?void 0:F.contains(bo))&&this.markElementAsDisabled(P,!1),this.driver.query(P,".ng-animate-disabled",!0).forEach(He=>{this.markElementAsDisabled(He,!1)})}flush(P=-1){let F=[];if(this.newHostElements.size&&(this.newHostElements.forEach((ce,He)=>this._balanceNamespaceList(ce,He)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let ce=0;ce<this.collectedEnterElements.length;ce++)hn(this.collectedEnterElements[ce],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const ce=[];try{F=this._flushAnimations(ce,P)}finally{for(let He=0;He<ce.length;He++)ce[He]()}}else for(let ce=0;ce<this.collectedLeaveElements.length;ce++)this.processLeaveNode(this.collectedLeaveElements[ce]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(ce=>ce()),this._flushFns=[],this._whenQuietFns.length){const ce=this._whenQuietFns;this._whenQuietFns=[],F.length?vt(F).onDone(()=>{ce.forEach(He=>He())}):ce.forEach(He=>He())}}reportError(P){throw function Mt(Pe){return new h.vHH(3402,k)}()}_flushAnimations(P,F){const ce=new Mi,He=[],dt=new Map,Et=[],kt=new Map,Kt=new Map,En=new Map,In=new Set;this.disabledNodes.forEach(bi=>{In.add(bi);const Ei=this.driver.query(bi,".ng-animate-queued",!0);for(let Vi=0;Vi<Ei.length;Vi++)In.add(Ei[Vi])});const Di=this.bodyNode,ji=Array.from(this.statesByElement.keys()),er=dn(ji,this.collectedEnterElements),Gn=new Map;let Qi=0;er.forEach((bi,Ei)=>{const Vi=Si+Qi++;Gn.set(Ei,Vi),bi.forEach(Ti=>hn(Ti,Vi))});const vr=[],Kr=new Set,Wr=new Set;for(let bi=0;bi<this.collectedLeaveElements.length;bi++){const Ei=this.collectedLeaveElements[bi],Vi=Ei[Ri];Vi&&Vi.setForRemoval&&(vr.push(Ei),Kr.add(Ei),Vi.hasAnimation?this.driver.query(Ei,".ng-star-inserted",!0).forEach(Ti=>Kr.add(Ti)):Wr.add(Ei))}const us=new Map,rs=dn(ji,Array.from(Kr));rs.forEach((bi,Ei)=>{const Vi=ni+Qi++;us.set(Ei,Vi),bi.forEach(Ti=>hn(Ti,Vi))}),P.push(()=>{er.forEach((bi,Ei)=>{const Vi=Gn.get(Ei);bi.forEach(Ti=>li(Ti,Vi))}),rs.forEach((bi,Ei)=>{const Vi=us.get(Ei);bi.forEach(Ti=>li(Ti,Vi))}),vr.forEach(bi=>{this.processLeaveNode(bi)})});const es=[],Zr=[];for(let bi=this._namespaceList.length-1;bi>=0;
1bi--)this._namespaceList[bi].drainQueuedTransitions(F).forEach(Vi=>{const Ti=Vi.player,ts=Vi.element;if(es.push(Ti),this.collectedEnterElements.length){const ro=ts[Ri];if(ro&&ro.setForMove){if(ro.previousTriggersValues&&ro.previousTriggersValues.has(Vi.triggerName)){const Zs=ro.previousTriggersValues.get(Vi.triggerName),eo=this.statesByElement.get(Vi.element);eo&&eo[Vi.triggerName]&&(eo[Vi.triggerName].value=Zs)}return void Ti.destroy()}}const bs=!Di||!this.driver.containsElement(Di,ts),qr=us.get(ts),Co=Gn.get(ts),Rr=this._buildInstruction(Vi,ce,Co,qr,bs);if(Rr.errors&&Rr.errors.length)return void Zr.push(Rr);if(bs)return Ti.onStart(()=>De(ts,Rr.fromStyles)),Ti.onDestroy(()=>Oe(ts,Rr.toStyles)),void He.push(Ti);if(Vi.isFallbackTransition)return Ti.onStart(()=>De(ts,Rr.fromStyles)),Ti.onDestroy(()=>Oe(ts,Rr.toStyles)),void He.push(Ti);const Ws=[];Rr.timelines.forEach(ro=>{ro.stretchStartingKeyframe=!0,this.disabledNodes.has(ro.element)||Ws.push(ro)}),Rr.timelines=Ws,ce.append(ts,Rr.timelines),Et.push({instruction:Rr,player:Ti,element:ts}),Rr.queriedElements.forEach(ro=>bn(kt,ro,[]).push(Ti)),Rr.preStyleProps.forEach((ro,Zs)=>{const eo=Object.keys(ro);if(eo.length){let Vr=Kt.get(Zs);Vr||Kt.set(Zs,Vr=new Set),eo.forEach(Yo=>Vr.add(Yo))}}),Rr.postStyleProps.forEach((ro,Zs)=>{const eo=Object.keys(ro);let Vr=En.get(Zs);Vr||En.set(Zs,Vr=new Set),eo.forEach(Yo=>Vr.add(Yo))})});if(Zr.length){const bi=[];Zr.forEach(Ei=>{bi.push(function At(Pe,P){return new h.vHH(3505,k)}())}
1),es.forEach(Ei=>Ei.destroy()),this.reportError(bi)}const ur=new Map,Or=new Map;Et.forEach(bi=>{const Ei=bi.element;ce.has(Ei)&&(Or.set(Ei,Ei),this._beforeAnimationBuild(bi.player.namespaceId,bi.instruction,ur))}),He.forEach(bi=>{const Ei=bi.element;this._getPreviousPlayers(Ei,!1,bi.namespaceId,bi.triggerName,null).forEach(Ti=>{bn(ur,Ei,[]).push(Ti),Ti.destroy()})});const ea=vr.filter(bi=>Xr(bi,Kt,En)),Xs=new Map;Ct(Xs,this.driver,Wr,En,m.l3).forEach(bi=>{Xr(bi,Kt,En)&&ea.push(bi)});const Sr=new Map;er.forEach((bi,Ei)=>{Ct(Sr,this.driver,new Set(bi),Kt,m.k1)}),ea.forEach(bi=>{const Ei=Xs.get(bi),Vi=Sr.get(bi);Xs.set(bi,Object.assign(Object.assign({},Ei),Vi))});const Hs=[],Wo=[],ao={};Et.forEach(bi=>{const{element:Ei,player:Vi,instruction:Ti}=bi;if(ce.has(Ei)){if(In.has(Ei))return Vi.onDestroy(()=>Oe(Ei,Ti.toStyles)),Vi.disabled=!0,Vi.overrideTotalTime(Ti.totalTime),void He.push(Vi);let ts=ao;if(Or.size>1){let qr=Ei;const Co=[];for(;qr=qr.parentNode;){const Rr=Or.get(qr);if(Rr){ts=Rr;break}Co.push(qr)}Co.forEach(Rr=>Or.set(Rr,ts))}const bs=this._buildAnimation(Vi.namespaceId,Ti,ur,dt,Sr,Xs);if(Vi.setRealPlayer(bs),ts===ao)Hs.push(Vi);else{const qr=this.playersByElement.get(ts);qr&&qr.length&&(Vi.parentPlayer=vt(qr)),He.push(Vi)}}else De(Ei,Ti.fromStyles),Vi.onDestroy(()=>Oe(Ei,Ti.toStyles)),Wo.push(Vi),In.has(Ei)&&He.push(Vi)}),Wo.forEach(bi=>{const Ei=dt.get(bi.element);if(Ei&&Ei.length){const Vi=vt(Ei);bi.setRealPlayer(Vi)}}),He.forEach(bi=>{bi.parentPlayer?bi.syncPlayerEvents(bi.parentPlayer):bi.destroy()});for(let bi=0;bi<vr.length;bi++){const Ei=vr[bi],Vi=Ei[Ri];if(li(Ei,ni),Vi&&Vi.hasAnimation)continue;let Ti=[];if(kt.size){let bs=kt.get(Ei);bs&&bs.length&&Ti.push(...bs);let qr=this.driver.query(Ei,Se,!0);for(let Co=0;Co<qr.length;Co++){let Rr=kt.get(qr[Co]);Rr&&Rr.length&&Ti.push(...Rr)}}const ts=Ti.filter(bs=>!bs.destroyed);ts.length?Tr(this,Ei,ts):this.processLeaveNode(Ei)}return vr.length=0,Hs.forEach(bi=>{this.players.push(bi),bi.onDone(()=>{bi.destroy();const Ei=this.players.indexOf(bi);this.players.splice(Ei,1)}),bi.play()}),Hs}elementContainsData(P,F){let ce=!1;const He=F[Ri];return He&&He.setForRemoval&&(ce=!0),this.playersByElement.has(F)&&(ce=!0),this.playersByQueriedElement.has(F)&&(ce=!0),this.statesByElement.has(F)&&(ce=!0),this._fetchNamespace(P).elementContainsData(F)||ce}afterFlush(P){this._flushFns.push(P)}afterFlushAnimationsDone(P){this._whenQuietFns.push(P)}_getPreviousPlayers(P,F,ce,He,dt){let Et=[];if(F){const kt=this.playersByQueriedElement.get(P);kt&&(Et=kt)}else{const kt=this.playersByElement.get(P);if(kt){const Kt=!dt||dt==xi;kt.forEach(En=>{En.queued||!Kt&&En.triggerName!=He||Et.push(En)})}}return(ce||He)&&(Et=Et.filter(kt=>!(ce&&ce!=kt.namespaceId||He&&He!=kt.triggerName))),Et}_beforeAnimationBuild(P,F,ce){const dt=F.element,Et=F.isRemovalTransition?void 0:P,kt=F.isRemovalTransition?void 0:F.triggerName;for(const Kt of F.timelines){const En=Kt.element,In=En!==dt,Di=bn(ce,En,[]);this._getPreviousPlayers(En,In,Et,kt,F.toState).forEach(er=>{const Gn=er.getRealPlayer();Gn.beforeDestroy&&Gn.beforeDestroy(),er.destroy(),Di.push(er)})}De(dt,F.fromStyles)}_buildAnimation(P,F,ce,He,dt,Et){const kt=F.triggerName,Kt=F.element,En=[],In=new Set,Di=new Set,ji=F.timelines.map(Gn=>{const Qi=Gn.element;In.add(Qi);const vr=Qi[Ri];if(vr&&vr.removedBeforeQueried)return new m.ZN(Gn.duration,Gn.delay);const Kr=Qi!==Kt,Wr=function Dr(Pe){const P=[];return Xi(Pe,P),P}((ce.get(Qi)||gr).map(ur=>ur.getRealPlayer())).filter(ur=>!!ur.element&&ur.element===Qi),us=dt.get(Qi),rs=Et.get(Qi),es=ft(0,this._normalizer,0,Gn.keyframes,us,rs),Zr=this._buildPlayer(Gn,es,Wr);if(Gn.subTimeline&&He&&Di.add(Qi),Kr){const ur=new Ma(P,kt,Qi);ur.setRealPlayer(Zr),En.push(ur)}return Zr});En.forEach(Gn=>{bn(this.playersByQueriedElement,Gn.element,[]).push(Gn),Gn.onDone(()=>function Ir(Pe,P,F){let ce;if(Pe instanceof Map){if(ce=Pe.get(P),ce){if(ce.length){const He=ce.indexOf(F);ce.splice(He,1)}0==ce.length&&Pe.delete(P)}}else if(ce=Pe[P],ce){if(ce.length){const He=ce.indexOf(F);ce.splice(He,1)}0==ce.length&&delete Pe[P]}return ce}(this.playersByQueriedElement,Gn.element,Gn))}),In.forEach(Gn=>hn(Gn,Qt));const er=vt(ji);return er.onDestroy(()=>{In.forEach(Gn=>li(Gn,Qt)),Oe(Kt,F.toStyles)}),Di.forEach(Gn=>{bn(He,Gn,[]).push(er)}),er}_buildPlayer(P,F,ce){return F.length>0?this.driver.animate(P.element,F,P.duration,P.delay,P.easing,ce):new m.ZN(P.duration,P.delay)}}class Ma{constructor(P,F,ce){this.namespaceId=P,this.triggerName=F,this.element=ce,this._player=new m.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(P){this._containsRealPlayer||(this._player=P,Object.keys(this._queuedCallbacks).forEac
1h(F=>{this._queuedCallbacks[F].forEach(ce=>Ut(P,F,void 0,ce))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(P.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(P){this.totalTime=P}syncPlayerEvents(P){const F=this._player;F.triggerCallback&&P.onStart(()=>F.triggerCallback("start")),P.onDone(()=>this.finish()),P.onDestroy(()=>this.destroy())}_queueEvent(P,F){bn(this._queuedCallbacks,P,[]).push(F)}onDone(P){this.queued&&this._queueEvent("done",P),this._player.onDone(P)}onStart(P){this.queued&&this._queueEvent("start",P),this._player.onStart(P)}onDestroy(P){this.queued&&this._queueEvent("destroy",P),this._player.onDestroy(P)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(P){this.queued||this._player.setPosition(P)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(P){const F=this._player;F.triggerCallback&&F.triggerCallback(P)}}function Ne(Pe){return Pe&&1===Pe.nodeType}function qe(Pe,P){const F=Pe.style.display;return Pe.style.display=null!=P?P:"none",F}function Ct(Pe,P,F,ce,He){const dt=[];F.forEach(Kt=>dt.push(qe(Kt)));const Et=[];ce.forEach((Kt,En)=>{const In={};Kt.forEach(Di=>{const ji=In[Di]=P.computeStyle(En,Di,He);(!ji||0==ji.length)&&(En[Ri]=Vs,Et.push(En))}),Pe.set(En,In)});let kt=0;return F.forEach(Kt=>qe(Kt,dt[kt++])),Et}function dn(Pe,P){const F=new Map;if(Pe.forEach(kt=>F.set(kt,[])),0==P.length)return F;const He=new Set(P),dt=new Map;function Et(kt){if(!kt)return 1;let Kt=dt.get(kt);if(Kt)return Kt;const En=kt.parentNode;return Kt=F.has(En)?En:He.has(En)?1:Et(En),dt.set(kt,Kt),Kt}return P.forEach(kt=>{const Kt=Et(kt);1!==Kt&&F.get(Kt).push(kt)}),F}function hn(Pe,P){var F;null===(F=Pe.classList)||void 0===F||F.add(P)}function li(Pe,P){var F;null===(F=Pe.classList)||void 0===F||F.remove(P)}function Tr(Pe,P,F){vt(F).onDone(()=>Pe.processLeaveNode(P))}function Xi(Pe,P){for(let F=0;F<Pe.length;F++){const ce=Pe[F];ce instanceof m.ZE?Xi(ce.players,P):P.push(ce)}}function Xr(Pe,P,F){const ce=F.get(Pe);if(!ce)return!1;let He=P.get(Pe);return He?ce.forEach(dt=>He.add(dt)):P.set(Pe,ce),F.delete(Pe),!0}class hr{constructor(P,F,ce){this.bodyNode=P,this._driver=F,this._normalizer=ce,this._triggerCache={},this.onRemovalComplete=(He,dt)=>{},this._transitionEngine=new wo(P,F,ce),this._timelineEngine=new fo(P,F,ce),this._transitionEngine.onRemovalComplete=(He,dt)=>this.onRemovalComplete(He,dt)}registerTrigger(P,F,ce,He,dt){const Et=P+"-"+He;let kt=this._triggerCache[Et];if(!kt){const Kt=[],In=or(this._driver,dt,Kt,[]);if(Kt.length)throw function pn(Pe,P){return new h.vHH(3404,k)}();kt=function Jo(Pe,P,F){return new is(Pe,P,F)}(He,In,this._normalizer),this._triggerCache[Et]=kt}this._transitionEngine.registerTrigger(F,He,kt)}register(P,F){this._transitionEngine.register(P,F)}destroy(P,F){this._transitionEngine.destroy(P,F)}onInsert(P,F,ce,He){this._transitionEngine.insertNode(P,F,ce,He)}onRemove(P,F,ce,He){this._transitionEngine.removeNode(P,F,He||!1,ce)}disableAnimations(P,F){this._transitionEngine.markElementAsDisabled(P,F)}process(P,F,ce,He){if("@"==ce.charAt(0)){const[dt,Et]=pi(ce);this._timelineEngine.command(dt,F,Et,He)}else this._transitionEngine.trigger(P,F,ce,He)}listen(P,F,ce,He,dt){if("@"==ce.charAt(0)){const[Et,kt]=pi(ce);return this._timelineEngine.listen(Et,F,kt,dt)}return this._transitionEngine.listen(P,F,ce,He,dt)}flush(P=-1){this._transitionEngine.flush(P)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let ge=(()=>{class Pe{constructor(F,ce,He){this._element=F,this._startStyles=ce,this._endStyles=He,this._state=0;let dt=Pe.initialStylesByElement.get(F);dt||Pe.initialStylesByElement.set(F,dt={}),this._initialStyles=dt}start(){this._state<1&&(this._startStyles&&Oe(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Oe(this._element,this._initialStyles),this._endStyles&&(Oe(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Pe.initialStylesByElement.delete(this._element),this._startStyles&&(De(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(De(this._element,this._endStyles),this._endStyles=null),Oe(this._element,this._initialStyles),this._state=3)}}return Pe.initialStylesByElement=new WeakMap,Pe})();function oe(Pe){let P=null;const F=Object.keys(Pe);for(let ce=0;ce<F.length;ce++){const He=F[ce];J(He)&&(P=P||{},P[He]=Pe[He])}return P}function J(Pe){return"display"===Pe||"position"===Pe}class We{constructor(P,F,ce,He){this.element=P,this.keyframes=F,this.options=ce,this._specialStyles=He,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=ce.duration,this._delay=ce.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(P=>P()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const P=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,P,this.options),this._finalKeyframe=P.length?P[P.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(P,F,ce){return P.animate(F,ce)}onStart(P){this._onStartFns.push(P)}onDone(P){this._onDoneFns.push(P)}onDestroy(P){this._onDestroyFns.push(P)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(P=>P()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(P=>P()),this._onDestroyFns=[])}setPosition(P){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=P*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const P={};if(this.hasStarted()){const F=this._finalKeyframe;
1Object.keys(F).forEach(ce=>{"offset"!=ce&&(P[ce]=this._finished?F[ce]:Cr(this.element,ce))})}this.currentSnapshot=P}triggerCallback(P){const F="start"==P?this._onStartFns:this._onDoneFns;F.forEach(ce=>ce()),F.length=0}}class gn{validateStyleProperty(P){return K(P)}matchesElement(P,F){return!1}containsElement(P,F){return Me(P,F)}getParentElement(P){return Rn(P)}query(P,F,ce){return nt(P,F,ce)}computeStyle(P,F,ce){return window.getComputedStyle(P)[F]}animate(P,F,ce,He,dt,Et=[]){const Kt={duration:ce,delay:He,fill:0==He?"both":"forwards"};dt&&(Kt.easing=dt);const En={},In=Et.filter(ji=>ji instanceof We);(function Jn(Pe,P){return 0===Pe||0===P})(ce,He)&&In.forEach(ji=>{let er=ji.currentSnapshot;Object.keys(er).forEach(Gn=>En[Gn]=er[Gn])}),F=function ii(Pe,P,F){const ce=Object.keys(F);if(ce.length&&P.length){let dt=P[0],Et=[];if(ce.forEach(kt=>{dt.hasOwnProperty(kt)||Et.push(kt),dt[kt]=F[kt]}),Et.length)for(var He=1;He<P.length;He++){let kt=P[He];Et.forEach(function(Kt){kt[Kt]=Cr(Pe,Kt)})}}return P}(P,F=F.map(ji=>yn(ji,!1)),En);const Di=function as(Pe,P){let F=null,ce=null;return Array.isArray(P)&&P.length?(F=oe(P[0]),P.length>1&&(ce=oe(P[P.length-1]))):P&&(F=oe(P)),F||ce?new ge(Pe,F,ce):null}(P,F);return new We(P,F,Kt,Di)}}var mi=b(9808);let hi=(()=>{class Pe extends m._j{constructor(F,ce){super(),this._nextAnimationId=0,this._renderer=F.createRenderer(ce.body,{id:"0",encapsulation:h.ifc.None,styles:[],data:{animation:[]}})}build(F){const ce=this._nextAnimationId.toString();this._nextAnimationId++;const He=Array.isArray(F)?(0,m.vP)(F):F;return Qs(this._renderer,null,ce,"register",[He]),new zs(ce,this._renderer)}}return Pe.\u0275fac=function(F){return new(F||Pe)(h.LFG(h.FYo),h.LFG(mi.K0))},Pe.\u0275prov=h.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();class zs extends m.LC{constructor(P,F){super(),this._id=P,this._renderer=F}create(P,F){return new Ss(this._id,P,F||{},this._renderer)}}class Ss{constructor(P,F,ce,He){this.id=P,this.element=F,this._renderer=He,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",ce)}_listen(P,F){return this._renderer.listen(this.element,`@@${this.id}:${P}`,F)}_command(P,...F){return Qs(this._renderer,this.element,this.id,P,F)}onDone(P){this._listen("done",P)}onStart(P){this._listen("start",P)}onDestroy(P){this._listen("destroy",P)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(P){this._command("setPosition",P)}getPosition(){var P,F;return null!==(F=null===(P=this._renderer.engine.players[+this.id])||void 0===P?void 0:P.getPosition())&&void 0!==F?F:0}}function Qs(Pe,P,F,ce,He){return Pe.setProperty(P,`@@${F}:${ce}`,He)}const Fn="@.disabled";let qi=(()=>{class Pe{constructor(F,ce,He){this.delegate=F,this.engine=ce,this._zone=He,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),ce.onRemovalComplete=(dt,Et)=>{const kt=null==Et?void 0:Et.parentNode(dt);kt&&Et.removeChild(kt,dt)}}createRenderer(F,ce){const dt=this.delegate.createRenderer(F,ce);if(!(F&&ce&&ce.data&&ce.data.animation)){let In=this._rendererCache.get(dt);return In||(In=new ra("",dt,this.engine),this._rendererCache.set(dt,In)),In}const Et=ce.id,kt=ce.id+"-"+this._currentId;this._currentId++,this.engine.register(kt,F);const Kt=In=>{Array.isArray(In)?In.forEach(Kt):this.engine.registerTrigger(Et,kt,F,In.name,In)};return ce.data.animation.forEach(Kt),new yr(this,kt,dt,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(F,ce,He){F>=0&&F<this._microtaskId?this._zone.run(()=>ce(He)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(dt=>{const[Et,kt]=dt;Et(kt)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([ce,He]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return Pe.\u0275fac=function(F){return new(F||Pe)(h.LFG(h.FYo),h.LFG(hr),h.LFG(h.R0b))},Pe.\u0275prov=h.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();class ra{constructor(P,F,ce){this.namespaceId=P,this.delegate=F,this.engine=ce,this.destroyNode=this.delegate.destroyNode?He=>F.destroyNode(He):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(P,F){return this.delegate.createElement(P,F)}createComment(P){return this.delegate.createComment(P)}createText(P){return this.delegate.createText(P)}appendChild(P,F){this.delegate.appendChild(P,F),this.engine.onInsert(this.namespaceId,F,P,!1)}insertBefore(P,F,ce,He=!0){this.delegate.insertBefore(P,F,ce),this.engine.onInsert(this.namespaceId,F,P,He)}removeChild(P,F,ce){this.engine.onRemove(this.namespaceId,F,this.delegate,ce)}selectRootElement(P,F){return this.delegate.selectRootElement(P,F)}parentNode(P){return this.delegate.parentNode(P)}nextSibling(P){return this.delegate.nextSibling(P)}setAttribute(P,F,ce,He){this.delegate.setAttribute(P,F,ce,He)}removeAttribute(P,F,ce){this.delegate.removeAttribute(P,F,ce)}addClass(P,F){this.delegate.addClass(P,F)}removeClass(P,F){this.delegate.removeClass(P,F)}setStyle(P,F,ce,He){this.delegate.setStyle(P,F,ce,He)}removeStyle(P,F,ce){this.delegate.removeStyle(P,F,ce)}setProperty(P,F,ce){"@"==F.charAt(0)&&F==Fn?this.disableAnimations(P,!!ce):this.delegate.setProperty(P,F,ce)}setValue(P,F){this.delegate.setValue(P,F)}listen(P,F,ce){return this.delegate.listen(P,F,ce)}disableAnimations(P,F){this.engine.disableAnimations(P,F)}}class yr extends ra{constructor(P,F,ce,He){super(F,ce,He),this.factory=P,this.namespaceId=F}setProperty(P,F,ce){"@"==F.charAt(0)?"."==F.charAt(1)&&F==Fn?this.disableAnimations(P,ce=void 0===ce||!!ce):this.engine.process(this.namespaceId,P,F.substr(1),ce):this.delegate.setProperty(P,F,ce)}listen(P,F,ce){if("@"==F.charAt(0)){const He=function sl(Pe){switch(Pe){case"body":return document.body;case"document":return document;case"window":return window;default:return Pe}}(P);let dt=F.substr(1),Et="";return"@"!=dt.charAt(0)&&([dt,Et]=function fr(Pe){const P=Pe.indexOf(".");return[Pe.substring(0,P),Pe.substr(P+1)]}(dt)),this.engine.listen(this.namespaceId,He,dt,Et,kt=>{this.factory.scheduleListenerCallback(kt._data||-1,ce,kt)})}return this.delegate.listen(P,F,ce)}}let Js=(()=>{class Pe extends hr{constructor(F,ce,He){super(F.body,ce,He)}ngOnDestroy(){this.flush()}}return Pe.\u0275fac=function(F){return new(F||Pe)(h.LFG(mi.K0),h.LFG(Yt),h.LFG(Ks))},Pe.\u0275prov=h.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const $r=new h.OlP("AnimationModuleType"),Eo=[{provide:m._j,useClass:hi},{provide:Ks,useFactory:function Xo(){return new Ui}},{provide:hr,useClass:Js},{provide:h.FYo,useFactory:function ls(Pe,P,F){return new qi(Pe,P,F)},deps:[s.se,hr,h.R0b]}],No=[{provide:Yt,useFactory:()=>new gn},{provide:$r,useValue:"BrowserAnimations"},...Eo],Fo=[{provide:Yt,useClass:Zt},{provide:$r,useValue:"NoopAnimations"},...Eo];let Is=(()=>{class Pe{static withConfig(F){return{ngModule:Pe,providers:F.disableAnimations?Fo:No}}}return Pe.\u0275fac=function(F){return new(F||Pe)}
1,Pe.\u0275mod=h.oAB({type:Pe}),Pe.\u0275inj=h.cJS({providers:No,imports:[s.b2]}),Pe})()},6097:(_t,Ue,b)=>{"use strict";b.d(Ue,{Dx:()=>Pt,H7:()=>ht,b2:()=>si,q6:()=>bn,se:()=>jn});var h=b(9808),s=b(5e3);class m extends h.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class k extends m{static makeCurrent(){(0,h.HT)(new k)}onAndCancel(x,j,de){return x.addEventListener(j,de,!1),()=>{x.removeEventListener(j,de,!1)}}dispatchEvent(x,j){x.dispatchEvent(j)}remove(x){x.parentNode&&x.parentNode.removeChild(x)}createElement(x,j){return(j=j||this.getDefaultDocument()).createElement(x)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(x){return x.nodeType===Node.ELEMENT_NODE}isShadowRoot(x){return x instanceof DocumentFragment}getGlobalEventTarget(x,j){return"window"===j?window:"document"===j?x:"body"===j?x.body:null}getBaseHref(x){const j=function C(){return v=v||document.querySelector("base"),v?v.getAttribute("href"):null}();return null==j?null:function te(N){q=q||document.createElement("a"),q.setAttribute("href",N);const x=q.pathname;return"/"===x.charAt(0)?x:`/${x}`}(j)}resetBaseElement(){v=null}getUserAgent(){return window.navigator.userAgent}getCookie(x){return(0,h.Mx)(document.cookie,x)}}let q,v=null;const _e=new s.OlP("TRANSITION_ID"),we=[{provide:s.ip1,useFactory:function re(N,x,j){return()=>{j.get(s.CZH).donePromise.then(()=>{const de=(0,h.q)(),Je=x.querySelectorAll(`style[ng-transition="${N}"]`);for(let St=0;St<Je.length;St++)de.remove(Je[St])})}},deps:[_e,h.K0,s.zs3],multi:!0}];class be{static init(){(0,s.VLi)(new be)}addToWindow(x){s.dqk.getAngularTestability=(de,Je=!0)=>{const St=x.findTestabilityInTree(de,Je);if(null==St)throw new Error("Could not find testability for element.");return St},s.dqk.getAllAngularTestabilities=()=>x.getAllTestabilities(),s.dqk.getAllAngularRootElements=()=>x.getAllRootElements(),s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(de=>{const Je=s.dqk.getAllAngularTestabilities();let St=Je.length,Ht=!1;const kn=function(Jn){Ht=Ht||Jn,St--,0==St&&de(Ht)};Je.forEach(function(Jn){Jn.whenStable(kn)})})}findTestabilityInTree(x,j,de){if(null==j)return null;const Je=x.getTestability(j);return null!=Je?Je:de?(0,h.q)().isShadowRoot(j)?this.findTestabilityInTree(x,j.host,!0):this.findTestabilityInTree(x,j.parentElement,!0):null}}let ke=(()=>{class N{build(){return new XMLHttpRequest}}return N.\u0275fac=function(j){return new(j||N)},N.\u0275prov=s.Yz7({token:N,factory:N.\u0275fac}),N})();const Ze=new s.OlP("EventManagerPlugins");let Ye=(()=>{class N{constructor(j,de){this._zone=de,this._eventNameToPlugin=new Map,j.forEac
vendor: 7,418 bytes, line 1
1h(Je=>Je.manager=this),this._plugins=j.slice().reverse()}addEventListener(j,de,Je){return this._findPluginFor(de).addEventListener(j,de,Je)}addGlobalEventListener(j,de,Je){return this._findPluginFor(de).addGlobalEventListener(j,de,Je)}getZone(){return this._zone}_findPluginFor(j){const de=this._eventNameToPlugin.get(j);if(de)return de;const Je=this._plugins;for(let St=0;St<Je.length;St++){const Ht=Je[St];if(Ht.supports(j))return this._eventNameToPlugin.set(j,Ht),Ht}throw new Error(`No event manager plugin found for event ${j}`)}}return N.\u0275fac=function(j){return new(j||N)(s.LFG(Ze),s.LFG(s.R0b))},N.\u0275prov=s.Yz7({token:N,factory:N.\u0275fac}),N})();class $e{constructor(x){this._doc=x}addGlobalEventListener(x,j,de){const Je=(0,h.q)().getGlobalEventTarget(this._doc,x);if(!Je)throw new Error(`Unsupported event target ${Je} for event ${j}`);return this.addEventListener(Je,j,de)}}let Te=(()=>{class N{constructor(){this._stylesSet=new Set}addStyles(j){const de=new Set;j.forEach(Je=>{this._stylesSet.has(Je)||(this._stylesSet.add(Je),de.add(Je))}),this.onStylesAdded(de)}onStylesAdded(j){}getAllStyles(){return Array.from(this._stylesSet)}}return N.\u0275fac=function(j){return new(j||N)},N.\u0275prov=s.Yz7({token:N,factory:N.\u0275fac}),N})(),rt=(()=>{class N extends Te{constructor(j){super(),this._doc=j,this._hostNodes=new Map,this._hostNodes.set(j.head,[])}_addStylesToHost(j,de,Je){j.forEach(St=>{const Ht=this._doc.createElement("style");Ht.textContent=St,Je.push(de.appendChild(Ht))})}addHost(j){const de=[];this._addStylesToHost(this._stylesSet,j,de),this._hostNodes.set(j,de)}removeHost(j){const de=this._hostNodes.get(j);de&&de.forEach(je),this._hostNodes.delete(j)}onStylesAdded(j){this._hostNodes.forEach((de,Je)=>{this._addStylesToHost(j,Je,de)})}ngOnDestroy(){this._hostNodes.forEach(j=>j.forEach(je))}}return N.\u0275fac=function(j){return new(j||N)(s.LFG(h.K0))},N.\u0275prov=s.Yz7({token:N,factory:N.\u0275fac}),N})();function je(N){(0,h.q)().remove(N)}const zt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ut=/%COMP%/g;function Bt(N,x,j){for(let de=0;de<x.length;de++){let Je=x[de];Array.isArray(Je)?Bt(N,Je,j):(Je=Je.replace(ut,N),j.push(Je))}return j}function pn(N){return x=>{if("__ngUnwrap__"===x)return N;!1===N(x)&&(x.preventDefault(),x.returnValue=!1)}}let jn=(()=>{class N{constructor(j,de,Je){this.eventManager=j,this.sharedStylesHost=de,this.appId=Je,this.rendererByCompId=new Map,this.defaultRenderer=new en(j)}createRenderer(j,de){if(!j||!de)return this.defaultRenderer;switch(de.encapsulation){case s.ifc.Emulated:{let Je=this.rendererByCompId.get(de.id);return Je||(Je=new Bn(this.eventManager,this.sharedStylesHost,de,this.appId),this.rendererByCompId.set(de.id,Je)),Je.applyToHost(j),Je}case 1:case s.ifc.ShadowDom:return new Dn(this.eventManager,this.sharedStylesHost,j,de);default:if(!this.rendererByCompId.has(de.id)){const Je=Bt(de.id,de.styles,[]);this.sharedStylesHost.addStyles(Je),this.rendererByCompId.set(de.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return N.\u0275fac=function(j){return new(j||N)(s.LFG(Ye),s.LFG(rt),s.LFG(s.AFp))},N.\u0275prov=s.Yz7({token:N,factory:N.\u0275fac}),N})();class en{constructor(x){this.eventManager=x,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(x,j){return j?document.createElementNS(zt[j]||j,x):document.createElement(x)}createComment(x){return document.createComment(x)}createText(x){return document.createTextNode(x)}appendChild(x,j){x.appendChild(j)}insertBefore(x,j,de){x&&x.insertBefore(j,de)}removeChild(x,j){x&&x.removeChild(j)}selectRootElement(x,j){let de="string"==typeof x?document.querySelector(x):x;if(!de)throw new Error(`The selector "${x}" did not match any elements`);return j||(de.textContent=""),de}parentNode(x){return x.parentNode}nextSibling(x){return x.nextSibling}setAttribute(x,j,de,Je){if(Je){j=Je+":"+j;const St=zt[Je];St?x.setAttributeNS(St,j,de):x.setAttribute(j,de)}else x.setAttribute(j,de)}removeAttribute(x,j,de){if(de){const Je=zt[de];Je?x.removeAttributeNS(Je,j):x.removeAttribute(`${de}:${j}`)}else x.removeAttribute(j)}addClass(x,j){x.classList.add(j)}removeClass(x,j){x.classList.remove(j)}setStyle(x,j,de,Je){Je&(s.JOm.DashCase|s.JOm.Important)?x.style.setProperty(j,de,Je&s.JOm.Important?"important":""):x.style[j]=de}removeStyle(x,j,de){de&s.JOm.DashCase?x.style.removeProperty(j):x.style[j]=""}setProperty(x,j,de){x[j]=de}setValue(x,j){x.nodeValue=j}listen(x,j,de){return"string"==typeof x?this.eventManager.addGlobalEventListener(x,j,pn(de)):this.eventManager.addEventListener(x,j,pn(de))}}class Bn extends en{constructor(x,j,de,Je){super(x),this.component=de;const St=Bt(Je+"-"+de.id,de.styles,[]);j.addStyles(St),this.contentAttr=function me(N){return"_ngcontent-%COMP%".replace(ut,N)}(Je+"-"+de.id),this.hostAttr=function gt(N){return"_nghost-%COMP%".replace(ut,N)}(Je+"-"+de.id)}applyToHost(x){super.setAttribute(x,this.hostAttr,"")}createElement(x,j){const de=super.createElement(x,j);return super.setAttribute(de,this.contentAttr,""),de}}class Dn extends en{constructor(x,j,de,Je){super(x),this.sharedStylesHost=j,this.hostEl=de,this.shadowRoot=de.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const St=Bt(Je.id,Je.styles,[]);for(let Ht=0;Ht<St.length;Ht++){const kn=document.createElement("style");kn.textContent=St[Ht],this.shadowRoot.appendChild(kn)}}nodeOrShadowRoot(x){return x===this.hostEl?this.shadowRoot:x}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(x,j){return super.appendChild(this.nodeOrShadowRoot(x),j)}insertBefore(x,j,de){return super.insertBefore(this.nodeOrShadowRoot(x),j,de)}removeChild(x,j){return super.removeChild(this.nodeOrShadowRoot(x),j)}parentNode(x){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(x)))}}let vn=(()=>{class N extends $e{constructor(j){super(j)}supports(j){return!0}addEventListener(j,de,Je){return j.addEventListener(de,Je,!1),()=>this.removeEventListener(j,de,Je)}removeEventListener(j,de,Je){return j.removeEventListener(de,Je)}}return N.\u0275fac=function(j){return new(j||N)(s.LFG(h.K0))},N.\u0275prov=s.Yz7({token:N,factory:N.\u0275fac}),N})();const Dt=["alt","control","meta","shift"],it={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},At={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},ct={alt:N=>N.altKey,control:N=>N.ctrlKey,meta:N=>N.metaKey,shift:N=>N.shiftKey};let st=(()=>{class N extends $e{constructor(j){super(j)}supports(j){return null!=N.parseEventName(j)}addEventListener(j,de,Je){const St=N.parseEventName(de),Ht=N.eventCallback(St.fullKey,Je,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,h.q)().onAndCancel(j,St.domEventName,Ht))}static parseEventName(j){const de=j.toLowerCase().split("."),Je=de.shift();if(0===de.length||"keydown"!==Je&&"keyup"!==Je)return null;const St=N._normalizeKey(de.pop());let Ht="";if(Dt.forEach(Jn=>{const ii=de.indexOf(Jn);ii>-1&&(de.splice(ii,1),Ht+=Jn+".")}),Ht+=St,0!=de.length||0===St.length)return null;
1const kn={};return kn.domEventName=Je,kn.fullKey=Ht,kn}static getEventFullKey(j){let de="",Je=function vt(N){let x=N.key;if(null==x){if(x=N.keyIdentifier,null==x)return"Unidentified";x.startsWith("U+")&&(x=String.fromCharCode(parseInt(x.substring(2),16)),3===N.location&&At.hasOwnProperty(x)&&(x=At[x]))}return it[x]||x}(j);return Je=Je.toLowerCase()," "===Je?Je="space":"."===Je&&(Je="dot"),Dt.forEach(St=>{St!=Je&&ct[St](j)&&(de+=St+".")}),de+=Je,de}static eventCallback(j,de,Je){return St=>{N.getEventFullKey(St)===j&&Je.runGuarded(()=>de(St))}}static _normalizeKey(j){return"esc"===j?"escape":j}}return N.\u0275fac=function(j){return new(j||N)(s.LFG(h.K0))},N.\u0275prov=s.Yz7({token:N,factory:N.\u0275fac}),N})();const bn=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:h.bD},{provide:s.g9A,useValue:function ft(){k.makeCurrent(),be.init()},multi:!0},{provide:h.K0,useFactory:function tn(){return(0,s.RDi)(document),document},deps:[]}]),pi=[{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function Ut(){return new s.qLn},deps:[]},{provide:Ze,useClass:vn,multi:!0,deps:[h.K0,s.R0b,s.Lbi]},{provide:Ze,useClass:st,multi:!0,deps:[h.K0]},{provide:jn,useClass:jn,deps:[Ye,rt,s.AFp]},{provide:s.FYo,useExisting:jn},{provide:Te,useExisting:rt},{provide:rt,useClass:rt,deps:[h.K0]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b]},{provide:Ye,useClass:Ye,deps:[Ze,s.R0b]},{provide:h.JF,useClass:ke,deps:[]}];let si=(()=>{class N{constructor(j){if(j)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(j){return{ngModule:N,providers:[{provide:s.AFp,useValue:j.appId},{provide:_e,useExisting:s.AFp},we]}}}return N.\u0275fac=function(j){return new(j||N)(s.LFG(N,12))},N.\u0275mod=s.oAB({type:N}),N.\u0275inj=s.cJS({providers:pi,imports:[h.ez,s.hGG]}),N})(),Pt=(()=>{class N{constructor(j){this._doc=j}getTitle(){return this._doc.title}setTitle(j){this._doc.title=j||""}}return N.\u0275fac=function(j){return new(j||N)(s.LFG(h.K0))},N.\u0275prov=s.Yz7({token:N,factory:function(j){let de=null;return de=j?new j:function Ve(){return new Pt((0,s.LFG)(h.K0))}(),de},providedIn:"root"}),N})();"undefined"!=typeof window&&window;let ht=(()=>{class N{}return N.\u0275fac=function(j){return new(j||N)},N.\u0275prov=s.Yz7({token:N,factory:function(j){let de=null;return de=j?new(j||N):s.LFG(De),de},providedIn:"root"}),N})(),De=(()=>{class N extends ht{constructor(j){super(),this._doc=j}sanitize(j,de){if(null==de)return null;switch(j){case s.q3G.NONE:return de;case s.q3G.HTML:return(0,s.qzn)(de,"HTML")?(0,s.z3N)(de):(0,s.EiD)(this._doc,String(de)).toString();case s.q3G.STYLE:return(0,s.qzn)(de,"Style")?(0,s.z3N)(de):de;case s.q3G.SCRIPT:if((0,s.qzn)(de,"Script"))return(0,s.z3N)(de);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.yhl)(de),(0,s.qzn)(de,"URL")?(0,s.z3N)(de):(0,s.mCW)(String(de));case s.q3G.RESOURCE_URL:if((0,s.qzn)(de,"ResourceURL"))return(0,s.z3N)(de);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${j} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(j){return(0,s.JVY)(j)}bypassSecurityTrustStyle(j){return(0,s.L6k)(j)}bypassSecurityTrustScript(j){return(0,s.eBb)(j)}bypassSecurityTrustUrl(j){return(0,s.LAX)(j)}bypassSecurityTrustResourceUrl(j){return(0,s.pB0)(j)}}return N.\u0275fac=function(j){return new(j||N)(s.LFG(h.K0))},N.\u0275prov=s.Yz7({token:N,factory:function(j){let de=null;return de=j?new j:function Oe(N){return new De(N.get(h.K0))}(s.LFG(s.zs3)),de},providedIn:"root"}),N})()},1564:(_t,Ue,b)=>{"use strict";b.d(Ue,{gz:()=>jr,m2:()=>Mt,F0:()=>Or,rH:()=>Bs,Od:()=>Wo,yS:()=>Sr,Bz:()=>ga,lC:()=>bo});var h=b(5e3),s=b(8996),m=b(9646),k=b(1135),v=b(9841),C=b(2843),q=b(6805),te=b(7272),_e=b(9770),re=b(8306),we=b(515),be=b(727),ke=b(4482),Ze=b(5403);function Ye(){return(0,ke.e)((ee,z)=>{let H=null;ee._refCount++;const he=(0,Ze.x)(z,void 0,void 0,void 0,()=>{if(!ee||ee._refCount<=0||0<--ee._refCount)return void(H=null);const a=ee._connection,d=H;H=null,a&&(!d||a===d)&&a.unsubscribe(),z.unsubscribe()});ee.subscribe(he),he.closed||(H=ee.connect())})}class $e extends re.y{constructor(z,H){super(),this.source=z,this.subjectFactory=H,this._subject=null,this._refCount=0,this._connection=null,(0,ke.A)(z)&&(this.lift=z.lift)}
1_subscribe(z){return this.getSubject().subscribe(z)}getSubject(){const z=this._subject;return(!z||z.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:z}=this;this._subject=this._connection=null,null==z||z.unsubscribe()}connect(){let z=this._connection;if(!z){z=this._connection=new be.w0;const H=this.getSubject();z.add(this.source.subscribe((0,Ze.x)(H,void 0,()=>{this._teardown(),H.complete()},he=>{this._teardown(),H.error(he)},()=>this._teardown()))),z.closed&&(this._connection=null,z=be.w0.EMPTY)}return z}refCount(){return Ye()(this)}}var Te=b(7579),rt=b(4004),je=b(3900),zt=b(5698),ut=b(8675),ze=b(5026),Re=b(9300),tt=b(262),Fe=b(4351);function me(ee){return ee<=0?()=>we.E:(0,ke.e)((z,H)=>{let he=[];z.subscribe((0,Ze.x)(H,a=>{he.push(a),ee<he.length&&he.shift()},()=>{for(const a of he)H.next(a);H.complete()},void 0,()=>{he=null}))})}var gt=b(8068),Bt=b(6590),pn=b(4671),jn=b(590),en=b(5577),Wn=b(8505),Mn=b(8746),Bn=b(8189),Dn=b(9808);class vn{constructor(z,H){this.id=z,this.url=H}}class Dt extends vn{constructor(z,H,he="imperative",a=null){super(z,H),this.navigationTrigger=he,this.restoredState=a}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Mt extends vn{constructor(z,H,he){super(z,H),this.urlAfterRedirects=he}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class it extends vn{constructor(z,H,he){super(z,H),this.reason=he}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class At extends vn{constructor(z,H,he){super(z,H),this.error=he}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ct extends vn{constructor(z,H,he,a){super(z,H),this.urlAfterRedirects=he,this.state=a}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class st extends vn{constructor(z,H,he,a){super(z,H),this.urlAfterRedirects=he,this.state=a}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vt extends vn{constructor(z,H,he,a,d){super(z,H),this.urlAfterRedirects=he,this.state=a,this.shouldActivate=d}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ft extends vn{constructor(z,H,he,a){super(z,H),this.urlAfterRedirects=he,this.state=a}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ut extends vn{constructor(z,H,he,a){super(z,H),this.urlAfterRedirects=he,this.state=a}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tn{constructor(z){this.route=z}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class _n{constructor(z){this.route=z}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class bn{constructor(z){this.snapshot=z}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pi{constructor(z){this.snapshot=z}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class si{constructor(z){this.snapshot=z}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vi{constructor(z){this.snapshot=z}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Vn{constructor(z,H,he){this.routerEvent=z,this.position=H,this.anchor=he}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Rn="primary";class Ve{constructor(z){this.params=z||{}}has(z){return Object.prototype.hasOwnProperty.call(this.params,z)}get(z){if(this.has(z)){const H=this.params[z];return Array.isArray(H)?H[0]:H}return null}getAll(z){if(this.has(z)){const H=this.params[z];return Array.isArray(H)?H:[H]}return[]}get keys(){return Object.keys(this.params)}}function Pt(ee){return new Ve(ee)}const $="ngNavigationCancelingError";function ue(ee){const z=Error("NavigationCancelingError: "+ee);return z[$]=!0,z}function ae(ee,z,H){const he=H.path.split("/");if(he.length>ee.length||"full"===H.pathMatch&&(z.hasChildren()||he.length<ee.length))return null;const a={};for(let d=0;d<he.length;d++){const w=he[d],A=ee[d];if(w.startsWith(":"))a[w.substring(1)]=A;else if(w!==A.path)return null}return{consumed:ee.slice(0,he.length),posParams:a}}function nt(ee,z){const H=ee?Object.keys(ee):void 0,he=z?Object.keys(z):void 0;if(!H||!he||H.length!=he.length)return!1;let a;for(let d=0;d<H.length;d++)if(a=H[d],!Tt(ee[a],z[a]))return!1;return!0}function Tt(ee,z){if(Array.isArray(ee)&&Array.isArray(z)){if(ee.length!==z.length)return!1;const H=[...ee].sort(),he=[...z].sort();return H.every((a,d)=>he[d]===a)}return ee===z}function Zt(ee){return Array.prototype.concat.apply([],ee)}function Yt(ee){return ee.length>0?ee[ee.length-1]:null}function Cn(ee,z){for(const H in ee)ee.hasOwnProperty(H)&&z(ee[H],H)}function Nn(ee){return(0,h.CqO)(ee)?ee:(0,h.QGY)(ee)?(0,s.D)(Prom
1ise.resolve(ee)):(0,m.of)(ee)}const ni={exact:function Se(ee,z,H){if(!ht(ee.segments,z.segments)||!at(ee.segments,z.segments,H)||ee.numberOfChildren!==z.numberOfChildren)return!1;for(const he in z.children)if(!ee.children[he]||!Se(ee.children[he],z.children[he],H))return!1;return!0},subset:Ee},Qn={exact:function Qt(ee,z){return nt(ee,z)},subset:function Ke(ee,z){return Object.keys(z).length<=Object.keys(ee).length&&Object.keys(z).every(H=>Tt(ee[H],z[H]))},ignored:()=>!0};function lt(ee,z,H){return ni[H.paths](ee.root,z.root,H.matrixParams)&&Qn[H.queryParams](ee.queryParams,z.queryParams)&&!("exact"===H.fragment&&ee.fragment!==z.fragment)}function Ee(ee,z,H){return Be(ee,z,z.segments,H)}function Be(ee,z,H,he){if(ee.segments.length>H.length){const a=ee.segments.slice(0,H.length);return!(!ht(a,H)||z.hasChildren()||!at(a,H,he))}if(ee.segments.length===H.length){if(!ht(ee.segments,H)||!at(ee.segments,H,he))return!1;for(const a in z.children)if(!ee.children[a]||!Ee(ee.children[a],z.children[a],he))return!1;return!0}{const a=H.slice(0,ee.segments.length),d=H.slice(ee.segments.length);return!!(ht(ee.segments,a)&&at(ee.segments,a,he)&&ee.children[Rn])&&Be(ee.children[Rn],z,d,he)}}function at(ee,z,H){return z.every((he,a)=>Qn[H](ee[a].parameters,he.parameters))}class Ot{constructor(z,H,he){this.root=z,this.queryParams=H,this.fragment=he}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Pt(this.queryParams)),this._queryParamMap}toString(){return N.serialize(this)}}class mt{constructor(z,H){this.segments=z,this.children=H,this.parent=null,Cn(H,(he,a)=>he.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return x(this)}}class yn{constructor(z,H){this.path=z,this.parameters=H}get parameterMap(){return this._parameterMap||(this._parameterMap=Pt(this.parameters)),this._parameterMap}toString(){return ii(this)}}function ht(ee,z){return ee.length===z.length&&ee.every((H,he)=>H.path===z[he].path)}class De{}class U{parse(z){const H=new Hi(z);return new Ot(H.parseRootSegment(),H.parseQueryParams(),H.parseFragment())}serialize(z){const H=`/${j(z.root,!0)}`,he=function Cr(ee){const z=Object.keys(ee).map(H=>{const he=ee[H];return Array.isArray(he)?he.map(a=>`${Je(H)}=${Je(a)}`).join("&"):`${Je(H)}=${Je(he)}`}).filter(H=>!!H);return z.length?`?${z.join("&")}`:""}(z.queryParams);return`${H}${he}${"string"==typeof z.fragment?`#${function St(ee){return encodeURI(ee)}(z.fragment)}`:""}`}}const N=new U;function x(ee){return ee.segments.map(z=>ii(z)).join("/")}function j(ee,z){if(!ee.hasChildren())return x(ee);if(z){const H=ee.children[Rn]?j(ee.children[Rn],!1):"",he=[];return Cn(ee.children,(a,d)=>{d!==Rn&&he.push(`${d}:${j(a,!1)}`)}),he.length>0?`${H}(${he.join("//")})`:H}{const H=function Oe(ee,z){let H=[];return Cn(ee.children,(he,a)=>{a===Rn&&(H=H.concat(z(he,a)))}),Cn(ee.children,(he,a)=>{a!==Rn&&(H=H.concat(z(he,a)))}),H}(ee,(he,a)=>a===Rn?[j(ee.children[Rn],!1)]:[`${a}:${j(he,!1)}`]);return 1===Object.keys(ee.children).length&&null!=ee.children[Rn]?`${x(ee)}/${H[0]}`:`${x(ee)}/(${H.join("//")})`}}function de(ee){return encodeURIComponent(ee).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Je(ee){return de(ee).replace(/%3B/gi,";")}function Ht(ee){return de(ee).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function kn(ee){return decodeURIComponent(ee)}function Jn(ee){return kn(ee.replace(/\+/g,"%20"))}function ii(ee){return`${Ht(ee.path)}${function Ii(ee){return Object.keys(ee).map(z=>`;${Ht(z)}=${Ht(ee[z])}`).join("")}(ee.parameters)}`}const rn=/^[^\/()?;=#]+/;function qt(ee){const z=ee.match(rn);return z?z[0]:""}const xn=/^[^=?&#]+/,zn=/^[^&#]+/;class Hi{constructor(z){this.url=z,this.remaining=z}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new mt([],{}):new mt([],this.parseChildren())}parseQueryParams(){const z={};if(this.consumeOptional("?"))do{this.parseQueryParam(z)}while(this.consumeOptional("&"));return z}
1parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const z=[];for(this.peekStartsWith("(")||z.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),z.push(this.parseSegment());let H={};this.peekStartsWith("/(")&&(this.capture("/"),H=this.parseParens(!0));let he={};return this.peekStartsWith("(")&&(he=this.parseParens(!1)),(z.length>0||Object.keys(H).length>0)&&(he[Rn]=new mt(z,H)),he}parseSegment(){const z=qt(this.remaining);if(""===z&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(z),new yn(kn(z),this.parseMatrixParams())}parseMatrixParams(){const z={};for(;this.consumeOptional(";");)this.parseParam(z);return z}parseParam(z){const H=qt(this.remaining);if(!H)return;this.capture(H);let he="";if(this.consumeOptional("=")){const a=qt(this.remaining);a&&(he=a,this.capture(he))}z[kn(H)]=kn(he)}parseQueryParam(z){const H=function fn(ee){const z=ee.match(xn);return z?z[0]:""}(this.remaining);if(!H)return;this.capture(H);let he="";if(this.consumeOptional("=")){const w=function ai(ee){const z=ee.match(zn);return z?z[0]:""}(this.remaining);w&&(he=w,this.capture(he))}const a=Jn(H),d=Jn(he);if(z.hasOwnProperty(a)){let w=z[a];Array.isArray(w)||(w=[w],z[a]=w),w.push(d)}else z[a]=d}parseParens(z){const H={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const he=qt(this.remaining),a=this.remaining[he.length];if("/"!==a&&")"!==a&&";"!==a)throw new Error(`Cannot parse url '${this.url}'`);let d;he.indexOf(":")>-1?(d=he.substr(0,he.indexOf(":")),this.capture(d),this.capture(":")):z&&(d=Rn);const w=this.parseChildren();H[d]=1===Object.keys(w).length?w[Rn]:new mt([],w),this.consumeOptional("//")}return H}peekStartsWith(z){return this.remaining.startsWith(z)}consumeOptional(z){return!!this.peekStartsWith(z)&&(this.remaining=this.remaining.substring(z.length),!0)}capture(z){if(!this.consumeOptional(z))throw new Error(`Expected "${z}".`)}}class _r{constructor(z){this._root=z}get root(){return this._root.value}parent(z){const H=this.pathFromRoot(z);return H.length>1?H[H.length-2]:null}children(z){const H=Ji(z,this._root);return H?H.children.map(he=>he.value):[]}firstChild(z){const H=Ji(z,this._root);return H&&H.children.length>0?H.children[0].value:null}siblings(z){const H=Pr(z,this._root);return H.length<2?[]:H[H.length-2].children.map(a=>a.value).filter(a=>a!==z)}pathFromRoot(z){return Pr(z,this._root).map(H=>H.value)}}function Ji(ee,z){if(ee===z.value)return z;for(const H of z.children){const he=Ji(ee,H);if(he)return he}return null}function Pr(ee,z){if(ee===z.value)return[z];for(const H of z.children){const he=Pr(ee,H);if(he.length)return he.unshift(z),he}return[]}class ki{constructor(z,H){this.value=z,this.children=H}toString(){return`TreeNode(${this.value})`}}function Ur(ee){const z={};return ee&&ee.children.forEach(H=>z[H.value.outlet]=H),z}class ms extends _r{constructor(z,H){super(z),this.snapshot=H,Ds(this,z)}toString(){return this.snapshot.toString()}}function Ni(ee,z){const H=function Gr(ee,z){const w=new Wi([],{},{},"",{},Rn,z,null,ee.root,-1,{});return new Ps("",new ki(w,[]))}(ee,z),he=new k.X([new yn("",{})]),a=new k.X({}),d=new k.X({}),w=new k.X({}),A=new k.X(""),Q=new jr(he,a,w,A,d,Rn,z,H.root);return Q.snapshot=H.root,new ms(new ki(Q,[]),H)}class jr{constructor(z,H,he,a,d,w,A,Q){this.url=z,this.params=H,this.queryParams=he,this.fragment=a,this.data=d,this.outlet=w,this.component=A,this._futureSnapshot=Q}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,rt.U)(z=>Pt(z)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,rt.U)(z=>Pt(z)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function or(ee,z="emptyOnly"){const H=ee.pathFromRoot;let he=0;if("always"!==z)for(he=H.length-1;he>=1;){const a=H[he],d=H[he-1];
1if(a.routeConfig&&""===a.routeConfig.path)he--;else{if(d.component)break;he--}}return function ar(ee){return ee.reduce((z,H)=>({params:Object.assign(Object.assign({},z.params),H.params),data:Object.assign(Object.assign({},z.data),H.data),resolve:Object.assign(Object.assign({},z.resolve),H._resolvedData)}),{params:{},data:{},resolve:{}})}(H.slice(he))}class Wi{constructor(z,H,he,a,d,w,A,Q,xe,bt,xt){this.url=z,this.params=H,this.queryParams=he,this.fragment=a,this.data=d,this.outlet=w,this.component=A,this.routeConfig=Q,this._urlSegment=xe,this._lastPathIndex=bt,this._resolve=xt}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Pt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Pt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(he=>he.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ps extends _r{constructor(z,H){super(H),this.url=z,Ds(this,H)}toString(){return Qr(this._root)}}function Ds(ee,z){z.value._routerState=ee,z.children.forEach(H=>Ds(ee,H))}function Qr(ee){const z=ee.children.length>0?` { ${ee.children.map(Qr).join(", ")} } `:"";return`${ee.value}${z}`}function _i(ee){if(ee.snapshot){const z=ee.snapshot,H=ee._futureSnapshot;ee.snapshot=H,nt(z.queryParams,H.queryParams)||ee.queryParams.next(H.queryParams),z.fragment!==H.fragment&&ee.fragment.next(H.fragment),nt(z.params,H.params)||ee.params.next(H.params),function Me(ee,z){if(ee.length!==z.length)return!1;for(let H=0;H<ee.length;++H)if(!nt(ee[H],z[H]))return!1;return!0}(z.url,H.url)||ee.url.next(H.url),nt(z.data,H.data)||ee.data.next(H.data)}else ee.snapshot=ee._futureSnapshot,ee.data.next(ee._futureSnapshot.data)}function Nt(ee,z){const H=nt(ee.params,z.params)&&function ei(ee,z){return ht(ee,z)&&ee.every((H,he)=>nt(H.parameters,z[he].parameters))}(ee.url,z.url);return H&&!(!ee.parent!=!z.parent)&&(!ee.parent||Nt(ee.parent,z.parent))}function $t(ee,z,H){if(H&&ee.shouldReuseRoute(z.value,H.value.snapshot)){const he=H.value;he._futureSnapshot=z.value;const a=function cn(ee,z,H){return z.children.map(he=>{for(const a of H.children)if(ee.shouldReuseRoute(he.value,a.value.snapshot))return $t(ee,he,a);return $t(ee,he)})}(ee,z,H);return new ki(he,a)}{if(ee.shouldAttach(z.value)){const d=ee.retrieve(z.value);if(null!==d){const w=d.route;return w.value._futureSnapshot=z.value,w.children=z.children.map(A=>$t(ee,A)),w}}const he=function Un(ee){return new jr(new k.X(ee.url),new k.X(ee.params),new k.X(ee.queryParams),new k.X(ee.fragment),new k.X(ee.data),ee.outlet,ee.component,ee)}(z.value),a=z.children.map(d=>$t(ee,d));return new ki(he,a)}}function Fi(ee){return"object"==typeof ee&&null!=ee&&!ee.outlets&&!ee.segmentPath}function oi(ee){return"object"==typeof ee&&null!=ee&&ee.outlets}function Gi(ee,z,H,he,a){let d={};if(he&&Cn(he,(A,Q)=>{d[Q]=Array.isArray(A)?A.map(xe=>`${xe}`):`${A}`}),ee===z)return new Ot(H,d,a);const w=Jr(ee,z,H);return new Ot(w,d,a)}function Jr(ee,z,H){const he={};return Cn(ee.children,(a,d)=>{he[d]=a===z?H:Jr(a,z,H)}),new mt(ee.segments,he)}class io{constructor(z,H,he){if(this.isAbsolute=z,this.numberOfDoubleDots=H,this.commands=he,z&&he.length>0&&Fi(he[0]))throw new Error("Root segment cannot have matrix parameters");const a=he.find(oi);if(a&&a!==Yt(he))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ns{constructor(z,H,he){this.segmentGroup=z,this.processChildren=H,this.index=he}}function ho(ee,z,H){if(ee||(ee=new mt([],{})),0===ee.segments.length&&ee.hasChildren())return go(ee,z,H);const he=function ws(ee,z,H){let he=0,a=z;const d={match:!1,pathIndex:0,commandIndex:0};for(;a<ee.segments.length;){if(he>=H.length)return d;const w=ee.segments[a],A=H[he];if(oi(A))break;const Q=`${A}`,xe=he<H.length-1?H[he+1]:null;if(a>0&&void 0===Q)break;if(Q&&xe&&"object"==typeof xe&&void 0===xe.outlets){if(!Ui(Q,xe,w))return d;he+=2}else{if(!Ui(Q,{},w))return d;he++}a++}return{match:!0,pathIndex:a,commandIndex:he}}(ee,z,H),a=H.slice(he.commandIndex);
1if(he.match&&he.pathIndex<ee.segments.length){const d=new mt(ee.segments.slice(0,he.pathIndex),{});return d.children[Rn]=new mt(ee.segments.slice(he.pathIndex),ee.children),go(d,0,a)}return he.match&&0===a.length?new mt(ee.segments,{}):he.match&&!ee.hasChildren()?Ro(ee,z,H):he.match?go(ee,0,a):Ro(ee,z,H)}function go(ee,z,H){if(0===H.length)return new mt(ee.segments,{});{const he=function oo(ee){return oi(ee[0])?ee[0].outlets:{[Rn]:ee}}(H),a={};return Cn(he,(d,w)=>{"string"==typeof d&&(d=[d]),null!==d&&(a[w]=ho(ee.children[w],z,d))}),Cn(ee.children,(d,w)=>{void 0===he[w]&&(a[w]=d)}),new mt(ee.segments,a)}}function Ro(ee,z,H){const he=ee.segments.slice(0,z);let a=0;for(;a<H.length;){const d=H[a];if(oi(d)){const Q=Ks(d.outlets);return new mt(he,Q)}if(0===a&&Fi(H[0])){he.push(new yn(ee.segments[z].path,ma(H[0]))),a++;continue}const w=oi(d)?d.outlets[Rn]:`${d}`,A=a<H.length-1?H[a+1]:null;w&&A&&Fi(A)?(he.push(new yn(w,ma(A))),a+=2):(he.push(new yn(w,{})),a++)}return new mt(he,{})}function Ks(ee){const z={};return Cn(ee,(H,he)=>{"string"==typeof H&&(H=[H]),null!==H&&(z[he]=Ro(new mt([],{}),0,H))}),z}function ma(ee){const z={};return Cn(ee,(H,he)=>z[he]=`${H}`),z}function Ui(ee,z,H){return ee==H.path&&nt(z,H.parameters)}class dr{constructor(z,H,he,a){this.routeReuseStrategy=z,this.futureState=H,this.currState=he,this.forwardEvent=a}activate(z){const H=this.futureState._root,he=this.currState?this.currState._root:null;this.deactivateChildRoutes(H,he,z),_i(this.futureState.root),this.activateChildRoutes(H,he,z)}deactivateChildRoutes(z,H,he){const a=Ur(H);z.children.forEach(d=>{const w=d.value.outlet;this.deactivateRoutes(d,a[w],he),delete a[w]}),Cn(a,(d,w)=>{this.deactivateRouteAndItsChildren(d,he)})}deactivateRoutes(z,H,he){const a=z.value,d=H?H.value:null;if(a===d)if(a.component){const w=he.getContext(a.outlet);w&&this.deactivateChildRoutes(z,H,w.children)}else this.deactivateChildRoutes(z,H,he);else d&&this.deactivateRouteAndItsChildren(H,he)}deactivateRouteAndItsChildren(z,H){z.value.component&&this.routeReuseStrategy.shouldDetach(z.value.snapshot)?this.detachAndStoreRouteSubtree(z,H):this.deactivateRouteAndOutlet(z,H)}detachAndStoreRouteSubtree(z,H){const he=H.getContext(z.value.outlet),a=he&&z.value.component?he.children:H,d=Ur(z);for(const w of Object.keys(d))this.deactivateRouteAndItsChildren(d[w],a);if(he&&he.outlet){const w=he.outlet.detach(),A=he.children.onOutletDeactivated();this.routeReuseStrategy.store(z.value.snapshot,{componentRef:w,route:z,contexts:A})}}deactivateRouteAndOutlet(z,H){const he=H.getContext(z.value.outlet),a=he&&z.value.component?he.children:H,d=Ur(z);for(const w of Object.keys(d))this.deactivateRouteAndItsChildren(d[w],a);he&&he.outlet&&(he.outlet.deactivate(),he.children.onOutletDeactivated(),he.attachRef=null,he.resolver=null,he.route=null)}activateChildRoutes(z,H,he){const a=Ur(H);z.children.forEach(d=>{this.activateRoutes(d,a[d.value.outlet],he),this.forwardEvent(new vi(d.value.snapshot))}),z.children.length&&this.forwardEvent(new pi(z.value.snapshot))}activateRoutes(z,H,he){const a=z.value,d=H?H.value:null;if(_i(a),a===d)if(a.component){const w=he.getOrCreateContext(a.outlet);this.activateChildRoutes(z,H,w.children)}else this.activateChildRoutes(z,H,he);else if(a.component){const w=he.getOrCreateContext(a.outlet);if(this.routeReuseStrategy.shouldAttach(a.snapshot)){const A=this.routeReuseStrategy.retrieve(a.snapshot);this.routeReuseStrategy.store(a.snapshot,null),w.children.onOutletReAttached(A.contexts),w.attachRef=A.componentRef,w.route=A.route.value,w.outlet&&w.outlet.attach(A.componentRef,A.route.value),_i(A.route.value),this.activateChildRoutes(z,null,w.children)}else{const A=function aa(ee){for(let z=ee.parent;z;z=z.parent){const H=z.routeConfig;if(H&&H._loadedConfig)return H._loadedConfig;if(H&&H.component)return null}return null}(a.snapshot),Q=A?A.module.componentFactoryResolver:null;w.attachRef=null,w.route=a,w.resolver=Q,w.outlet&&w.outlet.activateWith(a,Q),this.activateChildRoutes(z,null,w.children)}}else this.activateChildRoutes(z,null,he)}}class yo{constructor(z,H){this.routes=z,this.module=H}}function Ms(ee){return"function"==typeof ee}function _s(ee){return ee instanceof Ot}const Os=Symbol("INITIAL_VALUE");function fo(){return(0,je.w)(ee=>(0,v.a)(ee.map(z=>z.pipe((0,zt.q)(1),(0,ut.O)(Os)))).pipe((0,ze.R)((z,H)=>{let he=!1;return H.reduce((a,d,w)=>a!==Os?a:(d===Os&&(he=!0),he||!1!==d&&w!==H.length-1&&!_s(d)?a:d),z)},Os),(0,Re.h)(z=>z!==Os),(0,rt.U)(z=>_s(z)?z:!0===z),(0,zt.q)(1)))}class _a{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new qs,this.attachRef=null}}class qs{constructor(){this.contexts=new Map}onChildOutletCreated(z,H){const he=this.getOrCreateContext(z);he.outlet=H,this.contexts.set(z,he)}onChildOutletDestroyed(z){const H=this.getContext(z);H&&(H.outlet=null,H.attachRef=null)}onOutletDeactivated(){const z=this.contexts;return this.contexts=new Map,z}onOutletReAttached(z){this.contexts=z}getOrCreateContext(z){let H=this.getContext(z);return H||(H=new _a,this.contexts.set(z,H)),H}getContext(z){return this.contexts.get(z)||null}}let bo=(()=>{class ee{constructor(H,he,a,d,w){this.parentContexts=H,this.location=he,this.resolver=a,this.changeDetector=w,this.activated=null,this._activatedRoute=null,this.activateEvents=new h.vpe,this.deactivateEvents=new h.vpe,this.attachEvents=new h.vpe,this.detachEvents=new h.vpe,this.name=d||Rn,H.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const H=this.parentContexts.getContext(this.name);H&&H.route&&(H.attachRef?this.attach(H.attachRef,H.route):this.activateWith(H.route,H.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const H=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(H.instance),H}attach(H,he){this.activated=H,this._activatedRoute=he,this.location.insert(H.hostView),this.attachEvents.emit(H.instance)}deactivate(){if(this.activated){const H=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(H)}}activateWith(H,he){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=H;const w=(he=he||this.resolver).resolveComponentFactory(H._futureSnapshot.routeConfig.component),A=this.parentContexts.getOrCreateContext(this.name).children,Q=new ia(H,A,this.location.injector);this.activated=this.location.createComponent(w,this.location.length,Q),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return ee.\u0275fac=function(H){return new(H||ee)(h.Y36(qs),h.Y36(h.s_b),h.Y36(h._Vd),h.$8M("name"),h.Y36(h.sBO))},ee.\u0275dir=h.lG2({type:ee,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),ee})();class ia{constructor(z,H,he){this.route=z,this.childContexts=H,this.parent=he}get(z,H){return z===jr?this.route:z===qs?this.childContexts:this.parent.get(z,H)}}let Do=(()=>{class ee{}return ee.\u0275fac=function(H){return new(H||ee)},ee.\u0275cmp=h.Xpm({type:ee,selectors:[["ng-component"]],decls:1,vars:0,template:function(H,he){1&H&&h._UZ(0,"router-outlet")},directives:[bo],encapsulation:2}),ee})();function Yi(ee,z=""){for(let H=0;H<ee.length;H++){const he=ee[H];gr(he,Cs(z,he))}}function gr(ee,z){ee.children&&Yi(ee.children,z)}function Cs(ee,z){return z?ee||z.path?ee&&!z.path?`${ee}/`:!ee&&z.path?z.path:`${ee}/${z.path}`:"":ee}function Vs(ee){const z=ee.children&&ee.children.map(Vs),H=z?Object.assign(Object.assign({},ee),{children:z}):Object.assign({},ee);return!H.component&&(z||H.loadChildren)&&H.outlet&&H.outlet!==Rn&&(H.c
1omponent=Do),H}function Ri(ee){return ee.outlet||Rn}function ri(ee,z){const H=ee.filter(he=>Ri(he)===z);return H.push(...ee.filter(he=>Ri(he)!==z)),H}const xi={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Yr(ee,z,H){var he;if(""===z.path)return"full"===z.pathMatch&&(ee.hasChildren()||H.length>0)?Object.assign({},xi):{matched:!0,consumedSegments:[],remainingSegments:H,parameters:{},positionalParamSegments:{}};const d=(z.matcher||ae)(H,ee,z);if(!d)return Object.assign({},xi);const w={};Cn(d.posParams,(Q,xe)=>{w[xe]=Q.path});const A=d.consumed.length>0?Object.assign(Object.assign({},w),d.consumed[d.consumed.length-1].parameters):w;return{matched:!0,consumedSegments:d.consumed,remainingSegments:H.slice(d.consumed.length),parameters:A,positionalParamSegments:null!==(he=d.posParams)&&void 0!==he?he:{}}}function rr(ee,z,H,he,a="corrected"){if(H.length>0&&function Ir(ee,z,H){return H.some(he=>Ne(ee,z,he)&&Ri(he)!==Rn)}(ee,H,he)){const w=new mt(z,function Ma(ee,z,H,he){const a={};a[Rn]=he,he._sourceSegment=ee,he._segmentIndexShift=z.length;for(const d of H)if(""===d.path&&Ri(d)!==Rn){const w=new mt([],{});w._sourceSegment=ee,w._segmentIndexShift=z.length,a[Ri(d)]=w}return a}(ee,z,he,new mt(H,ee.children)));return w._sourceSegment=ee,w._segmentIndexShift=z.length,{segmentGroup:w,slicedSegments:[]}}if(0===H.length&&function fe(ee,z,H){return H.some(he=>Ne(ee,z,he))}(ee,H,he)){const w=new mt(ee.segments,function wo(ee,z,H,he,a,d){const w={};for(const A of he)if(Ne(ee,H,A)&&!a[Ri(A)]){const Q=new mt([],{});Q._sourceSegment=ee,Q._segmentIndexShift="legacy"===d?ee.segments.length:z.length,w[Ri(A)]=Q}return Object.assign(Object.assign({},a),w)}(ee,z,H,he,ee.children,a));return w._sourceSegment=ee,w._segmentIndexShift=z.length,{segmentGroup:w,slicedSegments:H}}const d=new mt(ee.segments,ee.children);return d._sourceSegment=ee,d._segmentIndexShift=z.length,{segmentGroup:d,slicedSegments:H}}function Ne(ee,z,H){return(!(ee.hasChildren()||z.length>0)||"full"!==H.pathMatch)&&""===H.path}function le(ee,z,H,he){return!!(Ri(ee)===he||he!==Rn&&Ne(z,H,ee))&&("**"===ee.path||Yr(z,ee,H).matched)}function qe(ee,z,H){return 0===z.length&&!ee.children[H]}class Ct{constructor(z){this.segmentGroup=z||null}}class dn{constructor(z){this.urlTree=z}}function hn(ee){return(0,C._)(new Ct(ee))}function li(ee){return(0,C._)(new dn(ee))}class $i{constructor(z,H,he,a,d){this.configLoader=H,this.urlSerializer=he,this.urlTree=a,this.config=d,this.allowRedirects=!0,this.ngModule=z.get(h.h0i)}apply(){const z=rr(this.urlTree.root,[],[],this.config).segmentGroup,H=new mt(z.segments,z.children);return this.expandSegmentGroup(this.ngModule,this.config,H,Rn).pipe((0,rt.U)(d=>this.createUrlTree(hr(d),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,tt.K)(d=>{if(d instanceof dn)return this.allowRedirects=!1,this.match(d.urlTree);throw d instanceof Ct?this.noMatchError(d):d}))}match(z){return this.expandSegmentGroup(this.ngModule,this.config,z.root,Rn).pipe((0,rt.U)(a=>this.createUrlTree(hr(a),z.queryParams,z.fragment))).pipe((0,tt.K)(a=>{throw a instanceof Ct?this.noMatchError(a):a}))}noMatchError(z){return new Error(`Cannot match any routes. URL Segment: '${z.segmentGroup}'`)}createUrlTree(z,H,he){const a=z.segments.length>0?new mt([],{[Rn]:z}):z;return new Ot(a,H,he)}expandSegmentGroup(z,H,he,a){return 0===he.segments.length&&he.hasChildren()?this.expandChildren(z,H,he).pipe((0,rt.U)(d=>new mt([],d))):this.expandSegment(z,he,H,he.segments,a,!0)}expandChildren(z,H,he){const a=[];for(const d of Object.keys(he.children))"primary"===d?a.unshift(d):a.push(d);return(0,s.D)(a).pipe((0,Fe.b)(d=>{const w=he.children[d],A=ri(H,d);return this.expandSegmentGroup(z,A,w,d).pipe((0,rt.U)(Q=>({segment:Q,outlet:d})))}),(0,ze.R)((d,w)=>(d[w.outlet]=w.segment,d),{}),function mn(ee,z){const H=arguments.length>=2;return he=>he.pipe(ee?(0,Re.h)((a,d)=>ee(a,d,he)):pn.y,me(1),H?(0,Bt.d)(z):(0,gt.T)(()=>new q.K))}())}expandSegment(z,H,he,a,d,w){return(0,s.D)(he).pipe((0,Fe.b)(A=>this.expandSegmentAgainstRoute(z,H,he,A,a,d,w).pipe((0,tt.K)(xe=>{if(xe instanceof Ct)return(0,m.of)(null);throw xe}))),(0,jn.P)(A=>!!A),(0,tt.K)((A,Q)=>
1{if(A instanceof q.K||"EmptyError"===A.name)return qe(H,a,d)?(0,m.of)(new mt([],{})):hn(H);throw A}))}expandSegmentAgainstRoute(z,H,he,a,d,w,A){return le(a,H,d,w)?void 0===a.redirectTo?this.matchSegmentAgainstRoute(z,H,a,d,w):A&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(z,H,he,a,d,w):hn(H):hn(H)}expandSegmentAgainstRouteUsingRedirect(z,H,he,a,d,w){return"**"===a.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(z,he,a,w):this.expandRegularSegmentAgainstRouteUsingRedirect(z,H,he,a,d,w)}expandWildCardWithParamsAgainstRouteUsingRedirect(z,H,he,a){const d=this.applyRedirectCommands([],he.redirectTo,{});return he.redirectTo.startsWith("/")?li(d):this.lineralizeSegments(he,d).pipe((0,en.z)(w=>{const A=new mt(w,{});return this.expandSegment(z,A,H,w,a,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(z,H,he,a,d,w){const{matched:A,consumedSegments:Q,remainingSegments:xe,positionalParamSegments:bt}=Yr(H,a,d);if(!A)return hn(H);const xt=this.applyRedirectCommands(Q,a.redirectTo,bt);return a.redirectTo.startsWith("/")?li(xt):this.lineralizeSegments(a,xt).pipe((0,en.z)(Jt=>this.expandSegment(z,H,he,Jt.concat(xe),w,!1)))}matchSegmentAgainstRoute(z,H,he,a,d){if("**"===he.path)return he.loadChildren?(he._loadedConfig?(0,m.of)(he._loadedConfig):this.configLoader.load(z.injector,he)).pipe((0,rt.U)(xt=>(he._loadedConfig=xt,new mt(a,{})))):(0,m.of)(new mt(a,{}));const{matched:w,consumedSegments:A,remainingSegments:Q}=Yr(H,he,a);return w?this.getChildConfig(z,he,a).pipe((0,en.z)(bt=>{const xt=bt.module,Jt=bt.routes,{segmentGroup:Sn,slicedSegments:Wt}=rr(H,A,Q,Jt),ti=new mt(Sn.segments,Sn.children);if(0===Wt.length&&ti.hasChildren())return this.expandChildren(xt,Jt,ti).pipe((0,rt.U)(yi=>new mt(A,yi)));if(0===Jt.length&&0===Wt.length)return(0,m.of)(new mt(A,{}));const Zi=Ri(he)===d;return this.expandSegment(xt,ti,Jt,Wt,Zi?Rn:d,!0).pipe((0,rt.U)(qn=>new mt(A.concat(qn.segments),qn.children)))})):hn(H)}getChildConfig(z,H,he){return H.children?(0,m.of)(new yo(H.children,z)):H.loadChildren?void 0!==H._loadedConfig?(0,m.of)(H._loadedConfig):this.runCanLoadGuards(z.injector,H,he).pipe((0,en.z)(a=>a?this.configLoader.load(z.injector,H).pipe((0,rt.U)(d=>(H._loadedConfig=d,d))):function Dr(ee){return(0,C._)(ue(`Cannot load children because the guard of the route "path: '${ee.path}'" returned false`))}(H))):(0,m.of)(new yo([],z))}runCanLoadGuards(z,H,he){const a=H.canLoad;if(!a||0===a.length)return(0,m.of)(!0);const d=a.map(w=>{const A=z.get(w);let Q;if(function Jo(ee){return ee&&Ms(ee.canLoad)}(A))Q=A.canLoad(H,he);else{if(!Ms(A))throw new Error("Invalid CanLoad guard");Q=A(H,he)}return Nn(Q)});return(0,m.of)(d).pipe(fo(),(0,Wn.b)(w=>{if(!_s(w))return;const A=ue(`Redirecting to "${this.urlSerializer.serialize(w)}"`);throw A.url=w,A}),(0,rt.U)(w=>!0===w))}lineralizeSegments(z,H){let he=[],a=H.root;for(;;){if(he=he.concat(a.segments),0===a.numberOfChildren)return(0,m.of)(he);if(a.numberOfChildren>1||!a.children[Rn])return(0,C._)(new Error(`Only absolute redirects can have named outlets. redirectTo: '${z.redirectTo}'`));a=a.children[Rn]}}applyRedirectCommands(z,H,he){return this.applyRedirectCreatreUrlTree(H,this.urlSerializer.parse(H),z,he)}applyRedirectCreatreUrlTree(z,H,he,a){const d=this.createSegmentGroup(z,H.root,he,a);return new Ot(d,this.createQueryParams(H.queryParams,this.urlTree.queryParams),H.fragment)}createQueryParams(z,H){const he={};return Cn(z,(a,d)=>{if("string"==typeof a&&a.startsWith(":")){const A=a.substring(1);he[d]=H[A]}else he[d]=a}),he}createSegmentGroup(z,H,he,a){const d=this.createSegments(z,H.segments,he,a);let w={};return Cn(H.children,(A,Q)=>{w[Q]=this.createSegmentGroup(z,A,he,a)}),new mt(d,w)}createSegments(z,H,he,a){return H.map(d=>d.path.startsWith(":")?this.findPosParam(z,d,a):this.findOrReturn(d,he))}findPosParam(z,H,he){const a=he[H.path.substring(1)];if(!a)throw new Error(`Cannot redirect to '${z}'. Cannot find '${H.path}'.`);return a}findOrReturn(z,H){let he=0;for(const a of H){if(a.path===z.path)return H.splice(he),a;he++}return z}}function hr(ee){const z={};for(const he of Object.keys(ee.children)){const d=hr(ee.children[he]);(d.segments.length>0||d.hasChildren())&&(z[he]=d)}return function Xr(ee){if(1===ee.numberOfChildren&&ee.children[Rn]){const z=ee.children[Rn];return new mt(ee.segments.concat(z.segments),z.children)}return ee}(new mt(ee.segments,z))}class ge{constructor(z){this.path=z,this.route=this.path[this.path.length-1]}}class oe{constructor(z,H){this.component=z,this.route=H}}function J(ee,z,H){const he=ee._root;return hi(he,z?z._root:null,H,[he.value])}function gn(ee,z,H){const he=function mi(ee){if(!ee)return null;for(let z=ee.parent;z;z=z.parent){const H=z.routeConfig;if(H&&H._loadedConfig)return H._loadedConfig}return null}(z);
1return(he?he.module.injector:H).get(ee)}function hi(ee,z,H,he,a={canDeactivateChecks:[],canActivateChecks:[]}){const d=Ur(z);return ee.children.forEach(w=>{(function zs(ee,z,H,he,a={canDeactivateChecks:[],canActivateChecks:[]}){const d=ee.value,w=z?z.value:null,A=H?H.getContext(ee.value.outlet):null;if(w&&d.routeConfig===w.routeConfig){const Q=function Ss(ee,z,H){if("function"==typeof H)return H(ee,z);switch(H){case"pathParamsChange":return!ht(ee.url,z.url);case"pathParamsOrQueryParamsChange":return!ht(ee.url,z.url)||!nt(ee.queryParams,z.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Nt(ee,z)||!nt(ee.queryParams,z.queryParams);default:return!Nt(ee,z)}}(w,d,d.routeConfig.runGuardsAndResolvers);Q?a.canActivateChecks.push(new ge(he)):(d.data=w.data,d._resolvedData=w._resolvedData),hi(ee,z,d.component?A?A.children:null:H,he,a),Q&&A&&A.outlet&&A.outlet.isActivated&&a.canDeactivateChecks.push(new oe(A.outlet.component,w))}else w&&Qs(z,A,a),a.canActivateChecks.push(new ge(he)),hi(ee,null,d.component?A?A.children:null:H,he,a)})(w,d[w.value.outlet],H,he.concat([w.value]),a),delete d[w.value.outlet]}),Cn(d,(w,A)=>Qs(w,H.getContext(A),a)),a}function Qs(ee,z,H){const he=Ur(ee),a=ee.value;Cn(he,(d,w)=>{Qs(d,a.component?z?z.children.getContext(w):null:z,H)}),H.canDeactivateChecks.push(new oe(a.component&&z&&z.outlet&&z.outlet.isActivated?z.outlet.component:null,a))}class Xo{}function ls(ee){return new re.y(z=>z.error(ee))}class Eo{constructor(z,H,he,a,d,w){this.rootComponentType=z,this.config=H,this.urlTree=he,this.url=a,this.paramsInheritanceStrategy=d,this.relativeLinkResolution=w}recognize(){const z=rr(this.urlTree.root,[],[],this.config.filter(w=>void 0===w.redirectTo),this.relativeLinkResolution).segmentGroup,H=this.processSegmentGroup(this.config,z,Rn);if(null===H)return null;const he=new Wi([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Rn,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new ki(he,H),d=new Ps(this.url,a);return this.inheritParamsAndData(d._root),d}inheritParamsAndData(z){const H=z.value,he=or(H,this.paramsInheritanceStrategy);H.params=Object.freeze(he.params),H.data=Object.freeze(he.data),z.children.forEach(a=>this.inheritParamsAndData(a))}processSegmentGroup(z,H,he){return 0===H.segments.length&&H.hasChildren()?this.processChildren(z,H):this.processSegment(z,H,H.segments,he)}processChildren(z,H){const he=[];for(const d of Object.keys(H.children)){const w=H.children[d],A=ri(z,d),Q=this.processSegmentGroup(A,w,d);if(null===Q)return null;he.push(...Q)}const a=po(he);return function No(ee){ee.sort((z,H)=>z.value.outlet===Rn?-1:H.value.outlet===Rn?1:z.value.outlet.localeCompare(H.value.outlet))}(a),a}processSegment(z,H,he,a){for(const d of z){const w=this.processSegmentAgainstRoute(d,H,he,a);if(null!==w)return w}return qe(H,he,a)?[]:null}processSegmentAgainstRoute(z,H,he,a){if(z.redirectTo||!le(z,H,he,a))return null;let d,w=[],A=[];if("**"===z.path){const Sn=he.length>0?Yt(he).parameters:{};d=new Wi(he,Sn,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ce(z),Ri(z),z.component,z,P(H),F(H)+he.length,He(z))}else{const Sn=Yr(H,z,he);if(!Sn.matched)return null;w=Sn.consumedSegments,A=Sn.remainingSegments,d=new Wi(w,Sn.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ce(z),Ri(z),z.component,z,P(H),F(H)+w.length,He(z))}const Q=function Fo(ee){return ee.children?ee.children:ee.loadChildren?ee._loadedConfig.routes:[]}(z),{segmentGroup:xe,slicedSegments:bt}=rr(H,w,A,Q.filter(Sn=>void 0===Sn.redirectTo),this.relativeLinkResolution);if(0===bt.length&&xe.hasChildren()){const Sn=this.processChildren(Q,xe);return null===Sn?null:[new ki(d,Sn)]}if(0===Q.length&&0===bt.length)return[new ki(d,[])];const xt=Ri(z)===a,Jt=this.processSegment(Q,xe,bt,xt?Rn:a);return null===Jt?null:[new ki(d,Jt)]}}function Is(ee){const z=ee.value.routeConfig;return z&&""===z.path&&void 0===z.redirectTo}function po(ee){const z=[],H=new Set;for(const he of ee){if(!Is(he)){z.push(he);continue}const a=z.find(d=>he.value.routeConfig===d.value.routeConfig);void 0!==a?(a.children.push(...he.children),H.add(a)):z.push(he)}for(const he of H){const a=po(he.children);z.push(new ki(he.value,a))}return z.filter(he=>!H.has(he))}function P(ee){let z=ee;for(;z._sourceSegment;)z=z._sourceSegment;return z}function F(ee){let z=ee,H=z._segmentIndexShift?z._segmentIndexShift:0;for(;z._sourceSegment;)z=z._sourceSegment,H+=z._segmentIndexShift?z._segmentIndexShift:0;return H-1}function ce(ee){return ee.data||{}}function He(ee){return ee.resolve||{}}function En(ee){return[...Object.keys(ee),...Object.getOwnPropertySymbols(ee)]}function Di(ee){return(0,je.w)(z=>{const H=ee(z);return H?(0,s.D)(H).pipe((0,rt.U)(()=>z)):(0,m.of)(z)})}class Gn extends class er{shouldDetach(z){return!1}store(z,H){}shouldAttach(z){return!1}retrieve(z){return null}
1shouldReuseRoute(z,H){return z.routeConfig===H.routeConfig}}{}const Qi=new h.OlP("ROUTES");class vr{constructor(z,H,he,a){this.injector=z,this.compiler=H,this.onLoadStartListener=he,this.onLoadEndListener=a}load(z,H){if(H._loader$)return H._loader$;this.onLoadStartListener&&this.onLoadStartListener(H);const a=this.loadModuleFactory(H.loadChildren).pipe((0,rt.U)(d=>{this.onLoadEndListener&&this.onLoadEndListener(H);const w=d.create(z);return new yo(Zt(w.injector.get(Qi,void 0,h.XFs.Self|h.XFs.Optional)).map(Vs),w)}),(0,tt.K)(d=>{throw H._loader$=void 0,d}));return H._loader$=new $e(a,()=>new Te.x).pipe(Ye()),H._loader$}loadModuleFactory(z){return Nn(z()).pipe((0,en.z)(H=>H instanceof h.YKP?(0,m.of)(H):(0,s.D)(this.compiler.compileModuleAsync(H))))}}class Wr{shouldProcessUrl(z){return!0}extract(z){return z}merge(z,H){return z}}function us(ee){throw ee}function rs(ee,z,H){return z.parse("/")}function es(ee,z){return(0,m.of)(null)}const Zr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ur={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Or=(()=>{class ee{constructor(H,he,a,d,w,A,Q){this.rootComponentType=H,this.urlSerializer=he,this.rootContexts=a,this.location=d,this.config=Q,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Te.x,this.errorHandler=us,this.malformedUriErrorHandler=rs,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:es,afterPreactivation:es},this.urlHandlingStrategy=new Wr,this.routeReuseStrategy=new Gn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=w.get(h.h0i),this.console=w.get(h.c2e);const xt=w.get(h.R0b);this.isNgZoneEnabled=xt instanceof h.R0b&&h.R0b.isInAngularZone(),this.resetConfig(Q),this.currentUrlTree=function Si(){return new Ot(new mt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new vr(w,A,Jt=>this.triggerEvent(new tn(Jt)),Jt=>this.triggerEvent(new _n(Jt))),this.routerState=Ni(this.currentUrlTree,this.rootComponentType),this.transitions=new k.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var H;return null===(H=this.location.getState())||void 0===H?void 0:H.\u0275routerPageId}setupNavigations(H){const he=this.events;return H.pipe((0,Re.h)(a=>0!==a.id),(0,rt.U)(a=>Object.assign(Object.assign({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),(0,je.w)(a=>{let d=!1,w=!1;return(0,m.of)(a).pipe((0,Wn.b)(A=>{this.currentNavigation={id:A.id,initialUrl:A.currentRawUrl,extractedUrl:A.extractedUrl,trigger:A.source,extras:A.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,je.w)(A=>{const Q=this.browserUrlTree.toString(),xe=!this.navigated||A.extractedUrl.toString()!==Q||Q!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||xe)&&this.urlHandlingStrategy.shouldProcessUrl(A.rawUrl))return Xs(A.source)&&(this.browserUrlTree=A.extractedUrl),(0,m.of)(A).pipe((0,je.w)(xt=>{const Jt=this.transitions.getValue();return he.next(new Dt(xt.id,this.serializeUrl(xt.extractedUrl),xt.source,xt.restoredState)),Jt!==this.transitions.getValue()?we.E:Promise.resolve(xt)}),function as(ee,z,H,he){return(0,je.w)(a=>function Xi(ee,z,H,he,a){return new $i(ee,z,H,he,a).apply()}(ee,z,H,a.extractedUrl,he).pipe((0,rt.U)(d=>Object.assign(Object.assign({},a),{urlAfterRedirects:d}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Wn.b)(xt=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:xt.urlAfterRedirects})}),function dt(ee,z,H,he,a){return(0,en.z)(d=>function $r(ee,z,H,he,a="emptyOnly",d="legacy"){try{const w=new Eo(ee,z,H,he,a,d).recognize();return null===w?ls(new Xo):(0,m.of)(w)}catch(w){return ls(w)}}(ee,z,d.urlAfterRedirects,H(d.urlAfterRedirects),he,a).pipe((0,rt.U)(w=>Object.assign(Object.assign({},d),{targetSnapshot:w}))))}(this.rootComponentType,this.config,xt=>this.serializeUrl(xt),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Wn.b)(xt=>{if("eager"===this.urlUpdateStrategy){if(!xt.extras.skipLocationChange){const Sn=this.urlHandlingStrategy.merge(xt.urlAfterRedirects,xt.rawUrl);this.setBrowserUrl(Sn,xt)}this.browserUrlTree=xt.urlAfterRedirects}const Jt=new ct(xt.id,this.serializeUrl(xt.extractedUrl),this.serializeUrl(xt.urlAfterRedirects),xt.targetSnapshot);he.next(Jt)}));if(xe&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:Jt,extractedUrl:Sn,source:Wt,restoredState:ti,extras:Zi}=A,kr=new Dt(Jt,this.serializeUrl(Sn),Wt,ti);he.next(kr);const qn=Ni(Sn,this.rootComponentType).snapshot;return(0,m.of)(Object.assign(Object.assign({},A),{targetSnapshot:qn,urlAfterRedirects:Sn,extras:Object.assign(Object.assign({},Zi),{skipLocationChange:!1,replaceUrl:!1})}
1))}return this.rawUrlTree=A.rawUrl,A.resolve(null),we.E}),Di(A=>{const{targetSnapshot:Q,id:xe,extractedUrl:bt,rawUrl:xt,extras:{skipLocationChange:Jt,replaceUrl:Sn}}=A;return this.hooks.beforePreactivation(Q,{navigationId:xe,appliedUrlTree:bt,rawUrlTree:xt,skipLocationChange:!!Jt,replaceUrl:!!Sn})}),(0,Wn.b)(A=>{const Q=new st(A.id,this.serializeUrl(A.extractedUrl),this.serializeUrl(A.urlAfterRedirects),A.targetSnapshot);this.triggerEvent(Q)}),(0,rt.U)(A=>Object.assign(Object.assign({},A),{guards:J(A.targetSnapshot,A.currentSnapshot,this.rootContexts)})),function ks(ee,z){return(0,en.z)(H=>{const{targetSnapshot:he,currentSnapshot:a,guards:{canActivateChecks:d,canDeactivateChecks:w}}=H;return 0===w.length&&0===d.length?(0,m.of)(Object.assign(Object.assign({},H),{guardsResult:!0})):function Fn(ee,z,H,he){return(0,s.D)(ee).pipe((0,en.z)(a=>function Js(ee,z,H,he,a){const d=z&&z.routeConfig?z.routeConfig.canDeactivate:null;if(!d||0===d.length)return(0,m.of)(!0);const w=d.map(A=>{const Q=gn(A,z,a);let xe;if(function Es(ee){return ee&&Ms(ee.canDeactivate)}(Q))xe=Nn(Q.canDeactivate(ee,z,H,he));else{if(!Ms(Q))throw new Error("Invalid CanDeactivate guard");xe=Nn(Q(ee,z,H,he))}return xe.pipe((0,jn.P)())});return(0,m.of)(w).pipe(fo())}(a.component,a.route,H,z,he)),(0,jn.P)(a=>!0!==a,!0))}(w,he,a,ee).pipe((0,en.z)(A=>A&&function vo(ee){return"boolean"==typeof ee}(A)?function qi(ee,z,H,he){return(0,s.D)(z).pipe((0,Fe.b)(a=>(0,te.z)(function yr(ee,z){return null!==ee&&z&&z(new bn(ee)),(0,m.of)(!0)}(a.route.parent,he),function ra(ee,z){return null!==ee&&z&&z(new si(ee)),(0,m.of)(!0)}(a.route,he),function fr(ee,z,H){const he=z[z.length-1],d=z.slice(0,z.length-1).reverse().map(w=>function We(ee){const z=ee.routeConfig?ee.routeConfig.canActivateChild:null;return z&&0!==z.length?{node:ee,guards:z}:null}(w)).filter(w=>null!==w).map(w=>(0,_e.P)(()=>{const A=w.guards.map(Q=>{const xe=gn(Q,w.node,H);let bt;if(function gs(ee){return ee&&Ms(ee.canActivateChild)}(xe))bt=Nn(xe.canActivateChild(he,ee));else{if(!Ms(xe))throw new Error("Invalid CanActivateChild guard");bt=Nn(xe(he,ee))}return bt.pipe((0,jn.P)())});return(0,m.of)(A).pipe(fo())}));return(0,m.of)(d).pipe(fo())}(ee,a.path,H),function sl(ee,z,H){const he=z.routeConfig?z.routeConfig.canActivate:null;if(!he||0===he.length)return(0,m.of)(!0);const a=he.map(d=>(0,_e.P)(()=>{const w=gn(d,z,H);let A;if(function is(ee){return ee&&Ms(ee.canActivate)}(w))A=Nn(w.canActivate(z,ee));else{if(!Ms(w))throw new Error("Invalid CanActivate guard");A=Nn(w(z,ee))}return A.pipe((0,jn.P)())}));return(0,m.of)(a).pipe(fo())}(ee,a.route,H))),(0,jn.P)(a=>!0!==a,!0))}(he,d,ee,z):(0,m.of)(A)),(0,rt.U)(A=>Object.assign(Object.assign({},H),{guardsResult:A})))})}(this.ngModule.injector,A=>this.triggerEvent(A)),(0,Wn.b)(A=>{if(_s(A.guardsResult)){const xe=ue(`Redirecting to "${this.serializeUrl(A.guardsResult)}"`);throw xe.url=A.guardsResult,xe}const Q=new vt(A.id,this.serializeUrl(A.extractedUrl),this.serializeUrl(A.urlAfterRedirects),A.targetSnapshot,!!A.guardsResult);this.triggerEvent(Q)}),(0,Re.h)(A=>!!A.guardsResult||(this.restoreHistory(A),this.cancelNavigationTransition(A,""),!1)),Di(A=>{if(A.guards.canActivateChecks.length)return(0,m.of)(A).pipe((0,Wn.b)(Q=>{const xe=new ft(Q.id,this.serializeUrl(Q.extractedUrl),this.serializeUrl(Q.urlAfterRedirects),Q.targetSnapshot);this.triggerEvent(xe)}),(0,je.w)(Q=>{let xe=!1;return(0,m.of)(Q).pipe(function Et(ee,z){return(0,en.z)(H=>{const{targetSnapshot:he,guards:{canActivateChecks:a}}=H;if(!a.length)return(0,m.of)(H);let d=0;return(0,s.D)(a).pipe((0,Fe.b)(w=>function kt(ee,z,H,he){return function Kt(ee,z,H,he){const a=En(ee);if(0===a.length)return(0,m.of)({});const d={};return(0,s.D)(a).pipe((0,en.z)(w=>function In(ee,z,H,he){const a=gn(ee,z,he);return Nn(a.resolve?a.resolve(z,H):a(z,H))}(ee[w],z,H,he).pipe((0,Wn.b)(A=>{d[w]=A}))),me(1),(0,en.z)(()=>En(d).length===a.length?(0,m.of)(d):we.E))}(ee._resolve,ee,z,he).pipe((0,rt.U)(d=>(ee._resolvedData=d,ee.data=Object.assign(Object.assign({},ee.data),or(ee,H).resolve),null)))}(w.route,he,ee,z)),(0,Wn.b)(()=>d++),me(1),(0,en.z)(w=>
1d===a.length?(0,m.of)(H):we.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Wn.b)({next:()=>xe=!0,complete:()=>{xe||(this.restoreHistory(Q),this.cancelNavigationTransition(Q,"At least one route resolver didn't emit any value."))}}))}),(0,Wn.b)(Q=>{const xe=new Ut(Q.id,this.serializeUrl(Q.extractedUrl),this.serializeUrl(Q.urlAfterRedirects),Q.targetSnapshot);this.triggerEvent(xe)}))}),Di(A=>{const{targetSnapshot:Q,id:xe,extractedUrl:bt,rawUrl:xt,extras:{skipLocationChange:Jt,replaceUrl:Sn}}=A;return this.hooks.afterPreactivation(Q,{navigationId:xe,appliedUrlTree:bt,rawUrlTree:xt,skipLocationChange:!!Jt,replaceUrl:!!Sn})}),(0,rt.U)(A=>{const Q=function Ft(ee,z,H){const he=$t(ee,z._root,H?H._root:void 0);return new ms(he,z)}(this.routeReuseStrategy,A.targetSnapshot,A.currentRouterState);return Object.assign(Object.assign({},A),{targetRouterState:Q})}),(0,Wn.b)(A=>{this.currentUrlTree=A.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(A.urlAfterRedirects,A.rawUrl),this.routerState=A.targetRouterState,"deferred"===this.urlUpdateStrategy&&(A.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,A),this.browserUrlTree=A.urlAfterRedirects)}),((ee,z,H)=>(0,rt.U)(he=>(new dr(z,he.targetRouterState,he.currentRouterState,H).activate(ee),he)))(this.rootContexts,this.routeReuseStrategy,A=>this.triggerEvent(A)),(0,Wn.b)({next(){d=!0},complete(){d=!0}}),(0,Mn.x)(()=>{var A;d||w||this.cancelNavigationTransition(a,`Navigation ID ${a.id} is not equal to the current navigation id ${this.navigationId}`),(null===(A=this.currentNavigation)||void 0===A?void 0:A.id)===a.id&&(this.currentNavigation=null)}),(0,tt.K)(A=>{if(w=!0,function K(ee){return ee&&ee[$]}(A)){const Q=_s(A.url);Q||(this.navigated=!0,this.restoreHistory(a,!0));const xe=new it(a.id,this.serializeUrl(a.extractedUrl),A.message);he.next(xe),Q?setTimeout(()=>{const bt=this.urlHandlingStrategy.merge(A.url,this.rawUrlTree),xt={skipLocationChange:a.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Xs(a.source)};this.scheduleNavigation(bt,"imperative",null,xt,{resolve:a.resolve,reject:a.reject,promise:a.promise})},0):a.resolve(!1)}else{this.restoreHistory(a,!0);const Q=new At(a.id,this.serializeUrl(a.extractedUrl),A);he.next(Q);try{a.resolve(this.errorHandler(A))}catch(xe){a.reject(xe)}}return we.E}))}))}resetRootComponentType(H){this.rootComponentType=H,this.routerState.root.component=this.rootComponentType}setTransition(H){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),H))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(H=>{const he="popstate"===H.type?"popstate":"hashchange";"popstate"===he&&setTimeout(()=>{var a;const d={replaceUrl:!0},w=(null===(a=H.state)||void 0===a?void 0:a.navigationId)?H.state:null;if(w){const Q=Object.assign({},w);delete Q.navigationId,delete Q.\u0275routerPageId,0!==Object.keys(Q).length&&(d.state=Q)}const A=this.parseUrl(H.url);this.scheduleNavigation(A,he,w,d)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(H){this.events.next(H)}resetConfig(H){Yi(H),this.config=H.map(Vs),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(H,he={}){const{relativeTo:a,queryParams:d,fragment:w,queryParamsHandling:A,preserveFragment:Q}=he,xe=a||this.routerState.root,bt=Q?this.currentUrlTree.fragment:w;let xt=null;switch(A){case"merge":xt=Object.assign(Object.assign({},this.currentUrlTree.queryParams),d);break;case"preserve":xt=this.currentUrlTree.queryParams;break;default:xt=d||null}return null!==xt&&(xt=this.removeEmptyProps(xt)),function Mi(ee,z,H,he,a){if(0===H.length)return Gi(z.root,z.root,z.root,he,a);const d=function Ar(ee){if("string"==typeof ee[0]&&1===ee.length&&"/"===ee[0])return new io(!0,0,ee);let z=0,H=!1;const he=ee.reduce((a,d,w)=>{if("object"==typeof d&&null!=d){if(d.outlets){const A={};return Cn(d.outlets,(Q,xe)=>{A[xe]="string"==typeof Q?Q.split("/"):Q}),[...a,{outlets:A}]}if(d.segmentPath)return[...a,d.segmentPath]}return"string"!=typeof d?[...a,d]:0===w?(d.split("/").forEach((A,Q)=>{0==Q&&"."===A||(0==Q&&""===A?H=!0:".."===A?z++:""!=A&&a.push(A))}),a):[...a,d]},[]);return new io(H,z,he)}(H);if(d.toRoot())return Gi(z.root,z.root,new mt([],{}),he,a);const w=function co(ee,z,H){if(ee.isAbsolute)return new ns(z.root,!0,0);if(-1===H.snapshot._lastPathIndex){const d=H.snapshot._urlSegment;return new ns(d,d===z.root,0)}const he=Fi(ee.commands[0])?0:1;return function Oo(ee,z,H){let he=ee,a=z,d=H;for(;d>a;){if(d-=a,he=he.parent,!he)throw new Error("Invalid number of '../'");a=he.segments.length}return new ns(he,!1,a-d)}(H.snapshot._urlSegment,H.snapshot._lastPathIndex+he,ee.numberOfDoubleDots)}(d,z,ee),A=w.processChildren?go(w.segmentGroup,w.index,d.commands):ho(w.segmentGroup,w.index,d.commands);return Gi(z.root,w.segmentGroup,A,he,a)}(xe,this.currentUrlTree,H,xt,null!=bt?bt:null)}navigateByUrl(H,he={skipLocationChange:!1}){const a=_s(H)?H:this.parseUrl(H),d=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(d,"imperative",null,he)}navigate(H,he={skipLocationChange:!1}){return function ea(ee){for(let z=0;z<ee.length;z++){const H=ee[z];if(null==H)throw new Error(`The requested path contains ${H} segment at index ${z}`)}}(H),this.navigateByUrl(this.createUrlTree(H,he),he)}serializeUrl(H){return this.urlSerializer.serialize(H)}parseUrl(H){let he;try{he=this.urlSerializer.parse(H)}catch(a){he=this.malformedUriErrorHandler(a,this.urlSerializer,H)}return he}isActive(H,he){let a;if(a=!0===he?Object.assign({},Zr):!1===he?Object.assign({},ur):he,_s(H))return lt(this.currentUrlTree,H,a);const d=this.parseUrl(H);return lt(this.currentUrlTree,d,a)}removeEmptyProps(H){return Object.keys(H).reduce((he,a)=>{const d=H[a];return null!=d&&(he[a]=d),he},{})}processNavigations(){this.navigations.subscribe(H=>{this.navigated=!0,this.lastSuccessfulId=H.id,this.currentPageId=H.targetPageId,this.events.next(new Mt(H.id,this.serializeUrl(H.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,H.resolve(!0)},H=>{this.console.warn(`Unhandled Navigation Error: ${H}`)})}scheduleNavigation(H,he,a,d,w){var A,Q;if(this.disposed)return Promise.resolve(!1);let xe,bt,xt;w?(xe=w.resolve,bt=w.reject,xt=w.promise):xt=new Promise((Wt,ti)=>{xe=Wt,bt=ti});const Jt=++this.navigationId;let Sn;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(a=this.location.getState()),Sn=a&&a.\u0275routerPageId?a.\u0275routerPageId:d.replaceUrl||d.skipLocationChange?null!==(A=this.browserPageId)&&void 0!==A?A:0:(null!==(Q=this.browserPageId)&&void 0!==Q?Q:0)+1):Sn=0,this.setTransition({id:Jt,targetPageId:Sn,source:he,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:H,extras:d,resolve:xe,reject:bt,promise:xt,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),xt.catch(Wt=>Promise.reject(Wt))}setBrowserUrl(H,he){const a=this.urlSerializer.serialize(H),d=Object.assign(Object.assign({},he.extras.state),this.generateNgRouterState(he.id,he.targetPageId));this.location.isCurrentPathEqualTo(a)||he.extras.replaceUrl?this.location.replaceState(a,"",d):this.location.go(a,"",d)}restoreHistory(H,he=!1){var a,d;if("computed"===this.canceledNavigationResolution){const w=this.currentPageId-H.targetPageId;"popstate"!==H.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(a=this.currentNavigation)||void 0===a?void 0:a.finalUrl)||0===w?this.currentUrlTree===(null===(d=this.currentNavigation)||void 0===d?void 0:d.finalUrl)&&0===w&&(this.resetState(H),this.browserUrlTree=H.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(w)}else"replace"===this.canceledNavigationResolution&&(he&&this.resetState(H),this.resetUrlToCurrentUrlTree())}resetState(H){this.routerState=H.currentRouterState,this.currentUrlTree=H.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,H.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(H,he){const a=new it(H.id,this.serializeUrl(H.extractedUrl),he);this.triggerEvent(a),H.resolve(!1)}generateNgRouterState(H,he){return"computed"===this.canceledNavigationResolution?{navigationId:H,\u0275routerPageId:he}:{navigationId:H}}}return ee.\u0275fac=function(H){h.$Z()},ee.\u0275prov=h.Yz7({token:ee,factory:ee.\u0275fac}),ee})();function Xs(ee){return"imperative"!==ee}let Bs=(()=>{class ee{constructor(H,he,a,d,w){this.router=H,this.route=he,this.tabIndexAttribute=a,this.renderer=d,this.el=w,this.commands=null,this.onChanges=new Te.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(H){if(null!=this.tabIndexAttribute)return;const he=this.renderer,a=this.el.nativeElement;null!==H?he.setAttribute(a,"tabindex",H):he.removeAttribute(a,"tabindex")}ngOnChanges(H){this.onChanges.next(this)}set routerLink(H){null!=H?(this.commands=Array.isArray(H)?H:[H],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const H={skipLocationChange:Hs(this.skipLocationChange),replaceUrl:Hs(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,H),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Hs(this.preserveFragment)})}}return ee.\u0275fac=function(H){return new(H||ee)(h.Y36(Or),h.Y36(jr),h.$8M("tabindex"),h.Y36(h.Qsj),h.Y36(h.SBq))},ee.\u0275dir=h.lG2({type:ee,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(H,he){1&H&&h.NdJ("click",function(){return he.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[h.TTD]}),ee})(),Sr=(()=>{class ee{constructor(H,he,a){this.router=H,this.route=he,this.locationStrategy=a,this.commands=null,this.href=null,this.onChanges=new Te.x,this.subscription=
1H.events.subscribe(d=>{d instanceof Mt&&this.updateTargetUrlAndHref()})}set routerLink(H){this.commands=null!=H?Array.isArray(H)?H:[H]:null}ngOnChanges(H){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(H,he,a,d,w){if(0!==H||he||a||d||w||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const A={skipLocationChange:Hs(this.skipLocationChange),replaceUrl:Hs(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,A),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Hs(this.preserveFragment)})}}return ee.\u0275fac=function(H){return new(H||ee)(h.Y36(Or),h.Y36(jr),h.Y36(Dn.S$))},ee.\u0275dir=h.lG2({type:ee,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(H,he){1&H&&h.NdJ("click",function(d){return he.onClick(d.button,d.ctrlKey,d.shiftKey,d.altKey,d.metaKey)}),2&H&&h.uIk("target",he.target)("href",he.href,h.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[h.TTD]}),ee})();function Hs(ee){return""===ee||!!ee}let Wo=(()=>{class ee{constructor(H,he,a,d,w,A){this.router=H,this.element=he,this.renderer=a,this.cdr=d,this.link=w,this.linkWithHref=A,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new h.vpe,this.routerEventsSubscription=H.events.subscribe(Q=>{Q instanceof Mt&&this.update()})}ngAfterContentInit(){(0,m.of)(this.links.changes,this.linksWithHrefs.changes,(0,m.of)(null)).pipe((0,Bn.J)()).subscribe(H=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var H;null===(H=this.linkInputChangesSubscription)||void 0===H||H.unsubscribe();const he=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(a=>!!a).map(a=>a.onChanges);this.linkInputChangesSubscription=(0,s.D)(he).pipe((0,Bn.J)()).subscribe(a=>{this.isActive!==this.isLinkActive(this.router)(a)&&this.update()})}set routerLinkActive(H){const he=Array.isArray(H)?H:H.split(" ");this.classes=he.filter(a=>!!a)}ngOnChanges(H){this.update()}ngOnDestroy(){var H;this.routerEventsSubscription.unsubscribe(),null===(H=this.linkInputChangesSubscription)||void 0===H||H.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const H=this.hasActiveLinks();this.isActive!==H&&(this.isActive=H,this.cdr.markForCheck(),this.classes.forEach(he=>{H?this.renderer.addClass(this.element.nativeElement,he):this.renderer.removeClass(this.element.nativeElement,he)}),this.isActiveChange.emit(H))})}isLinkActive(H){const he=function ao(ee){return!!ee.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return a=>!!a.urlTree&&H.isActive(a.urlTree,he)}hasActiveLinks(){const H=this.isLinkActive(this.router);return this.link&&H(this.link)||this.linkWithHref&&H(this.linkWithHref)||this.links.some(H)||this.linksWithHrefs.some(H)}}return ee.\u0275fac=function(H){return new(H||ee)(h.Y36(Or),h.Y36(h.SBq),h.Y36(h.Qsj),h.Y36(h.sBO),h.Y36(Bs,8),h.Y36(Sr,8))},ee.\u0275dir=h.lG2({type:ee,selectors:[["","routerLinkActive",""]],contentQueries:function(H,he,a){if(1&H&&(h.Suo(a,Bs,5),h.Suo(a,Sr,5)),2&H){let d;h.iGM(d=h.CRH())&&(he.links=d),h.iGM(d=h.CRH())&&(he.linksWithHrefs=d)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[h.TTD]}),ee})();class bi{}class Vi{preload(z,H){return(0,m.of)(null)}}let Ti=(()=>{class ee{constructor(H,he,a,d){this.router=H,this.injector=a,this.preloadingStrategy=d,this.loader=new vr(a,he,Q=>H.triggerEvent(new tn(Q)),Q=>H.triggerEvent(new _n(Q)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,Re.h)(H=>H instanceof Mt),(0,Fe.b)(()=>this.preload())).subscribe(()=>{})}preload(){const H=this.injector.get(h.h0i);return this.processRoutes(H,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(H,he){const a=[];for(const d of he)if(d.loadChildren&&!d.canLoad&&d._loadedConfig){const w=d._loadedConfig;a.push(this.processRoutes(w.module,w.routes))}else d.loadChildren&&!d.canLoad?a.push(this.preloadConfig(H,d)):d.children&&a.push(this.processRoutes(H,d.children));return(0,s.D)(a).pipe((0,Bn.J)(),(0,rt.U)(d=>{}))}preloadConfig(H,he){return this.preloadingStrategy.preload(he,()=>(he._loadedConfig?(0,m.of)(he._loadedConfig):this.loader.load(H.injector,he)).pipe((0,en.z)(d=>(he._loadedConfig=d,this.processRoutes(d.module,d.routes)))))}}return ee.\u0275fac=function(H){return new(H||ee)(h.LFG(Or),h.LFG(h.Sil),h.LFG(h.zs3),h.LFG(bi))},ee.\u0275prov=h.Yz7({token:ee,factory:ee.\u0275fac}),ee})(),ts=(()=>{class ee{constructor(H,he,a={}){this.router=H,this.viewportScroller=he,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(H=>{H instanceof Dt?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=H.navigationTrigger,this.restoredId=H.restoredState?H.restoredState.navigationId:0):H instanceof Mt&&(this.lastId=H.id,this.scheduleScrollEvent(H,this.router.parseUrl(H.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(H=>{H instanceof Vn&&(H.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(H.position):H.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(H.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(H,he){this.router.triggerEvent(new Vn(H,"popstate"===this.lastSource?this.store[this.restoredId]:null,he))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return ee.\u0275fac=function(H){h.$Z()},ee.\u0275prov=h.Yz7({token:ee,factory:ee.\u0275fac}),ee})();const qr=new h.OlP("ROUTER_CONFIGURATION"),Co=new h.OlP("ROUTER_FORROOT_GUARD"),Rr=[Dn.Ye,{provide:De,useClass:U},{provide:Or,useFactory:function Yo(ee,z,H,he,a,d,w={},A,Q){const xe=new Or(null,ee,z,H,he,a,Zt(d));return A&&(xe.urlHandlingStrategy=A),Q&&(xe.routeReuseStrategy=Q),function ya(ee,z){ee.errorHandler&&(z.errorHandler=ee.errorHandler),ee.malformedUriErrorHandler&&(z.malformedUriErrorHandler=ee.malformedUriErrorHandler),ee.onSameUrlNavigation&&(z.onSameUrlNavigation=ee.onSameUrlNavigation),ee.paramsInheritanceStrategy&&(z.paramsInheritanceStrategy=ee.paramsInheritanceStrategy),ee.relativeLinkResolution&&(z.relativeLinkResolution=ee.relativeLinkResolution),ee.urlUpdateStrategy&&(z.urlUpdateStrategy=ee.urlUpdateStrategy),ee.canceledNavigationResolution&&(z.canceledNavigationResolution=ee.canceledNavigationResolution)}(w,xe),w.enableTracing&&xe.events.subscribe(bt=>{var xt,Jt;null===(xt=console.group)||void 0===xt||xt.call(console,`Router Event: ${bt.constructor.name}`),console.log(bt.toString()),console.log(bt),null===(Jt=console.groupEnd)||void 0===Jt||Jt.call(console)}
1),xe},deps:[De,qs,Dn.Ye,h.zs3,h.Sil,Qi,qr,[class Kr{},new h.FiY],[class ji{},new h.FiY]]},qs,{provide:jr,useFactory:function cs(ee){return ee.routerState.root},deps:[Or]},Ti,Vi,class Ei{preload(z,H){return H().pipe((0,tt.K)(()=>(0,m.of)(null)))}},{provide:qr,useValue:{enableTracing:!1}}];function Ws(){return new h.PXZ("Router",Or)}let ga=(()=>{class ee{constructor(H,he){}static forRoot(H,he){return{ngModule:ee,providers:[Rr,Vr(H),{provide:Co,useFactory:eo,deps:[[Or,new h.FiY,new h.tp0]]},{provide:qr,useValue:he||{}},{provide:Dn.S$,useFactory:Zs,deps:[Dn.lw,[new h.tBr(Dn.mr),new h.FiY],qr]},{provide:ts,useFactory:ro,deps:[Or,Dn.EM,qr]},{provide:bi,useExisting:he&&he.preloadingStrategy?he.preloadingStrategy:Vi},{provide:h.PXZ,multi:!0,useFactory:Ws},[Bo,{provide:h.ip1,multi:!0,useFactory:Ta,deps:[Bo]},{provide:Da,useFactory:So,deps:[Bo]},{provide:h.tb,multi:!0,useExisting:Da}]]}}static forChild(H){return{ngModule:ee,providers:[Vr(H)]}}}return ee.\u0275fac=function(H){return new(H||ee)(h.LFG(Co,8),h.LFG(Or,8))},ee.\u0275mod=h.oAB({type:ee}),ee.\u0275inj=h.cJS({}),ee})();function ro(ee,z,H){return H.scrollOffset&&z.setOffset(H.scrollOffset),new ts(ee,z,H)}function Zs(ee,z,H={}){return H.useHash?new Dn.Do(ee,z):new Dn.b0(ee,z)}function eo(ee){return"guarded"}function Vr(ee){return[{provide:h.deG,multi:!0,useValue:ee},{provide:Qi,multi:!0,useValue:ee}]}let Bo=(()=>{class ee{constructor(H){this.injector=H,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Te.x}appInitializer(){return this.injector.get(Dn.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let he=null;const a=new Promise(A=>he=A),d=this.injector.get(Or),w=this.injector.get(qr);return"disabled"===w.initialNavigation?(d.setUpLocationChangeListener(),he(!0)):"enabled"===w.initialNavigation||"enabledBlocking"===w.initialNavigation?(d.hooks.afterPreactivation=()=>this.initNavigation?(0,m.of)(null):(this.initNavigation=!0,he(!0),this.resultOfPreactivationDone),d.initialNavigation()):he(!0),a})}bootstrapListener(H){const he=this.injector.get(qr),a=this.injector.get(Ti),d=this.injector.get(ts),w=this.injector.get(Or),A=this.injector.get(h.z2F);H===A.components[0]&&(("enabledNonBlocking"===he.initialNavigation||void 0===he.initialNavigation)&&w.initialNavigation(),a.setUpPreloading(),d.init(),w.resetRootComponentType(A.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return ee.\u0275fac=function(H){return new(H||ee)(h.LFG(h.zs3))},ee.\u0275prov=h.Yz7({token:ee,factory:ee.\u0275fac}),ee})();function Ta(ee){return ee.appInitializer.bind(ee)}function So(ee){return ee.bootstrapListener.bind(ee)}const Da=new h.OlP("Router Initializer")},7249:(_t,Ue,b)=>{"use strict";b.d(Ue,{UO:()=>ke,je:()=>k,qT:()=>C,sM:()=>we});var h=b(5e3),s=b(8407);class m{static mapToArray($e){const Te=[];for(const rt in $e)$e.hasOwnProperty(rt)&&Te.push($e[rt]);return Te}static handleEvent($e,Te,rt){0<Te.observers.length&&$e.run(()=>{Te.emit(rt)})}}let k=(()=>{class Ye{constructor(Te,rt){this.element=Te,this.zone=rt,this.DEFAULT_ZOOM=1,this.DEFAULT_CENTER=(0,s.latLng)(38.907192,-77.036871),this.DEFAULT_FPZ_OPTIONS={},this.fitBoundsOptions=this.DEFAULT_FPZ_OPTIONS,this.panOptions=this.DEFAULT_FPZ_OPTIONS,this.zoomOptions=this.DEFAULT_FPZ_OPTIONS,this.zoomPanOptions=this.DEFAULT_FPZ_OPTIONS,this.options={},this.mapReady=new h.vpe,this.zoomChange=new h.vpe,this.centerChange=new h.vpe,this.onClick=new h.vpe,this.onDoubleClick=new h.vpe,this.onMouseDown=new h.vpe,this.onMouseUp=new h.vpe,this.onMouseMove=new h.vpe,this.onMouseOver=new h.vpe,this.onMouseOut=new h.vpe,this.onMapMove=new h.vpe,this.onMapMoveStart=new h.vpe,this.onMapMoveEnd=new h.vpe,this.onMapZoom=new h.vpe,this.onMapZoomStart=new h.vpe,this.onMapZoomEnd=new h.vpe}ngOnInit(){this.zone.runOutsideAngular(()=>{this.map=(0,s.map)(this.element.nativeElement,this.options),this.addMapEventListeners()}),null!=this.center&&null!=this.zoom&&this.setView(this.center,this.zoom),null!=this.fitBounds&&this.setFitBounds(this.fitBounds),null!=this.maxBounds&&this.setMaxBounds(this.maxBounds),null!=this.minZoom&&this.setMinZoom(this.minZoom),null!=this.maxZoom&&this.setMaxZoom(this.maxZoom),this.doResize(),this.mapReady.emit(this.map)}ngOnChanges(Te){Te.zoom&&Te.center&&null!=this.zoom&&null!=this.center?this.setView(Te.center.currentValue,Te.zoom.currentValue):Te.zoom?this.setZoom(Te.zoom.currentValue):Te.center&&this.setCenter(Te.center.currentValue),Te.fitBounds&&this.setFitBounds(Te.fitBounds.currentValue),Te.maxBounds&&this.setMaxBounds(Te.maxBounds.currentValue),Te.minZoom&&this.setMinZoom(Te.minZoom.currentValue),Te.maxZoom&&this.setMaxZoom(Te.maxZoom.currentValue)}ngOnDestroy(){null!=this.map&&this.map.remove()}getMap(){return this.map}onResize(){this.delayResize()}addMapEventListeners(){const Te=(je,zt)=>{this.map.on(je,zt)};Te("click",je=>m.handleEvent(this.zone,this.onClick,je)),Te("dblclick",je=>m.handleEvent(this.zone,this.onDoubleClick,je)),Te("mousedown",je=>m.handleEvent(this.zone,this.onMouseDown,je)),Te("mouseup",je=>m.handleEvent(this.zone,this.onMouseUp,je)),Te("mouseover",je=>m.handleEvent(this.zone,this.onMouseOver,je)),Te("mouseout",je=>m.handleEvent(this.zone,this.onMouseOut,je)),Te("mousemove",je=>m.handleEvent(this.zone,this.onMouseMove,je)),Te("zoomstart",je=>m.handleEvent(this.zone,this.onMapZoomStart,je)),Te("zoom",je=>m.handleEvent(this.zone,this.onMapZoom,je)),Te("zoomend",je=>m.handleEvent(this.zone,this.onMapZoomEnd,je)),Te("movestart",je=>m.handleEvent(this.zone,this.onMapMoveStart,je)),Te("move",je=>m.handleEvent(this.zone,this.onMapMove,je)),Te("moveend",je=>m.handleEvent(this.zone,this.onMapMoveEnd,je));const rt=()=>{const je=this.map.getZoom();je!==this.zoom&&(this.zoom=je,m.handleEvent(this.zone,this.zoomChange,je));
1const zt=this.map.getCenter();(null!=zt||null!=this.center)&&((null==zt||null==this.center)&&zt!==this.center||zt.lat!==this.center.lat||zt.lng!==this.center.lng)&&(this.center=zt,m.handleEvent(this.zone,this.centerChange,zt))};Te("moveend",rt),Te("zoomend",rt)}doResize(){this.zone.runOutsideAngular(()=>{null!=this.map&&this.map.invalidateSize({})})}delayResize(){null!=this.resizeTimer&&clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(this.doResize.bind(this),200)}setView(Te,rt){null!=this.map&&null!=Te&&null!=rt&&this.map.setView(Te,rt,this.zoomPanOptions)}setZoom(Te){null!=this.map&&null!=Te&&this.map.setZoom(Te,this.zoomOptions)}setCenter(Te){null!=this.map&&null!=Te&&this.map.panTo(Te,this.panOptions)}setFitBounds(Te){null!=this.map&&null!=Te&&this.map.fitBounds(Te,this.fitBoundsOptions)}setMaxBounds(Te){null!=this.map&&null!=Te&&this.map.setMaxBounds(Te)}setMinZoom(Te){null!=this.map&&null!=Te&&this.map.setMinZoom(Te)}setMaxZoom(Te){null!=this.map&&null!=Te&&this.map.setMaxZoom(Te)}}return Ye.\u0275fac=function(Te){return new(Te||Ye)(h.Y36(h.SBq),h.Y36(h.R0b))},Ye.\u0275dir=h.lG2({type:Ye,selectors:[["","leaflet",""]],hostBindings:function(Te,rt){1&Te&&h.NdJ("resize",function(){return rt.onResize()},!1,h.Jf7)},inputs:{fitBoundsOptions:["leafletFitBoundsOptions","fitBoundsOptions"],panOptions:["leafletPanOptions","panOptions"],zoomOptions:["leafletZoomOptions","zoomOptions"],zoomPanOptions:["leafletZoomPanOptions","zoomPanOptions"],options:["leafletOptions","options"],zoom:["leafletZoom","zoom"],center:["leafletCenter","center"],fitBounds:["leafletFitBounds","fitBounds"],maxBounds:["leafletMaxBounds","maxBounds"],minZoom:["leafletMinZoom","minZoom"],maxZoom:["leafletMaxZoom","maxZoom"]},outputs:{mapReady:"leafletMapReady",zoomChange:"leafletZoomChange",centerChange:"leafletCenterChange",onClick:"leafletClick",onDoubleClick:"leafletDoubleClick",onMouseDown:"leafletMouseDown",onMouseUp:"leafletMouseUp",onMouseMove:"leafletMouseMove",onMouseOver:"leafletMouseOver",onMouseOut:"leafletMouseOut",onMapMove:"leafletMapMove",onMapMoveStart:"leafletMapMoveStart",onMapMoveEnd:"leafletMapMoveEnd",onMapZoom:"leafletMapZoom",onMapZoomStart:"leafletMapZoomStart",onMapZoomEnd:"leafletMapZoomEnd"},features:[h.TTD]}),Ye})();class v{constructor($e){this.leafletDirective=$e}init(){}getMap(){return this.leafletDirective.getMap()}}let C=(()=>{class Ye{constructor(Te,rt){this.zone=rt,this.onAdd=new h.vpe,this.onRemove=new h.vpe,this.leafletDirective=new v(Te)}ngOnInit(){this.leafletDirective.init()}ngOnDestroy(){null!=this.layer&&(this.removeLayerEventListeners(this.layer),this.layer.remove())}ngOnChanges(Te){if(Te.layer){const rt=Te.layer.previousValue,je=Te.layer.currentValue;this.zone.runOutsideAngular(()=>{null!=rt&&(this.removeLayerEventListeners(rt),rt.remove()),null!=je&&(this.addLayerEventListeners(je),this.leafletDirective.getMap().addLayer(je))})}}addLayerEventListeners(Te){this.onAddLayerHandler=rt=>m.handleEvent(this.zone,this.onAdd,rt),Te.on("add",this.onAddLayerHandler),this.onRemoveLayerHandler=rt=>m.handleEvent(this.zone,this.onRemove,rt),Te.on("remove",this.onRemoveLayerHandler)}removeLayerEventListeners(Te){Te.off("add",this.onAddLayerHandler),Te.off("remove",this.onRemoveLayerHandler)}}return Ye.\u0275fac=function(Te){return new(Te||Ye)(h.Y36(k),h.Y36(h.R0b))},Ye.\u0275dir=h.lG2({type:Ye,selectors:[["","leafletLayer",""]],inputs:{layer:["leafletLayer","layer"]},outputs:{onAdd:"leafletLayerAdd",onRemove:"leafletLayerRemove"},features:[h.TTD]}),Ye})();class te{constructor(){this.layersRemoved=0,this.layersChanged=0,this.layersAdded=0}changed(){return!(0===this.layersRemoved&&0===this.layersChanged&&0===this.layersAdded)}}class _e{constructor($e,Te){this.zone=$e,this.layersControlReady=Te}getLayersControl(){return this.layersControl}init($e,Te){const rt=$e.baseLayers||{},je=$e.overlays||{};return this.zone.runOutsideAngular(()=>{this.layersControl=s.control.layers(rt,je,Te)}),this.layersControlReady.emit(this.layersControl),this.layersControl}applyBaseLayerChanges($e){let Te=new te;return null!=this.layersControl&&(Te=this.applyChanges($e,this.layersControl.addBaseLayer)),Te}applyOverlayChanges($e){let Te=new te;return null!=this.layersControl&&(Te=this.applyChanges($e,this.layersControl.addOverlay)),Te}applyChanges($e,Te){const rt=new te;return null!=$e&&this.zone.runOutsideAngular(()=>{$e.forEachChangedItem(je=>{this.layersControl.removeLayer(je.previousValue),Te.call(this.layersControl,je.currentValue,je.key),rt.layersChanged++}),$e.forEachRemovedItem(je=>{this.layersControl.removeLayer(je.previousValue),rt.layersRemoved++}),$e.forEachAddedItem(je=>{Te.call(this.layersControl,je.currentValue,je.key),rt.layersAdded++})}),rt}}class re{constructor(){this.baseLayers={},this.overlays={}}}let we=(()=>{class Ye{constructor(Te,rt,je){this.differs=rt,this.zone=je,this.layersControlReady=new h.vpe,this.leafletDirective=new v(Te),this.control
1Layers=new _e(this.zone,this.layersControlReady),this.baseLayersDiffer=this.differs.find({}).create(),this.overlaysDiffer=this.differs.find({}).create()}set layersControlConfig(Te){null==Te&&(Te=new re),null==Te.baseLayers&&(Te.baseLayers={}),null==Te.overlays&&(Te.overlays={}),this.layersControlConfigValue=Te,this.updateLayers()}get layersControlConfig(){return this.layersControlConfigValue}ngOnInit(){this.leafletDirective.init(),this.zone.runOutsideAngular(()=>{this.controlLayers.init({},this.layersControlOptions).addTo(this.leafletDirective.getMap())}),this.updateLayers()}ngOnDestroy(){this.layersControlConfig={baseLayers:{},overlays:{}},this.controlLayers.getLayersControl().remove()}ngDoCheck(){this.updateLayers()}updateLayers(){const Te=this.leafletDirective.getMap(),rt=this.controlLayers.getLayersControl();if(null!=Te&&null!=rt){if(null!=this.baseLayersDiffer&&null!=this.layersControlConfigValue.baseLayers){const je=this.baseLayersDiffer.diff(this.layersControlConfigValue.baseLayers);this.controlLayers.applyBaseLayerChanges(je)}if(null!=this.overlaysDiffer&&null!=this.layersControlConfigValue.overlays){const je=this.overlaysDiffer.diff(this.layersControlConfigValue.overlays);this.controlLayers.applyOverlayChanges(je)}}}}return Ye.\u0275fac=function(Te){return new(Te||Ye)(h.Y36(k),h.Y36(h.aQg),h.Y36(h.R0b))},Ye.\u0275dir=h.lG2({type:Ye,selectors:[["","leafletLayersControl",""]],inputs:{layersControlConfig:["leafletLayersControl","layersControlConfig"],layersControlOptions:["leafletLayersControlOptions","layersControlOptions"]},outputs:{layersControlReady:"leafletLayersControlReady"}}),Ye})(),ke=(()=>{class Ye{}return Ye.\u0275fac=function(Te){return new(Te||Ye)},Ye.\u0275mod=h.oAB({type:Ye}),Ye.\u0275inj=h.cJS({}),Ye})()},3942:(_t,Ue,b)=>{"use strict";b.d(Ue,{Z:()=>Ye});var h=b(2090),s=b(4859),m=b(6881),k=b(1877);class v{constructor(Te,rt){this._delegate=Te,this.firebase=rt,(0,m._addComponent)(Te,new s.wA("app-compat",()=>this,"PUBLIC")),this.container=Te.container}get automaticDataCollectionEnabled(){return this._delegate.automaticDataCollectionEnabled}set automaticDataCollectionEnabled(Te){this._delegate.automaticDataCollectionEnabled=Te}get name(){return this._delegate.name}get options(){return this._delegate.options}delete(){return new Promise(Te=>{this._delegate.checkDestroyed(),Te()}).then(()=>(this.firebase.INTERNAL.removeApp(this.name),(0,m.deleteApp)(this._delegate)))}_getService(Te,rt=m._DEFAULT_ENTRY_NAME){var je;this._delegate.checkDestroyed();const zt=this._delegate.container.getProvider(Te);return!zt.isInitialized()&&"EXPLICIT"===(null===(je=zt.getComponent())||void 0===je?void 0:je.instantiationMode)&&zt.initialize(),zt.getImmediate({identifier:rt})}_removeServiceInstance(Te,rt=m._DEFAULT_ENTRY_NAME){this._delegate.container.getProvider(Te).clearInstance(rt)}_addComponent(Te){(0,m._addComponent)(this._delegate,Te)}_addOrOverwriteComponent(Te){(0,m._addOrOverwriteComponent)(this._delegate,Te)}toJSON(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}}}const q=new h.LL("app-compat","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance."}),re=function _e(){const $e=function te($e){const Te={},rt={__esModule:!0,initializeApp:function ut(Fe,me={}){const gt=m.initializeApp(Fe,me);if((0,h.r3)(Te,gt.name))return Te[gt.name];const Bt=new $e(gt,rt);return Te[gt.name]=Bt,Bt},app:zt,registerVersion:m.registerVersion,setLogLevel:m.setLogLevel,onLog:m.onLog,apps:null,SDK_VERSION:m.SDK_VERSION,INTERNAL:{registerComponent:function Re(Fe){const me=Fe.name,gt=me.replace("-compat","");if(m._registerComponent(Fe)&&"PUBLIC"===Fe.type){const Bt=(pn=zt())=>{if("function"!=typeof pn[gt])throw q.create("invalid-app-argument",{appName:me});return pn[gt]()};void 0!==Fe.serviceProps&&(0,h.ZB)(Bt,Fe.serviceProps),rt[gt]=Bt,$e.prototype[gt]=function(...pn){return this._getService.bind(this,me).apply(this,Fe.multipleInstances?pn:[])}}return"PUBLIC"===Fe.type?rt[gt]:null},removeApp:function je(Fe){delete Te[Fe]},useAsService:function tt(Fe,me){return"serverAuth"===me?null:me},modularAPIs:m}};function zt(Fe){if(!(0,h.r3)(Te,Fe=Fe||m._DEFAULT_ENTRY_NAME))throw q.create("no-app",{appName:Fe});return Te[Fe]}return rt.default=rt,Object.defineProperty(rt,"apps",{get:function ze(){return Object.keys(Te).map(Fe=>Te[Fe])}}),zt.App=$e,rt}(v);return $e.INTERNAL=Object.assign(Object.assign({},$e.INTERNAL),{createFirebaseNamespace:_e,extendNamespace:function Te(rt){(0,h.ZB)($e,rt)},createSubscribe:h.ne,ErrorFactory:h.LL,deepExtend:h.ZB}),$e}(),we=new k.Yd("@firebase/app-compat");
1if((0,h.jU)()&&void 0!==self.firebase){we.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");const $e=self.firebase.SDK_VERSION;$e&&$e.indexOf("LITE")>=0&&we.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}const Ye=re;!function Ze($e){(0,m.registerVersion)("@firebase/app-compat","0.2.13",$e)}()},6881:(_t,Ue,b)=>{"use strict";b.r(Ue),b.d(Ue,{FirebaseError:()=>k.ZR,SDK_VERSION:()=>lt,_DEFAULT_ENTRY_NAME:()=>K,_addComponent:()=>Tt,_addOrOverwriteComponent:()=>Zt,_apps:()=>Me,_clearComponents:()=>Nn,_components:()=>nt,_getProvider:()=>Pn,_registerComponent:()=>Yt,_removeServiceInstance:()=>Cn,deleteApp:()=>Ee,getApp:()=>Se,getApps:()=>Ke,initializeApp:()=>Qt,onLog:()=>Ot,registerVersion:()=>at,setLogLevel:()=>mt});var h=b(5861),s=b(4859),m=b(1877),k=b(2090);let C,q;const re=new WeakMap,we=new WeakMap,be=new WeakMap,ke=new WeakMap,Ze=new WeakMap;let Te={get(rn,qt,xn){if(rn instanceof IDBTransaction){if("done"===qt)return we.get(rn);if("objectStoreNames"===qt)return rn.objectStoreNames||be.get(rn);if("store"===qt)return xn.objectStoreNames[1]?void 0:xn.objectStore(xn.objectStoreNames[0])}return ut(rn[qt])},set:(rn,qt,xn)=>(rn[qt]=xn,!0),has:(rn,qt)=>rn instanceof IDBTransaction&&("done"===qt||"store"===qt)||qt in rn};function zt(rn){return"function"==typeof rn?function je(rn){return rn!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function _e(){return q||(q=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(rn)?function(...qt){return rn.apply(ze(this),qt),ut(re.get(this))}:function(...qt){return ut(rn.apply(ze(this),qt))}:function(qt,...xn){const fn=rn.call(ze(this),qt,...xn);return be.set(fn,qt.sort?qt.sort():[qt]),ut(fn)}}(rn):(rn instanceof IDBTransaction&&function $e(rn){if(we.has(rn))return;const qt=new Promise((xn,fn)=>{const zn=()=>{rn.removeEventListener("complete",ai),rn.removeEventListener("error",Hi),rn.removeEventListener("abort",Hi)},ai=()=>{xn(),zn()},Hi=()=>{fn(rn.error||new DOMException("AbortError","AbortError")),zn()};rn.addEventListener("complete",ai),rn.addEventListener("error",Hi),rn.addEventListener("abort",Hi)});we.set(rn,qt)}(rn),((rn,qt)=>qt.some(xn=>rn instanceof xn))(rn,function te(){return C||(C=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(rn,Te):rn)}function ut(rn){if(rn instanceof IDBRequest)return function Ye(rn){const qt=new Promise((xn,fn)=>{const zn=()=>{rn.removeEventListener("success",ai),rn.removeEventListener("error",Hi)},ai=()=>{xn(ut(rn.result)),zn()},Hi=()=>{fn(rn.error),zn()};rn.addEventListener("success",ai),rn.addEventListener("error",Hi)});return qt.then(xn=>{xn instanceof IDBCursor&&re.set(xn,rn)}).catch(()=>{}),Ze.set(qt,rn),qt}(rn);if(ke.has(rn))return ke.get(rn);const qt=zt(rn);return qt!==rn&&(ke.set(rn,qt),Ze.set(qt,rn)),qt}const ze=rn=>Ze.get(rn),Fe=["get","getKey","getAll","getAllKeys","count"],me=["put","add","delete","clear"],gt=new Map;function Bt(rn,qt){if(!(rn instanceof IDBDatabase)||qt in rn||"string"!=typeof qt)return;if(gt.get(qt))return gt.get(qt);const xn=qt.replace(/FromIndex$/,""),fn=qt!==xn,zn=me.includes(xn);if(!(xn in(fn?IDBIndex:IDBObjectStore).prototype)||!zn&&!Fe.includes(xn))return;const ai=function(){var Hi=(0,h.Z)(function*(_r,...Ji){const Pr=this.transaction(_r,zn?"readwrite":"readonly");let ki=Pr.store;return fn&&(ki=ki.index(Ji.shift())),(yield Promise.all([ki[xn](...Ji),zn&&Pr.done]))[0]});return function(Ji){return Hi.apply(this,arguments)}}();return gt.set(qt,ai),ai}!function rt(rn){Te=rn(Te)}(rn=>Jy(Qy({},rn),{get:(qt,xn,fn)=>Bt(qt,xn)||rn.get(qt,xn,fn),has:(qt,xn)=>!!Bt(qt,xn)||rn.has(qt,xn)}));class pn{constructor(qt){this.container=qt}getPlatformInfoString(){return this.container.getProviders().map(xn=>{if(function mn(rn){const qt=rn.getComponent();return"VERSION"===(null==qt?void 0:qt.type)}(xn)){const fn=xn.getImmediate();return`${fn.library}/${fn.version}`}return null}).filter(xn=>xn).join(" ")}}const jn="@firebase/app",Wn=new m.Yd("@firebase/app"),K="[DEFAULT]",ae={[jn]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},Me=new Map,nt=new Map;function Tt(rn,qt){try{rn.container.addComponent(qt)}catch(xn){Wn.debug(`Component ${qt.name} failed to register with FirebaseApp ${rn.name}`,xn)}}function Zt(rn,qt){rn.container.addOrOverwriteComponent(qt)}function Yt(rn){const qt=rn.name;if(nt.has(qt))return Wn.debug(`There were multiple attempts to register component ${qt}.`),!1;nt.set(qt,rn);for(const xn of Me.values())Tt(xn,rn);return!0}function Pn(rn,qt){const xn=rn.container.getProvider("heartbeat").getImmediate({optional:!0});return xn&&xn.triggerHeartbeat(),rn.container.getProvider(qt)}function Cn(rn,qt,xn=K){Pn(rn,qt).clearInstance(xn)}function Nn(){nt.clear()}const ni=new k.LL("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 options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invali
1d-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}."});class Qn{constructor(qt,xn,fn){this._isDeleted=!1,this._options=Object.assign({},qt),this._config=Object.assign({},xn),this._name=xn.name,this._automaticDataCollectionEnabled=xn.automaticDataCollectionEnabled,this._container=fn,this.container.addComponent(new s.wA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(qt){this.checkDestroyed(),this._automaticDataCollectionEnabled=qt}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(qt){this._isDeleted=qt}checkDestroyed(){if(this.isDeleted)throw ni.create("app-deleted",{appName:this._name})}}const lt="9.23.0";function Qt(rn,qt={}){let xn=rn;"object"!=typeof qt&&(qt={name:qt});const fn=Object.assign({name:K,automaticDataCollectionEnabled:!1},qt),zn=fn.name;if("string"!=typeof zn||!zn)throw ni.create("bad-app-name",{appName:String(zn)});if(xn||(xn=(0,k.aH)()),!xn)throw ni.create("no-options");const ai=Me.get(zn);if(ai){if((0,k.vZ)(xn,ai.options)&&(0,k.vZ)(fn,ai.config))return ai;throw ni.create("duplicate-app",{appName:zn})}const Hi=new s.H0(zn);for(const Ji of nt.values())Hi.addComponent(Ji);const _r=new Qn(xn,fn,Hi);return Me.set(zn,_r),_r}function Se(rn=K){const qt=Me.get(rn);if(!qt&&rn===K&&(0,k.aH)())return Qt();if(!qt)throw ni.create("no-app",{appName:rn});return qt}function Ke(){return Array.from(Me.values())}function Ee(rn){return Be.apply(this,arguments)}function Be(){return(Be=(0,h.Z)(function*(rn){const qt=rn.name;Me.has(qt)&&(Me.delete(qt),yield Promise.all(rn.container.getProviders().map(xn=>xn.delete())),rn.isDeleted=!0)})).apply(this,arguments)}function at(rn,qt,xn){var fn;let zn=null!==(fn=ae[rn])&&void 0!==fn?fn:rn;xn&&(zn+=`-${xn}`);const ai=zn.match(/\s|\//),Hi=qt.match(/\s|\//);if(ai||Hi){const _r=[`Unable to register library "${zn}" with version "${qt}":`];return ai&&_r.push(`library name "${zn}" contains illegal characters (whitespace or "/")`),ai&&Hi&&_r.push("and"),Hi&&_r.push(`version name "${qt}" contains illegal characters (whitespace or "/")`),void Wn.warn(_r.join(" "))}Yt(new s.wA(`${zn}-version`,()=>({library:zn,version:qt}),"VERSION"))}function Ot(rn,qt){if(null!==rn&&"function"!=typeof rn)throw ni.create("invalid-log-argument");(0,m.Am)(rn,qt)}function mt(rn){(0,m.Ub)(rn)}const ht="firebase-heartbeat-store";let Oe=null;function De(){return Oe||(Oe=function Re(rn,qt,{blocked:xn,upgrade:fn,blocking:zn,terminated:ai}={}){const Hi=indexedDB.open(rn,qt),_r=ut(Hi);return fn&&Hi.addEventListener("upgradeneeded",Ji=>{fn(ut(Hi.result),Ji.oldVersion,Ji.newVersion,ut(Hi.transaction),Ji)}),xn&&Hi.addEventListener("blocked",Ji=>xn(Ji.oldVersion,Ji.newVersion,Ji)),_r.then(Ji=>{ai&&Ji.addEventListener("close",()=>ai()),zn&&Ji.addEventListener("versionchange",Pr=>zn(Pr.oldVersion,Pr.newVersion,Pr))}).catch(()=>{}),_r}("firebase-heartbeat-database",1,{upgrade:(rn,qt)=>{0===qt&&rn.createObjectStore(ht)}}).catch(rn=>{throw ni.create("idb-open",{originalErrorMessage:rn.message})})),Oe}function N(){return(N=(0,h.Z)(function*(rn){try{return yield(yield De()).transaction(ht).objectStore(ht).get(de(rn))}catch(qt){if(qt instanceof k.ZR)Wn.warn(qt.message);else{const xn=ni.create("idb-get",{originalErrorMessage:null==qt?void 0:qt.message});Wn.warn(xn.message)}}})).apply(this,arguments)}function x(rn,qt){return j.apply(this,arguments)}function j(){return(j=(0,h.Z)(function*(rn,qt){try{const fn=(yield De()).transaction(ht,"readwrite");yield fn.objectStore(ht).put(qt,de(rn)),yield fn.done}catch(xn){if(xn instanceof k.ZR)Wn.warn(xn.message);else{const fn=ni.create("idb-set",{originalErrorMessage:null==xn?void 0:xn.message});Wn.warn(fn.message)}}})).apply(this,arguments)}function de(rn){return`${rn.name}!${rn.options.appId}`}class Ht{constructor(qt){this.container=qt,this._heartbeatsCache=null;const xn=this.container.getProvider("app").getImmediate();this._storage=new ii(xn),this._heartbeatsCachePromise=this._storage.read().then(fn=>(this._heartbeatsCache=fn,fn))}triggerHeartbeat(){var qt=this;return(0,h.Z)(function*(){const fn=qt.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),zn=kn();if(null===qt._heartbeatsCache&&(qt._heartbeatsCache=yield qt._heartbeatsCachePromise),qt._heartbeatsCache.lastSentHeartbeatDate!==zn&&!qt._heartbeatsCache.heartbeats.some(ai=>
1ai.date===zn))return qt._heartbeatsCache.heartbeats.push({date:zn,agent:fn}),qt._heartbeatsCache.heartbeats=qt._heartbeatsCache.heartbeats.filter(ai=>{const Hi=new Date(ai.date).valueOf();return Date.now()-Hi<=2592e6}),qt._storage.overwrite(qt._heartbeatsCache)})()}getHeartbeatsHeader(){var qt=this;return(0,h.Z)(function*(){if(null===qt._heartbeatsCache&&(yield qt._heartbeatsCachePromise),null===qt._heartbeatsCache||0===qt._heartbeatsCache.heartbeats.length)return"";const xn=kn(),{heartbeatsToSend:fn,unsentEntries:zn}=function Jn(rn,qt=1024){const xn=[];let fn=rn.slice();for(const zn of rn){const ai=xn.find(Hi=>Hi.agent===zn.agent);if(ai){if(ai.dates.push(zn.date),Ii(xn)>qt){ai.dates.pop();break}}else if(xn.push({agent:zn.agent,dates:[zn.date]}),Ii(xn)>qt){xn.pop();break}fn=fn.slice(1)}return{heartbeatsToSend:xn,unsentEntries:fn}}(qt._heartbeatsCache.heartbeats),ai=(0,k.L)(JSON.stringify({version:2,heartbeats:fn}));return qt._heartbeatsCache.lastSentHeartbeatDate=xn,zn.length>0?(qt._heartbeatsCache.heartbeats=zn,yield qt._storage.overwrite(qt._heartbeatsCache)):(qt._heartbeatsCache.heartbeats=[],qt._storage.overwrite(qt._heartbeatsCache)),ai})()}}function kn(){return(new Date).toISOString().substring(0,10)}class ii{constructor(qt){this.app=qt,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,h.Z)(function*(){return!!(0,k.hl)()&&(0,k.eu)().then(()=>!0).catch(()=>!1)})()}read(){var qt=this;return(0,h.Z)(function*(){return(yield qt._canUseIndexedDBPromise)&&(yield function U(rn){return N.apply(this,arguments)}(qt.app))||{heartbeats:[]}})()}overwrite(qt){var xn=this;return(0,h.Z)(function*(){var fn;if(yield xn._canUseIndexedDBPromise){const ai=yield xn.read();return x(xn.app,{lastSentHeartbeatDate:null!==(fn=qt.lastSentHeartbeatDate)&&void 0!==fn?fn:ai.lastSentHeartbeatDate,heartbeats:qt.heartbeats})}})()}add(qt){var xn=this;return(0,h.Z)(function*(){var fn;if(yield xn._canUseIndexedDBPromise){const ai=yield xn.read();return x(xn.app,{lastSentHeartbeatDate:null!==(fn=qt.lastSentHeartbeatDate)&&void 0!==fn?fn:ai.lastSentHeartbeatDate,heartbeats:[...ai.heartbeats,...qt.heartbeats]})}})()}}function Ii(rn){return(0,k.L)(JSON.stringify({version:2,heartbeats:rn})).length}!function Cr(rn){Yt(new s.wA("platform-logger",qt=>new pn(qt),"PRIVATE")),Yt(new s.wA("heartbeat",qt=>new Ht(qt),"PRIVATE")),at(jn,"0.9.13",rn),at(jn,"0.9.13","esm2017"),at("fire-js","")}("")},4859:(_t,Ue,b)=>{"use strict";b.d(Ue,{H0:()=>te,wA:()=>m,zt:()=>v});var h=b(5861),s=b(2090);class m{constructor(re,we,be){this.name=re,this.instanceFactory=we,this.type=be,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(re){return this.instantiationMode=re,this}setMultipleInstances(re){return this.multipleInstances=re,this}setServiceProps(re){return this.serviceProps=re,this}setInstanceCreatedCallback(re){return this.onInstanceCreated=re,this}}const k="[DEFAULT]";class v{constructor(re,we){this.name=re,this.container=we,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(re){const we=this.normalizeInstanceIdentifier(re);if(!this.instancesDeferred.has(we)){const be=new s.BH;if(this.instancesDeferred.set(we,be),this.isInitialized(we)||this.shouldAutoInitialize())try{const ke=this.getOrInitializeService({instanceIdentifier:we});ke&&be.resolve(ke)}catch(ke){}}return this.instancesDeferred.get(we).promise}getImmediate(re){var we;const be=this.normalizeInstanceIdentifier(null==re?void 0:re.identifier),ke=null!==(we=null==re?void 0:re.optional)&&void 0!==we&&we;if(!this.isInitialized(be)&&!this.shouldAutoInitialize()){if(ke)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:be})}catch(Ze){if(ke)return null;throw Ze}}getComponent(){return this.component}setComponent(re){if(re.name!==this.name)throw Error(`Mismatching Component ${re.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=re,this.shouldAutoInitialize()){if(function q(_e){return"EAGER"===_e.instantiationMode}(re))try{this.getOrInitializeService({instanceIdentifier:k}
1)}catch(we){}for(const[we,be]of this.instancesDeferred.entries()){const ke=this.normalizeInstanceIdentifier(we);try{const Ze=this.getOrInitializeService({instanceIdentifier:ke});be.resolve(Ze)}catch(Ze){}}}}clearInstance(re=k){this.instancesDeferred.delete(re),this.instancesOptions.delete(re),this.instances.delete(re)}delete(){var re=this;return(0,h.Z)(function*(){const we=Array.from(re.instances.values());yield Promise.all([...we.filter(be=>"INTERNAL"in be).map(be=>be.INTERNAL.delete()),...we.filter(be=>"_delete"in be).map(be=>be._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(re=k){return this.instances.has(re)}getOptions(re=k){return this.instancesOptions.get(re)||{}}initialize(re={}){const{options:we={}}=re,be=this.normalizeInstanceIdentifier(re.instanceIdentifier);if(this.isInitialized(be))throw Error(`${this.name}(${be}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const ke=this.getOrInitializeService({instanceIdentifier:be,options:we});for(const[Ze,Ye]of this.instancesDeferred.entries())be===this.normalizeInstanceIdentifier(Ze)&&Ye.resolve(ke);return ke}onInit(re,we){var be;const ke=this.normalizeInstanceIdentifier(we),Ze=null!==(be=this.onInitCallbacks.get(ke))&&void 0!==be?be:new Set;Ze.add(re),this.onInitCallbacks.set(ke,Ze);const Ye=this.instances.get(ke);return Ye&&re(Ye,ke),()=>{Ze.delete(re)}}invokeOnInitCallbacks(re,we){const be=this.onInitCallbacks.get(we);if(be)for(const ke of be)try{ke(re,we)}catch(Ze){}}getOrInitializeService({instanceIdentifier:re,options:we={}}){let be=this.instances.get(re);if(!be&&this.component&&(be=this.component.instanceFactory(this.container,{instanceIdentifier:(_e=re,_e===k?void 0:_e),options:we}),this.instances.set(re,be),this.instancesOptions.set(re,we),this.invokeOnInitCallbacks(be,re),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,re,be)}catch(ke){}var _e;return be||null}normalizeInstanceIdentifier(re=k){return this.component?this.component.multipleInstances?re:k:re}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class te{constructor(re){this.name=re,this.providers=new Map}addComponent(re){const we=this.getProvider(re.name);if(we.isComponentSet())throw new Error(`Component ${re.name} has already been registered with ${this.name}`);we.setComponent(re)}addOrOverwriteComponent(re){this.getProvider(re.name).isComponentSet()&&this.providers.delete(re.name),this.addComponent(re)}getProvider(re){if(this.providers.has(re))return this.providers.get(re);const we=new v(re,this);return this.providers.set(re,we),we}getProviders(){return Array.from(this.providers.values())}}},1877:(_t,Ue,b)=>{"use strict";b.d(Ue,{Am:()=>_e,Ub:()=>te,Yd:()=>q,in:()=>s});const h=[];var s=(()=>{return(re=s||(s={}))[re.DEBUG=0]="DEBUG",re[re.VERBOSE=1]="VERBOSE",re[re.INFO=2]="INFO",re[re.WARN=3]="WARN",re[re.ERROR=4]="ERROR",re[re.SILENT=5]="SILENT",s;var re})();const m={debug:s.DEBUG,verbose:s.VERBOSE,info:s.INFO,warn:s.WARN,error:s.ERROR,silent:s.SILENT},k=s.INFO,v={[s.DEBUG]:"log",[s.VERBOSE]:"log",[s.INFO]:"info",[s.WARN]:"warn",[s.ERROR]:"error"},C=(re,we,...be)=>{if(we<re.logLevel)return;const ke=(new Date).toISOString(),Ze=v[we];if(!Ze)throw new Error(`Attempted to log a message with an invalid logType (value: ${we})`);console[Ze](`[${ke}] ${re.name}:`,...be)};class q{constructor(we){this.name=we,this._logLevel=k,this._logHandler=C,this._userLogHandler=null,h.push(this)}get logLevel(){return this._logLevel}set logLevel(we){if(!(we in s))throw new TypeError(`Invalid value "${we}" assigned to \`logLevel\``);this._logLevel=we}setLogLevel(we){this._logLevel="string"==typeof we?m[we]:we}get logHandler(){return this._logHandler}set logHandler(we){if("function"!=typeof we)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=we}get userLogHandler(){return this._userLogHandler}set userLogHandler(we){this._userLogHandler=we}debug(...we){this._userLogHandler&&this._userLogHandler(this,s.DEBUG,...we),this._logHandler(this,s.DEBUG,...we)}log(...we){this._userLogHandler&&this._userLogHandler(this,s.VERBOSE,...we),this._logHandler(this,s.VERBOSE,...we)}info(...we){this._userLogHandler&&this._userLogHandler(this,s.INFO,...we),this._logHandler(this,s.INFO,...we)}warn(...we){this._userLogHandler&&this._userLogHandler(this,s.WARN,...we),this._logHandler(this,s.WARN,...we)}error(...we){this._userLogHandler&&this._userLogHandler(this,s.ERROR,...we),this._logHandler(this,s.ERROR,...we)}}function te(re){h.forEach(we=>{we.setLogLevel(re)})}function _e(re,we){for(const be of h){let ke=null;we&&we.level&&(ke=m[we.level]),be.userLogHandler=null===re?null:(Ze,Ye,...$e)=>{const Te=$e.map(rt=>{if(null==rt)return null;if("string"==typeof rt)return rt;if("number"==typeof rt||"boolean"==typeof rt)return rt.toString();if(rt instanceof Error)return rt.message;try{return JSON.stringify(rt)}catch(je){return null}}).filter(rt=>rt).join(" ");Ye>=(null!=ke?ke:Ze.logLevel)&&re({level:s[Ye].toLowerCase(),message:Te,args:$e,type:Ze.name})}}}},259:(_t,Ue,b)=>{"use strict";b.d(Ue,{C6:()=>h.getApps,KN:()=>h.registerVersion,Mq:()=>h.getApp,ZF:()=>h.initializeApp});var h=b(6881);(0,h.registerVersion)("firebase","9.23.0","app")},9260:(_t,Ue,b)=>{"use strict";b.d(Ue,{Z:()=>h.Z});var h=b(3942);h.Z.registerVersion("firebase","9.23.0","app-compat")},9568:(_t,Ue,b)=>{"use strict";b.r(Ue);var h=b(5861),s=b(3942),m=b(1389),k=b(2090),q=(b(6881),b(1877),b(4859));function te(){return window}
1function we(){return(we=(0,h.Z)(function*(De,U,N){var x;const{BuildInfo:j}=te();(0,m.as)(U.sessionId,"AuthEvent did not contain a session ID");const de=yield rt(U.sessionId),Je={};return(0,m.at)()?Je.ibi=j.packageName:(0,m.au)()?Je.apn=j.packageName:(0,m.av)(De,"operation-not-supported-in-this-environment"),j.displayName&&(Je.appDisplayName=j.displayName),Je.sessionId=de,(0,m.aw)(De,N,U.type,void 0,null!==(x=U.eventId)&&void 0!==x?x:void 0,Je)})).apply(this,arguments)}function ke(){return(ke=(0,h.Z)(function*(De){const{BuildInfo:U}=te(),N={};(0,m.at)()?N.iosBundleId=U.packageName:(0,m.au)()?N.androidPackageName=U.packageName:(0,m.av)(De,"operation-not-supported-in-this-environment"),yield(0,m.ax)(De,N)})).apply(this,arguments)}function $e(){return($e=(0,h.Z)(function*(De,U,N){const{cordova:x}=te();let j=()=>{};try{yield new Promise((de,Je)=>{let St=null;function Ht(){var ii;de();const Ii=null===(ii=x.plugins.browsertab)||void 0===ii?void 0:ii.close;"function"==typeof Ii&&Ii(),"function"==typeof(null==N?void 0:N.close)&&N.close()}function kn(){St||(St=window.setTimeout(()=>{Je((0,m.az)(De,"redirect-cancelled-by-user"))},2e3))}function Jn(){"visible"===(null==document?void 0:document.visibilityState)&&kn()}U.addPassiveListener(Ht),document.addEventListener("resume",kn,!1),(0,m.au)()&&document.addEventListener("visibilitychange",Jn,!1),j=()=>{U.removePassiveListener(Ht),document.removeEventListener("resume",kn,!1),document.removeEventListener("visibilitychange",Jn,!1),St&&window.clearTimeout(St)}})}finally{j()}})).apply(this,arguments)}function rt(De){return je.apply(this,arguments)}function je(){return(je=(0,h.Z)(function*(De){const U=zt(De),N=yield crypto.subtle.digest("SHA-256",U);return Array.from(new Uint8Array(N)).map(j=>j.toString(16).padStart(2,"0")).join("")})).apply(this,arguments)}function zt(De){if((0,m.as)(/[0-9a-zA-Z]+/.test(De),"Can only convert alpha-numeric strings"),"undefined"!=typeof TextEncoder)return(new TextEncoder).encode(De);const U=new ArrayBuffer(De.length),N=new Uint8Array(U);for(let x=0;x<De.length;x++)N[x]=De.charCodeAt(x);return N}class ze extends m.aB{constructor(){super(...arguments),this.passiveListeners=new Set,this.initPromise=new Promise(U=>{this.resolveInialized=U})}addPassiveListener(U){this.passiveListeners.add(U)}removePassiveListener(U){this.passiveListeners.delete(U)}resetRedirect(){this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1}onEvent(U){return this.resolveInialized(),this.passiveListeners.forEach(N=>N(U)),super.onEvent(U)}initialized(){var U=this;return(0,h.Z)(function*(){yield U.initPromise})()}}function Fe(De){return me.apply(this,arguments)}function me(){return(me=(0,h.Z)(function*(De){const U=yield pn()._get(mn(De));return U&&(yield pn()._remove(mn(De))),U})).apply(this,arguments)}function Bt(){const De=[],U="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let N=0;N<20;N++){const x=Math.floor(Math.random()*U.length);De.push(U.charAt(x))}return De.join("")}function pn(){return(0,m.aC)(m.b)}function mn(De){return(0,m.aD)("authEvent",De.config.apiKey,De.name)}function Wn(De){if(!(null==De?void 0:De.includes("?")))return{};const[U,...N]=De.split("?");return(0,k.zd)(N.join("?"))}function vn(){return{type:"unknown",eventId:null,sessionId:null,urlResponse:null,postBody:null,tenantId:null,error:(0,m.az)("no-auth-event")}}function ct(){var De;return(null===(De=null==self?void 0:self.location)||void 0===De?void 0:De.protocol)||null}function vt(De=(0,k.z$)()){return!("file:"!==ct()&&"ionic:"!==ct()&&"capacitor:"!==ct()||!De.toLowerCase().match(/iphone|ipad|ipod|android/))}function bn(){try{const De=self.localStorage,U=m.aL();if(De)return De.setItem(U,"1"),De.removeItem(U),!function _n(De=(0,k.z$)()){return function Ut(){return(0,k.w1)()&&11===(null==document?void 0:document.documentMode)}()||function tn(De=(0,k.z$)()){return/Edge\/\d+/.test(De)}(De)}()||(0,k.hl)()}catch(De){return pi()&&(0,k.hl)()}return!1}function pi(){return"undefined"!=typeof global&&"WorkerGlobalScope"in global&&"importScripts"in global}function si(){return(function st(){return"http:"===ct()||"https:"===ct()}()||(0,k.ru)()||vt())&&!function ft(){return(0,k.b$)()||(0,k.UG)()}()&&bn()&&!pi()}function vi(){return vt()&&"undefined"!=typeof document}function Rn(){return(Rn=(0,h.Z)(function*(){return!!vi()&&new Promise(De=>{const U=setTimeout(()=>{De(!1)},1e3);document.addEventListener("deviceready",()=>{clearTimeout(U),De(!0)})})})).apply(this,arguments)}const Pt={LOCAL:"local",NONE:"none",SESSION:"session"},$=m.aA,ue="persistence";function ae(De){return Me.apply(this,arguments)}function Me(){return(Me=(0,h.Z)(function*(De){yield De._initializationPromise;const U=Tt(),N=m.aD(ue,De.config.apiKey,De.name);U&&U.setItem(N,De._getPersistence())})).apply(this,arguments)}function Tt(){var De;try{return(null===(De=function Ve(){return"undefined"!=typeof window?window:null}())||void 0===De?void 0:De.sessionStorage)||null}catch(U){return null}}const Zt=m.aA;
1class Yt{constructor(){this.browserResolver=m.aC(m.k),this.cordovaResolver=m.aC(class Bn{constructor(){this._redirectPersistence=m.a,this._shouldInitProactively=!0,this.eventManagers=new Map,this.originValidationPromises={},this._completeRedirectFn=m.aE,this._overrideRedirectResult=m.aF}_initialize(U){var N=this;return(0,h.Z)(function*(){const x=U._key();let j=N.eventManagers.get(x);return j||(j=new ze(U),N.eventManagers.set(x,j),N.attachCallbackListeners(U,j)),j})()}_openPopup(U){(0,m.av)(U,"operation-not-supported-in-this-environment")}_openRedirect(U,N,x,j){var de=this;return(0,h.Z)(function*(){!function Te(De){var U,N,x,j,de,Je,St,Ht,kn,Jn;const ii=te();(0,m.aA)("function"==typeof(null===(U=null==ii?void 0:ii.universalLinks)||void 0===U?void 0:U.subscribe),De,"invalid-cordova-configuration",{missingPlugin:"cordova-universal-links-plugin-fix"}),(0,m.aA)(void 0!==(null===(N=null==ii?void 0:ii.BuildInfo)||void 0===N?void 0:N.packageName),De,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-buildInfo"}),(0,m.aA)("function"==typeof(null===(de=null===(j=null===(x=null==ii?void 0:ii.cordova)||void 0===x?void 0:x.plugins)||void 0===j?void 0:j.browsertab)||void 0===de?void 0:de.openUrl),De,"invali
1d-cordova-configuration",{missingPlugin:"cordova-plugin-browsertab"}),(0,m.aA)("function"==typeof(null===(Ht=null===(St=null===(Je=null==ii?void 0:ii.cordova)||void 0===Je?void 0:Je.plugins)||void 0===St?void 0:St.browsertab)||void 0===Ht?void 0:Ht.isAvailable),De,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-browsertab"}),(0,m.aA)("function"==typeof(null===(Jn=null===(kn=null==ii?void 0:ii.cordova)||void 0===kn?void 0:kn.InAppBrowser)||void 0===Jn?void 0:Jn.open),De,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-inappbrowser"})}(U);const Je=yield de._initialize(U);yield Je.initialized(),Je.resetRedirect(),(0,m.aG)(),yield de._originValidation(U);const St=function Re(De,U,N=null){return{type:U,eventId:N,urlResponse:null,sessionId:Bt(),postBody:null,tenantId:De.tenantId,error:(0,m.az)(De,"no-auth-event")}}(U,x,j);yield function tt(De,U){return pn()._set(mn(De),U)}(U,St);const Ht=yield function re(De,U,N){return we.apply(this,arguments)}(U,St,N),kn=yield function Ze(De){const{cordova:U}=te();return new Promise(N=>{U.plugins.browsertab.isAvailable(x=>{let j=null;x?U.plugins.browsertab.openUrl(De):j=U.InAppBrowser.open(De,(0,m.ay)()?"_blank":"_system","location=yes"),N(j)})})}(Ht);return function Ye(De,U,N){return $e.apply(this,arguments)}(U,Je,kn)})()}_isIframeWebStorageSupported(U,N){throw new Error("Method not implemented.")}_originValidation(U){const N=U._key();return this.originValidationPromises[N]||(this.originValidationPromises[N]=function be(De){return ke.apply(this,arguments)}(U)),this.originValidationPromises[N]}attachCallbackListeners(U,N){const{universalLinks:x,handleOpenURL:j,BuildInfo:de}=te(),Je=setTimeout((0,h.Z)(function*(){yield Fe(U),N.onEvent(vn())}),500),St=function(){var Jn=(0,h.Z)(function*(ii){clearTimeout(Je);const Ii=yield Fe(U);let Cr=null;Ii&&(null==ii?void 0:ii.url)&&(Cr=function gt(De,U){var N,x;const j=function en(De){const U=Wn(De),N=U.link?decodeURIComponent(U.link):void 0,x=Wn(N).link,j=U.deep_link_id?decodeURIComponent(U.deep_link_id):void 0;return Wn(j).link||j||x||N||De}(U);if(j.includes("/__/auth/callback")){const de=Wn(j),Je=de.firebaseError?function jn(De){try{return JSON.parse(De)}catch(U){return null}}(decodeURIComponent(de.firebaseError)):null,St=null===(x=null===(N=null==Je?void 0:Je.code)||void 0===N?void 0:N.split("auth/"))||void 0===x?void 0:x[1],Ht=St?(0,m.az)(St):null;return Ht?{type:De.type,eventId:De.eventId,tenantId:De.tenantId,error:Ht,urlResponse:null,sessionId:null,postBody:null}:{type:De.type,eventId:De.eventId,tenantId:De.tenantId,sessionId:De.sessionId,urlResponse:j,postBody:null}}return null}(Ii,ii.url)),N.onEvent(Cr||vn())});return function(Ii){return Jn.apply(this,arguments)}}();void 0!==x&&"function"==typeof x.subscribe&&x.subscribe(null,St);const Ht=j,kn=`${de.packageName.toLowerCase()}://`;te().handleOpenURL=function(){var Jn=(0,h.Z)(function*(ii){if(ii.toLowerCase().startsWith(kn)&&St({url:ii}),"function"==typeof Ht)try{Ht(ii)}catch(Ii){console.error(Ii)}});return function(ii){return Jn.apply(this,arguments)}}()}}),this.underlyingResolver=null,this._redirectPersistence=m.a,this._completeRedirectFn=m.aE,this._overrideRedirectResult=m.aF}_initialize(U){var N=this;return(0,h.Z)(function*(){return yield N.selectUnderlyingResolver(),N.assertedUnderlyingResolver._initialize(U)})()}_openPopup(U,N,x,j){var de=this;return(0,h.Z)(function*(){return yield de.selectUnderlyingResolver(),de.assertedUnderlyingResolver._openPopup(U,N,x,j)})()}_openRedirect(U,N,x,j){var de=this;return(0,h.Z)(function*(){return yield de.selectUnderlyingResolver(),de.assertedUnderlyingResolver._openRedirect(U,N,x,j)})()}_isIframeWebStorageSupported(U,N){this.assertedUnderlyingResolver._isIframeWebStorageSupported(U,N)}_originValidation(U){return this.assertedUnderlyingResolver._originValidation(U)}get _shouldInitProactively(){return vi()||this.browserResolver._shouldInitProactively}get assertedUnderlyingResolver(){return Zt(this.underlyingResolver,"internal-error"),this.underlyingResolver}selectUnderlyingResolver(){var U=this;return(0,h.Z)(function*(){if(U.underlyingResolver)return;const N=yield function Vn(){return Rn.apply(this,arguments)}();U.underlyingResolver=N?U.cordovaResolver:U.browserResolver})()}}function Pn(De){return De.unwrap()}function Nn(De){return ni(De)}function ni(De){const{_tokenResponse:U}=De instanceof k.ZR?De.customData:De;if(!U)return null;if(!(De instanceof k.ZR)&&"temporaryProof"in U&&"phoneNumber"in U)return m.P.credentialFromResult(De);const N=U.providerId;if(!N||N===m.p.PASSWORD)return null;let x;switch(N){case m.p.GOOGLE:x=m.V;break;case m.p.FACEBOOK:x=m.U;break;case m.p.GITHUB:x=m.W;break;case m.p.TWITTER:x=m.Z;break;default:const{oauthIdToken:j,oauthAccessToken:de,oauthTokenSecret:Je,pendingToken:St,nonce:Ht}=U;return de||Je||j||St?St?N.startsWith("saml.")?m.aO._create(N,St):m.L._fromParams({providerId:N,signInMethod:N,pendingToken:St,idToken:j,accessToken:de}):new m.X(N).credential({idToken:j,accessToken:de,rawNonce:Ht}):null}return De instanceof k.ZR?x.credentialFromError(De):x.credentialFromResult(De)}function Qn(De,U){return U.catch(N=>{throw N instanceof k.ZR&&function Si(De,U){var N;const x=null===(N=U.customData)||void 0===N?void 0:N._tokenResponse;if("auth/multi-factor-auth-required"===(null==U?void 0:U.code))U.resolver=new Se(De,m.aq(De,U));else if(x){const j=ni(U),de=U;j&&(de.credential=j,de.tenantId=x.tenantId||void 0,de.email=x.email||void 0,de.phoneNumber=x.phoneNumber||void 0)}}(De,N),N}).then(N=>{const j=N.user;return{operationType:N.operationType,credential:Nn(N),additionalUserInfo:m.ao(N),user:Ke.getOrCreate(j)}})}function lt(De,U){return Qt.apply(this,arguments)}function Qt(){return(Qt=(0,h.Z)(function*(De,U){const N=yield U;return{verificationId:N.verificationId,confirm:x=>Qn(De,N.confirm(x))}})).apply(this,arguments)}class Se{constructor(U,N){this.resolver=N,this.auth=function Cn(De){return De.wrapped()}(U)}get session(){return this.resolver.session}get hints(){return this.resolver.hints}resolveSignIn(U){return Qn(Pn(this.auth),this.resolver.resolveSignIn(U))}}class Ke{constructor(U){this._delegate=U,this.multiFactor=m.ar(U)}static getOrCreate(U){return Ke.USER_MAP.has(U)||Ke.USER_MAP.set(U,new
1Ke(U)),Ke.USER_MAP.get(U)}delete(){return this._delegate.delete()}reload(){return this._delegate.reload()}toJSON(){return this._delegate.toJSON()}getIdTokenResult(U){return this._delegate.getIdTokenResult(U)}getIdToken(U){return this._delegate.getIdToken(U)}linkAndRetrieveDataWithCredential(U){return this.linkWithCredential(U)}linkWithCredential(U){var N=this;return(0,h.Z)(function*(){return Qn(N.auth,m.a0(N._delegate,U))})()}linkWithPhoneNumber(U,N){var x=this;return(0,h.Z)(function*(){return lt(x.auth,m.l(x._delegate,U,N))})()}linkWithPopup(U){var N=this;return(0,h.Z)(function*(){return Qn(N.auth,m.d(N._delegate,U,Yt))})()}linkWithRedirect(U){var N=this;return(0,h.Z)(function*(){return yield ae(m.aH(N.auth)),m.g(N._delegate,U,Yt)})()}reauthenticateAndRetrieveDataWithCredential(U){return this.reauthenticateWithCredential(U)}reauthenticateWithCredential(U){var N=this;return(0,h.Z)(function*(){return Qn(N.auth,m.a1(N._delegate,U))})()}reauthenticateWithPhoneNumber(U,N){return lt(this.auth,m.r(this._delegate,U,N))}reauthenticateWithPopup(U){return Qn(this.auth,m.e(this._delegate,U,Yt))}reauthenticateWithRedirect(U){var N=this;return(0,h.Z)(function*(){return yield ae(m.aH(N.auth)),m.h(N._delegate,U,Yt)})()}sendEmailVerification(U){return m.ae(this._delegate,U)}unlink(U){var N=this;return(0,h.Z)(function*(){return yield m.an(N._delegate,U),N})()}updateEmail(U){return m.aj(this._delegate,U)}updatePassword(U){return m.ak(this._delegate,U)}updatePhoneNumber(U){return m.u(this._delegate,U)}updateProfile(U){return m.ai(this._delegate,U)}verifyBeforeUpdateEmail(U,N){return m.af(this._delegate,U,N)}get emailVerified(){return this._delegate.emailVerified}get isAnonymous(){return this._delegate.isAnonymous}get metadata(){return this._delegate.metadata}get phoneNumber(){return this._delegate.phoneNumber}get providerData(){return this._delegate.providerData}get refreshToken(){return this._delegate.refreshToken}get tenantId(){return this._delegate.tenantId}get displayName(){return this._delegate.displayName}get email(){return this._delegate.email}get photoURL(){return this._delegate.photoURL}get providerId(){return this._delegate.providerId}get uid(){return this._delegate.uid}get auth(){return this._delegate.auth}}Ke.USER_MAP=new WeakMap;const Ee=m.aA;let Be=(()=>{class De{constructor(N,x){if(this.app=N,x.isInitialized())return this._delegate=x.getImmediate(),void this.linkUnderlyingAuth();const{apiKey:j}=N.options;Ee(j,"invalid-api-key",{appName:N.name}),Ee(j,"invalid-api-key",{appName:N.name});const de="undefined"!=typeof window?Yt:void 0;this._delegate=x.initialize({options:{persistence:Ot(j,N.name),popupRedirectResolver:de}}),this._delegate._updateErrorMap(m.D),this.linkUnderlyingAuth()}get emulatorConfig(){return this._delegate.emulatorConfig}get currentUser(){return this._delegate.currentUser?Ke.getOrCreate(this._delegate.currentUser):null}get languageCode(){return this._delegate.languageCode}set languageCode(N){this._delegate.languageCode=N}get settings(){return this._delegate.settings}get tenantId(){return this._delegate.tenantId}set tenantId(N){this._delegate.tenantId=N}useDeviceLanguage(){this._delegate.useDeviceLanguage()}signOut(){return this._delegate.signOut()}useEmulator(N,x){m.I(this._delegate,N,x)}applyActionCode(N){return m.a5(this._delegate,N)}checkActionCode(N){return m.a6(this._delegate,N)}confirmPasswordReset(N,x){return m.a4(this._delegate,N,x)}createUserWithEmailAndPassword(N,x){var j=this;return(0,h.Z)(function*(){return Qn(j._delegate,m.a8(j._delegate,N,x))})()}fetchProvidersForEmail(N){return this.fetchSignInMethodsForEmail(N)}fetchSignInMethodsForEmail(N){return m.ad(this._delegate,N)}isSignInWithEmailLink(N){return m.ab(this._delegate,N)}getRedirectResult(){var N=this;return(0,h.Z)(function*(){Ee(si(),N._delegate,"operation-not-supported-in-this-environment");const x=yield m.j(N._delegate,Yt);return x?Qn(N._delegate,Promise.resolve(x)):{credential:null,user:null}})()}addFrameworkForLogging(N){!function Dt(De,U){(0,m.aH)(De)._logFramework(U)}(this._delegate,N)}onAuthStateChanged(N,x,j){const{next:de,error:Je,complete:St}=at(N,x,j);return this._delegate.onAuthStateChanged(de,Je,St)}onIdTokenChanged(N,x,j){const{next:de,error:Je,complete:St}=at(N,x,j);return this._delegate.onIdTokenChanged(de,Je,St)}sendSignInLinkToEmail(N,x){return m.aa(this._delegate,N,x)}sendPasswordResetEmail(N,x){return m.a3(this._delegate,N,x||void 0)}setPersistence(N){var x=this;return(0,h.Z)(function*(){let j;switch(function K(De,U){$(Object.values(Pt).includes(U),De,"invali
1d-persistence-type"),(0,k.b$)()?$(U!==Pt.SESSION,De,"unsupported-persistence-type"):(0,k.UG)()?$(U===Pt.NONE,De,"unsupported-persistence-type"):pi()?$(U===Pt.NONE||U===Pt.LOCAL&&(0,k.hl)(),De,"unsupported-persistence-type"):$(U===Pt.NONE||bn(),De,"unsupported-persistence-type")}(x._delegate,N),N){case Pt.SESSION:j=m.a;break;case Pt.LOCAL:j=(yield m.aC(m.i)._isAvailable())?m.i:m.b;break;case Pt.NONE:j=m.N;break;default:return m.av("argument-error",{appName:x._delegate.name})}return x._delegate.setPersistence(j)})()}signInAndRetrieveDataWithCredential(N){return this.signInWithCredential(N)}signInAnonymously(){return Qn(this._delegate,m._(this._delegate))}signInWithCredential(N){return Qn(this._delegate,m.$(this._delegate,N))}signInWithCustomToken(N){return Qn(this._delegate,m.a2(this._delegate,N))}signInWithEmailAndPassword(N,x){return Qn(this._delegate,m.a9(this._delegate,N,x))}signInWithEmailLink(N,x){return Qn(this._delegate,m.ac(this._delegate,N,x))}signInWithPhoneNumber(N,x){return lt(this._delegate,m.s(this._delegate,N,x))}signInWithPopup(N){var x=this;return(0,h.Z)(function*(){return Ee(si(),x._delegate,"operation-not-supported-in-this-environment"),Qn(x._delegate,m.c(x._delegate,N,Yt))})()}signInWithRedirect(N){var x=this;return(0,h.Z)(function*(){return Ee(si(),x._delegate,"operation-not-supported-in-this-environment"),yield ae(x._delegate),m.f(x._delegate,N,Yt)})()}updateCurrentUser(N){return this._delegate.updateCurrentUser(N)}verifyPasswordResetCode(N){return m.a7(this._delegate,N)}unwrap(){return this._delegate}_delete(){return this._delegate._delete()}linkUnderlyingAuth(){this._delegate.wrapped=()=>this}}return De.Persistence=Pt,De})();function at(De,U,N){let x=De;"function"!=typeof De&&({next:x,error:U,complete:N}=De);const j=x;return{next:Je=>j(Je&&Ke.getOrCreate(Je)),error:U,complete:N}}function Ot(De,U){const N=function nt(De,U){const N=Tt();if(!N)return[];const x=m.aD(ue,De,U);switch(N.getItem(x)){case Pt.NONE:return[m.N];case Pt.LOCAL:return[m.i,m.a];case Pt.SESSION:return[m.a];default:return[]}}(De,U);if("undefined"!=typeof self&&!N.includes(m.i)&&N.push(m.i),"undefined"!=typeof window)for(const x of[m.b,m.a])N.includes(x)||N.push(x);return N.includes(m.N)||N.push(m.N),N}class mt{constructor(){this.providerId="phone",this._delegate=new m.P(Pn(s.Z.auth()))}static credential(U,N){return m.P.credential(U,N)}verifyPhoneNumber(U,N){return this._delegate.verifyPhoneNumber(U,N)}unwrap(){return this._delegate}}mt.PHONE_SIGN_IN_METHOD=m.P.PHONE_SIGN_IN_METHOD,mt.PROVIDER_ID=m.P.PROVIDER_ID;const yn=m.aA;class ei{constructor(U,N,x=s.Z.app()){var j;yn(null===(j=x.options)||void 0===j?void 0:j.apiKey,"invalid-api-key",{appName:x.name}),this._delegate=new m.R(U,N,x.auth()),this.type=this._delegate.type}clear(){this._delegate.clear()}render(){return this._delegate.render()}verify(){return this._delegate.verify()}}!function Oe(De){De.INTERNAL.registerComponent(new q.wA("auth-compat",U=>{const N=U.getProvider("app-compat").getImmediate(),x=U.getProvider("auth");return new Be(N,x)},"PUBLIC").setServiceProps({ActionCodeInfo:{Operation:{EMAIL_SIGNIN:m.A.EMAIL_SIGNIN,PASSWORD_RESET:m.A.PASSWORD_RESET,RECOVER_EMAIL:m.A.RECOVER_EMAIL,REVERT_SECOND_FACTOR_ADDITION:m.A.REVERT_SECOND_FACTOR_ADDITION,VERIFY_AND_CHANGE_EMAIL:m.A.VERIFY_AND_CHANGE_EMAIL,VERIFY_EMAIL:m.A.VERIFY_EMAIL}},EmailAuthProvider:m.Q,FacebookAuthProvider:m.U,GithubAuthProvider:m.W,GoogleAuthProvider:m.V,OAuthProvider:m.X,SAMLAuthProvider:m.Y,PhoneAuthProvider:mt,PhoneMultiFactorGenerator:m.m,RecaptchaVerifier:ei,TwitterAuthProvider:m.Z,Auth:Be,AuthCredential:m.J,Error:k.ZR}).setInstantiationMode("LAZY").setMultipleInstances(!1)),De.registerVersion("@firebase/auth-compat","0.4.2")}(s.Z)},5861:(_t,Ue,b)=>{"use strict";function h(m,k,v,C,q,te,_e){try{var re=m[te](_e),we=re.value}catch(be){return void v(be)}re.done?k(we):Promise.resolve(we).then(C,q)}function s(m){return function(){var k=this,v=arguments;return new Promise(function(C,q){var te=m.apply(k,v);function _e(we){h(te,C,q,_e,re,"next",we)}function re(we){h(te,C,q,_e,re,"throw",we)}_e(void 0)})}}b.d(Ue,{Z:()=>s})},7582:(_t,Ue,b)=>{"use strict";function k(Dt,Mt){var it={};for(var At in Dt)Object.prototype.hasOwnProperty.call(Dt,At)&&Mt.indexOf(At)<0&&(it[At]=Dt[At]);if(null!=Dt&&"function"==typeof Object.getOwnPropertySymbols){var ct=0;for(At=Object.getOwnPropertySymbols(Dt);ct<At.length;ct++)Mt.indexOf(At[ct])<0&&Object.prototype.propertyIsEnumerable.call(Dt,At[ct])&&(it[At[ct]]=Dt[At[ct]])}return it}function be(Dt,Mt,it,At){return new(it||(it=Promise))(function(st,vt){function ft(_n){try{tn(At.next(_n))}catch(bn){vt(bn)}}function Ut(_n){try{tn(At.throw(_n))}catch(bn){vt(bn)}}function tn(_n){_n.done?st(_n.value):function ct(st){return st instanceof it?st:new it(function(vt){vt(st)})}(_n.value).then(ft,Ut)}tn((At=At.apply(Dt,Mt||[])).next())})}function ut(Dt){return this instanceof ut?(this.v=Dt,this):new ut(Dt)}function ze(Dt,Mt,it){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ct,At=it.apply(Dt,Mt||[]),st=[];return ct=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),ft("next"),ft("throw"),ft("return",function vt(si){return function(vi){return Promise.resolve(vi).then(si,bn)}}),ct[Symbol.asyncIterator]=function(){return this},ct;function ft(si,vi){At[si]&&(ct[si]=function(Vn){return new Promise(function(Rn,Ve){st.push([si,Vn,Rn,Ve])>
vendor: 1,263 bytes, line 1
11||Ut(si,Vn)})},vi&&(ct[si]=vi(ct[si])))}function Ut(si,vi){try{!function tn(si){si.value instanceof ut?Promise.resolve(si.value.v).then(_n,bn):pi(st[0][2],si)}(At[si](vi))}catch(Vn){pi(st[0][3],Vn)}}function _n(si){Ut("next",si)}function bn(si){Ut("throw",si)}function pi(si,vi){si(vi),st.shift(),st.length&&Ut(st[0][0],st[0][1])}}function tt(Dt){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var it,Mt=Dt[Symbol.asyncIterator];return Mt?Mt.call(Dt):(Dt=function $e(Dt){var Mt="function"==typeof Symbol&&Symbol.iterator,it=Mt&&Dt[Mt],At=0;if(it)return it.call(Dt);if(Dt&&"number"==typeof Dt.length)return{next:function(){return Dt&&At>=Dt.length&&(Dt=void 0),{value:Dt&&Dt[At++],done:!Dt}}};throw new TypeError(Mt?"Object is not iterable.":"Symbol.iterator is not defined.")}(Dt),it={},At("next"),At("throw"),At("return"),it[Symbol.asyncIterator]=function(){return this},it);function At(st){it[st]=Dt[st]&&function(vt){return new Promise(function(ft,Ut){!function ct(st,vt,ft,Ut){Promise.resolve(Ut).then(function(tn){st({value:tn,done:ft})},vt)}(ft,Ut,(vt=Dt[st](vt)).done,vt.value)})}}}b.d(Ue,{FC:()=>ze,KL:()=>tt,_T:()=>k,mG:()=>be,qq:()=>ut}),"function"==typeof SuppressedError&&SuppressedError}},_t=>{_t(_t.s=4735)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.