1(self.webpackChunkCouBon_Dashboard=self.webpackChunkCouBon_Dashboard||[]).push([[792],{1401:(Ee,we,$)=>{"use strict";$.d(we,{$L:()=>gr,$g:()=>Fr,A4:()=>be,Am:()=>va,As:()=>zt,Bd:()=>Ie,Cv:()=>on,FA:()=>Fe,Fy:()=>ii,HN:()=>Mo,Hk:()=>I,I9:()=>fc,Im:()=>rr,K3:()=>L,KA:()=>G,Ku:()=>at,Ll:()=>dt,OE:()=>Xo,T9:()=>ri,Uj:()=>de,XA:()=>Sn,ZQ:()=>Et,bD:()=>Xa,cY:()=>en,dI:()=>_s,eX:()=>Ce,g:()=>Se,gR:()=>Un,gz:()=>si,hp:()=>so,jZ:()=>Xe,kH:()=>hc,kj:()=>Ur,lT:()=>nr,lV:()=>kn,nr:()=>Vr,oD:()=>Cs,od:()=>Vl,qc:()=>gs,sr:()=>pn,tD:()=>Nl,u:()=>te,vA:()=>b,yw:()=>ji,zW:()=>Me,zw:()=>Ue});const D={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},b=function(z,q){if(!z)throw I(q)},I=function(z){return new Error("Firebase Database ("+D.SDK_VERSION+") INTERNAL ASSERT FAILED: "+z)},E=function(z){const q=[];let X=0;for(let ge=0;ge<z.length;ge++){let ue=z.charCodeAt(ge);ue<128?q[X++]=ue:ue<2048?(q[X++]=ue>>6|192,q[X++]=63&ue|128):55296==(64512&ue)&&ge+1<z.length&&56320==(64512&z.charCodeAt(ge+1))?(ue=65536+((1023&ue)<<10)+(1023&z.charCodeAt(++ge)),q[X++]=ue>>18|240,q[X++]=ue>>12&63|128,q[X++]=ue>>6&63|128,q[X++]=63&ue|128):(q[X++]=ue>>12|224,q[X++]=ue>>6&63|128,q[X++]=63&ue|128)}return q},L={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(z,q){if(!Array.isArray(z))throw Error("encodeByteArray takes an array as a parameter");this.init_();const X=q?this.byteToCharMapWebSafe_:this.byteToCharMap_,ge=[];for(let ue=0;ue<z.length;ue+=3){const je=z[ue],Mt=ue+1<z.length,Lt=Mt?z[ue+1]:0,Tt=ue+2<z.length,Sr=Tt?z[ue+2]:0;let _r=(15&Lt)<<2|Sr>>6,js=63&Sr;Tt||(js=64,Mt||(_r=64)),ge.push(X[je>>2],X[(3&je)<<4|Lt>>4],X[_r],X[js])}return ge.join("")},encodeString(z,q){return this.HAS_NATIVE_SUPPORT&&!q?btoa(z):this.encodeByteArray(E(z),q)},decodeString(z,q){return this.HAS_NATIVE_SUPPORT&&!q?atob(z):function(z){const q=[];let X=0,ge=0;for(;X<z.length;){const ue=z[X++];if(ue<128)q[ge++]=String.fromCharCode(ue);else if(ue>191&&ue<224){const je=z[X++];q[ge++]=String.fromCharCode((31&ue)<<6|63&je)}else if(ue>239&&ue<365){const Tt=((7&ue)<<18|(63&z[X++])<<12|(63&z[X++])<<6|63&z[X++])-65536;q[ge++]=String.fromCharCode(55296+(Tt>>10)),q[ge++]=String.fromCharCode(56320+(1023&Tt))}else{const je=z[X++],Mt=z[X++];q[ge++]=String.fromCharCode((15&ue)<<12|(63&je)<<6|63&Mt)}}return q.join("")}(this.decodeStringToByteArray(z,q))},decodeStringToByteArray(z,q){this.init_();const X=q?this.charToByteMapWebSafe_:this.charToByteMap_,ge=[];for(let ue=0;ue<z.length;){const je=X[z.charAt(ue++)],Lt=ue<z.length?X[z.charAt(ue)]:0;++ue;const Sr=ue<z.length?X[z.charAt(ue)]:64;++ue;const Ot=ue<z.length?X[z.charAt(ue)]:64;if(++ue,null==je||null==Lt||null==Sr||null==Ot)throw new F;ge.push(je<<2|Lt>>4),64!==Sr&&(ge.push(Lt<<4&240|Sr>>2),64!==Ot&&ge.push(Sr<<6&192|Ot))}return ge},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let z=0;z<this.ENCODED_VALS.length;z++)this.byteToCharMap_[z]=this.ENCODED_VALS.charAt(z),this.charToByteMap_[this.byteToCharMap_[z]]=z,this.byteToCharMapWebSafe_[z]=this.ENCODED_VALS_WEBSAFE.charAt(z),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[z]]=z,z>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(z)]=z,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(z)]=z)}}};class F extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const G=function(z){const q=E(z);return L.encodeByteArray(q,!0)},de=function(z){return G(z).replace(/\./g,"")},te=function(z){try{return L.decodeString(z,!0)}catch(q){console.error("base64Decode failed: ",q)}return null};function be(z){return Ue(void 0,z)}function Ue(z,q){if(!(q instanceof Object))return q;switch(q.constructor){case Date:return new Date(q.getTime());case Object:void 0===z&&(z={});break;case Array:z=[];break;default:return q}for(const X in q)!q.hasOwnProperty(X)||!ft(X)||(z[X]=Ue(z[X],q[X])
1);return z}function ft(z){return"__proto__"!==z}const Yt=()=>{try{return function Xt(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if(typeof process>"u"||typeof process.env>"u")return;const z=process.env.__FIREBASE_DEFAULTS__;return z?JSON.parse(z):void 0})()||(()=>{if(typeof document>"u")return;let z;try{z=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const q=z&&te(z[1]);return q&&JSON.parse(q)})()}catch(z){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${z}`)}},ri=()=>{var z;return null===(z=Yt())||void 0===z?void 0:z.config},Sn=z=>{var q;return null===(q=Yt())||void 0===q?void 0:q[`_${z}`]};class en{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((q,X)=>{this.resolve=q,this.reject=X})}wrapCallback(q){return(X,ge)=>{X?this.reject(X):this.resolve(ge),"function"==typeof q&&(this.promise.catch(()=>{}),1===q.length?q(X):q(X,ge))}}}function ii(z,q){if(z.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const ge=q||"demo-project",ue=z.iat||0,je=z.sub||z.user_id;if(!je)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const Mt=Object.assign({iss:`https://securetoken.google.com/${ge}`,aud:ge,iat:ue,exp:ue+3600,auth_time:ue,sub:je,user_id:je,firebase:{sign_in_provider:"custom",identities:{}}},z);return[de(JSON.stringify({alg:"none",type:"JWT"})),de(JSON.stringify(Mt)),""].join(".")}function Et(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function Xe(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Et())}function dt(){var z;const q=null===(z=Yt())||void 0===z?void 0:z.forceEnvironment;if("node"===q)return!0;if("browser"===q)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}function Ie(){return"object"==typeof self&&self.self===self}function pn(){const z="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof z&&void 0!==z.id}function kn(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function nr(){const z=Et();return z.indexOf("MSIE ")>=0||z.indexOf("Trident/")>=0}function Fr(){return!0===D.NODE_CLIENT||!0===D.NODE_ADMIN}function Vr(){return!dt()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function Me(){try{return"object"==typeof indexedDB}catch{return!1}}function Ce(){return new Promise((z,q)=>{try{let X=!0;const ge="validate-browser-context-for-indexeddb-analytics-module",ue=self.indexedDB.open(ge);ue.onsuccess=()=>{ue.result.close(),X||self.indexedDB.deleteDatabase(ge),z(!0)},ue.onupgradeneeded=()=>{X=!1},ue.onerror=()=>{var je;q((null===(je=ue.error)||void 0===je?void 0:je.message)||"")}}catch(X){q(X)}})}class Se extends Error{constructor(q,X,ge){super(X),this.code=q,this.customData=ge,this.name="FirebaseError",Object.setPrototypeOf(this,Se.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Fe.prototype.create)}}class Fe{constructor(q,X,ge){this.service=q,this.serviceName=X,this.errors=ge}create(q,...X){const ge=X[0]||{},ue=`${this.service}/${q}`,je=this.errors[q],Mt=je?function pt(z,q){return z.replace(un,(X,ge)=>{const ue=q[ge];return null!=ue?String(ue):`<${ge}?>`})}(je,ge):"Error";return new Se(ue,`${this.serviceName}: ${Mt} (${ue}).`,ge)}}const un=/\{\$([^}]+)}/g;function gr(z){return JSON.parse(z)}function zt(z){return JSON.stringify(z)}const dn=function(z){let q={},X={},ge={},ue="";try{const je=z.split(".");q=gr(te(je[0])||""),X=gr(te(je[1])||""),ue=je[2],ge=X.d||{},delete X.d}catch{}return{header:q,claims:X,data:ge,signature:ue}},on=function(z){const X=dn(z).claims;return!!X&&"object"==typeof X&&X.hasOwnProperty("iat")},gs=function(z){const q=dn(z).claims;return"object"==typeof q&&!0===q.admin};function Un(z,q){return Object.prototype.hasOwnProperty.call(z,q)}function ji(z,q){if(Object.prototype.hasOwnProperty.call(z,q))return z[q]}function rr(z){for(const q in z)if(Object.prototype.hasOwnProperty.call(z,q))return!1;return!0}function hc(z,q,X){const ge={};for(const ue in z)Object.prototype.hasOwnProperty.call(z,ue)&&(ge[ue]=q.call(X,z[ue],ue,z));return ge}function Xa(z,q){if(z===q)return!0;const X=Object.keys(z),ge=Object.keys(q);for(const ue of X){if(!ge.includes(ue))return!1;const je=z[ue],Mt=q[ue];if(bi(je)&&bi(Mt)){if(!Xa(je,Mt))return!1}else if(je!==Mt)return!1}for(const ue of ge)if(!X.includes(ue))return!1;return!0}function bi(z){return null!==z&&"object"==typeof z}function va(z){const q=[];for(const[X,ge]of Object.entries(z))Array.isArray(ge)?ge.forEach(ue=>{q.push(encodeURIComponent(X)+"="+encodeURIComponent(ue))}):q.push(encodeURIComponent(X)+"="+encodeURIComponent(ge));return q.length?"&"+q.join("&"):""}function fc(z){const q={};return z.replace(/^\?/,"").split("&").forEach(ge=>{if(ge){const[ue,je]=ge.split("=");q[decodeURIComponent(ue)]=decodeURIComponent(je)}}),q}function so(z){const q=z.indexOf("?");if(!q)return"";const X=z.indexOf("#",q);return z.substring(q,X>0?X:void 0)}class si{constructor(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(let q=1;q<this.blockSize;++q)this.pad_[q]=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_(q,X){X||(X=0);const ge=this.W_;if("string"==typeof q)for(let Ot=0;Ot<16;Ot++)ge[Ot]=q.charCodeAt(X)<<24|q.charCodeAt(X+1)<<16|q.charCodeAt(X+2)<<8|q.charCodeAt(X+3),X+=4;else for(let Ot=0;Ot<16;Ot++)ge[Ot]=q[X]<<24|q[X+1]<<16|q[X+2]<<8|q[X+3],X+=4;for(let Ot=16;Ot<80;Ot++){const _r=ge[Ot-3]^ge[Ot-8]^ge[Ot-14]^ge[Ot-16];ge[Ot]=4294967295&(_r<<1|_r>>>31)}let Sr,st,ue=this.chain_[0],je=this.chain_[1],Mt=this.chain_[2],Lt=this.chain_[3],Tt=this.chain_[4];for(let Ot=0;Ot<80;Ot++){Ot<40?Ot<20?(Sr=Lt^je&(Mt^Lt),st=1518500249):(Sr=je^Mt^Lt,st=1859775393):Ot<60?(Sr=je&Mt|Lt&(je|Mt),st=2400959708):(Sr=je^Mt^Lt,st=3395469782);const _r=(ue<<5|ue>>>27)+Sr+Tt+st+ge[Ot]&4294967295;Tt=Lt,Lt=Mt,Mt=4294967295&(je<<30|je>>>2),je=ue,ue=_r}this.chain_[0]=this.chain_[0]+ue&4294967295,this.chain_[1]=this.chain_[1]+je&4294967295,this.chain_[2]=this.chain_[2]+Mt&4294967295,this.chain_[3]=this.chain_[3]+Lt&4294967295,this.chain_[4]=this.chain_[4]+Tt&4294967295}
1update(q,X){if(null==q)return;void 0===X&&(X=q.length);const ge=X-this.blockSize;let ue=0;const je=this.buf_;let Mt=this.inbuf_;for(;ue<X;){if(0===Mt)for(;ue<=ge;)this.compress_(q,ue),ue+=this.blockSize;if("string"==typeof q){for(;ue<X;)if(je[Mt]=q.charCodeAt(ue),++Mt,++ue,Mt===this.blockSize){this.compress_(je),Mt=0;break}}else for(;ue<X;)if(je[Mt]=q[ue],++Mt,++ue,Mt===this.blockSize){this.compress_(je),Mt=0;break}}this.inbuf_=Mt,this.total_+=X}digest(){const q=[];let X=8*this.total_;this.update(this.pad_,this.inbuf_<56?56-this.inbuf_:this.blockSize-(this.inbuf_-56));for(let ue=this.blockSize-1;ue>=56;ue--)this.buf_[ue]=255&X,X/=256;this.compress_(this.buf_);let ge=0;for(let ue=0;ue<5;ue++)for(let je=24;je>=0;je-=8)q[ge]=this.chain_[ue]>>je&255,++ge;return q}}function Nl(z,q){const X=new Fl(z,q);return X.subscribe.bind(X)}class Fl{constructor(q,X){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=X,this.task.then(()=>{q(this)}).catch(ge=>{this.error(ge)})}next(q){this.forEachObserver(X=>{X.next(q)})}error(q){this.forEachObserver(X=>{X.error(q)}),this.close(q)}complete(){this.forEachObserver(q=>{q.complete()}),this.close()}subscribe(q,X,ge){let ue;if(void 0===q&&void 0===X&&void 0===ge)throw new Error("Missing Observer.");ue=function hn(z,q){if("object"!=typeof z||null===z)return!1;for(const X of q)if(X in z&&"function"==typeof z[X])return!0;return!1}(q,["next","error","complete"])?q:{next:q,error:X,complete:ge},void 0===ue.next&&(ue.next=Us),void 0===ue.error&&(ue.error=Us),void 0===ue.complete&&(ue.complete=Us);const je=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?ue.error(this.finalError):ue.complete()}catch{}}),this.observers.push(ue),je}unsubscribeOne(q){void 0===this.observers||void 0===this.observers[q]||(delete this.observers[q],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(q){if(!this.finalized)for(let X=0;X<this.observers.length;X++)this.sendOne(X,q)}sendOne(q,X){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[q])try{X(this.observers[q])}catch(ge){typeof console<"u"&&console.error&&console.error(ge)}})}close(q){this.finalized||(this.finalized=!0,void 0!==q&&(this.finalError=q),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Us(){}const Vl=function(z,q,X,ge){let ue;if(ge<q?ue="at least "+q:ge>X&&(ue=0===X?"none":"no more than "+X),ue)throw new Error(z+" failed: Was called with "+ge+(1===ge?" argument.":" arguments.")+" Expects "+ue+".")};function _s(z,q){return`${z} failed: ${q} argument `}function Cs(z,q,X,ge){if((!ge||X)&&"function"!=typeof X)throw new Error(_s(z,q)+"must be a valid function.")}function Mo(z,q,X,ge){if((!ge||X)&&("object"!=typeof X||null===X))throw new Error(_s(z,q)+"must be a valid context object.")}const Ur=function(z){const q=[];let X=0;for(let ge=0;ge<z.length;ge++){let ue=z.charCodeAt(ge);if(ue>=55296&&ue<=56319){const je=ue-55296;ge++,b(ge<z.length,"Surrogate pair missing trail surrogate."),ue=65536+(je<<10)+(z.charCodeAt(ge)-56320)}ue<128?q[X++]=ue:ue<2048?(q[X++]=ue>>6|192,q[X++]=63&ue|128):ue<65536?(q[X++]=ue>>12|224,q[X++]=ue>>6&63|128,q[X++]=63&ue|128):(q[X++]=ue>>18|240,q[X++]=ue>>12&63|128,q[X++]=ue>>6&63|128,q[X++]=63&ue|128)}return q},Xo=function(z){let q=0;for(let X=0;X<z.length;X++){const ge=z.charCodeAt(X);ge<128?q++:ge<2048?q+=2:ge>=55296&&ge<=56319?(q+=4,X++):q+=3}return q};function at(z){return z&&z._delegate?z._delegate:z}},5966:(Ee,we,$)=>{"use strict";var D={};$.r(D),$.d(D,{hasBrowserEnv:()=>Gle,hasStandardBrowserEnv:()=>PHe,hasStandardBrowserWebWorkerEnv:()=>RHe});let I=null,C=1;const L=Symbol("SIGNAL");function F(n){const e=I;return I=n,e}function Xt(n){if((!ii(n)||n.dirty)&&(n.dirty||n.lastCleanEpoch!==C)){if(!n.producerMustRecompute(n)&&!ni(n))return n.dirty=!1,void(n.lastCleanEpoch=C);n.producerRecomputeValue(n),n.dirty=!1,n.lastCleanEpoch=C}}function ni(n){Et(n);for(let e=0;e<n.producerNode.length;e++){const t=n.producerNode[e],r=n.producerLastReadVersion[e];if(r!==t.version||(Xt(t),r!==t.version))return!0}return!1}function en(n,e){if(function Xe(n){n.liveConsumerNode??=[],n.liveConsumerIndexOfThis??=[]}(n),1===n.liveConsumerNode.length&&function dt(n){return void 0!==n.producerNode}(n))for(let r=0;r<n.producerNode.length;r++)en(n.producerNode[r],n.producerIndexOfThis[r]);const t=n.liveConsumerNode.length-1;if(n.liveConsumerNode[e]=n.liveConsumerNode[t],n.liveConsumerIndexOfThis[e]=n.liveConsumerIndexOfThis[t],n.liveConsumerNode.length--,n.liveConsumerIndexOfThis.length--,e<n.liveConsumerNode.length){const r=n.liveConsumerIndexOfThis[e],i=n.liveConsumerNode[e];Et(i),i.producerIndexOfThis[r]=e}}function ii(n){return n.consumerIsAlwaysLive||(n?.liveConsumerNode?.length??0)>0}function Et(n){n.producerNode??=[],n.producerIndexOfThis??=[],n.producerLastReadVersion??=[]}let Fr=null;function on(n){return"function"==typeof n}function gs(n){const t=n(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const Un=gs(n=>function(t){n(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function ji(n,e){if(n){const t=n.indexOf(e);0<=t&&n.splice(t,1)}}class rr{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}
vendor: 9,839 bytes, line 1
1unsubscribe(){let e;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const s of t)s.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(on(r))try{r()}catch(s){e=s instanceof Un?s.errors:[s]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const s of i)try{bi(s)}catch(o){e=e??[],o instanceof Un?e=[...e,...o.errors]:e.push(o)}}if(e)throw new Un(e)}}add(e){var t;if(e&&e!==this)if(this.closed)bi(e);else{if(e instanceof rr){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(e)}}_hasParent(e){const{_parentage:t}=this;return t===e||Array.isArray(t)&&t.includes(e)}_addParent(e){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e}_removeParent(e){const{_parentage:t}=this;t===e?this._parentage=null:Array.isArray(t)&&ji(t,e)}remove(e){const{_finalizers:t}=this;t&&ji(t,e),e instanceof rr&&e._removeParent(this)}}rr.EMPTY=(()=>{const n=new rr;return n.closed=!0,n})();const hc=rr.EMPTY;function Xa(n){return n instanceof rr||n&&"closed"in n&&on(n.remove)&&on(n.add)&&on(n.unsubscribe)}function bi(n){on(n)?n():n.unsubscribe()}const io={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},va={setTimeout(n,e,...t){const{delegate:r}=va;return r?.setTimeout?r.setTimeout(n,e,...t):setTimeout(n,e,...t)},clearTimeout(n){const{delegate:e}=va;return(e?.clearTimeout||clearTimeout)(n)},delegate:void 0};function fc(n){va.setTimeout(()=>{const{onUnhandledError:e}=io;if(!e)throw n;e(n)})}function so(){}const si=Jo("C",void 0,void 0);function Jo(n,e,t){return{kind:n,value:e,error:t}}let hn=null;function Us(n){if(io.useDeprecatedSynchronousErrorHandling){const e=!hn;if(e&&(hn={errorThrown:!1,error:null}),n(),e){const{errorThrown:t,error:r}=hn;if(hn=null,t)throw r}}else n()}class _s extends rr{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Xa(e)&&e.add(this)):this.destination=Zo}static create(e,t,r){return new Ur(e,t,r)}next(e){this.isStopped?mc(function Fl(n){return Jo("N",n,void 0)}(e),this):this._next(e)}error(e){this.isStopped?mc(function Nl(n){return Jo("E",void 0,n)}(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?mc(si,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Ul=Function.prototype.bind;function Cs(n,e){return Ul.call(n,e)}class Mo{constructor(e){this.partialObserver=e}next(e){const{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(r){Xo(r)}}error(e){const{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(r){Xo(r)}else Xo(e)}complete(){const{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){Xo(t)}}}class Ur extends _s{constructor(e,t,r){let i;if(super(),on(e)||!e)i={next:e??void 0,error:t??void 0,complete:r??void 0};else{let s;this&&io.useDeprecatedNextContext?(s=Object.create(e),s.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&Cs(e.next,s),error:e.error&&Cs(e.error,s),complete:e.complete&&Cs(e.complete,s)}):i=e}this.destination=new Mo(i)}}function Xo(n){io.useDeprecatedSynchronousErrorHandling?function Vl(n){io.useDeprecatedSynchronousErrorHandling&&hn&&(hn.errorThrown=!0,hn.error=n)}(n):fc(n)}function mc(n,e){const{onStoppedNotification:t}=io;t&&va.setTimeout(()=>t(n,e))}const Zo={closed:!0,next:so,error:function pc(n){throw n},complete:so},Ji="function"==typeof Symbol&&Symbol.observable||"@@observable";function Xi(n){return n}function gt(n){return 0===n.length?Xi:1===n.length?n[0]:function(t){return n.reduce((r,i)=>i(r),t)}}let Wn=(()=>{class n{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new n;return r.source=this,r.operator=t,r}subscribe(t,r,i){const s=function q(n){return n&&n instanceof _s||function z(n){return n&&on(n.next)&&on(n.error)&&on(n.complete)}(n)&&Xa(n)}(t)?t:new Ur(t,r,i);return Us(()=>{const{operator:o,source:a}=this;s.add(o?o.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=at(r))((i,s)=>{const o=new Ur({next:a=>{try{t(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:i});this.subscribe(o)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[Ji](){return this}pipe(...t){return gt(t)(this)}toPromise(t){return new(t=at(t))((r,i)=>{let s;this.subscribe(o=>s=o,o=>i(o),()=>r(s))})}}return n.create=e=>new n(e),n})();function at(n){var e;return null!==(e=n??io.Promise)&&void 0!==e?e:Promise}const X=gs(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let ge=(()=>{class n extends Wn{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new ue(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new X}next(t){Us(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){Us(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){Us(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:r,isStopped:i,observers:s}=this;return r||i?hc:(this.currentObservers=null,s.push(t),new rr(()=>{this.currentObservers=null,ji(s,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:i,isStopped:s}=this;r?t.error(i):s&&t.complete()}asObservable(){const t=new Wn;return t.source=this,t}}return n.create=(e,t)=>new ue(e,t),n})();class ue extends ge{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)}error(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)}complete(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)}_subscribe(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:hc}}class je extends ge{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return!t.closed&&e.next(this._value),t}getValue(){const{hasError:e,thrownError:t,_value:r}=this;if(e)throw t;return this._throwIfClosed(),r}next(e){super.next(this._value=e)}}function Mt(n){return on(n?.lift)}function Lt(n){return e=>{if(Mt(e))return e.lift(function(t){try{return n(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Tt(n,e,t,r,i){return new Sr(n,e,t,r,i)}class Sr extends _s{constructor(e,t,r,i,s,o){super(e),this.onFinalize=s,this.shouldUnsubscribe=o,this._next=t?function(a){try{t(a)}catch(l){e.error(l)}}:super._next,this._error=i?function(a){try{i(a)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}}}function st(n,e){return Lt((t,r)=>{let i=0;t.subscribe(Tt(r,s=>{r.next(n.call(e,s,i++))}))})}typeof navigator<"u"&&navigator,typeof navigator<"u"&&!/Opera/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||navigator),typeof navigator<"u"&&!/Opera|WebKit/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&navigator;const Bh="https://g.co/ng/security#xss";class De extends Error{constructor(e,t){super(function ea(n,e){return`NG0${Math.abs(n)}${e?": "+e:""}`}(e,t)),this.code=e}}function ao(n){return{toString:n}.toString()}const cl="__parameters__";function ql(n,e,t){return ao(()=>{const r=function mm(n){return function(...t){if(n){const r=n(...t);for(const i in r)this[i]=r[i]}}}(e);function i(...s){if(this instanceof i)return r.apply(this,s),this;const o=new i(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(cl)?l[cl]:Object.defineProperty(l,cl,{value:[]})[cl];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return t&&(i.prototype=Object.create(t.prototype)),i.prototype.ngMetadataName=n,i.annotationCls=i,i})}const Gn=globalThis;function Bn(n){for(let e in n)if(n[e]===Bn)return e;throw Error("Could not find renamed property on target object.")}function $h(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function Pi(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(Pi).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function Md(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const ul=Bn({__forward_ref__:Bn});function sr(n){return n.__forward_ref__=sr,n.toString=function(){return Pi(this())},n}
1function qt(n){return vc(n)?n():n}function vc(n){return"function"==typeof n&&n.hasOwnProperty(ul)&&n.__forward_ref__===sr}function Be(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function ai(n){return{providers:n.providers||[],imports:n.imports||[]}}function qh(n){return Ay(n,Gh)||Ay(n,wc)}function Ay(n,e){return n.hasOwnProperty(e)?n[e]:null}function Wh(n){return n&&(n.hasOwnProperty(_m)||n.hasOwnProperty(pu))?n[_m]:null}const Gh=Bn({\u0275prov:Bn}),_m=Bn({\u0275inj:Bn}),wc=Bn({ngInjectableDef:Bn}),pu=Bn({ngInjectorDef:Bn});class $e{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=Be({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function wm(n){return n&&!!n.\u0275providers}const Dd=Bn({\u0275cmp:Bn}),Ly=Bn({\u0275dir:Bn}),bm=Bn({\u0275pipe:Bn}),Oy=Bn({\u0275mod:Bn}),ta=Bn({\u0275fac:Bn}),Tc=Bn({__NG_ELEMENT_ID__:Bn}),Ny=Bn({__NG_ENV_ID__:Bn});function Wt(n){return"string"==typeof n?n:null==n?"":String(n)}function Fy(n,e){throw new De(-201,!1)}var Gt=function(n){return n[n.Default=0]="Default",n[n.Host=1]="Host",n[n.Self=2]="Self",n[n.SkipSelf=4]="SkipSelf",n[n.Optional=8]="Optional",n}(Gt||{});let Tm;function Vy(){return Tm}function Yi(n){const e=Tm;return Tm=n,e}function Qh(n,e,t){const r=qh(n);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&Gt.Optional?null:void 0!==e?e:void Fy()}const Ec={},Em="__NG_DI_FLAG__",gu="ngTempTokenPath",mT=/\n/gm,Uy="__source";let dl;function Do(n){const e=dl;return dl=n,e}function Jh(n,e=Gt.Default){if(void 0===dl)throw new De(-203,!1);return null===dl?Qh(n,void 0,e):dl.get(n,e&Gt.Optional?null:void 0,e)}function ve(n,e=Gt.Default){return(Vy()||Jh)(qt(n),e)}function Le(n,e=Gt.Default){return ve(n,_u(e))}function _u(n){return typeof n>"u"||"number"==typeof n?n:(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function Dm(n){const e=[];for(let t=0;t<n.length;t++){const r=qt(n[t]);if(Array.isArray(r)){if(0===r.length)throw new De(900,!1);let i,s=Gt.Default;for(let o=0;o<r.length;o++){const a=r[o],l=Ze(a);"number"==typeof l?-1===l?i=a.token:s|=l:i=a}e.push(ve(i,s))}else e.push(ve(r))}return e}function Mc(n,e){return n[Em]=e,n.prototype[Em]=e,n}function Ze(n){return n[Em]}const an=Mc(ql("Optional"),8),Cd=Mc(ql("SkipSelf"),4);function Ic(n,e){return n.hasOwnProperty(ta)?n[ta]:null}function yu(n,e){n.forEach(t=>Array.isArray(t)?yu(t,e):e(t))}function jy(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function Co(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function Bs(n,e,t){let r=Wl(n,e);return r>=0?n[1|r]=t:(r=~r,function Yy(n,e,t,r){let i=n.length;if(i==e)n.push(t,r);else if(1===i)n.push(r,n[0]),n[0]=t;else{for(i--,n.push(n[i-1],n[i]);i>e;)n[i]=n[i-2],i--;n[e]=t,n[e+1]=r}}(n,r,e,t)),r}function ef(n,e){const t=Wl(n,e);if(t>=0)return n[1|t]}function Wl(n,e){return function So(n,e,t){let r=0,i=n.length>>t;for(;i!==r;){const s=r+(i-r>>1),o=n[s<<t];if(e===o)return s<<t;o>e?i=s:r=s+1}return~(i<<t)}(n,e,1)}const ra={},En=[],Ia=new $e(""),tf=new $e("",-1),Sm=new $e("");class wu{get(e,t=Ec){if(t===Ec){const r=new Error(`NullInjectorError: No provider for ${Pi(e)}!`);throw r.name="NullInjectorError",r}return t}}var Dc=function(n){return n[n.OnPush=0]="OnPush",n[n.Default=1]="Default",n}(Dc||{}
1),co=function(n){return n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",n}(co||{}),bu=function(n){return n[n.None=0]="None",n[n.SignalBased=1]="SignalBased",n[n.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",n}(bu||{});function Am(n,e,t){let r=n.length;for(;;){const i=n.indexOf(e,t);if(-1===i)return i;if(0===i||n.charCodeAt(i-1)<=32){const s=e.length;if(i+s===r||n.charCodeAt(i+s)<=32)return i}t=i+1}}function Cc(n,e,t){let r=0;for(;r<t.length;){const i=t[r];if("number"==typeof i){if(0!==i)break;r++;const s=t[r++],o=t[r++],a=t[r++];n.setAttribute(e,o,a,s)}else{const s=i,o=t[++r];Da(s)?n.setProperty(e,s,o):n.setAttribute(e,s,o),r++}}return r}function Gl(n){return 3===n||4===n||6===n}function Da(n){return 64===n.charCodeAt(0)}function Sd(n,e){if(null!==e&&0!==e.length)if(null===n||0===n.length)n=e.slice();else{let t=-1;for(let r=0;r<e.length;r++){const i=e[r];"number"==typeof i?t=i:0===t||By(n,t,i,null,-1===t||2===t?e[++r]:null)}}return n}function By(n,e,t,r,i){let s=0,o=n.length;if(-1===e)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===e){o=-1;break}if(a>e){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===t){if(null===r)return void(null!==i&&(n[s+1]=i));if(r===n[s+1])return void(n[s+2]=i)}s++,null!==r&&s++,null!==i&&s++}-1!==o&&(n.splice(o,0,e),s=o+1),n.splice(s++,0,t),null!==r&&n.splice(s++,0,r),null!==i&&n.splice(s++,0,i)}const Hy="ng-template";function xm(n,e,t,r){let i=0;if(r){for(;i<e.length&&"string"==typeof e[i];i+=2)if("class"===e[i]&&-1!==Am(e[i+1].toLowerCase(),t,0))return!0}else if(nf(n))return!1;if(i=e.indexOf(1,i),i>-1){let s;for(;++i<e.length&&"string"==typeof(s=e[i]);)if(s.toLowerCase()===t)return!0}return!1}function nf(n){return 4===n.type&&n.value!==Hy}function bT(n,e,t){return e===(4!==n.type||t?n.value:Hy)}function TT(n,e,t){let r=4;const i=n.attrs,s=null!==i?function km(n){for(let e=0;e<n.length;e++)if(Gl(n[e]))return e;return n.length}(i):0;let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&r){if(r=2|1&r,""!==l&&!bT(n,l,t)||""===l&&1===e.length){if(uo(r))return!1;o=!0}}else if(8&r){if(null===i||!xm(n,i,l,t)){if(uo(r))return!1;o=!0}}else{const c=e[++a],u=hl(l,i,nf(n),t);if(-1===u){if(uo(r))return!1;o=!0;continue}if(""!==c){let d;if(d=u>s?"":i[u+1].toLowerCase(),2&r&&c!==d){if(uo(r))return!1;o=!0}}}}else{if(!o&&!uo(r)&&!uo(l))return!1;if(o&&uo(l))continue;o=!1,r=l|1&r}}return uo(r)||o}function uo(n){return!(1&n)}function hl(n,e,t,r){if(null===e)return-1;let i=0;if(r||!t){let s=!1;for(;i<e.length;){const o=e[i];if(o===n)return i;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=e[++i];for(;"string"==typeof a;)a=e[++i];continue}if(4===o)break;if(0===o){i+=4;continue}}i+=s?1:2}return-1}return function Pm(n,e){let t=n.indexOf(4);if(t>-1)for(t++;t<n.length;){const r=n[t];if("number"==typeof r)return-1;if(r===e)return t;t++}return-1}(e,n)}function fl(n,e,t=!1){for(let r=0;r<e.length;r++)if(TT(n,e[r],t))return!0;return!1}function Tu(n,e){return n?":not("+e.trim()+")":e}function Rm(n){let e=n[0],t=1,r=2,i="",s=!1;for(;t<n.length;){let o=n[t];if("string"==typeof o)if(2&r){const a=n[++t];i+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?i+="."+o:4&r&&(i+=" "+o);else""!==i&&!uo(o)&&(e+=Tu(s,i),i=""),r=o,s=s||!uo(r);t++}return""!==i&&(e+=Tu(s,i)),e}function xt(n){return ao(()=>{const e=Ca(n),t={...e,decls:n.decls,vars:n.vars,template:n.template,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,onPush:n.changeDetection===Dc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&n.dependencies||null,getStandaloneInjector:null,signals:n.signals??!1,data:n.data||{},encapsulation:n.encapsulation||co.Emulated,styles:n.styles||En,_:null,schemas:n.schemas||null,tView:null,id:""};pl(t);const r=n.dependencies;return t.directiveDefs=rf(r,!1),t.pipeDefs=rf(r,!0),t.id=function IT(n){let e=0;const t=[n.selectors,n.ngContentSelectors,n.hostVars,n.hostAttrs,n.consts,n.vars,n.decls,n.encapsulation,n.standalone,n.signals,n.exportAs,JSON.stringify(n.inputs),JSON.stringify(n.outputs),Object.getOwnPropertyNames(n.type.prototype),!!n.contentQueries,!!n.viewQuery].join("|");for(const i of t)e=Math.imul(31,e)+i.charCodeAt(0)|0;return e+=2147483648,"c"+e}(t),t})}function m(n){return pe(n)||rt(n)}function T(n){return null!==n}function A(n){return ao(()=>({type:n.type,bootstrap:n.bootstrap||En,declarations:n.declarations||En,imports:n.imports||En,exports:n.exports||En,transitiveCompileScopes:null,
1schemas:n.schemas||null,id:n.id||null}))}function P(n,e){if(null==n)return ra;const t={};for(const r in n)if(n.hasOwnProperty(r)){const i=n[r];let s,o,a=bu.None;Array.isArray(i)?(a=i[0],s=i[1],o=i[2]??s):(s=i,o=i),e?(t[s]=a!==bu.None?[r,a]:r,e[s]=o):t[s]=r}return t}function V(n){return ao(()=>{const e=Ca(n);return pl(e),e})}function ae(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function pe(n){return n[Dd]||null}function rt(n){return n[Ly]||null}function Pt(n){return n[bm]||null}function Ln(n,e){const t=n[Oy]||null;if(!t&&!0===e)throw new Error(`Type ${Pi(n)} does not have '\u0275mod' property.`);return t}function Ca(n){const e={};return{type:n.type,providersResolver:null,factory:null,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:n.inputs||ra,exportAs:n.exportAs||null,standalone:!0===n.standalone,signals:!0===n.signals,selectors:n.selectors||En,viewQuery:n.viewQuery||null,features:n.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:P(n.inputs,e),outputs:P(n.outputs),debugInfo:null}}function pl(n){n.features?.forEach(e=>e(n))}function rf(n,e){if(!n)return null;const t=e?Pt:m;return()=>("function"==typeof n?n():n).map(r=>t(r)).filter(T)}function DT(...n){return{\u0275providers:zy(0,n),\u0275fromNgModule:!0}}function zy(n,...e){const t=[],r=new Set;let i;const s=o=>{t.push(o)};return yu(e,o=>{const a=o;qy(a,s,[],r)&&(i||=[],i.push(a))}),void 0!==i&&$y(i,s),t}function $y(n,e){for(let t=0;t<n.length;t++){const{ngModule:r,providers:i}=n[t];Wy(i,s=>{e(s,r)})}}function qy(n,e,t,r){if(!(n=qt(n)))return!1;let i=null,s=Wh(n);const o=!s&&pe(n);if(s||o){if(o&&!o.standalone)return!1;i=n}else{const l=n.ngModule;if(s=Wh(l),!s)return!1;i=l}const a=r.has(i);if(o){if(a)return!1;if(r.add(i),o.dependencies){const l="function"==typeof o.dependencies?o.dependencies():o.dependencies;for(const c of l)qy(c,e,t,r)}}else{if(!s)return!1;{if(null!=s.imports&&!a){let c;r.add(i);try{yu(s.imports,u=>{qy(u,e,t,r)&&(c||=[],c.push(u))})}finally{}void 0!==c&&$y(c,e)}if(!a){const c=Ic(i)||(()=>new i);e({provide:i,useFactory:c,deps:En},i),e({provide:Sm,useValue:i,multi:!0},i),e({provide:Ia,useValue:()=>ve(i),multi:!0},i)}const l=s.providers;if(null!=l&&!a){const c=n;Wy(l,u=>{e(u,c)})}}}return i!==n&&void 0!==n.providers}function Wy(n,e){for(let t of n)wm(t)&&(t=t.\u0275providers),Array.isArray(t)?Wy(t,e):e(t)}const CS=Bn({provide:String,useValue:Bn});function CT(n){return null!==n&&"object"==typeof n&&CS in n}function Ad(n){return"function"==typeof n}const AT=new $e(""),sf={},TO={};let xT;function Lm(){return void 0===xT&&(xT=new wu),xT}class Hs{}class Sc extends Hs{get destroyed(){return this._destroyed}
vendor: 1,828 bytes, line 1
1constructor(e,t,r,i){super(),this.parent=t,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Om(e,o=>this.processProvider(o)),this.records.set(tf,af(void 0,this)),i.has("environment")&&this.records.set(Hs,af(void 0,this));const s=this.records.get(AT);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(Sm,En,Gt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const e=F(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of t)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),F(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();const t=Do(this),r=Yi(void 0);try{return e()}finally{Do(t),Yi(r)}}get(e,t=Ec,r=Gt.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Ny))return e[Ny](this);r=_u(r);const s=Do(this),o=Yi(void 0);try{if(!(r&Gt.SkipSelf)){let l=this.records.get(e);if(void 0===l){const c=function CO(n){return"function"==typeof n||"object"==typeof n&&n instanceof $e}(e)&&qh(e);l=c&&this.injectableDefInScope(c)?af(kT(e),sf):null,this.records.set(e,l)}if(null!=l)return this.hydrate(e,l)}return(r&Gt.Self?Lm():this.parent).get(e,t=r&Gt.Optional&&t===Ec?null:t)}catch(a){if("NullInjectorError"===a.name){if((a[gu]=a[gu]||[]).unshift(Pi(e)),s)throw a;return function gT(n,e,t,r){const i=n[gu];throw e[Uy]&&i.unshift(e[Uy]),n.message=function _T(n,e,t,r=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let i=Pi(e);if(Array.isArray(e))i=e.map(Pi).join(" -> ");else if("object"==typeof e){let s=[];for(let o in e)if(e.hasOwnProperty(o)){let a=e[o];
1s.push(o+":"+("string"==typeof a?JSON.stringify(a):Pi(a)))}i=`{${s.join(", ")}}`}return`${t}${r?"("+r+")":""}[${i}]: ${n.replace(mT,"\n ")}`}("\n"+n.message,i,t,r),n.ngTokenPath=i,n[gu]=null,n}(a,e,"R3InjectorError",this.source)}throw a}finally{Yi(o),Do(s)}}resolveInjectorInitializers(){const e=F(null),t=Do(this),r=Yi(void 0);try{const s=this.get(Ia,En,Gt.Self);for(const o of s)o()}finally{Do(t),Yi(r),F(e)}}toString(){const e=[],t=this.records;for(const r of t.keys())e.push(Pi(r));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new De(205,!1)}processProvider(e){let t=Ad(e=qt(e))?e:qt(e&&e.provide);const r=function MO(n){return CT(n)?af(void 0,n.useValue):af(SS(n),sf)}(e);if(!Ad(e)&&!0===e.multi){let i=this.records.get(t);i||(i=af(void 0,sf,!0),i.factory=()=>Dm(i.multi),this.records.set(t,i)),t=e,i.multi.push(e)}this.records.set(t,r)}hydrate(e,t){const r=F(null);try{return t.value===sf&&(t.value=TO,t.value=t.factory()),"object"==typeof t.value&&t.value&&function DO(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{F(r)}}injectableDefInScope(e){if(!e.providedIn)return!1;const t=qt(e.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(e){const t=this._onDestroyHooks.indexOf(e);-1!==t&&this._onDestroyHooks.splice(t,1)}}function kT(n){const e=qh(n),t=null!==e?e.factory:Ic(n);if(null!==t)return t;if(n instanceof $e)throw new De(204,!1);if(n instanceof Function)return function EO(n){if(n.length>0)throw new De(204,!1);const t=function dT(n){return n&&(n[Gh]||n[wc])||null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new De(204,!1)}function SS(n,e,t){let r;if(Ad(n)){const i=qt(n);return Ic(i)||kT(i)}if(CT(n))r=()=>qt(n.useValue);else if(function Gy(n){return!(!n||!n.useFactory)}(n))r=()=>n.useFactory(...Dm(n.deps||[]));else if(function ST(n){return!(!n||!n.useExisting)}(n))r=()=>ve(qt(n.useExisting));else{const i=qt(n&&(n.useClass||n.provide));if(!function IO(n){return!!n.deps}(n))return Ic(i)||kT(i);r=()=>new i(...Dm(n.deps))}return r}function af(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function Om(n,e){for(const t of n)Array.isArray(t)?Om(t,e):t&&wm(t)?Om(t.\u0275providers,e):e(t)}function Sa(n,e){n instanceof Sc&&n.assertNotDestroyed();const r=Do(n),i=Yi(void 0);try{return e()}finally{Do(r),Yi(i)}}function AS(){return void 0!==Vy()||null!=function Im(){return dl}()}const xr=0,nt=1,Bt=2,Ti=3,Aa=4,Bi=5,zs=6,xd=7,kr=8,Hi=9,Kl=10,Qt=11,Vm=12,OT=13,cf=14,li=15,kd=16,xa=17,Ac=18,uf=19,Jy=20,Du=21,df=22,Pd=23,Ht=25,Um=1,Ql=7,ff=9,Ri=10;var Xy=function(n){return n[n.None=0]="None",n[n.HasTransplantedViews=2]="HasTransplantedViews",n}(Xy||{});function ys(n){return Array.isArray(n)&&"object"==typeof n[Um]}function $s(n){return Array.isArray(n)&&!0===n[Um]}function Zy(n){return!!(4&n.flags)}function xc(n){return n.componentOffset>-1}function ev(n){return!(1&~n.flags)}function ml(n){return!!n.template}function Rd(n){return!!(512&n[Bt])}class jT{constructor(e,t,r){this.previousValue=e,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function OS(n,e,t,r){null!==e?e.applyValueToInputSignal(e,r):n[t]=r}function or(){return pf}function pf(n){return n.type.prototype.ngOnChanges&&(n.setInput=VO),NS}function NS(){const n=rv(this),e=n?.current;if(e){const t=n.previous;if(t===ra)n.previous=e;else for(let r in e)t[r]=e[r];n.current=null,this.ngOnChanges(e)}}function VO(n,e,t,r,i){const s=this.declaredInputs[r],o=rv(n)||function UO(n,e){return n[nv]=e}(n,{previous:ra,current:null}),a=o.current||(o.current={}),l=o.previous,c=l[s];a[s]=new jT(c&&c.currentValue,t,l===ra),OS(n,e,i,t)}or.ngInherit=!0;const nv="__ngSimpleChanges__";function rv(n){return n[nv]||null}const Ss=function(n,e,t){},YT="svg";function Kn(n){for(;Array.isArray(n);)n=n[xr];return n}function mf(n,e){return Kn(e[n])}function dr(n,e){return Kn(e[n.index])}function Ld(n,e){return n.data[e]}function Li(n,e){const t=e[n];return ys(t)?t:t[xr]}function sv(n){return!(128&~n[Bt])}function ka(n,e){return null==e?null:n[e]}function ov(n){n[xa]=0}function YO(n){1024&n[Bt]||(n[Bt]|=1024,sv(n)&&y(n))}function Hm(n){return!!(9216&n[Bt]||n[Pd]?.dirty)}function zT(n){n[Kl].changeDetectionScheduler?.notify(7),64&n[Bt]&&(n[Bt]|=1024),Hm(n)&&y(n)}function y(n){n[Kl].changeDetectionScheduler?.notify(0);let e=v(n);for(;null!==e&&!(8192&e[Bt])&&(e[Bt]|=8192,sv(e));)e=v(e)}function h(n,e){if(!(256&~n[Bt]))throw new De(911,!1);null===n[Du]&&(n[Du]=[]),n[Du].push(e)}function v(n){const e=n[Ti];return $s(e)?e[Ti]:e}const k={lFrame:Jz(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let fe=!1;function $r(){return k.bindingsEnabled}function Re(){return k.lFrame.lView}function yn(){return k.lFrame.tView}function bt(n){return k.lFrame.contextLView=n,n[kr]}function vt(n){return k.lFrame.contextLView=null,n}function Zn(){let n=HS();for(;null!==n&&64===n.type;)n=n.parent;return n}function HS(){return k.lFrame.currentTNode}function Jl(n,e){const t=k.lFrame;t.currentTNode=n,t.isParent=e}function BO(){return k.lFrame.isParent}function HO(){k.lFrame.isParent=!1}function $z(){return fe}function qz(n){fe=n}function ia(){const n=k.lFrame;let e=n.bindingRootIndex;return-1===e&&(e=n.bindingRootIndex=n.tView.bindingStartIndex),e}function kc(){return k.lFrame.bindingIndex++}function Fd(n){const e=k.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}function Oge(n,e){const t=k.lFrame;t.bindingIndex=t.bindingRootIndex=n,zO(e)}function zO(n){k.lFrame.currentDirectiveIndex=n}function qO(){return k.lFrame.currentQueryIndex}function zS(n){k.lFrame.currentQueryIndex=n}function Fge(n){const e=n[nt];return 2===e.type?e.declTNode:1===e.type?n[Bi]:null}function Kz(n,e,t){if(t&Gt.SkipSelf){let i=e,s=n;for(;!(i=i.parent,null!==i||t&Gt.Host||(i=Fge(s),null===i||(s=s[cf],10&i.type))););if(null===i)return!1;e=i,n=s}const r=k.lFrame=Qz();return r.currentTNode=e,r.lView=n,!0}function WO(n){const e=Qz(),t=n[nt];k.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function Qz(){const n=k.lFrame,e=null===n?null:n.child;return null===e?Jz(n):e}function Jz(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,
vendor: 4,133 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=e),e}function Xz(){const n=k.lFrame;return k.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Zz=Xz;function GO(){const n=Xz();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 Ao(){return k.lFrame.selectedIndex}function zm(n){k.lFrame.selectedIndex=n}function qr(){const n=k.lFrame;return Ld(n.tView,n.selectedIndex)}function Pa(){k.lFrame.currentNamespace=YT}function Pc(){!function jge(){k.lFrame.currentNamespace=null}()}let t$=!0;function qT(){return t$}function Cu(n){t$=n}function $S(n,e){for(let t=e.directiveStart,r=e.directiveEnd;t<r;t++){const s=n.data[t].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks??=[]).push(-t,o),a&&((n.contentHooks??=[]).push(t,a),(n.contentCheckHooks??=[]).push(t,a)),l&&(n.viewHooks??=[]).push(-t,l),c&&((n.viewHooks??=[]).push(t,c),(n.viewCheckHooks??=[]).push(t,c)),null!=u&&(n.destroyHooks??=[]).push(t,u)}}function qS(n,e,t){n$(n,e,3,t)}function WS(n,e,t,r){(3&n[Bt])===t&&n$(n,e,t,r)}function KO(n,e){let t=n[Bt];(3&t)===e&&(t&=16383,t+=1,n[Bt]=t)}function n$(n,e,t,r){const s=r??-1,o=e.length-1;let a=0;for(let l=void 0!==r?65535&n[xa]:0;l<o;l++)if("number"==typeof e[l+1]){if(a=e[l],null!=r&&a>=r)break}else e[l]<0&&(n[xa]+=65536),(a<s||-1==s)&&(Bge(n,t,e,l),n[xa]=(4294901760&n[xa])+l+2),l++}function r$(n,e){Ss(4,n,e);const t=F(null);try{e.call(n)}finally{F(t),Ss(5,n,e)}}function Bge(n,e,t,r){const i=t[r]<0,s=t[r+1],a=n[i?-t[r]:t[r]];i?n[Bt]>>14<n[xa]>>16&&(3&n[Bt])===e&&(n[Bt]+=16384,r$(a,s)):r$(a,s)}const lv=-1;class WT{constructor(e,t,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function JO(n){return n!==lv}function GT(n){return 32767&n}function KT(n,e){let t=function Wge(n){return n>>16}(n),r=e;for(;t>0;)r=r[cf],t--;return r}let XO=!0;function GS(n){const e=XO;return XO=n,e}const i$=255,s$=5;let Gge=0;const Su={};function KS(n,e){const t=o$(n,e);if(-1!==t)return t;const r=e[nt];r.firstCreatePass&&(n.injectorIndex=e.length,ZO(r.data,n),ZO(e,null),ZO(r.blueprint,null));const i=QS(n,e),s=n.injectorIndex;if(JO(i)){const o=GT(i),a=KT(i,e),l=a[nt].data;for(let c=0;c<8;c++)e[s+c]=a[o+c]|l[o+c]}return e[s+8]=i,s}function ZO(n,e){n.push(0,0,0,0,0,0,0,0,e)}function o$(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function QS(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,r=null,i=e;for(;null!==i;){if(r=f$(i),null===r)return lv;if(t++,i=i[cf],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return lv}function eN(n,e,t){!function Kge(n,e,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(Tc)&&(r=t[Tc]),null==r&&(r=t[Tc]=Gge++);const i=r&i$;e.data[n+(i>>s$)]|=1<<i}(n,e,t)}function a$(n,e,t){if(t&Gt.Optional||void 0!==n)return n;Fy()}function l$(n,e,t,r){if(t&Gt.Optional&&void 0===r&&(r=null),!(t&(Gt.Self|Gt.Host))){const i=n[Hi],s=Yi(void 0);try{return i?i.get(e,r,t&Gt.Optional):Qh(e,r,t&Gt.Optional)}finally{Yi(s)}}return a$(r,0,t)}function c$(n,e,t,r=Gt.Default,i){if(null!==n){if(2048&e[Bt]&&!(r&Gt.Self)){const o=function e_e(n,e,t,r,i){let s=n,o=e;for(;null!==s&&null!==o&&2048&o[Bt]&&!(512&o[Bt]);){const a=u$(s,o,t,r|Gt.Self,Su);if(a!==Su)return a;let l=s.parent;if(!l){const c=o[Jy];if(c){const u=c.get(t,Su,r);if(u!==Su)return u}l=f$(o),o=o[cf]}s=l}return i}(n,e,t,r,Su);if(o!==Su)return o}const s=u$(n,e,t,r,Su);if(s!==Su)return s}return l$(e,t,r,i)}function u$(n,e,t,r,i){const s=function Xge(n){if("string"==typeof n)return n.charCodeAt(0)||0;const e=n.hasOwnProperty(Tc)?n[Tc]:void 0;return"number"==typeof e?e>=0?e&i$:Zge:e}(t);if("function"==typeof s){if(!Kz(e,n,r))return r&Gt.Host?a$(i,0,r):l$(e,t,r,i
1);try{let o;if(o=s(r),null!=o||r&Gt.Optional)return o;Fy()}finally{Zz()}}else if("number"==typeof s){let o=null,a=o$(n,e),l=lv,c=r&Gt.Host?e[li][Bi]:null;for((-1===a||r&Gt.SkipSelf)&&(l=-1===a?QS(n,e):e[a+8],l!==lv&&h$(r,!1)?(o=e[nt],a=GT(l),e=KT(l,e)):a=-1);-1!==a;){const u=e[nt];if(d$(s,a,u.data)){const d=Jge(a,e,t,o,r,c);if(d!==Su)return d}l=e[a+8],l!==lv&&h$(r,e[nt].data[a+8]===c)&&d$(s,a,e)?(o=u,a=GT(l),e=KT(l,e)):a=-1}}return i}function Jge(n,e,t,r,i,s){const o=e[nt],a=o.data[n+8],u=JS(a,o,t,null==r?xc(a)&&XO:r!=o&&!!(3&a.type),i&Gt.Host&&s===a);return null!==u?$m(e,o,u,a):Su}function JS(n,e,t,r,i){const s=n.providerIndexes,o=e.data,a=1048575&s,l=n.directiveStart,u=s>>20,f=i?a+u:n.directiveEnd;for(let _=r?a:a+u;_<f;_++){const w=o[_];if(_<l&&t===w||_>=l&&w.type===t)return _}if(i){const _=o[l];if(_&&ml(_)&&_.type===t)return l}return null}function $m(n,e,t,r){let i=n[t];const s=e.data;if(function Hge(n){return n instanceof WT}(i)){const o=i;o.resolving&&function fT(n,e){throw e&&e.join(" > "),new De(-200,n)}(function Rn(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():Wt(n)}(s[t]));const a=GS(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?Yi(o.injectImpl):null;Kz(n,r,Gt.Default);try{i=n[t]=o.factory(void 0,s,n,r),e.firstCreatePass&&t>=r.directiveStart&&function Yge(n,e,t){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=e.type.prototype;if(r){const o=pf(e);(t.preOrderHooks??=[]).push(n,o),(t.preOrderCheckHooks??=[]).push(n,o)}i&&(t.preOrderHooks??=[]).push(0-n,i),s&&((t.preOrderHooks??=[]).push(n,s),(t.preOrderCheckHooks??=[]).push(n,s))}(t,s[t],e)}finally{null!==c&&Yi(c),GS(a),o.resolving=!1,Zz()}}return i}function d$(n,e,t){return!!(t[e+(n>>s$)]&1<<n)}function h$(n,e){return!(n&Gt.Self||n&Gt.Host&&e)}class xs{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,r){return c$(this._tNode,this._lView,e,_u(r),t)}}function Zge(){return new xs(Zn(),Re())}function qs(n){return ao(()=>{const e=n.prototype.constructor,t=e[ta]||tN(e),r=Object.prototype;let i=Object.getPrototypeOf(n.prototype).constructor;for(;i&&i!==r;){const s=i[ta]||tN(i);if(s&&s!==t)return s;i=Object.getPrototypeOf(i)}return s=>new s})}function tN(n){return vc(n)?()=>{const e=tN(qt(n));return e&&e()}:Ic(n)}function f$(n){const e=n[nt],t=e.type;return 2===t?e.declTNode:1===t?n[Bi]:null}function y$(n,e=null,t=null,r){const i=v$(n,e,t,r);return i.resolveInjectorInitializers(),i}function v$(n,e=null,t=null,r,i=new Set){const s=[t||En,DT(n)];return r=r||("object"==typeof n?void 0:Pi(n)),new Sc(s,e||Lm(),r||null,i)}class ts{static#e=this.THROW_IF_NOT_FOUND=Ec;static#t=this.NULL=new wu;static create(e,t){if(Array.isArray(e))return y$({name:""},t,e,"");{const r=e.name??"";return y$({name:r},e.parent,e.providers,r)}}static#n=this.\u0275prov=Be({token:ts,providedIn:"any",factory:()=>ve(tf)});static#r=this.__NG_ELEMENT_ID__=-1}new $e("").__NG_ELEMENT_ID__=n=>{const e=Zn();if(null===e)throw new De(204,!1);if(2&e.type)return e.value;if(n&Gt.Optional)return null;throw new De(204,!1)};function rN(n){return n.ngOriginalError}class Xl{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e);this._console.error("ERROR",e),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&rN(e);for(;t&&rN(t);)t=rN(t);return t||null}}const b$=new $e("",{providedIn:"root",factory:()=>Le(Xl).handleError.bind(void 0)});let dv=(()=>{class n{static#e=this.__NG_ELEMENT_ID__=u_e;static#t=this.__NG_ENV_ID__=t=>t}return n})();class c_e extends dv{constructor(e){super(),this._lView=e}onDestroy(e){return h(this._lView,e),()=>function p(n,e){if(null===n[Du])return;const t=n[Du].indexOf(e);-1!==t&&n[Du].splice(t,1)}(this._lView,e)}}function u_e(){return new c_e(Re())}function d_e(){return hv(Zn(),Re())}function hv(n,e){return new Qn(dr(n,e))}let Qn=(()=>{class n{constructor(t){this.nativeElement=t}static#e=this.__NG_ELEMENT_ID__=d_e}return n})();function E$(n){return n instanceof Qn?n.nativeElement:n}function iN(n){return e=>{setTimeout(n,void 0,e)}}const Tn=class h_e extends ge{constructor(e=!1){super(),this.destroyRef=void 0,this.__isAsync=e,AS()&&(this.destroyRef=Le(dv,{optional:!0})??void 0)}emit(e){const t=F(null);try{super.next(e)}finally{F(t)}}subscribe(e,t,r){let i=e,s=t||(()=>null),o=r;if(e&&"object"==typeof e){const l=e;i=l.next?.bind(l),s=l.error?.bind(l),o=l.complete?.bind(l)}this.__isAsync&&(s=iN(s),i&&(i=iN(i)),o&&(o=iN(o)));const a=super.subscribe({next:i,error:s,complete:o});return e instanceof rr&&e.add(a),a}};function f_e(){return this._results[Symbol.iterator]()}class sN{static#e=Symbol.iterator;get changes(){return this._changes??=new Tn}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const t=sN.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=f_e)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}
1forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){this.dirty=!1;const r=function Zi(n){return n.flat(Number.POSITIVE_INFINITY)}(e);(this._changesDetected=!function vT(n,e,t){if(n.length!==e.length)return!1;for(let r=0;r<n.length;r++){let i=n[r],s=e[r];if(t&&(i=t(i),s=t(s)),s!==i)return!1}return!0}(this._results,r,t))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}}function ZS(n){return!(128&~n.flags)}const oN=new Map;let m_e=0;const tA="__ngContext__";function xo(n,e){ys(e)?(n[tA]=e[uf],function __e(n){oN.set(n[uf],n)}(e)):n[tA]=e}function R$(n){return O$(n[Vm])}function L$(n){return O$(n[Aa])}function O$(n){for(;null!==n&&!$s(n);)n=n[Aa];return n}let lN;const XT=new $e("",{providedIn:"root",factory:()=>O_e}),O_e="ng",H$=new $e(""),La=new $e("",{providedIn:"platform",factory:()=>"unknown"}),z$=new $e(""),cN=new $e("",{providedIn:"root",factory:()=>function _f(){if(void 0!==lN)return lN;if(typeof document<"u")return document;throw new De(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let $$=()=>null;function gN(n,e,t=!1){return $$(n,e,t)}const Z$=new $e("",{providedIn:"root",factory:()=>!1});let cA;class s9{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Bh})`}}function yf(n){return n instanceof s9?n.changingThisBreaksApplicationSecurity:n}const sye=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var _v=function(n){return n[n.NONE=0]="NONE",n[n.HTML=1]="HTML",n[n.STYLE=2]="STYLE",n[n.SCRIPT=3]="SCRIPT",n[n.URL=4]="URL",n[n.RESOURCE_URL=5]="RESOURCE_URL",n}(_v||{});function hA(n){const e=function aE(){const n=Re();return n&&n[Kl].sanitizer}();return e?e.sanitize(_v.URL,n)||"":function sE(n,e){const t=function tye(n){return n instanceof s9&&n.getTypeName()||null}(n);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see ${Bh})`)}return t===e}(n,"URL")?yf(n):function EN(n){return(n=String(n)).match(sye)?n:"unsafe:"+n}(Wt(n))}function fA(n){return function K_e(n){return function bN(){if(void 0===cA&&(cA=null,Gn.trustedTypes))try{cA=Gn.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return cA}()?.createScriptURL(n)||n}(n[0])}const wye=/^>|^->|<!--|-->|--!>|<!-$/g,bye=/(<|>)/g,Tye="\u200b$1\u200b";function v9(n){return n.ownerDocument.defaultView}function gl(n){return n instanceof Function?n():n}var vf=function(n){return n[n.Important=1]="Important",n[n.DashCase=2]="DashCase",n}(vf||{});let xN;function kN(n,e){return xN(n,e)}function vv(n,e,t,r,i){if(null!=r){let s,o=!1;$s(r)?s=r:ys(r)&&(o=!0,r=r[xr]);const a=Kn(r);0===n&&null!==t?null==i?S9(e,t,a):qm(e,t,a,i||null,!0):1===n&&null!==t?qm(e,t,a,i||null,!0):2===n?function uE(n,e,t){const r=yA(n,e);r&&function Uye(n,e,t,r){n.removeChild(e,t,r)}(n,r,e,t)}(e,a,o):3===n&&e.destroyNode(a),null!=s&&function Bye(n,e,t,r,i){const s=t[Ql];s!==Kn(t)&&vv(e,n,r,s,i);for(let a=Ri;a<t.length;a++){const l=t[a];wA(l[nt],l,n,e,r,s)}}(e,n,s,t,i)}}function RN(n,e){return n.createComment(function g9(n){return n.replace(wye,e=>e.replace(bye,Tye))}(e))}function gA(n,e,t){return n.createElement(e,t)}function I9(n,e){e[Kl].changeDetectionScheduler?.notify(8),wA(n,e,e[Qt],2,null,null)}function D9(n,e){const t=n[ff],r=e[Ti];(ys(r)||e[li]!==r[Ti][li])&&(n[Bt]|=Xy.HasTransplantedViews),null===t?n[ff]=[e]:t.push(e)}function LN(n,e){const t=n[ff],r=t.indexOf(e);t.splice(r,1)}function lE(n,e){if(n.length<=Ri)return;const t=Ri+e,r=n[t];if(r){const i=r[kd];null!==i&&i!==n&&LN(i,r),e>0&&(n[t-1][Aa]=r[Aa]);const s=Co(n,Ri+e);!function Rye(n,e){I9(n,e),e[xr]=null,e[Bi]=null}(r[nt],r);const o=s[Ac];null!==o&&o.detachView(s[nt]),r[Ti]=null,r[Aa]=null,r[Bt]&=-129}return r}function _A(n,e){if(!(256&e[Bt])){const t=e[Qt];t.destroyNode&&wA(n,e,t,3,null,null),function Oye(n){let e=n[Vm];if(!e)return ON(n[nt],n);for(;e;){let t=null;if(ys(e))t=e[Vm];else{const r=e[Ri];r&&(t=r)}if(!t){for(;e&&!e[Aa]&&e!==n;)ys(e)&&ON(e[nt],e),e=e[Ti];null===e&&(e=n),ys(e)&&ON(e[nt],e),t=e&&e[Aa]}e=t}}(e)}}function ON(n,e){if(256&e[Bt])return;const t=F(null);try{e[Bt]&=-129,e[Bt]|=256,e[Pd]&&function ri(n){if(Et(n),ii(n))for(let e=0;e<n.producerNode.length;e++)en(n.producerNode[e],n.producerIndexOfThis[e]);n.producerNode.length=n.producerLastReadVersion.length=n.producerIndexOfThis.length=0,n.liveConsumerNode&&(n.liveConsumerNode.length=n.liveConsumerIndexOfThis.length=0)}(e[Pd]),function Vye(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let r=0;r<t.length;r+=2){const i=e[t[r]];if(!(i instanceof WT)){const s=t[r+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=i[s[o]],l=s[o+1];Ss(4,a,l);try{l.call(a)}finally{Ss(5,a,l)}}else{Ss(4,i,s);try{s.call(i)}finally{Ss(5,i,s)}}}}}(n,e),function Fye(n,e){const t=n.cleanup,r=e[xd];if(null!==t)for(let s=0;s<t.length-1;s+=2)if("string"==typeof t[s]){const o=t[s+3];o>=0?r[o]():r[-o].unsubscribe(),s+=2}else t[s].call(r[t[s+1]]);null!==r&&(e[xd]=null);const i=e[Du];if(null!==i){e[Du]=null;for(let s=0;s<i.length;s++)(0,i[s])()}}(n,e),1===e[nt].type&&e[Qt].destroy();const r=e[kd];if(null!==r&&$s(e[Ti])){r!==e[Ti]&&LN(r,e);const i=e[Ac];null!==i&&i.detachView(n)}!function y_e(n){oN.delete(n[uf])}(e)}finally{F(t)}}function NN(n,e,t){return function C9(n,e,t){let r=e;for(;null!==r&&40&r.type;)r=(e=r).parent;if(null===r)return t[xr];
1{const{componentOffset:i}=r;if(i>-1){const{encapsulation:s}=n.data[r.directiveStart+i];if(s===co.None||s===co.Emulated)return null}return dr(r,t)}}(n,e.parent,t)}function qm(n,e,t,r,i){n.insertBefore(e,t,r,i)}function S9(n,e,t){n.appendChild(e,t)}function A9(n,e,t,r,i){null!==r?qm(n,e,t,r,i):S9(n,e,t)}function yA(n,e){return n.parentNode(e)}let FN,P9=function k9(n,e,t){return 40&n.type?dr(n,t):null};function vA(n,e,t,r){const i=NN(n,r,e),s=e[Qt],a=function x9(n,e,t){return P9(n,e,t)}(r.parent||e[Bi],r,e);if(null!=i)if(Array.isArray(t))for(let l=0;l<t.length;l++)A9(s,i,t[l],a,!1);else A9(s,i,t,a,!1);void 0!==FN&&FN(s,r,e,t,i)}function cE(n,e){if(null!==e){const t=e.type;if(3&t)return dr(e,n);if(4&t)return VN(-1,n[e.index]);if(8&t){const r=e.child;if(null!==r)return cE(n,r);{const i=n[e.index];return $s(i)?VN(-1,i):Kn(i)}}if(32&t)return kN(e,n)()||Kn(n[e.index]);{const r=L9(n,e);return null!==r?Array.isArray(r)?r[0]:cE(v(n[li]),r):cE(n,e.next)}}return null}function L9(n,e){return null!==e?n[li][Bi].projection[e.projection]:null}function VN(n,e){const t=Ri+n+1;if(t<e.length){const r=e[t],i=r[nt].firstChild;if(null!==i)return cE(r,i)}return e[Ql]}function UN(n,e,t,r,i,s,o){for(;null!=t;){const a=r[t.index],l=t.type;if(o&&0===e&&(a&&xo(Kn(a),r),t.flags|=2),32&~t.flags)if(8&l)UN(n,e,t.child,r,i,s,!1),vv(e,n,i,a,s);else if(32&l){const c=kN(t,r);let u;for(;u=c();)vv(e,n,i,u,s);vv(e,n,i,a,s)}else 16&l?N9(n,e,r,t,i,s):vv(e,n,i,a,s);t=o?t.projectionNext:t.next}}function wA(n,e,t,r,i,s){UN(t,r,n.firstChild,e,i,s,!1)}function N9(n,e,t,r,i,s){const o=t[li],l=o[Bi].projection[r.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)vv(e,n,i,l[c],s);else{let c=l;const u=o[Ti];ZS(r)&&(c.flags|=128),UN(n,e,c,u,i,s,!0)}}function F9(n,e,t){""===t?n.removeAttribute(e,"class"):n.setAttribute(e,"class",t)}function V9(n,e,t){const{mergedAttrs:r,classes:i,styles:s}=t;null!==r&&Cc(n,e,r),null!==i&&F9(n,e,i),null!==s&&function zye(n,e,t){n.setAttribute(e,"style",t)}(n,e,s)}const ln={};function Ve(n=1){U9(yn(),Re(),Ao()+n,!1)}function U9(n,e,t,r){if(!r)if(3&~e[Bt]){const s=n.preOrderHooks;null!==s&&WS(e,s,0,t)}else{const s=n.preOrderCheckHooks;null!==s&&qS(e,s,t)}zm(t)}function _e(n,e=Gt.Default){const t=Re();return null===t?ve(n,e):c$(Zn(),t,qt(n),e)}function Y9(n,e,t,r,i,s){const o=F(null);try{let a=null;i&bu.SignalBased&&(a=e[r][L]),null!==a&&void 0!==a.transformFn&&(s=a.transformFn(s)),i&bu.HasDecoratorInputTransform&&(s=n.inputTransforms[r].call(e,s)),null!==n.setInput?n.setInput(e,a,s,t,r):OS(e,a,r,s)}finally{F(o)}}function bA(n,e,t,r,i,s,o,a,l,c,u){const d=e.blueprint.slice();return d[xr]=i,d[Bt]=204|r,(null!==c||n&&2048&n[Bt])&&(d[Bt]|=2048),ov(d),d[Ti]=d[cf]=n,d[kr]=t,d[Kl]=o||n&&n[Kl],d[Qt]=a||n&&n[Qt],d[Hi]=l||n&&n[Hi]||null,d[Bi]=s,d[uf]=function g_e(){return m_e++}(),d[zs]=u,d[Jy]=c,d[li]=2==e.type?n[li]:d,d}function wv(n,e,t,r,i){let s=n.data[e];if(null===s)s=function jN(n,e,t,r,i){const s=HS(),o=BO(),l=n.data[e]=function Xye(n,e,t,r,i,s){let o=e?e.injectorIndex:-1,a=0;return function As(){return null!==k.skipHydrationRootTNode}()&&(a|=128),{type:t,index:r,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,t,e,r,i);return null===n.firstChild&&(n.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l,l.prev=s)),l}(n,e,t,r,i),function Lge(){return k.lFrame.inI18n}()&&(s.flags|=32);else if(64&s.type){s.type=t,s.value=r,s.attrs=i;const o=function Od(){const n=k.lFrame,e=n.currentTNode;return n.isParent?e:e.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return Jl(s,!0),s}function dE(n,e,t,r){if(0===t)return-1;const i=e.length;for(let s=0;s<t;s++)e.push(r),n.blueprint.push(r),n.data.push(null);return i}function B9(n,e,t,r,i){const s=Ao(),o=2&r;try{zm(-1),o&&e.length>Ht&&U9(n,e,Ht,!1),Ss(o?2:0,i),t(r,i)}finally{zm(s),Ss(o?3:1,i)}}function YN(n,e,t){if(Zy(e)){const r=F(null);try{const s=e.directiveEnd;for(let o=e.directiveStart;o<s;o++){const a=n.data[o];a.contentQueries&&a.contentQueries(1,t[o],o)}}finally{F(r)}}}function BN(n,e,t){$r()&&(function sve(n,e,t,r){const i=t.directiveStart,s=t.directiveEnd;xc(t)&&function hve(n,e,t){const r=dr(e,n),i=H9(t);let o=16;t.signals?o=4096:t.onPush&&(o=64);const a=TA(n,bA(n,i,null,o,r,e,null,n[Kl].rendererFactory.createRenderer(r,t),null,null,null));n[e.index]=a}
1(e,t,n.data[i+t.componentOffset]),n.firstCreatePass||KS(t,e),xo(r,e);const o=t.initialInputs;for(let a=i;a<s;a++){const l=n.data[a],c=$m(e,n,a,t);xo(c,e),null!==o&&fve(0,a-i,c,l,0,o),ml(l)&&(Li(t.index,e)[kr]=$m(e,n,a,t))}}(n,e,t,dr(t,e)),!(64&~t.flags)&&G9(n,e,t))}function HN(n,e,t=dr){const r=e.localNames;if(null!==r){let i=e.index+1;for(let s=0;s<r.length;s+=2){const o=r[s+1],a=-1===o?t(e,n):n[o];n[i++]=a}}}function H9(n){const e=n.tView;return null===e||e.incompleteFirstPass?n.tView=zN(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts,n.id):e}function zN(n,e,t,r,i,s,o,a,l,c,u){const d=Ht+r,f=d+i,_=function qye(n,e){const t=[];for(let r=0;r<e;r++)t.push(r<n?null:ln);return t}(d,f),w="function"==typeof c?c():c;return _[nt]={type:n,blueprint:_,template:t,queries:null,viewQuery:a,declTNode:e,data:_.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,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 o?o():o,firstChild:null,schemas:l,consts:w,incompleteFirstPass:!1,ssrId:u}}let z9=()=>null;function $9(n,e,t,r,i){for(let s in e){if(!e.hasOwnProperty(s))continue;const o=e[s];if(void 0===o)continue;r??={};let a,l=bu.None;Array.isArray(o)?(a=o[0],l=o[1]):a=o;let c=s;if(null!==i){if(!i.hasOwnProperty(s))continue;c=i[s]}0===n?q9(r,t,c,a,l):q9(r,t,c,a)}return r}function q9(n,e,t,r,i){let s;n.hasOwnProperty(t)?(s=n[t]).push(e,r):s=n[t]=[e,r],void 0!==i&&s.push(i)}function Oa(n,e,t,r,i,s,o,a){const l=dr(e,t);let u,c=e.inputs;!a&&null!=c&&(u=c[r])?(KN(n,t,u,r,i),xc(e)&&function tve(n,e){const t=Li(e,n);16&t[Bt]||(t[Bt]|=64)}(t,e.index)):3&e.type&&(r=function eve(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(r),i=null!=o?o(i,e.value||"",r):i,s.setProperty(l,r,i))}function $N(n,e,t,r){if($r()){const i=null===r?null:{"":-1},s=function ave(n,e){const t=n.directiveRegistry;let r=null,i=null;if(t)for(let s=0;s<t.length;s++){const o=t[s];if(fl(e,o.selectors,!1))if(r||(r=[]),ml(o))if(null!==o.findHostDirectiveDefs){const a=[];i=i||new Map,o.findHostDirectiveDefs(o,a,i),r.unshift(...a,o),qN(n,e,a.length)}else r.unshift(o),qN(n,e,0);else i=i||new Map,o.findHostDirectiveDefs?.(o,r,i),r.push(o)}return null===r?null:[r,i]}(n,t);let o,a;null===s?o=a=null:[o,a]=s,null!==o&&W9(n,e,t,o,i,a),i&&function lve(n,e,t){if(e){const r=n.localNames=[];for(let i=0;i<e.length;i+=2){const s=t[e[i+1]];if(null==s)throw new De(-301,!1);r.push(e[i],s)}}}(t,r,i)}t.mergedAttrs=Sd(t.mergedAttrs,t.attrs)}function W9(n,e,t,r,i,s){for(let c=0;c<r.length;c++)eN(KS(t,e),n,r[c].type);!function uve(n,e,t){n.flags|=1,n.directiveStart=e,n.directiveEnd=e+t,n.providerIndexes=e}(t,n.data.length,r.length);for(let c=0;c<r.length;c++){const u=r[c];u.providersResolver&&u.providersResolver(u)}let o=!1,a=!1,l=dE(n,e,r.length,null);for(let c=0;c<r.length;c++){const u=r[c];t.mergedAttrs=Sd(t.mergedAttrs,u.hostAttrs),dve(n,t,e,l,u),cve(l,u,i),null!==u.contentQueries&&(t.flags|=4),(null!==u.hostBindings||null!==u.hostAttrs||0!==u.hostVars)&&(t.flags|=64);const d=u.type.prototype;!o&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((n.preOrderHooks??=[]).push(t.index),o=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((n.preOrderCheckHooks??=[]).push(t.index),a=!0),l++}!function Zye(n,e,t){const i=e.directiveEnd,s=n.data,o=e.attrs,a=[];let l=null,c=null;for(let u=e.directiveStart;u<i;u++){const d=s[u],f=t?t.get(d):null,w=f?f.outputs:null;l=$9(0,d.inputs,u,l,f?f.inputs:null),c=$9(1,d.outputs,u,c,w);const M=null===l||null===o||nf(e)?null:pve(l,u,o);a.push(M)}null!==l&&(l.hasOwnProperty("class")&&(e.flags|=8),l.hasOwnProperty("style")&&(e.flags|=16)),e.initialInputs=a,e.inputs=l,e.outputs=c}(n,t,s)}function G9(n,e,t){const r=t.directiveStart,i=t.directiveEnd,s=t.index,o=function Nge(){return k.lFrame.currentDirectiveIndex}();try{zm(s);for(let a=r;a<i;a++){const l=n.data[a],c=e[a];zO(a),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&ove(l,c)}}finally{zm(-1),zO(o)}}function ove(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}
1function qN(n,e,t){e.componentOffset=t,(n.components??=[]).push(e.index)}function cve(n,e,t){if(t){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)t[e.exportAs[r]]=n;ml(e)&&(t[""]=n)}}function dve(n,e,t,r,i){n.data[r]=i;const s=i.factory||(i.factory=Ic(i.type)),o=new WT(s,ml(i),_e);n.blueprint[r]=o,t[r]=o,function rve(n,e,t,r,i){const s=i.hostBindings;if(s){let o=n.hostBindingOpCodes;null===o&&(o=n.hostBindingOpCodes=[]);const a=~e.index;(function ive(n){let e=n.length;for(;e>0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(o)!=a&&o.push(a),o.push(t,r,s)}}(n,e,r,dE(n,t,i.hostVars,ln),i)}function Au(n,e,t,r,i,s){const o=dr(n,e);!function WN(n,e,t,r,i,s,o){if(null==s)n.removeAttribute(e,i,t);else{const a=null==o?Wt(s):o(s,r||"",i);n.setAttribute(e,i,a,t)}}(e[Qt],o,s,n.value,t,r,i)}function fve(n,e,t,r,i,s){const o=s[e];if(null!==o)for(let a=0;a<o.length;)Y9(r,t,o[a++],o[a++],o[a++],o[a++])}function pve(n,e,t){let r=null,i=0;for(;i<t.length;){const s=t[i];if(0!==s)if(5!==s){if("number"==typeof s)break;if(n.hasOwnProperty(s)){null===r&&(r=[]);const o=n[s];for(let a=0;a<o.length;a+=3)if(o[a]===e){r.push(s,o[a+1],o[a+2],t[i+1]);break}}i+=2}else i+=2;else i+=4}return r}function K9(n,e,t,r){return[n,!0,0,e,null,r,null,t,null,null]}function Q9(n,e){const t=n.contentQueries;if(null!==t){const r=F(null);try{for(let i=0;i<t.length;i+=2){const o=t[i+1];if(-1!==o){const a=n.data[o];zS(t[i]),a.contentQueries(2,e[o],o)}}}finally{F(r)}}}function TA(n,e){return n[Vm]?n[OT][Aa]=e:n[Vm]=e,n[OT]=e,e}function GN(n,e,t){zS(0);const r=F(null);try{e(n,t)}finally{F(r)}}function J9(n){return n[xd]??=[]}function X9(n){return n.cleanup??=[]}function EA(n,e){const t=n[Hi],r=t?t.get(Xl,null):null;r&&r.handleError(e)}function KN(n,e,t,r,i){for(let s=0;s<t.length;){const o=t[s++],a=t[s++],l=t[s++];Y9(n.data[o],e[o],r,a,l,i)}}function mve(n,e){const t=Li(e,n),r=t[nt];!function gve(n,e){for(let t=e.length;t<n.blueprint.length;t++)e.push(n.blueprint[t])}(r,t);const i=t[xr];null!==i&&null===t[zs]&&(t[zs]=gN(i,t[Hi])),QN(r,t,t[kr])}function QN(n,e,t){WO(e);try{const r=n.viewQuery;null!==r&&GN(1,r,t);const i=n.template;null!==i&&B9(n,e,i,1,t),n.firstCreatePass&&(n.firstCreatePass=!1),e[Ac]?.finishViewCreation(n),n.staticContentQueries&&Q9(n,e),n.staticViewQueries&&GN(2,n.viewQuery,t);const s=n.components;null!==s&&function _ve(n,e){for(let t=0;t<e.length;t++)mve(n,e[t])}(e,s)}catch(r){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),r}finally{e[Bt]&=-5,GO()}}function Wm(n,e){return!e||null===e.firstChild||ZS(n)}function hE(n,e,t,r,i=!1){for(;null!==t;){const s=e[t.index];null!==s&&r.push(Kn(s)),$s(s)&&t8(s,r);const o=t.type;if(8&o)hE(n,e,t.child,r);else if(32&o){const a=kN(t,e);let l;for(;l=a();)r.push(l)}else if(16&o){const a=L9(e,t);if(Array.isArray(a))r.push(...a);else{const l=v(e[li]);hE(l[nt],l,a,r,!0)}}t=i?t.projectionNext:t.next}return r}function t8(n,e){for(let t=Ri;t<n.length;t++){const r=n[t],i=r[nt].firstChild;null!==i&&hE(r[nt],r,i,e)}n[Ql]!==n[xr]&&e.push(n[Ql])}let n8=[];const bve={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:n=>{y(n.lView)},consumerOnSignalRead(){this.lView[Pd]=this}},Tve=100;function MA(n,e=!0,t=0){const r=n[Kl],i=r.rendererFactory;i.begin?.();try{!function Eve(n,e){const t=$z();try{qz(!0),XN(n,e);let r=0;for(;Hm(n);){if(r===Tve)throw new De(103,!1);r++,XN(n,1)}}finally{qz(t)}}(n,t)}catch(o){throw e&&EA(n,o),o}finally{i.end?.(),r.inlineEffectRunner?.flush()}}function Mve(n,e,t,r){const i=e[Bt];if(!(256&~i))return;e[Kl].inlineEffectRunner?.flush(),WO(e);let a=null,l=null;(function Ive(n){return 2!==n.type})(n)&&(l=function yve(n){return n[Pd]??function vve(n){const e=n8.pop()??Object.create(bve);return e.lView=n,e}(n)}(e),a=function Yt(n){return n&&(n.nextProducerIndex=0),F(n)}(l));try{ov(e),function Wz(n){return k.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==t&&B9(n,e,t,2,r);const c=!(3&~i);if(c){const f=n.preOrderCheckHooks;null!==f&&qS(e,f,null)}else{const f=n.preOrderHooks;null!==f&&WS(e,f,0,null),KO(e,0)}if(function Dve(n){for(let e=R$(n);null!==e;e=L$(e)){if(!(e[Bt]&Xy.HasTransplantedViews))continue;const t=e[ff];for(let r=0;r<t.length;r++)YO(t[r])}}(e),i8(e,0),null!==n.contentQueries&&Q9(n,e),c){const f=n.contentCheckHooks;null!==f&&qS(e,f)}else{const f=n.contentHooks;null!==f&&WS(e,f,1),KO(e,1)}!function $ye(n,e){const t=n.hostBindingOpCodes;if(null!==t)try{for(let r=0;r<t.length;r++){const i=t[r];
1if(i<0)zm(~i);else{const s=i,o=t[++r],a=t[++r];Oge(o,s),a(2,e[s])}}}finally{zm(-1)}}(n,e);const u=n.components;null!==u&&o8(e,u,0);const d=n.viewQuery;if(null!==d&&GN(2,d,r),c){const f=n.viewCheckHooks;null!==f&&qS(e,f)}else{const f=n.viewHooks;null!==f&&WS(e,f,2),KO(e,2)}if(!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),e[df]){for(const f of e[df])f();e[df]=null}e[Bt]&=-73}catch(c){throw y(e),c}finally{null!==l&&(function Nr(n,e){if(F(e),n&&void 0!==n.producerNode&&void 0!==n.producerIndexOfThis&&void 0!==n.producerLastReadVersion){if(ii(n))for(let t=n.nextProducerIndex;t<n.producerNode.length;t++)en(n.producerNode[t],n.producerIndexOfThis[t]);for(;n.producerNode.length>n.nextProducerIndex;)n.producerNode.pop(),n.producerLastReadVersion.pop(),n.producerIndexOfThis.pop()}}(l,a),function wve(n){n.lView[Pd]!==n&&(n.lView=null,n8.push(n))}(l)),GO()}}function i8(n,e){for(let t=R$(n);null!==t;t=L$(t))for(let r=Ri;r<t.length;r++)s8(t[r],e)}function Cve(n,e,t){s8(Li(e,n),t)}function s8(n,e){sv(n)&&XN(n,e)}function XN(n,e){const r=n[nt],i=n[Bt],s=n[Pd];let o=!!(0===e&&16&i);if(o||=!!(64&i&&0===e),o||=!!(1024&i),o||=!(!s?.dirty||!ni(s)),o||=!1,s&&(s.dirty=!1),n[Bt]&=-9217,o)Mve(r,n,r.template,n[kr]);else if(8192&i){i8(n,1);const a=r.components;null!==a&&o8(n,a,1)}}function o8(n,e,t){for(let r=0;r<e.length;r++)Cve(n,e[r],t)}function fE(n,e){const t=$z()?64:1088;for(n[Kl].changeDetectionScheduler?.notify(e);n;){n[Bt]|=t;const r=v(n);if(Rd(n)&&!r)return n;n=r}return null}class pE{get rootNodes(){const e=this._lView,t=e[nt];return hE(t,e,t.firstChild,[])}constructor(e,t,r=!0){this._lView=e,this._cdRefInjectingView=t,this.notifyErrorHandler=r,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[kr]}set context(e){this._lView[kr]=e}get destroyed(){return!(256&~this._lView[Bt])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[Ti];if($s(e)){const t=e[8],r=t?t.indexOf(this):-1;r>-1&&(lE(e,r),Co(t,r))}this._attachedToViewContainer=!1}_A(this._lView[nt],this._lView)}onDestroy(e){h(this._lView,e)}markForCheck(){fE(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Bt]&=-129}reattach(){zT(this._lView),this._lView[Bt]|=128}detectChanges(){this._lView[Bt]|=1024,MA(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new De(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const e=Rd(this._lView),t=this._lView[kd];null!==t&&!e&&LN(t,this._lView),I9(this._lView[nt],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new De(902,!1);this._appRef=e;const t=Rd(this._lView),r=this._lView[kd];null!==r&&!t&&D9(r,this._lView),zT(this._lView)}}let jd=(()=>{class n{static#e=this.__NG_ELEMENT_ID__=xve}return n})();const Sve=jd,Ave=class extends Sve{constructor(e,t,r){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,t){return this.createEmbeddedViewImpl(e,t)}createEmbeddedViewImpl(e,t,r){const i=function bv(n,e,t,r){const i=F(null);try{const s=e.tView,l=bA(n,s,t,4096&n[Bt]?4096:16,null,e,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null);l[kd]=n[e.index];const u=n[Ac];return null!==u&&(l[Ac]=u.createEmbeddedView(s)),QN(s,l,t),l}finally{F(i)}}(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:t,dehydratedView:r});return new pE(i)}};function xve(){return IA(Zn(),Re())}function IA(n,e){return 4&n.type?new Ave(e,n,hv(n,e)):null}class Mv{}const TE=new $e("",{providedIn:"root",factory:()=>!1}),C8=new $e("");class _0e{}class S8{}class v0e{resolveComponentFactory(e){throw function y0e(n){const e=Error(`No component factory found for ${Pi(n)}.`);return e.ngComponent=n,e}(e)}}class xA{static#e=this.NULL=new v0e}class kA{}let xu=(()=>{class n{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function w0e(){const n=Re(),t=Li(Zn().index,n);return(ys(t)?t:n)[Qt]}()}return n})(),b0e=(()=>{class n{static#e=this.\u0275prov=Be({token:n,providedIn:"root",factory:()=>null})}return n})();const l2={},x8=new Set;function _l(n){x8.has(n)||(x8.add(n),performance?.mark?.("mark_feature_usage",{detail:{feature:n}}))}function k8(n){let e=!0;return setTimeout(()=>{e&&(e=!1,n())}),"function"==typeof Gn.requestAnimationFrame&&Gn.requestAnimationFrame(()=>{e&&(e=!1,n())}),()=>{e=!1}}function P8(n){let e=!0;return queueMicrotask(()=>{e&&n()}),()=>{e=!1}}function R8(...n){}class vn{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Tn(!1),this.onMicrotaskEmpty=new Tn(!1),this.onStable=new Tn(!1),this.onError=ne
1w Tn(!1),typeof Zone>"u")throw new De(908,!1);Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&t,i.shouldCoalesceRunChangeDetection=r,i.callbackScheduled=!1,function M0e(n){const e=()=>{!function E0e(n){n.isCheckStableRunning||n.callbackScheduled||(n.callbackScheduled=!0,Zone.root.run(()=>{k8(()=>{n.callbackScheduled=!1,u2(n),n.isCheckStableRunning=!0,c2(n),n.isCheckStableRunning=!1})}),u2(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,i,s,o,a)=>{if(function I0e(n){return N8(n,"__ignore_ng_zone__")}(a))return t.invokeTask(i,s,o,a);try{return L8(n),t.invokeTask(i,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&e(),O8(n)}},onInvoke:(t,r,i,s,o,a,l)=>{try{return L8(n),t.invoke(i,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&!n.callbackScheduled&&!function D0e(n){return N8(n,"__scheduler_tick__")}(a)&&e(),O8(n)}},onHasTask:(t,r,i,s)=>{t.hasTask(i,s),r===i&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,u2(n),c2(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,r,i,s)=>(t.handleError(i,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!vn.isInAngularZone())throw new De(909,!1)}static assertNotInAngularZone(){if(vn.isInAngularZone())throw new De(909,!1)}run(e,t,r){return this._inner.run(e,t,r)}runTask(e,t,r,i){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+i,e,T0e,R8,R8);try{return s.runTask(o,t,r)}finally{s.cancelTask(o)}}runGuarded(e,t,r){return this._inner.runGuarded(e,t,r)}runOutsideAngular(e){return this._outer.run(e)}}const T0e={};function c2(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 u2(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&!0===n.callbackScheduled)}function L8(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function O8(n){n._nesting--,c2(n)}class d2{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Tn,this.onMicrotaskEmpty=new Tn,this.onStable=new Tn,this.onError=new Tn}run(e,t,r){return e.apply(t,r)}runGuarded(e,t,r){return e.apply(t,r)}runOutsideAngular(e){return e()}runTask(e,t,r,i){return e.apply(t,r)}}function N8(n,e){return!(!Array.isArray(n)||1!==n.length)&&!0===n[0]?.data?.[e]}var Qm=function(n){return n[n.EarlyRead=0]="EarlyRead",n[n.Write=1]="Write",n[n.MixedReadWrite=2]="MixedReadWrite",n[n.Read=3]="Read",n}(Qm||{});const F8={destroy(){}};function f2(n,e){!e&&function Ky(n){if(!AS())throw new De(-203,!1)}();const t=e?.injector??Le(ts);if(!function Zl(n){return"browser"===(n??Le(ts)).get(La)}(t))return F8;_l("NgAfterNextRender");const r=t.get(EE),i=r.handler??=new U8,s=e?.phase??Qm.MixedReadWrite,o=()=>{i.unregister(l),a()},a=t.get(dv).onDestroy(o),l=Sa(t,()=>new V8(s,()=>{o(),n()}));return i.register(l),{destroy:o}}class V8{constructor(e,t){this.phase=e,this.callbackFn=t,this.zone=Le(vn),this.errorHandler=Le(Xl,{optional:!0}),Le(Mv,{optional:!0})?.notify(6)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(e){this.errorHandler?.handleError(e)}}}class U8{constructor(){this.executingCallbacks=!1,this.buckets={[Qm.EarlyRead]:new Set,[Qm.Write]:new Set,[Qm.MixedReadWrite]:new Set,[Qm.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(const e of Object.values(this.buckets))for(const t of e)t.invoke();this.executingCallbacks=!1;for(const e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(const e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}}let EE=(()=>{class n{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const t=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const r of t)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=Be({token:n,providedIn:"root",factory:()=>new n})}return n})();
1function RA(n,e,t){let r=t?n.styles:null,i=t?n.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const a=e[o];"number"==typeof a?s=a:1==s?i=Md(i,a):2==s&&(r=Md(r,a+": "+e[++o]+";"))}t?n.styles=r:n.stylesWithoutHost=r,t?n.classes=i:n.classesWithoutHost=i}class B8 extends xA{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=pe(e);return new DE(t,this.ngModule)}}function H8(n){const e=[];for(const t in n){if(!n.hasOwnProperty(t))continue;const r=n[t];void 0!==r&&e.push({propName:Array.isArray(r)?r[0]:r,templateName:t})}return e}class LA{constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,r){r=_u(r);const i=this.injector.get(e,l2,r);return i!==l2||t===l2?i:this.parentInjector.get(e,t,r)}}class DE extends S8{get inputs(){const e=this.componentDef,t=e.inputTransforms,r=H8(e.inputs);if(null!==t)for(const i of r)t.hasOwnProperty(i.propName)&&(i.transform=t[i.propName]);return r}get outputs(){return H8(this.componentDef.outputs)}constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function Eu(n){return n.map(Rm).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}create(e,t,r,i){const s=F(null);try{let o=(i=i||this.ngModule)instanceof Hs?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const a=o?new LA(e,o):e,l=a.get(kA,null);if(null===l)throw new De(407,!1);const c=a.get(b0e,null),f={rendererFactory:l,sanitizer:c,inlineEffectRunner:null,afterRenderEventManager:a.get(EE,null),changeDetectionScheduler:a.get(Mv,null)},_=l.createRenderer(null,this.componentDef),w=this.componentDef.selectors[0][0]||"div",M=r?function Wye(n,e,t,r){const s=r.get(Z$,!1)||t===co.ShadowDom,o=n.selectRootElement(e,s);return function Gye(n){z9(n)}(o),o}(_,r,this.componentDef.encapsulation,a):gA(_,w,function k0e(n){const e=n.toLowerCase();return"svg"===e?YT:"math"===e?"math":null}(w));let S=512;this.componentDef.signals?S|=4096:this.componentDef.onPush||(S|=16);let O=null;null!==M&&(O=gN(M,a,!0));const N=zN(0,null,null,1,0,null,null,null,null,null,null),j=bA(null,N,null,S,null,null,f,_,a,null,O);let Z,ie;WO(j);try{const le=this.componentDef;let Q,B=null;le.findHostDirectiveDefs?(Q=[],B=new Map,le.findHostDirectiveDefs(le,Q,B),Q.push(le)):Q=[le];const J=function R0e(n,e){const t=n[nt],r=Ht;return n[r]=e,wv(t,r,2,"#host",null)}(j,M),oe=function L0e(n,e,t,r,i,s,o){const a=i[nt];!function O0e(n,e,t,r){for(const i of n)e.mergedAttrs=Sd(e.mergedAttrs,i.hostAttrs);null!==e.mergedAttrs&&(RA(e,e.mergedAttrs,!0),null!==t&&V9(r,t,e))}(r,n,e,o);let l=null;null!==e&&(l=gN(e,i[Hi]));const c=s.rendererFactory.createRenderer(e,t);let u=16;t.signals?u=4096:t.onPush&&(u=64);const d=bA(i,H9(t),null,u,i[n.index],n,s,c,null,null,l);return a.firstCreatePass&&qN(a,n,r.length-1),TA(i,d),i[n.index]=d}(J,M,le,Q,j,f,_);ie=Ld(N,Ht),M&&function F0e(n,e,t,r){if(r)Cc(n,t,["ng-version","18.0.2"]);else{const{attrs:i,classes:s}=function Mu(n){const e=[],t=[];let r=1,i=2;for(;r<n.length;){let s=n[r];if("string"==typeof s)2===i?""!==s&&e.push(s,n[++r]):8===i&&t.push(s);else{if(!uo(i))break;i=s}r++}return{attrs:e,classes:t}}(e.selectors[0]);i&&Cc(n,t,i),s&&s.length>0&&F9(n,t,s.join(" "))}}(_,le,M,r),void 0!==t&&function V0e(n,e,t){const r=n.projection=[];for(let i=0;i<e.length;i++){const s=t[i];r.push(null!=s?Array.from(s):null)}}(ie,this.ngContentSelectors,t),Z=function N0e(n,e,t,r,i,s){const o=Zn(),a=i[nt],l=dr(o,i);W9(a,i,o,t,null,r);for(let u=0;u<t.length;u++)xo($m(i,a,o.directiveStart+u,o),i);G9(a,i,o),l&&xo(l,i);const c=$m(i,a,o.directiveStart+o.componentOffset,o);if(n[kr]=i[kr]=c,null!==s)for(const u of s)u(c,e);return YN(a,o,i),c}(oe,le,Q,B,j,[U0e]),QN(N,j,null)}finally{GO()}return new P0e(this.componentType,Z,hv(ie,j),j,ie)}finally{F(s)}}}class P0e extends _0e{constructor(e,t,r,i,s){super(),this.location=r,this._rootLView=i,this._tNode=s,this.previousInputValues=null,this.instance=t,this.hostView=this.changeDetectorRef=new pE(i,void 0,!1),this.componentType=e}
vendor: 5,617 bytes, line 1
1setInput(e,t){const r=this._tNode.inputs;let i;if(null!==r&&(i=r[e])){if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),t))return;const s=this._rootLView;KN(s[nt],s,i,e,t),this.previousInputValues.set(e,t),fE(Li(this._tNode.index,s),1)}}get injector(){return new xs(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}function U0e(){const n=Zn();$S(Re()[nt],n)}let Rc=(()=>{class n{static#e=this.__NG_ELEMENT_ID__=j0e}return n})();function j0e(){return q8(Zn(),Re())}const Y0e=Rc,z8=class extends Y0e{constructor(e,t,r){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=r}get element(){return hv(this._hostTNode,this._hostLView)}get injector(){return new xs(this._hostTNode,this._hostLView)}get parentInjector(){const e=QS(this._hostTNode,this._hostLView);if(JO(e)){const t=KT(e,this._hostLView),r=GT(e);return new xs(t[nt].data[r+8],t)}return new xs(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=$8(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-Ri}createEmbeddedView(e,t,r){let i,s;"number"==typeof r?i=r:null!=r&&(i=r.index,s=r.injector);const a=e.createEmbeddedViewImpl(t||{},s,null);return this.insertImpl(a,i,Wm(this._hostTNode,null)),a}createComponent(e,t,r,i,s){const o=e&&!function Nm(n){return"function"==typeof n}(e);let a;if(o)a=t;else{const w=t||{};a=w.index,r=w.injector,i=w.projectableNodes,s=w.environmentInjector||w.ngModuleRef}const l=o?e:new DE(pe(e)),c=r||this.parentInjector;if(!s&&null==l.ngModule){const M=(o?c:this.parentInjector).get(Hs,null);M&&(s=M)}pe(l.componentType??{});const _=l.create(c,i,null,s);return this.insertImpl(_.hostView,a,Wm(this._hostTNode,null)),_}insert(e,t){return this.insertImpl(e,t,!0)}insertImpl(e,t,r){const i=e._lView;if(function VS(n){return $s(n[Ti])}(i)){const a=this.indexOf(e);if(-1!==a)this.detach(a);else{const l=i[Ti],c=new z8(l,l[Bi],l[Ti]);c.detach(c.indexOf(e))}}const s=this._adjustIndex(t),o=this._lContainer;return function Tv(n,e,t,r=!0){const i=e[nt];if(function Nye(n,e,t,r){const i=Ri+r,s=t.length;r>0&&(t[i-1][Aa]=e),r<s-Ri?(e[Aa]=t[i],jy(t,Ri+r,e)):(t.push(e),e[Aa]=null),e[Ti]=t;const o=e[kd];null!==o&&t!==o&&D9(o,e);const a=e[Ac];null!==a&&a.insertView(n),zT(e),e[Bt]|=128}(i,e,n,t),r){const o=VN(t,n),a=e[Qt],l=yA(a,n[Ql]);null!==l&&function Lye(n,e,t,r,i,s){r[xr]=i,r[Bi]=e,wA(n,r,t,1,i,s)}(i,n[Bi],a,e,l,o)}const s=e[zs];null!==s&&null!==s.firstChild&&(s.firstChild=null)}(o,i,s,r),e.attachToViewContainerRef(),jy(g2(o),s,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=$8(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),r=lE(this._lContainer,t);r&&(Co(g2(this._lContainer),t),_A(r[nt],r))}detach(e){const t=this._adjustIndex(e,-1),r=lE(this._lContainer,t);return r&&null!=Co(g2(this._lContainer),t)?new pE(r):null}_adjustIndex(e,t=0){return e??this.length+t}};function $8(n){return n[8]}function g2(n){return n[8]||(n[8]=[])}function q8(n,e){let t;const r=e[n.index];return $s(r)?t=r:(t=K9(r,e,null,n),e[n.index]=t,TA(e,t)),W8(t,e,n,r),new z8(t,n,e)}let W8=function K8(n,e,t,r){if(n[Ql])return;let i;i=8&t.type?Kn(r):function B0e(n,e){const t=n[Qt],r=t.createComment(""),i=dr(e,n);return qm(t,yA(t,i),r,function jye(n,e){return n.nextSibling(e)}(t,i),!1),r}(e,t),n[Ql]=i},_2=()=>!1;class y2{constructor(e){this.queryList=e,this.matches=null}clone(){return new y2(this.queryList)}setDirty(){this.queryList.setDirty()}}class v2{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const r=null!==e.contentQueries?e.contentQueries[0]:t.length,i=[];for(let s=0;s<r;s++){const o=t.getByIndex(s);i.push(this.queries[o.indexInDeclarationView].clone())}return new v2(i)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}finishViewCreation(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==M2(e,t).matches&&this.queries[t].setDirty()}}class Q8{constructor(e,t,r=null){this.flags=t,this.read=r,this.predicate="string"==typeof e?function Q0e(n){return n.split(",").map(e=>e.trim())}(e):e}}class w2{constructor(e=[]){this.queries=e}elementStart(e,t){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let r=0;r<this.length;r++){const i=null!==t?t.length:0,s=this.getByIndex(r).embeddedTView(e,i);s&&(s.indexInDeclarationView=r,null!==t?t.push(s):t=[s])}return null!==t?new w2(t):null}template(e,t){for(let r=0;r<this.queries.length;r++)this.queries[r].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class b2{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new b2(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1&~this.metadata.flags){const t=this._declarationNodeIndex;let r=e.parent;for(;null!==r&&8&r.type&&r.index!==t;)r=r.parent;return t===(null!==r?r.index:-1)}return this._appliesToNextNode}
1matchTNode(e,t){const r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){const s=r[i];this.matchTNodeWithReadOption(e,t,q0e(t,s)),this.matchTNodeWithReadOption(e,t,JS(t,e,s,!1,!1))}else r===jd?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,JS(t,e,r,!1,!1))}matchTNodeWithReadOption(e,t,r){if(null!==r){const i=this.metadata.read;if(null!==i)if(i===Qn||i===Rc||i===jd&&4&t.type)this.addMatch(t.index,-2);else{const s=JS(t,e,i,!1,!1);null!==s&&this.addMatch(t.index,s)}else this.addMatch(t.index,r)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function q0e(n,e){const t=n.localNames;if(null!==t)for(let r=0;r<t.length;r+=2)if(t[r]===e)return t[r+1];return null}function G0e(n,e,t,r){return-1===t?function W0e(n,e){return 11&n.type?hv(n,e):4&n.type?IA(n,e):null}(e,n):-2===t?function K0e(n,e,t){return t===Qn?hv(e,n):t===jd?IA(e,n):t===Rc?q8(e,n):void 0}(n,e,r):$m(n,n[nt],t,e)}function J8(n,e,t,r){const i=e[Ac].queries[r];if(null===i.matches){const s=n.data,o=t.matches,a=[];for(let l=0;null!==o&&l<o.length;l+=2){const c=o[l];a.push(c<0?null:G0e(e,s[c],o[l+1],t.metadata.read))}i.matches=a}return i.matches}function T2(n,e,t,r){const i=n.queries.getByIndex(t),s=i.matches;if(null!==s){const o=J8(n,e,i,t);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)r.push(o[a/2]);else{const c=s[a+1],u=e[-l];for(let d=Ri;d<u.length;d++){const f=u[d];f[kd]===f[Ti]&&T2(f[nt],f,c,r)}if(null!==u[ff]){const d=u[ff];for(let f=0;f<d.length;f++){const _=d[f];T2(_[nt],_,c,r)}}}}}return r}function X8(n,e,t){const r=new sN(!(4&~t));return function Jye(n,e,t,r){const i=J9(e);i.push(t),n.firstCreatePass&&X9(n).push(r,i.length-1)}(n,e,r,r.destroy),(e[Ac]??=new v2).queries.push(new y2(r))-1}function tq(n,e,t){null===n.queries&&(n.queries=new w2),n.queries.track(new b2(e,t))}function M2(n,e){return n.queries.getByIndex(e)}function nq(n,e){const t=n[nt],r=M2(t,e);return r.crossesNgTemplate?T2(t,n,e,[]):J8(t,n,r,e)}function sq(n){return function rq(n){return"function"==typeof n&&void 0!==n[L]}(n)&&"function"==typeof n.set}function Mn(n){let e=function gq(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),t=!0;const r=[n];for(;e;){let i;if(ml(n))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new De(903,!1);i=e.\u0275dir}if(i){if(t){r.push(i);const o=n;o.inputs=NA(n.inputs),o.inputTransforms=NA(n.inputTransforms),o.declaredInputs=NA(n.declaredInputs),o.outputs=NA(n.outputs);const a=i.hostBindings;a&&hwe(n,a);const l=i.viewQuery,c=i.contentQueries;if(l&&uwe(n,l),c&&dwe(n,c),lwe(n,i),$h(n.outputs,i.outputs),ml(i)&&i.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(i.data.animation)}}const s=i.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(n),a===Mn&&(t=!1)}}e=Object.getPrototypeOf(e)}!function cwe(n){let e=0,t=null;for(let r=n.length-1;r>=0;r--){const i=n[r];i.hostVars=e+=i.hostVars,i.hostAttrs=Sd(i.hostAttrs,t=Sd(t,i.hostAttrs))}}(r)}function lwe(n,e){for(const t in e.inputs){if(!e.inputs.hasOwnProperty(t)||n.inputs.hasOwnProperty(t))continue;const r=e.inputs[t];if(void 0!==r&&(n.inputs[t]=r,n.declaredInputs[t]=e.declaredInputs[t],null!==e.inputTransforms)){const i=Array.isArray(r)?r[0]:r;if(!e.inputTransforms.hasOwnProperty(i))continue;n.inputTransforms??={},n.inputTransforms[i]=e.inputTransforms[i]}}}function NA(n){return n===ra?{}:n===En?[]:n}function uwe(n,e){const t=n.viewQuery;n.viewQuery=t?(r,i)=>{e(r,i),t(r,i)}:e}function dwe(n,e){const t=n.contentQueries;n.contentQueries=t?(r,i,s)=>{e(r,i,s),t(r,i,s)}:e}function hwe(n,e){const t=n.hostBindings;n.hostBindings=t?(r,i)=>{e(r,i),t(r,i)}:e}class Jm{}class bq{}class D2 extends Jm{constructor(e,t,r){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new B8(this);const i=Ln(e);this._bootstrapComponents=gl(i.bootstrap),this._r3Injector=v$(e,t,[{provide:Jm,useValue:this},{provide:xA,useValue:this.componentFactoryResolver},...r],Pi(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){const e=this._r3Injector;
vendor: 11,858 bytes, line 1
1!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class C2 extends bq{constructor(e){super(),this.moduleType=e}create(e){return new D2(this.moduleType,e,[])}}class Tq extends Jm{constructor(e){super(),this.componentFactoryResolver=new B8(this),this.instance=null;const t=new Sc([...e.providers,{provide:Jm,useValue:this},{provide:xA,useValue:this.componentFactoryResolver}],e.parent||Lm(),e.debugName,new Set(["environment"]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}}function FA(n,e,t=null){return new Tq({providers:n,parent:e,debugName:t,runEnvironmentInitializers:!0}).injector}let Yd=(()=>{class n{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new je(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function UA(n){return!!S2(n)&&(Array.isArray(n)||!(n instanceof Map)&&Symbol.iterator in n)}function S2(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function ku(n,e,t){return n[e]=t}function ns(n,e,t){return!Object.is(n[e],t)&&(n[e]=t,!0)}function AE(n,e,t,r,i,s,o,a,l,c){const u=t+Ht,d=e.firstCreatePass?function Iwe(n,e,t,r,i,s,o,a,l){const c=e.consts,u=wv(e,n,4,o||null,a||null);$N(e,t,u,ka(c,l)),$S(e,u);const d=u.tView=zN(2,u,r,i,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c,null);return null!==e.queries&&(e.queries.template(e,u),d.queries=e.queries.embeddedTView(u)),u}(u,e,n,r,i,s,o,a,l):e.data[u];Jl(d,!1);const f=Mq(e,n,d,t);qT()&&vA(e,n,f,d),xo(f,n);const _=K9(f,n,f,d);return n[u]=_,TA(n,_),function G8(n,e,t){return _2(n,e,t)}(_,d,n),ev(d)&&BN(e,n,d),null!=l&&HN(n,d,c),d}function Oi(n,e,t,r,i,s,o,a){const l=Re(),c=yn();return AE(l,c,n,e,t,r,i,ka(c.consts,s),o,a),Oi}let Mq=function Iq(n,e,t,r){return Cu(!0),e[Qt].createComment("")};function Na(n,e,t,r){const i=Re();return ns(i,kc(),e)&&(yn(),Au(qr(),i,n,e,t,r)),Na}function Lv(n,e,t,r){return ns(n,kc(),t)?e+Wt(t)+r:ln}function qA(n,e){return n<<17|e<<2}function Ef(n){return n>>17&32767}function V2(n){return 2|n}function eg(n){return(131068&n)>>2}function U2(n,e){return-131069&n|e<<2}function j2(n){return 1|n}function n7(n,e,t,r){const i=n[t+1],s=null===e;let o=r?Ef(i):eg(i),a=!1;for(;0!==o&&(!1===a||s);){const c=n[o+1];dbe(n[o],e)&&(a=!0,n[o+1]=r?j2(c):V2(c)),o=r?Ef(c):eg(c)}a&&(n[t+1]=r?V2(i):j2(i))}function dbe(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&Wl(n,e)>=0}const ks={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function r7(n){return n.substring(ks.key,ks.keyEnd)}function i7(n,e){const t=ks.textEnd;return t===e?-1:(e=ks.keyEnd=function mbe(n,e,t){for(;e<t&&n.charCodeAt(e)>32;)e++;return e}(n,ks.key=e,t),Bv(n,e,t))}function Bv(n,e,t){for(;e<t&&n.charCodeAt(e)<=32;)e++;return e}function ht(n,e,t){const r=Re();return ns(r,kc(),e)&&Oa(yn(),qr(),r,n,e,r[Qt],t,!1),ht}function Y2(n,e,t,r,i){const o=i?"class":"style";KN(n,t,e.inputs[o],o,r)}function WA(n,e,t){return Lc(n,e,t,!1),WA}function GA(n,e){return Lc(n,e,null,!0),GA}function Ru(n,e){for(let t=function fbe(n){return function o7(n){ks.key=0,ks.keyEnd=0,ks.value=0,ks.valueEnd=0,ks.textEnd=n.length}(n),i7(n,Bv(n,0,ks.textEnd))}(e);t>=0;t=i7(e,t))Bs(n,r7(e),!0)}function Lc(n,e,t,r){const i=Re(),s=yn(),o=Fd(2);s.firstUpdatePass&&u7(s,n,o,r),e!==ln&&ns(i,o,e)&&h7(s,s.data[Ao()],i,i[Qt],n,i[o+1]=function Cbe(n,e){return null==n||""===n||("string"==typeof e?n+=e:"object"==typeof n&&(n=Pi(yf(n)))),n}(e,t),r,o)}function c7(n,e){return e>=n.expandoStartIndex}function u7(n,e,t,r){const i=n.data;if(null===i[t+1]){const s=i[Ao()],o=c7(n,t);p7(s,r)&&null===e&&!o&&(e=!1),e=function wbe(n,e,t,r){const i=function $O(n){const e=k.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let s=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(t=RE(t=B2(null,n,e,t,r),e.attrs,r),s=null);else{const o=e.directiveStylingLast;if(-1===o||n[o]!==i)if(t=B2(i,n,e,t,r),null===s){let l=function bbe(n,e,t){const r=t?e.classBindings:e.styleBindings;if(0!==eg(r))return n[Ef(r)]}(n,e,r);void 0!==l&&Array.isArray(l)&&(l=B2(null,n,e,l[1],r),l=RE(l,e.attrs,r),function Tbe(n,e,t,r){n[Ef(t?e.classBindings:e.styleBindings)]=r}(n,e,r,l))}else s=function Ebe(n,e,t){let r;const i=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<i;s++)r=RE(r,n[s].hostAttrs,t);return RE(r,e.attrs,t)}(n,e,r)}return void 0!==s&&(r?e.residualClasses=s:e.residualStyles=s),t}(i,s,e,r),function cbe(n,e,t,r,i,s){let o=s?e.classBindings:e.styleBindings,a=Ef(o),l=eg(o);n[r]=t;let u,c=!1;if(Array.isArray(t)?(u=t[1],(null===u||Wl(t,u)>0)&&(c=!0)):u=t,i)if(0!==l){const f=Ef(n[a+1]);n[r+1]=qA(f,a),0!==f&&(n[f+1]=U2(n[f+1],r)),n[a+1]=function abe(n,e){return 131071&n|e<<17}(n[a+1],r)}else n[r+1]=qA(a,0),0!==a&&(n[a+1]=U2(n[a+1],r)),a=r;else n[r+1]=qA(l,0),0===a?a=r:n[l+1]=U2(n[l+1],r),l=r;c&&(n[r+1]=V2(n[r+1])),n7(n,u,r,!0),n7(n,u,r,!1),function ube(n,e,t,r,i){const s=i?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof e&&Wl(s,e)>=0&&(t[r+1]=j2(t[r+1]))}(e,u,n,r,s),o=qA(a,l),s?e.classBindings=o:e.styleBindings=o}(i,s,e,t,o,r)}}function B2(n,e,t,r,i){let s=null;const o=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a<o&&(s=e[a],r=RE(r,s.hostAttrs,i),s!==n);)a++;return null!==n&&(t.directiveStylingLast=a),r}function RE(n,e,t){const r=t?1:2;let i=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?i=o:i===r&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),Bs(n,o,!!t||e[++s]))}return void 0===n?null:n}function h7(n,e,t,r,i,s,o,a){if(!(3&e.type))return;const l=n.data,c=l[a+1],u=function lbe(n){return!(1&~n)}(c)?f7(l,e,t,i,eg(c),o):void 0;KA(u)||(KA(s)||function obe(n){return!(2&~n)}(c)&&(s=f7(l,null,t,i,a,o)),function Hye(n,e,t,r,i){if(e)i?n.addClass(t,r):n.removeClass(t,r);else{let s=-1===r.indexOf("-")?void 0:vf.DashCase;null==i?n.removeStyle(t,r,s):("string"==typeof i&&i.endsWith("!important")&&(i=i.slice(0,-10),s|=vf.Important),n.setStyle(t,r,i,s))}}(r,o,mf(Ao(),t),i,s))}function f7(n,e,t,r,i,s){const o=null===e;let a;for(;i>0;){const l=n[i],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let f=t[i+1];f===ln&&(f=d?En:void 0);let _=d?ef(f,r):u===r?f:void 0;if(c&&!KA(_)&&(_=ef(l,r)),KA(_)&&(a=_,o))return a;const w=n[i+1];i=o?Ef(w):eg(w)}if(null!==e){let l=s?e.residualClasses:e.residualStyles;null!=l&&(a=ef(l,r))}return a}function KA(n){return void 0!==n}function p7(n,e){return!!(n.flags&(e?8:16))}function LE(n,e,t){!function Oc(n,e,t,r){const i=yn(),s=Fd(2);i.firstUpdatePass&&u7(i,null,s,r);const o=Re();if(t!==ln&&ns(o,s,t)){const a=i.data[Ao()];if(p7(a,r)&&!c7(i,s)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(t=Md(l,t||"")),Y2(i,a,o,t,r)}else!function Dbe(n,e,t,r,i,s,o,a){i===ln&&(i=En);let l=0,c=0,u=0<i.length?i[0]:null,d=0<s.length?s[0]:null;for(;null!==u||null!==d;){const f=l<i.length?i[l+1]:void 0,_=c<s.length?s[c+1]:void 0;let M,w=null;u===d?(l+=2,c+=2,f!==_&&(w=d,M=_)):null===d||null!==u&&u<d?(l+=2,w=u):(c+=2,w=d,M=_),null!==w&&h7(n,e,t,r,w,M,o,a),u=l<i.length?i[l]:null,d=c<s.length?s[c]:null}}(i,a,o,o[Qt],o[s+1],o[s+1]=function Mbe(n,e,t){if(null==t||""===t)return En;const r=[],i=yf(t);if(Array.isArray(i))for(let s=0;s<i.length;s++)n(r,i[s],!0);else if("object"==typeof i)for(const s in i)i.hasOwnProperty(s)&&n(r,s,i[s]);else"string"==typeof i&&e(r,i);return r}(n,e,t),r,s)}}(Bs,Ru,Lv(Re(),n,e,t),!0)}function Y(n,e,t,r){const i=Re(),s=yn(),o=Ht+n,a=i[Qt],l=s.firstCreatePass?function Kbe(n,e,t,r,i,s){const o=e.consts,l=wv(e,n,2,r,ka(o,i));return $N(e,t,l,ka(o,s)),null!==l.attrs&&RA(l,l.attrs,!1),null!==l.mergedAttrs&&RA(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(o,s,i,e,t,r):s.data[o],c=y7(s,i,l,a,e,n);i[o]=c;const u=ev(l);return Jl(l,!0),V9(a,c,l),!function Dv(n){return!(32&~n.flags)}(l)&&qT()&&vA(s,i,c,l),0===function ot(){return k.lFrame.elementDepthCount}()&&xo(c,i),function It(){k.lFrame.elementDepthCount++}(),u&&(BN(s,i,l),YN(s,l,i)),null!==r&&HN(i,l),Y}function H(){let n=Zn();BO()?HO():(n=n.parent,Jl(n,!1));const e=n;(function av(n){return k.skipHydrationRootTNode===n})(e)&&function BS(){k.skipHydrationRootTNode=null}(),function Dt(){k.lFrame.elementDepthCount--}();const t=yn();return t.firstCreatePass&&($S(t,n),Zy(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function $ge(n){return!!(8&n.flags)}(e)&&Y2(t,e,Re(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function qge(n){return!!(16&n.flags)}(e)&&Y2(t,e,Re(),e.stylesWithoutHost,!1),H}function ze(n,e,t,r){return Y(n,e,t,r),H(),ze}let y7=(n,e,t,r,i,s)=>(Cu(!0),gA(r,i,function e$(){return k.lFrame.currentNamespace}()));function Hv(n,e,t){const r=Re(),i=yn(),s=n+Ht,o=i.firstCreatePass?function Xbe(n,e,t,r,i){const s=e.consts,o=ka(s,r),a=wv(e,n,8,"ng-container",o);return null!==o&&RA(a,o,!0),$N(e,t,a,ka(s,i)),null!==e.queries&&e.queries.elementStart(e,a),a}(s,i,r,e,t):i.data[s];Jl(o,!0);const a=w7(i,r,o,n);return r[s]=a,qT()&&vA(i,r,a,o),xo(a,r),ev(o)&&(BN(i,r,o),YN(i,o,r)),null!=t&&HN(r,o),Hv}function zv(){let n=Zn();const e=yn();return BO()?HO():(n=n.parent,Jl(n,!1)),e.firstCreatePass&&($S(e,n),Zy(n)&&e.queries.elementEnd(n)),zv}let w7=(n,e,t,r)=>(Cu(!0),RN(e[Qt],""));function Ei(){return Re()}const tg=void 0;var nTe=["en",[["a","p"],["AM","PM"],tg],[["AM","PM"],tg,tg],[["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"]],tg,[["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"]],tg,[["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}",tg,"{1} 'at' {0}",tg],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function tTe(n){const t=Math.floor(Math.abs(n)),r=n.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===r?1:5}];let $v={};function sa(n){const e=function rTe(n){return n.toLowerCase().replace(/_/g,"-")}(n);let t=M7(e);if(t)return t;const r=e.split("-")[0];if(t=M7(r),t)return t;if("en"===r)return nTe;throw new De(701,!1)}function M7(n){return n in $v||($v[n]=Gn.ng&&Gn.ng.common&&Gn.ng.common.locales&&Gn.ng.common.locales[n]),$v[n]}var Wr=function(n){return n[n.LocaleId=0]="LocaleId",n[n.DayPeriodsFormat=1]="DayPeriodsFormat",n[n.DayPeriodsStandalone=2]="DayPeriodsStandalone",n[n.DaysFormat=3]="DaysFormat",n[n.DaysStandalone=4]="DaysStandalone",n[n.MonthsFormat=5]="MonthsFormat",n[n.MonthsStandalone=6]="MonthsStandalone",n[n.Eras=7]="Eras",n[n.FirstDayOfWeek=8]="FirstDayOfWeek",n[n.WeekendRange=9]="WeekendRange",n[n.DateFormat=10]="DateFormat",n[n.TimeFormat=11]="TimeFormat",n[n.DateTimeFormat=12]="DateTimeFormat",n[n.NumberSymbols=13]="NumberSymbols",n[n.NumberFormats=14]="NumberFormats",n[n.CurrencyCode=15]="CurrencyCode",n[n.CurrencySymbol=16]="CurrencySymbol",n[n.CurrencyName=17]="CurrencyName",n[n.Currencies=18]="Currencies",n[n.Directionality=19]="Directionality",n[n.PluralCase=20]="PluralCase",n[n.E
1xtraData=21]="ExtraData",n}(Wr||{});const qv="en-US";let I7=qv;let z7=(n,e,t)=>{};function Qe(n,e,t,r){const i=Re(),s=yn(),o=Zn();return G2(s,i,i[Qt],o,n,e,r),Qe}function G2(n,e,t,r,i,s,o){const a=ev(r),c=n.firstCreatePass&&X9(n),u=e[kr],d=J9(e);let f=!0;if(3&r.type||o){const M=dr(r,e),S=o?o(M):M,O=d.length,N=o?Z=>o(Kn(Z[r.index])):r.index;let j=null;if(!o&&a&&(j=function $Te(n,e,t,r){const i=n.cleanup;if(null!=i)for(let s=0;s<i.length-1;s+=2){const o=i[s];if(o===t&&i[s+1]===r){const a=e[xd],l=i[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,e,i,r.index)),null!==j)(j.__ngLastListenerFn__||j).__ngNextListenerFn__=s,j.__ngLastListenerFn__=s,f=!1;else{s=G7(r,e,u,s),z7(M,i,s);const Z=t.listen(S,i,s);d.push(s,Z),c&&c.push(i,N,O,O+1)}}else s=G7(r,e,u,s);const _=r.outputs;let w;if(f&&null!==_&&(w=_[i])){const M=w.length;if(M)for(let S=0;S<M;S+=2){const ie=e[w[S]][w[S+1]].subscribe(s),le=d.length;d.push(s,ie),c&&c.push(i,r.index,le,-(le+1))}}}function W7(n,e,t,r){const i=F(null);try{return Ss(6,e,t),!1!==t(r)}catch(s){return EA(n,s),!1}finally{Ss(7,e,t),F(i)}}function G7(n,e,t,r){return function i(s){if(s===Function)return r;fE(n.componentOffset>-1?Li(n.index,e):e,5);let a=W7(e,t,r,s),l=i.__ngNextListenerFn__;for(;l;)a=W7(e,t,l,s)&&a,l=l.__ngNextListenerFn__;return a}}function tn(n=1){return function Vge(n){return(k.lFrame.contextLView=function US(n,e){for(;n>0;)e=e[cf],n--;return e}(n,k.lFrame.contextLView))[kr]}(n)}function jE(n,e,t){return YE(n,"",e,"",t),jE}function YE(n,e,t,r,i){const s=Re(),o=Lv(s,e,t,r);return o!==ln&&Oa(yn(),qr(),s,n,o,s[Qt],i,!1),YE}function K2(n,e,t,r){!function eq(n,e,t,r){const i=yn();if(i.firstCreatePass){const s=Zn();tq(i,new Q8(e,t,r),s.index),function J0e(n,e){const t=n.contentQueries||(n.contentQueries=[]);e!==(t.length?t[t.length-1]:-1)&&t.push(n.queries.length-1,e)}(i,n),!(2&~t)&&(i.staticContentQueries=!0)}return X8(i,Re(),t)}(n,e,t,r)}function Ps(n,e,t){!function Z8(n,e,t){const r=yn();return r.firstCreatePass&&(tq(r,new Q8(n,e,t),-1),!(2&~e)&&(r.staticViewQueries=!0)),X8(r,Re(),e)}(n,e,t)}function ss(n){const e=Re(),t=yn(),r=qO();zS(r+1);const i=M2(t,r);if(n.dirty&&function Bm(n){return!(4&~n[Bt])}(e)===!(2&~i.metadata.flags)){if(null===i.matches)n.reset([]);else{const s=nq(e,r);n.reset(s,E$),n.notifyOnChanges()}return!0}return!1}function os(){return function E2(n,e){return n[Ac].queries[e].queryList}(Re(),qO())}function wn(n){return function gf(n,e){return n[e]}(function Rge(){return k.lFrame.contextLView}(),Ht+n)}function re(n,e=""){const t=Re(),r=yn(),i=n+Ht,s=r.firstCreatePass?wv(r,i,1,e,null):r.data[i],o=hW(r,t,s,e,n);t[i]=o,qT()&&vA(r,t,o,s),Jl(s,!1)}let hW=(n,e,t,r,i)=>(Cu(!0),function PN(n,e){return n.createText(e)}(e[Qt],r));function Mi(n){return Lu("",n,""),Mi}function Lu(n,e,t){const r=Re(),i=Lv(r,n,e,t);return i!==ln&&function Ud(n,e,t){const r=mf(e,n);!function M9(n,e,t){n.setValue(e,t)}(n[Qt],r,t)}(r,Ao(),i),Lu}function hr(n,e,t){sq(e)&&(e=e());const r=Re();return ns(r,kc(),e)&&Oa(yn(),qr(),r,n,e,r[Qt],t,!1),hr}function yr(n,e){const t=sq(n);return t&&n.set(e),t}function fr(n,e){const t=Re(),r=yn(),i=Zn();return G2(r,t,t[Qt],i,n,e),fr}function Q2(n,e,t,r,i){if(n=qt(n),Array.isArray(n))for(let s=0;s<n.length;s++)Q2(n[s],e,t,r,i);else{const s=yn(),o=Re(),a=Zn();let l=Ad(n)?n:qt(n.provide);const c=SS(n),u=1048575&a.providerIndexes,d=a.directiveStart,f=a.providerIndexes>>20;if(Ad(n)||!n.multi){const _=new WT(c,i,_e),w=X2(l,e,i?u:u+f,d);-1===w?(eN(KS(a,o),s,l),J2(s,n,e.length),e.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),t.push(_),o.push(_)):(t[w]=_,o[w]=_)}else{const _=X2(l,e,u+f,d),w=X2(l,e,u,u+f),S=w>=0&&t[w];if(i&&!S||!i&&!(_>=0&&t[_])){eN(KS(a,o),s,l);const O=function pEe(n,e,t,r,i){const s=new WT(n,t,_e);return s.multi=[],s.index=e,s.componentProviders=0,bW(s,i,r&&!t),s}(i?fEe:hEe,t.length,i,r,c);!i&&S&&(t[w].providerFactory=O),J2(s,n,e.length,0),e.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),t.push(O),o.push(O)}else J2(s,n,_>-1?_:w,bW(t[i?w:_],c,!i&&r));!i&&r&&S&&t[w].componentProviders++}}}function J2(n,e,t,r){const i=Ad(e),s=function bO(n){return!!n.useClass}(e);if(i||s){const l=(s?qt(e.useClass):e).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!i&&e.multi){const u=c.indexOf(t);-1===u?c.push(t,[r,l]):c[u+1].push(r,l)}else c.push(t,l)}}}function bW(n,e,t){return t&&n.componentProviders++,n.multi.push(e)-1}function X2(n,e,t,r){for(let i=t;i<r;i++)if(e[i]===n)return i;return-1}function hEe(n,e,t,r){return Z2(this.multi,[])}function fEe(n,e,t,r){const i=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=$m(t,t[nt],this.providerFactory.index,r);s=a.slice(0,o),Z2(i,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],Z2(i,s);return s}function Z2(n,e){for(let t=0;t<n.length;t++)e.push((0,n[t])());return e}function Ii(n,e=[]){return t=>{t.providersResolver=(r,i)=>function dEe(n,e,t){const r=yn();if(r.firstCreatePass){const i=ml(n);Q2(t,r.data,r.blueprint,i,!0),Q2(e,r.data,r.blueprint,i,!1)}}(r,i?i(n):n,e)}}let mEe=(()=>{class n{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const r=zy(0,t.type),i=r.length>
10?FA([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,i)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=Be({token:n,providedIn:"environment",factory:()=>new n(ve(Hs))})}return n})();function TW(n){_l("NgStandalone"),n.getStandaloneInjector=e=>e.get(mEe).getOrCreateStandaloneInjector(n)}function as(n,e,t){const r=ia()+n,i=Re();return i[r]===ln?ku(i,r,t?e.call(t):e()):function SE(n,e){return n[e]}(i,r)}function IW(n,e,t,r){return function DW(n,e,t,r,i,s){const o=e+t;return ns(n,o,i)?ku(n,o+1,s?r.call(s,i):r(i)):function BE(n,e){const t=n[e];return t===ln?void 0:t}(n,o+1)}(Re(),ia(),n,e,t,r)}class Kv{constructor(e){this.full=e;const t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}}const eMe=new Kv("18.0.2");let qW=(()=>{class n{log(t){console.log(t)}warn(t){console.warn(t)}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"platform"})}return n})();const JW=new $e(""),r1=new $e("");let aF,sF=(()=>{class n{constructor(t,r,i){this._ngZone=t,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,aF||(function DMe(n){aF=n}(i),i.addToWindow(r)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{vn.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb()}});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,r,i){let s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),t()},r)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:i})}whenStable(t,r,i){if(i&&!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(t,r,i),this._runCallbacksIfReady()}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,r,i){return[]}static#e=this.\u0275fac=function(r){return new(r||n)(ve(vn),ve(oF),ve(r1))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac})}return n})(),oF=(()=>{class n{constructor(){this._applications=new Map}registerApplication(t,r){this._applications.set(t,r)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,r=!0){return aF?.findTestabilityInTree(this,t,r)??null}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"platform"})}return n})();function qE(n){return!!n&&"function"==typeof n.then}function XW(n){return!!n&&"function"==typeof n.subscribe}const lF=new $e("");let cF=(()=>{class n{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),this.appInits=Le(lF,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const i of this.appInits){const s=i();if(qE(s))t.push(s);else if(XW(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});t.push(o)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{r()}).catch(i=>{this.reject(i)}),0===t.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const i1=new $e("");function tG(n,e){return Array.isArray(e)?e.reduce(tG,n):{...n,...e}}let Nc=(()=>{class n{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Le(b$),this.afterRenderEffectManager=Le(EE),this.zonelessEnabled=Le(TE),this.externalTestViews=new Set,this.beforeRender=new ge,this.afterTick=new ge,this.componentTypes=[],this.components=[],this.isStable=Le(Yd).hasPendingTasks.pipe(st(t=>!t)),this._injector=Le(Hs)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,r){const i=t instanceof S8;if(!this._injector.get(cF).done)throw!i&&function nn(n){const e=pe(n)||rt(n)||Pt(n);return null!==e&&e.standalone}(t),new De(405,!1);let o;o=i?t:this._injector.get(xA).resolveComponentFactory(t),this.componentTypes.push(o.componentType);const a=function CMe(n){return n.isBoundToModule}(o)?void 0:this._injector.get(Jm),c=o.create(ts.NULL,[],r||o.selector,a),u=c.location.nativeElement,d=c.injector.get(JW,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),s1(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){this._tick(!0)}_tick(t){if(this._runningTick)throw new De(101,!1);const r=F(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(t)}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,F(r),this.afterTick.next()}}detectChangesInAttachedViews(t){let r=null;
1this._injector.destroyed||(r=this._injector.get(kA,null,{optional:!0}));let i=0;const s=this.afterRenderEffectManager;for(;i<10;){const o=0===i;if(t||!o){this.beforeRender.next(o);for(let{_lView:a,notifyErrorHandler:l}of this._views)AMe(a,l,o,this.zonelessEnabled)}else r?.begin?.(),r?.end?.();if(i++,s.executeInternalCallbacks(),!this.allViews.some(({_lView:a})=>Hm(a))&&(s.execute(),!this.allViews.some(({_lView:a})=>Hm(a))))break}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;s1(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(i1,[]);[...this._bootstrapListeners,...r].forEach(i=>i(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>s1(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new De(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function s1(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}function AMe(n,e,t,r){(t||Hm(n))&&MA(n,e,t&&!r?0:1)}class xMe{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}let rG=(()=>{class n{compileModuleSync(t){return new C2(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const r=this.compileModuleSync(t),s=gl(Ln(t).declarations).reduce((o,a)=>{const l=pe(a);return l&&o.push(new DE(l)),o},[]);return new xMe(r,s)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),RMe=(()=>{class n{constructor(){this.zone=Le(vn),this.changeDetectionScheduler=Le(Mv),this.applicationRef=Le(Nc)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function uF({ngZoneFactory:n,ignoreChangesOutsideZone:e}){return n??=()=>new vn(dF()),[{provide:vn,useFactory:n},{provide:Ia,multi:!0,useFactory:()=>{const t=Le(RMe,{optional:!0});return()=>t.initialize()}},{provide:Ia,multi:!0,useFactory:()=>{const t=Le(NMe);return()=>{t.initialize()}}},{provide:b$,useFactory:OMe},!0===e?{provide:C8,useValue:!0}:[]]}function OMe(){const n=Le(vn),e=Le(Xl);return t=>n.runOutsideAngular(()=>e.handleError(t))}function dF(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:n?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:n?.runCoalescing??!1}}let NMe=(()=>{class n{constructor(){this.subscription=new rr,this.initialized=!1,this.zone=Le(vn),this.pendingTasks=Le(Yd)}initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{vn.assertNotInAngularZone(),queueMicrotask(()=>{null!==t&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{vn.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),WE=(()=>{class n{constructor(){this.appRef=Le(Nc),this.taskService=Le(Yd),this.ngZone=Le(vn),this.zonelessEnabled=Le(TE),this.disableScheduling=Le(C8,{optional:!0}
1)??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new rr,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof d2||!this.zoneIsDefined)}notify(t){if(!this.zonelessEnabled&&5===t)return;switch(t){case 3:case 2:case 0:case 4:case 5:case 1:this.shouldRefreshViews=!0}if(!this.shouldScheduleTick())return;const r=this.useMicrotaskScheduler?P8:k8;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=r(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=r(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&vn.isInAngularZone())}tick(t){if(this.runningTick||this.appRef.destroyed)return;const r=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(t)},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(r),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,P8(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(r)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const t=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(t)}}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const Bd=new $e("",{providedIn:"root",factory:()=>Le(Bd,Gt.Optional|Gt.SkipSelf)||function FMe(){return typeof $localize<"u"&&$localize.locale||qv}()}),fF=new $e("");let aG=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const i=function C0e(n="zone.js",e){return"noop"===n?new d2:"zone.js"===n?new vn(e):n}(r?.ngZone,dF({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return i.run(()=>{const s=r?.ignoreChangesOutsideZone,o=function vwe(n,e,t){return new D2(n,e,t)}(t.moduleType,this.injector,[...uF({ngZoneFactory:()=>i,ignoreChangesOutsideZone:s}),{provide:Mv,useExisting:WE}]),a=o.injector.get(Xl,null);return i.runOutsideAngular(()=>{const l=i.onError.subscribe({next:c=>{a.handleError(c)}});o.onDestroy(()=>{s1(this._modules,o),l.unsubscribe()})}),function eG(n,e,t){try{const r=t();return qE(r)?r.catch(i=>{throw e.runOutsideAngular(()=>n.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>n.handleError(r)),r}}(a,i,()=>{const l=o.injector.get(cF);return l.runInitializers(),l.donePromise.then(()=>(function D7(n){"string"==typeof n&&(I7=n.toLowerCase().replace(/_/g,"-"))}(o.injector.get(Bd,qv)||qv),this._moduleDoBootstrap(o),o))})})}bootstrapModule(t,r=[]){const i=tG({},r);return function PMe(n,e,t){const r=new C2(t);return Promise.resolve(r)}(0,0,t).then(s=>this.bootstrapModuleFactory(s,i))}_moduleDoBootstrap(t){const r=t.injector.get(Nc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!t.instance.ngDoBootstrap)throw new De(-403,!1);t.instance.ngDoBootstrap(r)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new De(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get(fF,null);t&&(t.forEach(r=>r()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(r){return new(r||n)(ve(ts))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"platform"})}return n})(),Mf=null;const lG=new $e("");function cG(n,e,t=[]){const r=`Platform: ${e}`,i=new $e(r);return(s=[])=>{let o=pF();if(!o||o.injector.get(lG,!1)){const a=[...t,...s,{provide:i,useValue:!0}];n?n(a):function jMe(n){if(Mf&&!Mf.get(lG,!1))throw new De(400,!1);(function ZW(){!function Me(n){Fr=n}(()=>{throw new De(600,!1)})})(),Mf=n;const e=n.get(aG);(function dG(n){n.get(H$,null)?.forEach(t=>t())})(n)}(function uG(n=[],e){return ts.create({name:e,providers:[{provide:AT,useValue:"platform"},{provide:fF,useValue:new Set([()=>Mf=null])},...n]})}(a,r))}return function YMe(n){const e=pF();if(!e)throw new De(401,!1);return e}()}}function pF(){return Mf?.get(aG)??null}let Ou=(()=>{class n{static#e=this.__NG_ELEMENT_ID__=HMe}return n})();function HMe(n){return function zMe(n,e,t){if(xc(n)&&!t){const r=Li(n.index,e);return new pE(r,r)}return 47&n.type?new pE(e[li],e):null}(Zn(),Re(),!(16&~n))}class _G{constructor(){}supports(e){return UA(e)}create(e){return new KMe(e)}}const GMe=(n,e)=>e;class KMe{constructor(e){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=e||GMe}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,r=this._removalsHead,i=0,s=null;for(;t||r;){const o=!r||t&&t.currentIndex<vG(r,i,s)?t:r,a=vG(o,i,s),l=o.currentIndex;if(o===r)i--,r=r._nextRemoved;else if(t=t._next,null==o.previousIndex)i++;else{s||(s=[]);const c=a-i,u=l-i;if(c!=u){for(let f=0;f<c;f++){const _=f<s.length?s[f]:s[f]=0,w=_+f;u<=w&&w<c&&(s[f]=_+1)}s[o.previousIndex]=u-c}}a!==l&&e(o,a,l)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!UA(e))throw new De(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let i,s,o,t=this._itHead,r=!1;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)s=e[a],o=this._trackByFn(a,s),null!==t&&Object.is(t.trackById,o)?(r&&(t=this._verifyReinsertion(t,s,o,a)),Object.is(t.
vendor: 4,435 bytes, line 1
1item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,o,a),r=!0),t=t._next}else i=0,function Ewe(n,e){if(Array.isArray(n))for(let t=0;t<n.length;t++)e(n[t]);else{const t=n[Symbol.iterator]();let r;for(;!(r=t.next()).done;)e(r.value)}}(e,a=>{o=this._trackByFn(i,a),null!==t&&Object.is(t.trackById,o)?(r&&(t=this._verifyReinsertion(t,a,o,i)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,o,i),r=!0),t=t._next,i++}),this.length=i;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,r,i){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,i)):e=this._addAfter(new QMe(t,r),s,i),e}_verifyReinsertion(e,t,r,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==s?e=this._reinsertAfter(s,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}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(e,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const i=e._prevRemoved,s=e._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(e,t,r),this._addToMoves(e,r),e}_moveAfter(e,t,r){return this._unlink(e),this._insertAfter(e,t,r),this._addToMoves(e,r),e}_addAfter(e,t,r){return this._insertAfter(e,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,r){const i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new yG),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,r=e._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new yG),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class QMe{constructor(e,t){this.item=e,this.trackById=t,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 JMe{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let r;for(r=this._head;null!==r;
1r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){const t=e._prevDup,r=e._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class yG{constructor(){this.map=new Map}put(e){const t=e.trackById;let r=this.map.get(t);r||(r=new JMe,this.map.set(t,r)),r.add(e)}get(e,t){const i=this.map.get(e);return i?i.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function vG(n,e,t){const r=n.previousIndex;if(null===r)return r;let i=0;return t&&r<t.length&&(i=t[r]),r+e+i}class wG{constructor(){}supports(e){return e instanceof Map||S2(e)}create(){return new XMe}}class XMe{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(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||S2(e)))throw new De(900,!1)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(r,i)=>{if(t&&t.key===i)this._maybeAddToChanges(t,r),this._appendAfter=t,t=t._next;else{const s=this._getOrCreateRecordForKey(i,r);t=this._insertBeforeOrAppend(t,s)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let r=t;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const r=e._prev;return t._next=e,t._prev=r,e._prev=t,r&&(r._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const i=this._records.get(e);this._maybeAddToChanges(i,t);const s=i._prev,o=i._next;return s&&(s._next=o),o&&(o._prev=s),i._next=null,i._prev=null,i}const r=new ZMe(e);return this._records.set(e,r),r.currentValue=t,this._addToAdditions(r),r}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(r=>t(e[r],r))}}class ZMe{constructor(e){this.key=e,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 bG(){return new vF([new _G])}let vF=(()=>{class n{static#e=this.\u0275prov=Be({token:n,providedIn:"root",factory:bG});constructor(t){this.factories=t}static create(t,r){if(null!=r){const i=r.factories.slice();t=t.concat(i)}return new n(t)}static extend(t){return{provide:n,useFactory:r=>n.create(t,r||bG()),deps:[[n,new Cd,new an]]}}find(t){const r=this.factories.find(i=>i.supports(t));if(null!=r)return r;throw new De(901,!1)}}return n})();function TG(){return new c1([new wG])}let c1=(()=>{class n{static#e=this.\u0275prov=Be({token:n,providedIn:"root",factory:TG});constructor(t){this.factories=t}static create(t,r){if(r){const i=r.factories.slice();t=t.concat(i)}return new n(t)}static extend(t){return{provide:n,useFactory:r=>n.create(t,r||TG()),deps:[[n,new Cd,new an]]}}find(t){const r=this.factories.find(i=>i.supports(t));if(r)return r;throw new De(901,!1)}}return n})();const nIe=cG(null,"core",[]);let rIe=(()=>{class n{constructor(t){}static#e=this.\u0275fac=function(r){return new(r||n)(ve(Nc))};static#t=this.\u0275mod=A({type:n});static#n=this.\u0275inj=ai({})}return n})();function Qv(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}let QG=null;function If(){return QG}class qIe{}const aa=new $e("");let TF=(()=>{class n{historyGo(t){throw new Error("")}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:()=>Le(GIe),providedIn:"platform"})}return n})();const WIe=new $e("");let GIe=(()=>{class n extends TF{constructor(){super(),this._doc=Le(aa),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return If().getBaseHref(this._doc)}onPopState(t){const r=If().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){const r=If().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.removeEventListener("hashchange",t)}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(t){this._location.pathname=t}pushState(t,r,i){this._history.pushState(t,r,i)}replaceState(t,r,i){this._history.replaceState(t,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:()=>new n,providedIn:"platform"})}return n})();function EF(n,e){if(0==n.length)return e;if(0==e.length)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?n+e.substring(1):1==t?n+e:n+"/"+e}function JG(n){const e=n.match(/#|\?|$/),t=e&&e.index||n.length;return n.slice(0,t-("/"===n[t-1]?1:0))+n.slice(t)}function Hd(n){return n&&"?"!==n[0]?"?"+n:n}let rg=(()=>{class n{historyGo(t){throw new Error("")}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:()=>Le(ZG),providedIn:"root"})}return n})();const XG=new $e("");let ZG=(()=>{class n extends rg{constructor(t,r){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??Le(aa).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.on
1HashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return EF(this._baseHref,t)}path(t=!1){const r=this._platformLocation.pathname+Hd(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${r}${i}`:r}pushState(t,r,i,s){const o=this.prepareExternalUrl(i+Hd(s));this._platformLocation.pushState(t,r,o)}replaceState(t,r,i,s){const o=this.prepareExternalUrl(i+Hd(s));this._platformLocation.replaceState(t,r,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static#e=this.\u0275fac=function(r){return new(r||n)(ve(TF),ve(XG,8))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),KIe=(()=>{class n extends rg{constructor(t,r){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){const r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(t){const r=EF(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,i,s){let o=this.prepareExternalUrl(i+Hd(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,r,o)}replaceState(t,r,i,s){let o=this.prepareExternalUrl(i+Hd(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,r,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static#e=this.\u0275fac=function(r){return new(r||n)(ve(TF),ve(XG,8))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac})}return n})(),QE=(()=>{class n{constructor(t){this._subject=new Tn,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const r=this._locationStrategy.getBaseHref();this._basePath=function XIe(n){if(new RegExp("^(https?:)?//").test(n)){const[,t]=n.split(/\/\/[^\/]+/);return t}return n}(JG(eK(r))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+Hd(r))}normalize(t){return n.stripTrailingSlash(function JIe(n,e){if(!n||!e.startsWith(n))return e;const t=e.substring(n.length);return""===t||["/",";","?","#"].includes(t[0])?t:e}(this._basePath,eK(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r="",i=null){this._locationStrategy.pushState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Hd(r)),i)}replaceState(t,r="",i=null){this._locationStrategy.replaceState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Hd(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{const r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(i=>i(t,r))}subscribe(t,r,i){return this._subject.subscribe({next:t,error:r,complete:i})}static#e=this.normalizeQueryParams=Hd;static#t=this.joinWithSlash=EF;static#n=this.stripTrailingSlash=JG;static#r=this.\u0275fac=function(r){return new(r||n)(ve(rg))};static#i=this.\u0275prov=Be({token:n,factory:()=>function QIe(){return new QE(ve(rg))}(),providedIn:"root"})}return n})();function eK(n){return n.replace(/\/index.html$/,"")}var la=function(n){return n[n.Format=0]="Format",n[n.Standalone=1]="Standalone",n}(la||{}),jr=function(n){return n[n.Narrow=0]="Narrow",n[n.Abbreviated=1]="Abbreviated",n[n.Wide=2]="Wide",n[n.Short=3]="Short",n}(jr||{}),vl=function(n){return n[n.Short=0]="Short",n[n.Medium=1]="Medium",n[n.Long=2]="Long",n[n.Full=3]="Full",n}(vl||{});const vs={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function _1(n,e){return nc(sa(n)[Wr.DateFormat],e)}function y1(n,e){return nc(sa(n)[Wr.TimeFormat],e)}function v1(n,e){return nc(sa(n)[Wr.DateTimeFormat],e)}function tc(n,e){const t=sa(n),r=t[Wr.NumberSymbols][e];if(typeof r>"u"){if(e===vs.CurrencyDecimal)return t[Wr.NumberSymbols][vs.Decimal];if(e===vs.CurrencyGroup)return t[Wr.NumberSymbols][vs.Group]}return r}function nK(n){if(!n[Wr.ExtraData])throw new Error(`Missing extra locale data for the locale "${n[Wr.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function nc(n,e){for(let t=e;t>-1;t--)if(typeof n[t]<"u")return n[t];throw new Error("Locale data API: locale data undefined")}function IF(n){const[e,t]=n.split(":");return{hours:+e,minutes:+t}}const hDe=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,w1={}
vendor: 9,116 bytes, line 1
1,fDe=/((?:[^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 zd=function(n){return n[n.Short=0]="Short",n[n.ShortGMT=1]="ShortGMT",n[n.Long=2]="Long",n[n.Extended=3]="Extended",n}(zd||{}),ar=function(n){return n[n.FullYear=0]="FullYear",n[n.Month=1]="Month",n[n.Date=2]="Date",n[n.Hours=3]="Hours",n[n.Minutes=4]="Minutes",n[n.Seconds=5]="Seconds",n[n.FractionalSeconds=6]="FractionalSeconds",n[n.Day=7]="Day",n}(ar||{}),lr=function(n){return n[n.DayPeriods=0]="DayPeriods",n[n.Days=1]="Days",n[n.Months=2]="Months",n[n.Eras=3]="Eras",n}(lr||{});function pDe(n,e,t,r){let i=function EDe(n){if(sK(n))return n;if("number"==typeof n&&!isNaN(n))return new Date(n);if("string"==typeof n){if(n=n.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(n)){const[i,s=1,o=1]=n.split("-").map(a=>+a);return b1(i,s-1,o)}const t=parseFloat(n);if(!isNaN(n-t))return new Date(t);let r;if(r=n.match(hDe))return function MDe(n){const e=new Date(0);let t=0,r=0;const i=n[8]?e.setUTCFullYear:e.setFullYear,s=n[8]?e.setUTCHours:e.setHours;n[9]&&(t=Number(n[9]+n[10]),r=Number(n[9]+n[11])),i.call(e,Number(n[1]),Number(n[2])-1,Number(n[3]));const o=Number(n[4]||0)-t,a=Number(n[5]||0)-r,l=Number(n[6]||0),c=Math.floor(1e3*parseFloat("0."+(n[7]||0)));return s.call(e,o,a,l,c),e}(r)}const e=new Date(n);if(!sK(e))throw new Error(`Unable to convert "${n}" into a date`);return e}(n);e=$d(t,e)||e;let a,o=[];for(;e;){if(a=fDe.exec(e),!a){o.push(e);break}{o=o.concat(a.slice(1));const u=o.pop();if(!u)break;e=u}}let l=i.getTimezoneOffset();r&&(l=iK(r,l),i=function TDe(n,e,t){const r=t?-1:1,i=n.getTimezoneOffset();return function bDe(n,e){return(n=new Date(n.getTime())).setMinutes(n.getMinutes()+e),n}(n,r*(iK(e,i)-i))}(i,r,!0));let c="";return o.forEach(u=>{const d=function wDe(n){if(CF[n])return CF[n];let e;switch(n){case"G":case"GG":case"GGG":e=Gr(lr.Eras,jr.Abbreviated);break;case"GGGG":e=Gr(lr.Eras,jr.Wide);break;case"GGGGG":e=Gr(lr.Eras,jr.Narrow);break;case"y":e=ws(ar.FullYear,1,0,!1,!0);break;case"yy":e=ws(ar.FullYear,2,0,!0,!0);break;case"yyy":e=ws(ar.FullYear,3,0,!1,!0);break;case"yyyy":e=ws(ar.FullYear,4,0,!1,!0);break;case"Y":e=I1(1);break;case"YY":e=I1(2,!0);break;case"YYY":e=I1(3);break;case"YYYY":e=I1(4);break;case"M":case"L":e=ws(ar.Month,1,1);break;case"MM":case"LL":e=ws(ar.Month,2,1);break;case"MMM":e=Gr(lr.Months,jr.Abbreviated);break;case"MMMM":e=Gr(lr.Months,jr.Wide);break;case"MMMMM":e=Gr(lr.Months,jr.Narrow);break;case"LLL":e=Gr(lr.Months,jr.Abbreviated,la.Standalone);break;case"LLLL":e=Gr(lr.Months,jr.Wide,la.Standalone);break;case"LLLLL":e=Gr(lr.Months,jr.Narrow,la.Standalone);break;case"w":e=DF(1);break;case"ww":e=DF(2);break;case"W":e=DF(1,!0);break;case"d":e=ws(ar.Date,1);break;case"dd":e=ws(ar.Date,2);break;case"c":case"cc":e=ws(ar.Day,1);break;case"ccc":e=Gr(lr.Days,jr.Abbreviated,la.Standalone);break;case"cccc":e=Gr(lr.Days,jr.Wide,la.Standalone);break;case"ccccc":e=Gr(lr.Days,jr.Narrow,la.Standalone);break;case"cccccc":e=Gr(lr.Days,jr.Short,la.Standalone);break;case"E":case"EE":case"EEE":e=Gr(lr.Days,jr.Abbreviated);break;case"EEEE":e=Gr(lr.Days,jr.Wide);break;case"EEEEE":e=Gr(lr.Days,jr.Narrow);break;case"EEEEEE":e=Gr(lr.Days,jr.Short);break;case"a":case"aa":case"aaa":e=Gr(lr.DayPeriods,jr.Abbreviated);break;case"aaaa":e=Gr(lr.DayPeriods,jr.Wide);break;case"aaaaa":e=Gr(lr.DayPeriods,jr.Narrow);break;case"b":case"bb":case"bbb":e=Gr(lr.DayPeriods,jr.Abbreviated,la.Standalone,!0);break;case"bbbb":e=Gr(lr.DayPeriods,jr.Wide,la.Standalone,!0);break;case"bbbbb":e=Gr(lr.DayPeriods,jr.Narrow,la.Standalone,!0);break;case"B":case"BB":case"BBB":e=Gr(lr.DayPeriods,jr.Abbreviated,la.Format,!0);break;case"BBBB":e=Gr(lr.DayPeriods,jr.Wide,la.Format,!0);break;case"BBBBB":e=Gr(lr.DayPeriods,jr.Narrow,la.Format,!0);break;case"h":e=ws(ar.Hours,1,-12);break;case"hh":e=ws(ar.Hours,2,-12);break;case"H":e=ws(ar.Hours,1);break;case"HH":e=ws(ar.Hours,2);break;case"m":e=ws(ar.Minutes,1);break;case"mm":e=ws(ar.Minutes,2);break;case"s":e=ws(ar.Seconds,1);break;case"ss":e=ws(ar.Seconds,2);break;case"S":e=ws(ar.FractionalSeconds,1);break;case"SS":e=ws(ar.FractionalSeconds,2);break;case"SSS":e=ws(ar.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=E1(zd.Short);break;case"ZZZZZ":e=E1(zd.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=E1(zd.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=E1(zd.Long);break;default:return null}return CF[n]=e,e}(u);c+=d?d(i,t,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function b1(n,e,t){const r=new Date(0);return r.setFullYear(n,e,t),r.setHours(0,0,0),r}function $d(n,e){const t=function eDe(n){return sa(n)[Wr.LocaleId]}(n);if(w1[t]??={},w1[t][e])return w1[t][e];let r="";switch(e){case"shortDate":r=_1(n,vl.Short);break;case"mediumDate":r=_1(n,vl.Medium);break;case"longDate":r=_1(n,vl.Long);break;case"fullDate":r=_1(n,vl.Full);break;case"shortTime":r=y1(n,vl.Short);break;case"mediumTime":r=y1(n,vl.Medium);break;case"longTime":r=y1(n,vl.Long);break;case"fullTime":r=y1(n,vl.Full);break;case"short":const i=$d(n,"shortTime"),s=$d(n,"shortDate");r=T1(v1(n,vl.Short),[i,s]);break;case"medium":const o=$d(n,"mediumTime"),a=$d(n,"mediumDate");r=T1(v1(n,vl.Medium),[o,a]);break;case"long":const l=$d(n,"longTime"),c=$d(n,"longDate");r=T1(v1(n,vl.Long),[l,c]);break;case"full":const u=$d(n,"fullTime"),d=$d(n,"fullDate");r=T1(v1(n,vl.Full),[u,d])}return r&&(w1[t][e]=r),r}function T1(n,e){return e&&(n=n.replace(/\{([^}]+)}/g,function(t,r){return null!=e&&r in e?e[r]:t})),n}function Fc(n,e,t="-",r,i){let s="";(n<0||i&&n<=0)&&(i?n=1-n:(n=-n,s=t));let o=String(n);for(;o.length<e;)o="0"+o;return r&&(o=o.slice(o.length-e)),s+o}function ws(n,e,t=0,r=!1,i=!1){return function(s,o){let a=function gDe(n,e){switch(n){case ar.FullYear:return e.getFullYear();case ar.Month:return e.getMonth();case ar.Date:return e.getDate();case ar.Hours:return e.getHours();case ar.Minutes:return e.getMinutes();case ar.Seconds:return e.getSeconds();case ar.FractionalSeconds:return e.getMilliseconds();case ar.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${n}".`)}}(n,s);if((t>0||a>-t)&&(a+=t),n===ar.Hours)0===a&&-12===t&&(a=12);else if(n===ar.FractionalSeconds)return function mDe(n,e){return Fc(n,3).substring(0,e)}(a,e);const l=tc(o,vs.MinusSign);return Fc(a,e,l,r,i)}}function Gr(n,e,t=la.Format,r=!1){return function(i,s){return function _De(n,e,t,r,i,s){switch(t){case lr.Months:return function rDe(n,e,t){const r=sa(n),s=nc([r[Wr.MonthsFormat],r[Wr.MonthsStandalone]],e);return nc(s,t)}(e,i,r)[n.getMonth()];case lr.Days:return function nDe(n,e,t){const r=sa(n),s=nc([r[Wr.DaysFormat],r[Wr.DaysStandalone]],e);return nc(s,t)}(e,i,r)[n.getDay()];case lr.DayPeriods:const o=n.getHours(),a=n.getMinutes();if(s){const c=function aDe(n){const e=sa(n);return nK(e),(e[Wr.ExtraData][2]||[]).map(r=>"string"==typeof r?IF(r):[IF(r[0]),IF(r[1])])}(e),u=function lDe(n,e,t){const r=sa(n);nK(r);const s=nc([r[Wr.ExtraData][0],r[Wr.ExtraData][1]],e)||[];return nc(s,t)||[]}(e,i,r),d=c.findIndex(f=>{if(Array.isArray(f)){const[_,w]=f,M=o>=_.hours&&a>=_.minutes,S=o<w.hours||o===w.hours&&a<w.minutes;if(_.hours<w.hours){if(M&&S)return!0}else if(M||S)return!0}else if(f.hours===o&&f.minutes===a)return!0;return!1});if(-1!==d)return u[d]}return function tDe(n,e,t){const r=sa(n),s=nc([r[Wr.DayPeriodsFormat],r[Wr.DayPeriodsStandalone]],e);return nc(s,t)}(e,i,r)[o<12?0:1];case lr.Eras:return function iDe(n,e){return nc(sa(n)[Wr.Eras],e)}(e,r)[n.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${t}`)}}(i,s,n,e,t,r)}}function E1(n){return function(e,t,r){const i=-1*r,s=tc(t,vs.MinusSign),o=i>0?Math.floor(i/60):Math.ceil(i/60);switch(n){case zd.Short:return(i>=0?"+":"")+Fc(o,2,s)+Fc(Math.abs(i%60),2,s);case zd.ShortGMT:return"GMT"+(i>=0?"+":"")+Fc(o,1,s);case zd.Long:return"GMT"+(i>=0?"+":"")+Fc(o,2,s)+":"+Fc(Math.abs(i%60),2,s);case zd.Extended:return 0===r?"Z":(i>=0?"+":"")+Fc(o,2,s)+":"+Fc(Math.abs(i%60),2,s);default:throw new Error(`Unknown zone width "${n}"`)}}}const yDe=0,M1=4;function rK(n){const e=n.getDay(),t=0===e?-3:M1-e;return b1(n.getFullYear(),n.getMonth(),n.getDate()+t)}function DF(n,e=!1){return function(t,r){let i;if(e){const s=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,o=t.getDate();i=1+Math.floor((o+s)/7)}else{const s=rK(t),o=function vDe(n){const e=b1(n,yDe,1).getDay();return b1(n,0,1+(e<=M1?M1:M1+7)-e)}(s.getFullYear()),a=s.getTime()-o.getTime();i=1+Math.round(a/6048e5)}return Fc(i,n,tc(r,vs.MinusSign))}}function I1(n,e=!1){return function(t,r){return Fc(rK(t).getFullYear(),n,tc(r,vs.MinusSign),e)}}const CF={};function iK(n,e){n=n.replace(/:/g,"");const t=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(t)?e:t}function sK(n){return n instanceof Date&&!isNaN(n.valueOf())}function cK(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const r=t.indexOf("="),[i,s]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}
1class VDe{constructor(e,t,r,i){this.$implicit=e,this.ngForOf=t,this.index=r,this.count=i}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 ig=(()=>{class n{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,r,i){this._viewContainer=t,this._template=r,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const r=this._viewContainer;t.forEachOperation((i,s,o)=>{if(null==i.previousIndex)r.createEmbeddedView(this._template,new VDe(i.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)r.remove(null===s?void 0:s);else if(null!==s){const a=r.get(s);r.move(a,o),hK(a,i)}});for(let i=0,s=r.length;i<s;i++){const a=r.get(i).context;a.index=i,a.count=s,a.ngForOf=this._ngForOf}t.forEachIdentityChange(i=>{hK(r.get(i.currentIndex),i)})}static ngTemplateContextGuard(t,r){return!0}static#e=this.\u0275fac=function(r){return new(r||n)(_e(Rc),_e(jd),_e(vF))};static#t=this.\u0275dir=V({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return n})();function hK(n,e){n.context.$implicit=e.item}let sg=(()=>{class n{constructor(t,r){this._viewContainer=t,this._context=new UDe,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){fK("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){fK("ngIfElse",t),this._elseTemplateRef=t,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(t,r){return!0}static#e=this.\u0275fac=function(r){return new(r||n)(_e(Rc),_e(jd))};static#t=this.\u0275dir=V({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return n})();class UDe{constructor(){this.$implicit=null,this.ngIf=null}}function fK(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${Pi(e)}'.`)}let og=(()=>{class n{constructor(t,r,i){this._ngEl=t,this._differs=r,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,r){const[i,s]=t.split("."),o=-1===i.indexOf("-")?void 0:vf.DashCase;null!=r?this._renderer.setStyle(this._ngEl.nativeElement,i,s?`${r}${s}`:r,o):this._renderer.removeStyle(this._ngEl.nativeElement,i,o)}_applyChanges(t){t.forEachRemovedItem(r=>this._setStyle(r.key,null)),t.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),t.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static#e=this.\u0275fac=function(r){return new(r||n)(_e(Qn),_e(c1),_e(xu))};static#t=this.\u0275dir=V({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return n})();const eCe=new $e(""),tCe=new $e("");let mK=(()=>{class n{constructor(t,r,i){this.locale=t,this.defaultTimezone=r,this.defaultOptions=i}transform(t,r,i,s){if(null==t||""===t||t!=t)return null;try{return pDe(t,r??this.defaultOptions?.dateFormat??"mediumDate",s||this.locale,i??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(o){throw function Vc(n,e){return new De(2100,!1)}()}}static#e=this.\u0275fac=function(r){return new(r||n)(_e(Bd,16),_e(eCe,24),_e(tCe,24))};static#t=this.\u0275pipe=ae({name:"date",type:n,pure:!0,standalone:!0})}return n})(),_K=(()=>{class n{static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275mod=A({type:n});static#n=this.\u0275inj=ai({})}return n})();const yK="browser";function vK(n){return n===yK}function C1(n){return"server"===n}let hCe=(()=>{class n{static#e=this.\u0275prov=Be({token:n,providedIn:"root",factory:()=>vK(Le(La))?new fCe(Le(aa),window):new mCe})}return n})();class fCe{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){const t=function pCe(n,e){const t=n.getElementById(e)||n.getElementsByName(e)[0];if(t)return t;if("function"==typeof n.createTreeWalker&&n.body&&"function"==typeof n.body.attachShadow){const r=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let i=r.currentNode;for(;i;){const s=i.shadowRoot;if(s){const o=s.getElementById(e)||s.querySelector(`[name="${e}"]`);if(o)return o}i=r.nextNode()}}return null}(this.document,e);
1t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){const t=e.getBoundingClientRect(),r=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(r-s[0],i-s[1])}}class mCe{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}}class wK{}class HCe extends qIe{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class UF extends HCe{static makeCurrent(){!function $Ie(n){QG??=n}(new UF)}onAndCancel(e,t,r){return e.addEventListener(t,r),()=>{e.removeEventListener(t,r)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function zCe(){return eM=eM||document.querySelector("base"),eM?eM.getAttribute("href"):null}();return null==t?null:function $Ce(n){return new URL(n,document.baseURI).pathname}(t)}resetBaseElement(){eM=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return cK(document.cookie,e)}}let eM=null,WCe=(()=>{class n{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac})}return n})();const jF=new $e("");let AK=(()=>{class n{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(i=>{i.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,i){return this._findPluginFor(r).addEventListener(t,r,i)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(s=>s.supports(t)),!r)throw new De(5101,!1);return this._eventNameToPlugin.set(t,r),r}static#e=this.\u0275fac=function(r){return new(r||n)(ve(jF),ve(vn))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac})}return n})();class xK{constructor(e){this._doc=e}}const YF="ng-app-id";let kK=(()=>{class n{constructor(t,r,i,s={}){this.doc=t,this.appId=r,this.nonce=i,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=C1(s),this.resetHostNodes()}addStyles(t){for(const r of t)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(t){for(const r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){const r=this.styleRef;r.get(t)?.elements?.forEach(i=>i.remove()),r.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${YF}="${this.appId}"]`);if(t?.length){const r=new Map;return t.forEach(i=>{null!=i.textContent&&r.set(i.textContent,i)}),r}return null}changeUsageCount(t,r){const i=this.styleRef;if(i.has(t)){const s=i.get(t);return s.usage+=r,s.usage}return i.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){const i=this.styleNodesInDOM,s=i?.get(r);if(s?.parentNode===t)return i.delete(r),s.removeAttribute(YF),s;{const o=this.doc.createElement("style");return this.nonce&&o.setAttribute("nonce",this.nonce),o.textContent=r,this.platformIsServer&&o.setAttribute(YF,this.appId),t.appendChild(o),o}}addStyleToHost(t,r){const i=this.getStyleElement(t,r),s=this.styleRef,o=s.get(r)?.elements;o?o.push(i):s.set(r,{elements:[i],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static#e=this.\u0275fac=function(r){return new(r||n)(ve(aa),ve(XT),ve(cN,8),ve(La))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac})}return n})();const BF={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/Math/MathML"},HF=/%COMP%/g,JCe=new $e("",{providedIn:"root",factory:()=>!0});function RK(n,e){return e.map(t=>t.replace(HF,n))}let zF=(()=>{class n{constructor(t,r,i,s,o,a,l,c=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=o,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=C1(a),this.defaultRenderer=new $F(t,o,l,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===co.ShadowDom&&(r={...r,encapsulation:co.Emulated});const i=this.getOrCreateRenderer(t,r);
vendor: 1,770 bytes, line 1
1return i instanceof OK?i.applyToHost(t):i instanceof qF&&i.applyStyles(),i}getOrCreateRenderer(t,r){const i=this.rendererByCompId;let s=i.get(r.id);if(!s){const o=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case co.Emulated:s=new OK(l,c,r,this.appId,u,o,a,d);break;case co.ShadowDom:return new tSe(l,c,t,r,o,a,this.nonce,d);default:s=new qF(l,c,r,u,o,a,d)}i.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(r){return new(r||n)(ve(AK),ve(kK),ve(XT),ve(JCe),ve(aa),ve(La),ve(vn),ve(cN))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac})}return n})();class $F{constructor(e,t,r,i){this.eventManager=e,this.doc=t,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,t){return t?this.doc.createElementNS(BF[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(LK(e)?e.content:e).appendChild(t)}insertBefore(e,t,r){e&&(LK(e)?e.content:e).insertBefore(t,r)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let r="string"==typeof e?this.doc.querySelector(e):e;if(!r)throw new De(-5104,!1);return t||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,r,i){if(i){t=i+":"+t;const s=BF[i];s?e.setAttributeNS(s,t,r):e.setAttribute(t,r)}else e.setAttribute(t,r)}removeAttribute(e,t,r){if(r){const i=BF[r];i?e.removeAttributeNS(i,t):e.removeAttribute(`${r}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}
1setStyle(e,t,r,i){i&(vf.DashCase|vf.Important)?e.style.setProperty(t,r,i&vf.Important?"important":""):e.style[t]=r}removeStyle(e,t,r){r&vf.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,r){null!=e&&(e[t]=r)}setValue(e,t){e.nodeValue=t}listen(e,t,r){if("string"==typeof e&&!(e=If().getGlobalEventTarget(this.doc,e)))throw new Error(`Unsupported event target ${e} for event ${t}`);return this.eventManager.addEventListener(e,t,this.decoratePreventDefault(r))}decoratePreventDefault(e){return t=>{if("__ngUnwrap__"===t)return e;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>e(t)):e(t))&&t.preventDefault()}}}function LK(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class tSe extends $F{constructor(e,t,r,i,s,o,a,l){super(e,s,o,l),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=RK(i.id,i.styles);for(const u of c){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,r){return super.insertBefore(this.nodeOrShadowRoot(e),t,r)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class qF extends $F{constructor(e,t,r,i,s,o,a,l){super(e,s,o,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=i,this.styles=l?RK(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class OK extends qF{constructor(e,t,r,i,s,o,a,l){const c=i+"-"+r.id;super(e,t,r,s,o,a,l,c),this.contentAttr=function XCe(n){return"_ngcontent-%COMP%".replace(HF,n)}(c),this.hostAttr=function ZCe(n){return"_nghost-%COMP%".replace(HF,n)}(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,t){const r=super.createElement(e,t);return super.setAttribute(r,this.contentAttr,""),r}}let nSe=(()=>{class n extends xK{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,i){return t.addEventListener(r,i,!1),()=>this.removeEventListener(t,r,i)}removeEventListener(t,r,i){return t.removeEventListener(r,i)}static#e=this.\u0275fac=function(r){return new(r||n)(ve(aa))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac})}return n})();const NK=["alt","control","meta","shift"],rSe={"\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"},iSe={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let sSe=(()=>{class n extends xK{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,r,i){const s=n.parseEventName(r),o=n.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>If().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const r=t.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const s=n._normalizeKey(r.pop());let o="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),o="code."),NK.forEach(c=>{const u=r.indexOf(c);u>-1&&(r.splice(u,1),o+=c+".")}),o+=s,0!=r.length||0===s.length)return null;const l={};return l.domEventName=i,l.fullKey=o,l}static matchEventFullKeyCode(t,r){let i=rSe[t.key]||t.key,s="";return r.indexOf("code.")>-1&&(i=t.code,s="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),NK.forEach(o=>{o!==i&&(0,iSe[o])(t)&&(s+=o+".")}),s+=i,s===r)}static eventCallback(t,r,i){return s=>{n.matchEventFullKeyCode(s,t)&&i.runGuarded(()=>r(s))}}static _normalizeKey(t){return"esc"===t?"escape":t}static#e=this.\u0275fac=function(r){return new(r||n)(ve(aa))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac})}return n})();const UK=[{provide:La,useValue:yK},{provide:H$,useValue:function oSe(){UF.makeCurrent()},multi:!0},{provide:aa,useFactory:function lSe(){return function L_e(n){lN=n}(document),document},deps:[]}],cSe=cG(nIe,"browser",UK),uSe=new $e(""),jK=[{provide:r1,useClass:class qCe{addToWindow(e){Gn.getAngularTestability=(r,i=!0)=>{const s=e.findTestabilityInTree(r,i);if(null==s)throw new De(5103,!1);return s},Gn.getAllAngularTestabilities=()=>e.getAllTestabilities(),Gn.getAllAngularRootElements=()=>e.getAllRootElements(),Gn.frameworkStabilizers||(Gn.frameworkStabilizers=[]),Gn.frameworkStabilizers.push(r=>{const i=Gn.getAllAngularTestabilities();let s=i.length;const o=function(){s--,0==s&&r()};
1i.forEach(a=>{a.whenStable(o)})})}findTestabilityInTree(e,t,r){return null==t?null:e.getTestability(t)??(r?If().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null)}},deps:[]},{provide:JW,useClass:sF,deps:[vn,oF,r1]},{provide:sF,useClass:sF,deps:[vn,oF,r1]}],YK=[{provide:AT,useValue:"root"},{provide:Xl,useFactory:function aSe(){return new Xl},deps:[]},{provide:jF,useClass:nSe,multi:!0,deps:[aa,vn,La]},{provide:jF,useClass:sSe,multi:!0,deps:[aa]},zF,kK,AK,{provide:kA,useExisting:zF},{provide:wK,useClass:WCe,deps:[]},[]];let BK=(()=>{class n{constructor(t){}static withServerTransition(t){return{ngModule:n,providers:[{provide:XT,useValue:t.appId}]}}static#e=this.\u0275fac=function(r){return new(r||n)(ve(uSe,12))};static#t=this.\u0275mod=A({type:n});static#n=this.\u0275inj=ai({providers:[...YK,...jK],imports:[_K,rIe]})}return n})(),dSe=(()=>{class n{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}static#e=this.\u0275fac=function(r){return new(r||n)(ve(aa))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var ee=$(467);function $K(n){return!!n&&(n instanceof Wn||on(n.lift)&&on(n.subscribe))}var Xv=$(1635);const qK=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function WK(n){return on(n?.then)}function GK(n){return on(n[Ji])}function KK(n){return Symbol.asyncIterator&&on(n?.[Symbol.asyncIterator])}function QK(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const JK=function mSe(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function XK(n){return on(n?.[JK])}function ZK(n){return(0,Xv.AQ)(this,arguments,function*(){const t=n.getReader();try{for(;;){const{value:r,done:i}=yield(0,Xv.N3)(t.read());if(i)return yield(0,Xv.N3)(void 0);yield yield(0,Xv.N3)(r)}}finally{t.releaseLock()}})}function eQ(n){return on(n?.getReader)}function Va(n){if(n instanceof Wn)return n;if(null!=n){if(GK(n))return function gSe(n){return new Wn(e=>{const t=n[Ji]();if(on(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(qK(n))return function _Se(n){return new Wn(e=>{for(let t=0;t<n.length&&!e.closed;t++)e.next(n[t]);e.complete()})}(n);if(WK(n))return function ySe(n){return new Wn(e=>{n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,fc)})}(n);if(KK(n))return tQ(n);if(XK(n))return function vSe(n){return new Wn(e=>{for(const t of n)if(e.next(t),e.closed)return;e.complete()})}(n);if(eQ(n))return function wSe(n){return tQ(ZK(n))}(n)}throw QK(n)}function tQ(n){return new Wn(e=>{(function bSe(n,e){var t,r,i,s;return(0,Xv.sH)(this,void 0,void 0,function*(){try{for(t=(0,Xv.xN)(n);!(r=yield t.next()).done;)if(e.next(r.value),e.closed)return}catch(o){i={error:o}}finally{try{r&&!r.done&&(s=t.return)&&(yield s.call(t))}finally{if(i)throw i.error}}e.complete()})})(n,e).catch(t=>e.error(t))})}function qd(n,e,t,r=0,i=!1){const s=e.schedule(function(){t(),i?n.add(this.schedule(null,r)):this.unsubscribe()},r);if(n.add(s),!i)return s}function Df(n,e=0){return Lt((t,r)=>{t.subscribe(Tt(r,i=>qd(r,n,()=>r.next(i),e),()=>qd(r,n,()=>r.complete(),e),i=>qd(r,n,()=>r.error(i),e)))})}function Zv(n,e=0){return Lt((t,r)=>{r.add(n.schedule(()=>t.subscribe(r),e))})}function nQ(n,e){if(!n)throw new Error("Iterable cannot be null");return new Wn(t=>{qd(t,e,()=>{const r=n[Symbol.asyncIterator]();qd(t,e,()=>{r.next().then(i=>{i.done?t.complete():t.next(i.value)})},0,!0)})})}function pr(n,e){return e?function CSe(n,e){if(null!=n){if(GK(n))return function TSe(n,e){return Va(n).pipe(Zv(e),Df(e))}(n,e);if(qK(n))return function MSe(n,e){return new Wn(t=>{let r=0;return e.schedule(function(){r===n.length?t.complete():(t.next(n[r++]),t.closed||this.schedule())})})}(n,e);if(WK(n))return function ESe(n,e){return Va(n).pipe(Zv(e),Df(e))}(n,e);if(KK(n))return nQ(n,e);if(XK(n))return function ISe(n,e){return new Wn(t=>{let r;return qd(t,e,()=>{r=n[JK](),qd(t,e,()=>{let i,s;try{({value:i,done:s}=r.next())}catch(o){return void t.error(o)}s?t.complete():t.next(i)},0,!0)}),()=>on(r?.return)&&r.return()})}(n,e);if(eQ(n))return function DSe(n,e){return nQ(ZK(n),e)}(n,e)}throw QK(n)}(n,e):Va(n)}function WF(n){return n[n.length-1]}function GF(n){return on(WF(n))?n.pop():void 0}function tM(n){return function SSe(n){return n&&on(n.schedule)}(WF(n))?n.pop():void 0}function jt(...n){return pr(n,tM(n))}const{isArray:xSe}=Array,{getPrototypeOf:kSe,prototype:PSe,keys:RSe}=Object;function rQ(n){if(1===n.length){const e=n[0];if(xSe(e))return{args:e,keys:null};if(function LSe(n){return n&&"object"==typeof n&&kSe(n)===PSe}(e)){const t=RSe(e);return{args:t.map(r=>e[r]),keys:t}}}return{args:n,keys:null}}const{isArray:OSe}=Array;function iQ(n){return st(e=>function NSe(n,e){return OSe(e)?n(...e):n(e)}(n,e))}function sQ(n,e){return n.reduce((t,r,i)=>(t[r]=e[i],t),{})}function KF(...n){const e=tM(n),t=GF(n),{args:r,keys:i}=rQ(n);if(0===r.length)return pr([],e);const s=new Wn(function FSe(n,e,t=Xi){return r=>{oQ(e,()=>{const{length:i}=n,s=new Array(i);let o=i,a=i;for(let l=0;l<i;l++)oQ(e,()=>{const c=pr(n[l],e);let u=!1;c.subscribe(Tt(r,d=>{s[l]=d,u||(u=!0,a--),a||r.next(t(s.slice()))},()=>{--o||r.complete()}
1))},r)},r)}}(r,e,i?o=>sQ(i,o):Xi));return t?s.pipe(iQ(t)):s}function oQ(n,e,t){n?qd(t,n,e):e()}const e0=gs(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"});function ko(n,e,t=1/0){return on(e)?ko((r,i)=>st((s,o)=>e(r,s,i,o))(Va(n(r,i))),t):("number"==typeof e&&(t=e),Lt((r,i)=>function VSe(n,e,t,r,i,s,o,a){const l=[];let c=0,u=0,d=!1;const f=()=>{d&&!l.length&&!c&&e.complete()},_=M=>c<r?w(M):l.push(M),w=M=>{s&&e.next(M),c++;let S=!1;Va(t(M,u++)).subscribe(Tt(e,O=>{i?.(O),s?_(O):e.next(O)},()=>{S=!0},void 0,()=>{if(S)try{for(c--;l.length&&c<r;){const O=l.shift();o?qd(e,o,()=>w(O)):w(O)}f()}catch(O){e.error(O)}}))};return n.subscribe(Tt(e,_,()=>{d=!0,f()})),()=>{a?.()}}(r,i,n,t)))}function t0(n=1/0){return ko(Xi,n)}function QF(...n){return function USe(){return t0(1)}()(pr(n,tM(n)))}function aQ(n){return new Wn(e=>{Va(n()).subscribe(e)})}function P1(n,e){const t=on(n)?n:()=>n,r=i=>i.error(t());return new Wn(e?i=>e.schedule(r,0,i):r)}const Uc=new Wn(n=>n.complete());function JF(){return Lt((n,e)=>{let t=null;n._refCount++;const r=Tt(e,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(t=null);const i=n._connection,s=t;t=null,i&&(!s||i===s)&&i.unsubscribe(),e.unsubscribe()});n.subscribe(r),r.closed||(t=n.connect())})}class lQ extends Wn{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,Mt(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new rr;const t=this.getSubject();e.add(this.source.subscribe(Tt(t,void 0,()=>{this._teardown(),t.complete()},r=>{this._teardown(),t.error(r)},()=>this._teardown()))),e.closed&&(this._connection=null,e=rr.EMPTY)}return e}refCount(){return JF()(this)}}function zi(n,e){return Lt((t,r)=>{let i=null,s=0,o=!1;const a=()=>o&&!i&&r.complete();t.subscribe(Tt(r,l=>{i?.unsubscribe();let c=0;const u=s++;Va(n(l,u)).subscribe(i=Tt(r,d=>r.next(e?e(l,d,u,c++):d),()=>{i=null,a()}))},()=>{o=!0,a()}))})}function lg(n){return n<=0?()=>Uc:Lt((e,t)=>{let r=0;e.subscribe(Tt(t,i=>{++r<=n&&(t.next(i),n<=r&&t.complete())}))})}function R1(...n){const e=tM(n);return Lt((t,r)=>{(e?QF(n,t,e):QF(n,t)).subscribe(r)})}function Ua(n,e){return Lt((t,r)=>{let i=0;t.subscribe(Tt(r,s=>n.call(e,s,i++)&&r.next(s)))})}function L1(n){return Lt((e,t)=>{let r=!1;e.subscribe(Tt(t,i=>{r=!0,t.next(i)},()=>{r||t.next(n),t.complete()}))})}function cQ(n=YSe){return Lt((e,t)=>{let r=!1;e.subscribe(Tt(t,i=>{r=!0,t.next(i)},()=>r?t.complete():t.error(n())))})}function YSe(){return new e0}function Cf(n,e){const t=arguments.length>=2;return r=>r.pipe(n?Ua((i,s)=>n(i,s,r)):Xi,lg(1),t?L1(e):cQ(()=>new e0))}function n0(n,e){return on(e)?ko(n,e,1):ko(n,1)}function Po(n,e,t){const r=on(n)||e||t?{next:n,error:e,complete:t}:n;return r?Lt((i,s)=>{var o;null===(o=r.subscribe)||void 0===o||o.call(r);let a=!0;i.subscribe(Tt(s,l=>{var c;null===(c=r.next)||void 0===c||c.call(r,l),s.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),s.complete()},l=>{var c;a=!1,null===(c=r.error)||void 0===c||c.call(r,l),s.error(l)},()=>{var l,c;a&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(c=r.finalize)||void 0===c||c.call(r)}))}):Xi}function r0(n){return Lt((e,t)=>{let s,r=null,i=!1;r=e.subscribe(Tt(t,void 0,void 0,o=>{s=Va(n(o,r0(n)(e))),r?(r.unsubscribe(),r=null,s.subscribe(t)):i=!0})),i&&(r.unsubscribe(),r=null,s.subscribe(t))})}function s0(n,e){return Lt(function BSe(n,e,t,r,i){return(s,o)=>{let a=t,l=e,c=0;s.subscribe(Tt(o,u=>{const d=c++;l=a?n(l,u,d):(a=!0,u),r&&o.next(l)},i&&(()=>{a&&o.next(l),o.complete()})))}}(n,e,arguments.length>=2,!0))}function XF(n){return n<=0?()=>Uc:Lt((e,t)=>{let r=[];e.subscribe(Tt(t,i=>{r.push(i),n<r.length&&r.shift()},()=>{for(const i of r)t.next(i);t.complete()},void 0,()=>{r=null}))})}function nM(n){return Lt((e,t)=>{try{e.subscribe(t)}finally{t.add(n)}})}const bn="primary",rM=Symbol("RouteTitle");class qSe{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function o0(n){return new qSe(n)}function WSe(n,e,t){const r=t.path.split("/");if(r.length>n.length||"full"===t.pathMatch&&(e.hasChildren()||r.length<n.length))return null;const i={};for(let s=0;s<r.length;s++){const o=r[s],a=n[s];if(":"===o[0])i[o.substring(1)]=a;else if(o!==a.path)return null}return{consumed:n.slice(0,r.length),posParams:i}}function Nu(n,e){const t=n?ZF(n):void 0,r=e?ZF(e):void 0;if(!t||!r||t.length!=r.length)return!1;let i;for(let s=0;s<t.length;s++)if(i=t[s],!uQ(n[i],e[i]))return!1;return!0}function ZF(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}function uQ(n,e){if(Array.isArray(n)&&Array.isArray(e)){if(n.length!==e.length)return!1;const t=[...n].sort(),r=[...e].sort();return t.every((i,s)=>r[s]===i)}return n===e}function dQ(n){return n.length>0?n[n.length-1]:null}function Sf(n){return $K(n)?n:qE(n)?pr(Promise.resolve(n)):jt(n)}const KSe={exact:function pQ(n,e,t){if(!cg(n.segments,e.segments)||!O1(n.segments,e.segments,t)||n.numberOfChildren!==e.numberOfChildren)return!1;for(const r in e.children)if(!n.children[r]||!pQ(n.children[r],e.children[r],t))return!1;return!0},subset:mQ},hQ={exact:function QSe(n,e){return Nu(n,e)},subset:function JSe(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(t=>uQ(n[t],e[t]))},ignored:()=>!0};function fQ(n,e,t){return KSe[t.paths](n.root,e.root,t.matrixParams)&&hQ[t.queryParams](n.queryParams,e.queryParams)&&!("exact"===t.fragment&&n.fragment!==e.fragment)}function mQ(n,e,t){return gQ(n,e,e.segments,t)}function gQ(n,e,t,r){if(n.segments.length>t.length){const i=n.segments.slice(0,t.length);
1return!(!cg(i,t)||e.hasChildren()||!O1(i,t,r))}if(n.segments.length===t.length){if(!cg(n.segments,t)||!O1(n.segments,t,r))return!1;for(const i in e.children)if(!n.children[i]||!mQ(n.children[i],e.children[i],r))return!1;return!0}{const i=t.slice(0,n.segments.length),s=t.slice(n.segments.length);return!!(cg(n.segments,i)&&O1(n.segments,i,r)&&n.children[bn])&&gQ(n.children[bn],e,s,r)}}function O1(n,e,t){return e.every((r,i)=>hQ[t](n[i].parameters,r.parameters))}class a0{constructor(e=new Pr([],{}),t={},r=null){this.root=e,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap??=o0(this.queryParams),this._queryParamMap}toString(){return eAe.serialize(this)}}class Pr{constructor(e,t){this.segments=e,this.children=t,this.parent=null,Object.values(t).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return F1(this)}}class iM{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap??=o0(this.parameters),this._parameterMap}toString(){return vQ(this)}}function cg(n,e){return n.length===e.length&&n.every((t,r)=>t.path===e[r].path)}let l0=(()=>{class n{static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:()=>new N1,providedIn:"root"})}return n})();class N1{parse(e){const t=new dAe(e);return new a0(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){const t=`/${sM(e.root,!0)}`,r=function rAe(n){const e=Object.entries(n).map(([t,r])=>Array.isArray(r)?r.map(i=>`${V1(t)}=${V1(i)}`).join("&"):`${V1(t)}=${V1(r)}`).filter(t=>t);return e.length?`?${e.join("&")}`:""}(e.queryParams);return`${t}${r}${"string"==typeof e.fragment?`#${function tAe(n){return encodeURI(n)}(e.fragment)}`:""}`}}const eAe=new N1;function F1(n){return n.segments.map(e=>vQ(e)).join("/")}function sM(n,e){if(!n.hasChildren())return F1(n);if(e){const t=n.children[bn]?sM(n.children[bn],!1):"",r=[];return Object.entries(n.children).forEach(([i,s])=>{i!==bn&&r.push(`${i}:${sM(s,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}{const t=function ZSe(n,e){let t=[];return Object.entries(n.children).forEach(([r,i])=>{r===bn&&(t=t.concat(e(i,r)))}),Object.entries(n.children).forEach(([r,i])=>{r!==bn&&(t=t.concat(e(i,r)))}),t}(n,(r,i)=>i===bn?[sM(n.children[bn],!1)]:[`${i}:${sM(r,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[bn]?`${F1(n)}/${t[0]}`:`${F1(n)}/(${t.join("//")})`}}function _Q(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function V1(n){return _Q(n).replace(/%3B/gi,";")}function eV(n){return _Q(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function U1(n){return decodeURIComponent(n)}function yQ(n){return U1(n.replace(/\+/g,"%20"))}function vQ(n){return`${eV(n.path)}${function nAe(n){return Object.entries(n).map(([e,t])=>`;${eV(e)}=${eV(t)}`).join("")}(n.parameters)}`}const iAe=/^[^\/()?;#]+/;function tV(n){const e=n.match(iAe);return e?e[0]:""}const sAe=/^[^\/()?;=#]+/,aAe=/^[^=?&#]+/,cAe=/^[^&#]+/;class dAe{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Pr([],{}):new Pr([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(r[bn]=new Pr(e,t)),r}parseSegment(){const e=tV(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new De(4009,!1);return this.capture(e),new iM(U1(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=function oAe(n){const e=n.match(sAe);return e?e[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const i=tV(this.remaining);i&&(r=i,this.capture(r))}e[U1(t)]=U1(r)}parseQueryParam(e){const t=function lAe(n){const e=n.match(aAe);return e?e[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const o=function uAe(n){const e=n.match(cAe);return e?e[0]:""}(this.remaining);o&&(r=o,this.capture(r))}const i=yQ(t),s=yQ(r);if(e.hasOwnProperty(i)){let o=e[i];Array.isArray(o)||(o=[o],e[i]=o),o.push(s)}else e[i]=s}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=tV(this.remaining),i=this.remaining[r.length];if("/"!==i&&")"!==i&&";"!==i)throw new De(4010,!1);let s;r.indexOf(":")>-1?(s=r.slice(0,r.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=bn);const o=this.parseChildren();t[s]=1===Object.keys(o).length?o[bn]:new Pr([],o),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new De(4011,!1)}}function wQ(n){return n.segments.length>0?new Pr([],{[bn]:n}):n}function bQ(n){const e={};for(const[r,i]of Object.entries(n.children)){const s=bQ(i);if(r===bn&&0===s.segments.length&&s.hasChildren())for(const[o,a]of Object.entries(s.children))e[o]=a;else(s.segments.length>0||s.hasChildren())&&(e[r]=s)}return function hAe(n){if(1===n.numberOfChildren&&n.children[bn]){const e=n.children[bn];return new Pr(n.segments.concat(e.segments),e.children)}return n}(new Pr(n.segments,e))}function oM(n){return n instanceof a0}function TQ(n){let e;const i=wQ(function t(s){const o={};for(const l of s.children){const c=t(l);o[l.outlet]=c}const a=new Pr(s.url,o);return s===n&&(e=a),a}(n.root));return e??i}function EQ(n,e,t,r){let i=n;for(;i.parent;)i=i.parent;if(0===e.length)return nV(i,i,i,t,r);const s=function pAe(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new IQ(!0,0,n);let e=0,t=!1;const r=n.reduce((i,s,o)=>
1{if("object"==typeof s&&null!=s){if(s.outlets){const a={};return Object.entries(s.outlets).forEach(([l,c])=>{a[l]="string"==typeof c?c.split("/"):c}),[...i,{outlets:a}]}if(s.segmentPath)return[...i,s.segmentPath]}return"string"!=typeof s?[...i,s]:0===o?(s.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?t=!0:".."===a?e++:""!=a&&i.push(a))}),i):[...i,s]},[]);return new IQ(t,e,r)}(e);if(s.toRoot())return nV(i,i,new Pr([],{}),t,r);const o=function mAe(n,e,t){if(n.isAbsolute)return new Y1(e,!0,0);if(!t)return new Y1(e,!1,NaN);if(null===t.parent)return new Y1(t,!0,0);const r=j1(n.commands[0])?0:1;return function gAe(n,e,t){let r=n,i=e,s=t;for(;s>i;){if(s-=i,r=r.parent,!r)throw new De(4005,!1);i=r.segments.length}return new Y1(r,!1,i-s)}(t,t.segments.length-1+r,n.numberOfDoubleDots)}(s,i,n),a=o.processChildren?lM(o.segmentGroup,o.index,s.commands):DQ(o.segmentGroup,o.index,s.commands);return nV(i,o.segmentGroup,a,t,r)}function j1(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function aM(n){return"object"==typeof n&&null!=n&&n.outlets}function nV(n,e,t,r,i){let o,s={};r&&Object.entries(r).forEach(([l,c])=>{s[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`}),o=n===e?t:MQ(n,e,t);const a=wQ(bQ(o));return new a0(a,s,i)}function MQ(n,e,t){const r={};return Object.entries(n.children).forEach(([i,s])=>{r[i]=s===e?t:MQ(s,e,t)}),new Pr(n.segments,r)}class IQ{constructor(e,t,r){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=r,e&&r.length>0&&j1(r[0]))throw new De(4003,!1);const i=r.find(aM);if(i&&i!==dQ(r))throw new De(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Y1{constructor(e,t,r){this.segmentGroup=e,this.processChildren=t,this.index=r}}function DQ(n,e,t){if(n??=new Pr([],{}),0===n.segments.length&&n.hasChildren())return lM(n,e,t);const r=function yAe(n,e,t){let r=0,i=e;const s={match:!1,pathIndex:0,commandIndex:0};for(;i<n.segments.length;){if(r>=t.length)return s;const o=n.segments[i],a=t[r];if(aM(a))break;const l=`${a}`,c=r<t.length-1?t[r+1]:null;if(i>0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!SQ(l,c,o))return s;r+=2}else{if(!SQ(l,{},o))return s;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(n,e,t),i=t.slice(r.commandIndex);if(r.match&&r.pathIndex<n.segments.length){const s=new Pr(n.segments.slice(0,r.pathIndex),{});return s.children[bn]=new Pr(n.segments.slice(r.pathIndex),n.children),lM(s,0,i)}return r.match&&0===i.length?new Pr(n.segments,{}):r.match&&!n.hasChildren()?rV(n,e,t):r.match?lM(n,0,i):rV(n,e,t)}function lM(n,e,t){if(0===t.length)return new Pr(n.segments,{});{const r=function _Ae(n){return aM(n[0])?n[0].outlets:{[bn]:n}}(t),i={};if(Object.keys(r).some(s=>s!==bn)&&n.children[bn]&&1===n.numberOfChildren&&0===n.children[bn].segments.length){const s=lM(n.children[bn],e,t);return new Pr(n.segments,s.children)}return Object.entries(r).forEach(([s,o])=>{"string"==typeof o&&(o=[o]),null!==o&&(i[s]=DQ(n.children[s],e,o))}),Object.entries(n.children).forEach(([s,o])=>{void 0===r[s]&&(i[s]=o)}),new Pr(n.segments,i)}}function rV(n,e,t){const r=n.segments.slice(0,e);let i=0;for(;i<t.length;){const s=t[i];if(aM(s)){const l=vAe(s.outlets);return new Pr(r,l)}if(0===i&&j1(t[0])){r.push(new iM(n.segments[e].path,CQ(t[0]))),i++;continue}const o=aM(s)?s.outlets[bn]:`${s}`,a=i<t.length-1?t[i+1]:null;o&&a&&j1(a)?(r.push(new iM(o,CQ(a))),i+=2):(r.push(new iM(o,{})),i++)}return new Pr(r,{})}function vAe(n){const e={};return Object.entries(n).forEach(([t,r])=>{"string"==typeof r&&(r=[r]),null!==r&&(e[t]=rV(new Pr([],{}),0,r))}),e}function CQ(n){const e={};return Object.entries(n).forEach(([t,r])=>e[t]=`${r}`),e}function SQ(n,e,t){return n==t.path&&Nu(e,t.parameters)}const cM="imperative";var jn=function(n){return n[n.NavigationStart=0]="NavigationStart",n[n.NavigationEnd=1]="NavigationEnd",n[n.NavigationCancel=2]="NavigationCancel",n[n.NavigationError=3]="NavigationError",n[n.RoutesRecognized=4]="RoutesRecognized",n[n.ResolveStart=5]="ResolveStart",n[n.ResolveEnd=6]="ResolveEnd",n[n.GuardsCheckStart=7]="GuardsCheckStart",n[n.GuardsCheckEnd=8]="GuardsCheckEnd",n[n.RouteConfigLoadStart=9]="RouteConfigLoadStart",n[n.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",n[n.ChildActivationStart=11]="ChildActivationStart",n[n.ChildActivationEnd=12]="ChildActivationEnd",n[n.ActivationStart=13]="ActivationStart",n[n.ActivationEnd=14]="ActivationEnd",n[n.Scroll=15]="Scroll",n[n.NavigationSkipped=16]="NavigationSkipped",n}(jn||{});class Fu{constructor(e,t){this.id=e,this.url=t}}class B1 extends Fu{constructor(e,t,r="imperative",i=null){super(e,t),this.type=jn.NavigationStart,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Wd extends Fu{constructor(e,t,r){super(e,t),this.urlAfterRedirects=r,this.type=jn.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var wl=function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromRe
1solver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n}(wl||{}),H1=function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n}(H1||{});class ug extends Fu{constructor(e,t,r,i){super(e,t),this.reason=r,this.code=i,this.type=jn.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class c0 extends Fu{constructor(e,t,r,i){super(e,t),this.reason=r,this.code=i,this.type=jn.NavigationSkipped}}class iV extends Fu{constructor(e,t,r,i){super(e,t),this.error=r,this.target=i,this.type=jn.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class AQ extends Fu{constructor(e,t,r,i){super(e,t),this.urlAfterRedirects=r,this.state=i,this.type=jn.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wAe extends Fu{constructor(e,t,r,i){super(e,t),this.urlAfterRedirects=r,this.state=i,this.type=jn.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bAe extends Fu{constructor(e,t,r,i,s){super(e,t),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=s,this.type=jn.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}
1class TAe extends Fu{constructor(e,t,r,i){super(e,t),this.urlAfterRedirects=r,this.state=i,this.type=jn.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class EAe extends Fu{constructor(e,t,r,i){super(e,t),this.urlAfterRedirects=r,this.state=i,this.type=jn.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class MAe{constructor(e){this.route=e,this.type=jn.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class IAe{constructor(e){this.route=e,this.type=jn.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class DAe{constructor(e){this.snapshot=e,this.type=jn.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class CAe{constructor(e){this.snapshot=e,this.type=jn.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class SAe{constructor(e){this.snapshot=e,this.type=jn.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class AAe{constructor(e){this.snapshot=e,this.type=jn.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xQ{constructor(e,t,r){this.routerEvent=e,this.position=t,this.anchor=r,this.type=jn.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class sV{}class z1{constructor(e,t){this.url=e,this.navigationBehaviorOptions=t}}class xAe{constructor(e){this.injector=e,this.outlet=null,this.route=null,this.children=new uM(this.injector),this.attachRef=null}}let uM=(()=>{class n{constructor(t){this.parentInjector=t,this.contexts=new Map}onChildOutletCreated(t,r){const i=this.getOrCreateContext(t);i.outlet=r,this.contexts.set(t,i)}onChildOutletDestroyed(t){const r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new xAe(this.parentInjector),this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}static#e=this.\u0275fac=function(r){return new(r||n)(ve(Hs))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();class kQ{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=oV(e,this._root);return t?t.children.map(r=>r.value):[]}firstChild(e){const t=oV(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=aV(e,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return aV(e,this._root).map(t=>t.value)}}function oV(n,e){if(n===e.value)return e;for(const t of e.children){const r=oV(n,t);if(r)return r}return null}function aV(n,e){if(n===e.value)return[e];for(const t of e.children){const r=aV(n,t);if(r.length)return r.unshift(e),r}return[]}class jc{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function u0(n){const e={};return n&&n.children.forEach(t=>e[t.value.outlet]=t),e}class PQ extends kQ{constructor(e,t){super(e),this.snapshot=t,lV(this,e)}toString(){return this.snapshot.toString()}}function RQ(n){const e=function kAe(n){const s=new q1([],{},{},"",{},bn,n,null,{});return new LQ("",new jc(s,[]))}(n),t=new je([new iM("",{})]),r=new je({}),i=new je({}),s=new je({}),o=new je(""),a=new Af(t,r,s,o,i,bn,n,e.root);return a.snapshot=e.root,new PQ(new jc(a,[]),e)}class Af{constructor(e,t,r,i,s,o,a,l){this.urlSubject=e,this.paramsSubject=t,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(st(c=>c[rM]))??jt(void 0),this.url=e,this.params=t,this.queryParams=r,this.fragment=i,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(st(e=>o0(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(st(e=>o0(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function $1(n,e,t="emptyOnly"){let r;const{routeConfig:i}=n;return r=null===e||"always"!==t&&""!==i?.path&&(e.component||e.routeConfig?.loadComponent)?{params:{...n.params},data:{...n.data},resolve:{...n.data,...n._resolvedData??{}}}:{params:{...e.params,...n.params},data:{...e.data,...n.data},resolve:{...n.data,...e.data,...i?.data,...n._resolvedData}},i&&NQ(i)&&(r.resolve[rM]=i.title),r}class q1{get title(){return this.data?.[rM]}constructor(e,t,r,i,s,o,a,l,c){this.url=e,this.params=t,this.queryParams=r,this.fragment=i,this.data=s,this.outlet=o,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=o0(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=o0(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class LQ extends kQ{constructor(e,t){super(t),this.url=e,lV(this,t)}toString(){return OQ(this._root)}}
1function lV(n,e){e.value._routerState=n,e.children.forEach(t=>lV(n,t))}function OQ(n){const e=n.children.length>0?` { ${n.children.map(OQ).join(", ")} } `:"";return`${n.value}${e}`}function cV(n){if(n.snapshot){const e=n.snapshot,t=n._futureSnapshot;n.snapshot=t,Nu(e.queryParams,t.queryParams)||n.queryParamsSubject.next(t.queryParams),e.fragment!==t.fragment&&n.fragmentSubject.next(t.fragment),Nu(e.params,t.params)||n.paramsSubject.next(t.params),function GSe(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;++t)if(!Nu(n[t],e[t]))return!1;return!0}(e.url,t.url)||n.urlSubject.next(t.url),Nu(e.data,t.data)||n.dataSubject.next(t.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function uV(n,e){const t=Nu(n.params,e.params)&&function XSe(n,e){return cg(n,e)&&n.every((t,r)=>Nu(t.parameters,e[r].parameters))}(n.url,e.url);return t&&!(!n.parent!=!e.parent)&&(!n.parent||uV(n.parent,e.parent))}function NQ(n){return"string"==typeof n.title||null===n.title}let dV=(()=>{class n{constructor(){this.activated=null,this._activatedRoute=null,this.name=bn,this.activateEvents=new Tn,this.deactivateEvents=new Tn,this.attachEvents=new Tn,this.detachEvents=new Tn,this.parentContexts=Le(uM),this.location=Le(Rc),this.changeDetector=Le(Ou),this.inputBinder=Le(W1,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){const{firstChange:r,previousValue:i}=t.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new De(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new De(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new De(4012,!1);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new De(4013,!1);this._activatedRoute=t;const i=this.location,o=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new hV(t,a,i.injector);this.activated=i.createComponent(o,{index:i.length,injector:l,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275dir=V({type:n,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[or]})}return n})();class hV{__ngOutletInjector(e){return new hV(this.route,this.childContexts,e)}constructor(e,t,r){this.route=e,this.childContexts=t,this.parent=r}get(e,t){return e===Af?this.route:e===uM?this.childContexts:this.parent.get(e,t)}}const W1=new $e("");let FQ=(()=>{class n{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){const{activatedRoute:r}=t,i=KF([r.queryParams,r.params,r.data]).pipe(zi(([s,o,a],l)=>(a={...s,...o,...a},0===l?jt(a):Promise.resolve(a)))).subscribe(s=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(t);const o=function zIe(n){const e=pe(n);if(!e)return null;const t=new DE(e);return{get selector(){return t.selector},get type(){return t.componentType},get inputs(){return t.inputs},get outputs(){return t.outputs}
1,get ngContentSelectors(){return t.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}(r.component);if(o)for(const{templateName:a}of o.inputs)t.activatedComponentRef.setInput(a,s[a]);else this.unsubscribeFromRouteData(t)});this.outletDataSubscriptions.set(t,i)}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac})}return n})();function dM(n,e,t){if(t&&n.shouldReuseRoute(e.value,t.value.snapshot)){const r=t.value;r._futureSnapshot=e.value;const i=function RAe(n,e,t){return e.children.map(r=>{for(const i of t.children)if(n.shouldReuseRoute(r.value,i.value.snapshot))return dM(n,r,i);return dM(n,r)})}(n,e,t);return new jc(r,i)}{if(n.shouldAttach(e.value)){const s=n.retrieve(e.value);if(null!==s){const o=s.route;return o.value._futureSnapshot=e.value,o.children=e.children.map(a=>dM(n,a)),o}}const r=function LAe(n){return new Af(new je(n.url),new je(n.params),new je(n.queryParams),new je(n.fragment),new je(n.data),n.outlet,n.component,n)}(e.value),i=e.children.map(s=>dM(n,s));return new jc(r,i)}}class fV{constructor(e,t){this.redirectTo=e,this.navigationBehaviorOptions=t}}const VQ="ngNavigationCancelingError";function G1(n,e){const{redirectTo:t,navigationBehaviorOptions:r}=oM(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=UQ(!1,wl.Redirect);return i.url=t,i.navigationBehaviorOptions=r,i}function UQ(n,e){const t=new Error(`NavigationCancelingError: ${n||""}`);return t[VQ]=!0,t.cancellationCode=e,t}function jQ(n){return!!n&&n[VQ]}let YQ=(()=>{class n{static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275cmp=xt({type:n,selectors:[["ng-component"]],standalone:!0,features:[TW],decls:1,vars:0,template:function(r,i){1&r&&ze(0,"router-outlet")},dependencies:[dV],encapsulation:2})}return n})();function pV(n){const e=n.children&&n.children.map(pV),t=e?{...n,children:e}:{...n};return!t.component&&!t.loadComponent&&(e||t.loadChildren)&&t.outlet&&t.outlet!==bn&&(t.component=YQ),t}function Yc(n){return n.outlet||bn}function hM(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let e=n.parent;e;e=e.parent){const t=e.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class BAe{constructor(e,t,r,i,s){this.routeReuseStrategy=e,this.futureState=t,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=s}activate(e){const t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,e),cV(this.futureState.root),this.activateChildRoutes(t,r,e)}deactivateChildRoutes(e,t,r){const i=u0(t);e.children.forEach(s=>{const o=s.value.outlet;this.deactivateRoutes(s,i[o],r),delete i[o]}),Object.values(i).forEach(s=>{this.deactivateRouteAndItsChildren(s,r)})}deactivateRoutes(e,t,r){const i=e.value,s=t?t.value:null;if(i===s)if(i.component){const o=r.getContext(i.outlet);o&&this.deactivateChildRoutes(e,t,o.children)}else this.deactivateChildRoutes(e,t,r);else s&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(e,t){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const r=t.getContext(e.value.outlet),i=r&&e.value.component?r.children:t,s=u0(e);for(const o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);if(r&&r.outlet){const o=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:o,route:e,contexts:a})}}deactivateRouteAndOutlet(e,t){const r=t.getContext(e.value.outlet),i=r&&e.value.component?r.children:t,s=u0(e);for(const o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(e,t,r){const i=u0(t);e.children.forEach(s=>{this.activateRoutes(s,i[s.value.outlet],r),this.forwardEvent(new AAe(s.value.snapshot))}),e.children.length&&this.forwardEvent(new CAe(e.value.snapshot))}activateRoutes(e,t,r){const i=e.value,s=t?t.value:null;if(cV(i),i===s)if(i.component){const o=r.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,o.children)}else this.activateChildRoutes(e,t,r);else if(i.component){const o=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),cV(a.route.value),this.activateChildRoutes(e,null,o.children)}else{const a=hM(i.snapshot);o.attachRef=null,o.route=i,o.injector=a??o.injector,o.outlet&&o.outlet.activateWith(i,o.injector),this.activateChildRoutes(e,null,o.children)}}else this.activateChildRoutes(e,null,r)}}class BQ{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class K1{constructor(e,t){this.component=e,this.route=t}}function HAe(n,e,t){const r=n._root;return fM(r,e?e._root:null,t,[r.value])}function d0(n,e){const t=Symbol(),r=e.get(n,t);return r===t?"function"!=typeof n||function uT(n){return null!==qh(n)}(n)?e.get(n):n:r}function fM(n,e,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const s=u0(e);
1return n.children.forEach(o=>{(function $Ae(n,e,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const s=n.value,o=e?e.value:null,a=t?t.getContext(n.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function qAe(n,e,t){if("function"==typeof t)return t(n,e);switch(t){case"pathParamsChange":return!cg(n.url,e.url);case"pathParamsOrQueryParamsChange":return!cg(n.url,e.url)||!Nu(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!uV(n,e)||!Nu(n.queryParams,e.queryParams);default:return!uV(n,e)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new BQ(r)):(s.data=o.data,s._resolvedData=o._resolvedData),fM(n,e,s.component?a?a.children:null:t,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new K1(a.outlet.component,o))}else o&&pM(e,a,i),i.canActivateChecks.push(new BQ(r)),fM(n,null,s.component?a?a.children:null:t,r,i)})(o,s[o.value.outlet],t,r.concat([o.value]),i),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>pM(a,t.getContext(o),i)),i}function pM(n,e,t){const r=u0(n),i=n.value;Object.entries(r).forEach(([s,o])=>{pM(o,i.component?e?e.children.getContext(s):null:e,t)}),t.canDeactivateChecks.push(new K1(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}function mM(n){return"function"==typeof n}function HQ(n){return n instanceof e0||"EmptyError"===n?.name}const Q1=Symbol("INITIAL_VALUE");function h0(){return zi(n=>KF(n.map(e=>e.pipe(lg(1),R1(Q1)))).pipe(st(e=>{for(const t of e)if(!0!==t){if(t===Q1)return Q1;if(!1===t||ZAe(t))return t}return!0}),Ua(e=>e!==Q1),lg(1)))}function ZAe(n){return oM(n)||n instanceof fV}function zQ(n){return function gc(...n){return gt(n)}(Po(e=>{if("boolean"!=typeof e)throw G1(0,e)}),st(e=>!0===e))}class mV{constructor(e){this.segmentGroup=e||null}}class J1 extends Error{constructor(e){super(),this.urlTree=e}}function f0(n){return P1(new mV(n))}class h1e{constructor(e,t){this.urlSerializer=e,this.urlTree=t}lineralizeSegments(e,t){let r=[],i=t.root;for(;;){if(r=r.concat(i.segments),0===i.numberOfChildren)return jt(r);if(i.numberOfChildren>1||!i.children[bn])return P1(new De(4e3,!1));i=i.children[bn]}}applyRedirectCommands(e,t,r,i,s){if("string"!=typeof t){const a=t,{queryParams:l,fragment:c,routeConfig:u,url:d,outlet:f,params:_,data:w,title:M}=i,S=Sa(s,()=>a({params:_,data:w,queryParams:l,fragment:c,routeConfig:u,url:d,outlet:f,title:M}));if(S instanceof a0)throw new J1(S);t=S}const o=this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),e,r);if("/"===t[0])throw new J1(o);return o}applyRedirectCreateUrlTree(e,t,r,i){const s=this.createSegmentGroup(e,t.root,r,i);return new a0(s,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const r={};return Object.entries(e).forEach(([i,s])=>{if("string"==typeof s&&":"===s[0]){const a=s.substring(1);r[i]=t[a]}else r[i]=s}),r}createSegmentGroup(e,t,r,i){const s=this.createSegments(e,t.segments,r,i);let o={};return Object.entries(t.children).forEach(([a,l])=>{o[a]=this.createSegmentGroup(e,l,r,i)}),new Pr(s,o)}createSegments(e,t,r,i){return t.map(s=>":"===s.path[0]?this.findPosParam(e,s,i):this.findOrReturn(s,r))}findPosParam(e,t,r){const i=r[t.path.substring(1)];if(!i)throw new De(4001,!1);return i}findOrReturn(e,t){let r=0;for(const i of t){if(i.path===e.path)return t.splice(r),i;r++}return e}}const gV={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function f1e(n,e,t,r,i){const s=_V(n,e,t);return s.matched?(r=function NAe(n,e){return n.providers&&!n._injector&&(n._injector=FA(n.providers,e,`Route: ${n.path}`)),n._injector??e}(e,r),function c1e(n,e,t,r){const i=e.canMatch;return i&&0!==i.length?jt(i.map(o=>{const a=d0(o,n);return Sf(function XAe(n){return n&&mM(n.canMatch)}(a)?a.canMatch(e,t):Sa(n,()=>a(e,t)))})).pipe(h0(),zQ()):jt(!0)}(r,e,t).pipe(st(o=>!0===o?s:{...gV}))):jt(s)}function _V(n,e,t){if("**"===e.path)return function p1e(n){return{matched:!0,parameters:n.length>0?dQ(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}(t);if(""===e.path)return"full"===e.pathMatch&&(n.hasChildren()||t.length>0)?{...gV}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const i=(e.matcher||WSe)(t,n,e);if(!i)return{...gV};const s={};Object.entries(i.posParams??{}
1).forEach(([a,l])=>{s[a]=l.path});const o=i.consumed.length>0?{...s,...i.consumed[i.consumed.length-1].parameters}:s;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:o,positionalParamSegments:i.posParams??{}}}function $Q(n,e,t,r){return t.length>0&&function _1e(n,e,t){return t.some(r=>X1(n,e,r)&&Yc(r)!==bn)}(n,t,r)?{segmentGroup:new Pr(e,g1e(r,new Pr(t,n.children))),slicedSegments:[]}:0===t.length&&function y1e(n,e,t){return t.some(r=>X1(n,e,r))}(n,t,r)?{segmentGroup:new Pr(n.segments,m1e(n,t,r,n.children)),slicedSegments:t}:{segmentGroup:new Pr(n.segments,n.children),slicedSegments:t}}function m1e(n,e,t,r){const i={};for(const s of t)if(X1(n,e,s)&&!r[Yc(s)]){const o=new Pr([],{});i[Yc(s)]=o}return{...r,...i}}function g1e(n,e){const t={};t[bn]=e;for(const r of n)if(""===r.path&&Yc(r)!==bn){const i=new Pr([],{});t[Yc(r)]=i}return t}function X1(n,e,t){return(!(n.hasChildren()||e.length>0)||"full"!==t.pathMatch)&&""===t.path}class b1e{}class M1e{constructor(e,t,r,i,s,o,a){this.injector=e,this.configLoader=t,this.rootComponentType=r,this.config=i,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new h1e(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new De(4002,`'${e.segmentGroup}'`)}recognize(){const e=$Q(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(st(({children:t,rootSnapshot:r})=>{const i=new jc(r,t),s=new LQ("",i),o=function fAe(n,e,t=null,r=null){return EQ(TQ(n),e,t,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(e){const t=new q1([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),bn,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,bn,t).pipe(st(r=>({children:r,rootSnapshot:t})),r0(r=>{if(r instanceof J1)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof mV?this.noMatchError(r):r}))}processSegmentGroup(e,t,r,i,s){return 0===r.segments.length&&r.hasChildren()?this.processChildren(e,t,r,s):this.processSegment(e,t,r,r.segments,i,!0,s).pipe(st(o=>o instanceof jc?[o]:[]))}processChildren(e,t,r,i){const s=[];for(const o of Object.keys(r.children))"primary"===o?s.unshift(o):s.push(o);return pr(s).pipe(n0(o=>{const a=r.children[o],l=function jAe(n,e){const t=n.filter(r=>Yc(r)===e);return t.push(...n.filter(r=>Yc(r)!==e)),t}(t,o);return this.processSegmentGroup(e,l,a,o,i)}),s0((o,a)=>(o.push(...a),o)),L1(null),function HSe(n,e){const t=arguments.length>=2;return r=>r.pipe(n?Ua((i,s)=>n(i,s,r)):Xi,XF(1),t?L1(e):cQ(()=>new e0))}(),ko(o=>{if(null===o)return f0(r);const a=qQ(o);return function I1e(n){n.sort((e,t)=>e.value.outlet===bn?-1:t.value.outlet===bn?1:e.value.outlet.localeCompare(t.value.outlet))}(a),jt(a)}))}processSegment(e,t,r,i,s,o,a){return pr(t).pipe(n0(l=>this.processSegmentAgainstRoute(l._injector??e,t,l,r,i,s,o,a).pipe(r0(c=>{if(c instanceof mV)return jt(null);throw c}))),Cf(l=>!!l),r0(l=>{if(HQ(l))return function w1e(n,e,t){return 0===e.length&&!n.children[t]}(r,i,s)?jt(new b1e):f0(r);throw l}))}processSegmentAgainstRoute(e,t,r,i,s,o,a,l){return function v1e(n,e,t,r){return!!(Yc(n)===r||r!==bn&&X1(e,t,n))&&_V(e,n,t).matched}(r,i,s,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,i,r,s,o,l):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,t,r,s,o,l):f0(i):f0(i)}expandSegmentAgainstRouteUsingRedirect(e,t,r,i,s,o,a){const{matched:l,parameters:c,consumedSegments:u,positionalParamSegments:d,remainingSegments:f}=_V(t,i,s);if(!l)return f0(t);"string"==typeof i.redirectTo&&"/"===i.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const _=new q1(s,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,WQ(i),Yc(i),i.component??i._loadedComponent??null,i,GQ(i)),w=$1(_,a,this.paramsInheritanceStrategy);_.params=Object.freeze(w.params),_.data=Object.freeze(w.data);const M=this.applyRedirects.applyRedirectCommands(u,i.redirectTo,d,_,e);return this.applyRedirects.lineralizeSegments(i,M).pipe(ko(S=>this.processSegment(e,r,t,S.concat(f),o,!1,a)))}matchSegmentAgainstRoute(e,t,r,i,s,o){const a=f1e(t,r,i,e);return"**"===r.path&&(t.children={}),a.pipe(zi(l=>l.matched?this.getChildConfig(e=r._injector??e,r,i).pipe(zi(({routes:c})=>{const u=r._loadedInjector??e,{parameters:d,consumedSegments:f,remainingSegments:_}=l,w=new q1(f,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,WQ(r),Yc(r),r.component??r._loadedComponent??null,r,GQ(r)),M=$1(w,o,this.paramsInheritanceStrategy);w.params=Object.freeze(M.params),w.data=Object.freeze(M.data);const{segmentGroup:S,slicedSegments:O}=$Q(t,f,_,c);if(0===O.length&&S.hasChildren())return this.processChildren(u,c,S,w).pipe(st(j=>new jc(w,j)));if(0===c.length&&0===O.length)return jt(new jc(w,[]));const N=Yc(r)===s;return this.processSegment(u,c,S,O,N?bn:s,!0,w).pipe(st(j=>new jc(w,j instanceof jc?[j]:[])))})):f0(t)))}getChildConfig(e,t,r){return t.children?jt({routes:t.children,injector:e}):t.loadChildren?void 0!==t._loadedRoutes?jt({routes:t._loadedRoutes,injector:t._loadedInjector}):function l1e(n,e,t,r){const i=e.canLoad;return void 0===i||0===i.length?jt(!0):jt(i.map(o=>{const a=d0(o,n);return Sf(function GAe(n){return n&&mM(n.canLoad)}(a)?a.canLoad(e,t):Sa(n,()=>a(e,t)))})).pipe(h0(),zQ())}(e,t,r).pipe(ko(i=>i?this.configLoader.loadChildren(e,t).pipe(Po(s=>{t._loadedRoutes=s.routes,t._loadedInjector=s.injector})):function d1e(n){return P1(UQ(!1,wl.GuardRejected))}
1())):jt({routes:[],injector:e})}}function D1e(n){const e=n.value.routeConfig;return e&&""===e.path}function qQ(n){const e=[],t=new Set;for(const r of n){if(!D1e(r)){e.push(r);continue}const i=e.find(s=>r.value.routeConfig===s.value.routeConfig);void 0!==i?(i.children.push(...r.children),t.add(i)):e.push(r)}for(const r of t){const i=qQ(r.children);e.push(new jc(r.value,i))}return e.filter(r=>!t.has(r))}function WQ(n){return n.data||{}}function GQ(n){return n.resolve||{}}function KQ(n){const e=n.children.map(t=>KQ(t)).flat();return[n,...e]}function yV(n){return zi(e=>{const t=n(e);return t?pr(t).pipe(st(()=>e)):jt(e)})}let QQ=(()=>{class n{buildTitle(t){let r,i=t.root;for(;void 0!==i;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(s=>s.outlet===bn);return r}getResolvedTitleForRoute(t){return t.data[rM]}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:()=>Le(P1e),providedIn:"root"})}return n})(),P1e=(()=>{class n extends QQ{constructor(t){super(),this.title=t}updateTitle(t){const r=this.buildTitle(t);void 0!==r&&this.title.setTitle(r)}static#e=this.\u0275fac=function(r){return new(r||n)(ve(dSe))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const p0=new $e("",{providedIn:"root",factory:()=>({})}),m0=new $e("");let vV=(()=>{class n{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Le(rG)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return jt(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const r=Sf(t.loadComponent()).pipe(st(JQ),Po(s=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=s}),nM(()=>{this.componentLoaders.delete(t)})),i=new lQ(r,()=>new ge).pipe(JF());return this.componentLoaders.set(t,i),i}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return jt({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const s=function R1e(n,e,t,r){return Sf(n.loadChildren()).pipe(st(JQ),ko(i=>i instanceof bq||Array.isArray(i)?jt(i):pr(e.compileModuleAsync(i))),st(i=>{r&&r(n);let s,o,a=!1;return Array.isArray(i)?(o=i,!0):(s=i.create(t).injector,o=s.get(m0,[],{optional:!0,self:!0}).flat()),{routes:o.map(pV),injector:s}}))}(r,this.compiler,t,this.onLoadEndListener).pipe(nM(()=>{this.childrenLoaders.delete(r)})),o=new lQ(s,()=>new ge).pipe(JF());return this.childrenLoaders.set(r,o),o}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function JQ(n){return function L1e(n){return n&&"object"==typeof n&&"default"in n}(n)?n.default:n}let wV=(()=>{class n{static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:()=>Le(O1e),providedIn:"root"})}return n})(),O1e=(()=>{class n{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const XQ=new $e(""),ZQ=new $e("");function N1e(n,e,t){const r=n.get(ZQ),i=n.get(aa);return n.get(vn).runOutsideAngular(()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(c=>setTimeout(c));let s;const o=new Promise(c=>{s=c}),a=i.startViewTransition(()=>(s(),function F1e(n){return new Promise(e=>{f2(e,{injector:n})})}(n))),{onViewTransitionCreated:l}=r;return l&&Sa(n,()=>l({transition:a,from:e,to:t})),o})}const eJ=new $e("");let Z1=(()=>{class n{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ge,this.transitionAbortSubject=new ge,this.configLoader=Le(vV),this.environmentInjector=Le(Hs),this.urlSerializer=Le(l0),this.rootContexts=Le(uM),this.location=Le(QE),this.inputBindingEnabled=null!==Le(W1,{optional:!0}),this.titleStrategy=Le(QQ),this.options=Le(p0,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=Le(wV),this.createViewTransition=Le(XQ,{optional:!0}),this.navigationErrorHandler=Le(eJ,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>jt(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=i=>this.events.next(new IAe(i)),this.configLoader.onLoadStartListener=i=>this.events.next(new MAe(i))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:r})}setupNavigations(t,r,i){return this.transitions=new je({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:cM,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ua(s=>0!==s.id),st(s=>({...s,extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),zi(s=>{let o=!1,a=!1;return jt(s).pipe(zi(l=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",wl.SupersededByNewNavigation),Uc;this.currentTransition=s,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const c=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!c&&"reload"!==(l.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const d="";return this.events.next(new c0(l.id,this.urlSerializer.serialize(l.rawUrl),d,H1.IgnoredSameUrlNavigation)),l.resolve(!1),Uc}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return jt(l).pipe(zi(d=>{const f=this.transitions?.getValue();return this.events.next(new B1(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),f!==this.transitions?.getValue()?Uc:Promise.resolve(d)}),function C1e(n,e,t,r,i,s){return ko(o=>function T1e(n,e,t,r,i,s,o="emptyOnly"){return new M1e(n,e,t,r,i,o,s).recognize()}(n,e,t,r,o.extractedUrl,i,s).pipe(st(({state:a,tree:l})=>({...o,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),Po(d=>{s.targetSnapshot=d.targetSnapshot,s.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects};const f=new AQ(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(f)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:d,extractedUrl:f,source:_,restoredState:w,extras:M}=l,S=new B1(d,this.urlSerializer.serialize(f),_,w);this.events.next(S);const O=RQ(this.rootComponentType).snapshot;return this.currentTransition=s={...l,targetSnapshot:O,urlAfterRedirects:f,extras:{...M,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=f,jt(s)}{const d="";return this.events.next(new c0(l.id,this.urlSerializer.serialize(l.extractedUrl),d,H1.IgnoredByUrlHandlingStrategy)),l.resolve(!1),Uc}}),Po(l=>{const c=new wAe(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),st(l=>(this.currentTransition=s={...l,guards:HAe(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},s)),function e1e(n,e){return ko(t=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=t;return 0===o.length&&0===s.length?jt({...t,guardsResult:!0}):function t1e(n,e,t,r){return pr(n).pipe(ko(i=>function a1e(n,e,t,r,i){const s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return s&&0!==s.length?jt(s.map(a=>{const l=hM(e)??i,c=d0(a,l);return Sf(function JAe(n){return n&&mM(n.canDeactivate)}(c)?c.canDeactivate(n,e,t,r):Sa(l,()=>c(n,e,t,r))).pipe(Cf())})).pipe(h0()):jt(!0)}(i.component,i.route,t,e,r)),Cf(i=>!0!==i,!0))}(o,r,i,n).pipe(ko(a=>a&&function WAe(n){return"boolean"==typeof n}(a)?function n1e(n,e,t,r){return pr(e).pipe(n0(i=>QF(function i1e(n,e){return null!==n&&e&&e(new DAe(n)),jt(!0)}(i.route.parent,r),function r1e(n,e){return null!==n&&e&&e(new SAe(n)),jt(!0)}(i.route,r),function o1e(n,e,t){const r=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(o=>
1function zAe(n){const e=n.routeConfig?n.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:n,guards:e}:null}(o)).filter(o=>null!==o).map(o=>aQ(()=>jt(o.guards.map(l=>{const c=hM(o.node)??t,u=d0(l,c);return Sf(function QAe(n){return n&&mM(n.canActivateChild)}(u)?u.canActivateChild(r,n):Sa(c,()=>u(r,n))).pipe(Cf())})).pipe(h0())));return jt(s).pipe(h0())}(n,i.path,t),function s1e(n,e,t){const r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return jt(!0);const i=r.map(s=>aQ(()=>{const o=hM(e)??t,a=d0(s,o);return Sf(function KAe(n){return n&&mM(n.canActivate)}(a)?a.canActivate(e,n):Sa(o,()=>a(e,n))).pipe(Cf())}));return jt(i).pipe(h0())}(n,i.route,t))),Cf(i=>!0!==i,!0))}(r,s,n,e):jt(a)),st(a=>({...t,guardsResult:a})))})}(this.environmentInjector,l=>this.events.next(l)),Po(l=>{if(s.guardsResult=l.guardsResult,l.guardsResult&&"boolean"!=typeof l.guardsResult)throw G1(0,l.guardsResult);const c=new bAe(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),Ua(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",wl.GuardRejected),!1)),yV(l=>{if(l.guards.canActivateChecks.length)return jt(l).pipe(Po(c=>{const u=new TAe(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),zi(c=>{let u=!1;return jt(c).pipe(function S1e(n,e){return ko(t=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=t;if(!i.length)return jt(t);const s=new Set(i.map(l=>l.route)),o=new Set;for(const l of s)if(!o.has(l))for(const c of KQ(l))o.add(c);let a=0;return pr(o).pipe(n0(l=>s.has(l)?function A1e(n,e,t,r){const i=n.routeConfig,s=n._resolve;return void 0!==i?.title&&!NQ(i)&&(s[rM]=i.title),function x1e(n,e,t,r){const i=ZF(n);if(0===i.length)return jt({});const s={};return pr(i).pipe(ko(o=>function k1e(n,e,t,r){const i=hM(e)??r,s=d0(n,i);return Sf(s.resolve?s.resolve(e,t):Sa(i,()=>s(e,t)))}(n[o],e,t,r).pipe(Cf(),Po(a=>{if(a instanceof fV)throw G1(new N1,a);s[o]=a}))),XF(1),function zSe(n){return st(()=>n)}(s),r0(o=>HQ(o)?Uc:P1(o)))}(s,n,e,r).pipe(st(o=>(n._resolvedData=o,n.data=$1(n,n.parent,t).resolve,null)))}(l,r,n,e):(l.data=$1(l,l.parent,n).resolve,jt(void 0))),Po(()=>a++),XF(1),ko(l=>a===o.size?jt(t):Uc))})}(this.paramsInheritanceStrategy,this.environmentInjector),Po({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(c,"",wl.NoDataFromResolver)}}))}),Po(c=>{const u=new EAe(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}))}),yV(l=>{const c=u=>{const d=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(u.routeConfig).pipe(Po(f=>{u.component=f}),st(()=>{})));for(const f of u.children)d.push(...c(f));return d};return KF(c(l.targetSnapshot.root)).pipe(L1(null),lg(1))}),yV(()=>this.afterPreactivation()),zi(()=>{const{currentSnapshot:l,targetSnapshot:c}=s,u=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return u?pr(u).pipe(st(()=>s)):jt(s)}),st(l=>{const c=function PAe(n,e,t){const r=dM(n,e._root,t?t._root:void 0);return new PQ(r,e)}(t.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s={...l,targetRouterState:c},this.currentNavigation.targetRouterState=c,s}),Po(()=>{this.events.next(new sV)}),((n,e,t,r)=>st(i=>(new BAe(e,i.targetRouterState,i.currentRouterState,t,r).activate(n),i)))(this.rootContexts,t.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),lg(1),Po({next:l=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Wd(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{o=!0}}),function $Se(n){return Lt((e,t)=>{Va(n).subscribe(Tt(t,()=>t.complete(),so)),!t.closed&&e.subscribe(t)})}(this.transitionAbortSubject.pipe(Po(l=>{throw l}))),nM(()=>{!o&&!a&&this.cancelNavigationTransition(s,"",wl.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),r0(l=>{if(a=!0,jQ(l))this.events.next(new ug(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),function OAe(n){return jQ(n)&&oM(n.url)}(l)?this.events.next(new z1(l.url,l.navigationBehaviorOptions)):s.resolve(!1);else{const c=new iV(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0);try{const u=Sa(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(u instanceof fV){const{message:d,cancellationCode:f}=G1(0,u);this.events.next(new ug(s.id,this.urlSerializer.serialize(s.extractedUrl),d,f)),this.events.next(new z1(u.redirectTo,u.navigationBehaviorOptions))}else{this.events.next(c);const d=t.errorHandler(l);s.resolve(!!d)}}catch(u){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(u)}}return Uc}))}))}cancelNavigationTransition(t,r,i){const s=new ug(t.id,this.urlSerializer.serialize(t.extractedUrl),r,i);this.events.next(s),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function V1e(n){return n!==cM}let U1e=(()=>{class n{static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:()=>Le(Y1e),providedIn:"root"})}return n})();
1class j1e{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}let Y1e=(()=>{class n extends j1e{static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=qs(n)))(i||n)}})();static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),tJ=(()=>{class n{static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:()=>Le(B1e),providedIn:"root"})}return n})(),B1e=(()=>{class n extends tJ{constructor(){super(...arguments),this.location=Le(QE),this.urlSerializer=Le(l0),this.options=Le(p0,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=Le(wV),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new a0,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=RQ(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(r=>{"popstate"===r.type&&t(r.url,r.state)})}handleRouterEvent(t,r){if(t instanceof B1)this.stateMemento=this.createStateMemento();else if(t instanceof c0)this.rawUrlTree=r.initialUrl;else if(t instanceof AQ){if("eager"===this.urlUpdateStrategy&&!r.extras.skipLocationChange){const i=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(i,r)}}else t instanceof sV?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,"deferred"===this.urlUpdateStrategy&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):t instanceof ug&&(t.code===wl.GuardRejected||t.code===wl.NoDataFromResolver)?this.restoreHistory(r):t instanceof iV?this.restoreHistory(r,!0):t instanceof Wd&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,r){const i=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){const o={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(i,"",o)}else{const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId+1)};this.location.go(i,"",s)}}restoreHistory(t,r=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-this.browserPageId;0!==s?this.location.historyGo(s):this.currentUrlTree===t.finalUrl&&0===s&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=qs(n)))(i||n)}})();static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var gM=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(gM||{});function nJ(n,e){n.events.pipe(Ua(t=>t instanceof Wd||t instanceof ug||t instanceof iV||t instanceof c0),st(t=>t instanceof Wd||t instanceof c0?gM.COMPLETE:t instanceof ug&&(t.code===wl.Redirect||t.code===wl.SupersededByNewNavigation)?gM.REDIRECTING:gM.FAILED),Ua(t=>t!==gM.REDIRECTING),lg(1)).subscribe(()=>{e()})}function H1e(n){throw n}const z1e={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},$1e={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let bs=(()=>{class n{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=Le(qW),this.stateManager=Le(tJ),this.options=Le(p0,{optional:!0})||{},this.pendingTasks=Le(Yd),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=Le(Z1),this.urlSerializer
1=Le(l0),this.location=Le(QE),this.urlHandlingStrategy=Le(wV),this._events=new ge,this.errorHandler=this.options.errorHandler||H1e,this.navigated=!1,this.routeReuseStrategy=Le(U1e),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=Le(m0,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!Le(W1,{optional:!0}),this.eventsSubscription=new rr,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const t=this.navigationTransitions.events.subscribe(r=>{try{const i=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(null!==i&&null!==s)if(this.stateManager.handleRouterEvent(r,s),r instanceof ug&&r.code!==wl.Redirect&&r.code!==wl.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Wd)this.navigated=!0;else if(r instanceof z1){const o=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),l={info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||"eager"===this.urlUpdateStrategy||V1e(i.source),...o};this.scheduleNavigation(a,cM,null,l,{resolve:i.resolve,reject:i.reject,promise:i.promise})}(function W1e(n){return!(n instanceof sV||n instanceof z1)})(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),cM,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",r)},0)})}navigateToSyncWithBrowser(t,r,i){const s={replaceUrl:!0},o=i?.navigationId?i:null;if(i){const l={...i};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const a=this.parseUrl(t);this.scheduleNavigation(a,r,o,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(pV),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,r={}){const{relativeTo:i,queryParams:s,fragment:o,queryParamsHandling:a,preserveFragment:l}=r,c=l?this.currentUrlTree.fragment:o;let d,u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...s};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=s||null}null!==u&&(u=this.removeEmptyProps(u));try{d=TQ(i?i.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof t[0]||"/"!==t[0][0])&&(t=[]),d=this.currentUrlTree.root}return EQ(d,t,u,c??null)}navigateByUrl(t,r={skipLocationChange:!1}){const i=oM(t)?t:this.parseUrl(t),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,cM,null,r)}navigate(t,r={skipLocationChange:!1}){return function q1e(n){for(let e=0;e<n.length;e++)if(null==n[e])throw new De(4008,!1)}(t),this.navigateByUrl(this.createUrlTree(t,r),r)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,r){let i;if(i=!0===r?{...z1e}:!1===r?{...$1e}:r,oM(t))return fQ(this.currentUrlTree,t,i);const s=this.parseUrl(t);return fQ(this.currentUrlTree,s,i)}removeEmptyProps(t){return Object.entries(t).reduce((r,[i,s])=>(null!=s&&(r[i]=s),r),{})}scheduleNavigation(t,r,i,s,o){if(this.disposed)return Promise.resolve(!1);let a,l,c;o?(a=o.resolve,l=o.reject,c=o.promise):c=new Promise((d,f)=>{a=d,l=f});const u=this.pendingTasks.add();return nJ(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:s,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();class rJ{}let Q1e=(()=>{class n{constructor(t,r,i,s,o){this.router=t,this.injector=i,this.preloadingStrategy=s,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(Ua(t=>t instanceof Wd),n0(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){const i=[];for(const s of r){s.providers&&!s._injector&&(s._injector=FA(s.providers,t,`Route: ${s.path}`));const o=s._injector??t,a=s._loadedInjector??o;(s.loadChildren&&!s._loadedRoutes&&void 0===s.canLoad||s.loadComponent&&!s._loadedComponent)&&i.push(this.preloadConfig(o,s)),(s.children||s._loadedRoutes)&&i.push(this.processRoutes(a,s.children??s._loadedRoutes))}return pr(i).pipe(t0())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{let i;i=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(t,r):jt(null);const s=i.pipe(ko(o=>null===o?jt(void 0):(r._loadedRoutes=o.routes,r._loadedInjector=o.injector,this.processRoutes(o.injector??t,o.routes))));return r.loadComponent&&!r._loadedComponent?pr([s,this.loader.loadComponent(r)]).pipe(t0()):s})}static#e=this.\u0275fac=function(r){return new(r||n)(ve(bs),ve(rG),ve(Hs),ve(rJ),ve(vV))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const TV=new $e("");let iJ=(()=>{class n{constructor(t,r,i,s,o={}
1){this.urlSerializer=t,this.transitions=r,this.viewportScroller=i,this.zone=s,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=Le(Hs),o.scrollPositionRestoration||="disabled",o.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof B1?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Wd?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof c0&&t.code===H1.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof xQ&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,r){var i=this;this.zone.runOutsideAngular((0,ee.A)(function*(){yield new Promise(s=>{setTimeout(()=>{s()}),f2(()=>{s()},{injector:i.environmentInjector})}),i.zone.run(()=>{i.transitions.events.next(new xQ(t,"popstate"===i.lastSource?i.store[i.restoredId]:null,r))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){!function j9(){throw new Error("invalid")}()};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac})}return n})();function Vu(n,e){return{\u0275kind:n,\u0275providers:e}}function oJ(){const n=Le(ts);return e=>{const t=n.get(Nc);if(e!==t.components[0])return;const r=n.get(bs),i=n.get(aJ);1===n.get(EV)&&r.initialNavigation(),n.get(lJ,null,Gt.Optional)?.setUpPreloading(),n.get(TV,null,Gt.Optional)?.init(),r.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}const aJ=new $e("",{factory:()=>new ge}),EV=new $e("",{providedIn:"root",factory:()=>1}),lJ=new $e("");function exe(n){return Vu(0,[{provide:lJ,useExisting:Q1e},{provide:rJ,useExisting:n}])}function nxe(n){return Vu(9,[{provide:XQ,useValue:N1e},{provide:ZQ,useValue:{skipNextTransition:!!n?.skipInitialTransition,...n}}])}const cJ=new $e("ROUTER_FORROOT_GUARD"),rxe=[QE,{provide:l0,useClass:N1},bs,uM,{provide:Af,useFactory:function sJ(n){return n.routerState.root},deps:[bs]},vV,[]];let uJ=(()=>{class n{constructor(t){}static forRoot(t,r){return{ngModule:n,providers:[rxe,[],{provide:m0,multi:!0,useValue:t},{provide:cJ,useFactory:axe,deps:[[bs,new an,new Cd]]},{provide:p0,useValue:r||{}},r?.useHash?{provide:rg,useClass:KIe}:{provide:rg,useClass:ZG},{provide:TV,useFactory:()=>{const n=Le(hCe),e=Le(vn),t=Le(p0),r=Le(Z1),i=Le(l0);return t.scrollOffset&&n.setOffset(t.scrollOffset),new iJ(i,r,n,e,t)}},r?.preloadingStrategy?exe(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?lxe(r):[],r?.bindToComponentInputs?Vu(8,[FQ,{provide:W1,useExisting:FQ}]).\u0275providers:[],r?.enableViewTransitions?nxe().\u0275providers:[],[{provide:dJ,useFactory:oJ},{provide:i1,multi:!0,useExisting:dJ}]]}}static forChild(t){return{ngModule:n,providers:[{provide:m0,multi:!0,useValue:t}]}}static#e=this.\u0275fac=function(r){return new(r||n)(ve(cJ,8))};static#t=this.\u0275mod=A({type:n});static#n=this.\u0275inj=ai({})}return n})();function axe(n){return"guarded"}function lxe(n){return["disabled"===n.initialNavigation?Vu(3,[{provide:lF,multi:!0,useFactory:()=>{const e=Le(bs);return()=>{e.setUpLocationChangeListener()}}},{provide:EV,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?Vu(2,[{provide:EV,useValue:0},{provide:lF,multi:!0,deps:[ts],useFactory:e=>{const t=e.get(WIe,Promise.resolve());return()=>t.then(()=>new Promise(r=>{const i=e.get(bs),s=e.get(aJ);nJ(i,()=>{r(!0)}),e.get(Z1).afterPreactivation=()=>(r(!0),s.closed?jt(void 0):s),i.initialNavigation()}))}}]).\u0275providers:[]]}const dJ=new $e("");
1var dg={region:"toronto"},Jt=function(n){return n[n.State=0]="State",n[n.Transition=1]="Transition",n[n.Sequence=2]="Sequence",n[n.Group=3]="Group",n[n.Animate=4]="Animate",n[n.Keyframes=5]="Keyframes",n[n.Style=6]="Style",n[n.Trigger=7]="Trigger",n[n.Reference=8]="Reference",n[n.AnimateChild=9]="AnimateChild",n[n.AnimateRef=10]="AnimateRef",n[n.Query=11]="Query",n[n.Stagger=12]="Stagger",n}(Jt||{});const Gd="*";function ex(n,e){return{type:Jt.Trigger,name:n,definitions:e,options:{}}}function _M(n,e=null){return{type:Jt.Animate,styles:e,timings:n}}function Uu(n){return{type:Jt.Style,styles:n,offset:null}}function hJ(n){return{type:Jt.Keyframes,steps:n}}function yM(n,e,t=null){return{type:Jt.Transition,expr:n,animation:e,options:t}}class vM{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class fJ{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,r=0,i=0;const s=this.players.length;0==s?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==s&&this._onFinish()}),o.onDestroy(()=>{++r==s&&this._onDestroy()}),o.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(r=>{const i=r.totalTime?Math.min(1,t/r.totalTime):1;r.setPosition(i)})}getPosition(){const e=this.players.reduce((t,r)=>null===t||r.totalTime>t.totalTime?r:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}const g0={simpleFade:ex("fade",[yM(":enter, :leave",[_M(300)])]),fadeInOut:ex("fadeInOut",[yM(":enter",[_M("0.5s ease-in",hJ([Uu({opacity:0,transform:"translateY(-20px)",offset:0}),Uu({opacity:.8,transform:"translateY(10px)",offset:.6}),Uu({opacity:1,transform:"translateY(0)",offset:1})]))]),yM(":leave",[_M("0.5s ease-out",hJ([Uu({opacity:1,transform:"translateY(0)",offset:0}),Uu({opacity:.8,transform:"translateY(10px)",offset:.4}),Uu({opacity:0,transform:"translateY(-20px)",offset:1})]))])]),fadeInFromRight:ex("fadeInFromRight",[yM(":enter",[Uu({opacity:0,transform:"translateX(100%)"}),_M("1s ease-in-out",Uu({opacity:1,transform:"translateX(0)"}))])]),banner:ex("bannerAnimation",[yM(":enter, :leave",[_M("0.3s ease-in-out")])])};class tx{}class nx{}class rc{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?"string"==typeof e?this.lazyInit=()=>{this.headers=new Map,e.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const i=t.slice(0,r),s=i.toLowerCase(),o=t.slice(r+1).trim();this.maybeSetNormalizedName(i,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((t,r)=>{this.setHeaderEntries(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([t,r])=>{this.setHeaderEntries(t,r)}
vendor: 4,553 bytes, line 1
1)}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof rc?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new rc;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof rc?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(e.name,t);const i=("a"===e.op?this.headers.get(t):void 0)||[];i.push(...r),this.headers.set(t,i);break;case"d":const s=e.value;if(s){let o=this.headers.get(t);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}setHeaderEntries(e,t){const r=(Array.isArray(t)?t:[t]).map(s=>s.toString()),i=e.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class mxe{encodeKey(e){return pJ(e)}encodeValue(e){return pJ(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const _xe=/%(\d[a-f0-9])/gi,yxe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function pJ(n){return encodeURIComponent(n).replace(_xe,(e,t)=>yxe[t]??e)}function rx(n){return`${n}`}class et{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new mxe,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function gxe(n,e){const t=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(i=>{const s=i.indexOf("="),[o,a]=-1==s?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,s)),e.decodeValue(i.slice(s+1))],l=t.get(o)||[];l.push(a),t.set(o,l)}),t}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const r=e.fromObject[t],i=Array.isArray(r)?r.map(rx):[rx(r)];this.map.set(t,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(r=>{const i=e[r];Array.isArray(i)?i.forEach(s=>{t.push({param:r,value:s,op:"a"})}):t.push({param:r,value:i,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new et({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(rx(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let r=this.map.get(e.param)||[];const i=r.indexOf(rx(e.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class vxe{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}
1keys(){return this.map.keys()}}function mJ(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function gJ(n){return typeof Blob<"u"&&n instanceof Blob}function _J(n){return typeof FormData<"u"&&n instanceof FormData}class wM{constructor(e,t,r,i){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function wxe(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,s=i):s=r,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),this.transferCache=s.transferCache),this.headers??=new rc,this.context??=new vxe,this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":a<t.length-1?"&":"")+o}}else this.params=new et,this.urlWithParams=t}serializeBody(){return null===this.body?null:"string"==typeof this.body||mJ(this.body)||gJ(this.body)||_J(this.body)||function bxe(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}(this.body)?this.body:this.body instanceof et?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||_J(this.body)?null:gJ(this.body)?this.body.type||null:mJ(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof et?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(e={}){const t=e.method||this.method,r=e.url||this.url,i=e.responseType||this.responseType,s=e.transferCache??this.transferCache,o=void 0!==e.body?e.body:this.body,a=e.withCredentials??this.withCredentials,l=e.reportProgress??this.reportProgress;let c=e.headers||this.headers,u=e.params||this.params;const d=e.context??this.context;return void 0!==e.setHeaders&&(c=Object.keys(e.setHeaders).reduce((f,_)=>f.set(_,e.setHeaders[_]),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((f,_)=>f.set(_,e.setParams[_]),u)),new wM(t,r,o,{params:u,headers:c,context:d,reportProgress:l,responseType:i,withCredentials:a,transferCache:s})}}var xf=function(n){return n[n.Sent=0]="Sent",n[n.UploadProgress=1]="UploadProgress",n[n.ResponseHeader=2]="ResponseHeader",n[n.DownloadProgress=3]="DownloadProgress",n[n.Response=4]="Response",n[n.User=5]="User",n}(xf||{});class IV{constructor(e,t=200,r="OK"){this.headers=e.headers||new rc,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class ix extends IV{constructor(e={}){super(e),this.type=xf.ResponseHeader}clone(e={}){return new ix({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class hg extends IV{constructor(e={}){super(e),this.type=xf.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new hg({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class _0 extends IV{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function DV(n,e){return{body:e,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials,transferCache:n.transferCache}}let Bc=(()=>{class n{constructor(t){this.handler=t}request(t,r,i={}){let s;if(t instanceof wM)s=t;else{let l,c;l=i.headers instanceof rc?i.headers:new rc(i.headers),i.params&&(c=i.params instanceof et?i.params:new et({fromObject:i.params})),s=new wM(t,r,void 0!==i.body?i.body:null,{headers:l,context:i.context,params:c,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}const o=jt(s).pipe(n0(l=>this.handler.handle(l)));if(t instanceof wM||"events"===i.observe)return o;const a=o.pipe(Ua(l=>l instanceof hg));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(st(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(st(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(st(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(st(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new et).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,i={}){return this.request("PATCH",t,DV(i,r))}post(t,r,i={}){return this.request("POST",t,DV(i,r))}put(t,r,i={}){return this.request("PUT",t,DV(i,r))}static#e=this.\u0275fac=function(r){return new(r||n)(ve(tx))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac})}return n})();const Mxe=/^\)\]\}',?\n/;function vJ(n){if(n.url)return n.url;const e="X-Request-URL".toLocaleLowerCase();return n.headers.get(e)}let CV=(()=>{class n{constructor(){this.fetchImpl=Le(Dxe,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=Le(vn)}handle(t){return new Wn(r=>{const i=new AbortController;return this.doRequest(t,i.signal,r).then(SV,s=>r.error(new _0({error:s}))),()=>i.abort()})}doRequest(t,r,i){var s=this;return(0,ee.A)(function*(){const o=s.createRequestInit(t);let a;try{const w=s.fetchImpl(t.urlWithParams,{signal:r,...o});(function Cxe(n){n.then(SV,SV)})(w),i.next({type:xf.Sent}),a=yield w}catch(w){return void i.error(new _0({error:w,status:w.status??0,statusText:w.statusText,url:t.urlWithParams,headers:w.headers}))}const l=new rc(a.headers),c=a.statusText,u=vJ(a)??t.urlWithParams;let d=a.status,f=null;if(t.reportProgress&&i.next(new ix({headers:l,status:d,statusText:c,url:u})),a.body){const w=a.headers.get("content-length"),M=[],S=a.body.getReader();let N,j,O=0;const Z=typeof Zone<"u"&&Zone.current;yield s.ngZone.runOutsideAngular((0,ee.A)(function*(){for(;;){const{done:le,value:Q}=yield S.read();if(le)break;
1if(M.push(Q),O+=Q.length,t.reportProgress){j="text"===t.responseType?(j??"")+(N??=new TextDecoder).decode(Q,{stream:!0}):void 0;const B=()=>i.next({type:xf.DownloadProgress,total:w?+w:void 0,loaded:O,partialText:j});Z?Z.run(B):B()}}}));const ie=s.concatChunks(M,O);try{const le=a.headers.get("Content-Type")??"";f=s.parseBody(t,ie,le)}catch(le){return void i.error(new _0({error:le,headers:new rc(a.headers),status:a.status,statusText:a.statusText,url:vJ(a)??t.urlWithParams}))}}0===d&&(d=f?200:0),d>=200&&d<300?(i.next(new hg({body:f,headers:l,status:d,statusText:c,url:u})),i.complete()):i.error(new _0({error:f,headers:l,status:d,statusText:c,url:u}))})()}parseBody(t,r,i){switch(t.responseType){case"json":const s=(new TextDecoder).decode(r).replace(Mxe,"");return""===s?null:JSON.parse(s);case"text":return(new TextDecoder).decode(r);case"blob":return new Blob([r],{type:i});case"arraybuffer":return r.buffer}}createRequestInit(t){const r={},i=t.withCredentials?"include":void 0;if(t.headers.forEach((s,o)=>r[s]=o.join(",")),r.Accept??="application/json, text/plain, */*",!r["Content-Type"]){const s=t.detectContentTypeHeader();null!==s&&(r["Content-Type"]=s)}return{body:t.serializeBody(),method:t.method,headers:r,credentials:i}}concatChunks(t,r){const i=new Uint8Array(r);let s=0;for(const o of t)i.set(o,s),s+=o.length;return i}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac})}return n})();class Dxe{}function SV(){}function wJ(n,e){return e(n)}function Sxe(n,e){return(t,r)=>e.intercept(t,{handle:i=>n(i,r)})}const xxe=new $e(""),bM=new $e(""),bJ=new $e(""),TJ=new $e("",{providedIn:"root",factory:()=>!0});function kxe(){let n=null;return(e,t)=>{null===n&&(n=(Le(xxe,{optional:!0})??[]).reduceRight(Sxe,wJ));const r=Le(Yd);if(Le(TJ)){const s=r.add();return n(e,t).pipe(nM(()=>r.remove(s)))}return n(e,t)}}let EJ=(()=>{class n extends tx{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=Le(Yd),this.contributeToStability=Le(TJ)}handle(t){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(bM),...this.injector.get(bJ,[])]));this.chain=r.reduceRight((i,s)=>function Axe(n,e,t){return(r,i)=>Sa(t,()=>e(r,s=>n(s,i)))}(i,s,this.injector),wJ)}if(this.contributeToStability){const r=this.pendingTasks.add();return this.chain(t,i=>this.backend.handle(i)).pipe(nM(()=>this.pendingTasks.remove(r)))}return this.chain(t,r=>this.backend.handle(r))}static#e=this.\u0275fac=function(r){return new(r||n)(ve(nx),ve(Hs))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac})}return n})();const Nxe=/^\)\]\}',?\n/;let IJ=(()=>{class n{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new De(-2800,!1);const r=this.xhrFactory;return(r.\u0275loadImpl?pr(r.\u0275loadImpl()):jt(null)).pipe(zi(()=>new Wn(s=>{const o=r.build();if(o.open(t.method,t.urlWithParams),t.withCredentials&&(o.withCredentials=!0),t.headers.forEach((M,S)=>o.setRequestHeader(M,S.join(","))),t.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const M=t.detectContentTypeHeader();null!==M&&o.setRequestHeader("Content-Type",M)}if(t.responseType){const M=t.responseType.toLowerCase();o.responseType="json"!==M?M:"text"}const a=t.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const M=o.statusText||"OK",S=new rc(o.getAllResponseHeaders()),O=function Fxe(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(o)||t.url;return l=new ix({headers:S,status:o.status,statusText:M,url:O}),l},u=()=>{let{headers:M,status:S,statusText:O,url:N}=c(),j=null;204!==S&&(j=typeof o.response>"u"?o.responseText:o.response),0===S&&(S=j?200:0);let Z=S>=200&&S<300;if("json"===t.responseType&&"string"==typeof j){const ie=j;j=j.replace(Nxe,"");try{j=""!==j?JSON.parse(j):null}catch(le){j=ie,Z&&(Z=!1,j={error:le,text:j})}}Z?(s.next(new hg({body:j,headers:M,status:S,statusText:O,url:N||void 0})),s.complete()):s.error(new _0({error:j,headers:M,status:S,statusText:O,url:N||void 0}))},d=M=>{const{url:S}=c(),O=new _0({error:M,status:o.status||0,statusText:o.statusText||"Unknown Error",url:S||void 0});s.error(O)};let f=!1;const _=M=>{f||(s.next(c()),f=!0);let S={type:xf.DownloadProgress,loaded:M.loaded};M.lengthComputable&&(S.total=M.total),"text"===t.responseType&&o.responseText&&(S.partialText=o.responseText),s.next(S)},w=M=>{let S={type:xf.UploadProgress,loaded:M.loaded};M.lengthComputable&&(S.total=M.total),s.next(S)};return o.addEventListener("load",u),o.addEventListener("error",d),o.addEventListener("timeout",d),o.addEventListener("abort",d),t.reportProgress&&(o.addEventListener("progress",_),null!==a&&o.upload&&o.upload.addEventListener("progress",w)),o.send(a),s.next({type:xf.Sent}),()=>{o.removeEventListener("error",d),o.removeEventListener("abort",d),o.removeEventListener("load",u),o.removeEventListener("timeout",d),t.reportProgress&&(o.removeEventListener("progress",_),null!==a&&o.upload&&o.upload.removeEventListener("progress",w)),o.readyState!==o.DONE&&o.abort()}})))}static#e=this.\u0275fac=function(r){return new(r||n)(ve(wK))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac})}return n})();const AV=new $e(""),DJ=new $e("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),CJ=new $e("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class SJ{}let jxe=(()=>{class n{constructor(t,r,i){this.doc=t,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=cK(t,this.cookieName),this.lastCookieString=t),this.lastToken}static#e=this.\u0275fac=function(r){return new(r||n)(ve(aa),ve(La),ve(DJ))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac})}return n})();function Yxe(n,e){const t=n.url.toLowerCase();if(!Le(AV)||"GET"===n.method||"HEAD"===n.method||t.startsWith("http://")||t.startsWith("https://"))return e(n);const r=Le(SJ).getToken(),i=Le(CJ);return null!=r&&!n.headers.has(i)&&(n=n.clone({headers:n.headers.set(i,r)})),e(n)}var kf=function(n){return n[n.Interceptors=0]="Interceptors",n[n.LegacyInterceptors=1]="LegacyInterceptors",n[n.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",n[n.NoXsrfProtection=3]="NoXsrfProtection",n[n.JsonpSupport=4]="JsonpSupport",n[n.RequestsMadeViaParent=5]="RequestsMadeViaParent",n[n.Fetch=6]="Fetch",n}(kf||{});function Bxe(...n){const e=[Bc,IJ,EJ,{provide:tx,useExisting:EJ},{provide:nx,useFactory:()=>Le(CV,{optional:!0})??Le(IJ)},{provide:bM,useValue:Yxe,multi:!0},{provide:AV,useValue:!0},{provide:SJ,useClass:jxe}];for(const t of n)e.push(...t.\u0275providers);return function Iu(n){return{\u0275providers:n}}(e)}const AJ=new $e("");function Hxe(){return function fg(n,e){return{\u0275kind:n,\u0275providers:e}}(kf.LegacyInterceptors,[{provide:AJ,useFactory:kxe},{provide:bM,useExisting:AJ,multi:!0}])}let zxe=(()=>{class n{static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275mod=A({type:n});static#n=this.\u0275inj=ai({providers:[Bxe(Hxe())]})}return n})();$(7575);var ja=$(1631);(0,ja.registerVersion)("firebase","10.12.2","app");class tke extends rr{constructor(e,t){super()}schedule(e,t=0){return this}}const ox={setInterval(n,e,...t){const{delegate:r}=ox;return r?.setInterval?r.setInterval(n,e,...t):setInterval(n,e,...t)},clearInterval(n){const{delegate:e}=ox;return(e?.clearInterval||clearInterval)(n)},delegate:void 0};
1class FJ extends tke{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){var r;if(this.closed)return this;this.state=e;const i=this.id,s=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(s,i,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(s,this.id,t),this}requestAsyncId(e,t,r=0){return ox.setInterval(e.flush.bind(e,this),r)}recycleAsyncId(e,t,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&ox.clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let i,r=!1;try{this.work(e)}catch(s){r=!0,i=s||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){const{id:e,scheduler:t}=this,{actions:r}=t;this.work=this.state=this.scheduler=null,this.pending=!1,ji(r,this),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,super.unsubscribe()}}}const xV={now:()=>(xV.delegate||Date).now(),delegate:void 0};class TM{constructor(e,t=TM.now){this.schedulerActionCtor=e,this.now=t}schedule(e,t=0,r){return new this.schedulerActionCtor(this,e).schedule(r,t)}}TM.now=xV.now;class VJ extends TM{constructor(e,t=TM.now){super(e,t),this.actions=[],this._active=!1}flush(e){const{actions:t}=this;if(this._active)return void t.push(e);let r;this._active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}}const ike=new class rke extends VJ{}(class nke extends FJ{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,r=0){return null!=r&&r>0||null==r&&this.delay>0?super.requestAsyncId(e,t,r):(e.flush(this),0)}}),ax=new VJ(FJ),y0=new Kv("ANGULARFIRE2_VERSION");class lx{constructor(){return((n,e)=>{const t=(0,ja.getApps)(),r=[];return t.forEach(i=>{i.container.getProvider(n).instances.forEach(o=>{r.includes(o)||r.push(o)})}),r})(oke)}}const oke="app-check";function v0(){}class UJ{zone;delegate;constructor(e,t=ike){this.zone=e,this.delegate=t}now(){return this.delegate.now()}schedule(e,t,r){const i=this.zone;return this.delegate.schedule(function(o){i.runGuarded(()=>{e.apply(this,[o])})},t,r)}}class ake{zone;task=null;constructor(e){this.zone=e}call(e,t){const r=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",v0,{},v0,v0)),t.pipe(Po({next:r,complete:r,error:r})).subscribe(e).add(r)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let cx=(()=>{class n{ngZone;outsideAngular;insideAngular;constructor(t){this.ngZone=t,this.outsideAngular=t.runOutsideAngular(()=>new UJ(Zone.current)),this.insideAngular=t.run(()=>new UJ(Zone.current,ax)),globalThis.\u0275AngularFireScheduler||=this}static \u0275fac=function(r){return new(r||n)(ve(vn))};static \u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function w0(){const n=globalThis.\u0275AngularFireScheduler;if(!n)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 n}function jJ(n){return n.pipe(Df(w0().outsideAngular))}function ls(n){return function cke(n){return function(t){return(t=t.lift(new ake(n.ngZone))).pipe(Zv(n.outsideAngular),Df(n.insideAngular))}}(w0())(n)}var bl=$(9574);bl.A.registerVersion("firebase","10.12.2","app-compat");const fke=["ngOnDestroy"];class YJ{constructor(e){return e}}const b0=new $e("angularfire2.app.options"),T0=new $e("angularfire2.app.name");function EM(n,e,t){const i="object"==typeof t&&t||{};i.name=i.name||"string"==typeof t&&t||"[DEFAULT]";const o=bl.A.apps.filter(a=>a&&a.name===i.name)[0]||e.runOutsideAngular(()=>bl.A.initializeApp(n,i));try{if(JSON.stringify(n)!==JSON.stringify(o.options)){const a=!!module.hot;gke("error",`${o.name} Firebase App already initialized with different options${a?", you may need to reload as Firebase is not HMR aware.":"."}`)}}catch{}return new YJ(o)}const gke=(n,...e)=>{},_ke={provide:YJ,useFactory:EM,deps:[b0,vn,[new an,T0]]};let yke=(()=>{class n{static initializeApp(t,r){return{ngModule:n,providers:[{provide:b0,useValue:t},{provide:T0,useValue:r}]}}constructor(t){bl.A.registerVersion("angularfire",y0.full,"core"),bl.A.registerVersion("angularfire",y0.full,"app-compat"),bl.A.registerVersion("angular",eMe.full,t.toString())}static \u0275fac=function(r){return new(r||n)(ve(La))};static \u0275mod=A({type:n});static \u0275inj=ai({providers:[_ke]})}return n})();function ux(n,e,t,r,i){const[,s,o]=globalThis.\u0275AngularfireInstanceCache.find(a=>a[0]===n)||[];if(s)return function vke(n,e){try{return n.toString()===e.toString()}catch{return n===e}}(i,o)||(BJ("error",`${e} was already initialized on the ${t} Firebase App with different settings.${wke?" You may need to reload as Firebase is not HMR aware.":""}`),BJ("warn",{is:i,was:o})),s;{const a=r();return globalThis.\u0275AngularfireInstanceCache.push([n,a,i]),a}}const wke=typeof module<"u"&&!!module.hot,BJ=(n,...e)=>{};function kV(...n){const e=tM(n),t=function ASe(n,e){return"number"==typeof WF(n)?n.pop():e}(n,1/0),r=n;return r.length?1===r.length?Va(r[0]):t0(t)(pr(r,e)):Uc}globalThis.\u0275AngularfireInstanceCache||=[];class HJ extends ge{constructor(e=1/0,t=1/0,r=xV){super(),this._bufferSize=e,this._windowTime=t,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,t)}next(e){const{isStopped:t,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:s,_windowTime:o}=this;t||(r.push(e),!i&&r.push(s.now()+o)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();const t=this._innerSubscribe(e),{_infiniteTimeWindow:r,_buffer:i}=this,s=i.slice();for(let o=0;o<s.length&&!e.closed;o+=r?1:2)e.next(s[o]);return this._checkFinalizedStatuses(e),t}_trimBuffer(){const{_bufferSize:e,_timestampProvider:t,_buffer:r,_infiniteTimeWindow:i}=this,s=(i?1:2)*e;if(e<1/0&&s<r.length&&r.splice(0,r.length-s),!i){const o=t.now();let a=0;for(let l=1;l<r.length&&r[l]<=o;l+=2)a=l;a&&r.splice(0,a+1)}}}function zJ(n={}){const{connector:e=(()=>new ge),resetOnError:t=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=n;return s=>{let o,a,l,c=0,u=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},_=()=>{f(),o=l=void 0,u=d=!1},w=()=>{const M=o;_(),M?.unsubscribe()};return Lt((M,S)=>{c++,!d&&!u&&f();const O=l=l??e();S.add(()=>{c--,0===c&&!d&&!u&&(a=PV(w,i))}),O.subscribe(S),!o&&c>0&&(o=new Ur({next:N=>O.next(N),error:N=>{d=!0,f(),a=PV(_,t,N),O.error(N)},complete:()=>{u=!0,f(),a=PV(_,r),O.complete()}}),Va(M).subscribe(o))})(s)}}function PV(n,e,...t){if(!0===e)return void n();if(!1===e)return;const r=new Ur({next:()=>{r.unsubscribe(),n()}});return Va(e(...t)).subscribe(r)}function $J(n,e,t){let r,i=!1;return n&&"object"==typeof n?({bufferSize:r=1/0,windowTime:e=1/0,refCount:i=!1,scheduler:t}=n):r=n??1/0,zJ({connector:()=>new HJ(r,e,t),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function qJ(n,e){return on(e)?zi(()=>n,e):zi(()=>n)}const RV=new $e("angularfire2.auth.use-emulator"),LV=new $e("angularfire2.auth.settings"),OV=new $e("angularfire2.auth.tenant-id"),NV=new $e("angularfire2.auth.langugage-code"),FV=new $e("angularfire2.auth.use-device-language"),VV=new $e("angularfire.auth.persistence"),UV=(n,e,t,r,i,s,o,a)=>ux(`${n.name}.auth`,"AngularFireAuth",n.name,()=>{const l=e.runOutsideAngular(()=>n.auth());if(t&&l.useEmulator(...t),r&&(l.tenantId=r),l.languageCode=i,s&&l.useDeviceLanguage(),o)for(const[c,u]of Object.entries(o))l.settings[c]=u;
1return a&&l.setPersistence(a),l},[t,r,i,s,o,a]);let mg=(()=>{class n{authState;idToken;user;idTokenResult;credential;constructor(t,r,i,s,o,a,l,c,u,d,f,_){const w=new ge,M=jt(void 0).pipe(Df(o.outsideAngular),zi(()=>s.runOutsideAngular(()=>Promise.resolve().then($.bind($,7575)))),st(()=>EM(t,s,r)),st(S=>UV(S,s,a,c,u,d,l,f)),$J({bufferSize:1,refCount:!1}));if(C1(i))this.authState=this.user=this.idToken=this.idTokenResult=this.credential=jt(null);else{M.pipe(Cf()).subscribe();const S=M.pipe(zi(j=>j.getRedirectResult().then(Z=>Z,()=>null)),ls,$J({bufferSize:1,refCount:!1})),O=M.pipe(zi(j=>new Wn(Z=>({unsubscribe:s.runOutsideAngular(()=>j.onAuthStateChanged(ie=>Z.next(ie),ie=>Z.error(ie),()=>Z.complete()))})))),N=M.pipe(zi(j=>new Wn(Z=>({unsubscribe:s.runOutsideAngular(()=>j.onIdTokenChanged(ie=>Z.next(ie),ie=>Z.error(ie),()=>Z.complete()))}))));this.authState=S.pipe(qJ(O),Zv(o.outsideAngular),Df(o.insideAngular)),this.user=S.pipe(qJ(N),Zv(o.outsideAngular),Df(o.insideAngular)),this.idToken=this.user.pipe(zi(j=>j?pr(j.getIdToken()):jt(null))),this.idTokenResult=this.user.pipe(zi(j=>j?pr(j.getIdTokenResult()):jt(null))),this.credential=kV(S,w,this.authState.pipe(Ua(j=>!j))).pipe(st(j=>j?.user?j:null),Zv(o.outsideAngular),Df(o.insideAngular))}return((n,e,t,r={})=>new Proxy(n,{get:(i,s)=>t.runOutsideAngular(()=>{if(n[s])return r?.spy?.get&&r.spy.get(s,n[s]),n[s];if(fke.indexOf(s)>-1)return()=>{};const o=e.toPromise().then(a=>{const l=a?.[s];return"function"==typeof l?l.bind(a):l?.then?l.then(c=>t.run(()=>c)):t.run(()=>l)});return new Proxy(()=>{},{get:(a,l)=>o[l],apply:(a,l,c)=>o.then(u=>{const d=u?.(...c);return r?.spy?.apply&&r.spy.apply(s,c,d),d})})})}))(this,M,s,{spy:{apply:(S,O,N)=>{(S.startsWith("signIn")||S.startsWith("createUser"))&&N.then(j=>w.next(j))}}})}static \u0275fac=function(r){return new(r||n)(ve(b0),ve(T0,8),ve(La),ve(vn),ve(cx),ve(RV,8),ve(LV,8),ve(OV,8),ve(NV,8),ve(FV,8),ve(VV,8),ve(lx,8))};static \u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"any"})}return n})(),Tke=(()=>{class n{constructor(){bl.A.registerVersion("angularfire",y0.full,"auth-compat")}static \u0275fac=function(r){return new(r||n)};static \u0275mod=A({type:n});static \u0275inj=ai({providers:[mg]})}return n})(),Eke=(()=>{class n{constructor(t){if(this.fireAuth=t,n.instance)return n.instance;n.instance=this}registerUser(t,r){return this.fireAuth.createUserWithEmailAndPassword(t,r).then(i=>!!i.user)}signIn(t,r){return this.fireAuth.signInWithEmailAndPassword(t,r).then(i=>i.user).catch(i=>{})}signOut(){return this.fireAuth.signOut().then(t=>!0).catch(t=>!1)}changePassword(t){return this.fireAuth.sendPasswordResetEmail(t).then(r=>!0).catch(r=>!1),!1}static#e=this.\u0275fac=function(r){return new(r||n)(ve(mg))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();class jV{constructor(e,t,r,i,s){this.approved=e,this.chainName=t,this.owner=r,this.requestedTime=i,this.restaurantName=s}static fromObject(e){return new jV(e.approved,e.chainName,e.owner,e.requestedTime,e.restaurantName)}toObject(){return{approved:this.approved,chainName:this.chainName,owner:this.owner,requestedTime:this.requestedTime,restaurantName:this.restaurantName}}}function Ke(n,e){const t="object"==typeof e;return new Promise((r,i)=>{const s=new Ur({next:o=>{r(o),s.unsubscribe()},error:i,complete:()=>{t?r(e.defaultValue):i(new e0)}});n.subscribe(s)})}function YV(){return Lt((n,e)=>{let t,r=!1;n.subscribe(Tt(e,i=>{const s=t;t=i,r&&e.next([s,i]),r=!0}))})}function dx(n,e=Xi){return n=n??Mke,Lt((t,r)=>{let i,s=!0;t.subscribe(Tt(r,o=>{const a=e(o);(s||!n(i,a))&&(s=!1,i=a,r.next(o))}))})}function Mke(n,e){return n===e}var gg,KJ,Hc=$(8779),Tl=$(5398),K=$(1401),WJ=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},GJ={};(function(){var n;function r(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.B=Array(this.blockSize),this.o=this.h=0,this.s()}function i(Q,B,J){J||(J=0);var oe=Array(16);if("string"==typeof B)for(var ce=0;16>ce;++ce)oe[ce]=B.charCodeAt(J++)|B.charCodeAt(J++)<<8|B.charCodeAt(J++)<<16|B.charCodeAt(J++)<<24;else for(ce=0;16>ce;++ce)oe[ce]=B[J++]|B[J++]<<8|B[J++]<<16|B[J++]<<24;var he=Q.g[3],se=(B=Q.g[0])+(he^(J=Q.g[1])&((ce=Q.g[2])^he))+oe[0]+3614090360&4294967295;se=(J=(ce=(he=(B=(J=(ce=(he=(B=(J=(ce=(he=(B=(J=(ce=(he=(B=(J=(ce=(he=(B=(J=(ce=(he=(B=(J=(ce=(he=(B=(J=(ce=(he=(B=(J=(ce=(he=(B=(J=(ce=(he=(B=(J=(ce=(he=(B=(J=(ce=(he=(B=(J=(ce=(he=(B=(J=(ce=(he=(B=(J=(ce=(he=(B=J+(se<<7&4294967295|se>>>25))+((se=he+(ce^B&(J^ce))+oe[1]+3905402710&4294967295)<<12&4294967295|se>>>20))+((se=ce+(J^he&(B^J))+oe[2]+606105819&4294967295)<<17&4294967295|se>>>15))+((se=J+(B^ce&(he^B))+oe[3]+3250441966&4294967295)<<22&4294967295|se>>>10))+((se=B+(he^J&(ce^he))+oe[4]+4118548399&4294967295)<<7&4294967295|se>>>25))+((se=he+(ce^B&(J^ce))+oe[5]+1200080426&4294967295)<<12&4294967295|se>>>20))+((se=ce+(J^he&(B^J))+oe[6]+2821735955&4294967295)<<17&4294967295|se>>>15))+((se=J+(B^ce&(he^B))+oe[7]+4249261313&4294967295)<<22&4294967295|se>>>10))+((se=B+(he^J&(ce^he))+oe[8]+1770035416&4294967295)<<7&4294967295|se>>>25))+((se=he+(ce^B&(J^ce))+oe[9]+2336552879&4294967295)<<12&4294967295|se>>>20))+((se=ce+(J^he&(B^J))+oe[10]+4294925233&4294967295)<<17&4294967295|se>>>15))+((se=J+(B^ce&(he^B))+oe[11]+2304563134&4294967295)<<22&4294967295|se>>>10))+((se=B+(he^J&(ce^he))+oe[12]+1804603682&4294967295)<<7&4294967295|se>>>25))+((se=he+(ce^B&(J^ce))+oe[13]+4254626195&4294967295)<<12&4294967295|se>>>20))+((se=ce+(J^he&(B^J))+oe[14]+2792965006&4294967295)<<17&4294967295|se>>>15))+((se=J+(B^ce&(he^B))+oe[15]+1236535329&4294967295)<<22&4294967295|se>>>10))+((se=B+(ce^he&(J^ce))+oe[1]+4129170786&4294967295)<<5&4294967295|se>>>27))+((se=he+(J^ce&(B^J))+oe[6]+3225465664&4294967295)<<9&4294967295|se>>>23))+((se=ce+(B^J&(he^B))+oe[11]+643717713&4294967295)<<14&4294967295|se>>>18))+((se=J+(he^B&(ce^he))+oe[0]+3921069994&4294967295)<<20&4294967295|se>>>12))+((se=B+(ce^he&(J^ce))+oe[5]+3593408605&4294967295)<<5&4294967295|se>>>27))+((se=he+(J^ce&(B^J))+oe[10]+38016083&4294967295)<<9&4294967295|se>>>23))+((se=ce+(B^J&(he^B))+oe[15]+3634488961&4294967295)<<14&4294967295|se>>>18))+((se=J+(he^B&(ce^he))+oe[4]+3889429448&4294967295)<<20&4294967295|se>>>12))+((se=B+(ce^he&(J^ce))+oe[9]+568446438&4294967295)<<5&4294967295|se>>>27))+((se=he+(J^ce&(B^J))+oe[14]+3275163606&4294967295)<<9&4294967295|se>>>23))+((se=ce+(B^J&(he^B))+oe[3]+4107603335&4294967295)<<14&4294967295|se>>>18))+((se=J+(he^B&(ce^he))+oe[8]+1163531501&4294967295)<<20&4294967295|se>>>12))+((se=B+(ce^he&(J^ce))+oe[13]+2850285829&4294967295)<<5&4294967295|se>>>27))+((se=he+(J^ce&(B^J))+oe[2]+4243563512&4294967295)<<9&4294967295|se>>>23))+((se=ce+(B^J&(he^B))+oe[7]+1735328473&4294967295)<<14&4294967295|se>>>18))+((se=J+(he^B&(ce^he))+oe[12]+2368359562&4294967295)<<20&4294967295|se>>>12))+((se=B+(J^ce^he)+oe[5]+4294588738&4294967295)<<4&4294967295|se>>>28))+((se=he+(B^J^ce)+oe[8]+2272392833&4294967295)<<11&4294967295|se>>>21))+((se=ce+(he^B^J)+oe[11]+1839030562&4294967295)<<16&4294967295|se>>>16))+((se=J+(ce^he^B)+oe[14]+4259657740&4294967295)<<23&4294967295|se>>>9))+((se=B+(J^ce^he)+oe[1]+2763975236&4294967295)<<4&4294967295|se>>>28))+((se=he+(B^J^ce)+oe[4]+1272893353&4294967295)<<11&4294967295|se>>>21))+((se=ce+(he^B^J)+oe[7]+4139469664&4294967295)<<16&4294967295|se>>>16))+((se=J+(ce^he^B)+oe[10]+3200236656&4294967295)<<23&4294967295|se>>>9))+((se=B+(J^ce^he)+oe[13]+681279174&4294967295)<<4&4294967295|se>>>28))+((se=he+(B^J^ce)+oe[0]+3936430074&4294967295)<<11&4294967295|se>>>21))+((se=ce+(he^B^J)+oe[3]+3572445317&4294967295)<<16&4294967295|se>>>16))+((se=J+(ce^he^B)+oe[6]+76029189&4294967295)<<23&4294967295|se>>>9))+((se=B+(J^ce^he)+oe[9]+3654602809&4294967295)<<4&4294967295|se>>>28))+((se=he+(B^J^ce)+oe[12]+3873151461&4294967295)<<11&4294967295|se>>>21))+((se=ce+(he^B^J)+oe[15]+530742520&4294967295)<<16&4294967295|se>>>16))+((se=J+(ce^he^B)+oe[2]+3299628645&4294967295)<<23&4294967295|se>>>9))+((se=B+(ce^(J|~he))+oe[0]+4096336452&4294967295)<<6&4294967295|se>>>26))+((se=he+(J^(B|~ce))+oe[7]+1126891415&4294967295)<<10&4294967295|se>>>22))+((se=ce+(B^(he|~J))+oe[14]+2878612391&4294967295)<<15&4294967295|se>>>17))+((se=J+(he^(ce|~B))+oe[5]+4237533241&4294967295)<<21&4294967295|se>>>11))+((se=B+(ce^(J|~he))+oe[12]+1700485571&4294967295)<<6&4294967295|se>>>26))+((se=he+(J^(B|~ce))+oe[3]+2399980690&4294967295)<<10&4294967295|se>>>22))+((se=ce+(B^(he|~J))+oe[10]+4293915773&4294967295)<<15&4294967295|se>>>17))+((se=J+(he^(ce|~B))+oe[1]+2240044497&4294967295)<<21&4294967295|se>>>11))+((se=B+(ce^(J|~he))+oe[8]+1873313359&4294967295)<<6&4294967295|se>>>26))+((se=he+(J^(B|~ce))+oe[15]+4264355552&4294967295)<<10&4294967295|se>>>22))+((se=ce+(B^(he|~J))+oe[6]+2734768916&4294967295)<<15&4294967295|se>>>17))+((se=J+(he^(ce|~B))+oe[13]+1309151649&4294967295)<<21&4294967295|se>>>11))+((he=(B=J+((se=B+(ce^(J|~he))+oe[4]+4149444226&4294967295)<<6&4294967295|se>>>26))+((se=he+(J^(B|~ce))+oe[11]+3174756917&4294967295)<<10&4294967295|se>>>22))^((ce=he+((se=ce+(B^(he|~J))+oe[2]+718787259&4294967295)<<15&4294967295|se>>>17))|~B))+oe[9]+3951481745&4294967295,Q.g[0]=Q.g[0]+B&4294967295,Q.g[1]=Q.g[1]+(ce+(se<<21&4294967295|se>>>11))&4294967295,Q.g[2]=Q.g[2]+ce&4294967295,Q.g[3]=Q.g[3]+he&4294967295}function o(Q,B){this.h=B;for(var J=[],oe=!0,ce=Q.length-1;0<=ce;ce--){var he=0|Q[ce];oe&&he==B||(J[ce]=he,oe=!1)}this.g=J}(function e(Q,B){function J(){}J.prototype=B.prototype,Q.D=B.prototype,Q.prototype=new J,Q.prototype.constructor=Q,Q.C=function(oe,ce,he){for(var se=Array(arguments.length-2),ti=2;ti<arguments.length;ti++)se[ti-2]=arguments[ti];return B.prototype[ce].apply(oe,se)}})(r,function t(){this.blockSize=-1}),r.prototype.s=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0},r.prototype.u=function(Q,B){void 0===B&&(B=Q.length);for(var J=B-this.blockSize,oe=this.B,ce=this.h,he=0;he<B;){if(0==ce)for(;he<=J;)i(this,Q,he),he+=this.blockSize;if("string"==typeof Q){for(;he<B;
1)if(oe[ce++]=Q.charCodeAt(he++),ce==this.blockSize){i(this,oe),ce=0;break}}else for(;he<B;)if(oe[ce++]=Q[he++],ce==this.blockSize){i(this,oe),ce=0;break}}this.h=ce,this.o+=B},r.prototype.v=function(){var Q=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);Q[0]=128;for(var B=1;B<Q.length-8;++B)Q[B]=0;var J=8*this.o;for(B=Q.length-8;B<Q.length;++B)Q[B]=255&J,J/=256;for(this.u(Q),Q=Array(16),B=J=0;4>B;++B)for(var oe=0;32>oe;oe+=8)Q[J++]=this.g[B]>>>oe&255;return Q};var a={};function l(Q){return-128<=Q&&128>Q?function s(Q,B){var J=a;return Object.prototype.hasOwnProperty.call(J,Q)?J[Q]:J[Q]=B(Q)}(Q,function(B){return new o([0|B],0>B?-1:0)}):new o([0|Q],0>Q?-1:0)}function c(Q){if(isNaN(Q)||!isFinite(Q))return d;if(0>Q)return S(c(-Q));for(var B=[],J=1,oe=0;Q>=J;oe++)B[oe]=Q/J|0,J*=4294967296;return new o(B,0)}var d=l(0),f=l(1),_=l(16777216);function w(Q){if(0!=Q.h)return!1;for(var B=0;B<Q.g.length;B++)if(0!=Q.g[B])return!1;return!0}function M(Q){return-1==Q.h}function S(Q){for(var B=Q.g.length,J=[],oe=0;oe<B;oe++)J[oe]=~Q.g[oe];return new o(J,~Q.h).add(f)}function O(Q,B){return Q.add(S(B))}function N(Q,B){for(;(65535&Q[B])!=Q[B];)Q[B+1]+=Q[B]>>>16,Q[B]&=65535,B++}function j(Q,B){this.g=Q,this.h=B}function Z(Q,B){if(w(B))throw Error("division by zero");if(w(Q))return new j(d,d);if(M(Q))return B=Z(S(Q),B),new j(S(B.g),S(B.h));if(M(B))return B=Z(Q,S(B)),new j(S(B.g),B.h);if(30<Q.g.length){if(M(Q)||M(B))throw Error("slowDivide_ only works with positive integers.");for(var J=f,oe=B;0>=oe.l(Q);)J=ie(J),oe=ie(oe);var ce=le(J,1),he=le(oe,1);for(oe=le(oe,2),J=le(J,2);!w(oe);){var se=he.add(oe);0>=se.l(Q)&&(ce=ce.add(J),he=se),oe=le(oe,1),J=le(J,1)}return B=O(Q,ce.j(B)),new j(ce,B)}for(ce=d;0<=Q.l(B);){for(J=Math.max(1,Math.floor(Q.m()/B.m())),oe=48>=(oe=Math.ceil(Math.log(J)/Math.LN2))?1:Math.pow(2,oe-48),se=(he=c(J)).j(B);M(se)||0<se.l(Q);)se=(he=c(J-=oe)).j(B);w(he)&&(he=f),ce=ce.add(he),Q=O(Q,se)}return new j(ce,Q)}function ie(Q){for(var B=Q.g.length+1,J=[],oe=0;oe<B;oe++)J[oe]=Q.i(oe)<<1|Q.i(oe-1)>>>31;return new o(J,Q.h)}function le(Q,B){var J=B>>5;B%=32;for(var oe=Q.g.length-J,ce=[],he=0;he<oe;he++)ce[he]=0<B?Q.i(he+J)>>>B|Q.i(he+J+1)<<32-B:Q.i(he+J);return new o(ce,Q.h)}(n=o.prototype).m=function(){if(M(this))return-S(this).m();for(var Q=0,B=1,J=0;J<this.g.length;J++){var oe=this.i(J);Q+=(0<=oe?oe:4294967296+oe)*B,B*=4294967296}return Q},n.toString=function(Q){if(2>(Q=Q||10)||36<Q)throw Error("radix out of range: "+Q);if(w(this))return"0";if(M(this))return"-"+S(this).toString(Q);for(var B=c(Math.pow(Q,6)),J=this,oe="";;){var ce=Z(J,B).g,he=((0<(J=O(J,ce.j(B))).g.length?J.g[0]:J.h)>>>0).toString(Q);if(w(J=ce))return he+oe;for(;6>he.length;)he="0"+he;oe=he+oe}},n.i=function(Q){return 0>Q?0:Q<this.g.length?this.g[Q]:this.h},n.l=function(Q){return M(Q=O(this,Q))?-1:w(Q)?0:1},n.abs=function(){return M(this)?S(this):this},n.add=function(Q){for(var B=Math.max(this.g.length,Q.g.length),J=[],oe=0,ce=0;ce<=B;ce++){var he=oe+(65535&this.i(ce))+(65535&Q.i(ce)),se=(he>>>16)+(this.i(ce)>>>16)+(Q.i(ce)>>>16);oe=se>>>16,J[ce]=(se&=65535)<<16|(he&=65535)}return new o(J,-2147483648&J[J.length-1]?-1:0)},n.j=function(Q){if(w(this)||w(Q))return d;if(M(this))return M(Q)?S(this).j(S(Q)):S(S(this).j(Q));if(M(Q))return S(this.j(S(Q)));if(0>this.l(_)&&0>Q.l(_))return c(this.m()*Q.m());for(var B=this.g.length+Q.g.length,J=[],oe=0;oe<2*B;oe++)J[oe]=0;for(oe=0;oe<this.g.length;oe++)for(var ce=0;ce<Q.g.length;ce++){var he=this.i(oe)>>>16,se=65535&this.i(oe),ti=Q.i(ce)>>>16,xn=65535&Q.i(ce);J[2*oe+2*ce]+=se*xn,N(J,2*oe+2*ce),J[2*oe+2*ce+1]+=he*xn,N(J,2*oe+2*ce+1),J[2*oe+2*ce+1]+=se*ti,N(J,2*oe+2*ce+1),J[2*oe+2*ce+2]+=he*ti,N(J,2*oe+2*ce+2)}for(oe=0;oe<B;oe++)J[oe]=J[2*oe+1]<<16|J[2*oe];for(oe=B;oe<2*B;oe++)J[oe]=0;return new o(J,0)},n.A=function(Q){return Z(this,Q).h},n.and=function(Q){for(var B=Math.max(this.g.length,Q.g.length),J=[],oe=0;oe<B;oe++)J[oe]=this.i(oe)&Q.i(oe);return new o(J,this.h&Q.h)},n.or=function(Q){for(var B=Math.max(this.g.length,Q.g.length),J=[],oe=0;oe<B;oe++)J[oe]=this.i(oe)|Q.i(oe);return new o(J,this.h|Q.h)},n.xor=function(Q){for(var B=Math.max(this.g.length,Q.g.length),J=[],oe=0;oe<B;oe++)J[oe]=this.i(oe)^Q.i(oe);return new o(J,this.h^Q.h)},r.prototype.digest=r.prototype.v,r.prototype.reset=r.prototype.s,r.prototype.update=r.prototype.u,KJ=GJ.Md5=r,o.prototype.add=o.prototype.add,o.prototype.multiply=o.prototype.j,o.prototype.modulo=o.prototype.A,o.prototype.compare=o.prototype.l,o.prototype.toNumber=o.prototype.m,o.prototype.toString=o.prototype.toString,o.prototype.getBits=o.prototype.i,o.fromNumber=c,o.fromString=function u(Q,B){if(0==Q.length)throw Error("number format error: empty string");if(2>(B=B||10)||36<B)throw Error("radix out of range: "+B);if("-"==Q.charAt(0))return S(u(Q.substring(1),B));if(0<=Q.indexOf("-"))throw Error('number format error: interior "-" character');for(var J=c(Math.pow(B,8)),oe=d,ce=0;ce<Q.length;ce+=8){var he=Math.min(8,Q.length-ce),se=parseInt(Q.substring(ce,ce+he),B);8>he?(he=c(Math.pow(B,he)),oe=oe.j(he).add(c(se))):oe=(oe=oe.j(J)).add(c(se))}return oe},gg=GJ.Integer=o}).apply(typeof WJ<"u"?WJ:typeof self<"u"?self:typeof window<"u"?window:{});var QJ,JJ,MM,XJ,fx,BV,ZJ,eX,tX,hx=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Kd={};(function(){var n,e="function"==typeof Object.defineProperties?Object.defineProperty:function(g,x,R){return g==Array.prototype||g==Object.prototype||(g[x]=R.value),g},r=function t(g){g=["object"==typeof globalThis&&globalThis,g,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof hx&&hx];for(var x=0;x<g.length;++x){var R=g[x];if(R&&R.Math==Math)return R}throw Error("Cannot find global object")}(this);!function i(g,x){if(x)e:{var R=r;g=g.split(".");for(var W=0;W<g.length-1;W++){var me=g[W];if(!(me in R))break e;R=R[me]}(x=x(W=R[g=g[g.length-1]]))!=W&&null!=x&&e(R,g,{configurable:!0,writable:!0,value:x})}}("Array.prototype.values",function(g){return g||function(){return function s(g,x){g instanceof String&&(g+="");var R=0,W=!1,me={next:function(){if(!W&&R<g.length){var ke=R++;return{value:x(ke,g[ke]),done:!1}}return W=!0,{done:!0,value:void 0}}};return me[Symbol.iterator]=function(){return me},me}(this,function(x,R){return R})}});var o=o||{},a=this||self;function l(g){var x=typeof g;return"array"==(x="object"!=x?x:g?Array.isArray(g)?"array":x:"null")||"object"==x&&"number"==typeof g.length}function c(g){var x=typeof g;return"object"==x&&null!=g||"function"==x}function u(g,x,R){return g.call.apply(g.bind,arguments)}function d(g,x,R){if(!g)throw Error();if(2<arguments.length){var W=Array.prototype.slice.call(arguments,2);return function(){var me=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(me,W),g.apply(x,me)}}return function(){return g.apply(x,arguments)}}function f(g,x,R){return(f=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?u:d).apply(null,arguments)}
1function _(g,x){var R=Array.prototype.slice.call(arguments,1);return function(){var W=R.slice();return W.push.apply(W,arguments),g.apply(this,W)}}function w(g,x){function R(){}R.prototype=x.prototype,g.aa=x.prototype,g.prototype=new R,g.prototype.constructor=g,g.Qb=function(W,me,ke){for(var ut=Array(arguments.length-2),Br=2;Br<arguments.length;Br++)ut[Br-2]=arguments[Br];return x.prototype[me].apply(W,ut)}}function M(g){const x=g.length;if(0<x){const R=Array(x);for(let W=0;W<x;W++)R[W]=g[W];return R}return[]}function S(g,x){for(let R=1;R<arguments.length;R++){const W=arguments[R];if(l(W)){const me=g.length||0,ke=W.length||0;g.length=me+ke;for(let ut=0;ut<ke;ut++)g[me+ut]=W[ut]}else g.push(W)}}function N(g){return/^[\s\xa0]*$/.test(g)}function j(){var g=a.navigator;return g&&(g=g.userAgent)?g:""}function Z(g){return Z[" "](g),g}Z[" "]=function(){};var ie=!(-1==j().indexOf("Gecko")||-1!=j().toLowerCase().indexOf("webkit")&&-1==j().indexOf("Edge")||-1!=j().indexOf("Trident")||-1!=j().indexOf("MSIE")||-1!=j().indexOf("Edge"));function le(g,x,R){for(const W in g)x.call(R,g[W],W,g)}function B(g){const x={};for(const R in g)x[R]=g[R];return x}const J="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function oe(g,x){let R,W;for(let me=1;me<arguments.length;me++){for(R in W=arguments[me],W)g[R]=W[R];for(let ke=0;ke<J.length;ke++)R=J[ke],Object.prototype.hasOwnProperty.call(W,R)&&(g[R]=W[R])}}function ce(g){var x=1;g=g.split(":");const R=[];for(;0<x&&g.length;)R.push(g.shift()),x--;return g.length&&R.push(g.join(":")),R}function he(g){a.setTimeout(()=>{throw g},0)}function se(){var g=$t;let x=null;return g.g&&(x=g.g,g.g=g.g.next,g.g||(g.h=null),x.next=null),x}var xn=new class O{constructor(x,R){this.i=x,this.j=R,this.h=0,this.g=null}get(){let x;return 0<this.h?(this.h--,x=this.g,this.g=x.next,x.next=null):x=this.i(),x}}(()=>new it,g=>g.reset());class it{constructor(){this.next=this.g=this.h=null}set(x,R){this.h=x,this.g=R,this.next=null}reset(){this.next=this.g=this.h=null}}let ct,kt=!1,$t=new class ti{constructor(){this.h=this.g=null}add(x,R){const W=xn.get();W.set(x,R),this.h?this.h.next=W:this.g=W,this.h=W}},Or=()=>{const g=a.Promise.resolve(void 0);ct=()=>{g.then(bo)}};var bo=()=>{for(var g;g=se();){try{g.h.call(g.g)}catch(R){he(R)}var x=xn;x.j(g),100>x.h&&(x.h++,g.next=x.g,x.g=g)}kt=!1};function Mr(){this.s=this.s,this.C=this.C}function ur(g,x){this.type=g,this.g=this.target=x,this.defaultPrevented=!1}Mr.prototype.s=!1,Mr.prototype.ma=function(){this.s||(this.s=!0,this.N())},Mr.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},ur.prototype.h=function(){this.defaultPrevented=!0};var Xn=function(){if(!a.addEventListener||!Object.defineProperty)return!1;var g=!1,x=Object.defineProperty({},"passive",{get:function(){g=!0}});try{const R=()=>{};a.addEventListener("test",R,x),a.removeEventListener("test",R,x)}catch{}return g}();function Qa(g,x){if(ur.call(this,g?g.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,g){var R=this.type=g.type,W=g.changedTouches&&g.changedTouches.length?g.changedTouches[0]:null;if(this.target=g.target||g.srcElement,this.g=x,x=g.relatedTarget){if(ie){e:{try{Z(x.nodeName);var me=!0;break e}catch{}me=!1}me||(x=null)}}else"mouseover"==R?x=g.fromElement:"mouseout"==R&&(x=g.toElement);this.relatedTarget=x,W?(this.clientX=void 0!==W.clientX?W.clientX:W.pageX,this.clientY=void 0!==W.clientY?W.clientY:W.pageY,this.screenX=W.screenX||0,this.screenY=W.screenY||0):(this.clientX=void 0!==g.clientX?g.clientX:g.pageX,this.clientY=void 0!==g.clientY?g.clientY:g.pageY,this.screenX=g.screenX||0,this.screenY=g.screenY||0),this.button=g.button,this.key=g.key||"",this.ctrlKey=g.ctrlKey,this.altKey=g.altKey,this.shiftKey=g.shiftKey,this.metaKey=g.metaKey,this.pointerId=g.pointerId||0,this.pointerType="string"==typeof g.pointerType?g.pointerType:tu[g.pointerType]||"",this.state=g.state,this.i=g,g.defaultPrevented&&Qa.aa.h.call(this)}}w(Qa,ur);var tu={2:"touch",3:"pen",4:"mouse"};Qa.prototype.h=function(){Qa.aa.h.call(this);var g=this.i;g.preventDefault?g.preventDefault():g.returnValue=!1};var Ki="closure_listenable_"+(1e6*Math.random()|0),xh=0;function Ja(g,x,R,W,me){this.listener=g,this.proxy=null,this.src=x,this.type=R,this.capture=!!W,this.ha=me,this.key=++xh,this.da=this.fa=!1}function kh(g){g.da=!0,g.listener=null,g.proxy=null,g.src=null,g.ha=null}function Wp(g){this.src=g,this.g={},this.h=0}function uz(g,x){var R=x.type;if(R in g.g){var ke,W=g.g[R],me=Array.prototype.indexOf.call(W,x,void 0);(ke=0<=me)&&Array.prototype.splice.call(W,me,1),ke&&(kh(x),0==g.g[R].length&&(delete g.g[R],g.h--))}}function dz(g,x,R,W){for(var me=0;me<g.length;++me){var ke=g[me];if(!ke.da&&ke.listener==x&&ke.capture==!!R&&ke.ha==W)return me}return-1}Wp.prototype.add=function(g,x,R,W,me){var ke=g.toString();(g=this.g[ke])||(g=this.g[ke]=[],this.h++);var ut=dz(g,x,W,me);return-1<ut?(x=g[ut],R||(x.fa=!1)):((x=new Ja(x,this.src,ke,!!W,me)).fa=R,g.push(x)),x};var hz="closure_lm_"+(1e6*Math.random()|0),fz={};function Rme(g,x,R,W,me){if(W&&W.once)return Ome(g,x,R,W,me);if(Array.isArray(x)){for(var ke=0;ke<x.length;ke++)Rme(g,x[ke],R,W,me);return null}return R=_z(R),g&&g[Ki]?g.K(x,R,c(W)?!!W.capture:!!W,me):Lme(g,x,R,!1,W,me)}function Lme(g,x,R,W,me,ke){if(!x)throw Error("Invalid event type");var ut=c(me)?!!me.capture:!!me,Br=mz(g);if(Br||(g[hz]=Br=new Wp(g)),(R=Br.add(x,R,W,ut,ke)).proxy)return R;if(W=function Get(){const x=Ket;return function g(R){return x.call(g.src,g.listener,R)}}(),R.proxy=W,W.src=g,W.listener=R,g.addEventListener)Xn||(me=ut),void 0===me&&(me=!1),g.addEventListener(x.toString(),W,me);else if(g.attachEvent)g.attachEvent(Fme(x.toString()),W);else{if(!g.addListener||!g.removeListener)throw Error("addEventListener and attachEvent are unavailable.");g.addListener(W)}return R}function Ome(g,x,R,W,me){if(Array.isArray(x)){for(var ke=0;ke<x.length;ke++)Ome(g,x[ke],R,W,me);return null}return R=_z(R),g&&g[Ki]?g.L(x,R,c(W)?!!W.capture:!!W,me):Lme(g,x,R,!0,W,me)}function Nme(g,x,R,W,me){if(Array.isArray(x))for(var ke=0;ke<x.length;ke++)Nme(g,x[ke],R,W,me);else W=c(W)?!!W.capture:!!W,R=_z(R),g&&g[Ki]?(g=g.i,(x=String(x).toString())in g.g&&-1<(R=dz(ke=g.g[x],R,W,me))&&(kh(ke[R]),Array.prototype.splice.call(ke,R,1),0==ke.length&&(delete g.g[x],g.h--))):g&&(g=mz(g))&&(x=g.g[x.toString()],g=-1,x&&(g=dz(x,R,W,me)),(R=-1<g?x[g]:null)&&pz(R))}function pz(g){if("number"!=typeof g&&g&&!g.da){var x=g.src;if(x&&x[Ki])uz(x.i,g);else{var R=g.type,W=g.proxy;x.removeEventListener?x.removeEventListener(R,W,g.capture):x.detachEvent?x.detachEvent(Fme(R),W):x.addListener&&x.removeListener&&x.removeListener(W),(R=mz(x))?(uz(R,g),0==R.h&&(R.src=null,x[hz]=null)):kh(g)}}}function Fme(g){return g in fz?fz[g]:fz[g]="on"+g}function Ket(g,x){if(g.da)g=!0;else{x=new Qa(x,this);var R=g.listener,W=g.ha||g.src;g.fa&&pz(g),g=R.call(W,x)}return g}function mz(g){return(g=g[hz])instanceof Wp?g:null}var gz="__closure_events_fn_"+(1e9*Math.random()>>>0);function _z(g){return"function"==typeof g?g:(g[gz]||(g[gz]=function(x){return g.handleEvent(x)}),g[gz])}function Go(){Mr.call(this),this.i=new Wp(this),this.M=this,this.F=null}function _a(g,x){var R,W=g.F;if(W)for(R=[];W;W=W.F)R.push(W);if(g=g.M,W=x.type||x,"string"==typeof x)x=new ur(x,g);else if(x instanceof ur)x.target=x.target||g;else{var me=x;oe(x=new ur(W,g),me)}if(me=!0,R)for(var ke=R.length-1;0<=ke;ke--){var ut=x.g=R[ke];me=rO(ut,W,!0,x)&&me}if(me=rO(ut=x.g=g,W,!0,x)&&me,me=rO(ut,W,!1,x)&&me,R)for(ke=0;ke<R.length;ke++)me=rO(ut=x.g=R[ke],W,!1,x)&&me}function rO(g,x,R,W){if(!(x=g.i.g[String(x)]))return!0;x=x.concat();for(var me=!0,ke=0;ke<x.length;++ke){var ut=x[ke];if(ut&&!ut.da&&ut.capture==R){var Br=ut.listener,To=ut.ha||ut.src;ut.fa&&uz(g.i,ut),me=!1!==Br.call(To,W)&&me}}return me&&!W.defaultPrevented}function Vme(g,x,R){if("function"==typeof g)R&&(g=f(g,R));else{if(!g||"function"!=typeof g.handleEvent)throw Error("Invalid listener argument");g=f(g.handleEvent,g)}return 2147483647<Number(x)?-1:a.setTimeout(g,x||0)}function Ume(g){g.g=Vme(()=>{g.g=null,g.i&&(g.i=!1,Ume(g))},g.l);const x=g.h;g.h=null,g.m.apply(null,x)}w(Go,Mr),Go.prototype[Ki]=!0,Go.prototype.removeEventListener=function(g,x,R,W){Nme(this,g,x,R,W)},Go.prototype.N=function(){if(Go.aa.N.call(this),this.i){var x,g=this.i;for(x in g.g){for(var R=g.g[x],W=0;W<R.length;W++)kh(R[W]);delete g.g[x],g.h--}}this.F=null},Go.prototype.K=function(g,x,R,W){return this.i.add(String(g),x,!1,R,W)},Go.prototype.L=function(g,x,R,W){return this.i.add(String(g),x,!0,R,W)};class Qet extends Mr{constructor(x,R){super(),this.m=x,this.l=R,this.h=null,this.i=!1,this.g=null}j(x){this.h=arguments,this.g?this.i=!0:Ume(this)}N(){super.N(),this.g&&(a.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function WC(g){Mr.call(this),this.h=g,this.g={}}w(WC,Mr);var jme=[];function Yme(g){le(g.g,function(x,R){this.g.hasOwnProperty(R)&&pz(x)},g),g.g={}}WC.prototype.N=function(){WC.aa.N.call(this),Yme(this)},WC.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var yz=a.JSON.stringify,Jet=a.JSON.parse,Xet=class{stringify(g){return a.JSON.stringify(g,void 0)}parse(g){return a.JSON.parse(g,void 0)}};function vz(){}function Hme(){}vz.prototype.h=null;var GC={OPEN:"a",kb:"b",Ja:"c",wb:"d"};function wz(){ur.call(this,"d")}function bz(){ur.call(this,"c")}w(wz,ur),w(bz,ur);var K_={},zme=null;function iO(){return zme=zme||new Go}function $me(g){ur.call(this,K_.La,g)}function KC(g){const x=iO();_a(x,new $me(x))}function qme(g,x){ur.call(this,K_.STAT_EVENT,g),this.stat=x}function ya(g){const x=iO();_a(x,new qme(x,g))}function Wme(g,x){ur.call(this,K_.Ma,g),this.size=x}function QC(g,x){if("function"!=typeof g)throw Error("Fn must not be null and must be a function");return a.setTimeout(function(){g()},x)}function JC(){this.g=!0}function Pb(g,x,R,W){g.info(function(){return"XMLHTTP TEXT ("+x+"): "+function ntt(g,x){if(!g.g)return x;if(!x)return null;try{var R=JSON.parse(x);if(R)for(g=0;g<R.length;g++)if(Array.isArray(R[g])){var W=R[g];if(!(2>W.length)){var me=W[1];if(Array.isArray(me)&&!(1>me.length)){var ke=me[0];if("noop"!=ke&&"stop"!=ke&&"close"!=ke)for(var ut=1;ut<me.length;ut++)me[ut]=""}}}return yz(R)}catch{return x}}(g,R)+(W?" "+W:"")})}K_.La="serverreachability",w($me,ur),K_.STAT_EVENT="statevent",w(qme,ur),K_.Ma="timingevent",w(Wme,ur),JC.prototype.xa=function(){this.g=!1},JC.prototype.info=function(){};var Tz,sO={NO_ERROR:0,gb:1,tb:2,sb:3,nb:4,rb:5,ub:6,Ia:7,TIMEOUT:8,xb:9},Gme={lb:"complete",Hb:"success",Ja:"error",Ia:"abort",zb:"ready",Ab:"readystatechange",TIMEOUT:"timeout",vb:"incrementaldata",yb:"progress",ob:"downloadprogress",Pb:"uploadprogress"};function oO(){}function Gp(g,x,R,W){this.j=g,this.i=x,this.l=R,this.R=W||1,this.U=new WC(this),this.I=45e3,this.H=null,this.o=!1,this.m=this.A=this.v=this.L=this.F=this.S=this.B=null,this.D=[],this.g=null,this.C=0,this.s=this.u=null,this.X=-1,this.J=!1,this.O=0,this.M=null,this.W=this.K=this.T=this.P=!1,this.h=new Kme}function Kme(){this.i=null,this.g="",this.h=!1}w(oO,vz),oO.prototype.g=function(){return new XMLHttpRequest},oO.prototype.i=function(){return{}},Tz=new oO;var Qme={},Ez={};function Mz(g,x,R){g.L=1,g.v=uO(Ph(x)),g.m=R,g.P=!0,Jme(g,null)}function Jme(g,x){g.F=Date.now(),aO(g),g.A=Ph(g.v);var R=g.A,W=g.R;Array.isArray(W)||(W=[String(W)]),dge(R.i,"t",W),g.C=0,R=g.j.J,g.h=new Kme,g.g=Age(g.j,R?x:null,!g.m),0<g.O&&(g.M=new Qet(f(g.Y,g,g.g),g.O)),x=g.U,R=g.g,W=g.ca;var me="readystatechange";Array.isArray(me)||(me&&(jme[0]=me.toString()),me=jme);for(var ke=0;ke<me.length;ke++){var ut=Rme(R,me[ke],W||x.handleEvent,!1,x.h||x);if(!ut)break;x.g[ut.key]=ut}x=g.H?B(g.H):{},g.m?(g.u||(g.u="POST"),x["Content-Type"]="application/x-www-form-urlencoded",g.g.ea(g.A,g.u,g.m,x)):(g.u="GET",g.g.ea(g.A,g.u,null,x)),KC(),function Zet(g,x,R,W,me,ke){g.info(function(){if(g.g)if(ke)for(var ut="",Br=ke.split("&"),To=0;To<Br.length;To++){var tr=Br[To].split("=");if(1<tr.length){var Ko=tr[0];tr=tr[1];var Qo=Ko.split("_");ut=2<=Qo.length&&"type"==Qo[1]?ut+(Ko+"=")+tr+"&":ut+(Ko+"=redacted&")}}else ut=null;else ut=ke;return"XMLHTTP REQ ("+W+") [attempt "+me+"]: "+x+"\n"+R+"\n"+ut})}(g.i,g.u,g.A,g.l,g.R,g.m)}function Xme(g){return!!g.g&&"GET"==g.u&&2!=g.L&&g.j.Ca}function rtt(g,x){var R=g.C,W=x.indexOf("\n",R);return-1==W?Ez:(R=Number(x.substring(R,W)),isNaN(R)?Qme:(W+=1)+R>x.length?Ez:(x=x.slice(W,W+R),g.C=W+R,x))}function aO(g){g.S=Date.now()+g.I,Zme(g,g.I)}function Zme(g,x){if(null!=g.B)throw Error("WatchDog timer not null");g.B=QC(f(g.ba,g),x)}function Iz(g){g.B&&(a.clearTimeout(g.B),g.B=null)}function XC(g){0==g.j.G||g.J||Ige(g.j,g)}function Q_(g){Iz(g);var x=g.M;x&&"function"==typeof x.ma&&x.ma(),g.M=null,Yme(g.U),g.g&&(x=g.g,g.g=null,x.abort(),x.ma())}function Dz(g,x){try{var R=g.j;if(0!=R.G&&(R.g==g||Cz(R.h,g)))if(!g.K&&Cz(R.h,g)&&3==R.G){try{var W=R.Da.g.parse(x)}catch{W=null}if(Array.isArray(W)&&3==W.length){var me=W;if(0==me[0]){e:if(!R.u){if(R.g){if(!(R.g.F+3e3<g.F))break e;mO(R),fO(R)}kz(R),ya(18)}}else R.za=me[1],0<R.za-R.T&&37500>me[2]&&R.F&&0==R.v&&!R.C&&(R.C=QC(f(R.Za,R),6e3));if(1>=nge(R.h)&&R.ca){try{R.ca()}catch{}R.ca=void 0}}else X_(R,11)}else if((g.K||R.g==g)&&mO(R),!N(x))for(me=R.Da.g.parse(x),x=0;x<me.length;x++){let tr=me[x];if(R.T=tr[0],tr=tr[1],2==R.G)if("c"==tr[0]){R.K=tr[1],R.ia=tr[2];const Ko=tr[3];null!=Ko&&(R.la=Ko,R.j.info("VER="+R.la));const Qo=tr[4];null!=Qo&&(R.Aa=Qo,R.j.info("SVER="+R.Aa));const Ob=tr[5];null!=Ob&&"number"==typeof Ob&&0<Ob&&(R.L=W=1.5*Ob,R.j.info("backChannelRequestTimeoutMs_="+W)),W=R;const nu=g.g;if(nu){const _O=nu.g?nu.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(_O){var ke=W.h;ke.g||-1==_O.indexOf("spdy")&&-1==_O.indexOf("quic")&&-1==_O.indexOf("h2")||(ke.j=ke.l,ke.g=new Set,ke.h&&(Sz(ke,ke.h),ke.h=null))}if(W.D){const Rz=nu.g?nu.g.getResponseHeader("X-HTTP-Session-Id"):null;Rz&&(W.ya=Rz,wi(W.I,W.D,Rz))}}R.G=3,R.l&&R.l.ua(),R.ba&&(R.R=Date.now()-g.F,R.j.info("Handshake RTT: "+R.R+"ms"));var ut=g;if((W=R).qa=Sge(W,W.J?W.ia:null,W.W),ut.K){rge(W.h,ut);var Br=ut,To=W.L;To&&(Br.I=To),Br.B&&(Iz(Br),aO(Br)),W.g=ut}else Ege(W);0<R.i.length&&pO(R)}else"stop"!=tr[0]&&"close"!=tr[0]||X_(R,7);else 3==R.G&&("stop"==tr[0]||"close"==tr[0]?"stop"==tr[0]?X_(R,7):xz(R):"noop"!=tr[0]&&R.l&&R.l.ta(tr),R.v=0)}KC()}catch{}}Gp.prototype.ca=function(g){g=g.target;const x=this.M;x&&3==Rh(g)?x.j():this.Y(g)},Gp.prototype.Y=function(g){try{if(g==this.g)e:{const Qo=Rh(this.g);var x=this.g.Ba();if(this.g.Z(),!(3>Qo)&&(3!=Qo||this.g&&(this.h.h||this.g.oa()||yge(this.g)))){this.J||4!=Qo||7==x||KC(),Iz(this);var R=this.g.Z();this.X=R;t:if(Xme(this)){var W=yge(this.g);g="";var me=W.length,ke=4==Rh(this.g);if(!this.h.i){if(typeof TextDecoder>"u"){Q_(this),XC(this);var ut="";break t}this.h.i=new a.TextDecoder}for(x=0;x<me;x++)this.h.h=!0,g+=this.h.i.decode(W[x],{stream:!(ke&&x==me-1)});W.length=0,this.h.g+=g,this.C=0,ut=this.h.g}else ut=this.g.oa();if(this.o=200==R,function ett(g,x,R,W,me,ke,ut){g.info(function(){return"XMLHTTP RESP ("+W+") [ attempt "+me+"]: "+x+"\n"+R+"\n"+ke+" "+ut})}(this.i,this.u,this.A,this.l,this.R,Qo,R),this.o){if(this.T&&!this.K){t:{if(this.g){var Br,To=this.g;if((Br=To.g?To.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!N(Br)){var tr=Br;break t}}tr=null}if(!(R=tr)){this.o=!1,this.s=3,ya(12),Q_(this),XC(this);break e}Pb(this.i,this.l,R,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,Dz(this,R)}if(this.P){let nu;for(R=!0;!this.J&&this.C<ut.length;){if(nu=rtt(this,ut),nu==Ez){4==Qo&&(this.s=4,ya(14),R=!1),Pb(this.i,this.l,null,"[Incomplete Response]");break}if(nu==Qme){this.s=4,ya(15),Pb(this.i,this.l,ut,"[Invalid Chunk]"),R=!1;break}Pb(this.i,this.l,nu,null),Dz(this,nu)}if(Xme(this)&&0!=this.C&&(this.h.g=this.h.g.slice(this.C),this.C=0),4!=Qo||0!=ut.length||this.h.h||(this.s=1,ya(16),R=!1),this.o=this.o&&R,R){if(0<ut.length&&!this.W){this.W=!0;var Ko=this.j;Ko.g==this&&Ko.ba&&!Ko.M&&(Ko.j.info("Great, no buffering proxy detected. Bytes received: "+ut.length),Pz(Ko),Ko.M=!0,ya(11))}}else Pb(this.i,this.l,ut,"[Invalid Chunked Response]"),Q_(this),XC(this)}else Pb(this.i,this.l,ut,null),Dz(this,ut);4==Qo&&Q_(this),t
1his.o&&!this.J&&(4==Qo?Ige(this.j,this):(this.o=!1,aO(this)))}else(function wtt(g){const x={};g=(g.g&&2<=Rh(g)&&g.g.getAllResponseHeaders()||"").split("\r\n");for(let W=0;W<g.length;W++){if(N(g[W]))continue;var R=ce(g[W]);const me=R[0];if("string"!=typeof(R=R[1]))continue;R=R.trim();const ke=x[me]||[];x[me]=ke,ke.push(R)}!function Q(g,x){for(const R in g)x.call(void 0,g[R],R,g)}(x,function(W){return W.join(", ")})})(this.g),400==R&&0<ut.indexOf("Unknown SID")?(this.s=3,ya(12)):(this.s=0,ya(13)),Q_(this),XC(this)}}}catch{}},Gp.prototype.cancel=function(){this.J=!0,Q_(this)},Gp.prototype.ba=function(){this.B=null;const g=Date.now();0<=g-this.S?(function ttt(g,x){g.info(function(){return"TIMEOUT: "+x})}(this.i,this.A),2!=this.L&&(KC(),ya(17)),Q_(this),this.s=2,XC(this)):Zme(this,this.S-g)};var itt=class{constructor(g,x){this.g=g,this.map=x}};function ege(g){this.l=g||10,g=a.PerformanceNavigationTiming?0<(g=a.performance.getEntriesByType("navigation")).length&&("hq"==g[0].nextHopProtocol||"h2"==g[0].nextHopProtocol):!!(a.chrome&&a.chrome.loadTimes&&a.chrome.loadTimes()&&a.chrome.loadTimes().wasFetchedViaSpdy),this.j=g?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}function tge(g){return!!g.h||!!g.g&&g.g.size>=g.j}function nge(g){return g.h?1:g.g?g.g.size:0}function Cz(g,x){return g.h?g.h==x:!!g.g&&g.g.has(x)}function Sz(g,x){g.g?g.g.add(x):g.h=x}function rge(g,x){g.h&&g.h==x?g.h=null:g.g&&g.g.has(x)&&g.g.delete(x)}function ige(g){if(null!=g.h)return g.i.concat(g.h.D);if(null!=g.g&&0!==g.g.size){let x=g.i;for(const R of g.g.values())x=x.concat(R.D);return x}return M(g.i)}function sge(g,x){if(g.forEach&&"function"==typeof g.forEach)g.forEach(x,void 0);else if(l(g)||"string"==typeof g)Array.prototype.forEach.call(g,x,void 0);else for(var R=function ott(g){if(g.na&&"function"==typeof g.na)return g.na();if(!g.V||"function"!=typeof g.V){if(typeof Map<"u"&&g instanceof Map)return Array.from(g.keys());if(!(typeof Set<"u"&&g instanceof Set)){if(l(g)||"string"==typeof g){var x=[];g=g.length;for(var R=0;R<g;R++)x.push(R);return x}x=[],R=0;for(const W in g)x[R++]=W;return x}}}(g),W=function stt(g){if(g.V&&"function"==typeof g.V)return g.V();if(typeof Map<"u"&&g instanceof Map||typeof Set<"u"&&g instanceof Set)return Array.from(g.values());if("string"==typeof g)return g.split("");if(l(g)){for(var x=[],R=g.length,W=0;W<R;W++)x.push(g[W]);return x}for(W in x=[],R=0,g)x[R++]=g[W];return x}(g),me=W.length,ke=0;ke<me;ke++)x.call(void 0,W[ke],R&&R[ke],g)}ege.prototype.cancel=function(){if(this.i=ige(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(const g of this.g.values())g.cancel();this.g.clear()}};var oge=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function J_(g){if(this.g=this.o=this.j="",this.s=null,this.m=this.l="",this.h=!1,g instanceof J_){this.h=g.h,lO(this,g.j),this.o=g.o,this.g=g.g,cO(this,g.s),this.l=g.l;var x=g.i,R=new tS;R.i=x.i,x.g&&(R.g=new Map(x.g),R.h=x.h),age(this,R),this.m=g.m}else g&&(x=String(g).match(oge))?(this.h=!1,lO(this,x[1]||"",!0),this.o=ZC(x[2]||""),this.g=ZC(x[3]||"",!0),cO(this,x[4]),this.l=ZC(x[5]||"",!0),age(this,x[6]||"",!0),this.m=ZC(x[7]||"")):(this.h=!1,this.i=new tS(null,this.h))}function Ph(g){return new J_(g)}function lO(g,x,R){g.j=R?ZC(x,!0):x,g.j&&(g.j=g.j.replace(/:$/,""))}function cO(g,x){if(x){if(x=Number(x),isNaN(x)||0>x)throw Error("Bad port number "+x);g.s=x}else g.s=null}function age(g,x,R){x instanceof tS?(g.i=x,function ftt(g,x){x&&!g.j&&(Kp(g),g.i=null,g.g.forEach(function(R,W){var me=W.toLowerCase();W!=me&&(cge(this,W),dge(this,me,R))},g)),g.j=x}(g.i,g.h)):(R||(x=eS(x,dtt)),g.i=new tS(x,g.h))}function wi(g,x,R){g.i.set(x,R)}function uO(g){return wi(g,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),g}function ZC(g,x){return g?x?decodeURI(g.replace(/%25/g,"%2525")):decodeURIComponent(g):""}function eS(g,x,R){return"string"==typeof g?(g=encodeURI(g).replace(x,ltt),R&&(g=g.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),g):null}function ltt(g){return"%"+((g=g.charCodeAt(0))>>4&15).toString(16)+(15&g).toString(16)}J_.prototype.toString=function(){var g=[],x=this.j;x&&g.push(eS(x,lge,!0),":");var R=this.g;return(R||"file"==x)&&(g.push("//"),(x=this.o)&&g.push(eS(x,lge,!0),"@"),g.push(encodeURIComponent(String(R)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(R=this.s)&&g.push(":",String(R))),(R=this.l)&&(this.g&&"/"!=R.charAt(0)&&g.push("/"),g.push(eS(R,"/"==R.charAt(0)?utt:ctt,!0))),(R=this.i.toString())&&g.push("?",R),(R=this.m)&&g.push("#",eS(R,htt)),g.join("")};var lge=/[#\/\?@]/g,ctt=/[#\?:]/g,utt=/[#\?]/g,dtt=/[#\?@]/g,htt=/#/g;function tS(g,x){this.h=this.g=null,this.i=g||null,this.j=!!x}function Kp(g){g.g||(g.g=new Map,g.h=0,g.i&&function att(g,x){if(g){g=g.split("&");for(var R=0;R<g.length;R++){var W=g[R].indexOf("="),me=null;if(0<=W){var ke=g[R].substring(0,W);
1me=g[R].substring(W+1)}else ke=g[R];x(ke,me?decodeURIComponent(me.replace(/\+/g," ")):"")}}}(g.i,function(x,R){g.add(decodeURIComponent(x.replace(/\+/g," ")),R)}))}function cge(g,x){Kp(g),x=Rb(g,x),g.g.has(x)&&(g.i=null,g.h-=g.g.get(x).length,g.g.delete(x))}function uge(g,x){return Kp(g),x=Rb(g,x),g.g.has(x)}function dge(g,x,R){cge(g,x),0<R.length&&(g.i=null,g.g.set(Rb(g,x),M(R)),g.h+=R.length)}function Rb(g,x){return x=String(x),g.j&&(x=x.toLowerCase()),x}function Qp(g,x,R,W,me){try{me&&(me.onload=null,me.onerror=null,me.onabort=null,me.ontimeout=null),W(R)}catch{}}function gtt(){this.g=new Xet}function _tt(g,x,R){const W=R||"";try{sge(g,function(me,ke){let ut=me;c(me)&&(ut=yz(me)),x.push(W+ke+"="+encodeURIComponent(ut))})}catch(me){throw x.push(W+"type="+encodeURIComponent("_badmap")),me}}function nS(g){this.l=g.Ub||null,this.j=g.eb||!1}function dO(g,x){Go.call(this),this.D=g,this.o=x,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.u=new Headers,this.h=null,this.B="GET",this.A="",this.g=!1,this.v=this.j=this.l=null}function hge(g){g.j.read().then(g.Pa.bind(g)).catch(g.ga.bind(g))}function rS(g){g.readyState=4,g.l=null,g.j=null,g.v=null,iS(g)}function iS(g){g.onreadystatechange&&g.onreadystatechange.call(g)}function fge(g){let x="";return le(g,function(R,W){x+=W,x+=":",x+=R,x+="\r\n"}),x}function Az(g,x,R){e:{for(W in R){var W=!1;break e}W=!0}W||(R=fge(R),"string"==typeof g?null!=R&&encodeURIComponent(String(R)):wi(g,x,R))}function Qi(g){Go.call(this),this.headers=new Map,this.o=g||null,this.h=!1,this.v=this.g=null,this.D="",this.m=0,this.l="",this.j=this.B=this.u=this.A=!1,this.I=null,this.H="",this.J=!1}(n=tS.prototype).add=function(g,x){Kp(this),this.i=null,g=Rb(this,g);var R=this.g.get(g);return R||this.g.set(g,R=[]),R.push(x),this.h+=1,this},n.forEach=function(g,x){Kp(this),this.g.forEach(function(R,W){R.forEach(function(me){g.call(x,me,W,this)},this)},this)},n.na=function(){Kp(this);const g=Array.from(this.g.values()),x=Array.from(this.g.keys()),R=[];for(let W=0;W<x.length;W++){const me=g[W];for(let ke=0;ke<me.length;ke++)R.push(x[W])}return R},n.V=function(g){Kp(this);let x=[];if("string"==typeof g)uge(this,g)&&(x=x.concat(this.g.get(Rb(this,g))));else{g=Array.from(this.g.values());for(let R=0;R<g.length;R++)x=x.concat(g[R])}return x},n.set=function(g,x){return Kp(this),this.i=null,uge(this,g=Rb(this,g))&&(this.h-=this.g.get(g).length),this.g.set(g,[x]),this.h+=1,this},n.get=function(g,x){return g&&0<(g=this.V(g)).length?String(g[0]):x},n.toString=function(){if(this.i)return this.i;if(!this.g)return"";const g=[],x=Array.from(this.g.keys());for(var R=0;R<x.length;R++){var W=x[R];const ke=encodeURIComponent(String(W)),ut=this.V(W);for(W=0;W<ut.length;W++){var me=ke;""!==ut[W]&&(me+="="+encodeURIComponent(String(ut[W]))),g.push(me)}}return this.i=g.join("&")},w(nS,vz),nS.prototype.g=function(){return new dO(this.l,this.j)},nS.prototype.i=function(g){return function(){return g}}({}),w(dO,Go),(n=dO.prototype).open=function(g,x){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.B=g,this.A=x,this.readyState=1,iS(this)},n.send=function(g){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;const x={headers:this.u,method:this.B,credentials:this.m,cache:void 0};g&&(x.body=g),(this.D||a).fetch(new Request(this.A,x)).then(this.Sa.bind(this),this.ga.bind(this))},n.abort=function(){this.response=this.responseText="",this.u=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,rS(this)),this.readyState=0},n.Sa=function(g){if(this.g&&(this.l=g,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=g.headers,this.readyState=2,iS(this)),this.g&&(this.readyState=3,iS(this),this.g)))if("arraybuffer"===this.responseType)g.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(typeof a.ReadableStream<"u"&&"body"in g){if(this.j=g.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.v=new TextDecoder;hge(this)}else g.text().then(this.Ra.bind(this),this.ga.bind(this))},n.Pa=function(g){if(this.g){if(this.o&&g.value)this.response.push(g.value);else if(!this.o){var x=g.value?g.value:new Uint8Array(0);(x=this.v.decode(x,{stream:!g.done}))&&(this.response=this.responseText+=x)}g.done?rS(this):iS(this),3==this.readyState&&hge(this)}},n.Ra=function(g){this.g&&(this.response=this.responseText=g,rS(this))},n.Qa=function(g){this.g&&(this.response=g,rS(this))},n.ga=function(){this.g&&rS(this)},n.setRequestHeader=function(g,x){this.u.append(g,x)},n.getResponseHeader=function(g){return this.h&&this.h.get(g.toLowerCase())||""},n.getAllResponseHeaders=function(){if(!this.h)return"";const g=[],x=this.h.entries();for(var R=x.next();!R.done;)g.push((R=R.value)[0]+": "+R[1]),R=x.next();return g.join("\r\n")},Object.defineProperty(dO.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(g){this.m=g?"include":"same-origin"}}),w(Qi,Go);var ytt=/^https?$/i,vtt=["POST","PUT"];function pge(g,x){g.h=!1,g.g&&(g.j=!0,g.g.abort(),g.j=!1),g.l=x,g.m=5,mge(g),hO(g)}function mge(g){g.A||(g.A=!0,_a(g,"complete"),_a(g,"error"))}function gge(g){if(g.h&&typeof o<"u"&&(!g.v[1]||4!=Rh(g)||2!=g.Z()))if(g.u&&4==Rh(g))Vme(g.Ea,0,g);else if(_a(g,"readystatechange"),4==Rh(g)){g.h=!1;try{const ut=g.Z();e:switch(ut){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var x=!0;break e;default:x=!1}var R;if(!(R=x)){var W;if(W=0===ut){var me=String(g.D).match(oge)[1]||null;!me&&a.self&&a.self.location&&(me=a.self.location.protocol.slice(0,-1)),W=!ytt.test(me?me.toLowerCase():"")}R=W}if(R)_a(g,"complete"),_a(g,"success");else{g.m=6;try{var ke=2<Rh(g)?g.g.statusText:""}catch{ke=""}g.l=ke+" ["+g.Z()+"]",mge(g)}}finally{hO(g)}}}function hO(g,x){if(g.g){_ge(g);const R=g.g,W=g.v[0]?()=>{}:null;g.g=null,g.v=null,x||_a(g,"ready");try{R.onreadystatechange=W}catch{}}}function _ge(g){g.I&&(a.clearTimeout(g.I),g.I=null)}function Rh(g){return g.g?g.g.readyState:0}function yge(g){try{if(!g.g)return null;if("response"in g.g)return g.g.response;switch(g.H){case"":case"text":return g.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in g.g)return g.g.mozResponseArrayBuffer}return null}catch{return null}}
vendor: 1,173 bytes, line 1
1function sS(g,x,R){return R&&R.internalChannelParams&&R.internalChannelParams[g]||x}function vge(g){this.Aa=0,this.i=[],this.j=new JC,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=sS("failFast",!1,g),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=sS("baseRetryDelayMs",5e3,g),this.cb=sS("retryDelaySeedMs",1e4,g),this.Wa=sS("forwardChannelMaxRetries",2,g),this.wa=sS("forwardChannelRequestTimeoutMs",2e4,g),this.pa=g&&g.xmlHttpFactory||void 0,this.Xa=g&&g.Tb||void 0,this.Ca=g&&g.useFetchStreams||!1,this.L=void 0,this.J=g&&g.supportsCrossDomainXhr||!1,this.K="",this.h=new ege(g&&g.concurrentRequestLimit),this.Da=new gtt,this.P=g&&g.fastHandshake||!1,this.O=g&&g.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=g&&g.Rb||!1,g&&g.xa&&this.j.xa(),g&&g.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&g&&g.detectBufferingProxy||!1,this.ja=void 0,g&&g.longPollingTimeout&&0<g.longPollingTimeout&&(this.ja=g.longPollingTimeout),this.ca=void 0,this.R=0,this.M=!1,this.ka=this.A=null}function xz(g){if(wge(g),3==g.G){var x=g.U++,R=Ph(g.I);
1if(wi(R,"SID",g.K),wi(R,"RID",x),wi(R,"TYPE","terminate"),oS(g,R),(x=new Gp(g,g.j,x)).L=2,x.v=uO(Ph(R)),R=!1,a.navigator&&a.navigator.sendBeacon)try{R=a.navigator.sendBeacon(x.v.toString(),"")}catch{}!R&&a.Image&&((new Image).src=x.v,R=!0),R||(x.g=Age(x.j,null),x.g.ea(x.v)),x.F=Date.now(),aO(x)}Cge(g)}function fO(g){g.g&&(Pz(g),g.g.cancel(),g.g=null)}function wge(g){fO(g),g.u&&(a.clearTimeout(g.u),g.u=null),mO(g),g.h.cancel(),g.s&&("number"==typeof g.s&&a.clearTimeout(g.s),g.s=null)}function pO(g){if(!tge(g.h)&&!g.s){g.s=!0;var x=g.Ga;ct||Or(),kt||(ct(),kt=!0),$t.add(x,g),g.B=0}}function bge(g,x){var R;R=x?x.l:g.U++;const W=Ph(g.I);wi(W,"SID",g.K),wi(W,"RID",R),wi(W,"AID",g.T),oS(g,W),g.m&&g.o&&Az(W,g.m,g.o),R=new Gp(g,g.j,R,g.B+1),null===g.m&&(R.H=g.o),x&&(g.i=x.D.concat(g.i)),x=Tge(g,R,1e3),R.I=Math.round(.5*g.wa)+Math.round(.5*g.wa*Math.random()),Sz(g.h,R),Mz(R,W,x)}function oS(g,x){g.H&&le(g.H,function(R,W){wi(x,W,R)}),g.l&&sge({},function(R,W){wi(x,W,R)})}function Tge(g,x,R){R=Math.min(g.i.length,R);var W=g.l?f(g.l.Na,g.l,g):null;e:{var me=g.i;let ke=-1;for(;;){const ut=["count="+R];-1==ke?0<R?(ke=me[0].g,ut.push("ofs="+ke)):ke=0:ut.push("ofs="+ke);let Br=!0;for(let To=0;To<R;To++){let tr=me[To].g;const Ko=me[To].map;if(tr-=ke,0>tr)ke=Math.max(0,me[To].g-100),Br=!1;else try{_tt(Ko,ut,"req"+tr+"_")}catch{W&&W(Ko)}}if(Br){W=ut.join("&");break e}}}return g=g.i.splice(0,R),x.D=g,W}function Ege(g){if(!g.g&&!g.u){g.Y=1;var x=g.Fa;ct||Or(),kt||(ct(),kt=!0),$t.add(x,g),g.v=0}}function kz(g){return!(g.g||g.u||3<=g.v||(g.Y++,g.u=QC(f(g.Fa,g),Dge(g,g.v)),g.v++,0))}function Pz(g){null!=g.A&&(a.clearTimeout(g.A),g.A=null)}function Mge(g){g.g=new Gp(g,g.j,"rpc",g.Y),null===g.m&&(g.g.H=g.o),g.g.O=0;var x=Ph(g.qa);wi(x,"RID","rpc"),wi(x,"SID",g.K),wi(x,"AID",g.T),wi(x,"CI",g.F?"0":"1"),!g.F&&g.ja&&wi(x,"TO",g.ja),wi(x,"TYPE","xmlhttp"),oS(g,x),g.m&&g.o&&Az(x,g.m,g.o),g.L&&(g.g.I=g.L);var R=g.g;g=g.ia,R.L=1,R.v=uO(Ph(x)),R.m=null,R.P=!0,Jme(R,g)}function mO(g){null!=g.C&&(a.clearTimeout(g.C),g.C=null)}function Ige(g,x){var R=null;if(g.g==x){mO(g),Pz(g),g.g=null;var W=2}else{if(!Cz(g.h,x))return;R=x.D,rge(g.h,x),W=1}if(0!=g.G)if(x.o)if(1==W){R=x.m?x.m.length:0,x=Date.now()-x.F;var me=g.B;_a(W=iO(),new Wme(W,R)),pO(g)}else Ege(g);else if(3==(me=x.s)||0==me&&0<x.X||!(1==W&&function btt(g,x){return!(nge(g.h)>=g.h.j-(g.s?1:0)||(g.s?(g.i=x.D.concat(g.i),0):1==g.G||2==g.G||g.B>=(g.Va?0:g.Wa)||(g.s=QC(f(g.Ga,g,x),Dge(g,g.B)),g.B++,0)))}(g,x)||2==W&&kz(g)))switch(R&&0<R.length&&(x=g.h,x.i=x.i.concat(R)),me){case 1:X_(g,5);break;case 4:X_(g,10);break;case 3:X_(g,6);break;default:X_(g,2)}}function Dge(g,x){let R=g.Ta+Math.floor(Math.random()*g.cb);return g.isActive()||(R*=2),R*x}function X_(g,x){if(g.j.info("Error code "+x),2==x){var R=f(g.fb,g),W=g.Xa;const me=!W;W=new J_(W||"//www.google.com/images/cleardot.gif"),a.location&&"http"==a.location.protocol||lO(W,"https"),uO(W),me?function ptt(g,x){const R=new JC;if(a.Image){const W=new Image;W.onload=_(Qp,R,"TestLoadImage: loaded",!0,x,W),W.onerror=_(Qp,R,"TestLoadImage: error",!1,x,W),W.onabort=_(Qp,R,"TestLoadImage: abort",!1,x,W),W.ontimeout=_(Qp,R,"TestLoadImage: timeout",!1,x,W),a.setTimeout(function(){W.ontimeout&&W.ontimeout()},1e4),W.src=g}else x(!1)}(W.toString(),R):function mtt(g,x){new JC;const W=new AbortController,me=setTimeout(()=>{W.abort(),Qp(0,0,!1,x)},1e4);fetch(g,{signal:W.signal}).then(ke=>{clearTimeout(me),Qp(0,0,!!ke.ok,x)}).catch(()=>{clearTimeout(me),Qp(0,0,!1,x)})}(W.toString(),R)}else ya(2);g.G=0,g.l&&g.l.sa(x),Cge(g),wge(g)}function Cge(g){if(g.G=0,g.ka=[],g.l){const x=ige(g.h);(0!=x.length||0!=g.i.length)&&(S(g.ka,x),S(g.ka,g.i),g.h.i.length=0,M(g.i),g.i.length=0),g.l.ra()}}function Sge(g,x,R){var W=R instanceof J_?Ph(R):new J_(R);if(""!=W.g)x&&(W.g=x+"."+W.g),cO(W,W.s);else{var me=a.location;W=me.protocol,x=x?x+"."+me.hostname:me.hostname,me=+me.port;var ke=new J_(null);W&&lO(ke,W),x&&(ke.g=x),me&&cO(ke,me),R&&(ke.l=R),W=ke}return x=g.ya,(R=g.D)&&x&&wi(W,R,x),wi(W,"VER",g.la),oS(g,W),W}function Age(g,x,R){if(x&&!g.J)throw Error("Can't create secondary domain capable XhrIo object.");return(x=new Qi(g.Ca&&!g.pa?new nS({eb:R}):g.pa)).Ha(g.J),x}function xge(){}function gO(){}function Ol(g,x){Go.call(this),this.g=new vge(x),this.l=g,this.h=x&&x.messageUrlParams||null,g=x&&x.messageHeaders||null,x&&x.clientProtocolHeaderRequired&&(g?g["X-Client-Protocol"]="webchannel":g={"X-Client-Protocol":"webchannel"}),this.g.o=g,g=x&&x.initMessageHeaders||null,x&&x.messageContentType&&(g?g["X-WebChannel-Content-Type"]=x.messageContentType:g={"X-WebChannel-Content-Type":x.messageContentType}),x&&x.va&&(g?g["X-WebChannel-Client-Profile"]=x.va:g={"X-WebChannel-Client-Profile":x.va}),this.g.S=g,(g=x&&x.Sb)&&!N(g)&&(this.g.m=g),this.v=x&&x.supportsCrossDomainXhr||!1,this.u=x&&x.sendRawJson||!1,(x=x&&x.httpSessionIdParam)&&!N(x)&&(this.g.D=x,null!==(g=this.h)&&x in g&&x in(g=this.h)&&delete g[x]),this.j=new Lb(this)}function kge(g){wz.call(this),g.__headers__&&(this.headers=g.__headers__,this.statusCode=g.__status__,delete g.__headers__,delete g.__status__);var x=g.__sm__;if(x){e:{for(const R in x){g=R;break e}g=void 0}(this.i=g)&&(g=this.i,x=null!==x&&g in x?x[g]:void 0),this.data=x}else this.data=g}function Pge(){bz.call(this),this.status=1}
1function Lb(g){this.g=g}(n=Qi.prototype).Ha=function(g){this.J=g},n.ea=function(g,x,R,W){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+g);x=x?x.toUpperCase():"GET",this.D=g,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():Tz.g(),this.v=function Bme(g){return g.h||(g.h=g.i())}(this.o?this.o:Tz),this.g.onreadystatechange=f(this.Ea,this);try{this.B=!0,this.g.open(x,String(g),!0),this.B=!1}catch(ke){return void pge(this,ke)}if(g=R||"",R=new Map(this.headers),W)if(Object.getPrototypeOf(W)===Object.prototype)for(var me in W)R.set(me,W[me]);else{if("function"!=typeof W.keys||"function"!=typeof W.get)throw Error("Unknown input type for opt_headers: "+String(W));for(const ke of W.keys())R.set(ke,W.get(ke))}W=Array.from(R.keys()).find(ke=>"content-type"==ke.toLowerCase()),me=a.FormData&&g instanceof a.FormData,!(0<=Array.prototype.indexOf.call(vtt,x,void 0))||W||me||R.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[ke,ut]of R)this.g.setRequestHeader(ke,ut);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{_ge(this),this.u=!0,this.g.send(g),this.u=!1}catch(ke){pge(this,ke)}},n.abort=function(g){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=g||7,_a(this,"complete"),_a(this,"abort"),hO(this))},n.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),hO(this,!0)),Qi.aa.N.call(this)},n.Ea=function(){this.s||(this.B||this.u||this.j?gge(this):this.bb())},n.bb=function(){gge(this)},n.isActive=function(){return!!this.g},n.Z=function(){try{return 2<Rh(this)?this.g.status:-1}catch{return-1}},n.oa=function(){try{return this.g?this.g.responseText:""}catch{return""}},n.Oa=function(g){if(this.g){var x=this.g.responseText;return g&&0==x.indexOf(g)&&(x=x.substring(g.length)),Jet(x)}},n.Ba=function(){return this.m},n.Ka=function(){return"string"==typeof this.l?this.l:String(this.l)},(n=vge.prototype).la=8,n.G=1,n.connect=function(g,x,R,W){ya(0),this.W=g,this.H=x||{},R&&void 0!==W&&(this.H.OSID=R,this.H.OAID=W),this.F=this.X,this.I=Sge(this,null,this.W),pO(this)},n.Ga=function(g){if(this.s)if(this.s=null,1==this.G){if(!g){this.U=Math.floor(1e5*Math.random()),g=this.U++;const me=new Gp(this,this.j,g);let ke=this.o;if(this.S&&(ke?(ke=B(ke),oe(ke,this.S)):ke=this.S),null!==this.m||this.O||(me.H=ke,ke=null),this.P)e:{for(var x=0,R=0;R<this.i.length;R++){var W=this.i[R];if(void 0===(W="__data__"in W.map&&"string"==typeof(W=W.map.__data__)?W.length:void 0))break;if(4096<(x+=W)){x=R;break e}if(4096===x||R===this.i.length-1){x=R+1;break e}}x=1e3}else x=1e3;x=Tge(this,me,x),wi(R=Ph(this.I),"RID",g),wi(R,"CVER",22),this.D&&wi(R,"X-HTTP-Session-Id",this.D),oS(this,R),ke&&(this.O?x="headers="+encodeURIComponent(String(fge(ke)))+"&"+x:this.m&&Az(R,this.m,ke)),Sz(this.h,me),this.Ua&&wi(R,"TYPE","init"),this.P?(wi(R,"$req",x),wi(R,"SID","null"),me.T=!0,Mz(me,R,null)):Mz(me,R,x),this.G=2}}else 3==this.G&&(g?bge(this,g):0==this.i.length||tge(this.h)||bge(this))},n.Fa=function(){if(this.u=null,Mge(this),this.ba&&!(this.M||null==this.g||0>=this.R)){var g=2*this.R;this.j.info("BP detection timer enabled: "+g),this.A=QC(f(this.ab,this),g)}},n.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,ya(10),fO(this),Mge(this))},n.Za=function(){null!=this.C&&(this.C=null,fO(this),kz(this),ya(19))},n.fb=function(g){g?(this.j.info("Successfully pinged google.com"),ya(2)):(this.j.info("Failed to ping google.com"),ya(1))},n.isActive=function(){return!!this.l&&this.l.isActive(this)},(n=xge.prototype).ua=function(){},n.ta=function(){},n.sa=function(){},n.ra=function(){},n.isActive=function(){return!0},n.Na=function(){},gO.prototype.g=function(g,x){return new Ol(g,x)},w(Ol,Go),Ol.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},Ol.prototype.close=function(){xz(this.g)},Ol.prototype.o=function(g){var x=this.g;if("string"==typeof g){var R={};R.__data__=g,g=R}else this.u&&((R={}).__data__=yz(g),g=R);x.i.push(new itt(x.Ya++,g)),3==x.G&&pO(x)},Ol.prototype.N=function(){this.g.l=null,delete this.j,xz(this.g),delete this.g,Ol.aa.N.call(this)},w(kge,wz),w(Pge,bz),w(Lb,xge),Lb.prototype.ua=function(){_a(this.g,"a")},Lb.prototype.ta=function(g){_a(this.g,new kge(g))},Lb.prototype.sa=function(g){_a(this.g,new Pge)},Lb.prototype.ra=function(){_a(this.g,"b")},gO.prototype.createWebChannel=gO.prototype.g,Ol.prototype.send=Ol.prototype.o,Ol.prototype.open=Ol.prototype.m,Ol.prototype.close=Ol.prototype.close,tX=Kd.createWebChannelTransport=function(){return new gO},eX=Kd.getStatEventTarget=function(){return iO()},ZJ=Kd.Event=K_,BV=Kd.Stat={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},sO.NO_ERROR=0,sO.TIMEOUT=8,sO.HTTP_ERROR=6,fx=Kd.ErrorCode=sO,Gme.COMPLETE="complete",XJ=Kd.EventType=Gme,Hme.EventType=GC,GC.OPEN="a",GC.CLOSE="b",GC.ERROR="c",GC.MESSAGE="d",Go.prototype.listen=Go.prototype.K,MM=Kd.WebChannel=Hme,JJ=Kd.FetchXmlHttpFactory=nS,Qi.prototype.listenOnce=Qi.prototype.L,Qi.prototype.getLastError=Qi.prototype.Ka,Qi.prototype.getLastErrorCode=Qi.prototype.Ba,Qi.prototype.getStatus=Qi.prototype.Z,Qi.prototype.getResponseJson=Qi.prototype.Oa,Qi.prototype.getResponseText=Qi.prototype.oa,Qi.prototype.send=Qi.prototype.ea,Qi.prototype.setWithCredentials=Qi.prototype.Ha,QJ=Kd.XhrIo=Qi}).apply(typeof hx<"u"?hx:typeof self<"u"?self:typeof window<"u"?window:{});const nX="@firebase/firestore";class Ws{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}}Ws.UNAUTHENTICATED=new Ws(null),Ws.GOOGLE_CREDENTIALS=new Ws("google-credentials-uid"),Ws.FIRST_PARTY=new Ws("first-party-uid"),Ws.MOCK_USER=new Ws("mock-user");let E0="10.12.1";const Pf=new Tl.Vy("@firebase/firestore");function M0(){return Pf.logLevel}function We(n,...e){if(Pf.logLevel<=Tl.$b.DEBUG){const t=e.map(HV);Pf.debug(`Firestore (${E0}): ${n}`,...t)}}function cs(n,...e){if(Pf.logLevel<=Tl.$b.ERROR){const t=e.map(HV);Pf.error(`Firestore (${E0}): ${n}`,...t)}}function Ya(n,...e){if(Pf.logLevel<=Tl.$b.WARN){const t=e.map(HV);Pf.warn(`Firestore (${E0}): ${n}`,...t)}}function HV(n){if("string"==typeof n)return n;try{return JSON.stringify(n)}catch{return n}}function St(n="Unexpected state"){const e=`FIRESTORE (${E0}) INTERNAL ASSERTION FAILED: `+n;throw cs(e),new Error(e)}function Rt(n,e){n||St()}function lt(n,e){return n}const xe={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 He extends K.g{constructor(e,t){super(e,t),this.code=e,this.message=t,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class Ls{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}class rX{constructor(e,t){this.user=t,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}}class Cke{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,t){e.enqueueRetryable(()=>t(Ws.UNAUTHENTICATED))}shutdown(){}}class Ske{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 Ake{constructor(e){this.t=e,this.currentUser=Ws.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,t){var r=this;let i=this.i;const s=c=>this.i!==i?(i=this.i,t(c)):Promise.resolve();let o=new Ls;this.o=()=>{this.i++,this.currentUser=this.u(),o.resolve(),o=new Ls,e.enqueueRetryable(()=>s(this.currentUser))};const a=()=>{const c=o;e.enqueueRetryable((0,ee.A)(function*(){yield c.promise,yield s(r.currentUser)}))},l=c=>{We("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=c,this.auth.addAuthTokenListener(this.o),a()};this.t.onInit(c=>l(c)),setTimeout(()=>{if(!this.auth){const c=this.t.getImmediate({optional:!0});c?l(c):(We("FirebaseAuthCredentialsProvider","Auth not yet detected"),o.resolve(),o=new Ls)}},0),a()}getToken(){const e=this.i,t=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(t).then(r=>this.i!==e?(We("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):r?(Rt("string"==typeof r.accessToken),new rX(r.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 Rt(null===e||"string"==typeof e),new Ws(e)}}class xke{constructor(e,t,r){this.l=e,this.h=t,this.P=r,this.type="FirstParty",this.user=Ws.FIRST_PARTY,this.I=new Map}T(){return this.P?this.P():null}get headers(){this.I.set("X-Goog-AuthUser",this.l);const e=this.T();return e&&this.I.set("Authorization",e),this.h&&this.I.set("X-Goog-Iam-Authorization-Token",this.h),this.I}}class kke{constructor(e,t,r){this.l=e,this.h=t,this.P=r}getToken(){return Promise.resolve(new xke(this.l,this.h,this.P))}start(e,t){e.enqueueRetryable(()=>t(Ws.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class iX{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 Pke{constructor(e){this.A=e,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(e,t){const r=s=>{null!=s.error&&We("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${s.error.message}`);const o=s.token!==this.R;return this.R=s.token,We("FirebaseAppCheckTokenProvider",`Received ${o?"new":"existing"} token.`),o?t(s.token):Promise.resolve()};this.o=s=>{e.enqueueRetryable(()=>r(s))};const i=s=>{We("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=s,this.appCheck.addTokenListener(this.o)};this.A.onInit(s=>i(s)),setTimeout(()=>{if(!this.appCheck){const s=this.A.getImmediate({optional:!0});s?i(s):We("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then(t=>t?(Rt("string"==typeof t.token),this.R=t.token,new iX(t.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function Rke(n){const e=typeof self<"u"&&(self.crypto||self.msCrypto),t=new Uint8Array(n);if(e&&"function"==typeof e.getRandomValues)e.getRandomValues(t);else for(let r=0;r<n;r++)t[r]=Math.floor(256*Math.random());return t}class sX{static newId(){const t=62*Math.floor(256/62);let r="";for(;r.length<20;){const i=Rke(40);for(let s=0;s<i.length;++s)r.length<20&&i[s]<t&&(r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(i[s]%62))}return r}}function rn(n,e){return n<e?-1:n>e?1:0}function I0(n,e,t){return n.length===e.length&&n.every((r,i)=>t(r,e[i]))}function oX(n){return n+"\0"}class Di{constructor(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new He(xe.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new He(xe.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<-62135596800)throw new He(xe.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new He(xe.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}static now(){return Di.fromMillis(Date.now())}static fromDate(e){return Di.fromMillis(e.getTime())}static fromMillis(e){const t=Math.floor(e/1e3),r=Math.floor(1e6*(e-1e3*t));return new Di(t,r)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(e){return this.seconds===e.seconds?rn(this.nanoseconds,e.nanoseconds):rn(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 Ft{constructor(e){this.timestamp=e}static fromTimestamp(e){return new Ft(e)}static min(){return new Ft(new Di(0,0))}static max(){return new Ft(new Di(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 IM{constructor(e,t,r){void 0===t?t=0:t>e.length&&St(),void 0===r?r=e.length-t:r>e.length-t&&St(),this.segments=e,this.offset=t,this.len=r}get length(){return this.len}isEqual(e){return 0===IM.comparator(this,e)}child(e){const t=this.segments.slice(this.offset,this.limit());return e instanceof IM?e.forEach(r=>{t.push(r)}):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,r=this.limit();t<r;t++)e(this.segments[t])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,t){const r=Math.min(e.length,t.length);for(let i=0;i<r;i++){const s=e.get(i),o=t.get(i);if(s<o)return-1;if(s>o)return 1}return e.length<t.length?-1:e.length>t.length?1:0}}class On extends IM{construct(e,t,r){return new On(e,t,r)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...e){const t=[];for(const r of e){if(r.indexOf("//")>=0)throw new He(xe.INVALID_ARGUMENT,`Invalid segment (${r}). Paths must not contain // in them.`);t.push(...r.split("/").filter(i=>i.length>0))}return new On(t)}static emptyPath(){return new On([])}}const Lke=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class ci extends IM{construct(e,t,r){return new ci(e,t,r)}static isValidIdentifier(e){return Lke.test(e)}canonicalString(){return this.toArray().map(e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),ci.isValidIdentifier(e)||(e="`"+e+"`"),e)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new ci(["__name__"])}static fromServerFormat(e){const t=[];let r="",i=0;const s=()=>
vendor: 1,339 bytes, line 1
1{if(0===r.length)throw new He(xe.INVALID_ARGUMENT,`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);t.push(r),r=""};let o=!1;for(;i<e.length;){const a=e[i];if("\\"===a){if(i+1===e.length)throw new He(xe.INVALID_ARGUMENT,"Path has trailing escape character: "+e);const l=e[i+1];if("\\"!==l&&"."!==l&&"`"!==l)throw new He(xe.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);r+=l,i+=2}else"`"===a?(o=!o,i++):"."!==a||o?(r+=a,i++):(s(),i++)}if(s(),o)throw new He(xe.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new ci(t)}static emptyPath(){return new ci([])}}class mt{constructor(e){this.path=e}static fromPath(e){return new mt(On.fromString(e))}static fromName(e){return new mt(On.fromString(e).popFirst(5))}static empty(){return new mt(On.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===On.comparator(this.path,e.path)}toString(){return this.path.toString()}static comparator(e,t){return On.comparator(e.path,t.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new mt(new On(e.slice()))}}
1class D0{constructor(e,t,r,i){this.indexId=e,this.collectionGroup=t,this.fields=r,this.indexState=i}}function zV(n){return n.fields.find(e=>2===e.kind)}function _g(n){return n.fields.filter(e=>2!==e.kind)}D0.UNKNOWN_ID=-1;class yg{constructor(e,t){this.fieldPath=e,this.kind=t}}class C0{constructor(e,t){this.sequenceNumber=e,this.offset=t}static empty(){return new C0(0,El.min())}}function aX(n,e){const t=n.toTimestamp().seconds,r=n.toTimestamp().nanoseconds+1,i=Ft.fromTimestamp(1e9===r?new Di(t+1,0):new Di(t,r));return new El(i,mt.empty(),e)}function lX(n){return new El(n.readTime,n.key,-1)}class El{constructor(e,t,r){this.readTime=e,this.documentKey=t,this.largestBatchId=r}static min(){return new El(Ft.min(),mt.empty(),-1)}static max(){return new El(Ft.max(),mt.empty(),-1)}}function $V(n,e){let t=n.readTime.compareTo(e.readTime);return 0!==t?t:(t=mt.comparator(n.documentKey,e.documentKey),0!==t?t:rn(n.largestBatchId,e.largestBatchId))}const cX="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class uX{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(e=>e())}}function Rf(n){return qV.apply(this,arguments)}function qV(){return(qV=(0,ee.A)(function*(n){if(n.code!==xe.FAILED_PRECONDITION||n.message!==cX)throw n;We("LocalStore","Unexpectedly lost primary lease")})).apply(this,arguments)}class ye{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&&St(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(t,this.error):this.wrapSuccess(e,this.result):new ye((r,i)=>{this.nextCallback=s=>{this.wrapSuccess(e,s).next(r,i)},this.catchCallback=s=>{this.wrapFailure(t,s).next(r,i)}})}toPromise(){return new Promise((e,t)=>{this.next(e,t)})}wrapUserFunction(e){try{const t=e();return t instanceof ye?t:ye.resolve(t)}catch(t){return ye.reject(t)}}wrapSuccess(e,t){return e?this.wrapUserFunction(()=>e(t)):ye.resolve(t)}wrapFailure(e,t){return e?this.wrapUserFunction(()=>e(t)):ye.reject(t)}static resolve(e){return new ye((t,r)=>{t(e)})}static reject(e){return new ye((t,r)=>{r(e)})}static waitFor(e){return new ye((t,r)=>{let i=0,s=0,o=!1;e.forEach(a=>{++i,a.next(()=>{++s,o&&s===i&&t()},l=>r(l))}),o=!0,s===i&&t()})}static or(e){let t=ye.resolve(!1);for(const r of e)t=t.next(i=>i?ye.resolve(i):r());return t}static forEach(e,t){const r=[];return e.forEach((i,s)=>{r.push(t.call(this,i,s))}),this.waitFor(r)}static mapArray(e,t){return new ye((r,i)=>{const s=e.length,o=new Array(s);let a=0;for(let l=0;l<s;l++){const c=l;t(e[c]).next(u=>{o[c]=u,++a,a===s&&r(o)},u=>i(u))}})}static doWhile(e,t){return new ye((r,i)=>{const s=()=>{!0===e()?t().next(()=>{s()},i):r()};s()})}}class px{constructor(e,t){this.action=e,this.transaction=t,this.aborted=!1,this.V=new Ls,this.transaction.oncomplete=()=>{this.V.resolve()},this.transaction.onabort=()=>{t.error?this.V.reject(new DM(e,t.error)):this.V.resolve()},this.transaction.onerror=r=>{const i=WV(r.target.error);this.V.reject(new DM(e,i))}}static open(e,t,r,i){try{return new px(t,e.transaction(i,r))}catch(s){throw new DM(t,s)}}get m(){return this.V.promise}abort(e){e&&this.V.reject(e),this.aborted||(We("SimpleDb","Aborting transaction:",e?e.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())}g(){const e=this.transaction;this.aborted||"function"!=typeof e.commit||e.commit()}store(e){const t=this.transaction.objectStore(e);return new Vke(t)}}class ju{constructor(e,t,r){this.name=e,this.version=t,this.p=r,12.2===ju.S((0,K.ZQ)())&&cs("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 We("SimpleDb","Removing database:",e),vg(window.indexedDB.deleteDatabase(e)).toPromise()}static D(){if(!(0,K.zW)())return!1;if(ju.C())return!0;const e=(0,K.ZQ)(),t=ju.S(e),r=0<t&&t<10,i=dX(e),s=0<i&&i<4.5;return!(e.indexOf("MSIE ")>0||e.indexOf("Trident/")>0||e.indexOf("Edge/")>0||r||s)}static C(){var e;return typeof process<"u"&&"YES"===(null===(e=process.__PRIVATE_env)||void 0===e?void 0:e.v)}
1static F(e,t){return e.store(t)}static S(e){const t=e.match(/i(?:phone|pad|pod) os ([\d_]+)/i),r=t?t[1].split("_").slice(0,2).join("."):"-1";return Number(r)}M(e){var t=this;return(0,ee.A)(function*(){return t.db||(We("SimpleDb","Opening database:",t.name),t.db=yield new Promise((r,i)=>{const s=indexedDB.open(t.name,t.version);s.onsuccess=o=>{r(o.target.result)},s.onblocked=()=>{i(new DM(e,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},s.onerror=o=>{const a=o.target.error;i("VersionError"===a.name?new He(xe.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"===a.name?new He(xe.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: "+a):new DM(e,a))},s.onupgradeneeded=o=>{We("SimpleDb",'Database "'+t.name+'" requires upgrade from version:',o.oldVersion),t.p.O(o.target.result,s.transaction,o.oldVersion,t.version).next(()=>{We("SimpleDb","Database upgrade to version "+t.version+" complete")})}})),t.N&&(t.db.onversionchange=r=>t.N(r)),t.db})()}L(e){this.N=e,this.db&&(this.db.onversionchange=t=>e(t))}runTransaction(e,t,r,i){var s=this;return(0,ee.A)(function*(){const o="readonly"===t;let a=0;for(;;){++a;try{s.db=yield s.M(e);const l=px.open(s.db,e,o?"readonly":"readwrite",r),c=i(l).next(u=>(l.g(),u)).catch(u=>(l.abort(u),ye.reject(u))).toPromise();return c.catch(()=>{}),yield l.m,c}catch(l){const c=l,u="FirebaseError"!==c.name&&a<3;if(We("SimpleDb","Transaction failed with error:",c.message,"Retrying:",u),s.close(),!u)return Promise.reject(c)}}})()}close(){this.db&&this.db.close(),this.db=void 0}}function dX(n){const e=n.match(/Android ([\d.]+)/i),t=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(t)}class Fke{constructor(e){this.B=e,this.k=!1,this.q=null}get isDone(){return this.k}get K(){return this.q}set cursor(e){this.B=e}done(){this.k=!0}$(e){this.q=e}delete(){return vg(this.B.delete())}}class DM extends He{constructor(e,t){super(xe.UNAVAILABLE,`IndexedDB transaction '${e}' failed: ${t}`),this.name="IndexedDbTransactionError"}}function Lf(n){return"IndexedDbTransactionError"===n.name}class Vke{constructor(e){this.store=e}put(e,t){let r;return void 0!==t?(We("SimpleDb","PUT",this.store.name,e,t),r=this.store.put(t,e)):(We("SimpleDb","PUT",this.store.name,"<auto-key>",e),r=this.store.put(e)),vg(r)}add(e){return We("SimpleDb","ADD",this.store.name,e,e),vg(this.store.add(e))}get(e){return vg(this.store.get(e)).next(t=>(void 0===t&&(t=null),We("SimpleDb","GET",this.store.name,e,t),t))}delete(e){return We("SimpleDb","DELETE",this.store.name,e),vg(this.store.delete(e))}count(){return We("SimpleDb","COUNT",this.store.name),vg(this.store.count())}U(e,t){const r=this.options(e,t),i=r.index?this.store.index(r.index):this.store;if("function"==typeof i.getAll){const s=i.getAll(r.range);return new ye((o,a)=>{s.onerror=l=>{a(l.target.error)},s.onsuccess=l=>{o(l.target.result)}})}{const s=this.cursor(r),o=[];return this.W(s,(a,l)=>{o.push(l)}).next(()=>o)}}G(e,t){const r=this.store.getAll(e,null===t?void 0:t);return new ye((i,s)=>{r.onerror=o=>{s(o.target.error)},r.onsuccess=o=>{i(o.target.result)}})}j(e,t){We("SimpleDb","DELETE ALL",this.store.name);const r=this.options(e,t);r.H=!1;const i=this.cursor(r);return this.W(i,(s,o,a)=>a.delete())}J(e,t){let r;t?r=e:(r={},t=e);const i=this.cursor(r);return this.W(i,t)}Y(e){const t=this.cursor({});return new ye((r,i)=>{t.onerror=s=>{const o=WV(s.target.error);i(o)},t.onsuccess=s=>{const o=s.target.result;o?e(o.primaryKey,o.value).next(a=>{a?o.continue():r()}):r()}})}W(e,t){const r=[];return new ye((i,s)=>{e.onerror=o=>{s(o.target.error)},e.onsuccess=o=>{const a=o.target.result;if(!a)return void i();const l=new Fke(a),c=t(a.primaryKey,a.value,l);if(c instanceof ye){const u=c.catch(d=>(l.done(),ye.reject(d)));r.push(u)}l.isDone?i():null===l.K?a.continue():a.continue(l.K)}}).next(()=>ye.waitFor(r))}options(e,t){let r;return void 0!==e&&("string"==typeof e?r=e:t=e),{index:r,range:t}}cursor(e){let t="next";if(e.reverse&&(t="prev"),e.index){const r=this.store.index(e.index);return e.H?r.openKeyCursor(e.range,t):r.openCursor(e.range,t)}return this.store.openCursor(e.range,t)}}function vg(n){return new ye((e,t)=>
1{n.onsuccess=r=>{e(r.target.result)},n.onerror=r=>{const i=WV(r.target.error);t(i)}})}let hX=!1;function WV(n){const e=ju.S((0,K.ZQ)());if(e>=12.2&&e<13){const t="An internal error was encountered in the Indexed Database server";if(n.message.indexOf(t)>=0){const r=new He("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.`);return hX||(hX=!0,setTimeout(()=>{throw r},0)),r}}return n}class Uke{constructor(e,t){this.asyncQueue=e,this.Z=t,this.task=null}start(){this.X(15e3)}stop(){this.task&&(this.task.cancel(),this.task=null)}get started(){return null!==this.task}X(e){var t=this;We("IndexBackfiller",`Scheduled in ${e}ms`),this.task=this.asyncQueue.enqueueAfterDelay("index_backfill",e,(0,ee.A)(function*(){t.task=null;try{We("IndexBackfiller",`Documents written: ${yield t.Z.ee()}`)}catch(r){Lf(r)?We("IndexBackfiller","Ignoring IndexedDB error during index backfill: ",r):yield Rf(r)}yield t.X(6e4)}))}}class jke{constructor(e,t){this.localStore=e,this.persistence=t}ee(e=50){var t=this;return(0,ee.A)(function*(){return t.persistence.runTransaction("Backfill Indexes","readwrite-primary",r=>t.te(r,e))})()}te(e,t){const r=new Set;let i=t,s=!0;return ye.doWhile(()=>!0===s&&i>0,()=>this.localStore.indexManager.getNextCollectionGroupToUpdate(e).next(o=>{if(null!==o&&!r.has(o))return We("IndexBackfiller",`Processing collection: ${o}`),this.ne(e,o,i).next(a=>{i-=a,r.add(o)});s=!1})).next(()=>t-i)}ne(e,t,r){return this.localStore.indexManager.getMinOffsetFromCollectionGroup(e,t).next(i=>this.localStore.localDocuments.getNextDocuments(e,t,i,r).next(s=>{const o=s.changes;return this.localStore.indexManager.updateIndexEntries(e,o).next(()=>this.re(i,s)).next(a=>(We("IndexBackfiller",`Updating offset: ${a}`),this.localStore.indexManager.updateCollectionGroup(e,t,a))).next(()=>o.size)}))}re(e,t){let r=e;
1return t.changes.forEach((i,s)=>{const o=lX(s);$V(o,r)>0&&(r=o)}),new El(r.readTime,r.documentKey,Math.max(t.batchId,e.largestBatchId))}}let Ml=(()=>{class n{constructor(t,r){this.previousValue=t,r&&(r.sequenceNumberHandler=i=>this.ie(i),this.se=i=>r.writeSequenceNumber(i))}ie(t){return this.previousValue=Math.max(t,this.previousValue),this.previousValue}next(){const t=++this.previousValue;return this.se&&this.se(t),t}}return n.oe=-1,n})();function CM(n){return null==n}function SM(n){return 0===n&&1/n==-1/0}function fX(n){return"number"==typeof n&&Number.isInteger(n)&&!SM(n)&&n<=Number.MAX_SAFE_INTEGER&&n>=Number.MIN_SAFE_INTEGER}function Ro(n){let e="";for(let t=0;t<n.length;t++)e.length>0&&(e=pX(e)),e=Yke(n.get(t),e);return pX(e)}function Yke(n,e){let t=e;const r=n.length;for(let i=0;i<r;i++){const s=n.charAt(i);switch(s){case"\0":t+="\x01\x10";break;case"\x01":t+="\x01\x11";break;default:t+=s}}return t}function pX(n){return n+"\x01\x01"}function Yu(n){const e=n.length;if(Rt(e>=2),2===e)return Rt("\x01"===n.charAt(0)&&"\x01"===n.charAt(1)),On.emptyPath();const t=e-2,r=[];let i="";for(let s=0;s<e;){const o=n.indexOf("\x01",s);switch((o<0||o>t)&&St(),n.charAt(o+1)){case"\x01":const a=n.substring(s,o);let l;0===i.length?l=a:(i+=a,l=i,i=""),r.push(l);break;case"\x10":i+=n.substring(s,o),i+="\0";break;case"\x11":i+=n.substring(s,o+1);break;default:St()}s=o+2}return new On(r)}const mX=["userId","batchId"];function mx(n,e){return[n,Ro(e)]}function gX(n,e,t){return[n,Ro(e),t]}const Bke={},Hke=["prefixPath","collectionGroup","readTime","documentId"],zke=["prefixPath","collectionGroup","documentId"],$ke=["collectionGroup","readTime","prefixPath","documentId"],qke=["canonicalId","targetId"],Wke=["targetId","path"],Gke=["path","targetId"],Kke=["collectionId","parent"],Qke=["indexId","uid"],Jke=["uid","sequenceNumber"],Xke=["indexId","uid","arrayValue","directionalValue","orderedDocumentKey","documentKey"],Zke=["indexId","uid","orderedDocumentKey"],ePe=["userId","collectionPath","documentId"],tPe=["userId","collectionPath","largestBatchId"],nPe=["userId","collectionGroup","largestBatchId"],_X=["mutationQueues","mutations","documentMutations","remoteDocuments","targets","owner","targetGlobal","targetDocuments","clientMetadata","remoteDocumentGlobal","collectionParents","bundles","namedQueries"],rPe=[..._X,"documentOverlays"],yX=["mutationQueues","mutations","documentMutations","remoteDocumentsV14","targets","owner","targetGlobal","targetDocuments","clientMetadata","remoteDocumentGlobal","collectionParents","bundles","namedQueries","documentOverlays"],vX=yX,wX=[...vX,"indexConfiguration","indexState","indexEntries"],iPe=wX;class GV extends uX{constructor(e,t){super(),this._e=e,this.currentSequenceNumber=t}}function Gs(n,e){const t=lt(n);return ju.F(t._e,e)}function bX(n){let e=0;for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&e++;return e}function Of(n,e){for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&e(t,n[t])}function EX(n){for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e))return!1;return!0}class Qr{constructor(e,t){this.comparator=e,this.root=t||ho.EMPTY}insert(e,t){return new Qr(this.comparator,this.root.insert(e,t,this.comparator).copy(null,null,ho.BLACK,null,null))}remove(e){return new Qr(this.comparator,this.root.remove(e,this.comparator).copy(null,null,ho.BLACK,null,null))}get(e){let t=this.root;for(;!t.isEmpty();){const r=this.comparator(e,t.key);if(0===r)return t.value;r<0?t=t.left:r>0&&(t=t.right)}return null}indexOf(e){let t=0,r=this.root;for(;!r.isEmpty();){const i=this.comparator(e,r.key);if(0===i)return t+r.left.size;i<0?r=r.left:(t+=r.left.size+1,r=r.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,r)=>(e(t,r),!1))}toString(){const e=[];return this.inorderTraversal((t,r)=>(e.push(`${t}:${r}`),!1)),`{${e.join(", ")}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new gx(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new gx(this.root,e,this.comparator,!1)}getReverseIterator(){return new gx(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new gx(this.root,e,this.comparator,!0)}}
1class gx{constructor(e,t,r,i){this.isReverse=i,this.nodeStack=[];let s=1;for(;!e.isEmpty();)if(s=t?r(e.key,t):1,t&&i&&(s*=-1),s<0)e=this.isReverse?e.left:e.right;else{if(0===s){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 ho{constructor(e,t,r,i,s){this.key=e,this.value=t,this.color=r??ho.RED,this.left=i??ho.EMPTY,this.right=s??ho.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,t,r,i,s){return new ho(e??this.key,t??this.value,r??this.color,i??this.left,s??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,r){let i=this;const s=r(e,i.key);return i=s<0?i.copy(null,null,null,i.left.insert(e,t,r),null):0===s?i.copy(null,t,null,null,null):i.copy(null,null,null,null,i.right.insert(e,t,r)),i.fixUp()}removeMin(){if(this.left.isEmpty())return ho.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 r,i=this;if(t(e,i.key)<0)i.left.isEmpty()||i.left.isRed()||i.left.left.isRed()||(i=i.moveRedLeft()),i=i.copy(null,null,null,i.left.remove(e,t),null);else{if(i.left.isRed()&&(i=i.rotateRight()),i.right.isEmpty()||i.right.isRed()||i.right.left.isRed()||(i=i.moveRedRight()),0===t(e,i.key)){if(i.right.isEmpty())return ho.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.removeMin())}i=i.copy(null,null,null,null,i.right.remove(e,t))}return i.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,ho.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,ho.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 St();const e=this.left.check();if(e!==this.right.check())throw St();return e+(this.isRed()?0:1)}}ho.EMPTY=null,ho.RED=!0,ho.BLACK=!1,ho.EMPTY=new class{constructor(){this.size=0}get key(){throw St()}get value(){throw St()}get color(){throw St()}get left(){throw St()}get right(){throw St()}copy(e,t,r,i,s){return this}insert(e,t,r){return new ho(e,t)}remove(e,t){return this}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class Rr{constructor(e){this.comparator=e,this.data=new Qr(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,r)=>(e(t),!1))}forEachInRange(e,t){const r=this.data.getIteratorFrom(e[0]);for(;r.hasNext();){const i=r.getNext();if(this.comparator(i.key,e[1])>=0)return;t(i.key)}}forEachWhile(e,t){let r;for(r=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();r.hasNext();)if(!e(r.getNext().key))return}firstAfterOrEqual(e){const t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null}getIterator(){return new MX(this.data.getIterator())}getIteratorFrom(e){return new MX(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(r=>{t=t.add(r)}),t}isEqual(e){if(!(e instanceof Rr)||this.size!==e.size)return!1;const t=this.data.getIterator(),r=e.data.getIterator();for(;t.hasNext();){const i=t.getNext().key,s=r.getNext().key;if(0!==this.comparator(i,s))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 Rr(this.comparator);return t.data=e,t}}
1class MX{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}function S0(n){return n.hasNext()?n.getNext():void 0}class Ba{constructor(e){this.fields=e,e.sort(ci.comparator)}static empty(){return new Ba([])}unionWith(e){let t=new Rr(ci.comparator);for(const r of this.fields)t=t.add(r);for(const r of e)t=t.add(r);return new Ba(t.toArray())}covers(e){for(const t of this.fields)if(t.isPrefixOf(e))return!0;return!1}isEqual(e){return I0(this.fields,e.fields,(t,r)=>t.isEqual(r))}}class IX extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class Os{constructor(e){this.binaryString=e}static fromBase64String(e){const t=function(i){try{return atob(i)}catch(s){throw typeof DOMException<"u"&&s instanceof DOMException?new IX("Invalid base64 string: "+s):s}}(e);return new Os(t)}static fromUint8Array(e){const t=function(i){let s="";for(let o=0;o<i.length;++o)s+=String.fromCharCode(i[o]);return s}(e);return new Os(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(t){const r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r}(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return rn(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}Os.EMPTY_BYTE_STRING=new Os("");const oPe=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Qd(n){if(Rt(!!n),"string"==typeof n){let e=0;const t=oPe.exec(n);if(Rt(!!t),t[1]){let i=t[1];i=(i+"000000000").substr(0,9),e=Number(i)}const r=new Date(n);return{seconds:Math.floor(r.getTime()/1e3),nanos:e}}return{seconds:$i(n.seconds),nanos:$i(n.nanos)}}function $i(n){return"number"==typeof n?n:"string"==typeof n?Number(n):0}function Jd(n){return"string"==typeof n?Os.fromBase64String(n):Os.fromUint8Array(n)}function _x(n){var e,t;return"server_timestamp"===(null===(t=((null===(e=n?.mapValue)||void 0===e?void 0:e.fields)||{}).__type__)||void 0===t?void 0:t.stringValue)}function yx(n){const e=n.mapValue.fields.__previous_value__;return _x(e)?yx(e):e}function AM(n){const e=Qd(n.mapValue.fields.__local_write_time__.timestampValue);return new Di(e.seconds,e.nanos)}class aPe{constructor(e,t,r,i,s,o,a,l,c){this.databaseId=e,this.appId=t,this.persistenceKey=r,this.host=i,this.ssl=s,this.forceLongPolling=o,this.autoDetectLongPolling=a,this.longPollingOptions=l,this.useFetchStreams=c}}class Nf{constructor(e,t){this.projectId=e,this.database=t||"(default)"}static empty(){return new Nf("","")}get isDefaultDatabase(){return"(default)"===this.database}isEqual(e){return e instanceof Nf&&e.projectId===this.projectId&&e.database===this.database}}const Ff={mapValue:{fields:{__type__:{stringValue:"__max__"}}}},vx={nullValue:"NULL_VALUE"};function Vf(n){return"nullValue"in n?0:"booleanValue"in n?1:"integerValue"in n||"doubleValue"in n?2:"timestampValue"in n?3:"stringValue"in n?5:"bytesValue"in n?6:"referenceValue"in n?7:"geoPointValue"in n?8:"arrayValue"in n?9:"mapValue"in n?_x(n)?4:AX(n)?9007199254740991:10:St()}function Bu(n,e){if(n===e)return!0;const t=Vf(n);if(t!==Vf(e))return!1;switch(t){case 0:case 9007199254740991:return!0;case 1:return n.booleanValue===e.booleanValue;case 4:return AM(n).isEqual(AM(e));case 3:return function(i,s){if("string"==typeof i.timestampValue&&"string"==typeof s.timestampValue&&i.timestampValue.length===s.timestampValue.length)return i.timestampValue===s.timestampValue;const o=Qd(i.timestampValue),a=Qd(s.timestampValue);return o.seconds===a.seconds&&o.nanos===a.nanos}(n,e);case 5:return n.stringValue===e.stringValue;case 6:return s=e,Jd(n.bytesValue).isEqual(Jd(s.bytesValue));case 7:return n.referenceValue===e.referenceValue;case 8:return function(i,s){return $i(i.geoPointValue.latitude)===$i(s.geoPointValue.latitude)&&$i(i.geoPointValue.longitude)===$i(s.geoPointValue.longitude)}(n,e);case 2:return function(i,s){if("integerValue"in i&&"integerValue"in s)return $i(i.integerValue)===$i(s.integerValue);if("doubleValue"in i&&"doubleValue"in s){const o=$i(i.doubleValue),a=$i(s.doubleValue);return o===a?SM(o)===SM(a):isNaN(o)&&isNaN(a)}return!1}(n,e);case 9:return I0(n.arrayValue.values||[],e.arrayValue.values||[],Bu);case 10:return function(i,s){const o=i.mapValue.fields||{},a=s.mapValue.fields||{};if(bX(o)!==bX(a))return!1;for(const l in o)if(o.hasOwnProperty(l)&&(void 0===a[l]||!Bu(o[l],a[l])))return!1;return!0}(n,e);default:return St()}var s}function xM(n,e){return void 0!==(n.values||[]).find(t=>Bu(t,e))}function Uf(n,e){if(n===e)return 0;const t=Vf(n),r=Vf(e);if(t!==r)return rn(t,r);switch(t){case 0:case 9007199254740991:return 0;case 1:return rn(n.booleanValue,e.booleanValue);case 2:return function(s,o){const a=$i(s.integerValue||s.doubleValue),l=$i(o.integerValue||o.doubleValue);return a<l?-1:a>l?1:a===l?0:isNaN(a)?isNaN(l)?0:-1:1}(n,e);case 3:return DX(n.timestampValue,e.timestampValue);case 4:return DX(AM(n),AM(e));case 5:return rn(n.stringValue,e.stringValue);case 6:return function(s,o){const a=Jd(s),l=Jd(o);return a.compareTo(l)}(n.bytesValue,e.bytesValue);case 7:return function(s,o){const a=s.split("/"),l=o.split("/");for(let c=0;c<a.length&&c<l.length;c++){const u=rn(a[c],l[c]);if(0!==u)return u}return rn(a.length,l.length)}(n.referenceValue,e.referenceValue);case 8:return function(s,o){const a=rn($i(s.latitude),$i(o.latitude));return 0!==a?a:rn($i(s.longitude),$i(o.longitude))}(n.geoPointValue,e.geoPointValue);case 9:return function(s,o){const a=s.values||[],l=o.values||[];for(let c=0;c<a.length&&c<l.length;++c){const u=Uf(a[c],l[c]);if(u)return u}return rn(a.length,l.length)}(n.arrayValue,e.arrayValue);case 10:return function(s,o){if(s===Ff.mapValue&&o===Ff.mapValue)return 0;if(s===Ff.mapValue)return 1;if(o===Ff.mapValue)return-1;const a=s.fields||{},l=Object.keys(a),c=o.fields||{},u=Object.keys(c);l.sort(),u.sort();for(let d=0;d<l.length&&d<u.length;++d){const f=rn(l[d],u[d]);if(0!==f)return f;const _=Uf(a[l[d]],c[u[d]]);if(0!==_)return _}return rn(l.length,u.length)}(n.mapValue,e.mapValue);default:throw St()}}function DX(n,e){if("string"==typeof n&&"string"==typeof e&&n.length===e.length)return rn(n,e);const t=Qd(n),r=Qd(e),i=rn(t.seconds,r.seconds);return 0!==i?i:rn(t.nanos,r.nanos)}function A0(n){return KV(n)}function KV(n){return"nullValue"in n?"null":"booleanValue"in n?""+n.booleanValue:"integerValue"in n?""+n.integerValue:"doubleValue"in n?""+n.doubleValue:"timestampValue"in n?function(t){const r=Qd(t);return`time(${r.seconds},${r.nanos})`}(n.timestampValue):"stringValue"in n?n.stringValue:"bytesValue"in n?Jd(n.bytesValue).toBase64():"referenceValue"in n?mt.fromName(n.referenceValue).toString():"geoPointValue"in n?function(t){return`geo(${t.latitude},${t.longitude})`}(n.geoPointValue):"arrayValue"in n?function(t){let r="[",i=!0;for(const s of t.values||[])i?i=!1:r+=",",r+=KV(s);return r+"]"}(n.arrayValue):"mapValue"in n?function(t){const r=Object.keys(t.fields||{}).sort();let i="{",s=!0;for(const o of r)s?s=!1:i+=",",i+=`${o}:${KV(t.fields[o])}`;return i+"}"}(n.mapValue):St()}function wg(n,e){return{referenceValue:`projects/${n.projectId}/databases/${n.database}/documents/${e.path.canonicalString()}`}}function QV(n){return!!n&&"integerValue"in n}function kM(n){return!!n&&"arrayValue"in n}function CX(n){return!!n&&"nullValue"in n}function SX(n){return!!n&&"doubleValue"in n&&isNaN(Number(n.doubleValue))}function bx(n){return!!n&&"mapValue"in n}function PM(n){if(n.geoPointValue)return{geoPointValue:Object.assign({},n.geoPointValue)};if(n.timestampValue&&"object"==typeof n.timestampValue)return{timestampValue:Object.assign({},n.timestampValue)};if(n.mapValue){const e={mapValue:{fields:{}}};return Of(n.mapValue.fields,(t,r)=>e.mapValue.fields[t]=PM(r)),e}if(n.arrayValue){const e={arrayValue:{values:[]}};for(let t=0;t<(n.arrayValue.values||[]).length;++t)e.arrayValue.values[t]=PM(n.arrayValue.values[t]);return e}return Object.assign({},n)}function AX(n){return"__max__"===(((n.mapValue||{}).fields||{}).__type__||{}).stringValue}function lPe(n){return"nullValue"in n?vx:"booleanValue"in n?{booleanValue:!1}:"integerValue"in n||"doubleValue"in n?{doubleValue:NaN}:"timestampValue"in n?{timestampValue:{seconds:Number.MIN_SAFE_INTEGER}}:"stringValue"in n?{stringValue:""}
vendor: 4,251 bytes, line 1
1:"bytesValue"in n?{bytesValue:""}:"referenceValue"in n?wg(Nf.empty(),mt.empty()):"geoPointValue"in n?{geoPointValue:{latitude:-90,longitude:-180}}:"arrayValue"in n?{arrayValue:{}}:"mapValue"in n?{mapValue:{}}:St()}function cPe(n){return"nullValue"in n?{booleanValue:!1}:"booleanValue"in n?{doubleValue:NaN}:"integerValue"in n||"doubleValue"in n?{timestampValue:{seconds:Number.MIN_SAFE_INTEGER}}:"timestampValue"in n?{stringValue:""}:"stringValue"in n?{bytesValue:""}:"bytesValue"in n?wg(Nf.empty(),mt.empty()):"referenceValue"in n?{geoPointValue:{latitude:-90,longitude:-180}}:"geoPointValue"in n?{arrayValue:{}}:"arrayValue"in n?{mapValue:{}}:"mapValue"in n?Ff:St()}function xX(n,e){const t=Uf(n.value,e.value);return 0!==t?t:n.inclusive&&!e.inclusive?-1:!n.inclusive&&e.inclusive?1:0}function kX(n,e){const t=Uf(n.value,e.value);return 0!==t?t:n.inclusive&&!e.inclusive?1:!n.inclusive&&e.inclusive?-1:0}class fo{constructor(e){this.value=e}static empty(){return new fo({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let t=this.value;for(let r=0;r<e.length-1;++r)if(t=(t.mapValue.fields||{})[e.get(r)],!bx(t))return null;return t=(t.mapValue.fields||{})[e.lastSegment()],t||null}}set(e,t){this.getFieldsMap(e.popLast())[e.lastSegment()]=PM(t)}setAll(e){let t=ci.emptyPath(),r={},i=[];e.forEach((o,a)=>{if(!t.isImmediateParentOf(a)){const l=this.getFieldsMap(t);this.applyChanges(l,r,i),r={},i=[],t=a.popLast()}o?r[a.lastSegment()]=PM(o):i.push(a.lastSegment())});const s=this.getFieldsMap(t);this.applyChanges(s,r,i)}delete(e){const t=this.field(e.popLast());bx(t)&&t.mapValue.fields&&delete t.mapValue.fields[e.lastSegment()]}isEqual(e){return Bu(this.value,e.value)}getFieldsMap(e){let t=this.value;t.mapValue.fields||(t.mapValue={fields:{}});for(let r=0;r<e.length;++r){let i=t.mapValue.fields[e.get(r)];bx(i)&&i.mapValue.fields||(i={mapValue:{fields:{}}},t.mapValue.fields[e.get(r)]=i),t=i}return t.mapValue.fields}applyChanges(e,t,r){Of(t,(i,s)=>e[i]=s);for(const i of r)delete e[i]}clone(){return new fo(PM(this.value))}}function PX(n){const e=[];return Of(n.fields,(t,r)=>{const i=new ci([t]);if(bx(r)){const s=PX(r.mapValue).fields;if(0===s.length)e.push(i);else for(const o of s)e.push(i.child(o))}else e.push(i)}),new Ba(e)}class ui{constructor(e,t,r,i,s,o,a){this.key=e,this.documentType=t,this.version=r,this.readTime=i,this.createTime=s,this.data=o,this.documentState=a}static newInvalidDocument(e){return new ui(e,0,Ft.min(),Ft.min(),Ft.min(),fo.empty(),0)}static newFoundDocument(e,t,r,i){return new ui(e,1,t,Ft.min(),r,i,0)}static newNoDocument(e,t){return new ui(e,2,t,Ft.min(),Ft.min(),fo.empty(),0)}static newUnknownDocument(e,t){return new ui(e,3,t,Ft.min(),Ft.min(),fo.empty(),2)}convertToFoundDocument(e,t){return!this.createTime.isEqual(Ft.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=fo.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=fo.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=Ft.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 ui&&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 ui(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 jf{constructor(e,t){this.position=e,this.inclusive=t}}function RX(n,e,t){let r=0;for(let i=0;i<n.position.length;i++){const s=e[i],o=n.position[i];if(r=s.field.isKeyField()?mt.comparator(mt.fromName(o.referenceValue),t.key):Uf(o,t.data.field(s.field)),"desc"===s.dir&&(r*=-1),0!==r)break}return r}function LX(n,e){if(null===n)return null===e;if(null===e||n.inclusive!==e.inclusive||n.position.length!==e.position.length)return!1;for(let t=0;t<n.position.length;t++)if(!Bu(n.position[t],e.position[t]))return!1;return!0}class RM{constructor(e,t="asc"){this.field=e,this.dir=t}}function uPe(n,e){return n.dir===e.dir&&n.field.isEqual(e.field)}class OX{}class Nn extends OX{constructor(e,t,r){super(),this.field=e,this.op=t,this.value=r}static create(e,t,r){return e.isKeyField()?"in"===t||"not-in"===t?this.createKeyFieldInFilter(e,t,r):new dPe(e,t,r):"array-contains"===t?new pPe(e,r):"in"===t?new YX(e,r):"not-in"===t?new mPe(e,r):"array-contains-any"===t?new gPe(e,r):new Nn(e,t,r)}static createKeyFieldInFilter(e,t,r){return"in"===t?new hPe(e,r):new fPe(e,r)}matches(e){const t=e.data.field(this.field);return"!="===this.op?null!==t&&this.matchesComparison(Uf(t,this.value)):null!==t&&Vf(this.value)===Vf(t)&&this.matchesComparison(Uf(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 St()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class vr extends OX{constructor(e,t){super(),this.filters=e,this.op=t,this.ae=null}static create(e,t){return new vr(e,t)}matches(e){return x0(this)?void 0===this.filters.find(t=>!t.matches(e)):void 0!==this.filters.find(t=>t.matches(e))}getFlattenedFilters(){return null!==this.ae||(this.ae=this.filters.reduce((e,t)=>e.concat(t.getFlattenedFilters()),[])),this.ae}getFilters(){return Object.assign([],this.filters)}}function x0(n){return"and"===n.op}function JV(n){return"or"===n.op}function XV(n){return NX(n)&&x0(n)}function NX(n){for(const e of n.filters)if(e instanceof vr)return!1;return!0}function ZV(n){if(n instanceof Nn)return n.field.canonicalString()+n.op.toString()+A0(n.value);if(XV(n))return n.filters.map(e=>ZV(e)).join(",");{const e=n.filters.map(t=>ZV(t)).join(",");return`${n.op}(${e})`}}function FX(n,e){return n instanceof Nn?(r=n,(i=e)instanceof Nn&&r.op===i.op&&r.field.isEqual(i.field)&&Bu(r.value,i.value)):n instanceof vr?function(r,i){return i instanceof vr&&r.op===i.op&&r.filters.length===i.filters.length&&r.filters.reduce((s,o,a)=>s&&FX(o,i.filters[a]),!0)}(n,e):void St();var r,i}function VX(n,e){const t=n.filters.concat(e);return vr.create(t,n.op)}function UX(n){return n instanceof Nn?`${(t=n).field.canonicalString()} ${t.op} ${A0(t.value)}`:n instanceof vr?function(t){return t.op.toString()+" {"+t.getFilters().map(UX).join(" ,")+"}"}(n):"Filter";var t}class dPe extends Nn{constructor(e,t,r){super(e,t,r),this.key=mt.fromName(r.referenceValue)}matches(e){const t=mt.comparator(e.key,this.key);return this.matchesComparison(t)}}class hPe extends Nn{constructor(e,t){super(e,"in",t),this.keys=jX(0,t)}matches(e){return this.keys.some(t=>t.isEqual(e.key))}}class fPe extends Nn{constructor(e,t){super(e,"not-in",t),this.keys=jX(0,t)}matches(e){return!this.keys.some(t=>t.isEqual(e.key))}}function jX(n,e){var t;return((null===(t=e.arrayValue)||void 0===t?void 0:t.values)||[]).map(r=>mt.fromName(r.referenceValue))}class pPe extends Nn{constructor(e,t){super(e,"array-contains",t)}matches(e){const t=e.data.field(this.field);return kM(t)&&xM(t.arrayValue,this.value)}}class YX extends Nn{constructor(e,t){super(e,"in",t)}matches(e){const t=e.data.field(this.field);return null!==t&&xM(this.value.arrayValue,t)}}class mPe extends Nn{constructor(e,t){super(e,"not-in",t)}matches(e){if(xM(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const t=e.data.field(this.field);return null!==t&&!xM(this.value.arrayValue,t)}}class gPe extends Nn{constructor(e,t){super(e,"array-contains-any",t)}matches(e){const t=e.data.field(this.field);return!(!kM(t)||!t.arrayValue.values)&&t.arrayValue.values.some(r=>xM(this.value.arrayValue,r))}}class _Pe{constructor(e,t=null,r=[],i=[],s=null,o=null,a=null){this.path=e,this.collectionGroup=t,this.orderBy=r,this.filters=i,this.limit=s,this.startAt=o,this.endAt=a,this.ue=null}}function eU(n,e=null,t=[],r=[],i=null,s=null,o=null){return new _Pe(n,e,t,r,i,s,o)}function bg(n){const e=lt(n);if(null===e.ue){let t=e.path.canonicalString();null!==e.collectionGroup&&(t+="|cg:"+e.collectionGroup),t+="|f:",t+=e.filters.map(r=>ZV(r)).join(","),t+="|ob:",t+=e.orderBy.map(r=>{return(s=r).field.canonicalString()+s.dir;var s}).join(","),CM(e.limit)||(t+="|l:",t+=e.limit),e.startAt&&(t+="|lb:",t+=e.startAt.inclusive?"b:":"a:",t+=e.startAt.position.map(r=>A0(r)).join(",")),e.endAt&&(t+="|ub:",t+=e.endAt.inclusive?"a:":"b:",t+=e.endAt.position.map(r=>A0(r)).join(",")),e.ue=t}return e.ue}function LM(n,e){if(n.limit!==e.limit||n.orderBy.length!==e.orderBy.length)return!1;for(let t=0;t<n.orderBy.length;t++)if(!uPe(n.orderBy[t],e.orderBy[t]))return!1;if(n.filters.length!==e.filters.length)return!1;for(let t=0;t<n.filters.length;t++)if(!FX(n.filters[t],e.filters[t]))return!1;return n.collectionGroup===e.collectionGroup&&!!n.path.isEqual(e.path)&&!!LX(n.startAt,e.startAt)&&LX(n.endAt,e.endAt)}function Tx(n){return mt.isDocumentKey(n.path)&&null===n.collectionGroup&&0===n.filters.length}function Ex(n,e){return n.filters.filter(t=>t instanceof Nn&&t.field.isEqual(e))}function BX(n,e,t){let r=vx,i=!0;for(const s of Ex(n,e)){let o=vx,a=!0;switch(s.op){case"<":case"<=":o=lPe(s.value);break;case"==":case"in":case">=":o=s.value;break;case">":o=s.value,a=!1;break;case"!=":case"not-in":o=vx}xX({value:r,inclusive:i},{value:o,inclusive:a})<0&&(r=o,i=a)}if(null!==t)for(let s=0;s<n.orderBy.length;++s)if(n.orderBy[s].field.isEqual(e)){const o=t.position[s];xX({value:r,inclusive:i},{value:o,inclusive:t.inclusive})<0&&(r=o,i=t.inclusive);break}return{value:r,inclusive:i}}function HX(n,e,t){let r=Ff,i=!0;for(const s of Ex(n,e)){let o=Ff,a=!0;switch(s.op){case">=":case">":o=cPe(s.value),a=!1;break;case"==":case"in":case"<=":o=s.value;break;case"<":o=s.value,a=!1;break;case"!=":case"not-in":o=Ff}kX({value:r,inclusive:i},{value:o,inclusive:a})>0&&(r=o,i=a)}if(null!==t)for(let s=0;s<n.orderBy.length;++s)if(n.orderBy[s].field.isEqual(e)){const o=t.position[s];kX({value:r,inclusive:i},{value:o,inclusive:t.inclusive})>0&&(r=o,i=t.inclusive);break}return{value:r,inclusive:i}}class Xd{constructor(e,t=null,r=[],i=[],s=null,o="F",a=null,l=null){this.path=e,this.collectionGroup=t,this.explicitOrderBy=r,this.filters=i,this.limit=s,this.limitType=o,this.startAt=a,this.endAt=l,this.ce=null,this.le=null,this.he=null}}function zX(n,e,t,r,i,s,o,a){return new Xd(n,e,t,r,i,s,o,a)}function k0(n){return new Xd(n)}function $X(n){return 0===n.filters.length&&null===n.limit&&null==n.startAt&&null==n.endAt&&(0===n.explicitOrderBy.length||1===n.explicitOrderBy.length&&n.explicitOrderBy[0].field.isKeyField())}function tU(n){return null!==n.collectionGroup}function P0(n){const e=lt(n);if(null===e.ce){e.ce=[];const t=new Set;for(const s of e.explicitOrderBy)e.ce.push(s),t.add(s.field.canonicalString());const r=e.explicitOrderBy.length>0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";(function(o){let a=new Rr(ci.comparator);
1return o.filters.forEach(l=>{l.getFlattenedFilters().forEach(c=>{c.isInequality()&&(a=a.add(c.field))})}),a})(e).forEach(s=>{t.has(s.canonicalString())||s.isKeyField()||e.ce.push(new RM(s,r))}),t.has(ci.keyField().canonicalString())||e.ce.push(new RM(ci.keyField(),r))}return e.ce}function Lo(n){const e=lt(n);return e.le||(e.le=function WX(n,e){if("F"===n.limitType)return eU(n.path,n.collectionGroup,e,n.filters,n.limit,n.startAt,n.endAt);{e=e.map(i=>new RM(i.field,"desc"===i.dir?"asc":"desc"));const t=n.endAt?new jf(n.endAt.position,n.endAt.inclusive):null,r=n.startAt?new jf(n.startAt.position,n.startAt.inclusive):null;return eU(n.path,n.collectionGroup,e,n.filters,n.limit,t,r)}}(e,P0(n))),e.le}function nU(n,e){const t=n.filters.concat([e]);return new Xd(n.path,n.collectionGroup,n.explicitOrderBy.slice(),t,n.limit,n.limitType,n.startAt,n.endAt)}function Mx(n,e,t){return new Xd(n.path,n.collectionGroup,n.explicitOrderBy.slice(),n.filters.slice(),e,t,n.startAt,n.endAt)}function OM(n,e){return LM(Lo(n),Lo(e))&&n.limitType===e.limitType}function GX(n){return`${bg(Lo(n))}|lt:${n.limitType}`}function R0(n){return`Query(target=${function(t){let r=t.path.canonicalString();return null!==t.collectionGroup&&(r+=" collectionGroup="+t.collectionGroup),t.filters.length>0&&(r+=`, filters: [${t.filters.map(i=>UX(i)).join(", ")}]`),CM(t.limit)||(r+=", limit: "+t.limit),t.orderBy.length>0&&(r+=`, orderBy: [${t.orderBy.map(i=>{return`${(o=i).field.canonicalString()} (${o.dir})`;var o}).join(", ")}]`),t.startAt&&(r+=", startAt: ",r+=t.startAt.inclusive?"b:":"a:",r+=t.startAt.position.map(i=>A0(i)).join(",")),t.endAt&&(r+=", endAt: ",r+=t.endAt.inclusive?"a:":"b:",r+=t.endAt.position.map(i=>A0(i)).join(",")),`Target(${r})`}(Lo(n))}; limitType=${n.limitType})`}function NM(n,e){return e.isFoundDocument()&&function(r,i){const s=i.key.path;return null!==r.collectionGroup?i.key.hasCollectionId(r.collectionGroup)&&r.path.isPrefixOf(s):mt.isDocumentKey(r.path)?r.path.isEqual(s):r.path.isImmediateParentOf(s)}(n,e)&&function(r,i){for(const s of P0(r))if(!s.field.isKeyField()&&null===i.data.field(s.field))return!1;return!0}(n,e)&&function(r,i){for(const s of r.filters)if(!s.matches(i))return!1;return!0}(n,e)&&(i=e,!((r=n).startAt&&!function(o,a,l){const c=RX(o,a,l);return o.inclusive?c<=0:c<0}(r.startAt,P0(r),i)||r.endAt&&!function(o,a,l){const c=RX(o,a,l);return o.inclusive?c>=0:c>0}(r.endAt,P0(r),i)));var r,i}function KX(n){return n.collectionGroup||(n.path.length%2==1?n.path.lastSegment():n.path.get(n.path.length-2))}function QX(n){return(e,t)=>{let r=!1;for(const i of P0(n)){const s=yPe(i,e,t);if(0!==s)return s;r=r||i.field.isKeyField()}return 0}}function yPe(n,e,t){const r=n.field.isKeyField()?mt.comparator(e.key,t.key):function(s,o,a){const l=o.data.field(s),c=a.data.field(s);return null!==l&&null!==c?Uf(l,c):St()}(n.field,e,t);switch(n.dir){case"asc":return r;case"desc":return-1*r;default:return St()}}class Zd{constructor(e,t){this.mapKeyFn=e,this.equalsFn=t,this.inner={},this.innerSize=0}get(e){const t=this.mapKeyFn(e),r=this.inner[t];if(void 0!==r)for(const[i,s]of r)if(this.equalsFn(i,e))return s}has(e){return void 0!==this.get(e)}set(e,t){const r=this.mapKeyFn(e),i=this.inner[r];if(void 0===i)return this.inner[r]=[[e,t]],void this.innerSize++;for(let s=0;s<i.length;s++)if(this.equalsFn(i[s][0],e))return void(i[s]=[e,t]);i.push([e,t]),this.innerSize++}delete(e){const t=this.mapKeyFn(e),r=this.inner[t];if(void 0===r)return!1;for(let i=0;i<r.length;i++)if(this.equalsFn(r[i][0],e))return 1===r.length?delete this.inner[t]:r.splice(i,1),this.innerSize--,!0;return!1}forEach(e){Of(this.inner,(t,r)=>{for(const[i,s]of r)e(i,s)})}isEmpty(){return EX(this.inner)}size(){return this.innerSize}}const vPe=new Qr(mt.comparator);function Ha(){return vPe}const JX=new Qr(mt.comparator);function FM(...n){let e=JX;for(const t of n)e=e.insert(t.key,t);return e}function XX(n){let e=JX;return n.forEach((t,r)=>e=e.insert(t,r.overlayedDocument)),e}function Hu(){return VM()}function ZX(){return VM()}function VM(){return new Zd(n=>n.toString(),(n,e)=>n.isEqual(e))}const wPe=new Qr(mt.comparator),bPe=new Rr(mt.comparator);function mn(...n){let e=bPe;for(const t of n)e=e.add(t);return e}const TPe=new Rr(rn);function rU(){return TPe}function eZ(n,e){if(n.useProto3Json){if(isNaN(e))return{doubleValue:"NaN"};if(e===1/0)return{doubleValue:"Infinity"};if(e===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:SM(e)?"-0":e}}function tZ(n){return{integerValue:""+n}}function nZ(n,e){return fX(e)?tZ(e):eZ(n,e)}class Ix{constructor(){this._=void 0}}function EPe(n,e,t){return n instanceof L0?function(i,s){const o={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:i.seconds,nanos:i.nanoseconds}}}};return s&&_x(s)&&(s=yx(s)),s&&(o.fields.__previous_value__=s),{mapValue:o}}(t,e):n instanceof Tg?iZ(n,e):n instanceof Eg?sZ(n,e):function(i,s){const o=rZ(i,s),a=oZ(o)+oZ(i.Pe);return QV(o)&&QV(i.Pe)?tZ(a):eZ(i.serializer,a)}(n,e)}function MPe(n,e,t){return n instanceof Tg?iZ(n,e):n instanceof Eg?sZ(n,e):t}function rZ(n,e){return n instanceof O0?QV(r=e)||(s=r)&&"doubleValue"in s?e:{integerValue:0}:null;var r,s}class L0 extends Ix{}class Tg extends Ix{constructor(e){super(),this.elements=e}}function iZ(n,e){const t=aZ(e);for(const r of n.elements)t.some(i=>Bu(i,r))||t.push(r);return{arrayValue:{values:t}}}class Eg extends Ix{constructor(e){super(),this.elements=e}}function sZ(n,e){let t=aZ(e);for(const r of n.elements)t=t.filter(i=>!Bu(i,r));return{arrayValue:{values:t}}}
1class O0 extends Ix{constructor(e,t){super(),this.serializer=e,this.Pe=t}}function oZ(n){return $i(n.integerValue||n.doubleValue)}function aZ(n){return kM(n)&&n.arrayValue.values?n.arrayValue.values.slice():[]}class UM{constructor(e,t){this.field=e,this.transform=t}}class DPe{constructor(e,t){this.version=e,this.transformResults=t}}class Ci{constructor(e,t){this.updateTime=e,this.exists=t}static none(){return new Ci}static exists(e){return new Ci(void 0,e)}static updateTime(e){return new Ci(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 Dx(n,e){return void 0!==n.updateTime?e.isFoundDocument()&&e.version.isEqual(n.updateTime):void 0===n.exists||n.exists===e.isFoundDocument()}class Cx{}function lZ(n,e){if(!n.hasLocalMutations||e&&0===e.fields.length)return null;if(null===e)return n.isNoDocument()?new F0(n.key,Ci.none()):new N0(n.key,n.data,Ci.none());{const t=n.data,r=fo.empty();let i=new Rr(ci.comparator);for(let s of e.fields)if(!i.has(s)){let o=t.field(s);null===o&&s.length>1&&(s=s.popLast(),o=t.field(s)),null===o?r.delete(s):r.set(s,o),i=i.add(s)}return new eh(n.key,r,new Ba(i.toArray()),Ci.none())}}function CPe(n,e,t){n instanceof N0?function(i,s,o){const a=i.value.clone(),l=dZ(i.fieldTransforms,s,o.transformResults);a.setAll(l),s.convertToFoundDocument(o.version,a).setHasCommittedMutations()}(n,e,t):n instanceof eh?function(i,s,o){if(!Dx(i.precondition,s))return void s.convertToUnknownDocument(o.version);const a=dZ(i.fieldTransforms,s,o.transformResults),l=s.data;l.setAll(uZ(i)),l.setAll(a),s.convertToFoundDocument(o.version,l).setHasCommittedMutations()}(n,e,t):e.convertToNoDocument(t.version).setHasCommittedMutations()}function jM(n,e,t,r){return n instanceof N0?function(s,o,a,l){if(!Dx(s.precondition,o))return a;const c=s.value.clone(),u=hZ(s.fieldTransforms,l,o);return c.setAll(u),o.convertToFoundDocument(o.version,c).setHasLocalMutations(),null}(n,e,t,r):n instanceof eh?function(s,o,a,l){if(!Dx(s.precondition,o))return a;const c=hZ(s.fieldTransforms,l,o),u=o.data;return u.setAll(uZ(s)),u.setAll(c),o.convertToFoundDocument(o.version,u).setHasLocalMutations(),null===a?null:a.unionWith(s.fieldMask.fields).unionWith(s.fieldTransforms.map(d=>d.field))}(n,e,t,r):(a=t,Dx(n.precondition,o=e)?(o.convertToNoDocument(o.version).setHasLocalMutations(),null):a);var o,a}function SPe(n,e){let t=null;for(const r of n.fieldTransforms){const i=e.data.field(r.field),s=rZ(r.transform,i||null);null!=s&&(null===t&&(t=fo.empty()),t.set(r.field,s))}return t||null}function cZ(n,e){return n.type===e.type&&!!n.key.isEqual(e.key)&&!!n.precondition.isEqual(e.precondition)&&(i=e.fieldTransforms,!!(void 0===(r=n.fieldTransforms)&&void 0===i||r&&i&&I0(r,i,(s,o)=>function IPe(n,e){return n.field.isEqual(e.field)&&(i=e.transform,(r=n.transform)instanceof Tg&&i instanceof Tg||r instanceof Eg&&i instanceof Eg?I0(r.elements,i.elements,Bu):r instanceof O0&&i instanceof O0?Bu(r.Pe,i.Pe):r instanceof L0&&i instanceof L0);var r,i}(s,o))))&&(0===n.type?n.value.isEqual(e.value):1!==n.type||n.data.isEqual(e.data)&&n.fieldMask.isEqual(e.fieldMask));var r,i}class N0 extends Cx{constructor(e,t,r,i=[]){super(),this.key=e,this.value=t,this.precondition=r,this.fieldTransforms=i,this.type=0}getFieldMask(){return null}}class eh extends Cx{constructor(e,t,r,i,s=[]){super(),this.key=e,this.data=t,this.fieldMask=r,this.precondition=i,this.fieldTransforms=s,this.type=1}getFieldMask(){return this.fieldMask}}function uZ(n){const e=new Map;return n.fieldMask.fields.forEach(t=>{if(!t.isEmpty()){const r=n.data.field(t);e.set(t,r)}}),e}function dZ(n,e,t){const r=new Map;Rt(n.length===t.length);for(let i=0;i<t.length;i++){const s=n[i],o=s.transform,a=e.data.field(s.field);r.set(s.field,MPe(o,a,t[i]))}return r}function hZ(n,e,t){const r=new Map;for(const i of n){const s=i.transform,o=t.data.field(i.field);r.set(i.field,EPe(s,o,e))}return r}class F0 extends Cx{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class iU extends Cx{constructor(e,t){super(),this.key=e,this.prec
1ondition=t,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}class sU{constructor(e,t,r,i){this.batchId=e,this.localWriteTime=t,this.baseMutations=r,this.mutations=i}applyToRemoteDocument(e,t){const r=t.mutationResults;for(let i=0;i<this.mutations.length;i++){const s=this.mutations[i];s.key.isEqual(e.key)&&CPe(s,e,r[i])}}applyToLocalView(e,t){for(const r of this.baseMutations)r.key.isEqual(e.key)&&(t=jM(r,e,t,this.localWriteTime));for(const r of this.mutations)r.key.isEqual(e.key)&&(t=jM(r,e,t,this.localWriteTime));return t}applyToLocalDocumentSet(e,t){const r=ZX();return this.mutations.forEach(i=>{const s=e.get(i.key),o=s.overlayedDocument;let a=this.applyToLocalView(o,s.mutatedFields);a=t.has(i.key)?null:a;const l=lZ(o,a);null!==l&&r.set(i.key,l),o.isValidDocument()||o.convertToNoDocument(Ft.min())}),r}keys(){return this.mutations.reduce((e,t)=>e.add(t.key),mn())}isEqual(e){return this.batchId===e.batchId&&I0(this.mutations,e.mutations,(t,r)=>cZ(t,r))&&I0(this.baseMutations,e.baseMutations,(t,r)=>cZ(t,r))}}
1class oU{constructor(e,t,r,i){this.batch=e,this.commitVersion=t,this.mutationResults=r,this.docVersions=i}static from(e,t,r){Rt(e.mutations.length===r.length);let i=function(){return wPe}();const s=e.mutations;for(let o=0;o<s.length;o++)i=i.insert(s[o].key,r[o].version);return new oU(e,t,r,i)}}class aU{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 APe{constructor(e,t){this.count=e,this.unchangedNames=t}}var Ts,Hn;function pZ(n){switch(n){default:return St();case xe.CANCELLED:case xe.UNKNOWN:case xe.DEADLINE_EXCEEDED:case xe.RESOURCE_EXHAUSTED:case xe.INTERNAL:case xe.UNAVAILABLE:case xe.UNAUTHENTICATED:return!1;case xe.INVALID_ARGUMENT:case xe.NOT_FOUND:case xe.ALREADY_EXISTS:case xe.PERMISSION_DENIED:case xe.FAILED_PRECONDITION:case xe.ABORTED:case xe.OUT_OF_RANGE:case xe.UNIMPLEMENTED:case xe.DATA_LOSS:return!0}}function mZ(n){if(void 0===n)return cs("GRPC error has no .code"),xe.UNKNOWN;switch(n){case Ts.OK:return xe.OK;case Ts.CANCELLED:return xe.CANCELLED;case Ts.UNKNOWN:return xe.UNKNOWN;case Ts.DEADLINE_EXCEEDED:return xe.DEADLINE_EXCEEDED;case Ts.RESOURCE_EXHAUSTED:return xe.RESOURCE_EXHAUSTED;case Ts.INTERNAL:return xe.INTERNAL;case Ts.UNAVAILABLE:return xe.UNAVAILABLE;case Ts.UNAUTHENTICATED:return xe.UNAUTHENTICATED;case Ts.INVALID_ARGUMENT:return xe.INVALID_ARGUMENT;case Ts.NOT_FOUND:return xe.NOT_FOUND;case Ts.ALREADY_EXISTS:return xe.ALREADY_EXISTS;case Ts.PERMISSION_DENIED:return xe.PERMISSION_DENIED;case Ts.FAILED_PRECONDITION:return xe.FAILED_PRECONDITION;case Ts.ABORTED:return xe.ABORTED;case Ts.OUT_OF_RANGE:return xe.OUT_OF_RANGE;case Ts.UNIMPLEMENTED:return xe.UNIMPLEMENTED;case Ts.DATA_LOSS:return xe.DATA_LOSS;default:return St()}}(Hn=Ts||(Ts={}))[Hn.OK=0]="OK",Hn[Hn.CANCELLED=1]="CANCELLED",Hn[Hn.UNKNOWN=2]="UNKNOWN",Hn[Hn.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",Hn[Hn.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",Hn[Hn.NOT_FOUND=5]="NOT_FOUND",Hn[Hn.ALREADY_EXISTS=6]="ALREADY_EXISTS",Hn[Hn.PERMISSION_DENIED=7]="PERMISSION_DENIED",Hn[Hn.UNAUTHENTICATED=16]="UNAUTHENTICATED",Hn[Hn.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",Hn[Hn.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",Hn[Hn.ABORTED=10]="ABORTED",Hn[Hn.OUT_OF_RANGE=11]="OUT_OF_RANGE",Hn[Hn.UNIMPLEMENTED=12]="UNIMPLEMENTED",Hn[Hn.INTERNAL=13]="INTERNAL",Hn[Hn.UNAVAILABLE=14]="UNAVAILABLE",Hn[Hn.DATA_LOSS=15]="DATA_LOSS";function gZ(){return new TextEncoder}const xPe=new gg([4294967295,4294967295],0);function _Z(n){const e=gZ().encode(n),t=new KJ;return t.update(e),new Uint8Array(t.digest())}function yZ(n){const e=new DataView(n.buffer),t=e.getUint32(0,!0),r=e.getUint32(4,!0),i=e.getUint32(8,!0),s=e.getUint32(12,!0);return[new gg([t,r],0),new gg([i,s],0)]}class lU{constructor(e,t,r){if(this.bitmap=e,this.padding=t,this.hashCount=r,t<0||t>=8)throw new YM(`Invalid padding: ${t}`);if(r<0)throw new YM(`Invalid hash count: ${r}`);if(e.length>0&&0===this.hashCount)throw new YM(`Invalid hash count: ${r}`);if(0===e.length&&0!==t)throw new YM(`Invalid padding when bitmap length is 0: ${t}`);this.Ie=8*e.length-t,this.Te=gg.fromNumber(this.Ie)}Ee(e,t,r){let i=e.add(t.multiply(gg.fromNumber(r)));return 1===i.compare(xPe)&&(i=new gg([i.getBits(0),i.getBits(1)],0)),i.modulo(this.Te).toNumber()}de(e){return!!(this.bitmap[Math.floor(e/8)]&1<<e%8)}mightContain(e){if(0===this.Ie)return!1;const t=_Z(e),[r,i]=yZ(t);for(let s=0;s<this.hashCount;s++){const o=this.Ee(r,i,s);if(!this.de(o))return!1}return!0}static create(e,t,r){const i=e%8==0?0:8-e%8,s=new Uint8Array(Math.ceil(e/8)),o=new lU(s,i,t);return r.forEach(a=>o.insert(a)),o}insert(e){if(0===this.Ie)return;const t=_Z(e),[r,i]=yZ(t);for(let s=0;s<this.hashCount;s++){const o=this.Ee(r,i,s);this.Ae(o)}}Ae(e){const t=Math.floor(e/8);this.bitmap[t]|=1<<e%8}}
1class YM extends Error{constructor(){super(...arguments),this.name="BloomFilterError"}}class BM{constructor(e,t,r,i,s){this.snapshotVersion=e,this.targetChanges=t,this.targetMismatches=r,this.documentUpdates=i,this.resolvedLimboDocuments=s}static createSynthesizedRemoteEventForCurrentChange(e,t,r){const i=new Map;return i.set(e,HM.createSynthesizedTargetChangeForCurrentChange(e,t,r)),new BM(Ft.min(),i,new Qr(rn),Ha(),mn())}}class HM{constructor(e,t,r,i,s){this.resumeToken=e,this.current=t,this.addedDocuments=r,this.modifiedDocuments=i,this.removedDocuments=s}static createSynthesizedTargetChangeForCurrentChange(e,t,r){return new HM(r,t,mn(),mn(),mn())}}class Ax{constructor(e,t,r,i){this.Re=e,this.removedTargetIds=t,this.key=r,this.Ve=i}}class vZ{constructor(e,t){this.targetId=e,this.me=t}}class wZ{constructor(e,t,r=Os.EMPTY_BYTE_STRING,i=null){this.state=e,this.targetIds=t,this.resumeToken=r,this.cause=i}}class bZ{constructor(){this.fe=0,this.ge=EZ(),this.pe=Os.EMPTY_BYTE_STRING,this.ye=!1,this.we=!0}get current(){return this.ye}get resumeToken(){return this.pe}get Se(){return 0!==this.fe}get be(){return this.we}De(e){e.approximateByteSize()>0&&(this.we=!0,this.pe=e)}Ce(){let e=mn(),t=mn(),r=mn();return this.ge.forEach((i,s)=>{switch(s){case 0:e=e.add(i);break;case 2:t=t.add(i);break;case 1:r=r.add(i);break;default:St()}}),new HM(this.pe,this.ye,e,t,r)}ve(){this.we=!1,this.ge=EZ()}Fe(e,t){this.we=!0,this.ge=this.ge.insert(e,t)}Me(e){this.we=!0,this.ge=this.ge.remove(e)}xe(){this.fe+=1}Oe(){this.fe-=1,Rt(this.fe>=0)}Ne(){this.we=!0,this.ye=!0}}class kPe{constructor(e){this.Le=e,this.Be=new Map,this.ke=Ha(),this.qe=TZ(),this.Qe=new Qr(rn)}Ke(e){for(const t of e.Re)e.Ve&&e.Ve.isFoundDocument()?this.$e(t,e.Ve):this.Ue(t,e.key,e.Ve);for(const t of e.removedTargetIds)this.Ue(t,e.key,e.Ve)}We(e){this.forEachTarget(e,t=>{const r=this.Ge(t);switch(e.state){case 0:this.ze(t)&&r.De(e.resumeToken);break;case 1:r.Oe(),r.Se||r.ve(),r.De(e.resumeToken);break;case 2:r.Oe(),r.Se||this.removeTarget(t);break;case 3:this.ze(t)&&(r.Ne(),r.De(e.resumeToken));break;case 4:this.ze(t)&&(this.je(t),r.De(e.resumeToken));break;default:St()}})}forEachTarget(e,t){e.targetIds.length>0?e.targetIds.forEach(t):this.Be.forEach((r,i)=>{this.ze(i)&&t(i)})}He(e){const t=e.targetId,r=e.me.count,i=this.Je(t);if(i){const s=i.target;if(Tx(s))if(0===r){const o=new mt(s.path);this.Ue(t,o,ui.newNoDocument(o,Ft.min()))}else Rt(1===r);else{const o=this.Ye(t);if(o!==r){const a=this.Ze(e),l=a?this.Xe(a,e,o):1;0!==l&&(this.je(t),this.Qe=this.Qe.insert(t,2===l?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch"))}}}}Ze(e){const t=e.me.unchangedNames;if(!t||!t.bits)return null;const{bits:{bitmap:r="",padding:i=0},hashCount:s=0}=t;let o,a;try{o=Jd(r).toUint8Array()}catch(l){if(l instanceof IX)return Ya("Decoding the base64 bloom filter in existence filter failed ("+l.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw l}try{a=new lU(o,i,s)}catch(l){return Ya(l instanceof YM?"BloomFilter error: ":"Applying bloom filter failed: ",l),null}return 0===a.Ie?null:a}Xe(e,t,r){return t.me.count===r-this.nt(e,t.targetId)?0:2}nt(e,t){const r=this.Le.getRemoteKeysForTarget(t);let i=0;return r.forEach(s=>{const o=this.Le.tt(),a=`projects/${o.projectId}/databases/${o.database}/documents/${s.path.canonicalString()}`;e.mightContain(a)||(this.Ue(t,s,null),i++)}),i}rt(e){const t=new Map;this.Be.forEach((s,o)=>{const a=this.Je(o);if(a){if(s.current&&Tx(a.target)){const l=new mt(a.target.path);null!==this.ke.get(l)||this.it(o,l)||this.Ue(o,l,ui.newNoDocument(l,e))}s.be&&(t.set(o,s.Ce()),s.ve())}});let r=mn();this.qe.forEach((s,o)=>{let a=!0;o.forEachWhile(l=>{const c=this.Je(l);return!c||"TargetPurposeLimboResolution"===c.purpose||(a=!1,!1)}),a&&(r=r.add(s))}),this.ke.forEach((s,o)=>o.setReadTime(e));const i=new BM(e,t,this.Qe,this.ke,r);return this.ke=Ha(),this.qe=TZ(),this.Qe=new Qr(rn),i}$e(e,t){if(!this.ze(e))return;const r=this.it(e,t.key)?2:0;this.Ge(e).Fe(t.key,r),this.ke=this.ke.insert(t.key,t),this.qe=this.qe.insert(t.key,this.st(t.key).add(e))}Ue(e,t,r){if(!this.ze(e))return;const i=this.Ge(e);this.it(e,t)?i.Fe(t,1):i.Me(t),this.qe=this.qe.insert(t,this.st(t).delete(e)),r&&(this.ke=this.ke.insert(t,r))}removeTarget(e){this.Be.delete(e)}Ye(e){const t=this.Ge(e).Ce();return this.Le.getRemoteKeysForTarget(e).size+t.addedDocuments.size-t.removedDocuments.size}xe(e){this.Ge(e).xe()}Ge(e){let t=this.Be.get(e);return t||(t=new bZ,this.Be.set(e,t)),t}st(e){let t=this.qe.get(e);return t||(t=new Rr(rn),this.qe=this.qe.insert(e,t)),t}ze(e){const t=null!==this.Je(e);return t||We("WatchChangeAggregator","Detected inactive target",e),t}Je(e){const t=this.Be.get(e);return t&&t.Se?null:this.Le.ot(e)}je(e){this.Be.set(e,new bZ),this.Le.getRemoteKeysForTarget(e).forEach(t=>{this.Ue(e,t,null)})}it(e,t){return this.Le.getRemoteKeysForTarget(e).has(t)}}function TZ(){return new Qr(mt.comparator)}function EZ(){return new Qr(mt.comparator)}const PPe={asc:"ASCENDING",desc:"DESCENDING"},RPe={"<":"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"},LPe={and:"AND",or:"OR"};class OPe{constructor(e,t){this.databaseId=e,this.useProto3Json=t}}function cU(n,e){return n.useProto3Json||CM(e)?e:{value:e}}function V0(n,e){return n.useProto3Json?`${new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+e.nanoseconds).slice(-9)}Z`:{seconds:""+e.seconds,nanos:e.nanoseconds}}function MZ(n,e){return n.useProto3Json?e.toBase64():e.toUint8Array()}function NPe(n,e){return V0(n,e.toTimestamp())}function us(n){return Rt(!!n),Ft.fromTimestamp(function(t){const r=Qd(t);return new Di(r.seconds,r.nanos)}(n))}function uU(n,e){return dU(n,e).canonicalString()}function dU(n,e){const t=(i=n,new On(["projects",i.projectId,"databases",i.database])).child("documents");var i;return void 0===e?t:t.child(e)}function IZ(n){const e=On.fromString(n);return Rt(NZ(e)),e}function zM(n,e){return uU(n.databaseId,e.path)}function zu(n,e){const t=IZ(e);if(t.get(1)!==n.databaseId.projectId)throw new He(xe.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+t.get(1)+" vs "+n.databaseId.projectId);if(t.get(3)!==n.databaseId.database)throw new He(xe.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+t.get(3)+" vs "+n.databaseId.database);return new mt(SZ(t))}function DZ(n,e){return uU(n.databaseId,e)}function CZ(n){const e=IZ(n);return 4===e.length?On.emptyPath():SZ(e)}function hU(n){return new On(["projects",n.databaseId.projectId,"databases",n.databaseId.database]).canonicalString()}function SZ(n){return Rt(n.length>4&&"documents"===n.get(4)),n.popFirst(5)}function AZ(n,e,t){return{name:zM(n,e),fields:t.value.mapValue.fields}}function xZ(n,e,t){const r=zu(n,e.name),i=us(e.updateTime),s=e.createTime?us(e.createTime):Ft.min(),o=new fo({mapValue:{fields:e.fields}}),a=ui.newFoundDocument(r,i,s,o);return t&&a.setHasCommittedMutations(),t?a.setHasCommittedMutations():a}function $M(n,e){let t;if(e instanceof N0)t={update:AZ(n,e.key,e.value)};else if(e instanceof F0)t={delete:zM(n,e.key)};else if(e instanceof eh)t={update:AZ(n,e.key,e.data),updateMask:zPe(e.fieldMask)};else{if(!(e instanceof iU))return St();t={verify:zM(n,e.key)}}return e.fieldTransforms.length>0&&(t.updateTransforms=e.fieldTransforms.map(r=>function(s,o){const a=o.transform;if(a instanceof L0)return{fieldPath:o.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(a instanceof Tg)return{fieldPath:o.field.canonicalString(),appendMissingElements:{values:a.elements}};if(a instanceof Eg)return{fieldPath:o.field.canonicalString(),removeAllFromArray:{values:a.elements}};if(a instanceof O0)return{fieldPath:o.field.canonicalString(),increment:a.Pe};throw St()}(0,r))),e.precondition.isNone||(t.currentDocument=void 0!==(s=e.precondition).updateTime?{updateTime:NPe(n,s.updateTime)}:void 0!==s.exists?{exists:s.exists}:St()),t;var s}function fU(n,e){const t=e.currentDocument?void 0!==(s=e.currentDocument).updateTime?Ci.updateTime(us(s.updateTime)):void 0!==s.exists?Ci.exists(s.exists):Ci.none():Ci.none(),r=e.updateTransforms?e.updateTransforms.map(i=>function(o,a){let l=null;"setToServerValue"in a?(Rt("REQUEST_TIME"===a.setToServerValue),l=new L0):"appendMissingElements"in a?l=new Tg(a.appendMissingElements.values||[]):"removeAllFromArray"in a?l=new Eg(a.removeAllFromArray.values||[]):"increment"in a?l=new O0(o,a.increment):St(
1);const c=ci.fromServerFormat(a.fieldPath);return new UM(c,l)}(n,i)):[];var s;if(e.update){const i=zu(n,e.update.name),s=new fo({mapValue:{fields:e.update.fields}});if(e.updateMask){const o=new Ba((e.updateMask.fieldPaths||[]).map(u=>ci.fromServerFormat(u)));return new eh(i,s,o,t,r)}return new N0(i,s,t,r)}if(e.delete){const i=zu(n,e.delete);return new F0(i,t)}if(e.verify){const i=zu(n,e.verify);return new iU(i,t)}return St()}function kZ(n,e){return{documents:[DZ(n,e.path)]}}function xx(n,e){const t={structuredQuery:{}},r=e.path;let i;null!==e.collectionGroup?(i=r,t.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(i=r.popLast(),t.structuredQuery.from=[{collectionId:r.lastSegment()}]),t.parent=DZ(n,i);const s=function(c){if(0!==c.length)return OZ(vr.create(c,"and"))}(e.filters);s&&(t.structuredQuery.where=s);const o=function(c){if(0!==c.length)return c.map(u=>{return{field:Yf((f=u).field),direction:YPe(f.dir)};var f})}(e.orderBy);o&&(t.structuredQuery.orderBy=o);const a=cU(n,e.limit);return null!==a&&(t.structuredQuery.limit=a),e.startAt&&(t.structuredQuery.startAt={before:(c=e.startAt).inclusive,values:c.position}),e.endAt&&(t.structuredQuery.endAt=function(c){return{before:!c.inclusive,values:c.position}}(e.endAt)),{_t:t,parent:i};var c}function RZ(n){let e=CZ(n.parent);const t=n.structuredQuery,r=t.from?t.from.length:0;let i=null;if(r>0){Rt(1===r);const u=t.from[0];u.allDescendants?i=u.collectionId:e=e.child(u.collectionId)}let s=[];t.where&&(s=function(d){const f=LZ(d);return f instanceof vr&&XV(f)?f.getFilters():[f]}(t.where));let o=[];t.orderBy&&(o=t.orderBy.map(f=>{return new RM(U0((w=f).field),function(S){switch(S){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(w.direction));var w}));let a=null;t.limit&&(a=function(d){let f;return f="object"==typeof d?d.value:d,CM(f)?null:f}(t.limit));let l=null;var d;t.startAt&&(l=new jf((d=t.startAt).values||[],!!d.before));let c=null;return t.endAt&&(c=function(d){return new jf(d.values||[],!d.before)}(t.endAt)),zX(e,i,o,s,a,"F",l,c)}function LZ(n){return void 0!==n.unaryFilter?function(t){switch(t.unaryFilter.op){case"IS_NAN":const r=U0(t.unaryFilter.field);return Nn.create(r,"==",{doubleValue:NaN});case"IS_NULL":const i=U0(t.unaryFilter.field);return Nn.create(i,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const s=U0(t.unaryFilter.field);return Nn.create(s,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const o=U0(t.unaryFilter.field);return Nn.create(o,"!=",{nullValue:"NULL_VALUE"});default:return St()}}(n):void 0!==n.fieldFilter?Nn.create(U0((t=n).fieldFilter.field),function(i){switch(i){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 St()}}(t.fieldFilter.op),t.fieldFilter.value):void 0!==n.compositeFilter?function(t){return vr.create(t.compositeFilter.filters.map(r=>LZ(r)),function(i){switch(i){case"AND":return"and";case"OR":return"or";default:return St()}}(t.compositeFilter.op))}(n):St();var t}function YPe(n){return PPe[n]}function BPe(n){return RPe[n]}function HPe(n){return LPe[n]}function Yf(n){return{fieldPath:n.canonicalString()}}function U0(n){return ci.fromServerFormat(n.fieldPath)}function OZ(n){return n instanceof Nn?function(t){if("=="===t.op){if(SX(t.value))return{unaryFilter:{field:Yf(t.field),op:"IS_NAN"}};if(CX(t.value))return{unaryFilter:{field:Yf(t.field),op:"IS_NULL"}}}else if("!="===t.op){if(SX(t.value))return{unaryFilter:{field:Yf(t.field),op:"IS_NOT_NAN"}};if(CX(t.value))return{unaryFilter:{field:Yf(t.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Yf(t.field),op:BPe(t.op),value:t.value}}}(n):n instanceof vr?function(t){const r=t.getFilters().map(i=>OZ(i));return 1===r.length?r[0]:{compositeFilter:{op:HPe(t.op),filters:r}}}(n):St()}function zPe(n){const e=[];return n.fields.forEach(t=>e.push(t.canonicalString())),{fieldPaths:e}}function NZ(n){return n.length>=4&&"projects"===n.get(0)&&"databases"===n.get(2)}class th{constructor(e,t,r,i,s=Ft.min(),o=Ft.min(),a=Os.EMPTY_BYTE_STRING,l=null){this.target=e,this.targetId=t,this.purpose=r,this.sequenceNumber=i,this.snapshotVersion=s,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=a,this.expectedCount=l}withSequenceNumber(e){return new th(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(e,t){return new th(this.target,this.targetId,this.purpose,this.sequenceNumber,t,this.lastLimboFreeSnapshotVersion,e,null)}withExpectedCount(e){return new th(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,e)}withLastLimboFreeSnapshotVersion(e){return new th(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken,this.expectedCount)}}class FZ{constructor(e){this.ct=e}}function VZ(n,e){const t=e.key,r={prefixPath:t.getCollectionPath().popLast().toArray(),collectionGroup:t.collectionGroup,documentId:t.path.lastSegment(),readTime:kx(e.readTime),hasCommittedMutations:e.hasCommittedMutations};if(e.isFoundDocument())r.document={name:zM(s=n.ct,(o=e).key),fields:o.data.value.mapValue.fields,updateTime:V0(s,o.version.toTimestamp()),createTime:V0(s,o.createTime.toTimestamp())};else if(e.isNoDocument())r.noDocument={path:t.path.toArray(),readTime:Mg(e.version)};else{if(!e.isUnknownDocument())return St();r.unknownDocument={path:t.path.toArray(),version:Mg(e.version)}}var s,o;return r}function kx(n){const e=n.toTimestamp();return[e.seconds,e.nanoseconds]}function Mg(n){const e=n.toTimestamp();return{seconds:e.seconds,nanoseconds:e.nanoseconds}}function Ig(n){const e=new Di(n.seconds,n.nanoseconds);return Ft.fromTimestamp(e)}function Dg(n,e){const t=(e.baseMutations||[]).map(s=>fU(n.ct,s));for(let s=0;s<e.mutations.length-1;++s)s+1<e.mutations.length&&void 0!==e.mutations[s+1].transform&&(e.mutations[s].updateTransforms=e.mutations[s+1].transform.fieldTransforms,e.mutations.splice(s+1,1),++s);const r=e.mutations.map(s=>fU(n.ct,s)),i=Di.fromMillis(e.localWriteTimeMs);return new sU(e.batchId,i,t,r)}function qM(n){const e=Ig(n.readTime),t=void 0!==n.lastLimboFreeSnapshotVersion?Ig(n.lastLimboFreeSnapshotVersion):Ft.min();let r;return r=void 0!==n.query.documents?(Rt(1===(s=n.query).documents.length),Lo(k0(CZ(s.documents[0])))):function(s){return Lo(RZ(s))}(n.query),new th(r,n.targetId,"TargetPurposeListen",n.lastListenSequenceNumber,e,t,Os.fromBase64String(n.resumeToken));var s}function UZ(n,e){const t=Mg(e.snapshotVersion),r=Mg(e.lastLimboFreeSnapshotVersion);let i;i=Tx(e.target)?kZ(n.ct,e.target):xx(n.ct,e.target)._t;const s=e.resumeToken.toBase64();return{targetId:e.targetId,canonicalId:bg(e.target),readTime:t,resumeToken:s,lastListenSequenceNumber:e.sequenceNumber,lastLimboFreeSnapshotVersion:r,query:i}}function pU(n){const e=RZ({parent:n.parent,structuredQuery:n.structuredQuery});return"LAST"===n.limitType?Mx(e,e.limit,"L"):e}function mU(n,e){return new aU(e.largestBatchId,fU(n.ct,e.overlayMutation))}function jZ(n,e){const t=e.path.lastSegment();return[n,Ro(e.path.popLast()),t]}function YZ(n,e,t,r){return{indexId:n,uid:e,sequenceNumber:t,readTime:Mg(r.readTime),documentKey:Ro(r.documentKey.path),largestBatchId:r.largestBatchId}}class qPe{getBundleMetadata(e,t){return BZ(e).get(t).next(r=>{if(r)return{id:(s=r).bundleId,createTime:Ig(s.createTime),version:s.version};var s})}saveBundleMetadata(e,t){return BZ(e).put({bundleId:(i=t).id,createTime:Mg(us(i.createTime)),version:i.version});var i}getNamedQuery(e,t){return HZ(e).get(t).next(r=>{if(r)return{name:(s=r).name,query:pU(s.bundledQuery),readTime:Ig(s.readTime)};var s})}saveNamedQuery(e,t){return HZ(e).put({name:(i=t).name,readTime:Mg(us(i.readTime)),bundledQuery:i.bundledQuery});var i}}function BZ(n){return Gs(n,"bundles")}function HZ(n){return Gs(n,"namedQueries")}
1class Px{constructor(e,t){this.serializer=e,this.userId=t}static lt(e,t){return new Px(e,t.uid||"")}getOverlay(e,t){return WM(e).get(jZ(this.userId,t)).next(r=>r?mU(this.serializer,r):null)}getOverlays(e,t){const r=Hu();return ye.forEach(t,i=>this.getOverlay(e,i).next(s=>{null!==s&&r.set(i,s)})).next(()=>r)}saveOverlays(e,t,r){const i=[];return r.forEach((s,o)=>{const a=new aU(t,o);i.push(this.ht(e,a))}),ye.waitFor(i)}removeOverlaysForBatchId(e,t,r){const i=new Set;t.forEach(o=>i.add(Ro(o.getCollectionPath())));const s=[];return i.forEach(o=>{const a=IDBKeyRange.bound([this.userId,o,r],[this.userId,o,r+1],!1,!0);s.push(WM(e).j("collectionPathOverlayIndex",a))}),ye.waitFor(s)}getOverlaysForCollection(e,t,r){const i=Hu(),s=Ro(t),o=IDBKeyRange.bound([this.userId,s,r],[this.userId,s,Number.POSITIVE_INFINITY],!0);return WM(e).U("collectionPathOverlayIndex",o).next(a=>{for(const l of a){const c=mU(this.serializer,l);i.set(c.getKey(),c)}return i})}getOverlaysForCollectionGroup(e,t,r,i){const s=Hu();let o;const a=IDBKeyRange.bound([this.userId,t,r],[this.userId,t,Number.POSITIVE_INFINITY],!0);return WM(e).J({index:"collectionGroupOverlayIndex",range:a},(l,c,u)=>{const d=mU(this.serializer,c);s.size()<i||d.largestBatchId===o?(s.set(d.getKey(),d),o=d.largestBatchId):u.done()}).next(()=>s)}ht(e,t){return WM(e).put(function(i,s,o){const[a,l,c]=jZ(s,o.mutation.key);return{userId:s,collectionPath:l,documentId:c,collectionGroup:o.mutation.key.getCollectionGroup(),largestBatchId:o.largestBatchId,overlayMutation:$M(i.ct,o.mutation)}}(this.serializer,this.userId,t))}}function WM(n){return Gs(n,"documentOverlays")}class Cg{constructor(){}Pt(e,t){this.It(e,t),t.Tt()}It(e,t){if("nullValue"in e)this.Et(t,5);else if("booleanValue"in e)this.Et(t,10),t.dt(e.booleanValue?1:0);else if("integerValue"in e)this.Et(t,15),t.dt($i(e.integerValue));else if("doubleValue"in e){const r=$i(e.doubleValue);isNaN(r)?this.Et(t,13):(this.Et(t,15),SM(r)?t.dt(0):t.dt(r))}else if("timestampValue"in e){let r=e.timestampValue;this.Et(t,20),"string"==typeof r&&(r=Qd(r)),t.At(`${r.seconds||""}`),t.dt(r.nanos||0)}else if("stringValue"in e)this.Rt(e.stringValue,t),this.Vt(t);else if("bytesValue"in e)this.Et(t,30),t.ft(Jd(e.bytesValue)),this.Vt(t);else if("referenceValue"in e)this.gt(e.referenceValue,t);else if("geoPointValue"in e){const r=e.geoPointValue;this.Et(t,45),t.dt(r.latitude||0),t.dt(r.longitude||0)}else"mapValue"in e?AX(e)?this.Et(t,Number.MAX_SAFE_INTEGER):(this.yt(e.mapValue,t),this.Vt(t)):"arrayValue"in e?(this.wt(e.arrayValue,t),this.Vt(t)):St()}Rt(e,t){this.Et(t,25),this.St(e,t)}St(e,t){t.At(e)}yt(e,t){const r=e.fields||{};this.Et(t,55);for(const i of Object.keys(r))this.Rt(i,t),this.It(r[i],t)}wt(e,t){const r=e.values||[];this.Et(t,50);for(const i of r)this.It(i,t)}gt(e,t){this.Et(t,37),mt.fromName(e).path.forEach(r=>{this.Et(t,60),this.St(r,t)})}Et(e,t){e.dt(t)}Vt(e){e.dt(2)}}function WPe(n){if(0===n)return 8;let e=0;return!(n>>4)&&(e+=4,n<<=4),!(n>>6)&&(e+=2,n<<=2),!(n>>7)&&(e+=1),e}function zZ(n){const e=64-function(r){let i=0;for(let s=0;s<8;++s){const o=WPe(255&r[s]);if(i+=o,8!==o)break}return i}(n);return Math.ceil(e/8)}Cg.bt=new Cg;class GPe{constructor(){this.buffer=new Uint8Array(1024),this.position=0}Dt(e){const t=e[Symbol.iterator]();let r=t.next();for(;!r.done;)this.Ct(r.value),r=t.next();this.vt()}Ft(e){const t=e[Symbol.iterator]();let r=t.next();for(;!r.done;)this.Mt(r.value),r=t.next();this.xt()}Ot(e){for(const t of e){const r=t.charCodeAt(0);if(r<128)this.Ct(r);else if(r<2048)this.Ct(960|r>>>6),this.Ct(128|63&r);else if(t<"\ud800"||"\udbff"<t)this.Ct(480|r>>>12),this.Ct(128|63&r>>>6),this.Ct(128|63&r);else{const i=t.codePointAt(0);this.Ct(240|i>>>18),this.Ct(128|63&i>>>12),this.Ct(128|63&i>>>6),this.Ct(128|63&i)}}this.vt()}Nt(e){for(const t of e){const r=t.charCodeAt(0);if(r<128)this.Mt(r);else if(r<2048)this.Mt(960|r>>>6),this.Mt(128|63&r);else if(t<"\ud800"||"\udbff"<t)this.Mt(480|r>>>12),this.Mt(128|63&r>>>6),this.Mt(128|63&r);else{const i=t.codePointAt(0);this.Mt(240|i>>>18),this.Mt(128|63&i>>>12),this.Mt(128|63&i>>>6),this.Mt(128|63&i)}}this.xt()}Lt(e){const t=this.Bt(e),r=zZ(t);this.kt(1+r),this.buffer[this.position++]=255&r;for(let i=t.length-r;i<t.length;++i)this.buffer[this.position++]=255&t[i]}qt(e){const t=this.Bt(e),r=zZ(t);this.kt(1+r),this.buffer[this.position++]=~(255&r);for(let i=t.length-r;i<t.length;++i)this.buffer[this.position++]=~(255&t[i])}Qt(){this.Kt(255),this.Kt(255)}$t(){this.Ut(255),this.Ut(255)}reset(){this.position=0}seed(e){this.kt(e.length),this.buffer.set(e,this.position),this.position+=e.length}Wt(){return this.buffer.slice(0,this.position)}Bt(e){const t=function(s){const o=new DataView(new ArrayBuffer(8));return o.setFloat64(0,s,!1),new Uint8Array(o.buffer)}(e),r=!!(128&t[0]);t[0]^=r?255:128;for(let i=1;i<t.length;++i)t[i]^=r?255:0;return t}Ct(e){const t=255&e;0===t?(this.Kt(0),this.Kt(255)):255===t?(this.Kt(255),this.Kt(0)):this.Kt(t)}Mt(e){const t=255&e;0===t?(this.Ut(0),this.Ut(255)):255===t?(this.Ut(255),this.Ut(0)):this.Ut(e)}vt(){this.Kt(0),this.Kt(1)}xt(){this.Ut(0),this.Ut(1)}Kt(e){this.kt(1),this.buffer[this.position++]=e}Ut(e){this.kt(1),this.buffer[this.position++]=~e}kt(e){const t=e+this.position;if(t<=this.buffer.length)return;let r=2*this.buffer.length;r<t&&(r=t);const i=new Uint8Array(r);i.set(this.buffer),this.buffer=i}}
1class KPe{constructor(e){this.Gt=e}ft(e){this.Gt.Dt(e)}At(e){this.Gt.Ot(e)}dt(e){this.Gt.Lt(e)}Tt(){this.Gt.Qt()}}class QPe{constructor(e){this.Gt=e}ft(e){this.Gt.Ft(e)}At(e){this.Gt.Nt(e)}dt(e){this.Gt.qt(e)}Tt(){this.Gt.$t()}}class GM{constructor(){this.Gt=new GPe,this.zt=new KPe(this.Gt),this.jt=new QPe(this.Gt)}seed(e){this.Gt.seed(e)}Ht(e){return 0===e?this.zt:this.jt}Wt(){return this.Gt.Wt()}reset(){this.Gt.reset()}}class Sg{constructor(e,t,r,i){this.indexId=e,this.documentKey=t,this.arrayValue=r,this.directionalValue=i}Jt(){const e=this.directionalValue.length,t=0===e||255===this.directionalValue[e-1]?e+1:e,r=new Uint8Array(t);return r.set(this.directionalValue,0),t!==e?r.set([0],this.directionalValue.length):++r[r.length-1],new Sg(this.indexId,this.documentKey,this.arrayValue,r)}}function Bf(n,e){let t=n.indexId-e.indexId;return 0!==t?t:(t=$Z(n.arrayValue,e.arrayValue),0!==t?t:(t=$Z(n.directionalValue,e.directionalValue),0!==t?t:mt.comparator(n.documentKey,e.documentKey)))}function $Z(n,e){for(let t=0;t<n.length&&t<e.length;++t){const r=n[t]-e[t];if(0!==r)return r}return n.length-e.length}class qZ{constructor(e){this.Yt=new Rr((t,r)=>ci.comparator(t.field,r.field)),this.collectionId=null!=e.collectionGroup?e.collectionGroup:e.path.lastSegment(),this.Zt=e.orderBy,this.Xt=[];for(const t of e.filters){const r=t;r.isInequality()?this.Yt=this.Yt.add(r):this.Xt.push(r)}}get en(){return this.Yt.size>1}tn(e){if(Rt(e.collectionGroup===this.collectionId),this.en)return!1;const t=zV(e);if(void 0!==t&&!this.nn(t))return!1;const r=_g(e);let i=new Set,s=0,o=0;for(;s<r.length&&this.nn(r[s]);++s)i=i.add(r[s].fieldPath.canonicalString());if(s===r.length)return!0;if(this.Yt.size>0){const a=this.Yt.getIterator().getNext();if(!i.has(a.field.canonicalString())){const l=r[s];if(!this.rn(a,l)||!this.sn(this.Zt[o++],l))return!1}++s}for(;s<r.length;++s)if(o>=this.Zt.length||!this.sn(this.Zt[o++],r[s]))return!1;return!0}on(){if(this.en)return null;let e=new Rr(ci.comparator);const t=[];for(const r of this.Xt)if(!r.field.isKeyField())if("array-contains"===r.op||"array-contains-any"===r.op)t.push(new yg(r.field,2));else{if(e.has(r.field))continue;e=e.add(r.field),t.push(new yg(r.field,0))}for(const r of this.Zt)r.field.isKeyField()||e.has(r.field)||(e=e.add(r.field),t.push(new yg(r.field,"asc"===r.dir?0:1)));return new D0(D0.UNKNOWN_ID,this.collectionId,t,C0.empty())}nn(e){for(const t of this.Xt)if(this.rn(t,e))return!0;return!1}rn(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 WZ(n){var e,t;
1if(Rt(n instanceof Nn||n instanceof vr),n instanceof Nn){if(n instanceof YX){const i=(null===(t=null===(e=n.value.arrayValue)||void 0===e?void 0:e.values)||void 0===t?void 0:t.map(s=>Nn.create(n.field,"==",s)))||[];return vr.create(i,"or")}return n}const r=n.filters.map(i=>WZ(i));return vr.create(r,n.op)}function JPe(n){if(0===n.getFilters().length)return[];const e=yU(WZ(n));return Rt(GZ(e)),gU(e)||_U(e)?[e]:e.getFilters()}function gU(n){return n instanceof Nn}function _U(n){return n instanceof vr&&XV(n)}function GZ(n){return gU(n)||_U(n)||function(t){if(t instanceof vr&&JV(t)){for(const r of t.getFilters())if(!gU(r)&&!_U(r))return!1;return!0}return!1}(n)}function yU(n){if(Rt(n instanceof Nn||n instanceof vr),n instanceof Nn)return n;if(1===n.filters.length)return yU(n.filters[0]);const e=n.filters.map(r=>yU(r));let t=vr.create(e,n.op);return t=Rx(t),GZ(t)?t:(Rt(t instanceof vr),Rt(x0(t)),Rt(t.filters.length>1),t.filters.reduce((r,i)=>vU(r,i)))}function vU(n,e){let t;return Rt(n instanceof Nn||n instanceof vr),Rt(e instanceof Nn||e instanceof vr),t=n instanceof Nn?e instanceof Nn?vr.create([n,e],"and"):KZ(n,e):e instanceof Nn?KZ(e,n):function(i,s){if(Rt(i.filters.length>0&&s.filters.length>0),x0(i)&&x0(s))return VX(i,s.getFilters());const o=JV(i)?i:s,a=JV(i)?s:i,l=o.filters.map(c=>vU(c,a));return vr.create(l,"or")}(n,e),Rx(t)}function KZ(n,e){if(x0(e))return VX(e,n.getFilters());{const t=e.filters.map(r=>vU(n,r));return vr.create(t,"or")}}function Rx(n){if(Rt(n instanceof Nn||n instanceof vr),n instanceof Nn)return n;const e=n.getFilters();if(1===e.length)return Rx(e[0]);if(NX(n))return n;const t=e.map(i=>Rx(i)),r=[];return t.forEach(i=>{i instanceof Nn?r.push(i):i instanceof vr&&(i.op===n.op?r.push(...i.filters):r.push(i))}),1===r.length?r[0]:vr.create(r,n.op)}class XPe{constructor(){this._n=new wU}addToCollectionParentIndex(e,t){return this._n.add(t),ye.resolve()}getCollectionParents(e,t){return ye.resolve(this._n.getEntries(t))}addFieldIndex(e,t){return ye.resolve()}deleteFieldIndex(e,t){return ye.resolve()}deleteAllFieldIndexes(e){return ye.resolve()}createTargetIndexes(e,t){return ye.resolve()}getDocumentsMatchingTarget(e,t){return ye.resolve(null)}getIndexType(e,t){return ye.resolve(0)}getFieldIndexes(e,t){return ye.resolve([])}getNextCollectionGroupToUpdate(e){return ye.resolve(null)}getMinOffset(e,t){return ye.resolve(El.min())}getMinOffsetFromCollectionGroup(e,t){return ye.resolve(El.min())}updateCollectionGroup(e,t,r){return ye.resolve()}updateIndexEntries(e,t){return ye.resolve()}}class wU{constructor(){this.index={}}add(e){const t=e.lastSegment(),r=e.popLast(),i=this.index[t]||new Rr(On.comparator),s=!i.has(r);return this.index[t]=i.add(r),s}has(e){const t=e.lastSegment(),r=e.popLast(),i=this.index[t];return i&&i.has(r)}getEntries(e){return(this.index[e]||new Rr(On.comparator)).toArray()}}const Lx=new Uint8Array(0);class ZPe{constructor(e,t){this.databaseId=t,this.an=new wU,this.un=new Zd(r=>bg(r),(r,i)=>LM(r,i)),this.uid=e.uid||""}addToCollectionParentIndex(e,t){if(!this.an.has(t)){const r=t.lastSegment(),i=t.popLast();e.addOnCommittedListener(()=>{this.an.add(t)});const s={collectionId:r,parent:Ro(i)};return QZ(e).put(s)}return ye.resolve()}getCollectionParents(e,t){const r=[],i=IDBKeyRange.bound([t,""],[oX(t),""],!1,!0);return QZ(e).U(i).next(s=>{for(const o of s){if(o.collectionId!==t)break;r.push(Yu(o.parent))}return r})}addFieldIndex(e,t){const r=KM(e),i={indexId:(a=t).indexId,collectionGroup:a.collectionGroup,fields:a.fields.map(l=>[l.fieldPath.canonicalString(),l.kind])};var a;delete i.indexId;const s=r.add(i);if(t.indexState){const o=Y0(e);return s.next(a=>{o.put(YZ(a,this.uid,t.indexState.sequenceNumber,t.indexState.offset))})}return s.next()}deleteFieldIndex(e,t){const r=KM(e),i=Y0(e),s=j0(e);return r.delete(t.indexId).next(()=>i.delete(IDBKeyRange.bound([t.indexId],[t.indexId+1],!1,!0))).next(()=>s.delete(IDBKeyRange.bound([t.indexId],[t.indexId+1],!1,!0)))}deleteAllFieldIndexes(e){const t=KM(e),r=j0(e),i=Y0(e);return t.j().next(()=>r.j()).next(()=>i.j())}createTargetIndexes(e,t){return ye.forEach(this.cn(t),r=>this.getIndexType(e,r).next(i=>{if(0===i||1===i){const s=new qZ(r).on();if(null!=s)return this.addFieldIndex(e,s)}}))}getDocumentsMatchingTarget(e,t){const r=j0(e);let i=!0;const s=new Map;return ye.forEach(this.cn(t),o=>this.ln(e,o).next(a=>{i&&(i=!!a),s.set(o,a)})).next(()=>{if(i){let o=mn();const a=[];return ye.forEach(s,(l,c)=>{var j;We("IndexedDbIndexManager",`Using index ${j=l,`id=${j.indexId}|cg=${j.collectionGroup}|f=${j.fields.map(Z=>`${Z.fieldPath}:${Z.kind}`).join(",")}`} to execute ${bg(t)}`);const u=function(j,Z){const ie=zV(Z);if(void 0===ie)return null;for(const le of Ex(j,ie.fieldPath))switch(le.op){case"array-contains-any":return le.value.arrayValue.values||[];case"array-contains":return[le.value]}return null}(c,l),d=function(j,Z){const ie=new Map;for(const le of _g(Z))for(const Q of Ex(j,le.fieldPath))switch(Q.op){case"==":case"in":ie.set(le.fieldPath.canonicalString(),Q.value);break;case"not-in":case"!=":return ie.set(le.fieldPath.canonicalString(),Q.value),Array.from(ie.values())}return null}(c,l),f=function(j,Z){const ie=[];let le=!0;
1for(const Q of _g(Z)){const B=0===Q.kind?BX(j,Q.fieldPath,j.startAt):HX(j,Q.fieldPath,j.startAt);ie.push(B.value),le&&(le=B.inclusive)}return new jf(ie,le)}(c,l),_=function(j,Z){const ie=[];let le=!0;for(const Q of _g(Z)){const B=0===Q.kind?HX(j,Q.fieldPath,j.endAt):BX(j,Q.fieldPath,j.endAt);ie.push(B.value),le&&(le=B.inclusive)}return new jf(ie,le)}(c,l),w=this.hn(l,c,f),M=this.hn(l,c,_),S=this.Pn(l,c,d),O=this.In(l.indexId,u,w,f.inclusive,M,_.inclusive,S);return ye.forEach(O,N=>r.G(N,t.limit).next(j=>{j.forEach(Z=>{const ie=mt.fromSegments(Z.documentKey);o.has(ie)||(o=o.add(ie),a.push(ie))})}))}).next(()=>a)}return ye.resolve(null)})}cn(e){let t=this.un.get(e);return t||(t=0===e.filters.length?[e]:JPe(vr.create(e.filters,"and")).map(r=>eU(e.path,e.collectionGroup,e.orderBy,r.getFilters(),e.limit,e.startAt,e.endAt)),this.un.set(e,t),t)}In(e,t,r,i,s,o,a){const l=(null!=t?t.length:1)*Math.max(r.length,s.length),c=l/(null!=t?t.length:1),u=[];for(let d=0;d<l;++d){const f=t?this.Tn(t[d/c]):Lx,_=this.En(e,f,r[d%c],i),w=this.dn(e,f,s[d%c],o),M=a.map(S=>this.En(e,f,S,!0));u.push(...this.createRange(_,w,M))}return u}En(e,t,r,i){const s=new Sg(e,mt.empty(),t,r);return i?s:s.Jt()}dn(e,t,r,i){const s=new Sg(e,mt.empty(),t,r);return i?s.Jt():s}ln(e,t){const r=new qZ(t),i=null!=t.collectionGroup?t.collectionGroup:t.path.lastSegment();return this.getFieldIndexes(e,i).next(s=>{let o=null;for(const a of s)r.tn(a)&&(!o||a.fields.length>o.fields.length)&&(o=a);return o})}getIndexType(e,t){let r=2;const i=this.cn(t);return ye.forEach(i,s=>this.ln(e,s).next(o=>{o?0!==r&&o.fields.length<function(l){let c=new Rr(ci.comparator),u=!1;for(const d of l.filters)for(const f of d.getFlattenedFilters())f.field.isKeyField()||("array-contains"===f.op||"array-contains-any"===f.op?u=!0:c=c.add(f.field));for(const d of l.orderBy)d.field.isKeyField()||(c=c.add(d.field));return c.size+(u?1:0)}(s)&&(r=1):r=0})).next(()=>null!==t.limit&&i.length>1&&2===r?1:r)}An(e,t){const r=new GM;for(const i of _g(e)){const s=t.data.field(i.fieldPath);if(null==s)return null;const o=r.Ht(i.kind);Cg.bt.Pt(s,o)}return r.Wt()}Tn(e){const t=new GM;return Cg.bt.Pt(e,t.Ht(0)),t.Wt()}Rn(e,t){const r=new GM;return Cg.bt.Pt(wg(this.databaseId,t),r.Ht(function(s){const o=_g(s);return 0===o.length?0:o[o.length-1].kind}(e))),r.Wt()}Pn(e,t,r){if(null===r)return[];let i=[];i.push(new GM);let s=0;for(const o of _g(e)){const a=r[s++];for(const l of i)if(this.Vn(t,o.fieldPath)&&kM(a))i=this.mn(i,o,a);else{const c=l.Ht(o.kind);Cg.bt.Pt(a,c)}}return this.fn(i)}hn(e,t,r){return this.Pn(e,t,r.position)}fn(e){const t=[];for(let r=0;r<e.length;++r)t[r]=e[r].Wt();return t}mn(e,t,r){const i=[...e],s=[];for(const o of r.arrayValue.values||[])for(const a of i){const l=new GM;l.seed(a.Wt()),Cg.bt.Pt(o,l.Ht(t.kind)),s.push(l)}return s}Vn(e,t){return!!e.filters.find(r=>r instanceof Nn&&r.field.isEqual(t)&&("in"===r.op||"not-in"===r.op))}getFieldIndexes(e,t){const r=KM(e),i=Y0(e);return(t?r.U("collectionGroupIndex",IDBKeyRange.bound(t,t)):r.U()).next(s=>{const o=[];return ye.forEach(s,a=>i.get([a.indexId,this.uid]).next(l=>{o.push(function(u,d){const f=d?new C0(d.sequenceNumber,new El(Ig(d.readTime),new mt(Yu(d.documentKey)),d.largestBatchId)):C0.empty(),_=u.fields.map(([w,M])=>new yg(ci.fromServerFormat(w),M));return new D0(u.indexId,u.collectionGroup,_,f)}(a,l))})).next(()=>o)})}getNextCollectionGroupToUpdate(e){return this.getFieldIndexes(e).next(t=>0===t.length?null:(t.sort((r,i)=>{const s=r.indexState.sequenceNumber-i.indexState.sequenceNumber;return 0!==s?s:rn(r.collectionGroup,i.collectionGroup)}),t[0].collectionGroup))}updateCollectionGroup(e,t,r){const i=KM(e),s=Y0(e);return this.gn(e).next(o=>i.U("collectionGroupIndex",IDBKeyRange.bound(t,t)).next(a=>ye.forEach(a,l=>s.put(YZ(l.indexId,this.uid,o,r)))))}updateIndexEntries(e,t){const r=new Map;return ye.forEach(t,(i,s)=>{const o=r.get(i.collectionGroup);return(o?ye.resolve(o):this.getFieldIndexes(e,i.collectionGroup)).next(a=>(r.set(i.collectionGroup,a),ye.forEach(a,l=>this.pn(e,i,l).next(c=>{const u=this.yn(s,l);return c.isEqual(u)?ye.resolve():this.wn(e,s,l,c,u)}))))})}Sn(e,t,r,i){return j0(e).put({indexId:i.indexId,uid:this.uid,arrayValue:i.arrayValue,directionalValue:i.directionalValue,orderedDocumentKey:this.Rn(r,t.key),documentKey:t.key.path.toArray()})}bn(e,t,r,i){return j0(e).delete([i.indexId,this.uid,i.arrayValue,i.directionalValue,this.Rn(r,t.key),t.key.path.toArray()])}pn(e,t,r){const i=j0(e);let s=new Rr(Bf);return i.J({index:"documentKeyIndex",range:IDBKeyRange.only([r.indexId,this.uid,this.Rn(r,t)])},(o,a)=>{s=s.add(new Sg(r.indexId,t,a.arrayValue,a.directionalValue))}).next(()=>s)}yn(e,t){let r=new Rr(Bf);const i=this.An(t,e);if(null==i)return r;const s=zV(t);if(null!=s){const o=e.data.field(s.fieldPath);if(kM(o))for(const a of o.arrayValue.values||[])r=r.add(new Sg(t.indexId,e.key,this.Tn(a),i))}else r=r.add(new Sg(t.indexId,e.key,Lx,i));return r}wn(e,t,r,i,s){We("IndexedDbIndexManager","Updating index entries for document '%s'",t.key);const o=[];return function(l,c,u,d,f){const _=l.getIterator(),w=c.getIterator();let M=S0(_),S=S0(w);for(;M||S;){let O=!1,N=!1;if(M&&S){const j=u(M,S);j<0?N=!0:j>0&&(O=!0)}else null!=M?N=!0:O=!0;O?(d(S),S=S0(w)):N?(f(M),M=S0(_)):(M=S0(_),S=S0(w))}}(i,s,Bf,a=>{o.push(this.Sn(e,t,r,a))},a=>{o.push(this.bn(e,t,r,a))}),ye.waitFor(o)}gn(e){let t=1;return Y0(e).J({index:"sequenceNumberIndex",reverse:!0,range:IDBKeyRange.upperBound([this.uid,Number.MAX_SAFE_INTEGER])},(r,i,s)=>{s.done(),t=i.sequenceNumber+1}
1).next(()=>t)}createRange(e,t,r){r=r.sort((o,a)=>Bf(o,a)).filter((o,a,l)=>!a||0!==Bf(o,l[a-1]));const i=[];i.push(e);for(const o of r){const a=Bf(o,e),l=Bf(o,t);if(0===a)i[0]=e.Jt();else if(a>0&&l<0)i.push(o),i.push(o.Jt());else if(l>0)break}i.push(t);const s=[];for(let o=0;o<i.length;o+=2){if(this.Dn(i[o],i[o+1]))return[];s.push(IDBKeyRange.bound([i[o].indexId,this.uid,i[o].arrayValue,i[o].directionalValue,Lx,[]],[i[o+1].indexId,this.uid,i[o+1].arrayValue,i[o+1].directionalValue,Lx,[]]))}return s}Dn(e,t){return Bf(e,t)>0}getMinOffsetFromCollectionGroup(e,t){return this.getFieldIndexes(e,t).next(JZ)}getMinOffset(e,t){return ye.mapArray(this.cn(t),r=>this.ln(e,r).next(i=>i||St())).next(JZ)}}function QZ(n){return Gs(n,"collectionParents")}function j0(n){return Gs(n,"indexEntries")}function KM(n){return Gs(n,"indexConfiguration")}function Y0(n){return Gs(n,"indexState")}function JZ(n){Rt(0!==n.length);let e=n[0].indexState.offset,t=e.largestBatchId;for(let r=1;r<n.length;r++){const i=n[r].indexState.offset;$V(i,e)<0&&(e=i),t<i.largestBatchId&&(t=i.largestBatchId)}return new El(e.readTime,e.documentKey,t)}const XZ={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0};class Oo{constructor(e,t,r){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=t,this.maximumSequenceNumbersToCollect=r}static withCacheSize(e){return new Oo(e,Oo.DEFAULT_COLLECTION_PERCENTILE,Oo.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}function ZZ(n,e,t){const r=n.store("mutations"),i=n.store("documentMutations"),s=[],o=IDBKeyRange.only(t.batchId);let a=0;const l=r.J({range:o},(u,d,f)=>(a++,f.delete()));s.push(l.next(()=>{Rt(1===a)}));const c=[];for(const u of t.mutations){const d=gX(e,u.key.path,t.batchId);s.push(i.delete(d)),c.push(u.key)}return ye.waitFor(s).next(()=>c)}function Ox(n){if(!n)return 0;let e;if(n.document)e=n.document;else if(n.unknownDocument)e=n.unknownDocument;else{if(!n.noDocument)throw St();e=n.noDocument}return JSON.stringify(e).length}Oo.DEFAULT_COLLECTION_PERCENTILE=10,Oo.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Oo.DEFAULT=new Oo(41943040,Oo.DEFAULT_COLLECTION_PERCENTILE,Oo.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Oo.DISABLED=new Oo(-1,0,0);
1class Nx{constructor(e,t,r,i){this.userId=e,this.serializer=t,this.indexManager=r,this.referenceDelegate=i,this.Cn={}}static lt(e,t,r,i){Rt(""!==e.uid);const s=e.isAuthenticated()?e.uid:"";return new Nx(s,t,r,i)}checkEmpty(e){let t=!0;const r=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return Hf(e).J({index:"userMutationsIndex",range:r},(i,s,o)=>{t=!1,o.done()}).next(()=>t)}addMutationBatch(e,t,r,i){const s=B0(e),o=Hf(e);return o.add({}).next(a=>{Rt("number"==typeof a);const l=new sU(a,t,r,i),c=function(_,w,M){const S=M.baseMutations.map(N=>$M(_.ct,N)),O=M.mutations.map(N=>$M(_.ct,N));return{userId:w,batchId:M.batchId,localWriteTimeMs:M.localWriteTime.toMillis(),baseMutations:S,mutations:O}}(this.serializer,this.userId,l),u=[];let d=new Rr((f,_)=>rn(f.canonicalString(),_.canonicalString()));for(const f of i){const _=gX(this.userId,f.key.path,a);d=d.add(f.key.path.popLast()),u.push(o.put(c)),u.push(s.put(_,Bke))}return d.forEach(f=>{u.push(this.indexManager.addToCollectionParentIndex(e,f))}),e.addOnCommittedListener(()=>{this.Cn[a]=l.keys()}),ye.waitFor(u).next(()=>l)})}lookupMutationBatch(e,t){return Hf(e).get(t).next(r=>r?(Rt(r.userId===this.userId),Dg(this.serializer,r)):null)}vn(e,t){return this.Cn[t]?ye.resolve(this.Cn[t]):this.lookupMutationBatch(e,t).next(r=>{if(r){const i=r.keys();return this.Cn[t]=i,i}return null})}getNextMutationBatchAfterBatchId(e,t){const r=t+1,i=IDBKeyRange.lowerBound([this.userId,r]);let s=null;return Hf(e).J({index:"userMutationsIndex",range:i},(o,a,l)=>{a.userId===this.userId&&(Rt(a.batchId>=r),s=Dg(this.serializer,a)),l.done()}).next(()=>s)}getHighestUnacknowledgedBatchId(e){const t=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]);let r=-1;return Hf(e).J({index:"userMutationsIndex",range:t,reverse:!0},(i,s,o)=>{r=s.batchId,o.done()}).next(()=>r)}getAllMutationBatches(e){const t=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return Hf(e).U("userMutationsIndex",t).next(r=>r.map(i=>Dg(this.serializer,i)))}getAllMutationBatchesAffectingDocumentKey(e,t){const r=mx(this.userId,t.path),i=IDBKeyRange.lowerBound(r),s=[];return B0(e).J({range:i},(o,a,l)=>{const[c,u,d]=o,f=Yu(u);if(c===this.userId&&t.path.isEqual(f))return Hf(e).get(d).next(_=>{if(!_)throw St();Rt(_.userId===this.userId),s.push(Dg(this.serializer,_))});l.done()}).next(()=>s)}getAllMutationBatchesAffectingDocumentKeys(e,t){let r=new Rr(rn);const i=[];return t.forEach(s=>{const o=mx(this.userId,s.path),a=IDBKeyRange.lowerBound(o),l=B0(e).J({range:a},(c,u,d)=>{const[f,_,w]=c,M=Yu(_);f===this.userId&&s.path.isEqual(M)?r=r.add(w):d.done()});i.push(l)}),ye.waitFor(i).next(()=>this.Fn(e,r))}getAllMutationBatchesAffectingQuery(e,t){const r=t.path,i=r.length+1,s=mx(this.userId,r),o=IDBKeyRange.lowerBound(s);let a=new Rr(rn);return B0(e).J({range:o},(l,c,u)=>{const[d,f,_]=l,w=Yu(f);d===this.userId&&r.isPrefixOf(w)?w.length===i&&(a=a.add(_)):u.done()}).next(()=>this.Fn(e,a))}Fn(e,t){const r=[],i=[];return t.forEach(s=>{i.push(Hf(e).get(s).next(o=>{if(null===o)throw St();Rt(o.userId===this.userId),r.push(Dg(this.serializer,o))}))}),ye.waitFor(i).next(()=>r)}removeMutationBatch(e,t){return ZZ(e._e,this.userId,t).next(r=>(e.addOnCommittedListener(()=>{this.Mn(t.batchId)}),ye.forEach(r,i=>this.referenceDelegate.markPotentiallyOrphaned(e,i))))}Mn(e){delete this.Cn[e]}performConsistencyCheck(e){return this.checkEmpty(e).next(t=>{if(!t)return ye.resolve();const r=IDBKeyRange.lowerBound(function(o){return[o]}(this.userId)),i=[];return B0(e).J({range:r},(s,o,a)=>{if(s[0]===this.userId){const l=Yu(s[1]);i.push(l)}else a.done()}).next(()=>{Rt(0===i.length)})})}containsKey(e,t){return eee(e,this.userId,t)}xn(e){return tee(e).get(this.userId).next(t=>t||{userId:this.userId,lastAcknowledgedBatchId:-1,lastStreamToken:""})}}function eee(n,e,t){const r=mx(e,t.path),i=r[1],s=IDBKeyRange.lowerBound(r);let o=!1;return B0(n).J({range:s,H:!0},(a,l,c)=>{const[u,d,f]=a;u===e&&d===i&&(o=!0),c.done()}).next(()=>o)}function Hf(n){return Gs(n,"mutations")}function B0(n){return Gs(n,"documentMutations")}
1function tee(n){return Gs(n,"mutationQueues")}class Ag{constructor(e){this.On=e}next(){return this.On+=2,this.On}static Nn(){return new Ag(0)}static Ln(){return new Ag(-1)}}class eRe{constructor(e,t){this.referenceDelegate=e,this.serializer=t}allocateTargetId(e){return this.Bn(e).next(t=>{const r=new Ag(t.highestTargetId);return t.highestTargetId=r.next(),this.kn(e,t).next(()=>t.highestTargetId)})}getLastRemoteSnapshotVersion(e){return this.Bn(e).next(t=>Ft.fromTimestamp(new Di(t.lastRemoteSnapshotVersion.seconds,t.lastRemoteSnapshotVersion.nanoseconds)))}getHighestSequenceNumber(e){return this.Bn(e).next(t=>t.highestListenSequenceNumber)}setTargetsMetadata(e,t,r){return this.Bn(e).next(i=>(i.highestListenSequenceNumber=t,r&&(i.lastRemoteSnapshotVersion=r.toTimestamp()),t>i.highestListenSequenceNumber&&(i.highestListenSequenceNumber=t),this.kn(e,i)))}addTargetData(e,t){return this.qn(e,t).next(()=>this.Bn(e).next(r=>(r.targetCount+=1,this.Qn(t,r),this.kn(e,r))))}updateTargetData(e,t){return this.qn(e,t)}removeTargetData(e,t){return this.removeMatchingKeysForTargetId(e,t.targetId).next(()=>H0(e).delete(t.targetId)).next(()=>this.Bn(e)).next(r=>(Rt(r.targetCount>0),r.targetCount-=1,this.kn(e,r)))}removeTargets(e,t,r){let i=0;const s=[];return H0(e).J((o,a)=>{const l=qM(a);l.sequenceNumber<=t&&null===r.get(l.targetId)&&(i++,s.push(this.removeTargetData(e,l)))}).next(()=>ye.waitFor(s)).next(()=>i)}forEachTarget(e,t){return H0(e).J((r,i)=>{const s=qM(i);t(s)})}Bn(e){return nee(e).get("targetGlobalKey").next(t=>(Rt(null!==t),t))}kn(e,t){return nee(e).put("targetGlobalKey",t)}qn(e,t){return H0(e).put(UZ(this.serializer,t))}Qn(e,t){let r=!1;return e.targetId>t.highestTargetId&&(t.highestTargetId=e.targetId,r=!0),e.sequenceNumber>t.highestListenSequenceNumber&&(t.highestListenSequenceNumber=e.sequenceNumber,r=!0),r}getTargetCount(e){return this.Bn(e).next(t=>t.targetCount)}getTargetData(e,t){const r=bg(t),i=IDBKeyRange.bound([r,Number.NEGATIVE_INFINITY],[r,Number.POSITIVE_INFINITY]);let s=null;return H0(e).J({range:i,index:"queryTargetsIndex"},(o,a,l)=>{const c=qM(a);LM(t,c.target)&&(s=c,l.done())}).next(()=>s)}addMatchingKeys(e,t,r){const i=[],s=zf(e);return t.forEach(o=>{const a=Ro(o.path);i.push(s.put({targetId:r,path:a})),i.push(this.referenceDelegate.addReference(e,r,o))}),ye.waitFor(i)}removeMatchingKeys(e,t,r){const i=zf(e);return ye.forEach(t,s=>{const o=Ro(s.path);return ye.waitFor([i.delete([r,o]),this.referenceDelegate.removeReference(e,r,s)])})}removeMatchingKeysForTargetId(e,t){const r=zf(e),i=IDBKeyRange.bound([t],[t+1],!1,!0);return r.delete(i)}getMatchingKeysForTargetId(e,t){const r=IDBKeyRange.bound([t],[t+1],!1,!0),i=zf(e);let s=mn();return i.J({range:r,H:!0},(o,a,l)=>{const c=Yu(o[1]),u=new mt(c);s=s.add(u)}).next(()=>s)}containsKey(e,t){const r=Ro(t.path),i=IDBKeyRange.bound([r],[oX(r)],!1,!0);let s=0;return zf(e).J({index:"documentTargetsIndex",H:!0,range:i},([o,a],l,c)=>{0!==o&&(s++,c.done())}).next(()=>s>0)}ot(e,t){return H0(e).get(t).next(r=>r?qM(r):null)}}function H0(n){return Gs(n,"targets")}function nee(n){return Gs(n,"targetGlobal")}function zf(n){return Gs(n,"targetDocuments")}function ree([n,e],[t,r]){const i=rn(n,t);return 0===i?rn(e,r):i}class tRe{constructor(e){this.Kn=e,this.buffer=new Rr(ree),this.$n=0}Un(){return++this.$n}Wn(e){const t=[e,this.Un()];if(this.buffer.size<this.Kn)this.buffer=this.buffer.add(t);else{const r=this.buffer.last();ree(t,r)<0&&(this.buffer=this.buffer.delete(r).add(t))}}get maxValue(){return this.buffer.last()[0]}}class iee{constructor(e,t,r){this.garbageCollector=e,this.asyncQueue=t,this.localStore=r,this.Gn=null}start(){-1!==this.garbageCollector.params.cacheSizeCollectionThreshold&&this.zn(6e4)}stop(){this.Gn&&(this.Gn.cancel(),this.Gn=null)}get started(){return null!==this.Gn}zn(e){var t=this;We("LruGarbageCollector",`Garbage collection scheduled in ${e}ms`),this.Gn=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",e,(0,ee.A)(function*(){t.Gn=null;try{yield t.localStore.collectGarbage(t.garbageCollector)}catch(r){Lf(r)?We("LruGarbageCollector","Ignoring IndexedDB error during garbage collection: ",r):yield Rf(r)}yield t.zn(3e5)}))}}class nRe{constructor(e,t){this.jn=e,this.params=t}calculateTargetCount(e,t){return this.jn.Hn(e).next(r=>Math.floor(t/100*r))}nthSequenceNumber(e,t){if(0===t)return ye.resolve(Ml.oe);const r=new tRe(t);return this.jn.forEachTarget(e,i=>r.Wn(i.sequenceNumber)).next(()=>this.jn.Jn(e,i=>r.Wn(i))).next(()=>r.maxValue)}removeTargets(e,t,r){return this.jn.removeTargets(e,t,r)}removeOrphanedDocuments(e,t){return this.jn.removeOrphanedDocuments(e,t)}collect(e,t){return-1===this.params.cacheSizeCollectionThreshold?(We("LruGarbageCollector","Garbage collection skipped; disabled"),ye.resolve(XZ)):this.getCacheSize(e).next(r=>r<this.params.cacheSizeCollectionThreshold?(We("LruGarbageCollector",`Garbage collection skipped; Cache size ${r} is lower than threshold ${this.params.cacheSizeCollectionThreshold}`),XZ):this.Yn(e,t))}getCacheSize(e){return this.jn.getCacheSize(e)}Yn(e,t){let r,i,s,o,a,l,c;const u=Date.now();return this.calculateTargetCount(e,this.params.percentileToCollect).next(d=>(d>this.params.maximumSequenceNumbersToCollect?(We("LruGarbageCollector",`C
1apping sequence numbers to collect down to the maximum of ${this.params.maximumSequenceNumbersToCollect} from ${d}`),i=this.params.maximumSequenceNumbersToCollect):i=d,o=Date.now(),this.nthSequenceNumber(e,i))).next(d=>(r=d,a=Date.now(),this.removeTargets(e,r,t))).next(d=>(s=d,l=Date.now(),this.removeOrphanedDocuments(e,r))).next(d=>(c=Date.now(),M0()<=Tl.$b.DEBUG&&We("LruGarbageCollector",`LRU Garbage Collection\n\tCounted targets in ${o-u}ms\n\tDetermined least recently used ${i} in `+(a-o)+`ms\n\tRemoved ${s} targets in `+(l-a)+`ms\n\tRemoved ${d} documents in `+(c-l)+`ms\nTotal Duration: ${c-u}ms`),ye.resolve({didRun:!0,sequenceNumbersCollected:i,targetsRemoved:s,documentsRemoved:d})))}}class rRe{constructor(e,t){this.db=e,this.garbageCollector=function see(n,e){return new nRe(n,e)}(this,t)}Hn(e){const t=this.Zn(e);return this.db.getTargetCache().getTargetCount(e).next(r=>t.next(i=>r+i))}Zn(e){let t=0;return this.Jn(e,r=>{t++}).next(()=>t)}forEachTarget(e,t){return this.db.getTargetCache().forEachTarget(e,t)}Jn(e,t){return this.Xn(e,(r,i)=>t(i))}addReference(e,t,r){return Fx(e,r)}removeReference(e,t,r){return Fx(e,r)}removeTargets(e,t,r){return this.db.getTargetCache().removeTargets(e,t,r)}markPotentiallyOrphaned(e,t){return Fx(e,t)}er(e,t){return function(i,s){let o=!1;return tee(i).Y(a=>eee(i,a,s).next(l=>(l&&(o=!0),ye.resolve(!l)))).next(()=>o)}(e,t)}removeOrphanedDocuments(e,t){const r=this.db.getRemoteDocumentCache().newChangeBuffer(),i=[];let s=0;return this.Xn(e,(o,a)=>{if(a<=t){const l=this.er(e,o).next(c=>{if(!c)return s++,r.getEntry(e,o).next(()=>(r.removeEntry(o,Ft.min()),zf(e).delete([0,Ro(o.path)])))});i.push(l)}}).next(()=>ye.waitFor(i)).next(()=>r.apply(e)).next(()=>s)}removeTarget(e,t){const r=t.withSequenceNumber(e.currentSequenceNumber);return this.db.getTargetCache().updateTargetData(e,r)}updateLimboDocument(e,t){return Fx(e,t)}Xn(e,t){const r=zf(e);let i,s=Ml.oe;return r.J({index:"documentTargetsIndex"},([o,a],{path:l,sequenceNumber:c})=>{0===o?(s!==Ml.oe&&t(new mt(Yu(i)),s),s=c,i=l):s=Ml.oe}).next(()=>{s!==Ml.oe&&t(new mt(Yu(i)),s)})}getCacheSize(e){return this.db.getRemoteDocumentCache().getSize(e)}}function Fx(n,e){return zf(n).put((i=n.currentSequenceNumber,{targetId:0,path:Ro(e.path),sequenceNumber:i}));var i}class oee{constructor(){this.changes=new Zd(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,ui.newInvalidDocument(e).setReadTime(t))}getEntry(e,t){this.assertNotApplied();const r=this.changes.get(t);return void 0!==r?ye.resolve(r):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 iRe{constructor(e){this.serializer=e}setIndexManager(e){this.indexManager=e}addEntry(e,t,r){return xg(e).put(r)}removeEntry(e,t,r){return xg(e).delete(function(s,o){const a=s.path.toArray();return[a.slice(0,a.length-2),a[a.length-2],kx(o),a[a.length-1]]}(t,r))}updateMetadata(e,t){return this.getMetadata(e).next(r=>(r.byteSize+=t,this.tr(e,r)))}getEntry(e,t){let r=ui.newInvalidDocument(t);return xg(e).J({index:"documentKeyIndex",range:IDBKeyRange.only(QM(t))},(i,s)=>{r=this.nr(t,s)}).next(()=>r)}rr(e,t){let r={size:0,document:ui.newInvalidDocument(t)};return xg(e).J({index:"documentKeyIndex",range:IDBKeyRange.only(QM(t))},(i,s)=>{r={document:this.nr(t,s),size:Ox(s)}}).next(()=>r)}getEntries(e,t){let r=Ha();return this.ir(e,t,(i,s)=>{const o=this.nr(i,s);r=r.insert(i,o)}).next(()=>r)}sr(e,t){let r=Ha(),i=new Qr(mt.comparator);return this.ir(e,t,(s,o)=>{const a=this.nr(s,o);r=r.insert(s,a),i=i.insert(s,Ox(o))}).next(()=>({documents:r,_r:i}))}ir(e,t,r){if(t.isEmpty())return ye.resolve();let i=new Rr(uee);t.forEach(l=>i=i.add(l));const s=IDBKeyRange.bound(QM(i.first()),QM(i.last())),o=i.getIterator();let a=o.getNext();return xg(e).J({index:"documentKeyIndex",range:s},(l,c,u)=>{const d=mt.fromSegments([...c.prefixPath,c.collectionGroup,c.documentId]);for(;a&&uee(a,d)<0;)r(a,null),a=o.getNext();a&&a.isEqual(d)&&(r(a,c),a=o.hasNext()?o.getNext():null),a?u.$(QM(a)):u.done()}).next(()=>{for(;a;)r(a,null),a=o.hasNext()?o.getNext():null})}getDocumentsMatchingQuery(e,t,r,i,s){const o=t.path,a=[o.popLast().toArray(),o.lastSegment(),kx(r.readTime),r.documentKey.path.isEmpty()?"":r.documentKey.path.lastSegment()],l=[o.popLast().toArray(),o.lastSegment(),[Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],""];return xg(e).U(IDBKeyRange.bound(a,l,!0)).next(c=>{s?.incrementDocumentReadCount(c.length);let u=Ha();for(const d of c){const f=this.nr(mt.fromSegments(d.prefixPath.concat(d.collectionGroup,d.documentId)),d);
1f.isFoundDocument()&&(NM(t,f)||i.has(f.key))&&(u=u.insert(f.key,f))}return u})}getAllFromCollectionGroup(e,t,r,i){let s=Ha();const o=cee(t,r),a=cee(t,El.max());return xg(e).J({index:"collectionGroupIndex",range:IDBKeyRange.bound(o,a,!0)},(l,c,u)=>{const d=this.nr(mt.fromSegments(c.prefixPath.concat(c.collectionGroup,c.documentId)),c);s=s.insert(d.key,d),s.size===i&&u.done()}).next(()=>s)}newChangeBuffer(e){return new sRe(this,!!e&&e.trackRemovals)}getSize(e){return this.getMetadata(e).next(t=>t.byteSize)}getMetadata(e){return lee(e).get("remoteDocumentGlobalKey").next(t=>(Rt(!!t),t))}tr(e,t){return lee(e).put("remoteDocumentGlobalKey",t)}nr(e,t){if(t){const r=function $Pe(n,e){let t;if(e.document)t=xZ(n.ct,e.document,!!e.hasCommittedMutations);else if(e.noDocument){const r=mt.fromSegments(e.noDocument.path),i=Ig(e.noDocument.readTime);t=ui.newNoDocument(r,i),e.hasCommittedMutations&&t.setHasCommittedMutations()}else{if(!e.unknownDocument)return St();{const r=mt.fromSegments(e.unknownDocument.path),i=Ig(e.unknownDocument.version);t=ui.newUnknownDocument(r,i)}}return e.readTime&&t.setReadTime(function(i){const s=new Di(i[0],i[1]);return Ft.fromTimestamp(s)}(e.readTime)),t}(this.serializer,t);if(!r.isNoDocument()||!r.version.isEqual(Ft.min()))return r}return ui.newInvalidDocument(e)}}function aee(n){return new iRe(n)}class sRe extends oee{constructor(e,t){super(),this.ar=e,this.trackRemovals=t,this.ur=new Zd(r=>r.toString(),(r,i)=>r.isEqual(i))}applyChanges(e){const t=[];let r=0,i=new Rr((s,o)=>rn(s.canonicalString(),o.canonicalString()));
1return this.changes.forEach((s,o)=>{const a=this.ur.get(s);if(t.push(this.ar.removeEntry(e,s,a.readTime)),o.isValidDocument()){const l=VZ(this.ar.serializer,o);i=i.add(s.path.popLast());const c=Ox(l);r+=c-a.size,t.push(this.ar.addEntry(e,s,l))}else if(r-=a.size,this.trackRemovals){const l=VZ(this.ar.serializer,o.convertToNoDocument(Ft.min()));t.push(this.ar.addEntry(e,s,l))}}),i.forEach(s=>{t.push(this.ar.indexManager.addToCollectionParentIndex(e,s))}),t.push(this.ar.updateMetadata(e,r)),ye.waitFor(t)}getFromCache(e,t){return this.ar.rr(e,t).next(r=>(this.ur.set(t,{size:r.size,readTime:r.document.readTime}),r.document))}getAllFromCache(e,t){return this.ar.sr(e,t).next(({documents:r,_r:i})=>(i.forEach((s,o)=>{this.ur.set(s,{size:o,readTime:r.get(s).readTime})}),r))}}function lee(n){return Gs(n,"remoteDocumentGlobal")}function xg(n){return Gs(n,"remoteDocumentsV14")}function QM(n){const e=n.path.toArray();return[e.slice(0,e.length-2),e[e.length-2],e[e.length-1]]}function cee(n,e){const t=e.documentKey.path.toArray();return[n,kx(e.readTime),t.slice(0,t.length-2),t.length>0?t[t.length-1]:""]}function uee(n,e){const t=n.path.toArray(),r=e.path.toArray();let i=0;for(let s=0;s<t.length-2&&s<r.length-2;++s)if(i=rn(t[s],r[s]),i)return i;return i=rn(t.length,r.length),i||(i=rn(t[t.length-2],r[r.length-2]),i||rn(t[t.length-1],r[r.length-1]))}class oRe{constructor(e,t){this.overlayedDocument=e,this.mutatedFields=t}}
1class dee{constructor(e,t,r,i){this.remoteDocumentCache=e,this.mutationQueue=t,this.documentOverlayCache=r,this.indexManager=i}getDocument(e,t){let r=null;return this.documentOverlayCache.getOverlay(e,t).next(i=>(r=i,this.remoteDocumentCache.getEntry(e,t))).next(i=>(null!==r&&jM(r.mutation,i,Ba.empty(),Di.now()),i))}getDocuments(e,t){return this.remoteDocumentCache.getEntries(e,t).next(r=>this.getLocalViewOfDocuments(e,r,mn()).next(()=>r))}getLocalViewOfDocuments(e,t,r=mn()){const i=Hu();return this.populateOverlays(e,i,t).next(()=>this.computeViews(e,t,i,r).next(s=>{let o=FM();return s.forEach((a,l)=>{o=o.insert(a,l.overlayedDocument)}),o}))}getOverlayedDocuments(e,t){const r=Hu();return this.populateOverlays(e,r,t).next(()=>this.computeViews(e,t,r,mn()))}populateOverlays(e,t,r){const i=[];return r.forEach(s=>{t.has(s)||i.push(s)}),this.documentOverlayCache.getOverlays(e,i).next(s=>{s.forEach((o,a)=>{t.set(o,a)})})}computeViews(e,t,r,i){let s=Ha();const o=VM(),a=VM();return t.forEach((l,c)=>{const u=r.get(c.key);i.has(c.key)&&(void 0===u||u.mutation instanceof eh)?s=s.insert(c.key,c):void 0!==u?(o.set(c.key,u.mutation.getFieldMask()),jM(u.mutation,c,u.mutation.getFieldMask(),Di.now())):o.set(c.key,Ba.empty())}),this.recalculateAndSaveOverlays(e,s).next(l=>(l.forEach((c,u)=>o.set(c,u)),t.forEach((c,u)=>{var d;return a.set(c,new oRe(u,null!==(d=o.get(c))&&void 0!==d?d:null))}),a))}recalculateAndSaveOverlays(e,t){const r=VM();let i=new Qr((o,a)=>o-a),s=mn();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,t).next(o=>{for(const a of o)a.keys().forEach(l=>{const c=t.get(l);if(null===c)return;let u=r.get(l)||Ba.empty();u=a.applyToLocalView(c,u),r.set(l,u);const d=(i.get(a.batchId)||mn()).add(l);i=i.insert(a.batchId,d)})}).next(()=>{const o=[],a=i.getReverseIterator();for(;a.hasNext();){const l=a.getNext(),c=l.key,u=l.value,d=ZX();u.forEach(f=>{if(!s.has(f)){const _=lZ(t.get(f),r.get(f));null!==_&&d.set(f,_),s=s.add(f)}}),o.push(this.documentOverlayCache.saveOverlays(e,c,d))}return ye.waitFor(o)}).next(()=>r)}recalculateAndSaveOverlaysForDocumentKeys(e,t){return this.remoteDocumentCache.getEntries(e,t).next(r=>this.recalculateAndSaveOverlays(e,r))}getDocumentsMatchingQuery(e,t,r,i){return mt.isDocumentKey((o=t).path)&&null===o.collectionGroup&&0===o.filters.length?this.getDocumentsMatchingDocumentQuery(e,t.path):tU(t)?this.getDocumentsMatchingCollectionGroupQuery(e,t,r,i):this.getDocumentsMatchingCollectionQuery(e,t,r,i);var o}getNextDocuments(e,t,r,i){return this.remoteDocumentCache.getAllFromCollectionGroup(e,t,r,i).next(s=>{const o=i-s.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,t,r.largestBatchId,i-s.size):ye.resolve(Hu());let a=-1,l=s;return o.next(c=>ye.forEach(c,(u,d)=>(a<d.largestBatchId&&(a=d.largestBatchId),s.get(u)?ye.resolve():this.remoteDocumentCache.getEntry(e,u).next(f=>{l=l.insert(u,f)}))).next(()=>this.populateOverlays(e,c,s)).next(()=>this.computeViews(e,l,c,mn())).next(u=>({batchId:a,changes:XX(u)})))})}getDocumentsMatchingDocumentQuery(e,t){return this.getDocument(e,new mt(t)).next(r=>{let i=FM();return r.isFoundDocument()&&(i=i.insert(r.key,r)),i})}getDocumentsMatchingCollectionGroupQuery(e,t,r,i){const s=t.collectionGroup;let o=FM();return this.indexManager.getCollectionParents(e,s).next(a=>ye.forEach(a,l=>{const c=(d=t,f=l.child(s),new Xd(f,null,d.explicitOrderBy.slice(),d.filters.slice(),d.limit,d.limitType,d.startAt,d.endAt));var d,f;return this.getDocumentsMatchingCollectionQuery(e,c,r,i).next(u=>{u.forEach((d,f)=>{o=o.insert(d,f)})})}).next(()=>o))}getDocumentsMatchingCollectionQuery(e,t,r,i){let s;return this.documentOverlayCache.getOverlaysForCollection(e,t.path,r.largestBatchId).next(o=>(s=o,this.remoteDocumentCache.getDocumentsMatchingQuery(e,t,r,s,i))).next(o=>{s.forEach((l,c)=>{const u=c.getKey();null===o.get(u)&&(o=o.insert(u,ui.newInvalidDocument(u)))});let a=FM();return o.forEach((l,c)=>{const u=s.get(l);void 0!==u&&jM(u.mutation,c,Ba.empty(),Di.now()),NM(t,c)&&(a=a.insert(l,c))}),a})}}class aRe{constructor(e){this.serializer=e,this.cr=new Map,this.lr=new Map}
1getBundleMetadata(e,t){return ye.resolve(this.cr.get(t))}saveBundleMetadata(e,t){return this.cr.set(t.id,{id:(i=t).id,version:i.version,createTime:us(i.createTime)}),ye.resolve();var i}getNamedQuery(e,t){return ye.resolve(this.lr.get(t))}saveNamedQuery(e,t){return this.lr.set(t.name,{name:(i=t).name,query:pU(i.bundledQuery),readTime:us(i.readTime)}),ye.resolve();var i}}class lRe{constructor(){this.overlays=new Qr(mt.comparator),this.hr=new Map}getOverlay(e,t){return ye.resolve(this.overlays.get(t))}getOverlays(e,t){const r=Hu();return ye.forEach(t,i=>this.getOverlay(e,i).next(s=>{null!==s&&r.set(i,s)})).next(()=>r)}saveOverlays(e,t,r){return r.forEach((i,s)=>{this.ht(e,t,s)}),ye.resolve()}removeOverlaysForBatchId(e,t,r){const i=this.hr.get(r);return void 0!==i&&(i.forEach(s=>this.overlays=this.overlays.remove(s)),this.hr.delete(r)),ye.resolve()}getOverlaysForCollection(e,t,r){const i=Hu(),s=t.length+1,o=new mt(t.child("")),a=this.overlays.getIteratorFrom(o);for(;a.hasNext();){const l=a.getNext().value,c=l.getKey();if(!t.isPrefixOf(c.path))break;c.path.length===s&&l.largestBatchId>r&&i.set(l.getKey(),l)}return ye.resolve(i)}getOverlaysForCollectionGroup(e,t,r,i){let s=new Qr((c,u)=>c-u);const o=this.overlays.getIterator();for(;o.hasNext();){const c=o.getNext().value;if(c.getKey().getCollectionGroup()===t&&c.largestBatchId>r){let u=s.get(c.largestBatchId);null===u&&(u=Hu(),s=s.insert(c.largestBatchId,u)),u.set(c.getKey(),c)}}const a=Hu(),l=s.getIterator();for(;l.hasNext()&&(l.getNext().value.forEach((c,u)=>a.set(c,u)),!(a.size()>=i)););return ye.resolve(a)}ht(e,t,r){const i=this.overlays.get(r.key);if(null!==i){const o=this.hr.get(i.largestBatchId).delete(r.key);this.hr.set(i.largestBatchId,o)}this.overlays=this.overlays.insert(r.key,new aU(t,r));let s=this.hr.get(t);void 0===s&&(s=mn(),this.hr.set(t,s)),this.hr.set(t,s.add(r.key))}}class bU{constructor(){this.Pr=new Rr(Ks.Ir),this.Tr=new Rr(Ks.Er)}isEmpty(){return this.Pr.isEmpty()}addReference(e,t){const r=new Ks(e,t);this.Pr=this.Pr.add(r),this.Tr=this.Tr.add(r)}dr(e,t){e.forEach(r=>this.addReference(r,t))}removeReference(e,t){this.Ar(new Ks(e,t))}Rr(e,t){e.forEach(r=>this.removeReference(r,t))}Vr(e){const t=new mt(new On([])),r=new Ks(t,e),i=new Ks(t,e+1),s=[];return this.Tr.forEachInRange([r,i],o=>{this.Ar(o),s.push(o.key)}),s}mr(){this.Pr.forEach(e=>this.Ar(e))}Ar(e){this.Pr=this.Pr.delete(e),this.Tr=this.Tr.delete(e)}gr(e){const t=new mt(new On([])),r=new Ks(t,e),i=new Ks(t,e+1);let s=mn();return this.Tr.forEachInRange([r,i],o=>{s=s.add(o.key)}),s}containsKey(e){const t=new Ks(e,0),r=this.Pr.firstAfterOrEqual(t);return null!==r&&e.isEqual(r.key)}}class Ks{constructor(e,t){this.key=e,this.pr=t}static Ir(e,t){return mt.comparator(e.key,t.key)||rn(e.pr,t.pr)}static Er(e,t){return rn(e.pr,t.pr)||mt.comparator(e.key,t.key)}}class cRe{constructor(e,t){this.indexManager=e,this.referenceDelegate=t,this.mutationQueue=[],this.yr=1,this.wr=new Rr(Ks.Ir)}checkEmpty(e){return ye.resolve(0===this.mutationQueue.length)}addMutationBatch(e,t,r,i){const s=this.yr;this.yr++;const o=new sU(s,t,r,i);this.mutationQueue.push(o);for(const a of i)this.wr=this.wr.add(new Ks(a.key,s)),this.indexManager.addToCollectionParentIndex(e,a.key.path.popLast());return ye.resolve(o)}lookupMutationBatch(e,t){return ye.resolve(this.Sr(t))}getNextMutationBatchAfterBatchId(e,t){const i=this.br(t+1),s=i<0?0:i;return ye.resolve(this.mutationQueue.length>s?this.mutationQueue[s]:null)}getHighestUnacknowledgedBatchId(){return ye.resolve(0===this.mutationQueue.length?-1:this.yr-1)}getAllMutationBatches(e){return ye.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,t){const r=new Ks(t,0),i=new Ks(t,Number.POSITIVE_INFINITY),s=[];return this.wr.forEachInRange([r,i],o=>{const a=this.Sr(o.pr);s.push(a)}),ye.resolve(s)}getAllMutationBatchesAffectingDocumentKeys(e,t){let r=new Rr(rn);return t.forEach(i=>{const s=new Ks(i,0),o=new Ks(i,Number.POSITIVE_INFINITY);this.wr.forEachInRange([s,o],a=>{r=r.add(a.pr)})}),ye.resolve(this.Dr(r))}getAllMutationBatchesAffectingQuery(e,t){const r=t.path,i=r.length+1;let s=r;mt.isDocumentKey(s)||(s=s.child(""));const o=new Ks(new mt(s),0);let a=new Rr(rn);return this.wr.forEachWhile(l=>{const c=l.key.path;return!!r.isPrefixOf(c)&&(c.length===i&&(a=a.add(l.pr)),!0)},o),ye.resolve(this.Dr(a))}Dr(e){const t=[];return e.forEach(r=>{const i=this.Sr(r);null!==i&&t.push(i)}),t}removeMutationBatch(e,t){Rt(0===this.Cr(t.batchId,"removed")),this.mutation
1Queue.shift();let r=this.wr;return ye.forEach(t.mutations,i=>{const s=new Ks(i.key,t.batchId);return r=r.delete(s),this.referenceDelegate.markPotentiallyOrphaned(e,i.key)}).next(()=>{this.wr=r})}Mn(e){}containsKey(e,t){const r=new Ks(t,0),i=this.wr.firstAfterOrEqual(r);return ye.resolve(t.isEqual(i&&i.key))}performConsistencyCheck(e){return ye.resolve()}Cr(e,t){return this.br(e)}br(e){return 0===this.mutationQueue.length?0:e-this.mutationQueue[0].batchId}Sr(e){const t=this.br(e);return t<0||t>=this.mutationQueue.length?null:this.mutationQueue[t]}}class uRe{constructor(e){this.vr=e,this.docs=new Qr(mt.comparator),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,t){const r=t.key,i=this.docs.get(r),s=i?i.size:0,o=this.vr(t);return this.docs=this.docs.insert(r,{document:t.mutableCopy(),size:o}),this.size+=o-s,this.indexManager.addToCollectionParentIndex(e,r.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 r=this.docs.get(t);return ye.resolve(r?r.document.mutableCopy():ui.newInvalidDocument(t))}getEntries(e,t){let r=Ha();return t.forEach(i=>{const s=this.docs.get(i);r=r.insert(i,s?s.document.mutableCopy():ui.newInvalidDocument(i))}),ye.resolve(r)}getDocumentsMatchingQuery(e,t,r,i){let s=Ha();const o=t.path,a=new mt(o.child("")),l=this.docs.getIteratorFrom(a);for(;l.hasNext();){const{key:c,value:{document:u}}=l.getNext();if(!o.isPrefixOf(c.path))break;c.path.length>o.length+1||$V(lX(u),r)<=0||(i.has(u.key)||NM(t,u))&&(s=s.insert(u.key,u.mutableCopy()))}return ye.resolve(s)}getAllFromCollectionGroup(e,t,r,i){St()}Fr(e,t){return ye.forEach(this.docs,r=>t(r))}newChangeBuffer(e){return new dRe(this)}getSize(e){return ye.resolve(this.size)}}class dRe extends oee{constructor(e){super(),this.ar=e}applyChanges(e){const t=[];
vendor: 4,451 bytes, line 1
1return this.changes.forEach((r,i)=>{i.isValidDocument()?t.push(this.ar.addEntry(e,i)):this.ar.removeEntry(r)}),ye.waitFor(t)}getFromCache(e,t){return this.ar.getEntry(e,t)}getAllFromCache(e,t){return this.ar.getEntries(e,t)}}class hRe{constructor(e){this.persistence=e,this.Mr=new Zd(t=>bg(t),LM),this.lastRemoteSnapshotVersion=Ft.min(),this.highestTargetId=0,this.Or=0,this.Nr=new bU,this.targetCount=0,this.Lr=Ag.Nn()}forEachTarget(e,t){return this.Mr.forEach((r,i)=>t(i)),ye.resolve()}getLastRemoteSnapshotVersion(e){return ye.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return ye.resolve(this.Or)}allocateTargetId(e){return this.highestTargetId=this.Lr.next(),ye.resolve(this.highestTargetId)}setTargetsMetadata(e,t,r){return r&&(this.lastRemoteSnapshotVersion=r),t>this.Or&&(this.Or=t),ye.resolve()}qn(e){this.Mr.set(e.target,e);const t=e.targetId;t>this.highestTargetId&&(this.Lr=new Ag(t),this.highestTargetId=t),e.sequenceNumber>this.Or&&(this.Or=e.sequenceNumber)}addTargetData(e,t){return this.qn(t),this.targetCount+=1,ye.resolve()}updateTargetData(e,t){return this.qn(t),ye.resolve()}removeTargetData(e,t){return this.Mr.delete(t.target),this.Nr.Vr(t.targetId),this.targetCount-=1,ye.resolve()}removeTargets(e,t,r){let i=0;const s=[];return this.Mr.forEach((o,a)=>{a.sequenceNumber<=t&&null===r.get(a.targetId)&&(this.Mr.delete(o),s.push(this.removeMatchingKeysForTargetId(e,a.targetId)),i++)}),ye.waitFor(s).next(()=>i)}getTargetCount(e){return ye.resolve(this.targetCount)}getTargetData(e,t){const r=this.Mr.get(t)||null;return ye.resolve(r)}addMatchingKeys(e,t,r){return this.Nr.dr(t,r),ye.resolve()}removeMatchingKeys(e,t,r){this.Nr.Rr(t,r);const i=this.persistence.referenceDelegate,s=[];return i&&t.forEach(o=>{s.push(i.markPotentiallyOrphaned(e,o))}),ye.waitFor(s)}removeMatchingKeysForTargetId(e,t){return this.Nr.Vr(t),ye.resolve()}getMatchingKeysForTargetId(e,t){const r=this.Nr.gr(t);return ye.resolve(r)}containsKey(e,t){return ye.resolve(this.Nr.containsKey(t))}}class TU{constructor(e,t){this.Br={},this.overlays={},this.kr=new Ml(0),this.qr=!1,this.qr=!0,this.referenceDelegate=e(this),this.Qr=new hRe(this),this.indexManager=new XPe,this.remoteDocumentCache=new uRe(r=>this.referenceDelegate.Kr(r)),this.serializer=new FZ(t),this.$r=new aRe(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.qr=!1,Promise.resolve()}get started(){return this.qr}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let t=this.overlays[e.toKey()];return t||(t=new lRe,this.overlays[e.toKey()]=t),t}getMutationQueue(e,t){let r=this.Br[e.toKey()];return r||(r=new cRe(t,this.referenceDelegate),this.Br[e.toKey()]=r),r}getTargetCache(){return this.Qr}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.$r}runTransaction(e,t,r){We("MemoryPersistence","Starting transaction:",e);const i=new fRe(this.kr.next());return this.referenceDelegate.Ur(),r(i).next(s=>this.referenceDelegate.Wr(i).next(()=>s)).toPromise().then(s=>(i.raiseOnCommittedEvent(),s))}Gr(e,t){return ye.or(Object.values(this.Br).map(r=>()=>r.containsKey(e,t)))}}class fRe extends uX{constructor(e){super(),this.currentSequenceNumber=e}}class Vx{constructor(e){this.persistence=e,this.zr=new bU,this.jr=null}static Hr(e){return new Vx(e)}get Jr(){if(this.jr)return this.jr;throw St()}addReference(e,t,r){return this.zr.addReference(r,t),this.Jr.delete(r.toString()),ye.resolve()}removeReference(e,t,r){return this.zr.removeReference(r,t),this.Jr.add(r.toString()),ye.resolve()}markPotentiallyOrphaned(e,t){return this.Jr.add(t.toString()),ye.resolve()}removeTarget(e,t){this.zr.Vr(t.targetId).forEach(i=>this.Jr.add(i.toString()));const r=this.persistence.getTargetCache();return r.getMatchingKeysForTargetId(e,t.targetId).next(i=>{i.forEach(s=>this.Jr.add(s.toString()))}).next(()=>r.removeTargetData(e,t))}Ur(){this.jr=new Set}Wr(e){const t=this.persistence.getRemoteDocumentCache().newChangeBuffer();return ye.forEach(this.Jr,r=>{const i=mt.fromPath(r);return this.Yr(e,i).next(s=>{s||t.removeEntry(i,Ft.min())})}).next(()=>(this.jr=null,t.apply(e)))}updateLimboDocument(e,t){return this.Yr(e,t).next(r=>{r?this.Jr.delete(t.toString()):this.Jr.add(t.toString())})}Kr(e){return 0}Yr(e,t){return ye.or([()=>ye.resolve(this.zr.containsKey(t)),()=>this.persistence.getTargetCache().containsKey(e,t),()=>this.persistence.Gr(e,t)])}}
1class pRe{constructor(e){this.serializer=e}O(e,t,r,i){const s=new px("createOrUpgrade",t);var l;r<1&&i>=1&&(e.createObjectStore("owner"),(l=e).createObjectStore("mutationQueues",{keyPath:"userId"}),l.createObjectStore("mutations",{keyPath:"batchId",autoIncrement:!0}).createIndex("userMutationsIndex",mX,{unique:!0}),l.createObjectStore("documentMutations"),hee(e),function(l){l.createObjectStore("remoteDocuments")}(e));let o=ye.resolve();return r<3&&i>=3&&(0!==r&&(function(l){l.deleteObjectStore("targetDocuments"),l.deleteObjectStore("targets"),l.deleteObjectStore("targetGlobal")}(e),hee(e)),o=o.next(()=>function(l){const c=l.store("targetGlobal"),u={highestTargetId:0,highestListenSequenceNumber:0,lastRemoteSnapshotVersion:Ft.min().toTimestamp(),targetCount:0};return c.put("targetGlobalKey",u)}(s))),r<4&&i>=4&&(0!==r&&(o=o.next(()=>function(l,c){return c.store("mutations").U().next(u=>{l.deleteObjectStore("mutations"),l.createObjectStore("mutations",{keyPath:"batchId",autoIncrement:!0}).createIndex("userMutationsIndex",mX,{unique:!0});const d=c.store("mutations"),f=u.map(_=>d.put(_));return ye.waitFor(f)})}(e,s))),o=o.next(()=>{!function(l){l.createObjectStore("clientMetadata",{keyPath:"clientId"})}(e)})),r<5&&i>=5&&(o=o.next(()=>this.Xr(s))),r<6&&i>=6&&(o=o.next(()=>(function(l){l.createObjectStore("remoteDocumentGlobal")}(e),this.ei(s)))),r<7&&i>=7&&(o=o.next(()=>this.ti(s))),r<8&&i>=8&&(o=o.next(()=>this.ni(e,s))),r<9&&i>=9&&(o=o.next(()=>{!function(l){l.objectStoreNames.contains("remoteDocumentChanges")&&l.deleteObjectStore("remoteDocumentChanges")}(e)})),r<10&&i>=10&&(o=o.next(()=>this.ri(s))),r<11&&i>=11&&(o=o.next(()=>{(function(l){l.createObjectStore("bundles",{keyPath:"bundleId"})})(e),function(l){l.createObjectStore("namedQueries",{keyPath:"name"})}(e)})),r<12&&i>=12&&(o=o.next(()=>{!function(l){const c=l.createObjectStore("documentOverlays",{keyPath:ePe});c.createIndex("collectionPathOverlayIndex",tPe,{unique:!1}),c.createIndex("collectionGroupOverlayIndex",nPe,{unique:!1})}(e)})),r<13&&i>=13&&(o=o.next(()=>function(l){const c=l.createObjectStore("remoteDocumentsV14",{keyPath:Hke});c.createIndex("documentKeyIndex",zke),c.createIndex("collectionGroupIndex",$ke)}(e)).next(()=>this.ii(e,s)).next(()=>e.deleteObjectStore("remoteDocuments"))),r<14&&i>=14&&(o=o.next(()=>this.si(e,s))),r<15&&i>=15&&(o=o.next(()=>function(l){l.createObjectStore("indexConfiguration",{keyPath:"indexId",autoIncrement:!0}).createIndex("collectionGroupIndex","collectionGroup",{unique:!1}),l.createObjectStore("indexState",{keyPath:Qke}).createIndex("sequenceNumberIndex",Jke,{unique:!1}),l.createObjectStore("indexEntries",{keyPath:Xke}).createIndex("documentKeyIndex",Zke,{unique:!1})}(e))),r<16&&i>=16&&(o=o.next(()=>{t.objectStore("indexState").clear()}).next(()=>{t.objectStore("indexEntries").clear()})),o}ei(e){let t=0;return e.store("remoteDocuments").J((r,i)=>{t+=Ox(i)}).next(()=>{const r={byteSize:t};return e.store("remoteDocumentGlobal").put("remoteDocumentGlobalKey",r)})}Xr(e){const t=e.store("mutationQueues"),r=e.store("mutations");return t.U().next(i=>ye.forEach(i,s=>{const o=IDBKeyRange.bound([s.userId,-1],[s.userId,s.lastAcknowledgedBatchId]);return r.U("userMutationsIndex",o).next(a=>ye.forEach(a,l=>{Rt(l.userId===s.userId);const c=Dg(this.serializer,l);return ZZ(e,s.userId,c).next(()=>{})}))}))}ti(e){const t=e.store("targetDocuments"),r=e.store("remoteDocuments");return e.store("targetGlobal").get("targetGlobalKey").next(i=>{const s=[];return r.J((o,a)=>{const l=new On(o),c=[0,Ro(l)];s.push(t.get(c).next(u=>u?ye.resolve():t.put({targetId:0,path:Ro(l),sequenceNumber:i.highestListenSequenceNumber})))}).next(()=>ye.waitFor(s))})}ni(e,t){e.createObjectStore("collectionParents",{keyPath:Kke});const r=t.store("collectionParents"),i=new wU,s=o=>{if(i.add(o)){const a=o.lastSegment(),l=o.popLast();return r.put({collectionId:a,parent:Ro(l)})}};return t.store("remoteDocuments").J({H:!0},(o,a)=>{const l=new On(o);return s(l.popLast())}).next(()=>t.store("documentMutations").J({H:!0},([o,a,l],c)=>{const u=Yu(a);return s(u.popLast())}))}ri(e){const t=e.store("targets");return t.J((r,i)=>{const s=qM(i),o=UZ(this.serializer,s);return t.put(o)})}ii(e,t){const r=t.store("remoteDocuments"),i=[];return r.J((s,o)=>{const a=t.store("remoteDocumentsV14"),l=(d=o,d.document?new mt(On.fromString(d.document.name).popFirst(5)):d.noDocument?mt.fromSegments(d.noDocument.path):d.unknownDocument?mt.fromSegments(d.unknownDocument.path):St()).path.toArray(),c={prefixPath:l.slice(0,l.length-2),collectionGroup:l[l.length-2],documentId:l[l.length-1],readTime:o.readTime||[0,0],unknownDocument:o.unknownDocument,noDocument:o.noDocument,document:o.document,hasCommittedMutations:!!o.hasCommittedMutations};var d;i.push(a.put(c))}).next(()=>ye.waitFor(i))}si(e,t){const r=t.store("mutations"),i=aee(this.serializer),s=new TU(Vx.Hr,this.serializer.ct);return r.U().next(o=>{const a=new Map;return o.forEach(l=>{var c;
1let u=null!==(c=a.get(l.userId))&&void 0!==c?c:mn();Dg(this.serializer,l).keys().forEach(d=>u=u.add(d)),a.set(l.userId,u)}),ye.forEach(a,(l,c)=>{const u=new Ws(c),d=Px.lt(this.serializer,u),f=s.getIndexManager(u),_=Nx.lt(u,this.serializer,f,s.referenceDelegate);return new dee(i,_,d,f).recalculateAndSaveOverlaysForDocumentKeys(new GV(t,Ml.oe),l).next()})})}}function hee(n){n.createObjectStore("targetDocuments",{keyPath:Wke}).createIndex("documentTargetsIndex",Gke,{unique:!0}),n.createObjectStore("targets",{keyPath:"targetId"}).createIndex("queryTargetsIndex",qke,{unique:!0}),n.createObjectStore("targetGlobal")}const EU="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 MU{constructor(e,t,r,i,s,o,a,l,c,u,d=16){if(this.allowTabSynchronization=e,this.persistenceKey=t,this.clientId=r,this.oi=s,this.window=o,this.document=a,this._i=c,this.ai=u,this.ui=d,this.kr=null,this.qr=!1,this.isPrimary=!1,this.networkEnabled=!0,this.ci=null,this.inForeground=!1,this.li=null,this.hi=null,this.Pi=Number.NEGATIVE_INFINITY,this.Ii=f=>Promise.resolve(),!MU.D())throw new He(xe.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.referenceDelegate=new rRe(this,i),this.Ti=t+"main",this.serializer=new FZ(l),this.Ei=new ju(this.Ti,this.ui,new pRe(this.serializer)),this.Qr=new eRe(this.referenceDelegate,this.serializer),this.remoteDocumentCache=aee(this.serializer),this.$r=new qPe,this.window&&this.window.localStorage?this.di=this.window.localStorage:(this.di=null,!1===u&&cs("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.Ai().then(()=>{if(!this.isPrimary&&!this.allowTabSynchronization)throw new He(xe.FAILED_PRECONDITION,EU);return this.Ri(),this.Vi(),this.mi(),this.runTransaction("getHighestListenSequenceNumber","readonly",e=>this.Qr.getHighestSequenceNumber(e))}).then(e=>{this.kr=new Ml(e,this._i)}).then(()=>{this.qr=!0}).catch(e=>(this.Ei&&this.Ei.close(),Promise.reject(e)))}fi(e){var t=this;return this.Ii=function(){var r=(0,ee.A)(function*(i){if(t.started)return e(i)});return function(i){return r.apply(this,arguments)}}(),e(this.isPrimary)}setDatabaseDeletedListener(e){this.Ei.L(function(){var t=(0,ee.A)(function*(r){null===r.newVersion&&(yield e())});return function(r){return t.apply(this,arguments)}}())}setNetworkEnabled(e){var t=this;this.networkEnabled!==e&&(this.networkEnabled=e,this.oi.enqueueAndForget((0,ee.A)(function*(){t.started&&(yield t.Ai())})))}Ai(){return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",e=>jx(e).put({clientId:this.clientId,updateTimeMs:Date.now(),networkEnabled:this.networkEnabled,inForeground:this.inForeground}).next(()=>{if(this.isPrimary)return this.gi(e).next(t=>{t||(this.isPrimary=!1,this.oi.enqueueRetryable(()=>this.Ii(!1)))})}).next(()=>this.pi(e)).next(t=>this.isPrimary&&!t?this.yi(e).next(()=>!1):!!t&&this.wi(e).next(()=>!0))).catch(e=>{if(Lf(e))return We("IndexedDbPersistence","Failed to extend owner lease: ",e),this.isPrimary;if(!this.allowTabSynchronization)throw e;return We("IndexedDbPersistence","Releasing owner lease after error during lease refresh",e),!1}).then(e=>{this.isPrimary!==e&&this.oi.enqueueRetryable(()=>this.Ii(e)),this.isPrimary=e})}gi(e){return JM(e).get("owner").next(t=>ye.resolve(this.Si(t)))}bi(e){return jx(e).delete(this.clientId)}Di(){var e=this;return(0,ee.A)(function*(){if(e.isPrimary&&!e.Ci(e.Pi,18e5)){e.Pi=Date.now();const t=yield e.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",r=>{const i=Gs(r,"clientMetadata");return i.U().next(s=>{const o=e.vi(s,18e5),a=s.filter(l=>-1===o.indexOf(l));return ye.forEach(a,l=>i.delete(l.clientId)).next(()=>a)})}).catch(()=>[]);if(e.di)for(const r of t)e.di.removeItem(e.Fi(r.clientId))}})()}mi(){this.hi=this.oi.enqueueAfterDelay("client_metadata_refresh",4e3,()=>this.Ai().then(()=>this.Di()).then(()=>
1this.mi()))}Si(e){return!!e&&e.ownerId===this.clientId}pi(e){return this.ai?ye.resolve(!0):JM(e).get("owner").next(t=>{if(null!==t&&this.Ci(t.leaseTimestampMs,5e3)&&!this.Mi(t.ownerId)){if(this.Si(t)&&this.networkEnabled)return!0;if(!this.Si(t)){if(!t.allowTabSynchronization)throw new He(xe.FAILED_PRECONDITION,EU);return!1}}return!(!this.networkEnabled||!this.inForeground)||jx(e).U().next(r=>void 0===this.vi(r,5e3).find(i=>!(this.clientId===i.clientId||!(!this.networkEnabled&&i.networkEnabled||!this.inForeground&&i.inForeground&&this.networkEnabled===i.networkEnabled))))}).next(t=>(this.isPrimary!==t&&We("IndexedDbPersistence",`Client ${t?"is":"is not"} eligible for a primary lease.`),t))}shutdown(){var e=this;return(0,ee.A)(function*(){e.qr=!1,e.xi(),e.hi&&(e.hi.cancel(),e.hi=null),e.Oi(),e.Ni(),yield e.Ei.runTransaction("shutdown","readwrite",["owner","clientMetadata"],t=>{const r=new GV(t,Ml.oe);return e.yi(r).next(()=>e.bi(r))}),e.Ei.close(),e.Li()})()}vi(e,t){return e.filter(r=>this.Ci(r.updateTimeMs,t)&&!this.Mi(r.clientId))}Bi(){return this.runTransaction("getActiveClients","readonly",e=>jx(e).U().next(t=>this.vi(t,18e5).map(r=>r.clientId)))}get started(){return this.qr}getMutationQueue(e,t){return Nx.lt(e,this.serializer,t,this.referenceDelegate)}getTargetCache(){return this.Qr}getRemoteDocumentCache(){return this.remoteDocumentCache}getIndexManager(e){return new ZPe(e,this.serializer.ct.databaseId)}getDocumentOverlayCache(e){return Px.lt(this.serializer,e)}getBundleCache(){return this.$r}runTransaction(e,t,r){We("IndexedDbPersistence","Starting transaction:",e);const i="readonly"===t?"readonly":"readwrite",s=16===(l=this.ui)?iPe:15===l?wX:14===l?vX:13===l?yX:12===l?rPe:11===l?_X:void St();var l;let o;return this.Ei.runTransaction(e,i,s,a=>(o=new GV(a,this.kr?this.kr.next():Ml.oe),"readwrite-primary"===t?this.gi(o).next(l=>!!l||this.pi(o)).next(l=>{if(!l)throw cs(`Failed to obtain primary lease for action '${e}'.`),this.isPrimary=!1,this.oi.enqueueRetryable(()=>this.Ii(!1)),new He(xe.FAILED_PRECONDITION,cX);return r(o)}).next(l=>this.wi(o).next(()=>l)):this.ki(o).next(()=>r(o)))).then(a=>(o.raiseOnCommittedEvent(),a))}ki(e){return JM(e).get("owner").next(t=>{if(null!==t&&this.Ci(t.leaseTimestampMs,5e3)&&!this.Mi(t.ownerId)&&!this.Si(t)&&!(this.ai||this.allowTabSynchronization&&t.allowTabSynchronization))throw new He(xe.FAILED_PRECONDITION,EU)})}wi(e){const t={ownerId:this.clientId,allowTabSynchronization:this.allowTabSynchronization,leaseTimestampMs:Date.now()};return JM(e).put("owner",t)}static D(){return ju.D()}yi(e){const t=JM(e);return t.get("owner").next(r=>this.Si(r)?(We("IndexedDbPersistence","Releasing primary lease."),t.delete("owner")):ye.resolve())}Ci(e,t){const r=Date.now();return!(e<r-t||e>r&&(cs(`Detected an update time that is in the future: ${e} > ${r}`),1))}Ri(){null!==this.document&&"function"==typeof this.document.addEventListener&&(this.li=()=>{this.oi.enqueueAndForget(()=>(this.inForeground="visible"===this.document.visibilityState,this.Ai()))},this.document.addEventListener("visibilitychange",this.li),this.inForeground="visible"===this.document.visibilityState)}Oi(){this.li&&(this.document.removeEventListener("visibilitychange",this.li),this.li=null)}Vi(){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,K.nr)()&&(navigator.appVersion.match(t)||navigator.userAgent.match(t))&&this.oi.enterRestrictedMode(!0),this.oi.enqueueAndForget(()=>this.shutdown())},this.window.addEventListener("pagehide",this.ci))}Ni(){this.ci&&(this.window.removeEventListener("pagehide",this.ci),this.ci=null)}Mi(e){var t;try{const r=null!==(null===(t=this.di)||void 0===t?void 0:t.getItem(this.Fi(e)));return We("IndexedDbPersistence",`Client '${e}' ${r?"is":"is not"} zombied in LocalStorage`),r}catch(r){return cs("IndexedDbPersistence","Failed to get zombied client id.",r),!1}}xi(){if(this.di)try{this.di.setItem(this.Fi(this.clientId),String(Date.now()))}catch(e){cs("Failed to set zombie client id.",e)}}Li(){if(this.di)try{this.di.removeItem(this.Fi(this.clientId))}catch{}}Fi(e){return`firestore_zombie_${this.persistenceKey}_${e}`}}function JM(n){return Gs(n,"owner")}function jx(n){return Gs(n,"clientMetadata")}function IU(n,e){let t=n.projectId;return n.isDefaultDatabase||(t+="."+n.database),"firestore/"+e+"/"+t+"/"}
1class DU{constructor(e,t,r,i){this.targetId=e,this.fromCache=t,this.qi=r,this.Qi=i}static Ki(e,t){let r=mn(),i=mn();for(const s of t.docChanges)switch(s.type){case 0:r=r.add(s.doc.key);break;case 1:i=i.add(s.doc.key)}return new DU(e,t.fromCache,r,i)}}class mRe{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(e){this._documentReadCount+=e}}class fee{constructor(){this.$i=!1,this.Ui=!1,this.Wi=100,this.Gi=(0,K.nr)()?8:dX((0,K.ZQ)())>0?6:4}initialize(e,t){this.zi=e,this.indexManager=t,this.$i=!0}getDocumentsMatchingQuery(e,t,r,i){const s={result:null};return this.ji(e,t).next(o=>{s.result=o}).next(()=>{if(!s.result)return this.Hi(e,t,i,r).next(o=>{s.result=o})}).next(()=>{if(s.result)return;const o=new mRe;return this.Ji(e,t,o).next(a=>{if(s.result=a,this.Ui)return this.Yi(e,t,o,a.size)})}).next(()=>s.result)}Yi(e,t,r,i){return r.documentReadCount<this.Wi?(M0()<=Tl.$b.DEBUG&&We("QueryEngine","SDK will not create cache indexes for query:",R0(t),"since it only creates cache indexes for collection contains","more than or equal to",this.Wi,"documents"),ye.resolve()):(M0()<=Tl.$b.DEBUG&&We("QueryEngine","Query:",R0(t),"scans",r.documentReadCount,"local documents and returns",i,"documents as results."),r.documentReadCount>this.Gi*i?(M0()<=Tl.$b.DEBUG&&We("QueryEngine","The SDK decides to create cache indexes for query:",R0(t),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(e,Lo(t))):ye.resolve())}ji(e,t){if($X(t))return ye.resolve(null);let r=Lo(t);return this.indexManager.getIndexType(e,r).next(i=>0===i?null:(null!==t.limit&&1===i&&(t=Mx(t,null,"F"),r=Lo(t)),this.indexManager.getDocumentsMatchingTarget(e,r).next(s=>{const o=mn(...s);return this.zi.getDocuments(e,o).next(a=>this.indexManager.getMinOffset(e,r).next(l=>{const c=this.Zi(t,a);return this.Xi(t,c,o,l.readTime)?this.ji(e,Mx(t,null,"F")):this.es(e,c,t,l)}))})))}Hi(e,t,r,i){return $X(t)||i.isEqual(Ft.min())?ye.resolve(null):this.zi.getDocuments(e,r).next(s=>{const o=this.Zi(t,s);return this.Xi(t,o,r,i)?ye.resolve(null):(M0()<=Tl.$b.DEBUG&&We("QueryEngine","Re-using previous result from %s to execute query: %s",i.toString(),R0(t)),this.es(e,o,t,aX(i,-1)).next(a=>a))})}Zi(e,t){let r=new Rr(QX(e));return t.forEach((i,s)=>{NM(e,s)&&(r=r.add(s))}),r}Xi(e,t,r,i){if(null===e.limit)return!1;if(r.size!==t.size)return!0;const s="F"===e.limitType?t.last():t.first();return!!s&&(s.hasPendingWrites||s.version.compareTo(i)>0)}Ji(e,t,r){return M0()<=Tl.$b.DEBUG&&We("QueryEngine","Using full collection scan to execute query:",R0(t)),this.zi.getDocumentsMatchingQuery(e,t,El.min(),r)}es(e,t,r,i){return this.zi.getDocumentsMatchingQuery(e,r,i).next(s=>(t.forEach(o=>{s=s.insert(o.key,o)}),s))}}
1class gRe{constructor(e,t,r,i){this.persistence=e,this.ts=t,this.serializer=i,this.ns=new Qr(rn),this.rs=new Zd(s=>bg(s),LM),this.ss=new Map,this.os=e.getRemoteDocumentCache(),this.Qr=e.getTargetCache(),this.$r=e.getBundleCache(),this._s(r)}_s(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new dee(this.os,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.os.setIndexManager(this.indexManager),this.ts.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",t=>e.collect(t,this.ns))}}function pee(n,e,t,r){return new gRe(n,e,t,r)}function mee(n,e){return CU.apply(this,arguments)}function CU(){return(CU=(0,ee.A)(function*(n,e){const t=lt(n);return yield t.persistence.runTransaction("Handle user change","readonly",r=>{let i;return t.mutationQueue.getAllMutationBatches(r).next(s=>(i=s,t._s(e),t.mutationQueue.getAllMutationBatches(r))).next(s=>{const o=[],a=[];let l=mn();for(const c of i){o.push(c.batchId);for(const u of c.mutations)l=l.add(u.key)}for(const c of s){a.push(c.batchId);for(const u of c.mutations)l=l.add(u.key)}return t.localDocuments.getDocuments(r,l).next(c=>({us:c,removedBatchIds:o,addedBatchIds:a}))})})})).apply(this,arguments)}function gee(n){const e=lt(n);return e.persistence.runTransaction("Get last remote snapshot version","readonly",t=>e.Qr.getLastRemoteSnapshotVersion(t))}function _ee(n,e,t){let r=mn(),i=mn();return t.forEach(s=>r=r.add(s)),e.getEntries(n,r).next(s=>{let o=Ha();return t.forEach((a,l)=>{const c=s.get(a);l.isFoundDocument()!==c.isFoundDocument()&&(i=i.add(a)),l.isNoDocument()&&l.version.isEqual(Ft.min())?(e.removeEntry(a,l.readTime),o=o.insert(a,l)):!c.isValidDocument()||l.version.compareTo(c.version)>0||0===l.version.compareTo(c.version)&&c.hasPendingWrites?(e.addEntry(l),o=o.insert(a,l)):We("LocalStore","Ignoring outdated watch update for ",a,". Current version:",c.version," Watch version:",l.version)}),{cs:o,ls:i}})}function vRe(n,e){const t=lt(n);return t.persistence.runTransaction("Get next mutation batch","readonly",r=>(void 0===e&&(e=-1),t.mutationQueue.getNextMutationBatchAfterBatchId(r,e)))}function z0(n,e){const t=lt(n);return t.persistence.runTransaction("Allocate target","readwrite",r=>{let i;return t.Qr.getTargetData(r,e).next(s=>s?(i=s,ye.resolve(i)):t.Qr.allocateTargetId(r).next(o=>(i=new th(e,o,"TargetPurposeListen",r.currentSequenceNumber),t.Qr.addTargetData(r,i).next(()=>i))))}).then(r=>{const i=t.ns.get(r.targetId);return(null===i||r.snapshotVersion.compareTo(i.snapshotVersion)>0)&&(t.ns=t.ns.insert(r.targetId,r),t.rs.set(e,r.targetId)),r})}function $0(n,e,t){return SU.apply(this,arguments)}function SU(){return(SU=(0,ee.A)(function*(n,e,t){const r=lt(n),i=r.ns.get(e),s=t?"readwrite":"readwrite-primary";try{t||(yield r.persistence.runTransaction("Release target",s,o=>r.persistence.referenceDelegate.removeTarget(o,i)))}catch(o){if(!Lf(o))throw o;We("LocalStore",`Failed to update sequence numbers for target ${e}: ${o}`)}r.ns=r.ns.remove(e),r.rs.delete(i.target)})).apply(this,arguments)}function Yx(n,e,t){const r=lt(n);let i=Ft.min(),s=mn();return r.persistence.runTransaction("Execute query","readwrite",o=>function(l,c,u){const d=lt(l),f=d.rs.get(u);return void 0!==f?ye.resolve(d.ns.get(f)):d.Qr.getTargetData(c,u)}(r,o,Lo(e)).next(a=>{if(a)return i=a.lastLimboFreeSnapshotVersion,r.Qr.getMatchingKeysForTargetId(o,a.targetId).next(l=>{s=l})}).next(()=>r.ts.getDocumentsMatchingQuery(o,e,t?i:Ft.min(),t?s:mn())).next(a=>(wee(r,KX(e),a),{documents:a,hs:s})))}function yee(n,e){const t=lt(n),r=lt(t.Qr),i=t.ns.get(e);return i?Promise.resolve(i.target):t.persistence.runTransaction("Get target data","readonly",s=>r.ot(s,e).next(o=>o?o.target:null))}function vee(n,e){const t=lt(n),r=t.ss.get(e)||Ft.min();return t.persistence.runTransaction("Get new document changes","readonly",i=>t.os.getAllFromCollectionGroup(i,e,aX(r,-1),Number.MAX_SAFE_INTEGER)).then(i=>
1(wee(t,e,i),i))}function wee(n,e,t){let r=n.ss.get(e)||Ft.min();t.forEach((i,s)=>{s.readTime.compareTo(r)>0&&(r=s.readTime)}),n.ss.set(e,r)}function AU(){return(AU=(0,ee.A)(function*(n,e,t,r){const i=lt(n);let s=mn(),o=Ha();for(const c of t){const u=e.Ps(c.metadata.name);c.document&&(s=s.add(u));const d=e.Is(c);d.setReadTime(e.Ts(c.metadata.readTime)),o=o.insert(u,d)}const a=i.os.newChangeBuffer({trackRemovals:!0}),l=yield z0(i,(u=r,Lo(k0(On.fromString(`__bundle__/docs/${u}`)))));var u;return i.persistence.runTransaction("Apply bundle documents","readwrite",c=>_ee(c,a,o).next(u=>(a.apply(c),u)).next(u=>i.Qr.removeMatchingKeysForTargetId(c,l.targetId).next(()=>i.Qr.addMatchingKeys(c,s,l.targetId)).next(()=>i.localDocuments.getLocalViewOfDocuments(c,u.cs,u.ls)).next(()=>u.cs)))})).apply(this,arguments)}function bRe(n,e){return xU.apply(this,arguments)}function xU(){return(xU=(0,ee.A)(function*(n,e,t=mn()){const r=yield z0(n,Lo(pU(e.bundledQuery))),i=lt(n);return i.persistence.runTransaction("Save named query","readwrite",s=>{const o=us(e.readTime);if(r.snapshotVersion.compareTo(o)>=0)return i.$r.saveNamedQuery(s,e);const a=r.withResumeToken(Os.EMPTY_BYTE_STRING,o);return i.ns=i.ns.insert(a.targetId,a),i.Qr.updateTargetData(s,a).next(()=>i.Qr.removeMatchingKeysForTargetId(s,r.targetId)).next(()=>i.Qr.addMatchingKeys(s,t,r.targetId)).next(()=>i.$r.saveNamedQuery(s,e))})})).apply(this,arguments)}function bee(n,e){return`firestore_clients_${n}_${e}`}function Tee(n,e,t){let r=`firestore_mutations_${n}_${t}`;return e.isAuthenticated()&&(r+=`_${e.uid}`),r}function kU(n,e){return`firestore_targets_${n}_${e}`}
1class Bx{constructor(e,t,r,i){this.user=e,this.batchId=t,this.state=r,this.error=i}static Es(e,t,r){const i=JSON.parse(r);let s,o="object"==typeof i&&-1!==["pending","acknowledged","rejected"].indexOf(i.state)&&(void 0===i.error||"object"==typeof i.error);return o&&i.error&&(o="string"==typeof i.error.message&&"string"==typeof i.error.code,o&&(s=new He(i.error.code,i.error.message))),o?new Bx(e,t,i.state,s):(cs("SharedClientState",`Failed to parse mutation state for ID '${t}': ${r}`),null)}ds(){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 XM{constructor(e,t,r){this.targetId=e,this.state=t,this.error=r}static Es(e,t){const r=JSON.parse(t);let i,s="object"==typeof r&&-1!==["not-current","current","rejected"].indexOf(r.state)&&(void 0===r.error||"object"==typeof r.error);return s&&r.error&&(s="string"==typeof r.error.message&&"string"==typeof r.error.code,s&&(i=new He(r.error.code,r.error.message))),s?new XM(e,r.state,i):(cs("SharedClientState",`Failed to parse target state for ID '${e}': ${t}`),null)}ds(){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 Hx{constructor(e,t){this.clientId=e,this.activeTargetIds=t}static Es(e,t){const r=JSON.parse(t);let i="object"==typeof r&&r.activeTargetIds instanceof Array,s=rU();for(let o=0;i&&o<r.activeTargetIds.length;++o)i=fX(r.activeTargetIds[o]),s=s.add(r.activeTargetIds[o]);return i?new Hx(e,s):(cs("SharedClientState",`Failed to parse client data for instance '${e}': ${t}`),null)}}class PU{constructor(e,t){this.clientId=e,this.onlineState=t}static Es(e){const t=JSON.parse(e);return"object"==typeof t&&-1!==["Unknown","Online","Offline"].indexOf(t.onlineState)&&"string"==typeof t.clientId?new PU(t.clientId,t.onlineState):(cs("SharedClientState",`Failed to parse online state: ${e}`),null)}}class RU{constructor(){this.activeTargetIds=rU()}As(e){this.activeTargetIds=this.activeTargetIds.add(e)}Rs(e){this.activeTargetIds=this.activeTargetIds.delete(e)}ds(){const e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class LU{constructor(e,t,r,i,s){this.window=e,this.oi=t,this.persistenceKey=r,this.Vs=i,this.syncEngine=null,this.onlineStateHandler=null,this.sequenceNumberHandler=null,this.fs=this.gs.bind(this),this.ps=new Qr(rn),this.started=!1,this.ys=[];const o=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.window.localStorage,this.currentUser=s,this.ws=bee(this.persistenceKey,this.Vs),this.Ss=`firestore_sequence_number_${this.persistenceKey}`,this.ps=this.ps.insert(this.Vs,new RU),this.bs=new RegExp(`^firestore_clients_${o}_([^_]*)$`),this.Ds=new RegExp(`^firestore_mutations_${o}_(\\d+)(?:_(.*))?$`),this.Cs=new RegExp(`^firestore_targets_${o}_(\\d+)$`),this.vs=`firestore_online_state_${this.persistenceKey}`,this.Fs=function(l){return`firestore_bundle_loaded_v2_${l}`}(this.persistenceKey),this.window.addEventListener("storage",this.fs)}static D(e){return!(!e||!e.localStorage)}start(){var e=this;return(0,ee.A)(function*(){const t=yield e.syncEngine.Bi();for(const i of t){if(i===e.Vs)continue;const s=e.getItem(bee(e.persistenceKey,i));if(s){const o=Hx.Es(i,s);o&&(e.ps=e.ps.insert(o.clientId,o))}}e.Ms();const r=e.storage.getItem(e.vs);if(r){const i=e.xs(r);i&&e.Os(i)}for(const i of e.ys)e.gs(i);e.ys=[],e.window.addEventListener("pagehide",()=>e.shutdown()),e.started=!0})()}writeSequenceNumber(e){this.setItem(this.Ss,JSON.stringify(e))}getAllActiveQueryTargets(){return this.Ns(this.ps)}isActiveQueryTarget(e){let t=!1;return this.ps.forEach((r,i)=>{i.activeTargetIds.has(e)&&(t=!0)}),t}addPendingMutation(e){this.Ls(e,"pending")}updateMutationState(e,t,r){this.Ls(e,t,r),this.Bs(e)}addLocalQueryTarget(e){let t="not-current";if(this.isActiveQueryTarget(e)){const r=this.storage.getItem(kU(this.persistenceKey,e));if(r){const i=XM.Es(e,r);i&&(t=i.state)}}return this.ks.As(e),this.Ms(),t}removeLocalQueryTarget(e){this.ks.Rs(e),this.Ms()}isLocalQueryTarget(e){return this.ks.activeTargetIds.has(e)}clearQueryState(e){this.removeItem(kU(this.persistenceKey,e))}updateQueryState(e,t,r){this.qs(e,t,r)}handleUserChange(e,t,r){t.forEach(i=>
1{this.Bs(i)}),this.currentUser=e,r.forEach(i=>{this.addPendingMutation(i)})}setOnlineState(e){this.Qs(e)}notifyBundleLoaded(e){this.Ks(e)}shutdown(){this.started&&(this.window.removeEventListener("storage",this.fs),this.removeItem(this.ws),this.started=!1)}getItem(e){const t=this.storage.getItem(e);return We("SharedClientState","READ",e,t),t}setItem(e,t){We("SharedClientState","SET",e,t),this.storage.setItem(e,t)}removeItem(e){We("SharedClientState","REMOVE",e),this.storage.removeItem(e)}gs(e){var t=this;const r=e;if(r.storageArea===this.storage){if(We("SharedClientState","EVENT",r.key,r.newValue),r.key===this.ws)return void cs("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.oi.enqueueRetryable((0,ee.A)(function*(){if(t.started){if(null!==r.key)if(t.bs.test(r.key)){if(null==r.newValue){const i=t.$s(r.key);return t.Us(i,null)}{const i=t.Ws(r.key,r.newValue);if(i)return t.Us(i.clientId,i)}}else if(t.Ds.test(r.key)){if(null!==r.newValue){const i=t.Gs(r.key,r.newValue);if(i)return t.zs(i)}}else if(t.Cs.test(r.key)){if(null!==r.newValue){const i=t.js(r.key,r.newValue);if(i)return t.Hs(i)}}else if(r.key===t.vs){if(null!==r.newValue){const i=t.xs(r.newValue);if(i)return t.Os(i)}}else if(r.key===t.Ss){const i=function(o){let a=Ml.oe;if(null!=o)try{const l=JSON.parse(o);Rt("number"==typeof l),a=l}catch(l){cs("SharedClientState","Failed to read sequence number from WebStorage",l)}return a}(r.newValue);i!==Ml.oe&&t.sequenceNumberHandler(i)}else if(r.key===t.Fs){const i=t.Js(r.newValue);yield Promise.all(i.map(s=>t.syncEngine.Ys(s)))}}else t.ys.push(r)}))}}get ks(){return this.ps.get(this.Vs)}Ms(){this.setItem(this.ws,this.ks.ds())}Ls(e,t,r){const i=new Bx(this.currentUser,e,t,r),s=Tee(this.persistenceKey,this.currentUser,e);this.setItem(s,i.ds())}Bs(e){const t=Tee(this.persistenceKey,this.currentUser,e);this.removeItem(t)}Qs(e){this.storage.setItem(this.vs,JSON.stringify({clientId:this.Vs,onlineState:e}))}qs(e,t,r){const i=kU(this.persistenceKey,e),s=new XM(e,t,r);this.setItem(i,s.ds())}Ks(e){const t=JSON.stringify(Array.from(e));this.setItem(this.Fs,t)}$s(e){const t=this.bs.exec(e);return t?t[1]:null}Ws(e,t){const r=this.$s(e);return Hx.Es(r,t)}Gs(e,t){const r=this.Ds.exec(e),i=Number(r[1]);return Bx.Es(new Ws(void 0!==r[2]?r[2]:null),i,t)}js(e,t){const r=this.Cs.exec(e),i=Number(r[1]);return XM.Es(i,t)}xs(e){return PU.Es(e)}Js(e){return JSON.parse(e)}zs(e){var t=this;return(0,ee.A)(function*(){if(e.user.uid===t.currentUser.uid)return t.syncEngine.Zs(e.batchId,e.state,e.error);We("SharedClientState",`Ignoring mutation for non-active user ${e.user.uid}`)})()}Hs(e){return this.syncEngine.Xs(e.targetId,e.state,e.error)}Us(e,t){const r=t?this.ps.insert(e,t):this.ps.remove(e),i=this.Ns(this.ps),s=this.Ns(r),o=[],a=[];return s.forEach(l=>{i.has(l)||o.push(l)}),i.forEach(l=>{s.has(l)||a.push(l)}),this.syncEngine.eo(o,a).then(()=>{this.ps=r})}Os(e){this.ps.get(e.clientId)&&this.onlineStateHandler(e.onlineState)}Ns(e){let t=rU();return e.forEach((r,i)=>{t=t.unionWith(i.activeTargetIds)}),t}}class Eee{constructor(){this.no=new RU,this.ro={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,t,r){}addLocalQueryTarget(e){return this.no.As(e),this.ro[e]||"not-current"}updateQueryState(e,t,r){this.ro[e]=t}removeLocalQueryTarget(e){this.no.Rs(e)}isLocalQueryTarget(e){return this.no.activeTargetIds.has(e)}clearQueryState(e){delete this.ro[e]}getAllActiveQueryTargets(){return this.no.activeTargetIds}isActiveQueryTarget(e){return this.no.activeTargetIds.has(e)}start(){return this.no=new RU,Promise.resolve()}handleUserChange(e,t,r){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}class TRe{io(e){}shutdown(){}}class Mee{constructor(){this.so=()=>this.oo(),this._o=()=>this.ao(),this.uo=[],this.co()}io(e){this.uo.push(e)}shutdown(){window.removeEventListener("online",this.so),window.removeEventListener("offline",this._o)}co(){window.addEventListener("online",this.so),window.addEventListener("offline",this._o)}oo(){We("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const e of this.uo)e(0)}ao(){We("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const e of this.uo)e(1)}static D(){return typeof window<"u"&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}let zx=null;function OU(){return null===zx?zx=268435456+Math.round(2147483648*Math.random()):zx++,"0x"+zx.toString(16)}const ERe={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregation
1Query:"runAggregationQuery"};class MRe{constructor(e){this.lo=e.lo,this.ho=e.ho}Po(e){this.Io=e}To(e){this.Eo=e}Ao(e){this.Ro=e}onMessage(e){this.Vo=e}close(){this.ho()}send(e){this.lo(e)}mo(){this.Io()}fo(){this.Eo()}po(e){this.Ro(e)}yo(e){this.Vo(e)}}const No="WebChannelConnection";class IRe extends class{constructor(t){this.databaseInfo=t,this.databaseId=t.databaseId;const r=t.ssl?"https":"http",i=encodeURIComponent(this.databaseId.projectId),s=encodeURIComponent(this.databaseId.database);this.wo=r+"://"+t.host,this.So=`projects/${i}/databases/${s}`,this.bo="(default)"===this.databaseId.database?`project_id=${i}`:`project_id=${i}&database_id=${s}`}get Do(){return!1}Co(t,r,i,s,o){const a=OU(),l=this.vo(t,r.toUriEncodedString());We("RestConnection",`Sending RPC '${t}' ${a}:`,l,i);const c={"google-cloud-resource-prefix":this.So,"x-goog-request-params":this.bo};return this.Fo(c,s,o),this.Mo(t,l,c,i).then(u=>(We("RestConnection",`Received RPC '${t}' ${a}: `,u),u),u=>{throw Ya("RestConnection",`RPC '${t}' ${a} failed with error: `,u,"url: ",l,"request:",i),u})}xo(t,r,i,s,o,a){return this.Co(t,r,i,s,o)}Fo(t,r,i){t["X-Goog-Api-Client"]="gl-js/ fire/"+E0,t["Content-Type"]="text/plain",this.databaseInfo.appId&&(t["X-Firebase-GMPID"]=this.databaseInfo.appId),r&&r.headers.forEach((s,o)=>t[o]=s),i&&i.headers.forEach((s,o)=>t[o]=s)}vo(t,r){return`${this.wo}/v1/${r}:${ERe[t]}`}terminate(){}}{constructor(e){super(e),this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}Mo(e,t,r,i){const s=OU();return new Promise((o,a)=>{const l=new QJ;l.setWithCredentials(!0),l.listenOnce(XJ.COMPLETE,()=>{try{switch(l.getLastErrorCode()){case fx.NO_ERROR:const u=l.getResponseJson();We(No,`XHR for RPC '${e}' ${s} received:`,JSON.stringify(u)),o(u);break;case fx.TIMEOUT:We(No,`RPC '${e}' ${s} timed out`),a(new He(xe.DEADLINE_EXCEEDED,"Request time out"));break;case fx.HTTP_ERROR:const d=l.getStatus();if(We(No,`RPC '${e}' ${s} failed with status:`,d,"response text:",l.getResponseText()),d>0){let f=l.getResponseJson();Array.isArray(f)&&(f=f[0]);const _=f?.error;if(_&&_.status&&_.message){const w=function(S){const O=S.toLowerCase().replace(/_/g,"-");return Object.values(xe).indexOf(O)>=0?O:xe.UNKNOWN}(_.status);a(new He(w,_.message))}else a(new He(xe.UNKNOWN,"Server responded with status "+l.getStatus()))}else a(new He(xe.UNAVAILABLE,"Connection failed."));break;default:St()}}finally{We(No,`RPC '${e}' ${s} completed.`)}});const c=JSON.stringify(i);We(No,`RPC '${e}' ${s} sending request:`,i),l.send(t,"POST",c,r,15)})}Oo(e,t,r){const i=OU(),s=[this.wo,"/","google.firestore.v1.Firestore","/",e,"/channel"],o=tX(),a=eX(),l={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},c=this.longPollingOptions.timeoutSeconds;void 0!==c&&(l.longPollingTimeout=Math.round(1e3*c)),this.useFetchStreams&&(l.xmlHttpFactory=new JJ({})),this.Fo(l.initMessageHeaders,t,r),l.encodeInitMessageHeaders=!0;const u=s.join("");We(No,`Creating RPC '${e}' stream ${i}: ${u}`,l);const d=o.createWebChannel(u,l);let f=!1,_=!1;const w=new MRe({lo:S=>{_?We(No,`Not sending because RPC '${e}' stream ${i} is closed:`,S):(f||(We(No,`Opening RPC '${e}' stream ${i} transport.`),d.open(),f=!0),We(No,`RPC '${e}' stream ${i} sending:`,S),d.send(S))},ho:()=>d.close()}),M=(S,O,N)=>{S.listen(O,j=>{try{N(j)}catch(Z){setTimeout(()=>{throw Z},0)}})};return M(d,MM.EventType.OPEN,()=>{_||(We(No,`RPC '${e}' stream ${i} transport opened.`),w.mo())}),M(d,MM.EventType.CLOSE,()=>{_||(_=!0,We(No,`RPC '${e}' stream ${i} transport closed`),w.po())}),M(d,MM.EventType.ERROR,S=>{_||(_=!0,Ya(No,`RPC '${e}' stream ${i} transport errored:`,S),w.po(new He(xe.UNAVAILABLE,"The operation could not be completed")))}),M(d,MM.EventType.MESSAGE,S=>{var O;if(!_){const N=S.data[0];Rt(!!N);const Z=N.error||(null===(O=N[0])||void 0===O?void 0:O.error);if(Z){We(No,`RPC '${e}' stream ${i} received error:`,Z);const ie=Z.status;let le=function(J){const oe=Ts[J];if(void 0!==oe)return mZ(oe)}(ie),Q=Z.message;void 0===le&&(le=xe.INTERNAL,Q="Unknown error status: "+ie+" with message "+Z.message),_=!0,w.po(new He(le,Q)),d.close()}else We(No,`RPC '${e}' stream ${i} received:`,N),w.yo(N)}}),M(a,ZJ.STAT_EVENT,S=>{S.stat===BV.PROXY?We(No,`RPC '${e}' stream ${i} detected buffering proxy`):S.stat===BV.NOPROXY&&We(No,`RPC '${e}' stream ${i} detected no buffering proxy`)}),setTimeout(()=>{w.fo()},0),w}}function Iee(){return typeof window<"u"?window:null}function $x(){return typeof document<"u"?document:null}function ZM(n){return new OPe(n,!0)}class NU{constructor(e,t,r=1e3,i=1.5,s=6e4){this.oi=e,this.timerId=t,this.No=r,this.Lo=i,this.Bo=s,this.ko=0,this.qo=null,this.Qo=Date.now(),this.reset()}reset(){this.ko=0}Ko(){this.ko=this.Bo}$o(e){this.cancel();const t=Math.floor(this.ko+this.Uo()),r=Math.max(0,Date.now()-this.Qo),i=Math.max(0,t-r);i>0&&We("ExponentialBackoff",`Backing off for ${i} ms (base delay: ${this.ko}
1 ms, delay with jitter: ${t} ms, last attempt: ${r} ms ago)`),this.qo=this.oi.enqueueAfterDelay(this.timerId,i,()=>(this.Qo=Date.now(),e())),this.ko*=this.Lo,this.ko<this.No&&(this.ko=this.No),this.ko>this.Bo&&(this.ko=this.Bo)}Wo(){null!==this.qo&&(this.qo.skipDelay(),this.qo=null)}cancel(){null!==this.qo&&(this.qo.cancel(),this.qo=null)}Uo(){return(Math.random()-.5)*this.ko}}class Dee{constructor(e,t,r,i,s,o,a,l){this.oi=e,this.Go=r,this.zo=i,this.connection=s,this.authCredentialsProvider=o,this.appCheckCredentialsProvider=a,this.listener=l,this.state=0,this.jo=0,this.Ho=null,this.Jo=null,this.stream=null,this.Yo=new NU(e,t)}Zo(){return 1===this.state||5===this.state||this.Xo()}Xo(){return 2===this.state||3===this.state}start(){4!==this.state?this.auth():this.e_()}stop(){var e=this;return(0,ee.A)(function*(){e.Zo()&&(yield e.close(0))})()}t_(){this.state=0,this.Yo.reset()}n_(){this.Xo()&&null===this.Ho&&(this.Ho=this.oi.enqueueAfterDelay(this.Go,6e4,()=>this.r_()))}i_(e){this.s_(),this.stream.send(e)}r_(){var e=this;return(0,ee.A)(function*(){if(e.Xo())return e.close(0)})()}s_(){this.Ho&&(this.Ho.cancel(),this.Ho=null)}o_(){this.Jo&&(this.Jo.cancel(),this.Jo=null)}close(e,t){var r=this;return(0,ee.A)(function*(){r.s_(),r.o_(),r.Yo.cancel(),r.jo++,4!==e?r.Yo.reset():t&&t.code===xe.RESOURCE_EXHAUSTED?(cs(t.toString()),cs("Using maximum backoff delay to prevent overloading the backend."),r.Yo.Ko()):t&&t.code===xe.UNAUTHENTICATED&&3!==r.state&&(r.authCredentialsProvider.invalidateToken(),r.appCheckCredentialsProvider.invalidateToken()),null!==r.stream&&(r.__(),r.stream.close(),r.stream=null),r.state=e,yield r.listener.Ao(t)})()}__(){}auth(){this.state=1;const e=this.a_(this.jo),t=this.jo;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([r,i])=>{this.jo===t&&this.u_(r,i)},r=>{e(()=>{const i=new He(xe.UNKNOWN,"Fetching auth token failed: "+r.message);return this.c_(i)})})}u_(e,t){const r=this.a_(this.jo);this.stream=this.l_(e,t),this.stream.Po(()=>{r(()=>this.listener.Po())}),this.stream.To(()=>{r(()=>(this.state=2,this.Jo=this.oi.enqueueAfterDelay(this.zo,1e4,()=>(this.Xo()&&(this.state=3),Promise.resolve())),this.listener.To()))}),this.stream.Ao(i=>{r(()=>this.c_(i))}),this.stream.onMessage(i=>{r(()=>this.onMessage(i))})}e_(){var e=this;this.state=5,this.Yo.$o((0,ee.A)(function*(){e.state=0,e.start()}))}c_(e){return We("PersistentStream",`close with error: ${e}`),this.stream=null,this.close(4,e)}a_(e){return t=>{this.oi.enqueueAndForget(()=>this.jo===e?t():(We("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class DRe extends Dee{constructor(e,t,r,i,s,o){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",t,r,i,o),this.serializer=s}l_(e,t){return this.connection.Oo("Listen",e,t)}onMessage(e){this.Yo.reset();const t=function VPe(n,e){let t;if("targetChange"in e){const r="NO_CHANGE"===(c=e.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===c?1:"REMOVE"===c?2:"CURRENT"===c?3:"RESET"===c?4:St(),i=e.targetChange.targetIds||[],s=function(c,u){return c.useProto3Json?(Rt(void 0===u||"string"==typeof u),Os.fromBase64String(u||"")):(Rt(void 0===u||u instanceof Buffer||u instanceof Uint8Array),Os.fromUint8Array(u||new Uint8Array))}(n,e.targetChange.resumeToken),o=e.targetChange.cause,a=o&&function(c){const u=void 0===c.code?xe.UNKNOWN:mZ(c.code);return new He(u,c.message||"")}(o);t=new wZ(r,i,s,a||null)}else if("documentChange"in e){const r=e.documentChange,i=zu(n,r.document.name),s=us(r.document.updateTime),o=r.document.createTime?us(r.document.createTime):Ft.min(),a=new fo({mapValue:{fields:r.document.fields}}),l=ui.newFoundDocument(i,s,o,a);t=new Ax(r.targetIds||[],r.removedTargetIds||[],l.key,l)}else if("documentDelete"in e){const r=e.documentDelete,i=zu(n,r.document),s=r.readTime?us(r.readTime):Ft.min(),o=ui.newNoDocument(i,s);t=new Ax([],r.removedTargetIds||[],o.key,o)}else if("documentRemove"in e){const r=e.documentRemove,i=zu(n,r.document);t=new Ax([],r.removedTargetIds||[],i,null)}else{if(!("filter"in e))return St();{const r=e.filter,{count:i=0,unchangedNames:s}=r,o=new APe(i,s);t=new vZ(r.targetId,o)}}var c;return t}(this.serializer,e),r=function(s){if(!("targetChange"in s))return Ft.min();const o=s.targetChange;return o.targetIds&&o.targetIds.length?Ft.min():o.readTime?us(o.readTime):Ft.min()}(e);return this.listener.h_(t,r)}P_(e){const t={};t.database=hU(this.serializer),t.addTarget=function(s,o){let a;const l=o.target;if(a=Tx(l)?{documents:kZ(s,l)}:{query:xx(s,l)._t},a.targetId=o.targetId,o.resumeToken.approximateByteSize()>0){a.resumeToken=MZ(s,o.resumeToken);const c=cU(s,o.expectedCount);null!==c&&(a.expectedCount=c)}else if(o.snapshotVersion.compareTo(Ft.min())>0){a.readTime=V0(s,o.snapshotVersion.toTimestamp());const c=cU(s,o.expectedCount);null!==c&&(a.expectedCount=c)}return a}(this.serializer,e);const r=function jPe(n,e){const t=function(i){switch(i){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return St()}}(e.purpose);return null==t?null:{"goog-listen-tags":t}}(0,e);r&&(t.labels=r),this.i_(t)}I_(e){const t={};t.database=hU(this.serializer),t.removeTarget=e,this.i_(t)}}class CRe extends Dee{constructor(e,t,r,i,s,o){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",t,r,i,o),this.serializer
1=s,this.T_=!1}get E_(){return this.T_}start(){this.T_=!1,this.lastStreamToken=void 0,super.start()}__(){this.T_&&this.d_([])}l_(e,t){return this.connection.Oo("Write",e,t)}onMessage(e){if(Rt(!!e.streamToken),this.lastStreamToken=e.streamToken,this.T_){this.Yo.reset();const t=function UPe(n,e){return n&&n.length>0?(Rt(void 0!==e),n.map(t=>function(i,s){let o=us(i.updateTime?i.updateTime:s);return o.isEqual(Ft.min())&&(o=us(s)),new DPe(o,i.transformResults||[])}(t,e))):[]}(e.writeResults,e.commitTime),r=us(e.commitTime);return this.listener.A_(r,t)}return Rt(!e.writeResults||0===e.writeResults.length),this.T_=!0,this.listener.R_()}V_(){const e={};e.database=hU(this.serializer),this.i_(e)}d_(e){const t={streamToken:this.lastStreamToken,writes:e.map(r=>$M(this.serializer,r))};this.i_(t)}}class SRe extends class{}{constructor(e,t,r,i){super(),this.authCredentials=e,this.appCheckCredentials=t,this.connection=r,this.serializer=i,this.m_=!1}f_(){if(this.m_)throw new He(xe.FAILED_PRECONDITION,"The client has already been terminated.")}Co(e,t,r,i){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([s,o])=>this.connection.Co(e,dU(t,r),i,s,o)).catch(s=>{throw"FirebaseError"===s.name?(s.code===xe.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),s):new He(xe.UNKNOWN,s.toString())})}xo(e,t,r,i,s){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([o,a])=>this.connection.xo(e,dU(t,r),i,o,a,s)).catch(o=>{throw"FirebaseError"===o.name?(o.code===xe.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),o):new He(xe.UNKNOWN,o.toString())})}terminate(){this.m_=!0,this.connection.terminate()}}class ARe{constructor(e,t){this.asyncQueue=e,this.onlineStateHandler=t,this.state="Unknown",this.g_=0,this.p_=null,this.y_=!0}w_(){0===this.g_&&(this.S_("Unknown"),this.p_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.p_=null,this.b_("Backend didn't respond within 10 seconds."),this.S_("Offline"),Promise.resolve())))}D_(e){"Online"===this.state?this.S_("Unknown"):(this.g_++,this.g_>=1&&(this.C_(),this.b_(`Connection failed 1 times. Most recent error: ${e.toString()}`),this.S_("Offline")))}set(e){this.C_(),this.g_=0,"Online"===e&&(this.y_=!1),this.S_(e)}S_(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}b_(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.y_?(cs(t),this.y_=!1):We("OnlineStateTracker",t)}C_(){null!==this.p_&&(this.p_.cancel(),this.p_=null)}}class xRe{constructor(e,t,r,i,s){var o=this;this.localStore=e,this.datastore=t,this.asyncQueue=r,this.remoteSyncer={},this.v_=[],this.F_=new Map,this.M_=new Set,this.x_=[],this.O_=s,this.O_.io(a=>{r.enqueueAndForget((0,ee.A)(function*(){var l;$f(o)&&(We("RemoteStore","Restarting streams for network reachability change."),yield(l=(0,ee.A)(function*(u){const d=lt(u);d.M_.add(4),yield q0(d),d.N_.set("Unknown"),d.M_.delete(4),yield eI(d)}),function c(u){return l.apply(this,arguments)})(o))}))}),this.N_=new ARe(r,i)}}function eI(n){return FU.apply(this,arguments)}function FU(){return(FU=(0,ee.A)(function*(n){if($f(n))for(const e of n.x_)yield e(!0)})).apply(this,arguments)}function q0(n){return VU.apply(this,arguments)}function VU(){return(VU=(0,ee.A)(function*(n){for(const e of n.x_)yield e(!1)})).apply(this,arguments)}function qx(n,e){const t=lt(n);t.F_.has(e.targetId)||(t.F_.set(e.targetId,e),YU(t)?jU(t):K0(t).Xo()&&UU(t,e))}function W0(n,e){const t=lt(n),r=K0(t);t.F_.delete(e),r.Xo()&&Cee(t,e),0===t.F_.size&&(r.Xo()?r.n_():$f(t)&&t.N_.set("Unknown"))}function UU(n,e){if(n.L_.xe(e.targetId),e.resumeToken.approximateByteSize()>0||e.snapshotVersion.compareTo(Ft.min())>0){const t=n.remoteSyncer.getRemoteKeysForTarget(e.targetId).size;e=e.withExpectedCount(t)}K0(n).P_(e)}function Cee(n,e){n.L_.xe(e),K0(n).I_(e)}function jU(n){n.L_=new kPe({getRemoteKeysForTarget:e=>n.remoteSyncer.getRemoteKeysForTarget(e),ot:e=>n.F_.get(e)||null,tt:()=>n.datastore.serializer.databaseId}),K0(n).start(),n.N_.w_()}function YU(n){return $f(n)&&!K0(n).Zo()&&n.F_.size>0}function $f(n){return 0===lt(n).M_.size}function See(n){n.L_=void 0}function kRe(n){return BU.apply(this,arguments)}function BU(){return(BU=(0,ee.A)(function*(n){n.N_.set("Online")})).apply(this,arguments)}function PRe(n){return HU.apply(this,arguments)}function HU(){return(HU=(0,ee.A)(function*(n){n.F_.forEach((e,t)=>{UU(n,e)})}
1)).apply(this,arguments)}function RRe(n,e){return zU.apply(this,arguments)}function zU(){return(zU=(0,ee.A)(function*(n,e){See(n),YU(n)?(n.N_.D_(e),jU(n)):n.N_.set("Unknown")})).apply(this,arguments)}function LRe(n,e,t){return $U.apply(this,arguments)}function $U(){return $U=(0,ee.A)(function*(n,e,t){if(n.N_.set("Online"),e instanceof wZ&&2===e.state&&e.cause)try{yield(r=(0,ee.A)(function*(s,o){const a=o.cause;for(const l of o.targetIds)s.F_.has(l)&&(yield s.remoteSyncer.rejectListen(l,a),s.F_.delete(l),s.L_.removeTarget(l))}),function i(s,o){return r.apply(this,arguments)})(n,e)}catch(r){We("RemoteStore","Failed to remove targets %s: %s ",e.targetIds.join(","),r),yield Wx(n,r)}else if(e instanceof Ax?n.L_.Ke(e):e instanceof vZ?n.L_.He(e):n.L_.We(e),!t.isEqual(Ft.min()))try{const r=yield gee(n.localStore);t.compareTo(r)>=0&&(yield function(s,o){const a=s.L_.rt(o);return a.targetChanges.forEach((l,c)=>{if(l.resumeToken.approximateByteSize()>0){const u=s.F_.get(c);u&&s.F_.set(c,u.withResumeToken(l.resumeToken,o))}}),a.targetMismatches.forEach((l,c)=>{const u=s.F_.get(l);if(!u)return;s.F_.set(l,u.withResumeToken(Os.EMPTY_BYTE_STRING,u.snapshotVersion)),Cee(s,l);const d=new th(u.target,l,c,u.sequenceNumber);UU(s,d)}),s.remoteSyncer.applyRemoteEvent(a)}(n,t))}catch(r){We("RemoteStore","Failed to raise snapshot:",r),yield Wx(n,r)}var r}),$U.apply(this,arguments)}function Wx(n,e,t){return qU.apply(this,arguments)}function qU(){return(qU=(0,ee.A)(function*(n,e,t){if(!Lf(e))throw e;n.M_.add(1),yield q0(n),n.N_.set("Offline"),t||(t=()=>gee(n.localStore)),n.asyncQueue.enqueueRetryable((0,ee.A)(function*(){We("RemoteStore","Retrying IndexedDB access"),yield t(),n.M_.delete(1),yield eI(n)}))})).apply(this,arguments)}function Aee(n,e){return e().catch(t=>Wx(n,t,e))}function G0(n){return WU.apply(this,arguments)}function WU(){return(WU=(0,ee.A)(function*(n){const e=lt(n),t=qf(e);let r=e.v_.length>0?e.v_[e.v_.length-1].batchId:-1;for(;ORe(e);)try{const i=yield vRe(e.localStore,r);if(null===i){0===e.v_.length&&t.n_();break}r=i.batchId,NRe(e,i)}catch(i){yield Wx(e,i)}xee(e)&&kee(e)})).apply(this,arguments)}function ORe(n){return $f(n)&&n.v_.length<10}function NRe(n,e){n.v_.push(e);const t=qf(n);t.Xo()&&t.E_&&t.d_(e.mutations)}function xee(n){return $f(n)&&!qf(n).Zo()&&n.v_.length>0}function kee(n){qf(n).start()}function FRe(n){return GU.apply(this,arguments)}function GU(){return(GU=(0,ee.A)(function*(n){qf(n).V_()})).apply(this,arguments)}function VRe(n){return KU.apply(this,arguments)}function KU(){return(KU=(0,ee.A)(function*(n){const e=qf(n);for(const t of n.v_)e.d_(t.mutations)})).apply(this,arguments)}function URe(n,e,t){return QU.apply(this,arguments)}function QU(){return(QU=(0,ee.A)(function*(n,e,t){const r=n.v_.shift(),i=oU.from(r,e,t);yield Aee(n,()=>n.remoteSyncer.applySuccessfulWrite(i)),yield G0(n)})).apply(this,arguments)}function jRe(n,e){return JU.apply(this,arguments)}function JU(){return JU=(0,ee.A)(function*(n,e){var t;e&&qf(n).E_&&(yield(t=(0,ee.A)(function*(i,s){if(pZ(a=s.code)&&a!==xe.ABORTED){const o=i.v_.shift();qf(i).t_(),yield Aee(i,()=>i.remoteSyncer.rejectFailedWrite(o.batchId,s)),yield G0(i)}var a}),function r(i,s){return t.apply(this,arguments)})(n,e)),xee(n)&&kee(n)}),JU.apply(this,arguments)}function Pee(n,e){return XU.apply(this,arguments)}function XU(){return(XU=(0,ee.A)(function*(n,e){const t=lt(n);t.asyncQueue.verifyOperationInProgress(),We("RemoteStore","RemoteStore received new credentials");const r=$f(t);t.M_.add(3),yield q0(t),r&&t.N_.set("Unknown"),yield t.remoteSyncer.handleCredentialChange(e),t.M_.delete(3),yield eI(t)})).apply(this,arguments)}function ZU(n,e){return ej.apply(this,arguments)}function ej(){return(ej=(0,ee.A)(function*(n,e){const t=lt(n);e?(t.M_.delete(2),yield eI(t)):e||(t.M_.add(2),yield q0(t),t.N_.set("Unknown"))})).apply(this,arguments)}function K0(n){return n.B_||(n.B_=function(t,r,i){const s=lt(t);return s.f_(),new DRe(r,s.connection,s.authCredentials,s.appCheckCredentials,s.serializer,i)}(n.datastore,n.asyncQueue,{Po:kRe.bind(null,n),To:PRe.bind(null,n),Ao:RRe.bind(null,n),h_:LRe.bind(null,n)}),n.x_.push(function(){var e=(0,ee.A)(function*(t){t?(n.B_.t_(),YU(n)?jU(n):n.N_.set("Unknown")):(yield n.B_.stop(),See(n))});return function(t){return e.apply(this,arguments)}}())),n.B_}function qf(n){return n.k_||(n.k_=function(t,r,i){const s=lt(t);return s.f_(),new CRe(r,s.connection,s.authCredentials,s.appCheckCredentials,s.serializer,i)}(n.datastore,n.asyncQueue,{Po:()=>Promise.resolve(),To:FRe.bind(null,n),Ao:jRe.bind(null,n),R_:VRe.bind(null,n),A_:URe.bind(null,n)}),n.x_.push(function(){var e=(0,ee.A)(function*(t){t?(n.k_.t_(),yield G0(n)):(yield n.k_.stop(),n.v_.length>0&&(We("RemoteStore",`Stopping write stream with ${n.v_.length} pending writes`),n.v_=[]))});return function(t){return e.apply(this,arguments)}}())),n.k_}class tj{constructor(e,t,r,i,s){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=r,this.op=i,this.removalCallback=s,this.deferred=new Ls,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(o=>{})}get promise(){return this.deferred.promise}static createAndSchedule(e,t,r,i,s){const o=Date.now()+r,a=new tj(e,t,o,i,s);return a.start(r),a}start(e){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new He(xe.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 Q0(n,e){if(cs("AsyncQueue",`${e}: ${n}`),Lf(n))return new He(xe.UNAVAILABLE,`${e}: ${n}`);throw n}class J0{constructor(e){this.comparator=e?(t,r)=>e(t,r)||mt.comparator(t.key,r.key):(t,r)=>mt.comparator(t.key,r.key),this.keyedMap=FM(),this.sortedSet=new Qr(this.comparator)}static emptySet(e){return new J0(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,r)=>(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 J0)||this.size!==e.size)return!1;const t=this.sortedSet.getIterator(),r=e.sortedSet.getIterator();for(;t.hasNext();){const i=t.getNext().key,s=r.getNext().key;if(!i.isEqual(s))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 r=new J0;return r.comparator=this.comparator,r.keyedMap=e,r.sortedSet=t,r}}class Ree{constructor(){this.q_=new Qr(mt.comparator)}track(e){const t=e.doc.key,r=this.q_.get(t);r?0!==e.type&&3===r.type?this.q_=this.q_.insert(t,e):3===e.type&&1!==r.type?this.q_=this.q_.insert(t,{type:r.type,doc:e.doc}):2===e.type&&2===r.type?this.q_=this.q_.insert(t,{type:2,doc:e.doc}):2===e.type&&0===r.type?this.q_=this.q_.insert(t,{type:0,doc:e.doc}):1===e.type&&0===r.type?this.q_=this.q_.remove(t):1===e.type&&2===r.type?this.q_=this.q_.insert(t,{type:1,doc:r.doc}):0===e.type&&1===r.type?this.q_=this.q_.insert(t,{type:2,doc:e.doc}):St():this.q_=this.q_.insert(t,e)}Q_(){const e=[];return this.q_.inorderTraversal((t,r)=>{e.push(r)}),e}}class X0{constructor(e,t,r,i,s,o,a,l,c){this.query=e,this.docs=t,this.oldDocs=r,this.docChanges=i,this.mutatedKeys=s,this.fromCache=o,this.syncStateChanged=a,this.excludesMetadataChanges=l,this.hasCachedResults=c}static fromInitialDocuments(e,t,r,i,s){const o=[];return t.forEach(a=>{o.push({type:0,doc:a})}),new X0(e,t,J0.emptySet(t),o,r,i,!0,!1,s)}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)&&OM(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;const t=this.docChanges,r=e.docChanges;if(t.length!==r.length)return!1;for(let i=0;i<t.length;i++)if(t[i].type!==r[i].type||!t[i].doc.isEqual(r[i].doc))return!1;return!0}}class YRe{constructor(){this.K_=void 0,this.U_=[]}W_(){return this.U_.some(e=>e.G_())}}class BRe{constructor(){this.queries=new Zd(e=>GX(e),OM),this.onlineState="Unknown",this.z_=new Set}}function nj(n,e){return rj.apply(this,arguments)}function rj(){return(rj=(0,ee.A)(function*(n,e){const t=lt(n);let r=3;const i=e.query;let s=t.queries.get(i);s?!s.W_()&&e.G_()&&(r=2):(s=new YRe,r=e.G_()?0:1);try{switch(r){case 0:s.K_=yield t.onListen(i,!0);break;case 1:s.K_=yield t.onListen(i,!1);break;case 2:yield t.onFirstRemoteStoreListen(i)}}catch(o){const a=Q0(o,`Initialization of query '${R0(e.query)}' failed`);return void e.onError(a)}
1t.queries.set(i,s),s.U_.push(e),e.j_(t.onlineState),s.K_&&e.H_(s.K_)&&oj(t)})).apply(this,arguments)}function ij(n,e){return sj.apply(this,arguments)}function sj(){return(sj=(0,ee.A)(function*(n,e){const t=lt(n),r=e.query;let i=3;const s=t.queries.get(r);if(s){const o=s.U_.indexOf(e);o>=0&&(s.U_.splice(o,1),0===s.U_.length?i=e.G_()?0:1:!s.W_()&&e.G_()&&(i=2))}switch(i){case 0:return t.queries.delete(r),t.onUnlisten(r,!0);case 1:return t.queries.delete(r),t.onUnlisten(r,!1);case 2:return t.onLastRemoteStoreUnlisten(r);default:return}})).apply(this,arguments)}function HRe(n,e){const t=lt(n);let r=!1;for(const i of e){const o=t.queries.get(i.query);if(o){for(const a of o.U_)a.H_(i)&&(r=!0);o.K_=i}}r&&oj(t)}function zRe(n,e,t){const r=lt(n),i=r.queries.get(e);if(i)for(const s of i.U_)s.onError(t);r.queries.delete(e)}function oj(n){n.z_.forEach(e=>{e.next()})}var aj,Lee;(Lee=aj||(aj={})).J_="default",Lee.Cache="cache";class lj{constructor(e,t,r){this.query=e,this.Y_=t,this.Z_=!1,this.X_=null,this.onlineState="Unknown",this.options=r||{}}H_(e){if(!this.options.includeMetadataChanges){const r=[];for(const i of e.docChanges)3!==i.type&&r.push(i);e=new X0(e.query,e.docs,e.oldDocs,r,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let t=!1;return this.Z_?this.ea(e)&&(this.Y_.next(e),t=!0):this.ta(e,this.onlineState)&&(this.na(e),t=!0),this.X_=e,t}onError(e){this.Y_.error(e)}j_(e){this.onlineState=e;let t=!1;return this.X_&&!this.Z_&&this.ta(this.X_,e)&&(this.na(this.X_),t=!0),t}ta(e,t){return!e.fromCache||!this.G_()||(!this.options.ra||!("Offline"!==t))&&(!e.docs.isEmpty()||e.hasCachedResults||"Offline"===t)}ea(e){return e.docChanges.length>0||!!(e.syncStateChanged||this.X_&&this.X_.hasPendingWrites!==e.hasPendingWrites)&&!0===this.options.includeMetadataChanges}na(e){e=X0.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.Z_=!0,this.Y_.next(e)}G_(){return this.options.source!==aj.Cache}}class $Re{constructor(e,t){this.ia=e,this.byteLength=t}sa(){return"metadata"in this.ia}}class Oee{constructor(e){this.serializer=e}Ps(e){return zu(this.serializer,e)}Is(e){return e.metadata.exists?xZ(this.serializer,e.document,!1):ui.newNoDocument(this.Ps(e.metadata.name),this.Ts(e.metadata.readTime))}Ts(e){return us(e)}}class qRe{constructor(e,t,r){this.oa=e,this.localStore=t,this.serializer=r,this.queries=[],this.documents=[],this.collectionGroups=new Set,this.progress=Nee(e)}_a(e){this.progress.bytesLoaded+=e.byteLength;let t=this.progress.documentsLoaded;if(e.ia.namedQuery)this.queries.push(e.ia.namedQuery);else if(e.ia.documentMetadata){this.documents.push({metadata:e.ia.documentMetadata}),e.ia.documentMetadata.exists||++t;const r=On.fromString(e.ia.documentMetadata.name);this.collectionGroups.add(r.get(r.length-2))}else e.ia.document&&(this.documents[this.documents.length-1].document=e.ia.document,++t);return t!==this.progress.documentsLoaded?(this.progress.documentsLoaded=t,Object.assign({},this.progress)):null}aa(e){const t=new Map,r=new Oee(this.serializer);for(const i of e)if(i.metadata.queries){const s=r.Ps(i.metadata.name);for(const o of i.metadata.queries){const a=(t.get(o)||mn()).add(s);t.set(o,a)}}return t}complete(){var e=this;return(0,ee.A)(function*(){const t=yield function wRe(n,e,t,r){return AU.apply(this,arguments)}(e.localStore,new Oee(e.serializer),e.documents,e.oa.id),r=e.aa(e.documents);for(const i of e.queries)yield bRe(e.localStore,i,r.get(i.name));return e.progress.taskState="Success",{progress:e.progress,ua:e.collectionGroups,ca:t}})()}}function Nee(n){return{taskState:"Running",documentsLoaded:0,bytesLoaded:0,totalDocuments:n.totalDocuments,totalBytes:n.totalBytes}}class Fee{constructor(e){this.key=e}}class Vee{constructor(e){this.key=e}}class Uee{constructor(e,t){this.query=e,this.la=t,this.ha=null,this.hasCachedResults=!1,this.current=!1,this.Pa=mn(),this.mutatedKeys=mn(),this.Ia=QX(e),this.Ta=new J0(this.Ia)}get Ea(){return this.la}da(e,t){const r=t?t.Aa:new Ree,i=t?t.Ta:this.Ta;let s=t?t.mutatedKeys:this.mutatedKeys,o=i,a=!1;const l="F"===this.query.limitType&&i.size===this.query.limit?i.last(
1):null,c="L"===this.query.limitType&&i.size===this.query.limit?i.first():null;if(e.inorderTraversal((u,d)=>{const f=i.get(u),_=NM(this.query,d)?d:null,w=!!f&&this.mutatedKeys.has(f.key),M=!!_&&(_.hasLocalMutations||this.mutatedKeys.has(_.key)&&_.hasCommittedMutations);let S=!1;f&&_?f.data.isEqual(_.data)?w!==M&&(r.track({type:3,doc:_}),S=!0):this.Ra(f,_)||(r.track({type:2,doc:_}),S=!0,(l&&this.Ia(_,l)>0||c&&this.Ia(_,c)<0)&&(a=!0)):!f&&_?(r.track({type:0,doc:_}),S=!0):f&&!_&&(r.track({type:1,doc:f}),S=!0,(l||c)&&(a=!0)),S&&(_?(o=o.add(_),s=M?s.add(u):s.delete(u)):(o=o.delete(u),s=s.delete(u)))}),null!==this.query.limit)for(;o.size>this.query.limit;){const u="F"===this.query.limitType?o.last():o.first();o=o.delete(u.key),s=s.delete(u.key),r.track({type:1,doc:u})}return{Ta:o,Aa:r,Xi:a,mutatedKeys:s}}Ra(e,t){return e.hasLocalMutations&&t.hasCommittedMutations&&!t.hasLocalMutations}applyChanges(e,t,r,i){const s=this.Ta;this.Ta=e.Ta,this.mutatedKeys=e.mutatedKeys;const o=e.Aa.Q_();o.sort((u,d)=>function(_,w){const M=S=>{switch(S){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return St()}};return M(_)-M(w)}(u.type,d.type)||this.Ia(u.doc,d.doc)),this.Va(r),i=null!=i&&i;const a=t&&!i?this.ma():[],l=0===this.Pa.size&&this.current&&!i?1:0,c=l!==this.ha;return this.ha=l,0!==o.length||c?{snapshot:new X0(this.query,e.Ta,s,o,e.mutatedKeys,0===l,c,!1,!!r&&r.resumeToken.approximateByteSize()>0),fa:a}:{fa:a}}j_(e){return this.current&&"Offline"===e?(this.current=!1,this.applyChanges({Ta:this.Ta,Aa:new Ree,mutatedKeys:this.mutatedKeys,Xi:!1},!1)):{fa:[]}}ga(e){return!this.la.has(e)&&!!this.Ta.has(e)&&!this.Ta.get(e).hasLocalMutations}Va(e){e&&(e.addedDocuments.forEach(t=>this.la=this.la.add(t)),e.modifiedDocuments.forEach(t=>{}),e.removedDocuments.forEach(t=>this.la=this.la.delete(t)),this.current=e.current)}ma(){if(!this.current)return[];const e=this.Pa;this.Pa=mn(),this.Ta.forEach(r=>{this.ga(r.key)&&(this.Pa=this.Pa.add(r.key))});const t=[];return e.forEach(r=>{this.Pa.has(r)||t.push(new Vee(r))}),this.Pa.forEach(r=>{e.has(r)||t.push(new Fee(r))}),t}pa(e){this.la=e.hs,this.Pa=mn();const t=this.da(e.documents);return this.applyChanges(t,!0)}ya(){return X0.fromInitialDocuments(this.query,this.Ta,this.mutatedKeys,0===this.ha,this.hasCachedResults)}}class WRe{constructor(e,t,r){this.query=e,this.targetId=t,this.view=r}}class GRe{constructor(e){this.key=e,this.wa=!1}}class KRe{constructor(e,t,r,i,s,o){this.localStore=e,this.remoteStore=t,this.eventManager=r,this.sharedClientState=i,this.currentUser=s,this.maxConcurrentLimboResolutions=o,this.Sa={},this.ba=new Zd(a=>GX(a),OM),this.Da=new Map,this.Ca=new Set,this.va=new Qr(mt.comparator),this.Fa=new Map,this.Ma=new bU,this.xa={},this.Oa=new Map,this.Na=Ag.Ln(),this.onlineState="Unknown",this.La=void 0}get isPrimaryClient(){return!0===this.La}}function QRe(n,e){return cj.apply(this,arguments)}function cj(){return(cj=(0,ee.A)(function*(n,e,t=!0){const r=Gx(n);let i;const s=r.ba.get(e);return s?(r.sharedClientState.addLocalQueryTarget(s.targetId),i=s.view.ya()):i=yield jee(r,e,t,!0),i})).apply(this,arguments)}function JRe(n,e){return uj.apply(this,arguments)}function uj(){return(uj=(0,ee.A)(function*(n,e){const t=Gx(n);yield jee(t,e,!0,!1)})).apply(this,arguments)}function jee(n,e,t,r){return dj.apply(this,arguments)}function dj(){return(dj=(0,ee.A)(function*(n,e,t,r){const i=yield z0(n.localStore,Lo(e)),s=i.targetId,o=t?n.sharedClientState.addLocalQueryTarget(s):"not-current";let a;return r&&(a=yield hj(n,e,s,"current"===o,i.resumeToken)),n.isPrimaryClient&&t&&qx(n.remoteStore,i),a})).apply(this,arguments)}function hj(n,e,t,r,i){return fj.apply(this,arguments)}function fj(){return fj=(0,ee.A)(function*(n,e,t,r,i){n.Ba=(d,f,_)=>{return(w=(0,ee.A)(function*(S,O,N,j){let Z=O.view.da(N);Z.Xi&&(Z=yield Yx(S.localStore,O.query,!1).then(({documents:B})=>O.view.da(B,Z)));const ie=j&&j.targetChanges.get(O.targetId),le=j&&null!=j.targetMismatches.get(O.targetId),Q=O.view.applyChanges(Z,S.isPrimaryClient,ie,le);return Mj(S,O.targetId,Q.fa),Q.snapshot}),function M(S,O,N,j){return w.apply(this,arguments)})(n,d,f,_);var w};const s=yield Yx(n.localStore,e,!0),o=new Uee(e,s.hs),a=o.da(s.documents),l=HM.createSynthesizedTargetChangeForCurrentChange(t,r&&"Offline"!==n.onlineState,i),c=o.applyChanges(a,n.isPrimaryClient,l);Mj(n,t,c.fa);const u=new WRe(e,t,o);return n.ba.set(e,u),n.Da.has(t)?n.Da.get(t).push(e):n.Da.set(t,[e]),c.snapshot}),fj.apply(this,arguments)}function XRe(n,e,t){return pj.apply(this,arguments)}function pj(){return(pj=(0,ee.A)(function*(n,e,t){const r=lt(n),i=r.ba.get(e),s=r.Da.get(i.targetId);if(s.length>1)return r.Da.set(i.targetId,s.filter(o=>!OM(o,e))),void r.ba.delete(e);
1r.isPrimaryClient?(r.sharedClientState.removeLocalQueryTarget(i.targetId),r.sharedClientState.isActiveQueryTarget(i.targetId)||(yield $0(r.localStore,i.targetId,!1).then(()=>{r.sharedClientState.clearQueryState(i.targetId),t&&W0(r.remoteStore,i.targetId),Z0(r,i.targetId)}).catch(Rf))):(Z0(r,i.targetId),yield $0(r.localStore,i.targetId,!0))})).apply(this,arguments)}function ZRe(n,e){return mj.apply(this,arguments)}function mj(){return(mj=(0,ee.A)(function*(n,e){const t=lt(n),r=t.ba.get(e),i=t.Da.get(r.targetId);t.isPrimaryClient&&1===i.length&&(t.sharedClientState.removeLocalQueryTarget(r.targetId),W0(t.remoteStore,r.targetId))})).apply(this,arguments)}function gj(){return(gj=(0,ee.A)(function*(n,e,t){const r=Oj(n);try{const i=yield function(o,a){const l=lt(o),c=Di.now(),u=a.reduce((_,w)=>_.add(w.key),mn());let d,f;return l.persistence.runTransaction("Locally write mutations","readwrite",_=>{let w=Ha(),M=mn();return l.os.getEntries(_,u).next(S=>{w=S,w.forEach((O,N)=>{N.isValidDocument()||(M=M.add(O))})}).next(()=>l.localDocuments.getOverlayedDocuments(_,w)).next(S=>{d=S;const O=[];for(const N of a){const j=SPe(N,d.get(N.key).overlayedDocument);null!=j&&O.push(new eh(N.key,j,PX(j.value.mapValue),Ci.exists(!0)))}return l.mutationQueue.addMutationBatch(_,c,O,a)}).next(S=>{f=S;const O=S.applyToLocalDocumentSet(d,M);return l.documentOverlayCache.saveOverlays(_,S.batchId,O)})}).then(()=>({batchId:f.batchId,changes:XX(d)}))}(r.localStore,e);r.sharedClientState.addPendingMutation(i.batchId),function(o,a,l){let c=o.xa[o.currentUser.toKey()];c||(c=new Qr(rn)),c=c.insert(a,l),o.xa[o.currentUser.toKey()]=c}(r,i.batchId,t),yield nh(r,i.changes),yield G0(r.remoteStore)}catch(i){const s=Q0(i,"Failed to persist write");t.reject(s)}})).apply(this,arguments)}function Yee(n,e){return _j.apply(this,arguments)}function _j(){return(_j=(0,ee.A)(function*(n,e){const t=lt(n);try{const r=yield function yRe(n,e){const t=lt(n),r=e.snapshotVersion;let i=t.ns;return t.persistence.runTransaction("Apply remote event","readwrite-primary",s=>{const o=t.os.newChangeBuffer({trackRemovals:!0});i=t.ns;const a=[];
1e.targetChanges.forEach((u,d)=>{const f=i.get(d);if(!f)return;a.push(t.Qr.removeMatchingKeys(s,u.removedDocuments,d).next(()=>t.Qr.addMatchingKeys(s,u.addedDocuments,d)));let _=f.withSequenceNumber(s.currentSequenceNumber);var M,S,O;null!==e.targetMismatches.get(d)?_=_.withResumeToken(Os.EMPTY_BYTE_STRING,Ft.min()).withLastLimboFreeSnapshotVersion(Ft.min()):u.resumeToken.approximateByteSize()>0&&(_=_.withResumeToken(u.resumeToken,r)),i=i.insert(d,_),S=_,O=u,(0===(M=f).resumeToken.approximateByteSize()||S.snapshotVersion.toMicroseconds()-M.snapshotVersion.toMicroseconds()>=3e8||O.addedDocuments.size+O.modifiedDocuments.size+O.removedDocuments.size>0)&&a.push(t.Qr.updateTargetData(s,_))});let l=Ha(),c=mn();if(e.documentUpdates.forEach(u=>{e.resolvedLimboDocuments.has(u)&&a.push(t.persistence.referenceDelegate.updateLimboDocument(s,u))}),a.push(_ee(s,o,e.documentUpdates).next(u=>{l=u.cs,c=u.ls})),!r.isEqual(Ft.min())){const u=t.Qr.getLastRemoteSnapshotVersion(s).next(d=>t.Qr.setTargetsMetadata(s,s.currentSequenceNumber,r));a.push(u)}return ye.waitFor(a).next(()=>o.apply(s)).next(()=>t.localDocuments.getLocalViewOfDocuments(s,l,c)).next(()=>l)}).then(s=>(t.ns=i,s))}(t.localStore,e);
1e.targetChanges.forEach((i,s)=>{const o=t.Fa.get(s);o&&(Rt(i.addedDocuments.size+i.modifiedDocuments.size+i.removedDocuments.size<=1),i.addedDocuments.size>0?o.wa=!0:i.modifiedDocuments.size>0?Rt(o.wa):i.removedDocuments.size>0&&(Rt(o.wa),o.wa=!1))}),yield nh(t,r,e)}catch(r){yield Rf(r)}})).apply(this,arguments)}function Bee(n,e,t){const r=lt(n);if(r.isPrimaryClient&&0===t||!r.isPrimaryClient&&1===t){const i=[];r.ba.forEach((s,o)=>{const a=o.view.j_(e);a.snapshot&&i.push(a.snapshot)}),function(o,a){const l=lt(o);l.onlineState=a;let c=!1;l.queries.forEach((u,d)=>{for(const f of d.U_)f.j_(a)&&(c=!0)}),c&&oj(l)}(r.eventManager,e),i.length&&r.Sa.h_(i),r.onlineState=e,r.isPrimaryClient&&r.sharedClientState.setOnlineState(e)}}function tLe(n,e,t){return yj.apply(this,arguments)}function yj(){return(yj=(0,ee.A)(function*(n,e,t){const r=lt(n);r.sharedClientState.updateQueryState(e,"rejected",t);const i=r.Fa.get(e),s=i&&i.key;if(s){let o=new Qr(mt.comparator);o=o.insert(s,ui.newNoDocument(s,Ft.min()));const a=mn().add(s),l=new BM(Ft.min(),new Map,new Qr(rn),o,a);yield Yee(r,l),r.va=r.va.remove(s),r.Fa.delete(e),Ij(r)}else yield $0(r.localStore,e,!1).then(()=>Z0(r,e,t)).catch(Rf)})).apply(this,arguments)}function nLe(n,e){return vj.apply(this,arguments)}function vj(){return(vj=(0,ee.A)(function*(n,e){const t=lt(n),r=e.batch.batchId;try{const i=yield function _Re(n,e){const t=lt(n);return t.persistence.runTransaction("Acknowledge batch","readwrite-primary",r=>{const i=e.batch.keys(),s=t.os.newChangeBuffer({trackRemovals:!0});return function(a,l,c,u){const d=c.batch,f=d.keys();let _=ye.resolve();return f.forEach(w=>{_=_.next(()=>u.getEntry(l,w)).next(M=>{const S=c.docVersions.get(w);Rt(null!==S),M.version.compareTo(S)<0&&(d.applyToRemoteDocument(M,c),M.isValidDocument()&&(M.setReadTime(c.commitVersion),u.addEntry(M)))})}),_.next(()=>a.mutationQueue.removeMutationBatch(l,d))}(t,r,e,s).next(()=>s.apply(r)).next(()=>t.mutationQueue.performConsistencyCheck(r)).next(()=>t.documentOverlayCache.removeOverlaysForBatchId(r,i,e.batch.batchId)).next(()=>t.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(r,function(a){let l=mn();for(let c=0;c<a.mutationResults.length;++c)a.mutationResults[c].transformResults.length>0&&(l=l.add(a.batch.mutations[c].key));return l}(e))).next(()=>t.localDocuments.getDocuments(r,i))})}(t.localStore,e);Ej(t,r,null),Tj(t,r),t.sharedClientState.updateMutationState(r,"acknowledged"),yield nh(t,i)}catch(i){yield Rf(i)}})).apply(this,arguments)}function rLe(n,e,t){return wj.apply(this,arguments)}function wj(){return(wj=(0,ee.A)(function*(n,e,t){const r=lt(n);try{const i=yield function(o,a){const l=lt(o);return l.persistence.runTransaction("Reject batch","readwrite-primary",c=>{let u;return l.mutationQueue.lookupMutationBatch(c,a).next(d=>(Rt(null!==d),u=d.keys(),l.mutationQueue.removeMutationBatch(c,d))).next(()=>l.mutationQueue.performConsistencyCheck(c)).next(()=>l.documentOverlayCache.removeOverlaysForBatchId(c,u,a)).next(()=>l.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(c,u)).next(()=>l.localDocuments.getDocuments(c,u))})}(r.localStore,e);Ej(r,e,t),Tj(r,e),r.sharedClientState.updateMutationState(e,"rejected",t),yield nh(r,i)}catch(i){yield Rf(i)}})).apply(this,arguments)}function bj(){return(bj=(0,ee.A)(function*(n,e){const t=lt(n);$f(t.remoteStore)||We("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled.");try{const r=yield function(o){const a=lt(o);return a.persistence.runTransaction("Get highest unacknowledged batch id","readonly",l=>
1a.mutationQueue.getHighestUnacknowledgedBatchId(l))}(t.localStore);if(-1===r)return void e.resolve();const i=t.Oa.get(r)||[];i.push(e),t.Oa.set(r,i)}catch(r){const i=Q0(r,"Initialization of waitForPendingWrites() operation failed");e.reject(i)}})).apply(this,arguments)}function Tj(n,e){(n.Oa.get(e)||[]).forEach(t=>{t.resolve()}),n.Oa.delete(e)}function Ej(n,e,t){const r=lt(n);let i=r.xa[r.currentUser.toKey()];if(i){const s=i.get(e);s&&(t?s.reject(t):s.resolve(),i=i.remove(e)),r.xa[r.currentUser.toKey()]=i}}function Z0(n,e,t=null){n.sharedClientState.removeLocalQueryTarget(e);for(const r of n.Da.get(e))n.ba.delete(r),t&&n.Sa.ka(r,t);n.Da.delete(e),n.isPrimaryClient&&n.Ma.Vr(e).forEach(r=>{n.Ma.containsKey(r)||Hee(n,r)})}function Hee(n,e){n.Ca.delete(e.path.canonicalString());const t=n.va.get(e);null!==t&&(W0(n.remoteStore,t),n.va=n.va.remove(e),n.Fa.delete(t),Ij(n))}function Mj(n,e,t){for(const r of t)r instanceof Fee?(n.Ma.addReference(r.key,e),sLe(n,r)):r instanceof Vee?(We("SyncEngine","Document no longer in limbo: "+r.key),n.Ma.removeReference(r.key,e),n.Ma.containsKey(r.key)||Hee(n,r.key)):St()}function sLe(n,e){const t=e.key,r=t.path.canonicalString();n.va.get(t)||n.Ca.has(r)||(We("SyncEngine","New document in limbo: "+t),n.Ca.add(r),Ij(n))}function Ij(n){for(;n.Ca.size>0&&n.va.size<n.maxConcurrentLimboResolutions;){const e=n.Ca.values().next().value;n.Ca.delete(e);const t=new mt(On.fromString(e)),r=n.Na.next();n.Fa.set(r,new GRe(t)),n.va=n.va.insert(t,r),qx(n.remoteStore,new th(Lo(k0(t.path)),r,"TargetPurposeLimboResolution",Ml.oe))}}function nh(n,e,t){return Dj.apply(this,arguments)}function Dj(){return Dj=(0,ee.A)(function*(n,e,t){const r=lt(n),i=[],s=[],o=[];var a;r.ba.isEmpty()||(r.ba.forEach((a,l)=>{o.push(r.Ba(l,e,t).then(c=>
1{if((c||t)&&r.isPrimaryClient&&r.sharedClientState.updateQueryState(l.targetId,c&&!c.fromCache?"current":"not-current"),c){i.push(c);const u=DU.Ki(l.targetId,c);s.push(u)}}))}),yield Promise.all(o),r.Sa.h_(i),yield(a=(0,ee.A)(function*(c,u){const d=lt(c);try{yield d.persistence.runTransaction("notifyLocalViewChanges","readwrite",f=>ye.forEach(u,_=>ye.forEach(_.qi,w=>d.persistence.referenceDelegate.addReference(f,_.targetId,w)).next(()=>ye.forEach(_.Qi,w=>d.persistence.referenceDelegate.removeReference(f,_.targetId,w)))))}catch(f){if(!Lf(f))throw f;We("LocalStore","Failed to update sequence numbers: "+f)}for(const f of u){const _=f.targetId;if(!f.fromCache){const w=d.ns.get(_),S=w.withLastLimboFreeSnapshotVersion(w.snapshotVersion);d.ns=d.ns.insert(_,S)}}}),function l(c,u){return a.apply(this,arguments)})(r.localStore,s))}),Dj.apply(this,arguments)}function oLe(n,e){return Cj.apply(this,arguments)}function Cj(){return(Cj=(0,ee.A)(function*(n,e){const t=lt(n);if(!t.currentUser.isEqual(e)){We("SyncEngine","User change. New user:",e.toKey());const r=yield mee(t.localStore,e);t.currentUser=e,(s=t).Oa.forEach(a=>{a.forEach(l=>{l.reject(new He(xe.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),s.Oa.clear(),t.sharedClientState.handleUserChange(e,r.removedBatchIds,r.addedBatchIds),yield nh(t,r.us)}var s})).apply(this,arguments)}function aLe(n,e){const t=lt(n),r=t.Fa.get(e);if(r&&r.wa)return mn().add(r.key);{let i=mn();const s=t.Da.get(e);if(!s)return i;for(const o of s){const a=t.ba.get(o);i=i.unionWith(a.view.Ea)}return i}}function lLe(n,e){return Sj.apply(this,arguments)}function Sj(){return(Sj=(0,ee.A)(function*(n,e){const t=lt(n),r=yield Yx(t.localStore,e.query,!0),i=e.view.pa(r);return t.isPrimaryClient&&Mj(t,e.targetId,i.fa),i})).apply(this,arguments)}function cLe(n,e){return Aj.apply(this,arguments)}function Aj(){return(Aj=(0,ee.A)(function*(n,e){const t=lt(n);return vee(t.localStore,e).then(r=>nh(t,r))})).apply(this,arguments)}function uLe(n,e,t,r){return xj.apply(this,arguments)}function xj(){return(xj=(0,ee.A)(function*(n,e,t,r){const i=lt(n),s=yield function(a,l){const c=lt(a),u=lt(c.mutationQueue);return c.persistence.runTransaction("Lookup mutation documents","readonly",d=>u.vn(d,l).next(f=>f?c.localDocuments.getDocuments(d,f):ye.resolve(null)))}(i.localStore,e);var l;null!==s?("pending"===t?yield G0(i.remoteStore):"acknowledged"===t||"rejected"===t?(Ej(i,e,r||null),Tj(i,e),l=e,lt(lt(i.localStore).mutationQueue).Mn(l)):St(),yield nh(i,s)):We("SyncEngine","Cannot apply mutation batch with id: "+e)})).apply(this,arguments)}function kj(){return(kj=(0,ee.A)(function*(n,e){const t=lt(n);if(Gx(t),Oj(t),!0===e&&!0!==t.La){const r=t.sharedClientState.getAllActiveQueryTargets(),i=yield zee(t,r.toArray());t.La=!0,yield ZU(t.remoteStore,!0);for(const s of i)qx(t.remoteStore,s)}else if(!1===e&&!1!==t.La){const r=[];let i=Promise.resolve();t.Da.forEach((s,o)=>{t.sharedClientState.isLocalQueryTarget(o)?r.push(o):i=i.then(()=>(Z0(t,o),$0(t.localStore,o,!0))),W0(t.remoteStore,o)}),yield i,yield zee(t,r),function(o){const a=lt(o);a.Fa.forEach((l,c)=>{W0(a.remoteStore,c)}),a.Ma.mr(),a.Fa=new Map,a.va=new Qr(mt.comparator)}(t),t.La=!1,yield ZU(t.remoteStore,!1)}})).apply(this,arguments)}function zee(n,e,t){return Pj.apply(this,arguments)}function Pj(){return(Pj=(0,ee.A)(function*(n,e,t){const r=lt(n),i=[],s=[];for(const o of e){let a;const l=r.Da.get(o);if(l&&0!==l.length){a=yield z0(r.localStore,Lo(l[0]));for(const c of l){const u=r.ba.get(c),d=yield lLe(r,u);d.snapshot&&s.push(d.snapshot)}}else{const c=yield yee(r.localStore,o);a=yield z0(r.localStore,c),yield hj(r,$ee(c),o,!1,a.resumeToken)}i.push(a)}return r.Sa.h_(s),i})).apply(this,arguments)}function $ee(n){return zX(n.path,n.collectionGroup,n.orderBy,n.filters,n.limit,"F",n.startAt,n.endAt)}function hLe(n){return t=lt(n).localStore,lt(lt(t).persistence).Bi();var t}function fLe(n,e,t,r){return Rj.apply(this,arguments)}function Rj(){return(Rj=(0,ee.A)(function*(n,e,t,r){const i=lt(n);if(i.La)return void We("SyncEngine","Ignoring unexpected query state notification.");const s=i.Da.get(e);if(s&&s.length>0)switch(t){case"current":case"not-current":{const o=yield vee(i.localStore,KX(s[0])),a=BM.createSynthesizedRemoteEventForCurrentChange(e,"current"===t,Os.E
1MPTY_BYTE_STRING);yield nh(i,o,a);break}case"rejected":yield $0(i.localStore,e,!0),Z0(i,e,r);break;default:St()}})).apply(this,arguments)}function pLe(n,e,t){return Lj.apply(this,arguments)}function Lj(){return(Lj=(0,ee.A)(function*(n,e,t){const r=Gx(n);if(r.La){for(const i of e){if(r.Da.has(i)&&r.sharedClientState.isActiveQueryTarget(i)){We("SyncEngine","Adding an already active target "+i);continue}const s=yield yee(r.localStore,i),o=yield z0(r.localStore,s);yield hj(r,$ee(s),o.targetId,!1,o.resumeToken),qx(r.remoteStore,o)}for(const i of t)r.Da.has(i)&&(yield $0(r.localStore,i,!1).then(()=>{W0(r.remoteStore,i),Z0(r,i)}).catch(Rf))}})).apply(this,arguments)}function Gx(n){const e=lt(n);return e.remoteStore.remoteSyncer.applyRemoteEvent=Yee.bind(null,e),e.remoteStore.remoteSyncer.getRemoteKeysForTarget=aLe.bind(null,e),e.remoteStore.remoteSyncer.rejectListen=tLe.bind(null,e),e.Sa.h_=HRe.bind(null,e.eventManager),e.Sa.ka=zRe.bind(null,e.eventManager),e}function Oj(n){const e=lt(n);return e.remoteStore.remoteSyncer.applySuccessfulWrite=nLe.bind(null,e),e.remoteStore.remoteSyncer.rejectFailedWrite=rLe.bind(null,e),e}class ew{constructor(){this.synchronizeTabs=!1}initialize(e){var t=this;return(0,ee.A)(function*(){t.serializer=ZM(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 pee(this.persistence,new fee,e.initialUser,this.serializer)}createPersistence(e){return new TU(Vx.Hr,this.serializer)}createSharedClientState(e){return new Eee}terminate(){var e=this;return(0,ee.A)(function*(){var t,r;null===(t=e.gcScheduler)||void 0===t||t.stop(),null===(r=e.indexBackfillerScheduler)||void 0===r||r.stop(),e.sharedClientState.shutdown(),yield e.persistence.shutdown()})()}}class Nj extends ew{constructor(e,t,r){super(),this.Qa=e,this.cacheSizeBytes=t,this.forceOwnership=r,this.synchronizeTabs=!1}initialize(e){var t=()=>super.initialize,r=this;return(0,ee.A)(function*(){yield t().call(r,e),yield r.Qa.initialize(r,e),yield Oj(r.Qa.syncEngine),yield G0(r.Qa.remoteStore),yield r.persistence.fi(()=>(r.gcScheduler&&!r.gcScheduler.started&&r.gcScheduler.start(),r.indexBackfillerScheduler&&!r.indexBackfillerScheduler.started&&r.indexBackfillerScheduler.start(),Promise.resolve()))})()}createLocalStore(e){return pee(this.persistence,new fee,e.initialUser,this.serializer)}createGarbageCollectionScheduler(e,t){return new iee(this.persistence.referenceDelegate.garbageCollector,e.asyncQueue,t)}createIndexBackfillerScheduler(e,t){const r=new jke(t,this.persistence);return new Uke(e.asyncQueue,r)}createPersistence(e){const t=IU(e.databaseInfo.databaseId,e.databaseInfo.persistenceKey),r=void 0!==this.cacheSizeBytes?Oo.withCacheSize(this.cacheSizeBytes):Oo.DEFAULT;return new MU(this.synchronizeTabs,t,e.clientId,r,e.asyncQueue,Iee(),$x(),this.serializer,this.sharedClientState,!!this.forceOwnership)}createSharedClientState(e){return new Eee}}class qee extends Nj{constructor(e,t){super(e,t,!1),this.Qa=e,this.cacheSizeBytes=t,this.synchronizeTabs=!0}initialize(e){var t=()=>super.initialize,r=this;return(0,ee.A)(function*(){yield t().call(r,e);const i=r.Qa.syncEngine;r.sharedClientState instanceof LU&&(r.sharedClientState.syncEngine={Zs:uLe.bind(null,i),Xs:fLe.bind(null,i),eo:pLe.bind(null,i),Bi:hLe.bind(null,i),Ys:cLe.bind(null,i)},yield r.sharedClientState.start()),yield r.persistence.fi(function(){var s=(0,ee.A)(function*(o){yield function dLe(n,e){return kj.apply(this,arguments)}(r.Qa.syncEngine,o),r.gcScheduler&&(o&&!r.gcScheduler.started?r.gcScheduler.start():o||r.gcScheduler.stop()),r.indexBackfillerScheduler&&(o&&!r.indexBackfillerScheduler.started?r.indexBackfillerScheduler.start():o||r.indexBackfillerScheduler.stop())});return function(o){return s.apply(this,arguments)}}())})()}
1createSharedClientState(e){const t=Iee();if(!LU.D(t))throw new He(xe.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");const r=IU(e.databaseInfo.databaseId,e.databaseInfo.persistenceKey);return new LU(t,e.asyncQueue,r,e.clientId,e.initialUser)}}class tw{initialize(e,t){var r=this;return(0,ee.A)(function*(){r.localStore||(r.localStore=e.localStore,r.sharedClientState=e.sharedClientState,r.datastore=r.createDatastore(t),r.remoteStore=r.createRemoteStore(t),r.eventManager=r.createEventManager(t),r.syncEngine=r.createSyncEngine(t,!e.synchronizeTabs),r.sharedClientState.onlineStateHandler=i=>Bee(r.syncEngine,i,1),r.remoteStore.remoteSyncer.handleCredentialChange=oLe.bind(null,r.syncEngine),yield ZU(r.remoteStore,r.syncEngine.isPrimaryClient))})()}createEventManager(e){return new BRe}createDatastore(e){const t=ZM(e.databaseInfo.databaseId),r=new IRe(e.databaseInfo);return new SRe(e.authCredentials,e.appCheckCredentials,r,t)}createRemoteStore(e){return r=this.localStore,i=this.datastore,s=e.asyncQueue,o=t=>Bee(this.syncEngine,t,0),a=Mee.D()?new Mee:new TRe,new xRe(r,i,s,o,a);var r,i,s,o,a}createSyncEngine(e,t){return function(i,s,o,a,l,c,u){const d=new KRe(i,s,o,a,l,c);return u&&(d.La=!0),d}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,t)}terminate(){var e=this;return(0,ee.A)(function*(){var t,r;yield(r=(0,ee.A)(function*(s){const o=lt(s);We("RemoteStore","RemoteStore shutting down."),o.M_.add(5),yield q0(o),o.O_.shutdown(),o.N_.set("Unknown")}),function i(s){return r.apply(this,arguments)})(e.remoteStore),null===(t=e.datastore)||void 0===t||t.terminate()})()}}function Wee(n,e=10240){let t=0;return{read:()=>(0,ee.A)(function*(){if(t<n.byteLength){const r={value:n.slice(t,t+e),done:!1};return t+=e,r}return{done:!0}})(),cancel:()=>(0,ee.A)(function*(){})(),releaseLock(){},closed:Promise.resolve()}}class Kx{constructor(e){this.observer=e,this.muted=!1}next(e){this.observer.next&&this.Ka(this.observer.next,e)}error(e){this.observer.error?this.Ka(this.observer.error,e):cs("Uncaught Error in snapshot listener:",e.toString())}$a(){this.muted=!0}Ka(e,t){this.muted||setTimeout(()=>{this.muted||e(t)},0)}}class _Le{constructor(e,t){this.Ua=e,this.serializer=t,this.metadata=new Ls,this.buffer=new Uint8Array,this.Wa=new TextDecoder("utf-8"),this.Ga().then(r=>{r&&r.sa()?this.metadata.resolve(r.ia.metadata):this.metadata.reject(new Error(`The first element of the bundle is not a metadata, it is\n ${JSON.stringify(r?.ia)}`))},r=>this.metadata.reject(r))}close(){return this.Ua.cancel()}getMetadata(){var e=this;return(0,ee.A)(function*(){return e.metadata.promise})()}qa(){var e=this;return(0,ee.A)(function*(){return yield e.getMetadata(),e.Ga()})()}Ga(){var e=this;return(0,ee.A)(function*(){const t=yield e.za();if(null===t)return null;const r=e.Wa.decode(t),i=Number(r);isNaN(i)&&e.ja(`length string (${r}) is not valid number`);const s=yield e.Ha(i);return new $Re(JSON.parse(s),t.length+i)})()}Ja(){return this.buffer.findIndex(e=>123===e)}za(){var e=this;return(0,ee.A)(function*(){for(;e.Ja()<0&&!(yield e.Ya()););if(0===e.buffer.length)return null;const t=e.Ja();t<0&&e.ja("Reached the end of bundle when a length string is expected.");const r=e.buffer.slice(0,t);return e.buffer=e.buffer.slice(t),r})()}Ha(e){var t=this;return(0,ee.A)(function*(){for(;t.buffer.length<e;)(yield t.Ya())&&t.ja("Reached the end of bundle when more is expected.");const r=t.Wa.decode(t.buffer.slice(0,e));return t.buffer=t.buffer.slice(e),r})()}ja(e){throw this.Ua.cancel(),new Error(`Invalid bundle format: ${e}`)}Ya(){var e=this;return(0,ee.A)(function*(){const t=yield e.Ua.read();if(!t.done){const r=new Uint8Array(e.buffer.length+t.value.length);r.set(e.buffer),r.set(t.value,e.buffer.length),e.buffer=r}return t.done})()}}class yLe{constructor(e){this.datastore=e,this.readVersions=new Map,this.mutations=[],this.committed=!1,this.lastTransactionError=null,this.writtenDocs=new Set}lookup(e){var t=this;return(0,ee.A)(function*(){if(t.ensureCommitNotCalled(),t.mutations.length>
10)throw t.lastTransactionError=new He(xe.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes."),t.lastTransactionError;const r=yield(i=(0,ee.A)(function*(o,a){const l=lt(o),c={documents:a.map(_=>zM(l.serializer,_))},u=yield l.xo("BatchGetDocuments",l.serializer.databaseId,On.emptyPath(),c,a.length),d=new Map;u.forEach(_=>{const w=function FPe(n,e){return"found"in e?function(r,i){Rt(!!i.found);const s=zu(r,i.found.name),o=us(i.found.updateTime),a=i.found.createTime?us(i.found.createTime):Ft.min(),l=new fo({mapValue:{fields:i.found.fields}});return ui.newFoundDocument(s,o,a,l)}(n,e):"missing"in e?function(r,i){Rt(!!i.missing),Rt(!!i.readTime);const s=zu(r,i.missing),o=us(i.readTime);return ui.newNoDocument(s,o)}(n,e):St()}(l.serializer,_);d.set(w.key.toString(),w)});const f=[];return a.forEach(_=>{const w=d.get(_.toString());Rt(!!w),f.push(w)}),f}),function s(o,a){return i.apply(this,arguments)})(t.datastore,e);var i;return r.forEach(i=>t.recordVersion(i)),r})()}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(r){this.lastTransactionError=r}this.writtenDocs.add(e.toString())}delete(e){this.write(new F0(e,this.precondition(e))),this.writtenDocs.add(e.toString())}commit(){var e=this;return(0,ee.A)(function*(){if(e.ensureCommitNotCalled(),e.lastTransactionError)throw e.lastTransactionError;const t=e.readVersions;var r;e.mutations.forEach(r=>{t.delete(r.key.toString())}),t.forEach((r,i)=>{const s=mt.fromPath(i);e.mutations.push(new iU(s,e.precondition(s)))}),yield(r=(0,ee.A)(function*(s,o){const a=lt(s),l={writes:o.map(c=>$M(a.serializer,c))};yield a.Co("Commit",a.serializer.databaseId,On.emptyPath(),l)}),function i(s,o){return r.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 St();t=Ft.min()}const r=this.readVersions.get(e.key.toString());if(r){if(!t.isEqual(r))throw new He(xe.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(Ft.min())?Ci.exists(!1):Ci.updateTime(t):Ci.none()}preconditionForUpdate(e){const t=this.readVersions.get(e.toString());if(!this.writtenDocs.has(e.toString())&&t){if(t.isEqual(Ft.min()))throw new He(xe.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return Ci.updateTime(t)}return Ci.exists(!0)}write(e){this.ensureCommitNotCalled(),this.mutations.push(e)}ensureCommitNotCalled(){}}class vLe{constructor(e,t,r,i,s){this.asyncQueue=e,this.datastore=t,this.options=r,this.updateFunction=i,this.deferred=s,this.Za=r.maxAttempts,this.Yo=new NU(this.asyncQueue,"transaction_retry")}Xa(){this.Za-=1,this.eu()}eu(){var e=this;this.Yo.$o((0,ee.A)(function*(){const t=new yLe(e.datastore),r=e.tu(t);r&&r.then(i=>{e.asyncQueue.enqueueAndForget(()=>t.commit().then(()=>{e.deferred.resolve(i)}).catch(s=>{e.nu(s)}))}).catch(i=>{e.nu(i)})}))}tu(e){try{const t=this.updateFunction(e);return!CM(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}}nu(e){this.Za>0&&this.ru(e)?(this.Za-=1,this.asyncQueue.enqueueAndForget(()=>(this.eu(),Promise.resolve()))):this.deferred.reject(e)}ru(e){if("FirebaseError"===e.name){const t=e.code;return"aborted"===t||"failed-precondition"===t||"already-exists"===t||!pZ(t)}return!1}}
1class wLe{constructor(e,t,r,i){var s=this;this.authCredentials=e,this.appCheckCredentials=t,this.asyncQueue=r,this.databaseInfo=i,this.user=Ws.UNAUTHENTICATED,this.clientId=sX.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(r,function(){var o=(0,ee.A)(function*(a){We("FirestoreClient","Received user=",a.uid),yield s.authCredentialListener(a),s.user=a});return function(a){return o.apply(this,arguments)}}()),this.appCheckCredentials.start(r,o=>(We("FirestoreClient","Received new app check token=",o),this.appCheckCredentialListener(o,this.user)))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(e){this.authCredentialListener=e}setAppCheckTokenChangeListener(e){this.appCheckCredentialListener=e}verifyNotTerminated(){if(this.asyncQueue.isShuttingDown)throw new He(xe.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){var e=this;this.asyncQueue.enterRestrictedMode();const t=new Ls;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((0,ee.A)(function*(){try{e._onlineComponents&&(yield e._onlineComponents.terminate()),e._offlineComponents&&(yield e._offlineComponents.terminate()),e.authCredentials.shutdown(),e.appCheckCredentials.shutdown(),t.resolve()}catch(r){const i=Q0(r,"Failed to shutdown persistence");t.reject(i)}})),t.promise}}function Qx(n,e){return Fj.apply(this,arguments)}function Fj(){return Fj=(0,ee.A)(function*(n,e){n.asyncQueue.verifyOperationInProgress(),We("FirestoreClient","Initializing OfflineComponentProvider");const t=n.configuration;yield e.initialize(t);let r=t.initialUser;n.setCredentialChangeListener(function(){var i=(0,ee.A)(function*(s){r.isEqual(s)||(yield mee(e.localStore,s),r=s)});return function(s){return i.apply(this,arguments)}}()),e.persistence.setDatabaseDeletedListener(()=>n.terminate()),n._offlineComponents=e}),Fj.apply(this,arguments)}function Vj(n,e){return Uj.apply(this,arguments)}function Uj(){return(Uj=(0,ee.A)(function*(n,e){n.asyncQueue.verifyOperationInProgress();const t=yield jj(n);We("FirestoreClient","Initializing OnlineComponentProvider"),yield e.initialize(t,n.configuration),n.setCredentialChangeListener(r=>Pee(e.remoteStore,r)),n.setAppCheckTokenChangeListener((r,i)=>Pee(e.remoteStore,i)),n._onlineComponents=e})).apply(this,arguments)}function Gee(n){return"FirebaseError"===n.name?n.code===xe.FAILED_PRECONDITION||n.code===xe.UNIMPLEMENTED:!(typeof DOMException<"u"&&n instanceof DOMException)||22===n.code||20===n.code||11===n.code}function jj(n){return Yj.apply(this,arguments)}function Yj(){return(Yj=(0,ee.A)(function*(n){if(!n._offlineComponents)if(n._uninitializedComponentsProvider){We("FirestoreClient","Using user provided OfflineComponentProvider");try{yield Qx(n,n._uninitializedComponentsProvider._offline)}catch(e){const t=e;if(!Gee(t))throw t;Ya("Error using user provided cache. Falling back to memory cache: "+t),yield Qx(n,new ew)}}else We("FirestoreClient","Using default OfflineComponentProvider"),yield Qx(n,new ew);return n._offlineComponents})).apply(this,arguments)}function Jx(n){return Bj.apply(this,arguments)}function Bj(){return(Bj=(0,ee.A)(function*(n){return n._onlineComponents||(n._uninitializedComponentsProvider?(We("FirestoreClient","Using user provided OnlineComponentProvider"),yield Vj(n,n._uninitializedComponentsProvider._online)):(We("FirestoreClient","Using default OnlineComponentProvider"),yield Vj(n,new tw))),n._onlineComponents})).apply(this,arguments)}function Kee(n){return jj(n).then(e=>e.persistence)}function nw(n){return jj(n).then(e=>e.localStore)}function Qee(n){return Jx(n).then(e=>e.remoteStore)}function Hj(n){return Jx(n).then(e=>e.syncEngine)}function rw(n){return zj.apply(this,arguments)}function zj(){return(zj=(0,ee.A)(function*(n){const e=yield Jx(n),t=e.eventManager;return t.onListen=QRe.bind(null,e.syncEngine),t.onUnlisten=XRe.bind(null,e.syncEngine),t.onFirstRemoteStoreListen=JRe.bind(null,e.syncEngine),t.onLastRemoteStoreUnlisten=ZRe.bind(null,e.syncEngine),t})).apply(this,arguments)}function Xee(n,e,t={}){const r=new Ls;return n.asyncQueue.enqueueAndForget((0,ee.A)(function*(){return function(s,o,a,l,c){const u=new Kx({next:f=>{o.enqueueAndForget(()=>ij(s,d));const _=f.docs.has(a);!_&&f.fromCache?c.reject(new He(xe.UNAVAILABLE,"Failed to get document because the client is offline.")):_&&f.fromCache&&l&&"server"===l.source?c.reject(new He(xe.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.)')):c.resolve(f)},error:f=>c.reject(f)}),d=new lj(k0(a.path),u,{includeMetadataChanges:!0,ra:!0});return nj(s,d)}(yield rw(n),n.asyncQueue,e,t,r)})),r.promise}function Zee(n,e,t={}){const r=new Ls;return n.asyncQueue.enqueueAndForget((0,ee.A)(function*(){return function(s,o,a,l,c){const u=new Kx({next:f=>{o.enqueueAndForget(()=>ij(s,d)),f.fromCache&&"server"===l.source?c.reject(new He(xe.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.)')):c.resolve(f)},error:f=>c.reject(f)}),d=new lj(a,u,{includeMetadataChanges:!0,ra:!0});return nj(s,d)}(yield rw(n),n.asyncQueue,e,t,r)})),r.promise}function ete(n){const e={};return void 0!==n.timeoutSeconds&&(e.timeoutSeconds=n.timeoutSeconds),e}const tte=new Map;function $j(n,e,t){if(!t)throw new He(xe.INVALID_ARGUMENT,`Function ${n}() cannot be called with an empty ${e}.`)}function nte(n,e,t,r){if(!0===e&&!0===r)throw new He(xe.INVALID_ARGUMENT,`${n} and ${t} cannot be used together.`)}function rte(n){if(!mt.isDocumentKey(n))throw new He(xe.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${n} has ${n.length}.`)}function ite(n){if(mt.isDocumentKey(n))throw new He(xe.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${n} has ${n.length}.`)}function Xx(n){if(void 0===n)return"undefined";if(null===n)return"null";if("string"==typeof n)return n.length>20&&(n=`${n.substring(0,20)}...`),JSON.stringify(n);if("number"==typeof n||"boolean"==typeof n)return""+n;if("object"==typeof n){if(n instanceof Array)return"an array";{const e=(r=n).constructor?r.constructor.name:null;return e?`a custom ${e} object`:"an object"}}var r;return"function"==typeof n?"a function":St()}function In(n,e){if("_delegate"in n&&(n=n._delegate),!(n instanceof e)){if(e.name===n.constructor.name)throw new He(xe.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const t=Xx(n);throw new He(xe.INVALID_ARGUMENT,`Expected type '${e.name}', but it was: ${t}`)}}return n}function ste(n,e){if(e<=0)throw new He(xe.INVALID_ARGUMENT,`Function ${n}() requires a positive number, but it was: ${e}.`)}class ote{constructor(e){var t,r;if(void 0===e.host){if(void 0!==e.ssl)throw new He(xe.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.localCache=e.localCache,void 0===e.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==e.cacheSizeBytes&&e.cacheSizeBytes<1048576)throw new He(xe.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}nte("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!(this.experimentalForceLongPolling||void 0!==e.experimentalAutoDetectLongPolling&&!e.experimentalAutoDetectLongPolling),this.experimentalLongPollingOptions=ete(null!==(r=e.experimentalLongPollingOptions)&&void 0!==r?r:{}),function(s){if(void 0!==s.timeoutSeconds){if(isNaN(s.timeoutSeconds))throw new He(xe.INVALID_ARGUMENT,`invalid long polling timeout: ${s.timeoutSeconds} (must not be NaN)`);if(s.timeoutSeconds<5)throw new He(xe.INVALID_ARGUMENT,`invalid long polling timeout: ${s.timeoutSeconds} (minimum allowed value is 5)`);if(s.timeoutSeconds>30)throw new He(xe.INVALID_ARGUMENT,`invalid long polling timeout: ${s.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}}
1class tI{constructor(e,t,r,i){this._authCredentials=e,this._appCheckCredentials=t,this._databaseId=r,this._app=i,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new ote({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new He(xe.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 He(xe.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 ote(e),void 0!==e.credentials&&(this._authCredentials=function(r){if(!r)return new Cke;switch(r.type){case"firstParty":return new kke(r.sessionIndex||"0",r.iamToken||null,r.authTokenFactory||null);case"provider":return r.client;default:throw new He(xe.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(t){const r=tte.get(t);r&&(We("ComponentProvider","Removing Datastore"),tte.delete(t),r.terminate())}(this),Promise.resolve()}}class po{constructor(e,t,r){this.converter=t,this._query=r,this.type="query",this.firestore=e}withConverter(e){return new po(this.firestore,e,this._query)}}class di{constructor(e,t,r){this.converter=t,this._key=r,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 $u(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new di(this.firestore,e,this._key)}}class $u extends po{constructor(e,t,r){super(e,t,k0(r)),this._path=r,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 di(this.firestore,null,new mt(e))}withConverter(e){return new $u(this.firestore,e,this._path)}}function lte(n,e,...t){if(n=(0,K.Ku)(n),$j("collection","path",e),n instanceof tI){const r=On.fromString(e,...t);return ite(r),new $u(n,null,r)}{if(!(n instanceof di||n instanceof $u))throw new He(xe.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=n._path.child(On.fromString(e,...t));return ite(r),new $u(n.firestore,null,r)}}function Zx(n,e,...t){if(n=(0,K.Ku)(n),1===arguments.length&&(e=sX.newId()),$j("doc","path",e),n instanceof tI){const r=On.fromString(e,...t);return rte(r),new di(n,null,new mt(r))}{if(!(n instanceof di||n instanceof $u))throw new He(xe.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=n._path.child(On.fromString(e,...t));return rte(r),new di(n.firestore,n instanceof $u?n.converter:null,new mt(r))}}function cte(n,e){return n=(0,K.Ku)(n),e=(0,K.Ku)(e),(n instanceof di||n instanceof $u)&&(e instanceof di||e instanceof $u)&&n.firestore===e.firestore&&n.path===e.path&&n.converter===e.converter}function qj(n,e){return n=(0,K.Ku)(n),e=(0,K.Ku)(e),n instanceof po&&e instanceof po&&n.firestore===e.firestore&&OM(n._query,e._query)&&n.converter===e.converter}class RLe{constructor(){this.iu=Promise.resolve(),this.su=[],this.ou=!1,this._u=[],this.au=null,this.uu=!1,this.cu=!1,this.lu=[],this.Yo=new NU(this,"async_queue_retry"),this.hu=()=>{const t=$x();t&&We("AsyncQueue","Visibility state changed to "+t.visibilityState),this.Yo.Wo()};const e=$x();e&&"function"==typeof e.addEventListener&&e.addEventListener("visibilitychange",this.hu)}get isShuttingDown(){return this.ou}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.Pu(),this.Iu(e)}enterRestrictedMode(e){if(!this.ou){this.ou=!0,this.cu=e||!1;const t=$x();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.hu)}}enqueue(e){if(this.Pu(),this.ou)return new Promise(()=>{});const t=new Ls;return this.Iu(()=>this.ou&&this.cu?Promise.resolve():(e().then(t.resolve,t.reject),t.promise)).then(()=>t.promise)}enqueueRetryable(e){this.enqueueAndForget(()=>(this.su.push(e),this.Tu()))}Tu(){var e=this;return(0,ee.A)(function*(){if(0!==e.su.length){try{yield e.su[0](),e.su.shift(),e.Yo.reset()}catch(t){if(!Lf(t))throw t;We("AsyncQueue","Operation failed with retryable error: "+t)}e.su.length>0&&e.Yo.$o(()=>e.Tu())}})()}Iu(e){const t=this.iu.then(()=>(this.uu=!0,e().catch(r=>{throw this.au=r,this.uu=!1,cs("INTERNAL UNHANDLED ERROR: ",function(o){let a=o.message||"";return o.stack&&(a=o.stack.includes(o.message)?o.stack:o.message+"\n"+o.stack),a}(r)),r}).then(r=>(this.uu=!1,r))));return this.iu=t,t}enqueueAfterDelay(e,t,r){this.Pu(),this.lu.indexOf(e)>-1&&(t=0);const i=tj.createAndSchedule(this,e,t,r,s=>this.Eu(s));return this._u.push(i),i}Pu(){this.au&&St()}verifyOperationInProgress(){}du(){var e=this;return(0,ee.A)(function*(){let t;do{t=e.iu,yield t}while(t!==e.iu)})()}Au(e){for(const t of this._u)if(t.timerId===e)return!0;return!1}Ru(e){return this.du().then(()=>{this._u.sort((t,r)=>t.targetTimeMs-r.targetTimeMs);for(const t of this._u)if(t.skipDelay(),"all"!==e&&t.timerId===e)break;return this.du()})}Vu(e){this.lu.push(e)}Eu(e){const t=this._u.indexOf(e);this._u.splice(t,1)}}function Wj(n){return function(t,r){if("object"!=typeof t||null===t)return!1;const i=t;for(const s of["next","error","complete"])if(s in i&&"function"==typeof i[s])return!0;return!1}(n)}class LLe{constructor(){this._progressObserver={},this._taskCompletionResolver=new Ls,this._lastProgress={taskState:"Running",totalBytes:0,totalDocuments:0,bytesLoaded:0,documentsLoaded:0}}onProgress(e,t,r){this._progressObserver={next:e,error:t,complete:r}}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)}}
1class Lr extends tI{constructor(e,t,r,i){super(e,t,r,i),this.type="firestore",this._queue=new RLe,this._persistenceKey=i?.name||"[DEFAULT]"}_terminate(){return this._firestoreClient||ute(this),this._firestoreClient.terminate()}}function Si(n){return n._firestoreClient||ute(n),n._firestoreClient.verifyNotTerminated(),n._firestoreClient}function ute(n){var e,t,r;const i=n._freezeSettings(),s=(l=(null===(e=n._app)||void 0===e?void 0:e.options.appId)||"",new aPe(n._databaseId,l,n._persistenceKey,(u=i).host,u.ssl,u.experimentalForceLongPolling,u.experimentalAutoDetectLongPolling,ete(u.experimentalLongPollingOptions),u.useFetchStreams));var l,u;n._firestoreClient=new wLe(n._authCredentials,n._appCheckCredentials,n._queue,s),null!==(t=i.localCache)&&void 0!==t&&t._offlineComponentProvider&&null!==(r=i.localCache)&&void 0!==r&&r._onlineComponentProvider&&(n._firestoreClient._uninitializedComponentsProvider={_offlineKind:i.localCache.kind,_offline:i.localCache._offlineComponentProvider,_online:i.localCache._onlineComponentProvider})}function dte(n,e,t){const r=new Ls;return n.asyncQueue.enqueue((0,ee.A)(function*(){try{yield Qx(n,t),yield Vj(n,e),r.resolve()}catch(i){const s=i;if(!Gee(s))throw s;Ya("Error enabling indexeddb cache. Falling back to memory cache: "+s),r.reject(s)}})).then(()=>r.promise)}function hte(n){if(n._initialized||n._terminated)throw new He(xe.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.")}
1class qu{constructor(e){this._byteString=e}static fromBase64String(e){try{return new qu(Os.fromBase64String(e))}catch(t){throw new He(xe.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+t)}}static fromUint8Array(e){return new qu(Os.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 rh{constructor(...e){for(let t=0;t<e.length;++t)if(0===e[t].length)throw new He(xe.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new ci(e)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}class kg{constructor(e){this._methodName=e}}class ek{constructor(e,t){if(!isFinite(e)||e<-90||e>90)throw new He(xe.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new He(xe.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 rn(this._lat,e._lat)||rn(this._long,e._long)}}const $Le=/^__.*__$/;class qLe{constructor(e,t,r){this.data=e,this.fieldMask=t,this.fieldTransforms=r}toMutation(e,t){return null!==this.fieldMask?new eh(e,this.data,this.fieldMask,t,this.fieldTransforms):new N0(e,this.data,t,this.fieldTransforms)}}class fte{constructor(e,t,r){this.data=e,this.fieldMask=t,this.fieldTransforms=r}toMutation(e,t){return new eh(e,this.data,this.fieldMask,t,this.fieldTransforms)}}function pte(n){switch(n){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw St()}}class tk{constructor(e,t,r,i,s,o){this.settings=e,this.databaseId=t,this.serializer=r,this.ignoreUndefinedProperties=i,void 0===s&&this.mu(),this.fieldTransforms=s||[],this.fieldMask=o||[]}get path(){return this.settings.path}get fu(){return this.settings.fu}gu(e){return new tk(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}pu(e){var t;const r=null===(t=this.path)||void 0===t?void 0:t.child(e),i=this.gu({path:r,yu:!1});return i.wu(e),i}Su(e){var t;const r=null===(t=this.path)||void 0===t?void 0:t.child(e),i=this.gu({path:r,yu:!1});return i.mu(),i}bu(e){return this.gu({path:void 0,yu:!0})}Du(e){return ik(e,this.settings.methodName,this.settings.Cu||!1,this.path,this.settings.vu)}contains(e){return void 0!==this.fieldMask.find(t=>e.isPrefixOf(t))||void 0!==this.fieldTransforms.find(t=>e.isPrefixOf(t.field))}mu(){if(this.path)for(let e=0;e<this.path.length;e++)this.wu(this.path.get(e))}wu(e){if(0===e.length)throw this.Du("Document fields must not be empty");if(pte(this.fu)&&$Le.test(e))throw this.Du('Document fields cannot begin and end with "__"')}}class WLe{constructor(e,t,r){this.databaseId=e,this.ignoreUndefinedProperties=t,this.serializer=r||ZM(e)}Fu(e,t,r,i=!1){return new tk({fu:e,methodName:t,vu:r,path:ci.emptyPath(),yu:!1,Cu:i},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}}function Pg(n){const e=n._freezeSettings(),t=ZM(n._databaseId);return new WLe(n._databaseId,!!e.ignoreUndefinedProperties,t)}function nk(n,e,t,r,i,s={}){const o=n.Fu(s.merge||s.mergeFields?2:0,e,t,i);e4("Data must be an object, but it was:",o,r);const a=_te(r,o);let l,c;if(s.merge)l=new Ba(o.fieldMask),c=o.fieldTransforms;else if(s.mergeFields){const u=[];for(const d of s.mergeFields){const f=iI(e,d,t);if(!o.contains(f))throw new He(xe.INVALID_ARGUMENT,`Field '${f}' is specified in your field mask but missing from your input data.`);vte(u,f)||u.push(f)}l=new Ba(u),c=o.fieldTransforms.filter(d=>l.covers(d.field))}else l=null,c=o.fieldTransforms;return new qLe(new fo(a),l,c)}class rI extends kg{_toFieldTransform(e){if(2!==e.fu)throw e.Du(1===e.fu?`${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 rI}}function mte(n,e,t){return new tk({fu:3,vu:e.settings.vu,methodName:n._methodName,yu:t},e.databaseId,e.serializer,e.ignoreUndefinedProperties)}class Gj extends kg{_toFieldTransform(e){return new UM(e.path,new L0)}isEqual(e){return e instanceof Gj}}class Kj extends kg{constructor(e,t){super(e),this.Mu=t}_toFieldTransform(e){const t=mte(this,e,!0),r=this.Mu.map(s=>Rg(s,t)),i=new Tg(r);return new UM(e.path,i)}isEqual(e){return e instanceof Kj&&(0,K.bD)(this.Mu,e.Mu)}}class Qj extends kg{constructor(e,t){super(e),this.Mu=t}_toFieldTransform(e){const t=mte(this,e,!0),r=this.Mu.map(s=>Rg(s,t)),i=new Eg(r);return new UM(e.path,i)}isEqual(e){return e instanceof Qj&&(0,K.bD)(this.Mu,e.Mu)}}class Jj extends kg{constructor(e,t){super(e),this.xu=t}_toFieldTransform(e){const t=new O0(e.serializer,nZ(e.serializer,this.xu));return new UM(e.path,t)}isEqual(e){return e instanceof Jj&&this.xu===e.xu}}function Xj(n,e,t,r){const i=n.Fu(1,e,t);e4("Data must be an object, but it was:",i,r);const s=[],o=fo.empty();Of(r,(l,c)=>{const u=rk(e,l,t);c=(0,K.Ku)(c);const d=i.Su(u);if(c instanceof rI)s.push(u);else{const f=Rg(c,d);null!=f&&(s.push(u),o.set(u,f))}});const a=new Ba(s);return new fte(o,a,i.fieldTransforms)}function Zj(n,e,t,r,i,s){const o=n.Fu(1,e,t),a=[iI(e,r,t)],l=[i];if(s.length%2!=0)throw new He(xe.INVALID_ARGUMENT,`Function ${e}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let f=0;f<s.length;f+=2)a.push(iI(e,s[f])),l.push(s[f+1]);const c=[],u=fo.empty();for(let f=a.length-1;f>=0;--f)if(!vte(c,a[f])){const _=a[f];let w=l[f];w=(0,K.Ku)(w);const M=o.Su(_);if(w instanceof rI)c.push(_);else{const S=Rg(w,M);null!=S&&(c.push(_),u.set(_,S))}}const d=new Ba(c);return new fte(u,d,o.fieldTransforms)}function gte(n,e,t,r=!1){return Rg(t,n.Fu(r?4:3,e))}function Rg(n,e){if(yte(n=(0,K.Ku)(n)))return e4("Unsupported field value:",e,n),_te(n,e);if(n instanceof kg)return function(r,i){if(!pte(i.fu))throw i.Du(`${r._methodName}
1() can only be used with update() and set()`);if(!i.path)throw i.Du(`${r._methodName}() is not currently supported inside arrays`);const s=r._toFieldTransform(i);s&&i.fieldTransforms.push(s)}(n,e),null;if(void 0===n&&e.ignoreUndefinedProperties)return null;if(e.path&&e.fieldMask.push(e.path),n instanceof Array){if(e.settings.yu&&4!==e.fu)throw e.Du("Nested arrays are not supported");return function(r,i){const s=[];let o=0;for(const a of r){let l=Rg(a,i.bu(o));null==l&&(l={nullValue:"NULL_VALUE"}),s.push(l),o++}return{arrayValue:{values:s}}}(n,e)}return function(r,i){if(null===(r=(0,K.Ku)(r)))return{nullValue:"NULL_VALUE"};if("number"==typeof r)return nZ(i.serializer,r);if("boolean"==typeof r)return{booleanValue:r};if("string"==typeof r)return{stringValue:r};if(r instanceof Date){const s=Di.fromDate(r);return{timestampValue:V0(i.serializer,s)}}if(r instanceof Di){const s=new Di(r.seconds,1e3*Math.floor(r.nanoseconds/1e3));return{timestampValue:V0(i.serializer,s)}}if(r instanceof ek)return{geoPointValue:{latitude:r.latitude,longitude:r.longitude}};if(r instanceof qu)return{bytesValue:MZ(i.serializer,r._byteString)};if(r instanceof di){const s=i.databaseId,o=r.firestore._databaseId;if(!o.isEqual(s))throw i.Du(`Document reference is for database ${o.projectId}/${o.database} but should be for database ${s.projectId}/${s.database}`);return{referenceValue:uU(r.firestore._databaseId||i.databaseId,r._key.path)}}throw i.Du(`Unsupported field value: ${Xx(r)}`)}(n,e)}function _te(n,e){const t={};return EX(n)?e.path&&e.path.length>0&&e.fieldMask.push(e.path):Of(n,(r,i)=>{const s=Rg(i,e.pu(r));null!=s&&(t[r]=s)}),{mapValue:{fields:t}}}function yte(n){return!("object"!=typeof n||null===n||n instanceof Array||n instanceof Date||n instanceof Di||n instanceof ek||n instanceof qu||n instanceof di||n instanceof kg)}function e4(n,e,t){if(!yte(t)||"object"!=typeof(i=t)||null===i||Object.getPrototypeOf(i)!==Object.prototype&&null!==Object.getPrototypeOf(i)){const r=Xx(t);throw e.Du("an object"===r?n+" a custom object":n+" "+r)}var i}function iI(n,e,t){if((e=(0,K.Ku)(e))instanceof rh)return e._internalPath;if("string"==typeof e)return rk(n,e);throw ik("Field path arguments must be of type string or ",n,!1,void 0,t)}const GLe=new RegExp("[~\\*/\\[\\]]");function rk(n,e,t){if(e.search(GLe)>=0)throw ik(`Invalid field path (${e}). Paths must not contain '~', '*', '/', '[', or ']'`,n,!1,void 0,t);try{return new rh(...e.split("."))._internalPath}catch{throw ik(`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,n,!1,void 0,t)}}function ik(n,e,t,r,i){const s=r&&!r.isEmpty(),o=void 0!==i;let a=`Function ${e}() called with invalid data`;t&&(a+=" (via `toFirestore()`)"),a+=". ";let l="";return(s||o)&&(l+=" (found",s&&(l+=` in field ${r}`),o&&(l+=` in document ${i}`),l+=")"),new He(xe.INVALID_ARGUMENT,a+n+l)}function vte(n,e){return n.some(t=>t.isEqual(e))}class sI{constructor(e,t,r,i,s){this._firestore=e,this._userDataWriter=t,this._key=r,this._document=i,this._converter=s}get id(){return this._key.path.lastSegment()}get ref(){return new di(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const e=new KLe(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(sk("DocumentSnapshot.get",e));if(null!==t)return this._userDataWriter.convertValue(t)}}}class KLe extends sI{data(){return super.data()}}function sk(n,e){return"string"==typeof e?rk(n,e):e instanceof rh?e._internalPath:e._delegate._internalPath}function wte(n){if("L"===n.limitType&&0===n.explicitOrderBy.length)throw new He(xe.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}class t4{}class oI extends t4{}function Wf(n,e,...t){let r=[];e instanceof t4&&r.push(e),r=r.concat(t),function(s){const o=s.filter(l=>l instanceof iw).length,a=s.filter(l=>l instanceof aI).length;if(o>1||o>0&&a>0)throw new He(xe.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(...)))`.")}(r);for(const i of r)n=i._apply(n);return n}class aI extends oI{constructor(e,t,r){super(),this._field=e,this._op=t,this._value=r,this.type="where"}static _create(e,t,r){return new aI(e,t,r)}_apply(e){const t=this._parse(e);return Mte(e._query,t),new po(e.firestore,e.converter,nU(e._query,t))}_parse(e){const t=Pg(e.firestore);return function(s,o,a,l,c,u,d){let f;
1if(c.isKeyField()){if("array-contains"===u||"array-contains-any"===u)throw new He(xe.INVALID_ARGUMENT,`Invalid Query. You can't perform '${u}' queries on documentId().`);if("in"===u||"not-in"===u){Ete(d,u);const _=[];for(const w of d)_.push(Tte(l,s,w));f={arrayValue:{values:_}}}else f=Tte(l,s,d)}else"in"!==u&&"not-in"!==u&&"array-contains-any"!==u||Ete(d,u),f=gte(a,"where",d,"in"===u||"not-in"===u);return Nn.create(c,u,f)}(e._query,0,t,e.firestore._databaseId,this._field,this._op,this._value)}}class iw extends t4{constructor(e,t){super(),this.type=e,this._queryConstraints=t}static _create(e,t){return new iw(e,t)}_parse(e){const t=this._queryConstraints.map(r=>r._parse(e)).filter(r=>r.getFilters().length>0);return 1===t.length?t[0]:vr.create(t,this._getOperator())}_apply(e){const t=this._parse(e);return 0===t.getFilters().length?e:(function(i,s){let o=i;const a=s.getFlattenedFilters();for(const l of a)Mte(o,l),o=nU(o,l)}(e._query,t),new po(e.firestore,e.converter,nU(e._query,t)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return"and"===this.type?"and":"or"}}class n4 extends oI{constructor(e,t){super(),this._field=e,this._direction=t,this.type="orderBy"}static _create(e,t){return new n4(e,t)}_apply(e){const t=function(i,s,o){if(null!==i.startAt)throw new He(xe.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==i.endAt)throw new He(xe.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");return new RM(s,o)}(e._query,this._field,this._direction);return new po(e.firestore,e.converter,function(i,s){const o=i.explicitOrderBy.concat([s]);return new Xd(i.path,i.collectionGroup,o,i.filters.slice(),i.limit,i.limitType,i.startAt,i.endAt)}(e._query,t))}}class ok extends oI{constructor(e,t,r){super(),this.type=e,this._limit=t,this._limitType=r}static _create(e,t,r){return new ok(e,t,r)}_apply(e){return new po(e.firestore,e.converter,Mx(e._query,this._limit,this._limitType))}}class ak extends oI{constructor(e,t,r){super(),this.type=e,this._docOrFields=t,this._inclusive=r}static _create(e,t,r){return new ak(e,t,r)}_apply(e){const t=bte(e,this.type,this._docOrFields,this._inclusive);return new po(e.firestore,e.converter,(s=t,new Xd((i=e._query).path,i.collectionGroup,i.explicitOrderBy.slice(),i.filters.slice(),i.limit,i.limitType,s,i.endAt)));var i,s}}class lk extends oI{constructor(e,t,r){super(),this.type=e,this._docOrFields=t,this._inclusive=r}static _create(e,t,r){return new lk(e,t,r)}_apply(e){const t=bte(e,this.type,this._docOrFields,this._inclusive);return new po(e.firestore,e.converter,(s=t,new Xd((i=e._query).path,i.collectionGroup,i.explicitOrderBy.slice(),i.filters.slice(),i.limit,i.limitType,i.startAt,s)));var i,s}}function bte(n,e,t,r){if(t[0]=(0,K.Ku)(t[0]),t[0]instanceof sI)return function(s,o,a,l,c){if(!l)throw new He(xe.NOT_FOUND,`Can't use a DocumentSnapshot that doesn't exist for ${a}().`);const u=[];for(const d of P0(s))if(d.field.isKeyField())u.push(wg(o,l.key));else{const f=l.data.field(d.field);if(_x(f))throw new He(xe.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+d.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===f){const _=d.field.canonicalString();throw new He(xe.INVALID_ARGUMENT,`Invalid query. You are trying to start or end a query using a document for which the field '${_}' (used as the orderBy) does not exist.`)}u.push(f)}return new jf(u,c)}(n._query,n.firestore._databaseId,e,t[0]._document,r);{const i=Pg(n.firestore);return function(o,a,l,c,u,d){const f=o.explicitOrderBy;if(u.length>f.length)throw new He(xe.INVALID_ARGUMENT,`Too many arguments provided to ${c}(). The number of arguments must be less than or equal to the number of orderBy() clauses`);const _=[];for(let w=0;w<u.length;w++){const M=u[w];if(f[w].field.isKeyField()){if("string"!=typeof M)throw new He(xe.INVALID_ARGUMENT,`Invalid query. Expected a string for document ID in ${c}(), but got a ${typeof M}`);if(!tU(o)&&-1!==M.indexOf("/"))throw new He(xe.INVALID_ARGUMENT,`Invalid query. When querying a collection and ordering by documentId(), the value passed to ${c}() must be a plain document ID, but '${M}
1' contains a slash.`);const S=o.path.child(On.fromString(M));if(!mt.isDocumentKey(S))throw new He(xe.INVALID_ARGUMENT,`Invalid query. When querying a collection group and ordering by documentId(), the value passed to ${c}() must result in a valid document path, but '${S}' is not because it contains an odd number of segments.`);const O=new mt(S);_.push(wg(a,O))}else{const S=gte(l,c,M);_.push(S)}}return new jf(_,d)}(n._query,n.firestore._databaseId,i,e,t,r)}}function Tte(n,e,t){if("string"==typeof(t=(0,K.Ku)(t))){if(""===t)throw new He(xe.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!tU(e)&&-1!==t.indexOf("/"))throw new He(xe.INVALID_ARGUMENT,`Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '${t}' contains a '/' character.`);const r=e.path.child(On.fromString(t));if(!mt.isDocumentKey(r))throw new He(xe.INVALID_ARGUMENT,`Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '${r}' is not because it has an odd number of segments (${r.length}).`);return wg(n,new mt(r))}if(t instanceof di)return wg(n,t._key);throw new He(xe.INVALID_ARGUMENT,`Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ${Xx(t)}.`)}function Ete(n,e){if(!Array.isArray(n)||0===n.length)throw new He(xe.INVALID_ARGUMENT,`Invalid Query. A non-empty array is required for '${e.toString()}' filters.`)}function Mte(n,e){const t=function(i,s){for(const o of i)for(const a of o.getFlattenedFilters())if(s.indexOf(a.op)>=0)return a.op;return null}(n.filters,function(i){switch(i){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 He(xe.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.`)}class r4{convertValue(e,t="none"){switch(Vf(e)){case 0:return null;case 1:return e.booleanValue;case 2:return $i(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(Jd(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 St()}}convertObject(e,t){return this.convertObjectMap(e.fields,t)}convertObjectMap(e,t="none"){const r={};return Of(e,(i,s)=>{r[i]=this.convertValue(s,t)}),r}convertGeoPoint(e){return new ek($i(e.latitude),$i(e.longitude))}convertArray(e,t){return(e.values||[]).map(r=>this.convertValue(r,t))}convertServerTimestamp(e,t){switch(t){case"previous":const r=yx(e);return null==r?null:this.convertValue(r,t);case"estimate":return this.convertTimestamp(AM(e));default:return null}}convertTimestamp(e){const t=Qd(e);return new Di(t.seconds,t.nanos)}convertDocumentKey(e,t){const r=On.fromString(e);Rt(NZ(r));const i=new Nf(r.get(1),r.get(3)),s=new mt(r.popFirst(5));return i.isEqual(t)||cs(`Document ${s} contains a document reference within a different database (${i.projectId}/${i.database}) which is not supported. It will be treated as a reference in the current database (${t.projectId}/${t.database}) instead.`),s}}function ck(n,e,t){let r;return r=n?t&&(t.merge||t.mergeFields)?n.toFirestore(e,t):n.toFirestore(e):e,r}class iOe extends r4{constructor(e){super(),this.firestore=e}convertBytes(e){return new qu(e)}convertReference(e){const t=this.convertDocumentKey(e,this.firestore._databaseId);return new di(this.firestore,null,t)}}class Lg{constructor(e,t){this.hasPendingWrites=e,this.fromCache=t}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class ih extends sI{constructor(e,t,r,i,s,o){super(e,t,r,i,o),this._firestore=e,this._firestoreImpl=e,this.metadata=s}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){const t=new lI(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 r=this._document.data.field(sk("DocumentSnapshot.get",e));if(null!==r)return this._userDataWriter.convertValue(r,t.serverTimestamps)}}}class lI extends ih{data(e={}){return super.data(e)}}
1class Gf{constructor(e,t,r,i){this._firestore=e,this._userDataWriter=t,this._snapshot=i,this.metadata=new Lg(i.hasPendingWrites,i.fromCache),this.query=r}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(r=>{e.call(t,new lI(this._firestore,this._userDataWriter,r.key,r,new Lg(this._snapshot.mutatedKeys.has(r.key),this._snapshot.fromCache),this.query.converter))})}docChanges(e={}){const t=!!e.includeMetadataChanges;if(t&&this._snapshot.excludesMetadataChanges)throw new He(xe.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(i,s){if(i._snapshot.oldDocs.isEmpty()){let o=0;return i._snapshot.docChanges.map(a=>({type:"added",doc:new lI(i._firestore,i._userDataWriter,a.doc.key,a.doc,new Lg(i._snapshot.mutatedKeys.has(a.doc.key),i._snapshot.fromCache),i.query.converter),oldIndex:-1,newIndex:o++}))}{let o=i._snapshot.oldDocs;return i._snapshot.docChanges.filter(a=>s||3!==a.type).map(a=>{const l=new lI(i._firestore,i._userDataWriter,a.doc.key,a.doc,new Lg(i._snapshot.mutatedKeys.has(a.doc.key),i._snapshot.fromCache),i.query.converter);let c=-1,u=-1;return 0!==a.type&&(c=o.indexOf(a.doc.key),o=o.delete(a.doc.key)),1!==a.type&&(o=o.add(a.doc),u=o.indexOf(a.doc.key)),{type:oOe(a.type),doc:l,oldIndex:c,newIndex:u}})}}(this,t),this._cachedChangesIncludeMetadataChanges=t),this._cachedChanges}}function oOe(n){switch(n){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return St()}}function Dte(n,e){return n instanceof ih&&e instanceof ih?n._firestore===e._firestore&&n._key.isEqual(e._key)&&(null===n._document?null===e._document:n._document.isEqual(e._document))&&n._converter===e._converter:n instanceof Gf&&e instanceof Gf&&n._firestore===e._firestore&&qj(n.query,e.query)&&n.metadata.isEqual(e.metadata)&&n._snapshot.isEqual(e._snapshot)}class Kf extends r4{constructor(e){super(),this.firestore=e}convertBytes(e){return new qu(e)}convertReference(e){const t=this.convertDocumentKey(e,this.firestore._databaseId);return new di(this.firestore,null,t)}}function Cte(n,e,t){n=In(n,di);const r=In(n.firestore,Lr),i=ck(n.converter,e,t);return sw(r,[nk(Pg(r),"setDoc",n._key,i,null!==n.converter,t).toMutation(n._key,Ci.none())])}function Ste(n,e,t,...r){n=In(n,di);const i=In(n.firestore,Lr),s=Pg(i);let o;return o="string"==typeof(e=(0,K.Ku)(e))||e instanceof rh?Zj(s,"updateDoc",n._key,e,t,r):Xj(s,"updateDoc",n._key,e),sw(i,[o.toMutation(n._key,Ci.exists(!0))])}function Ate(n,...e){var t,r,i;n=(0,K.Ku)(n);let s={includeMetadataChanges:!1,source:"default"},o=0;"object"!=typeof e[o]||Wj(e[o])||(s=e[o],o++);const a={includeMetadataChanges:s.includeMetadataChanges,source:s.source};if(Wj(e[o])){const d=e[o];e[o]=null===(t=d.next)||void 0===t?void 0:t.bind(d),e[o+1]=null===(r=d.error)||void 0===r?void 0:r.bind(d),e[o+2]=null===(i=d.complete)||void 0===i?void 0:i.bind(d)}let l,c,u;if(n instanceof di)c=In(n.firestore,Lr),u=k0(n._key.path),l={next:d=>{e[o]&&e[o](i4(c,n,d))},error:e[o+1],complete:e[o+2]};else{const d=In(n,po);c=In(d.firestore,Lr),u=d._query;const f=new Kf(c);l={next:_=>{e[o]&&e[o](new Gf(c,f,d,_))},error:e[o+1],complete:e[o+2]},wte(n._query)}return function(f,_,w,M){const S=new Kx(M),O=new lj(_,S,w);return f.asyncQueue.enqueueAndForget((0,ee.A)(function*(){return nj(yield rw(f),O)})),()=>{S.$a(),f.asyncQueue.enqueueAndForget((0,ee.A)(function*(){return ij(yield rw(f),O)}))}}(Si(c),u,a,l)}function sw(n,e){return function(r,i){const s=new Ls;return r.asyncQueue.enqueueAndForget((0,ee.A)(function*(){return function eLe(n,e,t){return gj.apply(this,arguments)}(yield Hj(r),i,s)})),s.promise}(Si(n),e)}function i4(n,e,t){const r=t.docs.get(e._key),i=new Kf(n);return new ih(n,i,e._key,r,new Lg(t.hasPendingWrites,t.fromCache),e.converter)}const MOe={maxAttempts:5};class xte{constructor(e,t){this._firestore=e,this._commitHandler=t,this._mutations=[],this._committed=!1,this._dataReader=Pg(e)}set(e,t,r){this._verifyNotCommitted();const i=Qf(e,this._firestore),s=ck(i.converter,t,r),o=nk(this._dataReader,"WriteBatch.set",i._key,s,null!==i.converter,r);return this._mutations.push(o.toMutation(i._key,Ci.none())),this}update(e,t,r,...i){this._verifyNotCommitted();const s=Qf(e,this._firestore);let o;
1return o="string"==typeof(t=(0,K.Ku)(t))||t instanceof rh?Zj(this._dataReader,"WriteBatch.update",s._key,t,r,i):Xj(this._dataReader,"WriteBatch.update",s._key,t),this._mutations.push(o.toMutation(s._key,Ci.exists(!0))),this}delete(e){this._verifyNotCommitted();const t=Qf(e,this._firestore);return this._mutations=this._mutations.concat(new F0(t._key,Ci.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 He(xe.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")}}function Qf(n,e){if((n=(0,K.Ku)(n)).firestore!==e)throw new He(xe.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return n}class IOe extends class{constructor(t,r){this._firestore=t,this._transaction=r,this._dataReader=Pg(t)}get(t){const r=Qf(t,this._firestore),i=new iOe(this._firestore);return this._transaction.lookup([r._key]).then(s=>{if(!s||1!==s.length)return St();const o=s[0];if(o.isFoundDocument())return new sI(this._firestore,i,o.key,o,r.converter);if(o.isNoDocument())return new sI(this._firestore,i,r._key,null,r.converter);throw St()})}set(t,r,i){const s=Qf(t,this._firestore),o=ck(s.converter,r,i),a=nk(this._dataReader,"Transaction.set",s._key,o,null!==s.converter,i);return this._transaction.set(s._key,a),this}update(t,r,i,...s){const o=Qf(t,this._firestore);let a;return a="string"==typeof(r=(0,K.Ku)(r))||r instanceof rh?Zj(this._dataReader,"Transaction.update",o._key,r,i,s):Xj(this._dataReader,"Transaction.update",o._key,r),this._transaction.update(o._key,a),this}delete(t){const r=Qf(t,this._firestore);return this._transaction.delete(r._key),this}}{constructor(e,t){super(e,t),this._firestore=e}get(e){const t=Qf(e,this._firestore),r=new Kf(this._firestore);return super.get(e).then(i=>new ih(this._firestore,r,t._key,i._document,new Lg(!1,!1),t.converter))}}function o4(n,e){if(void 0===e)return{merge:!1};if(void 0!==e.mergeFields&&void 0!==e.merge)throw new He("invalid-argument",`Invalid options passed to function ${n}(): You cannot specify both "merge" and "mergeFields".`);return e}function Lte(){if(typeof Uint8Array>"u")throw new He("unimplemented","Uint8Arrays are not available in this environment.")}function Ote(){if(!function sPe(){return typeof atob<"u"}())throw new He("unimplemented","Blobs are unavailable in Firestore in this environment.")}!function(e,t=!0){E0=ja.SDK_VERSION,(0,ja._registerComponent)(new Hc.uA("firestore",(r,{instanceIdentifier:i,options:s})=>{const o=r.getProvider("app").getImmediate(),a=new Lr(new Ake(r.getProvider("auth-internal")),new Pke(r.getProvider("app-check-internal")),function(c,u){if(!Object.prototype.hasOwnProperty.apply(c.options,["projectId"]))throw new He(xe.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new Nf(c.options.projectId,u)}(o,i),o);return s=Object.assign({useFetchStreams:t},s),a._setSettings(s),a},"PUBLIC").setMultipleInstances(!0)),(0,ja.registerVersion)(nX,"4.6.3",e),(0,ja.registerVersion)(nX,"4.6.3","esm2017")}();class cI{constructor(e){this._delegate=e}static fromBase64String(e){return Ote(),new cI(qu.fromBase64String(e))}static fromUint8Array(e){return Lte(),new cI(qu.fromUint8Array(e))}toBase64(){return Ote(),this._delegate.toBase64()}toUint8Array(){return Lte(),this._delegate.toUint8Array()}isEqual(e){return this._delegate.isEqual(e._delegate)}toString(){return"Blob(base64: "+this.toBase64()+")"}}function a4(n){return function OOe(n,e){if("object"!=typeof n||null===n)return!1;const t=n;for(const r of e)if(r in t&&"function"==typeof t[r])return!0;return!1}(n,["next","error","complete"])}class NOe{enableIndexedDbPersistence(e,t){return function NLe(n,e){hte(n=In(n,Lr));const t=Si(n);if(t._uninitializedComponentsProvider)throw new He(xe.FAILED_PRECONDITION,"SDK cache is already specified.");
1Ya("enableIndexedDbPersistence() will be deprecated in the future, you can use `FirestoreSettings.cache` instead.");const r=n._freezeSettings(),i=new tw;return dte(t,i,new Nj(i,r.cacheSizeBytes,e?.forceOwnership))}(e._delegate,{forceOwnership:t})}enableMultiTabIndexedDbPersistence(e){return function FLe(n){hte(n=In(n,Lr));const e=Si(n);if(e._uninitializedComponentsProvider)throw new He(xe.FAILED_PRECONDITION,"SDK cache is already specified.");Ya("enableMultiTabIndexedDbPersistence() will be deprecated in the future, you can use `FirestoreSettings.cache` instead.");const t=n._freezeSettings(),r=new tw;return dte(e,r,new qee(r,t.cacheSizeBytes))}(e._delegate)}clearIndexedDbPersistence(e){return function VLe(n){if(n._initialized&&!n._terminated)throw new He(xe.FAILED_PRECONDITION,"Persistence can only be cleared before a Firestore instance is initialized or after it is terminated.");const e=new Ls;return n._queue.enqueueAndForgetEvenWhileRestricted((0,ee.A)(function*(){try{yield(t=(0,ee.A)(function*(i){if(!ju.D())return Promise.resolve();const s=i+"main";yield ju.delete(s)}),function r(i){return t.apply(this,arguments)})(IU(n._databaseId,n._persistenceKey)),e.resolve()}catch(t){e.reject(t)}var t})),e.promise}(e._delegate)}}class Nte{constructor(e,t,r){this._delegate=t,this._persistenceProvider=r,this.INTERNAL={delete:()=>this.terminate()},e instanceof Nf||(this._appCompat=e)}get _databaseId(){return this._delegate._databaseId}settings(e){const t=this._delegate._getSettings();!e.merge&&t.host!==e.host&&Ya("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,r={}){!function ate(n,e,t,r={}){var i;const s=(n=In(n,tI))._getSettings(),o=`${e}:${t}`;if("firestore.googleapis.com"!==s.host&&s.host!==o&&Ya("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),n._setSettings(Object.assign(Object.assign({},s),{host:o,ssl:!1})),r.mockUserToken){let a,l;if("string"==typeof r.mockUserToken)a=r.mockUserToken,l=Ws.MOCK_USER;else{a=(0,K.Fy)(r.mockUserToken,null===(i=n._app)||void 0===i?void 0:i.options.projectId);const c=r.mockUserToken.sub||r.mockUserToken.user_id;if(!c)throw new He(xe.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");l=new Ws(c)}n._authCredentials=new Ske(new rX(a,l))}}(this._delegate,e,t,r)}enableNetwork(){return function jLe(n){return function bLe(n){return n.asyncQueue.enqueue((0,ee.A)(function*(){const e=yield Kee(n),t=yield Qee(n);return e.setNetworkEnabled(!0),function(i){const s=lt(i);return s.M_.delete(0),eI(s)}(t)}))}(Si(n=In(n,Lr)))}(this._delegate)}disableNetwork(){return function YLe(n){return function TLe(n){return n.asyncQueue.enqueue((0,ee.A)(function*(){const e=yield Kee(n),t=yield Qee(n);return e.setNetworkEnabled(!1),(r=(0,ee.A)(function*(s){const o=lt(s);o.M_.add(0),yield q0(o),o.N_.set("Offline")}),function i(s){return r.apply(this,arguments)})(t);var r}))}(Si(n=In(n,Lr)))}(this._delegate)}enablePersistence(e){let t=!1,r=!1;return e&&(t=!!e.synchronizeTabs,r=!!e.experimentalForceOwningTab,nte("synchronizeTabs",t,"experimentalForceOwningTab",r)),t?this._persistenceProvider.enableMultiTabIndexedDbPersistence(this):this._persistenceProvider.enableIndexedDbPersistence(this,r)}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 ULe(n){return function(t){const r=new Ls;return t.asyncQueue.enqueueAndForget((0,ee.A)(function*(){return function iLe(n,e){return bj.apply(this,arguments)}(yield Hj(t),r)})),r.promise}(Si(n=In(n,Lr)))}(this._delegate)}onSnapshotsInSync(e){return function mOe(n,e){return function DLe(n,e){const t=new Kx(e);return n.asyncQueue.enqueueAndForget((0,ee.A)(function*(){return i=yield rw(n),s=t,lt(i).z_.add(s),void s.next();var i,s}
1)),()=>{t.$a(),n.asyncQueue.enqueueAndForget((0,ee.A)(function*(){return i=yield rw(n),s=t,void lt(i).z_.delete(s);var i,s}))}}(Si(n=In(n,Lr)),Wj(e)?e:{next:e})}(this._delegate,e)}get app(){if(!this._appCompat)throw new He("failed-precondition","Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._appCompat}collection(e){try{return new ow(this,lte(this._delegate,e))}catch(t){throw ca(t,"collection()","Firestore.collection()")}}doc(e){try{return new ic(this,Zx(this._delegate,e))}catch(t){throw ca(t,"doc()","Firestore.doc()")}}collectionGroup(e){try{return new ua(this,function PLe(n,e){if(n=In(n,tI),$j("collectionGroup","collection id",e),e.indexOf("/")>=0)throw new He(xe.INVALID_ARGUMENT,`Invalid collection ID '${e}' passed to function collectionGroup(). Collection IDs must not contain '/'.`);return new po(n,null,(r=e,new Xd(On.emptyPath(),r)));var r}(this._delegate,e))}catch(t){throw ca(t,"collectionGroup()","Firestore.collectionGroup()")}}runTransaction(e){return function DOe(n,e,t){n=In(n,Lr);const r=Object.assign(Object.assign({},MOe),t);return function(s){if(s.maxAttempts<1)throw new He(xe.INVALID_ARGUMENT,"Max attempts must be at least 1")}(r),function(s,o,a){const l=new Ls;return s.asyncQueue.enqueueAndForget((0,ee.A)(function*(){const c=yield function Jee(n){return Jx(n).then(e=>e.datastore)}(s);new vLe(s.asyncQueue,c,a,o,l).Xa()})),l.promise}(Si(n),i=>e(new IOe(n,i)),r)}(this._delegate,t=>e(new Fte(this,t)))}batch(){return Si(this._delegate),new Vte(new xte(this._delegate,e=>sw(this._delegate,e)))}loadBundle(e){return function BLe(n,e){const t=Si(n=In(n,Lr)),r=new LLe;return function CLe(n,e,t,r){const i=function(o,a){let l;return l="string"==typeof o?gZ().encode(o):o,u=function(u,d){if(u instanceof Uint8Array)return Wee(u,d);if(u instanceof ArrayBuffer)return Wee(new Uint8Array(u),d);if(u instanceof ReadableStream)return u.getReader();throw new Error("Source of `toByteStreamReader` has to be a ArrayBuffer or ReadableStream")}(l),new _Le(u,a);var u}(t,ZM(e));n.asyncQueue.enqueueAndForget((0,ee.A)(function*(){!function mLe(n,e,t){const r=lt(n);var i;(i=(0,ee.A)(function*(o,a,l){try{const c=yield a.getMetadata();if(yield function(w,M){const S=lt(w),O=us(M.createTime);return S.persistence.runTransaction("hasNewerBundle","readonly",N=>S.$r.getBundleMetadata(N,M.id)).then(N=>!!N&&N.createTime.compareTo(O)>=0)}(o.localStore,c))return yield a.close(),l._completeWith({taskState:"Success",documentsLoaded:(w=c).totalDocuments,bytesLoaded:w.totalBytes,totalDocuments:w.totalDocuments,totalBytes:w.totalBytes}),Promise.resolve(new Set);l._updateProgress(Nee(c));const u=new qRe(c,o.localStore,a.serializer);let d=yield a.qa();for(;d;){const _=yield u._a(d);_&&l._updateProgress(_),d=yield a.qa()}const f=yield u.complete();return yield nh(o,f.ca,void 0),yield function(w,M){const S=lt(w);return S.persistence.runTransaction("Save bundle","readwrite",O=>S.$r.saveBundleMetadata(O,M))}(o.localStore,c),l._completeWith(f.progress),Promise.resolve(f.ua)}catch(c){return Ya("SyncEngine",`Loading bundle failed with ${c}`),l._failWith(c),Promise.resolve(new Set)}var w}),function s(o,a,l){return i.apply(this,arguments)})(r,e,t).then(i=>{r.sharedClientState.notifyBundleLoaded(i)})}(yield Hj(n),i,r)}))}(t,n._databaseId,e,r),r}(this._delegate,e)}namedQuery(e){return function HLe(n,e){return function SLe(n,e){return n.asyncQueue.enqueue((0,ee.A)(function*(){return function(r,i){const s=lt(r);return s.persistence.runTransaction("Get named query","readonly",o=>s.$r.getNamedQuery(o,i))}(yield nw(n),e)}))}(Si(n=In(n,Lr)),e).then(t=>t?new po(n,null,t.query):null)}(this._delegate,e).then(t=>t?new ua(this,t):null)}}class dk extends r4{constructor(e){super(),this.firestore=e}convertBytes(e){return new cI(new qu(e))}convertReference(e){const t=this.convertDocumentKey(e,this.firestore._databaseId);return ic.forKey(t,this.firestore,null)}}class Fte{constructor(e,t){this._firestore=e,this._delegate=t,this._userDataWriter=new dk(e)}get(e){const t=Ng(e);return this._delegate.get(t).then(r=>new uI(this._firestore,new ih(this._firestore._delegate,this._userDataWriter,r._key,r._document,r.metadata,t.converter)))}set(e,t,r){const i=Ng(e);return r?(o4("Transaction.set",r),this._delegate.set(i,t,r)):this._delegate.set(i,t),this}update(e,t,r,...i){const s=Ng(e);return 2===arguments.length?this._delegate.update(s,t):this._delegate.update(s,t,r,...i),this}delete(e){const t=Ng(e);return this._delegate.delete(t),this}}class Vte{constructor(e){this._delegate=e}set(e,t,r){const i=Ng(e);return r?(o4("WriteBatch.set",r),this._delegate.set(i,t,r)):this._delegate.set(i,t),this}update(e,t,r,...i){const s=Ng(e);return 2===arguments.length?this._delegate.update(s,t):this._delegate.update(s,t,r,...i),this}delete(e){const t=Ng(e);return this._delegate.delete(t),this}commit(){return this._delegate.commit()}}class Og{constructor(e,t,r){this._firestore=e,this._userDataWriter=t,this._delegate=r}fromFirestore(e,t){const r=new lI(this._firestore._delegate,this._userDataWriter,e._key,e._document,e.metadata,null);return this._delegate.fromFirestore(new dI(this._firestore,r),t??{})}toFirestore(e,t){return t?this._delegate.toFirestore(e,t):this._delegate.toFirestore(e)}static getInstance(e,t){const r=Og.INSTANCES;let i=r.get(e);i||(i=new WeakMap,r.set(e,i));let s=i.get(t);return s||(s=new Og(e,new dk(e),t),i.set(t,s)),s}}Og.INSTANCES=new WeakMap;class ic{constructor(e,t){this.firestore=e,this._delegate=t,this._userDataWriter=new dk(e)}static forPath(e,t,r){if(e.length%2!=0)throw new He("invalid-argument",`Invalid document reference. Document references must have an even number of segments, but ${e.canonicalString()} has ${e.length}`);return new ic(t,new di(t._delegate,r,new mt(e)))}static forKey(e,t,r){return new ic(t,new di(t._delegate,r,e))}get id(){return this._delegate.id}get parent(){return new ow(this.firestore,this._delegate.parent)}get path(){return this._delegate.path}collection(e){try{return new ow(this.firestore,lte(this._delegate,e))}catch(t){throw ca(t,"collection()","DocumentReference.collection()")}}isEqual(e){return(e=(0,K.Ku)(e))instanceof di&&cte(this._delegate,e)}set(e,t){t=o4("DocumentReference.set",t);try{return t?Cte(this._delegate,e,t):Cte(this._delegate,e)}catch(r){throw ca(r,"setDoc()","DocumentReference.set()")}}update(e,t,...r){try{return 1===arguments.length?Ste(this._delegate,e):Ste(this._delegate,e,t,...r)}
1catch(i){throw ca(i,"updateDoc()","DocumentReference.update()")}}delete(){return function fOe(n){return sw(In(n.firestore,Lr),[new F0(n._key,Ci.none())])}(this._delegate)}onSnapshot(...e){const t=Ute(e),r=jte(e,i=>new uI(this.firestore,new ih(this.firestore._delegate,this._userDataWriter,i._key,i._document,i.metadata,this._delegate.converter)));return Ate(this._delegate,t,r)}get(e){let t;return t="cache"===e?.source?function lOe(n){n=In(n,di);const e=In(n.firestore,Lr),t=Si(e),r=new Kf(e);return function ELe(n,e){const t=new Ls;return n.asyncQueue.enqueueAndForget((0,ee.A)(function*(){return(r=(0,ee.A)(function*(s,o,a){try{const l=yield function(u,d){const f=lt(u);return f.persistence.runTransaction("read document","readonly",_=>f.localDocuments.getDocument(_,d))}(s,o);l.isFoundDocument()?a.resolve(l):l.isNoDocument()?a.resolve(null):a.reject(new He(xe.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(l){const c=Q0(l,`Failed to get document '${o} from cache`);a.reject(c)}}),function i(s,o,a){return r.apply(this,arguments)})(yield nw(n),e,t);var r})),t.promise}(t,n._key).then(i=>new ih(e,r,n._key,i,new Lg(null!==i&&i.hasLocalMutations,!0),n.converter))}(this._delegate):"server"===e?.source?function cOe(n){n=In(n,di);const e=In(n.firestore,Lr);return Xee(Si(e),n._key,{source:"server"}).then(t=>i4(e,n,t))}(this._delegate):function aOe(n){n=In(n,di);const e=In(n.firestore,Lr);return Xee(Si(e),n._key).then(t=>i4(e,n,t))}(this._delegate),t.then(r=>new uI(this.firestore,new ih(this.firestore._delegate,this._userDataWriter,r._key,r._document,r.metadata,this._delegate.converter)))}withConverter(e){return new ic(this.firestore,this._delegate.withConverter(e?Og.getInstance(this.firestore,e):null))}}function ca(n,e,t){return n.message=n.message.replace(e,t),n}function Ute(n){for(const e of n)if("object"==typeof e&&!a4(e))return e;return{}}function jte(n,e){var t,r;let i;return i=a4(n[0])?n[0]:a4(n[1])?n[1]:"function"==typeof n[0]?{next:n[0],error:n[1],complete:n[2]}:{next:n[1],error:n[2],complete:n[3]},{next:s=>{i.next&&i.next(e(s))},error:null===(t=i.error)||void 0===t?void 0:t.bind(i),complete:null===(r=i.complete)||void 0===r?void 0:r.bind(i)}}class uI{constructor(e,t){this._firestore=e,this._delegate=t}get ref(){return new ic(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 Dte(this._delegate,e._delegate)}}class dI extends uI{data(e){const t=this._delegate.data(e);return this._delegate._converter||function Dke(n,e){n||St()}(void 0!==t),t}}class ua{constructor(e,t){this.firestore=e,this._delegate=t,this._userDataWriter=new dk(e)}where(e,t,r){try{return new ua(this.firestore,Wf(this._delegate,function QLe(n,e,t){const r=e,i=sk("where",n);return aI._create(i,r,t)}(e,t,r)))}catch(i){throw ca(i,/(orderBy|where)\(\)/,"Query.$1()")}}orderBy(e,t){try{return new ua(this.firestore,Wf(this._delegate,function JLe(n,e="asc"){const t=e,r=sk("orderBy",n);return n4._create(r,t)}(e,t)))}catch(r){throw ca(r,/(orderBy|where)\(\)/,"Query.$1()")}}limit(e){try{return new ua(this.firestore,Wf(this._delegate,function XLe(n){return ste("limit",n),ok._create("limit",n,"F")}(e)))}catch(t){throw ca(t,"limit()","Query.limit()")}}limitToLast(e){try{return new ua(this.firestore,Wf(this._delegate,function ZLe(n){return ste("limitToLast",n),ok._create("limitToLast",n,"L")}(e)))}catch(t){throw ca(t,"limitToLast()","Query.limitToLast()")}}startAt(...e){try{return new ua(this.firestore,Wf(this._delegate,function eOe(...n){return ak._create("startAt",n,!0)}(...e)))}catch(t){throw ca(t,"startAt()","Query.startAt()")}}startAfter(...e){try{return new ua(this.firestore,Wf(this._delegate,function tOe(...n){return ak._create("startAfter",n,!1)}(...e)))}catch(t){throw ca(t,"startAfter()","Query.startAfter()")}}endBefore(...e){try{return new ua(this.firestore,Wf(this._delegate,function nOe(...n){return lk._create("endBefore",n,!1)}(...e)))}catch(t){throw ca(t,"endBefore()","Query.endBefore()")}}endAt(...e){try{return new ua(this.firestore,Wf(this._delegate,function rOe(...n){return lk._create("endAt",n,!0)}(...e)))}catch(t){throw ca(t,"endAt()","Query.endAt()")}}isEqual(e){return qj(this._delegate,e._delegate)}get(e){let t;return t="cache"===e?.source?function dOe(n){n=In(n,po);const e=In(n.firestore,Lr),t=Si(e),r=new Kf(e);return function MLe(n,e){const t=new Ls;return n.asyncQueue.enqueueAndForget((0,ee.A)(function*(){return(r=(0,ee.A)(function*(s,o,a){try{const l=yield Yx(s,o,!0),c=new Uee(o,l.hs),u=c.da(l.documents),d=c.applyChanges(u,!1);a.resolve(d.snapshot)}catch(l){const c=Q0(l,`Failed to execute query '${o} against cache`);a.reject(c)}}),function i(s,o,a){return r.apply(this,arguments)})(yield nw(n),e,t);var r})),t.promise}
1(t,n._query).then(i=>new Gf(e,r,n,i))}(this._delegate):"server"===e?.source?function hOe(n){n=In(n,po);const e=In(n.firestore,Lr),t=Si(e),r=new Kf(e);return Zee(t,n._query,{source:"server"}).then(i=>new Gf(e,r,n,i))}(this._delegate):function uOe(n){n=In(n,po);const e=In(n.firestore,Lr),t=Si(e),r=new Kf(e);return wte(n._query),Zee(t,n._query).then(i=>new Gf(e,r,n,i))}(this._delegate),t.then(r=>new l4(this.firestore,new Gf(this.firestore._delegate,this._userDataWriter,this._delegate,r._snapshot)))}onSnapshot(...e){const t=Ute(e),r=jte(e,i=>new l4(this.firestore,new Gf(this.firestore._delegate,this._userDataWriter,this._delegate,i._snapshot)));return Ate(this._delegate,t,r)}withConverter(e){return new ua(this.firestore,this._delegate.withConverter(e?Og.getInstance(this.firestore,e):null))}}class VOe{constructor(e,t){this._firestore=e,this._delegate=t}get type(){return this._delegate.type}get doc(){return new dI(this._firestore,this._delegate.doc)}get oldIndex(){return this._delegate.oldIndex}get newIndex(){return this._delegate.newIndex}}class l4{constructor(e,t){this._firestore=e,this._delegate=t}get query(){return new ua(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 dI(this._firestore,e))}docChanges(e){return this._delegate.docChanges(e).map(t=>new VOe(this._firestore,t))}forEach(e,t){this._delegate.forEach(r=>{e.call(t,new dI(this._firestore,r))})}isEqual(e){return Dte(this._delegate,e._delegate)}}class ow extends ua{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 ic(this.firestore,e):null}doc(e){try{return new ic(this.firestore,void 0===e?Zx(this._delegate):Zx(this._delegate,e))}catch(t){throw ca(t,"doc()","CollectionReference.doc()")}}add(e){return function pOe(n,e){const t=In(n.firestore,Lr),r=Zx(n),i=ck(n.converter,e);return sw(t,[nk(Pg(n.firestore),"addDoc",r._key,i,null!==n.converter,{}).toMutation(r._key,Ci.exists(!1))]).then(()=>r)}(this._delegate,e).then(t=>new ic(this.firestore,t))}isEqual(e){return cte(this._delegate,e._delegate)}withConverter(e){return new ow(this.firestore,this._delegate.withConverter(e?Og.getInstance(this.firestore,e):null))}}function Ng(n){return In(n,di)}class c4{constructor(...e){this._delegate=new rh(...e)}static documentId(){return new c4(ci.keyField().canonicalString())}isEqual(e){return(e=(0,K.Ku)(e))instanceof rh&&this._delegate._internalPath.isEqual(e._internalPath)}}class Fg{constructor(e){this._delegate=e}static serverTimestamp(){const e=function SOe(){return new Gj("serverTimestamp")}();return e._methodName="FieldValue.serverTimestamp",new Fg(e)}static delete(){const e=function COe(){return new rI("deleteField")}();return e._methodName="FieldValue.delete",new Fg(e)}static arrayUnion(...e){const t=function AOe(...n){return new Kj("arrayUnion",n)}(...e);return t._methodName="FieldValue.arrayUnion",new Fg(t)}static arrayRemove(...e){const t=function xOe(...n){return new Qj("arrayRemove",n)}(...e);return t._methodName="FieldValue.arrayRemove",new Fg(t)}static increment(e){const t=function kOe(n){return new Jj("increment",n)}(e);return t._methodName="FieldValue.increment",new Fg(t)}isEqual(e){return this._delegate.isEqual(e._delegate)}}const UOe={Firestore:Nte,GeoPoint:ek,Timestamp:Di,Blob:cI,Transaction:Fte,WriteBatch:Vte,DocumentReference:ic,DocumentSnapshot:uI,Query:ua,QueryDocumentSnapshot:dI,QuerySnapshot:l4,CollectionReference:ow,FieldPath:c4,FieldValue:Fg,setLogLevel:function FOe(n){!function Ike(n){Pf.setLogLevel(n)}(n)},CACHE_SIZE_UNLIMITED:-1};function Yte(n,e){return function BOe(n,e=ax){return new Wn(t=>{let r;return null!=e?e.schedule(()=>{r=n.onSnapshot({includeMetadataChanges:!0},t)}):r=n.onSnapshot({includeMetadataChanges:!0},t),()=>{r?.()}})}(n,e)}function u4(n,e){return Yte(n,e).pipe(st(t=>({payload:t,type:"query"})))}!function YOe(n){(function jOe(n,e){n.INTERNAL.registerComponent(new Hc.uA("firestore-compat",t=>{const r=t.getProvider("app-compat").getImmediate(),i=t.getProvider("firestore").getImmediate();return e(r,i)},"PUBLIC").setServiceProps(Object.assign({},UOe)))})(n,(e,t)=>new Nte(e,t,new NOe)),n.registerVersion("@firebase/firestore-compat","0.3.32")}(bl.A);class Bte{ref;afs;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 r=this.ref.collection(e),{ref:i,query:s}=Gte(r,t);return new $te(i,s,this.afs)}
1snapshotChanges(){return function HOe(n,e){return Yte(n,e).pipe(R1(void 0),YV(),st(t=>{const[r,i]=t;return i.exists?r?.exists?{payload:i,type:"modified"}:{payload:i,type:"added"}:{payload:i,type:"removed"}}))}(this.ref,this.afs.schedulers.outsideAngular).pipe(ls)}valueChanges(e={}){return this.snapshotChanges().pipe(st(({payload:t})=>e.idField?{...t.data(),[e.idField]:t.id}:t.data()))}get(e){return pr(this.ref.get(e)).pipe(ls)}}function hk(n,e){return u4(n,e).pipe(R1(void 0),YV(),st(t=>{const[r,i]=t,s=i.payload.docChanges(),o=s.map(a=>({type:a.type,payload:a}));return r&&JSON.stringify(r.payload.metadata)!==JSON.stringify(i.payload.metadata)&&i.payload.docs.forEach((a,l)=>{const c=s.find(d=>d.doc.ref.isEqual(a.ref)),u=r?.payload.docs.find(d=>d.ref.isEqual(a.ref));c&&JSON.stringify(c.doc.metadata)===JSON.stringify(a.metadata)||!c&&u&&JSON.stringify(u.metadata)===JSON.stringify(a.metadata)||o.push({type:"modified",payload:{oldIndex:l,newIndex:l,type:"modified",doc:a}})}),o}))}function Hte(n,e,t){return hk(n,t).pipe(s0((r,i)=>function zOe(n,e,t){return e.forEach(r=>{t.indexOf(r.type)>-1&&(n=function $Oe(n,e){switch(e.type){case"added":if(!n[e.newIndex]||!n[e.newIndex].doc.ref.isEqual(e.doc.ref))return d4(n,e.newIndex,0,e);break;case"modified":if(null==n[e.oldIndex]||n[e.oldIndex].doc.ref.isEqual(e.doc.ref)){if(e.oldIndex!==e.newIndex){const t=n.slice();return t.splice(e.oldIndex,1),t.splice(e.newIndex,0,e),t}return d4(n,e.newIndex,1,e)}break;case"removed":if(n[e.oldIndex]&&n[e.oldIndex].doc.ref.isEqual(e.doc.ref))return d4(n,e.oldIndex,1)}return n}(n,r))}),n}(r,i.map(s=>s.payload),e),[]),dx(),st(r=>r.map(i=>({type:i.type,payload:i}))))}function d4(n,e,t,...r){const i=n.slice();return i.splice(e,t,...r),i}function zte(n){return(!n||0===n.length)&&(n=["added","removed","modified"]),n}class $te{ref;query;afs;constructor(e,t,r){this.ref=e,this.query=t,this.afs=r}stateChanges(e){let t=hk(this.query,this.afs.schedulers.outsideAngular);return e&&e.length>0&&(t=t.pipe(st(r=>r.filter(i=>e.indexOf(i.type)>-1)))),t.pipe(R1(void 0),YV(),Ua(([r,i])=>i.length>0||!r),st(([,r])=>r),ls)}auditTrail(e){return this.stateChanges(e).pipe(s0((t,r)=>[...t,...r],[]))}snapshotChanges(e){const t=zte(e);return Hte(this.query,t,this.afs.schedulers.outsideAngular).pipe(ls)}valueChanges(e={}){return u4(this.query,this.afs.schedulers.outsideAngular).pipe(st(t=>t.payload.docs.map(r=>e.idField?{...r.data(),[e.idField]:r.id}:r.data())),ls)}get(e){return pr(this.query.get(e)).pipe(ls)}add(e){return this.ref.add(e)}doc(e){return new Bte(this.ref.doc(e),this.afs)}}class qOe{query;afs;constructor(e,t){this.query=e,this.afs=t}stateChanges(e){return e&&0!==e.length?hk(this.query,this.afs.schedulers.outsideAngular).pipe(st(t=>t.filter(r=>e.indexOf(r.type)>-1)),Ua(t=>t.length>0),ls):hk(this.query,this.afs.schedulers.outsideAngular).pipe(ls)}auditTrail(e){return this.stateChanges(e).pipe(s0((t,r)=>[...t,...r],[]))}snapshotChanges(e){const t=zte(e);return Hte(this.query,t,this.afs.schedulers.outsideAngular).pipe(ls)}valueChanges(e={}){return u4(this.query,this.afs.schedulers.outsideAngular).pipe(st(r=>r.payload.docs.map(i=>e.idField?{[e.idField]:i.id,...i.data()}:i.data())),ls)}get(e){return pr(this.query.get(e)).pipe(ls)}}const qte=new $e("angularfire2.enableFirestorePersistence"),Wte=new $e("angularfire2.firestore.persistenceSettings"),WOe=new $e("angularfire2.firestore.settings"),GOe=new $e("angularfire2.firestore.use-emulator");function Gte(n,e=(t=>t)){return{query:e(n),ref:n}}let Jf=(()=>{class n{schedulers;firestore;persistenceEnabled$;constructor(t,r,i,s,o,a,l,c,u,d,f,_,w,M,S,O,N){this.schedulers=l;const j=EM(t,a,r),Z=u;d&&UV(j,a,f,w,M,S,_,O),[this.firestore,this.persistenceEnabled$]=ux(`${j.name}.firestore`,"AngularFirestore",j.name,()=>{const ie=a.runOutsideAngular(()=>j.firestore());if(s&&ie.settings(s),Z&&ie.useEmulator(...Z),i&&!C1(o)){const le=()=>{try{return pr(ie.enablePersistence(c||void 0).then(()=>!0,()=>!1))}catch(Q){return typeof console<"u"&&console.warn(Q),jt(!1)}};return[ie,a.runOutsideAngular(le)]}return[ie,jt(!1)]},[s,Z,i])}collection(t,r){let i;i="string"==typeof t?this.firestore.collection(t):t;const{ref:s,query:o}=Gte(i,r),a=this.schedulers.ngZone.run(()=>s);return new $te(a,o,this)}collectionGroup(t,r){const i=r||(o=>o),s=this.firestore.collectionGroup(t);return new qOe(i(s),this)}doc(t){let r;r="string"==typeof t?this.firestore.doc(t):t;const i=this.schedulers.ngZone.run(()=>r);return new Bte(i,this)}createId(){return this.firestore.collection("_").doc().id}static \u0275fac=function(r){return new(r||n)(ve(b0),ve(T0,8),ve(qte,8),ve(WOe,8),ve(La),ve(vn),ve(cx),ve(Wte,8),ve(GOe,8),ve(mg,8),ve(RV,8),ve(LV,8),ve(OV,8),ve(NV,8),ve(FV,8),ve(VV,8),ve(lx,8))};static \u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"any"})}return n})(),KOe=(()=>{class n{constructor(){bl.A.registerVersion("angularfire",y0.full,"fst-compat")}static enablePersistence(t){return{ngModule:n,providers:[{provide:qte,useValue:!0},{provide:Wte,useValue:t}]}}static \u0275fac=function(r){return new(r||n)};static \u0275mod=A({type:n});static \u0275inj=ai({providers:[Jf]})}return n})(),QOe=(()=>{class n{constructor(t){this.firestore=t}
1getRequest(t){var r=this;return(0,ee.A)(function*(){try{const i=yield Ke(r.firestore.doc(`requests/${t}`).get());return!!i.exists&&i.data()}catch(i){throw console.error("Error fetching document:",i),i}})()}setRequest(t,r){return this.firestore.collection("requests").doc(t).set(r).then(i=>!0).catch(i=>!1)}static#e=this.\u0275fac=function(r){return new(r||n)(ve(Jf))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Kte=(()=>{class n{constructor(t){this.firebaseRequest=t}getRequest(t){return this.firebaseRequest.getRequest(t).then(r=>!1!==r&&jV.fromObject(r))}setRequest(t,r){return this.firebaseRequest.setRequest(t,r)}static#e=this.\u0275fac=function(r){return new(r||n)(ve(QOe))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),h4=(()=>{class n{constructor(t,r){this.firebaseAuth=t,this.signupRequest=r}signIn(t,r){return this.firebaseAuth.signIn(t,r)}signOut(){return this.firebaseAuth.signOut()}signUp(t,r){return this.firebaseAuth.registerUser(t,r)}changePassword(t){return this.firebaseAuth.changePassword(t)}static#e=this.\u0275fac=function(r){return new(r||n)(ve(Eke),ve(Kte))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),f4=(()=>{class n{constructor(t,r,i){this.http=t,this.authRepo=r,this.requestRepo=i}getRequest(t){var r=this;return(0,ee.A)(function*(){return r.requestRepo.getRequest(t)})()}getSignInResult(t,r){var i=this;return(0,ee.A)(function*(){return i.authRepo.signIn(t,r)})()}signUpResult(t,r,i,s){var o=this;return(0,ee.A)(function*(){return o.requestRepo.setRequest(i,{restaurant:t,owner:r,email:i,password:s,approved:!1}).then(()=>o.authRepo.signUp(i,s))})()}static#e=this.\u0275fac=function(r){return new(r||n)(ve(Bc),ve(h4),ve(Kte))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Vg=(()=>{class n{constructor(t){this.router=t,this.status=null!=localStorage.getItem("userID"),this.displayMsg={display:"none"}}login(t){console.log(t),!0===t?this.status=!0:(this.status=!1,this.router.navigateByUrl(""))}static#e=this.\u0275fac=function(r){return new(r||n)(ve(bs))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Qte=(()=>{class n{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static#e=this.\u0275fac=function(r){return new(r||n)(_e(xu),_e(Qn))};static#t=this.\u0275dir=V({type:n})}return n})(),Ug=(()=>{class n extends Qte{static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=qs(n)))(i||n)}})();static#t=this.\u0275dir=V({type:n,features:[Mn]})}return n})();const Wu=new $e(""),XOe={provide:Wu,useExisting:sr(()=>fk),multi:!0};let fk=(()=>{class n extends Ug{writeValue(t){this.setProperty("checked",t)}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=qs(n)))(i||n)}})();static#t=this.\u0275dir=V({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,i){1&r&&Qe("change",function(o){return i.onChange(o.target.checked)})("blur",function(){return i.onTouched()})},features:[Ii([XOe]),Mn]})}return n})();const ZOe={provide:Wu,useExisting:sr(()=>aw),multi:!0},tNe=new $e("");let aw=(()=>{class n extends Qte{constructor(t,r,i){super(t,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function eNe(){const n=If()?If().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static#e=this.\u0275fac=function(r){return new(r||n)(_e(xu),_e(Qn),_e(tNe,8))};static#t=this.\u0275dir=V({type:n,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(r,i){1&r&&Qe("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[Ii([ZOe]),Mn]})}return n})();const Fo=new $e(""),Zf=new $e("");function ene(n){return function Xf(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}(n.value)?{required:!0}:null}function pk(n){return null}function one(n){return null!=n}function ane(n){return qE(n)?pr(n):n}function lne(n){let e={};
1return n.forEach(t=>{e=null!=t?{...e,...t}:e}),0===Object.keys(e).length?null:e}function cne(n,e){return e.map(t=>t(n))}function une(n){return n.map(e=>function rNe(n){return!n.validate}(e)?e:t=>e.validate(t))}function p4(n){return null!=n?function dne(n){if(!n)return null;const e=n.filter(one);return 0==e.length?null:function(t){return lne(cne(t,e))}}(une(n)):null}function m4(n){return null!=n?function hne(n){if(!n)return null;const e=n.filter(one);return 0==e.length?null:function(t){return function JOe(...n){const e=GF(n),{args:t,keys:r}=rQ(n),i=new Wn(s=>{const{length:o}=t;if(!o)return void s.complete();const a=new Array(o);let l=o,c=o;for(let u=0;u<o;u++){let d=!1;Va(t[u]).subscribe(Tt(s,f=>{d||(d=!0,c--),a[u]=f},()=>l--,void 0,()=>{(!l||!d)&&(c||s.next(r?sQ(r,a):a),s.complete())}))}});return e?i.pipe(iQ(e)):i}(cne(t,e).map(ane)).pipe(st(lne))}}(une(n)):null}function fne(n,e){return null===n?[e]:Array.isArray(n)?[...n,e]:[n,e]}function pne(n){return n._rawValidators}function mne(n){return n._rawAsyncValidators}function g4(n){return n?Array.isArray(n)?n:[n]:[]}function mk(n,e){return Array.isArray(n)?n.includes(e):n===e}function gne(n,e){const t=g4(e);return g4(n).forEach(i=>{mk(t,i)||t.push(i)}),t}function _ne(n,e){return g4(e).filter(t=>!mk(n,t))}class yne{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(e){this._rawValidators=e||[],this._composedValidatorFn=p4(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=m4(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}class da extends yne{get formDirective(){return null}get path(){return null}}class ep extends yne{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class vne{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let jg=(()=>{class n extends vne{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||n)(_e(ep,2))};static#t=this.\u0275dir=V({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){2&r&&GA("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[Mn]})}return n})(),Yg=(()=>{class n extends vne{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||n)(_e(da,10))};static#t=this.\u0275dir=V({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,i){2&r&&GA("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[Mn]})}return n})();const hI="VALID",_k="INVALID",lw="PENDING",fI="DISABLED";class cw{}class bne extends cw{constructor(e,t){super(),this.value=e,this.source=t}}class v4 extends cw{constructor(e,t){super(),this.pristine=e,this.source=t}}class w4 extends cw{constructor(e,t){super(),this.touched=e,this.source=t}}class yk extends cw{constructor(e,t){super(),this.status=e,this.source=t}}class lNe extends cw{constructor(e){super(),this.source=e}}class cNe extends cw{constructor(e){super(),this.source=e}}function b4(n){return(vk(n)?n.validators:n)||null}function T4(n,e){return(vk(e)?e.asyncValidators:n)||null}function vk(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function Tne(n,e,t){const r=n.controls;if(!(e?Object.keys(r):r).length)throw new De(1e3,"");if(!r[t])throw new De(1001,"")}
1function Ene(n,e,t){n._forEachChild((r,i)=>{if(void 0===t[i])throw new De(1002,"")})}class wk{constructor(e,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._events=new ge,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===hI}get invalid(){return this.status===_k}get pending(){return this.status==lw}get disabled(){return this.status===fI}get enabled(){return this.status!==fI}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(gne(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(gne(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(_ne(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(_ne(e,this._rawAsyncValidators))}hasValidator(e){return mk(this._rawValidators,e)}hasAsyncValidator(e){return mk(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){const t=!1===this.touched;this.touched=!0;const r=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched({...e,sourceControl:r}),t&&!1!==e.emitEvent&&this._events.next(new w4(!0,r))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(e))}markAsUntouched(e={}){const t=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const r=e.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:r})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r),t&&!1!==e.emitEvent&&this._events.next(new w4(!1,r))}
1markAsDirty(e={}){const t=!0===this.pristine;this.pristine=!1;const r=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty({...e,sourceControl:r}),t&&!1!==e.emitEvent&&this._events.next(new v4(!1,r))}markAsPristine(e={}){const t=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const r=e.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),t&&!1!==e.emitEvent&&this._events.next(new v4(!0,r))}markAsPending(e={}){this.status=lw;const t=e.sourceControl??this;!1!==e.emitEvent&&(this._events.next(new yk(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending({...e,sourceControl:t})}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=fI,this.errors=null,this._forEachChild(i=>{i.disable({...e,onlySelf:!0})}),this._updateValue();const r=e.sourceControl??this;!1!==e.emitEvent&&(this._events.next(new bne(this.value,r)),this._events.next(new yk(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...e,skipPristineCheck:t},this),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=hI,this._forEachChild(r=>{r.enable({...e,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors({...e,skipPristineCheck:t},this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(e,t){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===hI||this.status===lw)&&this._runAsyncValidator(r,e.emitEvent)}const t=e.sourceControl??this;!1!==e.emitEvent&&(this._events.next(new bne(this.value,t)),this._events.next(new yk(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity({...e,sourceControl:t})}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?fI:hI}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,t){if(this.asyncValidator){this.status=lw,this._hasOwnPendingAsyncValidator={emitEvent:!1!==t};const r=ane(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:t,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent,this,t.shouldHaveEmitted)}get(e){let t=e;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,i)=>r&&r._find(i),this)}getError(e,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,t,r){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||r)&&this._events.next(new yk(this.status,t)),this._parent&&this._parent._updateControlsErrors(e,t,r)}_initObservables(){this.valueChanges=new Tn,this.statusChanges=new Tn}_calculateStatus(){return this._allControlsDisabled()?fI:this.errors?_k:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(lw)?lw:this._anyControlsHaveStatus(_k)?_k:hI}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}
1_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,t){const r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),i&&this._events.next(new v4(this.pristine,t))}_updateTouched(e={},t){this.touched=this._anyControlsTouched(),this._events.next(new w4(this.touched,t)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){vk(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=function uNe(n){return Array.isArray(n)?p4(n):n||null}(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=function dNe(n){return Array.isArray(n)?m4(n):n||null}(this._rawAsyncValidators)}}class pI extends wk{constructor(e,t,r){super(b4(t),T4(r,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,r={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){Ene(this,0,e),Object.keys(e).forEach(r=>{Tne(this,!0,r),this.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(r=>{const i=this.controls[r];i&&i.patchValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((r,i)=>{r.reset(e?e[i]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,r)=>(e[r]=t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&e(r,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&e(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,i)=>((r.enabled||this.disabled)&&(t[i]=r.value),t))}_reduceChildren(e,t){let r=e;return this._forEachChild((i,s)=>{r=t(r,i,s)}),r}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}}class Mne extends pI{}const Bg=new $e("CallSetDisabledState",{providedIn:"root",factory:()=>mI}),mI="always";function bk(n,e){return[...e.path,n]}function gI(n,e,t=mI){E4(n,e),e.valueAccessor.writeValue(n.value),(n.disabled||"always"===t)&&e.valueAccessor.setDisabledState?.(n.disabled),function fNe(n,e){e.valueAccessor.registerOnChange(t=>{n._pendingValue=t,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&Ine(n,e)})}(n,e),function mNe(n,e){const t=(r,i)=>{e.valueAccessor.writeValue(r),i&&e.viewToModelUpdate(r)};n.registerOnChange(t),e._registerOnDestroy(()=>{n._unregisterOnChange(t)}
vendor: 2,864 bytes, line 1
1)}(n,e),function pNe(n,e){e.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&Ine(n,e),"submit"!==n.updateOn&&n.markAsTouched()})}(n,e),function hNe(n,e){if(e.valueAccessor.setDisabledState){const t=r=>{e.valueAccessor.setDisabledState(r)};n.registerOnDisabledChange(t),e._registerOnDestroy(()=>{n._unregisterOnDisabledChange(t)})}}(n,e)}function Tk(n,e,t=!0){const r=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(r),e.valueAccessor.registerOnTouched(r)),Mk(n,e),n&&(e._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Ek(n,e){n.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function E4(n,e){const t=pne(n);null!==e.validator?n.setValidators(fne(t,e.validator)):"function"==typeof t&&n.setValidators([t]);const r=mne(n);null!==e.asyncValidator?n.setAsyncValidators(fne(r,e.asyncValidator)):"function"==typeof r&&n.setAsyncValidators([r]);const i=()=>n.updateValueAndValidity();Ek(e._rawValidators,i),Ek(e._rawAsyncValidators,i)}function Mk(n,e){let t=!1;if(null!==n){if(null!==e.validator){const i=pne(n);if(Array.isArray(i)&&i.length>0){const s=i.filter(o=>o!==e.validator);s.length!==i.length&&(t=!0,n.setValidators(s))}}if(null!==e.asyncValidator){const i=mne(n);if(Array.isArray(i)&&i.length>0){const s=i.filter(o=>o!==e.asyncValidator);s.length!==i.length&&(t=!0,n.setAsyncValidators(s))}}}const r=()=>{};return Ek(e._rawValidators,r),Ek(e._rawAsyncValidators,r),t}function Ine(n,e){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Dne(n,e){E4(n,e)}function I4(n,e){if(!n.hasOwnProperty("model"))return!1;const t=n.model;return!!t.isFirstChange()||!Object.is(e,t.currentValue)}function Cne(n,e){n._syncPendingControls(),e.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function D4(n,e){if(!e)return null;let t,r,i;return Array.isArray(e),e.forEach(s=>{s.constructor===aw?t=s:function yNe(n){return Object.getPrototypeOf(n.constructor)===Ug}(s)?r=s:i=s}),i||r||t||null}const wNe={provide:da,useExisting:sr(()=>tp)},_I=Promise.resolve();let tp=(()=>{class n extends da{constructor(t,r,i){super(),this.callSetDisabledState=i,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Tn,this.form=new pI({},p4(t),m4(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){_I.then(()=>{const r=this._findContainer(t.path);t.control=r.registerControl(t.name,t.control),gI(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}
1removeControl(t){_I.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){_I.then(()=>{const r=this._findContainer(t.path),i=new pI({});Dne(i,t),r.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){_I.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,r){_I.then(()=>{this.form.get(t.path).setValue(r)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,Cne(this.form,this._directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}static#e=this.\u0275fac=function(r){return new(r||n)(_e(Fo,10),_e(Zf,10),_e(Bg,8))};static#t=this.\u0275dir=V({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,i){1&r&&Qe("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ii([wNe]),Mn]})}return n})();function Sne(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}function Ane(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const yI=class extends wk{constructor(e=null,t,r){super(b4(t),T4(r,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),vk(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=Ane(e)?e.value:e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Sne(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Sne(this._onDisabledChange,e)}_forEachChild(e){}_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(e){Ane(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}},ENe={provide:ep,useExisting:sr(()=>Hg)},Pne=Promise.resolve();let Hg=(()=>{class n extends ep{constructor(t,r,i,s,o,a){super(),this._changeDetectorRef=o,this.callSetDisabledState=a,this.control=new yI,this._registered=!1,this.name="",this.update=new Tn,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=D4(0,s)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const r=t.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),I4(t,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(t){this.viewModel=t,this.update.emit(t)}_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(){gI(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){Pne.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const r=t.isDisabled.currentValue,i=0!==r&&Qv(r);Pne.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?bk(t,this._parent):[t]}static#e=this.\u0275fac=function(r){return new(r||n)(_e(da,9),_e(Fo,10),_e(Zf,10),_e(Wu,10),_e(Ou,8),_e(Bg,8))};static#t=this.\u0275dir=V({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ii([ENe]),Mn,or]})}return n})(),zg=(()=>{class n{static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275dir=V({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return n})();const MNe={provide:Wu,useExisting:sr(()=>C4),multi:!0};let C4=(()=>{class n extends Ug{writeValue(t){this.setProperty("value",t??"")}registerOnChange(t){this.onChange=r=>{t(""==r?null:parseFloat(r))}}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=qs(n)))(i||n)}})();static#t=this.\u0275dir=V({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,i){1&r&&Qe("input",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},features:[Ii([MNe]),Mn]})}return n})();const INe={provide:Wu,useExisting:sr(()=>S4),multi:!0};let DNe=(()=>{class n{constructor(){this._accessors=[]}add(t,r){this._accessors.push([t,r])}remove(t){for(let r=this._accessors.length-1;r>=0;--r)if(this._accessors[r][1]===t)return void this._accessors.splice(r,1)}
1select(t){this._accessors.forEach(r=>{this._isSameGroup(r,t)&&r[1]!==t&&r[1].fireUncheck(t.value)})}_isSameGroup(t,r){return!!t[0].control&&t[0]._parent===r._control._parent&&t[1].name===r.name}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),S4=(()=>{class n extends Ug{constructor(t,r,i,s){super(t,r),this._registry=i,this._injector=s,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=Le(Bg,{optional:!0})??mI}ngOnInit(){this._control=this._injector.get(ep),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this.setProperty("checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}setDisabledState(t){(this.setDisabledStateFired||t||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",t),this.setDisabledStateFired=!0}fireUncheck(t){this.writeValue(t)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static#e=this.\u0275fac=function(r){return new(r||n)(_e(xu),_e(Qn),_e(DNe),_e(ts))};static#t=this.\u0275dir=V({type:n,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(r,i){1&r&&Qe("change",function(){return i.onChange()})("blur",function(){return i.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Ii([INe]),Mn]})}return n})();const A4=new $e(""),ANe={provide:da,useExisting:sr(()=>Ik)};let Ik=(()=>{class n extends da{constructor(t,r,i){super(),this.callSetDisabledState=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Tn,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Mk(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const r=this.form.get(t.path);return gI(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}
1removeControl(t){Tk(t.control||null,t,!1),function vNe(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,r){this.form.get(t.path).setValue(r)}onSubmit(t){return this.submitted=!0,Cne(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new lNe(this.control)),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1,this.form._events.next(new cNe(this.form))}_updateDomValue(){this.directives.forEach(t=>{const r=t.control,i=this.form.get(t.path);r!==i&&(Tk(r||null,t),(n=>n instanceof yI)(i)&&(gI(i,t,this.callSetDisabledState),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const r=this.form.get(t.path);Dne(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const r=this.form.get(t.path);r&&function gNe(n,e){return Mk(n,e)}(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){E4(this.form,this),this._oldForm&&Mk(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(r){return new(r||n)(_e(Fo,10),_e(Zf,10),_e(Bg,8))};static#t=this.\u0275dir=V({type:n,selectors:[["","formGroup",""]],hostBindings:function(r,i){1&r&&Qe("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ii([ANe]),Mn,or]})}return n})();const PNe={provide:ep,useExisting:sr(()=>P4)};let P4=(()=>{class n extends ep{set isDisabled(t){}static#e=this._ngModelWarningSentOnce=!1;constructor(t,r,i,s,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.name=null,this.update=new Tn,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=D4(0,s)}ngOnChanges(t){this._added||this._setUpControl(),I4(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return bk(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(r){return new(r||n)(_e(da,13),_e(Fo,10),_e(Zf,10),_e(Wu,10),_e(A4,8))};static#n=this.\u0275dir=V({type:n,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[Ii([PNe]),Mn,or]})}return n})();const RNe={provide:Wu,useExisting:sr(()=>$g),multi:!0};function Nne(n,e){return null==n?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${n}: ${e}`.slice(0,50))}let $g=(()=>{class n extends Ug{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const i=Nne(this._getOptionId(t),t);this.setProperty("value",i)}registerOnChange(t){this.onChange=r=>{this.value=this._getOptionValue(r),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),t))return r;return null}_getOptionValue(t){const r=function LNe(n){return n.split(":")[0]}(t);return this._optionMap.has(r)?this._optionMap.get(r):t}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=qs(n)))(i||n)}})();static#t=this.\u0275dir=V({type:n,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,i){1&r&&Qe("change",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ii([RNe]),Mn]})}return n})(),np=(()=>{class n{constructor(t,r,i){this._element=t,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(Nne(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id
1),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(r){return new(r||n)(_e(Qn),_e(xu),_e($g,9))};static#t=this.\u0275dir=V({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return n})();const ONe={provide:Wu,useExisting:sr(()=>R4),multi:!0};function Fne(n,e){return null==n?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${n}: ${e}`.slice(0,50))}let R4=(()=>{class n extends Ug{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let r;if(this.value=t,Array.isArray(t)){const i=t.map(s=>this._getOptionId(s));r=(s,o)=>{s._setSelected(i.indexOf(o.toString())>-1)}}else r=(i,s)=>{i._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(t){this.onChange=r=>{const i=[],s=r.selectedOptions;if(void 0!==s){const o=s;for(let a=0;a<o.length;a++){const c=this._getOptionValue(o[a].value);i.push(c)}}else{const o=r.options;for(let a=0;a<o.length;a++){const l=o[a];if(l.selected){const c=this._getOptionValue(l.value);i.push(c)}}}this.value=i,t(i)}}_registerOption(t){const r=(this._idCounter++).toString();return this._optionMap.set(r,t),r}_getOptionId(t){for(const r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r)._value,t))return r;return null}_getOptionValue(t){const r=function NNe(n){return n.split(":")[0]}(t);return this._optionMap.has(r)?this._optionMap.get(r)._value:t}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=qs(n)))(i||n)}})();static#t=this.\u0275dir=V({type:n,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,i){1&r&&Qe("change",function(o){return i.onChange(o.target)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ii([ONe]),Mn]})}return n})(),rp=(()=>{class n{constructor(t,r,i){this._element=t,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(Fne(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Fne(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(r){return new(r||n)(_e(Qn),_e(xu),_e(R4,9))};static#t=this.\u0275dir=V({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return n})(),qg=(()=>{class n{constructor(){this._validator=pk}ngOnChanges(t){if(this.inputName in t){const r=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):pk,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275dir=V({type:n,features:[or]})}return n})();const UNe={provide:Fo,useExisting:sr(()=>vI),multi:!0};let vI=(()=>{class n extends qg{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Qv,this.createValidator=t=>ene}enabled(t){return t}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=qs(n)))(i||n)}})();static#t=this.\u0275dir=V({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,i){2&r&&Na("required",i._enabled?"":null)},inputs:{required:"required"},features:[Ii([UNe]),Mn]})}return n})(),Wne=(()=>{class n{static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275mod=A({type:n});static#n=this.\u0275inj=ai({})}return n})();class Gne extends wk{constructor(e,t,r){super(b4(t),T4(r,t)),this.controls=e,this._initOb
1servables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,t={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,r={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(e,t={}){let r=this._adjustIndex(e);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,r={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),t&&(this.controls.splice(i,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){Ene(this,0,e),e.forEach((r,i)=>{Tne(this,!1,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((r,i)=>{r.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((t,r)=>!!r._syncPendingControls()||t,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((t,r)=>{e(t,r)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}}function Kne(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}let $Ne=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){const t=new n;return t.useNonNullable=!0,t}group(t,r=null){const i=this._reduceControls(t);let s={};return Kne(r)?s=r:null!==r&&(s.validators=r.validator,s.asyncValidators=r.asyncValidator),new pI(i,s)}record(t,r=null){const i=this._reduceControls(t);return new Mne(i,r)}control(t,r,i){let s={};return this.useNonNullable?(Kne(r)?s=r:(s.validators=r,s.asyncValidators=i),new yI(t,{...s,nonNullable:!0})):new yI(t,r,i)}array(t,r,i){const s=t.map(o=>this._createControl(o));return new Gne(s,r,i)}_reduceControls(t){const r={};return Object.keys(t).forEach(i=>{r[i]=this._createControl(t[i])}),r}_createControl(t){return t instanceof yI||t instanceof wk?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),qNe=(()=>{class n{static withConfig(t){return{ngModule:n,providers:[{provide:Bg,useValue:t.callSetDisabledState??mI}]}}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275mod=A({type:n});static#n=this.\u0275inj=ai({imports:[Wne]})}return n})(),WNe=(()=>{class n{static withConfig(t){return{ngModule:n,providers:[{provide:A4,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Bg,useValue:t.callSetDisabledState??mI}]}}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275mod=A({type:n});static#n=this.\u0275inj=ai({imports:[Wne]})}return n})(),GNe=(()=>{class n{constructor(t,r,i,s){this.router=t,this.elementRef=r,this.dataAccess=i,this.loginService=s,this.isSignedIn=!1,this.failedAttempts=0}ngOnInit(){const t=localStorage.getItem("user"),r=localStorage.getItem("userID"),i=localStorage.getItem("chainName"),s=localStorage.getItem("region");
1null!=s&&(dg.region=s),console.log("Hello"),console.log(t),null!==t&&null!==r&&null!==i&&this.router.navigateByUrl("main")}onLogin(t,r,i){var s=this;return(0,ee.A)(function*(){if(dg.region=i,localStorage.setItem("region",i),s.failedAttempts>=6)console.log("Failed too many times");else if(""!==t&&s.isValidEmail(t)||""!==r)if(""===r)s.elementRef.nativeElement.querySelector(".Submit-Button").style.marginTop="0",s.elementRef.nativeElement.querySelector(".errorMsg3").style.display="block",s.elementRef.nativeElement.querySelector("#Restaurant-Password").style.boxShadow="0px 0px 0px 1px;",s.elementRef.nativeElement.querySelector("#Restaurant-Password").style.borderColor="#DD2A2A",s.failedAttempts+=1;else if(""!==t&&s.isValidEmail(t)){const o=yield s.dataAccess.getRequest(t);if(0==o)return void s.displayError();const a=yield s.dataAccess.getSignInResult(t,r);localStorage.setItem("user",t),localStorage.setItem("userID",t),console.log(a),console.log("Now here");const l=!0;a||s.displayError(),a&&null!=l&&"fail"!=o.chainName?(localStorage.setItem("chainName",o.chainName),s.isSignedIn=!0,s.loginService.login(s.isSignedIn),s.router.navigateByUrl("main")):s.failedAttempts+=1}else s.elementRef.nativeElement.querySelector(".errorMsg2").style.display="block",s.elementRef.nativeElement.querySelector("#Restaurant-Email").style.border="#DD2A2A 0px 0px 0px 1px;",s.elementRef.nativeElement.querySelector("#Restaurant-Email").style.borderColor="#DD2A2A",s.failedAttempts+=1;else s.elementRef.nativeElement.querySelector(".Submit-Button").style.marginTop="0",s.elementRef.nativeElement.querySelector(".errorMsg2").style.display="block",s.elementRef.nativeElement.querySelector(".errorMsg3").style.display="block",s.elementRef.nativeElement.querySelector("#Restaurant-Email").style.border="0px 0px 0px 1px;",s.elementRef.nativeElement.querySelector("#Restaurant-Email").style.borderColor="#DD2A2A",s.elementRef.nativeElement.querySelector("#Restaurant-Password").style.border="0px 0px 0px 1px;",s.elementRef.nativeElement.querySelector("#Restaurant-Password").style.borderColor="#DD2A2A",s.failedAttempts+=1})()}toSignup(){this.router.navigateByUrl("signup")}displayError(){this.elementRef.nativeElement.querySelector(".Submit-Button").style.marginTop="0",this.elementRef.nativeElement.querySelector(".errorMsg").style.display="block",this.elementRef.nativeElement.querySelector("#Restaurant-Email").style.border="0px 0px 0px 1px;",this.elementRef.nativeElement.querySelector("#Restaurant-Email").style.borderColor="#DD2A2A",this.elementRef.nativeElement.querySelector("#Restaurant-Password").style.border="0px 0px 0px 1px;",this.elementRef.nativeElement.querySelector("#Restaurant-Password").style.borderColor="#DD2A2A"}isValidEmail(t){return/^.+@.+\..+$/.test(t)}static#e=this.\u0275fac=function(r){return new(r||n)(_e(bs),_e(Qn),_e(f4),_e(Vg))};static#t=this.\u0275cmp=xt({type:n,selectors:[["app-login"]],decls:56,vars:5,consts:[["emailSignup",""],["passwordSignup",""],["mainOfferType",""],[1,"LogIn"],[1,"Login-Form"],[1,"Contents"],[1,"Welcome-Text"],[1,"Log-In-Logo"],["src","../../assets/CouBon Logo.svg","alt","CouBon Logo Image",1,"CouBon-Logo"],[1,"Welcome-Sub-Text"],[1,"Below"],[1,"Input-Boxes"],[1,"Input-Box"],["id","Restaurant-Email","type","text","placeholder","Email"],[1,"errorDiv"],[1,"errorMsg2",2,"font-size","0.6rem","color","#DD2A2A","display","none"],[1,"Input-Box2","Input-Box"],["id","Restaurant-Password","type","password","placeholder","Password",3,"keyup.enter"],[1,"errorMsg",2,"font-size","0.6rem","color","#DD2A2A","display","none"],[1,"errorMsg3",2,"font-size","0.6rem","color","#DD2A2A","display","none"],[1,"field"],[1,"regionLabel"],[1,"regionMenu"],["value","toronto"],["value","montreal"],["href","#"],["id","submitData",1,"Submit-Button",3,"click"],[1,"Other-Actions"],[1,"Sign-Up"],[1,"SU-Question"],[1,"SU-Answer-Div"],[1,"Sign-Up-Text"],[1,"SU-Answer",3,"click"],[1,"Side-Div","desktop"],[1,"Feast-Image-Div"],["src","../../assets/Feast Image.png","alt","Feast Image",1,"Feast-Image"],[1,"Side-Text"],[1,"Side-Text-Main"],[1,"Side-Text-Sub"]],template:function(r,i){if(1&r){const s=Ei();Y(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6),re(4," WELCOME BACK TO "),H(),Y(5,"div",7),ze(6,"img",8),H(),Y(7,"div",9),re(8," Login to create and keep track of your coupons. "),H(),Y(9,"div",10)(10,"form")(11,"div",11)(12,"div",12),ze(13,"input",13,0),H(),Y(15,"div",14)(16,"p",15),re(17),H()(),Y(18,"div",16)(19,"input",17,1),Qe("keyup.enter",function(){bt(s);const a=wn(14),l=wn(20),c=wn(31);return vt(i.onLogin(a.value,l.value,c.value))}),H()()(),Y(21,"div",14)(22,"p",18),re(23),H()(),Y(24,"div",14)(25,"p",19),re(26),H()(),Y(27,"div",20)(28,"label",21),re(29,"Region of operation"),H(),Y(30,"select",22,2)(32,"option",23),re(33,"Toronto"),H(),Y(34,"option",24),re(35,"Montreal"),H()()()(),Y(36,"a",25)(37,"button",26),Qe("click",function(){bt(s);const a=wn(14),l=wn(20),c=wn(31);return vt(i.onLogin(a.value,l.value,c.value))}),re(38," Login "),H()(),Y(39,"div",27)(40,"div",28)(41,"div",29),re(42,"Don't Have an Account?"),H(),Y(43,"div",30)(44,"div",31),re(45,"Sign up"),H(),Y(46,"a",32),Qe("click",function(){return bt(s),vt(i.toSignup())}),re(47,"here"),H()()()()()()(),Y(48,"div",33)(49,"div",34),ze(50,"img",35),H(),Y(51,"div",36)(52,"div",37),re(53," Analytics, Coupons, Marketing "),H(),Y(54,"div",38),re(55," Insightful analytics, c
1onnect with customers "),H()()()()}2&r&&(Ve(),ht("@fadeInOut",void 0),Ve(16),Lu("Please enter a valid email address. ",6-i.failedAttempts," attempts left"),Ve(6),Lu("The email or password you entered is incorrect. ",6-i.failedAttempts," attempts left"),Ve(3),Lu("Please enter a valid password. ",6-i.failedAttempts," attempts left"),Ve(28),ht("@fadeInFromRight",void 0))},dependencies:[zg,np,rp,Yg,tp],styles:['*[_ngcontent-%COMP%]{font-family:verdana,sans-serif}body[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:verdana,sans-serif;background-color:#fff;color:#fff}a[_ngcontent-%COMP%]{text-decoration:none}.Contents[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;vertical-align:middle}.LogIn[_ngcontent-%COMP%]{position:absolute;flex-direction:row;vertical-align:middle;top:0;left:0;height:100%;width:100%;background:linear-gradient(90deg,#f01363,#c43244)}.Login-Form[_ngcontent-%COMP%]{z-index:1;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100% - 40px;background:#fff;-webkit-backdrop-filter:blur(.3125rem);backdrop-filter:blur(.3125rem);border-radius:20px;margin:20px 40px;box-shadow:0 8px 16px #0003}.Welcome-Text[_ngcontent-%COMP%]{color:#000;font-size:1.5rem;margin-left:10%}.CouBon-Logo[_ngcontent-%COMP%]{height:6rem;width:6rem;border-radius:100%;border:3px solid black;margin-left:33%;position:relative;top:1rem}.Welcome-Sub-Text[_ngcontent-%COMP%]{color:#b4b4b4;font-size:.7rem;margin-top:10%;margin-left:1rem}.Login-Form[_ngcontent-%COMP%] .Input-Box[_ngcontent-%COMP%]{width:18rem;display:flex;flex-direction:row;justify-content:center;align-items:center;background-color:#fff}.Login-Form[_ngcontent-%COMP%] .Input-Box[_ngcontent-%COMP%] [_ngcontent-%COMP%]:focus{box-shadow:#f01363 0 0 0 1px;border:none;outline:none}.Login-Form[_ngcontent-%COMP%] .Input-Box[_ngcontent-%COMP%] [_ngcontent-%COMP%]::placeholder{color:#b4b4b4}.Below[_ngcontent-%COMP%]{position:relative;top:3%}.errorDiv[_ngcontent-%COMP%]{width:18rem}.Input-Boxes[_ngcontent-%COMP%]{margin-top:2.5rem}.Input-Box2[_ngcontent-%COMP%]{margin-top:1rem}.Login-Form[_ngcontent-%COMP%] .Input-Box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;background:#fff3;padding:.625rem 1.25rem;border-radius:.5rem;border:1px solid #B4B4B4;font-size:.8rem;color:#000000b3}.field[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px}.regionLabel[_ngcontent-%COMP%]{font-size:12px;font-weight:700;display:block;margin-bottom:5px}.regionMenu[_ngcontent-%COMP%]{padding:.625rem 1.25rem;font-size:.8rem;border:1px solid #B4B4B4;border-radius:.5rem;background:#fff3;color:#333;width:100%;margin-right:20px}.regionMenu[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{background-color:#fff;color:#333}.regionMenu[_ngcontent-%COMP%] option[_ngcontent-%COMP%]:hover{background-color:#f3f3f3}.regionMenu[_ngcontent-%COMP%]:after{content:" \\203a";color:#888}.Submit-Button[_ngcontent-%COMP%]{height:2.5rem;width:10rem;background-color:#f01363;text-align:center;display:flex;justify-content:center;align-items:center;border-radius:.5rem;border-color:transparent;margin:auto;margin-top:1.5rem;color:#fff;cursor:pointer;box-shadow:0 4px 8px #0003}.Submit-Button[_ngcontent-%COMP%]:hover{box-shadow:0 0 2px #f01363}.Sign-Up[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;align-items:center;color:#000;margin-top:5%;margin-left:.77rem;font-size:.7rem}.SU-Answer-Div[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-left:.3rem;align-items:center;width:28%}.SU-Answer[_ngcontent-%COMP%]{margin-left:3%;color:#f01363;font-weight:600;cursor:pointer}.SU-Answer[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}.Other-Actions[_ngcontent-%COMP%]{margin-top:4%}.Side-Div[_ngcontent-%COMP%]{overflow:hidden;height:100%;width:100%;display:none}.Feast-Image-Div[_ngcontent-%COMP%]{height:100%;width:100%;background:#f01363}.Feast-Image[_ngcontent-%COMP%]{height:100%;width:100%;opacity:.4}.Side-Text[_ngcontent-%COMP%]{position:absolute;top:30%;left:45%;height:50%;width:40%;color:#fff}.Side-Text-Main[_ngcontent-%COMP%]{font-size:4rem;width:70%;height:50%;font-weight:500}.Side-Text-Sub[_ngcontent-%COMP%]{height:20%;width:100%;font-size:1.4rem;font-weight:300;position:relative;top:20%;letter-spacing:.15rem}@media screen and (min-width: 1000px){.desktop[_ngcontent-%COMP%]{display:block}.LogIn[_ngcontent-%COMP%]{position:absolute;display:flex;flex-direction:row;top:0;left:0;height:100%;width:100%;background:#f01363}.Login-Form[_ngcontent-%COMP%]{width:50%}}.popup[_ngcontent-%COMP%]{display:none;position:fixed;bottom:20px;left:50%;transform:translate(-50%);background-color:#f1f1f1;color:#000;padding:20px;border-radius:5px;box-shadow:0 0 10px #00000080;z-index:1}.Bad[_ngcontent-%COMP%]{color:#f01363}.popup.show[_ngcontent-%COMP%]{display:block;animation:_ngcontent-%COMP%_popupFadeIn .5s ease-in-out forwards}@media screen and (min-width: 1000px) and (max-width:1290px){.Side-Text-Sub[_ngcontent-%COMP%]{top:15%}.Side-Text-Main[_ngcontent-%COMP%]{width:110%}}@keyframes _ngcontent-%COMP%_popupFadeIn{0%{opacity:0;bottom:0}to{opacity:1;bottom:20px}}'],data:{animation:[g0.fadeInOut,g0.fadeInFromRight]}})}return n})(),KNe=(()=>{class n{constructor(){this.termsAndCondition="Merchant Agreement: \n Engagement: \nThe Agreement establishes a contractual engagement wherein the Merchant enlists CouBon's services to furnish specified services and deliverables. CouBon commits to fulfilling these obligations in accordance with the stipulated terms and conditions.Duration:\nThe Agreement's commencement transpires on the Effective Date and culminates on the Expiry Date, except in cases where premature termination is executed by the involved Parties in alignment with the Agreement's tenets.Merchant's Obligations:\nThe Merchant is duty-bound to remunerate CouBon for the Fees and Charges, furnish requisite information to facilitate CouBon's obligations, vigorously endorse and publicize the Promotion, securing prior written consent from CouBon for any promotional communications. The Merchant is compelled to indemnify CouBon against potential liabilities pursuant to specific circumstances.CouBon's Obligations:\nCouBon is charged with orchestrating and effectuating the designated Services and crafting and delivering the specified Deliverables. CouBon warrants that, while the Agreement is in force, it shall procure for the Merchant the necessary rights, licenses, consents, permits, and waivers requisite for the utilization and enjoyment of the Services and Deliverables. CouBon commits to minimizing operational disruption and adhering to pertinent policies while deploying its personnel. CouBon also accords a non-exclusive license to the Merchant for the utilization and public presentation of the Deliverables, while expressly excluding the rights to copy, distribute, sell, or create derivative works from said materials. CouBon warrants non-infringement of third-party Intellectual Property Rights.Payment:\nThe Merchant is obligated to disburse the stipulated Fees, with cognizance that said remuneration solely pertains to the delineated Services and Deliverables. Any ancillary services or deliverables not explicitly outlined shall attract supplementary Charges, subject to prior communication from CouBon. Invoices adhere to pertinent tax regulations and are due within seven days of issuance. Payment shall be transacted via bank transfer or its equivalent. The Merchant undertakes the responsibility to indemnify CouBon against governmental impositions arising from the Agreement's execution. Interest may accrue on overdue amounts, and service provision may be suspended until full payment is settled.Termination:\nThe Agreement's initiation transpires upon the Effective Date, extending until the Contract Perio
1d concludes or until termination is triggered per the stipulations under Clause 8. The Merchant retains the prerogative to terminate the Agreement under specific circumstances, including CouBon's insolvency or failure to rectify a breach within a stipulated timeframe. Conversely, CouBon may terminate the Agreement for reasons such as non-payment or the Merchant's breach of obligations, both under specific conditions. It is underscored that the termination clauses have been meticulously negotiated in alignment with the Agreement's comprehensive context.Termination Consequences: \nTermination or expiration of the Agreement, irrespective of the triggering event, shall not prejudice accrued obligations or rights, nor shall it negate provisions intended to persist post-termination. Upon termination or expiry, Parties are mandated to promptly return each other's property, including Confidential Information. The destruction or erasure of Confidential Information is stipulated, save for a single retained copy as necessitated by legal or regulatory obligations.Limitation of Liability:\nCouBon's liability to the Merchant, be it in tort, contractual breach, or statutory breach, is constrained in scenarios involving loss of profits, revenue, business, goodwill, reputation, or data corruption. Further limitation encompasses consequential, indirect, special, or punitive damages, irrespective of whether forewarning of such consequences was issued."}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275cmp=xt({type:n,selectors:[["app-terms-and-condition"]],decls:7,vars:1,consts:[[1,"popup-overlay"],[1,"popup-content"],[1,"scrollable-content"]],template:function(r,i){1&r&&(Y(0,"div",0)(1,"div",1)(2,"h2"),re(3,"Terms and Conditions"),H(),Y(4,"div",2)(5,"p"),re(6),H()()()()),2&r&&(Ve(6),Mi(i.termsAndCondition))},styles:[".popup-overlay[_ngcontent-%COMP%]{position:absolute;top:0rem;left:0rem;width:100rem;height:100%;padding-top:2rem;background-color:#00000080;display:flex;justify-content:center}.popup-content[_ngcontent-%COMP%]{background-color:#fff;padding:20px;top:10rem;left:30rem;width:30rem;height:38rem;border-radius:8px;box-shadow:0 2px 6px #0000001a;max-height:100%;overflow-y:auto}.scrollable-content[_ngcontent-%COMP%]{max-height:60vh;overflow-y:auto}"]})}return n})();function QNe(n,e){if(1&n){const t=Ei();Y(0,"div",49)(1,"p"),re(2),H(),Y(3,"span",50),Qe("click",function(){return bt(t),vt(tn().clearErrorMessage())}),re(4,"X"),H()()}if(2&n){const t=tn();Ve(2),Mi(t.errorMessage)}}function JNe(n,e){if(1&n&&(Y(0,"div",51),re(1),H()),2&n){const t=tn();Ve(),Mi(t.errorMessage)}}function XNe(n,e){if(1&n&&(Y(0,"div",52),re(1),H()),2&n){const t=tn();Ve(),Mi(t.successMessage)}}let ZNe=(()=>{class n{constructor(t,r){this.router=t,this.dataAccess=r,this.agreementStyle={display:"none"},this.popupStyle={display:"none"},this.popupNoInputStyle={display:"none"},this.popupBadPassStyle={display:"none"},this.popupBadMailStyle={display:"none"}}toLogin(){this.router.navigateByUrl("")}showAgreement(){console.log("clicked"),this.agreementStyle={display:"block"}}closePopup(){this.agreementStyle={display:"none"}}clearErrorMessage(){this.errorMessage=""}onSignup(t,r,i,s,o,a){var l=this;return(0,ee.A)(function*(){dg.region=a,""!=t&&""!=r&&""!=i&&""!=s&&o?s.length<8?l.errorMessage="Password must be longer than 8 letters":i.includes("@")?l.dataAccess.signUpResult(t,r,i,s).then(c=>{console.log(c),c&&(l.successMessage="Sign up successful! Our team will review your application and get back to you soon.")}):l.errorMessage="Invalid email":l.errorMessage="You cannot leave fields blank"})()}static#e=this.\u0275fac=function(r){return new(r||n)(_e(bs),_e(f4))};static#t=this.\u0275cmp=xt({type:n,selectors:[["app-signup"]],decls:68,vars:7,consts:[["restaurant",""],["owner",""],["email",""],["password",""],["mainOfferType",""],["agreement",""],["class","error-banner",4,"ngIf"],[1,"Sign-Up"],[1,"Sign-Up-Form"],[1,"Contents"],[1,"Welcome-Text"],[1,"Log-In-Logo"],["src","../../assets/CouBon Logo.svg","alt","CouBon Logo Image",1,"CouBon-Logo"],[1,"Welcome-Sub-Text"],[1,"Below"],["class","alert alert-danger",4,"ngIf"],["class","alert alert-success",4,"ngIf"],[1,"Input-Boxes"],[1,"Input-Box"],["id","Restaurant-Name","type","text","placeholder","Restaurant Name"],[1,"Input-Box","Input-Box2"],["id","Restaurant-Owner","type","text","placeholder","Owner's Name"],[1,"Input-Box","Input-Box3"],["id","Restaurant-Email","type","text","placeholder","Email"],[1,"Input-Box","Input-Box4"],["id","Restaurant-Password","type","password","placeholder","Password"],[1,"field"],[1,"regionLabel"],[1,"regionMenu"],["value","toronto"],["value","montreal"],[1,"Input-Box","Input-Box5"],["id","Restaurant-agreement","type","checkbox","value","agreement"],["for","Restaurant-agreement"],[3,"click"],["id","submitData",1,"Submit-Button",3,"click"],[1,"Other-Actions"],[1,"Sign-Up-Action"],[1,"SU-Answer-Div"],[1,"Sign-Up-Text"],[1,"SU-Answer",3,"click"],[1,"Side-Div","desktop"],[1,"Feast-Image-Div"],["src","../../assets/Feast Image.png","alt","",1,"Feast-Image"],[1,"Side-Text"],[1,"Side-Text-Main"],[1,"Side-Text-Sub"],["id","agreement",3,"ngStyle"],["mat-button","",1,"close-button",3,"click"],[1,"error-banner"],[1,"close-button",3,"click"],[1,"alert","alert-danger"],[1,"alert","alert-success"]],template:function(r,i){if(1&r){const s=Ei();Y(0,"html"),ze(1,"head"),Y(2,"body"),Oi(3,QNe,5,1,"div",6),Y(4,"div",7)(5,"div",8)(6,"div",9)(7,"div",10),re(8," WELCOME TO "),H(),Y(9,"div",11),ze(10,"img",12),H(),Y(11,"div",13),re(12," Sign up to create and keep track of your coupons. "),H(),Y(13,"div",14),Oi(14,JNe,2,1,"div",15)(15,XNe,2,1,"div",16),Y(16,"form")(17,"div",17)(18,"div",18),ze(19,"input",19,0),H(),Y(21,"div",20),ze(22,"input",21,1),H(),Y(24,"div",22),ze(25,"input",23,2),H(),Y(27,"div",24),ze(28,"input",25,3),H(),Y(30,"div",26)(31,"label",27),re(32,"Region of operation"),H(),Y(33,"select",28,4)(35,"option",29),re(36,"Toronto"),H(),Y(37,"option",30),re(38,"Montreal"),H()()(),Y(39,"div",31),ze(40,"input",32,5),Y(42,"label",33),re(43,"Agree to our\xa0"),H(),Y(44,"u",34),Qe("click",function(){return bt(s),vt(i.showAgreement())}),re(45,"terms and conditions"),H()()()(),Y(46,"div")(47,"button",35),Qe("click",function(){bt(s);
1const a=wn(20),l=wn(23),c=wn(26),u=wn(29),d=wn(34),f=wn(41);return vt(i.onSignup(a.value,l.value,c.value,u.value,f.checked,d.value))}),re(48," Sign up "),H()(),Y(49,"div",36)(50,"div",37)(51,"div",38)(52,"div",39),re(53,"Login"),H(),Y(54,"a",40),Qe("click",function(){return bt(s),vt(i.toLogin())}),re(55,"here"),H()()()()()()(),Y(56,"div",41)(57,"div",42),ze(58,"img",43),H(),Y(59,"div",44)(60,"div",45),re(61," Analytics, Coupons, Marketing "),H(),Y(62,"div",46),re(63," Insightful analytics, connect with customers "),H()()(),Y(64,"div",47),ze(65,"app-terms-and-condition"),Y(66,"button",48),Qe("click",function(){return bt(s),vt(i.closePopup())}),re(67,"Close"),H()()()()()}2&r&&(Ve(3),ht("ngIf",i.errorMessage),Ve(2),ht("@fadeInOut",void 0),Ve(9),ht("ngIf",i.errorMessage),Ve(),ht("ngIf",i.successMessage),Ve(47),ht("@fadeInFromRight",void 0),Ve(2),ht("ngStyle",i.agreementStyle)("@simpleFade",void 0))},dependencies:[sg,og,zg,np,rp,Yg,tp,KNe],styles:['*[_ngcontent-%COMP%]{font-family:verdana,sans-serif}body[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:verdana,sans-serif;background-color:#fff}a[_ngcontent-%COMP%]{text-decoration:none}.Contents[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center}.Sign-Up[_ngcontent-%COMP%]{position:absolute;flex-direction:row;top:0;left:0;height:100%;width:100%;background:linear-gradient(90deg,#f01363,#c43244)}.Sign-Up-Form[_ngcontent-%COMP%]{z-index:1;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100% - 40px;background:#fff;-webkit-backdrop-filter:blur(.3125rem);backdrop-filter:blur(.3125rem);border-radius:20px;margin:20px 40px;box-shadow:0 8px 16px #0003}.Welcome-Text[_ngcontent-%COMP%]{color:#000;font-size:1.5em;margin-left:10%;justify-content:center;text-align:center}.CouBon-Logo[_ngcontent-%COMP%]{height:6rem;width:6rem;border-radius:100%;border:3px solid black;margin-left:33%;position:relative;top:1rem}.Welcome-Sub-Text[_ngcontent-%COMP%]{color:#b4b4b4;font-size:.7rem;margin-top:10%;margin-left:1rem}.Sign-Up-Form[_ngcontent-%COMP%] .Input-Box[_ngcontent-%COMP%]{width:18rem;display:flex;flex-direction:row;justify-content:center;align-items:center;background-color:#fff}.Sign-Up-Form[_ngcontent-%COMP%] .Input-Box[_ngcontent-%COMP%] [_ngcontent-%COMP%]:focus{box-shadow:#f0136489 0 0 0 1px;border:none;outline:none}.Sign-Up-Form[_ngcontent-%COMP%] .Input-Box[_ngcontent-%COMP%] [_ngcontent-%COMP%]::placeholder{color:#b4b4b4}.Below[_ngcontent-%COMP%]{position:relative;left:1rem}.Sign-Up[_ngcontent-%COMP%] .Input-Boxes[_ngcontent-%COMP%]{margin-top:2.5rem}.Sign-Up[_ngcontent-%COMP%] .Input-Box2[_ngcontent-%COMP%], .Sign-Up[_ngcontent-%COMP%] .Input-Box3[_ngcontent-%COMP%], .Sign-Up[_ngcontent-%COMP%] .Input-Box4[_ngcontent-%COMP%], .Sign-Up[_ngcontent-%COMP%] .Input-Box5[_ngcontent-%COMP%]{margin-top:1rem}.Sign-Up-Form[_ngcontent-%COMP%] .Input-Box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;background:#fff3;padding:.625rem 1.25rem;border-radius:.5rem;border:1px solid #B4B4B4;font-size:.8rem;color:#000000b3}.Sign-Up[_ngcontent-%COMP%] .Input-Box5[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:2rem}.Sign-Up[_ngcontent-%COMP%] .Input-Box5[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .Sign-Up[_ngcontent-%COMP%] .Input-Box5[_ngcontent-%COMP%] u[_ngcontent-%COMP%]{font-size:.8rem}.Submit-Button[_ngcontent-%COMP%]{height:2.5rem;width:10rem;background-color:#f01363;text-align:center;display:flex;justify-content:center;align-items:center;border-radius:.5rem;border-color:transparent;margin:auto;margin-top:1.5rem;color:#fff;cursor:pointer;box-shadow:0 4px 8px #0003}.Submit-Button[_ngcontent-%COMP%]:hover{box-shadow:0 0 2px #cf1d64}.Sign-Up-Action[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;align-items:center;color:#000;margin-top:5%;margin-left:.77rem;font-size:.7rem}.SU-Answer-Div[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-left:.3rem;align-items:center;width:28%}.SU-Answer[_ngcontent-%COMP%]{margin-left:3%;color:#f01363;font-weight:600;cursor:pointer}.SU-Answer[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}.Other-Actions[_ngcontent-%COMP%]{margin-top:4%}.Side-Div[_ngcontent-%COMP%]{overflow:hidden;height:100%;width:100%;display:none}.Feast-Image-Div[_ngcontent-%COMP%]{height:100%;width:100%;background:#f01363}.Feast-Image[_ngcontent-%COMP%]{height:100%;width:100%;opacity:.4}.Side-Text[_ngcontent-%COMP%]{position:absolute;top:30%;left:45%;height:50%;width:40%;color:#fff}.Side-Text-Main[_ngcontent-%COMP%]{font-size:4em;width:70%;height:50%;font-weight:500}.Side-Text-Sub[_ngcontent-%COMP%]{height:20%;width:100%;font-size:1.4em;font-weight:300;position:relative;top:20%;letter-spacing:.15rem}.field[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px}.regionLabel[_ngcontent-%COMP%]{font-size:12px;font-weight:700;display:block;margin-bottom:5px}.regionMenu[_ngcontent-%COMP%]{padding:.625rem 1.25rem;font-size:.8rem;border:1px solid #B4B4B4;border-radius:.5rem;background:#fff3;color:#333;width:100%;margin-right:20px}.regionMenu[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{background-color:#fff;color:#333}.regionMenu[_ngcontent-%COMP%] option[_ngcontent-%COMP%]:hover{background-color:#f3f3f3}.regionMenu[_ngcontent-%COMP%]:after{content:" \\203a";color:#888}.popup[_ngcontent-%COMP%]{display:none;position:fixed;bottom:20px;left:50%;transform:translate(-50%);background-color:#f1f1f1;color:#000;padding:20px;border-radius:5px;box-shadow:0 0 10px #00000080;z-index:1}.Bad[_ngcontent-%COMP%]{color:#f01363}.popup.show[_ngcontent-%COMP%]{display:block;animation:_ngcontent-%COMP%_popupFadeIn .5s ease-in-out forwards}.close-button[_ngcontent-%COMP%]{position:absolute;bottom:20%;left:46rem;height:2.5rem;width:7rem;background-color:#f01363;text-align:center;justify-content:center;align-items:center;border-radius:6px;border-color:transparent;color:#fff;cursor:pointer;font-size:.9rem}.error-banner[_ngcontent-%COMP%]{background-color:#f66;color:#fff;padding:10px 20px;position:fixed;width:100%;top:0;left:0;text-align:center;box-shadow:0 2px 4px #0000001a}.close-button[_ngcontent-%COMP%]{cursor:pointer;font-size:18px;font-weight:700;position:absolute;bottom:10%;right:20px;transform:translateY(-50%);z-index:999}.close-button[_ngcontent-%COMP%]:hover{color:#fff}.alert[_ngcontent-%COMP%]{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px;font-size:16px}.alert-danger[_ngcontent-%COMP%]{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert-success[_ngcontent-%COMP%]{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}@keyframes _ngcontent-%COMP%_popupFadeIn{0%{opacity:0;bottom:0}to{opacity:1;bottom:20px}}@media screen and (min-width: 1000px){.desktop[_ngcontent-%COMP%]{display:block}.Sign-Up[_ngcontent-%COMP%]{position:absolute;display:flex;flex-direction:row;top:0;left:0;height:100%;width:100%;background:linear-gradient(90deg,#f01363,#c43244)}.Sign-Up-Form[_ngcontent-%COMP%]{width:50%}}'],data:{animation:[g0.fadeInOut,g0.fadeInFromRight,g0.simpleFade,g0.banner]}})}return n})();class ip{constructor(e){this.elRef=e}cancel(){this.elRef.nativeElement.querySelector(".overlay-blurred").style.display="none",this.elRef.nativeElement.querySelector(".popup").style.display="none"}show(){this.elRef.nativeElement.querySelector(".overlay-blurred").style.display="block",this.elRef.nativeElement.querySelector(".popup").style.display="block"}}const Qne=function(n){const e=[];let t=0;for(let r=0;r<n.length;r++){let i=n.charCodeAt(r);i<128?e[t++]=i:i<2048?(e[t++]=i>>6|192,e[t++]=63&i|128):55296==(64512&i)&&r+1<n.length&&56320==(64512&n.charCo
1deAt(r+1))?(i=65536+((1023&i)<<10)+(1023&n.charCodeAt(++r)),e[t++]=i>>18|240,e[t++]=i>>12&63|128,e[t++]=i>>6&63|128,e[t++]=63&i|128):(e[t++]=i>>12|224,e[t++]=i>>6&63|128,e[t++]=63&i|128)}return e},Jne={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(n,e){if(!Array.isArray(n))throw Error("encodeByteArray takes an array as a parameter");this.init_();const t=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<n.length;i+=3){const s=n[i],o=i+1<n.length,a=o?n[i+1]:0,l=i+2<n.length,c=l?n[i+2]:0;let f=(15&a)<<2|c>>6,_=63&c;l||(_=64,o||(f=64)),r.push(t[s>>2],t[(3&s)<<4|a>>4],t[f],t[_])}return r.join("")},encodeString(n,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(n):this.encodeByteArray(Qne(n),e)},decodeString(n,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(n):function(n){const e=[];let t=0,r=0;for(;t<n.length;){const i=n[t++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){const s=n[t++];e[r++]=String.fromCharCode((31&i)<<6|63&s)}else if(i>239&&i<365){const l=((7&i)<<18|(63&n[t++])<<12|(63&n[t++])<<6|63&n[t++])-65536;e[r++]=String.fromCharCode(55296+(l>>10)),e[r++]=String.fromCharCode(56320+(1023&l))}else{const s=n[t++],o=n[t++];e[r++]=String.fromCharCode((15&i)<<12|(63&s)<<6|63&o)}}return e.join("")}(this.decodeStringToByteArray(n,e))},decodeStringToByteArray(n,e){this.init_();const t=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<n.length;){const s=t[n.charAt(i++)],a=i<n.length?t[n.charAt(i)]:0;++i;const c=i<n.length?t[n.charAt(i)]:64;++i;const d=i<n.length?t[n.charAt(i)]:64;if(++i,null==s||null==a||null==c||null==d)throw new r2e;r.push(s<<2|a>>4),64!==c&&(r.push(a<<4&240|c>>2),64!==d&&r.push(c<<6&192|d))}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let n=0;n<this.ENCODED_VALS.length;n++)this.byteToCharMap_[n]=this.ENCODED_VALS.charAt(n),this.charToByteMap_[this.byteToCharMap_[n]]=n,this.byteToCharMapWebSafe_[n]=this.ENCODED_VALS_WEBSAFE.charAt(n),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[n]]=n,n>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(n)]=n,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(n)]=n)}}};class r2e extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Dk=function(n){return function(n){const e=Qne(n);return Jne.encodeByteArray(e,!0)}(n).replace(/\./g,"")};class uw extends Error{constructor(e,t,r){super(t),this.code=e,this.customData=r,this.name="FirebaseError",Object.setPrototypeOf(this,uw.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ere.prototype.create)}}class ere{constructor(e,t,r){this.service=e,this.serviceName=t,this.errors=r}create(e,...t){const r=t[0]||{},i=`${this.service}/${e}`,s=this.errors[e],o=s?function g2e(n,e){return n.replace(_2e,(t,r)=>{const i=e[r];return null!=i?String(i):`<${r}?>`})}(s,r):"Error";return new uw(i,`${this.serviceName}: ${o} (${i}).`,r)}}const _2e=/\{\$([^}]+)}/g;class Ak{constructor(e,t,r){this.name=e,this.instanceFactory=t,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}const V4=[];var cr=function(n){return n[n.DEBUG=0]="DEBUG",n[n.VERBOSE=1]="VERBOSE",n[n.INFO=2]="INFO",n[n.WARN=3]="WARN",n[n.ERROR=4]="ERROR",n[n.SILENT=5]="SILENT",n}(cr||{});const rre={debug:cr.DEBUG,verbose:cr.VERBOSE,info:cr.INFO,warn:cr.WARN,error:cr.ERROR,silent:cr.SILENT},A2e=cr.INFO,x2e={[cr.DEBUG]:"log",[cr.VERBOSE]:"log",[cr.INFO]:"info",[cr.WARN]:"warn",[cr.ERROR]:"error"},k2e=(n,e,...t)=>{if(e<n.logLevel)return;const r=(new Date).toISOString(),i=x2e[e];if(!i)throw new Error(`Attempted to log a message with an invali
1d logType (value: ${e})`);console[i](`[${r}] ${n.name}:`,...t)};class ire{constructor(e){this.name=e,this._logLevel=A2e,this._logHandler=k2e,this._userLogHandler=null,V4.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in cr))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?rre[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,cr.DEBUG,...e),this._logHandler(this,cr.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,cr.VERBOSE,...e),this._logHandler(this,cr.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,cr.INFO,...e),this._logHandler(this,cr.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,cr.WARN,...e),this._logHandler(this,cr.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,cr.ERROR,...e),this._logHandler(this,cr.ERROR,...e)}}var P2e=$(6749);class R2e{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(t=>{if(function L2e(n){const e=n.getComponent();return"VERSION"===e?.type}(t)){const r=t.getImmediate();return`${r.library}/${r.version}`}return null}).filter(t=>t).join(" ")}}const U4="@firebase/app",Kg=new ire("@firebase/app"),O2e="@firebase/app-compat",N2e="@firebase/analytics-compat",F2e="@firebase/analytics",V2e="@firebase/app-check-compat",U2e="@firebase/app-check",j2e="@firebase/auth",Y2e="@firebase/auth-compat",B2e="@firebase/database",H2e="@firebase/database-compat",z2e="@firebase/functions",$2e="@firebase/functions-compat",q2e="@firebase/installations",W2e="@firebase/installations-compat",G2e="@firebase/messaging",K2e="@firebase/messaging-compat",Q2e="@firebase/performance",J2e="@firebase/performance-compat",X2e="@firebase/remote-config",Z2e="@firebase/remote-config-compat",eFe="@firebase/storage",tFe="@firebase/storage-compat",nFe="@firebase/firestore",rFe="@firebase/firestore-compat",iFe="firebase",oFe={[U4]:"fire-core",[O2e]:"fire-core-compat",[F2e]:"fire-analytics",[N2e]:"fire-analytics-compat",[U2e]:"fire-app-check",[V2e]:"fire-app-check-compat",[j2e]:"fire-auth",[Y2e]:"fire-auth-compat",[B2e]:"fire-rtdb",[H2e]:"fire-rtdb-compat",[z2e]:"fire-fn",[$2e]:"fire-fn-compat",[q2e]:"fire-iid",[W2e]:"fire-iid-compat",[G2e]:"fire-fcm",[K2e]:"fire-fcm-compat",[Q2e]:"fire-perf",[J2e]:"fire-perf-compat",[X2e]:"fire-rc",[Z2e]:"fire-rc-compat",[eFe]:"fire-gcs",[tFe]:"fire-gcs-compat",[nFe]:"fire-fst",[rFe]:"fire-fst-compat","fire-js":"fire-js",[iFe]:"fire-js-all"},Qg=new Map,kk=new Map;function aFe(n,e){try{n.container.addComponent(e)}catch(t){Kg.debug(`Component ${e.name} failed to register with FirebaseApp ${n.name}`,t)}}function Pk(n){const e=n.name;if(kk.has(e))return Kg.debug(`There were multiple attempts to register component ${e}.`),!1;kk.set(e,n);for(const t of Qg.values())aFe(t,n);return!0}const oh=new ere("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.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
1d-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}."});function wI(n,e,t){var r;let i=null!==(r=oFe[n])&&void 0!==r?r:n;t&&(i+=`-${t}`);const s=i.match(/\s|\//),o=e.match(/\s|\//);if(s||o){const a=[`Unable to register library "${i}" with version "${e}":`];return s&&a.push(`library name "${i}" contains illegal characters (whitespace or "/")`),s&&o&&a.push("and"),o&&a.push(`version name "${e}" contains illegal characters (whitespace or "/")`),void Kg.warn(a.join(" "))}Pk(new Ak(`${i}-version`,()=>({library:i,version:e}),"VERSION"))}const fFe="firebase-heartbeat-database",pFe=1,bI="firebase-heartbeat-store";let Y4=null;function ore(){return Y4||(Y4=(0,P2e.P2)(fFe,pFe,{upgrade:(n,e)=>{0===e&&n.createObjectStore(bI)}}).catch(n=>{throw oh.create("idb-open",{originalErrorMessage:n.message})})),Y4}function B4(){return(B4=(0,ee.A)(function*(n){try{return yield(yield ore()).transaction(bI).objectStore(bI).get(lre(n))}catch(e){if(e instanceof uw)Kg.warn(e.message);else{const t=oh.create("idb-get",{originalErrorMessage:e?.message});Kg.warn(t.message)}}})).apply(this,arguments)}function are(n,e){return H4.apply(this,arguments)}function H4(){return(H4=(0,ee.A)(function*(n,e){try{const r=(yield ore()).transaction(bI,"readwrite");yield r.objectStore(bI).put(e,lre(n)),yield r.done}catch(t){if(t instanceof uw)Kg.warn(t.message);else{const r=oh.create("idb-set",{originalErrorMessage:t?.message});Kg.warn(r.message)}}})).apply(this,arguments)}function lre(n){return`${n.name}!${n.options.appId}`}class yFe{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new wFe(t),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}triggerHeartbeat(){var e=this;return(0,ee.A)(function*(){const r=e.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),i=cre();if(null===e._heartbeatsCache&&(e._heartbeatsCache=yield e._heartbeatsCachePromise),e._heartbeatsCache.lastSentHeartbeatDate!==i&&!e._heartbeatsCache.heartbeats.some(s=>s.date===i))return e._heartbeatsCache.heartbeats.push({date:i,agent:r}),e._heartbeatsCache.heartbeats=e._heartbeatsCache.heartbeats.filter(s=>{const o=new Date(s.date).valueOf();return Date.now()-o<=2592e6}),e._storage.overwrite(e._heartbeatsCache)})()}getHeartbeatsHeader(){var e=this;return(0,ee.A)(function*(){if(null===e._heartbeatsCache&&(yield e._heartbeatsCachePromise),null===e._heartbeatsCache||0===e._heartbeatsCache.heartbeats.length)return"";const t=cre(),{heartbeatsToSend:r,unsentEntries:i}=function vFe(n,e=1024){const t=[];let r=n.slice();for(const i of n){const s=t.find(o=>o.agent===i.agent);if(s){if(s.dates.push(i.date),ure(t)>e){s.dates.pop();break}}else if(t.push({agent:i.agent,dates:[i.date]}),ure(t)>e){t.pop();break}r=r.slice(1)}return{heartbeatsToSend:t,unsentEntries:r}}(e._heartbeatsCache.heartbeats),s=Dk(JSON.stringify({version:2,heartbeats:r}));return e._heartbeatsCache.lastSentHeartbeatDate=t,i.length>0?(e._heartbeatsCache.heartbeats=i,yield e._storage.overwrite(e._heartbeatsCache)):(e._heartbeatsCache.heartbeats=[],e._storage.overwrite(e._heartbeatsCache)),s})()}}function cre(){return(new Date).toISOString().substring(0,10)}class wFe{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,ee.A)(function*(){return!!function Zne(){try{return"object"==typeof indexedDB}catch{return!1}}()&&function p2e(){return new Promise((n,e)=>{try{let t=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),t||self.indexedDB.deleteDatabase(r),n(!0)},i.onupgradeneeded=()=>{t=!1},i.onerror=()=>{var s;e((null===(s=i.error)||void 0===s?void 0:s.message)||"")}}catch(t){e(t)}})}().then(()=>!0).catch(()=>!1)})()}read(){var e=this;return(0,ee.A)(function*(){return(yield e._canUseIndexedDBPromise)&&(yield function mFe(n){return B4.apply(this,arguments)}(e.app))||{heartbeats:[]}})()}overwrite(e){var t=this;return(0,ee.A)(function*(){var r;if(yield t._canUseIndexedDBPromise){const s=yield t.read();return are(t.app,{lastSentHeartbeatDate:null!==(r=e.lastSentHeartbeatDate)&&void 0!==r?r:s.lastSentHeartbeatDate,heartbeats:e.heartbeats})}})()}add(e){var t=this;return(0,ee.A)(function*(){var r;if(yield t._canUseIndexedDBPromise){const s=yield t.read();return are(t.app,{lastSentHeartbeatDate:null!==(r=e.lastSentHeartbeatDate)&&void 0!==r?r:s.lastSentHeartbeatDate,heartbeats:[...s.heartbeats,...e.heartbeats]})}})()}}function ure(n){return Dk(JSON.stringify({version:2,heartbeats:n})).length}!function bFe(n){Pk(new Ak("platform-logger",e=>new R2e(e),"PRIVATE")),Pk(new Ak("heartbeat",e=>new yFe(e),"PRIVATE")),wI(U4,"0.9.13",n),wI(U4,"0.9.13","esm2017"),wI("fire-js","")}("");var wt,TFe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},zc={},z4=z4||{},cn=TFe||self;function Rk(n){var e=typeof n;return"array"==(e="object"!=e?e:n?Array.isArray(n)?"array":e:"null")||"object"==e&&"number"==typeof n.length}function TI(n){var e=typeof n;return"object"==e&&null!=n||"function"==e}var $4="closure_uid_"+(1e9*Math.random()>>>0),MFe=0;function IFe(n,e,t){return n.call.apply(n.bind,arguments)}function DFe(n,e,t){if(!n)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var i=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(i,r),n.apply(e,i)}}return function(){return n.apply(e,arguments)}}function Vo(n,e,t){return(Vo=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?IFe:DFe).apply(null,arguments)}
1function Lk(n,e){var t=Array.prototype.slice.call(arguments,1);return function(){var r=t.slice();return r.push.apply(r,arguments),n.apply(this,r)}}function Qs(n,e){function t(){}t.prototype=e.prototype,n.$=e.prototype,n.prototype=new t,n.prototype.constructor=n,n.ac=function(r,i,s){for(var o=Array(arguments.length-2),a=2;a<arguments.length;a++)o[a-2]=arguments[a];return e.prototype[i].apply(r,o)}}function sp(){this.s=this.s,this.o=this.o}sp.prototype.s=!1,sp.prototype.sa=function(){!this.s&&(this.s=!0,this.N(),0)&&function EFe(n){Object.prototype.hasOwnProperty.call(n,$4)&&n[$4]||(n[$4]=++MFe)}(this)},sp.prototype.N=function(){if(this.o)for(;this.o.length;)this.o.shift()()};const dre=Array.prototype.indexOf?function(n,e){return Array.prototype.indexOf.call(n,e,void 0)}:function(n,e){if("string"==typeof n)return"string"!=typeof e||1!=e.length?-1:n.indexOf(e,0);for(let t=0;t<n.length;t++)if(t in n&&n[t]===e)return t;return-1};function q4(n){const e=n.length;if(0<e){const t=Array(e);for(let r=0;r<e;r++)t[r]=n[r];return t}return[]}function hre(n,e){for(let t=1;t<arguments.length;t++){const r=arguments[t];if(Rk(r)){const i=n.length||0,s=r.length||0;n.length=i+s;for(let o=0;o<s;o++)n[i+o]=r[o]}else n.push(r)}}function Uo(n,e){this.type=n,this.g=this.target=e,this.defaultPrevented=!1}Uo.prototype.h=function(){this.defaultPrevented=!0};var SFe=function(){if(!cn.addEventListener||!Object.defineProperty)return!1;var n=!1,e=Object.defineProperty({},"passive",{get:function(){n=!0}});try{cn.addEventListener("test",()=>{},e),cn.removeEventListener("test",()=>{},e)}catch{}return n}();function EI(n){return/^[\s\xa0]*$/.test(n)}function Ok(){var n=cn.navigator;return n&&(n=n.userAgent)?n:""}function Gu(n){return-1!=Ok().indexOf(n)}function W4(n){return W4[" "](n),n}W4[" "]=function(){};var K4,n,xFe=Gu("Opera"),dw=Gu("Trident")||Gu("MSIE"),fre=Gu("Edge"),G4=fre||dw,pre=Gu("Gecko")&&!(-1!=Ok().toLowerCase().indexOf("webkit")&&!Gu("Edge"))&&!(Gu("Trident")||Gu("MSIE"))&&!Gu("Edge"),kFe=-1!=Ok().toLowerCase().indexOf("webkit")&&!Gu("Edge");function mre(){var n=cn.document;return n?n.documentMode:void 0}e:{var Q4="",J4=(n=Ok(),pre?/rv:([^\);]+)(\)|;)/.exec(n):fre?/Edge\/([\d\.]+)/.exec(n):dw?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(n):kFe?/WebKit\/(\S+)/.exec(n):xFe?/(?:Version)[ \/]?(\S+)/.exec(n):void 0);if(J4&&(Q4=J4?J4[1]:""),dw){var X4=mre();if(null!=X4&&X4>parseFloat(Q4)){K4=String(X4);break e}}K4=Q4}var PFe=cn.document&&dw&&(mre()||parseInt(K4,10))||void 0;function MI(n,e){if(Uo.call(this,n?n.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,n){var t=this.type=n.type,r=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:null;if(this.target=n.target||n.srcElement,this.g=e,e=n.relatedTarget){if(pre){e:{try{W4(e.nodeName);var i=!0;break e}catch{}i=!1}i||(e=null)}}else"mouseover"==t?e=n.fromElement:"mouseout"==t&&(e=n.toElement);this.relatedTarget=e,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==n.clientX?n.clientX:n.pageX,this.clientY=void 0!==n.clientY?n.clientY:n.pageY,this.screenX=n.screenX||0,this.screenY=n.screenY||0),this.button=n.button,this.key=n.key||"",this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.pointerId=n.pointerId||0,this.pointerType="string"==typeof n.pointerType?n.pointerType:RFe[n.pointerType]||"",this.state=n.state,this.i=n,n.defaultPrevented&&MI.$.h.call(this)}}Qs(MI,Uo);var RFe={2:"touch",3:"pen",4:"mouse"};MI.prototype.h=function(){MI.$.h.call(this);var n=this.i;n.preventDefault?n.preventDefault():n.returnValue=!1};var II="closure_listenable_"+(1e6*Math.random()|0),LFe=0;function OFe(n,e,t,r,i){this.listener=n,this.proxy=null,this.src=e,this.type=t,this.capture=!!r,this.la=i,this.key=++LFe,this.fa=this.ia=!1}function Nk(n){n.fa=!0,n.listener=null,n.proxy=null,n.src=null,n.la=null}function eY(n,e,t){for(const r in n)e.call(t,n[r],r,n)}function _re(n){const e={};for(const t in n)e[t]=n[t];return e}const yre="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleStr
1ing toString valueOf".split(" ");function vre(n,e){let t,r;for(let i=1;i<arguments.length;i++){for(t in r=arguments[i],r)n[t]=r[t];for(let s=0;s<yre.length;s++)t=yre[s],Object.prototype.hasOwnProperty.call(r,t)&&(n[t]=r[t])}}function Fk(n){this.src=n,this.g={},this.h=0}function tY(n,e){var t=e.type;if(t in n.g){var s,r=n.g[t],i=dre(r,e);(s=0<=i)&&Array.prototype.splice.call(r,i,1),s&&(Nk(e),0==n.g[t].length&&(delete n.g[t],n.h--))}}function nY(n,e,t,r){for(var i=0;i<n.length;++i){var s=n[i];if(!s.fa&&s.listener==e&&s.capture==!!t&&s.la==r)return i}return-1}Fk.prototype.add=function(n,e,t,r,i){var s=n.toString();(n=this.g[s])||(n=this.g[s]=[],this.h++);var o=nY(n,e,r,i);return-1<o?(e=n[o],t||(e.ia=!1)):((e=new OFe(e,this.src,s,!!r,i)).ia=t,n.push(e)),e};var rY="closure_lm_"+(1e6*Math.random()|0),iY={};function wre(n,e,t,r,i){if(r&&r.once)return Tre(n,e,t,r,i);if(Array.isArray(e)){for(var s=0;s<e.length;s++)wre(n,e[s],t,r,i);return null}return t=lY(t),n&&n[II]?n.O(e,t,TI(r)?!!r.capture:!!r,i):bre(n,e,t,!1,r,i)}function bre(n,e,t,r,i,s){if(!e)throw Error("Invalid event type");var o=TI(i)?!!i.capture:!!i,a=oY(n);if(a||(n[rY]=a=new Fk(n)),(t=a.add(e,t,r,o,s)).proxy)return t;if(r=function FFe(){const e=VFe;return function n(t){return e.call(n.src,n.listener,t)}}(),t.proxy=r,r.src=n,r.listener=t,n.addEventListener)SFe||(i=o),void 0===i&&(i=!1),n.addEventListener(e.toString(),r,i);else if(n.attachEvent)n.attachEvent(Mre(e.toString()),r);else{if(!n.addListener||!n.removeListener)throw Error("addEventListener and attachEvent are unavailable.");n.addListener(r)}return t}function Tre(n,e,t,r,i){if(Array.isArray(e)){for(var s=0;s<e.length;s++)Tre(n,e[s],t,r,i);return null}return t=lY(t),n&&n[II]?n.P(e,t,TI(r)?!!r.capture:!!r,i):bre(n,e,t,!0,r,i)}function Ere(n,e,t,r,i){if(Array.isArray(e))for(var s=0;s<e.length;s++)Ere(n,e[s],t,r,i);else r=TI(r)?!!r.capture:!!r,t=lY(t),n&&n[II]?(n=n.i,(e=String(e).toString())in n.g&&-1<(t=nY(s=n.g[e],t,r,i))&&(Nk(s[t]),Array.prototype.splice.call(s,t,1),0==s.length&&(delete n.g[e],n.h--))):n&&(n=oY(n))&&(e=n.g[e.toString()],n=-1,e&&(n=nY(e,t,r,i)),(t=-1<n?e[n]:null)&&sY(t))}function sY(n){if("number"!=typeof n&&n&&!n.fa){var e=n.src;if(e&&e[II])tY(e.i,n);else{var t=n.type,r=n.proxy;e.removeEventListener?e.removeEventListener(t,r,n.capture):e.detachEvent?e.detachEvent(Mre(t),r):e.addListener&&e.removeListener&&e.removeListener(r),(t=oY(e))?(tY(t,n),0==t.h&&(t.src=null,e[rY]=null)):Nk(n)}}}function Mre(n){return n in iY?iY[n]:iY[n]="on"+n}function VFe(n,e){if(n.fa)n=!0;else{e=new MI(e,this);var t=n.listener,r=n.la||n.src;n.ia&&sY(n),n=t.call(r,e)}return n}function oY(n){return(n=n[rY])instanceof Fk?n:null}var aY="__closure_events_fn_"+(1e9*Math.random()>>>0);function lY(n){return"function"==typeof n?n:(n[aY]||(n[aY]=function(e){return n.handleEvent(e)}),n[aY])}function Js(){sp.call(this),this.i=new Fk(this),this.S=this,this.J=null}function mo(n,e){var t,r=n.J;if(r)for(t=[];r;r=r.J)t.push(r);if(n=n.S,r=e.type||e,"string"==typeof e)e=new Uo(e,n);else if(e instanceof Uo)e.target=e.target||n;else{var i=e;vre(e=new Uo(r,n),i)}if(i=!0,t)for(var s=t.length-1;0<=s;s--){var o=e.g=t[s];i=Vk(o,r,!0,e)&&i}if(i=Vk(o=e.g=n,r,!0,e)&&i,i=Vk(o,r,!1,e)&&i,t)for(s=0;s<t.length;s++)i=Vk(o=e.g=t[s],r,!1,e)&&i}function Vk(n,e,t,r){if(!(e=n.i.g[String(e)]))return!0;e=e.concat();for(var i=!0,s=0;s<e.length;++s){var o=e[s];if(o&&!o.fa&&o.capture==t){var a=o.listener,l=o.la||o.src;o.ia&&tY(n.i,o),i=!1!==a.call(l,r)&&i}}return i&&!r.defaultPrevented}Qs(Js,sp),Js.prototype[II]=!0,Js.prototype.removeEventListener=function(n,e,t,r){Ere(this,n,e,t,r)},Js.prototype.N=function(){if(Js.$.N.call(this),this.i){var e,n=this.i;for(e in n.g){for(var t=n.g[e],r=0;r<t.length;r++)Nk(t[r]);delete n.g[e],n.h--}}this.J=null},Js.prototype.O=function(n,e,t,r){return this.i.add(String(n),e,!1,t,r)},Js.prototype.P=function(n,e,t,r){return this.i.add(String(n),e,!0,t,r)};var cY=cn.JSON.stringify;function jFe(){var n=uY;let e=null;return n.g&&(e=n.g,n.g=n.g.next,n.g||(n.h=null),e.next=null),e}var Ire=new class UFe{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 BFe,n=>n.reset());class BFe{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 HFe(n){var e=1;n=n.split(":");const t=[];for(;0<e&&n.length;)t.push(n.shift()),e--;return n.length&&t.push(n.join(":")),t}function zFe(n){cn.setTimeout(()=>{throw n},0)}
1let DI,CI=!1,uY=new class YFe{constructor(){this.h=this.g=null}add(e,t){const r=Ire.get();r.set(e,t),this.h?this.h.next=r:this.g=r,this.h=r}},Dre=()=>{const n=cn.Promise.resolve(void 0);DI=()=>{n.then($Fe)}};var $Fe=()=>{for(var n;n=jFe();){try{n.h.call(n.g)}catch(t){zFe(t)}var e=Ire;e.j(n),100>e.h&&(e.h++,n.next=e.g,e.g=n)}CI=!1};function Uk(n,e){Js.call(this),this.h=n||1,this.g=e||cn,this.j=Vo(this.qb,this),this.l=Date.now()}function dY(n){n.ga=!1,n.T&&(n.g.clearTimeout(n.T),n.T=null)}function hY(n,e,t){if("function"==typeof n)t&&(n=Vo(n,t));else{if(!n||"function"!=typeof n.handleEvent)throw Error("Invalid listener argument");n=Vo(n.handleEvent,n)}return 2147483647<Number(e)?-1:cn.setTimeout(n,e||0)}function Cre(n){n.g=hY(()=>{n.g=null,n.i&&(n.i=!1,Cre(n))},n.j);const e=n.h;n.h=null,n.m.apply(null,e)}Qs(Uk,Js),(wt=Uk.prototype).ga=!1,wt.T=null,wt.qb=function(){if(this.ga){var n=Date.now()-this.l;0<n&&n<.8*this.h?this.T=this.g.setTimeout(this.j,this.h-n):(this.T&&(this.g.clearTimeout(this.T),this.T=null),mo(this,"tick"),this.ga&&(dY(this),this.start()))}},wt.start=function(){this.ga=!0,this.T||(this.T=this.g.setTimeout(this.j,this.h),this.l=Date.now())},wt.N=function(){Uk.$.N.call(this),dY(this),delete this.g};class qFe extends sp{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:Cre(this)}N(){super.N(),this.g&&(cn.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function SI(n){sp.call(this),this.h=n,this.g={}}Qs(SI,sp);var Sre=[];function Are(n,e,t,r){Array.isArray(t)||(t&&(Sre[0]=t.toString()),t=Sre);for(var i=0;i<t.length;i++){var s=wre(e,t[i],r||n.handleEvent,!1,n.h||n);if(!s)break;n.g[s.key]=s}}function xre(n){eY(n.g,function(e,t){this.g.hasOwnProperty(t)&&sY(e)},n),n.g={}}function jk(){this.g=!0}function hw(n,e,t,r){n.info(function(){return"XMLHTTP TEXT ("+e+"): "+function QFe(n,e){if(!n.g)return e;if(!e)return null;try{var t=JSON.parse(e);if(t)for(n=0;n<t.length;n++)if(Array.isArray(t[n])){var r=t[n];if(!(2>r.length)){var i=r[1];if(Array.isArray(i)&&!(1>i.length)){var s=i[0];if("noop"!=s&&"stop"!=s&&"close"!=s)for(var o=1;o<i.length;o++)i[o]=""}}}return cY(t)}catch{return e}}(n,t)+(r?" "+r:"")})}SI.prototype.N=function(){SI.$.N.call(this),xre(this)},SI.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},jk.prototype.Ea=function(){this.g=!1},jk.prototype.info=function(){};var Jg={},kre=null;function Yk(){return kre=kre||new Js}function Pre(n){Uo.call(this,Jg.Ta,n)}function AI(n){const e=Yk();mo(e,new Pre(e))}function Rre(n,e){Uo.call(this,Jg.STAT_EVENT,n),this.stat=e}function ha(n){const e=Yk();mo(e,new Rre(e,n))}function Lre(n,e){Uo.call(this,Jg.Ua,n),this.size=e}function xI(n,e){if("function"!=typeof n)throw Error("Fn must not be null and must be a function");return cn.setTimeout(function(){n()},e)}Jg.Ta="serverreachability",Qs(Pre,Uo),Jg.STAT_EVENT="statevent",Qs(Rre,Uo),Jg.Ua="timingevent",Qs(Lre,Uo);var Bk={NO_ERROR:0,rb:1,Eb:2,Db:3,yb:4,Cb:5,Fb:6,Qa:7,TIMEOUT:8,Ib:9},Ore={wb:"complete",Sb:"success",Ra:"error",Qa:"abort",Kb:"ready",Lb:"readystatechange",TIMEOUT:"timeout",Gb:"incrementaldata",Jb:"progress",zb:"downloadprogress",$b:"uploadprogress"};function fY(){}function Fre(){}fY.prototype.h=null;var gY,kI={OPEN:"a",vb:"b",Ra:"c",Hb:"d"};function pY(){Uo.call(this,"d")}function mY(){Uo.call(this,"c")}function Hk(){}function PI(n,e,t,r){this.l=n,this.j=e,this.m=t,this.W=r||1,this.U=new SI(this),this.P=JFe,this.V=new Uk(n=G4?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 Vre}function Vre(){this.i=null,this.g="",this.h=!1}Qs(pY,Uo),Qs(mY,Uo),Qs(Hk,fY),Hk.prototype.g=function(){return new XMLHttpRequest},Hk.prototype.i=function(){return{}},gY=new Hk;var JFe=45e3,_Y={},zk={};function yY(n,e,t){n.L=1,n.v=Gk(ah(e)),n.s=t,n.S=!0,Ure(n,null)}function Ure(n,e){n.G=Date.now(),RI(n),n.A=ah(n.v);var t=n.A,r=n.W;Array.isArray(r)||(r=[String(r)]),Kre(t.i,"t",r),n.C=0,t=n.l.J,n.h=new Vre,n.g=vie(n.l,t?e:null,!n.s),0<n.O&&(n.M=new qFe(Vo(n.Pa,n,n.g),n.O)),Are(n.U,n.g,"readystatechange",n.nb),e=n.I?_re(n.I):{}
1,n.s?(n.u||(n.u="POST"),e["Content-Type"]="application/x-www-form-urlencoded",n.g.ha(n.A,n.u,n.s,e)):(n.u="GET",n.g.ha(n.A,n.u,null,e)),AI(),function WFe(n,e,t,r,i,s){n.info(function(){if(n.g)if(s)for(var o="",a=s.split("&"),l=0;l<a.length;l++){var c=a[l].split("=");if(1<c.length){var u=c[0];c=c[1];var d=u.split("_");o=2<=d.length&&"type"==d[1]?o+(u+"=")+c+"&":o+(u+"=redacted&")}}else o=null;else o=s;return"XMLHTTP REQ ("+r+") [attempt "+i+"]: "+e+"\n"+t+"\n"+o})}(n.j,n.u,n.A,n.m,n.W,n.s)}function jre(n){return!!n.g&&"GET"==n.u&&2!=n.L&&n.l.Ha}function Yre(n,e,t){let i,r=!0;for(;!n.J&&n.C<t.length;){if(i=XFe(n,t),i==zk){4==e&&(n.o=4,ha(14),r=!1),hw(n.j,n.m,null,"[Incomplete Response]");break}if(i==_Y){n.o=4,ha(15),hw(n.j,n.m,t,"[Invalid Chunk]"),r=!1;break}hw(n.j,n.m,i,null),vY(n,i)}jre(n)&&i!=zk&&i!=_Y&&(n.h.g="",n.C=0),4!=e||0!=t.length||n.h.h||(n.o=1,ha(16),r=!1),n.i=n.i&&r,r?0<t.length&&!n.ba&&(n.ba=!0,(e=n.l).g==n&&e.ca&&!e.M&&(e.l.info("Great, no buffering proxy detected. Bytes received: "+t.length),DY(e),e.M=!0,ha(11))):(hw(n.j,n.m,t,"[Invalid Chunked Response]"),Xg(n),LI(n))}function XFe(n,e){var t=n.C,r=e.indexOf("\n",t);return-1==r?zk:(t=Number(e.substring(t,r)),isNaN(t)?_Y:(r+=1)+t>e.length?zk:(e=e.slice(r,r+t),n.C=r+t,e))}function RI(n){n.Y=Date.now()+n.P,Bre(n,n.P)}function Bre(n,e){if(null!=n.B)throw Error("WatchDog timer not null");n.B=xI(Vo(n.lb,n),e)}function $k(n){n.B&&(cn.clearTimeout(n.B),n.B=null)}function LI(n){0==n.l.H||n.J||mie(n.l,n)}function Xg(n){$k(n);var e=n.M;e&&"function"==typeof e.sa&&e.sa(),n.M=null,dY(n.V),xre(n.U),n.g&&(e=n.g,n.g=null,e.abort(),e.sa())}function vY(n,e){try{var t=n.l;if(0!=t.H&&(t.g==n||wY(t.i,n)))if(!n.K&&wY(t.i,n)&&3==t.H){try{var r=t.Ja.g.parse(e)}catch{r=null}if(Array.isArray(r)&&3==r.length){var i=r;if(0==i[0]){e:if(!t.u){if(t.g){if(!(t.g.G+3e3<n.G))break e;eP(t),Xk(t)}IY(t),ha(18)}}else t.Fa=i[1],0<t.Fa-t.V&&37500>i[2]&&t.G&&0==t.A&&!t.v&&(t.v=xI(Vo(t.ib,t),6e3));if(1>=Xre(t.i)&&t.oa){try{t.oa()}catch{}t.oa=void 0}}else e_(t,11)}else if((n.K||t.g==n)&&eP(t),!EI(e))for(i=t.Ja.g.parse(e),e=0;e<i.length;e++){let c=i[e];if(t.V=c[0],c=c[1],2==t.H)if("c"==c[0]){t.K=c[1],t.pa=c[2];const u=c[3];null!=u&&(t.ra=u,t.l.info("VER="+t.ra));const d=c[4];null!=d&&(t.Ga=d,t.l.info("SVER="+t.Ga));const f=c[5];null!=f&&"number"==typeof f&&0<f&&(t.L=r=1.5*f,t.l.info("backChannelRequestTimeoutMs_="+r)),r=t;const _=n.g;if(_){const w=_.g?_.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(w){var s=r.i;s.g||-1==w.indexOf("spdy")&&-1==w.indexOf("quic")&&-1==w.indexOf("h2")||(s.j=s.l,s.g=new Set,s.h&&(bY(s,s.h),s.h=null))}if(r.F){const M=_.g?_.g.getResponseHeader("X-HTTP-Session-Id"):null;M&&(r.Da=M,hi(r.I,r.F,M))}}t.H=3,t.h&&t.h.Ba(),t.ca&&(t.S=Date.now()-n.G,t.l.info("Handshake RTT: "+t.S+"ms"));var o=n;if((r=t).wa=yie(r,r.J?r.pa:null,r.Y),o.K){Zre(r.i,o);var a=o,l=r.L;l&&a.setTimeout(l),a.B&&($k(a),RI(a)),r.g=o}else fie(r);0<t.j.length&&Zk(t)}else"stop"!=c[0]&&"close"!=c[0]||e_(t,7);else 3==t.H&&("stop"==c[0]||"close"==c[0]?"stop"==c[0]?e_(t,7):MY(t):"noop"!=c[0]&&t.h&&t.h.Aa(c),t.A=0)}AI()}catch{}}function Hre(n,e){if(n.forEach&&"function"==typeof n.forEach)n.forEach(e,void 0);else if(Rk(n)||"string"==typeof n)Array.prototype.forEach.call(n,e,void 0);else for(var t=function eVe(n){if(n.ta&&"function"==typeof n.ta)return n.ta();if(!n.Z||"function"!=typeof n.Z){if(typeof Map<"u"&&n instanceof Map)return Array.from(n.keys());if(!(typeof Set<"u"&&n instanceof Set)){if(Rk(n)||"string"==typeof n){var e=[];n=n.length;for(var t=0;t<n;t++)e.push(t);return e}e=[],t=0;for(const r in n)e[t++]=r;return e}}}(n),r=function ZFe(n){if(n.Z&&"function"==typeof n.Z)return n.Z();if(typeof Map<"u"&&n instanceof Map||typeof Set<"u"&&n instanceof Set)return Array.from(n.values());if("string"==typeof n)return n.split("");if(Rk(n)){for(var e=[],t=n.length,r=0;r<t;r++)e.push(n[r]);return e}for(r in e=[],t=0,n)e[t++]=n[r];return e}(n),i=r.length,s=0;s<i;s++)e.call(void 0,r[s],t&&t[s],n)}(wt=PI.prototype).setTimeout=function(n){this.P=n},wt.nb=function(n){n=n.target;const e=this.M;e&&3==Ku(n)?e.l():this.Pa(n)},wt.Pa=function(n){try{if(n==this.g)e:{const u=Ku(this.g);var e=this.g.Ia();if(this.g.da(),!(3>u)&&(3!=u||G4||this.g&&(this.h.h||this.g.ja()||aie(this.g)))){this.J||4!=u||7==e||AI(),$k(this);var t=this.g.da();this.ca=t;t:if(jre(this)){var r=aie(this.g);n="";var i=r.length,s=4==Ku(this.g);if(!this.h.i){if(typeof TextDecoder>"u"){Xg(this),LI(this);var o="";break t}this.h.i=new cn.TextDecoder}for(e=0;e<i;e++)this.h.h=!0,n+=this.h.i.decode(r[e],{stream:s&&e==i-1});r.splice(0,i),this.h.g+=n,this.C=0,o=this.h.g}else o=this.g.ja();if(this.i=200==t,function GFe(n,e,t,r,i,s,o){n.info(function(){return"XMLHTTP RESP ("+r+") [ attempt "+i+"]: "+e+"\n"+t+"\n"+s+" "+o})}
1(this.j,this.u,this.A,this.m,this.W,u,t),this.i){if(this.aa&&!this.K){t:{if(this.g){var a,l=this.g;if((a=l.g?l.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!EI(a)){var c=a;break t}}c=null}if(!(t=c)){this.i=!1,this.o=3,ha(12),Xg(this),LI(this);break e}hw(this.j,this.m,t,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,vY(this,t)}this.S?(Yre(this,u,o),G4&&this.i&&3==u&&(Are(this.U,this.V,"tick",this.mb),this.V.start())):(hw(this.j,this.m,o,null),vY(this,o)),4==u&&Xg(this),this.i&&!this.J&&(4==u?mie(this.l,this):(this.i=!1,RI(this)))}else(function yVe(n){const e={};n=(n.g&&2<=Ku(n)&&n.g.getAllResponseHeaders()||"").split("\r\n");for(let r=0;r<n.length;r++){if(EI(n[r]))continue;var t=HFe(n[r]);const i=t[0];if("string"!=typeof(t=t[1]))continue;t=t.trim();const s=e[i]||[];e[i]=s,s.push(t)}!function NFe(n,e){for(const t in n)e.call(void 0,n[t],t,n)}(e,function(r){return r.join(", ")})})(this.g),400==t&&0<o.indexOf("Unknown SID")?(this.o=3,ha(12)):(this.o=0,ha(13)),Xg(this),LI(this)}}}catch{}},wt.mb=function(){if(this.g){var n=Ku(this.g),e=this.g.ja();this.C<e.length&&($k(this),Yre(this,n,e),this.i&&4!=n&&RI(this))}},wt.cancel=function(){this.J=!0,Xg(this)},wt.lb=function(){this.B=null;const n=Date.now();0<=n-this.Y?(function KFe(n,e){n.info(function(){return"TIMEOUT: "+e})}(this.j,this.A),2!=this.L&&(AI(),ha(17)),Xg(this),this.o=2,LI(this)):Bre(this,this.Y-n)};var zre=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Zg(n){if(this.g=this.s=this.j="",this.m=null,this.o=this.l="",this.h=!1,n instanceof Zg){this.h=n.h,qk(this,n.j),this.s=n.s,this.g=n.g,Wk(this,n.m),this.l=n.l;var e=n.i,t=new FI;t.i=e.i,e.g&&(t.g=new Map(e.g),t.h=e.h),$re(this,t),this.o=n.o}else n&&(e=String(n).match(zre))?(this.h=!1,qk(this,e[1]||"",!0),this.s=OI(e[2]||""),this.g=OI(e[3]||"",!0),Wk(this,e[4]),this.l=OI(e[5]||"",!0),$re(this,e[6]||"",!0),this.o=OI(e[7]||"")):(this.h=!1,this.i=new FI(null,this.h))}function ah(n){return new Zg(n)}function qk(n,e,t){n.j=t?OI(e,!0):e,n.j&&(n.j=n.j.replace(/:$/,""))}function Wk(n,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);n.m=e}else n.m=null}function $re(n,e,t){e instanceof FI?(n.i=e,function aVe(n,e){e&&!n.j&&(op(n),n.i=null,n.g.forEach(function(t,r){var i=r.toLowerCase();r!=i&&(Wre(this,r),Kre(this,i,t))},n)),n.j=e}(n.i,n.h)):(t||(e=NI(e,sVe)),n.i=new FI(e,n.h))}function hi(n,e,t){n.i.set(e,t)}function Gk(n){return hi(n,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),n}function OI(n,e){return n?e?decodeURI(n.replace(/%25/g,"%2525")):decodeURIComponent(n):""}function NI(n,e,t){return"string"==typeof n?(n=encodeURI(n).replace(e,nVe),t&&(n=n.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),n):null}function nVe(n){return"%"+((n=n.charCodeAt(0))>>4&15).toString(16)+(15&n).toString(16)}Zg.prototype.toString=function(){var n=[],e=this.j;e&&n.push(NI(e,qre,!0),":");var t=this.g;return(t||"file"==e)&&(n.push("//"),(e=this.s)&&n.push(NI(e,qre,!0),"@"),n.push(encodeURIComponent(String(t)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(t=this.m)&&n.push(":",String(t))),(t=this.l)&&(this.g&&"/"!=t.charAt(0)&&n.push("/"),n.push(NI(t,"/"==t.charAt(0)?iVe:rVe,!0))),(t=this.i.toString())&&n.push("?",t),(t=this.o)&&n.push("#",NI(t,oVe)),n.join("")};var qre=/[#\/\?@]/g,rVe=/[#\?:]/g,iVe=/[#\?]/g,sVe=/[#\?@]/g,oVe=/#/g;function FI(n,e){this.h=this.g=null,this.i=n||null,this.j=!!e}function op(n){n.g||(n.g=new Map,n.h=0,n.i&&function tVe(n,e){if(n){n=n.split("&");for(var t=0;t<n.length;t++){var r=n[t].indexOf("="),i=null;if(0<=r){var s=n[t].substring(0,r);i=n[t].substring(r+1)}else s=n[t];e(s,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(n.i,function(e,t){n.add(decodeURIComponent(e.replace(/\+/g," ")),t)}))}function Wre(n,e){op(n),e=fw(n,e),n.g.has(e)&&(n.i=null,n.h-=n.g.get(e).length,n.g.delete(e))}function Gre(n,e){return op(n),e=fw(n,e),n.g.has(e)}function Kre(n,e,t){Wre(n,e),0<t.length&&(n.i=null,n.g.set(fw(n,e),q4(t)),n.h+=t.length)}function fw(n,e){return e=String(e),n.j&&(e=e.toLowerCase()),e}(wt=FI.prototype).add=function(n,e){op(this),this.i=null,n=fw(this,n);var t=this.g.get(n);return t||this.g.set(n,t=[]),t.push(e),this.h+=1,this},wt.forEach=function(n,e){op(this),this.g.forEach(function(t,r){t.forEach(function(i){n.call(e,i,r,this)},this)},this)},wt.ta=function(){op(this);const n=Array.from(this.g.values()),e=Array.from(this.g.keys()),t=[];for(let r=0;r<e.length;r++){const i=n[r];for(let s=0;s<i.length;s++)t.push(e[r])}return t},wt.Z=function(n){op(this);let e=[];
1if("string"==typeof n)Gre(this,n)&&(e=e.concat(this.g.get(fw(this,n))));else{n=Array.from(this.g.values());for(let t=0;t<n.length;t++)e=e.concat(n[t])}return e},wt.set=function(n,e){return op(this),this.i=null,Gre(this,n=fw(this,n))&&(this.h-=this.g.get(n).length),this.g.set(n,[e]),this.h+=1,this},wt.get=function(n,e){return n&&0<(n=this.Z(n)).length?String(n[0]):e},wt.toString=function(){if(this.i)return this.i;if(!this.g)return"";const n=[],e=Array.from(this.g.keys());for(var t=0;t<e.length;t++){var r=e[t];const s=encodeURIComponent(String(r)),o=this.Z(r);for(r=0;r<o.length;r++){var i=s;""!==o[r]&&(i+="="+encodeURIComponent(String(o[r]))),n.push(i)}}return this.i=n.join("&")};var lVe=class{constructor(n,e){this.g=n,this.map=e}};function Qre(n){this.l=n||cVe,n=cn.PerformanceNavigationTiming?0<(n=cn.performance.getEntriesByType("navigation")).length&&("hq"==n[0].nextHopProtocol||"h2"==n[0].nextHopProtocol):!!(cn.g&&cn.g.Ka&&cn.g.Ka()&&cn.g.Ka().ec),this.j=n?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}var cVe=10;function Jre(n){return!!n.h||!!n.g&&n.g.size>=n.j}function Xre(n){return n.h?1:n.g?n.g.size:0}function wY(n,e){return n.h?n.h==e:!!n.g&&n.g.has(e)}function bY(n,e){n.g?n.g.add(e):n.h=e}function Zre(n,e){n.h&&n.h==e?n.h=null:n.g&&n.g.has(e)&&n.g.delete(e)}function eie(n){if(null!=n.h)return n.i.concat(n.h.F);if(null!=n.g&&0!==n.g.size){let e=n.i;for(const t of n.g.values())e=e.concat(t.F);return e}return q4(n.i)}Qre.prototype.cancel=function(){if(this.i=eie(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(const n of this.g.values())n.cancel();this.g.clear()}};var uVe=class{stringify(n){return cn.JSON.stringify(n,void 0)}parse(n){return cn.JSON.parse(n,void 0)}};function dVe(){this.g=new uVe}function hVe(n,e,t){const r=t||"";try{Hre(n,function(i,s){let o=i;TI(i)&&(o=cY(i)),e.push(r+s+"="+encodeURIComponent(o))})}catch(i){throw e.push(r+"type="+encodeURIComponent("_badmap")),i}}function Kk(n,e,t,r,i){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,i(r)}catch{}}function VI(n){this.l=n.fc||null,this.j=n.ob||!1}function Qk(n,e){Js.call(this),this.F=n,this.u=e,this.m=void 0,this.readyState=TY,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}Qs(VI,fY),VI.prototype.g=function(){return new Qk(this.l,this.j)},VI.prototype.i=function(n){return function(){return n}}({}),Qs(Qk,Js);var TY=0;function tie(n){n.j.read().then(n.Xa.bind(n)).catch(n.ka.bind(n))}function UI(n){n.readyState=4,n.l=null,n.j=null,n.A=null,jI(n)}function jI(n){n.onreadystatechange&&n.onreadystatechange.call(n)}(wt=Qk.prototype).open=function(n,e){if(this.readyState!=TY)throw this.abort(),Error("Error reopening a connection");this.C=n,this.B=e,this.readyState=1,jI(this)},wt.send=function(n){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};n&&(e.body=n),(this.F||cn).fetch(new Request(this.B,e)).then(this.$a.bind(this),this.ka.bind(this))},wt.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,UI(this)),this.readyState=TY},wt.$a=function(n){if(this.g&&(this.l=n,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=n.headers,this.readyState=2,jI(this)),this.g&&(this.readyState=3,jI(this),this.g)))if("arraybuffer"===this.responseType)n.arrayBuffer().then(this.Ya.bind(this),this.ka.bind(this));else if(typeof cn.ReadableStream<"u"&&"body"in n){if(this.j=n.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;tie(this)}else n.text().then(this.Za.bind(this),this.ka.bind(this))},wt.Xa=function(n){if(this.g){if(this.u&&n.value)this.response.push(n.value);else if(!this.u){var e=n.value?n.value:new Uint8Array(0);(e=this.A.decode(e,{stream:!n.done}))&&(this.response=this.responseText+=e)}n.done?UI(this):jI(this),3==this.readyState&&tie(this)}},wt.Za=function(n){this.g&&(this.response=this.responseText=n,UI(this))},wt.Ya=function(n){this.g&&(this.response=n,UI(this))},wt.ka=function(){this.g&&UI(this)},wt.setRequestHeader=function(n,e){this.v.append(n,e)},wt.getResponseHeader=function(n){return this.h&&this.h.get(n.toLowerCase())||""},wt.getAllResponseHeaders=function(){if(!this.h)return"";const n=[],e=this.h.entries();for(var t=e.next();!t.done;)n.push((t=t.value)[0]+": "+t[1]),t=e.next();return n.join("\r\n")},Object.defineProperty(Qk.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(n){this.m=n?"include":"same-origin"}});var pVe=cn.JSON.parse;function qi(n){Js.call(this),this.headers=new Map,this.u=n||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=nie,this.L=this.M=!1}Qs(qi,Js);var nie="",mVe=/^https?$/i,gVe=["POST","PUT"];function rie(n,e){n.h=!1,n.g&&(n.l=!0,n.g.abort(),n.l=!1),n.j=e,n.m=5,iie(n),Jk(n)}function iie(n){n.F||(n.F=!0,mo(n,"complete"),mo(n,"error"))}
1function sie(n){if(n.h&&typeof z4<"u"&&(!n.C[1]||4!=Ku(n)||2!=n.da()))if(n.v&&4==Ku(n))hY(n.La,0,n);else if(mo(n,"readystatechange"),4==Ku(n)){n.h=!1;try{const o=n.da();e:switch(o){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 r;if(r=0===o){var i=String(n.I).match(zre)[1]||null;!i&&cn.self&&cn.self.location&&(i=cn.self.location.protocol.slice(0,-1)),r=!mVe.test(i?i.toLowerCase():"")}t=r}if(t)mo(n,"complete"),mo(n,"success");else{n.m=6;try{var s=2<Ku(n)?n.g.statusText:""}catch{s=""}n.j=s+" ["+n.da()+"]",iie(n)}}finally{Jk(n)}}}function Jk(n,e){if(n.g){oie(n);const t=n.g,r=n.C[0]?()=>{}:null;n.g=null,n.C=null,e||mo(n,"ready");try{t.onreadystatechange=r}catch{}}}function oie(n){n.g&&n.L&&(n.g.ontimeout=null),n.A&&(cn.clearTimeout(n.A),n.A=null)}function Ku(n){return n.g?n.g.readyState:0}function aie(n){try{if(!n.g)return null;if("response"in n.g)return n.g.response;switch(n.K){case nie:case"text":return n.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in n.g)return n.g.mozResponseArrayBuffer}return null}catch{return null}}function lie(n){let e="";return eY(n,function(t,r){e+=r,e+=":",e+=t,e+="\r\n"}),e}function EY(n,e,t){e:{for(r in t){var r=!1;break e}r=!0}r||(t=lie(t),"string"==typeof n?null!=t&&encodeURIComponent(String(t)):hi(n,e,t))}function YI(n,e,t){return t&&t.internalChannelParams&&t.internalChannelParams[n]||e}function cie(n){this.Ga=0,this.j=[],this.l=new jk,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=YI("failFast",!1,n),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=YI("baseRetryDelayMs",5e3,n),this.hb=YI("retryDelaySeedMs",1e4,n),this.eb=YI("forwardChannelMaxRetries",2,n),this.xa=YI("forwardChannelRequestTimeoutMs",2e4,n),this.va=n&&n.xmlHttpFactory||void 0,this.Ha=n&&n.dc||!1,this.L=void 0,this.J=n&&n.supportsCrossDomainXhr||!1,this.K="",this.i=new Qre(n&&n.concurrentRequestLimit),this.Ja=new dVe,this.P=n&&n.fastHandshake||!1,this.O=n&&n.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.bb=n&&n.bc||!1,n&&n.Ea&&this.l.Ea(),n&&n.forceLongPolling&&(this.aa=!1),this.ca=!this.P&&this.aa&&n&&n.detectBufferingProxy||!1,this.qa=void 0,n&&n.longPollingTimeout&&0<n.longPollingTimeout&&(this.qa=n.longPollingTimeout),this.oa=void 0,this.S=0,this.M=!1,this.ma=this.B=null}function MY(n){if(uie(n),3==n.H){var e=n.W++,t=ah(n.I);if(hi(t,"SID",n.K),hi(t,"RID",e),hi(t,"TYPE","terminate"),BI(n,t),(e=new PI(n,n.l,e)).L=2,e.v=Gk(ah(t)),t=!1,cn.navigator&&cn.navigator.sendBeacon)try{t=cn.navigator.sendBeacon(e.v.toString(),"")}catch{}!t&&cn.Image&&((new Image).src=e.v,t=!0),t||(e.g=vie(e.l,null),e.g.ha(e.v)),e.G=Date.now(),RI(e)}_ie(n)}function Xk(n){n.g&&(DY(n),n.g.cancel(),n.g=null)}function uie(n){Xk(n),n.u&&(cn.clearTimeout(n.u),n.u=null),eP(n),n.i.cancel(),n.m&&("number"==typeof n.m&&cn.clearTimeout(n.m),n.m=null)}function Zk(n){if(!Jre(n.i)&&!n.m){n.m=!0;var e=n.Na;DI||Dre(),CI||(DI(),CI=!0),uY.add(e,n),n.C=0}}function die(n,e){var t;t=e?e.m:n.W++;const r=ah(n.I);hi(r,"SID",n.K),hi(r,"RID",t),hi(r,"AID",n.V),BI(n,r),n.o&&n.s&&EY(r,n.o,n.s),t=new PI(n,n.l,t,n.C+1),null===n.o&&(t.I=n.s),e&&(n.j=e.F.concat(n.j)),e=hie(n,t,1e3),t.setTimeout(Math.round(.5*n.xa)+Math.round(.5*n.xa*Math.random())),bY(n.i,t),yY(t,r,e)}function BI(n,e){n.na&&eY(n.na,function(t,r){hi(e,r,t)}),n.h&&Hre({},function(t,r){hi(e,r,t)})}function hie(n,e,t){t=Math.min(n.j.length,t);var r=n.h?Vo(n.h.Va,n.h,n):null;e:{var i=n.j;let s=-1;for(;;){const o=["count="+t];-1==s?0<t?(s=i[0].g,o.push("ofs="+s)):s=0:o.push("ofs="+s);let a=!0;for(let l=0;l<t;l++){let c=i[l].g;const u=i[l].map;if(c-=s,0>c)s=Math.max(0,i[l].g-100),a=!1;else try{hVe(u,o,"req"+c+"_")}catch{r&&r(u)}}if(a){r=o.join("&");break e}}}return n=n.j.splice(0,t),e.F=n,r}function fie(n){if(!n.g&&!n.u){n.ba=1;var e=n.Ma;DI||Dre(),CI||(DI(),CI=!0),uY.add(e,n),n.A=0}}function IY(n){return!(n.g||n.u||3<=n.A||(n.ba++,n.u=xI(Vo(n.Ma,n),gie(n,n.A)),n.A++,0))}function DY(n){null!=n.B&&(cn.clearTimeout(n.B),n.B=null)}function pie(n){n.g=new PI(n,n.l,"rpc",n.ba),null===n.o&&(n.g.I=n.s),n.g.O=0;var e=ah(n.wa);hi(e,"RID","rpc"),hi(e,"SID",n.K),hi(e,"AID",n.V),hi(e,"CI",n.G?"0":"1"),!n.G&&n.qa&&hi(e,"TO",n.qa),hi(e,"TYPE","xmlhttp"),BI(n,e),n.o&&n.s&&EY(e,n.o,n.s),n.L&&n.g.setTimeout(n.L);var t=n.g;n=n.pa,t.L=1,t.v=Gk(ah(e)),t.s=null,t.S=!0,Ure(t,n)}function eP(n){null!=n.v&&(cn.clearTimeout(n.v),n.v=null)}function mie(n,e){var t=null;if(n.g==e){eP(n),DY(n),n.g=null;var r=2}else{if(!wY(n.i,e))return;t=e.F,Zre(n.i,e),r=1}if(0!=n.H)if(e.i)if(1==r){t=e.s?e.s.length:0,e=Date.now()-e.G;var i=n.C;mo(r=Yk(),new Lre(r,t)),Zk(n)}else fie(n);else if(3==(i=e.o)||0==i&&0<e.ca||!(1==r&&function vVe(n,e){return!(Xre(n.i)>=n.i.j-(n.m?1:0)||(n.m?(n.j=e.F.concat(n.j),0):1==n.H||2==n.H||n.C>=(n.cb?0:n.eb)||(n.m=xI(Vo(n.Na,n,e),gie(n,n.C)),n.C++,0)))}(n,e)||2==r&&IY(n)))switch(t&&0<t.length&&(e=n.i,e.i=e.i.concat(t)),i){case 1:e_(n,5);break;case 4:e_(n,10);break;case 3:e_(n,6);break;default:e_(n,2)}}function gie(n,e){let t=n.ab+Math.floor(Math.random()*n.hb);return n.isActive()||(t*=2),t*e}function e_(n,e){if(n.l.info("Error code "+e),2==e){var t=null;n.h&&(t=null);var r=Vo(n.pb,n);t||(t=new Zg("//www.google.com/images/cleardot.gif"),cn.location&&"http"==cn.location.protocol||qk(t,"https"),Gk(t)),function fVe(n,e){const t=new jk;
1if(cn.Image){const r=new Image;r.onload=Lk(Kk,t,r,"TestLoadImage: loaded",!0,e),r.onerror=Lk(Kk,t,r,"TestLoadImage: error",!1,e),r.onabort=Lk(Kk,t,r,"TestLoadImage: abort",!1,e),r.ontimeout=Lk(Kk,t,r,"TestLoadImage: timeout",!1,e),cn.setTimeout(function(){r.ontimeout&&r.ontimeout()},1e4),r.src=n}else e(!1)}(t.toString(),r)}else ha(2);n.H=0,n.h&&n.h.za(e),_ie(n),uie(n)}function _ie(n){if(n.H=0,n.ma=[],n.h){const e=eie(n.i);(0!=e.length||0!=n.j.length)&&(hre(n.ma,e),hre(n.ma,n.j),n.i.i.length=0,q4(n.j),n.j.length=0),n.h.ya()}}function yie(n,e,t){var r=t instanceof Zg?ah(t):new Zg(t);if(""!=r.g)e&&(r.g=e+"."+r.g),Wk(r,r.m);else{var i=cn.location;r=i.protocol,e=e?e+"."+i.hostname:i.hostname,i=+i.port;var s=new Zg(null);r&&qk(s,r),e&&(s.g=e),i&&Wk(s,i),t&&(s.l=t),r=s}return e=n.Da,(t=n.F)&&e&&hi(r,t,e),hi(r,"VER",n.ra),BI(n,r),r}function vie(n,e,t){if(e&&!n.J)throw Error("Can't create secondary domain capable XhrIo object.");return(e=new qi(t&&n.Ha&&!n.va?new VI({ob:!0}):n.va)).Oa(n.J),e}function wie(){}function tP(){if(dw&&!(10<=Number(PFe)))throw Error("Environmental error: no available transport.")}function Il(n,e){Js.call(this),this.g=new cie(e),this.l=n,this.h=e&&e.messageUrlParams||null,n=e&&e.messageHeaders||null,e&&e.clientProtocolHeaderRequired&&(n?n["X-Client-Protocol"]="webchannel":n={"X-Client-Protocol":"webchannel"}),this.g.s=n,n=e&&e.initMessageHeaders||null,e&&e.messageContentType&&(n?n["X-WebChannel-Content-Type"]=e.messageContentType:n={"X-WebChannel-Content-Type":e.messageContentType}),e&&e.Ca&&(n?n["X-WebChannel-Client-Profile"]=e.Ca:n={"X-WebChannel-Client-Profile":e.Ca}),this.g.U=n,(n=e&&e.cc)&&!EI(n)&&(this.g.o=n),this.A=e&&e.supportsCrossDomainXhr||!1,this.v=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!EI(e)&&(this.g.F=e,null!==(n=this.h)&&e in n&&e in(n=this.h)&&delete n[e]),this.j=new pw(this)}function bie(n){pY.call(this),n.__headers__&&(this.headers=n.__headers__,this.statusCode=n.__status__,delete n.__headers__,delete n.__status__);var e=n.__sm__;if(e){e:{for(const t in e){n=t;break e}n=void 0}(this.i=n)&&(n=this.i,e=null!==e&&n in e?e[n]:void 0),this.data=e}else this.data=n}function Tie(){mY.call(this),this.status=1}function pw(n){this.g=n}function $c(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.m=Array(this.blockSize),this.i=this.h=0,this.reset()}function CY(n,e,t){t||(t=0);var r=Array(16);if("string"==typeof e)for(var i=0;16>i;++i)r[i]=e.charCodeAt(t++)|e.charCodeAt(t++)<<8|e.charCodeAt(t++)<<16|e.charCodeAt(t++)<<24;else for(i=0;16>i;++i)r[i]=e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24;var s=n.g[3],o=(e=n.g[0])+(s^(t=n.g[1])&((i=n.g[2])^s))+r[0]+3614090360&4294967295;o=(t=(i=(s=(e=(t=(i=(s=(e=(t=(i=(s=(e=(t=(i=(s=(e=(t=(i=(s=(e=(t=(i=(s=(e=(t=(i=(s=(e=(t=(i=(s=(e=(t=(i=(s=(e=(t=(i=(s=(e=(t=(i=(s=(e=(t=(i=(s=(e=(t=(i=(s=(e=(t=(i=(s=(e=(t=(i=(s=(e=t+(o<<7&4294967295|o>>>25))+((o=s+(i^e&(t^i))+r[1]+3905402710&4294967295)<<12&4294967295|o>>>20))+((o=i+(t^s&(e^t))+r[2]+606105819&4294967295)<<17&4294967295|o>>>15))+((o=t+(e^i&(s^e))+r[3]+3250441966&4294967295)<<22&4294967295|o>>>10))+((o=e+(s^t&(i^s))+r[4]+4118548399&4294967295)<<7&4294967295|o>>>25))+((o=s+(i^e&(t^i))+r[5]+1200080426&4294967295)<<12&4294967295|o>>>20))+((o=i+(t^s&(e^t))+r[6]+2821735955&4294967295)<<17&4294967295|o>>>15))+((o=t+(e^i&(s^e))+r[7]+4249261313&4294967295)<<22&4294967295|o>>>10))+((o=e+(s^t&(i^s))+r[8]+1770035416&4294967295)<<7&4294967295|o>>>25))+((o=s+(i^e&(t^i))+r[9]+2336552879&4294967295)<<12&4294967295|o>>>20))+((o=i+(t^s&(e^t))+r[10]+4294925233&4294967295)<<17&4294967295|o>>>15))+((o=t+(e^i&(s^e))+r[11]+2304563134&4294967295)<<22&4294967295|o>>>10))+((o=e+(s^t&(i^s))+r[12]+1804603682&4294967295)<<7&4294967295|o>>>25))+((o=s+(i^e&(t^i))+r[13]+4254626195&4294967295)<<12&4294967295|o>>>20))+((o=i+(t^s&(e^t))+r[14]+2792965006&4294967295)<<17&4294967295|o>>>15))+((o=t+(e^i&(s^e))+r[15]+1236535329&4294967295)<<22&4294967295|o>>>10))+((o=e+(i^s&(t^i))+r[1]+4129170786&4294967295)<<5&4294967295|o>>>27))+((o=s+(t^i&(e^t))+r[6]+3225465664&4294967295)<<9&4294967295|o>>>23))+((o=i+(e^t&(s^e))+r[11]+643717713&4294967295)<<14&4294967295|o>>>
118))+((o=t+(s^e&(i^s))+r[0]+3921069994&4294967295)<<20&4294967295|o>>>12))+((o=e+(i^s&(t^i))+r[5]+3593408605&4294967295)<<5&4294967295|o>>>27))+((o=s+(t^i&(e^t))+r[10]+38016083&4294967295)<<9&4294967295|o>>>23))+((o=i+(e^t&(s^e))+r[15]+3634488961&4294967295)<<14&4294967295|o>>>18))+((o=t+(s^e&(i^s))+r[4]+3889429448&4294967295)<<20&4294967295|o>>>12))+((o=e+(i^s&(t^i))+r[9]+568446438&4294967295)<<5&4294967295|o>>>27))+((o=s+(t^i&(e^t))+r[14]+3275163606&4294967295)<<9&4294967295|o>>>23))+((o=i+(e^t&(s^e))+r[3]+4107603335&4294967295)<<14&4294967295|o>>>18))+((o=t+(s^e&(i^s))+r[8]+1163531501&4294967295)<<20&4294967295|o>>>12))+((o=e+(i^s&(t^i))+r[13]+2850285829&4294967295)<<5&4294967295|o>>>27))+((o=s+(t^i&(e^t))+r[2]+4243563512&4294967295)<<9&4294967295|o>>>23))+((o=i+(e^t&(s^e))+r[7]+1735328473&4294967295)<<14&4294967295|o>>>18))+((o=t+(s^e&(i^s))+r[12]+2368359562&4294967295)<<20&4294967295|o>>>12))+((o=e+(t^i^s)+r[5]+4294588738&4294967295)<<4&4294967295|o>>>28))+((o=s+(e^t^i)+r[8]+2272392833&4294967295)<<11&4294967295|o>>>21))+((o=i+(s^e^t)+r[11]+1839030562&4294967295)<<16&4294967295|o>>>16))+((o=t+(i^s^e)+r[14]+4259657740&4294967295)<<23&4294967295|o>>>9))+((o=e+(t^i^s)+r[1]+2763975236&4294967295)<<4&4294967295|o>>>28))+((o=s+(e^t^i)+r[4]+1272893353&4294967295)<<11&4294967295|o>>>21))+((o=i+(s^e^t)+r[7]+4139469664&4294967295)<<16&4294967295|o>>>16))+((o=t+(i^s^e)+r[10]+3200236656&4294967295)<<23&4294967295|o>>>9))+((o=e+(t^i^s)+r[13]+681279174&4294967295)<<4&4294967295|o>>>28))+((o=s+(e^t^i)+r[0]+3936430074&4294967295)<<11&4294967295|o>>>21))+((o=i+(s^e^t)+r[3]+3572445317&4294967295)<<16&4294967295|o>>>16))+((o=t+(i^s^e)+r[6]+76029189&4294967295)<<23&4294967295|o>>>9))+((o=e+(t^i^s)+r[9]+3654602809&4294967295)<<4&4294967295|o>>>28))+((o=s+(e^t^i)+r[12]+3873151461&4294967295)<<11&4294967295|o>>>21))+((o=i+(s^e^t)+r[15]+530742520&4294967295)<<16&4294967295|o>>>16))+((o=t+(i^s^e)+r[2]+3299628645&4294967295)<<23&4294967295|o>>>9))+((o=e+(i^(t|~s))+r[0]+4096336452&4294967295)<<6&4294967295|o>>>26))+((o=s+(t^(e|~i))+r[7]+1126891415&4294967295)<<10&4294967295|o>>>22))+((o=i+(e^(s|~t))+r[14]+2878612391&4294967295)<<15&4294967295|o>>>17))+((o=t+(s^(i|~e))+r[5]+4237533241&4294967295)<<21&4294967295|o>>>11))+((o=e+(i^(t|~s))+r[12]+1700485571&4294967295)<<6&4294967295|o>>>26))+((o=s+(t^(e|~i))+r[3]+2399980690&4294967295)<<10&4294967295|o>>>22))+((o=i+(e^(s|~t))+r[10]+4293915773&4294967295)<<15&4294967295|o>>>17))+((o=t+(s^(i|~e))+r[1]+2240044497&4294967295)<<21&4294967295|o>>>11))+((o=e+(i^(t|~s))+r[8]+1873313359&4294967295)<<6&4294967295|o>>>26))+((o=s+(t^(e|~i))+r[15]+4264355552&4294967295)<<10&4294967295|o>>>22))+((o=i+(e^(s|~t))+r[6]+2734768916&4294967295)<<15&4294967295|o>>>17))+((o=t+(s^(i|~e))+r[13]+1309151649&4294967295)<<21&4294967295|o>>>11))+((s=(e=t+((o=e+(i^(t|~s))+r[4]+4149444226&4294967295)<<6&4294967295|o>>>26))+((o=s+(t^(e|~i))+r[11]+3174756917&4294967295)<<10&4294967295|o>>>22))^((i=s+((o=i+(e^(s|~t))+r[2]+718787259&4294967295)<<15&4294967295|o>>>17))|~e))+r[9]+3951481745&4294967295,n.g[0]=n.g[0]+e&4294967295,n.g[1]=n.g[1]+(i+(o<<21&4294967295|o>>>11))&4294967295,n.g[2]=n.g[2]+i&4294967295,n.g[3]=n.g[3]+s&4294967295}function wr(n,e){this.h=e;for(var t=[],r=!0,i=n.length-1;0<=i;i--){var s=0|n[i];r&&s==e||(t[i]=s,r=!1)}this.g=t}(wt=qi.prototype).Oa=function(n){this.M=n},wt.ha=function(n,e,t,r){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.I+"; newUri="+n);e=e?e.toUpperCase():"GET",this.I=n,this.j="",this.m=0,this.F=!1,this.h=!0,this.g=this.u?this.u.g():gY.g(),this.C=function Nre(n){return n.h||(n.h=n.i())}(this.u?this.u:gY),this.g.onreadystatechange=Vo(this.La,this);try{this.G=!0,this.g.open(e,String(n),!0),this.G=!1}catch(s){return void rie(this,s)}if(n=t||"",t=new Map(this.headers),r)if(Object.getPrototypeOf(r)===Object.prototype)for(var i in r)t.set(i,r[i]);else{if("function"!=typeof r.keys||"function"!=typeof r.get)throw Error("Unknown input type for opt_headers: "+String(r));for(const s of r.keys())t.set(s,r.get(s))}r=Array.from(t.keys()).find(s=>"content-type"==s.toLowerCase()),i=cn.FormData&&n instanceof cn.FormData,!(0<=dre(gVe,e))||r||i||t.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[s,o]of t)this.g.setRequestHeader(s,o);this.K&&(this.g.responseType=this.K),"withCredentials"in this.g&&this.g.withCredentials!==this.M&&(this.g.withCredentials=this.M);try{oie(this),0<this.B&&((this.L=function _Ve(n){return dw&&"number"==typeof n.timeout&&void 0!==n.ontimeout}(this.g))?(this.g.timeout=this.B,this.g.ontimeout=Vo(this.ua,this)):this.A=hY(this.ua,this.B,this)),this.v=!0,this.g.send(n),this.v=!1}catch(s){rie(this,s)}},wt.ua=function(){typeof z4<"u"&&this.g&&(this.j="Timed out after "+this.B+"ms, aborting",this.m=8,mo(this,"timeout"),this.abort(8))},wt.abort=function(n){this.g&&this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1,this.m=n||7,mo(this,"complete"),mo(this,"abort"),Jk(this))},wt.N=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),Jk(this,!0)),qi.$.N.call(this)},wt.La=function(){this.s||(this.G||this.v||this.l?sie(this):this.kb())},wt.kb=function(){sie(this)},wt.isActive=function(){return!!this.g},wt.da=function(){try{return 2<Ku(this)?this.g.status:-1}catch{return-1}},wt.ja=function(){try{return this.g?this.g.responseText:""}catch{return""}},wt.Wa=function(n){if(this.g){var e=this.g.responseText;return n&&0==e.indexOf(n)&&(e=e.substring(n.length)),pVe(e)}},wt.Ia=function(){return this.m},wt.Sa=function(){return"string"==typeof this.j?this.j:String(this.j)},(wt=cie.prototype).ra=8,wt.H=1,wt.Na=function(n){if(this.m)if(this.m=null,1==this.H){if(!n){this.W=Math.floor(1e5*Math.random()),n=this.W++;const i=new PI(this,this.l,n);let s=this.s;if(this.U&&(s?(s=_re(s),vre(s,this.U)):s=this.U),null!==this.o||this.O||(i.I=s,s=null),this.P)e:{for(var e=0,t=0;t<this.j.length;t++){var r=this.j[t];if(void 0===(r="__data__"in r.map&&"string"==typeof(r=r.map.__data__)?r.length:void 0))break;if(4096<(e+=r)){e=t;break e}if(4096===e||t===this.j.length-1){e=t+1;break e}}e=1e3}else e=1e3;
1e=hie(this,i,e),hi(t=ah(this.I),"RID",n),hi(t,"CVER",22),this.F&&hi(t,"X-HTTP-Session-Id",this.F),BI(this,t),s&&(this.O?e="headers="+encodeURIComponent(String(lie(s)))+"&"+e:this.o&&EY(t,this.o,s)),bY(this.i,i),this.bb&&hi(t,"TYPE","init"),this.P?(hi(t,"$req",e),hi(t,"SID","null"),i.aa=!0,yY(i,t,null)):yY(i,t,e),this.H=2}}else 3==this.H&&(n?die(this,n):0==this.j.length||Jre(this.i)||die(this))},wt.Ma=function(){if(this.u=null,pie(this),this.ca&&!(this.M||null==this.g||0>=this.S)){var n=2*this.S;this.l.info("BP detection timer enabled: "+n),this.B=xI(Vo(this.jb,this),n)}},wt.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,ha(10),Xk(this),pie(this))},wt.ib=function(){null!=this.v&&(this.v=null,Xk(this),IY(this),ha(19))},wt.pb=function(n){n?(this.l.info("Successfully pinged google.com"),ha(2)):(this.l.info("Failed to ping google.com"),ha(1))},wt.isActive=function(){return!!this.h&&this.h.isActive(this)},(wt=wie.prototype).Ba=function(){},wt.Aa=function(){},wt.za=function(){},wt.ya=function(){},wt.isActive=function(){return!0},wt.Va=function(){},tP.prototype.g=function(n,e){return new Il(n,e)},Qs(Il,Js),Il.prototype.m=function(){this.g.h=this.j,this.A&&(this.g.J=!0);var n=this.g,e=this.l,t=this.h||void 0;ha(0),n.Y=e,n.na=t||{},n.G=n.aa,n.I=yie(n,null,n.Y),Zk(n)},Il.prototype.close=function(){MY(this.g)},Il.prototype.u=function(n){var e=this.g;if("string"==typeof n){var t={};t.__data__=n,n=t}else this.v&&((t={}).__data__=cY(n),n=t);e.j.push(new lVe(e.fb++,n)),3==e.H&&Zk(e)},Il.prototype.N=function(){this.g.h=null,delete this.j,MY(this.g),delete this.g,Il.$.N.call(this)},Qs(bie,pY),Qs(Tie,mY),Qs(pw,wie),pw.prototype.Ba=function(){mo(this.g,"a")},pw.prototype.Aa=function(n){mo(this.g,new bie(n))},pw.prototype.za=function(n){mo(this.g,new Tie)},pw.prototype.ya=function(){mo(this.g,"b")},Qs($c,function wVe(){this.blockSize=-1}),$c.prototype.reset=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.i=this.h=0},$c.prototype.j=function(n,e){void 0===e&&(e=n.length);for(var t=e-this.blockSize,r=this.m,i=this.h,s=0;s<e;){if(0==i)for(;s<=t;)CY(this,n,s),s+=this.blockSize;if("string"==typeof n){for(;s<e;)if(r[i++]=n.charCodeAt(s++),i==this.blockSize){CY(this,r),i=0;break}}else for(;s<e;)if(r[i++]=n[s++],i==this.blockSize){CY(this,r),i=0;break}}this.h=i,this.i+=e},$c.prototype.l=function(){var n=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);n[0]=128;for(var e=1;e<n.length-8;++e)n[e]=0;var t=8*this.i;for(e=n.length-8;e<n.length;++e)n[e]=255&t,t/=256;for(this.j(n),n=Array(16),e=t=0;4>e;++e)for(var r=0;32>r;r+=8)n[t++]=this.g[e]>>>r&255;return n};var bVe={};function SY(n){return-128<=n&&128>n?function AFe(n,e){var t=bVe;return Object.prototype.hasOwnProperty.call(t,n)?t[n]:t[n]=e(n)}(n,function(e){return new wr([0|e],0>e?-1:0)}):new wr([0|n],0>n?-1:0)}function Qu(n){if(isNaN(n)||!isFinite(n))return mw;if(0>n)return go(Qu(-n));for(var e=[],t=1,r=0;n>=t;r++)e[r]=n/t|0,t*=AY;return new wr(e,0)}var AY=4294967296,mw=SY(0),xY=SY(1),Mie=SY(16777216);function lh(n){if(0!=n.h)return!1;for(var e=0;e<n.g.length;e++)if(0!=n.g[e])return!1;return!0}function sc(n){return-1==n.h}function go(n){for(var e=n.g.length,t=[],r=0;r<e;r++)t[r]=~n.g[r];return new wr(t,~n.h).add(xY)}function nP(n,e){return n.add(go(e))}function rP(n,e){for(;(65535&n[e])!=n[e];)n[e+1]+=n[e]>>>16,n[e]&=65535,e++}function HI(n,e){this.g=n,this.h=e}function iP(n,e){if(lh(e))throw Error("division by zero");if(lh(n))return new HI(mw,mw);if(sc(n))return e=iP(go(n),e),new HI(go(e.g),go(e.h));if(sc(e))return e=iP(n,go(e)),new HI(go(e.g),e.h);if(30<n.g.length){if(sc(n)||sc(e))throw Error("slowDivide_ only works with positive integers.");for(var t=xY,r=e;0>=r.X(n);)t=Iie(t),r=Iie(r);var i=gw(t,1),s=gw(r,1);for(r=gw(r,2),t=gw(t,2);!lh(r);){var o=s.add(r);0>=o.X(n)&&(i=i.add(t),s=o),r=gw(r,1),t=gw(t,1)}return e=nP(n,i.R(e)),new HI(i,e)}for(i=mw;0<=n.X(e);){for(t=Math.max(1,Math.floor(n.ea()/e.ea())),r=48>=(r=Math.ceil(Math.log(t)/Math.LN2))?1:Math.pow(2,r-48),o=(s=Qu(t)).R(e);sc(o)||0<o.X(n);)o=(s=Qu(t-=r)).R(e);lh(s)&&(s=xY),i=i.add(s),n=nP(n,o)}return new HI(i,n)}function Iie(n){for(var e=n.g.length+1,t=[],r=0;r<e;r++)t[r]=n.D(r)<<1|n.D(r-1)>>>31;return new wr(t,n.h)}function gw(n,e){var t=e>>5;e%=32;for(var r=n.g.length-t,i=[],s=0;s<r;s++)i[s]=0<e?n.D(s+t)>>>e|n.D(s+t+1)<<32-e:n.D(s+t);return new wr(i,n.h)}(wt=wr.prototype).ea=function(){if(sc(this))return-go(this).ea();for(var n=0,e=1,t=0;t<this.g.length;t++){var r=this.D(t);n+=(0<=r?r:AY+r)*e,e*=AY}return n},wt.toString=function(n){if(2>(n=n||10)||36<n)throw Error("radix out of range: "+n);if(lh(this))return"0";if(sc(this))return"-"+go(this).toString(n);for(var e=Qu(Math.pow(n,6)),t=this,r="";;){var i=iP(t,e).g,s=((0<(t=nP(t,i.R(e))).g.length?t.g[0]:t.h)>>>0).toString(n);if(lh(t=i))return s+r;for(;6>s.length;)s="0"+s;r=s+r}},wt.D=function(n){return 0>n?0:n<this.g.length?this.g[n]:this.h},wt.X=function(n){return sc(n=nP(this,n))?-1:lh(n)?0:1},wt.abs=function(){return sc(this)?go(this):this},wt.add=function(n){for(var e=Math.max(this.g.length,n.g.length),t=[],r=0,i=0;i<=e;i++){var s=r+(65535&this.D(i))+(65535&n.D(i)),o=(s>>>16)+(this.D(i)>>>16)+(n.D(i)>>>16);r=o>>>16,t[i]=(o&=65535)<<16|(s&=65535)}return new wr(t,-2147483648&t[t.length-1]?-1:0)},wt.R=function(n){if(lh(this)||lh(n))return mw;if(sc(this))return sc(n)?go(this).R(go(n)):go(go(this).R(n));if(sc(n))return go(this.R(go(n)));if(0>this.X(Mie)&&0>n.X(Mie))return Qu(this.ea()*n.ea());for(var e=this.g.length+n.g.length,t=[],r=0;r<2*e;r++)t[r]=0;for(r=0;r<this.g.length;r++)for(var i=0;i<n.g.length;i++){var s=this.D(r)>>>16,o=65535&this.D(r),a=n.D(i)>>>16,l=65535&n.D(i);t[2*r+2*i]+=o*l,rP(t,2*r+2*i),t[2*r+2*i+1]+=s*l,rP(t,2*r+2*i+1),t[2*r+2*i+1]+=o*a,rP(t,2*r+2*i+1),t[2*r+2*i+2]+=s*a,rP(t,2*r+2*i+2)}for(r=0;r<e;r++)t[r]=t[2*r+1]<<16|t[2*r];for(r=e;r<2*e;r++)t[r]=0;return new wr(t,0)},wt.gb=function(n){return iP(this,n).h},wt.and=function(n){for(var e=Math.max(this.g.length,n.g.length),t=[],r=0;r<e;r++)t[r]=this.D(r)&n.D(r);return new wr(t,this.h&n.h)},wt.or=function(n){for(var e=Math.max(this.g.length,n.g.length),t=[],r=0;r<e;r++)t[r]=this.D(r)|n.D(r);return new wr(t,this.h|n.h)},wt.xor=function(n){for(var e=Math.max(this.g.length,n.g.length),t=[],r=0;r<e;r++)t[r]=this.D(r)^n.D(r);return new wr(t,this.h^n.h)},tP.prototype.createWebChannel=tP.prototype.g,Il.prototype.send=Il.prototype.u,Il.prototype.open=Il.prototype.m,Il.prototype.close=Il.prototype.close,Bk.NO_ERROR=0,Bk.TIMEOUT=8,Bk.HTTP_ERROR=6,Ore.COMPLETE="complete",Fre.EventType=kI,kI.OPEN="a",kI.CLOSE="b",kI.ERROR="c",kI.MESSAGE="d",Js.prototype.listen=Js.prototype.O,qi.prototype.listenOnce=qi.prototype.P,qi.prototype.getLastError=qi.prototype.Sa,qi.prototype.getLastErrorCode=qi.prototype.Ia,qi.prototype.getStatus=qi.prototype.da,qi.prototype.getResponseJson=qi.prototype.Wa,qi.prototype.getResponseText=q
1i.prototype.ja,qi.prototype.send=qi.prototype.ha,qi.prototype.setWithCredentials=qi.prototype.Oa,$c.prototype.digest=$c.prototype.l,$c.prototype.reset=$c.prototype.reset,$c.prototype.update=$c.prototype.j,wr.prototype.add=wr.prototype.add,wr.prototype.multiply=wr.prototype.R,wr.prototype.modulo=wr.prototype.gb,wr.prototype.compare=wr.prototype.X,wr.prototype.toNumber=wr.prototype.ea,wr.prototype.toString=wr.prototype.toString,wr.prototype.getBits=wr.prototype.D,wr.fromNumber=Qu,wr.fromString=function Eie(n,e){if(0==n.length)throw Error("number format error: empty string");if(2>(e=e||10)||36<e)throw Error("radix out of range: "+e);if("-"==n.charAt(0))return go(Eie(n.substring(1),e));if(0<=n.indexOf("-"))throw Error('number format error: interior "-" character');for(var t=Qu(Math.pow(e,8)),r=mw,i=0;i<n.length;i+=8){var s=Math.min(8,n.length-i),o=parseInt(n.substring(i,i+s),e);8>s?(s=Qu(Math.pow(e,s)),r=r.R(s).add(Qu(o))):r=(r=r.R(t)).add(Qu(o))}return r},zc.createWebChannelTransport=function(){return new tP},zc.getStatEventTarget=function(){return Yk()},zc.ErrorCode=Bk,zc.EventType=Ore,zc.Event=Jg,zc.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},zc.FetchXmlHttpFactory=VI,zc.WebChannel=Fre,zc.XhrIo=qi,zc.Md5=$c;var _w=zc.Integer=wr;const Cie="@firebase/firestore";class Xs{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}}Xs.UNAUTHENTICATED=new Xs(null),Xs.GOOGLE_CREDENTIALS=new Xs("google-credentials-uid"),Xs.FIRST_PARTY=new Xs("first-party-uid"),Xs.MOCK_USER=new Xs("mock-user");let yw="9.23.0";const ap=new ire("@firebase/firestore");function Je(n,...e){if(ap.logLevel<=cr.DEBUG){const t=e.map(RY);ap.debug(`Firestore (${yw}): ${n}`,...t)}}function ds(n,...e){if(ap.logLevel<=cr.ERROR){const t=e.map(RY);ap.error(`Firestore (${yw}): ${n}`,...t)}}function RY(n){if("string"==typeof n)return n;try{return JSON.stringify(n)}catch{return n}}function At(n="Unexpected state"){const e=`FIRESTORE (${yw}) INTERNAL ASSERTION FAILED: `+n;throw ds(e),new Error(e)}function Nt(n,e){n||At()}const Ae_CANCELLED="cancelled",Ae_INVALID_ARGUMENT="invalid-argument",Ae_FAILED_PRECONDITION="failed-precondition",Ae_UNAVAILABLE="unavailable";class qe extends uw{constructor(e,t){super(e,t),this.code=e,this.message=t,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class Ns{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}class Sie{constructor(e,t){this.user=t,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}}class AVe{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,t){e.enqueueRetryable(()=>t(Xs.UNAUTHENTICATED))}shutdown(){}}class kVe{constructor(e){this.t=e,this.currentUser=Xs.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,t){var r=this;let i=this.i;const s=c=>this.i!==i?(i=this.i,t(c)):Promise.resolve();let o=new Ns;this.o=()=>{this.i++,this.currentUser=this.u(),o.resolve(),o=new Ns,e.enqueueRetryable(()=>s(this.currentUser))};const a=()=>{const c=o;e.enqueueRetryable((0,ee.A)(function*(){yield c.promise,yield s(r.currentUser)}))},l=c=>{Je("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=c,this.auth.addAuthTokenListener(this.o),a()};this.t.onInit(c=>l(c)),setTimeout(()=>{if(!this.auth){const c=this.t.getImmediate({optional:!0});c?l(c):(Je("FirebaseAuthCredentialsProvider","Auth not yet detected"),o.resolve(),o=new Ns)}},0),a()}getToken(){const e=this.i,t=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(t).then(r=>this.i!==e?(Je("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):r?(Nt("string"==typeof r.accessToken),new Sie(r.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 Nt(null===e||"string"==typeof e),new Xs(e)}}class PVe{constructor(e,t,r){this.h=e,this.l=t,this.m=r,this.type="FirstParty",this.user=Xs.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 RVe{constructor(e,t,r){this.h=e,this.l=t,this.m=r}getToken(){return Promise.resolve(new PVe(this.h,this.l,this.m))}start(e,t){e.enqueueRetryable(()=>t(Xs.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class Aie{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 LVe{constructor(e){this.I=e,this.forceRefresh=!1,this.appCheck=null,this.T=null}start(e,t){const r=s=>{null!=s.error&&Je("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${s.error.message}`);const o=s.token!==this.T;return this.T=s.token,Je("FirebaseAppCheckTokenProvider",`Received ${o?"new":"existing"} token.`),o?t(s.token):Promise.resolve()};this.o=s=>{e.enqueueRetryable(()=>r(s))};const i=s=>{Je("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=s,this.appCheck.addTokenListener(this.o)};this.I.onInit(s=>i(s)),setTimeout(()=>{if(!this.appCheck){const s=this.I.getImmediate({optional:!0});s?i(s):Je("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then(t=>t?(Nt("string"==typeof t.token),this.T=t.token,new Aie(t.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function OVe(n){const e=typeof self<"u"&&(self.crypto||self.msCrypto),t=new Uint8Array(n);if(e&&"function"==typeof e.getRandomValues)e.getRandomValues(t);else for(let r=0;r<n;
1r++)t[r]=Math.floor(256*Math.random());return t}class xie{static A(){const t=62*Math.floor(256/62);let r="";for(;r.length<20;){const i=OVe(40);for(let s=0;s<i.length;++s)r.length<20&&i[s]<t&&(r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(i[s]%62))}return r}}function sn(n,e){return n<e?-1:n>e?1:0}class zI{constructor(e,t,r){void 0===t?t=0:t>e.length&&At(),void 0===r?r=e.length-t:r>e.length-t&&At(),this.segments=e,this.offset=t,this.len=r}get length(){return this.len}isEqual(e){return 0===zI.comparator(this,e)}child(e){const t=this.segments.slice(this.offset,this.limit());return e instanceof zI?e.forEach(r=>{t.push(r)}):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,r=this.limit();t<r;t++)e(this.segments[t])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,t){const r=Math.min(e.length,t.length);for(let i=0;i<r;i++){const s=e.get(i),o=t.get(i);if(s<o)return-1;if(s>o)return 1}return e.length<t.length?-1:e.length>t.length?1:0}}class zn extends zI{construct(e,t,r){return new zn(e,t,r)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}static fromString(...e){const t=[];for(const r of e){if(r.indexOf("//")>=0)throw new qe(Ae_INVALID_ARGUMENT,`Invalid segment (${r}). Paths must not contain // in them.`);t.push(...r.split("/").filter(i=>i.length>0))}return new zn(t)}static emptyPath(){return new zn([])}}class _t{constructor(e){this.path=e}static fromPath(e){return new _t(zn.fromString(e))}static fromName(e){return new _t(zn.fromString(e).popFirst(5))}static empty(){return new _t(zn.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===zn.comparator(this.path,e.path)}toString(){return this.path.toString()}static comparator(e,t){return zn.comparator(e.path,t.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new _t(new zn(e.slice()))}}function cp(n){return"IndexedDbTransactionError"===n.name}class Jr{constructor(e,t){this.comparator=e,this.root=t||_o.EMPTY}insert(e,t){return new Jr(this.comparator,this.root.insert(e,t,this.comparator).copy(null,null,_o.BLACK,null,null))}remove(e){return new Jr(this.comparator,this.root.remove(e,this.comparator).copy(null,null,_o.BLACK,null,null))}get(e){let t=this.root;for(;!t.isEmpty();){const r=this.comparator(e,t.key);if(0===r)return t.value;r<0?t=t.left:r>0&&(t=t.right)}return null}indexOf(e){let t=0,r=this.root;for(;!r.isEmpty();){const i=this.comparator(e,r.key);if(0===i)return t+r.left.size;i<0?r=r.left:(t+=r.left.size+1,r=r.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,r)=>(e(t,r),!1))}toString(){const e=[];return this.inorderTraversal((t,r)=>(e.push(`${t}:${r}`),!1)),`{${e.join(", ")}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new uP(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new uP(this.root,e,this.comparator,!1)}getReverseIterator(){return new uP(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new uP(this.root,e,this.comparator,!0)}}
1class uP{constructor(e,t,r,i){this.isReverse=i,this.nodeStack=[];let s=1;for(;!e.isEmpty();)if(s=t?r(e.key,t):1,t&&i&&(s*=-1),s<0)e=this.isReverse?e.left:e.right;else{if(0===s){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 _o{constructor(e,t,r,i,s){this.key=e,this.value=t,this.color=r??_o.RED,this.left=i??_o.EMPTY,this.right=s??_o.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,t,r,i,s){return new _o(e??this.key,t??this.value,r??this.color,i??this.left,s??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,r){let i=this;const s=r(e,i.key);return i=s<0?i.copy(null,null,null,i.left.insert(e,t,r),null):0===s?i.copy(null,t,null,null,null):i.copy(null,null,null,null,i.right.insert(e,t,r)),i.fixUp()}removeMin(){if(this.left.isEmpty())return _o.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 r,i=this;if(t(e,i.key)<0)i.left.isEmpty()||i.left.isRed()||i.left.left.isRed()||(i=i.moveRedLeft()),i=i.copy(null,null,null,i.left.remove(e,t),null);else{if(i.left.isRed()&&(i=i.rotateRight()),i.right.isEmpty()||i.right.isRed()||i.right.left.isRed()||(i=i.moveRedRight()),0===t(e,i.key)){if(i.right.isEmpty())return _o.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.removeMin())}i=i.copy(null,null,null,null,i.right.remove(e,t))}return i.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,_o.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,_o.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 At();const e=this.left.check();if(e!==this.right.check())throw At();return e+(this.isRed()?0:1)}}_o.EMPTY=null,_o.RED=!0,_o.BLACK=!1,_o.EMPTY=new class{constructor(){this.size=0}get key(){throw At()}get value(){throw At()}get color(){throw At()}get left(){throw At()}get right(){throw At()}copy(n,e,t,r,i){return this}insert(n,e,t){return new _o(n,e)}remove(n,e){return this}isEmpty(){return!0}inorderTraversal(n){return!1}reverseTraversal(n){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class fi{constructor(e){this.comparator=e,this.data=new Jr(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,r)=>(e(t),!1))}forEachInRange(e,t){const r=this.data.getIteratorFrom(e[0]);for(;r.hasNext();){const i=r.getNext();if(this.comparator(i.key,e[1])>=0)return;t(i.key)}}forEachWhile(e,t){let r;for(r=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();r.hasNext();)if(!e(r.getNext().key))return}firstAfterOrEqual(e){const t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null}getIterator(){return new qie(this.data.getIterator())}getIteratorFrom(e){return new qie(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(r=>{t=t.add(r)}),t}isEqual(e){if(!(e instanceof fi)||this.size!==e.size)return!1;const t=this.data.getIterator(),r=e.data.getIterator();for(;t.hasNext();){const i=t.getNext().key,s=r.getNext().key;if(0!==this.comparator(i,s))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 fi(this.comparator);return t.data=e,t}}
1class qie{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class Wie extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class Fs{constructor(e){this.binaryString=e}static fromBase64String(e){const t=function(r){try{return atob(r)}catch(i){throw typeof DOMException<"u"&&i instanceof DOMException?new Wie("Invalid base64 string: "+i):i}}(e);return new Fs(t)}static fromUint8Array(e){const t=function(r){let i="";for(let s=0;s<r.length;++s)i+=String.fromCharCode(r[s]);return i}(e);return new Fs(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 r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return sn(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}function Wi(n){return"number"==typeof n?n:"string"==typeof n?Number(n):0}Fs.EMPTY_BYTE_STRING=new Fs(""),new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);class lUe{constructor(e,t,r,i,s,o,a,l,c){this.databaseId=e,this.appId=t,this.persistenceKey=r,this.host=i,this.ssl=s,this.forceLongPolling=o,this.autoDetectLongPolling=a,this.longPollingOptions=l,this.useFetchStreams=c}}class r_{constructor(e,t){this.projectId=e,this.database=t||"(default)"}static empty(){return new r_("","")}get isDefaultDatabase(){return"(default)"===this.database}isEqual(e){return e instanceof r_&&e.projectId===this.projectId&&e.database===this.database}}var Es,$n;new Jr(_t.comparator),new Jr(_t.comparator),new Jr(_t.comparator),new fi(_t.comparator),new fi(sn),($n=Es||(Es={}))[$n.OK=0]="OK",$n[$n.CANCELLED=1]="CANCELLED",$n[$n.UNKNOWN=2]="UNKNOWN",$n[$n.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",$n[$n.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",$n[$n.NOT_FOUND=5]="NOT_FOUND",$n[$n.ALREADY_EXISTS=6]="ALREADY_EXISTS",$n[$n.PERMISSION_DENIED=7]="PERMISSION_DENIED",$n[$n.UNAUTHENTICATED=16]="UNAUTHENTICATED",$n[$n.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",$n[$n.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",$n[$n.ABORTED=10]="ABORTED",$n[$n.OUT_OF_RANGE=11]="OUT_OF_RANGE",$n[$n.UNIMPLEMENTED=12]="UNIMPLEMENTED",$n[$n.INTERNAL=13]="INTERNAL",$n[$n.UNAVAILABLE=14]="UNAVAILABLE",$n[$n.DATA_LOSS=15]="DATA_LOSS",new _w([4294967295,4294967295],0),Error;class h_{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(Wi(e.integerValue));else if("doubleValue"in e){const r=Wi(e.doubleValue);isNaN(r)?this.ye(t,13):(this.ye(t,15),function GI(n){return 0===n&&1/n==-1/0}(r)?t.pe(0):t.pe(r))}else if("timestampValue"in e){const r=e.timestampValue;this.ye(t,20),"string"==typeof r?t.Ie(r):(t.Ie(`${r.seconds||""}`),t.pe(r.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(function ch(n){return"string"==typeof n?Fs.fromBase64String(n):Fs.fromUint8Array(n)}(e.bytesValue)),this.Ee(t);else if("referenceValue"in e)this.ve(e.referenceValue,t);else if("geoPointValue"in e){const r=e.geoPointValue;this.ye(t,45),t.pe(r.latitude||0),t.pe(r.longitude||0)}else"mapValue"in e?function Jie(n){return"__max__"===(((n.mapValue||{}).fields||{}).__type__||{}).stringValue}(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)):At()}Te(e,t){this.ye(t,25),this.be(e,t)}be(e,t){t.Ie(e)}Re(e,t){const r=e.fields||{};this.ye(t,55);for(const i of Object.keys(r))this.Te(i,t),this.me(r[i],t)}Pe(e,t){const r=e.values||[];this.ye(t,50);for(const i of r)this.me(i,t)}ve(e,t){this.ye(t,37),_t.fromName(e).path.forEach(r=>{this.ye(t,60),this.be(r,t)})}ye(e,t){e.pe(t)}Ee(e){e.pe(2)}}h_.Ve=new h_,new Uint8Array(0);class Yo{constructor(e,t,r){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=t,this.maximumSequenceNumbersToCollect=r}static withCacheSize(e){return new Yo(e,Yo.DEFAULT_COLLECTION_PE
1RCENTILE,Yo.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}function jP(){return typeof document<"u"?document:null}Yo.DEFAULT_COLLECTION_PERCENTILE=10,Yo.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Yo.DEFAULT=new Yo(41943040,Yo.DEFAULT_COLLECTION_PERCENTILE,Yo.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Yo.DISABLED=new Yo(-1,0,0);class AB{constructor(e,t,r=1e3,i=1.5,s=6e4){this.ii=e,this.timerId=t,this.Po=r,this.bo=i,this.Vo=s,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()),r=Math.max(0,Date.now()-this.Co),i=Math.max(0,t-r);i>0&&Je("ExponentialBackoff",`Backing off for ${i} ms (base delay: ${this.So} ms, delay with jitter: ${t} ms, last attempt: ${r} ms ago)`),this.Do=this.ii.enqueueAfterDelay(this.timerId,i,()=>(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 KB{constructor(e,t,r,i,s){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=r,this.op=i,this.removalCallback=s,this.deferred=new Ns,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(o=>{})}static createAndSchedule(e,t,r,i,s){const o=Date.now()+r,a=new KB(e,t,o,i,s);return a.start(r),a}start(e){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new qe(Ae_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)}}
1class w4e{constructor(e,t,r,i){var s=this;this.authCredentials=e,this.appCheckCredentials=t,this.asyncQueue=r,this.databaseInfo=i,this.user=Xs.UNAUTHENTICATED,this.clientId=xie.A(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(r,function(){var o=(0,ee.A)(function*(a){Je("FirestoreClient","Received user=",a.uid),yield s.authCredentialListener(a),s.user=a});return function(a){return o.apply(this,arguments)}}()),this.appCheckCredentials.start(r,o=>(Je("FirestoreClient","Received new app check token=",o),this.appCheckCredentialListener(o,this.user)))}getConfiguration(){var e=this;return(0,ee.A)(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 qe(Ae_FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){var e=this;this.asyncQueue.enterRestrictedMode();const t=new Ns;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((0,ee.A)(function*(){try{e._onlineComponents&&(yield e._onlineComponents.terminate()),e._offlineComponents&&(yield e._offlineComponents.terminate()),e.authCredentials.shutdown(),e.appCheckCredentials.shutdown(),t.resolve()}catch(r){const i=function Vw(n,e){if(ds("AsyncQueue",`${e}: ${n}`),cp(n))return new qe(Ae_UNAVAILABLE,`${e}: ${n}`);throw n}(r,"Failed to shutdown persistence");t.reject(i)}})),t.promise}}function pae(n){const e={};return void 0!==n.timeoutSeconds&&(e.timeoutSeconds=n.timeoutSeconds),e}const mae=new Map;class vae{constructor(e){var t,r;if(void 0===e.host){if(void 0!==e.ssl)throw new qe(Ae_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 qe(Ae_INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}(function A4e(n,e,t,r){if(!0===e&&!0===r)throw new qe(Ae_INVALID_ARGUMENT,`${n} and ${t} cannot be used together.`)})("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!(this.experimentalForceLongPolling||void 0!==e.experimentalAutoDetectLongPolling&&!e.experimentalAutoDetectLongPolling),this.experimentalLongPollingOptions=pae(null!==(r=e.experimentalLongPollingOptions)&&void 0!==r?r:{}),function(i){if(void 0!==i.timeoutSeconds){if(isNaN(i.timeoutSeconds))throw new qe(Ae_INVALID_ARGUMENT,`invalid long polling timeout: ${i.timeoutSeconds} (must not be NaN)`);if(i.timeoutSeconds<5)throw new qe(Ae_INVALID_ARGUMENT,`invalid long polling timeout: ${i.timeoutSeconds} (minimum allowed value is 5)`);if(i.timeoutSeconds>30)throw new qe(Ae_INVALID_ARGUMENT,`invalid long polling timeout: ${i.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}}
1class ED{constructor(e,t,r,i){this._authCredentials=e,this._appCheckCredentials=t,this._databaseId=r,this._app=i,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new vae({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new qe(Ae_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 qe(Ae_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 vae(e),void 0!==e.credentials&&(this._authCredentials=function(t){if(!t)return new AVe;switch(t.type){case"firstParty":return new RVe(t.sessionIndex||"0",t.iamToken||null,t.authTokenFactory||null);case"provider":return t.client;default:throw new qe(Ae_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=mae.get(e);t&&(Je("ComponentProvider","Removing Datastore"),mae.delete(e),t.terminate())}(this),Promise.resolve()}}class P4e{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 AB(this,"async_queue_retry"),this.Xc=()=>{const t=jP();t&&Je("AsyncQueue","Visibility state changed to "+t.visibilityState),this.qo.Mo()};const e=jP();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=jP();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.Xc)}}enqueue(e){if(this.Zc(),this.jc)return new Promise(()=>{});const t=new Ns;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,ee.A)(function*(){if(0!==e.Qc.length){try{yield e.Qc[0](),e.Qc.shift(),e.qo.reset()}catch(t){if(!cp(t))throw t;Je("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(r=>{throw this.Wc=r,this.Hc=!1,ds("INTERNAL UNHANDLED ERROR: ",function(s){let o=s.message||"";return s.stack&&(o=s.stack.includes(s.message)?s.stack:s.message+"\n"+s.stack),o}(r)),r}).then(r=>(this.Hc=!1,r))));return this.Gc=t,t}enqueueAfterDelay(e,t,r){this.Zc(),this.Yc.indexOf(e)>-1&&(t=0);const i=KB.createAndSchedule(this,e,t,r,s=>this.na(s));return this.zc.push(i),i}Zc(){this.Wc&&At()}verifyOperationInProgress(){}sa(){var e=this;return(0,ee.A)(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,r)=>t.targetTimeMs-r.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)}}
1class mi extends ED{constructor(e,t,r,i){super(e,t,r,i),this.type="firestore",this._queue=new P4e,this._persistenceKey=i?.name||"[DEFAULT]"}_terminate(){return this._firestoreClient||function bae(n){var e,t,r;const i=n._freezeSettings(),s=(a=(null===(e=n._app)||void 0===e?void 0:e.options.appId)||"",new lUe(n._databaseId,a,n._persistenceKey,(c=i).host,c.ssl,c.experimentalForceLongPolling,c.experimentalAutoDetectLongPolling,pae(c.experimentalLongPollingOptions),c.useFetchStreams));var a,c;n._firestoreClient=new w4e(n._authCredentials,n._appCheckCredentials,n._queue,s),null!==(t=i.cache)&&void 0!==t&&t._offlineComponentProvider&&null!==(r=i.cache)&&void 0!==r&&r._onlineComponentProvider&&(n._firestoreClient._uninitializedComponentsProvider={_offlineKind:i.cache.kind,_offline:i.cache._offlineComponentProvider,_online:i.cache._onlineComponentProvider})}(this),this._firestoreClient.terminate()}}class ID{constructor(e,t){if(!isFinite(e)||e<-90||e>90)throw new qe(Ae_INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new qe(Ae_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 sn(this._lat,e._lat)||sn(this._long,e._long)}}new RegExp("[~\\*/\\[\\]]"),function(n,e=!0){yw="9.23.0",Pk(new Ak("firestore",(t,{instanceIdentifier:r,options:i})=>{const s=t.getProvider("app").getImmediate(),o=new mi(new kVe(t.getProvider("auth-internal")),new LVe(t.getProvider("app-check-internal")),function(a,l){if(!Object.prototype.hasOwnProperty.apply(a.options,["projectId"]))throw new qe(Ae_INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new r_(a.options.projectId,l)}(s,r),s);return i=Object.assign({useFetchStreams:e},i),o._setSettings(i),o},"PUBLIC").setMultipleInstances(!0)),wI(Cie,"3.13.0",n),wI(Cie,"3.13.0","esm2017")}();const jae="firebasestorage.googleapis.com",Yae="storageBucket";class Fi extends K.g{constructor(e,t,r=0){super($H(e),`Firebase Storage: ${t} (${$H(e)})`),this.status_=r,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,Fi.prototype)}get status(){return this.status_}set status(e){this.status_=e}_codeEquals(e){return $H(e)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(e){this.customData.serverResponse=e,this.message=this.customData.serverResponse?`${this._baseMessage}\n${this.customData.serverResponse}`:this._baseMessage}}var xi=function(n){return n.UNKNOWN="unknown",n.OBJECT_NOT_FOUND="object-not-found",n.BUCKET_NOT_FOUND="bucket-not-found",n.PROJECT_NOT_FOUND="project-not-found",n.QUOTA_EXCEEDED="quota-exceeded",n.UNAUTHENTICATED="unauthenticated",n.UNAUTHORIZED="unauthorized",n.UNAUTHORIZED_APP="unauthorized-app",n.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",n.INVALID_CHECKSUM="invalid-checksum",n.CANCELED="canceled",n.INVALID_EVENT_NAME="invalid-event-name",n.INVALID_URL="invalid-url",n.INVALID_DEFAULT_BUCKET="invalid-default-bucket",n.NO_DEFAULT_BUCKET="no-default-bucket",n.CANNOT_SLICE_BLOB="cannot-slice-blob",n.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",n.NO_DOWNLOAD_URL="no-download-url",n.INVALID_ARGUMENT="invalid-argument",n.INVALID_ARGUMENT_COUNT="invalid-argument-count",n.APP_DELETED="app-deleted",n.INVALID_ROOT_OPERATION="invalid-root-operation",n.INVALID_FORMAT="invalid-format",n.INTERNAL_ERROR="internal-error",n.UNSUPPORTED_ENVIRONMENT="unsupported-environment",n}(xi||{});function $H(n){return"storage/"+n}function qH(){return new Fi(xi.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function Bae(){return new Fi(xi.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function Hae(){return new Fi(xi.CANCELED,"User canceled the upload/download.")}function zae(){return new Fi(xi.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function Kw(n){return new Fi(xi.INVALID_ARGUMENT,n)}function $ae(){return new Fi(xi.APP_DELETED,"The Firebase app was deleted.")}function qae(n){return new Fi(xi.INVALID_ROOT_OPERATION,"The operation '"+n+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}function PD(n,e){return new Fi(xi.INVALID_FORMAT,"String does not match format '"+n+"': "+e)}function RD(n){throw new Fi(xi.INTERNAL_ERROR,"Internal error: "+n)}class Ho{constructor(e,t){this.bucket=e,this.path_=t}get path(){return this.path_}get isRoot(){return 0===this.path.length}fullServerUrl(){const e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(e,t){let r;try{r=Ho.makeFromUrl(e,t)}catch{return new Ho(e,"")}if(""===r.path)return r;throw function fYe(n){return new Fi(xi.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+n+"'.")}(e)}static makeFromUrl(e,t){let r=null;const i="([A-Za-z0-9.\\-_]+)",a=new RegExp("^gs://"+i+"(/(.*))?$","i");function c(Z){Z.path_=decodeURIComponent(Z.path)}const d=t.replace(/[.]/g,"\\."),j=[{regex:a,indices:{bucket:1,path:3}
1,postModify:function s(Z){"/"===Z.path.charAt(Z.path.length-1)&&(Z.path_=Z.path_.slice(0,-1))}},{regex:new RegExp(`^https?://${d}/v[A-Za-z0-9_]+/b/${i}/o(/([^?#]*).*)?$`,"i"),indices:{bucket:1,path:3},postModify:c},{regex:new RegExp(`^https?://${t===jae?"(?:storage.googleapis.com|storage.cloud.google.com)":t}/${i}/([^?#]*)`,"i"),indices:{bucket:1,path:2},postModify:c}];for(let Z=0;Z<j.length;Z++){const ie=j[Z],le=ie.regex.exec(e);if(le){let B=le[ie.indices.path];B||(B=""),r=new Ho(le[ie.indices.bucket],B),ie.postModify(r);break}}if(null==r)throw function hYe(n){return new Fi(xi.INVALID_URL,"Invalid URL '"+n+"'.")}(e);return r}}class yYe{constructor(e){this.promise_=Promise.reject(e)}getPromise(){return this.promise_}cancel(e=!1){}}function iR(n){return"string"==typeof n||n instanceof String}function Wae(n){return WH()&&n instanceof Blob}function WH(){return typeof Blob<"u"}function GH(n,e,t,r){if(r<e)throw Kw(`Invalid value for '${n}'. Expected ${e} or greater.`);if(r>t)throw Kw(`Invalid value for '${n}'. Expected ${t} or less.`)}function mh(n,e,t){let r=e;return null==t&&(r=`https://${e}`),`${t}://${r}/v0${n}`}function Gae(n){const e=encodeURIComponent;let t="?";for(const r in n)n.hasOwnProperty(r)&&(t=t+(e(r)+"=")+e(n[r])+"&");return t=t.slice(0,-1),t}var Qw=function(n){return n[n.NO_ERROR=0]="NO_ERROR",n[n.NETWORK_ERROR=1]="NETWORK_ERROR",n[n.ABORT=2]="ABORT",n}(Qw||{});function Kae(n,e){const t=n>=500&&n<600,i=-1!==[408,429].indexOf(n),s=-1!==e.indexOf(n);return t||i||s}class MYe{constructor(e,t,r,i,s,o,a,l,c,u,d,f=!0){this.url_=e,this.method_=t,this.headers_=r,this.body_=i,this.successCodes_=s,this.additionalRetryCodes_=o,this.callback_=a,this.errorCallback_=l,this.timeout_=c,this.progressCallback_=u,this.connectionFactory_=d,this.retry=f,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((_,w)=>{this.resolve_=_,this.reject_=w,this.start_()})}start_(){const t=(r,i)=>{const s=this.resolve_,o=this.reject_,a=i.connection;if(i.wasSuccessCode)try{const l=this.callback_(a,a.getResponse());!function bYe(n){return void 0!==n}(l)?s():s(l)}catch(l){o(l)}else if(null!==a){const l=qH();l.serverResponse=a.getErrorText(),o(this.errorCallback_?this.errorCallback_(a,l):l)}else o(i.canceled?this.appDelete_?$ae():Hae():Bae())};this.canceled_?t(0,new sR(!1,null,!0)):this.backoffId_=function vYe(n,e,t){let r=1,i=null,s=null,o=!1,a=0;function l(){return 2===a}let c=!1;function u(...S){c||(c=!0,e.apply(null,S))}function d(S){i=setTimeout(()=>{i=null,n(_,l())},S)}function f(){s&&clearTimeout(s)}function _(S,...O){if(c)return void f();if(S)return f(),void u.call(null,S,...O);if(l()||o)return f(),void u.call(null,S,...O);let j;r<64&&(r*=2),1===a?(a=2,j=0):j=1e3*(r+Math.random()),d(j)}let w=!1;function M(S){w||(w=!0,f(),!c&&(null!==i?(S||(a=2),clearTimeout(i),d(0)):S||(a=1)))}return d(0),s=setTimeout(()=>{o=!0,M(!0)},t),M}((r,i)=>{if(i)return void r(!1,new sR(!1,null,!0));const s=this.connectionFactory_();this.pendingConnection_=s;const o=a=>{null!==this.progressCallback_&&this.progressCallback_(a.loaded,a.lengthComputable?a.total:-1)};null!==this.progressCallback_&&s.addUploadProgressListener(o),s.send(this.url_,this.method_,this.body_,this.headers_).then(()=>{null!==this.progressCallback_&&s.removeUploadProgressListener(o),this.pendingConnection_=null;const a=s.getErrorCode()===Qw.NO_ERROR,l=s.getStatus();if(!a||Kae(l,this.additionalRetryCodes_)&&this.retry){const u=s.getErrorCode()===Qw.ABORT;return void r(!1,new sR(!1,null,u))}const c=-1!==this.successCodes_.indexOf(l);r(!0,new sR(c,s))})},t,this.timeout_)}getPromise(){return this.promise_}cancel(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&function wYe(n){n(!1)}(this.backoffId_),null!==this.pendingConnection_&&this.pendingConnection_.abort()}}class sR{constructor(e,t,r){this.wasSuccessCode=e,this.connection=t,this.canceled=!!r}}function kYe(...n){const e=function xYe(){return typeof BlobBuilder<"u"?BlobBuilder:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:void 0}();if(void 0!==e){const t=new e;for(let r=0;r<n.length;r++)t.append(n[r]);return t.getBlob()}if(WH())return new Blob(n);throw new Fi(xi.UNSUPPORTED_ENVIRONMENT,"This browser doesn't seem to supp
1ort creating Blobs")}const Sl={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};class KH{constructor(e,t){this.data=e,this.contentType=t||null}}function QH(n,e){switch(n){case Sl.RAW:return new KH(Qae(e));case Sl.BASE64:case Sl.BASE64URL:return new KH(Jae(n,e));case Sl.DATA_URL:return new KH(function OYe(n){const e=new Xae(n);return e.base64?Jae(Sl.BASE64,e.rest):function LYe(n){let e;try{e=decodeURIComponent(n)}catch{throw PD(Sl.DATA_URL,"Malformed data URL.")}return Qae(e)}(e.rest)}(e),function NYe(n){return new Xae(n).contentType}(e))}throw qH()}function Qae(n){const e=[];for(let t=0;t<n.length;t++){let r=n.charCodeAt(t);r<=127?e.push(r):r<=2047?e.push(192|r>>6,128|63&r):55296==(64512&r)?t<n.length-1&&56320==(64512&n.charCodeAt(t+1))?(r=65536|(1023&r)<<10|1023&n.charCodeAt(++t),e.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r)):e.push(239,191,189):56320==(64512&r)?e.push(239,191,189):e.push(224|r>>12,128|r>>6&63,128|63&r)}return new Uint8Array(e)}function Jae(n,e){switch(n){case Sl.BASE64:{const i=-1!==e.indexOf("-"),s=-1!==e.indexOf("_");if(i||s)throw PD(n,"Invalid character '"+(i?"-":"_")+"' found: is it base64url encoded?");break}case Sl.BASE64URL:{const i=-1!==e.indexOf("+"),s=-1!==e.indexOf("/");if(i||s)throw PD(n,"Invalid character '"+(i?"+":"/")+"' found: is it base64 encoded?");e=e.replace(/-/g,"+").replace(/_/g,"/");break}}let t;try{t=function RYe(n){if(typeof atob>"u")throw function _Ye(n){return new Fi(xi.UNSUPPORTED_ENVIRONMENT,`${n} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`)}("base-64");return atob(n)}(e)}catch(i){throw i.message.includes("polyfill")?i:PD(n,"Invalid character found")}const r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r}class Xae{constructor(e){this.base64=!1,this.contentType=null;const t=e.match(/^data:([^,]+)?,/);if(null===t)throw PD(Sl.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");const r=t[1]||null;null!=r&&(this.base64=function FYe(n,e){return n.length>=e.length&&n.substring(n.length-e.length)===e}(r,";base64"),this.contentType=this.base64?r.substring(0,r.length-7):r),this.rest=e.substring(e.indexOf(",")+1)}}class nd{constructor(e,t){let r=0,i="";Wae(e)?(this.data_=e,r=e.size,i=e.type):e instanceof ArrayBuffer?(t?this.data_=new Uint8Array(e):(this.data_=new Uint8Array(e.byteLength),this.data_.set(new Uint8Array(e))),r=this.data_.length):e instanceof Uint8Array&&(t?this.data_=e:(this.data_=new Uint8Array(e.length),this.data_.set(e)),r=e.length),this.size_=r,this.type_=i}size(){return this.size_}type(){return this.type_}slice(e,t){if(Wae(this.data_)){const i=function PYe(n,e,t){return n.webkitSlice?n.webkitSlice(e,t):n.mozSlice?n.mozSlice(e,t):n.slice?n.slice(e,t):null}(this.data_,e,t);return null===i?null:new nd(i)}{const r=new Uint8Array(this.data_.buffer,e,t-e);return new nd(r,!0)}}static getBlob(...e){if(WH()){const t=e.map(r=>r instanceof nd?r.data_:r);return new nd(kYe.apply(null,t))}{const t=e.map(o=>iR(o)?QH(Sl.RAW,o).data:o.data_);let r=0;t.forEach(o=>{r+=o.byteLength});const i=new Uint8Array(r);let s=0;return t.forEach(o=>{for(let a=0;a<o.length;a++)i[s++]=o[a]}),new nd(i,!0)}}uploadData(){return this.data_}}function JH(n){let e;try{e=JSON.parse(n)}catch{return null}return function EYe(n){return"object"==typeof n&&!Array.isArray(n)}(e)?e:null}function Zae(n){const e=n.lastIndexOf("/",n.length-2);return-1===e?n:n.slice(e+1)}function jYe(n,e){return e}
1class pa{constructor(e,t,r,i){this.server=e,this.local=t||e,this.writable=!!r,this.xform=i||jYe}}let oR=null;function LD(){if(oR)return oR;const n=[];n.push(new pa("bucket")),n.push(new pa("generation")),n.push(new pa("metageneration")),n.push(new pa("name","fullPath",!0));const t=new pa("name");t.xform=function e(s,o){return function YYe(n){return!iR(n)||n.length<2?n:Zae(n)}(o)},n.push(t);const i=new pa("size");return i.xform=function r(s,o){return void 0!==o?Number(o):o},n.push(i),n.push(new pa("timeCreated")),n.push(new pa("updated")),n.push(new pa("md5Hash",null,!0)),n.push(new pa("cacheControl",null,!0)),n.push(new pa("contentDisposition",null,!0)),n.push(new pa("contentEncoding",null,!0)),n.push(new pa("contentLanguage",null,!0)),n.push(new pa("contentType",null,!0)),n.push(new pa("metadata","customMetadata",!0)),oR=n,oR}function ele(n,e,t){const r=JH(e);return null===r?null:function HYe(n,e,t){const r={type:"file"},i=t.length;for(let s=0;s<i;s++){const o=t[s];r[o.local]=o.xform(r,e[o.server])}return function BYe(n,e){Object.defineProperty(n,"ref",{get:function t(){const s=new Ho(n.bucket,n.fullPath);return e._makeStorageReference(s)}})}(r,n),r}(n,r,t)}function XH(n,e){const t={},r=e.length;for(let i=0;i<r;i++){const s=e[i];s.writable&&(t[s.server]=n[s.local])}return JSON.stringify(t)}const tle="prefixes",nle="items";
1class rd{constructor(e,t,r,i){this.url=e,this.method=t,this.handler=r,this.timeout=i,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}}function id(n){if(!n)throw qH()}function aR(n,e){return function t(r,i){const s=ele(n,i,e);return id(null!==s),s}}function Jw(n){return function e(t,r){let i;return i=401===t.getStatus()?t.getErrorText().includes("Firebase App Check token is invalid")?function uYe(){return new Fi(xi.UNAUTHORIZED_APP,"This app does not have permission to access Firebase Storage on this project.")}():function cYe(){return new Fi(xi.UNAUTHENTICATED,"User is not authenticated, please authenticate using Firebase Authentication and try again.")}():402===t.getStatus()?function lYe(n){return new Fi(xi.QUOTA_EXCEEDED,"Quota for bucket '"+n+"' exceeded, please view quota on https://firebase.google.com/pricing/.")}(n.bucket):403===t.getStatus()?function dYe(n){return new Fi(xi.UNAUTHORIZED,"User does not have permission to access '"+n+"'.")}(n.path):r,i.status=t.getStatus(),i.serverResponse=r.serverResponse,i}}function OD(n){const e=Jw(n);return function t(r,i){let s=e(r,i);return 404===r.getStatus()&&(s=function aYe(n){return new Fi(xi.OBJECT_NOT_FOUND,"Object '"+n+"' does not exist.")}(n.path)),s.serverResponse=i.serverResponse,s}}function rle(n,e,t){const i=mh(e.fullServerUrl(),n.host,n._protocol),o=n.maxOperationRetryTime,a=new rd(i,"GET",aR(n,t),o);return a.errorHandler=OD(e),a}function KYe(n,e,t,r,i){const s={};s.prefix=e.isRoot?"":e.path+"/",t&&t.length>0&&(s.delimiter=t),r&&(s.pageToken=r),i&&(s.maxResults=i);const a=mh(e.bucketOnlyServerUrl(),n.host,n._protocol),c=n.maxOperationRetryTime,u=new rd(a,"GET",function WYe(n,e){return function t(r,i){const s=function qYe(n,e,t){const r=JH(t);return null===r?null:function $Ye(n,e,t){const r={prefixes:[],items:[],nextPageToken:t.nextPageToken};if(t[tle])for(const i of t[tle]){const s=i.replace(/\/$/,""),o=n._makeStorageReference(new Ho(e,s));r.prefixes.push(o)}if(t[nle])for(const i of t[nle]){const s=n._makeStorageReference(new Ho(e,i.name));r.items.push(s)}return r}(n,e,r)}(n,e,i);return id(null!==s),s}}(n,e.bucket),c);return u.urlParams=s,u.errorHandler=Jw(e),u}function sle(n,e,t){const r=Object.assign({},t);return r.fullPath=n.path,r.size=e.size(),r.contentType||(r.contentType=function ZYe(n,e){return n&&n.contentType||e&&e.type()||"application/octet-stream"}(null,e)),r}
1class lR{constructor(e,t,r,i){this.current=e,this.total=t,this.finalized=!!r,this.metadata=i||null}}function ZH(n,e){let t=null;try{t=n.getResponseHeader("X-Goog-Upload-Status")}catch{id(!1)}return id(!!t&&-1!==(e||["active"]).indexOf(t)),t}const rBe={STATE_CHANGED:"state_changed"},ma={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function e3(n){switch(n){case"running":case"pausing":case"canceling":return ma.RUNNING;case"paused":return ma.PAUSED;case"success":return ma.SUCCESS;case"canceled":return ma.CANCELED;default:return ma.ERROR}}class iBe{constructor(e,t,r){if(function TYe(n){return"function"==typeof n}(e)||null!=t||null!=r)this.next=e,this.error=t??void 0,this.complete=r??void 0;else{const s=e;this.next=s.next,this.error=s.error,this.complete=s.complete}}}function Xw(n){return(...e)=>{Promise.resolve().then(()=>n(...e))}}let lle=null;class sBe{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=Qw.NO_ERROR,this.sendPromise_=new Promise(e=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=Qw.ABORT,e()}),this.xhr_.addEventListener("error",()=>{this.errorCode_=Qw.NETWORK_ERROR,e()}),this.xhr_.addEventListener("load",()=>{e()})})}send(e,t,r,i){if(this.sent_)throw RD("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(t,e,!0),void 0!==i)for(const s in i)i.hasOwnProperty(s)&&this.xhr_.setRequestHeader(s,i[s].toString());return void 0!==r?this.xhr_.send(r):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw RD("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw RD("cannot .getStatus() before sending");try{return this.xhr_.status}catch{return-1}}getResponse(){if(!this.sent_)throw RD("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw RD("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(e){return this.xhr_.getResponseHeader(e)}addUploadProgressListener(e){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener("progress",e)}removeUploadProgressListener(e){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener("progress",e)}}class oBe extends sBe{initXhr(){this.xhr_.responseType="text"}}function Gc(){return lle?lle():new oBe}class cle{constructor(e,t,r=null){this._transferred=0,this._needToFetchStatus=!1,this._needToFetchMetadata=!1,this._observers=[],this._error=void 0,this._uploadUrl=void 0,this._request=void 0,this._chunkMultiplier=1,this._resolve=void 0,this._reject=void 0,this._ref=e,this._blob=t,this._metadata=r,this._mappings=LD(),this._resumable=this._shouldDoResumable(this._blob),this._state="running",this._errorHandler=i=>{if(this._request=void 0,this._chunkMultiplier=1,i._codeEquals(xi.CANCELED))this._needToFetchStatus=!0,this.completeTransitions_();else{const s=this.isExponentialBackoffExpired();if(Kae(i.status,[])){if(!s)return this.sleepTime=Math.max(2*this.sleepTime,1e3),this._needToFetchStatus=!0,void this.completeTransitions_();i=Bae()}this._error=i,this._transition("error")}},this._metadataErrorHandler=i=>{this._request=void 0,i._codeEquals(xi.CANCELED)?this.completeTransitions_():(this._error=i,this._transition("error"))},this.sleepTime=0,this.maxSleepTime=this._ref.storage.maxUploadRetryTime,this._promise=new Promise((i,s)=>{this._resolve=i,this._reject=s,this._start()}),this._promise.then(null,()=>{})}isExponentialBackoffExpired(){return this.sleepTime>this.maxSleepTime}_makeProgressCallback(){const e=this._transferred;return t=>this._updateProgress(e+t)}_shouldDoResumable(e){return e.size()>262144}_start(){"running"===this._state&&void 0===this._request&&(this._resumable?void 0===this._uploadUrl?this._createResumable():this._needToFetchStatus?this._fetchStatus():this._needToFetchMetadata?this._fetchMetadata():this.pendingTimeout=setTimeout(()=>{this.pendingTimeout=void 0,this._continueUpload()},this.sleepTime):this._oneShotUpload())}_resolveToken(e){Promise.all([this._ref.storage._getAuthToken(),this._ref.storage._getAppCheckToken()]).then(([t,r])=>{switch(this._state){case"running":e(t,r);break;case"canceling":this._transition("canceled");break;case"pausing":this._transition("paused")}})}_createResumable(){this._resolveToken((e,t)=>{const r=function eBe(n,e,t,r,i){const s=e.bucketOnlyServerUrl(),o=sle(e,r,i),a={name:o.fullPath},l=mh(s,n.host,n._protocol),u={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":`${r.size()}`,"X-Goog-Upload-Header-Content-Type":o.contentType,"Content-Type":"application/json; charset=utf-8"},d=XH(o,t),w=new rd(l,"POST",function _(M){let S;ZH(M);try{S=M.getResponseHeader("X-Goog-Upload-URL")}catch{id(!1)}return id(iR(S)),S},n.maxUploadRetryTime);
1return w.urlParams=a,w.headers=u,w.body=d,w.errorHandler=Jw(e),w}(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),i=this._ref.storage._makeRequest(r,Gc,e,t);this._request=i,i.getPromise().then(s=>{this._request=void 0,this._uploadUrl=s,this._needToFetchStatus=!1,this.completeTransitions_()},this._errorHandler)})}_fetchStatus(){const e=this._uploadUrl;this._resolveToken((t,r)=>{const i=function tBe(n,e,t,r){const l=new rd(t,"POST",function s(c){const u=ZH(c,["active","final"]);let d=null;try{d=c.getResponseHeader("X-Goog-Upload-Size-Received")}catch{id(!1)}d||id(!1);const f=Number(d);return id(!isNaN(f)),new lR(f,r.size(),"final"===u)},n.maxUploadRetryTime);return l.headers={"X-Goog-Upload-Command":"query"},l.errorHandler=Jw(e),l}(this._ref.storage,this._ref._location,e,this._blob),s=this._ref.storage._makeRequest(i,Gc,t,r);this._request=s,s.getPromise().then(o=>{this._request=void 0,this._updateProgress(o.current),this._needToFetchStatus=!1,o.finalized&&(this._needToFetchMetadata=!0),this.completeTransitions_()},this._errorHandler)})}_continueUpload(){const e=262144*this._chunkMultiplier,t=new lR(this._transferred,this._blob.size()),r=this._uploadUrl;this._resolveToken((i,s)=>{let o;try{o=function nBe(n,e,t,r,i,s,o,a){const l=new lR(0,0);if(o?(l.current=o.current,l.total=o.total):(l.current=0,l.total=r.size()),r.size()!==l.total)throw function mYe(){return new Fi(xi.SERVER_FILE_WRONG_SIZE,"Server recorded incorrect upload file size, please retry the upload.")}();const c=l.total-l.current;let u=c;i>0&&(u=Math.min(u,i));const d=l.current;let _="";_=0===u?"finalize":c===u?"upload, finalize":"upload";const w={"X-Goog-Upload-Command":_,"X-Goog-Upload-Offset":`${l.current}`},M=r.slice(d,d+u);if(null===M)throw zae();const j=new rd(t,"POST",function S(Z,ie){const le=ZH(Z,["active","final"]),Q=l.current+u,B=r.size();let J;return J="final"===le?aR(e,s)(Z,ie):null,new lR(Q,B,"final"===le,J)},e.maxUploadRetryTime);return j.headers=w,j.body=M.uploadData(),j.progressCallback=a||null,j.errorHandler=Jw(n),j}(this._ref._location,this._ref.storage,r,this._blob,e,this._mappings,t,this._makeProgressCallback())}catch(l){return this._error=l,void this._transition("error")}const a=this._ref.storage._makeRequest(o,Gc,i,s,!1);this._request=a,a.getPromise().then(l=>{this._increaseMultiplier(),this._request=void 0,this._updateProgress(l.current),l.finalized?(this._metadata=l.metadata,this._transition("success")):this.completeTransitions_()},this._errorHandler)})}_increaseMultiplier(){262144*this._chunkMultiplier*2<33554432&&(this._chunkMultiplier*=2)}_fetchMetadata(){this._resolveToken((e,t)=>{const r=rle(this._ref.storage,this._ref._location,this._mappings),i=this._ref.storage._makeRequest(r,Gc,e,t);this._request=i,i.getPromise().then(s=>{this._request=void 0,this._metadata=s,this._transition("success")},this._metadataErrorHandler)})}_oneShotUpload(){this._resolveToken((e,t)=>{const r=function ole(n,e,t,r,i){const s=e.bucketOnlyServerUrl(),o={"X-Goog-Upload-Protocol":"multipart"},l=function a(){let j="";for(let Z=0;Z<2;Z++)j+=Math.random().toString().slice(2);return j}();o["Content-Type"]="multipart/related; boundary="+l;const c=sle(e,r,i),u=XH(c,t),_=nd.getBlob("--"+l+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+u+"\r\n--"+l+"\r\nContent-Type: "+c.contentType+"\r\n\r\n",r,"\r\n--"+l+"--");if(null===_)throw zae();const w={name:c.fullPath},M=mh(s,n.host,n._protocol),O=n.maxUploadRetryTime,N=new rd(M,"POST",aR(n,t),O);return N.urlParams=w,N.headers=o,N.body=_.uploadData(),N.errorHandler=Jw(e),N}(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),i=this._ref.storage._makeRequest(r,Gc,e,t);this._request=i,i.getPromise().then(s=>{this._request=void 0,this._metadata=s,this._updateProgress(this._blob.size()),this._transition("success")},this._errorHandler)})}_updateProgress(e){const t=this._transferred;this._transferred=e,this._transferred!==t&&this._notifyObservers()}_transition(e){if(this._state!==e)switch(e){case"canceling":case"pausing":this._state=e,void 0!==this._request?this._request.cancel():this.pendingTimeout&&(clearTimeout(this.pendingTimeout),this.pendingTimeout=void 0,this.completeTransitions_());break;case"running":const t="paused"===this._state;this._state=e,t&&(this._notifyObservers(),this._start());break;case"paused":case"error":case"success":this._state=e,this._notifyObservers();break;case"canceled":this._error=Hae(),this._state=e,this._notifyObservers()}}completeTransitions_(){switch(this._state){case"pausing":this._transition("paused");break;case"canceling":this._transition("canceled");break;case"running":this._start()}}get snapshot(){const e=e3(this._state);return{bytesTransferred:this._transferred,totalBytes:this._blob.size(),state:e,metadata:this._metadata,task:this,ref:this._ref}}on(e,t,r,i){const s=new iBe(t||void 0,r||void 0,i||void 0);return this._addObserver(s),()=>{this._removeObserver(s)}}then(e,t){return this._promise.then(e,t)}catch(e){return this.then(null,e)}_addObserver(e){this._observers.push(e),this._notifyObserver(e)}_removeObserver(e){const t=this._observers.indexOf(e);-1!==t&&this._observers.splice(t,1)}_notifyObservers(){this._finishPromise(),this._observers.slice().forEac
1h(t=>{this._notifyObserver(t)})}_finishPromise(){if(void 0!==this._resolve){let e=!0;switch(e3(this._state)){case ma.SUCCESS:Xw(this._resolve.bind(null,this.snapshot))();break;case ma.CANCELED:case ma.ERROR:Xw(this._reject.bind(null,this._error))();break;default:e=!1}e&&(this._resolve=void 0,this._reject=void 0)}}_notifyObserver(e){switch(e3(this._state)){case ma.RUNNING:case ma.PAUSED:e.next&&Xw(e.next.bind(e,this.snapshot))();break;case ma.SUCCESS:e.complete&&Xw(e.complete.bind(e))();break;default:e.error&&Xw(e.error.bind(e,this._error))()}}resume(){const e="paused"===this._state||"pausing"===this._state;return e&&this._transition("running"),e}pause(){const e="running"===this._state;return e&&this._transition("pausing"),e}cancel(){const e="running"===this._state||"pausing"===this._state;return e&&this._transition("canceling"),e}}class b_{constructor(e,t){this._service=e,this._location=t instanceof Ho?t:Ho.makeFromUrl(t,e.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(e,t){return new b_(e,t)}get root(){const e=new Ho(this._location.bucket,"");return this._newRef(this._service,e)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return Zae(this._location.path)}get storage(){return this._service}get parent(){const e=function VYe(n){if(0===n.length)return null;const e=n.lastIndexOf("/");return-1===e?"":n.slice(0,e)}(this._location.path);if(null===e)return null;const t=new Ho(this._location.bucket,e);return new b_(this._service,t)}_throwIfRoot(e){if(""===this._location.path)throw qae(e)}}function dle(n,e,t){return t3.apply(this,arguments)}function t3(){return t3=(0,ee.A)(function*(n,e,t){const i=yield hle(n,{pageToken:t});e.prefixes.push(...i.prefixes),e.items.push(...i.items),null!=i.nextPageToken&&(yield dle(n,e,i.nextPageToken))}),t3.apply(this,arguments)}function hle(n,e){null!=e&&"number"==typeof e.maxResults&&GH("options.maxResults",1,1e3,e.maxResults);const t=e||{},r=KYe(n.storage,n._location,"/",t.pageToken,t.maxResults);return n.storage.makeRequestWithTokens(r,Gc)}function yBe(n){n._throwIfRoot("getDownloadURL");const e=function QYe(n,e,t){const i=mh(e.fullServerUrl(),n.host,n._protocol),o=n.maxOperationRetryTime,a=new rd(i,"GET",function GYe(n,e){return function t(r,i){const s=ele(n,i,e);return id(null!==s),function zYe(n,e,t,r){const i=JH(e);if(null===i||!iR(i.downloadTokens))return null;const s=i.downloadTokens;if(0===s.length)return null;const o=encodeURIComponent;return s.split(",").map(c=>{const d=n.fullPath;return mh("/b/"+o(n.bucket)+"/o/"+o(d),t,r)+Gae({alt:"media",token:c})})[0]}(s,i,n.host,n._protocol)}}(n,t),o);return a.errorHandler=OD(e),a}(n.storage,n._location,LD());return n.storage.makeRequestWithTokens(e,Gc).then(t=>{if(null===t)throw function gYe(){return new Fi(xi.NO_DOWNLOAD_URL,"The given file does not have any download URLs.")}();return t})}function fle(n,e){const t=function UYe(n,e){const t=e.split("/").filter(r=>r.length>0).join("/");return 0===n.length?t:n+"/"+t}(n._location.path,e),r=new Ho(n._location.bucket,t);return new b_(n.storage,r)}function ple(n,e){if(n instanceof n3){const t=n;if(null==t._bucket)throw function pYe(){return new Fi(xi.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+Yae+"' property when initializing the app?")}();const r=new b_(t,t._bucket);return null!=e?ple(r,e):r}return void 0!==e?fle(n,e):n}function TBe(n,e){if(e&&function wBe(n){return/^[A-Za-z]+:\/\//.test(n)}(e)){if(n instanceof n3)return function bBe(n,e){return new b_(n,e)}(n,e);throw Kw("To use ref(service, url), the first argument must be a Storage instance.")}return ple(n,e)}function mle(n,e){const t=e?.[Yae];return null==t?null:Ho.makeFromBucketSpec(t,n)}class n3{constructor(e,t,r,i,s){this.app=e,this._authProvider=t,this._appCheckProvider=r,this._url=i,this._firebaseVersion=s,this._bucket=null,this._host=jae,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,this._bucket=null!=i?Ho.makeFromBucketSpec(i,this._host):mle(this._host,this.app.options)}get host(){return this._host}set host(e){this._host=e,this._bucket=null!=this._url?Ho.makeFromBucketSpec(this._url,e):mle(e,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(e){GH("time",0,Number.POSITIVE_INFINITY,e),this._maxUploadRetryTime=e}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(e){GH("time",0,Number.POSITIVE_INFINITY,e),this._maxOperationRetryTime=e}_getAuthToken(){var e=this;return(0,ee.A)(function*(){if(e._overrideAuthToken)return e._overrideAuthToken;const t=e._authProvider.getImmediate({optional:!0});if(t){const r=yield t.getToken();if(null!==r)return r.accessToken}return null})()}_getAppCheckToken(){var e=this;return(0,ee.A)(function*(){const t=e._appCheckProvider.getImmediate({optional:!0});return t?(yield t.getToken()).token:null})()}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEac
1h(e=>e.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(e){return new b_(this,e)}_makeRequest(e,t,r,i,s=!0){if(this._deleted)return new yYe($ae());{const o=function AYe(n,e,t,r,i,s,o=!0){const a=Gae(n.urlParams),l=n.url+a,c=Object.assign({},n.headers);return function CYe(n,e){e&&(n["X-Firebase-GMPID"]=e)}(c,e),function IYe(n,e){null!==e&&e.length>0&&(n.Authorization="Firebase "+e)}(c,t),function DYe(n,e){n["X-Firebase-Storage-Version"]="webjs/"+(e??"AppManager")}(c,s),function SYe(n,e){null!==e&&(n["X-Firebase-AppCheck"]=e)}(c,r),new MYe(l,n.method,c,n.body,n.successCodes,n.additionalRetryCodes,n.handler,n.errorHandler,n.timeout,n.progressCallback,i,o)}(e,this._appId,r,i,t,this._firebaseVersion,s);return this._requests.add(o),o.getPromise().then(()=>this._requests.delete(o),()=>this._requests.delete(o)),o}}makeRequestWithTokens(e,t){var r=this;return(0,ee.A)(function*(){const[i,s]=yield Promise.all([r._getAuthToken(),r._getAppCheckToken()]);return r._makeRequest(e,t,i,s).getPromise()})()}}const gle="@firebase/storage";function vle(n,e){return TBe(n=(0,K.Ku)(n),e)}function PBe(n,{instanceIdentifier:e}){const t=n.getProvider("app").getImmediate(),r=n.getProvider("auth-internal"),i=n.getProvider("app-check-internal");return new n3(t,r,i,e,ja.SDK_VERSION)}!function RBe(){(0,ja._registerComponent)(new Hc.uA("storage",PBe,"PUBLIC").setMultipleInstances(!0)),(0,ja.registerVersion)(gle,"0.12.5",""),(0,ja.registerVersion)(gle,"0.12.5","esm2017")}();class cR{constructor(e,t,r){this._delegate=e,this.task=t,this.ref=r}get bytesTransferred(){return this._delegate.bytesTransferred}get metadata(){return this._delegate.metadata}get state(){return this._delegate.state}get totalBytes(){return this._delegate.totalBytes}}class ble{constructor(e,t){this._delegate=e,this._ref=t,this.cancel=this._delegate.cancel.bind(this._delegate),this.catch=this._delegate.catch.bind(this._delegate),this.pause=this._delegate.pause.bind(this._delegate),this.resume=this._delegate.resume.bind(this._delegate)}get snapshot(){return new cR(this._delegate.snapshot,this,this._ref)}then(e,t){return this._delegate.then(r=>{if(e)return e(new cR(r,this,this._ref))},t)}on(e,t,r,i){let s;return t&&(s="function"==typeof t?o=>t(new cR(o,this,this._ref)):{next:t.next?o=>t.next(new cR(o,this,this._ref)):void 0,complete:t.complete||void 0,error:t.error||void 0}),this._delegate.on(e,s,r||void 0,i||void 0)}}class Tle{constructor(e,t){this._delegate=e,this._service=t}get prefixes(){return this._delegate.prefixes.map(e=>new gh(e,this._service))}get items(){return this._delegate.items.map(e=>new gh(e,this._service))}get nextPageToken(){return this._delegate.nextPageToken||null}}class gh{constructor(e,t){this._delegate=e,this.storage=t}get name(){return this._delegate.name}get bucket(){return this._delegate.bucket}get fullPath(){return this._delegate.fullPath}toString(){return this._delegate.toString()}child(e){const t=function kBe(n,e){return fle(n,e)}(this._delegate,e);return new gh(t,this.storage)}get root(){return new gh(this._delegate.root,this.storage)}get parent(){const e=this._delegate.parent;return null==e?null:new gh(e,this.storage)}put(e,t){return this._throwIfRoot("put"),new ble(function MBe(n,e,t){return function fBe(n,e,t){return n._throwIfRoot("uploadBytesResumable"),new cle(n,new nd(e),t)}(n=(0,K.Ku)(n),e,t)}(this._delegate,e,t),this)}putString(e,t=Sl.RAW,r){this._throwIfRoot("putString");const i=QH(t,e),s=Object.assign({},r);return null==s.contentType&&null!=i.contentType&&(s.contentType=i.contentType),new ble(new cle(this._delegate,new nd(i.data,!0),s),this)}listAll(){return function SBe(n){return function mBe(n){const e={prefixes:[],items:[]};return dle(n,e).then(()=>e)}(n=(0,K.Ku)(n))}(this._delegate).then(e=>new Tle(e,this.storage))}list(e){return function CBe(n,e){return hle(n=(0,K.Ku)(n),e)}(this._delegate,e||void 0).then(t=>new Tle(t,this.storage))}getMetadata(){return function IBe(n){return function gBe(n){n._throwIfRoot("getMetadata");const e=rle(n.storage,n._location,LD());return n.storage.makeRequestWithTokens(e,Gc)}(n=(0,K.Ku)(n))}(this._delegate)}updateMetadata(e){return function DBe(n,e){return function _Be(n,e){n._throwIfRoot("updateMetadata");const t=function JYe(n,e,t,r){const s=mh(e.fullServerUrl(),n.host,n._protocol),a=XH(t,r),c=n.maxOperationRetryTime,u=new rd(s,"PATCH",aR(n,r),c);return u.headers={"Content-Type":"application/json; charset=utf-8"},u.body=a,u.errorHandler=OD(e),u}(n.storage,n._location,e,LD());return n.storage.makeRequestWithTokens(t,Gc)}(n=(0,K.Ku)(n),e)}(this._delegate,e)}getDownloadURL(){return function ABe(n){return yBe(n=(0,K.Ku)(n))}(this._delegate)}delete(){return this._throwIfRoot("delete"),function xBe(n){return function vBe(n){n._throwIfRoot("deleteObject");const e=function XYe(n,e){const r=mh(e.fullServerUrl(),n.host,n._protocol),a=new rd(r,"DELETE",function o(l,c){},n.maxOperationRetryTime);return a.successCodes=[200,204],a.errorHandler=OD(e),a}(n.storage,n._location);return n.storage.makeRequestWithTokens(e,Gc)}(n=(0,K.Ku)(n))}(this._delegate)}_throwIfRoot(e){if(""===this._delegate._location.path)throw qae(e)}}class Ele{constructor(e,t){this.app=e,this._delegate=t}get maxOperationRetryTime(){return this._delegate.maxOperationRetryTime}get maxUploadRetryTime(){return this._delegate.maxUploadRetryTime}ref(e){if(Mle(e))throw Kw("ref() expected a child path but got a URL, use refFromURL instead.");return new gh(vle(this._delegate,e),this)}refFromURL(e){if(!Mle(e))throw Kw("refFromURL() expected a full URL but got a child path, use ref() instead.");try{Ho.makeFromUrl(e,this._delegate.host)}catch{throw Kw("refFromUrl() expected a valid full URL but got an invali
1d one.")}return new gh(vle(this._delegate,e),this)}setMaxUploadRetryTime(e){this._delegate.maxUploadRetryTime=e}setMaxOperationRetryTime(e){this._delegate.maxOperationRetryTime=e}useEmulator(e,t,r={}){!function wle(n,e,t,r={}){!function EBe(n,e,t,r={}){n.host=`${e}:${t}`,n._protocol="http";const{mockUserToken:i}=r;i&&(n._overrideAuthToken="string"==typeof i?i:(0,K.Fy)(i,n.app.options.projectId))}(n,e,t,r)}(this._delegate,e,t,r)}}function Mle(n){return/^[A-Za-z]+:\/\//.test(n)}function FBe(n,{instanceIdentifier:e}){const t=n.getProvider("app-compat").getImmediate(),r=n.getProvider("storage").getImmediate({identifier:e});return new Ele(t,r)}function Ile(n){const e=function UBe(n){return new Wn(e=>{const t=o=>e.next(o);t(n.snapshot);const s=n.on("state_changed",t);return n.then(o=>{t(o),e.complete()},o=>{t(n.snapshot),(o=>{e.error(o)})(o)}),function(){s()}}).pipe(function rYe(n,e=ax){return Lt((t,r)=>{let i=null,s=null,o=null;const a=()=>{if(i){i.unsubscribe(),i=null;const c=s;s=null,r.next(c)}};function l(){const c=o+n,u=e.now();if(u<c)return i=this.schedule(void 0,c-u),void r.add(i);a()}t.subscribe(Tt(r,c=>{s=c,o=e.now(),i||(i=e.schedule(l,n),r.add(i))},()=>{a(),r.complete()},void 0,()=>{s=i=null}))})}(0))}(n);return{task:n,then:n.then.bind(n),catch:n.catch.bind(n),pause:n.pause.bind(n),cancel:n.cancel.bind(n),resume:n.resume.bind(n),snapshotChanges:()=>e,percentageChanges:()=>e.pipe(st(t=>t.bytesTransferred/t.totalBytes*100))}}function uR(n){return{getDownloadURL:()=>jt(void 0).pipe(jJ,zi(()=>n.getDownloadURL()),ls),getMetadata:()=>jt(void 0).pipe(jJ,zi(()=>n.getMetadata()),ls),delete:()=>pr(n.delete()),child:e=>uR(n.child(e)),updateMetadata:e=>pr(n.updateMetadata(e)),put:(e,t)=>Ile(n.put(e,t)),putString:(e,t,r)=>Ile(n.putString(e,t,r)),list:e=>pr(n.list(e)),listAll:()=>pr(n.listAll())}}!function VBe(n){const e={TaskState:ma,TaskEvent:rBe,StringFormat:Sl,Storage:Ele,Reference:gh};n.INTERNAL.registerComponent(new Hc.uA("storage-compat",FBe,"PUBLIC").setServiceProps(e).setMultipleInstances(!0)),n.registerVersion("@firebase/storage-compat","0.3.8")}(bl.A);const jBe=new $e("angularfire2.storageBucket"),YBe=new $e("angularfire2.storage.maxUploadRetryTime"),BBe=new $e("angularfire2.storage.maxOperationRetryTime"),HBe=new $e("angularfire2.storage.use-emulator");let dR=(()=>{class n{storage;constructor(t,r,i,s,o,a,l,c,u,d){const f=EM(t,o,r);this.storage=ux(`${f.name}.storage.${i}`,"AngularFireStorage",f.name,()=>{const _=o.runOutsideAngular(()=>f.storage(i||void 0)),w=u;return w&&_.useEmulator(...w),l&&_.setMaxUploadRetryTime(l),c&&_.setMaxOperationRetryTime(c),_},[l,c])}ref(t){return uR(this.storage.ref(t))}refFromURL(t){return uR(this.storage.refFromURL(t))}upload(t,r,i){return uR(this.storage.ref(t)).put(r,i)}static \u0275fac=function(r){return new(r||n)(ve(b0),ve(T0,8),ve(jBe,8),ve(La),ve(vn),ve(cx),ve(YBe,8),ve(BBe,8),ve(HBe,8),ve(lx,8))};static \u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"any"})}return n})(),zBe=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275mod=A({type:n});static \u0275inj=ai({})}return n})(),$Be=(()=>{class n{constructor(){bl.A.registerVersion("angularfire",y0.full,"gcs-compat")}static \u0275fac=function(r){return new(r||n)};static \u0275mod=A({type:n});static \u0275inj=ai({providers:[dR],imports:[zBe]})}return n})();class r3{constructor(e,t,r,i,s,o,a,l,c,u,d,f){this.address=e,this.cuisineType=t,this.currentCoupons=r,this.imageUrl=i,this.location=s,this.name=o,this.pin=a,this.priceRange=l,this.restaurantCode=c,this.registered=u,this.firstTime=d,this.email=f}static fromObject(e){return new r3(e.address,e.cuisineType,e.currentCoupons,e.imageUrl,e.location,e.name,e.pin,e.priceRange,e.restaurantCode,e.registered,e.firstTime,e.email)}}class qBe{static validateRestaurantData(e){return null==e.address?(console.log("Validation failed: address is missing"),!1):(console.log("Validation passed: address"),null==e.cuisineType?(console.log("Validation failed: cuisineType is missing"),!1):(console.log("Validation passed: cuisineType"),null==e.currentCoupons?(console.log("Validation failed: currentCoupons is missing"),!1):(console.log("Validation passed: currentCoupons"),null==e.email?(console.log("Validation failed: email is missing"),!1):(console.log("Validation passed: email"),null==e.firstTime?(console.log("Validation failed: firstTime is missing"),!1):(console.log("Validation passed: firstTime"),null==e.imageUrl?(console.log("Validation failed: imageUrl is missing"),!1):(console.log("Validation passed: imageUrl"),null==e.location?(console.log("Validation failed: location is missing"),!1):(console.log("Validation passed: location"),null==e.name?(console.log("Validation failed: name is missing"),!1):(console.log("Validation passed: name"),null==e.priceRange?(console.log("Validation failed: priceRange is missing"),!1):(console.log("Validation passed: priceRange"),null==e.rating?(console.log("Validation failed: rating is missing"),!1):(console.log("Validation passed: rating"),null==e.registered?(console.log("Validation failed: registered is missing"),!1):(console.log("Validation passed: registered"),!0)))))))))))}}function Dle(n,e){return function(){return n.apply(e,arguments)}}const{toString:WBe}=Object.prototype,{getPrototypeOf:i3}=Object,hR=(n=>e=>{const t=WBe.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),sd=n=>(n=n.toLowerCase(),e=>hR(e)===n),fR=n=>e=>typeof e===n,{isArray:Zw}=Array,ND=fR("undefined"),Cle=sd("ArrayBuffer"),QBe=fR("string"),oc=fR("function"),Sle=fR("number"),pR=n=>null!==n&&"object"==typeof n,mR=n=>{if("object"!==hR(n))return!1;const e=i3(n);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in n||Symbol.iterator in n)},XBe=sd("Date"),ZBe=sd("File"),eHe=sd("Blob"),tHe=sd("FileList"),iHe=sd("URLSearchParams");function FD(n,e,{allOwnKeys:t=!1}={}
1){if(null===n||typeof n>"u")return;let r,i;if("object"!=typeof n&&(n=[n]),Zw(n))for(r=0,i=n.length;r<i;r++)e.call(null,n[r],r,n);else{const s=t?Object.getOwnPropertyNames(n):Object.keys(n),o=s.length;let a;for(r=0;r<o;r++)a=s[r],e.call(null,n[a],a,n)}}function Ale(n,e){e=e.toLowerCase();const t=Object.keys(n);let i,r=t.length;for(;r-- >0;)if(i=t[r],e===i.toLowerCase())return i;return null}const xle=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,kle=n=>!ND(n)&&n!==xle,hHe=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&i3(Uint8Array)),mHe=sd("HTMLFormElement"),Ple=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),_He=sd("RegExp"),Rle=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};FD(t,(i,s)=>{let o;!1!==(o=e(i,s,n))&&(r[s]=o||i)}),Object.defineProperties(n,r)},o3="abcdefghijklmnopqrstuvwxyz",Lle="0123456789",Ole={DIGIT:Lle,ALPHA:o3,ALPHA_DIGIT:o3+o3.toUpperCase()+Lle},IHe=sd("AsyncFunction"),Ye={isArray:Zw,isArrayBuffer:Cle,isBuffer:function GBe(n){return null!==n&&!ND(n)&&null!==n.constructor&&!ND(n.constructor)&&oc(n.constructor.isBuffer)&&n.constructor.isBuffer(n)},isFormData:n=>{let e;return n&&("function"==typeof FormData&&n instanceof FormData||oc(n.append)&&("formdata"===(e=hR(n))||"object"===e&&oc(n.toString)&&"[object FormData]"===n.toString()))},isArrayBufferView:function KBe(n){let e;return e=typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(n):n&&n.buffer&&Cle(n.buffer),e},isString:QBe,isNumber:Sle,isBoolean:n=>!0===n||!1===n,isObject:pR,isPlainObject:mR,isUndefined:ND,isDate:XBe,isFile:ZBe,isBlob:eHe,isRegExp:_He,isFunction:oc,isStream:n=>pR(n)&&oc(n.pipe),isURLSearchParams:iHe,isTypedArray:hHe,isFileList:tHe,forEach:FD,merge:function s3(){const{caseless:n}=kle(this)&&this||{},e={},t=(r,i)=>{const s=n&&Ale(e,i)||i;e[s]=mR(e[s])&&mR(r)?s3(e[s],r):mR(r)?s3({},r):Zw(r)?r.slice():r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&FD(arguments[r],t);return e},extend:(n,e,t,{allOwnKeys:r}={})=>(FD(e,(i,s)=>{n[s]=t&&oc(i)?Dle(i,t):i},{allOwnKeys:r}),n),trim:n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:n=>(65279===n.charCodeAt(0)&&(n=n.slice(1)),n),inherits:(n,e,t,r)=>{n.prototype=Object.create(e.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},toFlatObject:(n,e,t,r)=>{let i,s,o;const a={};if(e=e||{},null==n)return e;do{for(i=Object.getOwnPropertyNames(n),s=i.length;s-- >0;)o=i[s],(!r||r(o,n,e))&&!a[o]&&(e[o]=n[o],a[o]=!0);n=!1!==t&&i3(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},kindOf:hR,kindOfTest:sd,endsWith:(n,e,t)=>{n=String(n),(void 0===t||t>n.length)&&(t=n.length);const r=n.indexOf(e,t-=e.length);return-1!==r&&r===t},toArray:n=>{if(!n)return null;if(Zw(n))return n;let e=n.length;if(!Sle(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},forEachEntry:(n,e)=>{const r=(n&&n[Symbol.iterator]).call(n);let i;for(;
1(i=r.next())&&!i.done;){const s=i.value;e.call(n,s[0],s[1])}},matchAll:(n,e)=>{let t;const r=[];for(;null!==(t=n.exec(e));)r.push(t);return r},isHTMLForm:mHe,hasOwnProperty:Ple,hasOwnProp:Ple,reduceDescriptors:Rle,freezeMethods:n=>{Rle(n,(e,t)=>{if(oc(n)&&-1!==["arguments","caller","callee"].indexOf(t))return!1;if(oc(n[t])){if(e.enumerable=!1,"writable"in e)return void(e.writable=!1);e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},toObjectSet:(n,e)=>{const t={},r=i=>{i.forEach(s=>{t[s]=!0})};return Zw(n)?r(n):r(String(n).split(e)),t},toCamelCase:n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,i){return r.toUpperCase()+i}),noop:()=>{},toFiniteNumber:(n,e)=>(n=+n,Number.isFinite(n)?n:e),findKey:Ale,global:xle,isContextDefined:kle,ALPHABET:Ole,generateString:(n=16,e=Ole.ALPHA_DIGIT)=>{let t="";const{length:r}=e;for(;n--;)t+=e[Math.random()*r|0];return t},isSpecCompliantForm:function EHe(n){return!!(n&&oc(n.append)&&"FormData"===n[Symbol.toStringTag]&&n[Symbol.iterator])},toJSONObject:n=>{const e=new Array(10),t=(r,i)=>{if(pR(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const s=Zw(r)?[]:{};return FD(r,(o,a)=>{const l=t(o,i+1);!ND(l)&&(s[a]=l)}),e[i]=void 0,s}}return r};return t(n,0)},isAsyncFn:IHe,isThenable:n=>n&&(pR(n)||oc(n))&&oc(n.then)&&oc(n.catch)};function eb(n,e,t,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),r&&(this.request=r),i&&(this.response=i)}Ye.inherits(eb,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ye.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Nle=eb.prototype,Fle={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{Fle[n]={value:n}}),Object.defineProperties(eb,Fle),Object.defineProperty(Nle,"isAxiosError",{value:!0}),eb.from=(n,e,t,r,i,s)=>{const o=Object.create(Nle);return Ye.toFlatObject(n,o,function(l){return l!==Error.prototype},a=>"isAxiosError"!==a),eb.call(o,n.message,e,t,r,i),o.cause=n,o.name=n.name,s&&Object.assign(o,s),o};const Tr=eb;function a3(n){return Ye.isPlainObject(n)||Ye.isArray(n)}function Ule(n){return Ye.endsWith(n,"[]")?n.slice(0,-2):n}function jle(n,e,t){return n?n.concat(e).map(function(i,s){return i=Ule(i),!t&&s?"["+i+"]":i}).join(t?".":""):e}const CHe=Ye.toFlatObject(Ye,{},null,function(e){return/^is[A-Z]/.test(e)}),gR=function SHe(n,e,t){if(!Ye.isObject(n))throw new TypeError("target must be an object");e=e||new FormData;const r=(t=Ye.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(M,S){return!Ye.isUndefined(S[M])})).metaTokens,i=t.visitor||u,s=t.dots,o=t.indexes,l=(t.Blob||typeof Blob<"u"&&Blob)&&Ye.isSpecCompliantForm(e);if(!Ye.isFunction(i))throw new TypeError("visitor must be a function");function c(w){if(null===w)return"";if(Ye.isDate(w))return w.toISOString();if(!l&&Ye.isBlob(w))throw new Tr("Blob is not supported. Use a Buffer instead.");return Ye.isArrayBuffer(w)||Ye.isTypedArray(w)?l&&"function"==typeof Blob?new Blob([w]):Buffer.from(w):w}function u(w,M,S){let O=w;if(w&&!S&&"object"==typeof w)if(Ye.endsWith(M,"{}"))M=r?M:M.slice(0,-2),w=JSON.stringify(w);else if(Ye.isArray(w)&&function DHe(n){return Ye.isArray(n)&&!n.some(a3)}(w)||(Ye.isFileList(w)||Ye.endsWith(M,"[]"))&&(O=Ye.toArray(w)))return M=Ule(M),O.forEach(function(j,Z){!Ye.isUndefined(j)&&null!==j&&e.append(!0===o?jle([M],Z,s):null===o?M:M+"[]",c(j))}),!1;return!!a3(w)||(e.append(jle(S,M,s),c(w)),!1)}const d=[],f=Object.assign(CHe,{defaultVisitor:u,convertValue:c,isVisitable:a3});if(!Ye.isObject(n))throw new TypeError("data must be an object");return function _(w,M){if(!Ye.isUndefined(w)){if(-1!==d.indexOf(w))throw Error("Circular reference detected in "+M.join("."));d.push(w),Ye.forEach(w,function(O,N){!0===(!(Ye.isUndefined(O)||null===O)&&i.call(e,O,Ye.isString(N)?N.trim():N,M,f))&&_(O,M?M.concat(N):[N])}),d.pop()}}(n),e};
1function Yle(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Ble(n,e){this._pairs=[],n&&gR(n,this,e)}const Hle=Ble.prototype;Hle.append=function(e,t){this._pairs.push([e,t])},Hle.toString=function(e){const t=e?function(r){return e.call(this,r,Yle)}:Yle;return this._pairs.map(function(i){return t(i[0])+"="+t(i[1])},"").join("&")};const zle=Ble;function AHe(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function $le(n,e,t){if(!e)return n;const r=t&&t.encode||AHe,i=t&&t.serialize;let s;if(s=i?i(e,t):Ye.isURLSearchParams(e)?e.toString():new zle(e,t).toString(r),s){const o=n.indexOf("#");-1!==o&&(n=n.slice(0,o)),n+=(-1===n.indexOf("?")?"?":"&")+s}return n}const qle=class xHe{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Ye.forEach(this.handlers,function(r){null!==r&&e(r)})}},Wle={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},kHe={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:zle,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Gle=typeof window<"u"&&typeof document<"u",PHe=(n=>Gle&&["ReactNative","NativeScript","NS"].indexOf(n)<0)(typeof navigator<"u"&&navigator.product),RHe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,od={...D,...kHe},Kle=function FHe(n){function e(t,r,i,s){let o=t[s++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),l=s>=t.length;return o=!o&&Ye.isArray(i)?i.length:o,l?(i[o]=Ye.hasOwnProp(i,o)?[i[o],r]:r,!a):((!i[o]||!Ye.isObject(i[o]))&&(i[o]=[]),e(t,r,i[o],s)&&Ye.isArray(i[o])&&(i[o]=function NHe(n){const e={},t=Object.keys(n);let r;const i=t.length;let s;for(r=0;r<i;r++)s=t[r],e[s]=n[s];return e}(i[o])),!a)}if(Ye.isFormData(n)&&Ye.isFunction(n.entries)){const t={};return Ye.forEachEntry(n,(r,i)=>{e(function OHe(n){return Ye.matchAll(/\w+|\[(\w*)]/g,n).map(e=>"[]"===e[0]?"":e[1]||e[0])}(r),i,t,0)}),t}return null},l3={transitional:Wle,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",i=r.indexOf("application/json")>-1,s=Ye.isObject(e);
1if(s&&Ye.isHTMLForm(e)&&(e=new FormData(e)),Ye.isFormData(e))return i&&i?JSON.stringify(Kle(e)):e;if(Ye.isArrayBuffer(e)||Ye.isBuffer(e)||Ye.isStream(e)||Ye.isFile(e)||Ye.isBlob(e))return e;if(Ye.isArrayBufferView(e))return e.buffer;if(Ye.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function LHe(n,e){return gR(n,new od.classes.URLSearchParams,Object.assign({visitor:function(t,r,i,s){return od.isNode&&Ye.isBuffer(t)?(this.append(r,t.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}(e,this.formSerializer).toString();if((a=Ye.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return gR(a?{"files[]":e}:e,l&&new l,this.formSerializer)}}return s||i?(t.setContentType("application/json",!1),function VHe(n,e,t){if(Ye.isString(n))try{return(e||JSON.parse)(n),Ye.trim(n)}catch(r){if("SyntaxError"!==r.name)throw r}return(t||JSON.str
1ingify)(n)}(e)):e}],transformResponse:[function(e){const t=this.transitional||l3.transitional,r=t&&t.forcedJSONParsing,i="json"===this.responseType;if(e&&Ye.isString(e)&&(r&&!this.responseType||i)){const o=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(a){if(o)throw"SyntaxError"===a.name?Tr.from(a,Tr.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:od.classes.FormData,Blob:od.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ye.forEach(["delete","get","head","post","put","patch"],n=>{l3.headers[n]={}});const c3=l3,UHe=Ye.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Qle=Symbol("internals");function VD(n){return n&&String(n).trim().toLowerCase()}function _R(n){return!1===n||null==n?n:Ye.isArray(n)?n.map(_R):String(n)}function u3(n,e,t,r,i){if(Ye.isFunction(r))return r.call(this,e,t);if(i&&(e=t),Ye.isString(e)){if(Ye.isString(r))return-1!==e.indexOf(r);if(Ye.isRegExp(r))return r.test(e)}}class yR{constructor(e){e&&this.set(e)}set(e,t,r){const i=this;function s(a,l,c){const u=VD(l);if(!u)throw new Error("header name must be a non-empty string");const d=Ye.findKey(i,u);(!d||void 0===i[d]||!0===c||void 0===c&&!1!==i[d])&&(i[d||l]=_R(a))}const o=(a,l)=>Ye.forEach(a,(c,u)=>s(c,u,l));return Ye.isPlainObject(e)||e instanceof this.constructor?o(e,t):Ye.isString(e)&&(e=e.trim())&&!(n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim()))(e)?o((n=>{const e={};let t,r,i;return n&&n.split("\n").forEach(function(o){i=o.indexOf(":"),t=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!t||e[t]&&UHe[t])&&("set-cookie"===t?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e})(e),t):null!=e&&s(t,e,r),this}get(e,t){if(e=VD(e)){const r=Ye.findKey(this,e);if(r){const i=this[r];if(!t)return i;if(!0===t)return function YHe(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(n);)e[r[1]]=r[2];return e}(i);if(Ye.isFunction(t))return t.call(this,i,r);if(Ye.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=VD(e)){const r=Ye.findKey(this,e);return!(!r||void 0===this[r]||t&&!u3(0,this[r],r,t))}return!1}delete(e,t){const r=this;let i=!1;function s(o){if(o=VD(o)){const a=Ye.findKey(r,o);a&&(!t||u3(0,r[a],a,t))&&(delete r[a],i=!0)}}return Ye.isArray(e)?e.forEach(s):s(e),i}clear(e){const t=Object.keys(this);let r=t.length,i=!1;for(;r--;){const s=t[r];(!e||u3(0,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){const t=this,r={};return Ye.forEach(this,(i,s)=>{const o=Ye.findKey(r,s);if(o)return t[o]=_R(i),void delete t[s];const a=e?function HHe(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(s):String(s).trim();a!==s&&delete t[s],t[a]=_R(i),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ye.forEach(this,(r,i)=>{null!=r&&!1!==r&&(t[i]=e&&Ye.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[Qle]=this[Qle]={accessors:{}}).accessors,i=this.prototype;function s(o){const a=VD(o);r[a]||(function zHe(n,e){const t=Ye.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+t,{value:function(i,s,o){return this[r].call(this,e,i,s,o)},configurable:!0})})}(i,o),r[a]=!0)}return Ye.isArray(e)?e.forEach(s):s(e),this}}yR.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ye.reduceDescriptors(yR.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(r){this[t]=r}}}),Ye.freezeMethods(yR);const _h=yR;function d3(n,e){const t=this||c3,r=e||t,i=_h.from(r.headers);let s=r.data;return Ye.forEach(n,function(a){s=a.call(t,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function Jle(n){return!(!n||!n.__CANCEL__)}function Xle(n,e,t){Tr.call(this,n??"canceled",Tr.ERR_CANCELED,e,t),this.name="CanceledError"}Ye.inherits(Xle,Tr,{__CANCEL__:!0});const vR=Xle,qHe=od.hasStandardBrowserEnv?{write(n,e,t,r,i,s){const o=[n+"="+encodeURIComponent(e)];Ye.isNumber(t)&&o.push("expires="+new Date(t).toGMTString()),Ye.isString(r)&&o.push("path="+r),Ye.isString(i)&&o.push("domain="+i),!0===s&&o.push("secure"),document.cookie=o.join("; ")},read(n){const e=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Zle(n,e){return n&&!function WHe(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}(e)?function GHe(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}(n,e):e}const KHe=od.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function i(s){let o=s;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=i(window.location.href),function(o){const a=Ye.isString(o)?i(o):o;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function ece(n,e){let t=0;const r=function JHe(n,e){n=n||10;const t=new Array(n),r=new Array(n);let o,i=0,s=0;return e=void 0!==e?e:1e3,function(l){const c=Date.now(),u=r[s];o||(o=c),t[i]=l,r[i]=c;let d=s,f=0;for(;d!==i;)f+=t[d++],d%=n;if(i=(i+1)%n,i===s&&(s=(s+1)%n),c-o<e)return;const _=u&&c-u;return _?Math.round(1e3*f/_):void 0}}(50,250);return i=>{const s=i.loaded,o=i.lengthComputable?i.total:void 0,a=s-t,l=r(a);t=s;const u={loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&s<=o?(o-s)/l:void 0,event:i};u[e?"download":"upload"]=!0,n(u)}}const h3={http:null,xhr:typeof XMLHttpRequest<"u"&&function(n){return new Promise(function(t,r){let i=n.data;const s=_h.from(n.headers).normalize();let l,u,{responseType:o,withXSRFToken:a}=n;function c(){n.cancelToken&&n.cancelToken.unsubscribe(l),n.signal&&n.signal.removeEventListener("abort",l)}if(Ye.isFormData(i))if(od.hasStandardBrowserEnv||od.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if(!1!==(u=s.getContentType())){const[M,...S]=u?u.split(";").map(O=>
1O.trim()).filter(Boolean):[];s.setContentType([M||"multipart/form-data",...S].join("; "))}let d=new XMLHttpRequest;if(n.auth){const M=n.auth.username||"",S=n.auth.password?unescape(encodeURIComponent(n.auth.password)):"";s.set("Authorization","Basic "+btoa(M+":"+S))}const f=Zle(n.baseURL,n.url);function _(){if(!d)return;const M=_h.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders());(function $He(n,e,t){const r=t.config.validateStatus;t.status&&r&&!r(t.status)?e(new Tr("Request failed with status code "+t.status,[Tr.ERR_BAD_REQUEST,Tr.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t)):n(t)})(function(j){t(j),c()},function(j){r(j),c()},{data:o&&"text"!==o&&"json"!==o?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:M,config:n,request:d}),d=null}if(d.open(n.method.toUpperCase(),$le(f,n.params,n.paramsSerializer),!0),d.timeout=n.timeout,"onloadend"in d?d.onloadend=_:d.onreadystatechange=function(){!d||4!==d.readyState||0===d.status&&(!d.responseURL||0!==d.responseURL.indexOf("file:"))||setTimeout(_)},d.onabort=function(){d&&(r(new Tr("Request aborted",Tr.ECONNABORTED,n,d)),d=null)},d.onerror=function(){r(new Tr("Network Error",Tr.ERR_NETWORK,n,d)),d=null},d.ontimeout=function(){let S=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";n.timeoutErrorMessage&&(S=n.timeoutErrorMessage),r(new Tr(S,(n.transitional||Wle).clarifyTimeoutError?Tr.ETIMEDOUT:Tr.ECONNABORTED,n,d)),d=null},od.hasStandardBrowserEnv&&(a&&Ye.isFunction(a)&&(a=a(n)),a||!1!==a&&KHe(f))){const M=n.xsrfHeaderName&&n.xsrfCookieName&&qHe.read(n.xsrfCookieName);M&&s.set(n.xsrfHeaderName,M)}void 0===i&&s.setContentType(null),"setRequestHeader"in d&&Ye.forEach(s.toJSON(),function(S,O){d.setRequestHeader(O,S)}),Ye.isUndefined(n.withCredentials)||(d.withCredentials=!!n.withCredentials),o&&"json"!==o&&(d.responseType=n.responseType),"function"==typeof n.onDownloadProgress&&d.addEventListener("progress",ece(n.onDownloadProgress,!0)),"function"==typeof n.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",ece(n.onUploadProgress)),(n.cancelToken||n.signal)&&(l=M=>{d&&(r(!M||M.type?new vR(null,n,d):M),d.abort(),d=null)},n.cancelToken&&n.cancelToken.subscribe(l),n.signal&&(n.signal.aborted?l():n.signal.addEventListener("abort",l)));const w=function QHe(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}(f);w&&-1===od.protocols.indexOf(w)?r(new Tr("Unsupported protocol "+w+":",Tr.ERR_BAD_REQUEST,n)):d.send(i||null)})}};Ye.forEach(h3,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const tce=n=>`- ${n}`,ZHe=n=>Ye.isFunction(n)||null===n||!1===n,nce_getAdapter=n=>{n=Ye.isArray(n)?n:[n];const{length:e}=n;let t,r;const i={};for(let s=0;s<e;s++){let o;if(t=n[s],r=t,!ZHe(t)&&(r=h3[(o=String(t)).toLowerCase()],void 0===r))throw new Tr(`Unknown adapter '${o}'`);if(r)break;i[o||"#"+s]=r}if(!r){const s=Object.entries(i).map(([a,l])=>`adapter ${a} `+(!1===l?"is not supported by the environment":"is not available in the build"));let o=e?s.length>1?"since :\n"+s.map(tce).join("\n"):" "+tce(s[0]):"as no adapter specified";throw new Tr("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r};function f3(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new vR(null,n)}function rce(n){return f3(n),n.headers=_h.from(n.headers),n.data=d3.call(n,n.transformRequest),-1!==["post","put","patch"].indexOf(n.method)&&n.headers.setContentType("application/x-www-form-urlencoded",!1),nce_getAdapter(n.adapter||c3.adapter)(n).then(function(r){return f3(n),r.data=d3.call(n,n.transformResponse,r),r.headers=_h.from(r.headers),r},function(r){return Jle(r)||(f3(n),r&&r.response&&(r.response.data=d3.call(n,n.transformResponse,r.response),r.response.headers=_h.from(r.response.headers))),Promise.reject(r)})}const ice=n=>n instanceof _h?n.toJSON():n;function tb(n,e){e=e||{};const t={};function r(c,u,d){return Ye.isPlainObject(c)&&Ye.isPlainObject(u)?Ye.merge.call({caseless:d},c,u):Ye.isPlainObject(u)?Ye.merge({},u):Ye.isArray(u)?u.slice():u}function i(c,u,d){return Ye.isUndefined(u)?Ye.isUndefined(c)?void 0:r(void 0,c,d):r(c,u,d)}function s(c,u){if(!Ye.isUndefined(u))return r(void 0,u)}function o(c,u){return Ye.isUndefined(u)?Ye.isUndefined(c)?void 0:r(void 0,c):r(void 0,u)}function a(c,u,d){return d in e?r(c,u):d in n?r(void 0,c):void 0}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBo
1dyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(c,u)=>i(ice(c),ice(u),!0)};return Ye.forEach(Object.keys(Object.assign({},n,e)),function(u){const d=l[u]||i,f=d(n[u],e[u],u);Ye.isUndefined(f)&&d!==a||(t[u]=f)}),t}const p3={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{p3[n]=function(r){return typeof r===n||"a"+(e<1?"n ":" ")+n}});const oce={};p3.transitional=function(e,t,r){function i(s,o){return"[Axios v1.6.5] Transitional option '"+s+"'"+o+(r?". "+r:"")}return(s,o,a)=>{if(!1===e)throw new Tr(i(o," has been removed"+(t?" in "+t:"")),Tr.ERR_DEPRECATED);return t&&!oce[o]&&(oce[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(s,o,a)}};const m3={assertOptions:function e3e(n,e,t){if("object"!=typeof n)throw new Tr("options must be an object",Tr.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let i=r.length;for(;i-- >0;){const s=r[i],o=e[s];if(o){const a=n[s],l=void 0===a||o(a,s,n);if(!0!==l)throw new Tr("option "+s+" must be "+l,Tr.ERR_BAD_OPTION_VALUE)}else if(!0!==t)throw new Tr("Unknown option "+s,Tr.ERR_BAD_OPTION)}},validators:p3},Mp=m3.validators;class wR{constructor(e){this.defaults=e,this.interceptors={request:new qle,response:new qle}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=tb(this.defaults,t);const{transitional:r,paramsSerializer:i,headers:s}=t;void 0!==r&&m3.assertOptions(r,{silentJSONParsing:Mp.transitional(Mp.boolean),forcedJSONParsing:Mp.transitional(Mp.boolean),clarifyTimeoutError:Mp.transitional(Mp.boolean)},!1),null!=i&&(Ye.isFunction(i)?t.paramsSerializer={serialize:i}:m3.assertOptions(i,{encode:Mp.function,serialize:Mp.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=s&&Ye.merge(s.common,s[t.method]);s&&Ye.forEach(["delete","get","head","post","put","patch","common"],w=>{delete s[w]}),t.headers=_h.concat(o,s);const a=[];let l=!0;this.interceptors.request.forEach(function(M){"function"==typeof M.runWhen&&!1===M.runWhen(t)||(l=l&&M.synchronous,a.unshift(M.fulfilled,M.rejected))});const c=[];this.interceptors.response.forEach(function(M){c.push(M.fulfilled,M.rejected)});let u,f,d=0;if(!l){const w=[rce.bind(this),void 0];for(w.unshift.apply(w,a),w.push.apply(w,c),f=w.length,u=Promise.resolve(t);d<f;)u=u.then(w[d++],w[d++]);return u}f=a.length;let _=t;for(d=0;d<f;){const w=a[d++],M=a[d++];try{_=w(_)}catch(S){M.call(this,S);break}}try{u=rce.call(this,_)}catch(w){return Promise.reject(w)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(e){return $le(Zle((e=tb(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Ye.forEach(["delete","get","head","options"],function(e){wR.prototype[e]=function(t,r){return this.request(tb(r||{},{method:e,url:t,data:(r||{}).data}))}}),Ye.forEach(["post","put","patch"],function(e){function t(r){return function(s,o,a){return this.request(tb(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}wR.prototype[e]=t(),wR.prototype[e+"Form"]=t(!0)});const bR=wR;class g3{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(s){t=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{r.subscribe(a),s=a}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},e(function(s,o,a){r.reason||(r.reason=new vR(s,o,a),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new g3(function(i){e=i}),cancel:e}}}const t3e=g3,_3={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,Re
1setContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(_3).forEach(([n,e])=>{_3[e]=n});const i3e=_3,Is=function ace(n){const e=new bR(n),t=Dle(bR.prototype.request,e);return Ye.extend(t,bR.prototype,e,{allOwnKeys:!0}),Ye.extend(t,e,null,{allOwnKeys:!0}),t.create=function(i){return ace(tb(n,i))},t}(c3);Is.Axios=bR,Is.CanceledError=vR,Is.CancelToken=t3e,Is.isCancel=Jle,Is.VERSION="1.6.5",Is.toFormData=gR,Is.AxiosError=Tr,Is.Cancel=Is.CanceledError,Is.all=function(e){return Promise.all(e)},Is.spread=function n3e(n){return function(t){return n.apply(null,t)}},Is.isAxiosError=function r3e(n){return Ye.isObject(n)&&!0===n.isAxiosError},Is.mergeConfig=tb,Is.AxiosHeaders=_h,Is.formToJSON=n=>Kle(Ye.isHTMLForm(n)?new FormData(n):n),Is.getAdapter=nce_getAdapter,Is.HttpStatusCode=i3e,Is.default=Is;const lce=Is;function y3(){return y3=(0,ee.A)(function*(n,e){const r={address:e,key:n};try{const s=(yield lce.get("https://maps.googleapis.com/maps/api/geocode/json",{params:r})).data;if("OK"===s.status){const o=s.results[0].geometry.location;return{lat:o.lat,lng:o.lng}}return console.error(`Geocoding failed with status: ${s.status}`),null}catch(i){return console.error("Error during geocoding:",i.message),null}}),y3.apply(this,arguments)}const Ip_redirectUrl="http://localhost:4200/analytics",Ge={endpoint:"http://localhost:3000",serverHost:"localhost",internetProtocol:"http",redirectUrl:"http://localhost:4200/analytics",production:!1,stripeOAuth:`https://connect.stripe.com/oauth/authorize?response_type=code&client_id=ca_OxEalQO12o45m37XewpQiy2cuiRKr5yI&scope=read_write&redirect_uri=${Ip_redirectUrl}`,squareOAuth:`https://connect.squareupsandbox.com/oauth2/authorize?client_id=sandbox-sq0idb-JA3DaUqPU9FfsHZXpaZqPQ&scope=MERCHANT_PROFILE_READ+ITEMS_READ+CUSTOMERS_READ+PAYMENTS_READ+PAYOUTS_READ+ORDERS_READ&redirect_uri=${Ip_redirectUrl}`,cloverOAuth:`https://sandbox.dev.clover.com/oauth/authorize?response_type=code&client_id=TYKA58QM0QDKR&redirect_uri=${Ip_redirectUrl}`,lightSpeedOAuth:"https://secure.retail.lightspeed.app/connect?response_type=code&client_id=D8ZciIhySVMNolaf5Tlq0xHpd6007CnT&redirect_uri=http://localhost:4200/analytics",shopifyOAuth:`https://coubon-test.myshopify.com/admin/oauth/authorize?client_id=26156be0b0e09576e985bf319d08301d&redirect_uri=${Ip_redirectUrl}&scope=read_shipping,read_orders&grant_options[]=per-user`,stripeKey:"sk_test_51NvTmiGSgDojAuIasxLxN4HhyaVtKATVOvOA4lnRfH8IZNxmjCH8AO3PyAuCViy4bS0LVEajwbZl2ZNmSnLrSd3x00qK0ugHr7",squareClientSecret:"sandbox-sq0csb-DeLOXv-9DxfXfRMxWknf8tnH_mBjJ9KUFMN-rqF2G3E",squareClientId:"sandbox-sq0idb-JA3DaUqPU9FfsHZXpaZqPQ",platformEncryptionKey:"e}5N+B0Qx^Y[r:GA+(3`yHQ{JA+cNu",geoAPIKey:"AIzaSyDtBpOd9bYXgsSQ10MVNFTEh0rs4eRtlzk",firebase:{projectId:"coubon-9c031",appId:"1:906880114125:web:10ff2a04734da5fbb5f884",databaseURL:"https://coubon-9c031-default-rtdb.firebaseio.com",storageBucket:"coubon-9c031.appspot.com",locationId:"us-central",apiKey:"AIzaSyD4JnMok8Z0WR2DyIY1mUA-JU4ZsYfLWm4",authDomain:"coubon-9c031.firebaseapp.com",messagingSenderId:"906880114125",measurementId:"G-9BBG4H3QJH"}};let o3e=(()=>{class n{constructor(t){this.firestore=t}addRestaurant(t){var r=this;return(0,ee.A)(function*(){console.log(localStorage.getItem("userID"));const i=yield function s3e(n,e){return y3.apply(this,arguments)}(Ge.geoAPIKey,t.address),s=new ID(i.lat,i.lng);return t.location=s,r.firestore.collection("restaurants").doc(localStorage.getItem("userID")).set(t).then(()=>!0).catch(o=>(console.log(o),!1))})()}updateRestaurant(t,r){this.firestore.doc(`restaurants/${t}`).update(r).then(i=>i).catch(i=>!1)}getRestaurant(t){var r=this;return(0,ee.A)(function*(){try{const i=yield Ke(r.firestore.doc(`restaurants/${t}`).get());if(i.exists)return i.data();throw new Error("Document not found")}catch(i){throw console.error("Error fetching document:",i),i}})()}static#e=this.\u0275fac=function(r){return new(r||n)(ve(Jf))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),v3=(()=>{class n{constructor(t){this.firebaseRestaurant=t}registerRestaurant(t){const i=qBe.validateRestaurantData(t);return console.log(i),i?this.firebaseRestaurant.addRestaurant(t):"Invalid Data"}updateRestaurant(t,r){this.firebaseRestaurant.updateRestaurant(t,r)}getRestaurant(t){return this.firebaseRestaurant.getRestaurant(t).then(r=>{var i=[];return null!=r.currentCoupons&&(r.currentCoupons.forEach(s=>{i.push(s.path.split("/")[1])}),r.currentCoupons=i),r3.fromObject(r)})}static#e=this.\u0275fac=function(r){return new(r||n)(ve(o3e))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),UD=(()=>{class n{generateRandomPin(){let r="";for(let i=0;i<6;i++)r+=Math.floor(10*Math.random());return r}constructor(t,r,i,s,o){this.http=t,this.firestorage=r,this.firestore=i,this.authRepo=s,this.restaurantRepo=o}logoutResult(){var t=this;return(0,ee.A)(function*(){return t.authRepo.signOut()})()}registerRestaurantData(t,r,i,s,o,a,l){var c=this;return(0,ee.A)(function*(){return c.uploadRestaurantImage(i,s,l).then(u=>{const d={address:t,cuisineType:r,imageUrl:u,name:o,priceRange:a,email:l,currentCoupons:[],location:new ID(0,0),rating:4,registered:!0,firstTime:!1};return c.restaurantRepo.registerRestaurant(d)})})()}updateRestayrantData(t,r,i,s,o,a,l){var c=this;return(0,ee.A)(function*(){return c.uploadRestaurantImage(i,s,l).then(u=>c.restaurantRepo.updateRestaurant(l,{address:t,cuisineType:r,imageUrl:u,name:o,priceRange:a}))})()}uploadRestaurantImage(t,r,i){var s=this;return(0,ee.A)(function*(){yield s.firestorage.upload(`/restaurantImage/${i}/${t.split(/(\\|\/)/g).pop()}`,r);var o=s.firestorage.ref(`/restaurantImage/${i}/${t.split(/(\\|\/)/g).pop()}`);return new Promise(a=>{o.getDownloadURL().subscribe(l=>{console.log(l),a(l)})})})()}uploadCouponImage(t,r,i){var s=this;return(0,ee.A)(function*(){yield s.firestorage.upload(`/couponImage/${i}/${t.split(/(\\|\/)/g).pop()}`,r);var o=s.firestorage.ref(`/couponImage/${i}/${t.split(/(\\|\/)/g).pop()}`);return new Promise(a=>{o.getDownloadURL().subscribe(l=>{console.log(l),a(l)})})})()}getRestaurantData(t){var r=this;return(0,ee.A)(function*(){return r.restaurantRepo.getRestaurant(t)})()}static#e=this.\u0275fac=function(r){return new(r||n)(ve(Bc),ve(dR),ve(Jf),ve(h4),ve(v3))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),nb=(()=>{class n extends ip{constructor(t,r){super(r),this.presenterService=t,this.elementRef=r,this.editFormStyle={display:"none"}}confirmRestaurantData(t,r,i,s,o){var a=this;return(0,ee.A)(function*(){console.log("register data from here"),yield a.presenterService.registerRestaurantData(i,t,s,o,localStorage.getItem("chainName"),Number(r),localStorage.getItem("user")).then(l=>{l&&window.location.reload()}),console.log("From registration-popup.component: The Data is Registered")})()}timeLag(t,r,i,s,o){this.confirmRestaurantData(t,r,i,s,o),setTimeout(()=>{this.editFormStyle={display:"none"}},2700)}trimImage(t){const r=document.createElement("canvas");r.width=t.width-100,r.height=t.height;const s=r.getContext("2d");return s&&s.drawImage(t,0,0,r.width,r.height,0,0,r.width,r.height),r}displayTrimmedImage(t){const r=this.elementRef.nativeElement.querySelector(".outputCanvas");r.width=t.width,r.height=t.height;const i=r.getContext("2d");i&&i.drawImage(t,0,0)}static#e=this.\u0275fac=function(r){return new(r||n)(_e(UD),_e(Qn))};static#t=this.\u0275cmp=xt({type:n,selectors:[["app-registeration-popup"]],features:[Mn],decls:47,vars:2,consts:[["cuisineType",""],["address",""],["priceRange",""],["image",""],[1,"overlay-blurred",3,"click","ngStyle"],[1,"popup",3,"ngStyle"],["src","=../../assets/X Icon.svg","id","x-icon",3,"click"],[1,"registrationTitle"],[1,"white-container"],[1,"gridContainer"],[1,"field"],[1,"one"],["type","text","placeholder","Cuisine Type",1,"lefter"],[1,"field",2,"padding-bottom","20px"],[1,"five"],["type","text","placeholder","Address",1,"lefter"],[1,"six"],[1,"align-radio"],["type","radio","name","priceRange","value","1"],["type","radio","name","priceRange","value","100"],["type","radio","name","priceRange","value","1000"],["type","radio","name","priceRange","value","10000"],[1,"seven"],["type","file","accept","image/png, image/jpeg",2,"border","none","border-radius","0px","font-size",".9rem"],[1,"outputCanvas",2,"border","1p
1x solid #000","display","none"],[1,"cancelButton",3,"click"],[1,"registerButton",3,"click"]],template:function(r,i){if(1&r){const s=Ei();Y(0,"div",4),Qe("click",function(){return bt(s),vt(i.cancel())}),H(),Y(1,"div",5)(2,"img",6),Qe("click",function(){return bt(s),vt(i.cancel())}),H(),Y(3,"h2",7),re(4,"Restaurant Registration"),H(),ze(5,"div",8),Y(6,"div",9)(7,"div",10)(8,"label",11),re(9,"Cuisine Type"),H(),ze(10,"input",12,0),H()(),Y(12,"div",13)(13,"label",14),re(14,"Address"),H(),ze(15,"input",15,1),H(),Y(17,"div",10)(18,"label",16),re(19,"Price Range"),H(),Y(20,"div",17),ze(21,"input",18,2),Y(23,"p"),re(24,"$"),H(),ze(25,"input",19,2),Y(27,"p"),re(28,"$$"),H(),ze(29,"input",20,2),Y(31,"p"),re(32,"$$$"),H(),ze(33,"input",21,2),Y(35,"p"),re(36,"$$$$"),H()()(),Y(37,"div",10)(38,"label",22),re(39,"Upload image"),H(),ze(40,"input",23,3),H(),ze(42,"canvas",24),Y(43,"button",25),Qe("click",function(){return bt(s),vt(i.cancel())}),re(44,"Cancel"),H(),Y(45,"button",26),Qe("click",function(){bt(s);const a=wn(11),l=wn(16),c=wn(22),u=wn(41);return vt(i.timeLag(a.value,c.value,l.value,u.value,u.files[0]))}),re(46,"Register"),H()()}2&r&&(ht("ngStyle",i.editFormStyle),Ve(),ht("ngStyle",i.editFormStyle))},dependencies:[og],styles:['@media only screen and (min-width: 575px){.popup[_ngcontent-%COMP%]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:1.5px solid transparent;border-radius:10px;background-color:#fafafa;height:32.5rem;width:29rem;z-index:101;padding:61px 49px;animation:fadeInAnimation ease 1.5s;animation-iteration-count:1;animation-fill-mode:forwards}@keyframes fadeInAnimation{0%{opacity:.5}to{opacity:1}}#x-icon[_ngcontent-%COMP%]{position:absolute;height:21px;top:27px;right:26px;cursor:pointer;z-index:2}.registrationTitle[_ngcontent-%COMP%]{color:#404040;font-size:1.5rem;position:relative;top:-59px;left:-20px;margin-bottom:-9px}.popup[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#404040;font-size:1.1rem;font-weight:700;display:block;cursor:text;margin-bottom:4px}.popup[_ngcontent-%COMP%] [_ngcontent-%COMP%]::placeholder{color:#d3d3d3}.popup[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:1.5px solid #8b8b8b;border-radius:7px;caret-color:#8b8b8b;color:#404040;height:2rem;font-size:.8rem;padding-left:10px}.popup[_ngcontent-%COMP%] input[placeholder="Chain Number"][_ngcontent-%COMP%]{width:9rem}.popup[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none;border:1.5px solid #404040}.cancelButton[_ngcontent-%COMP%]{position:absolute;bottom:30px;left:15px;height:2.5rem;width:16rem;background-color:#404040;text-align:center;justify-content:center;align-items:center;border-radius:6px;border-color:transparent;color:#fff;cursor:pointer;font-size:.9rem}.cancelButton[_ngcontent-%COMP%]:hover{box-shadow:0 0 2px #191818}.registerButton[_ngcontent-%COMP%]{position:absolute;bottom:30px;right:15px;height:2.5rem;width:16rem;background-color:#f01363;text-align:center;justify-content:center;align-items:center;border-radius:6px;border-color:transparent;color:#fff;cursor:pointer;font-size:.9rem}.registerButton[_ngcontent-%COMP%]:hover{box-shadow:0 0 2px #cf1d64}.popup[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:inline-block;color:#404040;position:relative;bottom:12px;margin-right:36px}.gridContainer[_ngcontent-%COMP%], .gridContainer2[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 0fr;grid-gap:8px;padding-bottom:20px}.selectionMenu[_ngcontent-%COMP%]{border:1.5px solid #8b8b8b;border-radius:5px;cursor:pointer;outline:none;color:#404040;width:10rem;height:2.2rem}.selectionMenu[_ngcontent-%COMP%]:after{content:"";position:relative;right:27px;top:15px;transform:translateY(-50%);width:0;height:0;border-style:solid;border-width:6px 6px 0 6px;border-color:#404040 transparent transparent;pointer-events:none}.selectionMenu[_ngcontent-%COMP%]:focus{border-color:#404040}.lefter[_ngcontent-%COMP%]{width:18.5rem}.white-container[_ngcontent-%COMP%]{left:4%;width:92%;height:77%;background-color:#fff;position:absolute;bottom:13%;border-radius:17px;z-index:-2}.overlay-blurred[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;z-index:100;background-color:#070707c4;top:0;left:0}}@media only screen and (max-width: 575px){.overlay-blurred[_ngcontent-%COMP%]{display:none}.popup[_ngcontent-%COMP%]{position:absolute;height:100%;width:100%;display:block;top:4%;background-color:#fafafa}.white-container[_ngcontent-%COMP%]{left:2%;width:92%;height:80%;background-color:#fff;position:absolute;bottom:14%;border-radius:17px;z-index:0}#x-icon[_ngcontent-%COMP%]{position:absolute;height:24px;top:25px;right:40px;cursor:pointer;z-index:2}.gridContainer[_ngcontent-%COMP%], .gridContainer2[_ngcontent-%COMP%]{display:block}
1.cancelButton[_ngcontent-%COMP%]{position:absolute;top:52rem;left:25px;height:2.5rem;width:14rem;background-color:#404040;text-align:center;justify-content:center;align-items:center;border-radius:6px;border-color:transparent;color:#fff;cursor:pointer;font-size:.9rem}.cancelButton[_ngcontent-%COMP%]:hover{box-shadow:0 0 2px #191818}.registerButton[_ngcontent-%COMP%]{position:absolute;top:52rem;right:25px;height:2.5rem;width:14rem;background-color:#f01363;text-align:center;justify-content:center;align-items:center;border-radius:6px;border-color:transparent;color:#fff;cursor:pointer;font-size:.9rem}.registerButton[_ngcontent-%COMP%]:hover{box-shadow:0 0 2px #cf1d64}.popup[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;position:relative}.one[_ngcontent-%COMP%]{right:8rem}.two[_ngcontent-%COMP%]{right:7.5rem}.three[_ngcontent-%COMP%]{right:8.7rem}.four[_ngcontent-%COMP%]{right:7.3rem}.five[_ngcontent-%COMP%]{right:9.4rem}.six[_ngcontent-%COMP%]{right:8.2rem}.seven[_ngcontent-%COMP%]{right:7.8rem}.registrationTitle[_ngcontent-%COMP%]{color:#404040;font-size:1.3rem;position:relative;top:5px;left:16px;margin-bottom:28px}.field[_ngcontent-%COMP%]{text-align:center;margin-bottom:36px}.popup[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:inline-block;color:#404040;position:relative;bottom:4px;font-size:1rem;margin-right:36px}.selectionMenu[_ngcontent-%COMP%]{border:1.5px solid #8b8b8b;border-radius:5px;cursor:pointer;outline:none;color:#404040;width:24rem;height:2.4rem;position:relative}.selectionMenu[_ngcontent-%COMP%]:after{content:"";position:relative;right:27px;top:15px;transform:translateY(-50%);width:0;height:0;border-style:solid;border-width:6px 6px 0 6px;border-color:#404040 transparent transparent;pointer-events:none}.selectionMenu[_ngcontent-%COMP%]:focus{border-color:#404040}.popup[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#404040;font-size:1.1rem;font-weight:700;display:block;cursor:text;margin-bottom:4px}.popup[_ngcontent-%COMP%] [_ngcontent-%COMP%]::placeholder{color:#d3d3d3}.popup[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:1.5px solid #8b8b8b;border-radius:7px;caret-color:#8b8b8b;color:#404040;height:2rem;width:23rem;font-size:.8rem;padding-left:10px;position:relative}.popup[_ngcontent-%COMP%] input[name=priceRange][_ngcontent-%COMP%]{height:1.2rem;width:1.2rem}.popup[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none;border:1.5px solid #404040}.align-radio[_ngcontent-%COMP%]{position:relative;right:1.1rem}}@media only screen and (max-width: 509px){.registerButton[_ngcontent-%COMP%]{width:10rem;right:22px}.cancelButton[_ngcontent-%COMP%]{width:10rem;left:22px}}']})}return n})();function uce(n,e){const t="object"==typeof e;return new Promise((r,i)=>{let o,s=!1;n.subscribe({next:a=>{o=a,s=!0},error:i,complete:()=>{s?r(o):t?r(e.defaultValue):i(new e0)}})})}class dce{constructor(){this.errMsg="",this.toggle=!1}validate(e,t,r,i,s,o,a){return""==e?(this.errMsg="Please enter the Coupon name",this.toggle=!1,console.log("Line 182 has passed!"),!1):"discount"==t&&null==r?(this.errMsg="Please enter the discount percent",this.toggle=!1,console.log("Line 186 has passed!"),!1):""==i?(this.errMsg="Please enter the Coupon limit",this.toggle=!1,console.log("Line 190 has passed!"),!1):""==s?(this.errMsg="Please enter the Coupon description",this.toggle=!1,this.toggle=!1,console.log("Line 195 has passed!"),!1):!(a>=o&&(this.errMsg="Please enter a valid expiry date",this.toggle=!1,console.log("Line 203 has passed!"),1))}}class hce{constructor(){this.popupStyle={display:"none"},this.popupNoInputStyle={display:"none"},this.showed={display:"none"},this.overlayStyle={display:"none"}}}let fce=(()=>{class n{static#e=this.daysOfWeek=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]}return n})(),jD=(()=>{class n{static#e=this.code="code";static#t=this.id="couponId";static#n=this.pin="pin";static#r=this.limit=100}return n})();function pce(n,e){return new Date(1e3*e+n/1e6)}class w3{constructor(e,t,r,i,s,o,a,l,c,u,d,f,_,w,M,S,O,N,j){this.availability=e,this.client=t,this.co
1de=r,this.createdTime=i,this.days=s,this.description=o,this.discount=a,this.expireTime=l,this.limit=d,this.id=c,this.imageUrl=u,this.name=f,this.pin=_,this.saving=w,this.schedule=M,this.time=S,this.type=O,this.price=N,this.actualPrice=j}static fromObject(e){const t=new Map;if(e.time)for(const[s,o]of Object.entries(e.time)){const a=new Map;for(const[l,c]of Object.entries(o))a.set(l,c);t.set(s,a)}const r=pce(e.createdTime.nanoseconds,e.createdTime.seconds),i=pce(e.expireTime.nanoseconds,e.expireTime.seconds);return new w3(e.availability,e.client,e.code,r,e.days,e.description,e.discount,i,e.id,e.imageUrl,e.limit,e.name,e.pin,e.saving,e.schedule,t,e.type,e.price,e.actualPrice)}toObject(){const e={};return this.time.forEach((t,r)=>{const i={};t.forEach((s,o)=>{i[o]=s}),e[r]=i}),{days:this.days,description:this.description,discount:this.discount,expireTime:this.expireTime,imageUrl:this.imageUrl,limit:this.limit,name:this.name,saving:this.saving,type:this.type,availability:this.availability,client:this.client,code:this.code,createdTime:this.createdTime,id:this.id,pin:this.pin,schedule:this.schedule,time:e,couponExpireTime:this.expireTime,couponImage:this.imageUrl}}}class a3e{static validateCouponData(e){return null==e.actualPrice?(console.log("Actual Price missing",e.actualPrice),!1):null==e.client?(console.log("Client missing"),!1):null==e.days?(console.log("Days missing"),!1):null==e.description?(console.log("Description missing"),!1):null==e.discount?(console.log("Discount missing"),!1):null==e.id?(console.log("ID missing"),!1):null==e.name?(console.log("Name missing"),!1):null==e.price?(console.log("Price missing"),!1):null==e.saving?(console.log("Saving missing"),!1):null!=e.type||(console.log("Type missing"),!1)}}let l3e=(()=>{class n{constructor(t){this.firestore=t}addCoupon(t){this.firestore.collection("coupons").add(t).then(r=>(this.firestore.doc(`restaurants/${localStorage.getItem("userID")}`).get().subscribe(i=>{if(i.exists){var s=i.data();s.currentCoupons.push(r),this.firestore.doc(`restaurants/${localStorage.getItem("userID")}`).update(s).then(o=>o).catch(o=>!1)}}),r)).catch(r=>!1)}updateCoupon(t,r){this.firestore.doc(`coupons/${t}`).update(r).then(i=>i).catch(i=>!1)}getCoupon(t){var r=this;return(0,ee.A)(function*(){try{const s=yield Ke(r.firestore.doc(`coupons/${t}`).get());if(s.exists){var i=s.data();return i.id=t,i}throw new Error("Document not found")}catch(s){throw console.error("Error fetching document:",s),s}})()}static#e=this.\u0275fac=function(r){return new(r||n)(ve(Jf))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),c3e=(()=>{class n{constructor(t){this.firebaseCoupon=t}registerCoupon(t){const r=a3e.validateCouponData(t);if(console.log("Coupon data check:",r),!r)return"Invalid data";this.firebaseCoupon.addCoupon(t)}updateCoupon(t,r){this.firebaseCoupon.updateCoupon(t,r)}getCoupon(t){return this.firebaseCoupon.getCoupon(t).then(r=>(console.log(r),w3.fromObject(r)))}static#e=this.\u0275fac=function(r){return new(r||n)(ve(l3e))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),TR=(()=>{class n{constructor(t,r,i,s,o){this.http=t,this.firestorage=r,this.firestore=i,this.couponRepo=s,this.restaurantRepo=o}updateCoupon(t,r){var i=this;return(0,ee.A)(function*(){try{i.couponRepo.updateCoupon(t,r),console.log(t),console.log("Coupon updated successfully!")}catch(s){console.error("Error updating coupon: ",s)}})()}registerCoupon(t,r,i,s,o,a,l,c,u,d,f,_,w,M,S,O,N,j,Z,ie,le,Q,B){var J=this;return(0,ee.A)(function*(){a=yield J.uploadCouponImage(ie,le,t);const oe={days:r,description:i,discount:s,expireTime:o,imageUrl:a,limit:l,name:c,saving:u,type:d,availability:f,client:_,code:w,createdTime:M,id:S,pin:O,schedule:N,couponExpireTime:Z,price:Q,actualPrice:B,timeRange:j};console.log("Register data:",oe),J.couponRepo.registerCoupon(oe)})()}uploadCouponImage(t,r,i){var s=this;return(0,ee.A)(function*(){yield s.firestorage.upload(`/couponImages/${i}/${t.split(/(\\|\/)/g).pop()}`,r);var o=s.firestorage.ref(`/couponImages/${i}/${t.split(/(\\|\/)/g).pop()}`);return new Promise(a=>{o.getDownloadURL().subscribe(l=>{console.log(l),a(l)})})})()}getRestaurant(t){return"toronto"==dg.region?this.firestore.collection("restaurants").doc(t).get():this.firestore.collection(`${dg.region}Restaurants`).doc(t).get()}getRestaurantData(t){var r=this;return(0,ee.A)(function*(){return r.restaurantRepo.getRestaurant(t)})()}getCouponData(t){var r=this;return(0,ee.A)(function*(){return r.couponRepo.getCoupon(t)})()}static#e=this.\u0275fac=function(r){return new(r||n)(ve(Bc),ve(dR),ve(Jf),ve(c3e),ve(v3))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),mce=(()=>{class n{getUserEmail(){return localStorage.getItem("user")}setUserEmail(t){localStorage.setItem("user",t)}clearUserEmail(){localStorage.removeItem("user")}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function u3e(n,e){if(1&n){const t=Ei();Hv(0),Y(1,"div")(2,"input",91,12),Qe("input",function(){const i=bt(t).$implicit;return vt(tn().toggleTimeRequired(i))}),H(),Y(4,"span",92),re(5),H(),Y(6,"div")(7,"input",93),Qe("input",function(i){const s=bt(t).$implicit;return vt(tn().updateStartTime(i,s))}),H(),Y(8,"input",94),Qe("input",function(i){const s=bt(t).$implicit;return vt(tn().updateEndTime(i,s))}),H()()(),zv()}if(2&n){const t=e.$implicit,r=e.index,i=tn();Ve(),LE("check-container",r+1,""),Ve(),YE("name","time",t,""),jE("value",t),Ve(2),WA("left",i.getLeftPosition(r),"%"),Ve(),Mi(t[0]),Ve(),LE("inner",r+1,""),Ve(),Na("required",i.isTimeRequired(t)),Ve(),Na("required",i.isTimeRequired(t))}}let gce=(()=>{class n extends ip{constructor(t,r,i){super(t),this.eleRef=t,this.dataAccess=r,this.userService=i,this.closePopup=new Tn,this.daysOfWeek=fce.daysOfWeek,this.inputValidator=new dce,this.uploadedImageName="Upload Image",this.popupStyle=new hce,this.timeRequired={},this.timeSelectedDay="",this.timeStart={},this.timeEnd={},this.timeMap={},this.days=[]}ngOnInit(){var t=this;return(0,ee.A)(function*(){t.inputValidator.toggle=!1,t.daysChecked=Array(7).fill(!1)})()}showRegistrationPopup(){this.register.show(),this.eleRef.nativeElement.querySelector(".Entry-Form").style.display="none",this.inputValidator.toggle=!1}dayTimeFormat(t,r){return new Date(t+"T"+r)}valueFromSelector(t){return document.querySelector(t)?.value}sendDataToServer(){return(0,ee.A)(function*(){})()}registerCoupon(t,r,i,s,o,a,l,c,u,d){var f=this;return(0,ee.A)(function*(){try{if(!1===(yield uce(f.dataAccess.getRestaurant(localStorage.getItem("user")))).data().registered)f.showRegistrationPopup();else{const M=f.dayTimeFormat(document.getElementById("end_day_creation").value,document.getElementById("end_time_creation").value),S=f.dayTimeFormat(document.getElementById("start_day_creation").value,document.getElementById("start_time_creation").value),O=f.valueFromSelector('input[name="schedule"]:checked'),N=f.valueFromSelector('input[name="coupon-type"]:checked');console.log(f.timeMap),console.log(f.days);
1try{const j=yield f.uploadCouponImage(o,a);f.inputValidator.validate(t,N,i,s,r,M,new Date)&&(f.dataAccess.registerCoupon(f.userService.getUserEmail(),f.days,r,+i,M,j,jD.limit,t,+l,N,c,f.userService.getUserEmail(),jD.code,S,jD.id,jD.pin,O,f.timeMap,M,o,a,+u,+d),setTimeout(()=>{f.cancel()},100))}catch{setTimeout(()=>{f.popupStyle.popupNoInputStyle={display:"block"}},100)}}}catch{console.log("unresolved error with registeration status of restaurant!")}})()}uploadCouponImage(t,r){var i=this;return(0,ee.A)(function*(){return yield i.dataAccess.uploadCouponImage(t,r,localStorage.getItem("user"))})()}updateStartTime(t,r){this.timeMap[r].start=t.target.value}updateEndTime(t,r){this.timeMap[r].end=t.target.value}isTimeRequired(t){return this.timeRequired[t]?"required":null}getLeftPosition(t){return[34,38,31,39,39,36,36][t]}toggleTimeRequired(t){document.querySelector(`input[name="time${t}"]`).checked?(console.log(this.days),this.days.includes(t)||this.days.push(t)):(this.days=this.days.filter(i=>i!==t),this.timeMap[t]={start:"",end:""})}handleImageUpload(t){const r=t.target.files[0];this.uploadedImageName=r.name.length>12?r.name.substring(0,12)+"...":r.name,console.log("Uploaded Image Name:",this.uploadedImageName)}static#e=this.\u0275fac=function(r){return new(r||n)(_e(Qn),_e(TR),_e(mce))};static#t=this.\u0275cmp=xt({type:n,selectors:[["app-coupon-register"]],viewQuery:function(r,i){if(1&r&&Ps(nb,5),2&r){let s;ss(s=os())&&(i.register=s.first)}},inputs:{uniqueId:"uniqueId"},outputs:{closePopup:"closePopup"},features:[Mn],decls:141,vars:1,consts:[["couponRegisterContainer",""],["couponName",""],["couponDiscount",""],["couponLimit",""],["oneTimeOnly",""],["createdTime",""],["couponExpireTime",""],["couponDescription",""],["couponSaved",""],["price",""],["actualPrice",""],["couponImage",""],["checkboxes",""],[1,"overlay-blurred",3,"click"],[1,"popup"],[1,"container"],[1,"title"],[1,"scroll-container"],["action","#",1,"form-container"],[1,"user-inputs"],[1,"flex-container"],[1,"input-box"],[1,"details"],["type","text","placeholder","ex Free bubble tea"],["type","number","placeholder","5","required",""],[1,"availability-dropdown"],["for","availability"],["id","availability"],["value","limited"],["value","unlimited"],[1,"schedule"],[1,"one-time-only"],["type","radio","name","schedule","id","one-time-only","value","one-time-only"],["for","one-time-only"],[1,"every-day"],["type","radio","name","schedule","id","every-day","value","every-day"],["for","every-day"],[1,"every-week"],["type","radio","name","schedule","id","every-week","value","every-week"],["for","every-week"],[1,"every-month"],["type","radio","name","schedule","id","every-month","value","every-month"],["for","every-month"],[1,"custom"],["type","radio","name","schedule","id","Custom","value","custom"],["for","Custom"],[1,"start-container"],[1,"start"],[1,"inside1"],["type","date","name","start_day_creation","id","start_day_creation"],["for","time"],["type","time","id","start_time_creation","name","start_time_creation","min","00:00","max","24:00","required",""],[1,"end"],[1,"inside2"],["type","date","name","end_day_creation","id","end_day_creation"],["type","time","id","end_time_creation","name","end_time_creation","min","00:00","max","24:00","required",""],[1,"Input-Box7"],["for","weekdays",1,"form-label"],[1,"small-labels"],[1,"start-time"],["for","weekdays"],[1,"end-time"],[1,"days"],[4,"ngFor","ngForOf"],[1,"coupon-description"],["id","description-area","name","description-area","placeholder","Enter description here","required",""],[1,"coupon-type"],[1,"discount"],["type","radio","name","coupon-type","id","discount","value","discount"],["for","discount"],[1,"free-item"],["type","radio","name","coupon-type","id","free-item","value","free-item"],["for","free-item"],[1,"buy-one-get-one"],["type","radio","name","coupon-type","id","buy-one-get-one","value","buy-one-get-one"],["for","buy-one-get-one"],[1,"others"],["type","radio","name","coupon-type","id","others","value","others"],["for","others"],[1,"saved-amount"],["type","number","id","saved-amount","name","saved-amount","placeholder","Enter amount","required",""],[1,"price-data"],["type","number","id","price","name","price","placeholder","Enter amount","required",""],["type","number","id","actualPrice","name","actualPrice","placeholder","Enter amount","required",""],[1,"upload-container"],[1,"Input-Box8"],["type","file","id","myFile","name","filename","accept","image/png, image/jpeg",3,"change"],[1,"button-container"],[1,"button"],["type","button","value","Cancel",3,"click"],["type","button","value","Create!",3,"click"],["type","checkbox",3,"input","name","value"],[1,"letter"],["type","time","id","start_time","name","start_time","min","00:00","max","24:00",3,"input"],["type","time","id","end_time","name","end_time","min","00:00","max","24:00",3,"input"]],template:function(r,i){if(1&r){const s=Ei();Y(0,"div",13),Qe("click",function(){return bt(s),vt(i.cancel())}),H(),Y(1,"div",14,0)(3,"div",15)(4,"div",16),re(5,"Create a Coupon"),H(),Y(6,"div",17)(7,"form",18)(8,"div",19)(9,"div",20)(10,"div",21)(11,"div",22),re(12,"Coupon Name"),H(),ze(13,"input",23,1),H(),Y(15,"div",21)(16,"div",22),re(17,"Discount (%)"),H(),ze(18,"input",24,2),H(),Y(20,"div",25)(21,"label",26),re(22,"Coupons Available"),H(),Y(23,"select",27,3)(25,"option",28),re(26,"Limited"),H(),Y(27,"option",29),re(28,"Unlimited"),H()()()(),Y(29,"div",30)(30,"span",30),re(31,"Schedule"),H(),Y(32,"div",31),ze(33,"input",32,4),Y(35,"label",33)(36,"small"),re(37,"One-time only"),H()()(),Y(38,"div",34),ze(39,"input",35),Y(40,"label",36)(41,"small"),re(42,"Every day"),H()()(),Y(43,"div",37),ze(44,"input",38),Y(45,"label",39)(46,"small"),re(47,"Every week"),H()()(),Y(48,"div",40),ze(49,"input",41),Y(50,"label",42)(51,"small"),re(52,"Every month"),H()()(),Y(53,"div",43),ze(54,"input",44),Y(55,"label",45)(56,"small"),re(57,"Custom"),H()()()(),Y(58,"div",46)(59,"div",47)(60,"label"),re(61,"Start Date"),H(),Y(62,"div",48),ze(63,"input",49)(64,"label",50)(65,"input",51,5),H()(),Y(67,"div",52)(68,"label"),re(69,"End Date"),H(),Y(70,"div",53),ze(71,"input",54)(72,"label",50)(73,"input",55,6),H()()(),Y(75,"div",56)(76,"label",57),re
1(77,"Select Day Availability"),H(),Y(78,"div",58)(79,"div",59)(80,"small",60),re(81,"Start Time"),H()(),Y(82,"div",61)(83,"small",60),re(84,"End Time"),H()()(),Y(85,"div",62),Oi(86,u3e,9,14,"ng-container",63),H()(),Y(87,"div",64)(88,"label"),re(89,"Coupon Description"),H(),ze(90,"textarea",65,7),H(),Y(92,"div",66)(93,"span",66),re(94,"Coupon Type"),H(),Y(95,"div",67),ze(96,"input",68),Y(97,"label",69)(98,"small"),re(99,"Discount"),H()()(),Y(100,"div",70),ze(101,"input",71),Y(102,"label",72)(103,"small"),re(104,"Free Item"),H()()(),Y(105,"div",73),ze(106,"input",74),Y(107,"label",75)(108,"small"),re(109,"Buy 1 Get 1"),H()()(),Y(110,"div",76),ze(111,"input",77),Y(112,"label",78)(113,"small"),re(114,"Others"),H()()()(),Y(115,"div",15)(116,"div",79)(117,"label"),re(118,"Saved Amount"),H(),ze(119,"input",80,8),H(),Y(121,"div",81)(122,"label"),re(123,"Discounted price (with tax)"),H(),ze(124,"input",82,9),Y(126,"label"),re(127,"Original price (with tax)"),H(),ze(128,"input",83,10),H()(),Y(130,"div",84)(131,"label"),re(132,"Upload Image"),H(),Y(133,"div",85)(134,"input",86,11),Qe("change",function(a){return bt(s),vt(i.handleImageUpload(a))}),H()()(),Y(136,"div",87)(137,"div",88)(138,"input",89),Qe("click",function(){return bt(s),vt(i.cancel())}),H()(),Y(139,"div",88)(140,"input",90),Qe("click",function(){bt(s);const a=wn(14),l=wn(19),c=wn(24),u=wn(91),d=wn(120),f=wn(125),_=wn(129),w=wn(135);return vt(i.registerCoupon(a.value,u.value,l.value,c.value,w.value,w.files[0],d.value,c.value,f.value,_.value))}),H()()()()()()()()}2&r&&(Ve(86),ht("ngForOf",i.daysOfWeek))},dependencies:[ig,zg,np,rp,Yg,tp],styles:[".popup[_ngcontent-%COMP%]{display:none;justify-content:center;align-items:center;background:#00000080;position:fixed;top:0;left:0;width:100%;height:100%;z-index:1000;overflow:auto;padding:1rem;animation:fadeInAnimation ease 1.5s;animation-iteration-count:1;animation-fill-mode:forwards}.overlay-blurred[_ngcontent-%COMP%]{display:none;position:absolute;top:0;left:0;width:100%;height:100%;background-color:#a4a4a4c4;z-index:3;opacity:.9}.container[_ngcontent-%COMP%]{background:#fff;padding:2rem;border-radius:8px;box-shadow:0 2px 10px #0000001a;max-width:600px;width:100%;margin:auto}.title[_ngcontent-%COMP%]{font-size:24px;font-weight:700;margin-bottom:1.5rem;text-align:center}.scroll-container[_ngcontent-%COMP%]{max-height:70vh;overflow-y:auto}.form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.user-inputs[_ngcontent-%COMP%] .flex-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:1rem;margin-bottom:1rem;flex-wrap:wrap}.input-box[_ngcontent-%COMP%], .availability-dropdown[_ngcontent-%COMP%], .start-container[_ngcontent-%COMP%], .coupon-description[_ngcontent-%COMP%], .coupon-type[_ngcontent-%COMP%], .saved-amount[_ngcontent-%COMP%], .price-data[_ngcontent-%COMP%], .image-upload[_ngcontent-%COMP%]{margin-bottom:1rem;flex:1}.input-box[_ngcontent-%COMP%] .details[_ngcontent-%COMP%], .availability-dropdown[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .start[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .end[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .coupon-description[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .saved-amount[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .price-data[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .upload-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;font-weight:700;margin-bottom:.5rem}.input-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .availability-dropdown[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .start-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .coupon-description[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .saved-amount[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .price-data[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;padding:.5rem;border:1px solid #ccc;border-radius:4px}.schedule[_ngcontent-%COMP%]{margin-bottom:1rem}.schedule-title[_ngcontent-%COMP%]{display:block;font-weight:700;margin-bottom:.5rem}.radio-group[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:1rem}.radio-option[_ngcontent-%COMP%]{display:flex;align-items:center}.radio-option[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin-right:.5rem}.start-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}.start-container[_ngcontent-%COMP%] .inside1[_ngcontent-%COMP%], .start-container[_ngcontent-%COMP%] .inside2[_ngcontent-%COMP%]{display:flex;gap:1rem;flex:1}.days[_ngcontent-%COMP%] .check-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;margin-bottom:.5rem}.days[_ngcontent-%COMP%] .letter[_ngcontent-%COMP%]{display:inline-block;width:1.5rem;text-align:center}.coupon-description[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%;height:5rem;padding:.5rem;border:1px solid #ccc;border-radius:4px;resize:none}.coupon-type-title[_ngcontent-%COMP%]{display:block;font-weight:700;margin-bottom:.5rem}.image-upload[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;height:auto;margin-bottom:1rem}.button-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}.button[_ngcontent-%COMP%]{flex:1}.button[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;padding:.75rem;background:#007bff;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:16px;transition:background .3s ease}.button[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:hover{background:#0056b3}"]})}return n})();class rb{static stringToDate(e){const[t,r]=e.split(":").map(Number),i=new Date;return i.setHours(t),i.setMinutes(r),i.setSeconds(0),i}static getRemainingTime(e){const t=new Date,r=new Date(e).getTime()-t.getTime();if(r<=0)return"Expired";const i=(l,c)=>`${l} ${c}${1===l?"":"s"}`,s=[{divisor:31536e6,label:"year"},{divisor:6048e5,label:"week"},{divisor:864e5,label:"day"}];for(const{divisor:l,label:c}of s)if(r>=l)return i(Math.floor(r/l),c);return`${Math.floor(r/36e5)} hr ${Math.floor(r%36e5/6e4)} min`}static dateToHoursMinutes(e){return`${("0"+e.getHours()).slice(-2)}:${("0"+e.getMinutes()).slice(-2)}`}static dateToOnlyDate(e){return e.toISOString().split("T")[0]}}const Ds=()=>({standalone:!0});function d3e(n,e){if(1&n){const t=Ei();Hv(0),Y(1,"div")(2,"input",83,9),Qe("input",function(){const i=bt(t).$implicit;return vt(tn().toggleTimeRequired(i))}),H(),Y(4,"span",84),re(5),H(),Y(6,"div")(7,"input",85),Qe("input",function(i){const s=bt(t).$implicit;return vt(tn().updateStartTime(i,s))}),H(),Y(8,"input",86),Qe("input",function(i){const s=bt(t).$implicit;return vt(tn().updateEndTime(i,s))}),H()()(),zv()}if(2&n){const t=e.$implicit,r=e.index,i=tn();Ve(),LE("check-container",r+1,""),Ve(),YE("name","time",t,""),jE("value",t),ht("value",i.isDayChecked(t)),Ve(2),WA("left",i.getLeftPosition(r),"%"),Ve(),Mi(t[0]),Ve(),LE("inner",r+1,""),Ve(),ht("value",i.getStartTime(t)),Na("required",i.isTimeRequired(t)),Ve(),ht("value",i.getEndTime(t)),Na("required",i.isTimeRequired(t))}}let _ce=(()=>{class n extends ip{set coupon(t){this._coupon=t,this.onInputObjectChange(t)}
1get coupon(){return this._coupon}onInputObjectChange(t){this.cdr.detectChanges()}constructor(t,r,i,s){super(t),this.eleRef=t,this.dataAccess=r,this.userService=i,this.cdr=s,this.closePopup=new Tn,this.daysOfWeek=fce.daysOfWeek,this.inputValidator=new dce,this.uploadedImageName="Upload Image",this.popupStyle=new hce,this.timeRequired={},this.timeSelectedDay="",this.timeStart={},this.timeEnd={},this.timeMap={Monday:{start:"",end:""},Tuesday:{start:"",end:""},Wednesday:{start:"",end:""},Thursday:{start:"",end:""},Friday:{start:"",end:""},Saturday:{start:"",end:""},Sunday:{start:"",end:""}},this.days=[]}ngOnInit(){var t=this;return(0,ee.A)(function*(){t.inputValidator.toggle=!1,t.daysChecked=Array(7).fill(!1),t.initializeTimeMap()})()}showRegistrationPopup(){this.register.show(),this.eleRef.nativeElement.querySelector(".Entry-Form").style.display="none",this.inputValidator.toggle=!1}dayTimeFormat(t,r){return new Date(t+"T"+r)}valueFromSelector(t){return document.querySelector(t)?.value}registerCoupon(t,r,i,s,o,a,l,c,u,d){var f=this;return(0,ee.A)(function*(){try{if(!1===(yield uce(f.dataAccess.getRestaurant(localStorage.getItem("user")))).data().registered)f.showRegistrationPopup();else{const M=f.dayTimeFormat(document.getElementById("end_day").value,document.getElementById("end_time").value),S=f.dayTimeFormat(document.getElementById("start_day").value,document.getElementById("start_time").value),O=f.valueFromSelector('input[name="schedule"]:checked'),N=f.valueFromSelector('input[name="coupon-type"]:checked');try{const j=null!=o?yield f.uploadCouponImage(o,a):f.coupon.imageUrl;if(f.inputValidator.validate(t,N,i,s,r,M,new Date)){const ie={name:t,description:r,discount:+i,days:f.days,expireTime:M,imageUrl:j,limit:jD.limit,saving:+l,type:N,availability:c,createdTime:S,schedule:O,timeRange:f.timeMap};yield f.dataAccess.updateCoupon(f.coupon.id,ie),setTimeout(()=>{},100)}}catch{setTimeout(()=>{f.popupStyle.popupNoInputStyle={display:"block"}},100)}}}catch{console.log("unresolved error with registration status of restaurant!")}})()}uploadCouponImage(t,r){var i=this;return(0,ee.A)(function*(){return yield i.dataAccess.uploadCouponImage(t,r,localStorage.getItem("user"))})()}getSelectedDaysWithTime(){const t=new Map;for(const r of Object.keys(this.daysChecked))if(this.daysChecked[r]){const i=rb.stringToDate(this.timeStart[r]),s=rb.stringToDate(this.timeEnd[r]);t.set(r,new Map([["start_time",i],["end_time",s]]))}return t}updateStartTime(t,r){this.timeMap[r].start=t.target.value}updateEndTime(t,r){this.timeMap[r].end=t.target.value}isTimeRequired(t){return this.timeRequired[t]?"required":null}getLeftPosition(t){return[34,38,31,39,39,36,36][t]}toggleTimeRequired(t){document.querySelector(`input[name="time${t}"]`).checked?(console.log(this.days),this.days.includes(t)||this.days.push(t)):(this.days=this.days.filter(i=>i!==t),this.timeMap[t]={start:"",end:""})}initializeTimeMap(){this.daysOfWeek.forEach(t=>{console.log(""!=this.coupon.time.get(t).start),this.coupon.time.get(t)&&""!=this.coupon.time.get(t).start?(this.timeMap[t]={start:this.coupon.time.get(t).start,end:this.coupon.time.get(t).end},this.days.push(t),console.log(this.days)):this.timeMap[t]={start:"",end:""}})}isDayChecked(t){return this.days.includes(t)}getStartTime(t){return this.timeMap[t].start}getEndTime(t){return this.timeMap[t].end}handleImageUpload(t){const r=t.target.files[0];this.uploadedImageName=r.name.length>12?r.name.substring(0,12)+"...":r.name,console.log("Uploaded Image Name:",this.uploadedImageName)}cancel(){super.cancel(),window.location.reload()}static#e=this.\u0275fac=function(r){return new(r||n)(_e(Qn),_e(TR),_e(mce),_e(Ou))};static#t=this.\u0275cmp=xt({type:n,selectors:[["app-coupon-update"]],viewQuery:function(r,i){if(1&r&&Ps(nb,5),2&r){let s;ss(s=os())&&(i.register=s.first)}},inputs:{coupon:"coupon",uniqueId:"uniqueId"},outputs:{closePopup:"closePopup"},features:[Mn],decls:131,vars:62,consts:[["couponRegisterContainer",""],["couponName",""],["couponDiscount",""],["couponLimit",""],["couponDescription",""],["couponSaved",""],["price",""],["actualPrice",""],["couponImage",""],["checkboxes",""],[1,"overlay-blurred",3,"click"],[1,"popup"],[1,"container"],[1,"title"],[1,"scroll-container"],["action","#",1,"form-container"],[1,"user-inputs"],[1,"flex-container"],[1,"input-box"],[1,"details"],["type","text","placeholder","ex Free bubble tea",3,"ngModelChange","ngModel","ngModelOptions"],["type","number","placeholder","5",3,"ngModel","ngModelOptions"],[1,"availability-dropdown"],["for","availability"],["id","availability",3,"ngModel","ngModelOptions"],["value","limited"],["value","unlimited"],[1,"schedule"],[1,"schedule-title"],[1,"radio-group"],[1,"radio-option"],["type","radio","name","schedule","id","one-time-only","value","one-time-only",3,"ngModelChange","ngModel","ngModelOptions"],["for","one-time-only"],["type","radio","name","schedule","id","every-day","value","every-day",3,"ngModelChange","ngModel","ngModelOptions"],["for","every-day"],["type","radio","name","schedule","id","every-week","value","every-week",3,"ngModelChange","ngModel","ngModelOptions"],["for","every-week"],["type","radio","name","schedule","id","every-month","value","every-month",3,"ngModelChange","ngModel","ngModelOptions"],["for","every-month"],["type","radio","name","schedule","id","custom","value","custom",3,"ngModelChange","ngModel","ngModelOptions"],["for","custom"],[1,"start-container"],[1,"start"],[1,"inside1"],["type","date","name","start_day","id","start_day",3,"ngModelChange","ngModel","ngModelOptions"],["type","time","id","start_time","name","start_time","min","00:00","max","24:00",3,"ngModelChange","ngModel","ngModelOptions"],[1,"end"],[1,"inside2"],["type","date","name","end_day","id","end_day",3,"ngModelChange","ngModel","ngModelOptions"],["type","time","id","end_time","name","end_time","min","00:00","max","24:00",3,"ngModelChange","ngModel","ngModelOptions"],[1,"Input-Box7"],["for","weekdays",1,"form-label"],[1,"small-labels"],[1,"start-time"],[1,"end-time"],[1,"days"],[4,"ngFor","ngForOf"],[1,"coupon-description"],["id","description-area","name","description-area","placeholder","Enter description here",3,"ngModelChange","ngModel","ngModelOptions"],[1,"coupon-type"],[1,"coupon-type-title"],["type","radio","name","coupon-type","id","discount","value","discount",3,"ngModelChange","ngModel","ngModelOptions"],["for","discount"],["type","radio","name","coupon-type","id","free-item","value","free-item",3,"ngModelChange","ngModel","ngModelOptions"],["for","free-item"],["type","radio","name","coupon-type","id","buy-one-get-one","value","buy-one-get-one",3,"ngModelChange","ngModel","ngModelOptions"],["for","buy-one-get-one"],["type","radio","name","coupon-type","id","others","value","others",3,"ngModelChange","ngModel","ngModelOptions"],["for","others"],[1,"saved-amount"],["type","number","id","saved-amount","name","saved-amount","placeholder","Enter amount","required","",3,"ngModelChange","ngModel","ngModelOptions"],[1,"price-data"],["type","number","id","price","name","price","placeholder","Enter amount","required","",3,"ngModelChange","ngModel","ngModelOptions"],["type","number","id","actualPrice","name","actualPrice","placeholder","Enter amount","required","",3,"ngModelChange","ngModel","ngModelOptions"],[1,"image-upload"],["alt","Coupon Image",3,"src"],[1,"upload-container"],[1,"Input-Box8"],["type","file","id","myFile","name","filename","accept","image/png, image/jpeg",3,"change"],[1,"button-container"],[1,"button"],["type","submit","value","Cancel",3,"click"],["type","button","value","Create!",3,"click"],["type","checkbox",3,"input","name","value"],[1,"letter"],["type","time","id","start_time","name","start_time","min","00:00","max","24:00",3,"input","value"],["type","time","id","end_time","name","end_time","min","00:00","max","24:00",3,"input","value"]],template:function(r,i){if(1&r){const s=Ei();Y(0,"div",10),Qe("click",function(){return bt(s),vt(i.cancel())}),H(),Y(1,"div",11,0)(3,"div",12)(4,"div",13),re(5,"Update a Coupon"),H(),Y(6,"div",14)(7,"form",15)(8,"div",16)(9,"div",17)(10,"div",18)(11,"div",19),re(12,"Coupon Name"),H(),Y(13,"input",20,1),fr("ngModelChange",function(a){return bt(s),yr(i.coupon.couponName,a)||(i.coupon.couponName=a),vt(a)}),H()(),Y(15,"div",18)(16,"div",19),re(17,"Discount (%)"),H(),ze(18,"input",21,2),H(),Y(20,"div",22)(21,"label",23),re(22,"Coupons Available"),H(),Y(23,"select",24,3)(25,"option",25),re(26,"Limited"),H(),Y(27,"option",26),re(28,"Unlimited"),H()()()(),Y(29,"div",27)(30,"span",28),re(31,"Schedule"),H(),Y(32,"div",29)(33,"div",30)(34,"input",31),fr("ngModelChange",function(a){return bt(s),yr(i.coupon.couponSchedule,a)||(i.coupon.couponSchedule=a),vt(a)}),H(),Y(35,"label",32),re(36,"One-time only"),H()(),Y(37,"div",30)(38,"input",33),fr("ngModelChange",function(a){return bt(s),yr(i.coupon.couponSchedule,a)||(i.coupon.couponSchedule=a),vt(a)}),H(),Y(39,"label",34),re(40,"Every day"),H()(),Y(41,"div",30)(42,"input",35),fr("ngModelChange",function(a){return bt(s),yr(i.coupon.couponSchedule,a)||(i.coupon.couponSchedule=a),vt(a)}),H(),Y(43,"label",36),re(44,"Every week"),H()(),Y(45,"div",30)(46,"input",37),fr("ngModelChange",function(a){return bt(s),yr(i.coupon.couponSchedule,a)||(i.coupon.couponSchedule=a),vt(a)}),H(),Y(47,"label",38),re(48,"Every month"),H()(),Y(49,"div",30)(50,"input",39),fr("ngModelChange",function(a){return bt(s),yr(i.coupon.couponSchedule,a)||(i.coupon.couponSchedule=a),vt(a)}),H(),Y(51,"label",40),re(52,"Custom"),H()()()(),Y(53,"div",41)(54,"div",42)(55,"label"),re(56,"Start Date"),H(),Y(57,"div",43)(58,"input",44),fr("ngModelChange",function(a){return bt(s),yr(i.coupon.createdDate,a)||(i.coupon.createdDate=a),vt(a)}),H(),Y(59,"input",45),fr("ngModelChange",function(a){return bt(s),yr(i.coupon.createdTime,a)||(i.coupon.createdTime=a),vt(a)}),H()()(),Y(60,"div",46)(61,"label"),re(62,"End Date"),H(),Y(63,"div",47)(64,"input",48),fr("ngModelChange",function(a){return bt(s),yr(i.coupon.expireDate,a)||(i.coupon.expireDate=a),vt(a)}),H(),Y(65,"input",49),fr("ngModelChange",function(a){return bt(s),yr(i.coupon.expireTime,a)||(i.coupon.expireTime=a),vt(a)}),H()()()(),Y(66,"div",50)(67,"label",51),re(68,"Select Day Availability"),H(),Y(69,"div",52)(70,"div",53)(71,"small"),re(72,"Start Time"),H()(),Y(73,"div",54)(74,"small"),re(75,"End Time"),H()()(),Y(76,"div",55),Oi(77,d3e,9,17,"ng-container",56),H()(),Y(78,"div",57)(79,"label"),re(80,"Coupon Description"),H(),Y(81,"textarea",58,4),fr("ngModelChange",function(a){return bt(s),yr(i.coupon.couponDescription,a)||(i.coupon.couponDescription=a),vt(a)}),H()(),Y(83,"div",59)(84,"span",60),re(85,"Coupon Type"),H(),Y(86,"div",29)(87,"div",30)(88,"input",61),fr("ngModelChange",function(a){return bt(s),yr(i.coupon.selectedCouponType,a)||(i.coupon.selectedCouponType=a),vt(a)}),H(),Y(89,"label",62),re(90,"Discount"),H()(),Y(91,"div",30)(92,"input",63),fr("ngModelChange",function(a){return bt(s),yr(i.coupon.selectedCouponType,a)||(i.coupon.selectedCouponType=a),vt(a)}),H(),Y(93,"label",64),re(94,"Free Item"),H()(),Y(95,"div",30)(96,"input",65),fr("ngModelChange",function(a){return bt(s),yr(i.coupon.selectedCouponType,a)||(i.coupon.selectedCouponType=a),vt(a)}),H(),Y(97,"label",66),re(98,"Buy 1 Get 1"),H()(),Y(99,"div",30)(100,"input",67),fr("ngModelChange",function(a){return bt(s),yr(i.coupon.selectedCouponType,a)||(i.coupon.selectedCouponType=a),vt(a)}),H(),Y(101,"label",68),re(102,"Others"),H()()()(),Y(103,"div",12)(104,"div",69)(105,"label"),re(106,"Saved Amount"),H(),Y(107,"input",70,5),fr("ngModelChange",function(a){return bt(s),yr(i.coupon.saving,a)||(i.coupon.saving=a),vt(a)}),H()(),Y(109,"div",71)(110,"label"),re(111,"Discounted Price (with tax)"),H(),Y(112,"input",72,6),fr("ngModelChange",function(a){return bt(s),yr(i.coupon.price,a)||(i.coupon.price=a),vt(a)}),H(),Y(114,"label"),re(115,"Original Price (with tax)"),H(),Y(116,"input",73,7),fr("ngModelChange",function(a){return bt(s),yr(i.coupon.actualPrice,a)||(i.coupon.actualPrice=a),vt(a)}),H()()(),Y(118,"div",74),ze(119,"img",75),Y(120,"div",76)(121,"label"),re(122,"Upload a New Image"),H(),Y(123,"div",77)(124,"input",78,8),Qe("change",function(a){return bt(s),vt(i.handleImageUpload(a))}),H()()()(),Y(126,"div",79)(127,"div",80)(128,"input",81),Qe("click",function(){return bt(s),vt(i.cancel())}),H()(),Y(129,"div",80)(130,"input",82),Qe("click",function(){bt(s);const a=wn(14),l=wn(19),c=wn(24),u=wn(82),d=wn(108),f=wn(113),_=wn(117),w=wn(125);return vt(i.registerCoupon(a.value,u.value,l.value,c.value,w.value,w.files[0],d.value,c.value,f.value,_.value))}),H()()()()()()()()}2&r&&(Ve(13),hr("ngModel",i.coupon.couponName),ht("ngModelOptions",as(42,Ds)),Ve(5),ht("ngModel",i.coupon.couponDiscount)("ngModelOptions",as(43,Ds)),Ve(5),ht("ngModel",i.coupon.couponAvailability)("ngModelOptions",as(44,Ds)),Ve(11),hr("ngModel",i.coupon.couponSchedule),ht("ngModelOptions",as(45,Ds)),Ve(4),hr("ngModel",i.coupon.couponSchedule),ht("ngModelOptions",as(46,Ds)),Ve(4),hr("ngModel",i.coupon.couponSchedule),ht("ngModelOptions",as(47,Ds)),Ve(4),hr("ngModel",i.coupon.couponSchedule),ht("ngModelOptions",as(48,Ds)),Ve(4),hr("ngModel",i.coupon.couponSchedule),ht("ngModelOptions",as(49,Ds)),Ve(8),hr("ngModel",i.coupon.createdDate),ht("ngModelOptions",as(50,Ds)),Ve(),hr("ngModel",i.coupon.createdTime),ht("ngModelOptions",as(51,Ds)),Ve(5),hr("ngModel",i.coupon.expireDate),ht("ngModelOptions",as(52,Ds)),Ve(),hr("ngModel",i.coupon.expireTime),ht("ngModelOptions",as(53,Ds)),Ve(12),ht("ngForOf",i.daysOfWeek),Ve(4),hr("ngModel",i.coupon.couponDescription),ht("ngModelOptions",as(54,Ds)),Ve(7),hr("ngModel",i.coupon.selectedCouponType),ht("ngModelOptions",as(55,Ds)),Ve(4),hr("ngModel",i.coupon.selectedCouponType),ht("ngModelOptions",as(56,Ds)),Ve(4),hr("ngModel",i.coupon.selectedCouponType),ht("ngModelOptions",as(57,Ds)),Ve(4),hr("ngModel",i.coupon.selectedCouponType),ht("ngModelOptions",as(58,Ds)),Ve(7),hr("ngModel",i.coupon.saving),ht("ngModelOptions",as(59,Ds)),Ve(5),hr("ngModel",i.coupon.price),ht("ngModelOptions",as(60,Ds)),Ve(4),hr("ngModel",i.coupon.actualPrice),ht("ngModelOptions",as(61,Ds)),Ve(3),ht("src",i.coupon.imageUrl,hA))},dependencies:[ig,zg,np,rp,aw,C4,$g,S4,jg,Yg,vI,Hg,tp],styles:[".popup[_ngcontent-%COMP%]{display:none;justify-content:center;align-items:center;background:#00000080;position:fixed;top:20%;left:25%;width:50%;height:70%;z-index:1000;overflow:auto;padding:1rem}.overlay-blurred[_ngcontent-%COMP%]{display:none;position:absolute;top:0;left:0;width:100%;height:100%;background-color:#a4a4a4c4;z-index:3;
1opacity:.9}.container[_ngcontent-%COMP%]{background:#fff;padding:2rem;border-radius:8px;box-shadow:0 2px 10px #0000001a;max-width:600px;width:100%;margin:auto}.title[_ngcontent-%COMP%]{font-size:24px;font-weight:700;margin-bottom:1.5rem;text-align:center}.scroll-container[_ngcontent-%COMP%]{max-height:70vh;overflow-y:auto}.form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.user-inputs[_ngcontent-%COMP%] .flex-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:1rem;margin-bottom:1rem;flex-wrap:wrap}.input-box[_ngcontent-%COMP%], .availability-dropdown[_ngcontent-%COMP%], .start-container[_ngcontent-%COMP%], .coupon-description[_ngcontent-%COMP%], .coupon-type[_ngcontent-%COMP%], .saved-amount[_ngcontent-%COMP%], .price-data[_ngcontent-%COMP%], .image-upload[_ngcontent-%COMP%]{margin-bottom:1rem;flex:1}.input-box[_ngcontent-%COMP%] .details[_ngcontent-%COMP%], .availability-dropdown[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .start[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .end[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .coupon-description[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .saved-amount[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .price-data[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .upload-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;font-weight:700;margin-bottom:.5rem}.input-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .availability-dropdown[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .start-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .coupon-description[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .saved-amount[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .price-data[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;padding:.5rem;border:1px solid #ccc;border-radius:4px}.schedule[_ngcontent-%COMP%]{margin-bottom:1rem}.schedule-title[_ngcontent-%COMP%]{display:block;font-weight:700;margin-bottom:.5rem}.radio-group[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:1rem}.radio-option[_ngcontent-%COMP%]{display:flex;align-items:center}.radio-option[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin-right:.5rem}.start-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}.start-container[_ngcontent-%COMP%] .inside1[_ngcontent-%COMP%], .start-container[_ngcontent-%COMP%] .inside2[_ngcontent-%COMP%]{display:flex;gap:1rem;flex:1}.days[_ngcontent-%COMP%] .check-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;margin-bottom:.5rem}.days[_ngcontent-%COMP%] .letter[_ngcontent-%COMP%]{display:inline-block;width:1.5rem;text-align:center}.coupon-description[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%;height:5rem;padding:.5rem;border:1px solid #ccc;border-radius:4px;resize:none}.coupon-type-title[_ngcontent-%COMP%]{display:block;font-weight:700;margin-bottom:.5rem}.image-upload[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;height:auto;margin-bottom:1rem}.button-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}.button[_ngcontent-%COMP%]{flex:1}.button[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;padding:.75rem;background:#007bff;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:16px;transition:background .3s ease}.button[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:hover{background:#0056b3}"]})}return n})();class h3e{constructor(){this.editButtonStyle={display:"none"},this.editFormStyle={display:"none"}}}const f3e=["start_day"],p3e=n=>({"background-color":n});function m3e(n,e){if(1&n){const t=Ei();Y(0,"app-coupon-update",18),Qe("closePopup",function(){return bt(t),vt(tn(2).hideCouponRegister())}),H()}if(2&n){const t=tn().$implicit,r=tn();ht("coupon",t)("uniqueId",r.generateUniqueId())}}function g3e(n,e){if(1&n){const t=Ei();Y(0,"li",5)(1,"div",6)(2,"div",7),re(3),H(),Y(4,"div",8),re(5),H(),Y(6,"div",9),re(7),H(),Y(8,"div",10),re(9),H(),Y(10,"div",11),re(11),H(),Y(12,"div",12),re(13),H(),Y(14,"button",13),Qe("click",function(){const i=bt(t).$implicit;return vt(tn().onCreate(i))}),re(15,"Edit"),H(),Y(16,"a",14),Pa(),Y(17,"svg",15),ze(18,"path",16),H()()(),Oi(19,m3e,1,2,"app-coupon-update",17),H()}if(2&n){const t=e.$implicit,r=e.index,i=tn();ht("ngStyle",IW(8,p3e,r%2==0?"#F5F5F5":"white")),Ve(3),Mi(t.code),Ve(2),Mi(t.limit),Ve(2),Mi(t.typeNicerFormat),Ve(2),Mi(t.remainingTime),Ve(2),Mi(t.creationNicerFormat),Ve(2),Mi(t.expireNicerFormat),Ve(6),ht("ngIf",i.isCouponRegisterVisible)}}let yce=(()=>{class n{constructor(t,r,i,s){this.dataAccess=t,this.elRef=r,this.cdr=i,this.router=s,this.closePopup=new Tn,this.couponListStyle=new h3e,this.isCouponRegisterVisible=!0}ngOnChanges(t){t.coupon&&this.cdr.detectChanges()}
1ngOnInit(){this.currentCoupons=[],this.daysChecked=[!1,!1,!1,!1,!1,!1,!1],console.log("Days checked"),this.getCurrentCoupons(),setTimeout(()=>{this.elRef.nativeElement.querySelector("#Coupon-List-Skeleton").style.display="none",this.elRef.nativeElement.querySelector("#Coupon-List").style.display="block"},1e3),this.cdr.markForCheck()}ngAfterViewInit(){}onCreate(t){var r=this;return(0,ee.A)(function*(){try{const i=yield r.dataAccess.getRestaurantData(localStorage.getItem("userID"));console.log(i),r.couponUpdateComponent&&(r.couponUpdateComponent.coupon=t,r.couponUpdateComponent.coupon.couponName=t.name,r.couponUpdateComponent.coupon.couponDescription=t.description,r.couponUpdateComponent.coupon.couponDiscount=t.discount,r.couponUpdateComponent.coupon.couponAvailability=t.availability,r.couponUpdateComponent.coupon.couponSchedule=t.schedule,console.log(t.createdTime.toString()),r.couponUpdateComponent.coupon.createdDate=rb.dateToOnlyDate(new Date(t.createdTime.toString())),r.couponUpdateComponent.coupon.createdTime=rb.dateToHoursMinutes(new Date(t.createdTime.toString())),r.couponUpdateComponent.coupon.expireDate=rb.dateToOnlyDate(new Date(t.expireTime.toString())),r.couponUpdateComponent.coupon.expireTime=rb.dateToHoursMinutes(new Date(t.expireTime.toString())),r.couponUpdateComponent.coupon.selectedCouponType=t.type,r.couponUpdateComponent.coupon.couponSaved=t.saving,r.couponUpdateComponent.coupon.couponId=t.id,console.log(r.couponUpdateComponent.coupon.couponName),console.log("This is the name: "+r.couponUpdateComponent.coupon.couponName.toString()),r.couponUpdateComponent.show(),r.isCouponRegisterVisible=!0)}catch(i){console.error("Error in onCreate:",i)}})()}hideCouponRegister(){}generateUniqueId(){return"unique-id-"+Math.random().toString(36).substring(7)}getCurrentCoupons(){var t=this;return(0,ee.A)(function*(){t.dataAccess.getRestaurantData(localStorage.getItem("userID")).then(r=>(console.log(r.address),"boolean"!=typeof r&&(r.currentCoupons.forEach(i=>(console.log(typeof i),t.dataAccess.getCouponData(i).then(s=>(console.log(s),"boolean"!=typeof s&&(console.log(s.toObject()),console.log(`Coupon document ID: ${i}`),t.currentCoupons.push(s),t.checkExpiration()),i)).then(()=>{t.cdr.detectChanges()}))),!0)))})()}removeCoupon(t){return(0,ee.A)(function*(){})()}checkExpiration(){var t=this;return(0,ee.A)(function*(){t.currentCoupons.forEach(r=>{Object.keys(r).forEach(i=>{if("expire"===i){const s=r[i];new Date>=s&&t.removeCoupon(r.code)}})})})()}editCoupon(t){var r=this;return(0,ee.A)(function*(){r.couponListStyle.editFormStyle={display:"block"}})()}back(){var t=this;return(0,ee.A)(function*(){t.couponListStyle.editFormStyle={display:"none"}})()}static#e=this.\u0275fac=function(r){return new(r||n)(_e(TR),_e(Qn),_e(Ou),_e(bs))};static#t=this.\u0275cmp=xt({type:n,selectors:[["app-coupon-list"]],viewQuery:function(r,i){if(1&r&&(Ps(_ce,5),Ps(f3e,5)),2&r){let s;ss(s=os())&&(i.couponUpdateComponent=s.first),ss(s=os())&&(i.startDayInput=s.first)}},outputs:{closePopup:"closePopup"},features:[or],decls:13,vars:1,consts:[["id","Coupon-List",2,"font-size",".8rem"],["class","card",3,"ngStyle",4,"ngFor","ngForOf"],["id","Coupon-List-Skeleton",1,"container"],[1,"line"],[1,"shimmer"],[1,"card",3,"ngStyle"],[1,"Coupon"],[1,"One"],[1,"Two"],[1,"Three"],[1,"Four"],[1,"Five"],[1,"Six"],[1,"Edit-Button",3,"click"],[1,"Other-Button"],["xmlns","http://www.w3.org/2000/svg","width","18","height","18","fill","#404040","viewBox","0 0 16 16",1,"bi","bi-three-dots-vertical"],["d","M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"],[3,"coupon","uniqueId","closePopup",4,"ngIf"],[3,"closePopup","coupon","uniqueId"]],template:function(r,i){1&r&&(Y(0,"ul",0),Oi(1,g3e,20,10,"li",1),H(),Y(2,"div",2)(3,"article"),ze(4,"div",3)(5,"div",3)(6,"div",3)(7,"div",3)(8,"div",3)(9,"div",3)(10,"div",3)(11,"div",3)(12,"div",4),H()()),2&r&&(Ve(),ht("ngForOf",i.currentCoupons))},dependencies:[ig,sg,og,_ce],styles:['*[_ngcontent-%COMP%]{font-family:Verdana,sans-serif}article[_ngcontent-%COMP%]{background:#ddd;width:100%;position:relative;padding:20px;box-sizing:border-box;border-radius:10px}article[_ngcontent-%COMP%] .line[_ngcontent-%COMP%]{width:100%;height:20px;background:#bbb;margin:35px 0;border-radius:5px}article[_ngcontent-%COMP%] .shimmer[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:50%;height:100%;background:linear-gradient(100deg,#fff0 20%,#ffffff80,#fff0 80%);animation:_ngcontent-%COMP%_shimmer 2s infinite linear}@keyframes _ngcontent-%COMP%_shimmer{0%{transform:translate(-200%)}to{transform:translate(200%)}}#Coupon-List[_ngcontent-%COMP%]{display:none}#Coupon-List-Skeleton[_ngcontent-%COMP%]{display:block;width:62rem;position:absolute;top:2rem}.Coupon-Display[_ngcontent-%COMP%]:before{content:"Active Coupons";position:absolute;top:4rem;left:8.4rem;font-size:1.2rem;font-weight:700}.Coupon-Add-Button[_ngcontent-%COMP%]{position:absolute;top:6.9rem;right:8em;height:2.5em;width:5rem;line-height:1.8em;background-color:#f01363;text-align:center;display:flex;justify-content:center;align-items:center;border-radius:.5em;border-color:transparent;margin:1.5em auto auto;color:#fff;cursor:pointer;z-index:2;font-size:.8rem}.Coupon-Display[_ngcontent-%COMP%]{z-index:1;display:flex;flex-direction:column;align-items:flex-start;
1width:65rem;height:0rem;background:#fff;padding-top:4rem;margin-top:9%}.Coupon-Display-Top[_ngcontent-%COMP%]{position:relative;height:1em;width:62rem;border:none;display:flex;flex-direction:row;justify-content:center;align-items:center;font-size:.91rem}.Coupons-List[_ngcontent-%COMP%]{height:50rem;width:65rem;position:relative;overflow-y:scroll;border:black;border-width:thin}.Coupon-Display-Top[_ngcontent-%COMP%] .One[_ngcontent-%COMP%], .Coupon-Display-Top[_ngcontent-%COMP%] .Two[_ngcontent-%COMP%], .Coupon-Display-Top[_ngcontent-%COMP%] .Three[_ngcontent-%COMP%], .Coupon-Display-Top[_ngcontent-%COMP%] .Four[_ngcontent-%COMP%], .Coupon-Display-Top[_ngcontent-%COMP%] .Five[_ngcontent-%COMP%], .Coupon-Display-Top[_ngcontent-%COMP%] .Six[_ngcontent-%COMP%]{color:#404040}.One[_ngcontent-%COMP%], .Two[_ngcontent-%COMP%], .Three[_ngcontent-%COMP%], .Four[_ngcontent-%COMP%], .Five[_ngcontent-%COMP%], .Six[_ngcontent-%COMP%]{width:17rem;height:2rem;text-align:center;padding-top:1.7rem;color:#404040}.Remove[_ngcontent-%COMP%]{margin-top:2rem;margin-left:1rem;height:30px;width:90px;line-height:1.8rem;text-align:center}.Other[_ngcontent-%COMP%]{margin-top:1.5rem;margin-left:1rem;margin-right:2rem}.Coupon[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:62rem}ul[_ngcontent-%COMP%]{list-style:none;position:relative;right:2rem}.card[_ngcontent-%COMP%]{background-color:#f2f2f2;border-radius:10px;height:85px;width:64rem;position:relative}.card[_ngcontent-%COMP%] .Remove-Button[_ngcontent-%COMP%]{margin-top:2rem;margin-left:1rem;height:30px;width:90px;line-height:1.8rem;text-align:center;font-size:12px;font-weight:700;background:#bbb;color:#fff;border-radius:.2rem}.card[_ngcontent-%COMP%] .Remove-Button[_ngcontent-%COMP%]:hover{background-color:#d70688}.card[_ngcontent-%COMP%] .Other-Button[_ngcontent-%COMP%]{margin-top:1.68rem;margin-left:1rem;margin-right:1rem;cursor:pointer}.card[_ngcontent-%COMP%] .Other-Button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#404040;cursor:pointer;position:relative;top:6%}.card[_ngcontent-%COMP%] .Edit-Button[_ngcontent-%COMP%]{height:2.5em;width:4.7rem;line-height:1.8rem;background-color:transparent;text-align:center;display:flex;justify-content:center;align-items:center;border-radius:.5em;border:2px solid;border-color:#404040;margin:23px auto auto;color:#404040;cursor:pointer;font-size:.72rem}.card[_ngcontent-%COMP%] .Edit-Button[_ngcontent-%COMP%]:hover{background-color:#dcd7da2b}']})}return n})(),b3=(()=>{class n{constructor(t,r,i,s){this.firebaseAuth=t,this.firestore=r,this.firestorage=i,this.Router=s}generateRandomPin(){let r="";for(let i=0;i<6;i++)r+=Math.floor(10*Math.random());return r}logout(){this.firebaseAuth.signOut(),localStorage.removeItem("user"),this.Router.navigateByUrl("")}getRestaurant(t){return"toronto"==dg.region?this.firestore.collection("restaurants").doc(t).get():this.firestore.collection(`${dg.region}Restaurants`).doc(t).get()}firstTime(){var t=this;return(0,ee.A)(function*(){const r=localStorage.getItem("userID");console.log("local user:",r);try{return!(yield t.firestore.collection("restaurants").doc(r).get().toPromise()).exists}catch(i){return console.error("Error:",i),!0}})()}revokefirstTime(){var t=this;return(0,ee.A)(function*(){const r=localStorage.getItem("user");try{t.firestore.collection("restaurants").doc(r).update({firstTime:!1})}catch(i){console.log(i)}})()}static#e=this.\u0275fac=function(r){return new(r||n)(ve(mg),ve(Jf),ve(dR),ve(bs))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"any"})}return n})(),vce=(()=>{class n{constructor(t,r,i){this.firebaseService=t,this.router=r,this.ElementRef=i}ngOnInit(){const t=this.router.url.slice(1);"main"===t?(console.log("main"),this.ElementRef.nativeElement.querySelector(".bi-house").style.fill="#F01363"):"analytics"===t?(console.log("analytics"),this.ElementRef.nativeElement.querySelector(".bi-graph-up-arrow").style.fill="#F01363"):"account"===t?(console.log("account"),this.ElementRef.nativeElement.querySelector(".bi-person").style.fill="#F01363"):this.ElementRef.nativeElement.querySelector(".feather-log-out").style.fill="#F01363"}showMenu(){"none"===this.ElementRef.nativeElement.querySelector(".SideBar").style.display?this.ElementRef.nativeElement.querySelector(".SideBar").style.display="block":this.ElementRef.nativeElement.querySelector(".SideBar").style.display="none"}toHome(){this.router.navigateByUrl("main")}hoverHome(){this.ElementRef.nativeElement.querySelector(".Side-Home").style.background="#F01363"}toAccount(){this.router.navigateByUrl("account")}toAnalytics(){this.router.navigateByUrl("analytics")}logout(){this.firebaseService.logout(),null==localStorage.getItem("user")?console.log("Logged out!"):console.log("Still logged in")}static#e=this.\u0275fac=function(r){return new(r||n)(_e(b3),_e(bs),_e(Qn))};static#t=this.\u0275cmp=xt({type:n,selectors:[["app-hamburger-menu"]],decls:25,vars:0,consts:[["rel","stylesheet","href",fA`https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0`],[1,"SideBar"],[1,"Side-Home","
1iconDiv"],[1,"Side-Home-Image-Div","icon"],[1,"mainIcon",3,"click","mouseover"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","#8b8b8b","viewBox","0 0 16 16",1,"bi","bi-house"],["fill-rule","evenodd","d","M2 13.5V7h1v6.5a.5.5 0 0 0 .5.5h9a.5.5 0 0 0 .5-.5V7h1v6.5a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 2 13.5zm11-11V6l-2-2V2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5z"],["fill-rule","evenodd","d","M7.293 1.5a1 1 0 0 1 1.414 0l6.647 6.646a.5.5 0 0 1-.708.708L8 2.207 1.354 8.854a.5.5 0 1 1-.708-.708L7.293 1.5z"],[1,"Side-Analytics","iconDiv"],[1,"Side-Analytics-Image-Div","icon"],[1,"analyticsIcon",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","#8b8b8b","viewBox","0 0 16 16",1,"bi","bi-graph-up-arrow"],["fill-rule","evenodd","d","M0 0h1v15h15v1H0V0Zm10 3.5a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-1 0V4.9l-3.613 4.417a.5.5 0 0 1-.74.037L7.06 6.767l-3.656 5.027a.5.5 0 0 1-.808-.588l4-5.5a.5.5 0 0 1 .758-.06l2.609 2.61L13.445 4H10.5a.5.5 0 0 1-.5-.5Z"],[1,"Side-Settings","iconDiv"],[1,"Side-Settings-Image-Div","icon"],[1,"accountIcon",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","#8b8b8b","viewBox","0 0 16 16",1,"bi","bi-person"],["d","M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h10z"],[1,"Side-Logout","iconDiv"],[1,"Side-Logout-Image-Div","icon"],[1,"logoutIcon",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","fill","none","stroke","#8b8b8b","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"feather","feather-log-out"],["d","M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"],["points","16 17 21 12 16 7"],["x1","21","y1","12","x2","9","y2","12"]],template:function(r,i){1&r&&(ze(0,"link",0),Y(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),Qe("click",function(){return i.toHome()})("mouseover",function(){return i.hoverHome()}),Pa(),Y(5,"svg",5),ze(6,"path",6)(7,"path",7),H()()()(),Pc(),Y(8,"div",8)(9,"div",9)(10,"a",10),Qe("click",function(){return i.toAnalytics()}),Pa(),Y(11,"svg",11),ze(12,"path",12),H()()()(),Pc(),Y(13,"div",13)(14,"div",14)(15,"a",15),Qe("click",function(){return i.toAccount()}),Pa(),Y(16,"svg",16),ze(17,"path",17),H()()()(),Pc(),Y(18,"div",18)(19,"div",19)(20,"a",20),Qe("click",function(){return i.logout()}),Pa(),Y(21,"svg",21),ze(22,"path",22)(23,"polyline",23)(24,"line",24),H()()()()())},styles:[".SideBar[_ngcontent-%COMP%]{position:fixed;left:0;top:0;width:55px;height:100%;background:#fff;display:none;padding-top:7em;z-index:2;font-family:Verdana,sans-serif}.Side-Home-Header[_ngcontent-%COMP%]{opacity:0;position:absolute;height:1.4em;width:3em;top:.3em;left:2.6em;color:#f01363}.iconDiv[_ngcontent-%COMP%]{margin-bottom:100%}.icon[_ngcontent-%COMP%]{display:inline-block}.iconDiv[_ngcontent-%COMP%]:hover{cursor:pointer}.bi[_ngcontent-%COMP%], .feather[_ngcontent-%COMP%]{margin-left:15px}.Side-Analytics-Image[_ngcontent-%COMP%]{height:1.5em}.Side-Analytics-Header[_ngcontent-%COMP%]{opacity:0;position:absolute;height:1.4em;width:3em;top:.3em;left:2.6em}.Side-Settings-Header[_ngcontent-%COMP%]{opacity:0;position:absolute;height:1.4em;width:3.5em;top:.2em;left:2.7em}.Side-Settings-Image[_ngcontent-%COMP%]{height:1.5em}.Side-Logout-Header[_ngcontent-%COMP%]{opacity:0;position:absolute;height:1.4em;width:3.5em;top:.2em;left:2.7em}.Side-Logout-Image[_ngcontent-%COMP%]{height:1.5em}"]})}return n})(),_3e=(()=>{class n{constructor(t,r,i,s){this.presenter=t,this.router=r,this.ElementRef=i,this.cdr=s}ngOnInit(){const t=this.router.url.slice(1);"main"===t?(console.log("main"),this.ElementRef.nativeElement.querySelector(".bi-house").style.fill="#F01363"):"analytics"===t?(console.log("analytics"),this.ElementRef.nativeElement.querySelector(".bi-graph-up-arrow").style.fill="#F01363"):"account"===t?(console.log("account"),this.ElementRef.nativeElement.querySelector(".bi-person").style.fill="#F01363"):"marketing"===t?(console.log("marketing"),this.ElementRef.nativeElement.querySelector(".bi-megaphone").style.fill="#F01363"):"coubon-data"===t?(console.log("coubon-data"),this.ElementRef.nativeElement.querySelector(".bi-file-check").style.stroke="#F01363"):this.ElementRef.nativeElement.querySelector(".bi-box-arrow-right").style.fill="#F01363",this.cdr.detectChanges()}ngAfterViewInit(){this.cdr.detectChanges()}toHome(){this.router.navigateByUrl("main")}hoverHome(){this.ElementRef.nativeElement.querySelector(".Side-Home").style.background="rgba(240, 19, 99, 0.5)",this.ElementRef.nativeElement.querySelector(".bi-h
1ouse").style.fill="white"}resetHome(){const t=this.router.url.slice(1);this.ElementRef.nativeElement.querySelector(".Side-Home").style.background="white","main"===t?(console.log("main"),this.ElementRef.nativeElement.querySelector(".bi-house").style.fill="#F01363"):this.ElementRef.nativeElement.querySelector(".bi-house").style.fill="grey"}hoverAnalytics(){this.ElementRef.nativeElement.querySelector(".Side-Analytics").style.background="rgba(240, 19, 99, 0.5)",this.ElementRef.nativeElement.querySelector(".bi-graph-up-arrow").style.fill="white"}resetAnalytics(){const t=this.router.url.slice(1);this.ElementRef.nativeElement.querySelector(".Side-Analytics").style.background="white","analytics"===t?(console.log("analytics"),this.ElementRef.nativeElement.querySelector(".bi-graph-up-arrow").style.fill="#F01363"):this.ElementRef.nativeElement.querySelector(".bi-graph-up-arrow").style.fill="grey"}hoverMarketing(){this.ElementRef.nativeElement.querySelector(".Side-Marketing").style.background="rgba(240, 19, 99, 0.5)",this.ElementRef.nativeElement.querySelector(".bi-megaphone").style.fill="white"}resetMarketing(){const t=this.router.url.slice(1);this.ElementRef.nativeElement.querySelector(".Side-Marketing").style.background="white","marketing"===t?(console.log("marketing"),this.ElementRef.nativeElement.querySelector(".bi-megaphone").style.fill="#F01363"):this.ElementRef.nativeElement.querySelector(".bi-megaphone").style.fill="grey"}hoverSettings(){this.ElementRef.nativeElement.querySelector(".Side-Settings").style.backgroundColor="rgba(240, 19, 99, 0.5)",this.ElementRef.nativeElement.querySelector(".bi-person").style.fill="white"}resetSettings(){const t=this.router.url.slice(1);this.ElementRef.nativeElement.querySelector(".Side-Settings").style.background="white","account"===t?(console.log("main"),this.ElementRef.nativeElement.querySelector(".bi-person").style.fill="#F01363"):this.ElementRef.nativeElement.querySelector(".bi-person").style.fill="grey"}hoverLogout(){this.ElementRef.nativeElement.querySelector(".Side-Logout").style.backgroundColor="rgba(240, 19, 99, 0.5)",this.ElementRef.nativeElement.querySelector(".bi-box-arrow-right").style.fill="white"}resetLogout(){const t=this.router.url.slice(1);this.ElementRef.nativeElement.querySelector(".Side-Logout").style.background="white",this.ElementRef.nativeElement.querySelector(".bi-box-arrow-right").style.fill="main"!==t&&"analytics"!==t&&"account"!==t&&"marketing"!==t&&"coubon-data"!==t?"#F01363":"grey"}hoverCouBonData(){this.ElementRef.nativeElement.querySelector(".Side-CoubonData").style.backgroundColor="rgba(240, 19, 99, 0.5)",this.ElementRef.nativeElement.querySelector(".bi-bi-file-check").style.stroke="white"}resetCoubonData(){const t=this.router.url.slice(1);this.ElementRef.nativeElement.querySelector(".Side-CoubonData").style.background="white",this.ElementRef.nativeElement.querySelector(".bi-file-check").style.stroke="coubon-data"===t?"#F01363":"grey"}toAccount(){this.router.navigateByUrl("account")}toAnalytics(){this.router.navigateByUrl("analytics")}toMarketing(){this.router.navigateByUrl("marketing")}toCouBonData(){this.router.navigateByUrl("coubon-data")}logout(){var t=this;return(0,ee.A)(function*(){(yield t.presenter.logoutResult())?(localStorage.removeItem("userID"),t.router.navigateByUrl(""),console.log("Logged out!")):console.log("Still logged in")})()}static#e=this.\u0275fac=function(r){return new(r||n)(_e(UD),_e(bs),_e(Qn),_e(Ou))};static#t=this.\u0275cmp=xt({type:n,selectors:[["app-sidebar"]],decls:46,vars:0,consts:[[1,"SideBar"],[1,"Side-Home","iconDiv"],[1,"Side-Home-Image-Div","icon"],[1,"mainIcon",3,"click","mouseover","mouseout"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","#8b8b8b","viewBox","0 0 16 16",1,"bi","bi-house"],["fill-rule","evenodd","d","M2 13.5V7h1v6.5a.5.5 0 0 0 .5.5h9a.5.5 0 0 0 .5-.5V7h1v6.5a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 2 13.5zm11-11V6l-2-2V2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5z"],["fill-rule","evenodd","d","M7.293 1.5a1 1 0 0 1 1.414 0l6.647 6.646a.5.5 0 0 1-.708.708L8 2.207 1.354 8.854a.5.5 0 1 1-.708-.708L7.293 1.5z"],[1,"Side-Analytics","iconDiv"],[1,"Side-Analytics-Image-Div","icon"],[1,"analyticsIcon",3,"click","mouseover","mouseout"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","#8b8b8b","viewBox","0 0 16 16",1,"bi","bi-graph-up-arrow"],["fill-rule","evenodd","d","M0 0h1v15h15v1H0V0Zm10 3.5a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-1 0V4.9l-3.613 4.417a.5.5 0 0 1-.74.037L7.06 6.767l
1-3.656 5.027a.5.5 0 0 1-.808-.588l4-5.5a.5.5 0 0 1 .758-.06l2.609 2.61L13.445 4H10.5a.5.5 0 0 1-.5-.5Z"],[1,"Side-Marketing","iconDiv"],[1,"Side-Marketing-Image-Div","icon"],[1,"marketingIcon",3,"click","mouseover","mouseout"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","#8b8b8b","viewBox","0 0 16 16",1,"bi","bi-megaphone"],["d","M13 2.5a1.5 1.5 0 0 1 3 0v11a1.5 1.5 0 0 1-3 0v-.214c-2.162-1.241-4.49-1.843-6.912-2.083l.405 2.712A1 1 0 0 1 5.51 15.1h-.548a1 1 0 0 1-.916-.599l-1.85-3.49a68.14 68.14 0 0 0-.202-.003A2.014 2.014 0 0 1 0 9V7a2.02 2.02 0 0 1 1.992-2.013 74.663 74.663 0 0 0 2.483-.075c3.043-.154 6.148-.849 8.525-2.199V2.5zm1 0v11a.5.5 0 0 0 1 0v-11a.5.5 0 0 0-1 0zm-1 1.35c-2.344 1.205-5.209 1.842-8 2.033v4.233c.18.01.359.022.537.036 2.568.189 5.093.744 7.463 1.993V3.85zm-9 6.215v-4.13a95.09 95.09 0 0 1-1.992.052A1.02 1.02 0 0 0 1 7v2c0 .55.448 1.002 1.006 1.009A60.49 60.49 0 0 1 4 10.065zm-.657.975 1.609 3.037.01.024h.548l-.002-.014-.443-2.966a68.019 68.019 0 0 0-1.722-.082z"],[1,"Side-CoubonData","iconDiv"],[1,"Side-CoubonData-Image-Div","icon"],[1,"couponDataIcon",3,"click","mouseover","mouseout"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","stroke","#8b8b8b","viewBox","0 0 16 16",1,"bi","bi-file-check"],["d","M14 4.5V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h4.5L14 4.5zM4 4h7a.5.5 0 0 1 .5.5V6H4V4.5A.5.5 0 0 1 4 4zM4 6v1h7V6H4zM4 8v1h7V8H4zM4 10v1h7v-1H4z"],["d","M7.293 9.293a1 1 0 0 1 1.414 0L11 11.586l2.293-2.293a1 1 0 0 1 1.414 1.414l-3 3a1 1 0 0 1-1.414 0l-3-3a1 1 0 0 1 0-1.414z"],[1,"Side-Settings","iconDiv"],[1,"Side-Settings-Image-Div","icon"],[1,"accountIcon",3,"click","mouseover","mouseout"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","#8b8b8b","viewBox","0 0 16 16",1,"bi","bi-person"],["d","M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h10z"],[1,"Side-Logout","iconDiv"],[1,"Side-Logout-Image-Div","icon"],[1,"logoutIcon",3,"click","mouseover","mouseout"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","#8b8b8b","viewBox","0 0 16 16",1,"bi","bi-box-arrow-right"],["fill-rule","evenodd","d","M10 12.5a.5.5 0 0 1-.5.5h-8a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h8a.5.5 0 0 1 .5.5v2a.5.5 0 0 0 1 0v-2A1.5 1.5 0 0 0 9.5 2h-8A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h8a1.5 1.5 0 0 0 1.5-1.5v-2a.5.5 0 0 0-1 0v2z"],["fill-rule","evenodd","d","M15.854 8.354a.5.5 0 0 0 0-.708l-3-3a.5.5 0 0 0-.708.708L14.293 7.5H5.5a.5.5 0 0 0 0 1h8.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3z"]],template:function(r,i){1&r&&(Y(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3),Qe("click",function(){return i.toHome()})("mouseover",function(){return i.hoverHome()})("mouseout",function(){return i.resetHome()}),Pa(),Y(4,"svg",4),ze(5,"path",5)(6,"path",6),H(),Pc(),Y(7,"span"),re(8,"Home"),H()()()(),Y(9,"div",7)(10,"div",8)(11,"a",9),Qe("click",function(){return i.toAnalytics()})("mouseover",function(){return i.hoverAnalytics()})("mouseout",function(){return i.resetAnalytics()}),Pa(),Y(12,"svg",10),ze(13,"path",11),H(),Pc(),Y(14,"span"),re(15,"Analytics"),H()()()(),Y(16,"div",12)(17,"div",13)(18,"a",14),Qe("click",function(){return i.toMarketing()})("mouseover",function(){return i.hoverMarketing()})("mouseout",function(){return i.resetMarketing()}),Pa(),Y(19,"svg",15),ze(20,"path",16),H(),Pc(),Y(21,"span"),re(22,"Marketing"),H()()()(),Y(23,"div",17)(24,"div",18)(25,"a",19),Qe("click",function(){return i.toCouBonData()})("mouseover",function(){return i.hoverCouBonData()})("mouseout",function(){return i.resetCoubonData()}),Pa(),Y(26,"svg",20),ze(27,"path",21)(28,"path",22),H(),Pc(),Y(29,"span"),re(30,"CouBon Data"),H()()()(),Y(31,"div",23)(32,"div",24)(33,"a",25),Qe("click",function(){return i.toAccount()})("mouseover",function(){return i.hoverSettings()})("mouseout",function(){return i.resetSettings()}),Pa(),Y(34,"svg",26),ze(35,"path",27),H(),Pc(),Y(36,"span"),re(37,"Settings"),H()()()(),Y(38,"div",28)(39,"div",29)(40,"a",30),Qe("click",function(){return i.logout()})("mouseover",function(){return i.hoverLogout()})("mouseout",function(){return i.resetLogout()}),Pa(),Y(41,"svg",31),ze(42,"path",32)(43,"path",33),H(),Pc(),Y(44,"span"),re(45,"Logout"),H()()()()())},styles:["body[_ngcontent-%COMP%]{margin:0;font-family:Arial,sans-serif}.SideBar[_ngcontent-%COMP%]{position:fixed;left:0;top:0;width:170px;height:100%;background-color:#f0f0f0;padding-top:5rem}.iconDiv[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:10px;margin-left:5px;margin-right:10px;padding:10px;background-color:#fff;border-radius:5px;width:140px;transition:background-color .3s}.iconDiv[_ngcontent-%COMP%]:hover{background-color:#e0e0e0;cursor:pointer}.iconDiv[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;align-items:center;text-decoration:none;color:#333}.mainIcon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%], .analyticsIcon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%], .marketingIcon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%], .accountIcon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%], .logoutIcon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:10px}.iconDiv[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:16px}"]})}return n})();function y3e(n,e){1&n&&ze(0,"app-sidebar")}function v3e(n,e){1&n&&ze(0,"app-hamburger-menu")}let ib=(()=>{class n{constructor(t){this.Router=t,this.isFirstSelectorActive=!0,this.screenWidth=window.innerWidth,this.updateSelectorBasedOnScreenWidth()}onResize(t){this.screenWidth=t.target.innerWidth,this.updateSelectorBasedOnScreenWidth()}updateSelectorBasedOnScreenWidth(){this.isFirstSelectorActive=this.screenWidth>=780}menuClicked(){this.hamburgerMenuComponent.showMenu()}redirect(){window.location.href="https://coubon.ca/"}static#e=this.\u0275fac=function(r){return new(r||n)(_e(bs))};static#t=this.\u0275cmp=xt({type:n,selectors:[["app-header"]],viewQuery:function(r,i){if(1&r&&Ps(vce,5),2&r){let s;ss(s=os())&&(i.hamburgerMenuComponent=s.first)}},hostBindings:function(r,i){1&r&&Qe("resize",function(o){return i.onResize(o)},0,v9)},decls:6,vars:2,consts:[[1,"Options"],["src","../../assets/CouBon Word Logo.svg",1,"Company-Image",3,"click"],["height","32px","fill","#404040","version","1.1","viewBox","0 0 32 32","width","32px",0,"xml","space","preserve","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",1,"Layer-1",2,"enable-background","new 0 0 32 32",3,"click"],["d","M4,10h24c1.104,0,2-0.896,2-2s-0.896-2-2-2H4C2.896,6,2,6.896,2,8S2.896,10,4,10z M28,14H4c-1.104,0-2,0.896-2,2 s0.896,2,2,2h24c1.104,0,2-0.896,2-2S29.104,14,28,14z M28,22H4c-1.104,0-2,0.896-2,2s0.896,2,2,2h24c1.104,0,2-0.896,2-2 S29.104,22,28,22z"],[4,"ngIf"]],template:function(r,i){1&r&&(Y(0,"div",0)(1,"img",1),Qe("click",function(){return i.redirect()}),H(),Pa(),Y(2,"svg",2),Qe("click",function(){return i.menuClicked()}),ze(3,"path",3),H()(),Oi(4,y3e,1,0,"app-sidebar",4)(5,v3e,1,0,"app-hamburger-menu",4)),2&r&&(Ve(4),ht("ngIf",i.isFirstSelectorActive),Ve(),ht("ngIf",!i.isFirstSelectorActive))},dependencies:[sg,_3e,vce],styles:[".Options[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:3.9rem;background:#f01363;box-shadow:#a6969b89 0 -3px 6px 2px;border-radius:.3rem;z-index:3;display:flex;flex-direction:row}.Company-Image[_ngcontent-%COMP%]{height:82%;margin-left:2rem;margin-top:.3rem;border-radius:5px;cursor:pointer}.Layer-1[_ngcontent-%COMP%]{display:none}@media only screen and (max-width: 780px){.Company-Image[_ngcontent-%COMP%]{position:relative;margin-left:0;left:38%}.Layer-1[_ngcontent-%COMP%]{display:inline-block;position:absolute;margin-top:15px;margin-left:15px}}"]})}return n})(),wce=(()=>{class n extends ip{constructor(t,r){super(r),this.presenterService=t,this.elementRef=r,this.editFormStyle={display:"none"}}confirmRestaurantData(t,r,i,s,o,a){var l=this;return(0,ee.A)(function*(){console.log("register data from here"),console.log(localStorage.getItem("userID")),yield l.presenterService.registerRestaurantData(i,t,s,o,a,Number(r),localStorage.getItem("userID")).then(c=>{c&&window.location.reload()}),console.log("From registration-popup.component: The Data is Registered")})()}timeLag(t,r,i,s,o,a){this.confirmRestaurantData(t,r,i,s,o,a),setTimeout(()=>{this.editFormStyle={display:"none"}},2700)}trimImage(t){const r=document.createElement("canvas");r.width=t.width-100,r.height=t.height;const s=r.getContext("2d");return s&&s.drawImage(t,0,0,r.width,r.height,0,0,r.width,r.height),r}displayTrimmedImage(t){const r=this.elementRef.nativeElement.querySelector(".outputCanvas");r.width=t.width,r.height=t.height;const i=r.getContext("2d");i&&i.drawImage(t,0,0)}static#e=this.\u0275fac=function(r){return new(r||n)(_e(UD),_e(Qn))};static#t=this.\u0275cmp=xt({type:n,selectors:[["app-first-time-registration"]],features:[Mn],decls:50,vars:2,consts:[["resturantName",""],["cuisineType",""],["address",""],["priceRange",""],["image",""],[1,"overlay-blurred",3,"ngStyle"],[1,"popup",3,"ngStyle"],[1,"registrationTitle"],[1,"white-container"],[1,"gridContainer"],[1,"field"],[1,"one"],["type","text","placeholder","Restaurant Name",1,"lefter"],["type","text","placeholder","Cuisine Type",1,"lefter"],[1,"field",2,"padding-bottom","20px"],[1,"five"],["type","text","placeholder","Address",1,"lefter"],[1,"six"],[1,"align-radio"],["type","radio","name","priceRange","value","1"],["type","radio","name","priceRange","value","100"],["type","radio","name","priceRange","value","1000"],["type","radio","name","priceRange","value","10000"],[1,"seven"],["type","file","accept","image/png, image/jpeg",2,"border","none","border-radius","0px","font-size",".9rem"],[1,"outputCanvas",2,"border","1p
1x solid #000","display","none"],[1,"registerButton",3,"click"]],template:function(r,i){if(1&r){const s=Ei();ze(0,"div",5),Y(1,"div",6)(2,"h2",7),re(3,"Restaurant Registration"),H(),ze(4,"div",8),Y(5,"div",9)(6,"div",10)(7,"label",11),re(8,"Resturant Name"),H(),ze(9,"input",12,0),H()(),Y(11,"div",9)(12,"div",10)(13,"label",11),re(14,"Cuisine Type"),H(),ze(15,"input",13,1),H()(),Y(17,"div",14)(18,"label",15),re(19,"Address"),H(),ze(20,"input",16,2),H(),Y(22,"div",10)(23,"label",17),re(24,"Price Range"),H(),Y(25,"div",18),ze(26,"input",19,3),Y(28,"p"),re(29,"$"),H(),ze(30,"input",20,3),Y(32,"p"),re(33,"$$"),H(),ze(34,"input",21,3),Y(36,"p"),re(37,"$$$"),H(),ze(38,"input",22,3),Y(40,"p"),re(41,"$$$$"),H()()(),Y(42,"div",10)(43,"label",23),re(44,"Upload image"),H(),ze(45,"input",24,4),H(),ze(47,"canvas",25),Y(48,"button",26),Qe("click",function(){bt(s);const a=wn(10),l=wn(16),c=wn(21),u=wn(27),d=wn(46);return vt(i.timeLag(l.value,u.value,c.value,d.value,d.files[0],a.value))}),re(49,"Register"),H()()}2&r&&(ht("ngStyle",i.editFormStyle),Ve(),ht("ngStyle",i.editFormStyle))},dependencies:[og],styles:['@media only screen and (min-width: 575px){.popup[_ngcontent-%COMP%]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:1.5px solid transparent;border-radius:10px;background-color:#fafafa;height:32.5rem;width:29rem;z-index:101;padding:61px 49px;animation:fadeInAnimation ease 1.5s;animation-iteration-count:1;animation-fill-mode:forwards}@keyframes fadeInAnimation{0%{opacity:.5}to{opacity:1}}#x-icon[_ngcontent-%COMP%]{position:absolute;height:21px;top:27px;right:26px;cursor:pointer;z-index:2}.registrationTitle[_ngcontent-%COMP%]{color:#404040;font-size:1.5rem;position:relative;top:-59px;left:-20px;margin-bottom:-9px}.popup[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#404040;font-size:1.1rem;font-weight:700;display:block;cursor:text;margin-bottom:4px}.popup[_ngcontent-%COMP%] [_ngcontent-%COMP%]::placeholder{color:#d3d3d3}.popup[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:1.5px solid #8b8b8b;border-radius:7px;caret-color:#8b8b8b;color:#404040;height:2rem;font-size:.8rem;padding-left:10px}.popup[_ngcontent-%COMP%] input[placeholder="Chain Number"][_ngcontent-%COMP%]{width:9rem}.popup[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none;border:1.5px solid #404040}.cancelButton[_ngcontent-%COMP%]{position:absolute;bottom:30px;left:15px;height:2.5rem;width:16rem;background-color:#404040;text-align:center;justify-content:center;align-items:center;border-radius:6px;border-color:transparent;color:#fff;cursor:pointer;font-size:.9rem}.cancelButton[_ngcontent-%COMP%]:hover{box-shadow:0 0 2px #191818}.registerButton[_ngcontent-%COMP%]{position:absolute;bottom:30px;right:15px;height:2.5rem;width:16rem;background-color:#f01363;text-align:center;justify-content:center;align-items:center;border-radius:6px;border-color:transparent;color:#fff;cursor:pointer;font-size:.9rem}.registerButton[_ngcontent-%COMP%]:hover{box-shadow:0 0 2px #cf1d64}.popup[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:inline-block;color:#404040;position:relative;bottom:12px;margin-right:36px}.gridContainer[_ngcontent-%COMP%], .gridContainer2[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 0fr;grid-gap:8px;padding-bottom:20px}.selectionMenu[_ngcontent-%COMP%]{border:1.5px solid #8b8b8b;border-radius:5px;cursor:pointer;outline:none;color:#404040;width:10rem;height:2.2rem}.selectionMenu[_ngcontent-%COMP%]:after{content:"";position:relative;right:27px;top:15px;transform:translateY(-50%);width:0;height:0;border-style:solid;border-width:6px 6px 0 6px;border-color:#404040 transparent transparent;pointer-events:none}.selectionMenu[_ngcontent-%COMP%]:focus{border-color:#404040}.lefter[_ngcontent-%COMP%]{width:18.5rem}.white-container[_ngcontent-%COMP%]{left:4%;width:92%;height:77%;background-color:#fff;position:absolute;bottom:13%;border-radius:17px;z-index:-2}.overlay-blurred[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;z-index:100;background-color:#070707c4;top:0;left:0}}@media only screen and (max-width: 575px){.overlay-blurred[_ngcontent-%COMP%]{display:none}.popup[_ngcontent-%COMP%]{position:absolute;height:100%;width:100%;display:block;top:4%;background-color:#fafafa}.white-container[_ngcontent-%COMP%]{left:2%;width:92%;height:80%;background-color:#fff;position:absolute;bottom:14%;border-radius:17px;z-index:0}#x-icon[_ngcontent-%COMP%]{position:absolute;height:24px;top:25px;right:40px;cursor:pointer;z-index:2}.gridContainer[_ngcontent-%COMP%], .gridContainer2[_ngcontent-%COMP%]{display:block}
1.cancelButton[_ngcontent-%COMP%]{position:absolute;top:52rem;left:25px;height:2.5rem;width:14rem;background-color:#404040;text-align:center;justify-content:center;align-items:center;border-radius:6px;border-color:transparent;color:#fff;cursor:pointer;font-size:.9rem}.cancelButton[_ngcontent-%COMP%]:hover{box-shadow:0 0 2px #191818}.registerButton[_ngcontent-%COMP%]{position:absolute;top:52rem;right:25px;height:2.5rem;width:14rem;background-color:#f01363;text-align:center;justify-content:center;align-items:center;border-radius:6px;border-color:transparent;color:#fff;cursor:pointer;font-size:.9rem}.registerButton[_ngcontent-%COMP%]:hover{box-shadow:0 0 2px #cf1d64}.popup[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;position:relative}.one[_ngcontent-%COMP%]{right:8rem}.two[_ngcontent-%COMP%]{right:7.5rem}.three[_ngcontent-%COMP%]{right:8.7rem}.four[_ngcontent-%COMP%]{right:7.3rem}.five[_ngcontent-%COMP%]{right:9.4rem}.six[_ngcontent-%COMP%]{right:8.2rem}.seven[_ngcontent-%COMP%]{right:7.8rem}.registrationTitle[_ngcontent-%COMP%]{color:#404040;font-size:1.3rem;position:relative;top:5px;left:16px;margin-bottom:28px}.field[_ngcontent-%COMP%]{text-align:center;margin-bottom:36px}.popup[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:inline-block;color:#404040;position:relative;bottom:4px;font-size:1rem;margin-right:36px}.selectionMenu[_ngcontent-%COMP%]{border:1.5px solid #8b8b8b;border-radius:5px;cursor:pointer;outline:none;color:#404040;width:24rem;height:2.4rem;position:relative}.selectionMenu[_ngcontent-%COMP%]:after{content:"";position:relative;right:27px;top:15px;transform:translateY(-50%);width:0;height:0;border-style:solid;border-width:6px 6px 0 6px;border-color:#404040 transparent transparent;pointer-events:none}.selectionMenu[_ngcontent-%COMP%]:focus{border-color:#404040}.popup[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#404040;font-size:1.1rem;font-weight:700;display:block;cursor:text;margin-bottom:4px}.popup[_ngcontent-%COMP%] [_ngcontent-%COMP%]::placeholder{color:#d3d3d3}.popup[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:1.5px solid #8b8b8b;border-radius:7px;caret-color:#8b8b8b;color:#404040;height:2rem;width:23rem;font-size:.8rem;padding-left:10px;position:relative}.popup[_ngcontent-%COMP%] input[name=priceRange][_ngcontent-%COMP%]{height:1.2rem;width:1.2rem}.popup[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none;border:1.5px solid #404040}.align-radio[_ngcontent-%COMP%]{position:relative;right:1.1rem}}@media only screen and (max-width: 509px){.registerButton[_ngcontent-%COMP%]{width:10rem;right:22px}.cancelButton[_ngcontent-%COMP%]{width:10rem;left:22px}}']})}return n})(),w3e=(()=>{class n{constructor(t,r){this.firebase=t,this.cdr=r,this.v1D={display:"none"},this.v2D={display:"none"},this.v3D={display:"none"},this.v4D={display:"none"},this.isFirstTime=!1}ngOnInit(){var t=this;return(0,ee.A)(function*(){yield t.newUser(),t.cdr.detectChanges()})()}newUser(){var t=this;return(0,ee.A)(function*(){const r=yield t.firebase.firstTime();console.log(r),!0===r?(t.isFirstTime=!0,t.register.show(),console.log(t.isFirstTime),t.v1D={display:"block"}):t.v1D={display:"none"},t.cdr.detectChanges()})()}v1(){this.v1D={display:"none"},this.v2D={display:"block"},this.cdr.detectChanges()}v2(){this.v2D={display:"none"},this.v3D={display:"block"},this.cdr.detectChanges()}v3(){this.v3D={display:"none"},this.v4D={display:"block"},this.cdr.detectChanges()}v4(){this.v4D={display:"none"},this.firebase.revokefirstTime(),this.cdr.detectChanges()}static#e=this.\u0275fac=function(r){return new(r||n)(_e(b3),_e(Ou))};static#t=this.\u0275cmp=xt({type:n,selectors:[["app-onboarding"]],viewQuery:function(r,i){if(1&r&&Ps(wce,5),2&r){let s;ss(s=os())&&(i.register=s.first)}},decls:33,vars:4,consts:[[1,"onboarding","v1",3,"ngStyle"],[3,"click"],[1,"content"],[2,"font-size","1.1rem","margin-bottom","0rem"],[2,"font-size",".9rem"],[1,"onboarding","v2",2,"top","8rem",3,"ngStyle"],[1,"onboarding","v3",2,"top","13rem",3,"ngStyle"],[1,"onboarding","v4",3,"ngStyle"],[2,"width","5rem",3,"click"]],template:function(r,i){1&r&&(ze(0,"app-first-time-registration"),Y(1,"div",0)(2,"button",1),Qe("click",function(){return i.v1()}),re(3,"Next"),H(),Y(4,"div",2)(5,"h3",3),re(6,"Home"),H(),Y(7,"p",4),re(8,"This is where you get to create, view, and edit your amazing coupons. Please make the most use out of this tab!"),H()()(),Y(9,"div",5)(10,"button",1),Qe("click",function(){return i.v2()}
1),re(11,"Next"),H(),Y(12,"div",2)(13,"h3",3),re(14,"Analytics"),H(),Y(15,"p",4),re(16,"Want more guidance on managing and viewing coupon profits? Don't worry, We got you \u{1f642}. Check out this tab!"),H()()(),Y(17,"div",6)(18,"button",1),Qe("click",function(){return i.v3()}),re(19,"Next"),H(),Y(20,"div",2)(21,"h3",3),re(22,"Account Settings"),H(),Y(23,"p",4),re(24,"If you'd ever like to change any of your passwords, PINs, or restaurant details, click me\u{1f60f}"),H()()(),Y(25,"div",7)(26,"button",8),Qe("click",function(){return i.v4()}),re(27,"Awesome!"),H(),Y(28,"div",2)(29,"h3",3),re(30,"Create a Coupon"),H(),Y(31,"p",4),re(32,"By far the coolest and most important button, you know what I do\u{1f60e}"),H()()()),2&r&&(Ve(),ht("ngStyle",i.v1D),Ve(8),ht("ngStyle",i.v2D),Ve(8),ht("ngStyle",i.v3D),Ve(8),ht("ngStyle",i.v4D))},dependencies:[og,wce],styles:['*[_ngcontent-%COMP%]{font-family:Verdana,sans-serif}.onboarding[_ngcontent-%COMP%]{display:none;position:absolute;left:4rem;top:3rem;width:18rem;height:8rem;padding:1rem;background-color:#404040;color:#fff;border-radius:5px;z-index:5}.onboarding[_ngcontent-%COMP%]:before{content:"";position:absolute;bottom:4.1rem;right:19rem;transform:translate(-50%);border-width:15px;border-style:solid;border-color:transparent #404040 transparent transparent}.v4[_ngcontent-%COMP%]{top:4rem;left:57rem}.v4[_ngcontent-%COMP%]:before{content:"";position:absolute;bottom:4.1rem;left:20.8rem;transform:translate(-50%);border-width:15px;border-style:solid;border-color:transparent transparent transparent #404040}.onboarding[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:relative;top:4.9rem;left:6.5rem;height:1.5rem;width:4rem;line-height:1.8em;background-color:#f01363;text-align:center;display:flex;justify-content:center;align-items:center;border-radius:4px;border-color:transparent;margin:1.5em auto auto;color:#fff;cursor:pointer;z-index:2;font-size:.8rem}.onboarding[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{position:relative;bottom:4rem;width:15rem}.v1[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:before{content:"1/4";position:absolute;right:4.5rem}.v2[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:before{content:"2/4";position:absolute;right:4.5rem}.v3[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:before{content:"3/4";position:absolute;right:4.5rem}.v4[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:before{content:"4/4";position:absolute;right:5.5rem}']})}return n})();const bce='*[_ngcontent-%COMP%]{font-family:Verdana,sans-serif}a[_ngcontent-%COMP%]{text-decoration:none}.Main[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.Coupon-Display[_ngcontent-%COMP%]:before{content:"Active Coupons";position:absolute;top:6.5em;left:200px;font-size:1.2em;font-weight:700;color:#404040;cursor:text}.Coupon-Add-Button[_ngcontent-%COMP%]{position:absolute;top:6.9rem;right:8em;height:2.5em;width:5rem;line-height:1.8em;background-color:#f01363;text-align:center;display:flex;justify-content:center;align-items:center;border-radius:.5em;border-color:transparent;margin:1.5em auto auto;color:#fff;cursor:pointer;z-index:2;font-size:.8rem;box-shadow:0 4px 8px #0003}.Coupon-Add-Button[_ngcontent-%COMP%]:hover{box-shadow:0 0 2px #cf1d64}.Coupon-Display[_ngcontent-%COMP%]{z-index:1;display:flex;flex-direction:column;align-items:flex-start;width:65rem;height:0rem;background:#fafafa;padding-top:4rem;margin-top:8%;left:8.4rem}.Coupon-Display-Top[_ngcontent-%COMP%]{position:relative;height:1em;width:62rem;border:none;display:flex;flex-direction:row;justify-content:center;align-items:center;font-size:.91rem}.Coupon-Display-Top[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin-right:10px}.Coupons-List[_ngcontent-%COMP%]{height:100em;width:30em;position:relative;border:black;border-width:thin;-ms-overflow-style:none;scrollbar-width:none;font-size:.93rem}.Coupons-List[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.Coupon-Display-Top[_ngcontent-%COMP%] .One[_ngcontent-%COMP%], .Coupon-Display-Top[_ngcontent-%COMP%] .Two[_ngcontent-%COMP%], .Coupon-Display-Top[_ngcontent-%COMP%] .Three[_ngcontent-%COMP%], .Coupon-Display-Top[_ngcontent-%COMP%] .Four[_ngcontent-%COMP%], .Coupon-Display-Top[_ngcontent-%COMP%] .Five[_ngcontent-%COMP%], .Coupon-Display-Top[_ngcontent-%COMP%] .Six[_ngcontent-%COMP%]{color:#404040}.One[_ngcontent-%COMP%], .Two[_ngcontent-%COMP%], .Three[_ngcontent-%COMP%], .Four[_ngcontent-%COMP%], .Five[_ngcontent-%COMP%], .Six[_ngcontent-%COMP%]{width:17em;height:2em;text-align:center;padding-top:1.5em;color:#404040}.Remove[_ngcontent-%COMP%]{margin-top:2em;margin-left:1em;height:30px;width:90px;line-height:1.8em;text-align:center}.Other[_ngcontent-%COMP%]{margin-top:1.5em;margin-left:1em;margin-right:2em}.Coupon[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:61.8rem}ul[_ngcontent-%COMP%]{list-style:none;position:relative;right:2em}@keyframes _ngcontent-%COMP%_fadeInAnimation{0%{opacity:.5}to{opacity:1}}@media only screen and (max-width: 1155px){.Main[_ngcontent-%COMP%]{transform:scale(.8)}}@media only screen and (max-width: 900px){.Main[_ngcontent-%COMP%]{transform:scale(.7)}}@media only screen and (max-width: 730px){.Main[_ngcontent-%COMP%]{transform:scale(.6)}}';let b3e=(()=>{class n{constructor(t,r,i,s,o){this.elRef=t,this.renderer=r,this.router=i,this.presenter=s,this.cdr=o,this.isCouponRegisterVisible=!1,this.overlayStyle={display:"none"}}ngOnInit(){return(0,ee.A)(function*(){})()}ngAfterViewInit(){}onCreate(){this.presenter.getRestaurantData(localStorage.getItem("userID")).then(t=>{0!=t&&(t.registered||this.router.navigateByUrl("account"))}),this.couponRegisterComponent.show(),this.isCouponRegisterVisible=!0}onEdit(t){this.couponForEdit=t,this.onCreate()}hideCouponRegister(){}generateUniqueId(){return"unique-id-"+Math.random().toString(36).substring(7)}static#e=this.\u0275fac=function(r){return new(r||n)(_e(Qn),_e(xu),_e(bs),_e(UD),_e(Ou))};static#t=this.\u0275cmp=xt({type:n,selectors:[["app-main"]],viewQuery:function(r,i){if(1&r&&(Ps(gce,5),Ps(yce,5),Ps(nb,5)),2&r){let s;ss(s=os())&&(i.couponRegisterComponent=s.first),ss(s=os())&&(i.couponListComponent=s.first),ss(s=os())&&(i.register=s.first)}},decls:27,vars:0,consts:[[1,"Coupon-Entry",2,"z-index","999"],[1,"Main"],[1,"Coupon-Add-Button",3,"click"],[1,"Coupon-Display"],[1,"Coupon-Display-Top"],[1,"One"],[1,"Two"],[1,"Three"],[1,"Four"],[1,"Five"],[1,"Six"],[1,"Remove"],[1,"Other"],[1,"Coupons-List"]],template:function(r,i){1&r&&(ze(0,"app-header"),Y(1,"div",0)(2,"div",1)(3,"div")(4,"button",2),Qe("click",function(){return i.onCreate()}),re(5,"Create \uff0b"),H()(),Y(6,"div",3)(7,"div",4)(8,"div",5),re(9,"Coupon #"),H(),Y(10,"div",6),re(11,"Coupons Available"),H(),Y(12,"div",7),re(13,"Coupon Type"),H(),Y(14,"div",8),re(15,"Available For"),H(),Y(16,"div",9),re(17,"Coupon Start Date"),H(),Y(18,"div",10),re(19,"Coupon End Date"),H(),ze(20,"div",11)(21,"div",12),H(),Y(22,"div",13),ze(23,"app-coupon-list",13),H()()()(),ze(24,"app-coupon-register")(25,"app-onboarding")(26,"app-registeration-popup"))},dependencies:[yce,nb,ib,gce,w3e],styles:[bce,bce],changeDetection:0})}return n})(),ER=(()=>{class n{constructor(t,r,i,s,o){this.http=t,this.firebaseAuth=r,this.firestore=i,this.restaurantRepo=s,this.accountRepo=o}getRestaurantData(t){var r=this;return(0,ee.A)(function*(){return r.restaurantRepo.getRestaurant(t)})()}changePassword(t,r){var i=this;return(0,ee.A)(function*(){i.accountRepo.changePassword(t)})()}savePIN(t,r,i,s){var o=this;return(0,ee.A)(function*(){t===r?yield o.firestore.collection("restaurants").doc(s).update({pin:t}).then(l=>{console.log(`PIN Updated Successfully to ${t}`),setTimeout(()=>i(),2700)}).catch(l=>"PIN Update Failed"):console.log("Pins don't match")})()}verifyPIN(t,r){return new Promise(i=>{this.firestore.collection("restaurants").doc(r).get().subscribe(o=>{o.data().pin===t?i(!0):i(!1)})})}static#e=this.\u0275fac=function(r){return new(r||n)(ve(Bc),ve(mg),ve(Jf),ve(v3),ve(h4))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Tce=(()=>{class n extends ip{constructor(t,r){super(r),this.dataAccess=t,this.elementRef=r}ngOnInit(){this.elementRef.nativeElement.querySelector(".overlay-blurred").style.display="none",this.email=localStorage.getItem("userID")}changePassword(){var t=this;return(0,ee.A)(function*(){t.dataAccess.changePassword(t.email,t.cancel)})()}static#e=this.\u0275fac=function(r){return new(r||n)(_e(ER),_e(Qn))};static#t=this.\u0275cmp=xt({type:n,selectors:[["app-change-password"]],inputs:{email:"email"},features:[Mn],decls:16,vars:1,consts:[[1,"overlay-blurred",3,"click"],[1,"registerDiv"],[1,"registerButton",3,"click"],[1,"popup","password"],[1,"buttons"],[1,"cancel",3,"click"],[1,"save",2,"background-color","#F01363",3,"click"]],template:function(r,i){1&r&&(Y(0,"div",0),Qe("click",function(){return i.cancel()}),H(),Y(1,"div",1)(2,"button",2),Qe("click",function(){return i.show()}),re(3,"Change password"),H()(),Y(4,"div",3)(5,"h2"),re(6,"Change Password"),H(),Y(7,"p"),re(8,"An email will be sent to the following email address"),H(),Y(9,"p"),re(10),H(),Y(11,"div",4)(12,"button",5),Qe("click",function(){return i.cancel()}),re(13,"Cancel"),H(),Y(14,"button",6),Qe("click",function(){return i.changePassword()}),re(15,"Send"),H()()()),2&r&&(Ve(10),Mi(i.email))},styles:[".registerDiv[_ngcontent-%COMP%]{display:flex;bottom:0;text-align:center;margin:20px}.registerDiv[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:6 rem;width:14 rem;background-color:#f01363;text-align:center;justify-content:center;align-items:center;border-radius:6px;border-color:transparent;color:#fff;cursor:pointer;font-size:.8rem;margin:5 px;box-shadow:0 4px 8px #0003}.registerDiv[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{box-shadow:0 0 2px #cf1d64}input[_ngcontent-%COMP%]{border:1.5px solid #8b8b8b;border-radius:5px;caret-color:#8b8b8b;color:#404040;height:1.4rem;width:16rem;font-size:.8rem;padding-left:10px}.popup[_ngcontent-%COMP%]{display:none;position:absolute;
1left:50%;top:50%;transform:translate(-50%,-50%);border:1.5px solid transparent;border-radius:10px;background-color:#fff;height:16rem;width:34rem;z-index:101;padding:30px 26px 43px;animation:_ngcontent-%COMP%_fadeInAnimation ease 1.5s;animation-iteration-count:1;animation-fill-mode:forwards}@keyframes _ngcontent-%COMP%_fadeInAnimation{0%{opacity:.5}to{opacity:1}}.popup[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.2rem}.popup[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.9rem}.popup[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;margin-bottom:4px}.popup[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;gap:20px;margin-top:10px}.popup[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:2rem;width:8rem;background-color:#404040;text-align:center;justify-content:center;align-items:center;border-radius:6px;border-color:transparent;color:#fff;cursor:pointer;font-size:.9rem}.popup[_ngcontent-%COMP%] .save[_ngcontent-%COMP%]:hover{box-shadow:0 0 2px #cf1d64}.popup[_ngcontent-%COMP%] .cancel[_ngcontent-%COMP%]:hover{box-shadow:0 0 2px #191818}.overlay-blurred[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#a4a4a4c4;z-index:3;opacity:.9}"]})}return n})(),T3e=(()=>{class n extends ip{constructor(t,r){super(r),this.dataAccess=t,this.elementRef=r}ngOnInit(){this.elementRef.nativeElement.querySelector(".overlay-blurred").style.display="none",this.email=localStorage.getItem("userID")}savePIN(t,r,i){var s=this;return(0,ee.A)(function*(){s.dataAccess.verifyPIN(t,s.email).then(o=>{o?s.dataAccess.savePIN(r,i,s.cancel,s.email).then(a=>{s.cancel()}):alert("The PIN you entered is incorrect.")})})()}static#e=this.\u0275fac=function(r){return new(r||n)(_e(ER),_e(Qn))};static#t=this.\u0275cmp=xt({type:n,selectors:[["app-change-pin"]],inputs:{pin:"pin",email:"email"},features:[Mn],decls:29,vars:0,consts:[["oldpinInput",""],["pinInput1",""],["pinInput2",""],[1,"overlay-blurred",3,"click"],[1,"changeButton"],[1,"registerButton",3,"click"],[1,"popup","pin"],[1,"form2"],["type","password","placeholder","Enter Old PIN","maxlength","6"],[1,"form3"],["type","password","placeholder","Enter New PIN","maxlength","6"],[1,"form4"],["type","password","placeholder","Re-enter PIN","maxlength","6"],[1,"buttons"],[1,"cancel",3,"click"],[1,"save",2,"background-color","#F01363",3,"click"]],template:function(r,i){if(1&r){const s=Ei();Y(0,"div",3),Qe("click",function(){return bt(s),vt(i.cancel())}),H(),Y(1,"div",4)(2,"button",5),Qe("click",function(){return bt(s),vt(i.show())}),re(3,"Change PIN"),H()(),Y(4,"div",6)(5,"h2"),re(6,"Update Coupon PIN"),H(),Y(7,"p"),re(8,"Set a new PIN here"),H(),Y(9,"div",7)(10,"label"),re(11,"Current PIN"),H(),ze(12,"input",8,0),H(),Y(14,"div",9)(15,"label"),re(16,"New PIN"),H(),ze(17,"input",10,1),H(),Y(19,"div",11)(20,"label"),re(21,"Re-enter PIN"),H(),ze(22,"input",12,2),H(),Y(24,"div",13)(25,"button",14),Qe("click",function(){return bt(s),vt(i.cancel())}),re(26,"Cancel"),H(),Y(27,"button",15),Qe("click",function(){bt(s);const a=wn(13),l=wn(18),c=wn(23);return vt(i.savePIN(a.value,l.value,c.value))}),re(28,"Save Changes"),H()()()}},styles:[".changeButton[_ngcontent-%COMP%]{display:flex;bottom:0;text-align:center;margin:20px}.changeButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:10 rem;width:14 rem;background-color:#f01363;text-align:center;justify-content:center;align-items:center;border-radius:6px;border-color:transparent;color:#fff;cursor:pointer;font-size:.8rem;margin:5 px;box-shadow:0 4px 8px #0003}.changeButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{box-shadow:0 0 2px #cf1d64}input[_ngcontent-%COMP%]{border:1.5px solid #8b8b8b;border-radius:5px;caret-color:#8b8b8b;color:#404040;height:1.4rem;width:16rem;font-size:.8rem;padding-left:10px}.popup[_ngcontent-%COMP%]{display:none;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:1.5px solid transparent;border-radius:10px;background-color:#fff;height:16rem;width:34rem;z-index:101;padding:30px 26px 43px;animation:_ngcontent-%COMP%_fadeInAnimation ease 1.5s;animation-iteration-count:1;animation-fill-mode:forwards}@keyframes _ngcontent-%COMP%_fadeInAnimation{0%{opacity:.5}to{opacity:1}}.popup[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.2rem}.popup[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.9rem}.popup[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;margin-bottom:4px}.popup[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:1.5px solid #8b8b8b;border-radius:5px;caret-color:#8b8b8b;color:#404040;height:1.5rem;width:16rem;font-size:.8rem;padding-left:10px;margin-bottom:19px}.popup[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;gap:20px;margin-top:10px}.popup[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:2rem;width:8rem;background-color:#404040;text-align:center;justify-content:center;align-items:center;border-radius:6px;border-color:transparent;color:#fff;cursor:pointer;font-size:.9rem}
1.popup[_ngcontent-%COMP%] .save[_ngcontent-%COMP%]:hover{box-shadow:0 0 2px #cf1d64}.popup[_ngcontent-%COMP%] .cancel[_ngcontent-%COMP%]:hover{box-shadow:0 0 2px #191818}.overlay-blurred[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#a4a4a4c4;z-index:3;opacity:.9}"]})}return n})(),E3e=(()=>{class n{constructor(t,r){this.dataAccess=t,this.elementRef=r}ngOnInit(){this.email=localStorage.getItem("userID"),this.dataAccess.getRestaurantData(this.email).then(t=>{"boolean"!=typeof t&&(this.name=t.name,this.imageURL=t.imageUrl,this.cuisine=t.cuisineType,this.address=t.address,this.pin=t.pin)}),setTimeout(()=>{this.elementRef.nativeElement.querySelector(".lds-ring").style.display="none",this.elementRef.nativeElement.querySelector(".overlay-blurred2").style.display="none"},1e3)}helpShow(){this.register.show()}cancel(){this.elementRef.nativeElement.querySelector(".overlay-blurred").style.display="none",this.elementRef.nativeElement.querySelector(".changeDiv.password").style.display="none",this.elementRef.nativeElement.querySelector(".changeDiv.pin").style.display="none"}static#e=this.\u0275fac=function(r){return new(r||n)(_e(ER),_e(Qn))};static#t=this.\u0275cmp=xt({type:n,selectors:[["app-account"]],viewQuery:function(r,i){if(1&r&&(Ps(nb,5),Ps(Tce,5),Ps(T3e,5)),2&r){let s;ss(s=os())&&(i.register=s.first),ss(s=os())&&(i.changePassword=s.first),ss(s=os())&&(i.changePin=s.first)}},decls:40,vars:6,consts:[[1,"lds-ring"],[1,"overlay-blurred2"],[1,"overlay-blurred",3,"click"],[1,"content"],[1,"container"],[1,"imageContainer"],[1,"restaurantImage",3,"src"],[1,"welcomeContainer"],["fill","#F01363","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 300 300","stroke","#F01363",1,"addressPin"],["id","SVGRepo_bgCarrier","stroke-width","0"],["id","SVGRepo_tracerCarrier","stroke-linecap","round","stroke-linejoin","round"],["id","SVGRepo_iconCarrier"],["d","M148.5,0C87.43,0,37.747,49.703,37.747,110.797c0,91.026,99.729,179.905,103.976,183.645 c1.936,1.705,4.356,2.559,6.777,2.559c2.421,0,4.841-0.853,6.778-2.559c4.245-3.739,103.975-92.618,103.975-183.645 C259.253,49.703,209.57,0,148.5,0z M148.5,272.689c-22.049-21.366-90.243-93.029-90.243-161.892 c0-49.784,40.483-90.287,90.243-90.287s90.243,40.503,90.243,90.287C238.743,179.659,170.549,251.322,148.5,272.689z"],["d","M148.5,59.183c-28.273,0-51.274,23.154-51.274,51.614c0,28.461,23.001,51.614,51.274,51.614 c28.273,0,51.274-23.153,51.274-51.614C199.774,82.337,176.773,59.183,148.5,59.183z M148.5,141.901 c-16.964,0-30.765-13.953-30.765-31.104c0-17.15,13.801-31.104,30.765-31.104c16.964,0,30.765,13.953,30.765,31.104 C179.265,127.948,165.464,141.901,148.5,141.901z"],[1,"address",2,"display","inline-block"],[1,"info"],[1,"infoRestaurant"],[1,"infoCuisine"],[3,"email"],[1,"registerDiv"],[1,"registerButton",3,"click"]],template:function(r,i){1&r&&(ze(0,"app-header"),Y(1,"div",0),ze(2,"div")(3,"div")(4,"div")(5,"div"),H(),ze(6,"div",1),Y(7,"div",2),Qe("click",function(){return i.cancel()}),H(),Y(8,"div",3)(9,"div",4)(10,"div",5),ze(11,"img",6),H(),Y(12,"div",7)(13,"h2"),re(14),H(),Pa(),Y(15,"svg",8),ze(16,"g",9)(17,"g",10),Y(18,"g",11)(19,"g"),ze(20,"path",12)(21,"path",13),H()()(),Pc(),Y(22,"p",14),re(23),H()(),Y(24,"div",15)(25,"div",16)(26,"h3"),re(27,"Restaurant Name"),H(),Y(28,"p"),re(29),H()(),Y(30,"div",17)(31,"h3"),re(32,"Cuisine Type"),H(),Y(33,"p"),re(34),H()()(),ze(35,"app-ch
1ange-password",18),Y(36,"div",19)(37,"button",20),Qe("click",function(){return i.helpShow()}),re(38,"Update Restaurant Data"),H()()()(),ze(39,"app-registeration-popup")),2&r&&(Ve(11),jE("src",i.imageURL,hA),Ve(3),Lu("Welcome Back ",i.name,"!"),Ve(9),Mi(i.address),Ve(6),Mi(i.name),Ve(5),Mi(i.cuisine),Ve(),ht("email",i.email))},dependencies:[nb,ib,Tce],styles:["*[_ngcontent-%COMP%]{font-family:Verdana,sans-serif;color:#404040}.content[_ngcontent-%COMP%]{width:100%;height:100%;background-color:#fafafa;position:absolute;overflow:hidden;left:200px}.container[_ngcontent-%COMP%]{position:relative;width:91%;height:32rem;top:6rem;border-radius:.5rem;background-color:#fff;padding-left:10px}.address[_ngcontent-%COMP%]{display:inline-block;position:relative;bottom:.3rem;margin-left:3px}.imageContainer[_ngcontent-%COMP%]{display:inline-block;position:relative;top:1rem}.welcomeContainer[_ngcontent-%COMP%]{display:inline-block;position:relative;top:-6rem;left:1rem}.welcomeContainer[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:0}.restaurantImage[_ngcontent-%COMP%]{height:12rem;border-radius:2%}#registerButton[_ngcontent-%COMP%]{display:none}.info[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-bottom:4px}.infoRestaurant[_ngcontent-%COMP%]{margin-right:35px}.infoRestaurant[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .infoCuisine[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:0}.infoRestaurant[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .infoCuisine[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-top:7px;font-size:.9rem}.registerDiv[_ngcontent-%COMP%]{display:flex;justify-content:center;position:relative;bottom:0;text-align:center;margin:20px}.registerDiv[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:3 rem;width:10 rem;background-color:#f01363;text-align:center;justify-content:center;align-items:center;border-radius:6px;border-color:transparent;color:#fff;cursor:pointer;font-size:.8rem;margin:5 px;box-shadow:0 4px 8px #0003}.registerDiv[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{box-shadow:0 0 2px #cf1d64}.registerButton[_ngcontent-%COMP%] + .registerButton[_ngcontent-%COMP%]{margin-left:10px}.form1[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .form2[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;margin-bottom:4px;font-size:.8rem}.form1[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .form2[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.7rem;margin-top:2px;position:relative;left:10.6rem;color:#f01363;cursor:pointer;z-index:1}.form1[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:hover, .form2[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:hover{color:#ff0035}input[_ngcontent-%COMP%]{border:1.5px solid #8b8b8b;border-radius:5px;caret-color:#8b8b8b;color:#404040;height:1.4rem;width:16rem;font-size:.8rem;padding-left:10px}.addressPin[_ngcontent-%COMP%]{height:20px}.overlay-blurred[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#070707c4;z-index:100;display:none}.overlay-blurred2[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#a4a4a4c4;z-index:3;opacity:.9}.changeDiv[_ngcontent-%COMP%]{display:none;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:1.5px solid transparent;border-radius:10px;background-color:#fff;height:16rem;width:34rem;z-index:101;padding:30px 26px 43px;animation:_ngcontent-%COMP%_fadeInAnimation ease 1.5s;animation-iteration-count:1;animation-fill-mode:forwards}@keyframes _ngcontent-%COMP%_fadeInAnimation{0%{opacity:.5}to{opacity:1}}.changeDiv[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.2rem}.changeDiv[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.9rem}.changeDiv[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;margin-bottom:4px}.changeDiv[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:1.5px solid #8b8b8b;border-radius:5px;caret-color:#8b8b8b;color:#404040;height:1.5rem;width:16rem;font-size:.8rem;padding-left:10px;margin-bottom:19px}.changeDiv[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;gap:20px;margin-top:10px}.changeDiv[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:2rem;width:8rem;background-color:#404040;text-align:center;justify-content:center;align-items:center;border-radius:6px;border-color:transparent;color:#fff;cursor:pointer;font-size:.9rem}
1.changeDiv[_ngcontent-%COMP%] .save[_ngcontent-%COMP%]:hover{box-shadow:0 0 2px #cf1d64}.changeDiv[_ngcontent-%COMP%] .cancel[_ngcontent-%COMP%]:hover{box-shadow:0 0 2px #191818}@media only screen and (max-width: 846px){.welcomeContainer[_ngcontent-%COMP%]{position:static}.container[_ngcontent-%COMP%]{position:relative;width:94%;height:45rem;top:6rem;left:3%;border-radius:.5rem;background-color:#fff;padding-left:10px}.changeDiv[_ngcontent-%COMP%]{transform:translate(-50%,-50%) scale(.6)}}.lds-ring[_ngcontent-%COMP%]{display:inline-block;position:absolute;left:50%;top:50%;width:80px;height:80px;z-index:4}.lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{box-sizing:border-box;display:block;position:absolute;width:64px;height:64px;margin:8px;border:8px solid #fff;border-radius:50%;animation:_ngcontent-%COMP%_lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#fff transparent transparent transparent}.lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){animation-delay:-.45s}.lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){animation-delay:-.3s}.lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){animation-delay:-.15s}@keyframes _ngcontent-%COMP%_lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]})}return n})(),T3=(()=>{class n{constructor(t,r){this.document=t,this.platformId=r,this.documentIsAccessible=vK(this.platformId)}static getCookieRegExp(t){const r=t.replace(/([\[\]{}()|=;+?,.*^$])/gi,"\\$1");return new RegExp("(?:^"+r+"|;\\s*"+r+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(t){try{return decodeURIComponent(t)}catch{return t}}check(t){return!!this.documentIsAccessible&&(t=encodeURIComponent(t),n.getCookieRegExp(t).test(this.document.cookie))}get(t){if(this.documentIsAccessible&&this.check(t)){t=encodeURIComponent(t);const i=n.getCookieRegExp(t).exec(this.document.cookie);return i[1]?n.safeDecodeURIComponent(i[1]):""}return""}getAll(){if(!this.documentIsAccessible)return{};const t={},r=this.document;return r.cookie&&""!==r.cookie&&r.cookie.split(";").forEach(i=>{const[s,o]=i.split("=");t[n.safeDecodeURIComponent(s.replace(/^ /,""))]=n.safeDecodeURIComponent(o)}),t}set(t,r,i,s,o,a,l,c){if(!this.documentIsAccessible)return;if("number"==typeof i||i instanceof Date||s||o||a||l)return void this.set(t,r,{expires:i,path:s,domain:o,secure:a,sameSite:l||"Lax",partitioned:c});let u=encodeURIComponent(t)+"="+encodeURIComponent(r)+";";const d=i||{};d.expires&&(u+="number"==typeof d.expires?"expires="+new Date((new Date).getTime()+1e3*d.expires*60*60*24).toUTCString()+";":"expires="+d.expires.toUTCString()+";"),d.path&&(u+="path="+d.path+";"),d.domain&&(u+="domain="+d.domain+";"),!1===d.secure&&"None"===d.sameSite&&(d.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${t} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),d.secure&&(u+="secure;"),d.sameSite||(d.sameSite="Lax"),u+="sameSite="+d.sameSite+";",d.partitioned&&(u+="Partitioned;"),this.document.cookie=u}delete(t,r,i,s,o="Lax"){this.documentIsAccessible&&this.set(t,"",{expires:new Date("Thu, 01 Jan 1970 00:00:01 GMT"),path:r,domain:i,secure:s,sameSite:o})}deleteAll(t,r,i,s="Lax"){if(!this.documentIsAccessible)return;const o=this.getAll();for(const a in o)o.hasOwnProperty(a)&&this.delete(a,t,r,i,s)}static#e=this.\u0275fac=function(r){return new(r||n)(ve(aa),ve(La))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Ece=(()=>{class n{constructor(t,r,i){this.elementRef=t,this.route=r,this.cookieService=i,this.accessToken="access",this.isAlertOpen=!1}ngOnInit(){this.route.queryParams.subscribe(t=>{this.code=t.code,console.log("Code:",this.code)}),this.accessToken=localStorage.getItem("stripeAccountId")}redirectToStripe(){const t=Ge.stripeOAuth;this.cookieService.set("analyticsPlatform","Stripe"),window.location.href=t}redirectToSquare(){this.isAlertOpen=!0;const t=Ge.squareOAuth;this.cookieService.set("analyticsPlatform","Square"),window.location.href=t}redirectToClover(){this.isAlertOpen=!0;const t=Ge.cloverOAuth;this.cookieService.set("analyticsPlatform","Clover"),window.location.href=t}
1redirectToShopify(){this.isAlertOpen=!0;const t=Ge.shopifyOAuth;this.cookieService.set("analyticsPlatform","Shopify"),window.location.href=t}redirectToLightSpeed(){let t=(Math.random()+1).toString(36).substring(7);const r=Ge.lightSpeedOAuth+`&state=${t}`;this.cookieService.set("analyticsPlatform","LightSpeed"),window.location.href=r}static#e=this.\u0275fac=function(r){return new(r||n)(_e(Qn),_e(Af),_e(T3))};static#t=this.\u0275cmp=xt({type:n,selectors:[["app-pos-connect"]],decls:36,vars:0,consts:[["id","posModal","tabindex","-1","role","dialog",1,"popup"],[1,"row"],[1,"col-md-6"],[1,"pos-button","stripe",3,"click"],["src","../../../../assets/StripeLogo.png","alt","Stripe Logo","width","30","height","30"],[1,"button-text"],[1,"row","mt-2"],[1,"pos-button","square",3,"click"],["src","../../../../assets/SquareLogo.jpeg","alt","Square Logo","width","30","height","30"],[1,"pos-button","clover",3,"click"],["src","../../../../assets/CloverLogo.jpeg","alt","Clover Logo",1,"icon"],[1,"pos-button","shopify",3,"click"],["src","../../../../assets/ShopifyLogo.png","alt","Shopify Logo",1,"icon"],["src","../../../../assets/LightSpeed.png","alt","Shopify Logo",1,"icon"],[1,"pos-button","shopify"],["src","../../../../assets/toast.png","alt","Shopify Logo",1,"icon"]],template:function(r,i){1&r&&(Y(0,"div",0)(1,"p"),re(2,"Connect to your preferred POS system:"),H(),Y(3,"div",1)(4,"div",2)(5,"button",3),Qe("click",function(){return i.redirectToStripe()}),ze(6,"img",4),Y(7,"span",5),re(8,"Connect to Stripe"),H()()()(),Y(9,"div",6)(10,"div",2)(11,"button",7),Qe("click",function(){return i.redirectToSquare()}),ze(12,"img",8),Y(13,"span",5),re(14,"Connect to Square"),H()()()(),Y(15,"div",6)(16,"div",2)(17,"button",9),Qe("click",function(){return i.redirectToClover()}),ze(18,"img",10),Y(19,"span",5),re(20,"Connect to Clover"),H()()(),Y(21,"div",2)(22,"button",11),Qe("click",function(){return i.redirectToShopify()}),ze(23,"img",12),Y(24,"span",5),re(25,"Connect to Shopify"),H()()(),Y(26,"div",2)(27,"button",11),Qe("click",function(){return i.redirectToLightSpeed()}),ze(28,"img",13),Y(29,"span",5),re(30,"Connect to Lightspeed"),H()()(),Y(31,"div",2)(32,"button",14),ze(33,"img",15),Y(34,"span",5),re(35,"Connect to Toast"),H()()()()())},styles:[".popup[_ngcontent-%COMP%]{display:block;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#fff;padding:20px;border:1px solid #ccc;box-shadow:0 0 10px #0003;border-radius:10px;z-index:101}.popup-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background-color:#f01363;color:#fff;padding:10px;border-radius:5px}.popup-title[_ngcontent-%COMP%]{margin:0}.popup-body[_ngcontent-%COMP%]{padding:20px}.pos-button[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:10px;padding:10px;width:100%;text-align:left;background-color:#fff;border:1px solid #ccc;cursor:pointer;transition:background-color .3s ease}.pos-button[_ngcontent-%COMP%]:hover{background-color:#f0f0f0}.icon[_ngcontent-%COMP%]{margin-right:10px;width:20px;height:20px}.button-text[_ngcontent-%COMP%]{display:inline-block;text-align:right;padding-right:10px;width:100%}.popup-button[_ngcontent-%COMP%]{position:fixed;top:5rem;right:5rem;padding:10px;background-color:#f01363;color:#fff;border:none;border-radius:4px;cursor:pointer}.overlay-blurred[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;z-index:100;background-color:#070707c4;top:0;left:0}"]})}return n})();class Mce{constructor(e){this.elRef=e}drag(){var e=this.elRef.nativeElement.querySelector("#sidebar");e.style.right="0px"===e.style.right?"-300px":"0px";var t=this.elRef.nativeElement.querySelector("#toggle-btn");t.style.right="310px"===t.style.right?"10px":"310px"}cancel(){this.elRef.nativeElement.querySelector("#sidebar").style.right="-300px",this.elRef.nativeElement.querySelector("#toggle-btn").style.right="0px"}}class M3e{constructor(){this.Platform=["Stripe","Square","Clover","Shopify","LightSpeed","Toast"],this.Core=["Balance","BalanceTransaction","Charges","Customers","Events"],this.Transaction=["Payments"],this.Products=["Products","Prices"],this.Categories=["Products","Events","Prices","Balance","BalanceTransaction","Charges","Customers","Payments"],this.ToBeImplemented=["CustomerSession","Dispute","File","Mandate","PaymentIntent","SetupAttempt","Payout","Refund","Coupon","Discount","PromotionCode","Session"]}}let E3=(()=>{class n{constructor(){this.parentAttributeSource=new je([]),this.parentAttributes=this.parentAttributeSource.asObservable()}updateParentAttribute(t){this.parentAttributeSource.next(t)}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const{Axios:I3e}=lce;let D3e=(()=>{class n{constructor(){this.stripeBalanceTransaction="https://api.stripe.com/v1/balance_transactions"}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();class YD{constructor(){}getAccessToken(e){return new Promise((t,r)=>{t("Platform not specified")})}getData(e,t){return new Promise((r,i)=>{r("Platform not specified")})}getAllData(){return new Promise((e,t)=>
1{e("Platform not specified")})}}class Ice extends YD{constructor(e,t){super(),this.http=e,this.accountId=t}getAccessToken(e){return Ke(this.http.get(`${Ge.endpoint}/pos/access_token/code/${e.code}?platform=Stripe`)).then(t=>(console.log(t.stripe_user_id),t.stripe_user_id))}getData(e,t){(new Headers).append("Content-Type","application/json");const i=(new et).set("accountId",this.accountId);switch(e){case"Products":case"Events":case"Payments":case"Customers":case"Balance":case"BalanceTransaction":case"Charges":case"CustomerSession":return Ke(this.http.get(`${Ge.endpoint}/pos/get_${e}?platform=Stripe`,{params:i})).then(s=>({response:s,dataType:e}));case"Dispute":case"File":case"Mandate":case"PaymentIntent":case"SetupAttempt":case"Payout":case"Refund":case"Coupon":case"Discount":case"PromotionCode":case"Session":return Ke(this.http.get(`${Ge.endpoint}/pos/get_${e}?platform=Stripe`,{params:(new et).set("accountId",this.accountId)})).then(s=>({response:s,dataType:e}));default:return Promise.resolve({})}}}class C3e extends YD{constructor(e,t){super(),this.http=e,this.accountId=t}getAccessToken(e){return Ke(this.http.get(`${Ge.endpoint}/pos/access_token/code/${e.code}?platform=Square&redirect_uri=http://localhost:4200/analytics`,{params:(new et).set("redirect_uri","http://localhost:4200/analytics")})).then(t=>(console.log(t.square_user_id),t.square_user_id))}getData(e,t){switch(e){case"Products":const r=(new et).set("accountId",this.accountId);return console.log("Square API Params:",r.toString()),Ke(this.http.get(`${Ge.endpoint}/pos/get_${e}?platform=Square`,{params:(new et).set("accountId",this.accountId)})).then(i=>({response:i,dataType:e}));case"Events":case"Payments":case"Customers":case"Balance":case"Charges":case"CustomerSession":case"Dispute":case"Refund":case"Coupon":case"Discount":case"PromotionCode":case"Session":return Ke(this.http.get(`${Ge.endpoint}/pos/get_${e}?platform=Square`,{params:(new et).set("accountId",this.accountId)})).then(i=>({response:i,dataType:e}));case"BalanceTransaction":return console.log("Square Balance Transaction"),Ke(this.http.get(`${Ge.endpoint}/pos/get_${e}?platform=Square`,{params:(new et).set("accountId",this.accountId)})).then(i=>({response:i,dataType:e}));default:return new Promise((i,s)=>{i("Data not found")})}}}class S3e extends YD{constructor(e,t){super(),this.http=e,this.accountId=t}getAccessToken(e){return Ke(this.http.get(`${Ge.endpoint}/pos/access_token/code/${e.code}?platform=Shopify&redirect_uri=http://localhost:4200/analytics&shop=${e.shop}`,{params:(new et).set("redirect_uri","http://localhost:4200/analytics")})).then(t=>(console.log(t),t.access_token))}getData(e,t){switch(e){case"Products":case"Events":case"Payments":case"Customers":case"Balance":case"BalanceTransaction":case"Charges":return Ke(this.http.get(`${Ge.endpoint}/pos/get_${e}?platform=Shopify`,{params:(new et).set("accountId",this.accountId)})).then(r=>({response:r,dataType:e}));case"CustomerSession":case"Dispute":case"File":case"Mandate":case"PaymentIntent":case"SetupAttempt":case"Payout":case"Refund":case"Coupon":case"Discount":case"PromotionCode":case"Session":return Ke(this.http.get(`${Ge.endpoint}/pos/get_${e}?platform=Shopify`,{params:(new et).set("accountId",this.accountId)})).then(r=>r);default:return new Promise((r,i)=>{r("Data not found")})}}}class A3e extends YD{constructor(e,t){super(),this.http=e,this.accountId=t}getAccessToken(e){return Ke(this.http.get(`${Ge.endpoint}/pos/access_token/code/${e.code}?platform=Clover&redirect_uri=http://localhost:4200/analytics&merchant_id=${e.merchant_id}`,{params:(new et).set("redirect_uri","http://localhost:4200/analytics")})).then(t=>t.access_token)}getData(e,t){switch(e){case"Products":case"Events":case"Payments":case"Customers":case"Balance":case"BalanceTransaction":case"Charges":case"CustomerSession":case"Dispute":case"File":case"Mandate":case"PaymentIntent":case"SetupAttempt":case"Payout":case"Refund":case"Coupon":case"Discount":case"PromotionCode":case"Session":return Ke(this.http.get(`${Ge.endpoint}/pos/get_${e}?platform=Clover`,{params:(new et).set("accountId",this.accountId)})).then(r=>({response:r,dataType:e}));default:return new Promise((r,i)=>{r("Data not found")})}}}class x3e extends YD{constructor(e,t){super(),this.http=e,this.accountId=t}getAccessToken(e){return Ke(this.http.get(`${Ge.endpoint}/pos/access_token/code/${e.code}?platform=LightSpeed&redirect_uri=http://localhost:4200/analytics&prefix=${e.domain_prefix}`,{params:(new et).set("redirect_uri","http://localhost:4200/analytics")})).then(t=>(console.log(t.keys),t.access_token))}getData(e,t){switch(e){case"Products":case"Events":case"Payments":case"Customers":case"Balance":case"BalanceTransaction":case"Charges":case"CustomerSession":case"Dispute":case"File":case"Mandate":case"PaymentIntent":case"SetupAttempt":case"Payout":case"Refund":case"Coupon":case"Discount":case"PromotionCode":case"Session":return Ke(this.http.get(`${Ge.endpoint}/pos/get_${e}?platform=LightSpeed`,{params:(new et).set("accountId",this.accountId)})).then(r=>r);default:return new Promise((r,i)=>{r("Data not found")})}}}function M3(n,e,t){switch(n){case"Stripe":default:return new Ice(e,t);case"Square":return new C3e(e,t);case"LightSpeed":return new x3e(e,t);case"Shopify":return new S3e(e,t);case"Clover":return new A3e(e,t)}}let Dce=(()=>{class n{constructor(t){this.http=t}handleRequest(t,r,i){return M3(t,this.http,i.accountId).getData(r,i)}getAccessToken(t,r){return M3(t,this.http,r.accountId).getAccessToken(r)}getAllData(t,r){return M3(t,this.http,r.accountId).getAllData()}static#e=this.\u0275fac=function(r){return new(r||n)(ve(Bc))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),k3e=(()=>{class n{constructor(t){this.posDataHandler=t}getAllData(t,r){return this.posDataHandler.getAllData(t,r.accountId)}getSpecificData(t,r,i){return this.posDataHandler.handleRequest(t,r,i)}static#e=this.\u0275fac=function(r){return new(r||n)(ve(Dce))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),I3=(()=>{class n{constructor(t,r,i){this.http=t,this.apiConfig=r,this.posData=i}getData(t,r,i){return new Promise(s=>this.posData.getSpecificData(t,r,i).then(o=>{s(o)}))}
1getTransactionDetails(){var t=this;return(0,ee.A)(function*(){try{const r={method:"get",url:t.apiConfig.stripeBalanceTransaction,headers:{Authorization:Ge.stripeKey,"Stripe-Account":localStorage.getItem("stripeAccountId"),"Content-Type":"application/json"}};(new I3e).request(r).then(i=>(console.log("Stripe API Response:",i),i))}catch(r){console.error("Error making Stripe API request:",r.message)}})()}static#e=this.\u0275fac=function(r){return new(r||n)(ve(Bc),ve(D3e),ve(k3e))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function P3e(n,e){if(1&n){const t=Ei();Y(0,"div")(1,"label")(2,"input",7),fr("ngModelChange",function(i){const s=bt(t).$implicit,o=tn();return yr(o.selectedItems[s],i)||(o.selectedItems[s]=i),vt(i)}),Qe("change",function(){const i=bt(t).$implicit;return vt(tn().onCheckboxChange(i))}),H(),re(3),H()()}if(2&n){const t=e.$implicit,r=tn();Ve(2),hr("ngModel",r.selectedItems[t]),Ve(),Lu(" ",t," ")}}let Cce=(()=>{class n extends Mce{constructor(t,r,i){super(t),this.elementRef=t,this.sharedService=r,this.dataService=i,this.dataEvent=new Tn,this.selectedItems=[],this.dataCategoryItems=(new M3e).Categories,this.dataCategories=["Core","Transaction","Products"]}getCategoryName(t){return t}getCategoryItems(t){return this.dataCategoryItems[t]}updateParent(t){this.sharedService.updateParentAttribute(t)}retrieveSelected(){var t=this;return(0,ee.A)(function*(){const r={};for(const i of t.selectedItems)try{const s=yield t.dataService.getData(t.platform,i,{accountId:t.accessToken});r[i]=s,console.log(r[i])}catch(s){console.error(`Error fetching data for item ${i}:`,s)}t.dataEvent.emit(r)})()}onCheckboxChange(t){if(this.selectedItems.includes(t)){const r=this.selectedItems.indexOf(t);-1!==r&&this.selectedItems.splice(r,1),this.updateParent(this.selectedItems)}else this.selectedItems.push(t),console.log(this.selectedItems),this.updateParent(this.selectedItems)}static#e=this.\u0275fac=function(r){return new(r||n)(_e(Qn),_e(E3),_e(I3))};static#t=this.\u0275cmp=xt({type:n,selectors:[["app-select-bar"]],inputs:{receivedParameter:"receivedParameter",accessToken:"accessToken",platform:"platform"},outputs:{dataEvent:"dataEvent"},features:[Mn],decls:9,vars:1,consts:[["rel","stylesheet","href",fA`https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css`],[1,"container"],["id","sidebar"],[4,"ngFor","ngForOf"],["id","retrieve-selected-btn",3,"click"],["id","toggle-btn",3,"click"],[1,"fas","fa-arrow-right","arrow-icon"],["type","checkbox",3,"ngModelChange","change","ngModel"]],template:function(r,i){1&r&&(Y(0,"body"),ze(1,"link",0),Y(2,"div",1)(3,"div",2),Oi(4,P3e,4,2,"div",3),Y(5,"button",4),Qe("click",function(){return i.retrieveSelected()}),re(6,"Retrieve selected data"),H()(),Y(7,"a",5),Qe("click",function(){return i.drag()}),ze(8,"i",6),H()()()),2&r&&(Ve(4),ht("ngForOf",i.dataCategoryItems))},dependencies:[ig,fk,jg,Hg],styles:['body[_ngcontent-%COMP%]{margin:0;font-family:Arial,sans-serif;background-color:#f4f4f4;overflow:hidden}.container[_ngcontent-%COMP%]{display:flex}#sidebar[_ngcontent-%COMP%]{width:300px;height:100%;background-color:#333;color:#fff;position:fixed;right:-300px;top:0;transition:right .3s ease-in-out;overflow-y:auto;padding:20px;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start}label[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:8px}input[_ngcontent-%COMP%]{margin-right:5px}#toggle-btn[_ngcontent-%COMP%]{position:absolute;right:10px;top:50%;cursor:pointer;z-index:2;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:15px;background-color:#000;color:#fff;font-size:18px;text-decoration:none;transition:background-color .3s ease}.arrow-icon[_ngcontent-%COMP%]{align-self:center}.custom-checkbox[_ngcontent-%COMP%]{appearance:none;-webkit-appearance:none;-moz-appearance:none;width:20px;height:20px;border:2px solid #F01363;border-radius:4px;outline:none;cursor:pointer}.custom-checkbox[_ngcontent-%COMP%]:checked{background-color:#f01363;border-color:#f01363}.custom-checkbox[_ngcontent-%COMP%]:after{content:"";display:block;color:#fff;font-size:14px;text-align:center;line-height:18px}.custom-checkbox[_ngcontent-%COMP%]:checked:after{content:"\\2713"}.custom-radio[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;padding-left:35px;margin-bottom:12px;cursor:pointer;font-size:22px;-webkit-user-select:none;user-select:none}.custom-radio[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer;background-color:#fff}.custom-radio[_ngcontent-%COMP%]:after{background-color:#fff;top:9px;left:9px;width:8px;height:8px;border-radius:50%;background:#000}']})}return n})();class Sce{static formatDate(e){let t=new Date(e);return`${(t.getMonth()+1).toString().padStart(2,"0")}/${t.getDate().toString().padStart(2,"0")} ${t.getHours().toString().padStart(2,"0")}`}}
1function Ace(n,e){let t;var r=e;return function i(s){if("object"==typeof s&&null!==s)for(const o in s)s.hasOwnProperty(o)&&(i(s[o]),console.log(r[o]),console.log(o),Array.isArray(r[o])&&r[o].length>0?(r=r[o][0],console.log("First value:",r)):r=r[o]);else t=s}(n),console.log(r[t]),{key:t,value:r[t]}}class qn{constructor(e,t,r){this.data=e,this.xDataKeys=t,this.yDataKeys=r}}let R3e=(()=>{class n{constructor(){}summarizeStripeData(t){switch(t.dataType){case"Events":return new qn(t,["created","type"],["data"]);case"Products":return new qn(t,["created","name"],["default_price"]);case"Payments":case"BalanceTransaction":case"Charges":return new qn(t,["created"],["amount"]);case"Customers":return new qn(t,["created"],["balance"]);case"Balance":return new qn(t,["pending"],["available"]);case"CustomerSession":return new qn(t,["customer"],["expires_at"]);default:return console.log("No data type found"),new qn(t,[],[])}}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),L3e=(()=>{class n{constructor(){}summarizeSquareData(t){switch(t.dataType){case"Events":return new qn(t,["created_at","type"],[{data:{object:{dispute:{amount_money:"amount"}}}}]);case"Products":return new qn(t,["id",{item_data:"name"}],[{item_data:{variations:{item_variation_data:{price_money:"amount"}}}}]);case"Payments":return new qn(t,["created_at"],[{amount_money:"amount"}]);case"Customers":return new qn(t,["created_at"],["updated_at"]);case"Balance":return new qn(t,["pending"],["available"]);case"BalanceTransaction":return new qn(t,["created_at"],["amount_money"]);case"Charges":return new qn(t,["id"],[{total_money:"amount"}]);default:return console.log("No data type found"),new qn(t,[],[])}}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),O3e=(()=>{class n{constructor(){}summarizeCloverData(t){switch(t.dataType){case"Events":return new qn(t,["timestamp","type"],["amountChange"]);case"Products":return new qn(t,["name"],["price"]);case"Payments":return new qn(t,["createdTime"],["amount"]);case"Customers":return new qn(t,["customerSince"],["marketingAllowed"]);case"Balance":return new qn(t,["pending"],["available"]);case"BalanceTransaction":return new qn(t,["created_at"],["amount_money"]);case"Charges":return new qn(t,["id"],[{total_money:"amount"}]);default:return console.log("No data type found"),new qn(t,[],[])}}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),N3e=(()=>{class n{constructor(){}summarizeShopifyData(t){switch(t.dataType){case"Events":return new qn(t,["created_at"],["description"]);case"Products":return new qn(t,["created_at"],["title"]);case"Payments":return new qn(t,["created_at"],[{amount_money:"amount"}]);case"Customers":return new qn(t,["created_at"],["updated_at"]);case"Balance":return new qn(t,["pending"],["available"]);case"BalanceTransaction":return new qn(t,["created_at"],["amount_money"]);case"Charges":return new qn(t,["id"],[{total_money:"amount"}]);default:return console.log("No data type found"),new qn(t,[],[])}}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),F3e=(()=>{class n{constructor(){}summarizeData(t,r){switch(r){case"Stripe":return(new R3e).summarizeStripeData(t);case"Square":return(new L3e).summarizeSquareData(t);case"Clover":return(new O3e).summarizeCloverData(t);case"Shopify":return(new N3e).summarizeShopifyData(t);default:return new qn(t,[],[])}}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function sb(n){return n+.5|0}const yh=(n,e,t)=>Math.max(Math.min(n,t),e);function BD(n){return yh(sb(2.55*n),0,255)}function Dp(n){return yh(sb(255*n),0,255)}function vh(n){return yh(sb(n/2.55)/100,0,1)}function xce(n){return yh(sb(100*n),0,100)}const ac={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},D3=[..."0123456789ABCDEF"],V3e=n=>D3[15&n],U3e=n=>D3[(240&n)>>4]+D3[15&n],MR=n=>(240&n)>>4==(15&n);const z3e=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function kce(n,e,t){const r=e*Math.min(t,1-t),i=(s,o=(s+n/30)%12)=>t-r*Math.max(Math.min(o-3,9-o,1),-1);return[i(0),i(8),i(4)]}function $3e(n,e,t){const r=(i,s=(i+n/60)%6)=>t-t*e*Math.max(Math.min(s,4-s,1),0);return[r(5),r(3),r(1)]}function q3e(n,e,t){const r=kce(n,1,.5);let i;for(e+t>1&&(i=1/(e+t),e*=i,t*=i),i=0;i<3;i++)r[i]*=1-e-t,r[i]+=e;return r}function C3(n){const t=n.r/255,r=n.g/255,i=n.b/255,s=Math.max(t,r,i),o=Math.min(t,r,i),a=(s+o)/2;let l,c,u;return s!==o&&(u=s-o,c=a>.5?u/(2-s-o):u/(s+o),l=function W3e(n,e,t,r,i){return n===i?(e-t)/r+(e<t?6:0):e===i?(t-n)/r+2:(n-e)/r+4}(t,r,i,u,s),l=60*l+.5),[0|l,c||0,a]}function S3(n,e,t,r){return(Array.isArray(e)?n(e[0],e[1],e[2]):n(e,t,r)).map(Dp)}function A3(n,e,t){return S3(kce,n,e,t)}function Pce(n){return(n%360+360)%360}const Rce={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Lce={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",K
1ocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let IR;const t5e=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,x3=n=>n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055,ob=n=>n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4);function DR(n,e,t){if(n){let r=C3(n);r[e]=Math.max(0,Math.min(r[e]+r[e]*t,0===e?360:1)),r=A3(r),n.r=r[0],n.g=r[1],n.b=r[2]}}function Oce(n,e){return n&&Object.assign(e||{},n)}function Nce(n){var e={r:0,g:0,b:0,a:255};return Array.isArray(n)?n.length>=3&&(e={r:n[0],g:n[1],b:n[2],a:255},n.length>3&&(e.a=Dp(n[3]))):(e=Oce(n,{r:0,g:0,b:0,a:1})).a=Dp(e.a),e}function s5e(n){return"r"===n.charAt(0)?function n5e(n){const e=t5e.exec(n);let r,i,s,t=255;if(e){if(e[7]!==r){const o=+e[7];t=e[8]?BD(o):yh(255*o,0,255)}return r=+e[1],i=+e[3],s=+e[5],r=255&(e[2]?BD(r):yh(r,0,255)),i=255&(e[4]?BD(i):yh(i,0,255)),s=255&(e[6]?BD(s):yh(s,0,255)),{r,g:i,b:s,a:t}}}(n):function Q3e(n){const e=z3e.exec(n);let r,t=255;if(!e)return;e[5]!==r&&(t=e[6]?BD(+e[5]):Dp(+e[5]));const i=Pce(+e[2]),s=+e[3]/100,o=+e[4]/100;return r="hwb"===e[1]?function G3e(n,e,t){return S3(q3e,n,e,t)}(i,s,o):"hsv"===e[1]?function K3e(n,e,t){return S3($3e,n,e,t)}(i,s,o):A3(i,s,o),{r:r[0],g:r[1],b:r[2],a:t}}(n)}class ab{constructor(e){if(e instanceof ab)return e;const t=typeof e;let r;"object"===t?r=Nce(e):"string"===t&&(r=function Y3e(n){var t,e=n.length;return"#"===n[0]&&(4===e||5===e?t={r:255&17*ac[n[1]],g:255&17*ac[n[2]],b:255&17*ac[n[3]],a:5===e?17*ac[n[4]]:255}:(7===e||9===e)&&(t={r:ac[n[1]]<<4|ac[n[2]],g:ac[n[3]]<<4|ac[n[4]],b:ac[n[5]]<<4|ac[n[6]],a:9===e?ac[n[7]]<<4|ac[n[8]]:255})),t}(e)||function e5e(n){IR||(IR=function Z3e(){const n={},e=Object.keys(Lce),t=Object.keys(Rce);let r,i,s,o,a;for(r=0;r<e.length;r++){for(o=a=e[r],i=0;i<t.length;i++)s=t[i],a=a.replace(s,Rce[s]);s=parseInt(Lce[o],16),n[a]=[s>>16&255,s>>8&255,255&s]}return n}(),IR.transparent=[0,0,0,0]);const e=IR[n.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(e)||s5e(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=Oce(this._rgb);return e&&(e.a=vh(e.a)),e}set rgb(e){this._rgb=Nce(e)}
vendor: 14,527 bytes, line 1
1rgbString(){return this._valid?function r5e(n){return n&&(n.a<255?`rgba(${n.r}, ${n.g}, ${n.b}, ${vh(n.a)})`:`rgb(${n.r}, ${n.g}, ${n.b})`)}(this._rgb):void 0}hexString(){return this._valid?function H3e(n){var e=(n=>MR(n.r)&&MR(n.g)&&MR(n.b)&&MR(n.a))(n)?V3e:U3e;return n?"#"+e(n.r)+e(n.g)+e(n.b)+((n,e)=>n<255?e(n):"")(n.a,e):void 0}(this._rgb):void 0}hslString(){return this._valid?function X3e(n){if(!n)return;const e=C3(n),t=e[0],r=xce(e[1]),i=xce(e[2]);return n.a<255?`hsla(${t}, ${r}%, ${i}%, ${vh(n.a)})`:`hsl(${t}, ${r}%, ${i}%)`}(this._rgb):void 0}mix(e,t){if(e){const r=this.rgb,i=e.rgb;let s;const o=t===s?.5:t,a=2*o-1,l=r.a-i.a,c=((a*l==-1?a:(a+l)/(1+a*l))+1)/2;s=1-c,r.r=255&c*r.r+s*i.r+.5,r.g=255&c*r.g+s*i.g+.5,r.b=255&c*r.b+s*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}interpolate(e,t){return e&&(this._rgb=function i5e(n,e,t){const r=ob(vh(n.r)),i=ob(vh(n.g)),s=ob(vh(n.b));return{r:Dp(x3(r+t*(ob(vh(e.r))-r))),g:Dp(x3(i+t*(ob(vh(e.g))-i))),b:Dp(x3(s+t*(ob(vh(e.b))-s))),a:n.a+t*(e.a-n.a)}}(this._rgb,e._rgb,t)),this}clone(){return new ab(this.rgb)}alpha(e){return this._rgb.a=Dp(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=sb(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return DR(this._rgb,2,e),this}darken(e){return DR(this._rgb,2,-e),this}saturate(e){return DR(this._rgb,1,e),this}desaturate(e){return DR(this._rgb,1,-e),this}rotate(e){return function J3e(n,e){var t=C3(n);t[0]=Pce(t[0]+e),t=A3(t),n.r=t[0],n.g=t[1],n.b=t[2]}(this._rgb,e),this}}function wh(){}const o5e=(()=>{let n=0;return()=>n++})();function Jn(n){return null===n||typeof n>"u"}function gi(n){if(Array.isArray&&Array.isArray(n))return!0;const e=Object.prototype.toString.call(n);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function Vn(n){return null!==n&&"[object Object]"===Object.prototype.toString.call(n)}function Gi(n){return("number"==typeof n||n instanceof Number)&&isFinite(+n)}function Al(n,e){return Gi(n)?n:e}function _n(n,e){return typeof n>"u"?e:n}const Fce=(n,e)=>"string"==typeof n&&n.endsWith("%")?parseFloat(n)/100*e:+n;function Xr(n,e,t){if(n&&"function"==typeof n.call)return n.apply(t,e)}function Er(n,e,t,r){let i,s,o;if(gi(n))if(s=n.length,r)for(i=s-1;i>=0;i--)e.call(t,n[i],i);else for(i=0;i<s;i++)e.call(t,n[i],i);else if(Vn(n))for(o=Object.keys(n),s=o.length,i=0;i<s;i++)e.call(t,n[o[i]],o[i])}function CR(n,e){let t,r,i,s;if(!n||!e||n.length!==e.length)return!1;for(t=0,r=n.length;t<r;++t)if(i=n[t],s=e[t],i.datasetIndex!==s.datasetIndex||i.index!==s.index)return!1;return!0}function SR(n){if(gi(n))return n.map(SR);if(Vn(n)){const e=Object.create(null),t=Object.keys(n),r=t.length;let i=0;for(;i<r;++i)e[t[i]]=SR(n[t[i]]);return e}return n}function Vce(n){return-1===["__proto__","prototype","constructor"].indexOf(n)}function l5e(n,e,t,r){if(!Vce(n))return;const i=e[n],s=t[n];Vn(i)&&Vn(s)?HD(i,s,r):e[n]=SR(s)}function HD(n,e,t){const r=gi(e)?e:[e],i=r.length;if(!Vn(n))return n;const s=(t=t||{}).merger||l5e;let o;for(let a=0;a<i;++a){if(o=r[a],!Vn(o))continue;const l=Object.keys(o);for(let c=0,u=l.length;c<u;++c)s(l[c],n,o,t)}return n}function zD(n,e){return HD(n,e,{merger:c5e})}function c5e(n,e,t){if(!Vce(n))return;const r=e[n],i=t[n];Vn(r)&&Vn(i)?zD(r,i):Object.prototype.hasOwnProperty.call(e,n)||(e[n]=SR(i))}const Uce={"":n=>n,x:n=>n.x,y:n=>n.y};function Cp(n,e){return(Uce[e]||(Uce[e]=function d5e(n){const e=function u5e(n){const e=n.split("."),t=[];let r="";for(const i of e)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(t.push(r),r="");return t}(n);return t=>{for(const r of e){if(""===r)break;t=t&&t[r]}return t}}(e)))(n)}function k3(n){return n.charAt(0).toUpperCase()+n.slice(1)}const $D=n=>typeof n<"u",Sp=n=>"function"==typeof n,jce=(n,e)=>{if(n.size!==e.size)return!1;for(const t of n)if(!e.has(t))return!1;return!0},_i=Math.PI,yi=2*_i,f5e=yi+_i,AR=Number.POSITIVE_INFINITY,p5e=_i/180,ms=_i/2,T_=_i/4,Yce=2*_i/3,Ap=Math.log10,ad=Math.sign;function qD(n,e,t){return Math.abs(n-e)<t}function Bce(n){const e=Math.round(n);n=qD(n,e,n/1e3)?e:n;const t=Math.pow(10,Math.floor(Ap(n))),r=n/t;return(r<=1?1:r<=2?2:r<=5?5:10)*t}function lb(n){return!isNaN(parseFloat(n))&&isFinite(n)}function Hce(n,e,t){let r,i,s;for(r=0,i=n.length;r<i;r++)s=n[r][t],isNaN(s)||(e.min=Math.min(e.min,s),e.max=Math.max(e.max,s))}function Kc(n){return n*(_i/180)}function P3(n){return n*(180/_i)}function zce(n){if(!Gi(n))return;let e=1,t=0;for(;Math.round(n*e)/e!==n;)e*=10,t++;return t}function $ce(n,e){const t=e.x-n.x,r=e.y-n.y,i=Math.sqrt(t*t+r*r);let s=Math.atan2(r,t);return s<-.5*_i&&(s+=yi),{angle:s,distance:i}}function R3(n,e){return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function _5e(n,e){return(n-e+f5e)%yi-_i}function xl(n){return(n%yi+yi)%yi}function WD(n,e,t,r){const i=xl(n),s=xl(e),o=xl(t),a=xl(s-i),l=xl(o-i),c=xl(i-s),u=xl(i-o);return i===s||i===o||r&&s===o||a>l&&c<u}function to(n,e,t){return Math.max(e,Math.min(t,n))}function bh(n,e,t,r=1e-6){return n>=Math.min(e,t)-r&&n<=Math.max(e,t)+r}function L3(n,e,t){t=t||(o=>n[o]<e);let s,r=n.length-1,i=0;for(;r-i>1;)s=i+r>>1,t(s)?i=s:r=s;return{lo:i,hi:r}}const Th=(n,e,t,r)=>L3(n,t,r?i=>{const s=n[i][e];return s<t||s===t&&n[i+1][e]===t}:i=>n[i][e]<t),v5e=(n,e,t)=>L3(n,t,r=>n[r][e]>=t),qce=["push","pop","shift","splice","unshift"];function Wce(n,e){const t=n._chartjs;if(!t)return;const r=t.listeners,i=r.indexOf(e);-1!==i&&r.splice(i,1),!(r.length>0)&&(qce.forEach(s=>{delete n[s]}),delete n._chartjs)}function Gce(n){const e=new Set(n);return e.size===n.length?n:Array.from(e)}const Kce=typeof window>"u"?function(n){return n()}:window.requestAnimationFrame;function Qce(n,e){let t=[],r=!1;return function(...i){t=i,r||(r=!0,Kce.call(window,()=>{r=!1,n.apply(e,t)}))}}const O3=n=>"start"===n?"left":"end"===n?"right":"center",zo=(n,e,t)=>"start"===n?e:"end"===n?t:(e+t)/2;function Jce(n,e,t){const r=e.length;let i=0,s=r;if(n._sorted){const{iScale:o,_parsed:a}=n,l=o.axis,{min:c,max:u,minDefined:d,maxDefined:f}=o.getUserBounds();d&&(i=to(Math.min(Th(a,l,c).lo,t?r:Th(e,l,o.getPixelForValue(c)).lo),0,r-1)),s=f?to(Math.max(Th(a,o.axis,u,!0).hi+1,t?0:Th(e,l,o.getPixelForValue(u),!0).hi+1),i,r)-i:r-i}return{start:i,count:s}}function Xce(n){const{xScale:e,yScale:t,_scaleRanges:r}=n,i={xmin:e.min,xmax:e.max,ymin:t.min,ymax:t.max};if(!r)return n._scaleRanges=i,!0;const s=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==t.min||r.ymax!==t.max;return Object.assign(r,i),s}const xR=n=>0===n||1===n,Zce=(n,e,t)=>-Math.pow(2,10*(n-=1))*Math.sin((n-e)*yi/t),eue=(n,e,t)=>Math.pow(2,-10*n)*Math.sin((n-e)*yi/t)+1,GD={linear:n=>n,easeInQuad:n=>n*n,easeOutQuad:n=>-n*(n-2),easeInOutQuad:n=>(n/=.5)<1?.5*n*n:-.5*(--n*(n-2)-1),easeInCubic:n=>n*n*n,easeOutCubic:n=>(n-=1)*n*n+1,easeInOutCubic:n=>(n/=.5)<1?.5*n*n*n:.5*((n-=2)*n*n+2),easeInQuart:n=>n*n*n*n,easeOutQuart:n=>-((n-=1)*n*n*n-1),easeInOutQuart:n=>(n/=.5)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2),easeInQuint:n=>n*n*n*n*n,easeOutQuint:n=>(n-=1)*n*n*n*n+1,easeInOutQuint:n=>(n/=.5)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2),easeInSine:n=>1-Math.cos(n*ms),easeOutSine:n=>Math.sin(n*ms),easeInOutSine:n=>-.5*(Math.cos(_i*n)-1),easeInExpo:n=>0===n?0:Math.pow(2,10*(n-1)),easeOutExpo:n=>1===n?1:1-Math.pow(2,-10*n),easeInOutExpo:n=>xR(n)?n:n<.5?.5*Math.pow(2,10*(2*n-1)):.5*(2-Math.pow(2,-10*(2*n-1))),easeInCirc:n=>n>=1?n:-(Math.sqrt(1-n*n)-1),easeOutCirc:n=>Math.sqrt(1-(n-=1)*n),easeInOutCirc:n=>(n/=.5)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1),easeInElastic:n=>xR(n)?n:Zce(n,.075,.3),easeOutElastic:n=>xR(n)?n:eue(n,.075,.3),easeInOutElastic:n=>xR(n)?n:n<.5?.5*Zce(2*n,.1125,.45):.5+.5*eue(2*n-1,.1125,.45),easeInBack:n=>n*n*(2.70158*n-1.70158),easeOutBack:n=>(n-=1)*n*(2.70158*n+1.70158)+1,easeInOutBack(n){let e=1.70158;return(n/=.5)<1?n*n*((1+(e*=1.525))*n-e)*.5:.5*((n-=2)*n*((1+(e*=1.525))*n+e)+2)},easeInBounce:n=>1-GD.easeOutBounce(1-n),easeOutBounce:n=>n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375,easeInOutBounce:n=>n<.5?.5*GD.easeInBounce(2*n):.5*GD.easeOutBounce(2*n-1)+.5};function N3(n){if(n&&"object"==typeof n){const e=n.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function tue(n){return N3(n)?n:new ab(n)}function F3(n){return N3(n)?n:new ab(n).saturate(.5).darken(.1).hexString()}const M5e=["x","y","borderWidth","radius","tension"],I5e=["color","borderColor","backgroundColor"],nue=new Map;function KD(n,e,t){return function S5e(n,e){e=e||{};const t=n+JSON.stringify(e);let r=nue.get(t);return r||(r=new Intl.NumberFormat(n,e),nue.set(t,r)),r}(e,t).format(n)}const rue={values:n=>gi(n)?n:""+n,numeric(n,e,t){if(0===n)return"0";const r=this.chart.options.locale;let i,s=n;if(t.length>1){const c=Math.max(Math.abs(t[0].value),Math.abs(t[t.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),s=function A5e(n,e){let t=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(t)>=1&&n!==Math.floor(n)&&(t=n-Math.floor(n)),t}(n,t)}const o=Ap(Math.abs(s)),a=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),KD(n,r,l)},logarithmic(n,e,t){if(0===n)return"0";const r=t[e].significand||n/Math.pow(10,Math.floor(Ap(n)));return[1,2,3,5,10,15].includes(r)||e>.8*t.length?rue.numeric.call(this,n,e,t):""}};var kR={formatters:rue};const E_=Object.create(null),V3=Object.create(null);function QD(n,e){if(!e)return n;const t=e.split(".");for(let r=0,i=t.length;r<i;++r){const s=t[r];n=n[s]||(n[s]=Object.create(null))}return n}function U3(n,e,t){return"string"==typeof e?HD(QD(n,e),t):HD(QD(n,""),e)}class k5e{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>F3(i.backgroundColor),this.hoverBorderColor=(r,i)=>F3(i.borderColor),this.hoverColor=(r,i)=>F3(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return U3(this,e,t)}get(e){return QD(this,e)}describe(e,t){return U3(V3,e,t)}override(e,t){return U3(E_,e,t)}route(e,t,r,i){const s=QD(this,e),o=QD(this,r),a="_"+t;Object.defineProperties(s,{[a]:{value:s[t],writable:!0},[t]:{enumerable:!0,get(){const l=this[a],c=o[i];return Vn(l)?Object.assign({},c,l):_n(l,c)},set(l){this[a]=l}}})}apply(e){e.forEach(t=>t(this))}}var Vi=new k5e({_scriptable:n=>!n.startsWith("on"),_indexable:n=>"events"!==n,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function D5e(n){n.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),n.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),n.set("animations",{colors:{type:"color",properties:I5e},numbers:{type:"number",properties:M5e}}),n.describe("animations",{_fallback:"animation"}),n.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function C5e(n){n.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function x5e(n){n.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:kR.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),n.route("scale.ticks","color","","color"),n.route("scale.grid","color","","borderColor"),n.route("scale.border","color","","borderColor"),n.route("scale.title","color","","color"),n.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),n.describe("scales",{_fallback:"scale"}),n.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function PR(n,e,t,r,i){let s=e[i];return s||(s=e[i]=n.measureText(i).width,t.push(i)),s>r&&(r=s),r}function R5e(n,e,t,r){let i=(r=r||{}).data=r.data||{},s=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(i=r.data={},s=r.garbageCollect=[],r.font=e),n.save(),n.font=e;let o=0;const a=t.length;let l,c,u,d,f;for(l=0;l<a;l++)if(d=t[l],null==d||gi(d)){if(gi(d))for(c=0,u=d.length;c<u;c++)f=d[c],null!=f&&!gi(f)&&(o=PR(n,i,s,o,f))}else o=PR(n,i,s,o,d);n.restore();const _=s.length/2;if(_>t.length){for(l=0;l<_;l++)delete i[s[l]];s.splice(0,_)}return o}function M_(n,e,t){const r=n.currentDevicePixelRatio,i=0!==t?Math.max(t/2,.5):0;return Math.round((e-i)*r)/r+i}function iue(n,e){!e&&!n||((e=e||n.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,n.width,n.height),e.restore())}function j3(n,e,t,r){sue(n,e,t,r,null)}function sue(n,e,t,r,i){let s,o,a,l,c,u,d,f;const _=e.pointStyle,w=e.rotation,M=e.radius;let S=(w||0)*p5e;if(_&&"object"==typeof _&&(s=_.toString(),"[object HTMLImageElement]"===s||"[object HTMLCanvasElement]"===s))return n.save(),n.translate(t,r),n.rotate(S),n.drawImage(_,-_.width/2,-_.height/2,_.width,_.height),void n.restore();if(!(isNaN(M)||M<=0)){switch(n.beginPath(),_){default:i?n.ellipse(t,r,i/2,M,0,0,yi):n.arc(t,r,M,0,yi),n.closePath();break;case"triangle":u=i?i/2:M,n.moveTo(t+Math.sin(S)*u,r-Math.cos(S)*M),S+=Yce,n.lineTo(t+M
vendor: 8,426 bytes, line 1
1ath.sin(S)*u,r-Math.cos(S)*M),S+=Yce,n.lineTo(t+Math.sin(S)*u,r-Math.cos(S)*M),n.closePath();break;case"rectRounded":c=.516*M,l=M-c,o=Math.cos(S+T_)*l,d=Math.cos(S+T_)*(i?i/2-c:l),a=Math.sin(S+T_)*l,f=Math.sin(S+T_)*(i?i/2-c:l),n.arc(t-d,r-a,c,S-_i,S-ms),n.arc(t+f,r-o,c,S-ms,S),n.arc(t+d,r+a,c,S,S+ms),n.arc(t-f,r+o,c,S+ms,S+_i),n.closePath();break;case"rect":if(!w){l=Math.SQRT1_2*M,u=i?i/2:l,n.rect(t-u,r-l,2*u,2*l);break}S+=T_;case"rectRot":d=Math.cos(S)*(i?i/2:M),o=Math.cos(S)*M,a=Math.sin(S)*M,f=Math.sin(S)*(i?i/2:M),n.moveTo(t-d,r-a),n.lineTo(t+f,r-o),n.lineTo(t+d,r+a),n.lineTo(t-f,r+o),n.closePath();break;case"crossRot":S+=T_;case"cross":d=Math.cos(S)*(i?i/2:M),o=Math.cos(S)*M,a=Math.sin(S)*M,f=Math.sin(S)*(i?i/2:M),n.moveTo(t-d,r-a),n.lineTo(t+d,r+a),n.moveTo(t+f,r-o),n.lineTo(t-f,r+o);break;case"star":d=Math.cos(S)*(i?i/2:M),o=Math.cos(S)*M,a=Math.sin(S)*M,f=Math.sin(S)*(i?i/2:M),n.moveTo(t-d,r-a),n.lineTo(t+d,r+a),n.moveTo(t+f,r-o),n.lineTo(t-f,r+o),S+=T_,d=Math.cos(S)*(i?i/2:M),o=Math.cos(S)*M,a=Math.sin(S)*M,f=Math.sin(S)*(i?i/2:M),n.moveTo(t-d,r-a),n.lineTo(t+d,r+a),n.moveTo(t+f,r-o),n.lineTo(t-f,r+o);break;case"line":o=i?i/2:Math.cos(S)*M,a=Math.sin(S)*M,n.moveTo(t-o,r-a),n.lineTo(t+o,r+a);break;case"dash":n.moveTo(t,r),n.lineTo(t+Math.cos(S)*(i?i/2:M),r+Math.sin(S)*M);break;case!1:n.closePath()}n.fill(),e.borderWidth>0&&n.stroke()}}function Eh(n,e,t){return t=t||.5,!e||n&&n.x>e.left-t&&n.x<e.right+t&&n.y>e.top-t&&n.y<e.bottom+t}function RR(n,e){n.save(),n.beginPath(),n.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),n.clip()}function LR(n){n.restore()}function L5e(n,e,t,r,i){if(!e)return n.lineTo(t.x,t.y);if("middle"===i){const s=(e.x+t.x)/2;n.lineTo(s,e.y),n.lineTo(s,t.y)}else"after"===i!=!!r?n.lineTo(e.x,t.y):n.lineTo(t.x,e.y);n.lineTo(t.x,t.y)}function O5e(n,e,t,r){if(!e)return n.lineTo(t.x,t.y);n.bezierCurveTo(r?e.cp1x:e.cp2x,r?e.cp1y:e.cp2y,r?t.cp2x:t.cp1x,r?t.cp2y:t.cp1y,t.x,t.y)}function F5e(n,e,t,r,i){if(i.strikethrough||i.underline){const s=n.measureText(r),o=e-s.actualBoundingBoxLeft,a=e+s.actualBoundingBoxRight,c=t+s.actualBoundingBoxDescent,u=i.strikethrough?(t-s.actualBoundingBoxAscent+c)/2:c;n.strokeStyle=n.fillStyle,n.beginPath(),n.lineWidth=i.decorationWidth||2,n.moveTo(o,u),n.lineTo(a,u),n.stroke()}}function V5e(n,e){const t=n.fillStyle;n.fillStyle=e.color,n.fillRect(e.left,e.top,e.width,e.height),n.fillStyle=t}function I_(n,e,t,r,i,s={}){const o=gi(e)?e:[e],a=s.strokeWidth>0&&""!==s.strokeColor;let l,c;for(n.save(),n.font=i.string,function N5e(n,e){e.translation&&n.translate(e.translation[0],e.translation[1]),Jn(e.rotation)||n.rotate(e.rotation),e.color&&(n.fillStyle=e.color),e.textAlign&&(n.textAlign=e.textAlign),e.textBaseline&&(n.textBaseline=e.textBaseline)}(n,s),l=0;l<o.length;++l)c=o[l],s.backdrop&&V5e(n,s.backdrop),a&&(s.strokeColor&&(n.strokeStyle=s.strokeColor),Jn(s.strokeWidth)||(n.lineWidth=s.strokeWidth),n.strokeText(c,t,r,s.maxWidth)),n.fillText(c,t,r,s.maxWidth),F5e(n,t,r,c,s),r+=Number(i.lineHeight);n.restore()}function JD(n,e){const{x:t,y:r,w:i,h:s,radius:o}=e;n.arc(t+o.topLeft,r+o.topLeft,o.topLeft,1.5*_i,_i,!0),n.lineTo(t,r+s-o.bottomLeft),n.arc(t+o.bottomLeft,r+s-o.bottomLeft,o.bottomLeft,_i,ms,!0),n.lineTo(t+i-o.bottomRight,r+s),n.arc(t+i-o.bottomRight,r+s-o.bottomRight,o.bottomRight,ms,0,!0),n.lineTo(t+i,r+o.topRight),n.arc(t+i-o.topRight,r+o.topRight,o.topRight,0,-ms,!0),n.lineTo(t+o.topLeft,r)}const U5e=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,j5e=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Y5e(n,e){const t=(""+n).match(U5e);if(!t||"normal"===t[1])return 1.2*e;switch(n=+t[2],t[3]){case"px":return n;case"%":n/=100}return e*n}const B5e=n=>+n||0;function Y3(n,e){const t={},r=Vn(e),i=r?Object.keys(e):e,s=Vn(n)?r?o=>_n(n[o],n[e[o]]):o=>n[o]:()=>n;for(const o of i)t[o]=B5e(s(o));return t}function oue(n){return Y3(n,{top:"y",right:"x",bottom:"y",left:"x"})}function D_(n){return Y3(n,["topLeft","topRight","bottomLeft","bottomRight"])}function $o(n){const e=oue(n);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Vs(n,e){let t=_n((n=n||{}).size,(e=e||Vi.font).size);"string"==typeof t&&(t=parseInt(t,10));let r=_n(n.style,e.style);r&&!(""+r).match(j5e)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:_n(n.family,e.family),lineHeight:Y5e(_n(n.lineHeight,e.lineHeight),t),size:t,style:r,weight:_n(n.weight,e.weight),string:""};return i.string=function P5e(n){return!n||Jn(n.size)||Jn(n.family)?null:(n.style?n.style+" ":"")+(n.weight?n.weight+" ":"")+n.size+"px "+n.family}(i),i}function XD(n,e,t,r){let s,o,a,i=!0;for(s=0,o=n.length;s<o;++s)if(a=n[s],void 0!==a&&(void 0!==e&&"function"==typeof a&&(a=a(e),i=!1),void 0!==t&&gi(a)&&(a=a[t%a.length],i=!1),void 0!==a))return r&&!i&&(r.cacheable=!1),a}function xp(n,e){return Object.assign(Object.create(n),e)}function B3(n,e=[""],t,r,i=(()=>n[0])){const s=t||n;typeof r>"u"&&(r=due("_fallback",n));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:n,_rootScopes:s,_fallback:r,_getTarget:i,override:a=>B3([a,...n],e,s,r)};return new Proxy(o,{deleteProperty:(a,l)=>(delete a[l],delete a._keys,delete n[0][l],!0),get:(a,l)=>lue(a,l,()=>function J5e(n,e,t,r){let i;for(const s of e)if(i=due(z5e(s,n),t),typeof i<"u")return H3(n,i)?z3(t,r,n,i):i}(l,e,n,a)),getOwnPropertyDescriptor:(a,l)=>Reflect.getOwnPropertyDescriptor(a._scopes[0],l),getPrototypeOf:()=>Reflect.getPrototypeOf(n[0]),has:(a,l)=>hue(a).includes(l),ownKeys:a=>hue(a),set(a,l,c){const u=a._storage||(a._storage=i());return a[l]=u[l]=c,delete a._keys,!0}})}function cb(n,e,t,r){const i={_cacheable:!1,_proxy:n,_context:e,_subProxy:t,_stack:new Set,_descriptors:aue(n,r),setContext:s=>cb(n,s,t,r),override:s=>cb(n.override(s),e,t,r)};return new Proxy(i,{deleteProperty:(s,o)=>(delete s[o],delete n[o],!0),get:(s,o,a)=>lue(s,o,()=>function $5e(n,e,t){const{_proxy:r,_context:i,_subProxy:s,_descriptors:o}=n;let a=r[e];return Sp(a)&&o.isScriptable(e)&&(a=function q5e(n,e,t,r){const{_proxy:i,_context:s,_subProxy:o,_stack:a}=t;if(a.has(n))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+n);a.add(n);let l=e(s,o||r);return a.delete(n),H3(n,l)&&(l=z3(i._scopes,i,n,l)),l}(e,a,n,t)),gi(a)&&a.length&&(a=function W5e(n,e,t,r){const{_proxy:i,_context:s,_subProxy:o,_descriptors:a}=t;if(typeof s.index<"u"&&r(n))return e[s.index%e.length];if(Vn(e[0])){const l=e,c=i._scopes.filter(u=>u!==l);e=[];for(const u of l){const d=z3(c,i,n,u);e.push(cb(d,s,o&&o[n],a))}}return e}(e,a,n,o.isIndexable)),H3(e,a)&&(a=cb(a,i,s&&s[e],o)),a}(s,o,a)),getOwnPropertyDescriptor:(s,o)=>s._descriptors.allKeys?Reflect.has(n,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(n,o),getPrototypeOf:()=>Reflect.getPrototypeOf(n),has:(s,o)=>Reflect.has(n,o),ownKeys:()=>Reflect.ownKeys(n),set:(s,o,a)=>(n[o]=a,delete s[o],!0)})}function aue(n,e={scriptable:!0,indexable:!0}){const{_scriptable:t=e.scriptable,_indexable:r=e.indexable,_allKeys:i=e.allKeys}=n;return{allKeys:i,scriptable:t,indexable:r,isScriptable:Sp(t)?t:()=>t,isIndexable:Sp(r)?r:()=>r}}const z5e=(n,e)=>n?n+k3(e):e,H3=(n,e)=>Vn(e)&&"adapters"!==n&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function lue(n,e,t){if(Object.prototype.hasOwnProperty.call(n,e)||"constructor"===e)return n[e];const r=t();return n[e]=r,r}function cue(n,e,t){return Sp(n)?n(e,t):n}const G5e=(n,e)=>!0===n?e:"string"==typeof n?Cp(e,n):void 0;function K5e(n,e,t,r,i){for(const s of e){const o=G5e(t,s);if(o){n.add(o);const a=cue(o._fallback,t,i);if(typeof a<"u"&&a!==t&&a!==r)return a}else if(!1===o&&typeof r<"u"&&t!==r)return null}return!1}function z3(n,e,t,r){const i=e._rootScopes,s=cue(e._fallback,t,r),o=[...n,...i],a=new Set;a.add(r);let l=uue(a,o,t,s||t,r);return!(null===l||typeof s<"u"&&s!==t&&(l=uue(a,o,s,l,r),null===l))&&B3(Array.from(a),[""],i,s,()=>function Q5e(n,e,t){const r=n._getTarget();e in r||(r[e]={});const i=r[e];return gi(i)&&Vn(t)?t:i||{}}(e,t,r))}function uue(n,e,t,r,i){for(;t;)t=K5e(n,e,t,r,i);return t}function due(n,e){for(const t of e){if(!t)continue;const r=t[n];if(typeof r<"u")return r}}function hue(n){let e=n._keys;return e||(e=n._keys=function X5e(n){const e=new Set;for(const t of n)for(const r of Object.keys(t).filter(i=>!i.startsWith("_")))e.add(r);return Array.from(e)}(n._scopes)),e}function fue(n,e,t,r){const{iScale:i}=n,{key:s="r"}=this._parsing,o=new Array(r);let a,l,c,u;for(a=0,l=r;a<l;
1++a)c=a+t,u=e[c],o[a]={r:i.parse(Cp(u,s),c)};return o}const Z5e=Number.EPSILON||1e-14,ub=(n,e)=>e<n.length&&!n[e].skip&&n[e],pue=n=>"x"===n?"y":"x";function e6e(n,e,t,r){const i=n.skip?e:n,s=e,o=t.skip?e:t,a=R3(s,i),l=R3(o,s);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=r*c,f=r*u;return{previous:{x:s.x-d*(o.x-i.x),y:s.y-d*(o.y-i.y)},next:{x:s.x+f*(o.x-i.x),y:s.y+f*(o.y-i.y)}}}function OR(n,e,t){return Math.max(Math.min(n,t),e)}function s6e(n,e,t,r,i){let s,o,a,l;if(e.spanGaps&&(n=n.filter(c=>!c.skip)),"monotone"===e.cubicInterpolationMode)!function r6e(n,e="x"){const t=pue(e),r=n.length,i=Array(r).fill(0),s=Array(r);let o,a,l,c=ub(n,0);for(o=0;o<r;++o)if(a=l,l=c,c=ub(n,o+1),l){if(c){const u=c[e]-l[e];i[o]=0!==u?(c[t]-l[t])/u:0}s[o]=a?c?ad(i[o-1])!==ad(i[o])?0:(i[o-1]+i[o])/2:i[o-1]:i[o]}(function t6e(n,e,t){const r=n.length;let i,s,o,a,l,c=ub(n,0);for(let u=0;u<r-1;++u)if(l=c,c=ub(n,u+1),l&&c){if(qD(e[u],0,Z5e)){t[u]=t[u+1]=0;continue}i=t[u]/e[u],s=t[u+1]/e[u],a=Math.pow(i,2)+Math.pow(s,2),!(a<=9)&&(o=3/Math.sqrt(a),t[u]=i*o*e[u],t[u+1]=s*o*e[u])}})(n,i,s),function n6e(n,e,t="x"){const r=pue(t),i=n.length;let s,o,a,l=ub(n,0);for(let c=0;c<i;++c){if(o=a,a=l,l=ub(n,c+1),!a)continue;const u=a[t],d=a[r];o&&(s=(u-o[t])/3,a[`cp1${t}`]=u-s,a[`cp1${r}`]=d-s*e[c]),l&&(s=(l[t]-u)/3,a[`cp2${t}`]=u+s,a[`cp2${r}`]=d+s*e[c])}}(n,s,e)}(n,i);else{let c=r?n[n.length-1]:n[0];for(s=0,o=n.length;s<o;++s)a=n[s],l=e6e(c,a,n[Math.min(s+1,o-(r?0:1))%o],e.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,c=a}e.capBezierPoints&&function i6e(n,e){let t,r,i,s,o,a=Eh(n[0],e);for(t=0,r=n.length;t<r;++t)o=s,s=a,a=t<r-1&&Eh(n[t+1],e),s&&(i=n[t],o&&(i.cp1x=OR(i.cp1x,e.left,e.right),i.cp1y=OR(i.cp1y,e.top,e.bottom)),a&&(i.cp2x=OR(i.cp2x,e.left,e.right),i.cp2y=OR(i.cp2y,e.top,e.bottom)))}(n,t)}function $3(){return typeof window<"u"&&typeof document<"u"}function q3(n){let e=n.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function NR(n,e,t){let r;return"string"==typeof n?(r=parseInt(n,10),-1!==n.indexOf("%")&&(r=r/100*e.parentNode[t])):r=n,r}const FR=n=>n.ownerDocument.defaultView.getComputedStyle(n,null),a6e=["top","right","bottom","left"];function C_(n,e,t){const r={};t=t?"-"+t:"";for(let i=0;i<4;i++){const s=a6e[i];r[s]=parseFloat(n[e+"-"+s+t])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const l6e=(n,e,t)=>(n>0||e>0)&&(!t||!t.shadowRoot);function S_(n,e){if("native"in n)return n;const{canvas:t,currentDevicePixelRatio:r}=e,i=FR(t),s="border-box"===i.boxSizing,o=C_(i,"padding"),a=C_(i,"border","width"),{x:l,y:c,box:u}=function c6e(n,e){const t=n.touches,r=t&&t.length?t[0]:n,{offsetX:i,offsetY:s}=r;let a,l,o=!1;if(l6e(i,s,n.target))a=i,l=s;else{const c=e.getBoundingClientRect();a=r.clientX-c.left,l=r.clientY-c.top,o=!0}return{x:a,y:l,box:o}}(n,t),d=o.left+(u&&a.left),f=o.top+(u&&a.top);let{width:_,height:w}=e;return s&&(_-=o.width+a.width,w-=o.height+a.height),{x:Math.round((l-d)/_*t.width/r),y:Math.round((c-f)/w*t.height/r)}}const VR=n=>Math.round(10*n)/10;function mue(n,e,t){const r=e||1,i=Math.floor(n.height*r),s=Math.floor(n.width*r);n.height=Math.floor(n.height),n.width=Math.floor(n.width);const o=n.canvas;return o.style&&(t||!o.style.height&&!o.style.width)&&(o.style.height=`${n.height}px`,o.style.width=`${n.width}px`),(n.currentDevicePixelRatio!==r||o.height!==i||o.width!==s)&&(n.currentDevicePixelRatio=r,o.height=i,o.width=s,n.ctx.setTransform(r,0,0,r,0,0),!0)}const h6e=function(){let n=!1;try{const e={get passive(){return n=!0,!1}};$3()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return n}();function gue(n,e){const t=function o6e(n,e){return FR(n).getPropertyValue(e)}(n,e),r=t&&t.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function A_(n,e,t,r){return{x:n.x+t*(e.x-n.x),y:n.y+t*(e.y-n.y)}}function f6e(n,e,t,r){return{x:n.x+t*(e.x-n.x),y:"middle"===r?t<.5?n.y:e.y:"after"===r?t<1?n.y:e.y:t>0?e.y:n.y}}function p6e(n,e,t,r){const i={x:n.cp2x,y:n.cp2y},s={x:e.cp1x,y:e.cp1y},o=A_(n,i,t),a=A_(i,s,t),l=A_(s,e,t),c=A_(o,a,t),u=A_(a,l,t);return A_(c,u,t)}function db(n,e,t){return n?function(n,e){return{x:t=>n+n+e-t,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,r)=>t-r,leftForLtr:(t,r)=>t-r}}(e,t):{x:n=>n,setWidth(n){},textAlign:n=>n,xPlus:(n,e)=>n+e,leftForLtr:(n,e)=>n}}function _ue(n,e){let t,r;("ltr"===e||"rtl"===e)&&(t=n.canvas.style,r=[t.getPropertyValue("direction"),t.getPropertyPriority("direction")],t.setProperty("direction",e,"important"),n.prevTextDirection=r)}function yue(n,e){void 0!==e&&(delete n.prevTextDirection,n.canvas.style.setProperty("direction",e[0],e[1]))}function vue(n){return"angle"===n?{between:WD,compare:_5e,normalize:xl}:{between:bh,compare:(e,t)=>
1e-t,normalize:e=>e}}function wue({start:n,end:e,count:t,loop:r,style:i}){return{start:n%t,end:e%t,loop:r&&(e-n+1)%t==0,style:i}}function bue(n,e,t){if(!t)return[n];const{property:r,start:i,end:s}=t,o=e.length,{compare:a,between:l,normalize:c}=vue(r),{start:u,end:d,loop:f,style:_}=function _6e(n,e,t){const{property:r,start:i,end:s}=t,{between:o,normalize:a}=vue(r),l=e.length;let f,_,{start:c,end:u,loop:d}=n;if(d){for(c+=l,u+=l,f=0,_=l;f<_&&o(a(e[c%l][r]),i,s);++f)c--,u--;c%=l,u%=l}return u<c&&(u+=l),{start:c,end:u,loop:d,style:n.style}}(n,e,t),w=[];let O,N,j,M=!1,S=null;for(let B=u,J=u;B<=d;++B)N=e[B%o],!N.skip&&(O=c(N[r]),O!==j&&(M=l(O,i,s),null===S&&(M||l(i,j,O)&&0!==a(i,j))&&(S=0===a(O,i)?B:J),null!==S&&(!M||0===a(s,O)||l(s,j,O))&&(w.push(wue({start:S,end:B,loop:f,count:o,style:_})),S=null),J=B,j=O));return null!==S&&w.push(wue({start:S,end:d,loop:f,count:o,style:_})),w}function Tue(n,e){const t=[],r=n.segments;for(let i=0;i<r.length;i++){const s=bue(r[i],n.points,e);s.length&&t.push(...s)}return t}function Mue(n){return{backgroundColor:n.backgroundColor,borderCapStyle:n.borderCapStyle,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderJoinStyle:n.borderJoinStyle,borderWidth:n.borderWidth,borderColor:n.borderColor}}function T6e(n,e){if(!e)return!1;const t=[],r=function(i,s){return N3(s)?(t.includes(s)||t.push(s),t.indexOf(s)):s};return JSON.stringify(n,r)!==JSON.stringify(e,r)}class E6e{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,r,i){const o=t.duration;
vendor: 8,488 bytes, line 1
1t.listeners[i].forEach(a=>a({chart:e,initial:t.initial,numSteps:o,currentStep:Math.min(r-t.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=Kce.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let t=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const s=r.items;let l,o=s.length-1,a=!1;for(;o>=0;--o)l=s[o],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(e),a=!0):(s[o]=s[s.length-1],s.pop());a&&(i.draw(),this._notify(i,r,e,"progress")),s.length||(r.running=!1,this._notify(i,r,e,"complete"),r.initial=!1),t+=s.length}),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let r=t.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,r)),r}listen(e,t,r){this._getAnims(e).listeners[t].push(r)}add(e,t){!t||!t.length||this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!(!t||!t.running||!t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const r=t.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Mh=new E6e;const Iue="transparent",M6e={boolean:(n,e,t)=>t>.5?e:n,color(n,e,t){const r=tue(n||Iue),i=r.valid&&tue(e||Iue);return i&&i.valid?i.mix(r,t).hexString():e},number:(n,e,t)=>n+(e-n)*t};class I6e{constructor(e,t,r,i){const s=t[r];i=XD([e.to,i,s,e.from]);const o=XD([e.from,s,i]);this._active=!0,this._fn=e.fn||M6e[e.type||typeof o],this._easing=GD[e.easing]||GD.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=r,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(e,t,r){if(this._active){this._notify(!1);const i=this._target[this._prop],s=r-this._start,o=this._duration-s;this._start=r,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=s,this._loop=!!e.loop,this._to=XD([e.to,t,i,e.from]),this._from=XD([e.from,i,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,r=this._duration,i=this._prop,s=this._from,o=this._loop,a=this._to;let l;if(this._active=s!==a&&(o||t<r),!this._active)return this._target[i]=a,void this._notify(!0);t<0?this._target[i]=s:(l=t/r%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(s,a,l))}wait(){const e=this._promises||(this._promises=[]);return new Promise((t,r)=>{e.push({res:t,rej:r})})}_notify(e){const t=e?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][t]()}}class Due{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!Vn(e))return;const t=Object.keys(Vi.animation),r=this._properties;Object.getOwnPropertyNames(e).forEach(i=>{const s=e[i];if(!Vn(s))return;const o={};for(const a of t)o[a]=s[a];(gi(s.properties)&&s.properties||[i]).forEach(a=>{(a===i||!r.has(a))&&r.set(a,o)})})}_animateOptions(e,t){const r=t.options,i=function C6e(n,e){if(!e)return;let t=n.options;if(t)return t.$shared&&(n.options=t=Object.assign({},t,{$shared:!1,$animations:{}})),t;n.options=e}(e,r);if(!i)return[];const s=this._createAnimations(i,r);return r.$shared&&function D6e(n,e){const t=[],r=Object.keys(e);for(let i=0;i<r.length;i++){const s=n[r[i]];s&&s.active()&&t.push(s.wait())}return Promise.all(t)}(e.options.$animations,r).then(()=>{e.options=r},()=>{}),s}_createAnimations(e,t){const r=this._properties,i=[],s=e.$animations||(e.$animations={}),o=Object.keys(t),a=Date.now();let l;for(l=o.length-1;l>=0;--l){const c=o[l];if("$"===c.charAt(0))continue;if("options"===c){i.push(...this._animateOptions(e,t));continue}const u=t[c];let d=s[c];const f=r.get(c);if(d){if(f&&d.active()){d.update(f,u,a);continue}d.cancel()}f&&f.duration?(s[c]=d=new I6e(f,e,c,u),i.push(d)):e[c]=u}return i}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const r=this._createAnimations(e,t);return r.length?(Mh.add(this._chart,r),!0):void 0}}function Cue(n,e){const t=n&&n.options||{},r=t.reverse,i=void 0===t.min?e:0,s=void 0===t.max?e:0;return{start:r?s:i,end:r?i:s}}function Sue(n,e){const t=[],r=n._getSortedDatasetMetas(e);let i,s;for(i=0,s=r.length;i<s;++i)t.push(r[i].index);return t}function Aue(n,e,t,r={}){const i=n.keys,s="single"===r.mode;let o,a,l,c;if(null!==e){for(o=0,a=i.length;o<a;++o){if(l=+i[o],l===t){if(r.all)continue;break}c=n.values[l],Gi(c)&&(s||0===e||ad(e)===ad(c))&&(e+=c)}return e}}function xue(n,e){const t=n&&n.options.stacked;return t||void 0===t&&void 0!==e.stack}function R6e(n,e,t){const r=n[e]||(n[e]={});return r[t]||(r[t]={})}function kue(n,e,t,r){for(const i of e.getMatchingVisibleMetas(r).reverse()){const s=n[i.index];if(t&&s>0||!t&&s<0)return i.index}return null}function Pue(n,e){const{chart:t,_cachedMeta:r}=n,i=t._stacks||(t._stacks={}),{iScale:s,vScale:o,index:a}=r,l=s.axis,c=o.axis,u=function k6e(n,e,t){return`${n.id}.${e.id}.${t.stack||t.type}`}(s,o,r),d=e.length;let f;for(let _=0;_<d;++_){const w=e[_],{[l]:M,[c]:S}=w;f=(w._stacks||(w._stacks={}))[c]=R6e(i,u,M),f[a]=S,f._top=kue(f,o,!0,r.type),f._bottom=kue(f,o,!1,r.type),(f._visualValues||(f._visualValues={}))[a]=S}}function W3(n,e){const t=n.scales;return Object.keys(t).filter(r=>t[r].axis===e).shift()}function ZD(n,e){const t=n.controller.index,r=n.vScale&&n.vScale.axis;if(r){e=e||n._parsed;for(const i of e){const s=i._stacks;if(!s||void 0===s[r]||void 0===s[r][t])return;delete s[r][t],void 0!==s[r]._visualValues&&void 0!==s[r]._visualValues[t]&&delete s[r]._visualValues[t]}}}const G3=n=>"reset"===n||"none"===n,Rue=(n,e)=>e?n:Object.assign({},n);let kp=(()=>class n{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,r){this.chart=t,this._ctx=t.ctx,this.index=r,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=xue(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&ZD(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,r=this._cachedMeta,i=this.getDataset(),s=(f,_,w,M)=>"x"===f?_:"r"===f?M:w,o=r.xAxisID=_n(i.xAxisID,W3(t,"x")),a=r.yAxisID=_n(i.yAxisID,W3(t,"y")),l=r.rAxisID=_n(i.rAxisID,W3(t,"r")),c=r.indexAxis,u=r.iAxisID=s(c,o,a,l),d=r.vAxisID=s(c,a,o,l);r.xScale=this.getScaleForId(o),r.yScale=this.getScaleForId(a),r.rScale=this.getScaleForId(l),r.iScale=this.getScaleForId(u),r.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const r=this._cachedMeta;return t===r.iScale?r.vScale:r.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Wce(this._data,this),t._stacked&&ZD(t)}_dataCheck(){const t=this.getDataset(),r=t.data||(t.data=[]),i=this._data;if(Vn(r))this._data=function x6e(n,e){const{iScale:t,vScale:r}=e,i="x"===t.axis?"x":"y",s="x"===r.axis?"x":"y",o=Object.keys(n),a=new Array(o.length);let l,c,u;for(l=0,c=o.length;l<c;++l)u=o[l],a[l]={[i]:u,[s]:n[u]};return a}(r,this._cachedMeta);else if(i!==r){if(i){Wce(i,this);const s=this._cachedMeta;ZD(s),s._parsed=[]}r&&Object.isExtensible(r)&&function b5e(n,e){n._chartjs?n._chartjs.listeners.push(e):(Object.defineProperty(n,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),qce.forEach(t=>{const r="_onData"+k3(t),i=n[t];Object.defineProperty(n,t,{configurable:!0,enumerable:!1,value(...s){const o=i.apply(this,s);
vendor: 6,394 bytes, line 1
1return n._chartjs.listeners.forEach(a=>{"function"==typeof a[r]&&a[r](...s)}),o}})}))}(r,this),this._syncList=[],this._data=r}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const r=this._cachedMeta,i=this.getDataset();let s=!1;this._dataCheck();const o=r._stacked;r._stacked=xue(r.vScale,r),r.stack!==i.stack&&(s=!0,ZD(r),r.stack=i.stack),this._resyncElements(t),(s||o!==r._stacked)&&Pue(this,r._parsed)}configure(){const t=this.chart.config,r=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),r,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,r){const{_cachedMeta:i,_data:s}=this,{iScale:o,_stacked:a}=i,l=o.axis;let d,f,_,c=0===t&&r===s.length||i._sorted,u=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=s,i._sorted=!0,_=s;else{_=gi(s[t])?this.parseArrayData(i,s,t,r):Vn(s[t])?this.parseObjectData(i,s,t,r):this.parsePrimitiveData(i,s,t,r);const w=()=>null===f[l]||u&&f[l]<u[l];for(d=0;d<r;++d)i._parsed[d+t]=f=_[d],c&&(w()&&(c=!1),u=f);i._sorted=c}a&&Pue(this,_)}parsePrimitiveData(t,r,i,s){const{iScale:o,vScale:a}=t,l=o.axis,c=a.axis,u=o.getLabels(),d=o===a,f=new Array(s);let _,w,M;for(_=0,w=s;_<w;++_)M=_+i,f[_]={[l]:d||o.parse(u[M],M),[c]:a.parse(r[M],M)};return f}parseArrayData(t,r,i,s){const{xScale:o,yScale:a}=t,l=new Array(s);let c,u,d,f;for(c=0,u=s;c<u;++c)d=c+i,f=r[d],l[c]={x:o.parse(f[0],d),y:a.parse(f[1],d)};return l}parseObjectData(t,r,i,s){const{xScale:o,yScale:a}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,u=new Array(s);let d,f,_,w;for(d=0,f=s;d<f;++d)_=d+i,w=r[_],u[d]={x:o.parse(Cp(w,l),_),y:a.parse(Cp(w,c),_)};return u}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,r,i){const o=this._cachedMeta,a=r[t.axis];return Aue({keys:Sue(this.chart,!0),values:r._stacks[t.axis]._visualValues},a,o.index,{mode:i})}updateRangeFromParsed(t,r,i,s){const o=i[r.axis];let a=null===o?NaN:o;const l=s&&i._stacks[r.axis];s&&l&&(s.values=l,a=Aue(s,o,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,r){const i=this._cachedMeta,s=i._parsed,o=i._sorted&&t===i.iScale,a=s.length,l=this._getOtherScale(t),c=((n,e,t)=>n&&!e.hidden&&e._stacked&&{keys:Sue(this.chart,!0),values:null})(r,i),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:f}=function P6e(n){const{min:e,max:t,minDefined:r,maxDefined:i}=n.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:i?t:Number.POSITIVE_INFINITY}}(l);let _,w;function M(){w=s[_];const S=w[l.axis];return!Gi(w[t.axis])||d>S||f<S}for(_=0;_<a&&(M()||(this.updateRangeFromParsed(u,t,w,c),!o));++_);if(o)for(_=a-1;_>=0;--_)if(!M()){this.updateRangeFromParsed(u,t,w,c);break}return u}getAllParsedValues(t){const r=this._cachedMeta._parsed,i=[];let s,o,a;for(s=0,o=r.length;s<o;++s)a=r[s][t.axis],Gi(a)&&i.push(a);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const r=this._cachedMeta,i=r.iScale,s=r.vScale,o=this.getParsed(t);return{label:i?""+i.getLabelForValue(o[i.axis]):"",value:s?""+s.getLabelForValue(o[s.axis]):""}}_update(t){const r=this._cachedMeta;this.update(t||"default"),r._clip=function A6e(n){let e,t,r,i;return Vn(n)?(e=n.top,t=n.right,r=n.bottom,i=n.left):e=t=r=i=n,{top:e,right:t,bottom:r,left:i,disabled:!1===n}}(_n(this.options.clip,function S6e(n,e,t){if(!1===t)return!1;const r=Cue(n,t),i=Cue(e,t);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}(r.xScale,r.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,i=this._cachedMeta,s=i.data||[],o=this.chart.chartArea,a=[],l=this._drawStart||0,c=this._drawCount||s.length-l,u=this.options.drawActiveElementsOnTop;let d;for(i.dataset&&i.dataset.draw(t,o,l,c),d=l;d<l+c;++d){const f=s[d];f.hidden||(f.active&&u?a.push(f):f.draw(t,o))}for(d=0;d<a.length;++d)a[d].draw(t,o)}getStyle(t,r){const i=r?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,r,i){const s=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const a=this._cachedMeta.data[t];o=a.$context||(a.$context=function O6e(n,e,t){return xp(n,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:t,index:e,mode:"default",type:"data"})}(this.getContext(),t,a)),o.parsed=this.getParsed(t),o.raw=s.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=function L6e(n,e){return xp(n,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=s,o.index=o.datasetIndex=this.index;return o.active=!!r,o.mode=i,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,r){return this._resolveElementOptions(this.dataElementType.id,r,t)}_resolveElementOptions(t,r="default",i){const s="active"===r,o=this._cachedDataOpts,a=t+"-"+r,l=o[a],c=this.enableOptionSharing&&$D(i);if(l)return Rue(l,c);const u=this.chart.config,d=u.datasetElementScopeKeys(this._type,t),f=s?[`${t}Hover`,"hover",t,""]:[t,""],_=u.getOptionScopes(this.getDataset(),d),w=Object.keys(Vi.elements[t]),S=u.resolveNamedOptions(_,w,()=>this.getContext(i,s,r),f);return S.$shared&&(S.$shared=c,o[a]=Object.freeze(Rue(S,c))),S}_resolveAnimations(t,r,i){const s=this.chart,o=this._cachedDataOpts,a=`animation-${r}`,l=o[a];if(l)return l;let c;if(!1!==s.options.animation){const d=this.chart.config,f=d.datasetAnimationScopeKeys(this._type,r),_=d.getOptionScopes(this.getDataset(),f);c=d.createResolver(_,this.getContext(t,i,r))}const u=new Due(s,c&&c.animations);return c&&c._cacheable&&(o[a]=Object.freeze(u)),u}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,r){return!r||G3(t)||this.chart._animationsDisabled}_getSharedOptions(t,r){const i=this.resolveDataElementOptions(t,r),s=this._sharedOptions,o=this.getSharedOptions(i),a=this.includeOptions(r,o)||o!==s;return this.updateSharedOptions(o,r,i),{sharedOptions:o,includeOptions:a}}updateElement(t,r,i,s){G3(s)?Object.assign(t,i):this._resolveAnimations(r,s).update(t,i)}updateSharedOptions(t,r,i){t&&!G3(r)&&this._resolveAnimations(void 0,r).update(t,i)}_setStyle(t,r,i,s){t.active=s;const o=this.getStyle(r,s);
vendor: 10,824 bytes, line 1
1this._resolveAnimations(r,i,s).update(t,{options:!s&&this.getSharedOptions(o)||o})}removeHoverStyle(t,r,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,r,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const r=this._data,i=this._cachedMeta.data;for(const[l,c,u]of this._syncList)this[l](c,u);this._syncList=[];const s=i.length,o=r.length,a=Math.min(o,s);a&&this.parse(0,a),o>s?this._insertElements(s,o-s,t):o<s&&this._removeElements(o,s-o)}_insertElements(t,r,i=!0){const s=this._cachedMeta,o=s.data,a=t+r;let l;const c=u=>{for(u.length+=r,l=u.length-1;l>=a;l--)u[l]=u[l-r]};for(c(o),l=t;l<a;++l)o[l]=new this.dataElementType;this._parsing&&c(s._parsed),this.parse(t,r),i&&this.updateElements(o,t,r,"reset")}updateElements(t,r,i,s){}_removeElements(t,r){const i=this._cachedMeta;if(this._parsing){const s=i._parsed.splice(t,r);i._stacked&&ZD(i,s)}i.data.splice(t,r)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[r,i,s]=t;this[r](i,s)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,r){r&&this._sync(["_removeElements",t,r]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}})();function V6e(n){const e=n.iScale,t=function F6e(n,e){if(!n._cache.$bar){const t=n.getMatchingVisibleMetas(e);let r=[];for(let i=0,s=t.length;i<s;i++)r=r.concat(t[i].controller.getAllParsedValues(n));n._cache.$bar=Gce(r.sort((i,s)=>i-s))}return n._cache.$bar}(e,n.type);let i,s,o,a,r=e._length;const l=()=>{32767===o||-32768===o||($D(a)&&(r=Math.min(r,Math.abs(o-a)||r)),a=o)};for(i=0,s=t.length;i<s;++i)o=e.getPixelForValue(t[i]),l();for(a=void 0,i=0,s=e.ticks.length;i<s;++i)o=e.getPixelForTick(i),l();return r}function Lue(n,e,t,r){return gi(n)?function Y6e(n,e,t,r){const i=t.parse(n[0],r),s=t.parse(n[1],r),o=Math.min(i,s),a=Math.max(i,s);let l=o,c=a;Math.abs(o)>Math.abs(a)&&(l=a,c=o),e[t.axis]=c,e._custom={barStart:l,barEnd:c,start:i,end:s,min:o,max:a}}(n,e,t,r):e[t.axis]=t.parse(n,r),e}function Oue(n,e,t,r){const i=n.iScale,s=n.vScale,o=i.getLabels(),a=i===s,l=[];let c,u,d,f;for(c=t,u=t+r;c<u;++c)f=e[c],d={},d[i.axis]=a||i.parse(o[c],c),l.push(Lue(f,d,s,c));return l}function K3(n){return n&&void 0!==n.barStart&&void 0!==n.barEnd}function z6e(n,e,t,r){let i=e.borderSkipped;const s={};if(!i)return void(n.borderSkipped=s);if(!0===i)return void(n.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:o,end:a,reverse:l,top:c,bottom:u}=function H6e(n){let e,t,r,i,s;return n.horizontal?(e=n.base>n.x,t="left",r="right"):(e=n.base<n.y,t="bottom",r="top"),e?(i="end",s="start"):(i="start",s="end"),{start:t,end:r,reverse:e,top:i,bottom:s}}(n);"middle"===i&&t&&(n.enableBorderRadius=!0,(t._top||0)===r?i=c:(t._bottom||0)===r?i=u:(s[Nue(u,o,a,l)]=!0,i=c)),s[Nue(i,o,a,l)]=!0,n.borderSkipped=s}function Nue(n,e,t,r){return r?(n=function $6e(n,e,t){return n===e?t:n===t?e:n}(n,e,t),n=Fue(n,t,e)):n=Fue(n,e,t),n}function Fue(n,e,t){return"start"===n?e:"end"===n?t:n}function q6e(n,{inflateAmount:e},t){n.inflateAmount="auto"===e?1===t?.33:0:e}let W6e=(()=>class n extends kp{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,r,i,s){return Oue(t,r,i,s)}parseArrayData(t,r,i,s){return Oue(t,r,i,s)}parseObjectData(t,r,i,s){const{iScale:o,vScale:a}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,u="x"===o.axis?l:c,d="x"===a.axis?l:c,f=[];let _,w,M,S;for(_=i,w=i+s;_<w;++_)S=r[_],M={},M[o.axis]=o.parse(Cp(S,u),_),f.push(Lue(Cp(S,d),M,a,_));return f}updateRangeFromParsed(t,r,i,s){super.updateRangeFromParsed(t,r,i,s);const o=i._custom;o&&r===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const r=this._cachedMeta,{iScale:i,vScale:s}=r,o=this.getParsed(t),a=o._custom,l=K3(a)?"["+a.start+", "+a.end+"]":""+s.getLabelForValue(o[s.axis]);return{label:""+i.getLabelForValue(o[i.axis]),value:l}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(t){const r=this._cachedMeta;this.updateElements(r.data,0,r.data.length,t)}updateElements(t,r,i,s){const o="reset"===s,{index:a,_cachedMeta:{vScale:l}}=this,c=l.getBasePixel(),u=l.isHorizontal(),d=this._getRuler(),{sharedOptions:f,includeOptions:_}=this._getSharedOptions(r,s);for(let w=r;w<r+i;w++){const M=this.getParsed(w),S=o||Jn(M[l.axis])?{base:c,head:c}:this._calculateBarValuePixels(w),O=this._calculateBarIndexPixels(w,d),N=(M._stacks||{})[l.axis],j={horizontal:u,base:S.base,enableBorderRadius:!N||K3(M._custom)||a===N._top||a===N._bottom,x:u?S.head:O.center,y:u?O.center:S.head,height:u?O.size:Math.abs(S.size),width:u?Math.abs(S.size):O.size};_&&(j.options=f||this.resolveDataElementOptions(w,t[w].active?"active":s));const Z=j.options||t[w].options;z6e(j,Z,N,a),q6e(j,Z,d.ratio),this.updateElement(t[w],w,j,s)}}_getStacks(t,r){const{iScale:i}=this._cachedMeta,s=i.getMatchingVisibleMetas(this._type).filter(c=>c.controller.options.grouped),o=i.options.stacked,a=[],l=c=>{const u=c.controller.getParsed(r),d=u&&u[c.vScale.axis];if(Jn(d)||isNaN(d))return!0};for(const c of s)if((void 0===r||!l(c))&&((!1===o||-1===a.indexOf(c.stack)||void 0===o&&void 0===c.stack)&&a.push(c.stack),c.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,r,i){const s=this._getStacks(t,i),o=void 0!==r?s.indexOf(r):-1;return-1===o?s.length-1:o}_getRuler(){const t=this.options,r=this._cachedMeta,i=r.iScale,s=[];let o,a;for(o=0,a=r.data.length;o<a;++o)s.push(i.getPixelForValue(this.getParsed(o)[i.axis],o));const l=t.barThickness;return{min:l||V6e(r),pixels:s,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:l?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:r,_stacked:i,index:s},options:{base:o,minBarLength:a}}=this,l=o||0,c=this.getParsed(t),u=c._custom,d=K3(u);let M,S,f=c[r.axis],_=0,w=i?this.applyStack(r,c,i):f;w!==f&&(_=w-f,w=f),d&&(f=u.barStart,w=u.barEnd-u.barStart,0!==f&&ad(f)!==ad(u.barEnd)&&(_=0),_+=f);const O=Jn(o)||d?_:o;let N=r.getPixelForValue(O);if(M=this.chart.getDataVisibility(t)?r.getPixelForValue(_+w):N,S=M-N,Math.abs(S)<a){S=function B6e(n,e,t){return 0!==n?ad(n):(e.isHorizontal()?1:-1)*(e.min>=t?1:-1)}(S,r,l)*a,f===l&&(N-=S/2);const j=r.getPixelForDecimal(0),Z=r.getPixelForDecimal(1),ie=Math.min(j,Z),le=Math.max(j,Z);N=Math.max(Math.min(N,le),ie),M=N+S,i&&!d&&(c._stacks[r.axis]._visualValues[s]=r.getValueForPixel(M)-r.getValueForPixel(N))}if(N===r.getPixelForValue(l)){const j=ad(S)*r.getLineWidthForValue(l)/2;N+=j,S-=j}return{size:S,base:N,head:M,center:M+S/2}}_calculateBarIndexPixels(t,r){const i=r.scale,s=this.options,o=s.skipNull,a=_n(s.maxBarThickness,1/0);let l,c;if(r.grouped){const u=o?this._getStackCount(t):r.stackCount,d="flex"===s.barThickness?function j6e(n,e,t,r){const i=e.pixels,s=i[n];let o=n>0?i[n-1]:null,a=n<i.length-1?i[n+1]:null;const l=t.categoryPercentage;null===o&&(o=s-(null===a?e.end-e.start:a-s)),null===a&&(a=s+s-o);const c=s-(s-Math.min(o,a))/2*l;return{chunk:Math.abs(a-o)/2*l/r,ratio:t.barPercentage,start:c}}(t,r,s,u):function U6e(n,e,t,r){const i=t.barThickness;let s,o;return Jn(i)?(s=e.min*t.categoryPercentage,o=t.barPercentage):(s=i*r,o=1),{chunk:s/r,ratio:o,start:e.pixels[n]-s/2}}(t,r,s,u),f=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);l=d.start+d.chunk*f+d.chunk/2,c=Math.min(a,d.chunk*d.ratio)}else l=i.getPixelForValue(this.getParsed(t)[i.axis],t),c=Math.min(a,r.min*r.ratio);return{base:l-c/2,head:l+c/2,center:l,size:c}}draw(){const t=this._cachedMeta,r=t.vScale,i=t.data,s=i.length;let o=0;for(;o<s;++o)null!==this.getParsed(o)[r.axis]&&!i[o].hidden&&i[o].draw(this._ctx)}})(),G6e=(()=>class n extends kp{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,r,i,s){const o=super.parsePrimitiveData(t,r,i,s);for(let a=0;a<o.length;a++)o[a]._custom=this.resolveDataElementOptions(a+i).radius;return o}parseArrayData(t,r,i,s){const o=super.parseArrayData(t,r,i,s);for(let a=0;a<o.length;a++)o[a]._custom=_n(r[i+a][2],this.resolveDataElementOptions(a+i).radius);return o}parseObjectData(t,r,i,s){const o=super.parseObjectData(t,r,i,s);for(let a=0;a<o.length;a++){const l=r[i+a];o[a]._custom=_n(l&&l.r&&+l.r,this.resolveDataElementOptions(a+i).radius)}return o}getMaxOverflow(){const t=this._cachedMeta.data;let r=0;for(let i=t.length-1;i>=0;--i)r=Math.max(r,t[i].size(this.resolveDataElementOptions(i))/2);return r>0&&r}getLabelAndValue(t){const r=this._cachedMeta,i=this.chart.data.labels||[],{xScale:s,yScale:o}=r,a=this.getParsed(t),l=s.getLabelForValue(a.x),c=o.getLabelForValue(a.y),u=a._custom;return{label:i[t]||"",value:"("+l+", "+c+(u?", "+u:"")+")"}}update(t){const r=this._cachedMeta.data;this.updateElements(r,0,r.length,t)}updateElements(t,r,i,s){const o="reset"===s,{iScale:a,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(r,s),d=a.axis,f=l.axis;for(let _=r;_<r+i;_++){const w=t[_],M=!o&&this.getParsed(_),S={},O=S[d]=o?a.getPixelForDecimal(.5):a.getPixelForValue(M[d]),N=S[f]=o?l.getBasePixel():l.getPixelForValue(M[f]);S.skip=isNaN(O)||isNaN(N),u&&(S.options=c||this.resolveDataElementOptions(_,w.active?"active":s),o&&(S.options.radius=0)),this.updateElement(w,_,S,s)}}resolveDataElementOptions(t,r){const i=this.getParsed(t);let s=super.resolveDataElementOptions(t,r);s.$shared&&(s=Object.assign({},s,{$shared:!1}));const o=s.radius;return"active"!==r&&(s.radius=0),s.radius+=_n(i&&i._custom,o),s}})(),Q3=(()=>class n extends kp{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}}
vendor: 7,553 bytes, line 1
1,cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const r=t.data;if(r.labels.length&&r.datasets.length){const{labels:{pointStyle:i,color:s}}=t.legend.options;return r.labels.map((o,a)=>{const c=t.getDatasetMeta(0).controller.getStyle(a);return{text:o,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:s,lineWidth:c.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,r,i){i.chart.toggleDataVisibility(r.index),i.chart.update()}}}};constructor(t,r){super(t,r),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,r){const i=this.getDataset().data,s=this._cachedMeta;if(!1===this._parsing)s._parsed=i;else{let a,l,o=c=>+i[c];if(Vn(i[t])){const{key:c="value"}=this._parsing;o=u=>+Cp(i[u],c)}for(a=t,l=t+r;a<l;++a)s._parsed[a]=o(a)}}_getRotation(){return Kc(this.options.rotation-90)}_getCircumference(){return Kc(this.options.circumference)}_getRotationExtents(){let t=yi,r=-yi;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){const s=this.chart.getDatasetMeta(i).controller,o=s._getRotation(),a=s._getCircumference();t=Math.min(t,o),r=Math.max(r,o+a)}return{rotation:t,circumference:r-t}}update(t){const r=this.chart,{chartArea:i}=r,s=this._cachedMeta,o=s.data,a=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,l=Math.max((Math.min(i.width,i.height)-a)/2,0),c=Math.min(((n,e)=>"string"==typeof n&&n.endsWith("%")?parseFloat(n)/100:+n/e)(this.options.cutout,l),1),u=this._getRingWeight(this.index),{circumference:d,rotation:f}=this._getRotationExtents(),{ratioX:_,ratioY:w,offsetX:M,offsetY:S}=function K6e(n,e,t){let r=1,i=1,s=0,o=0;if(e<yi){const a=n,l=a+e,c=Math.cos(a),u=Math.sin(a),d=Math.cos(l),f=Math.sin(l),_=(j,Z,ie)=>WD(j,a,l,!0)?1:Math.max(Z,Z*t,ie,ie*t),w=(j,Z,ie)=>WD(j,a,l,!0)?-1:Math.min(Z,Z*t,ie,ie*t),M=_(0,c,d),S=_(ms,u,f),O=w(_i,c,d),N=w(_i+ms,u,f);r=(M-O)/2,i=(S-N)/2,s=-(M+O)/2,o=-(S+N)/2}return{ratioX:r,ratioY:i,offsetX:s,offsetY:o}}(f,d,c),j=Math.max(Math.min((i.width-a)/_,(i.height-a)/w)/2,0),Z=Fce(this.options.radius,j),le=(Z-Math.max(Z*c,0))/this._getVisibleDatasetWeightTotal();this.offsetX=M*Z,this.offsetY=S*Z,s.total=this.calculateTotal(),this.outerRadius=Z-le*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-le*u,0),this.updateElements(o,0,o.length,t)}_circumference(t,r){const i=this.options,s=this._cachedMeta,o=this._getCircumference();return r&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===s._parsed[t]||s.data[t].hidden?0:this.calculateCircumference(s._parsed[t]*o/yi)}updateElements(t,r,i,s){const o="reset"===s,a=this.chart,l=a.chartArea,d=(l.left+l.right)/2,f=(l.top+l.bottom)/2,_=o&&a.options.animation.animateScale,w=_?0:this.innerRadius,M=_?0:this.outerRadius,{sharedOptions:S,includeOptions:O}=this._getSharedOptions(r,s);let j,N=this._getRotation();for(j=0;j<r;++j)N+=this._circumference(j,o);for(j=r;j<r+i;++j){const Z=this._circumference(j,o),ie=t[j],le={x:d+this.offsetX,y:f+this.offsetY,startAngle:N,endAngle:N+Z,circumference:Z,outerRadius:M,innerRadius:w};O&&(le.options=S||this.resolveDataElementOptions(j,ie.active?"active":s)),N+=Z,this.updateElement(ie,j,le,s)}}calculateTotal(){const t=this._cachedMeta,r=t.data;let s,i=0;for(s=0;s<r.length;s++){const o=t._parsed[s];null!==o&&!isNaN(o)&&this.chart.getDataVisibility(s)&&!r[s].hidden&&(i+=Math.abs(o))}return i}calculateCircumference(t){const r=this._cachedMeta.total;return r>0&&!isNaN(t)?yi*(Math.abs(t)/r):0}getLabelAndValue(t){const i=this.chart,s=i.data.labels||[],o=KD(this._cachedMeta._parsed[t],i.options.locale);return{label:s[t]||"",value:o}}getMaxBorderWidth(t){let r=0;const i=this.chart;let s,o,a,l,c;if(!t)for(s=0,o=i.data.datasets.length;s<o;++s)if(i.isDatasetVisible(s)){a=i.getDatasetMeta(s),t=a.data,l=a.controller;break}if(!t)return 0;for(s=0,o=t.length;s<o;++s)c=l.resolveDataElementOptions(s),"inner"!==c.borderAlign&&(r=Math.max(r,c.borderWidth||0,c.hoverBorderWidth||0));return r}getMaxOffset(t){let r=0;for(let i=0,s=t.length;i<s;++i){const o=this.resolveDataElementOptions(i);r=Math.max(r,o.offset||0,o.hoverOffset||0)}return r}_getRingWeightOffset(t){let r=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(r+=this._getRingWeight(i));return r}_getRingWeight(t){return Math.max(_n(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}})(),Q6e=(()=>class n extends kp{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const r=this._cachedMeta,{dataset:i,data:s=[],_dataset:o}=r,a=this.chart._animationsDisabled;let{start:l,count:c}=Jce(r,s,a);this._drawStart=l,this._drawCount=c,Xce(r)&&(l=0,c=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!o._decimated,i.points=s;const u=this.resolveDatasetElementOptions(t);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(i,void 0,{animated:!a,options:u},t),this.updateElements(s,l,c,t)}updateElements(t,r,i,s){const o="reset"===s,{iScale:a,vScale:l,_stacked:c,_dataset:u}=this._cachedMeta,{sharedOptions:d,includeOptions:f}=this._getSharedOptions(r,s),_=a.axis,w=l.axis,{spanGaps:M,segment:S}=this.options,O=lb(M)?M:Number.POSITIVE_INFINITY,N=this.chart._animationsDisabled||o||"none"===s,j=r+i,Z=t.length;let ie=r>0&&this.getParsed(r-1);for(let le=0;le<Z;++le){const Q=t[le],B=N?Q:{};if(le<r||le>=j){B.skip=!0;continue}const J=this.getParsed(le),oe=Jn(J[w]),ce=B[_]=a.getPixelForValue(J[_],le),he=B[w]=o||oe?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,J,c):J[w],le);B.skip=isNaN(ce)||isNaN(he)||oe,B.stop=le>0&&Math.abs(J[_]-ie[_])>O,S&&(B.parsed=J,B.raw=u.data[le]),f&&(B.options=d||this.resolveDataElementOptions(le,Q.active?"active":s)),N||this.updateElement(Q,le,B,s),ie=J}}getMaxOverflow(){const t=this._cachedMeta,r=t.dataset,i=r.options&&r.options.borderWidth||0,s=t.data||[];if(!s.length)return i;const o=s[0].size(this.resolveDataElementOptions(0)),a=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,o,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}})(),Vue=(()=>class n extends kp{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const r=t.data;if(r.labels.length&&r.datasets.length){const{labels:{pointStyle:i,color:s}}=t.legend.options;return r.labels.map((o,a)=>{const c=t.getDatasetMeta(0).controller.getStyle(a);return{text:o,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:s,lineWidth:c.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,r,i){i.chart.toggleDataVisibility(r.index),i.chart.update(
vendor: 13,329 bytes, line 1
1)}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,r){super(t,r),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const i=this.chart,s=i.data.labels||[],o=KD(this._cachedMeta._parsed[t].r,i.options.locale);return{label:s[t]||"",value:o}}parseObjectData(t,r,i,s){return fue.bind(this)(t,r,i,s)}update(t){const r=this._cachedMeta.data;this._updateRadius(),this.updateElements(r,0,r.length,t)}getMinMax(){const r={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return this._cachedMeta.data.forEach((i,s)=>{const o=this.getParsed(s).r;!isNaN(o)&&this.chart.getDataVisibility(s)&&(o<r.min&&(r.min=o),o>r.max&&(r.max=o))}),r}_updateRadius(){const t=this.chart,r=t.chartArea,i=t.options,s=Math.min(r.right-r.left,r.bottom-r.top),o=Math.max(s/2,0),l=(o-Math.max(i.cutoutPercentage?o/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=o-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(t,r,i,s){const o="reset"===s,a=this.chart,c=a.options.animation,u=this._cachedMeta.rScale,d=u.xCenter,f=u.yCenter,_=u.getIndexAngle(0)-.5*_i;let M,w=_;const S=360/this.countVisibleElements();for(M=0;M<r;++M)w+=this._computeAngle(M,s,S);for(M=r;M<r+i;M++){const O=t[M];let N=w,j=w+this._computeAngle(M,s,S),Z=a.getDataVisibility(M)?u.getDistanceFromCenterForValue(this.getParsed(M).r):0;w=j,o&&(c.animateScale&&(Z=0),c.animateRotate&&(N=j=_));const ie={x:d,y:f,innerRadius:0,outerRadius:Z,startAngle:N,endAngle:j,options:this.resolveDataElementOptions(M,O.active?"active":s)};this.updateElement(O,M,ie,s)}}countVisibleElements(){let r=0;return this._cachedMeta.data.forEach((i,s)=>{!isNaN(this.getParsed(s).r)&&this.chart.getDataVisibility(s)&&r++}),r}_computeAngle(t,r,i){return this.chart.getDataVisibility(t)?Kc(this.resolveDataElementOptions(t,r).angle||i):0}})();var J6e=Object.freeze({__proto__:null,BarController:W6e,BubbleController:G6e,DoughnutController:Q3,LineController:Q6e,PieController:(()=>class n extends Q3{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}})(),PolarAreaController:Vue,RadarController:(()=>class n extends kp{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){const r=this._cachedMeta.vScale,i=this.getParsed(t);return{label:r.getLabels()[t],value:""+r.getLabelForValue(i[r.axis])}}parseObjectData(t,r,i,s){return fue.bind(this)(t,r,i,s)}update(t){const r=this._cachedMeta,i=r.dataset,s=r.data||[],o=r.iScale.getLabels();if(i.points=s,"resize"!==t){const a=this.resolveDatasetElementOptions(t);this.options.showLine||(a.borderWidth=0),this.updateElement(i,void 0,{_loop:!0,_fullLoop:o.length===s.length,options:a},t)}this.updateElements(s,0,s.length,t)}updateElements(t,r,i,s){const o=this._cachedMeta.rScale,a="reset"===s;for(let l=r;l<r+i;l++){const c=t[l],u=this.resolveDataElementOptions(l,c.active?"active":s),d=o.getPointPositionForValue(l,this.getParsed(l).r),f=a?o.xCenter:d.x,_=a?o.yCenter:d.y,w={x:f,y:_,angle:d.angle,skip:isNaN(f)||isNaN(_),options:u};this.updateElement(c,l,w,s)}}})(),ScatterController:(()=>class n extends kp{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(t){const r=this._cachedMeta,i=this.chart.data.labels||[],{xScale:s,yScale:o}=r,a=this.getParsed(t),l=s.getLabelForValue(a.x),c=o.getLabelForValue(a.y);return{label:i[t]||"",value:"("+l+", "+c+")"}}update(t){const r=this._cachedMeta,{data:i=[]}=r,s=this.chart._animationsDisabled;let{start:o,count:a}=Jce(r,i,s);if(this._drawStart=o,this._drawCount=a,Xce(r)&&(o=0,a=i.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:l,_dataset:c}=r;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=i;const u=this.resolveDatasetElementOptions(t);u.segment=this.options.segment,this.updateElement(l,void 0,{animated:!s,options:u},t)}else this.datasetElementType&&(delete r.dataset,this.datasetElementType=!1);this.updateElements(i,o,a,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,r,i,s){const o="reset"===s,{iScale:a,vScale:l,_stacked:c,_dataset:u}=this._cachedMeta,d=this.resolveDataElementOptions(r,s),f=this.getSharedOptions(d),_=this.includeOptions(s,f),w=a.axis,M=l.axis,{spanGaps:S,segment:O}=this.options,N=lb(S)?S:Number.POSITIVE_INFINITY,j=this.chart._animationsDisabled||o||"none"===s;let Z=r>0&&this.getParsed(r-1);for(let ie=r;ie<r+i;++ie){const le=t[ie],Q=this.getParsed(ie),B=j?le:{},J=Jn(Q[M]),oe=B[w]=a.getPixelForValue(Q[w],ie),ce=B[M]=o||J?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,Q,c):Q[M],ie);B.skip=isNaN(oe)||isNaN(ce)||J,B.stop=ie>0&&Math.abs(Q[w]-Z[w])>N,O&&(B.parsed=Q,B.raw=u.data[ie]),_&&(B.options=f||this.resolveDataElementOptions(ie,le.active?"active":s)),j||this.updateElement(le,ie,B,s),Z=Q}this.updateSharedOptions(f,s,d)}getMaxOverflow(){const t=this._cachedMeta,r=t.data||[];if(!this.options.showLine){let l=0;for(let c=r.length-1;c>=0;--c)l=Math.max(l,r[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}const i=t.dataset,s=i.options&&i.options.borderWidth||0;if(!r.length)return s;const o=r[0].size(this.resolveDataElementOptions(0)),a=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(s,o,a)/2}})()});function x_(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class J3{static override(e){Object.assign(J3.prototype,e)}options;constructor(e){this.options=e||{}}init(){}formats(){return x_()}parse(){return x_()}format(){return x_()}add(){return x_()}diff(){return x_()}startOf(){return x_()}endOf(){return x_()}}var X6e__date=J3;function Z6e(n,e,t,r){const{controller:i,data:s,_sorted:o}=n,a=i._cachedMeta.iScale;if(a&&e===a.axis&&"r"!==e&&o&&s.length){const l=a._reversePixels?v5e:Th;if(!r)return l(s,e,t);if(i._sharedOptions){const c=s[0],u="function"==typeof c.getRange&&c.getRange(e);if(u){const d=l(s,e,t-u),f=l(s,e,t+u);return{lo:d.lo,hi:f.hi}}}}return{lo:0,hi:s.length-1}}function eC(n,e,t,r,i){const s=n.getSortedVisibleDatasetMetas(),o=t[e];for(let a=0,l=s.length;a<l;++a){const{index:c,data:u}=s[a],{lo:d,hi:f}=Z6e(s[a],e,o,i);for(let _=d;_<=f;++_){const w=u[_];w.skip||r(w,c,_)}}}function X3(n,e,t,r,i){const s=[];return!i&&!n.isPointInArea(e)||eC(n,t,e,function(a,l,c){!i&&!Eh(a,n.chartArea,0)||a.inRange(e.x,e.y,r)&&s.push({element:a,datasetIndex:l,index:c})},!0),s}function Z3(n,e,t,r,i,s){return s||n.isPointInArea(e)?"r"!==t||r?function nze(n,e,t,r,i,s){let o=[];const a=function eze(n){const e=-1!==n.indexOf("x"),t=-1!==n.indexOf("y");return function(r,i){const s=e?Math.abs(r.x-i.x):0,o=t?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(o,2))}}(t);let l=Number.POSITIVE_INFINITY;return eC(n,t,e,function c(u,d,f){const _=u.inRange(e.x,e.y,i);if(r&&!_)return;const w=u.getCenterPoint(i);if(!s&&!n.isPointInArea(w)&&!_)return;const S=a(e,w);S<l?(o=[{element:u,datasetIndex:d,index:f}],l=S):S===l&&o.push({element:u,datasetIndex:d,index:f})}),o}(n,e,t,r,i,s):function tze(n,e,t,r){let i=[];return eC(n,t,e,function s(o,a,l){const{startAngle:c,endAngle:u}=o.getProps(["startAngle","endAngle"],r),{angle:d}=$ce(o,{x:e.x,y:e.y});WD(d,c,u)&&i.push({element:o,datasetIndex:a,index:l})}),i}(n,e,t,i):[]}function Uue(n,e,t,r,i){const s=[],o="x"===t?"inXRange":"inYRange";let a=!1;return eC(n,t,e,(l,c,u)=>{l[o](e[t],i)&&(s.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(e.x,e.y,i))}),r&&!a?[]:s}var rze={evaluateInteractionItems:eC,modes:{index(n,e,t,r){const i=S_(e,n),s=t.axis||"x",o=t.includeInvisible||!1,a=t.intersect?X3(n,i,s,r,o):Z3(n,i,s,!1,r,o),l=[];return a.length?(n.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(n,e,t,r){const i=S_(e,n),s=t.axis||"xy",o=t.includeInvisible||!1;let a=t.intersect?X3(n,i,s,r,o):Z3(n,i,s,!1,r,o);if(a.length>0){const l=a[0].datasetIndex,c=n.getDatasetMeta(l).data;a=[];for(let u=0;u<c.length;++u)a.push({element:c[u],datasetIndex:l,index:u})}return a},point:(n,e,t,r)=>X3(n,S_(e,n),t.axis||"xy",r,t.includeInvisible||!1),nearest:(n,e,t,r)=>Z3(n,S_(e,n),t.axis||"xy",t.intersect,r,t.includeInvisible||!1),x:(n,e,t,r)=>Uue(n,S_(e,n),"x",t.intersect,r),y:(n,e,t,r)=>Uue(n,S_(e,n),"y",t.intersect,r)}};const jue=["left","top","right","bottom"];function tC(n,e){return n.filter(t=>t.pos===e)}function Yue(n,e){return n.filter(t=>-1===jue.indexOf(t.pos)&&t.box.axis===e)}function nC(n,e){return n.sort((t,r)=>{const i=e?r:t,s=e?t:r;return i.weight===s.weight?i.index-s.index:i.weight-s.weight})}function Bue(n,e,t,r){return Math.max(n[t],e[t])+Math.max(n[r],e[r])}function Hue(n,e){n.top=Math.max(n.top,e.top),n.left=Math.max(n.left,e.left),n.bottom=Math.max(n.bottom,e.bottom),n.right=Math.max(n.right,e.right)}function lze(n,e,t,r){const{pos:i,box:s}=t,o=n.maxPadding;if(!Vn(i)){t.size&&(n[i]-=t.size);const d=r[t.stack]||{size:0,count:1};d.size=Math.max(d.size,t.horizontal?s.height:s.width),t.size=d.size/d.count,n[i]+=t.size}s.getPadding&&Hue(o,s.getPadding());const a=Math.max(0,e.outerWidth-Bue(o,n,"left","right")),l=Math.max(0,e.outerHeight-Bue(o,n,"top","bottom")),c=a!==n.w,u=l!==n.h;return n.w=a,n.h=l,t.horizontal?{same:c,other:u}:{same:u,other:c}}function uze(n,e){const t=e.maxPadding;return function r(i){const s={left:0,top:0,right:0,bottom:0};return i.forEach(o=>{s[o]=Math.max(e[o],t[o])}),s}(n?["left","right"]:["top","bottom"])}function rC(n,e,t,r){const i=[];let s,o,a,l,c,u;for(s=0,o=n.length,c=0;s<o;++s){a=n[s],l=a.box,l.update(a.width||e.w,a.height||e.h,uze(a.horizontal,e));const{same:d,other:f}=lze(e,t,a,r);c|=d&&i.length,u=u||f,l.fullSize||i.push(a)}return c&&rC(i,e,t,r)||u}function UR(n,e,t,r,i){n.top=t,n.left=e,n.right=e+r,n.bottom=t+i,n.width=r,n.height=i}function zue(n,e,t,r){const i=t.padding;let{x:s,y:o}=e;for(const a of n){const l=a.box,c=r[a.stack]||{count:1,placed:0,weight:1},u=a.stackWeight/c.weight||1;if(a.horizontal){const d=e.w*u,f=c.size||l.height;$D(c.start)&&(o=c.start),l.fullSize?UR(l,i.left,o,t.outerWidth-i.right-i.left,f):UR(l,e.left+c.placed,o,d,f),c.start=o,c.placed+=d,o=l.bottom}else{const d=e.h*u,f=c.size||l.width;$D(c.start)&&(s=c.start),l.fullSize?UR(l,s,i.top,f,t.outerHeight-i.bottom-i.top):UR(l,s,e.top+c.placed,f,d),c.start=s,c.placed+=d,s=l.right}}e.x=s,e.y=o}var qo={addBox(n,e){n.boxes||(n.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},n.boxes.push(e)},removeBox(n,e){const t=n.boxes?n.boxes.indexOf(e):-1;-1!==t&&n.boxes.splice(t,1)},configure(n,e,t){e.fullSize=t.fullSize,e.position=t.position,e.weight=t.weight},update(n,e,t,r){if(!n)return;const i=$o(n.options.layout.padding),s=Math.max(e-i.width,0),o=Math.max(t-i.height,0),a=function aze(n){const e=function ize(n){const e=[];let t,r,i,s,o,a;for(t=0,r=(n||[]).length;t<r;++t)i=n[t],({position:s,options:{stack:o,stackWeight:a=1}}=i),e.push({index:t,box:i,pos:s,horizontal:i.isHorizontal(),weight:i.weight,stack:o&&s+o,stackWeight:a});return e}(n),t=nC(e.filter(c=>c.box.fullSize),!0),r=nC(tC(e,"left"),!0),i=nC(tC(e,"right")),s=nC(tC(e,"top"),!0),o=nC(tC(e,"bottom")),a=Yue(e,"x"),l=Yue(e,"y");return{fullSize:t,leftAndTop:r.concat(s),rightAndBottom:i.concat(l).concat(o).concat(a),chartArea:tC(e,"chartArea"),vertical:r.concat(i).concat(l),horizontal:s.concat(o).concat(a)}}(n.boxes),l=a.vertical,c=a.horizontal;Er(n.boxes,M=>{"function"==typeof M.beforeLayout&&M.beforeLayout()});const u=l.reduce((M,S)=>S.box.options&&!1===S.box.options.display?M:M+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:t,padding:i,availableWidth:s,availableHeight:o,vBoxMaxWidth:s/2/u,hBoxMaxHeight:o/2}),f=Object.assign({},i);Hue(f,$o(r));const _=Object.assign({maxPadding:f,w:s,h:o,x:i.left,y:i.top},i),w=function oze(n,e){const t=function sze(n){const e={};for(const t of n){const{stack:r,pos:i,stackWeight:s}=t;if(!r||!jue.includes(i))continue;const o=e[r]||(e[r]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=s}return e}(n),{vBoxMaxWidth:r,hBoxMaxHeight:i}=e;let s,o,a;for(s=0,o=n.length;s<o;++s){a=n[s];const{fullSize:l}=a.box,c=t[a.stack],u=c&&a.stackWeight/c.weight;a.horizontal?(a.width=u?u*r:l&&e.availableWidth,a.height=i):(a.width=r,a.height=u?u*i:l&&e.availableHeight)}return t}(l.concat(c),d);rC(a.fullSize,_,d,w),rC(l,_,d,w),rC(c,_,d,w)&&rC(l,_,d,w),function cze(n){const e=n.maxPadding;function t(r){const i=Math.max(e[r]-n[r],0);return n[r]+=i,i}n.y+=t("top"),n.x+=t("left"),t("right"),t("bottom")}(_),zue(a.leftAndTop,_,d,w),_.x+=_.w,_.y+=_.h,zue(a.rightAndBottom,_,d,w),n.chartArea={left:_.left,top:_.top,right:_.left+_.w,bottom:_.top+_.h,height:_.h,width:_.w},Er(a.chartArea,M=>{const S=M.box;Object.assign(S,n.chartArea),S.update(_.w,_.h,{left:0,top:0,right:0,bottom:0})})}};class $ue{acquireContext(e,t){}releaseContext(e){return!1}
1addEventListener(e,t,r){}removeEventListener(e,t,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,r,i){return t=Math.max(0,t||e.width),r=r||e.height,{width:t,height:Math.max(0,i?Math.floor(t/i):r)}}isAttached(e){return!0}updateConfig(e){}}class dze extends $ue{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const jR="$chartjs",hze={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},que=n=>null===n||""===n,Wue=!!h6e&&{passive:!0};function mze(n,e,t){n&&n.canvas&&n.canvas.removeEventListener(e,t,Wue)}function YR(n,e){for(const t of n)if(t===e||t.contains(e))return!0}function _ze(n,e,t){const r=n.canvas,i=new MutationObserver(s=>{let o=!1;for(const a of s)o=o||YR(a.addedNodes,r),o=o&&!YR(a.removedNodes,r);o&&t()});return i.observe(document,{childList:!0,subtree:!0}),i}function yze(n,e,t){const r=n.canvas,i=new MutationObserver(s=>{let o=!1;for(const a of s)o=o||YR(a.removedNodes,r),o=o&&!YR(a.addedNodes,r);o&&t()});return i.observe(document,{childList:!0,subtree:!0}),i}const iC=new Map;let Gue=0;function Kue(){const n=window.devicePixelRatio;n!==Gue&&(Gue=n,iC.forEach((e,t)=>{t.currentDevicePixelRatio!==n&&e()}))}function bze(n,e,t){const r=n.canvas,i=r&&q3(r);if(!i)return;const s=Qce((a,l)=>{const c=i.clientWidth;t(a,l),c<i.clientWidth&&t()},window),o=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;0===c&&0===u||s(c,u)});return o.observe(i),function vze(n,e){iC.size||window.addEventListener("resize",Kue),iC.set(n,e)}(n,s),o}function e5(n,e,t){t&&t.disconnect(),"resize"===e&&function wze(n){iC.delete(n),iC.size||window.removeEventListener("resize",Kue)}(n)}function Tze(n,e,t){const r=n.canvas,i=Qce(s=>{null!==n.ctx&&t(function gze(n,e){const t=hze[n.type]||n.type,{x:r,y:i}=S_(n,e);return{type:t,chart:e,native:n,x:void 0!==r?r:null,y:void 0!==i?i:null}}(s,n))},n);return function pze(n,e,t){n&&n.addEventListener(e,t,Wue)}(r,e,i),i}class Eze extends $ue{acquireContext(e,t){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(function fze(n,e){const t=n.style,r=n.getAttribute("height"),i=n.getAttribute("width");if(n[jR]={initial:{height:r,width:i,style:{display:t.display,height:t.height,width:t.width}}},t.display=t.display||"block",t.boxSizing=t.boxSizing||"border-box",que(i)){const s=gue(n,"width");void 0!==s&&(n.width=s)}if(que(r))if(""===n.style.height)n.height=n.width/(e||2);else{const s=gue(n,"height");void 0!==s&&(n.height=s)}}(e,t),r):null}releaseContext(e){const t=e.canvas;if(!t[jR])return!1;const r=t[jR].initial;["height","width"].forEach(s=>{const o=r[s];Jn(o)?t.removeAttribute(s):t.setAttribute(s,o)});const i=r.style||{};
vendor: 4,837 bytes, line 1
1return Object.keys(i).forEach(s=>{t.style[s]=i[s]}),t.width=t.width,delete t[jR],!0}addEventListener(e,t,r){this.removeEventListener(e,t),(e.$proxies||(e.$proxies={}))[t]=({attach:_ze,detach:yze,resize:bze}[t]||Tze)(e,t,r)}removeEventListener(e,t){const r=e.$proxies||(e.$proxies={}),i=r[t];i&&(({attach:e5,detach:e5,resize:e5}[t]||mze)(e,t,i),r[t]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,r,i){return function d6e(n,e,t,r){const i=FR(n),s=C_(i,"margin"),o=NR(i.maxWidth,n,"clientWidth")||AR,a=NR(i.maxHeight,n,"clientHeight")||AR,l=function u6e(n,e,t){let r,i;if(void 0===e||void 0===t){const s=n&&q3(n);if(s){const o=s.getBoundingClientRect(),a=FR(s),l=C_(a,"border","width"),c=C_(a,"padding");e=o.width-c.width-l.width,t=o.height-c.height-l.height,r=NR(a.maxWidth,s,"clientWidth"),i=NR(a.maxHeight,s,"clientHeight")}else e=n.clientWidth,t=n.clientHeight}return{width:e,height:t,maxWidth:r||AR,maxHeight:i||AR}}(n,e,t);let{width:c,height:u}=l;if("content-box"===i.boxSizing){const f=C_(i,"border","width"),_=C_(i,"padding");c-=_.width+f.width,u-=_.height+f.height}return c=Math.max(0,c-s.width),u=Math.max(0,r?c/r:u-s.height),c=VR(Math.min(c,o,l.maxWidth)),u=VR(Math.min(u,a,l.maxHeight)),c&&!u&&(u=VR(c/2)),(void 0!==e||void 0!==t)&&r&&l.height&&u>l.height&&(u=l.height,c=VR(Math.floor(u*r))),{width:c,height:u}}(e,t,r,i)}isAttached(e){const t=e&&q3(e);return!(!t||!t.isConnected)}}class Ih{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){const{x:t,y:r}=this.getProps(["x","y"],e);return{x:t,y:r}}hasValue(){return lb(this.x)&&lb(this.y)}getProps(e,t){const r=this.$animations;if(!t||!r)return this;const i={};return e.forEach(s=>{i[s]=r[s]&&r[s].active()?r[s]._to:this[s]}),i}}function BR(n,e,t,r,i){const s=_n(r,0),o=Math.min(_n(i,n.length),n.length);let l,c,u,a=0;for(t=Math.ceil(t),i&&(l=i-r,t=l/Math.floor(l/t)),u=s;u<0;)a++,u=Math.round(s+a*t);for(c=Math.max(s,0);c<o;c++)c===u&&(e.push(n[c]),a++,u=Math.round(s+a*t))}const Que=(n,e,t)=>"top"===e||"left"===e?n[e]+t:n[e]-t,Jue=(n,e)=>Math.min(e||n,n);function Xue(n,e){const t=[],r=n.length/e,i=n.length;let s=0;for(;s<i;s+=r)t.push(n[Math.floor(s)]);return t}function Pze(n,e,t){const r=n.ticks.length,i=Math.min(e,r-1),s=n._startPixel,o=n._endPixel,a=1e-6;let c,l=n.getPixelForTick(i);if(!(t&&(c=1===r?Math.max(l-s,o-l):0===e?(n.getPixelForTick(1)-l)/2:(l-n.getPixelForTick(i-1))/2,l+=i<e?c:-c,l<s-a||l>o+a)))return l}function sC(n){return n.drawTicks?n.tickLength:0}function Zue(n,e){if(!n.display)return 0;const t=Vs(n.font,e),r=$o(n.padding);return(gi(n.text)?n.text.length:1)*t.lineHeight+r.height}function Nze(n,e,t){let r=O3(n);return(t&&"right"!==e||!t&&"right"===e)&&(r=(n=>"left"===n?"right":"right"===n?"left":n)(r)),r}class k_ extends Ih{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:r,_suggestedMax:i}=this;return e=Al(e,Number.POSITIVE_INFINITY),t=Al(t,Number.NEGATIVE_INFINITY),r=Al(r,Number.POSITIVE_INFINITY),i=Al(i,Number.NEGATIVE_INFINITY),{min:Al(e,r),max:Al(t,i),minDefined:Gi(e),maxDefined:Gi(t)}}getMinMax(e){let o,{min:t,max:r,minDefined:i,maxDefined:s}=this.getUserBounds();if(i&&s)return{min:t,max:r};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)o=a[l].controller.getMinMax(this,e),i||(t=Math.min(t,o.min)),s||(r=Math.max(r,o.max));return t=s&&t>r?r:t,r=i&&t>r?t:r,{min:Al(t,Al(r,t)),max:Al(r,Al(t,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}
vendor: 5,597 bytes, line 1
1getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Xr(this.options.beforeUpdate,[this])}update(e,t,r){const{beginAtZero:i,grace:s,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function H5e(n,e,t){const{min:r,max:i}=n,s=Fce(e,(i-r)/2),o=(a,l)=>t&&0===a?0:a+l;return{min:o(r,-Math.abs(s)),max:o(i,s)}}(this,s,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?Xue(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=function Ize(n,e){const t=n.options.ticks,r=function Dze(n){const e=n.options.offset,t=n._tickSize();return Math.floor(Math.min(n._length/t+(e?0:1),n._maxLength/t))}(n),i=Math.min(t.maxTicksLimit||r,r),s=t.major.enabled?function Sze(n){const e=[];let t,r;for(t=0,r=n.length;t<r;t++)n[t].major&&e.push(t);return e}(e):[],o=s.length,a=s[0],l=s[o-1],c=[];if(o>i)return function Aze(n,e,t,r){let o,i=0,s=t[0];for(r=Math.ceil(r),o=0;o<n.length;o++)o===s&&(e.push(n[o]),i++,s=t[i*r])}(e,c,s,o/i),c;const u=function Cze(n,e,t){const r=function xze(n){const e=n.length;let t,r;if(e<2)return!1;for(r=n[0],t=1;t<e;++t)if(n[t]-n[t-1]!==r)return!1;return r}(n),i=e.length/t;if(!r)return Math.max(i,1);const s=function m5e(n){const e=[],t=Math.sqrt(n);let r;for(r=1;r<t;r++)n%r==0&&(e.push(r),e.push(n/r));return t===(0|t)&&e.push(t),e.sort((i,s)=>i-s).pop(),e}(r);for(let o=0,a=s.length-1;o<a;o++){const l=s[o];if(l>i)return l}return Math.max(i,1)}(s,e,i);if(o>0){let d,f;const _=o>1?Math.round((l-a)/(o-1)):null;for(BR(e,c,u,Jn(_)?0:a-_,a),d=0,f=o-1;d<f;d++)BR(e,c,u,s[d],s[d+1]);return BR(e,c,u,l,Jn(_)?e.length:l+_),c}return BR(e,c,u),c}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,r,e=this.options.reverse;this.isHorizontal()?(t=this.left,r=this.right):(t=this.top,r=this.bottom,e=!e),this._startPixel=t,this._endPixel=r,this._reversePixels=e,this._length=r-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Xr(this.options.afterUpdate,[this])}beforeSetDimensions(){Xr(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Xr(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Xr(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Xr(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let r,i,s;for(r=0,i=e.length;r<i;r++)s=e[r],s.label=Xr(t.callback,[s.value,r,e],this)}afterTickToLabelConversion(){Xr(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Xr(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,r=Jue(this.ticks.length,e.ticks.maxTicksLimit),i=t.minRotation||0,s=t.maxRotation;let a,l,c,o=i;if(!this._isVisible()||!t.display||i>=s||r<=1||!this.isHorizontal())return void(this.labelRotation=i);const u=this._getLabelSizes(),d=u.widest.width,f=u.highest.height,_=to(this.chart.width-d,0,this.maxWidth);a=e.offset?this.maxWidth/r:_/(r-1),d+6>a&&(a=_/(r-(e.offset?.5:1)),l=this.maxHeight-sC(e.grid)-t.padding-Zue(e.title,this.chart.options.font),c=Math.sqrt(d*d+f*f),o=P3(Math.min(Math.asin(to((u.highest.height+6)/a,-1,1)),Math.asin(to(l/c,-1,1))-Math.asin(to(f/c,-1,1)))),o=Math.max(i,Math.min(s,o))),this.labelRotation=o}afterCalculateLabelRotation(){Xr(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Xr(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:r,title:i,grid:s}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const l=Zue(i,t.options.font);if(a?(e.width=this.maxWidth,e.height=sC(s)+l):(e.height=this.maxHeight,e.width=sC(s)+l),r.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:f}=this._getLabelSizes(),_=2*r.padding,w=Kc(this.labelRotation),M=Math.cos(w),S=Math.sin(w);a?e.height=Math.min(this.maxHeight,e.height+(r.mirror?0:S*d.width+M*f.height)+_):e.width=Math.min(this.maxWidth,e.width+(r.mirror?0:M*d.width+S*f.height)+_),this._calculatePadding(c,u,S,M)}}this._handleMargins(),a?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}
vendor: 14,389 bytes, line 1
1_calculatePadding(e,t,r,i){const{ticks:{align:s,padding:o},position:a}=this.options,l=0!==this.labelRotation,c="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,_=0;l?c?(f=i*e.width,_=r*t.height):(f=r*e.height,_=i*t.width):"start"===s?_=t.width:"end"===s?f=e.width:"inner"!==s&&(f=e.width/2,_=t.width/2),this.paddingLeft=Math.max((f-u+o)*this.width/(this.width-u),0),this.paddingRight=Math.max((_-d+o)*this.width/(this.width-d),0)}else{let u=t.height/2,d=e.height/2;"start"===s?(u=0,d=e.height):"end"===s&&(u=t.height,d=0),this.paddingTop=u+o,this.paddingBottom=d+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Xr(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,r;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,r=e.length;t<r;t++)Jn(e[t].label)&&(e.splice(t,1),r--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let r=this.ticks;t<r.length&&(r=Xue(r,t)),this._labelSizes=e=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,t,r){const{ctx:i,_longestTextCache:s}=this,o=[],a=[],l=Math.floor(t/Jue(t,r));let d,f,_,w,M,S,O,N,j,Z,ie,c=0,u=0;for(d=0;d<t;d+=l){if(w=e[d].label,M=this._resolveTickFontOptions(d),i.font=S=M.string,O=s[S]=s[S]||{data:{},gc:[]},N=M.lineHeight,j=Z=0,Jn(w)||gi(w)){if(gi(w))for(f=0,_=w.length;f<_;++f)ie=w[f],!Jn(ie)&&!gi(ie)&&(j=PR(i,O.data,O.gc,j,ie),Z+=N)}else j=PR(i,O.data,O.gc,j,w),Z=N;o.push(j),a.push(Z),c=Math.max(j,c),u=Math.max(Z,u)}!function Rze(n,e){Er(n,t=>{const r=t.gc,i=r.length/2;let s;if(i>e){for(s=0;s<i;++s)delete t.data[r[s]];r.splice(0,i)}})}(s,t);const le=o.indexOf(c),Q=a.indexOf(u),B=J=>({width:o[J]||0,height:a[J]||0});return{first:B(0),last:B(t-1),widest:B(le),highest:B(Q),widths:o,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return function y5e(n){return to(n,-32768,32767)}(this._alignToPixels?M_(this.chart,t,0):t)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const r=t[e];return r.$context||(r.$context=function Oze(n,e,t){return xp(n,{tick:t,index:e,type:"tick"})}(this.getContext(),e,r))}return this.$context||(this.$context=function Lze(n,e){return xp(n,{scale:e,type:"scale"})}(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,t=Kc(this.labelRotation),r=Math.abs(Math.cos(t)),i=Math.abs(Math.sin(t)),s=this._getLabelSizes(),o=e.autoSkipPadding||0,a=s?s.widest.width+o:0,l=s?s.highest.height+o:0;return this.isHorizontal()?l*r>a*i?a/r:l/i:l*i<a*r?l/r:a/i}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,r=this.chart,i=this.options,{grid:s,position:o,border:a}=i,l=s.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=sC(s),_=[],w=a.setContext(this.getContext()),M=w.display?w.width:0,S=M/2,O=function(it){return M_(r,it,M)};let N,j,Z,ie,le,Q,B,J,oe,ce,he,se;if("top"===o)N=O(this.bottom),Q=this.bottom-f,J=N-S,ce=O(e.top)+S,se=e.bottom;else if("bottom"===o)N=O(this.top),ce=e.top,se=O(e.bottom)-S,Q=N+S,J=this.top+f;else if("left"===o)N=O(this.right),le=this.right-f,B=N-S,oe=O(e.left)+S,he=e.right;else if("right"===o)N=O(this.left),oe=e.left,he=O(e.right)-S,le=N+S,B=this.left+f;else if("x"===t){if("center"===o)N=O((e.top+e.bottom)/2+.5);else if(Vn(o)){const it=Object.keys(o)[0];N=O(this.chart.scales[it].getPixelForValue(o[it]))}ce=e.top,se=e.bottom,Q=N+S,J=Q+f}else if("y"===t){if("center"===o)N=O((e.left+e.right)/2);else if(Vn(o)){const it=Object.keys(o)[0];N=O(this.chart.scales[it].getPixelForValue(o[it]))}le=N-S,B=le-f,oe=e.left,he=e.right}const ti=_n(i.ticks.maxTicksLimit,d),xn=Math.max(1,Math.ceil(d/ti));for(j=0;j<d;j+=xn){const it=this.getContext(j),ct=s.setContext(it),kt=a.setContext(it),$t=ct.lineWidth,Or=ct.color,bo=kt.dash||[],Mr=kt.dashOffset,ur=ct.tickWidth,Xn=ct.tickColor,Qa=ct.tickBorderDash||[],tu=ct.tickBorderDashOffset;Z=Pze(this,j,l),void 0!==Z&&(ie=M_(r,Z,$t),c?le=B=oe=he=ie:Q=J=ce=se=ie,_.push({tx1:le,ty1:Q,tx2:B,ty2:J,x1:oe,y1:ce,x2:he,y2:se,width:$t,color:Or,borderDash:bo,borderDashOffset:Mr,tickWidth:ur,tickColor:Xn,tickBorderDash:Qa,tickBorderDashOffset:tu}))}return this._ticksLength=d,this._borderValue=N,_}_computeLabelItems(e){const t=this.axis,r=this.options,{position:i,ticks:s}=r,o=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:u,mirror:d}=s,f=sC(r.grid),_=f+u,w=d?-u:_,M=-Kc(this.labelRotation),S=[];let O,N,j,Z,ie,le,Q,B,J,oe,ce,he,se="middle";if("top"===i)le=this.bottom-w,Q=this._getXAxisLabelAlignment();else if("bottom"===i)le=this.top+w,Q=this._getXAxisLabelAlignment();else if("left"===i){const xn=this._getYAxisLabelAlignment(f);Q=xn.textAlign,ie=xn.x}else if("right"===i){const xn=this._getYAxisLabelAlignment(f);Q=xn.textAlign,ie=xn.x}else if("x"===t){if("center"===i)le=(e.top+e.bottom)/2+_;else if(Vn(i)){const xn=Object.keys(i)[0];le=this.chart.scales[xn].getPixelForValue(i[xn])+_}Q=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===i)ie=(e.left+e.right)/2-_;else if(Vn(i)){const xn=Object.keys(i)[0];ie=this.chart.scales[xn].getPixelForValue(i[xn])}Q=this._getYAxisLabelAlignment(f).textAlign}"y"===t&&("start"===l?se="top":"end"===l&&(se="bottom"));const ti=this._getLabelSizes();for(O=0,N=a.length;O<N;++O){j=a[O],Z=j.label;const xn=s.setContext(this.getContext(O));B=this.getPixelForTick(O)+s.labelOffset,J=this._resolveTickFontOptions(O),oe=J.lineHeight,ce=gi(Z)?Z.length:1;const it=ce/2,ct=xn.color,kt=xn.textStrokeColor,$t=xn.textStrokeWidth;let bo,Or=Q;if(o?(ie=B,"inner"===Q&&(Or=O===N-1?this.options.reverse?"left":"right":0===O?this.options.reverse?"right":"left":"center"),he="top"===i?"near"===c||0!==M?-ce*oe+oe/2:"center"===c?-ti.highest.height/2-it*oe+oe:oe/2-ti.highest.height:"near"===c||0!==M?oe/2:"center"===c?ti.highest.height/2-it*oe:ti.highest.height-ce*oe,d&&(he*=-1),0!==M&&!xn.showLabelBackdrop&&(ie+=oe/2*Math.sin(M))):(le=B,he=(1-ce)*oe/2),xn.showLabelBackdrop){const Mr=$o(xn.backdropPadding),ur=ti.heights[O],Xn=ti.widths[O];let Qa=he-Mr.top,tu=0-Mr.left;switch(se){case"middle":Qa-=ur/2;break;case"bottom":Qa-=ur}switch(Q){case"center":tu-=Xn/2;break;case"right":tu-=Xn;break;case"inner":O===N-1?tu-=Xn:O>0&&(tu-=Xn/2)}bo={left:tu,top:Qa,width:Xn+Mr.width,height:ur+Mr.height,color:xn.backdropColor}}S.push({label:Z,font:J,textOffset:he,options:{rotation:M,color:ct,strokeColor:kt,strokeWidth:$t,textAlign:Or,textBaseline:se,translation:[ie,le],backdrop:bo}})}return S}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-Kc(this.labelRotation))return"top"===e?"left":"right";let i="center";return"start"===t.align?i="left":"end"===t.align?i="right":"inner"===t.align&&(i="inner"),i}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:r,mirror:i,padding:s}}=this.options,a=e+s,l=this._getLabelSizes().widest.width;let c,u;return"left"===t?i?(u=this.right+s,"near"===r?c="left":"center"===r?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,"near"===r?c="right":"center"===r?(c="center",u-=l/2):(c="left",u=this.left)):"right"===t?i?(u=this.left+s,"near"===r?c="right":"center"===r?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,"near"===r?c="left":"center"===r?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:r,top:i,width:s,height:o}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(r,i,s,o),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const i=this.ticks.findIndex(s=>s.value===e);return i>=0?t.setContext(this.getContext(i)).lineWidth:0}drawGrid(e){const t=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let s,o;const a=(l,c,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(t.display)for(s=0,o=i.length;s<o;++s){const l=i[s];t.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),t.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{border:r,grid:i}}=this,s=r.setContext(this.getContext()),o=r.display?s.width:0;if(!o)return;const a=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,u,d,f;this.isHorizontal()?(c=M_(e,this.left,o)-o/2,u=M_(e,this.right,a)+a/2,d=f=l):(d=M_(e,this.top,o)-o/2,f=M_(e,this.bottom,a)+a/2,c=u=l),t.save(),t.lineWidth=s.width,t.strokeStyle=s.color,t.beginPath(),t.moveTo(c,d),t.lineTo(u,f),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&RR(r,i);const s=this.getLabelItems(e);for(const o of s)I_(r,o.label,0,o.textOffset,o.font,o.options);i&&LR(r)}drawTitle(){const{ctx:e,options:{position:t,title:r,reverse:i}}=this;if(!r.display)return;const s=Vs(r.font),o=$o(r.padding),a=r.align;let l=s.lineHeight/2;"bottom"===t||"center"===t||Vn(t)?(l+=o.bottom,gi(r.text)&&(l+=s.lineHeight*(r.text.length-1))):l+=o.top;const{titleX:c,titleY:u,maxWidth:d,rotation:f}=function Fze(n,e,t,r){const{top:i,left:s,bottom:o,right:a,chart:l}=n,{chartArea:c,scales:u}=l;let f,_,w,d=0;const M=o-i,S=a-s;if(n.isHorizontal()){if(_=zo(r,s,a),Vn(t)){const O=Object.keys(t)[0];w=u[O].getPixelForValue(t[O])+M-e}else w="center"===t?(c.bottom+c.top)/2+M-e:Que(n,t,e);f=a-s}else{if(Vn(t)){const O=Object.keys(t)[0];_=u[O].getPixelForValue(t[O])-S+e}else _="center"===t?(c.left+c.right)/2-S+e:Que(n,t,e);w=zo(r,o,i),d="left"===t?-ms:ms}return{titleX:_,titleY:w,maxWidth:f,rotation:d}}(this,l,t,a);I_(e,r.text,0,0,s,{color:r.color,maxWidth:d,rotation:f,textAlign:Nze(a,t,i),textBaseline:"middle",translation:[c,u]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,r=_n(e.grid&&e.grid.z,-1),i=_n(e.border&&e.border.z,0);return this._isVisible()&&this.draw===k_.prototype.draw?[{z:r,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:t,draw:s=>{this.drawLabels(s)}}]:[{z:t,draw:s=>{this.draw(s)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let s,o;for(s=0,o=t.length;s<o;++s){const a=t[s];a[r]===this.id&&(!e||a.type===e)&&i.push(a)}return i}_resolveTickFontOptions(e){return Vs(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class HR{constructor(e,t,r){this.type=e,this.scope=t,this.override=r,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let r;(function jze(n){return"id"in n&&"defaults"in n})(t)&&(r=this.register(t));const i=this.items,s=e.id,o=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+e);return s in i||(i[s]=e,function Vze(n,e,t){const r=HD(Object.create(null),[t?Vi.get(t):{},Vi.get(e),n.defaults]);Vi.set(e,r),n.defaultRoutes&&function Uze(n,e){Object.keys(e).forEach(t=>{const r=t.split("."),i=r.pop(),s=[n].concat(r).join("."),o=e[t].split("."),a=o.pop(),l=o.join(".");Vi.route(s,i,l,a)})}(e,n.defaultRoutes),n.descriptors&&Vi.describe(e,n.descriptors)}(e,o,r),this.override&&Vi.override(e.id,e.overrides)),o}get(e){return this.items[e]}unregister(e){const t=this.items,r=e.id,i=this.scope;r in t&&delete t[r],i&&r in Vi[i]&&(delete Vi[i][r],this.override&&delete E_[r])}}class Yze{constructor(){this.controllers=new HR(kp,"datasets",!0),this.elements=new HR(Ih,"elements"),this.plugins=new HR(Object,"plugins"),this.scales=new HR(k_,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,r){[...t].forEach(i=>{const s=r||this._getRegistryForType(i);r||s.isForType(i)||s===this.plugins&&i.id?this._exec(e,s,i):Er(i,o=>{const a=r||this._getRegistryForType(o);this._exec(e,a,o)})})}_exec(e,t,r){const i=k3(e);Xr(r["before"+i],[],r),t[e](r),Xr(r["after"+i],[],r)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const r=this._typedRegistries[t];
vendor: 5,070 bytes, line 1
1if(r.isForType(e))return r}return this.plugins}_get(e,t,r){const i=t.get(e);if(void 0===i)throw new Error('"'+e+'" is not a registered '+r+".");return i}}var ld=new Yze;class Bze{constructor(){this._init=[]}notify(e,t,r,i){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const s=i?this._descriptors(e).filter(i):this._descriptors(e),o=this._notify(s,e,t,r);return"afterDestroy"===t&&(this._notify(s,e,"stop"),this._notify(this._init,e,"uninstall")),o}_notify(e,t,r,i){i=i||{};for(const s of e){const o=s.plugin;if(!1===Xr(o[r],[t,i,s.options],o)&&i.cancelable)return!1}return!0}invalidate(){Jn(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const r=e&&e.config,i=_n(r.options&&r.options.plugins,{}),s=function Hze(n){const e={},t=[],r=Object.keys(ld.plugins.items);for(let s=0;s<r.length;s++)t.push(ld.getPlugin(r[s]));const i=n.plugins||[];for(let s=0;s<i.length;s++){const o=i[s];-1===t.indexOf(o)&&(t.push(o),e[o.id]=!0)}return{plugins:t,localIds:e}}(r);return!1!==i||t?function $ze(n,{plugins:e,localIds:t},r,i){const s=[],o=n.getContext();for(const a of e){const l=a.id,c=zze(r[l],i);null!==c&&s.push({plugin:a,options:qze(n.config,{plugin:a,local:t[l]},c,o)})}return s}(e,s,i,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],r=this._cache,i=(s,o)=>s.filter(a=>!o.some(l=>a.plugin.id===l.plugin.id));this._notify(i(t,r),e,"stop"),this._notify(i(r,t),e,"start")}}function zze(n,e){return e||!1!==n?!0===n?{}:n:null}function qze(n,{plugin:e,local:t},r,i){const s=n.pluginScopeKeys(e),o=n.getOptionScopes(r,s);return t&&e.defaults&&o.push(e.defaults),n.createResolver(o,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function t5(n,e){return((e.datasets||{})[n]||{}).indexAxis||e.indexAxis||(Vi.datasets[n]||{}).indexAxis||"x"}function ede(n){if("x"===n||"y"===n||"r"===n)return n}function Kze(n){return"top"===n||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0}function n5(n,...e){if(ede(n))return n;for(const t of e){const r=t.axis||Kze(t.position)||n.length>1&&ede(n[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${n}' axis. Please provide 'axis' or 'position' option.`)}function tde(n,e,t){if(t[e+"AxisID"]===n)return{axis:e}}function nde(n){const e=n.options||(n.options={});e.plugins=_n(e.plugins,{}),e.scales=function Jze(n,e){const t=E_[n.type]||{scales:{}},r=e.scales||{},i=t5(n.type,e),s=Object.create(null);return Object.keys(r).forEach(o=>{const a=r[o];if(!Vn(a))return console.error(`Invalid scale configuration for scale: ${o}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=n5(o,a,function Qze(n,e){if(e.data&&e.data.datasets){const t=e.data.datasets.filter(r=>r.xAxisID===n||r.yAxisID===n);if(t.length)return tde(n,"x",t[0])||tde(n,"y",t[0])}return{}}(o,n),Vi.scales[a.type]),c=function Gze(n,e){return n===e?"_index_":"_value_"}(l,i),u=t.scales||{};s[o]=zD(Object.create(null),[{axis:l},a,u[l],u[c]])}),n.data.datasets.forEach(o=>{const a=o.type||n.type,l=o.indexAxis||t5(a,e),u=(E_[a]||{}).scales||{};Object.keys(u).forEach(d=>{const f=function Wze(n,e){let t=n;return"_index_"===n?t=e:"_value_"===n&&(t="x"===e?"y":"x"),t}(d,l),_=o[f+"AxisID"]||f;s[_]=s[_]||Object.create(null),zD(s[_],[{axis:f},r[_],u[d]])})}),Object.keys(s).forEach(o=>{const a=s[o];zD(a,[Vi.scales[a.type],Vi.scale])}),s}(n,e)}function rde(n){return(n=n||{}).datasets=n.datasets||[],n.labels=n.labels||[],n}const ide=new Map,sde=new Set;function zR(n,e){let t=ide.get(n);return t||(t=e(),ide.set(n,t),sde.add(t)),t}const oC=(n,e,t)=>{const r=Cp(e,t);void 0!==r&&n.add(r)};class Zze{constructor(e){this._config=function Xze(n){return(n=n||{}).data=rde(n.data),nde(n),n}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=rde(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),nde(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return zR(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,t){return zR(`${e}.transition.${t}`,()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,t){return zR(`${e}-${t}`,()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]])}pluginScopeKeys(e){const t=e.id;return zR(`${this.type}-plugin-${t}`,()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,t){const r=this._scopeCache;let i=r.get(e);return(!i||t)&&(i=new Map,r.set(e,i)),i}getOptionScopes(e,t,r){const{options:i,type:s}=this,o=this._cachedScopes(e,r),a=o.get(t);if(a)return a;const l=new Set;t.forEach(u=>{e&&(l.add(e),u.forEach(d=>
1oC(l,e,d))),u.forEach(d=>oC(l,i,d)),u.forEach(d=>oC(l,E_[s]||{},d)),u.forEach(d=>oC(l,Vi,d)),u.forEach(d=>oC(l,V3,d))});const c=Array.from(l);return 0===c.length&&c.push(Object.create(null)),sde.has(t)&&o.set(t,c),c}chartOptionScopes(){const{options:e,type:t}=this;return[e,E_[t]||{},Vi.datasets[t]||{},{type:t},Vi,V3]}resolveNamedOptions(e,t,r,i=[""]){const s={$shared:!0},{resolver:o,subPrefixes:a}=ode(this._resolverCache,e,i);let l=o;(function t$e(n,e){const{isScriptable:t,isIndexable:r}=aue(n);for(const i of e){const s=t(i),o=r(i),a=(o||s)&&n[i];if(s&&(Sp(a)||e$e(a))||o&&gi(a))return!0}return!1})(o,t)&&(s.$shared=!1,l=cb(o,r=Sp(r)?r():r,this.createResolver(e,r,a)));for(const c of t)s[c]=l[c];return s}createResolver(e,t,r=[""],i){const{resolver:s}=ode(this._resolverCache,e,r);return Vn(t)?cb(s,t,void 0,i):s}}function ode(n,e,t){let r=n.get(e);r||(r=new Map,n.set(e,r));const i=t.join();let s=r.get(i);return s||(s={resolver:B3(e,t),subPrefixes:t.filter(a=>!a.toLowerCase().includes("hover"))},r.set(i,s)),s}const e$e=n=>Vn(n)&&Object.getOwnPropertyNames(n).some(e=>Sp(n[e])),r$e=["top","bottom","left","right","chartArea"];function ade(n,e){return"top"===n||"bottom"===n||-1===r$e.indexOf(n)&&"x"===e}function lde(n,e){return function(t,r){return t[n]===r[n]?t[e]-r[e]:t[n]-r[n]}}function cde(n){const e=n.chart,t=e.options.animation;e.notifyPlugins("afterRender"),Xr(t&&t.onComplete,[n],e)}function i$e(n){const e=n.chart,t=e.options.animation;Xr(t&&t.onProgress,[n],e)}function ude(n){return $3()&&"string"==typeof n?n=document.getElementById(n):n&&n.length&&(n=n[0]),n&&n.canvas&&(n=n.canvas),n}const $R={},dde=n=>{const e=ude(n);return Object.values($R).filter(t=>t.canvas===e).pop()};function s$e(n,e,t){const r=Object.keys(n);for(const i of r){const s=+i;if(s>=e){const o=n[i];delete n[i],(t>0||s>e)&&(n[s+t]=o)}}}function qR(n,e,t){return n.options.clip?n[t]:e[t]}let P_=(()=>class n{static defaults=Vi;static instances=$R;static overrides=E_;static registry=ld;static version="4.4.3";static getChart=dde;static register(...t){ld.add(...t),hde()}static unregister(...t){ld.remove(...t),hde()}constructor(t,r){const i=this.config=new Zze(r),s=ude(t),o=dde(s);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function Mze(n){return!$3()||typeof OffscreenCanvas<"u"&&n instanceof OffscreenCanvas?dze:Eze}(s)),this.platform.updateConfig(i);const l=this.platform.acquireContext(s,a.aspectRatio),c=l&&l.canvas,u=c&&c.height,d=c&&c.width;this.id=o5e(),this.ctx=l,this.canvas=c,this.width=d,this.height=u,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Bze,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function T5e(n,e){let t;return function(...r){return e?(clearTimeout(t),t=setTimeout(n,e,r)):n.apply(this,r),e}}(f=>this.update(f),a.resizeDelay||0),this._dataChanges=[],$R[this.id]=this,l&&c?(Mh.listen(this,"complete",cde),Mh.listen(this,"progress",i$e),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:r},width:i,height:s,_aspectRatio:o}=this;return Jn(t)?r&&o?o:s?i/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return ld}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():mue(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return iue(this.canvas,this.ctx),this}stop(){return Mh.stop(this),this}resize(t,r){Mh.running(this)?this._resizeBeforeDraw={width:t,height:r}:this._resize(t,r)}_resize(t,r){const i=this.options,a=this.platform.getMaximumSize(this.canvas,t,r,i.maintainAspectRatio&&this.aspectRatio),l=i.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,mue(this,l,!0)&&(this.notifyPlugins("resize",{size:a}),Xr(i.onResize,[this,a],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){Er(this.options.scales||{},(i,s)=>{i.id=s})}buildOrUpdateScales(){const t=this.options,r=t.scales,i=this.scales,s=Object.keys(i).reduce((a,l)=>(a[l]=!1,a),{});let o=[];r&&(o=o.concat(Object.keys(r).map(a=>{const l=r[a],c=n5(a,l),u="r"===c,d="x"===c;return{options:l,dposition:u?"chartArea":d?"bottom":"left",dtype:u?"radialLinear":d?"category":"linear"}}))),Er(o,a=>{const l=a.options,c=l.id,u=n5(c,l),d=_n(l.type,a.dtype);(void 0===l.position||ade(l.position,u)!==ade(a.dposition))&&(l.position=a.dposition),s[c]=!0;let f=null;c in i&&i[c].type===d?f=i[c]:(f=new(ld.getScale(d))({id:c,type:d,ctx:this.ctx,
vendor: 12,936 bytes, line 1
1chart:this}),i[f.id]=f),f.init(l,t)}),Er(s,(a,l)=>{a||delete i[l]}),Er(i,a=>{qo.configure(this,a,a.options),qo.addBox(this,a)})}_updateMetasets(){const t=this._metasets,r=this.data.datasets.length,i=t.length;if(t.sort((s,o)=>s.index-o.index),i>r){for(let s=r;s<i;++s)this._destroyDatasetMeta(s);t.splice(r,i-r)}this._sortedMetasets=t.slice(0).sort(lde("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:r}}=this;t.length>r.length&&delete this._stacks,t.forEach((i,s)=>{0===r.filter(o=>o===i._dataset).length&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const t=[],r=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=r.length;i<s;i++){const o=r[i];let a=this.getDatasetMeta(i);const l=o.type||this.config.type;if(a.type&&a.type!==l&&(this._destroyDatasetMeta(i),a=this.getDatasetMeta(i)),a.type=l,a.indexAxis=o.indexAxis||t5(l,this.options),a.order=o.order||0,a.index=i,a.label=""+o.label,a.visible=this.isDatasetVisible(i),a.controller)a.controller.updateIndex(i),a.controller.linkScales();else{const c=ld.getController(l),{datasetElementType:u,dataElementType:d}=Vi.datasets[l];Object.assign(c,{dataElementType:ld.getElement(d),datasetElementType:u&&ld.getElement(u)}),a.controller=new c(this,i),t.push(a.controller)}}return this._updateMetasets(),t}_resetElements(){Er(this.data.datasets,(t,r)=>{this.getDatasetMeta(r).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const r=this.config;r.update();const i=this._options=r.createResolver(r.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let u=0,d=this.data.datasets.length;u<d;u++){const{controller:f}=this.getDatasetMeta(u),_=!s&&-1===o.indexOf(f);f.buildOrUpdateElements(_),a=Math.max(+f.getMaxOverflow(),a)}a=this._minPadding=i.layout.autoPadding?a:0,this._updateLayout(a),s||Er(o,u=>{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(lde("z","_idx"));const{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){Er(this.scales,t=>{qo.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,r=new Set(Object.keys(this._listeners)),i=new Set(t.events);(!jce(r,i)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,r=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:o}of r)s$e(t,s,"_removeElements"===i?-o:o)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const r=this.data.datasets.length,i=o=>new Set(t.filter(a=>a[0]===o).map((a,l)=>l+","+a.splice(1).join(","))),s=i(0);for(let o=1;o<r;o++)if(!jce(s,i(o)))return;return Array.from(s).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;qo.update(this,this.width,this.height,t);const r=this.chartArea,i=r.width<=0||r.height<=0;this._layers=[],Er(this.boxes,s=>{i&&"chartArea"===s.position||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,o)=>{s._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let r=0,i=this.data.datasets.length;r<i;++r)this.getDatasetMeta(r).controller.configure();for(let r=0,i=this.data.datasets.length;r<i;++r)this._updateDataset(r,Sp(t)?t({datasetIndex:r}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,r){const i=this.getDatasetMeta(t),s={meta:i,index:t,mode:r,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",s)&&(i.controller._update(r),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Mh.has(this)?this.attached&&!Mh.running(this)&&Mh.start(this):(this.draw(),cde({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:i,height:s}=this._resizeBeforeDraw;this._resize(i,s),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const r=this._layers;for(t=0;t<r.length&&r[t].z<=0;++t)r[t].draw(this.chartArea);for(this._drawDatasets();t<r.length;++t)r[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const r=this._sortedMetasets,i=[];let s,o;for(s=0,o=r.length;s<o;++s){const a=r[s];(!t||a.visible)&&i.push(a)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let r=t.length-1;r>=0;--r)this._drawDataset(t[r]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const r=this.ctx,i=t._clip,s=!i.disabled,o=function a$e(n,e){const{xScale:t,yScale:r}=n;return t&&r?{left:qR(t,e,"left"),right:qR(t,e,"right"),top:qR(r,e,"top"),bottom:qR(r,e,"bottom")}:e}(t,this.chartArea),a={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(s&&RR(r,{left:!1===i.left?0:o.left-i.left,right:!1===i.right?this.width:o.right+i.right,top:!1===i.top?0:o.top-i.top,bottom:!1===i.bottom?this.height:o.bottom+i.bottom}),t.controller.draw(),s&&LR(r),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return Eh(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,r,i,s){const o=rze.modes[r];return"function"==typeof o?o(this,t,i,s):[]}getDatasetMeta(t){const r=this.data.datasets[t],i=this._metasets;let s=i.filter(o=>o&&o._dataset===r).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:r&&r.order||0,index:t,_dataset:r,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=xp(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const r=this.data.datasets[t];if(!r)return!1;const i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.hidden:!r.hidden}setDatasetVisibility(t,r){this.getDatasetMeta(t).hidden=!r}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,r,i){const s=i?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,s);$D(r)?(o.data[r].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),a.update(o,{visible:i}),this.update(l=>l.datasetIndex===t?s:void 0))}hide(t,r){this._updateVisibility(t,r,!1)}show(t,r){this._updateVisibility(t,r,!0)}_destroyDatasetMeta(t){const r=this._metasets[t];r&&r.controller&&r.controller._destroy(),delete this._metasets[t]}_stop(){let t,r;for(this.stop(),Mh.remove(this),t=0,r=this.data.datasets.length;t<r;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:r}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),iue(t,r),this.platform.releaseContext(r),this.canvas=null,this.ctx=null),delete $R[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,r=this.platform,i=(o,a)=>{r.addEventListener(this,o,a),t[o]=a},s=(o,a,l)=>{o.offsetX=a,o.offsetY=l,this._eventHandler(o)};Er(this.options.events,o=>i(o,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,r=this.platform,i=(c,u)=>{r.addEventListener(this,c,u),t[c]=u},s=(c,u)=>{t[c]&&(r.removeEventListener(this,c,u),delete t[c])},o=(c,u)=>{this.canvas&&this.resize(c,u)};let a;const l=()=>{s("attach",l),this.attached=!0,this.resize(),i("resize",o),i("detach",a)};a=()=>{this.attached=!1,s("resize",o),this._stop(),this._resize(0,0),i("attach",l)},r.isAttached(this.canvas)?l():a()}unbindEvents(){Er(this._listeners,(t,r)=>{this.platform.removeEventListener(this,r,t)}),this._listeners={},Er(this._responsiveListeners,(t,r)=>{this.platform.removeEventListener(this,r,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,r,i){const s=i?"set":"remove";let o,a,l,c;for("dataset"===r&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+s+"DatasetHoverStyle"]()),l=0,c=t.length;l<c;++l){a=t[l];const u=a&&this.getDatasetMeta(a.datasetIndex).controller;u&&u[s+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const r=this._active||[],i=t.map(({datasetIndex:o,index:a})=>{const l=this.getDatasetMeta(o);if(!l)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:l.data[a],index:a}});!CR(i,r)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,r))}notifyPlugins(t,r,i){return this._plugins.notify(this,t,r,i)}isPluginEnabled(t){return 1===this._plugins._cache.filter(r=>r.plugin.id===t).length}_updateHoverStyles(t,r,i){const s=this.options.hover,o=(c,u)=>c.filter(d=>!u.some(f=>d.datasetIndex===f.datasetIndex&&d.index===f.index)),a=o(r,t),l=i?t:o(t,r);a.length&&this.updateHoverStyle(a,s.mode,!1),l.length&&s.mode&&this.updateHoverStyle(l,s.mode,!0)}_eventHandler(t,r){const i={event:t,replay:r,cancelable:!0,inChartArea:this.isPointInArea(t)},s=a=>(a.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,s))return;const o=this._handleEvent(t,r,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(o||i.changed)&&this.render(),this}_handleEvent(t,r,i){const{_active:s=[],options:o}=this,l=this._getActiveElements(t,s,i,r),c=function h5e(n){return"mouseup"===n.type||"click"===n.type||"contextmenu"===n.type}(t),u=function o$e(n,e,t,r){return t&&"mouseout"!==n.type?r?e:n:null}(t,this._lastEvent,i,c);i&&(this._lastEvent=null,Xr(o.onHover,[t,l,this],this),c&&Xr(o.onClick,[t,l,this],this));const d=!CR(l,s);return(d||r)&&(this._active=l,this._updateHoverStyles(l,s,r)),this._lastEvent=u,d}_getActiveElements(t,r,i,s){if("mouseout"===t.type)return[];if(!i)return r;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,s)}})();function hde(){return Er(P_.instances,n=>n._plugins.invalidate())}function hb(n,e,t,r){return{x:t+n*Math.cos(e),y:r+n*Math.sin(e)}}function WR(n,e,t,r,i,s){const{x:o,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=e,d=Math.max(e.outerRadius+r+t-c,0),f=u>0?u+r+t+c:0;let _=0;const w=i-l;if(r){const ct=((u>0?u-r:0)+(d>0?d-r:0))/2;_=(w-(0!==ct?w*ct/(ct+r):w))/2}const S=(w-Math.max(.001,w*d-t/_i)/d)/2,O=l+S+_,N=i-S-_,{outerStart:j,outerEnd:Z,innerStart:ie,innerEnd:le}=function u$e(n,e,t,r){const i=function c$e(n){return Y3(n,["outerStart","outerEnd","innerStart","innerEnd"])}(n.options.borderRadius),s=(t-e)/2,o=Math.min(s,r*e/2),a=l=>{const c=(t-Math.min(s,l))*r/2;return to(l,0,Math.min(s,c))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:to(i.innerStart,0,o),innerEnd:to(i.innerEnd,0,o)}}(e,f,d,N-O),Q=d-j,B=d-Z,J=O+j/Q,oe=N-Z/B,ce=f+ie,he=f+le,se=O+ie/ce,ti=N-le/he;if(n.beginPath(),s){const xn=(J+oe)/2;if(n.arc(o,a,d,J,xn),n.arc(o,a,d,xn,oe),Z>0){const $t=hb(B,oe,o,a);n.arc($t.x,$t.y,Z,oe,N+ms)}const it=hb(he,N,o,a);if(n.lineTo(it.x,it.y),le>0){const $t=hb(he,ti,o,a);n.arc($t.x,$t.y,le,N+ms,ti+Math.PI)}const ct=(N-le/f+(O+ie/f))/2;if(n.arc(o,a,f,N-le/f,ct,!0),n.arc(o,a,f,ct,O+ie/f,!0),ie>0){const $t=hb(ce,se,o,a);n.arc($t.x,$t.y,ie,se+Math.PI,O-ms)}const kt=hb(Q,O,o,a);if(n.lineTo(kt.x,kt.y),j>0){const $t=hb(Q,J,o,a);n.arc($t.x,$t.y,j,O-ms,J)}}else{n.moveTo(o,a);const xn=Math.cos(J)*d+o,it=Math.sin(J)*d+a;n.lineTo(xn,it);const ct=Math.cos(oe)*d+o,kt=Math.sin(oe)*d+a;n.lineTo(ct,kt)}n.closePath()}function fde(n,e,t=e){n.lineCap=_n(t.borderCapStyle,e.borderCapStyle),n.setLineDash(_n(t.borderDash,e.borderDash)),n.lineDashOffset=_n(t.borderDashOffset,e.borderDashOffset),n.lineJoin=_n(t.borderJoinStyle,e.borderJoinStyle),n.lineWidth=_n(t.borderWidth,e.borderWidth),n.strokeStyle=_n(t.borderColor,e.borderColor)}function p$e(n,e,t){n.lineTo(t.x,t.y)}function pde(n,e,t={}){const r=n.length,{start:i=0,end:s=r-1}=t,{start:o,end:a}=e,l=Math.max(i,o),c=Math.min(s,a);return{count:r,start:l,loop:e.loop,ilen:c<l&&!(i<o&&s<o||i>a&&s>a)?r+c-l:c-l}}function g$e(n,e,t,r){const{points:i,options:s}=e,{count:o,start:a,loop:l,ilen:c}=pde(i,t,r),u=function m$e(n){return n.stepped?L5e:n.tension||"monotone"===n.cubicInterpolationMode?O5e:p$e}(s);let _,w,M,{move:d=!0,reverse:f}=r||{};for(_=0;_<=c;
vendor: 4,358 bytes, line 1
1++_)w=i[(a+(f?c-_:_))%o],!w.skip&&(d?(n.moveTo(w.x,w.y),d=!1):u(n,M,w,f,s.stepped),M=w);return l&&(w=i[(a+(f?c:0))%o],u(n,M,w,f,s.stepped)),!!l}function _$e(n,e,t,r){const i=e.points,{count:s,start:o,ilen:a}=pde(i,t,r),{move:l=!0,reverse:c}=r||{};let f,_,w,M,S,O,u=0,d=0;const N=Z=>(o+(c?a-Z:Z))%s,j=()=>{M!==S&&(n.lineTo(u,S),n.lineTo(u,M),n.lineTo(u,O))};for(l&&(_=i[N(0)],n.moveTo(_.x,_.y)),f=0;f<=a;++f){if(_=i[N(f)],_.skip)continue;const Z=_.x,ie=_.y,le=0|Z;le===w?(ie<M?M=ie:ie>S&&(S=ie),u=(d*u+Z)/++d):(j(),n.lineTo(Z,ie),w=le,d=0,M=S=ie),O=ie}j()}function r5(n){const e=n.options;return n._decimated||n._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||e.borderDash&&e.borderDash.length?g$e:_$e}const b$e="function"==typeof Path2D;let GR=(()=>class n extends Ih{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,r){const i=this.options;!i.tension&&"monotone"!==i.cubicInterpolationMode||i.stepped||this._pointsUpdated||(s6e(this._points,i,t,i.spanGaps?this._loop:this._fullLoop,r),this._pointsUpdated=!0)}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function w6e(n,e){const t=n.points,r=n.options.spanGaps,i=t.length;if(!i)return[];const s=!!n._loop,{start:o,end:a}=function y6e(n,e,t,r){let i=0,s=e-1;if(t&&!r)for(;i<e&&!n[i].skip;)i++;for(;i<e&&n[i].skip;)i++;for(i%=e,t&&(s+=i);s>i&&n[s%e].skip;)s--;return s%=e,{start:i,end:s}}(t,i,s,r);return function Eue(n,e,t,r){return r&&r.setContext&&t?function b6e(n,e,t,r){const i=n._chart.getContext(),s=Mue(n.options),{_datasetIndex:o,options:{spanGaps:a}}=n,l=t.length,c=[];let u=s,d=e[0].start,f=d;function _(w,M,S,O){const N=a?-1:1;if(w!==M){for(w+=l;t[w%l].skip;)w-=N;for(;t[M%l].skip;)M+=N;w%l!=M%l&&(c.push({start:w%l,end:M%l,loop:S,style:O}),u=O,d=M%l)}}for(const w of e){d=a?d:w.start;let S,M=t[d%l];for(f=d+1;f<=w.end;f++){const O=t[f%l];S=Mue(r.setContext(xp(i,{type:"segment",p0:M,p1:O,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:o}))),T6e(S,u)&&_(d,f-1,w.loop,u),M=O,u=S}d<f-1&&_(d,f-1,w.loop,u)}return c}(n,e,t,r):e}(n,!0===r?[{start:o,end:a,loop:s}]:function v6e(n,e,t,r){const i=n.length,s=[];let l,o=e,a=n[e];for(l=e+1;l<=t;++l){const c=n[l%i];c.skip||c.stop?a.skip||(s.push({start:e%i,end:(l-1)%i,loop:r=!1}),e=o=c.stop?l:null):(o=l,a.skip&&(e=l)),a=c}return null!==o&&s.push({start:e%i,end:o%i,loop:r}),s}(t,o,a<o?a+i:a,!!n._fullLoop&&0===o&&a===i-1),t,e)}(this,this.options.segment))}first(){const t=this.segments;return t.length&&this.points[t[0].start]}last(){const t=this.segments,i=t.length;return i&&this.points[t[i-1].end]}interpolate(t,r){const i=this.options,s=t[r],o=this.points,a=Tue(this,{property:r,start:s,end:s});if(!a.length)return;const l=[],c=function y$e(n){return n.stepped?f6e:n.tension||"monotone"===n.cubicInterpolationMode?p6e:A_}(i);let u,d;for(u=0,d=a.length;u<d;++u){const{start:f,end:_}=a[u],w=o[f],M=o[_];if(w===M){l.push(w);continue}const O=c(w,M,Math.abs((s-w[r])/(M[r]-w[r])),i.stepped);O[r]=t[r],l.push(O)}return 1===l.length?l[0]:l}pathSegment(t,r,i){return r5(this)(t,this,r,i)}path(t,r,i){const s=this.segments,o=r5(this);let a=this._loop;r=r||0,i=i||this.points.length-r;for(const l of s)a&=o(t,this,l,{start:r,end:r+i-1});return!!a}draw(t,r,i,s){(this.points||[]).length&&(this.options||{}).borderWidth&&(t.save(),function T$e(n,e,t,r){b$e&&!e.options.segment?function v$e(n,e,t,r){let i=e._path;i||(i=e._path=new Path2D,e.path(i,t,r)&&i.closePath()),fde(n,e.options),n.stroke(i)}(n,e,t,r):function w$e(n,e,t,r){const{segments:i,options:s}=e,o=r5(e);for(const a of i)fde(n,s,a.style),n.beginPath(),o(n,e,a,{start:t,end:t+r-1})&&n.closePath(),n.stroke()}(n,e,t,r)}
1(t,this,i,s),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}})();function mde(n,e,t,r){const i=n.options,{[t]:s}=n.getProps([t],r);return Math.abs(e-s)<i.radius+i.hitRadius}let E$e=(()=>class n extends Ih{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,r,i){const s=this.options,{x:o,y:a}=this.getProps(["x","y"],i);return Math.pow(t-o,2)+Math.pow(r-a,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(t,r){return mde(this,t,"x",r)}inYRange(t,r){return mde(this,t,"y",r)}getCenterPoint(t){const{x:r,y:i}=this.getProps(["x","y"],t);return{x:r,y:i}}size(t){let r=(t=t||this.options||{}).radius||0;return r=Math.max(r,r&&t.hoverRadius||0),2*(r+(r&&t.borderWidth||0))}draw(t,r){const i=this.options;this.skip||i.radius<.1||!Eh(this,r,this.size(i)/2)||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,j3(t,i,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}})();
vendor: 4,384 bytes, line 1
1function gde(n,e){const{x:t,y:r,base:i,width:s,height:o}=n.getProps(["x","y","base","width","height"],e);let a,l,c,u,d;return n.horizontal?(d=o/2,a=Math.min(t,i),l=Math.max(t,i),c=r-d,u=r+d):(d=s/2,a=t-d,l=t+d,c=Math.min(r,i),u=Math.max(r,i)),{left:a,top:c,right:l,bottom:u}}function Pp(n,e,t,r){return n?0:to(e,t,r)}function i5(n,e,t,r){const i=null===e,s=null===t,a=n&&!(i&&s)&&gde(n,r);return a&&(i||bh(e,a.left,a.right))&&(s||bh(t,a.top,a.bottom))}function S$e(n,e){n.rect(e.x,e.y,e.w,e.h)}function s5(n,e,t={}){const r=n.x!==t.x?-e:0,i=n.y!==t.y?-e:0;return{x:n.x+r,y:n.y+i,w:n.w+((n.x+n.w!==t.x+t.w?e:0)-r),h:n.h+((n.y+n.h!==t.y+t.h?e:0)-i),radius:n.radius}}var x$e=Object.freeze({__proto__:null,ArcElement:class f$e extends Ih{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,r){const i=this.getProps(["x","y"],r),{angle:s,distance:o}=$ce(i,{x:e,y:t}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:u,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),f=(this.options.spacing+this.options.borderWidth)/2,w=_n(d,l-a)>=yi||WD(s,a,l),M=bh(o,c+f,u+f);return w&&M}getCenterPoint(e){const{x:t,y:r,startAngle:i,endAngle:s,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:l,spacing:c}=this.options,u=(i+s)/2,d=(o+a+c+l)/2;return{x:t+Math.cos(u)*d,y:r+Math.sin(u)*d}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:r}=this,i=(t.offset||0)/4,s=(t.spacing||0)/2,o=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=r>yi?Math.floor(r/yi):0,0===r||this.innerRadius<0||this.outerRadius<0)return;e.save();const a=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(a)*i,Math.sin(a)*i);const c=i*(1-Math.sin(Math.min(_i,r||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,function d$e(n,e,t,r,i){const{fullCircles:s,startAngle:o,circumference:a}=e;let l=e.endAngle;if(s){WR(n,e,t,r,l,i);for(let c=0;c<s;++c)n.fill();isNaN(a)||(l=o+(a%yi||yi))}WR(n,e,t,r,l,i),n.fill()}(e,this,c,s,o),function h$e(n,e,t,r,i){const{fullCircles:s,startAngle:o,circumference:a,options:l}=e,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:f}=l,_="inner"===l.borderAlign;if(!c)return;n.setLineDash(d||[]),n.lineDashOffset=f,_?(n.lineWidth=2*c,n.lineJoin=u||"round"):(n.lineWidth=c,n.lineJoin=u||"bevel");let w=e.endAngle;if(s){WR(n,e,t,r,w,i);for(let M=0;M<s;++M)n.stroke();isNaN(a)||(w=o+(a%yi||yi))}_&&function l$e(n,e,t){const{startAngle:r,pixelMargin:i,x:s,y:o,outerRadius:a,innerRadius:l}=e;let c=i/a;n.beginPath(),n.arc(s,o,a,r-c,t+c),l>i?(c=i/l,n.arc(s,o,l,t+c,r-c,!0)):n.arc(s,o,i,t+ms,r-ms),n.closePath(),n.clip()}(n,e,w),s||(WR(n,e,t,r,w,i),n.stroke())}(e,this,c,s,o),e.restore()}},BarElement:class A$e extends Ih{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:{borderColor:r,backgroundColor:i}}=this,{inner:s,outer:o}=function D$e(n){const e=gde(n),t=e.right-e.left,r=e.bottom-e.top,i=function M$e(n,e,t){const i=n.borderSkipped,s=oue(n.options.borderWidth);return{t:Pp(i.top,s.top,0,t),r:Pp(i.right,s.right,0,e),b:Pp(i.bottom,s.bottom,0,t),l:Pp(i.left,s.left,0,e)}}(n,t/2,r/2),s=function I$e(n,e,t){const{enableBorderRadius:r}=n.getProps(["enableBorderRadius"]),i=n.options.borderRadius,s=D_(i),o=Math.min(e,t),a=n.borderSkipped,l=r||Vn(i);return{topLeft:Pp(!l||a.top||a.left,s.topLeft,0,o),topRight:Pp(!l||a.top||a.r
1ight,s.topRight,0,o),bottomLeft:Pp(!l||a.bottom||a.left,s.bottomLeft,0,o),bottomRight:Pp(!l||a.bottom||a.right,s.bottomRight,0,o)}}(n,t/2,r/2);return{outer:{x:e.left,y:e.top,w:t,h:r,radius:s},inner:{x:e.left+i.l,y:e.top+i.t,w:t-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,s.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,s.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,s.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,s.bottomRight-Math.max(i.b,i.r))}}}}(this),a=function C$e(n){return n.topLeft||n.topRight||n.bottomLeft||n.bottomRight}(o.radius)?JD:S$e;e.save(),(o.w!==s.w||o.h!==s.h)&&(e.beginPath(),a(e,s5(o,t,s)),e.clip(),a(e,s5(s,-t,o)),e.fillStyle=r,e.fill("evenodd")),e.beginPath(),a(e,s5(s,t)),e.fillStyle=i,e.fill(),e.restore()}inRange(e,t,r){return i5(this,e,t,r)}inXRange(e,t){return i5(this,e,null,t)}inYRange(e,t){return i5(this,null,e,t)}getCenterPoint(e){const{x:t,y:r,base:i,horizontal:s}=this.getProps(["x","y","base","horizontal"],e);return{x:s?(t+i)/2:t,y:s?r:(r+i)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}},LineElement:GR,PointElement:E$e});const o5=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],_de=o5.map(n=>n.replace("rgb(","rgba(").replace(")",", 0.5)"));function yde(n){return o5[n%o5.length]}function vde(n){return _de[n%_de.length]}function wde(n){let e;for(e in n)if(n[e].borderColor||n[e].backgroundColor)return!0;return!1}var N$e={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(n,e,t){if(!t.enabled)return;const{data:{datasets:r},options:i}=n.config,{elements:s}=i;if(!t.forceOverride&&(wde(r)||function O$e(n){return n&&(n.borderColor||n.backgroundColor)}(i)||s&&wde(s)))return;const o=function L$e(n){let e=0;return(t,r)=>{const i=n.getDatasetMeta(r).controller;i instanceof Q3?e=function P$e(n,e){return n.backgroundColor=n.data.map(()=>yde(e++)),e}(t,e):i instanceof Vue?e=function R$e(n,e){return n.backgroundColor=n.data.map(()=>vde(e++)),e}(t,e):i&&(e=function k$e(n,e){return n.borderColor=yde(e),n.backgroundColor=vde(e),++e}(t,e))}}(n);r.forEach(o)}};function bde(n){if(n._decimated){const e=n._data;delete n._decimated,delete n._data,Object.defineProperty(n,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function Tde(n){n.data.datasets.forEach(e=>{bde(e)})}var j$e={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(n,e,t)=>{if(!t.enabled)return void Tde(n);const r=n.width;n.data.datasets.forEach((i,s)=>{const{_data:o,indexAxis:a}=i,l=n.getDatasetMeta(s),c=o||i.data;if("y"===XD([a,n.options.indexAxis])||!l.controller.supportsDecimation)return;const u=n.scales[l.xAxisID];if("linear"!==u.type&&"time"!==u.type||n.options.parsing)return;let w,{start:d,count:f}=function U$e(n,e){const t=e.length;let i,r=0;const{iScale:s}=n,{min:o,max:a,minDefined:l,maxDefined:c}=s.getUserBounds();return l&&(r=to(Th(e,s.axis,o).lo,0,t-1)),i=c?to(Th(e,s.axis,a).hi+1,r,t)-r:t-r,{start:r,count:i}}(l,c);if(f<=(t.threshold||4*r))bde(i);else{switch(Jn(o)&&(i._data=c,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(M){this._data=M}})),t.algorithm){case"lttb":w=function F$e(n,e,t,r,i){const s=i.samples||r;if(s>=t)return n.slice(e,e+t);const o=[],a=(t-2)/(s-2);let l=0;const c=e+t-1;let d,f,_,w,M,u=e;for(o[l++]=n[u],d=0;d<s-2;d++){let N,S=0,O=0;const j=Math.floor((d+1)*a)+1+e,Z=Math.min(Math.floor((d+2)*a)+1,t)+e,ie=Z-j;for(N=j;N<Z;N++)S+=n[N].x,O+=n[N].y;S/=ie,O/=ie;const le=Math.floor(d*a)+1+e,Q=Math.min(Math.floor((d+1)*a)+1,t)+e,{x:B,y:J}=n[u];for(_=w=-1,N=le;N<Q;N++)w=.5*Math.abs((B-S)*(n[N].y-J)-(B-n[N].x)*(O-J)),w>_&&(_=w,f=n[N],M=N);o[l++]=f,u=M}return o[l++]=n[c],o}(c,d,f,r,t);break;case"min-max":w=function V$e(n,e,t,r){let o,a,l,c,u,d,f,_,w,M,i=0,s=0;const S=[],N=n[e].x,Z=n[e+t-1].x-N;for(o=e;o<e+t;++o){a=n[o],l=(a.x-N)/Z*r,c=a.y;const ie=0|l;if(ie===u)c<w?(w=c,d=o):c>M&&(M=c,f=o),i=(s*i+a.x)/++s;else{const le=o-1;if(!Jn(d)&&!Jn(f)){const Q=Math.min(d,f),B=Math.max(d,f);Q!==_&&Q!==le&&S.push({...n[Q],x:i}),B!==_&&B!==le&&S.push({...n[B],x:i})}o>0&&le!==_&&S.push(n[le]),S.push(a),u=ie,s=0,w=M=c,d=f=_=o}}return S}(c,d,f,r);break;default:throw new Error(`Unsupported decimation algorithm '${t.algorithm}'`)}i._decimated=w}})},destroy(n){Tde(n)}};function a5(n,e,t,r){if(r)return;let i=e[n],s=t[n];return"angle"===n&&(i=xl(i),s=xl(s)),{property:n,start:i,end:s}}function l5(n,e,t){for(;e>n;e--){const r=t[e];if(!isNaN(r.x)&&!isNaN(r.y))break}return e}function Ede(n,e,t,r){return n&&e?r(n[t],e[t]):n?n[t]:e?e[t]:0}function Mde(n,e){let t=[],r=!1;return gi(n)?(r=!0,t=n):t=function B$e(n,e){const{x:t=null,y:r=null}=n||{},i=e.points,s=[];
vendor: 4,739 bytes, line 1
1return e.segments.forEach(({start:o,end:a})=>{a=l5(o,a,i);const l=i[o],c=i[a];null!==r?(s.push({x:l.x,y:r}),s.push({x:c.x,y:r})):null!==t&&(s.push({x:t,y:l.y}),s.push({x:t,y:c.y}))}),s}(n,e),t.length?new GR({points:t,options:{tension:0},_loop:r,_fullLoop:r}):null}function Ide(n){return n&&!1!==n.fill}function H$e(n,e,t){let i=n[e].fill;const s=[e];let o;if(!t)return i;for(;!1!==i&&-1===s.indexOf(i);){if(!Gi(i))return i;if(o=n[i],!o)return!1;if(o.visible)return i;s.push(i),i=o.fill}return!1}function z$e(n,e,t){const r=function G$e(n){const e=n.options,t=e.fill;let r=_n(t&&t.target,t);return void 0===r&&(r=!!e.backgroundColor),!1!==r&&null!==r&&(!0===r?"origin":r)}(n);if(Vn(r))return!isNaN(r.value)&&r;let i=parseFloat(r);return Gi(i)&&Math.floor(i)===i?function $$e(n,e,t,r){return("-"===n||"+"===n)&&(t=e+t),!(t===e||t<0||t>=r)&&t}(r[0],e,i,t):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function J$e(n,e,t){const r=[];for(let i=0;i<t.length;i++){const s=t[i],{first:o,last:a,point:l}=X$e(s,e,"x");if(!(!l||o&&a))if(o)r.unshift(l);else if(n.push(l),!a)break}n.push(...r)}function X$e(n,e,t){const r=n.interpolate(e,t);if(!r)return{};const i=r[t],s=n.segments,o=n.points;let a=!1,l=!1;for(let c=0;c<s.length;c++){const u=s[c],d=o[u.start][t],f=o[u.end][t];if(bh(i,d,f)){a=i===d,l=i===f;break}}return{first:a,last:l,point:r}}class Dde{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,t,r){const{x:i,y:s,radius:o}=this;return e.arc(i,s,o,(t=t||{start:0,end:yi}).end,t.start,!0),!r.bounds}interpolate(e){const{x:t,y:r,radius:i}=this,s=e.angle;return{x:t+Math.cos(s)*i,y:r+Math.sin(s)*i,angle:s}}}function c5(n,e,t){const r=function Z$e(n){const{chart:e,fill:t,line:r}=n;if(Gi(t))return function e9e(n,e){const t=n.getDatasetMeta(e);return t&&n.isDatasetVisible(e)?t.dataset:null}(e,t);if("stack"===t)return function K$e(n){const{scale:e,index:t,line:r}=n,i=[],s=r.segments,o=r.points,a=function Q$e(n,e){const t=[],r=n.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const s=r[i];if(s.index===e)break;s.hidden||t.unshift(s.dataset)}return t}(e,t);a.push(Mde({x:null,y:e.bottom},r));for(let l=0;l<s.length;l++){const c=s[l];for(let u=c.start;u<=c.end;u++)J$e(i,o[u],a)}return new GR({points:i,options:{}})}(n);if("shape"===t)return!0;const i=function t9e(n){return(n.scale||{}).getPointPositionForValue?function r9e(n){const{scale:e,fill:t}=n,r=e.options,i=e.getLabels().length,s=r.reverse?e.max:e.min,o=function W$e(n,e,t){let r;return r="start"===n?t:"end"===n?e.options.reverse?e.min:e.max:Vn(n)?n.value:e.getBaseValue(),r}(t,e,s),a=[];if(r.grid.circular){const l=e.getPointPositionForValue(0,s);return new Dde({x:l.x,y:l.y,radius:e.getDistanceFromCenterForValue(o)})}for(let l=0;l<i;++l)a.push(e.getPointPositionForValue(l,o));return a}(n):function n9e(n){const{scale:e={},fill:t}=n,r=function q$e(n,e){let t=null;return"start"===n?t=e.bottom:"end"===n?t=e.top:Vn(n)?t=e.getPixelForValue(n.value):e.getBasePixel&&(t=e.getBasePixel()),t}(t,e);if(Gi(r)){const i=e.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}(n)}(n);return i instanceof Dde?i:Mde(i,r)}(e),{line:i,scale:s,axis:o}=e,a=i.options,l=a.fill,c=a.backgroundColor,{above:u=c,below:d=c}=l||{};r&&i.points.length&&(RR(n,t),function i9e(n,e){const{line:t,target:r,above:i,below:s,area:o,scale:a}=e,l=t._loop?"angle":e.axis;n.save(),"x"===l&&s!==i&&(Cde(n,r,o.top),Sde(n,{line:t,target:r,color:i,scale:a,property:l}),n.restore(),n.save(),Cde(n,r,o.bottom)),Sde(n,{line:t,target:r,color:s,scale:a,property:l}),n.restore()}(n,{line:i,target:r,above:u,below:d,area:t,scale:s,axis:o}),LR(n))}function Cde(n,e,t){const{segments:r,points:i}=e;let s=!0,o=!1;n.beginPath();for(const a of r){const{start:l,end:c}=a,u=i[l],d=i[l5(l,c,i)];s?(n.moveTo(u.x,u.y),s=!1):(n.lineTo(u.x,t),n.lineTo(u.x,u.y)),o=!!e.pathSegment(n,a,{move:o}),o?n.closePath():n.lineTo(d.x,t)}n.lineTo(e.first().x,t),n.closePath(),n.clip()}function Sde(n,e){const{line:t,target:r,property:i,color:s,scale:o}=e,a=function Y$e(n,e,t){const r=n.segments,i=n.points,s=e.points,o=[];for(const a of r){let{start:l,end:c}=a;c=l5(l,c,i);const u=a5(t,i[l],i[c],a.loop);if(!e.segments){o.push({source:a,target:u,start:i[l],end:i[c]});continue}const d=Tue(e,u);for(const f of d){const _=a5(t,s[f.start],s[f.end],f.loop),w=bue(a,i,_);for(const M of w)o.push({source:M,target:f,start:{[t]:Ede(u,_,"start",Math.max)},end:{[t]:Ede(u,_,"end",Math.min)}})}}return o}(t,r,i);for(const{source:l,target:c,start:u,end:d}of a){const{style:{backgroundColor:f=s}={}}=l,_=!0!==r;n.save(),n.fillStyle=f,s9e(n,o,_&&a5(i,u,d)),n.beginPath();const w=!!t.pathSegment(n,l);let M;if(_){w?n.closePath():Ade(n,r,d,i);const S=!!r.pathSegment(n,c,{move:w,reverse:!0});M=w&&S,M||Ade(n,r,u,i)}
vendor: 5,462 bytes, line 1
1n.closePath(),n.fill(M?"evenodd":"nonzero"),n.restore()}}function s9e(n,e,t){const{top:r,bottom:i}=e.chart.chartArea,{property:s,start:o,end:a}=t||{};"x"===s&&(n.beginPath(),n.rect(o,r,a-o,i-r),n.clip())}function Ade(n,e,t,r){const i=e.interpolate(t,r);i&&n.lineTo(i.x,i.y)}var o9e={id:"filler",afterDatasetsUpdate(n,e,t){const r=(n.data.datasets||[]).length,i=[];let s,o,a,l;for(o=0;o<r;++o)s=n.getDatasetMeta(o),a=s.dataset,l=null,a&&a.options&&a instanceof GR&&(l={visible:n.isDatasetVisible(o),index:o,fill:z$e(a,o,r),chart:n,axis:s.controller.options.indexAxis,scale:s.vScale,line:a}),s.$filler=l,i.push(l);for(o=0;o<r;++o)l=i[o],l&&!1!==l.fill&&(l.fill=H$e(i,o,t.propagate))},beforeDraw(n,e,t){const r="beforeDraw"===t.drawTime,i=n.getSortedVisibleDatasetMetas(),s=n.chartArea;for(let o=i.length-1;o>=0;--o){const a=i[o].$filler;a&&(a.line.updateControlPoints(s,a.axis),r&&a.fill&&c5(n.ctx,a,s))}},beforeDatasetsDraw(n,e,t){if("beforeDatasetsDraw"!==t.drawTime)return;const r=n.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const s=r[i].$filler;Ide(s)&&c5(n.ctx,s,n.chartArea)}},beforeDatasetDraw(n,e,t){const r=e.meta.$filler;!Ide(r)||"beforeDatasetDraw"!==t.drawTime||c5(n.ctx,r,n.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const xde=(n,e)=>{let{boxHeight:t=e,boxWidth:r=e}=n;return n.usePointStyle&&(t=Math.min(t,e),r=n.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:t,itemHeight:Math.max(e,t)}};class kde extends Ih{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,r){this.maxWidth=e,this.maxHeight=t,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let t=Xr(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter(r=>e.filter(r,this.chart.data))),e.sort&&(t=t.sort((r,i)=>e.sort(r,i,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return void(this.width=this.height=0);const r=e.labels,i=Vs(r.font),s=i.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=xde(r,s);let c,u;t.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(o,s,a,l)+10):(u=this.maxHeight,c=this._fitCols(o,i,a,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(u,e.maxHeight||this.maxHeight)}_fitRows(e,t,r,i){const{ctx:s,maxWidth:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=i+a;let d=e;s.textAlign="left",s.textBaseline="middle";let f=-1,_=-u;return this.legendItems.forEach((w,M)=>{const S=r+t/2+s.measureText(w.text).width;(0===M||c[c.length-1]+S+2*a>o)&&(d+=u,c[c.length-(M>0?0:1)]=0,_+=u,f++),l[M]={left:0,top:_,row:f,width:S,height:i},c[c.length-1]+=S+a}),d}_fitCols(e,t,r,i){const{ctx:s,maxHeight:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=o-e;let d=a,f=0,_=0,w=0,M=0;return this.legendItems.forEach((S,O)=>{const{itemWidth:N,itemHeight:j}=function l9e(n,e,t,r,i){const s=function c9e(n,e,t,r){let i=n.text;return i&&"string"!=typeof i&&(i=i.reduce((s,o)=>s.length>o.length?s:o)),e+t.size/2+r.measureText(i).width}(r,n,e,t),o=function u9e(n,e,t){let r=n;return"string"!=typeof e.text&&(r=Pde(e,t)),r}(i,r,e.lineHeight);return{itemWidth:s,itemHeight:o}}(r,t,s,S,i);O>0&&_+j+2*a>u&&(d+=f+a,c.push({width:f,height:_}),w+=f+a,M++,f=_=0),l[O]={left:w,top:_,col:M,width:N,height:j},f=Math.max(f,N),_+=j+a}),d+=f,c.push({width:f,height:_}),d}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:r,labels:{padding:i},rtl:s}}=this,o=db(s,this.left,this.width);if(this.isHorizontal()){let a=0,l=zo(r,this.left+i,this.right-this.lineWidths[a]);for(const c of t)a!==c.row&&(a=c.row,l=zo(r,this.left+i,this.right-this.lineWidths[a])),c.top+=this.top+e+i,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+i}else{let a=0,l=zo(r,this.top+e+i,this.bottom-this.columnSizes[a].height);for(const c of t)c.col!==a&&(a=c.col,l=zo(r,this.top+e+i,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+i,c.left=o.leftForLtr(o.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;RR(e,this),this._draw(),LR(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:r,ctx:i}=this,{align:s,labels:o}=e,a=Vi.color,l=db(e.rtl,this.left,this.width),c=Vs(o.font),{padding:u}=o,d=c.size,f=d/2;let _;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:w,boxHeight:M,itemHeight:S}=xde(o,d),j=this.isHorizontal(),Z=this._computeTitleHeight();_=j?{x:zo(s,this.left+u,this.right-r[0]),y:this.top+u+Z,line:0}:{x:this.left+u,y:zo(s,this.top+Z+u,this.bottom-t[0].height),line:0},_ue(this.ctx,e.textDirection);const ie=S+u;
1this.legendItems.forEach((le,Q)=>{i.strokeStyle=le.fontColor,i.fillStyle=le.fontColor;const B=i.measureText(le.text).width,J=l.textAlign(le.textAlign||(le.textAlign=o.textAlign)),oe=w+f+B;let ce=_.x,he=_.y;l.setWidth(this.width),j?Q>0&&ce+oe+u>this.right&&(he=_.y+=ie,_.line++,ce=_.x=zo(s,this.left+u,this.right-r[_.line])):Q>0&&he+ie>this.bottom&&(ce=_.x=ce+t[_.line].width+u,_.line++,he=_.y=zo(s,this.top+Z+u,this.bottom-t[_.line].height)),function(le,Q,B){if(isNaN(w)||w<=0||isNaN(M)||M<0)return;i.save();const J=_n(B.lineWidth,1);if(i.fillStyle=_n(B.fillStyle,a),i.lineCap=_n(B.lineCap,"butt"),i.lineDashOffset=_n(B.lineDashOffset,0),i.lineJoin=_n(B.lineJoin,"miter"),i.lineWidth=J,i.strokeStyle=_n(B.strokeStyle,a),i.setLineDash(_n(B.lineDash,[])),o.usePointStyle){const oe={radius:M*Math.SQRT2/2,pointStyle:B.pointStyle,rotation:B.rotation,borderWidth:J},ce=l.xPlus(le,w/2);sue(i,oe,ce,Q+f,o.pointStyleWidth&&w)}else{const oe=Q+Math.max((d-M)/2,0),ce=l.leftForLtr(le,w),he=D_(B.borderRadius);i.beginPath(),Object.values(he).some(se=>0!==se)?JD(i,{x:ce,y:oe,w,h:M,radius:he}):i.rect(ce,oe,w,M),i.fill(),0!==J&&i.stroke()}i.restore()}(l.x(ce),he,le),ce=((n,e,t,r)=>n===(r?"left":"right")?t:"center"===n?(e+t)/2:e)(J,ce+w+f,j?ce+oe:this.right,e.rtl),function(le,Q,B){I_(i,B.text,le,Q+S/2,c,{strikethrough:B.hidden,textAlign:l.textAlign(B.textAlign)})}(l.x(ce),he,le),j?_.x+=oe+u:_.y+="string"!=typeof le.text?Pde(le,c.lineHeight)+u:ie}),yue(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,r=Vs(t.font),i=$o(t.padding);if(!t.display)return;const s=db(e.rtl,this.left,this.width),o=this.ctx,a=t.position,c=i.top+r.size/2;let u,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),u=this.top+c,d=zo(e.align,d,this.right-f);else{const w=this.columnSizes.reduce((M,S)=>Math.max(M,S.height),0);u=c+zo(e.align,this.top,this.bottom-w-e.labels.padding-this._computeTitleHeight())}const _=zo(a,d,d+f);o.textAlign=s.textAlign(O3(a)),o.textBaseline="middle",o.strokeStyle=t.color,o.fillStyle=t.color,o.font=r.string,I_(o,t.text,_,u,r)}_computeTitleHeight(){const e=this.options.title,t=Vs(e.font),r=$o(e.padding);return e.display?t.lineHeight+r.height:0}_getLegendItemAt(e,t){let r,i,s;if(bh(e,this.left,this.right)&&bh(t,this.top,this.bottom))for(s=this.legendHitBoxes,r=0;r<s.length;++r)if(i=s[r],bh(e,i.left,i.left+i.width)&&bh(t,i.top,i.top+i.height))return this.legendItems[r];return null}handleEvent(e){const t=this.options;if(!function d9e(n,e){return!(("mousemove"!==n&&"mouseout"!==n||!e.onHover&&!e.onLeave)&&(!e.onClick||"click"!==n&&"mouseup"!==n))}(e.type,t))return;const r=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type||"mouseout"===e.type){const i=this._hoveredItem,s=((n,e)=>null!==n&&null!==e&&n.datasetIndex===e.datasetIndex&&n.index===e.index)(i,r);i&&!s&&Xr(t.onLeave,[e,i,this],this),this._hoveredItem=r,r&&!s&&Xr(t.onHover,[e,r,this],this)}else r&&Xr(t.onClick,[e,r,this],this)}}function Pde(n,e){return e*(n.text?n.text.length:0)}var h9e={id:"legend",_element:kde,start(n,e,t){const r=n.legend=new kde({ctx:n.ctx,options:t,chart:n});qo.configure(n,r,t),qo.addBox(n,r)},stop(n){qo.removeBox(n,n.legend),delete n.legend},beforeUpdate(n,e,t){const r=n.legend;qo.configure(n,r,t),r.options=t},afterUpdate(n){const e=n.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(n,e){e.replay||n.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(n,e,t){const r=e.datasetIndex,i=t.chart;i.isDatasetVisible(r)?(i.hide(r),e.hidden=!0):(i.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:n=>n.chart.options.color,boxWidth:40,padding:10,generateLabels(n){const e=n.data.datasets,{labels:{usePointStyle:t,pointStyle:r,textAlign:i,color:s,useBorderRadius:o,borderRadius:a}}=n.legend.options;
vendor: 10,216 bytes, line 1
1return n._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(t?0:void 0),u=$o(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:s,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:o&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:n=>n.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:n=>!n.startsWith("on"),labels:{_scriptable:n=>!["generateLabels","filter","sort"].includes(n)}}};class u5 extends Ih{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const r=this.options;if(this.left=0,this.top=0,!r.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=e,this.height=this.bottom=t;const i=gi(r.text)?r.text.length:1;this._padding=$o(r.padding);const s=i*Vs(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:t,left:r,bottom:i,right:s,options:o}=this,a=o.align;let c,u,d,l=0;return this.isHorizontal()?(u=zo(a,r,s),d=t+e,c=s-r):("left"===o.position?(u=r+e,d=zo(a,i,t),l=-.5*_i):(u=s-e,d=zo(a,t,i),l=.5*_i),c=i-t),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const e=this.ctx,t=this.options;if(!t.display)return;const r=Vs(t.font),s=r.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(s);I_(e,t.text,0,0,r,{color:t.color,maxWidth:l,rotation:c,textAlign:O3(t.align),textBaseline:"middle",translation:[o,a]})}}var p9e={id:"title",_element:u5,start(n,e,t){!function f9e(n,e){const t=new u5({ctx:n.ctx,options:e,chart:n});qo.configure(n,t,e),qo.addBox(n,t),n.titleBlock=t}(n,t)},stop(n){qo.removeBox(n,n.titleBlock),delete n.titleBlock},beforeUpdate(n,e,t){const r=n.titleBlock;qo.configure(n,r,t),r.options=t},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const KR=new WeakMap;var m9e={id:"subtitle",start(n,e,t){const r=new u5({ctx:n.ctx,options:t,chart:n});qo.configure(n,r,t),qo.addBox(n,r),KR.set(n,r)},stop(n){qo.removeBox(n,KR.get(n)),KR.delete(n)},beforeUpdate(n,e,t){const r=KR.get(n);qo.configure(n,r,t),r.options=t},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const aC={average(n){if(!n.length)return!1;let e,t,r=new Set,i=0,s=0;for(e=0,t=n.length;e<t;++e){const a=n[e].element;if(a&&a.hasValue()){const l=a.tooltipPosition();r.add(l.x),i+=l.y,++s}}return{x:[...r].reduce((a,l)=>a+l)/r.size,y:i/s}},nearest(n,e){if(!n.length)return!1;let s,o,a,t=e.x,r=e.y,i=Number.POSITIVE_INFINITY;for(s=0,o=n.length;s<o;++s){const l=n[s].element;if(l&&l.hasValue()){const u=R3(e,l.getCenterPoint());u<i&&(i=u,a=l)}}if(a){const l=a.tooltipPosition();t=l.x,r=l.y}return{x:t,y:r}}};function cd(n,e){return e&&(gi(e)?Array.prototype.push.apply(n,e):n.push(e)),n}function Dh(n){return("string"==typeof n||n instanceof String)&&n.indexOf("\n")>-1?n.split("\n"):n}function g9e(n,e){const{element:t,datasetIndex:r,index:i}=e,s=n.getDatasetMeta(r).controller,{label:o,value:a}=s.getLabelAndValue(i);return{chart:n,label:o,parsed:s.getParsed(i),raw:n.data.datasets[r].data[i],formattedValue:a,dataset:s.getDataset(),dataIndex:i,datasetIndex:r,element:t}}function Rde(n,e){const t=n.chart.ctx,{body:r,footer:i,title:s}=n,{boxWidth:o,boxHeight:a}=e,l=Vs(e.bodyFont),c=Vs(e.titleFont),u=Vs(e.footerFont),d=s.length,f=i.length,_=r.length,w=$o(e.padding);let M=w.height,S=0,O=r.reduce((Z,ie)=>Z+ie.before.length+ie.lines.length+ie.after.length,0);O+=n.beforeBody.length+n.afterBody.length,d&&(M+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),O&&(M+=_*(e.displayColors?Math.max(a,l.lineHeight):l.lineHeight)+(O-_)*l.lineHeight+(O-1)*e.bodySpacing),f&&(M+=e.footerMarginTop+f*u.lineHeight+(f-1)*e.footerSpacing);let N=0;const j=function(Z){S=Math.max(S,t.measureText(Z).width+N)};return t.save(),t.font=c.string,Er(n.title,j),t.font=l.string,Er(n.beforeBody.concat(n.afterBody),j),N=e.displayColors?o+2+e.boxPadding:0,Er(r,Z=>{Er(Z.before,j),Er(Z.lines,j),Er(Z.after,j)}),N=0,t.font=u.string,Er(n.footer,j),t.restore(),S+=w.width,{width:S,height:M}}function v9e(n,e,t,r){const{x:i,width:s}=t,{width:o,chartArea:{left:a,right:l}}=n;let c="center";return"center"===r?c=i<=(a+l)/2?"left":"right":i<=s/2?c="left":i>=o-s/2&&(c="right"),function y9e(n,e,t,r){const{x:i,width:s}=r,o=t.caretSize+t.caretPadding;if("left"===n&&i+s+o>e.width||"right"===n&&i-s-o<0)return!0}(c,n,e,t)&&(c="center"),c}function Lde(n,e,t){const r=t.yAlign||e.yAlign||function _9e(n,e){const{y:t,height:r}=e;return t<r/2?"top":t>n.height-r/2?"bottom":"center"}(n,t);return{xAlign:t.xAlign||e.xAlign||v9e(n,e,t,r),yAlign:r}}function Ode(n,e,t,r){const{caretSize:i,caretPadding:s,cornerRadius:o}=n,{xAlign:a,yAlign:l}=t,c=i+s,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:_}=D_(o);let w=function w9e(n,e){let{x:t,width:r}=n;return"right"===e?t-=r:"center"===e&&(t-=r/2),t}(e,a);const M=function b9e(n,e,t){let{y:r,height:i}=n;return"top"===e?r+=t:r-="bottom"===e?i+t:i/2,r}(e,l,c);return"center"===l?"left"===a?w+=c:"right"===a&&(w-=c):"left"===a?w-=Math.max(u,f)+i:"right"===a&&(w+=Math.max(d,_)+i),{x:to(w,0,r.width-e.width),y:to(M,0,r.height-e.height)}}function QR(n,e,t){const r=$o(t.padding);return"center"===e?n.x+n.width/2:"right"===e?n.x+n.width-r.right:n.x+r.left}function Nde(n){return cd([],Dh(n))}function Fde(n,e){const t=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return t?n.override(t):n}const Vde={beforeTitle:wh,title(n){if(n.length>0){const e=n[0],t=e.chart.data.labels,r=t?t.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return t[e.dataIndex]}return""},afterTitle:wh,beforeBody:wh,beforeLabel:wh,label(n){if(this&&this.options&&"dataset"===this.options.mode)return n.label+": "+n.formattedValue||n.formattedValue;let e=n.dataset.label||"";e&&(e+=": ");const t=n.formattedValue;return Jn(t)||(e+=t),e},labelColor(n){const t=n.chart.getDatasetMeta(n.datasetIndex).controller.getStyle(n.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(n){const t=n.chart.getDatasetMeta(n.datasetIndex).controller.getStyle(n.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:wh,afterBody:wh,beforeFooter:wh,footer:wh,afterFooter:wh};function qa(n,e,t,r){const i=n[e].call(t,r);return typeof i>"u"?Vde[e].call(t,r):i}let Ude=(()=>class n extends Ih{static positioners=aC;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const r=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&r.options.animation&&i.animations,o=new Due(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=function T9e(n,e,t){return xp(n,{tooltip:e,tooltipItems:t,type:"tooltip"})}(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,r){const{callbacks:i}=r,s=qa(i,"beforeTitle",this,t),o=qa(i,"title",this,t),a=qa(i,"afterTitle",this,t);let l=[];return l=cd(l,Dh(s)),l=cd(l,Dh(o)),l=cd(l,Dh(a)),l}getBeforeBody(t,r){return Nde(qa(r.callbacks,"beforeBody",this,t))}getBody(t,r){const{callbacks:i}=r,s=[];return Er(t,o=>{const a={before:[],lines:[],after:[]},l=Fde(i,o);cd(a.before,Dh(qa(l,"beforeLabel",this,o))),cd(a.lines,qa(l,"label",this,o)),cd(a.after,Dh(qa(l,"afterLabel",this,o))),s.push(a)}),s}getAfterBody(t,r){return Nde(qa(r.callbacks,"afterBody",this,t))}getFooter(t,r){const{callbacks:i}=r,s=qa(i,"beforeFooter",this,t),o=qa(i,"footer",this,t),a=qa(i,"afterFooter",this,t);let l=[];return l=cd(l,Dh(s)),l=cd(l,Dh(o)),l=cd(l,Dh(a)),l}_createItems(t){const r=this._active,i=this.chart.data,s=[],o=[],a=[];let c,u,l=[];for(c=0,u=r.length;c<u;++c)l.push(g9e(this.chart,r[c]));return t.filter&&(l=l.filter((d,f,_)=>t.filter(d,f,_,i))),t.itemSort&&(l=l.sort((d,f)=>t.itemSort(d,f,i))),Er(l,d=>{const f=Fde(t.callbacks,d);s.push(qa(f,"labelColor",this,d)),o.push(qa(f,"labelPointStyle",this,d)),a.push(qa(f,"labelTextColor",this,d))}),this.labelColors=s,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=l,l}update(t,r){const i=this.options.setContext(this.getContext()),s=this._active;let o,a=[];if(s.length){const l=aC[i.position].call(this,s,this._eventPosition);a=this._createItems(i),this.title=this.getTitle(a,i),this.beforeBody=this.getBeforeBody(a,i),this.body=this.getBody(a,i),this.afterBody=this.getAfterBody(a,i),this.footer=this.getFooter(a,i);const c=this._size=Rde(this,i),u=Object.assign({},l,c),d=Lde(this.chart,i,u),f=Ode(i,u,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,o={opacity:1,x:f.x,y:f.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}else 0!==this.opacity&&(o={opacity:0}
vendor: 4,991 bytes, line 1
1);this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:r})}drawCaret(t,r,i,s){const o=this.getCaretPosition(t,i,s);r.lineTo(o.x1,o.y1),r.lineTo(o.x2,o.y2),r.lineTo(o.x3,o.y3)}getCaretPosition(t,r,i){const{xAlign:s,yAlign:o}=this,{caretSize:a,cornerRadius:l}=i,{topLeft:c,topRight:u,bottomLeft:d,bottomRight:f}=D_(l),{x:_,y:w}=t,{width:M,height:S}=r;let O,N,j,Z,ie,le;return"center"===o?(ie=w+S/2,"left"===s?(O=_,N=O-a,Z=ie+a,le=ie-a):(O=_+M,N=O+a,Z=ie-a,le=ie+a),j=O):(N="left"===s?_+Math.max(c,d)+a:"right"===s?_+M-Math.max(u,f)-a:this.caretX,"top"===o?(Z=w,ie=Z-a,O=N-a,j=N+a):(Z=w+S,ie=Z+a,O=N+a,j=N-a),le=Z),{x1:O,x2:N,x3:j,y1:Z,y2:ie,y3:le}}drawTitle(t,r,i){const s=this.title,o=s.length;let a,l,c;if(o){const u=db(i.rtl,this.x,this.width);for(t.x=QR(this,i.titleAlign,i),r.textAlign=u.textAlign(i.titleAlign),r.textBaseline="middle",a=Vs(i.titleFont),l=i.titleSpacing,r.fillStyle=i.titleColor,r.font=a.string,c=0;c<o;++c)r.fillText(s[c],u.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+l,c+1===o&&(t.y+=i.titleMarginBottom-l)}}_drawColorBox(t,r,i,s,o){const a=this.labelColors[i],l=this.labelPointStyles[i],{boxHeight:c,boxWidth:u}=o,d=Vs(o.bodyFont),f=QR(this,"left",o),_=s.x(f),M=r.y+(c<d.lineHeight?(d.lineHeight-c)/2:0);if(o.usePointStyle){const S={radius:Math.min(u,c)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},O=s.leftForLtr(_,u)+u/2,N=M+c/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,j3(t,S,O,N),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,j3(t,S,O,N)}else{t.lineWidth=Vn(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const S=s.leftForLtr(_,u),O=s.leftForLtr(s.xPlus(_,1),u-2),N=D_(a.borderRadius);Object.values(N).some(j=>0!==j)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,JD(t,{x:S,y:M,w:u,h:c,radius:N}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),JD(t,{x:O,y:M+1,w:u-2,h:c-2,radius:N}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(S,M,u,c),t.strokeRect(S,M,u,c),t.fillStyle=a.backgroundColor,t.fillRect(O,M+1,u-2,c-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,r,i){const{body:s}=this,{bodySpacing:o,bodyAlign:a,displayColors:l,boxHeight:c,boxWidth:u,boxPadding:d}=i,f=Vs(i.bodyFont);let _=f.lineHeight,w=0;const M=db(i.rtl,this.x,this.width),S=function(J){r.fillText(J,M.x(t.x+w),t.y+_/2),t.y+=_+o},O=M.textAlign(a);let N,j,Z,ie,le,Q,B;for(r.textAlign=a,r.textBaseline="middle",r.font=f.string,t.x=QR(this,O,i),r.fillStyle=i.bodyColor,Er(this.beforeBody,S),w=l&&"right"!==O?"center"===a?u/2+d:u+2+d:0,ie=0,Q=s.length;ie<Q;++ie){for(N=s[ie],j=this.labelTextColors[ie],r.fillStyle=j,Er(N.before,S),Z=N.lines,l&&Z.length&&(this._drawColorBox(r,t,ie,M,i),_=Math.max(f.lineHeight,c)),le=0,B=Z.length;le<B;++le)S(Z[le]),_=f.lineHeight;Er(N.after,S)}w=0,_=f.lineHeight,Er(this.afterBody,S),t.y-=o}drawFooter(t,r,i){const s=this.footer,o=s.length;let a,l;if(o){const c=db(i.rtl,this.x,this.width);for(t.x=QR(this,i.footerAlign,i),t.y+=i.footerMarginTop,r.textAlign=c.textAlign(i.footerAlign),r.textBaseline="middle",a=Vs(i.footerFont),r.fillStyle=i.footerColor,r.font=a.string,l=0;l<o;++l)r.fillText(s[l],c.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+i.footerSpacing}}drawBackground(t,r,i,s){const{xAlign:o,yAlign:a}=this,{x:l,y:c}=t,{width:u,height:d}=i,{topLeft:f,topRight:_,bottomLeft:w,bottomRight:M}=D_(s.cornerRadius);r.fillStyle=s.backgroundColor,r.strokeStyle=s.borderColor,r.lineWidth=s.borderWidth,r.beginPath(),r.moveTo(l+f,c),"top"===a&&this.drawCaret(t,r,i,s),r.lineTo(l+u-_,c),r.quadraticCurveTo(l+u,c,l+u,c+_),"center"===a&&"right"===o&&this.drawCaret(t,r,i,s),r.lineTo(l+u,c+d-M),r.quadraticCurveTo(l+u,c+d,l+u-M,c+d),"bottom"===a&&this.drawCaret(t,r,i,s),r.lineTo(l+w,c+d),r.quadraticCurveTo(l,c+d,l,c+d-w),"center"===a&&"left"===o&&this.drawCaret(t,r,i,s),r.lineTo(l,c+f),r.quadraticCurveTo(l,c,l+f,c),r.closePath(),r.fill(),s.borderWidth>0&&r.stroke()}_updateAnimationTarget(t){const r=this.chart,i=this.$animations,s=i&&i.x,o=i&&i.y;if(s||o){const a=aC[t.position].call(this,this._active,this._eventPosition);if(!a)return;const l=this._size=Rde(this,t),c=Object.assign({},a,this._size),u=Lde(r,t,c),d=Ode(t,c,u,r);(s._to!==d.x||o._to!==d.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=l.width,this.height=l.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const r=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(r);const s={width:this.width,height:this.height},o={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const a=$o(r.padding);r.enabled&&(this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length)&&(t.save(),t.globalAlpha=i,this.drawBackgroun
vendor: 3,006 bytes, line 1
1d(o,t,s,r),_ue(t,r.textDirection),o.y+=a.top,this.drawTitle(o,t,r),this.drawBody(o,t,r),this.drawFooter(o,t,r),yue(t,r.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,r){const i=this._active,s=t.map(({datasetIndex:l,index:c})=>{const u=this.chart.getDatasetMeta(l);if(!u)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:u.data[c],index:c}}),o=!CR(i,s),a=this._positionChanged(s,r);(o||a)&&(this._active=s,this._eventPosition=r,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,r,i=!0){if(r&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,o=this._active||[],a=this._getActiveElements(t,o,r,i),l=this._positionChanged(a,t),c=r||!CR(a,o)||l;return c&&(this._active=a,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,r))),c}_getActiveElements(t,r,i,s){const o=this.options;if("mouseout"===t.type)return[];if(!s)return r.filter(l=>this.chart.data.datasets[l.datasetIndex]&&void 0!==this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index));const a=this.chart.getElementsAtEventForMode(t,o.mode,o,i);return o.reverse&&a.reverse(),a}_positionChanged(t,r){const{caretX:i,caretY:s,options:o}=this,a=aC[o.position].call(this,t,r);return!1!==a&&(i!==a.x||s!==a.y)}})();var E9e={id:"tooltip",_element:Ude,positioners:aC,afterInit(n,e,t){t&&(n.tooltip=new Ude({chart:n,options:t}))},beforeUpdate(n,e,t){n.tooltip&&n.tooltip.initialize(t)},reset(n,e,t){n.tooltip&&n.tooltip.initialize(t)},afterDraw(n){const e=n.tooltip;if(e&&e._willRender()){const t={tooltip:e};if(!1===n.notifyPlugins("beforeTooltipDraw",{...t,cancelable:!0}))return;e.draw(n.ctx),n.notifyPlugins("afterTooltipDraw",t)}},afterEvent(n,e){n.tooltip&&n.tooltip.handleEvent(e.event,e.replay,e.inChartArea)&&(e.changed=!0)},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(n,e)=>e.bodyFont.size,boxWidth:(n,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Vde},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:n=>"filter"!==n&&"itemSort"!==n&&"external"!==n,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},M9e=Object.freeze({__proto__:null,Colors:N$e,Decimation:j$e,Filler:o9e,Legend:h9e,SubTitle:m9e,Title:p9e,Tooltip:E9e});
vendor: 5,384 bytes, line 1
1function jde(n){const e=this.getLabels();return n>=0&&n<e.length?e[n]:n}let S9e=(()=>class n extends k_{static id="category";static defaults={ticks:{callback:jde}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const r=this._addedLabels;if(r.length){const i=this.getLabels();for(const{index:s,label:o}of r)i[s]===o&&i.splice(s,1);this._addedLabels=[]}super.init(t)}parse(t,r){if(Jn(t))return null;const i=this.getLabels();return((n,e)=>null===n?null:to(Math.round(n),0,e))(r=isFinite(r)&&i[r]===t?r:function D9e(n,e,t,r){const i=n.indexOf(e);return-1===i?((n,e,t,r)=>("string"==typeof e?(t=n.push(e)-1,r.unshift({index:t,label:e})):isNaN(e)&&(t=null),t))(n,e,t,r):i!==n.lastIndexOf(e)?t:i}(i,t,_n(r,t),this._addedLabels),i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:r}=this.getUserBounds();let{min:i,max:s}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),r||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){const t=this.min,r=this.max,i=this.options.offset,s=[];let o=this.getLabels();o=0===t&&r===o.length-1?o:o.slice(t,r+1),this._valueRange=Math.max(o.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let a=t;a<=r;a++)s.push({value:a});return s}getLabelForValue(t){return jde.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const r=this.ticks;return t<0||t>r.length-1?null:this.getPixelForValue(r[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}})();function Yde(n,e,{horizontal:t,minRotation:r}){const i=Kc(r),s=(t?Math.sin(i):Math.cos(i))||.001;return Math.min(e/s,.75*e*(""+n).length)}class JR extends k_{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return Jn(e)||("number"==typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:r}=this.getUserBounds();let{min:i,max:s}=this;const o=l=>i=t?i:l,a=l=>s=r?s:l;if(e){const l=ad(i),c=ad(s);l<0&&c<0?a(0):l>0&&c>0&&o(0)}if(i===s){let l=0===s?1:Math.abs(.05*s);a(s+l),e||o(i-l)}this.min=i,this.max=s}getTickLimit(){const e=this.options.ticks;let i,{maxTicksLimit:t,stepSize:r}=e;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),t=t||11),t&&(i=Math.min(t,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let r=this.getTickLimit();r=Math.max(2,r);const o=function A9e(n,e){const t=[],{bounds:i,step:s,min:o,max:a,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:f}=n,_=s||1,w=u-1,{min:M,max:S}=e,O=!Jn(o),N=!Jn(a),j=!Jn(c),Z=(S-M)/(d+1);let le,Q,B,J,ie=Bce((S-M)/w/_)*_;if(ie<1e-14&&!O&&!N)return[{value:M},{value:S}];J=Math.ceil(S/ie)-Math.floor(M/ie),J>w&&(ie=Bce(J*ie/w/_)*_),Jn(l)||(le=Math.pow(10,l),ie=Math.ceil(ie*le)/le),"ticks"===i?(Q=Math.floor(M/ie)*ie,B=Math.ceil(S/ie)*ie):(Q=M,B=S),O&&N&&s&&function g5e(n,e){const t=Math.round(n);return t-e<=n&&t+e>=n}((a-o)/s,ie/1e3)?(J=Math.round(Math.min((a-o)/ie,u)),ie=(a-o)/J,Q=o,B=a):j?(Q=O?o:Q,B=N?a:B,J=c-1,ie=(B-Q)/J):(J=(B-Q)/ie,J=qD(J,Math.round(J),ie/1e3)?Math.round(J):Math.ceil(J));const oe=Math.max(zce(ie),zce(Q));le=Math.pow(10,Jn(l)?oe:l),Q=Math.round(Q*le)/le,B=Math.round(B*le)/le;let ce=0;for(O&&(f&&Q!==o?(t.push({value:o}),Q<o&&ce++,qD(Math.round((Q+ce*ie)*le)/le,o,Yde(o,Z,n))&&ce++):Q<o&&ce++);ce<J;++ce){const he=Math.round((Q+ce*ie)*le)/le;if(N&&he>a)break;t.push({value:he})}return N&&f&&B!==a?t.length&&qD(t[t.length-1].value,a,Yde(a,Z,n))?t[t.length-1].value=a:t.push({value:a}):(!N||B===a)&&t.push({value:B}),t}({maxTicks:r,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&Hce(o,this,"value"),e.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const e=this.ticks;let t=this.min,r=this.max;if(super.configure(),this.options.offset&&e.length){const i=(r-t)/Math.max(e.length-1,1)/2;t-=i,r+=i}this._startValue=t,this._endValue=r,this._valueRange=r-t}getLabelForValue(e){return KD(e,this.chart.options.locale,this.options.ticks.format)}}const lC=n=>Math.floor(Ap(n)),R_=(n,e)=>Math.pow(10,lC(n)+e);function Bde(n){return n/Math.pow(10,lC(n))==1}function Hde(n,e,t){const r=Math.pow(10,t),i=Math.floor(n/r);return Math.ceil(e/r)-i}function d5(n){const e=n.ticks;if(e.display&&n.display){const t=$o(e.backdropPadding);return _n(e.font&&e.font.size,Vi.font.size)+t.height}return 0}function L9e(n,e,t){return t=gi(t)?t:[t],{w:R5e(n,e.string,t),h:t.length*e.lineHeight}}function zde(n,e,t,r,i){return n===r||n===i?{start:e-t/2,end:e+t/2}:n<r||n>i?{start:e-t,end:e}:{start:e,end:e+t}}function N9e(n,e,t,r,i){const s=Math.abs(Math.sin(t)),o=Math.abs(Math.cos(t));let a=0,l=0;
1r.start<e.l?(a=(e.l-r.start)/s,n.l=Math.min(n.l,e.l-a)):r.end>e.r&&(a=(r.end-e.r)/s,n.r=Math.max(n.r,e.r+a)),i.start<e.t?(l=(e.t-i.start)/o,n.t=Math.min(n.t,e.t-l)):i.end>e.b&&(l=(i.end-e.b)/o,n.b=Math.max(n.b,e.b+l))}function F9e(n,e,t){const r=n.drawingArea,{extra:i,additionalAngle:s,padding:o,size:a}=t,l=n.getPointPosition(e,r+i+o,s),c=Math.round(P3(xl(l.angle+ms))),u=function B9e(n,e,t){return 90===t||270===t?n-=e/2:(t>270||t<90)&&(n-=e),n}(l.y,a.h,c),d=function j9e(n){return 0===n||180===n?"center":n<180?"left":"right"}(c),f=function Y9e(n,e,t){return"right"===t?n-=e:"center"===t&&(n-=e/2),n}(l.x,a.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:f,top:u,right:f+a.w,bottom:u+a.h}}function V9e(n,e){if(!e)return!0;const{left:t,top:r,right:i,bottom:s}=n;return!(Eh({x:t,y:r},e)||Eh({x:t,y:s},e)||Eh({x:i,y:r},e)||Eh({x:i,y:s},e))}function H9e(n,e,t){const{left:r,top:i,right:s,bottom:o}=t,{backdropColor:a}=e;if(!Jn(a)){const l=D_(e.borderRadius),c=$o(e.backdropPadding);n.fillStyle=a;const u=r-c.left,d=i-c.top,f=s-r+c.width,_=o-i+c.height;Object.values(l).some(w=>0!==w)?(n.beginPath(),JD(n,{x:u,y:d,w:f,h:_,radius:l}),n.fill()):n.fillRect(u,d,f,_)}}function $de(n,e,t,r){const{ctx:i}=n;if(t)i.arc(n.xCenter,n.yCenter,e,0,yi);else{let s=n.getPointPosition(0,e);i.moveTo(s.x,s.y);for(let o=1;o<r;o++)s=n.getPointPosition(o,e),i.lineTo(s.x,s.y)}}const XR={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Wa=Object.keys(XR);function qde(n,e){return n-e}function Wde(n,e){if(Jn(e))return null;const t=n._adapter,{parser:r,round:i,isoWeekday:s}=n._parseOpts;let o=e;return"function"==typeof r&&(o=r(o)),Gi(o)||(o="string"==typeof r?t.parse(o,r):t.parse(o)),null===o?null:(i&&(o="week"!==i||!lb(s)&&!0!==s?t.startOf(o,i):t.startOf(o,"isoWeek",s)),+o)}function Gde(n,e,t,r){const i=Wa.length;for(let s=Wa.indexOf(n);s<i-1;++s){const o=XR[Wa[s]];if(o.common&&Math.ceil((t-e)/((o.steps?o.steps:Number.MAX_SAFE_INTEGER)*o.size))<=r)return Wa[s]}return Wa[i-1]}function Kde(n,e,t){if(t){if(t.length){const{lo:r,hi:i}=L3(t,e);n[t[r]>=e?t[r]:t[i]]=!0}}else n[e]=!0}function Qde(n,e,t){const r=[],i={},s=e.length;let o,a;for(o=0;o<s;++o)a=e[o],i[a]=o,r.push({value:a,major:!1});return 0!==s&&t?function Q9e(n,e,t,r){const i=n._adapter,s=+i.startOf(e[0].value,r),o=e[e.length-1].value;let a,l;for(a=s;a<=o;a=+i.add(a,1,r))l=t[a],l>=0&&(e[l].major=!0);return e}(n,r,i,t):r}let h5=(()=>class n extends k_{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,r={}){const i=t.time||(t.time={}),s=this._adapter=new X6e__date(t.adapters.date);s.init(r),zD(i.displayFormats,s.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=r.normalized}parse(t,r){return void 0===t?null:Wde(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,r=this._adapter,i=t.time.unit||"day";let{min:s,max:o,minDefined:a,maxDefined:l}=this.getUserBounds();function c(u){!a&&!isNaN(u.min)&&(s=Math.min(s,u.min)),!l&&!isNaN(u.max)&&(o=Math.max(o,u.max))}(!a||!l)&&(c(this._getLabelBounds()),("ticks"!==t.bounds||"labels"!==t.ticks.source)&&c(this.getMinMax(!1))),s=Gi(s)&&!isNaN(s)?s:+r.startOf(Date.now(),i),o=Gi(o)&&!isNaN(o)?o:+r.endOf(Date.now(),i)+1,this.min=Math.min(s,o-1),this.max=Math.max(s+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let r=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(r=t[0],i=t[t.length-1]),{min:r,max:i}}buildTicks(){const t=this.options,r=t.time,i=t.ticks,s="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const o=this.min,l=function w5e(n,e,t){let r=0,i=n.length;for(;r<i&&n[r]<e;)r++;for(;i>r&&n[i-1]>t;)i--;return r>0||i<n.length?n.slice(r,i):n}(s,o,this.max);return this._unit=r.unit||(i.autoSkip?Gde(r.minUnit,this.min,this.max,this._getLabelCapacity(o)
vendor: 6,779 bytes, line 1
1):function G9e(n,e,t,r,i){for(let s=Wa.length-1;s>=Wa.indexOf(t);s--){const o=Wa[s];if(XR[o].common&&n._adapter.diff(i,r,o)>=e-1)return o}return Wa[t?Wa.indexOf(t):0]}(this,l.length,r.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function K9e(n){for(let e=Wa.indexOf(n)+1,t=Wa.length;e<t;++e)if(XR[Wa[e]].common)return Wa[e]}(this._unit):void 0,this.initOffsets(s),t.reverse&&l.reverse(),Qde(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let s,o,r=0,i=0;this.options.offset&&t.length&&(s=this.getDecimalForValue(t[0]),r=1===t.length?1-s:(this.getDecimalForValue(t[1])-s)/2,o=this.getDecimalForValue(t[t.length-1]),i=1===t.length?o:(o-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;r=to(r,0,a),i=to(i,0,a),this._offsets={start:r,end:i,factor:1/(r+1+i)}}_generate(){const t=this._adapter,r=this.min,i=this.max,s=this.options,o=s.time,a=o.unit||Gde(o.minUnit,r,i,this._getLabelCapacity(r)),l=_n(s.ticks.stepSize,1),c="week"===a&&o.isoWeekday,u=lb(c)||!0===c,d={};let _,w,f=r;if(u&&(f=+t.startOf(f,"isoWeek",c)),f=+t.startOf(f,u?"day":a),t.diff(i,r,a)>1e5*l)throw new Error(r+" and "+i+" are too far apart with stepSize of "+l+" "+a);const M="data"===s.ticks.source&&this.getDataTimestamps();for(_=f,w=0;_<i;_=+t.add(_,l,a),w++)Kde(d,_,M);return(_===i||"ticks"===s.bounds||1===w)&&Kde(d,_,M),Object.keys(d).sort(qde).map(S=>+S)}getLabelForValue(t){const i=this.options.time;return this._adapter.format(t,i.tooltipFormat?i.tooltipFormat:i.displayFormats.datetime)}format(t,r){return this._adapter.format(t,r||this.options.time.displayFormats[this._unit])}_tickFormatFunction(t,r,i,s){const o=this.options,a=o.ticks.callback;if(a)return Xr(a,[t,r,i],this);const l=o.time.displayFormats,c=this._unit,u=this._majorUnit,f=u&&l[u],_=i[r];return this._adapter.format(t,s||(u&&f&&_&&_.major?f:c&&l[c]))}generateTickLabels(t){let r,i,s;for(r=0,i=t.length;r<i;++r)s=t[r],s.label=this._tickFormatFunction(s.value,r,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const r=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((r.start+i)*r.factor)}getValueForPixel(t){const r=this._offsets,i=this.getDecimalForPixel(t)/r.factor-r.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const r=this.options.ticks,i=this.ctx.measureText(t).width,s=Kc(this.isHorizontal()?r.maxRotation:r.minRotation),o=Math.cos(s),a=Math.sin(s),l=this._resolveTickFontOptions(0).size;return{w:i*o+l*a,h:i*a+l*o}}_getLabelCapacity(t){const r=this.options.time,i=r.displayFormats,s=i[r.unit]||i.millisecond,o=this._tickFormatFunction(t,0,Qde(this,[t],this._majorUnit),s),a=this._getLabelSize(o),l=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return l>0?l:1}getDataTimestamps(){let r,i,t=this._cache.data||[];if(t.length)return t;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(r=0,i=s.length;r<i;++r)t=t.concat(s[r].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let r,i;if(t.length)return t;const s=this.getLabels();for(r=0,i=s.length;r<i;++r)t.push(Wde(this,s[r]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Gce(t.sort(qde))}})();function ZR(n,e,t){let s,o,a,l,r=0,i=n.length-1;t?(e>=n[r].pos&&e<=n[i].pos&&({lo:r,hi:i}=Th(n,"pos",e)),({pos:s,time:a}=n[r]),({pos:o,time:l}=n[i])):(e>=n[r].time&&e<=n[i].time&&({lo:r,hi:i}=Th(n,"time",e)),({time:s,pos:a}=n[r]),({time:o,pos:l}=n[i]));const c=o-s;return c?a+(l-a)*(e-s)/c:a}var X9e=Object.freeze({__proto__:null,CategoryScale:S9e,LinearScale:class x9e extends JR{static id="linear";static defaults={ticks:{callback:kR.formatters.numeric}};determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=Gi(e)?e:0,this.max=Gi(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,r=Kc(this.options.ticks.minRotation),i=(e?Math.sin(r):Math.cos(r))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,s.lineHeight/i))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}},LogarithmicScale:class R9e extends k_{static id="logarithmic";static defaults={ticks:{callback:kR.formatters.logarithmic,major:{enabled:!0}}};constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){const r=JR.prototype.parse.apply(this,[e,t]);if(0!==r)return Gi(r)&&r>0?r:null;this._zero=!0}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=Gi(e)?Math.max(0,e):null,this.max=Gi(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Gi(this._userMin)&&(this.min=e===R_(this.min,0)?R_(this.min,-1):R_(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let r=this.min,i=this.max;const s=a=>r=e?r:a,o=a=>i=t?i:a;r===i&&(r<=0?(s(1),o(10)):(s(R_(r,-1)),o(R_(i,1)))),r<=0&&s(R_(i,-1)),i<=0&&o(R_(r,1)),this.min=r,this.max=i}buildTicks(){const e=this.options,r=function P9e(n,{min:e,max:t}){e=Al(n.min,e);const r=[],i=lC(e);let s=function k9e(n,e){let r=lC(e-n);for(;Hde(n,e,r)>10;)r++;for(;Hde(n,e,r)<10;)r--;return Math.min(r,lC(n))}(e,t),o=s<0?Math.pow(10,Math.abs(s)):1;const a=Math.pow(10,s),l=i>s?Math.pow(10,i):0,c=Math.round((e-l)*o)/o,u=Math.floor((e-l)/a/10)*a*10;let d=Math.floor((c-u)/Math.pow(10,s)),f=Al(n.min,Math.round((l+u+d*Math.pow(10,s))*o)/o);for(;f<t;)r.push({value:f,major:Bde(f),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(s++,d=2,o=s>=0?1:o),f=Math.round((l+u+d*Math.pow(10,s))*o)/o;const _=Al(n.max,f);return r.push({value:_,major:Bde(_),significand:d}),r}({min:this._userMin,max:this._userMax},this);return"ticks"===e.bounds&&Hce(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(e){return void 0===e?"0":KD(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=Ap(e),this._valueRange=Ap(this.max)-Ap(e)}getPixelForValue(e){return(void 0===e||0===e)&&(e=this.min),null===e||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(Ap(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const t=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+t*this._valueRange)}},RadialLinearScale:class W9e extends JR{static id="radialLinear";
vendor: 4,729 bytes, line 1
1static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:kR.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:e=>e,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=$o(d5(this.options)/2),t=this.width=this.maxWidth-e.width,r=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/2+e.left),this.yCenter=Math.floor(this.top+r/2+e.top),this.drawingArea=Math.floor(Math.min(t,r)/2)}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!1);this.min=Gi(e)&&!isNaN(e)?e:0,this.max=Gi(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/d5(this.options))}generateTickLabels(e){JR.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((t,r)=>{const i=Xr(this.options.pointLabels.callback,[t,r],this);return i||0===i?i:""}).filter((t,r)=>this.chart.getDataVisibility(r))}fit(){const e=this.options;e.display&&e.pointLabels.display?function O9e(n){const e={l:n.left+n._padding.left,r:n.right-n._padding.right,t:n.top+n._padding.top,b:n.bottom-n._padding.bottom},t=Object.assign({},e),r=[],i=[],s=n._pointLabels.length,o=n.options.pointLabels,a=o.centerPointLabels?_i/s:0;for(let l=0;l<s;l++){const c=o.setContext(n.getPointLabelContext(l));i[l]=c.padding;const u=n.getPointPosition(l,n.drawingArea+i[l],a),d=Vs(c.font),f=L9e(n.ctx,d,n._pointLabels[l]);r[l]=f;const _=xl(n.getIndexAngle(l)+a),w=Math.round(P3(_));N9e(t,e,_,zde(w,u.x,f.w,0,180),zde(w,u.y,f.h,90,270))}n.setCenterPoint(e.l-t.l,t.r-e.r,e.t-t.t,t.b-e.b),n._pointLabelItems=function U9e(n,e,t){const r=[],i=n._pointLabels.length,s=n.options,{centerPointLabels:o,display:a}=s.pointLabels,l={extra:d5(s)/2,additionalAngle:o?_i/i:0};let c;for(let u=0;u<i;u++){l.padding=t[u],l.size=e[u];const d=F9e(n,u,l);r.push(d),"auto"===a&&(d.visible=V9e(d,c),d.visible&&(c=d))}return r}(n,r,i)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,r,i){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,r,i))}getIndexAngle(e){return xl(e*(yi/(this._pointLabels.length||1))+Kc(this.options.startAngle||0))}getDistanceFromCenterForValue(e){if(Jn(e))return NaN;const t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(Jn(e))return NaN;const t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){const t=this._pointLabels||[];if(e>=0&&e<t.length){const r=t[e];return function q9e(n,e,t){return xp(n,{label:t,index:e,type:"pointLabel"})}(this.getContext(),e,r)}}getPointPosition(e,t,r=0){const i=this.getIndexAngle(e)-ms+r;return{x:Math.cos(i)*t+this.xCenter,y:Math.sin(i)*t+this.yCenter,angle:i}}getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:t,top:r,right:i,bottom:s}=this._pointLabelItems[e];return{left:t,top:r,right:i,bottom:s}}drawBackground(){const{backgroundColor:e,grid:{circular:t}}=this.options;if(e){const r=this.ctx;r.save(),r.beginPath(),$de(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),r.closePath(),r.fillStyle=e,r.fill(),r.restore()}}drawGrid(){const e=this.ctx,t=this.options,{angleLines:r,grid:i,border:s}=t,o=this._pointLabels.length;let a,l,c;if(t.pointLabels.display&&function z9e(n,e){const{ctx:t,options:{pointLabels:r}}=n;for(let i=e-1;i>=0;i--){const s=n._pointLabelItems[i];if(!s.visible)continue;const o=r.setContext(n.getPointLabelContext(i));H9e(t,o,s);const a=Vs(o.font),{x:l,y:c,textAlign:u}=s;I_(t,n._pointLabels[i],l,c+a.lineHeight/2,a,{color:o.color,textAlign:u,textBaseline:"middle"})}}(this,o),i.display&&this.ticks.forEach((u,d)=>{if(0!==d||0===d&&this.min<0){l=this.getDistanceFromCenterForValue(u.value);const f=this.getContext(d),_=i.setContext(f),w=s.setContext(f);!function $9e(n,e,t,r,i){const s=n.ctx,o=e.circular,{color:a,lineWidth:l}=e;!o&&!r||!a||!l||t<0||(s.save(),s.strokeStyle=a,s.lineWidth=l,s.setLineDash(i.dash),s.lineDashOffset=i.dashOffset,s.beginPath(),$de(n,t,o,r),s.closePath(),s.stroke(),s.restore(
1))}(this,_,l,o,w)}}),r.display){for(e.save(),a=o-1;a>=0;a--){const u=r.setContext(this.getPointLabelContext(a)),{color:d,lineWidth:f}=u;!f||!d||(e.lineWidth=f,e.strokeStyle=d,e.setLineDash(u.borderDash),e.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(t.ticks.reverse?this.min:this.max),c=this.getPointPosition(a,l),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(c.x,c.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,t=this.options,r=t.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let s,o;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(i),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((a,l)=>{if(0===l&&this.min>=0&&!t.reverse)return;const c=r.setContext(this.getContext(l)),u=Vs(c.font);if(s=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){e.font=u.string,o=e.measureText(a.label).width,e.fillStyle=c.backdropColor;const d=$o(c.backdropPadding);e.fillRect(-o/2-d.left,-s-u.size/2-d.top,o+d.width,u.size+d.height)}I_(e,a.label,0,-s,u,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),e.restore()}drawTitle(){}},TimeScale:h5,TimeSeriesScale:class J9e extends h5{static id="timeseries";static defaults=h5.defaults;constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=ZR(t,this.min),this._tableRange=ZR(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:t,max:r}=this,i=[],s=[];let o,a,l,c,u;for(o=0,a=e.length;o<a;++o)c=e[o],c>=t&&c<=r&&i.push(c);if(i.length<2)return[{time:t,pos:0},{time:r,pos:1}];for(o=0,a=i.length;o<a;++o)u=i[o+1],l=i[o-1],c=i[o],Math.round((u+l)/2)!==c&&s.push({time:c,pos:o/(a-1)});return s}_generate(){const e=this.min,t=this.max;let r=super.getDataTimestamps();return(!r.includes(e)||!r.length)&&r.splice(0,0,e),(!r.includes(t)||1===r.length)&&r.push(t),r.sort((i,s)=>i-s)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const t=this.getDataTimestamps(),r=this.getLabelTimestamps();return e=t.length&&r.length?this.normalize(t.concat(r)):t.length?t:r,e=this._cache.all=e,e}getDecimalForValue(e){return(ZR(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const t=this._offsets,r=this.getDecimalForPixel(e)/t.factor-t.end;return ZR(this._table,r*this._tableRange+this._minPos,!0)}}});const Z9e=[J6e,x$e,M9e,X9e],eL=function n8e(n,e){return n===e||n!=n&&e!=e},tL=function r8e(n,e){for(var t=n.length;t--;)if(eL(n[t][0],e))return t;return-1};var s8e=Array.prototype.splice;function fb(n){var e=-1,t=null==n?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}fb.prototype.clear=function e8e(){this.__data__=[],this.size=0},fb.prototype.delete=function o8e(n){var e=this.__data__,t=tL(e,n);return!(t<0||(t==e.length-1?e.pop():s8e.call(e,t,1),--this.size,0))},fb.prototype.get=function l8e(n){var e=this.__data__,t=tL(e,n);return t<0?void 0:e[t][1]},fb.prototype.has=function u8e(n){return tL(this.__data__,n)>-1}
1,fb.prototype.set=function h8e(n,e){var t=this.__data__,r=tL(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this};const nL=fb,Jde="object"==typeof global&&global&&global.Object===Object&&global;var E8e="object"==typeof self&&self&&self.Object===Object&&self;const pb=Jde||E8e||Function("return this")();var I8e=pb.Symbol,Xde=Object.prototype,D8e=Xde.hasOwnProperty,C8e=Xde.toString,cC=I8e?I8e.toStringTag:void 0;var k8e=Object.prototype.toString;var Zde=I8e?I8e.toStringTag:void 0;const iL=function N8e(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":Zde&&Zde in Object(n)?function S8e(n){var e=D8e.call(n,cC),t=n[cC];try{n[cC]=void 0;var r=!0}catch{}var i=C8e.call(n);return r&&(e?n[cC]=t:delete n[cC]),i}(n):function P8e(n){return k8e.call(n)}(n)},L_=function F8e(n){var e=typeof n;return null!=n&&("object"==e||"function"==e)},f5=function B8e(n){if(!L_(n))return!1;var e=iL(n);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},p5=pb["__core-js_shared__"];var ehe=function(){var n=/[^.]+$/.exec(p5&&p5.keys&&p5.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();var W8e=Function.prototype.toString;var J8e=/^\[object .+?Constructor\]$/,nqe=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const iqe=function rqe(n){return!(!L_(n)||function z8e(n){return!!ehe&&ehe in n}(n))&&(f5(n)?nqe:J8e).test(function G8e(n){if(null!=n){try{return W8e.call(n)}catch{}try{return n+""}catch{}}return""}(n))},m5=function aqe(n,e){var t=function sqe(n,e){return n?.[e]}(n,e);return iqe(t)?t:void 0},the=m5(pb,"Map"),uC=m5(Object,"create");var gqe=Object.prototype.hasOwnProperty;var wqe=Object.prototype.hasOwnProperty;function mb(n){var e=-1,t=null==n?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}mb.prototype.clear=function uqe(){this.__data__=uC?uC(null):{},this.size=0},mb.prototype.delete=function hqe(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e},mb.prototype.get=function _qe(n){var e=this.__data__;if(uC){var t=e[n];return"__lodash_hash_undefined__"===t?void 0:t}return gqe.call(e,n)?e[n]:void 0},mb.prototype.has=function bqe(n){var e=this.__data__;return uC?void 0!==e[n]:wqe.call(e,n)},mb.prototype.set=function Mqe(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=uC&&void 0===e?"__lodash_hash_undefined__":e,this};const nhe=mb,sL=function xqe(n,e){var t=n.__data__;return function Sqe(n){var e=typeof n;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==n:null===n}(e)?t["string"==typeof e?"string":"hash"]:t.map};function gb(n){var e=-1,t=null==n?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}gb.prototype.clear=function Dqe(){this.size=0,this.__data__={hash:new nhe,map:new(the||nL),string:new nhe}},gb.prototype.delete=function kqe(n){var e=sL(this,n).delete(n);return this.size-=e?1:0,e},gb.prototype.get=function Rqe(n){return sL(this,n).get(n)},gb.prototype.has=function Oqe(n){return sL(this,n).has(n)},gb.prototype.set=function Fqe(n,e){var t=sL(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,this};const Uqe=gb;function _b(n){var e=this.__data__=new nL(n);this.size=e.size}_b.prototype.clear=function p8e(){this.__data__=new nL,this.size=0},_b.prototype.delete=function g8e(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t},_b.prototype.get=function y8e(n){return this.__data__.get(n)},_b.prototype.has=function w8e(n){return this.__data__.has(n)},_b.prototype.set=function Yqe(n,e){var t=this.__data__;if(t instanceof nL){var r=t.__data__;if(!the||r.length<199)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new Uqe(r)}return t.set(n,e),this.size=t.size,this};const Hqe=_b;var zqe=function(){try{var n=m5(Object,"defineProperty");return n({},"",{}),n}catch{}}();const oL=zqe,g5=function $qe(n,e,t){"__proto__"==e&&oL?oL(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t},_5=function qqe(n,e,t){(void 0!==t&&!eL(n[e],t)||void 0===t&&!(e in n))&&g5(n,e,t)};var Gqe=function Wqe(n){return function(e,t,r){for(var i=-1,s=Object(e),o=r(e),a=o.length;a--;){var l=o[n?a:++i];
1if(!1===t(s[l],l,s))break}return e}}();const Kqe=Gqe;var rhe="object"==typeof exports&&exports&&!exports.nodeType&&exports,ihe=rhe&&"object"==typeof module&&module&&!module.nodeType&&module,she=ihe&&ihe.exports===rhe?pb.Buffer:void 0,ohe=she?she.allocUnsafe:void 0;const ahe=pb.Uint8Array,r7e=function n7e(n,e){var t=e?function e7e(n){var e=new n.constructor(n.byteLength);return new ahe(e).set(new ahe(n)),e}(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)};var lhe=Object.create,o7e=function(){function n(){}return function(e){if(!L_(e))return{};if(lhe)return lhe(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}}();const a7e=o7e;var c7e=function l7e(n,e){return function(t){return n(e(t))}}(Object.getPrototypeOf,Object);const che=c7e;var u7e=Object.prototype;const uhe=function d7e(n){var e=n&&n.constructor;return n===("function"==typeof e&&e.prototype||u7e)},dC=function p7e(n){return null!=n&&"object"==typeof n},dhe=function g7e(n){return dC(n)&&"[object Arguments]"==iL(n)};var hhe=Object.prototype,_7e=hhe.hasOwnProperty,y7e=hhe.propertyIsEnumerable,v7e=dhe(function(){return arguments}())?dhe:function(n){return dC(n)&&_7e.call(n,"callee")&&!y7e.call(n,"callee")};const y5=v7e,v5=Array.isArray,fhe=function T7e(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=9007199254740991},w5=function E7e(n){return null!=n&&fhe(n.length)&&!f5(n)};var phe="object"==typeof exports&&exports&&!exports.nodeType&&exports,mhe=phe&&"object"==typeof module&&module&&!module.nodeType&&module,ghe=mhe&&mhe.exports===phe?pb.Buffer:void 0;const _he=(ghe?ghe.isBuffer:void 0)||function D7e(){return!1};var yhe=Function.prototype.toString,L7e=Object.prototype.hasOwnProperty,O7e=yhe.call(Object);var vi={};vi["[object Float32Array]"]=vi["[object Float64Array]"]=vi["[object Int8Array]"]=vi["[object Int16Array]"]=vi["[object Int32Array]"]=vi["[object Uint8Array]"]=vi["[object Uint8ClampedArray]"]=vi["[object Uint16Array]"]=vi["[object Uint32Array]"]=!0,vi["[object Arguments]"]=vi["[object Array]"]=vi["[object ArrayBuffer]"]=vi["[object Boolean]"]=vi["[object DataView]"]=vi["[object Date]"]=vi["[object Error]"]=vi["[object Function]"]=vi["[object Map]"]=vi["[object Number]"]=vi["[object Object]"]=vi["[object RegExp]"]=vi["[object Set]"]=vi["[object String]"]=vi["[object WeakMap]"]=!1;var vhe="object"==typeof exports&&exports&&!exports.nodeType&&exports,hC=vhe&&"object"==typeof module&&module&&!module.nodeType&&module,b5=hC&&hC.exports===vhe&&Jde.process,fWe=function(){try{return hC&&hC.require&&hC.require("util").types||b5&&b5.binding&&b5.binding("util")}catch{}}(),bhe=fWe&&fWe.isTypedArray;const The=bhe?function uWe(n){return function(e){return n(e)}}(bhe):function lWe(n){return dC(n)&&fhe(n.length)&&!!vi[iL(n)]},T5=function mWe(n,e){if(("constructor"!==e||"function"!=typeof n[e])&&"__proto__"!=e)return n[e]};var _We=Object.prototype.hasOwnProperty;const vWe=function yWe(n,e,t){var r=n[e];(!_We.call(n,e)||!eL(r,t)||void 0===t&&!(e in n))&&g5(n,e,t)};var IWe=/^(?:0|[1-9]\d*)$/;const Ehe=function DWe(n,e){var t=typeof n;return!!(e=e??9007199254740991)&&("number"==t||"symbol"!=t&&IWe.test(n))&&n>-1&&n%1==0&&n<e};var SWe=Object.prototype.hasOwnProperty;const xWe=function AWe(n,e){var t=v5(n),r=!t&&y5(n),i=!t&&!r&&_he(n),s=!t&&!r&&!i&&The(n),o=t||r||i||s,a=o?function TWe(n,e){for(var t=-1,r=Array(n);++t<n;)r[t]=e(t);return r}(n.length,String):[],l=a.length;for(var c in n)(e||SWe.call(n,c))&&(!o||!("length"==c||i&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ehe(c,l)))&&a.push(c);return a};var LWe=Object.prototype.hasOwnProperty;const NWe=function OWe(n){if(!L_(n))return function kWe(n){var e=[];if(null!=n)for(var t in Object(n))e.push(t);return e}(n);var e=uhe(n),t=[];for(var r in n)"constructor"==r&&(e||!LWe.call(n,r))||t.push(r);return t},Mhe=function FWe(n){return w5(n)?xWe(n,!0):NWe(n)},UWe=function VWe(n){return function wWe(n,e,t,r){var i=!t;t||(t={});for(var s=-1,o=e.length;++s<o;){var a=e[s],l=r?r(t[a],n[a],a,t,n):void 0;void 0===l&&(l=n[a]),i?g5(t,a,l):vWe(t,a,l)}return t}(n,Mhe(n))},YWe=function jWe(n,e,t,r,i,s,o){var a=T5(n,t),l=T5(e,t),c=o.get(l);if(c)_5(n,t,c);else{var u=s?s(a,l,t+"",n,e,o):void 0,d=void 0===u;if(d){var f=v5(l),_=!f&&_he(l),w=!f&&!_&&The(l);u=l,f||_||w?v5(a)?u=a:function M7e(n){return dC(n)&&w5(n)}(a)?u=function i7e(n,e){var t=-1,r=n.length;for(e||(e=Array(r));++t<r;)e[t]=n[t];return e}(a):_?(d=!1,u=function Jqe(n,e){if(e)return n.slice();var t=n.length,r=ohe?ohe(t):new n.constructor(t);return n.copy(r),r}(l,!0)):w?(d=!1,u=r7e(l,!0)):u=[]:function N7e(n){if(!dC(n)||"[object Object]"!=iL(n))return!1;var e=che(n);if(null===e)return!0;var t=L7e.call(e,"constructor")&&e.constructor;return"function"==typeof t&&t instanceof t&&yhe.call(t)==O7e}
1(l)||y5(l)?(u=a,y5(a)?u=UWe(a):(!L_(a)||f5(a))&&(u=function h7e(n){return"function"!=typeof n.constructor||uhe(n)?{}:a7e(che(n))}(l))):d=!1}d&&(o.set(l,u),i(u,l,r,s,o),o.delete(l)),_5(n,t,u)}},BWe=function Ihe(n,e,t,r,i){n!==e&&Kqe(e,function(s,o){if(i||(i=new Hqe),L_(s))YWe(n,e,o,t,Ihe,r,i);else{var a=r?r(T5(n,o),s,o+"",n,e,i):void 0;void 0===a&&(a=s),_5(n,o,a)}},Mhe)},Dhe=function HWe(n){return n};var Che=Math.max;const KWe=function GWe(n){return function(){return n}};var QWe=oL?function(n,e){return oL(n,"toString",{configurable:!0,enumerable:!1,value:KWe(e),writable:!0})}:Dhe,eGe=Date.now,nGe=function tGe(n){var e=0,t=0;return function(){var r=eGe(),i=16-(r-t);if(t=r,i>0){if(++e>=800)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}(QWe);const rGe=nGe,sGe=function iGe(n,e){return rGe(function qWe(n,e,t){return e=Che(void 0===e?n.length-1:e,0),function(){for(var r=arguments,i=-1,s=Che(r.length-e,0),o=Array(s);++i<s;)o[i]=r[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=r[i];return a[e]=t(o),function zWe(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}(n,this,a)}}(n,e,Dhe),n+"")};var cGe=function lGe(n){return sGe(function(e,t){var r=-1,i=t.length,s=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(s=n.length>3&&"function"==typeof s?(i--,s):void 0,o&&function oGe(n,e,t){if(!L_(t))return!1;var r=typeof e;return!!("number"==r?w5(t)&&Ehe(e,t.length):"string"==r&&e in t)&&eL(t[e],n)}(t[0],t[1],o)&&(s=i<3?void 0:s,i=1),e=Object(e);++r<i;){var a=t[r];a&&n(e,a,r,s)}return e})}(function(n,e,t){BWe(n,e,t)});const She=cGe;let uGe=(()=>{class n{constructor(){this.colorschemesOptions=new je(void 0)}setColorschemesOptions(t){this.pColorschemesOptions=t,this.colorschemesOptions.next(t)}getColorschemesOptions(){return this.pColorschemesOptions}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),dGe=(()=>{class n{constructor(t,r,i){this.zone=r,this.themeService=i,this.type="bar",this.plugins=[],this.chartClick=new Tn,this.chartHover=new Tn,this.subs=[],this.themeOverrides={},this.ctx=t.nativeElement.getContext("2d"),this.subs.push(this.themeService.colorschemesOptions.pipe(dx()).subscribe(s=>this.themeChanged(s)))}ngOnChanges(t){const r=["type"],i=Object.getOwnPropertyNames(t);if(i.some(s=>r.includes(s))||i.every(s=>t[s].isFirstChange()))this.render();else{const s=this.getChartConfiguration();this.chart&&(Object.assign(this.chart.config.data,s.data),this.chart.config.plugins&&Object.assign(this.chart.config.plugins,s.plugins),this.chart.config.options&&Object.assign(this.chart.config.options,s.options)),this.update()}}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.subs.forEach(t=>t.unsubscribe())}render(){return this.chart&&this.chart.destroy(),this.zone.runOutsideAngular(()=>this.chart=new P_(this.ctx,this.getChartConfiguration()))}update(t){this.chart&&this.zone.runOutsideAngular(()=>this.chart?.update(t))}hideDataset(t,r){this.chart&&(this.chart.getDatasetMeta(t).hidden=r,this.update())}isDatasetHidden(t){return this.chart?.getDatasetMeta(t)?.hidden}toBase64Image(){return this.chart?.toBase64Image()}themeChanged(t){this.themeOverrides=t,this.chart&&(this.chart.config.options&&Object.assign(this.chart.config.options,this.getChartOptions()),this.update())}getChartOptions(){return She({onHover:(t,r)=>{!this.chartHover.observed&&!this.chartHover.observers?.length||this.zone.run(()=>this.chartHover.emit({event:t,active:r}))},onClick:(t,r)=>{!this.chartClick.observed&&!this.chartClick.observers?.length||this.zone.run(()=>this.chartClick.emit({event:t,active:r}))}},this.themeOverrides,this.options,{plugins:{legend:{display:this.legend}}})}getChartConfiguration(){return{type:this.type,data:this.getChartData(),options:this.getChartOptions(),plugins:this.plugins}}getChartData(){return this.data?this.data:{labels:this.labels||[],datasets:this.datasets||[]}}static#e=this.\u0275fac=function(r){return new(r||n)(_e(Qn),_e(vn),_e(uGe))};static#t=this.\u0275dir=V({type:n,selectors:[["canvas","baseChart",""]],inputs:{type:"type",legend:"legend",data:"data",options:"options",plugins:"plugins",labels:"labels",datasets:"datasets"},outputs:{chartClick:"chartClick",chartHover:"chartHover"},exportAs:["base-chart"],features:[or]})}return n})();const hGe=[[255,99,132],[54,162,235],[255,206,86],[231,233,237],[75,192,192],[151,187,205],[220,220,220],[247,70,74],[70,191,189],[253,180,92],[148,159,177],[77,83,96]],fGe={plugins:{colors:{enabled:!1}},datasets:{line:{backgroundColor:n=>Rp(Lp(n.datasetIndex),.4),borderColor:n=>
1Rp(Lp(n.datasetIndex),1),pointBackgroundColor:n=>Rp(Lp(n.datasetIndex),1),pointBorderColor:"#fff"},bar:{backgroundColor:n=>Rp(Lp(n.datasetIndex),.6),borderColor:n=>Rp(Lp(n.datasetIndex),1)},get radar(){return this.line},doughnut:{backgroundColor:n=>Rp(Lp(n.dataIndex),.6),borderColor:"#fff"},get pie(){return this.doughnut},polarArea:{backgroundColor:n=>Rp(Lp(n.dataIndex),.6),borderColor:n=>Rp(Lp(n.dataIndex),1)},get bubble(){return this.doughnut},get scatter(){return this.doughnut},get area(){return this.polarArea}}};function Rp(n,e){return"rgba("+n.concat(e).join(",")+")"}function E5(n,e){return Math.floor(Math.random()*(e-n+1))+n}function Lp(n=0){return hGe[n]||function pGe(){return[E5(0,255),E5(0,255),E5(0,255)]}()}let Ahe=(()=>{class n{constructor(){this.generateColors=!0}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();P_.register(...Z9e);let mGe=(()=>{class n{constructor(t){t?.plugins&&P_.register(...t.plugins);const r=She(t?.generateColors?fGe:{},t?.defaults||{});Vi.set(r)}static forRoot(t){return{ngModule:n,providers:[{provide:Ahe,useValue:t}]}}static#e=this.\u0275fac=function(r){return new(r||n)(ve(Ahe,8))};static#t=this.\u0275mod=A({type:n});static#n=this.\u0275inj=ai({})}return n})();const gGe=["contentProjection"];function _Ge(n,e){if(1&n&&(Y(0,"option",16),re(1),H()),2&n){const t=e.$implicit;ht("value",t),Ve(),Mi(t)}}function yGe(n,e){if(1&n&&(Y(0,"option",16),re(1),H()),2&n){const t=e.$implicit;ht("value",t),Ve(),Mi(t)}}function vGe(n,e){if(1&n&&(Y(0,"option",16),re(1),H()),2&n){const t=e.$implicit;ht("value",t),Ve(),Mi(t)}}let wGe=(()=>{class n{constructor(t,r,i,s){this.elRef=t,this.compiler=r,this.fb=i,this.cookieService=s,this.xLabel="",this.yLabel="",this.insights="Insights feature is not available for this data",this.xDataOptions=[],this.yDataOptions=[],this.dataOptions=[],this.selectedOption="",this.platform="",this.lineChartData=[{data:[],label:""}],this.lineChartLabels=[],this.lineChartOptions={responsive:!0},this.lineChartType="line",this.totalNodes=0,this.form=this.fb.group({xData:[this.xDataOptions[0]],yData:[this.yDataOptions[0]],dataType:[this.dataOptions[0]]}),this.platform=this.cookieService.get("analyticsPlatform")}ngOnInit(){this.form.valueChanges.pipe(st(t=>({xLabel:t.xData,yLabel:t.yData})),dx((t,r)=>t.xLabel===r.xLabel&&t.yLabel===r.yLabel)).subscribe(({xLabel:t,yLabel:r})=>{this.xLabel!==t&&(this.xLabel=t),this.yLabel!==r&&(this.yLabel=r),this.updateChart(this.xLabel,this.yLabel)}),this.form.get("dataType")?.valueChanges.subscribe(t=>{this.selectedOption=t,this.setDataToType(t)})}setDataToType(t){this.xData=[],this.yData=[],this.xDataOptions=[],this.yDataOptions=[],this.compiler.summarizeData(this.data[t],this.platform).xDataKeys.forEach(r=>{this.xDataOptions.push(r);var i={data:[],label:r};this.data[t].response.forEach(s=>{i.data.push(s[r]>1e5?Sce.formatDate(s[r]):s[r].toString())}),this.xData.push(i)}),this.compiler.summarizeData(this.data[t],this.platform).yDataKeys.forEach(r=>{this.yDataOptions.push(r);var i={data:[],label:r};this.data[t].response.forEach(s=>{i.data.push(s[r].toString())}),this.yData.push(i)}),this.form.patchValue({xData:this.xData[0].label,yData:this.yData[0].label}),this.xLabel=this.xData[0].label,this.yLabel=this.yData[0].label,this.updateChart(this.xData[0].label,this.yData[0].label)}ngOnChanges(){this.xData=[],this.yData=[],this.dataOptions=[],this.xDataOptions=[],this.yDataOptions=[];const t=Object.keys(this.data);this.dataOptions.push(...t);var r={};t.length>0?r=this.data[t[0]]:console.error("The JSON object is empty."),this.compiler.summarizeData(r,this.platform).xDataKeys.forEach(i=>{if("string"==typeof i){this.xDataOptions.push(i);var s={data:[],label:i};r.response.forEach(a=>{s.data.push(a[i]>1e5?Sce.formatDate(a[i]):a[i].toString())}),this.xData.push(s)}else if("object"==typeof i){var o="";s={data:[],label:""},r.response.forEach(l=>{var c=Ace(i,l);s.data.push(c.value.toString()),s.label=c.key,o=c.key}),this.xDataOptions.push(o),this.xData.push(s)}}),this.compiler.summarizeData(r,this.platform).yDataKeys.forEach(i=>
1{if("string"==typeof i){this.yDataOptions.push(i);var s={data:[],label:i};r.response.forEach(a=>{s.data.push(a[i].toString())}),this.yData.push(s)}else if("object"==typeof i){var o="";s={data:[],label:""},r.response.forEach(l=>{var c=Ace(i,l);s.data.push(c.value.toString()),s.label=c.key,o=c.key}),this.yDataOptions.push(o),this.yData.push(s)}}),this.form.patchValue({xData:this.xData[0].label,yData:this.yData[0].label}),this.xLabel=this.xData[0].label,this.yLabel=this.yData[0].label,this.lineChartData[0].label=this.yLabel,this.updateChart(this.xData[0].label,this.yData[0].label)}updateChart(t,r){var i=this.yData.find(o=>o.label===r).data,s=this.xData.find(o=>o.label===t).data;this.lineChartData[0].data=i,this.lineChartLabels=s,this.lineChartData[0].label=r}static#e=this.\u0275fac=function(r){return new(r||n)(_e(Qn),_e(F3e),_e($Ne),_e(T3))};static#t=this.\u0275cmp=xt({type:n,selectors:[["app-one-box"]],contentQueries:function(r,i,s){if(1&r&&K2(s,gGe,5,Qn),2&r){let o;ss(o=os())&&(i.contentProjection=o.first)}},inputs:{data:"data"},features:[or],decls:25,vars:9,consts:[[1,"container"],[1,"parent"],[1,"left-section"],[1,"resizable-form",3,"formGroup"],["for","xData"],["id","xData","formControlName","xData"],[3,"value",4,"ngFor","ngForOf"],["for","yData"],["id","yData","formControlName","yData"],[1,"chart-container"],["baseChart","",3,"datasets","labels","options"],[1,"right-section"],[1,"resizable-form","vertical-form",3,"formGroup"],["for","dataType"],["id","dataType","formControlName","dataType"],[1,"insights-section"],[3,"value"]],template:function(r,i){1&r&&(Y(0,"div",0)(1,"div",1)(2,"div",2)(3,"form",3)(4,"label",4),re(5,"X Data"),H(),Y(6,"select",5),Oi(7,_Ge,2,2,"option",6),H(),Y(8,"label",7),re(9,"Y Data"),H(),Y(10,"select",8),Oi(11,yGe,2,2,"option",6),H()(),Y(12,"div",9),ze(13,"canvas",10),H()(),Y(14,"div",11)(15,"form",12)(16,"label",13),re(17,"Data Type"),H(),Y(18,"select",14),Oi(19,vGe,2,2,"option",6),H()(),Y(20,"div",15)(21,"h3"),re(22,"Insights"),H(),Y(23,"p"),re(24),H()()()()()),2&r&&(Ve(3),ht("formGroup",i.form),Ve(4),ht("ngForOf",i.xDataOptions),Ve(4),ht("ngForOf",i.yDataOptions),Ve(2),ht("datasets",i.lineChartData)("labels",i.lineChartLabels)("options",i.lineChartOptions),Ve(2),ht("formGroup",i.form),Ve(4),ht("ngForOf",i.dataOptions),Ve(5),Mi(i.insights))},dependencies:[ig,zg,np,rp,$g,jg,Yg,dGe,Ik,P4],styles:[".container[_ngcontent-%COMP%]{display:flex;justify-content:center;height:80vh;width:80%;position:fixed;top:10%;overflow:hidden}.parent[_ngcontent-%COMP%]{display:flex;gap:20px;width:100%;max-width:1200px;background-color:#f9f9f9;padding:20px;border-radius:8px;box-shadow:0 0 10px #0000001a;overflow:hidden}.left-section[_ngcontent-%COMP%], .right-section[_ngcontent-%COMP%]{flex:1;background-color:#f9f9f9;padding:20px;border-radius:8px;box-shadow:0 0 10px #0000001a}.resizable-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.vertical-form[_ngcontent-%COMP%], .chart-container[_ngcontent-%COMP%], .insights-section[_ngcontent-%COMP%]{margin-top:20px}label[_ngcontent-%COMP%]{font-weight:700;margin-bottom:5px}select[_ngcontent-%COMP%]{padding:8px;border:1px solid #ccc;border-radius:4px}h3[_ngcontent-%COMP%]{margin-top:0}p[_ngcontent-%COMP%]{margin:0}"]})}return n})();function bGe(n,e){if(1&n){const t=Ei();Y(0,"app-select-bar",8),Qe("dataEvent",function(i){return bt(t),vt(tn().onDataChange(i))}),H()}if(2&n){const t=tn();ht("platform",t.platform)("accessToken",t.accessToken)}}function TGe(n,e){1&n&&ze(0,"app-pos-connect",9,0),2&n&&ht("ngStyle",tn().posSelectForm)}function EGe(n,e){if(1&n){const t=Ei();Y(0,"button",10),Qe("click",function(){return bt(t),vt(tn().signOut())}),re(1,"SignOut"),H()}}function MGe(n,e){1&n&&ze(0,"app-one-box",11),2&n&&ht("data",tn().data)}let IGe=(()=>{class n{constructor(t,r,i,s,o,a){this.router=t,this.http=r,this.route=i,this.dataService=s,this.sharedService=o,this.cookieService=a,this.selectedItems=[],this.posSelectForm={display:"block"},this.accessToken="access",this.widgets=[],this.loggedIn=!1}ngOnInit(){var t=this;return(0,ee.A)(function*(){t.accessToken=t.cookieService.get("analyticsAccountId"),null!=t.accessToken&&""!=t.accessToken&&(console.log("Line 51"),t.loggedIn=!0,t.removeAccessButtonVisibility()),c
1onsole.log(`Access Token: ${t.accessToken}`),t.parentAttributes=t.sharedService.parentAttributes,t.route.queryParams.subscribe(r=>{switch(t.platform=t.cookieService.get("analyticsPlatform"),t.platform){case"LightSpeed":t.lightSpeedHandler(r);break;case"Clover":t.cloverHandler(r);break;case"Shopify":t.shopifyHandler(r);break;default:t.defaultHandler(r)}}),t.parentAttributes.subscribe(r=>t.selectedItems=r)})()}onDataChange(t){var r=this;return(0,ee.A)(function*(){console.log(t),r.data=t})()}signOut(){this.cookieService.delete("analyticsAccountId"),this.loggedIn=!1,this.accessToken="",this.router.navigate([],{relativeTo:this.route,queryParams:{}}).then(()=>{window.location.reload()})}cancel(){this.selectBar.cancel()}toggleAccessButtonVisibility(){const t=document.getElementById("accessTokenButton");t.classList.contains("visible")?t.classList.remove("visible"):t.classList.add("visible")}removeAccessButtonVisibility(){const t=document.getElementById("accessTokenButton");t.classList.contains("visible")&&t.classList.remove("visible")}getAccessToken(){var t=this;return(0,ee.A)(function*(){new Promise(r=>{const i=t.cookieService.get("analyticsPlatform");new Dce(t.http).getAccessToken(i,t.accessTokenParams).then(s=>{t.accessToken=s,null!=s&&(t.cookieService.set("analyticsAccountId",s),t.toggleAccessButtonVisibility(),t.loggedIn=!0,window.location.replace("/analytics"))})})})()}defaultHandler(t){null!=t.code&&(null==this.accessToken||""==this.accessToken)&&(this.accessTokenParams={code:t.code},this.posSelectForm.display="none",this.toggleAccessButtonVisibility())}lightSpeedHandler(t){null!=t.code&&null!=t.domain_prefix&&(this.accessTokenParams={code:t.code,domain_prefix:t.domain_prefix},this.posSelectForm.display="none",this.toggleAccessButtonVisibility())}cloverHandler(t){null!=t.code&&null!=t.merchant_id&&(this.accessTokenParams={code:t.code,merchant_id:t.merchant_id},console.log(t.merchant_id),this.posSelectForm.display="none",this.toggleAccessButtonVisibility())}shopifyHandler(t){null!=t.code&&null!=t.shop&&(this.accessTokenParams={code:t.code,shop:t.shop},this.posSelectForm.display="none",this.toggleAccessButtonVisibility())}static#e=this.\u0275fac=function(r){return new(r||n)(_e(bs),_e(Bc),_e(Af),_e(I3),_e(E3),_e(T3))};static#t=this.\u0275cmp=xt({type:n,selectors:[["app-analytics"]],viewQuery:function(r,i){if(1&r&&(Ps(Ece,5),Ps(Cce,5)),2&r){let s;ss(s=os())&&(i.posModal=s.first),ss(s=os())&&(i.selectBar=s.first)}},decls:9,vars:4,consts:[["posModal",""],[1,"container"],["class","select-bar",3,"platform","accessToken","dataEvent",4,"ngIf"],["class","pos-button",3,"ngStyle",4,"ngIf"],["id","accessTokenButton",1,"access-token"],["id","accessTokenBtn",3,"click"],["class","sign-out-button",3,"click",4,"ngIf"],["class","display",3,"data",4,"ngIf"],[1,"select-bar",3,"dataEvent","platform","accessToken"],[1,"pos-button",3,"ngStyle"],[1,"sign-out-button",3,"click"],[1,"display",3,"data"]],template:function(r,i){1&r&&(ze(0,"app-header"),Y(1,"div",1),Oi(2,bGe,1,2,"app-select-bar",2)(3,TGe,2,1,"app-pos-connect",3),Y(4,"div",4)(5,"button",5),Qe("click",function(){return i.getAccessToken()}),re(6,"Allow CouBon for Access"),H()(),Oi(7,EGe,2,0,"button",6)(8,MGe,1,1,"app-one-box",7),H()),2&r&&(Ve(2),ht("ngIf",!0===i.loggedIn),Ve(),ht("ngIf",!1===i.loggedIn),Ve(4),ht("ngIf",!0===i.loggedIn),Ve(),ht("ngIf",!0===i.loggedIn))},dependencies:[sg,og,ib,Ece,Cce,wGe],styles:["*[_ngcontent-%COMP%]{font-family:Verdana,sans-serif;overflow:hidden}body[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:100%;margin:0;font-family:Arial,sans-serif;background-color:#f0f0f0;flex-direction:column;overflow:hidden}.container[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;overflow:hidden}.display[_ngcontent-%COMP%]{position:absolute;width:90%;height:90%;left:15%;z-index:1}.data-parser[_ngcontent-%COMP%]{position:absolute;top:10%;left:10%;z-index:10}.pos-button[_ngcontent-%COMP%]{z-index:100}.app-widgets[_ngcontent-%COMP%]{flex-basis:calc(50% - 20px);box-sizing:border-box;padding:20px;border:2px solid #333;border-radius:8px;margin:10px}.popup-button[_ngcontent-%COMP%]{position:fixed;top:5rem;right:5rem;padding:10px;background-color:#f01363;color:#fff;border:none;border-radius:4px;cursor:pointer;z-index:10}.popup-button[_ngcontent-%COMP%]:hover{background-color:#2980b9}.access-token.button[_ngcontent-%COMP%]{text-align:center}.access-token[_ngcontent-%COMP%]{padding:10px 20px;font-size:16px;color:#fff;background-color:#007bff;border:none;border-radius:5px;cursor:pointer;position:absolute;top:50%;left:50%;transition:background-color .3s ease;display:none;z-index:100}#accessTokenBtn[_ngcontent-%COMP%]{padding:15px 30px;font-size:16px;font-weight:700;color:#fff;background-color:#007bff;border:none;border-radius:5px;cursor:pointer;transition:background-color .3s,transform .3s}.sign-out-button[_ngcontent-%COMP%]{padding:10px 20px;font-size:16px;color:#fff;background-color:#007bff;border:none;border-radius:5px;cursor:pointer;position:absolute;top:10%;right:5%;z-index:100}.access-token.visible[_ngcontent-%COMP%]{display:inline-block}*[_ngcontent-%COMP%] .access-token[_ngcontent-%COMP%]:hover{background-color:#0056b3}.select-bar[_ngcontent-%COMP%]{z-index:102;order:-1}"]}
1)}return n})();class xhe{constructor(e,t,r,i){this.authService=e,this.httpClient=t,this.user=r,this.selectBar=i,this.accessToken="",this.pageId="",r?(this.accessToken=r.authToken,this.igUserIdReady=this.loadPageIdAndIGUserId()):console.error("User is null or undefined")}loadPageIdAndIGUserId(){var e=this;return(0,ee.A)(function*(){let t=null;try{t=yield Ke(e.httpClient.get("https://graph.facebook.com/v20.0/"+e.user.id+"/accounts?access_token="+e.getAccessToken()))}catch(o){return alert("Session expired!"),e.selectBar.signOut(),Promise.reject(o.message())}const r=JSON.parse(JSON.stringify(t));e.pageId=r.data[0].id;const i=yield Ke(e.httpClient.get("https://graph.facebook.com/v20.0/"+e.pageId+"?fields=instagram_business_account&access_token="+e.getAccessToken()));if(!i||!i.instagram_business_account)return Promise.reject("No Instagram Business Account found for this user.");const s=JSON.parse(JSON.stringify(i));e.igUserId=s.instagram_business_account.id})()}getData(e="",t="",r,i,s,o){var a=this;return(0,ee.A)(function*(){return a.getDataFromPlatform(e,t,r,i,s,o)})()}getAccessToken(){return this.accessToken}getNumFollowers(){var e=this;return(0,ee.A)(function*(){if(yield e.igUserIdReady,!e.accessToken)return Promise.reject("Access token not available.");try{const t=yield Ke(e.httpClient.get("https://graph.facebook.com/v20.0/"+e.igUserId+"?fields=followers_count&access_token="+e.getAccessToken()));return JSON.parse(JSON.stringify(t))}catch(t){return console.error("Error fetching Facebook user data:",t),Promise.reject(t)}})()}getDataFromPlatform(e,t,r,i,s,o){var a=this;return(0,ee.A)(function*(){try{const l=[[],[]];if(""!==e){let c=r;for(;c<i;){let u=c+2592e3;u>i&&(u=i);const d=yield a.getInstagramUserData(e,c,u,s);for(let f=0;f<d.data.length;f++)l[0].push(d.data[f]);c=u}}if(""!==t){const c=yield a.getInstagramMediaData(t);for(let u=0;u<c.data.length;u++)l[1].push(c.data[u])}return l}catch(l){return console.error("Error fetching data from platform:",l),[]}})()}getInstagramMediaData(e){var t=this;return(0,ee.A)(function*(){if(yield t.igUserIdReady,!t.accessToken)return Promise.reject("Access token not available.");try{const r=yield Ke(t.httpClient.get("https://graph.facebook.com/v20.0/"+t.igUserId+"/media?access_token="+t.getAccessToken())),s=JSON.parse(JSON.stringify(r)).data[0].id,o=yield Ke(t.httpClient.get("https://graph.facebook.com/v20.0/"+s+"/insights?metric="+e+"&access_token="+t.getAccessToken())),a=JSON.parse(JSON.stringify(o));return console.log(a),a}catch(r){return console.error("Error fetching Facebook media data:",r),Promise.reject(r)}})()}getInstagramUserData(e,t,r,i){var s=this;return(0,ee.A)(function*(){if(yield s.igUserIdReady,!s.accessToken)return Promise.reject("Access token not available.");try{const o=yield Ke(s.httpClient.get("https://graph.facebook.com/v20.0/"+s.igUserId+"/insights?metric="+e+"&period="+i+"&since="+t+"&until="+r+"&access_token="+s.getAccessToken())),a=JSON.parse(JSON.stringify(o));return console.log(a),a}catch(o){return console.error("Error fetching Facebook user data:",o),Promise.reject(o)}})()}}let khe=(()=>{class n extends ip{constructor(t){super(t),this.elementRef=t,this.close=new Tn}cancel(){super.cancel(),this.close.emit()}static#e=this.\u0275fac=function(r){return new(r||n)(_e(Qn))};static#t=this.\u0275cmp=xt({type:n,selectors:[["app-popup"]],outputs:{close:"close"},features:[Mn],decls:11,vars:0,consts:[[1,"overlay-blurred",3,"click"],[1,"popup"],["src","=../../assets/X Icon.svg","id","x-icon",3,"click"],[1,"white-container"],[1,"gridContainer"],[1,"field"],[1,"one"],[1,"outputCanvas",2,"border","1px solid #000","display","none"],[1,"cancelButton",3,"click"]],template:function(r,i){1&r&&(Y(0,"div",0),Qe("click",function(){return i.cancel()}),H(),Y(1,"div",1)(2,"img",2),Qe("click",function(){return i.cancel()}),H(),ze(3,"div",3),Y(4,"div",4)(5,"div",5)(6,"label",6),re(7,"You can select only maximum 4 insights"),H()()(),ze(8,"canvas",7),Y(9,"button",8),Qe("click",function(){return i.cancel()}),re(10,"Cancel"),H()())},styles:["@media only screen and (min-width: 575px){.popup[_ngcontent-%COMP%]{position:absolute;
1left:50%;top:50%;transform:translate(-50%,-50%);border:1.5px solid transparent;border-radius:10px;background-color:#fafafa;height:32.5rem;width:29rem;z-index:101;padding:61px 49px;animation:fadeInAnimation ease 1.5s;animation-iteration-count:1;animation-fill-mode:forwards}#x-icon[_ngcontent-%COMP%]{position:absolute;height:21px;top:27px;right:26px;cursor:pointer;z-index:2}.popup[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#404040;font-size:1.1rem;font-weight:700;display:block;cursor:text;margin-bottom:4px}.cancelButton[_ngcontent-%COMP%]{position:absolute;bottom:30px;left:15px;height:2.5rem;width:16rem;background-color:#404040;text-align:center;justify-content:center;align-items:center;border-radius:6px;border-color:transparent;color:#fff;cursor:pointer;font-size:.9rem}.cancelButton[_ngcontent-%COMP%]:hover{box-shadow:0 0 2px #191818}.gridContainer[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 0fr;grid-gap:8px;padding-bottom:20px}.white-container[_ngcontent-%COMP%]{left:4%;width:92%;height:77%;background-color:#fff;position:absolute;bottom:13%;border-radius:17px;z-index:-2}.overlay-blurred[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;z-index:100;background-color:#070707c4;top:0;left:0}}@media only screen and (max-width: 575px){.overlay-blurred[_ngcontent-%COMP%]{display:none}.popup[_ngcontent-%COMP%]{position:absolute;height:100%;width:100%;display:block;top:4%;background-color:#fafafa}.white-container[_ngcontent-%COMP%]{left:2%;width:92%;height:80%;background-color:#fff;position:absolute;bottom:14%;border-radius:17px;z-index:0}#x-icon[_ngcontent-%COMP%]{position:absolute;height:24px;top:25px;right:40px;cursor:pointer;z-index:2}.gridContainer[_ngcontent-%COMP%]{display:block}.cancelButton[_ngcontent-%COMP%]{position:absolute;top:52rem;left:25px;height:2.5rem;width:14rem;background-color:#404040;text-align:center;justify-content:center;align-items:center;border-radius:6px;border-color:transparent;color:#fff;cursor:pointer;font-size:.9rem}.cancelButton[_ngcontent-%COMP%]:hover{box-shadow:0 0 2px #191818}.popup[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;position:relative}.one[_ngcontent-%COMP%]{right:8rem}.field[_ngcontent-%COMP%]{text-align:center;margin-bottom:36px}.popup[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#404040;font-size:1.1rem;font-weight:700;display:block;cursor:text;margin-bottom:4px}}@media only screen and (max-width: 509px){.cancelButton[_ngcontent-%COMP%]{width:10rem;left:22px}}"]})}return n})(),Phe=(()=>{class n{constructor(){this.parentAttributeSource=new je([]),this.parentAttributes=this.parentAttributeSource.asObservable()}updateParentAttribute(t){this.parentAttributeSource.next(t)}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();class DGe extends ge{constructor(){super(...arguments),this._value=null,this._hasValue=!1,this._isComplete=!1}_checkFinalizedStatuses(e){const{hasError:t,_hasValue:r,_value:i,thrownError:s,isStopped:o,_isComplete:a}=this;t?e.error(s):(o||a)&&(r&&e.next(i),e.complete())}next(e){this.isStopped||(this._value=e,this._hasValue=!0)}complete(){const{_hasValue:e,_value:t,_isComplete:r}=this;r||(this._isComplete=!0,e&&super.next(t),super.complete())}}function Rhe(n){return Ua((e,t)=>n<=t)}class Lhe{constructor(){}loadScript(e,t,r,i=null){if(typeof document<"u"&&!document.getElementById(e)){let s=document.createElement("script");s.async=!0,s.src=t,s.onload=r,i||(i=document.head),i.appendChild(s)}}}class M5{}const CGe={oneTapEnabled:!0};let I5=(()=>{class n extends Lhe{static#e=this.PROVIDER_ID="GOOGLE";constructor(t,r){super(),this.clientId=t,this.initOptions=r,this.changeUser=new Tn,this._socialUser=new je(null),this._accessToken=new je(null),this._receivedAccessToken=new Tn,this.initOptions={...CGe,...this.initOptions},this._socialUser.pipe(Rhe(1)).subscribe(this.changeUser),this._accessToken.pipe(Rhe(1)).subscribe(this._receivedAccessToken)}initialize(t){return new Promise((r,i)=>{try{this.loadScript(n.PROVIDER_ID,"https://accounts.google.com/gsi/client",()=>{if(google.accounts.id.initialize({client_id:this.clientId,auto_
1select:t,callback:({credential:s})=>{const o=this.createSocialUser(s);this._socialUser.next(o)},prompt_parent_id:this.initOptions?.prompt_parent_id,itp_support:this.initOptions.oneTapEnabled}),this.initOptions.oneTapEnabled&&this._socialUser.pipe(Ua(s=>null===s)).subscribe(()=>google.accounts.id.prompt(console.debug)),this.initOptions.scopes){const s=this.initOptions.scopes instanceof Array?this.initOptions.scopes.filter(o=>o).join(" "):this.initOptions.scopes;this._tokenClient=google.accounts.oauth2.initTokenClient({client_id:this.clientId,scope:s,prompt:this.initOptions.prompt,callback:o=>{o.error?this._accessToken.error({code:o.error,description:o.error_description,uri:o.error_uri}):this._accessToken.next(o.access_token)}})}r()})}catch(s){i(s)}})}getLoginStatus(){return new Promise((t,r)=>{this._socialUser.value?t(this._socialUser.value):r(`No user is currently logged in with ${n.PROVIDER_ID}`)})}refreshToken(){return new Promise((t,r)=>{google.accounts.id.revoke(this._socialUser.value.id,i=>{i.error?r(i.error):t(this._socialUser.value)})})}getAccessToken(){return new Promise((t,r)=>{this._tokenClient?(this._tokenClient.requestAccessToken({hint:this._socialUser.value?.email}),this._receivedAccessToken.pipe(lg(1)).subscribe(t)):r(this._socialUser.value?"No token client was instantiated, you should specify some scopes.":"You should be logged-in first.")})}revokeAccessToken(){return new Promise((t,r)=>{this._tokenClient?this._accessToken.value?google.accounts.oauth2.revoke(this._accessToken.value,()=>{this._accessToken.next(null),t()}):r("No access token to revoke"):r("No token client was instantiated, you should specify some scopes.")})}signIn(){return Promise.reject('You should not call this method directly for Google, use "<asl-google-signin-button>" wrapper or generate the button yourself with "google.accounts.id.renderButton()" (https://developers.google.com/identity/gsi/web/guides/display-button#javascript)')}signOut(){var t=this;return(0,ee.A)(function*(){google.accounts.id.disableAutoSelect(),t._socialUser.next(null)})()}createSocialUser(t){const r=new M5;r.idToken=t;const i=this.decodeJwt(t);return r.id=i.sub,r.name=i.name,r.email=i.email,r.photoUrl=i.picture,r.firstName=i.given_name,r.lastName=i.family_name,r}decodeJwt(t){const i=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),s=decodeURIComponent(window.atob(i).split("").map(function(o){return"%"+("00"+o.charCo
1deAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(s)}}return n})(),aL=(()=>{class n{static#e=this.ERR_LOGIN_PROVIDER_NOT_FOUND="Login provider not found";static#t=this.ERR_NOT_LOGGED_IN="Not logged in";static#n=this.ERR_NOT_INITIALIZED="Login providers not ready yet. Are there errors on your console?";static#r=this.ERR_NOT_SUPPORTED_FOR_REFRESH_TOKEN="Chosen login provider is not supported for refreshing a token";static#i=this.ERR_NOT_SUPPORTED_FOR_ACCESS_TOKEN="Chosen login provider is not supported for getting an access token";get authState(){return this._authState.asObservable()}get initState(){return this._initState.asObservable()}constructor(t,r,i){this._ngZone=r,this._injector=i,this.providers=new Map,this.autoLogin=!1,this._user=null,this._authState=new HJ(1),this.initialized=!1,this._initState=new DGe,t instanceof Promise?t.then(s=>{this.initialize(s)}):this.initialize(t)}initialize(t){this.autoLogin=void 0!==t.autoLogin&&t.autoLogin;const{onError:r=console.error}=t;t.providers.forEach(i=>{this.providers.set(i.id,"prototype"in i.provider?this._injector.get(i.provider):i.provider)}),Promise.all(Array.from(this.providers.values()).map(i=>i.initialize(this.autoLogin))).then(()=>{if(this.autoLogin){const i=[];let s=!1;this.providers.forEach((o,a)=>{const l=o.getLoginStatus();i.push(l),l.then(c=>{this.setUser(c,a),s=!0}).catch(console.debug)}),Promise.all(i).catch(()=>{s||(this._user=null,this._authState.next(null))})}this.providers.forEach((i,s)=>{$K(i.changeUser)&&i.changeUser.subscribe(o=>{this._ngZone.run(()=>{this.setUser(o,s)})})})}).catch(i=>{r(i)}).finally(()=>{this.initialized=!0,this._initState.next(this.initialized),this._initState.complete()})}getAccessToken(t){var r=this;return(0,ee.A)(function*(){const i=r.providers.get(t);if(!r.initialized)throw n.ERR_NOT_INITIALIZED;if(!i)throw n.ERR_LOGIN_PROVIDER_NOT_FOUND;if(!(i instanceof I5))throw n.ERR_NOT_SUPPORTED_FOR_ACCESS_TOKEN;return yield i.getAccessToken()})()}refreshAuthToken(t){return new Promise((r,i)=>{if(this.initialized){const s=this.providers.get(t);s?"function"!=typeof s.refreshToken?i(n.ERR_NOT_SUPPORTED_FOR_REFRESH_TOKEN):s.refreshToken().then(o=>{this.setUser(o,t),r()}).catch(o=>{i(o)}):i(n.ERR_LOGIN_PROVIDER_NOT_FOUND)}else i(n.ERR_NOT_INITIALIZED)})}refreshAccessToken(t){return new Promise((r,i)=>{if(this.initialized)if(t!==I5.PROVIDER_ID)i(n.ERR_NOT_SUPPORTED_FOR_REFRESH_TOKEN);else{const s=this.providers.get(t);s instanceof I5?s.revokeAccessToken().then(r).catch(i):i(n.ERR_LOGIN_PROVIDER_NOT_FOUND)}else i(n.ERR_NOT_INITIALIZED)})}signIn(t,r){return new Promise((i,s)=>{if(this.initialized){let o=this.providers.get(t);o?o.signIn(r).then(a=>{this.setUser(a,t),i(a)}).catch(a=>{s(a)}):s(n.ERR_LOGIN_PROVIDER_NOT_FOUND)}else s(n.ERR_NOT_INITIALIZED)})}signOut(t=!1){return new Promise((r,i)=>{if(this.initialized)if(this._user){let o=this.providers.get(this._user.provider);o?o.signOut(t).then(()=>{r(),this.setUser(null)}).catch(a=>{i(a)}):i(n.ERR_LOGIN_PROVIDER_NOT_FOUND)}else i(n.ERR_NOT_LOGGED_IN);else i(n.ERR_NOT_INITIALIZED)})}setUser(t,r){t&&r&&(t.provider=r),this._user=t,this._authState.next(t)}static#s=this.\u0275fac=function(r){return new(r||n)(ve("SocialAuthServiceConfig"),ve(vn),ve(ts))};static#o=this.\u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),SGe=(()=>{class n{static initialize(t){return{ngModule:n,providers:[aL,{provide:"SocialAuthServiceConfig",useValue:t}]}}constructor(t){if(t)throw new Error("SocialLoginModule is already loaded. Import it in the AppModule only")}static#e=this.\u0275fac=function(r){return new(r||n)(ve(n,12))};static#t=this.\u0275mod=A({type:n});static#n=this.\u0275inj=ai({providers:[aL],imports:[_K]})}return n})(),D5=(()=>{class n extends Lhe{static#e=this.PROVIDER_ID="FACEBOOK";constructor(t,r={}){super(),this.clientId=t,this.requestOptions={scope:"email,public_profile",locale:"en_US",fields:"name,email,picture,first_name,last_name",version:"v10.0"},this.requestOptions={...this.requestOptions,...r}}initialize(){return new Promise((t,r)=>{try{this.loadScript(n.PROVIDER_ID,`//connect.facebook.net/${this.requestOptions.locale}/sdk.js`,()=>
1{FB.init({appId:this.clientId,autoLogAppEvents:!0,cookie:!0,xfbml:!0,version:this.requestOptions.version}),t()})}catch(i){r(i)}})}getLoginStatus(){return new Promise((t,r)=>{FB.getLoginStatus(i=>{if("connected"===i.status){let s=i.authResponse;FB.api(`/me?fields=${this.requestOptions.fields}`,o=>{let a=new M5;a.id=o.id,a.name=o.name,a.email=o.email,a.photoUrl="https://graph.facebook.com/"+o.id+"/picture?type=normal&access_token="+s.accessToken,a.firstName=o.first_name,a.lastName=o.last_name,a.authToken=s.accessToken,a.response=o,t(a)})}else r(`No user is currently logged in with ${n.PROVIDER_ID}`)})})}signIn(t){const r={...this.requestOptions,...t};return new Promise((i,s)=>{FB.login(o=>{if(o.authResponse){let a=o.authResponse;FB.api(`/me?fields=${r.fields}`,l=>{let c=new M5;c.id=l.id,c.name=l.name,c.email=l.email,c.photoUrl="https://graph.facebook.com/"+l.id+"/picture?type=normal",c.firstName=l.first_name,c.lastName=l.last_name,c.authToken=a.accessToken,c.response=l,i(c)})}else s("User cancelled login or did not fully authorize.")},r)})}signOut(){return new Promise((t,r)=>{FB.logout(i=>{t()})})}}return n})(),C5=(()=>{class n{constructor(){this.dataSource=new je([]),this.currentData=this.dataSource.asObservable()}changeData(t){this.dataSource.next(t)}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac})}return n})();function xGe(n,e){if(1&n){const t=Ei();Y(0,"label")(1,"input",9),fr("ngModelChange",function(i){bt(t);const s=tn().$implicit;return yr(s.selected,i)||(s.selected=i),vt(i)}),Qe("ngModelChange",function(i){bt(t);const s=tn().$implicit;return vt(tn(2).checkLengthCondition(i,s,"user"))}),H(),re(2),H()}if(2&n){const t=tn().$implicit;Ve(),hr("ngModel",t.selected),Ve(),Lu(" ",t.label," ")}}function kGe(n,e){if(1&n&&(Hv(0),Oi(1,xGe,3,2,"label",2),zv()),2&n){const t=e.$implicit,r=tn(2);Ve(),ht("ngIf",r.sinceInstaUserDate&&r.untilInstaUserDate&&r.validPeriodForUserInsight(r.periodInstaUser,t.period)&&("follower_count"!==t.apicalllabel||"follower_count"===t.apicalllabel&&r.instaFollowerCountCurrent>=100))}}function PGe(n,e){if(1&n){const t=Ei();Y(0,"label")(1,"input",9),fr("ngModelChange",function(i){const s=bt(t).$implicit;return yr(s.selected,i)||(s.selected=i),vt(i)}),Qe("ngModelChange",function(i){const s=bt(t).$implicit;return vt(tn(2).checkLengthCondition(i,s,"media"))}),H(),re(2),H()}if(2&n){const t=e.$implicit;Ve(),hr("ngModel",t.selected),Ve(),Lu(" ",t.label," ")}}function RGe(n,e){if(1&n){const t=Ei();Y(0,"div")(1,"h2"),re(2,"Instagram User Metrics"),H(),Oi(3,kGe,2,1,"ng-container",7),Y(4,"h2"),re(5,"Instagram Media Metrics"),H(),Oi(6,PGe,3,2,"label",7),Y(7,"button",8),Qe("click",function(){return bt(t),vt(tn().retrieveData())}),re(8,"Retrieve Instagram Data"),H()()}if(2&n){const t=tn();Ve(3),ht("ngForOf",t.InstaUserInsights),Ve(3),ht("ngForOf",t.InstaMediaInsights)}}function LGe(n,e){if(1&n){const t=Ei();Y(0,"app-popup",10),Qe("close",function(){return bt(t),vt(tn().onPopupClose())}),H()}}let Ohe=(()=>{class n extends Mce{constructor(t,r,i,s,o,a){super(t),this.elementRef=t,this.sharedService=r,this.authService=i,this.httpClient=s,this.marketingPage=o,this.apiDataService=a,this.selectedItems=[],this.showPopup=!1,this.lineGraphDisplay=new Tn,this.dataLoadEvent=new Tn,this.sendInstaDataToMarketing=new Tn}ngOnInit(){if("instagram"===this.chosenPlatform){if(!sessionStorage.getItem("socialUser"))return void this.signOut();{const i=sessionStorage.getItem("socialUser");this.user=JSON.parse(i),this.chosenDataObject=new xhe(this.authService,this.httpClient,this.user,this),this.chosenDataObject.getNumFollowers().then(s=>{this.instaFollowerCountCurrent=s.followers_count})}const{todayISO:t,yesterdayISO:r}=this.getISOTimestamps();this.startOfToday=this.convertISOToUnixTimestamp(t),this.startOfYesterday=this.convertISOToUnixTimestamp(r),this.InstaUserInsights=[{label:"Follower Count",selected:!1,platform:"instagram",apicalllabel:"follower_count",period:new Set(["day"]),since:this.startOfYesterday,until:this.startOfToday,insightcategory:"user"},{label:"Impressions",selected:!1,platform:"instagram",apicalllabel:"impressions",period:new Set(["day","week","days_28"]),since:this.startOfYesterday,until:this.startOfToday,insightcategory:"user"},{label:"Profile Views",selected:!1,platform:"instagram",apicalllabel:"profile_views",period:new Set(["day"]),since:this.startOfYesterday,until:this.startOfToday,insightcategory:"user"},{label:"Reach",selected:!1,platform:"instagram",apicalllabel:"reach",period:new Set(["day","week","days_28"]),since:this.startOfYesterday,until:this.startOfToday,insightcategory:"user"},{label:"Website Clicks",selected:!1,platform:"instagram",apicalllabel:"website_clicks",period:new Set(["day"]),since:this.startOfYesterday,until:this.startOfToday,insightcategory:"user"}],this.InstaMediaInsights=[{label:"Impressions",selected:!1,platform:"instagram",metrictype:"photo_video",apicalllabel:"impressions",insightcategory:"media"},{label:"Reach",selected:!1,platform:"instagram",metrictype:"photo_video",apicalllabel:"reach",insightcategory:"media"},{label:"Saved",selected:!1,platform:"instagram",metrictype:"photo_video",apicalllabel:"saved",insightcategory:"media"},{label:"Video Views",selected:!1,platform:"instagram",metrictype:"photo_video",apicalllabel:"video_views",insightcategory:"media"}]}}ngOnChanges(t){if(t.sinceInstaUserDate){let r=this.getISOTimestampsByDate(new Date(this.sinceInstaUserDate));console.log(r),this.sinceInstaUserTimestamp=new Date(r).getTime()/1e3,console.log(this.sinceInstaUserTimestamp)}if(t.untilInstaUserDate){let r=new Date(this.untilInstaUserDate);r.setDate(r.getDate()+1);let i=this.getISOTimestampsByDate(r);console.log(i),this.untilInstaUserTimestamp=new Date(i).getTime()/1e3,console.log(this.untilInstaUserTimestamp)}if(t.periodInstaUser){this.selectedItems=[];for(let r=0;r<this.InstaUserInsights.length;r++)this.validPeriodForUserInsight(this.periodInstaUser,this.InstaUserInsights[r].period)&&this.InstaUserInsights[r].selected&&this.selectedItems.push(this.InstaUserInsights[r])}if(this.untilInstaUserDate&&this.sinceInstaUserDate){let r=new Date(this.untilInstaUserDate);r.setDate(r.getDate()+1),this.diffDays=this.daysBetween(new Date(this.sinceInstaUserDate),r),console.log(this.diffDays)}}getISOTimestampsByDate(t){return t.setDate(t.getDate()+1),t.setHours(23,59,59,0),`${t.getFullYear()}
1-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}T${String(t.getHours()).padStart(2,"0")}:${String(t.getMinutes()).padStart(2,"0")}:${String(t.getSeconds()).padStart(2,"0")}+0000`}daysBetween(t,r){const i=t.getTime(),s=r.getTime();return Math.abs(s-i)/864e5}validPeriodForUserInsight(t,r){return r.has(t)}getISOTimestamps(){const t=new Date,r=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),7,0,0,0)),i=new Date(t);i.setUTCDate(t.getUTCDate()-1);const s=new Date(Date.UTC(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),7,0,0,0));return{todayISO:r.toISOString(),yesterdayISO:s.toISOString()}}convertISOToUnixTimestamp(t){return Math.floor(new Date(t).getTime()/1e3)}updateParent(t){this.sharedService.updateParentAttribute(t)}onCheckboxChange(t){0==t.selected?(this.selectedItems=this.selectedItems.filter(r=>r.label!==t.label||r.label===t.label&&r.insightcategory!==t.insightcategory),this.updateParent(this.selectedItems)):(this.selectedItems.push(t),this.updateParent(this.selectedItems))}signOut(){this.marketingPage.loggedIn=void 0,this.marketingPage.user=void 0,this.marketingPage.chosenPlatform="",this.marketingPage.sinceInstaUserDate=void 0,this.marketingPage.untilInstaUserDate=void 0,this.marketingPage.periodInstaUser=void 0,this.marketingPage.lineGraphDisplay=!1,this.chosenPlatform="",this.chosenDataObject=void 0,this.selectedItems=[],this.user=void 0,this.sinceInstaUserDate=void 0,this.untilInstaUserDate=void 0,this.periodInstaUser=void 0,sessionStorage.removeItem("platform"),sessionStorage.removeItem("socialUser");let t=sessionStorage.getItem("fbssls_379246607891485"),r=JSON.parse(t);r.status="unknown";let i=JSON.stringify(r);sessionStorage.setItem("fbssls_379246607891485",i),sessionStorage.removeItem("fbssls_379246607891485"),this.authService.signOut(!0)}retrieveData(){if("instagram"===this.chosenPlatform){if(!sessionStorage.getItem("socialUser"))return void this.signOut();{const i=sessionStorage.getItem("socialUser");this.user=JSON.parse(i),this.chosenDataObject=new xhe(this.authService,this.httpClient,this.user,this)}}let t="",r="";for(let i=0;i<this.selectedItems.length;i++)"user"==this.selectedItems[i].insightcategory?t+=this.selectedItems[i].apicalllabel+",":r+=this.selectedItems[i].apicalllabel+",";t=t.slice(0,-1),r=r.slice(0,-1),this.chosenDataObject.getData(t,r,this.sinceInstaUserTimestamp,this.untilInstaUserTimestamp,this.periodInstaUser,this.diffDays).then(i=>{this.lineGraphDisplay.emit(!0),this.sendInstaDataToMarketing.emit(i),console.log(i),this.apiDataService.changeData(i)}),this.cancel()}checkLengthCondition(t,r,i){t&&4==this.selectedItems.length?(console.log(this.showPopup),setTimeout(()=>{r.selected=!1}),this.showPopup=!0,this.popUp.show()):this.onCheckboxChange({label:r.label,apicalllabel:r.apicalllabel,insightcategory:i,selected:r.selected})}onPopupClose(){this.showPopup=!1}static#e=this.\u0275fac=function(r){return new(r||n)(_e(Qn),_e(Phe),_e(aL),_e(Bc),_e(lL),_e(C5))};static#t=this.\u0275cmp=xt({type:n,selectors:[["app-select-bar-marketing"]],viewQuery:function(r,i){if(1&r&&Ps(khe,5),2&r){let s;ss(s=os())&&(i.popUp=s.first)}},inputs:{receivedParameter:"receivedParameter",chosenPlatform:"chosenPlatform",user:"user",sinceInstaUserDate:"sinceInstaUserDate",untilInstaUserDate:"untilInstaUserDate",periodInstaUser:"periodInstaUser"},outputs:{lineGraphDisplay:"lineGraphDisplay",dataLoadEvent:"dataLoadEvent",sendInstaDataToMarketing:"sendInstaDataToMarketing"},features:[Mn,or],decls:9,vars:2,consts:[["rel","stylesheet","href",fA`https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css`],["id","sidebar"],[4,"ngIf"],["id","signOut-button",3,"click"],["id","toggle-btn",3,"click"],[1,"fas","fa-arrow-right","arrow-icon"],[3,"close",4,"ngIf"],[4,"ngFor","ngForOf"],["id","retrieve-data-button",3,"click"],["type","checkbox",1,"custom-checkbox",3,"ngModelChange","ngModel"],[3,"close"]],template:function(r,i){1&r&&(ze(0,"link",0),Y(1,"div",1),Oi(2,RGe,9,2,"div",2),Y(3,"div")(4,"button",3),Qe("click",function(){return i.signOut()}),re(5,"Signout"),H()()(),Y(6,"a",4),Qe("click",function(){return i.drag()}),ze(7,"i",5),H(),Oi(8,LGe,1,0,"app-popup",6)),2&r&&(Ve(2),ht("ngIf","instagram"===i.chosenPlatform),Ve(6),ht("ngIf",i.showPopup))},dependencies:[ig,sg,fk,jg,Hg,khe],styles:['body[_ngcontent-%COMP%]{margin:0;font-family:Arial,sans-serif;background-color:#f4f4f4}@media only screen and (max-width: 846px){.welcomeContainer[_ngcontent-%COMP%]{position:static}.container[_ngcontent-%COMP%]{position:relative;width:94%;height:45rem;top:6rem;left:3%;border-radius:.5rem;background-color:#fff;padding-left:10px;display:flex}.changeDiv[_ngcontent-%COMP%]{transform:translate(-50%,-50%) scale(.6)}}#retrieve-data-button[_ngcontent-%COMP%]{position:absolute;top:530px;padding:10px;background-color:#f01363;color:#fff;border:none;border-radius:4px;cursor:pointer}#signOut-button[_ngcontent-%COMP%]{position:absolute;
1left:200px;top:530px;padding:10px;background-color:#f01363;color:#fff;border:none;border-radius:4px;cursor:pointer}#sidebar[_ngcontent-%COMP%]{width:300px;height:100%;background-color:#333;color:#fff;position:fixed;right:-300px;top:50px;z-index:2;transition:right .3s ease-in-out;overflow-y:auto;padding:20px;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start}label[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:8px}input[_ngcontent-%COMP%]{margin-right:5px}#toggle-btn[_ngcontent-%COMP%]{position:absolute;right:10px;top:50%;cursor:pointer;z-index:2;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:15px;background-color:#000;color:#fff;font-size:18px;text-decoration:none;transition:background-color .3s ease}#toggle-btn[_ngcontent-%COMP%]:hover{background-color:#2980b9}.arrow-icon[_ngcontent-%COMP%]{align-self:center}.custom-checkbox[_ngcontent-%COMP%]{appearance:none;-webkit-appearance:none;-moz-appearance:none;width:20px;height:20px;border:2px solid #F01363;border-radius:4px;outline:none;cursor:pointer}.custom-checkbox[_ngcontent-%COMP%]:checked{background-color:#f01363;border-color:#f01363}.custom-checkbox[_ngcontent-%COMP%]:after{content:"";display:block;color:#fff;font-size:14px;text-align:center;line-height:18px}.custom-checkbox[_ngcontent-%COMP%]:checked:after{content:"\\2713"}.changeDiv[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.2rem}.changeDiv[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.9rem}.changeDiv[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;margin-bottom:4px}.changeDiv[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:1.5px solid #8b8b8b;border-radius:5px;caret-color:#8b8b8b;color:#404040;height:1.5rem;width:16rem;font-size:.8rem;padding-left:10px;margin-bottom:19px}.changeDiv[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;gap:20px;margin-top:10px}.changeDiv[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:2rem;width:8rem;background-color:#404040;text-align:center;justify-content:center;align-items:center;border-radius:6px;border-color:transparent;color:#fff;cursor:pointer;font-size:.9rem}.changeDiv[_ngcontent-%COMP%] .save[_ngcontent-%COMP%]:hover{box-shadow:0 0 2px #cf1d64}.changeDiv[_ngcontent-%COMP%] .cancel[_ngcontent-%COMP%]:hover{box-shadow:0 0 2px #191818}']})}return n})(),Nhe=(()=>{class n extends ip{constructor(t){super(t),this.elementRef=t,this.close=new Tn}cancel(){super.cancel(),this.close.emit()}static#e=this.\u0275fac=function(r){return new(r||n)(_e(Qn))};static#t=this.\u0275cmp=xt({type:n,selectors:[["app-info-popup"]],outputs:{close:"close"},features:[Mn],decls:54,vars:0,consts:[[1,"overlay-blurred",3,"click"],[1,"popup"],["src","../../assets/X Icon.svg","id","x-icon",3,"click"],[1,"white-container"],[1,"gridContainer"],[1,"field"],[1,"one"],[1,"intro-text"],[1,"metric-heading"],[1,"cancelButton",3,"click"],[1,"outputCanvas",2,"border","1px solid #000","display","none"]],template:function(r,i){1&r&&(Y(0,"div",0),Qe("click",function(){return i.cancel()}),H(),Y(1,"div",1)(2,"img",2),Qe("click",function(){return i.cancel()}),H(),ze(3,"div",3),Y(4,"div",4)(5,"div",5)(6,"label",6)(7,"p",7),re(8," Discover essential social interaction metrics for your Instagram account, showcasing engagement insights and impactful trends. A time range specifies the start and end dates for a data query, while the period defines the interval of data points within that range (e.g., daily, weekly). Depending on the mandatory configurations, the following metrics could be requested for: "),H(),Y(9,"p",8),re(10,"User Account Metrics for your Instagram business platform:"),H(),Y(11,"ul")(12,"li")(13,"strong"),re(14,"Follower Count:"),H(),re(15," Total number of new followers each day within the specified range. Returns a maximum of 30 days worth of data. Not available on users with fewer than 100 followers."),H(),Y(16,"li")(17,"strong"),re(18,"Impressions:"),H(),re(19," Total number of times the user's media have been viewed. Includes ad activity generated through the API, Facebook ads interfaces, and the Promote feature. Does not include profile views."),H(),Y(20,"li")(21,"strong"),re(22,"Profile Views:"),H(),re(23," Total number of users who have viewed the user's profile within the specified period."),H(),Y(24,"li")(25,"strong"),re(26,"Reach:"),H(),re(27," Total number of unique users who have viewed at least one of the user's media. Repeat views and views across different Instagram media owned by the Instagram User by the same user are only counted as a single view. Includes ad activity generated through the API, Facebook ads interfaces, and the Promote feature."),H(),Y(28,"li")(29,"strong"),re(30,"Website Clicks:"),H(),re(31," Total number of taps on the website link in the user's profile."),H()(),Y(32,"p",8),re(33,"Media Metrics for your Instagram business platform:"),H(),Y(34,"ul")(35,"li")(36,"strong"),re(37,"Impressions:"),H(),re(38," Total number of times each media has been seen."),H(),Y(39,"li")(40,"strong"),re(41,"Reach:"),H(),re(42," Total number of unique Instagram accounts that have seen the media."),H(),Y(43,"li")(44,"strong"),re(45,"Saved:"),H(),re(46," Total number of unique Instagram accounts that have saved the media."),H(),Y(47,"li")(48,"strong"),re(49,"Video Views:"),H(),re(50," Total number of times the video media has been seen. For album Instagram media, the number of times all videos within the album have been seen."),H()()(),Y(51,"button",9),Qe("click",function(){return i.cancel()}),re(52,"Cancel"),H()()(),ze(53,"canvas",10),H())},styles:["@media only screen and (min-width: 575px){.popup[_ngcontent-%COMP%]{position:absolute;
1left:50%;top:50%;transform:translate(-50%,-50%);border:1.5px solid transparent;border-radius:10px;background-color:#fafafa;height:31.5rem;width:29rem;z-index:101;padding:61px 49px;animation:fadeInAnimation ease 1.5s;animation-iteration-count:1;animation-fill-mode:forwards;overflow-y:auto}.popup[_ngcontent-%COMP%]::-webkit-scrollbar{width:13px;border-radius:10px}.popup[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#888;border-radius:10px}#x-icon[_ngcontent-%COMP%]{position:absolute;height:21px;top:27px;right:26px;cursor:pointer;z-index:2}.popup[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#404040;font-size:1.1rem;font-weight:700;display:block;cursor:text;margin-bottom:4px}.cancelButton[_ngcontent-%COMP%]{position:relative;left:15px;height:2.5rem;width:16rem;background-color:#404040;text-align:center;justify-content:center;align-items:center;border-radius:6px;border-color:transparent;color:#fff;cursor:pointer;font-size:.9rem}.cancelButton[_ngcontent-%COMP%]:hover{box-shadow:0 0 2px #191818}.gridContainer[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 0fr;grid-gap:8px;padding-bottom:20px}.white-container[_ngcontent-%COMP%]{left:4%;width:92%;height:77%;background-color:#fff;position:absolute;bottom:13%;border-radius:17px;z-index:-2}.overlay-blurred[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;z-index:100;background-color:#070707c4;top:0;left:0}label.one[_ngcontent-%COMP%]{font-size:16px;line-height:1.6;color:#333;max-height:100%;overflow:auto;padding-right:15px}.intro-text[_ngcontent-%COMP%]{font-size:16px;font-weight:700;margin-bottom:10px}.metric-heading[_ngcontent-%COMP%]{font-size:16px;font-weight:700;margin-top:20px;margin-bottom:10px}ul[_ngcontent-%COMP%]{list-style-type:disc;margin-left:20px}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{font-size:14px;line-height:1.4;margin-bottom:5px}}@media only screen and (max-width: 575px){.overlay-blurred[_ngcontent-%COMP%]{display:none}.popup[_ngcontent-%COMP%]{position:absolute;height:100%;width:100%;display:block;top:4%;background-color:#fafafa;overflow-y:auto}.white-container[_ngcontent-%COMP%]{left:2%;width:92%;height:80%;background-color:#fff;position:absolute;bottom:14%;border-radius:17px;z-index:0}#x-icon[_ngcontent-%COMP%]{position:absolute;height:24px;top:25px;right:40px;cursor:pointer;z-index:2}.gridContainer[_ngcontent-%COMP%]{display:block}.cancelButton[_ngcontent-%COMP%]{position:relative;top:62rem;left:25px;height:2.5rem;width:14rem;background-color:#404040;text-align:center;justify-content:center;align-items:center;border-radius:6px;border-color:transparent;color:#fff;cursor:pointer;font-size:.9rem}.cancelButton[_ngcontent-%COMP%]:hover{box-shadow:0 0 2px #191818}.popup[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;position:absolute}.one[_ngcontent-%COMP%]{right:8rem;max-height:100%;overflow:auto;padding-right:15px}.field[_ngcontent-%COMP%]{text-align:center;margin-bottom:36px}.popup[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#404040;font-size:1.1rem;font-weight:700;display:block;cursor:text;margin-bottom:4px}label.one[_ngcontent-%COMP%]{font-size:16px;line-height:1.6;color:#333;max-height:100%;overflow:auto;padding-right:15px}.intro-text[_ngcontent-%COMP%]{font-size:16px;font-weight:700;margin-bottom:10px}.metric-heading[_ngcontent-%COMP%]{font-size:16px;font-weight:700;margin-top:20px;margin-bottom:10px}ul[_ngcontent-%COMP%]{list-style-type:disc;margin-left:20px}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{font-size:14px;line-height:1.4;margin-bottom:5px}}@media only screen and (max-width: 509px){.cancelButton[_ngcontent-%COMP%]{width:10rem;left:22px}}"]})}return n})();var OGe=$(7586),S5=$.n(OGe);let Fhe=(()=>{class n{ngOnChanges(t){(t.startDate||t.endDate)&&this.generateDatesList(),t.instagramUserData&&this.updateInstaUserChart(this.instagramUserData)}generateDatesList(){this.datesListLabels=[];let t=S5()(this.startDate);const r=S5()(this.endDate),i=new Date,l=`${i.getFullYear()}-${String(i.getMonth()+1).padStart(2,"0")}-${String(i.getDate()).padStart(2,"0")}`,c=S5()(l);for(;t<=r&&t<=c;)this.datesListLabels.push(t.format("YYYY-MM-DD")),t=t.add(1,"days")}createChart(t,r,i){this.chart&&this.chart.destroy(),this.chart=new P_("MyChart",{type:"line",data:{labels:this.datesListLabels,datasets:r.map((s,o)=>({label:`${t} - ${s}`,data:this.InstaUserMetricToValListMap.get(s),borderColor:i[o],backgroundColor:"rgba(50, 50, 50, 50)",fill:!1}))},options:{aspectRatio:3,responsive:!0,plugins:{title:{display:!0,text:t}}}})}updateInstaUserChart(t){console.log(t);let r=t[0].length;if(0==r)return;this.InstaUserMetricToValListMap=new Map;for(let o=0;o<r;o++){let a=t[0][o];this.InstaUserMetricToValListMap.has(a.name)||this.InstaUserMetricToValListMap.set(a.name,[]);let l=a.values.length;for(let c=0;c<l;c++)this.InstaUserMetricToValListMap.get(a.name).push(a.values[c].value)}console.log(this.InstaUserMetricToValListMap);let s,i=Array.from(this.InstaUserMetricToValListMap.keys());1==i.length?s=["red"]:2==i.length?s=["red","green"]:3==i.length?s=["red","green","blue"]:4==i.length&&(s=["red","green","blue","orange"]),this.createChart("Instagram User Data",i,s)}constructor(){this.startDate="",this.endDate=""}ngOnInit(){console.log(this.instagramUserData)}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275cmp=xt({type:n,selectors:[["app-line-graph"]],inputs:{instagramUserData:"instagramUserData",startDate:"startDate",endDate:"endDate"},features:[or],decls:4,vars:1,consts:[[1,"chart-container"],["id","MyChart"]],template:function(r,i){1&r&&(ze(0,"app-header"),Y(1,"div",0)(2,"canvas",1),re(3),H()()),2&r&&(Ve(3),Mi(i.chart))},dependencies:[ib],styles:["[_nghost-%COMP%]{font-family:Veranda,sans-serif}#MyChart[_ngcontent-%COMP%]{position:fixed;bottom:0;width:80%!important;height:50%!important;top:175px;margin-left:200px}"]})}return n})();function NGe(n,e){if(1&n){const t=Ei();Y(0,"div")(1,"h2",3),re(2,"Review Your Performance"),H(),Y(3,"img",4),Qe("click",function(){return bt(t),vt(tn().signIn("instagram"))}),H()()}}function FGe(n,e){if(1&n){const t=Ei();Y(0,"div")(1,"app-select-bar-marketing",17),Qe("lineGraphDisplay",function(i){return bt(t),vt(tn(2).handleLineGraphDisplayVal(i))})("sendInstaDataToMarketing",function(i){return bt(t),vt(tn(2).retrieveInstagramData(i))}),H()()}if(2&n){const t=tn(2);Ve(),ht("chosenPlatform",t.chosenPlatform)("user",t.user)("sinceInstaUserDate",t.sinceInstaUserDate)("untilInstaUserDate",t.untilInstaUserDate)("periodInstaUser",t.periodInstaUser)}}function VGe(n,e){if(1&n&&(Y(0,"div"),ze(1,"app-line-graph",18),H()),2&n){const t=tn(2);Ve(),ht("instagramUserData",t.instagramUserData)("startDate",t.sinceInstaUserDate)("endDate",t.untilInstaUserDate)}}function UGe(n,e){if(1&n){const t=Ei();Y(0,"div")(1,"form",5),Qe("ngSubmit",function(){return bt(t),vt(tn().onSubmit())}
1),Y(2,"div",6)(3,"label",7),re(4,"Since Date:"),H(),Y(5,"input",8),fr("ngModelChange",function(i){bt(t);const s=tn();return yr(s.sinceInstaUserDate,i)||(s.sinceInstaUserDate=i),vt(i)}),H()(),Y(6,"div",6)(7,"label",9),re(8,"Until Date:"),H(),Y(9,"input",10),fr("ngModelChange",function(i){bt(t);const s=tn();return yr(s.untilInstaUserDate,i)||(s.untilInstaUserDate=i),vt(i)}),H()(),Y(10,"div",6)(11,"label",11),re(12,"Select Period:"),H(),Y(13,"select",12),fr("ngModelChange",function(i){bt(t);const s=tn();return yr(s.periodInstaUser,i)||(s.periodInstaUser=i),vt(i)}),Y(14,"option",13),re(15,"day"),H(),Y(16,"option",14),re(17,"week"),H(),Y(18,"option",15),re(19,"days_28"),H()()(),Y(20,"div",6)(21,"button",16),Qe("click",function(){return bt(t),vt(tn().InfoPopUp())}),re(22,"\u{1d48a}"),H()()(),Oi(23,FGe,2,5,"div",1)(24,VGe,2,3,"div",1),H()}if(2&n){const t=tn();Ve(5),hr("ngModel",t.sinceInstaUserDate),Ve(4),hr("ngModel",t.untilInstaUserDate),Ve(4),hr("ngModel",t.periodInstaUser),Ve(10),ht("ngIf",t.sinceInstaUserDate&&t.untilInstaUserDate&&t.periodInstaUser),Ve(),ht("ngIf",t.lineGraphDisplay)}}function jGe(n,e){if(1&n){const t=Ei();Y(0,"app-info-popup",19),Qe("close",function(){return bt(t),vt(tn().onPopupClose())}),H()}}const YGe={scope:"email,business_management,instagram_basic,pages_show_list,instagram_manage_insights,pages_read_engagement,ads_management"},Vhe=Ge.platformEncryptionKey;let lL=(()=>{class n{constructor(t,r,i){this.apiDataService=t,this.authService=r,this.httpClient=i,this.buttonClicked=new Tn,this.isAlertOpen=!1,this.selectedItems=[],this.lineGraphDisplay=!1,this.sincedateChange=new Tn,this.untildateChange=new Tn,this.sinceTimestampChange=new Tn,this.untilTimestampChange=new Tn,this.loggedIn=void 0}ngOnInit(){let t=sessionStorage.getItem("platform");this.chosenPlatform=this.xorDecrypt(t,Vhe),null!=t&&(this.loggedIn=!0),this.authService.authState.subscribe(r=>{this.user=r,this.loggedIn=null!=r;let i=sessionStorage.getItem("platform");this.chosenPlatform=this.xorDecrypt(i,Vhe)})}handleLineGraphDisplayVal(t){console.log(t),this.lineGraphDisplay=t}retrieveInstagramData(t){console.log(t),this.instagramUserData=t}InfoPopUp(){this.showPopUp=!0,this.infoPopUp.show()}onPopupClose(){this.showPopUp=!1}onSubmit(){console.log(`Period: ${this.periodInstaUser}`),this.sincedateChange.emit(this.sinceInstaUserDate),this.untildateChange.emit(this.untilInstaUserDate)}xorEncrypt(t,r){const i=(new TextEncoder).encode(r),s=(new TextEncoder).encode(t),o=new Uint8Array(s.length);for(let a=0;a<s.length;a++)o[a]=s[a]^i[a%i.length];return btoa(String.fromCharCode.apply(null,o))}xorDecrypt(t,r){const i=(new TextEncoder).encode(r),s=new Uint8Array(atob(t).split("").map(a=>a.charCodeAt(0))),o=new Uint8Array(s.length);for(let a=0;a<s.length;a++)o[a]=s[a]^i[a%i.length];return(new TextDecoder).decode(o)}signIn(t){var r=this;return(0,ee.A)(function*(){if(r.isAlertOpen=!0,"instagram"===t){r.authService.signOut(!0);const s=r.xorEncrypt("instagram",Ge.platformEncryptionKey);yield r.authService.signIn(D5.PROVIDER_ID,YGe).then(o=>{if(o){const a=JSON.stringify(o);if(sessionStorage.setItem("socialUser",a),sessionStorage.setItem("platform",s),null!=sessionStorage.getItem("fbssls_379246607891485")){let l=sessionStorage.getItem("fbssls_379246607891485"),c=JSON.parse(l);if("0"==c.authResponse.expiresIn){c.status="unknown";let u=JSON.stringify(c);sessionStorage.setItem("fbssls_379246607891485",u),sessionStorage.removeItem("fbssls_379246607891485"),sessionStorage.removeItem("platform"),sessionStorage.removeItem("socialUser"),r.authService.signOut(!0)}}r.chosenPlatform="instagram"}})}})()}static#e=this.\u0275fac=function(r){return new(r||n)(_e(C5),_e(aL),_e(Bc))};static#t=this.\u0275cmp=xt({type:n,selectors:[["app-marketing"]],viewQuery:function(r,i){if(1&r&&(Ps(Ohe,5),Ps(Nhe,5),Ps(Fhe,5)),2&r){let s;ss(s=os())&&(i.selectBar=s.first),ss(s=os())&&(i.infoPopUp=s.first),ss(s=os())&&(i.lineGraph=s.first)}},outputs:{buttonClicked:"buttonClicked",sincedateChange:"sincedateChange",untildateChange:"untildateChange",sinceTimestampChange:"sinceTimestampChange",untilTimestampChange:"untilTimestampChange"},decls:5,vars:3,consts:[[1,"container"],[4,"ngIf"],[3,"close",4,"ngIf"],["id","choosePlatform"],["src","../assets/InstagramIcon.png","alt","Instagram","id","instagramIcon",3,"click"],["id","since_until_form",3,"ngSubmit"],[1,"form-field"],["for","sinceDate"],["type","date","id","sinceDate","name","sinceDate","required","",3,"ngModelChange","ngModel"],["for","untilDate"],["type","date","id","untilDate","name","untilDate","required","",3,"ngModelChange","ngModel"],["for","period"],["id","period","name","period",1,"form-control",3,"ngModelChange","ngModel"],["value","day"],["value","week"],["value","days_28"],[1,"Insight-Info-Button",3,"click"],[1,"select-bar",3,"lineGraphDisplay","sendInstaDataToMarketing","chosenPlatform","user","sinceInstaUserDate","untilInstaUserDate","periodInstaUser"],[3,"instagramUserData","startDate","endDate"],[3,"close"]],template:function(r,i){1&r&&(ze(0,"app-header"),Y(1,"div",0),Oi(2,NGe,4,0,"div",1)(3,UGe,25,5,"div",1),H(),Oi(4,jGe,1,0,"app-info-popup",2)),2&r&&(Ve(2),ht("ngIf",!i.loggedIn),Ve(),ht("ngIf",!0===i.loggedIn),Ve(),ht("ngIf",i.showPopUp))},styles:["*[_ngcontent-%COMP%]{font-family:Arial,sans-serif;color:#404040}#since_until_form[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:space-between;border:none;padding:0;max-width:450px;margin:80px auto}.form-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:0 10px}.form-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-bottom:5px}.Insight-Info-Button[_ngcontent-%COMP%]{height:2em;width:1.5rem;line-height:1.8em;background-color:#f01363;text-align:center;display:flex;justify-content:center;align-items:center;border-radius:.5em;border-color:transparent;margin:.75em auto auto;color:#fff;cursor:pointer;z-index:2;font-size:.8rem;box-shadow:0 4px 8px #0003}.Insight-Info-Button[_ngcontent-%COMP%]:hover{box-shadow:0 0 2px #cf1d64}*/[_ngcontent-%COMP%] .platformButton[_ngcontent-%COMP%]{position:absolute;top:90px;left:1250px}#choosePlatform[_ngcontent-%COMP%]{position:absolute;top:150px;left:600px}#instagramIcon[_ngcontent-%COMP%]{position:absolute;width:6em;height:auto;top:275px;left:695px}.fullscreen-dialog[_ngcontent-%COMP%]{max-width:100%!important}.select-bar[_ngcontent-%COMP%]{z-index:102;order:-1}"]}
1)}return n})();class cL{constructor(){this.URL1="/api/rest?from_date=2024-06-10&to_date=2024-06-15&[email protected]",this.URL2="api/fin?from_date=2024-06-10&to_date=2024-06-15",this.URL3="/api/daily/total/used?from_date=2024-06-10&to_date=2024-06-15&service=SALE&client=ALL",this.URL4="/api/daily/separate/used?from_date=2024-06-10&to_date=2024-06-15&service=SALE&client=ALL"}static getRestaurantAPI(e,t){return`https://coubon.pythonanywhere.com/api/rest?from_date=${e}&to_date=${t}&rest=${localStorage.getItem("userID")}`}static getFinanceAPI(e,t){return`https://coubon.pythonanywhere.com/api/fin?from_date=${e}&to_date=${t}`}static getDailyTotalUsedAPI(e,t){return`https://coubon.pythonanywhere.com/api/daily/total/used?from_date=${e}&to_date=${t}&service=SALE&client=${localStorage.getItem("userID")}`}static getDailySeparateUsedAPI(e,t){return`https://coubon.pythonanywhere.com/api/daily/separate/used?from_date=${e}&to_date=${t}&service=SALE&client=${localStorage.getItem("userID")}`}}const BGe=[{path:"",component:GNe,pathMatch:"full"},{path:"signup",component:ZNe},{path:"main",component:b3e,canActivate:[()=>Le(Vg).status]},{path:"account",component:E3e,canActivate:[()=>Le(Vg).status]},{path:"analytics",component:IGe,canActivate:[()=>Le(Vg).status]},{path:"marketing",component:lL,canActivate:[()=>Le(Vg).status]},{path:"coubon-data",component:(()=>{class n{createChart(t,r,i,s,o){this.chart&&this.chart.destroy(),this.chart=new P_("MyChart",{type:"bar",data:{labels:r,datasets:s.map((a,l)=>({label:`${i} - ${a}`,data:t.map(c=>c[a]),backgroundColor:o[l]}))},options:{aspectRatio:3,responsive:!0,plugins:{title:{display:!0,text:i}}}})}filterData(){if(!this.startDate||!this.endDate)return this.getDataByType();const t=new Date(this.startDate),r=new Date(this.endDate);return this.getDataByType().filter(i=>{const s=new Date(i.date);return s>=t&&s<=r})}getDataByType(){switch(this.dataType){case"Total Sales Daily":default:return this.totalSalesDaily;case"Each Coupon Sales Daily":return this.eachCouponSalesDaily;case"Total Count Daily":return this.totalCountDaily;case"Each Coupon Count Daily":return this.eachCouponCountDaily}}updateChart(){const t=this.filterData();let s,o,r=t.map(a=>a.date),i=this.dataType;switch(this.dataType){case"Total Sales Daily":default:s=["sales"],o=["blue"];break;case"Each Coupon Sales Daily":case"Each Coupon Count Daily":s=["coupon1","coupon2","coupon3","coupon4"],o=["red","green","blue","orange"];break;case"Total Count Daily":s=["count"],o=["purple"]}this.createChart(t,r,i,s,o)}constructor(t){this.http=t,this.startDate="",this.endDate="",this.dataType="Total Sales Daily",this.apiURL="REST",this.totalSalesDaily=[{date:"2024-06-01",sales:10.3},{date:"2024-06-02",sales:12.4},{date:"2024-06-03",sales:11.2},{date:"2024-06-04",sales:9.65},{date:"2024-06-05",sales:9.4},{date:"2024-06-06",sales:33.9},{date:"2024-06-07",sales:23.4},{date:"2024-06-08",sales:23},{date:"2024-06-09",sales:50},{date:"2024-06-10",sales:14}],this.eachCouponSalesDaily=[{date:"2024-06-01",coupon1:9.3,coupon2:0,coupon3:4.5,coupon4:9.8},{date:"2024-06-02",coupon1:4.5,coupon2:0,coupon3:0,coupon4:6},{date:"2024-06-03",coupon1:3.4,coupon2:0,coupon3:3.4,coupon4:4.9},{date:"2024-06-04",coupon1:0,coupon2:4.5,coupon3:8,coupon4:0},{date:"2024-06-05",coupon1:0,coupon2:7.6,coupon3:19,coupon4:6.8},{date:"2024-06-06",coupon1:6.78,coupon2:9.6,coupon3:20,coupon4:5.5},{date:"2024-06-07",coupon1:9.1,coupon2:0,coupon3:23,coupon4:4.6},{date:"2024-06-08",coupon1:18.2,coupon2:0,coupon3:3.9,coupon4:0},{date:"2024-06-09",coupon1:4.5,coupon2:0,coupon3:0,coupon4:4.3},{date:"2024-06-10",coupon1:0,coupon2:0,coupon3:7.85,coupon4:9.9}],this.totalCountDaily=[{date:"2024-06-01",count:1},{date:"2024-06-02",count:2},{date:"2024-06-03",count:2},{date:"2024-06-04",count:1},{date:"2024-06-05",count:1},{date:"2024-06-06",count:6},{date:"2024-06-07",count:4},{date:"2024-06-08",count:5},{date:"2024-06-09",count:10},{date:"2024-06-10",count:3}],this.eachCouponCountDaily=[{date:"2024-06-01",coupon1:1,coupon2:0,coupon3:1,coupon4:3},{date:"2024-06-02",coupon1:2,coupon2:0,coupon3:0,coupon4:2},{date:"2024-06-03",coupon1:0,coupon2:0,coupon3:1,coupon4:1},{date:"2024-06-04",coupon1:0,coupon2:1,coupon3:1,coupon4:0},{date:"2024-06-05",coupon1:0,coupon2:1,coupon3:4,coupon4:1},{date:"2024-06-06",coupon1:1,coupon2:2,coupon3:5,coupon4:1},{date:"2024-06-07",coupon1:2,coupon2:0,coupon3:6,coupon4:1},{date:"2024-06-08",coupon1:4,coupon2:0,coupon3:1,coupon4:0},{date:"2024-06-09",coupon1:1,coupon2:0,coupon3:0,coupon4:1},{date:"2024-06-10",coupon1:0,coupon2:0,coupon3:1,coupon4:2}]}ngOnInit(){this.updateChart()}updateReport(){switch(console.log(`Start: ${this.startDate}, End: ${this.endDate}, Type: ${this.dataType}, API: ${this.apiURL}`),this.apiURL){case"REST":this.http.get(cL.getRestaurantAPI(this.startDate,this.endDate),{responseType:"text"}).subscribe(t=>{console.log("Data from API:",t),this.dataFromAPI=this.parseData(t,"REST"),console.log("Parsed data from API:",this.dataFromAPI),this.updateChartWithDataFromAPI()},t=>{console.error("Error fetching data:",t)});break;case"Finance":this.http.get(cL.getFinanceAPI(this.startDate,this.endDate),{responseType:"text"}).subscribe(t=>{console.log("Data from API:",t),this.dataFromAPI=this.parseData(t,"Finance"),console.log("Parsed data from API:",this.dataFromAPI),this.updateChartWithDataFromAPI()},t=>{console.error("Error fetching data:",t)});break;case"Daily Total":this.http.get(cL.getDailyTotalUsedAPI(this.startDate,this.endDate),{responseType:"text"}).subscribe(t=>{console.log("Data from API:",t),this.dataFromAPI=this.parseData(t,"Daily Total"),console.log("Parsed data from API:",this.dataFromAPI),this.updateChartWithDataFromAPI()},t=>{console.error("Error fetching data:",t)});break;case"Daily Separate":this.http.get(cL.getDailySeparateUsedAPI(this.startDate,this.endDate),{responseType:"text"}).subscribe(t=>{console.log("Data from API:",t),this.dataFromAPI=this.parseData(t,"Daily Separate"),console.log("Parsed data from API:",this.dataFromAPI),this.updateChartWithDataFromAPI()},t=>{console.error("Error fetching data:",t)})}}parseData(t,r){try{const i=JSON.parse(t),s=JSON.parse(i);console.log("Parsed JSON data:",i),console.log("Parsed JSON data2:",s),console.log(typeof i),console.log(typeof s);let o=[],a=[],l=[],c=[],u=[],d=[],f=[];switch(r){case"REST":o=[],a=[],l=[],c=[];const _=Object.keys(s.name);console.log("Keys:",_),_.forEach(S=>{o.push(s.name[S]),a.push(s["Discounted Price"][S]),l.push(s["Original Price"][S]),c.push(s.count[S])});break;case"Finance":o=[],a=[],l=[],c=[];
1const w=Object.keys(s.client);console.log("Keys:",w),w.forEach(S=>{o.push(s.client[S]),a.push(s["Total Discounted Price"][S]),l.push(s["Total Original Price"][S]),c.push(s.counts[S])});break;case"Daily Total":u=[],d=[];const M=Object.keys(s.price);return console.log("Keys:",M),M.forEach(S=>{u.push(s.price[S]),d.push(S)}),{price:u,dates:d};case"Daily Separate":return f=[],d=[],u=[],Object.keys(s).forEach(S=>{Object.keys(s[S]).forEach(N=>{f.push(S),d.push(N),u.push(s[S][N])})}),{id:f,price:u,dates:d}}return{names:o,discountedPrices:a,originalPrices:l,counts:c}}catch(i){return console.error("Error parsing data:",i),{names:[],discountedPrices:[],originalPrices:[],counts:[]}}}updateChartWithDataFromAPI(){if("Daily Total"===this.apiURL){console.log("We made it to the Daily Total API");const{price:t,dates:r}=this.dataFromAPI;this.createChart2({price:t},r,"Daily Total Prices",["price"],["blue"])}else if("Daily Separate"===this.apiURL){console.log("We made it to the Daily Separate API");const{price:r,dates:i}=this.dataFromAPI;this.createChart2({price:r},i,"Daily Separate Prices",["price"],["blue"])}else{console.log("we did not make it to the Daily Total API");const{names:t}=this.dataFromAPI;let o=t;console.log("Labels:",o);let a="",l=[],c=[];switch(this.dataType){case"Counts":default:a="Counts",l=["counts"],c=["blue","green","orange","purple"];break;case"Discounted Prices":a="Discounted Prices",l=["discountedPrices"],c=["green","purple","red","blue"];break;case"Original Prices":a="Original Prices",l=["originalPrices"],c=["orange","blue","green","purple"]}if("Discounted Prices"===this.dataType||"Original Prices"===this.dataType){const u=l.map((d,f)=>({label:`${a} - ${d}`,data:this.dataFromAPI[d],backgroundColor:c[f]}));this.createChart2(u,o,a,l,c)}else this.createChart2(this.dataFromAPI,o,a,l,c)}}createChart2(t,r,i,s,o){let a;if(this.chart&&this.chart.destroy(),s.includes("price"))a=[{label:"Price",data:t.price,backgroundColor:o[0]}];else{const{discountedPrices:c,originalPrices:u,counts:d}=t;a=[{label:"Discounted Price",data:c,backgroundColor:o[0]},{label:"Original Price",data:u,backgroundColor:o[1]},{label:"Count",data:d,backgroundColor:o[2]}]}this.chart=new P_("MyChart",{type:"bar",data:{labels:r,datasets:a},options:{aspectRatio:3,responsive:!0,plugins:{title:{display:!0,text:i}}}})}static#e=this.\u0275fac=function(r){return new(r||n)(_e(Bc))};static#t=this.\u0275cmp=xt({type:n,selectors:[["app-coubon-data"]],decls:41,vars:5,consts:[[1,"form-container"],["type","date",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],["value","REST"],["value","Finance"],["value","Daily Total"],["value","Daily Separate"],["value","Total Sales Daily"],["value","Each Coupon Sales Daily"],["value","Total Count Daily"],["value","Each Coupon Count Daily"],["value","Name"],["value","Discounted Price"],["value","Original Price"],["value","Count"],[1,"chart-container"],["id","MyChart"]],template:function(r,i){1&r&&(ze(0,"app-header"),Y(1,"div",0)(2,"label"),re(3," Start Date: "),Y(4,"input",1),fr("ngModelChange",function(o){return yr(i.startDate,o)||(i.startDate=o),o}),Qe("ngModelChange",function(){return i.updateChart()}),H()(),Y(5,"label"),re(6," End Date: "),Y(7,"input",1),fr("ngModelChange",function(o){return yr(i.endDate,o)||(i.endDate=o),o}),Qe("ngModelChange",function(){return i.updateChart()}),H()(),Y(8,"Label"),re(9," API Call: "),Y(10,"select",2),fr("ngModelChange",function(o){return yr(i.apiURL,o)||(i.apiURL=o),o}),Qe("ngModelChange",function(){return i.updateReport()}),Y(11,"option",3),re(12,"REST"),H(),Y(13,"option",4),re(14,"Finance"),H(),Y(15,"option",5),re(16,"Daily Total"),H(),Y(17,"option",6),re(18,"Daily Separate"),H()()(),Y(19,"label"),re(20," Data Type: "),Y(21,"select",2),fr("ngModelChange",function(o){return yr(i.dataType,o)||(i.dataType=o),o}),Qe("ngModelChange",function(){return i.updateChart()}),Y(22,"option",7),re(23,"Total Sales Daily"),H(),Y(24,"option",8),re(25,"Each Coupon Sales Daily"),H(),Y(26,"option",9),re(27,"Total Count Daily"),H(),Y(28,"option",10),re(29,"Each Coupon Count Daily"),H(),Y(30,"option",11),re(31,"Name"),H(),Y(32,"option",12),re(33,"Discounted Price"),H(),Y(34,"option",13),re(35,"Original Price"),H(),Y(36,"option",14),re(37,"Count"),H()()()(),Y(38,"div",15)(39,"canvas",16),re(40),H()()),2&r&&(Ve(4),hr("ngModel",i.startDate),Ve(3),hr
1("ngModel",i.endDate),Ve(3),hr("ngModel",i.apiURL),Ve(11),hr("ngModel",i.dataType),Ve(19),Mi(i.chart))},dependencies:[np,rp,aw,$g,jg,Hg,ib],styles:["[_nghost-%COMP%]{font-family:Veranda,sans-serif}#MyChart[_ngcontent-%COMP%]{position:fixed;bottom:0;width:90%!important;margin-left:200px}.form-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;margin-top:100px;margin-left:200px;gap:20px;background-color:#fafafa;padding:20px}.form-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#404040;font-size:1.1rem;font-weight:700;display:block;cursor:text;margin-bottom:4px}.form-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .form-container[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{border:1.5px solid #8b8b8b;border-radius:7px;caret-color:#8b8b8b;color:#404040;height:2rem;font-size:.8rem;padding-left:10px}.form-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus, .form-container[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:focus{outline:none;border:1.5px solid #404040}.form-container[_ngcontent-%COMP%] [_ngcontent-%COMP%]::placeholder{color:#d3d3d3}.form-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus, .form-container[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:focus, .form-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:1.5px solid #F01363}.form-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#f01363;color:#fff;border-radius:7px;border:none;cursor:pointer;padding:8px 20px;font-size:.9rem}.form-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:#d81155}.button[_ngcontent-%COMP%]{position:fixed;bottom:20px;right:20px}"]})}return n})(),canActivate:[()=>Le(Vg).status]}];let HGe=(()=>{class n{static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275mod=A({type:n});static#n=this.\u0275inj=ai({imports:[uJ.forRoot(BGe),uJ]})}return n})(),zGe=(()=>{class n{constructor(){this.title="CouBon_Dashboard",this.isSignedIn=!1}ngOnInit(){this.isSignedIn=null!==localStorage.getItem("user")}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275cmp=xt({type:n,selectors:[["app-root"]],decls:1,vars:0,template:function(r,i){1&r&&ze(0,"router-outlet")},dependencies:[dV]})}return n})();const Uhe="@firebase/database";let A5="";function x5(n){A5=n}class WGe{constructor(e){this.domStorage_=e,this.prefix_="firebase:"}set(e,t){null==t?this.domStorage_.removeItem(this.prefixedName_(e)):this.domStorage_.setItem(this.prefixedName_(e),(0,K.As)(t))}get(e){const t=this.domStorage_.getItem(this.prefixedName_(e));return null==t?null:(0,K.$L)(t)}remove(e){this.domStorage_.removeItem(this.prefixedName_(e))}prefixedName_(e){return this.prefix_+e}toString(){return this.domStorage_.toString()}}class GGe{constructor(){this.cache_={},this.isInMemoryStorage=!0}set(e,t){null==t?delete this.cache_[e]:this.cache_[e]=t}get(e){return(0,K.gR)(this.cache_,e)?this.cache_[e]:null}remove(e){delete this.cache_[e]}}const Yhe=function(n){try{if(typeof window<"u"&&typeof window[n]<"u"){const e=window[n];return e.setItem("firebase:sentinel","cache"),e.removeItem("firebase:sentinel"),new WGe(e)}}catch{}return new GGe},O_=Yhe("localStorage"),k5=Yhe("sessionStorage"),vb=new Tl.Vy("@firebase/database"),Bhe=function(){let n=1;return function(){return n++}}(),Hhe=function(n){const e=(0,K.kj)(n),t=new K.gz;t.update(e);const r=t.digest();return K.K3.encodeByteArray(r)},fC=function(...n){let e="";for(let t=0;t<n.length;t++){const r=n[t];Array.isArray(r)||r&&"object"==typeof r&&"number"==typeof r.length?e+=fC.apply(null,r):e+="object"==typeof r?(0,K.As)(r):r,e+=" "}return e};let N_=null,zhe=!0;const $he=function(n,e){(0,K.vA)(!e||!0===n||!1===n,"Can't turn on custom loggers persistently."),!0===n?(vb.logLevel=Tl.$b.VERBOSE,N_=vb.log.bind(vb),e&&k5.set("logging_enabled",!0)):"function"==typeof n?N_=n:(N_=null,k5.remove("logging_enabled"))},no=function(...n){if(!0===zhe&&(zhe=!1,null===N_&&!0===k5.get("logging_enabled")&&$he(!0)),N_){const e=fC.apply(null,n);N_(e)}},pC=function(n){return function(...e){no(n,...e)}},P5=function(...n){const e="FIREBASE INTERNAL ERROR: "+fC(...n);vb.error(e)},ud=function(...n){const e=`FIREBASE FATAL ERROR: ${fC(...n)}`;throw vb.error(e),new Error(e)},Wo=function(...n){const e="FIREBASE WARNING: "+fC(...n);vb.warn(e)},uL=function(n){return"number"==typeof n&&(n!=n||n===Number.POSITIVE_INFINITY||n===Number.NEGATIVE_INFINITY)},Op="[MIN_NAME]",Ch="[MAX_NAME]",F_=function(n,e){if(n===e)return 0;if(n===Op||e===Ch)return-1;if(e===Op||n===Ch)return 1;{const t=Ghe(n),r=Ghe(e);return null!==t?null!==r?t-r==0?n.length-e.length:t-r:-1:null!==r?1:n<e?-1:1}},JGe=function(n,e){return n===e?0:n<e?-1:1},mC=function(n,e){if(e&&n in e)return e[n];throw new Error("Missing required key ("+n+") in object: "+(0,K.As)(e))},R5=function(n){if("object"!=typeof n||null===n)return(0,K.As)(n);const e=[];for(const r in n)e.push(r);e.sort();let t="{";for(let r=0;r<e.length;r++)0!==r&&(t+=","),t+=(0,K.As)(e[r]),t+=":",t+=R5(n[e[r]]);return t+="}",t},qhe=function(n,e){const t=n.length;if(t<=e)return[n];const r=[];for(let i=0;i<t;i+=e)r.push(n.substring(i,i+e>t?t:i+e));return r};function ro(n,e){for(const t in n)n.hasOwnProperty(t)&&e(t,n[t])}const Whe=function(n){(0,K.vA)(!uL(n),"Invalid JSON number");const r=1023;let i,s,o,a,l;0===n?(s=0,o=0,i=1/n==-1/0?1:0):(i=n<0,(n=Math.abs(n))>=Math.pow(2,1-r)?(a=Math.min(Math.floor(Math.log(n)/Math.LN2),r),s=a+r,o=Math.round(n*Math.pow(2,52-a)-Math.pow(2,52))):(s=0,o=Math.round(n/Math.pow(2,-1074))));const c=[];for(l=52;l;l-=1)c.push(o%2?1:0),o=Math.floor(o/2);for(l=11;l;l-=1)c.push(s%2?1:0),s=Math.floor(s/2);c.push(i?1:0),c.reverse();const u=c.join("");let d="";for(l=0;l<64;l+=8){let f=parseInt(u.substr(l,8),2).toString(16);1===f.length&&(f="0"+f),d+=f}return d.toLowerCase()},tKe=new RegExp("^-?(0*)\\d{1,10}$"),Ghe=function(n){if(tKe.test(n)){const e=Number(n);if(e>=-2147483648&&e<=2147483647)return e}return null},wb=function(n){try{n()}catch(e){setTimeout(()=>{throw Wo("Exception was thrown by user callback.",e.stack||""),e},Math.floor(0))}},gC=function(n,e){const t=setTimeout(n,e);return"number"==typeof t&&typeof Deno<"u"&&Deno.unrefTimer?Deno.unrefTimer(t):"object"==typeof t&&t.unref&&t.unref(),t};class sKe{constructor(e,t){this.appName_=e,this.appCheckProvider=t,this.appCheck=t?.getImmediate({optional:!0}),this.appCheck||t?.get().then(r=>this.appCheck=r)}getToken(e){return this.appCheck?this.appCheck.getToken(e):new Promise((t,r)=>{setTimeout(()=>{this.appCheck?this.getToken(e).then(t,r):t(null)},0)})}addTokenChangeListener(e){var t;null===(t=this.appCheckProvider)||void 0===t||t.get().then(r=>r.addTokenListener(e))}notifyForInvalidToken(){Wo(`Provided AppCheck credentials for the app named "${this.appName_}" are invalid. This usually indicates your app was not initialized correctly.`)}}class oKe{constructor(e,t,r){this.appName_=e,this.firebaseOptions_=t,this.authProvider_=r,this.auth_=null,this.auth_=r.getImmediate({optional:!0}),this.auth_||r.onInit(i=>this.auth_=i)}getToken(e){return this.auth_?this.auth_.getToken(e).catch(t=>t&&"auth/token-not-initialized"===t.code?(no("Got auth/token-not-initialized error. Treating as null token."),null):Promise.reject(t)):new Promise((t,r)=>{setTimeout(()=>{this.auth_?this.getToken(e).then(t,r):t(null)},0)})}addTokenChangeListener(e){this.auth_?this.auth_.addAuthTokenListener(e):this.authProvider_.get().then(t=>t.addAuthTokenListener(e))}removeTokenChangeListener(e){this.authProvider_.get().then(t=>t.removeAuthTokenListener(e))}notifyForInvalidToken(){let e='Provided authentication credentials for the app named "'+this.appName_+'" are invalid. This usually indicates your app was not initialized correctly. ';e+="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/.',Wo(e)}}let _C=(()=>{class n{constructor(t){this.accessToken=t}getToken(t){return Promise.resolve({accessToken:this.accessToken})}addTokenChangeListener(t){t(this.accessToken)}removeTokenChangeListener(t){}notifyForInvalidToken(){}}return n.OWNER="owner",n})();
1const Zhe=/(console\.firebase|firebase-console-\w+\.corp|firebase\.corp)\.google\.com/,rfe="long_polling";class O5{constructor(e,t,r,i,s=!1,o="",a=!1,l=!1){this.secure=t,this.namespace=r,this.webSocketOnly=i,this.nodeAdmin=s,this.persistenceKey=o,this.includeNamespaceInQueryParams=a,this.isUsingEmulator=l,this._host=e.toLowerCase(),this._domain=this._host.substr(this._host.indexOf(".")+1),this.internalHost=O_.get("host:"+e)||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(e){e!==this.internalHost&&(this.internalHost=e,this.isCacheableHost()&&O_.set("host:"+this._host,this.internalHost))}toString(){let e=this.toURLString();return this.persistenceKey&&(e+="<"+this.persistenceKey+">"),e}toURLString(){return`${this.secure?"https://":"http://"}${this.host}/${this.includeNamespaceInQueryParams?`?ns=${this.namespace}`:""}`}}function ife(n,e,t){let r;if((0,K.vA)("string"==typeof e,"typeof type must == string"),(0,K.vA)("object"==typeof t,"typeof params must == object"),"websocket"===e)r=(n.secure?"wss://":"ws://")+n.internalHost+"/.ws?";else{if(e!==rfe)throw new Error("Unknown connection type: "+e);r=(n.secure?"https://":"http://")+n.internalHost+"/.lp?"}(function aKe(n){return n.host!==n.internalHost||n.isCustomHost()||n.includeNamespaceInQueryParams})(n)&&(t.ns=n.namespace);const i=[];return ro(t,(s,o)=>{i.push(s+"="+o)}),r+i.join("&")}class lKe{constructor(){this.counters_={}}incrementCounter(e,t=1){(0,K.gR)(this.counters_,e)||(this.counters_[e]=0),this.counters_[e]+=t}get(){return(0,K.A4)(this.counters_)}}const N5={},F5={};function V5(n){const e=n.toString();return N5[e]||(N5[e]=new lKe),N5[e]}class uKe{constructor(e){this.onMessage_=e,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}closeAfter(e,t){this.closeAfterResponse=e,this.onClose=t,this.closeAfterResponse<this.currentResponseNum&&(this.onClose(),this.onClose=null)}handleResponse(e,t){for(this.pendingResponses[e]=t;this.pendingResponses[this.currentResponseNum];){const r=this.pendingResponses[this.currentResponseNum];delete this.pendingResponses[this.currentResponseNum];for(let i=0;i<r.length;++i)r[i]&&wb(()=>{this.onMessage_(r[i])});if(this.currentResponseNum===this.closeAfterResponse){this.onClose&&(this.onClose(),this.onClose=null);break}this.currentResponseNum++}}}class Np{constructor(e,t,r,i,s,o,a){this.connId=e,this.repoInfo=t,this.applicationId=r,this.appCheckToken=i,this.authToken=s,this.transportSessionId=o,this.lastSessionId=a,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=pC(e),this.stats_=V5(t),this.urlFn=l=>(this.appCheckToken&&(l.ac=this.appCheckToken),ife(t,rfe,l))}open(e,t){this.curSegmentNum=0,this.onDisconnect_=t,this.myPacketOrderer=new uKe(e),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout(()=>{this.log_("Timed out trying to connect."),this.onClosed_(),this.connectTimeoutTimer_=null},Math.floor(3e4)),function(n){if((0,K.$g)()||"complete"===document.readyState)n();else{let e=!1;const t=function(){document.body?e||(e=!0,n()):setTimeout(t,Math.floor(10))};document.addEventListener?(document.addEventListener("DOMContentLoaded",t,!1),window.addEventListener("load",t,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",()=>{"complete"===document.readyState&&t()}),window.attachEvent("onload",t))}}(()=>{if(this.isClosed_)return;this.scriptTagHolder=new U5((...s)=>{const[o,a,l,c,u]=s;if(this.incrementIncomingBytes_(s),this.scriptTagHolder)if(this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null),this.everConnected_=!0,"start"===o)this.id=a,this.password=l;else{if("close"!==o)throw new Error("Unrecognized command received: "+o);a?(this.scriptTagHolder.sendNewPolls=!1,this.myPacketOrderer.closeAfter(a,()=>{this.onClosed_()})):this.onClosed_()}},(...s)=>{const[o,a]=s;this.incrementIncomingBytes_(s),this.myPacketOrderer.handleResponse(o,a)},()=>{this.onClosed_()},this.urlFn);const r={start:"t"};r.ser=Math.floor(1e8*Math.random()),this.scriptTagHolder.uniqueCallbackIdentifier&&(r.cb=this.scriptTagHolder.uniqueCallbackIdentifier),r.v="5",this.transportSessionId&&(r.s=this.transportSessionId),this.lastSessionId&&(r.ls=this.lastSessionId),this.applicationId&&(r.p=this.applicationId),this.appCheckToken&&(r.ac=this.appCheckToken),typeof location<"u"&&location.hostname&&Zhe.test(location.hostname)&&(r.r="f");const i=this.urlFn(r);this.log_("Connecting via long-poll to "+i),this.scriptTagHolder.addTag(i,()=>{})})}start(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)}static forceAllow(){Np.forceAllow_=!0}static forceDisallow(){Np.forceDisallow_=!0}static isAvailable(){return!((0,K.$g)()||!Np.forceAllow_&&(Np.forceDisallow_||!(typeof document<"u")||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(e){const t=(0,K.As)(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);const r=(0,K.KA)(t),i=qhe(r,1840);for(let s=0;s<i.length;s++)this.scriptTagHolder.enqueueSegment(this.curSegmentNum,i.length,i[s]),this.curSegmentNum++}addDisconnectPingFrame(e,t){if((0,K.$g)())return;this.myDisconnFrame=document.createElement("iframe");const r={dframe:"t"};r.id=e,r.pw=t,this.myDisconnFrame.src=this.urlFn(r),this.myDisconnFrame.style.display="none",document.body.appendChild(this.myDisconnFrame)}incrementIncomingBytes_(e){const t=(0,K.As)(e).length;this.bytesReceived+=t,this.stats_.incrementCounter("bytes_received",t)}}
1class U5{constructor(e,t,r,i){if(this.onDisconnect=r,this.urlFn=i,this.outstandingRequests=new Set,this.pendingSegs=[],this.currentSerial=Math.floor(1e8*Math.random()),this.sendNewPolls=!0,(0,K.$g)())this.commandCB=e,this.onMessageCB=t;else{this.uniqueCallbackIdentifier=Bhe(),window["pLPCommand"+this.uniqueCallbackIdentifier]=e,window["pRTLPCB"+this.uniqueCallbackIdentifier]=t,this.myIFrame=U5.createIFrame_();let s="";this.myIFrame.src&&"javascript:"===this.myIFrame.src.substr(0,11)&&(s='<script>document.domain="'+document.domain+'";<\/script>');const o="<html><body>"+s+"</body></html>";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(o),this.myIFrame.doc.close()}catch(a){no("frame writing exception"),a.stack&&no(a.stack),no(a)}}}static createIFrame_(){const e=document.createElement("iframe");if(e.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(e);try{e.contentWindow.document||no("No IE domain setting required")}catch{const r=document.domain;e.src="javascript:void((function(){document.open();document.domain='"+r+"';document.close();})())"}return e.contentDocument?e.doc=e.contentDocument:e.contentWindow?e.doc=e.contentWindow.document:e.document&&(e.doc=e.document),e}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 e=this.onDisconnect;e&&(this.onDisconnect=null,e())}startLongPoll(e,t){for(this.myID=e,this.myPW=t,this.alive=!0;this.newRequest_(););}newRequest_(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;const e={};e.id=this.myID,e.pw=this.myPW,e.ser=this.currentSerial;let t=this.urlFn(e),r="",i=0;for(;this.pendingSegs.length>0&&this.pendingSegs[0].d.length+30+r.length<=1870;){const o=this.pendingSegs.shift();r=r+"&seg"+i+"="+o.seg+"&ts"+i+"="+o.ts+"&d"+i+"="+o.d,i++}return t+=r,this.addLongPollTag_(t,this.currentSerial),!0}return!1}enqueueSegment(e,t,r){this.pendingSegs.push({seg:e,ts:t,d:r}),this.alive&&this.newRequest_()}addLongPollTag_(e,t){this.outstandingRequests.add(t);const r=()=>{this.outstandingRequests.delete(t),this.newRequest_()},i=setTimeout(r,Math.floor(25e3));this.addTag(e,()=>{clearTimeout(i),r()})}addTag(e,t){(0,K.$g)()?this.doNodeLongPoll(e,t):setTimeout(()=>{try{if(!this.sendNewPolls)return;const r=this.myIFrame.doc.createElement("script");r.type="text/javascript",r.async=!0,r.src=e,r.onload=r.onreadystatechange=function(){const i=r.readyState;(!i||"loaded"===i||"complete"===i)&&(r.onload=r.onreadystatechange=null,r.parentNode&&r.parentNode.removeChild(r),t())},r.onerror=()=>{no("Long-poll script failed to load: "+e),this.sendNewPolls=!1,this.close()},this.myIFrame.doc.body.appendChild(r)}catch{}},Math.floor(1))}}let hL=null;typeof MozWebSocket<"u"?hL=MozWebSocket:typeof WebSocket<"u"&&(hL=WebSocket);let bb=(()=>{class n{constructor(t,r,i,s,o,a,l){this.connId=t,this.applicationId=i,this.appCheckToken=s,this.authToken=o,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=pC(this.connId),this.stats_=V5(r),this.connURL=n.connectionURL_(r,a,l,s,i),this.nodeAdmin=r.nodeAdmin}static connectionURL_(t,r,i,s,o){const a={v:"5"};return!(0,K.$g)()&&typeof location<"u"&&location.hostname&&Zhe.test(location.hostname)&&(a.r="f"),r&&(a.s=r),i&&(a.ls=i),s&&(a.ac=s),o&&(a.p=o),ife(t,"websocket",a)}open(t,r){this.onDisconnect=r,this.onMessage=t,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,O_.set("previous_websocket_failure",!0);try{let i;if((0,K.$g)()){i={headers:{"User-Agent":`Firebase/5/${A5}/${process.platform}/${this.nodeAdmin?"AdminNode":"Node"}`,"X-Firebase-GMPID":this.applicationId||""}},this.authToken&&(i.headers.Authorization=`Bearer ${this.authToken}`),this.appCheckToken&&(i.headers["X-Firebase-AppCheck"]=this.appCheckToken);const o=process.env,a=0===this.connURL.indexOf("wss://")?o.HTTPS_PROXY||o.https_proxy:o.HTTP_PROXY||o.http_proxy;a&&(i.proxy={origin:a})}this.mySock=new hL(this.connURL,[],i)}catch(i){this.log_("Error instantiating WebSocket.");const s=i.message||i.data;return s&&this.log_(s),void this.onClosed_()}this.mySock.onopen=()=>{this.log_("Websocket connected."),this.everConnected_=!0}
1,this.mySock.onclose=()=>{this.log_("Websocket connection was disconnected."),this.mySock=null,this.onClosed_()},this.mySock.onmessage=i=>{this.handleIncomingFrame(i)},this.mySock.onerror=i=>{this.log_("WebSocket error. Closing connection.");const s=i.message||i.data;s&&this.log_(s),this.onClosed_()}}start(){}static forceDisallow(){n.forceDisallow_=!0}static isAvailable(){let t=!1;if(typeof navigator<"u"&&navigator.userAgent){const i=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);i&&i.length>1&&parseFloat(i[1])<4.4&&(t=!0)}return!t&&null!==hL&&!n.forceDisallow_}static previouslyFailed(){return O_.isInMemoryStorage||!0===O_.get("previous_websocket_failure")}markConnectionHealthy(){O_.remove("previous_websocket_failure")}appendFrame_(t){if(this.frames.push(t),this.frames.length===this.totalFrames){const r=this.frames.join("");this.frames=null;const i=(0,K.$L)(r);this.onMessage(i)}}handleNewFrameCount_(t){this.totalFrames=t,this.frames=[]}extractFrameCount_(t){if((0,K.vA)(null===this.frames,"We already have a frame buffer"),t.length<=6){const r=Number(t);if(!isNaN(r))return this.handleNewFrameCount_(r),null}return this.handleNewFrameCount_(1),t}handleIncomingFrame(t){if(null===this.mySock)return;const r=t.data;if(this.bytesReceived+=r.length,this.stats_.incrementCounter("bytes_received",r.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(r);else{const i=this.extractFrameCount_(r);null!==i&&this.appendFrame_(i)}}send(t){this.resetKeepAlive();const r=(0,K.As)(t);this.bytesSent+=r.length,this.stats_.incrementCounter("bytes_sent",r.length);const i=qhe(r,16384);i.length>1&&this.sendString_(String(i.length));for(let s=0;s<i.length;s++)this.sendString_(i[s])}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_(t){try{this.mySock.send(t)}catch(r){this.log_("Exception thrown from WebSocket.send():",r.message||r.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}}}return n.responsesRequiredToBeHealthy=2,n.healthyTimeout=3e4,n})(),dfe=(()=>{class n{constructor(t){this.initTransports_(t)}static get ALL_TRANSPORTS(){return[Np,bb]}static get IS_TRANSPORT_INITIALIZED(){return this.globalTransportInitialized_}initTransports_(t){const r=bb&&bb.isAvailable();let i=r&&!bb.previouslyFailed();if(t.webSocketOnly&&(r||Wo("wss:// URL used, but browser isn't known to support websockets. Trying anyway."),i=!0),i)this.transports_=[bb];else{const s=this.transports_=[];for(const o of n.ALL_TRANSPORTS)o&&o.isAvailable()&&s.push(o);n.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 n.globalTransportInitialized_=!1,n})();class yfe{constructor(e,t,r,i,s,o,a,l,c,u){this.id=e,this.repoInfo_=t,this.applicationId_=r,this.appCheckToken_=i,this.authToken_=s,this.onMessage_=o,this.onReady_=a,this.onDisconnect_=l,this.onKill_=c,this.lastSessionId=u,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=pC("c:"+this.id+":"),this.transportManager_=new dfe(t),this.log_("Connection created"),this.start_()}start_(){const e=this.transportManager_.initialTransport();this.conn_=new e(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,null,this.lastSessionId),this.primaryResponsesRequired_=e.responsesRequiredToBeHealthy||0;const t=this.connReceiver_(this.conn_),r=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout(()=>{this.conn_&&this.conn_.open(t,r)},Math.floor(0));const i=e.healthyTimeout||0;i>0&&(this.healthyTimeout_=gC(()=>{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(i)))}nextTransportId_(){return"c:"+this.id+":"+this.connectionCount++}disconnReceiver_(e){return t=>{e===this.conn_?this.onConnectionLost_(t):e===this.secondaryConn_?(this.log_("Secondary connection lost."),this.onSecondaryConnectionLost_()):this.log_("closing an old connection")}}connReceiver_(e){return t=>{2!==this.state_&&(e===this.rx_?this.onPrimaryMessageReceived_(t):e===this.secondaryConn_?this.onSecondaryMessageReceived_(t):this.log_("message on old connection"))}}sendRequest(e){this.sendData_({t:"d",d:e})}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_(e){if("t"in e){const t=e.t;"a"===t?this.upgradeIfSecondaryHealthy_():"r"===t?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),(this.tx_===this.secondaryConn_||this.rx_===this.secondaryConn_)&&this.close()):"o"===t&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}}onSecondaryMessageReceived_(e){const t=mC("t",e),r=mC("d",e);if("c"===t)this.onSecondaryControl_(r);else{if("d"!==t)throw new Error("Unknown protocol layer: "+t);this.pendingDataMessages.push(r)}}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_(e){const t=mC("t",e),r=mC("d",e);"c"===t?this.onControl_(r):"d"===t&&this.onDataMessage_(r)}onDataMessage_(e){this.onPrimaryResponse_(),this.onMessage_(e)}onPrimaryResponse_(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))}onControl_(e){const t=mC("t",e);if("d"in e){const r=e.d;if("h"===t){const i=Object.assign({},r);this.repoInfo_.isUsingEmulator&&(i.h=this.repoInfo_.host),this.onHandshake_(i)}else if("n"===t){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(let i=0;i<this.pendingDataMessages.length;++i)this.onDataMessage_(this.pendingDataMessages[i]);this.pendingDataMessages=[],this.tryCleanupConnection()}else"s"===t?this.onConnectionShutdown_(r):"r"===t?this.onReset_(r):"e"===t?P5("Server Error: "+r):"o"===t?(this.log_("got pong on primary."),this.onPrimaryResponse_(),this.sendPingOnPrimaryIfNecessary_()):P5("Unknown control packet command: "+t)}}onHandshake_(e){const t=e.ts,r=e.v,i=e.h;this.sessionId=e.s,this.repoInfo_.host=i,0===this.state_&&(this.conn_.start(),this.onConnectionEstablished_(this.conn_,t),"5"!==r&&Wo("Protocol version mismatch detected"),this.tryStartUpgrade_())}tryStartUpgrade_(){const e=this.transportManager_.upgradeTransport();e&&this.startUpgrade_(e)}startUpgrade_(e){this.secondaryConn_=new e(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,this.sessionId),this.secondaryResponsesRequired_=e.responsesRequiredToBeHealthy||0;const t=this.connReceiver_(this.secondaryConn_),r=this.disconnReceiver_(this.secondaryConn_);this.secondaryConn_.open(t,r),gC(()=>{this.secondaryConn_&&(this.log_("Timed out trying to upgrade."),this.secondaryConn_.close())},Math.floor(6e4))}onReset_(e){this.log_("Reset packet received. New host: "+e),this.repoInfo_.host=e,1===this.state_?this.close():(this.closeConnections_(),this.start_())}onConnectionEstablished_(e,t){this.log_("Realtime connection established."),this.conn_=e,this.state_=1,this.onReady_&&(this.onReady_(t,this.sessionId),this.onReady_=null),0===this.primaryResponsesRequired_?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):gC(()=>{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 e=this.secondaryConn_;this.secondaryConn_=null,(this.tx_===e||this.rx_===e)&&this.close()}onConnectionLost_(e){this.conn_=null,e||0!==this.state_?1===this.state_&&this.log_("Realtime connection lost."):(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(O_.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)),this.close()}onConnectionShutdown_(e){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(e),this.onKill_=null),this.onDisconnect_=null,this.close()}sendData_(e){if(1!==this.state_)throw"Connection is not connected";this.tx_.send(e)}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 vfe{put(e,t,r,i){}merge(e,t,r,i){}refreshAuthToken(e){}refreshAppCheckToken(e){}onDisconnectPut(e,t,r){}onDisconnectMerge(e,t,r){}onDisconnectCancel(e,t){}reportStats(e){}}class wfe{constructor(e){this.allowedEvents_=e,this.listeners_={},(0,K.vA)(Array.isArray(e)&&e.length>0,"Requires a non-empty array")}trigger(e,...t){if(Array.isArray(this.listeners_[e])){const r=[...this.listeners_[e]];for(let i=0;i<r.length;i++)r[i].callback.apply(r[i].context,t)}}on(e,t,r){this.validateEventType_(e),this.listeners_[e]=this.listeners_[e]||[],this.listeners_[e].push({callback:t,context:r});const i=this.getInitialEvent(e);i&&t.apply(r,i)}off(e,t,r){this.validateEventType_(e);const i=this.listeners_[e]||[];for(let s=0;s<i.length;
1s++)if(i[s].callback===t&&(!r||r===i[s].context))return void i.splice(s,1)}validateEventType_(e){(0,K.vA)(this.allowedEvents_.find(t=>t===e),"Unknown event: "+e)}}class fL extends wfe{constructor(){super(["online"]),this.online_=!0,typeof window<"u"&&typeof window.addEventListener<"u"&&!(0,K.jZ)()&&(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 fL}getInitialEvent(e){return(0,K.vA)("online"===e,"Unknown event type: "+e),[this.online_]}currentlyOnline(){return this.online_}}class mr{constructor(e,t){if(void 0===t){this.pieces_=e.split("/");let r=0;for(let i=0;i<this.pieces_.length;i++)this.pieces_[i].length>0&&(this.pieces_[r]=this.pieces_[i],r++);this.pieces_.length=r,this.pieceNum_=0}else this.pieces_=e,this.pieceNum_=t}toString(){let e="";for(let t=this.pieceNum_;t<this.pieces_.length;t++)""!==this.pieces_[t]&&(e+="/"+this.pieces_[t]);return e||"/"}}function er(){return new mr("")}function Dn(n){return n.pieceNum_>=n.pieces_.length?null:n.pieces_[n.pieceNum_]}function Fp(n){return n.pieces_.length-n.pieceNum_}function Yr(n){let e=n.pieceNum_;return e<n.pieces_.length&&e++,new mr(n.pieces_,e)}function Y5(n){return n.pieceNum_<n.pieces_.length?n.pieces_[n.pieces_.length-1]:null}function yC(n,e=0){return n.pieces_.slice(n.pieceNum_+e)}function Efe(n){if(n.pieceNum_>=n.pieces_.length)return null;const e=[];for(let t=n.pieceNum_;t<n.pieces_.length-1;t++)e.push(n.pieces_[t]);return new mr(e,0)}function ki(n,e){const t=[];for(let r=n.pieceNum_;r<n.pieces_.length;r++)t.push(n.pieces_[r]);if(e instanceof mr)for(let r=e.pieceNum_;r<e.pieces_.length;r++)t.push(e.pieces_[r]);else{const r=e.split("/");for(let i=0;i<r.length;i++)r[i].length>0&&t.push(r[i])}return new mr(t,0)}function Cn(n){return n.pieceNum_>=n.pieces_.length}function ga(n,e){const t=Dn(n),r=Dn(e);if(null===t)return e;if(t===r)return ga(Yr(n),Yr(e));throw new Error("INTERNAL ERROR: innerPath ("+e+") is not within outerPath ("+n+")")}function PKe(n,e){const t=yC(n,0),r=yC(e,0);for(let i=0;i<t.length&&i<r.length;i++){const s=F_(t[i],r[i]);if(0!==s)return s}return t.length===r.length?0:t.length<r.length?-1:1}function B5(n,e){if(Fp(n)!==Fp(e))return!1;for(let t=n.pieceNum_,r=e.pieceNum_;t<=n.pieces_.length;t++,r++)if(n.pieces_[t]!==e.pieces_[r])return!1;return!0}function lc(n,e){let t=n.pieceNum_,r=e.pieceNum_;if(Fp(n)>Fp(e))return!1;for(;t<n.pieces_.length;){if(n.pieces_[t]!==e.pieces_[r])return!1;++t,++r}return!0}class RKe{constructor(e,t){this.errorPrefix_=t,this.parts_=yC(e,0),this.byteLength_=Math.max(1,this.parts_.length);for(let r=0;r<this.parts_.length;r++)this.byteLength_+=(0,K.OE)(this.parts_[r]);Mfe(this)}}function Mfe(n){if(n.byteLength_>768)throw new Error(n.errorPrefix_+"has a key path longer than 768 bytes ("+n.byteLength_+").");if(n.parts_.length>32)throw new Error(n.errorPrefix_+"path specified exceeds the maximum depth that can be written (32) or object contains a cycle "+V_(n))}function V_(n){return 0===n.parts_.length?"":"in property '"+n.parts_.join(".")+"'"}class H5 extends wfe{constructor(){let e,t;super(["visible"]),typeof document<"u"&&typeof document.addEventListener<"u"&&(typeof document.hidden<"u"?(t="visibilitychange",e="hidden"):typeof document.mozHidden<"u"?(t="mozvisibilitychange",e="mozHidden"):typeof document.msHidden<"u"?(t="msvisibilitychange",e="msHidden"):typeof document.webkitHidden<"u"&&(t="webkitvisibilitychange",e="webkitHidden")),this.visible_=!0,t&&document.addEventListener(t,()=>{const r=!document[e];r!==this.visible_&&(this.visible_=r,this.trigger("visible",r))},!1)}static getInstance(){return new H5}getInitialEvent(e){return(0,K.vA)("visible"===e,"Unknown event type: "+e),[this.visible_]}}const vC=1e3;let mL,U_=(()=>{class n extends vfe{constructor(t,r,i,s,o,a,l,c){if(super(),this.repoInfo_=t,this.applicationId_=r,this.onDataUpdate_=i,this.onConnectStatus_=s,this.onServerInfoUpdate_=o,this.authTokenProvider_=a,this.appCheckTokenProvider_=l,this.authOverride_=c,this.id=n.nextPersistentConnectionId_++,this.log_=pC("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_=vC,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,c&&!(0,K.$g)())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");H5.getInstance().on("visible",this.onVisible_,this),-1===t.host.indexOf("fblocal")&&fL.getInstance().on("online",this.onOnline_,this)}sendRequest(t,r,i){const s=++this.requestNumber_,o={r:s,a:t,b:r};this.log_((0,K.As)(o)),(0,K.vA)(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(o),i&&(this.requestCBHash_[s]=i)}get(t){this.initConnection_();const r=new K.cY,s={action:"g",request:{p:t._path.toString(),q:t._queryObject},onComplete:a=>{const l=a.d;"ok"===a.s?r.resolve(l):r.reject(l)}};return this.outstandingGets_.push(s),this.outstandingGetCount_++,this.connected_&&this.sendGet_(this.outstandingGets_.length-1),r.promise}listen(t,r,i,s){this.initConnection_();const o=t._queryIdentifier,a=t._path.toString();this.log_("Listen called for "+a+" "+o),this.listens.has(a)||this.listens.set(a,new Map),(0,K.vA)(t._queryParams.isDefault()||!t._queryParams.loadsAllData(),"listen() called for non-default but complete query"),(0,K.vA)(!this.listens.get(a).has(o),"listen() called twice for same path/queryId.");const l={onComplete:s,hashFn:r,query:t,tag:i};this.listens.get(a).set(o,l),this.connected_&&this.sendListen_(l)}sendGet_(t){const r=this.outstandingGets_[t];this.sendRequest("g",r.request,i=>{delete this.outstandingGets_[t],this.outstandingGetCount_--,0===this.outstandingGetCount_&&(this.outstandingGets_=[]),r.onComplete&&r.onComplete(i)})}sendListen_(t){const r=t.query,i=r._path.toString(),s=r._queryIdentifier;this.log_("Listen on "+i+" for "+s);const o={p:i};t.tag&&(o.q=r._queryObject,o.t=t.tag),o.h=t.hashFn(),this.sendRequest("q",o,l=>{const c=l.d,u=l.s;n.warnOnListenWarnings_(c,r),(this.listens.get(i)&&this.listens.get(i).get(s))===t&&(this.log_("listen response",l),"ok"!==u&&this.removeListen_(i,s),t.onComplete&&t.onComplete(u,c))})}static warnOnListenWarnings_(t,r){if(t&&"object"==typeof t&&(0,K.gR)(t,"w")){const i=(0,K.yw)(t,"w");if(Array.isArray(i)&&~i.indexOf("no_index")){const s='".indexOn": "'+r._queryParams.getIndex().toString()+'"',o=r._path.toString();Wo(`Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding ${s} at ${o} to your security rules for better performance.`)}}}refreshAuthToken(t){this.authToken_=t,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},()=>{}),this.reduceReconnectDelayIfAdminCredential_(t)}reduceReconnectDelayIfAdminCredential_(t){(t&&40===t.length||(0,K.qc)(t))&&(this.log_("Admin auth credential detected. Reducing max reconnect time."),this.maxReconnectDelay_=3e4)}refreshAppCheckToken(t){this.appCheckToken_=t,this.log_("App check token refreshed"),this.appCheckToken_?this.tryAppCheck():this.connected_&&this.sendRequest("unappeck",{},()=>{})}tryAuth(){if(this.connected_&&this.authToken_){const t=this.authToken_,r=(0,K.Cv)(t)?"auth":"gauth",i={cred:t};null===this.authOverride_?i.noauth=!0:"object"==typeof this.authOverride_&&(i.authvar=this.authOverride_),this.sendRequest(r,i,s=>{const o=s.s,a=s.d||"error";this.authToken_===t&&("ok"===o?this.invalidAuthTokenCount_=0:this.onAuthRevoked_(o,a))})}}tryAppCheck(){this.connected_&&this.appCheckToken_&&this.sendRequest("appcheck",{token:this.appCheckToken_},t=>{const r=t.s,i=t.d||"error";"ok"===r?this.invalidAppCheckTokenCount_=0:this.onAppCheckRevoked_(r,i)})}unlisten(t,r){const i=t._path.toString(),s=t._queryIdentifier;this.log_("Unlisten called for "+i+" "+s),(0,K.vA)(t._queryParams.isDefault()||!t._queryParams.loadsAllData(),"unlisten() called for non-default but complete query"),this.removeListen_(i,s)&&this.connected_&&this.sendUnlisten_(i,s,t._queryObject,r)}sendUnlisten_(t,r,i,s){this.log_("Unlisten on "+t+" for "+r);const o={p:t};s&&(o.q=i,o.t=s),this.sendRequest("n",o)}onDisconnectPut(t,r,i){this.initConnection_(),this.connected_?this.sendOnDisconnect_("o",t,r,i):this.onDisconnectRequestQueue_.push({pathString:t,action:"o",data:r,onComplete:i})}onDisconnectMerge(t,r,i){this.initConnection_(),this.connected_?this.sendOnDisconnect_("om",t,r,i):this.onDisconnectRequestQueue_.push({pathString:t,action:"om",data:r,onComplete:i})}onDisconnectCancel(t,r){this.initConnection_(),this.connected_?this.sendOnDisconnect_("oc",t,null,r):this.onDisconnectRequestQueue_.push({pathString:t,action:"oc",data:null,onComplete:r})}sendOnDisconnect_(t,r,i,s){const o={p:r,d:i};this.log_("onDisconnect "+t,o),this.sendRequest(t,o,a=>{s&&setTimeout(()=>{s(a.s,a.d)},Math.floor(0))})}put(t,r,i,s){this.putInternal("p",t,r,i,s)}merge(t,r,i,s){this.putInternal("m",t,r,i,s)}putInternal(t,r,i,s,o){this.initConnection_();const a={p:r,d:i};void 0!==o&&(a.h=o),this.outstandingPuts_.push({action:t,request:a,onComplete:s}),this.outstandingPutCount_++,this.connected_?this.sendPut_(this.outstandingPuts_.length-1):this.log_("Buffering put: "+r)}
1sendPut_(t){const r=this.outstandingPuts_[t].action,i=this.outstandingPuts_[t].request,s=this.outstandingPuts_[t].onComplete;this.outstandingPuts_[t].queued=this.connected_,this.sendRequest(r,i,o=>{this.log_(r+" response",o),delete this.outstandingPuts_[t],this.outstandingPutCount_--,0===this.outstandingPutCount_&&(this.outstandingPuts_=[]),s&&s(o.s,o.d)})}reportStats(t){if(this.connected_){const r={c:t};this.log_("reportStats",r),this.sendRequest("s",r,i=>{"ok"!==i.s&&this.log_("reportStats","Error sending stats: "+i.d)})}}onDataMessage_(t){if("r"in t){this.log_("from server: "+(0,K.As)(t));const r=t.r,i=this.requestCBHash_[r];i&&(delete this.requestCBHash_[r],i(t.b))}else{if("error"in t)throw"A server-side error has occurred: "+t.error;"a"in t&&this.onDataPush_(t.a,t.b)}}onDataPush_(t,r){this.log_("handleServerMessage",t,r),"d"===t?this.onDataUpdate_(r.p,r.d,!1,r.t):"m"===t?this.onDataUpdate_(r.p,r.d,!0,r.t):"c"===t?this.onListenRevoked_(r.p,r.q):"ac"===t?this.onAuthRevoked_(r.s,r.d):"apc"===t?this.onAppCheckRevoked_(r.s,r.d):"sd"===t?this.onSecurityDebugPacket_(r):P5("Unrecognized action received from server: "+(0,K.As)(t)+"\nAre you using the latest client?")}onReady_(t,r){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=(new Date).getTime(),this.handleTimestamp_(t),this.lastSessionId=r,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)}scheduleConnect_(t){(0,K.vA)(!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(t))}initConnection_(){!this.realtime_&&this.firstConnection_&&this.scheduleConnect_(0)}onVisible_(t){t&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible. Reducing delay."),this.reconnectDelay_=vC,this.realtime_||this.scheduleConnect_(0)),this.visible_=t}onOnline_(t){t?(this.log_("Browser went online."),this.reconnectDelay_=vC,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_=vC),this.lastConnectionEstablishedTime_=null):(this.log_("Window isn't visible. Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime());const t=(new Date).getTime()-this.lastConnectionAttemptTime_;let r=Math.max(0,this.reconnectDelay_-t);r=Math.random()*r,this.log_("Trying to reconnect in "+r+"ms"),this.scheduleConnect_(r),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,1.3*this.reconnectDelay_)}this.onConnectStatus_(!1)}establishConnection_(){var t=this;return(0,ee.A)(function*(){if(t.shouldReconnect_()){t.log_("Making a connection attempt"),t.lastConnectionAttemptTime_=(new Date).getTime(),t.lastConnectionEstablishedTime_=null;const r=t.onDataMessage_.bind(t),i=t.onReady_.bind(t),s=t.onRealtimeDisconnect_.bind(t),o=t.id+":"+n.nextConnectionId_++,a=t.lastSessionId;let l=!1,c=null;const u=function(){c?c.close():(l=!0,s())};t.realtime_={close:u,sendRequest:function(_){(0,K.vA)(c,"sendRequest call when we're not connected not allowed."),c.sendRequest(_)}};const f=t.forceTokenRefresh_;t.forceTokenRefresh_=!1;try{const[_,w]=yield Promise.all([t.authTokenProvider_.getToken(f),t.appCheckTokenProvider_.getToken(f)]);l?no("getToken() completed but was canceled"):(no("getToken() completed. Creating connection."),t.authToken_=_&&_.accessToken,t.appCheckToken_=w&&w.token,c=new yfe(o,t.repoInfo_,t.applicationId_,t.appCheckToken_,t.authToken_,r,i,s,M=>{Wo(M+" ("+t.repoInfo_.toString()+")"),t.interrupt("server_kill")},a))}catch(_){t.log_("Failed to get token: "+_),l||(t.repoInfo_.nodeAdmin&&Wo(_),u())}}})()}interrupt(t){no("Interrupting connection for reason: "+t),this.interruptReasons_[t]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())}resume(t){no("Resuming connection for reason: "+t),delete this.interruptReasons_[t],(0,K.Im)(this.interruptReasons_)&&(this.reconnectDelay_=vC,this.realtime_||this.scheduleConnect_(0))}handleTimestamp_(t){const r=t-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:r})}cancelSentTransactions_(){for(let t=0;t<this.outstandingPuts_.length;t++){const r=this.outstandingPuts_[t];r&&"h"in r.request&&r.queued&&(r.onComplete&&r.onComplete("disconnect"),delete this.outstandingPuts_[t],this.outstandingPutCount_--)}0===this.outstandingPutCount_&&(this.outstandingPuts_=[])}onListenRevoked_(t,r){let i;i=r?r.map(o=>R5(o)).join("$"):"default";const s=this.removeListen_(t,i);s&&s.onComplete&&s.onComplete("permission_denied")}removeListen_(t,r){const i=new mr(t).toString();let s;if(this.listens.has(i)){const o=this.listens.get(i);s=o.get(r),o.delete(r),0===o.size&&this.listens.delete(i)}else s=void 0;return s}onAuthRevoked_(t,r){no("Auth token revoked: "+t+"/"+r),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),("invalid_token"===t||"permission_denied"===t)&&(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=3&&(this.reconnectDelay_=3e4,this.authTokenProvider_.notifyForInvalidToken()))}onAppCheckRevoked_(t,r){no("App check token revoked: "+t+"/"+r),this.appCheckToken_=null,this.forceTokenRefresh_=!0,("invalid_token"===t||"permission_denied"===t)&&(this.invalidAppCheckTokenCount_++,this.invalidAppCheckTokenCount_>=3&&this.appCheckTokenProvider_.notifyForInvalidToken())}onSecurityDebugPacket_(t){this.securityDebugCallback_?this.securityDebugCallback_(t):"msg"in t&&console.log("FIREBASE: "+t.msg.replace("\n","\nFIREBASE: "))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const t of this.listens.values())for(const r of t.values())this.sendListen_(r);for(let t=0;t<this.outstandingPuts_.length;t++)this.outstandingPuts_[t]&&this.sendPut_(t);for(;this.onDisconnectRequestQueue_.length;){const t=this.onDisconnectRequestQueue_.shift();this.sendOnDisconnect_(t.action,t.pathString,t.data,t.onComplete)}for(let t=0;t<this.outstandingGets_.length;t++)this.outstandingGets_[t]&&this.sendGet_(t)}sendConnectStats_(){const t={};let r="js";(0,K.$g)()&&(r=this.repoInfo_.nodeAdmin?"admin_node":"node"),t["sdk."+r+"."+A5.replace(/\./g,"-")]=1,(0,K.jZ)()?t["framework.cordova"]=1:(0,K.lV)()&&(t["framework.reactnative"]=1),this.reportStats(t)}shouldReconnect_(){const t=fL.getInstance().currentlyOnline();return(0,K.Im)(this.interruptReasons_)&&t}}return n.nextPersistentConnectionId_=0,n.nextConnectionId_=0,n})();class An{constructor(e,t){this.name=e,this.node=t}static Wrap(e,t){return new An(e,t)}}class pL{getCompare(){return this.compare.bind(this)}indexedValueChanged(e,t){const r=new An(Op,e),i=new An(Op,t);return 0!==this.compare(r,i)}
1minPost(){return An.MIN}}class Cfe extends pL{static get __EMPTY_NODE(){return mL}static set __EMPTY_NODE(e){mL=e}compare(e,t){return F_(e.name,t.name)}isDefinedOn(e){throw(0,K.Hk)("KeyIndex.isDefinedOn not expected to be called.")}indexedValueChanged(e,t){return!1}minPost(){return An.MIN}maxPost(){return new An(Ch,mL)}makePost(e,t){return(0,K.vA)("string"==typeof e,"KeyIndex indexValue must always be a string."),new An(e,mL)}toString(){return".key"}}const dd=new Cfe;class gL{constructor(e,t,r,i,s=null){this.isReverse_=i,this.resultGenerator_=s,this.nodeStack_=[];let o=1;for(;!e.isEmpty();)if(o=t?r(e.key,t):1,i&&(o*=-1),o<0)e=this.isReverse_?e.left:e.right;else{if(0===o){this.nodeStack_.push(e);break}this.nodeStack_.push(e),e=this.isReverse_?e.right:e.left}}getNext(){if(0===this.nodeStack_.length)return null;let t,e=this.nodeStack_.pop();if(t=this.resultGenerator_?this.resultGenerator_(e.key,e.value):{key:e.key,value:e.value},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 this.resultGenerator_?this.resultGenerator_(e.key,e.value):{key:e.key,value:e.value}}}let $5,Qc=(()=>{class n{constructor(t,r,i,s,o){this.key=t,this.value=r,this.color=i??n.RED,this.left=s??Ga.EMPTY_NODE,this.right=o??Ga.EMPTY_NODE}copy(t,r,i,s,o){return new n(t??this.key,r??this.value,i??this.color,s??this.left,o??this.right)}count(){return this.left.count()+1+this.right.count()}isEmpty(){return!1}inorderTraversal(t){return this.left.inorderTraversal(t)||!!t(this.key,this.value)||this.right.inorderTraversal(t)}reverseTraversal(t){return this.right.reverseTraversal(t)||t(this.key,this.value)||this.left.reverseTraversal(t)}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(t,r,i){let s=this;const o=i(t,s.key);return s=o<0?s.copy(null,null,null,s.left.insert(t,r,i),null):0===o?s.copy(null,r,null,null,null):s.copy(null,null,null,null,s.right.insert(t,r,i)),s.fixUp_()}removeMin_(){if(this.left.isEmpty())return Ga.EMPTY_NODE;let t=this;return!t.left.isRed_()&&!t.left.left.isRed_()&&(t=t.moveRedLeft_()),t=t.copy(null,null,null,t.left.removeMin_(),null),t.fixUp_()}remove(t,r){let i,s;if(i=this,r(t,i.key)<0)!i.left.isEmpty()&&!i.left.isRed_()&&!i.left.left.isRed_()&&(i=i.moveRedLeft_()),i=i.copy(null,null,null,i.left.remove(t,r),null);else{if(i.left.isRed_()&&(i=i.rotateRight_()),!i.right.isEmpty()&&!i.right.isRed_()&&!i.right.left.isRed_()&&(i=i.moveRedRight_()),0===r(t,i.key)){if(i.right.isEmpty())return Ga.EMPTY_NODE;s=i.right.min_(),i=i.copy(s.key,s.value,null,null,i.right.removeMin_())}i=i.copy(null,null,null,null,i.right.remove(t,r))}return i.fixUp_()}isRed_(){return this.color}fixUp_(){let t=this;return t.right.isRed_()&&!t.left.isRed_()&&(t=t.rotateLeft_()),t.left.isRed_()&&t.left.left.isRed_()&&(t=t.rotateRight_()),t.left.isRed_()&&t.right.isRed_()&&(t=t.colorFlip_()),t}moveRedLeft_(){let t=this.colorFlip_();return t.right.left.isRed_()&&(t=t.copy(null,null,null,null,t.right.rotateRight_()),t=t.rotateLeft_(),t=t.colorFlip_()),t}moveRedRight_(){let t=this.colorFlip_();return t.left.left.isRed_()&&(t=t.rotateRight_(),t=t.colorFlip_()),t}rotateLeft_(){const t=this.copy(null,null,n.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)}rotateRight_(){const t=this.copy(null,null,n.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)}colorFlip_(){const t=this.left.copy(null,null,!this.left.color,null,null),r=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,t,r)}checkMaxDepth_(){const t=this.check_();return Math.pow(2,t)<=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 t=this.left.check_();if(t!==this.right.check_())throw new Error("Black depths differ");return t+(this.isRed_()?0:1)}}return n.RED=!0,n.BLACK=!1,n})();class Ga{constructor(e,t=Ga.EMPTY_NODE){this.comparator_=e,this.root_=t}insert(e,t){return new Ga(this.comparator_,this.root_.insert(e,t,this.comparator_).copy(null,null,Qc.BLACK,null,null))}remove(e){return new Ga(this.comparator_,this.root_.remove(e,this.comparator_).copy(null,null,Qc.BLACK,null,null))}get(e){let t,r=this.root_;for(;!r.isEmpty();){if(t=this.comparator_(e,r.key),0===t)return r.value;t<0?r=r.left:t>0&&(r=r.right)}return null}getPredecessorKey(e){let t,r=this.root_,i=null;for(;!r.isEmpty();){if(t=this.comparator_(e,r.key),0===t){if(r.left.isEmpty())return i?i.key:null;for(r=r.left;!r.right.isEmpty();)r=r.right;return r.key}t<0?r=r.left:t>0&&(i=r,r=r.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(e){return this.root_.inorderTraversal(e)}reverseTraversal(e){return this.root_.reverseTraversal(e)}getIterator(e){return new gL(this.root_,null,this.comparator_,!1,e)}getIteratorFrom(e,t){return new gL(this.root_,e,this.comparator_,!1,t)}getReverseIteratorFrom(e,t){return new gL(this.root_,e,this.comparator_,!0,t)}getReverseIterator(e){return new gL(this.root_,null,this.comparator_,!0,e)}}function YKe(n,e){return F_(n.name,e.name)}function z5(n,e){return F_(n,e)}Ga.EMPTY_NODE=new class jKe{copy(e,t,r,i,s){return this}insert(e,t,r){return new Qc(e,t,null)}remove(e,t){return this}count(){return 0}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}check_(){return 0}isRed_(){return!1}};const Sfe=function(n){return"number"==typeof n?"number:"+Whe(n):"string:"+n},Afe=function(n){if(n.isLeafNode()){const e=n.val();(0,K.vA)("string"==typeof e||"number"==typeof e||"object"==typeof e&&(0,K.gR)(e,".sv"),"Priority must be a string or number.")}else(0,K.vA)(n===$5||n.isEmpty(),"priority of unexpected type.");(0,K.vA)(n===$5||n.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")};let xfe,kfe,Pfe,Tb=(()=>{class n{constructor(t,r=n.__childrenNodeConstructor.EMPTY_NODE){this.value_=t,this.priorityNode_=r,this.lazyHash_=null,(0,K.vA)(null!=this.value_,"LeafNode shouldn't be created with null/undefined value."),Afe(this.priorityNode_)}static set __childrenNodeConstructor(t){xfe=t}static get __childrenNodeConstructor(){return xfe}isLeafNode(){return!0}getPriority(){return this.priorityNode_}updatePriority(t){return new n(this.value_,t)}getImmediateChild(t){return".priority"===t?this.priorityNode_:n.__childrenNodeConstructor.EMPTY_NODE}getChild(t){return Cn(t)?this:".priority"===Dn(t)?this.priorityNode_:n.__childrenNodeConstructor.EMPTY_NODE}hasChild(){return!1}getPredecessorChildName(t,r){return null}updateImmediateChild(t,r){return".priority"===t?this.updatePriority(r):r.isEmpty()&&".priority"!==t?this:n.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(t,r).updatePriority(this.priorityNode_)}updateChild(t,r){const i=Dn(t);return null===i?r:r.isEmpty()&&".priority"!==i?this:((0,K.vA)(".priority"!==i||1===Fp(t),".priority must be the last token in a path"),this.updateImmediateChild(i,n.__childrenNodeConstructor.EMPTY_NODE.updateChild(Yr(t),r)))}isEmpty(){return!1}numChildren(){return 0}forEachChild(t,r){return!1}val(t){return t&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()}hash(){if(null===this.lazyHash_){let t="";this.priorityNode_.isEmpty()||(t+="priority:"+Sfe(this.priorityNode_.val())+":");const r=typeof this.value_;t+=r+":",t+="number"===r?Whe(this.value_):this.value_,this.lazyHash_=Hhe(t)}return this.lazyHash_}getValue(){return this.value_}compareTo(t){return t===n.__childrenNodeConstructor.EMPTY_NODE?1:t instanceof n.__childrenNodeConstructor?-1:((0,K.vA)(t.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(t))}compareToLeafNode_(t){const r=typeof t.value_,i=typeof this.value_,s=n.VALUE_TYPE_ORDER.indexOf(r),o=n.VALUE_TYPE_ORDER.indexOf(i);return(0,K.vA)(s>=0,"Unknown leaf type: "+r),(0,K.vA)(o>=0,"Unknown leaf type: "+i),s===o?"object"===i?0:this.value_<t.value_?-1:this.value_===t.value_?0:1:o-s}withIndex(){return this}isIndexed(){return!0}equals(t){return t===this||!!t.isLeafNode()&&(this.value_===t.value_&&this.priorityNode_.equals(t.priorityNode_))}}return n.VALUE_TYPE_ORDER=["object","boolean","number","string"],n})();
1const Zr=new class $Ke extends pL{compare(e,t){const r=e.node.getPriority(),i=t.node.getPriority(),s=r.compareTo(i);return 0===s?F_(e.name,t.name):s}isDefinedOn(e){return!e.getPriority().isEmpty()}indexedValueChanged(e,t){return!e.getPriority().equals(t.getPriority())}minPost(){return An.MIN}maxPost(){return new An(Ch,new Tb("[PRIORITY-POST]",Pfe))}makePost(e,t){const r=kfe(e);return new An(t,new Tb("[PRIORITY-POST]",r))}toString(){return".priority"}},qKe=Math.log(2);class WKe{constructor(e){this.count=parseInt(Math.log(e+1)/qKe,10),this.current_=this.count-1;const i=(s=>parseInt(Array(this.count+1).join("1"),2))();this.bits_=e+1&i}nextBitIsOne(){const e=!(this.bits_&1<<this.current_);return this.current_--,e}}const _L=function(n,e,t,r){n.sort(e);const i=function(l,c){const u=c-l;let d,f;if(0===u)return null;if(1===u)return d=n[l],f=t?t(d):d,new Qc(f,d.node,Qc.BLACK,null,null);{const _=parseInt(u/2,10)+l,w=i(l,_),M=i(_+1,c);return d=n[_],f=t?t(d):d,new Qc(f,d.node,Qc.BLACK,w,M)}},a=function(l){let c=null,u=null,d=n.length;const f=function(w,M){const S=d-w,O=d;d-=w;const N=i(S+1,O),j=n[S],Z=t?t(j):j;_(new Qc(Z,j.node,M,null,N))},_=function(w){c?(c.left=w,c=w):(u=w,c=w)};for(let w=0;w<l.count;++w){const M=l.nextBitIsOne(),S=Math.pow(2,l.count-(w+1));M?f(S,Qc.BLACK):(f(S,Qc.BLACK),f(S,Qc.RED))}return u}(new WKe(n.length));return new Ga(r||e,a)};let q5;const Eb={};class Sh{constructor(e,t){this.indexes_=e,this.indexSet_=t}static get Default(){return(0,K.vA)(Eb&&Zr,"ChildrenNode.ts has not been loaded"),q5=q5||new Sh({".priority":Eb},{".priority":Zr}),q5}get(e){const t=(0,K.yw)(this.indexes_,e);if(!t)throw new Error("No index defined for "+e);return t instanceof Ga?t:null}hasIndex(e){return(0,K.gR)(this.indexSet_,e.toString())}addIndex(e,t){(0,K.vA)(e!==dd,"KeyIndex always exists and isn't meant to be added to the IndexMap.");const r=[];let i=!1;const s=t.getIterator(An.Wrap);let a,o=s.getNext();for(;o;)i=i||e.isDefinedOn(o.node),r.push(o),o=s.getNext();a=i?_L(r,e.getCompare()):Eb;const l=e.toString(),c=Object.assign({},this.indexSet_);c[l]=e;const u=Object.assign({},this.indexes_);return u[l]=a,new Sh(u,c)}addToIndexes(e,t){const r=(0,K.kH)(this.indexes_,(i,s)=>{const o=(0,K.yw)(this.indexSet_,s);if((0,K.vA)(o,"Missing index implementation for "+s),i===Eb){if(o.isDefinedOn(e.node)){const a=[],l=t.getIterator(An.Wrap);let c=l.getNext();for(;c;)c.name!==e.name&&a.push(c),c=l.getNext();return a.push(e),_L(a,o.getCompare())}return Eb}{const a=t.get(e.name);let l=i;return a&&(l=l.remove(new An(e.name,a))),l.insert(e,e.node)}});return new Sh(r,this.indexSet_)}removeFromIndexes(e,t){const r=(0,K.kH)(this.indexes_,i=>{if(i===Eb)return i;{const s=t.get(e.name);return s?i.remove(new An(e.name,s)):i}});return new Sh(r,this.indexSet_)}}let wC,fn=(()=>{class n{constructor(t,r,i){this.children_=t,this.priorityNode_=r,this.indexMap_=i,this.lazyHash_=null,this.priorityNode_&&Afe(this.priorityNode_),this.children_.isEmpty()&&(0,K.vA)(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}static get EMPTY_NODE(){return wC||(wC=new n(new Ga(z5),null,Sh.Default))}isLeafNode(){return!1}getPriority(){return this.priorityNode_||wC}updatePriority(t){return this.children_.isEmpty()?this:new n(this.children_,t,this.indexMap_)}getImmediateChild(t){if(".priority"===t)return this.getPriority();{const r=this.children_.get(t);return null===r?wC:r}}getChild(t){const r=Dn(t);return null===r?this:this.getImmediateChild(r).getChild(Yr(t))}hasChild(t){return null!==this.children_.get(t)}updateImmediateChild(t,r){if((0,K.vA)(r,"We should always be passing snapshot nodes"),".priority"===t)return this.updatePriority(r);{const i=new An(t,r);let s,o;r.isEmpty()?(s=this.children_.remove(t),o=this.indexMap_.removeFromIndexes(i,this.children_)):(s=this.children_.insert(t,r),o=this.indexMap_.addToIndexes(i,this.children_));const a=s.isEmpty()?wC:this.priorityNode_;return new n(s,a,o)}}updateChild(t,r){const i=Dn(t);if(null===i)return r;{(0,K.vA)(".priority"!==Dn(t)||1===Fp(t),".priority must be the last token in a path");const s=this.getImmediateChild(i).updateChild(Yr(t),r);return this.updateImmediateChild(i,s)}}isEmpty(){return this.children_.isEmpty()}numChildren(){return this.children_.count()}val(t){if(this.isEmpty())return null;const r={};let i=0,s=0,o=!0;if(this.forEachChild(Zr,(a,l)=>{r[a]=l.val(t),i++,o&&n.INTEGER_REGEXP_.test(a)?s=Math.max(s,Number(a)):o=!1}),!t&&o&&s<2*i){const a=[];for(const l in r)a[l]=r[l];return a}
1return t&&!this.getPriority().isEmpty()&&(r[".priority"]=this.getPriority().val()),r}hash(){if(null===this.lazyHash_){let t="";this.getPriority().isEmpty()||(t+="priority:"+Sfe(this.getPriority().val())+":"),this.forEachChild(Zr,(r,i)=>{const s=i.hash();""!==s&&(t+=":"+r+":"+s)}),this.lazyHash_=""===t?"":Hhe(t)}return this.lazyHash_}getPredecessorChildName(t,r,i){const s=this.resolveIndex_(i);if(s){const o=s.getPredecessorKey(new An(t,r));return o?o.name:null}return this.children_.getPredecessorKey(t)}getFirstChildName(t){const r=this.resolveIndex_(t);if(r){const i=r.minKey();return i&&i.name}return this.children_.minKey()}getFirstChild(t){const r=this.getFirstChildName(t);return r?new An(r,this.children_.get(r)):null}getLastChildName(t){const r=this.resolveIndex_(t);if(r){const i=r.maxKey();return i&&i.name}return this.children_.maxKey()}getLastChild(t){const r=this.getLastChildName(t);return r?new An(r,this.children_.get(r)):null}forEachChild(t,r){const i=this.resolveIndex_(t);return i?i.inorderTraversal(s=>r(s.name,s.node)):this.children_.inorderTraversal(r)}getIterator(t){return this.getIteratorFrom(t.minPost(),t)}getIteratorFrom(t,r){const i=this.resolveIndex_(r);if(i)return i.getIteratorFrom(t,s=>s);{const s=this.children_.getIteratorFrom(t.name,An.Wrap);let o=s.peek();for(;null!=o&&r.compare(o,t)<0;)s.getNext(),o=s.peek();return s}}getReverseIterator(t){return this.getReverseIteratorFrom(t.maxPost(),t)}getReverseIteratorFrom(t,r){const i=this.resolveIndex_(r);if(i)return i.getReverseIteratorFrom(t,s=>s);{const s=this.children_.getReverseIteratorFrom(t.name,An.Wrap);let o=s.peek();for(;null!=o&&r.compare(o,t)>0;)s.getNext(),o=s.peek();return s}}compareTo(t){return this.isEmpty()?t.isEmpty()?0:-1:t.isLeafNode()||t.isEmpty()?1:t===bC?-1:0}withIndex(t){if(t===dd||this.indexMap_.hasIndex(t))return this;{const r=this.indexMap_.addIndex(t,this.children_);return new n(this.children_,this.priorityNode_,r)}}isIndexed(t){return t===dd||this.indexMap_.hasIndex(t)}equals(t){if(t===this)return!0;if(t.isLeafNode())return!1;{const r=t;if(this.getPriority().equals(r.getPriority())){if(this.children_.count()===r.children_.count()){const i=this.getIterator(Zr),s=r.getIterator(Zr);let o=i.getNext(),a=s.getNext();for(;o&&a;){if(o.name!==a.name||!o.node.equals(a.node))return!1;o=i.getNext(),a=s.getNext()}return null===o&&null===a}return!1}return!1}}resolveIndex_(t){return t===dd?null:this.indexMap_.get(t.toString())}}return n.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/,n})();const bC=new class GKe extends fn{constructor(){super(new Ga(z5),fn.EMPTY_NODE,Sh.Default)}compareTo(e){return e===this?0:1}equals(e){return e===this}getPriority(){return this}getImmediateChild(e){return fn.EMPTY_NODE}isEmpty(){return!1}};Object.defineProperties(An,{MIN:{value:new An(Op,fn.EMPTY_NODE)},MAX:{value:new An(Ch,bC)}}),Cfe.__EMPTY_NODE=fn.EMPTY_NODE,Tb.__childrenNodeConstructor=fn,function BKe(n){$5=n}(bC),function zKe(n){Pfe=n}(bC);const KKe=!0;function Ui(n,e=null){if(null===n)return fn.EMPTY_NODE;if("object"==typeof n&&".priority"in n&&(e=n[".priority"]),(0,K.vA)(null===e||"string"==typeof e||"number"==typeof e||"object"==typeof e&&".sv"in e,"Invalid priority type found: "+typeof e),"object"==typeof n&&".value"in n&&null!==n[".value"]&&(n=n[".value"]),"object"!=typeof n||".sv"in n)return new Tb(n,Ui(e));if(n instanceof Array||!KKe){let t=fn.EMPTY_NODE;return ro(n,(r,i)=>{if((0,K.gR)(n,r)&&"."!==r.substring(0,1)){const s=Ui(i);(s.isLeafNode()||!s.isEmpty())&&(t=t.updateImmediateChild(r,s))}}),t.updatePriority(Ui(e))}{const t=[];let r=!1;if(ro(n,(o,a)=>{if("."!==o.substring(0,1)){const l=Ui(a);l.isEmpty()||(r=r||!l.getPriority().isEmpty(),t.push(new An(o,l)))}}),0===t.length)return fn.EMPTY_NODE;const s=_L(t,YKe,o=>o.name,z5);if(r){const o=_L(t,Zr.getCompare());return new fn(s,Ui(e),new Sh({".priority":o},{".priority":Zr}))}return new fn(s,Ui(e),Sh.Default)}}!function HKe(n){kfe=n}(Ui);class W5 extends pL{constructor(e){super(),this.indexPath_=e,(0,K.vA)(!Cn(e)&&".priority"!==Dn(e),"Can't create PathIndex with empty path or .priority key")}extractChild(e){return e.getChild(this.indexPath_)}isDefinedOn(e){return!e.getChild(this.indexPath_).isEmpty()}compare(e,t){const r=this.extractChild(e.node),i=this.extractChild(t.node),s=r.compareTo(i);return 0===s?F_(e.name,t.name):s}makePost(e,t){const r=Ui(e),i=fn.EMPTY_NODE.updateChild(this.indexPath_,r);return new An(t,i)}maxPost(){const e=fn.EMPTY_NODE.updateChild(this.indexPath_,bC);return new An(Ch,e)}toString(){return yC(this.indexPath_,0).join("/")}}const G5=new class QKe extends pL{compare(e,t){const r=e.node.compareTo(t.node);return 0===r?F_(e.name,t.name):r}isDefinedOn(e){return!0}indexedValueChanged(e,t){return!e.equals(t)}
1minPost(){return An.MIN}maxPost(){return An.MAX}makePost(e,t){const r=Ui(e);return new An(t,r)}toString(){return".value"}};function Rfe(n){return{type:"value",snapshotNode:n}}function Mb(n,e){return{type:"child_added",snapshotNode:e,childName:n}}function TC(n,e){return{type:"child_removed",snapshotNode:e,childName:n}}function EC(n,e,t){return{type:"child_changed",snapshotNode:e,childName:n,oldSnap:t}}class K5{constructor(e){this.index_=e}updateChild(e,t,r,i,s,o){(0,K.vA)(e.isIndexed(this.index_),"A node must be indexed if only a child is updated");const a=e.getImmediateChild(t);return a.getChild(i).equals(r.getChild(i))&&a.isEmpty()===r.isEmpty()||(null!=o&&(r.isEmpty()?e.hasChild(t)?o.trackChildChange(TC(t,a)):(0,K.vA)(e.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):a.isEmpty()?o.trackChildChange(Mb(t,r)):o.trackChildChange(EC(t,r,a))),e.isLeafNode()&&r.isEmpty())?e:e.updateImmediateChild(t,r).withIndex(this.index_)}updateFullNode(e,t,r){return null!=r&&(e.isLeafNode()||e.forEachChild(Zr,(i,s)=>{t.hasChild(i)||r.trackChildChange(TC(i,s))}),t.isLeafNode()||t.forEachChild(Zr,(i,s)=>{if(e.hasChild(i)){const o=e.getImmediateChild(i);o.equals(s)||r.trackChildChange(EC(i,s,o))}else r.trackChildChange(Mb(i,s))})),t.withIndex(this.index_)}updatePriority(e,t){return e.isEmpty()?fn.EMPTY_NODE:e.updatePriority(t)}filtersNodes(){return!1}getIndexedFilter(){return this}getIndex(){return this.index_}}class MC{constructor(e){this.indexedFilter_=new K5(e.getIndex()),this.index_=e.getIndex(),this.startPost_=MC.getStartPost_(e),this.endPost_=MC.getEndPost_(e),this.startIsInclusive_=!e.startAfterSet_,this.endIsInclusive_=!e.endBeforeSet_}getStartPost(){return this.startPost_}getEndPost(){return this.endPost_}matches(e){const t=this.startIsInclusive_?this.index_.compare(this.getStartPost(),e)<=0:this.index_.compare(this.getStartPost(),e)<0,r=this.endIsInclusive_?this.index_.compare(e,this.getEndPost())<=0:this.index_.compare(e,this.getEndPost())<0;return t&&r}updateChild(e,t,r,i,s,o){return this.matches(new An(t,r))||(r=fn.EMPTY_NODE),this.indexedFilter_.updateChild(e,t,r,i,s,o)}updateFullNode(e,t,r){t.isLeafNode()&&(t=fn.EMPTY_NODE);let i=t.withIndex(this.index_);i=i.updatePriority(fn.EMPTY_NODE);const s=this;return t.forEachChild(Zr,(o,a)=>{s.matches(new An(o,a))||(i=i.updateImmediateChild(o,fn.EMPTY_NODE))}),this.indexedFilter_.updateFullNode(e,i,r)}updatePriority(e,t){return e}filtersNodes(){return!0}getIndexedFilter(){return this.indexedFilter_}getIndex(){return this.index_}static getStartPost_(e){if(e.hasStart()){const t=e.getIndexStartName();return e.getIndex().makePost(e.getIndexStartValue(),t)}return e.getIndex().minPost()}static getEndPost_(e){if(e.hasEnd()){const t=e.getIndexEndName();return e.getIndex().makePost(e.getIndexEndValue(),t)}return e.getIndex().maxPost()}}class XKe{constructor(e){this.withinDirectionalStart=t=>this.reverse_?this.withinEndPost(t):this.withinStartPost(t),this.withinDirectionalEnd=t=>this.reverse_?this.withinStartPost(t):this.withinEndPost(t),this.withinStartPost=t=>{const r=this.index_.compare(this.rangedFilter_.getStartPost(),t);return this.startIsInclusive_?r<=0:r<0},this.withinEndPost=t=>{const r=this.index_.compare(t,this.rangedFilter_.getEndPost());return this.endIsInclusive_?r<=0:r<0},this.rangedFilter_=new MC(e),this.index_=e.getIndex(),this.limit_=e.getLimit(),this.reverse_=!e.isViewFromLeft(),this.startIsInclusive_=!e.startAfterSet_,this.endIsInclusive_=!e.endBeforeSet_}updateChild(e,t,r,i,s,o){return this.rangedFilter_.matches(new An(t,r))||(r=fn.EMPTY_NODE),e.getImmediateChild(t).equals(r)?e:e.numChildren()<this.limit_?this.rangedFilter_.getIndexedFilter().updateChild(e,t,r,i,s,o):this.fullLimitUpdateChild_(e,t,r,s,o)}updateFullNode(e,t,r){let i;if(t.isLeafNode()||t.isEmpty())i=fn.EMPTY_NODE.withIndex(this.index_);else if(2*this.limit_<t.numChildren()&&t.isIndexed(this.index_)){let s;i=fn.EMPTY_NODE.withIndex(this.index_),s=this.reverse_?t.getReverseIteratorFrom(this.rangedFilter_.getEndPost(),this.index_):t.getIteratorFrom(this.rangedFilter_.getStartPost(),this.index_);let o=0;for(;s.hasNext()&&o<this.limit_;){const a=s.getNext();if(this.withinDirectionalStart(a)){if(!this.withinDirectionalEnd(a))break;i=i.updateImmediateChild(a.name,a.node),o++}}}else{let s;i=t.withIndex(this.index_),i=i.updatePriority(fn.EMPTY_NODE),s=this.reverse_?i.getReverseIterator(this.index_):i.getIterator(this.index_);let o=0;for(;s.hasNext();){const a=s.getNext();o<this.limit_&&this.withinDirectionalStart(a)&&this.withinDirectionalEnd(a)?o++:i=i.updateImmediateChild(a.name,fn.EMPTY_NODE)}}return this.rangedFilter_.getIndexedFilter().updateFullNode(e,i,r)}updatePriority(e,t){return e}filtersNodes(){return!0}getIndexedFilter(){return this.rangedFilter_.getIndexedFilter()}getIndex(){return this.index_}
1fullLimitUpdateChild_(e,t,r,i,s){let o;if(this.reverse_){const d=this.index_.getCompare();o=(f,_)=>d(_,f)}else o=this.index_.getCompare();const a=e;(0,K.vA)(a.numChildren()===this.limit_,"");const l=new An(t,r),c=this.reverse_?a.getFirstChild(this.index_):a.getLastChild(this.index_),u=this.rangedFilter_.matches(l);if(a.hasChild(t)){const d=a.getImmediateChild(t);let f=i.getChildAfterChild(this.index_,c,this.reverse_);for(;null!=f&&(f.name===t||a.hasChild(f.name));)f=i.getChildAfterChild(this.index_,f,this.reverse_);const _=null==f?1:o(f,l);if(u&&!r.isEmpty()&&_>=0)return s?.trackChildChange(EC(t,r,d)),a.updateImmediateChild(t,r);{s?.trackChildChange(TC(t,d));const M=a.updateImmediateChild(t,fn.EMPTY_NODE);return null!=f&&this.rangedFilter_.matches(f)?(s?.trackChildChange(Mb(f.name,f.node)),M.updateImmediateChild(f.name,f.node)):M}}return r.isEmpty()?e:u&&o(c,l)>=0?(null!=s&&(s.trackChildChange(TC(c.name,c.node)),s.trackChildChange(Mb(t,r))),a.updateImmediateChild(t,r).updateImmediateChild(c.name,fn.EMPTY_NODE)):e}}class yL{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_=Zr}hasStart(){return this.startSet_}isViewFromLeft(){return""===this.viewFrom_?this.startSet_:"l"===this.viewFrom_}getIndexStartValue(){return(0,K.vA)(this.startSet_,"Only valid if start has been set"),this.indexStartValue_}getIndexStartName(){return(0,K.vA)(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:Op}hasEnd(){return this.endSet_}getIndexEndValue(){return(0,K.vA)(this.endSet_,"Only valid if end has been set"),this.indexEndValue_}getIndexEndName(){return(0,K.vA)(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:Ch}hasLimit(){return this.limitSet_}hasAnchoredLimit(){return this.limitSet_&&""!==this.viewFrom_}getLimit(){return(0,K.vA)(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_===Zr}copy(){const e=new yL;return e.limitSet_=this.limitSet_,e.limit_=this.limit_,e.startSet_=this.startSet_,e.startAfterSet_=this.startAfterSet_,e.indexStartValue_=this.indexStartValue_,e.startNameSet_=this.startNameSet_,e.indexStartName_=this.indexStartName_,e.endSet_=this.endSet_,e.endBeforeSet_=this.endBeforeSet_,e.indexEndValue_=this.indexEndValue_,e.endNameSet_=this.endNameSet_,e.indexEndName_=this.indexEndName_,e.index_=this.index_,e.viewFrom_=this.viewFrom_,e}}function Q5(n,e,t){const r=n.copy();return r.startSet_=!0,void 0===e&&(e=null),r.indexStartValue_=e,null!=t?(r.startNameSet_=!0,r.indexStartName_=t):(r.startNameSet_=!1,r.indexStartName_=""),r}function J5(n,e,t){const r=n.copy();return r.endSet_=!0,void 0===e&&(e=null),r.indexEndValue_=e,void 0!==t?(r.endNameSet_=!0,r.indexEndName_=t):(r.endNameSet_=!1,r.indexEndName_=""),r}function vL(n,e){const t=n.copy();return t.index_=e,t}function Lfe(n){const e={};if(n.isDefault())return e;let t;if(n.index_===Zr?t="$priority":n.index_===G5?t="$value":n.index_===dd?t="$key":((0,K.vA)(n.index_ instanceof W5,"Unrecognized index type!"),t=n.index_.toString()),e.orderBy=(0,K.As)(t),n.startSet_){const r=n.startAfterSet_?"startAfter":"startAt";e[r]=(0,K.As)(n.indexStartValue_),n.startNameSet_&&(e[r]+=","+(0,K.As)(n.indexStartName_))}if(n.endSet_){const r=n.endBeforeSet_?"endBefore":"endAt";e[r]=(0,K.As)(n.indexEndValue_),n.endNameSet_&&(e[r]+=","+(0,K.As)(n.indexEndName_))}return n.limitSet_&&(n.isViewFromLeft()?e.limitToFirst=n.limit_:e.limitToLast=n.limit_),e}function Ofe(n){const e={};if(n.startSet_&&(e.sp=n.indexStartValue_,n.startNameSet_&&(e.sn=n.indexStartName_),e.sin=!n.startAfterSet_),n.endSet_&&(e.ep=n.indexEndValue_,n.endNameSet_&&(e.en=n.indexEndName_),e.ein=!n.endBeforeSet_),n.limitSet_){e.l=n.limit_;let t=n.viewFrom_;""===t&&(t=n.isViewFromLeft()?"l":"r"),e.vf=t}return n.index_!==Zr&&(e.i=n.index_.toString()),e}
1class wL extends vfe{constructor(e,t,r,i){super(),this.repoInfo_=e,this.onDataUpdate_=t,this.authTokenProvider_=r,this.appCheckTokenProvider_=i,this.log_=pC("p:rest:"),this.listens_={}}reportStats(e){throw new Error("Method not implemented.")}static getListenId_(e,t){return void 0!==t?"tag$"+t:((0,K.vA)(e._queryParams.isDefault(),"should have a tag if it's not a default query."),e._path.toString())}listen(e,t,r,i){const s=e._path.toString();this.log_("Listen called for "+s+" "+e._queryIdentifier);const o=wL.getListenId_(e,r),a={};this.listens_[o]=a;const l=Lfe(e._queryParams);this.restRequest_(s+".json",l,(c,u)=>{let d=u;if(404===c&&(d=null,c=null),null===c&&this.onDataUpdate_(s,d,!1,r),(0,K.yw)(this.listens_,o)===a){let f;f=c?401===c?"permission_denied":"rest_error:"+c:"ok",i(f,null)}})}unlisten(e,t){const r=wL.getListenId_(e,t);delete this.listens_[r]}get(e){const t=Lfe(e._queryParams),r=e._path.toString(),i=new K.cY;return this.restRequest_(r+".json",t,(s,o)=>{let a=o;404===s&&(a=null,s=null),null===s?(this.onDataUpdate_(r,a,!1,null),i.resolve(a)):i.reject(new Error(a))}),i.promise}refreshAuthToken(e){}restRequest_(e,t={},r){return t.format="export",Promise.all([this.authTokenProvider_.getToken(!1),this.appCheckTokenProvider_.getToken(!1)]).then(([i,s])=>{i&&i.accessToken&&(t.auth=i.accessToken),s&&s.token&&(t.ac=s.token);const o=(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host+e+"?ns="+this.repoInfo_.namespace+(0,K.Am)(t);this.log_("Sending REST request for "+o);const a=new XMLHttpRequest;a.onreadystatechange=()=>{if(r&&4===a.readyState){this.log_("REST Response for "+o+" received. status:",a.status,"response:",a.responseText);let l=null;if(a.status>=200&&a.status<300){try{l=(0,K.$L)(a.responseText)}catch{Wo("Failed to parse JSON response for "+o+": "+a.responseText)}r(null,l)}else 401!==a.status&&404!==a.status&&Wo("Got unsuccessful REST response for "+o+" Status: "+a.status),r(a.status);r=null}},a.open("GET",o,!0),a.send()})}}class iQe{constructor(){this.rootNode_=fn.EMPTY_NODE}getNode(e){return this.rootNode_.getChild(e)}updateSnapshot(e,t){this.rootNode_=this.rootNode_.updateChild(e,t)}}function bL(){return{value:null,children:new Map}}function Ib(n,e,t){if(Cn(e))n.value=t,n.children.clear();else if(null!==n.value)n.value=n.value.updateChild(e,t);else{const r=Dn(e);n.children.has(r)||n.children.set(r,bL()),Ib(n.children.get(r),e=Yr(e),t)}}function X5(n,e){if(Cn(e))return n.value=null,n.children.clear(),!0;if(null!==n.value){if(n.value.isLeafNode())return!1;{const t=n.value;return n.value=null,t.forEachChild(Zr,(r,i)=>{Ib(n,new mr(r),i)}),X5(n,e)}}if(n.children.size>0){const t=Dn(e);return e=Yr(e),n.children.has(t)&&X5(n.children.get(t),e)&&n.children.delete(t),0===n.children.size}return!0}function Z5(n,e,t){null!==n.value?t(e,n.value):function sQe(n,e){n.children.forEach((t,r)=>{e(r,t)})}(n,(r,i)=>{Z5(i,new mr(e.toString()+"/"+r),t)})}class oQe{constructor(e){this.collection_=e,this.last_=null}get(){const e=this.collection_.get(),t=Object.assign({},e);return this.last_&&ro(this.last_,(r,i)=>{t[r]=t[r]-i}),this.last_=e,t}}class cQe{constructor(e,t){this.server_=t,this.statsToReport_={},this.statsListener_=new oQe(e);const r=1e4+2e4*Math.random();gC(this.reportStats_.bind(this),Math.floor(r))}reportStats_(){const e=this.statsListener_.get(),t={};let r=!1;ro(e,(i,s)=>{s>0&&(0,K.gR)(this.statsToReport_,i)&&(t[i]=s,r=!0)}),r&&this.server_.reportStats(t),gC(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))}}var hd=function(n){return n[n.OVERWRITE=0]="OVERWRITE",n[n.MERGE=1]="MERGE",n[n.ACK_USER_WRITE=2]="ACK_USER_WRITE",n[n.LISTEN_COMPLETE=3]="LISTEN_COMPLETE",n}(hd||{});function n6(n){return{fromUser:!1,fromServer:!0,queryId:n,tagged:!0}}class TL{constructor(e,t,r){this.path=e,this.affectedTree=t,this.revert=r,this.type=hd.ACK_USER_WRITE,this.source={fromUser:!0,fromServer:!1,queryId:null,tagged:!1}}operationForChild(e){if(Cn(this.path)){if(null!=this.affectedTree.value)return(0,K.vA)(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;{const t=this.affectedTree.subtree(new mr(e));return new TL(er(),t,this.revert)}}return(0,K.vA)(Dn(this.path)===e,"operationForChild called for unrelated child."),new TL(Yr(this.path),this.affectedTree,this.revert)}}class IC{constructor(e,t){this.source=e,this.path=t,this.type=hd.LISTEN_COMPLETE}operationForChild(e){return Cn(this.path)?new IC(this.source,er()):new IC(this.source,Yr(this.path))}}class j_{constructor(e,t,r){this.source=e,this.path=t,this.snap=r,this.type=hd.OVERWRITE}operationForChild(e){return Cn(this.path)?new j_(this.source,er(),this.snap.getImmediateChild(e)):new j_(this.source,Yr(this.path),this.snap)}}class Db{constructor(e,t,r){this.source=e,this.path=t,this.children=r,this.type=hd.MERGE}operationForChild(e){if(Cn(this.path)){const t=this.children.subtree(new mr(e));return t.isEmpty()?null:t.value?new j_(this.source,er(),t.value):new Db(this.source,er(),t)}return(0,K.vA)(Dn(this.path)===e,"Can't get a merge for a child not on the path of the operation"),new Db(this.source,Yr(this.path),this.children)}toString(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"}}class Vp{constructor(e,t,r){this.node_=e,this.fullyInitialized_=t,this.filtered_=r}isFullyInitialized(){return this.fullyInitialized_}isFiltered(){return this.filtered_}isCompleteForPath(e){if(Cn(e))return this.isFullyInitialized()&&!this.filtered_;const t=Dn(e);return this.isCompleteForChild(t)}isCompleteForChild(e){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(e)}getNode(){return this.node_}}class uQe{constructor(e){this.query_=e,this.index_=this.query_._queryParams.getIndex()}}function DC(n,e,t,r,i,s){const o=r.filter(a=>a.type===t);o.sort((a,l)=>function fQe(n,e,t){if(null==e.childName||null==t.childName)throw(0,K.Hk)("Should only compare child_ events.");const r=new An(e.childName,e.snapshotNode),i=new An(t.childName,t.snapshotNode);return n.index_.compare(r,i)}(n,a,l)),o.forEach(a=>{const l=function hQe(n,e,t){return"value"===e.type||"child_removed"===e.type||(e.prevName=t.getPredecessorChildName(e.childName,e.snapshotNode,n.index_)),e}(n,a,s);
1i.forEach(c=>{c.respondsTo(a.type)&&e.push(c.createEvent(l,n.query_))})})}function EL(n,e){return{eventCache:n,serverCache:e}}function CC(n,e,t,r){return EL(new Vp(e,t,r),n.serverCache)}function Ffe(n,e,t,r){return EL(n.eventCache,new Vp(e,t,r))}function ML(n){return n.eventCache.isFullyInitialized()?n.eventCache.getNode():null}function Y_(n){return n.serverCache.isFullyInitialized()?n.serverCache.getNode():null}let r6;class ei{constructor(e,t=(()=>(r6||(r6=new Ga(JGe)),r6))()){this.value=e,this.children=t}static fromObject(e){let t=new ei(null);return ro(e,(r,i)=>{t=t.set(new mr(r),i)}),t}isEmpty(){return null===this.value&&this.children.isEmpty()}findRootMostMatchingPathAndValue(e,t){if(null!=this.value&&t(this.value))return{path:er(),value:this.value};if(Cn(e))return null;{const r=Dn(e),i=this.children.get(r);if(null!==i){const s=i.findRootMostMatchingPathAndValue(Yr(e),t);return null!=s?{path:ki(new mr(r),s.path),value:s.value}:null}return null}}findRootMostValueAndPath(e){return this.findRootMostMatchingPathAndValue(e,()=>!0)}subtree(e){if(Cn(e))return this;{const t=Dn(e),r=this.children.get(t);return null!==r?r.subtree(Yr(e)):new ei(null)}}set(e,t){if(Cn(e))return new ei(t,this.children);{const r=Dn(e),s=(this.children.get(r)||new ei(null)).set(Yr(e),t),o=this.children.insert(r,s);return new ei(this.value,o)}}remove(e){if(Cn(e))return this.children.isEmpty()?new ei(null):new ei(null,this.children);{const t=Dn(e),r=this.children.get(t);if(r){const i=r.remove(Yr(e));let s;return s=i.isEmpty()?this.children.remove(t):this.children.insert(t,i),null===this.value&&s.isEmpty()?new ei(null):new ei(this.value,s)}return this}}get(e){if(Cn(e))return this.value;{const t=Dn(e),r=this.children.get(t);return r?r.get(Yr(e)):null}}setTree(e,t){if(Cn(e))return t;{const r=Dn(e),s=(this.children.get(r)||new ei(null)).setTree(Yr(e),t);let o;return o=s.isEmpty()?this.children.remove(r):this.children.insert(r,s),new ei(this.value,o)}}fold(e){return this.fold_(er(),e)}fold_(e,t){const r={};return this.children.inorderTraversal((i,s)=>{r[i]=s.fold_(ki(e,i),t)}),t(e,this.value,r)}findOnPath(e,t){return this.findOnPath_(e,er(),t)}findOnPath_(e,t,r){const i=!!this.value&&r(t,this.value);if(i)return i;if(Cn(e))return null;{const s=Dn(e),o=this.children.get(s);return o?o.findOnPath_(Yr(e),ki(t,s),r):null}}foreachOnPath(e,t){return this.foreachOnPath_(e,er(),t)}foreachOnPath_(e,t,r){if(Cn(e))return this;{this.value&&r(t,this.value);const i=Dn(e),s=this.children.get(i);return s?s.foreachOnPath_(Yr(e),ki(t,i),r):new ei(null)}}foreach(e){this.foreach_(er(),e)}foreach_(e,t){this.children.inorderTraversal((r,i)=>{i.foreach_(ki(e,r),t)}),this.value&&t(e,this.value)}foreachChild(e){this.children.inorderTraversal((t,r)=>{r.value&&e(t,r.value)})}}class Jc{constructor(e){this.writeTree_=e}static empty(){return new Jc(new ei(null))}}function SC(n,e,t){if(Cn(e))return new Jc(new ei(t));{const r=n.writeTree_.findRootMostValueAndPath(e);if(null!=r){const i=r.path;let s=r.value;const o=ga(i,e);return s=s.updateChild(o,t),new Jc(n.writeTree_.set(i,s))}{const i=new ei(t),s=n.writeTree_.setTree(e,i);return new Jc(s)}}}function i6(n,e,t){let r=n;return ro(t,(i,s)=>{r=SC(r,ki(e,i),s)}),r}function Vfe(n,e){if(Cn(e))return Jc.empty();{const t=n.writeTree_.setTree(e,new ei(null));return new Jc(t)}}function s6(n,e){return null!=B_(n,e)}function B_(n,e){const t=n.writeTree_.findRootMostValueAndPath(e);return null!=t?n.writeTree_.get(t.path).getChild(ga(t.path,e)):null}function Ufe(n){const e=[],t=n.writeTree_.value;return null!=t?t.isLeafNode()||t.forEachChild(Zr,(r,i)=>{e.push(new An(r,i))}):n.writeTree_.children.inorderTraversal((r,i)=>{null!=i.value&&e.push(new An(r,i.value))}),e}function Up(n,e){if(Cn(e))return n;{const t=B_(n,e);return new Jc(null!=t?new ei(t):n.writeTree_.subtree(e))}}function o6(n){return n.writeTree_.isEmpty()}function Cb(n,e){return jfe(er(),n.writeTree_,e)}function jfe(n,e,t){if(null!=e.value)return t.updateChild(n,e.value);{let r=null;return e.children.inorderTraversal((i,s)=>{".priority"===i?((0,K.vA)(null!==s.value,"Priority writes must always be leaf nodes"),r=s.value):t=jfe(ki(n,i),s,t)}),!t.getChild(n).isEmpty()&&null!==r&&(t=t.updateChild(ki(n,".priority"),r)),t}}function IL(n,e){return $fe(e,n)}function vQe(n,e){if(n.snap)return lc(n.path,e);for(const t in n.children)if(n.children.hasOwnProperty(t)&&lc(ki(n.path,t),e))return!0;return!1}function bQe(n){return n.visible}function Yfe(n,e,t){let r=Jc.empty();for(let i=0;i<n.length;++i){const s=n[i];if(e(s)){const o=s.path;let a;if(s.snap)lc(t,o)?(a=ga(t,o),r=SC(r,a,s.snap)):lc(o,t)&&(a=ga(o,t),r=SC(r,er(),s.snap.getChild(a)));else{if(!s.children)throw(0,K.Hk)("WriteRecord should have .snap or .children");if(lc(t,o))a=ga(t,o),r=i6(r,a,s.children);else if(lc(o,t))if(a=ga(o,t),Cn(a))r=i6(r,er(),s.children);else{const l=(0,K.yw)(s.children,Dn(a));if(l){const c=l.getChild(Yr(a));r=SC(r,er(),c)}}}}}return r}function Bfe(n,e,t,r,i){if(r||i){const s=Up(n.visibleWrites,e);return!i&&o6(s)?t:i||null!=t||s6(s,er())?Cb(Yfe(n.allWrites,function(c){return(c.visible||i)&&(!r||!~r.indexOf(c.writeId))&&(lc(c.path,e)||lc(e,c.path))},e),t||fn.EMPTY_NODE):null}{const s=B_(n.visibleWrites,e);if(null!=s)return s;{const o=Up(n.visibleWrites,e);
1return o6(o)?t:null!=t||s6(o,er())?Cb(o,t||fn.EMPTY_NODE):null}}}function DL(n,e,t,r){return Bfe(n.writeTree,n.treePath,e,t,r)}function a6(n,e){return function TQe(n,e,t){let r=fn.EMPTY_NODE;const i=B_(n.visibleWrites,e);if(i)return i.isLeafNode()||i.forEachChild(Zr,(s,o)=>{r=r.updateImmediateChild(s,o)}),r;if(t){const s=Up(n.visibleWrites,e);return t.forEachChild(Zr,(o,a)=>{const l=Cb(Up(s,new mr(o)),a);r=r.updateImmediateChild(o,l)}),Ufe(s).forEach(o=>{r=r.updateImmediateChild(o.name,o.node)}),r}return Ufe(Up(n.visibleWrites,e)).forEach(o=>{r=r.updateImmediateChild(o.name,o.node)}),r}(n.writeTree,n.treePath,e)}function Hfe(n,e,t,r){return function EQe(n,e,t,r,i){(0,K.vA)(r||i,"Either existingEventSnap or existingServerSnap must exist");const s=ki(e,t);if(s6(n.visibleWrites,s))return null;{const o=Up(n.visibleWrites,s);return o6(o)?i.getChild(t):Cb(o,i.getChild(t))}}(n.writeTree,n.treePath,e,t,r)}function CL(n,e){return function IQe(n,e){return B_(n.visibleWrites,e)}(n.writeTree,ki(n.treePath,e))}function l6(n,e,t){return function MQe(n,e,t,r){const i=ki(e,t),s=B_(n.visibleWrites,i);return null!=s?s:r.isCompleteForChild(t)?Cb(Up(n.visibleWrites,i),r.getNode().getImmediateChild(t)):null}(n.writeTree,n.treePath,e,t)}function zfe(n,e){return $fe(ki(n.treePath,e),n.writeTree)}function $fe(n,e){return{treePath:n,writeTree:e}}class AQe{constructor(){this.changeMap=new Map}trackChildChange(e){const t=e.type,r=e.childName;(0,K.vA)("child_added"===t||"child_changed"===t||"child_removed"===t,"Only child changes supported for tracking"),(0,K.vA)(".priority"!==r,"Only non-priority child changes can be tracked.");const i=this.changeMap.get(r);if(i){const s=i.type;if("child_added"===t&&"child_removed"===s)this.changeMap.set(r,EC(r,e.snapshotNode,i.snapshotNode));else if("child_removed"===t&&"child_added"===s)this.changeMap.delete(r);else if("child_removed"===t&&"child_changed"===s)this.changeMap.set(r,TC(r,i.oldSnap));else if("child_changed"===t&&"child_added"===s)this.changeMap.set(r,Mb(r,e.snapshotNode));else{if("child_changed"!==t||"child_changed"!==s)throw(0,K.Hk)("Illegal combination of changes: "+e+" occurred after "+i);this.changeMap.set(r,EC(r,e.snapshotNode,i.oldSnap))}}else this.changeMap.set(r,e)}getChanges(){return Array.from(this.changeMap.values())}}const qfe=new class xQe{getCompleteChild(e){return null}getChildAfterChild(e,t,r){return null}};class c6{constructor(e,t,r=null){this.writes_=e,this.viewCache_=t,this.optCompleteServerCache_=r}getCompleteChild(e){const t=this.viewCache_.eventCache;if(t.isCompleteForChild(e))return t.getNode().getImmediateChild(e);{const r=null!=this.optCompleteServerCache_?new Vp(this.optCompleteServerCache_,!0,!1):this.viewCache_.serverCache;return l6(this.writes_,e,r)}}getChildAfterChild(e,t,r){const i=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:Y_(this.viewCache_),s=function SQe(n,e,t,r,i,s){return function DQe(n,e,t,r,i,s,o){let a;const l=Up(n.visibleWrites,e),c=B_(l,er());if(null!=c)a=c;else{if(null==t)return[];a=Cb(l,t)}if(a=a.withIndex(o),a.isEmpty()||a.isLeafNode())return[];{const u=[],d=o.getCompare(),f=s?a.getReverseIteratorFrom(r,o):a.getIteratorFrom(r,o);let _=f.getNext();for(;_&&u.length<i;)0!==d(_,r)&&u.push(_),_=f.getNext();return u}}(n.writeTree,n.treePath,e,t,r,i,s)}(this.writes_,i,t,1,r,e);return 0===s.length?null:s[0]}}function Wfe(n,e,t,r,i,s){const o=e.eventCache;if(null!=CL(r,t))return e;{let a,l;if(Cn(t))if((0,K.vA)(e.serverCache.isFullyInitialized(),"If change path is empty, we must have complete server data"),e.serverCache.isFiltered()){const c=Y_(e),d=a6(r,c instanceof fn?c:fn.EMPTY_NODE);a=n.filter.updateFullNode(e.eventCache.getNode(),d,s)}else{const c=DL(r,Y_(e));a=n.filter.updateFullNode(e.eventCache.getNode(),c,s)}else{const c=Dn(t);if(".priority"===c){(0,K.vA)(1===Fp(t),"Can't have a priority with additional path components");const u=o.getNode();l=e.serverCache.getNode();const d=Hfe(r,t,u,l);a=null!=d?n.filter.updatePriority(u,d):o.getNode()}else{const u=Yr(t);let d;if(o.isCompleteForChild(c)){l=e.serverCache.getNode();const f=Hfe(r,t,o.getNode(),l);d=null!=f?o.getNode().getImmediateChild(c).updateChild(u,f):o.getNode().getImmediateChild(c)}else d=l6(r,c,e.serverCache);a=null!=d?n.filter.updateChild(o.getNode(),c,d,u,i,s):o.getNode()}}return CC(e,a,o.isFullyInitialized()||Cn(t),n.filter.filtersNodes())}}function SL(n,e,t,r,i,s,o,a){const l=e.serverCache;let c;const u=o?n.filter:n.filter.getIndexedFilter();if(Cn(t))c=u.updateFullNode(l.getNode(),r,null);else if(u.filtersNodes()&&!l.isFiltered()){const _=l.getNode().updateChild(t,r);c=u.updateFullNode(l.getNode(),_,null)}else{const _=Dn(t);if(!l.isCompleteForPath(t)&&Fp(t)>1)return e;const w=Yr(t),S=l.getNode().getImmediateChild(_).updateChild(w,r);c=".priority"===_?u.updatePriority(l.getNode(),S):u.updateChild(l.getNode(),_,S,w,qfe,null)}const d=Ffe(e,c,l.isFullyInitialized()||Cn(t),u.filtersNodes());return Wfe(n,d,t,i,new c6(i,d,s),a)}function u6(n,e,t,r,i,s,o){const a=e.eventCache;let l,c;const u=new c6(i,e,s);if(Cn(t))c=n.filter.updateFullNode(e.eventCache.getNode(),r,o),l=CC(e,c,!0,n.filter.filtersNodes());else{const d=Dn(t);if(".priority"===d)c=n.filter.updatePriority(e.eventCache.getNode(),r),l=CC(e,c,a.isFullyInitialized(),a.isFiltered());else{const f=Yr(t),_=a.getNode().getImmediateChild(d);let w;if(Cn(f))w=r;else{const M=u.getCompleteChild(d);w=null!=M?".priority"===Y5(f)&&M.getChild(Efe(f)).isEmpty()?M:M.updateChild(f,r):fn.EMPTY_NODE}l=_.equals(w)?e:CC(e,n.filter.updateChild(a.getNode(),d,w,f,u,o),a.isFullyInitialized(),n.filter.filtersNodes())}}return l}function Gfe(n,e){return n.eventCache.isCompleteForChild(e)}function Kfe(n,e,t){return t.foreach((r,i)=>{e=e.updateChild(r,i)}),e}function d6(n,e,t,r,i,s,o,a){if(e.serverCache.getNode().isEmpty()&&!e.serverCache.isFullyInitialized())return e;let c,l=e;c=Cn(t)?r:new ei(null).setTree(t,r);const u=e.serverCache.getNode();return c.children.inorderTraversal((d,f)=>{if(u.hasChild(d)){const w=Kfe(0,e.serverCache.getNode().getImmediateChild(d),f);l=SL(n,l,new mr(d),w,i,s,o,a)}}),c.children.inorderTraversal((d,f)=>{const _=!e.serverCache.isCompleteForChild(d)&&null===f.value;if(!u.hasChild(d)&&!_){const M=Kfe(0,e.serverCache.getNode().getImmediateChild(d),f);l=SL(n,l,new mr(d),M,i,s,o,a)}}),l}class UQe{constructor(e,t){this.query_=e,this.eventRegistrations_=[];const r=this.query_._queryParams,i=new K5(r.getIndex()),s=function ZKe(n){return n.loadsAllData()?new K5(n.getIndex()):n.hasLimit()?new XKe(n):new MC(n)}(r);this.processor_=function kQe(n){return{filter:n}}(s);const o=t.serverCache,a=t.eventCache,l=i.updateFullNode(fn.EMPTY_NODE,o.getNode(),null),c=s.updateFullNode(fn.EMPTY_NODE,a.getNode(),null),u=new Vp(l,o.isFullyInitialized(),i.filtersNodes()),d=new Vp(c,a.isFullyInitialized(),s.filtersNodes());this.viewCache_=EL(d,u),this.eventGenerator_=new uQe(this.query_)}get query(){return this.query_}}function BQe(n,e){const t=Y_(n.viewCache_);return t&&(n.query._queryParams.loadsAllData()||!Cn(e)&&!t.getImmediateChild(Dn(e)).isEmpty())?t.getChild(e):null}function Qfe(n){return 0===n.eventRegistrations_.length}function Jfe(n,e,t){const r=[];if(t){(0,K.vA)(null==e,"A cancel should cancel all event registrations.");const i=n.query._path;n.eventRegistrations_.forEach(s=>{const o=s.createCancelEvent(t,i);o&&r.push(o)})}if(e){let i=[];for(let s=0;s<n.eventRegistrations_.length;++s){const o=n.eventRegistrations_[s];if(o.matches(e)){if(e.hasAnyCallback()){i=i.concat(n.eventRegistrations_.slice(s+1));break}}else i.push(o)}n.eventRegistrations_=i}else n.eventRegistrations_=[];return r}function Xfe(n,e,t,r){e.type===hd.MERGE&&null!==e.source.queryId&&((0,K.vA)(Y_(n.viewCache_),"We should always have a full c
1ache before handling merges"),(0,K.vA)(ML(n.viewCache_),"Missing event cache, even though we have a server cache"));const i=n.viewCache_,s=function RQe(n,e,t,r,i){const s=new AQe;let o,a;if(t.type===hd.OVERWRITE){const c=t;c.source.fromUser?o=u6(n,e,c.path,c.snap,r,i,s):((0,K.vA)(c.source.fromServer,"Unknown source."),a=c.source.tagged||e.serverCache.isFiltered()&&!Cn(c.path),o=SL(n,e,c.path,c.snap,r,i,a,s))}else if(t.type===hd.MERGE){const c=t;c.source.fromUser?o=function OQe(n,e,t,r,i,s,o){let a=e;return r.foreach((l,c)=>{const u=ki(t,l);Gfe(e,Dn(u))&&(a=u6(n,a,u,c,i,s,o))}),r.foreach((l,c)=>{const u=ki(t,l);Gfe(e,Dn(u))||(a=u6(n,a,u,c,i,s,o))}),a}(n,e,c.path,c.children,r,i,s):((0,K.vA)(c.source.fromServer,"Unknown source."),a=c.source.tagged||e.serverCache.isFiltered(),o=d6(n,e,c.path,c.children,r,i,a,s))}else if(t.type===hd.ACK_USER_WRITE){const c=t;o=c.revert?function VQe(n,e,t,r,i,s){let o;if(null!=CL(r,t))return e;{const a=new c6(r,e,i),l=e.eventCache.getNode();let c;if(Cn(t)||".priority"===Dn(t)){let u;if(e.serverCache.isFullyInitialized())u=DL(r,Y_(e));else{const d=e.serverCache.getNode();(0,K.vA)(d instanceof fn,"serverChildren would be complete if leaf node"),u=a6(r,d)}c=n.filter.updateFullNode(l,u,s)}else{const u=Dn(t);let d=l6(r,u,e.serverCache);null==d&&e.serverCache.isCompleteForChild(u)&&(d=l.getImmediateChild(u)),c=null!=d?n.filter.updateChild(l,u,d,Yr(t),a,s):e.eventCache.getNode().hasChild(u)?n.filter.updateChild(l,u,fn.EMPTY_NODE,Yr(t),a,s):l,c.isEmpty()&&e.serverCache.isFullyInitialized()&&(o=DL(r,Y_(e)),o.isLeafNode()&&(c=n.filter.updateFullNode(c,o,s)))}return o=e.serverCache.isFullyInitialized()||null!=CL(r,er()),CC(e,c,o,n.filter.filtersNodes())}}(n,e,c.path,r,i,s):function NQe(n,e,t,r,i,s,o){if(null!=CL(i,t))return e;const a=e.serverCache.isFiltered(),l=e.serverCache;if(null!=r.value){if(Cn(t)&&l.isFullyInitialized()||l.isCompleteForPath(t))return SL(n,e,t,l.getNode().getChild(t),i,s,a,o);if(Cn(t)){let c=new ei(null);return l.getNode().forEachChild(dd,(u,d)=>{c=c.set(new mr(u),d)}),d6(n,e,t,c,i,s,a,o)}return e}{let c=new ei(null);return r.foreach((u,d)=>{const f=ki(t,u);l.isCompleteForPath(f)&&(c=c.set(u,l.getNode().getChild(f)))}),d6(n,e,t,c,i,s,a,o)}}(n,e,c.path,c.affectedTree,r,i,s)}else{if(t.type!==hd.LISTEN_COMPLETE)throw(0,K.Hk)("Unknown operation type: "+t.type);o=function FQe(n,e,t,r,i){const s=e.serverCache;return Wfe(n,Ffe(e,s.getNode(),s.isFullyInitialized()||Cn(t),s.isFiltered()),t,r,qfe,i)}(n,e,t.path,r,s)}const l=s.getChanges();return function LQe(n,e,t){const r=e.eventCache;if(r.isFullyInitialized()){const i=r.getNode().isLeafNode()||r.getNode().isEmpty(),s=ML(n);(t.length>0||!n.eventCache.isFullyInitialized()||i&&!r.getNode().equals(s)||!r.getNode().getPriority().equals(s.getPriority()))&&t.push(Rfe(ML(e)))}}(e,o,l),{viewCache:o,changes:l}}(n.processor_,i,e,t,r);return function PQe(n,e){(0,K.vA)(e.eventCache.getNode().isIndexed(n.filter.getIndex()),"Event snap not indexed"),(0,K.vA)(e.serverCache.getNode().isIndexed(n.filter.getIndex()),"Server snap not indexed")}(n.processor_,s.viewCache),(0,K.vA)(s.viewCache.serverCache.isFullyInitialized()||!i.serverCache.isFullyInitialized(),"Once a server snap is complete, it should never go back"),n.viewCache_=s.viewCache,Zfe(n,s.changes,s.viewCache.eventCache.getNode(),null)}function Zfe(n,e,t,r){return function dQe(n,e,t,r){const i=[],s=[];return e.forEach(o=>{"child_changed"===o.type&&n.index_.indexedValueChanged(o.oldSnap,o.snapshotNode)&&s.push(function JKe(n,e){return{type:"child_moved",snapshotNode:e,childName:n}}(o.childName,o.snapshotNode))}),DC(n,i,"child_removed",e,r,t),DC(n,i,"child_added",e,r,t),DC(n,i,"child_moved",s,r,t),DC(n,i,"child_changed",e,r,t),DC(n,i,"value",e,r,t),i}(n.eventGenerator_,e,t,r?[r]:n.eventRegistrations_)}let AL,kL;class epe{constructor(){this.views=new Map}}function h6(n,e,t,r){const i=e.source.queryId;if(null!==i){const s=n.views.get(i);return(0,K.vA)(null!=s,"SyncTree gave us an op for an invalid query."),Xfe(s,e,t,r)}{let s=[];for(const o of n.views.values())s=s.concat(Xfe(o,e,t,r));return s}}function tpe(n,e,t,r,i){const o=n.views.get(e._queryIdentifier);if(!o){let a=DL(t,i?r:null),l=!1;a?l=!0:r instanceof fn?(a=a6(t,r),l=!1):(a=fn.EMPTY_NODE,l=!1);const c=EL(new Vp(a,l,!1),new Vp(r,i,!1));return new UQe(e,c)}return o}function npe(n){const e=[];for(const t of n.views.values())t.query._queryParams.loadsAllData()||e.push(t);return e}function jp(n,e){let t=null;for(const r of n.views.values())t=t||BQe(r,e);return t}function rpe(n,e){return e._queryParams.loadsAllData()?xL(n):n.views.get(e._queryIdentifier)}function ipe(n,e){return null!=rpe(n,e)}function Yp(n){return null!=xL(n)}function xL(n){for(const e of n.views.values())if(e.query._queryParams.loadsAllData())return e;return null}let XQe=1;
1class spe{constructor(e){this.listenProvider_=e,this.syncPointTree_=new ei(null),this.pendingWriteTree_=function CQe(){return{visibleWrites:Jc.empty(),allWrites:[],lastWriteId:-1}}(),this.tagToQueryMap=new Map,this.queryToTagMap=new Map}}function f6(n,e,t,r,i){return function mQe(n,e,t,r,i){(0,K.vA)(r>n.lastWriteId,"Stacking an older write on top of newer ones"),void 0===i&&(i=!0),n.allWrites.push({path:e,snap:t,writeId:r,visible:i}),i&&(n.visibleWrites=SC(n.visibleWrites,e,t)),n.lastWriteId=r}(n.pendingWriteTree_,e,t,r,i),i?Sb(n,new j_({fromUser:!0,fromServer:!1,queryId:null,tagged:!1},e,t)):[]}function Bp(n,e,t=!1){const r=function _Qe(n,e){for(let t=0;t<n.allWrites.length;t++){const r=n.allWrites[t];if(r.writeId===e)return r}return null}(n.pendingWriteTree_,e);if(function yQe(n,e){const t=n.allWrites.findIndex(a=>a.writeId===e);(0,K.vA)(t>=0,"removeWrite called with nonexistent writeId.");const r=n.allWrites[t];n.allWrites.splice(t,1);let i=r.visible,s=!1,o=n.allWrites.length-1;for(;i&&o>=0;){const a=n.allWrites[o];a.visible&&(o>=t&&vQe(a,r.path)?i=!1:lc(r.path,a.path)&&(s=!0)),o--}return!!i&&(s?(function wQe(n){n.visibleWrites=Yfe(n.allWrites,bQe,er()),n.lastWriteId=n.allWrites.length>0?n.allWrites[n.allWrites.length-1].writeId:-1}(n),!0):(r.snap?n.visibleWrites=Vfe(n.visibleWrites,r.path):ro(r.children,l=>{n.visibleWrites=Vfe(n.visibleWrites,ki(r.path,l))}),!0))}(n.pendingWriteTree_,e)){let s=new ei(null);return null!=r.snap?s=s.set(er(),!0):ro(r.children,o=>{s=s.set(new mr(o),!0)}),Sb(n,new TL(r.path,s,t))}return[]}function AC(n,e,t){return Sb(n,new j_({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},e,t))}function PL(n,e,t,r,i=!1){const s=e._path,o=n.syncPointTree_.get(s);let a=[];if(o&&("default"===e._queryIdentifier||ipe(o,e))){const l=function KQe(n,e,t,r){const i=e._queryIdentifier,s=[];let o=[];const a=Yp(n);if("default"===i)for(const[l,c]of n.views.entries())o=o.concat(Jfe(c,t,r)),Qfe(c)&&(n.views.delete(l),c.query._queryParams.loadsAllData()||s.push(c.query));else{const l=n.views.get(i);l&&(o=o.concat(Jfe(l,t,r)),Qfe(l)&&(n.views.delete(i),l.query._queryParams.loadsAllData()||s.push(l.query)))}return a&&!Yp(n)&&s.push(new(function qQe(){return(0,K.vA)(AL,"Reference.ts has not been loaded"),AL}())(e._repo,e._path)),{removed:s,events:o}}(o,e,t,r);(function WQe(n){return 0===n.views.size})(o)&&(n.syncPointTree_=n.syncPointTree_.remove(s));const c=l.removed;if(a=l.events,!i){const u=-1!==c.findIndex(f=>f._queryParams.loadsAllData()),d=n.syncPointTree_.findOnPath(s,(f,_)=>Yp(_));if(u&&!d){const f=n.syncPointTree_.subtree(s);if(!f.isEmpty()){const _=function sJe(n){return n.fold((e,t,r)=>{if(t&&Yp(t))return[xL(t)];{let i=[];return t&&(i=npe(t)),ro(r,(s,o)=>{i=i.concat(o)}),i}})}(f);for(let w=0;w<_.length;++w){const M=_[w],S=M.query,O=cpe(n,M);n.listenProvider_.startListening(kC(S),xC(n,S),O.hashFn,O.onComplete)}}}!d&&c.length>0&&!r&&(u?n.listenProvider_.stopListening(kC(e),null):c.forEach(f=>{const _=n.queryToTagMap.get(LL(f));n.listenProvider_.stopListening(kC(f),_)}))}!function oJe(n,e){for(let t=0;t<e.length;++t){const r=e[t];if(!r._queryParams.loadsAllData()){const i=LL(r),s=n.queryToTagMap.get(i);n.queryToTagMap.delete(i),n.tagToQueryMap.delete(s)}}}(n,c)}return a}function ope(n,e,t,r){const i=m6(n,r);if(null!=i){const s=g6(i),o=s.path,a=s.queryId,l=ga(o,e);return _6(n,o,new j_(n6(a),l,t))}return[]}function p6(n,e,t,r=!1){const i=e._path;let s=null,o=!1;n.syncPointTree_.foreachOnPath(i,(f,_)=>{const w=ga(f,i);s=s||jp(_,w),o=o||Yp(_)});let l,a=n.syncPointTree_.get(i);a?(o=o||Yp(a),s=s||jp(a,er())):(a=new epe,n.syncPointTree_=n.syncPointTree_.set(i,a)),null!=s?l=!0:(l=!1,s=fn.EMPTY_NODE,n.syncPointTree_.subtree(i).foreachChild((_,w)=>{const M=jp(w,er());M&&(s=s.updateImmediateChild(_,M))}));const c=ipe(a,e);
1if(!c&&!e._queryParams.loadsAllData()){const f=LL(e);(0,K.vA)(!n.queryToTagMap.has(f),"View does not exist, but we have a tag");const _=function aJe(){return XQe++}();n.queryToTagMap.set(f,_),n.tagToQueryMap.set(_,f)}let d=function GQe(n,e,t,r,i,s){const o=tpe(n,e,r,i,s);return n.views.has(e._queryIdentifier)||n.views.set(e._queryIdentifier,o),function HQe(n,e){n.eventRegistrations_.push(e)}(o,t),function zQe(n,e){const t=n.viewCache_.eventCache,r=[];return t.getNode().isLeafNode()||t.getNode().forEachChild(Zr,(s,o)=>{r.push(Mb(s,o))}),t.isFullyInitialized()&&r.push(Rfe(t.getNode())),Zfe(n,r,t.getNode(),e)}(o,t)}(a,e,t,IL(n.pendingWriteTree_,i),s,l);if(!c&&!o&&!r){const f=rpe(a,e);d=d.concat(function lJe(n,e,t){const r=e._path,i=xC(n,e),s=cpe(n,t),o=n.listenProvider_.startListening(kC(e),i,s.hashFn,s.onComplete),a=n.syncPointTree_.subtree(r);if(i)(0,K.vA)(!Yp(a.value),"If we're adding a query, it shouldn't be shadowed");else{const l=a.fold((c,u,d)=>{if(!Cn(c)&&u&&Yp(u))return[xL(u).query];{let f=[];return u&&(f=f.concat(npe(u).map(_=>_.query))),ro(d,(_,w)=>{f=f.concat(w)}),f}});for(let c=0;c<l.length;++c){const u=l[c];n.listenProvider_.stopListening(kC(u),xC(n,u))}}return o}(n,e,f))}return d}function RL(n,e,t){const i=n.pendingWriteTree_,s=n.syncPointTree_.findOnPath(e,(o,a)=>{const c=jp(a,ga(o,e));if(c)return c});return Bfe(i,e,s,t,!0)}function Sb(n,e){return ape(e,n.syncPointTree_,null,IL(n.pendingWriteTree_,er()))}function ape(n,e,t,r){if(Cn(n.path))return lpe(n,e,t,r);{const i=e.get(er());null==t&&null!=i&&(t=jp(i,er()));let s=[];const o=Dn(n.path),a=n.operationForChild(o),l=e.children.get(o);if(l&&a){const c=t?t.getImmediateChild(o):null,u=zfe(r,o);s=s.concat(ape(a,l,c,u))}return i&&(s=s.concat(h6(i,n,r,t))),s}}function lpe(n,e,t,r){const i=e.get(er());null==t&&null!=i&&(t=jp(i,er()));let s=[];return e.children.inorderTraversal((o,a)=>{const l=t?t.getImmediateChild(o):null,c=zfe(r,o),u=n.operationForChild(o);u&&(s=s.concat(lpe(u,a,l,c)))}),i&&(s=s.concat(h6(i,n,r,t))),s}function cpe(n,e){const t=e.query,r=xC(n,t);return{hashFn:()=>(function jQe(n){return n.viewCache_.serverCache.getNode()}(e)||fn.EMPTY_NODE).hash(),onComplete:i=>{if("ok"===i)return r?function nJe(n,e,t){const r=m6(n,t);if(r){const i=g6(r),s=i.path,o=i.queryId,a=ga(s,e);return _6(n,s,new IC(n6(o),a))}return[]}(n,t._path,r):function tJe(n,e){return Sb(n,new IC({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},e))}(n,t._path);{const s=function eKe(n,e){let t="Unknown Error";"too_big"===n?t="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"===n?t="Client doesn't have permission to access the desired data.":"unavailable"===n&&(t="The service is unavailable");const r=new Error(n+" at "+e._path.toString()+": "+t);return r.code=n.toUpperCase(),r}(i,t);return PL(n,t,null,s)}}}}function xC(n,e){const t=LL(e);return n.queryToTagMap.get(t)}function LL(n){return n._path.toString()+"$"+n._queryIdentifier}function m6(n,e){return n.tagToQueryMap.get(e)}function g6(n){const e=n.indexOf("$");return(0,K.vA)(-1!==e&&e<n.length-1,"Bad queryKey."),{queryId:n.substr(e+1),path:new mr(n.substr(0,e))}}function _6(n,e,t){const r=n.syncPointTree_.get(e);return(0,K.vA)(r,"Missing sync point for query tag that we're tracking"),h6(r,t,IL(n.pendingWriteTree_,e),null)}
1function kC(n){return n._queryParams.loadsAllData()&&!n._queryParams.isDefault()?new(function JQe(){return(0,K.vA)(kL,"Reference.ts has not been loaded"),kL}())(n._repo,n._path):n}class y6{constructor(e){this.node_=e}getImmediateChild(e){const t=this.node_.getImmediateChild(e);return new y6(t)}node(){return this.node_}}class v6{constructor(e,t){this.syncTree_=e,this.path_=t}getImmediateChild(e){const t=ki(this.path_,e);return new v6(this.syncTree_,t)}node(){return RL(this.syncTree_,this.path_)}}const cJe=function(n){return(n=n||{}).timestamp=n.timestamp||(new Date).getTime(),n},upe=function(n,e,t){return n&&"object"==typeof n?((0,K.vA)(".sv"in n,"Unexpected leaf node or priority contents"),"string"==typeof n[".sv"]?uJe(n[".sv"],e,t):"object"==typeof n[".sv"]?dJe(n[".sv"],e):void(0,K.vA)(!1,"Unexpected server value: "+JSON.stringify(n,null,2))):n},uJe=function(n,e,t){if("timestamp"===n)return t.timestamp;(0,K.vA)(!1,"Unexpected server value: "+n)},dJe=function(n,e,t){n.hasOwnProperty("increment")||(0,K.vA)(!1,"Unexpected server value: "+JSON.stringify(n,null,2));const r=n.increment;"number"!=typeof r&&(0,K.vA)(!1,"Unexpected increment value: "+r);const i=e.node();if((0,K.vA)(null!==i&&typeof i<"u","Expected ChildrenNode.EMPTY_NODE for nulls"),!i.isLeafNode())return r;const o=i.getValue();return"number"!=typeof o?r:o+r},dpe=function(n,e,t,r){return b6(e,new v6(t,n),r)},w6=function(n,e,t){return b6(n,new y6(e),t)};function b6(n,e,t){const r=n.getPriority().val(),i=upe(r,e.getImmediateChild(".priority"),t);let s;if(n.isLeafNode()){const o=n,a=upe(o.getValue(),e,t);return a!==o.getValue()||i!==o.getPriority().val()?new Tb(a,Ui(i)):n}{const o=n;return s=o,i!==o.getPriority().val()&&(s=s.updatePriority(new Tb(i))),o.forEachChild(Zr,(a,l)=>{const c=b6(l,e.getImmediateChild(a),t);c!==l&&(s=s.updateImmediateChild(a,c))}),s}}class T6{constructor(e="",t=null,r={children:{},childCount:0}){this.name=e,this.parent=t,this.node=r}}function OL(n,e){let t=e instanceof mr?e:new mr(e),r=n,i=Dn(t);for(;null!==i;){const s=(0,K.yw)(r.node.children,i)||{children:{},childCount:0};r=new T6(i,r,s),t=Yr(t),i=Dn(t)}return r}function H_(n){return n.node.value}function E6(n,e){n.node.value=e,M6(n)}function hpe(n){return n.node.childCount>0}function NL(n,e){ro(n.node.children,(t,r)=>{e(new T6(t,n,r))})}function fpe(n,e,t,r){t&&!r&&e(n),NL(n,i=>{fpe(i,e,!0,r)}),t&&r&&e(n)}function PC(n){return new mr(null===n.parent?n.name:PC(n.parent)+"/"+n.name)}function M6(n){null!==n.parent&&function pJe(n,e,t){const r=function hJe(n){return void 0===H_(n)&&!hpe(n)}(t),i=(0,K.gR)(n.node.children,e);r&&i?(delete n.node.children[e],n.node.childCount--,M6(n)):!r&&!i&&(n.node.children[e]=t.node,n.node.childCount++,M6(n))}(n.parent,n.name,n)}const mJe=/[\[\].#$\/\u0000-\u001F\u007F]/,gJe=/[\[\].#$\u0000-\u001F\u007F]/,I6=10485760,FL=function(n){return"string"==typeof n&&0!==n.length&&!mJe.test(n)},ppe=function(n){return"string"==typeof n&&0!==n.length&&!gJe.test(n)},RC=function(n){return null===n||"string"==typeof n||"number"==typeof n&&!uL(n)||n&&"object"==typeof n&&(0,K.gR)(n,".sv")},fd=function(n,e,t,r){r&&void 0===e||LC((0,K.dI)(n,"value"),e,t)},LC=function(n,e,t){const r=t instanceof mr?new RKe(t,n):t;if(void 0===e)throw new Error(n+"contains undefined "+V_(r));if("function"==typeof e)throw new Error(n+"contains a function "+V_(r)+" with contents = "+e.toString());if(uL(e))throw new Error(n+"contains "+e.toString()+" "+V_(r));if("string"==typeof e&&e.length>I6/3&&(0,K.OE)(e)>I6)throw new Error(n+"contains a string greater than "+I6+" utf8 bytes "+V_(r)+" ('"+e.substring(0,50)+"...')");if(e&&"object"==typeof e){let i=!1,s=!1;if(ro(e,(o,a)=>{if(".value"===o)i=!0;else if(".priority"!==o&&".sv"!==o&&(s=!0,!FL(o)))throw new Error(n+" contains an invalid key ("+o+") "+V_(r)+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');(function LKe(n,e){n.parts_.length>0&&(n.byteLength_+=1),n.parts_.push(e),n.byteLength_+=(0,K.OE)(e),Mfe(n)})(r,o),LC(n,a,r),function OKe(n){const e=n.parts_.pop();n.byteLength_-=(0,K.OE)(e),n.parts_.length>0&&(n.byteLength_-=1)}(r)}),i&&s)throw new Error(n+' contains ".value" child '+V_(r)+" in addition to actual children.")}},mpe=function(n,e,t,r){if(r&&void 0===e)return;const i=(0,K.dI)(n,"values");if(!e||"object"!=typeof e||Array.isArray(e))throw new Error(i+" must be an object c
1ontaining the children to replace.");const s=[];ro(e,(o,a)=>{const l=new mr(o);if(LC(i,a,ki(t,l)),".priority"===Y5(l)&&!RC(a))throw new Error(i+"contains an invalid value for '"+l.toString()+"', which must be a valid Firebase priority (a string, finite number, server value, or null).");s.push(l)}),function(n,e){let t,r;for(t=0;t<e.length;t++){r=e[t];const s=yC(r);for(let o=0;o<s.length;o++)if((".priority"!==s[o]||o!==s.length-1)&&!FL(s[o]))throw new Error(n+"contains an invalid key ("+s[o]+") in path "+r.toString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"')}e.sort(PKe);let i=null;for(t=0;t<e.length;t++){if(r=e[t],null!==i&&lc(i,r))throw new Error(n+"contains a path "+i.toString()+" that is ancestor of another path "+r.toString());i=r}}(i,s)},D6=function(n,e,t){if(!t||void 0!==e){if(uL(e))throw new Error((0,K.dI)(n,"priority")+"is "+e.toString()+", but must be a valid Firebase priority (a string, finite number, server value, or null).");if(!RC(e))throw new Error((0,K.dI)(n,"priority")+"must be a valid Firebase priority (a string, finite number, server value, or null).")}},OC=function(n,e,t,r){if(!(r&&void 0===t||FL(t)))throw new Error((0,K.dI)(n,e)+'was an invalid key = "'+t+'". Firebase keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]").')},NC=function(n,e,t,r){if(!(r&&void 0===t||ppe(t)))throw new Error((0,K.dI)(n,e)+'was an invalid path = "'+t+'". Paths must be non-empty strings and can\'t contain ".", "#", "$", "[", or "]"')},vJe=function(n,e,t,r){t&&(t=t.replace(/^\/*\.info(\/|$)/,"/")),NC(n,e,t,r)},cc=function(n,e){if(".info"===Dn(e))throw new Error(n+" failed = Can't modify data under /.info/")},gpe=function(n,e){const t=e.path.toString();if("string"!=typeof e.repoInfo.host||0===e.repoInfo.host.length||!FL(e.repoInfo.namespace)&&"localhost"!==e.repoInfo.host.split(":")[0]||0!==t.length&&!function(n){return n&&(n=n.replace(/^\/*\.info(\/|$)/,"/")),ppe(n)}(t))throw new Error((0,K.dI)(n,"url")+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".')};class wJe{constructor(){this.eventLists_=[],this.recursionDepth_=0}}function VL(n,e){let t=null;for(let r=0;r<e.length;r++){const i=e[r],s=i.getPath();null!==t&&!B5(s,t.path)&&(n.eventLists_.push(t),t=null),null===t&&(t={events:[],path:s}),t.events.push(i)}t&&n.eventLists_.push(t)}function _pe(n,e,t){VL(n,t),ype(n,r=>B5(r,e))}function kl(n,e,t){VL(n,t),ype(n,r=>lc(r,e)||lc(e,r))}function ype(n,e){n.recursionDepth_++;let t=!0;for(let r=0;r<n.eventLists_.length;r++){const i=n.eventLists_[r];i&&(e(i.path)?(bJe(n.eventLists_[r]),n.eventLists_[r]=null):t=!1)}t&&(n.eventLists_=[]),n.recursionDepth_--}function bJe(n){for(let e=0;e<n.events.length;e++){const t=n.events[e];if(null!==t){n.events[e]=null;const r=t.getEventRunner();N_&&no("event: "+t.toString()),wb(r)}}}const vpe="repo_interrupt",TJe=25;
1class EJe{constructor(e,t,r,i){this.repoInfo_=e,this.forceRestClient_=t,this.authTokenProvider_=r,this.appCheckProvider_=i,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new wJe,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=bL(),this.transactionQueueTree_=new T6,this.persistentConnection_=null,this.key=this.repoInfo_.toURLString()}toString(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host}}function wpe(n){const t=n.infoData_.getNode(new mr(".info/serverTimeOffset")).val()||0;return(new Date).getTime()+t}function FC(n){return cJe({timestamp:wpe(n)})}function bpe(n,e,t,r,i){n.dataUpdateCount++;const s=new mr(e);t=n.interceptServerDataCallback_?n.interceptServerDataCallback_(e,t):t;let o=[];if(i)if(r){const l=(0,K.kH)(t,c=>Ui(c));o=function rJe(n,e,t,r){const i=m6(n,r);if(i){const s=g6(i),o=s.path,a=s.queryId,l=ga(o,e),c=ei.fromObject(t);return _6(n,o,new Db(n6(a),l,c))}return[]}(n.serverSyncTree_,s,l,i)}else{const l=Ui(t);o=ope(n.serverSyncTree_,s,l,i)}else if(r){const l=(0,K.kH)(t,c=>Ui(c));o=function eJe(n,e,t){const r=ei.fromObject(t);return Sb(n,new Db({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},e,r))}(n.serverSyncTree_,s,l)}else{const l=Ui(t);o=AC(n.serverSyncTree_,s,l)}let a=s;o.length>0&&(a=xb(n,s)),kl(n.eventQueue_,a,o)}function Tpe(n,e){C6(n,"connected",e),!1===e&&function SJe(n){Ab(n,"onDisconnectEvents");const e=FC(n),t=bL();Z5(n.onDisconnect_,er(),(i,s)=>{const o=dpe(i,s,n.serverSyncTree_,e);Ib(t,i,o)});let r=[];Z5(t,er(),(i,s)=>{r=r.concat(AC(n.serverSyncTree_,i,s));const o=k6(n,i);xb(n,o)}),n.onDisconnect_=bL(),kl(n.eventQueue_,er(),r)}(n)}function C6(n,e,t){const r=new mr("/.info/"+e),i=Ui(t);n.infoData_.updateSnapshot(r,i);const s=AC(n.infoSyncTree_,r,i);kl(n.eventQueue_,r,s)}function UL(n){return n.nextWriteId_++}function S6(n,e,t,r,i){Ab(n,"set",{path:e.toString(),value:t,priority:r});const s=FC(n),o=Ui(t,r),a=RL(n.serverSyncTree_,e),l=w6(o,a,s),c=UL(n),u=f6(n.serverSyncTree_,e,l,c,!0);VL(n.eventQueue_,u),n.server_.put(e.toString(),o.val(!0),(f,_)=>{const w="ok"===f;w||Wo("set at "+e+" failed: "+f);const M=Bp(n.serverSyncTree_,c,!w);kl(n.eventQueue_,e,M),Hp(0,i,f,_)});const d=k6(n,e);xb(n,d),kl(n.eventQueue_,d,[])}function AJe(n,e,t){n.server_.onDisconnectCancel(e.toString(),(r,i)=>{"ok"===r&&X5(n.onDisconnect_,e),Hp(0,t,r,i)})}function Epe(n,e,t,r){const i=Ui(t);n.server_.onDisconnectPut(e.toString(),i.val(!0),(s,o)=>{"ok"===s&&Ib(n.onDisconnect_,e,i),Hp(0,r,s,o)})}function A6(n,e,t){let r;r=".info"===Dn(e._path)?PL(n.infoSyncTree_,e,t):PL(n.serverSyncTree_,e,t),_pe(n.eventQueue_,e._path,r)}function Mpe(n){n.persistentConnection_&&n.persistentConnection_.interrupt(vpe)}function Ab(n,...e){let t="";n.persistentConnection_&&(t=n.persistentConnection_.id+":"),no(t,...e)}function Hp(n,e,t,r){e&&wb(()=>{if("ok"===t)e(null);else{const i=(t||"error").toUpperCase();let s=i;r&&(s+=": "+r);const o=new Error(s);o.code=i,e(o)}})}function x6(n,e,t){return RL(n.serverSyncTree_,e,t)||fn.EMPTY_NODE}function jL(n,e=n.transactionQueueTree_){if(e||YL(n,e),H_(e)){const t=Dpe(n,e);(0,K.vA)(t.length>0,"Sending zero length transaction queue"),t.every(i=>0===i.status)&&function OJe(n,e,t){const r=t.map(c=>c.currentWriteId),i=x6(n,e,r);let s=i;const o=i.hash();for(let c=0;c<t.length;c++){const u=t[c];(0,K.vA)(0===u.status,"tryToSendTransactionQueue_: items in queue should all be run."),u.status=1,u.retryCount++;const d=ga(e,u.path);s=s.updateChild(d,u.currentOutputSnapshotRaw)}const a=s.val(!0),l=e;n.server_.put(l.toString(),a,c=>{Ab(n,"transaction put response",{path:l.toString(),status:c});let u=[];if("ok"===c){const d=[];for(let f=0;f<t.length;f++)t[f].status=2,u=u.concat(Bp(n.serverSyncTree_,t[f].currentWriteId)),t[f].onComplete&&d.push(()=>t[f].onComplete(null,!0,t[f].currentOutputSnapshotResolved)),t[f].unwatcher();YL(n,OL(n.transactionQueueTree_,e)),jL(n,n.transactionQueueTree_),kl(n.eventQueue_,e,u);for(let f=0;f<d.length;f++)wb(d[f])}else{if("datastale"===c)for(let d=0;d<t.length;d++)t[d].status=3===t[d].status?4:0;else{Wo("transaction at "+l.toString()+" failed: "+c);for(let d=0;d<t.length;d++)t[d].status=4,t[d].abortReason=c}xb(n,e)}},o)}(n,PC(e),t)}else hpe(e)&&NL(e,t=>{jL(n,t)})}function xb(n,e){const t=Ipe(n,e),r=PC(t);return function NJe(n,e,t){if(0===e.length)return;const r=[];let i=[];const o=e.filter(a=>0===a.status).map(a=>a.currentWriteId);for(let a=0;a<e.length;a++){const l=e[a],c=ga(t,l.path);let d,u=!1;if((0,K.vA)(null!==c,"rerunTransactionsUnderNode_: relativePath should not be null."),4===l.status)u=!0,d=l.abortReason,i=i.concat(Bp(n.serverSyncTree_,l.currentWriteId,!0));else if(0===l.status)if(l.retryCount>=TJe)u=!0,d="maxretry",i=i.concat(Bp(n.serverSyncTree_,l.currentWriteId,!0));else{const f=x6(n,l.path,o);l.currentInputSnapshot=f;const _=e[a].update(f.val());if(void 0!==_){LC("transaction failed: Data returned ",_,l.path);let w=Ui(_);"object"==typeof _&&null!=_&&(0,K.gR)(_,".priority")||(w=w.updatePriority(f.getPriority()));const S=l.currentWriteId,O=FC(n),N=w6(w,f,O);l.currentOutputSnapshotRaw=w,l.currentOutputSnapshotResolved=N,l.currentWriteId=UL(n),o.splice(o.indexOf(S),1),i=i.concat(f6(n.serverSyncTree_,l.path,N,l.currentWriteId,l.applyLocally)),i=i.concat(Bp(n.serverSyncTree_,S,!0))}else u=!0,d="nodata",i=i.concat(Bp(n.serverSyncTree_,l.currentWriteId,!0))}kl(n.eventQueue_,t,i),i=[],u&&(e[a].status=2,setTimeout(e[a].unwatcher,Math.floor(0)),e[a].onComplete&&r.push("nodata"===d?()=>e[a].onComplete(null,!1,e[a].currentInputSnapshot):()=>e[a].onComplete(new Error(d),!1,null)))}YL(n,n.transactionQueueTree_);for(let a=0;a<r.length;a++)wb(r[a]);jL(n,n.transactionQueueTree_)}(n,Dpe(n,t),r),r}function Ipe(n,e){let t,r=n.transactionQueueTree_;
1for(t=Dn(e);null!==t&&void 0===H_(r);)r=OL(r,t),t=Dn(e=Yr(e));return r}function Dpe(n,e){const t=[];return Cpe(n,e,t),t.sort((r,i)=>r.order-i.order),t}function Cpe(n,e,t){const r=H_(e);if(r)for(let i=0;i<r.length;i++)t.push(r[i]);NL(e,i=>{Cpe(n,i,t)})}function YL(n,e){const t=H_(e);if(t){let r=0;for(let i=0;i<t.length;i++)2!==t[i].status&&(t[r]=t[i],r++);t.length=r,E6(e,t.length>0?t:void 0)}NL(e,r=>{YL(n,r)})}function k6(n,e){const t=PC(Ipe(n,e)),r=OL(n.transactionQueueTree_,e);return function fJe(n,e,t){let r=t?n:n.parent;for(;null!==r;){if(e(r))return!0;r=r.parent}}(r,i=>{P6(n,i)}),P6(n,r),fpe(r,i=>{P6(n,i)}),t}function P6(n,e){const t=H_(e);if(t){const r=[];let i=[],s=-1;for(let o=0;o<t.length;o++)3===t[o].status||(1===t[o].status?((0,K.vA)(s===o-1,"All SENT items should be at beginning of queue."),s=o,t[o].status=3,t[o].abortReason="set"):((0,K.vA)(0===t[o].status,"Unexpected transaction status in abort"),t[o].unwatcher(),i=i.concat(Bp(n.serverSyncTree_,t[o].currentWriteId,!0)),t[o].onComplete&&r.push(t[o].onComplete.bind(null,new Error("set"),!1,null))));-1===s?E6(e,void 0):t.length=s+1,kl(n.eventQueue_,PC(e),i);for(let o=0;o<r.length;o++)wb(r[o])}}const R6=function(n,e){const t=UJe(n),r=t.namespace;return"firebase.com"===t.domain&&ud(t.host+" is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead"),(!r||"undefined"===r)&&"localhost"!==t.domain&&ud("Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com"),t.secure||typeof window<"u"&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&Wo("Insecure Firebase access from a secure page. Please use https in calls to new Firebase()."),{repoInfo:new O5(t.host,t.secure,r,"ws"===t.scheme||"wss"===t.scheme,e,"",r!==t.subdomain),path:new mr(t.pathString)}},UJe=function(n){let e="",t="",r="",i="",s="",o=!0,a="https",l=443;if("string"==typeof n){let c=n.indexOf("//");c>=0&&(a=n.substring(0,c-1),n=n.substring(c+2));let u=n.indexOf("/");-1===u&&(u=n.length);let d=n.indexOf("?");-1===d&&(d=n.length),e=n.substring(0,Math.min(u,d)),u<d&&(i=function FJe(n){let e="";const t=n.split("/");for(let r=0;r<t.length;r++)if(t[r].length>0){let i=t[r];try{i=decodeURIComponent(i.replace(/\+/g," "))}catch{}e+="/"+i}return e}(n.substring(u,d)));const f=function VJe(n){const e={};"?"===n.charAt(0)&&(n=n.substring(1));for(const t of n.split("&")){if(0===t.length)continue;const r=t.split("=");2===r.length?e[decodeURIComponent(r[0])]=decodeURIComponent(r[1]):Wo(`Invalid query segment '${t}' in query '${n}'`)}return e}(n.substring(Math.min(n.length,d)));c=e.indexOf(":"),c>=0?(o="https"===a||"wss"===a,l=parseInt(e.substring(c+1),10)):c=e.length;const _=e.slice(0,c);if("localhost"===_.toLowerCase())t="localhost";else if(_.split(".").length<=2)t=_;else{const w=e.indexOf(".");r=e.substring(0,w).toLowerCase(),t=e.substring(w+1),s=r}"ns"in f&&(s=f.ns)}return{host:e,port:l,domain:t,subdomain:r,secure:o,scheme:a,pathString:i,namespace:s}},Spe="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",jJe=function(){let n=0;const e=[];return function(t){const r=t===n;let i;n=t;const s=new Array(8);for(i=7;i>=0;i--)s[i]=Spe.charAt(t%64),t=Math.floor(t/64);(0,K.vA)(0===t,"Cannot push at time == 0");let o=s.join("");if(r){for(i=11;i>=0&&63===e[i];i--)e[i]=0;e[i]++}else for(i=0;i<12;i++)e[i]=Math.floor(64*Math.random());for(i=0;i<12;i++)o+=Spe.charAt(e[i]);return(0,K.vA)(20===o.length,"nextPushId: Length should be 20."),o}}();
1class Ape{constructor(e,t,r,i){this.eventType=e,this.eventRegistration=t,this.snapshot=r,this.prevName=i}getPath(){const e=this.snapshot.ref;return"value"===this.eventType?e._path:e.parent._path}getEventType(){return this.eventType}getEventRunner(){return this.eventRegistration.getEventRunner(this)}toString(){return this.getPath().toString()+":"+this.eventType+":"+(0,K.As)(this.snapshot.exportVal())}}class xpe{constructor(e,t,r){this.eventRegistration=e,this.error=t,this.path=r}getPath(){return this.path}getEventType(){return"cancel"}getEventRunner(){return this.eventRegistration.getEventRunner(this)}toString(){return this.path.toString()+":cancel"}}class L6{constructor(e,t){this.snapshotCallback=e,this.cancelCallback=t}onValue(e,t){this.snapshotCallback.call(null,e,t)}onCancel(e){return(0,K.vA)(this.hasCancelCallback,"Raising a cancel event on a listener with no cancel callback"),this.cancelCallback.call(null,e)}get hasCancelCallback(){return!!this.cancelCallback}matches(e){return this.snapshotCallback===e.snapshotCallback||void 0!==this.snapshotCallback.userCallback&&this.snapshotCallback.userCallback===e.snapshotCallback.userCallback&&this.snapshotCallback.context===e.snapshotCallback.context}}class kpe{constructor(e,t){this._repo=e,this._path=t}cancel(){const e=new K.cY;return AJe(this._repo,this._path,e.wrapCallback(()=>{})),e.promise}remove(){cc("OnDisconnect.remove",this._path);const e=new K.cY;return Epe(this._repo,this._path,null,e.wrapCallback(()=>{})),e.promise}set(e){cc("OnDisconnect.set",this._path),fd("OnDisconnect.set",e,this._path,!1);const t=new K.cY;return Epe(this._repo,this._path,e,t.wrapCallback(()=>{})),t.promise}setWithPriority(e,t){cc("OnDisconnect.setWithPriority",this._path),fd("OnDisconnect.setWithPriority",e,this._path,!1),D6("OnDisconnect.setWithPriority",t,!1);const r=new K.cY;return function xJe(n,e,t,r,i){const s=Ui(t,r);n.server_.onDisconnectPut(e.toString(),s.val(!0),(o,a)=>{"ok"===o&&Ib(n.onDisconnect_,e,s),Hp(0,i,o,a)})}(this._repo,this._path,e,t,r.wrapCallback(()=>{})),r.promise}update(e){cc("OnDisconnect.update",this._path),mpe("OnDisconnect.update",e,this._path,!1);const t=new K.cY;return function kJe(n,e,t,r){if((0,K.Im)(t))return no("onDisconnect().update() called with empty data. Don't do anything."),void Hp(0,r,"ok",void 0);n.server_.onDisconnectMerge(e.toString(),t,(i,s)=>{"ok"===i&&ro(t,(o,a)=>{const l=Ui(a);Ib(n.onDisconnect_,ki(e,o),l)}),Hp(0,r,i,s)})}(this._repo,this._path,e,t.wrapCallback(()=>{})),t.promise}}
1class Ka{constructor(e,t,r,i){this._repo=e,this._path=t,this._queryParams=r,this._orderByCalled=i}get key(){return Cn(this._path)?null:Y5(this._path)}get ref(){return new uc(this._repo,this._path)}get _queryIdentifier(){const e=Ofe(this._queryParams),t=R5(e);return"{}"===t?"default":t}get _queryObject(){return Ofe(this._queryParams)}isEqual(e){if(!((e=(0,K.Ku)(e))instanceof Ka))return!1;const t=this._repo===e._repo,r=B5(this._path,e._path);return t&&r&&this._queryIdentifier===e._queryIdentifier}toJSON(){return this.toString()}toString(){return this._repo.toString()+function kKe(n){let e="";for(let t=n.pieceNum_;t<n.pieces_.length;t++)""!==n.pieces_[t]&&(e+="/"+encodeURIComponent(String(n.pieces_[t])));return e||"/"}(this._path)}}function BL(n,e){if(!0===n._orderByCalled)throw new Error(e+": You can't combine multiple orderBy calls.")}function zp(n){let e=null,t=null;if(n.hasStart()&&(e=n.getIndexStartValue()),n.hasEnd()&&(t=n.getIndexEndValue()),n.getIndex()===dd){const r="Query: When ordering by key, you may only pass one argument to startAt(), endAt(), or equalTo().",i="Query: When ordering by key, the argument passed to startAt(), startAfter(), endAt(), endBefore(), or equalTo() must be a string.";if(n.hasStart()){if(n.getIndexStartName()!==Op)throw new Error(r);if("string"!=typeof e)throw new Error(i)}if(n.hasEnd()){if(n.getIndexEndName()!==Ch)throw new Error(r);if("string"!=typeof t)throw new Error(i)}}else if(n.getIndex()===Zr){if(null!=e&&!RC(e)||null!=t&&!RC(t))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,K.vA)(n.getIndex()instanceof W5||n.getIndex()===G5,"unknown index type."),null!=e&&"object"==typeof e||null!=t&&"object"==typeof t)throw new Error("Query: First argument passed to startAt(), startAfter(), endAt(), endBefore(), or equalTo() cannot be an object.")}function HL(n){if(n.hasStart()&&n.hasEnd()&&n.hasLimit()&&!n.hasAnchoredLimit())throw new Error("Query: Can't combine startAt(), startAfter(), endAt(), endBefore(), and limit(). Use limitToFirst() or limitToLast() instead.")}class uc extends Ka{constructor(e,t){super(e,t,new yL,!1)}get parent(){const e=Efe(this._path);return null===e?null:new uc(this._repo,e)}get root(){let e=this;for(;null!==e.parent;)e=e.parent;return e}}class z_{constructor(e,t,r){this._node=e,this.ref=t,this._index=r}get priority(){return this._node.getPriority().val()}get key(){return this.ref.key}get size(){return this._node.numChildren()}child(e){const t=new mr(e),r=$_(this.ref,e);return new z_(this._node.getChild(t),r,Zr)}exists(){return!this._node.isEmpty()}exportVal(){return this._node.val(!0)}forEach(e){return!this._node.isLeafNode()&&!!this._node.forEachChild(this._index,(r,i)=>e(new z_(i,$_(this.ref,r),Zr)))}hasChild(e){const t=new mr(e);return!this._node.getChild(t).isEmpty()}hasChildren(){return!this._node.isLeafNode()&&!this._node.isEmpty()}toJSON(){return this.exportVal()}val(){return this._node.val()}}function Ppe(n,e){return(n=(0,K.Ku)(n))._checkNotDeleted("ref"),void 0!==e?$_(n._root,e):n._root}function Rpe(n,e){(n=(0,K.Ku)(n))._checkNotDeleted("refFromURL");const t=R6(e,n._repo.repoInfo_.nodeAdmin);gpe("refFromURL",t);const r=t.repoInfo;return!n._repo.repoInfo_.isCustomHost()&&r.host!==n._repo.repoInfo_.host&&ud("refFromURL: Host name does not match the current database: (found "+r.host+" but expected "+n._repo.repoInfo_.host+")"),Ppe(n,t.path.toString())}function $_(n,e){return null===Dn((n=(0,K.Ku)(n))._path)?vJe("child","path",e,!1):NC("child","path",e,!1),new uc(n._repo,ki(n._path,e))}function O6(n,e){n=(0,K.Ku)(n),cc("set",n._path),fd("set",e,n._path,!1);const t=new K.cY;return S6(n._repo,n._path,e,null,t.wrapCallback(()=>{})),t.promise}function $Je(n,e){mpe("update",e,n._path,!1);const t=new K.cY;return function CJe(n,e,t,r){Ab(n,"update",{path:e.toString(),value:t});let i=!0;const s=FC(n),o={};if(ro(t,(a,l)=>{i=!1,o[a]=dpe(ki(e,a),Ui(l),n.serverSyncTree_,s)}),i)no("update() called with empty data. Don't do anything."),Hp(0,r,"ok",void 0);else{const a=UL(n),l=function ZQe(n,e,t,r){!function gQe(n,e,t,r){(0,K.vA)(r>n.lastWriteId,"Stacking an older merge on top of newer ones"),n.allWrites.push({path:e,children:t,writeId:r,visible:!0}),n.visibleWrites=i6(n.visibleWrites,e,t),n.lastWriteId=r}(n.pendingWriteTree_,e,t,r);const i=ei.fromObject(t);return Sb(n,new Db({fromUser:!0,fromServer:!1,queryId:null,tagged:!1},e,i))}(n.serverSyncTree_,e,o,a);VL(n.eventQueue_,l),n.server_.merge(e.toString(),t,(c,u)=>{const d="ok"===c;d||Wo("update at "+e+" failed: "+c);const f=Bp(n.serverSyncTree_,a,!d),_=f.length>0?xb(n,e):e;kl(n.eventQueue_,_,f),Hp(0,r,c,u)}),ro(t,c=>{const u=k6(n,ki(e,c));xb(n,u)}),kl(n.eventQueue_,e,[])}}(n._repo,n._path,e,t.wrapCallback(()=>{})),t.promise}function qJe(n){n=(0,K.Ku)(n);const e=new L6(()=>{}),t=new VC(e);return function DJe(n,e,t){const r=function iJe(n,e){const t=e._path;let r=null;n.syncPointTree_.foreachOnPath(t,(c,u)=>{const d=ga(c,t);r=r||jp(u,d)});let i=n.syncPointTree_.get(t);i?r=r||jp(i,er()):(i=new epe,n.syncPointTree_=n.syncPointTree_.set(t,i));const s=null!=r,o=s?new Vp(r,!0,!1):null;return function YQe(n){return ML(n.viewCache_)}(tpe(i,e,IL(n.pendingWriteTree_,e._path),s?o.getNode():fn.EMPTY_NODE,s))}(n.serverSyncTree_,e);return null!=r?Promise.resolve(r):n.server_.get(e).then(i=>{const s=Ui(i).withIndex(e._queryParams.getIndex());let o;if(p6(n.serverSyncTree_,e,t,!0),e._queryParams.loadsAllData())o=AC(n.serverSyncTree_,e._path,s);else{const a=xC(n.serverSyncTree_,e);o=ope(n.serverSyncTree_,e._path,s,a)}return kl(n.eventQueue_,e._path,o),PL(n.serverSyncTree_,e,t,null,!0),s},i=>(Ab(n,"get for query "+(0,K.As)(e)+" failed: "+i),Promise.reject(new Error(i))))}(n._repo,n,t).then(r=>new z_(r,new uc(n._repo,n._path),n._queryParams.getIndex()))}class VC{constructor(e){this.callbackContext=e}respondsTo(e){return"value"===e}createEvent(e,t){const r=t._queryParams.getIndex();return new Ape("value",this,new z_(e.snapshotNode,new uc(t._repo,t._path),r))}getEventRunner(e){return"cancel"===e.getEventType()?()=>this.callbackContext.onCancel(e.error):()=>this.callbackContext.onValue(e.snapshot,null)}createCancelEvent(e,t){return this.callbackContext.hasCancelCallback?new xpe(this,e,t):null}matches(e){return e instanceof VC&&(!e.callbackContext||!this.callbackContext||e.callbackContext.matches(this.callbackContext))}hasAnyCallback(){return null!==this.callbackContext}}class zL{constructor(e,t){this.eventType=e,this.callbackContext=t}respondsTo(e){let t="children_added"===e?"child_added":e;return t="children_removed"===t?"child_removed":t,this.eventType===t}createCancelEvent(e,t){return this.callbackContext.hasCancelCallback?new xpe(this,e,t):null}createEvent(e,t){(0,K.vA)(null!=e.childName,"Child events should have a childName.");const r=$_(new uc(t._repo,t._path),e.childName),i=t._queryParams.getIndex();return new Ape(e.type,this,new z_(e.snapshotNode,r,i),e.prevName)}getEventRunner(e){return"cancel"===e.getEventType()?()=>this.callbackContext.onCancel(e.error):()=>this.callbackContext.onValue(e.snapshot,e.prevName)}matches(e){return e instanceof zL&&this.eventType===e.eventType&&(!this.callbackContext||!e.callbackContext||this.callbackContext.matches(e.callbackContext))}hasAnyCallback(){return!!this.callbackContext}}function UC(n,e,t,r,i){let s;if("object"==typeof r&&(s=void 0,i=r),"function"==typeof r&&(s=r),i&&i.onlyOnce){const l=t,c=(u,d)=>{A6(n._repo,n,a),l(u,d)};c.userCallback=t.userCallback,c.context=t.context,t=c}const o=new L6(t,s||void 0),a="value"===e?new VC(o):new zL(e,o);return function PJe(n,e,t){let r;r=".info"===Dn(e._path)?p6(n.infoSyncTree_,e,t):p6(n.serverSyncTree_,e,t),_pe(n.eventQueue_,e._path,r)}(n._repo,n,a),()=>A6(n._repo,n,a)}function N6(n,e,t,r){return UC(n,"value",e,t,r)}function Lpe(n,e,t,r){return UC(n,"child_added",e,t,r)}function Ope(n,e,t,r){return UC(n,"child_changed",e,t,r)}function Npe(n,e,t,r){return UC(n,"child_moved",e,t,r)}function Fpe(n,e,t,r){return UC(n,"child_removed",e,t,r)}function Vpe(n,e,t){let r=null;const i=t?new L6(t):null;"value"===e?r=new VC(i):e&&(r=new zL(e,i)),A6(n._repo,n,r)}class Xc{}class Upe extends Xc{constructor(e,t){super(),this._value=e,this._key=t,this.type="endAt"}_apply(e){fd("endAt",this._value,e._path,!0);const t=J5(e._queryParams,this._value,this._key);if(HL(t),zp(t),e._queryParams.hasEnd())throw new Error("endAt: Starting point was already set
1(by another call to endAt, endBefore or equalTo).");return new Ka(e._repo,e._path,t,e._orderByCalled)}}class GJe extends Xc{constructor(e,t){super(),this._value=e,this._key=t,this.type="endBefore"}_apply(e){fd("endBefore",this._value,e._path,!1);const t=function rQe(n,e,t){let r;return r=J5(n,e,n.index_===dd||t?t:Op),r.endBeforeSet_=!0,r}(e._queryParams,this._value,this._key);if(HL(t),zp(t),e._queryParams.hasEnd())throw new Error("endBefore: Starting point was already set (by another call to endAt, endBefore or equalTo).");return new Ka(e._repo,e._path,t,e._orderByCalled)}}class jpe extends Xc{constructor(e,t){super(),this._value=e,this._key=t,this.type="startAt"}_apply(e){fd("startAt",this._value,e._path,!0);const t=Q5(e._queryParams,this._value,this._key);if(HL(t),zp(t),e._queryParams.hasStart())throw new Error("startAt: Starting point was already set (by another call to startAt, startBefore or equalTo).");return new Ka(e._repo,e._path,t,e._orderByCalled)}}class JJe extends Xc{constructor(e,t){super(),this._value=e,this._key=t,this.type="startAfter"}_apply(e){fd("startAfter",this._value,e._path,!1);const t=function nQe(n,e,t){let r;return r=Q5(n,e,n.index_===dd||t?t:Ch),r.startAfterSet_=!0,r}(e._queryParams,this._value,this._key);if(HL(t),zp(t),e._queryParams.hasStart())throw new Error("startAfter: Starting point was already set (by another call to startAt, startAfter, or equalTo).");return new Ka(e._repo,e._path,t,e._orderByCalled)}}class ZJe extends Xc{constructor(e){super(),this._limit=e,this.type="limitToFirst"}_apply(e){if(e._queryParams.hasLimit())throw new Error("limitToFirst: Limit was already set (by another call to limitToFirst or limitToLast).");return new Ka(e._repo,e._path,function eQe(n,e){const t=n.copy();return t.limitSet_=!0,t.limit_=e,t.viewFrom_="l",t}(e._queryParams,this._limit),e._orderByCalled)}}class tXe extends Xc{constructor(e){super(),this._limit=e,this.type="limitToLast"}_apply(e){if(e._queryParams.hasLimit())throw new Error("limitToLast: Limit was already set (by another call to limitToFirst or limitToLast).");return new Ka(e._repo,e._path,function tQe(n,e){const t=n.copy();return t.limitSet_=!0,t.limit_=e,t.viewFrom_="r",t}(e._queryParams,this._limit),e._orderByCalled)}}class rXe extends Xc{constructor(e){super(),this._path=e,this.type="orderByChild"}_apply(e){BL(e,"orderByChild");const t=new mr(this._path);if(Cn(t))throw new Error("orderByChild: cannot pass in empty path. Use orderByValue() instead.");const r=new W5(t),i=vL(e._queryParams,r);return zp(i),new Ka(e._repo,e._path,i,!0)}}class sXe extends Xc{constructor(){super(...arguments),this.type="orderByKey"}_apply(e){BL(e,"orderByKey");const t=vL(e._queryParams,dd);return zp(t),new Ka(e._repo,e._path,t,!0)}}class aXe extends Xc{constructor(){super(...arguments),this.type="orderByPriority"}_apply(e){BL(e,"orderByPriority");const t=vL(e._queryParams,Zr);return zp(t),new Ka(e._repo,e._path,t,!0)}}class cXe extends Xc{constructor(){super(...arguments),this.type="orderByValue"}_apply(e){BL(e,"orderByValue");const t=vL(e._queryParams,G5);return zp(t),new Ka(e._repo,e._path,t,!0)}}class dXe extends Xc{constructor(e,t){super(),this._value=e,this._key=t,this.type="equalTo"}_apply(e){if(fd("equalTo",this._value,e._path,!1),e._queryParams.hasStart())throw new Error("equalTo: Starting point was already set (by another call to startAt/startAfter or equalTo).");if(e._queryParams.hasEnd())throw new Error("equalTo: Ending point was already set (by another call to endAt/endBefore or equalTo).");return new Upe(this._value,this._key)._apply(new jpe(this._value,this._key)._apply(e))}}function Zc(n,...e){let t=(0,K.Ku)(n);for(const r of e)t=r._apply(t);return t}(function $Qe(n){(0,K.vA)(!AL,"__referenceConstructor has already been defined"),AL=n})(uc),function QQe(n){(0,K.vA)(!kL,"__referenceConstructor has already been defined"),kL=n}(uc);const F6={};function V6(n,e,t,r,i){let s=r||n.options.databaseURL;void 0===s&&(n.options.projectId||ud("Can't determine Firebase Database URL. Be sure to include a Project ID when calling firebase.initializeApp()."),no("Using default host for project ",n.options.projectId),s=`${n.options.projectId}-default-rtdb.firebaseio.com`);let l,c,o=R6(s,i),a=o.repoInfo;
1typeof process<"u"&&process.env&&(c=process.env.FIREBASE_DATABASE_EMULATOR_HOST),c?(l=!0,s=`http://${c}?ns=${a.namespace}`,o=R6(s,i),a=o.repoInfo):l=!o.repoInfo.secure;const u=i&&l?new _C(_C.OWNER):new oKe(n.name,n.options,e);gpe("Invalid Firebase Database URL",o),Cn(o.path)||ud("Database URL must point to the root of a Firebase Database (not including a child path).");const d=function gXe(n,e,t,r){let i=F6[e.name];i||(i={},F6[e.name]=i);let s=i[n.toURLString()];return s&&ud("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call."),s=new EJe(n,false,t,r),i[n.toURLString()]=s,s}(a,n,u,new sKe(n.name,t));return new yXe(d,n)}class yXe{constructor(e,t){this._repoInternal=e,this.app=t,this.type="database",this._instanceStarted=!1}get _repo(){return this._instanceStarted||(function MJe(n,e,t){if(n.stats_=V5(n.repoInfo_),n.forceRestClient_||("object"==typeof window&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0)n.server_=new wL(n.repoInfo_,(r,i,s,o)=>{bpe(n,r,i,s,o)},n.authTokenProvider_,n.appCheckProvider_),setTimeout(()=>Tpe(n,!0),0);else{if(typeof t<"u"&&null!==t){if("object"!=typeof t)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{(0,K.As)(t)}catch(r){throw new Error("Invalid authOverride provided: "+r)}}n.persistentConnection_=new U_(n.repoInfo_,e,(r,i,s,o)=>{bpe(n,r,i,s,o)},r=>{Tpe(n,r)},r=>{!function IJe(n,e){ro(e,(t,r)=>{C6(n,t,r)})}(n,r)},n.authTokenProvider_,n.appCheckProvider_,t),n.server_=n.persistentConnection_}n.authTokenProvider_.addTokenChangeListener(r=>{n.server_.refreshAuthToken(r)}),n.appCheckProvider_.addTokenChangeListener(r=>{n.server_.refreshAppCheckToken(r.token)}),n.statsReporter_=function cKe(n,e){const t=n.toString();
1return F5[t]||(F5[t]=e()),F5[t]}(n.repoInfo_,()=>new cQe(n.stats_,n.server_)),n.infoData_=new iQe,n.infoSyncTree_=new spe({startListening:(r,i,s,o)=>{let a=[];const l=n.infoData_.getNode(r._path);return l.isEmpty()||(a=AC(n.infoSyncTree_,r._path,l),setTimeout(()=>{o("ok")},0)),a},stopListening:()=>{}}),C6(n,"connected",!1),n.serverSyncTree_=new spe({startListening:(r,i,s,o)=>(n.server_.listen(r,s,i,(a,l)=>{const c=o(a,l);kl(n.eventQueue_,r._path,c)}),[]),stopListening:(r,i)=>{n.server_.unlisten(r,i)}})}(this._repoInternal,this.app.options.appId,this.app.options.databaseAuthVariableOverride),this._instanceStarted=!0),this._repoInternal}get _root(){return this._rootInternal||(this._rootInternal=new uc(this._repo,er())),this._rootInternal}_delete(){return null!==this._rootInternal&&(function mXe(n,e){const t=F6[e];(!t||t[n.key]!==n)&&ud(`Database ${e}(${n.repoInfo_}) has already been deleted.`),Mpe(n),delete t[n.key]}(this._repo,this.app.name),this._repoInternal=null,this._rootInternal=null),Promise.resolve()}_checkNotDeleted(e){null===this._rootInternal&&ud("Cannot call "+e+" on a deleted database.")}}function Bpe(){dfe.IS_TRANSPORT_INITIALIZED&&Wo("Transport has already been initialized. Please call this function before calling ref or setting up a listener")}function vXe(){Bpe(),Np.forceDisallow()}function wXe(){Bpe(),bb.forceDisallow(),Np.forceAllow()}function EXe(n,e){$he(n,e)}const IXe={".sv":"timestamp"};class SXe{constructor(e,t){this.committed=e,this.snapshot=t}toJSON(){return{committed:this.committed,snapshot:this.snapshot.toJSON()}}}U_.prototype.simpleListen=function(n,e){this.sendRequest("q",{p:n},e)},U_.prototype.echo=function(n,e){this.sendRequest("echo",{d:n},e)},function MXe(n){x5(ja.SDK_VERSION),(0,ja._registerComponent)(new Hc.uA("database",(e,{instanceIdentifier:t})=>V6(e.getProvider("app").getImmediate(),e.getProvider("auth-internal"),e.getProvider("app-check-internal"),t),"PUBLIC").setMultipleInstances(!0)),(0,ja.registerVersion)(Uhe,"1.0.5",n),(0,ja.registerVersion)(Uhe,"1.0.5","esm2017")}();const PXe=new Tl.Vy("@firebase/database-compat"),zpe=function(n){PXe.warn("FIREBASE WARNING: "+n)};class OXe{constructor(e){this._delegate=e}cancel(e){(0,K.od)("OnDisconnect.cancel",0,1,arguments.length),(0,K.oD)("OnDisconnect.cancel","onComplete",e,!0);const t=this._delegate.cancel();return e&&t.then(()=>e(null),r=>e(r)),t}remove(e){(0,K.od)("OnDisconnect.remove",0,1,arguments.length),(0,K.oD)("OnDisconnect.remove","onComplete",e,!0);const t=this._delegate.remove();return e&&t.then(()=>e(null),r=>e(r)),t}set(e,t){(0,K.od)("OnDisconnect.set",1,2,arguments.length),(0,K.oD)("OnDisconnect.set","onComplete",t,!0);const r=this._delegate.set(e);return t&&r.then(()=>t(null),i=>t(i)),r}setWithPriority(e,t,r){(0,K.od)("OnDisconnect.setWithPriority",2,3,arguments.length),(0,K.oD)("OnDisconnect.setWithPriority","onComplete",r,!0);const i=this._delegate.setWithPriority(e,t);return r&&i.then(()=>r(null),s=>r(s)),i}update(e,t){if((0,K.od)("OnDisconnect.update",1,2,arguments.length),Array.isArray(e)){const i={};for(let s=0;s<e.length;++s)i[""+s]=e[s];e=i,zpe("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,K.oD)("OnDisconnect.update","onComplete",t,!0);const r=this._delegate.update(e);return t&&r.then(()=>t(null),i=>t(i)),r}}class NXe{constructor(e,t){this.committed=e,this.snapshot=t}toJSON(){return(0,K.od)("TransactionResult.toJSON",0,1,arguments.length),{committed:this.committed,snapshot:this.snapshot.toJSON()}}}class $p{constructor(e,t){this._database=e,this._delegate=t}val(){return(0,K.od)("DataSnapshot.val",0,0,arguments.length),this._delegate.val()}exportVal(){return(0,K.od)("DataSnapshot.exportVal",0,0,arguments.length),this._delegate.exportVal()}toJSON(){return(0,K.od)("DataSnapshot.toJSON",0,1,arguments.length),this._delegate.toJSON()}exists(){return(0,K.od)("DataSnapshot.exists",0,0,arguments.length),this._delegate.exists()}child(e){return(0,K.od)("DataSnapshot.child",0,1,arguments.length),e=String(e),NC("DataSnapshot.child","path",e,!1),new $p(this._database,this._delegate.child(e))}hasChild(e){return(0,K.od)("DataSnapshot.hasChild",1,1,arguments.length),NC("DataSnapshot.hasChild","path",e,!1),this._delegate.hasChild(e)}getPriority(){return(0,K.od)("DataSnapshot.getPriority",0,0,arguments.length),this._delegate.priority}forEach(e){return(0,K.od)("DataSnapshot.forEach",1,1,arguments.length),(0,K.oD)("DataSnapshot.forEach","action",e,!1),this._delegate.forEach(t=>e(new $p(this._database,t)))}hasChildren(){return(0,K.od)("DataSnapshot.hasChildren",0,0,arguments.length),this._delegate.hasChildren()}get key(){return this._delegate.key}numChildren(){return(0,K.od)("DataSnapshot.numChildren",0,0,arguments.length),this._delegate.size}getRef(){return(0,K.od)("DataSnapshot.ref",0,0,arguments.length),new Pl(this._database,this._delegate.ref)}get ref(){return this.getRef()}}class wo{constructor(e,t){this.database=e,this._delegate=t}on(e,t,r,i){var s;(0,K.od)("Query.on",2,4,arguments.length),(0,K.oD)("Query.on","callback",t,!1);const o=wo.getCancelAndContextArgs_("Query.on",r,i),a=(c,u)=>{t.call(o.context,new $p(this.database,c),u)};a.userCallback=t,a.context=o.context;const l=null===(s=o.cancel)||void 0===s?void 0:s.bind(o.context);switch(e){case"value":return N6(this._delegate,a,l),t;case"child_added":return Lpe(this._delegate,a,l),t;case"child_removed":return Fpe(this._delegate,a,l),t;case"child_changed":return Ope(this._delegate,a,l),t;case"child_moved":return Npe(this._delegate,a,l),t;default:throw new Error((0,K.dI)("Query.on","eventType")+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}}off(e,t,r){if((0,K.od)("Query.off",0,3,arguments.length),function(n,e,t){if(void 0!==e)switch(e){case"value":case"child_added":case"child_removed":case"child_changed":case"child_moved":break;default:throw new Error((0,K.dI)("Query.off","eventType")+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}}(0,e),(0,K.oD)("Query.off","callback",t,!0),(0,K.HN)("Query.off","context",r,!0),t){const i=()=>{};i.userCallback=t,i.context=r,Vpe(this._delegate,e,i)}else Vpe(this._delegate,e)}get(){return qJe(this._delegate).then(e=>new $p(this.database,e))}
1once(e,t,r,i){(0,K.od)("Query.once",1,4,arguments.length),(0,K.oD)("Query.once","callback",t,!0);const s=wo.getCancelAndContextArgs_("Query.once",r,i),o=new K.cY,a=(c,u)=>{const d=new $p(this.database,c);t&&t.call(s.context,d,u),o.resolve(d)};a.userCallback=t,a.context=s.context;const l=c=>{s.cancel&&s.cancel.call(s.context,c),o.reject(c)};switch(e){case"value":N6(this._delegate,a,l,{onlyOnce:!0});break;case"child_added":Lpe(this._delegate,a,l,{onlyOnce:!0});break;case"child_removed":Fpe(this._delegate,a,l,{onlyOnce:!0});break;case"child_changed":Ope(this._delegate,a,l,{onlyOnce:!0});break;case"child_moved":Npe(this._delegate,a,l,{onlyOnce:!0});break;default:throw new Error((0,K.dI)("Query.once","eventType")+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}return o.promise}limitToFirst(e){return(0,K.od)("Query.limitToFirst",1,1,arguments.length),new wo(this.database,Zc(this._delegate,function eXe(n){if("number"!=typeof n||Math.floor(n)!==n||n<=0)throw new Error("limitToFirst: First argument must be a positive integer.");return new ZJe(n)}(e)))}limitToLast(e){return(0,K.od)("Query.limitToLast",1,1,arguments.length),new wo(this.database,Zc(this._delegate,function nXe(n){if("number"!=typeof n||Math.floor(n)!==n||n<=0)throw new Error("limitToLast: First argument must be a positive integer.");return new tXe(n)}(e)))}orderByChild(e){return(0,K.od)("Query.orderByChild",1,1,arguments.length),new wo(this.database,Zc(this._delegate,function iXe(n){if("$key"===n)throw new Error('orderByChild: "$key" is invalid. Use orderByKey() instead.');if("$priority"===n)throw new Error('orderByChild: "$priority" is invalid. Use orderByPriority() instead.');if("$value"===n)throw new Error('orderByChild: "$value" is invalid. Use orderByValue() instead.');return NC("orderByChild","path",n,!1),new rXe(n)}(e)))}orderByKey(){return(0,K.od)("Query.orderByKey",0,0,arguments.length),new wo(this.database,Zc(this._delegate,function oXe(){return new sXe}()))}orderByPriority(){return(0,K.od)("Query.orderByPriority",0,0,arguments.length),new wo(this.database,Zc(this._delegate,function lXe(){return new aXe}()))}orderByValue(){return(0,K.od)("Query.orderByValue",0,0,arguments.length),new wo(this.database,Zc(this._delegate,function uXe(){return new cXe}()))}startAt(e=null,t){return(0,K.od)("Query.startAt",0,2,arguments.length),new wo(this.database,Zc(this._delegate,function QJe(n=null,e){return OC("startAt","key",e,!0),new jpe(n,e)}(e,t)))}startAfter(e=null,t){return(0,K.od)("Query.startAfter",0,2,arguments.length),new wo(this.database,Zc(this._delegate,function XJe(n,e){return OC("startAfter","key",e,!0),new JJe(n,e)}(e,t)))}endAt(e=null,t){return(0,K.od)("Query.endAt",0,2,arguments.length),new wo(this.database,Zc(this._delegate,function WJe(n,e){return OC("endAt","key",e,!0),new Upe(n,e)}(e,t)))}endBefore(e=null,t){return(0,K.od)("Query.endBefore",0,2,arguments.length),new wo(this.database,Zc(this._delegate,function KJe(n,e){return OC("endBefore","key",e,!0),new GJe(n,e)}(e,t)))}equalTo(e,t){return(0,K.od)("Query.equalTo",1,2,arguments.length),new wo(this.database,Zc(this._delegate,function hXe(n,e){return OC("equalTo","key",e,!0),new dXe(n,e)}(e,t)))}toString(){return(0,K.od)("Query.toString",0,0,arguments.length),this._delegate.toString()}toJSON(){return(0,K.od)("Query.toJSON",0,1,arguments.length),this._delegate.toJSON()}isEqual(e){if((0,K.od)("Query.isEqual",1,1,arguments.length),!(e instanceof wo))throw new Error("Query.isEqual failed: First argument must be an instance of firebase.database.Query.");return this._delegate.isEqual(e._delegate)}static getCancelAndContextArgs_(e,t,r){const i={cancel:void 0,context:void 0};if(t&&r)i.cancel=t,(0,K.oD)(e,"cancel",i.cancel,!0),i.context=r,(0,K.HN)(e,"context",i.context,!0);else if(t)if("object"==typeof t&&null!==t)i.context=t;else{if("function"!=typeof t)throw new Error((0,K.dI)(e,"cancelOrContext")+" must either be a cancel callback or a context object.");i.cancel=t}return i}get ref(){return new Pl(this.database,new uc(this._delegate._repo,this._delegate._path))}}class Pl extends wo{constructor(e,t){super(e,new Ka(t._repo,t._path,new yL,!1)),this.database=e,this._delegate=t}getKey(){return(0,K.od)("Reference.key",0,0,arguments.length),this._delegate.key}child(e){return(0,K.od)("Reference.child",1,1,arguments.length),"number"==typeof e&&(e=String(e)),new Pl(this.database,$_(this._delegate,e))}getParent(){(0,K.od)("Reference.parent",0,0,arguments.length);const e=this._delegate.parent;return e?new Pl(this.database,e):null}getRoot(){return(0,K.od)("Reference.root",0,0,arguments.length),new Pl(this.database,this._delegate.root)}set(e,t){(0,K.od)("Reference.set",1,2,arguments.length),(0,K.oD)("Reference.set","onComplete",t,!0);const r=O6(this._delegate,e);return t&&r.then(()=>t(null),i=>t(i)),r}update(e,t){if((0,K.od)("Reference.update",1,2,arguments.length),Array.isArray(e)){const i={};for(let s=0;s<e.length;++s)i[""+s]=e[s];
1e=i,zpe("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.")}cc("Reference.update",this._delegate._path),(0,K.oD)("Reference.update","onComplete",t,!0);const r=$Je(this._delegate,e);return t&&r.then(()=>t(null),i=>t(i)),r}setWithPriority(e,t,r){(0,K.od)("Reference.setWithPriority",2,3,arguments.length),(0,K.oD)("Reference.setWithPriority","onComplete",r,!0);const i=function zJe(n,e,t){if(cc("setWithPriority",n._path),fd("setWithPriority",e,n._path,!1),D6("setWithPriority",t,!1),".length"===n.key||".keys"===n.key)throw"setWithPriority failed: "+n.key+" is a read-only object.";const r=new K.cY;return S6(n._repo,n._path,e,t,r.wrapCallback(()=>{})),r.promise}(this._delegate,e,t);return r&&i.then(()=>r(null),s=>r(s)),i}remove(e){(0,K.od)("Reference.remove",0,1,arguments.length),(0,K.oD)("Reference.remove","onComplete",e,!0);const t=function BJe(n){return cc("remove",n._path),O6(n,null)}(this._delegate);return e&&t.then(()=>e(null),r=>e(r)),t}transaction(e,t,r){(0,K.od)("Reference.transaction",1,3,arguments.length),(0,K.oD)("Reference.transaction","transactionUpdate",e,!1),(0,K.oD)("Reference.transaction","onComplete",t,!0),function(n,e,t,r){if(void 0!==t&&"boolean"!=typeof t)throw new Error((0,K.dI)("Reference.transaction","applyLocally")+"must be a boolean.")}(0,0,r);const i=function AXe(n,e,t){var r;if(n=(0,K.Ku)(n),cc("Reference.transaction",n._path),".length"===n.key||".keys"===n.key)throw"Reference.transaction failed: "+n.key+" is a read-only object.";const i=null===(r=t?.applyLocally)||void 0===r||r,s=new K.cY,a=N6(n,()=>{});return function LJe(n,e,t,r,i,s){Ab(n,"transaction on "+e);const o={path:e,update:t,onComplete:r,status:null,order:Bhe(),applyLocally:s,retryCount:0,unwatcher:i,abortReason:null,currentWriteId:null,currentInputSnapshot:null,currentOutputSnapshotRaw:null,currentOutputSnapshotResolved:null},a=x6(n,e,void 0);o.currentInputSnapshot=a;const l=o.update(a.val());if(void 0===l)o.unwatcher(),o.currentOutputSnapshotRaw=null,o.currentOutputSnapshotResolved=null,o.onComplete&&o.onComplete(null,!1,o.currentInputSnapshot);else{LC("transaction failed: Data returned ",l,o.path),o.status=0;const c=OL(n.transactionQueueTree_,e),u=H_(c)||[];let d;u.push(o),E6(c,u),"object"==typeof l&&null!==l&&(0,K.gR)(l,".priority")?(d=(0,K.yw)(l,".priority"),(0,K.vA)(RC(d),"Invalid priority returned by transaction. Priority must be a valid string, finite number, server value, or null.")):d=(RL(n.serverSyncTree_,e)||fn.EMPTY_NODE).getPriority().val();const f=FC(n),_=Ui(l,d),w=w6(_,a,f);o.currentOutputSnapshotRaw=_,o.currentOutputSnapshotResolved=w,o.currentWriteId=UL(n);const M=f6(n.serverSyncTree_,e,w,o.currentWriteId,o.applyLocally);kl(n.eventQueue_,e,M),jL(n,n.transactionQueueTree_)}}(n._repo,n._path,e,(l,c,u)=>{let d=null;l?s.reject(l):(d=new z_(u,new uc(n._repo,n._path),Zr),s.resolve(new SXe(c,d)))},a,i),s.promise}(this._delegate,e,{applyLocally:r}).then(s=>new NXe(s.committed,new $p(this.database,s.snapshot)));return t&&i.then(s=>t(null,s.committed,s.snapshot),s=>t(s,!1,null)),i}setPriority(e,t){(0,K.od)("Reference.setPriority",1,2,arguments.length),(0,K.oD)("Reference.setPriority","onComplete",t,!0);const r=function HJe(n,e){n=(0,K.Ku)(n),cc("setPriority",n._path),D6("setPriority",e,!1);const t=new K.cY;return S6(n._repo,ki(n._path,".priority"),e,null,t.wrapCallback(()=>{})),t.promise}(this._delegate,e);return t&&r.then(()=>t(null),i=>t(i)),r}push(e,t){(0,K.od)("Reference.push",0,2,arguments.length),(0,K.oD)("Reference.push","onComplete",t,!0);const r=function YJe(n,e){n=(0,K.Ku)(n),cc("push",n._path),fd("push",e,n._path,!0);const t=wpe(n._repo),r=jJe(t),i=$_(n,r),s=$_(n,r);let o;return o=null!=e?O6(s,e).then(()=>s):Promise.resolve(s),i.then=o.then.bind(o),i.catch=o.then.bind(o,void 0),i}(this._delegate,e),i=r.then(o=>new Pl(this.database,o));t&&i.then(()=>t(null),o=>t(o));const s=new Pl(this.database,r);return s.then=i.then.bind(i),s.catch=i.catch.bind(i,void 0),s}onDisconnect(){return cc("Reference.onDisconnect",this._delegate._path),new OXe(new kpe(this._delegate._repo,this._delegate._path))}get key(){return this.getKey()}get parent(){return this.getParent()}get root(){return this.getRoot()}}class jC{constructor(e,t){this._delegate=e,this.app=t,this.INTERNAL={delete:()=>this._delegate._delete(),forceWebSockets:vXe,forceLongPolling:wXe}}useEmulator(e,t,r={}){!function Hpe(n,e,t,r={}){(n=(0,K.Ku)(n))._checkNotDeleted("useEmulator"),n._instanceStarted&&ud("Cannot call useEmulator() after instance has already been initialized.");const i=n._repoInternal;let s;if(i.repoInfo_.nodeAdmin)r.mockUserToken&&ud('mockUserToken is not supported by the Admin SDK. For client access with mock users, please use the "firebase" package instead of "firebase-admin".'),s=new _C(_C.OWNER);else if(r.mockUserToken){const o="string"==typeof r.mockUserToken?r.mockUserToken:(0,K.Fy)(r.mockUserToken,n.app.options.projectId);s=new _C(o)}!function pXe(n,e,t,r){n.repoInfo_=new O5(`${e}:${t}`,!1,n.repoInfo_.namespace,n.repoInfo_.webSocketOnly,n.repoInfo_.nodeAdmin,n.repoInfo_.persistenceKey,n.repoInfo_.includeNamespaceInQueryParams,!0),r&&(n.authTokenProvider_=r)}(i,e,t,s)}(this._delegate,e,t,r)}ref(e){if((0,K.od)("database.ref",0,1,arguments.length),e instanceof Pl){const t=Rpe(this._delegate,e.toString());return new Pl(this,t)}{const t=Ppe(this._delegate,e);return new Pl(this,t)}}refFromURL(e){(0,K.od)("database.refFromURL",1,1,arguments.length);const r=Rpe(this._delegate,e);return new Pl(this,r)}goOffline(){return(0,K.od)("database.goOffline",0,0,arguments.length),function bXe(n){(n=(0,K.Ku)(n))._checkNotDeleted("goOffline"),Mpe(n._repo)}(this._delegate)}goOnline(){return(0,K.od)("database.goOnline",0,0,arguments.length),function TXe(n){(n=(0,K.Ku)(n))._checkNotDeleted("goOnline"),function RJe(n){n.persistentConnection_&&n.persistentConnection_.resume(vpe)}(n._repo)}(this._delegate)}}jC.ServerValue={TIMESTAMP:function DXe(){return IXe}(),increment:n=>function CXe(n){return{".sv":{increment:n}}}(n)};var VXe=Object.freeze({__proto__:null,initStandalone:function FXe({app:n,url:e,version:t,customAuthImpl:r,customAppCheckImpl:i,namespace:s,nodeAdmin:o=!1}){x5(t);const a=new Hc.h1("database-standalone"),l=new Hc.Kq("auth-internal",a);let c;return l.setComponent(new Hc.uA("auth-internal",()=>r,"PRIVATE")),i&&(c=new Hc.Kq("app-check-internal",a),c.setComponent(new Hc.uA("app-check-internal",()=>i,"PRIVATE"))),{instance:new jC(V6(n,l,c,e,o),n),namespace:s}}});const UXe=jC.ServerValue;function YC(n,e,t="on",r=ax){return new Wn(i=>{let s=null;return s=n[t](e,(o,a)=>{r.schedule(()=>{i.next({snapshot:o,prevKey:a})}),"once"===t&&r.schedule(()=>i.complete())},o=>{r.schedule(()=>i.error(o))}),"on"===t?{unsubscribe(){null!=s&&n.off(e,s)}}:{unsubscribe(){}}}).pipe(st(i=>{const{snapshot:s,prevKey:o}=i;let a=null;return s.exists()&&(a=s.key),{type:e,payload:s,prevKey:o,key:a}}),zJ())}function $pe(n){return null==n}function qpe(n){return"function"==typeof n.set}function Wpe(n,e){return qpe(e)?e:n.ref(e)}function Gpe(n,e){if(function YXe(n){return"string"==typeof n}(n))return e.stringCase();if(qpe(n))return e.firebaseCase();if(function BXe(n){return"function"==typeof n.exportVal}(n))return e.snapshotCase();throw new Error("Expects a string, snapshot, or reference. Got: "+typeof n)}function Kpe(n){return($pe(n)||0===n.length)&&(n=["child_added","child_removed","child_changed","child_moved"]),n}function Qpe(n,e,t){return kV(...(e=Kpe(e)).map(i=>YC(n,i,"on",t)))}function Jpe(n,e){return function(r,i){return Gpe(r,{stringCase:()=>n.child(r)[e](i),firebaseCase:()=>r[e](i),snapshotCase:()=>r.ref[e](i)})}}function qXe(n){return function(t){return t?Gpe(t,{stringCase:()=>n.child(t).remove(),firebaseCase:()=>t.remove(),snapshotCase:()=>t.ref.remove()}):n.remove()}}function Xpe(n,e){const t=n.length;for(let r=0;r<t;r++)if(n[r].payload.key===e)return r;return-1}function KXe(n,e){const{payload:t,prevKey:r,key:i}=e,s=Xpe(n,i),o=function GXe(n,e){if($pe(e))return 0;{const t=Xpe(n,e);return-1===t?n.length:t+1}}(n,r);switch(e.type){case"value":if(e.payload?.exists()){let a=null;
1e.payload.forEach(l=>{const c={payload:l,type:"value",prevKey:a,key:l.key};return a=l.key,n=[...n,c],!1})}return n;case"child_added":if(s>-1)(n[s-1]?.key||null)!==r&&(n=n.filter(l=>l.payload.key!==t.key)).splice(o,0,e);else{if(null==r)return[e,...n];(n=n.slice()).splice(o,0,e)}return n;case"child_removed":return n.filter(a=>a.payload.key!==t.key);case"child_changed":return n.map(a=>a.payload.key===i?e:a);case"child_moved":if(s>-1){const a=n.splice(s,1)[0];return(n=n.slice()).splice(o,0,a),n}return n;default:return n}}function Zpe(n,e,t){return function WXe(n,e,t){return YC(n,"value","once",t).pipe(zi(r=>{const i=[jt(r)];return e.forEach(s=>i.push(YC(n,s,"on",t))),kV(...i).pipe(s0(KXe,[]))}),dx())}(n,e=Kpe(e),t)}function eme(n,e){return function(){return YC(n,"value","on",e)}}!function jXe(n){n.INTERNAL.registerComponent(new Hc.uA("database-compat",(e,{instanceIdentifier:t})=>{const r=e.getProvider("app-compat").getImmediate(),i=e.getProvider("database").getImmediate({identifier:t});return new jC(i,r)},"PUBLIC").setServiceProps({Reference:Pl,Query:wo,Database:jC,DataSnapshot:$p,enableLogging:EXe,INTERNAL:VXe,ServerValue:UXe}).setMultipleInstances(!0)),n.registerVersion("@firebase/database-compat","1.0.5")}(bl.A);const XXe=new $e("angularfire2.realtimeDatabaseURL"),ZXe=new $e("angularfire2.database.use-emulator");let eZe=(()=>{class n{schedulers;database;constructor(t,r,i,s,o,a,l,c,u,d,f,_,w,M,S){this.schedulers=a;const O=l,N=EM(t,o,r);c&&UV(N,o,u,f,_,w,d,M),this.database=ux(`${N.name}.database.${i}`,"AngularFireDatabase",N.name,()=>{const j=o.runOutsideAngular(()=>N.database(i||void 0));return O&&j.useEmulator(...O),j},[O])}list(t,r){const i=this.schedulers.ngZone.runOutsideAngular(()=>Wpe(this.database,t));let s=i;return r&&(s=r(i)),function QXe(n,e){const t=e.schedulers.outsideAngular,r=e.schedulers.ngZone.run(()=>n.ref);return{query:n,update:Jpe(r,"update"),set:Jpe(r,"set"),push:i=>r.push(i),remove:qXe(r),snapshotChanges:i=>Zpe(n,i,t).pipe(ls),stateChanges:i=>Qpe(n,i,t).pipe(ls),auditTrail:i=>function HXe(n,e,t){return function $Xe(n,e,t){return function zXe(n,e){return YC(n,"value","on",e).pipe(st(t=>{let r;return t.payload.forEach(i=>(r=i.key,!1)),{data:t,lastKeyToLoad:r}}))}(n,t).pipe(function $Ge(...n){const e=GF(n);return Lt((t,r)=>{const i=n.length,s=new Array(i);let o=n.map(()=>!1),a=!1;for(let l=0;l<i;l++)Va(n[l]).subscribe(Tt(r,c=>{s[l]=c,!a&&!o[l]&&(o[l]=!0,(a=o.every(Xi))&&(o=null))},so));t.subscribe(Tt(r,l=>{if(a){const c=[l,...s];r.next(e?e(...c):c)}}))})}(e),st(([i,s])=>{const o=i.lastKeyToLoad,a=s.map(l=>l.key);return{actions:s,lastKeyToLoad:o,loadedKeys:a}}),function qGe(n){return Lt((e,t)=>{let r=!1,i=0;e.subscribe(Tt(t,s=>(r||(r=!n(s,i++)))&&t.next(s)))})}(i=>-1===i.loadedKeys.indexOf(i.lastKeyToLoad)),st(i=>i.actions))}(n,Qpe(n,e).pipe(s0((i,s)=>[...i,s],[])),t)}(n,i,t).pipe(ls),valueChanges:(i,s)=>Zpe(n,i,t).pipe(st(a=>a.map(l=>s&&s.idField?{...l.payload.val(),[s.idField]:l.key}:l.payload.val())),ls)}}(s,this)}object(t){return function JXe(n,e){return{query:n,snapshotChanges:()=>eme(n,e.schedulers.outsideAngular)().pipe(ls),update:t=>n.ref.update(t),set:t=>n.ref.set(t),remove:()=>n.ref.remove(),valueChanges:()=>eme(n,e.schedulers.outsideAngular)().pipe(ls,st(r=>r.payload.exists()?r.payload.val():null))}}(this.schedulers.ngZone.runOutsideAngular(()=>Wpe(this.database,t)),this)}createPushId(){return this.schedulers.ngZone.runOutsideAngular(()=>this.database.ref()).push().key}static \u0275fac=function(r){return new(r||n)(ve(b0),ve(T0,8),ve(XXe,8),ve(La),ve(vn),ve(cx),ve(ZXe,8),ve(mg,8),ve(RV,8),ve(LV,8),ve(OV,8),ve(NV,8),ve(FV,8),ve(VV,8),ve(lx,8))};static \u0275prov=Be({token:n,factory:n.\u0275fac,providedIn:"any"})}return n})(),tZe=(()=>{class n{constructor(){bl.A.registerVersion("angularfire",y0.full,"rtdb-compat")}static \u0275fac=function(r){return new(r||n)};static \u0275mod=A({type:n});static \u0275inj=ai({providers:[eZe]})}return n})();function tme(n){return new De(3e3,!1)}function qp(n){switch(n.length){case 0:return new vM;case 1:return n[0];default:return new fJ(n)}}function nme(n,e,t=new Map,r=new Map){const i=[],s=[];let o=-1,a=null;if(e.forEach(l=>{const c=l.get("offset"),u=c==o,d=u&&a||new Map;l.forEach((f,_)=>{let w=_,M=f;if("offset"!==_)switch(w=n.normalizePropertyName(w,i),M){case"!":M=t.get(_);break;case Gd:M=r.get(_);break;default:M=n.normalizeStyleValue(_,w,M,i)}d.set(w,M)}),u||s.push(d),a=d,o=c}),i.length)throw function MZe(n){return new De(3502,!1)}();return s}function U6(n,e,t,r){switch(e){case"start":n.onStart(()=>r(t&&j6(t,"start",n)));break;case"done":n.onDone(()=>r(t&&j6(t,"done",n)));break;
vendor: 2,765 bytes, line 1
1case"destroy":n.onDestroy(()=>r(t&&j6(t,"destroy",n)))}}function j6(n,e,t){const s=Y6(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,t.totalTime??n.totalTime,!!t.disabled),o=n._data;return null!=o&&(s._data=o),s}function Y6(n,e,t,r,i="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:r,phaseName:i,totalTime:s,disabled:!!o}}function Rl(n,e,t){let r=n.get(e);return r||n.set(e,r=t),r}function rme(n){const e=n.indexOf(":");return[n.substring(1,e),n.slice(e+1)]}const NZe=typeof document>"u"?null:document.documentElement;function B6(n){const e=n.parentNode||n.host||null;return e===NZe?null:e}let q_=null,ime=!1;function sme(n,e){for(;e;){if(e===n)return!0;e=B6(e)}return!1}function ome(n,e,t){if(t)return Array.from(n.querySelectorAll(e));const r=n.querySelector(e);return r?[r]:[]}let H6=(()=>{class n{validateStyleProperty(t){return function VZe(n){q_||(q_=function UZe(){return typeof document<"u"?document.body:null}()||{},ime=!!q_.style&&"WebkitAppearance"in q_.style);let e=!0;return q_.style&&!function FZe(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in q_.style,!e&&ime&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in q_.style)),e}(t)}containsElement(t,r){return sme(t,r)}getParentElement(t){return B6(t)}query(t,r,i){return ome(t,r,i)}computeStyle(t,r,i){return i||""}animate(t,r,i,s,o,a=[],l){return new vM(i,s)}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac})}return n})();class z6{static#e=this.NOOP=new H6}class $6{}const YZe=1e3,q6="ng-enter",$L="ng-leave",qL="ng-trigger",WL=".ng-trigger",lme="ng-animating",W6=".ng-animating";function Ah(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:G6(parseFloat(e[1]),e[2])}function G6(n,e){return"s"===e?n*YZe:n}function GL(n,e,t){return n.hasOwnProperty("duration")?n:function HZe(n,e,t){let i,s=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push(tme()),{duration:0,delay:0,easing:""};i=G6(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=G6(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else i=n;if(!t){let a=!1,l=e.length;i<0&&(e.push(function nZe(){return new De(3100,!1)}()),a=!0),s<0&&(e.push(function rZe(){return new De(3101,!1)}()),a=!0),a&&e.splice(l,0,tme())}return{duration:i,delay:s,easing:o}}(n,e,t)}function pd(n,e,t){e.forEach((r,i)=>{const s=Q6(i);t&&!t.has(i)&&t.set(i,n.style[s]),n.style[s]=r})}function W_(n,e){e.forEach((t,r)=>{const i=Q6(r);n.style[i]=""})}function BC(n){return Array.isArray(n)?1==n.length?n[0]:function uxe(n,e=null){return{type:Jt.Sequence,steps:n,options:e}}(n):n}const K6=new RegExp("{{\\s*(.+?)\\s*}}","g");function ume(n){let e=[];
1if("string"==typeof n){let t;for(;t=K6.exec(n);)e.push(t[1]);K6.lastIndex=0}return e}function HC(n,e,t){const r=`${n}`,i=r.replace(K6,(s,o)=>{let a=e[o];return null==a&&(t.push(function sZe(n){return new De(3003,!1)}()),a=""),a.toString()});return i==r?n:i}const qZe=/-+([a-z0-9])/g;function Q6(n){return n.replace(qZe,(...e)=>e[1].toUpperCase())}function Ll(n,e,t){switch(e.type){case Jt.Trigger:return n.visitTrigger(e,t);case Jt.State:return n.visitState(e,t);case Jt.Transition:return n.visitTransition(e,t);case Jt.Sequence:return n.visitSequence(e,t);case Jt.Group:return n.visitGroup(e,t);case Jt.Animate:return n.visitAnimate(e,t);case Jt.Keyframes:return n.visitKeyframes(e,t);case Jt.Style:return n.visitStyle(e,t);case Jt.Reference:return n.visitReference(e,t);case Jt.AnimateChild:return n.visitAnimateChild(e,t);case Jt.AnimateRef:return n.visitAnimateRef(e,t);case Jt.Query:return n.visitQuery(e,t);case Jt.Stagger:return n.visitStagger(e,t);default:throw function oZe(n){return new De(3004,!1)}()}}function J6(n,e){return window.getComputedStyle(n)[e]}const KZe=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class dme extends $6{normalizePropertyName(e,t){return Q6(e)}normalizeStyleValue(e,t,r,i){let s="";const o=r.toString().trim();if(KZe.has(t)&&0!==r&&"0"!==r)if("number"==typeof r)s="px";else{const a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push(function aZe(n,e){return new De(3005,!1)}())}return o+s}}const KL="*";const QL=new Set(["true","1"]),JL=new Set(["false","0"]);function hme(n,e){const t=QL.has(n)||JL.has(n),r=QL.has(e)||JL.has(e);return(i,s)=>{let o=n==KL||n==i,a=e==KL||e==s;return!o&&t&&"boolean"==typeof i&&(o=i?QL.has(n):JL.has(n)),!a&&r&&"boolean"==typeof s&&(a=s?QL.has(e):JL.has(e)),o&&a}}const ZZe=new RegExp("s*:selfs*,?","g");function X6(n,e,t,r){return new eet(n).build(e,t,r)}class eet{constructor(e){this._driver=e}build(e,t,r){const i=new ret(t);return this._resetContextStyleTimingState(i),Ll(this,BC(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,t){let r=t.queryCount=0,i=t.depCount=0;const s=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push(function lZe(){return new De(3006,!1)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==Jt.State){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,t))}),l.name=c}else if(a.type==Jt.Transition){const l=this.visitTransition(a,t);r+=l.queryCount,i+=l.depCount,o.push(l)}else t.errors.push(function cZe(){return new De(3007,!1)}())}),{type:Jt.Trigger,name:e.name,states:s,transitions:o,queryCount:r,depCount:i,options:null}}visitState(e,t){const r=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(r.containsDynamicStyles){const s=new Set,o=i||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{ume(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&t.errors.push(function uZe(n,e){return new De(3008,!1)}(0,s.values()))}return{type:Jt.State,name:e.name,style:r,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const r=Ll(this,BC(e.animation),t),i=function QZe(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(r=>function JZe(n,e,t){if(":"==n[0]){const l=function XZe(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,r)=>parseFloat(r)>parseFloat(t);case":decrement":return(t,r)=>parseFloat(r)<parseFloat(t);default:return e.push(function wZe(n){return new De(3016,!1)}()),"* => *"}}(n,t);if("function"==typeof l)return void e.push(l);n=l}const r=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return t.push(function vZe(n){return new De(3015,!1)}()),e;const i=r[1],s=r[2],o=r[3];e.push(hme(i,o)),"<"==s[0]&&(i!=KL||o!=KL)&&e.push(hme(o,i))}(r,t,e)):t.push(n),t}(e.expr,t.errors);return{type:Jt.Transition,matchers:i,animation:r,queryCount:t.queryCount,depCount:t.depCount,options:G_(e.options)}}visitSequence(e,t){return{type:Jt.Sequence,steps:e.steps.map(r=>Ll(this,r,t)),options:G_(e.options)}}visitGroup(e,t){const r=t.currentTime;let i=0;const s=e.steps.map(o=>{t.currentTime=r;const a=Ll(this,o,t);return i=Math.max(i,t.currentTime),a}
vendor: 15,539 bytes, line 1
1);return t.currentTime=i,{type:Jt.Group,steps:s,options:G_(e.options)}}visitAnimate(e,t){const r=function set(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Z6(GL(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=Z6(0,0,"");return s.dynamic=!0,s.strValue=t,s}const i=GL(t,e);return Z6(i.duration,i.delay,i.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;let i,s=e.styles?e.styles:Uu({});if(s.type==Jt.Keyframes)i=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;const c={};r.easing&&(c.easing=r.easing),o=Uu(c)}t.currentTime+=r.duration+r.delay;const l=this.visitStyle(o,t);l.isEmptyStep=a,i=l}return t.currentAnimateTimings=null,{type:Jt.Animate,timings:r,style:i,options:null}}visitStyle(e,t){const r=this._makeStyleAst(e,t);return this._validateStyleAst(r,t),r}_makeStyleAst(e,t){const r=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of i)"string"==typeof a?a===Gd?r.push(a):t.errors.push(new De(3002,!1)):r.push(new Map(Object.entries(a)));let s=!1,o=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s))for(let l of a.values())if(l.toString().indexOf("{{")>=0){s=!0;break}}),{type:Jt.Style,styles:r,easing:o,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){const r=t.currentAnimateTimings;let i=t.currentTime,s=t.currentTime;r&&s>0&&(s-=r.duration+r.delay),e.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,l)=>{const c=t.collectedStyles.get(t.currentQuerySelector),u=c.get(l);let d=!0;u&&(s!=i&&s>=u.startTime&&i<=u.endTime&&(t.errors.push(function hZe(n,e,t,r,i){return new De(3010,!1)}()),d=!1),s=u.startTime),d&&c.set(l,{startTime:s,endTime:i}),t.options&&function $Ze(n,e,t){const r=e.params||{},i=ume(n);i.length&&i.forEach(s=>{r.hasOwnProperty(s)||t.push(function iZe(n){return new De(3001,!1)}())})}(a,t.options,t.errors)})})}visitKeyframes(e,t){const r={type:Jt.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function fZe(){return new De(3011,!1)}()),r;let s=0;const o=[];let a=!1,l=!1,c=0;const u=e.steps.map(O=>{const N=this._makeStyleAst(O,t);let j=null!=N.offset?N.offset:function iet(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){const r=t;e=parseFloat(r.get("offset")),r.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}(N.styles),Z=0;return null!=j&&(s++,Z=N.offset=j),l=l||Z<0||Z>1,a=a||Z<c,c=Z,o.push(Z),N});l&&t.errors.push(function pZe(){return new De(3012,!1)}()),a&&t.errors.push(function mZe(){return new De(3200,!1)}());const d=e.steps.length;let f=0;s>0&&s<d?t.errors.push(function gZe(){return new De(3202,!1)}()):0==s&&(f=1/(d-1));const _=d-1,w=t.currentTime,M=t.currentAnimateTimings,S=M.duration;return u.forEach((O,N)=>{const j=f>0?N==_?1:f*N:o[N],Z=j*S;t.currentTime=w+M.delay+Z,M.duration=Z,this._validateStyleAst(O,t),O.offset=j,r.styles.push(O)}),r}visitReference(e,t){return{type:Jt.Reference,animation:Ll(this,BC(e.animation),t),options:G_(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:Jt.AnimateChild,options:G_(e.options)}}visitAnimateRef(e,t){return{type:Jt.AnimateRef,animation:this.visitReference(e.animation,t),options:G_(e.options)}}visitQuery(e,t){const r=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;const[s,o]=function tet(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(ZZe,"")),n=n.replace(/@\*/g,WL).replace(/@\w+/g,t=>WL+"-"+t.slice(1)).replace(/:animating/g,W6),[n,e]}(e.selector);t.currentQuerySelector=r.length?r+" "+s:s,Rl(t.collectedStyles,t.currentQuerySelector,new Map);const a=Ll(this,BC(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=r,{type:Jt.Query,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:G_(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function _Ze(){return new De(3013,!1)}());const r="full"===e.timings?{duration:0,delay:0,easing:"full"}:GL(e.timings,t.errors,!0);return{type:Jt.Stagger,animation:Ll(this,BC(e.animation),t),timings:r,options:null}}}class ret{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function G_(n){return n?(n={...n}).params&&(n.params=function net(n){return n?{...n}:null}(n.params)):n={},n}function Z6(n,e,t){return{duration:n,delay:e,easing:t}}function ez(n,e,t,r,i,s,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:r,duration:i,delay:s,totalTime:i+s,easing:o,subTimeline:a}}class XL{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let r=this._map.get(e);r||this._map.set(e,r=[]),r.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const cet=new RegExp(":enter","g"),det=new RegExp(":leave","g");function tz(n,e,t,r,i,s=new Map,o=new Map,a,l,c=[]){return(new het).buildKeyframes(n,e,t,r,i,s,o,a,l,c)}class het{buildKeyframes(e,t,r,i,s,o,a,l,c,u=[]){c=c||new XL;const d=new nz(e,t,c,i,s,u,[]);d.options=l;const f=l.delay?Ah(l.delay):0;d.currentTimeline.delayNextStep(f),d.currentTimeline.setStyles([o],null,d.errors,l),Ll(this,r,d);const _=d.timelines.filter(w=>w.containsAnimation());if(_.length&&a.size){let w;for(let M=_.length-1;M>=0;M--){const S=_[M];if(S.element===t){w=S;break}}w&&!w.allowOnlyTimelineStyles()&&w.setStyles([a],null,d.errors,l)}return _.length?_.map(w=>w.buildKeyframes()):[ez(t,[],[],[],0,f,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const r=t.subInstructions.get(t.element);if(r){const i=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(r,i,i.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const r=t.createSubContext(e.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,r),this.visitReference(e.animation,r),t.transformIntoNewTimeline(r.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,r){for(const i of e){const s=i?.delay;if(s){const o="number"==typeof s?s:Ah(HC(s,i?.params??{},t.errors));r.delayNextStep(o)}}}_visitSubInstructions(e,t,r){let s=t.currentTimeline.currentTime;const o=null!=r.duration?Ah(r.duration):null,a=null!=r.delay?Ah(r.delay):null;return 0!==o&&e.forEach(l=>{const c=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),Ll(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const r=t.subContextCount;let i=t;const s=e.options;if(s&&(s.params||s.delay)&&(i=t.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){i.previousNode.type==Jt.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ZL);const o=Ah(s.delay);i.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>Ll(this,o,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const r=[];let i=t.currentTimeline.currentTime;const s=e.options&&e.options.delay?Ah(e.options.delay):0;e.steps.forEach(o=>{const a=t.createSubContext(e.options);s&&a.delayNextStep(s),Ll(this,o,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const r=e.strValue;return GL(t.params?HC(r,t.params,t.errors):r,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const r=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;r.delay&&(t.incrementTime(r.delay),i.snapshotCurrentStyles());const s=e.style;s.type==Jt.Keyframes?this.visitKeyframes(s,t):(t.incrementTime(r.duration),this.visitStyle(s,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const r=t.currentTimeline,i=t.currentAnimateTimings;!i&&r.hasCurrentStyleProperties()&&r.forwardFrame();const s=i&&i.easing||e.easing;e.isEmptyStep?r.applyEmptyStep(s):r.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const r=t.currentAnimateTimings,i=t.currentTimeline.duration,s=r.duration,a=t.createSubContext().currentTimeline;a.easing=r.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+s),t.previousNode=e}visitQuery(e,t){const r=t.currentTimeline.currentTime,i=e.options||{},s=i.delay?Ah(i.delay):0;s&&(t.previousNode.type===Jt.Style||0==r&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ZL);let o=r;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(e.options,c);s&&d.delayNextStep(s),c===t.element&&(l=d.currentTimeline),Ll(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const r=t.parentContext,i=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1);let l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=r.currentStaggerTime}const u=t.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Ll(this,e.animation,t),t.previousNode=e,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}}const ZL={};class nz{constructor(e,t,r,i,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ZL,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new eO(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const r=e;let i=this.options;null!=r.duration&&(i.duration=Ah(r.duration)),null!=r.delay&&(i.delay=Ah(r.delay));const s=r.params;if(s){let o=i.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=HC(s[a],o,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const r=e.params={};Object.keys(t).forEach(i=>{r[i]=t[i]})}}return e}createSubContext(e=null,t,r){const i=t||this.element,s=new nz(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=ZL,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,r){const i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(r??0)+e.delay,easing:""},s=new fet(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,r,i,s,o){let a=[];if(i&&a.push(this.element),e.length>0){e=(e=e.replace(cet,"."+this._enterClassName)).replace(det,"."+this._leaveClassName);let c=this._driver.query(this.element,e,1!=r);0!==r&&(c=r<0?c.slice(c.length+r,c.length):c.slice(0,r)),a.push(...c)}return!s&&0==a.length&&o.push(function yZe(n){return new De(3014,!1)}()),a}}class eO{constructor(e,t,r,i){this._driver=e,this.element=t,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new eO(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,r]of this._globalTimelineStyles)this._backFill.set(t,r||Gd),this._currentKeyframe.set(t,Gd);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,r,i){t&&this._previousKeyframe.set("easing",t);const s=i&&i.params||{},o=function pet(n,e){const t=new Map;let r;return n.forEach(i=>{if("*"===i){r??=e.keys();for(let s of r)t.set(s,Gd)}else for(let[s,o]of i)t.set(s,o)}),t}(e,this._globalTimelineStyles);for(let[a,l]of o){const c=HC(l,s,r);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Gd),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}
1mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,r)=>{const i=this._styleSummary.get(r);(!i||t.time>i.time)&&this._updateStyle(r,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,r=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((a,l)=>{const c=new Map([...this._backFill,...a]);c.forEach((u,d)=>{"!"===u?e.add(d):u===Gd&&t.add(d)}),r||c.set("offset",l/this.duration),i.push(c)});const s=[...e.values()],o=[...t.values()];if(r){const a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l]}return ez(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}}class fet extends eO{constructor(e,t,r,i,s,o,a=!1){super(e,t,o.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],o=r+t,a=t/o,l=new Map(e[0]);l.set("offset",0),s.push(l);const c=new Map(e[0]);c.set("offset",mme(a)),s.push(c);const u=e.length-1;for(let d=1;d<=u;d++){let f=new Map(e[d]);const _=f.get("offset");f.set("offset",mme((t+_*r)/o)),s.push(f)}r=o,t=0,i="",e=s}return ez(this.element,e,this.preStyleProps,this.postStyleProps,r,t,i,!0)}}function mme(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}function gme(n,e,t,r,i,s,o,a,l,c,u,d,f){return{type:0,element:n,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:s,toState:r,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:f}}const rz={};class _me{constructor(e,t,r){this._triggerName=e,this.ast=t,this._stateStyles=r}match(e,t,r,i){return function met(n,e,t,r,i){return n.some(s=>s(e,t,r,i))}(this.ast.matchers,e,t,r,i)}buildStyles(e,t,r){let i=this._stateStyles.get("*");return void 0!==e&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,r):new Map}build(e,t,r,i,s,o,a,l,c,u){const d=[],f=this.ast.options&&this.ast.options.params||rz,w=this.buildStyles(r,a&&a.params||rz,d),M=l&&l.params||rz,S=this.buildStyles(i,M,d),O
1=new Set,N=new Map,j=new Map,Z="void"===i,ie={params:yme(M,f),delay:this.ast.options?.delay},le=u?[]:tz(e,t,this.ast.animation,s,o,w,S,ie,c,d);let Q=0;return le.forEach(B=>{Q=Math.max(B.duration+B.delay,Q)}),d.length?gme(t,this._triggerName,r,i,Z,w,S,[],[],N,j,Q,d):(le.forEach(B=>{const J=B.element,oe=Rl(N,J,new Set);B.preStyleProps.forEach(he=>oe.add(he));const ce=Rl(j,J,new Set);B.postStyleProps.forEach(he=>ce.add(he)),J!==t&&O.add(J)}),gme(t,this._triggerName,r,i,Z,w,S,le,[...O.values()],N,j,Q))}}function yme(n,e){const t={...e};return Object.entries(n).forEach(([r,i])=>{null!=i&&(t[r]=i)}),t}class get{constructor(e,t,r){this.styles=e,this.defaultParams=t,this.normalizer=r}buildStyles(e,t){const r=new Map,i=yme(e,this.defaultParams);return this.styles.styles.forEach(s=>{"string"!=typeof s&&s.forEach((o,a)=>{o&&(o=HC(o,i,t));const l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),r.set(a,o)})}),r}}class yet{constructor(e,t,r){this.name=e,this.ast=t,this._normalizer=r,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{this.states.set(i.name,new get(i.style,i.options&&i.options.params||{},r))}),vme(this.states,"true","1"),vme(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new _me(e,i,this.states))}),this.fallbackTransition=function vet(n,e,t){return new _me(n,{type:Jt.Transition,animation:{type:Jt.Sequence,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,r,i){return this.transitionFactories.find(o=>o.match(e,t,r,i))||null}matchStyles(e,t,r){return this.fallbackTransition.buildStyles(e,t,r)}}function vme(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}const wet=new XL;class bet{constructor(e,t,r){this.bodyNode=e,this._driver=t,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){const r=[],s=X6(this._driver,t,r,[]);if(r.length)throw function IZe(n){return new De(3503,!1)}();this._animations.set(e,s)}_buildPlayer(e,t,r){const i=e.element,s=nme(this._normalizer,e.keyframes,t,r);return this._driver.animate(i,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,r={}){const i=[],s=this._animations.get(e);let o;const a=new Map;if(s?(o=tz(this._driver,t,s,q6,$L,new Map,new Map,r,wet,i),o.forEach(u=>{const d=Rl(a,u.element,new Map);u.postStyleProps.forEach(f=>d.set(f,null))})):(i.push(function DZe(){return new De(3300,!1)}()),o=[]),i.length)throw function CZe(n){return new De(3504,!1)}();a.forEach((u,d)=>{u.forEach((f,_)=>{u.set(_,this._driver.computeStyle(d,_,Gd))})});const c=qp(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){const t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);const r=this.players.indexOf(t);r>=0&&this.players.splice(r,1)}_getPlayer(e){const t=this._playersById.get(e);if(!t)throw function SZe(n){return new De(3301,!1)}();return t}listen(e,t,r,i){const s=Y6(t,"","","");return U6(this._getPlayer(e),r,s,i),()=>{}}command(e,t,r,i){if("register"==r)return void this.register(e,i[0]);if("create"==r)return void this.create(e,t,i[0]||{});const s=this._getPlayer(e);switch(r){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}}const wme="ng-animate-queued",iz="ng-animate-disabled",Det=[],bme={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Cet={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},eu="__ng_removed";class sz{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;const r=e&&e.hasOwnProperty("value");if(this.value=function Pet(n){return n??null}(r?e.value:e),r){const{value:s,...o}=e;this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){const t=e.params;if(t){const r=this.options.params;Object.keys(t).forEach(i=>
vendor: 25,517 bytes, line 1
1{null==r[i]&&(r[i]=t[i])})}}}const zC="void",oz=new sz(zC);class Aet{constructor(e,t,r){this.id=e,this.hostElement=t,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,dc(t,this._hostClassName)}listen(e,t,r,i){if(!this._triggers.has(t))throw function AZe(n,e){return new De(3302,!1)}();if(null==r||0==r.length)throw function xZe(n){return new De(3303,!1)}();if(!function Ret(n){return"start"==n||"done"==n}(r))throw function kZe(n,e){return new De(3400,!1)}();const s=Rl(this._elementListeners,e,[]),o={name:t,phase:r,callback:i};s.push(o);const a=Rl(this._engine.statesByElement,e,new Map);return a.has(t)||(dc(e,qL),dc(e,qL+"-"+t),a.set(t,oz)),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return!this._triggers.has(e)&&(this._triggers.set(e,t),!0)}_getTrigger(e){const t=this._triggers.get(e);if(!t)throw function PZe(n){return new De(3401,!1)}();return t}trigger(e,t,r,i=!0){const s=this._getTrigger(t),o=new az(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(dc(e,qL),dc(e,qL+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t);const c=new sz(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=oz),c.value!==zC&&l.value===c.value){if(!function Net(n,e){const t=Object.keys(n),r=Object.keys(e);if(t.length!=r.length)return!1;for(let i=0;i<t.length;i++){const s=t[i];if(!e.hasOwnProperty(s)||n[s]!==e[s])return!1}return!0}(l.params,c.params)){const M=[],S=s.matchStyles(l.value,l.params,M),O=s.matchStyles(c.value,c.params,M);M.length?this._engine.reportError(M):this._engine.afterFlush(()=>{W_(e,S),pd(e,O)})}return}const f=Rl(this._engine.playersByElement,e,[]);f.forEach(M=>{M.namespaceId==this.id&&M.triggerName==t&&M.queued&&M.destroy()});let _=s.matchTransition(l.value,c.value,e,c.params),w=!1;if(!_){if(!i)return;_=s.fallbackTransition,w=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:_,fromState:l,toState:c,player:o,isFallbackTransition:w}),w||(dc(e,wme),o.onStart(()=>{kb(e,wme)})),o.onDone(()=>{let M=this.players.indexOf(o);M>=0&&this.players.splice(M,1);const S=this._engine.playersByElement.get(e);if(S){let O=S.indexOf(o);O>=0&&S.splice(O,1)}}),this.players.push(o),f.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,r)=>{this._elementListeners.set(r,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(r=>r.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const r=this._engine.driver.query(e,WL,!0);r.forEach(i=>{if(i[eu])return;const s=this._engine.fetchNamespacesByElement(i);s.size?s.forEach(o=>o.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,r,i){const s=this._engine.statesByElement.get(e),o=new Map;if(s){const a=[];if(s.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){const u=this.trigger(e,c,zC,i);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),r&&qp(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(t&&r){const i=new Set;t.forEach(s=>{const o=s.name;if(i.has(o))return;i.add(o);const l=this._triggers.get(o).fallbackTransition,c=r.get(o)||oz,u=new sz(zC),d=new az(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,t){const r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(r.totalAnimations){const s=r.players.length?r.playersByQueriedElement.get(e):[];if(s&&s.length)i=!0;else{let o=e;for(;o=o.parentNode;)if(r.statesByElement.get(o)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)r.markElementAsRemoved(this.id,e,!1,t);else{const s=e[eu];(!s||s===bme)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,t))}}insertNode(e,t){dc(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(r=>{const i=r.player;if(i.destroyed)return;const s=r.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==r.triggerName){const l=Y6(s,r.triggerName,r.fromState.value,r.toState.value);l._data=e,U6(r.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(r)}),this._queue=[],t.sort((r,i)=>{const s=r.transition.ast.depCount,o=i.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}}class xet{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,r){this.bodyNode=e,this.driver=t,this._normalizer=r,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=(i,s)=>{}}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(r=>{r.queued&&e.push(r)})}),e}createNamespace(e,t){const r=new Aet(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(r,t):(this.newHostElements.set(t,r),this.collectEnterElement(t)),this._namespaceLookup[e]=r}_balanceNamespaceList(e,t){const r=this._namespaceList,i=this.namespacesByHostElement;if(r.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){const l=i.get(a);if(l){const c=r.indexOf(l);r.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||r.unshift(e)}else r.push(e);return i.set(t,e),e}register(e,t){let r=this._namespaceLookup[e];return r||(r=this.createNamespace(e,t)),r}registerTrigger(e,t,r){let i=this._namespaceLookup[e];i&&i.register(t,r)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const r=this._fetchNamespace(e);this.namespacesByHostElement.delete(r.hostElement);const i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1),r.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,r=this.statesByElement.get(e);if(r)for(let i of r.values())if(i.namespaceId){const s=this._fetchNamespace(i.namespaceId);s&&t.add(s)}return t}trigger(e,t,r,i){if(tO(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,r,i),!0}return!1}insertNode(e,t,r,i){if(!tO(t))return;const s=t[eu];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){const o=this._fetchNamespace(e);o&&o.insertNode(t,r)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),dc(e,iz)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),kb(e,iz))}removeNode(e,t,r){if(tO(t)){const i=e?this._fetchNamespace(e):null;i?i.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r);const s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,r)}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,r,i,s){this.collectedLeaveElements.push(t),t[eu]={namespaceId:e,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,r,i,s){return tO(t)?this._fetchNamespace(e).listen(t,r,i,s):()=>{}}_buildInstruction(e,t,r,i,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,r,i,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,WL,!0);t.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,W6,!0),t.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return qp(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e[eu];if(t&&t.setForRemoval){if(e[eu]=bme,t.namespaceId){this.destroyInnerAnimations(e);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(iz)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++)dc(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const r=[];try{t=this._flushAnimations(r,e)}finally{for(let i=0;i<r.length;i++)r[i]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++)this.processLeaveNode(this.collectedLeaveElements[r]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],t.length?qp(t).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(e){throw function RZe(n){return new De(3402,!1)}()}_flushAnimations(e,t){const r=new XL,i=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(it=>{u.add(it);const ct=this.driver.query(it,".ng-animate-queued",!0);for(let kt=0;kt<ct.length;kt++)u.add(ct[kt])});const d=this.bodyNode,f=Array.from(this.statesByElement.keys()),_=Mme(f,this.collectedEnterElements),w=new Map;let M=0;_.forEach((it,ct)=>{const kt=q6+M++;w.set(ct,kt),it.forEach($t=>dc($t,kt))});const S=[],O=new Set,N=new Set;for(let it=0;it<this.collectedLeaveElements.length;it++){const ct=this.collectedLeaveElements[it],kt=ct[eu];kt&&kt.setForRemoval&&(S.push(ct),O.add(ct),kt.hasAnimation?this.driver.query(ct,".ng-star-inserted",!0).forEach($t=>O.add($t)):N.add(ct))}const j=new Map,Z=Mme(f,Array.from(O));Z.forEach((it,ct)=>{const kt=$L+M++;j.set(ct,kt),it.forEach($t=>dc($t,kt))}),e.push(()=>{_.forEach((it,ct)=>{const kt=w.get(ct);it.forEach($t=>kb($t,kt))}),Z.forEach((it,ct)=>{const kt=j.get(ct);it.forEach($t=>kb($t,kt))}),S.forEach(it=>{this.processLeaveNode(it)})});const ie=[],le=[];for(let it=this._namespaceList.length-1;it>=0;it--)this._namespaceList[it].drainQueuedTransitions(t).forEach(kt=>{const $t=kt.player,Or=kt.element;if(ie.push($t),this.collectedEnterElements.length){const Ki=Or[eu];if(Ki&&Ki.setForMove){if(Ki.previousTriggersValues&&Ki.previousTriggersValues.has(kt.triggerName)){const xh=Ki.previousTriggersValues.get(kt.triggerName),Ja=this.statesByElement.get(kt.element);if(Ja&&Ja.has(kt.triggerName)){const kh=Ja.get(kt.triggerName);kh.value=xh,Ja.set(kt.triggerName,kh)}}return void $t.destroy()}}const bo=!d||!this.driver.containsElement(d,Or),Mr=j.get(Or),ur=w.get(Or),Xn=this._buildInstruction(kt,r,ur,Mr,bo);if(Xn.errors&&Xn.errors.length)return void le.push(Xn);if(bo)return $t.onStart(()=>W_(Or,Xn.fromStyles)),$t.onDestroy(()=>pd(Or,Xn.toStyles)),void i.push($t);if(kt.isFallbackTransition)return $t.onStart(()=>W_(Or,Xn.fromStyles)),$t.onDestroy(()=>pd(Or,Xn.toStyles)),void i.push($t);const Qa=[];Xn.timelines.forEach(Ki=>{Ki.stretchStartingKeyframe=!0,this.disabledNodes.has(Ki.element)||Qa.push(Ki)}),Xn.timelines=Qa,r.append(Or,Xn.timelines),o.push({instruction:Xn,player:$t,element:Or}),Xn.queriedElements.forEach(Ki=>Rl(a,Ki,[]).push($t)),Xn.preStyleProps.forEach((Ki,xh)=>{if(Ki.size){let Ja=l.get(xh);Ja||l.set(xh,Ja=new Set),Ki.forEach((kh,Wp)=>Ja.add(Wp))}}),Xn.postStyleProps.forEach((Ki,xh)=>{let Ja=c.get(xh);Ja||c.set(xh,Ja=new Set),Ki.forEach((kh,Wp)=>Ja.add(Wp))})});if(le.length){const it=[];le.forEach(ct=>{it.push(function LZe(n,e){return new De(3505,!1)}())}),ie.forEach(ct=>ct.destroy()),this.reportError(it)}const Q=new Map,B=new Map;o.forEach(it=>{const ct=it.element;r.has(ct)&&(B.set(ct,ct),this._beforeAnimationBuild(it.player.namespaceId,it.instruction,Q))}),i.forEach(it=>{const ct=it.element;this._getPreviousPlayers(ct,!1,it.namespaceId,it.triggerName,null).forEach($t=>{Rl(Q,ct,[]).push($t),$t.destroy()})});const J=S.filter(it=>Dme(it,l,c)),oe=new Map;Eme(oe,this.driver,N,c,Gd).forEach(it=>{Dme(it,l,c)&&J.push(it)});const he=new Map;_.forEach((it,ct)=>{Eme(he,this.driver,new Set(it),l,"!")}),J.forEach(it=>{const ct=oe.get(it),kt=he.get(it);oe.set(it,new Map([...ct?.entries()??[],...kt?.entries()??[]]))});const se=[],ti=[],xn={};o.forEach(it=>{const{element:ct,player:kt,instruction:$t}=it;if(r.has(ct)){if(u.has(ct))return kt.onDestroy(()=>pd(ct,$t.toStyles)),kt.disabled=!0,kt.overrideTotalTime($t.totalTime),void i.push(kt);let Or=xn;if(B.size>1){let Mr=ct;const ur=[];for(;Mr=Mr.parentNode;){const Xn=B.get(Mr);if(Xn){Or=Xn;break}ur.push(Mr)}ur.forEach(Xn=>B.set(Xn,Or))}const bo=this._buildAnimation(kt.namespaceId,$t,Q,s,he,oe);if(kt.setRealPlayer(bo),Or===xn)se.push(kt);else{const Mr=this.playersByElement.get(Or);Mr&&Mr.length&&(kt.parentPlayer=qp(Mr)),i.push(kt)}}else W_(ct,$t.fromStyles),kt.onDestroy(()=>pd(ct,$t.toStyles)),ti.push(kt),u.has(ct)&&i.push(kt)}),ti.forEach(it=>{const ct=s.get(it.element);if(ct&&ct.length){const kt=qp(ct);it.setRealPlayer(kt)}}),i.forEach(it=>{it.parentPlayer?it.syncPlayerEvents(it.parentPlayer):it.destroy()});for(let it=0;it<S.length;it++){const ct=S[it],kt=ct[eu];if(kb(ct,$L),kt&&kt.hasAnimation)continue;let $t=[];if(a.size){let bo=a.get(ct);bo&&bo.length&&$t.push(...bo);let Mr=this.driver.query(ct,W6,!0);for(let ur=0;ur<Mr.length;ur++){let Xn=a.get(Mr[ur]);Xn&&Xn.length&&$t.push(...Xn)}}const Or=$t.filter(bo=>!bo.destroyed);Or.length?Let(this,ct,Or):this.processLeaveNode(ct)}return S.length=0,se.forEach(it=>{this.players.push(it),it.onDone(()=>{it.destroy();const ct=this.players.indexOf(it);this.players.splice(ct,1)}),it.play()}),se}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,r,i,s){let o=[];if(t){const a=this.playersByQueriedElement.get(e);a&&(o=a)}else{const a=this.playersByElement.get(e);if(a){const l=!s||s==zC;a.forEach(c=>{c.queued||!l&&c.triggerName!=i||o.push(c)})}}return(r||i)&&(o=o.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),o}_beforeAnimationBuild(e,t,r){const s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,u=c!==s,d=Rl(r,c,[]);this._getPreviousPlayers(c,u,o,a,t.toState).forEach(_=>{const w=_.getRealPlayer();w.beforeDestroy&&w.beforeDestroy(),_.destroy(),d.push(_)})}W_(s,t.fromStyles)}_buildAnimation(e,t,r,i,s,o){const a=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,f=t.timelines.map(w=>{const M=w.element;u.add(M);const S=M[eu];if(S&&S.removedBeforeQueried)return new vM(w.duration,w.delay);const O=M!==l,N=function Oet(n){const e=[];return Ime(n,e),e}((r.get(M)||Det).map(Q=>Q.getRealPlayer())).filter(Q=>!!Q.element&&Q.element===M),j=s.get(M),Z=o.get(M),ie=nme(this._normalizer,w.keyframes,j,Z),le=this._buildPlayer(w,ie,N);if(w.subTimeline&&i&&d.add(M),O){const Q=new az(e,a,M);Q.setRealPlayer(le),c.push(Q)}return le});c.forEach(w=>{Rl(this.playersByQueriedElement,w.element,[]).push(w),w.onDone(()=>function ket(n,e,t){let r=n.get(e);if(r){if(r.length){const i=r.indexOf(t);r.splice(i,1)}0==r.length&&n.delete(e)}return r}(this.playersByQueriedElement,w.element,w))}),u.forEach(w=>dc(w,lme));const _=qp(f);return _.onDestroy(()=>{u.forEach(w=>kb(w,lme)),pd(l,t.toStyles)}),d.forEach(w=>{Rl(i,w,[]).push(_)}),_}_buildPlayer(e,t,r){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,r):new vM(e.duration,e.delay)}}class az{constructor(e,t,r){this.namespaceId=e,this.triggerName=t,this.element=r,this._player=new vM,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,r)=>{t.forEach(i=>U6(e,r,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Rl(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function tO(n){return n&&1===n.nodeType}function Tme(n,e){const t=n.style.display;return n.style.display=e??"none",t}function Eme(n,e,t,r,i){const s=[];t.forEach(l=>s.push(Tme(l)));const o=[];r.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const f=e.computeStyle(c,d,i);u.set(d,f),(!f||0==f.length)&&(c[eu]=Cet,o.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>Tme(l,s[a++])),o}function Mme(n,e){const t=new Map;if(n.forEach(a=>t.set(a,[])),0==e.length)return t;const i=new Set(e),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=t.has(c)?c:i.has(c)?1:o(c),s.set(a,l),l}return e.forEach(a=>{const l=o(a);1!==l&&t.get(l).push(a)}),t}function dc(n,e){n.classList?.add(e)}function kb(n,e){n.classList?.remove(e)}function Let(n,e,t){qp(t).onDone(()=>n.processLeaveNode(e))}function Ime(n,e){for(let t=0;t<n.length;t++){const r=n[t];r instanceof fJ?Ime(r.players,e):e.push(r)}}function Dme(n,e,t){const r=t.get(n);if(!r)return!1;let i=e.get(n);return i?r.forEach(s=>i.add(s)):e.set(n,r),t.delete(n),!0}class $C{constructor(e,t,r){this._driver=t,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,s)=>{},this._transitionEngine=new xet(e.body,t,r),this._timelineEngine=new bet(e.body,t,r),this._transitionEngine.onRemovalComplete=(i,s)=>this.onRemovalComplete(i,s)}registerTrigger(e,t,r,i,s){const o=e+"-"+i;let a=this._triggerCache[o];if(!a){const l=[],u=X6(this._driver,s,l,[]);if(l.length)throw function EZe(n,e){return new De(3404,!1)}();a=function _et(n,e,t){return new yet(n,e,t)}(i,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,r,i){this._transitionEngine.insertNode(e,t,r,i)}onRemove(e,t,r){this._transitionEngine.removeNode(e,t,r)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,r,i){if("@"==r.charAt(0)){const[s,o]=rme(r);this._timelineEngine.command(s,t,o,i)}else this._transitionEngine.trigger(e,t,r,i)}listen(e,t,r,i,s){if("@"==r.charAt(0)){const[o,a]=rme(r);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,r,i,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}}class qC{static#e=this.initialStylesByElement=new WeakMap;constructor(e,t,r){this._element=e,this._startStyles=t,this._endStyles=r,this._state=0;let i=qC.initialStylesByElement.get(e);i||qC.initialStylesByElement.set(e,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&pd(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(pd(this._element,this._initialStyles),this._endStyles&&(pd(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(qC.initialStylesByElement.delete(this._element),this._startStyles&&(W_(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(W_(this._element,this._endStyles),this._endStyles=null),pd(this._element,this._initialStyles),this._state=3)}}function lz(n){let e=null;return n.forEach((t,r)=>{(function Vet(n){return"display"===n||"position"===n})(r)&&(e=e||new Map,e.set(r,t))}),e}class Cme{constructor(e,t,r,i){this.element=e,this.keyframes=t,this.options=r,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;const t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){const t=[];return e.forEach(r=>{t.push(Object.fromEntries(r))}),t}_triggerWebAnimation(e,t,r){return e.animate(this._convertKeyframesToObject(t),r)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,i)=>{"offset"!==i&&e.set(i,this._finished?r:J6(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){const t="start"===e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class Sme{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return sme(e,t)}getParentElement(e){return B6(e)}query(e,t,r){return ome(e,t,r)}computeStyle(e,t,r){return J6(e,t)}animate(e,t,r,i,s,o=[]){const l={duration:r,delay:i,fill:0==i?"both":"forwards"};s&&(l.easing=s);const c=new Map,u=o.filter(_=>_ instanceof Cme);(function WZe(n,e){return 0===n||0===e})(r,i)&&u.forEach(_=>{_.currentSnapshot.forEach((w,M)=>c.set(M,w))});let d=function zZe(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}(t).map(_=>new Map(_));d=function GZe(n,e,t){if(t.size&&e.length){let r=e[0],i=[];if(t.forEach((s,o)=>{r.has(o)||i.push(o),r.set(o,s)}),i.length)for(let s=1;s<e.length;s++){let o=e[s];i.forEach(a=>o.set(a,J6(n,a)))}}return e}(e,d,c);const f=function Fet(n,e){let t=null,r=null;return Array.isArray(e)&&e.length?(t=lz(e[0]),e.length>1&&(r=lz(e[e.length-1]))):e instanceof Map&&(t=lz(e)),t||r?new qC(n,t,r):null}(e,d);return new Cme(e,d,l,f)}}const Ame="@.disabled";
1class xme{constructor(e,t,r,i){this.namespaceId=e,this.delegate=t,this.engine=r,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,r,i=!0){this.delegate.insertBefore(e,t,r),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,r){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,r,i){this.delegate.setAttribute(e,t,r,i)}removeAttribute(e,t,r){this.delegate.removeAttribute(e,t,r)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}
1setStyle(e,t,r,i){this.delegate.setStyle(e,t,r,i)}removeStyle(e,t,r){this.delegate.removeStyle(e,t,r)}setProperty(e,t,r){"@"==t.charAt(0)&&t==Ame?this.disableAnimations(e,!!r):this.delegate.setProperty(e,t,r)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,r){return this.delegate.listen(e,t,r)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class Uet extends xme{constructor(e,t,r,i,s){super(t,r,i,s),this.factory=e,this.namespaceId=t}setProperty(e,t,r){"@"==t.charAt(0)?"."==t.charAt(1)&&t==Ame?this.disableAnimations(e,r=void 0===r||!!r):this.engine.process(this.namespaceId,e,t.slice(1),r):this.delegate.setProperty(e,t,r)}listen(e,t,r){if("@"==t.charAt(0)){const i=function jet(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let s=t.slice(1),o="";return"@"!=s.charAt(0)&&([s,o]=function Yet(n){const e=n.indexOf(".");return[n.substring(0,e),n.slice(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,r,a)})}return this.delegate.listen(e,t,r)}}class Bet{constructor(e,t,r){this.delegate=e,this.engine=t,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(i,s)=>{const o=s?.parentNode(i);o&&s.removeChild(o,i)}}createRenderer(e,t){const i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){const c=this._rendererCache;let u=c.get(i);return u||(u=new xme("",i,this.engine,()=>c.delete(i)),c.set(i,u)),u}const s=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);const a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(s,o,e,c.name,c)};return t.data.animation.forEach(a),new Uet(this,o,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,r){if(e>=0&&e<this._microtaskId)return void this._zone.run(()=>t(r));const i=this._animationCallbacksBuffer;0==i.length&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),i.push([t,r])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}let Het=(()=>{class n extends $C{constructor(t,r,i){super(t,r,i)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(r){return new(r||n)(ve(aa),ve(z6),ve($6))};static#t=this.\u0275prov=Be({token:n,factory:n.\u0275fac})}return n})();const kme=[{provide:$6,useFactory:function zet(){return new dme}},{provide:$C,useClass:Het},{provide:kA,useFactory:function $et(n,e,t){return new Bet(n,e,t)},deps:[zF,$C,vn]}],cz=[{provide:z6,useFactory:()=>new Sme},{provide:z$,useValue:"BrowserAnimations"},...kme],Pme=[{provide:z6,useClass:H6},{provide:z$,useValue:"NoopAnimations"},...kme];let qet=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?Pme:cz}}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275mod=A({type:n});static#n=this.\u0275inj=ai({providers:cz,imports:[BK]})}return n})(),Wet=(()=>{class n{static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275mod=A({type:n,bootstrap:[zGe]});static#n=this.\u0275inj=ai({providers:[b3,ER,I3,E3,f4,Phe,Vg,TR,UD,{provide:cN,useValue:globalThis.myRandomNonceValue},{provide:"SocialAuthServiceConfig",useValue:{autoLogin:!1,providers:[{id:D5.PROVIDER_ID,provider:new D5("379246607891485")}],onError:t=>{console.log(t)}}},lL,C5,mK],imports:[BK,qet,HGe,yke.initializeApp(Ge.firebase),Tke,KOe,$Be,tZe,qNe,SGe,mGe,WNe,zxe]})}return n})();(function EW(n,e,t){const r=n.\u0275cmp;r.directiveDefs=rf(e,!1),r.pipeDefs=rf(t,!0)})(lL,function(){return[sg,zg,np,rp,aw,$g,jg,Yg,vI,Hg,tp,ib,Ohe,Nhe,Fhe]},[]),cSe().bootstrapModule(Wet).catch(n=>console.error(n))},1544:function(Ee,we,$){!function(D){"use strict";D.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(I){return/^nm$/i.test(I)},meridiem:function(I,E,C){return I<12?C?"vm":"VM":C?"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(I){return I+(1===I||8===I||I>=20?"ste":"de")},week:{dow:1,doy:4}})}($(7586))},2155:function(Ee,we,$){!function(D){"use strict";var b=function(F){return 0===F?0:1===F?1:2===F?2:F%100>=3&&F%100<=10?3:F%100>=11?4:5},I={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"]},E=function(F){return function(G,de,te,be){var Ue=b(G),ft=I[F][b(G)];return 2===Ue&&(ft=ft[de?0:1]),ft.replace(/%d/i,G)}}
vendor: 16,384 bytes, line 1
1,C=["\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"];D.defineLocale("ar-dz",{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(F){return"\u0645"===F},meridiem:function(F,G,de){return F<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:E("s"),ss:E("s"),m:E("m"),mm:E("m"),h:E("h"),hh:E("h"),d:E("d"),dd:E("d"),M:E("M"),MM:E("M"),y:E("y"),yy:E("y")},postformat:function(F){return F.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}($(7586))},3583:function(Ee,we,$){!function(D){"use strict";D.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}})}($(7586))},1638:function(Ee,we,$){!function(D){"use strict";var b={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},I=function(G){return 0===G?0:1===G?1:2===G?2:G%100>=3&&G%100<=10?3:G%100>=11?4:5},E={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(G){return function(de,te,be,Ue){var ft=I(de),Xt=E[G][I(de)];return 2===ft&&(Xt=Xt[te?0:1]),Xt.replace(/%d/i,de)}},L=["\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"];D.defineLocale("ar-ly",{months:L,monthsShort:L,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(G){return"\u0645"===G},meridiem:function(G,de,te){return G<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(G){return G.replace(/\u060c/g,",")},postformat:function(G){return G.replace(/\d/g,function(de){return b[de]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}($(7586))},7823:function(Ee,we,$){!function(D){"use strict";D.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}})}($(7586))},7712:function(Ee,we,$){!function(D){"use strict";var b={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},I={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};D.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(C){return"\u0645"===C},meridiem:function(C,L,F){return C<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(C){return C.replace(/[\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(L){return I[L]}).split("").reverse().join("").replace(/[\u0661\u0662](?![\u062a\u0643])/g,function(L){return I[L]}).split("").reverse().join("").replace(/\u060c/g,",")},postformat:function(C){return C.replace(/\d/g,function(L){return b[L]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}($(7586))},8261:function(Ee,we,$){!function(D){"use strict";var b={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},I={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};D.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:"\u062d_\u0646_\u06
12b_\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(C){return"\u0645"===C},meridiem:function(C,L,F){return C<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(C){return C.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(L){return I[L]}).replace(/\u060c/g,",")},postformat:function(C){return C.replace(/\d/g,function(L){return b[L]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}($(7586))},6703:function(Ee,we,$){!function(D){"use strict";D.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}})}($(7586))},3108:function(Ee,we,$){!function(D){"use strict";var b={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},I={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},E=function(de){return 0===de?0:1===de?1:2===de?2:de%100>=3&&de%100<=10?3:de%100>=11?4:5},C={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"]},L=function(de){return function(te,be,Ue,ft){var Xt=E(te),tt=C[de][E(te)];return 2===Xt&&(tt=tt[be?0:1]),tt.replace(/%d/i,te)}},F=["\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"];D.defineLocale("ar",{months:F,monthsShort:F,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(de){return"\u0645"===de},meridiem:function(de,te,be){return de<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:L("s"),ss:L("s"),m:L("m"),mm:L("m"),h:L("h"),hh:L("h"),d:L("d"),dd:L("d"),M:L("M"),MM:L("M"),y:L("y"),yy:L("y")},preparse:function(de){return de.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(te){return I[te]}).replace(/\u060c/g,",")},postformat:function(de){return de.replace(/\d/g,function(te){return b[te]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}($(7586))},6508:function(Ee,we,$){!function(D){"use strict";var b={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"};D.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(E){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(E)},meridiem:function(E,C,L){return E<4?"gec\u0259":E<12?"s\u0259h\u0259r":E<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(E){if(0===E)return E+"-\u0131nc\u0131";var C=E%10;return E+(b[C]||b[E%100-C]||b[E>=100?100:null])},week:{dow:1,doy:7}})}($(7586))},6766:function(Ee,we,$){!function(D){"use strict";function I(C,L,F){return"m"===F?L?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===F?L?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":C+" "+function b(C,L){var F=C.split("_");return L%10==1&&L%100!=11?F[0]:L%10>=2&&L%10<=4&&(L%100<10||L%100>=20)?F[1]:F[2]}({ss:L?"\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:L?"\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:L?"\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"}[F],+C)}D.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,435 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:I,mm:I,h:I,hh:I,d:"\u0434\u0437\u0435\u043d\u044c",dd:I,M:"\u043c\u0435\u0441\u044f\u0446",MM:I,y:"\u0433\u043e\u0434",yy:I},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(C){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(C)},meridiem:function(C,L,F){return C<4?"\u043d\u043e\u0447\u044b":C<12?"\u0440\u0430\u043d\u0456\u0446\u044b":C<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(C,L){switch(L){case"M":case"d":case"DDD":case"w":case"W":return C%10!=2&&C%10!=3||C%100==12||C%100==13?C+"-\u044b":C+"-\u0456";case"D":return C+"-\u0433\u0430";default:return C}},week:{dow:1,doy:7}})}($(7586))},8564:function(Ee,we,$){!function(D){"use strict";D.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(I){var E=I%10,C=I%100;return 0===I?I+"-\u0435\u0432":0===C?I+"-\u0435\u043d":C>10&&C<20?I+"-\u0442\u0438":1===E?I+"-\u0432\u0438":2===E?I+"-\u0440\u0438":7===E||8===E?I+"-\u043c\u0438":I+"-\u0442\u0438"},week:{dow:1,doy:7}})}($(7586))},7462:function(Ee,we,$){!function(D){"use strict";D.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}})}($(7586))},3438:function(Ee,we,$){!function(D){"use strict";var b={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},I={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};D.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(C){return C.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(L){return I[L]})},postformat:function(C){return C.replace(/\d/g,function(L){return b[L]})},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(C,L){return 12===C&&(C=0),"\u09b0\u09be\u09a4"===L?C<4?C:C+12:"\u09ad\u09cb\u09b0"===L||"\u09b8\u0995\u09be\u09b2"===L?C:"\u09a6\u09c1\u09aa\u09c1\u09b0"===L?C>=3?C:C+12:"\u09ac\u09bf\u0995\u09be\u09b2"===L||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===L?C+12:void 0},meridiem:function(C,L,F){return C<4?"\u09b0\u09be\u09a4":C<6?"\u09ad\u09cb\u09b0":C<12?"\u09b8\u0995\u09be\u09b2":C<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":C<18?"\u09ac\u09bf\u0995\u09be\u09b2":C<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}($(7586))},7107:function(Ee,we,$){!function(D){"use strict";var b={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},I={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};D.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(C){return C.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(L){return I[L]})},postformat:function(C){return C.replace(/\d/g,function(L){return b[L]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(C,L){return 12===C&&(C=0),"\u09b0\u09be\u09a4"===L&&C>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===L&&C<5||"\u09ac\u09bf\u0995\u09be\u09b2"===L?C+12:C},meridiem:function(C,L,F){return C<4?"\u09b0\u09be\u09a4":C<10?"\u09b8\u0995\u09be\u09b2":C<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":C<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}($(7586))},9004:function(Ee,we,$){!function(D){"use strict";var b={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},I={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};D.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(C){return C.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(L){return I[L]})},postformat:function(C){return C.replace(/\d/g,function(L){return b[L]})},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(C,L){return 12===C&&(C=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===L&&C>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===L&&C<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===L?C+12:C},meridiem:function(C,L,F){return C<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":C<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":C<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":C<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}($(7586))},927:function(Ee,we,$){!function(D){"use strict";function b(tt,Zt,Kt){return tt+" "+function C(tt,Zt){return 2===Zt?function L(tt){var Zt={m:"v",b:"v",d:"z"};return void 0===Zt[tt.charAt(0)]?tt:Zt[tt.charAt(0)]+tt.substring(1)}(tt):tt}({mm:"munutenn",MM:"miz",dd:"devezh"}[Kt],tt)}function E(tt){return tt>9?E(tt%10):tt}var F=[/^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],G=/^(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,ft=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];D.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:ft,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:ft,monthsRegex:G,monthsShortRegex:G,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:F,longMonthsParse:F,shortMonthsParse:F,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:b,h:"un eur",hh:"%d eur",d:"un devezh",dd:b,M:"ur miz",MM:b,y:"ur bloaz",yy:function I(tt){switch(E(tt)){case 1:case 3:case 4:case 5:case 9:return tt+" bloaz";default:return tt+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(tt){return tt+(1===tt?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(tt){return"g.m."===tt},meridiem:function(tt,Zt,Kt){return tt<12?"a.m.":"g.m."}})}($(7586))},7768:function(Ee,we,$){!function(D){"use strict";function I(C,L,F){var G=C+" ";switch(F){case"ss":return G+(1===C?"sekunda":2===C||3===C||4===C?"sekunde":"sekundi");case"mm":return G+(1===C?"minuta":2===C||3===C||4===C?"minute":"minuta");case"h":return"jedan sat";case"hh":return G+(1===C?"sat":2===C||3===C||4===C?"sata":"sati");case"dd":return G+(1===C?"dan":"dana");case"MM":return G+(1===C?"mjesec":2===C||3===C||4===C?"mjeseca":"mjeseci");case"yy":return G+(1===C?"godina":2===C||3===C||4===C?"godine":"godina")}}D.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:I,m:function b(C,L,F,G){if("m"===F)return L?"jedna minuta":G?"jednu minutu":"jedne minute"}
vendor: 8,361 bytes, line 1
1,mm:I,h:I,hh:I,d:"dan",dd:I,M:"mjesec",MM:I,y:"godinu",yy:I},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}($(7586))},6291:function(Ee,we,$){!function(D){"use strict";D.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:"%d 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(I,E){var C=1===I?"r":2===I?"n":3===I?"r":4===I?"t":"\xe8";return("w"===E||"W"===E)&&(C="a"),I+C},week:{dow:1,doy:4}})}($(7586))},5301:function(Ee,we,$){!function(D){"use strict";var b={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/},I="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),E=[/^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],C=/^(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 L(de){return de>1&&de<5&&1!=~~(de/10)}function F(de,te,be,Ue){var ft=de+" ";switch(be){case"s":return te||Ue?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return te||Ue?ft+(L(de)?"sekundy":"sekund"):ft+"sekundami";case"m":return te?"minuta":Ue?"minutu":"minutou";case"mm":return te||Ue?ft+(L(de)?"minuty":"minut"):ft+"minutami";case"h":return te?"hodina":Ue?"hodinu":"hodinou";case"hh":return te||Ue?ft+(L(de)?"hodiny":"hodin"):ft+"hodinami";case"d":return te||Ue?"den":"dnem";case"dd":return te||Ue?ft+(L(de)?"dny":"dn\xed"):ft+"dny";case"M":return te||Ue?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return te||Ue?ft+(L(de)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):ft+"m\u011bs\xedci";case"y":return te||Ue?"rok":"rokem";case"yy":return te||Ue?ft+(L(de)?"roky":"let"):ft+"lety"}}D.defineLocale("cs",{months:b,monthsShort:I,monthsRegex:C,monthsShortRegex:C,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:E,longMonthsParse:E,shortMonthsParse:E,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:F,ss:F,m:F,mm:F,h:F,hh:F,d:F,dd:F,M:F,MM:F,y:F,yy:F},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}($(7586))},6666:function(Ee,we,$){!function(D){"use strict";D.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(I){return I+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(I)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(I)?"\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}})}($(7586))},5163:function(Ee,we,$){!function(D){"use strict";
vendor: 4,905 bytes, line 1
1D.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(I){var C="";return I>20?C=40===I||50===I||60===I||80===I||100===I?"fed":"ain":I>0&&(C=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][I]),I+C},week:{dow:1,doy:4}})}($(7586))},7360:function(Ee,we,$){!function(D){"use strict";D.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}})}($(7586))},3248:function(Ee,we,$){!function(D){"use strict";function b(E,C,L,F){var G={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[E+" Tage",E+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[E+" Monate",E+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[E+" Jahre",E+" Jahren"]};return C?G[L][0]:G[L][1]}D.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:b,mm:"%d Minuten",h:b,hh:"%d Stunden",d:b,dd:b,w:b,ww:"%d Wochen",M:b,MM:b,y:b,yy:b},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}($(7586))},3222:function(Ee,we,$){!function(D){"use strict";function b(E,C,L,F){var G={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[E+" Tage",E+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[E+" Monate",E+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[E+" Jahre",E+" Jahren"]};return C?G[L][0]:G[L][1]}D.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:b,mm:"%d Minuten",h:b,hh:"%
1d Stunden",d:b,dd:b,w:b,ww:"%d Wochen",M:b,MM:b,y:b,yy:b},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}($(7586))},5932:function(Ee,we,$){!function(D){"use strict";function b(E,C,L,F){var G={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[E+" Tage",E+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[E+" Monate",E+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[E+" Jahre",E+" Jahren"]};return C?G[L][0]:G[L][1]}D.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:b,mm:"%d Minuten",h:b,hh:"%d Stunden",d:b,dd:b,w:b,ww:"%d Wochen",M:b,MM:b,y:b,yy:b},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}($(7586))},6405:function(Ee,we,$){!function(D){"use strict";var b=["\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"],I=["\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"];D.defineLocale("dv",{months:b,monthsShort:b,weekdays:I,weekdaysShort:I,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(C){return"\u0789\u078a"===C},meridiem:function(C,L,F){return C<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(C){return C.replace(/\u060c/g,",")},postformat:function(C){return C.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}($(7586))},718:function(Ee,we,$){!function(D){"use strict";
vendor: 4,730 bytes, line 1
1D.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(E,C){return E?"string"==typeof C&&/D/.test(C.substring(0,C.indexOf("MMMM")))?this._monthsGenitiveEl[E.month()]:this._monthsNominativeEl[E.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(E,C,L){return E>11?L?"\u03bc\u03bc":"\u039c\u039c":L?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(E){return"\u03bc"===(E+"").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(E,C){var L=this._calendarEl[E],F=C&&C.hours();return function b(E){return typeof Function<"u"&&E instanceof Function||"[object Function]"===Object.prototype.toString.call(E)}(L)&&(L=L.apply(C)),L.replace("{}",F%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}})}($(7586))},6319:function(Ee,we,$){!function(D){"use strict";D.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,489 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(I){var E=I%10;return I+(1==~~(I%100/10)?"th":1===E?"st":2===E?"nd":3===E?"rd":"th")},week:{dow:0,doy:4}})}($(7586))},597:function(Ee,we,$){!function(D){"use strict";D.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(I){var E=I%10;return I+(1==~~(I%100/10)?"th":1===E?"st":2===E?"nd":3===E?"rd":"th")}})}($(7586))},1800:function(Ee,we,$){!function(D){"use strict";D.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(I){var E=I%10;return I+(1==~~(I%100/10)?"th":1===E?"st":2===E?"nd":3===E?"rd":"th")},week:{dow:1,doy:4}})}($(7586))},807:function(Ee,we,$){!function(D){"use strict";D.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(I){var E=I%10;return I+(1==~~(I%100/10)?"th":1===E?"st":2===E?"nd":3===E?"rd":"th")},week:{dow:1,doy:4}})}($(7586))},5960:function(Ee,we,$){!function(D){"use strict";D.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(I){var E=I%10;return I+(1==~~(I%100/10)?"th":1===E?"st":2===E?"nd":3===E?"rd":"th")}})}($(7586))},4418:function(Ee,we,$){!function(D){"use strict";D.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(I){var E=I%10;return I+(1==~~(I%100/10)?"th":1===E?"st":2===E?"nd":3===E?"rd":"th")},week:{dow:0,doy:6}})}($(7586))},6865:function(Ee,we,$){!function(D){"use strict";D.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(I){var E=I%10;return I+(1==~~(I%100/10)?"th":1===E?"st":2===E?"nd":3===E?"rd":"th")},week:{dow:1,doy:4}})}($(7586))},2647:function(Ee,we,$){!function(D){"use strict";D.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(I){var E=I%10;return I+(1==~~(I%100/10)?"th":1===E?"st":2===E?"nd":3===E?"rd":"th")},week:{dow:1,doy:4}})}($(7586))},1931:function(Ee,we,$){!function(D){"use strict";D.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(I){return"p"===I.charAt(0).toLowerCase()},meridiem:function(I,E,C){return I>11?C?"p.t.m.":"P.T.M.":C?"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}})}($(7586))},1805:function(Ee,we,$){!function(D){"use strict";var b="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),I="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),E=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],C=/^(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;D.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(F,G){return F?/-MMM-/.test(G)?I[F.month()]:b[F.month()]:b},monthsRegex:C,monthsShortRegex:C,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:E,longMonthsParse:E,shortMonthsParse:E,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}})}($(7586))},3445:function(Ee,we,$){!function(D){"use strict";var b="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),I="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),E=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],C=/^(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;D.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(F,G){return F?/-MMM-/.test(G)?I[F.month()]:b[F.month()]:b},monthsRegex:C,monthsShortRegex:C,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:E,longMonthsParse:E,shortMonthsParse:E,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"})}($(7586))},1516:function(Ee,we,$){!function(D){"use strict";var b="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),I="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),E=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],C=/^(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;D.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(F,G){return F?/-MMM-/.test(G)?I[F.month()]:b[F.month()]:b},monthsRegex:C,monthsShortRegex:C,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:E,longMonthsParse:E,shortMonthsParse:E,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}})}($(7586))},6679:function(Ee,we,$){!function(D){"use strict";var b="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),I="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),E=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],C=/^(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;D.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(F,G){return F?/-MMM-/.test(G)?I[F.month()]:b[F.month()]:b},monthsRegex:C,monthsShortRegex:C,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:E,longMonthsParse:E,shortMonthsParse:E,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"})}($(7586))},8150:function(Ee,we,$){!function(D){"use strict";function b(E,C,L,F){var G={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[E+"sekundi",E+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[E+" minuti",E+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[E+" tunni",E+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[E+" kuu",E+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[E+" aasta",E+" aastat"]};return C?G[L][2]?G[L][2]:G[L][1]:F?G[L][0]:G[L][1]}D.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:b,ss:b,m:b,mm:b,h:b,hh:b,d:b,dd:"%d p\xe4eva",M:b,MM:b,y:b,yy:b},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}($(7586))},757:function(Ee,we,$){!function(D){"use strict";D.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}})}($(7586))},5742:function(Ee,we,$){!function(D){"use strict";var b={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},I={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};D.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(C){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(C)},meridiem:function(C,L,F){return C<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,528 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(C){return C.replace(/[\u06f0-\u06f9]/g,function(L){return I[L]}).replace(/\u060c/g,",")},postformat:function(C){return C.replace(/\d/g,function(L){return b[L]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}($(7586))},3958:function(Ee,we,$){!function(D){"use strict";var b="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),I=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",b[7],b[8],b[9]];function E(F,G,de,te){var be="";switch(de){case"s":return te?"muutaman sekunnin":"muutama sekunti";case"ss":be=te?"sekunnin":"sekuntia";break;case"m":return te?"minuutin":"minuutti";case"mm":be=te?"minuutin":"minuuttia";break;case"h":return te?"tunnin":"tunti";case"hh":be=te?"tunnin":"tuntia";break;case"d":return te?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":be=te?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return te?"kuukauden":"kuukausi";case"MM":be=te?"kuukauden":"kuukautta";break;case"y":return te?"vuoden":"vuosi";case"yy":be=te?"vuoden":"vuotta"}return function C(F,G){return F<10?G?I[F]:b[F]:F}(F,te)+" "+be}D.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:E,ss:E,m:E,mm:E,h:E,hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}($(7586))},6720:function(Ee,we,$){!function(D){"use strict";D.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(I){return I},week:{dow:1,doy:4}})}($(7586))},8352:function(Ee,we,$){!function(D){"use strict";D.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}})}($(7586))},2096:function(Ee,we,$){!function(D){"use strict";D.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(I,E){switch(E){default:case"M":case"Q":case"D":case"DDD":case"d":return I+(1===I?"er":"e");case"w":case"W":return I+(1===I?"re":"e")}}})}($(7586))},5759:function(Ee,we,$){!function(D){"use strict";D.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(I,E){switch(E){default:case"M":case"Q":case"D":case"DDD":case"d":return I+(1===I?"er":"e");case"w":case"W":return I+(1===I?"re":"e")}},week:{dow:1,doy:4}})}($(7586))},4059:function(Ee,we,$){!function(D){"use strict";var E=/(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,C=[/^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];D.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:E,monthsShortRegex:E,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:C,longMonthsParse:C,shortMonthsParse:C,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(F,G){switch(G){case"D":return F+(1===F?"er":"");default:case"M":case"Q":case"DDD":case"d":return F+(1===F?"er":"e");case"w":case"W":return F+(1===F?"re":"e")}},week:{dow:1,doy:4}})}($(7586))},5958:function(Ee,we,$){!function(D){"use strict";var b="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),I="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");D.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(C,L){return C?/-MMM-/.test(L)?I[C.month()]:b[C.month()]:b},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(C){return C+(1===C||8===C||C>=20?"ste":"de")},week:{dow:1,doy:4}})}($(7586))},4143:function(Ee,we,$){!function(D){"use strict";D.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(G){return G+(1===G?"d":G%10==2?"na":"mh")},week:{dow:1,doy:4}})}($(7586))},7028:function(Ee,we,$){!function(D){"use strict";D.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(G){return G+(1===G?"d":G%10==2?"na":"mh")},week:{dow:1,doy:4}})}($(7586))},428:function(Ee,we,$){!function(D){"use strict";D.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: 11,997 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(I){return 0===I.indexOf("un")?"n"+I:"en "+I},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}})}($(7586))},6861:function(Ee,we,$){!function(D){"use strict";function b(E,C,L,F){var G={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:[E+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",E+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[E+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",E+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[E+" \u0935\u0930\u093e\u0902\u0928\u0940",E+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[E+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",E+" \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:[E+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",E+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[E+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",E+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return F?G[L][0]:G[L][1]}D.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:b,ss:b,m:b,mm:b,h:b,hh:b,d:b,dd:b,M:b,MM:b,y:b,yy:b},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(E,C){return"D"===C?E+"\u0935\u0947\u0930":E},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(E,C){return 12===E&&(E=0),"\u0930\u093e\u0924\u0940"===C?E<4?E:E+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===C?E:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===C?E>12?E:E+12:"\u0938\u093e\u0902\u091c\u0947"===C?E+12:void 0},meridiem:function(E,C,L){return E<4?"\u0930\u093e\u0924\u0940":E<12?"\u0938\u0915\u093e\u0933\u0940\u0902":E<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":E<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}($(7586))},7718:function(Ee,we,$){!function(D){"use strict";function b(E,C,L,F){var G={s:["thoddea sekondamni","thodde sekond"],ss:[E+" sekondamni",E+" sekond"],m:["eka mintan","ek minut"],mm:[E+" mintamni",E+" mintam"],h:["eka voran","ek vor"],hh:[E+" voramni",E+" voram"],d:["eka disan","ek dis"],dd:[E+" disamni",E+" dis"],M:["eka mhoinean","ek mhoino"],MM:[E+" mhoineamni",E+" mhoine"],y:["eka vorsan","ek voros"],yy:[E+" vorsamni",E+" vorsam"]};return F?G[L][0]:G[L][1]}D.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:b,ss:b,m:b,mm:b,h:b,hh:b,d:b,dd:b,M:b,MM:b,y:b,yy:b},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(E,C){return"D"===C?E+"er":E},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(E,C){return 12===E&&(E=0),"rati"===C?E<4?E:E+12:"sokallim"===C?E:"donparam"===C?E>12?E:E+12:"sanje"===C?E+12:void 0},meridiem:function(E,C,L){return E<4?"rati":E<12?"sokallim":E<16?"donparam":E<20?"sanje":"rati"}})}($(7586))},6827:function(Ee,we,$){!function(D){"use strict";var b={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},I={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};D.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:"%d \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(C){return C.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(L){return I[L]})},postformat:function(C){return C.replace(/\d/g,function(L){return b[L]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(C,L){return 12===C&&(C=0),"\u0ab0\u0abe\u0aa4"===L?C<4?C:C+12:"\u0ab8\u0ab5\u0abe\u0ab0"===L?C:"\u0aac\u0aaa\u0acb\u0ab0"===L?C>=10?C:C+12:"\u0ab8\u0abe\u0a82\u0a9c"===L?C+12:void 0},meridiem:function(C,L,F){return C<4?"\u0ab0\u0abe\u0aa4":C<10?"\u0ab8\u0ab5\u0abe\u0ab0":C<17?"\u0aac\u0aaa\u0acb\u0ab0":C<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}($(7586))},1936:function(Ee,we,$){!function(D){"use strict";D.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(I){return 2===I?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":I+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(I){return 2===I?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":I+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(I){return 2===I?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":I+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(I){return 2===I?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":I%10==0&&10!==I?I+" \u05e9\u05e0\u05d4":I+" \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(I){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(I)},meridiem:function(I,E,C){return I<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":I<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":I<12?C?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":I<18?C?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}($(7586))},1332:function(Ee,we,$){!function(D){"use strict";var b={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},I={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},E=[/^\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];D.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:E,longMonthsParse:E,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(F){return F.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(G){return I[G]})},postformat:function(F){return F.replace(/\d/g,function(G){return b[G]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(F,G){return 12===F&&(F=0),"\u0930\u093e\u0924"===G?F<4?F:F+12:"\u0938\u0941\u092c\u0939"===G?F:"\u0926\u094b\u092a\u0939\u0930"===G?F>=10?F:F+12:"\u0936\u093e\u092e"===G?F+12:void 0},meridiem:function(F,G,de){return F<4?"\u0930\u093e\u0924":F<10?"\u0938\u0941\u092c\u0939":F<17?"\u0926\u094b\u092a\u0939\u0930":F<20?"\u093
16\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}($(7586))},1957:function(Ee,we,$){!function(D){"use strict";function b(E,C,L){var F=E+" ";switch(L){case"ss":return F+(1===E?"sekunda":2===E||3===E||4===E?"sekunde":"sekundi");case"m":return C?"jedna minuta":"jedne minute";case"mm":return F+(1===E?"minuta":2===E||3===E||4===E?"minute":"minuta");case"h":return C?"jedan sat":"jednog sata";case"hh":return F+(1===E?"sat":2===E||3===E||4===E?"sata":"sati");case"dd":return F+(1===E?"dan":"dana");case"MM":return F+(1===E?"mjesec":2===E||3===E||4===E?"mjeseca":"mjeseci");case"yy":return F+(1===E?"godina":2===E||3===E||4===E?"godine":"godina")}}D.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:b,m:b,mm:b,h:b,hh:b,d:"dan",dd:b,M:"mjesec",MM:b,y:"godinu",yy:b},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}($(7586))},8928:function(Ee,we,$){!function(D){"use strict";var b="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function I(L,F,G,de){var te=L;switch(G){case"s":return de||F?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return te+(de||F)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(de||F?" perc":" perce");case"mm":return te+(de||F?" perc":" perce");case"h":return"egy"+(de||F?" \xf3ra":" \xf3r\xe1ja");case"hh":return te+(de||F?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(de||F?" nap":" napja");case"dd":return te+(de||F?" nap":" napja");case"M":return"egy"+(de||F?" h\xf3nap":" h\xf3napja");case"MM":return te+(de||F?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(de||F?" \xe9v":" \xe9ve");case"yy":return te+(de||F?" \xe9v":" \xe9ve")}return""}function E(L){return(L?"":"[m\xfalt] ")+"["+b[this.day()]+"] LT[-kor]"}D.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(L){return"u"===L.charAt(1).toLowerCase()},meridiem:function(L,F,G){return L<12?!0===G?"de":"DE":!0===G?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return E.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return E.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:I,ss:I,m:I,mm:I,h:I,hh:I,d:I,dd:I,M:I,MM:I,y:I,yy:I},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}($(7586))},6215:function(Ee,we,$){!function(D){"use strict";D.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(I){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(I)},meridiem:function(I){return I<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":
vendor: 4,555 bytes, line 1
1I<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":I<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(I,E){switch(E){case"DDD":case"w":case"W":case"DDDo":return 1===I?I+"-\u056b\u0576":I+"-\u0580\u0564";default:return I}},week:{dow:1,doy:7}})}($(7586))},586:function(Ee,we,$){!function(D){"use strict";D.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(I,E){return 12===I&&(I=0),"pagi"===E?I:"siang"===E?I>=11?I:I+12:"sore"===E||"malam"===E?I+12:void 0},meridiem:function(I,E,C){return I<11?"pagi":I<15?"siang":I<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}})}($(7586))},211:function(Ee,we,$){!function(D){"use strict";function b(C){return C%100==11||C%10!=1}function I(C,L,F,G){var de=C+" ";switch(F){case"s":return L||G?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return b(C)?de+(L||G?"sek\xfandur":"sek\xfandum"):de+"sek\xfanda";case"m":return L?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return b(C)?de+(L||G?"m\xedn\xfatur":"m\xedn\xfatum"):L?de+"m\xedn\xfata":de+"m\xedn\xfatu";case"hh":return b(C)?de+(L||G?"klukkustundir":"klukkustundum"):de+"klukkustund";case"d":return L?"dagur":G?"dag":"degi";case"dd":return b(C)?L?de+"dagar":de+(G?"daga":"d\xf6gum"):L?de+"dagur":de+(G?"dag":"degi");case"M":return L?"m\xe1nu\xf0ur":G?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return b(C)?L?de+"m\xe1nu\xf0ir":de+(G?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):L?de+"m\xe1nu\xf0ur":de+(G?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return L||G?"\xe1r":"\xe1ri";case"yy":return b(C)?de+(L||G?"\xe1r":"\xe1rum"):de+(L||G?"\xe1r":"\xe1ri")}}D.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:I,ss:I,m:I,mm:I,h:"klukkustund",hh:I,d:I,dd:I,M:I,MM:I,y:I,yy:I},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}($(7586))},2340:function(Ee,we,$){!function(D){"use strict";D.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(I){return(/^[0-9].+$/.test(I)?"tra":"in")+" "+I},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",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}})}($(7586))},170:function(Ee,we,$){!function(D){"use strict";D.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:"%d 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}})}($(7586))},9770:function(Ee,we,$){!function(D){"use strict";D.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(I,E){return"\u5143"===E[1]?1:parseInt(E[1]||I,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(I){return"\u5348\u5f8c"===I},meridiem:function(I,E,C){return I<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(I){return I.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(I){return this.week()!==I.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(I,E){switch(E){case"y":return 1===I?"\u5143\u5e74":I+"\u5e74";case"d":case"D":case"DDD":return I+"\u65e5";default:return I}},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",
vendor: 4,128 bytes, line 1
1yy:"%d\u5e74"}})}($(7586))},3875:function(Ee,we,$){!function(D){"use strict";D.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(I,E){return 12===I&&(I=0),"enjing"===E?I:"siyang"===E?I>=11?I:I+12:"sonten"===E||"ndalu"===E?I+12:void 0},meridiem:function(I,E,C){return I<11?"enjing":I<15?"siyang":I<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}})}($(7586))},9499:function(Ee,we,$){!function(D){"use strict";D.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:"\u10d9\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(I){return I.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(E,C,L){return"\u10d8"===L?C+"\u10e8\u10d8":C+L+"\u10e8\u10d8"})},past:function(I){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(I
vendor: 5,040 bytes, line 1
1)?I.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(I)?I.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):I},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(I){return 0===I?I:1===I?I+"-\u10da\u10d8":I<20||I<=100&&I%20==0||I%100==0?"\u10db\u10d4-"+I:I+"-\u10d4"},week:{dow:1,doy:7}})}($(7586))},3573:function(Ee,we,$){!function(D){"use strict";var b={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"};D.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(E){return E+(b[E]||b[E%10]||b[E>=100?100:null])},week:{dow:1,doy:7}})}($(7586))},8807:function(Ee,we,$){!function(D){"use strict";var b={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},I={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};D.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(C){return"\u179b\u17d2\u1784\u17b6\u1785"===C},meridiem:function(C,L,F){return C<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(C){return C.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(L){return I[L]})},postformat:function(C){return C.replace(/\d/g,function(L){return b[L]})},week:{dow:1,doy:4}})}($(7586))},5082:function(Ee,we,$){!function(D){"use strict";var b={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},I={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};D.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(C){return C.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(L){return I[L]})},postformat:function(C){return C.replace(/\d/g,function(L){return b[L]})},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(C,L){return 12===C&&(C=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===L?C<4?C:C+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===L?C:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===L?C>=10?C:C+12:"\u0cb8\u0c82\u0c9c\u0cc6"===L?C+12:void 0},meridiem:function(C,L,F){return C<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":C<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":C<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":C<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(C){return C+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}($(7586))},137:function(Ee,we,$){!function(D){"use strict";D.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(I,E){switch(E){case"d":case"D":case"DDD":return I+"\uc77c";case"M":return I+"\uc6d4";case"w":case"W":return I+"\uc8fc";default:return I}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(I){return"\uc624\ud6c4"===I},meridiem:function(I,E,C){return I<12?"\uc624\uc804":"\uc624\ud6c4"}})}($(7586))},3744:function(Ee,we,$){!function(D){"use strict";function b(C,L,F,G){var de={s:["\xe7end san\xeeye","\xe7end san\xeeyeyan"],ss:[C+" san\xeeye",C+" san\xeeyeyan"],m:["deq\xeeqeyek","deq\xeeqeyek\xea"],mm:[C+" deq\xeeqe",C+" deq\xeeqeyan"],h:["saetek","saetek\xea"],hh:[C+" saet",C+" saetan"],d:["rojek","rojek\xea"],dd:[C+" roj",C+" rojan"],w:["hefteyek","hefteyek\xea"],ww:[C+" hefte",C+" hefteyan"],M:["mehek","mehek\xea"],MM:[C+" meh",C+" mehan"],y:["salek","salek\xea"],yy:[C+" sal",C+" salan"]};return L?de[F][0]:de[F][1]}D.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(C,L,F){return C<12?F?"b
1n":"BN":F?"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"},relativeTime:{future:"di %s de",past:"ber\xee %s",s:b,ss:b,m:b,mm:b,h:b,hh:b,d:b,dd:b,w:b,ww:b,M:b,MM:b,y:b,yy:b},dayOfMonthOrdinalParse:/\d{1,2}(?:y\xea|\xea|\.)/,ordinal:function(C,L){var F=L.toLowerCase();return F.includes("w")||F.includes("m")?C+".":C+function I(C){var L=(C=""+C).substring(C.length-1),F=C.length>1?C.substring(C.length-2):"";return 12==F||13==F||"2"!=L&&"3"!=L&&"50"!=F&&"70"!=L&&"80"!=L?"\xea":"y\xea"}(C)},week:{dow:1,doy:4}})}($(7586))},111:function(Ee,we,$){!function(D){"use strict";var b={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},I={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},E=["\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"];D.defineLocale("ku",{months:E,monthsShort:E,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(L){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(L)},meridiem:function(L,F,G){return L<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(L){return L.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(F){return I[F]}).replace(/\u060c/g,",")},postformat:function(L){return L.replace(/\d/g,function(F){return b[F]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}($(7586))},9187:function(Ee,we,$){!function(D){"use strict";var b={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"};D.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(E){return E+(b[E]||b[E%10]||b[E>=100?100:null])},week:{dow:1,doy:7}})}($(7586))},5969:function(Ee,we,$){!function(D){"use strict";function b(F,G,de,te){var be={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 G?be[de][0]:be[de][1]}function C(F){if(F=parseInt(F,10),isNaN(F))return!1;if(F<0)return!0;
vendor: 4,670 bytes, line 1
1if(F<10)return 4<=F&&F<=7;if(F<100){var G=F%10;return C(0===G?F/10:G)}if(F<1e4){for(;F>=10;)F/=10;return C(F)}return C(F/=1e3)}D.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 I(F){return C(F.substr(0,F.indexOf(" ")))?"a "+F:"an "+F},past:function E(F){return C(F.substr(0,F.indexOf(" ")))?"viru "+F:"virun "+F},s:"e puer Sekonnen",ss:"%d Sekonnen",m:b,mm:"%d Minutten",h:b,hh:"%d Stonnen",d:b,dd:"%d Deeg",M:b,MM:"%d M\xe9int",y:b,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}($(7586))},3526:function(Ee,we,$){!function(D){"use strict";D.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(I){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===I},meridiem:function(I,E,C){return I<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(I){return"\u0e97\u0eb5\u0ec8"+I}})}($(7586))},411:function(Ee,we,$){!function(D){"use strict";var b={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 E(de,te,be,Ue){return te?L(be)[0]:Ue?L(be)[1]:L(be)[2]}function C(de){return de%10==0||de>10&&de<20}function L(de){return b[de].split("_")}function F(de,te,be,Ue){var ft=de+" ";return 1===de?ft+E(0,te,be[0],Ue):te?ft+(C(de)?L(be)[1]:L(be)[0]):Ue?ft+L(be)[1]:ft+(C(de)?L(be)[1]:L(be)[2])}D.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 I(de,te,be,Ue){return te?"kelios sekund\u0117s":Ue?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:F,m:E,mm:F,h:E,hh:F,d:E,dd:F,M:E,MM:F,y:E,yy:F},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(de){return de+"-oji"},week:{dow:1,doy:4}})}($(7586))},2621:function(Ee,we,$){!function(D){"use strict";var b={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 I(G,de,te){return te?de%10==1&&de%100!=11?G[2]:G[3]:de%10==1&&de%100!=11?G[0]:G[1]}function E(G,de,te){return G+" "+I(b[te],G,de)}function C(G,de,te){return I(b[te],G,de)}D.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 L(G,de){return de?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:E,m:C,mm:E,h:C,hh:E,d:C,dd:E,M:C,MM:E,y:C,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}($(7586))},5869:function(Ee,we,$){!function(D){"use strict";var b={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(E,C){return 1===E?C[0]:E>=2&&E<=4?C[1]:C[2]}
vendor: 4,289 bytes, line 1
1,translate:function(E,C,L){var F=b.words[L];return 1===L.length?C?F[0]:F[1]:E+" "+b.correctGrammaticalCase(E,F)}};D.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:b.translate,m:b.translate,mm:b.translate,h:b.translate,hh:b.translate,d:"dan",dd:b.translate,M:"mjesec",MM:b.translate,y:"godinu",yy:b.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}($(7586))},5881:function(Ee,we,$){!function(D){"use strict";D.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:"%d 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}})}($(7586))},2391:function(Ee,we,$){!function(D){"use strict";D.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_\u
1043fo_\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(I){var E=I%10,C=I%100;return 0===I?I+"-\u0435\u0432":0===C?I+"-\u0435\u043d":C>10&&C<20?I+"-\u0442\u0438":1===E?I+"-\u0432\u0438":2===E?I+"-\u0440\u0438":7===E||8===E?I+"-\u043c\u0438":I+"-\u0442\u0438"},week:{dow:1,doy:7}})}($(7586))},1126:function(Ee,we,$){!function(D){"use strict";D.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(I,E){return 12===I&&(I=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===E&&I>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===E||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===E?I+12:I},meridiem:function(I,E,C){return I<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":I<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":I<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":I<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}($(7586))},4892:function(Ee,we,$){!function(D){"use strict";function b(E,C,L,F){switch(L){case"s":return C?"\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 E+(C?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return E+(C?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return E+(C?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return E+(C?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return E+(C?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return E+(C?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return E}}D.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(E){return"\u04ae\u0425"===E}
vendor: 10,347 bytes, line 1
1,meridiem:function(E,C,L){return E<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:b,ss:b,m:b,mm:b,h:b,hh:b,d:b,dd:b,M:b,MM:b,y:b,yy:b},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(E,C){switch(C){case"d":case"D":case"DDD":return E+" \u04e9\u0434\u04e9\u0440";default:return E}}})}($(7586))},9080:function(Ee,we,$){!function(D){"use strict";var b={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},I={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function E(L,F,G,de){var te="";if(F)switch(G){case"s":te="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":te="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":te="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":te="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":te="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":te="%d \u0924\u093e\u0938";break;case"d":te="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":te="%d \u0926\u093f\u0935\u0938";break;case"M":te="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":te="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":te="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":te="%d \u0935\u0930\u094d\u0937\u0947"}else switch(G){case"s":te="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":te="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":te="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":te="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":te="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":te="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":te="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":te="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":te="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":te="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":te="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":te="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return te.replace(/%d/i,L)}D.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:E,ss:E,m:E,mm:E,h:E,hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},preparse:function(L){return L.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(F){return I[F]})},postformat:function(L){return L.replace(/\d/g,function(F){return b[F]})},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(L,F){return 12===L&&(L=0),"\u092a\u0939\u093e\u091f\u0947"===F||"\u0938\u0915\u093e\u0933\u0940"===F?L:"\u0926\u0941\u092a\u093e\u0930\u0940"===F||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===F||"\u0930\u093e\u0924\u094d\u0930\u0940"===F?L>=12?L:L+12:void 0},meridiem:function(L,F,G){return L>=0&&L<6?"\u092a\u0939\u093e\u091f\u0947":L<12?"\u0938\u0915\u093e\u0933\u0940":L<17?"\u0926\u0941\u092a\u093e\u0930\u0940":L<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}($(7586))},5950:function(Ee,we,$){!function(D){"use strict";D.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(I,E){return 12===I&&(I=0),"pagi"===E?I:"tengahari"===E?I>=11?I:I+12:"petang"===E||"malam"===E?I+12:void 0},meridiem:function(I,E,C){return I<11?"pagi":I<15?"tengahari":I<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}})}($(7586))},399:function(Ee,we,$){!function(D){"use strict";D.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(I,E){return 12===I&&(I=0),"pagi"===E?I:"tengahari"===E?I>=11?I:I+12:"petang"===E||"malam"===E?I+12:void 0},meridiem:function(I,E,C){return I<11?"pagi":I<15?"tengahari":I<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}})}($(7586))},9902:function(Ee,we,$){!function(D){"use strict";D.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}})}($(7586))},2985:function(Ee,we,$){!function(D){"use strict";var b={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},I={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};D.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:"\u
11010\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(C){return C.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(L){return I[L]})},postformat:function(C){return C.replace(/\d/g,function(L){return b[L]})},week:{dow:1,doy:4}})}($(7586))},7859:function(Ee,we,$){!function(D){"use strict";D.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}})}($(7586))},3642:function(Ee,we,$){!function(D){"use strict";var b={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},I={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};D.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(C){return C.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(L){return I[L]})},postformat:function(C){return C.replace(/\d/g,function(L){return b[L]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(C,L){return 12===C&&(C=0),"\u0930\u093e\u0924\u093f"===L?C<4?C:C+12:"\u092c\u093f\u0939\u093e\u0928"===L?C:"\u0926\u093f\u0909\u0901\u0938\u094b"===L?C>=10?C:C+12:"\u0938\u093e\u0901\u091d"===L?C+12:void 0},meridiem:function(C,L,F){return C<3?"\u0930\u093e\u0924\u093f":C<12?"\u092c\u093f\u0939\u093e\u0928":C<16?"\u0926\u093f\u0909\u0901\u0938\u094b":C<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}})}($(7586))},9875:function(Ee,we,$){!function(D){"use strict";var b="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),I="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),E=[/^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],C=/^(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;D.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(F,G){return F?/-MMM-/.test(G)?I[F.month()]:b[F.month()]:b},monthsRegex:C,monthsShortRegex:C,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:E,longMonthsParse:E,shortMonthsParse:E,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(F){return F+(1===F||8===F||F>=20?"ste":"de")},week:{dow:1,doy:4}})}($(7586))},5441:function(Ee,we,$){!function(D){"use strict";var b="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),I="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),E=[/^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],C=/^(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;D.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(F,G){return F?/-MMM-/.test(G)?I[F.month()]:b[F.month()]:b},monthsRegex:C,monthsShortRegex:C,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:E,longMonthsParse:E,shortMonthsParse:E,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(F){return F+(1===F||8===F||F>=20?"ste":"de")},week:{dow:1,doy:4}})}($(7586))},1311:function(Ee,we,$){!function(D){"use strict";D.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}})}($(7586))},2567:function(Ee,we,$){!function(D){"use strict";D.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(I,E){var C=1===I?"r":2===I?"n":3===I?"r":4===I?"t":"\xe8";return("w"===E||"W"===E)&&(C="a"),I+C},week:{dow:1,doy:4}})}($(7586))},6962:function(Ee,we,$){!function(D){"use strict";var b={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},I={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};D.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(C){return C.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(L){return I[L]})},postformat:function(C){return C.replace(/\d/g,function(L){return b[L]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(C,L){return 12===C&&(C=0),"\u0a30\u0a3e\u0a24"===L?C<4?C:C+12:"\u0a38\u0a35\u0a47\u0a30"===L?C:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===L?C>=10?C:C+12:"\u0a38\u0a3c\u0a3e\u0a2e"===L?C+12:void 0}
vendor: 4,782 bytes, line 1
1,meridiem:function(C,L,F){return C<4?"\u0a30\u0a3e\u0a24":C<10?"\u0a38\u0a35\u0a47\u0a30":C<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":C<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}($(7586))},1063:function(Ee,we,$){!function(D){"use strict";var b="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),I="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),E=[/^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 C(G){return G%10<5&&G%10>1&&~~(G/10)%10!=1}function L(G,de,te){var be=G+" ";switch(te){case"ss":return be+(C(G)?"sekundy":"sekund");case"m":return de?"minuta":"minut\u0119";case"mm":return be+(C(G)?"minuty":"minut");case"h":return de?"godzina":"godzin\u0119";case"hh":return be+(C(G)?"godziny":"godzin");case"ww":return be+(C(G)?"tygodnie":"tygodni");case"MM":return be+(C(G)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return be+(C(G)?"lata":"lat")}}D.defineLocale("pl",{months:function(G,de){return G?/D MMMM/.test(de)?I[G.month()]:b[G.month()]:b},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:E,longMonthsParse:E,shortMonthsParse:E,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:L,m:L,mm:L,h:L,hh:L,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:L,M:"miesi\u0105c",MM:L,y:"rok",yy:L},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}($(7586))},7476:function(Ee,we,$){!function(D){"use strict";D.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"})}($(7586))},8719:function(Ee,we,$){!function(D){"use strict";D.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".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 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:"%
1d 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}})}($(7586))},1004:function(Ee,we,$){!function(D){"use strict";function b(E,C,L){var G=" ";return(E%100>=20||E>=100&&E%100==0)&&(G=" de "),E+G+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[L]}D.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:b,m:"un minut",mm:b,h:"o or\u0103",hh:b,d:"o zi",dd:b,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:b,M:"o lun\u0103",MM:b,y:"un an",yy:b},week:{dow:1,doy:7}})}($(7586))},1326:function(Ee,we,$){!function(D){"use strict";function I(L,F,G){return"m"===G?F?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":L+" "+function b(L,F){var G=L.split("_");return F%10==1&&F%100!=11?G[0]:F%10>=2&&F%10<=4&&(F%100<10||F%100>=20)?G[1]:G[2]}({ss:F?"\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:F?"\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"}[G],+L)}var E=[/^\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];D.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:E,longMonthsParse:E,shortMonthsParse:E,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
vendor: 11,213 bytes, line 1
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(L){if(L.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(L){if(L.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:I,m:I,mm:I,h:"\u0447\u0430\u0441",hh:I,d:"\u0434\u0435\u043d\u044c",dd:I,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:I,M:"\u043c\u0435\u0441\u044f\u0446",MM:I,y:"\u0433\u043e\u0434",yy:I},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(L){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(L)},meridiem:function(L,F,G){return L<4?"\u043d\u043e\u0447\u0438":L<12?"\u0443\u0442\u0440\u0430":L<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(L,F){switch(F){case"M":case"d":case"DDD":return L+"-\u0439";case"D":return L+"-\u0433\u043e";case"w":case"W":return L+"-\u044f";default:return L}},week:{dow:1,doy:4}})}($(7586))},2608:function(Ee,we,$){!function(D){"use strict";var b=["\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"],I=["\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"];D.defineLocale("sd",{months:b,monthsShort:b,weekdays:I,weekdaysShort:I,weekdaysMin:I,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(C){return"\u0634\u0627\u0645"===C},meridiem:function(C,L,F){return C<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(C){return C.replace(/\u060c/g,",")},postformat:function(C){return C.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}($(7586))},3911:function(Ee,we,$){!function(D){"use strict";D.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}})}($(7586))},5147:function(Ee,we,$){!function(D){"use strict";D.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(I){return I+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(I){return"\u0db4.\u0dc0."===I||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===I},meridiem:function(I,E,C){return I>11?C?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":C?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}($(7586))},3741:function(Ee,we,$){!function(D){"use strict";var b="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),I="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function E(F){return F>1&&F<5}function C(F,G,de,te){var be=F+" ";switch(de){case"s":return G||te?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return G||te?be+(E(F)?"sekundy":"sek\xfand"):be+"sekundami";case"m":return G?"min\xfata":te?"min\xfatu":"min\xfatou";case"mm":return G||te?be+(E(F)?"min\xfaty":"min\xfat"):be+"min\xfatami";case"h":return G?"hodina":te?"hodinu":"hodinou";case"hh":return G||te?be+(E(F)?"hodiny":"hod\xedn"):be+"hodinami";case"d":return G||te?"de\u0148":"d\u0148om";case"dd":return G||te?be+(E(F)?"dni":"dn\xed"):be+"d\u0148ami";case"M":return G||te?"mesiac":"mesiacom";case"MM":return G||te?be+(E(F)?"mesiace":"mesiacov"):be+"mesiacmi";case"y":return G||te?"rok":"rokom";case"yy":return G||te?be+(E(F)?"roky":"rokov"):be+"rokmi"}}D.defineLocale("sk",{months:b,monthsShort:I,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:C,ss:C,m:C,mm:C,h:C,hh:C,d:C,dd:C,M:C,MM:C,y:C,yy:C},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}($(7586))},3e3:function(Ee,we,$){!function(D){"use strict";function b(E,C,L,F){var G=E+" ";switch(L){case"s":return C||F?"nekaj sekund":"nekaj sekundami";case"ss":return G+(1===E?C?"sekundo":"sekundi":2===E?C||F?"sekundi":"sekundah":E<5?C||F?"
1sekunde":"sekundah":"sekund");case"m":return C?"ena minuta":"eno minuto";case"mm":return G+(1===E?C?"minuta":"minuto":2===E?C||F?"minuti":"minutama":E<5?C||F?"minute":"minutami":C||F?"minut":"minutami");case"h":return C?"ena ura":"eno uro";case"hh":return G+(1===E?C?"ura":"uro":2===E?C||F?"uri":"urama":E<5?C||F?"ure":"urami":C||F?"ur":"urami");case"d":return C||F?"en dan":"enim dnem";case"dd":return G+(1===E?C||F?"dan":"dnem":2===E?C||F?"dni":"dnevoma":C||F?"dni":"dnevi");case"M":return C||F?"en mesec":"enim mesecem";case"MM":return G+(1===E?C||F?"mesec":"mesecem":2===E?C||F?"meseca":"mesecema":E<5?C||F?"mesece":"meseci":C||F?"mesecev":"meseci");case"y":return C||F?"eno leto":"enim letom";case"yy":return G+(1===E?C||F?"leto":"letom":2===E?C||F?"leti":"letoma":E<5?C||F?"leta":"leti":C||F?"let":"leti")}}D.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:b,ss:b,m:b,mm:b,h:b,hh:b,d:b,dd:b,M:b,MM:b,y:b,yy:b},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}($(7586))},451:function(Ee,we,$){!function(D){"use strict";D.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(I){return"M"===I.charAt(0)},meridiem:function(I,E,C){return I<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}})}($(7586))},905:function(Ee,we,$){!function(D){"use strict";var b={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(E,C){return E%10>=1&&E%10<=4&&(E%100<10||E%100>=20)?E%10==1?C[0]:C[1]:C[2]},translate:function(E,C,L,F){var de,G=b.words[L];return 1===L.length?"y"===L&&C?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":F||C?G[0]:G[1]:(de=b.correctGrammaticalCase(E,G),"yy"===L&&C&&"\u0433\u043e\u0434\u0438\u043d\u0443"===de?E+" \u0433\u043e\u0434\u0438\u043d\u0430":E+" "+de)}};D.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:b.translate,m:b.translate,mm:b.translate,h:b.translate,hh:b.translate,d:b.translate,dd:b.translate,M:b.translate,MM:b.translate,y:b.translate,yy:b.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}($(7586))},5046:function(Ee,we,$){!function(D){"use strict";var b={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(E,C){return E%10>=1&&E%10<=4&&(E%100<10||E%100>=20)?E%10==1?C[0]:C[1]:C[2]},translate:function(E,C,L,F){var de,G=b.words[L];return 1===L.length?"y"===L&&C?"jedna godina":F||C?G[0]:G[1]:(de=b.correctGrammaticalCase(E,G),"yy"===L&&C&&"godinu"===de?E+" godina":E+" "+de)}};D.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:b.translate,m:b.translate,mm:b.translate,h:b.translate,hh:b.translate,d:b.translate,dd:b.translate,M:b.translate,MM:b.translate,y:b.translate,yy:b.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}($(7586))},5765:function(Ee,we,$){!function(D){"use strict";D.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: 10,223 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(I,E,C){return I<11?"ekuseni":I<15?"emini":I<19?"entsambama":"ebusuku"},meridiemHour:function(I,E){return 12===I&&(I=0),"ekuseni"===E?I:"emini"===E?I>=11?I:I+12:"entsambama"===E||"ebusuku"===E?0===I?0:I+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}($(7586))},9290:function(Ee,we,$){!function(D){"use strict";D.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(I){var E=I%10;return I+(1==~~(I%100/10)?":e":1===E||2===E?":a":":e")},week:{dow:1,doy:4}})}($(7586))},3449:function(Ee,we,$){!function(D){"use strict";D.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}})}($(7586))},2688:function(Ee,we,$){!function(D){"use strict";var b={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},I={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};D.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}\u0bb5\u0ba4\u0bc1/,ordinal:function(C){return C+"\u0bb5\u0ba4\u0bc1"},preparse:function(C){return C.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(L){return I[L]})},postformat:function(C){return C.replace(/\d/g,function(L){return b[L]})},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(C,L,F){return C<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":C<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":C<10?" \u0b95\u0bbe\u0bb2\u0bc8":C<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":C<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":C<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(C,L){return 12===C&&(C=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===L?C<2?C:C+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===L||"\u0b95\u0bbe\u0bb2\u0bc8"===L||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===L&&C>=10?C:C+12},week:{dow:0,doy:6}})}($(7586))},2060:function(Ee,we,$){!function(D){"use strict";D.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}
vendor: 9,218 bytes, line 1
1\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(I,E){return 12===I&&(I=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===E?I<4?I:I+12:"\u0c09\u0c26\u0c2f\u0c02"===E?I:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===E?I>=10?I:I+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===E?I+12:void 0},meridiem:function(I,E,C){return I<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":I<10?"\u0c09\u0c26\u0c2f\u0c02":I<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":I<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}($(7586))},3290:function(Ee,we,$){!function(D){"use strict";D.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(I){var E=I%10;return I+(1==~~(I%100/10)?"th":1===E?"st":2===E?"nd":3===E?"rd":"th")},week:{dow:1,doy:4}})}($(7586))},8294:function(Ee,we,$){!function(D){"use strict";var b={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"};D.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(E,C){return 12===E&&(E=0),"\u0448\u0430\u0431"===C?E<4?E:E+12:"\u0441\u0443\u0431\u04b3"===C?E:"\u0440\u04ef\u0437"===C?E>=11?E:E+12:"\u0431\u0435\u0433\u043e\u04b3"===C?E+12:void 0},meridiem:function(E,C,L){return E<4?"\u0448\u0430\u0431":E<11?"\u0441\u0443\u0431\u04b3":E<16?"\u0440\u04ef\u0437":E<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(E){return E+(b[E]||b[E%10]||b[E>=100?100:null])},week:{dow:1,doy:7}})}($(7586))},1231:function(Ee,we,$){!function(D){"use strict";D.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(I){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===I},meridiem:function(I,E,C){return I<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"}})}($(7586))},3746:function(Ee,we,$){!function(D){"use strict";
vendor: 6,883 bytes, line 1
1var b={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"};D.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(E,C){switch(C){case"d":case"D":case"Do":case"DD":return E;default:if(0===E)return E+"'unjy";var L=E%10;return E+(b[L]||b[E%100-L]||b[E>=100?100:null])}},week:{dow:1,doy:7}})}($(7586))},9040:function(Ee,we,$){!function(D){"use strict";D.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(I){return I},week:{dow:1,doy:4}})}($(7586))},7187:function(Ee,we,$){!function(D){"use strict";var b="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function C(G,de,te,be){var Ue=function L(G){var de=Math.floor(G%1e3/100),te=Math.floor(G%100/10),be=G%10,Ue="";return de>0&&(Ue+=b[de]+"vatlh"),te>0&&(Ue+=(""!==Ue?" ":"")+b[te]+"maH"),be>0&&(Ue+=(""!==Ue?" ":"")+b[be]),""===Ue?"pagh":Ue}(G);switch(te){case"ss":return Ue+" lup";case"mm":return Ue+" tup";case"hh":return Ue+" rep";case"dd":return Ue+" jaj";case"MM":return Ue+" jar";case"yy":return Ue+" DIS"}}D.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 I(G){var de=G;return-1!==G.indexOf("jaj")?de.slice(0,-3)+"leS":-1!==G.indexOf("jar")?de.slice(0,-3)+"waQ":-1!==G.indexOf("DIS")?de.slice(0,-3)+"nem":de+" pIq"},past:function E(G){var de=G;return-1!==G.indexOf("jaj")?de.slice(0,-3)+"Hu\u2019":-1!==G.indexOf("jar")?de.slice(0,-3)+"wen":-1!==G.indexOf("DIS")?de.slice(0,-3)+"ben":de+" ret"},s:"puS lup",ss:C,m:"wa\u2019 tup",mm:C,h:"wa\u2019 rep",hh:C,d:"wa\u2019 jaj",dd:C,M:"wa\u2019 jar",MM:C,y:"wa\u2019 DIS",yy:C},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}($(7586))},153:function(Ee,we,$){!function(D){"use strict";var b={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"};D.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(E,C,L){return E<12?L?"\xf6\xf6":"\xd6\xd6":L?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(E){return"\xf6s"===E||"\xd6S"===E},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(E,C){switch(C){case"d":case"D":case"Do":case"DD":return E;default:if(0===E)return E+"'\u0131nc\u0131";var L=E%10;return E+(b[L]||b[E%100-L]||b[E>=100?100:null])}},week:{dow:1,doy:7}})}($(7586))},8521:function(Ee,we,$){!function(D){"use strict";function I(E,C,L,F){var G={s:["viensas secunds","'iensas secunds"],ss:[E+" secunds",E+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[E+" m\xeduts",E+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[E+" \xfeoras",E+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[E+" ziuas",E+" ziuas"],M:["'n mes","'iens mes"],MM:[E+" mesen",E+" mesen"],y:["'n ar","'iens ar"],yy:[E+" ars",E+" ars"]};return F||C?G[L][0]:G[L][1]}D.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(E){return"d'o"===E.toLowerCase()},meridiem:function(E,C,L){return E>11?L?"d'o":"D'O":L?"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:I,ss:I,m:I,mm:I,h:I,hh:I,d:I,dd:I,M:I,MM:I,y:I,yy:I},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}($(7586))},2234:function(Ee,we,$){!function(D){"use strict";D.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}})}($(7586))},8010:function(Ee,we,$){!function(D){"use strict";D.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}})}($(7586))},3349:function(Ee,we,$){!function(D){"use strict";D.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(I,E){return 12===I&&(I=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===E||"\u0633\u06d5\u06be\u06d5\u0631"===E||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===E?I:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===E||"\u0643\u06d5\u0686"===E?I+12:I>=11?I:I+12},meridiem:function(I,E,C){var L=100*I+E;return L<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":L<900?"\u0633\u06d5\u06be\u06d5\u0631":L<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":L<1230?"\u0686\u06c8\u0634":L<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(I,E){switch(E){case"d":case"D":case"DDD":return I+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return I+"-\u06be\u06d5\u067e\u062a\u06d5";default:return I}},preparse:function(I){return I.replace(/\u060c/g,",")},postformat:function(I){return I.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}($(7586))},8479:function(Ee,we,$){!function(D){"use strict";function I(F,G,de){return"m"===de?G?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===de?G?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":F+" "+function b(F,G){var de=F.split("_");return G%10==1&&G%100!=11?de[0]:G%10>=2&&G%10<=4&&(G%100<10||G%100>=20)?de[1]:de[2]}({ss:G?"\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:G?"\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:G?"\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"}[de],+F)}function C(F){return function(){return F+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}D.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 E(F,G){var de={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===F?de.nominative.slice(1,7).concat(de.nominative.slice(0,1)):F?de[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(G)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(G)?"genitive":"nominative"][F.day()]:de.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:C("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:C("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:C("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:C("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case
vendor: 10,944 bytes, line 1
16:return C("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return C("[\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:I,m:I,mm:I,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:I,d:"\u0434\u0435\u043d\u044c",dd:I,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:I,y:"\u0440\u0456\u043a",yy:I},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(F){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(F)},meridiem:function(F,G,de){return F<4?"\u043d\u043e\u0447\u0456":F<12?"\u0440\u0430\u043d\u043a\u0443":F<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(F,G){switch(G){case"M":case"d":case"DDD":case"w":case"W":return F+"-\u0439";case"D":return F+"-\u0433\u043e";default:return F}},week:{dow:1,doy:7}})}($(7586))},3024:function(Ee,we,$){!function(D){"use strict";var b=["\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"],I=["\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"];D.defineLocale("ur",{months:b,monthsShort:b,weekdays:I,weekdaysShort:I,weekdaysMin:I,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(C){return"\u0634\u0627\u0645"===C},meridiem:function(C,L,F){return C<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(C){return C.replace(/\u060c/g,",")},postformat:function(C){return C.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}($(7586))},2376:function(Ee,we,$){!function(D){"use strict";D.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}})}($(7586))},9800:function(Ee,we,$){!function(D){"use strict";D.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}})}($(7586))},9366:function(Ee,we,$){!function(D){"use strict";D.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(I){return/^ch$/i.test(I)},meridiem:function(I,E,C){return I<12?C?"sa":"SA":C?"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(I){return I},week:{dow:1,doy:4}})}($(7586))},9702:function(Ee,we,$){!function(D){"use strict";D.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(I){var E=I%10;return I+(1==~~(I%100/10)?"th":1===E?"st":2===E?"nd":3===E?"rd":"th")},week:{dow:1,doy:4}})}($(7586))},2655:function(Ee,we,$){!function(D){"use strict";D.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}})}($(7586))},575:function(Ee,we,$){!function(D){"use strict";D.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(I,E){return 12===I&&(I=0),"\u51cc\u6668"===E||"\u65e9\u4e0a"===E||"\u4e0a\u5348"===E?I:"\u4e0b\u5348"===E||"\u665a\u4e0a"===E?I+12:I>=11?I:I+12},meridiem:function(I,E,C){var L=100*I+E;return L<600?"\u51cc\u6668":L<900?"\u65e9\u4e0a":L<1130?"\u4e0a\u5348":L<1230?"\u4e2d\u5348":L<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(I){return I.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(I){return this.week()!==I.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(I,E){switch(E){case"d":case"D":case"DDD":return I+"\u65e5";case"M":return I+"\u6708";case"w":case"W":return I+"\u5468";default:return I}},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}})}($(7586))},8351:function(Ee,we,$){!function(D){"use strict";D.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(I,E){return 12===I&&(I=0),"\u51cc\u6668"===E||"\u65e9\u4e0a"===E||"\u4e0a\u5348"===E?I:"\u4e2d\u5348"===E?I>=11?I:I+12:"\u4e0b\u5348"===E||"\u665a\u4e0a"===E?I+12:void 0},meridiem:function(I,E,C){var L=100*I+E;return L<600?"\u51cc\u6668":L<900?"\u65e9\u4e0a":L<1200?"\u4e0a\u5348":1200===L?"\u4e2d\u5348":L<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(I,E){switch(E){case"d":case"D":case"DDD":return I+"\u65e5";case"M":return I+"\u6708";case"w":case"W":return I+"\u9031";default:return I}},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"}})}($(7586))},1626:function(Ee,we,$){!function(D){"use strict";D.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(I,E){return 12===I&&(I=0),"\u51cc\u6668"===E||"\u65e9\u4e0a"===E||"\u4e0a\u5348"===E?I:"\u4e2d\u5348"===E?I>=11?I:I+12:"\u4e0b\u5348"===E||"\u665a\u4e0a"===E?I+12:void 0},meridiem:function(I,E,C){var L=100*I+E;return L<600?"\u51cc\u6668":L<900?"\u65e9\u4e0a":L<1130?"\u4e0a\u5348":L<1230?"\u4e2d\u5348":L<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(I,E){switch(E){case"d":case"D":case"DDD":return I+"\u65e5";case"M":return I+"\u6708";case"w":case"W":return I+"\u9031";default:return I}},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"}})}($(7586))},8887:function(Ee,we,$){!function(D){"use strict";D.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(I,E){return 12===I&&(I=0),"\u51cc\u6668"===E||"\u65e9\u4e0a"===E||"\u4e0a\u5348"===E?I:"\u4e2d\u5348"===E?I>=11?I:I+12:"\u4e0b\u5348"===E||"\u665a\u4e0a"===E?I+12:void 0},meridiem:function(I,E,C){var L=100*I+E;return L<600?"\u51cc\u6668":L<900?"\u65e9\u4e0a":L<1130?"\u4e0a\u5348":L<1230?"\u4e2d\u5348":L<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(I,E){switch(E){case"d":case"D":case"DDD":return I+"\u65e5";case"M":return I+"\u6708";case"w":case"W":return I+"\u9031";default:return I}},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"}})}($(7586))},7586:function(Ee,we,$){(Ee=$.nmd(Ee)).exports=function(){"use strict";var D,Zt;function b(){return D.apply(null,arguments)}function E(m){return m instanceof Array||"[object Array]"===Object.prototype.toString.call(m)}function C(m){return null!=m&&"[object Object]"===Object.prototype.toString.call(m)}function L(m,T){return Object.prototype.hasOwnProperty.call(m,T)}function F(m){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(m).length;var T;for(T in m)if(L(m,T))return!1;return!0}function G(m){return void 0===m}function de(m){return"number"==typeof m||"[object Number]"===Object.prototype.toString.call(m)}function te(m){return m instanceof Date||"[object Date]"===Object.prototype.toString.call(m)}function be(m,T){var P,A=[],V=m.length;for(P=0;P<V;++P)A.push(T(m[P],P));return A}function Ue(m,T){for(var A in T)L(T,A)&&(m[A]=T[A]);return L(T,"toString")&&(m.toString=T.toString),L(T,"valueOf")&&(m.valueOf=T.valueOf),m}function ft(m,T,A,P){return jh(m,T,A,P,!0).utc()}function tt(m){return null==m._pf&&(m._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invali
vendor: 40,080 bytes, line 1
1dMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),m._pf}function Kt(m){var T=null,A=!1,P=m._d&&!isNaN(m._d.getTime());return P&&(T=tt(m),A=Zt.call(T.parsedDateParts,function(V){return null!=V}),P=T.overflow<0&&!T.empty&&!T.invalidEra&&!T.invalidMonth&&!T.invalidWeekday&&!T.weekdayMismatch&&!T.nullInput&&!T.invalidFormat&&!T.userInvalidated&&(!T.meridiem||T.meridiem&&A),m._strict&&(P=P&&0===T.charsLeftOver&&0===T.unusedTokens.length&&void 0===T.bigHour)),null!=Object.isFrozen&&Object.isFrozen(m)?P:(m._isValid=P,m._isValid)}function Yt(m){var T=ft(NaN);return null!=m?Ue(tt(T),m):tt(T).userInvalidated=!0,T}Zt=Array.prototype.some?Array.prototype.some:function(m){var P,T=Object(this),A=T.length>>>0;for(P=0;P<A;P++)if(P in T&&m.call(this,T[P],P,T))return!0;return!1};var Nr=b.momentProperties=[],ni=!1;function ri(m,T){var A,P,V,ae=Nr.length;if(G(T._isAMomentObject)||(m._isAMomentObject=T._isAMomentObject),G(T._i)||(m._i=T._i),G(T._f)||(m._f=T._f),G(T._l)||(m._l=T._l),G(T._strict)||(m._strict=T._strict),G(T._tzm)||(m._tzm=T._tzm),G(T._isUTC)||(m._isUTC=T._isUTC),G(T._offset)||(m._offset=T._offset),G(T._pf)||(m._pf=tt(T)),G(T._locale)||(m._locale=T._locale),ae>0)for(A=0;A<ae;A++)G(V=T[P=Nr[A]])||(m[P]=V);return m}function Sn(m){ri(this,m),this._d=new Date(null!=m._d?m._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===ni&&(ni=!0,b.updateOffset(this),ni=!1)}function en(m){return m instanceof Sn||null!=m&&null!=m._isAMomentObject}function ii(m){!1===b.suppressDeprecationWarnings&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+m)}function Et(m,T){var A=!0;return Ue(function(){if(null!=b.deprecationHandler&&b.deprecationHandler(null,m),A){var V,ae,pe,P=[],rt=arguments.length;for(ae=0;ae<rt;ae++){if(V="","object"==typeof arguments[ae]){for(pe in V+="\n["+ae+"] ",arguments[0])L(arguments[0],pe)&&(V+=pe+": "+arguments[0][pe]+", ");V=V.slice(0,-2)}else V=arguments[ae];P.push(V)}ii(m+"\nArguments: "+Array.prototype.slice.call(P).join("")+"\n"+(new Error).stack),A=!1}return T.apply(this,arguments)},T)}var nr,Xe={};function dt(m,T){null!=b.deprecationHandler&&b.deprecationHandler(m,T),Xe[m]||(ii(T),Xe[m]=!0)}function Ie(m){return typeof Function<"u"&&m instanceof Function||"[object Function]"===Object.prototype.toString.call(m)}function kn(m,T){var P,A=Ue({},m);for(P in T)L(T,P)&&(C(m[P])&&C(T[P])?(A[P]={},Ue(A[P],m[P]),Ue(A[P],T[P])):null!=T[P]?A[P]=T[P]:delete A[P]);for(P in m)L(m,P)&&!L(T,P)&&C(m[P])&&(A[P]=Ue({},A[P]));return A}function Ir(m){null!=m&&this.set(m)}b.suppressDeprecationWarnings=!1,b.deprecationHandler=null,nr=Object.keys?Object.keys:function(m){var T,A=[];for(T in m)L(m,T)&&A.push(T);return A};function Vr(m,T,A){var P=""+Math.abs(m);return(m>=0?A?"+":"":"-")+Math.pow(10,Math.max(0,T-P.length)).toString().substr(1)+P}var Me=/(\[[^\[]*\])|(\\)?([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,Ce=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ne={},Pe={};function Se(m,T,A,P){var V=P;"string"==typeof P&&(V=function(){return this[P]()}),m&&(Pe[m]=V),T&&(Pe[T[0]]=function(){return Vr(V.apply(this,arguments),T[1],T[2])}),A&&(Pe[A]=function(){return this.localeData().ordinal(V.apply(this,arguments),m)})}function Fe(m){return m.match(/\[[\s\S]/)?m.replace(/^\[|\]$/g,""):m.replace(/\\/g,"")}function un(m,T){return m.isValid()?(T=gr(T,m.localeData()),Ne[T]=Ne[T]||function pt(m){var A,P,T=m.match(Me);for(A=0,P=T.length;A<P;A++)T[A]=Pe[T[A]]?Pe[T[A]]:Fe(T[A]);return function(V){var pe,ae="";for(pe=0;pe<P;pe++)ae+=Ie(T[pe])?T[pe].call(V,m):T[pe];return ae}}(T),Ne[T](m)):m.localeData().invalidDate()}function gr(m,T){var A=5;function P(V){return T.longDateFormat(V)||V}for(Ce.lastIndex=0;A>=0&&Ce.test(m);)m=m.replace(Ce,P),Ce.lastIndex=0,A-=1;return m}var Xa={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 bi(m){return"string"==typeof m?Xa[m]||Xa[m.toLowerCase()]:void 0}function io(m){var A,P,T={};for(P in m)L(m,P)&&(A=bi(P))&&(T[A]=m[P]);return T}var va={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 gc,so=/\d/,si=/\d\d/,Nl=/\d{3}/,Fl=/\d{4}/,Jo=/[+-]?\d{6}/,hn=/\d\d?/,Us=/\d\d\d\d?/,Vl=/\d\d\d\d\d\d?/,_s=/\d{1,3}/,Ul=/\d{1,4}/,Cs=/[+-]?\d{1,6}/,Mo=/\d+/,Ur=/[+-]?\d+/,Xo=/Z|[+-]\d\d:?\d\d/gi,pc=/Z|[+-]\d\d(?::?\d\d)?/gi,Zo=/[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,Ji=/^[1-9]\d?/,Xi=/^([1-9]\d|\d)/;function gt(m,T,A){gc[m]=Ie(T)?T:function(P,V){return P&&A?A:T}}function Wn(m,T){return L(gc,m)?gc[m](T._strict,T._locale):new RegExp(function at(m){return z(m.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(T,A,P,V,ae){return A||P||V||ae}))}(m))}function z(m){return m.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function q(m){return m<0?Math.ceil(m)||0:Math.floor(m)}function X(m){var T=+m,A=0;return 0!==T&&isFinite(T)&&(A=q(T)),A}gc={};var ge={};function ue(m,T){var A,V,P=T;for("string"==typeof m&&(m=[m]),de(T)&&(P=function(ae,pe){pe[T]=X(ae)}),V=m.length,A=0;A<V;A++)ge[m[A]]=P}function je(m,T){ue(m,function(A,P,V,ae){V._w=V._w||{},T(A,V._w,V,ae)})}function Mt(m,T,A){null!=T&&L(ge,m)&&ge[m](T,A._a,A,m)}function Lt(m){return m%4==0&&m%100!=0||m%400==0}var Tt=0,Sr=1,st=2,Ot=3,_r=4,js=5,Za=6,Z_=7,Nb=8;function ru(m){return Lt(m)?366:365}Se("Y",0,0,function(){var m=this.year();return m<=9999?Vr(m,4):"+"+m}),Se(0,["YY",2],0,function(){return this.year()%100}),Se(0,["YYYY",4],0,"year"),Se(0,["YYYYY",5],0,"year"),Se(0,["YYYYYY",6,!0],0,"year"),gt("Y",Ur),gt("YY",hn,si),gt("YYYY",Ul,Fl),gt("YYYYY",Cs,Jo),gt("YYYYYY",Cs,Jo),ue(["YYYYY","YYYYYY"],Tt),ue("YYYY",function(m,T){T[Tt]=2===m.length?b.parseTwoDigitYear(m):X(m)}),ue("YY",function(m,T){T[Tt]=b.parseTwoDigitYear(m)}),ue("Y",function(m,T){T[Tt]=parseInt(m,10)}),b.parseTwoDigitYear=function(m){return X(m)+(X(m)>68?1900:2e3)};var oi,iu=su("FullYear",!0);function su(m,T){return function(A){return null!=A?(ey(this,m,A),b.updateOffset(this,T),this):el(this,m)}}function el(m,T){if(!m.isValid())return NaN;var A=m._d,P=m._isUTC;switch(T){case"Milliseconds":return P?A.getUTCMilliseconds():A.getMilliseconds();case"Seconds":return P?A.getUTCSeconds():A.getSeconds();case"Minutes":return P?A.getUTCMinutes():A.getMinutes();case"Hours":return P?A.getUTCHours():A.getHours();case"Date":return P?A.getUTCDate():A.getDate();case"Day":return P?A.getUTCDay():A.getDay();case"Month":return P?A.getUTCMonth():A.getMonth();case"FullYear":return P?A.getUTCFullYear():A.getFullYear();default:return NaN}}function ey(m,T,A){var P,V,ae,pe,rt;if(m.isValid()&&!isNaN(A)){switch(P=m._d,V=m._isUTC,T){case"Milliseconds":return void(V?P.setUTCMilliseconds(A):P.setMilliseconds(A));case"Seconds":return void(V?P.setUTCSeconds(A):P.setSeconds(A));case"Minutes":return void(V?P.setUTCMinutes(A):P.setMinutes(A));case"Hours":return void(V?P.setUTCHours(A):P.setHours(A));case"Date":return void(V?P.setUTCDate(A):P.setDate(A));case"FullYear":break;default:return}ae=A,pe=m.month(),rt=29!==(rt=m.date())||1!==pe||Lt(ae)?rt:28,V?P.setUTCFullYear(ae,pe,rt):P.setFullYear(ae,pe,rt)}}function md(m,T){if(isNaN(m)||isNaN(T))return NaN;var A=function ou(m,T){return(m%T+T)%T}(T,12);return m+=(T-A)/12,1===A?Lt(m)?29:28:31-A%7%2}oi=Array.prototype.indexOf?Array.prototype.indexOf:function(m){var T;for(T=0;T<this.length;++T)if(this[T]===m)return T;return-1},Se("M",["MM",2],"Mo",function(){return this.month()+1}),Se("MMM",0,0,function(m){return this.localeData().monthsShort(this,m)}),Se("MMMM",0,0,function(m){return this.localeData().months(this,m)}),gt("M",hn,Ji),gt("MM",hn,si),gt("MMM",function(m,T){return T.monthsShortRegex(m)}),gt("MMMM",function(m,T){return T.monthsRegex(m)}),ue(["M","MM"],function(m,T){T[Sr]=X(m)-1}),ue(["MMM","MMMM"],function(m,T,A,P){var V=A._locale.monthsParse(m,P,A._strict);null!=V?T[Sr]=V:tt(A).invalidMonth=m});var aS="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Jp="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Lh=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ty=Zo,Ub=Zo;function wa(m,T,A){var P,V,ae,pe=m.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],P=0;P<12;++P)ae=ft([2e3,P]),this._shortMonthsParse[P]=this.monthsShort(ae,"").toLocaleLowerCase(),this._longMonthsParse[P]=this.months(ae,"").toLocaleLowerCase();return A?"MMM"===T?-1!==(V=oi.call(this._shortMonthsParse,pe))?V:null:-1!==(V=oi.call(this._longMonthsParse,pe))?V:null:"MMM"===T?-1!==(V=oi.call(this._shortMonthsParse,pe))||-1!==(V=oi.call(this._longMonthsParse,pe))?V:null:-1!==(V=oi.call(this._longMonthsParse,pe))||-1!==(V=oi.call(this._shortMonthsParse,pe))?V:null}function tl(m,T){if(!m.isValid())return m;if("string"==typeof T)if(/^\d+$/.test(T))T=X(T);else if(!de(T=m.localeData().monthsParse(T)))return m;var A=T,P=m.date();return P=P<29?P:Math.min(P,md(m.year(),A)),m._isUTC?m._d.setUTCMonth(A,P):m._d.setMonth(A,P),m}function gd(m){return null!=m?(tl(this,m),b.updateOffset(this,!0),this):el(this,"Month")}function Xp(){function m(Pt,nn){return nn.length-Pt.length}var V,ae,pe,rt,T=[],A=[],P=[];for(V=0;V<12;V++)ae=ft([2e3,V]),pe=z(this.monthsShort(ae,"")),rt=z(this.months(ae,"")),T.push(pe),A.push(rt),P.push(rt),P.push(pe);T.sort(m),A.sort(m),P.sort(m),this._monthsRegex=new RegExp("^("+P.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+A.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+T.join("|")+")","i")}function Yb(m,T,A,P,V,ae,pe){var rt;return m<100&&m>=0?(rt=new Date(m+400,T,A,P,V,ae,pe),isFinite(rt.getFullYear())&&rt.setFullYear(m)):rt=new Date(m,T,A,P,V,ae,pe),rt}function _d(m){var T,A;return m<100&&m>=0?((A=Array.prototype.slice.call(arguments))[0]=m+400,T=new Date(Date.UTC.apply(null,A)),isFinite(T.getUTCFullYear())&&T.setUTCFullYear(m)):T=new Date(Date.UTC.apply(null,arguments)),T}function nl(m,T,A){var P=7+T-A;return-(7+_d(m,0,P).getUTCDay()-T)%7+P-1}function yd(m,T,A,P,V){var Pt,nn,rt=1+7*(T-1)+(7+A-P)%7+nl(m,P,V);return rt<=0?nn=ru(Pt=m-1)+rt:rt>ru(m)?(Pt=m+1,nn=rt-ru(m)):(Pt=m,nn=rt),{year:Pt,dayOfYear:nn}}function rl(m,T,A){var ae,pe,P=nl(m.year(),T,A),V=Math.floor((m.dayOfYear()-P-1)/7)+1;return V<1?ae=V+Io(pe=m.year()-1,T,A):V>Io(m.year(),T,A)?(ae=V-Io(m.year(),T,A),pe=m.year()+1):(pe=m.year(),ae=V),{week:ae,year:pe}}function Io(m,T,A){var P=nl(m,T,A),V=nl(m+1,T,A);return(ru(m)-P+V)/7}Se("w",["ww",2],"wo","week"),Se("W",["WW",2],"Wo","isoWeek"),gt("w",hn,Ji),gt("ww",hn,si),gt("W",hn,Ji),gt("WW",hn,si),je(["w","ww","W","WW"],function(m,T,A,P){T[P.substr(0,1)]=X(m)});function Oh(m,T){return m.slice(T,7).concat(m.slice(0,T))}Se("d",0,"do","day"),Se("dd",0,0,function(m){return this.localeData().weekdaysMin(this,m)}),Se("ddd",0,0,function(m){return this.localeData().weekdaysShort(this,m)}),Se("dddd",0,0,function(m){return this.localeData().weekdays(this,m)}),Se("e",0,0,"weekday"),Se("E",0,0,"isoWeekday"),gt("d",hn),gt("e",hn),gt("E",hn),gt("dd",function(m,T){return T.weekdaysMinRegex(m)}),gt("ddd",function(m,T){return T.weekdaysShortRegex(m)}),gt("dddd",function(m,T){return T.weekdaysRegex(m)}),je(["dd","ddd","dddd"],function(m,T,A,P){var V=A._locale.weekdaysParse(m,P,A._strict);null!=V?T.d=V:tt(A).invalidWeekday=m}),je(["d","e","E"],function(m,T,A,P){T[P]=X(m)});var lS="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),il="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),nm="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),oy=Zo,cS=Zo,ay=Zo;function rm(m,T,A){var P,V,ae,pe=m.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],P=0;P<7;++P)ae=ft([2e3,1]).day(P),this._minWeekdaysParse[P]=this.weekdaysMin(ae,"").toLocaleLowerCase(),this._shortWeekdaysParse[P]=this.weekdaysShort(ae,"").toLocaleLowerCase(),this._weekdaysParse[P]=this.weekdays(ae,"").toLocaleLowerCase();return A?"dddd"===T?-1!==(V=oi.call(this._weekdaysParse,pe))?V:null:"ddd"===T?-1!==(V=oi.call(this._shortWeekdaysParse,pe))?V:null:-1!==(V=oi.call(this._minWeekdaysParse,pe))?V:null:"dddd"===T?-1!==(V=oi.call(this._weekdaysParse,pe))||-1!==(V=oi.call(this._shortWeekdaysParse,pe))||-1!==(V=oi.call(this._minWeekdaysParse,pe))?V:null:"ddd"===T?-1!==(V=oi.call(this._shortWeekdaysParse,pe))||-1!==(V=oi.call(this._weekdaysParse,pe))||-1!==(V=oi.call(this._minWeekdaysParse,pe))?V:null:-1!==(V=oi.call(this._minWeekdaysParse,pe))||-1!==(V=oi.call(this._weekdaysParse,pe))||-1!==(V=oi.call(this._shortWeekdaysParse,pe))?V:null}function bd(){function m(Ln,Ca){return Ca.length-Ln.length}var ae,pe,rt,Pt,nn,T=[],A=[],P=[],V=[];for(ae=0;ae<7;ae++)pe=ft([2e3,1]).day(ae),rt=z(this.weekdaysMin(pe,"")),Pt=z(this.weekdaysShort(pe,"")),nn=z(this.weekdays(pe,"")),T.push(rt),A.push(Pt),P.push(nn),V.push(rt),V.push(Pt),V.push(nn);T.sort(m),A.sort(m),P.sort(m),V.sort(m),this._weekdaysRegex=new RegExp("^("+V.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+P.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+A.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+T.join("|")+")","i")}function cy(){return this.hours()%12||12}function dy(m,T){Se(m,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),T)})}function Nh(m,T){return T._meridiemParse}Se("H",["HH",2],0,"hour"),Se("h",["hh",2],0,cy),Se("k",["kk",2],0,function uy(){return this.hours()||24}),Se("hmm",0,0,function(){return""+cy.apply(this)+Vr(this.minutes(),2)}),Se("hmmss",0,0,function(){return""+cy.apply(this)+Vr(this.minutes(),2)+Vr(this.seconds(),2)}),Se("Hmm",0,0,function(){return""+this.hours()+Vr(this.minutes(),2)}),Se("Hmmss",0,0,function(){return""+this.hours()+Vr(this.minutes(),2)+Vr(this.seconds(),2)}),dy("a",!0),dy("A",!1),gt("a",Nh),gt("A",Nh),gt("H",hn,Xi),gt("h",hn,Ji),gt("k",hn,Ji),gt("HH",hn,si),gt("hh",hn,si),gt("kk",hn,si),gt("hmm",Us),gt("hmmss",Vl),gt("Hmm",Us),gt("Hmmss",Vl),ue(["H","HH"],Ot),ue(["k","kk"],function(m,T,A){var P=X(m);T[Ot]=24===P?0:P}),ue(["a","A"],function(m,T,A){A._isPm=A._locale.isPM(m),A._meridiem=m}),ue(["h","hh"],function(m,T,A){T[Ot]=X(m),tt(A).bigHour=!0}),ue("hmm",function(m,T,A){var P=m.length-2;T[Ot]=X(m.substr(0,P)),T[_r]=X(m.substr(P)),tt(A).bigHour=!0}),ue("hmmss",function(m,T,A){var P=m.length-4,V=m.length-2;T[Ot]=X(m.substr(0,P)),T[_r]=X(m.substr(P,2)),T[js]=X(m.substr(V)),tt(A).bigHour=!0}),ue("Hmm",function(m,T,A){var P=m.length-2;T[Ot]=X(m.substr(0,P)),T[_r]=X(m.substr(P))}),ue("Hmmss",function(m,T,A){var P=m.length-4,V=m.length-2;T[Ot]=X(m.substr(0,P)),T[_r]=X(m.substr(P,2)),T[js]=X(m.substr(V))});var Gb=su("Hours",!0);var Td,lu={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:aS,monthsShort:Jp,week:{dow:0,doy:6},weekdays:lS,weekdaysMin:nm,weekdaysShort:il,meridiemParse:/[ap]\.?m?\.?/i},Pn={},_c={};function ba(m,T){var A,P=Math.min(m.length,T.length);for(A=0;A<P;A+=1)if(m[A]!==T[A])return A;return P}function Kb(m){return m&&m.toLowerCase().replace("_","-")}function cu(m){var T=null;if(void 0===Pn[m]&&Ee&&Ee.exports&&function Qb(m){return!(!m||!m.match("^[^/\\\\]*$"))}(m))try{T=Td._abbr,$(5358)("./"+m),sl(T)}catch{Pn[m]=null}return Pn[m]}function sl(m,T){var A;return m&&((A=G(T)?ol(m):uu(m,T))?Td=A:typeof console<"u"&&console.warn&&console.warn("Locale "+m+" not found. Did you forget to load it?")),Td._abbr}function uu(m,T){if(null!==T){var A,P=lu;if(T.abbr=m,null!=Pn[m])dt("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."),P=Pn[m]._config;else if(null!=T.parentLocale)if(null!=Pn[T.parentLocale])P=Pn[T.parentLocale]._config;else{if(null==(A=cu(T.parentLocale)))return _c[T.parentLocale]||(_c[T.parentLocale]=[]),_c[T.parentLocale].push({name:m,config:T}),null;P=A._config}return Pn[m]=new Ir(kn(P,T)),_c[m]&&_c[m].forEach(function(V){uu(V.name,V.config)}),sl(m),Pn[m]}return delete Pn[m],null}function ol(m){var T;if(m&&m._locale&&m._locale._abbr&&(m=m._locale._abbr),!m)return Td;if(!E(m)){if(T=cu(m))return T;m=[m]}return function lm(m){for(var A,P,V,ae,T=0;T<m.length;){for(A=(ae=Kb(m[T]).split("-")).length,P=(P=Kb(m[T+1]))?P.split("-"):null;A>0;){if(V=cu(ae.slice(0,A).join("-")))return V;if(P&&P.length>=A&&ba(ae,P)>=A-1)break;A--}T++}return Td}(m)}function al(m){var T,A=m._a;return A&&-2===tt(m).overflow&&(T=A[Sr]<0||A[Sr]>11?Sr:A[st]<1||A[st]>md(A[Tt],A[Sr])?st:A[Ot]<0||A[Ot]>24||24===A[Ot]&&(0!==A[_r]||0!==A[js]||0!==A[Za])?Ot:A[_r]<0||A[_r]>59?_r:A[js]<0||A[js]>59?js:A[Za]<0||A[Za]>999?Za:-1,tt(m)._overflowDayOfYear&&(T<Tt||T>st)&&(T=st),tt(m)._overflowWeeks&&-1===T&&(T=Z_),tt(m)._overflowWeekday&&-1===T&&(T=Nb),tt(m).overflow=T),m}var Jb=/^\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)?)?$/,Xb=/^\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)?)?$/,Fh=/Z|[+-]\d\d(?::?\d\d)?/,um=[["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]],Ed=[["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/]],ll=/^\/?Date\((-?\d+)/i,du=/^(?:(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}))$/,Yl={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function dm(m){var T,A,ae,pe,rt,Pt,P=m._i,V=Jb.exec(P)||Xb.exec(P),nn=um.length,Ln=Ed.length;if(V){for(tt(m).iso=!0,T=0,A=nn;T<A;T++)if(um[T][1].exec(V[1])){pe=um[T][0],ae=!1!==um[T][2];break}if(null==pe)return void(m._isValid=!1);if(V[3]){for(T=0,A=Ln;T<A;T++)if(Ed[T][1].exec(V[3])){rt=(V[2]||" ")+Ed[T][0];break}if(null==rt)return void(m._isValid=!1)}if(!ae&&null!=rt)return void(m._isValid=!1);if(V[4]){if(!Fh.exec(V[4]))return void(m._isValid=!1);Pt="Z"}m._f=pe+(rt||"")+(Pt||""),fm(m)}else m._isValid=!1}function fy(m){var T=parseInt(m,10);return T<=49?2e3+T:T<=999?1900+T:T}function Vh(m){var A,T=du.exec(function hS(m){return m.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(m._i));if(T){if(A=function Zb(m,T,A,P,V,ae){var pe=[fy(m),Jp.indexOf(T),parseInt(A,10),parseInt(P,10),parseInt(V,10)];return ae&&pe.push(parseInt(ae,10)),pe}(T[4],T[3],T[2],T[5],T[6],T[7]),!function yc(m,T,A){return!m||il.indexOf(m)===new Date(T[0],T[1],T[2]).getDay()||(tt(A).weekdayMismatch=!0,A._isValid=!1,!1)}(T[1],A,m))return;m._a=A,m._tzm=function eT(m,T,A){if(m)return Yl[m];if(T)return 0;var P=parseInt(A,10),V=P%100;return(P-V)/100*60+V}(T[8],T[9],T[10]),m._d=_d.apply(null,m._a),m._d.setUTCMinutes(m._d.getUTCMinutes()-m._tzm),tt(m).rfc2822=!0}else m._isValid=!1}function hu(m,T,A){return m??T??A}function oo(m){var T,A,V,ae,pe,P=[];if(!m._d){for(V=function hm(m){var T=new Date(b.now());return m._useUTC?[T.getUTCFullYear(),T.getUTCMonth(),T.getUTCDate()]:[T.getFullYear(),T.getMonth(),T.getDate()]}(m),m._w&&null==m._a[st]&&null==m._a[Sr]&&function my(m){var T,A,P,V,ae,pe,rt,Pt,nn;null!=(T=m._w).GG||null!=T.W||null!=T.E?(ae=1,pe=4,A=hu(T.GG,m._a[Tt],rl(ir(),1,4).year),P=hu(T.W,1),((V=hu(T.E,1))<1||V>7)&&(Pt=!0)):(ae=m._locale._week.dow,pe=m._locale._week.doy,nn=rl(ir(),ae,pe),A=hu(T.gg,m._a[Tt],nn.year),P=hu(T.w,nn.week),null!=T.d?((V=T.d)<0||V>6)&&(Pt=!0):null!=T.e?(V=T.e+ae,(T.e<0||T.e>6)&&(Pt=!0)):V=ae),P<1||P>Io(A,ae,pe)?tt(m)._overflowWeeks=!0:null!=Pt?tt(m)._overflowWeekday=!0:(rt=yd(A,P,V,ae,pe),m._a[Tt]=rt.year,m._dayOfYear=rt.dayOfYear)}(m),null!=m._dayOfYear&&(pe=hu(m._a[Tt],V[Tt]),(m._dayOfYear>ru(pe)||0===m._dayOfYear)&&(tt(m)._overflowDayOfYear=!0),A=_d(pe,0,m._dayOfYear),m._a[Sr]=A.getUTCMonth(),m._a[st]=A.getUTCDate()),T=0;T<3&&null==m._a[T];++T)m._a[T]=P[T]=V[T];for(;T<7;T++)m._a[T]=P[T]=null==m._a[T]?2===T?1:0:m._a[T];24===m._a[Ot]&&0===m._a[_r]&&0===m._a[js]&&0===m._a[Za]&&(m._nextDay=!0,m._a[Ot]=0),m._d=(m._useUTC?_d:Yb).apply(null,P),ae=m._useUTC?m._d.getUTCDay():m._d.getDay(),null!=m._tzm&&m._d.setUTCMinutes(m._d.getUTCMinutes()-m._tzm),m._nextDay&&(m._a[Ot]=24),m._w&&typeof m._w.d<"u"&&m._w.d!==ae&&(tt(m).weekdayMismatch=!0)}}function fm(m){if(m._f!==b.ISO_8601)if(m._f!==b.RFC_2822){m._a=[],tt(m).empty=!0;var A,P,V,ae,pe,nn,Ln,T=""+m._i,rt=T.length,Pt=0;for(Ln=(V=gr(m._f,m._locale).match(Me)||[]).length,A=0;A<Ln;A++)(P=(T.match(Wn(ae=V[A],m))||[])[0])&&((pe=T.substr(0,T.indexOf(P))).length>0&&tt(m).unusedInput.push(pe),T=T.slice(T.indexOf(P)+P.length),Pt+=P.length),Pe[ae]?(P?tt(m).empty=!1:tt(m).unusedTokens.push(ae),Mt(ae,P,m)):m._strict&&!P&&tt(m).unusedTokens.push(ae);tt(m).charsLeftOver=rt-Pt,T.length>0&&tt(m).unusedInput.push(T),m._a[Ot]<=12&&!0===tt(m).bigHour&&m._a[Ot]>0&&(tt(m).bigHour=void 0),tt(m).parsedDateParts=m._a.slice(0),tt(m).meridiem=m._meridiem,m._a[Ot]=function pm(m,T,A){var P;return null==A?T:null!=m.meridiemHour?m.meridiemHour(T,A):(null!=m.isPM&&((P=m.isPM(A))&&T<12&&(T+=12),!P&&12===T&&(T=0)),T)}(m._locale,m._a[Ot],m._meridiem),null!==(nn=tt(m).era)&&(m._a[Tt]=m._locale.erasConvertYear(nn,m._a[Tt])),oo(m),al(m)}else Vh(m);else dm(m)}function gy(m){var T=m._i,A=m._f;return m._locale=m._locale||ol(m._l),null===T||void 0===A&&""===T?Yt({nullInput:!0}):("string"==typeof T&&(m._i=T=m._locale.preparse(T)),en(T)?new Sn(al(T)):(te(T)?m._d=T:E(A)?function Uh(m){var T,A,P,V,ae,pe,rt=!1,Pt=m._f.length;if(0===Pt)return tt(m).invalidFormat=!0,void(m._d=new Date(NaN));for(V=0;V<Pt;V++)ae=0,pe=!1,T=ri({},m),null!=m._useUTC&&(T._useUTC=m._useUTC),T._f=m._f[V],fm(T),Kt(T)&&(pe=!0),ae+=tt(T).charsLeftOver,ae+=10*tt(T).unusedTokens.length,tt(T).score=ae,rt?ae<P&&(P=ae,A=T):(null==P||ae<P||pe)&&(P=ae,A=T,pe&&(rt=!0));Ue(m,A||T)}(m):A?fm(m):function _y(m){var T=m._i;G(T)?m._d=new Date(b.now()):te(T)?m._d=new Date(T.valueOf()):"string"==typeof T?function py(m){var T=ll.exec(m._i);null===T?(dm(m),!1===m._isValid&&(delete m._isValid,Vh(m),!1===m._isValid&&(delete m._isValid,m._strict?m._isValid=!1:b.createFromInputFallback(m)))):m._d=new Date(+T[1])}(m):E(T)?(m._a=be(T.slice(0),function(A){return parseInt(A,10)}),oo(m)):C(T)?function Bl(m){if(!m._d){var T=io(m._i);m._a=be([T.year,T.month,void 0===T.day?T.date:T.day,T.hour,T.minute,T.second,T.millisecond],function(P){return P&&parseInt(P,10)}),oo(m)}}(m):de(T)?m._d=new Date(T):b.createFromInputFallback(m)}(m),Kt(m)||(m._d=null),m))}function jh(m,T,A,P,V){var ae={};return(!0===T||!1===T)&&(P=T,T=void 0),(!0===A||!1===A)&&(P=A,A=void 0),(C(m)&&F(m)||E(m)&&0===m.length)&&(m=void 0),ae._isAMomentObject=!0,ae._useUTC=ae._isUTC=V,ae._l=A,ae._i=m,ae._f=T,ae._strict=P,function tT(m){var T=new Sn(al(gy(m)));return T._nextDay&&(T.add(1,"d"),T._nextDay=void 0),T}(ae)}function ir(m,T,A,P){return jh(m,T,A,P,!1)}b.createFromInputFallback=Et("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(m){m._d=new Date(m._i+(m._useUTC?" UTC":""))}),b.ISO_8601=function(){},b.RFC_2822=function(){};var Yh=Et("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var m=ir.apply(null,arguments);return this.isValid()&&m.isValid()?m<this?this:m:Yt()}),yy=Et("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var m=ir.apply(null,arguments);return this.isValid()&&m.isValid()?m>this?this:m:Yt()});function vy(m,T){var A,P;if(1===T.length&&E(T[0])&&(T=T[0]),!T.length)return ir();for(A=T[0],P=1;P<T.length;++P)(!T[P].isValid()||T[P][m](A))&&(A=T[P]);return A}var Hl=["year","quarter","month","week","day","hour","minute","second","millisecond"];function De(m){var T=io(m),A=T.year||0,P=T.quarter||0,V=T.month||0,ae=T.week||T.isoWeek||0,pe=T.day||0,rt=T.hour||0,Pt=T.minute||0,nn=T.second||0,Ln=T.millisecond||0;this._isValid=function Ty(m){var T,P,A=!1,V=Hl.length;for(T in m)if(L(m,T)&&(-1===oi.call(Hl,T)||null!=m[T]&&isNaN(m[T])))return!1;for(P=0;P<V;++P)if(m[Hl[P]]){if(A)return!1;parseFloat(m[Hl[P]])!==X(m[Hl[P]])&&(A=!0)}return!0}(T),this._milliseconds=+Ln+1e3*nn+6e4*Pt+1e3*rt*60*60,this._days=+pe+7*ae,this._months=+V+3*P+12*A,this._data={},this._locale=ol(),this._bubble()}function ea(m){return m instanceof De}function fu(m){return m<0?-1*Math.round(-1*m):Math.round(m)}function iT(m,T){Se(m,0,0,function(){var A=this.utcOffset(),P="+";return A<0&&(A=-A,P="-"),P+Vr(~~(A/60),2)+T+Vr(~~A%60,2)})}iT("Z",":"),iT("ZZ",""),gt("Z",pc),gt("ZZ",pc),ue(["Z","ZZ"],function(m,T,A){A._useUTC=!0,A._tzm=zl(pc,m)});var Ey=/([\+\-]|\d\d)/gi;function zl(m,T){var V,ae,A=(T||"").match(m);return null===A?null:0===(ae=60*(V=((A[A.length-1]||[])+"").match(Ey)||["-",0,0])[1]+X(V[2]))?0:"+"===V[0]?ae:-ae}function ao(m,T){var A,P;return T._isUTC?(A=T.clone(),P=(en(m)||te(m)?m.valueOf():ir(m).valueOf())-A.valueOf(),A._d.setTime(A._d.valueOf()+P),b.updateOffset(A,!1),A):ir(m).local()}function Ta(m){return-Math.round(m._d.getTimezoneOffset())}function $h(){return!!this.isValid()&&this._isUTC&&0===this._offset}b.updateOffset=function(){};var Pi=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Md=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ea(m,T){var V,ae,pe,A=m,P=null;return ea(m)?A={ms:m._milliseconds,d:m._days,M:m._months}:de(m)||!isNaN(+m)?(A={},T?A[T]=+m:A.milliseconds=+m):(P=Pi.exec(m))?(V="-"===P[1]?-1:1,A={y:0,d:X(P[st])*V,h:X(P[Ot])*V,m:X(P[_r])*V,s:X(P[js])*V,ms:X(fu(1e3*P[Za]))*V}):(P=Md.exec(m))?A={y:ul(P[2],V="-"===P[1]?-1:1),M:ul(P[3],V),w:ul(P[4],V),d:ul(P[5],V),h:ul(P[6],V),m:ul(P[7],V),s:ul(P[8],V)}:null==A?A={}:"object"==typeof A&&("from"in A||"to"in A)&&(pe=function qt(m,T){var A;return m.isValid()&&T.isValid()?(T=ao(T,m),m.isBefore(T)?A=sr(m,T):((A=sr(T,m)).milliseconds=-A.milliseconds,A.months=-A.months),A):{milliseconds:0,months:0}}(ir(A.from),ir(A.to)),(A={}).ms=pe.milliseconds,A.M=pe.months),ae=new De(A),ea(m)&&L(m,"_locale")&&(ae._locale=m._locale),ea(m)&&L(m,"_isValid")&&(ae._isValid=m._isValid),ae}function ul(m,T){var A=m&&parseFloat(m.replace(",","."));return(isNaN(A)?0:A)*T}function sr(m,T){var A={};return A.months=T.month()-m.month()+12*(T.year()-m.year()),m.clone().add(A.months,"M").isAfter(T)&&--A.months,A.milliseconds=+T-+m.clone().add(A.months,"M"),A}function vc(m,T){return function(A,P){var ae;return null!==P&&!isNaN(+P)&&(dt(T,"moment()."+T+"(period, number) is deprecated. Please use moment()."+T+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),ae=A,A=P,P=ae),Ys(this,Ea(A,P),m),this}}function Ys(m,T,A,P){var V=T._milliseconds,ae=fu(T._days),pe=fu(T._months);m.isValid()&&(P=P??!0,pe&&tl(m,el(m,"Month")+pe*A),ae&&ey(m,"Date",el(m,"Date")+ae*A),V&&m._d.setTime(m._d.valueOf()+V*A),P&&b.updateOffset(m,ae||pe))}Ea.fn=De.prototype,Ea.invalid=function Bh(){return Ea(NaN)};var mS=vc(1,"add"),gm=vc(-1,"subtract");function sT(m){return"string"==typeof m||m instanceof String}function Ma(m){return en(m)||te(m)||sT(m)||de(m)||function Iy(m){var T=E(m),A=!1;return T&&(A=0===m.filter(function(P){return!de(P)&&sT(m)}).length),T&&A}(m)||function gS(m){var V,T=C(m)&&!F(m),A=!1,P=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],pe=P.length;for(V=0;V<pe;V+=1)A=A||L(m,P[V]);return T&&A}(m)||null==m}function Id(m,T){if(m.date()<T.date())return-Id(T,m);var A=12*(T.year()-m.year())+(T.month()-m.month()),P=m.clone().add(A,"months");return-(A+(T-P<0?(T-P)/(P-m.clone().add(A-1,"months")):(T-P)/(m.clone().add(A+1,"months")-P)))||0}function Wh(m){var T;return void 0===m?this._locale._abbr:(null!=(T=ol(m))&&(this._locale=T),this)}b.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",b.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Gh=Et("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(m){return void 0===m?this.localeData():this.locale(m)});function _m(){return this._locale}var pu=6e4,$e=60*pu,ym=3506328*$e;function bc(m,T){return(m%T+T)%T}function xy(m,T,A){return m<100&&m>=0?new Date(m+400,T,A)-ym:new Date(m,T,A).valueOf()}function vm(m,T,A){return m<100&&m>=0?Date.UTC(m+400,T,A)-ym:Date.UTC(m,T,A)}function Gt(m,T){return T.erasAbbrRegex(m)}function Qh(){var V,ae,pe,rt,Pt,m=[],T=[],A=[],P=[],nn=this.eras();for(V=0,ae=nn.length;V<ae;++V)pe=z(nn[V].name),rt=z(nn[V].abbr),Pt=z(nn[V].narrow),T.push(pe),m.push(rt),A.push(Pt),P.push(pe),P.push(rt),P.push(Pt);this._erasRegex=new RegExp("^("+P.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+T.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+m.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+A.join("|")+")","i")}function zr(m,T){Se(0,[m,m.length],0,T)}function Mm(m,T,A,P,V){var ae;return null==m?rl(this,P,V).year:(T>(ae=Io(m,P,V))&&(T=ae),Uy.call(this,m,T,A,P,V))}function Uy(m,T,A,P,V){var ae=yd(m,T,A,P,V),pe=_d(ae.year,0,ae.dayOfYear);return this.year(pe.getUTCFullYear()),this.month(pe.getUTCMonth()),this.date(pe.getUTCDate()),this}Se("N",0,0,"eraAbbr"),Se("NN",0,0,"eraAbbr"),Se("NNN",0,0,"eraAbbr"),Se("NNNN",0,0,"eraName"),Se("NNNNN",0,0,"eraNarrow"),Se("y",["y",1],"yo","eraYear"),Se("y",["yy",2],0,"eraYear"),Se("y",["yyy",3],0,"eraYear"),Se("y",["yyyy",4],0,"eraYear"),gt("N",Gt),gt("NN",Gt),gt("NNN",Gt),gt("NNNN",function Tm(m,T){return T.erasNameRegex(m)}),gt("NNNNN",function Vy(m,T){return T.erasNarrowRegex(m)}),ue(["N","NN","NNN","NNNN","NNNNN"],function(m,T,A,P){var V=A._locale.erasParse(m,P,A._strict);V?tt(A).era=V:tt(A).invalidEra=m}),gt("y",Mo),gt("yy",Mo),gt("yyy",Mo),gt("yyyy",Mo),gt("yo",function Yi(m,T){return T._eraYearOrdinalRegex||Mo}),ue(["y","yy","yyy","yyyy"],Tt),ue(["yo"],function(m,T,A,P){var V;A._locale._eraYearOrdinalRegex&&(V=m.match(A._locale._eraYearOrdinalRegex)),T[Tt]=A._locale.eraYearOrdinalParse?A._locale.eraYearOrdinalParse(m,V):parseInt(m,10)}),Se(0,["gg",2],0,function(){return this.weekYear()%100}),Se(0,["GG",2],0,function(){return this.isoWeekYear()%100}),zr("gggg","weekYear"),zr("ggggg","weekYear"),zr("GGGG","isoWeekYear"),zr("GGGGG","isoWeekYear"),gt("G",Ur),gt("g",Ur),gt("GG",hn,si),gt("gg",hn,si),gt("GGGG",Ul,Fl),gt("gggg",Ul,Fl),gt("GGGGG",Cs,Jo),gt("ggggg",Cs,Jo),je(["gggg","ggggg","GGGG","GGGGG"],function(m,T,A,P){T[P.substr(0,2)]=X(m)}),je(["gg","GG"],function(m,T,A,P){T[P]=b.parseTwoDigitYear(m)}),Se("Q",0,"Qo","quarter"),gt("Q",so),ue("Q",function(m,T){T[Sr]=3*(X(m)-1)}),Se("D",["DD",2],"Do","date"),gt("D",hn,Ji),gt("DD",hn,si),gt("Do",function(m,T){return m?T._dayOfMonthOrdinalParse||T._ordinalParse:T._dayOfMonthOrdinalParseLenient}),ue(["D","DD"],st),ue("Do",function(m,T){T[st]=X(m.match(hn)[0])});var Im=su("Date",!0);Se("DDD",["DDDD",3],"DDDo","dayOfYear"),gt("DDD",_s),gt("DDDD",Nl),ue(["DDD","DDDD"],function(m,T,A){A._dayOfYear=X(m)}),Se("m",["mm",2],0,"minute"),gt("m",hn,Xi),gt("mm",hn,si),ue(["m","mm"],_r);var Jh=su("Minutes",!1);Se("s",["ss",2],0,"second"),gt("s",hn,Xi),gt("ss",hn,si),ue(["s","ss"],js);var na,Le,ve=su("Seconds",!1);for(Se("S",0,0,function(){return~~(this.millisecond()/100)}),Se(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Se(0,["SSS",3],0,"millisecond"),Se(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Se(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Se(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Se(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Se(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Se(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),gt("S",_s,so),gt("SS",_s,si),gt("SSS",_s,Nl),na="SSSS";na.length<=9;na+="S")gt(na,Mo);function _u(m,T){T[Za]=X(1e3*("0."+m))}for(na="S";na.length<=9;na+="S")ue(na,_u);Le=su("Milliseconds",!1),Se("z",0,0,"zoneAbbr"),Se("zz",0,0,"zoneName");var Ze=Sn.prototype;function yT(m){return m}Ze.add=mS,Ze.calendar=function oT(m,T){1===arguments.length&&(arguments[0]?Ma(arguments[0])?(m=arguments[0],T=void 0):function _S(m){var V,T=C(m)&&!F(m),A=!1,P=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(V=0;V<P.length;V+=1)A=A||L(m,P[V]);return T&&A}(arguments[0])&&(T=arguments[0],m=void 0):(m=void 0,T=void 0));var A=m||ir(),P=ao(A,this).startOf("day"),V=b.calendarFormat(this,P)||"sameElse",ae=T&&(Ie(T[V])?T[V].call(this,A):T[V]);return this.format(ae||this.localeData().calendar(V,this,ir(A)))},Ze.clone=function Cy(){return new Sn(this)},Ze.diff=function lT(m,T,A){var P,V,ae;if(!this.isValid())return NaN;if(!(P=ao(m,this)).isValid())return NaN;switch(V=6e4*(P.utcOffset()-this.utcOffset()),T=bi(T)){case"year":ae=Id(this,P)/12;break;case"month":ae=Id(this,P);break;case"quarter":ae=Id(this,P)/3;break;case"second":ae=(this-P)/1e3;break;case"minute":ae=(this-P)/6e4;break;case"hour":ae=(this-P)/36e5;break;case"day":ae=(this-P-V)/864e5;break;case"week":ae=(this-P-V)/6048e5;break;default:ae=this-P}return A?ae:q(ae)},Ze.endOf=function ky(m){var T,A;if(void 0===(m=bi(m))||"millisecond"===m||!this.isValid())return this;switch(A=this._isUTC?vm:xy,m){case"year":T=A(this.year()+1,0,1)-1;break;case"quarter":T=A(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":T=A(this.year(),this.month()+1,1)-1;break;case"week":T=A(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":T=A(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":T=A(this.year(),this.month(),this.date()+1)-1;break;case"hour":T=this._d.valueOf(),T+=$e-bc(T+(this._isUTC?0:this.utcOffset()*pu),$e)-1;break;case"minute":T=this._d.valueOf(),T+=pu-bc(T,pu)-1;break;case"second":T=this._d.valueOf(),T+=1e3-bc(T,1e3)-1}return this._d.setTime(T),b.updateOffset(this,!0),this},Ze.format=function ai(m){m||(m=this.isUtc()?b.defaultFormatUtc:b.defaultFormat);var T=un(this,m);return this.localeData().postformat(T)},Ze.from=function qh(m,T){return this.isValid()&&(en(m)&&m.isValid()||ir(m).isValid())?Ea({to:this,from:m}).locale(this.locale()).humanize(!T):this.localeData().invalidDate()},Ze.fromNow=function uT(m){return this.from(ir(),m)},Ze.to=function Ay(m,T){return this.isValid()&&(en(m)&&m.isValid()||ir(m).isValid())?Ea({from:this,to:m}).locale(this.locale()).humanize(!T):this.localeData().invalidDate()},Ze.toNow=function dT(m){return this.to(ir(),m)},Ze.get=function Fb(m){return Ie(this[m=bi(m)])?this[m]():this},Ze.invalidAt=function Oy(){return tt(this).overflow},Ze.isAfter=function aT(m,T){var A=en(m)?m:ir(m);return!(!this.isValid()||!A.isValid())&&("millisecond"===(T=bi(T)||"millisecond")?this.valueOf()>A.valueOf():A.valueOf()<this.clone().startOf(T).valueOf())},Ze.isBefore=function Sy(m,T){var A=en(m)?m:ir(m);return!(!this.isValid()||!A.isValid())&&("millisecond"===(T=bi(T)||"millisecond")?this.valueOf()<A.valueOf():this.clone().endOf(T).valueOf()<A.valueOf())},Ze.isBetween=function lo(m,T,A,P){var V=en(m)?m:ir(m),ae=en(T)?T:ir(T);return!!(this.isValid()&&V.isValid()&&ae.isValid())&&("("===(P=P||"()")[0]?this.isAfter(V,A):!this.isBefore(V,A))&&(")"===P[1]?this.isBefore(ae,A):!this.isAfter(ae,A))},Ze.isSame=function Ut(m,T){var P,A=en(m)?m:ir(m);return!(!this.isValid()||!A.isValid())&&("millisecond"===(T=bi(T)||"millisecond")?this.valueOf()===A.valueOf():(P=A.valueOf(),this.clone().startOf(T).valueOf()<=P&&P<=this.clone().endOf(T).valueOf()))},Ze.isSameOrAfter=function yS(m,T){return this.isSame(m,T)||this.isAfter(m,T)},Ze.isSameOrBefore=function vS(m,T){return this.isSame(m,T)||this.isBefore(m,T)},Ze.isValid=function Ly(){return Kt(this)},Ze.lang=Gh,Ze.locale=Wh,Ze.localeData=_m,Ze.max=yy,Ze.min=Yh,Ze.parsingFlags=function bm(){return Ue({},tt(this))},Ze.set=function Vb(m,T){if("object"==typeof m){var P,A=function fc(m){var A,T=[];for(A in m)L(m,A)&&T.push({unit:A,priority:va[A]});return T.sort(function(P,V){return P.priority-V.priority}),T}(m=io(m)),V=A.length;for(P=0;P<V;P++)this[A[P].unit](m[A[P].unit])}else if(Ie(this[m=bi(m)]))return this[m](T);return this},Ze.startOf=function bS(m){var T,A;if(void 0===(m=bi(m))||"millisecond"===m||!this.isValid())return this;switch(A=this._isUTC?vm:xy,m){case"year":T=A(this.year(),0,1);break;case"quarter":T=A(this.year(),this.month()-this.month()%3,1);break;case"month":T=A(this.year(),this.month(),1);break;case"week":T=A(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":T=A(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":T=A(this.year(),this.month(),this.date());break;case"hour":T=this._d.valueOf(),T-=bc(T+(this._isUTC?0:this.utcOffset()*pu),$e);break;case"minute":T=this._d.valueOf(),T-=bc(T,pu);break;case"second":T=this._d.valueOf(),T-=bc(T,1e3)}return this._d.setTime(T),b.updateOffset(this,!0),this},Ze.subtract=gm,Ze.toArray=function TS(){var m=this;return[m.year(),m.month(),m.date(),m.hour(),m.minute(),m.second(),m.millisecond()]},Ze.toObject=function wm(){var m=this;return{years:m.year(),months:m.month(),date:m.date(),hours:m.hours(),minutes:m.minutes(),seconds:m.seconds(),milliseconds:m.milliseconds()}},Ze.toDate=function Ry(){return new Date(this.valueOf())},Ze.toISOString=function Be(m){if(!this.isValid())return null;var T=!0!==m,A=T?this.clone().utc():this;return A.year()<0||A.year()>9999?un(A,T?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ie(Date.prototype.toISOString)?T?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",un(A,"Z")):un(A,T?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Ze.inspect=function cT(){if(!this.isValid())return"moment.invali
1d(/* "+this._i+" */)";var A,P,m="moment",T="";return this.isLocal()||(m=0===this.utcOffset()?"moment.utc":"moment.parseZone",T="Z"),A="["+m+'("]',P=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(A+P+"-MM-DD[T]HH:mm:ss.SSS"+T+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(Ze[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Ze.toJSON=function Dd(){return this.isValid()?this.toISOString():null},Ze.toString=function wS(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Ze.unix=function mu(){return Math.floor(this.valueOf()/1e3)},Ze.valueOf=function Py(){return this._d.valueOf()-6e4*(this._offset||0)},Ze.creationData=function ta(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Ze.eraName=function Rn(){var m,T,A,P=this.localeData().eras();for(m=0,T=P.length;m<T;++m)if(A=this.clone().startOf("day").valueOf(),P[m].since<=A&&A<=P[m].until||P[m].until<=A&&A<=P[m].since)return P[m].name;return""},Ze.eraNarrow=function ES(){var m,T,A,P=this.localeData().eras();for(m=0,T=P.length;m<T;++m)if(A=this.clone().startOf("day").valueOf(),P[m].since<=A&&A<=P[m].until||P[m].until<=A&&A<=P[m].since)return P[m].narrow;return""},Ze.eraAbbr=function hT(){var m,T,A,P=this.localeData().eras();for(m=0,T=P.length;m<T;++m)if(A=this.clone().startOf("day").valueOf(),P[m].since<=A&&A<=P[m].until||P[m].until<=A&&A<=P[m].since)return P[m].abbr;return""},Ze.eraYear=function fT(){var m,T,A,P,V=this.localeData().eras();for(m=0,T=V.length;m<T;++m)if(A=V[m].since<=V[m].until?1:-1,P=this.clone().startOf("day").valueOf(),V[m].since<=P&&P<=V[m].until||V[m].until<=P&&P<=V[m].since)return(this.year()-b(V[m].since).year())*A+V[m].offset;return this.year()},Ze.year=iu,Ze.isLeapYear=function Ct(){return Lt(this.year())},Ze.weekYear=function MS(m){return Mm.call(this,m,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},Ze.isoWeekYear=function Ec(m){return Mm.call(this,m,this.isoWeek(),this.isoWeekday(),1,4)},Ze.quarter=Ze.quarters=function dl(m){return null==m?Math.ceil((this.month()+1)/3):this.month(3*(m-1)+this.month()%3)},Ze.month=gd,Ze.daysInMonth=function ny(){return md(this.year(),this.month())},Ze.week=Ze.weeks=function Hb(m){var T=this.localeData().week(this);return null==m?T:this.add(7*(m-T),"d")},Ze.isoWeek=Ze.isoWeeks=function em(m){var T=rl(this,1,4).week;return null==m?T:this.add(7*(m-T),"d")},Ze.weeksInYear=function pT(){var m=this.localeData()._week;return Io(this.year(),m.dow,m.doy)},Ze.weeksInWeekYear=function mT(){var m=this.localeData()._week;return Io(this.weekYear(),m.dow,m.doy)},Ze.isoWeeksInYear=function Em(){return Io(this.year(),1,4)},Ze.isoWeeksInISOWeekYear=function gu(){return Io(this.isoWeekYear(),1,4)},Ze.date=Im,Ze.day=Ze.days=function ly(m){if(!this.isValid())return null!=m?this:NaN;var T=el(this,"Day");return null!=m?(m=function tm(m,T){return"string"!=typeof m?m:isNaN(m)?"number"==typeof(m=T.weekdaysParse(m))?m:null:parseInt(m,10)}(m,this.localeData()),this.add(m-T,"d")):T},Ze.weekday=function vd(m){if(!this.isValid())return null!=m?this:NaN;var T=(this.day()+7-this.localeData()._week.dow)%7;return null==m?T:this.add(m-T,"d")},Ze.isoWeekday=function wd(m){if(!this.isValid())return null!=m?this:NaN;if(null!=m){var T=function zb(m,T){return"string"==typeof m?T.weekdaysParse(m)%7||7:isNaN(m)?null:m}(m,this.localeData());return this.day(this.day()%7?T:T-7)}return this.day()||7},Ze.dayOfYear=function Do(m){var T=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==m?T:this.add(m-T,"d")},Ze.hour=Ze.hours=Gb,Ze.minute=Ze.minutes=Jh,Ze.second=Ze.seconds=ve,Ze.millisecond=Ze.milliseconds=Le,Ze.utcOffset=function cl(m,T,A){var V,P=this._offset||0;if(!this.isValid())return null!=m?this:NaN;if(null!=m){if("string"==typeof m){if(null===(m=zl(pc,m)))return this}else Math.abs(m)<16&&!A&&(m*=60);return!this._isUTC&&T&&(V=Ta(this)),this._offset=m,this._isUTC=!0,null!=V&&this.add(V,"m"),P!==m&&(!T||this._changeInProgress?Ys(this,Ea(m-P,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,b.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?P:Ta(this)},Ze.utc=function zh(m){return this.utcOffset(0,m)},Ze.local=function mm(m){return this._isUTC&&(this.utcOffset(0,m),this._isUTC=!1,m&&this.subtract(Ta(this),"m")),this},Ze.parseZone=function ql(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var m=zl(Xo,this._i);null!=m?this.utcOffset(m):this.utcOffset(0,!0)}return this},Ze.hasAlignedHourOffset=function fS(m){return!!this.isValid()&&(m=m?ir(m).utcOffset():0,(this.utcOffset()-m)%60==0)},Ze.isDST=function Gn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Ze.isLocal=function My(){return!!this.isValid()&&!this._isUTC},Ze.isUtcOffset=function Bn(){return!!this.isValid()&&this._isUTC},Ze.isUtc=$h,Ze.isUTC=$h,Ze.zoneAbbr=function Dm(){return this._isUTC?"UTC":""},Ze.zoneName=function Mc(){return this._isUTC?"Coordinated Universal Time":""},Ze.dates=Et("dates accessor is deprecated. Use date instead.",Im),Ze.months=Et("months accessor is deprecated. Use month instead",gd),Ze.years=Et("years accessor is deprecated. Use year instead",iu),Ze.zone=Et("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function $l(m,T){return null!=m?("string"!=typeof m&&(m=-m),this.utcOffset(m,T),this):-this.utcOffset()}),Ze.isDSTShifted=Et("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function pS(){if(!G(this._isDSTShifted))return this._isDSTShifted;var T,m={};return ri(m,this),(m=gy(m))._a?(T=m._isUTC?ft(m._a):ir(m._a),this._isDSTShifted=this.isValid()&&function Hh(m,T,A){var pe,P=Math.min(m.length,T.length),V=Math.abs(m.length-T.length),ae=0;for(pe=0;pe<P;pe++)(A&&m[pe]!==T[pe]||!A&&X(m[pe])!==X(T[pe]))&&ae++;return ae+V}(m._a,T.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var an=Ir.prototype;function Xh(m,T,A,P){var V=ol(),ae=ft().set(P,T);return V[A](ae,m)}function Cd(m,T,A){if(de(m)&&(T=m,m=void 0),m=m||"",null!=T)return Xh(m,T,A,"month");var P,V=[];for(P=0;P<12;P++)V[P]=Xh(m,P,A,"month");return V}function Cm(m,T,A,P){"boolean"==typeof m?(de(T)&&(A=T,T=void 0),T=T||""):(A=T=m,m=!1,de(T)&&(A=T,T=void 0),T=T||"");var pe,V=ol(),ae=m?V._week.dow:0,rt=[];if(null!=A)return Xh(T,(A+ae)%7,P,"day");for(pe=0;pe<7;pe++)rt[pe]=Xh(T,(pe+ae)%7,P,"day");return rt}an.calendar=function Fr(m,T,A){var P=this._calendar[m]||this._calendar.sameElse;return Ie(P)?P.call(T,A):P},an.longDateFormat=function dn(m){var T=this._longDateFormat[m],A=this._longDateFormat[m.toUpperCase()];return T||!A?T:(this._longDateFormat[m]=A.match(Me).map(function(P){return"MMMM"===P||"MM"===P||"DD"===P||"dddd"===P?P.slice(1):P}).join(""),this._longDateFormat[m])},an.invalidDate=function Cr(){return this._invalidDate},an.ordinal=function Un(m){return this._ordinal.replace("%d",m)},an.preparse=yT,an.postformat=yT,an.relativeTime=function rr(m,T,A,P){var V=this._relativeTime[A];return Ie(V)?V(m,T,A,P):V.replace(/%d/i,m)},an.pastFuture=function hc(m,T){var A=this._relativeTime[m>0?"future":"past"];return Ie(A)?A(T):A.replace(/%s/i,T)},an.set=function pn(m){var T,A;for(A in m)L(m,A)&&(Ie(T=m[A])?this[A]=T:this["_"+A]=T);this._config=m,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},an.eras=function Tc(m,T){var A,P,V,ae=this._eras||ol("en")._eras;for(A=0,P=ae.length;A<P;++A)switch("string"==typeof ae[A].since&&(V=b(ae[A].since).startOf("day"),ae[A].since=V.valueOf()),typeof ae[A].until){case"undefined":ae[A].until=1/0;break;case"string":V=b(ae[A].until).startOf("day").valueOf(),ae[A].until=V.valueOf()}return ae},an.erasParse=function Ny(m,T,A){var P,V,pe,rt,Pt,ae=this.eras();for(m=m.toUpperCase(),P=0,V=ae.length;P<V;++P)if(pe=ae[P].name.toUpperCase(),rt=ae[P].abbr.toUpperCase(),Pt=ae[P].narrow.toUpperCase(),A)switch(T){case"N":case"NN":case"NNN":if(rt===m)return ae[P];break;case"NNNN":if(pe===m)return ae[P];break;case"NNNNN":if(Pt===m)return ae[P]}else if([pe,rt,Pt].indexOf(m)>=0)return ae[P]},an.erasConvertYear=function Wt(m,T){var A=m.since<=m.until?1:-1;return void 0===T?b(m.since).year():b(m.since).year()+(T-m.offset)*A},an.erasAbbrRegex=function Kh(m){return L(this,"_erasAbbrRegex")||Qh.call(this),m?this._erasAbbrRegex:this._erasRegex},an.erasNameRegex=function yO(m){return L(this,"_erasNameRegex")||Qh.call(this),m?this._erasNameRegex:this._erasRegex},an.erasNarrowRegex=function Fy(m){return L(this,"_erasNarrowRegex")||Qh.call(this),m?this._erasNarrowRegex:this._erasRegex},an.months=function jb(m,T){return m?E(this._months)?this._months[m.month()]:this._months[(this._months.isFormat||Lh).test(T)?"format":"standalone"][m.month()]:E(this._months)?this._months:this._months.standalone},an.monthsShort=function Ar(m,T){return m?E(this._monthsShort)?this._monthsShort[m.month()]:this._monthsShort[Lh.test(T)?"format":"standalone"][m.month()]:E(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},an.monthsParse=function jl(m,T,A){var P,V,ae;if(this._monthsParseExact)return wa.call(this,m,T,A);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),P=0;P<12;P++){if(V=ft([2e3,P]),A&&!this._longMonthsParse[P]&&(this._longMonthsParse[P]=new RegExp("^"+this.months(V,"").replace(".","")+"$","i"),this._shortMonthsParse[P]=new RegExp("^"+this.monthsShort(V,"").replace(".","")+"$","i")),!A&&!this._monthsParse[P]&&(ae="^"+this.months(V,"")+"|^"+this.monthsShort(V,""),this._monthsParse[P]=new RegExp(ae.replace(".",""),"i")),A&&"MMMM"===T&&this._longMonthsParse[P].test(m))return P;if(A&&"MMM"===T&&this._shortMonthsParse[P].test(m))return P;if(!A&&this._monthsParse[P].test(m))return P}},an.monthsRegex=function iy(m){return this._monthsParseExact?(L(this,"_monthsRegex")||Xp.call(this),m?this._monthsStrictRegex:this._monthsRegex):(L(this,"_monthsRegex")||(this._monthsRegex=Ub),this._monthsStrictRegex&&m?this._monthsStrictRegex:this._monthsRegex)},an.monthsShortRegex=function ry(m){return this._monthsParseExact?(L(this,"_monthsRegex")||Xp.call(this),m?this._monthsShortStrictRegex:this._monthsShortRegex):(L(this,"_monthsShortRegex")||(this._monthsShortRegex=ty),this._monthsShortStrictRegex&&m?this._monthsShortStrictRegex:this._monthsShortRegex)},an.week=function au(m){return rl(m,this._week.dow,this._week.doy).week},an.firstDayOfYear=function sy(){return this._week.doy},an.firstDayOfWeek=function Zp(){return this._week.dow},an.weekdays=function uS(m,T){var A=E(this._weekdays)?this._weekdays:this._weekdays[m&&!0!==m&&this._weekdays.isFormat.test(T)?"format":"standalone"];return!0===m?Oh(A,this._week.dow):m?A[m.day()]:A},an.weekdaysMin=function dS(m){return!0===m?Oh(this._weekdaysMin,this._week.dow):m?this._weekdaysMin[m.day()]:this._weekdaysMin},an.weekdaysShort=function Hr(m){return!0===m?Oh(this._weekdaysShort,this._week.dow):m?this._weekdaysShort[m.day()]:this._weekdaysShort},an.weekdaysParse=function $b(m,T,A){var P,V,ae;if(this._weekdaysParseExact)return rm.call(this,m,T,A);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),P=0;P<7;P++){if(V=ft([2e3,1]).day(P),A&&!this._fullWeekdaysParse[P]&&(this._fullWeekdaysParse[P]=new RegExp("^"+this.weekdays(V,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[P]=new RegExp("^"+this.weekdaysShort(V,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[P]=new RegExp("^"+this.weekdaysMin(V,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[P]||(ae="^"+this.weekdays(V,"")+"|^"+this.weekdaysShort(V,"")+"|^"+this.weekdaysMin(V,""),this._weekdaysParse[P]=new RegExp(ae.replace(".",""),"i")),A&&"dddd"===T&&this._fullWeekdaysParse[P].test(m))return P;if(A&&"ddd"===T&&this._shortWeekdaysParse[P].test(m))return P;if(A&&"dd"===T&&this._minWeekdaysParse[P].test(m))return P;if(!A&&this._weekdaysParse[P].test(m))return P}},an.weekdaysRegex=function im(m){return this._weekdaysParseExact?(L(this,"_weekdaysRegex")||bd.call(this),m?this._weekdaysStrictRegex:this._weekdaysRegex):(L(this,"_weekdaysRegex")||(this._weekdaysRegex=oy),this._weekdaysStrictRegex&&m?this._weekdaysStrictRegex:this._weekdaysRegex)},an.weekdaysShortRegex=function sm(m){return this._weekdaysParseExact?(L(this,"_weekdaysRegex")||bd.call(this),m?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(L(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=cS),this._weekdaysShortStrictRegex&&m?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},an.weekdaysMinRegex=function qb(m){return this._weekdaysParseExact?(L(this,"_weekdaysRegex")||bd.call(this),m?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(L(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ay),this._weekdaysMinStrictRegex&&m?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},an.isPM=function Wb(m){return"p"===(m+"").toLowerCase().charAt(0)},an.meridiem=function am(m,T,A){return m>11?A?"pm":"PM":A?"am":"AM"},sl("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(m){var T=m%10;return m+(1===X(m%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")}}),b.lang=Et("moment.lang is deprecated. Use moment.locale instead.",sl),b.langData=Et("moment.langData is deprecated. Use moment.localeData instead.",ol);var Co=Math.abs;function Zh(m,T,A,P){var V=Ea(T,A);return m._milliseconds+=P*V._milliseconds,m._days+=P*V._days,m._months+=P*V._months,m._bubble()}function wT(m){return m<0?Math.floor(m):Math.ceil(m)}function ef(m){return 4800*m/146097}function Wl(m){return 146097*m/4800}function So(m){return function(){return this.as(m)}}var ra=So("ms"),En=So("s"),Ia=So("m"),tf=So("h"),Sm=So("d"),wu=So("w"),Dc=So("M"),co=So("Q"),bu=So("y"),Am=ra;function Da(m){return function(){return this.isValid()?this._data[m]:NaN}}var Sd=Da("milliseconds"),By=Da("seconds"),Hy=Da("minutes"),xm=Da("hours"),nf=Da("days"),bT=Da("months"),TT=Da("years");var hl=Math.round,fl={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ET(m,T,A,P,V){return V.relativeTime(T||1,!!A,m,P)}var Rm=Math.abs;function Eu(m){return(m>0)-(m<0)||+m}function Mu(){if(!this.isValid())return this.localeData().invalidDate();var P,V,ae,pe,Pt,nn,Ln,Ca,m=Rm(this._milliseconds)/1e3,T=Rm(this._days),A=Rm(this._months),rt=this.asSeconds();
vendor: 6,567 bytes, line 1
1return rt?(P=q(m/60),V=q(P/60),m%=60,P%=60,ae=q(A/12),A%=12,pe=m?m.toFixed(3).replace(/\.?0+$/,""):"",Pt=rt<0?"-":"",nn=Eu(this._months)!==Eu(rt)?"-":"",Ln=Eu(this._days)!==Eu(rt)?"-":"",Ca=Eu(this._milliseconds)!==Eu(rt)?"-":"",Pt+"P"+(ae?nn+ae+"Y":"")+(A?nn+A+"M":"")+(T?Ln+T+"D":"")+(V||P||m?"T":"")+(V?Ca+V+"H":"")+(P?Ca+P+"M":"")+(m?Ca+pe+"S":"")):"P0D"}var xt=De.prototype;return xt.isValid=function rT(){return this._isValid},xt.abs=function vu(){var m=this._data;return this._milliseconds=Co(this._milliseconds),this._days=Co(this._days),this._months=Co(this._months),m.milliseconds=Co(m.milliseconds),m.seconds=Co(m.seconds),m.minutes=Co(m.minutes),m.hours=Co(m.hours),m.months=Co(m.months),m.years=Co(m.years),this},xt.add=function IS(m,T){return Zh(this,m,T,1)},xt.subtract=function Yy(m,T){return Zh(this,m,T,-1)},xt.as=function DS(m){if(!this.isValid())return NaN;var T,A,P=this._milliseconds;if("month"===(m=bi(m))||"quarter"===m||"year"===m)switch(T=this._days+P/864e5,A=this._months+ef(T),m){case"month":return A;case"quarter":return A/3;case"year":return A/12}else switch(T=this._days+Math.round(Wl(this._months)),m){case"week":return T/7+P/6048e5;case"day":return T+P/864e5;case"hour":return 24*T+P/36e5;case"minute":return 1440*T+P/6e4;case"second":return 86400*T+P/1e3;case"millisecond":return Math.floor(864e5*T)+P;default:throw new Error("Unknown unit "+m)}},xt.asMilliseconds=ra,xt.asSeconds=En,xt.asMinutes=Ia,xt.asHours=tf,xt.asDays=Sm,xt.asWeeks=wu,xt.asMonths=Dc,xt.asQuarters=co,xt.asYears=bu,xt.valueOf=Am,xt._bubble=function Bs(){var V,ae,pe,rt,Pt,m=this._milliseconds,T=this._days,A=this._months,P=this._data;return m>=0&&T>=0&&A>=0||m<=0&&T<=0&&A<=0||(m+=864e5*wT(Wl(A)+T),T=0,A=0),P.milliseconds=m%1e3,V=q(m/1e3),P.seconds=V%60,ae=q(V/60),P.minutes=ae%60,pe=q(ae/60),P.hours=pe%24,T+=q(pe/24),A+=Pt=q(ef(T)),T-=wT(Wl(Pt)),rt=q(A/12),A%=12,P.days=T,P.months=A,P.years=rt,this},xt.clone=function Cc(){return Ea(this)},xt.get=function Gl(m){return m=bi(m),this.isValid()?this[m+"s"]():NaN},xt.milliseconds=Sd,xt.seconds=By,xt.minutes=Hy,xt.hours=xm,xt.days=nf,xt.weeks=function uo(){return q(this.days()/7)},xt.months=bT,xt.years=TT,xt.humanize=function Tu(m,T){if(!this.isValid())return this.localeData().invalidDate();var V,ae,A=!1,P=fl;return"object"==typeof m&&(T=m,m=!1),"boolean"==typeof m&&(A=m),"object"==typeof T&&(P=Object.assign({},fl,T),null!=T.s&&null==T.ss&&(P.ss=T.s-1)),ae=function km(m,T,A,P){var V=Ea(m).abs(),ae=hl(V.as("s")),pe=hl(V.as("m")),rt=hl(V.as("h")),Pt=hl(V.as("d")),nn=hl(V.as("M")),Ln=hl(V.as("w")),Ca=hl(V.as("y")),pl=ae<=A.ss&&["s",ae]||ae<A.s&&["ss",ae]||pe<=1&&["m"]||pe<A.m&&["mm",pe]||rt<=1&&["h"]||rt<A.h&&["hh",rt]||Pt<=1&&["d"]||Pt<A.d&&["dd",Pt];return null!=A.w&&(pl=pl||Ln<=1&&["w"]||Ln<A.w&&["ww",Ln]),(pl=pl||nn<=1&&["M"]||nn<A.M&&["MM",nn]||Ca<=1&&["y"]||["yy",Ca])[2]=T,pl[3]=+m>0,pl[4]=P,ET.apply(null,pl)}(this,!A,P,V=this.localeData()),A&&(ae=V.pastFuture(+this,ae)),V.postformat(ae)},xt.toISOString=Mu,xt.toString=Mu,xt.toJSON=Mu,xt.locale=Wh,xt.localeData=_m,xt.toIsoString=Et("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Mu),xt.lang=Gh,Se("X",0,0,"unix"),Se("x",0,0,"valueOf"),gt("x",Ur),gt("X",/[+-]?\d+(\.\d{1,3})?/),ue("X",function(m,T,A){A._d=new Date(1e3*parseFloat(m))}),ue("x",function(m,T,A){A._d=new Date(X(m))}),b.version="2.30.1",function I(m){D=m}(ir),b.fn=Ze,b.min=function wy(){return vy("isBefore",[].slice.call(arguments,0))},b.max=function nT(){return vy("isAfter",[].slice.call(arguments,0))},b.now=function(){return Date.now?Date.now():+new Date},b.utc=ft,b.unix=function gT(m){return ir(1e3*m)},b.months=function Ic(m,T){return Cd(m,T,"months")},b.isDate=te,b.locale=sl,b.invalid=Yt,b.duration=Ea,b.isMoment=en,b.weekdays=function Zi(m,T,A){return Cm(m,T,A,"weekdays")},b.parseZone=function _T(){return ir.apply(null,arguments).parseZone()},b.localeData=ol,b.isDuration=ea,b.monthsShort=function vT(m,T){return Cd(m,T,"monthsShort")},b.weekdaysMin=function jy(m,T,A){return Cm(m,T,A,"weekdaysMin")},b.defineLocale=uu,b.updateLocale=function hy(m,T){if(null!=T){var A,P,V=lu;null!=Pn[m]&&null!=Pn[m].parentLocale?Pn[m].set(kn(Pn[m]._config,T)):(null!=(P=cu(m))&&(V=P._config),T=kn(V,T),null==P&&(T.abbr=m),(A=new Ir(T)).parentLocale=Pn[m],Pn[m]=A),sl(m)}else null!=Pn[m]&&(null!=Pn[m].parentLocale?(Pn[m]=Pn[m].parentLocale,m===sl()&&sl(m)):null!=Pn[m]&&delete Pn[m]);return Pn[m]},b.locales=function cm(){return nr(Pn)},b.weekdaysShort=function yu(m,T,A){return Cm(m,T,A,"weekdaysShort")},b.normalizeUnits=bi,b.relativeTimeRounding=function Pm(m){return void 0===m?hl:"function"==typeof m&&(hl=m,!0)},b.relativeTimeThreshold=function MT(m,T){return void 0!==fl[m]&&(void 0===T?fl[m]:(fl[m]=T,"s"===m&&(fl.ss=T-1),!0))},b.calendarFormat=function Dy(m,T){var A=m.diff(T,"days",!0);return A<-6?"sameElse":A<-1?"lastWeek":A<0?"lastDay":A<1?"sameDay":A<2?"nextDay":A<7?"nextWeek":"sameElse"},b.prototype=Ze,b.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"},b}()},5358:(Ee,we,$)=>{var D={"./af":1544,"./af.js":1544,"./ar":3108,"./ar-dz":2155,"./ar-dz.js":2155,"./ar-kw":3583,"./ar-kw.js":3583,"./ar-ly":1638,"./ar-ly.js":1638,"./ar-ma":7823,"./ar-ma.js":7823,"./ar-ps":7712,"./ar-ps.js":7712,"./ar-sa":8261,"./ar-sa.js":8261,"./ar-tn":6703,"./ar-tn.js":6703,"./ar.js":3108,"./az":6508,"./az.js":6508,"./be":6766,"./be.js":6766,"./bg":8564,"./bg.js":8564,"./bm":7462,"./bm.js":7462,"./bn":7107,"./bn-bd":3438,"./bn-bd.js":3438,"./bn.js":7107,"./bo":9004,"./bo.js":9004,"./br":927,"./br.js":927,"./bs":7768,"./bs.js":7768,"./ca":6291,"./ca.js":6291,"./cs":5301,"./cs.js":5301,"./cv":6666,"./cv.js":6666,"./cy":5163,"./cy.js":5163,"./da":7360,"./da.js":7360,"./de":5932,"./de-at":3248,"./de-at.js":3248,"./de-ch":3222,"./de-ch.js":3222,"./de.js":5932,"./dv":6405,"./dv.js":6405,"./el":718,"./el.js":718,"./en-au":6319,"./en-au.js":6319,"./en-ca":597,"./en-ca.js":597,"./en-gb":1800,"./en-gb.js":1800,"./en-ie":807,"./en-ie.js":807,"./en-il":5960,"./en-il.js":5960,"./en-in":4418,"./en-in.js":4418,"./en-nz":6865,"./en-nz.js":6865,"./en-sg":2647,"./en-sg.js":2647,"./eo":1931,"./eo.js":1931,"./es":6679,"./es-do":1805,"./es-do.js":1805,"./es-mx":3445,"./es-mx.js":3445,"./es-us":1516,"./es-us.js":1516,"./es.js":6679,"./et":8150,"./et.js":8150,"./eu":757,"./eu.js":757,"./fa":5742,"./fa.js":5742,"./fi":3958,"./fi.js":3958,"./fil":672
10,"./fil.js":6720,"./fo":8352,"./fo.js":8352,"./fr":4059,"./fr-ca":2096,"./fr-ca.js":2096,"./fr-ch":5759,"./fr-ch.js":5759,"./fr.js":4059,"./fy":5958,"./fy.js":5958,"./ga":4143,"./ga.js":4143,"./gd":7028,"./gd.js":7028,"./gl":428,"./gl.js":428,"./gom-deva":6861,"./gom-deva.js":6861,"./gom-latn":7718,"./gom-latn.js":7718,"./gu":6827,"./gu.js":6827,"./he":1936,"./he.js":1936,"./hi":1332,"./hi.js":1332,"./hr":1957,"./hr.js":1957,"./hu":8928,"./hu.js":8928,"./hy-am":6215,"./hy-am.js":6215,"./id":586,"./id.js":586,"./is":211,"./is.js":211,"./it":170,"./it-ch":2340,"./it-ch.js":2340,"./it.js":170,"./ja":9770,"./ja.js":9770,"./jv":3875,"./jv.js":3875,"./ka":9499,"./ka.js":9499,"./kk":3573,"./kk.js":3573,"./km":8807,"./km.js":8807,"./kn":5082,"./kn.js":5082,"./ko":137,"./ko.js":137,"./ku":111,"./ku-kmr":3744,"./ku-kmr.js":3744,"./ku.js":111,"./ky":9187,"./ky.js":9187,"./lb":5969,"./lb.js":5969,"./lo":3526,"./lo.js":3526,"./lt":411,"./lt.js":411,"./lv":2621,"./lv.js":2621,"./me":5869,"./me.js":5869,"./mi":5881,"./mi.js":5881,"./mk":2391,"./mk.js":2391,"./ml":1126,"./ml.js":1126,"./mn":4892,"./mn.js":4892,"./mr":9080,"./mr.js":9080,"./ms":399,"./ms-my":5950,"./ms-my.js":5950,"./ms.js":399,"./mt":9902,"./mt.js":9902,"./my":2985,"./my.js":2985,"./nb":7859,"./nb.js":7859,"./ne":3642,"./ne.js":3642,"./nl":5441,"./nl-be":9875,"./nl-be.js":9875,"./nl.js":5441,"./nn":1311,"./nn.js":1311,"./oc-lnc":2567,"./oc-lnc.js":2567,"./pa-in":6962,"./pa-in.js":6962,"./pl":1063,"./pl.js":1063,"./pt":8719,"./pt-br":7476,"./pt-br.js":7476,"./pt.js":8719,"./ro":1004,"./ro.js":1004,"./ru":1326,"./ru.js":1326,"./sd":2608,"./sd.js":2608,"./se":3911,"./se.js":3911,"./si":5147,"./si.js":5147,"./sk":3741,"./sk.js":3741,"./sl":3e3,"./sl.js":3e3,"./sq":451,"./sq.js":451,"./sr":5046,"./sr-cyrl":905,"./sr-cyrl.js":905,"./sr.js":5046,"./ss":5765,"./ss.js":5765,"./sv":9290,"./sv.js":9290,"./sw":3449,"./sw.js":3449,"./ta":2688,"./ta.js":2688,"./te":2060,"./te.js":2060,"./tet":3290,"./tet.js":3290,"./tg":8294,"./tg.js":8294,"./th":1231,"./th.js":1231,"./tk":3746,"./tk.js":3746,"./tl-ph":9040,"./tl-ph.js":9040,"./tlh":7187,"./tlh.js":7187,"./tr":153,"./tr.js":153,"./tzl":8521,"./tzl.js":8521,"./tzm":8010,"./tzm-latn":2234,"./tzm-latn.js":2234,"./tzm.js":8010,"./ug-cn":3349,"./ug-cn.js":3349,"./uk":8479,"./uk.js":8479,"./ur":3024,"./ur.js":3024,"./uz":9800,"./uz-latn":2376,"./uz-latn.js":2376,"./uz.js":9800,"./vi":9366,"./vi.js":9366,"./x-pseudo":9702,"./x-pseudo.js":9702,"./yo":2655,"./yo.js":2655,"./zh-cn":575,"./zh-cn.js":575,"./zh-hk":8351,"./zh-hk.js":8351,"./zh-mo":1626,"./zh-mo.js":1626,"./zh-tw":8887,"./zh-tw.js":8887};function b(E){var C=I(E);return $(C)}function I(E){if(!$.o(D,E)){var C=new Error("Cannot find module '"+E+"'");throw C.code="MODULE_NOT_FOUND",C}return D[E]}b.keys=function(){return Object.keys(D)},b.resolve=I,Ee.exports=b,b.id=5358},9574:(Ee,we,$)=>{"use strict";$.d(we,{A:()=>tt});var D=$(1401),b=$(8779),I=$(1631),E=$(5398);class C{constructor(Kt,Yt){this._delegate=Kt,this.firebase=Yt,(0,I._addComponent)(Kt,new b.uA("app-compat",()=>this,"PUBLIC")),this.container=Kt.container}get automaticDataCollectionEnabled(){return this._delegate.automaticDataCollectionEnabled}set automaticDataCollectionEnabled(Kt){this._delegate.automaticDataCollectionEnabled=Kt}get name(){return this._delegate.name}get options(){return this._delegate.options}delete(){return new Promise(Kt=>{this._delegate.checkDestroyed(),Kt()}).then(()=>(this.firebase.INTERNAL.removeApp(this.name),(0,I.deleteApp)(this._delegate)))}_getService(Kt,Yt=I._DEFAULT_ENTRY_NAME){var Nr;this._delegate.checkDestroyed();const ni=this._delegate.container.getProvider(Kt);return!ni.isInitialized()&&"EXPLICIT"===(null===(Nr=ni.getComponent())||void 0===Nr?void 0:Nr.instantiationMode)&&ni.initialize(),ni.getImmediate({identifier:Yt})}_removeServiceInstance(Kt,Yt=I._DEFAULT_ENTRY_NAME){this._delegate.container.getProvider(Kt).clearInstance(Yt)}_addComponent(Kt){(0,I._addComponent)(this._delegate,Kt)}_addOrOverwriteComponent(Kt){(0,I._addOrOverwriteComponent)(this._delegate,Kt)}toJSON(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}}}const F=new D.FA("app-compat","Firebase",{"no-app":"No Firebase App '{$appName}
1' has been created - call Firebase App.initializeApp()","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance."}),te=function de(){const Zt=function G(Zt){const Kt={},Yt={__esModule:!0,initializeApp:function ri(Et,Xe={}){const dt=I.initializeApp(Et,Xe);if((0,D.gR)(Kt,dt.name))return Kt[dt.name];const Ie=new Zt(dt,Yt);return Kt[dt.name]=Ie,Ie},app:ni,registerVersion:I.registerVersion,setLogLevel:I.setLogLevel,onLog:I.onLog,apps:null,SDK_VERSION:I.SDK_VERSION,INTERNAL:{registerComponent:function en(Et){const Xe=Et.name,dt=Xe.replace("-compat","");if(I._registerComponent(Et)&&"PUBLIC"===Et.type){const Ie=(pn=ni())=>{if("function"!=typeof pn[dt])throw F.create("invalid-app-argument",{appName:Xe});return pn[dt]()};void 0!==Et.serviceProps&&(0,D.zw)(Ie,Et.serviceProps),Yt[dt]=Ie,Zt.prototype[dt]=function(...pn){return this._getService.bind(this,Xe).apply(this,Et.multipleInstances?pn:[])}}return"PUBLIC"===Et.type?Yt[dt]:null},removeApp:function Nr(Et){delete Kt[Et]},useAsService:function ii(Et,Xe){return"serverAuth"===Xe?null:Xe},modularAPIs:I}};function ni(Et){if(!(0,D.gR)(Kt,Et=Et||I._DEFAULT_ENTRY_NAME))throw F.create("no-app",{appName:Et});return Kt[Et]}return Yt.default=Yt,Object.defineProperty(Yt,"apps",{get:function Sn(){return Object.keys(Kt).map(Et=>Kt[Et])}}),ni.App=Zt,Yt}(C);return Zt.INTERNAL=Object.assign(Object.assign({},Zt.INTERNAL),{createFirebaseNamespace:de,extendNamespace:function Kt(Yt){(0,D.zw)(Zt,Yt)},createSubscribe:D.tD,ErrorFactory:D.FA,deepExtend:D.zw}),Zt}(),be=new E.Vy("@firebase/app-compat");if((0,D.Bd)()&&void 0!==self.firebase){be.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");const Zt=self.firebase.SDK_VERSION;Zt&&Zt.indexOf("LITE")>=0&&be.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 tt=te;!function Xt(Zt){(0,I.registerVersion)("@firebase/app-compat","0.2.35",Zt)}()},1631:(Ee,we,$)=>{"use strict";$.r(we),$.d(we,{FirebaseError:()=>E.g,SDK_VERSION:()=>hc,_DEFAULT_ENTRY_NAME:()=>Ce,_addComponent:()=>pt,_addOrOverwriteComponent:()=>un,_apps:()=>Pe,_clearComponents:()=>on,_components:()=>Fe,_getProvider:()=>zt,_isFirebaseApp:()=>Dr,_isFirebaseServerApp:()=>Cr,_registerComponent:()=>gr,_removeServiceInstance:()=>dn,_serverApps:()=>Se,deleteApp:()=>fc,getApp:()=>io,getApps:()=>va,initializeApp:()=>Xa,initializeServerApp:()=>bi,onLog:()=>Nl,registerVersion:()=>si,setLogLevel:()=>Fl});var D=$(467),b=$(8779),I=$(5398),E=$(1401),C=$(6749);class L{constructor(z){this.container=z}getPlatformInfoString(){return this.container.getProviders().map(q=>{if(function F(at){const z=at.getComponent();return"VERSION"===z?.type}(q)){const X=q.getImmediate();return`${X.library}/${X.version}`}return null}).filter(q=>q).join(" ")}}const G="@firebase/app",de="0.10.5",te=new I.Vy("@firebase/app"),be="@firebase/app-compat",Ue="@firebase/analytics-compat",ft="@firebase/analytics",Xt="@firebase/app-check-compat",tt="@firebase/app-check",Zt="@firebase/auth",Kt="@firebase/auth-compat",Yt="@firebase/database",Nr="@firebase/database-compat",ni="@firebase/functions",ri="@firebase/functions-compat",Sn="@firebase/installations",en="@firebase/installations-compat",ii="@firebase/messaging",Et="@firebase/messaging-compat",Xe="@firebase/performance",dt="@firebase/performance-compat",Ie="@firebase/remote-config",pn="@firebase/remote-config-compat",kn="@firebase/storage",Ir="@firebase/storage-compat",nr="@firebase/firestore",Eo="@firebase/vertexai-preview",Fr="@firebase/firestore-compat",Vr="firebase",Ce="[DEFAULT]",Ne={[G]:"fire-core",[be]:"fire-core-compat",[ft]:"fire-analytics",[Ue]:"fire-analytics-compat",[tt]:"fire-app-check",[Xt]:"fire-app-check-compat",[Zt]:"fire-auth",[Kt]:"fire-auth-compat",[Yt]:"fire-rtdb",[Nr]:"fire-rtdb-compat",[ni]:"fire-fn",[ri]:"fire-fn-compat",[Sn]:"fire-iid",[en]:"fire-iid-compat",[ii]:"fire-fcm",[Et]:"fire-fcm-compat",[Xe]:"fire-perf",[dt]:"fire-perf-compat",[Ie]:"fire-rc",[pn]:"fire-rc-compat",[kn]:"fire-g
1cs",[Ir]:"fire-gcs-compat",[nr]:"fire-fst",[Fr]:"fire-fst-compat",[Eo]:"fire-vertex","fire-js":"fire-js",[Vr]:"fire-js-all"},Pe=new Map,Se=new Map,Fe=new Map;function pt(at,z){try{at.container.addComponent(z)}catch(q){te.debug(`Component ${z.name} failed to register with FirebaseApp ${at.name}`,q)}}function un(at,z){at.container.addOrOverwriteComponent(z)}function gr(at){const z=at.name;if(Fe.has(z))return te.debug(`There were multiple attempts to register component ${z}.`),!1;Fe.set(z,at);for(const q of Pe.values())pt(q,at);for(const q of Se.values())pt(q,at);return!0}function zt(at,z){const q=at.container.getProvider("heartbeat").getImmediate({optional:!0});return q&&q.triggerHeartbeat(),at.container.getProvider(z)}function dn(at,z,q=Ce){zt(at,z).clearInstance(q)}function Dr(at){return void 0!==at.options}function Cr(at){return void 0!==at.settings}function on(){Fe.clear()}const Un=new E.FA("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","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
1d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class ji{constructor(z,q,X){this._isDeleted=!1,this._options=Object.assign({},z),this._config=Object.assign({},q),this._name=q.name,this._automaticDataCollectionEnabled=q.automaticDataCollectionEnabled,this._container=X,this.container.addComponent(new b.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(z){this.checkDestroyed(),this._automaticDataCollectionEnabled=z}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(z){this._isDeleted=z}checkDestroyed(){if(this.isDeleted)throw Un.create("app-deleted",{appName:this._name})}}class rr extends ji{constructor(z,q,X,ge){const ue=void 0!==q.automaticDataCollectionEnabled&&q.automaticDataCollectionEnabled,je={name:X,automaticDataCollectionEnabled:ue};super(void 0!==z.apiKey?z:z.options,je,ge),this._serverConfig=Object.assign({automaticDataCollectionEnabled:ue},q),this._finalizationRegistry=new FinalizationRegistry(()=>{this.automaticCleanup()}),this._refCount=0,this.incRefCount(this._serverConfig.releaseOnDeref),this._serverConfig.releaseOnDeref=void 0,q.releaseOnDeref=void 0,si(G,de,"serverapp")}toJSON(){}get refCount(){return this._refCount}incRefCount(z){this.isDeleted||(this._refCount++,void 0!==z&&this._finalizationRegistry.register(z,this))}decRefCount(){return this.isDeleted?0:--this._refCount}automaticCleanup(){fc(this)}get settings(){return this.checkDestroyed(),this._serverConfig}checkDestroyed(){if(this.isDeleted)throw Un.create("server-app-deleted")}}const hc="10.12.2";function Xa(at,z={}){let q=at;"object"!=typeof z&&(z={name:z});const X=Object.assign({name:Ce,automaticDataCollectionEnabled:!1},z),ge=X.name;if("string"!=typeof ge||!ge)throw Un.create("bad-app-name",{appName:String(ge)});if(q||(q=(0,E.T9)()),!q)throw Un.create("no-options");const ue=Pe.get(ge);if(ue){if((0,E.bD)(q,ue.options)&&(0,E.bD)(X,ue.config))return ue;throw Un.create("duplicate-app",{appName:ge})}const je=new b.h1(ge);for(const Lt of Fe.values())je.addComponent(Lt);const Mt=new ji(q,X,je);return Pe.set(ge,Mt),Mt}function bi(at,z){if((0,E.Bd)())throw Un.create("invalid-server-app-environment");let q;void 0===z.automaticDataCollectionEnabled&&(z.automaticDataCollectionEnabled=!1),q=Dr(at)?at.options:at;const X=Object.assign(Object.assign({},z),q);if(void 0!==X.releaseOnDeref&&delete X.releaseOnDeref,void 0!==z.releaseOnDeref&&typeof FinalizationRegistry>"u")throw Un.create("finalization-registry-not-supported",{});const ue=""+(Tt=JSON.stringify(X),[...Tt].reduce((Sr,st)=>Math.imul(31,Sr)+st.charCodeAt(0)|0,0)),je=Se.get(ue);var Tt;if(je)return je.incRefCount(z.releaseOnDeref),je;const Mt=new b.h1(ue);for(const Tt of Fe.values())Mt.addComponent(Tt);const Lt=new rr(q,z,ue,Mt);return Se.set(ue,Lt),Lt}function io(at=Ce){const z=Pe.get(at);if(!z&&at===Ce&&(0,E.T9)())return Xa();if(!z)throw Un.create("no-app",{appName:at});return z}function va(){return Array.from(Pe.values())}function fc(at){return so.apply(this,arguments)}function so(){return(so=(0,D.A)(function*(at){let z=!1;const q=at.name;Pe.has(q)?(z=!0,Pe.delete(q)):Se.has(q)&&at.decRefCount()<=0&&(Se.delete(q),z=!0),z&&(yield Promise.all(at.container.getProviders().map(X=>X.delete())),at.isDeleted=!0)})).apply(this,arguments)}function si(at,z,q){var X;let ge=null!==(X=Ne[at])&&void 0!==X?X:at;q&&(ge+=`-${q}`);const ue=ge.match(/\s|\//),je=z.match(/\s|\//);if(ue||je){const Mt=[`Unable to register library "${ge}" with version "${z}":`];return ue&&Mt.push(`library name "${ge}" contains illegal characters (whitespace or "/")`),ue&&je&&Mt.push("and"),je&&Mt.push(`version name "${z}" contains illegal characters (whitespace or "/")`),void te.warn(Mt.join(" "))}gr(new b.uA(`${ge}-version`,()=>({library:ge,version:z}),"VERSION"))}function Nl(at,z){if(null!==at&&"function"!=typeof at)throw Un.create("invalid-log-argument");(0,I.Ey)(at,z)}function Fl(at){(0,I.He)(at)}const Jo="firebase-heartbeat-database",hn=1,Us="firebase-heartbeat-store";let Vl=null;function _s(){return Vl||(Vl=(0,C.P2)(Jo,hn,{upgrade:(at,z)=>{if(0===z)try{at.createObjectStore(Us)}catch(q){console.warn(q)}}}).catch(at=>{throw Un.create("idb-open",{originalErrorMessage:at.message})})),Vl}function Cs(){return(Cs=(0,D.A)(function*(at){try{const q=(yield _s()).transaction(Us),X=yield q.objectStore(Us).get(Xo(at));return yield q.done,X}catch(z){if(z instanceof E.g)te.warn(z.message);else{const q=Un.create("idb-get",{originalErrorMessage:z?.message});te.warn(q.message)}}})).apply(this,arguments)}function Mo(at,z){return Ur.apply(this,arguments)}function Ur(){return(Ur=(0,D.A)(function*(at,z){try{const X=(yield _s()).transaction(Us,"readwrite");yield X.objectStore(Us).put(z,Xo(at)),yield X.done}catch(q){if(q instanceof E.g)te.warn(q.message);else{const X=Un.create("idb-set",{originalErrorMessage:q?.message});te.warn(X.message)}}})).apply(this,arguments)}function Xo(at){return`${at.name}!${at.options.appId}`}class Zo{constructor(z){this.container=z,this._heartbeatsCache=null;const q=this.container.getProvider("app").getImmediate();this._storage=new gc(q),this._heartbeatsCachePromise=this._storage.read().then(X=>(this._heartbeatsCache=X,X))}triggerHeartbeat(){var z=this;return(0,D.A)(function*(){var q,X;const ue=z.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),je=Ji();if((null!=(null===(q=z._heartbeatsCache)||void 0===q?void 0:q.heartbeats)||(z._heartbeatsCache=yield z._heartbeatsCachePromise,null!=(null===(X=z._heartbeatsCache)||void 0===X?void 0:X.heartbeats)))&&z._heartbeatsCache.lastSentHeartbeatDate!==je&&!z._heartbeatsCache.heartbeats.some(Mt=>Mt.date===je))return z._heartbeatsCache.heartbeats.push({date:je,agent:ue}),z._heartbeatsCache.heartbeats=z._heartbeatsCache.heartbeats.filter(Mt=>{const Lt=new Date(Mt.date).valueOf();return Date.now()-Lt<=2592e6}),z._storage.overwrite(z._heartbeatsCache)})()}getHeartbeatsHeader(){var z=this;return(0,D.A)(function*(){var q;if(null===z._heartbeatsCache&&(yield z._heartbeatsCachePromise),null==(null===(q=z._heartbeatsCache)||void 0===q?void 0:q.heartbeats)||0===z._heartbeatsCache.heartbeats.length)return"";const X=Ji(),{heartbeatsToSend:ge,unsentEntries:ue}=function Xi(at,z=1024){const q=[];let X=at.slice();for(const ge of at){const ue=q.find(je=>je.agent===ge.agent);if(ue){if(ue.dates.push(ge.date),gt(q)>z){ue.dates.pop();break}}else if(q.push({agent:ge.agent,dates:[ge.date]}),gt(q)>
1z){q.pop();break}X=X.slice(1)}return{heartbeatsToSend:q,unsentEntries:X}}(z._heartbeatsCache.heartbeats),je=(0,E.Uj)(JSON.stringify({version:2,heartbeats:ge}));return z._heartbeatsCache.lastSentHeartbeatDate=X,ue.length>0?(z._heartbeatsCache.heartbeats=ue,yield z._storage.overwrite(z._heartbeatsCache)):(z._heartbeatsCache.heartbeats=[],z._storage.overwrite(z._heartbeatsCache)),je})()}}function Ji(){return(new Date).toISOString().substring(0,10)}class gc{constructor(z){this.app=z,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,D.A)(function*(){return!!(0,E.zW)()&&(0,E.eX)().then(()=>!0).catch(()=>!1)})()}read(){var z=this;return(0,D.A)(function*(){if(yield z._canUseIndexedDBPromise){const X=yield function Ul(at){return Cs.apply(this,arguments)}(z.app);return X?.heartbeats?X:{heartbeats:[]}}return{heartbeats:[]}})()}overwrite(z){var q=this;return(0,D.A)(function*(){var X;if(yield q._canUseIndexedDBPromise){const ue=yield q.read();return Mo(q.app,{lastSentHeartbeatDate:null!==(X=z.lastSentHeartbeatDate)&&void 0!==X?X:ue.lastSentHeartbeatDate,heartbeats:z.heartbeats})}})()}add(z){var q=this;return(0,D.A)(function*(){var X;if(yield q._canUseIndexedDBPromise){const ue=yield q.read();return Mo(q.app,{lastSentHeartbeatDate:null!==(X=z.lastSentHeartbeatDate)&&void 0!==X?X:ue.lastSentHeartbeatDate,heartbeats:[...ue.heartbeats,...z.heartbeats]})}})()}}function gt(at){return(0,E.Uj)(JSON.stringify({version:2,heartbeats:at})).length}!function Wn(at){gr(new b.uA("platform-logger",z=>new L(z),"PRIVATE")),gr(new b.uA("heartbeat",z=>new Zo(z),"PRIVATE")),si(G,de,at),si(G,de,"esm2017"),si("fire-js","")}("")},8779:(Ee,we,$)=>{"use strict";$.d(we,{Kq:()=>C,h1:()=>G,uA:()=>I});var D=$(467),b=$(1401);class I{constructor(te,be,Ue){this.name=te,this.instanceFactory=be,this.type=Ue,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(te){return this.instantiationMode=te,this}setMultipleInstances(te){return this.multipleInstances=te,this}setServiceProps(te){return this.serviceProps=te,this}setInstanceCreatedCallback(te){return this.onInstanceCreated=te,this}}const E="[DEFAULT]";class C{constructor(te,be){this.name=te,this.container=be,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(te){const be=this.normalizeInstanceIdentifier(te);if(!this.instancesDeferred.has(be)){const Ue=new b.cY;if(this.instancesDeferred.set(be,Ue),this.isInitialized(be)||this.shouldAutoInitialize())try{const ft=this.getOrInitializeService({instanceIdentifier:be});ft&&Ue.resolve(ft)}catch{}}return this.instancesDeferred.get(be).promise}getImmediate(te){var be;const Ue=this.normalizeInstanceIdentifier(te?.identifier),ft=null!==(be=te?.optional)&&void 0!==be&&be;if(!this.isInitialized(Ue)&&!this.shouldAutoInitialize()){if(ft)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:Ue})}catch(Xt){if(ft)return null;throw Xt}}getComponent(){return this.component}setComponent(te){if(te.name!==this.name)throw Error(`Mismatching Component ${te.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=te,this.shouldAutoInitialize()){if(function F(de){return"EAGER"===de.instantiationMode}(te))try{this.getOrInitializeService({instanceIdentifier:E})}catch{}for(const[be,Ue]of this.instancesDeferred.entries()){const ft=this.normalizeInstanceIdentifier(be);try{const Xt=this.getOrInitializeService({instanceIdentifier:ft});Ue.resolve(Xt)}catch{}}}}clearInstance(te=E){this.instancesDeferred.delete(te),this.instancesOptions.delete(te),this.instances.delete(te)}delete(){var te=this;return(0,D.A)(function*(){const be=Array.from(te.instances.values());yield Promise.all([...be.filter(Ue=>"INTERNAL"in Ue).map(Ue=>Ue.INTERNAL.delete()),...be.filter(Ue=>"_delete"in Ue).map(Ue=>Ue._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(te=E){return this.instances.has(te)}getOptions(te=E){return this.instancesOptions.get(te)||{}}initialize(te={}){const{options:be={}}=te,Ue=this.normalizeInstanceIdentifier(te.instanceIdentifier);if(this.isInitialized(Ue))throw Error(`${this.name}(${Ue}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);
1const ft=this.getOrInitializeService({instanceIdentifier:Ue,options:be});for(const[Xt,tt]of this.instancesDeferred.entries())Ue===this.normalizeInstanceIdentifier(Xt)&&tt.resolve(ft);return ft}onInit(te,be){var Ue;const ft=this.normalizeInstanceIdentifier(be),Xt=null!==(Ue=this.onInitCallbacks.get(ft))&&void 0!==Ue?Ue:new Set;Xt.add(te),this.onInitCallbacks.set(ft,Xt);const tt=this.instances.get(ft);return tt&&te(tt,ft),()=>{Xt.delete(te)}}invokeOnInitCallbacks(te,be){const Ue=this.onInitCallbacks.get(be);if(Ue)for(const ft of Ue)try{ft(te,be)}catch{}}getOrInitializeService({instanceIdentifier:te,options:be={}}){let Ue=this.instances.get(te);if(!Ue&&this.component&&(Ue=this.component.instanceFactory(this.container,{instanceIdentifier:(de=te,de===E?void 0:de),options:be}),this.instances.set(te,Ue),this.instancesOptions.set(te,be),this.invokeOnInitCallbacks(Ue,te),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,te,Ue)}catch{}var de;return Ue||null}normalizeInstanceIdentifier(te=E){return this.component?this.component.multipleInstances?te:E:te}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class G{constructor(te){this.name=te,this.providers=new Map}addComponent(te){const be=this.getProvider(te.name);if(be.isComponentSet())throw new Error(`Component ${te.name} has already been registered with ${this.name}`);be.setComponent(te)}addOrOverwriteComponent(te){this.getProvider(te.name).isComponentSet()&&this.providers.delete(te.name),this.addComponent(te)}getProvider(te){if(this.providers.has(te))return this.providers.get(te);const be=new C(te,this);return this.providers.set(te,be),be}getProviders(){return Array.from(this.providers.values())}}},5398:(Ee,we,$)=>{"use strict";$.d(we,{$b:()=>b,Ey:()=>de,He:()=>G,Vy:()=>F});const D=[];var b=function(te){return te[te.DEBUG=0]="DEBUG",te[te.VERBOSE=1]="VERBOSE",te[te.INFO=2]="INFO",te[te.WARN=3]="WARN",te[te.ERROR=4]="ERROR",te[te.SILENT=5]="SILENT",te}(b||{});const I={debug:b.DEBUG,verbose:b.VERBOSE,info:b.INFO,warn:b.WARN,error:b.ERROR,silent:b.SILENT},E=b.INFO,C={[b.DEBUG]:"log",[b.VERBOSE]:"log",[b.INFO]:"info",[b.WARN]:"warn",[b.ERROR]:"error"},L=(te,be,...Ue)=>{if(be<te.logLevel)return;const ft=(new Date).toISOString(),Xt=C[be];if(!Xt)throw new Error(`Attempted to log a message with an invalid logType (value: ${be})`);console[Xt](`[${ft}] ${te.name}:`,...Ue)};class F{constructor(be){this.name=be,this._logLevel=E,this._logHandler=L,this._userLogHandler=null,D.push(this)}get logLevel(){return this._logLevel}set logLevel(be){if(!(be in b))throw new TypeError(`Invalid value "${be}" assigned to \`logLevel\``);this._logLevel=be}setLogLevel(be){this._logLevel="string"==typeof be?I[be]:be}get logHandler(){return this._logHandler}set logHandler(be){if("function"!=typeof be)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=be}get userLogHandler(){return this._userLogHandler}set userLogHandler(be){this._userLogHandler=be}debug(...be){this._userLogHandler&&this._userLogHandler(this,b.DEBUG,...be),this._logHandler(this,b.DEBUG,...be)}log(...be){this._userLogHandler&&this._userLogHandler(this,b.VERBOSE,...be),this._logHandler(this,b.VERBOSE,...be)}info(...be){this._userLogHandler&&this._userLogHandler(this,b.INFO,...be),this._logHandler(this,b.INFO,...be)}warn(...be){this._userLogHandler&&this._userLogHandler(this,b.WARN,...be),this._logHandler(this,b.WARN,...be)}error(...be){this._userLogHandler&&this._userLogHandler(this,b.ERROR,...be),this._logHandler(this,b.ERROR,...be)}}function G(te){D.forEach(be=>{be.setLogLevel(te)})}function de(te,be){for(const Ue of D){let ft=null;be&&be.level&&(ft=I[be.level]),Ue.userLogHandler=null===te?null:(Xt,tt,...Zt)=>{const Kt=Zt.map(Yt=>{if(null==Yt)return null;if("string"==typeof Yt)return Yt;if("number"==typeof Yt||"boolean"==typeof Yt)return Yt.toString();if(Yt instanceof Error)return Yt.message;try{return JSON.stringify(Yt)}catch{return null}}).filter(Yt=>Yt).join(" ");tt>=(ft??Xt.logLevel)&&te({level:b[tt].toLowerCase(),message:Kt,args:Zt,type:Xt.name})}}}},7575:(Ee,we,$)=>{"use strict";$.r(we);var D=$(467),b=$(9574),I=$(1631),E=$(1401),C=$(5398),L=$(1635),F=$(8779);const de={FACEBOOK:"facebook.com",GITHUB:"github.com",GOOGLE:"google.com",PASSWORD:"password",PHONE:"phone",TWITTER:"twitter.com"};const tt=function ft(){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 regist
vendor: 9,511 bytes, line 1
1ed 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 incorrect, 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.","unsupported-password-policy-schema-version":"The password policy received from the backend uses a schema version that is not supported by this version of the Firebase SDK.","password-does-not-meet-requirements":"The password does not meet the requirements."
1}},Zt=function Xt(){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."}},Kt=new E.FA("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."}),Nr=new C.Vy("@firebase/auth");function ri(y,...h){Nr.logLevel<=C.$b.ERROR&&Nr.error(`Auth (${I.SDK_VERSION}): ${y}`,...h)}function Sn(y,...h){throw dt(y,...h)}function en(y,...h){return dt(y,...h)}function ii(y,h,p){const v=Object.assign(Object.assign({},Zt()),{[h]:p});return new E.FA("auth","Firebase",v).create(h,{appName:y.name})}function Et(y){return ii(y,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function Xe(y,h,p){if(!(h instanceof p))throw p.name!==h.constructor.name&&Sn(y,"argument-error"),ii(y,"argument-error",`Type of ${h.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function dt(y,...h){if("string"!=typeof y){const p=h[0],v=[...h.slice(1)];return v[0]&&(v[0].appName=y.name),y._errorFactory.create(p,...v)}return Kt.create(y,...h)}function Ie(y,h,...p){if(!y)throw dt(h,...p)}function pn(y){const h="INTERNAL ASSERTION FAILED: "+y;throw ri(h),new Error(h)}function kn(y,h){y||pn(h)}function Ir(){var y;return typeof self<"u"&&(null===(y=self.location)||void 0===y?void 0:y.href)||""}function nr(){return"http:"===Eo()||"https:"===Eo()}function Eo(){var y;return typeof self<"u"&&(null===(y=self.location)||void 0===y?void 0:y.protocol)||null}class Me{constructor(h,p){this.shortDelay=h,this.longDelay=p,kn(p>h,"Short delay should be less than long delay!"),this.isMobile=(0,E.jZ)()||(0,E.lV)()}get(){return function Fr(){return!(typeof navigator<"u"&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(nr()||(0,E.sr)()||"connection"in navigator))||navigator.onLine}()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function Ce(y,h){kn(y.emulator,"Emulator should always be set here");const{url:p}=y.emulator;return h?`${p}${h.startsWith("/")?h.slice(1):h}`:p}class Ne{static initialize(h,p,v){this.fetchImpl=h,p&&(this.headersImpl=p),v&&(this.responseImpl=v)}static fetch(){return this.fetchImpl?this.fetchImpl:typeof self<"u"&&"fetch"in self?self.fetch:typeof globalThis<"u"&&globalThis.fetch?globalThis.fetch:typeof fetch<"u"?fetch:void pn("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:typeof self<"u"&&"Headers"in self?self.Headers:typeof globalThis<"u"&&globalThis.Headers?globalThis.Headers:typeof Headers<"u"?Headers:void pn("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:typeof self<"u"&&"Response"in self?self.Response:typeof globalThis<"u"&&globalThis.Response?globalThis.Response:typeof Response<"u"?Response:void pn("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const Pe={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-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"},Se=new Me(3e4,6e4);function Fe(y,h){return y.tenantId&&!h.tenantId?Object.assign(Object.assign({},h),{tenantId:y.tenantId}):h}function pt(y,h,p,v){return un.apply(this,arguments)}function un(){return(un=(0,D.A)(function*(y,h,p,v,k={}){return gr(y,k,(0,D.A)(function*(){let U={},ne={};v&&("GET"===h?ne=v:U={body:JSON.stringify(v)});const fe=(0,E.Am)(Object.assign({key:y.config.apiKey},ne)).slice(1),Oe=yield y._getAdditionalHeaders();return Oe["Content-Type"]="application/json",y.languageCode&&(Oe["X-Firebase-Locale"]=y.languageCode),Ne.fetch()(Cr(y,y.config.apiHost,p,fe),Object.assign({method:h,headers:Oe,referrerPolicy:"no-referrer"},U))}))})).apply(this,arguments)}function gr(y,h,p){return zt.apply(this,arguments)}function zt(){return(zt=(0,D.A)(function*(y,h,p){y._canInitEmulator=!1;const v=Object.assign(Object.assign({},Pe),h);try{const k=new gs(y),U=yield Promise.race([p(),k.promise]);k.clearNetworkTimeout();const ne=yield U.json();if("needConfirmation"in ne)throw Un(y,"account-exists-with-different-credential",ne);if(U.ok&&!("errorMessage"in ne))return ne;{const fe=U.ok?ne.errorMessage:ne.error.message,[Oe,ot]=fe.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===Oe)throw Un(y,"credential-already-in-use",ne);if("EMAIL_EXISTS"===Oe)throw Un(y,"email-already-in-use",ne);if("USER_DISABLED"===Oe)throw Un(y,"user-disabled",ne);const It=v[Oe]||Oe.toLowerCase().replace(/[_\s]+/g,"-");if(ot)throw ii(y,It,ot);Sn(y,It)}}catch(k){if(k instanceof E.g)throw k;Sn(y,"network-request-failed",{message:String(k)})}})).apply(this,arguments)}function dn(y,h,p,v){return Dr.apply(this,arguments)}function Dr(){return(Dr=(0,D.A)(function*(y,h,p,v,k={}){const U=yield pt(y,h,p,v,k);return"mfaPendingCredential"in U&&Sn(y,"multi-factor-auth-required",{_serverResponse:U}),U})).apply(this,arguments)}function Cr(y,h,p,v){const k=`${h}${p}?${v}`;return y.config.emulator?Ce(y.config,k):`${y.config.apiScheme}://${k}`}function on(y){switch(y){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class gs{constructor(h){this.auth=h,this.timer=null,this.promise=new Promise((p,v)=>{this.timer=setTimeout(()=>v(en(this.auth,"network-request-failed")),Se.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function Un(y,h,p){const v={appName:y.name};p.email&&(v.email=p.email),p.phoneNumber&&(v.phoneNumber=p.phoneNumber);const k=en(y,h,v);return k.customData._tokenResponse=p,k}function ji(y){return void 0!==y&&void 0!==y.getResponse}function rr(y){return void 0!==y&&void 0!==y.enterprise}class hc{constructor(h){if(this.siteKey="",this.recaptchaEnforcementState=[],void 0===h.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=h.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=h.recaptchaEnforcementState}getProviderEnforcementState(h){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(const p of this.recaptchaEnforcementState)if(p.provider&&p.provider===h)return on(p.enforcementState);return null}isProviderEnabled(h){return"ENFORCE"===this.getProviderEnforcementState(h)||"AUDIT"===this.getProviderEnforcementState(h)}}function bi(){return(bi=(0,D.A)(function*(y){return(yield pt(y,"GET","/v1/recaptchaParams")).recaptchaSiteKey||""})).apply(this,arguments)}function io(y,h){return va.apply(this,arguments)}function va(){return(va=(0,D.A)(function*(y,h){return pt(y,"GET","/v2/recaptchaConfig",Fe(y,h))})).apply(this,arguments)}function so(){return(so=(0,D.A)(function*(y,h){return pt(y,"POST","/v1/accounts:delete",h)})).apply(this,arguments)}function Nl(){return(Nl=(0,D.A)(function*(y,h){return pt(y,"POST","/v1/accounts:update",h)})).apply(this,arguments)}function Fl(y,h){return Jo.apply(this,arguments)}function Jo(){return(Jo=(0,D.A)(function*(y,h){return pt(y,"POST","/v1/accounts:lookup",h)})).apply(this,arguments)}function hn(y){if(y)try{const h=new Date(Number(y));if(!isNaN(h.getTime()))return h.toUTCString()}catch{}}function _s(){return(_s=(0,D.A)(function*(y,h=!1){const p=(0,E.Ku)(y),v=yield p.getIdToken(h),k=Cs(v);Ie(k&&k.exp&&k.auth_time&&k.iat,p.auth,"internal-error");const U="object"==typeof k.firebase?k.firebase:void 0,ne=U?.sign_in_provider;return{claims:k,token:v,authTime:hn(Ul(k.auth_time)),issuedAtTime:hn(Ul(k.iat)),expirationTime:hn(Ul(k.exp)),signInProvider:ne||null,signInSecondFactor:U?.sign_in_second_factor||null}})).apply(this,arguments)}function Ul(y){return 1e3*Number(y)}function Cs(y){const[h,p,v]=y.split(".");if(void 0===h||void 0===p||void 0===v)return ri("JWT malformed, contained fewer than 3 sections"),null;
1try{const k=(0,E.u)(p);return k?JSON.parse(k):(ri("Failed to decode base64 JWT payload"),null)}catch(k){return ri("Caught error parsing JWT payload as JSON",k?.toString()),null}}function Mo(y){const h=Cs(y);return Ie(h,"internal-error"),Ie(typeof h.exp<"u","internal-error"),Ie(typeof h.iat<"u","internal-error"),Number(h.exp)-Number(h.iat)}function Ur(y,h){return Xo.apply(this,arguments)}function Xo(){return(Xo=(0,D.A)(function*(y,h,p=!1){if(p)return h;try{return yield h}catch(v){throw v instanceof E.g&&function pc({code:y}){return"auth/user-disabled"===y||"auth/user-token-expired"===y}(v)&&y.auth.currentUser===y&&(yield y.auth.signOut()),v}})).apply(this,arguments)}class mc{constructor(h){this.user=h,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(h){var p;if(h){const v=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),v}{this.errorBackoff=3e4;const k=(null!==(p=this.user.stsTokenManager.expirationTime)&&void 0!==p?p:0)-Date.now()-3e5;return Math.max(0,k)}}schedule(h=!1){var p=this;if(!this.isRunning)return;const v=this.getInterval(h);this.timerId=setTimeout((0,D.A)(function*(){yield p.iteration()}),v)}iteration(){var h=this;return(0,D.A)(function*(){try{yield h.user.getIdToken(!0)}catch(p){return void("auth/network-request-failed"===p?.code&&h.schedule(!0))}h.schedule()})()}}class Zo{constructor(h,p){this.createdAt=h,this.lastLoginAt=p,this._initializeTime()}_initializeTime(){this.lastSignInTime=hn(this.lastLoginAt),this.creationTime=hn(this.createdAt)}_copy(h){this.createdAt=h.createdAt,this.lastLoginAt=h.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function Ji(y){return Xi.apply(this,arguments)}function Xi(){return(Xi=(0,D.A)(function*(y){var h;const p=y.auth,v=yield y.getIdToken(),k=yield Ur(y,Fl(p,{idToken:v}));Ie(k?.users.length,p,"internal-error");const U=k.users[0];y._notifyReloadListener(U);const ne=null!==(h=U.providerUserInfo)&&void 0!==h&&h.length?at(U.providerUserInfo):[],fe=function Wn(y,h){return[...y.filter(v=>!h.some(k=>k.providerId===v.providerId)),...h]}(y.providerData,ne),It=!!y.isAnonymous&&!(y.email&&U.passwordHash||fe?.length),Dt={uid:U.localId,displayName:U.displayName||null,photoURL:U.photoUrl||null,email:U.email||null,emailVerified:U.emailVerified||!1,phoneNumber:U.phoneNumber||null,tenantId:U.tenantId||null,providerData:fe,metadata:new Zo(U.createdAt,U.lastLoginAt),isAnonymous:It};Object.assign(y,Dt)})).apply(this,arguments)}function gt(){return(gt=(0,D.A)(function*(y){const h=(0,E.Ku)(y);yield Ji(h),yield h.auth._persistUserIfCurrent(h),h.auth._notifyListenersIfCurrent(h)})).apply(this,arguments)}function at(y){return y.map(h=>{var{providerId:p}=h,v=(0,L.Tt)(h,["providerId"]);return{providerId:p,uid:v.rawId||"",displayName:v.displayName||null,email:v.email||null,phoneNumber:v.phoneNumber||null,photoURL:v.photoUrl||null}})}function q(){return(q=(0,D.A)(function*(y,h){const p=yield gr(y,{},(0,D.A)(function*(){const v=(0,E.Am)({grant_type:"refresh_token",refresh_token:h}).slice(1),{tokenApiHost:k,apiKey:U}=y.config,ne=Cr(y,k,"/v1/token",`key=${U}`),fe=yield y._getAdditionalHeaders();return fe["Content-Type"]="application/x-www-form-urlencoded",Ne.fetch()(ne,{method:"POST",headers:fe,body:v})}));return{accessToken:p.access_token,expiresIn:p.expires_in,refreshToken:p.refresh_token}})).apply(this,arguments)}function ge(){return(ge=(0,D.A)(function*(y,h){return pt(y,"POST","/v2/accounts:revokeToken",Fe(y,h))})).apply(this,arguments)}class ue{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(h){Ie(h.idToken,"internal-error"),Ie(typeof h.idToken<"u","internal-error"),Ie(typeof h.refreshToken<"u","internal-error");const p="expiresIn"in h&&typeof h.expiresIn<"u"?Number(h.expiresIn):Mo(h.idToken);this.updateTokensAndExpiration(h.idToken,h.refreshToken,p)}updateFromIdToken(h){Ie(0!==h.length,"internal-error");const p=Mo(h);this.updateTokensAndExpiration(h,null,p)}getToken(h,p=!1){var v=this;return(0,D.A)(function*(){return p||!v.accessToken||v.isExpired?(Ie(v.refreshToken,h,"user-token-expired"),v.refreshToken?(yield v.refresh(h,v.refreshToken),v.accessToken):null):v.accessToken})()}clearRefreshToken(){this.refreshToken=null}refresh(h,p){var v=this;return(0,D.A)(function*(){const{accessToken:k,refreshToken:U,expiresIn:ne}=yield function z(y,h){return q.apply(this,arguments)}(h,p);v.updateTokensAndExpiration(k,U,Number(ne))})()}updateTokensAndExpiration(h,p,v){this.refreshToken=p||null,this.accessToken=h||null,this.expirationTime=Date.now()+1e3*v}static fromJSON(h,p){const{refreshToken:v,accessToken:k,expirationTime:U}=p,ne=new ue;return v&&(Ie("string"==typeof v,"internal-error",{appName:h}),ne.refreshToken=v),k&&(Ie("string"==typeof k,"internal-error",{appName:h}),ne.accessToken=k),U&&(Ie("number"==typeof U,"internal-error",{appName:h}),ne.expirationTime=U),ne}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(h){this.accessToken=h.accessToken,this.refreshToken=h.refreshToken,this.expirationTime=h.expirationTime}_clone(){return Object.assign(new ue,this.toJSON())}_performRefresh(){return pn("not implemented")}}function je(y,h){Ie("string"==typeof y||typeof y>"u","internal-error",{appName:h})}class Mt{constructor(h){var{uid:p,auth:v,stsTokenManager:k}=h,U=(0,L.Tt)(h,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new mc(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=p,this.auth=v,this.stsTokenManager=k,this.accessToken=k.accessToken,this.displayName=U.displayName||null,this.email=U.email||null,this.emailVerified=U.emailVerified||!1,this.phoneNumber=U.phoneNumber||null,this.photoURL=U.photoURL||null,this.isAnonymous=U.isAnonymous||!1,this.tenantId=U.tenantId||null,this.providerData=U.providerData?[...U.providerData]:[],this.metadata=new Zo(U.createdAt||void 0,U.lastLoginAt||void 0)}getIdToken(h){var p=this;return(0,D.A)(function*(){const v=yield Ur(p,p.stsTokenManager.getToken(p.auth,h));return Ie(v,p.auth,"internal-error"),p.accessToken!==v&&(p.accessToken=v,yield p.auth._persistUserIfCurrent(p),p.auth._notifyListenersIfCurrent(p)),v})()}getIdTokenResult(h){return function Vl(y){return _s.apply(this,arguments)}(this,h)}reload(){return function gc(y){return gt.apply(this,arguments)}(this)}_assign(h){this!==h&&(Ie(this.uid===h.uid,this.auth,"internal-error"),this.displayName=h.displayName,this.photoURL=h.photoURL,this.email=h.email,this.emailVerified=h.emailVerified,this.phoneNumber=h.phoneNumber,this.isAnonymous=h.isAnonymous,this.tenantId=h.tenantId,this.providerData=h.providerData.map(p=>Object.assign({},p)),this.metadata._copy(h.metadata),this.stsTokenManager._assign(h.stsTokenManager))}_clone(h){const p=new Mt(Object.assign(Object.assign({},this),{auth:h,stsTokenManager:this.stsTokenManager._clone()}));return p.metadata._copy(this.metadata),p}_onReload(h){Ie(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=h,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(h){this.reloadListener?this.reloadListener(h):this.reloadUserInfo=h}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(h,p=!1){var v=this;return(0,D.A)(function*(){let k=!1;h.idToken&&h.idToken!==v.stsTokenManager.accessToken&&(v.stsTokenManager.updateFromServerResponse(h),k=!0),p&&(yield Ji(v)),yield v.auth._persistUserIfCurrent(v),k&&v.auth._notifyListenersIfCurrent(v)})()}delete(){var h=this;return(0,D.A)(function*(){if((0,I._isFirebaseServerApp)(h.auth.app))return Promise.reject(Et(h.auth));const p=yield h.getIdToken();return yield Ur(h,function fc(y,h){return so.apply(this,arguments)}(h.auth,{idToken:p})),h.stsTokenManager.clearRefreshToken(),h.auth.signOut()})()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isA
1nonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(h=>Object.assign({},h)),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(h,p){var v,k,U,ne,fe,Oe,ot,It;const Dt=null!==(v=p.displayName)&&void 0!==v?v:void 0,$r=null!==(k=p.email)&&void 0!==k?k:void 0,As=null!==(U=p.phoneNumber)&&void 0!==U?U:void 0,av=null!==(ne=p.photoURL)&&void 0!==ne?ne:void 0,jS=null!==(fe=p.tenantId)&&void 0!==fe?fe:void 0,$T=null!==(Oe=p._redirectEventId)&&void 0!==Oe?Oe:void 0,YS=null!==(ot=p.createdAt)&&void 0!==ot?ot:void 0,BS=null!==(It=p.lastLoginAt)&&void 0!==It?It:void 0,{uid:Re,emailVerified:yn,isAnonymous:bt,providerData:vt,stsTokenManager:Zn}=p;Ie(Re&&Zn,h,"internal-error");const HS=ue.fromJSON(this.name,Zn);Ie("string"==typeof Re,h,"internal-error"),je(Dt,h.name),je($r,h.name),Ie("boolean"==typeof yn,h,"internal-error"),Ie("boolean"==typeof bt,h,"internal-error"),je(As,h.name),je(av,h.name),je(jS,h.name),je($T,h.name),je(YS,h.name),je(BS,h.name);const Od=new Mt({uid:Re,auth:h,email:$r,emailVerified:yn,displayName:Dt,isAnonymous:bt,photoURL:av,phoneNumber:As,tenantId:jS,stsTokenManager:HS,createdAt:YS,lastLoginAt:BS});return vt&&Array.isArray(vt)&&(Od.providerData=vt.map(Jl=>Object.assign({},Jl))),$T&&(Od._redirectEventId=$T),Od}static _fromIdTokenResponse(h,p,v=!1){return(0,D.A)(function*(){const k=new ue;k.updateFromServerResponse(p);const U=new Mt({uid:p.localId,auth:h,stsTokenManager:k,isAnonymous:v});return yield Ji(U),U})()}static _fromGetAccountInfoResponse(h,p,v){return(0,D.A)(function*(){const k=p.users[0];Ie(void 0!==k.localId,"internal-error");const U=void 0!==k.providerUserInfo?at(k.providerUserInfo):[],ne=!(k.email&&k.passwordHash||U?.length),fe=new ue;fe.updateFromIdToken(v);const Oe=new Mt({uid:k.localId,auth:h,stsTokenManager:fe,isAnonymous:ne}),ot={uid:k.localId,displayName:k.displayName||null,photoURL:k.photoUrl||null,email:k.email||null,emailVerified:k.emailVerified||!1,phoneNumber:k.phoneNumber||null,tenantId:k.tenantId||null,providerData:U,metadata:new Zo(k.createdAt,k.lastLoginAt),isAnonymous:!(k.email&&k.passwordHash||U?.length)};return Object.assign(Oe,ot),Oe})()}}const Lt=new Map;function Tt(y){kn(y instanceof Function,"Expected a class definition");let h=Lt.get(y);return h?(kn(h instanceof y,"Instance stored in cache mismatched with class"),h):(h=new y,Lt.set(y,h),h)}const st=(()=>{class y{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return(0,D.A)(function*(){return!0})()}_set(p,v){var k=this;return(0,D.A)(function*(){k.storage[p]=v})()}_get(p){var v=this;return(0,D.A)(function*(){const k=v.storage[p];return void 0===k?null:k})()}_remove(p){var v=this;return(0,D.A)(function*(){delete v.storage[p]})()}_addListener(p,v){}_removeListener(p,v){}}return y.type="NONE",y})();function Ot(y,h,p){return`firebase:${y}:${h}:${p}`}class _r{constructor(h,p,v){this.persistence=h,this.auth=p,this.userKey=v;const{config:k,name:U}=this.auth;this.fullUserKey=Ot(this.userKey,k.apiKey,U),this.fullPersistenceKey=Ot("persistence",k.apiKey,U),this.boundEventHandler=p._onStorageEvent.bind(p),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(h){return this.persistence._set(this.fullUserKey,h.toJSON())}getCurrentUser(){var h=this;return(0,D.A)(function*(){const p=yield h.persistence._get(h.fullUserKey);return p?Mt._fromJSON(h.auth,p):null})()}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(h){var p=this;return(0,D.A)(function*(){if(p.persistence===h)return;const v=yield p.getCurrentUser();return yield p.removeCurrentUser(),p.persistence=h,v?p.setCurrentUser(v):void 0})()}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(h,p,v="authUser"){return(0,D.A)(function*(){if(!p.length)return new _r(Tt(st),h,v);const k=(yield Promise.all(p.map(function(){var ot=(0,D.A)(function*(It){if(yield It._isAvailable())return It});return function(It){return ot.apply(this,arguments)}}()))).filter(ot=>ot);let U=k[0]||Tt(st);const ne=Ot(v,h.config.apiKey,h.name);let fe=null;for(const ot of p)try{const It=yield ot._get(ne);if(It){const Dt=Mt._fromJSON(h,It);ot!==U&&(fe=Dt),U=ot;break}}catch{}const Oe=k.filter(ot=>ot._shouldAllowMigration);return U._shouldAllowMigration&&Oe.length?(U=Oe[0],fe&&(yield U._set(ne,fe.toJSON())),yield Promise.all(p.map(function(){var ot=(0,D.A)(function*(It){if(It!==U)try{yield It._remove(ne)}catch{}});return function(It){return ot.apply(this,arguments)}}())),new _r(U,h,v)):new _r(U,h,v)})()}}function js(y){const h=y.toLowerCase();if(h.includes("opera/")||h.includes("opr/")||h.includes("opios/"))return"Opera";if(ru(h))return"IEMobile";if(h.includes("msie")||h.includes("trident/"))return"IE";if(h.includes("edge/"))return"Edge";if(Za(h))return"Firefox";if(h.includes("silk/"))return"Silk";if(Ct(h))return"Blackberry";if(su(h))return"Webos";if(Z_(h))return"Safari";
1if((h.includes("chrome/")||Nb(h))&&!h.includes("edge/"))return"Chrome";if(iu(h))return"Android";{const v=y.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(2===v?.length)return v[1]}return"Other"}function Za(y=(0,E.ZQ)()){return/firefox\//i.test(y)}function Z_(y=(0,E.ZQ)()){const h=y.toLowerCase();return h.includes("safari/")&&!h.includes("chrome/")&&!h.includes("crios/")&&!h.includes("android")}function Nb(y=(0,E.ZQ)()){return/crios\//i.test(y)}function ru(y=(0,E.ZQ)()){return/iemobile/i.test(y)}function iu(y=(0,E.ZQ)()){return/android/i.test(y)}function Ct(y=(0,E.ZQ)()){return/blackberry/i.test(y)}function su(y=(0,E.ZQ)()){return/webos/i.test(y)}function el(y=(0,E.ZQ)()){return/iphone|ipad|ipod/i.test(y)||/macintosh/i.test(y)&&/mobile/i.test(y)}function ou(y=(0,E.ZQ)()){return el(y)||iu(y)||su(y)||Ct(y)||/windows phone/i.test(y)||ru(y)}function md(y,h=[]){let p;switch(y){case"Browser":p=js((0,E.ZQ)());break;case"Worker":p=`${js((0,E.ZQ)())}-${y}`;break;default:p=y}const v=h.length?h.join(","):"FirebaseCore-web";return`${p}/JsCore/${I.SDK_VERSION}/${v}`}class aS{constructor(h){this.auth=h,this.queue=[]}pushCallback(h,p){const v=U=>new Promise((ne,fe)=>{try{ne(h(U))}catch(Oe){fe(Oe)}});v.onAbort=p,this.queue.push(v);const k=this.queue.length-1;return()=>{this.queue[k]=()=>Promise.resolve()}}runMiddleware(h){var p=this;return(0,D.A)(function*(){if(p.auth.currentUser===h)return;const v=[];try{for(const k of p.queue)yield k(h),k.onAbort&&v.push(k.onAbort)}catch(k){v.reverse();for(const U of v)try{U()}catch{}throw p.auth._errorFactory.create("login-blocked",{originalMessage:k?.message})}})()}}function Lh(){return(Lh=(0,D.A)(function*(y,h={}){return pt(y,"GET","/v2/passwordPolicy",Fe(y,h))})).apply(this,arguments)}class Ub{constructor(h){var p,v,k,U;const ne=h.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(p=ne.minPasswordLength)&&void 0!==p?p:6,ne.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=ne.maxPasswordLength),void 0!==ne.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=ne.containsLowercaseCharacter),void 0!==ne.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=ne.containsUppercaseCharacter),void 0!==ne.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=ne.containsNumericCharacter),void 0!==ne.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=ne.containsNonAlphanumericCharacter),this.enforcementState=h.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(k=null===(v=h.allowedNonAlphanumericCharacters)||void 0===v?void 0:v.join(""))&&void 0!==k?k:"",this.forceUpgradeOnSignin=null!==(U=h.force
1UpgradeOnSignin)&&void 0!==U&&U,this.schemaVersion=h.schemaVersion}validatePassword(h){var p,v,k,U,ne,fe;const Oe={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(h,Oe),this.validatePasswordCharacterOptions(h,Oe),Oe.isValid&&(Oe.isValid=null===(p=Oe.meetsMinPasswordLength)||void 0===p||p),Oe.isValid&&(Oe.isValid=null===(v=Oe.meetsMaxPasswordLength)||void 0===v||v),Oe.isValid&&(Oe.isValid=null===(k=Oe.containsLowercaseLetter)||void 0===k||k),Oe.isValid&&(Oe.isValid=null===(U=Oe.containsUppercaseLetter)||void 0===U||U),Oe.isValid&&(Oe.isValid=null===(ne=Oe.containsNumericCharacter)||void 0===ne||ne),Oe.isValid&&(Oe.isValid=null===(fe=Oe.containsNonAlphanumericCharacter)||void 0===fe||fe),Oe}validatePasswordLengthOptions(h,p){const v=this.customStrengthOptions.minPasswordLength,k=this.customStrengthOptions.maxPasswordLength;v&&(p.meetsMinPasswordLength=h.length>=v),k&&(p.meetsMaxPasswordLength=h.length<=k)}validatePasswordCharacterOptions(h,p){let v;this.updatePasswordCharacterOptionsStatuses(p,!1,!1,!1,!1);for(let k=0;k<h.length;k++)v=h.charAt(k),this.updatePasswordCharacterOptionsStatuses(p,v>="a"&&v<="z",v>="A"&&v<="Z",v>="0"&&v<="9",this.allowedNonAlphanumericCharacters.includes(v))}updatePasswordCharacterOptionsStatuses(h,p,v,k,U){this.customStrengthOptions.containsLowercaseLetter&&(h.containsLowercaseLetter||(h.containsLowercaseLetter=p)),this.customStrengthOptions.containsUppercaseLetter&&(h.containsUppercaseLetter||(h.containsUppercaseLetter=v)),this.customStrengthOptions.containsNumericCharacter&&(h.containsNumericCharacter||(h.containsNumericCharacter=k)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(h.containsNonAlphanumericCharacter||(h.containsNonAlphanumericCharacter=U))}}class jb{constructor(h,p,v,k){this.app=h,this.heartbeatServiceProvider=p,this.appCheckServiceProvider=v,this.config=k,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new wa(this),this.idTokenSubscription=new wa(this),this.beforeStateQueue=new aS(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=Kt,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=h.name,this.clientVersion=k.sdkClientVersion}_initializeWithPersistence(h,p){var v=this;return p&&(this._popupRedirectResolver=Tt(p)),this._initializationPromise=this.queue((0,D.A)(function*(){var k,U;if(!v._deleted&&(v.persistenceManager=yield _r.create(v,h),!v._deleted)){if(null!==(k=v._popupRedirectResolver)&&void 0!==k&&k._shouldInitProactively)try{yield v._popupRedirectResolver._initialize(v)}catch{}yield v.initializeCurrentUser(p),v.lastNotifiedUid=(null===(U=v.currentUser)||void 0===U?void 0:U.uid)||null,!v._deleted&&(v._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var h=this;return(0,D.A)(function*(){if(h._deleted)return;const p=yield h.assertedPersistence.getCurrentUser();if(h.currentUser||p){if(h.currentUser&&p&&h.currentUser.uid===p.uid)return h._currentUser._assign(p),void(yield h.currentUser.getIdToken());yield h._updateCurrentUser(p,!0)}})()}initializeCurrentUserFromIdToken(h){var p=this;return(0,D.A)(function*(){try{const v=yield Fl(p,{idToken:h}),k=yield Mt._fromGetAccountInfoResponse(p,v,h);yield p.directlySetCurrentUser(k)}catch(v){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",v),yield p.directlySetCurrentUser(null)}})()}initializeCurrentUser(h){var p=this;return(0,D.A)(function*(){var v;if((0,I._isFirebaseServerApp)(p.app)){const fe=p.app.settings.authIdToken;return fe?new Promise(Oe=>{setTimeout(()=>p.initializeCurrentUserFromIdToken(fe).then(Oe,Oe))}):p.directlySetCurrentUser(null)}const k=yield p.assertedPersistence.getCurrentUser();let U=k,ne=!1;if(h&&p.config.authDomain){yield p.getOrInitRedirectPersistenceManager();const fe=null===(v=p.redirectUser)||void 0===v?void 0:v._redirectEventId,Oe=U?._redirectEventId,ot=yield p.tryRedirectSignIn(h);(!fe||fe===Oe)&&ot?.user&&(U=ot.user,ne=!0)}if(!U)return p.directlySetCurrentUser(null);
1if(!U._redirectEventId){if(ne)try{yield p.beforeStateQueue.runMiddleware(U)}catch(fe){U=k,p._popupRedirectResolver._overrideRedirectResult(p,()=>Promise.reject(fe))}return U?p.reloadAndSetCurrentUserOrClear(U):p.directlySetCurrentUser(null)}return Ie(p._popupRedirectResolver,p,"argument-error"),yield p.getOrInitRedirectPersistenceManager(),p.redirectUser&&p.redirectUser._redirectEventId===U._redirectEventId?p.directlySetCurrentUser(U):p.reloadAndSetCurrentUserOrClear(U)})()}tryRedirectSignIn(h){var p=this;return(0,D.A)(function*(){let v=null;try{v=yield p._popupRedirectResolver._completeRedirectFn(p,h,!0)}catch{yield p._setRedirectUser(null)}return v})()}reloadAndSetCurrentUserOrClear(h){var p=this;return(0,D.A)(function*(){try{yield Ji(h)}catch(v){if("auth/network-request-failed"!==v?.code)return p.directlySetCurrentUser(null)}return p.directlySetCurrentUser(h)})()}useDeviceLanguage(){this.languageCode=function Vr(){if(typeof navigator>"u")return null;const y=navigator;return y.languages&&y.languages[0]||y.language||null}()}_delete(){var h=this;return(0,D.A)(function*(){h._deleted=!0})()}updateCurrentUser(h){var p=this;return(0,D.A)(function*(){if((0,I._isFirebaseServerApp)(p.app))return Promise.reject(Et(p));const v=h?(0,E.Ku)(h):null;return v&&Ie(v.auth.config.apiKey===p.config.apiKey,p,"invalid-user-token"),p._updateCurrentUser(v&&v._clone(p))})()}_updateCurrentUser(h,p=!1){var v=this;return(0,D.A)(function*(){if(!v._deleted)return h&&Ie(v.tenantId===h.tenantId,v,"tenant-id-mismatch"),p||(yield v.beforeStateQueue.runMiddleware(h)),v.queue((0,D.A)(function*(){yield v.directlySetCurrentUser(h),v.notifyAuthListeners()}))})()}signOut(){var h=this;return(0,D.A)(function*(){return(0,I._isFirebaseServerApp)(h.app)?Promise.reject(Et(h)):(yield h.beforeStateQueue.runMiddleware(null),(h.redirectPersistenceManager||h._popupRedirectResolver)&&(yield h._setRedirectUser(null)),h._updateCurrentUser(null,!0))})()}setPersistence(h){var p=this;return(0,I._isFirebaseServerApp)(this.app)?Promise.reject(Et(this)):this.queue((0,D.A)(function*(){yield p.assertedPersistence.setPersistence(Tt(h))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}validatePassword(h){var p=this;return(0,D.A)(function*(){p._getPasswordPolicyInternal()||(yield p._updatePasswordPolicy());const v=p._getPasswordPolicyInternal();return v.schemaVersion!==p.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(p._errorFactory.create("unsupported-password-policy-schema-version",{})):v.validatePassword(h)})()}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}_updatePasswordPolicy(){var h=this;return(0,D.A)(function*(){const p=yield function Jp(y){return Lh.apply(this,arguments)}(h),v=new Ub(p);null===h.tenantId?h._projectPasswordPolicy=v:h._tenantPasswordPolicies[h.tenantId]=v})()}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(h){this._errorFactory=new E.FA("auth","Firebase",h())}onAuthStateChanged(h,p,v){return this.registerStateListener(this.authStateSubscription,h,p,v)}beforeAuthStateChanged(h,p){return this.beforeStateQueue.pushCallback(h,p)}onIdTokenChanged(h,p,v){return this.registerStateListener(this.idTokenSubscription,h,p,v)}authStateReady(){return new Promise((h,p)=>{if(this.currentUser)h();else{const v=this.onAuthStateChanged(()=>{v(),h()},p)}})}revokeAccessToken(h){var p=this;return(0,D.A)(function*(){if(p.currentUser){const v=yield p.currentUser.getIdToken(),k={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:h,idToken:v};null!=p.tenantId&&(k.tenantId=p.tenantId),yield function X(y,h){return ge.apply(this,arguments)}(p,k)}})()}toJSON(){var h;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(h=this._currentUser)||void 0===h?void 0:h.toJSON()}}_setRedirectUser(h,p){var v=this;return(0,D.A)(function*(){const k=yield v.getOrInitRedirectPersistenceManager(p);return null===h?k.removeCurrentUser():k.setCurrentUser(h)})()}getOrInitRedirectPersistenceManager(h){var p=this;return(0,D.A)(function*(){if(!p.redirectPersistenceManager){const v=h&&Tt(h)||p._popupRedirectResolver;Ie(v,p,"argument-error"),p.redirectPersistenceManager=yield _r.create(p,[Tt(v._redirectPersistence)],"redirectUser"),p.redirectUser=yield p.redirectPersistenceManager.getCurrentUser()}return p.redirectPersistenceManager})()}_redirectUserForId(h){var p=this;return(0,D.A)(function*(){var v,k;return p._isInitialized&&(yield p.queue((0,D.A)(function*(){}))),(null===(v=p._currentUser)||void 0===v?void 0:v._redirectEventId)===h?p._currentUser:(null===(k=p.redirectUser)||void 0===k?void 0:k._redirectEventId)===h?p.redirectUser:null})()}_persistUserIfCurrent(h){var p=this;return(0,D.A)(function*(){if(h===p.currentUser)return p.queue((0,D.A)(function*(){return p.directlySetCurrentUser(h)}))})()}_notifyListenersIfCurrent(h){h===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 h,p;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const v=null!==(p=null===(h=this.currentUser)||void 0===h?void 0:h.uid)&&void 0!==p?p:null;this.lastNotifiedUid!==v&&(this.lastNotifiedUid=v,this.authStateSubscription.next(this.currentUser))}registerStateListener(h,p,v,k){if(this._deleted)return()=>{};const U="function"==typeof p?p:p.next.bind(p);let ne=!1;const fe=this._isInitialized?Promise.resolve():this._initializationPromise;if(Ie(fe,this,"internal-error"),fe.then(()=>{ne||U(this.currentUser)}),"function"==typeof p){const Oe=h.addObserver(p,v,k);return()=>{ne=!0,Oe()}}{const Oe=h.addObserver(p);return()=>{ne=!0,Oe()}}}directlySetCurrentUser(h){var p=this;return(0,D.A)(function*(){p.currentUser&&p.currentUser!==h&&p._currentUser._stopProactiveRefresh(),h&&p.isProactiveRefreshEnabled&&h._startProactiveRefresh(),p.currentUser=h,h?yield p.assertedPersistence.setCurrentUser(h):yield p.assertedPersistence.removeCurrentUser()})()}
1queue(h){return this.operations=this.operations.then(h,h),this.operations}get assertedPersistence(){return Ie(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(h){!h||this.frameworks.includes(h)||(this.frameworks.push(h),this.frameworks.sort(),this.clientVersion=md(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var h=this;return(0,D.A)(function*(){var p;const v={"X-Client-Version":h.clientVersion};h.app.options.appId&&(v["X-Firebase-gmpid"]=h.app.options.appId);const k=yield null===(p=h.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===p?void 0:p.getHeartbeatsHeader();k&&(v["X-Firebase-Client"]=k);const U=yield h._getAppCheckToken();return U&&(v["X-Firebase-AppCheck"]=U),v})()}_getAppCheckToken(){var h=this;return(0,D.A)(function*(){var p;const v=yield null===(p=h.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===p?void 0:p.getToken();return v?.error&&function ni(y,...h){Nr.logLevel<=C.$b.WARN&&Nr.warn(`Auth (${I.SDK_VERSION}): ${y}`,...h)}(`Error while retrieving App Check token: ${v.error}`),v?.token})()}}function Ar(y){return(0,E.Ku)(y)}class wa{constructor(h){this.auth=h,this.observer=null,this.addObserver=(0,E.tD)(p=>this.observer=p)}get next(){return Ie(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let jl={loadJS:()=>(0,D.A)(function*(){throw new Error("Unable to load external scripts")})(),recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function gd(y){return jl.loadJS(y)}function Xp(y){return`__${y}${Math.floor(1e6*Math.random())}`}class nl{constructor(h){this.type="recaptcha-enterprise",this.auth=Ar(h)}verify(h="verify",p=!1){var v=this;return(0,D.A)(function*(){function U(){return U=(0,D.A)(function*(fe){if(!p){if(null==fe.tenantId&&null!=fe._agentRecaptchaConfig)return fe._agentRecaptchaConfig.siteKey;if(null!=fe.tenantId&&void 0!==fe._tenantRecaptchaConfigs[fe.tenantId])return fe._tenantRecaptchaConfigs[fe.tenantId].siteKey}return new Promise(function(){var Oe=(0,D.A)(function*(ot,It){io(fe,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(Dt=>{if(void 0!==Dt.recaptchaKey){const $r=new hc(Dt);return null==fe.tenantId?fe._agentRecaptchaConfig=$r:fe._tenantRecaptchaConfigs[fe.tenantId]=$r,ot($r.siteKey)}It(new Error("recaptcha Enterprise site key undefined"))}).catch(Dt=>{It(Dt)})});return function(ot,It){return Oe.apply(this,arguments)}}())}),U.apply(this,arguments)}function ne(fe,Oe,ot){const It=window.grecaptcha;rr(It)?It.enterprise.ready(()=>{It.enterprise.execute(fe,{action:h}).then(Dt=>{Oe(Dt)}).catch(()=>{Oe("NO_RECAPTCHA")})}):ot(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((fe,Oe)=>{(function k(fe){return U.apply(this,arguments)})(v.auth).then(ot=>{if(!p&&rr(window.grecaptcha))ne(ot,fe,Oe);else{if(typeof window>"u")return void Oe(new Error("RecaptchaVerifier is only supported in browser"));let It=function ry(){return jl.recaptchaEnterpriseScript}();0!==It.length&&(It+=ot),gd(It).then(()=>{ne(ot,fe,Oe)}).catch(Dt=>{Oe(Dt)})}}).catch(ot=>{Oe(ot)})})})()}}function yd(y,h,p){return rl.apply(this,arguments)}function rl(){return(rl=(0,D.A)(function*(y,h,p,v=!1){const k=new nl(y);let U;try{U=yield k.verify(p)}catch{U=yield k.verify(p,!0)}const ne=Object.assign({},h);return Object.assign(ne,v?{captchaResp:U}:{captchaResponse:U}),Object.assign(ne,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(ne,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),ne})).apply(this,arguments)}function Io(y,h,p,v){return au.apply(this,arguments)}function au(){return au=(0,D.A)(function*(y,h,p,v){var k;if(null!==(k=y._getRecaptchaConfig())&&void 0!==k&&k.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const U=yield yd(y,h,p,"getOobCode"===p);return v(y,U)}return v(y,h).catch(function(){var U=(0,D.A)(function*(ne){if("auth/missing-recaptcha-token"===ne.code){console.log(`${p} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const fe=yield yd(y,h,p,"getOobCode"===p);return v(y,fe)}return Promise.reject(ne)});return function(ne){return U.apply(this,arguments)}}())}),au.apply(this,arguments)}function tm(y){const h=y.indexOf(":");return h<0?"":y.substr(0,h+1)}function Oh(y){if(!y)return null;const h=Number(y);return isNaN(h)?null:h}class il{constructor(h,p){this.providerId=h,this.signInMethod=p}toJSON(){return pn("not implemented")}_getIdTokenResponse(h){return pn("not implemented")}_linkToIdToken(h,p){return pn("not implemented")}_getReauthenticationResolver(h){return pn("not implemented")}}function nm(y,h){return oy.apply(this,arguments)}function oy(){return(oy=(0,D.A)(function*(y,h){return pt(y,"POST","/v1/accounts:resetPassword",Fe(y,h))})).apply(this,arguments)}function ay(){return(ay=(0,D.A)(function*(y,h){return pt(y,"POST","/v1/accounts:update",h)})).apply(this,arguments)}function uS(y,h){return Hr.apply(this,arguments)}function Hr(){return(Hr=(0,D.A)(function*(y,h){return pt(y,"POST","/v1/accounts:signUp",h)})).apply(this,arguments)}function rm(){return(rm=(0,D.A)(function*(y,h){return pt(y,"POST","/v1/accounts:update",Fe(y,h))})).apply(this,arguments)}function $b(y,h){return ly.apply(this,arguments)}function ly(){return(ly=(0,D.A)(function*(y,h){return dn(y,"POST","/v1/accounts:signInWithPassword",Fe(y,h))})).apply(this,arguments)}function vd(y,h){return wd.apply(this,arguments)}function wd(){return(wd=(0,D.A)(function*(y,h){return pt(y,"POST","/v1/accounts:sendOobCode",Fe(y,h))})).apply(this,arguments)}function sm(){return(sm=(0,D.A)(function*(y,h){return vd(y,h)})).apply(this,arguments)}function qb(y,h){return bd.apply(this,arguments)}function bd(){return(bd=(0,D.A)(function*(y,h){return vd(y,h)})).apply(this,arguments)}function cy(y,h){return uy.apply(this,arguments)}function uy(){return(uy=(0,D.A)(function*(y,h){return vd(y,h)})).apply(this,arguments)}function Nh(){return(Nh=(0,D.A)(function*(y,h){return vd(y,h)})).apply(this,arguments)}function om(){return(om=(0,D.A)(function*(y,h){return dn(y,"POST","/v1/accounts:signInWithEmailLink",Fe(y,h))})).apply(this,arguments)}function am(){return(am=(0,D.A)(function*(y,h){return dn(y,"POST","/v1/accounts:signInWithEmailLink",Fe(y,h))})).apply(this,arguments)}class lu extends il{constructor(h,p,v,k=null){super("password",v),this._email=h,this._password=p,this._tenantId=k}static _fromEmailAndPassword(h,p){return new lu(h,p,"password")}static _fromEmailAndCode(h,p,v=null){return new lu(h,p,"emailLink",v)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(h){const p="string"==typeof h?JSON.parse(h):h;if(p?.email&&p?.password){if("password"===p.signInMethod)return this._fromEmailAndPassword(p.email,p.password);if("emailLink"===p.signInMethod)return this._fromEmailAndCode(p.email,p.password,p.tenantId)}return null}_getIdTokenResponse(h){var p=this;return(0,D.A)(function*(){switch(p.signInMethod){case"password":return Io(h,{returnSecureToken:!0,email:p._email,password:p._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",$b);case"emailLink":return function Wb(y,h){return om.apply(this,arguments)}(h,{email:p._email,oobCode:p._password});default:Sn(h,"internal-error")}})()}_linkToIdToken(h,p){var v=this;return(0,D.A)(function*(){switch(v.signInMethod){case"password":return Io(h,{idToken:p,returnSecureToken:!0,email:v._email,password:v._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",uS);case"emailLink":return function Gb(y,h){return am.apply(this,arguments)}(h,{idToken:p,email:v._email,oobCode:v._password});default:Sn(h,"internal-error")}})()}_getReauthenticationResolver(h){return this._getIdTokenResponse(h)}}function Pn(y,h){return _c.apply(this,arguments)}function _c(){return(_c=(0,D.A)(function*(y,h){return dn(y,"POST","/v1/accounts:signInWithIdp",Fe(y,h))})).apply(this,arguments)}class ba extends il{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(h){const p=new ba(h.providerId,h.signInMethod);return h.idToken||h.accessToken?(h.idToken&&(p.idToken=h.idToken),h.accessToken&&(p.accessToken=h.accessToken),h.nonce&&!h.pendingToken&&
1(p.nonce=h.nonce),h.pendingToken&&(p.pendingToken=h.pendingToken)):h.oauthToken&&h.oauthTokenSecret?(p.accessToken=h.oauthToken,p.secret=h.oauthTokenSecret):Sn("argument-error"),p}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(h){const p="string"==typeof h?JSON.parse(h):h,{providerId:v,signInMethod:k}=p,U=(0,L.Tt)(p,["providerId","signInMethod"]);if(!v||!k)return null;const ne=new ba(v,k);return ne.idToken=U.idToken||void 0,ne.accessToken=U.accessToken||void 0,ne.secret=U.secret,ne.nonce=U.nonce,ne.pendingToken=U.pendingToken||null,ne}_getIdTokenResponse(h){return Pn(h,this.buildRequest())}_linkToIdToken(h,p){const v=this.buildRequest();return v.idToken=p,Pn(h,v)}_getReauthenticationResolver(h){const p=this.buildRequest();return p.autoCreate=!1,Pn(h,p)}buildRequest(){const h={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)h.pendingToken=this.pendingToken;else{const p={};this.idToken&&(p.id_token=this.idToken),this.accessToken&&(p.access_token=this.accessToken),this.secret&&(p.oauth_token_secret=this.secret),p.providerId=this.providerId,this.nonce&&!this.pendingToken&&(p.nonce=this.nonce),h.postBody=(0,E.Am)(p)}return h}}function lm(){return(lm=(0,D.A)(function*(y,h){return pt(y,"POST","/v1/accounts:sendVerificationCode",Fe(y,h))})).apply(this,arguments)}function cu(){return(cu=(0,D.A)(function*(y,h){return dn(y,"POST","/v1/accounts:signInWithPhoneNumber",Fe(y,h))})).apply(this,arguments)}function uu(){return(uu=(0,D.A)(function*(y,h){const p=yield dn(y,"POST","/v1/accounts:signInWithPhoneNumber",Fe(y,h));if(p.temporaryProof)throw Un(y,"account-exists-with-different-credential",p);return p})).apply(this,arguments)}const hy={USER_NOT_FOUND:"user-not-found"};function cm(){return(cm=(0,D.A)(function*(y,h){return dn(y,"POST","/v1/accounts:signInWithPhoneNumber",Fe(y,Object.assign(Object.assign({},h),{operation:"REAUTH"})),hy)})).apply(this,arguments)}class al extends il{constructor(h){super("phone","phone"),this.params=h}static _fromVerification(h,p){return new al({verificationId:h,verificationCode:p})}static _fromTokenResponse(h,p){return new al({phoneNumber:h,temporaryProof:p})}_getIdTokenResponse(h){return function Qb(y,h){return cu.apply(this,arguments)}(h,this._makeVerificationRequest())}_linkToIdToken(h,p){return function sl(y,h){return uu.apply(this,arguments)}(h,Object.assign({idToken:p},this._makeVerificationRequest()))}_getReauthenticationResolver(h){return function ol(y,h){return cm.apply(this,arguments)}(h,this._makeVerificationRequest())}_makeVerificationRequest(){const{temporaryProof:h,phoneNumber:p,verificationId:v,verificationCode:k}=this.params;return h&&p?{temporaryProof:h,phoneNumber:p}:{sessionInfo:v,code:k}}toJSON(){const h={providerId:this.providerId};return this.params.phoneNumber&&(h.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(h.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(h.verificationCode=this.params.verificationCode),this.params.verificationId&&(h.verificationId=this.params.verificationId),h}static fromJSON(h){"string"==typeof h&&(h=JSON.parse(h));const{verificationId:p,verificationCode:v,phoneNumber:k,temporaryProof:U}=h;return v||p||k||U?new al({verificationId:p,verificationCode:v,phoneNumber:k,temporaryProof:U}):null}}class Fh{constructor(h){var p,v,k,U,ne,fe;const Oe=(0,E.I9)((0,E.hp)(h)),ot=null!==(p=Oe.apiKey)&&void 0!==p?p:null,It=null!==(v=Oe.oobCode)&&void 0!==v?v:null,Dt=function Jb(y){switch(y){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!==(k=Oe.mode)&&void 0!==k?k:null);Ie(ot&&It&&Dt,"argument-error"),this.apiKey=ot,this.operation=Dt,this.code=It,this.continueUrl=null!==(U=Oe.continueUrl)&&void 0!==U?U:null,this.languageCode=null!==(ne=Oe.languageCode)&&void 0!==ne?ne:null,this.tenantId=null!==(fe=Oe.tenantId)&&void 0!==fe?fe:null}static parseLink(h){const p=function Xb(y){const h=(0,E.I9)((0,E.hp)(y)).link,p=h?(0,E.I9)((0,E.hp)(h)).deep_link_id:null,v=(0,E.I9)((0,E.hp)(y)).deep_link_id;return(v?(0,E.I9)((0,E.hp)(v)).link:null)||v||p||h||y}(h);try{return new Fh(p)}catch{return null}}}let Ed=(()=>{class y{constructor(){this.providerId=y.PROVIDER_ID}static credential(p,v){return lu._fromEmailAndPassword(p,v)}static credentialWithLink(p,v){const k=Fh.parseLink(v);return Ie(k,"argument-error"),lu._fromEmailAndCode(p,k.code,k.tenantId)}}return y.PROVIDER_ID="password",y.EMAIL_PASSWORD_SIGN_IN_METHOD="password",y.EMAIL_LINK_SIGN_IN_METHOD="emailLink",y})();class ll{constructor(h){this.providerId=h,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(h){this.defaultLanguageCode=h}setCustomParameters(h){return this.customParameters=h,this}getCustomParameters(){return this.customParameters}}class du extends ll{constructor(){super(...arguments),this.scopes=[]}addScope(h){return this.scopes.includes(h)||this.scopes.push(h),this}getScopes(){return[...this.scopes]}}class Yl extends du{static credentialFromJSON(h){const p="string"==typeof h?JSON.parse(h):h;return Ie("providerId"in p&&"signInMethod"in p,"argument-error"),ba._fromParams(p)}credential(h){return this._credential(Object.assign(Object.assign({},h),{nonce:h.rawNonce}))}_credential(h){return Ie(h.idToken||h.accessToken,"argument-error"),ba._fromParams(Object.assign(Object.assign({}
1,h),{providerId:this.providerId,signInMethod:this.providerId}))}static credentialFromResult(h){return Yl.oauthCredentialFromTaggedObject(h)}static credentialFromError(h){return Yl.oauthCredentialFromTaggedObject(h.customData||{})}static oauthCredentialFromTaggedObject({_tokenResponse:h}){if(!h)return null;const{oauthIdToken:p,oauthAccessToken:v,oauthTokenSecret:k,pendingToken:U,nonce:ne,providerId:fe}=h;if(!v&&!k&&!p&&!U||!fe)return null;try{return new Yl(fe)._credential({idToken:p,accessToken:v,nonce:ne,pendingToken:U})}catch{return null}}}let dm=(()=>{class y extends du{constructor(){super("facebook.com")}static credential(p){return ba._fromParams({providerId:y.PROVIDER_ID,signInMethod:y.FACEBOOK_SIGN_IN_METHOD,accessToken:p})}static credentialFromResult(p){return y.credentialFromTaggedObject(p)}static credentialFromError(p){return y.credentialFromTaggedObject(p.customData||{})}static credentialFromTaggedObject({_tokenResponse:p}){if(!p||!("oauthAccessToken"in p)||!p.oauthAccessToken)return null;try{return y.credential(p.oauthAccessToken)}catch{return null}}}return y.FACEBOOK_SIGN_IN_METHOD="facebook.com",y.PROVIDER_ID="facebook.com",y})(),Zb=(()=>{class y extends du{constructor(){super("google.com"),this.addScope("profile")}static credential(p,v){return ba._fromParams({providerId:y.PROVIDER_ID,signInMethod:y.GOOGLE_SIGN_IN_METHOD,idToken:p,accessToken:v})}static credentialFromResult(p){return y.credentialFromTaggedObject(p)}static credentialFromError(p){return y.credentialFromTaggedObject(p.customData||{})}static credentialFromTaggedObject({_tokenResponse:p}){if(!p)return null;const{oauthIdToken:v,oauthAccessToken:k}=p;if(!v&&!k)return null;try{return y.credential(v,k)}catch{return null}}}return y.GOOGLE_SIGN_IN_METHOD="google.com",y.PROVIDER_ID="google.com",y})(),fy=(()=>{class y extends du{constructor(){super("github.com")}static credential(p){return ba._fromParams({providerId:y.PROVIDER_ID,signInMethod:y.GITHUB_SIGN_IN_METHOD,accessToken:p})}static credentialFromResult(p){return y.credentialFromTaggedObject(p)}static credentialFromError(p){return y.credentialFromTaggedObject(p.customData||{})}static credentialFromTaggedObject({_tokenResponse:p}){if(!p||!("oauthAccessToken"in p)||!p.oauthAccessToken)return null;try{return y.credential(p.oauthAccessToken)}catch{return null}}}return y.GITHUB_SIGN_IN_METHOD="github.com",y.PROVIDER_ID="github.com",y})();class yc extends il{constructor(h,p){super(h,h),this.pendingToken=p}_getIdTokenResponse(h){return Pn(h,this.buildRequest())}_linkToIdToken(h,p){const v=this.buildRequest();return v.idToken=p,Pn(h,v)}_getReauthenticationResolver(h){const p=this.buildRequest();return p.autoCreate=!1,Pn(h,p)}toJSON(){return{signInMethod:this.signInMethod,providerId:this.providerId,pendingToken:this.pendingToken}}static fromJSON(h){const p="string"==typeof h?JSON.parse(h):h,{providerId:v,signInMethod:k,pendingToken:U}=p;return v&&k&&U&&v===k?new yc(v,U):null}static _create(h,p){return new yc(h,p)}buildRequest(){return{requestUri:"http://localhost",returnSecureToken:!0,pendingToken:this.pendingToken}}}class Vh extends ll{constructor(h){Ie(h.startsWith("saml."),"argument-error"),super(h)}static credentialFromResult(h){return Vh.samlCredentialFromTaggedObject(h)}static credentialFromError(h){return Vh.samlCredentialFromTaggedObject(h.customData||{})}static credentialFromJSON(h){const p=yc.fromJSON(h);return Ie(p,"argument-error"),p}static samlCredentialFromTaggedObject({_tokenResponse:h}){if(!h)return null;const{pendingToken:p,providerId:v}=h;if(!p||!v)return null;try{return yc._create(v,p)}catch{return null}}}let py=(()=>{class y extends du{constructor(){super("twitter.com")}static credential(p,v){return ba._fromParams({providerId:y.PROVIDER_ID,signInMethod:y.TWITTER_SIGN_IN_METHOD,oauthToken:p,oauthTokenSecret:v})}static credentialFromResult(p){return y.credentialFromTaggedObject(p)}static credentialFromError(p){return y.credentialFromTaggedObject(p.customData||{})}static credentialFromTaggedObject({_tokenResponse:p}){if(!p)return null;const{oauthAccessToken:v,oauthTokenSecret:k}=p;if(!v||!k)return null;try{return y.credential(v,k)}catch{return null}}}return y.TWITTER_SIGN_IN_METHOD="twitter.com",y.PROVIDER_ID="twitter.com",y})();function hu(y,h){return hm.apply(this,arguments)}
1function hm(){return(hm=(0,D.A)(function*(y,h){return dn(y,"POST","/v1/accounts:signUp",Fe(y,h))})).apply(this,arguments)}class oo{constructor(h){this.user=h.user,this.providerId=h.providerId,this._tokenResponse=h._tokenResponse,this.operationType=h.operationType}static _fromIdTokenResponse(h,p,v,k=!1){return(0,D.A)(function*(){const U=yield Mt._fromIdTokenResponse(h,v,k),ne=my(v);return new oo({user:U,providerId:ne,_tokenResponse:v,operationType:p})})()}static _forOperation(h,p,v){return(0,D.A)(function*(){yield h._updateTokensIfNecessary(v,!0);const k=my(v);return new oo({user:h,providerId:k,_tokenResponse:v,operationType:p})})()}}function my(y){return y.providerId?y.providerId:"phoneNumber"in y?"phone":null}function pm(){return(pm=(0,D.A)(function*(y){var h;if((0,I._isFirebaseServerApp)(y.app))return Promise.reject(Et(y));const p=Ar(y);if(yield p._initializationPromise,null!==(h=p.currentUser)&&void 0!==h&&h.isAnonymous)return new oo({user:p.currentUser,providerId:null,operationType:"signIn"});const v=yield hu(p,{returnSecureToken:!0}),k=yield oo._fromIdTokenResponse(p,"signIn",v,!0);return yield p._updateCurrentUser(k.user),k})).apply(this,arguments)}class Uh extends E.g{constructor(h,p,v,k){var U;super(p.code,p.message),this.operationType=v,this.user=k,Object.setPrototypeOf(this,Uh.prototype),this.customData={appName:h.name,tenantId:null!==(U=h.tenantId)&&void 0!==U?U:void 0,_serverResponse:p.customData._serverResponse,operationType:v}}static _fromErrorAndOperation(h,p,v,k){return new Uh(h,p,v,k)}}function Bl(y,h,p,v){return("reauthenticate"===h?p._getReauthenticationResolver(y):p._getIdTokenResponse(y)).catch(U=>{throw"auth/multi-factor-auth-required"===U.code?Uh._fromErrorAndOperation(y,U,h,v):U})}function tT(y){return new Set(y.map(({providerId:h})=>h).filter(h=>!!h))}function _y(){return _y=(0,D.A)(function*(y,h){const p=(0,E.Ku)(y);yield Yh(!0,p,h);const{providerUserInfo:v}=yield function si(y,h){return Nl.apply(this,arguments)}(p.auth,{idToken:yield p.getIdToken(),deleteProvider:[h]}),k=tT(v||[]);return p.providerData=p.providerData.filter(U=>k.has(U.providerId)),k.has("phone")||(p.phoneNumber=null),yield p.auth._persistUserIfCurrent(p),p}),_y.apply(this,arguments)}function jh(y,h){return ir.apply(this,arguments)}function ir(){return(ir=(0,D.A)(function*(y,h,p=!1){const v=yield Ur(y,h._linkToIdToken(y.auth,yield y.getIdToken()),p);return oo._forOperation(y,"link",v)})).apply(this,arguments)}function Yh(y,h,p){return yy.apply(this,arguments)}function yy(){return(yy=(0,D.A)(function*(y,h,p){yield Ji(h);const k=!1===y?"provider-already-linked":"no-such-provider";Ie(tT(h.providerData).has(p)===y,h.auth,k)})).apply(this,arguments)}function vy(y,h){return wy.apply(this,arguments)}function wy(){return(wy=(0,D.A)(function*(y,h,p=!1){const{auth:v}=y;if((0,I._isFirebaseServerApp)(v.app))return Promise.reject(Et(v));const k="reauthenticate";try{const U=yield Ur(y,Bl(v,k,h,y),p);Ie(U.idToken,v,"internal-error");const ne=Cs(U.idToken);Ie(ne,v,"internal-error");const{sub:fe}=ne;return Ie(y.uid===fe,v,"user-mismatch"),oo._forOperation(y,k,U)}catch(U){throw"auth/user-not-found"===U?.code&&Sn(v,"user-mismatch"),U}})).apply(this,arguments)}function nT(y,h){return by.apply(this,arguments)}function by(){return(by=(0,D.A)(function*(y,h,p=!1){if((0,I._isFirebaseServerApp)(y.app))return Promise.reject(Et(y));const v="signIn",k=yield Bl(y,v,h),U=yield oo._fromIdTokenResponse(y,v,k);return p||(yield y._updateCurrentUser(U.user)),U})).apply(this,arguments)}function Hl(y,h){return Ty.apply(this,arguments)}function Ty(){return(Ty=(0,D.A)(function*(y,h){return nT(Ar(y),h)})).apply(this,arguments)}function rT(y,h){return Bh.apply(this,arguments)}function Bh(){return(Bh=(0,D.A)(function*(y,h){const p=(0,E.Ku)(y);return yield Yh(!1,p,h.providerId),jh(p,h)})).apply(this,arguments)}function De(y,h){return ea.apply(this,arguments)}function ea(){return(ea=(0,D.A)(function*(y,h){return vy((0,E.Ku)(y),h)})).apply(this,arguments)}function Hh(){return(Hh=(0,D.A)(function*(y,h){return dn(y,"POST","/v1/accounts:signInWithCustomToken",Fe(y,h))})).apply(this,arguments)}function Ey(){return Ey=(0,D.A)(function*(y,h){if((0,I._isFirebaseServerApp)(y.app))return Promise.reject(Et(y));const p=Ar(y),v=yield function fu(y,h){return Hh.apply(this,arguments)}(p,{token:h,returnSecureToken:!0}),k=yield oo._fromIdTokenResponse(p,"signIn",v);return yield p._updateCurrentUser(k.user),k}),Ey.apply(this,arguments)}class zl{constructor(h,p){this.factorId=h,this.uid=p.mfaEnrollmentId,this.enrollmentTime=new Date(p.enrolledAt).toUTCString(),this.displayName=p.displayName}static _fromServerResponse(h,p){return"phoneInfo"in p?ao._fromServerResponse(h,p):"totpInfo"in p?Ta._fromServerResponse(h,p):Sn(h,"internal-error")}}class ao extends zl{constructor(h){super("phone",h),this.phoneNumber=h.phoneInfo}static _fromServerResponse(h,p){return new ao(p)}}class Ta extends zl{constructor(h){super("totp",h)}static _fromServerResponse(h,p){return new Ta(p)}}function cl(y,h,p){var v;Ie((null===(v=p.url)||void 0===v?void 0:v.length)>0,y,"invalid-continue-uri"),Ie(typeof p.dynamicLinkDomain>"u"||p.dynamicLinkDomain.length>0,y,"invalid-dynamic-link-domain"),h.continueUrl=p.url,h.dynamicLinkDomain=p.dynamicLinkDomain,h.canHandleCodeInApp=p.handleCodeInApp,p.iOS&&(Ie(p.iOS.bundleId.length>0,y,"missing-ios-bundle-id"),h.iOSBundleId=p.iOS.bundleId),p.android&&(Ie(p.android.packageName.length>0,y,"missing-android-pkg-name"),h.androidInstallApp=p.android.installApp,h.androidMinimumVersionCode=p.android.minimumVersion,h.androidPackageName=p.android.packageName)}function $l(y){return zh.apply(this,arguments)}function zh(){return(zh=(0,D.A)(function*(y){const h=Ar(y);h._getPasswordPolicyInternal()&&(yield h._updatePasswordPolicy())})).apply(this,arguments)}function ql(){return(ql=(0,D.A)(function*(y,h,p){const v=Ar(y),k={requestType:"PASSWORD_RESET",email:h,clientType:"CLIENT_TYPE_WEB"};p&&cl(v,k,p),yield Io(v,k,"getOobCode",qb)})).apply(this,arguments)}function Gn(){return Gn=(0,D.A)(function*(y,h,p){yield nm((0,E.Ku)(y),{oobCode:h,newPassword:p}).catch(function(){var v=(0,D.A)(function*(k){throw"auth/password-does-not-meet-requirements"===k.code&&$l(y),k});return function(k){return v.apply(this,arguments)}}())}),Gn.apply(this,arguments)}function My(){return My=(0,D.A)(function*(y,h){yield function dS(y,h){return rm.apply(this,arguments)}((0,E.Ku)(y),{oobCode:h})}),My.apply(this,arguments)}function Bn(y,h){return $h.apply(this,arguments)}function $h(){return($h=(0,D.A)(function*(y,h){const p=(0,E.Ku)(y),v=yield nm(p,{oobCode:h}),k=v.requestType;switch(Ie(k,p,"internal-error"),k){case"EMAIL_SIGNIN":break;case"VERIFY_AND_CHANGE_EMAIL":Ie(v.newEmail,p,"internal-error");break;case"REVERT_SECOND_FACTOR_ADDITION":Ie(v.mfaInfo,p,"internal-error");default:Ie(v.email,p,"internal-error")}let U=null;return v.mfaInfo&&(U=zl._fromServerResponse(Ar(p),v.mfaInfo)),{data:{email:("VERIFY_AND_CHANGE_EMAIL"===v.requestType?v.newEmail:v.email)||null,previousEmail:("VERIFY_AND_CHANGE_EMAIL"===v.requestType?v.email:v.newEmail)||null,multiFactorInfo:U},operation:k}})).apply(this,arguments)}function Md(){return(Md=(0,D.A)(function*(y,h){const{data:p}=yield Bn((0,E.Ku)(y),h);return p.email})).apply(this,arguments)}function ul(){return(ul=(0,D.A)(function*(y,h,p){if((0,I._isFirebaseServerApp)(y.app))return Promise.reject(Et(y));const v=Ar(y),ne=yield Io(v,{returnSecureToken:!0,email:h,password:p,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",hu).catch(Oe=>{throw"auth/password-does-not-meet-requirements"===Oe.code&&$l(y),Oe}),fe=yield oo._fromIdTokenResponse(v,"signIn",ne);return yield v._updateCurrentUser(fe.user),fe})).apply(this,arguments)}function vc(){return(vc=(0,D.A)(function*(y,h,p){const v=Ar(y),k={requestType:"EMAIL_SIGNIN",email:h,clientType:"CLIENT_TYPE_WEB"};(function U(ne,fe){Ie(fe.handleCodeInApp,v,"argument-error"),fe&&cl(v,ne,fe)})(k,p),yield Io(v,k,"getOobCode",cy)})).apply(this,arguments)}function gm(){return(gm=(0,D.A)(function*(y,h,p){if((0,I._isFirebaseServerApp)(y.app))return Promise.reject(Et(y));const v=(0,E.Ku)(y),k=Ed.credentialWithLink(h,p||Ir());return Ie(k._tenantId===(v.tenantId||null),v,"tenant-id-mismatch"),Hl(v,k)})).apply(this,arguments)}function Ma(){return(Ma=(0,D.A)(function*(y,h){return pt(y,"POST","/v1/accounts:createAuthUri",Fe(y,h))})).apply(this,arguments)}function Iy(){return Iy=(0,D.A)(function*(y,h){const v={identifier:h,continueUri:nr()?Ir():"http://localhost"},{signinMethods:k}=yield function sT(y,h){return Ma.apply(this,arguments)}((0,E.Ku)(y),v);return k||[]}),Iy.apply(this,arguments)}function Dy(){return Dy=(0,D.A)(function*(y,h){const p=(0,E.Ku)(y),k={requestType:"VERIFY_EMAIL",idToken:yield y.getIdToken()};h&&cl(p.auth,k,h);const{email:U}=yield function im(y,h){return sm.apply(this,arguments)}(p.auth,k);U!==y.email&&(yield y.reload())}),Dy.apply(this,arguments)}function Cy(){return Cy=(0,D.A)(function*(y,h,p){const v=(0,E.Ku)(y),U={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:yield y.getIdToken(),newEmail:h};p&&cl(v.auth,U,p);const{email:ne}=yield function dy(y,h){return Nh.apply(this,arguments)}(v.auth,U);ne!==y.email&&(yield y.reload())}),Cy.apply(this,arguments)}function Sy(){return(Sy=(0,D.A)(function*(y,h){return pt(y,"POST","/v1/accounts:update",h)})).apply(this,arguments)}function Ut(){return Ut=(0,D.A)(function*(y,{displayName:h,photoURL:p}){if(void 0===h&&void 0===p)return;const v=(0,E.Ku)(y),U={idToken:yield v.getIdToken(),displayName:h,photoUrl:p,returnSecureToken:!0},ne=yield Ur(v,function aT(y,h){return Sy.apply(this,arguments)}(v.auth,U));v.displayName=ne.displayName||null,v.photoURL=ne.photoUrl||null;const fe=v.providerData.find(({providerId:Oe})=>"password"===Oe);fe&&(fe.displayName=v.displayName,fe.photoURL=v.photoURL),yield v._updateTokensIfNecessary(ne)}),Ut.apply(this,arguments)}function lT(y,h,p){return Id.apply(this,arguments)}function Id(){return Id=(0,D.A)(function*(y,h,p){const{auth:v}=y,U={idToken:yield y.getIdToken(),returnSecureToken:!0};h&&(U.email=h),p&&(U.password=p);const ne=yield Ur(y,function cS(y,h){return ay.apply(this,arguments)}(v,U));yield y._updateTokensIfNecessary(ne,!0)}),Id.apply(this,arguments)}class Be{constructor(h,p,v={}){this.isNewUser=h,this.providerId=p,this.profile=v}}class cT extends Be{constructor(h,p,v,k){super(h,p,v),this.username=k}}class ai extends Be{constructor(h,p){super(h,"facebook.com",p)}}class qh extends cT{constructor(h,p){super(h,"github.com",p,"string"==typeof p?.login?p?.login:null)}}class uT extends Be{constructor(h,p){super(h,"google.com",p)}}class Ay extends cT{constructor(h,p,v){super(h,"twitter.com",p,v)}}function dT(y){const{user:h,_tokenResponse:p}=y;return h.isAnonymous&&!p?{providerId:null,isNewUser:!1,profile:null}:function wS(y){var h,p;if(!y)return null;const{providerId:v}=y,k=y.rawUserInfo?JSON.parse(y.rawUserInfo):{},U=y.isNewUser||"identitytoolkit#SignupNewUserResponse"===y.kind;if(!v&&y?.idToken){const ne=null===(p=null===(h=Cs(y.idToken))||void 0===h?void 0:h.firebase)||void 0===p?void 0:p.sign_in_provider;if(ne)return new Be(U,"anonymous"!==ne&&"custom"!==ne?ne:null)}if(!v)return null;switch(v){case"facebook.com":return new ai(U,k);case"github.com":return new qh(U,k);case"google.com":return new uT(U,k);case"twitter.com":return new Ay(U,k,y.screenName||null);
1case"custom":case"anonymous":return new Be(U,null);default:return new Be(U,v,k)}}(p)}class mu{constructor(h,p,v){this.type=h,this.credential=p,this.user=v}static _fromIdtoken(h,p){return new mu("enroll",h,p)}static _fromMfaPendingCredential(h){return new mu("signin",h)}toJSON(){return{multiFactorSession:{["enroll"===this.type?"idToken":"pendingCredential"]:this.credential}}}static fromJSON(h){var p,v;if(h?.multiFactorSession){if(null!==(p=h.multiFactorSession)&&void 0!==p&&p.pendingCredential)return mu._fromMfaPendingCredential(h.multiFactorSession.pendingCredential);if(null!==(v=h.multiFactorSession)&&void 0!==v&&v.idToken)return mu._fromIdtoken(h.multiFactorSession.idToken)}return null}}class Ry{constructor(h,p,v){this.session=h,this.hints=p,this.signInResolver=v}static _fromError(h,p){const v=Ar(h),k=p.customData._serverResponse,U=(k.mfaInfo||[]).map(fe=>zl._fromServerResponse(v,fe));Ie(k.mfaPendingCredential,v,"internal-error");const ne=mu._fromMfaPendingCredential(k.mfaPendingCredential);return new Ry(ne,U,function(){var fe=(0,D.A)(function*(Oe){const ot=yield Oe._process(v,ne);delete k.mfaInfo,delete k.mfaPendingCredential;const It=Object.assign(Object.assign({},k),{idToken:ot.idToken,refreshToken:ot.refreshToken});switch(p.operationType){case"signIn":const Dt=yield oo._fromIdTokenResponse(v,p.operationType,It);return yield v._updateCurrentUser(Dt.user),Dt;case"reauthenticate":return Ie(p.user,v,"internal-error"),oo._forOperation(p.user,p.operationType,It);default:Sn(v,"internal-error")}});return function(Oe){return fe.apply(this,arguments)}}())}resolveSignIn(h){var p=this;return(0,D.A)(function*(){return p.signInResolver(h)})()}}class ta{constructor(h){this.user=h,this.enrolledFactors=[],h._onReload(p=>{p.mfaInfo&&(this.enrolledFactors=p.mfaInfo.map(v=>zl._fromServerResponse(h.auth,v)))})}static _fromUser(h){return new ta(h)}getSession(){var h=this;return(0,D.A)(function*(){return mu._fromIdtoken(yield h.user.getIdToken(),h.user)})()}enroll(h,p){var v=this;return(0,D.A)(function*(){const k=h,U=yield v.getSession(),ne=yield Ur(v.user,k._process(v.user.auth,U,p));return yield v.user._updateTokensIfNecessary(ne),v.user.reload()})()}unenroll(h){var p=this;return(0,D.A)(function*(){const v="string"==typeof h?h:h.uid,k=yield p.user.getIdToken();try{const U=yield Ur(p.user,function Oy(y,h){return pt(y,"POST","/v2/accounts/mfaEnrollment:withdraw",Fe(y,h))}(p.user.auth,{idToken:k,mfaEnrollmentId:v}));p.enrolledFactors=p.enrolledFactors.filter(({uid:ne})=>ne!==v),yield p.user._updateTokensIfNecessary(U),yield p.user.reload()}catch(U){throw U}})()}}const Tc=new WeakMap,Wt="__sak";class Rn{constructor(h,p){this.storageRetriever=h,this.type=p}_isAvailable(){try{return this.storage?(this.storage.setItem(Wt,"1"),this.storage.removeItem(Wt),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(h,p){return this.storage.setItem(h,JSON.stringify(p)),Promise.resolve()}_get(h){const p=this.storage.getItem(h);return Promise.resolve(p?JSON.parse(p):null)}_remove(h){return this.storage.removeItem(h),Promise.resolve()}get storage(){return this.storageRetriever()}}const Kh=(()=>{class y extends Rn{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(p,v)=>this.onStorageEvent(p,v),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function ES(){const y=(0,E.ZQ)();return Z_(y)||el(y)}()&&function oi(){try{return!(!window||window===window.top)}catch{return!1}}(),this.fallbackToPolling=ou(),this._shouldAllowMigration=!0}forAllChangedKeys(p){for(const v of Object.keys(this.listeners)){const k=this.storage.getItem(v),U=this.localCache[v];k!==U&&p(v,U,k)}}onStorageEvent(p,v=!1){if(!p.key)return void this.forAllChangedKeys((fe,Oe,ot)=>{this.notifyListeners(fe,ot)});const k=p.key;if(v?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const fe=this.storage.getItem(k);if(p.newValue!==fe)null!==p.newValue?this.storage.setItem(k,p.newValue):this.storage.removeItem(k);else if(this.localCache[k]===p.newValue&&!v)return}const U=()=>{const fe=this.storage.getItem(k);!v&&this.localCache[k]===fe||this.notifyListeners(k,fe)},ne=this.storage.getItem(k);!function Vb(){return(0,E.lT)()&&10===document.documentMode}()||ne===p.newValue||p.newValue===p.oldValue?U():setTimeout(U,10)}notifyListeners(p,v){this.localCache[p]=v;const k=this.listeners[p];if(k)for(const U of Array.from(k))U(v&&JSON.parse(v))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((p,v,k)=>{this.onStorageEvent(new StorageEvent("storage",{key:p,oldValue:v,newValue:k}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(p,v){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[p]||(this.listeners[p]=new Set,this.localCache[p]=this.storage.getItem(p)),this.listeners[p].add(v)}_removeListener(p,v){this.listeners[p]&&(this.listeners[p].delete(v),0===this.listeners[p].size&&delete this.listeners[p]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}_set(p,v){var k=()=>super._set,U=this;return(0,D.A)(function*(){yield k().call(U,p,v),U.localCache[p]=JSON.stringify(v)})()}_get(p){var v=()=>super._get,k=this;return(0,D.A)(function*(){const U=yield v().call(k,p);return k.localCache[p]=JSON.stringify(U),U})()}_remove(p){var v=()=>super._remove,k=this;return(0,D.A)(function*(){yield v().call(k,p),delete k.localCache[p]})()}}return y.type="LOCAL",y})(),Gt=(()=>{class y extends Rn{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(p,v){}_removeListener(p,v){}}return y.type="SESSION",y})();let Vy=(()=>{class y{constructor(p){this.eventTarget=p,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(p){const v=this.receivers.find(U=>U.isListeningto(p));if(v)return v;
1const k=new y(p);return this.receivers.push(k),k}isListeningto(p){return this.eventTarget===p}handleEvent(p){var v=this;return(0,D.A)(function*(){const k=p,{eventId:U,eventType:ne,data:fe}=k.data,Oe=v.handlersMap[ne];if(!Oe?.size)return;k.ports[0].postMessage({status:"ack",eventId:U,eventType:ne});const ot=Array.from(Oe).map(function(){var Dt=(0,D.A)(function*($r){return $r(k.origin,fe)});return function($r){return Dt.apply(this,arguments)}}()),It=yield function Tm(y){return Promise.all(y.map(function(){var h=(0,D.A)(function*(p){try{return{fulfilled:!0,value:yield p}}catch(v){return{fulfilled:!1,reason:v}}});return function(p){return h.apply(this,arguments)}}()))}(ot);k.ports[0].postMessage({status:"done",eventId:U,eventType:ne,response:It})})()}_subscribe(p,v){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[p]||(this.handlersMap[p]=new Set),this.handlersMap[p].add(v)}_unsubscribe(p,v){this.handlersMap[p]&&v&&this.handlersMap[p].delete(v),(!v||0===this.handlersMap[p].size)&&delete this.handlersMap[p],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}return y.receivers=[],y})();function Yi(y="",h=10){let p="";for(let v=0;v<h;v++)p+=Math.floor(10*Math.random());return y+p}class Qh{constructor(h){this.target=h,this.handlers=new Set}removeMessageHandler(h){h.messageChannel&&(h.messageChannel.port1.removeEventListener("message",h.onMessage),h.messageChannel.port1.close()),this.handlers.delete(h)}_send(h,p,v=50){var k=this;return(0,D.A)(function*(){const U=typeof MessageChannel<"u"?new MessageChannel:null;if(!U)throw new Error("connection_unavailable");let ne,fe;return new Promise((Oe,ot)=>{const It=Yi("",20);U.port1.start();const Dt=setTimeout(()=>{ot(new Error("unsupported_event"))},v);fe={messageChannel:U,onMessage($r){const As=$r;if(As.data.eventId===It)switch(As.data.status){case"ack":clearTimeout(Dt),ne=setTimeout(()=>{ot(new Error("timeout"))},3e3);break;case"done":clearTimeout(ne),Oe(As.data.response);break;default:clearTimeout(Dt),clearTimeout(ne),ot(new Error("invalid_response"))}}},k.handlers.add(fe),U.port1.addEventListener("message",fe.onMessage),k.target.postMessage({eventType:h,eventId:It,data:p},[U.port2])}).finally(()=>{fe&&k.removeMessageHandler(fe)})})()}}function zr(){return window}function Ec(){return typeof zr().WorkerGlobalScope<"u"&&"function"==typeof zr().importScripts}function gu(){return(gu=(0,D.A)(function*(){if(!navigator?.serviceWorker)return null;try{return(yield navigator.serviceWorker.ready).active}catch{return null}})).apply(this,arguments)}const Mm="firebaseLocalStorageDb",dl="firebaseLocalStorage",Im="fbase_key";class Do{constructor(h){this.request=h}toPromise(){return new Promise((h,p)=>{this.request.addEventListener("success",()=>{h(this.request.result)}),this.request.addEventListener("error",()=>{p(this.request.error)})})}}function Jh(y,h){return y.transaction([dl],h?"readwrite":"readonly").objectStore(dl)}function na(){const y=indexedDB.open(Mm,1);return new Promise((h,p)=>{y.addEventListener("error",()=>{p(y.error)}),y.addEventListener("upgradeneeded",()=>{const v=y.result;try{v.createObjectStore(dl,{keyPath:Im})}catch(k){p(k)}}),y.addEventListener("success",(0,D.A)(function*(){const v=y.result;v.objectStoreNames.contains(dl)?h(v):(v.close(),yield function ve(){const y=indexedDB.deleteDatabase(Mm);return new Do(y).toPromise()}(),h(yield na()))}))})}function Le(y,h,p){return _u.apply(this,arguments)}function _u(){return(_u=(0,D.A)(function*(y,h,p){const v=Jh(y,!0).put({[Im]:h,value:p});return new Do(v).toPromise()})).apply(this,arguments)}function Mc(){return(Mc=(0,D.A)(function*(y,h){const p=Jh(y,!1).get(h),v=yield new Do(p).toPromise();return void 0===v?null:v.value})).apply(this,arguments)}function Ze(y,h){const p=Jh(y,!0).delete(h);return new Do(p).toPromise()}const an=(()=>{class y{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 p=this;return(0,D.A)(function*(){return p.db||(p.db=yield na()),p.db})()}_withRetries(p){var v=this;return(0,D.A)(function*(){let k=0;for(;;)try{const U=yield v._openDb();return yield p(U)}catch(U){if(k++>3)throw U;v.db&&(v.db.close(),v.db=void 0)}})()}initializeServiceWorkerMessaging(){var p=this;return(0,D.A)(function*(){return Ec()?p.initializeReceiver():p.initializeSender()})()}initializeReceiver(){var p=this;return(0,D.A)(function*(){p.receiver=Vy._getInstance(function mT(){return Ec()?self:null}()),p.receiver._subscribe("keyChanged",function(){var v=(0,D.A)(function*(k,U){return{keyProcessed:(yield p._poll()).includes(U.key)}});return function(k,U){return v.apply(this,arguments)}}()),p.receiver._subscribe("ping",function(){var v=(0,D.A)(function*(k,U){return["keyChanged"]});return function(k,U){return v.apply(this,arguments)}}())})()}initializeSender(){var p=this;return(0,D.A)(function*(){var v,k;if(p.activeServiceWorker=yield function Em(){return gu.apply(this,arguments)}(),!p.activeServiceWorker)return;p.sender=new Qh(p.activeServiceWorker);const U=yield p.sender._send("ping",{},800);U&&null!==(v=U[0])&&void 0!==v&&v.fulfilled&&null!==(k=U[0])&&void 0!==k&&k.value.includes("keyChanged")&&(p.serviceWorkerReceiverAvailable=!0)})()}notifyServiceWorker(p){var v=this;return(0,D.A)(function*(){if(v.sender&&v.activeServiceWorker&&function pT(){var y;return(null===(y=navigator?.serviceWorker)||void 0===y?void 0:y.controller)||null}()===v.activeServiceWorker)try{yield v.sender._send("keyChanged",{key:p},v.serviceWorkerReceiverAvailable?800:50)}catch{}})()}_isAvailable(){return(0,D.A)(function*(){try{if(!indexedDB)return!1;const p=yield na();return yield Le(p,Wt,"1"),yield Ze(p,Wt),!0}catch{}return!1})()}_withPendingWrite(p){var v=this;return(0,D.A)(function*(){v.pendingWrites++;try{yield p()}finally{v.pendingWrites--}})()}_set(p,v){var k=this;return(0,D.A)(function*(){return k._withPendingWrite((0,D.A)(function*(){return yield k._withRetries(U=>Le(U,p,v)),k.localCache[p]=v,k.notifyServiceWorker(p)}))})()}_get(p){var v=this;return(0,D.A)(function*(){const k=yield v._withRetries(U=>function Dm(y,h){return Mc.apply(this,arguments)}(U,p));return v.localCache[p]=k,k})()}_remove(p){var v=this;return(0,D.A)(function*(){return v._withPendingWrite((0,D.A)(function*(){return yield v._withRetries(k=>Ze(k,p)),delete v.localCache[p],v.notifyServiceWorker(p)}))})()}_poll(){var p=this;return(0,D.A)(function*(){const v=yield p._withRetries(ne=>{const fe=Jh(ne,!1).getAll();
1return new Do(fe).toPromise()});if(!v)return[];if(0!==p.pendingWrites)return[];const k=[],U=new Set;if(0!==v.length)for(const{fbase_key:ne,value:fe}of v)U.add(ne),JSON.stringify(p.localCache[ne])!==JSON.stringify(fe)&&(p.notifyListeners(ne,fe),k.push(ne));for(const ne of Object.keys(p.localCache))p.localCache[ne]&&!U.has(ne)&&(p.notifyListeners(ne,null),k.push(ne));return k})()}notifyListeners(p,v){this.localCache[p]=v;const k=this.listeners[p];if(k)for(const U of Array.from(k))U(v)}startPolling(){var p=this;this.stopPolling(),this.pollTimer=setInterval((0,D.A)(function*(){return p._poll()}),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(p,v){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[p]||(this.listeners[p]=new Set,this._get(p)),this.listeners[p].add(v)}_removeListener(p,v){this.listeners[p]&&(this.listeners[p].delete(v),0===this.listeners[p].size&&delete this.listeners[p]),0===Object.keys(this.listeners).length&&this.stopPolling()}}return y.type="LOCAL",y})(),Zi=1e12;class yu{constructor(h){this.auth=h,this.counter=Zi,this._widgets=new Map}render(h,p){const v=this.counter;return this._widgets.set(v,new jy(h,this.auth.name,p||{})),this.counter++,v}reset(h){var p;const v=h||Zi;null===(p=this._widgets.get(v))||void 0===p||p.delete(),this._widgets.delete(v)}getResponse(h){var p;return(null===(p=this._widgets.get(h||Zi))||void 0===p?void 0:p.getResponse())||""}execute(h){var p=this;return(0,D.A)(function*(){var v;return null===(v=p._widgets.get(h||Zi))||void 0===v||v.execute(),""})()}}class jy{constructor(h,p,v){this.params=v,this.timerId=null,this.deleted=!1,this.responseToken=null,this.clickHandler=()=>{this.execute()};const k="string"==typeof h?document.getElementById(h):h;Ie(k,"argument-error",{appName:p}),this.container=k,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 Co(y){const h=[],p="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let v=0;v<y;v++)h.push(p.charAt(Math.floor(62*Math.random())));return h.join("")}(50);const{callback:h,"expired-callback":p}=this.params;if(h)try{h(this.responseToken)}catch{}this.timerId=window.setTimeout(()=>{if(this.timerId=null,this.responseToken=null,p)try{p()}catch{}this.isVisible&&this.execute()},6e4)},500))}checkIfDeleted(){if(this.deleted)throw new Error("reCAPTCHA mock was already deleted!")}}const vu=Xp("rcb"),Zh=new Me(3e4,6e4);class IS{constructor(){var h;this.hostLanguage="",this.counter=0,this.librarySeparatelyLoaded=!(null===(h=zr().grecaptcha)||void 0===h||!h.render)}load(h,p=""){return Ie(function Yy(y){return y.length<=6&&/^\s*[a-zA-Z0-9\-]*\s*$/.test(y)}(p),h,"argument-error"),this.shouldResolveImmediately(p)&&ji(zr().grecaptcha)?Promise.resolve(zr().grecaptcha):new Promise((v,k)=>{const U=zr().setTimeout(()=>{k(en(h,"network-request-failed"))},Zh.get());zr()[vu]=()=>{zr().clearTimeout(U),delete zr()[vu];const fe=zr().grecaptcha;if(!fe||!ji(fe))return void k(en(h,"internal-error"));const Oe=fe.render;fe.render=(ot,It)=>{const Dt=Oe(ot,It);return this.counter++,Dt},this.hostLanguage=p,v(fe)},gd(`${function ny(){return jl.recaptchaV2Script}()}?${(0,E.Am)({onload:vu,render:"explicit",hl:p})}`).catch(()=>{clearTimeout(U),k(en(h,"internal-error"))})})}clearedOneInstance(){this.counter--}shouldResolveImmediately(h){var p;return!(null===(p=zr().grecaptcha)||void 0===p||!p.render)&&(h===this.hostLanguage||this.counter>0||this.librarySeparatelyLoaded)}}class wT{load(h){return(0,D.A)(function*(){return new yu(h)})()}clearedOneInstance(){}}const Bs="recaptcha",ef={theme:"light",type:"image"};class Wl{constructor(h,p,v=Object.assign({},ef)){this.parameters=v,this.type=Bs,this.destroyed=!1,this.widgetId=null,this.tokenChangeListeners=new Set,this.renderPromise=null,this.recaptcha=null,this.auth=Ar(h),this.isInvisible="invisible"===this.parameters.size,Ie(typeof document<"u",this.auth,"operation-not-supported-in-this-environment");const k="string"==typeof p?document.getElementById(p):p;Ie(k,this.auth,"argument-error"),this.container=k,this.parameters.callback=this.makeTokenCallback(this.parameters.callback),this._recaptchaLoader=this.auth.settings.appVerificationDisabledForTesting?new wT:new IS,this.validateStartingState()}verify(){var h=this;return(0,D.A)(function*(){h.assertNotDestroyed();const p=yield h.render(),v=h.getAssertedRecaptcha();return v.getResponse(p)||new Promise(U=>{const ne=fe=>{fe&&(h.tokenChangeListeners.delete(ne),U(fe))};h.tokenChangeListeners.add(ne),h.isInvisible&&v.execute(p)})})()}render(){try{this.assertNotDestroyed()}catch(h){return Promise.reject(h)}return this.renderPromise||(this.renderPromise=this.makeRenderPromise().catch(h=>{throw this.renderPromise=null,h})),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.forEac
1h(h=>{this.container.removeChild(h)})}validateStartingState(){Ie(!this.parameters.sitekey,this.auth,"argument-error"),Ie(this.isInvisible||!this.container.hasChildNodes(),this.auth,"argument-error"),Ie(typeof document<"u",this.auth,"operation-not-supported-in-this-environment")}makeTokenCallback(h){return p=>{if(this.tokenChangeListeners.forEach(v=>v(p)),"function"==typeof h)h(p);else if("string"==typeof h){const v=zr()[h];"function"==typeof v&&v(p)}}}assertNotDestroyed(){Ie(!this.destroyed,this.auth,"internal-error")}makeRenderPromise(){var h=this;return(0,D.A)(function*(){if(yield h.init(),!h.widgetId){let p=h.container;if(!h.isInvisible){const v=document.createElement("div");p.appendChild(v),p=v}h.widgetId=h.getAssertedRecaptcha().render(p,h.parameters)}return h.widgetId})()}init(){var h=this;return(0,D.A)(function*(){Ie(nr()&&!Ec(),h.auth,"internal-error"),yield function DS(){let y=null;return new Promise(h=>{"complete"!==document.readyState?(y=()=>h(),window.addEventListener("load",y)):h()}).catch(h=>{throw y&&window.removeEventListener("load",y),h})}(),h.recaptcha=yield h._recaptchaLoader.load(h.auth,h.auth.languageCode||void 0);const p=yield function Xa(y){return bi.apply(this,arguments)}(h.auth);Ie(p,h.auth,"internal-error"),h.parameters.sitekey=p})()}getAssertedRecaptcha(){return Ie(this.recaptcha,this.auth,"internal-error"),this.recaptcha}}class So{constructor(h,p){this.verificationId=h,this.onConfirmation=p}confirm(h){const p=al._fromVerification(this.verificationId,h);return this.onConfirmation(p)}}function En(){return(En=(0,D.A)(function*(y,h,p){if((0,I._isFirebaseServerApp)(y.app))return Promise.reject(Et(y));const v=Ar(y),k=yield Dc(v,h,(0,E.Ku)(p));return new So(k,U=>Hl(v,U))})).apply(this,arguments)}function tf(){return(tf=(0,D.A)(function*(y,h,p){const v=(0,E.Ku)(y);yield Yh(!1,v,"phone");const k=yield Dc(v.auth,h,(0,E.Ku)(p));return new So(k,U=>rT(v,U))})).apply(this,arguments)}function wu(){return(wu=(0,D.A)(function*(y,h,p){const v=(0,E.Ku)(y);if((0,I._isFirebaseServerApp)(v.auth.app))return Promise.reject(Et(v.auth));const k=yield Dc(v.auth,h,(0,E.Ku)(p));return new So(k,U=>De(v,U))})).apply(this,arguments)}function Dc(y,h,p){return co.apply(this,arguments)}function co(){return co=(0,D.A)(function*(y,h,p){var v;const k=yield p.verify();try{let U;if(Ie("string"==typeof k,y,"argument-error"),Ie(p.type===Bs,y,"argument-error"),U="string"==typeof h?{phoneNumber:h}:h,"session"in U){const ne=U.session;if("phoneNumber"in U)return Ie("enroll"===ne.type,y,"internal-error"),(yield function wm(y,h){return pt(y,"POST","/v2/accounts/mfaEnrollment:start",Fe(y,h))}(y,{idToken:ne.credential,phoneEnrollmentInfo:{phoneNumber:U.phoneNumber,recaptchaToken:k}})).phoneSessionInfo.sessionInfo;{Ie("signin"===ne.type,y,"internal-error");const fe=(null===(v=U.multiFactorHint)||void 0===v?void 0:v.uid)||U.multiFactorUid;return Ie(fe,y,"missing-multi-factor-info"),(yield function Xh(y,h){return pt(y,"POST","/v2/accounts/mfaSignIn:start",Fe(y,h))}(y,{mfaPendingCredential:ne.credential,mfaEnrollmentId:fe,phoneSignInInfo:{recaptchaToken:k}})).phoneResponseInfo.sessionInfo}}{const{sessionInfo:ne}=yield function Kb(y,h){return lm.apply(this,arguments)}(y,{phoneNumber:U.phoneNumber,recaptchaToken:k});return ne}}finally{p._reset()}}),co.apply(this,arguments)}function Am(){return(Am=(0,D.A)(function*(y,h){const p=(0,E.Ku)(y);if((0,I._isFirebaseServerApp)(p.auth.app))return Promise.reject(Et(p.auth));yield jh(p,h)})).apply(this,arguments)}let Cc=(()=>{class y{constructor(p){this.providerId=y.PROVIDER_ID,this.auth=Ar(p)}verifyPhoneNumber(p,v){return Dc(this.auth,p,(0,E.Ku)(v))}static credential(p,v){return al._fromVerification(p,v)}static credentialFromResult(p){return y.credentialFromTaggedObject(p)}static credentialFromError(p){return y.credentialFromTaggedObject(p.customData||{})}static credentialFromTaggedObject({_tokenResponse:p}){if(!p)return null;const{phoneNumber:v,temporaryProof:k}=p;return v&&k?al._fromTokenResponse(v,k):null}}return y.PROVIDER_ID="phone",y.PHONE_SIGN_IN_METHOD="phone",y})();function Gl(y,h){return h?Tt(h):(Ie(y._popupRedirectResolver,y,"argument-error"),y._popupRedirectResolver)}class Da extends il{constructor(h){super("custom","custom"),this.params=h}_getIdTokenResponse(h){return Pn(h,this._buildIdpRequest())}_linkToIdToken(h,p){return Pn(h,this._buildIdpRequest(p))}_getReauthenticationResolver(h){return Pn(h,this._buildIdpRequest())}_buildIdpRequest(h){const p={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 h&&(p.idToken=h),p}}function Sd(y){return nT(y.auth,new Da(y),y.bypassAuthState)}function By(y){const{auth:h,user:p}=y;return Ie(p,h,"internal-error"),vy(p,new Da(y),y.bypassAuthState)}function Hy(y){return xm.apply(this,arguments)}function xm(){return(xm=(0,D.A)(function*(y){const{auth:h,user:p}=y;return Ie(p,h,"internal-error"),jh(p,new Da(y),y.bypassAuthState)})).apply(this,arguments)}class nf{constructor(h,p,v,k,U=!1){this.auth=h,this.resolver=v,this.user=k,this.bypassAuthState=U,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(p)?p:[p]}execute(){var h=this;return new Promise(function(){var p=(0,D.A)(function*(v,k){h.pendingPromise={resolve:v,reject:k};try{h.eventManager=yield h.resolver._initialize(h.auth),yield h.onExecution(),h.eventManager.registerConsumer(h)}catch(U){h.reject(U)}});return function(v,k){return p.apply(this,arguments)}}())}onAuthEvent(h){var p=this;return(0,D.A)(function*(){const{urlResponse:v,sessionId:k,postBody:U,tenantId:ne,error:fe,type:Oe}=h;if(fe)return void p.reject(fe);const ot={auth:p.auth,requestUri:v,sessionId:k,tenantId:ne||void 0,postBody:U||void 0,user:p.user,bypassAuthState:p.bypassAuthState};try{p.resolve(yield p.getIdpTask(Oe)(ot))}catch(It){p.reject(It)}})()}onError(h){this.reject(h)}getIdpTask(h){switch(h){case"signInViaPopup":case"signInViaRedirect":return Sd;case"linkViaPopup":case"linkViaRedirect":return Hy;case"reauthViaPopup":case"reauthViaRedirect":return By;default:Sn(this.auth,"internal-error")}}resolve(h){kn(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(h),this.unregisterAndCleanUp()}reject(h){kn(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(h),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}const bT=new Me(2e3,1e4);function uo(){return(uo=(0,D.A)(function*(y,h,p){if((0,I._isFirebaseServerApp)(y.app))return Promise.reject(en(y,"operation-not-supported-in-this-environment"));const v=Ar(y);Xe(y,h,ll);const k=Gl(v,p);return new Pm(v,"signInViaPopup",h,k).executeNotNull()})).apply(this,arguments)}function fl(){return(fl=(0,D.A)(function*(y,h,p){const v=(0,E.Ku)(y);if((0,I._isFirebaseServerApp)(v.auth.app))return Promise.reject(en(v.auth,"operation-not-supported-in-this-environment"));Xe(v.auth,h,ll);const k=Gl(v.auth,p);return new Pm(v.auth,"reauthViaPopup",h,k,v).executeNotNull()})).apply(this,arguments)}function km(){return(km=(0,D.A)(function*(y,h,p){const v=(0,E.Ku)(y);Xe(v.auth,h,ll);const k=Gl(v.auth,p);return new Pm(v.auth,"linkViaPopup",h,k,v).executeNotNull()})).apply(this,arguments)}let Pm=(()=>{class y extends nf{constructor(p,v,k,U,ne){super(p,v,U,ne),this.provider=k,this.authWindow=null,this.pollId=null,y.currentPopupAction&&y.currentPopupAction.cancel(),y.currentPopupAction=this}executeNotNull(){var p=this;return(0,D.A)(function*(){const v=yield p.execute();return Ie(v,p.auth,"internal-error"),v})()}onExecution(){var p=this;return(0,D.A)(function*(){kn(1===p.filter.length,"Popup operations only handle one event");const v=Yi();p.authWindow=yield p.resolver._openPopup(p.auth,p.provider,p.filter[0],v),p.authWindow.associatedEvent=v,p.resolver._originValidation(p.auth).catch(k=>{p.reject(k)}),p.resolver._isIframeWebStorageSupported(p.auth,k=>{k||p.reject(en(p.auth,"web-storage-unsupported"))}),p.pollUserCancellation()})()}get eventId(){var p;return(null===(p=this.authWindow)||void 0===p?void 0:p.associatedEvent)||null}cancel(){this.reject(en(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,y.currentPopupAction=null}pollUserCancellation(){const p=()=>{var v,k;this.pollId=null!==(k=null===(v=this.authWindow)||void 0===v?void 0:v.window)&&void 0!==k&&k.closed?window.setTimeout(()=>{this.pollId=null,this.reject(en(this.auth,"popup-closed-by-user"))},8e3):window.setTimeout(p,bT.get())};p()}}return y.currentPopupAction=null,y})();const MT="pendingRedirect",Tu=new Map;class Rm extends nf{constructor(h,p,v=!1){super(h,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],p,void 0,v),this.eventId=null}execute(){var h=()=>super.execute,p=this;return(0,D.A)(function*(){let v=Tu.get(p.auth._key());if(!v){try{const U=(yield function Eu(y,h){return Mu.apply(this,arguments)}(p.resolver,p.auth))?yield h().call(p):null;v=()=>Promise.resolve(U)}catch(k){v=()=>Promise.reject(k)}Tu.set(p.auth._key(),v)}return p.bypassAuthState||Tu.set(p.auth._key(),()=>Promise.resolve(null)),v()})()}onAuthEvent(h){var p=()=>super.onAuthEvent,v=this;return(0,D.A)(function*(){if("signInViaRedirect"===h.type)return p().call(v,h);if("unknown"!==h.type){if(h.eventId){const k=yield v.auth._redirectUserForId(h.eventId);if(k)return v.user=k,p().call(v,h);v.resolve(null)}}else v.resolve(null)})()}onExecution(){return(0,D.A)(function*(){})()}cleanUp(){}}function Mu(){return(Mu=(0,D.A)(function*(y,h){const p=V(h),v=P(y);if(!(yield v._isAvailable()))return!1;const k="true"===(yield v._get(p));return yield v._remove(p),k})).apply(this,arguments)}function xt(y,h){return m.apply(this,arguments)}function m(){return(m=(0,D.A)(function*(y,h){return P(y)._set(V(h),"true")})).apply(this,arguments)}function A(y,h){Tu.set(y._key(),h)}function P(y){return Tt(y._redirectPersistence)}function V(y){return Ot(MT,y.config.apiKey,y.name)}function ae(y,h,p){return function pe(y,h,p){return rt.apply(this,arguments)}(y,h,p)}function rt(){return(rt=(0,D.A)(function*(y,h,p){if((0,I._isFirebaseServerApp)(y.app))return Promise.reject(Et(y));const v=Ar(y);Xe(y,h,ll),yield v._initializationPromise;const k=Gl(v,p);return yield xt(k,v),k._openRedirect(v,h,"signInViaRedirect")})).apply(this,arguments)}function Pt(y,h,p){return function nn(y,h,p){return Ln.apply(this,arguments)}(y,h,p)}function Ln(){return(Ln=(0,D.A)(function*(y,h,p){const v=(0,E.Ku)(y);if(Xe(v.auth,h,ll),(0,I._isFirebaseServerApp)(v.auth.app))return Promise.reject(Et(v.auth));yield v.auth._initializationPromise;const k=Gl(v.auth,p);yield xt(k,v.auth);const U=yield zy(v);return k._openRedirect(v.auth,h,"reauthViaRedirect",U)}
1)).apply(this,arguments)}function Ca(y,h,p){return function pl(y,h,p){return rf.apply(this,arguments)}(y,h,p)}function rf(){return(rf=(0,D.A)(function*(y,h,p){const v=(0,E.Ku)(y);Xe(v.auth,h,ll),yield v.auth._initializationPromise;const k=Gl(v.auth,p);yield Yh(!1,v,h.providerId),yield xt(k,v.auth);const U=yield zy(v);return k._openRedirect(v.auth,h,"linkViaRedirect",U)})).apply(this,arguments)}function IT(){return(IT=(0,D.A)(function*(y,h){return yield Ar(y)._initializationPromise,Iu(y,h,!1)})).apply(this,arguments)}function Iu(y,h){return DT.apply(this,arguments)}function DT(){return(DT=(0,D.A)(function*(y,h,p=!1){if((0,I._isFirebaseServerApp)(y.app))return Promise.reject(Et(y));const v=Ar(y),k=Gl(v,h),ne=yield new Rm(v,k,p).execute();return ne&&!p&&(delete ne.user._redirectEventId,yield v._persistUserIfCurrent(ne.user),yield v._setRedirectUser(null,h)),ne})).apply(this,arguments)}function zy(y){return $y.apply(this,arguments)}function $y(){return($y=(0,D.A)(function*(y){const h=Yi(`${y.uid}:::`);return y._redirectEventId=h,yield y.auth._setRedirectUser(y),yield y.auth._persistUserIfCurrent(y),h})).apply(this,arguments)}class wO{constructor(h){this.auth=h,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(h){this.consumers.add(h),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,h)&&(this.sendToConsumer(this.queuedRedirectEvent,h),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(h){this.consumers.delete(h)}onEvent(h){if(this.hasEventBeenHandled(h))return!1;let p=!1;return this.consumers.forEach(v=>{this.isEventForConsumer(h,v)&&(p=!0,this.sendToConsumer(h,v),this.saveEventToCache(h))}),this.hasHandledPotentialRedirect||!function CT(y){switch(y.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return CS(y);default:return!1}}(h)||(this.hasHandledPotentialRedirect=!0,p||(this.queuedRedirectEvent=h,p=!0)),p}sendToConsumer(h,p){var v;if(h.error&&!CS(h)){const k=(null===(v=h.error.code)||void 0===v?void 0:v.split("auth/")[1])||"internal-error";p.onError(en(this.auth,k))}else p.onAuthEvent(h)}isEventForConsumer(h,p){const v=null===p.eventId||!!h.eventId&&h.eventId===p.eventId;return p.filter.includes(h.type)&&v}hasEventBeenHandled(h){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(Wy(h))}saveEventToCache(h){this.cachedEventUids.add(Wy(h)),this.lastProcessedEventTime=Date.now()}}function Wy(y){return[y.type,y.eventId,y.sessionId,y.tenantId].filter(h=>h).join("-")}function CS({type:y,error:h}){return"unknown"===y&&"auth/no-auth-event"===h?.code}function ST(y){return Gy.apply(this,arguments)}function Gy(){return(Gy=(0,D.A)(function*(y,h={}){return pt(y,"GET","/v1/projects",h)})).apply(this,arguments)}const Ad=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,bO=/^https?/;function sf(){return(sf=(0,D.A)(function*(y){if(y.config.emulator)return;const{authorizedDomains:h}=yield ST(y);for(const p of h)try{if(TO(p))return}catch{}Sn(y,"unauthorized-domain")})).apply(this,arguments)}function TO(y){const h=Ir(),{protocol:p,hostname:v}=new URL(h);if(y.startsWith("chrome-extension://")){const ne=new URL(y);return""===ne.hostname&&""===v?"chrome-extension:"===p&&y.replace("chrome-extension://","")===h.replace("chrome-extension://",""):"chrome-extension:"===p&&ne.hostname===v}if(!bO.test(p))return!1;if(Ad.test(y))return v===y;const k=y.replace(/\./g,"\\.");return new RegExp("^(.+\\."+k+"|"+k+")$","i").test(v)}const xT=new Me(3e4,6e4);function Lm(){const y=zr().___jsl;if(y?.H)for(const h of Object.keys(y.H))if(y.H[h].r=y.H[h].r||[],y.H[h].L=y.H[h].L||[],y.H[h].r=[...y.H[h].L],y.CP)for(let p=0;p<y.CP.length;p++)y.CP[p]=null}let Sc=null;const EO=new Me(5e3,15e3),MO="__/auth/iframe",SS="emulator/auth/iframe",af={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},IO=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);
1function DO(y){const h=y.config;Ie(h.authDomain,y,"auth-domain-config-required");const p=h.emulator?Ce(h,SS):`https://${y.config.authDomain}/${MO}`,v={apiKey:h.apiKey,appName:y.name,v:I.SDK_VERSION},k=IO.get(y.config.apiHost);k&&(v.eid=k);const U=y._getFrameworks();return U.length&&(v.fw=U.join(",")),`${p}?${(0,E.Am)(v).slice(1)}`}function Om(){return Om=(0,D.A)(function*(y){const h=yield function kT(y){return Sc=Sc||function Hs(y){return new Promise((h,p)=>{var v,k,U;function ne(){Lm(),gapi.load("gapi.iframes",{callback:()=>{h(gapi.iframes.getContext())},ontimeout:()=>{Lm(),p(en(y,"network-request-failed"))},timeout:xT.get()})}if(null!==(k=null===(v=zr().gapi)||void 0===v?void 0:v.iframes)&&void 0!==k&&k.Iframe)h(gapi.iframes.getContext());else{if(null===(U=zr().gapi)||void 0===U||!U.load){const fe=Xp("iframefcb");return zr()[fe]=()=>{gapi.load?ne():p(en(y,"network-request-failed"))},gd(`${function iy(){return jl.gapiScript}()}?onload=${fe}`).catch(Oe=>p(Oe))}ne()}}).catch(h=>{throw Sc=null,h})}(y),Sc}(y),p=zr().gapi;return Ie(p,y,"internal-error"),h.open({where:document.body,url:DO(y),messageHandlersFilter:p.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:af,dontclear:!0},v=>new Promise(function(){var k=(0,D.A)(function*(U,ne){yield v.restyle({setHideOnLeave:!1});const fe=en(y,"network-request-failed"),Oe=zr().setTimeout(()=>{ne(fe)},EO.get());function ot(){zr().clearTimeout(Oe),U(v)}v.ping(ot).then(ot,()=>{ne(fe)})});return function(U,ne){return k.apply(this,arguments)}}()))}),Om.apply(this,arguments)}const Sa={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class xS{constructor(h){this.window=h,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}const AO="__/auth/handler",Nm="emulator/auth/handler",xO=encodeURIComponent("fac");function PT(y,h,p,v,k,U){return RT.apply(this,arguments)}function RT(){return(RT=(0,D.A)(function*(y,h,p,v,k,U){Ie(y.config.authDomain,y,"auth-domain-config-required"),Ie(y.config.apiKey,y,"invalid-api-key");const ne={apiKey:y.config.apiKey,appName:y.name,authType:p,redirectUrl:v,v:I.SDK_VERSION,eventId:k};if(h instanceof ll){h.setDefaultLanguage(y.languageCode),ne.providerId=h.providerId||"",(0,E.Im)(h.getCustomParameters())||(ne.customParameters=JSON.stringify(h.getCustomParameters()));for(const[It,Dt]of Object.entries(U||{}))ne[It]=Dt}if(h instanceof du){const It=h.getScopes().filter(Dt=>""!==Dt);It.length>0&&(ne.scopes=It.join(","))}y.tenantId&&(ne.tid=y.tenantId);const fe=ne;for(const It of Object.keys(fe))void 0===fe[It]&&delete fe[It];const Oe=yield y._getAppCheckToken(),ot=Oe?`#${xO}=${encodeURIComponent(Oe)}`:"";return`${function kO({config:y}){return y.emulator?Ce(y,Nm):`https://${y.authDomain}/${AO}`}(y)}?${(0,E.Am)(fe).slice(1)}${ot}`})).apply(this,arguments)}const LT="webStorageSupport",Qy=class PO{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=Gt,this._completeRedirectFn=Iu,this._overrideRedirectResult=A}_openPopup(h,p,v,k){var U=this;return(0,D.A)(function*(){var ne;kn(null===(ne=U.eventManagers[h._key()])||void 0===ne?void 0:ne.manager,"_initialize() not called before _openPopup()");const fe=yield PT(h,p,v,Ir(),k);return function es(y,h,p,v=500,k=600){const U=Math.max((window.screen.availHeight-k)/2,0).toString(),ne=Math.max((window.screen.availWidth-v)/2,0).toString();let fe="";const Oe=Object.assign(Object.assign({},Sa),{width:v.toString(),height:k.toString(),top:U,left:ne}),ot=(0,E.ZQ)().toLowerCase();p&&(fe=Nb(ot)?"_blank":p),Za(ot)&&(h=h||"http://localhost",Oe.scrollbars="yes");const It=Object.entries(Oe).reduce(($r,[As,av])=>`${$r}${As}=${av},`,"");if(function Fb(y=(0,E.ZQ)()){var h;return el(y)&&!(null===(h=window.navigator)||void 0===h||!h.standalone)}(ot)&&"_self"!==fe)return function kS(y,h){const p=document.createElement("a");p.href=y,p.target=h;const v=document.createEvent("MouseEvent");v.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),p.dispatchEvent(v)}(h||"",fe),new xS(null);const Dt=window.open(h||"",fe,It);Ie(Dt,y,"popup-blocked");try{Dt.focus()}catch{}return new xS(Dt)}(h,fe,Yi())})()}_openRedirect(h,p,v,k){var U=this;return(0,D.A)(function*(){return yield U._originValidation(h),function MS(y){zr().location.href=y}(yield PT(h,p,v,Ir(),k)),new Promise(()=>{})})()}_initialize(h){const p=h._key();if(this.eventManagers[p]){const{manager:k,promise:U}=this.eventManagers[p];return k?Promise.resolve(k):(kn(U,"If manager is not set, promise should be"),U)}const v=this.initAndGetManager(h);return this.eventManagers[p]={promise:v},v.catch(()=>{delete this.eventManagers[p]}),v}initAndGetManager(h){var p=this;return(0,D.A)(function*(){const v=yield function CO(y){return Om.apply(this,arguments)}(h),k=new wO(h);return v.register("authEvent",U=>(Ie(U?.authEvent,h,"invalid-auth-event"),{status:k.onEvent(U.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),p.eventManagers[h._key()]={manager:k},p.iframes[h._key()]=v,k})()}_isIframeWebStorageSupported(h,p){this.iframes[h._key()].send(LT,{type:LT},k=>{var U;const ne=null===(U=k?.[0])||void 0===U?void 0:U[LT];void 0!==ne&&p(!!ne),Sn(h,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(h){const p=h._key();return this.originValidationPromises[p]||(this.originValidationPromises[p]=function AT(y){return sf.apply(this,arguments)}(h)),this.originValidationPromises[p]}get _shouldInitProactively(){return ou()||Z_()||el()}};class Fm{constructor(h){this.factorId=h}_process(h,p,v){switch(p.type){case"enroll":return this._finalizeEnroll(h,p.credential,v);case"signin":return this._finalizeSignIn(h,p.credential);
1default:return pn("unexpected MultiFactorSessionType")}}}class xr extends Fm{constructor(h){super("phone"),this.credential=h}static _fromCredential(h){return new xr(h)}_finalizeEnroll(h,p,v){return function Dd(y,h){return pt(y,"POST","/v2/accounts/mfaEnrollment:finalize",Fe(y,h))}(h,{idToken:p,displayName:v,phoneVerificationInfo:this.credential._makeVerificationRequest()})}_finalizeSignIn(h,p){return function Cd(y,h){return pt(y,"POST","/v2/accounts/mfaSignIn:finalize",Fe(y,h))}(h,{mfaPendingCredential:p,phoneVerificationInfo:this.credential._makeVerificationRequest()})}}let nt=(()=>{class y{constructor(){}static assertion(p){return xr._fromCredential(p)}}return y.FACTOR_ID="phone",y})();var zs="@firebase/auth";class kr{constructor(h){this.auth=h,this.internalListeners=new Map}getUid(){var h;return this.assertAuthConfigured(),(null===(h=this.auth.currentUser)||void 0===h?void 0:h.uid)||null}getToken(h){var p=this;return(0,D.A)(function*(){return p.assertAuthConfigured(),yield p.auth._initializationPromise,p.auth.currentUser?{accessToken:yield p.auth.currentUser.getIdToken(h)}:null})()}addAuthTokenListener(h){if(this.assertAuthConfigured(),this.internalListeners.has(h))return;const p=this.auth.onIdTokenChanged(v=>{h(v?.stsTokenManager.accessToken||null)});this.internalListeners.set(h,p),this.updateProactiveRefresh()}removeAuthTokenListener(h){this.assertAuthConfigured();const p=this.internalListeners.get(h);p&&(this.internalListeners.delete(h),p(),this.updateProactiveRefresh())}assertAuthConfigured(){Ie(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}function xa(){return window}(0,E.XA)("authIdTokenMaxAge"),function tl(y){jl=y}({loadJS:y=>new Promise((h,p)=>{const v=document.createElement("script");v.setAttribute("src",y),v.onload=h,v.onerror=k=>{const U=en("internal-error");U.customData=k,p(U)},v.type="text/javascript",v.charset="UTF-8",function kd(){var y,h;return null!==(h=null===(y=document.getElementsByTagName("head"))||void 0===y?void 0:y[0])&&void 0!==h?h:document}().appendChild(v)}),gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="}),function Kl(y){(0,I._registerComponent)(new F.uA("auth",(h,{options:p})=>{const v=h.getProvider("app").getImmediate(),k=h.getProvider("heartbeat"),U=h.getProvider("app-check-internal"),{apiKey:ne,authDomain:fe}=v.options;Ie(ne&&!ne.includes(":"),"invalid-api-key",{appName:v.name});const Oe={apiKey:ne,authDomain:fe,clientPlatform:y,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:md(y)},ot=new jb(v,k,U,Oe);return function Hb(y,h){const p=h?.persistence||[],v=(Array.isArray(p)?p:[p]).map(Tt);h?.errorMap&&y._updateErrorMap(h.errorMap),y._initializeWithPersistence(v,h?.popupRedirectResolver)}(ot,p),ot},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((h,p,v)=>{h.getProvider("auth-internal").initialize()})),(0,I._registerComponent)(new F.uA("auth-internal",h=>{const p=Ar(h.getProvider("auth").getImmediate());return new kr(p)},"PRIVATE").setInstantiationMode("EXPLICIT")),(0,I.registerVersion)(zs,"1.7.4",function Hi(y){switch(y){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(y)),(0,I.registerVersion)(zs,"1.7.4","esm2017")}("Browser");function Jy(){return Jy=(0,D.A)(function*(y,h,p){var v;const{BuildInfo:k}=xa();kn(h.sessionId,"AuthEvent did not contain a session ID");const U=yield function Ql(y){return hf.apply(this,arguments)}(h.sessionId),ne={};return el()?ne.ibi=k.packageName:iu()?ne.apn=k.packageName:Sn(y,"operation-not-supported-in-this-environment"),k.displayName&&(ne.appDisplayName=k.displayName),ne.sessionId=U,PT(y,p,h.type,void 0,null!==(v=h.eventId)&&void 0!==v?v:void 0,ne)}),Jy.apply(this,arguments)}function df(){return(df=(0,D.A)(function*(y){const{BuildInfo:h}=xa(),p={};el()?p.iosBundleId=h.packageName:iu()?p.androidPackageName=h.packageName:Sn(y,"operation-not-supported-in-this-environment"),yield ST(y,p)})).apply(this,arguments)}function Um(){return(Um=(0,D.A)(function*(y,h,p){const{cordova:v}=xa();let k=()=>{};try{yield new Promise((U,ne)=>{let fe=null;function Oe(){var Dt;U();const $r=null===(Dt=v.plugins.browsertab)||void 0===Dt?void 0:Dt.close;"function"==typeof $r&&$r(),"function"==typeof p?.close&&p.close()}function ot(){fe||(fe=window.setTimeout(()=>{ne(en(y,"redirect-cancelled-by-user"))},2e3))}function It(){"visible"===document?.visibilityState&&ot()}h.addPassiveListener(Oe),document.addEventListener("resume",ot,!1),iu()&&document.addEventListener("visibilitychange",It,!1),k=()=>{h.removePassiveListener(Oe),document.removeEventListener("resume",ot,!1),document.removeEventListener("visibilitychange",It,!1),fe&&window.clearTimeout(fe)}})}finally{k()}})).apply(this,arguments)}
1function hf(){return(hf=(0,D.A)(function*(y){const h=function ff(y){if(kn(/[0-9a-zA-Z]+/.test(y),"Can only convert alpha-numeric strings"),typeof TextEncoder<"u")return(new TextEncoder).encode(y);const h=new ArrayBuffer(y.length),p=new Uint8Array(h);for(let v=0;v<y.length;v++)p[v]=y.charCodeAt(v);return p}(y),p=yield crypto.subtle.digest("SHA-256",h);return Array.from(new Uint8Array(p)).map(k=>k.toString(16).padStart(2,"0")).join("")})).apply(this,arguments)}class Xy extends wO{constructor(){super(...arguments),this.passiveListeners=new Set,this.initPromise=new Promise(h=>{this.resolveInialized=h})}addPassiveListener(h){this.passiveListeners.add(h)}removePassiveListener(h){this.passiveListeners.delete(h)}resetRedirect(){this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1}onEvent(h){return this.resolveInialized(),this.passiveListeners.forEach(p=>p(h)),super.onEvent(h)}initialized(){var h=this;return(0,D.A)(function*(){yield h.initPromise})()}}function Zy(y){return xc.apply(this,arguments)}function xc(){return(xc=(0,D.A)(function*(y){const h=yield Rd()._get(NT(y));return h&&(yield Rd()._remove(NT(y))),h})).apply(this,arguments)}function ml(){const y=[];for(let p=0;p<20;p++){const v=Math.floor(62*Math.random());y.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(v))}return y.join("")}function Rd(){return Tt(Kh)}function NT(y){return Ot("authEvent",y.config.apiKey,y.name)}function Ym(y){if(!y?.includes("?"))return{};const[h,...p]=y.split("?");return(0,E.I9)(p.join("?"))}const Lz=class VT{constructor(){this._redirectPersistence=Gt,this._shouldInitProactively=!0,this.eventManagers=new Map,this.originValidationPromises={},this._completeRedirectFn=Iu,this._overrideRedirectResult=A}_initialize(h){var p=this;return(0,D.A)(function*(){const v=h._key();let k=p.eventManagers.get(v);return k||(k=new Xy(h),p.eventManagers.set(v,k),p.attachCallbackListeners(h,k)),k})()}_openPopup(h){Sn(h,"operation-not-supported-in-this-environment")}_openRedirect(h,p,v,k){var U=this;return(0,D.A)(function*(){!function jm(y){var h,p,v,k,U,ne,fe,Oe,ot,It;const Dt=xa();Ie("function"==typeof(null===(h=Dt?.universalLinks)||void 0===h?void 0:h.subscribe),y,"invalid-cordova-configuration",{missingPlugin:"cordova-universal-links-plugin-fix"}),Ie(typeof(null===(p=Dt?.BuildInfo)||void 0===p?void 0:p.packageName)<"u",y,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-buildInfo"}),Ie("function"==typeof(null===(U=null===(k=null===(v=Dt?.cordova)||void 0===v?void 0:v.plugins)||void 0===k?void 0:k.browsertab)||void 0===U?void 0:U.openUrl),y,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-browsertab"}),Ie("function"==typeof(null===(Oe=null===(fe=null===(ne=Dt?.cordova)||void 0===ne?void 0:ne.plugins)||void 0===fe?void 0:fe.browsertab)||void 0===Oe?void 0:Oe.isAvailable),y,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-browsertab"}),Ie("function"==typeof(null===(It=null===(ot=Dt?.cordova)||void 0===ot?void 0:ot.InAppBrowser)||void 0===It?void 0:It.open),y,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-inappbrowser"})}(h);const ne=yield U._initialize(h);yield ne.initialized(),ne.resetRedirect(),function T(){Tu.clear()}(),yield U._originValidation(h);const fe=function ys(y,h,p=null){return{type:h,eventId:p,urlResponse:null,sessionId:ml(),postBody:null,tenantId:y.tenantId,error:en(y,"no-auth-event")}}(h,v,k);yield function $s(y,h){return Rd()._set(NT(y),h)}(h,fe);const Oe=yield function uf(y,h,p){return Jy.apply(this,arguments)}(h,fe,p),ot=yield function Pd(y){const{cordova:h}=xa();return new Promise(p=>{h.plugins.browsertab.isAvailable(v=>{let k=null;v?h.plugins.browsertab.openUrl(y):k=h.InAppBrowser.open(y,function ey(y=(0,E.ZQ)()){return/(iPad|iPhone|iPod).*OS 7_\d/i.test(y)||/(iPad|iPhone|iPod).*OS 8_\d/i.test(y)}()?"_blank":"_system","location=yes"),p(k)})})}(Oe);return function Ht(y,h,p){return Um.apply(this,arguments)}(h,ne,ot)})()}_isIframeWebStorageSupported(h,p){throw new Error("Method not implemented.")}_originValidation(h){const p=h._key();return this.originValidationPromises[p]||(this.originValidationPromises[p]=function Du(y){return df.apply(this,arguments)}(h)),this.originValidationPromises[p]}attachCallbackListeners(h,p){const{universalLinks:v,handleOpenURL:k,BuildInfo:U}=xa(),ne=setTimeout((0,D.A)(function*(){yield Zy(h),p.onEvent(OO())}),500),fe=function(){var It=(0,D.A)(function*(Dt){clearTimeout(ne);const $r=yield Zy(h);let As=null;$r&&Dt?.url&&(As=function ev(y,h){var p,v;
1const k=function FT(y){const h=Ym(y),p=h.link?decodeURIComponent(h.link):void 0,v=Ym(p).link,k=h.deep_link_id?decodeURIComponent(h.deep_link_id):void 0;return Ym(k).link||k||v||p||y}(h);if(k.includes("/__/auth/callback")){const U=Ym(k),ne=U.firebaseError?function RO(y){try{return JSON.parse(y)}catch{return null}}(decodeURIComponent(U.firebaseError)):null,fe=null===(v=null===(p=ne?.code)||void 0===p?void 0:p.split("auth/"))||void 0===v?void 0:v[1],Oe=fe?en(fe):null;return Oe?{type:y.type,eventId:y.eventId,tenantId:y.tenantId,error:Oe,urlResponse:null,sessionId:null,postBody:null}:{type:y.type,eventId:y.eventId,tenantId:y.tenantId,sessionId:y.sessionId,urlResponse:k,postBody:null}}return null}($r,Dt.url)),p.onEvent(As||OO())});return function($r){return It.apply(this,arguments)}}();typeof v<"u"&&"function"==typeof v.subscribe&&v.subscribe(null,fe);const Oe=k,ot=`${U.packageName.toLowerCase()}://`;xa().handleOpenURL=function(){var It=(0,D.A)(function*(Dt){if(Dt.toLowerCase().startsWith(ot)&&fe({url:Dt}),"function"==typeof Oe)try{Oe(Dt)}catch($r){console.error($r)}});return function(Dt){return It.apply(this,arguments)}}()}};function OO(){return{type:"unknown",eventId:null,sessionId:null,urlResponse:null,postBody:null,tenantId:null,error:en("no-auth-event")}}function tv(){var y;return(null===(y=self?.location)||void 0===y?void 0:y.protocol)||null}function NO(y=(0,E.ZQ)()){return!("file:"!==tv()&&"ionic:"!==tv()&&"capacitor:"!==tv()||!y.toLowerCase().match(/iphone|ipad|ipod|android/))}function UT(){try{const y=self.localStorage,h=Yi();if(y)return y.setItem(h,"1"),y.removeItem(h),!function PS(y=(0,E.ZQ)()){return function Yz(){return(0,E.lT)()&&11===document?.documentMode}()||function Bz(y=(0,E.ZQ)()){return/Edge\/\d+/.test(y)}(y)}()||(0,E.zW)()}catch{return RS()&&(0,E.zW)()}return!1}function RS(){return typeof global<"u"&&"WorkerGlobalScope"in global&&"importScripts"in global}function LS(){return(function Uz(){return"http:"===tv()||"https:"===tv()}()||(0,E.sr)()||NO())&&!function jz(){return(0,E.lV)()||(0,E.Ll)()}()&&UT()&&!RS()}function FO(){return NO()&&typeof document<"u"}function jT(){return(jT=(0,D.A)(function*(){return!!FO()&&new Promise(y=>{const h=setTimeout(()=>{y(!1)},1e3);document.addEventListener("deviceready",()=>{clearTimeout(h),y(!0)})})})).apply(this,arguments)}const or={LOCAL:"local",NONE:"none",SESSION:"session"},pf=Ie,NS="persistence";function nv(y){return rv.apply(this,arguments)}function rv(){return(rv=(0,D.A)(function*(y){yield y._initializationPromise;const h=iv(),p=Ot(NS,y.config.apiKey,y.name);h&&h.setItem(p,y._getPersistence())})).apply(this,arguments)}function iv(){var y;try{return(null===(y=function OS(){return typeof window<"u"?window:null}())||void 0===y?void 0:y.sessionStorage)||null}catch{return null}}const jO=Ie;class Ss{constructor(){this.browserResolver=Tt(Qy),this.cordovaResolver=Tt(Lz),this.underlyingResolver=null,this._redirectPersistence=Gt,this._completeRedirectFn=Iu,this._overrideRedirectResult=A}_initialize(h){var p=this;return(0,D.A)(function*(){return yield p.selectUnderlyingResolver(),p.assertedUnderlyingResolver._initialize(h)})()}_openPopup(h,p,v,k){var U=this;return(0,D.A)(function*(){return yield U.selectUnderlyingResolver(),U.assertedUnderlyingResolver._openPopup(h,p,v,k)})()}_openRedirect(h,p,v,k){var U=this;return(0,D.A)(function*(){return yield U.selectUnderlyingResolver(),U.assertedUnderlyingResolver._openRedirect(h,p,v,k)})()}_isIframeWebStorageSupported(h,p){this.assertedUnderlyingResolver._isIframeWebStorageSupported(h,p)}_originValidation(h){return this.assertedUnderlyingResolver._originValidation(h)}get _shouldInitProactively(){return FO()||this.browserResolver._shouldInitProactively}get assertedUnderlyingResolver(){return jO(this.underlyingResolver,"internal-error"),this.underlyingResolver}selectUnderlyingResolver(){var h=this;return(0,D.A)(function*(){if(h.underlyingResolver)return;const p=yield function Hz(){return jT.apply(this,arguments)}();h.underlyingResolver=p?h.cordovaResolver:h.browserResolver})()}}function YT(y){return y.unwrap()}function Kn(y){return mf(y)}function mf(y){const{_tokenResponse:h}=y instanceof E.g?y.customData:y;if(!h)return null;if(!(y instanceof E.g)&&"temporaryProof"in h&&"phoneNumber"in h)return Cc.credentialFromResult(y);const p=h.providerId;if(!p||p===de.PASSWORD)return null;let v;switch(p){case de.GOOGLE:v=Zb;break;case de.FACEBOOK:v=dm;break;case de.GITHUB:v=fy;break;case de.TWITTER:v=py;break;default:const{oauthIdToken:k,oauthAccessToken:U,oauthTokenSecret:ne,pendingToken:fe,nonce:Oe}=h;return U||ne||k||fe?fe?p.startsWith("saml.")?yc._create(p,fe):ba._fromParams({providerId:p,signInMethod:p,pendingToken:fe,idToken:k,accessToken:U}):new Yl(p).credential({idToken:k,accessToken:U,rawNonce:Oe}):null}return y instanceof E.g?v.credentialFromError(y):v.credentialFromResult(y)}function dr(y,h){return h.catch(p=>{throw p instanceof E.g&&function BT(y,h){var p;const v=null===(p=h.customData)||void 0===p?void 0:p._tokenResponse;if("auth/multi-factor-auth-required"===h?.code)h.resolver=new gf(y,function TS(y,h){var p;const v=(0,E.Ku)(y),k=h;return Ie(h.customData.operationType,v,"argument-error"),Ie(null===(p=k.customData._serverResponse)||void 0===p?void 0:p.mfaPendingCredential,v,"argument-error"),Ry._fromError(v,k)}(y,h));else if(v){const k=mf(h),U=h;k&&(U.credential=k,U.tenantId=v.tenantId||void 0,U.email=v.email||void 0,U.phoneNumber=v.phoneNumber||void 0)}}(y,p),p}).then(p=>{const k=p.user;return{operationType:p.operationType,credential:Kn(p),additionalUserInfo:dT(p),user:Li.getOrCreate(k)}})}function HT(y,h){return Ld.apply(this,arguments)}function Ld(){return(Ld=(0,D.A)(function*(y,h){const p=yield h;return{verificationId:p.verificationId,confirm:v=>dr(y,p.confirm(v))}})).apply(this,arguments)}class gf{constructor(h,p){this.resolver=p,this.auth=function FS(y){return y.wrapped()}(h)}get session(){return this.resolver.session}get hints(){return this.resolver.hints}resolveSignIn(h){return dr(YT(this.auth),this.resolver.resolveSignIn(h))}}class Li{constructor(h){this._delegate=h,this.multiFactor=function Ny(y){const h=(0,E.Ku)(y);return Tc.has(h)||Tc.set(h,ta._fromUser(h)),Tc.get(h)}(h)}static getOrCreate(h){return Li.USER_MAP.has(h)||Li.USER_MAP.set(h,new Li(h)),Li.USER_MAP.get(h)}delete(){return this._delegate.delete()}reload(){return this._delegate.reload()}toJSON(){return this._delegate.toJSON()}getIdTokenResult(h){return this._delegate.getIdTokenResult(h)}getIdToken(h){return this._delegate.getIdToken(h)}linkAndRetrieveDataWithCredential(h){return this.linkWithCredential(h)}linkWithCredential(h){var p=this;return(0,D.A)(function*(){return dr(p.auth,rT(p._delegate,h))})()}linkWithPhoneNumber(h,p){var v=this;return(0,D.A)(function*(){return HT(v.auth,function Ia(y,h,p){return tf.apply(this,arguments)}(v._delegate,h,p))})()}linkWithPopup(h){var p=this;return(0,D.A)(function*(){return dr(p.auth,function ET(y,h,p){return km.apply(this,arguments)}(p._delegate,h,Ss))})()}linkWithRedirect(h){var p=this;return(0,D.A)(function*(){return yield nv(Ar(p.auth)),Ca(p._delegate,h,Ss)})()}reauthenticateAndRetrieveDataWithCredential(h){return this.reauthenticateWithCredential(h)}reauthenticateWithCredential(h){var p=this;return(0,D.A)(function*(){return dr(p.auth,De(p._delegate,h))})()}reauthenticateWithPhoneNumber(h,p){return HT(this.auth,function Sm(y,h,p){return wu.apply(this,arguments)}(this._delegate,h,p))}reauthenticateWithPopup(h){return dr(this.auth,function hl(y,h,p){return fl.apply(this,arguments)}(this._delegate,h,Ss))}reauthenticateWithRedirect(h){var p=this;return(0,D.A)(function*(){return yield nv(Ar(p.auth)),Pt(p._delegate,h,Ss)})()}sendEmailVerification(h){return function _S(y,h){return Dy.apply(this,arguments)}(this._delegate,h)}unlink(h){var p=this;return(0,D.A)(function*(){return yield function gy(y,h){return _y.apply(this,arguments)}(p._delegate,h),p})()}updateEmail(h){return function yS(y,h){const p=(0,E.Ku)(y);return(0,I._isFirebaseServerApp)(p.auth.app)?Promise.reject(Et(p.auth)):lT(p,h,null)}(this._delegate,h)}updatePassword(h){return function vS(y,h){return lT((0,E.Ku)(y),null,h)}(this._delegate,h)}updatePhoneNumber(h){return function bu(y,h){return Am.apply(this,arguments)}(this._delegate,h)}updateProfile(h){return function lo(y,h){return Ut.apply(this,arguments)}(this._delegate,h)}verifyBeforeUpdateEmail(h,p){return function oT(y,h,p){return Cy.apply(this,arguments)}(this._delegate,h,p)}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}}Li.USER_MAP=new WeakMap;const Bm=Ie;let sv=(()=>{class y{constructor(p,v){if(this.app=p,v.isInitialized())return this._delegate=v.getImmediate(),void this.linkUnderlyingAuth();const{apiKey:k}=p.options;Bm(k,"invalid-api-key",{appName:p.name}),Bm(k,"invalid-api-key",{appName:p.name});const U=typeof window<"u"?Ss:void 0;this._delegate=v.initialize({options:{persistence:ka(k,p.name),popupRedirectResolver:U}}),this._delegate._updateErrorMap(tt),this.linkUnderlyingAuth()}get emulatorConfig(){return this._delegate.emulatorConfig}get currentUser(){return this._delegate.currentUser?Li.getOrCreate(this._delegate.currentUser):null}get languageCode(){return this._delegate.languageCode}set languageCode(p){this._delegate.languageCode=p}get settings(){return this._delegate.settings}get tenantId(){return this._delegate.tenantId}set tenantId(p){this._delegate.tenantId=p}useDeviceLanguage(){this._delegate.useDeviceLanguage()}signOut(){return this._delegate.signOut()}useEmulator(p,v){!function em(y,h,p){const v=Ar(y);Ie(v._canInitEmulator,v,"emulator-config-failed"),Ie(/^https?:\/\//.test(h),v,"invali
1d-emulator-scheme");const k=!!p?.disableWarnings,U=tm(h),{host:ne,port:fe}=function zb(y){const h=tm(y),p=/(\/\/)?([^?#/]+)/.exec(y.substr(h.length));if(!p)return{host:"",port:null};const v=p[2].split("@").pop()||"",k=/^(\[[^\]]+\])(:|$)/.exec(v);if(k){const U=k[1];return{host:U,port:Oh(v.substr(U.length+1))}}{const[U,ne]=v.split(":");return{host:U,port:Oh(ne)}}}(h);v.config.emulator={url:`${U}//${ne}${null===fe?"":`:${fe}`}/`},v.settings.appVerificationDisabledForTesting=!0,v.emulatorConfig=Object.freeze({host:ne,port:fe,protocol:U.replace(":",""),options:Object.freeze({disableWarnings:k})}),k||function lS(){function y(){const h=document.createElement("p"),p=h.style;h.innerText="Running in emulator mode. Do not use with production credentials.",p.position="fixed",p.width="100%",p.backgroundColor="#ffffff",p.border=".1em solid #000000",p.color="#b50000",p.bottom="0px",p.left="0px",p.margin="0px",p.zIndex="10000",p.textAlign="center",h.classList.add("firebase-emulator-warning"),document.body.appendChild(h)}typeof console<"u"&&"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."),typeof window<"u"&&typeof document<"u"&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",y):y())}()}(this._delegate,p,v)}applyActionCode(p){return function pS(y,h){return My.apply(this,arguments)}(this._delegate,p)}checkActionCode(p){return Bn(this._delegate,p)}confirmPasswordReset(p,v){return function fS(y,h,p){return Gn.apply(this,arguments)}(this._delegate,p,v)}createUserWithEmailAndPassword(p,v){var k=this;return(0,D.A)(function*(){return dr(k._delegate,function Ea(y,h,p){return ul.apply(this,arguments)}(k._delegate,p,v))})()}fetchProvidersForEmail(p){return this.fetchSignInMethodsForEmail(p)}fetchSignInMethodsForEmail(p){return function gS(y,h){return Iy.apply(this,arguments)}(this._delegate,p)}isSignInWithEmailLink(p){return function Ys(y,h){const p=Fh.parseLink(h);return"EMAIL_SIGNIN"===p?.operation}(0,p)}getRedirectResult(){var p=this;return(0,D.A)(function*(){Bm(LS(),p._delegate,"operation-not-supported-in-this-environment");const v=yield function vO(y,h){return IT.apply(this,arguments)}(p._delegate,Ss);return v?dr(p._delegate,Promise.resolve(v)):{credential:null,user:null}})()}addFrameworkForLogging(p){!function Oz(y,h){Ar(y)._logFramework(h)}(this._delegate,p)}onAuthStateChanged(p,v,k){const{next:U,error:ne,complete:fe}=VS(p,v,k);return this._delegate.onAuthStateChanged(U,ne,fe)}onIdTokenChanged(p,v,k){const{next:U,error:ne,complete:fe}=VS(p,v,k);return this._delegate.onIdTokenChanged(U,ne,fe)}sendSignInLinkToEmail(p,v){return function qt(y,h,p){return vc.apply(this,arguments)}(this._delegate,p,v)}sendPasswordResetEmail(p,v){return function mm(y,h,p){return ql.apply(this,arguments)}(this._delegate,p,v||void 0)}setPersistence(p){var v=this;return(0,D.A)(function*(){let k;switch(function VO(y,h){pf(Object.values(or).includes(h),y,"invalid-persistence-type"),(0,E.lV)()?pf(h!==or.SESSION,y,"unsupported-persistence-type"):(0,E.Ll)()?pf(h===or.NONE,y,"unsupported-persistence-type"):RS()?pf(h===or.NONE||h===or.LOCAL&&(0,E.zW)(),y,"unsupported-persistence-type"):pf(h===or.NONE||UT(),y,"unsupported-persistence-type")}(v._delegate,p),p){case or.SESSION:k=Gt;break;case or.LOCAL:k=(yield Tt(an)._isAvailable())?an:Kh;break;case or.NONE:k=st;break;default:return Sn("argument-error",{appName:v._delegate.name})}return v._delegate.setPersistence(k)})()}signInAndRetrieveDataWithCredential(p){return this.signInWithCredential(p)}signInAnonymously(){return dr(this._delegate,function fm(y){return pm.apply(this,arguments)}(this._delegate))}signInWithCredential(p){return dr(this._delegate,Hl(this._delegate,p))}signInWithCustomToken(p){return dr(this._delegate,function iT(y,h){return Ey.apply(this,arguments)}(this._delegate,p))}signInWithEmailAndPassword(p,v){return dr(this._delegate,function sr(y,h,p){return(0,I._isFirebaseServerApp)(y.app)?Promise.reject(Et(y)):Hl((0,E.Ku)(y),Ed.credential(h,p)).catch(function(){var v=(0,D.A)(function*(k){throw"auth/password-does-not-meet-requirements"===k.code&&$l(y),k});return function(k){return v.apply(this,arguments)}}())}(this._delegate,p,v))}signInWithEmailLink(p,v){return dr(this._delegate,function mS(y,h,p){return gm.apply(this,arguments)}(this._delegate,p,v))}signInWithPhoneNumber(p,v){return HT(this._delegate,function ra(y,h,p){return En.apply(this,arguments)}(this._delegate,p,v))}signInWithPopup(p){var v=this;return(0,D.A)(function*(){return Bm(LS(),v._delegate,"operation-not-supported-in-this-environment"),dr(v._delegate,function TT(y,h,p){return uo.apply(this,arguments)}(v._delegate,p,Ss))})()}signInWithRedirect(p){var v=this;return(0,D.A)(function*(){return Bm(LS(),v._delegate,"operation-not-supported-in-this-environment"),yield nv(v._delegate),ae(v._delegate,p,Ss)})()}updateCurrentUser(p){return this._delegate.updateCurrentUser(p)}verifyPasswordResetCode(p){return function Pi(y,h){return Md.apply(this,arguments)}(this._delegate,p)}unwrap(){return this._delegate}_delete(){return this._delegate._delete()}linkUnderlyingAuth(){this._delegate.wrapped=()=>this}}return y.Persistence=or,y})();function VS(y,h,p){let v=y;"function"!=typeof y&&({next:v,error:h,complete:p}=y);const k=v;return{next:ne=>k(ne&&Li.getOrCreate(ne)),error:h,complete:p}}function ka(y,h){const p=function UO(y,h){const p=iv();if(!p)return[];const v=Ot(NS,y,h);switch(p.getItem(v)){case or.NONE:return[st];case or.LOCAL:return[an,Gt];case or.SESSION:return[Gt];default:return[]}}(y,h);if(typeof self<"u"&&!p.includes(an)&&p.push(an),typeof window<"u")for(const v of[Kh,Gt])p.includes(v)||p.push(v);return p.includes(st)||p.push(st),p}class ov{constructor(){this.providerId="phone",this._delegate=new Cc(YT(b.A.auth()))}static credential(h,p){return Cc.credential(h,p)}verifyPhoneNumber(h,p){return this._delegate.verifyPhoneNumber(h,p)}unwrap(){return this._delegate}}ov.PHONE_SIGN_IN_METHOD=Cc.PHONE_SIGN_IN_METHOD,ov.PROVIDER_ID=Cc.PROVIDER_ID;const YO=Ie;class US{constructor(h,p,v=b.A.app()){var k;YO(null===(k=v.options)||void 0===k?void 0:k.apiKey,"invalid-api-key",{appName:v.name}),this._delegate=new Wl(v.auth(),h,p),this.type=this._delegate.type}clear(){this._delegate.clear()}render(){return this._delegate.render()}verify(){return this._delegate.verify()}}!function zT(y){y.INTERNAL.registerComponent(new F.uA("auth-compat",h=>{const p=h.getProvider("app-compat").getImmediate(),v=h.getProvider("auth");return new sv(p,v)},"PUBLIC").setServiceProps({ActionCodeInfo:{Operation:{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"}},EmailAuthProvider:Ed,FacebookAuthProvider:dm,GithubAuthProvider:fy,GoogleAuthProvider:Zb,OAuthProvider:Yl,SAMLAuthProvider:Vh,PhoneAuthProvider:ov,PhoneMultiFactorGenerator:nt,RecaptchaVerifier:US,TwitterAuthProvider:py,Auth:sv,AuthCredential:il,Error:E.g}).setInstantiationMode("LAZY").setMultipleInstances(!1)),y.registerVersion("@firebase/auth-compat","0.5.9")}(b.A)},6749:(Ee,we,$)=>{"use strict";$.d(we,{P2:()=>ni});var D=$(467);const b=(Xe,dt)=>dt.some(Ie=>Xe instanceof Ie);let I,E;const F=new WeakMap,G=new WeakMap,de=new WeakMap,te=new WeakMap,be=new WeakMap;let Xt={get(Xe,dt,Ie){if(Xe instanceof IDBTransaction){if("done"===dt)return G.get(Xe);if("objectStoreNames"===dt)return Xe.objectStoreNames||de.get(Xe);if("store"===dt)return Ie.objectStoreNames[1]?void 0:Ie.objectStore(Ie.objectStoreNames[0])}return Yt(Xe[dt])},set:(Xe,dt,Ie)=>(Xe[dt]=Ie,!0),has:(Xe,dt)=>Xe instanceof IDBTransaction&&("done"===dt||"store"===dt)||dt in Xe};function Kt(Xe){return"function"==typeof Xe?function Zt(Xe){return Xe!==I
1DBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function L(){return E||(E=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(Xe)?function(...dt){return Xe.apply(Nr(this),dt),Yt(F.get(this))}:function(...dt){return Yt(Xe.apply(Nr(this),dt))}:function(dt,...Ie){const pn=Xe.call(Nr(this),dt,...Ie);return de.set(pn,dt.sort?dt.sort():[dt]),Yt(pn)}}(Xe):(Xe instanceof IDBTransaction&&function ft(Xe){if(G.has(Xe))return;const dt=new Promise((Ie,pn)=>{const kn=()=>{Xe.removeEventListener("complete",Ir),Xe.removeEventListener("error",nr),Xe.removeEventListener("abort",nr)},Ir=()=>{Ie(),kn()},nr=()=>{pn(Xe.error||new DOMException("AbortError","AbortError")),kn()};Xe.addEventListener("complete",Ir),Xe.addEventListener("error",nr),Xe.addEventListener("abort",nr)});G.set(Xe,dt)}(Xe),b(Xe,function C(){return I||(I=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(Xe,Xt):Xe)}function Yt(Xe){if(Xe instanceof IDBRequest)return function Ue(Xe){const dt=new Promise((Ie,pn)=>{const kn=()=>{Xe.removeEventListener("success",Ir),Xe.removeEventListener("error",nr)},Ir=()=>{Ie(Yt(Xe.result)),kn()},nr=()=>{pn(Xe.error),kn()};Xe.addEventListener("success",Ir),Xe.addEventListener("error",nr)});return dt.then(Ie=>{Ie instanceof IDBCursor&&F.set(Ie,Xe)}).catch(()=>{}),be.set(dt,Xe),dt}(Xe);if(te.has(Xe))return te.get(Xe);const dt=Kt(Xe);return dt!==Xe&&(te.set(Xe,dt),be.set(dt,Xe)),dt}const Nr=Xe=>be.get(Xe);function ni(Xe,dt,{blocked:Ie,upgrade:pn,blocking:kn,terminated:Ir}={}){const nr=indexedDB.open(Xe,dt),Eo=Yt(nr);return pn&&nr.addEventListener("upgradeneeded",Fr=>{pn(Yt(nr.result),Fr.oldVersion,Fr.newVersion,Yt(nr.transaction),Fr)}),Ie&&nr.addEventListener("blocked",Fr=>Ie(Fr.oldVersion,Fr.newVersion,Fr)),Eo.then(Fr=>{Ir&&Fr.addEventListener("close",()=>Ir()),kn&&Fr.addEventListener("versionchange",Vr=>kn(Vr.oldVersion,Vr.newVersion,Vr))}).catch(()=>{}),Eo}const Sn=["get","getKey","getAll","getAllKeys","count"],en=["put","add","delete","clear"],ii=new Map;function Et(Xe,dt){if(!(Xe instanceof IDBDatabase)||dt in Xe||"string"!=typeof dt)return;if(ii.get(dt))return ii.get(dt);const Ie=dt.replace(/FromIndex$/,""),pn=dt!==Ie,kn=en.includes(Ie);if(!(Ie in(pn?IDBIndex:IDBObjectStore).prototype)||!kn&&!Sn.includes(Ie))return;const Ir=function(){var nr=(0,D.A)(function*(Eo,...Fr){const Vr=this.transaction(Eo,kn?"readwrite":"readonly");let Me=Vr.store;return pn&&(Me=Me.index(Fr.shift())),(yield Promise.all([Me[Ie](...Fr),kn&&Vr.done]))[0]});return function(Fr){return nr.apply(this,arguments)}}();return ii.set(dt,Ir),Ir}!function tt(Xe){Xt=Xe(Xt)}(Xe=>({...Xe,get:(dt,Ie,pn)=>Et(dt,Ie)||Xe.get(dt,Ie,pn),has:(dt,Ie)=>!!Et(dt,Ie)||Xe.has(dt,Ie)}))},467:(Ee,we,$)=>{"use strict";function D(I,E,C,L,F,G,de){try{var te=I[G](de),be=te.value}catch(Ue){return void C(Ue)}te.done?E(be):Promise.resolve(be).then(L,F)}function b(I){return function(){var E=this,C=arguments;return new Promise(function(L,F){var G=I.apply(E,C);function de(be){D(G,L,F,de,te,"next",be)}function te(be){D(G,L,F,de,te,"throw",be)}de(void 0)})}}$.d(we,{A:()=>b})},1635:(Ee,we,$)=>{"use strict";function E(Me,Ce){var Ne={};for(var Pe in Me)Object.prototype.hasOwnProperty.call(Me,Pe)&&Ce.indexOf(Pe)<0&&(Ne[Pe]=Me[Pe]);if(null!=Me&&"function"==typeof Object.getOwnPropertySymbols){var Se=0;for(Pe=Object.getOwnPropertySymbols(Me);Se<Pe.length;Se++)Ce.indexOf(Pe[Se])<0&&Object.prototype.propertyIsEnumerable.call(Me,Pe[Se])&&(Ne[Pe[Se]]=Me[Pe[Se]])}return Ne}function Ue(Me,Ce,Ne,Pe){return new(Ne||(Ne=Promise))(function(Fe,pt){function un(dn){try{zt(Pe.next(dn))}catch(Dr){pt(Dr)}}function gr(dn){try{zt(Pe.throw(dn))}catch(Dr){pt(Dr)}}function zt(dn){dn.done?Fe(dn.value):function Se(Fe){return Fe instanceof Ne?Fe:new Ne(function(pt){pt(Fe)})}(dn.value).then(un,gr)}zt((Pe=Pe.apply(Me,Ce||[])).next())})}function ri(Me){return this instanceof ri?(this.v=Me,this):new ri(Me)}function Sn(Me,Ce,Ne){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Se,Pe=Ne.apply(Me,Ce||[]),Fe=[];return Se={},pt("next"),pt("throw"),pt("return"),Se[Symbol.asyncIterator]=function(){return this},Se;function pt(Cr){Pe[Cr]&&(Se[Cr]=function(on){return new Promise(function(gs,Un){Fe.push([Cr,on,gs,Un])>1||un(Cr,on)})})}function un(Cr,on){try{!function gr(Cr){Cr.value instanceof ri?Promise.resolve(Cr.value.v).then(zt,dn):Dr(Fe[0][2],Cr)}(Pe[Cr](on))}catch(gs){Dr(Fe[0][3],gs)}}function zt(Cr){un("next",Cr)}function dn(Cr){un("throw",Cr)}function Dr(Cr,on){Cr(on),Fe.shift(),Fe.length&&un(Fe[0][0],Fe[0][1])}}function ii(Me){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ne,Ce=Me[Symbol.asyncIterator];return Ce?Ce.call(Me):(Me=function Zt(Me){var Ce="function"==typeof Symbol&&Symbol.iterator,Ne=Ce&&Me[Ce],Pe=0;
vendor: 684 bytes, line 1
1if(Ne)return Ne.call(Me);if(Me&&"number"==typeof Me.length)return{next:function(){return Me&&Pe>=Me.length&&(Me=void 0),{value:Me&&Me[Pe++],done:!Me}}};throw new TypeError(Ce?"Object is not iterable.":"Symbol.iterator is not defined.")}(Me),Ne={},Pe("next"),Pe("throw"),Pe("return"),Ne[Symbol.asyncIterator]=function(){return this},Ne);function Pe(Fe){Ne[Fe]=Me[Fe]&&function(pt){return new Promise(function(un,gr){!function Se(Fe,pt,un,gr){Promise.resolve(gr).then(function(zt){Fe({value:zt,done:un})},pt)}(un,gr,(pt=Me[Fe](pt)).done,pt.value)})}}}$.d(we,{AQ:()=>Sn,N3:()=>ri,Tt:()=>E,sH:()=>Ue,xN:()=>ii}),"function"==typeof SuppressedError&&SuppressedError}},Ee=>{Ee(Ee.s=5966)}]);
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.