1import{t as e}from"./rolldown-runtime-C0FnF6B9.js";import{P as t,w as n}from"./services-Cei6Y25H.js";var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};function o(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function s(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function c(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function l(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function u(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function d(e){return f(void 0,e)}function f(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:e===void 0&&(e={});break;case Array:e=[];break;default:return t}for(var n in t)!t.hasOwnProperty(n)||!p(n)||(e[n]=f(e[n],t[n]));return e}function p(e){return e!==`__proto__`}var m=function(){function e(){var e=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise(function(t,n){e.resolve=t,e.reject=n})}return e.prototype.wrapCallback=function(e){var t=this;return function(n,r){n?t.reject(n):t.resolve(r),typeof e==`function`&&(t.promise.catch(function(){}),e.length===1?e(n):e(n,r))}},e}();function ee(){try{return Object.prototype.toString.call(global.process)===`[object process]`}catch(e){return!1}}function te(){return typeof self==`object`&&self.self===self}var ne=`FirebaseError`,re=function(e){i(t,e);function t(n,r,i){var a=e.call(this,r)||this;return a.code=n,a.customData=i,a.name=ne,Object.setPrototypeOf(a,t.prototype),Error.captureStackTrace&&Error.captureStackTrace(a,h.prototype.create),a}return t}(Error),h=function(){function e(e,t,n){this.service=e,this.serviceName=t,this.errors=n}return e.prototype.create=function(e){var t=[...arguments].slice(1)[0]||{},n=this.service+`/`+e,r=this.errors[e],i=r?ie(r,t):`Error`;return new re(n,this.serviceName+`: `+i+` (`+n+`).`,t)},e}();function ie(e,t){return e.replace(ae,function(e,n){var r=t[n];return r==null?`<`+n+`?>`:String(r)})}var ae=/\{\$([^}]+)}/g;function oe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(function(){function e(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var e=1;e<this.blockSize;++e)this.pad_[e]=0;this.reset()}return e.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},e.prototype.compress_=function(e,t){t||(t=0);var n=this.W_;if(typeof e==`string`)for(var r=0;r<16;r++)n[r]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),t+=4;else for(var r=0;r<16;r++)n[r]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3],t+=4;for(var r=16;r<80;r++){var i=n[r-3]^n[r-8]^n[r-14]^n[r-16];n[r]=(i<<1|i>>>31)&4294967295}for(var a=this.chain_[0],o=this.chain_[1],s=this.chain_[2],c=this.chain_[3],l=this.chain_[4],u,d,r=0;r<80;
1r++){r<40?r<20?(u=c^o&(s^c),d=1518500249):(u=o^s^c,d=1859775393):r<60?(u=o&s|c&(o|s),d=2400959708):(u=o^s^c,d=3395469782);var i=(a<<5|a>>>27)+u+l+d+n[r]&4294967295;l=c,c=s,s=(o<<30|o>>>2)&4294967295,o=a,a=i}this.chain_[0]=this.chain_[0]+a&4294967295,this.chain_[1]=this.chain_[1]+o&4294967295,this.chain_[2]=this.chain_[2]+s&4294967295,this.chain_[3]=this.chain_[3]+c&4294967295,this.chain_[4]=this.chain_[4]+l&4294967295},e.prototype.update=function(e,t){if(e!=null){t===void 0&&(t=e.length);for(var n=t-this.blockSize,r=0,i=this.buf_,a=this.inbuf_;r<t;){if(a===0)for(;r<=n;)this.compress_(e,r),r+=this.blockSize;if(typeof e==`string`){for(;r<t;)if(i[a]=e.charCodeAt(r),++a,++r,a===this.blockSize){this.compress_(i),a=0;break}}else for(;r<t;)if(i[a]=e[r],++a,++r,a===this.blockSize){this.compress_(i),a=0;break}}this.inbuf_=a,this.total_+=t}},e.prototype.digest=function(){var e=[],t=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var n=this.blockSize-1;n>=56;n--)this.buf_[n]=t&255,t/=256;this.compress_(this.buf_);for(var r=0,n=0;n<5;n++)for(var i=24;i>=0;i-=8)e[r]=this.chain_[n]>>i&255,++r;return e},e})();function se(e,t){var n=new ce(e,t);return n.subscribe.bind(n)}var ce=function(){function e(e,t){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(function(){e(n)}).catch(function(e){n.error(e)})}return e.prototype.next=function(e){this.forEachObserver(function(t){t.next(e)})},e.prototype.error=function(e){this.forEachObserver(function(t){t.error(e)}),this.close(e)},e.prototype.complete=function(){this.forEachObserver(function(e){e.complete()}),this.close()},e.prototype.subscribe=function(e,t,n){var r=this,i;if(e===void 0&&t===void 0&&n===void 0)throw Error(`Missing Observer.`);i=le(e,[`next`,`error`,`complete`])?e:{next:e,error:t,complete:n},i.next===void 0&&(i.next=ue),i.error===void 0&&(i.error=ue),i.complete===void 0&&(i.complete=ue);var a=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(function(){try{r.finalError?i.error(r.finalError):i.complete()}catch(e){}}),this.observers.push(i),a},e.prototype.unsubscribeOne=function(e){this.observers!==void 0&&this.observers[e]!==void 0&&(delete this.observers[e],--this.observerCount,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))},e.prototype.forEachObserver=function(e){if(!this.finalized)for(var t=0;t<this.observers.length;t++)this.sendOne(t,e)},e.prototype.sendOne=function(e,t){var n=this;this.task.then(function(){if(n.observers!==void 0&&n.observers[e]!==void 0)try{t(n.observers[e])}catch(e){typeof console<`u`&&console.error&&console.error(e)}})},e.prototype.close=function(e){var t=this;this.finalized||(this.finalized=!0,e!==void 0&&(this.finalError=e),this.task.then(function(){t.observers=void 0,t.onNoObservers=void 0}))},e}();function le(e,t){if(typeof e!=`object`||!e)return!1;for(var n=0,r=t;n<r.length;n++){var i=r[n];if(i in e&&typeof e[i]==`function`)return!0}return!1}function ue(){}var g=function(){function e(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode=`LAZY`,this.onInstanceCreated=null}return e.prototype.setInstantiationMode=function(e){return this.instantiationMode=e,this},e.prototype.setMultipleInstances=function(e){return this.multipleInstances=e,this},e.prototype.setServiceProps=function(e){return this.serviceProps=e,this},e.prototype.setInstanceCreatedCallback=function(e){return this.onInstanceCreated=e,this},e}(),v=`[DEFAULT]`,de=function(){function e(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}return e.prototype.get=function(e){var t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){var n=new m;if(this.instancesDeferred.set(t,n),this.isInitialized(t)||this.shouldAutoInitialize())try{var r=this.getOrInitializeService({instanceIdentifier:t});r&&n.resolve(r)}catch(e){}}return this.instancesDeferred.get(t).promise},e.prototype.getImmediate=function(e){var t,n=this.normalizeInstanceIdentifier(e==null?void 0:e.identifier),r=(t=e==null?void 0:e.optional)!=null&&t;if(this.isInitialized(n)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:n})}catch(e){if(r)return null;throw e}if(r)return null;throw Error(`Service `+this.name+` is not available`)},e.prototype.getComponent=function(){return this.component},e.prototype.setComponent=function(e){var t,n;
1if(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(pe(e))try{this.getOrInitializeService({instanceIdentifier:v})}catch(e){}try{for(var r=c(this.instancesDeferred.entries()),i=r.next();!i.done;i=r.next()){var a=l(i.value,2),o=a[0],s=a[1],u=this.normalizeInstanceIdentifier(o);try{var d=this.getOrInitializeService({instanceIdentifier:u});s.resolve(d)}catch(e){}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}}},e.prototype.clearInstance=function(e){e===void 0&&(e=v),this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)},e.prototype.delete=function(){return o(this,void 0,void 0,function(){var e;return s(this,function(t){switch(t.label){case 0:return e=Array.from(this.instances.values()),[4,Promise.all(u(u([],l(e.filter(function(e){return`INTERNAL`in e}).map(function(e){return e.INTERNAL.delete()}))),l(e.filter(function(e){return`_delete`in e}).map(function(e){return e._delete()}))))];case 1:return t.sent(),[2]}})})},e.prototype.isComponentSet=function(){return this.component!=null},e.prototype.isInitialized=function(e){return e===void 0&&(e=v),this.instances.has(e)},e.prototype.getOptions=function(e){return e===void 0&&(e=v),this.instancesOptions.get(e)||{}},e.prototype.initialize=function(e){var t,n;e===void 0&&(e={});var r=e.options,i=r===void 0?{}:r,a=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(a))throw Error(this.name+`(`+a+`) has already been initialized`);if(!this.isComponentSet())throw Error(`Component `+this.name+` has not been registered yet`);var o=this.getOrInitializeService({instanceIdentifier:a,options:i});try{for(var s=c(this.instancesDeferred.entries()),u=s.next();!u.done;u=s.next()){var d=l(u.value,2),f=d[0],p=d[1];a===this.normalizeInstanceIdentifier(f)&&p.resolve(o)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return o},e.prototype.onInit=function(e,t){var n,r=this.normalizeInstanceIdentifier(t),i=(n=this.onInitCallbacks.get(r))==null?new Set:n;i.add(e),this.onInitCallbacks.set(r,i);var a=this.instances.get(r);return a&&e(a,r),function(){i.delete(e)}},e.prototype.invokeOnInitCallbacks=function(e,t){var n,r,i=this.onInitCallbacks.get(t);if(i)try{for(var a=c(i),o=a.next();!o.done;o=a.next()){var s=o.value;try{s(e,t)}catch(e){}}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}},e.prototype.getOrInitializeService=function(e){var t=e.instanceIdentifier,n=e.options,r=n===void 0?{}:n,i=this.instances.get(t);if(!i&&this.component&&(i=this.component.instanceFactory(this.container,{instanceIdentifier:fe(t),options:r}),this.instances.set(t,i),this.instancesOptions.set(t,r),this.invokeOnInitCallbacks(i,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,i)}catch(e){}return i||null},e.prototype.normalizeInstanceIdentifier=function(e){return e===void 0&&(e=v),this.component?this.component.multipleInstances?e:v:e},e.prototype.shouldAutoInitialize=function(){return!!this.component&&this.component.instantiationMode!==`EXPLICIT`},e}();function fe(e){return e===v?void 0:e}function pe(e){return e.instantiationMode===`EAGER`}var me=function(){function e(e){this.name=e,this.providers=new Map}return e.prototype.addComponent=function(e){var t=this.getProvider(e.name);if(t.isComponentSet())throw Error(`Component `+e.name+` has already been registered with `+this.name);t.setComponent(e)},e.prototype.addOrOverwriteComponent=function(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)},e.prototype.getProvider=function(e){if(this.providers.has(e))return this.providers.get(e);var t=new de(e,this);return this.providers.set(e,t),t},e.prototype.getProviders=function(){return Array.from(this.providers.values())},e}();function y(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}var b,he=[],x;(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`})(x||(x={}));var ge={debug:x.DEBUG,verbose:x.VERBOSE,info:x.INFO,warn:x.WARN,error:x.ERROR,silent:x.SILENT},_e=x.INFO,ve=(b={},b[x.DEBUG]=`log`,b[x.VERBOSE]=`log`,b[x.INFO]=`info`,b[x.WARN]=`warn`,b[x.ERROR]=`error`,b),ye=function(e,t){var n=[...arguments].slice(2);if(!(t<e.logLevel)){var r=new Date().toISOString(),i=ve[t];if(i)console[i].apply(console,y([`[`+r+`] `+e.name+`:`],n));
1else throw Error(`Attempted to log a message with an invalid logType (value: `+t+`)`)}},be=function(){function e(e){this.name=e,this._logLevel=_e,this._logHandler=ye,this._userLogHandler=null,he.push(this)}return Object.defineProperty(e.prototype,"logLevel",{get:function(){return this._logLevel},set:function(e){if(!(e in x))throw TypeError(`Invalid value "`+e+'" assigned to `logLevel`');this._logLevel=e},enumerable:!1,configurable:!0}),e.prototype.setLogLevel=function(e){this._logLevel=typeof e==`string`?ge[e]:e},Object.defineProperty(e.prototype,"logHandler",{get:function(){return this._logHandler},set:function(e){if(typeof e!=`function`)throw TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(e){this._userLogHandler=e},enumerable:!1,configurable:!0}),e.prototype.debug=function(){var e=[...arguments];this._userLogHandler&&this._userLogHandler.apply(this,y([this,x.DEBUG],e)),this._logHandler.apply(this,y([this,x.DEBUG],e))},e.prototype.log=function(){var e=[...arguments];this._userLogHandler&&this._userLogHandler.apply(this,y([this,x.VERBOSE],e)),this._logHandler.apply(this,y([this,x.VERBOSE],e))},e.prototype.info=function(){var e=[...arguments];this._userLogHandler&&this._userLogHandler.apply(this,y([this,x.INFO],e)),this._logHandler.apply(this,y([this,x.INFO],e))},e.prototype.warn=function(){var e=[...arguments];this._userLogHandler&&this._userLogHandler.apply(this,y([this,x.WARN],e)),this._logHandler.apply(this,y([this,x.WARN],e))},e.prototype.error=function(){var e=[...arguments];this._userLogHandler&&this._userLogHandler.apply(this,y([this,x.ERROR],e)),this._logHandler.apply(this,y([this,x.ERROR],e))},e}();function xe(e){he.forEach(function(t){t.setLogLevel(e)})}function Se(e,t){for(var n=function(n){var r=null;t&&t.level&&(r=ge[t.level]),n.userLogHandler=e===null?null:function(t,n){var i=[...arguments].slice(2),a=i.map(function(e){if(e==null)return null;if(typeof e==`string`)return e;if(typeof e==`number`||typeof e==`boolean`)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(e){return null}}).filter(function(e){return e}).join(` `);n>=(r==null?t.logLevel:r)&&e({level:x[n].toLowerCase(),message:a,args:i,type:t.name})}},r=0,i=he;r<i.length;r++){var a=i[r];n(a)}}var S,C=new h(`app`,`Firebase`,(S={},S[`no-app`]=`No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()`,S[`bad-app-name`]=`Illegal App name: '{$appName}`,S[`duplicate-app`]=`Firebase App named '{$appName}' already exists`,S[`app-deleted`]=`Firebase App named '{$appName}' already deleted`,S[`invalid-app-argument`]=`firebase.{$appName}() takes either no argument or a Firebase App instance.`,S[`invalid-log-argument`]="First argument to `onLog` must be null or a function.",S)),Ce=`@firebase/app`,we=`0.6.30`,Te=`@firebase/analytics`,Ee=`@firebase/app-check`,De=`@firebase/auth`,Oe=`@firebase/database`,ke=`@firebase/functions`,Ae=`@firebase/installations`,je=`@firebase/messaging`,Me=`@firebase/performance`,Ne=`@firebase/remote-config`,Pe=`@firebase/storage`,Fe=`@firebase/firestore`,Ie=`firebase-wrapper`,w,T=`[DEFAULT]`,Le=(w={},w[Ce]=`fire-core`,w[Te]=`fire-analytics`,w[Ee]=`fire-app-check`,w[De]=`fire-auth`,w[Oe]=`fire-rtdb`,w[ke]=`fire-fn`,w[Ae]=`fire-iid`,w[je]=`fire-fcm`,w[Me]=`fire-perf`,w[Ne]=`fire-rc`,w[Pe]=`fire-gcs`,w[Fe]=`fire-fst`,w[`fire-js`]=`fire-js`,w[Ie]=`fire-js-all`,w),E=new be(`@firebase/app`),D=function(){function e(e,t,n){var r=this;this.firebase_=n,this.isDeleted_=!1,this.name_=t.name,this.automaticDataCollectionEnabled_=t.automaticDataCollectionEnabled||!1,this.options_=d(e),this.container=new me(t.name),this._addComponent(new g(`app`,function(){return r},`PUBLIC`)),this.firebase_.INTERNAL.components.forEach(function(e){return r._addComponent(e)})}return Object.defineProperty(e.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(e){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=e}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),e.prototype.delete=function(){var e=this;return new Promise(function(t){e.checkDestroyed_(),t()}).then(function(){return e.firebase_.INTERNAL.removeApp(e.name_),Promise.all(e.container.getProviders().map(function(e){return e.delete()}))}).then(function(){e.isDeleted_=!0})},e.prototype._getService=function(e,t){var n;t===void 0&&(t=T),this.checkDestroyed_();var r=this.container.getProvider(e);return!r.isInitialized()&&((n=r.getComponent())==null?void 0:n.instantiationMode)===`EXPLICIT`&&r.initialize(),r.getImmediate({identifier:t})},e.prototype._removeServiceInstance=function(e,t){t===void 0&&(t=T),this.container.getProvider(e).clearInstance(t)},e.prototype._addComponent=function(e){try{this.container.addComponent(e)}catch(t){E.debug(`Component `+e.name+` failed to register with FirebaseApp `+this.name,t)}},e.prototype._addOrOverwriteComponent=function(e){this.container.addOrOverwriteComponent(e)},e.prototype.toJSON=function(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}},e.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw C.create(`app-deleted`,{appName:this.name_})},e}();D.prototype.name&&D.prototype.options||D.prototype.delete||console.log(`dc`);var Re=`8.10.0`;function ze(e){var t={},n=new Map,r={__esModule:!0,initializeApp:o,app:a,registerVersion:l,setLogLevel:xe,onLog:u,apps:null,SDK_VERSION:Re,INTERNAL:{registerComponent:c,removeApp:i,components:n,useAsService:d}};r.default=r,Object.defineProperty(r,"apps",{get:s});function i(e){delete t[e]}function a(e){if(e=e||T,!oe(t,e))throw C.create(`no-app`,{appName:e});return t[e]}a.App=e;function o(n,i){i===void 0&&(i={}),(typeof i!=`object`||!i)&&(i={name:i});var a=i;a.name===void 0&&(a.name=T);var o=a.name;if(typeof o!=`string`||!o)throw C.create(`bad-app-name`,{appName:String(o)});if(oe(t,o))throw C.create(`duplicate-app`,{appName:o});var s=new e(n,a,r);return t[o]=s,s}function s(){return Object.keys(t).map(function(e){return t[e]})}function c(i){var o=i.name;if(n.has(o))return E.debug(`There were multiple attempts to register component `+o+`.`),i.type===`PUBLIC`?r[o]:null;if(n.set(o,i),i.type===`PUBLIC`){var s=function(e){if(e===void 0&&(e=a()),typeof e[o]!=`function`)throw C.create(`invalid-app-argument`,{appName:o});return e[o]()};i.serviceProps!==void 0&&f(s,i.serviceProps),r[o]=s,e.prototype[o]=function(){var e=[...arguments];return this._getService.bind(this,o).apply(this,i.multipleInstances?e:[])}}for(var c=0,l=Object.keys(t);c<l.length;c++)t[l[c]]._addComponent(i);return i.type===`PUBLIC`?r[o]:null}function l(e,t,n){var r,i=(r=Le[e])==null?e:r;n&&(i+=`-`+n);var a=i.match(/\s|\//),o=t.match(/\s|\//);if(a||o){var s=[`Unable to register library "`+i+`" with version "`+t+`":`];a&&s.push(`library name "`+i+`" contains illegal characters (whitespace or "/")`),a&&o&&s.push(`and`),o&&s.push(`version name "`+t+`" contains illegal characters (whitespace or "/")`),E.warn(s.join(` `));return}c(new g(i+`-version`,function(){return{library:i,version:t}},`VERSION`))}function u(e,t){if(e!==null&&typeof e!=`function`)throw C.create(`invalid-log-argument`);Se(e,t)}function d(e,t){return t===`serverAuth`?null:t}return r}function Be(){var e=ze(D);e.INTERNAL=a(a({},e.INTERNAL),{createFirebaseNamespace:Be,extendNamespace:t,createSubscribe:se,ErrorFactory:h,deepExtend:f});function t(t){f(e,t)}return e}var Ve=Be(),He=function(){function e(e){this.container=e}return e.prototype.getPlatformInfoString=function(){return this.container.getProviders().map(function(e){if(Ue(e)){var t=e.getImmediate();return t.library+`/`+t.version}return null}).filter(function(e){return e}).join(` `)},e}();function Ue(e){var t=e.getComponent();return(t==null?void 0:t.type)===`VERSION`}function We(e,t){e.INTERNAL.registerComponent(new g(`platform-logger`,function(e){return new He(e)},`PRIVATE`)),e.registerVersion(Ce,we,t),e.registerVersion(`fire-js`,``)}
1if(te()&&self.firebase!==void 0){E.warn(` 2 Warning: Firebase is already defined in the global scope. Please make sure 3 Firebase library is only loaded once. 4 `);var Ge=self.firebase.SDK_VERSION;Ge&&Ge.indexOf(`LITE`)>=0&&E.warn(` 5 Warning: You are trying to load Firebase while using Firebase Performance standalone script. 6 You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code. 7 `)}var Ke=Ve.initializeApp;Ve.initializeApp=function(){var e=[...arguments];return ee()&&E.warn(` 8 Warning: This is a browser-targeted Firebase bundle but it appears it is being 9 run in a Node environment. If running in a Node environment, make sure you 10 are using the bundle specified by the "main" field in package.json. 11 12 If you are using Webpack, you can specify "main" as the first item in 13 "resolve.mainFields": 14 https://webpack.js.org/configuration/resolve/#resolvemainfields 15 16 If using Rollup, use the @rollup/plugin-node-resolve plugin and specify "main" 17 as the first item in "mainFields", e.g. ['main', 'module']. 18 https://github.com/rollup/@rollup/plugin-node-resolve 19 `),Ke.apply(void 0,e)};var O=Ve;We(O);var qe=`firebase`,Je=`8.10.1`;O.registerVersion(qe,Je,`app`),O.SDK_VERSION=Je;var k=e(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n=n||self,r(n.idb={}))})(e,function(e){function t(e){return Array.prototype.slice.call(e)}function n(e){return new Promise(function(t,n){e.onsuccess=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function r(e,t,r){var i,a=new Promise(function(a,o){i=e[t].apply(e,r),n(i).then(a,o)});return a.request=i,a}function i(e,t,n){var i=r(e,t,n);return i.then(function(e){if(e)return new u(e,i.request)})}function a(e,t,n){n.forEach(function(n){Object.defineProperty(e.prototype,n,{get:function(){return this[t][n]},set:function(e){this[t][n]=e}})})}function o(e,t,n,i){i.forEach(function(i){i in n.prototype&&(e.prototype[i]=function(){return r(this[t],i,arguments)})})}function s(e,t,n,r){r.forEach(function(r){r in n.prototype&&(e.prototype[r]=function(){return this[t][r].apply(this[t],arguments)})})}function c(e,t,n,r){r.forEach(function(r){r in n.prototype&&(e.prototype[r]=function(){return i(this[t],r,arguments)})})}function l(e){this._index=e}a(l,`_index`,[`name`,`keyPath`,`multiEntry`,`unique`]),o(l,`_index`,IDBIndex,[`get`,`getKey`,`getAll`,`getAllKeys`,`count`]),c(l,`_index`,IDBIndex,[`openCursor`,`openKeyCursor`]);function u(e,t){this._cursor=e,this._request=t}a(u,`_cursor`,[`direction`,`key`,`primaryKey`,`value`]),o(u,`_cursor`,IDBCursor,[`update`,`delete`]),[`advance`,`continue`,`continuePrimaryKey`].forEach(function(e){e in IDBCursor.prototype&&(u.prototype[e]=function(){var t=this,r=arguments;return Promise.resolve().then(function(){return t._cursor[e].apply(t._cursor,r),n(t._request).then(function(e){if(e)return new u(e,t._request)})})})});function d(e){this._store=e}d.prototype.createIndex=function(){return new l(this._store.createIndex.apply(this._store,arguments))},d.prototype.index=function(){return new l(this._store.index.apply(this._store,arguments))},a(d,`_store`,[`name`,`keyPath`,`indexNames`,`autoIncrement`]),o(d,`_store`,IDBObjectStore,[`put`,`add`,`delete`,`clear`,`get`,`getAll`,`getKey`,`getAllKeys`,`count`]),c(d,`_store`,IDBObjectStore,[`openCursor`,`openKeyCursor`]),s(d,`_store`,IDBObjectStore,[`deleteIndex`]);function f(e){this._tx=e,this.complete=new Promise(function(t,n){e.oncomplete=function(){t()},e.onerror=function(){n(e.error)},e.onabort=function(){n(e.error)}})}f.prototype.objectStore=function(){return new d(this._tx.objectStore.apply(this._tx,arguments))},a(f,`_tx`,[`objectStoreNames`,`mode`]),s(f,`_tx`,IDBTransaction,[`abort`]);function p(e,t,n){this._db=e,this.oldVersion=t,this.transaction=new f(n)}p.prototype.createObjectStore=function(){return new d(this._db.createObjectStore.apply(this._db,arguments))},a(p,`_db`,[`name`,`version`,`objectStoreNames`]),s(p,`_db`,IDBDatabase,[`deleteObjectStore`,`close`]);function m(e){this._db=e}m.prototype.transaction=function(){return new f(this._db.transaction.apply(this._db,arguments))},a(m,`_db`,[`name`,`version`,`objectStoreNames`]),s(m,`_db`,IDBDatabase,[`close`]),[`openCursor`,`openKeyCursor`].forEach(function(e){[d,l].forEach(function(n){e in n.prototype&&(n.prototype[e.replace(`open`,`iterate`)]=function(){var n=t(arguments),r=n[n.length-1],i=this._store||this._index,a=i[e].apply(i,n.slice(0,-1));a.onsuccess=function(){r(a.result)}})})}
19),[l,d].forEach(function(e){e.prototype.getAll||(e.prototype.getAll=function(e,t){var n=this,r=[];return new Promise(function(i){n.iterateCursor(e,function(e){if(!e){i(r);return}if(r.push(e.value),t!==void 0&&r.length==t){i(r);return}e.continue()})})})});function ee(e,t,n){var i=r(indexedDB,`open`,[e,t]),a=i.request;return a&&(a.onupgradeneeded=function(e){n&&n(new p(a.result,e.oldVersion,a.transaction))}),i.then(function(e){return new m(e)})}function te(e){return r(indexedDB,`deleteDatabase`,[e])}e.openDb=ee,e.deleteDb=te,Object.defineProperty(e,"__esModule",{value:!0})})}))(),Ye=`@firebase/installations`,Xe=`0.4.32`,Ze=1e4,Qe=`w:`+Xe,$e=`FIS_v2`,et=`https://firebaseinstallations.googleapis.com/v1`,tt=36e5,nt=`installations`,rt=`Installations`,A,j=new h(nt,rt,(A={},A[`missing-app-config-values`]=`Missing App configuration value: "{$valueName}"`,A[`not-registered`]=`Firebase Installation is not registered.`,A[`installation-not-found`]=`Firebase Installation not found.`,A[`request-failed`]=`{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"`,A[`app-offline`]=`Could not process request. Application offline.`,A[`delete-pending-registration`]=`Can't delete installation while there is a pending registration request.`,A));function it(e){return e instanceof re&&e.code.includes(`request-failed`)}function at(e){var t=e.projectId;return et+`/projects/`+t+`/installations`}function ot(e){return{token:e.token,requestStatus:2,expiresIn:ut(e.expiresIn),creationTime:Date.now()}}function M(e,t){return o(this,void 0,void 0,function(){var n,r;return s(this,function(i){switch(i.label){case 0:return[4,t.json()];case 1:return n=i.sent(),r=n.error,[2,j.create(`request-failed`,{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})]}})})}function st(e){var t=e.apiKey;return new Headers({"Content-Type":`application/json`,Accept:`application/json`,"x-goog-api-key":t})}function ct(e,t){var n=t.refreshToken,r=st(e);return r.append(`Authorization`,dt(n)),r}function lt(e){return o(this,void 0,void 0,function(){var t;return s(this,function(n){switch(n.label){case 0:return[4,e()];case 1:return t=n.sent(),t.status>=500&&t.status<600?[2,e()]:[2,t]}})})}function ut(e){return Number(e.replace(`s`,`000`))}function dt(e){return $e+` `+e}function ft(e,t){var n=t.fid;return o(this,void 0,void 0,function(){var t,r,i,a,o,c,l;return s(this,function(s){switch(s.label){case 0:return t=at(e),r=st(e),i={fid:n,authVersion:$e,appId:e.appId,sdkVersion:Qe},a={method:`POST`,headers:r,body:JSON.stringify(i)},[4,lt(function(){return fetch(t,a)})];case 1:return o=s.sent(),o.ok?[4,o.json()]:[3,3];case 2:return c=s.sent(),l={fid:c.fid||n,registrationStatus:2,refreshToken:c.refreshToken,authToken:ot(c.authToken)},[2,l];case 3:return[4,M(`Create Installation`,o)];case 4:throw s.sent()}})})}function pt(e){return new Promise(function(t){setTimeout(t,e)})}function mt(e){return btoa(String.fromCharCode.apply(String,u([],l(e)))
19).replace(/\+/g,`-`).replace(/\//g,`_`)}var ht=/^[cdef][\w-]{21}$/,gt=``;function _t(){try{var e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;var t=vt(e);return ht.test(t)?t:gt}catch(e){return gt}}function vt(e){return mt(e).substr(0,22)}function N(e){return e.appName+`!`+e.appId}var P=new Map;function yt(e,t){var n=N(e);St(n,t),Ct(n,t)}function bt(e,t){wt();var n=N(e),r=P.get(n);r||(r=new Set,P.set(n,r)),r.add(t)}function xt(e,t){var n=N(e),r=P.get(n);r&&(r.delete(t),r.size===0&&P.delete(n),Tt())}function St(e,t){var n,r,i=P.get(e);if(i)try{for(var a=c(i),o=a.next();!o.done;o=a.next()){var s=o.value;s(t)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}function Ct(e,t){var n=wt();n&&n.postMessage({key:e,fid:t}),Tt()}var F=null;function wt(){return!F&&`BroadcastChannel`in self&&(F=new BroadcastChannel(`[Firebase] FID Change`),F.onmessage=function(e){St(e.data.key,e.data.fid)}),F}function Tt(){P.size===0&&F&&(F.close(),F=null)}var Et=`firebase-installations-database`,Dt=1,I=`firebase-installations-store`,L=null;function Ot(){return L||(L=(0,k.openDb)(Et,Dt,function(e){e.oldVersion===0&&e.createObjectStore(I)})),L}function R(e,t){return o(this,void 0,void 0,function(){var n,r,i,a,o;return s(this,function(s){switch(s.label){case 0:return n=N(e),[4,Ot()];case 1:return r=s.sent(),i=r.transaction(I,`readwrite`),a=i.objectStore(I),[4,a.get(n)];case 2:return o=s.sent(),[4,a.put(t,n)];case 3:return s.sent(),[4,i.complete];case 4:return s.sent(),(!o||o.fid!==t.fid)&&yt(e,t.fid),[2,t]}})})}function kt(e){return o(this,void 0,void 0,function(){var t,n,r;return s(this,function(i){switch(i.label){case 0:return t=N(e),[4,Ot()];case 1:return n=i.sent(),r=n.transaction(I,`readwrite`),[4,r.objectStore(I).delete(t)];case 2:return i.sent(),[4,r.complete];case 3:return i.sent(),[2]}})})}function z(e,t){return o(this,void 0,void 0,function(){var n,r,i,a,o,c;return s(this,function(s){switch(s.label){case 0:return n=N(e),[4,Ot()];case 1:return r=s.sent(),i=r.transaction(I,`readwrite`),a=i.objectStore(I),[4,a.get(n)];case 2:return o=s.sent(),c=t(o),c===void 0?[4,a.delete(n)]:[3,4];case 3:return s.sent(),[3,6];case 4:return[4,a.put(c,n)];case 5:s.sent(),s.label=6;case 6:return[4,i.complete];case 7:return s.sent(),c&&(!o||o.fid!==c.fid)&&yt(e,c.fid),[2,c]}})})}function At(e){return o(this,void 0,void 0,function(){var t,n,r;return s(this,function(i){switch(i.label){case 0:return[4,z(e,function(n){var r=Mt(e,jt(n));return t=r.registrationPromise,r.installationEntry})];case 1:return n=i.sent(),n.fid===gt?(r={},[4,t]):[3,3];case 2:return[2,(r.installationEntry=i.sent(),r)];case 3:return[2,{installationEntry:n,registrationPromise:t}]}})})}function jt(e){return It(e||{fid:_t(),registrationStatus:0})}function Mt(e,t){if(t.registrationStatus===0){if(!navigator.onLine)return{installationEntry:t,registrationPromise:Promise.reject(j.create(`app-offline`))};var n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()};return{installationEntry:n,registrationPromise:Nt(e,n)}}return t.registrationStatus===1?{installationEntry:t,registrationPromise:Pt(e)}:{installationEntry:t}}function Nt(e,t){return o(this,void 0,void 0,function(){var n,r;return s(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,7]),[4,ft(e,t)];case 1:return n=i.sent(),[2,R(e,n)];case 2:return r=i.sent(),it(r)&&r.customData.serverCode===409?[4,kt(e)]:[3,4];case 3:return i.sent(),[3,6];case 4:return[4,R(e,{fid:t.fid,registrationStatus:0})];case 5:i.sent(),i.label=6;case 6:throw r;case 7:return[2]}})})}function Pt(e){return o(this,void 0,void 0,function(){var t,n,r,i;return s(this,function(a){switch(a.label){case 0:return[4,Ft(e)];case 1:t=a.sent(),a.label=2;case 2:return t.registrationStatus===1?[4,pt(100)]:[3,5];case 3:return a.sent(),[4,Ft(e)];case 4:return t=a.sent(),[3,2];case 5:return t.registrationStatus===0?[4,At(e)]:[3,7];case 6:return n=a.sent(),r=n.installationEntry,i=n.registrationPromise,i?[2,i]:[2,r];case 7:return[2,t]}})})}function Ft(e){return z(e,function(e){if(!e)throw j.create(`installation-not-found`);return It(e)})}function It(e){return Lt(e)?{fid:e.fid,registrationStatus:0}:e}function Lt(e){return e.registrationStatus===1&&e.registrationTime+Ze<Date.now()}function Rt(e,t){var n=e.appConfig,r=e.platformLoggerProvider;return o(this,void 0,void 0,function(){var e,i,a,o,c,l,u,d;return s(this,function(s){switch(s.label){case 0:return e=zt(n,t),i=ct(n,t),a=r.getImmediate({optional:!0}),a&&i.append(`x-firebase-client`,a.getPlatformInfoString()),o={installation:{sdkVersion:Qe}},c={method:`POST`,headers:i,body:JSON.stringify(o)},[4,lt(function(){return fetch(e,c)})];case 1:return l=s.sent(),l.ok?[4,l.json()]:[3,3];case 2:return u=s.sent(),d=ot(u),[2,d];case 3:return[4,M(`Generate Auth Token`,l)];case 4:throw s.sent()}})})}function zt(e,t){var n=t.fid;return at(e)+`/`+n+`/authTokens:generate`}function Bt(e,t){return t===void 0&&(t=!1),o(this,void 0,void 0,function(){var n,r,i,a;return s(this,function(o){switch(o.label){case 0:return[4,z(e.appConfig,function(r){if(!Wt(r))throw j.create(`not-registered`);var i=r.authToken;if(!t&&Gt(i))return r;if(i.requestStatus===1)return n=Vt(e,t),r;if(!navigator.onLine)throw j.create(`app-offline`);var a=qt(r);return n=Ut(e,a),a})];case 1:return r=o.sent(),n?[4,n]:[3,3];case 2:return a=o.sent(),[3,4];case 3:a=r.authToken,o.label=4;case 4:return i=a,[2,i]}})})}function Vt(e,t){return o(this,void 0,void 0,function(){var n,r;return s(this,function(i){switch(i.label){case 0:return[4,Ht(e.appConfig)];case 1:n=i.sent(),i.label=2;case 2:return n.authToken.requestStatus===1?[4,pt(100)]:[3,5];case 3:return i.sent(),[4,Ht(e.appConfig)];case 4:return n=i.sent(),[3,2];case 5:return r=n.authToken,r.requestStatus===0?[2,Bt(e,t)]:[2,r]}})})}function Ht(e){return z(e,function(e){if(!Wt(e))throw j.create(`not-registered`);var t=e.authToken;return Jt(t)?a(a({},e),{authToken:{requestStatus:0}}):e})}function Ut(e,t){return o(this,void 0,void 0,function(){var n,r,i,r;return s(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,,8]),[4,Rt(e,t)];case 1:return n=o.sent(),r=a(a({},t),{authToken:n}),[4,R(e.appConfig,r)];case 2:return o.sent(),[2,n];case 3:return i=o.sent(),it(i)&&(i.customData.serverCode===401||i.customData.serverCode===404)?[4,kt(e.appConfig)]:[3,5];case 4:return o.sent(),[3,7];case 5:return r=a(a({},t),{authToken:{requestStatus:0}}),[4,R(e.appConfig,r)];case 6:o.sent(),o.label=7;case 7:throw i;case 8:return[2]}})})}function Wt(e){return e!==void 0&&e.registrationStatus===2}function Gt(e){return e.requestStatus===2&&!Kt(e)}function Kt(e){var t=Date.now();
19return t<e.creationTime||e.creationTime+e.expiresIn<t+tt}function qt(e){var t={requestStatus:1,requestTime:Date.now()};return a(a({},e),{authToken:t})}function Jt(e){return e.requestStatus===1&&e.requestTime+Ze<Date.now()}function Yt(e){return o(this,void 0,void 0,function(){var t,n,r;return s(this,function(i){switch(i.label){case 0:return[4,At(e.appConfig)];case 1:return t=i.sent(),n=t.installationEntry,r=t.registrationPromise,r?r.catch(console.error):Bt(e).catch(console.error),[2,n.fid]}})})}function Xt(e,t){return t===void 0&&(t=!1),o(this,void 0,void 0,function(){var n;return s(this,function(r){switch(r.label){case 0:return[4,Zt(e.appConfig)];case 1:return r.sent(),[4,Bt(e,t)];case 2:return n=r.sent(),[2,n.token]}})})}function Zt(e){return o(this,void 0,void 0,function(){var t;return s(this,function(n){switch(n.label){case 0:return[4,At(e)];case 1:return t=n.sent().registrationPromise,t?[4,t]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}})})}function Qt(e,t){return o(this,void 0,void 0,function(){var n,r,i,a;return s(this,function(o){switch(o.label){case 0:return n=$t(e,t),r=ct(e,t),i={method:`DELETE`,headers:r},[4,lt(function(){return fetch(n,i)})];case 1:return a=o.sent(),a.ok?[3,3]:[4,M(`Delete Installation`,a)];case 2:throw o.sent();case 3:return[2]}})})}function $t(e,t){var n=t.fid;return at(e)+`/`+n}function en(e){return o(this,void 0,void 0,function(){var t,n;return s(this,function(r){switch(r.label){case 0:return t=e.appConfig,[4,z(t,function(e){if(!(e&&e.registrationStatus===0))return e})];case 1:if(n=r.sent(),!n)return[3,6];if(n.registrationStatus!==1)return[3,2];throw j.create(`delete-pending-registration`);case 2:if(n.registrationStatus!==2)return[3,6];if(navigator.onLine)return[3,3];throw j.create(`app-offline`);case 3:return[4,Qt(t,n)];case 4:return r.sent(),[4,kt(t)];case 5:r.sent(),r.label=6;case 6:return[2]}})})}function tn(e,t){var n=e.appConfig;return bt(n,t),function(){xt(n,t)}}function nn(e){var t,n;if(!e||!e.options)throw rn(`App Configuration`);if(!e.name)throw rn(`App Name`);var r=[`projectId`,`apiKey`,`appId`];try{for(var i=c(r),a=i.next();!a.done;a=i.next()){var o=a.value;if(!e.options[o])throw rn(o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}function rn(e){return j.create(`missing-app-config-values`,{valueName:e})}function an(e){e.INTERNAL.registerComponent(new g(`installations`,function(e){var t=e.getProvider(`app`).getImmediate(),n={appConfig:nn(t),platformLoggerProvider:e.getProvider(`platform-logger`)};return{app:t,getId:function(){return Yt(n)},getToken:function(e){return Xt(n,e)},delete:function(){return en(n)},onIdChange:function(e){return tn(n,e)}}},`PUBLIC`)),e.registerVersion(Ye,Xe)}an(O);var B,V=new h(`messaging`,`Messaging`,(B={},B[`missing-app-config-values`]=`Missing App configuration value: "{$valueName}"`,B[`only-available-in-window`]=`This method is available in a Window context.`,B[`only-available-in-sw`]=`This method is available in a service worker context.`,B[`permission-default`]=`The notification permission was not granted and dismissed instead.`,B[`permission-blocked`]=`The notification permission was not granted and blocked instead.`,B[`unsupported-browser`]=`This browser doesn't support the API's required to use the firebase SDK.`,B[`failed-service-worker-registration`]=`We are unable to register the default service worker. {$browserErrorMessage}`,B[`token-subscribe-failed`]=`A problem occurred while subscribing the user to FCM: {$errorInfo}`,B[`token-subscribe-no-token`]=`FCM returned no token when subscribing the user to push.`,B[`token-unsubscribe-failed`]=`A problem occurred while unsubscribing the user from FCM: {$errorInfo}`,B[`token-update-failed`]=`A problem occurred while updating the user from FCM: {$errorInfo}`,B[`token-update-no-token`]=`FCM returned no token when updating the user to push.`,B[`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.`,B[`invalid-sw-registration`]=`The input to useServiceWorker() must be a ServiceWorkerRegistration.`,B[`invalid-bg-handler`]=`The input to setBackgroun
19dMessageHandler() must be a function.`,B[`invalid-vapid-key`]=`The public VAPID key must be a string.`,B[`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.`,B)),on=`/firebase-messaging-sw.js`,sn=`/firebase-cloud-messaging-push-scope`,H=`BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4`,cn=`https://fcmregistrations.googleapis.com/v1`,ln=`FCM_MSG`,un=`FirebaseMessaging: `,dn=`google.c.a.e`,fn=`google.c.a.c_id`,pn=`google.c.a.ts`,mn=`google.c.a.c_l`,hn=1e3,gn=3e3,U;(function(e){e.PUSH_RECEIVED=`push-received`,e.NOTIFICATION_CLICKED=`notification-clicked`})(U||(U={}));function W(e){var t=new Uint8Array(e);return btoa(String.fromCharCode.apply(String,u([],l(t)))).replace(/=/g,``).replace(/\+/g,`-`).replace(/\//g,`_`)}function _n(e){for(var t=(e+`=`.repeat((4-e.length%4)%4)).replace(/\-/g,`+`).replace(/_/g,`/`),n=atob(t),r=new Uint8Array(n.length),i=0;i<n.length;++i)r[i]=n.charCodeAt(i);return r}var vn=`fcm_token_details_db`,yn=5,bn=`fcm_token_object_Store`;function xn(e){return o(this,void 0,void 0,function(){var t,n,r,i,a=this;return s(this,function(c){switch(c.label){case 0:return`databases`in indexedDB?[4,indexedDB.databases()]:[3,2];case 1:if(t=c.sent(),n=t.map(function(e){return e.name}),!n.includes(vn))return[2,null];c.label=2;case 2:return r=null,[4,(0,k.openDb)(vn,yn,function(t){return o(a,void 0,void 0,function(){var n,i,a,a,a,o;return s(this,function(s){switch(s.label){case 0:return t.oldVersion<2||!t.objectStoreNames.contains(bn)?[2]:(n=t.transaction.objectStore(bn),[4,n.index(`fcmSenderId`).get(e)]);case 1:return i=s.sent(),[4,n.clear()];case 2:if(s.sent(),!i)return[2];if(t.oldVersion===2){if(a=i,!a.auth||!a.p256dh||!a.endpoint)return[2];r={token:a.fcmToken,createTime:(o=a.createTime)==null?Date.now():o,subscriptionOptions:{auth:a.auth,p256dh:a.p256dh,endpoint:a.endpoint,swScope:a.swScope,vapidKey:typeof a.vapidKey==`string`?a.vapidKey:W(a.vapidKey)}}}else(t.oldVersion===3||t.oldVersion===4)&&(a=i,r={token:a.fcmToken,createTime:a.createTime,subscriptionOptions:{auth:W(a.auth),p256dh:W(a.p256dh),endpoint:a.endpoint,swScope:a.swScope,vapidKey:W(a.vapidKey)}});return[2]}})})})];case 3:return i=c.sent(),i.close(),[4,(0,k.deleteDb)(vn)];case 4:return c.sent(),[4,(0,k.deleteDb)(`fcm_vapid_details_db`)];case 5:return c.sent(),[4,(0,k.deleteDb)(`undefined`)];case 6:return c.sent(),[2,Sn(r)?r:null]}})})}function Sn(e){if(!e||!e.subscriptionOptions)return!1;var t=e.subscriptionOptions;return typeof e.createTime==`number`&&e.createTime>0&&typeof e.token==`string`&&e.token.length>0&&typeof t.auth==`string`&&t.auth.length>0&&typeof t.p256dh==`string`&&t.p256dh.length>0&&typeof t.endpoint==`string`&&t.endpoint.length>0&&typeof t.swScope==`string`&&t.swScope.length>0&&typeof t.vapidKey==`string`&&t.vapidKey.length>0}var Cn=`firebase-messaging-database`,wn=1,G=`firebase-messaging-store`,Tn=null;function En(){return Tn||(Tn=(0,k.openDb)(Cn,wn,function(e){e.oldVersion===0&&e.createObjectStore(G)})),Tn}function K(e){return o(this,void 0,void 0,function(){var t,n,r,i;return s(this,function(a){switch(a.label){case 0:return t=kn(e),[4,En()];case 1:return n=a.sent(),[4,n.transaction(G).objectStore(G).get(t)];case 2:return r=a.sent(),r?[2,r]:[3,3];case 3:return[4,xn(e.appConfig.senderId)];case 4:return i=a.sent(),i?[4,Dn(e,i)]:[3,6];case 5:return a.sent(),[2,i];case 6:return[2]}})})}function Dn(e,t){return o(this,void 0,void 0,function(){var n,r,i;return s(this,function(a){switch(a.label){case 0:return n=kn(e),[4,En()];case 1:return r=a.sent(),i=r.transaction(G,`readwrite`),[4,i.objectStore(G).put(t,n)];case 2:return a.sent(),[4,i.complete];case 3:return a.sent(),[2,t]}})})}function On(e){return o(this,void 0,void 0,function(){var t,n,r;return s(this,function(i){switch(i.label){case 0:return t=kn(e),[4,En()];case 1:return n=i.sent(),r=n.transaction(G,`readwrite`),[4,r.objectStore(G).delete(t)];case 2:return i.sent(),[4,r.complete];case 3:return i.sent(),[2]}})})}function kn(e){return e.appConfig.appId}function An(e,t){return o(this,void 0,void 0,function(){var n,r,i,a,o,c,l;return s(this,function(s){switch(s.label){case 0:return[4,Pn(e)];case 1:n=s.sent(),r=Fn(t),i={method:`POST`,headers:n,body:JSON.stringify(r)},s.label=2;case 2:return s.trys.push([2,5,,6]),[4,fetch(Nn(e.appConfig),i)];case 3:return o=s.sent(),[4,o.json()];case 4:return a=s.sent(),[3,6];case 5:throw c=s.sent(),V.create(`token-subscribe-failed`,{errorInfo:c});case 6:if(a.error)throw l=a.error.message,V.create(`token-subscribe-failed`,{errorInfo:l});if(!a.token)throw V.create(`token-subscribe-no-token`);return[2,a.token]}})})}function jn(e,t){return o(this,void 0,void 0,function(){var n,r,i,a,o,c,l;return s(this,function(s){switch(s.label){case 0:return[4,Pn(e)];case 1:n=s.sent(),r=Fn(t.subscriptionOptions),i={method:`PATCH`,headers:n,body:JSON.stringify(r)},s.label=2;case 2:return s.trys.push([2,5,,6]),[4,fetch(Nn(e.appConfig)+`/`+t.token,i)];case 3:return o=s.sent(),[4,o.json()];case 4:return a=s.sent(),[3,6];case 5:throw c=s.sent(),V.create(`token-update-failed`,{errorInfo:c});case 6:if(a.error)throw l=a.error.message,V.create(`token-update-failed`,{errorInfo:l});if(!a.token)throw V.create(`token-update-no-token`);return[2,a.token]}})})}function Mn(e,t){return o(this,void 0,void 0,function(){var n,r,i,a,o,c;return s(this,function(s){switch(s.label){case 0:return[4,Pn(e)];case 1:n=s.sent(),r={method:`DELETE`,headers:n},s.label=2;case 2:return s.trys.push([2,5,,6]),[4,fetch(Nn(e.appConfig)+`/`+t,r)];case 3:return i=s.sent(),[4,i.json()];case 4:if(a=s.sent(),a.error)throw o=a.error.message,V.create(`token-unsubscribe-failed`,{errorInfo:o});return[3,6];case 5:throw c=s.sent(),V.create(`token-unsubscribe-failed`,{errorInfo:c});case 6:return[2]}})})}function Nn(e){var t=e.projectId;return cn+`/projects/`+t+`/registrations`}function Pn(e){var t=e.appConfig,n=e.installations;return o(this,void 0,void 0,function(){var e;return s(this,function(r){switch(r.label){case 0:return[4,n.getToken()];case 1:return e=r.sent(),[2,new Headers({"Content-Type":`application/json`,Accept:`application/json`,"x-goog-api-key":t.apiKey,"x-goog-firebase-installations-auth":`FIS `+e})]}})})}function Fn(e){var t=e.p256dh,n=e.auth,r=e.endpoint,i=e.vapidKey,a={web:{endpoint:r,auth:n,p256dh:t}};
19return i!==H&&(a.web.applicationPubKey=i),a}var In=6048e5;function Ln(e,t,n){return o(this,void 0,void 0,function(){var r,i,a,o;return s(this,function(s){switch(s.label){case 0:if(Notification.permission!==`granted`)throw V.create(`permission-blocked`);return[4,Bn(t,n)];case 1:return r=s.sent(),[4,K(e)];case 2:return i=s.sent(),a={vapidKey:n,swScope:t.scope,endpoint:r.endpoint,auth:W(r.getKey(`auth`)),p256dh:W(r.getKey(`p256dh`))},i?[3,3]:[2,zn(e,a)];case 3:if(Vn(i.subscriptionOptions,a))return[3,8];s.label=4;case 4:return s.trys.push([4,6,,7]),[4,Mn(e,i.token)];case 5:return s.sent(),[3,7];case 6:return o=s.sent(),console.warn(o),[3,7];case 7:return[2,zn(e,a)];case 8:return Date.now()>=i.createTime+In?[2,Rn({token:i.token,createTime:Date.now(),subscriptionOptions:a},e,t)]:[2,i.token];case 9:return[2]}})})}function q(e,t){return o(this,void 0,void 0,function(){var n,r;return s(this,function(i){switch(i.label){case 0:return[4,K(e)];case 1:return n=i.sent(),n?[4,Mn(e,n.token)]:[3,4];case 2:return i.sent(),[4,On(e)];case 3:i.sent(),i.label=4;case 4:return[4,t.pushManager.getSubscription()];case 5:return r=i.sent(),r?[2,r.unsubscribe()]:[2,!0]}})})}function Rn(e,t,n){return o(this,void 0,void 0,function(){var r,i,o;return s(this,function(s){switch(s.label){case 0:return s.trys.push([0,3,,5]),[4,jn(t,e)];case 1:return r=s.sent(),i=a(a({},e),{token:r,createTime:Date.now()}),[4,Dn(t,i)];case 2:return s.sent(),[2,r];case 3:return o=s.sent(),[4,q(t,n)];case 4:throw s.sent(),o;case 5:return[2]}})})}function zn(e,t){return o(this,void 0,void 0,function(){var n,r;return s(this,function(i){switch(i.label){case 0:return[4,An(e,t)];case 1:return n=i.sent(),r={token:n,createTime:Date.now(),subscriptionOptions:t},[4,Dn(e,r)];case 2:return i.sent(),[2,r.token]}})})}function Bn(e,t){return o(this,void 0,void 0,function(){var n;return s(this,function(r){switch(r.label){case 0:return[4,e.pushManager.getSubscription()];case 1:return n=r.sent(),n?[2,n]:[2,e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:_n(t)})]}})})}function Vn(e,t){var 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}function Hn(e){var t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcm_message_id};return Un(t,e),Wn(t,e),Gn(t,e),t}function Un(e,t){if(t.notification){e.notification={};var n=t.notification.title;n&&(e.notification.title=n);var r=t.notification.body;r&&(e.notification.body=r);var i=t.notification.image;i&&(e.notification.image=i)}}function Wn(e,t){t.data&&(e.data=t.data)}function Gn(e,t){if(t.fcmOptions){e.fcmOptions={};var n=t.fcmOptions.link;n&&(e.fcmOptions.link=n);var r=t.fcmOptions.analytics_label;r&&(e.fcmOptions.analyticsLabel=r)}}function Kn(e){return typeof e==`object`&&!!e&&fn in e}function qn(e){return new Promise(function(t){setTimeout(t,e)})}var Jn=function(){function e(e){var t=this;this.firebaseDependencies=e,this.isOnBackgroundMessageUsed=null,this.vapidKey=null,this.bgMessageHandler=null,self.addEventListener(`push`,function(e){e.waitUntil(t.onPush(e))}),self.addEventListener(`pushsubscriptionchange`,function(e){e.waitUntil(t.onSubChange(e))}),self.addEventListener(`notificationclick`,function(e){e.waitUntil(t.onNotificationClick(e))})}return Object.defineProperty(e.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!1,configurable:!0}),e.prototype.setBackgroundMessageHandler=function(e){if(this.isOnBackgroundMessageUsed=!1,!e||typeof e!=`function`)throw V.create(`invalid-bg-handler`);this.bgMessageHandler=e},e.prototype.onBackgroundMessage=function(e){var t=this;return this.isOnBackgroundMessageUsed=!0,this.bgMessageHandler=e,function(){t.bgMessageHandler=null}},e.prototype.getToken=function(){var e,t;return o(this,void 0,void 0,function(){var n;return s(this,function(r){switch(r.label){case 0:return this.vapidKey?[3,2]:[4,K(this.firebaseDependencies)];case 1:n=r.sent(),this.vapidKey=(t=(e=n==null?void 0:n.subscriptionOptions)==null?void 0:e.vapidKey)==null?H:t,r.label=2;case 2:return[2,Ln(this.firebaseDependencies,self.registration,this.vapidKey)]}})})},e.prototype.deleteToken=function(){return q(this.firebaseDependencies,self.registration)},e.prototype.requestPermission=function(){throw V.create(`only-available-in-window`)},e.prototype.usePublicVapidKey=function(e){if(this.vapidKey!==null)throw V.create(`use-vapid-key-after-get-token`);if(typeof e!=`string`||e.length===0)throw V.create(`invalid-vapid-key`);this.vapidKey=e},e.prototype.useServiceWorker=function(){throw V.create(`only-available-in-window`)},e.prototype.onMessage=function(){throw V.create(`only-available-in-window`)},e.prototype.onTokenRefresh=function(){throw V.create(`only-available-in-window`)},e.prototype.onPush=function(e){return o(this,void 0,void 0,function(){var t,n,r,i;return s(this,function(a){switch(a.label){case 0:return t=Xn(e),t?[4,er()]:(console.debug(un+`failed to get parsed MessagePayload from the PushEvent. Skip handling the push.`),[2]);case 1:return n=a.sent(),Qn(n)?[2,$n(n,t)]:(r=!1,t.notification?[4,tr(Yn(t))]:[3,3]);case 2:a.sent(),r=!0,a.label=3;
19case 3:return r===!0&&this.isOnBackgroundMessageUsed===!1?[2]:(this.bgMessageHandler&&(i=Hn(t),typeof this.bgMessageHandler==`function`?this.bgMessageHandler(i):this.bgMessageHandler.next(i)),[4,qn(hn)]);case 4:return a.sent(),[2]}})})},e.prototype.onSubChange=function(e){var t,n;return o(this,void 0,void 0,function(){var r,i;return s(this,function(a){switch(a.label){case 0:return r=e.newSubscription,r?[3,2]:[4,q(this.firebaseDependencies,self.registration)];case 1:return a.sent(),[2];case 2:return[4,K(this.firebaseDependencies)];case 3:return i=a.sent(),[4,q(this.firebaseDependencies,self.registration)];case 4:return a.sent(),[4,Ln(this.firebaseDependencies,self.registration,(n=(t=i==null?void 0:i.subscriptionOptions)==null?void 0:t.vapidKey)==null?H:n)];case 5:return a.sent(),[2]}})})},e.prototype.onNotificationClick=function(e){var t,n;return o(this,void 0,void 0,function(){var r,i,a,o,c;return s(this,function(s){switch(s.label){case 0:return r=(n=(t=e.notification)==null?void 0:t.data)==null?void 0:n[ln],r?e.action||(e.stopImmediatePropagation(),e.notification.close(),i=nr(r),!i)||(a=new URL(i,self.location.href),o=new URL(self.location.origin),a.host!==o.host)?[2]:[4,Zn(a)]:[2];case 1:return c=s.sent(),c?[3,4]:[4,self.clients.openWindow(i)];case 2:return c=s.sent(),[4,qn(gn)];case 3:return s.sent(),[3,6];case 4:return[4,c.focus()];case 5:c=s.sent(),s.label=6;case 6:return c?(r.messageType=U.NOTIFICATION_CLICKED,r.isFirebaseMessaging=!0,[2,c.postMessage(r)]):[2]}})})},e}();function Yn(e){var t,n=a({},e.notification);return n.data=(t={},t[ln]=e,t),n}function Xn(e){var t=e.data;if(!t)return null;try{return t.json()}catch(e){return null}}function Zn(e){return o(this,void 0,void 0,function(){var t,n,r,i,a,o,l;return s(this,function(s){switch(s.label){case 0:return[4,er()];case 1:t=s.sent();try{for(n=c(t),r=n.next();!r.done;r=n.next())if(i=r.value,a=new URL(i.url,self.location.href),e.host===a.host)return[2,i]}catch(e){o={error:e}}finally{try{r&&!r.done&&(l=n.return)&&l.call(n)}finally{if(o)throw o.error}}return[2,null]}})})}function Qn(e){return e.some(function(e){return e.visibilityState===`visible`&&!e.url.startsWith(`chrome-extension://`)})}function $n(e,t){var n,r;t.isFirebaseMessaging=!0,t.messageType=U.PUSH_RECEIVED;try{for(var i=c(e),a=i.next();!a.done;a=i.next())a.value.postMessage(t)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function er(){return self.clients.matchAll({type:`window`,includeUncontrolled:!0})}function tr(e){var t,n=e.actions,r=Notification.maxActions;return n&&r&&n.length>r&&console.warn(`This browser only supports `+r+` actions. The remaining actions will not be displayed.`),self.registration.showNotification((t=e.title)==null?``:t,e)}function nr(e){var t,n,r;return((n=(t=e.fcmOptions)==null?void 0:t.link)==null?(r=e.notification)==null?void 0:r.click_action:n)||(Kn(e.data)?self.location.origin:null)}var rr=function(){function e(e){var t=this;this.firebaseDependencies=e,this.vapidKey=null,this.onMessageCallback=null,navigator.serviceWorker.addEventListener(`message`,function(e){return t.messageEventListener(e)})}return Object.defineProperty(e.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!1,configurable:!0}),e.prototype.messageEventListener=function(e){return o(this,void 0,void 0,function(){var t,n;return s(this,function(r){switch(r.label){case 0:return t=e.data,t.isFirebaseMessaging?(this.onMessageCallback&&t.messageType===U.PUSH_RECEIVED&&(typeof this.onMessageCallback==`function`?this.onMessageCallback(ar(Object.assign({},t))):this.onMessageCallback.next(Object.assign({},t))),n=t.data,Kn(n)&&n[dn]===`1`?[4,this.logEvent(t.messageType,n)]:[3,2]):[2];case 1:r.sent(),r.label=2;case 2:return[2]}})})},e.prototype.getVapidKey=function(){return this.vapidKey},e.prototype.getSwReg=function(){return this.swRegistration},e.prototype.getToken=function(e){return o(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return Notification.permission==="default"?[4,Notification.requestPermission()]:[3,2];case 1:t.sent(),t.label=2;case 2:if(Notification.permission!==`granted`)throw V.create(`permission-blocked`);
19return[4,this.updateVapidKey(e==null?void 0:e.vapidKey)];case 3:return t.sent(),[4,this.updateSwReg(e==null?void 0:e.serviceWorkerRegistration)];case 4:return t.sent(),[2,Ln(this.firebaseDependencies,this.swRegistration,this.vapidKey)]}})})},e.prototype.updateVapidKey=function(e){return o(this,void 0,void 0,function(){return s(this,function(t){return e?this.vapidKey=e:this.vapidKey||(this.vapidKey=H),[2]})})},e.prototype.updateSwReg=function(e){return o(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return!e&&!this.swRegistration?[4,this.registerDefaultSw()]:[3,2];case 1:t.sent(),t.label=2;case 2:if(!e&&this.swRegistration)return[2];if(!(e instanceof ServiceWorkerRegistration))throw V.create(`invalid-sw-registration`);return this.swRegistration=e,[2]}})})},e.prototype.registerDefaultSw=function(){return o(this,void 0,void 0,function(){var e,t;return s(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),e=this,[4,navigator.serviceWorker.register(on,{scope:sn})];case 1:return e.swRegistration=n.sent(),this.swRegistration.update().catch(function(){}),[3,3];case 2:throw t=n.sent(),V.create(`failed-service-worker-registration`,{browserErrorMessage:t.message});case 3:return[2]}})})},e.prototype.deleteToken=function(){return o(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return this.swRegistration?[3,2]:[4,this.registerDefaultSw()];case 1:e.sent(),e.label=2;case 2:return[2,q(this.firebaseDependencies,this.swRegistration)]}})})},e.prototype.requestPermission=function(){return o(this,void 0,void 0,function(){var e;return s(this,function(t){switch(t.label){case 0:return Notification.permission===`granted`?[2]:[4,Notification.requestPermission()];case 1:if(e=t.sent(),e===`granted`)return[2];throw e===`denied`?V.create(`permission-blocked`):V.create(`permission-default`)}})})},e.prototype.usePublicVapidKey=function(e){if(this.vapidKey!==null)throw V.create(`use-vapid-key-after-get-token`);if(typeof e!=`string`||e.length===0)throw V.create(`invalid-vapid-key`);this.vapidKey=e},e.prototype.useServiceWorker=function(e){if(!(e instanceof ServiceWorkerRegistration))throw V.create(`invalid-sw-registration`);if(this.swRegistration)throw V.create(`use-sw-after-get-token`);this.swRegistration=e},e.prototype.onMessage=function(e){var t=this;return this.onMessageCallback=e,function(){t.onMessageCallback=null}},e.prototype.setBackgroundMessageHandler=function(){throw V.create(`only-available-in-sw`)},e.prototype.onBackgroundMessage=function(){throw V.create(`only-available-in-sw`)},e.prototype.onTokenRefresh=function(){return function(){}},e.prototype.logEvent=function(e,t){return o(this,void 0,void 0,function(){var n,r;return s(this,function(i){switch(i.label){case 0:return n=ir(e),[4,this.firebaseDependencies.analyticsProvider.get()];case 1:return r=i.sent(),r.logEvent(n,{message_id:t[fn],message_name:t[mn],message_time:t[pn],message_device_time:Math.floor(Date.now()/1e3)}),[2]}})})},e}();function ir(e){switch(e){case U.NOTIFICATION_CLICKED:return`notification_open`;case U.PUSH_RECEIVED:return`notification_foreground`;default:throw Error()}}function ar(e){return delete e.messageType,delete e.isFirebaseMessaging,e}function or(e){var t,n;if(!e||!e.options)throw sr(`App Configuration Object`);if(!e.name)throw sr(`App Name`);var r=[`projectId`,`apiKey`,`appId`,`messagingSenderId`],i=e.options;try{for(var a=c(r),o=a.next();!o.done;o=a.next()){var s=o.value;if(!i[s])throw sr(s)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return{appName:e.name,projectId:i.projectId,apiKey:i.apiKey,appId:i.appId,senderId:i.messagingSenderId}}function sr(e){return V.create(`missing-app-config-values`,{valueName:e})}var cr=`messaging`;function lr(e){var t=e.getProvider(`app`).getImmediate(),n={app:t,appConfig:or(t),installations:e.getProvider(`installations`).getImmediate(),analyticsProvider:e.getProvider(`analytics-internal`)};if(!dr())throw V.create(`unsupported-browser`);return self&&`ServiceWorkerGlobalScope`in self?new Jn(n):new rr(n)}var ur={isSupported:dr};O.INTERNAL.registerComponent(new g(cr,lr,`PUBLIC`).setServiceProps(ur));function dr(){return self&&`ServiceWorkerGlobalScope`in self?pr():fr()}function fr(){return`indexedDB`in window&&indexedDB!==null&&navigator.cookieEnabled&&`serviceWorker`in navigator&&`PushManager`in window&&`Notification`in window&&`fetch`in window&&ServiceWorkerRegistration.prototype.hasOwnProperty(`showNotification`)&&PushSub
19scription.prototype.hasOwnProperty(`getKey`)}function pr(){return`indexedDB`in self&&indexedDB!==null&&`PushManager`in self&&`Notification`in self&&ServiceWorkerRegistration.prototype.hasOwnProperty(`showNotification`)&&PushSubscription.prototype.hasOwnProperty(`getKey`)}try{self[`workbox:window:6.5.4`]&&_()}catch(e){}function mr(e,t){return new Promise((function(n){var r=new MessageChannel;r.port1.onmessage=function(e){n(e.data)},e.postMessage(t,[r.port2])}))}function hr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _r(e,t){var n;if(typeof Symbol>`u`||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=function(e,t){if(e){if(typeof e==`string`)return gr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gr(e,t):void 0}}(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance. 20In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return(n=e[Symbol.iterator]()).next.bind(n)}try{self[`workbox:core:6.5.4`]&&_()}catch(e){}var vr=function(){var e=this;this.promise=new Promise((function(t,n){e.resolve=t,e.reject=n}))};function yr(e,t){var n=location.href;return new URL(e,n).href===new URL(t,n).href}var J=function(e,t){this.type=e,Object.assign(this,t)};function Y(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function br(){}var xr={type:`SKIP_WAITING`};function Sr(e,t){if(!t)return e&&e.then?e.then(br):Promise.resolve()}var Cr=function(e){var t,n;function r(t,n){var r,i;return n===void 0&&(n={}),(r=e.call(this)||this).nn={},r.tn=0,r.rn=new vr,r.en=new vr,r.on=new vr,r.un=0,r.an=new Set,r.cn=function(){var e=r.fn,t=e.installing;r.tn>0||!yr(t.scriptURL,r.sn.toString())||performance.now()>r.un+6e4?(r.vn=t,e.removeEventListener(`updatefound`,r.cn)):(r.hn=t,r.an.add(t),r.rn.resolve(t)),++r.tn,t.addEventListener(`statechange`,r.ln)},r.ln=function(e){var t=r.fn,n=e.target,i=n.state,a=n===r.vn,o={sw:n,isExternal:a,originalEvent:e};!a&&r.mn&&(o.isUpdate=!0),r.dispatchEvent(new J(i,o)),i===`installed`?r.wn=self.setTimeout((function(){i===`installed`&&t.waiting===n&&r.dispatchEvent(new J(`waiting`,o))}),200):i===`activating`&&(clearTimeout(r.wn),a||r.en.resolve(n))},r.dn=function(e){var t=r.hn,n=t!==navigator.serviceWorker.controller;r.dispatchEvent(new J(`controlling`,{isExternal:n,originalEvent:e,sw:t,isUpdate:r.mn})),n||r.on.resolve(t)},r.gn=(i=function(e){var t=e.data,n=e.ports,i=e.source;return Y(r.getSW(),(function(){r.an.has(i)&&r.dispatchEvent(new J(`message`,{data:t,originalEvent:e,ports:n,sw:i}))}))},function(){var e=[...arguments];try{return Promise.resolve(i.apply(this,e))}catch(e){return Promise.reject(e)}}),r.sn=t,r.nn=n,navigator.serviceWorker.addEventListener(`message`,r.gn),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i,a,o,s=r.prototype;return s.register=function(e){var t=(e===void 0?{}:e).immediate,n=t!==void 0&&t;try{var r=this;return function(e,t){var n=e();return n&&n.then?n.then(t):t(n)}((function(){if(!n&&document.readyState!==`complete`)return Sr(new Promise((function(e){return window.addEventListener(`load`,e)})))}),(function(){return r.mn=!!navigator.serviceWorker.controller,r.yn=r.pn(),Y(r.bn(),(function(e){r.fn=e,r.yn&&(r.hn=r.yn,r.en.resolve(r.yn),r.on.resolve(r.yn),r.yn.addEventListener(`statechange`,r.ln,{once:!0}));var t=r.fn.waiting;return t&&yr(t.scriptURL,r.sn.toString())&&(r.hn=t,Promise.resolve().then((function(){r.dispatchEvent(new J(`waiting`,{sw:t,wasWaitingBeforeRegister:!0}))})).then((function(){}))),r.hn&&(r.rn.resolve(r.hn),r.an.add(r.hn)),r.fn.addEventListener(`updatefound`,r.cn),navigator.serviceWorker.addEventListener(`controllerchange`,r.dn),r.fn}))}))}catch(e){return Promise.reject(e)}},s.update=function(){try{return this.fn?Sr(this.fn.update()):void 0}catch(e){return Promise.reject(e)}},s.getSW=function(){return this.hn===void 0?this.rn.promise:Promise.resolve(this.hn)},s.messageSW=function(e){try{return Y(this.getSW(),(function(t){return mr(t,e)}))}catch(e){return Promise.reject(e)}},s.messageSkipWaiting=function(){this.fn&&this.fn.waiting&&mr(this.fn.waiting,xr)},s.pn=function(){var e=navigator.serviceWorker.controller;return e&&yr(e.scriptURL,this.sn.toString())?e:void 0},s.bn=function(){try{var e=this;return function(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}((function(){return Y(navigator.serviceWorker.register(e.sn,e.nn),(function(t){return e.un=performance.now(),t}))}),(function(e){throw e}))}catch(e){return Promise.reject(e)}},i=r,(a=[{key:`active`,get:function(){return this.en.promise}},{key:`controlling`,get:function(){return this.on.promise}}])&&hr(i.prototype,a),o&&hr(i,o),r}(function(){function e(){this.Pn=new Map}var t=e.prototype;return t.addEventListener=function(e,t){this.Sn(e).add(t)},t.removeEventListener=function(e,t){this.Sn(e).delete(t)}
20,t.dispatchEvent=function(e){e.target=this;for(var t,n=_r(this.Sn(e.type));!(t=n()).done;)(0,t.value)(e)},t.Sn=function(e){return this.Pn.has(e)||this.Pn.set(e,new Set),this.Pn.get(e)},e}()),X=document.getElementById(`install-button`),Z=document.getElementById(`notify-button`),Q=null,wr=()=>{let e=window.navigator.userAgent.toLowerCase();return/iphone|ipad|ipod/.test(e)},Tr=()=>`standalone`in window.navigator&&window.navigator.standalone,Er=()=>[`fullscreen`,`standalone`,`minimal-ui`].some(e=>window.matchMedia(`(display-mode: `+e+`)`).matches)||window.navigator.standalone||document.referrer.includes(`android-app://`);wr()&&(X&&(X.style.display=`none`),Tr()||Or()),Er()&&X&&(X.style.display=`none`),Z&&(Z.style.display=`none`),Dr()&&typeof Notification<`u`&&(Notification.permission===`granted`?(Nr(),Z&&(Z.style.display=`none`)):Z&&(Z.style.display=`block`,Z.addEventListener(`click`,async()=>{await Mr()})));function Dr(){return document.getElementById(`taskbarLogin`)===null}function Or(){let e=document.querySelector(`.ios-prompt`);e&&(e.style.display=`block`,e.addEventListener(`click`,()=>{e.style.display=`none`}))}window.addEventListener(`beforeinstallprompt`,function(e){e.preventDefault(),Q=e,kr()});function kr(){X&&(X.style.display=`block`,X.addEventListener(`click`,Ar))}function Ar(){!X||!Q||(X.style.display=`none`,Q.prompt(),Q.userChoice.then(function(e){e.outcome===`accepted`?console.log(`User accepted the A2HS prompt`):console.log(`User dismissed the A2HS prompt`),Q=null}))}async function jr(){return{app:O.initializeApp({apiKey:`AIzaSyBfXg67agflDjoaBKZDAkgAxvdBLMFG7qo`,authDomain:`ponc-fd227.firebaseapp.com`,projectId:`ponc-fd227`,storageBucket:`ponc-fd227.appspot.com`,messagingSenderId:`219404578254`,appId:`1:219404578254:web:15d30c39398ecdd7698f9f`,measurementId:`G-PK0EVQX9WV`})}}function $(){return $.promise||($.promise=jr()),$.promise}$().catch(e=>{console.error(`Pre-initialization reported an error`,error)});try{let e=new Cr(`/sw.js`);e.addEventListener(`waiting`,()=>{let t=document.querySelector(`#pwaUpdateBanner`),n=t.querySelector(`.btn-accept`),r=t.querySelector(`.btn-dismiss`);function i(){t.style.display=`none`}function a(){e.addEventListener(`controlling`,e=>{window.location.reload()}),e.messageSkipWaiting(),i()}n.addEventListener(`click`,a),r.addEventListener(`click`,i)}),e.register()}catch(e){window.onload=async()=>{`serviceWorker`in navigator?navigator.serviceWorker.register(`/sw.js`,{scope:`.`}).then(e=>{console.log(`Registration successful, scope is:`,e.scope)},e=>{console.error(`Service worker registration failed: ${e}`)}):console.error(`Service workers are not supported.`)}}async function Mr(){Notification.requestPermission().then(async e=>{e===`granted`&&(new Notification(`Notifications enabled!`,{body:`You will now receive notifications for your PWA even when you're not looking! ð`,icon:`/img/sc-logo-cropped.png`}),await Nr(),Z.style.display=`none`)}).catch(e=>{console.log(`Failed to obtain notifications permission `,e)})}async function Nr(){let{app:e}=await $(),r=await e.messaging().getToken(),i=t.user();r&&i&&await n.put(`/users/${i._data.id}/device-tokens`,{device_token:r})}
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.