firebase 13.2.0-eap-sql.a9a137e67 → 13.2.0-eap-sql.b903ef716
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/dist/esm/index.esm.js +1 -1
- package/app/dist/index.cjs.js +1 -1
- package/app/dist/index.mjs +1 -1
- package/compat/app/dist/esm/index.esm.js +1 -1
- package/compat/app/dist/index.cjs.js +1 -1
- package/compat/app/dist/index.mjs +1 -1
- package/compat/dist/esm/index.esm.js +2 -2
- package/compat/dist/index.node.cjs +2 -2
- package/compat/dist/index.rn.cjs.js +2 -2
- package/firebase-ai.js +1 -1
- package/firebase-analytics-compat.js +1 -1
- package/firebase-analytics.js +1 -1
- package/firebase-app-check-compat.js +1 -1
- package/firebase-app-check.js +1 -1
- package/firebase-app-compat.js +2 -2
- package/firebase-app.js +5 -5
- package/firebase-auth-compat.js +1 -1
- package/firebase-auth-cordova.js +1 -1
- package/firebase-auth-web-extension.js +1 -1
- package/firebase-auth.js +1 -1
- package/firebase-compat.js +6 -6
- package/firebase-crashlytics.js +1 -1
- package/firebase-data-connect.js +1 -1
- package/firebase-database-compat.js +1 -1
- package/firebase-database.js +1 -1
- package/firebase-firestore-compat.js +2 -2
- package/firebase-firestore-lite-pipelines.js +1 -1
- package/firebase-firestore-lite.js +1 -1
- package/firebase-firestore-pipelines.js +1 -1
- package/firebase-firestore.js +1 -1
- package/firebase-functions-compat.js +1 -1
- package/firebase-functions.js +1 -1
- package/firebase-installations-compat.js +1 -1
- package/firebase-installations.js +1 -1
- package/firebase-messaging-compat.js +1 -1
- package/firebase-messaging-sw.js +1 -1
- package/firebase-messaging.js +1 -1
- package/firebase-performance-compat.js +1 -1
- package/firebase-performance-standalone-compat.js +7 -7
- package/firebase-performance.js +1 -1
- package/firebase-remote-config-compat.js +1 -1
- package/firebase-remote-config.js +1 -1
- package/firebase-sql.js +1 -1
- package/firebase-sql.js.map +1 -1
- package/firebase-storage-compat.js +1 -1
- package/firebase-storage.js +1 -1
- package/package.json +31 -31
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
((e,t)=>{"object"==typeof exports&&"undefined"!=typeof module?t(require("@firebase/app-compat"),require("@firebase/app")):"function"==typeof define&&define.amd?define(["@firebase/app-compat","@firebase/app"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).firebase,e.firebase.INTERNAL.modularAPIs)})(this,function(Cr,Mr){try{!(function(){class O extends Error{constructor(e,t,r){super(t),this.code=e,this.customData=r,this.name="FirebaseError",Object.setPrototypeOf(this,O.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,F.prototype.create)}}class F{constructor(e,t,r){this.service=e,this.serviceName=t,this.errors=r}create(e,...t){var r=t[0]||{},n=this.service+"/"+e,a=this.errors[e],a=a?((r,n)=>{try{let e=0,t="";for(;e<r.length;){var a=r.indexOf("{$",e);if(-1===a){t+=r.substring(e);break}var i=r.indexOf("}",a+2);if(-1===i){t+=r.substring(e);break}var o=r.substring(a+2,i),s=n[o];t+=r.substring(e,a)+(null!=s?String(s):`<${o}?>`),e=i+1}return t}catch(e){return r}})(a,r):"Error",a=this.serviceName+`: ${a} (${n}).`;return new O(n,a,r)}}class e{constructor(e,t,r){this.name=e,this.instanceFactory=t,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}var t;(I=t=t||{})[I.DEBUG=0]="DEBUG",I[I.VERBOSE=1]="VERBOSE",I[I.INFO=2]="INFO",I[I.WARN=3]="WARN",I[I.ERROR=4]="ERROR",I[I.SILENT=5]="SILENT";let x={debug:t.DEBUG,verbose:t.VERBOSE,info:t.INFO,warn:t.WARN,error:t.ERROR,silent:t.SILENT},U=t.INFO,q={[t.DEBUG]:"log",[t.VERBOSE]:"log",[t.INFO]:"info",[t.WARN]:"warn",[t.ERROR]:"error"},j=(e,t,...r)=>{if(!(t<e.logLevel)){var n=(new Date).toISOString(),a=q[t];if(!a)throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`);console[a](`[${n}] ${e.name}:`,...r)}};function H(e){if("loading"===document.readyState)return"loading";var t=u();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"}function V(e,t){var r="";try{for(;e&&9!==e.nodeType;){var n=e,a=n.id?"#"+n.id:Q(n)+(n.classList&&n.classList.value&&n.classList.value.trim()&&n.classList.value.trim().length?"."+n.classList.value.trim().replace(/\s+/g,"."):"");if(r.length+a.length>(t||100)-1)return r||a;if(r=r?a+">"+r:a,n.id)break;e=n.parentNode}}catch(e){}return r}function $(a,e){var o,s,i,c;o=function(e){r={},(e=e).entries.length&&(t=e.entries.reduce(function(e,t){return e&&e.value>t.value?e:t}))&&t.sources&&t.sources.length&&(n=(n=t.sources).find(function(e){return e.node&&1===e.node.nodeType})||n[0])&&(r={largestShiftTarget:V(n.node),largestShiftTime:t.startTime,largestShiftValue:t.value,largestShiftSource:n,largestShiftEntry:t,loadState:H(t.startTime)});var t,r,n=Object.assign(e,{attribution:r});a(n)},s=e||{},i=ae(function(){function e(e){e.forEach(function(e){var t,r;e.hadRecentInput||(t=a[0],r=a[a.length-1],n&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(n+=e.value,a.push(e)):(n=e.value,a=[e]))}),n>r.value&&(r.value=n,r.entries=a,t())}var t,r=p("CLS",0),n=0,a=[],i=f("layout-shift",e);i&&(t=g(o,r,de,s.reportAllChanges),m(function(){e(i.takeRecords()),t(!0)}),d(function(){r=p("CLS",n=0),t=g(o,r,de,s.reportAllChanges),ne(function(){return t()})}),setTimeout(t,0))}),c=c||{},le(function(){var t,r=ce(),n=p("FCP"),a=f("paint",function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(a.disconnect(),e.startTime<r.firstHiddenTime)&&(n.value=Math.max(e.startTime-re(),0),n.entries.push(e),t(!0))})});a&&(t=g(i,n,ue,c.reportAllChanges),d(function(e){n=p("FCP"),t=g(i,n,ue,c.reportAllChanges),ne(function(){n.value=performance.now()-e.timeStamp,t(!0)})}))})}function W(i,o){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(o=o||{},le(function(){var e;he();function t(t){Ee(function(){t.forEach(we);var e=be();e&&e.latency!==r.value&&(r.value=e.latency,r.entries=e.entries,a())})}var r=p("INP"),n=f("event",t,{durationThreshold:null!=(e=o.durationThreshold)?e:40}),a=g(i,r,Te,o.reportAllChanges);n&&(n.observe({type:"first-input",buffered:!0}),m(function(){t(n.takeRecords()),a(!0)}),d(function(){ve=me(),s.length=0,c.clear(),r=p("INP"),a=g(i,r,Te,o.reportAllChanges)}))}))}function z(e){o=o.concat(e),Ce()}function K(){10<h.size&&h.forEach(function(e,t){c.has(t)||h.delete(t)});var r=s.map(function(e){return Se.get(e.entries[0])}),n=l.length-50;l=l.filter(function(e,t){return n<=t||r.includes(e)});for(var a=new Set,e=0;e<l.length;e++){var t=l[e];Me(t.startTime,t.processingEnd).forEach(function(e){a.add(e)})}var i=o.length-1-50;o=o.filter(function(e,t){return e.startTime>_e&&i<t||a.has(e)}),Ie=-1}function G(c,e){X=X||f("long-animation-frame",z),W(function(e){t=(e=e).entries[0],s=Se.get(t),r=t.processingStart,n=s.processingEnd,s=s.entries.sort(function(e,t){return e.processingStart-t.processingStart}),a=Me(t.startTime,n),i=(i=e.entries.find(function(e){return e.target}))&&i.target||h.get(t.interactionId),o=[t.startTime+t.duration,n].concat(a.map(function(e){return e.startTime+e.duration})),o=Math.max.apply(Math,o),i={interactionTarget:V(i),interactionTargetElement:i,interactionType:t.name.startsWith("key")?"keyboard":"pointer",interactionTime:t.startTime,nextPaintTime:o,processedEventEntries:s,longAnimationFrameEntries:a,inputDelay:r-t.startTime,processingDuration:n-r,presentationDelay:Math.max(o-n,0),loadState:H(t.startTime)};var t,r,n,a,i,o,s=Object.assign(e,{attribution:i});c(s)},e)}function J(l,e){var o,s;o=function(e){s={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:(e=e).value},e.entries.length&&(t=u())&&(o=t.activationStart||0,n=(r=e.entries[e.entries.length-1]).url&&performance.getEntriesByType("resource").filter(function(e){return e.name===r.url})[0],c=Math.max(0,t.responseStart-o),a=Math.max(c,n?(n.requestStart||n.startTime)-o:0),i=Math.max(a,n?n.responseEnd-o:0),o=Math.max(i,r.startTime-o),s={element:V(r.element),timeToFirstByte:c,resourceLoadDelay:a-c,resourceLoadDuration:i-a,elementRenderDelay:o-i,navigationEntry:t,lcpEntry:r},r.url&&(s.url=r.url),n)&&(s.lcpResourceEntry=n);var t,r,n,a,i,o,s,c=Object.assign(e,{attribution:s});l(c)},s=e||{},le(function(){function e(e){(e=s.reportAllChanges?e:e.slice(-1)).forEach(function(e){e.startTime<n.firstHiddenTime&&(a.value=Math.max(e.startTime-re(),0),a.entries=[e],t())})}var t,r,n=ce(),a=p("LCP"),i=f("largest-contentful-paint",e);i&&(t=g(o,a,ke,s.reportAllChanges),r=ae(function(){Le[a.id]||(e(i.takeRecords()),i.disconnect(),Le[a.id]=!0,t(!0))}),["keydown","click"].forEach(function(e){addEventListener(e,function(){return Ee(r)},{once:!0,capture:!0})}),m(r),d(function(e){a=p("LCP"),t=g(o,a,ke,s.reportAllChanges),ne(function(){a.value=performance.now()-e.timeStamp,Le[a.id]=!0,t(!0)})}))})}var Z,X,Y,u=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&0<e.responseStart&&e.responseStart<performance.now())return e},Q=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},ee=-1,te=function(){return ee},d=function(t){addEventListener("pageshow",function(e){e.persisted&&(ee=e.timeStamp,t(e))},!0)},re=function(){var e=u();return e&&e.activationStart||0},p=function(e,t){var r=u(),n="navigate";return 0<=te()?n="back-forward-cache":r&&(document.prerendering||0<re()?n="prerender":document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},f=function(e,t,r){try{var n;if(PerformanceObserver.supportedEntryTypes.includes(e))return(n=new PerformanceObserver(function(e){Promise.resolve().then(function(){t(e.getEntries())})})).observe(Object.assign({type:e,buffered:!0},r||{})),n}catch(e){}},g=function(t,r,n,a){var i,o;return function(e){0<=r.value&&(e||a)&&((o=r.value-(i||0))||void 0===i)&&(i=r.value,r.delta=o,r.rating=(e=r.value)>n[1]?"poor":e>n[0]?"needs-improvement":"good",t(r))}},ne=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},m=function(e){document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&e()})},ae=function(e){var t=!1;return function(){t||(e(),t=!0)}},r=-1,ie=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},n=function(e){"hidden"===document.visibilityState&&-1<r&&(r="visibilitychange"===e.type?e.timeStamp:0,se())},oe=function(){addEventListener("visibilitychange",n,!0),addEventListener("prerenderingchange",n,!0)},se=function(){removeEventListener("visibilitychange",n,!0),removeEventListener("prerenderingchange",n,!0)},ce=function(){return r<0&&(r=ie(),oe(),d(function(){setTimeout(function(){r=ie(),oe()},0)})),{get firstHiddenTime(){return r}}},le=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},ue=[1800,3e3],de=[.1,.25],pe=0,fe=1/0,a=0,ge=function(e){e.forEach(function(e){e.interactionId&&(fe=Math.min(fe,e.interactionId),a=Math.max(a,e.interactionId),pe=a?(a-fe)/7+1:0)})},me=function(){return Z?pe:performance.interactionCount||0},he=function(){"interactionCount"in performance||(Z=Z||f("event",ge,{type:"event",buffered:!0,durationThreshold:0}))},s=[],c=new Map,ve=0,be=function(){var e=Math.min(s.length-1,Math.floor((me()-ve)/50));return s[e]},ye=[],we=function(t){var e,r;ye.forEach(function(e){return e(t)}),!t.interactionId&&"first-input"!==t.entryType||(r=s[s.length-1],((e=c.get(t.interactionId))||s.length<10||t.duration>r.latency)&&(e?t.duration>e.latency?(e.entries=[t],e.latency=t.duration):t.duration===e.latency&&t.startTime===e.entries[0].startTime&&e.entries.push(t):(r={id:t.interactionId,latency:t.duration,entries:[t]},c.set(r.id,r),s.push(r)),s.sort(function(e,t){return t.latency-e.latency}),10<s.length)&&s.splice(10).forEach(function(e){return c.delete(e.id)}))},Ee=function(e){var t=self.requestIdleCallback||self.setTimeout,r=-1;return e=ae(e),"hidden"===document.visibilityState?e():(r=t(e),m(e)),r},Te=[200,500],o=[],l=[],_e=0,Se=new WeakMap,h=new Map,Ie=-1,Ce=function(){Ie<0&&(Ie=Ee(K))},Me=(ye.push(function(e){e.interactionId&&e.target&&!h.has(e.interactionId)&&h.set(e.interactionId,e.target)},function(e){var t,r=e.startTime+e.duration;_e=Math.max(_e,e.processingEnd);for(var n=l.length-1;0<=n;n--){var a=l[n];if(Math.abs(r-a.renderTime)<=8){(t=a).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:r,entries:[e]},l.push(t)),!e.interactionId&&"first-input"!==e.entryType||Se.set(e,t),Ce()}),function(e,t){for(var r,n=[],a=0;r=o[a];a++)if(!(r.startTime+r.duration<e)){if(r.startTime>t)break;n.push(r)}return n}),ke=[2500,4e3],Le={};let Ae=(t,e)=>e.some(e=>t instanceof e),Ne,Pe;let Re=new WeakMap,De=new WeakMap,Be=new WeakMap,Oe=new WeakMap,Fe=new WeakMap;let xe={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return De.get(e);if("objectStoreNames"===t)return e.objectStoreNames||Be.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return v(e[t])},set(e,t,r){return e[t]=r,!0},has(e,t){return e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e}};function Ue(n){return n!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(Pe=Pe||[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey]).includes(n)?function(...e){return n.apply(je(this),e),v(Re.get(this))}:function(...e){return v(n.apply(je(this),e))}:function(e,...t){var r=n.call(je(this),e,...t);return Be.set(r,e.sort?e.sort():[e]),v(r)}}function qe(e){var i,t;return"function"==typeof e?Ue(e):(e instanceof IDBTransaction&&(i=e,De.has(i)||(t=new Promise((e,t)=>{let r=()=>{i.removeEventListener("complete",n),i.removeEventListener("error",a),i.removeEventListener("abort",a)},n=()=>{e(),r()},a=()=>{t(i.error||new DOMException("AbortError","AbortError")),r()};i.addEventListener("complete",n),i.addEventListener("error",a),i.addEventListener("abort",a)}),De.set(i,t))),Ae(e,Ne=Ne||[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])?new Proxy(e,xe):e)}function v(e){var i,t;return e instanceof IDBRequest?(i=e,(t=new Promise((e,t)=>{let r=()=>{i.removeEventListener("success",n),i.removeEventListener("error",a)},n=()=>{e(v(i.result)),r()},a=()=>{t(i.error),r()};i.addEventListener("success",n),i.addEventListener("error",a)})).then(e=>{e instanceof IDBCursor&&Re.set(e,i)}).catch(()=>{}),Fe.set(t,i),t):Oe.has(e)?Oe.get(e):((t=qe(e))!==e&&(Oe.set(e,t),Fe.set(t,e)),t)}let je=e=>Fe.get(e);let He=["get","getKey","getAll","getAllKeys","count"],Ve=["put","add","delete","clear"],$e=new Map;function We(e,t){if(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t){if($e.get(t))return $e.get(t);let a=t.replace(/FromIndex$/,""),i=t!==a,o=Ve.includes(a);var r;return a in(i?IDBIndex:IDBObjectStore).prototype&&(o||He.includes(a))?(r=async function(e,...t){var r=this.transaction(e,o?"readwrite":"readonly");let n=r.store;return i&&(n=n.index(t.shift())),(await Promise.all([n[a](...t),o&&r.done]))[0]},$e.set(t,r),r):void 0}}xe={...Y=xe,get:(e,t,r)=>We(e,t)||Y.get(e,t,r),has:(e,t)=>!!We(e,t)||Y.has(e,t)};var i="@firebase/installations",ze="0.6.24-eap-sql.a9a137e67";let Ke=1e4,Ge="w:"+ze,Je="FIS_v2",Ze="https://firebaseinstallations.googleapis.com/v1",Xe=36e5;let b=new F("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 Ye(e){return e instanceof O&&e.code.includes("request-failed")}function Qe({projectId:e}){return Ze+`/projects/${e}/installations`}function et(e){return{token:e.token,requestStatus:2,expiresIn:Number(e.expiresIn.replace("s","000")),creationTime:Date.now()}}async function tt(e,t){var r=(await t.json()).error;return b.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function rt({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function nt(e,{refreshToken:t}){var r=rt(e);return r.append("Authorization",(e=t,Je+" "+e)),r}async function at(e){var t=await e();return 500<=t.status&&t.status<600?e():t}function it(t){return new Promise(e=>{setTimeout(e,t)})}let ot=/^[cdef][\w-]{21}$/,st="";function ct(){try{var e=new Uint8Array(17),t=((self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16,(e=>btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_"))(e).substr(0,22));return ot.test(t)?t:st}catch{return st}}function y(e){return e.appName+"!"+e.appId}let lt=new Map;function ut(e,t){var r=y(e),e=(dt(r,t),r),r=(()=>(!w&&"BroadcastChannel"in self&&((w=new BroadcastChannel("[Firebase] FID Change")).onmessage=e=>{dt(e.data.key,e.data.fid)}),w))();r&&r.postMessage({key:e,fid:t}),0===lt.size&&w&&(w.close(),w=null)}function dt(e,t){var r=lt.get(e);if(r)for(var n of r)n(t)}let w=null;let pt="firebase-installations-database",ft=1,E="firebase-installations-store",gt=null;function mt(){return gt=gt||((e,t,{blocked:r,upgrade:n,blocking:a,terminated:i})=>{let o=indexedDB.open(e,t);var s=v(o);return n&&o.addEventListener("upgradeneeded",e=>{n(v(o.result),e.oldVersion,e.newVersion,v(o.transaction),e)}),r&&o.addEventListener("blocked",e=>r(e.oldVersion,e.newVersion,e)),s.then(e=>{i&&e.addEventListener("close",()=>i()),a&&e.addEventListener("versionchange",e=>a(e.oldVersion,e.newVersion,e))}).catch(()=>{}),s})(pt,ft,{upgrade:(e,t)=>{0===t&&e.createObjectStore(E)}})}async function T(e,t){var r=y(e),n=(await mt()).transaction(E,"readwrite"),a=n.objectStore(E),i=await a.get(r);return await a.put(t,r),await n.done,i&&i.fid===t.fid||ut(e,t.fid),t}async function ht(e){var t=y(e),r=(await mt()).transaction(E,"readwrite");await r.objectStore(E).delete(t),await r.done}async function _(e,t){var r=y(e),n=(await mt()).transaction(E,"readwrite"),a=n.objectStore(E),i=await a.get(r),o=t(i);return void 0===o?await a.delete(r):await a.put(o,r),await n.done,!o||i&&i.fid===o.fid||ut(e,o.fid),o}async function vt(r){let n;var e=await _(r.appConfig,e=>{var t=yt(e||{fid:ct(),registrationStatus:0}),t=((e,t)=>{var r,n;return 0===t.registrationStatus?navigator.onLine?(r={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},n=(async(t,r)=>{try{var e=await(async({appConfig:e,heartbeatServiceProvider:t},{fid:r})=>{let n=Qe(e);var a=rt(e),i=((i=t.getImmediate({optional:!0}))&&(i=await i.getHeartbeatsHeader())&&a.append("x-firebase-client",i),{fid:r,authVersion:Je,appId:e.appId,sdkVersion:Ge});let o={method:"POST",headers:a,body:JSON.stringify(i)};if((a=await at(()=>fetch(n,o))).ok)return{fid:(i=await a.json()).fid||r,registrationStatus:2,refreshToken:i.refreshToken,authToken:et(i.authToken)};throw await tt("Create Installation",a)})(t,r);return T(t.appConfig,e)}catch(e){throw Ye(e)&&409===e.customData.serverCode?await ht(t.appConfig):await T(t.appConfig,{fid:r.fid,registrationStatus:0}),e}})(e,r),{installationEntry:r,registrationPromise:n}):(r=Promise.reject(b.create("app-offline")),{installationEntry:t,registrationPromise:r}):1===t.registrationStatus?{installationEntry:t,registrationPromise:(async e=>{let t=await bt(e.appConfig);for(;1===t.registrationStatus;)await it(100),t=await bt(e.appConfig);var r,n;return 0!==t.registrationStatus?t:({installationEntry:r,registrationPromise:n}=await vt(e),n||r)})(e)}:{installationEntry:t}})(r,t);return n=t.registrationPromise,t.installationEntry});return e.fid===st?{installationEntry:await n}:{installationEntry:e,registrationPromise:n}}function bt(e){return _(e,e=>{if(e)return yt(e);throw b.create("installation-not-found")})}function yt(e){var t;return 1===(t=e).registrationStatus&&t.registrationTime+Ke<Date.now()?{fid:e.fid,registrationStatus:0}:e}async function wt({appConfig:e,heartbeatServiceProvider:t},r){[a,i]=[e,r.fid];let n=Qe(a)+`/${i}/authTokens:generate`;var a,i,o=nt(e,r),s=t.getImmediate({optional:!0}),s=(s&&(s=await s.getHeartbeatsHeader())&&o.append("x-firebase-client",s),{installation:{sdkVersion:Ge,appId:e.appId}});let c={method:"POST",headers:o,body:JSON.stringify(s)};o=await at(()=>fetch(n,c));if(o.ok)return et(await o.json());throw await tt("Generate Auth Token",o)}async function Et(n,a=!1){let i;var e=await _(n.appConfig,e=>{if(!_t(e))throw b.create("not-registered");var t,r=e.authToken;if(a||2!==(t=r).requestStatus||(e=>{var t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+Xe})(t)){if(1===r.requestStatus)return i=(async(e,t)=>{let r=await Tt(e.appConfig);for(;1===r.authToken.requestStatus;)await it(100),r=await Tt(e.appConfig);var n=r.authToken;return 0===n.requestStatus?Et(e,t):n})(n,a),e;if(navigator.onLine)return t=e,r={requestStatus:1,requestTime:Date.now()},r={...t,authToken:r},i=(async(t,r)=>{try{var e=await wt(t,r),n={...r,authToken:e};return await T(t.appConfig,n),e}catch(e){var a;throw!Ye(e)||401!==e.customData.serverCode&&404!==e.customData.serverCode?(a={...r,authToken:{requestStatus:0}},await T(t.appConfig,a)):await ht(t.appConfig),e}})(n,r),r;throw b.create("app-offline")}return e});return i?await i:e.authToken}function Tt(e){return _(e,e=>{var t,r;if(_t(e))return t=e.authToken,1===(r=t).requestStatus&&r.requestTime+Ke<Date.now()?{...e,authToken:{requestStatus:0}}:e;throw b.create("not-registered")})}function _t(e){return void 0!==e&&2===e.registrationStatus}async function St(e,t=!1){var r=e,n=(await(!(n=(await vt(r)).registrationPromise)||!await n),await Et(r,t));return n.token}function It(e){return b.create("missing-app-config-values",{valueName:e})}let Ct="installations",Mt=e=>{var t=e.getProvider("app").getImmediate();return{app:t,appConfig:(e=>{if(!e||!e.options)throw It("App Configuration");if(!e.name)throw It("App Name");var t;for(t of["projectId","apiKey","appId"])if(!e.options[t])throw It(t);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}})(t),heartbeatServiceProvider:Mr._getProvider(t,"heartbeat"),_delete:()=>Promise.resolve()}},kt=e=>{var t=e.getProvider("app").getImmediate();let r=Mr._getProvider(t,Ct).getImmediate();return{getId:()=>(async e=>{var t=e,{installationEntry:r,registrationPromise:n}=await vt(t);return(n||Et(t)).catch(console.error),r.fid})(r),getToken:e=>St(r,e)}};Mr._registerComponent(new e(Ct,Mt,"PUBLIC")),Mr._registerComponent(new e("installations-internal",kt,"PRIVATE")),Mr.registerVersion(i,ze),Mr.registerVersion(i,ze,"esm2020");let Lt="@firebase/performance",At="0.7.14-eap-sql.a9a137e67",Nt=At,Pt="FB-PERF-TRACE-MEASURE",Rt="@firebase/performance/config",Dt="@firebase/performance/configexpire";var S,I,i="Performance";let C=new F("performance",i,{"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."}),M=new class{constructor(e){this.name=e,this._logLevel=U,this._logHandler=j,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in t))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?x[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,t.DEBUG,...e),this._logHandler(this,t.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,t.VERBOSE,...e),this._logHandler(this,t.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,t.INFO,...e),this._logHandler(this,t.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,t.WARN,...e),this._logHandler(this,t.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,t.ERROR,...e),this._logHandler(this,t.ERROR,...e)}}(i);M.logLevel=t.INFO;let Bt,Ot;class k{constructor(e){if(!(this.window=e))throw C.create("no window");this.performance=e.performance,this.PerformanceObserver=e.PerformanceObserver,this.windowLocation=e.location,this.navigator=e.navigator,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=J,this.onINP=G,this.onCLS=$}getUrl(){return this.windowLocation.href.split("?")[0]}mark(e){this.performance&&this.performance.mark&&this.performance.mark(e)}measure(e,t,r){this.performance&&this.performance.measure&&this.performance.measure(e,t,r)}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&&"undefined"!=typeof navigator&&navigator.cookieEnabled?!!(()=>{try{return"object"==typeof indexedDB}catch(e){}})()||(M.info("IndexedDB is not supported by current browser"),!1):(M.info("Firebase Performance cannot start if browser does not support fetch and Promise or cookie is disabled."),!1)}setupObserver(e,r){this.PerformanceObserver&&new this.PerformanceObserver(e=>{for(var t of e.getEntries())r(t)}).observe({entryTypes:[e]})}static getInstance(){return Bt=void 0===Bt?new k(Ot):Bt}}let L;function Ft(e,t){var r=e.length-t.length;if(r<0||1<r)throw C.create("invalid String merger input");var n=[];for(let a=0;a<e.length;a++)n.push(e.charAt(a)),t.length>a&&n.push(t.charAt(a));return n.join("")}let xt;class A{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=Ft("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),this.transportKey=Ft("AzSC8r6ReiGqFMyfvgow","Iayx0u-XT3vksVM-pIV"),this.logSource=462,this.logTraceAfterSampling=!1,this.logNetworkAfterSampling=!1,this.configTimeToLive=12,this.logMaxFlushSize=40}getFlTransportFullUrl(){return this.flTransportEndpointUrl.concat("?key=",this.transportKey)}static getInstance(){return xt=void 0===xt?new A:xt}}(I=S=S||{})[I.UNKNOWN=0]="UNKNOWN",I[I.VISIBLE=1]="VISIBLE",I[I.HIDDEN=2]="HIDDEN";let Ut=["firebase_","google_","ga_"],qt=new RegExp("^[a-zA-Z]\\w*$");function jt(e){var t=e.options?.appId;if(t)return t;throw C.create("no app id")}let Ht="0.0.1",N={loggingEnabled:!0},Vt="FIREBASE_INSTALLATIONS_AUTH";function $t(e,t){var n,a,r=(()=>{var e=k.getInstance().localStorage;if(e){var t=e.getItem(Dt);if(t&&(e=>Number(e)>Date.now())(t)){t=e.getItem(Rt);if(t)try{return JSON.parse(t)}catch{}}}})();return r?(zt(r),Promise.resolve()):(a=t,(e=>{var t=e.getToken();return t.then(e=>{}),t})((n=e).installations).then(e=>{var t=(e=>{var t=e.options?.projectId;if(t)return t;throw C.create("no project id")})(n.app),r=(e=>{var t=e.options?.apiKey;if(t)return t;throw C.create("no api key")})(n.app),t=new Request(`https://firebaseremoteconfig.googleapis.com/v1/projects/${t}/namespaces/fireperf:fetch?key=`+r,{method:"POST",headers:{Authorization:Vt+" "+e},body:JSON.stringify({app_instance_id:a,app_instance_id_token:e,app_id:jt(n.app),app_version:Nt,sdk_version:Ht})});return fetch(t).then(e=>{if(e.ok)return e.json();throw C.create("RC response not ok")})}).catch(()=>{M.info(Wt)}).then(zt).then(e=>{var t;e=e,t=k.getInstance().localStorage,e&&t&&(t.setItem(Rt,JSON.stringify(e)),t.setItem(Dt,String(Date.now()+60*A.getInstance().configTimeToLive*60*1e3)))},()=>{}))}let Wt="Could not fetch config, will use default configs";function zt(e){var t,r;return e&&(t=A.getInstance(),void 0!==(r=e.entries||{}).fpr_enabled?t.loggingEnabled="true"===String(r.fpr_enabled):t.loggingEnabled=N.loggingEnabled,r.fpr_log_source?t.logSource=Number(r.fpr_log_source):N.logSource&&(t.logSource=N.logSource),r.fpr_log_endpoint_url?t.logEndPointUrl=r.fpr_log_endpoint_url:N.logEndPointUrl&&(t.logEndPointUrl=N.logEndPointUrl),r.fpr_log_transport_key?t.transportKey=r.fpr_log_transport_key:N.transportKey&&(t.transportKey=N.transportKey),void 0!==r.fpr_vc_network_request_sampling_rate?t.networkRequestsSamplingRate=Number(r.fpr_vc_network_request_sampling_rate):void 0!==N.networkRequestsSamplingRate&&(t.networkRequestsSamplingRate=N.networkRequestsSamplingRate),void 0!==r.fpr_vc_trace_sampling_rate?t.tracesSamplingRate=Number(r.fpr_vc_trace_sampling_rate):void 0!==N.tracesSamplingRate&&(t.tracesSamplingRate=N.tracesSamplingRate),r.fpr_log_max_flush_size?t.logMaxFlushSize=Number(r.fpr_log_max_flush_size):N.logMaxFlushSize&&(t.logMaxFlushSize=N.logMaxFlushSize),t.logTraceAfterSampling=Kt(t.tracesSamplingRate),t.logNetworkAfterSampling=Kt(t.networkRequestsSamplingRate)),e}function Kt(e){return Math.random()<=e}let Gt=1,Jt;function Zt(e){var r;return Gt=2,Jt=Jt||(r=e,(()=>{let r=k.getInstance().document;return new Promise(t=>{if(r&&"complete"!==r.readyState){let e=()=>{"complete"===r.readyState&&(r.removeEventListener("readystatechange",e),t())};r.addEventListener("readystatechange",e)}else t()})})().then(()=>{return e=r.installations,(t=e.getId()).then(e=>{L=e}),t;var e,t}).then(e=>$t(r,e)).then(()=>Xt(),()=>Xt()))}function Xt(){Gt=3}let Yt=1e4,Qt=1e3,er=3,tr=65536,rr=new TextEncoder,P=er,R=[],nr=!1;function ar(e){setTimeout(()=>{if(!(P<=0)){if(0<R.length){let e=R.splice(0,Qt),t=ir(e);(e=>{var t=A.getInstance().getFlTransportFullUrl();return rr.encode(e).length<=tr&&navigator.sendBeacon&&navigator.sendBeacon(t,e)?Promise.resolve():fetch(t,{method:"POST",body:e})})(t).then(()=>{P=er}).catch(()=>{R=[...e,...R],P--,M.info(`Tries left: ${P}.`),ar(Yt)})}ar(Yt)}},e)}function ir(e){var t=e.map(e=>({source_extension_json_proto3:e.message,event_time_ms:String(e.eventTime)})),t={request_time_ms:String(Date.now()),client_info:{client_type:1,js_client_info:{}},log_source:A.getInstance().logSource,log_event:t};return JSON.stringify(t)}function or(t){return(...e)=>{e={message:t(...e),eventTime:Date.now()};if(!e.eventTime||!e.message)throw C.create("invalid cc log");R=[...R,e]}}function sr(){for(var e,t=A.getInstance().getFlTransportFullUrl();0<R.length;){var r=R.splice(-A.getInstance().logMaxFlushSize),n=ir(r);if(!navigator.sendBeacon||!navigator.sendBeacon(t,n)){R=[...R,...r];break}}0<R.length&&(e=ir(R),fetch(t,{method:"POST",body:e}).catch(()=>{M.info("Failed flushing queued events.")}))}let D;function cr(e,t){(D=D||{send:or(dr),flush:sr}).send(e,t)}function lr(e){var t=A.getInstance();!t.instrumentationEnabled&&e.isAuto||(t.dataCollectionEnabled||e.isAuto)&&k.getInstance().requiredApisAvailable()&&(3===Gt?ur(e):Zt(e.performanceController).then(()=>ur(e),()=>ur(e)))}function ur(e){var t;L&&(t=A.getInstance()).loggingEnabled&&t.logTraceAfterSampling&&cr(e,1)}function dr(e,t){var r,n;return 0===t?(r={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},r={application_info:pr(e.performanceController.app),network_request_metric:r},JSON.stringify(r)):(r={name:(t=e).name,is_auto:t.isAuto,client_start_time_us:t.startTimeUs,duration_us:t.durationUs},0!==Object.keys(t.counters).length&&(r.counters=t.counters),n=t.getAttributes(),0!==Object.keys(n).length&&(r.custom_attributes=n),n={application_info:pr(t.performanceController.app),trace_metric:r},JSON.stringify(n))}function pr(e){return{google_app_id:jt(e),app_instance_id:L,web_app_info:{sdk_version:Nt,page_url:k.getInstance().getUrl(),service_worker_status:(t=k.getInstance().navigator)?.serviceWorker?t.serviceWorker.controller?2:3:1,visibility_state:(()=>{switch(k.getInstance().document.visibilityState){case"visible":return S.VISIBLE;case"hidden":return S.HIDDEN;default:return S.UNKNOWN}})(),effective_connection_type:(()=>{var e=k.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};var t}function fr(e,t){var r,n,a,i=t;i&&void 0!==i.responseStart&&(a=k.getInstance().getTimeOrigin(),a=Math.floor(1e3*(i.startTime+a)),r=i.responseStart?Math.floor(1e3*(i.responseStart-i.startTime)):void 0,n=Math.floor(1e3*(i.responseEnd-i.startTime)),i={performanceController:e,url:i.name&&i.name.split("?")[0],responsePayloadBytes:i.transferSize,startTimeUs:a,timeToResponseInitiatedUs:r,timeToResponseCompletedUs:n},t=i,(a=A.getInstance()).instrumentationEnabled)&&(r=t.url,n=a.logEndPointUrl.split("?")[0],i=a.flTransportEndpointUrl.split("?")[0],r!==n)&&r!==i&&a.loggingEnabled&&a.logNetworkAfterSampling&&cr(t,0)}let gr=["_fp","_fcp","_fid","_lcp","_cls","_inp"];class B{constructor(e,t,r=!1,n){this.performanceController=e,this.name=t,this.isAuto=r,this.state=1,this.customAttributes={},this.counters={},this.api=k.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=n||`${Pt}-${this.randomId}-`+this.name,n&&this.calculateTraceMetrics())}start(){if(1!==this.state)throw C.create("trace started",{traceName:this.name});this.api.mark(this.traceStartMark),this.state=2}stop(){if(2!==this.state)throw C.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(),lr(this)}record(e,t,r){if(e<=0)throw C.create("nonpositive trace startTime",{traceName:this.name});if(t<=0)throw C.create("nonpositive trace duration",{traceName:this.name});if(this.durationUs=Math.floor(1e3*t),this.startTimeUs=Math.floor(1e3*e),r&&r.attributes&&(this.customAttributes={...r.attributes}),r&&r.metrics)for(var n of Object.keys(r.metrics))isNaN(Number(r.metrics[n]))||(this.counters[n]=Math.floor(Number(r.metrics[n])));lr(this)}incrementMetric(e,t=1){void 0===this.counters[e]?this.putMetric(e,t):this.putMetric(e,this.counters[e]+t)}putMetric(e,t){if(n=e,a=this.name,0===n.length||100<n.length||!(a&&a.startsWith("_wt_")&&-1<gr.indexOf(n))&&n.startsWith("_"))throw C.create("invalid custom metric name",{customMetricName:e});var r,n,a;this.counters[e]=(a=t??0,(r=Math.floor(a))<a&&M.info(`Metric value should be an Integer, setting the value as : ${r}.`),r)}getMetric(e){return this.counters[e]||0}putAttribute(e,t){var r,n,a=!(0===(r=e).length||40<r.length||Ut.some(e=>r.startsWith(e))||!r.match(qt)),i=0!==(n=t).length&&n.length<=100;if(a&&i)this.customAttributes[e]=t;else{if(!a)throw C.create("invalid attribute name",{attributeName:e});if(!i)throw C.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{...this.customAttributes}}setStartTime(e){this.startTimeUs=e}setDuration(e){this.durationUs=e}calculateTraceMetrics(){var e=this.api.getEntriesByName(this.traceMeasure),e=e&&e[0];e&&(this.durationUs=Math.floor(1e3*e.duration),this.startTimeUs=Math.floor(1e3*(e.startTime+this.api.getTimeOrigin())))}static createOobTrace(e,t,r,n,a){var i=k.getInstance().getUrl();if(i){var i=new B(e,"_wt_"+i,!0),o=Math.floor(1e3*k.getInstance().getTimeOrigin());i.setStartTime(o),t&&t[0]&&(i.setDuration(Math.floor(1e3*t[0].duration)),i.putMetric("domInteractive",Math.floor(1e3*t[0].domInteractive)),i.putMetric("domContentLoadedEventEnd",Math.floor(1e3*t[0].domContentLoadedEventEnd)),i.putMetric("loadEventEnd",Math.floor(1e3*t[0].loadEventEnd)));r&&((o=r.find(e=>"first-paint"===e.name))&&o.startTime&&i.putMetric("_fp",Math.floor(1e3*o.startTime)),(o=r.find(e=>"first-contentful-paint"===e.name))&&o.startTime&&i.putMetric("_fcp",Math.floor(1e3*o.startTime)),a)&&i.putMetric("_fid",Math.floor(1e3*a)),this.addWebVitalMetric(i,"_lcp","lcp_element",n.lcp),this.addWebVitalMetric(i,"_cls","cls_largestShiftTarget",n.cls),this.addWebVitalMetric(i,"_inp","inp_interactionTarget",n.inp),lr(i),D&&D.flush()}}static addWebVitalMetric(e,t,r,n){n&&(e.putMetric(t,Math.floor(1e3*n.value)),n.elementAttribution)&&(100<n.elementAttribution.length?e.putAttribute(r,n.elementAttribution.substring(0,100)):e.putAttribute(r,n.elementAttribution))}static createUserTimingTrace(e,t){lr(new B(e,t,!1,t))}}let mr={},hr=!1,vr;function br(n){L&&(setTimeout(()=>{{var t=n;let e=k.getInstance();"onpagehide"in window?e.document.addEventListener("pagehide",()=>wr(t)):e.document.addEventListener("unload",()=>wr(t)),e.document.addEventListener("visibilitychange",()=>{"hidden"===e.document.visibilityState&&wr(t)}),e.onFirstInputDelay&&e.onFirstInputDelay(e=>{vr=e}),e.onLCP(e=>{mr.lcp={value:e.value,elementAttribution:e.attribution?.element}}),e.onCLS(e=>{mr.cls={value:e.value,elementAttribution:e.attribution?.largestShiftTarget}}),e.onINP(e=>{mr.inp={value:e.value,elementAttribution:e.attribution?.interactionTarget}})}},0),setTimeout(()=>{var e,t=n,r=k.getInstance();for(e of r.getEntriesByType("resource"))fr(t,e);r.setupObserver("resource",e=>fr(t,e))},0),setTimeout(()=>{var e,t=n,r=k.getInstance();for(e of r.getEntriesByType("measure"))yr(t,e);r.setupObserver("measure",e=>yr(t,e))},0))}function yr(e,t){var r=t.name;r.substring(0,Pt.length)!==Pt&&B.createUserTimingTrace(e,r)}function wr(r){if(!hr){hr=!0;var n=k.getInstance();let e=n.getEntriesByType("navigation"),t=n.getEntriesByType("paint");setTimeout(()=>{B.createOobTrace(r,e,t,mr,vr)},0)}}class Er{constructor(e,t){this.app=e,this.installations=t,this.initialized=!1}_init(e){this.initialized||(void 0!==e?.dataCollectionEnabled&&(this.dataCollectionEnabled=e.dataCollectionEnabled),void 0!==e?.instrumentationEnabled&&(this.instrumentationEnabled=e.instrumentationEnabled),k.getInstance().requiredApisAvailable()?new Promise((n,a)=>{try{let e=!0,t="validate-browser-context-for-indexeddb-analytics-module",r=self.indexedDB.open(t);r.onsuccess=()=>{r.result.close(),e||self.indexedDB.deleteDatabase(t),n(!0)},r.onupgradeneeded=()=>{e=!1},r.onerror=()=>{a(r.error?.message||"")}}catch(e){a(e)}}).then(e=>{e&&(nr||(ar(5500),nr=!0),Zt(this).then(()=>br(this),()=>br(this)),this.initialized=!0)}).catch(e=>{M.info("Environment doesn't support IndexedDB: "+e)}):M.info('Firebase Performance cannot start if the browser does not support "Fetch" and "Promise", or cookies are disabled.'))}set instrumentationEnabled(e){A.getInstance().instrumentationEnabled=e}get instrumentationEnabled(){return A.getInstance().instrumentationEnabled}set dataCollectionEnabled(e){A.getInstance().dataCollectionEnabled=e}get dataCollectionEnabled(){return A.getInstance().dataCollectionEnabled}}let Tr="[DEFAULT]";let _r=(e,{options:t})=>{var r=e.getProvider("app").getImmediate(),n=e.getProvider("installations-internal").getImmediate();if(r.name!==Tr)throw C.create("FB not default");if("undefined"==typeof window)throw C.create("no window");e=window,Ot=e;r=new Er(r,n);return r._init(t),r};Mr._registerComponent(new e("performance",_r,"PUBLIC")),Mr.registerVersion(Lt,At),Mr.registerVersion(Lt,At,"esm2020");class Sr{constructor(e,t){this.app=e,this._delegate=t}get instrumentationEnabled(){return this._delegate.instrumentationEnabled}set instrumentationEnabled(e){this._delegate.instrumentationEnabled=e}get dataCollectionEnabled(){return this._delegate.dataCollectionEnabled}set dataCollectionEnabled(e){this._delegate.dataCollectionEnabled=e}trace(e){return t=this._delegate,e=e,t=(r=t)&&r._delegate?r._delegate:r,new B(t,e);var t,r}}function Ir(e){var t=e.getProvider("app-compat").getImmediate(),r=e.getProvider("performance").getImmediate();return new Sr(t,r)}(I=Cr).INTERNAL.registerComponent(new e("performance-compat",Ir,"PUBLIC")),I.registerVersion("@firebase/performance-compat","0.2.27-eap-sql.a9a137e67")}).apply(this,arguments)}catch(e){throw console.error(e),new Error("Cannot instantiate firebase-performance-compat.js - be sure to load firebase-app.js first.")}});
|
|
1
|
+
((e,t)=>{"object"==typeof exports&&"undefined"!=typeof module?t(require("@firebase/app-compat"),require("@firebase/app")):"function"==typeof define&&define.amd?define(["@firebase/app-compat","@firebase/app"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).firebase,e.firebase.INTERNAL.modularAPIs)})(this,function(Cr,Mr){try{!(function(){class O extends Error{constructor(e,t,r){super(t),this.code=e,this.customData=r,this.name="FirebaseError",Object.setPrototypeOf(this,O.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,F.prototype.create)}}class F{constructor(e,t,r){this.service=e,this.serviceName=t,this.errors=r}create(e,...t){var r=t[0]||{},n=this.service+"/"+e,i=this.errors[e],i=i?((r,n)=>{try{let e=0,t="";for(;e<r.length;){var i=r.indexOf("{$",e);if(-1===i){t+=r.substring(e);break}var a=r.indexOf("}",i+2);if(-1===a){t+=r.substring(e);break}var o=r.substring(i+2,a),s=n[o];t+=r.substring(e,i)+(null!=s?String(s):`<${o}?>`),e=a+1}return t}catch(e){return r}})(i,r):"Error",i=this.serviceName+`: ${i} (${n}).`;return new O(n,i,r)}}class e{constructor(e,t,r){this.name=e,this.instanceFactory=t,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}var t;(I=t=t||{})[I.DEBUG=0]="DEBUG",I[I.VERBOSE=1]="VERBOSE",I[I.INFO=2]="INFO",I[I.WARN=3]="WARN",I[I.ERROR=4]="ERROR",I[I.SILENT=5]="SILENT";let x={debug:t.DEBUG,verbose:t.VERBOSE,info:t.INFO,warn:t.WARN,error:t.ERROR,silent:t.SILENT},U=t.INFO,q={[t.DEBUG]:"log",[t.VERBOSE]:"log",[t.INFO]:"info",[t.WARN]:"warn",[t.ERROR]:"error"},j=(e,t,...r)=>{if(!(t<e.logLevel)){var n=(new Date).toISOString(),i=q[t];if(!i)throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`);console[i](`[${n}] ${e.name}:`,...r)}};function H(e){if("loading"===document.readyState)return"loading";var t=u();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"}function V(e,t){var r="";try{for(;e&&9!==e.nodeType;){var n=e,i=n.id?"#"+n.id:Q(n)+(n.classList&&n.classList.value&&n.classList.value.trim()&&n.classList.value.trim().length?"."+n.classList.value.trim().replace(/\s+/g,"."):"");if(r.length+i.length>(t||100)-1)return r||i;if(r=r?i+">"+r:i,n.id)break;e=n.parentNode}}catch(e){}return r}function $(i,e){var o,s,a,c;o=function(e){r={},(e=e).entries.length&&(t=e.entries.reduce(function(e,t){return e&&e.value>t.value?e:t}))&&t.sources&&t.sources.length&&(n=(n=t.sources).find(function(e){return e.node&&1===e.node.nodeType})||n[0])&&(r={largestShiftTarget:V(n.node),largestShiftTime:t.startTime,largestShiftValue:t.value,largestShiftSource:n,largestShiftEntry:t,loadState:H(t.startTime)});var t,r,n=Object.assign(e,{attribution:r});i(n)},s=e||{},a=ie(function(){function e(e){e.forEach(function(e){var t,r;e.hadRecentInput||(t=i[0],r=i[i.length-1],n&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(n+=e.value,i.push(e)):(n=e.value,i=[e]))}),n>r.value&&(r.value=n,r.entries=i,t())}var t,r=p("CLS",0),n=0,i=[],a=f("layout-shift",e);a&&(t=g(o,r,de,s.reportAllChanges),m(function(){e(a.takeRecords()),t(!0)}),d(function(){r=p("CLS",n=0),t=g(o,r,de,s.reportAllChanges),ne(function(){return t()})}),setTimeout(t,0))}),c=c||{},le(function(){var t,r=ce(),n=p("FCP"),i=f("paint",function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(i.disconnect(),e.startTime<r.firstHiddenTime)&&(n.value=Math.max(e.startTime-re(),0),n.entries.push(e),t(!0))})});i&&(t=g(a,n,ue,c.reportAllChanges),d(function(e){n=p("FCP"),t=g(a,n,ue,c.reportAllChanges),ne(function(){n.value=performance.now()-e.timeStamp,t(!0)})}))})}function W(a,o){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(o=o||{},le(function(){var e;he();function t(t){Ee(function(){t.forEach(we);var e=be();e&&e.latency!==r.value&&(r.value=e.latency,r.entries=e.entries,i())})}var r=p("INP"),n=f("event",t,{durationThreshold:null!=(e=o.durationThreshold)?e:40}),i=g(a,r,Te,o.reportAllChanges);n&&(n.observe({type:"first-input",buffered:!0}),m(function(){t(n.takeRecords()),i(!0)}),d(function(){ve=me(),s.length=0,c.clear(),r=p("INP"),i=g(a,r,Te,o.reportAllChanges)}))}))}function z(e){o=o.concat(e),Ce()}function K(){10<h.size&&h.forEach(function(e,t){c.has(t)||h.delete(t)});var r=s.map(function(e){return Se.get(e.entries[0])}),n=l.length-50;l=l.filter(function(e,t){return n<=t||r.includes(e)});for(var i=new Set,e=0;e<l.length;e++){var t=l[e];Me(t.startTime,t.processingEnd).forEach(function(e){i.add(e)})}var a=o.length-1-50;o=o.filter(function(e,t){return e.startTime>_e&&a<t||i.has(e)}),Ie=-1}function G(c,e){X=X||f("long-animation-frame",z),W(function(e){t=(e=e).entries[0],s=Se.get(t),r=t.processingStart,n=s.processingEnd,s=s.entries.sort(function(e,t){return e.processingStart-t.processingStart}),i=Me(t.startTime,n),a=(a=e.entries.find(function(e){return e.target}))&&a.target||h.get(t.interactionId),o=[t.startTime+t.duration,n].concat(i.map(function(e){return e.startTime+e.duration})),o=Math.max.apply(Math,o),a={interactionTarget:V(a),interactionTargetElement:a,interactionType:t.name.startsWith("key")?"keyboard":"pointer",interactionTime:t.startTime,nextPaintTime:o,processedEventEntries:s,longAnimationFrameEntries:i,inputDelay:r-t.startTime,processingDuration:n-r,presentationDelay:Math.max(o-n,0),loadState:H(t.startTime)};var t,r,n,i,a,o,s=Object.assign(e,{attribution:a});c(s)},e)}function J(l,e){var o,s;o=function(e){s={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:(e=e).value},e.entries.length&&(t=u())&&(o=t.activationStart||0,n=(r=e.entries[e.entries.length-1]).url&&performance.getEntriesByType("resource").filter(function(e){return e.name===r.url})[0],c=Math.max(0,t.responseStart-o),i=Math.max(c,n?(n.requestStart||n.startTime)-o:0),a=Math.max(i,n?n.responseEnd-o:0),o=Math.max(a,r.startTime-o),s={element:V(r.element),timeToFirstByte:c,resourceLoadDelay:i-c,resourceLoadDuration:a-i,elementRenderDelay:o-a,navigationEntry:t,lcpEntry:r},r.url&&(s.url=r.url),n)&&(s.lcpResourceEntry=n);var t,r,n,i,a,o,s,c=Object.assign(e,{attribution:s});l(c)},s=e||{},le(function(){function e(e){(e=s.reportAllChanges?e:e.slice(-1)).forEach(function(e){e.startTime<n.firstHiddenTime&&(i.value=Math.max(e.startTime-re(),0),i.entries=[e],t())})}var t,r,n=ce(),i=p("LCP"),a=f("largest-contentful-paint",e);a&&(t=g(o,i,ke,s.reportAllChanges),r=ie(function(){Le[i.id]||(e(a.takeRecords()),a.disconnect(),Le[i.id]=!0,t(!0))}),["keydown","click"].forEach(function(e){addEventListener(e,function(){return Ee(r)},{once:!0,capture:!0})}),m(r),d(function(e){i=p("LCP"),t=g(o,i,ke,s.reportAllChanges),ne(function(){i.value=performance.now()-e.timeStamp,Le[i.id]=!0,t(!0)})}))})}var Z,X,Y,u=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&0<e.responseStart&&e.responseStart<performance.now())return e},Q=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},ee=-1,te=function(){return ee},d=function(t){addEventListener("pageshow",function(e){e.persisted&&(ee=e.timeStamp,t(e))},!0)},re=function(){var e=u();return e&&e.activationStart||0},p=function(e,t){var r=u(),n="navigate";return 0<=te()?n="back-forward-cache":r&&(document.prerendering||0<re()?n="prerender":document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},f=function(e,t,r){try{var n;if(PerformanceObserver.supportedEntryTypes.includes(e))return(n=new PerformanceObserver(function(e){Promise.resolve().then(function(){t(e.getEntries())})})).observe(Object.assign({type:e,buffered:!0},r||{})),n}catch(e){}},g=function(t,r,n,i){var a,o;return function(e){0<=r.value&&(e||i)&&((o=r.value-(a||0))||void 0===a)&&(a=r.value,r.delta=o,r.rating=(e=r.value)>n[1]?"poor":e>n[0]?"needs-improvement":"good",t(r))}},ne=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},m=function(e){document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&e()})},ie=function(e){var t=!1;return function(){t||(e(),t=!0)}},r=-1,ae=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},n=function(e){"hidden"===document.visibilityState&&-1<r&&(r="visibilitychange"===e.type?e.timeStamp:0,se())},oe=function(){addEventListener("visibilitychange",n,!0),addEventListener("prerenderingchange",n,!0)},se=function(){removeEventListener("visibilitychange",n,!0),removeEventListener("prerenderingchange",n,!0)},ce=function(){return r<0&&(r=ae(),oe(),d(function(){setTimeout(function(){r=ae(),oe()},0)})),{get firstHiddenTime(){return r}}},le=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},ue=[1800,3e3],de=[.1,.25],pe=0,fe=1/0,i=0,ge=function(e){e.forEach(function(e){e.interactionId&&(fe=Math.min(fe,e.interactionId),i=Math.max(i,e.interactionId),pe=i?(i-fe)/7+1:0)})},me=function(){return Z?pe:performance.interactionCount||0},he=function(){"interactionCount"in performance||(Z=Z||f("event",ge,{type:"event",buffered:!0,durationThreshold:0}))},s=[],c=new Map,ve=0,be=function(){var e=Math.min(s.length-1,Math.floor((me()-ve)/50));return s[e]},ye=[],we=function(t){var e,r;ye.forEach(function(e){return e(t)}),!t.interactionId&&"first-input"!==t.entryType||(r=s[s.length-1],((e=c.get(t.interactionId))||s.length<10||t.duration>r.latency)&&(e?t.duration>e.latency?(e.entries=[t],e.latency=t.duration):t.duration===e.latency&&t.startTime===e.entries[0].startTime&&e.entries.push(t):(r={id:t.interactionId,latency:t.duration,entries:[t]},c.set(r.id,r),s.push(r)),s.sort(function(e,t){return t.latency-e.latency}),10<s.length)&&s.splice(10).forEach(function(e){return c.delete(e.id)}))},Ee=function(e){var t=self.requestIdleCallback||self.setTimeout,r=-1;return e=ie(e),"hidden"===document.visibilityState?e():(r=t(e),m(e)),r},Te=[200,500],o=[],l=[],_e=0,Se=new WeakMap,h=new Map,Ie=-1,Ce=function(){Ie<0&&(Ie=Ee(K))},Me=(ye.push(function(e){e.interactionId&&e.target&&!h.has(e.interactionId)&&h.set(e.interactionId,e.target)},function(e){var t,r=e.startTime+e.duration;_e=Math.max(_e,e.processingEnd);for(var n=l.length-1;0<=n;n--){var i=l[n];if(Math.abs(r-i.renderTime)<=8){(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:r,entries:[e]},l.push(t)),!e.interactionId&&"first-input"!==e.entryType||Se.set(e,t),Ce()}),function(e,t){for(var r,n=[],i=0;r=o[i];i++)if(!(r.startTime+r.duration<e)){if(r.startTime>t)break;n.push(r)}return n}),ke=[2500,4e3],Le={};let Ae=(t,e)=>e.some(e=>t instanceof e),Ne,Pe;let Re=new WeakMap,De=new WeakMap,Be=new WeakMap,Oe=new WeakMap,Fe=new WeakMap;let xe={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return De.get(e);if("objectStoreNames"===t)return e.objectStoreNames||Be.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return v(e[t])},set(e,t,r){return e[t]=r,!0},has(e,t){return e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e}};function Ue(n){return n!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(Pe=Pe||[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey]).includes(n)?function(...e){return n.apply(je(this),e),v(Re.get(this))}:function(...e){return v(n.apply(je(this),e))}:function(e,...t){var r=n.call(je(this),e,...t);return Be.set(r,e.sort?e.sort():[e]),v(r)}}function qe(e){var a,t;return"function"==typeof e?Ue(e):(e instanceof IDBTransaction&&(a=e,De.has(a)||(t=new Promise((e,t)=>{let r=()=>{a.removeEventListener("complete",n),a.removeEventListener("error",i),a.removeEventListener("abort",i)},n=()=>{e(),r()},i=()=>{t(a.error||new DOMException("AbortError","AbortError")),r()};a.addEventListener("complete",n),a.addEventListener("error",i),a.addEventListener("abort",i)}),De.set(a,t))),Ae(e,Ne=Ne||[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])?new Proxy(e,xe):e)}function v(e){var a,t;return e instanceof IDBRequest?(a=e,(t=new Promise((e,t)=>{let r=()=>{a.removeEventListener("success",n),a.removeEventListener("error",i)},n=()=>{e(v(a.result)),r()},i=()=>{t(a.error),r()};a.addEventListener("success",n),a.addEventListener("error",i)})).then(e=>{e instanceof IDBCursor&&Re.set(e,a)}).catch(()=>{}),Fe.set(t,a),t):Oe.has(e)?Oe.get(e):((t=qe(e))!==e&&(Oe.set(e,t),Fe.set(t,e)),t)}let je=e=>Fe.get(e);let He=["get","getKey","getAll","getAllKeys","count"],Ve=["put","add","delete","clear"],$e=new Map;function We(e,t){if(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t){if($e.get(t))return $e.get(t);let i=t.replace(/FromIndex$/,""),a=t!==i,o=Ve.includes(i);var r;return i in(a?IDBIndex:IDBObjectStore).prototype&&(o||He.includes(i))?(r=async function(e,...t){var r=this.transaction(e,o?"readwrite":"readonly");let n=r.store;return a&&(n=n.index(t.shift())),(await Promise.all([n[i](...t),o&&r.done]))[0]},$e.set(t,r),r):void 0}}xe={...Y=xe,get:(e,t,r)=>We(e,t)||Y.get(e,t,r),has:(e,t)=>!!We(e,t)||Y.has(e,t)};var a="@firebase/installations",ze="0.6.24-eap-sql.b903ef716";let Ke=1e4,Ge="w:"+ze,Je="FIS_v2",Ze="https://firebaseinstallations.googleapis.com/v1",Xe=36e5;let b=new F("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 Ye(e){return e instanceof O&&e.code.includes("request-failed")}function Qe({projectId:e}){return Ze+`/projects/${e}/installations`}function et(e){return{token:e.token,requestStatus:2,expiresIn:Number(e.expiresIn.replace("s","000")),creationTime:Date.now()}}async function tt(e,t){var r=(await t.json()).error;return b.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function rt({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function nt(e,{refreshToken:t}){var r=rt(e);return r.append("Authorization",(e=t,Je+" "+e)),r}async function it(e){var t=await e();return 500<=t.status&&t.status<600?e():t}function at(t){return new Promise(e=>{setTimeout(e,t)})}let ot=/^[cdef][\w-]{21}$/,st="";function ct(){try{var e=new Uint8Array(17),t=((self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16,(e=>btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_"))(e).substr(0,22));return ot.test(t)?t:st}catch{return st}}function y(e){return e.appName+"!"+e.appId}let lt=new Map;function ut(e,t){var r=y(e),e=(dt(r,t),r),r=(()=>(!w&&"BroadcastChannel"in self&&((w=new BroadcastChannel("[Firebase] FID Change")).onmessage=e=>{dt(e.data.key,e.data.fid)}),w))();r&&r.postMessage({key:e,fid:t}),0===lt.size&&w&&(w.close(),w=null)}function dt(e,t){var r=lt.get(e);if(r)for(var n of r)n(t)}let w=null;let pt="firebase-installations-database",ft=1,E="firebase-installations-store",gt=null;function mt(){return gt=gt||((e,t,{blocked:r,upgrade:n,blocking:i,terminated:a})=>{let o=indexedDB.open(e,t);var s=v(o);return n&&o.addEventListener("upgradeneeded",e=>{n(v(o.result),e.oldVersion,e.newVersion,v(o.transaction),e)}),r&&o.addEventListener("blocked",e=>r(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})(pt,ft,{upgrade:(e,t)=>{0===t&&e.createObjectStore(E)}})}async function T(e,t){var r=y(e),n=(await mt()).transaction(E,"readwrite"),i=n.objectStore(E),a=await i.get(r);return await i.put(t,r),await n.done,a&&a.fid===t.fid||ut(e,t.fid),t}async function ht(e){var t=y(e),r=(await mt()).transaction(E,"readwrite");await r.objectStore(E).delete(t),await r.done}async function _(e,t){var r=y(e),n=(await mt()).transaction(E,"readwrite"),i=n.objectStore(E),a=await i.get(r),o=t(a);return void 0===o?await i.delete(r):await i.put(o,r),await n.done,!o||a&&a.fid===o.fid||ut(e,o.fid),o}async function vt(r){let n;var e=await _(r.appConfig,e=>{var t=yt(e||{fid:ct(),registrationStatus:0}),t=((e,t)=>{var r,n;return 0===t.registrationStatus?navigator.onLine?(r={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},n=(async(t,r)=>{try{var e=await(async({appConfig:e,heartbeatServiceProvider:t},{fid:r})=>{let n=Qe(e);var i=rt(e),a=((a=t.getImmediate({optional:!0}))&&(a=await a.getHeartbeatsHeader())&&i.append("x-firebase-client",a),{fid:r,authVersion:Je,appId:e.appId,sdkVersion:Ge});let o={method:"POST",headers:i,body:JSON.stringify(a)};if((i=await it(()=>fetch(n,o))).ok)return{fid:(a=await i.json()).fid||r,registrationStatus:2,refreshToken:a.refreshToken,authToken:et(a.authToken)};throw await tt("Create Installation",i)})(t,r);return T(t.appConfig,e)}catch(e){throw Ye(e)&&409===e.customData.serverCode?await ht(t.appConfig):await T(t.appConfig,{fid:r.fid,registrationStatus:0}),e}})(e,r),{installationEntry:r,registrationPromise:n}):(r=Promise.reject(b.create("app-offline")),{installationEntry:t,registrationPromise:r}):1===t.registrationStatus?{installationEntry:t,registrationPromise:(async e=>{let t=await bt(e.appConfig);for(;1===t.registrationStatus;)await at(100),t=await bt(e.appConfig);var r,n;return 0!==t.registrationStatus?t:({installationEntry:r,registrationPromise:n}=await vt(e),n||r)})(e)}:{installationEntry:t}})(r,t);return n=t.registrationPromise,t.installationEntry});return e.fid===st?{installationEntry:await n}:{installationEntry:e,registrationPromise:n}}function bt(e){return _(e,e=>{if(e)return yt(e);throw b.create("installation-not-found")})}function yt(e){var t;return 1===(t=e).registrationStatus&&t.registrationTime+Ke<Date.now()?{fid:e.fid,registrationStatus:0}:e}async function wt({appConfig:e,heartbeatServiceProvider:t},r){[i,a]=[e,r.fid];let n=Qe(i)+`/${a}/authTokens:generate`;var i,a,o=nt(e,r),s=t.getImmediate({optional:!0}),s=(s&&(s=await s.getHeartbeatsHeader())&&o.append("x-firebase-client",s),{installation:{sdkVersion:Ge,appId:e.appId}});let c={method:"POST",headers:o,body:JSON.stringify(s)};o=await it(()=>fetch(n,c));if(o.ok)return et(await o.json());throw await tt("Generate Auth Token",o)}async function Et(n,i=!1){let a;var e=await _(n.appConfig,e=>{if(!_t(e))throw b.create("not-registered");var t,r=e.authToken;if(i||2!==(t=r).requestStatus||(e=>{var t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+Xe})(t)){if(1===r.requestStatus)return a=(async(e,t)=>{let r=await Tt(e.appConfig);for(;1===r.authToken.requestStatus;)await at(100),r=await Tt(e.appConfig);var n=r.authToken;return 0===n.requestStatus?Et(e,t):n})(n,i),e;if(navigator.onLine)return t=e,r={requestStatus:1,requestTime:Date.now()},r={...t,authToken:r},a=(async(t,r)=>{try{var e=await wt(t,r),n={...r,authToken:e};return await T(t.appConfig,n),e}catch(e){var i;throw!Ye(e)||401!==e.customData.serverCode&&404!==e.customData.serverCode?(i={...r,authToken:{requestStatus:0}},await T(t.appConfig,i)):await ht(t.appConfig),e}})(n,r),r;throw b.create("app-offline")}return e});return a?await a:e.authToken}function Tt(e){return _(e,e=>{var t,r;if(_t(e))return t=e.authToken,1===(r=t).requestStatus&&r.requestTime+Ke<Date.now()?{...e,authToken:{requestStatus:0}}:e;throw b.create("not-registered")})}function _t(e){return void 0!==e&&2===e.registrationStatus}async function St(e,t=!1){var r=e,n=(await(!(n=(await vt(r)).registrationPromise)||!await n),await Et(r,t));return n.token}function It(e){return b.create("missing-app-config-values",{valueName:e})}let Ct="installations",Mt=e=>{var t=e.getProvider("app").getImmediate();return{app:t,appConfig:(e=>{if(!e||!e.options)throw It("App Configuration");if(!e.name)throw It("App Name");var t;for(t of["projectId","apiKey","appId"])if(!e.options[t])throw It(t);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}})(t),heartbeatServiceProvider:Mr._getProvider(t,"heartbeat"),_delete:()=>Promise.resolve()}},kt=e=>{var t=e.getProvider("app").getImmediate();let r=Mr._getProvider(t,Ct).getImmediate();return{getId:()=>(async e=>{var t=e,{installationEntry:r,registrationPromise:n}=await vt(t);return(n||Et(t)).catch(console.error),r.fid})(r),getToken:e=>St(r,e)}};Mr._registerComponent(new e(Ct,Mt,"PUBLIC")),Mr._registerComponent(new e("installations-internal",kt,"PRIVATE")),Mr.registerVersion(a,ze),Mr.registerVersion(a,ze,"esm2020");let Lt="@firebase/performance",At="0.7.14-eap-sql.b903ef716",Nt=At,Pt="FB-PERF-TRACE-MEASURE",Rt="@firebase/performance/config",Dt="@firebase/performance/configexpire";var S,I,a="Performance";let C=new F("performance",a,{"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."}),M=new class{constructor(e){this.name=e,this._logLevel=U,this._logHandler=j,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in t))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?x[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,t.DEBUG,...e),this._logHandler(this,t.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,t.VERBOSE,...e),this._logHandler(this,t.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,t.INFO,...e),this._logHandler(this,t.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,t.WARN,...e),this._logHandler(this,t.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,t.ERROR,...e),this._logHandler(this,t.ERROR,...e)}}(a);M.logLevel=t.INFO;let Bt,Ot;class k{constructor(e){if(!(this.window=e))throw C.create("no window");this.performance=e.performance,this.PerformanceObserver=e.PerformanceObserver,this.windowLocation=e.location,this.navigator=e.navigator,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=J,this.onINP=G,this.onCLS=$}getUrl(){return this.windowLocation.href.split("?")[0]}mark(e){this.performance&&this.performance.mark&&this.performance.mark(e)}measure(e,t,r){this.performance&&this.performance.measure&&this.performance.measure(e,t,r)}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&&"undefined"!=typeof navigator&&navigator.cookieEnabled?!!(()=>{try{return"object"==typeof indexedDB}catch(e){}})()||(M.info("IndexedDB is not supported by current browser"),!1):(M.info("Firebase Performance cannot start if browser does not support fetch and Promise or cookie is disabled."),!1)}setupObserver(e,r){this.PerformanceObserver&&new this.PerformanceObserver(e=>{for(var t of e.getEntries())r(t)}).observe({entryTypes:[e]})}static getInstance(){return Bt=void 0===Bt?new k(Ot):Bt}}let L;function Ft(e,t){var r=e.length-t.length;if(r<0||1<r)throw C.create("invalid String merger input");var n=[];for(let i=0;i<e.length;i++)n.push(e.charAt(i)),t.length>i&&n.push(t.charAt(i));return n.join("")}let xt;class A{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=Ft("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),this.transportKey=Ft("AzSC8r6ReiGqFMyfvgow","Iayx0u-XT3vksVM-pIV"),this.logSource=462,this.logTraceAfterSampling=!1,this.logNetworkAfterSampling=!1,this.configTimeToLive=12,this.logMaxFlushSize=40}getFlTransportFullUrl(){return this.flTransportEndpointUrl.concat("?key=",this.transportKey)}static getInstance(){return xt=void 0===xt?new A:xt}}(I=S=S||{})[I.UNKNOWN=0]="UNKNOWN",I[I.VISIBLE=1]="VISIBLE",I[I.HIDDEN=2]="HIDDEN";let Ut=["firebase_","google_","ga_"],qt=new RegExp("^[a-zA-Z]\\w*$");function jt(e){var t=e.options?.appId;if(t)return t;throw C.create("no app id")}let Ht="0.0.1",N={loggingEnabled:!0},Vt="FIREBASE_INSTALLATIONS_AUTH";function $t(e,t){var n,i,r=(()=>{var e=k.getInstance().localStorage;if(e){var t=e.getItem(Dt);if(t&&(e=>Number(e)>Date.now())(t)){t=e.getItem(Rt);if(t)try{return JSON.parse(t)}catch{}}}})();return r?(zt(r),Promise.resolve()):(i=t,(e=>{var t=e.getToken();return t.then(e=>{}),t})((n=e).installations).then(e=>{var t=(e=>{var t=e.options?.projectId;if(t)return t;throw C.create("no project id")})(n.app),r=(e=>{var t=e.options?.apiKey;if(t)return t;throw C.create("no api key")})(n.app),t=new Request(`https://firebaseremoteconfig.googleapis.com/v1/projects/${t}/namespaces/fireperf:fetch?key=`+r,{method:"POST",headers:{Authorization:Vt+" "+e},body:JSON.stringify({app_instance_id:i,app_instance_id_token:e,app_id:jt(n.app),app_version:Nt,sdk_version:Ht})});return fetch(t).then(e=>{if(e.ok)return e.json();throw C.create("RC response not ok")})}).catch(()=>{M.info(Wt)}).then(zt).then(e=>{var t;e=e,t=k.getInstance().localStorage,e&&t&&(t.setItem(Rt,JSON.stringify(e)),t.setItem(Dt,String(Date.now()+60*A.getInstance().configTimeToLive*60*1e3)))},()=>{}))}let Wt="Could not fetch config, will use default configs";function zt(e){var t,r;return e&&(t=A.getInstance(),void 0!==(r=e.entries||{}).fpr_enabled?t.loggingEnabled="true"===String(r.fpr_enabled):t.loggingEnabled=N.loggingEnabled,r.fpr_log_source?t.logSource=Number(r.fpr_log_source):N.logSource&&(t.logSource=N.logSource),r.fpr_log_endpoint_url?t.logEndPointUrl=r.fpr_log_endpoint_url:N.logEndPointUrl&&(t.logEndPointUrl=N.logEndPointUrl),r.fpr_log_transport_key?t.transportKey=r.fpr_log_transport_key:N.transportKey&&(t.transportKey=N.transportKey),void 0!==r.fpr_vc_network_request_sampling_rate?t.networkRequestsSamplingRate=Number(r.fpr_vc_network_request_sampling_rate):void 0!==N.networkRequestsSamplingRate&&(t.networkRequestsSamplingRate=N.networkRequestsSamplingRate),void 0!==r.fpr_vc_trace_sampling_rate?t.tracesSamplingRate=Number(r.fpr_vc_trace_sampling_rate):void 0!==N.tracesSamplingRate&&(t.tracesSamplingRate=N.tracesSamplingRate),r.fpr_log_max_flush_size?t.logMaxFlushSize=Number(r.fpr_log_max_flush_size):N.logMaxFlushSize&&(t.logMaxFlushSize=N.logMaxFlushSize),t.logTraceAfterSampling=Kt(t.tracesSamplingRate),t.logNetworkAfterSampling=Kt(t.networkRequestsSamplingRate)),e}function Kt(e){return Math.random()<=e}let Gt=1,Jt;function Zt(e){var r;return Gt=2,Jt=Jt||(r=e,(()=>{let r=k.getInstance().document;return new Promise(t=>{if(r&&"complete"!==r.readyState){let e=()=>{"complete"===r.readyState&&(r.removeEventListener("readystatechange",e),t())};r.addEventListener("readystatechange",e)}else t()})})().then(()=>{return e=r.installations,(t=e.getId()).then(e=>{L=e}),t;var e,t}).then(e=>$t(r,e)).then(()=>Xt(),()=>Xt()))}function Xt(){Gt=3}let Yt=1e4,Qt=1e3,er=3,tr=65536,rr=new TextEncoder,P=er,R=[],nr=!1;function ir(e){setTimeout(()=>{if(!(P<=0)){if(0<R.length){let e=R.splice(0,Qt),t=ar(e);(e=>{var t=A.getInstance().getFlTransportFullUrl();return rr.encode(e).length<=tr&&navigator.sendBeacon&&navigator.sendBeacon(t,e)?Promise.resolve():fetch(t,{method:"POST",body:e})})(t).then(()=>{P=er}).catch(()=>{R=[...e,...R],P--,M.info(`Tries left: ${P}.`),ir(Yt)})}ir(Yt)}},e)}function ar(e){var t=e.map(e=>({source_extension_json_proto3:e.message,event_time_ms:String(e.eventTime)})),t={request_time_ms:String(Date.now()),client_info:{client_type:1,js_client_info:{}},log_source:A.getInstance().logSource,log_event:t};return JSON.stringify(t)}function or(t){return(...e)=>{e={message:t(...e),eventTime:Date.now()};if(!e.eventTime||!e.message)throw C.create("invalid cc log");R=[...R,e]}}function sr(){for(var e,t=A.getInstance().getFlTransportFullUrl();0<R.length;){var r=R.splice(-A.getInstance().logMaxFlushSize),n=ar(r);if(!navigator.sendBeacon||!navigator.sendBeacon(t,n)){R=[...R,...r];break}}0<R.length&&(e=ar(R),fetch(t,{method:"POST",body:e}).catch(()=>{M.info("Failed flushing queued events.")}))}let D;function cr(e,t){(D=D||{send:or(dr),flush:sr}).send(e,t)}function lr(e){var t=A.getInstance();!t.instrumentationEnabled&&e.isAuto||(t.dataCollectionEnabled||e.isAuto)&&k.getInstance().requiredApisAvailable()&&(3===Gt?ur(e):Zt(e.performanceController).then(()=>ur(e),()=>ur(e)))}function ur(e){var t;L&&(t=A.getInstance()).loggingEnabled&&t.logTraceAfterSampling&&cr(e,1)}function dr(e,t){var r,n;return 0===t?(r={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},r={application_info:pr(e.performanceController.app),network_request_metric:r},JSON.stringify(r)):(r={name:(t=e).name,is_auto:t.isAuto,client_start_time_us:t.startTimeUs,duration_us:t.durationUs},0!==Object.keys(t.counters).length&&(r.counters=t.counters),n=t.getAttributes(),0!==Object.keys(n).length&&(r.custom_attributes=n),n={application_info:pr(t.performanceController.app),trace_metric:r},JSON.stringify(n))}function pr(e){return{google_app_id:jt(e),app_instance_id:L,web_app_info:{sdk_version:Nt,page_url:k.getInstance().getUrl(),service_worker_status:(t=k.getInstance().navigator)?.serviceWorker?t.serviceWorker.controller?2:3:1,visibility_state:(()=>{switch(k.getInstance().document.visibilityState){case"visible":return S.VISIBLE;case"hidden":return S.HIDDEN;default:return S.UNKNOWN}})(),effective_connection_type:(()=>{var e=k.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};var t}function fr(e,t){var r,n,i,a=t;a&&void 0!==a.responseStart&&(i=k.getInstance().getTimeOrigin(),i=Math.floor(1e3*(a.startTime+i)),r=a.responseStart?Math.floor(1e3*(a.responseStart-a.startTime)):void 0,n=Math.floor(1e3*(a.responseEnd-a.startTime)),a={performanceController:e,url:a.name&&a.name.split("?")[0],responsePayloadBytes:a.transferSize,startTimeUs:i,timeToResponseInitiatedUs:r,timeToResponseCompletedUs:n},t=a,(i=A.getInstance()).instrumentationEnabled)&&(r=t.url,n=i.logEndPointUrl.split("?")[0],a=i.flTransportEndpointUrl.split("?")[0],r!==n)&&r!==a&&i.loggingEnabled&&i.logNetworkAfterSampling&&cr(t,0)}let gr=["_fp","_fcp","_fid","_lcp","_cls","_inp"];class B{constructor(e,t,r=!1,n){this.performanceController=e,this.name=t,this.isAuto=r,this.state=1,this.customAttributes={},this.counters={},this.api=k.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=n||`${Pt}-${this.randomId}-`+this.name,n&&this.calculateTraceMetrics())}start(){if(1!==this.state)throw C.create("trace started",{traceName:this.name});this.api.mark(this.traceStartMark),this.state=2}stop(){if(2!==this.state)throw C.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(),lr(this)}record(e,t,r){if(e<=0)throw C.create("nonpositive trace startTime",{traceName:this.name});if(t<=0)throw C.create("nonpositive trace duration",{traceName:this.name});if(this.durationUs=Math.floor(1e3*t),this.startTimeUs=Math.floor(1e3*e),r&&r.attributes&&(this.customAttributes={...r.attributes}),r&&r.metrics)for(var n of Object.keys(r.metrics))isNaN(Number(r.metrics[n]))||(this.counters[n]=Math.floor(Number(r.metrics[n])));lr(this)}incrementMetric(e,t=1){void 0===this.counters[e]?this.putMetric(e,t):this.putMetric(e,this.counters[e]+t)}putMetric(e,t){if(n=e,i=this.name,0===n.length||100<n.length||!(i&&i.startsWith("_wt_")&&-1<gr.indexOf(n))&&n.startsWith("_"))throw C.create("invalid custom metric name",{customMetricName:e});var r,n,i;this.counters[e]=(i=t??0,(r=Math.floor(i))<i&&M.info(`Metric value should be an Integer, setting the value as : ${r}.`),r)}getMetric(e){return this.counters[e]||0}putAttribute(e,t){var r,n,i=!(0===(r=e).length||40<r.length||Ut.some(e=>r.startsWith(e))||!r.match(qt)),a=0!==(n=t).length&&n.length<=100;if(i&&a)this.customAttributes[e]=t;else{if(!i)throw C.create("invalid attribute name",{attributeName:e});if(!a)throw C.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{...this.customAttributes}}setStartTime(e){this.startTimeUs=e}setDuration(e){this.durationUs=e}calculateTraceMetrics(){var e=this.api.getEntriesByName(this.traceMeasure),e=e&&e[0];e&&(this.durationUs=Math.floor(1e3*e.duration),this.startTimeUs=Math.floor(1e3*(e.startTime+this.api.getTimeOrigin())))}static createOobTrace(e,t,r,n,i){var a=k.getInstance().getUrl();if(a){var a=new B(e,"_wt_"+a,!0),o=Math.floor(1e3*k.getInstance().getTimeOrigin());a.setStartTime(o),t&&t[0]&&(a.setDuration(Math.floor(1e3*t[0].duration)),a.putMetric("domInteractive",Math.floor(1e3*t[0].domInteractive)),a.putMetric("domContentLoadedEventEnd",Math.floor(1e3*t[0].domContentLoadedEventEnd)),a.putMetric("loadEventEnd",Math.floor(1e3*t[0].loadEventEnd)));r&&((o=r.find(e=>"first-paint"===e.name))&&o.startTime&&a.putMetric("_fp",Math.floor(1e3*o.startTime)),(o=r.find(e=>"first-contentful-paint"===e.name))&&o.startTime&&a.putMetric("_fcp",Math.floor(1e3*o.startTime)),i)&&a.putMetric("_fid",Math.floor(1e3*i)),this.addWebVitalMetric(a,"_lcp","lcp_element",n.lcp),this.addWebVitalMetric(a,"_cls","cls_largestShiftTarget",n.cls),this.addWebVitalMetric(a,"_inp","inp_interactionTarget",n.inp),lr(a),D&&D.flush()}}static addWebVitalMetric(e,t,r,n){n&&(e.putMetric(t,Math.floor(1e3*n.value)),n.elementAttribution)&&(100<n.elementAttribution.length?e.putAttribute(r,n.elementAttribution.substring(0,100)):e.putAttribute(r,n.elementAttribution))}static createUserTimingTrace(e,t){lr(new B(e,t,!1,t))}}let mr={},hr=!1,vr;function br(n){L&&(setTimeout(()=>{{var t=n;let e=k.getInstance();"onpagehide"in window?e.document.addEventListener("pagehide",()=>wr(t)):e.document.addEventListener("unload",()=>wr(t)),e.document.addEventListener("visibilitychange",()=>{"hidden"===e.document.visibilityState&&wr(t)}),e.onFirstInputDelay&&e.onFirstInputDelay(e=>{vr=e}),e.onLCP(e=>{mr.lcp={value:e.value,elementAttribution:e.attribution?.element}}),e.onCLS(e=>{mr.cls={value:e.value,elementAttribution:e.attribution?.largestShiftTarget}}),e.onINP(e=>{mr.inp={value:e.value,elementAttribution:e.attribution?.interactionTarget}})}},0),setTimeout(()=>{var e,t=n,r=k.getInstance();for(e of r.getEntriesByType("resource"))fr(t,e);r.setupObserver("resource",e=>fr(t,e))},0),setTimeout(()=>{var e,t=n,r=k.getInstance();for(e of r.getEntriesByType("measure"))yr(t,e);r.setupObserver("measure",e=>yr(t,e))},0))}function yr(e,t){var r=t.name;r.substring(0,Pt.length)!==Pt&&B.createUserTimingTrace(e,r)}function wr(r){if(!hr){hr=!0;var n=k.getInstance();let e=n.getEntriesByType("navigation"),t=n.getEntriesByType("paint");setTimeout(()=>{B.createOobTrace(r,e,t,mr,vr)},0)}}class Er{constructor(e,t){this.app=e,this.installations=t,this.initialized=!1}_init(e){this.initialized||(void 0!==e?.dataCollectionEnabled&&(this.dataCollectionEnabled=e.dataCollectionEnabled),void 0!==e?.instrumentationEnabled&&(this.instrumentationEnabled=e.instrumentationEnabled),k.getInstance().requiredApisAvailable()?new Promise((n,i)=>{try{let e=!0,t="validate-browser-context-for-indexeddb-analytics-module",r=self.indexedDB.open(t);r.onsuccess=()=>{r.result.close(),e||self.indexedDB.deleteDatabase(t),n(!0)},r.onupgradeneeded=()=>{e=!1},r.onerror=()=>{i(r.error?.message||"")}}catch(e){i(e)}}).then(e=>{e&&(nr||(ir(5500),nr=!0),Zt(this).then(()=>br(this),()=>br(this)),this.initialized=!0)}).catch(e=>{M.info("Environment doesn't support IndexedDB: "+e)}):M.info('Firebase Performance cannot start if the browser does not support "Fetch" and "Promise", or cookies are disabled.'))}set instrumentationEnabled(e){A.getInstance().instrumentationEnabled=e}get instrumentationEnabled(){return A.getInstance().instrumentationEnabled}set dataCollectionEnabled(e){A.getInstance().dataCollectionEnabled=e}get dataCollectionEnabled(){return A.getInstance().dataCollectionEnabled}}let Tr="[DEFAULT]";let _r=(e,{options:t})=>{var r=e.getProvider("app").getImmediate(),n=e.getProvider("installations-internal").getImmediate();if(r.name!==Tr)throw C.create("FB not default");if("undefined"==typeof window)throw C.create("no window");e=window,Ot=e;r=new Er(r,n);return r._init(t),r};Mr._registerComponent(new e("performance",_r,"PUBLIC")),Mr.registerVersion(Lt,At),Mr.registerVersion(Lt,At,"esm2020");class Sr{constructor(e,t){this.app=e,this._delegate=t}get instrumentationEnabled(){return this._delegate.instrumentationEnabled}set instrumentationEnabled(e){this._delegate.instrumentationEnabled=e}get dataCollectionEnabled(){return this._delegate.dataCollectionEnabled}set dataCollectionEnabled(e){this._delegate.dataCollectionEnabled=e}trace(e){return t=this._delegate,e=e,t=(r=t)&&r._delegate?r._delegate:r,new B(t,e);var t,r}}function Ir(e){var t=e.getProvider("app-compat").getImmediate(),r=e.getProvider("performance").getImmediate();return new Sr(t,r)}(I=Cr).INTERNAL.registerComponent(new e("performance-compat",Ir,"PUBLIC")),I.registerVersion("@firebase/performance-compat","0.2.27-eap-sql.b903ef716")}).apply(this,arguments)}catch(e){throw console.error(e),new Error("Cannot instantiate firebase-performance-compat.js - be sure to load firebase-app.js first.")}});
|
|
2
2
|
//# sourceMappingURL=firebase-performance-compat.js.map
|
|
@@ -210,7 +210,7 @@ const I=[];var T;!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.
|
|
|
210
210
|
* See the License for the specific language governing permissions and
|
|
211
211
|
* limitations under the License.
|
|
212
212
|
*/
|
|
213
|
-
class K{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map((e=>{if(function(e){const t=e.getComponent();return"VERSION"===t?.type}(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null})).filter((e=>e)).join(" ")}}const G="@firebase/app",X="0.16.5-eap-sql.
|
|
213
|
+
class K{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map((e=>{if(function(e){const t=e.getComponent();return"VERSION"===t?.type}(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null})).filter((e=>e)).join(" ")}}const G="@firebase/app",X="0.16.5-eap-sql.b903ef716",Y=new k("@firebase/app"),Z="@firebase/app-compat",Q="@firebase/analytics-compat",ee="@firebase/analytics",te="@firebase/app-check-compat",ne="@firebase/app-check",re="@firebase/auth",ie="@firebase/auth-compat",ae="@firebase/crashlytics",oe="@firebase/database",se="@firebase/data-connect",ce="@firebase/database-compat",le="@firebase/functions",ue="@firebase/functions-compat",fe="@firebase/installations",pe="@firebase/installations-compat",de="@firebase/messaging",he="@firebase/messaging-compat",ge="@firebase/performance",me="@firebase/performance-compat",be="@firebase/remote-config",ve="@firebase/remote-config-compat",ye="@firebase/storage",_e="@firebase/storage-compat",we="@firebase/sql",Ee="@firebase/firestore",Se="@firebase/ai",Ie="@firebase/firestore-compat",Te="firebase",Ce="[DEFAULT]",Ae={[G]:"fire-core",[Z]:"fire-core-compat",[ee]:"fire-analytics",[Q]:"fire-analytics-compat",[ne]:"fire-app-check",[te]:"fire-app-check-compat",[re]:"fire-auth",[ie]:"fire-auth-compat",[ae]:"fire-cls",[oe]:"fire-rtdb",[se]:"fire-data-connect",[ce]:"fire-rtdb-compat",[le]:"fire-fn",[ue]:"fire-fn-compat",[fe]:"fire-iid",[pe]:"fire-iid-compat",[de]:"fire-fcm",[he]:"fire-fcm-compat",[ge]:"fire-perf",[me]:"fire-perf-compat",[be]:"fire-rc",[ve]:"fire-rc-compat",[ye]:"fire-gcs",[_e]:"fire-gcs-compat",[we]:"fire-sql",[Ee]:"fire-fst",[Ie]:"fire-fst-compat",[Se]:"fire-vertex","fire-js":"fire-js",[Te]:"fire-js-all"},De=new Map,Ne=new Map,ke=new Map;function Oe(e,t){try{e.container.addComponent(t)}catch(n){Y.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function Me(e){const t=e.name;if(ke.has(t))return Y.debug(`There were multiple attempts to register component ${t}.`),!1;ke.set(t,e);for(const t of De.values())Oe(t,e);for(const t of Ne.values())Oe(t,e);return!0}function Le(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function Pe(e){return void 0!==e.options}function Re(e){return!Pe(e)&&("authIdToken"in e||"appCheckToken"in e||"releaseOnDeref"in e||"automaticDataCollectionEnabled"in e)}
|
|
214
214
|
/**
|
|
215
215
|
* @license
|
|
216
216
|
* Copyright 2019 Google LLC
|
|
@@ -276,7 +276,7 @@ class Fe{constructor(e,t,n){this._isDeleted=!1,this._options={...e},this._config
|
|
|
276
276
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
277
277
|
* See the License for the specific language governing permissions and
|
|
278
278
|
* limitations under the License.
|
|
279
|
-
*/const xe="13.2.0-eap-sql.
|
|
279
|
+
*/const xe="13.2.0-eap-sql.b903ef716";function je(e,t={}){let n=e;if("object"!=typeof t){t={name:t}}const r={name:Ce,automaticDataCollectionEnabled:!0,...t},i=r.name;if("string"!=typeof i||!i)throw Be.create("bad-app-name",{appName:String(i)});if(n||(n=c()),!n)throw Be.create("no-options");const a=De.get(i);if(a){if(m(n,a.options)){if(m(r,a.config))return a;throw Be.create("duplicate-app",{appName:i,mismatchedParam:"config",oldValue:JSON.stringify(a.config),newValue:JSON.stringify(r)})}throw Be.create("duplicate-app",{appName:i,mismatchedParam:"options",oldValue:JSON.stringify(a.options),newValue:JSON.stringify(n)})}const o=new w(i);for(const e of ke.values())o.addComponent(e);const s=new Fe(n,r,o);return De.set(i,s),s}async function Ve(e){let t=!1;const n=e.name;if(De.has(n))t=!0,De.delete(n);else if(Ne.has(n)){e.decRefCount()<=0&&(Ne.delete(n),t=!0)}t&&(await Promise.all(e.container.getProviders().map((e=>e.delete()))),e.isDeleted=!0)}function ze(e,t,n){let r=Ae[e]??e;n&&(r+=`-${n}`);const i=r.match(/\s|\//),a=t.match(/\s|\//);if(i||a){const e=[`Unable to register library "${r}" with version "${t}":`];return i&&e.push(`library name "${r}" contains illegal characters (whitespace or "/")`),i&&a&&e.push("and"),a&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void Y.warn(e.join(" "))}Me(new v(`${r}-version`,(()=>({library:r,version:t})),"VERSION"))}function He(e,t){if(null!==e&&"function"!=typeof e)throw Be.create("invalid-log-argument");!function(e,t){for(const n of I){let r=null;t&&t.level&&(r=C[t.level]),n.userLogHandler=null===e?null:(t,n,...i)=>{const a=i.map((e=>{if(null==e)return null;if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(e){return null}})).filter((e=>e)).join(" ");n>=(r??t.logLevel)&&e({level:T[n].toLowerCase(),message:a,args:i,type:t.name})}}}(e,t)}function qe(e){var t;t=e,I.forEach((e=>{e.setLogLevel(t)}))}
|
|
280
280
|
/**
|
|
281
281
|
* @license
|
|
282
282
|
* Copyright 2021 Google LLC
|
|
@@ -439,7 +439,7 @@ const ot=function(){const e=at(rt);e.SDK_VERSION=`${e.SDK_VERSION}_LITE`;const t
|
|
|
439
439
|
* See the License for the specific language governing permissions and
|
|
440
440
|
* limitations under the License.
|
|
441
441
|
*/
|
|
442
|
-
function(e){ze("@firebase/app-compat","0.5.21-eap-sql.
|
|
442
|
+
function(e){ze("@firebase/app-compat","0.5.21-eap-sql.b903ef716",e)}("lite");
|
|
443
443
|
/**
|
|
444
444
|
* @license
|
|
445
445
|
* Copyright 2020 Google LLC
|
|
@@ -456,7 +456,7 @@ function(e){ze("@firebase/app-compat","0.5.21-eap-sql.a9a137e67",e)}("lite");
|
|
|
456
456
|
* See the License for the specific language governing permissions and
|
|
457
457
|
* limitations under the License.
|
|
458
458
|
*/
|
|
459
|
-
ot.registerVersion("firebase","13.2.0-eap-sql.a9a137e67","app-compat");var st,ct,lt=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},ut=function(e){if("loading"===document.readyState)return"loading";var t=lt();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"},ft=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},pt=function(e,t){var n="";try{for(;e&&9!==e.nodeType;){var r=e,i=r.id?"#"+r.id:ft(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},dt=-1,ht=function(e){addEventListener("pageshow",(function(t){t.persisted&&(dt=t.timeStamp,e(t))}),!0)},gt=function(){var e=lt();return e&&e.activationStart||0},mt=function(e,t){var n=lt(),r="navigate";return dt>=0?r="back-forward-cache":n&&(document.prerendering||gt()>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(8999999999999*Math.random())+1e12),navigationType:r}},bt=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){}},vt=function(e,t,n,r){var i,a;return function(o){t.value>=0&&(o||r)&&((a=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=a,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},yt=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},_t=function(e){document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&e()}))},wt=function(e){var t=!1;return function(){t||(e(),t=!0)}},Et=-1,St=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},It=function(e){"hidden"===document.visibilityState&&Et>-1&&(Et="visibilitychange"===e.type?e.timeStamp:0,Ct())},Tt=function(){addEventListener("visibilitychange",It,!0),addEventListener("prerenderingchange",It,!0)},Ct=function(){removeEventListener("visibilitychange",It,!0),removeEventListener("prerenderingchange",It,!0)},At=function(){return Et<0&&(Et=St(),Tt(),ht((function(){setTimeout((function(){Et=St(),Tt()}),0)}))),{get firstHiddenTime(){return Et}}},Dt=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},Nt=[1800,3e3],kt=[.1,.25],Ot=function(e,t){!function(e,t){t=t||{},function(e,t){t=t||{},Dt((function(){var n,r=At(),i=mt("FCP"),a=bt("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(a.disconnect(),e.startTime<r.firstHiddenTime&&(i.value=Math.max(e.startTime-gt(),0),i.entries.push(e),n(!0)))}))}));a&&(n=vt(e,i,Nt,t.reportAllChanges),ht((function(r){i=mt("FCP"),n=vt(e,i,Nt,t.reportAllChanges),yt((function(){i.value=performance.now()-r.timeStamp,n(!0)}))})))}))}(wt((function(){var n,r=mt("CLS",0),i=0,a=[],o=function(e){e.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>r.value&&(r.value=i,r.entries=a,n())},s=bt("layout-shift",o);s&&(n=vt(e,r,kt,t.reportAllChanges),_t((function(){o(s.takeRecords()),n(!0)})),ht((function(){i=0,r=mt("CLS",0),n=vt(e,r,kt,t.reportAllChanges),yt((function(){return n()}))})),setTimeout(n,0))})))}((function(t){var n=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:pt(i.node),largestShiftTime:r.startTime,largestShiftValue:r.value,largestShiftSource:i,largestShiftEntry:r,loadState:ut(r.startTime)})}}return Object.assign(e,{attribution:n})}(t);e(n)}),t)},Mt=0,Lt=1/0,Pt=0,Rt=function(e){e.forEach((function(e){e.interactionId&&(Lt=Math.min(Lt,e.interactionId),Pt=Math.max(Pt,e.interactionId),Mt=Pt?(Pt-Lt)/7+1:0)}))},Bt=function(){return st?Mt:performance.interactionCount||0},Ft=function(){"interactionCount"in performance||st||(st=bt("event",Rt,{type:"event",buffered:!0,durationThreshold:0}))},$t=[],Ut=new Map,xt=0,jt=[],Vt=function(e){if(jt.forEach((function(t){return t(e)})),e.interactionId||"first-input"===e.entryType){var t=$t[$t.length-1],n=Ut.get(e.interactionId);if(n||$t.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]};Ut.set(r.id,r),$t.push(r)}$t.sort((function(e,t){return t.latency-e.latency})),$t.length>10&&$t.splice(10).forEach((function(e){return Ut.delete(e.id)}))}}},zt=function(e){var t=self.requestIdleCallback||self.setTimeout,n=-1;return e=wt(e),"hidden"===document.visibilityState?e():(n=t(e),_t(e)),n},Ht=[200,500],qt=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},Dt((function(){var n;Ft();var r,i=mt("INP"),a=function(e){zt((function(){e.forEach(Vt);var t=function(){var e=Math.min($t.length-1,Math.floor((Bt()-xt)/50));return $t[e]}();t&&t.latency!==i.value&&(i.value=t.latency,i.entries=t.entries,r())}))},o=bt("event",a,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});r=vt(e,i,Ht,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),_t((function(){a(o.takeRecords()),r(!0)})),ht((function(){xt=Bt(),$t.length=0,Ut.clear(),i=mt("INP"),r=vt(e,i,Ht,t.reportAllChanges)})))})))},Wt=[],Jt=[],Kt=0,Gt=new WeakMap,Xt=new Map,Yt=-1,Zt=function(e){Wt=Wt.concat(e),Qt()},Qt=function(){Yt<0&&(Yt=zt(en))},en=function(){Xt.size>10&&Xt.forEach((function(e,t){Ut.has(t)||Xt.delete(t)}));var e=$t.map((function(e){return Gt.get(e.entries[0])})),t=Jt.length-50;Jt=Jt.filter((function(n,r){return r>=t||e.includes(n)}));for(var n=new Set,r=0;r<Jt.length;r++){var i=Jt[r];tn(i.startTime,i.processingEnd).forEach((function(e){n.add(e)}))}var a=Wt.length-1-50;Wt=Wt.filter((function(e,t){return e.startTime>Kt&&t>a||n.has(e)})),Yt=-1};jt.push((function(e){e.interactionId&&e.target&&!Xt.has(e.interactionId)&&Xt.set(e.interactionId,e.target)}),(function(e){var t,n=e.startTime+e.duration;Kt=Math.max(Kt,e.processingEnd);for(var r=Jt.length-1;r>=0;r--){var i=Jt[r];if(Math.abs(n-i.renderTime)<=8){(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]},Jt.push(t)),(e.interactionId||"first-input"===e.entryType)&&Gt.set(e,t),Qt()}));var tn=function(e,t){for(var n,r=[],i=0;n=Wt[i];i++)if(!(n.startTime+n.duration<e)){if(n.startTime>t)break;r.push(n)}return r},nn=function(e,t){ct||(ct=bt("long-animation-frame",Zt)),qt((function(t){var n=function(e){var t=e.entries[0],n=Gt.get(t),r=t.processingStart,i=n.processingEnd,a=n.entries.sort((function(e,t){return e.processingStart-t.processingStart})),o=tn(t.startTime,i),s=e.entries.find((function(e){return e.target})),c=s&&s.target||Xt.get(t.interactionId),l=[t.startTime+t.duration,i].concat(o.map((function(e){return e.startTime+e.duration}))),u=Math.max.apply(Math,l),f={interactionTarget:pt(c),interactionTargetElement:c,interactionType:t.name.startsWith("key")?"keyboard":"pointer",interactionTime:t.startTime,nextPaintTime:u,processedEventEntries:a,longAnimationFrameEntries:o,inputDelay:r-t.startTime,processingDuration:i-r,presentationDelay:Math.max(u-i,0),loadState:ut(t.startTime)};return Object.assign(e,{attribution:f})}(t);e(n)}),t)},rn=[2500,4e3],an={},on=function(e,t){!function(e,t){t=t||{},Dt((function(){var n,r=At(),i=mt("LCP"),a=function(e){t.reportAllChanges||(e=e.slice(-1)),e.forEach((function(e){e.startTime<r.firstHiddenTime&&(i.value=Math.max(e.startTime-gt(),0),i.entries=[e],n())}))},o=bt("largest-contentful-paint",a);if(o){n=vt(e,i,rn,t.reportAllChanges);var s=wt((function(){an[i.id]||(a(o.takeRecords()),o.disconnect(),an[i.id]=!0,n(!0))}));["keydown","click"].forEach((function(e){addEventListener(e,(function(){return zt(s)}),{once:!0,capture:!0})})),_t(s),ht((function(r){i=mt("LCP"),n=vt(e,i,rn,t.reportAllChanges),yt((function(){i.value=performance.now()-r.timeStamp,an[i.id]=!0,n(!0)}))}))}}))}((function(t){var n=function(e){var t={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:e.value};if(e.entries.length){var n=lt();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:pt(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);e(n)}),t)};const sn="@firebase/installations",cn="0.6.24-eap-sql.a9a137e67",ln=1e4,un=`w:${cn}`,fn="FIS_v2",pn=36e5,dn=new h("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 hn(e){return e instanceof d&&e.code.includes("request-failed")}
|
|
459
|
+
ot.registerVersion("firebase","13.2.0-eap-sql.b903ef716","app-compat");var st,ct,lt=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},ut=function(e){if("loading"===document.readyState)return"loading";var t=lt();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"},ft=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},pt=function(e,t){var n="";try{for(;e&&9!==e.nodeType;){var r=e,i=r.id?"#"+r.id:ft(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},dt=-1,ht=function(e){addEventListener("pageshow",(function(t){t.persisted&&(dt=t.timeStamp,e(t))}),!0)},gt=function(){var e=lt();return e&&e.activationStart||0},mt=function(e,t){var n=lt(),r="navigate";return dt>=0?r="back-forward-cache":n&&(document.prerendering||gt()>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(8999999999999*Math.random())+1e12),navigationType:r}},bt=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){}},vt=function(e,t,n,r){var i,a;return function(o){t.value>=0&&(o||r)&&((a=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=a,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},yt=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},_t=function(e){document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&e()}))},wt=function(e){var t=!1;return function(){t||(e(),t=!0)}},Et=-1,St=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},It=function(e){"hidden"===document.visibilityState&&Et>-1&&(Et="visibilitychange"===e.type?e.timeStamp:0,Ct())},Tt=function(){addEventListener("visibilitychange",It,!0),addEventListener("prerenderingchange",It,!0)},Ct=function(){removeEventListener("visibilitychange",It,!0),removeEventListener("prerenderingchange",It,!0)},At=function(){return Et<0&&(Et=St(),Tt(),ht((function(){setTimeout((function(){Et=St(),Tt()}),0)}))),{get firstHiddenTime(){return Et}}},Dt=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},Nt=[1800,3e3],kt=[.1,.25],Ot=function(e,t){!function(e,t){t=t||{},function(e,t){t=t||{},Dt((function(){var n,r=At(),i=mt("FCP"),a=bt("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(a.disconnect(),e.startTime<r.firstHiddenTime&&(i.value=Math.max(e.startTime-gt(),0),i.entries.push(e),n(!0)))}))}));a&&(n=vt(e,i,Nt,t.reportAllChanges),ht((function(r){i=mt("FCP"),n=vt(e,i,Nt,t.reportAllChanges),yt((function(){i.value=performance.now()-r.timeStamp,n(!0)}))})))}))}(wt((function(){var n,r=mt("CLS",0),i=0,a=[],o=function(e){e.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>r.value&&(r.value=i,r.entries=a,n())},s=bt("layout-shift",o);s&&(n=vt(e,r,kt,t.reportAllChanges),_t((function(){o(s.takeRecords()),n(!0)})),ht((function(){i=0,r=mt("CLS",0),n=vt(e,r,kt,t.reportAllChanges),yt((function(){return n()}))})),setTimeout(n,0))})))}((function(t){var n=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:pt(i.node),largestShiftTime:r.startTime,largestShiftValue:r.value,largestShiftSource:i,largestShiftEntry:r,loadState:ut(r.startTime)})}}return Object.assign(e,{attribution:n})}(t);e(n)}),t)},Mt=0,Lt=1/0,Pt=0,Rt=function(e){e.forEach((function(e){e.interactionId&&(Lt=Math.min(Lt,e.interactionId),Pt=Math.max(Pt,e.interactionId),Mt=Pt?(Pt-Lt)/7+1:0)}))},Bt=function(){return st?Mt:performance.interactionCount||0},Ft=function(){"interactionCount"in performance||st||(st=bt("event",Rt,{type:"event",buffered:!0,durationThreshold:0}))},$t=[],Ut=new Map,xt=0,jt=[],Vt=function(e){if(jt.forEach((function(t){return t(e)})),e.interactionId||"first-input"===e.entryType){var t=$t[$t.length-1],n=Ut.get(e.interactionId);if(n||$t.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]};Ut.set(r.id,r),$t.push(r)}$t.sort((function(e,t){return t.latency-e.latency})),$t.length>10&&$t.splice(10).forEach((function(e){return Ut.delete(e.id)}))}}},zt=function(e){var t=self.requestIdleCallback||self.setTimeout,n=-1;return e=wt(e),"hidden"===document.visibilityState?e():(n=t(e),_t(e)),n},Ht=[200,500],qt=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},Dt((function(){var n;Ft();var r,i=mt("INP"),a=function(e){zt((function(){e.forEach(Vt);var t=function(){var e=Math.min($t.length-1,Math.floor((Bt()-xt)/50));return $t[e]}();t&&t.latency!==i.value&&(i.value=t.latency,i.entries=t.entries,r())}))},o=bt("event",a,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});r=vt(e,i,Ht,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),_t((function(){a(o.takeRecords()),r(!0)})),ht((function(){xt=Bt(),$t.length=0,Ut.clear(),i=mt("INP"),r=vt(e,i,Ht,t.reportAllChanges)})))})))},Wt=[],Jt=[],Kt=0,Gt=new WeakMap,Xt=new Map,Yt=-1,Zt=function(e){Wt=Wt.concat(e),Qt()},Qt=function(){Yt<0&&(Yt=zt(en))},en=function(){Xt.size>10&&Xt.forEach((function(e,t){Ut.has(t)||Xt.delete(t)}));var e=$t.map((function(e){return Gt.get(e.entries[0])})),t=Jt.length-50;Jt=Jt.filter((function(n,r){return r>=t||e.includes(n)}));for(var n=new Set,r=0;r<Jt.length;r++){var i=Jt[r];tn(i.startTime,i.processingEnd).forEach((function(e){n.add(e)}))}var a=Wt.length-1-50;Wt=Wt.filter((function(e,t){return e.startTime>Kt&&t>a||n.has(e)})),Yt=-1};jt.push((function(e){e.interactionId&&e.target&&!Xt.has(e.interactionId)&&Xt.set(e.interactionId,e.target)}),(function(e){var t,n=e.startTime+e.duration;Kt=Math.max(Kt,e.processingEnd);for(var r=Jt.length-1;r>=0;r--){var i=Jt[r];if(Math.abs(n-i.renderTime)<=8){(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]},Jt.push(t)),(e.interactionId||"first-input"===e.entryType)&&Gt.set(e,t),Qt()}));var tn=function(e,t){for(var n,r=[],i=0;n=Wt[i];i++)if(!(n.startTime+n.duration<e)){if(n.startTime>t)break;r.push(n)}return r},nn=function(e,t){ct||(ct=bt("long-animation-frame",Zt)),qt((function(t){var n=function(e){var t=e.entries[0],n=Gt.get(t),r=t.processingStart,i=n.processingEnd,a=n.entries.sort((function(e,t){return e.processingStart-t.processingStart})),o=tn(t.startTime,i),s=e.entries.find((function(e){return e.target})),c=s&&s.target||Xt.get(t.interactionId),l=[t.startTime+t.duration,i].concat(o.map((function(e){return e.startTime+e.duration}))),u=Math.max.apply(Math,l),f={interactionTarget:pt(c),interactionTargetElement:c,interactionType:t.name.startsWith("key")?"keyboard":"pointer",interactionTime:t.startTime,nextPaintTime:u,processedEventEntries:a,longAnimationFrameEntries:o,inputDelay:r-t.startTime,processingDuration:i-r,presentationDelay:Math.max(u-i,0),loadState:ut(t.startTime)};return Object.assign(e,{attribution:f})}(t);e(n)}),t)},rn=[2500,4e3],an={},on=function(e,t){!function(e,t){t=t||{},Dt((function(){var n,r=At(),i=mt("LCP"),a=function(e){t.reportAllChanges||(e=e.slice(-1)),e.forEach((function(e){e.startTime<r.firstHiddenTime&&(i.value=Math.max(e.startTime-gt(),0),i.entries=[e],n())}))},o=bt("largest-contentful-paint",a);if(o){n=vt(e,i,rn,t.reportAllChanges);var s=wt((function(){an[i.id]||(a(o.takeRecords()),o.disconnect(),an[i.id]=!0,n(!0))}));["keydown","click"].forEach((function(e){addEventListener(e,(function(){return zt(s)}),{once:!0,capture:!0})})),_t(s),ht((function(r){i=mt("LCP"),n=vt(e,i,rn,t.reportAllChanges),yt((function(){i.value=performance.now()-r.timeStamp,an[i.id]=!0,n(!0)}))}))}}))}((function(t){var n=function(e){var t={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:e.value};if(e.entries.length){var n=lt();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:pt(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);e(n)}),t)};const sn="@firebase/installations",cn="0.6.24-eap-sql.b903ef716",ln=1e4,un=`w:${cn}`,fn="FIS_v2",pn=36e5,dn=new h("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 hn(e){return e instanceof d&&e.code.includes("request-failed")}
|
|
460
460
|
/**
|
|
461
461
|
* @license
|
|
462
462
|
* Copyright 2019 Google LLC
|
|
@@ -700,7 +700,7 @@ async function zn(e,t=!1){const n=e;await async function(e){const{registrationPr
|
|
|
700
700
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
701
701
|
* See the License for the specific language governing permissions and
|
|
702
702
|
* limitations under the License.
|
|
703
|
-
*/const qn="installations",Wn=e=>{const t=Le(e.getProvider("app").getImmediate(),qn).getImmediate();return{getId:()=>async function(e){const t=e,{installationEntry:n,registrationPromise:r}=await Rn(t);return r?r.catch(console.error):xn(t).catch(console.error),n.fid}(t),getToken:e=>zn(t,e)}};Me(new v(qn,(e=>{const t=e.getProvider("app").getImmediate(),n=function(e){if(!e||!e.options)throw Hn("App Configuration");if(!e.name)throw Hn("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw Hn(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t);return{app:t,appConfig:n,heartbeatServiceProvider:Le(t,"heartbeat"),_delete:()=>Promise.resolve()}}),"PUBLIC")),Me(new v("installations-internal",Wn,"PRIVATE")),ze(sn,cn),ze(sn,cn,"esm2020");const Jn="@firebase/performance",Kn="0.7.14-eap-sql.
|
|
703
|
+
*/const qn="installations",Wn=e=>{const t=Le(e.getProvider("app").getImmediate(),qn).getImmediate();return{getId:()=>async function(e){const t=e,{installationEntry:n,registrationPromise:r}=await Rn(t);return r?r.catch(console.error):xn(t).catch(console.error),n.fid}(t),getToken:e=>zn(t,e)}};Me(new v(qn,(e=>{const t=e.getProvider("app").getImmediate(),n=function(e){if(!e||!e.options)throw Hn("App Configuration");if(!e.name)throw Hn("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw Hn(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t);return{app:t,appConfig:n,heartbeatServiceProvider:Le(t,"heartbeat"),_delete:()=>Promise.resolve()}}),"PUBLIC")),Me(new v("installations-internal",Wn,"PRIVATE")),ze(sn,cn),ze(sn,cn,"esm2020");const Jn="@firebase/performance",Kn="0.7.14-eap-sql.b903ef716",Gn=Kn,Xn="FB-PERF-TRACE-MEASURE",Yn="_wt_",Zn="_fcp",Qn="_fid",er="_lcp",tr="_inp",nr="_cls",rr="@firebase/performance/config",ir="@firebase/performance/configexpire",ar="Performance",or=new h("performance",ar,{"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."}),sr=new k(ar);
|
|
704
704
|
/**
|
|
705
705
|
* @license
|
|
706
706
|
* Copyright 2020 Google LLC
|
|
@@ -979,7 +979,7 @@ class ai{constructor(e,t){this.app=e,this._delegate=t}get instrumentationEnabled
|
|
|
979
979
|
* See the License for the specific language governing permissions and
|
|
980
980
|
* limitations under the License.
|
|
981
981
|
*/
|
|
982
|
-
var si;(si=ot).INTERNAL.registerComponent(new v("performance-compat",oi,"PUBLIC")),si.registerVersion("@firebase/performance-compat","0.2.27-eap-sql.
|
|
982
|
+
var si;(si=ot).INTERNAL.registerComponent(new v("performance-compat",oi,"PUBLIC")),si.registerVersion("@firebase/performance-compat","0.2.27-eap-sql.b903ef716");
|
|
983
983
|
/**
|
|
984
984
|
* @license
|
|
985
985
|
* Copyright 2019 Google LLC
|
|
@@ -996,5 +996,5 @@ var si;(si=ot).INTERNAL.registerComponent(new v("performance-compat",oi,"PUBLIC"
|
|
|
996
996
|
* See the License for the specific language governing permissions and
|
|
997
997
|
* limitations under the License.
|
|
998
998
|
*/
|
|
999
|
-
return ot.registerVersion("firebase","13.2.0-eap-sql.
|
|
999
|
+
return ot.registerVersion("firebase","13.2.0-eap-sql.b903ef716","compat-lite"),ot}));
|
|
1000
1000
|
//# sourceMappingURL=firebase-performance-standalone-compat.js.map
|