PageSourceSearch

https://www.easeus.com/default/webpack/dist/firebase.js

js easeus.com collected 2026-10-01 08:46:06 UTC 51,403 bytes, 2 lines download raw bytes

vendor: 15,616 bytes, lines 1-2
1/*! For license information please see firebase.js.LICENSE.txt */
2(()=>{"use strict";var e={};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();const t=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296==(64512&i)&&r+1<e.length&&56320==(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},n={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let t=0;t<e.length;t+=3){const i=e[t],a=t+1<e.length,o=a?e[t+1]:0,s=t+2<e.length,c=s?e[t+2]:0,u=i>>2,d=(3&i)<<4|o>>4;let l=(15&o)<<2|c>>6,f=63&c;s||(f=64,a||(l=64)),r.push(n[u],n[d],n[l],n[f])}return r.join("")},encodeString(e,n){return this.HAS_NATIVE_SUPPORT&&!n?btoa(e):this.encodeByteArray(t(e),n)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const a=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&a)}else if(i>239&&i<365){const a=((7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(a>>10)),t[r++]=String.fromCharCode(56320+(1023&a))}else{const a=e[n++],o=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&a)<<6|63&o)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,i=[];for(let t=0;t<e.length;){const a=n[e.charAt(t++)],o=t<e.length?n[e.charAt(t)]:0;++t;const s=t<e.length?n[e.charAt(t)]:64;++t;const c=t<e.length?n[e.charAt(t)]:64;if(++t,null==a||null==o||null==s||null==c)throw new r;const u=a<<2|o>>4;if(i.push(u),64!==s){const e=o<<4&240|s>>2;if(i.push(e),64!==c){const e=s<<6&192|c;i.push(e)}}}return i},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class r extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const i=function(e){return function(e){const r=t(e);return n.encodeByteArray(r,!0)}(e).replace(/\./g,"")},a=()=>{try{return function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==e.g)return e.g;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if("undefined"==typeof process||void 0===process.env)return;const e=process.env.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0})()||(()=>{if("undefined"==typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(e){return}const t=e&&function(e){try{return n.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null}(e[1]);return t&&JSON.parse(t)})()}catch(e){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`)}},o=()=>{var e;return null===(e=a())||void 0===e?void 0:e.config};class s{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),"function"==typeof e&&(this.promise.catch((()=>{})),1===e.length?e(t):e(t,n))}}}function c(){try{return"object"==typeof indexedDB}catch(e){return!1}}function u(){return new Promise(((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var e;t((null===(e=i.error)||void 0===e?void 0:e.message)||"")}}catch(e){t(e)}}))}class d extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,d.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,l.prototype.create)}}class l{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){const n=t[0]||{},r=`${this.service}/${e}`,i=this.errors[e],a=i?function(e,t){return e.replace(f,((e,n)=>{const r=t[n];return null!=r?String(r):`<${n}?>`}))}(i,n):"Error",o=`${this.serviceName}: ${a} (${r}).`;return new d(r,o,n)}}const f=/\{\$([^}]+)}/g;function p(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const n=e[i],a=t[i];if(h(n)&&h(a)){if(!p(n,a))return!1}else if(n!==a)return!1}for(const e of r)if(!n.includes(e))return!1;return!0}function h(e){return null!==e&&"object"==typeof e}function g(e){return e&&e._delegate?e._delegate:e}class m{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}const b="[DEFAULT]";class w{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const e=new s;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{const n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(e){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const n=this.normalizeInstanceIdentifier(null==e?void 0:e.identifier),r=null!==(t=null==e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(r)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(e){if(r)return null;throw e}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:b})}catch(e){}for(const[e,t]of this.instancesDeferred.entries()){const n=this.normalizeInstanceIdentifier(e);try{const e=this.getOrInitializeService({instanceIdentifier:n});t.resolve(e)}catch(e){}}}}clearInstance(e=b){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter((e=>"INTERNAL"in e)).map((e=>e.INTERNAL.delete())),...e.filter((e=>"_delete"in e)).map((e=>e._delete()))])}isComponentSet(){return null!=this.component}isInitialized(e=b){return this.instances.has(e)}getOptions(e=b){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const r=this.getOrInitializeService({instanceIdentifier:n,options:t});for(const[e,t]of this.instancesDeferred.entries())n===this.normalizeInstanceIdentifier(e)&&t.resolve(r);return r}onInit(e,t){var n;const r=this.normalizeInstanceIdentifier(t),i=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;i.add(e),this.onInitCallbacks.set(r,i);const a=this.instances.get(r);return a&&e(a,r),()=>{i.delete(e)}}invokeOnInitCallbacks(e,t){const n=this.onInitCallbacks.get(t);if(n)for(const r of n)try{r(e,t)}catch(e){}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:(r=e,r===b?void 0:r),options:t}),this.instances.set(e,n),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch(e){}var r;return n||null}normalizeInstanceIdentifier(e=b){return this.component?this.component.multipleInstances?e:b:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class y{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new w(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}const v=[];var I;!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(I||(I={}));const S={debug:I.DEBUG,verbose:I.VERBOSE,info:I.INFO,warn:I.WARN,error:I.ERROR,silent:I.SILENT},E=I.INFO,D={[I.DEBUG]:"log",[I.VERBOSE]:"log",[I.INFO]:"info",[I.WARN]:"warn",[I.ERROR]:"error"},_=(e,t,...n)=>{if(t<e.logLevel)return;const r=(new Date).toISOString(),i=D[t];if(!i)throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`);console[i](`[${r}]  ${e.name}:`,...n)},C=(e,t)=>t.some((t=>e instanceof t));let k,T;const A=new WeakMap,O=new WeakMap,B=new WeakMap,L=new WeakMap,N=new WeakMap;let j={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return O.get(e);if("objectStoreNames"===t)return e.objectStoreNames||B.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return M(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function P(e){return"function"==typeof e?(t=e)!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(T||(T=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(R(this),e),M(A.get(this))}:function(...e){return M(t.apply(R(this),e))}:function(e,...n){const r=t.call(R(this),e,...n);return B.set(r,e.sort?e.sort():[e]),M(r)}:(e instanceof IDBTransaction&&function(e){if(O.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",a),e.removeEventListener("abort",a)},i=()=>{t(),r()},a=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",a),e.addEventListener("abort",a)}));O.set(e,t)}(e),C(e,k||(k=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,j):e);var t}function M(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",a)},i=()=>{t(M(e.result)),r()},a=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",a)}));return t.then((t=>{t instanceof IDBCursor&&A.set(t,e)})).catch((()=>{})),N.set(t,e),t}(e);if(L.has(e))return L.get(e);const t=P(e);return t!==e&&(L.set(e,t),N.set(t,e)),t}const R=e=>N.get(e),x=["get","getKey","getAll","getAllKeys","count"],H=["put","add","delete","clear"],F=new Map;function W(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(F.get(t))return F.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=H.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!x.includes(n))return;const a=async function(e,...t){const a=this.transaction(e,i?"readwrite":"readonly");let o=a.store;return r&&(o=o.index(t.shift())),(await Promise.all([o[n](...t),i&&a.done]))[0]};return F.set(t,a),a}var K;K=j,j={...K,get:(e,t,n)=>W(e,t)||K.get(e,t,n),has:(e,t)=>!!W(e,t)||K.has(e,t)};class V{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map((e=>{if(function(e){const t=e.getComponent();return"VERSION"===(null==t?void 0:t.type)}(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null})).filter((e=>e)).join(" ")}}const U="@firebase/app",z="0.9.13",q=new class{constructor(e){this.name=e,this._logLevel=E,this._logHandler=_,this._userLogHandler=null,v.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in I))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?S[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,I.DEBUG,...e),this._logHandler(this,I.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,I.VERBOSE,...e),this._logHandler(this,I.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,I.INFO,...e),this._logHandler(this,I.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,I.WARN,...e),this._logHandler(this,I.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,I.ERROR,...e),this._logHandler(this,I.ERROR,...e)}}("@firebase/app"),G="@firebase/app-compat",J="@firebase/analytics-compat",Q="@firebase/analytics",Y="@firebase/app-check-compat",Z="@firebase/app-check",X="@firebase/auth",ee="@firebase/auth-compat",te="@firebase/database",ne="@firebase/database-compat",re="@firebase/functions",ie="@firebase/functions-compat",ae="@firebase/installations",oe="@firebase/installations-compat",se="@firebase/messaging",ce="@firebase/messaging-compat",ue="@firebase/performance",de="@firebase/performance-compat",le="@firebase/remote-config",fe="@firebase/remote-config-compat",pe="@firebase/storage",he="@firebase/storage-compat",ge="@firebase/firestore",me="@firebase/firestore-compat",be="firebase",we="[DEFAULT]",ye={[U]:"fire-core",[G]:"fire-core-compat",[Q]:"fire-analytics",[J]:"fire-analytics-compat",[Z]:"fire-app-check",[Y]:"fire-app-check-compat",[X]:"fire-auth",[ee]:"fire-auth-compat",[te]:"fire-rtdb",[ne]:"fire-rtdb-compat",[re]:"fire-fn",[ie]:"fire-fn-compat",[ae]:"fire-iid",[oe]:"fire-iid-compat",[se]:"fire-fcm",[ce]:"fire-fcm-compat",[ue]:"fire-perf",[de]:"fire-perf-compat",[le]:"fire-rc",[fe]:"fire-rc-compat",[pe]:"fire-g
2cs",[he]:"fire-gcs-compat",[ge]:"fire-fst",[me]:"fire-fst-compat","fire-js":"fire-js",[be]:"fire-js-all"},ve=new Map,Ie=new Map;function Se(e,t){try{e.container.addComponent(t)}catch(n){q.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function Ee(e){const t=e.name;if(Ie.has(t))return q.debug(`There were multiple attempts to register component ${t}.`),!1;Ie.set(t,e);for(const t of ve.values())Se(t,e);return!0}function De(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}const _e=new l("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
2d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."});class Ce{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new m("app",(()=>this),"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw _e.create("app-deleted",{appName:this._name})}}function ke(e,t={}){let n=e;"object"!=typeof t&&(t={name:t});const r=Object.assign({name:we,automaticDataCollectionEnabled:!1},t),i=r.name;if("string"!=typeof i||!i)throw _e.create("bad-app-name",{appName:String(i)});if(n||(n=o()),!n)throw _e.create("no-options");const a=ve.get(i);if(a){if(p(n,a.options)&&p(r,a.config))return a;throw _e.create("duplicate-app",{appName:i})}const s=new y(i);for(const e of Ie.values())s.addComponent(e);const c=new Ce(n,r,s);return ve.set(i,c),c}function Te(e,t,n){var r;let i=null!==(r=ye[e])&&void 0!==r?r:e;n&&(i+=`-${n}`);const a=i.match(/\s|\//),o=t.match(/\s|\//);if(a||o){const e=[`Unable to register library "${i}" with version "${t}":`];return a&&e.push(`library name "${i}" contains illegal characters (whitespace or "/")`),a&&o&&e.push("and"),o&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void q.warn(e.join(" "))}Ee(new m(`${i}-version`,(()=>({library:i,version:t})),"VERSION"))}const Ae="firebase-heartbeat-database",Oe=1,Be="firebase-heartbeat-store";let Le=null;function Ne(){return Le||(Le=function(e,t,{blocked:n,upgrade:r,blocking:i,terminated:a}={}){const o=indexedDB.open(e,t),s=M(o);return r&&o.addEventListener("upgradeneeded",(e=>{r(M(o.result),e.oldVersion,e.newVersion,M(o.transaction),e)})),n&&o.addEventListener("blocked",(e=>n(e.oldVersion,e.newVersion,e))),s.then((e=>{a&&e.addEventListener("close",(()=>a())),i&&e.addEventListener("versionchange",(e=>i(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),s}(Ae,Oe,{upgrade:(e,t)=>{0===t&&e.createObjectStore(Be)}}).catch((e=>{throw _e.create("idb-open",{originalErrorMessage:e.message})}))),Le}async function je(e,t){try{const n=(await Ne()).transaction(Be,"readwrite"),r=n.objectStore(Be);await r.put(t,Pe(e)),await n.done}catch(e){if(e instanceof d)q.warn(e.message);else{const t=_e.create("idb-set",{originalErrorMessage:null==e?void 0:e.message});q.warn(t.message)}}}function Pe(e){return`${e.name}!${e.options.appId}`}class Me{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new $e(t),this._heartbeatsCachePromise=this._storage.read().then((e=>(this._heartbeatsCache=e,e)))}async triggerHeartbeat(){const e=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),t=Re();if(null===this._heartbeatsCache&&(this._heartbeatsCache=await this._heartbeatsCachePromise),this._heartbeatsCache.lastSentHeartbeatDate!==t&&!this._heartbeatsCache.heartbeats.some((e=>e.date===t)))return this._heartbeatsCache.heartbeats.push({date:t,agent:e}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter((e=>{const t=new Date(e.date).valueOf();return Date.now()-t<=2592e6})),this._storage.overwrite(this._heartbeatsCache)}
vendor: 20,154 bytes, line 2
2async getHeartbeatsHeader(){if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null===this._heartbeatsCache||0===this._heartbeatsCache.heartbeats.length)return"";const e=Re(),{heartbeatsToSend:t,unsentEntries:n}=function(e,t=1024){const n=[];let r=e.slice();for(const i of e){const e=n.find((e=>e.agent===i.agent));if(e){if(e.dates.push(i.date),xe(n)>t){e.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),xe(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),r=i(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,n.length>0?(this._heartbeatsCache.heartbeats=n,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),r}}function Re(){return(new Date).toISOString().substring(0,10)}class $e{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!c()&&u().then((()=>!0)).catch((()=>!1))}async read(){if(await this._canUseIndexedDBPromise){return await async function(e){try{const t=await Ne();return await t.transaction(Be).objectStore(Be).get(Pe(e))}catch(e){if(e instanceof d)q.warn(e.message);else{const t=_e.create("idb-get",{originalErrorMessage:null==e?void 0:e.message});q.warn(t.message)}}}(this.app)||{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return je(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return je(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}function xe(e){return i(JSON.stringify({version:2,heartbeats:e})).length}Ee(new m("platform-logger",(e=>new V(e)),"PRIVATE")),Ee(new m("heartbeat",(e=>new Me(e)),"PRIVATE")),Te(U,z,""),Te(U,z,"esm2017"),Te("fire-js",""),Te("firebase","9.23.0","app");const He=(e,t)=>t.some((t=>e instanceof t));let Fe,We;const Ke=new WeakMap,Ve=new WeakMap,Ue=new WeakMap,ze=new WeakMap,qe=new WeakMap;let Ge={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return Ve.get(e);if("objectStoreNames"===t)return e.objectStoreNames||Ue.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Qe(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function Je(e){return"function"==typeof e?(t=e)!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(We||(We=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(Ye(this),e),Qe(Ke.get(this))}:function(...e){return Qe(t.apply(Ye(this),e))}:function(e,...n){const r=t.call(Ye(this),e,...n);return Ue.set(r,e.sort?e.sort():[e]),Qe(r)}:(e instanceof IDBTransaction&&function(e){if(Ve.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",a),e.removeEventListener("abort",a)},i=()=>{t(),r()},a=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",a),e.addEventListener("abort",a)}));Ve.set(e,t)}(e),He(e,Fe||(Fe=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,Ge):e);var t}function Qe(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",a)},i=()=>{t(Qe(e.result)),r()},a=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",a)}));return t.then((t=>{t instanceof IDBCursor&&Ke.set(t,e)})).catch((()=>{})),qe.set(t,e),t}(e);if(ze.has(e))return ze.get(e);const t=Je(e);return t!==e&&(ze.set(e,t),qe.set(t,e)),t}const Ye=e=>qe.get(e),Ze=["get","getKey","getAll","getAllKeys","count"],Xe=["put","add","delete","clear"],et=new Map;function tt(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(et.get(t))return et.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=Xe.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!Ze.includes(n))return;const a=async function(e,...t){const a=this.transaction(e,i?"readwrite":"readonly");let o=a.store;return r&&(o=o.index(t.shift())),(await Promise.all([o[n](...t),i&&a.done]))[0]};return et.set(t,a),a}Ge=(e=>({...e,get:(t,n,r)=>tt(t,n)||e.get(t,n,r),has:(t,n)=>!!tt(t,n)||e.has(t,n)}))(Ge);const nt="@firebase/installations",rt="0.6.4",it=1e4,at=`w:${rt}`,ot="FIS_v2",st="https://firebaseinstallations.googleapis.com/v1",ct=36e5,ut=new l("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 dt(e){return e instanceof d&&e.code.includes("request-failed")}function lt({projectId:e}){return`${st}/projects/${e}/installations`}function ft(e){return{token:e.token,requestStatus:2,expiresIn:(t=e.expiresIn,Number(t.replace("s","000"))),creationTime:Date.now()};var t}async function pt(e,t){const n=(await t.json()).error;return ut.create("request-failed",{requestName:e,serverCode:n.code,serverMessage:n.message,serverStatus:n.status})}function ht({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}async function gt(e){const t=await e();return t.status>=500&&t.status<600?e():t}function mt(e){return new Promise((t=>{setTimeout(t,e)}))}const bt=/^[cdef][\w-]{21}$/,wt="";function yt(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const t=function(e){var t;return(t=e,btoa(String.fromCharCode(...t)).replace(/\+/g,"-").replace(/\//g,"_")).substr(0,22)}(e);return bt.test(t)?t:wt}catch(e){return wt}}function vt(e){return`${e.appName}!${e.appId}`}const It=new Map;function St(e,t){const n=vt(e);Et(n,t),function(e,t){const n=(!Dt&&"BroadcastChannel"in self&&(Dt=new BroadcastChannel("[Firebase] FID Change"),Dt.onmessage=e=>{Et(e.data.key,e.data.fid)}),Dt);n&&n.postMessage({key:e,fid:t}),0===It.size&&Dt&&(Dt.close(),Dt=null)}(n,t)}function Et(e,t){const n=It.get(e);if(n)for(const e of n)e(t)}let Dt=null;const _t="firebase-installations-database",Ct=1,kt="firebase-installations-store";let Tt=null;function At(){return Tt||(Tt=function(e,t,{blocked:n,upgrade:r,blocking:i,terminated:a}={}){const o=indexedDB.open(e,t),s=Qe(o);return r&&o.addEventListener("upgradeneeded",(e=>{r(Qe(o.result),e.oldVersion,e.newVersion,Qe(o.transaction))})),n&&o.addEventListener("blocked",(()=>n())),s.then((e=>{a&&e.addEventListener("close",(()=>a())),i&&e.addEventListener("versionchange",(()=>i()))})).catch((()=>{})),s}(_t,Ct,{upgrade:(e,t)=>{0===t&&e.createObjectStore(kt)}})),Tt}async function Ot(e,t){const n=vt(e),r=(await At()).transaction(kt,"readwrite"),i=r.objectStore(kt),a=await i.get(n);return await i.put(t,n),await r.done,a&&a.fid===t.fid||St(e,t.fid),t}async function Bt(e){const t=vt(e),n=(await At()).transaction(kt,"readwrite");await n.objectStore(kt).delete(t),await n.done}async function Lt(e,t){const n=vt(e),r=(await At()).transaction(kt,"readwrite"),i=r.objectStore(kt),a=await i.get(n),o=t(a);return void 0===o?await i.delete(n):await i.put(o,n),await r.done,!o||a&&a.fid===o.fid||St(e,o.fid),o}async function Nt(e){let t;const n=await Lt(e.appConfig,(n=>{const r=function(e){return Mt(e||{fid:yt(),registrationStatus:0})}(n),i=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine)return{installationEntry:t,registrationPromise:Promise.reject(ut.create("app-offline"))};const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=async function(e,t){try{const n=await async function({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const r=lt(e),i=ht(e),a=t.getImmediate({optional:!0});if(a){const e=await a.getHeartbeatsHeader();e&&i.append("x-firebase-client",e)}const o={fid:n,authVersion:ot,appId:e.appId,sdkVersion:at},s={method:"POST",headers:i,body:JSON.stringify(o)},c=await gt((()=>fetch(r,s)));if(c.ok){const e=await c.json();return{fid:e.fid||n,registrationStatus:2,refreshToken:e.refreshToken,authToken:ft(e.authToken)}}throw await pt("Create Installation",c)}(e,t);return Ot(e.appConfig,n)}catch(n){throw dt(n)&&409===n.customData.serverCode?await Bt(e.appConfig):await Ot(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}(e,n);return{installationEntry:n,registrationPromise:r}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:jt(e)}:{installationEntry:t}}(e,r);return t=i.registrationPromise,i.installationEntry}));return n.fid===wt?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}async function jt(e){let t=await Pt(e.appConfig);for(;1===t.registrationStatus;)await mt(100),t=await Pt(e.appConfig);if(0===t.registrationStatus){const{installationEntry:t,registrationPromise:n}=await Nt(e);return n||t}return t}function Pt(e){return Lt(e,(e=>{if(!e)throw ut.create("installation-not-found");return Mt(e)}))}function Mt(e){return 1===(t=e).registrationStatus&&t.registrationTime+it<Date.now()?{fid:e.fid,registrationStatus:0}:e;var t}async function Rt({appConfig:e,heartbeatServiceProvider:t},n){const r=function(e,{fid:t}){return`${lt(e)}/${t}/authTokens:generate`}(e,n),i=function(e,{refreshToken:t}){const n=ht(e);return n.append("Authorization",function(e){return`${ot} ${e}`}(t)),n}(e,n),a=t.getImmediate({optional:!0});if(a){const e=await a.getHeartbeatsHeader();e&&i.append("x-firebase-client",e)}const o={installation:{sdkVersion:at,appId:e.appId}},s={method:"POST",headers:i,body:JSON.stringify(o)},c=await gt((()=>fetch(r,s)));if(c.ok)return ft(await c.json());throw await pt("Generate Auth Token",c)}async function $t(e,t=!1){let n;const r=await Lt(e.appConfig,(r=>{if(!Ht(r))throw ut.create("not-registered");const i=r.authToken;if(!t&&(2===(a=i).requestStatus&&!function(e){const t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+ct}(a)))return r;var a;if(1===i.requestStatus)return n=async function(e,t){let n=await xt(e.appConfig);for(;1===n.authToken.requestStatus;)await mt(100),n=await xt(e.appConfig);const r=n.authToken;return 0===r.requestStatus?$t(e,t):r}(e,t),r;{if(!navigator.onLine)throw ut.create("app-offline");const t=function(e){const t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}(r);return n=async function(e,t){try{const n=await Rt(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return await Ot(e.appConfig,r),n}catch(n){if(!dt(n)||401!==n.customData.serverCode&&404!==n.customData.serverCode){const n=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await Ot(e.appConfig,n)}else await Bt(e.appConfig);throw n}}(e,t),t}}));return n?await n:r.authToken}function xt(e){return Lt(e,(e=>{if(!Ht(e))throw ut.create("not-registered");return 1===(t=e.authToken).requestStatus&&t.requestTime+it<Date.now()?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e;var t}))}function Ht(e){return void 0!==e&&2===e.registrationStatus}function Ft(e){return ut.create("missing-app-config-values",{valueName:e})}const Wt="installations";Ee(new m(Wt,(e=>{const t=e.getProvider("app").getImmediate(),n=function(e){if(!e||!e.options)throw Ft("App Configuration");if(!e.name)throw Ft("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw Ft(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t);return{app:t,appConfig:n,heartbeatServiceProvider:De(t,"heartbeat"),_delete:()=>Promise.resolve()}}),"PUBLIC")),Ee(new m("installations-internal",(e=>{const t=De(e.getProvider("app").getImmediate(),Wt).getImmediate();return{getId:()=>async function(e){const t=e,{installationEntry:n,registrationPromise:r}=await Nt(t);return r?r.catch(console.error):$t(t).catch(console.error),n.fid}(t),getToken:e=>async function(e,t=!1){const n=e;return await async function(e){const{registrationPromise:t}=await Nt(e);t&&await t}(n),(await $t(n,t)).token}(t,e)}}),"PRIVATE")),Te(nt,rt),Te(nt,rt,"esm2017");const Kt=(e,t)=>t.some((t=>e instanceof t));let Vt,Ut;const zt=new WeakMap,qt=new WeakMap,Gt=new WeakMap,Jt=new WeakMap,Qt=new WeakMap;let Yt={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return qt.get(e);if("objectStoreNames"===t)return e.objectStoreNames||Gt.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Xt(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function Zt(e){return"function"==typeof e?(t=e)!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(Ut||(Ut=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(en(this),e),Xt(zt.get(this))}:function(...e){return Xt(t.apply(en(this),e))}:function(e,...n){const r=t.call(en(this),e,...n);return Gt.set(r,e.sort?e.sort():[e]),Xt(r)}:(e instanceof IDBTransaction&&function(e){if(qt.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",a),e.removeEventListener("abort",a)},i=()=>{t(),r()},a=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",a),e.addEventListener("abort",a)}));qt.set(e,t)}(e),Kt(e,Vt||(Vt=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,Yt):e);var t}function Xt(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",a)},i=()=>{t(Xt(e.result)),r()},a=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",a)}));return t.then((t=>{t instanceof IDBCursor&&zt.set(t,e)})).catch((()=>{})),Qt.set(t,e),t}(e);if(Jt.has(e))return Jt.get(e);const t=Zt(e);return t!==e&&(Jt.set(e,t),Qt.set(t,e)),t}const en=e=>Qt.get(e);function tn(e,t,{blocked:n,upgrade:r,blocking:i,terminated:a}={}){const o=indexedDB.open(e,t),s=Xt(o);return r&&o.addEventListener("upgradeneeded",(e=>{r(Xt(o.result),e.oldVersion,e.newVersion,Xt(o.transaction))})),n&&o.addEventListener("blocked",(()=>n())),s.then((e=>{a&&e.addEventListener("close",(()=>a())),i&&e.addEventListener("versionchange",(()=>i()))})).catch((()=>{})),s}function nn(e,{blocked:t}={}){const n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",(()=>t())),Xt(n).then((()=>{}))}const rn=["get","getKey","getAll","getAllKeys","count"],an=["put","add","delete","clear"],on=new Map;function sn(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(on.get(t))return on.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=an.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!rn.includes(n))return;const a=async function(e,...t){const a=this.transaction(e,i?"readwrite":"readonly");let o=a.store;return r&&(o=o.index(t.shift())),(await Promise.all([o[n](...t),i&&a.done]))[0]};return on.set(t,a),a}Yt=(e=>({...e,get:(t,n,r)=>sn(t,n)||e.get(t,n,r),has:(t,n)=>!!sn(t,n)||e.has(t,n)}))(Yt);const cn="/firebase-messaging-sw.js",un="/firebase-cloud-messaging-push-scope",dn="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",ln="https://fcmregistrations.googleapis.com/v1",fn="google.c.a.c_id",pn="google.c.a.c_l",hn="google.c.a.ts";var gn,mn;function bn(e){const t=new Uint8Array(e);return btoa(String.fromCharCode(...t)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function wn(e){const t=(e+"=".repeat((4-e.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),n=atob(t),r=new Uint8Array(n.length);for(let e=0;e<n.length;++e)r[e]=n.charCodeAt(e);return r}!function(e){e[e.DATA_MESSAGE=1]="DATA_MESSAGE",e[e.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"}(gn||(gn={})),function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked"}(mn||(mn={}));const yn="fcm_token_details_db",vn=5,In="fcm_token_object_Store",Sn="firebase-messaging-database",En=1,Dn="firebase-messaging-store";let _n=null;function Cn(){return _n||(_n=tn(Sn,En,{upgrade:(e,t)=>{0===t&&e.createObjectStore(Dn)}})),_n}async function kn(e){const t=An(e),n=await Cn(),r=await n.transaction(Dn).objectStore(Dn).get(t);if(r)return r;{const t=await async function(e){if("databases"in indexedDB){const e=(await indexedDB.databases()).map((e=>e.name));if(!e.includes(yn))return null}let t=null;return(await tn(yn,vn,{upgrade:async(n,r,i,a)=>{var o;if(r<2)return;if(!n.objectStoreNames.contains(In))return;const s=a.objectStore(In),c=await s.index("fcmSenderId").get(e);if(await s.clear(),c)if(2===r){const e=c;if(!e.auth||!e.p256dh||!e.endpoint)return;t={token:e.fcmToken,createTime:null!==(o=e.createTime)&&void 0!==o?o:Date.now(),subscriptionOptions:{auth:e.auth,p256dh:e.p256dh,endpoint:e.endpoint,swScope:e.swScope,vapidKey:"string"==typeof e.vapidKey?e.vapidKey:bn(e.vapidKey)}}}else if(3===r){const e=c;t={token:e.fcmToken,createTime:e.createTime,subscriptionOptions:{auth:bn(e.auth),p256dh:bn(e.p256dh),endpoint:e.endpoint,swScope:e.swScope,vapidKey:bn(e.vapidKey)}}}else if(4===r){const e=c;t={token:e.fcmToken,createTime:e.createTime,subscriptionOptions:{auth:bn(e.auth),p256dh:bn(e.p256dh),endpoint:e.endpoint,swScope:e.swScope,vapidKey:bn(e.vapidKey)}}}}})).close(),await nn(yn),await nn("fcm_vapid_details_db"),await nn("undefined"),function(e){if(!e||!e.subscriptionOptions)return!1;const{subscriptionOptions:t}=e;return"number"==typeof e.createTime&&e.createTime>0&&"string"==typeof e.token&&e.token.length>0&&"string"==typeof t.auth&&t.auth.length>0&&"string"==typeof t.p256dh&&t.p256dh.length>0&&"string"==typeof t.endpoint&&t.endpoint.length>0&&"string"==typeof t.swScope&&t.swScope.length>0&&"string"==typeof t.vapidKey&&t.vapidKey.length>0}(t)?t:null}(e.appConfig.senderId);if(t)return await Tn(e,t),t}}async function Tn(e,t){const n=An(e),r=(await Cn()).transaction(Dn,"readwrite");return await r.objectStore(Dn).put(t,n),await r.done,t}function An({appConfig:e}){return e.appId}const On=new l("messaging","Messaging",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invali
2d-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."});async function Bn(e,t){const n={method:"DELETE",headers:await Nn(e)};try{const r=await fetch(`${Ln(e.appConfig)}/${t}`,n),i=await r.json();if(i.error){const e=i.error.message;throw On.create("token-unsubscribe-failed",{errorInfo:e})}}catch(e){throw On.create("token-unsubscribe-failed",{errorInfo:null==e?void 0:e.toString()})}}function Ln({projectId:e}){return`${ln}/projects/${e}/registrations`}async function Nn({appConfig:e,installations:t}){const n=await t.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":`FIS ${n}`})}function jn({p256dh:e,auth:t,endpoint:n,vapidKey:r}){const i={web:{endpoint:n,auth:t,p256dh:e}};return r!==dn&&(i.web.applicationPubKey=r),i}const Pn=6048e5;async function Mn(e){const t=await async function(e,t){const n=await e.pushManager.getSubscription();return n||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:wn(t)})}(e.swRegistration,e.vapidKey),n={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:bn(t.getKey("auth")),p256dh:bn(t.getKey("p256dh"))},r=await kn(e.firebaseDependencies);if(r){if(function(e,t){const n=t.vapidKey===e.vapidKey,r=t.endpoint===e.endpoint,i=t.auth===e.auth,a=t.p256dh===e.p256dh;return n&&r&&i&&a}(r.subscriptionOptions,n))return Date.now()>=r.createTime+Pn?async function(e,t){try{const n=await async function(e,t){const n=await Nn(e),r=jn(t.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)};let a;try{const n=await fetch(`${Ln(e.appConfig)}/${t.token}`,i);a=await n.json()}catch(e){throw On.create("token-update-failed",{errorInfo:null==e?void 0:e.toString()})}if(a.error){const e=a.error.message;throw On.create("token-update-failed",{errorInfo:e})}if(!a.token)throw On.create("token-update-no-token");return a.token}(e.firebaseDependencies,t),r=Object.assign(Object.assign({},t),{token:n,createTime:Date.now()});return await Tn(e.firebaseDependencies,r),n}catch(t){throw await async function(e){const t=await kn(e.firebaseDependencies);t&&(await Bn(e.firebaseDependencies,t.token),await async function(e){const t=An(e),n=(await Cn()).transaction(Dn,"readwrite");await n.objectStore(Dn).delete(t),await n.done}
vendor: 5,284 bytes, line 2
2(e.firebaseDependencies));const n=await e.swRegistration.pushManager.getSubscription();return!n||n.unsubscribe()}(e),t}}(e,{token:r.token,createTime:Date.now(),subscriptionOptions:n}):r.token;try{await Bn(e.firebaseDependencies,r.token)}catch(e){console.warn(e)}return Rn(e.firebaseDependencies,n)}return Rn(e.firebaseDependencies,n)}async function Rn(e,t){const n=await async function(e,t){const n=await Nn(e),r=jn(t),i={method:"POST",headers:n,body:JSON.stringify(r)};let a;try{const t=await fetch(Ln(e.appConfig),i);a=await t.json()}catch(e){throw On.create("token-subscribe-failed",{errorInfo:null==e?void 0:e.toString()})}if(a.error){const e=a.error.message;throw On.create("token-subscribe-failed",{errorInfo:e})}if(!a.token)throw On.create("token-subscribe-no-token");return a.token}(e,t),r={token:n,createTime:Date.now(),subscriptionOptions:t};return await Tn(e,r),r.token}function $n(e){const t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return function(e,t){if(!t.notification)return;e.notification={};const n=t.notification.title;n&&(e.notification.title=n);const r=t.notification.body;r&&(e.notification.body=r);const i=t.notification.image;i&&(e.notification.image=i);const a=t.notification.icon;a&&(e.notification.icon=a)}(t,e),function(e,t){t.data&&(e.data=t.data)}(t,e),function(e,t){var n,r,i,a,o;if(!t.fcmOptions&&!(null===(n=t.notification)||void 0===n?void 0:n.click_action))return;e.fcmOptions={};const s=null!==(i=null===(r=t.fcmOptions)||void 0===r?void 0:r.link)&&void 0!==i?i:null===(a=t.notification)||void 0===a?void 0:a.click_action;s&&(e.fcmOptions.link=s);const c=null===(o=t.fcmOptions)||void 0===o?void 0:o.analytics_label;c&&(e.fcmOptions.analyticsLabel=c)}(t,e),t}function xn(e,t){const n=[];for(let r=0;r<e.length;r++)n.push(e.charAt(r)),r<t.length&&n.push(t.charAt(r));return n.join("")}function Hn(e){return On.create("missing-app-config-values",{valueName:e})}xn("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),xn("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");class Fn{constructor(e,t,n){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const r=function(e){if(!e||!e.options)throw Hn("App Configuration Object");if(!e.name)throw Hn("App Name");const t=["projectId","apiKey","appId","messagingSenderId"],{options:n}=e;for(const e of t)if(!n[e])throw Hn(e);return{appName:e.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}(e);this.firebaseDependencies={app:e,appConfig:r,installations:t,analyticsProvider:n}}_delete(){return Promise.resolve()}}async function Wn(e,t){if(!navigator)throw On.create("only-available-in-window");if("default"===Notification.permission&&await Notification.requestPermission(),"granted"!==Notification.permission)throw On.create("permission-blocked");return await async function(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=dn)}(e,null==t?void 0:t.vapidKey),await async function(e,t){if(t||e.swRegistration||await async function(e){try{e.swRegistration=await navigator.serviceWorker.register(cn,{scope:un}),e.swRegistration.update().catch((()=>{}))}catch(e){throw On.create("failed-service-worker-registration",{browserErrorMessage:null==e?void 0:e.message})}}(e),t||!e.swRegistration){if(!(t instanceof ServiceWorkerRegistration))throw On.create("invalid-sw-registration");e.swRegistration=t}}(e,null==t?void 0:t.serviceWorkerRegistration),Mn(e)}async function Kn(e,t){const n=t.data;if(!n.isFirebaseMessaging)return;e.onMessageHandler&&n.messageType===mn.PUSH_RECEIVED&&("function"==typeof e.onMessageHandler?e.onMessageHandler($n(n)):e.onMessageHandler.next($n(n)));const r=n.data;var i;"object"==typeof(i=r)&&i&&fn in i&&"1"===r["google.c.a.e"]&&await async function(e,t,n){const r=function(e){switch(e){case mn.NOTIFICATION_CLICKED:return"notification_open";case mn.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}(t);(await e.firebaseDependencies.analyticsProvider.get()).logEvent(r,{message_id:n[fn],message_name:n[pn],message_time:n[hn],message_device_time:Math.floor(Date.now()/1e3)})}(e,n.messageType,r)}const Vn="@firebase/messaging",Un="0.12.4";Ee(new m("messaging",(e=>{const t=new Fn(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",(e=>Kn(t,e))),t}),"PUBLIC")),Ee(new m("messaging-internal",(e=>{const t=e.getProvider("messaging").getImmediate();return{getToken:e=>Wn(t,e)}}),"PRIVATE")),Te(Vn,Un),Te(Vn,Un,"esm2017"),ke({apiKey:"AIzaSyADN3nQl79wwSZlrrZexHLSA3TDUMgn_r8",authDomain:"ceshi-fcm.firebaseapp.com",databaseURL:"https://ceshi-fcm-default-rtdb.firebaseio.com",projectId:"ceshi-fcm",storageBucket:"ceshi-fcm.appspot.com",messagingSenderId:"71216714726",appId:"1:71216714726:web:9e03dbda159275fbe4bc27",measurementId:"G-MN1QM3WGW4"});const zn=function(e=function(e=we){const t=ve.get(e);if(!t&&e===we&&o())return ke();if(!t)throw _e.create("no-app",{appName:e});return t}()){return async function(){try{await u()}catch(e){return!1}return"undefined"!=typeof window&&c()&&!("undefined"==typeof navigator||!navigator.cookieEnabled)&&"serviceWorker"
2in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}().then((e=>{if(!e)throw On.create("unsupported-browser")}),(e=>{throw On.create("indexed-db-unsupported")})),De(g(e),"messaging").getImmediate()}();let qn=localStorage.getItem("firebase_token"),Gn=function(e){var t;try{t=decodeURIComponent(window.location.search)}catch{t=window.location.search}if(1==t.indexOf("?"))return!1;t=(t=t.substr(1)).split("&"),e=e||"";for(var n,r=0;r<t.length;r++){var i=t[r].split("="),a={};a[i[0]]=i[1],t[r]=a}if(e)for(r=0;r<t.length;r++)for(const i in t[r])i==e&&(n=t[r][i]);else n=t;return n},Jn=function(){var e=Gn("fcm_redirect_url");e&&(window.location.href=decodeURIComponent(e))};(async function(e){return Wn(e=g(e),{vapidKey:"BFbUVo7HDLoaWvDdmxoshvtErJL8pD9bNkNznH5lIz5kHcNfrrylus9Q0Jk3YCeCPjGXdTxV9m9t2BzfzOGeP0U"})})(zn).then((e=>{e?(console.log(e),qn!==e?$.ajax({type:"POST",url:"https://mail.easeus.com/common-api/sub-add",data:{token:e},datatype:"json",success:function(t){200!=t.code&&400!=t.code||(qn=e,localStorage.setItem("firebase_token",e))}}):function(){if(Gn("firebase_cloud_message"))if("isReload"!=window.name){window.name="isReload";let e=localStorage.getItem("firebase_token");$.ajax({type:"POST",url:"https://mail.easeus.com/common-api/sub-click",data:{token:e,data:Gn("data")},datatype:"json",success:function(e){Jn()}})}else Jn()}()):console.log("No registration token available. Request permission to generate one.")})).catch((e=>{console.log("An error occurred while retrieving token. ",e),Jn()}));var Qn=function(e,t){navigator.serviceWorker.getRegistration().then((function(n){if(n)n.showNotification(e,t);else{var r=new Notification(e,{body:t.body,image:t.image||"",icon:t.icon||""});r.onclick=function(){window.location.href=t.data.notificationURL,window.focus(),r.close()},r.onerror=function(){console.log("notification error!!!")}}}))};!function(e){!function(e,t){if(!navigator)throw On.create("only-available-in-window");e.onMessageHandler=t}(e=g(e),(e=>{!function(e){var t=window.Notification||window.mozNotification||window.webkitNotification;t&&t.requestPermission((function(t){if("granted"==t){e.data.actions&&(e.data.actions=JSON.parse(e.data.actions)),e.data.data&&(e.data.data=JSON.parse(e.data.data));var n={...e.data};n.title||((n={...e.notification}).data={notificationURL:"/"}),Qn(n.title,n)}}))}(e)}))}(zn)})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.