Files
kapp/2758.a4bc02211ab89441.js
T
2026-05-21 11:19:10 -03:00

1 line
47 KiB
JavaScript

(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2758],{72758:(et,ce,P)=>{P.r(ce),P.d(ce,{FirebaseAnalyticsWeb:()=>pe});var y=P(15861),I=P(47423),U=P(13847),k=P(87916),L=P(69991),ne=P(63272);P(9329);const W="analytics",z="firebase_id",l="origin",E="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",O="https://www.googletagmanager.com/gtag/js",A=new k.Yd("@firebase/analytics"),x=new L.LL("analytics","Analytics",{"already-exists":"A Firebase Analytics instance with the appId {$id} already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-initialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invalid-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."});function me(e){if(!e.startsWith(O)){const t=x.create("invalid-gtag-resource",{gtagURL:e});return A.warn(t.message),""}return e}function M(e){return Promise.all(e.map(t=>t.catch(n=>n)))}function Ae(e,t){const n=function J(e,t){let n;return window.trustedTypes&&(n=window.trustedTypes.createPolicy(e,t)),n}("firebase-js-sdk-policy",{createScriptURL:me}),s=document.createElement("script"),r=`${O}?l=${e}&id=${t}`;s.src=n?n?.createScriptURL(r):r,s.async=!0,document.head.appendChild(s)}function xe(e,t,n,s,r,u){return Ce.apply(this,arguments)}function Ce(){return(Ce=(0,y.Z)(function*(e,t,n,s,r,u){const m=s[r];try{if(m)yield t[m];else{const w=(yield M(n)).find(i=>i.measurementId===r);w&&(yield t[w.appId])}}catch(v){A.error(v)}e("config",r,u)})).apply(this,arguments)}function se(e,t,n,s,r){return oe.apply(this,arguments)}function oe(){return(oe=(0,y.Z)(function*(e,t,n,s,r){try{let u=[];if(r&&r.send_to){let m=r.send_to;Array.isArray(m)||(m=[m]);const v=yield M(n);for(const w of m){const i=v.find(c=>c.measurementId===w),o=i&&t[i.appId];if(!o){u=[];break}u.push(o)}}0===u.length&&(u=Object.values(t)),yield Promise.all(u),e("event",s,r||{})}catch(u){A.error(u)}})).apply(this,arguments)}function S(e){const t=window.document.getElementsByTagName("script");for(const n of Object.values(t))if(n.src&&n.src.includes(O)&&n.src.includes(e))return n;return null}const $=new class Z{constructor(t={},n=1e3){this.throttleMetadata=t,this.intervalMillis=n}getThrottleMetadata(t){return this.throttleMetadata[t]}setThrottleMetadata(t,n){this.throttleMetadata[t]=n}deleteThrottleMetadata(t){delete this.throttleMetadata[t]}};function ae(e){return new Headers({Accept:"application/json","x-goog-api-key":e})}function F(e){return re.apply(this,arguments)}function re(){return(re=(0,y.Z)(function*(e){var t;const{appId:n,apiKey:s}=e,r={method:"GET",headers:ae(s)},u=E.replace("{app-id}",n),m=yield fetch(u,r);if(200!==m.status&&304!==m.status){let v="";try{const w=yield m.json();null!==(t=w.error)&&void 0!==t&&t.message&&(v=w.error.message)}catch{}throw x.create("config-fetch-failed",{httpStatus:m.status,responseMessage:v})}return m.json()})).apply(this,arguments)}function K(e){return ge.apply(this,arguments)}function ge(){return(ge=(0,y.Z)(function*(e,t=$,n){const{appId:s,apiKey:r,measurementId:u}=e.options;if(!s)throw x.create("no-app-id");if(!r){if(u)return{measurementId:u,appId:s};throw x.create("no-api-key")}const m=t.getThrottleMetadata(s)||{backoffCount:0,throttleEndTimeMillis:Date.now()},v=new Re;return setTimeout((0,y.Z)(function*(){v.abort()}),void 0!==n?n:6e4),_e({appId:s,apiKey:r,measurementId:u},m,v,t)})).apply(this,arguments)}function _e(e,t,n){return He.apply(this,arguments)}function He(){return(He=(0,y.Z)(function*(e,{throttleEndTimeMillis:t,backoffCount:n},s,r=$){var u;const{appId:m,measurementId:v}=e;try{yield le(s,t)}catch(w){if(v)return A.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${v} provided in the "measurementId" field in the local Firebase config. [${w?.message}]`),{appId:m,measurementId:v};throw w}try{const w=yield F(e);return r.deleteThrottleMetadata(m),w}catch(w){const i=w;if(!Se(i)){if(r.deleteThrottleMetadata(m),v)return A.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${v} provided in the "measurementId" field in the local Firebase config. [${i?.message}]`),{appId:m,measurementId:v};throw w}const o=503===Number(null===(u=i?.customData)||void 0===u?void 0:u.httpStatus)?(0,L.$s)(n,r.intervalMillis,30):(0,L.$s)(n,r.intervalMillis),c={throttleEndTimeMillis:Date.now()+o,backoffCount:n+1};return r.setThrottleMetadata(m,c),A.debug(`Calling attemptFetch again in ${o} millis`),_e(e,c,s,r)}})).apply(this,arguments)}function le(e,t){return new Promise((n,s)=>{const r=Math.max(t-Date.now(),0),u=setTimeout(n,r);e.addEventListener(()=>{clearTimeout(u),s(x.create("fetch-throttle",{throttleEndTimeMillis:t}))})})}function Se(e){if(!(e instanceof L.ZR&&e.customData))return!1;const t=Number(e.customData.httpStatus);return 429===t||500===t||503===t||504===t}class Re{constructor(){this.listeners=[]}addEventListener(t){this.listeners.push(t)}abort(){this.listeners.forEach(t=>t())}}let ie,De;function ye(){return(ye=(0,y.Z)(function*(e,t,n,s,r){if(r&&r.global)e("event",n,s);else{const u=yield t;e("event",n,Object.assign(Object.assign({},s),{send_to:u}))}})).apply(this,arguments)}function Pe(){return(Pe=(0,y.Z)(function*(e,t,n,s){if(s&&s.global)return e("set",{user_id:n}),Promise.resolve();e("config",yield t,{update:!0,user_id:n})})).apply(this,arguments)}function be(){return(be=(0,y.Z)(function*(e,t,n,s){if(s&&s.global){const r={};for(const u of Object.keys(n))r[`user_properties.${u}`]=n[u];return e("set",r),Promise.resolve()}e("config",yield t,{update:!0,user_properties:n})})).apply(this,arguments)}function de(){return(de=(0,y.Z)(function*(e,t){const n=yield e;window[`ga-disable-${n}`]=!t})).apply(this,arguments)}function Fe(e){De=e}function Ie(e){ie=e}function nt(){return Je.apply(this,arguments)}function Je(){return(Je=(0,y.Z)(function*(){if(!(0,L.hl)())return A.warn(x.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{yield(0,L.eu)()}catch(e){return A.warn(x.create("indexeddb-unavailable",{errorInfo:e?.toString()}).message),!1}return!0})).apply(this,arguments)}function Ee(){return(Ee=(0,y.Z)(function*(e,t,n,s,r,u,m){var v;const w=K(e);w.then(C=>{n[C.measurementId]=C.appId,e.options.measurementId&&C.measurementId!==e.options.measurementId&&A.warn(`The measurement ID in the local Firebase config (${e.options.measurementId}) does not match the measurement ID fetched from the server (${C.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(C=>A.error(C)),t.push(w);const i=nt().then(C=>{if(C)return s.getId()}),[o,c]=yield Promise.all([w,i]);S(u)||Ae(u,o.measurementId),De&&(r("consent","default",De),Fe(void 0)),r("js",new Date);const d=null!==(v=m?.config)&&void 0!==v?v:{};return d[l]="firebase",d.update=!0,null!=c&&(d[z]=c),r("config",o.measurementId,d),ie&&(r("set",ie),Ie(void 0)),o.measurementId})).apply(this,arguments)}class Me{constructor(t){this.app=t}_delete(){return delete X[this.app.options.appId],Promise.resolve()}}let X={},Xe=[];const ze={};let Oe,Y,Te="dataLayer",Ne=!1;function Be(e,t,n){!function Ye(){const e=[];if((0,L.ru)()&&e.push("This is a browser extension environment."),(0,L.zI)()||e.push("Cookies are not available."),e.length>0){const t=e.map((s,r)=>`(${r+1}) ${s}`).join(" "),n=x.create("invalid-analytics-context",{errorInfo:t});A.warn(n.message)}}();const s=e.options.appId;if(!s)throw x.create("no-app-id");if(!e.options.apiKey){if(!e.options.measurementId)throw x.create("no-api-key");A.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${e.options.measurementId} provided in the "measurementId" field in the local Firebase config.`)}if(null!=X[s])throw x.create("already-exists",{id:s});if(!Ne){!function $e(e){let t=[];Array.isArray(window[e])?t=window[e]:window[e]=t}(Te);const{wrappedGtag:u,gtagCore:m}=function b(e,t,n,s,r){let u=function(...m){window[s].push(arguments)};return window[r]&&"function"==typeof window[r]&&(u=window[r]),window[r]=function g(e,t,n,s){function u(){return(u=(0,y.Z)(function*(m,...v){try{if("event"===m){const[w,i]=v;yield se(e,t,n,w,i)}else if("config"===m){const[w,i]=v;yield xe(e,t,n,s,w,i)}else if("consent"===m){const[w,i]=v;e("consent",w,i)}else if("get"===m){const[w,i,o]=v;e("get",w,i,o)}else if("set"===m){const[w]=v;e("set",w)}else e(m,...v)}catch(w){A.error(w)}})).apply(this,arguments)}return function r(m){return u.apply(this,arguments)}}(u,e,t,n),{gtagCore:u,wrappedGtag:window[r]}}(X,Xe,ze,Te,"gtag");Y=u,Oe=m,Ne=!0}return X[s]=function rt(e,t,n,s,r,u,m){return Ee.apply(this,arguments)}(e,Xe,ze,t,Oe,Te,n),new Me(e)}function he(e=(0,U.Mq)()){e=(0,L.m9)(e);const t=(0,U.qX)(e,W);return t.isInitialized()?t.getImmediate():function it(e,t={}){const n=(0,U.qX)(e,W);if(n.isInitialized()){const r=n.getImmediate();if((0,L.vZ)(t,n.getOptions()))return r;throw x.create("already-initialized")}return n.initialize({options:t})}(e)}function a(e,t,n,s){e=(0,L.m9)(e),function tt(e,t,n,s,r){return ye.apply(this,arguments)}(Y,X[e.app.options.appId],t,n,s).catch(r=>A.error(r))}const _="@firebase/analytics",D="0.10.17";!function T(){(0,U.Xd)(new ne.wA(W,(t,{options:n})=>Be(t.getProvider("app").getImmediate(),t.getProvider("installations-internal").getImmediate(),n),"PUBLIC")),(0,U.Xd)(new ne.wA("analytics-internal",function e(t){try{const n=t.getProvider(W).getImmediate();return{logEvent:(s,r,u)=>a(n,s,r,u)}}catch(n){throw x.create("interop-component-reg-failed",{reason:n})}},"PRIVATE")),(0,U.KN)(_,D),(0,U.KN)(_,D,"esm2017")}();var R=(()=>{return(e=R||(R={})).AdPersonalization="AD_PERSONALIZATION",e.AdStorage="AD_STORAGE",e.AdUserData="AD_USER_DATA",e.AnalyticsStorage="ANALYTICS_STORAGE",e.FunctionalityStorage="FUNCTIONALITY_STORAGE",e.PersonalizationStorage="PERSONALIZATION_STORAGE",R;var e})(),j=(()=>{return(e=j||(j={})).Granted="GRANTED",e.Denied="DENIED",j;var e})();class pe extends I.Uw{getAppInstanceId(){var t=this;return(0,y.Z)(function*(){throw t.unimplemented("Not implemented on web.")})()}setConsent(t){return(0,y.Z)(function*(){const n=t.status===j.Granted?"granted":"denied",s={};switch(t.type){case R.AdPersonalization:s.ad_personalization=n;break;case R.AdStorage:s.ad_storage=n;break;case R.AdUserData:s.ad_user_data=n;break;case R.AnalyticsStorage:s.analytics_storage=n;break;case R.FunctionalityStorage:s.functionality_storage=n;break;case R.PersonalizationStorage:s.personalization_storage=n}!function f(e){Y?Y("consent","update",e):Fe(e)}(s)})()}setUserId(t){return(0,y.Z)(function*(){!function Qe(e,t,n){e=(0,L.m9)(e),function ue(e,t,n,s){return Pe.apply(this,arguments)}(Y,X[e.app.options.appId],t,n).catch(s=>A.error(s))}(he(),t.userId)})()}setUserProperty(t){return(0,y.Z)(function*(){!function ot(e,t,n){e=(0,L.m9)(e),function Ue(e,t,n,s){return be.apply(this,arguments)}(Y,X[e.app.options.appId],t,n).catch(s=>A.error(s))}(he(),{[t.key]:t.value})})()}setCurrentScreen(t){return(0,y.Z)(function*(){a(he(),"screen_view",{firebase_screen:t.screenName||void 0,firebase_screen_class:t.screenClassOverride||void 0})})()}logEvent(t){return(0,y.Z)(function*(){a(he(),t.name,t.params)})()}setSessionTimeoutDuration(t){var n=this;return(0,y.Z)(function*(){throw n.unimplemented("Not implemented on web.")})()}setEnabled(t){return(0,y.Z)(function*(){!function Ge(e,t){e=(0,L.m9)(e),function ke(e,t){return de.apply(this,arguments)}(X[e.app.options.appId],t).catch(n=>A.error(n))}(he(),t.enabled)})()}isEnabled(){return(0,y.Z)(function*(){return{enabled:!0===window["ga-disable-analyticsId"]}})()}resetAnalyticsData(){var t=this;return(0,y.Z)(function*(){throw t.unimplemented("Not implemented on web.")})()}initiateOnDeviceConversionMeasurementWithEmailAddress(t){var n=this;return(0,y.Z)(function*(){throw n.unimplemented("Not implemented on web.")})()}initiateOnDeviceConversionMeasurementWithPhoneNumber(t){var n=this;return(0,y.Z)(function*(){throw n.unimplemented("Not implemented on web.")})()}initiateOnDeviceConversionMeasurementWithHashedEmailAddress(t){var n=this;return(0,y.Z)(function*(){throw n.unimplemented("Not implemented on web.")})()}initiateOnDeviceConversionMeasurementWithHashedPhoneNumber(t){var n=this;return(0,y.Z)(function*(){throw n.unimplemented("Not implemented on web.")})()}}},69991:(et,ce,P)=>{P.d(ce,{BH:()=>se,LL:()=>ve,ZR:()=>H,zI:()=>Ue,L:()=>l,$s:()=>T,vZ:()=>Te,aH:()=>xe,m9:()=>pe,ru:()=>le,hl:()=>ue,eu:()=>Pe});const L=function(e){const t=[];let n=0;for(let s=0;s<e.length;s++){let r=e.charCodeAt(s);r<128?t[n++]=r:r<2048?(t[n++]=r>>6|192,t[n++]=63&r|128):55296==(64512&r)&&s+1<e.length&&56320==(64512&e.charCodeAt(s+1))?(r=65536+((1023&r)<<10)+(1023&e.charCodeAt(++s)),t[n++]=r>>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=63&r|128):(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=63&r|128)}return t},q={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_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,s=[];for(let r=0;r<e.length;r+=3){const u=e[r],m=r+1<e.length,v=m?e[r+1]:0,w=r+2<e.length,i=w?e[r+2]:0;let d=(15&v)<<2|i>>6,C=63&i;w||(C=64,m||(d=64)),s.push(n[u>>2],n[(3&u)<<4|v>>4],n[d],n[C])}return s.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(L(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let n=0,s=0;for(;n<e.length;){const r=e[n++];if(r<128)t[s++]=String.fromCharCode(r);else if(r>191&&r<224){const u=e[n++];t[s++]=String.fromCharCode((31&r)<<6|63&u)}else if(r>239&&r<365){const w=((7&r)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[s++]=String.fromCharCode(55296+(w>>10)),t[s++]=String.fromCharCode(56320+(1023&w))}else{const u=e[n++],m=e[n++];t[s++]=String.fromCharCode((15&r)<<12|(63&u)<<6|63&m)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,s=[];for(let r=0;r<e.length;){const u=n[e.charAt(r++)],v=r<e.length?n[e.charAt(r)]:0;++r;const i=r<e.length?n[e.charAt(r)]:64;++r;const c=r<e.length?n[e.charAt(r)]:64;if(++r,null==u||null==v||null==i||null==c)throw new W;s.push(u<<2|v>>4),64!==i&&(s.push(v<<4&240|i>>2),64!==c&&s.push(i<<6&192|c))}return s},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 W extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const l=function(e){return function(e){const t=L(e);return q.encodeByteArray(t,!0)}(e).replace(/\./g,"")},J=()=>{try{return function G(){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 e=process.env.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0})()||(()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&function(e){try{return q.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null}(e[1]);return t&&JSON.parse(t)})()}catch(e){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`)}},xe=()=>{var e;return null===(e=J())||void 0===e?void 0:e.config};class se{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,s)=>{n?this.reject(n):this.resolve(s),"function"==typeof t&&(this.promise.catch(()=>{}),1===t.length?t(n):t(n,s))}}}function le(){const e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id}function ue(){try{return"object"==typeof indexedDB}catch{return!1}}function Pe(){return new Promise((e,t)=>{try{let n=!0;const s="validate-browser-context-for-indexeddb-analytics-module",r=self.indexedDB.open(s);r.onsuccess=()=>{r.result.close(),n||self.indexedDB.deleteDatabase(s),e(!0)},r.onupgradeneeded=()=>{n=!1},r.onerror=()=>{var u;t((null===(u=r.error)||void 0===u?void 0:u.message)||"")}}catch(n){t(n)}})}function Ue(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}class H extends Error{constructor(t,n,s){super(n),this.code=t,this.customData=s,this.name="FirebaseError",Object.setPrototypeOf(this,H.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ve.prototype.create)}}class ve{constructor(t,n,s){this.service=t,this.serviceName=n,this.errors=s}create(t,...n){const s=n[0]||{},r=`${this.service}/${t}`,u=this.errors[t],m=u?function ke(e,t){return e.replace(de,(n,s)=>{const r=t[s];return null!=r?String(r):`<${s}?>`})}(u,s):"Error";return new H(r,`${this.serviceName}: ${m} (${r}).`,s)}}const de=/\{\$([^}]+)}/g;function Te(e,t){if(e===t)return!0;const n=Object.keys(e),s=Object.keys(t);for(const r of n){if(!s.includes(r))return!1;const u=e[r],m=t[r];if(fe(u)&&fe(m)){if(!Te(u,m))return!1}else if(u!==m)return!1}for(const r of s)if(!n.includes(r))return!1;return!0}function fe(e){return null!==e&&"object"==typeof e}function T(e,t=1e3,n=2){const s=t*Math.pow(n,e),r=Math.round(.5*s*(Math.random()-.5)*2);return Math.min(144e5,s+r)}function pe(e){return e&&e._delegate?e._delegate:e}},13847:(et,ce,P)=>{P.d(ce,{KN:()=>Me,Mq:()=>nt,Xd:()=>ye,qX:()=>Ke});var y=P(15861),I=P(63272),U=P(87916),k=P(69991),L=P(98766);class ne{constructor(a){this.container=a}getPlatformInfoString(){return this.container.getProviders().map(f=>{if(function q(p){return"VERSION"===p.getComponent()?.type}(f)){const _=f.getImmediate();return`${_.library}/${_.version}`}return null}).filter(f=>f).join(" ")}}const W="@firebase/app",z="0.13.2",l=new U.Yd("@firebase/app"),_e="[DEFAULT]",He={[W]:"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"},le=new Map,Se=new Map,Re=new Map;function ie(p,a){try{p.container.addComponent(a)}catch(f){l.debug(`Component ${a.name} failed to register with FirebaseApp ${p.name}`,f)}}function ye(p){const a=p.name;if(Re.has(a))return l.debug(`There were multiple attempts to register component ${a}.`),!1;Re.set(a,p);for(const f of le.values())ie(f,p);for(const f of Se.values())ie(f,p);return!0}function Ke(p,a){const f=p.container.getProvider("heartbeat").getImmediate({optional:!0});return f&&f.triggerHeartbeat(),p.container.getProvider(a)}const H=new k.LL("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","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 ve{constructor(a,f,_){this._isDeleted=!1,this._options=Object.assign({},a),this._config=Object.assign({},f),this._name=f.name,this._automaticDataCollectionEnabled=f.automaticDataCollectionEnabled,this._container=_,this.container.addComponent(new I.wA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(a){this.checkDestroyed(),this._automaticDataCollectionEnabled=a}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(a){this._isDeleted=a}checkDestroyed(){if(this.isDeleted)throw H.create("app-deleted",{appName:this._name})}}function nt(p=_e){const a=le.get(p);if(!a&&p===_e&&(0,k.aH)())return function Fe(p,a={}){let f=p;"object"!=typeof a&&(a={name:a});const _=Object.assign({name:_e,automaticDataCollectionEnabled:!0},a),D=_.name;if("string"!=typeof D||!D)throw H.create("bad-app-name",{appName:String(D)});if(f||(f=(0,k.aH)()),!f)throw H.create("no-options");const T=le.get(D);if(T){if((0,k.vZ)(f,T.options)&&(0,k.vZ)(_,T.config))return T;throw H.create("duplicate-app",{appName:D})}const R=new I.H0(D);for(const pe of Re.values())R.addComponent(pe);const j=new ve(f,_,R);return le.set(D,j),j}();if(!a)throw H.create("no-app",{appName:p});return a}function Me(p,a,f){var _;let D=null!==(_=He[p])&&void 0!==_?_:p;f&&(D+=`-${f}`);const T=D.match(/\s|\//),R=a.match(/\s|\//);if(T||R){const j=[`Unable to register library "${D}" with version "${a}":`];return T&&j.push(`library name "${D}" contains illegal characters (whitespace or "/")`),T&&R&&j.push("and"),R&&j.push(`version name "${a}" contains illegal characters (whitespace or "/")`),void l.warn(j.join(" "))}ye(new I.wA(`${D}-version`,()=>({library:D,version:a}),"VERSION"))}const fe="firebase-heartbeat-store";let Oe=null;function Y(){return Oe||(Oe=(0,L.X3)("firebase-heartbeat-database",1,{upgrade:(p,a)=>{if(0===a)try{p.createObjectStore(fe)}catch(f){console.warn(f)}}}).catch(p=>{throw H.create("idb-open",{originalErrorMessage:p.message})})),Oe}function je(){return(je=(0,y.Z)(function*(p){try{const f=(yield Y()).transaction(fe),_=yield f.objectStore(fe).get(he(p));return yield f.done,_}catch(a){if(a instanceof k.ZR)l.warn(a.message);else{const f=H.create("idb-get",{originalErrorMessage:a?.message});l.warn(f.message)}}})).apply(this,arguments)}function Ye(p,a){return Be.apply(this,arguments)}function Be(){return(Be=(0,y.Z)(function*(p,a){try{const _=(yield Y()).transaction(fe,"readwrite");yield _.objectStore(fe).put(a,he(p)),yield _.done}catch(f){if(f instanceof k.ZR)l.warn(f.message);else{const _=H.create("idb-set",{originalErrorMessage:f?.message});l.warn(_.message)}}})).apply(this,arguments)}function he(p){return`${p.name}!${p.options.appId}`}class we{constructor(a){this.container=a,this._heartbeatsCache=null;const f=this.container.getProvider("app").getImmediate();this._storage=new Ze(f),this._heartbeatsCachePromise=this._storage.read().then(_=>(this._heartbeatsCache=_,_))}triggerHeartbeat(){var a=this;return(0,y.Z)(function*(){var f,_;try{const T=a.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),R=st();if(null==(null===(f=a._heartbeatsCache)||void 0===f?void 0:f.heartbeats)&&(a._heartbeatsCache=yield a._heartbeatsCachePromise,null==(null===(_=a._heartbeatsCache)||void 0===_?void 0:_.heartbeats))||a._heartbeatsCache.lastSentHeartbeatDate===R||a._heartbeatsCache.heartbeats.some(j=>j.date===R))return;if(a._heartbeatsCache.heartbeats.push({date:R,agent:T}),a._heartbeatsCache.heartbeats.length>30){const j=function ot(p){if(0===p.length)return-1;let a=0,f=p[0].date;for(let _=1;_<p.length;_++)p[_].date<f&&(f=p[_].date,a=_);return a}(a._heartbeatsCache.heartbeats);a._heartbeatsCache.heartbeats.splice(j,1)}return a._storage.overwrite(a._heartbeatsCache)}catch(D){l.warn(D)}})()}getHeartbeatsHeader(){var a=this;return(0,y.Z)(function*(){var f;try{if(null===a._heartbeatsCache&&(yield a._heartbeatsCachePromise),null==(null===(f=a._heartbeatsCache)||void 0===f?void 0:f.heartbeats)||0===a._heartbeatsCache.heartbeats.length)return"";const _=st(),{heartbeatsToSend:D,unsentEntries:T}=function Ve(p,a=1024){const f=[];let _=p.slice();for(const D of p){const T=f.find(R=>R.agent===D.agent);if(T){if(T.dates.push(D.date),Qe(f)>a){T.dates.pop();break}}else if(f.push({agent:D.agent,dates:[D.date]}),Qe(f)>a){f.pop();break}_=_.slice(1)}return{heartbeatsToSend:f,unsentEntries:_}}(a._heartbeatsCache.heartbeats),R=(0,k.L)(JSON.stringify({version:2,heartbeats:D}));return a._heartbeatsCache.lastSentHeartbeatDate=_,T.length>0?(a._heartbeatsCache.heartbeats=T,yield a._storage.overwrite(a._heartbeatsCache)):(a._heartbeatsCache.heartbeats=[],a._storage.overwrite(a._heartbeatsCache)),R}catch(_){return l.warn(_),""}})()}}function st(){return(new Date).toISOString().substring(0,10)}class Ze{constructor(a){this.app=a,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,y.Z)(function*(){return!!(0,k.hl)()&&(0,k.eu)().then(()=>!0).catch(()=>!1)})()}read(){var a=this;return(0,y.Z)(function*(){if(yield a._canUseIndexedDBPromise){const _=yield function Ne(p){return je.apply(this,arguments)}(a.app);return _?.heartbeats?_:{heartbeats:[]}}return{heartbeats:[]}})()}overwrite(a){var f=this;return(0,y.Z)(function*(){var _;if(yield f._canUseIndexedDBPromise){const T=yield f.read();return Ye(f.app,{lastSentHeartbeatDate:null!==(_=a.lastSentHeartbeatDate)&&void 0!==_?_:T.lastSentHeartbeatDate,heartbeats:a.heartbeats})}})()}add(a){var f=this;return(0,y.Z)(function*(){var _;if(yield f._canUseIndexedDBPromise){const T=yield f.read();return Ye(f.app,{lastSentHeartbeatDate:null!==(_=a.lastSentHeartbeatDate)&&void 0!==_?_:T.lastSentHeartbeatDate,heartbeats:[...T.heartbeats,...a.heartbeats]})}})()}}function Qe(p){return(0,k.L)(JSON.stringify({version:2,heartbeats:p})).length}!function Ge(p){ye(new I.wA("platform-logger",a=>new ne(a),"PRIVATE")),ye(new I.wA("heartbeat",a=>new we(a),"PRIVATE")),Me(W,z,p),Me(W,z,"esm2017"),Me("fire-js","")}("")},63272:(et,ce,P)=>{P.d(ce,{H0:()=>W,wA:()=>U});var y=P(15861),I=P(69991);class U{constructor(l,h,E){this.name=l,this.instanceFactory=h,this.type=E,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(l){return this.instantiationMode=l,this}setMultipleInstances(l){return this.multipleInstances=l,this}setServiceProps(l){return this.serviceProps=l,this}setInstanceCreatedCallback(l){return this.onInstanceCreated=l,this}}const k="[DEFAULT]";class L{constructor(l,h){this.name=l,this.container=h,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(l){const h=this.normalizeInstanceIdentifier(l);if(!this.instancesDeferred.has(h)){const E=new I.BH;if(this.instancesDeferred.set(h,E),this.isInitialized(h)||this.shouldAutoInitialize())try{const O=this.getOrInitializeService({instanceIdentifier:h});O&&E.resolve(O)}catch{}}return this.instancesDeferred.get(h).promise}getImmediate(l){var h;const E=this.normalizeInstanceIdentifier(l?.identifier),O=null!==(h=l?.optional)&&void 0!==h&&h;if(!this.isInitialized(E)&&!this.shouldAutoInitialize()){if(O)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:E})}catch(A){if(O)return null;throw A}}getComponent(){return this.component}setComponent(l){if(l.name!==this.name)throw Error(`Mismatching Component ${l.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=l,this.shouldAutoInitialize()){if(function q(z){return"EAGER"===z.instantiationMode}(l))try{this.getOrInitializeService({instanceIdentifier:k})}catch{}for(const[h,E]of this.instancesDeferred.entries()){const O=this.normalizeInstanceIdentifier(h);try{const A=this.getOrInitializeService({instanceIdentifier:O});E.resolve(A)}catch{}}}}clearInstance(l=k){this.instancesDeferred.delete(l),this.instancesOptions.delete(l),this.instances.delete(l)}delete(){var l=this;return(0,y.Z)(function*(){const h=Array.from(l.instances.values());yield Promise.all([...h.filter(E=>"INTERNAL"in E).map(E=>E.INTERNAL.delete()),...h.filter(E=>"_delete"in E).map(E=>E._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(l=k){return this.instances.has(l)}getOptions(l=k){return this.instancesOptions.get(l)||{}}initialize(l={}){const{options:h={}}=l,E=this.normalizeInstanceIdentifier(l.instanceIdentifier);if(this.isInitialized(E))throw Error(`${this.name}(${E}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const O=this.getOrInitializeService({instanceIdentifier:E,options:h});for(const[A,G]of this.instancesDeferred.entries())E===this.normalizeInstanceIdentifier(A)&&G.resolve(O);return O}onInit(l,h){var E;const O=this.normalizeInstanceIdentifier(h),A=null!==(E=this.onInitCallbacks.get(O))&&void 0!==E?E:new Set;A.add(l),this.onInitCallbacks.set(O,A);const G=this.instances.get(O);return G&&l(G,O),()=>{A.delete(l)}}invokeOnInitCallbacks(l,h){const E=this.onInitCallbacks.get(h);if(E)for(const O of E)try{O(l,h)}catch{}}getOrInitializeService({instanceIdentifier:l,options:h={}}){let E=this.instances.get(l);if(!E&&this.component&&(E=this.component.instanceFactory(this.container,{instanceIdentifier:(z=l,z===k?void 0:z),options:h}),this.instances.set(l,E),this.instancesOptions.set(l,h),this.invokeOnInitCallbacks(E,l),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,l,E)}catch{}var z;return E||null}normalizeInstanceIdentifier(l=k){return this.component?this.component.multipleInstances?l:k:l}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class W{constructor(l){this.name=l,this.providers=new Map}addComponent(l){const h=this.getProvider(l.name);if(h.isComponentSet())throw new Error(`Component ${l.name} has already been registered with ${this.name}`);h.setComponent(l)}addOrOverwriteComponent(l){this.getProvider(l.name).isComponentSet()&&this.providers.delete(l.name),this.addComponent(l)}getProvider(l){if(this.providers.has(l))return this.providers.get(l);const h=new L(l,this);return this.providers.set(l,h),h}getProviders(){return Array.from(this.providers.values())}}},9329:(et,ce,P)=>{var y=P(15861),I=P(13847),U=P(63272),k=P(69991),L=P(98766);const ne="@firebase/installations",q="0.6.18",z=`w:${q}`,l="FIS_v2",x=new k.LL("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function me(i){return i instanceof k.ZR&&i.code.includes("request-failed")}function M({projectId:i}){return`https://firebaseinstallations.googleapis.com/v1/projects/${i}/installations`}function J(i){return{token:i.token,requestStatus:2,expiresIn:g(i.expiresIn),creationTime:Date.now()}}function Ae(i,o){return $e.apply(this,arguments)}function $e(){return($e=(0,y.Z)(function*(i,o){const d=(yield o.json()).error;return x.create("request-failed",{requestName:i,serverCode:d.code,serverMessage:d.message,serverStatus:d.status})})).apply(this,arguments)}function xe({apiKey:i}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":i})}function Ce(i,{refreshToken:o}){const c=xe(i);return c.append("Authorization",function b(i){return`${l} ${i}`}(o)),c}function se(i){return oe.apply(this,arguments)}function oe(){return(oe=(0,y.Z)(function*(i){const o=yield i();return o.status>=500&&o.status<600?i():o})).apply(this,arguments)}function g(i){return Number(i.replace("s","000"))}function S(i,o){return N.apply(this,arguments)}function N(){return(N=(0,y.Z)(function*({appConfig:i,heartbeatServiceProvider:o},{fid:c}){const d=M(i),C=xe(i),B=o.getImmediate({optional:!0});if(B){const te=yield B.getHeartbeatsHeader();te&&C.append("x-firebase-client",te)}const ee={method:"POST",headers:C,body:JSON.stringify({fid:c,authVersion:l,appId:i.appId,sdkVersion:z})},Le=yield se(()=>fetch(d,ee));if(Le.ok){const te=yield Le.json();return{fid:te.fid||c,registrationStatus:2,refreshToken:te.refreshToken,authToken:J(te.authToken)}}throw yield Ae("Create Installation",Le)})).apply(this,arguments)}function V(i){return new Promise(o=>{setTimeout(o,i)})}const $=/^[cdef][\w-]{21}$/;function F(){try{const i=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(i),i[0]=112+i[0]%16;const c=function re(i){return function Z(i){return btoa(String.fromCharCode(...i)).replace(/\+/g,"-").replace(/\//g,"_")}(i).substr(0,22)}(i);return $.test(c)?c:""}catch{return""}}function K(i){return`${i.appName}!${i.appId}`}const ge=new Map;function _e(i,o){const c=K(i);Se(c,o),function Re(i,o){const c=function tt(){return!ie&&"BroadcastChannel"in self&&(ie=new BroadcastChannel("[Firebase] FID Change"),ie.onmessage=i=>{Se(i.data.key,i.data.fid)}),ie}();c&&c.postMessage({key:i,fid:o}),function ye(){0===ge.size&&ie&&(ie.close(),ie=null)}()}(c,o)}function Se(i,o){const c=ge.get(i);if(c)for(const d of c)d(o)}let ie=null;const ue="firebase-installations-store";let Pe=null;function Ue(){return Pe||(Pe=(0,L.X3)("firebase-installations-database",1,{upgrade:(i,o)=>{0===o&&i.createObjectStore(ue)}})),Pe}function be(i,o){return H.apply(this,arguments)}function H(){return(H=(0,y.Z)(function*(i,o){const c=K(i),C=(yield Ue()).transaction(ue,"readwrite"),B=C.objectStore(ue),Q=yield B.get(c);return yield B.put(o,c),yield C.done,(!Q||Q.fid!==o.fid)&&_e(i,o.fid),o})).apply(this,arguments)}function ve(i){return ke.apply(this,arguments)}function ke(){return(ke=(0,y.Z)(function*(i){const o=K(i),d=(yield Ue()).transaction(ue,"readwrite");yield d.objectStore(ue).delete(o),yield d.done})).apply(this,arguments)}function de(i,o){return De.apply(this,arguments)}function De(){return(De=(0,y.Z)(function*(i,o){const c=K(i),C=(yield Ue()).transaction(ue,"readwrite"),B=C.objectStore(ue),Q=yield B.get(c),ee=o(Q);return void 0===ee?yield B.delete(c):yield B.put(ee,c),yield C.done,ee&&(!Q||Q.fid!==ee.fid)&&_e(i,ee.fid),ee})).apply(this,arguments)}function Fe(i){return Ie.apply(this,arguments)}function Ie(){return(Ie=(0,y.Z)(function*(i){let o;const c=yield de(i.appConfig,d=>{const C=nt(d),B=Je(i,C);return o=B.registrationPromise,B.installationEntry});return""===c.fid?{installationEntry:yield o}:{installationEntry:c,registrationPromise:o}})).apply(this,arguments)}function nt(i){return ze(i||{fid:F(),registrationStatus:0})}function Je(i,o){if(0===o.registrationStatus){if(!navigator.onLine)return{installationEntry:o,registrationPromise:Promise.reject(x.create("app-offline"))};const c={fid:o.fid,registrationStatus:1,registrationTime:Date.now()},d=function rt(i,o){return Ee.apply(this,arguments)}(i,c);return{installationEntry:c,registrationPromise:d}}return 1===o.registrationStatus?{installationEntry:o,registrationPromise:Me(i)}:{installationEntry:o}}function Ee(){return(Ee=(0,y.Z)(function*(i,o){try{const c=yield S(i,o);return be(i.appConfig,c)}catch(c){throw me(c)&&409===c.customData.serverCode?yield ve(i.appConfig):yield be(i.appConfig,{fid:o.fid,registrationStatus:0}),c}})).apply(this,arguments)}function Me(i){return X.apply(this,arguments)}function X(){return(X=(0,y.Z)(function*(i){let o=yield Xe(i.appConfig);for(;1===o.registrationStatus;)yield V(100),o=yield Xe(i.appConfig);if(0===o.registrationStatus){const{installationEntry:c,registrationPromise:d}=yield Fe(i);return d||c}return o})).apply(this,arguments)}function Xe(i){return de(i,o=>{if(!o)throw x.create("installation-not-found");return ze(o)})}function ze(i){return function Te(i){return 1===i.registrationStatus&&i.registrationTime+1e4<Date.now()}(i)?{fid:i.fid,registrationStatus:0}:i}function fe(i,o){return Oe.apply(this,arguments)}function Oe(){return(Oe=(0,y.Z)(function*({appConfig:i,heartbeatServiceProvider:o},c){const d=Y(i,c),C=Ce(i,c),B=o.getImmediate({optional:!0});if(B){const te=yield B.getHeartbeatsHeader();te&&C.append("x-firebase-client",te)}const ee={method:"POST",headers:C,body:JSON.stringify({installation:{sdkVersion:z,appId:i.appId}})},Le=yield se(()=>fetch(d,ee));if(Le.ok)return J(yield Le.json());throw yield Ae("Generate Auth Token",Le)})).apply(this,arguments)}function Y(i,{fid:o}){return`${M(i)}/${o}/authTokens:generate`}function Ne(i){return je.apply(this,arguments)}function je(){return(je=(0,y.Z)(function*(i,o=!1){let c;const d=yield de(i.appConfig,B=>{if(!we(B))throw x.create("not-registered");const Q=B.authToken;if(!o&&st(Q))return B;if(1===Q.requestStatus)return c=Ye(i,o),B;{if(!navigator.onLine)throw x.create("app-offline");const ee=Ze(B);return c=it(i,ee),ee}});return c?yield c:d.authToken})).apply(this,arguments)}function Ye(i,o){return Be.apply(this,arguments)}function Be(){return(Be=(0,y.Z)(function*(i,o){let c=yield he(i.appConfig);for(;1===c.authToken.requestStatus;)yield V(100),c=yield he(i.appConfig);const d=c.authToken;return 0===d.requestStatus?Ne(i,o):d})).apply(this,arguments)}function he(i){return de(i,o=>{if(!we(o))throw x.create("not-registered");return function Qe(i){return 1===i.requestStatus&&i.requestTime+1e4<Date.now()}(o.authToken)?Object.assign(Object.assign({},o),{authToken:{requestStatus:0}}):o})}function it(i,o){return We.apply(this,arguments)}function We(){return(We=(0,y.Z)(function*(i,o){try{const c=yield fe(i,o),d=Object.assign(Object.assign({},o),{authToken:c});return yield be(i.appConfig,d),c}catch(c){if(!me(c)||401!==c.customData.serverCode&&404!==c.customData.serverCode){const d=Object.assign(Object.assign({},o),{authToken:{requestStatus:0}});yield be(i.appConfig,d)}else yield ve(i.appConfig);throw c}})).apply(this,arguments)}function we(i){return void 0!==i&&2===i.registrationStatus}function st(i){return 2===i.requestStatus&&!function Ve(i){const o=Date.now();return o<i.creationTime||i.creationTime+i.expiresIn<o+36e5}(i)}function Ze(i){const o={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},i),{authToken:o})}function Ge(){return(Ge=(0,y.Z)(function*(i){const o=i,{installationEntry:c,registrationPromise:d}=yield Fe(o);return d?d.catch(console.error):Ne(o).catch(console.error),c.fid})).apply(this,arguments)}function a(){return(a=(0,y.Z)(function*(i,o=!1){const c=i;return yield f(c),(yield Ne(c,o)).token})).apply(this,arguments)}function f(i){return _.apply(this,arguments)}function _(){return(_=(0,y.Z)(function*(i){const{registrationPromise:o}=yield Fe(i);o&&(yield o)})).apply(this,arguments)}function s(i){return x.create("missing-app-config-values",{valueName:i})}const r="installations",m=i=>{const o=i.getProvider("app").getImmediate(),c=function n(i){if(!i||!i.options)throw s("App Configuration");if(!i.name)throw s("App Name");const o=["projectId","apiKey","appId"];for(const c of o)if(!i.options[c])throw s(c);return{appName:i.name,projectId:i.options.projectId,apiKey:i.options.apiKey,appId:i.options.appId}}(o);return{app:o,appConfig:c,heartbeatServiceProvider:(0,I.qX)(o,"heartbeat"),_delete:()=>Promise.resolve()}},v=i=>{const o=i.getProvider("app").getImmediate(),c=(0,I.qX)(o,r).getImmediate();return{getId:()=>function ot(i){return Ge.apply(this,arguments)}(c),getToken:C=>function p(i){return a.apply(this,arguments)}(c,C)}};(function w(){(0,I.Xd)(new U.wA(r,m,"PUBLIC")),(0,I.Xd)(new U.wA("installations-internal",v,"PRIVATE"))})(),(0,I.KN)(ne,q),(0,I.KN)(ne,q,"esm2017")},87916:(et,ce,P)=>{P.d(ce,{Yd:()=>q,in:()=>I});const y=[];var I=(()=>{return(l=I||(I={}))[l.DEBUG=0]="DEBUG",l[l.VERBOSE=1]="VERBOSE",l[l.INFO=2]="INFO",l[l.WARN=3]="WARN",l[l.ERROR=4]="ERROR",l[l.SILENT=5]="SILENT",I;var l})();const U={debug:I.DEBUG,verbose:I.VERBOSE,info:I.INFO,warn:I.WARN,error:I.ERROR,silent:I.SILENT},k=I.INFO,L={[I.DEBUG]:"log",[I.VERBOSE]:"log",[I.INFO]:"info",[I.WARN]:"warn",[I.ERROR]:"error"},ne=(l,h,...E)=>{if(h<l.logLevel)return;const O=(new Date).toISOString(),A=L[h];if(!A)throw new Error(`Attempted to log a message with an invalid logType (value: ${h})`);console[A](`[${O}] ${l.name}:`,...E)};class q{constructor(h){this.name=h,this._logLevel=k,this._logHandler=ne,this._userLogHandler=null,y.push(this)}get logLevel(){return this._logLevel}set logLevel(h){if(!(h in I))throw new TypeError(`Invalid value "${h}" assigned to \`logLevel\``);this._logLevel=h}setLogLevel(h){this._logLevel="string"==typeof h?U[h]:h}get logHandler(){return this._logHandler}set logHandler(h){if("function"!=typeof h)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=h}get userLogHandler(){return this._userLogHandler}set userLogHandler(h){this._userLogHandler=h}debug(...h){this._userLogHandler&&this._userLogHandler(this,I.DEBUG,...h),this._logHandler(this,I.DEBUG,...h)}log(...h){this._userLogHandler&&this._userLogHandler(this,I.VERBOSE,...h),this._logHandler(this,I.VERBOSE,...h)}info(...h){this._userLogHandler&&this._userLogHandler(this,I.INFO,...h),this._logHandler(this,I.INFO,...h)}warn(...h){this._userLogHandler&&this._userLogHandler(this,I.WARN,...h),this._logHandler(this,I.WARN,...h)}error(...h){this._userLogHandler&&this._userLogHandler(this,I.ERROR,...h),this._logHandler(this,I.ERROR,...h)}}},98766:(et,ce,P)=>{P.d(ce,{X3:()=>Ae});var y=P(15861);let U,k;const q=new WeakMap,W=new WeakMap,z=new WeakMap,l=new WeakMap,h=new WeakMap;let A={get(g,b,S){if(g instanceof IDBTransaction){if("done"===b)return W.get(g);if("objectStoreNames"===b)return g.objectStoreNames||z.get(g);if("store"===b)return S.objectStoreNames[1]?void 0:S.objectStore(S.objectStoreNames[0])}return M(g[b])},set:(g,b,S)=>(g[b]=S,!0),has:(g,b)=>g instanceof IDBTransaction&&("done"===b||"store"===b)||b in g};function me(g){return"function"==typeof g?function x(g){return g!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function ne(){return k||(k=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(g)?function(...b){return g.apply(J(this),b),M(q.get(this))}:function(...b){return M(g.apply(J(this),b))}:function(b,...S){const N=g.call(J(this),b,...S);return z.set(N,b.sort?b.sort():[b]),M(N)}}(g):(g instanceof IDBTransaction&&function O(g){if(W.has(g))return;const b=new Promise((S,N)=>{const V=()=>{g.removeEventListener("complete",Z),g.removeEventListener("error",$),g.removeEventListener("abort",$)},Z=()=>{S(),V()},$=()=>{N(g.error||new DOMException("AbortError","AbortError")),V()};g.addEventListener("complete",Z),g.addEventListener("error",$),g.addEventListener("abort",$)});W.set(g,b)}(g),((g,b)=>b.some(S=>g instanceof S))(g,function L(){return U||(U=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(g,A):g)}function M(g){if(g instanceof IDBRequest)return function E(g){const b=new Promise((S,N)=>{const V=()=>{g.removeEventListener("success",Z),g.removeEventListener("error",$)},Z=()=>{S(M(g.result)),V()},$=()=>{N(g.error),V()};g.addEventListener("success",Z),g.addEventListener("error",$)});return b.then(S=>{S instanceof IDBCursor&&q.set(S,g)}).catch(()=>{}),h.set(b,g),b}(g);if(l.has(g))return l.get(g);const b=me(g);return b!==g&&(l.set(g,b),h.set(b,g)),b}const J=g=>h.get(g);function Ae(g,b,{blocked:S,upgrade:N,blocking:V,terminated:Z}={}){const $=indexedDB.open(g,b),ae=M($);return N&&$.addEventListener("upgradeneeded",F=>{N(M($.result),F.oldVersion,F.newVersion,M($.transaction),F)}),S&&$.addEventListener("blocked",F=>S(F.oldVersion,F.newVersion,F)),ae.then(F=>{Z&&F.addEventListener("close",()=>Z()),V&&F.addEventListener("versionchange",re=>V(re.oldVersion,re.newVersion,re))}).catch(()=>{}),ae}const xe=["get","getKey","getAll","getAllKeys","count"],Ce=["put","add","delete","clear"],se=new Map;function oe(g,b){if(!(g instanceof IDBDatabase)||b in g||"string"!=typeof b)return;if(se.get(b))return se.get(b);const S=b.replace(/FromIndex$/,""),N=b!==S,V=Ce.includes(S);if(!(S in(N?IDBIndex:IDBObjectStore).prototype)||!V&&!xe.includes(S))return;const Z=function(){var $=(0,y.Z)(function*(ae,...F){const re=this.transaction(ae,V?"readwrite":"readonly");let K=re.store;return N&&(K=K.index(F.shift())),(yield Promise.all([K[S](...F),V&&re.done]))[0]});return function(F){return $.apply(this,arguments)}}();return se.set(b,Z),Z}!function G(g){A=g(A)}(g=>({...g,get:(b,S,N)=>oe(b,S)||g.get(b,S,N),has:(b,S)=>!!oe(b,S)||g.has(b,S)}))}}]);