1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4665],{5969:(e,t,n)=>{var r;n.d(t,{$b:()=>r,Vy:()=>l});let i=[];!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(r||(r={}));let a={debug:r.DEBUG,verbose:r.VERBOSE,info:r.INFO,warn:r.WARN,error:r.ERROR,silent:r.SILENT},o=r.INFO,s={[r.DEBUG]:"log",[r.VERBOSE]:"log",[r.INFO]:"info",[r.WARN]:"warn",[r.ERROR]:"error"},c=(e,t,...n)=>{if(t<e.logLevel)return;let r=new Date().toISOString(),i=s[t];if(i)console[i](`[${r}] ${e.name}:`,...n);else throw Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class l{constructor(e){this.name=e,this._logLevel=o,this._logHandler=c,this._userLogHandler=null,i.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in r))throw TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?a[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw 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,r.DEBUG,...e),this._logHandler(this,r.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,r.VERBOSE,...e),this._logHandler(this,r.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,r.INFO,...e),this._logHandler(this,r.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,r.WARN,...e),this._logHandler(this,r.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,r.ERROR,...e),this._logHandler(this,r.ERROR,...e)}}},22396:(e,t,n)=>{n.d(t,{h1:()=>s,uA:()=>i});var r=n(57176);class i{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,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}}let a="[DEFAULT]";class o{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){let t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){let e=new r.cY;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{let n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(e){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;let n=this.normalizeInstanceIdentifier(null==e?void 0:e.identifier),r=null!=(t=null==e?void 0:e.optional)&&t;if(this.isInitialized(n)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:n})}catch(e){if(r)return null;throw e}if(r)return null;throw Error(`Service ${this.name} is not available`)}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if("EAGER"===e.instantiationMode)try{this.getOrInitializeService({instanceIdentifier:a})}catch(e){}for(let[e,t]of this.instancesDeferred.entries()){let n=this.normalizeInstanceIdentifier(e);try{let e=this.getOrInitializeService({instanceIdentifier:n});t.resolve(e)}catch(e){}}}}clearInstance(e=a){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){let e=Array.from(this.instances.values());await Promise.all([...e.filter(e=>"INTERNAL"in e).map(e=>e.INTERNAL.delete()),...e.filter(e=>"_delete"in e).map(e=>e._delete())])}isComponentSet(){return null!=this.component}isInitialized(e=a){return this.instances.has(e)}getOptions(e=a){return this.instancesOptions.get(e)||{}}initialize(e={}){let{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let r=this.getOrInitializeService({instanceIdentifier:n,options:t});for(let[e,t]of this.instancesDeferred.entries())n===this.normalizeInstanceIdentifier(e)&&t.resolve(r);return r}onInit(e,t){var n;let r=this.normalizeInstanceIdentifier(t),i=null!=(n=this.onInitCallbacks.get(r))?n:new Set;i.add(e),this.onInitCallbacks.set(r,i);let a=this.instances.get(r);return a&&e(a,r),()=>{i.delete(e)}}invokeOnInitCallbacks(e,t){let n=this.onInitCallbacks.get(t);if(n)for(let r of n)try{r(e,t)}catch(e){}}getOrInitializeService({instanceIdentifier:e,options:t={}}){var n;let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:(n=e)===a?void 0:n,options:t}),this.instances.set(e,r),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch(e){}return r||null}normalizeInstanceIdentifier(e=a){return this.component?this.component.multipleInstances?e:a:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class s{constructor(e){this.name=e,this.providers=new Map}addComponent(e){let t=this.getProvider(e.name);if(t.isComponentSet())throw Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);let t=new o(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}},29820:(e,t,n)=>{n.d(t,{Dk:()=>S,KO:()=>I,Sx:()=>_,Wp:()=>E,j6:()=>b,om:()=>v});var r=n(22396),i=n(5969),a=n(57176),o=n(91951);class s{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(e=>{if(!function(e){let t=e.getComponent();return(null==t?void 0:t.type)==="VERSION"}(e))return null;{let t=e.getImmediate();return`${t.library}/${t.version}`}}).filter(e=>e).join(" ")}}let c="@firebase/app",l="0.13.2",u=new i.Vy("@firebase/app"),h="[DEFAULT]",f={[c]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/data-connect":"fire-data-connect","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","@firebase/ai":"fire-vertex","fire-js":"fire-js",firebase:"fire-js-all"},d=new Map,p=new Map,g=new Map;function m(e,t){try{e.container.addComponent(t)}catch(n){u.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function v(e){let t=e.name;if(g.has(t))return u.debug(`There were multiple attempts to register component ${t}.`),!1;
1for(let n of(g.set(t,e),d.values()))m(n,e);for(let t of p.values())m(t,e);return!0}function b(e,t){let n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}let y=new a.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.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class w{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new r.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw y.create("app-deleted",{appName:this._name})}}function E(e,t={}){let n=e;"object"!=typeof t&&(t={name:t});let i=Object.assign({name:h,automaticDataCollectionEnabled:!0},t),o=i.name;if("string"!=typeof o||!o)throw y.create("bad-app-name",{appName:String(o)});if(n||(n=(0,a.T9)()),!n)throw y.create("no-options");let s=d.get(o);if(s)if((0,a.bD)(n,s.options)&&(0,a.bD)(i,s.config))return s;else throw y.create("duplicate-app",{appName:o});let c=new r.h1(o);for(let e of g.values())c.addComponent(e);let l=new w(n,i,c);return d.set(o,l),l}function _(e=h){let t=d.get(e);if(!t&&e===h&&(0,a.T9)())return E();if(!t)throw y.create("no-app",{appName:e});return t}function S(){return Array.from(d.values())}function I(e,t,n){var i;let a=null!=(i=f[e])?i:e;n&&(a+=`-${n}`);let o=a.match(/\s|\//),s=t.match(/\s|\//);if(o||s){let e=[`Unable to register library "${a}" with version "${t}":`];o&&e.push(`library name "${a}" contains illegal characters (whitespace or "/")`),o&&s&&e.push("and"),s&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),u.warn(e.join(" "));return}v(new r.uA(`${a}-version`,()=>({library:a,version:t}),"VERSION"))}let T="firebase-heartbeat-store",C=null;function A(){return C||(C=(0,o.P2)("firebase-heartbeat-database",1,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(T)}catch(e){console.warn(e)}}}).catch(e=>{throw y.create("idb-open",{originalErrorMessage:e.message})})),C}async function D(e){try{let t=(await A()).transaction(T),n=await t.objectStore(T).get(k(e));return await t.done,n}catch(e){if(e instanceof a.g)u.warn(e.message);else{let t=y.create("idb-get",{originalErrorMessage:null==e?void 0:e.message});u.warn(t.message)}}}async function M(e,t){try{let n=(await A()).transaction(T,"readwrite"),r=n.objectStore(T);await r.put(t,k(e)),await n.done}catch(e){if(e instanceof a.g)u.warn(e.message);else{let t=y.create("idb-set",{originalErrorMessage:null==e?void 0:e.message});u.warn(t.message)}}}function k(e){return`${e.name}!${e.options.appId}`}class O{constructor(e){this.container=e,this._heartbeatsCache=null;let t=this.container.getProvider("app").getImmediate();this._storage=new L(t),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){var e,t;try{let n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=N();if((null==(e=this._heartbeatsCache)?void 0:e.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,(null==(t=this._heartbeatsCache)?void 0:t.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===r||this._heartbeatsCache.heartbeats.some(e=>e.date===r))return;if(this._heartbeatsCache.heartbeats.push({date:r,agent:n}),this._heartbeatsCache.heartbeats.length>30){let e=function(e){if(0===e.length)return -1;let t=0,n=e[0].date;for(let r=1;r<e.length;r++)e[r].date<n&&(n=e[r].date,t=r);return t}(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(e,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(e){u.warn(e)}}async getHeartbeatsHeader(){var e;try{if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,(null==(e=this._heartbeatsCache)?void 0:e.heartbeats)==null||0===this._heartbeatsCache.heartbeats.length)return"";let t=N(),{heartbeatsToSend:n,unsentEntries:r}=function(e,t=1024){let n=[],r=e.slice();for(let i of e){let e=n.find(e=>e.agent===i.agent);if(e){if(e.dates.push(i.date),B(n)>t){e.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),B(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),i=(0,a.Uj)(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=t,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}catch(e){return u.warn(e),""}}}function N(){return new Date().toISOString().substring(0,10)}class L{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!(0,a.zW)()&&(0,a.eX)().then(()=>!0).catch(()=>!1)}async read(){if(!await this._canUseIndexedDBPromise)return{heartbeats:[]};{let e=await D(this.app);return(null==e?void 0:e.heartbeats)?e:{heartbeats:[]}}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){let n=await this.read();return M(this.app,{lastSentHeartbeatDate:null!=(t=e.lastSentHeartbeatDate)?t:n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){let n=await this.read();return M(this.app,{lastSentHeartbeatDate:null!=(t=e.lastSentHeartbeatDate)?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}function B(e){return(0,a.Uj)(JSON.stringify({version:2,heartbeats:e})).length}v(new r.uA("platform-logger",e=>new s(e),"PRIVATE")),v(new r.uA("heartbeat",e=>new O(e),"PRIVATE")),I(c,l,""),I(c,l,"esm2017"),I("fire-js","")}
1,30752:(e,t,n)=>{let r,i,a,o,s,c,l;n.d(t,{FJ:()=>tG,uP:()=>tX});var u,h,f,d=n(57176),p=n(5969),g=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},m=function(e){if("loading"===document.readyState)return"loading";var t=g();if(t){if(e<t.domInteractive)return"loading";if(0===t.domContentLoadedEventStart||e<t.domContentLoadedEventStart)return"dom-interactive";if(0===t.domComplete||e<t.domComplete)return"dom-content-loaded"}return"complete"},v=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},b=function(e,t){var n="";try{for(;e&&9!==e.nodeType;){var r=e,i=r.id?"#"+r.id:v(r)+(r.classList&&r.classList.value&&r.classList.value.trim()&&r.classList.value.trim().length?"."+r.classList.value.trim().replace(/\s+/g,"."):"");if(n.length+i.length>(t||100)-1)return n||i;if(n=n?i+">"+n:i,r.id)break;e=r.parentNode}}catch(e){}return n},y=-1,w=function(e){addEventListener("pageshow",function(t){t.persisted&&(y=t.timeStamp,e(t))},!0)},E=function(){var e=g();return e&&e.activationStart||0},_=function(e,t){var n=g(),r="navigate";return y>=0?r="back-forward-cache":n&&(document.prerendering||E()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(0x82f79cd8fff*Math.random())+1e12),navigationType:r}},S=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver(function(e){Promise.resolve().then(function(){t(e.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},I=function(e,t,n,r){var i,a;return function(o){var s;t.value>=0&&(o||r)&&((a=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=a,s=t.value,t.rating=s>n[1]?"poor":s>n[0]?"needs-improvement":"good",e(t))}},T=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},C=function(e){document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&e()})},A=function(e){var t=!1;return function(){t||(e(),t=!0)}},D=-1,M=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},k=function(e){"hidden"===document.visibilityState&&D>-1&&(D="visibilitychange"===e.type?e.timeStamp:0,N())},O=function(){addEventListener("visibilitychange",k,!0),addEventListener("prerenderingchange",k,!0)},N=function(){removeEventListener("visibilitychange",k,!0),removeEventListener("prerenderingchange",k,!0)},L=function(){return D<0&&(D=M(),O(),w(function(){setTimeout(function(){D=M(),O()},0)})),{get firstHiddenTime(){return D}}},B=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},P=[1800,3e3],R=function(e,t){t=t||{},B(function(){var n,r=L(),i=_("FCP"),a=S("paint",function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(a.disconnect(),e.startTime<r.firstHiddenTime&&(i.value=Math.max(e.startTime-E(),0),i.entries.push(e),n(!0)))})});a&&(n=I(e,i,P,t.reportAllChanges),w(function(r){n=I(e,i=_("FCP"),P,t.reportAllChanges),T(function(){i.value=performance.now()-r.timeStamp,n(!0)})}))})},j=[.1,.25],$=function(e,t){var n,r;n=function(t){e(function(e){var t,n={};if(e.entries.length){var r=e.entries.reduce(function(e,t){return e&&e.value>t.value?e:t});if(r&&r.sources&&r.sources.length){var i=(t=r.sources).find(function(e){return e.node&&1===e.node.nodeType})||t[0];i&&(n={largestShiftTarget:b(i.node),largestShiftTime:r.startTime,largestShiftValue:r.value,largestShiftSource:i,largestShiftEntry:r,loadState:m(r.startTime)})}}return Object.assign(e,{attribution:n})}(t))},r=(r=t)||{},R(A(function(){var e,t=_("CLS",0),i=0,a=[],o=function(n){n.forEach(function(e){if(!e.hadRecentInput){var t=a[0],n=a[a.length-1];i&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,a.push(e)):(i=e.value,a=[e])}}),i>t.value&&(t.value=i,t.entries=a,e())},s=S("layout-shift",o);s&&(e=I(n,t,j,r.reportAllChanges),C(function(){o(s.takeRecords()),e(!0)}),w(function(){i=0,e=I(n,t=_("CLS",0),j,r.reportAllChanges),T(function(){return e()})}),setTimeout(e,0))}))},F=0,U=1/0,x=0,H=function(e){e.forEach(function(e){e.interactionId&&(U=Math.min(U,e.interactionId),F=(x=Math.max(x,e.interactionId))?(x-U)/7+1:0)})},V=function(){return h?F:performance.interactionCount||0},W=function(){"interactionCount"in performance||h||(h=S("event",H,{type:"event",buffered:!0,durationThreshold:0}))},z=[],q=new Map,K=0,J=function(){var e=Math.min(z.length-1,Math.floor((V()-K)/50));return z[e]},G=[],X=function(e){if(G.forEach(function(t){return t(e)}),e.interactionId||"first-input"===e.entryType){var t=z[z.length-1],n=q.get(e.interactionId);if(n||z.length<10||e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};q.set(r.id,r),z.push(r)}z.sort(function(e,t){return t.latency-e.latency}),z.length>
110&&z.splice(10).forEach(function(e){return q.delete(e.id)})}}},Y=function(e){var t=self.requestIdleCallback||self.setTimeout,n=-1;return e=A(e),"hidden"===document.visibilityState?e():(n=t(e),C(e)),n},Z=[200,500],Q=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},B(function(){W();var n,r,i=_("INP"),a=function(e){Y(function(){e.forEach(X);var t=J();t&&t.latency!==i.value&&(i.value=t.latency,i.entries=t.entries,r())})},o=S("event",a,{durationThreshold:null!=(n=t.durationThreshold)?n:40});r=I(e,i,Z,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),C(function(){a(o.takeRecords()),r(!0)}),w(function(){K=V(),z.length=0,q.clear(),r=I(e,i=_("INP"),Z,t.reportAllChanges)}))}))},ee=[],et=[],en=0,er=new WeakMap,ei=new Map,ea=-1,eo=function(e){ee=ee.concat(e),es()},es=function(){ea<0&&(ea=Y(ec))},ec=function(){ei.size>10&&ei.forEach(function(e,t){q.has(t)||ei.delete(t)});var e=z.map(function(e){return er.get(e.entries[0])}),t=et.length-50;et=et.filter(function(n,r){return r>=t||e.includes(n)});for(var n=new Set,r=0;r<et.length;r++){var i=et[r];ed(i.startTime,i.processingEnd).forEach(function(e){n.add(e)})}var a=ee.length-1-50;ee=ee.filter(function(e,t){return e.startTime>en&&t>a||n.has(e)}),ea=-1};G.push(function(e){e.interactionId&&e.target&&!ei.has(e.interactionId)&&ei.set(e.interactionId,e.target)},function(e){var t,n=e.startTime+e.duration;en=Math.max(en,e.processingEnd);for(var r=et.length-1;r>=0;r--){var i=et[r];if(8>=Math.abs(n-i.renderTime)){(t=i).startTime=Math.min(e.startTime,t.startTime),t.processingStart=Math.min(e.processingStart,t.processingStart),t.processingEnd=Math.max(e.processingEnd,t.processingEnd),t.entries.push(e);break}}t||(t={startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,renderTime:n,entries:[e]},et.push(t)),(e.interactionId||"first-input"===e.entryType)&&er.set(e,t),es()});var el,eu,eh,ef,ed=function(e,t){for(var n,r=[],i=0;n=ee[i];i++)if(!(n.startTime+n.duration<e)){if(n.startTime>t)break;r.push(n)}return r},ep=function(e,t){f||(f=S("long-animation-frame",eo)),Q(function(t){var n,r,i,a,o,s,c,l,u,h;e((n=t.entries[0],r=er.get(n),i=n.processingStart,a=r.processingEnd,o=r.entries.sort(function(e,t){return e.processingStart-t.processingStart}),s=ed(n.startTime,a),l=(c=t.entries.find(function(e){return e.target}))&&c.target||ei.get(n.interactionId),u=[n.startTime+n.duration,a].concat(s.map(function(e){return e.startTime+e.duration})),h=Math.max.apply(Math,u),Object.assign(t,{attribution:{interactionTarget:b(l),interactionTargetElement:l,interactionType:n.name.startsWith("key")?"keyboard":"pointer",interactionTime:n.startTime,nextPaintTime:h,processedEventEntries:o,longAnimationFrameEntries:s,inputDelay:i-n.startTime,processingDuration:a-i,presentationDelay:Math.max(h-a,0),loadState:m(n.startTime)}})))},t)},eg=[2500,4e3],em={},ev=function(e,t){var n,r;n=function(t){e(function(e){var t={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:e.value};if(e.entries.length){var n=g();if(n){var r=n.activationStart||0,i=e.entries[e.entries.length-1],a=i.url&&performance.getEntriesByType("resource").filter(function(e){return e.name===i.url})[0],o=Math.max(0,n.responseStart-r),s=Math.max(o,a?(a.requestStart||a.startTime)-r:0),c=Math.max(s,a?a.responseEnd-r:0),l=Math.max(c,i.startTime-r);t={element:b(i.element),timeToFirstByte:o,resourceLoadDelay:s-o,resourceLoadDuration:c-s,elementRenderDelay:l-c,navigationEntry:n,lcpEntry:i},i.url&&(t.url=i.url),a&&(t.lcpResourceEntry=a)}}return Object.assign(e,{attribution:t})}(t))},r=(r=t)||{},B(function(){var e,t=L(),i=_("LCP"),a=function(n){r.reportAllChanges||(n=n.slice(-1)),n.forEach(function(n){n.startTime<t.firstHiddenTime&&(i.value=Math.max(n.startTime-E(),0),i.entries=[n],e())})},o=S("largest-contentful-paint",a);if(o){e=I(n,i,eg,r.reportAllChanges);var s=A(function(){em[i.id]||(a(o.takeRecords()),o.disconnect(),em[i.id]=!0,e(!0))});["keydown","click"].forEach(function(e){addEventListener(e,function(){return Y(s)},{once:!0,capture:!0})}),C(s),w(function(t){e=I(n,i=_("LCP"),eg,r.reportAllChanges),T(function(){i.value=performance.now()-t.timeStamp,em[i.id]=!0,e(!0)})})}})},eb={passive:!0,capture:!0},ey=new Date,ew=function(e,t){el||(el=t,eu=e,eh=new Date,eS(removeEventListener),eE())},eE=function(){if(eu>
1=0&&eu<eh-ey){var e={entryType:"first-input",name:el.type,target:el.target,cancelable:el.cancelable,startTime:el.timeStamp,processingStart:el.timeStamp+eu};ef.forEach(function(t){t(e)}),ef=[]}},e_=function(e){if(e.cancelable){var t,n,r,i=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?(t=function(){ew(i,e),r()},n=function(){r()},r=function(){removeEventListener("pointerup",t,eb),removeEventListener("pointercancel",n,eb)},addEventListener("pointerup",t,eb),addEventListener("pointercancel",n,eb)):ew(i,e)}},eS=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,e_,eb)})},eI=n(29820),eT=n(22396),eC=n(91951);let eA="@firebase/installations",eD="0.6.18",eM=`w:${eD}`,ek="FIS_v2",eO=new d.FA("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function eN(e){return e instanceof d.g&&e.code.includes("request-failed")}function eL({projectId:e}){return`https://firebaseinstallations.googleapis.com/v1/projects/${e}/installations`}function eB(e){return{token:e.token,requestStatus:2,expiresIn:Number(e.expiresIn.replace("s","000")),creationTime:Date.now()}}async function eP(e,t){let n=(await t.json()).error;return eO.create("request-failed",{requestName:e,serverCode:n.code,serverMessage:n.message,serverStatus:n.status})}function eR({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}async function ej(e){let t=await e();return t.status>=500&&t.status<600?e():t}async function e$({appConfig:e,heartbeatServiceProvider:t},{fid:n}){let r=eL(e),i=eR(e),a=t.getImmediate({optional:!0});if(a){let e=await a.getHeartbeatsHeader();e&&i.append("x-firebase-client",e)}let o={method:"POST",headers:i,body:JSON.stringify({fid:n,authVersion:ek,appId:e.appId,sdkVersion:eM})},s=await ej(()=>fetch(r,o));if(s.ok){let e=await s.json();return{fid:e.fid||n,registrationStatus:2,refreshToken:e.refreshToken,authToken:eB(e.authToken)}}throw await eP("Create Installation",s)}function eF(e){return new Promise(t=>{setTimeout(t,e)})}let eU=/^[cdef][\w-]{21}$/;function ex(e){return`${e.appName}!${e.appId}`}let eH=new Map;function eV(e,t){let n=ex(e);eW(n,t),function(e,t){let n=(!ez&&"BroadcastChannel"in self&&((ez=new BroadcastChannel("[Firebase] FID Change")).onmessage=e=>{eW(e.data.key,e.data.fid)}),ez);n&&n.postMessage({key:e,fid:t}),0===eH.size&&ez&&(ez.close(),ez=null)}(n,t)}function eW(e,t){let n=eH.get(e);if(n)for(let e of n)e(t)}let ez=null,eq="firebase-installations-store",eK=null;function eJ(){return eK||(eK=(0,eC.P2)("firebase-installations-database",1,{upgrade:(e,t)=>{0===t&&e.createObjectStore(eq)}})),eK}async function eG(e,t){let n=ex(e),r=(await eJ()).transaction(eq,"readwrite"),i=r.objectStore(eq),a=await i.get(n);return await i.put(t,n),await r.done,a&&a.fid===t.fid||eV(e,t.fid),t}async function eX(e){let t=ex(e),n=(await eJ()).transaction(eq,"readwrite");await n.objectStore(eq).delete(t),await n.done}async function eY(e,t){let n=ex(e),r=(await eJ()).transaction(eq,"readwrite"),i=r.objectStore(eq),a=await i.get(n),o=t(a);return void 0===o?await i.delete(n):await i.put(o,n),await r.done,o&&(!a||a.fid!==o.fid)&&eV(e,o.fid),o}async function eZ(e){let t,n=await eY(e.appConfig,n=>{let r=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine)return{installationEntry:t,registrationPromise:Promise.reject(eO.create("app-offline"))};let n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=eQ(e,n);return{installationEntry:n,registrationPromise:r}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:e0(e)}:{installationEntry:t}}(e,e2(n||{fid:function(){try{var e;let t=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(t),t[0]=112+t[0]%16;let n=(e=t,btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_").substr(0,22));return eU.test(n)?n:""}catch(e){return""}}(),registrationStatus:0}));return t=r.registrationPromise,r.installationEntry});return""===n.fid?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}async function eQ(e,t){try{let n=await e$(e,t);return eG(e.appConfig,n)}catch(n){throw eN(n)&&409===n.customData.serverCode?await eX(e.appConfig):await eG(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}async function e0(e){let t=await e1(e.appConfig);for(;1===t.registrationStatus;)await eF(100),t=await e1(e.appConfig);if(0===t.registrationStatus){let{installationEntry:t,registrationPromise:n}=await eZ(e);return n||t}return t}function e1(e){return eY(e,e=>{if(!e)throw eO.create("installation-not-found");return e2(e)})}function e2(e){var t;return 1===(t=e).registrationStatus&&t.registrationTime+1e4<Date.now()?{fid:e.fid,registrationStatus:0}:e}async function e3({appConfig:e,heartbeatServiceProvider:t},n){let r=function(e,{fid:t}){return`${eL(e)}/${t}/authTokens:generate`}(e,n),i=function(e,{refreshToken:t}){var n;let r=eR(e);return r.append("Authorization",(n=t,`${ek} ${n}`)),r}(e,n),a=t.getImmediate({optional:!0});if(a){let e=await a.getHeartbeatsHeader();e&&i.append("x-firebase-client",e)}let o={method:"POST",headers:i,body:JSON.stringify({installation:{sdkVersion:eM,appI
1d:e.appId}})},s=await ej(()=>fetch(r,o));if(s.ok)return eB(await s.json());throw await eP("Generate Auth Token",s)}async function e6(e,t=!1){let n,r=await eY(e.appConfig,r=>{var i;if(!e7(r))throw eO.create("not-registered");let a=r.authToken;if(!t&&2===(i=a).requestStatus&&!function(e){let t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+36e5}(i))return r;if(1===a.requestStatus)return n=e5(e,t),r;{if(!navigator.onLine)throw eO.create("app-offline");let t=function(e){let t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}(r);return n=e9(e,t),t}});return n?await n:r.authToken}async function e5(e,t){let n=await e4(e.appConfig);for(;1===n.authToken.requestStatus;)await eF(100),n=await e4(e.appConfig);let r=n.authToken;return 0===r.requestStatus?e6(e,t):r}function e4(e){return eY(e,e=>{var t;if(!e7(e))throw eO.create("not-registered");return 1===(t=e.authToken).requestStatus&&t.requestTime+1e4<Date.now()?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e})}async function e9(e,t){try{let n=await e3(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return await eG(e.appConfig,r),n}catch(n){if(eN(n)&&(401===n.customData.serverCode||404===n.customData.serverCode))await eX(e.appConfig);else{let n=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await eG(e.appConfig,n)}throw n}}function e7(e){return void 0!==e&&2===e.registrationStatus}async function e8(e){let{installationEntry:t,registrationPromise:n}=await eZ(e);return n?n.catch(console.error):e6(e).catch(console.error),t.fid}async function te(e,t=!1){return await tt(e),(await e6(e,t)).token}async function tt(e){let{registrationPromise:t}=await eZ(e);t&&await t}function tn(e){return eO.create("missing-app-config-values",{valueName:e})}let tr="installations";(0,eI.om)(new eT.uA(tr,e=>{let t=e.getProvider("app").getImmediate(),n=function(e){if(!e||!e.options)throw tn("App Configuration");if(!e.name)throw tn("App Name");for(let t of["projectId","apiKey","appId"])if(!e.options[t])throw tn(t);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t),r=(0,eI.j6)(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},"PUBLIC")),(0,eI.om)(new eT.uA("installations-internal",e=>{let t=e.getProvider("app").getImmediate(),n=(0,eI.j6)(t,tr).getImmediate();return{getId:()=>e8(n),getToken:e=>te(n,e)}},"PRIVATE")),(0,eI.KO)(eA,eD),(0,eI.KO)(eA,eD,"esm2017");let ti="@firebase/performance",ta="0.7.7",to="FB-PERF-TRACE-MEASURE",ts="_wt_",tc="_fcp",tl="_fid",tu="_lcp",th="_inp",tf="_cls",td="@firebase/performance/config",tp="@firebase/performance/configexpire",tg="Performance",tm=new d.FA("performance",tg,{"trace started":"Trace {$traceName} was started before.","trace stopped":"Trace {$traceName} is not running.","nonpositive trace startTime":"Trace {$traceName} startTime should be positive.","nonpositive trace duration":"Trace {$traceName} duration should be positive.","no window":"Window is not available.","no app id":"App id is not available.","no project id":"Project id is not available.","no api key":"Api key is not available.","invalid cc log":"Attempted to queue invalid cc event","FB not default":"Performance can only start when Firebase app instance is the default one.","RC response not ok":"RC response is not ok","invalid attribute name":"Attribute name {$attributeName} is invalid.","invalid attribute value":"Attribute value {$attributeValue} is invalid.","invalid custom metric name":"Custom metric name {$customMetricName} is invalid","invalid String merger input":"Input for String merger is invalid, contact support team to resolve.","already initialized":"initializePerformance() has already been called with different options. To avoid this error, call initializePerformance() with the same options as when it was originally called, or call getPerformance() to return the already initialized instance."}),tv=new p.Vy(tg);tv.logLevel=p.$b.INFO;class tb{constructor(e){if(this.window=e,!e)throw tm.create("no window");this.performance=e.performance,this.PerformanceObserver=e.PerformanceObserver,this.windowLocation=e.location,this.navigator=e.n
1avigator,this.document=e.document,this.navigator&&this.navigator.cookieEnabled&&(this.localStorage=e.localStorage),e.perfMetrics&&e.perfMetrics.onFirstInputDelay&&(this.onFirstInputDelay=e.perfMetrics.onFirstInputDelay),this.onLCP=ev,this.onINP=ep,this.onCLS=$}getUrl(){return this.windowLocation.href.split("?")[0]}mark(e){this.performance&&this.performance.mark&&this.performance.mark(e)}measure(e,t,n){this.performance&&this.performance.measure&&this.performance.measure(e,t,n)}getEntriesByType(e){return this.performance&&this.performance.getEntriesByType?this.performance.getEntriesByType(e):[]}getEntriesByName(e){return this.performance&&this.performance.getEntriesByName?this.performance.getEntriesByName(e):[]}getTimeOrigin(){return this.performance&&(this.performance.timeOrigin||this.performance.timing.navigationStart)}requiredApisAvailable(){return fetch&&Promise&&(0,d.dM)()?!!(0,d.zW)()||(tv.info("IndexedDB is not supported by current browser"),!1):(tv.info("Firebase Performance cannot start if browser does not support fetch and Promise or cookie is disabled."),!1)}setupObserver(e,t){this.PerformanceObserver&&new this.PerformanceObserver(e=>{for(let n of e.getEntries())t(n)}).observe({entryTypes:[e]})}static getInstance(){return void 0===r&&(r=new tb(i)),r}}function ty(e,t){let n=e.length-t.length;if(n<0||n>1)throw tm.create("invalid String merger input");let r=[];for(let n=0;n<e.length;n++)r.push(e.charAt(n)),t.length>n&&r.push(t.charAt(n));return r.join("")}class tw{constructor(){this.instrumentationEnabled=!0,this.dataCollectionEnabled=!0,this.loggingEnabled=!1,this.tracesSamplingRate=1,this.networkRequestsSamplingRate=1,this.logEndPointUrl="https://firebaselogging.googleapis.com/v0cc/log?format=json_proto",this.flTransportEndpointUrl=ty("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),this.transportKey=ty("AzSC8r6ReiGqFMyfvgow","Iayx0u-XT3vksVM-pIV"),this.logSource=462,this.logTraceAfterSampling=!1,this.logNetworkAfterSampling=!1,this.configTimeToLive=12}getFlTransportFullUrl(){return this.flTransportEndpointUrl.concat("?key=",this.transportKey)}static getInstance(){return void 0===o&&(o=new tw),o}}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.VISIBLE=1]="VISIBLE",e[e.HIDDEN=2]="HIDDEN"}(u||(u={}));let tE=["firebase_","google_","ga_"],t_=RegExp("^[a-zA-Z]\\w*$");function tS(e){var t;let n=null==(t=e.options)?void 0:t.appId;if(!n)throw tm.create("no app id");return n}let tI={loggingEnabled:!0};function tT(e){if(!e)return e;let t=tw.getInstance(),n=e.entries||{};return void 0!==n.fpr_enabled?t.loggingEnabled="true"===String(n.fpr_enabled):t.loggingEnabled=tI.loggingEnabled,n.fpr_log_source?t.logSource=Number(n.fpr_log_source):tI.logSource&&(t.logSource=tI.logSource),n.fpr_log_endpoint_url?t.logEndPointUrl=n.fpr_log_endpoint_url:tI.logEndPointUrl&&(t.logEndPointUrl=tI.logEndPointUrl),n.fpr_log_transport_key?t.transportKey=n.fpr_log_transport_key:tI.transportKey&&(t.transportKey=tI.transportKey),void 0!==n.fpr_vc_network_request_sampling_rate?t.networkRequestsSamplingRate=Number(n.fpr_vc_network_request_sampling_rate):void 0!==tI.networkRequestsSamplingRate&&(t.networkRequestsSamplingRate=tI.networkRequestsSamplingRate),void 0!==n.fpr_vc_trace_sampling_rate?t.tracesSamplingRate=Number(n.fpr_vc_trace_sampling_rate):void 0!==tI.tracesSamplingRate&&(t.tracesSamplingRate=tI.tracesSamplingRate),t.logTraceAfterSampling=tC(t.tracesSamplingRate),t.logNetworkAfterSampling=tC(t.networkRequestsSamplingRate),e}function tC(e){return Math.random()<=e}let tA=1;function tD(e){var t;return tA=2,s=s||(t=e,(function(){let e=tb.getInstance().document;return new Promise(t=>{if(e&&"complete"!==e.readyState){let n=()=>{"complete"===e.readyState&&(e.removeEventListener("readystatechange",n),t())};e.addEventListener("readystatechange",n)}else t()})})().then(()=>(function(e){let t=e.getId();return t.then(e=>{a=e}),t})(t.installations)).then(e=>(function(e,t){var n,r;let i=function(){let e=tb.getInstance().localStorage;if(!e)return;let t=e.getItem(tp);if(!t||!(Number(t)>Date.now()))return;let n=e.getItem(td);if(n)try{return JSON.parse(n)}catch(e){return}}();return i?(tT(i),Promise.resolve()):(n=e,r=t,(function(e){let t=e.getToken();return t.then(e=>{}),t})(n.installations).then(e=>{let t=function(e){var t;let n=null==(t=e.options)?void 0:t.projectId;if(!n)throw tm.create("no project id");return n}(n.app),i=function(e){var t;let n=null==(t=e.options)?void 0:t.apiKey;if(!n)throw tm.create("no api key");return n}(n.app);
1return fetch(new Request(`https://firebaseremoteconfig.googleapis.com/v1/projects/${t}/namespaces/fireperf:fetch?key=${i}`,{method:"POST",headers:{Authorization:`FIREBASE_INSTALLATIONS_AUTH ${e}`},body:JSON.stringify({app_instance_id:r,app_instance_id_token:e,app_id:tS(n.app),app_version:ta,sdk_version:"0.0.1"})})).then(e=>{if(e.ok)return e.json();throw tm.create("RC response not ok")})}).catch(()=>{tv.info("Could not fetch config, will use default configs")})).then(tT).then(e=>(function(e){let t=tb.getInstance().localStorage;e&&t&&(t.setItem(td,JSON.stringify(e)),t.setItem(tp,String(Date.now()+60*tw.getInstance().configTimeToLive*6e4)))})(e),()=>{})})(t,e)).then(()=>(function(){tA=3})(),()=>(function(){tA=3})()))}let tM=3,tk=[],tO=!1;function tN(e){setTimeout(()=>{tM<=0||(tk.length>0&&tL(),tN(1e4))},e)}function tL(){let e=tk.splice(0,1e3),t=e.map(e=>({source_extension_json_proto3:e.message,event_time_ms:String(e.eventTime)}));(function(e){let t=tw.getInstance().getFlTransportFullUrl(),n=JSON.stringify(e);return navigator.sendBeacon&&navigator.sendBeacon(t,n)?Promise.resolve():fetch(t,{method:"POST",body:n,keepalive:!0}).then()})({request_time_ms:String(Date.now()),client_info:{client_type:1,js_client_info:{}},log_source:tw.getInstance().logSource,log_event:t}).then(()=>{tM=3}).catch(()=>{tk=[...e,...tk],tM--,tv.info(`Tries left: ${tM}.`),tN(1e4)})}function tB(){for(;tk.length>0;)tL()}function tP(e,t){var n;c||(c={send:(n=t$,(...e)=>{var t={message:n(...e),eventTime:Date.now()};if(!t.eventTime||!t.message)throw tm.create("invalid cc log");tk=[...tk,t]}),flush:tB}),c.send(e,t)}function tR(e){let t=tw.getInstance();(t.instrumentationEnabled||!e.isAuto)&&(t.dataCollectionEnabled||e.isAuto)&&tb.getInstance().requiredApisAvailable()&&(3===tA?tj(e):tD(e.performanceController).then(()=>tj(e),()=>tj(e)))}function tj(e){if(!a)return;let t=tw.getInstance();t.loggingEnabled&&t.logTraceAfterSampling&&tP(e,1)}function t$(e,t){return 0===t?function(e){let t={url:e.url,http_method:e.httpMethod||0,http_response_code:200,response_payload_bytes:e.responsePayloadBytes,client_start_time_us:e.startTimeUs,time_to_response_initiated_us:e.timeToResponseInitiatedUs,time_to_response_completed_us:e.timeToResponseCompletedUs};return JSON.stringify({application_info:tF(e.performanceController.app),network_request_metric:t})}(e):function(e){let t={name:e.name,is_auto:e.isAuto,client_start_time_us:e.startTimeUs,duration_us:e.durationUs};0!==Object.keys(e.counters).length&&(t.counters=e.counters);let n=e.getAttributes();return 0!==Object.keys(n).length&&(t.custom_attributes=n),JSON.stringify({application_info:tF(e.performanceController.app),trace_metric:t})}(e)}function tF(e){return{google_app_id:tS(e),app_instance_id:a,web_app_info:{sdk_version:ta,page_url:tb.getInstance().getUrl(),service_worker_status:function(){let e=tb.getInstance().navigator;return null!=e&&e.serviceWorker?e.serviceWorker.controller?2:3:1}(),visibility_state:function(){switch(tb.getInstance().document.visibilityState){case"visible":return u.VISIBLE;case"hidden":return u.HIDDEN;default:return u.UNKNOWN}}(),effective_connection_type:function(){let e=tb.getInstance().navigator.connection;switch(e&&e.effectiveType){case"slow-2g":return 1;case"2g":return 2;case"3g":return 3;case"4g":return 4;default:return 0}}()},application_process_state:0}}function tU(e,t){if(!t||void 0===t.responseStart)return;let n=tb.getInstance().getTimeOrigin(),r=Math.floor((t.startTime+n)*1e3),i=t.responseStart?Math.floor((t.responseStart-t.startTime)*1e3):void 0,a=Math.floor((t.responseEnd-t.startTime)*1e3);!function(e){let t=tw.getInstance();if(!t.instrumentationEnabled)return;let n=e.url,r=t.logEndPointUrl.split("?")[0],i=t.flTransportEndpointUrl.split("?")[0];n!==r&&n!==i&&t.loggingEnabled&&t.logNetworkAfterSampling&&tP(e,0)}({performanceController:e,url:t.name&&t.name.split("?")[0],responsePayloadBytes:t.transferSize,startTimeUs:r,timeToResponseInitiatedUs:i,timeToResponseCompletedUs:a})}let tx=["_fp",tc,tl,tu,tf,th];class tH{constructor(e,t,n=!1,r){this.performanceController=e,this.name=t,this.isAuto=n,this.state=1,this.customAttributes={},this.counters={},this.api=tb.getInstance(),this.randomId=Math.floor(1e6*Math.random()),!this.isAuto&&(this.traceStartMark=`FB-PERF-TRACE-START-${this.randomId}-${this.name}`,this.traceStopMark=`FB-PERF-TRACE-STOP-${this.randomId}-${this.name}`,this.traceMeasure=r||`${to}-${this.randomId}-${this.name}`,r&&this.calculateTraceMetrics())}
1start(){if(1!==this.state)throw tm.create("trace started",{traceName:this.name});this.api.mark(this.traceStartMark),this.state=2}stop(){if(2!==this.state)throw tm.create("trace stopped",{traceName:this.name});this.state=3,this.api.mark(this.traceStopMark),this.api.measure(this.traceMeasure,this.traceStartMark,this.traceStopMark),this.calculateTraceMetrics(),tR(this)}record(e,t,n){if(e<=0)throw tm.create("nonpositive trace startTime",{traceName:this.name});if(t<=0)throw tm.create("nonpositive trace duration",{traceName:this.name});if(this.durationUs=Math.floor(1e3*t),this.startTimeUs=Math.floor(1e3*e),n&&n.attributes&&(this.customAttributes=Object.assign({},n.attributes)),n&&n.metrics)for(let e of Object.keys(n.metrics))isNaN(Number(n.metrics[e]))||(this.counters[e]=Math.floor(Number(n.metrics[e])));tR(this)}incrementMetric(e,t=1){void 0===this.counters[e]?this.putMetric(e,t):this.putMetric(e,this.counters[e]+t)}putMetric(e,t){var n;if(n=this.name,0!==e.length&&!(e.length>100)&&(n&&n.startsWith(ts)&&tx.indexOf(e)>-1||!e.startsWith("_")))this.counters[e]=function(e){let t=Math.floor(e);return t<e&&tv.info(`Metric value should be an Integer, setting the value as : ${t}.`),t}(null!=t?t:0);else throw tm.create("invalid custom metric name",{customMetricName:e})}getMetric(e){return this.counters[e]||0}putAttribute(e,t){let n=0!==e.length&&!(e.length>40)&&!tE.some(t=>e.startsWith(t))&&!!e.match(t_),r=0!==t.length&&t.length<=100;if(n&&r){this.customAttributes[e]=t;return}if(!n)throw tm.create("invalid attribute name",{attributeName:e});if(!r)throw tm.create("invalid attribute value",{attributeValue:t})}getAttribute(e){return this.customAttributes[e]}removeAttribute(e){void 0!==this.customAttributes[e]&&delete this.customAttributes[e]}getAttributes(){return Object.assign({},this.customAttributes)}setStartTime(e){this.startTimeUs=e}setDuration(e){this.durationUs=e}calculateTraceMetrics(){let e=this.api.getEntriesByName(this.traceMeasure),t=e&&e[0];t&&(this.durationUs=Math.floor(1e3*t.duration),this.startTimeUs=Math.floor((t.startTime+this.api.getTimeOrigin())*1e3))}static createOobTrace(e,t,n,r,i){let a=tb.getInstance().getUrl();if(!a)return;let o=new tH(e,ts+a,!0),s=Math.floor(1e3*tb.getInstance().getTimeOrigin());if(o.setStartTime(s),t&&t[0]&&(o.setDuration(Math.floor(1e3*t[0].duration)),o.putMetric("domInteractive",Math.floor(1e3*t[0].domInteractive)),o.putMetric("domContentLoadedEventEnd",Math.floor(1e3*t[0].domContentLoadedEventEnd)),o.putMetric("loadEventEnd",Math.floor(1e3*t[0].loadEventEnd))),n){let e=n.find(e=>"first-paint"===e.name);e&&e.startTime&&o.putMetric("_fp",Math.floor(1e3*e.startTime));let t=n.find(e=>"first-contentful-paint"===e.name);t&&t.startTime&&o.putMetric(tc,Math.floor(1e3*t.startTime)),i&&o.putMetric(tl,Math.floor(1e3*i))}this.addWebVitalMetric(o,tu,"lcp_element",r.lcp),this.addWebVitalMetric(o,tf,"cls_largestShiftTarget",r.cls),this.addWebVitalMetric(o,th,"inp_interactionTarget",r.inp),tR(o),c&&c.flush()}static addWebVitalMetric(e,t,n,r){r&&(e.putMetric(t,Math.floor(1e3*r.value)),r.elementAttribution&&e.putAttribute(n,r.elementAttribution))}static createUserTimingTrace(e,t){tR(new tH(e,t,!1,t))}}let tV={},tW=!1;function tz(e){a&&(setTimeout(()=>(function(e){let t=tb.getInstance();"onpagehide"in window?t.document.addEventListener("pagehide",()=>tK(e)):t.document.addEventListener("unload",()=>tK(e)),t.document.addEventListener("visibilitychange",()=>{"hidden"===t.document.visibilityState&&tK(e)}),t.onFirstInputDelay&&t.onFirstInputDelay(e=>{l=e}),t.onLCP(e=>{var t;tV.lcp={value:e.value,elementAttribution:null==(t=e.attribution)?void 0:t.element}}),t.onCLS(e=>{var t;tV.cls={value:e.value,elementAttribution:null==(t=e.attribution)?void 0:t.largestShiftTarget}}),t.onINP(e=>{var t;tV.inp={value:e.value,elementAttribution:null==(t=e.attribution)?void 0:t.interactionTarget}})})(e),0),setTimeout(()=>(function(e){let t=tb.getInstance();for(let n of t.getEntriesByType("resource"))tU(e,n);t.setupObserver("resource",t=>tU(e,t))})(e),0),setTimeout(()=>(function(e){let t=tb.getInstance();for(let n of t.getEntriesByType("measure"))tq(e,n);t.setupObserver("measure",t=>tq(e,t))})(e),0))}function tq(e,t){let n=t.name;n.substring(0,to.length)!==to&&tH.createUserTimingTrace(e,n)}function tK(e){if(!tW){tW=!0;let t=tb.getInstance(),n=t.getEntriesByType("navigation"),r=t.getEntriesByType("paint");setTimeout(()=>{tH.createOobTrace(e,n,r,tV,l)},0)}}class tJ{constructor(e,t){this.app=e,this.installations=t,this.initialized=!1}_init(e){this.initialized||((null==e?void 0:e.dataCollectionEnabled)!==void 0&&(this.dataCollectionEnabled=e.dataCollectionEnabled),(null==e?void 0:e.instrumentationEnabled)!==void 0&&(this.instrumentationEnabled=e.instrumentationEnabled),tb.getInstance().requiredApisAvailable()?(0,d.eX)().then(e=>{e&&(tO||(tN(5500),tO=!0),tD(this).then(()=>tz(this),()=>tz(this)),this.initialized=!0)}).catch(e=>{tv.info(`Environment doesn't support IndexedDB: ${e}`)}):tv.info('Firebase Performance cannot start if the browser does not support "Fetch" and "Promise", or cookies are disabled.'))}set instrumentationEnabled(e){tw.getInstance().instrumentationEnabled=e}get instrumentationEnabled(){return tw.getInstance().instrumentationEnabled}set dataCollectionEnabled(e){tw.getInstance().dataCollectionEnabled=e}get dataCollectionEnabled(){return tw.getInstance().dataCollectionEnabled}}function tG(e=(0,eI.Sx)()){return e=(0,d.Ku)(e),(0,eI.j6)(e,"performance").getImmediate()}function tX(e,t){return new tH(e=(0,d.Ku)(e),t)}(0,eI.om)(new eT.uA("performance",(e,{options:t})=>{let n=e.getProvider("app").getImmediate(),r=e.getProvider("installations-internal").getImmediate();if("[DEFAULT]"!==n.name)throw tm.create("FB not default");if("undefined"==typeof window)throw tm.create("no window");i=window;let a=new tJ(n,r);return a._init(t),a},"PUBLIC")),(0,eI.KO)(ti,ta),(0,eI.KO)(ti,ta,"esm2017")},52078:(e,t,n)=>{n.d(t,{Dk:()=>r.Dk,Wp:()=>r.Wp});var r=n(29820);(0,r.KO)("firebase","11.10.0","app")},57176:(e,t,n)=>{n.d(t,{cY:()=>f,FA:()=>v,g:()=>m,dM:()=>g,u:()=>u,Uj:()=>l,bD:()=>function e(t,n){if(t===n)return!0;let r=Object.keys(t),i=Object.keys(n);for(let a of r){if(!i.includes(a))return!1;let r=t[a],o=n[a];if(y(r)&&y(o)){if(!e(r,o))return!1}else if(r!==o)return!1}for(let e of i)if(!r.includes(e))return!1;return!0},T9:()=>h,Ku:()=>w,zW:()=>d,eX:()=>p});var r=n(95704);let i=function(e){let t=[],n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:(i<2048?t[n++]=i>>6|192:((64512&i)==55296&&r+1<e.length&&(64512&e.charCodeAt(r+1))==56320?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128):t[n++]=i>>12|224,t[n++]=i>>6&63|128),t[n++]=63&i|128)}return t},a=function(e){let t=[],n=0,r=0;for(;n<e.length;){let i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){let a=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&a)}else if(i>239&&i<365){let a=e[n++],o=((7&i)<<18|(63&a)<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(o>>10)),t[r++]=String.fromCharCode(56320+(1023&o))}else{let a=e[n++],o=e[n++];
1t[r++]=String.fromCharCode((15&i)<<12|(63&a)<<6|63&o)}}return t.join("")},o={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(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();let n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let t=0;t<e.length;t+=3){let i=e[t],a=t+1<e.length,o=a?e[t+1]:0,s=t+2<e.length,c=s?e[t+2]:0,l=i>>2,u=(3&i)<<4|o>>4,h=(15&o)<<2|c>>6,f=63&c;!s&&(f=64,a||(h=64)),r.push(n[l],n[u],n[h],n[f])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(i(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):a(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();let n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let t=0;t<e.length;){let i=n[e.charAt(t++)],a=t<e.length?n[e.charAt(t)]:0,o=++t<e.length?n[e.charAt(t)]:64,c=++t<e.length?n[e.charAt(t)]:64;if(++t,null==i||null==a||null==o||null==c)throw new s;let l=i<<2|a>>4;if(r.push(l),64!==o){let e=a<<4&240|o>>2;if(r.push(e),64!==c){let e=o<<6&192|c;r.push(e)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class s extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}let c=function(e){let t=i(e);return o.encodeByteArray(t,!0)},l=function(e){return c(e).replace(/\./g,"")},u=function(e){try{return o.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null},h=()=>{var e;return null==(e=(()=>{try{return function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if(void 0===r||void 0===r.env)return;let e=r.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)})()||(()=>{let e;if("undefined"==typeof document)return;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(e){return}let t=e&&u(e[1]);return t&&JSON.parse(t)})()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}})())?void 0:e.config};class f{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),"function"==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(t):e(t,n))}}}function d(){try{return"object"==typeof indexedDB}catch(e){return!1}}function p(){return new Promise((e,t)=>{try{let n=!0,r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var e;t((null==(e=i.error)?void 0:e.message)||"")}}catch(e){t(e)}})}function g(){return"undefined"!=typeof navigator&&!!navigator.cookieEnabled}class m extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,m.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,v.prototype.create)}}class v{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){var n,r;let i=t[0]||{},a=`${this.service}/${e}`,o=this.errors[e],s=o?(n=o,r=i,n.replace(b,(e,t)=>{let n=r[t];return null!=n?String(n):`<${t}?>`})):"Error",c=`${this.serviceName}: ${s} (${a}).`;return new m(a,c,i)}}let b=/\{\$([^}]+)}/g;function y(e){return null!==e&&"object"==typeof e}function w(e){return e&&e._delegate?e._delegate:e}},91951:(e,t,n)=>{let r,i;n.d(t,{P2:()=>d});let a=new WeakMap,o=new WeakMap,s=new WeakMap,c=new WeakMap,l=new WeakMap,u={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return o.get(e);if("objectStoreNames"===t)return e.objectStoreNames||s.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return h(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function h(e){if(e instanceof IDBRequest){let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",a)},i=()=>{t(h(e.result)),r()},a=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",a)});return t.then(t=>{t instanceof IDBCursor&&a.set(t,e)}).catch(()=>{}),l.set(t,e),t}if(c.has(e))return c.get(e);let t=function(e){if("function"==typeof e)return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(i||(i=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(f(this),t),h(a.get(this))}:function(...t){return h(e.apply(f(this),t))}:function(t,...n){let r=e.call(f(this),t,...n);return s.set(r,t.sort?t.sort():[t]),h(r)};return e instanceof IDBTransaction&&function(e){if(o.has(e))return;let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",a),e.removeEventListener("abort",a)},i=()=>{t(),r()},a=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",a),e.addEventListener("abort",a)});o.set(e,t)}(e),(r||(r=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(t=>e instanceof t)?new Proxy(e,u):e}(e);return t!==e&&(c.set(e,t),l.set(t,e)),t}let f=e=>l.get(e);function d(e,t,{blocked:n,upgrade:r,blocking:i,terminated:a}={}){let o=indexedDB.open(e,t),s=h(o);return r&&o.addEventListener("upgradeneeded",e=>{r(h(o.result),e.oldVersion,e.newVersion,h(o.transaction),e)}),n&&o.addEventListener("blocked",e=>n(e.oldVersion,e.newVersion,e)),s.then(e=>{a&&e.addEventListener("close",()=>a()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),s}let p=["get","getKey","getAll","getAllKeys","count"],g=["put","add","delete","clear"],m=new Map;function v(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(m.get(t))return m.get(t);let n=t.replace(/FromIndex$/,""),r=t!==n,i=g.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||p.includes(n)))return;let a=async function(e,...t){let a=this.transaction(e,i?"readwrite":"readonly"),o=a.store;
1return r&&(o=o.index(t.shift())),(await Promise.all([o[n](...t),i&&a.done]))[0]};return m.set(t,a),a}u=(e=>({...e,get:(t,n,r)=>v(t,n)||e.get(t,n,r),has:(t,n)=>!!v(t,n)||e.has(t,n)}))(u)}}]);
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.