vendor: 6,389 bytes, line 1
1import{A as e,C as t,E as n,G as r,H as i,N as a,R as o,S as s,T as c,X as l,_ as u,b as d,j as f,lt as ee,q as te,y as p}from"./vendor-firebase-auth-DAsoPGEH.js";var ne=`@firebase/installations`,m=`0.6.24`,h=1e4,re=`w:${m}`,ie=`FIS_v2`,ae=`https://firebaseinstallations.googleapis.com/v1`,oe=36e5,g=new e(`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 _(e){return e instanceof f&&e.code.includes(`request-failed`)}function v({projectId:e}){return`${ae}/projects/${e}/installations`}function y(e){return{token:e.token,requestStatus:2,expiresIn:ce(e.expiresIn),creationTime:Date.now()}}async function b(e,t){let n=(await t.json()).error;return g.create(`request-failed`,{requestName:e,serverCode:n.code,serverMessage:n.message,serverStatus:n.status})}function x({apiKey:e}){return new Headers({"Content-Type":`application/json`,Accept:`application/json`,"x-goog-api-key":e})}function se(e,{refreshToken:t}){let n=x(e);return n.append(`Authorization`,le(t)),n}async function S(e){let t=await e();return t.status>=500&&t.status<600?e():t}function ce(e){return Number(e.replace(`s`,`000`))}function le(e){return`${ie} ${e}`}async function ue({appConfig:e,heartbeatServiceProvider:t},{fid:n}){let r=v(e),i=x(e),a=t.getImmediate({optional:!0});if(a){let e=await a.getHeartbeatsHeader();e&&i.append(`x-firebase-client`,e)}let o={fid:n,authVersion:ie,appId:e.appId,sdkVersion:re},s={method:`POST`,headers:i,body:JSON.stringify(o)},c=await S(()=>fetch(r,s));if(c.ok){let e=await c.json();return{fid:e.fid||n,registrationStatus:2,refreshToken:e.refreshToken,authToken:y(e.authToken)}}throw await b(`Create Installation`,c)}function C(e){return new Promise(t=>{setTimeout(t,e)})}function de(e){return btoa(String.fromCharCode(...e)).replace(/\+/g,`-`).replace(/\//g,`_`)}var fe=/^[cdef][\w-]{21}$/,w=``;function pe(){try{let e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;let t=me(e);return fe.test(t)?t:w}catch{return w}}function me(e){return de(e).substr(0,22)}function T(e){return`${e.appName}!${e.appId}`}var E=new Map;function he(e,t){let n=T(e);ge(n,t),_e(n,t)}function ge(e,t){let n=E.get(e);if(n)for(let e of n)e(t)}function _e(e,t){let n=ve();n&&n.postMessage({key:e,fid:t}),ye()}var D=null;function ve(){return!D&&`BroadcastChannel`in self&&(D=new BroadcastChannel(`[Firebase] FID Change`),D.onmessage=e=>{ge(e.data.key,e.data.fid)}),D}function ye(){E.size===0&&D&&(D.close(),D=null)}var be=`firebase-installations-database`,xe=1,O=`firebase-installations-store`,Se=null;function k(){return Se||=t(be,xe,{upgrade:(e,t)=>{t===0&&e.createObjectStore(O)}}),Se}async function A(e,t){let n=T(e),r=(await k()).transaction(O,`readwrite`),i=r.objectStore(O),a=await i.get(n);return await i.put(t,n),await r.done,(!a||a.fid!==t.fid)&&he(e,t.fid),t}async function j(e){let t=T(e),n=(await k()).transaction(O,`readwrite`);await n.objectStore(O).delete(t),await n.done}async function M(e,t){let n=T(e),r=(await k()).transaction(O,`readwrite`),i=r.objectStore(O),a=await i.get(n),o=t(a);return o===void 0?await i.delete(n):await i.put(o,n),await r.done,o&&(!a||a.fid!==o.fid)&&he(e,o.fid),o}async function N(e){let t,n=await M(e.appConfig,n=>{let r=we(e,Ce(n));return t=r.registrationPromise,r.installationEntry});return n.fid===w?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}function Ce(e){return F(e||{fid:pe(),registrationStatus:0})}function we(e,t){if(t.registrationStatus===0){if(!navigator.onLine)return{installationEntry:t,registrationPromise:Promise.reject(g.create(`app-offline`))};let n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()};return{installationEntry:n,registrationPromise:Te(e,n)}}return t.registrationStatus===1?{installationEntry:t,registrationPromise:Ee(e)}:{installationEntry:t}}async function Te(e,t){try{let n=await ue(e,t);return A(e.appConfig,n)}catch(n){throw _(n)&&n.customData.serverCode===409?await j(e.appConfig):await A(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}async function Ee(e){let t=await P(e.appConfig);for(;t.registrationStatus===1;)await C(100),t=await P(e.appConfig);if(t.registrationStatus===0){let{installationEntry:t,registrationPromise:n}=await N(e);return n||t}return t}function P(e){return M(e,e=>{if(!e)throw g.create(`installation-not-found`);return F(e)})}function F(e){return De(e)?{fid:e.fid,registrationStatus:0}:e}function De(e){return e.registrationStatus===1&&e.registrationTime+h<Date.now()}async function Oe({appConfig:e,heartbeatServiceProvider:t},n){let r=ke(e,n),i=se(e,n),a=t.getImmediate({optional:!0});if(a){let e=await a.getHeartbeatsHeader();e&&i.append(`x-firebase-client`,e)}let o={installation:{sdkVersion:re,appId:e.appId}},s={method:`POST`,headers:i,body:JSON.stringify(o)},c=await S(()=>fetch(r,s));if(c.ok)return y(await c.json());throw await b(`Generate Auth Token`,c)}function ke(e,{fid:t}){return`${v(e)}/${t}/authTokens:generate`}async function I(e,t=!1){let n,r=await M(e.appConfig,r=>{if(!R(r))throw g.create(`not-registered`);let i=r.authToken;if(!t&&Me(i))return r;if(i.requestStatus===1)return n=Ae(e,t),r;{if(!navigator.onLine)throw g.create(`app-offline`);let t=Pe(r);return n=je(e,t),t}});return n?await n:r.authToken}async function Ae(e,t){let n=await L(e.appConfig);for(;n.authToken.requestStatus===1;)await C(100),n=await L(e.appConfig);let r=n.authToken;return r.requestStatus===0?I(e,t):r}function L(e){return M(e,e=>{if(!R(e))throw g.create(`not-registered`);let t=e.authToken;return Fe(t)?{...e,authToken:{requestStatus:0}}:e})}async function je(e,t){try{let n=await Oe(e,t),r={...t,authToken:n};return await A(e.appConfig,r),n}catch(n){if(_(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await j(e.appConfig);else{let n={...t,authToken:{requestStatus:0}};await A(e.appConfig,n)}throw n}}function R(e){return e!==void 0&&e.registrationStatus===2}function Me(e){return e.requestStatus===2&&!Ne(e)}function Ne(e){let t=Date.now();
1return t<e.creationTime||e.creationTime+e.expiresIn<t+oe}function Pe(e){let t={requestStatus:1,requestTime:Date.now()};return{...e,authToken:t}}function Fe(e){return e.requestStatus===1&&e.requestTime+h<Date.now()}async function Ie(e){let t=e,{installationEntry:n,registrationPromise:r}=await N(t);return r?r.catch(console.error):I(t).catch(console.error),n.fid}async function Le(e,t=!1){let n=e;return await Re(n),(await I(n,t)).token}async function Re(e){let{registrationPromise:t}=await N(e);t&&await t}function ze(e){if(!e||!e.options)throw z(`App Configuration`);if(!e.name)throw z(`App Name`);for(let t of[`projectId`,`apiKey`,`appId`])if(!e.options[t])throw z(t);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}function z(e){return g.create(`missing-app-config-values`,{valueName:e})}var B=`installations`,Be=`installations-internal`,Ve=e=>{let t=e.getProvider(`app`).getImmediate();return{app:t,appConfig:ze(t),heartbeatServiceProvider:u(t,`heartbeat`),_delete:()=>Promise.resolve()}},He=e=>{let t=e.getProvider(`app`).getImmediate(),n=u(t,B).getImmediate();return{getId:()=>Ie(n),getToken:e=>Le(n,e)}};function Ue(){p(new n(B,Ve,`PUBLIC`)),p(new n(Be,He,`PRIVATE`))}Ue(),s(ne,m),s(ne,m,`esm2020`);var V=`analytics`,We=`firebase_id`,Ge=`origin`,Ke=6e4,qe=`https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig`,H=`https://www.googletagmanager.com/gtag/js`,U=new c(`@firebase/analytics`),W=new e(`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 Je(e){if(!e.startsWith(H)){let t=W.create(`invalid-gtag-resource`,{gtagURL:e});return U.warn(t.message),``}return e}function G(e){return Promise.all(e.map(e=>e.catch(e=>e)))}function Ye(e,t){let n;return window.trustedTypes&&(n=window.trustedTypes.createPolicy(e,t)),n}function Xe(e,t){let n=Ye(`firebase-js-sdk-policy`,{createScriptURL:Je}),r=document.createElement(`script`),i=`${H}?l=${e}&id=${t}`;r.src=n?n?.createScriptURL(i):i,r.async=!0,document.head.appendChild(r)}function Ze(e){let t=[];return Array.isArray(window[e])?t=window[e]:window[e]=t,t}async function Qe(e,t,n,r,i,a){let o=r[i];try{if(o)await t[o];else{let e=(await G(n)).find(e=>e.measurementId===i);e&&await t[e.appId]}}catch(e){U.error(e)}e(`config`,i,a)}async function $e(e,t,n,r,i){try{let a=[];if(i&&i.send_to){let e=i.send_to;Array.isArray(e)||(e=[e]);let r=await G(n);for(let n of e){let e=r.find(e=>e.measurementId===n),i=e&&t[e.appId];if(i)a.push(i);else{a=[];break}}}a.length===0&&(a=Object.values(t)),await Promise.all(a),e(`event`,r,i||{})}catch(e){U.error(e)}}function et(e,t,n,r){async function i(i,...a){try{if(i===`event`){let[r,i]=a;await $e(e,t,n,r,i)}else if(i===`config`){let[i,o]=a;await Qe(e,t,n,r,i,o)}else if(i===`consent`){let[t,n]=a;e(`consent`,t,n)}else if(i===`get`){let[t,n,r]=a;e(`get`,t,n,r)}else if(i===`set`){let[t]=a;e(`set`,t)}else e(i,...a)}catch(e){U.error(e)}}return i}function tt(e,t,n,r,i){let a=function(...e){window[r].push(arguments)};return window[i]&&typeof window[i]==`function`&&(a=window[i]),window[i]=et(a,e,t,n),{gtagCore:a,wrappedGtag:window[i]}}function nt(e){let t=window.document.getElementsByTagName(`script`);for(let n of Object.values(t))if(n.src&&n.src.includes(H)&&n.src.includes(e))return n;return null}var rt=30,it=1e3,K=new class{constructor(e={},t=it){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]}};function at(e){return new Headers({Accept:`application/json`,"x-goog-api-key":e})}async function ot(e){let{appId:t,apiKey:n}=e,r={method:`GET`,headers:at(n)},i=qe.replace(`{app-id}`,t),a=await fetch(i,r);if(a.status!==200&&a.status!==304){let e=``;try{let t=await a.json();t.error?.message&&(e=t.error.message)}catch{}throw W.create(`config-fetch-failed`,{httpStatus:a.status,responseMessage:e})}return a.json()}async function st(e,t=K,n){let{appId:r,apiKey:i,measurementId:a}=e.options;if(!r)throw W.create(`no-app-id`);if(!i){if(a)return{measurementId:a,appId:r};throw W.create(`no-api-key`)}let o=t.getThrottleMetadata(r)||{backoffCount:0,throttleEndTimeMillis:Date.now()},s=new ut;return setTimeout(async()=>{s.abort()},Ke),q({appId:r,apiKey:i,measurementId:a},o,s,t)}
1async function q(e,{throttleEndTimeMillis:t,backoffCount:n},r,i=K){let{appId:a,measurementId:s}=e;try{await ct(r,t)}catch(e){if(s)return U.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${s} provided in the "measurementId" field in the local Firebase config. [${e?.message}]`),{appId:a,measurementId:s};throw e}try{let t=await ot(e);return i.deleteThrottleMetadata(a),t}catch(t){let c=t;if(!lt(c)){if(i.deleteThrottleMetadata(a),s)return U.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${s} provided in the "measurementId" field in the local Firebase config. [${c?.message}]`),{appId:a,measurementId:s};throw t}let l=Number(c?.customData?.httpStatus)===503?o(n,i.intervalMillis,rt):o(n,i.intervalMillis),u={throttleEndTimeMillis:Date.now()+l,backoffCount:n+1};return i.setThrottleMetadata(a,u),U.debug(`Calling attemptFetch again in ${l} millis`),q(e,u,r,i)}}function ct(e,t){return new Promise((n,r)=>{let i=Math.max(t-Date.now(),0),a=setTimeout(n,i);e.addEventListener(()=>{clearTimeout(a),r(W.create(`fetch-throttle`,{throttleEndTimeMillis:t}))})})}function lt(e){if(!(e instanceof f)||!e.customData)return!1;let t=Number(e.customData.httpStatus);return t===429||t===500||t===503||t===504}var ut=class{constructor(){this.listeners=[]}addEventListener(e){this.listeners.push(e)}abort(){this.listeners.forEach(e=>e())}},J;async function dt(e,t,n,r,i){if(i&&i.global){e(`event`,n,r);return}{let i=await t;e(`event`,n,{...r,send_to:i})}}async function ft(e,t,n,r){if(r&&r.global){let t={};for(let e of Object.keys(n))t[`user_properties.${e}`]=n[e];return e(`set`,t),Promise.resolve()}e(`config`,await t,{update:!0,user_properties:n})}var Y;function pt(e){Y=e}function mt(e){J=e}async function ht(){if(l())try{await ee()}catch(e){return U.warn(W.create(`indexeddb-unavailable`,{errorInfo:e?.toString()}).message),!1}else return U.warn(W.create(`indexeddb-unavailable`,{errorInfo:`IndexedDB is not available in this environment.`}).message),!1;return!0}async function gt(e,t,n,r,i,a,o){let s=st(e);s.then(t=>{n[t.measurementId]=t.appId,e.options.measurementId&&t.measurementId!==e.options.measurementId&&U.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=>U.error(e)),t.push(s);let c=ht().then(e=>{if(e)return r.getId()}),[l,u]=await Promise.all([s,c]);nt(a)||Xe(a,l.measurementId),Y&&(i(`consent`,`default`,Y),pt(void 0)),i(`js`,new Date);let d=o?.config??{};return d[Ge]=`firebase`,d.update=!0,u!=null&&(d[We]=u),i(`config`,l.measurementId,d),J&&(i(`set`,J),mt(void 0)),l.measurementId}var _t=class{constructor(e){this.app=e}_delete(){return delete X[this.app.options.appId],Promise.resolve()}},X={},vt=[],yt={},Z=`dataLayer`,bt=`gtag`,xt,Q,St=!1;function Ct(){let e=[];
1if(te()&&e.push(`This is a browser extension environment.`),a()||e.push(`Cookies are not available.`),e.length>0){let t=e.map((e,t)=>`(${t+1}) ${e}`).join(` `),n=W.create(`invalid-analytics-context`,{errorInfo:t});U.warn(n.message)}}function wt(e,t,n){Ct();let r=e.options.appId;if(!r)throw W.create(`no-app-id`);if(!e.options.apiKey){if(e.options.measurementId)U.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 W.create(`no-api-key`)}if(X[r]!=null)throw W.create(`already-exists`,{id:r});if(!St){Ze(Z);let{wrappedGtag:e,gtagCore:t}=tt(X,vt,yt,Z,bt);Q=e,xt=t,St=!0}return X[r]=gt(e,vt,yt,t,xt,Z,n),new _t(e)}function Tt(e=d()){e=r(e);let t=u(e,V);return t.isInitialized()?t.getImmediate():Et(e)}function Et(e,t={}){let n=u(e,V);if(n.isInitialized()){let e=n.getImmediate();if(i(t,n.getOptions()))return e;throw W.create(`already-initialized`)}return n.initialize({options:t})}function Dt(e,t,n){e=r(e),ft(Q,X[e.app.options.appId],t,n).catch(e=>U.error(e))}function Ot(e,t,n,i){e=r(e),dt(Q,X[e.app.options.appId],t,n,i).catch(e=>U.error(e))}var $=`@firebase/analytics`,kt=`0.10.25`;function At(){p(new n(V,(e,{options:t})=>wt(e.getProvider(`app`).getImmediate(),e.getProvider(`installations-internal`).getImmediate(),t),`PUBLIC`)),p(new n(`analytics-internal`,e,`PRIVATE`)),s($,kt),s($,kt,`esm2020`);function e(e){try{let t=e.getProvider(V).getImmediate();return{logEvent:(e,n,r)=>Ot(t,e,n,r),setUserProperties:(e,n)=>Dt(t,e,n)}}catch(e){throw W.create(`interop-component-reg-failed`,{reason:e})}}}At();export{Tt as t};
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.