"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9261],{99261:function(e,t,i){let a,n,r,s;var o=i(32238),l=i(53333),c=i(74444),d=i(8463);i(37578);/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let h="analytics",u="https://www.googletagmanager.com/gtag/js",p=new l.Yd("@firebase/analytics"),f=new c.LL("analytics","Analytics",{"already-exists":"A Firebase Analytics instance with the appId {$id}  already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-intialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","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}."});/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function createGtagTrustedTypesScriptURL(e){if(!e.startsWith(u)){let t=f.create("invalid-gtag-resource",{gtagURL:e});return p.warn(t.message),""}return e}function promiseAllSettled(e){return Promise.all(e.map(e=>e.catch(e=>e)))}async function gtagOnConfig(e,t,i,a,n,r){let s=a[n];try{if(s)await t[s];else{let e=await promiseAllSettled(i),a=e.find(e=>e.measurementId===n);a&&await t[a.appId]}}catch(e){p.error(e)}e("config",n,r)}async function gtagOnEvent(e,t,i,a,n){try{let r=[];if(n&&n.send_to){let e=n.send_to;Array.isArray(e)||(e=[e]);let a=await promiseAllSettled(i);for(let i of e){let e=a.find(e=>e.measurementId===i),n=e&&t[e.appId];if(n)r.push(n);else{r=[];break}}}0===r.length&&(r=Object.values(t)),await Promise.all(r),e("event",a,n||{})}catch(e){p.error(e)}}let m=new class{constructor(e={},t=1e3){this.throttleMetadata=e,this.intervalMillis=t}getThrottleMetadata(e){return this.throttleMetadata[e]}setThrottleMetadata(e,t){this.throttleMetadata[e]=t}deleteThrottleMetadata(e){delete this.throttleMetadata[e]}};async function fetchDynamicConfig(e){var t;let{appId:i,apiKey:a}=e,n={method:"GET",headers:new Headers({Accept:"application/json","x-goog-api-key":a})},r="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig".replace("{app-id}",i),s=await fetch(r,n);if(200!==s.status&&304!==s.status){let e="";try{let i=await s.json();(null===(t=i.error)||void 0===t?void 0:t.message)&&(e=i.error.message)}catch(e){}throw f.create("config-fetch-failed",{httpStatus:s.status,responseMessage:e})}return s.json()}async function fetchDynamicConfigWithRetry(e,t=m,i){let{appId:a,apiKey:n,measurementId:r}=e.options;if(!a)throw f.create("no-app-id");if(!n){if(r)return{measurementId:r,appId:a};throw f.create("no-api-key")}let s=t.getThrottleMetadata(a)||{backoffCount:0,throttleEndTimeMillis:Date.now()},o=new AnalyticsAbortSignal;return setTimeout(async()=>{o.abort()},void 0!==i?i:6e4),attemptFetchDynamicConfigWithRetry({appId:a,apiKey:n,measurementId:r},s,o,t)}async function attemptFetchDynamicConfigWithRetry(e,{throttleEndTimeMillis:t,backoffCount:i},a,n=m){var r;let{appId:s,measurementId:o}=e;try{await new Promise((e,i)=>{let n=Math.max(t-Date.now(),0),r=setTimeout(e,n);a.addEventListener(()=>{clearTimeout(r),i(f.create("fetch-throttle",{throttleEndTimeMillis:t}))})})}catch(e){if(o)return p.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${o} provided in the "measurementId" field in the local Firebase config. [${null==e?void 0:e.message}]`),{appId:s,measurementId:o};throw e}try{let t=await fetchDynamicConfig(e);return n.deleteThrottleMetadata(s),t}catch(d){if(!function(e){if(!(e instanceof c.ZR)||!e.customData)return!1;let t=Number(e.customData.httpStatus);return 429===t||500===t||503===t||504===t}(d)){if(n.deleteThrottleMetadata(s),o)return p.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${o} provided in the "measurementId" field in the local Firebase config. [${null==d?void 0:d.message}]`),{appId:s,measurementId:o};throw d}let t=503===Number(null===(r=null==d?void 0:d.customData)||void 0===r?void 0:r.httpStatus)?(0,c.$s)(i,n.intervalMillis,30):(0,c.$s)(i,n.intervalMillis),l={throttleEndTimeMillis:Date.now()+t,backoffCount:i+1};return n.setThrottleMetadata(s,l),p.debug(`Calling attemptFetch again in ${t} millis`),attemptFetchDynamicConfigWithRetry(e,l,a,n)}}let AnalyticsAbortSignal=class AnalyticsAbortSignal{constructor(){this.listeners=[]}addEventListener(e){this.listeners.push(e)}abort(){this.listeners.forEach(e=>e())}};async function logEvent$1(e,t,i,a,n){if(n&&n.global){e("event",i,a);return}{let n=await t,r=Object.assign(Object.assign({},a),{send_to:n});e("event",i,r)}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function validateIndexedDB(){if(!(0,c.hl)())return p.warn(f.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{await (0,c.eu)()}catch(e){return p.warn(f.create("indexeddb-unavailable",{errorInfo:null==e?void 0:e.toString()}).message),!1}return!0}async function _initializeAnalytics(e,t,i,r,s,o,l){var c;let d=fetchDynamicConfigWithRetry(e);d.then(t=>{i[t.measurementId]=t.appId,e.options.measurementId&&t.measurementId!==e.options.measurementId&&p.warn(`The measurement ID in the local Firebase config (${e.options.measurementId}) does not match the measurement ID fetched from the server (${t.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(e=>p.error(e)),t.push(d);let h=validateIndexedDB().then(e=>e?r.getId():void 0),[f,m]=await Promise.all([d,h]);!function(e){let t=window.document.getElementsByTagName("script");for(let i of Object.values(t))if(i.src&&i.src.includes(u)&&i.src.includes(e))return i;return null}(o)&&function(e,t){let i;let a=(window.trustedTypes&&(i=window.trustedTypes.createPolicy("firebase-js-sdk-policy",{createScriptURL:createGtagTrustedTypesScriptURL})),i),n=document.createElement("script"),r=`${u}?l=${e}&id=${t}`;n.src=a?null==a?void 0:a.createScriptURL(r):r,n.async=!0,document.head.appendChild(n)}(o,f.measurementId),n&&(s("consent","default",n),n=void 0),s("js",new Date);let g=null!==(c=null==l?void 0:l.config)&&void 0!==c?c:{};return g.origin="firebase",g.update=!0,null!=m&&(g.firebase_id=m),s("config",f.measurementId,g),a&&(s("set",a),a=void 0),f.measurementId}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let AnalyticsService=class AnalyticsService{constructor(e){this.app=e}_delete(){return delete g[this.app.options.appId],Promise.resolve()}};let g={},y=[],w={},v="dataLayer",b=!1,I="@firebase/analytics",T="0.10.2";(0,o.Xd)(new d.wA(h,(e,{options:t})=>{let i=e.getProvider("app").getImmediate(),a=e.getProvider("installations-internal").getImmediate();return function(e,t,i){!function(){let e=[];if((0,c.ru)()&&e.push("This is a browser extension environment."),(0,c.zI)()||e.push("Cookies are not available."),e.length>0){let t=e.map((e,t)=>`(${t+1}) ${e}`).join(" "),i=f.create("invalid-analytics-context",{errorInfo:t});p.warn(i.message)}}();let a=e.options.appId;if(!a)throw f.create("no-app-id");if(!e.options.apiKey){if(e.options.measurementId)p.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.`);else throw f.create("no-api-key")}if(null!=g[a])throw f.create("already-exists",{id:a});if(!b){var n,o;let e,t;e=[],Array.isArray(window[v])?e=window[v]:window[v]=e;let{wrappedGtag:i,gtagCore:a}=(n="gtag",t=function(...e){window[v].push(arguments)},window[n]&&"function"==typeof window[n]&&(t=window[n]),window[n]=(o=t,async function(e,...t){try{if("event"===e){let[e,i]=t;await gtagOnEvent(o,g,y,e,i)}else if("config"===e){let[e,i]=t;await gtagOnConfig(o,g,y,w,e,i)}else if("consent"===e){let[e]=t;o("consent","update",e)}else if("get"===e){let[e,i,a]=t;o("get",e,i,a)}else if("set"===e){let[e]=t;o("set",e)}else o(e,...t)}catch(e){p.error(e)}}),{gtagCore:t,wrappedGtag:window[n]});s=i,r=a,b=!0}g[a]=_initializeAnalytics(e,y,w,t,r,v,i);let l=new AnalyticsService(e);return l}(i,a,t)},"PUBLIC")),(0,o.Xd)(new d.wA("analytics-internal",function(e){try{let t=e.getProvider(h).getImmediate();return{logEvent:(e,i,a)=>{var n;return n=t,void(n=(0,c.m9)(n),logEvent$1(s,g[n.app.options.appId],e,i,a).catch(e=>p.error(e)))}}}catch(e){throw f.create("interop-component-reg-failed",{reason:e})}},"PRIVATE")),(0,o.KN)(I,T),(0,o.KN)(I,T,"esm2017")}}]);